GDB bug report 1334 fix

Michael Snyder msnyder@redhat.com
Thu Aug 21 18:12:00 GMT 2003


Newman, Mark (N-Superior Technical Resource Inc) wrote:
> A problem using tstart on an I86 Linux box.  (Actaully this is probably
> an across the board problem)
> 
> -----Original Message-----
> 
> As a better description:
> 
> in tracepoint.c routine set_traceframe_context
> 
> first time set:
> 
>       set_internalvar (lookup_internalvar ("trace_line"),
> 		       value_from_pointer (builtin_type_int, (LONGEST) -
> 1));
> 
> next time set
> 
>   set_internalvar (lookup_internalvar ("trace_line"),
> 		   value_from_longest (builtin_type_int,
> 				       (LONGEST) traceframe_sal.line));
> 
> I changed the first instance to:
> 
>       set_internalvar (lookup_internalvar ("trace_line"),
> 		       value_from_longest (builtin_type_int, (LONGEST) -
> 1));
> 
> This seems to stop the error detection in findvar from griping.

Thanks; I've committed your suggested fix, as follows:


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: tp
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20030821/b01fcf2f/attachment.ksh>


More information about the Gdb-patches mailing list