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/13174] New: add-symbol-file failure


http://sourceware.org/bugzilla/show_bug.cgi?id=13174

             Bug #: 13174
           Summary: add-symbol-file failure
           Product: gdb
           Version: 7.2
            Status: NEW
          Severity: critical
          Priority: P2
         Component: symtab
        AssignedTo: unassigned@sourceware.org
        ReportedBy: konrad.schwarz@siemens.com
    Classification: Unclassified


In bug 13173, I noted some syntactic difficulties with the add-symbol-file. 
The description there shows what I am doing: building up a large
add-symbol-file
command to track a dynamically loaded Linux Kernel Module.

My command looks like this:

add-symbol-file il_cat1_ko.ko 0xffffffffa0000000 -readnow  \
   -s .note.gnu.build-id 0xffffffffa00015f0 \
   -s .init.text 0xffffffffa0017000 \
   -s .exit.text 0xffffffffa00015b8 \
   -s .rodata 0xffffffffa0001620 \
   -s .init.rodata 0xffffffffa0017070 \
   -s .rodata.str1.1 0xffffffffa0001718 \
   -s __param 0xffffffffa0001da8 \
   -s __bug_table 0xffffffffa0001dd0 \
   -s .data 0xffffffffa0002f80 \
   -s .gnu.linkonce.this_module 0xffffffffa0002fe0 \
   -s .bss 0xffffffffa0004000 \
   -s .symtab 0xffffffffa0001de0 \
   -s .strtab 0xffffffffa00028f0

(Backslash-newline sequences added for clarity).

This command works fine in GDB-7.0, but fails in both GDB-7.2 and GDB-7.3.1.
Omitting the -readnow flag makes no difference.

After executing the command in 7.2 or 7.3.1, info sources indicates that the
source files of il_cat1_ko.ko are known to the symbol table, and breakpoints
can be set on (at least) symbols within the module, but symbolic
debugging fails: hitting a breakpoint within the module stops the
inferior, but e.g. does not display source line information.

In GDB-7.0, the add-symbol-file command works perfectly fine;
symbolic debugging is possible within the functions defined by the module.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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]