diff options
author | Regia König | 2022-09-04 22:21:54 +0200 |
---|---|---|
committer | Regia König | 2022-09-04 22:21:54 +0200 |
commit | 9ebd00939dc544d857ce45169acf0fbfc49cd031 (patch) | |
tree | a300c340ccbe184d423a84cf0fe3e6cdb622cd28 | |
parent | Move scripts for gdb (diff) | |
download | memtest86-9ebd00939dc544d857ce45169acf0fbfc49cd031.tar.gz memtest86-9ebd00939dc544d857ce45169acf0fbfc49cd031.tar.xz memtest86-9ebd00939dc544d857ce45169acf0fbfc49cd031.zip |
Collect ideas
-rw-r--r-- | multiprocessbash/README | 12 | ||||
-rwxr-xr-x | multiprocessbash/gdb_python.py | 4 | ||||
-rw-r--r-- | multiprocessbash/just_gdb | 4 |
3 files changed, 20 insertions, 0 deletions
diff --git a/multiprocessbash/README b/multiprocessbash/README new file mode 100644 index 0000000..7e0c697 --- /dev/null +++ b/multiprocessbash/README @@ -0,0 +1,12 @@ +Load gdb script from commandline: + +gdb --command script.py + + +Automatially load gdb_python-script: +.gdbinit + +source /path/to/hello.py +source /path/to/foobar.py +etc, etc + diff --git a/multiprocessbash/gdb_python.py b/multiprocessbash/gdb_python.py new file mode 100755 index 0000000..a3df392 --- /dev/null +++ b/multiprocessbash/gdb_python.py @@ -0,0 +1,4 @@ +#!/usr/bin/python + +print("khlkjh") +gdb.execute("quit") diff --git a/multiprocessbash/just_gdb b/multiprocessbash/just_gdb new file mode 100644 index 0000000..ad2f8e5 --- /dev/null +++ b/multiprocessbash/just_gdb @@ -0,0 +1,4 @@ +add-symbol-file ~/Memtest/git/memtest86plus_debug/build64/memtest.debug 0x201000 +b main +info b +quit |