From 081dfbf778bccf638e777fd4babc2911d0a59306 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Fri, 12 Feb 2010 16:15:24 +0000 Subject: [PATCH] gdb/doc/ * gdb.texinfo (Using the Collected Data): Specify that the address range of `tfind outsize' is exclusive, and that the address range of `tfind range' is inclusive. (Tracepoint Packets): Specify that the address range of `QTFrame:range' is inclusive, and that the address range of `QTFrame:outside' is exclusive gdb/ * tracepoint.c (_initialize_tracepoint): Specify that the address range of `tfind outsize' is exclusive, and that the address range of `tfind range' is inclusive, in the commands' help strings. --- gdb/ChangeLog | 6 ++++++ gdb/doc/ChangeLog | 9 +++++++++ gdb/doc/gdb.texinfo | 8 ++++---- gdb/tracepoint.c | 4 ++-- 4 files changed, 21 insertions(+), 6 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f2df5df10b4..bf7acb0f035 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2010-02-12 Pedro Alves + + * tracepoint.c (_initialize_tracepoint): Specify that the address + range of `tfind outsize' is exclusive, and that the address range + of `tfind range' is inclusive, in the commands' help strings. + 2010-02-12 Joel Brobecker Spurious "dll not found" error messages on x64-windows. diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index eb055e6b445..507d855c1b7 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,12 @@ +2010-02-12 Pedro Alves + + * gdb.texinfo (Using the Collected Data): Specify that the address + range of `tfind outsize' is exclusive, and that the address range + of `tfind range' is inclusive. + (Tracepoint Packets): Specify that the address range of + `QTFrame:range' is inclusive, and that the address range of + `QTFrame:outside' is exclusive + 2010-02-12 Vladimir Prus * gdb.texinfo (GDB/MI Result Records): Clarify ^running. diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index d2fd7a82ca1..eb111971ed0 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -9900,11 +9900,11 @@ snapshot with the same value of PC as the current snapshot. @item tfind outside @var{addr1}, @var{addr2} Find the next snapshot whose PC is outside the given range of -addresses. +addresses (exclusive). @item tfind range @var{addr1}, @var{addr2} Find the next snapshot whose PC is between @var{addr1} and -@var{addr2}. @c FIXME: Is the range inclusive or exclusive? +@var{addr2} (inclusive). @item tfind line @r{[}@var{file}:@r{]}@var{n} Find the next snapshot associated with the source line @var{n}. If @@ -30549,12 +30549,12 @@ is a hexadecimal number. @item QTFrame:range:@var{start}:@var{end} Like @samp{QTFrame:@var{n}}, but select the first tracepoint frame after the currently selected frame whose PC is between @var{start} (inclusive) -and @var{end} (exclusive); @var{start} and @var{end} are hexadecimal +and @var{end} (inclusive); @var{start} and @var{end} are hexadecimal numbers. @item QTFrame:outside:@var{start}:@var{end} Like @samp{QTFrame:range:@var{start}:@var{end}}, but select the first -frame @emph{outside} the given range of addresses. +frame @emph{outside} the given range of addresses (exclusive). @item QTStart Begin the tracepoint experiment. Begin collecting data from tracepoint diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index e27b6905a18..f38d6c1efb5 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -3610,12 +3610,12 @@ No argument means forward by one frame; '-' means backward by one frame."), &tfindlist, "tfind ", 1, &cmdlist); add_cmd ("outside", class_trace, trace_find_outside_command, _("\ -Select a trace frame whose PC is outside the given range.\n\ +Select a trace frame whose PC is outside the given range (exclusive).\n\ Usage: tfind outside addr1, addr2"), &tfindlist); add_cmd ("range", class_trace, trace_find_range_command, _("\ -Select a trace frame whose PC is in the given range.\n\ +Select a trace frame whose PC is in the given range (inclusive).\n\ Usage: tfind range addr1,addr2"), &tfindlist); -- 2.30.2