This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: gdb not detecting function sections correctly for functions in overlays
- From: Tom Tromey <tromey at redhat dot com>
- To: Arnab Bhaduri <arnab at cadence dot com>
- Cc: "gdb\ at sourceware dot org" <gdb at sourceware dot org>
- Date: Tue, 22 Oct 2013 10:52:58 -0600
- Subject: Re: gdb not detecting function sections correctly for functions in overlays
- Authentication-results: sourceware.org; auth=none
- References: <D3CD0638AD056342925227F12D6A2AB50913A859FE at MAILSJ3 dot global dot cadence dot com> <8761t580mi dot fsf at fleche dot redhat dot com> <D3CD0638AD056342925227F12D6A2AB50913E2E289 at MAILSJ3 dot global dot cadence dot com>
>>>>> "Arnab" == Arnab Bhaduri <arnab@cadence.com> writes:
Arnab> I have made a couple of local changes that make things work better for
Arnab> me. Perhaps you could give me your opinion on these (described below).
Arnab> 1) add_location_to_breakpoint() (breakpoint.c) - this calls
Arnab> set_breakpoint_location_function() which sets the function name
Arnab> incorrectly because it uses the PC-to-section lookup. I modified this
Arnab> like so:
[...]
I think a patch would be simpler to understand.
Tom