Completion on static functions
Markus Teich
markus.teich@stusta.mhn.de
Fri Apr 12 08:20:00 GMT 2013
Try compiling with -O0 to see if these functions indeed get inlined.
--Markus
Am 12.04.2013 10:12, schrieb Eli Zaretskii:
>> Date: Fri, 12 Apr 2013 08:47:49 +0200
>> From: Jan Kratochvil <jan.kratochvil@redhat.com>
>> Cc: gdb@sourceware.org
>>
>> On Fri, 12 Apr 2013 08:19:22 +0200, Eli Zaretskii wrote:
>>> So does this silence mean that no one else bumped into this yet?
>>
>> there is no reproducer above.
>
> Sorry about that. I didn't imagine the problem was so rare. My bad.
>
> Try this: build the latest sharutils 4.13.4 with CFLAGS='-g3 -O2',
> then do this:
>
> $ cd src && gdb ./shar
> (gdb) break generate_full_ TAB
>
> (There is a static function named generate_full_header in shar.c.)
>
> As mentioned before, the problem happened to me with GCC 4.7.2 on
> MinGW. As expected, GDB reports (in "info source") that the debug
> info is DWARF 2 with preprocessor macro info.
>
> Let me know if you need more info from GDB, I have the build directory
> handy with the object and executable files that trigger this problem.
>
More information about the Gdb
mailing list