aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2012-08-14 19:03:47 +0000
committerDoug Evans <dje@google.com>2012-08-14 19:03:47 +0000
commit4cf93a03ff52bf56abb7f48aa916d61ff54ecc91 (patch)
tree9ed91846f04cdfa7269e57ef89280cf994b67299 /gdb
parente56f7f42e4e04bae8bc13031c3c78337e5330030 (diff)
downloadgdb-4cf93a03ff52bf56abb7f48aa916d61ff54ecc91.zip
gdb-4cf93a03ff52bf56abb7f48aa916d61ff54ecc91.tar.gz
gdb-4cf93a03ff52bf56abb7f48aa916d61ff54ecc91.tar.bz2
* gdbtypes.c (make_pointer_type): Remove redundant setting of
TYPE_POINTER_TYPE (type).
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/gdbtypes.c3
2 files changed, 5 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0f4f278..4a63796 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2012-08-14 Doug Evans <dje@google.com>
+
+ * gdbtypes.c (make_pointer_type): Remove redundant setting of
+ TYPE_POINTER_TYPE (type).
+
2012-08-14 Gary Benson <gbenson@redhat.com>
* solib-svr4.c (svr4_free_library_list): Use free_so.
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index 0ea4df1..b4d8a8c 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -324,9 +324,6 @@ make_pointer_type (struct type *type, struct type **typeptr)
gdbarch_address_to_pointer. */
TYPE_UNSIGNED (ntype) = 1;
- if (!TYPE_POINTER_TYPE (type)) /* Remember it, if don't have one. */
- TYPE_POINTER_TYPE (type) = ntype;
-
/* Update the length of all the other variants of this type. */
chain = TYPE_CHAIN (ntype);
while (chain != ntype)