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


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