This is the mail archive of the gdb@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]

Re: Completion on static functions


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]