This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patchv2] Record objfile->original_name as an absolute path
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Doug Evans <dje at google dot com>
- Cc: Jan Kratochvil <jan dot kratochvil at redhat dot com>, gdb-patches <gdb-patches at sourceware dot org>
- Date: Thu, 10 Oct 2013 08:58:19 +0400
- Subject: Re: [patchv2] Record objfile->original_name as an absolute path
- Authentication-results: sourceware.org; auth=none
- References: <yjt2zjr09xqr dot fsf at ruffy dot mtv dot corp dot google dot com> <20130926084713 dot GA11031 at host2 dot jankratochvil dot net> <20131009144629 dot GC27355 at host2 dot jankratochvil dot net> <CADPb22QC+HRc6fju=+s1mzGL1dkkRJ01N8JEAEJ6xzQ=qpu=Sw at mail dot gmail dot com>
> > +/* 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