This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: gdb_assert when resetting breakpoints
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Kai Tietz <ktietz70 at googlemail dot com>
- Cc: Kai Tietz <Kai dot Tietz at onevision dot com>, gdb <gdb at sourceware dot org>, Roland Schwingel <roland dot schwingel at onevision dot de>
- Date: Thu, 30 Apr 2009 13:54:55 -0700
- Subject: Re: gdb_assert when resetting breakpoints
- References: <49B67300.1020503@onevision.de> <OF4B52AB72.4D5379BB-ONC125757C.0038E1F9-C125757C.00392A48@onevision.de> <90baa01f0903210926r1758a0a7m379ec93fc4b7d33a@mail.gmail.com>
> >> 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