NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Debugging CUPS binaries



Hi!

I´m having trouble working on CUPS binaries in gdb on NetBSD
7.0/amd64, which simply is not possible:

# gdb lpstat
GNU gdb (GDB) 7.7.1
[...]
Reading symbols from lpstat...done.
(gdb) b main
Breakpoint 1 at 0x384e0: file lpstat.c, line 50.
(gdb) r
Starting program: /usr/pkg/bin/lpstat
Error in re-setting breakpoint 1: Cannot access memory at address 0x384e0
Error in re-setting breakpoint 1: Cannot access memory at address 0x384e0
[Inferior 1 (process 13678) exited normally]
(gdb) quit


This might be because these are PIE binaries:

# readelf -h /usr/pkg/bin/lpstat|grep Type
  Type:                              DYN (Shared object file)

I have installed gdb 7.11 from pkgsrc which works neither. However,
gdb 7.9.1 on Linux (SLES 12) has no issues.

What´s wrong here?


Home | Main Index | Thread Index | Old Index