This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
tracepoint QTFrame F-1 reply when not from_tty
- From: Roland Puntaier <Roland dot Puntaier at br-automation dot com>
- To: gdb at sourceware dot org
- Date: Wed, 13 Dec 2006 10:03:04 +0100
- Subject: tracepoint QTFrame F-1 reply when not from_tty
gdb-6.5.50.20061020, tracepoint.c, line 2055:
I think
if (frameno < -1)
error (_("invalid input (%d is less than zero)"), frameno);
should be
if (frameno < 0)
error (_("invalid input (%d is less than zero)"), frameno);
I get an infinite loop when doing the example in the manual:
(gdb) tfind start
(gdb) while $trace_frame != -1
> output $trace_file
> printf ", line %d (tracepoint #%d)\n", $trace_line, $tracepoint
> tfind
> end
The reason is, that the function trace_find_command is called with -1 from
finish_tfind_command
and the special case mentioned in a comment there is actually not in the
code, but instead there is frameno < -1.
regards, Roland