diff options
author | Michael Snyder <msnyder@specifix.com> | 2003-08-21 18:09:54 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@specifix.com> | 2003-08-21 18:09:54 +0000 |
commit | 7c9c422983041db183b42106d0c20a984c499b57 (patch) | |
tree | 1c200b0787aea2230de720ab00e6aa2331547ea3 /gdb/tracepoint.c | |
parent | 50c5f2d25abc8b49a2e778014f2fb6220c1131bf (diff) | |
download | gdb-7c9c422983041db183b42106d0c20a984c499b57.tar.gz |
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/tracepoint.c')
-rw-r--r-- | gdb/tracepoint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index 3b1cfd54424..7d09ff332ef 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) { |