summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-05-15 22:18:43 +0000
committerAndrew Cagney <cagney@redhat.com>2003-05-15 22:18:43 +0000
commit00fad14cedd739d88553fd5d4538d4101cfe1cb8 (patch)
tree72db159595679428f55d45a476855afbe3871d79
parent18b0a07b83f9ae6d2bc1ee60952f7f94c5580244 (diff)
downloadgdb-00fad14cedd739d88553fd5d4538d4101cfe1cb8.tar.gz
2003-05-15 Andrew Cagney <cagney@redhat.com>
* c-lang.c (c_printstr): Delete "extern inspect_it" declaration. * p-valprint.c (pascal_object_print_value_fields): Ditto. * p-lang.c (pascal_printstr): Ditto. * objc-lang.c (objc_printstr): Ditto. * m2-lang.c (m2_printstr): Ditto. * jv-valprint.c (java_print_value_fields): Ditto. * f-lang.c (f_printstr): Ditto. * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h". * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and for repeat_count_threshold. * Makefile.in (cp-valprint.o): Update dependencies.
-rw-r--r--gdb/ChangeLog14
-rw-r--r--gdb/Makefile.in2
-rw-r--r--gdb/ada-valprint.c3
-rw-r--r--gdb/c-lang.c1
-rw-r--r--gdb/cp-valprint.c3
-rw-r--r--gdb/f-lang.c1
-rw-r--r--gdb/jv-valprint.c1
-rw-r--r--gdb/m2-lang.c1
-rw-r--r--gdb/objc-lang.c1
-rw-r--r--gdb/p-lang.c1
-rw-r--r--gdb/p-valprint.c1
11 files changed, 16 insertions, 13 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d1c4c6ddeaa..5e4706f57fc 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,17 @@
+2003-05-15 Andrew Cagney <cagney@redhat.com>
+
+ * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
+ * p-valprint.c (pascal_object_print_value_fields): Ditto.
+ * p-lang.c (pascal_printstr): Ditto.
+ * objc-lang.c (objc_printstr): Ditto.
+ * m2-lang.c (m2_printstr): Ditto.
+ * jv-valprint.c (java_print_value_fields): Ditto.
+ * f-lang.c (f_printstr): Ditto.
+ * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
+ * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
+ for repeat_count_threshold.
+ * Makefile.in (cp-valprint.o): Update dependencies.
+
2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
* ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 6bc1f7d2d1a..60610231990 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -1628,7 +1628,7 @@ cp-support.o: cp-support.c $(defs_h) $(cp_support_h) $(gdb_string_h) \
cp-valprint.o: cp-valprint.c $(defs_h) $(gdb_obstack_h) $(symtab_h) \
$(gdbtypes_h) $(expression_h) $(value_h) $(command_h) $(gdbcmd_h) \
$(demangle_h) $(annotate_h) $(gdb_string_h) $(c_lang_h) $(target_h) \
- $(cp_abi_h)
+ $(cp_abi_h) $(valprint_h)
cpu32bug-rom.o: cpu32bug-rom.c $(defs_h) $(gdbcore_h) $(target_h) \
$(monitor_h) $(serial_h) $(regcache_h) $(m68k_tdep_h)
cris-tdep.o: cris-tdep.c $(defs_h) $(frame_h) $(symtab_h) $(inferior_h) \
diff --git a/gdb/ada-valprint.c b/gdb/ada-valprint.c
index 5b90c0683cd..11c42bf9e67 100644
--- a/gdb/ada-valprint.c
+++ b/gdb/ada-valprint.c
@@ -46,9 +46,6 @@ struct ada_val_print_args
enum val_prettyprint pretty;
};
-extern int inspect_it;
-extern unsigned int repeat_count_threshold;
-
static void print_record (struct type *, char *, struct ui_file *, int,
int, enum val_prettyprint);
diff --git a/gdb/c-lang.c b/gdb/c-lang.c
index fbdf0054afa..5ce0bcbbe87 100644
--- a/gdb/c-lang.c
+++ b/gdb/c-lang.c
@@ -91,7 +91,6 @@ c_printstr (struct ui_file *stream, char *string, unsigned int length,
unsigned int things_printed = 0;
int in_quotes = 0;
int need_comma = 0;
- extern int inspect_it;
/* If the string was not truncated due to `set print elements', and
the last byte of it is a null, we don't print that, in traditional C
diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c
index 9a32e9c80b9..60a20934312 100644
--- a/gdb/cp-valprint.c
+++ b/gdb/cp-valprint.c
@@ -34,6 +34,7 @@
#include "c-lang.h"
#include "target.h"
#include "cp-abi.h"
+#include "valprint.h"
/* Indication of presence of HP-compiled object files */
extern int hp_som_som_object_present; /* defined in symtab.c */
@@ -266,8 +267,6 @@ cp_print_value_fields (struct type *type, struct type *real_type, char *valaddr,
fprintf_filtered (stream, "<No data fields>");
else
{
- extern int inspect_it;
-
if (dont_print_statmem == 0)
{
/* If we're at top level, carve out a completely fresh
diff --git a/gdb/f-lang.c b/gdb/f-lang.c
index 2a4eac3f119..1a1986fece4 100644
--- a/gdb/f-lang.c
+++ b/gdb/f-lang.c
@@ -167,7 +167,6 @@ f_printstr (struct ui_file *stream, char *string, unsigned int length,
unsigned int things_printed = 0;
int in_quotes = 0;
int need_comma = 0;
- extern int inspect_it;
if (length == 0)
{
diff --git a/gdb/jv-valprint.c b/gdb/jv-valprint.c
index f25cd09905f..8620175bbba 100644
--- a/gdb/jv-valprint.c
+++ b/gdb/jv-valprint.c
@@ -301,7 +301,6 @@ java_print_value_fields (struct type *type, char *valaddr, CORE_ADDR address,
fprintf_filtered (stream, "<No data fields>");
else
{
- extern int inspect_it;
int fields_seen = 0;
for (i = n_baseclasses; i < len; i++)
diff --git a/gdb/m2-lang.c b/gdb/m2-lang.c
index 4932cdfebd4..a7c4bd7bcfd 100644
--- a/gdb/m2-lang.c
+++ b/gdb/m2-lang.c
@@ -116,7 +116,6 @@ m2_printstr (struct ui_file *stream, char *string, unsigned int length,
unsigned int things_printed = 0;
int in_quotes = 0;
int need_comma = 0;
- extern int inspect_it;
if (length == 0)
{
diff --git a/gdb/objc-lang.c b/gdb/objc-lang.c
index 21504e118e1..1c23c01d280 100644
--- a/gdb/objc-lang.c
+++ b/gdb/objc-lang.c
@@ -372,7 +372,6 @@ objc_printstr (struct ui_file *stream, char *string,
unsigned int things_printed = 0;
int in_quotes = 0;
int need_comma = 0;
- extern int inspect_it;
/* If the string was not truncated due to `set print elements', and
the last byte of it is a null, we don't print that, in
diff --git a/gdb/p-lang.c b/gdb/p-lang.c
index 827fa0e22ea..8cfa2b00d3e 100644
--- a/gdb/p-lang.c
+++ b/gdb/p-lang.c
@@ -161,7 +161,6 @@ pascal_printstr (struct ui_file *stream, char *string, unsigned int length,
unsigned int things_printed = 0;
int in_quotes = 0;
int need_comma = 0;
- extern int inspect_it;
/* If the string was not truncated due to `set print elements', and
the last byte of it is a null, we don't print that, in traditional C
diff --git a/gdb/p-valprint.c b/gdb/p-valprint.c
index 5672d74bd78..84189dd2894 100644
--- a/gdb/p-valprint.c
+++ b/gdb/p-valprint.c
@@ -755,7 +755,6 @@ pascal_object_print_value_fields (struct type *type, char *valaddr,
fprintf_filtered (stream, "<No data fields>");
else
{
- extern int inspect_it;
int fields_seen = 0;
if (dont_print_statmem == 0)