[Bug breakpoints/26096] gdb sets breakpoint at cold clone
bernd.edlinger at hotmail dot de
sourceware-bugzilla@sourceware.org
Tue Jun 1 14:14:52 GMT 2021
https://sourceware.org/bugzilla/show_bug.cgi?id=26096
--- Comment #10 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
Apparently I misunderstood your comment above:
> Either way, in absence of a fix in gcc for this, we could adapt a interpretation
> that the entry pc is the start address of the first range. At least, this works
> for this exec:
What I meant, is that currently the entry_pc is ignored at least when
you want to place a break point on an inline function.
Instead the start of the first subrange is used.
But the entry_pc is sometimes not the start of the first subrange,
but maybe the second or third.
My patch re-orders the sub-range so that the subrange that starts at
the entry_pc becomes the first one.
but I always looked at the breakpoint addresses:
(gdb) b <symbol>
(gdb) info b
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Gdb-prs
mailing list