Re: gdb not detecting function sections correctly for functions in overlays

Pedro Alves
2013-10-22T17:32:13Z

On 10/22/2013 05:52 PM, Tom Tromey wrote:
>>>>>> "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.

Assuming the patch is either small (10 lines or so), or we can get the
copyright assigned, which would be great. I don't see Cadence mentioned
in copyright.list though.

Otherwise, a description of the bug might actually be better, for allowing
a clean room implementation.

--
Pedro Alves