tracepoint QTFrame F-1 reply when not from_tty
Roland Puntaier
Roland.Puntaier@br-automation.com
Wed Dec 13 09:03:00 GMT 2006
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
More information about the Gdb
mailing list