aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2012-08-15 23:43:14 +0000
committerKeith Seitz <keiths@redhat.com>2012-08-15 23:43:14 +0000
commit2873700ec586a04a4715fa0e684e12bd05b9a1c6 (patch)
treea30fd310f1b40b1dbb0df2b4b52b96ff612599cb /gdb
parent1c9f2ed2b3ec76cda0994383c2124c658b8c1800 (diff)
downloadgdb-2873700ec586a04a4715fa0e684e12bd05b9a1c6.zip
gdb-2873700ec586a04a4715fa0e684e12bd05b9a1c6.tar.gz
gdb-2873700ec586a04a4715fa0e684e12bd05b9a1c6.tar.bz2
* gdbtypes.c (opaque_type_resolution): Make static.
Add missing comment. (overload_debug): Add missing comment. (show_opaque_type_resolution): Likewise. (show_overload_debug): Likewise. (print_bit_vector): Remove unnecessary forward declaration. (print_arg_types): Likewise. (dump_fn_fieldlists): Likewise. (print_cplus_stuff): Likewise.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog12
-rw-r--r--gdb/gdbtypes.c17
2 files changed, 23 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3999aa7..24ef63a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,15 @@
+2012-08-15 Keith Seitz <keiths@redhat.com>
+
+ * gdbtypes.c (opaque_type_resolution): Make static.
+ Add missing comment.
+ (overload_debug): Add missing comment.
+ (show_opaque_type_resolution): Likewise.
+ (show_overload_debug): Likewise.
+ (print_bit_vector): Remove unnecessary forward declaration.
+ (print_arg_types): Likewise.
+ (dump_fn_fieldlists): Likewise.
+ (print_cplus_stuff): Likewise.
+
2012-08-15 Tom Tromey <tromey@redhat.com>
* gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index bb9e645..3903ede 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -110,7 +110,16 @@ const struct floatformat *floatformats_ibm_long_double[BFD_ENDIAN_UNKNOWN] = {
&floatformat_ibm_long_double
};
-int opaque_type_resolution = 1;
+/* Should opaque types be resolved? */
+
+static int opaque_type_resolution = 1;
+
+/* A flag to enable printing of debugging information of C++
+ overloading. */
+
+unsigned int overload_debug = 0;
+
+/* A function to show whether opaque types are resolved. */
static void
show_opaque_type_resolution (struct ui_file *file, int from_tty,
@@ -122,7 +131,7 @@ show_opaque_type_resolution (struct ui_file *file, int from_tty,
value);
}
-unsigned int overload_debug = 0;
+/* A function to show whether C++ overload debugging is enabled. */
static void
show_overload_debug (struct ui_file *file, int from_tty,
@@ -132,10 +141,6 @@ show_overload_debug (struct ui_file *file, int from_tty,
value);
}
-static void print_bit_vector (B_TYPE *, int);
-static void print_arg_types (struct field *, int, int);
-static void dump_fn_fieldlists (struct type *, int);
-static void print_cplus_stuff (struct type *, int);
/* Allocate a new OBJFILE-associated type structure and fill it
with some defaults. Space for the type structure is allocated