diff options
author | Michael Snyder <msnyder@vmware.com> | 2003-08-21 18:09:54 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2003-08-21 18:09:54 +0000 |
commit | da08ea5b1e12eaff5ab592b07c45ccc91e6b9f08 (patch) | |
tree | 5c34f054927d389645d4f8c8463d289504787cea /gdb | |
parent | 85db1db4b9e8cd046384d924a29f03073ff2be07 (diff) | |
download | gdb-da08ea5b1e12eaff5ab592b07c45ccc91e6b9f08.zip gdb-da08ea5b1e12eaff5ab592b07c45ccc91e6b9f08.tar.gz gdb-da08ea5b1e12eaff5ab592b07c45ccc91e6b9f08.tar.bz2 |
2003-08-21 Michael Snyder <msnyder@redhat.com>
* tracepoint.c (trace_dump_command): Trace break address
is subject to DECR_PC_AFTER_BREAK.
(set_traceframe_context): Make "trace_line" an int.
Fixes suggested by Mark Newman <mark.newman@lmco.com>
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/tracepoint.c | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index eedfad0..2d82dc9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2003-08-21 Michael Snyder <msnyder@redhat.com> + + * tracepoint.c (trace_dump_command): Trace break address + is subject to DECR_PC_AFTER_BREAK. + (set_traceframe_context): Make "trace_line" an int. + Fixes suggested by Mark Newman <mark.newman@lmco.com> + 2003-08-20 Michael Snyder <msnyder@redhat.com> * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG. diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index 3b1cfd5..7d09ff3 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -266,7 +266,7 @@ set_traceframe_context (CORE_ADDR trace_pc) set_internalvar (lookup_internalvar ("trace_file"), value_from_pointer (charstar, (LONGEST) 0)); set_internalvar (lookup_internalvar ("trace_line"), - value_from_pointer (builtin_type_int, (LONGEST) - 1)); + value_from_longest (builtin_type_int, (LONGEST) - 1)); return; } @@ -2511,7 +2511,7 @@ trace_dump_command (char *args, int from_tty) to the tracepoint PC. If not, then the current frame was collected during single-stepping. */ - stepping_frame = (t->address != read_pc ()); + stepping_frame = (t->address != (read_pc () - DECR_PC_AFTER_BREAK)); for (action = t->actions; action; action = action->next) { |