aboutsummaryrefslogtreecommitdiff
path: root/gdb/tracepoint.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2011-02-14 19:19:18 +0000
committerPedro Alves <palves@redhat.com>2011-02-14 19:19:18 +0000
commitc0f61f9c377a278ce83259cbf2251e178bbc0e85 (patch)
tree56db943ad02a10835fa57dfc44a20eb98b66eb88 /gdb/tracepoint.c
parent602427c4af6c2c0946c40a38541d9a5243860744 (diff)
downloadgdb-c0f61f9c377a278ce83259cbf2251e178bbc0e85.zip
gdb-c0f61f9c377a278ce83259cbf2251e178bbc0e85.tar.gz
gdb-c0f61f9c377a278ce83259cbf2251e178bbc0e85.tar.bz2
gdb/
* memrange.c (compare_mem_ranges): Mention sort order in describing comment. (normalize_mem_ranges): Add comment. Fix ra->length calculation. * tracepoint.c (traceframe_available_memory): Extend comment to mention what happens to RESULT when the target does not support the query.
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r--gdb/tracepoint.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index 3eae937..4389f12 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -4635,10 +4635,11 @@ get_traceframe_info (void)
return traceframe_info;
}
-/* Return in RESULT, the set of collected memory in the current
- traceframe, found within the LEN bytes range starting at MEMADDR.
- Returns true if the target supports the query, otherwise returns
- false. */
+/* If the target supports the query, return in RESULT the set of
+ collected memory in the current traceframe, found within the LEN
+ bytes range starting at MEMADDR. Returns true if the target
+ supports the query, otherwise returns false, and RESULT is left
+ undefined. */
int
traceframe_available_memory (VEC(mem_range_s) **result,