1 # Apply these patches to GDB to produce an Energize GDB.
2 # To apply these patches, first cd to gdb-XX/gdb, run "patch -p0 <thisfile",
5 ===================================================================
7 diff -rc .Sanitize .Sanitize
8 *** .Sanitize Mon Jun 22 23:26:00 1992
9 --- .Sanitize Sat Jun 27 12:29:59 1992
30 diff -rc Makefile.in Makefile.in
31 *** Makefile.in Sat Jun 27 12:16:43 1992
32 --- Makefile.in Sat Jun 27 12:31:29 1992
36 READLINE_DEP = $$(READLINE_DIR)
37 RL_LIB = ./../readline${subdir}/libreadline.a
39 + # Cadillac libraries
40 + CONNECTION_DIR = deblib/connection
41 + CONNECTION_LIB = ${CONNECTION_DIR}/libconn.a
42 + CADILLAC_DIR = ${srcdir}/deblib
43 + CADILLAC_INCLUDES = -I${CADILLAC_DIR}/connection -I${CADILLAC_DIR}/debugger
44 + CADILLAC_LIBS = ${CONNECTION_LIB}
46 # All the includes used for CFLAGS and for lint.
47 # -I. for config files.
48 # -I${srcdir} possibly for regex.h also.
51 # {X,T}M_CLIBS, defined in *config files, have host- and target-dependent libs.
52 # TERMCAP comes after readline, since readline depends on it.
53 CLIBS = ${BFD_LIB} ${RL_LIB} ${TERMCAP} ${MMALLOC_LIB} ${LIBIBERTY} \
54 ! ${XM_CLIBS} ${TM_CLIBS}
55 CDEPS = ${XM_CDEPS} ${TM_CDEPS} ${BFD_LIB} ${MMALLOC_LIB} ${LIBIBERTY} \
56 ${RL_LIB} ${MMALLOC_LIB}
58 ADD_FILES = ${REGEX} ${ALLOCA} ${XM_ADD_FILES} ${TM_ADD_FILES}
59 ! ADD_DEPS = ${REGEX1} ${ALLOCA1} ${XM_ADD_FILES} ${TM_ADD_FILES}
64 # {X,T}M_CLIBS, defined in *config files, have host- and target-dependent libs.
65 # TERMCAP comes after readline, since readline depends on it.
66 CLIBS = ${BFD_LIB} ${RL_LIB} ${TERMCAP} ${MMALLOC_LIB} ${LIBIBERTY} \
67 ! ${XM_CLIBS} ${TM_CLIBS} ${CADILLAC_LIBS}
68 CDEPS = ${XM_CDEPS} ${TM_CDEPS} ${BFD_LIB} ${MMALLOC_LIB} ${LIBIBERTY} \
69 ${RL_LIB} ${MMALLOC_LIB}
71 ADD_FILES = ${REGEX} ${ALLOCA} ${XM_ADD_FILES} ${TM_ADD_FILES}
72 ! ADD_DEPS = ${REGEX1} ${ALLOCA1} ${XM_ADD_FILES} ${TM_ADD_FILES} \
79 # demangling. For other demangling styles, such as the Annotated C++
80 # Reference Manual (section 7.2.1c) style, set this define in the target-
81 # dependent makefile fragment.
84 # Host and target-dependent makefile fragments come in here.
87 # demangling. For other demangling styles, such as the Annotated C++
88 # Reference Manual (section 7.2.1c) style, set this define in the target-
89 # dependent makefile fragment.
91 ! # For Energize, default to using style specified in the Annotated C++
92 ! # Reference Manual, section 7.2.1c, which is what is used by the Lucid C++
93 ! # compiler for most things. But there are places where Lucid varies from
94 ! # the ARM, so select the Lucid specific code also.
95 ! DEMANGLE_OPTS=-DARM_DEMANGLING -DLUCID_DEMANGLING
97 # Host and target-dependent makefile fragments come in here.
101 ${DEMANGLER}.c mem-break.c target.c inftarg.c \
102 dbxread.c coffread.c elfread.c dwarfread.c xcoffread.c \
103 ieee-float.c language.c parse.c buildsym.c objfiles.c \
104 ! minsyms.c mipsread.c
106 # Source files in subdirectories (which will be handled separately by
109 ${DEMANGLER}.c mem-break.c target.c inftarg.c \
110 dbxread.c coffread.c elfread.c dwarfread.c xcoffread.c \
111 ieee-float.c language.c parse.c buildsym.c objfiles.c \
112 ! minsyms.c mipsread.c cadillac.c
114 # Source files in subdirectories (which will be handled separately by
118 command.o utils.o expprint.o environ.o version.o gdbtypes.o \
119 copying.o $(DEPFILES) ${DEMANGLER}.o mem-break.o target.o \
120 inftarg.o ieee-float.o putenv.o parse.o language.o $(YYOBJ) \
121 ! buildsym.o objfiles.o minsyms.o \
122 dbxread.o coffread.o elfread.o dwarfread.o xcoffread.o mipsread.o
124 RAPP_OBS = rgdb.o rudp.o rserial.o serial.o udp.o $(XDEPFILES)
126 command.o utils.o expprint.o environ.o version.o gdbtypes.o \
127 copying.o $(DEPFILES) ${DEMANGLER}.o mem-break.o target.o \
128 inftarg.o ieee-float.o putenv.o parse.o language.o $(YYOBJ) \
129 ! buildsym.o objfiles.o minsyms.o cadillac.o \
130 dbxread.o coffread.o elfread.o dwarfread.o xcoffread.o mipsread.o
132 RAPP_OBS = rgdb.o rudp.o rserial.o serial.o udp.o $(XDEPFILES)
136 NTSSTART = kdb-start.o
140 # For now, shortcut the "configure GDB for fewer languages" stuff.
141 YYFILES = c-exp.tab.c m2-exp.tab.c
144 NTSSTART = kdb-start.o
146 ! SUBDIRS = doc ${CONNECTION_DIR}
148 # For now, shortcut the "configure GDB for fewer languages" stuff.
149 YYFILES = c-exp.tab.c m2-exp.tab.c
153 #load `echo " "$(DEPFILES) | sed -e 's/\.o/.c/g' -e 's, , ../,g'`
154 echo "Load .c corresponding to:" $(DEPFILES)
156 + ${CONNECTION_LIB} :
157 + @(cd ${CONNECTION_DIR}; \
159 + "against=$(against)" \
161 + "AR_FLAGS=$(AR_FLAGS)" \
163 + "CFLAGS=$(CFLAGS)" \
164 + "RANLIB=$(RANLIB)" \
165 + "MAKEINFO=$(MAKEINFO)" \
166 + "INSTALL=$(INSTALL)" \
167 + "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
168 + "INSTALL_DATA=$(INSTALL_DATA)" \
171 # This is useful when debugging GDB, because some Unix's don't let you run GDB
172 # on itself without copying the executable. So "make gdb1" will make
177 ttyflush.o: ${srcdir}/nindy-share/ttyflush.c
178 ${CC} -c ${INTERNAL_CFLAGS} ${srcdir}/nindy-share/ttyflush.c
180 + cadillac.o: ${srcdir}/cadillac.c
181 + ${CC} -c ${INTERNAL_CFLAGS} ${CADILLAC_INCLUDES} ${srcdir}/cadillac.c
184 $(LINT) $(INCLUDE_CFLAGS) $(LINTFLAGS) $(LINTFILES) \
185 diff -rc breakpoint.c breakpoint.c
186 *** breakpoint.c Wed Jun 17 14:53:28 1992
187 --- breakpoint.c Sat Jun 27 12:30:01 1992
191 b->cond_string = NULL;
193 printf_filtered ("Breakpoint %d now unconditional.\n", bnum);
195 + cadillac_condition_breakpoint(b);
202 typed in or the decompiled expression. */
203 b->cond_string = savestring (arg, strlen (arg));
204 b->cond = parse_exp_1 (&arg, block_for_pc (b->address), 0);
206 + cadillac_condition_breakpoint(b);
208 error ("Junk at end of expression");
213 if (b->number == bnum)
215 ! if (from_tty && input_from_terminal_p ())
217 ! printf_filtered ("Type commands for when breakpoint %d is hit, one per line.\n\
218 End with a line saying just \"end\".\n", bnum);
221 l = read_command_lines ();
222 free_command_lines (&b->commands);
226 error ("No breakpoint number %d.", bnum);
229 if (b->number == bnum)
231 ! if ((from_tty && input_from_terminal_p ()) || cadillac)
232 ! printf_filtered ("Type commands for when breakpoint %d is hit, one per line.\n\
233 End with a line saying just \"end\".\n", bnum);
234 l = read_command_lines ();
235 free_command_lines (&b->commands);
238 + cadillac_commands_breakpoint(b);
241 error ("No breakpoint number %d.", bnum);
249 + cadillac_ignore_breakpoint(b);
257 struct breakpoint *b;
260 + cadillac_create_breakpoint(b);
268 register struct breakpoint *b;
272 + cadillac_delete_breakpoint(bpt);
275 target_remove_breakpoint(bpt->address, bpt->shadow_contents);
280 if (b->number == bptnum)
282 b->ignore_count = count;
284 + cadillac_ignore_breakpoint(b);
290 struct breakpoint *b;
293 ! b->ignore_count = 0;
296 /* Command to set ignore-count of breakpoint N to COUNT. */
298 struct breakpoint *b;
302 ! b->ignore_count = 0;
304 ! cadillac_ignore_breakpoint(b);
308 /* Command to set ignore-count of breakpoint N to COUNT. */
313 bpt->enable = enabled;
316 + cadillac_enable_breakpoint(bpt);
318 if (xgdb_verbose && bpt->type == bp_breakpoint)
319 printf ("breakpoint #%d enabled\n", bpt->number);
324 disable_breakpoint (bpt)
325 struct breakpoint *bpt;
328 + cadillac_disable_breakpoint(bpt);
330 bpt->enable = disabled;
332 if (xgdb_verbose && bpt->type == bp_breakpoint)
333 diff -rc command.c command.c
334 *** command.c Mon Jun 22 20:33:41 1992
335 --- command.c Sat Jun 27 12:30:01 1992
341 ! while ((rc = wait (&status)) != pid && rc != -1)
344 error ("Fork failed");
349 ! while ((rc = cadillac ? cadillac_wait(&status) : wait (&status)) != pid && rc != -1)
352 error ("Fork failed");
353 diff -rc config/amix.mh config/amix.mh
354 *** config/amix.mh Tue Jun 9 19:05:16 1992
355 --- config/amix.mh Sat Jun 27 12:31:29 1992
360 # SVR4 puts the BSD compatible install in /usr/ucb.
361 INSTALL = /usr/ucb/install -c
363 + # These are the libs that are needed for the Cadillac version of gdb on
364 + # SVR4. Note that we MUST include the standard C library before libucb.a,
365 + # otherwise we get lots of broken stuff we don't want.
366 + CONNECTION_LIB = deblib/connection/libconn.a
367 + CADILLAC_LIBS = ${CONNECTION_LIB} -L/usr/lib -lm -lnet -lresolv -lform \
368 + -lsocket -lc /usr/ucblib/libucb.a -lnsl
369 diff -rc config/ncr3000.mh config/ncr3000.mh
370 *** config/ncr3000.mh Mon Jun 15 12:25:13 1992
371 --- config/ncr3000.mh Sat Jun 27 12:31:30 1992
375 # The /usr/ucb/install program is incompatible (complains about unknown
376 # group staff). Use good old cp...
379 + # These are the libs that are needed for the Cadillac version of gdb on
380 + # SVR4. Note that we MUST include the standard C library before libucb.a,
381 + # otherwise we get lots of broken stuff we don't want.
382 + CONNECTION_LIB = deblib/connection/libconn.a
383 + CADILLAC_LIBS = ${CONNECTION_LIB} -L/usr/lib -lm -lnet -lresolv -lform \
384 + -lsocket -lc /usr/ucblib/libucb.a -lnsl
385 diff -rc configure.in configure.in
386 *** configure.in Mon Jun 22 17:25:00 1992
387 --- configure.in Sat Jun 27 12:31:29 1992
393 target_dependent=true
395 ! configdirs="deblib doc"
398 target_dependent=true
399 diff -rc defs.h defs.h
400 *** defs.h Thu Jun 25 04:50:31 1992
401 --- defs.h Sat Jun 27 12:30:02 1992
408 + /* Energize/Cadillac stuff */
410 + /* Non-zero means that we're doing the cadillac interface. */
411 + extern int cadillac;
413 + /* Get a pty for use with cadillac */
414 + extern char *cadillac_getpty PARAMS ((void));
416 + /* Notify cadillac of new process creation */
417 + extern void cadillac_new_process PARAMS ((void));
419 + /* Low level wait routine for wait_for_inferior */
420 + extern int cadillac_wait PARAMS ((int *));
423 + extern void cadillac_initialize PARAMS ((char *, char *));
425 + /* Main loop for cadillac protocol driver */
426 + extern void cadillac_main_loop PARAMS ((void));
428 + struct cmd_list_element;
430 + /* Command hook for cadillac */
431 + extern void cadillac_call_command PARAMS ((struct cmd_list_element *,
434 + /* Read commands for the command command, and others */
435 + extern char *cadillac_command_line_input PARAMS ((void));
440 + extern void cadillac_start_variable_annotation PARAMS ((char *,
446 + extern void cadillac_end_variable_annotation PARAMS ((void));
448 + extern void cadillac_annotate_function PARAMS ((char *, int, int));
451 + extern void cadillac_symbol_file PARAMS ((struct objfile *));
453 + /*extern void cadillac_query PARAMS ((char *, ...));*/
454 + extern void cadillac_query (); /* Prototypes for varargs don't work */
456 + extern char *cadillac_command_line_input PARAMS ((void));
458 + extern void cadillac_acknowledge_query PARAMS ((char *));
460 + extern void cadillac_fputs PARAMS ((const char *));
463 + extern void cadillac_condition_breakpoint PARAMS ((struct breakpoint *));
465 + extern void cadillac_commands_breakpoint PARAMS ((struct breakpoint *));
467 + extern void cadillac_ignore_breakpoint PARAMS ((struct breakpoint *));
469 + extern void cadillac_create_breakpoint PARAMS ((struct breakpoint *));
471 + extern void cadillac_delete_breakpoint PARAMS ((struct breakpoint *));
473 + extern void cadillac_enable_breakpoint PARAMS ((struct breakpoint *));
475 + extern void cadillac_disable_breakpoint PARAMS ((struct breakpoint *));
477 #endif /* !defined (DEFS_H) */
478 diff -rc inflow.c inflow.c
479 *** inflow.c Tue Jun 23 21:49:19 1992
480 --- inflow.c Sat Jun 27 12:30:03 1992
483 static short pgrp_inferior;
484 static short pgrp_ours;
485 # else /* not def SHORT_PGRP */
486 ! static int pgrp_inferior;
487 static int pgrp_ours;
488 # endif /* not def SHORT_PGRP */
489 #else /* not def TIOCGPGRP */
491 static short pgrp_inferior;
492 static short pgrp_ours;
493 # else /* not def SHORT_PGRP */
495 static int pgrp_ours;
496 # endif /* not def SHORT_PGRP */
497 #else /* not def TIOCGPGRP */
498 diff -rc infrun.c infrun.c
499 *** infrun.c Tue Jun 23 21:49:22 1992
500 --- infrun.c Sat Jun 27 12:30:04 1992
504 Here we must get it up to actual execution of the real program. */
506 inferior_pid = pid; /* Needed for wait_for_inferior stuff below */
508 + cadillac_new_process();
510 clear_proceed_status ();
519 + cadillac_new_process();
520 push_target (&child_ops);
522 mark_breakpoints_out ();
523 diff -rc inftarg.c inftarg.c
524 *** inftarg.c Sun Mar 29 15:21:27 1992
525 --- inftarg.c Sat Jun 27 12:30:04 1992
529 pid = proc_wait (status);
531 ! pid = wait (status);
533 if (pid == -1) /* No more children to wait for */
537 pid = proc_wait (status);
540 ! pid = cadillac_wait (status);
542 ! pid = wait (status);
544 if (pid == -1) /* No more children to wait for */
546 diff -rc main.c main.c
547 *** main.c Mon Jun 8 23:09:23 1992
548 --- main.c Sat Jun 27 12:30:05 1992
552 char *corearg = NULL;
555 + char *cadillac_id = NULL;
557 /* Pointers to all arguments of +command option. */
562 {"tty", required_argument, 0, 't'},
563 {"baud", required_argument, 0, 'b'},
564 {"b", required_argument, 0, 'b'},
565 + {"context", required_argument, 0, 12},
566 /* Allow machine descriptions to add more options... */
567 #ifdef ADDITIONAL_OPTIONS
576 + cadillac_id = optarg;
585 do_cleanups (ALL_CLEANUPS);
588 + cadillac_initialize (cadillac_id, execarg);
592 && strcmp (execarg, symarg) == 0)
596 if (!setjmp (to_top_level))
597 symbol_file_command (symarg, 0);
600 do_cleanups (ALL_CLEANUPS);
602 /* After the symbol file has been read, print a newline to get us
605 if (!setjmp (to_top_level))
607 do_cleanups (ALL_CLEANUPS); /* Do complete cleanup */
609 quit_command ((char *)0, instream == stdin);
613 if (!setjmp (to_top_level))
615 do_cleanups (ALL_CLEANUPS); /* Do complete cleanup */
617 ! cadillac_main_loop();
620 quit_command ((char *)0, instream == stdin);
625 else if (c->function.cfunc == NO_FUNCTION)
626 error ("That is not a command, just a help topic.");
628 ! (*c->function.cfunc) (arg, from_tty & caution);
631 /* Tell the user if the language has changed (except first time). */
633 else if (c->function.cfunc == NO_FUNCTION)
634 error ("That is not a command, just a help topic.");
637 ! cadillac_call_command (c, arg, from_tty & caution);
639 ! (*c->function.cfunc) (arg, from_tty & caution);
642 /* Tell the user if the language has changed (except first time). */
648 ! p = command_line_input ((char *) NULL, instream == stdin);
650 /* Treat end of file like "end". */
657 ! p = cadillac_command_line_input();
659 ! p = command_line_input ((char *) NULL, instream == stdin);
661 /* Treat end of file like "end". */
668 ! printf ("%s", prompt);
676 ! printf_filtered ("%s", prompt);
680 diff -rc printcmd.c printcmd.c
681 *** printcmd.c Thu Jun 25 03:58:47 1992
682 --- printcmd.c Sat Jun 27 12:30:05 1992
687 int histindex = record_latest_value (val);
693 + sprintf(buf, "$%d", histindex);
694 + cadillac_start_variable_annotation(buf, NULL, VALUE_TYPE(val),
695 + VALUE_ADDRESS(val), "");
699 printf ("\031(gdb-makebuffer \"%s\" %d '(\"", exp, histindex);
704 if (histindex >= 0) printf_filtered ("$%d = ", histindex);
706 print_formatted (val, format, fmt.size);
708 + cadillac_end_variable_annotation();
709 printf_filtered ("\n");
715 standard indentation here is 4 spaces, and val_print indents
716 2 for each recurse. */
717 val = read_var_value (sym, FRAME_INFO_ID (fi));
720 + cadillac_start_variable_annotation(SYMBOL_NAME(sym), sym,
722 + VALUE_ADDRESS(val), "");
725 val_print (VALUE_TYPE (val), VALUE_CONTENTS (val), VALUE_ADDRESS (val),
726 stream, 0, 0, 2, Val_no_prettyprint);
728 fputs_filtered ("???", stream);
731 + cadillac_end_variable_annotation();
736 diff -rc stack.c stack.c
737 *** stack.c Sat Jun 20 16:30:33 1992
738 --- stack.c Sat Jun 27 12:30:06 1992
742 printf_filtered ("%s in ", local_hex_string(fi->pc));
744 ! fputs_demangled (fname, stdout, 0);
745 fputs_filtered (" (...)\n", stdout);
750 printf_filtered ("%s in ", local_hex_string(fi->pc));
753 ! cadillac_annotate_function(fname, 0, level);
755 ! fputs_demangled (fname, stdout, 0);
756 fputs_filtered (" (...)\n", stdout);
762 if (fi->pc != sal.pc || !sal.symtab)
763 printf_filtered ("%s in ", local_hex_string(fi->pc));
764 ! fputs_demangled (funname ? funname : "??", stdout, 0);
766 fputs_filtered (" (", stdout);
770 if (fi->pc != sal.pc || !sal.symtab)
771 printf_filtered ("%s in ", local_hex_string(fi->pc));
773 ! cadillac_annotate_function(funname ? funname : "??", 0, level);
775 ! fputs_demangled (funname ? funname : "??", stdout, 0);
777 fputs_filtered (" (", stdout);
782 if (addressprint && mid_statement)
783 printf_filtered ("%s\t", local_hex_string(fi->pc));
784 ! print_source_lines (sal.symtab, sal.line, sal.line + 1, 0);
786 current_source_line = max (sal.line - lines_to_list/2, 1);
790 if (addressprint && mid_statement)
791 printf_filtered ("%s\t", local_hex_string(fi->pc));
793 ! print_source_lines (sal.symtab, sal.line, sal.line + 1, 0);
795 current_source_line = max (sal.line - lines_to_list/2, 1);
801 printf_filtered (" in ");
802 ! fputs_demangled (funname, stdout, DMGL_ANSI | DMGL_PARAMS);
809 printf_filtered (" in ");
811 ! cadillac_annotate_function(funname, DMGL_ANSI | DMGL_PARAMS,
812 ! selected_frame_level);
814 ! fputs_demangled (funname, stdout, DMGL_ANSI | DMGL_PARAMS);
818 diff -rc symfile.c symfile.c
819 *** symfile.c Sat Jun 13 09:20:12 1992
820 --- symfile.c Sat Jun 27 12:30:06 1992
828 + cadillac_symbol_file(objfile);
833 diff -rc utils.c utils.c
834 *** utils.c Mon Jun 15 07:27:07 1992
835 --- utils.c Sat Jun 27 12:30:07 1992
840 char *error_pre_print;
841 char *warning_pre_print = "\nwarning: ";
844 /* Add a new cleanup to the cleanup_chain,
845 and return the previous chain pointer
850 /* Automatically answer "yes" if input is not from a terminal. */
851 ! if (!input_from_terminal_p ())
858 /* Automatically answer "yes" if input is not from a terminal. */
859 ! if (!input_from_terminal_p () && !cadillac)
867 ctlstr = va_arg (args, char *);
868 vfprintf_filtered (stdout, ctlstr, args);
870 printf_filtered ("(y or n) ");
872 ! answer = fgetc (stdin);
873 ! clearerr (stdin); /* in case of C-d */
874 ! if (answer == EOF) /* C-d */
876 ! if (answer != '\n') /* Eat rest of input line, to EOF or newline */
879 ! ans2 = fgetc (stdin);
882 ! while (ans2 != EOF && ans2 != '\n');
889 ctlstr = va_arg (args, char *);
891 + cadillac_query (ctlstr, args);
892 vfprintf_filtered (stdout, ctlstr, args);
893 printf_filtered ("(y or n) ");
898 ! buf = cadillac_command_line_input();
899 ! answer = buf ? *buf : 'Y';
900 ! cadillac_acknowledge_query(buf);
905 ! answer = fgetc (stdin);
906 ! clearerr (stdin); /* in case of C-d */
907 ! if (answer == EOF) /* C-d */
909 ! if (answer != '\n') /* Eat rest of input line, to EOF or newline */
912 ! ans2 = fgetc (stdin);
915 ! while (ans2 != EOF && ans2 != '\n');
925 printf_filtered ("Please answer y or n.\n");
938 + cadillac_fputs(linebuffer);
942 /* Don't do any filtering if it is disabled. */
944 || (lines_per_page == UINT_MAX && chars_per_line == UINT_MAX))
945 diff -rc valprint.c valprint.c
946 *** valprint.c Tue Jun 23 23:24:51 1992
947 --- valprint.c Sat Jun 27 12:30:07 1992
951 struct type **dont_print;
953 int i, len, n_baseclasses;
954 + char expr_tag[100]; /* Cadillac */
956 check_stub_type (type);
961 fprint_symbol (stream, TYPE_FIELD_NAME (type, i));
962 fputs_filtered (" = ", stream);
965 + sprintf(expr_tag, ".%s", TYPE_FIELD_NAME(type, i));
968 + cadillac_start_variable_annotation(expr_tag, NULL,
969 + TYPE_FIELD_TYPE(type, i),
970 + (CORE_ADDR) (valaddr + TYPE_FIELD_BITPOS(type, i) / 8),
972 if (TYPE_FIELD_PACKED (type, i))
978 valaddr + TYPE_FIELD_BITPOS (type, i) / 8,
979 0, stream, format, 0, recurse + 1, pretty);
982 + cadillac_end_variable_annotation();
990 /* Number of repetitions we have detected so far. */
992 + char expr_tag[100]; /* Cadillac */
1002 + sprintf(expr_tag, "[%d]", i);
1004 + cadillac_start_variable_annotation(expr_tag, NULL,
1006 + (CORE_ADDR) (valaddr + i * eltlen),
1008 if (reps > REPEAT_COUNT_THRESHOLD)
1010 val_print (elttype, valaddr + i * eltlen,
1014 recurse + 1, pretty);
1018 + cadillac_end_variable_annotation();
1021 fprintf_filtered (stream, "...");