This is the mail archive of the gdb-prs@sources.redhat.com 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]

gdb/1334: problem with tstart


>Number:         1334
>Category:       gdb
>Synopsis:       problem with tstart
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 14 17:28:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Mark Newman
>Release:        gdb 5.3
>Organization:
>Environment:
working with tracepoints on an i686-pc-linux-gnu
>Description:
tstart fails when issued (unqualified).
>How-To-Repeat:
just execute tstart (or tfind none)
>Fix:
tracepoint.c:
   set_traceframe_context
 uses set_internalvar for trace_line twice.  Once it sets it as a pointer and once as an int.  Both should refer to an int?

Should be 


  if (trace_pc == -1)		/* cease debugging any trace buffers */
    {
      traceframe_fun = 0;
      traceframe_sal.pc = traceframe_sal.line = 0;
      traceframe_sal.symtab = NULL;
      set_internalvar (lookup_internalvar ("trace_func"),
		       value_from_pointer (charstar, (LONGEST) 0));
      set_internalvar (lookup_internalvar ("trace_file"),
		       value_from_pointer (charstar, (LONGEST) 0));
      set_internalvar (lookup_internalvar ("trace_line"),
		       value_from_longest (builtin_type_int, (LONGEST) - 1));
      return;
    }

>Release-Note:
>Audit-Trail:
>Unformatted:


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