]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2004-01-18 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Mon, 19 Jan 2004 01:20:12 +0000 (01:20 +0000)
committerAndrew Cagney <cagney@redhat.com>
Mon, 19 Jan 2004 01:20:12 +0000 (01:20 +0000)
* remote-sds.c (tohex): Delete unused function.  Update copyright.
* xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
* v850-tdep.c (v850_register_virtual_size): Ditto.
* target.c (normal_target_post_startup_inferior): Ditto.
* source.c (ambiguous_line_spec): Ditto.
* remote.c (adapt_remote_get_threadinfo): Ditto.
* mi/mi-out.c (out_field_fmt): Ditto.
* mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
(output_control_change_notification): Ditto.
* m68k-tdep.c (m68k_register_byte): Ditto.
(m68k_remote_breakpoint_from_pc): Ditto.
* ui-out.c (init_ui_out_state): Delete unused declaration.
* stabsread.c (search_value): Ditto.
* mi/mi-cmd-env.c (env_cli_command): Ditto.
* maint.c (print_section_table): Ditto.
* infrun.c (set_follow_fork_mode_command): Ditto.

15 files changed:
gdb/ChangeLog
gdb/infrun.c
gdb/m68k-tdep.c
gdb/maint.c
gdb/mi/mi-cmd-env.c
gdb/mi/mi-interp.c
gdb/mi/mi-out.c
gdb/remote-sds.c
gdb/remote.c
gdb/source.c
gdb/stabsread.c
gdb/target.c
gdb/ui-out.c
gdb/v850-tdep.c
gdb/xstormy16-tdep.c

index 7772813ed4c34137d53aabf46ae078a37c635e8f..81f7ac6813f11dd8389247f835aa88f41977e216 100644 (file)
@@ -1,3 +1,22 @@
+2004-01-18  Andrew Cagney  <cagney@redhat.com>
+
+       * remote-sds.c (tohex): Delete unused function.  Update copyright.
+       * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
+       * v850-tdep.c (v850_register_virtual_size): Ditto.
+       * target.c (normal_target_post_startup_inferior): Ditto.
+       * source.c (ambiguous_line_spec): Ditto.
+       * remote.c (adapt_remote_get_threadinfo): Ditto.
+       * mi/mi-out.c (out_field_fmt): Ditto.
+       * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
+       (output_control_change_notification): Ditto.
+       * m68k-tdep.c (m68k_register_byte): Ditto.
+       (m68k_remote_breakpoint_from_pc): Ditto.
+       * ui-out.c (init_ui_out_state): Delete unused declaration.
+       * stabsread.c (search_value): Ditto.
+       * mi/mi-cmd-env.c (env_cli_command): Ditto.
+       * maint.c (print_section_table): Ditto.
+       * infrun.c (set_follow_fork_mode_command): Ditto.
+
 2004-01-18  Mark Kettenis  <kettenis@gnu.org>
 
        * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
index 11db68076fc661f908c18915f008c861531ca146..1ecbcc6a7a96ff739038f98686a1e523779f4771 100644 (file)
@@ -2,8 +2,8 @@
    process.
 
    Copyright 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
-   1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software
-   Foundation, Inc.
+   1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free
+   Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -61,9 +61,6 @@ static int hook_stop_stub (void *);
 
 static void delete_breakpoint_current_contents (void *);
 
-static void set_follow_fork_mode_command (char *arg, int from_tty,
-                                         struct cmd_list_element *c);
-
 static int restore_selected_frame (void *);
 
 static void build_infrun (void);
index bb41ba5075da933f7b921e73e5196edc9199b7f5..7938426d98508ff605a6551f3873b59180123295 100644 (file)
@@ -1,7 +1,7 @@
 /* Target dependent code for the Motorola 68000 series.
-   Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1999, 2000, 2001,
-   2002, 2003
-   Free Software Foundation, Inc.
+
+   Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1999, 2000,
+   2001, 2002, 2003, 2004 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
 #endif
 
 
-/* gdbarch_breakpoint_from_pc is set to m68k_local_breakpoint_from_pc
-   so m68k_remote_breakpoint_from_pc is currently not used.  */
-
-static const unsigned char *
-m68k_remote_breakpoint_from_pc (CORE_ADDR *pcptr, int *lenptr)
-{
-  static unsigned char break_insn[] = {0x4e, (0x40 | REMOTE_BPT_VECTOR)};
-  *lenptr = sizeof (break_insn);
-  return break_insn;
-}
-
 static const unsigned char *
 m68k_local_breakpoint_from_pc (CORE_ADDR *pcptr, int *lenptr)
 {
@@ -144,20 +133,6 @@ m68k_register_name (int regnum)
   else
     return register_names[regnum];
 }
-
-/* Index within `registers' of the first byte of the space for
-   register regnum.  */
-
-static int
-m68k_register_byte (int regnum)
-{
-  if (regnum >= M68K_FPC_REGNUM)
-    return (((regnum - M68K_FPC_REGNUM) * 4) + 168);
-  else if (regnum >= FP0_REGNUM)
-    return (((regnum - FP0_REGNUM) * 12) + 72);
-  else
-    return (regnum * 4);
-}
 \f
 /* Extract from an array REGBUF containing the (raw) register state, a
    function return value of TYPE, and copy that, in virtual format,
index f7bb1940cb2ce6f4b35178ed7b662adc6d083192..f105afa601d58268d02beb549f889146c8ca3f3f 100644 (file)
@@ -1,6 +1,8 @@
 /* Support for GDB maintenance commands.
-   Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002, 2003
-   Free Software Foundation, Inc.
+
+   Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1999, 2000, 2001,
+   2002, 2003, 2004 Free Software Foundation, Inc.
+
    Written by Fred Fish at Cygnus Support.
 
    This file is part of GDB.
@@ -54,8 +56,6 @@ static void maintenance_space_display (char *, int);
 
 static void maintenance_info_command (char *, int);
 
-static void print_section_table (bfd *, asection *, void *);
-
 static void maintenance_info_sections (char *, int);
 
 static void maintenance_print_command (char *, int);
index ec0fa350c84d8635a7b67f9ad37ee17702aeb2a7..439c71912bd1c31380f63d3d9386570fc8b84f86 100644 (file)
@@ -1,6 +1,6 @@
 /* MI Command Set - environment commands.
 
-   Copyright 2002, 2003 Free Software Foundation, Inc.
+   Copyright 2002, 2003, 2004 Free Software Foundation, Inc.
 
    Contributed by Red Hat Inc.
 
@@ -37,7 +37,6 @@
 #include "gdb_string.h"
 #include "gdb_stat.h"
 
-static void env_cli_command (const char *cli, const char *args);
 static void env_mod_path (char *dirname, char **which_path);
 extern void _initialize_mi_cmd_env (void);
 
index b72d7ef0bc2b6a97befeb231dcb862a8a2ffde7f..08201ca5bb20878dbcaf4c7baa1b0a8f8e86b809 100644 (file)
@@ -1,6 +1,6 @@
 /* MI Interpreter Definitions and Commands for GDB, the GNU debugger.
 
-   Copyright 2002, 2003 Free Software Foundation, Inc.
+   Copyright 2002, 2003, 2003 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -57,8 +57,6 @@ static char *mi_input (char *);
    so we can report interesting things that happened "behind the mi's
    back" in this command */
 static int mi_interp_query_hook (const char *ctlstr, va_list ap);
-static char *mi_interp_read_one_line_hook (char *prompt, int repeat,
-                                          char *anno);
 
 static void mi3_command_loop (void);
 static void mi2_command_loop (void);
@@ -299,25 +297,6 @@ mi_interp_query_hook (const char *ctlstr, va_list ap)
   return 1;
 }
 
-static char *
-mi_interp_read_one_line_hook (char *prompt, int repeat, char *anno)
-{
-  static char buff[256];
-  printf_unfiltered ("=read-one-line,prompt=\"%s\"\n", prompt);
-  gdb_flush (gdb_stdout);
-  (void) fgets (buff, sizeof (buff), stdin);
-  buff[(strlen (buff) - 1)] = 0;
-  return buff;
-}
-
-static void
-output_control_change_notification (char *notification)
-{
-  printf_unfiltered ("^");
-  printf_unfiltered ("%s\n", notification);
-  gdb_flush (gdb_stdout);
-}
-
 static void
 mi_execute_command_wrapper (char *cmd)
 {
index 637ceb42ca1823df22952c55442479ba9692d9b1..2be9d17b3576de6cde47e5932064309da0f2933f 100644 (file)
@@ -1,6 +1,6 @@
 /* MI Command Set - output generating routines.
 
-   Copyright 2000, 2002, 2003 Free Software Foundation, Inc.
+   Copyright 2000, 2002, 2003, 2004 Free Software Foundation, Inc.
 
    Contributed by Cygnus Solutions (a Red Hat company).
 
@@ -98,9 +98,6 @@ static void mi_open (struct ui_out *uiout, const char *name,
                     enum ui_out_type type);
 static void mi_close (struct ui_out *uiout, enum ui_out_type type);
 
-static void out_field_fmt (struct ui_out *uiout, int fldno, char *fldname,
-                          char *format,...);
-
 /* Mark beginning of a table */
 
 void
@@ -290,31 +287,6 @@ mi_flush (struct ui_out *uiout)
 
 /* local functions */
 
-/* Like mi_field_fmt, but takes a variable number of args
-   and makes a va_list and does not insert a separator */
-
-/* VARARGS */
-static void
-out_field_fmt (struct ui_out *uiout, int fldno, char *fldname,
-              char *format,...)
-{
-  mi_out_data *data = ui_out_data (uiout);
-  va_list args;
-
-  field_separator (uiout);
-  if (fldname)
-    fprintf_unfiltered (data->buffer, "%s=\"", fldname);
-  else
-    fputs_unfiltered ("\"", data->buffer);
-
-  va_start (args, format);
-  vfprintf_unfiltered (data->buffer, format, args);
-
-  fputs_unfiltered ("\"", data->buffer);
-
-  va_end (args);
-}
-
 /* access to ui_out format private members */
 
 static void
index c920997f0baa0a6ccb619981a535e3da6fccb747..d74fd7db2420b17ed48b27e68ea13767f35b3c0b 100644 (file)
@@ -1,6 +1,6 @@
 /* Remote target communications for serial-line targets using SDS' protocol.
 
-   Copyright 1997, 1998, 1999, 2000, 2001, 2002 Free Software
+   Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2004 Free Software
    Foundation, Inc.
 
    This file is part of GDB.
@@ -92,8 +92,6 @@ static ptid_t sds_wait (ptid_t, struct target_waitstatus *);
 
 static void sds_kill (void);
 
-static int tohex (int);
-
 static int fromhex (int);
 
 static void sds_detach (char *, int);
@@ -278,17 +276,6 @@ fromhex (int a)
     error ("Reply contains invalid hex digit %d", a);
 }
 
-/* Convert number NIB to a hex digit.  */
-
-static int
-tohex (int nib)
-{
-  if (nib < 10)
-    return '0' + nib;
-  else
-    return 'a' + nib - 10;
-}
-
 static int
 tob64 (unsigned char *inbuf, char *outbuf, int len)
 {
index c18efd46ac9545d3a91cc10318a4e12b39159eb9..617e55df9c4d2275162182949398685271745b64 100644 (file)
@@ -1162,10 +1162,6 @@ static int remote_unpack_thread_info_response (char *pkt,
 static int remote_get_threadinfo (threadref * threadid, int fieldset,  /*TAG mask */
                                  struct gdb_ext_thread_info *info);
 
-static int adapt_remote_get_threadinfo (gdb_threadref * ref,
-                                       int selection,
-                                       struct gdb_ext_thread_info *info);
-
 static char *pack_threadlist_request (char *pkt, int startflag,
                                      int threadcount,
                                      threadref * nextthread);
@@ -1577,19 +1573,6 @@ remote_get_threadinfo (threadref *threadid, int fieldset,        /* TAG mask */
   return result;
 }
 
-/* Unfortunately, 61 bit thread-ids are bigger than the internal
-   representation of a threadid.  */
-
-static int
-adapt_remote_get_threadinfo (gdb_threadref *ref, int selection,
-                            struct gdb_ext_thread_info *info)
-{
-  threadref lclref;
-
-  int_to_threadref (&lclref, *ref);
-  return remote_get_threadinfo (&lclref, selection, info);
-}
-
 /*    Format: i'Q':8,i"L":8,initflag:8,batchsize:16,lastthreadid:32   */
 
 static char *
index c5f588af69eb3ce0b2cadb621f8024ca5ec49496..6c0e213a3451cc640d01c70ba16a78a8f2c11076 100644 (file)
@@ -1232,22 +1232,6 @@ print_source_lines (struct symtab *s, int line, int stopline, int noerror)
   print_source_lines_base (s, line, stopline, noerror);
 }
 \f
-/* Print a list of files and line numbers which a user may choose from
-   in order to list a function which was specified ambiguously (as with
-   `list classname::overloadedfuncname', or 'list objectiveCSelector:).
-   The vector in SALS provides the filenames and line numbers.
-   NOTE: some of the SALS may have no filename or line information! */
-
-static void
-ambiguous_line_spec (struct symtabs_and_lines *sals)
-{
-  int i;
-
-  for (i = 0; i < sals->nelts; ++i)
-    printf_filtered ("file: \"%s\", line number: %d\n",
-                    sals->sals[i].symtab->filename, sals->sals[i].line);
-}
-\f
 /* Print info on range of pc's in a specified line.  */
 
 static void
index 0e615cb83e6f5f6e3d874ba21741141f45716ea4..2a7580310672f8c1102e9dcaac538b694cb784d2 100644 (file)
@@ -157,8 +157,6 @@ static char *find_name_end (char *name);
 
 static int process_reference (char **string);
 
-static CORE_ADDR ref_search_value (int refnum);
-
 void stabsread_clear_cache (void);
 
 static const char vptr_name[] = "_vptr$";
index cc3b747d4b8cc930fcfcbf2820a4640115fa80bb..18b5a77e1b903b6edda8d68953ed0587df4563c4 100644 (file)
@@ -1,7 +1,7 @@
 /* Select target systems and architectures at runtime for GDB.
 
    Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
-   1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+   1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
 
    Contributed by Cygnus Support.
 
@@ -71,8 +71,6 @@ static struct target_ops *find_default_run_target (char *);
 
 static void nosupport_runtime (void);
 
-static void normal_target_post_startup_inferior (ptid_t ptid);
-
 static LONGEST default_xfer_partial (struct target_ops *ops,
                                     enum target_object object,
                                     const char *annex, void *readbuf,
@@ -1603,24 +1601,6 @@ normal_pid_to_str (ptid_t ptid)
   return buf;
 }
 
-/* Some targets (such as ttrace-based HPUX) don't allow us to request
-   notification of inferior events such as fork and vork immediately
-   after the inferior is created.  (This because of how gdb gets an
-   inferior created via invoking a shell to do it.  In such a scenario,
-   if the shell init file has commands in it, the shell will fork and
-   exec for each of those commands, and we will see each such fork
-   event.  Very bad.)
-
-   This function is used by all targets that allow us to request
-   notification of forks, etc at inferior creation time; e.g., in
-   target_acknowledge_forked_child.
- */
-static void
-normal_target_post_startup_inferior (ptid_t ptid)
-{
-  /* This space intentionally left blank. */
-}
-
 /* Error-catcher for target_find_memory_regions */
 static int dummy_find_memory_regions (int (*ignore1) (), void *ignore2)
 {
index 5fb8eaa69e80e74d95fbb0117072066c68e2c2a6..854ec490ddff24d86f7db799faf43fc7a9fcb665 100644 (file)
@@ -1,6 +1,6 @@
 /* Output generating routines for GDB.
 
-   Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+   Copyright 1999, 2000, 2001, 2002, 2004 Free Software Foundation, Inc.
 
    Contributed by Cygnus Solutions.
    Written by Fernando Nasser for Cygnus.
@@ -269,8 +269,6 @@ static void clear_header_list (struct ui_out *uiout);
 static void verify_field (struct ui_out *uiout, int *fldno, int *width,
                          int *align);
 
-static void init_ui_out_state (struct ui_out *uiout);
-
 /* exported functions (ui_out API) */
 
 /* Mark beginning of a table */
index 385c95c3244e1d0ff74c5f5dac16674298426aad..321e97aa7fbe735c83ef074295510facbef2d86d 100644 (file)
@@ -248,16 +248,6 @@ v850_register_raw_size (int regnum)
     return v850_reg_size;
 }
 
-/* Function: v850_register_virtual_size
-   Returns the number of bytes occupied by the register as represented
-   internally by gdb. */
-
-static int
-v850_register_virtual_size (int regnum)
-{
-  return v850_register_raw_size (regnum);
-}
-
 /* Function: v850_reg_virtual_type 
    Returns the default type for register N. */
 
index 7b3e430391452e654264c15c10004c2acba172f2..da875d3a70239cf5e4fa6e6a3e4dd649b5566331 100644 (file)
@@ -151,16 +151,6 @@ xstormy16_register_raw_size (int regnum)
     return xstormy16_reg_size;
 }
 
-/* Function: xstormy16_register_virtual_size
-   Returns the number of bytes occupied by the register as represented
-   internally by gdb. */
-
-static int
-xstormy16_register_virtual_size (int regnum)
-{
-  return xstormy16_register_raw_size (regnum);
-}
-
 /* Function: xstormy16_reg_virtual_type 
    Returns the default type for register N. */