This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug breakpoints/13346] Multiple breakpoints/losing symbol tableissue
- From: "jan.kratochvil at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 26 Oct 2011 15:12:28 +0000
- Subject: [Bug breakpoints/13346] Multiple breakpoints/losing symbol tableissue
- Auto-submitted: auto-generated
- References: <bug-13346-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=13346
--- Comment #5 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2011-10-26 15:12:28 UTC ---
(In reply to comment #4)
> Should I be looking at section information for .text?
Yes.
> libblah.so:
> [12] .text PROGBITS 0000000000000540 00000540
> 0000000000000138 0000000000000000 AX 0 0 16
Therefore add for any address you find in /proc/PID/maps 0x540 in this case.
> guest# cat /sys/module/openvswitch_mod/sections/.text
> 0xffffffffa00ca000
Not sure why they call it `.text' but there is only a probability of 1:4095
that this is really a .text address. Most probably you need to add the .text
section address above (from readelf -WS ./openvswitch_mod.ko | grep '\.text').
> (gdb) add-symbol-file ~/vm/openvswitch_mod.ko 0xffffffffa00ca000
> add symbol table from file "/home/jvimal/vm/openvswitch_mod.ko" at
> .text_addr = 0xffffffffa00ca000
With probability 99.98% this is wrong address so the GDB behavior is bogus
afterwards.
> So, both gdb and guest say that the function dp_process_received_packet is at
> 0xffffffffa00cd3c8.
I do not understand this part but anyway some of the addresses you specified
wrongly. Not going to spend debugging a situation which is already wrong.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.