1992-07-05 17:06:47 +00: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-09-28 21:27:05 +00:00
|
|
|
|
*** 2.72 1992/09/27 06:48:41
|
|
|
|
|
--- .Sanitize 1992/09/28 16:15:04
|
1992-08-25 15:13:55 +00:00
|
|
|
|
***************
|
1992-09-26 00:45:52 +00:00
|
|
|
|
*** 74,79 ****
|
|
|
|
|
--- 74,82 ----
|
1992-09-15 07:28:05 +00:00
|
|
|
|
doc
|
|
|
|
|
dwarfread.c
|
|
|
|
|
elfread.c
|
|
|
|
|
+ energize
|
|
|
|
|
+ energize.c
|
|
|
|
|
+ energize.h
|
|
|
|
|
environ.c
|
|
|
|
|
environ.h
|
|
|
|
|
eval.c
|
|
|
|
|
===================================================================
|
1992-09-28 21:27:05 +00:00
|
|
|
|
*** 1.187 1992/09/26 08:06:30
|
|
|
|
|
--- Makefile.in 1992/09/28 17:46:22
|
1992-07-05 17:06:47 +00:00
|
|
|
|
***************
|
|
|
|
|
*** 123,128 ****
|
1992-07-18 00:15:39 +00:00
|
|
|
|
--- 123,135 ----
|
1992-07-05 17:06:47 +00:00
|
|
|
|
READLINE_DEP = $$(READLINE_DIR)
|
|
|
|
|
RL_LIB = ./../readline${subdir}/libreadline.a
|
|
|
|
|
|
1992-07-16 19:12:49 +00: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 00:15:39 +00:00
|
|
|
|
+ ENERGIZE_DIR = energize
|
|
|
|
|
+ ENERGIZE_LIB = ${ENERGIZE_DIR}/libconn.a
|
1992-07-05 17:06:47 +00:00
|
|
|
|
+
|
|
|
|
|
# All the includes used for CFLAGS and for lint.
|
|
|
|
|
# -I. for config files.
|
|
|
|
|
# -I${srcdir} possibly for regex.h also.
|
|
|
|
|
***************
|
1992-09-28 21:27:05 +00:00
|
|
|
|
*** 157,166 ****
|
|
|
|
|
# Libraries and corresponding dependencies for compiling gdb.
|
1992-07-05 17:06:47 +00:00
|
|
|
|
# {X,T}M_CLIBS, defined in *config files, have host- and target-dependent libs.
|
|
|
|
|
# TERMCAP comes after readline, since readline depends on it.
|
1992-09-28 21:27:05 +00:00
|
|
|
|
! CLIBS = ${BFD_LIB} ${RL_LIB} ${TERMCAP} ${OPCODES} ${MMALLOC_LIB} ${LIBIBERTY} \
|
1992-09-26 00:45:52 +00:00
|
|
|
|
! ${XM_CLIBS} ${TM_CLIBS} ${NAT_CLIBS}
|
1992-09-28 21:27:05 +00:00
|
|
|
|
! CDEPS = ${XM_CDEPS} ${TM_CDEPS} ${NAT_CDEPS} \
|
|
|
|
|
! ${BFD_LIB} ${RL_LIB} ${OPCODES} ${MMALLOC_LIB} ${LIBIBERTY}
|
1992-07-05 17:06:47 +00:00
|
|
|
|
|
1992-09-28 21:27:05 +00:00
|
|
|
|
ADD_FILES = ${REGEX} ${ALLOCA} ${XM_ADD_FILES} ${TM_ADD_FILES} ${NAT_ADD_FILES}
|
|
|
|
|
ADD_DEPS = ${REGEX1} ${ALLOCA1} ${XM_ADD_FILES} ${TM_ADD_FILES} ${NAT_ADD_FILES}
|
|
|
|
|
--- 164,173 ----
|
|
|
|
|
# Libraries and corresponding dependencies for compiling gdb.
|
1992-07-05 17:06:47 +00:00
|
|
|
|
# {X,T}M_CLIBS, defined in *config files, have host- and target-dependent libs.
|
|
|
|
|
# TERMCAP comes after readline, since readline depends on it.
|
1992-09-28 21:27:05 +00:00
|
|
|
|
! CLIBS = ${BFD_LIB} ${RL_LIB} ${TERMCAP} ${OPCODES} ${MMALLOC_LIB} \
|
|
|
|
|
! ${LIBIBERTY} ${XM_CLIBS} ${TM_CLIBS} ${NAT_CLIBS} ${ENERGIZE_LIB}
|
|
|
|
|
! CDEPS = ${XM_CDEPS} ${TM_CDEPS} ${NAT_CDEPS} ${BFD_LIB} ${RL_LIB} ${OPCODES} \
|
|
|
|
|
! ${MMALLOC_LIB} ${LIBIBERTY} ${ENERGIZE_LIB}
|
1992-07-05 19:09:38 +00:00
|
|
|
|
|
1992-09-28 21:27:05 +00:00
|
|
|
|
ADD_FILES = ${REGEX} ${ALLOCA} ${XM_ADD_FILES} ${TM_ADD_FILES} ${NAT_ADD_FILES}
|
|
|
|
|
ADD_DEPS = ${REGEX1} ${ALLOCA1} ${XM_ADD_FILES} ${TM_ADD_FILES} ${NAT_ADD_FILES}
|
1992-07-05 17:06:47 +00:00
|
|
|
|
***************
|
1992-09-26 00:45:52 +00:00
|
|
|
|
*** 200,206 ****
|
1992-09-28 21:27:05 +00:00
|
|
|
|
mem-break.c target.c \
|
1992-08-25 15:13:55 +00:00
|
|
|
|
dbxread.c coffread.c elfread.c dwarfread.c xcoffread.c stabsread.c \
|
1992-07-05 17:06:47 +00:00
|
|
|
|
ieee-float.c language.c parse.c buildsym.c objfiles.c \
|
1992-07-15 05:49:43 +00:00
|
|
|
|
! minsyms.c mipsread.c maint.c
|
1992-07-05 17:06:47 +00:00
|
|
|
|
|
|
|
|
|
# Source files in subdirectories (which will be handled separately by
|
|
|
|
|
# 'make gdb.tar.Z').
|
1992-09-26 00:45:52 +00:00
|
|
|
|
--- 207,213 ----
|
1992-09-28 21:27:05 +00:00
|
|
|
|
mem-break.c target.c \
|
1992-08-25 15:13:55 +00:00
|
|
|
|
dbxread.c coffread.c elfread.c dwarfread.c xcoffread.c stabsread.c \
|
1992-07-05 17:06:47 +00:00
|
|
|
|
ieee-float.c language.c parse.c buildsym.c objfiles.c \
|
1992-07-15 05:49:43 +00:00
|
|
|
|
! minsyms.c mipsread.c maint.c energize.c
|
1992-07-05 17:06:47 +00:00
|
|
|
|
|
|
|
|
|
# Source files in subdirectories (which will be handled separately by
|
|
|
|
|
# 'make gdb.tar.Z').
|
|
|
|
|
***************
|
1992-09-26 00:45:52 +00:00
|
|
|
|
*** 289,295 ****
|
1992-07-05 17:06:47 +00:00
|
|
|
|
command.o utils.o expprint.o environ.o version.o gdbtypes.o \
|
1992-09-15 07:28:05 +00:00
|
|
|
|
copying.o $(DEPFILES) mem-break.o target.o \
|
1992-09-28 21:27:05 +00:00
|
|
|
|
ieee-float.o putenv.o parse.o language.o $(YYOBJ) \
|
1992-07-15 05:49:43 +00:00
|
|
|
|
! buildsym.o objfiles.o minsyms.o maint.o demangle.o \
|
1992-08-25 15:13:55 +00:00
|
|
|
|
dbxread.o coffread.o elfread.o dwarfread.o xcoffread.o mipsread.o \
|
1992-09-26 00:45:52 +00:00
|
|
|
|
stabsread.o core.o
|
1992-07-05 17:06:47 +00:00
|
|
|
|
|
1992-09-26 00:45:52 +00:00
|
|
|
|
--- 296,302 ----
|
1992-07-05 17:06:47 +00:00
|
|
|
|
command.o utils.o expprint.o environ.o version.o gdbtypes.o \
|
1992-09-15 07:28:05 +00:00
|
|
|
|
copying.o $(DEPFILES) mem-break.o target.o \
|
1992-09-28 21:27:05 +00:00
|
|
|
|
ieee-float.o putenv.o parse.o language.o $(YYOBJ) \
|
1992-07-15 05:49:43 +00:00
|
|
|
|
! buildsym.o objfiles.o minsyms.o maint.o demangle.o energize.o \
|
1992-08-25 15:13:55 +00:00
|
|
|
|
dbxread.o coffread.o elfread.o dwarfread.o xcoffread.o mipsread.o \
|
1992-09-26 00:45:52 +00:00
|
|
|
|
stabsread.o core.o
|
1992-07-05 17:06:47 +00:00
|
|
|
|
|
|
|
|
|
***************
|
1992-09-26 00:45:52 +00:00
|
|
|
|
*** 303,309 ****
|
1992-07-05 17:06:47 +00: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-09-26 00:45:52 +00:00
|
|
|
|
--- 310,316 ----
|
1992-07-05 17:06:47 +00:00
|
|
|
|
|
|
|
|
|
NTSSTART = kdb-start.o
|
|
|
|
|
|
1992-07-18 00:15:39 +00:00
|
|
|
|
! SUBDIRS = doc ${ENERGIZE_DIR}
|
1992-07-05 17:06:47 +00:00
|
|
|
|
|
|
|
|
|
# For now, shortcut the "configure GDB for fewer languages" stuff.
|
|
|
|
|
YYFILES = c-exp.tab.c m2-exp.tab.c
|
|
|
|
|
***************
|
1992-09-26 00:45:52 +00:00
|
|
|
|
*** 365,370 ****
|
|
|
|
|
--- 372,391 ----
|
1992-07-05 17:06:47 +00:00
|
|
|
|
#load `echo " "$(DEPFILES) | sed -e 's/\.o/.c/g' -e 's, , ../,g'`
|
|
|
|
|
echo "Load .c corresponding to:" $(DEPFILES)
|
|
|
|
|
|
1992-07-05 18:07:52 +00:00
|
|
|
|
+ ${ENERGIZE_LIB} :
|
1992-07-18 00:15:39 +00:00
|
|
|
|
+ @(cd ${ENERGIZE_DIR}; \
|
1992-07-05 17:06:47 +00: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-09-15 07:28:05 +00:00
|
|
|
|
===================================================================
|
1992-09-26 00:45:52 +00:00
|
|
|
|
*** 1.47 1992/09/19 11:47:08
|
1992-09-28 21:27:05 +00:00
|
|
|
|
--- breakpoint.c 1992/09/28 16:15:05
|
1992-07-05 17:06:47 +00:00
|
|
|
|
***************
|
|
|
|
|
*** 273,278 ****
|
1992-07-05 18:07:52 +00:00
|
|
|
|
--- 273,279 ----
|
1992-07-05 17:06:47 +00:00
|
|
|
|
b->cond_string = NULL;
|
|
|
|
|
if (from_tty)
|
|
|
|
|
printf_filtered ("Breakpoint %d now unconditional.\n", bnum);
|
1992-07-05 18:07:52 +00:00
|
|
|
|
+ energize_condition_breakpoint(b);
|
1992-07-05 17:06:47 +00:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
***************
|
|
|
|
|
*** 281,286 ****
|
1992-07-05 18:07:52 +00:00
|
|
|
|
--- 282,288 ----
|
1992-07-05 17:06:47 +00: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-05 18:07:52 +00:00
|
|
|
|
+ energize_condition_breakpoint(b);
|
1992-07-05 17:06:47 +00:00
|
|
|
|
if (*arg)
|
|
|
|
|
error ("Junk at end of expression");
|
|
|
|
|
}
|
|
|
|
|
***************
|
1992-09-26 00:45:52 +00:00
|
|
|
|
*** 322,327 ****
|
|
|
|
|
--- 324,330 ----
|
1992-07-05 17:06:47 +00:00
|
|
|
|
l = read_command_lines ();
|
|
|
|
|
free_command_lines (&b->commands);
|
|
|
|
|
b->commands = l;
|
1992-07-05 18:07:52 +00:00
|
|
|
|
+ energize_commands_breakpoint(b);
|
1992-07-05 17:06:47 +00:00
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
error ("No breakpoint number %d.", bnum);
|
|
|
|
|
***************
|
1992-09-15 07:28:05 +00:00
|
|
|
|
*** 923,928 ****
|
|
|
|
|
--- 926,932 ----
|
1992-07-05 17:06:47 +00:00
|
|
|
|
{
|
|
|
|
|
b->ignore_count--;
|
|
|
|
|
this_bp_stop = 0;
|
1992-07-05 18:07:52 +00:00
|
|
|
|
+ energize_ignore_breakpoint(b);
|
1992-07-05 17:06:47 +00:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
***************
|
1992-09-15 07:28:05 +00:00
|
|
|
|
*** 1375,1380 ****
|
|
|
|
|
--- 1379,1386 ----
|
1992-07-05 17:06:47 +00:00
|
|
|
|
mention (b)
|
|
|
|
|
struct breakpoint *b;
|
|
|
|
|
{
|
1992-07-05 18:07:52 +00:00
|
|
|
|
+ energize_create_breakpoint(b);
|
1992-07-05 17:06:47 +00:00
|
|
|
|
+
|
|
|
|
|
switch (b->type)
|
|
|
|
|
{
|
|
|
|
|
case bp_watchpoint:
|
|
|
|
|
***************
|
1992-09-15 07:28:05 +00:00
|
|
|
|
*** 2125,2130 ****
|
|
|
|
|
--- 2131,2138 ----
|
1992-07-05 17:06:47 +00:00
|
|
|
|
register struct breakpoint *b;
|
|
|
|
|
register bpstat bs;
|
|
|
|
|
|
1992-07-05 18:07:52 +00:00
|
|
|
|
+ energize_delete_breakpoint(bpt);
|
1992-07-05 17:06:47 +00:00
|
|
|
|
+
|
|
|
|
|
if (bpt->inserted)
|
|
|
|
|
target_remove_breakpoint(bpt->address, bpt->shadow_contents);
|
|
|
|
|
|
|
|
|
|
***************
|
1992-09-15 07:28:05 +00:00
|
|
|
|
*** 2303,2308 ****
|
|
|
|
|
--- 2311,2317 ----
|
1992-07-05 17:06:47 +00:00
|
|
|
|
if (b->number == bptnum)
|
|
|
|
|
{
|
|
|
|
|
b->ignore_count = count;
|
1992-07-05 18:07:52 +00:00
|
|
|
|
+ energize_ignore_breakpoint(b);
|
1992-07-05 17:06:47 +00:00
|
|
|
|
if (!from_tty)
|
|
|
|
|
return;
|
|
|
|
|
else if (count == 0)
|
|
|
|
|
***************
|
1992-09-15 07:28:05 +00:00
|
|
|
|
*** 2327,2333 ****
|
1992-07-05 17:06:47 +00:00
|
|
|
|
struct breakpoint *b;
|
|
|
|
|
|
|
|
|
|
ALL_BREAKPOINTS (b)
|
|
|
|
|
! b->ignore_count = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Command to set ignore-count of breakpoint N to COUNT. */
|
1992-09-15 07:28:05 +00:00
|
|
|
|
--- 2336,2345 ----
|
1992-07-05 17:06:47 +00:00
|
|
|
|
struct breakpoint *b;
|
|
|
|
|
|
|
|
|
|
ALL_BREAKPOINTS (b)
|
|
|
|
|
! {
|
|
|
|
|
! b->ignore_count = 0;
|
1992-07-05 18:07:52 +00:00
|
|
|
|
! energize_ignore_breakpoint(b);
|
1992-07-05 17:06:47 +00:00
|
|
|
|
! }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Command to set ignore-count of breakpoint N to COUNT. */
|
|
|
|
|
***************
|
1992-09-15 07:28:05 +00:00
|
|
|
|
*** 2394,2399 ****
|
|
|
|
|
--- 2406,2413 ----
|
1992-07-05 17:06:47 +00:00
|
|
|
|
{
|
|
|
|
|
bpt->enable = enabled;
|
|
|
|
|
|
1992-07-05 18:07:52 +00:00
|
|
|
|
+ energize_enable_breakpoint(bpt);
|
1992-07-05 17:06:47 +00:00
|
|
|
|
+
|
|
|
|
|
if (xgdb_verbose && bpt->type == bp_breakpoint)
|
1992-09-15 07:28:05 +00:00
|
|
|
|
printf_filtered ("breakpoint #%d enabled\n", bpt->number);
|
1992-07-05 17:06:47 +00:00
|
|
|
|
|
|
|
|
|
***************
|
1992-09-15 07:28:05 +00:00
|
|
|
|
*** 2441,2446 ****
|
|
|
|
|
--- 2455,2462 ----
|
1992-07-05 17:06:47 +00:00
|
|
|
|
disable_breakpoint (bpt)
|
|
|
|
|
struct breakpoint *bpt;
|
|
|
|
|
{
|
1992-07-05 18:07:52 +00:00
|
|
|
|
+ energize_disable_breakpoint(bpt);
|
1992-07-05 17:06:47 +00:00
|
|
|
|
+
|
|
|
|
|
bpt->enable = disabled;
|
|
|
|
|
|
|
|
|
|
if (xgdb_verbose && bpt->type == bp_breakpoint)
|
1992-09-15 07:28:05 +00:00
|
|
|
|
===================================================================
|
|
|
|
|
*** 1.18 1992/07/10 17:22:30
|
1992-09-28 21:27:05 +00:00
|
|
|
|
--- command.c 1992/09/28 16:15:06
|
1992-09-15 07:28:05 +00:00
|
|
|
|
***************
|
|
|
|
|
*** 1093,1098 ****
|
|
|
|
|
--- 1093,1100 ----
|
|
|
|
|
else
|
|
|
|
|
error ("gdb internal error: bad cmd_type in do_setshow_command");
|
|
|
|
|
(*c->function.sfunc) (NULL, from_tty, c);
|
|
|
|
|
+ if (energize)
|
|
|
|
|
+ print_prompt();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Show all the settings in a list of show commands. */
|
1992-07-05 17:06:47 +00:00
|
|
|
|
***************
|
1992-07-18 00:15:39 +00:00
|
|
|
|
*** 1148,1154 ****
|
1992-07-05 17:06:47 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (pid != -1)
|
|
|
|
|
! while ((rc = wait (&status)) != pid && rc != -1)
|
|
|
|
|
;
|
|
|
|
|
else
|
|
|
|
|
error ("Fork failed");
|
1992-09-15 07:28:05 +00:00
|
|
|
|
--- 1150,1156 ----
|
1992-07-05 17:06:47 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (pid != -1)
|
1992-09-26 00:45:52 +00:00
|
|
|
|
! while ((rc = energize_shell_wait (&status)) != pid && rc != -1)
|
1992-07-05 17:06:47 +00:00
|
|
|
|
;
|
|
|
|
|
else
|
|
|
|
|
error ("Fork failed");
|
1992-09-15 07:28:05 +00:00
|
|
|
|
===================================================================
|
1992-09-26 00:45:52 +00:00
|
|
|
|
*** 1.67 1992/09/21 20:01:00
|
1992-09-28 21:27:05 +00:00
|
|
|
|
--- configure.in 1992/09/28 16:15:06
|
1992-07-05 17:06:47 +00:00
|
|
|
|
***************
|
|
|
|
|
*** 1,4 ****
|
|
|
|
|
! configdirs="doc"
|
|
|
|
|
srcname="GDB"
|
|
|
|
|
srctrigger=main.c
|
1992-09-26 00:45:52 +00:00
|
|
|
|
|
1992-07-05 17:06:47 +00:00
|
|
|
|
--- 1,4 ----
|
1992-07-05 18:07:52 +00:00
|
|
|
|
! configdirs="energize doc"
|
1992-07-05 17:06:47 +00:00
|
|
|
|
srcname="GDB"
|
|
|
|
|
srctrigger=main.c
|
1992-09-26 00:45:52 +00:00
|
|
|
|
|
1992-09-15 07:28:05 +00:00
|
|
|
|
===================================================================
|
1992-09-15 09:19:53 +00:00
|
|
|
|
*** 1.48 1992/09/15 08:55:59
|
1992-09-28 21:27:05 +00:00
|
|
|
|
--- defs.h 1992/09/28 16:15:07
|
1992-08-25 15:13:55 +00:00
|
|
|
|
***************
|
1992-09-15 07:28:05 +00:00
|
|
|
|
*** 811,814 ****
|
|
|
|
|
--- 811,816 ----
|
1992-07-18 00:15:39 +00:00
|
|
|
|
#define MAINTENANCE_CMDS 1
|
|
|
|
|
#endif
|
1992-07-05 17:06:47 +00:00
|
|
|
|
|
1992-07-05 18:07:52 +00:00
|
|
|
|
+ #include "energize.h"
|
1992-07-05 17:06:47 +00:00
|
|
|
|
+
|
|
|
|
|
#endif /* !defined (DEFS_H) */
|
1992-09-15 07:28:05 +00:00
|
|
|
|
===================================================================
|
|
|
|
|
*** 2.5 1992/09/03 16:26:03
|
1992-09-28 21:27:05 +00:00
|
|
|
|
--- demangle.c 1992/09/28 16:15:07
|
1992-09-15 07:28:05 +00:00
|
|
|
|
***************
|
|
|
|
|
*** 37,43 ****
|
|
|
|
|
the appropriate target configuration file. */
|
|
|
|
|
|
|
|
|
|
#ifndef DEFAULT_DEMANGLING_STYLE
|
|
|
|
|
! # define DEFAULT_DEMANGLING_STYLE AUTO_DEMANGLING_STYLE_STRING
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/* String name for the current demangling style. Set by the "set demangling"
|
|
|
|
|
--- 37,43 ----
|
|
|
|
|
the appropriate target configuration file. */
|
|
|
|
|
|
|
|
|
|
#ifndef DEFAULT_DEMANGLING_STYLE
|
|
|
|
|
! # define DEFAULT_DEMANGLING_STYLE LUCID_DEMANGLING_STYLE_STRING
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/* String name for the current demangling style. Set by the "set demangling"
|
|
|
|
|
===================================================================
|
1992-09-28 21:27:05 +00:00
|
|
|
|
*** 1.34 1992/09/26 05:20:04
|
|
|
|
|
--- infcmd.c 1992/09/28 16:53:10
|
|
|
|
|
***************
|
|
|
|
|
*** 242,247 ****
|
|
|
|
|
--- 242,248 ----
|
|
|
|
|
|
|
|
|
|
target_create_inferior (exec_file, inferior_args,
|
|
|
|
|
environ_vector (inferior_environ));
|
|
|
|
|
+ energize_new_process();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void
|
|
|
|
|
===================================================================
|
1992-09-26 00:45:52 +00:00
|
|
|
|
*** 1.29 1992/09/25 19:19:00
|
1992-09-28 21:27:05 +00:00
|
|
|
|
--- inflow.c 1992/09/28 16:15:07
|
1992-07-05 17:06:47 +00:00
|
|
|
|
***************
|
1992-09-26 00:45:52 +00:00
|
|
|
|
*** 87,93 ****
|
1992-07-05 17:06:47 +00:00
|
|
|
|
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 */
|
1992-09-26 00:45:52 +00:00
|
|
|
|
--- 87,93 ----
|
1992-07-05 17:06:47 +00:00
|
|
|
|
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-09-15 07:28:05 +00:00
|
|
|
|
===================================================================
|
1992-09-28 21:27:05 +00:00
|
|
|
|
*** 1.59 1992/09/26 01:49:01
|
|
|
|
|
--- infrun.c 1992/09/28 16:22:33
|
|
|
|
|
***************
|
|
|
|
|
*** 519,525 ****
|
|
|
|
|
flush_cached_frames ();
|
|
|
|
|
registers_changed ();
|
1992-09-15 07:28:05 +00:00
|
|
|
|
|
1992-09-28 21:27:05 +00:00
|
|
|
|
! target_wait (&w);
|
|
|
|
|
|
|
|
|
|
#ifdef SIGTRAP_STOP_AFTER_LOAD
|
|
|
|
|
|
|
|
|
|
--- 519,525 ----
|
|
|
|
|
flush_cached_frames ();
|
|
|
|
|
registers_changed ();
|
|
|
|
|
|
|
|
|
|
! energize_wait (&w);
|
|
|
|
|
|
|
|
|
|
#ifdef SIGTRAP_STOP_AFTER_LOAD
|
|
|
|
|
|
|
|
|
|
===================================================================
|
|
|
|
|
*** 1.17 1992/09/26 09:06:10
|
|
|
|
|
--- inftarg.c 1992/09/28 16:43:53
|
1992-09-26 00:45:52 +00:00
|
|
|
|
***************
|
1992-09-28 21:27:05 +00:00
|
|
|
|
*** 123,128 ****
|
|
|
|
|
--- 123,129 ----
|
1992-09-26 00:45:52 +00:00
|
|
|
|
|
|
|
|
|
attach (pid);
|
|
|
|
|
inferior_pid = pid;
|
|
|
|
|
+ energize_new_process();
|
|
|
|
|
push_target (&child_ops);
|
1992-09-28 21:27:05 +00:00
|
|
|
|
#endif /* ATTACH_DETACH */
|
|
|
|
|
}
|
1992-09-15 07:28:05 +00:00
|
|
|
|
===================================================================
|
1992-09-26 00:45:52 +00:00
|
|
|
|
*** 1.56 1992/09/22 05:23:29
|
1992-09-28 21:27:05 +00:00
|
|
|
|
--- main.c 1992/09/28 16:15:08
|
1992-07-05 17:06:47 +00:00
|
|
|
|
***************
|
1992-09-26 00:45:52 +00:00
|
|
|
|
*** 441,446 ****
|
|
|
|
|
--- 441,447 ----
|
1992-07-05 17:06:47 +00:00
|
|
|
|
char *corearg = NULL;
|
|
|
|
|
char *cdarg = NULL;
|
|
|
|
|
char *ttyarg = NULL;
|
1992-07-05 18:07:52 +00:00
|
|
|
|
+ char *energize_id = NULL;
|
1992-07-05 17:06:47 +00:00
|
|
|
|
|
|
|
|
|
/* Pointers to all arguments of +command option. */
|
|
|
|
|
char **cmdarg;
|
|
|
|
|
***************
|
1992-09-26 00:45:52 +00:00
|
|
|
|
*** 539,544 ****
|
|
|
|
|
--- 540,546 ----
|
1992-07-05 17:06:47 +00: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-09-26 00:45:52 +00:00
|
|
|
|
*** 571,576 ****
|
|
|
|
|
--- 573,581 ----
|
1992-07-05 17:06:47 +00:00
|
|
|
|
case 11:
|
|
|
|
|
cdarg = optarg;
|
|
|
|
|
break;
|
|
|
|
|
+ case 12:
|
1992-07-05 18:07:52 +00:00
|
|
|
|
+ energize_id = optarg;
|
1992-07-05 17:06:47 +00:00
|
|
|
|
+ break;
|
|
|
|
|
case 's':
|
|
|
|
|
symarg = optarg;
|
|
|
|
|
break;
|
|
|
|
|
***************
|
1992-09-26 00:45:52 +00:00
|
|
|
|
*** 679,684 ****
|
|
|
|
|
--- 684,692 ----
|
1992-09-15 07:28:05 +00:00
|
|
|
|
|
|
|
|
|
/* Run the init function of each source file */
|
1992-07-05 17:06:47 +00:00
|
|
|
|
|
1992-09-15 07:28:05 +00:00
|
|
|
|
+ /* Must call this first to setup tty */
|
1992-07-05 18:07:52 +00:00
|
|
|
|
+ energize_initialize (energize_id, execarg);
|
1992-07-05 17:06:47 +00:00
|
|
|
|
+
|
1992-09-15 07:28:05 +00:00
|
|
|
|
initialize_cmd_lists (); /* This needs to be done first */
|
|
|
|
|
initialize_all_files ();
|
|
|
|
|
initialize_main (); /* But that omits this file! Do it now */
|
1992-07-05 17:06:47 +00:00
|
|
|
|
***************
|
1992-09-26 00:45:52 +00:00
|
|
|
|
*** 853,859 ****
|
1992-07-05 17:06:47 +00:00
|
|
|
|
if (!setjmp (to_top_level))
|
|
|
|
|
{
|
|
|
|
|
do_cleanups (ALL_CLEANUPS); /* Do complete cleanup */
|
|
|
|
|
! command_loop ();
|
|
|
|
|
quit_command ((char *)0, instream == stdin);
|
|
|
|
|
}
|
|
|
|
|
}
|
1992-09-26 00:45:52 +00:00
|
|
|
|
--- 861,870 ----
|
1992-07-05 17:06:47 +00:00
|
|
|
|
if (!setjmp (to_top_level))
|
|
|
|
|
{
|
|
|
|
|
do_cleanups (ALL_CLEANUPS); /* Do complete cleanup */
|
1992-07-05 18:07:52 +00:00
|
|
|
|
! if (energize)
|
|
|
|
|
! energize_main_loop();
|
1992-07-05 17:06:47 +00:00
|
|
|
|
! else
|
|
|
|
|
! command_loop ();
|
|
|
|
|
quit_command ((char *)0, instream == stdin);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
***************
|
1992-09-26 00:45:52 +00:00
|
|
|
|
*** 915,921 ****
|
1992-07-05 17:06:47 +00: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-09-26 00:45:52 +00:00
|
|
|
|
--- 926,932 ----
|
1992-07-05 17:06:47 +00:00
|
|
|
|
else if (c->function.cfunc == NO_FUNCTION)
|
|
|
|
|
error ("That is not a command, just a help topic.");
|
|
|
|
|
else
|
1992-07-05 18:07:52 +00:00
|
|
|
|
! energize_call_command (c, arg, from_tty & caution);
|
1992-07-05 17:06:47 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Tell the user if the language has changed (except first time). */
|
|
|
|
|
***************
|
1992-09-26 00:45:52 +00:00
|
|
|
|
*** 1570,1576 ****
|
1992-07-05 17:06:47 +00:00
|
|
|
|
while (1)
|
|
|
|
|
{
|
|
|
|
|
dont_repeat ();
|
|
|
|
|
! p = command_line_input ((char *) NULL, instream == stdin);
|
|
|
|
|
if (p == NULL)
|
|
|
|
|
/* Treat end of file like "end". */
|
|
|
|
|
break;
|
1992-09-26 00:45:52 +00:00
|
|
|
|
--- 1581,1587 ----
|
1992-07-05 17:06:47 +00:00
|
|
|
|
while (1)
|
|
|
|
|
{
|
|
|
|
|
dont_repeat ();
|
1992-07-05 18:07:52 +00:00
|
|
|
|
! p = energize_command_line_input ((char *) NULL, instream == stdin);
|
1992-07-05 17:06:47 +00:00
|
|
|
|
if (p == NULL)
|
|
|
|
|
/* Treat end of file like "end". */
|
|
|
|
|
break;
|
1992-09-15 07:28:05 +00:00
|
|
|
|
===================================================================
|
|
|
|
|
*** 1.32 1992/09/15 06:27:00
|
1992-09-28 21:27:05 +00:00
|
|
|
|
--- printcmd.c 1992/09/28 16:15:08
|
1992-07-05 17:06:47 +00:00
|
|
|
|
***************
|
|
|
|
|
*** 778,783 ****
|
|
|
|
|
--- 778,792 ----
|
|
|
|
|
{
|
|
|
|
|
int histindex = record_latest_value (val);
|
|
|
|
|
|
1992-07-05 18:07:52 +00:00
|
|
|
|
+ if (energize)
|
1992-07-05 17:06:47 +00:00
|
|
|
|
+ {
|
|
|
|
|
+ char buf[20];
|
|
|
|
|
+
|
|
|
|
|
+ sprintf(buf, "$%d", histindex);
|
1992-07-05 18:07:52 +00:00
|
|
|
|
+ energize_start_variable_annotation(buf, NULL, VALUE_TYPE(val),
|
1992-07-05 17:06:47 +00:00
|
|
|
|
+ VALUE_ADDRESS(val), "");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
if (inspect)
|
1992-09-15 07:28:05 +00:00
|
|
|
|
printf_filtered ("\031(gdb-makebuffer \"%s\" %d '(\"", exp, histindex);
|
1992-07-05 17:06:47 +00:00
|
|
|
|
else
|
|
|
|
|
***************
|
|
|
|
|
*** 784,789 ****
|
1992-07-05 18:07:52 +00:00
|
|
|
|
--- 793,799 ----
|
1992-07-05 17:06:47 +00:00
|
|
|
|
if (histindex >= 0) printf_filtered ("$%d = ", histindex);
|
|
|
|
|
|
|
|
|
|
print_formatted (val, format, fmt.size);
|
1992-07-05 18:07:52 +00:00
|
|
|
|
+ energize_end_variable_annotation();
|
1992-07-05 17:06:47 +00:00
|
|
|
|
printf_filtered ("\n");
|
|
|
|
|
if (inspect)
|
1992-09-15 07:28:05 +00:00
|
|
|
|
printf_filtered("\") )\030");
|
1992-07-05 17:06:47 +00:00
|
|
|
|
***************
|
1992-09-15 07:28:05 +00:00
|
|
|
|
*** 1652,1662 ****
|
|
|
|
|
--- 1662,1680 ----
|
1992-07-05 17:06:47 +00: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-05 18:07:52 +00:00
|
|
|
|
+ energize_start_variable_annotation(SYMBOL_NAME(sym), sym,
|
|
|
|
|
+ VALUE_TYPE(val),
|
|
|
|
|
+ VALUE_ADDRESS(val), "");
|
1992-07-05 17:06:47 +00: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-05 18:07:52 +00:00
|
|
|
|
+ energize_end_variable_annotation();
|
1992-07-05 17:06:47 +00:00
|
|
|
|
+
|
|
|
|
|
first = 0;
|
|
|
|
|
}
|
|
|
|
|
|
1992-09-15 07:28:05 +00:00
|
|
|
|
===================================================================
|
1992-09-26 00:45:52 +00:00
|
|
|
|
*** 1.35 1992/09/18 09:20:00
|
1992-09-28 21:27:05 +00:00
|
|
|
|
--- stack.c 1992/09/28 16:15:09
|
1992-07-05 17:06:47 +00: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-05 18:07:52 +00:00
|
|
|
|
! if (energize)
|
|
|
|
|
! energize_annotate_function(fname, 0, level);
|
1992-07-05 17:06:47 +00: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-05 18:07:52 +00:00
|
|
|
|
! if (energize)
|
|
|
|
|
! energize_annotate_function(funname ? funname : "??", 0, level);
|
1992-07-05 17:06:47 +00: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-05 18:07:52 +00:00
|
|
|
|
! if (!energize)
|
1992-07-05 17:06:47 +00: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-05 18:07:52 +00:00
|
|
|
|
! if (energize)
|
|
|
|
|
! energize_annotate_function(funname, DMGL_ANSI | DMGL_PARAMS,
|
|
|
|
|
! selected_frame_level);
|
1992-07-05 17:06:47 +00:00
|
|
|
|
! else
|
|
|
|
|
! fputs_demangled (funname, stdout, DMGL_ANSI | DMGL_PARAMS);
|
|
|
|
|
}
|
|
|
|
|
wrap_here (" ");
|
|
|
|
|
if (sal.symtab)
|
1992-09-15 07:28:05 +00:00
|
|
|
|
===================================================================
|
1992-09-26 00:45:52 +00:00
|
|
|
|
*** 1.58 1992/09/19 16:55:36
|
1992-09-28 21:27:05 +00:00
|
|
|
|
--- symfile.c 1992/09/28 16:15:09
|
1992-07-05 18:07:52 +00:00
|
|
|
|
***************
|
1992-09-26 00:45:52 +00:00
|
|
|
|
*** 614,619 ****
|
|
|
|
|
--- 614,621 ----
|
1992-07-05 17:06:47 +00:00
|
|
|
|
fflush (stdout);
|
|
|
|
|
}
|
|
|
|
|
|
1992-07-05 18:07:52 +00:00
|
|
|
|
+ energize_symbol_file(objfile);
|
1992-07-05 17:06:47 +00:00
|
|
|
|
+
|
|
|
|
|
return (objfile);
|
|
|
|
|
}
|
|
|
|
|
|
1992-09-15 07:28:05 +00:00
|
|
|
|
===================================================================
|
1992-09-28 21:27:05 +00:00
|
|
|
|
*** 1.63 1992/09/26 05:34:06
|
|
|
|
|
--- utils.c 1992/09/28 16:15:09
|
1992-09-15 09:19:53 +00:00
|
|
|
|
***************
|
|
|
|
|
*** 700,720 ****
|
|
|
|
|
fflush (stdout);
|
|
|
|
|
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')
|
|
|
|
|
--- 700,731 ----
|
|
|
|
|
fflush (stdout);
|
|
|
|
|
va_start (args);
|
|
|
|
|
ctlstr = va_arg (args, char *);
|
|
|
|
|
+ energize_query (ctlstr, args);
|
|
|
|
|
vfprintf_filtered (stdout, ctlstr, args);
|
|
|
|
|
printf_filtered ("(y or n) ");
|
|
|
|
|
! if (energize)
|
|
|
|
|
! {
|
|
|
|
|
! char *buf;
|
|
|
|
|
!
|
|
|
|
|
! buf = energize_command_line_input(0, 0);
|
|
|
|
|
! answer = buf ? *buf : 'Y';
|
|
|
|
|
! energize_acknowledge_query(buf);
|
|
|
|
|
! }
|
|
|
|
|
! 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')
|
|
|
|
|
***************
|
|
|
|
|
*** 722,727 ****
|
|
|
|
|
--- 733,739 ----
|
|
|
|
|
if (answer == 'N')
|
|
|
|
|
return 0;
|
|
|
|
|
printf_filtered ("Please answer y or n.\n");
|
|
|
|
|
+ va_end (args);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
***************
|
1992-09-26 00:45:52 +00:00
|
|
|
|
*** 1000,1005 ****
|
|
|
|
|
--- 1012,1023 ----
|
1992-09-15 09:19:53 +00:00
|
|
|
|
if (linebuffer == 0)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
+ if (energize)
|
|
|
|
|
+ {
|
|
|
|
|
+ energize_fputs(linebuffer);
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
/* Don't do any filtering if it is disabled. */
|
|
|
|
|
if (stream != stdout
|
|
|
|
|
|| (lines_per_page == UINT_MAX && chars_per_line == UINT_MAX))
|
|
|
|
|
===================================================================
|
1992-09-15 07:28:05 +00:00
|
|
|
|
*** 1.54 1992/09/15 06:27:03
|
1992-09-28 21:27:05 +00:00
|
|
|
|
--- valprint.c 1992/09/28 16:15:10
|
1992-08-25 15:13:55 +00:00
|
|
|
|
***************
|
|
|
|
|
*** 488,493 ****
|
|
|
|
|
--- 488,494 ----
|
1992-07-05 17:06:47 +00:00
|
|
|
|
struct type **dont_print;
|
|
|
|
|
{
|
|
|
|
|
int i, len, n_baseclasses;
|
1992-07-05 18:07:52 +00:00
|
|
|
|
+ char expr_tag[100]; /* Energize */
|
1992-07-05 17:06:47 +00:00
|
|
|
|
|
|
|
|
|
check_stub_type (type);
|
|
|
|
|
|
|
|
|
|
***************
|
1992-08-25 15:13:55 +00:00
|
|
|
|
*** 552,557 ****
|
|
|
|
|
--- 553,565 ----
|
1992-07-05 17:06:47 +00:00
|
|
|
|
fprint_symbol (stream, TYPE_FIELD_NAME (type, i));
|
|
|
|
|
fputs_filtered (" = ", stream);
|
|
|
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ sprintf(expr_tag, ".%s", TYPE_FIELD_NAME(type, i));
|
|
|
|
|
+
|
1992-07-05 18:07:52 +00:00
|
|
|
|
+ energize_start_variable_annotation(expr_tag, NULL,
|
|
|
|
|
+ TYPE_FIELD_TYPE(type, i),
|
|
|
|
|
+ (CORE_ADDR) (valaddr + TYPE_FIELD_BITPOS(type, i) / 8),
|
|
|
|
|
+ "");
|
1992-07-05 17:06:47 +00:00
|
|
|
|
if (TYPE_FIELD_PACKED (type, i))
|
|
|
|
|
{
|
|
|
|
|
value v;
|
|
|
|
|
***************
|
1992-08-25 15:13:55 +00:00
|
|
|
|
*** 570,575 ****
|
|
|
|
|
--- 578,584 ----
|
1992-07-05 17:06:47 +00:00
|
|
|
|
valaddr + TYPE_FIELD_BITPOS (type, i) / 8,
|
|
|
|
|
0, stream, format, 0, recurse + 1, pretty);
|
|
|
|
|
}
|
1992-07-05 18:07:52 +00:00
|
|
|
|
+ energize_end_variable_annotation();
|
1992-07-05 17:06:47 +00:00
|
|
|
|
}
|
|
|
|
|
if (pretty)
|
|
|
|
|
{
|
|
|
|
|
***************
|
1992-08-25 15:13:55 +00:00
|
|
|
|
*** 804,809 ****
|
|
|
|
|
--- 813,819 ----
|
1992-07-05 17:06:47 +00:00
|
|
|
|
unsigned int rep1;
|
|
|
|
|
/* Number of repetitions we have detected so far. */
|
|
|
|
|
unsigned int reps;
|
1992-07-05 18:07:52 +00:00
|
|
|
|
+ char expr_tag[100]; /* Energize */
|
1992-07-05 17:06:47 +00:00
|
|
|
|
|
|
|
|
|
if (i != 0)
|
|
|
|
|
if (arrayprint)
|
|
|
|
|
***************
|
1992-08-25 15:13:55 +00:00
|
|
|
|
*** 825,830 ****
|
|
|
|
|
--- 835,845 ----
|
1992-07-05 17:06:47 +00:00
|
|
|
|
++rep1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
+ sprintf(expr_tag, "[%d]", i);
|
1992-07-05 18:07:52 +00:00
|
|
|
|
+ energize_start_variable_annotation(expr_tag, NULL,
|
|
|
|
|
+ elttype,
|
|
|
|
|
+ (CORE_ADDR) (valaddr + i * eltlen),
|
|
|
|
|
+ "");
|
1992-07-05 17:06:47 +00:00
|
|
|
|
if (reps > REPEAT_COUNT_THRESHOLD)
|
|
|
|
|
{
|
|
|
|
|
val_print (elttype, valaddr + i * eltlen,
|
|
|
|
|
***************
|
1992-08-25 15:13:55 +00:00
|
|
|
|
*** 841,846 ****
|
|
|
|
|
--- 856,862 ----
|
1992-07-05 17:06:47 +00:00
|
|
|
|
recurse + 1, pretty);
|
|
|
|
|
things_printed++;
|
|
|
|
|
}
|
1992-07-05 18:07:52 +00:00
|
|
|
|
+ energize_end_variable_annotation();
|
1992-07-05 17:06:47 +00:00
|
|
|
|
}
|
|
|
|
|
if (i < len)
|
|
|
|
|
fprintf_filtered (stream, "...");
|
1992-09-26 00:45:52 +00:00
|
|
|
|
===================================================================
|
1992-09-28 21:27:05 +00:00
|
|
|
|
*** 1.5 1992/09/26 08:07:45
|
1992-09-28 21:28:02 +00:00
|
|
|
|
--- config/amix.mh 1992/09/28 16:15:10
|
1992-09-26 00:45:52 +00:00
|
|
|
|
***************
|
|
|
|
|
*** 22,24 ****
|
|
|
|
|
--- 22,38 ----
|
|
|
|
|
|
|
|
|
|
# SVR4 puts the BSD compatible install in /usr/ucb.
|
|
|
|
|
INSTALL = /usr/ucb/install -c
|
|
|
|
|
+
|
|
|
|
|
+ # 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.
|
|
|
|
|
+ ENERGIZE_LIB = energize/libconn.a
|
|
|
|
|
+ ENERGIZE_LIBS = ${ENERGIZE_LIB} -L/usr/lib -lm -lnet -lresolv -lform \
|
|
|
|
|
+ -lsocket -lc /usr/ucblib/libucb.a -lnsl
|
|
|
|
|
+
|
|
|
|
|
+ # 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.
|
|
|
|
|
+ ENERGIZE_LIB = energize/libconn.a
|
|
|
|
|
+ ENERGIZE_LIBS = ${ENERGIZE_LIB} -L/usr/lib -lm -lnet -lresolv -lform \
|
|
|
|
|
+ -lsocket -lc /usr/ucblib/libucb.a -lnsl
|
|
|
|
|
===================================================================
|
1992-09-28 21:27:05 +00:00
|
|
|
|
*** 1.5 1992/09/26 08:08:14
|
1992-09-28 21:28:02 +00:00
|
|
|
|
--- config/ncr3000.mh 1992/09/28 16:15:10
|
1992-09-26 00:45:52 +00:00
|
|
|
|
***************
|
|
|
|
|
*** 38,40 ****
|
|
|
|
|
--- 38,59 ----
|
|
|
|
|
# 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.
|
|
|
|
|
+ XM_CLIBS = -L/usr/lib -lm -lnet -lresolv -lform -lsocket -lnsl -lc
|
|
|
|
|
+
|
|
|
|
|
+ # 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.
|
|
|
|
|
+ ENERGIZE_LIB = energize/libconn.a
|
|
|
|
|
+ ENERGIZE_LIBS = ${ENERGIZE_LIB} -L/usr/lib -lm -lnet -lresolv -lform \
|
|
|
|
|
+ -lsocket -lc /usr/ucblib/libucb.a -lnsl
|
|
|
|
|
+
|
|
|
|
|
+ # 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.
|
|
|
|
|
+ ENERGIZE_LIB = energize/libconn.a
|
|
|
|
|
+ ENERGIZE_LIBS = ${ENERGIZE_LIB} -L/usr/lib -lm -lnet -lresolv -lform \
|
|
|
|
|
+ -lsocket -lc /usr/ucblib/libucb.a -lnsl
|