This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug symtab/21293] New: step into function doesn't work for shared libraries built with -Wl,-znow
- From: "al.drozdov at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 23 Mar 2017 05:44:56 +0000
- Subject: [Bug symtab/21293] New: step into function doesn't work for shared libraries built with -Wl,-znow
- Auto-submitted: auto-generated
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.