This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] p-valprint.c/pascal_val_print: discard unused value.
- From: Michael Snyder <msnyder at vmware dot com>
- To: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Mon, 28 Feb 2011 14:47:03 -0800
- Subject: [commit] p-valprint.c/pascal_val_print: discard unused value.
I would like to have removed the check_typedef call entirely, but I
can't be sure it doesn't have side effects that would affect the
following call.
checked in.
2011-02-28 Michael Snyder <msnyder@vmware.com>
* p-valprint.c (pascal_val_print): Discard unused value.
Index: p-valprint.c
===================================================================
RCS file: /cvs/src/src/gdb/p-valprint.c,v
retrieving revision 1.88
diff -u -p -u -p -r1.88 p-valprint.c
--- p-valprint.c 18 Feb 2011 14:17:38 -0000 1.88
+++ p-valprint.c 28 Feb 2011 22:43:26 -0000
@@ -149,7 +149,7 @@ pascal_val_print (struct type *type, con
print_address_demangle (gdbarch, addr, stream, demangle);
break;
}
- elttype = check_typedef (TYPE_TARGET_TYPE (type));
+ check_typedef (TYPE_TARGET_TYPE (type));
addr = unpack_pointer (type, valaddr + embedded_offset);
print_unpacked_pointer: