summaryrefslogtreecommitdiff
path: root/gdb/tracepoint.c
diff options
context:
space:
mode:
authorDavid Taylor <taylor@redhat.com>2000-11-16 14:51:50 +0000
committerDavid Taylor <taylor@redhat.com>2000-11-16 14:51:50 +0000
commit3b1fddbd8bac03b663ac9ed1bebec1b0b921c41d (patch)
tree4d52e84dec1f08b0d880741c5f437e06a2864826 /gdb/tracepoint.c
parent7d20378d629449a09683c9961681f9d8af3a51c1 (diff)
downloadgdb-3b1fddbd8bac03b663ac9ed1bebec1b0b921c41d.tar.gz
* tracepoint.c (trace_find_tracepoint_command): Replace call to
parse_and_eval_address with a call to parse_and_eval_long as we are evaluating an integer, not an address. * top.c (show_commands): Ditto.
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r--gdb/tracepoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index 8c229d4da43..6ac375950b0 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -2055,7 +2055,7 @@ trace_find_tracepoint_command (char *args, int from_tty)
else
tdp = tracepoint_number; /* default is current TDP */
else
- tdp = parse_and_eval_address (args);
+ tdp = parse_and_eval_long (args);
sprintf (target_buf, "QTFrame:tdp:%x", tdp);
finish_tfind_command (target_buf, sizeof (target_buf), from_tty);