[Bug gdb/25215] systemtap probes appear to break armhf gdb with arm64 kernel

michael.hudson at canonical dot com sourceware-bugzilla@sourceware.org
Fri Nov 22 23:29:00 GMT 2019


https://sourceware.org/bugzilla/show_bug.cgi?id=25215

--- Comment #7 from Michael Hudson-Doyle <michael.hudson at canonical dot com> ---
(In reply to Mark Wielaard from comment #6)
> (In reply to Michael Hudson-Doyle from comment #4)
> > (In reply to Frank Ch. Eigler from comment #2)
> > > Could be worth dumping the .note.stapsdt section here, along with a
> > > disassembly of the affected functions (init_start etc.), to confirm that the
> > > addresses are computed correctly by gas.
> > 
> > root@disco:~# readelf -x .note.stapsdt /lib/ld-linux-armhf.so.3
> 
> Try eu-readelf -n which will decode them

eu-reroot@disco:~# eu-readelf -n /lib/ld-linux-armhf.so.3

Note section [ 1] '.note.gnu.build-id' of 36 bytes at offset 0x114:
  Owner          Data size  Type
  GNU                   20  GNU_BUILD_ID
    Build ID: 2aadba4a58d4f3052c349d7fa6ac8bd070c75eb4

Note section [21] '.note.stapsdt' of 764 bytes at offset 0x1989c:
  Owner          Data size  Type
  stapsdt               39  Version: 3
    PC: 0x28d2, Base: 0x17ecc, Semaphore: 0
    Provider: rtld, Name: init_start, Args: '-4@#0 4@r4'
  stapsdt               42  Version: 3
    PC: 0x2e84, Base: 0x17ecc, Semaphore: 0
    Provider: rtld, Name: init_complete, Args: '-4@#0 4@r4'
  stapsdt               39  Version: 3
    PC: 0x4306, Base: 0x17ecc, Semaphore: 0
    Provider: rtld, Name: map_failed, Args: '-4@r3 4@r5'
  stapsdt               38  Version: 3
    PC: 0x46cc, Base: 0x17ecc, Semaphore: 0
    Provider: rtld, Name: map_start, Args: '-4@r3 4@r5'
  stapsdt               46  Version: 3
    PC: 0xdec0, Base: 0x17ecc, Semaphore: 0
    Provider: rtld, Name: map_complete, Args: '-4@r3 4@r6 4@r4'
  stapsdt               40  Version: 3
    PC: 0xdf44, Base: 0x17ecc, Semaphore: 0
    Provider: rtld, Name: reloc_start, Args: '-4@r3 4@r2'
  stapsdt               48  Version: 3
    PC: 0xe19c, Base: 0x17ecc, Semaphore: 0
    Provider: rtld, Name: reloc_complete, Args: '-4@r3 4@r2 4@r4'
  stapsdt               40  Version: 3
    PC: 0xea38, Base: 0x17ecc, Semaphore: 0
    Provider: rtld, Name: unmap_start, Args: '-4@r5 4@r4'
  stapsdt               43  Version: 3
    PC: 0xec00, Base: 0x17ecc, Semaphore: 0
    Provider: rtld, Name: unmap_complete, Args: '-4@r3 4@r4'
  stapsdt               41  Version: 3
    PC: 0x1203c, Base: 0x17ecc, Semaphore: 0
    Provider: rtld, Name: setjmp, Args: '4@r0 -4@r1 4@r14'
  stapsdt               41  Version: 3
    PC: 0x120a8, Base: 0x17ecc, Semaphore: 0
    Provider: rtld, Name: longjmp, Args: '4@r0 -4@r1 4@r4'
  stapsdt               49  Version: 3
    PC: 0x120da, Base: 0x17ecc, Semaphore: 0
    Provider: rtld, Name: longjmp_target, Args: '4@r0 -4@r1 4@r14'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gdb-prs mailing list