This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
FYI: remove dead code from jv-valprint.c
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 23 Feb 2012 13:55:23 -0700
- Subject: FYI: remove dead code from jv-valprint.c
I'm checking this in.
This removes some #if 0 code from jv-valprint.c.
This code is dead and rotted as well; it refers to a C++ ABI well
predating anything actually in use by gcj.
Tom
2012-02-23 Tom Tromey <tromey@redhat.com>
* jv-valprint.c (java_val_print): Remove dead code.
Index: jv-valprint.c
===================================================================
RCS file: /cvs/src/src/gdb/jv-valprint.c,v
retrieving revision 1.57
diff -u -r1.57 jv-valprint.c
--- jv-valprint.c 7 Feb 2012 04:48:21 -0000 1.57
+++ jv-valprint.c 23 Feb 2012 20:54:22 -0000
@@ -500,21 +500,6 @@
val, options, 0, stream);
break;
}
-#if 0
- if (options->vtblprint && cp_is_vtbl_ptr_type (type))
- {
- /* Print the unmangled name if desired. */
- /* Print vtable entry - we only get here if we ARE using
- -fvtable_thunks. (Otherwise, look under TYPE_CODE_STRUCT.) */
- /* Extract an address, assume that it is unsigned. */
- print_address_demangle
- (gdbarch,
- extract_unsigned_integer (valaddr + embedded_offset,
- TYPE_LENGTH (type)),
- stream, demangle);
- break;
- }
-#endif
addr = unpack_pointer (type, valaddr + embedded_offset);
if (addr == 0)
{