summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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