This is the mail archive of the
gdb-cvs@sources.redhat.com
mailing list for the GDB project.
src/gdb/gdbtk ChangeLog generic/gdbtk-cmds.c g ...
- To: gdb-cvs at sourceware dot cygnus dot com
- Subject: src/gdb/gdbtk ChangeLog generic/gdbtk-cmds.c g ...
- From: kseitz at sourceware dot cygnus dot com
- Date: 19 Apr 2001 22:51:02 -0000
CVSROOT: /cvs/src
Module name: src
Changes by: kseitz@sources.redhat.com 2001-04-19 15:51:02
Modified files:
gdb/gdbtk : ChangeLog
gdb/gdbtk/generic: gdbtk-cmds.c gdbtk-hooks.c
gdb/gdbtk/library: bpwin.itb bpwin.ith srctextwin.itb
srctextwin.ith interface.tcl
Log message:
Breakpoint/tracepoint event notification using new event model...
* generic/gdbtk-cmds.c (gdb_set_bp): Use create_breakpoint_hook
to notify gui of changes.
(gdb_set_bp_addr): Ditto.
(gdb_get_breakpoint_info): Update comments to match reality.
* generic/gdbtk-hooks.c (breakpoint_notify): Only pass the
breakpoint number which generated the event.
(tracepoint_notify): Ditto for tracepoints.
* library/interface.tcl (gdb_breakpoint_change_hook): Mark
as deprecated and comment out definition.
(gdbtk_tcl_breakpoint): Use new GDBEvent event "breakpoint"
to notify rest of UI about breakpoint event.
(gdbtk_tcl_tracepoint): Ditto for "tracepoint" event.
* library/bpwin.ith (update): Renamed to "breakpoint".
(breakpoint): New public method.
(tracepoint): New public method.
(bp_add): Take event as argument instead of number.
(bp_modify): Ditto.
(bp_delete): Ditto.
* library/bpwin.itb (constructor): Remove
gdb_breakpoint_changed_hook.
(destructor): Ditto.
(build_win): Insert any existing breakpoints by
making BreakpointEvents for them.
(breakpoint): Renamed from "update" to handle
breakpoint events.
Remove code to deal with tracepoints.
(tracepoint): New method to handle tracepoint
events.
(bp_add): Deal with breakpoint events, not breakpoint
numbers.
(bp_modify): Ditto.
(bp_delete): Ditto.
* library/srctextwin.ith: Inherit from GDBWin.
(breakpoint): New public method.
(tracepoint): New public method.
* library/srctextwin.itb (constructor): Remove
gdb_breakpoint_changed_hook.
(destructor): Ditto.
(breakpoint): New method to handle breakpoint event.
(tracepoint): New method to handle tracepoint event.
(do_bp): Handle duplicate breakpoints for asm, too.
(remove_bp_at_line): Delete breakpoints by number, not
linespec. clear_command removes breakpoints from the
breakpoint_chain BEFORE deleting the breakpoint. delete_command
does this afterward (so we can call gdb_get_breakpoint_info on
an about-to-be-deleted breakpoint).
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/gdbtk/ChangeLog.diff?cvsroot=src&r1=1.64&r2=1.65
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/gdbtk/generic/gdbtk-cmds.c.diff?cvsroot=src&r1=1.30&r2=1.31
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/gdbtk/generic/gdbtk-hooks.c.diff?cvsroot=src&r1=1.9&r2=1.10
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/gdbtk/library/bpwin.itb.diff?cvsroot=src&r1=1.4&r2=1.5
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/gdbtk/library/bpwin.ith.diff?cvsroot=src&r1=1.1.1.1&r2=1.2
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/gdbtk/library/srctextwin.itb.diff?cvsroot=src&r1=1.22&r2=1.23
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/gdbtk/library/srctextwin.ith.diff?cvsroot=src&r1=1.10&r2=1.11
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/gdbtk/library/interface.tcl.diff?cvsroot=src&r1=1.17&r2=1.18