From: jkb@mrc-lmb.CAm.ac.UK (James Bonfield)
Subject: (none)
Organization: GNUs Not Usenet
Distribution: gnu
Date: Wed, 2 Sep 1992 16:53:59 GMT

Hello,
	I've failed to get gdb-4.6 working correctly on a Decstation 5000 when
attempting to debug a program written in both C and FORTRAN. The following
script points out the problems I've been having. Sorry there is not more data
here, but I have not had time to analyse the problem myself.

	Cheers,

		James Bonfield


jkb@rutland[gnu/gdb-4.6]& ls
Makefile.in	config/		configure.man	libiberty/	texinfo/
README		config.sub*	gdb/		mmalloc/	typescript
bfd/		configure*	glob/		move-if-change*
cfg-paper.texi	configure.in	include/	readline/
jkb@rutland[gnu/gdb-4.6]& configure -v decstation
Created "Makefile" in /home3/jkb/common/src/gnu/gdb-4.6 using "config/mh-decstation"
Configuring autoconf...
Warning: source directory ./autoconf is missing.
Configuring libgcc...
Warning: source directory ./libgcc is missing.
Configuring mmalloc...
Created "Makefile" in /home3/jkb/common/src/gnu/gdb-4.6/mmalloc
Configuring libiberty...
Linked "alloca-conf.h" to "./alloca-norm.h".
Created "Makefile" in /home3/jkb/common/src/gnu/gdb-4.6/libiberty
Configuring bfd...
Linked "sysdep.h" to "./hosts/decstation.h".
Created "Makefile" in /home3/jkb/common/src/gnu/gdb-4.6/bfd using "config/decstation.mh" and "config/decstation.mt"
Configuring doc...
Created "Makefile" in /home3/jkb/common/src/gnu/gdb-4.6/bfd/doc
Configuring byacc...
Warning: source directory ./byacc is missing.
Configuring bison...
Warning: source directory ./bison is missing.
Configuring flex...
Warning: source directory ./flex is missing.
Configuring gcc...
Warning: source directory ./gcc is missing.
Configuring readline...
Linked "sysdep.h" to "./sysdep-norm.h".
Created "Makefile" in /home3/jkb/common/src/gnu/gdb-4.6/readline
Configuring glob...
Linked "sysdep.h" to "./sysdep-norm.h".
Created "Makefile" in /home3/jkb/common/src/gnu/gdb-4.6/glob
Configuring gdb...
Linked "xm.h" to "./xm-mips.h".
Linked "tm.h" to "./tm-mips.h".
Created "Makefile" in /home3/jkb/common/src/gnu/gdb-4.6/gdb using "config/decstation.mh" and "config/decstation.mt"
Configuring doc...
Linked "gdbinv-m.m4" to "./gdbinv-m.m4.in".
Linked "gdbinv-s.m4" to "./gdbinv-s.m4.in".
Created "Makefile" in /home3/jkb/common/src/gnu/gdb-4.6/gdb/doc
Configuring emacs...
Warning: source directory ./emacs is missing.
Configuring ispell...
Warning: source directory ./ispell is missing.
Configuring make...
Warning: source directory ./make is missing.
Configuring grep...
Warning: source directory ./grep is missing.
Configuring diff...
Warning: source directory ./diff is missing.
Configuring rcs...
Warning: source directory ./rcs is missing.
Configuring cvs...
Warning: source directory ./cvs is missing.
Configuring patch...
Warning: source directory ./patch is missing.
Configuring send_pr...
Warning: source directory ./send_pr is missing.
Configuring libg++...
Warning: source directory ./libg++ is missing.
Configuring newlib...
Warning: source directory ./newlib is missing.
Configuring gprof...
Warning: source directory ./gprof is missing.
Configuring gdbtest...
Warning: source directory ./gdbtest is missing.
jkb@rutland[gnu/gdb-4.6]& gmake
echo "# !Automatically generated from ./functions.def" "- DO NOT EDIT!" >needed2.awk
grep '^DEFVAR(' < ./functions.def | sed -e '/DEFVAR/s|DEFVAR.\([^,]*\).*|/\1/ { printf \"#ifndef NEED_\1\\n#define NEED_\1\\n#endif\\n" }|' >>needed2.awk
grep '^DEFFUNC(' < ./functions.def | sed -e '/DEFFUNC/s|DEFFUNC.\([^,]*\).*|/\1/ { printf \"#ifndef NEED_\1\\n#define NEED_\1\\n#endif\\n" }|' >>needed2.awk
cc -Wf,-XNg1000 -c -g -I. -I./../include  ./dummy.c
(cc -Wf,-XNg1000  dummy.o  ) >errors 2>&1 || true
rm -f a.out dummy.o
echo "/* !Automatically generated from ./functions.def" "- DO NOT EDIT! */" >config.h
awk -f needed2.awk <errors >>config.h
cc -Wf,-XNg1000 -c -g -I. -I./../include  basename.c
cc -Wf,-XNg1000 -c -g -I. -I./../include  getopt.c
cc -Wf,-XNg1000 -c -g -I. -I./../include  getopt1.c
cc -Wf,-XNg1000 -c -g -I. -I./../include  obstack.c
cc -Wf,-XNg1000 -c -g -I. -I./../include  spaces.c
cc -Wf,-XNg1000 -c -g -I. -I./../include  concat.c
cc -Wf,-XNg1000 -c -g -I. -I./../include  fdmatch.c
cc -Wf,-XNg1000 -c -g -I. -I./../include  argv.c
cc -Wf,-XNg1000 -c -g -I. -I./../include  strerror.c
cc -Wf,-XNg1000 -c -g -I. -I./../include  strsignal.c
echo "# !Automatically generated from ./functions.def" "- DO NOT EDIT!" >needed.awk
grep '^DEF(' < ./functions.def | sed -e '/DEF/s|DEF.\([^,]*\).*|/\1/ { printf \"\1\.o " }|' >>needed.awk
awk -f needed.awk <errors >needed-list
echo  >>needed-list
cc -Wf,-XNg1000 -c -g -I. -I./../include  strdup.c
rm -rf libiberty.a
ar qc libiberty.a basename.o getopt.o getopt1.o obstack.o spaces.o concat.o fdmatch.o argv.o strerror.o strsignal.o strdup.o 
ranlib libiberty.a
cc -Wf,-XNg1000 -c -g -I. -I./../include  mcalloc.c
cc -Wf,-XNg1000 -c -g -I. -I./../include  mfree.c
cc -Wf,-XNg1000 -c -g -I. -I./../include  mmalloc.c
cc -Wf,-XNg1000 -c -g -I. -I./../include  mmcheck.c
cc -Wf,-XNg1000 -c -g -I. -I./../include  mmemalign.c
cc -Wf,-XNg1000 -c -g -I. -I./../include  mmstats.c
cc -Wf,-XNg1000 -c -g -I. -I./../include  mmtrace.c
cc -Wf,-XNg1000 -c -g -I. -I./../include  mrealloc.c
cc -Wf,-XNg1000 -c -g -I. -I./../include  mvalloc.c
cc -Wf,-XNg1000 -c -g -I. -I./../include  mmap-sup.c
cc -Wf,-XNg1000 -c -g -I. -I./../include  attach.c
cc -Wf,-XNg1000 -c -g -I. -I./../include  detach.c
cc -Wf,-XNg1000 -c -g -I. -I./../include  keys.c
cc -Wf,-XNg1000 -c -g -I. -I./../include  sbrk-sup.c
rm -rf libmmalloc.a
ar qc libmmalloc.a mcalloc.o mfree.o mmalloc.o mmcheck.o mmemalign.o mmstats.o mmtrace.o mrealloc.o mvalloc.o mmap-sup.o attach.o detach.o keys.o sbrk-sup.o
ranlib libmmalloc.a
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  libbfd.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  opncls.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  bfd.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  archive.c
cc -Wf,-XNg1000 -g -c -DTRAD_CORE  -I. -I. -I./../include  -DMINIMIZE=0  targets.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  cache.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  archures.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  core.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  section.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  format.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  syms.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  reloc.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  init.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  ctor.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  seclet.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  oasys.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  ieee.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  srec.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  elf.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  stab-syms.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  aout64.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  aout32.c
ccom: Warning: ./aoutx.h, line 1581: Shift of 16 is > object size of 8
          r_index =  (bytes->r_index[0] << 16)
      ---------------------------------------^
ccom: Warning: ./aoutx.h, line 1588: Shift of 16 is > object size of 8
          r_index =  (bytes->r_index[2] << 16)
      ---------------------------------------^
ccom: Warning: ./aoutx.h, line 1618: Shift of 16 is > object size of 8
          r_index =  (bytes->r_index[0] << 16)
      ---------------------------------------^
ccom: Warning: ./aoutx.h, line 1629: Shift of 16 is > object size of 8
          r_index =  (bytes->r_index[2] << 16)
      ---------------------------------------^
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  demo64.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  sunos.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  newsos3.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  i386aout.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  bout.c
ccom: Warning: bout.c, line 415: Shift of 16 is > object size of 8
            symnum = (raw[4] << 16) | (raw[5] << 8) | raw[6];
      ----------------------------^
ccom: Warning: bout.c, line 419: Shift of 16 is > object size of 8
            symnum = (raw[6] << 16) | (raw[5] << 8) | raw[4];
      ----------------------------^
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  coff-i960.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  coff-a29k.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  coff-m68k.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  coff-i386.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  coff-m88k.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  coff-mips.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  coff-rs6000.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  coff-h8300.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  coff-msym.c
ccom: Warning: coff-msym.c, line 216: Shift of 12 is > object size of 8
      			| (ext->s_bits4[0] << 12);
      ------------------------------------------^
ccom: Warning: coff-msym.c, line 344: Shift of 12 is > object size of 8
      		  | (ext->r_bits[3] << 12);
      -----------------------------------^
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  hppa.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  i386linux.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  cpu-h8300.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  cpu-i960.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  cpu-sparc.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  cpu-m68k.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  cpu-m88k.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  cpu-vax.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  cpu-mips.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  cpu-a29k.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  cpu-i386.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  cpu-rs6000.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  cpu-hppa.c
cc -Wf,-XNg1000 -c -g -DTRAD_CORE  -I. -I. -I./../include  trad-core.c
rm -f libbfd.a
ar qc libbfd.a libbfd.o opncls.o bfd.o archive.o targets.o cache.o archures.o core.o section.o format.o syms.o reloc.o init.o ctor.o seclet.o oasys.o ieee.o srec.o elf.o stab-syms.o aout64.o aout32.o demo64.o sunos.o newsos3.o i386aout.o bout.o coff-i960.o coff-a29k.o coff-m68k.o coff-i386.o coff-m88k.o coff-mips.o coff-rs6000.o coff-h8300.o coff-msym.o hppa.o i386linux.o cpu-h8300.o cpu-i960.o cpu-sparc.o cpu-m68k.o cpu-m88k.o cpu-vax.o cpu-mips.o cpu-a29k.o cpu-i386.o cpu-rs6000.o cpu-hppa.o trad-core.o 

ranlib libbfd.a
gmake[3]: Nothing to be done for `all'.
cc -Wf,-XNg1000 -c -g    -I. -I./../  -DVOID_SIGHANDLER -DVI_MODE readline.c
cc -Wf,-XNg1000 -c -g    -I. -I./../  -DVOID_SIGHANDLER -DVI_MODE history.c
cc -Wf,-XNg1000 -c -g    -I. -I./../  -DVOID_SIGHANDLER -DVI_MODE funmap.c
cc -Wf,-XNg1000 -c -g    -I. -I./../  -DVOID_SIGHANDLER -DVI_MODE keymaps.c
cc -Wf,-XNg1000 -c -g    -I. -I./../  -DVOID_SIGHANDLER -DVI_MODE ./../glob/tilde.c
cc -Wf,-XNg1000 -c -g    -I. -I./../  -DVOID_SIGHANDLER -DVI_MODE vi_mode.c
rm -f libreadline.a
ar qc libreadline.a readline.o history.o funmap.o keymaps.o tilde.o vi_mode.o
ranlib libreadline.a
Glob doesn't make yet, but readline uses a piece of its src
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  main.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  blockframe.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  breakpoint.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  findvar.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  stack.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  source.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  values.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  eval.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  valops.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  valarith.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  valprint.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  printcmd.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  symtab.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  symfile.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  symmisc.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  infcmd.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  infrun.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  remote.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  command.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  utils.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  expprint.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  environ.c
echo 'char *version = "4.6";' >version.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  version.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  gdbtypes.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  copying.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  mips-pinsn.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  mips-tdep.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  exec.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  infptrace.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  mips-xdep.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  coredep.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  -DDEMANGLING_STYLE="gnu" `echo ./cplus-dem.c | sed 's,^\./,,'`
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  mem-break.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  target.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  inftarg.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  ieee-float.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  putenv.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  parse.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  language.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  c-exp.tab.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  m2-exp.tab.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  buildsym.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  objfiles.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  minsyms.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  maint.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  demangle.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  -I./../bfd ./dbxread.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  -I./../bfd ./coffread.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  -I./../bfd ./elfread.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  -I./../bfd ./dwarfread.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  -I./../bfd ./xcoffread.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  -I./../bfd ./mipsread.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  core.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  inflow.c
./munch  main.o blockframe.o breakpoint.o findvar.o stack.o source.o values.o eval.o valops.o valarith.o valprint.o printcmd.o symtab.o symfile.o symmisc.o infcmd.o infrun.o remote.o command.o utils.o expprint.o environ.o version.o gdbtypes.o copying.o mips-pinsn.o mips-tdep.o exec.o infptrace.o mips-xdep.o coredep.o cplus-dem.o mem-break.o target.o inftarg.o ieee-float.o putenv.o parse.o language.o c-exp.tab.o m2-exp.tab.o buildsym.o objfiles.o minsyms.o maint.o demangle.o dbxread.o coffread.o elfread.o 
dwarfread.o xcoffread.o mipsread.o core.o inflow.o > init.c
cc -Wf,-XNg1000 -c -g      -I. -I. -I./../include -I./../readline  init.c
cc -Wf,-XNg1000    -o gdb init.o main.o blockframe.o breakpoint.o findvar.o stack.o source.o values.o eval.o valops.o valarith.o valprint.o printcmd.o symtab.o symfile.o symmisc.o infcmd.o infrun.o remote.o command.o utils.o expprint.o environ.o version.o gdbtypes.o copying.o mips-pinsn.o mips-tdep.o exec.o infptrace.o mips-xdep.o coredep.o cplus-dem.o mem-break.o target.o inftarg.o ieee-float.o putenv.o parse.o language.o c-exp.tab.o m2-exp.tab.o buildsym.o objfiles.o minsyms.o maint.o demangle.o dbxread.
o coffread.o elfread.o dwarfread.o xcoffread.o mipsread.o core.o inflow.o     ./../bfd/libbfd.a  ./../readline/libreadline.a -ltermcap ./../mmalloc/libmmalloc.a ./../libiberty/libiberty.a   
gmake prefix=/usr/local exec_prefix=/usr/local tooldir=/usr/local/lib AR=ar AR_FLAGS=qc CC=cc\ -Wf,-XNg1000 CFLAGS=-g RANLIB=ranlib LOADLIBES= LDFLAGS= BISON=byacc LEX=flex MAKEINFO=makeinfo INSTALL=install\ -c INSTALL_DATA=install\ -c INSTALL_PROGRAM=install\ -c subdir_do DO=all "DODIRS=doc"
gmake[3]: Nothing to be done for `all'.
jkb@rutland[gnu/gdb-4.6]& cd gdb/
jkb@rutland[gdb-4.6/gdb]& cp $(type -p xbap) .
jkb@rutland[gdb-4.6/gdb]& ./gdb xbap
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.6, Copyright 1992 Free Software Foundation, Inc...
Setting up the environment for debugging gdb.
Function "fatal" not defined.
(gdb) run
Starting program: /home3/jkb/common/src/gnu/gdb-4.6/gdb/xbap 
During symbol reading, size of array target type not known, assuming 4 bits.
Segmentation fault
jkb@rutland[gdb-4.6/gdb]& ./gdb gdb
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.6, Copyright 1992 Free Software Foundation, Inc...
Setting up the environment for debugging gdb.
During symbol reading, stEnd with storage class 1 not handled.
During symbol reading, declaration block contains unhandled symbol type 10.
During symbol reading, guessed tag type of struct bfd_error_vector incorrectly.
Breakpoint 1 at 0x43743c: file utils.c, line 279.
Breakpoint 2 at 0x4026dc: file main.c, line 1658.
(top-gdb) run xbap
Starting program: /home3/jkb/common/src/gnu/gdb-4.6/gdb/gdb xbap
Cannot insert breakpoint 1:
The same program may be running in another process.
Cannot access memory at address 0x43743c.
(top-gdb) delete 1
(top-gdb) delete 2
(top-gdb) run xbap
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /home3/jkb/common/src/gnu/gdb-4.6/gdb/gdb xbap
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.6, Copyright 1992 Free Software Foundation, Inc...
Setting up the environment for debugging gdb.
Function "fatal" not defined.
(gdb) run
Starting program: /home3/jkb/common/src/gnu/gdb-4.6/gdb/xbap 
During symbol reading, size of array target type not known, assuming 4 bits.

Program received signal 11, Segmentation fault
ecoff_swap_tir_in (bigend=0, ext_copy=0x104f3f74, intern=0x7fff9c9c)
    at coff-msym.c:270
270	  *ext = *ext_copy;		/* Make it reasonable to do in-place.  */
(top-gdb) bt
#0  ecoff_swap_tir_in (bigend=0, ext_copy=0x104f3f74, intern=0x7fff9c9c)
    at coff-msym.c:270
#1  0x46ed48 in parse_type (ax=0x104f3f74, bs=0x0, bigend=0)
    at ./mipsread.c:1383
#2  0x46db8c in parse_symbol (sh=0x100ad104, ax=0x100f3f78, bigend=0)
    at ./mipsread.c:987
#3  0x474b48 in psymtab_to_symtab_1 (pst=0x1016f200, 
    filename=0x1016f258 "../dbsysnew.f") at ./mipsread.c:2465
#4  0x4743b8 in psymtab_to_symtab_1 (pst=0x1016f098, 
    filename=0x1016f1d8 "../bap.f") at ./mipsread.c:2332
#5  0x4743b8 in psymtab_to_symtab_1 (pst=0x1016f010, 
    filename=0x1016f050 "./crt0.s") at ./mipsread.c:2332
#6  0x46c6a8 in mipscoff_psymtab_to_symtab (pst=0x1016f010) at ./mipsread.c:418
#7  0x42bcf0 in psymtab_to_symtab (pst=0x1016f010) at symfile.c:303
#8  0x426be0 in find_pc_symtab (pc=4194704) at symtab.c:992
#9  0x404ca8 in blockvector_for_pc (pc=4194704, pindex=0x7fffa020)
    at blockframe.c:441
#10 0x404e0c in block_for_pc (pc=4194704) at blockframe.c:491
#11 0x43f708 in find_proc_desc (pc=4194704, next_frame=0x0) at mips-tdep.c:232
#12 0x43fa28 in init_extra_frame_info (fci=0x1004a010) at mips-tdep.c:310
#13 0x4043c8 in create_new_frame (addr=0, pc=4194704) at blockframe.c:128
#14 0x431864 in wait_for_inferior () at infrun.c:862
#15 0x4314c8 in child_create_inferior (
---Type <return> to continue---
    exec_file=0x10054b48 "/home3/jkb/common/src/gnu/gdb-4.6/gdb/xbap", 
    allargs=0x10048fd8 "", env=0x10050008) at infrun.c:645
#16 0x42f45c in run_command (args=0x0, from_tty=1) at infcmd.c:244
#17 0x401364 in execute_command (p=0x1004900b "", from_tty=1) at main.c:915
#18 0x401580 in command_loop () at main.c:976
#19 0x401114 in main (argc=2, argv=0x7fffa374) at main.c:853
(top-gdb) quit
The program is running.  Quit anyway? (y or n) y
jkb@rutland[gdb-4.6/gdb]& exit
script done on Wed Sep  2 14:43:54 1992

Newsgroups: gnu.gdb.bug