mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
* Makefile.in (VERSION): Roll to 4.4.7.
(HFILES): Add call-cmds.h. * call-cmds.h: New header for command fns called by other files. * breakpoint.c (watchpoints_info): Remove, same as breakpoints_info. (breakpoint_1): Remove unused type arg. Change callers.
This commit is contained in:
parent
84ffdec2cb
commit
c8950965c9
@ -165,7 +165,7 @@ CDEPS = ${XM_CDEPS} ${TM_CDEPS} ${BFD_LIB} ${MMALLOC_LIB} ${LIBIBERTY} \
|
||||
ADD_FILES = ${REGEX} ${ALLOCA} ${XM_ADD_FILES} ${TM_ADD_FILES}
|
||||
ADD_DEPS = ${REGEX1} ${ALLOCA1} ${XM_ADD_FILES} ${TM_ADD_FILES}
|
||||
|
||||
VERSION = 4.4.6
|
||||
VERSION = 4.4.7
|
||||
DIST=gdb
|
||||
|
||||
LINT=/usr/5bin/lint
|
||||
@ -229,9 +229,9 @@ SFILES_STAND = $(SFILES) standalone.c
|
||||
SFILES_KGDB = $(SFILES) stuff.c kdb-start.c
|
||||
|
||||
# Header files that are not named in config/* Makefile fragments go here.
|
||||
HFILES= breakpoint.h buildsym.h command.h defs.h environ.h \
|
||||
HFILES= breakpoint.h buildsym.h call-cmds.h command.h defs.h environ.h \
|
||||
expression.h frame.h gdbcmd.h gdbcore.h gdbtypes.h \
|
||||
ieee-float.h inferior.h minimon.h partial-stab.h \
|
||||
ieee-float.h inferior.h minimon.h objfiles.h partial-stab.h \
|
||||
signals.h signame.h symfile.h symtab.h solib.h \
|
||||
target.h terminal.h tm-68k.h tm-i960.h tm-sunos.h tm-sysv4.h \
|
||||
xm-m68k.h xm-sysv4.h language.h parser-defs.h value.h
|
||||
@ -331,13 +331,13 @@ saber_gdb: $(SFILES) $(DEPFILES) copying.c version.c
|
||||
#unload ${srcdir}/nindy-share/[A-Z]*
|
||||
#load c-exp.tab.c m2-exp.tab.c
|
||||
#load copying.c version.c
|
||||
#load `echo " "$(DEPFILES) | sed -e 's/\.o/.c/g' -e 's, , ../,g'`
|
||||
#load ${LIBIBERTY_DIR}/*.c
|
||||
#load ${BFD_DIR}/*.c
|
||||
#load ${READLINE_DIR}/*.c
|
||||
#load ${MMALLOC_DIR}/*.c
|
||||
#load ../libiberty/libiberty.a
|
||||
#load ../bfd/libbfd.a
|
||||
#load ../readline/libreadline.a
|
||||
#load ../mmalloc/libmmalloc.a
|
||||
#load -ltermcap
|
||||
|
||||
#load `echo " "$(DEPFILES) | sed -e 's/\.o/.c/g' -e 's, , ../,g'`
|
||||
echo "Load .c corresponding to:" $(DEPFILES)
|
||||
|
||||
|
||||
# This is useful when debugging GDB, because some Unix's don't let you run GDB
|
||||
@ -673,6 +673,9 @@ mipsread.o: ${srcdir}/mipsread.c
|
||||
elfread.o: ${srcdir}/elfread.c
|
||||
${CC} -c ${CFLAGS} -I$(BFD_DIR) ${srcdir}/elfread.c
|
||||
|
||||
dwarfread.o: ${srcdir}/dwarfread.c
|
||||
${CC} -c ${CFLAGS} -I$(BFD_DIR) ${srcdir}/dwarfread.c
|
||||
|
||||
xcoffread.o: ${srcdir}/xcoffread.c
|
||||
${CC} -c ${CFLAGS} -I$(BFD_DIR) ${srcdir}/xcoffread.c
|
||||
|
||||
|
@ -105,9 +105,6 @@ check_duplicates PARAMS ((CORE_ADDR));
|
||||
static void
|
||||
describe_other_breakpoints PARAMS ((CORE_ADDR));
|
||||
|
||||
static void
|
||||
watchpoints_info PARAMS ((char *, int));
|
||||
|
||||
static void
|
||||
breakpoints_info PARAMS ((char *, int));
|
||||
|
||||
@ -263,11 +260,11 @@ condition_command (arg, from_tty)
|
||||
{
|
||||
if (b->cond)
|
||||
{
|
||||
free (b->cond);
|
||||
free ((PTR)b->cond);
|
||||
b->cond = 0;
|
||||
}
|
||||
if (b->cond_string != NULL)
|
||||
free (b->cond_string);
|
||||
free ((PTR)b->cond_string);
|
||||
|
||||
if (*p == 0)
|
||||
{
|
||||
@ -556,7 +553,7 @@ bpstat_clear (bsp)
|
||||
q = p->next;
|
||||
if (p->old_val != NULL)
|
||||
value_free (p->old_val);
|
||||
free (p);
|
||||
free ((PTR)p);
|
||||
p = q;
|
||||
}
|
||||
*bsp = NULL;
|
||||
@ -997,9 +994,8 @@ bpstat_should_step ()
|
||||
is nonzero, process only watchpoints. */
|
||||
|
||||
static void
|
||||
breakpoint_1 (bnum, type, allflag)
|
||||
breakpoint_1 (bnum, allflag)
|
||||
int bnum;
|
||||
enum bptype type;
|
||||
int allflag;
|
||||
{
|
||||
register struct breakpoint *b;
|
||||
@ -1111,7 +1107,7 @@ breakpoints_info (bnum_exp, from_tty)
|
||||
if (bnum_exp)
|
||||
bnum = parse_and_eval_address (bnum_exp);
|
||||
|
||||
breakpoint_1 (bnum, bp_breakpoint, 0);
|
||||
breakpoint_1 (bnum, 0);
|
||||
}
|
||||
|
||||
/* ARGSUSED */
|
||||
@ -1125,21 +1121,7 @@ all_breakpoints_info (bnum_exp, from_tty)
|
||||
if (bnum_exp)
|
||||
bnum = parse_and_eval_address (bnum_exp);
|
||||
|
||||
breakpoint_1 (bnum, bp_breakpoint, 1);
|
||||
}
|
||||
|
||||
/* ARGSUSED */
|
||||
static void
|
||||
watchpoints_info (bnum_exp, from_tty)
|
||||
char *bnum_exp;
|
||||
int from_tty;
|
||||
{
|
||||
int bnum = -1;
|
||||
|
||||
if (bnum_exp)
|
||||
bnum = parse_and_eval_address (bnum_exp);
|
||||
|
||||
breakpoint_1 (bnum, bp_watchpoint, 0);
|
||||
breakpoint_1 (bnum, 1);
|
||||
}
|
||||
|
||||
/* Print a message describing any breakpoints set at PC. */
|
||||
@ -1259,7 +1241,6 @@ static void
|
||||
create_longjmp_breakpoint(func_name)
|
||||
char *func_name;
|
||||
{
|
||||
int i;
|
||||
struct symtab_and_line sal;
|
||||
struct breakpoint *b;
|
||||
static int internal_breakpoint_number = -1;
|
||||
@ -1556,7 +1537,7 @@ break_command_1 (arg, tempflag, from_tty)
|
||||
printf ("Multiple breakpoints were set.\n");
|
||||
printf ("Use the \"delete\" command to delete unwanted breakpoints.\n");
|
||||
}
|
||||
free (sals.sals);
|
||||
free ((PTR)sals.sals);
|
||||
}
|
||||
|
||||
/* Helper function for break_command_1 and disassemble_command. */
|
||||
@ -1661,7 +1642,7 @@ until_break_command (arg, from_tty)
|
||||
error ("Couldn't get information on specified line.");
|
||||
|
||||
sal = sals.sals[0];
|
||||
free (sals.sals); /* malloc'd, so freed */
|
||||
free ((PTR)sals.sals); /* malloc'd, so freed */
|
||||
|
||||
if (*arg)
|
||||
error ("Junk at end of arguments.");
|
||||
@ -1984,7 +1965,7 @@ catch_command_1 (arg, tempflag, from_tty)
|
||||
printf ("Multiple breakpoints were set.\n");
|
||||
printf ("Use the \"delete\" command to delete unwanted breakpoints.\n");
|
||||
}
|
||||
free (sals.sals);
|
||||
free ((PTR)sals.sals);
|
||||
}
|
||||
|
||||
#if 0
|
||||
@ -2099,7 +2080,7 @@ clear_command (arg, from_tty)
|
||||
}
|
||||
if (from_tty) putchar ('\n');
|
||||
}
|
||||
free (sals.sals);
|
||||
free ((PTR)sals.sals);
|
||||
}
|
||||
|
||||
/* Delete breakpoint in BS if they are `delete' breakpoints.
|
||||
@ -2140,11 +2121,11 @@ delete_breakpoint (bpt)
|
||||
|
||||
free_command_lines (&bpt->commands);
|
||||
if (bpt->cond)
|
||||
free (bpt->cond);
|
||||
free ((PTR)bpt->cond);
|
||||
if (bpt->cond_string != NULL)
|
||||
free (bpt->cond_string);
|
||||
free ((PTR)bpt->cond_string);
|
||||
if (bpt->addr_string != NULL)
|
||||
free (bpt->addr_string);
|
||||
free ((PTR)bpt->addr_string);
|
||||
|
||||
if (xgdb_verbose && bpt->type == bp_breakpoint)
|
||||
printf ("breakpoint #%d deleted\n", bpt->number);
|
||||
@ -2154,7 +2135,7 @@ delete_breakpoint (bpt)
|
||||
for (bs = stop_bpstat; bs; bs = bs->next)
|
||||
if (bs->breakpoint_at == bpt)
|
||||
bs->breakpoint_at = NULL;
|
||||
free (bpt);
|
||||
free ((PTR)bpt);
|
||||
}
|
||||
|
||||
static void
|
||||
@ -2231,7 +2212,7 @@ breakpoint_re_set_one (bint)
|
||||
}
|
||||
b->enable = save_enable; /* Restore it, this worked. */
|
||||
}
|
||||
free (sals.sals);
|
||||
free ((PTR)sals.sals);
|
||||
break;
|
||||
case bp_watchpoint:
|
||||
/* FIXME! This is the wrong thing to do.... */
|
||||
@ -2692,9 +2673,8 @@ Do \"help breakpoints\" for info on other commands dealing with breakpoints.");
|
||||
A watchpoint stops execution of your program whenever the value of\n\
|
||||
an expression changes.");
|
||||
|
||||
add_info ("watchpoints", watchpoints_info,
|
||||
"Status of all watchpoints, or watchpoint number NUMBER.\n\
|
||||
Second column is \"y\" for enabled watchpoints, \"n\" for disabled.");
|
||||
add_info ("watchpoints", breakpoints_info,
|
||||
"Synonym for ``info breakpoints''.");
|
||||
}
|
||||
|
||||
#ifdef IBM6000_HOST
|
||||
|
28
gdb/call-cmds.h
Normal file
28
gdb/call-cmds.h
Normal file
@ -0,0 +1,28 @@
|
||||
/* Prototypes for GDB commands that are called internally by other functions.
|
||||
Copyright 1992 Free Software Foundation, Inc.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||
|
||||
extern void
|
||||
initialize_all_files PARAMS ((void));
|
||||
|
||||
extern void
|
||||
exec_file_command PARAMS ((char *, int));
|
||||
|
||||
extern void
|
||||
core_file_command PARAMS ((char *, int));
|
||||
|
||||
extern void
|
||||
break_command PARAMS ((char *, int));
|
Loading…
Reference in New Issue
Block a user