summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRegia König2022-09-04 22:21:54 +0200
committerRegia König2022-09-04 22:21:54 +0200
commit9ebd00939dc544d857ce45169acf0fbfc49cd031 (patch)
treea300c340ccbe184d423a84cf0fe3e6cdb622cd28
parentMove scripts for gdb (diff)
downloadmemtest86-9ebd00939dc544d857ce45169acf0fbfc49cd031.tar.gz
memtest86-9ebd00939dc544d857ce45169acf0fbfc49cd031.tar.xz
memtest86-9ebd00939dc544d857ce45169acf0fbfc49cd031.zip
Collect ideas
-rw-r--r--multiprocessbash/README12
-rwxr-xr-xmultiprocessbash/gdb_python.py4
-rw-r--r--multiprocessbash/just_gdb4
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