summaryrefslogtreecommitdiff
path: root/HACKING
diff options
context:
space:
mode:
authorThien-Thi Nguyen <ttn@gnuvola.org>2001-09-01 04:09:05 +0000
committerThien-Thi Nguyen <ttn@gnuvola.org>2001-09-01 04:09:05 +0000
commit3cc0883ec0def956152ba0884f061f21c45d9bbf (patch)
treedbbe0e4e9209d28fe92947196395e1a48f8dc7c5 /HACKING
parent569c483b32905b6be869426fd8f57309ed562b5a (diff)
(Sample GDB Initialization File): New section.
Diffstat (limited to 'HACKING')
-rw-r--r--HACKING44
1 files changed, 44 insertions, 0 deletions
diff --git a/HACKING b/HACKING
index 92ce83225..dd491b11b 100644
--- a/HACKING
+++ b/HACKING
@@ -70,6 +70,50 @@ You are lost in a little maze of automatically generated files, all
different.
+Sample GDB Initialization File=========================================
+
+Here is a sample .gdbinit posted by Bill Schottstaedt (modified to
+use `set' instead of `call' in some places):
+
+ define gp
+ set gdb_print($arg0)
+ print gdb_output
+ end
+ document gp
+ Executes (object->string arg)
+ end
+
+ define ge
+ call gdb_read($arg0)
+ call gdb_eval(gdb_result)
+ set gdb_print(gdb_result)
+ print gdb_output
+ end
+ document ge
+ Executes (print (eval (read arg))): ge "(+ 1 2)" => 3
+ end
+
+ define gh
+ call g_help(scm_str2symbol($arg0), 20)
+ set gdb_print($1)
+ print gdb_output
+ end
+ document gh
+ Prints help string for arg: gh "enved-target"
+ end
+
+Bill further writes:
+
+ so in gdb if you see something useless like:
+
+ #32 0x081ae8f4 in scm_primitive_load (filename=1112137128) at load.c:129
+
+ You can get the file name with gp:
+
+ (gdb) gp 1112137128
+ $1 = 0x40853fac "\"/home/bil/test/share/guile/1.5.0/ice-9/session.scm\""
+
+
Contributing Your Changes ============================================
- If you have put together a change that meets the coding standards