gdb_assert when resetting breakpoints

Joel Brobecker brobecker@adacore.com
Thu Apr 30 21:37:00 GMT 2009


> >> What has happenend: In breakpoint.c line 7417 you find:
> >> sals = decode_line_1 (&s, 1, (struct symtab *) NULL, 0, (char ***)
> >> NULL,not_found_ptr);
> >> s points to "main" at that moment as found in the breakpoint structure
> >> supplied to breakpoint_re_set_one().
> >>
> >> sals (returned from decode_line_1) contains 2 entries.  Sals entry
> >> 0 points to the ObjectiveC METHOD main of the foundation base class
> >> NSThread (written in ObjC notation -[NSThread main]).

The problem, at this point, seems to be the fact that decode_line_1
should NOT be returning a match for this ObjC class method, since
the breakpoint language was C.  I think we need to find out why
this method was selected as a match, and prevent it from happening.

-- 
Joel



More information about the Gdb mailing list