From 0e828ed16355f173bcf2f6950fb21c86c7ffb9fe Mon Sep 17 00:00:00 2001 From: David Taylor Date: Thu, 16 Nov 2000 14:51:50 +0000 Subject: [PATCH] * 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. --- gdb/ChangeLog | 7 +++++++ gdb/top.c | 2 +- gdb/tracepoint.c | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5750b57aba9..af10432003c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +Thu Nov 16 09:47:57 2000 David Taylor + + * 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. + 2000-11-15 Kevin Buettner * xcoffread.c (arrange_linetable, xcoff_initial_scan): Protoize. diff --git a/gdb/top.c b/gdb/top.c index 7bc55620b7f..0b04c3c1dc8 100644 --- a/gdb/top.c +++ b/gdb/top.c @@ -3852,7 +3852,7 @@ extern HIST_ENTRY *history_get (int); ; else /* "info editing " should print around command number . */ - num = (parse_and_eval_address (args) - history_base) - Hist_print / 2; + num = (parse_and_eval_long (args) - history_base) - Hist_print / 2; } /* "show commands" means print the last Hist_print commands. */ else 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); -- 2.30.2