Completion on static functions

Eli Zaretskii eliz@gnu.org
Fri Apr 12 09:29:00 GMT 2013


> 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.



More information about the Gdb mailing list