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: [RFA 0/5] Explicit linespecs


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).]


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


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