]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/commitdiff
Added GDB and GEF (#103)
authorLukas Pietzschmann <lukas.pietzschmann@outlook.de>
Wed, 22 Jun 2022 14:04:56 +0000 (16:04 +0200)
committerGitHub <noreply@github.com>
Wed, 22 Jun 2022 14:04:56 +0000 (14:04 +0000)
programs/gdb.json
programs/gef.json [new file with mode: 0644]

index 5c579c2ed84150f6be8a1460acc24038e01e3299..ce4866c8abb3ce6057fe0f1c11d775db0c792b31 100644 (file)
@@ -5,6 +5,11 @@
             "path": "${HOME}/.gdbinit",
             "movable": true,
             "help": "Alias gdb to use custom locations:\n\n```bash\nalias gdb=gdb -n -x $XDG_CONFIG_HOME/gdb/init```\n"
+        },
+        {
+            "path": "$HOME/.gdb_history",
+            "movable": true,
+            "help": "GDB supports setting it's config file path through an environment variable. Simply move your _.gdb_history_ file to _XDG_CONFIG_HOME/gdb_ and export the follwing:\n\n```bash\nexport GDBHISTFILE=\"$XDG_CONFIG_HOME\"/gdb/.gdb_history \n```\n\nNote: If you are using GEF this does not work, as GEF overwrites the filepath. In order to use the correct path again, you have to call ```set history filename ~/.config/gdb/.gdb_history``` after you source _gef.py_ in your gdb init file.\n"
         }
     ]
 }
diff --git a/programs/gef.json b/programs/gef.json
new file mode 100644 (file)
index 0000000..40f871b
--- /dev/null
@@ -0,0 +1,10 @@
+{
+    "name": "GEF",
+    "files": [
+        {
+            "path": "$HOME/.gef.rc",
+            "movable": true,
+            "help": "GEF supports setting it's config file path through an environment variable. Simply move your _.gef.rc_ file to _XDG_CONFIG_HOME/gef_ and export the follwing:\n\n```bash\nexport GEF_RC=\"$XDG_CONFIG_HOME\"/gef/.gef.rc \n```\n"
+        }
+    ]
+}