From: Doug Evans <dje@google.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: Jan Kratochvil <jan.kratochvil@redhat.com>,
gdb-patches <gdb-patches@sourceware.org>
Subject: Re: [patchv2] Record objfile->original_name as an absolute path
Date: Thu, 10 Oct 2013 16:31:00 -0000 [thread overview]
Message-ID: <CADPb22RujxxHmieAMk6QeAH9DFQYa98gWAR+qPvWvKgMpuWsRg@mail.gmail.com> (raw)
In-Reply-To: <20131010045819.GL3092@adacore.com>
On Wed, Oct 9, 2013 at 9:58 PM, Joel Brobecker <brobecker@adacore.com> wrote:
>> > +/* 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?
I was thinking,
We have auto-solib-add and sharedlibrary.
We just need something like that for symfile_objfile.
[I realize it's a bit different. What I mean is we need a way to stop
gdb from auto-loading symbols and then a command to load the symbols
at a later point. The catch here is that we need gdb to already know
about the file (we need to exercise whatever path gets set in the
objfile) - we just need to defer loading symbols until after we get
gdb to cd to a different directory.]
I'm trying to think of a use-case beyond the testsuite to better
justify having such a feature.
[One could do something to defer setting the initial language, but
that's just one reason why gdb might want to load symbols
immediately.]
next prev parent reply other threads:[~2013-10-10 16:31 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-26 1:29 [RFC] " Doug Evans
2013-09-26 1:54 ` Doug Evans
2013-09-26 8:28 ` Jan Kratochvil
2013-09-26 8:47 ` Jan Kratochvil
2013-09-27 19:37 ` Tom Tromey
2013-10-08 18:23 ` [patch] OBJF_NOT_FILENAME [Re: [RFC] Record objfile->original_name as an absolute path] Jan Kratochvil
2013-10-08 20:18 ` Tom Tromey
2013-10-09 13:23 ` [commit] " Jan Kratochvil
2013-10-09 14:46 ` [patchv2] Record objfile->original_name as an absolute path Jan Kratochvil
2013-10-09 16:37 ` Doug Evans
2013-10-10 4:58 ` Joel Brobecker
2013-10-10 16:31 ` Doug Evans [this message]
2013-10-10 16:37 ` Jan Kratochvil
2013-10-10 18:07 ` Tom Tromey
2013-10-10 18:55 ` Doug Evans
2013-12-02 21:26 ` [commit] " Jan Kratochvil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CADPb22RujxxHmieAMk6QeAH9DFQYa98gWAR+qPvWvKgMpuWsRg@mail.gmail.com \
--to=dje@google.com \
--cc=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
--cc=jan.kratochvil@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox