aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-06-09 18:12:35 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-06-09 18:12:35 +0000
commit49f09e186521eec71af6406faa31e6ca225cee76 (patch)
treeb1e3c1b7d827bcad9c8589c535d82c06497c4b32 /gdb
parent4640902b79d4e882948b605e52383ea1dfa69cda (diff)
downloadgdb-49f09e186521eec71af6406faa31e6ca225cee76.zip
gdb-49f09e186521eec71af6406faa31e6ca225cee76.tar.gz
gdb-49f09e186521eec71af6406faa31e6ca225cee76.tar.bz2
* gdbinv-s.texi (Debug Session): Document exceptionHook.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/doc/ChangeLog4
-rw-r--r--gdb/doc/gdbinv-s.texi23
2 files changed, 24 insertions, 3 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 9643f72..780d479 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,7 @@
+Wed Jun 9 10:58:16 1993 Jim Kingdon (kingdon@cygnus.com)
+
+ * gdbinv-s.texi (Debug Session): Document exceptionHook.
+
Tue Jun 8 13:42:04 1993 Jim Kingdon (kingdon@cygnus.com)
* gdb.texinfo (Print Settings): Move all stuff relating to symbolic
diff --git a/gdb/doc/gdbinv-s.texi b/gdb/doc/gdbinv-s.texi
index d653ce2..9145d94 100644
--- a/gdb/doc/gdbinv-s.texi
+++ b/gdb/doc/gdbinv-s.texi
@@ -55,18 +55,21 @@ machine; for example, use @file{sparc-stub.c} to debug programs on
@cindex remote serial stub list
These working remote stubs are distributed with @value{GDBN}:
-@c FIXME! verify these...
@table @code
@item sparc-stub.c
@kindex sparc-stub.c
For @sc{sparc} architectures.
@item m68k-stub.c
-@kindex m68-stub.c
+@kindex m68k-stub.c
+@kindex Motorola 680x0
+@kindex 680x0
For Motorola 680x0 architectures.
@item i386-stub.c
-@kindex i36-stub.c
+@kindex i386-stub.c
+@kindex Intel
+@kindex 386
For Intel 386 and compatible architectures.
@end table
@@ -205,6 +208,20 @@ breakpoint();
@end example
@item
+For the 680x0 stub only, you need to provide a variable called
+exceptionHook. Normally you just use
+
+@example
+void (*exceptionHook)() = 0;
+@end example
+
+but if you, before calling @code{set_debug_traps}, set it to point to
+a function, that function will be called when the debugger continues
+from a trap (for example, bus error) which causes the debugger to be
+entered. It is passed one parameter---an @code{int} which is the
+exception number.
+
+@item
Compile and link together: your program, the @value{GDBN} debugging stub for
your target architecture, and the supporting subroutines.