Comment out unused function.
authorJoel Brobecker <brobecker@gnat.com>
Tue, 19 Jan 2010 09:45:39 +0000 (09:45 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Tue, 19 Jan 2010 09:45:39 +0000 (09:45 +0000)
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.

gdb/ChangeLog
gdb/stack.c

index 7aefb06c09e781be584d30319bd4647a2f4c05b5..e4ad91cc205731daf02a233a1c72242e862011bb 100644 (file)
@@ -1,3 +1,7 @@
+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.
index 6e198e0042b444ae141f7a841a8c2a3693566bfd..2caf9d29ba2ff803d1ec156a2cb23041c85a8877 100644 (file)
@@ -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.
This page took 0.026976 seconds and 4 git commands to generate.