* m68k-tdep.c (m68k_saved_pc_after_call): Use 'GDB_TARGET_IS_SUN3'
[deliverable/binutils-gdb.git] / gdb / energize-patches
index 9bdf678385f8a8dc67707f7938b6290b89148e44..5be5a8355ed7e2eab39dfbb770c21d6ed7a1219b 100755 (executable)
@@ -3,14 +3,63 @@
 # and then Sanitize.
 
 ===================================================================
-RCS file: /local/cvsfiles/devo/gdb/.Sanitize,v
-retrieving revision 2.56
-diff -c -r2.56 .Sanitize
-*** 2.56       1992/06/23 06:26:00
---- .Sanitize  1992/07/05 18:39:47
-***************
-*** 76,81 ****
---- 76,84 ----
+*** 1.4        1992/06/10 02:05:16
+--- config/amix.mh     1992/07/21 20:18:16
+***************
+*** 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
+===================================================================
+*** 1.4        1992/06/15 19:25:13
+--- config/ncr3000.mh  1992/09/15 01:51:32
+***************
+*** 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
+===================================================================
+diff -c -r2.70 .Sanitize
+*** 2.70       1992/09/03 16:25:59
+--- .Sanitize  1992/09/15 05:19:46
+***************
+*** 73,78 ****
+--- 73,81 ----
   doc
   dwarfread.c
   elfread.c
@@ -21,106 +70,88 @@ diff -c -r2.56 .Sanitize
   environ.h
   eval.c
 ===================================================================
-RCS file: /local/cvsfiles/devo/gdb/Makefile.in,v
-retrieving revision 1.162
-diff -c -r1.162 Makefile.in
-*** 1.162      1992/07/05 17:21:11
---- Makefile.in        1992/07/05 18:46:03
+*** 1.181      1992/09/08 22:33:31
+--- Makefile.in        1992/09/15 05:21:40
 ***************
 *** 123,128 ****
---- 123,133 ----
+--- 123,135 ----
   READLINE_DEP = $$(READLINE_DIR)
   RL_LIB = ./../readline${subdir}/libreadline.a
   
-+ # Energize libraries
-+ ENERGIZE_DIR = ${srcdir}/energize
-+ ENERGIZE_INCLUDES = -I${ENERGIZE_DIR}
++ # 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.
++ ENERGIZE_DIR = energize
 + ENERGIZE_LIB = ${ENERGIZE_DIR}/libconn.a
 + 
   # All the includes used for CFLAGS and for lint.
   # -I. for config files.
   # -I${srcdir} possibly for regex.h also.
 ***************
-*** 155,166 ****
+*** 159,170 ****
   # {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} \
+  CLIBS = ${BFD_LIB}  ${RL_LIB} ${TERMCAP} ${OPCODES} ${MMALLOC_LIB} ${LIBIBERTY} \
 !      ${XM_CLIBS} ${TM_CLIBS}
-  CDEPS = ${XM_CDEPS} ${TM_CDEPS} ${BFD_LIB} ${MMALLOC_LIB} ${LIBIBERTY} \
+  CDEPS = ${XM_CDEPS} ${TM_CDEPS} ${BFD_LIB} ${OPCODES} ${MMALLOC_LIB} ${LIBIBERTY} \
        ${RL_LIB} ${MMALLOC_LIB}
   
   ADD_FILES = ${REGEX} ${ALLOCA} ${XM_ADD_FILES} ${TM_ADD_FILES}
 ! ADD_DEPS = ${REGEX1} ${ALLOCA1} ${XM_ADD_FILES} ${TM_ADD_FILES}
   
-  VERSION = 4.6.1
+  VERSION = 4.6.6
   DIST=gdb
---- 160,172 ----
+--- 166,178 ----
   # {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} ${ENERGIZE_LIB}
-  CDEPS = ${XM_CDEPS} ${TM_CDEPS} ${BFD_LIB} ${MMALLOC_LIB} ${LIBIBERTY} \
+  CLIBS = ${BFD_LIB}  ${RL_LIB} ${TERMCAP} ${OPCODES} ${MMALLOC_LIB} ${LIBIBERTY} \
+!      ${ENERGIZE_LIB} ${XM_CLIBS} ${TM_CLIBS}
+  CDEPS = ${XM_CDEPS} ${TM_CDEPS} ${BFD_LIB} ${OPCODES} ${MMALLOC_LIB} ${LIBIBERTY} \
        ${RL_LIB} ${MMALLOC_LIB}
   
   ADD_FILES = ${REGEX} ${ALLOCA} ${XM_ADD_FILES} ${TM_ADD_FILES}
 ! ADD_DEPS = ${REGEX1} ${ALLOCA1} ${XM_ADD_FILES} ${TM_ADD_FILES} \
 !         ${ENERGIZE_LIB}
   
-  VERSION = 4.6.1
+  VERSION = 4.6.6
   DIST=gdb
 ***************
-*** 175,181 ****
-  # selection of the style unless you do an explicit "set demangle auto".
-  # To select one of these as the default, set DEMANGLING_STYLE in the
-  # appropriate target dependent makefile fragment.
-! DEMANGLING_STYLE = "gnu"
-  
-  # Select demangler to use.
-  DEMANGLER = cplus-dem
---- 181,187 ----
-  # selection of the style unless you do an explicit "set demangle auto".
-  # To select one of these as the default, set DEMANGLING_STYLE in the
-  # appropriate target dependent makefile fragment.
-! DEMANGLING_STYLE = "lucid"
-  
-  # Select demangler to use.
-  DEMANGLER = cplus-dem
-***************
-*** 199,205 ****
-        ${DEMANGLER}.c mem-break.c target.c inftarg.c \
-        dbxread.c coffread.c elfread.c dwarfread.c xcoffread.c \
+*** 201,207 ****
+        mem-break.c target.c inftarg.c \
+        dbxread.c coffread.c elfread.c dwarfread.c xcoffread.c stabsread.c \
         ieee-float.c language.c parse.c buildsym.c objfiles.c \
 !       minsyms.c mipsread.c maint.c
   
   # Source files in subdirectories (which will be handled separately by
   #  'make gdb.tar.Z').
---- 205,211 ----
-        ${DEMANGLER}.c mem-break.c target.c inftarg.c \
-        dbxread.c coffread.c elfread.c dwarfread.c xcoffread.c \
+--- 209,215 ----
+        mem-break.c target.c inftarg.c \
+        dbxread.c coffread.c elfread.c dwarfread.c xcoffread.c stabsread.c \
         ieee-float.c language.c parse.c buildsym.c objfiles.c \
 !       minsyms.c mipsread.c maint.c energize.c
   
   # Source files in subdirectories (which will be handled separately by
   #  'make gdb.tar.Z').
 ***************
-*** 285,291 ****
+*** 287,293 ****
       command.o utils.o expprint.o environ.o version.o gdbtypes.o \
-      copying.o $(DEPFILES) ${DEMANGLER}.o mem-break.o target.o \
+      copying.o $(DEPFILES) mem-break.o target.o \
       inftarg.o ieee-float.o putenv.o parse.o language.o $(YYOBJ) \
 !     buildsym.o objfiles.o minsyms.o maint.o demangle.o \
-      dbxread.o coffread.o elfread.o dwarfread.o xcoffread.o mipsread.o
+      dbxread.o coffread.o elfread.o dwarfread.o xcoffread.o mipsread.o \
+      stabsread.o
   
-  RAPP_OBS = rgdb.o rudp.o rserial.o serial.o udp.o $(XDEPFILES)
---- 291,297 ----
+--- 295,301 ----
       command.o utils.o expprint.o environ.o version.o gdbtypes.o \
-      copying.o $(DEPFILES) ${DEMANGLER}.o mem-break.o target.o \
+      copying.o $(DEPFILES) mem-break.o target.o \
       inftarg.o ieee-float.o putenv.o parse.o language.o $(YYOBJ) \
 !     buildsym.o objfiles.o minsyms.o maint.o demangle.o energize.o \
-      dbxread.o coffread.o elfread.o dwarfread.o xcoffread.o mipsread.o
+      dbxread.o coffread.o elfread.o dwarfread.o xcoffread.o mipsread.o \
+      stabsread.o
   
-  RAPP_OBS = rgdb.o rudp.o rserial.o serial.o udp.o $(XDEPFILES)
 ***************
-*** 298,304 ****
+*** 301,307 ****
   
   NTSSTART = kdb-start.o
   
@@ -128,7 +159,7 @@ diff -c -r1.162 Makefile.in
   
   # For now, shortcut the "configure GDB for fewer languages" stuff.
   YYFILES = c-exp.tab.c m2-exp.tab.c
---- 304,310 ----
+--- 309,315 ----
   
   NTSSTART = kdb-start.o
   
@@ -137,8 +168,8 @@ diff -c -r1.162 Makefile.in
   # For now, shortcut the "configure GDB for fewer languages" stuff.
   YYFILES = c-exp.tab.c m2-exp.tab.c
 ***************
-*** 352,357 ****
---- 358,377 ----
+*** 363,368 ****
+--- 371,390 ----
        #load `echo " "$(DEPFILES) | sed -e 's/\.o/.c/g' -e 's, , ../,g'`
        echo "Load .c corresponding to:" $(DEPFILES)
   
@@ -159,24 +190,9 @@ diff -c -r1.162 Makefile.in
   
   # 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
-***************
-*** 700,705 ****
---- 720,728 ----
-  
-  ttyflush.o: ${srcdir}/nindy-share/ttyflush.c
-       ${CC} -c ${INTERNAL_CFLAGS} ${srcdir}/nindy-share/ttyflush.c
-+ 
-+ energize.o: ${srcdir}/energize.c
-+      ${CC} -c ${INTERNAL_CFLAGS} ${ENERGIZE_INCLUDES} ${srcdir}/energize.c
-  
-  lint: $(LINTFILES)
-       $(LINT) $(INCLUDE_CFLAGS) $(LINTFLAGS) $(LINTFILES) \
 ===================================================================
-RCS file: /local/cvsfiles/devo/gdb/breakpoint.c,v
-retrieving revision 1.38
-diff -c -r1.38 breakpoint.c
-*** 1.38       1992/07/04 03:20:43
---- breakpoint.c       1992/07/05 13:37:46
+*** 1.46       1992/09/15 06:27:18
+--- breakpoint.c       1992/09/15 06:33:37
 ***************
 *** 273,278 ****
 --- 273,279 ----
@@ -198,16 +214,13 @@ diff -c -r1.38 breakpoint.c
              error ("Junk at end of expression");
          }
 ***************
-*** 316,330 ****
+*** 316,327 ****
     ALL_BREAKPOINTS (b)
       if (b->number == bnum)
         {
 !      if (from_tty && input_from_terminal_p ())
-!        {
-!          printf_filtered ("Type commands for when breakpoint %d is hit, one per line.\n\
+         printf_filtered ("Type commands for when breakpoint %d is hit, one per line.\n\
   End with a line saying just \"end\".\n", bnum);
--          fflush (stdout);
--        }
        l = read_command_lines ();
        free_command_lines (&b->commands);
        b->commands = l;
@@ -219,7 +232,7 @@ diff -c -r1.38 breakpoint.c
       if (b->number == bnum)
         {
 !      if ((from_tty && input_from_terminal_p ()) || energize)
-!        printf_filtered ("Type commands for when breakpoint %d is hit, one per line.\n\
+         printf_filtered ("Type commands for when breakpoint %d is hit, one per line.\n\
   End with a line saying just \"end\".\n", bnum);
        l = read_command_lines ();
        free_command_lines (&b->commands);
@@ -229,8 +242,8 @@ diff -c -r1.38 breakpoint.c
         }
     error ("No breakpoint number %d.", bnum);
 ***************
-*** 925,930 ****
---- 925,931 ----
+*** 923,928 ****
+--- 926,932 ----
            {
              b->ignore_count--;
              this_bp_stop = 0;
@@ -239,8 +252,8 @@ diff -c -r1.38 breakpoint.c
          else
            {
 ***************
-*** 1365,1370 ****
---- 1366,1373 ----
+*** 1375,1380 ****
+--- 1379,1386 ----
   mention (b)
        struct breakpoint *b;
   {
@@ -250,8 +263,8 @@ diff -c -r1.38 breakpoint.c
       {
       case bp_watchpoint:
 ***************
-*** 2112,2117 ****
---- 2115,2122 ----
+*** 2125,2130 ****
+--- 2131,2138 ----
     register struct breakpoint *b;
     register bpstat bs;
   
@@ -261,8 +274,8 @@ diff -c -r1.38 breakpoint.c
         target_remove_breakpoint(bpt->address, bpt->shadow_contents);
   
 ***************
-*** 2283,2288 ****
---- 2288,2294 ----
+*** 2303,2308 ****
+--- 2311,2317 ----
       if (b->number == bptnum)
         {
        b->ignore_count = count;
@@ -271,7 +284,7 @@ diff -c -r1.38 breakpoint.c
          return;
        else if (count == 0)
 ***************
-*** 2307,2313 ****
+*** 2327,2333 ****
     struct breakpoint *b;
   
     ALL_BREAKPOINTS (b)
@@ -279,7 +292,7 @@ diff -c -r1.38 breakpoint.c
   }
   
   /* Command to set ignore-count of breakpoint N to COUNT.  */
---- 2313,2322 ----
+--- 2336,2345 ----
     struct breakpoint *b;
   
     ALL_BREAKPOINTS (b)
@@ -291,19 +304,19 @@ diff -c -r1.38 breakpoint.c
   
   /* Command to set ignore-count of breakpoint N to COUNT.  */
 ***************
-*** 2374,2379 ****
---- 2383,2390 ----
+*** 2394,2399 ****
+--- 2406,2413 ----
   {
     bpt->enable = enabled;
   
 +   energize_enable_breakpoint(bpt);
 + 
     if (xgdb_verbose && bpt->type == bp_breakpoint)
-      printf ("breakpoint #%d enabled\n", bpt->number);
+      printf_filtered ("breakpoint #%d enabled\n", bpt->number);
   
 ***************
-*** 2421,2426 ****
---- 2432,2439 ----
+*** 2441,2446 ****
+--- 2455,2462 ----
   disable_breakpoint (bpt)
        struct breakpoint *bpt;
   {
@@ -313,13 +326,21 @@ diff -c -r1.38 breakpoint.c
   
     if (xgdb_verbose && bpt->type == bp_breakpoint)
 ===================================================================
-RCS file: /local/cvsfiles/devo/gdb/command.c,v
-retrieving revision 1.17
-diff -c -r1.17 command.c
-*** 1.17       1992/07/04 03:20:54
---- command.c  1992/07/05 13:41:51
+*** 1.18       1992/07/10 17:22:30
+--- command.c  1992/07/23 01:42:36
 ***************
-*** 1149,1155 ****
+*** 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.  */
+***************
+*** 1148,1154 ****
       }
   
     if (pid != -1)
@@ -327,7 +348,7 @@ diff -c -r1.17 command.c
         ;
     else
       error ("Fork failed");
---- 1149,1155 ----
+--- 1150,1156 ----
       }
   
     if (pid != -1)
@@ -336,11 +357,8 @@ diff -c -r1.17 command.c
     else
       error ("Fork failed");
 ===================================================================
-RCS file: /local/cvsfiles/devo/gdb/configure.in,v
-retrieving revision 1.50
-diff -c -r1.50 configure.in
-*** 1.50       1992/06/23 00:25:00
---- configure.in       1992/07/05 17:50:08
+*** 1.63       1992/09/03 16:26:02
+--- configure.in       1992/09/15 05:19:56
 ***************
 *** 1,4 ****
 ! configdirs="doc"
@@ -353,28 +371,42 @@ diff -c -r1.50 configure.in
   srctrigger=main.c
   target_dependent=true
 ===================================================================
-RCS file: /local/cvsfiles/devo/gdb/defs.h,v
-retrieving revision 1.41
-diff -c -r1.41 defs.h
-*** 1.41       1992/06/30 08:53:18
---- defs.h     1992/07/05 13:24:31
+*** 1.48       1992/09/15 08:55:59
+--- defs.h     1992/09/15 08:54:35
 ***************
-*** 787,790 ****
---- 787,792 ----
-  extern CORE_ADDR
-  push_word ();
+*** 811,814 ****
+--- 811,816 ----
+  #define MAINTENANCE_CMDS 1
+  #endif
   
 + #include "energize.h"
 + 
   #endif /* !defined (DEFS_H) */
 ===================================================================
-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
+*** 2.5        1992/09/03 16:26:03
+--- demangle.c 1992/09/15 05:19:59
+***************
+*** 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"
+===================================================================
+*** 1.28       1992/07/23 04:41:45
+--- inflow.c   1992/08/27 22:43:15
 ***************
-*** 81,87 ****
+*** 89,95 ****
   static short pgrp_inferior;
   static short pgrp_ours;
   # else /* not def SHORT_PGRP */
@@ -382,7 +414,7 @@ diff -c -r1.27 inflow.c
   static int pgrp_ours;
   # endif /* not def SHORT_PGRP */
   #else /* not def TIOCGPGRP */
---- 81,87 ----
+--- 89,95 ----
   static short pgrp_inferior;
   static short pgrp_ours;
   # else /* not def SHORT_PGRP */
@@ -391,14 +423,11 @@ diff -c -r1.27 inflow.c
   # endif /* not def SHORT_PGRP */
   #else /* not def TIOCGPGRP */
 ===================================================================
-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
-***************
-*** 617,622 ****
---- 617,623 ----
+*** 1.54       1992/09/02 09:22:09
+--- infrun.c   1992/09/15 05:20:09
+***************
+*** 633,638 ****
+--- 633,639 ----
      Here we must get it up to actual execution of the real program.  */
   
     inferior_pid = pid;                /* Needed for wait_for_inferior stuff below */
@@ -407,8 +436,8 @@ diff -c -r1.52 infrun.c
     clear_proceed_status ();
   
 ***************
-*** 755,760 ****
---- 756,762 ----
+*** 771,776 ****
+--- 772,778 ----
   
     attach (pid);
     inferior_pid = pid;
@@ -417,37 +446,35 @@ diff -c -r1.52 infrun.c
   
     mark_breakpoints_out ();
 ===================================================================
-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
+--- inftarg.c  1992/09/15 06:37:01
 ***************
-*** 58,64 ****
-  #ifdef USE_PROC_FS
-      pid = proc_wait (status);
-  #else
+*** 55,65 ****
+    int pid;
+  
+    do {
+! #ifdef USE_PROC_FS
+!     pid = proc_wait (status);
+! #else
 !     pid = wait (status);
-  #endif
+! #endif
       if (pid == -1)           /* No more children to wait for */
         {
---- 58,64 ----
-  #ifdef USE_PROC_FS
-      pid = proc_wait (status);
-  #else
+       fprintf (stderr, "Child process unexpectedly missing.\n");
+--- 55,61 ----
+    int pid;
+  
+    do {
 !     pid = energize_wait (status);
-  #endif
       if (pid == -1)           /* No more children to wait for */
         {
+       fprintf (stderr, "Child process unexpectedly missing.\n");
 ===================================================================
-RCS file: /local/cvsfiles/devo/gdb/main.c,v
-retrieving revision 1.49
-diff -c -r1.49 main.c
-*** 1.49       1992/07/04 12:20:57
---- main.c     1992/07/05 14:08:32
-***************
-*** 397,402 ****
---- 397,403 ----
+*** 1.52       1992/09/15 06:27:10
+--- main.c     1992/09/15 06:30:03
+***************
+*** 426,431 ****
+--- 426,432 ----
     char *corearg = NULL;
     char *cdarg = NULL;
     char *ttyarg = NULL;
@@ -456,8 +483,8 @@ diff -c -r1.49 main.c
     /* Pointers to all arguments of +command option.  */
     char **cmdarg;
 ***************
-*** 495,500 ****
---- 496,502 ----
+*** 524,529 ****
+--- 525,531 ----
        {"tty", required_argument, 0, 't'},
        {"baud", required_argument, 0, 'b'},
        {"b", required_argument, 0, 'b'},
@@ -466,8 +493,8 @@ diff -c -r1.49 main.c
   #ifdef ADDITIONAL_OPTIONS
        ADDITIONAL_OPTIONS
 ***************
-*** 527,532 ****
---- 529,537 ----
+*** 556,561 ****
+--- 558,566 ----
          case 11:
            cdarg = optarg;
            break;
@@ -478,18 +505,19 @@ diff -c -r1.49 main.c
            symarg = optarg;
            break;
 ***************
-*** 707,712 ****
---- 712,719 ----
-    free ((PTR)dirarg);
-    do_cleanups (ALL_CLEANUPS);
+*** 664,669 ****
+--- 669,677 ----
+  
+    /* Run the init function of each source file */
   
++   /* Must call this first to setup tty */
 +   energize_initialize (energize_id, execarg);
 + 
-    if (execarg != NULL
-        && symarg != NULL
-        && strcmp (execarg, symarg) == 0)
+    initialize_cmd_lists ();   /* This needs to be done first */
+    initialize_all_files ();
+    initialize_main ();                /* But that omits this file!  Do it now */
 ***************
-*** 821,827 ****
+*** 850,856 ****
         if (!setjmp (to_top_level))
        {
          do_cleanups (ALL_CLEANUPS);           /* Do complete cleanup */
@@ -497,7 +525,7 @@ diff -c -r1.49 main.c
             quit_command ((char *)0, instream == stdin);
        }
       }
---- 828,837 ----
+--- 858,867 ----
         if (!setjmp (to_top_level))
        {
          do_cleanups (ALL_CLEANUPS);           /* Do complete cleanup */
@@ -509,7 +537,7 @@ diff -c -r1.49 main.c
        }
       }
 ***************
-*** 883,889 ****
+*** 912,918 ****
         else if (c->function.cfunc == NO_FUNCTION)
        error ("That is not a command, just a help topic.");
         else
@@ -517,7 +545,7 @@ diff -c -r1.49 main.c
      }
   
     /* Tell the user if the language has changed (except first time).  */
---- 893,899 ----
+--- 923,929 ----
         else if (c->function.cfunc == NO_FUNCTION)
        error ("That is not a command, just a help topic.");
         else
@@ -526,7 +554,7 @@ diff -c -r1.49 main.c
   
     /* Tell the user if the language has changed (except first time).  */
 ***************
-*** 1519,1525 ****
+*** 1564,1570 ****
     while (1)
       {
         dont_repeat ();
@@ -534,7 +562,7 @@ diff -c -r1.49 main.c
         if (p == NULL)
        /* Treat end of file like "end".  */
        break;
---- 1529,1535 ----
+--- 1575,1581 ----
     while (1)
       {
         dont_repeat ();
@@ -542,29 +570,9 @@ diff -c -r1.49 main.c
         if (p == NULL)
        /* Treat end of file like "end".  */
        break;
-***************
-*** 1823,1829 ****
-  void
-  print_prompt ()
-  {
-!   printf ("%s", prompt);
-    fflush (stdout);
-  }
-  \f
---- 1833,1839 ----
-  void
-  print_prompt ()
-  {
-!   printf_filtered ("%s", prompt);
-    fflush (stdout);
-  }
-  \f
 ===================================================================
-RCS file: /local/cvsfiles/devo/gdb/printcmd.c,v
-retrieving revision 1.29
-diff -c -r1.29 printcmd.c
-*** 1.29       1992/06/25 10:58:47
---- printcmd.c 1992/07/05 14:09:25
+*** 1.32       1992/09/15 06:27:00
+--- printcmd.c 1992/09/15 06:30:06
 ***************
 *** 778,783 ****
 --- 778,792 ----
@@ -581,7 +589,7 @@ diff -c -r1.29 printcmd.c
 +      }
 + 
         if (inspect)
-       printf ("\031(gdb-makebuffer \"%s\"  %d '(\"", exp, histindex);
+       printf_filtered ("\031(gdb-makebuffer \"%s\"  %d '(\"", exp, histindex);
         else
 ***************
 *** 784,789 ****
@@ -592,10 +600,10 @@ diff -c -r1.29 printcmd.c
 +       energize_end_variable_annotation();
         printf_filtered ("\n");
         if (inspect)
-       printf("\") )\030");
+       printf_filtered("\") )\030");
 ***************
-*** 1610,1620 ****
---- 1620,1638 ----
+*** 1652,1662 ****
+--- 1662,1680 ----
         standard indentation here is 4 spaces, and val_print indents
         2 for each recurse.  */
         val = read_var_value (sym, FRAME_INFO_ID (fi));
@@ -616,11 +624,8 @@ diff -c -r1.29 printcmd.c
       }
   
 ===================================================================
-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
+*** 1.34       1992/09/11 09:11:04
+--- stack.c    1992/09/15 05:20:25
 ***************
 *** 159,165 ****
         if (addressprint)
@@ -701,11 +706,8 @@ diff -c -r1.33 stack.c
     wrap_here ("   ");
     if (sal.symtab)
 ===================================================================
-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
+*** 1.57       1992/09/15 06:27:08
+--- symfile.c  1992/09/15 06:30:09
 ***************
 *** 611,616 ****
 --- 611,618 ----
@@ -718,31 +720,11 @@ diff -c -r1.55 symfile.c
   }
   
 ===================================================================
-RCS file: /local/cvsfiles/devo/gdb/utils.c,v
-retrieving revision 1.53
-diff -c -r1.53 utils.c
-*** 1.53       1992/07/04 03:21:59
---- utils.c    1992/07/05 17:32:13
+*** 1.60       1992/09/15 06:26:56
+--- utils.c    1992/09/15 08:57:41
 ***************
-*** 694,700 ****
-    register int ans2;
-  
-    /* Automatically answer "yes" if input is not from a terminal.  */
-!   if (!input_from_terminal_p ())
-      return 1;
-  
-    while (1)
---- 694,700 ----
-    register int ans2;
-  
-    /* Automatically answer "yes" if input is not from a terminal.  */
-!   if (!input_from_terminal_p () && !energize)
-      return 1;
-  
-    while (1)
-***************
-*** 701,721 ****
-      {
+*** 700,720 ****
+        fflush (stdout);
         va_start (args);
         ctlstr = va_arg (args, char *);
         vfprintf_filtered (stdout, ctlstr, args);
@@ -763,8 +745,8 @@ diff -c -r1.53 utils.c
         if (answer >= 'a')
        answer -= 040;
         if (answer == 'Y')
---- 701,732 ----
-      {
+--- 700,731 ----
+        fflush (stdout);
         va_start (args);
         ctlstr = va_arg (args, char *);
 +       energize_query (ctlstr, args);
@@ -797,8 +779,8 @@ diff -c -r1.53 utils.c
        answer -= 040;
         if (answer == 'Y')
 ***************
-*** 723,728 ****
---- 734,740 ----
+*** 722,727 ****
+--- 733,739 ----
         if (answer == 'N')
        return 0;
         printf_filtered ("Please answer y or n.\n");
@@ -807,8 +789,8 @@ diff -c -r1.53 utils.c
   }
   
 ***************
-*** 989,994 ****
---- 1001,1012 ----
+*** 988,993 ****
+--- 1000,1011 ----
     if (linebuffer == 0)
       return;
     
@@ -822,14 +804,11 @@ diff -c -r1.53 utils.c
     if (stream != stdout
      || (lines_per_page == UINT_MAX && chars_per_line == UINT_MAX))
 ===================================================================
-RCS file: /local/cvsfiles/devo/gdb/valprint.c,v
-retrieving revision 1.45
-diff -c -r1.45 valprint.c
-*** 1.45       1992/07/04 03:22:04
---- valprint.c 1992/07/05 14:19:51
-***************
-*** 485,490 ****
---- 485,491 ----
+*** 1.54       1992/09/15 06:27:03
+--- valprint.c 1992/09/15 06:30:13
+***************
+*** 488,493 ****
+--- 488,494 ----
        struct type **dont_print;
   {
     int i, len, n_baseclasses;
@@ -838,8 +817,8 @@ diff -c -r1.45 valprint.c
     check_stub_type (type);
   
 ***************
-*** 549,554 ****
---- 550,562 ----
+*** 552,557 ****
+--- 553,565 ----
              fprint_symbol (stream, TYPE_FIELD_NAME (type, i));
              fputs_filtered (" = ", stream);
            }
@@ -854,8 +833,8 @@ diff -c -r1.45 valprint.c
            {
              value v;
 ***************
-*** 567,572 ****
---- 575,581 ----
+*** 570,575 ****
+--- 578,584 ----
                         valaddr + TYPE_FIELD_BITPOS (type, i) / 8,
                         0, stream, format, 0, recurse + 1, pretty);
            }
@@ -864,8 +843,8 @@ diff -c -r1.45 valprint.c
         if (pretty)
        {
 ***************
-*** 801,806 ****
---- 810,816 ----
+*** 804,809 ****
+--- 813,819 ----
                  unsigned int rep1;
                  /* Number of repetitions we have detected so far.  */
                  unsigned int reps;
@@ -874,8 +853,8 @@ diff -c -r1.45 valprint.c
                  if (i != 0)
                    if (arrayprint)
 ***************
-*** 822,827 ****
---- 832,842 ----
+*** 825,830 ****
+--- 835,845 ----
                      ++rep1;
                    }
   
@@ -888,8 +867,8 @@ diff -c -r1.45 valprint.c
                    {
                      val_print (elttype, valaddr + i * eltlen,
 ***************
-*** 838,843 ****
---- 853,859 ----
+*** 841,846 ****
+--- 856,862 ----
                                 recurse + 1, pretty);
                      things_printed++;
                    }
@@ -897,41 +876,3 @@ diff -c -r1.45 valprint.c
                }
              if (i < len)
                fprintf_filtered (stream, "...");
-===================================================================
-RCS file: /local/cvsfiles/devo/gdb/config/amix.mh,v
-retrieving revision 1.4
-diff -c -r1.4 amix.mh
-*** 1.4        1992/06/10 02:05:16
---- config/amix.mh     1992/07/05 17:47:19
-***************
-*** 22,24 ****
---- 22,31 ----
-  
-  # 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
-===================================================================
-RCS file: /local/cvsfiles/devo/gdb/config/ncr3000.mh,v
-retrieving revision 1.4
-diff -c -r1.4 ncr3000.mh
-*** 1.4        1992/06/15 19:25:13
---- config/ncr3000.mh  1992/07/05 17:49:34
-***************
-*** 38,40 ****
---- 38,47 ----
-  # 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.
-+ ENERGIZE_LIB = energize/libconn.a
-+ ENERGIZE_LIBS = ${ENERGIZE_LIB} -L/usr/lib -lm -lnet -lresolv -lform \
-+      -lsocket -lc /usr/ucblib/libucb.a -lnsl
This page took 0.037371 seconds and 4 git commands to generate.