This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Completion on static functions
- From: Markus Teich <markus dot teich at stusta dot mhn dot de>
- To: gdb at sourceware dot org
- Date: Fri, 12 Apr 2013 10:20:50 +0200
- 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>
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.
>