This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 0/5] Explicit linespecs
- From: Pedro Alves <palves at redhat dot com>
- To: Keith Seitz <keiths at redhat dot com>
- Cc: Eli Zaretskii <eliz at gnu dot org>, gdb-patches at sourceware dot org
- Date: Wed, 01 Aug 2012 11:13:47 +0100
- Subject: Re: [RFA 0/5] Explicit linespecs
- References: <50120ECF.4020709@redhat.com> <834notjwk1.fsf@gnu.org> <50158603.60503@redhat.com>
On 07/29/2012 07:50 PM, Keith Seitz wrote:
> On 07/27/2012 04:03 AM, Eli Zaretskii wrote:
>
>> What exactly does the "offset" option do? Is it a line offset, or is
>> it measured in other units? If it's a line offset, then why not call
>> it "-line"? If "offset" means it's a relative line offset, then what
>> is it relative to?
>
> It is completely analogous to the linespec parser. It could be an absolute line number (if -source given) or relative (if -function/-label). [Note that function/label relative offsets have not been implemented yet -- right now they are simply ignored (per maintainers request).]
ENOEXAMPLES :-)
It might be good to check what other debuggers spell these options.
>
> I can certainly rename the option to be more user-friendly. I just used the same terminology that is used inside the parser.
>
>> Also, the above doesn't seem to cover the magical '*function' location
>> spec.
>
> That's the -address option.
>
> Keith
--
Pedro Alves