Import tools/gdb/gdb_chrome.py as part of adb_gdb script
Presently, first time developer need to copy paste source for inserting gdb_chrome.py in ~/.gdbinit file. This change avoids the manual step & works seem less for first time developer also. BUG=None Review URL: https://codereview.chromium.org/444593003 Cr-Original-Commit-Position: refs/heads/master@{#291581} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: 145425d17c8351595048b0dff319e8ff284d983f
This commit is contained in:
Родитель
723c40a25c
Коммит
85cbd33702
|
@ -984,6 +984,15 @@ fi
|
|||
readonly COMMANDS=$TMPDIR/gdb.init
|
||||
log "Generating GDB initialization commands file: $COMMANDS"
|
||||
echo -n "" > $COMMANDS
|
||||
echo "set print pretty 1" >> $COMMANDS
|
||||
echo "python" >> $COMMANDS
|
||||
echo "import sys" >> $COMMANDS
|
||||
echo "sys.path.insert(0, '$CHROMIUM_SRC/tools/gdb/')" >> $COMMANDS
|
||||
echo "try:" >> $COMMANDS
|
||||
echo " import gdb_chrome" >> $COMMANDS
|
||||
echo "finally:" >> $COMMANDS
|
||||
echo " sys.path.pop(0)" >> $COMMANDS
|
||||
echo "end" >> $COMMANDS
|
||||
echo "file $TMPDIR/$GDBEXEC" >> $COMMANDS
|
||||
echo "directory $CHROMIUM_SRC" >> $COMMANDS
|
||||
echo "set solib-absolute-prefix $PULL_LIBS_DIR" >> $COMMANDS
|
||||
|
|
Загрузка…
Ссылка в новой задаче