* main.c (main): Fix violations of GNU coding standard.
* breakpoint.c: Export delete_command. * infcmd.c: Export continue_command, stepi_command, and nexti_command. * Makefile.in: Add target for v850ice.o. * configure.tgt: Add cygwin32 dependencies for v850 ice.
This commit is contained in:
parent
e1f1ed1ad7
commit
895cc8ab1c
@ -1,3 +1,15 @@
|
|||||||
|
Wed Jul 15 11:51:33 1998 Keith Seitz <keiths@cygnus.com>
|
||||||
|
|
||||||
|
* main.c (main): Fix violations of GNU coding standard.
|
||||||
|
|
||||||
|
* breakpoint.c: Export delete_command.
|
||||||
|
|
||||||
|
* infcmd.c: Export continue_command, stepi_command, and nexti_command.
|
||||||
|
|
||||||
|
* Makefile.in: Add target for v850ice.o.
|
||||||
|
|
||||||
|
* configure.tgt: Add cygwin32 dependencies for v850 ice.
|
||||||
|
|
||||||
Wed Jul 15 10:58:29 1998 Nick Clifton <nickc@cygnus.com>
|
Wed Jul 15 10:58:29 1998 Nick Clifton <nickc@cygnus.com>
|
||||||
|
|
||||||
* tracepoint.c (set_raw_tracepoint): Cope with symbols that do not
|
* tracepoint.c (set_raw_tracepoint): Cope with symbols that do not
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Everything about breakpoints, for GDB.
|
/* Everything about breakpoints, for GDB.
|
||||||
Copyright 1986, 1987, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
|
Copyright 1986, 87, 89, 90, 91, 92, 93, 94, 95, 96, 97, 1998
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GDB.
|
This file is part of GDB.
|
||||||
@ -71,7 +71,7 @@ ignore_command PARAMS ((char *, int));
|
|||||||
static int
|
static int
|
||||||
breakpoint_re_set_one PARAMS ((char *));
|
breakpoint_re_set_one PARAMS ((char *));
|
||||||
|
|
||||||
static void
|
void
|
||||||
delete_command PARAMS ((char *, int));
|
delete_command PARAMS ((char *, int));
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -98,7 +98,7 @@ break_command_1 PARAMS ((char *, int, int));
|
|||||||
static void
|
static void
|
||||||
mention PARAMS ((struct breakpoint *));
|
mention PARAMS ((struct breakpoint *));
|
||||||
|
|
||||||
static struct breakpoint *
|
struct breakpoint *
|
||||||
set_raw_breakpoint PARAMS ((struct symtab_and_line));
|
set_raw_breakpoint PARAMS ((struct symtab_and_line));
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -131,7 +131,7 @@ condition_command PARAMS ((char *, int));
|
|||||||
static int
|
static int
|
||||||
get_number PARAMS ((char **));
|
get_number PARAMS ((char **));
|
||||||
|
|
||||||
static void
|
void
|
||||||
set_breakpoint_count PARAMS ((int));
|
set_breakpoint_count PARAMS ((int));
|
||||||
|
|
||||||
static int
|
static int
|
||||||
@ -221,11 +221,11 @@ struct breakpoint *breakpoint_chain;
|
|||||||
|
|
||||||
/* Number of last breakpoint made. */
|
/* Number of last breakpoint made. */
|
||||||
|
|
||||||
static int breakpoint_count;
|
int breakpoint_count;
|
||||||
|
|
||||||
/* Set breakpoint count to NUM. */
|
/* Set breakpoint count to NUM. */
|
||||||
|
|
||||||
static void
|
void
|
||||||
set_breakpoint_count (num)
|
set_breakpoint_count (num)
|
||||||
int num;
|
int num;
|
||||||
{
|
{
|
||||||
@ -2104,7 +2104,7 @@ check_duplicates (address, section)
|
|||||||
error(); otherwise it leaves a bogus breakpoint on the chain. Validate
|
error(); otherwise it leaves a bogus breakpoint on the chain. Validate
|
||||||
your arguments BEFORE calling this routine! */
|
your arguments BEFORE calling this routine! */
|
||||||
|
|
||||||
static struct breakpoint *
|
struct breakpoint *
|
||||||
set_raw_breakpoint (sal)
|
set_raw_breakpoint (sal)
|
||||||
struct symtab_and_line sal;
|
struct symtab_and_line sal;
|
||||||
{
|
{
|
||||||
@ -2627,8 +2627,7 @@ resolve_sal_pc (sal)
|
|||||||
|
|
||||||
if (sal->pc == 0 && sal->symtab != NULL)
|
if (sal->pc == 0 && sal->symtab != NULL)
|
||||||
{
|
{
|
||||||
pc = find_line_pc (sal->symtab, sal->line);
|
if (!find_line_pc (sal->symtab, sal->line, &pc))
|
||||||
if (pc == 0)
|
|
||||||
error ("No line %d in file \"%s\".",
|
error ("No line %d in file \"%s\".",
|
||||||
sal->line, sal->symtab->filename);
|
sal->line, sal->symtab->filename);
|
||||||
sal->pc = pc;
|
sal->pc = pc;
|
||||||
@ -2642,6 +2641,8 @@ resolve_sal_pc (sal)
|
|||||||
int index;
|
int index;
|
||||||
|
|
||||||
bv = blockvector_for_pc_sect (sal->pc, 0, &index, sal->symtab);
|
bv = blockvector_for_pc_sect (sal->pc, 0, &index, sal->symtab);
|
||||||
|
if (bv != NULL)
|
||||||
|
{
|
||||||
b = BLOCKVECTOR_BLOCK (bv, index);
|
b = BLOCKVECTOR_BLOCK (bv, index);
|
||||||
sym = block_function (b);
|
sym = block_function (b);
|
||||||
if (sym != NULL)
|
if (sym != NULL)
|
||||||
@ -2650,6 +2651,7 @@ resolve_sal_pc (sal)
|
|||||||
sal->section = SYMBOL_BFD_SECTION (block_function (b));
|
sal->section = SYMBOL_BFD_SECTION (block_function (b));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -3475,7 +3477,7 @@ delete_breakpoint (bpt)
|
|||||||
free ((PTR)bpt);
|
free ((PTR)bpt);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
void
|
||||||
delete_command (arg, from_tty)
|
delete_command (arg, from_tty)
|
||||||
char *arg;
|
char *arg;
|
||||||
int from_tty;
|
int from_tty;
|
||||||
@ -3484,17 +3486,28 @@ delete_command (arg, from_tty)
|
|||||||
|
|
||||||
if (arg == 0)
|
if (arg == 0)
|
||||||
{
|
{
|
||||||
|
int breaks_to_delete = 0;
|
||||||
|
|
||||||
|
/* Delete all breakpoints if no argument.
|
||||||
|
Do not delete internal or call-dummy breakpoints, these
|
||||||
|
have to be deleted with an explicit breakpoint number argument. */
|
||||||
|
ALL_BREAKPOINTS (b)
|
||||||
|
{
|
||||||
|
if (b->type != bp_call_dummy && b->number >= 0)
|
||||||
|
breaks_to_delete = 1;
|
||||||
|
}
|
||||||
|
|
||||||
/* Ask user only if there are some breakpoints to delete. */
|
/* Ask user only if there are some breakpoints to delete. */
|
||||||
if (!from_tty
|
if (!from_tty
|
||||||
|| (breakpoint_chain && query ("Delete all breakpoints? ")))
|
|| (breaks_to_delete && query ("Delete all breakpoints? ")))
|
||||||
{
|
{
|
||||||
/* No arg; clear all breakpoints. */
|
ALL_BREAKPOINTS_SAFE (b, temp)
|
||||||
ALL_BREAKPOINTS_SAFE(b, temp)
|
{
|
||||||
/* do not delete call-dummy breakpoint unles explicitly named! */
|
if (b->type != bp_call_dummy && b->number >= 0)
|
||||||
if (b->type != bp_call_dummy)
|
|
||||||
delete_breakpoint (b);
|
delete_breakpoint (b);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
map_breakpoint_numbers (arg, delete_breakpoint);
|
map_breakpoint_numbers (arg, delete_breakpoint);
|
||||||
}
|
}
|
||||||
@ -3927,7 +3940,7 @@ void
|
|||||||
enable_breakpoint (bpt)
|
enable_breakpoint (bpt)
|
||||||
struct breakpoint *bpt;
|
struct breakpoint *bpt;
|
||||||
{
|
{
|
||||||
do_enable_breakpoint (bpt, donttouch);
|
do_enable_breakpoint (bpt, bpt->disposition);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The enable command enables the specified breakpoints (or all defined
|
/* The enable command enables the specified breakpoints (or all defined
|
||||||
@ -4063,6 +4076,8 @@ This is used to cancel the effect of the \"disable\" command.\n\
|
|||||||
With a subcommand you can enable temporarily.",
|
With a subcommand you can enable temporarily.",
|
||||||
&enablelist, "enable ", 1, &cmdlist);
|
&enablelist, "enable ", 1, &cmdlist);
|
||||||
|
|
||||||
|
add_com_alias ("en", "enable", class_breakpoint, 1);
|
||||||
|
|
||||||
add_abbrev_prefix_cmd ("breakpoints", class_breakpoint, enable_command,
|
add_abbrev_prefix_cmd ("breakpoints", class_breakpoint, enable_command,
|
||||||
"Enable some breakpoints.\n\
|
"Enable some breakpoints.\n\
|
||||||
Give breakpoint numbers (separated by spaces) as arguments.\n\
|
Give breakpoint numbers (separated by spaces) as arguments.\n\
|
||||||
|
@ -295,6 +295,8 @@ v850-*-*) gdb_target=v850
|
|||||||
windows)
|
windows)
|
||||||
CONFIG_OBS="${CONFIG_OBS} v850ice.o"
|
CONFIG_OBS="${CONFIG_OBS} v850ice.o"
|
||||||
LIBS="${LIBS} necmsg.lib" ;;
|
LIBS="${LIBS} necmsg.lib" ;;
|
||||||
|
cygwin32)
|
||||||
|
CONFIG_OBS="${CONFIG_OBS} v850ice.o" ;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
# start-sanitize-v850e
|
# start-sanitize-v850e
|
||||||
@ -304,6 +306,8 @@ v850e-*-*) gdb_target=v850
|
|||||||
windows)
|
windows)
|
||||||
CONFIG_OBS="${CONFIG_OBS} v850ice.o"
|
CONFIG_OBS="${CONFIG_OBS} v850ice.o"
|
||||||
LIBS="${LIBS} v850.lib" ;;
|
LIBS="${LIBS} v850.lib" ;;
|
||||||
|
cygwin32)
|
||||||
|
CONFIG_OBS="${CONFIG_OBS} v850ice.o" ;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
v850ea-*-*) gdb_target=v850
|
v850ea-*-*) gdb_target=v850
|
||||||
@ -312,6 +316,8 @@ v850ea-*-*) gdb_target=v850
|
|||||||
windows)
|
windows)
|
||||||
CONFIG_OBS="${CONFIG_OBS} v850ice.o"
|
CONFIG_OBS="${CONFIG_OBS} v850ice.o"
|
||||||
LIBS="${LIBS} v850.lib" ;;
|
LIBS="${LIBS} v850.lib" ;;
|
||||||
|
cygwin32)
|
||||||
|
CONFIG_OBS="${CONFIG_OBS} v850ice.o" ;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
# end-sanitize-v850e
|
# end-sanitize-v850e
|
||||||
|
Loading…
Reference in New Issue
Block a user