aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-11-21 18:07:17 +0000
committerTom Tromey <tromey@redhat.com>2012-11-21 18:07:17 +0000
commitcfcad218b1aac54ce8a17794031feba20910a403 (patch)
tree9739cd1e2c1f0130080da5b1a4778dfeb39e5bda /gdb
parentabe9f67d45d38ee87b501da03a9b9778d31095fb (diff)
downloadgdb-cfcad218b1aac54ce8a17794031feba20910a403.zip
gdb-cfcad218b1aac54ce8a17794031feba20910a403.tar.gz
gdb-cfcad218b1aac54ce8a17794031feba20910a403.tar.bz2
* gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
field. (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE): Remove. * c-typeprint.c (c_type_print_base): Update.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog8
-rw-r--r--gdb/c-typeprint.c6
-rw-r--r--gdb/gdbtypes.h13
3 files changed, 8 insertions, 19 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7f0d3e2..f567d47 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,11 @@
+2012-11-21 Tom Tromey <tromey@redhat.com>
+
+ * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
+ field.
+ (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
+ Remove.
+ * c-typeprint.c (c_type_print_base): Update.
+
2012-11-21 Yao Qi <yao@codesourcery.com>
PR tdep/7438
diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c
index c6f8bb2..161b3fe 100644
--- a/gdb/c-typeprint.c
+++ b/gdb/c-typeprint.c
@@ -1308,12 +1308,6 @@ c_type_print_base (struct type *type, struct ui_file *stream,
}
fprintfi_filtered (level, stream, "}");
-
- if (TYPE_LOCALTYPE_PTR (type) && show >= 0)
- fprintfi_filtered (level,
- stream, _(" (Local at %s:%d)\n"),
- TYPE_LOCALTYPE_FILE (type),
- TYPE_LOCALTYPE_LINE (type));
}
do_cleanups (local_cleanups);
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h
index d5a7cf5..b23df9a 100644
--- a/gdb/gdbtypes.h
+++ b/gdb/gdbtypes.h
@@ -853,15 +853,6 @@ struct cplus_struct_type
}
*fn_fieldlists;
- /* Pointer to information about enclosing scope, if this is a
- local type. If it is not a local type, this is NULL. */
- struct local_type_info
- {
- char *file;
- int line;
- }
- *localtype_ptr;
-
/* typedefs defined inside this class. TYPEDEF_FIELD points to an array of
TYPEDEF_FIELD_COUNT elements. */
struct typedef_field
@@ -1226,10 +1217,6 @@ extern void allocate_gnat_aux_type (struct type *);
#define TYPE_FN_FIELD_VIRTUAL_P(thisfn, n) ((thisfn)[n].voffset > 1)
#define TYPE_FN_FIELD_STATIC_P(thisfn, n) ((thisfn)[n].voffset == VOFFSET_STATIC)
-#define TYPE_LOCALTYPE_PTR(thistype) (TYPE_CPLUS_SPECIFIC(thistype)->localtype_ptr)
-#define TYPE_LOCALTYPE_FILE(thistype) (TYPE_CPLUS_SPECIFIC(thistype)->localtype_ptr->file)
-#define TYPE_LOCALTYPE_LINE(thistype) (TYPE_CPLUS_SPECIFIC(thistype)->localtype_ptr->line)
-
#define TYPE_TYPEDEF_FIELD_ARRAY(thistype) \
TYPE_CPLUS_SPECIFIC (thistype)->typedef_field
#define TYPE_TYPEDEF_FIELD(thistype, n) \