This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]