1992-07-06 01:06:47 +08:00
|
|
|
|
# Apply these patches to GDB to produce an Energize GDB.
|
|
|
|
|
# To apply these patches, first cd to gdb-XX/gdb, run "patch -p0 <thisfile",
|
|
|
|
|
# and then Sanitize.
|
|
|
|
|
|
|
|
|
|
===================================================================
|
1992-07-06 02:07:52 +08:00
|
|
|
|
RCS file: /local/cvsfiles/devo/gdb/.Sanitize,v
|
1992-07-18 08:15:39 +08:00
|
|
|
|
retrieving revision 2.63
|
|
|
|
|
diff -c -r2.63 .Sanitize
|
|
|
|
|
*** 2.63 1992/07/14 07:51:45
|
|
|
|
|
--- .Sanitize 1992/07/16 22:43:53
|
1992-07-06 02:07:52 +08:00
|
|
|
|
***************
|
1992-07-18 08:15:39 +08:00
|
|
|
|
*** 77,82 ****
|
|
|
|
|
--- 77,85 ----
|
1992-07-06 02:07:52 +08:00
|
|
|
|
doc
|
|
|
|
|
dwarfread.c
|
|
|
|
|
elfread.c
|
|
|
|
|
+ energize
|
|
|
|
|
+ energize.c
|
1992-07-06 03:09:38 +08:00
|
|
|
|
+ energize.h
|
1992-07-06 02:07:52 +08:00
|
|
|
|
environ.c
|
|
|
|
|
environ.h
|
|
|
|
|
eval.c
|
|
|
|
|
===================================================================
|
1992-07-18 08:15:39 +08:00
|
|
|
|
RCS file: /local/cvsfiles/devo/gdb/Makefile.in,v
|
|
|
|
|
retrieving revision 1.172
|
|
|
|
|
diff -c -r1.172 Makefile.in
|
|
|
|
|
*** 1.172 1992/07/17 23:53:54
|
|
|
|
|
--- Makefile.in 1992/07/18 00:11:14
|
1992-07-06 01:06:47 +08:00
|
|
|
|
***************
|
|
|
|
|
*** 123,128 ****
|
1992-07-18 08:15:39 +08:00
|
|
|
|
--- 123,135 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
READLINE_DEP = $$(READLINE_DIR)
|
|
|
|
|
RL_LIB = ./../readline${subdir}/libreadline.a
|
|
|
|
|
|
1992-07-17 03:12:49 +08:00
|
|
|
|
+ # Energize libraries. Works slightly differently than other libraries
|
|
|
|
|
+ # because it is a gdb subdir and we try to build the energize library
|
|
|
|
|
+ # if it doesn't exist, unlike readline, bfd, mmalloc, etc. Note
|
|
|
|
|
+ # that SDIR and BDIR will be different if we configured with -srcdir.
|
1992-07-18 08:15:39 +08:00
|
|
|
|
+ ENERGIZE_DIR = energize
|
|
|
|
|
+ ENERGIZE_LIB = ${ENERGIZE_DIR}/libconn.a
|
1992-07-06 01:06:47 +08:00
|
|
|
|
+
|
|
|
|
|
# All the includes used for CFLAGS and for lint.
|
|
|
|
|
# -I. for config files.
|
|
|
|
|
# -I${srcdir} possibly for regex.h also.
|
|
|
|
|
***************
|
1992-07-06 03:09:38 +08:00
|
|
|
|
*** 155,166 ****
|
1992-07-06 01:06:47 +08:00
|
|
|
|
# {X,T}M_CLIBS, defined in *config files, have host- and target-dependent libs.
|
|
|
|
|
# TERMCAP comes after readline, since readline depends on it.
|
|
|
|
|
CLIBS = ${BFD_LIB} ${RL_LIB} ${TERMCAP} ${MMALLOC_LIB} ${LIBIBERTY} \
|
|
|
|
|
! ${XM_CLIBS} ${TM_CLIBS}
|
|
|
|
|
CDEPS = ${XM_CDEPS} ${TM_CDEPS} ${BFD_LIB} ${MMALLOC_LIB} ${LIBIBERTY} \
|
|
|
|
|
${RL_LIB} ${MMALLOC_LIB}
|
|
|
|
|
|
1992-07-06 03:09:38 +08:00
|
|
|
|
ADD_FILES = ${REGEX} ${ALLOCA} ${XM_ADD_FILES} ${TM_ADD_FILES}
|
|
|
|
|
! ADD_DEPS = ${REGEX1} ${ALLOCA1} ${XM_ADD_FILES} ${TM_ADD_FILES}
|
|
|
|
|
|
1992-07-15 14:11:24 +08:00
|
|
|
|
VERSION = 4.6.1
|
1992-07-06 03:09:38 +08:00
|
|
|
|
DIST=gdb
|
1992-07-18 08:15:39 +08:00
|
|
|
|
--- 162,174 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
# {X,T}M_CLIBS, defined in *config files, have host- and target-dependent libs.
|
|
|
|
|
# TERMCAP comes after readline, since readline depends on it.
|
|
|
|
|
CLIBS = ${BFD_LIB} ${RL_LIB} ${TERMCAP} ${MMALLOC_LIB} ${LIBIBERTY} \
|
1992-07-18 08:15:39 +08:00
|
|
|
|
! ${ENERGIZE_LIB} ${XM_CLIBS} ${TM_CLIBS}
|
1992-07-06 01:06:47 +08:00
|
|
|
|
CDEPS = ${XM_CDEPS} ${TM_CDEPS} ${BFD_LIB} ${MMALLOC_LIB} ${LIBIBERTY} \
|
|
|
|
|
${RL_LIB} ${MMALLOC_LIB}
|
|
|
|
|
|
1992-07-06 03:09:38 +08:00
|
|
|
|
ADD_FILES = ${REGEX} ${ALLOCA} ${XM_ADD_FILES} ${TM_ADD_FILES}
|
|
|
|
|
! ADD_DEPS = ${REGEX1} ${ALLOCA1} ${XM_ADD_FILES} ${TM_ADD_FILES} \
|
|
|
|
|
! ${ENERGIZE_LIB}
|
|
|
|
|
|
1992-07-15 14:11:24 +08:00
|
|
|
|
VERSION = 4.6.1
|
1992-07-06 03:09:38 +08:00
|
|
|
|
DIST=gdb
|
1992-07-06 01:06:47 +08:00
|
|
|
|
***************
|
1992-07-16 03:33:21 +08:00
|
|
|
|
*** 190,196 ****
|
1992-07-06 01:06:47 +08:00
|
|
|
|
${DEMANGLER}.c mem-break.c target.c inftarg.c \
|
|
|
|
|
dbxread.c coffread.c elfread.c dwarfread.c xcoffread.c \
|
|
|
|
|
ieee-float.c language.c parse.c buildsym.c objfiles.c \
|
1992-07-15 13:49:43 +08:00
|
|
|
|
! minsyms.c mipsread.c maint.c
|
1992-07-06 01:06:47 +08:00
|
|
|
|
|
|
|
|
|
# Source files in subdirectories (which will be handled separately by
|
|
|
|
|
# 'make gdb.tar.Z').
|
1992-07-18 08:15:39 +08:00
|
|
|
|
--- 198,204 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
${DEMANGLER}.c mem-break.c target.c inftarg.c \
|
|
|
|
|
dbxread.c coffread.c elfread.c dwarfread.c xcoffread.c \
|
|
|
|
|
ieee-float.c language.c parse.c buildsym.c objfiles.c \
|
1992-07-15 13:49:43 +08:00
|
|
|
|
! minsyms.c mipsread.c maint.c energize.c
|
1992-07-06 01:06:47 +08:00
|
|
|
|
|
|
|
|
|
# Source files in subdirectories (which will be handled separately by
|
|
|
|
|
# 'make gdb.tar.Z').
|
|
|
|
|
***************
|
1992-07-16 03:33:21 +08:00
|
|
|
|
*** 276,282 ****
|
1992-07-06 01:06:47 +08:00
|
|
|
|
command.o utils.o expprint.o environ.o version.o gdbtypes.o \
|
|
|
|
|
copying.o $(DEPFILES) ${DEMANGLER}.o mem-break.o target.o \
|
|
|
|
|
inftarg.o ieee-float.o putenv.o parse.o language.o $(YYOBJ) \
|
1992-07-15 13:49:43 +08:00
|
|
|
|
! buildsym.o objfiles.o minsyms.o maint.o demangle.o \
|
1992-07-06 01:06:47 +08:00
|
|
|
|
dbxread.o coffread.o elfread.o dwarfread.o xcoffread.o mipsread.o
|
|
|
|
|
|
|
|
|
|
RAPP_OBS = rgdb.o rudp.o rserial.o serial.o udp.o $(XDEPFILES)
|
1992-07-18 08:15:39 +08:00
|
|
|
|
--- 284,290 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
command.o utils.o expprint.o environ.o version.o gdbtypes.o \
|
|
|
|
|
copying.o $(DEPFILES) ${DEMANGLER}.o mem-break.o target.o \
|
|
|
|
|
inftarg.o ieee-float.o putenv.o parse.o language.o $(YYOBJ) \
|
1992-07-15 13:49:43 +08:00
|
|
|
|
! buildsym.o objfiles.o minsyms.o maint.o demangle.o energize.o \
|
1992-07-06 01:06:47 +08:00
|
|
|
|
dbxread.o coffread.o elfread.o dwarfread.o xcoffread.o mipsread.o
|
|
|
|
|
|
|
|
|
|
RAPP_OBS = rgdb.o rudp.o rserial.o serial.o udp.o $(XDEPFILES)
|
|
|
|
|
***************
|
1992-07-16 03:33:21 +08:00
|
|
|
|
*** 289,295 ****
|
1992-07-06 01:06:47 +08:00
|
|
|
|
|
|
|
|
|
NTSSTART = kdb-start.o
|
|
|
|
|
|
|
|
|
|
! SUBDIRS = doc
|
|
|
|
|
|
|
|
|
|
# For now, shortcut the "configure GDB for fewer languages" stuff.
|
|
|
|
|
YYFILES = c-exp.tab.c m2-exp.tab.c
|
1992-07-18 08:15:39 +08:00
|
|
|
|
--- 297,303 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
|
|
|
|
|
NTSSTART = kdb-start.o
|
|
|
|
|
|
1992-07-18 08:15:39 +08:00
|
|
|
|
! SUBDIRS = doc ${ENERGIZE_DIR}
|
1992-07-06 01:06:47 +08:00
|
|
|
|
|
|
|
|
|
# For now, shortcut the "configure GDB for fewer languages" stuff.
|
|
|
|
|
YYFILES = c-exp.tab.c m2-exp.tab.c
|
|
|
|
|
***************
|
1992-07-16 03:33:21 +08:00
|
|
|
|
*** 343,348 ****
|
1992-07-18 08:15:39 +08:00
|
|
|
|
--- 351,370 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
#load `echo " "$(DEPFILES) | sed -e 's/\.o/.c/g' -e 's, , ../,g'`
|
|
|
|
|
echo "Load .c corresponding to:" $(DEPFILES)
|
|
|
|
|
|
1992-07-06 02:07:52 +08:00
|
|
|
|
+ ${ENERGIZE_LIB} :
|
1992-07-18 08:15:39 +08:00
|
|
|
|
+ @(cd ${ENERGIZE_DIR}; \
|
1992-07-06 01:06:47 +08:00
|
|
|
|
+ $(MAKE) \
|
|
|
|
|
+ "against=$(against)" \
|
|
|
|
|
+ "AR=$(AR)" \
|
|
|
|
|
+ "AR_FLAGS=$(AR_FLAGS)" \
|
|
|
|
|
+ "CC=$(CC)" \
|
|
|
|
|
+ "CFLAGS=$(CFLAGS)" \
|
|
|
|
|
+ "RANLIB=$(RANLIB)" \
|
|
|
|
|
+ "MAKEINFO=$(MAKEINFO)" \
|
|
|
|
|
+ "INSTALL=$(INSTALL)" \
|
|
|
|
|
+ "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
|
|
|
|
|
+ "INSTALL_DATA=$(INSTALL_DATA)" \
|
|
|
|
|
+ "BISON=$(BISON)")
|
|
|
|
|
|
|
|
|
|
# This is useful when debugging GDB, because some Unix's don't let you run GDB
|
|
|
|
|
# on itself without copying the executable. So "make gdb1" will make
|
|
|
|
|
***************
|
1992-07-18 08:15:39 +08:00
|
|
|
|
*** 643,649 ****
|
|
|
|
|
-e '/extern.*free/d' \
|
|
|
|
|
< y.tab.c > m2-exp.tab.c
|
|
|
|
|
-rm y.tab.c
|
|
|
|
|
-
|
1992-07-06 01:06:47 +08:00
|
|
|
|
|
1992-07-18 08:15:39 +08:00
|
|
|
|
main.o: ${srcdir}/main.c
|
|
|
|
|
${CC} -c ${INTERNAL_CFLAGS} -I${READLINE_DIR} $<
|
|
|
|
|
--- 665,670 ----
|
1992-07-06 02:07:52 +08:00
|
|
|
|
===================================================================
|
|
|
|
|
RCS file: /local/cvsfiles/devo/gdb/breakpoint.c,v
|
1992-07-18 08:15:39 +08:00
|
|
|
|
retrieving revision 1.40
|
|
|
|
|
diff -c -r1.40 breakpoint.c
|
|
|
|
|
*** 1.40 1992/07/16 23:23:02
|
|
|
|
|
--- breakpoint.c 1992/07/16 23:23:58
|
1992-07-06 01:06:47 +08:00
|
|
|
|
***************
|
|
|
|
|
*** 273,278 ****
|
1992-07-06 02:07:52 +08:00
|
|
|
|
--- 273,279 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
b->cond_string = NULL;
|
|
|
|
|
if (from_tty)
|
|
|
|
|
printf_filtered ("Breakpoint %d now unconditional.\n", bnum);
|
1992-07-06 02:07:52 +08:00
|
|
|
|
+ energize_condition_breakpoint(b);
|
1992-07-06 01:06:47 +08:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
***************
|
|
|
|
|
*** 281,286 ****
|
1992-07-06 02:07:52 +08:00
|
|
|
|
--- 282,288 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
typed in or the decompiled expression. */
|
|
|
|
|
b->cond_string = savestring (arg, strlen (arg));
|
|
|
|
|
b->cond = parse_exp_1 (&arg, block_for_pc (b->address), 0);
|
1992-07-06 02:07:52 +08:00
|
|
|
|
+ energize_condition_breakpoint(b);
|
1992-07-06 01:06:47 +08:00
|
|
|
|
if (*arg)
|
|
|
|
|
error ("Junk at end of expression");
|
|
|
|
|
}
|
|
|
|
|
***************
|
1992-07-18 08:15:39 +08:00
|
|
|
|
*** 316,327 ****
|
1992-07-06 01:06:47 +08:00
|
|
|
|
ALL_BREAKPOINTS (b)
|
|
|
|
|
if (b->number == bnum)
|
|
|
|
|
{
|
|
|
|
|
! if (from_tty && input_from_terminal_p ())
|
1992-07-18 08:15:39 +08:00
|
|
|
|
printf_filtered ("Type commands for when breakpoint %d is hit, one per line.\n\
|
1992-07-06 01:06:47 +08:00
|
|
|
|
End with a line saying just \"end\".\n", bnum);
|
|
|
|
|
l = read_command_lines ();
|
|
|
|
|
free_command_lines (&b->commands);
|
|
|
|
|
b->commands = l;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
error ("No breakpoint number %d.", bnum);
|
1992-07-06 02:07:52 +08:00
|
|
|
|
--- 318,330 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
ALL_BREAKPOINTS (b)
|
|
|
|
|
if (b->number == bnum)
|
|
|
|
|
{
|
1992-07-06 02:07:52 +08:00
|
|
|
|
! if ((from_tty && input_from_terminal_p ()) || energize)
|
1992-07-18 08:15:39 +08:00
|
|
|
|
printf_filtered ("Type commands for when breakpoint %d is hit, one per line.\n\
|
1992-07-06 01:06:47 +08:00
|
|
|
|
End with a line saying just \"end\".\n", bnum);
|
|
|
|
|
l = read_command_lines ();
|
|
|
|
|
free_command_lines (&b->commands);
|
|
|
|
|
b->commands = l;
|
1992-07-06 02:07:52 +08:00
|
|
|
|
+ energize_commands_breakpoint(b);
|
1992-07-06 01:06:47 +08:00
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
error ("No breakpoint number %d.", bnum);
|
|
|
|
|
***************
|
1992-07-18 08:15:39 +08:00
|
|
|
|
*** 922,927 ****
|
1992-07-06 02:07:52 +08:00
|
|
|
|
--- 925,931 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
{
|
|
|
|
|
b->ignore_count--;
|
|
|
|
|
this_bp_stop = 0;
|
1992-07-06 02:07:52 +08:00
|
|
|
|
+ energize_ignore_breakpoint(b);
|
1992-07-06 01:06:47 +08:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
***************
|
1992-07-18 08:15:39 +08:00
|
|
|
|
*** 1366,1371 ****
|
|
|
|
|
--- 1370,1377 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
mention (b)
|
|
|
|
|
struct breakpoint *b;
|
|
|
|
|
{
|
1992-07-06 02:07:52 +08:00
|
|
|
|
+ energize_create_breakpoint(b);
|
1992-07-06 01:06:47 +08:00
|
|
|
|
+
|
|
|
|
|
switch (b->type)
|
|
|
|
|
{
|
|
|
|
|
case bp_watchpoint:
|
|
|
|
|
***************
|
1992-07-18 08:15:39 +08:00
|
|
|
|
*** 2113,2118 ****
|
|
|
|
|
--- 2119,2126 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
register struct breakpoint *b;
|
|
|
|
|
register bpstat bs;
|
|
|
|
|
|
1992-07-06 02:07:52 +08:00
|
|
|
|
+ energize_delete_breakpoint(bpt);
|
1992-07-06 01:06:47 +08:00
|
|
|
|
+
|
|
|
|
|
if (bpt->inserted)
|
|
|
|
|
target_remove_breakpoint(bpt->address, bpt->shadow_contents);
|
|
|
|
|
|
|
|
|
|
***************
|
1992-07-18 08:15:39 +08:00
|
|
|
|
*** 2284,2289 ****
|
|
|
|
|
--- 2292,2298 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
if (b->number == bptnum)
|
|
|
|
|
{
|
|
|
|
|
b->ignore_count = count;
|
1992-07-06 02:07:52 +08:00
|
|
|
|
+ energize_ignore_breakpoint(b);
|
1992-07-06 01:06:47 +08:00
|
|
|
|
if (!from_tty)
|
|
|
|
|
return;
|
|
|
|
|
else if (count == 0)
|
|
|
|
|
***************
|
1992-07-18 08:15:39 +08:00
|
|
|
|
*** 2308,2314 ****
|
1992-07-06 01:06:47 +08:00
|
|
|
|
struct breakpoint *b;
|
|
|
|
|
|
|
|
|
|
ALL_BREAKPOINTS (b)
|
|
|
|
|
! b->ignore_count = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Command to set ignore-count of breakpoint N to COUNT. */
|
1992-07-18 08:15:39 +08:00
|
|
|
|
--- 2317,2326 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
struct breakpoint *b;
|
|
|
|
|
|
|
|
|
|
ALL_BREAKPOINTS (b)
|
|
|
|
|
! {
|
|
|
|
|
! b->ignore_count = 0;
|
1992-07-06 02:07:52 +08:00
|
|
|
|
! energize_ignore_breakpoint(b);
|
1992-07-06 01:06:47 +08:00
|
|
|
|
! }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Command to set ignore-count of breakpoint N to COUNT. */
|
|
|
|
|
***************
|
1992-07-18 08:15:39 +08:00
|
|
|
|
*** 2375,2380 ****
|
|
|
|
|
--- 2387,2394 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
{
|
|
|
|
|
bpt->enable = enabled;
|
|
|
|
|
|
1992-07-06 02:07:52 +08:00
|
|
|
|
+ energize_enable_breakpoint(bpt);
|
1992-07-06 01:06:47 +08:00
|
|
|
|
+
|
|
|
|
|
if (xgdb_verbose && bpt->type == bp_breakpoint)
|
|
|
|
|
printf ("breakpoint #%d enabled\n", bpt->number);
|
|
|
|
|
|
|
|
|
|
***************
|
1992-07-18 08:15:39 +08:00
|
|
|
|
*** 2422,2427 ****
|
|
|
|
|
--- 2436,2443 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
disable_breakpoint (bpt)
|
|
|
|
|
struct breakpoint *bpt;
|
|
|
|
|
{
|
1992-07-06 02:07:52 +08:00
|
|
|
|
+ energize_disable_breakpoint(bpt);
|
1992-07-06 01:06:47 +08:00
|
|
|
|
+
|
|
|
|
|
bpt->enable = disabled;
|
|
|
|
|
|
|
|
|
|
if (xgdb_verbose && bpt->type == bp_breakpoint)
|
1992-07-06 02:07:52 +08:00
|
|
|
|
===================================================================
|
|
|
|
|
RCS file: /local/cvsfiles/devo/gdb/command.c,v
|
1992-07-18 08:15:39 +08:00
|
|
|
|
retrieving revision 1.18
|
|
|
|
|
diff -c -r1.18 command.c
|
|
|
|
|
*** 1.18 1992/07/10 17:22:30
|
|
|
|
|
--- command.c 1992/07/16 22:44:12
|
1992-07-06 01:06:47 +08:00
|
|
|
|
***************
|
1992-07-18 08:15:39 +08:00
|
|
|
|
*** 1148,1154 ****
|
1992-07-06 01:06:47 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (pid != -1)
|
|
|
|
|
! while ((rc = wait (&status)) != pid && rc != -1)
|
|
|
|
|
;
|
|
|
|
|
else
|
|
|
|
|
error ("Fork failed");
|
1992-07-18 08:15:39 +08:00
|
|
|
|
--- 1148,1154 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (pid != -1)
|
1992-07-06 02:07:52 +08:00
|
|
|
|
! while ((rc = energize_wait (&status)) != pid && rc != -1)
|
1992-07-06 01:06:47 +08:00
|
|
|
|
;
|
|
|
|
|
else
|
|
|
|
|
error ("Fork failed");
|
1992-07-06 02:07:52 +08:00
|
|
|
|
===================================================================
|
|
|
|
|
RCS file: /local/cvsfiles/devo/gdb/configure.in,v
|
1992-07-18 08:15:39 +08:00
|
|
|
|
retrieving revision 1.51
|
|
|
|
|
diff -c -r1.51 configure.in
|
|
|
|
|
*** 1.51 1992/07/07 07:22:33
|
|
|
|
|
--- configure.in 1992/07/16 22:44:14
|
1992-07-06 01:06:47 +08:00
|
|
|
|
***************
|
|
|
|
|
*** 1,4 ****
|
|
|
|
|
! configdirs="doc"
|
|
|
|
|
srcname="GDB"
|
|
|
|
|
srctrigger=main.c
|
|
|
|
|
target_dependent=true
|
|
|
|
|
--- 1,4 ----
|
1992-07-06 02:07:52 +08:00
|
|
|
|
! configdirs="energize doc"
|
1992-07-06 01:06:47 +08:00
|
|
|
|
srcname="GDB"
|
|
|
|
|
srctrigger=main.c
|
|
|
|
|
target_dependent=true
|
1992-07-06 02:07:52 +08:00
|
|
|
|
===================================================================
|
|
|
|
|
RCS file: /local/cvsfiles/devo/gdb/defs.h,v
|
1992-07-18 08:15:39 +08:00
|
|
|
|
retrieving revision 1.43
|
|
|
|
|
diff -c -r1.43 defs.h
|
|
|
|
|
*** 1.43 1992/07/09 04:40:24
|
|
|
|
|
--- defs.h 1992/07/16 22:48:44
|
|
|
|
|
***************
|
|
|
|
|
*** 805,808 ****
|
|
|
|
|
--- 805,810 ----
|
|
|
|
|
#define MAINTENANCE_CMDS 1
|
|
|
|
|
#endif
|
1992-07-06 01:06:47 +08:00
|
|
|
|
|
1992-07-06 02:07:52 +08:00
|
|
|
|
+ #include "energize.h"
|
1992-07-06 01:06:47 +08:00
|
|
|
|
+
|
|
|
|
|
#endif /* !defined (DEFS_H) */
|
1992-07-06 02:07:52 +08:00
|
|
|
|
===================================================================
|
|
|
|
|
RCS file: /local/cvsfiles/devo/gdb/inflow.c,v
|
|
|
|
|
retrieving revision 1.27
|
|
|
|
|
diff -c -r1.27 inflow.c
|
|
|
|
|
*** 1.27 1992/07/04 03:21:21
|
|
|
|
|
--- inflow.c 1992/07/05 12:58:31
|
1992-07-06 01:06:47 +08:00
|
|
|
|
***************
|
|
|
|
|
*** 81,87 ****
|
|
|
|
|
static short pgrp_inferior;
|
|
|
|
|
static short pgrp_ours;
|
|
|
|
|
# else /* not def SHORT_PGRP */
|
|
|
|
|
! static int pgrp_inferior;
|
|
|
|
|
static int pgrp_ours;
|
|
|
|
|
# endif /* not def SHORT_PGRP */
|
|
|
|
|
#else /* not def TIOCGPGRP */
|
|
|
|
|
--- 81,87 ----
|
|
|
|
|
static short pgrp_inferior;
|
|
|
|
|
static short pgrp_ours;
|
|
|
|
|
# else /* not def SHORT_PGRP */
|
|
|
|
|
! int pgrp_inferior;
|
|
|
|
|
static int pgrp_ours;
|
|
|
|
|
# endif /* not def SHORT_PGRP */
|
|
|
|
|
#else /* not def TIOCGPGRP */
|
1992-07-06 02:07:52 +08:00
|
|
|
|
===================================================================
|
|
|
|
|
RCS file: /local/cvsfiles/devo/gdb/infrun.c,v
|
|
|
|
|
retrieving revision 1.52
|
|
|
|
|
diff -c -r1.52 infrun.c
|
|
|
|
|
*** 1.52 1992/07/04 03:21:24
|
|
|
|
|
--- infrun.c 1992/07/05 13:46:46
|
1992-07-06 01:06:47 +08:00
|
|
|
|
***************
|
|
|
|
|
*** 617,622 ****
|
1992-07-06 02:07:52 +08:00
|
|
|
|
--- 617,623 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
Here we must get it up to actual execution of the real program. */
|
|
|
|
|
|
|
|
|
|
inferior_pid = pid; /* Needed for wait_for_inferior stuff below */
|
1992-07-06 02:07:52 +08:00
|
|
|
|
+ energize_new_process();
|
1992-07-06 01:06:47 +08:00
|
|
|
|
|
|
|
|
|
clear_proceed_status ();
|
|
|
|
|
|
|
|
|
|
***************
|
|
|
|
|
*** 755,760 ****
|
1992-07-06 02:07:52 +08:00
|
|
|
|
--- 756,762 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
|
|
|
|
|
attach (pid);
|
|
|
|
|
inferior_pid = pid;
|
1992-07-06 02:07:52 +08:00
|
|
|
|
+ energize_new_process();
|
1992-07-06 01:06:47 +08:00
|
|
|
|
push_target (&child_ops);
|
|
|
|
|
|
|
|
|
|
mark_breakpoints_out ();
|
1992-07-06 02:07:52 +08:00
|
|
|
|
===================================================================
|
|
|
|
|
RCS file: /local/cvsfiles/devo/gdb/inftarg.c,v
|
|
|
|
|
retrieving revision 1.11
|
|
|
|
|
diff -c -r1.11 inftarg.c
|
|
|
|
|
*** 1.11 1992/03/29 23:21:27
|
|
|
|
|
--- inftarg.c 1992/07/05 13:48:05
|
1992-07-06 01:06:47 +08:00
|
|
|
|
***************
|
|
|
|
|
*** 58,64 ****
|
|
|
|
|
#ifdef USE_PROC_FS
|
|
|
|
|
pid = proc_wait (status);
|
|
|
|
|
#else
|
|
|
|
|
! pid = wait (status);
|
|
|
|
|
#endif
|
|
|
|
|
if (pid == -1) /* No more children to wait for */
|
|
|
|
|
{
|
1992-07-06 02:07:52 +08:00
|
|
|
|
--- 58,64 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
#ifdef USE_PROC_FS
|
|
|
|
|
pid = proc_wait (status);
|
|
|
|
|
#else
|
1992-07-06 02:07:52 +08:00
|
|
|
|
! pid = energize_wait (status);
|
1992-07-06 01:06:47 +08:00
|
|
|
|
#endif
|
|
|
|
|
if (pid == -1) /* No more children to wait for */
|
|
|
|
|
{
|
1992-07-06 02:07:52 +08:00
|
|
|
|
===================================================================
|
|
|
|
|
RCS file: /local/cvsfiles/devo/gdb/main.c,v
|
1992-07-18 08:15:39 +08:00
|
|
|
|
retrieving revision 1.51
|
|
|
|
|
diff -c -r1.51 main.c
|
|
|
|
|
*** 1.51 1992/07/10 17:22:33
|
|
|
|
|
--- main.c 1992/07/17 23:22:19
|
1992-07-06 01:06:47 +08:00
|
|
|
|
***************
|
1992-07-18 08:15:39 +08:00
|
|
|
|
*** 426,431 ****
|
|
|
|
|
--- 426,432 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
char *corearg = NULL;
|
|
|
|
|
char *cdarg = NULL;
|
|
|
|
|
char *ttyarg = NULL;
|
1992-07-06 02:07:52 +08:00
|
|
|
|
+ char *energize_id = NULL;
|
1992-07-06 01:06:47 +08:00
|
|
|
|
|
|
|
|
|
/* Pointers to all arguments of +command option. */
|
|
|
|
|
char **cmdarg;
|
|
|
|
|
***************
|
1992-07-18 08:15:39 +08:00
|
|
|
|
*** 524,529 ****
|
|
|
|
|
--- 525,531 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
{"tty", required_argument, 0, 't'},
|
|
|
|
|
{"baud", required_argument, 0, 'b'},
|
|
|
|
|
{"b", required_argument, 0, 'b'},
|
|
|
|
|
+ {"context", required_argument, 0, 12},
|
|
|
|
|
/* Allow machine descriptions to add more options... */
|
|
|
|
|
#ifdef ADDITIONAL_OPTIONS
|
|
|
|
|
ADDITIONAL_OPTIONS
|
|
|
|
|
***************
|
1992-07-18 08:15:39 +08:00
|
|
|
|
*** 556,561 ****
|
|
|
|
|
--- 558,566 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
case 11:
|
|
|
|
|
cdarg = optarg;
|
|
|
|
|
break;
|
|
|
|
|
+ case 12:
|
1992-07-06 02:07:52 +08:00
|
|
|
|
+ energize_id = optarg;
|
1992-07-06 01:06:47 +08:00
|
|
|
|
+ break;
|
|
|
|
|
case 's':
|
|
|
|
|
symarg = optarg;
|
|
|
|
|
break;
|
|
|
|
|
***************
|
1992-07-18 08:15:39 +08:00
|
|
|
|
*** 736,741 ****
|
|
|
|
|
--- 741,748 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
free ((PTR)dirarg);
|
|
|
|
|
do_cleanups (ALL_CLEANUPS);
|
|
|
|
|
|
1992-07-06 02:07:52 +08:00
|
|
|
|
+ energize_initialize (energize_id, execarg);
|
1992-07-06 01:06:47 +08:00
|
|
|
|
+
|
|
|
|
|
if (execarg != NULL
|
|
|
|
|
&& symarg != NULL
|
|
|
|
|
&& strcmp (execarg, symarg) == 0)
|
|
|
|
|
***************
|
1992-07-18 08:15:39 +08:00
|
|
|
|
*** 850,856 ****
|
1992-07-06 01:06:47 +08:00
|
|
|
|
if (!setjmp (to_top_level))
|
|
|
|
|
{
|
|
|
|
|
do_cleanups (ALL_CLEANUPS); /* Do complete cleanup */
|
|
|
|
|
! command_loop ();
|
|
|
|
|
quit_command ((char *)0, instream == stdin);
|
|
|
|
|
}
|
|
|
|
|
}
|
1992-07-18 08:15:39 +08:00
|
|
|
|
--- 857,866 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
if (!setjmp (to_top_level))
|
|
|
|
|
{
|
|
|
|
|
do_cleanups (ALL_CLEANUPS); /* Do complete cleanup */
|
1992-07-06 02:07:52 +08:00
|
|
|
|
! if (energize)
|
|
|
|
|
! energize_main_loop();
|
1992-07-06 01:06:47 +08:00
|
|
|
|
! else
|
|
|
|
|
! command_loop ();
|
|
|
|
|
quit_command ((char *)0, instream == stdin);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
***************
|
1992-07-18 08:15:39 +08:00
|
|
|
|
*** 912,918 ****
|
1992-07-06 01:06:47 +08:00
|
|
|
|
else if (c->function.cfunc == NO_FUNCTION)
|
|
|
|
|
error ("That is not a command, just a help topic.");
|
|
|
|
|
else
|
|
|
|
|
! (*c->function.cfunc) (arg, from_tty & caution);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Tell the user if the language has changed (except first time). */
|
1992-07-18 08:15:39 +08:00
|
|
|
|
--- 922,928 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
else if (c->function.cfunc == NO_FUNCTION)
|
|
|
|
|
error ("That is not a command, just a help topic.");
|
|
|
|
|
else
|
1992-07-06 02:07:52 +08:00
|
|
|
|
! energize_call_command (c, arg, from_tty & caution);
|
1992-07-06 01:06:47 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Tell the user if the language has changed (except first time). */
|
|
|
|
|
***************
|
1992-07-18 08:15:39 +08:00
|
|
|
|
*** 1564,1570 ****
|
1992-07-06 01:06:47 +08:00
|
|
|
|
while (1)
|
|
|
|
|
{
|
|
|
|
|
dont_repeat ();
|
|
|
|
|
! p = command_line_input ((char *) NULL, instream == stdin);
|
|
|
|
|
if (p == NULL)
|
|
|
|
|
/* Treat end of file like "end". */
|
|
|
|
|
break;
|
1992-07-18 08:15:39 +08:00
|
|
|
|
--- 1574,1580 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
while (1)
|
|
|
|
|
{
|
|
|
|
|
dont_repeat ();
|
1992-07-06 02:07:52 +08:00
|
|
|
|
! p = energize_command_line_input ((char *) NULL, instream == stdin);
|
1992-07-06 01:06:47 +08:00
|
|
|
|
if (p == NULL)
|
|
|
|
|
/* Treat end of file like "end". */
|
|
|
|
|
break;
|
|
|
|
|
***************
|
1992-07-18 08:15:39 +08:00
|
|
|
|
*** 1868,1874 ****
|
1992-07-06 01:06:47 +08:00
|
|
|
|
void
|
|
|
|
|
print_prompt ()
|
|
|
|
|
{
|
|
|
|
|
! printf ("%s", prompt);
|
|
|
|
|
fflush (stdout);
|
|
|
|
|
}
|
|
|
|
|
|
1992-07-18 08:15:39 +08:00
|
|
|
|
--- 1878,1884 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
void
|
|
|
|
|
print_prompt ()
|
|
|
|
|
{
|
|
|
|
|
! printf_filtered ("%s", prompt);
|
|
|
|
|
fflush (stdout);
|
|
|
|
|
}
|
|
|
|
|
|
1992-07-06 02:07:52 +08:00
|
|
|
|
===================================================================
|
|
|
|
|
RCS file: /local/cvsfiles/devo/gdb/printcmd.c,v
|
1992-07-18 08:15:39 +08:00
|
|
|
|
retrieving revision 1.30
|
|
|
|
|
diff -c -r1.30 printcmd.c
|
|
|
|
|
*** 1.30 1992/07/06 00:22:52
|
|
|
|
|
--- printcmd.c 1992/07/16 22:44:42
|
1992-07-06 01:06:47 +08:00
|
|
|
|
***************
|
|
|
|
|
*** 778,783 ****
|
|
|
|
|
--- 778,792 ----
|
|
|
|
|
{
|
|
|
|
|
int histindex = record_latest_value (val);
|
|
|
|
|
|
1992-07-06 02:07:52 +08:00
|
|
|
|
+ if (energize)
|
1992-07-06 01:06:47 +08:00
|
|
|
|
+ {
|
|
|
|
|
+ char buf[20];
|
|
|
|
|
+
|
|
|
|
|
+ sprintf(buf, "$%d", histindex);
|
1992-07-06 02:07:52 +08:00
|
|
|
|
+ energize_start_variable_annotation(buf, NULL, VALUE_TYPE(val),
|
1992-07-06 01:06:47 +08:00
|
|
|
|
+ VALUE_ADDRESS(val), "");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
if (inspect)
|
|
|
|
|
printf ("\031(gdb-makebuffer \"%s\" %d '(\"", exp, histindex);
|
|
|
|
|
else
|
|
|
|
|
***************
|
|
|
|
|
*** 784,789 ****
|
1992-07-06 02:07:52 +08:00
|
|
|
|
--- 793,799 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
if (histindex >= 0) printf_filtered ("$%d = ", histindex);
|
|
|
|
|
|
|
|
|
|
print_formatted (val, format, fmt.size);
|
1992-07-06 02:07:52 +08:00
|
|
|
|
+ energize_end_variable_annotation();
|
1992-07-06 01:06:47 +08:00
|
|
|
|
printf_filtered ("\n");
|
|
|
|
|
if (inspect)
|
|
|
|
|
printf("\") )\030");
|
|
|
|
|
***************
|
1992-07-18 08:15:39 +08:00
|
|
|
|
*** 1653,1663 ****
|
|
|
|
|
--- 1663,1681 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
standard indentation here is 4 spaces, and val_print indents
|
|
|
|
|
2 for each recurse. */
|
|
|
|
|
val = read_var_value (sym, FRAME_INFO_ID (fi));
|
|
|
|
|
+
|
1992-07-06 02:07:52 +08:00
|
|
|
|
+ energize_start_variable_annotation(SYMBOL_NAME(sym), sym,
|
|
|
|
|
+ VALUE_TYPE(val),
|
|
|
|
|
+ VALUE_ADDRESS(val), "");
|
1992-07-06 01:06:47 +08:00
|
|
|
|
+
|
|
|
|
|
if (val)
|
|
|
|
|
val_print (VALUE_TYPE (val), VALUE_CONTENTS (val), VALUE_ADDRESS (val),
|
|
|
|
|
stream, 0, 0, 2, Val_no_prettyprint);
|
|
|
|
|
else
|
|
|
|
|
fputs_filtered ("???", stream);
|
|
|
|
|
+
|
1992-07-06 02:07:52 +08:00
|
|
|
|
+ energize_end_variable_annotation();
|
1992-07-06 01:06:47 +08:00
|
|
|
|
+
|
|
|
|
|
first = 0;
|
|
|
|
|
}
|
|
|
|
|
|
1992-07-06 02:07:52 +08:00
|
|
|
|
===================================================================
|
|
|
|
|
RCS file: /local/cvsfiles/devo/gdb/stack.c,v
|
|
|
|
|
retrieving revision 1.33
|
|
|
|
|
diff -c -r1.33 stack.c
|
|
|
|
|
*** 1.33 1992/07/04 03:21:45
|
|
|
|
|
--- stack.c 1992/07/05 14:13:23
|
1992-07-06 01:06:47 +08:00
|
|
|
|
***************
|
|
|
|
|
*** 159,165 ****
|
|
|
|
|
if (addressprint)
|
|
|
|
|
printf_filtered ("%s in ", local_hex_string(fi->pc));
|
|
|
|
|
|
|
|
|
|
! fputs_demangled (fname, stdout, 0);
|
|
|
|
|
fputs_filtered (" (...)\n", stdout);
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
--- 159,168 ----
|
|
|
|
|
if (addressprint)
|
|
|
|
|
printf_filtered ("%s in ", local_hex_string(fi->pc));
|
|
|
|
|
|
1992-07-06 02:07:52 +08:00
|
|
|
|
! if (energize)
|
|
|
|
|
! energize_annotate_function(fname, 0, level);
|
1992-07-06 01:06:47 +08:00
|
|
|
|
! else
|
|
|
|
|
! fputs_demangled (fname, stdout, 0);
|
|
|
|
|
fputs_filtered (" (...)\n", stdout);
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
***************
|
|
|
|
|
*** 218,224 ****
|
|
|
|
|
if (addressprint)
|
|
|
|
|
if (fi->pc != sal.pc || !sal.symtab)
|
|
|
|
|
printf_filtered ("%s in ", local_hex_string(fi->pc));
|
|
|
|
|
! fputs_demangled (funname ? funname : "??", stdout, 0);
|
|
|
|
|
wrap_here (" ");
|
|
|
|
|
fputs_filtered (" (", stdout);
|
|
|
|
|
if (args)
|
|
|
|
|
--- 221,230 ----
|
|
|
|
|
if (addressprint)
|
|
|
|
|
if (fi->pc != sal.pc || !sal.symtab)
|
|
|
|
|
printf_filtered ("%s in ", local_hex_string(fi->pc));
|
1992-07-06 02:07:52 +08:00
|
|
|
|
! if (energize)
|
|
|
|
|
! energize_annotate_function(funname ? funname : "??", 0, level);
|
1992-07-06 01:06:47 +08:00
|
|
|
|
! else
|
|
|
|
|
! fputs_demangled (funname ? funname : "??", stdout, 0);
|
|
|
|
|
wrap_here (" ");
|
|
|
|
|
fputs_filtered (" (", stdout);
|
|
|
|
|
if (args)
|
|
|
|
|
***************
|
|
|
|
|
*** 255,261 ****
|
|
|
|
|
{
|
|
|
|
|
if (addressprint && mid_statement)
|
|
|
|
|
printf_filtered ("%s\t", local_hex_string(fi->pc));
|
|
|
|
|
! print_source_lines (sal.symtab, sal.line, sal.line + 1, 0);
|
|
|
|
|
}
|
|
|
|
|
current_source_line = max (sal.line - lines_to_list/2, 1);
|
|
|
|
|
}
|
|
|
|
|
--- 261,268 ----
|
|
|
|
|
{
|
|
|
|
|
if (addressprint && mid_statement)
|
|
|
|
|
printf_filtered ("%s\t", local_hex_string(fi->pc));
|
1992-07-06 02:07:52 +08:00
|
|
|
|
! if (!energize)
|
1992-07-06 01:06:47 +08:00
|
|
|
|
! print_source_lines (sal.symtab, sal.line, sal.line + 1, 0);
|
|
|
|
|
}
|
|
|
|
|
current_source_line = max (sal.line - lines_to_list/2, 1);
|
|
|
|
|
}
|
|
|
|
|
***************
|
|
|
|
|
*** 429,435 ****
|
|
|
|
|
if (funname)
|
|
|
|
|
{
|
|
|
|
|
printf_filtered (" in ");
|
|
|
|
|
! fputs_demangled (funname, stdout, DMGL_ANSI | DMGL_PARAMS);
|
|
|
|
|
}
|
|
|
|
|
wrap_here (" ");
|
|
|
|
|
if (sal.symtab)
|
|
|
|
|
--- 436,446 ----
|
|
|
|
|
if (funname)
|
|
|
|
|
{
|
|
|
|
|
printf_filtered (" in ");
|
1992-07-06 02:07:52 +08:00
|
|
|
|
! if (energize)
|
|
|
|
|
! energize_annotate_function(funname, DMGL_ANSI | DMGL_PARAMS,
|
|
|
|
|
! selected_frame_level);
|
1992-07-06 01:06:47 +08:00
|
|
|
|
! else
|
|
|
|
|
! fputs_demangled (funname, stdout, DMGL_ANSI | DMGL_PARAMS);
|
|
|
|
|
}
|
|
|
|
|
wrap_here (" ");
|
|
|
|
|
if (sal.symtab)
|
1992-07-06 02:07:52 +08:00
|
|
|
|
===================================================================
|
|
|
|
|
RCS file: /local/cvsfiles/devo/gdb/symfile.c,v
|
|
|
|
|
retrieving revision 1.55
|
|
|
|
|
diff -c -r1.55 symfile.c
|
|
|
|
|
*** 1.55 1992/07/04 13:58:46
|
|
|
|
|
--- symfile.c 1992/07/05 14:14:12
|
|
|
|
|
***************
|
|
|
|
|
*** 611,616 ****
|
|
|
|
|
--- 611,618 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
fflush (stdout);
|
|
|
|
|
}
|
|
|
|
|
|
1992-07-06 02:07:52 +08:00
|
|
|
|
+ energize_symbol_file(objfile);
|
1992-07-06 01:06:47 +08:00
|
|
|
|
+
|
|
|
|
|
return (objfile);
|
|
|
|
|
}
|
|
|
|
|
|
1992-07-06 02:07:52 +08:00
|
|
|
|
===================================================================
|
|
|
|
|
RCS file: /local/cvsfiles/devo/gdb/utils.c,v
|
1992-07-18 08:15:39 +08:00
|
|
|
|
retrieving revision 1.54
|
|
|
|
|
diff -c -r1.54 utils.c
|
|
|
|
|
*** 1.54 1992/07/09 04:40:35
|
|
|
|
|
--- utils.c 1992/07/16 22:44:50
|
1992-07-06 01:06:47 +08:00
|
|
|
|
***************
|
|
|
|
|
*** 694,700 ****
|
|
|
|
|
register int ans2;
|
|
|
|
|
|
|
|
|
|
/* Automatically answer "yes" if input is not from a terminal. */
|
|
|
|
|
! if (!input_from_terminal_p ())
|
|
|
|
|
return 1;
|
|
|
|
|
|
|
|
|
|
while (1)
|
1992-07-06 02:07:52 +08:00
|
|
|
|
--- 694,700 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
register int ans2;
|
|
|
|
|
|
|
|
|
|
/* Automatically answer "yes" if input is not from a terminal. */
|
1992-07-06 02:07:52 +08:00
|
|
|
|
! if (!input_from_terminal_p () && !energize)
|
1992-07-06 01:06:47 +08:00
|
|
|
|
return 1;
|
|
|
|
|
|
|
|
|
|
while (1)
|
|
|
|
|
***************
|
|
|
|
|
*** 701,721 ****
|
|
|
|
|
{
|
|
|
|
|
va_start (args);
|
|
|
|
|
ctlstr = va_arg (args, char *);
|
|
|
|
|
vfprintf_filtered (stdout, ctlstr, args);
|
|
|
|
|
- va_end (args);
|
|
|
|
|
printf_filtered ("(y or n) ");
|
|
|
|
|
! fflush (stdout);
|
|
|
|
|
! answer = fgetc (stdin);
|
|
|
|
|
! clearerr (stdin); /* in case of C-d */
|
|
|
|
|
! if (answer == EOF) /* C-d */
|
|
|
|
|
! return 1;
|
|
|
|
|
! if (answer != '\n') /* Eat rest of input line, to EOF or newline */
|
|
|
|
|
! do
|
|
|
|
|
! {
|
|
|
|
|
! ans2 = fgetc (stdin);
|
|
|
|
|
! clearerr (stdin);
|
|
|
|
|
! }
|
|
|
|
|
! while (ans2 != EOF && ans2 != '\n');
|
|
|
|
|
if (answer >= 'a')
|
|
|
|
|
answer -= 040;
|
|
|
|
|
if (answer == 'Y')
|
1992-07-06 02:07:52 +08:00
|
|
|
|
--- 701,732 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
{
|
|
|
|
|
va_start (args);
|
|
|
|
|
ctlstr = va_arg (args, char *);
|
1992-07-06 02:07:52 +08:00
|
|
|
|
+ energize_query (ctlstr, args);
|
1992-07-06 01:06:47 +08:00
|
|
|
|
vfprintf_filtered (stdout, ctlstr, args);
|
|
|
|
|
printf_filtered ("(y or n) ");
|
1992-07-06 02:07:52 +08:00
|
|
|
|
! if (energize)
|
1992-07-06 01:06:47 +08:00
|
|
|
|
! {
|
|
|
|
|
! char *buf;
|
|
|
|
|
!
|
1992-07-06 02:07:52 +08:00
|
|
|
|
! buf = energize_command_line_input(0, 0);
|
1992-07-06 01:06:47 +08:00
|
|
|
|
! answer = buf ? *buf : 'Y';
|
1992-07-06 02:07:52 +08:00
|
|
|
|
! energize_acknowledge_query(buf);
|
1992-07-06 01:06:47 +08:00
|
|
|
|
! }
|
|
|
|
|
! else
|
|
|
|
|
! {
|
|
|
|
|
! fflush (stdout);
|
|
|
|
|
! answer = fgetc (stdin);
|
|
|
|
|
! clearerr (stdin); /* in case of C-d */
|
|
|
|
|
! if (answer == EOF) /* C-d */
|
|
|
|
|
! return 1;
|
|
|
|
|
! if (answer != '\n') /* Eat rest of input line, to EOF or newline */
|
|
|
|
|
! do
|
|
|
|
|
! {
|
|
|
|
|
! ans2 = fgetc (stdin);
|
|
|
|
|
! clearerr (stdin);
|
|
|
|
|
! }
|
|
|
|
|
! while (ans2 != EOF && ans2 != '\n');
|
|
|
|
|
! }
|
|
|
|
|
if (answer >= 'a')
|
|
|
|
|
answer -= 040;
|
|
|
|
|
if (answer == 'Y')
|
|
|
|
|
***************
|
|
|
|
|
*** 723,728 ****
|
1992-07-06 02:07:52 +08:00
|
|
|
|
--- 734,740 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
if (answer == 'N')
|
|
|
|
|
return 0;
|
|
|
|
|
printf_filtered ("Please answer y or n.\n");
|
|
|
|
|
+ va_end (args);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
***************
|
|
|
|
|
*** 989,994 ****
|
1992-07-06 02:07:52 +08:00
|
|
|
|
--- 1001,1012 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
if (linebuffer == 0)
|
|
|
|
|
return;
|
|
|
|
|
|
1992-07-06 02:07:52 +08:00
|
|
|
|
+ if (energize)
|
1992-07-06 01:06:47 +08:00
|
|
|
|
+ {
|
1992-07-06 02:07:52 +08:00
|
|
|
|
+ energize_fputs(linebuffer);
|
1992-07-06 01:06:47 +08:00
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
/* Don't do any filtering if it is disabled. */
|
|
|
|
|
if (stream != stdout
|
|
|
|
|
|| (lines_per_page == UINT_MAX && chars_per_line == UINT_MAX))
|
1992-07-06 02:07:52 +08:00
|
|
|
|
===================================================================
|
|
|
|
|
RCS file: /local/cvsfiles/devo/gdb/valprint.c,v
|
1992-07-18 08:15:39 +08:00
|
|
|
|
retrieving revision 1.48
|
|
|
|
|
diff -c -r1.48 valprint.c
|
|
|
|
|
*** 1.48 1992/07/10 03:56:06
|
|
|
|
|
--- valprint.c 1992/07/16 22:44:53
|
1992-07-06 01:06:47 +08:00
|
|
|
|
***************
|
|
|
|
|
*** 485,490 ****
|
|
|
|
|
--- 485,491 ----
|
|
|
|
|
struct type **dont_print;
|
|
|
|
|
{
|
|
|
|
|
int i, len, n_baseclasses;
|
1992-07-06 02:07:52 +08:00
|
|
|
|
+ char expr_tag[100]; /* Energize */
|
1992-07-06 01:06:47 +08:00
|
|
|
|
|
|
|
|
|
check_stub_type (type);
|
|
|
|
|
|
|
|
|
|
***************
|
|
|
|
|
*** 549,554 ****
|
1992-07-06 02:07:52 +08:00
|
|
|
|
--- 550,562 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
fprint_symbol (stream, TYPE_FIELD_NAME (type, i));
|
|
|
|
|
fputs_filtered (" = ", stream);
|
|
|
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ sprintf(expr_tag, ".%s", TYPE_FIELD_NAME(type, i));
|
|
|
|
|
+
|
1992-07-06 02:07:52 +08:00
|
|
|
|
+ energize_start_variable_annotation(expr_tag, NULL,
|
|
|
|
|
+ TYPE_FIELD_TYPE(type, i),
|
|
|
|
|
+ (CORE_ADDR) (valaddr + TYPE_FIELD_BITPOS(type, i) / 8),
|
|
|
|
|
+ "");
|
1992-07-06 01:06:47 +08:00
|
|
|
|
if (TYPE_FIELD_PACKED (type, i))
|
|
|
|
|
{
|
|
|
|
|
value v;
|
|
|
|
|
***************
|
|
|
|
|
*** 567,572 ****
|
1992-07-06 02:07:52 +08:00
|
|
|
|
--- 575,581 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
valaddr + TYPE_FIELD_BITPOS (type, i) / 8,
|
|
|
|
|
0, stream, format, 0, recurse + 1, pretty);
|
|
|
|
|
}
|
1992-07-06 02:07:52 +08:00
|
|
|
|
+ energize_end_variable_annotation();
|
1992-07-06 01:06:47 +08:00
|
|
|
|
}
|
|
|
|
|
if (pretty)
|
|
|
|
|
{
|
|
|
|
|
***************
|
|
|
|
|
*** 801,806 ****
|
1992-07-06 02:07:52 +08:00
|
|
|
|
--- 810,816 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
unsigned int rep1;
|
|
|
|
|
/* Number of repetitions we have detected so far. */
|
|
|
|
|
unsigned int reps;
|
1992-07-06 02:07:52 +08:00
|
|
|
|
+ char expr_tag[100]; /* Energize */
|
1992-07-06 01:06:47 +08:00
|
|
|
|
|
|
|
|
|
if (i != 0)
|
|
|
|
|
if (arrayprint)
|
|
|
|
|
***************
|
|
|
|
|
*** 822,827 ****
|
1992-07-06 02:07:52 +08:00
|
|
|
|
--- 832,842 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
++rep1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
+ sprintf(expr_tag, "[%d]", i);
|
1992-07-06 02:07:52 +08:00
|
|
|
|
+ energize_start_variable_annotation(expr_tag, NULL,
|
|
|
|
|
+ elttype,
|
|
|
|
|
+ (CORE_ADDR) (valaddr + i * eltlen),
|
|
|
|
|
+ "");
|
1992-07-06 01:06:47 +08:00
|
|
|
|
if (reps > REPEAT_COUNT_THRESHOLD)
|
|
|
|
|
{
|
|
|
|
|
val_print (elttype, valaddr + i * eltlen,
|
|
|
|
|
***************
|
|
|
|
|
*** 838,843 ****
|
1992-07-06 02:07:52 +08:00
|
|
|
|
--- 853,859 ----
|
1992-07-06 01:06:47 +08:00
|
|
|
|
recurse + 1, pretty);
|
|
|
|
|
things_printed++;
|
|
|
|
|
}
|
1992-07-06 02:07:52 +08:00
|
|
|
|
+ energize_end_variable_annotation();
|
1992-07-06 01:06:47 +08:00
|
|
|
|
}
|
|
|
|
|
if (i < len)
|
|
|
|
|
fprintf_filtered (stream, "...");
|
1992-07-06 02:07:52 +08:00
|
|
|
|
===================================================================
|
1992-07-19 04:14:32 +08:00
|
|
|
|
*** config/ncr3000.mh Mon Jun 15 12:25:13 1992
|
|
|
|
|
--- config/ncr3000.mh Sat Jul 18 12:41:07 1992
|
1992-07-06 02:07:52 +08:00
|
|
|
|
***************
|
|
|
|
|
*** 38,40 ****
|
1992-07-19 04:14:32 +08:00
|
|
|
|
--- 38,46 ----
|
1992-07-06 02:07:52 +08:00
|
|
|
|
# The /usr/ucb/install program is incompatible (complains about unknown
|
|
|
|
|
# group staff). Use good old cp...
|
|
|
|
|
INSTALL = cp
|
|
|
|
|
+
|
|
|
|
|
+ # These are the libs that are needed for the Energize version of gdb on
|
|
|
|
|
+ # SVR4. Note that we MUST include the standard C library before libucb.a,
|
|
|
|
|
+ # otherwise we get lots of broken stuff we don't want.
|
1992-07-19 04:14:32 +08:00
|
|
|
|
+ XM_CLIBS = -L/usr/lib -lm -lnet -lresolv -lform -lsocket -lc \
|
|
|
|
|
+ /usr/ucblib/libucb.a -lnsl
|
|
|
|
|
===================================================================
|
|
|
|
|
*** demangle.c Wed Jul 15 13:33:17 1992
|
|
|
|
|
--- demangle.c Fri Jul 17 21:34:09 1992
|
|
|
|
|
***************
|
|
|
|
|
*** 37,43 ****
|
|
|
|
|
the appropriate target configuration file. */
|
|
|
|
|
|
|
|
|
|
#ifndef DEFAULT_DEMANGLING_STYLE
|
|
|
|
|
! # define DEFAULT_DEMANGLING_STYLE AUTO_DEMANGLING_STYLE_STRING
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/* The current demangling style in affect. Global so that the demangler
|
|
|
|
|
--- 37,43 ----
|
|
|
|
|
the appropriate target configuration file. */
|
|
|
|
|
|
|
|
|
|
#ifndef DEFAULT_DEMANGLING_STYLE
|
|
|
|
|
! # define DEFAULT_DEMANGLING_STYLE LUCID_DEMANGLING_STYLE_STRING
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/* The current demangling style in affect. Global so that the demangler
|