This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/21623] New: add-symbol-file not loading symbols at the provided .text offset
- From: "krkhan at inspirated dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 19 Jun 2017 14:48:41 +0000
- Subject: [Bug gdb/21623] New: add-symbol-file not loading symbols at the provided .text offset
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=21623
Bug ID: 21623
Summary: add-symbol-file not loading symbols at the provided
.text offset
Product: gdb
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: krkhan at inspirated dot com
Target Milestone: ---
On a guest VM:
> # cat /sys/module/dm_crypt/sections/{.text,.data}
> 0xffffffffa049f000
> 0xffffffffa04a4000
Debugger:
> (gdb) add-symbol-file drivers/md/dm-crypt.ko 0xffffffffa049f000 -s .data 0xffffffffa04a4000
> add symbol table from file "drivers/md/dm-crypt.ko" at
> .text_addr = 0xffffffffa049f000
> .data_addr = 0xffffffffa04a4000
> (y or n) y
> Reading symbols from drivers/md/dm-crypt.ko...done.
> (gdb) p crypt_target.version
> $1 = {1, 15, 0}
> (gdb) info addr crypt_target
> Symbol "crypt_target" is static storage at address 0xffffffffa04a4020.
> (gdb) info addr dm_crypt_exit
> Symbol "dm_crypt_exit" is a function at address 0x4e.
> (gdb) b dm_crypt_exit
> Cannot access memory at address 0x4e
--
You are receiving this mail because:
You are on the CC list for the bug.