diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-05-07 22:51:55 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-05-07 22:51:55 +0000 |
commit | 2b4855ab6b8e69b375c49df490db63ececf17da8 (patch) | |
tree | fa50b31fc2d7328ee97a0468805e0a05a3f7fd03 /gdb/observer.sh | |
parent | 2004-05-07 Jason Molenda (jmolenda@apple.com) (diff) | |
download | binutils-gdb-2b4855ab6b8e69b375c49df490db63ececf17da8.tar.gz binutils-gdb-2b4855ab6b8e69b375c49df490db63ececf17da8.tar.bz2 binutils-gdb-2b4855ab6b8e69b375c49df490db63ececf17da8.zip |
2004-05-07 Andrew Cagney <cagney@redhat.com>
* observer.c: Include "commands.h" and "gdbcmd.h".
(observer_debug, _initialize_observer): Add the
command "set/show debug observer".
* observer.sh: When observer debugging, log notify calls.
* Makefile.in (observer.o): Update dependencies.
Index: doc/ChangeLog
2004-05-07 Andrew Cagney <cagney@redhat.com>
* observer.texi (GDB Observers): Add "Debugging" section. Include
cross reference to "set/show debug observer".
* gdb.texinfo (Debugging Output): Document "set/show debug
observer".
Diffstat (limited to 'gdb/observer.sh')
-rwxr-xr-x | gdb/observer.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/observer.sh b/gdb/observer.sh index c5d37799d61..2cc0e7fe90a 100755 --- a/gdb/observer.sh +++ b/gdb/observer.sh @@ -134,6 +134,8 @@ observer_notify_${event} (${formal}) { struct ${event}_args args; `echo ${actual} | sed -e 's/\([a-z0-9_][a-z0-9_]*\)/args.\1 = \1/g'`; + if (observer_debug) + fprintf_unfiltered (gdb_stdlog, "observer_notify_${event}() called\n"); generic_observer_notify (${event}_subject, &args); } EOF |