* arch-utils.c (#include "gdbthread.h"): Removed.
authorJ.T. Conklin <jtc@acorntoolworks.com>
Tue, 27 Mar 2001 20:36:24 +0000 (20:36 +0000)
committerJ.T. Conklin <jtc@acorntoolworks.com>
Tue, 27 Mar 2001 20:36:24 +0000 (20:36 +0000)
(#include "symfile.h"): Removed.
(XMALLOC): Removed unused macro.
* breakpoint.c (tbreak_command): Removed local declaration.
(awatch_command, do_enable_breakpoint, set_breakpoint_count):
Remove duplicate declarations.
(bpstat_should_step, bpstat_have_active_hw_watchpoints)
(remove_solib_event_breakpoints): Fix indentation botch.
* c-typeprint.c (#include "command.h"): Removed.
(#include "gdbcmd.h"): Removed.
* ch-exp.c (ch_terminal_match_float_literal, parse_expr)
(parse_primval, parse_untyped_expr, parse_opt_untyped_expr):
Removed duplicate declarations.
* ch-typeprint.c (#include "command.h"): Removed.
(#include "gdbcmd.h"): Removed.
* corefile.c (#include "frame.h"): Removed
(#include "symfile.h"): Removed.
(#include "language.h"): Removed.
* dbxread.c (#include "command.h"): Removed.
* environ.c (#include "gdbcore.h"): Removed.
* event-loop.c (#include "top.h"): Removed.
* f-typeprint.c (#include "command.h"): Removed.
(#include "gdbcmd.h"): Removed.
(#include "language.h"): Removed.
(#include "typeprint.h"): Removed.
(#include "frame.h"): Removed.
* gdbtypes.h (print_type_scalar): Removed declaration.
* infcmd.c (#include "completer.h"): Removed.
* language.c (#include "frame.h"): Removed.
* m2-typeprint.c (#include "command.h"): Removed.
(#include "gdbcmd.h"): Removed.
(#include "language.h"): Removed.
* m2-valprint.c (#include "valprint.h"): Removed.
* p-typeprint.c (#include "command.h"): Removed.
(#include "gdbcmd.h"): Removed.
* p-valprint.c (#include "typeprint.h"): Removed.
* parse.c (#include "linespec.h"): Removed.
* regcache.c (#include "frame.h"): Removed.
* remote.c (#include "frame.h"): Removed.
(getpkt_sane): Make static.
* source.c (#include "completer.h"): Removed.
* stack.c (#include "symfile.h"): Removed.
(#include "objfiles.h"): Removed.
* symfile.c (#include "completer.h"): Removed.
* tracepoint.c (#include "completer.h"): Removed.
* values.c (#include "frame.h"): Removed.
* varobj.c (#include "valprint.h"): Removed.
* wrapper.c (#include "frame.h"): Removed.

* memattr.c (create_mem_region): Removed unused variable.
* remote-nrom.c: Removed spurious semicolon after init_nrom_ops.
-------------------------------------------------------------------

30 files changed:
gdb/ChangeLog
gdb/arch-utils.c
gdb/breakpoint.c
gdb/c-typeprint.c
gdb/ch-exp.c
gdb/ch-typeprint.c
gdb/corefile.c
gdb/dbxread.c
gdb/environ.c
gdb/event-loop.c
gdb/f-typeprint.c
gdb/gdbtypes.h
gdb/infcmd.c
gdb/language.c
gdb/m2-typeprint.c
gdb/m2-valprint.c
gdb/memattr.c
gdb/p-typeprint.c
gdb/p-valprint.c
gdb/parse.c
gdb/regcache.c
gdb/remote-nrom.c
gdb/remote.c
gdb/source.c
gdb/stack.c
gdb/symfile.c
gdb/tracepoint.c
gdb/values.c
gdb/varobj.c
gdb/wrapper.c

index 5c6d03eeeb00ecc678fe2b5d8211f68c7e1e8c0b..f23e5e35cb83f2041b5d2bbc91dde676cdfb5e23 100644 (file)
@@ -1,3 +1,57 @@
+2001-03-19  J.T. Conklin  <jtc@redback.com>
+
+       * arch-utils.c (#include "gdbthread.h"): Removed.
+       (#include "symfile.h"): Removed. 
+       (XMALLOC): Removed unused macro.
+       * breakpoint.c (tbreak_command): Removed local declaration.
+       (awatch_command, do_enable_breakpoint, set_breakpoint_count):
+       Remove duplicate declarations.
+       (bpstat_should_step, bpstat_have_active_hw_watchpoints)
+       (remove_solib_event_breakpoints): Fix indentation botch.
+       * c-typeprint.c (#include "command.h"): Removed.
+       (#include "gdbcmd.h"): Removed.
+       * ch-exp.c (ch_terminal_match_float_literal, parse_expr)
+       (parse_primval, parse_untyped_expr, parse_opt_untyped_expr):
+       Removed duplicate declarations.
+       * ch-typeprint.c (#include "command.h"): Removed.
+       (#include "gdbcmd.h"): Removed.
+       * corefile.c (#include "frame.h"): Removed
+       (#include "symfile.h"): Removed.
+       (#include "language.h"): Removed.
+       * dbxread.c (#include "command.h"): Removed.
+       * environ.c (#include "gdbcore.h"): Removed.
+       * event-loop.c (#include "top.h"): Removed.
+       * f-typeprint.c (#include "command.h"): Removed.
+       (#include "gdbcmd.h"): Removed.
+       (#include "language.h"): Removed.
+       (#include "typeprint.h"): Removed.
+       (#include "frame.h"): Removed.
+       * gdbtypes.h (print_type_scalar): Removed declaration.
+       * infcmd.c (#include "completer.h"): Removed.
+       * language.c (#include "frame.h"): Removed.
+       * m2-typeprint.c (#include "command.h"): Removed.
+       (#include "gdbcmd.h"): Removed.
+       (#include "language.h"): Removed.
+       * m2-valprint.c (#include "valprint.h"): Removed.
+       * p-typeprint.c (#include "command.h"): Removed.
+       (#include "gdbcmd.h"): Removed.
+       * p-valprint.c (#include "typeprint.h"): Removed.
+       * parse.c (#include "linespec.h"): Removed.
+       * regcache.c (#include "frame.h"): Removed.
+       * remote.c (#include "frame.h"): Removed.
+       (getpkt_sane): Make static.
+       * source.c (#include "completer.h"): Removed.
+       * stack.c (#include "symfile.h"): Removed.
+       (#include "objfiles.h"): Removed.
+       * symfile.c (#include "completer.h"): Removed.
+       * tracepoint.c (#include "completer.h"): Removed.
+       * values.c (#include "frame.h"): Removed.
+       * varobj.c (#include "valprint.h"): Removed.
+       * wrapper.c (#include "frame.h"): Removed.
+       
+       * memattr.c (create_mem_region): Removed unused variable.
+       * remote-nrom.c: Removed spurious semicolon after init_nrom_ops.
+
 2001-03-27  Nick Clifton  <nickc@redhat.com>
 
        * remote-rdp.c (rdp_set_command_line): Add missing double quote.
index bfa548b5f951420d7257178ea6a9862ba6a2fa1d..004d3aeb10d46b50f0c4cc31e1e634fd20cad43d 100644 (file)
 #include "gdbcore.h"
 #include "gdbcmd.h"
 #include "target.h"
-#include "gdbthread.h"
 #include "annotate.h"
-#include "symfile.h"           /* for overlay functions */
 #endif
 
 #include "version.h"
 
 #include "floatformat.h"
 
-/* Convenience macro for allocting typesafe memory. */
-
-#ifndef XMALLOC
-#define XMALLOC(TYPE) (TYPE*) xmalloc (sizeof (TYPE))
-#endif
-
-
 /* Use the program counter to determine the contents and size
    of a breakpoint instruction.  If no target-dependent macro
    BREAKPOINT_FROM_PC has been defined to implement this function,
index 5eb1fa4d93b8165424df5a833fbfab55b5f751e0..3121d9b2a87be9a9d067dcf647523b576ac69377 100644 (file)
@@ -85,8 +85,6 @@ static int can_use_hardware_watchpoint (struct value *);
 static void break_at_finish_command (char *, int);
 static void break_at_finish_at_depth_command (char *, int);
 
-void tbreak_command (char *, int);
-
 static void tbreak_at_finish_command (char *, int);
 
 static void break_command_1 (char *, int, int);
@@ -210,18 +208,12 @@ static void ep_skip_leading_whitespace (char **s);
 
 /* Prototypes for exported functions. */
 
-static void awatch_command (char *, int);
-
-static void do_enable_breakpoint (struct breakpoint *, enum bpdisp);
-
 /* If FALSE, gdb will not use hardware support for watchpoints, even
    if such is available. */
 static int can_use_hw_watchpoints;
 
 void _initialize_breakpoint (void);
 
-void set_breakpoint_count (int);
-
 extern int addressprint;       /* Print machine addresses? */
 
 static int internal_breakpoint_number = -1;
@@ -2980,7 +2972,7 @@ bpstat_should_step (void)
   struct breakpoint *b;
   ALL_BREAKPOINTS (b)
     if (b->enable == enabled && b->type == bp_watchpoint)
-    return 1;
+      return 1;
   return 0;
 }
 
@@ -2995,7 +2987,7 @@ bpstat_have_active_hw_watchpoints (void)
        ((b->type == bp_hardware_watchpoint) ||
         (b->type == bp_read_watchpoint) ||
         (b->type == bp_access_watchpoint)))
-    return 1;
+      return 1;
   return 0;
 }
 \f
@@ -3950,7 +3942,7 @@ remove_solib_event_breakpoints (void)
 
   ALL_BREAKPOINTS_SAFE (b, temp)
     if (b->type == bp_shlib_event)
-    delete_breakpoint (b);
+      delete_breakpoint (b);
 }
 
 struct breakpoint *
index bdc5a689ee1dc8ffed41c421399d839102dad529..814c2d3310b8a9c46b37471790fde1acb9c779dd 100644 (file)
@@ -29,8 +29,6 @@
 #include "value.h"
 #include "gdbcore.h"
 #include "target.h"
-#include "command.h"
-#include "gdbcmd.h"
 #include "language.h"
 #include "demangle.h"
 #include "c-lang.h"
index abd51878c288e827e5d3375d6015177cd455bc2b..c5d2fdaab35e81142c1704e5cb0fbd90d600dca7 100644 (file)
@@ -148,13 +148,14 @@ static enum ch_terminal match_integer_literal (void);
 static enum ch_terminal match_character_literal (void);
 static enum ch_terminal match_string_literal (void);
 static enum ch_terminal match_float_literal (void);
-static enum ch_terminal match_float_literal (void);
 static int decode_integer_literal (LONGEST *, char **);
 static int decode_integer_value (int, char **, LONGEST *);
 static char *match_simple_name_string (void);
 static void growbuf_by_size (int);
+static void parse_case_label (void);
 static void parse_untyped_expr (void);
 static void parse_if_expression (void);
+static void parse_if_expression_body (void);
 static void parse_else_alternative (void);
 static void parse_then_alternative (void);
 static void parse_expr (void);
@@ -177,13 +178,7 @@ static struct type *parse_mode_call (void);
 #endif
 static void parse_unary_call (void);
 static int parse_opt_untyped_expr (void);
-static void parse_case_label (void);
 static int expect (enum ch_terminal, char *);
-static void parse_expr (void);
-static void parse_primval (void);
-static void parse_untyped_expr (void);
-static int parse_opt_untyped_expr (void);
-static void parse_if_expression_body (void);
 static enum ch_terminal ch_lex (void);
 INLINE static enum ch_terminal PEEK_TOKEN (void);
 static enum ch_terminal peek_token_ (int);
index c217d2baa9e9f7319b17622dc61e09d56e9c4062..339dd0b32d3e34a54183351d00d8beff1fc61be9 100644 (file)
@@ -28,8 +28,6 @@
 #include "value.h"
 #include "gdbcore.h"
 #include "target.h"
-#include "command.h"
-#include "gdbcmd.h"
 #include "language.h"
 #include "ch-lang.h"
 #include "typeprint.h"
index 0d6964bd37bfb325d2cb221f8d307ce255fcd710..716bb04735ae82db26b764087805bd2fde8b22a9 100644 (file)
 #include <errno.h>
 #include <signal.h>
 #include <fcntl.h>
-#include "frame.h"             /* required by inferior.h */
 #include "inferior.h"
 #include "symtab.h"
 #include "command.h"
 #include "gdbcmd.h"
-#include "symfile.h"
 #include "bfd.h"
 #include "target.h"
 #include "gdbcore.h"
 #include "dis-asm.h"
-#include "language.h"
 #include "gdb_stat.h"
-#include "symfile.h"
-#include "objfiles.h"
-#include "completer.h"
 
 /* Local function declarations.  */
 
index 0452e5b24006db5fb20e8726e1ca0c38b0cc23ef..cdb165762e86b05d102d848dc6ef121a1858363a 100644 (file)
@@ -46,7 +46,6 @@
 #include "gdb_stat.h"
 #include "symtab.h"
 #include "breakpoint.h"
-#include "command.h"
 #include "target.h"
 #include "gdbcore.h"           /* for bfd stuff */
 #include "libaout.h"           /* FIXME Secret internal BFD stuff for a.out */
index 5b36b15999e8b8e435bc6687f82aa8f8a945bd41..1f9a9d67e9fe9ba98fc7a1d9e5e896dfc1805043 100644 (file)
@@ -23,7 +23,6 @@
 #include "defs.h"
 #include "environ.h"
 #include "gdb_string.h"
-#include "gdbcore.h"
 \f
 
 /* Return a new environment object.  */
index 285cea474417dbc975a48eac5e2099d28938391b..de1f78f0280fa3cb4687135098ad74272feae7db 100644 (file)
@@ -20,7 +20,6 @@
    Boston, MA 02111-1307, USA. */
 
 #include "defs.h"
-#include "top.h"
 #include "event-loop.h"
 #include "event-top.h"
 
index 944b97d711b5eb402a0eb2dcdb14011ed0791100..6e2f8b05f381c82f36ed96c9f3a99b48c46bde62 100644 (file)
 #include "value.h"
 #include "gdbcore.h"
 #include "target.h"
-#include "command.h"
-#include "gdbcmd.h"
-#include "language.h"
 #include "f-lang.h"
-#include "typeprint.h"
-#include "frame.h"             /* ??? */
 
 #include "gdb_string.h"
 #include <errno.h>
index fd0700070457ea0f0c1a3a40d28ee9a63805a7ff..f5f9f1ad8f896ca12899d4b6633e008039226c8f 100644 (file)
@@ -1125,8 +1125,4 @@ extern int is_integral_type (struct type *);
 
 extern void maintenance_print_type (char *, int);
 
-/* typeprint.c */
-
-extern void print_type_scalar (struct type *, LONGEST, struct ui_file *);
-
 #endif /* GDBTYPES_H */
index e6e951ffeca48bc3b45cc68878e7353048cd87b8..32a5954548af1dc3bc12d19b4f1e29d18ac6dc09 100644 (file)
@@ -41,7 +41,6 @@
 #endif
 #include "event-top.h"
 #include "parser-defs.h"
-#include "completer.h"
 
 /* Functions exported for general use: */
 
index 6d70e81f4fff83c040616f7afc08ea7460ea6a52..1a005b2f62e0e35df9dfd7502e519ceeea3185ca 100644 (file)
@@ -37,7 +37,6 @@
 #include "gdbtypes.h"
 #include "value.h"
 #include "gdbcmd.h"
-#include "frame.h"
 #include "expression.h"
 #include "language.h"
 #include "target.h"
index d2988cf6c2d2b4c3a3bdf105b916ace48b3a347f..90aefae66e748fd9c4d175294ae04fcd8eb7b9c5 100644 (file)
@@ -27,9 +27,6 @@
 #include "value.h"
 #include "gdbcore.h"
 #include "target.h"
-#include "command.h"
-#include "gdbcmd.h"
-#include "language.h"
 #include "m2-lang.h"
 #include <errno.h>
 
index 4613d4b3b1202b8ce13098ad2bb6c1e6c377d6a8..ec80301da8b11910312194c9df4f344823e8e677 100644 (file)
@@ -22,7 +22,6 @@
 #include "defs.h"
 #include "symtab.h"
 #include "gdbtypes.h"
-#include "valprint.h"
 #include "m2-lang.h"
 
 /* FIXME:  For now, just explicitly declare c_val_print and use it instead */
index ba642912926723221f1651499f0eb40e059aa61d..b1b4a781b164633f9696243819448b39256473ee 100644 (file)
@@ -34,7 +34,7 @@ static struct mem_region *
 create_mem_region (CORE_ADDR lo, CORE_ADDR hi,
                   const struct mem_attrib *attrib)
 {
-  struct mem_region *n, *p, *new;
+  struct mem_region *n, *new;
 
   if (lo > hi)
     {
index 2f7ac59778cae3fa562babcdec3e9b9b83d94c1e..0facebfa9d1c24923db9c7a6793e1439d809773b 100644 (file)
@@ -29,8 +29,6 @@
 #include "value.h"
 #include "gdbcore.h"
 #include "target.h"
-#include "command.h"
-#include "gdbcmd.h"
 #include "language.h"
 #include "p-lang.h"
 #include "typeprint.h"
index 46774c683e4158e9b3074d3a4f9f28c931fbf32d..275427b455c743a78f7b9b0acfdb16be05cb823d 100644 (file)
@@ -31,6 +31,7 @@
 #include "gdbcore.h"
 #include "demangle.h"
 #include "valprint.h"
+#include "typeprint.h"
 #include "language.h"
 #include "target.h"
 #include "annotate.h"
index ff365ef768b597eb0075f5f0b2d1e3852d5557d4..2edc6d76669eb5b7a2e037b9e47f09afeb626ee1 100644 (file)
@@ -42,7 +42,6 @@
 #include "command.h"
 #include "language.h"
 #include "parser-defs.h"
-#include "linespec.h"
 #include "gdbcmd.h"
 #include "symfile.h"           /* for overlay functions */
 #include "inferior.h"          /* for NUM_PSEUDO_REGS.  NOTE: replace 
index 5128c1e6fd4f7d00b05690a60f2f092e4c61d360..b58ed29e5ded45daa1e517a306e9ba869466fe92 100644 (file)
@@ -20,7 +20,6 @@
    Boston, MA 02111-1307, USA.  */
 
 #include "defs.h"
-#include "frame.h"
 #include "inferior.h"
 #include "target.h"
 #include "gdbarch.h"
index f2f0cecf5f79bad87e31c6bab96469253e1f22f7..61e61aa99cd71a91af22fb7382e38545a287b7d5 100644 (file)
@@ -328,7 +328,7 @@ init_nrom_ops (void)
   nrom_ops.to_sections = NULL;
   nrom_ops.to_sections_end = NULL;
   nrom_ops.to_magic = OPS_MAGIC;
-};
+}
 
 void
 _initialize_remote_nrom (void)
index 9dbb8bd7aaf046ba87cbabd2dc9b53551dfc368a..b2eb29a5ceaebe70421118d713bd367a56cff753 100644 (file)
@@ -25,7 +25,6 @@
 #include "gdb_string.h"
 #include <ctype.h>
 #include <fcntl.h>
-#include "frame.h"
 #include "inferior.h"
 #include "bfd.h"
 #include "symfile.h"
@@ -3986,7 +3985,7 @@ getpkt (char *buf,
    executing user code to stop. If FOREVER == 0, this function is
    allowed to time out gracefully and return an indication of this to
    the caller. */
-int
+static int
 getpkt_sane (char *buf,
        long sizeof_buf,
        int forever)
index 389b89100c3a04018cfd466204229a682276814d..d3ae4e4a9c207a5740bcdb428870daacb7e2d728 100644 (file)
@@ -40,7 +40,6 @@
 #include "annotate.h"
 #include "gdbtypes.h"
 #include "linespec.h"
-#include "completer.h"
 #ifdef UI_OUT
 #include "ui-out.h"
 #endif
index 615444354b49256779a6e6f01f1e21b4bd638c1e..8dca5e0d1840cb7e7821f26327ac92d11dfc30b5 100644 (file)
@@ -35,8 +35,6 @@
 #include "demangle.h"
 #include "inferior.h"
 #include "annotate.h"
-#include "symfile.h"
-#include "objfiles.h"
 #ifdef UI_OUT
 #include "ui-out.h"
 #endif
index 8efc5d45710190f74a38de72c0661936d5af27eb..1166eea14b3381be9016c6498f670ce3b6916740 100644 (file)
@@ -37,7 +37,6 @@
 #include "inferior.h"          /* for write_pc */
 #include "gdb-stabs.h"
 #include "obstack.h"
-#include "completer.h"
 
 #include <sys/types.h>
 #include <fcntl.h>
index c5147deb25fd4eec35bc127ba5d17a5564ccf9c3..888f54de8762d1ad6ff7b5aa9684b925a85c8b49 100644 (file)
@@ -32,7 +32,6 @@
 #include "tracepoint.h"
 #include "remote.h"
 #include "linespec.h"
-#include "completer.h"
 #include "regcache.h"
 
 #include "ax.h"
index 3f73f15ca7f90a902fd96c4683788fda525e8fca..eec1178d1db592421b836b7bfbcb843677b51374 100644 (file)
@@ -26,7 +26,6 @@
 #include "gdbtypes.h"
 #include "value.h"
 #include "gdbcore.h"
-#include "frame.h"
 #include "command.h"
 #include "gdbcmd.h"
 #include "target.h"
index 97e2a4e356b1ba12bc7f827bc04801789a2dbc6d..40bc209de3ef0eb14a664c44738d7e3d24f460d2 100644 (file)
@@ -20,7 +20,6 @@
 #include "value.h"
 #include "expression.h"
 #include "frame.h"
-#include "valprint.h"
 #include "language.h"
 #include "wrapper.h"
 #include "gdbcmd.h"
index 1936b2bc442bf5c4cc97a12325c0c76a629e25dd..87e46fe511108d0919c4a1f5f35ccd349b9f37cc 100644 (file)
@@ -18,7 +18,6 @@
 
 #include "defs.h"
 #include "value.h"
-#include "frame.h"
 #include "wrapper.h"
 
 /* Use this struct to pass arguments to wrapper routines. We assume