This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Completion on static functions
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Markus Teich <markus dot teich at stusta dot mhn dot de>
- Cc: gdb at sourceware dot org
- Date: Fri, 12 Apr 2013 12:29:11 +0300
- Subject: Re: Completion on static functions
- References: <83d2u6cnkv dot fsf at gnu dot org> <83li8o9sph dot fsf at gnu dot org> <20130412064749 dot GA14827 at host2 dot jankratochvil dot net> <83hajc9ng9 dot fsf at gnu dot org> <5167C3E2 dot 9070305 at stusta dot mhn dot de>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Fri, 12 Apr 2013 10:20:50 +0200
> From: Markus Teich <markus.teich@stusta.mhn.de>
>
> Try compiling with -O0 to see if these functions indeed get inlined.
No need to recompile:
(gdb) info address print_header_stamp
Symbol "print_header_stamp" is a function at address 0x401cec.
(gdb) info address main
Symbol "main" is a function at address 0x427b10.
But:
(gdb) info address generate_full_header
No symbol "generate_full_header" in current context.
And if I disassemble the code, I don't see any call instructions for
that function (nor even its caller, configure_shar, and its caller's
caller, initialize).
So I think it's quite clear that this function is inlined, as are many
others in that program.