This is the mail archive of the gdb-prs@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]

[Bug symtab/21292] New: step into function doesn't work for shared libraries built with -Wl,-znow


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

            Bug ID: 21292
           Summary: step into function doesn't work for shared libraries
                    built with -Wl,-znow
           Product: gdb
           Version: 7.12.1
            Status: RESOLVED
          Severity: normal
          Priority: P2
         Component: symtab
          Assignee: unassigned at sourceware dot org
          Reporter: al.drozdov at gmail dot com
  Target Milestone: ---
            Status: RESOLVED
        Resolution: DUPLICATE

If a shared library is created with -Wl,-znow option then gdb cannot step into
its internal functions. Instead, it behaves as if 'next' command was just
typed. But it is still possible to make breakpoints on the library functions
gdb cannot step into, and then gdb successfully stops on them.

It seems that this because ".rela.plt" section is absent on the libraries built
with -Wl,-znow.

gdb 7.12.1 on Ubuntu 6.04.2 x86_64, ld 2.26.1.

--- Comment #1 from Alexander Drozdov <al.drozdov at gmail dot com> ---
Duplicate of 21293

*** This bug has been marked as a duplicate of bug 21293 ***

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

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