This is the mail archive of the gdb-patches@sources.redhat.com 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: [RFA] minsyms.c: Fix switching to GNU v3 ABI


On Mar 10 13:30, Ian Lance Taylor wrote:
> Corinna Vinschen <vinschen@redhat.com> writes:
> 
> > On Mar 10 11:37, Daniel Jacobowitz wrote:
> > > What's the one symbol with just one underscore?
> > 
> >     _ZZN9__gnu_cxx27__verbose_terminate_handlerEvE11terminating
> 
> That should be investigated further, as it probably indicates a gcc
> bug.
> 
> Consider this source code:
> 
> void __verbose_terminate_handler()
> {
>   static int terminating = 0;
>   if (terminating)
>     {
>       return;
>     }
>   terminating = 1;
> }
> 
> If you compile it as a C file, do you see the initial underscore on
> "terminating".  If you compile it as a C++ file, do you see two
> initial underscores before the 'Z'?  It should be consistent.

It seems to be consistent:

  $ nm x.c.o 
  00000000 T ___verbose_terminate_handler
  00000000 b terminating.0

  $ nm x.cc.o
  00000000 b _ZZ27__verbose_terminate_handlervE11terminating
  00000000 T __Z27__verbose_terminate_handlerv

Corinna

-- 
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.


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