This is the mail archive of the gdb-patches@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: [patchv2] Record objfile->original_name as an absolute path


> > +/* Cheezy hack to prevent set_initial_language from trying to look up main.
> > +   We do this so that gdb won't try to open the dwp file when the file is
> > +   first selected.  This gives us a chance to do a chdir before attempting
> > +   to access the debug info.  */
> > +asm (".globl main.main");
> > +asm ("main.main: .byte 0");
> > +
> >  int
> >  main (int argc, char **argv)
> >  {
> 
> People are actually ok with this?

FWIW, I tend to be a little less demanding in the testsuite.
But the first question is whether there is another alternative.
Is there?

-- 
Joel


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