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.
This commit is contained in:
parent
8819f097a4
commit
c6f0559b48
15 changed files with 34 additions and 183 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
@ -69,17 +69,6 @@
|
|||
#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);
|
||||
}
|
||||
|
||||
/* Extract from an array REGBUF containing the (raw) register state, a
|
||||
function return value of TYPE, and copy that, in virtual format,
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
17
gdb/remote.c
17
gdb/remote.c
|
@ -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 *
|
||||
|
|
16
gdb/source.c
16
gdb/source.c
|
@ -1232,22 +1232,6 @@ print_source_lines (struct symtab *s, int line, int stopline, int noerror)
|
|||
print_source_lines_base (s, line, stopline, noerror);
|
||||
}
|
||||
|
||||
/* 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);
|
||||
}
|
||||
|
||||
/* Print info on range of pc's in a specified line. */
|
||||
|
||||
static void
|
||||
|
|
|
@ -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$";
|
||||
|
|
22
gdb/target.c
22
gdb/target.c
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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. */
|
||||
|
||||
|
|
|
@ -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. */
|
||||
|
||||
|
|
Loading…
Reference in a new issue