This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Fix overlapping objfiles with discontiguous CUs (PR 13346) [Re: Multiple breakpoint issue when debugging loadable kernel module]


On 2011-11-08 01:31, Jan Kratochvil wrote:
> On Tue, 01 Nov 2011 21:12:47 +0100, Jan Kratochvil wrote:
>> On Tue, 01 Nov 2011 16:31:29 +0100, Jan Kiszka wrote:
>>> (gdb) b ieee80211_register_hw
>>> Breakpoint 1 at 0xffffffffa01b31a0: file /data/linux/net/mac80211/main.c, line 646.
>>> (gdb) l ieee80211_register_hw
>>> No line number known for ieee80211_register_hw.
> [...]
>> 	https://bugzilla.redhat.com/show_bug.cgi?id=714824#c6
>>
>> Sure it also may be a completely different bug and it may really be in GDB.
> 
> That was unrelated bug.
> 
> 
> find_pc_sect_psymtab tries hard to properly recognize discontiguous CUs and
> fallback to the old TEXTLOW/TEXTHIGH method only if there is no other choice.
> 
> The problem is the fallback happens already for a single objfile.  In the case
> Linux kernel case there is overlapping vmlinux with module.ko as vmlinux spans
> from the code at 0xffffffff81000000 to vDSOs at 0xffffffffff600000 while
> kernel modules are between these.
> 
> The fallback really should not be needed for DWARF psymtabs.  Skip it.
> 
> No regressions on {x86_64,x86_64-m32,i686}-fedora16pre-linux-gnu.
> 

I can confirm it fixes the issue here.

Thanks a lot!
Jan

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]