From: Luis Machado <lgustavo@codesourcery.com>
To: Pedro Alves <palves@redhat.com>, <gdb-patches@sourceware.org>,
Eli Zaretskii <eliz@gnu.org>
Subject: Re: [PATCH, v2] Improve load command's help text
Date: Mon, 13 Feb 2017 13:32:00 -0000 [thread overview]
Message-ID: <7e814823-a8e0-b57c-30bc-8b5a4c51fb94@codesourcery.com> (raw)
In-Reply-To: <8f18d4de-e91d-a781-e1eb-394d80c1d988@redhat.com>
On 02/07/2017 05:12 AM, Pedro Alves wrote:
> I suspect that the reason these weren't originally mentioned
> in the help was/is that the accepted arguments depend on target.
>
> Back when we had support for a bunch of different remote
> targets, we had more target_load implementations.
> Nowadays, there's much fewer targets, though still a couple
> load implemenations:
>
> $ grep "[.\->]to_load = " *
> remote.c: remote_ops.to_load = remote_load;
> remote-sim.c: gdbsim_ops.to_load = gdbsim_load;
>
> remote_load calls generic_load, which accepts the offset.
> gdbsim_load doesn't support an offset, but understands that
> what comes after the filename is an offset.
>
> (we could probably factor out more bits from those
> two implementations to load_command.)
>
>> -@kindex load @var{filename}
>> -@item load @var{filename}
>> +@kindex load @var{filename} @var{offset}
>> +@item load @var{filename} @var{offset}
>> @anchor{load}
>> Depending on what remote debugging facilities are configured into
>> @value{GDBN}, the @code{load} command may be available. Where it exists, it
>> @@ -19611,6 +19611,10 @@ link the program; for other formats, like a.out, the object file format
>> specifies a fixed address.
>> @c FIXME! This would be a good place for an xref to the GNU linker doc.
>>
>> +It is also possible to tell @value{GDBN} to load the symbol file at a specific
>
> executable file, not symbol file.
>
>> +offset described by the optional argument @var{offset}. When @var{offset} is
>> +provided, @var{filename} must also be provided.
>
> LGTM with that, but Eli should review this.
>
> Thanks,
> Pedro Alves
>
>
Thanks. I've addressed both the above and Eli's comments. Pushed as
5cf30ebf64d3c6da961094c615a94d2f1682a478.
next prev parent reply other threads:[~2017-02-13 13:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-06 23:15 Luis Machado
2017-01-17 13:08 ` Luis Machado
2017-01-24 16:22 ` Luis Machado
2017-02-07 10:21 ` Luis Machado
2017-02-07 15:53 ` Eli Zaretskii
2017-02-07 11:12 ` Pedro Alves
2017-02-13 13:32 ` Luis Machado [this message]
2017-02-13 14:57 ` Eli Zaretskii
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=7e814823-a8e0-b57c-30bc-8b5a4c51fb94@codesourcery.com \
--to=lgustavo@codesourcery.com \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=palves@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