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/21293] New: step into function doesn't work for shared libraries built with -Wl,-znow


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

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

Created attachment 9932
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9932&action=edit
Minimal project to reproduce the bug

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.

-- 
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]