From: deffo@gmx.de
To: qiyaoltc@gmail.com
Cc: gdb@sourceware.org
Subject: Re: GDB does not stop at assembly code address
Date: Tue, 18 Oct 2016 16:53:00 -0000 [thread overview]
Message-ID: <trinity-afbcff27-0734-44e2-b2db-cbf9a57aa90b-1476809585225@3capp-gmx-bs05> (raw)
Here's the output:
(gdb) b startup_32
Breakpoint 1 at 0xc1000000: file arch/x86/kernel/head_32.S, line 97.
(gdb) print startup_32
$1 = {<text variable, no debug info>} 0xc1000000 <startup_32>
(gdb) info breakpoints
Num Type Disp Enb Address What
1 breakpoint keep y 0xc1000000 arch/x86/kernel/head_32.S:97
(gdb) b start_kernel
Breakpoint 1 at 0xc1be3755: file init/main.c, line 480.
(gdb) print start_kernel
$1 = {void (void)} 0xc1be3755 <start_kernel>
(gdb) info breakpoints
Num Type Disp Enb Address What
1 breakpoint keep y 0xc1be3755 in start_kernel at init/main.c:480
I guess the "no debug info" would be the explanation, but why is that? The address is listed as a FUNC in readelf -Ws vmlinux, thus it should be correct. What do I have to do?
----------------------------------------------------------------------------------------------
What is startup_32 address and where does GDB set breakpoint?
You can do "print startup_32" and "info breakpoints" to get the answer
of two questions above.
--
Yao (齐尧)
next reply other threads:[~2016-10-18 16:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-18 16:53 deffo [this message]
2016-10-18 19:19 ` Yao Qi
-- strict thread matches above, loose matches on Subject: below --
2016-10-14 15:21 deffo
2016-10-17 11:46 ` Yao Qi
2016-10-18 19:47 ` Jan Kratochvil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=trinity-afbcff27-0734-44e2-b2db-cbf9a57aa90b-1476809585225@3capp-gmx-bs05 \
--to=deffo@gmx.de \
--cc=gdb@sourceware.org \
--cc=qiyaoltc@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox