aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2010-01-19 09:45:39 +0000
committerJoel Brobecker <brobecker@gnat.com>2010-01-19 09:45:39 +0000
commit65c0609283d2b4eb4da829c7107da9e6d8d68654 (patch)
treedcb44d3c730b0c70f30952e0c81b71a88711b179 /gdb
parentd5cd603472bb4b3c14782728aa55bbafdfe783e8 (diff)
downloadgdb-65c0609283d2b4eb4da829c7107da9e6d8d68654.zip
gdb-65c0609283d2b4eb4da829c7107da9e6d8d68654.tar.gz
gdb-65c0609283d2b4eb4da829c7107da9e6d8d68654.tar.bz2
Comment out unused function.
The function is being commented out instead of deleted because this function is used by some code which is itself commented out. It is unclear which the latter was commented out. * stack.c (print_block_frame_labels): Comment function out.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/stack.c9
2 files changed, 13 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7aefb06..e4ad91c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2010-01-19 Joel Brobecker <brobecker@adacore.com>
+ * stack.c (print_block_frame_labels): Comment function out.
+
+2010-01-19 Joel Brobecker <brobecker@adacore.com>
+
Delete unused or undefined functions.
* breakpoint.c (ep_parse_optional_filename): Delete.
* dcache.c (dcache_write_line): Remove declaration.
diff --git a/gdb/stack.c b/gdb/stack.c
index 6e198e0..2caf9d2 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -1487,8 +1487,16 @@ print_block_frame_locals (struct block *b, struct frame_info *frame,
return values_printed;
}
+
/* Same, but print labels. */
+#if 0
+/* Commented out, as the code using this function has also been
+ commented out. FIXME:brobecker/2009-01-13: Find out why the code
+ was commented out in the first place. The discussion introducing
+ this change (2007-12-04: Support lexical blocks and function bodies
+ that occupy non-contiguous address ranges) did not explain why
+ this change was made. */
static int
print_block_frame_labels (struct gdbarch *gdbarch, struct block *b,
int *have_default, struct ui_file *stream)
@@ -1526,6 +1534,7 @@ print_block_frame_labels (struct gdbarch *gdbarch, struct block *b,
return values_printed;
}
+#endif
/* Print on STREAM all the local variables in frame FRAME, including
all the blocks active in that frame at its current PC.