Public bug reported:

Binary package hint: gdb

See the following transcript:

$ gdb /sbin/ldconfig 
GNU gdb 6.6-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(gdb) info files
Symbols from "/sbin/ldconfig".
Local exec file:
        `/sbin/ldconfig', file type elf32-i386.
        Entry point: 0x8048110
        0x080480d4 - 0x080480f4 is .note.ABI-tag
        0x080480f4 - 0x0804810b is .init
        0x08048110 - 0x080b84c8 is .text
        [...]
        0x080d9b68 - 0x080d9b7c is __libc_freeres_ptrs
(gdb) break *0x8048110
Breakpoint 1 at 0x8048110
(gdb) run
Starting program: /sbin/ldconfig 
warning: shared library handler failed to enable breakpoint
(no debugging symbols found)
/sbin/ldconfig: Can't create temporary cache file /etc/ld.so.cache~: Permission 
denied

Program exited with code 01.
(gdb) quit


gdb should break after loading the binary, but before executing any 
instructions. It doesn't.

I am using feisty with gdb 6.6.dfsg-1ubuntu2 on a Samsung X20 XVM 1730 V
laptop (i386 architecture).

** Affects: gdb (Ubuntu)
     Importance: Undecided
         Status: New

-- 
gdb cannot break on entry point for statically linked binaries
https://bugs.launchpad.net/bugs/151518
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to