aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2020-12-31 18:36:55 +0000
committerEd Maste <emaste@FreeBSD.org>2020-12-31 18:41:17 +0000
commitf492599d7bc48b64bf039c5a61295a31fb6887da (patch)
treece0e314ad26550a29acd483530fcf2b000e40966 /contrib
parent1fc421287d5ddbcfba99412cf968ee3490383fe7 (diff)
downloadsrc-f492599d7bc48b64bf039c5a61295a31fb6887da.tar.gz
src-f492599d7bc48b64bf039c5a61295a31fb6887da.zip
Remove unused contrib/gdb
As of 1c0ea326aa6d in-tree gdb is not used. Clean up the contrib directory. Reported by: kib Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'contrib')
-rw-r--r--contrib/gdb/COPYING340
-rw-r--r--contrib/gdb/COPYING.LIB482
-rw-r--r--contrib/gdb/FREEBSD-Xlist77
-rw-r--r--contrib/gdb/FREEBSD-diffs965
-rw-r--r--contrib/gdb/FREEBSD-upgrade9
-rw-r--r--contrib/gdb/README47
-rw-r--r--contrib/gdb/config-ml.in877
-rw-r--r--contrib/gdb/djunpack.bat52
-rw-r--r--contrib/gdb/gdb/CONTRIBUTE143
-rw-r--r--contrib/gdb/gdb/COPYING340
-rw-r--r--contrib/gdb/gdb/MAINTAINERS445
-rw-r--r--contrib/gdb/gdb/NEWS2504
-rw-r--r--contrib/gdb/gdb/PROBLEMS113
-rw-r--r--contrib/gdb/gdb/README573
-rw-r--r--contrib/gdb/gdb/TODO333
-rw-r--r--contrib/gdb/gdb/abug-rom.c182
-rw-r--r--contrib/gdb/gdb/acinclude.m4998
-rw-r--r--contrib/gdb/gdb/aclocal.m41040
-rw-r--r--contrib/gdb/gdb/ada-exp.c2642
-rw-r--r--contrib/gdb/gdb/ada-exp.y969
-rw-r--r--contrib/gdb/gdb/ada-lang.c8254
-rw-r--r--contrib/gdb/gdb/ada-lang.h392
-rw-r--r--contrib/gdb/gdb/ada-lex.l928
-rw-r--r--contrib/gdb/gdb/ada-tasks.c819
-rw-r--r--contrib/gdb/gdb/ada-typeprint.c852
-rw-r--r--contrib/gdb/gdb/ada-valprint.c987
-rw-r--r--contrib/gdb/gdb/alpha-mdebug-tdep.c386
-rw-r--r--contrib/gdb/gdb/alpha-nat.c272
-rw-r--r--contrib/gdb/gdb/alpha-tdep.c1615
-rw-r--r--contrib/gdb/gdb/alpha-tdep.h110
-rw-r--r--contrib/gdb/gdb/alphabsd-nat.c151
-rw-r--r--contrib/gdb/gdb/alphabsd-tdep.c55
-rw-r--r--contrib/gdb/gdb/alphabsd-tdep.h33
-rw-r--r--contrib/gdb/gdb/alphafbsd-tdep.c124
-rw-r--r--contrib/gdb/gdb/alphanbsd-tdep.c234
-rw-r--r--contrib/gdb/gdb/amd64-nat.c163
-rw-r--r--contrib/gdb/gdb/amd64-nat.h53
-rw-r--r--contrib/gdb/gdb/amd64-tdep.c1199
-rw-r--r--contrib/gdb/gdb/amd64-tdep.h93
-rw-r--r--contrib/gdb/gdb/amd64bsd-nat.c107
-rw-r--r--contrib/gdb/gdb/amd64fbsd-nat.c235
-rw-r--r--contrib/gdb/gdb/amd64fbsd-tdep.c155
-rw-r--r--contrib/gdb/gdb/amd64nbsd-nat.c68
-rw-r--r--contrib/gdb/gdb/amd64nbsd-tdep.c135
-rw-r--r--contrib/gdb/gdb/amd64obsd-nat.c68
-rw-r--r--contrib/gdb/gdb/amd64obsd-tdep.c224
-rw-r--r--contrib/gdb/gdb/annotate.c585
-rw-r--r--contrib/gdb/gdb/annotate.h106
-rw-r--r--contrib/gdb/gdb/arch-utils.c754
-rw-r--r--contrib/gdb/gdb/arch-utils.h167
-rw-r--r--contrib/gdb/gdb/arm-tdep.c3000
-rw-r--r--contrib/gdb/gdb/arm-tdep.h149
-rw-r--r--contrib/gdb/gdb/armnbsd-nat.c464
-rw-r--r--contrib/gdb/gdb/armnbsd-tdep.c105
-rw-r--r--contrib/gdb/gdb/auxv.c300
-rw-r--r--contrib/gdb/gdb/auxv.h75
-rw-r--r--contrib/gdb/gdb/ax-gdb.c1846
-rw-r--r--contrib/gdb/gdb/ax-gdb.h113
-rw-r--r--contrib/gdb/gdb/ax-general.c542
-rw-r--r--contrib/gdb/gdb/ax.h292
-rw-r--r--contrib/gdb/gdb/bcache.c439
-rw-r--r--contrib/gdb/gdb/bcache.h170
-rw-r--r--contrib/gdb/gdb/bfd-target.c131
-rw-r--r--contrib/gdb/gdb/bfd-target.h39
-rw-r--r--contrib/gdb/gdb/block.c295
-rw-r--r--contrib/gdb/gdb/block.h174
-rw-r--r--contrib/gdb/gdb/blockframe.c643
-rw-r--r--contrib/gdb/gdb/breakpoint.c8101
-rw-r--r--contrib/gdb/gdb/breakpoint.h805
-rw-r--r--contrib/gdb/gdb/buildsym.c1151
-rw-r--r--contrib/gdb/gdb/buildsym.h293
-rw-r--r--contrib/gdb/gdb/c-exp.c3443
-rw-r--r--contrib/gdb/gdb/c-exp.y1811
-rw-r--r--contrib/gdb/gdb/c-lang.c713
-rw-r--r--contrib/gdb/gdb/c-lang.h91
-rw-r--r--contrib/gdb/gdb/c-typeprint.c1212
-rw-r--r--contrib/gdb/gdb/c-valprint.c598
-rw-r--r--contrib/gdb/gdb/call-cmds.h35
-rw-r--r--contrib/gdb/gdb/charset.c1277
-rw-r--r--contrib/gdb/gdb/charset.h109
-rw-r--r--contrib/gdb/gdb/cli-out.c405
-rw-r--r--contrib/gdb/gdb/cli-out.h32
-rw-r--r--contrib/gdb/gdb/cli/cli-cmds.c1287
-rw-r--r--contrib/gdb/gdb/cli/cli-cmds.h125
-rw-r--r--contrib/gdb/gdb/cli/cli-decode.c1546
-rw-r--r--contrib/gdb/gdb/cli/cli-decode.h323
-rw-r--r--contrib/gdb/gdb/cli/cli-dump.c796
-rw-r--r--contrib/gdb/gdb/cli/cli-dump.h40
-rw-r--r--contrib/gdb/gdb/cli/cli-interp.c157
-rw-r--r--contrib/gdb/gdb/cli/cli-logging.c205
-rw-r--r--contrib/gdb/gdb/cli/cli-script.c1304
-rw-r--r--contrib/gdb/gdb/cli/cli-script.h56
-rw-r--r--contrib/gdb/gdb/cli/cli-setshow.c386
-rw-r--r--contrib/gdb/gdb/cli/cli-setshow.h38
-rw-r--r--contrib/gdb/gdb/cli/cli-utils.c21
-rw-r--r--contrib/gdb/gdb/cli/cli-utils.h22
-rw-r--r--contrib/gdb/gdb/coff-pe-read.c346
-rw-r--r--contrib/gdb/gdb/coff-pe-read.h32
-rw-r--r--contrib/gdb/gdb/coff-solib.c134
-rw-r--r--contrib/gdb/gdb/coff-solib.h186
-rw-r--r--contrib/gdb/gdb/coffread.c2140
-rw-r--r--contrib/gdb/gdb/command.h299
-rw-r--r--contrib/gdb/gdb/complaints.c321
-rw-r--r--contrib/gdb/gdb/complaints.h53
-rw-r--r--contrib/gdb/gdb/completer.c728
-rw-r--r--contrib/gdb/gdb/completer.h42
-rw-r--r--contrib/gdb/gdb/config/alpha/alpha-osf2.mh6
-rw-r--r--contrib/gdb/gdb/config/alpha/alpha-osf3.mh6
-rw-r--r--contrib/gdb/gdb/config/alpha/alpha.mt2
-rw-r--r--contrib/gdb/gdb/config/alpha/fbsd.mh5
-rw-r--r--contrib/gdb/gdb/config/alpha/fbsd.mt3
-rw-r--r--contrib/gdb/gdb/config/alpha/nbsd.mh4
-rw-r--r--contrib/gdb/gdb/config/alpha/nbsd.mt4
-rw-r--r--contrib/gdb/gdb/config/alpha/nm-fbsd.h43
-rw-r--r--contrib/gdb/gdb/config/alpha/nm-nbsd.h31
-rw-r--r--contrib/gdb/gdb/config/alpha/nm-osf.h50
-rw-r--r--contrib/gdb/gdb/config/alpha/nm-osf2.h52
-rw-r--r--contrib/gdb/gdb/config/alpha/nm-osf3.h27
-rw-r--r--contrib/gdb/gdb/config/alpha/tm-alpha.h74
-rw-r--r--contrib/gdb/gdb/config/alpha/tm-fbsd.h27
-rw-r--r--contrib/gdb/gdb/config/alpha/tm-nbsd.h28
-rw-r--r--contrib/gdb/gdb/config/alpha/xm-alphaosf.h24
-rw-r--r--contrib/gdb/gdb/config/arm/embed.mt7
-rw-r--r--contrib/gdb/gdb/config/arm/nbsd.mt3
-rw-r--r--contrib/gdb/gdb/config/arm/nbsdaout.mh5
-rw-r--r--contrib/gdb/gdb/config/arm/nbsdelf.mh4
-rw-r--r--contrib/gdb/gdb/config/arm/nm-nbsd.h27
-rw-r--r--contrib/gdb/gdb/config/arm/nm-nbsdaout.h29
-rw-r--r--contrib/gdb/gdb/config/arm/tm-arm.h32
-rw-r--r--contrib/gdb/gdb/config/arm/tm-embed.h52
-rw-r--r--contrib/gdb/gdb/config/arm/tm-nbsd.h26
-rw-r--r--contrib/gdb/gdb/config/arm/tm-wince.h34
-rw-r--r--contrib/gdb/gdb/config/arm/wince.mt5
-rw-r--r--contrib/gdb/gdb/config/arm/xm-nbsd.h22
-rw-r--r--contrib/gdb/gdb/config/i386/embed.mt3
-rw-r--r--contrib/gdb/gdb/config/i386/fbsd.mh5
-rw-r--r--contrib/gdb/gdb/config/i386/fbsd.mt4
-rw-r--r--contrib/gdb/gdb/config/i386/fbsd64.mh5
-rw-r--r--contrib/gdb/gdb/config/i386/fbsd64.mt5
-rw-r--r--contrib/gdb/gdb/config/i386/go32.mh13
-rw-r--r--contrib/gdb/gdb/config/i386/go32.mt3
-rw-r--r--contrib/gdb/gdb/config/i386/i386aout.mt3
-rw-r--r--contrib/gdb/gdb/config/i386/i386gnu.mh33
-rw-r--r--contrib/gdb/gdb/config/i386/i386gnu.mt3
-rw-r--r--contrib/gdb/gdb/config/i386/i386lynx.mh6
-rw-r--r--contrib/gdb/gdb/config/i386/i386lynx.mt3
-rw-r--r--contrib/gdb/gdb/config/i386/i386nw.mt3
-rw-r--r--contrib/gdb/gdb/config/i386/i386sco.mh12
-rw-r--r--contrib/gdb/gdb/config/i386/i386sco4.mh11
-rw-r--r--contrib/gdb/gdb/config/i386/i386sco5.mh16
-rw-r--r--contrib/gdb/gdb/config/i386/i386sol2.mh8
-rw-r--r--contrib/gdb/gdb/config/i386/i386sol2.mt3
-rw-r--r--contrib/gdb/gdb/config/i386/i386v.mh7
-rw-r--r--contrib/gdb/gdb/config/i386/i386v.mt3
-rw-r--r--contrib/gdb/gdb/config/i386/i386v4.mh10
-rw-r--r--contrib/gdb/gdb/config/i386/i386v42mp.mh20
-rw-r--r--contrib/gdb/gdb/config/i386/nbsd.mt4
-rw-r--r--contrib/gdb/gdb/config/i386/nbsd64.mh5
-rw-r--r--contrib/gdb/gdb/config/i386/nbsd64.mt4
-rw-r--r--contrib/gdb/gdb/config/i386/nbsdaout.mh5
-rw-r--r--contrib/gdb/gdb/config/i386/nbsdelf.mh4
-rw-r--r--contrib/gdb/gdb/config/i386/ncr3000.mh16
-rw-r--r--contrib/gdb/gdb/config/i386/ncr3000.mt3
-rw-r--r--contrib/gdb/gdb/config/i386/nm-fbsd.h148
-rw-r--r--contrib/gdb/gdb/config/i386/nm-fbsd64.h37
-rw-r--r--contrib/gdb/gdb/config/i386/nm-go32.h36
-rw-r--r--contrib/gdb/gdb/config/i386/nm-i386.h122
-rw-r--r--contrib/gdb/gdb/config/i386/nm-i386gnu.h38
-rw-r--r--contrib/gdb/gdb/config/i386/nm-i386lynx.h26
-rw-r--r--contrib/gdb/gdb/config/i386/nm-i386sco.h33
-rw-r--r--contrib/gdb/gdb/config/i386/nm-i386sco4.h33
-rw-r--r--contrib/gdb/gdb/config/i386/nm-i386sco5.h78
-rw-r--r--contrib/gdb/gdb/config/i386/nm-i386sol2.h61
-rw-r--r--contrib/gdb/gdb/config/i386/nm-i386v.h44
-rw-r--r--contrib/gdb/gdb/config/i386/nm-i386v4.h26
-rw-r--r--contrib/gdb/gdb/config/i386/nm-i386v42mp.h92
-rw-r--r--contrib/gdb/gdb/config/i386/nm-nbsd.h29
-rw-r--r--contrib/gdb/gdb/config/i386/nm-nbsdaout.h31
-rw-r--r--contrib/gdb/gdb/config/i386/nm-nto.h6
-rw-r--r--contrib/gdb/gdb/config/i386/nm-obsd.h112
-rw-r--r--contrib/gdb/gdb/config/i386/nto.mh7
-rw-r--r--contrib/gdb/gdb/config/i386/nto.mt4
-rw-r--r--contrib/gdb/gdb/config/i386/obsd.mh4
-rw-r--r--contrib/gdb/gdb/config/i386/obsd.mt4
-rw-r--r--contrib/gdb/gdb/config/i386/obsd64.mh5
-rw-r--r--contrib/gdb/gdb/config/i386/obsd64.mt5
-rw-r--r--contrib/gdb/gdb/config/i386/obsdaout.mh5
-rw-r--r--contrib/gdb/gdb/config/i386/tm-fbsd.h31
-rw-r--r--contrib/gdb/gdb/config/i386/tm-go32.h28
-rw-r--r--contrib/gdb/gdb/config/i386/tm-i386.h25
-rw-r--r--contrib/gdb/gdb/config/i386/tm-i386lynx.h29
-rw-r--r--contrib/gdb/gdb/config/i386/tm-i386sol2.h34
-rw-r--r--contrib/gdb/gdb/config/i386/tm-nbsd.h27
-rw-r--r--contrib/gdb/gdb/config/i386/tm-nto.h33
-rw-r--r--contrib/gdb/gdb/config/i386/tm-vxworks.h28
-rw-r--r--contrib/gdb/gdb/config/i386/vxworks.mt3
-rw-r--r--contrib/gdb/gdb/config/i386/xm-go32.h26
-rw-r--r--contrib/gdb/gdb/config/i386/xm-i386.h31
-rw-r--r--contrib/gdb/gdb/config/i386/xm-i386sco.h31
-rw-r--r--contrib/gdb/gdb/config/i386/xm-i386v.h43
-rw-r--r--contrib/gdb/gdb/config/i386/xm-i386v4.h28
-rw-r--r--contrib/gdb/gdb/config/i386/xm-nbsd.h25
-rw-r--r--contrib/gdb/gdb/config/ia64/fbsd.mh3
-rw-r--r--contrib/gdb/gdb/config/ia64/fbsd.mt2
-rw-r--r--contrib/gdb/gdb/config/ia64/ia64.mt2
-rw-r--r--contrib/gdb/gdb/config/ia64/nm-fbsd.h24
-rw-r--r--contrib/gdb/gdb/config/ia64/tm-fbsd.h34
-rw-r--r--contrib/gdb/gdb/config/ia64/tm-ia64.h201
-rw-r--r--contrib/gdb/gdb/config/mips/decstation.mh4
-rw-r--r--contrib/gdb/gdb/config/mips/embed.mt4
-rw-r--r--contrib/gdb/gdb/config/mips/littlemips.mh3
-rw-r--r--contrib/gdb/gdb/config/mips/mipsv4.mh6
-rw-r--r--contrib/gdb/gdb/config/mips/mipsv4.mt3
-rw-r--r--contrib/gdb/gdb/config/mips/nbsd.mh4
-rw-r--r--contrib/gdb/gdb/config/mips/nbsd.mt7
-rw-r--r--contrib/gdb/gdb/config/mips/news-mips.mh3
-rw-r--r--contrib/gdb/gdb/config/mips/nm-fbsd.h48
-rw-r--r--contrib/gdb/gdb/config/mips/nm-mips.h34
-rw-r--r--contrib/gdb/gdb/config/mips/nm-nbsd.h28
-rw-r--r--contrib/gdb/gdb/config/mips/nm-news-mips.h43
-rw-r--r--contrib/gdb/gdb/config/mips/nm-riscos.h60
-rw-r--r--contrib/gdb/gdb/config/mips/riscos.mh16
-rw-r--r--contrib/gdb/gdb/config/mips/tm-fbsd.h43
-rw-r--r--contrib/gdb/gdb/config/mips/tm-mips.h119
-rw-r--r--contrib/gdb/gdb/config/mips/tm-mipsv4.h37
-rw-r--r--contrib/gdb/gdb/config/mips/tm-nbsd.h37
-rw-r--r--contrib/gdb/gdb/config/mips/tm-vxmips.h23
-rw-r--r--contrib/gdb/gdb/config/mips/tm-wince.h33
-rw-r--r--contrib/gdb/gdb/config/mips/vxmips.mt3
-rw-r--r--contrib/gdb/gdb/config/mips/wince.mt5
-rw-r--r--contrib/gdb/gdb/config/mips/xm-mips.h59
-rw-r--r--contrib/gdb/gdb/config/mips/xm-mipsv4.h22
-rw-r--r--contrib/gdb/gdb/config/mips/xm-riscos.h25
-rw-r--r--contrib/gdb/gdb/config/nm-gnu.h43
-rw-r--r--contrib/gdb/gdb/config/nm-lynx.h86
-rw-r--r--contrib/gdb/gdb/config/nm-nbsd.h27
-rw-r--r--contrib/gdb/gdb/config/nm-nbsdaout.h72
-rw-r--r--contrib/gdb/gdb/config/nm-sysv4.h34
-rw-r--r--contrib/gdb/gdb/config/powerpc/fbsd.mh5
-rw-r--r--contrib/gdb/gdb/config/powerpc/fbsd.mt4
-rw-r--r--contrib/gdb/gdb/config/powerpc/nbsd.mh3
-rw-r--r--contrib/gdb/gdb/config/powerpc/nbsd.mt7
-rw-r--r--contrib/gdb/gdb/config/powerpc/nm-fbsd.h18
-rw-r--r--contrib/gdb/gdb/config/powerpc/nm-nbsd.h27
-rw-r--r--contrib/gdb/gdb/config/powerpc/ppc-eabi.mt3
-rw-r--r--contrib/gdb/gdb/config/powerpc/ppc-sim.mt6
-rw-r--r--contrib/gdb/gdb/config/powerpc/tm-nbsd.h26
-rw-r--r--contrib/gdb/gdb/config/powerpc/tm-ppc-eabi.h40
-rw-r--r--contrib/gdb/gdb/config/powerpc/tm-ppcle-eabi.h28
-rw-r--r--contrib/gdb/gdb/config/powerpc/tm-ppcle-sim.h26
-rw-r--r--contrib/gdb/gdb/config/powerpc/tm-vxworks.h28
-rw-r--r--contrib/gdb/gdb/config/powerpc/vxworks.mt3
-rw-r--r--contrib/gdb/gdb/config/rs6000/nm-rs6000.h69
-rw-r--r--contrib/gdb/gdb/config/rs6000/nm-rs6000ly.h26
-rw-r--r--contrib/gdb/gdb/config/rs6000/rs6000.mh11
-rw-r--r--contrib/gdb/gdb/config/rs6000/rs6000.mt3
-rw-r--r--contrib/gdb/gdb/config/rs6000/rs6000lynx.mh6
-rw-r--r--contrib/gdb/gdb/config/rs6000/rs6000lynx.mt3
-rw-r--r--contrib/gdb/gdb/config/rs6000/tm-rs6000.h103
-rw-r--r--contrib/gdb/gdb/config/rs6000/tm-rs6000ly.h31
-rw-r--r--contrib/gdb/gdb/config/rs6000/xm-rs6000.h94
-rw-r--r--contrib/gdb/gdb/config/s390/s390.mh5
-rw-r--r--contrib/gdb/gdb/config/s390/s390.mt5
-rw-r--r--contrib/gdb/gdb/config/sparc/fbsd.mh5
-rw-r--r--contrib/gdb/gdb/config/sparc/fbsd.mt3
-rw-r--r--contrib/gdb/gdb/config/sparc/nbsd.mt4
-rw-r--r--contrib/gdb/gdb/config/sparc/nbsd64.mh4
-rw-r--r--contrib/gdb/gdb/config/sparc/nbsd64.mt5
-rw-r--r--contrib/gdb/gdb/config/sparc/nbsdaout.mh4
-rw-r--r--contrib/gdb/gdb/config/sparc/nbsdelf.mh4
-rw-r--r--contrib/gdb/gdb/config/sparc/nm-fbsd.h39
-rw-r--r--contrib/gdb/gdb/config/sparc/nm-nbsd.h42
-rw-r--r--contrib/gdb/gdb/config/sparc/nm-nbsdaout.h30
-rw-r--r--contrib/gdb/gdb/config/sparc/nm-sol2.h65
-rw-r--r--contrib/gdb/gdb/config/sparc/obsd.mt4
-rw-r--r--contrib/gdb/gdb/config/sparc/obsd64.mt5
-rw-r--r--contrib/gdb/gdb/config/sparc/sol2-64.mt3
-rw-r--r--contrib/gdb/gdb/config/sparc/sol2.mh6
-rw-r--r--contrib/gdb/gdb/config/sparc/sol2.mt3
-rw-r--r--contrib/gdb/gdb/config/sparc/sparc.mt2
-rw-r--r--contrib/gdb/gdb/config/sparc/sparc64.mt2
-rw-r--r--contrib/gdb/gdb/config/sparc/tm-fbsd.h27
-rw-r--r--contrib/gdb/gdb/config/sparc/tm-nbsd.h30
-rw-r--r--contrib/gdb/gdb/config/sparc/tm-nbsd64.h27
-rw-r--r--contrib/gdb/gdb/config/sparc/tm-sol2.h40
-rw-r--r--contrib/gdb/gdb/config/sparc/tm-vxworks.h31
-rw-r--r--contrib/gdb/gdb/config/sparc/vxworks.mt4
-rw-r--r--contrib/gdb/gdb/config/tm-lynx.h32
-rw-r--r--contrib/gdb/gdb/config/tm-nto.h61
-rw-r--r--contrib/gdb/gdb/config/tm-sunos.h32
-rw-r--r--contrib/gdb/gdb/config/tm-sysv4.h37
-rw-r--r--contrib/gdb/gdb/config/tm-vxworks.h23
-rw-r--r--contrib/gdb/gdb/config/xm-nbsd.h26
-rw-r--r--contrib/gdb/gdb/config/xm-sysv4.h29
-rw-r--r--contrib/gdb/gdb/copying.awk77
-rw-r--r--contrib/gdb/gdb/copying.c323
-rw-r--r--contrib/gdb/gdb/core-aout.c146
-rw-r--r--contrib/gdb/gdb/core-regset.c119
-rw-r--r--contrib/gdb/gdb/corefile.c458
-rw-r--r--contrib/gdb/gdb/corelow.c655
-rw-r--r--contrib/gdb/gdb/cp-abi.c252
-rw-r--r--contrib/gdb/gdb/cp-abi.h172
-rw-r--r--contrib/gdb/gdb/cp-namespace.c871
-rw-r--r--contrib/gdb/gdb/cp-support.c757
-rw-r--r--contrib/gdb/gdb/cp-support.h120
-rw-r--r--contrib/gdb/gdb/cp-valprint.c836
-rw-r--r--contrib/gdb/gdb/cpu32bug-rom.c180
-rw-r--r--contrib/gdb/gdb/dbug-rom.c178
-rw-r--r--contrib/gdb/gdb/dbxread.c3577
-rw-r--r--contrib/gdb/gdb/dcache.c604
-rw-r--r--contrib/gdb/gdb/dcache.h43
-rw-r--r--contrib/gdb/gdb/defs.h1335
-rw-r--r--contrib/gdb/gdb/delta68-nat.c90
-rw-r--r--contrib/gdb/gdb/demangle.c203
-rw-r--r--contrib/gdb/gdb/dictionary.c836
-rw-r--r--contrib/gdb/gdb/dictionary.h156
-rw-r--r--contrib/gdb/gdb/dink32-rom.c178
-rw-r--r--contrib/gdb/gdb/disasm.c395
-rw-r--r--contrib/gdb/gdb/disasm.h38
-rw-r--r--contrib/gdb/gdb/doc/GDBvn.texi1
-rw-r--r--contrib/gdb/gdb/doc/LRS197
-rw-r--r--contrib/gdb/gdb/doc/a4rc.sed11
-rw-r--r--contrib/gdb/gdb/doc/agentexpr.texi837
-rw-r--r--contrib/gdb/gdb/doc/all-cfg.texi45
-rw-r--r--contrib/gdb/gdb/doc/annotate.texinfo834
-rw-r--r--contrib/gdb/gdb/doc/fdl.texi452
-rw-r--r--contrib/gdb/gdb/doc/gdb.info-17636
-rw-r--r--contrib/gdb/gdb/doc/gdb.info-29133
-rw-r--r--contrib/gdb/gdb/doc/gdb.info-36665
-rw-r--r--contrib/gdb/gdb/doc/gdb.texinfo21780
-rw-r--r--contrib/gdb/gdb/doc/gdbint.texinfo6757
-rw-r--r--contrib/gdb/gdb/doc/gpl.texi409
-rw-r--r--contrib/gdb/gdb/doc/lpsrc.sed13
-rw-r--r--contrib/gdb/gdb/doc/observer.texi70
-rw-r--r--contrib/gdb/gdb/doc/psrc.sed13
-rw-r--r--contrib/gdb/gdb/doc/refcard.tex647
-rw-r--r--contrib/gdb/gdb/doc/stabs.texinfo4046
-rw-r--r--contrib/gdb/gdb/doublest.c824
-rw-r--r--contrib/gdb/gdb/doublest.h90
-rw-r--r--contrib/gdb/gdb/dpx2-nat.c83
-rw-r--r--contrib/gdb/gdb/dsrec.c313
-rw-r--r--contrib/gdb/gdb/dummy-frame.c466
-rw-r--r--contrib/gdb/gdb/dummy-frame.h86
-rw-r--r--contrib/gdb/gdb/dve3900-rom.c1069
-rw-r--r--contrib/gdb/gdb/dwarf2-frame.c1621
-rw-r--r--contrib/gdb/gdb/dwarf2-frame.h98
-rw-r--r--contrib/gdb/gdb/dwarf2expr.c726
-rw-r--r--contrib/gdb/gdb/dwarf2expr.h141
-rw-r--r--contrib/gdb/gdb/dwarf2loc.c592
-rw-r--r--contrib/gdb/gdb/dwarf2loc.h70
-rw-r--r--contrib/gdb/gdb/dwarf2read.c8130
-rw-r--r--contrib/gdb/gdb/dwarfread.c3816
-rw-r--r--contrib/gdb/gdb/elfread.c774
-rw-r--r--contrib/gdb/gdb/environ.c186
-rw-r--r--contrib/gdb/gdb/environ.h51
-rw-r--r--contrib/gdb/gdb/eval.c2275
-rw-r--r--contrib/gdb/gdb/event-loop.c1158
-rw-r--r--contrib/gdb/gdb/event-loop.h96
-rw-r--r--contrib/gdb/gdb/event-top.c1186
-rw-r--r--contrib/gdb/gdb/event-top.h124
-rw-r--r--contrib/gdb/gdb/exc_request.defs51
-rw-r--r--contrib/gdb/gdb/exec.c761
-rw-r--r--contrib/gdb/gdb/exec.h39
-rw-r--r--contrib/gdb/gdb/expprint.c1069
-rw-r--r--contrib/gdb/gdb/expression.h419
-rw-r--r--contrib/gdb/gdb/f-exp.c2564
-rw-r--r--contrib/gdb/gdb/f-exp.y1188
-rw-r--r--contrib/gdb/gdb/f-lang.c986
-rw-r--r--contrib/gdb/gdb/f-lang.h98
-rw-r--r--contrib/gdb/gdb/f-typeprint.c406
-rw-r--r--contrib/gdb/gdb/f-valprint.c775
-rw-r--r--contrib/gdb/gdb/fbsd-proc.c171
-rw-r--r--contrib/gdb/gdb/findvar.c808
-rw-r--r--contrib/gdb/gdb/fork-child.c469
-rw-r--r--contrib/gdb/gdb/frame-base.c150
-rw-r--r--contrib/gdb/gdb/frame-base.h93
-rw-r--r--contrib/gdb/gdb/frame-unwind.c103
-rw-r--r--contrib/gdb/gdb/frame-unwind.h141
-rw-r--r--contrib/gdb/gdb/frame.c2384
-rw-r--r--contrib/gdb/gdb/frame.h707
-rw-r--r--contrib/gdb/gdb/gcore.c501
-rw-r--r--contrib/gdb/gdb/gdb-events.c444
-rw-r--r--contrib/gdb/gdb/gdb-events.h129
-rwxr-xr-xcontrib/gdb/gdb/gdb-events.sh620
-rw-r--r--contrib/gdb/gdb/gdb-stabs.h90
-rw-r--r--contrib/gdb/gdb/gdb.1381
-rw-r--r--contrib/gdb/gdb/gdb.c36
-rw-r--r--contrib/gdb/gdb/gdb.gdb35
-rw-r--r--contrib/gdb/gdb/gdb.h62
-rw-r--r--contrib/gdb/gdb/gdb_assert.h58
-rw-r--r--contrib/gdb/gdb/gdb_curses.h31
-rw-r--r--contrib/gdb/gdb/gdb_dirent.h42
-rwxr-xr-xcontrib/gdb/gdb/gdb_gcore.sh81
-rwxr-xr-xcontrib/gdb/gdb/gdb_indent.sh86
-rw-r--r--contrib/gdb/gdb/gdb_locale.h46
-rwxr-xr-xcontrib/gdb/gdb/gdb_mbuild.sh333
-rw-r--r--contrib/gdb/gdb/gdb_obstack.h39
-rw-r--r--contrib/gdb/gdb/gdb_proc_service.h86
-rw-r--r--contrib/gdb/gdb/gdb_regex.h32
-rw-r--r--contrib/gdb/gdb/gdb_stat.h74
-rw-r--r--contrib/gdb/gdb/gdb_string.h67
-rw-r--r--contrib/gdb/gdb/gdb_thread_db.h461
-rw-r--r--contrib/gdb/gdb/gdb_vfork.h28
-rw-r--r--contrib/gdb/gdb/gdb_wait.h121
-rw-r--r--contrib/gdb/gdb/gdbarch.c5885
-rw-r--r--contrib/gdb/gdb/gdbarch.h2581
-rwxr-xr-xcontrib/gdb/gdb/gdbarch.sh2320
-rw-r--r--contrib/gdb/gdb/gdbcmd.h122
-rw-r--r--contrib/gdb/gdb/gdbcore.h209
-rw-r--r--contrib/gdb/gdb/gdbinit.in17
-rw-r--r--contrib/gdb/gdb/gdbserver/README138
-rw-r--r--contrib/gdb/gdb/gdbserver/acinclude.m441
-rw-r--r--contrib/gdb/gdb/gdbserver/aclocal.m454
-rw-r--r--contrib/gdb/gdb/gdbserver/gdbreplay.c329
-rw-r--r--contrib/gdb/gdb/gdbserver/gdbserver.1116
-rw-r--r--contrib/gdb/gdb/gdbserver/i387-fp.c290
-rw-r--r--contrib/gdb/gdb/gdbserver/i387-fp.h33
-rw-r--r--contrib/gdb/gdb/gdbserver/inferiors.c199
-rw-r--r--contrib/gdb/gdb/gdbserver/mem-break.c278
-rw-r--r--contrib/gdb/gdb/gdbserver/mem-break.h71
-rw-r--r--contrib/gdb/gdb/gdbserver/proc-service.c256
-rw-r--r--contrib/gdb/gdb/gdbserver/regcache.c239
-rw-r--r--contrib/gdb/gdb/gdbserver/regcache.h72
-rw-r--r--contrib/gdb/gdb/gdbserver/remote-utils.c736
-rw-r--r--contrib/gdb/gdb/gdbserver/server.c621
-rw-r--r--contrib/gdb/gdb/gdbserver/server.h181
-rw-r--r--contrib/gdb/gdb/gdbserver/target.c112
-rw-r--r--contrib/gdb/gdb/gdbserver/target.h171
-rw-r--r--contrib/gdb/gdb/gdbserver/terminal.h51
-rw-r--r--contrib/gdb/gdb/gdbserver/thread-db.c342
-rw-r--r--contrib/gdb/gdb/gdbserver/utils.c96
-rw-r--r--contrib/gdb/gdb/gdbthread.h156
-rw-r--r--contrib/gdb/gdb/gdbtypes.c3505
-rw-r--r--contrib/gdb/gdb/gdbtypes.h1284
-rw-r--r--contrib/gdb/gdb/glibc-tdep.c101
-rw-r--r--contrib/gdb/gdb/glibc-tdep.h30
-rw-r--r--contrib/gdb/gdb/gnu-nat.c3409
-rw-r--r--contrib/gdb/gdb/gnu-nat.h101
-rw-r--r--contrib/gdb/gdb/gnu-v2-abi.c413
-rw-r--r--contrib/gdb/gdb/gnu-v3-abi.c447
-rw-r--r--contrib/gdb/gdb/go32-nat.c1963
-rw-r--r--contrib/gdb/gdb/gregset.h69
-rw-r--r--contrib/gdb/gdb/hpacc-abi.c329
-rw-r--r--contrib/gdb/gdb/hpread.c6328
-rw-r--r--contrib/gdb/gdb/i386-nat.c670
-rw-r--r--contrib/gdb/gdb/i386-nto-tdep.c306
-rw-r--r--contrib/gdb/gdb/i386-sol2-tdep.c120
-rw-r--r--contrib/gdb/gdb/i386-stub.c952
-rw-r--r--contrib/gdb/gdb/i386-tdep.c2109
-rw-r--r--contrib/gdb/gdb/i386-tdep.h233
-rw-r--r--contrib/gdb/gdb/i386bsd-nat.c456
-rw-r--r--contrib/gdb/gdb/i386bsd-tdep.c170
-rw-r--r--contrib/gdb/gdb/i386fbsd-nat.c107
-rw-r--r--contrib/gdb/gdb/i386fbsd-tdep.c175
-rw-r--r--contrib/gdb/gdb/i386gnu-nat.c293
-rw-r--r--contrib/gdb/gdb/i386gnu-tdep.c44
-rw-r--r--contrib/gdb/gdb/i386ly-tdep.c81
-rw-r--r--contrib/gdb/gdb/i386nbsd-tdep.c286
-rw-r--r--contrib/gdb/gdb/i386obsd-nat.c60
-rw-r--r--contrib/gdb/gdb/i386obsd-tdep.c277
-rw-r--r--contrib/gdb/gdb/i386v-nat.c277
-rw-r--r--contrib/gdb/gdb/i386v4-nat.c160
-rw-r--r--contrib/gdb/gdb/i387-tdep.c774
-rw-r--r--contrib/gdb/gdb/i387-tdep.h118
-rw-r--r--contrib/gdb/gdb/ia64-fbsd-nat.c137
-rw-r--r--contrib/gdb/gdb/ia64-fbsd-tdep.c289
-rw-r--r--contrib/gdb/gdb/ia64-tdep.c3382
-rw-r--r--contrib/gdb/gdb/ia64-tdep.h46
-rw-r--r--contrib/gdb/gdb/inf-loop.c132
-rw-r--r--contrib/gdb/gdb/inf-loop.h29
-rw-r--r--contrib/gdb/gdb/infcall.c1103
-rw-r--r--contrib/gdb/gdb/infcall.h43
-rw-r--r--contrib/gdb/gdb/infcmd.c2159
-rw-r--r--contrib/gdb/gdb/inferior.h495
-rw-r--r--contrib/gdb/gdb/inflow.c771
-rw-r--r--contrib/gdb/gdb/inflow.h51
-rw-r--r--contrib/gdb/gdb/infptrace.c688
-rw-r--r--contrib/gdb/gdb/infrun.c4220
-rw-r--r--contrib/gdb/gdb/inftarg.c713
-rw-r--r--contrib/gdb/gdb/infttrace.c5607
-rw-r--r--contrib/gdb/gdb/infttrace.h28
-rw-r--r--contrib/gdb/gdb/interps.c486
-rw-r--r--contrib/gdb/gdb/interps.h76
-rw-r--r--contrib/gdb/gdb/jv-exp.c2842
-rw-r--r--contrib/gdb/gdb/jv-exp.y1469
-rw-r--r--contrib/gdb/gdb/jv-lang.c1100
-rw-r--r--contrib/gdb/gdb/jv-lang.h73
-rw-r--r--contrib/gdb/gdb/jv-typeprint.c343
-rw-r--r--contrib/gdb/gdb/jv-valprint.c531
-rw-r--r--contrib/gdb/gdb/kod-cisco.c317
-rw-r--r--contrib/gdb/gdb/kod.c241
-rw-r--r--contrib/gdb/gdb/kod.h61
-rw-r--r--contrib/gdb/gdb/language.c1442
-rw-r--r--contrib/gdb/gdb/language.h514
-rw-r--r--contrib/gdb/gdb/libunwind-frame.c387
-rw-r--r--contrib/gdb/gdb/libunwind-frame.h64
-rw-r--r--contrib/gdb/gdb/lin-lwp.c1882
-rw-r--r--contrib/gdb/gdb/linespec.c1850
-rw-r--r--contrib/gdb/gdb/linespec.h29
-rw-r--r--contrib/gdb/gdb/lynx-nat.c624
-rw-r--r--contrib/gdb/gdb/m2-exp.c2600
-rw-r--r--contrib/gdb/gdb/m2-exp.y1108
-rw-r--r--contrib/gdb/gdb/m2-lang.c473
-rw-r--r--contrib/gdb/gdb/m2-lang.h31
-rw-r--r--contrib/gdb/gdb/m2-typeprint.c41
-rw-r--r--contrib/gdb/gdb/m2-valprint.c39
-rw-r--r--contrib/gdb/gdb/macrocmd.c289
-rw-r--r--contrib/gdb/gdb/macroexp.c1169
-rw-r--r--contrib/gdb/gdb/macroexp.h90
-rw-r--r--contrib/gdb/gdb/macroscope.c132
-rw-r--r--contrib/gdb/gdb/macroscope.h63
-rw-r--r--contrib/gdb/gdb/macrotab.c892
-rw-r--r--contrib/gdb/gdb/macrotab.h304
-rw-r--r--contrib/gdb/gdb/main.c890
-rw-r--r--contrib/gdb/gdb/main.h35
-rw-r--r--contrib/gdb/gdb/maint.c868
-rw-r--r--contrib/gdb/gdb/mdebugread.c4996
-rw-r--r--contrib/gdb/gdb/mem-break.c92
-rw-r--r--contrib/gdb/gdb/memattr.c549
-rw-r--r--contrib/gdb/gdb/memattr.h91
-rw-r--r--contrib/gdb/gdb/mi/mi-cmd-break.c240
-rw-r--r--contrib/gdb/gdb/mi/mi-cmd-disas.c163
-rw-r--r--contrib/gdb/gdb/mi/mi-cmd-env.c259
-rw-r--r--contrib/gdb/gdb/mi/mi-cmd-file.c67
-rw-r--r--contrib/gdb/gdb/mi/mi-cmd-stack.c349
-rw-r--r--contrib/gdb/gdb/mi/mi-cmd-var.c538
-rw-r--r--contrib/gdb/gdb/mi/mi-cmds.c267
-rw-r--r--contrib/gdb/gdb/mi/mi-cmds.h152
-rw-r--r--contrib/gdb/gdb/mi/mi-console.c125
-rw-r--r--contrib/gdb/gdb/mi/mi-console.h29
-rw-r--r--contrib/gdb/gdb/mi/mi-getopt.c92
-rw-r--r--contrib/gdb/gdb/mi/mi-getopt.h80
-rw-r--r--contrib/gdb/gdb/mi/mi-interp.c406
-rw-r--r--contrib/gdb/gdb/mi/mi-main.c1494
-rw-r--r--contrib/gdb/gdb/mi/mi-main.h33
-rw-r--r--contrib/gdb/gdb/mi/mi-out.c409
-rw-r--r--contrib/gdb/gdb/mi/mi-out.h36
-rw-r--r--contrib/gdb/gdb/mi/mi-parse.c233
-rw-r--r--contrib/gdb/gdb/mi/mi-parse.h55
-rw-r--r--contrib/gdb/gdb/mi/mi-symbol-cmds.c67
-rw-r--r--contrib/gdb/gdb/minimon.h601
-rw-r--r--contrib/gdb/gdb/minsyms.c996
-rw-r--r--contrib/gdb/gdb/mips-nat.c254
-rw-r--r--contrib/gdb/gdb/mips-tdep.c6202
-rw-r--r--contrib/gdb/gdb/mips-tdep.h88
-rw-r--r--contrib/gdb/gdb/mipsfbsd-nat.c108
-rw-r--r--contrib/gdb/gdb/mipsfbsd-tdep.c591
-rw-r--r--contrib/gdb/gdb/mipsfbsd-tdep.h40
-rw-r--r--contrib/gdb/gdb/mipsnbsd-nat.c101
-rw-r--r--contrib/gdb/gdb/mipsnbsd-tdep.c370
-rw-r--r--contrib/gdb/gdb/mipsnbsd-tdep.h33
-rw-r--r--contrib/gdb/gdb/mipsread.c444
-rw-r--r--contrib/gdb/gdb/mipsv4-nat.c168
-rw-r--r--contrib/gdb/gdb/monitor.c2310
-rw-r--r--contrib/gdb/gdb/monitor.h260
-rw-r--r--contrib/gdb/gdb/msg.defs1
-rw-r--r--contrib/gdb/gdb/msg_reply.defs1
-rw-r--r--contrib/gdb/gdb/nbsd-tdep.c109
-rw-r--r--contrib/gdb/gdb/nbsd-tdep.h30
-rw-r--r--contrib/gdb/gdb/nlmread.c248
-rw-r--r--contrib/gdb/gdb/notify.defs1
-rw-r--r--contrib/gdb/gdb/nto-procfs.c1389
-rw-r--r--contrib/gdb/gdb/nto-tdep.c337
-rw-r--r--contrib/gdb/gdb/nto-tdep.h156
-rw-r--r--contrib/gdb/gdb/objc-exp.c3464
-rw-r--r--contrib/gdb/gdb/objc-exp.y1820
-rw-r--r--contrib/gdb/gdb/objc-lang.c1929
-rw-r--r--contrib/gdb/gdb/objc-lang.h68
-rw-r--r--contrib/gdb/gdb/objfiles.c896
-rw-r--r--contrib/gdb/gdb/objfiles.h663
-rw-r--r--contrib/gdb/gdb/observer.c222
-rw-r--r--contrib/gdb/gdb/observer.h35
-rw-r--r--contrib/gdb/gdb/ocd.c1169
-rw-r--r--contrib/gdb/gdb/ocd.h142
-rw-r--r--contrib/gdb/gdb/osabi.c664
-rw-r--r--contrib/gdb/gdb/osabi.h55
-rw-r--r--contrib/gdb/gdb/p-exp.c2974
-rw-r--r--contrib/gdb/gdb/p-exp.y1650
-rw-r--r--contrib/gdb/gdb/p-lang.c485
-rw-r--r--contrib/gdb/gdb/p-lang.h76
-rw-r--r--contrib/gdb/gdb/p-typeprint.c817
-rw-r--r--contrib/gdb/gdb/p-valprint.c1108
-rw-r--r--contrib/gdb/gdb/pa64solib.c1247
-rw-r--r--contrib/gdb/gdb/pa64solib.h149
-rw-r--r--contrib/gdb/gdb/parse.c1314
-rw-r--r--contrib/gdb/gdb/parser-defs.h279
-rw-r--r--contrib/gdb/gdb/ppc-bdm.c356
-rw-r--r--contrib/gdb/gdb/ppc-sysv-tdep.c1002
-rw-r--r--contrib/gdb/gdb/ppc-tdep.h113
-rw-r--r--contrib/gdb/gdb/ppcbug-rom.c225
-rw-r--r--contrib/gdb/gdb/ppcfbsd-nat.c169
-rw-r--r--contrib/gdb/gdb/ppcfbsd-tdep.c560
-rw-r--r--contrib/gdb/gdb/ppcfbsd-tdep.h30
-rw-r--r--contrib/gdb/gdb/ppcnbsd-nat.c121
-rw-r--r--contrib/gdb/gdb/ppcnbsd-tdep.c250
-rw-r--r--contrib/gdb/gdb/ppcnbsd-tdep.h30
-rw-r--r--contrib/gdb/gdb/printcmd.c2172
-rw-r--r--contrib/gdb/gdb/proc-api.c797
-rw-r--r--contrib/gdb/gdb/proc-events.c1777
-rw-r--r--contrib/gdb/gdb/proc-flags.c291
-rw-r--r--contrib/gdb/gdb/proc-service.c312
-rw-r--r--contrib/gdb/gdb/proc-utils.h95
-rw-r--r--contrib/gdb/gdb/proc-why.c175
-rw-r--r--contrib/gdb/gdb/process_reply.defs1
-rw-r--r--contrib/gdb/gdb/procfs.c5960
-rw-r--r--contrib/gdb/gdb/regcache.c1742
-rw-r--r--contrib/gdb/gdb/regcache.h255
-rw-r--r--contrib/gdb/gdb/regformats/reg-arm.dat28
-rw-r--r--contrib/gdb/gdb/regformats/reg-i386.dat43
-rw-r--r--contrib/gdb/gdb/regformats/reg-ia64.dat603
-rw-r--r--contrib/gdb/gdb/regformats/reg-m68k.dat33
-rw-r--r--contrib/gdb/gdb/regformats/reg-mips.dat112
-rw-r--r--contrib/gdb/gdb/regformats/reg-ppc.dat76
-rw-r--r--contrib/gdb/gdb/regformats/reg-s390.dat53
-rw-r--r--contrib/gdb/gdb/regformats/reg-s390x.dat53
-rw-r--r--contrib/gdb/gdb/regformats/reg-sh.dat62
-rw-r--r--contrib/gdb/gdb/regformats/reg-x86-64.dat59
-rwxr-xr-xcontrib/gdb/gdb/regformats/regdat.sh169
-rw-r--r--contrib/gdb/gdb/regformats/regdef.h46
-rw-r--r--contrib/gdb/gdb/reggroups.c288
-rw-r--r--contrib/gdb/gdb/reggroups.h64
-rw-r--r--contrib/gdb/gdb/regset.h41
-rw-r--r--contrib/gdb/gdb/remote-e7000.c2194
-rw-r--r--contrib/gdb/gdb/remote-est.c186
-rw-r--r--contrib/gdb/gdb/remote-fileio.c1384
-rw-r--r--contrib/gdb/gdb/remote-fileio.h38
-rw-r--r--contrib/gdb/gdb/remote-hms.c159
-rw-r--r--contrib/gdb/gdb/remote-mips.c3421
-rw-r--r--contrib/gdb/gdb/remote-rdi.c1026
-rw-r--r--contrib/gdb/gdb/remote-rdp.c1431
-rw-r--r--contrib/gdb/gdb/remote-sds.c1130
-rw-r--r--contrib/gdb/gdb/remote-sim.c900
-rw-r--r--contrib/gdb/gdb/remote-st.c803
-rw-r--r--contrib/gdb/gdb/remote-utils.c609
-rw-r--r--contrib/gdb/gdb/remote-utils.h135
-rw-r--r--contrib/gdb/gdb/remote-vx.c1409
-rw-r--r--contrib/gdb/gdb/remote-vx68.c160
-rw-r--r--contrib/gdb/gdb/remote-vxmips.c201
-rw-r--r--contrib/gdb/gdb/remote-vxsparc.c128
-rw-r--r--contrib/gdb/gdb/remote.c5730
-rw-r--r--contrib/gdb/gdb/remote.h64
-rw-r--r--contrib/gdb/gdb/reply_mig_hack.awk123
-rw-r--r--contrib/gdb/gdb/rom68k-rom.c264
-rw-r--r--contrib/gdb/gdb/rs6000-nat.c1227
-rw-r--r--contrib/gdb/gdb/rs6000-tdep.c2981
-rw-r--r--contrib/gdb/gdb/s390-nat.c359
-rw-r--r--contrib/gdb/gdb/s390-tdep.c3102
-rw-r--r--contrib/gdb/gdb/s390-tdep.h105
-rw-r--r--contrib/gdb/gdb/scm-exp.c496
-rw-r--r--contrib/gdb/gdb/scm-lang.c287
-rw-r--r--contrib/gdb/gdb/scm-lang.h72
-rw-r--r--contrib/gdb/gdb/scm-tags.h379
-rw-r--r--contrib/gdb/gdb/scm-valprint.c394
-rw-r--r--contrib/gdb/gdb/sentinel-frame.c92
-rw-r--r--contrib/gdb/gdb/sentinel-frame.h41
-rw-r--r--contrib/gdb/gdb/ser-e7kpc.c436
-rw-r--r--contrib/gdb/gdb/ser-go32.c964
-rw-r--r--contrib/gdb/gdb/ser-pipe.c161
-rw-r--r--contrib/gdb/gdb/ser-tcp.c231
-rw-r--r--contrib/gdb/gdb/ser-unix.c1364
-rw-r--r--contrib/gdb/gdb/ser-unix.h54
-rw-r--r--contrib/gdb/gdb/serial.c712
-rw-r--r--contrib/gdb/gdb/serial.h243
-rw-r--r--contrib/gdb/gdb/signals/signals.c830
-rw-r--r--contrib/gdb/gdb/sim-regno.h45
-rw-r--r--contrib/gdb/gdb/sol-thread.c1720
-rw-r--r--contrib/gdb/gdb/solib-legacy.c153
-rw-r--r--contrib/gdb/gdb/solib-osf.c623
-rw-r--r--contrib/gdb/gdb/solib-sunos.c898
-rw-r--r--contrib/gdb/gdb/solib-svr4.c1605
-rw-r--r--contrib/gdb/gdb/solib-svr4.h90
-rw-r--r--contrib/gdb/gdb/solib.c912
-rw-r--r--contrib/gdb/gdb/solib.h110
-rw-r--r--contrib/gdb/gdb/solist.h134
-rw-r--r--contrib/gdb/gdb/somread.c736
-rw-r--r--contrib/gdb/gdb/somsolib.c1624
-rw-r--r--contrib/gdb/gdb/somsolib.h178
-rw-r--r--contrib/gdb/gdb/source.c1596
-rw-r--r--contrib/gdb/gdb/source.h68
-rw-r--r--contrib/gdb/gdb/sparc-nat.c330
-rw-r--r--contrib/gdb/gdb/sparc-nat.h40
-rw-r--r--contrib/gdb/gdb/sparc-sol2-nat.c98
-rw-r--r--contrib/gdb/gdb/sparc-sol2-tdep.c201
-rw-r--r--contrib/gdb/gdb/sparc-stub.c778
-rw-r--r--contrib/gdb/gdb/sparc-tdep.c1488
-rw-r--r--contrib/gdb/gdb/sparc-tdep.h204
-rw-r--r--contrib/gdb/gdb/sparc64-nat.c87
-rw-r--r--contrib/gdb/gdb/sparc64-sol2-tdep.c182
-rw-r--r--contrib/gdb/gdb/sparc64-tdep.c1433
-rw-r--r--contrib/gdb/gdb/sparc64-tdep.h123
-rw-r--r--contrib/gdb/gdb/sparc64fbsd-nat.c34
-rw-r--r--contrib/gdb/gdb/sparc64fbsd-tdep.c250
-rw-r--r--contrib/gdb/gdb/sparc64nbsd-nat.c139
-rw-r--r--contrib/gdb/gdb/sparc64nbsd-tdep.c256
-rw-r--r--contrib/gdb/gdb/sparc64obsd-tdep.c210
-rw-r--r--contrib/gdb/gdb/sparcnbsd-nat.c34
-rw-r--r--contrib/gdb/gdb/sparcnbsd-tdep.c358
-rw-r--r--contrib/gdb/gdb/sparcobsd-tdep.c171
-rw-r--r--contrib/gdb/gdb/srec.h39
-rw-r--r--contrib/gdb/gdb/stabsread.c4456
-rw-r--r--contrib/gdb/gdb/stabsread.h207
-rw-r--r--contrib/gdb/gdb/stack.c2178
-rw-r--r--contrib/gdb/gdb/stack.h27
-rw-r--r--contrib/gdb/gdb/standalone.c580
-rw-r--r--contrib/gdb/gdb/std-regs.c160
-rw-r--r--contrib/gdb/gdb/stop-gdb.c109
-rw-r--r--contrib/gdb/gdb/sun3-nat.c166
-rw-r--r--contrib/gdb/gdb/symfile.c3610
-rw-r--r--contrib/gdb/gdb/symfile.h340
-rw-r--r--contrib/gdb/gdb/symmisc.c1258
-rw-r--r--contrib/gdb/gdb/symtab.c4042
-rw-r--r--contrib/gdb/gdb/symtab.h1368
-rw-r--r--contrib/gdb/gdb/target.c2458
-rw-r--r--contrib/gdb/gdb/target.h1251
-rw-r--r--contrib/gdb/gdb/terminal.h91
-rw-r--r--contrib/gdb/gdb/thread-db.c1314
-rw-r--r--contrib/gdb/gdb/thread.c743
-rw-r--r--contrib/gdb/gdb/top.c1911
-rw-r--r--contrib/gdb/gdb/top.h84
-rw-r--r--contrib/gdb/gdb/tracepoint.c2810
-rw-r--r--contrib/gdb/gdb/tracepoint.h134
-rw-r--r--contrib/gdb/gdb/trad-frame.c134
-rw-r--r--contrib/gdb/gdb/trad-frame.h88
-rw-r--r--contrib/gdb/gdb/tui/tui-command.c131
-rw-r--r--contrib/gdb/gdb/tui/tui-command.h30
-rw-r--r--contrib/gdb/gdb/tui/tui-data.c924
-rw-r--r--contrib/gdb/gdb/tui/tui-data.h351
-rw-r--r--contrib/gdb/gdb/tui/tui-disasm.c397
-rw-r--r--contrib/gdb/gdb/tui/tui-disasm.h37
-rw-r--r--contrib/gdb/gdb/tui/tui-file.c238
-rw-r--r--contrib/gdb/gdb/tui/tui-file.h29
-rw-r--r--contrib/gdb/gdb/tui/tui-hooks.c320
-rw-r--r--contrib/gdb/gdb/tui/tui-hooks.h28
-rw-r--r--contrib/gdb/gdb/tui/tui-interp.c210
-rw-r--r--contrib/gdb/gdb/tui/tui-io.c708
-rw-r--r--contrib/gdb/gdb/tui/tui-io.h55
-rw-r--r--contrib/gdb/gdb/tui/tui-layout.c1072
-rw-r--r--contrib/gdb/gdb/tui/tui-layout.h38
-rw-r--r--contrib/gdb/gdb/tui/tui-main.c37
-rw-r--r--contrib/gdb/gdb/tui/tui-out.c413
-rw-r--r--contrib/gdb/gdb/tui/tui-regs.c754
-rw-r--r--contrib/gdb/gdb/tui/tui-regs.h39
-rw-r--r--contrib/gdb/gdb/tui/tui-source.c352
-rw-r--r--contrib/gdb/gdb/tui/tui-source.h40
-rw-r--r--contrib/gdb/gdb/tui/tui-stack.c427
-rw-r--r--contrib/gdb/gdb/tui/tui-stack.h34
-rw-r--r--contrib/gdb/gdb/tui/tui-win.c1520
-rw-r--r--contrib/gdb/gdb/tui/tui-win.h59
-rw-r--r--contrib/gdb/gdb/tui/tui-windata.c304
-rw-r--r--contrib/gdb/gdb/tui/tui-windata.h41
-rw-r--r--contrib/gdb/gdb/tui/tui-wingeneral.c276
-rw-r--r--contrib/gdb/gdb/tui/tui-wingeneral.h45
-rw-r--r--contrib/gdb/gdb/tui/tui-winsource.c654
-rw-r--r--contrib/gdb/gdb/tui/tui-winsource.h73
-rw-r--r--contrib/gdb/gdb/tui/tui.c590
-rw-r--r--contrib/gdb/gdb/tui/tui.h100
-rw-r--r--contrib/gdb/gdb/typeprint.c368
-rw-r--r--contrib/gdb/gdb/typeprint.h31
-rw-r--r--contrib/gdb/gdb/ui-file.c617
-rw-r--r--contrib/gdb/gdb/ui-file.h105
-rw-r--r--contrib/gdb/gdb/ui-out.c1163
-rw-r--r--contrib/gdb/gdb/ui-out.h276
-rw-r--r--contrib/gdb/gdb/user-regs.c211
-rw-r--r--contrib/gdb/gdb/user-regs.h71
-rw-r--r--contrib/gdb/gdb/utils.c3059
-rw-r--r--contrib/gdb/gdb/uw-thread.c1067
-rw-r--r--contrib/gdb/gdb/valarith.c1419
-rw-r--r--contrib/gdb/gdb/valops.c2934
-rw-r--r--contrib/gdb/gdb/valprint.c1486
-rw-r--r--contrib/gdb/gdb/valprint.h72
-rw-r--r--contrib/gdb/gdb/value.h577
-rw-r--r--contrib/gdb/gdb/values.c1346
-rw-r--r--contrib/gdb/gdb/varobj.c2562
-rw-r--r--contrib/gdb/gdb/varobj.h100
-rw-r--r--contrib/gdb/gdb/version.h33
-rw-r--r--contrib/gdb/gdb/version.in1
-rw-r--r--contrib/gdb/gdb/win32-nat.c2460
-rw-r--r--contrib/gdb/gdb/wince-stub.c592
-rw-r--r--contrib/gdb/gdb/wince-stub.h48
-rw-r--r--contrib/gdb/gdb/wince.c2049
-rw-r--r--contrib/gdb/gdb/wrapper.c333
-rw-r--r--contrib/gdb/gdb/wrapper.h51
-rw-r--r--contrib/gdb/gdb/xcoffread.c3033
-rw-r--r--contrib/gdb/gdb/xcoffsolib.c196
-rw-r--r--contrib/gdb/gdb/xcoffsolib.h66
-rw-r--r--contrib/gdb/gdb/xmodem.c275
-rw-r--r--contrib/gdb/gdb/xmodem.h32
-rw-r--r--contrib/gdb/gettext.m4344
-rw-r--r--contrib/gdb/include/COPYING340
-rw-r--r--contrib/gdb/include/MAINTAINERS1
-rw-r--r--contrib/gdb/include/alloca-conf.h24
-rw-r--r--contrib/gdb/include/ansidecl.h315
-rw-r--r--contrib/gdb/include/bfdlink.h686
-rw-r--r--contrib/gdb/include/bin-bugs.h3
-rw-r--r--contrib/gdb/include/bout.h191
-rw-r--r--contrib/gdb/include/demangle.h533
-rw-r--r--contrib/gdb/include/dis-asm.h317
-rw-r--r--contrib/gdb/include/dyn-string.h63
-rw-r--r--contrib/gdb/include/fibheap.h86
-rw-r--r--contrib/gdb/include/filenames.h51
-rw-r--r--contrib/gdb/include/floatformat.h133
-rw-r--r--contrib/gdb/include/fnmatch.h70
-rw-r--r--contrib/gdb/include/fopen-bin.h27
-rw-r--r--contrib/gdb/include/fopen-same.h27
-rw-r--r--contrib/gdb/include/fopen-vms.h24
-rw-r--r--contrib/gdb/include/gdb/callback.h272
-rw-r--r--contrib/gdb/include/gdb/fileio.h146
-rw-r--r--contrib/gdb/include/gdb/remote-sim.h282
-rw-r--r--contrib/gdb/include/gdb/signals.h237
-rw-r--r--contrib/gdb/include/gdb/sim-arm.h114
-rw-r--r--contrib/gdb/include/gdb/sim-d10v.h142
-rw-r--r--contrib/gdb/include/gdb/sim-frv.h53
-rw-r--r--contrib/gdb/include/gdb/sim-h8300.h78
-rw-r--r--contrib/gdb/include/gdb/sim-sh.h161
-rw-r--r--contrib/gdb/include/gdbm.h91
-rw-r--r--contrib/gdb/include/getopt.h144
-rw-r--r--contrib/gdb/include/hashtab.h195
-rw-r--r--contrib/gdb/include/hp-symtab.h1866
-rw-r--r--contrib/gdb/include/ieee.h165
-rw-r--r--contrib/gdb/include/libiberty.h335
-rw-r--r--contrib/gdb/include/md5.h142
-rw-r--r--contrib/gdb/include/oasys.h192
-rw-r--r--contrib/gdb/include/objalloc.h115
-rw-r--r--contrib/gdb/include/obstack.h611
-rw-r--r--contrib/gdb/include/os9k.h181
-rw-r--r--contrib/gdb/include/partition.h85
-rw-r--r--contrib/gdb/include/progress.h37
-rw-r--r--contrib/gdb/include/safe-ctype.h119
-rw-r--r--contrib/gdb/include/sort.h48
-rw-r--r--contrib/gdb/include/splay-tree.h159
-rw-r--r--contrib/gdb/include/symcat.h49
-rw-r--r--contrib/gdb/include/ternary.h51
-rw-r--r--contrib/gdb/include/xregex.h28
-rw-r--r--contrib/gdb/include/xregex2.h571
-rw-r--r--contrib/gdb/include/xtensa-isa-internal.h114
-rw-r--r--contrib/gdb/include/xtensa-isa.h230
-rwxr-xr-xcontrib/gdb/install-sh316
-rw-r--r--contrib/gdb/libtool.m4893
-rw-r--r--contrib/gdb/ltcf-c.sh824
-rw-r--r--contrib/gdb/ltcf-cxx.sh1021
-rw-r--r--contrib/gdb/ltcf-gcj.sh651
-rwxr-xr-xcontrib/gdb/ltconfig2833
-rw-r--r--contrib/gdb/ltmain.sh5469
-rw-r--r--contrib/gdb/md5.sum5330
-rwxr-xr-xcontrib/gdb/missing336
-rwxr-xr-xcontrib/gdb/mkinstalldirs150
-rwxr-xr-xcontrib/gdb/move-if-change32
-rw-r--r--contrib/gdb/src-release336
-rwxr-xr-xcontrib/gdb/symlink-tree78
-rwxr-xr-xcontrib/gdb/ylwrap123
850 files changed, 0 insertions, 487696 deletions
diff --git a/contrib/gdb/COPYING b/contrib/gdb/COPYING
deleted file mode 100644
index 60549be514af..000000000000
--- a/contrib/gdb/COPYING
+++ /dev/null
@@ -1,340 +0,0 @@
- GNU GENERAL PUBLIC LICENSE
- Version 2, June 1991
-
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.
- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The licenses for most software are designed to take away your
-freedom to share and change it. By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users. This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it. (Some other Free Software Foundation software is covered by
-the GNU Library General Public License instead.) You can apply it to
-your programs, too.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
-
- To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have. You must make sure that they, too, receive or can get the
-source code. And you must show them these terms so they know their
-rights.
-
- We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
- Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software. If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
- Finally, any free program is threatened constantly by software
-patents. We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary. To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
-
- The precise terms and conditions for copying, distribution and
-modification follow.
-
- GNU GENERAL PUBLIC LICENSE
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
- 0. This License applies to any program or other work which contains
-a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License. The "Program", below,
-refers to any such program or work, and a "work based on the Program"
-means either the Program or any derivative work under copyright law:
-that is to say, a work containing the Program or a portion of it,
-either verbatim or with modifications and/or translated into another
-language. (Hereinafter, translation is included without limitation in
-the term "modification".) Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of
-running the Program is not restricted, and the output from the Program
-is covered only if its contents constitute a work based on the
-Program (independent of having been made by running the Program).
-Whether that is true depends on what the Program does.
-
- 1. You may copy and distribute verbatim copies of the Program's
-source code as you receive it, in any medium, provided that you
-conspicuously and appropriately publish on each copy an appropriate
-copyright notice and disclaimer of warranty; keep intact all the
-notices that refer to this License and to the absence of any warranty;
-and give any other recipients of the Program a copy of this License
-along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and
-you may at your option offer warranty protection in exchange for a fee.
-
- 2. You may modify your copy or copies of the Program or any portion
-of it, thus forming a work based on the Program, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
- a) You must cause the modified files to carry prominent notices
- stating that you changed the files and the date of any change.
-
- b) You must cause any work that you distribute or publish, that in
- whole or in part contains or is derived from the Program or any
- part thereof, to be licensed as a whole at no charge to all third
- parties under the terms of this License.
-
- c) If the modified program normally reads commands interactively
- when run, you must cause it, when started running for such
- interactive use in the most ordinary way, to print or display an
- announcement including an appropriate copyright notice and a
- notice that there is no warranty (or else, saying that you provide
- a warranty) and that users may redistribute the program under
- these conditions, and telling the user how to view a copy of this
- License. (Exception: if the Program itself is interactive but
- does not normally print such an announcement, your work based on
- the Program is not required to print an announcement.)
-
-These requirements apply to the modified work as a whole. If
-identifiable sections of that work are not derived from the Program,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
-distribute the same sections as part of a whole which is a work based
-on the Program, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
- 3. You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
- a) Accompany it with the complete corresponding machine-readable
- source code, which must be distributed under the terms of Sections
- 1 and 2 above on a medium customarily used for software interchange; or,
-
- b) Accompany it with a written offer, valid for at least three
- years, to give any third party, for a charge no more than your
- cost of physically performing source distribution, a complete
- machine-readable copy of the corresponding source code, to be
- distributed under the terms of Sections 1 and 2 above on a medium
- customarily used for software interchange; or,
-
- c) Accompany it with the information you received as to the offer
- to distribute corresponding source code. (This alternative is
- allowed only for noncommercial distribution and only if you
- received the program in object code or executable form with such
- an offer, in accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it. For an executable work, complete source
-code means all the source code for all modules it contains, plus any
-associated interface definition files, plus the scripts used to
-control compilation and installation of the executable. However, as a
-special exception, the source code distributed need not include
-anything that is normally distributed (in either source or binary
-form) with the major components (compiler, kernel, and so on) of the
-operating system on which the executable runs, unless that component
-itself accompanies the executable.
-
-If distribution of executable or object code is made by offering
-access to copy from a designated place, then offering equivalent
-access to copy the source code from the same place counts as
-distribution of the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
- 4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License. Any attempt
-otherwise to copy, modify, sublicense or distribute the Program is
-void, and will automatically terminate your rights under this License.
-However, parties who have received copies, or rights, from you under
-this License will not have their licenses terminated so long as such
-parties remain in full compliance.
-
- 5. You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Program or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Program or works based on it.
-
- 6. Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program subject to
-these terms and conditions. You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
-this License.
-
- 7. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Program at all. For example, if a patent
-license would not permit royalty-free redistribution of the Program by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system, which is
-implemented by public license practices. Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
- 8. If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program under this License
-may add an explicit geographical distribution limitation excluding
-those countries, so that distribution is permitted only in or among
-countries not thus excluded. In such case, this License incorporates
-the limitation as if written in the body of this License.
-
- 9. The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
-Each version is given a distinguishing version number. If the Program
-specifies a version number of this License which applies to it and "any
-later version", you have the option of following the terms and conditions
-either of that version or of any later version published by the Free
-Software Foundation. If the Program does not specify a version number of
-this License, you may choose any version ever published by the Free Software
-Foundation.
-
- 10. If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, write to the author
-to ask for permission. For software which is copyrighted by the Free
-Software Foundation, write to the Free Software Foundation; we sometimes
-make exceptions for this. Our decision will be guided by the two goals
-of preserving the free status of all derivatives of our free software and
-of promoting the sharing and reuse of software generally.
-
- NO WARRANTY
-
- 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
-REPAIR OR CORRECTION.
-
- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGES.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Programs
-
- If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
- To do so, attach the following notices to the program. It is safest
-to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
- <one line to give the program's name and a brief idea of what it does.>
- Copyright (C) 19yy <name of author>
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-
-Also add information on how to contact you by electronic and paper mail.
-
-If the program is interactive, make it output a short notice like this
-when it starts in an interactive mode:
-
- Gnomovision version 69, Copyright (C) 19yy name of author
- Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
- This is free software, and you are welcome to redistribute it
- under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License. Of course, the commands you use may
-be called something other than `show w' and `show c'; they could even be
-mouse-clicks or menu items--whatever suits your program.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the program, if
-necessary. Here is a sample; alter the names:
-
- Yoyodyne, Inc., hereby disclaims all copyright interest in the program
- `Gnomovision' (which makes passes at compilers) written by James Hacker.
-
- <signature of Ty Coon>, 1 April 1989
- Ty Coon, President of Vice
-
-This General Public License does not permit incorporating your program into
-proprietary programs. If your program is a subroutine library, you may
-consider it more useful to permit linking proprietary applications with the
-library. If this is what you want to do, use the GNU Library General
-Public License instead of this License.
diff --git a/contrib/gdb/COPYING.LIB b/contrib/gdb/COPYING.LIB
deleted file mode 100644
index 161a3d1d47b9..000000000000
--- a/contrib/gdb/COPYING.LIB
+++ /dev/null
@@ -1,482 +0,0 @@
- GNU LIBRARY GENERAL PUBLIC LICENSE
- Version 2, June 1991
-
- Copyright (C) 1991 Free Software Foundation, Inc.
- 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
-[This is the first released version of the library GPL. It is
- numbered 2 because it goes with version 2 of the ordinary GPL.]
-
- Preamble
-
- The licenses for most software are designed to take away your
-freedom to share and change it. By contrast, the GNU General Public
-Licenses are intended to guarantee your freedom to share and change
-free software--to make sure the software is free for all its users.
-
- This license, the Library General Public License, applies to some
-specially designated Free Software Foundation software, and to any
-other libraries whose authors decide to use it. You can use it for
-your libraries, too.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
-
- To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if
-you distribute copies of the library, or if you modify it.
-
- For example, if you distribute copies of the library, whether gratis
-or for a fee, you must give the recipients all the rights that we gave
-you. You must make sure that they, too, receive or can get the source
-code. If you link a program with the library, you must provide
-complete object files to the recipients so that they can relink them
-with the library, after making changes to the library and recompiling
-it. And you must show them these terms so they know their rights.
-
- Our method of protecting your rights has two steps: (1) copyright
-the library, and (2) offer you this license which gives you legal
-permission to copy, distribute and/or modify the library.
-
- Also, for each distributor's protection, we want to make certain
-that everyone understands that there is no warranty for this free
-library. If the library is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original
-version, so that any problems introduced by others will not reflect on
-the original authors' reputations.
-
- Finally, any free program is threatened constantly by software
-patents. We wish to avoid the danger that companies distributing free
-software will individually obtain patent licenses, thus in effect
-transforming the program into proprietary software. To prevent this,
-we have made it clear that any patent must be licensed for everyone's
-free use or not licensed at all.
-
- Most GNU software, including some libraries, is covered by the ordinary
-GNU General Public License, which was designed for utility programs. This
-license, the GNU Library General Public License, applies to certain
-designated libraries. This license is quite different from the ordinary
-one; be sure to read it in full, and don't assume that anything in it is
-the same as in the ordinary license.
-
- The reason we have a separate public license for some libraries is that
-they blur the distinction we usually make between modifying or adding to a
-program and simply using it. Linking a program with a library, without
-changing the library, is in some sense simply using the library, and is
-analogous to running a utility program or application program. However, in
-a textual and legal sense, the linked executable is a combined work, a
-derivative of the original library, and the ordinary General Public License
-treats it as such.
-
- Because of this blurred distinction, using the ordinary General
-Public License for libraries did not effectively promote software
-sharing, because most developers did not use the libraries. We
-concluded that weaker conditions might promote sharing better.
-
- However, unrestricted linking of non-free programs would deprive the
-users of those programs of all benefit from the free status of the
-libraries themselves. This Library General Public License is intended to
-permit developers of non-free programs to use free libraries, while
-preserving your freedom as a user of such programs to change the free
-libraries that are incorporated in them. (We have not seen how to achieve
-this as regards changes in header files, but we have achieved it as regards
-changes in the actual functions of the Library.) The hope is that this
-will lead to faster development of free libraries.
-
- The precise terms and conditions for copying, distribution and
-modification follow. Pay close attention to the difference between a
-"work based on the library" and a "work that uses the library". The
-former contains code derived from the library, while the latter only
-works together with the library.
-
- Note that it is possible for a library to be covered by the ordinary
-General Public License rather than by this special one.
-
- GNU LIBRARY GENERAL PUBLIC LICENSE
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
- 0. This License Agreement applies to any software library which
-contains a notice placed by the copyright holder or other authorized
-party saying it may be distributed under the terms of this Library
-General Public License (also called "this License"). Each licensee is
-addressed as "you".
-
- A "library" means a collection of software functions and/or data
-prepared so as to be conveniently linked with application programs
-(which use some of those functions and data) to form executables.
-
- The "Library", below, refers to any such software library or work
-which has been distributed under these terms. A "work based on the
-Library" means either the Library or any derivative work under
-copyright law: that is to say, a work containing the Library or a
-portion of it, either verbatim or with modifications and/or translated
-straightforwardly into another language. (Hereinafter, translation is
-included without limitation in the term "modification".)
-
- "Source code" for a work means the preferred form of the work for
-making modifications to it. For a library, complete source code means
-all the source code for all modules it contains, plus any associated
-interface definition files, plus the scripts used to control compilation
-and installation of the library.
-
- Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of
-running a program using the Library is not restricted, and output from
-such a program is covered only if its contents constitute a work based
-on the Library (independent of the use of the Library in a tool for
-writing it). Whether that is true depends on what the Library does
-and what the program that uses the Library does.
-
- 1. You may copy and distribute verbatim copies of the Library's
-complete source code as you receive it, in any medium, provided that
-you conspicuously and appropriately publish on each copy an
-appropriate copyright notice and disclaimer of warranty; keep intact
-all the notices that refer to this License and to the absence of any
-warranty; and distribute a copy of this License along with the
-Library.
-
- You may charge a fee for the physical act of transferring a copy,
-and you may at your option offer warranty protection in exchange for a
-fee.
-
- 2. You may modify your copy or copies of the Library or any portion
-of it, thus forming a work based on the Library, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
- a) The modified work must itself be a software library.
-
- b) You must cause the files modified to carry prominent notices
- stating that you changed the files and the date of any change.
-
- c) You must cause the whole of the work to be licensed at no
- charge to all third parties under the terms of this License.
-
- d) If a facility in the modified Library refers to a function or a
- table of data to be supplied by an application program that uses
- the facility, other than as an argument passed when the facility
- is invoked, then you must make a good faith effort to ensure that,
- in the event an application does not supply such function or
- table, the facility still operates, and performs whatever part of
- its purpose remains meaningful.
-
- (For example, a function in a library to compute square roots has
- a purpose that is entirely well-defined independent of the
- application. Therefore, Subsection 2d requires that any
- application-supplied function or table used by this function must
- be optional: if the application does not supply it, the square
- root function must still compute square roots.)
-
-These requirements apply to the modified work as a whole. If
-identifiable sections of that work are not derived from the Library,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
-distribute the same sections as part of a whole which is a work based
-on the Library, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote
-it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Library.
-
-In addition, mere aggregation of another work not based on the Library
-with the Library (or with a work based on the Library) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
- 3. You may opt to apply the terms of the ordinary GNU General Public
-License instead of this License to a given copy of the Library. To do
-this, you must alter all the notices that refer to this License, so
-that they refer to the ordinary GNU General Public License, version 2,
-instead of to this License. (If a newer version than version 2 of the
-ordinary GNU General Public License has appeared, then you can specify
-that version instead if you wish.) Do not make any other change in
-these notices.
-
- Once this change is made in a given copy, it is irreversible for
-that copy, so the ordinary GNU General Public License applies to all
-subsequent copies and derivative works made from that copy.
-
- This option is useful when you wish to copy part of the code of
-the Library into a program that is not a library.
-
- 4. You may copy and distribute the Library (or a portion or
-derivative of it, under Section 2) in object code or executable form
-under the terms of Sections 1 and 2 above provided that you accompany
-it with the complete corresponding machine-readable source code, which
-must be distributed under the terms of Sections 1 and 2 above on a
-medium customarily used for software interchange.
-
- If distribution of object code is made by offering access to copy
-from a designated place, then offering equivalent access to copy the
-source code from the same place satisfies the requirement to
-distribute the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
- 5. A program that contains no derivative of any portion of the
-Library, but is designed to work with the Library by being compiled or
-linked with it, is called a "work that uses the Library". Such a
-work, in isolation, is not a derivative work of the Library, and
-therefore falls outside the scope of this License.
-
- However, linking a "work that uses the Library" with the Library
-creates an executable that is a derivative of the Library (because it
-contains portions of the Library), rather than a "work that uses the
-library". The executable is therefore covered by this License.
-Section 6 states terms for distribution of such executables.
-
- When a "work that uses the Library" uses material from a header file
-that is part of the Library, the object code for the work may be a
-derivative work of the Library even though the source code is not.
-Whether this is true is especially significant if the work can be
-linked without the Library, or if the work is itself a library. The
-threshold for this to be true is not precisely defined by law.
-
- If such an object file uses only numerical parameters, data
-structure layouts and accessors, and small macros and small inline
-functions (ten lines or less in length), then the use of the object
-file is unrestricted, regardless of whether it is legally a derivative
-work. (Executables containing this object code plus portions of the
-Library will still fall under Section 6.)
-
- Otherwise, if the work is a derivative of the Library, you may
-distribute the object code for the work under the terms of Section 6.
-Any executables containing that work also fall under Section 6,
-whether or not they are linked directly with the Library itself.
-
- 6. As an exception to the Sections above, you may also compile or
-link a "work that uses the Library" with the Library to produce a
-work containing portions of the Library, and distribute that work
-under terms of your choice, provided that the terms permit
-modification of the work for the customer's own use and reverse
-engineering for debugging such modifications.
-
- You must give prominent notice with each copy of the work that the
-Library is used in it and that the Library and its use are covered by
-this License. You must supply a copy of this License. If the work
-during execution displays copyright notices, you must include the
-copyright notice for the Library among them, as well as a reference
-directing the user to the copy of this License. Also, you must do one
-of these things:
-
- a) Accompany the work with the complete corresponding
- machine-readable source code for the Library including whatever
- changes were used in the work (which must be distributed under
- Sections 1 and 2 above); and, if the work is an executable linked
- with the Library, with the complete machine-readable "work that
- uses the Library", as object code and/or source code, so that the
- user can modify the Library and then relink to produce a modified
- executable containing the modified Library. (It is understood
- that the user who changes the contents of definitions files in the
- Library will not necessarily be able to recompile the application
- to use the modified definitions.)
-
- b) Accompany the work with a written offer, valid for at
- least three years, to give the same user the materials
- specified in Subsection 6a, above, for a charge no more
- than the cost of performing this distribution.
-
- c) If distribution of the work is made by offering access to copy
- from a designated place, offer equivalent access to copy the above
- specified materials from the same place.
-
- d) Verify that the user has already received a copy of these
- materials or that you have already sent this user a copy.
-
- For an executable, the required form of the "work that uses the
-Library" must include any data and utility programs needed for
-reproducing the executable from it. However, as a special exception,
-the source code distributed need not include anything that is normally
-distributed (in either source or binary form) with the major
-components (compiler, kernel, and so on) of the operating system on
-which the executable runs, unless that component itself accompanies
-the executable.
-
- It may happen that this requirement contradicts the license
-restrictions of other proprietary libraries that do not normally
-accompany the operating system. Such a contradiction means you cannot
-use both them and the Library together in an executable that you
-distribute.
-
- 7. You may place library facilities that are a work based on the
-Library side-by-side in a single library together with other library
-facilities not covered by this License, and distribute such a combined
-library, provided that the separate distribution of the work based on
-the Library and of the other library facilities is otherwise
-permitted, and provided that you do these two things:
-
- a) Accompany the combined library with a copy of the same work
- based on the Library, uncombined with any other library
- facilities. This must be distributed under the terms of the
- Sections above.
-
- b) Give prominent notice with the combined library of the fact
- that part of it is a work based on the Library, and explaining
- where to find the accompanying uncombined form of the same work.
-
- 8. You may not copy, modify, sublicense, link with, or distribute
-the Library except as expressly provided under this License. Any
-attempt otherwise to copy, modify, sublicense, link with, or
-distribute the Library is void, and will automatically terminate your
-rights under this License. However, parties who have received copies,
-or rights, from you under this License will not have their licenses
-terminated so long as such parties remain in full compliance.
-
- 9. You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Library or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
-modifying or distributing the Library (or any work based on the
-Library), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Library or works based on it.
-
- 10. Each time you redistribute the Library (or any work based on the
-Library), the recipient automatically receives a license from the
-original licensor to copy, distribute, link with or modify the Library
-subject to these terms and conditions. You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
-this License.
-
- 11. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Library at all. For example, if a patent
-license would not permit royalty-free redistribution of the Library by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Library.
-
-If any portion of this section is held invalid or unenforceable under any
-particular circumstance, the balance of the section is intended to apply,
-and the section as a whole is intended to apply in other circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system which is
-implemented by public license practices. Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
- 12. If the distribution and/or use of the Library is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Library under this License may add
-an explicit geographical distribution limitation excluding those countries,
-so that distribution is permitted only in or among countries not thus
-excluded. In such case, this License incorporates the limitation as if
-written in the body of this License.
-
- 13. The Free Software Foundation may publish revised and/or new
-versions of the Library General Public License from time to time.
-Such new versions will be similar in spirit to the present version,
-but may differ in detail to address new problems or concerns.
-
-Each version is given a distinguishing version number. If the Library
-specifies a version number of this License which applies to it and
-"any later version", you have the option of following the terms and
-conditions either of that version or of any later version published by
-the Free Software Foundation. If the Library does not specify a
-license version number, you may choose any version ever published by
-the Free Software Foundation.
-
- 14. If you wish to incorporate parts of the Library into other free
-programs whose distribution conditions are incompatible with these,
-write to the author to ask for permission. For software which is
-copyrighted by the Free Software Foundation, write to the Free
-Software Foundation; we sometimes make exceptions for this. Our
-decision will be guided by the two goals of preserving the free status
-of all derivatives of our free software and of promoting the sharing
-and reuse of software generally.
-
- NO WARRANTY
-
- 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
-WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
-EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
-OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
-KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
-LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
-THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
-
- 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
-WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
-AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
-FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
-CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
-LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
-RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
-FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
-SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
-DAMAGES.
-
- END OF TERMS AND CONDITIONS
-
- Appendix: How to Apply These Terms to Your New Libraries
-
- If you develop a new library, and you want it to be of the greatest
-possible use to the public, we recommend making it free software that
-everyone can redistribute and change. You can do so by permitting
-redistribution under these terms (or, alternatively, under the terms of the
-ordinary General Public License).
-
- To apply these terms, attach the following notices to the library. It is
-safest to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least the
-"copyright" line and a pointer to where the full notice is found.
-
- <one line to give the library's name and a brief idea of what it does.>
- Copyright (C) <year> <name of author>
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public
- License along with this library; if not, write to the Free
- Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
- MA 02111-1307, USA
-
-Also add information on how to contact you by electronic and paper mail.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the library, if
-necessary. Here is a sample; alter the names:
-
- Yoyodyne, Inc., hereby disclaims all copyright interest in the
- library `Frob' (a library for tweaking knobs) written by James Random Hacker.
-
- <signature of Ty Coon>, 1 April 1990
- Ty Coon, President of Vice
-
-That's all there is to it!
diff --git a/contrib/gdb/FREEBSD-Xlist b/contrib/gdb/FREEBSD-Xlist
deleted file mode 100644
index 53f455c8b9d5..000000000000
--- a/contrib/gdb/FREEBSD-Xlist
+++ /dev/null
@@ -1,77 +0,0 @@
-$FreeBSD$
-gdb-*/bfd/*
-gdb-*/config/*
-gdb-*/etc/*
-gdb-*/gdb/avr*
-gdb-*/gdb/config/avr/*
-gdb-*/gdb/config/cris/*
-gdb-*/gdb/config/d10v/*
-gdb-*/gdb/config/djgpp/*
-gdb-*/gdb/config/frv/*
-gdb-*/gdb/config/h8300/*
-gdb-*/gdb/config/m32r/*
-gdb-*/gdb/config/m68hc11/*
-gdb-*/gdb/config/m68k/*
-gdb-*/gdb/config/mcore/*
-gdb-*/gdb/config/mn10300/*
-gdb-*/gdb/config/ns32k/*
-gdb-*/gdb/config/pa/*
-gdb-*/gdb/config/sh/*
-gdb-*/gdb/config/v850/*
-gdb-*/gdb/config/vax/*
-gdb-*/gdb/config/xstormy16/*
-gdb-*/gdb/cris*
-gdb-*/gdb/d10v*
-gdb-*/gdb/frv*
-gdb-*/gdb/h8300*
-gdb-*/gdb/iq2000*
-gdb-*/gdb/i386nbsd*
-gdb-*/gdb/m32c*
-gdb-*/gdb/*m32r*
-gdb-*/gdb/m68*
-gdb-*/gdb/m88*
-gdb-*/gdb/mcore*
-gdb-*/gdb/mn10300*
-gdb-*/gdb/mt-*
-gdb-*/gdb/nlm/*
-gdb-*/gdb/ns32k*
-gdb-*/gdb/osf-share/*
-gdb-*/gdb/ppcobsd*
-gdb-*/gdb/hppa*
-gdb-*/gdb/rdi-share/*
-gdb-*/gdb/sh*
-gdb-*/gdb/testsuite/*
-gdb-*/gdb/v850*
-gdb-*/gdb/vax*
-gdb-*/gdb/vx-share/*
-gdb-*/gdb/xstormy16*
-gdb-*/gdb/xtensa*
-gdb-*/include/aout/*
-gdb-*/include/coff/*
-gdb-*/include/elf/*
-gdb-*/include/mpw/*
-gdb-*/include/nlm/*
-gdb-*/include/opcode/*
-gdb-*/intl/*
-gdb-*/libiberty/*
-gdb-*/mmalloc/*
-gdb-*/opcodes/*
-gdb-*/readline/*
-gdb-*/regformats/reg-cris*
-gdb-*/sim/*
-gdb-*/texinfo/*
-gdb-*/utils/*
-*ChangeLog*
-*Makefile*
-*TODO*
-*aix*
-*config.*
-*configure*
-*cygwin*
-*hpux*
-*interix*
-*irix*
-*linux*
-*mingw*
-*osf1*
-*win32*
diff --git a/contrib/gdb/FREEBSD-diffs b/contrib/gdb/FREEBSD-diffs
deleted file mode 100644
index 3f84f9dc2732..000000000000
--- a/contrib/gdb/FREEBSD-diffs
+++ /dev/null
@@ -1,965 +0,0 @@
-Index: gdb/ia64-fbsd-nat.c
-===================================================================
-RCS file: gdb/ia64-fbsd-nat.c
-diff -N gdb/ia64-fbsd-nat.c
---- /dev/null 1 Jan 1970 00:00:00 -0000
-+++ gdb/ia64-fbsd-nat.c 17 Apr 2004 19:39:20 -0000 1.3
-@@ -0,0 +1,145 @@
-+/*
-+ * Copyright (c) 2004 Marcel Moolenaar
-+ * All rights reserved.
-+ *
-+ * Redistribution and use in source and binary forms, with or without
-+ * modification, are permitted provided that the following conditions
-+ * are met:
-+ *
-+ * 1. Redistributions of source code must retain the above copyright
-+ * notice, this list of conditions and the following disclaimer.
-+ * 2. Redistributions in binary form must reproduce the above copyright
-+ * notice, this list of conditions and the following disclaimer in the
-+ * documentation and/or other materials provided with the distribution.
-+ *
-+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
-+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
-+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
-+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
-+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
-+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-+ */
-+
-+#include "defs.h"
-+#include "inferior.h"
-+#include "regcache.h"
-+
-+#include <sys/types.h>
-+#include <sys/ptrace.h>
-+#include <machine/reg.h>
-+
-+#ifdef HAVE_SYS_PROCFS_H
-+#include <sys/procfs.h>
-+#endif
-+
-+#ifndef HAVE_GREGSET_T
-+typedef struct reg gregset_t;
-+#endif
-+
-+#ifndef HAVE_FPREGSET_T
-+typedef struct fpreg fpregset_t;
-+#endif
-+
-+#include "gregset.h"
-+
-+#define FPREG_SUPPLIES(r) ((r) >= IA64_FR0_REGNUM && (r) <= IA64_FR127_REGNUM)
-+#define GREG_SUPPLIES(r) (!FPREG_SUPPLIES(r))
-+
-+/* XXX need to go away. */
-+void ia64_fbsd_supply_fpregs (void *, int);
-+void ia64_fbsd_supply_gregs (void *, int);
-+
-+void
-+fetch_inferior_registers (int regno)
-+{
-+ union {
-+ fpregset_t fpr;
-+ gregset_t r;
-+ } regs;
-+
-+ if (regno == -1 || GREG_SUPPLIES(regno))
-+ {
-+ if (ptrace (PT_GETREGS, PIDGET(inferior_ptid),
-+ (PTRACE_ARG3_TYPE)&regs.r, 0) == -1)
-+ perror_with_name ("Couldn't get registers");
-+ ia64_fbsd_supply_gregs (&regs.r, regno);
-+ if (regno != -1)
-+ return;
-+ }
-+
-+ if (regno == -1 || FPREG_SUPPLIES(regno))
-+ {
-+ if (ptrace (PT_GETFPREGS, PIDGET(inferior_ptid),
-+ (PTRACE_ARG3_TYPE)&regs.fpr, 0) == -1)
-+ perror_with_name ("Couldn't get FP registers");
-+ ia64_fbsd_supply_fpregs (&regs.fpr, regno);
-+ if (regno != -1)
-+ return;
-+ }
-+}
-+
-+void
-+store_inferior_registers (int regno)
-+{
-+ union {
-+ fpregset_t fpr;
-+ gregset_t r;
-+ } regs;
-+
-+ if (regno == -1 || GREG_SUPPLIES(regno))
-+ {
-+ if (ptrace (PT_GETREGS, PIDGET(inferior_ptid),
-+ (PTRACE_ARG3_TYPE)&regs.r, 0) == -1)
-+ perror_with_name ("Couldn't get registers");
-+ fill_gregset (&regs.r, regno);
-+ if (ptrace (PT_SETREGS, PIDGET(inferior_ptid),
-+ (PTRACE_ARG3_TYPE)&regs.r, 0) == -1)
-+ perror_with_name ("Couldn't get registers");
-+ if (regno != -1)
-+ return;
-+ }
-+
-+ if (regno == -1 || FPREG_SUPPLIES(regno))
-+ {
-+ if (ptrace (PT_GETFPREGS, PIDGET(inferior_ptid),
-+ (PTRACE_ARG3_TYPE)&regs.fpr, 0) == -1)
-+ perror_with_name ("Couldn't get FP registers");
-+ fill_fpregset (&regs.fpr, regno);
-+ if (ptrace (PT_SETFPREGS, PIDGET(inferior_ptid),
-+ (PTRACE_ARG3_TYPE)&regs.fpr, 0) == -1)
-+ perror_with_name ("Couldn't get FP registers");
-+ if (regno != -1)
-+ return;
-+ }
-+}
-+
-+LONGEST ia64_fbsd_xfer_dirty (struct target_ops *ops, enum target_object obj,
-+ const char *annex, void *rbuf, const void *wbuf,
-+ ULONGEST ofs, LONGEST len)
-+{
-+ if (len != 8)
-+ return (-1);
-+ if (rbuf != NULL) {
-+ if (ptrace (PT_GETKSTACK, PIDGET(inferior_ptid), (PTRACE_ARG3_TYPE)rbuf,
-+ ofs >> 3) == -1) {
-+ perror_with_name ("Couldn't read dirty register");
-+ return (-1);
-+ }
-+ } else {
-+ if (ptrace (PT_SETKSTACK, PIDGET(inferior_ptid), (PTRACE_ARG3_TYPE)wbuf,
-+ ofs >> 3) == -1) {
-+ perror_with_name ("Couldn't write dirty register");
-+ return (-1);
-+ }
-+ }
-+ return (len);
-+}
-+
-+void
-+_initialize_ia64_fbsd_nat (void)
-+{
-+}
-Index: gdb/ia64-fbsd-tdep.c
-===================================================================
-RCS file: gdb/ia64-fbsd-tdep.c
-diff -N gdb/ia64-fbsd-tdep.c
---- /dev/null 1 Jan 1970 00:00:00 -0000
-+++ gdb/ia64-fbsd-tdep.c 17 Apr 2004 19:39:20 -0000 1.6
-@@ -0,0 +1,291 @@
-+/*
-+ * Copyright (c) 2004 Marcel Moolenaar
-+ * All rights reserved.
-+ *
-+ * Redistribution and use in source and binary forms, with or without
-+ * modification, are permitted provided that the following conditions
-+ * are met:
-+ *
-+ * 1. Redistributions of source code must retain the above copyright
-+ * notice, this list of conditions and the following disclaimer.
-+ * 2. Redistributions in binary form must reproduce the above copyright
-+ * notice, this list of conditions and the following disclaimer in the
-+ * documentation and/or other materials provided with the distribution.
-+ *
-+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
-+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
-+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
-+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
-+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
-+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-+ */
-+
-+#include "defs.h"
-+#include "gdb_string.h"
-+#include "regcache.h"
-+#include "regset.h"
-+#include "solib-svr4.h"
-+#include "value.h"
-+
-+#include "ia64-tdep.h"
-+
-+#define FPREG_SUPPLIES(r) ((r) >= IA64_FR0_REGNUM && (r) <= IA64_FR127_REGNUM)
-+#define GREG_SUPPLIES(r) (!FPREG_SUPPLIES(r))
-+
-+static int reg_offset[462] = {
-+ -1, 96, 248, 256, 152, 160, 168, 176, /* Regs 0-7. */
-+ 264, 272, 280, 288, 0, 64, 296, 304, /* Regs 8-15. */
-+ 312, 320, 328, 336, 344, 352, 360, 368, /* Regs 16-23. */
-+ 376, 384, 392, 400, 408, 416, 424, 432, /* Regs 24-31. */
-+ -1, -1, -1, -1, -1, -1, -1, -1, /* Regs 32-39. */
-+ -1, -1, -1, -1, -1, -1, -1, -1, /* Regs 40-47. */
-+ -1, -1, -1, -1, -1, -1, -1, -1, /* Regs 48-55. */
-+ -1, -1, -1, -1, -1, -1, -1, -1, /* Regs 56-63. */
-+ -1, -1, -1, -1, -1, -1, -1, -1, /* Regs 64-71. */
-+ -1, -1, -1, -1, -1, -1, -1, -1, /* Regs 72-79. */
-+ -1, -1, -1, -1, -1, -1, -1, -1, /* Regs 80-87. */
-+ -1, -1, -1, -1, -1, -1, -1, -1, /* Regs 88-95. */
-+ -1, -1, -1, -1, -1, -1, -1, -1, /* Regs 96-103. */
-+ -1, -1, -1, -1, -1, -1, -1, -1, /* Regs 104-111. */
-+ -1, -1, -1, -1, -1, -1, -1, -1, /* Regs 112-119. */
-+ -1, -1, -1, -1, -1, -1, -1, -1, /* Regs 120-127. */
-+ -1, -1, 0, 16, 32, 48, 320, 336, /* Regs 128-135. */
-+ 352, 368, 384, 400, 416, 432, 448, 464, /* Regs 136-143. */
-+ 64, 80, 96, 112, 128, 144, 160, 176, /* Regs 144-151. */
-+ 192, 208, 224, 240, 256, 272, 288, 304, /* Regs 152-159. */
-+ 480, 496, 512, 528, 544, 560, 576, 592, /* Regs 160-167. */
-+ 608, 624, 640, 656, 672, 688, 704, 720, /* Regs 168-175. */
-+ 736, 752, 768, 784, 800, 816, 832, 848, /* Regs 176-183. */
-+ 864, 880, 896, 912, 928, 944, 960, 976, /* Regs 184-191. */
-+ 992, 1008, 1024, 1040, 1056, 1072, 1088, 1104, /* Regs 192-199. */
-+ 1120, 1136, 1152, 1168, 1184, 1200, 1216, 1232, /* Regs 200-207. */
-+ 1248, 1264, 1280, 1296, 1312, 1328, 1344, 1360, /* Regs 208-215. */
-+ 1376, 1392, 1408, 1424, 1440, 1456, 1472, 1488, /* Regs 216-223. */
-+ 1504, 1520, 1536, 1552, 1568, 1584, 1600, 1616, /* Regs 224-231. */
-+ 1632, 1648, 1664, 1680, 1696, 1712, 1728, 1744, /* Regs 232-239. */
-+ 1760, 1776, 1792, 1808, 1824, 1840, 1856, 1872, /* Regs 240-247. */
-+ 1888, 1904, 1920, 1936, 1952, 1968, 1984, 2000, /* Regs 248-255. */
-+ -1, -1, -1, -1, -1, -1, -1, -1, /* Regs 256-263. */
-+ -1, -1, -1, -1, -1, -1, -1, -1, /* Regs 264-271. */
-+ -1, -1, -1, -1, -1, -1, -1, -1, /* Regs 272-279. */
-+ -1, -1, -1, -1, -1, -1, -1, -1, /* Regs 280-287. */
-+ -1, -1, -1, -1, -1, -1, -1, -1, /* Regs 288-295. */
-+ -1, -1, -1, -1, -1, -1, -1, -1, /* Regs 296-303. */
-+ -1, -1, -1, -1, -1, -1, -1, -1, /* Regs 304-311. */
-+ -1, -1, -1, -1, -1, -1, -1, -1, /* Regs 312-319. */
-+ 16, 184, 192, 200, 208, 216, 440, 448, /* Regs 320-327. */
-+ -1, -1, 24, 120, 88, 112, -1, -1, /* Regs 328-335. */
-+ -1, -1, -1, -1, -1, -1, -1, -1, /* Regs 336-343. */
-+ -1, -1, -1, -1, -1, -1, 72, 104, /* Regs 344-351. */
-+ 40, 48, -1, -1, -1, -1, -1, 464, /* Regs 352-359. */
-+ 472, -1, -1, -1, -1, -1, 456, -1, /* Regs 360-367. */
-+ -1, -1, 8, -1, -1, -1, 80, -1, /* Regs 368-375. */
-+ -1, -1, -1, -1, -1, -1, -1, -1, /* Regs 376-383. */
-+ -1, -1, -1, -1, -1, -1, -1, -1, /* Regs 384-391. */
-+ -1, -1, -1, -1, -1, -1, 32, 224, /* Regs 392-399. */
-+ -1, -1, -1, -1, -1, -1, -1, -1, /* Regs 400-407. */
-+ -1, -1, -1, -1, -1, -1, -1, -1, /* Regs 408-415. */
-+ -1, -1, -1, -1, -1, -1, -1, -1, /* Regs 416-423. */
-+ -1, -1, -1, -1, -1, -1, -1, -1, /* Regs 424-431. */
-+ -1, -1, -1, -1, -1, -1, -1, -1, /* Regs 432-439. */
-+ -1, -1, -1, -1, -1, -1, -1, -1, /* Regs 440-447. */
-+ -1, -1, -1, -1, -1, -1, -1, -1, /* Regs 448-455. */
-+ -1, -1, -1, -1, -1, -1
-+};
-+
-+static void
-+ia64_fbsd_regcache_collect (struct regcache *regcache, int regno,
-+ void *regs)
-+{
-+ int ofs;
-+
-+ if (regno < 0 || regno >= NUM_REGS)
-+ return;
-+
-+ ofs = reg_offset[regno];
-+ if (ofs >= 0)
-+ regcache_raw_collect (regcache, regno, (char*)regs + ofs);
-+}
-+
-+static void
-+ia64_fbsd_regcache_supply (struct regcache *regcache, int regno,
-+ const void *regs)
-+{
-+ int ofs;
-+
-+ if (regno < 0 || regno >= NUM_REGS)
-+ return;
-+
-+ ofs = reg_offset[regno];
-+ if (regno == IA64_BSP_REGNUM)
-+ {
-+ /* BSP is synthesized. It's not actually present in struct reg,
-+ but can be derived from bspstore and ndirty. The offset of
-+ IA64_BSP_REGNUM in the reg_offset array above is that of the
-+ ndirty field in struct reg. */
-+ uint64_t bsp;
-+ bsp = *((uint64_t*)((char *)regs + ofs)); /* ndirty */
-+ bsp += *((uint64_t*)((char *)regs + reg_offset[IA64_BSPSTORE_REGNUM]));
-+ regcache_raw_supply (regcache, regno, &bsp);
-+ }
-+ else
-+ {
-+ if (ofs < 0)
-+ regcache_raw_supply (regcache, regno, NULL);
-+ else
-+ regcache_raw_supply (regcache, regno, (char *)regs + ofs);
-+ }
-+}
-+
-+void
-+fill_fpregset (void *fpregs, int regno)
-+{
-+ if (regno == -1)
-+ {
-+ for (regno = 0; regno < NUM_REGS; regno++)
-+ {
-+ if (FPREG_SUPPLIES(regno))
-+ ia64_fbsd_regcache_collect (current_regcache, regno, fpregs);
-+ }
-+ }
-+ else
-+ {
-+ if (FPREG_SUPPLIES(regno))
-+ ia64_fbsd_regcache_collect (current_regcache, regno, fpregs);
-+ }
-+}
-+
-+void
-+fill_gregset (void *gregs, int regno)
-+{
-+ if (regno == -1)
-+ {
-+ for (regno = 0; regno < NUM_REGS; regno++)
-+ {
-+ if (GREG_SUPPLIES(regno))
-+ ia64_fbsd_regcache_collect (current_regcache, regno, gregs);
-+ }
-+ }
-+ else
-+ {
-+ if (GREG_SUPPLIES(regno))
-+ ia64_fbsd_regcache_collect (current_regcache, regno, gregs);
-+ }
-+}
-+
-+void
-+ia64_fbsd_supply_fpregs (const void *fpregs, int regno)
-+{
-+ if (regno == -1)
-+ {
-+ for (regno = 0; regno < NUM_REGS; regno++)
-+ {
-+ if (FPREG_SUPPLIES(regno))
-+ ia64_fbsd_regcache_supply (current_regcache, regno, fpregs);
-+ }
-+ }
-+ else
-+ {
-+ if (FPREG_SUPPLIES(regno))
-+ ia64_fbsd_regcache_supply (current_regcache, regno, fpregs);
-+ }
-+}
-+
-+void
-+ia64_fbsd_supply_gregs (const void *gregs, int regno)
-+{
-+ if (regno == -1)
-+ {
-+ for (regno = 0; regno < NUM_REGS; regno++)
-+ {
-+ if (GREG_SUPPLIES(regno))
-+ ia64_fbsd_regcache_supply (current_regcache, regno, gregs);
-+ }
-+ }
-+ else
-+ {
-+ if (GREG_SUPPLIES(regno))
-+ ia64_fbsd_regcache_supply (current_regcache, regno, gregs);
-+ }
-+}
-+
-+static void
-+ia64_fbsd_supply_gregset (const struct regset *regset,
-+ struct regcache *regcache, int regno,
-+ const void *gregs, size_t len)
-+{
-+ if (regno == -1)
-+ {
-+ for (regno = 0; regno < NUM_REGS; regno++)
-+ {
-+ if (GREG_SUPPLIES(regno))
-+ ia64_fbsd_regcache_supply (regcache, regno, gregs);
-+ }
-+ }
-+ else
-+ if (GREG_SUPPLIES(regno))
-+ ia64_fbsd_regcache_supply (regcache, regno, gregs);
-+}
-+
-+static void
-+ia64_fbsd_supply_fpregset (const struct regset *regset,
-+ struct regcache *regcache, int regno,
-+ const void *fpregs, size_t len)
-+{
-+ if (regno == -1)
-+ {
-+ for (regno = 0; regno < NUM_REGS; regno++)
-+ {
-+ if (FPREG_SUPPLIES(regno))
-+ ia64_fbsd_regcache_supply (regcache, regno, fpregs);
-+ }
-+ }
-+ else
-+ if (FPREG_SUPPLIES(regno))
-+ ia64_fbsd_regcache_supply (regcache, regno, fpregs);
-+}
-+
-+static struct regset gregset = { NULL, ia64_fbsd_supply_gregset };
-+static struct regset fpregset = { NULL, ia64_fbsd_supply_fpregset };
-+
-+static const struct regset *
-+ia64_fbsd_regset_from_core_section (struct gdbarch *gdbarch,
-+ const char *sect_name, size_t sect_size)
-+{
-+ if (strcmp (sect_name, ".reg") == 0)
-+ return (&gregset);
-+ if (strcmp (sect_name, ".reg2") == 0)
-+ return (&fpregset);
-+ return (NULL);
-+}
-+
-+static int
-+ia64_fbsd_pc_in_sigtramp (CORE_ADDR pc, char *func_name)
-+{
-+ uint64_t gwpage = 5ULL << 61;
-+ return (pc >= gwpage && pc < (gwpage + 8192)) ? 1 : 0;
-+}
-+
-+static void
-+ia64_fbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
-+{
-+ struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
-+
-+ set_gdbarch_pc_in_sigtramp (gdbarch, ia64_fbsd_pc_in_sigtramp);
-+ set_gdbarch_regset_from_core_section (gdbarch,
-+ ia64_fbsd_regset_from_core_section);
-+ set_solib_svr4_fetch_link_map_offsets (gdbarch,
-+ svr4_lp64_fetch_link_map_offsets);
-+ tdep->find_global_pointer = ia64_generic_find_global_pointer;
-+}
-+
-+void
-+_initialize_ia64_fbsd_tdep (void)
-+{
-+ gdbarch_register_osabi (bfd_arch_ia64, 0ul, GDB_OSABI_FREEBSD_ELF,
-+ ia64_fbsd_init_abi);
-+}
-Index: gdb/ia64-tdep.c
-===================================================================
-RCS file: /home/marcel/CVS/gdb6/gdb/ia64-tdep.c,v
-retrieving revision 1.1.1.3
-retrieving revision 1.5
-diff -u -r1.1.1.3 -r1.5
---- gdb/ia64-tdep.c 16 Apr 2004 00:51:25 -0000 1.1.1.3
-+++ gdb/ia64-tdep.c 16 Apr 2004 01:28:33 -0000 1.5
-@@ -45,17 +45,6 @@
- #include "libunwind-ia64.h"
- #endif
-
--/* Hook for determining the global pointer when calling functions in
-- the inferior under AIX. The initialization code in ia64-aix-nat.c
-- sets this hook to the address of a function which will find the
-- global pointer for a given address.
--
-- The generic code which uses the dynamic section in the inferior for
-- finding the global pointer is not of much use on AIX since the
-- values obtained from the inferior have not been relocated. */
--
--CORE_ADDR (*native_find_global_pointer) (CORE_ADDR) = 0;
--
- /* An enumeration of the different IA-64 instruction types. */
-
- typedef enum instruction_type
-@@ -256,20 +245,6 @@
-
- };
-
--struct gdbarch_tdep
-- {
-- CORE_ADDR (*sigcontext_register_address) (CORE_ADDR, int);
-- /* OS specific function which, given a frame address
-- and register number, returns the offset to the
-- given register from the start of the frame. */
-- CORE_ADDR (*find_global_pointer) (CORE_ADDR);
-- };
--
--#define SIGCONTEXT_REGISTER_ADDRESS \
-- (gdbarch_tdep (current_gdbarch)->sigcontext_register_address)
--#define FIND_GLOBAL_POINTER \
-- (gdbarch_tdep (current_gdbarch)->find_global_pointer)
--
- int
- ia64_register_reggroup_p (struct gdbarch *gdbarch, int regnum,
- struct reggroup *group)
-@@ -682,9 +657,18 @@
-
- if ((cfm & 0x7f) > regnum - V32_REGNUM)
- {
-+ ULONGEST bspstore;
- ULONGEST reg_addr = rse_address_add (bsp, (regnum - V32_REGNUM));
-- reg = read_memory_integer ((CORE_ADDR)reg_addr, 8);
-- store_unsigned_integer (buf, register_size (current_gdbarch, regnum), reg);
-+ regcache_cooked_read_unsigned (regcache, IA64_BSPSTORE_REGNUM,
-+ &bspstore);
-+ if (reg_addr < bspstore) {
-+ reg = read_memory_integer ((CORE_ADDR)reg_addr, 8);
-+ store_unsigned_integer (buf, register_size (current_gdbarch,
-+ regnum), reg);
-+ } else
-+ target_read_partial (&current_target, TARGET_OBJECT_DIRTY,
-+ (void*)bspstore, buf, reg_addr - bspstore,
-+ register_size (current_gdbarch, regnum));
- }
- else
- store_unsigned_integer (buf, register_size (current_gdbarch, regnum), 0);
-@@ -725,7 +709,21 @@
- if (nat_addr >= bsp)
- regcache_cooked_read_unsigned (regcache, IA64_RNAT_REGNUM, &nat_collection);
- else
-- nat_collection = read_memory_integer (nat_addr, 8);
-+ {
-+ ULONGEST bspstore;
-+ regcache_cooked_read_unsigned (regcache, IA64_BSPSTORE_REGNUM,
-+ &bspstore);
-+ if (nat_addr < bspstore)
-+ nat_collection = read_memory_integer (nat_addr, 8);
-+ else {
-+ char natbuf[8];
-+ target_read_partial (&current_target, TARGET_OBJECT_DIRTY,
-+ (void*)bspstore, natbuf,
-+ nat_addr - bspstore,
-+ register_size (current_gdbarch, regnum));
-+ nat_collection = *((uint64_t*)natbuf);
-+ }
-+ }
- nat_bit = (gr_addr >> 3) & 0x3f;
- natN_val = (nat_collection >> nat_bit) & 1;
- }
-@@ -789,8 +787,16 @@
-
- if ((cfm & 0x7f) > regnum - V32_REGNUM)
- {
-+ ULONGEST bspstore;
- ULONGEST reg_addr = rse_address_add (bsp, (regnum - V32_REGNUM));
-- write_memory (reg_addr, (void *)buf, 8);
-+ regcache_cooked_read_unsigned (regcache, IA64_BSPSTORE_REGNUM,
-+ &bspstore);
-+ if (reg_addr < bspstore)
-+ write_memory (reg_addr, (void *)buf, 8);
-+ else
-+ target_write_partial (&current_target, TARGET_OBJECT_DIRTY,
-+ (void*)bspstore, buf, reg_addr - bspstore,
-+ register_size (current_gdbarch, regnum));
- }
- }
- else if (IA64_NAT0_REGNUM <= regnum && regnum <= IA64_NAT31_REGNUM)
-@@ -845,13 +851,33 @@
- else
- {
- char nat_buf[8];
-- nat_collection = read_memory_integer (nat_addr, 8);
-+ ULONGEST bspstore;
-+ regcache_cooked_read_unsigned (regcache, IA64_BSPSTORE_REGNUM,
-+ &bspstore);
-+ if (nat_addr < bspstore)
-+ nat_collection = read_memory_integer (nat_addr, 8);
-+ else {
-+ char natbuf[8];
-+ target_read_partial (&current_target, TARGET_OBJECT_DIRTY,
-+ (void*)bspstore, natbuf,
-+ nat_addr - bspstore,
-+ register_size (current_gdbarch, regnum));
-+ nat_collection = *((uint64_t*)natbuf);
-+ }
- if (natN_val)
- nat_collection |= natN_mask;
- else
- nat_collection &= ~natN_mask;
-- store_unsigned_integer (nat_buf, register_size (current_gdbarch, regnum), nat_collection);
-- write_memory (nat_addr, nat_buf, 8);
-+ store_unsigned_integer (nat_buf, register_size (current_gdbarch,
-+ regnum),
-+ nat_collection);
-+ if (nat_addr < bspstore)
-+ write_memory (nat_addr, nat_buf, 8);
-+ else
-+ target_write_partial (&current_target, TARGET_OBJECT_DIRTY,
-+ (void*)bspstore, nat_buf,
-+ nat_addr - bspstore,
-+ register_size (current_gdbarch, regnum));
- }
- }
- }
-@@ -1813,6 +1839,7 @@
- prev_bof = rse_address_add (prev_bsp, -(prev_cfm & 0x7f));
-
- addr = rse_address_add (prev_bof, (regnum - IA64_GR32_REGNUM));
-+ /* XXX marcel */
- *lvalp = lval_memory;
- *addrp = addr;
- read_memory (addr, valuep, register_size (current_gdbarch, regnum));
-@@ -2858,8 +2885,8 @@
- DT_PLTGOT tag. If it finds one of these, the corresponding
- d_un.d_ptr value is the global pointer. */
-
--static CORE_ADDR
--generic_elf_find_global_pointer (CORE_ADDR faddr)
-+CORE_ADDR
-+ia64_generic_find_global_pointer (CORE_ADDR faddr)
- {
- struct obj_section *faddr_sect;
-
-@@ -3255,32 +3282,9 @@
-
- tdep = xmalloc (sizeof (struct gdbarch_tdep));
- gdbarch = gdbarch_alloc (&info, tdep);
--
-- /* Set the method of obtaining the sigcontext addresses at which
-- registers are saved. The method of checking to see if
-- native_find_global_pointer is nonzero to indicate that we're
-- on AIX is kind of hokey, but I can't think of a better way
-- to do it. */
-- if (info.osabi == GDB_OSABI_LINUX)
-- tdep->sigcontext_register_address = ia64_linux_sigcontext_register_address;
-- else if (native_find_global_pointer != 0)
-- tdep->sigcontext_register_address = ia64_aix_sigcontext_register_address;
-- else
-- tdep->sigcontext_register_address = 0;
--
-- /* We know that GNU/Linux won't have to resort to the
-- native_find_global_pointer hackery. But that's the only one we
-- know about so far, so if native_find_global_pointer is set to
-- something non-zero, then use it. Otherwise fall back to using
-- generic_elf_find_global_pointer. This arrangement should (in
-- theory) allow us to cross debug GNU/Linux binaries from an AIX
-- machine. */
-- if (info.osabi == GDB_OSABI_LINUX)
-- tdep->find_global_pointer = generic_elf_find_global_pointer;
-- else if (native_find_global_pointer != 0)
-- tdep->find_global_pointer = native_find_global_pointer;
-- else
-- tdep->find_global_pointer = generic_elf_find_global_pointer;
-+ tdep->osabi = info.osabi;
-+ tdep->sigcontext_register_address = NULL;
-+ tdep->find_global_pointer = ia64_generic_find_global_pointer;
-
- /* Define the ia64 floating-point format to gdb. */
- builtin_type_ia64_ext =
-@@ -3338,10 +3342,7 @@
- set_gdbarch_memory_remove_breakpoint (gdbarch, ia64_memory_remove_breakpoint);
- set_gdbarch_breakpoint_from_pc (gdbarch, ia64_breakpoint_from_pc);
- set_gdbarch_read_pc (gdbarch, ia64_read_pc);
-- if (info.osabi == GDB_OSABI_LINUX)
-- set_gdbarch_write_pc (gdbarch, ia64_linux_write_pc);
-- else
-- set_gdbarch_write_pc (gdbarch, ia64_write_pc);
-+ set_gdbarch_write_pc (gdbarch, ia64_write_pc);
-
- /* Settings for calling functions in the inferior. */
- set_gdbarch_push_dummy_call (gdbarch, ia64_push_dummy_call);
-@@ -3365,6 +3366,8 @@
-
- set_gdbarch_print_insn (gdbarch, ia64_print_insn);
- set_gdbarch_convert_from_func_ptr_addr (gdbarch, ia64_convert_from_func_ptr_addr);
-+
-+ gdbarch_init_osabi (info, gdbarch);
-
- return gdbarch;
- }
-Index: gdb/ia64-tdep.h
-===================================================================
-RCS file: /home/marcel/CVS/gdb6/gdb/ia64-tdep.h,v
-retrieving revision 1.1.1.1
-retrieving revision 1.2
-diff -u -r1.1.1.1 -r1.2
---- gdb/ia64-tdep.h 26 Mar 2004 02:54:41 -0000 1.1.1.1
-+++ gdb/ia64-tdep.h 28 Mar 2004 03:47:34 -0000 1.2
-@@ -22,10 +22,25 @@
- #ifndef IA64_TDEP_H
- #define IA64_TDEP_H
-
--extern CORE_ADDR ia64_linux_sigcontext_register_address (CORE_ADDR, int);
--extern CORE_ADDR ia64_aix_sigcontext_register_address (CORE_ADDR, int);
--extern unsigned long ia64_linux_getunwind_table (void *, size_t);
--extern void ia64_write_pc (CORE_ADDR, ptid_t);
--extern void ia64_linux_write_pc (CORE_ADDR, ptid_t);
-+#include "osabi.h"
-+
-+/* Target-dependent structure in gdbarch. */
-+struct gdbarch_tdep
-+{
-+ enum gdb_osabi osabi; /* OS/ABI of inferior. */
-+
-+ CORE_ADDR (*sigcontext_register_address) (CORE_ADDR, int);
-+ /* OS specific function which, given a frame address
-+ and register number, returns the offset to the
-+ given register from the start of the frame. */
-+ CORE_ADDR (*find_global_pointer) (CORE_ADDR);
-+};
-+
-+#define SIGCONTEXT_REGISTER_ADDRESS \
-+ (gdbarch_tdep (current_gdbarch)->sigcontext_register_address)
-+#define FIND_GLOBAL_POINTER \
-+ (gdbarch_tdep (current_gdbarch)->find_global_pointer)
-+
-+extern CORE_ADDR ia64_generic_find_global_pointer (CORE_ADDR);
-
- #endif /* IA64_TDEP_H */
-Index: gdb/inftarg.c
-===================================================================
-RCS file: /home/marcel/CVS/gdb6/gdb/inftarg.c,v
-retrieving revision 1.1.1.1
-retrieving revision 1.2
-diff -u -r1.1.1.1 -r1.2
---- gdb/inftarg.c 26 Mar 2004 02:54:41 -0000 1.1.1.1
-+++ gdb/inftarg.c 28 Mar 2004 03:47:34 -0000 1.2
-@@ -592,6 +592,13 @@
- return NATIVE_XFER_WCOOKIE (ops, object, annex, readbuf, writebuf,
- offset, len);
-
-+ case TARGET_OBJECT_DIRTY:
-+#ifndef TARGET_XFER_DIRTY
-+#define TARGET_XFER_DIRTY(OPS,OBJECT,ANNEX,WRITEBUF,READBUF,OFFSET,LEN) (-1)
-+#endif
-+ return TARGET_XFER_DIRTY (ops, object, annex, readbuf, writebuf,
-+ offset, len);
-+
- default:
- return -1;
- }
-Index: gdb/remote.c
-===================================================================
-RCS file: /home/marcel/CVS/gdb6/gdb/remote.c,v
-retrieving revision 1.1.1.3
-retrieving revision 1.5
-diff -u -r1.1.1.3 -r1.5
---- gdb/remote.c 16 Apr 2004 00:51:28 -0000 1.1.1.3
-+++ gdb/remote.c 16 Apr 2004 01:28:33 -0000 1.5
-@@ -998,6 +998,23 @@
- show_packet_config_cmd (&remote_protocol_qPart_auxv);
- }
-
-+/* Should we try the 'qPart:dirty' (target dirty register read) request? */
-+static struct packet_config remote_protocol_qPart_dirty;
-+
-+static void
-+set_remote_protocol_qPart_dirty_packet_cmd (char *args, int from_tty,
-+ struct cmd_list_element *c)
-+{
-+ update_packet_config (&remote_protocol_qPart_dirty);
-+}
-+
-+static void
-+show_remote_protocol_qPart_dirty_packet_cmd (char *args, int from_tty,
-+ struct cmd_list_element *c)
-+{
-+ show_packet_config_cmd (&remote_protocol_qPart_dirty);
-+}
-+
-
- /* Tokens for use by the asynchronous signal handlers for SIGINT */
- static void *sigint_remote_twice_token;
-@@ -2088,6 +2105,7 @@
- downloading. */
- update_packet_config (&remote_protocol_binary_download);
- update_packet_config (&remote_protocol_qPart_auxv);
-+ update_packet_config (&remote_protocol_qPart_dirty);
- }
-
- /* Symbol look-up. */
-@@ -4925,6 +4943,23 @@
- }
- return -1;
-
-+ case TARGET_OBJECT_DIRTY:
-+ if (remote_protocol_qPart_dirty.support != PACKET_DISABLE)
-+ {
-+ snprintf (buf2, rs->remote_packet_size, "qPart:dirty:read::%lx",
-+ (long)(offset >> 3));
-+ i = putpkt (buf2);
-+ if (i < 0)
-+ return i;
-+ buf2[0] = '\0';
-+ getpkt (buf2, rs->remote_packet_size, 0);
-+ if (packet_ok (buf2, &remote_protocol_qPart_dirty) != PACKET_OK)
-+ return -1;
-+ i = hex2bin (buf2, readbuf, len);
-+ return i;
-+ }
-+ return -1;
-+
- default:
- return -1;
- }
-@@ -5423,6 +5458,7 @@
- show_remote_protocol_vcont_packet_cmd (args, from_tty, NULL);
- show_remote_protocol_binary_download_cmd (args, from_tty, NULL);
- show_remote_protocol_qPart_auxv_packet_cmd (args, from_tty, NULL);
-+ show_remote_protocol_qPart_dirty_packet_cmd (args, from_tty, NULL);
- }
-
- static void
-@@ -5670,6 +5706,13 @@
- "qPart_auxv", "read-aux-vector",
- set_remote_protocol_qPart_auxv_packet_cmd,
- show_remote_protocol_qPart_auxv_packet_cmd,
-+ &remote_set_cmdlist, &remote_show_cmdlist,
-+ 0);
-+
-+ add_packet_config_cmd (&remote_protocol_qPart_dirty,
-+ "qPart_dirty", "read-dirty-registers",
-+ set_remote_protocol_qPart_dirty_packet_cmd,
-+ show_remote_protocol_qPart_dirty_packet_cmd,
- &remote_set_cmdlist, &remote_show_cmdlist,
- 0);
-
-Index: gdb/target.h
-===================================================================
-RCS file: /home/marcel/CVS/gdb6/gdb/target.h,v
-retrieving revision 1.1.1.1
-retrieving revision 1.2
-diff -u -r1.1.1.1 -r1.2
---- gdb/target.h 26 Mar 2004 02:54:42 -0000 1.1.1.1
-+++ gdb/target.h 28 Mar 2004 03:47:34 -0000 1.2
-@@ -229,7 +229,9 @@
- /* Transfer auxilliary vector. */
- TARGET_OBJECT_AUXV,
- /* StackGhost cookie. See "sparc-tdep.c". */
-- TARGET_OBJECT_WCOOKIE
-+ TARGET_OBJECT_WCOOKIE,
-+ /* Dirty registers. See "ia64-tdep.c". */
-+ TARGET_OBJECT_DIRTY
-
- /* Possible future objects: TARGET_OBJECT_FILE, TARGET_OBJECT_PROC, ... */
- };
-Index: gdb/config/ia64/fbsd.mh
-===================================================================
-RCS file: gdb/config/ia64/fbsd.mh
-diff -N gdb/config/ia64/fbsd.mh
---- /dev/null 1 Jan 1970 00:00:00 -0000
-+++ gdb/config/ia64/fbsd.mh 25 Jun 2004 03:55:31 -0000
-@@ -0,0 +1,3 @@
-+NATDEPFILES= fbsd-proc.o fbsd-thread.o fork-child.o gcore.o \
-+ ia64-fbsd-nat.o infptrace.o inftarg.o
-+NAT_FILE= nm-fbsd.h
-Index: gdb/config/ia64/fbsd.mt
-===================================================================
-RCS file: gdb/config/ia64/fbsd.mt
-diff -N gdb/config/ia64/fbsd.mt
---- /dev/null 1 Jan 1970 00:00:00 -0000
-+++ gdb/config/ia64/fbsd.mt 28 Mar 2004 03:47:38 -0000 1.1
-@@ -0,0 +1,2 @@
-+TDEPFILES= corelow.o ia64-fbsd-tdep.o ia64-tdep.o solib.o solib-svr4.o
-+TM_FILE= tm-fbsd.h
-Index: gdb/config/ia64/nm-fbsd.h
-===================================================================
-RCS file: gdb/config/ia64/nm-fbsd.h
-diff -N gdb/config/ia64/nm-fbsd.h
---- /dev/null 1 Jan 1970 00:00:00 -0000
-+++ gdb/config/ia64/nm-fbsd.h 16 Apr 2004 02:49:16 -0000 1.2
-@@ -0,0 +1,24 @@
-+/* GNU GPL */
-+
-+#ifndef NM_FBSD_H
-+#define NM_FBSD_H
-+
-+/* Type of the third argument to the `ptrace' system call. */
-+#define PTRACE_ARG3_TYPE caddr_t
-+
-+/* Override copies of {fetch,store}_inferior_registers in `infptrace.c'. */
-+#define FETCH_INFERIOR_REGISTERS
-+
-+/* We can attach and detach. */
-+#define ATTACH_DETACH
-+
-+/* Override child_pid_to_exec_file in 'inftarg.c'. */
-+#define CHILD_PID_TO_EXEC_FILE
-+
-+#include "target.h"
-+
-+#define TARGET_XFER_DIRTY ia64_fbsd_xfer_dirty
-+extern LONGEST ia64_fbsd_xfer_dirty(struct target_ops *, enum target_object,
-+ const char *, void *, const void *, ULONGEST, LONGEST);
-+
-+#endif /* NM_FBSD_H */
-Index: gdb/config/ia64/tm-fbsd.h
-===================================================================
-RCS file: gdb/config/ia64/tm-fbsd.h
-diff -N gdb/config/ia64/tm-fbsd.h
---- /dev/null 1 Jan 1970 00:00:00 -0000
-+++ gdb/config/ia64/tm-fbsd.h 17 Apr 2004 01:43:21 -0000 1.2
-@@ -0,0 +1,34 @@
-+/*
-+ * Copyright (c) 2004 Marcel Moolenaar
-+ * All rights reserved.
-+ *
-+ * Redistribution and use in source and binary forms, with or without
-+ * modification, are permitted provided that the following conditions
-+ * are met:
-+ *
-+ * 1. Redistributions of source code must retain the above copyright
-+ * notice, this list of conditions and the following disclaimer.
-+ * 2. Redistributions in binary form must reproduce the above copyright
-+ * notice, this list of conditions and the following disclaimer in the
-+ * documentation and/or other materials provided with the distribution.
-+ *
-+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
-+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
-+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
-+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
-+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
-+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-+ */
-+
-+#ifndef TM_FBSD_H
-+#define TM_FBSD_H
-+
-+#include "solib.h"
-+
-+#include "ia64/tm-ia64.h"
-+
-+#endif /* TM_FBSD_H */
-Index: gdb/sparc64fbsd-tdep.c
-===================================================================
---- gdb/sparc64fbsd-tdep.c (revision 223862)
-+++ gdb/sparc64fbsd-tdep.c (working copy)
-@@ -64,6 +64,31 @@ sparc64fbsd_supply_fpregset (const struct regset *
- {
- sparc64_supply_fpregset (regcache, regnum, fpregs);
- }
-+
-+void
-+supply_gregset (const void *gregs)
-+{
-+ sparc64_supply_gregset (&sparc64fbsd_gregset, current_regcache, -1, gregs);
-+}
-+
-+void
-+supply_fpregset (const void *fpregs)
-+{
-+ sparc64_supply_fpregset (current_regcache, -1, fpregs);
-+}
-+
-+void
-+fill_gregset (void *gregs, int regnum)
-+{
-+ sparc64_collect_gregset (&sparc64fbsd_gregset, current_regcache, regnum,
-+ gregs);
-+}
-+
-+void
-+fill_fpregset (void *fpregs, int regnum)
-+{
-+ sparc64_collect_fpregset (current_regcache, regnum, fpregs);
-+}
-
-
- /* Signal trampolines. */
diff --git a/contrib/gdb/FREEBSD-upgrade b/contrib/gdb/FREEBSD-upgrade
deleted file mode 100644
index ac98f9c8f7fc..000000000000
--- a/contrib/gdb/FREEBSD-upgrade
+++ /dev/null
@@ -1,9 +0,0 @@
-$FreeBSD$
-
-To strip down a new version of gdb for import, extract the files like this:
-
- tar xzf gdb-6.1.1.tar.gz -X FREEBSD-Xlist
-
-After importing, remove files on the vendor branch that are not part of the
-new gdb version (if any). Then remove files from HEAD that are not part of
-the new version (if applicable).
diff --git a/contrib/gdb/README b/contrib/gdb/README
deleted file mode 100644
index eb0e436d860f..000000000000
--- a/contrib/gdb/README
+++ /dev/null
@@ -1,47 +0,0 @@
- README for GNU development tools
-
-This directory contains various GNU compilers, assemblers, linkers,
-debuggers, etc., plus their support routines, definitions, and documentation.
-
-If you are receiving this as part of a GDB release, see the file gdb/README.
-If with a binutils release, see binutils/README; if with a libg++ release,
-see libg++/README, etc. That'll give you info about this
-package -- supported targets, how to use it, how to report bugs, etc.
-
-It is now possible to automatically configure and build a variety of
-tools with one command. To build all of the tools contained herein,
-run the ``configure'' script here, e.g.:
-
- ./configure
- make
-
-To install them (by default in /usr/local/bin, /usr/local/lib, etc),
-then do:
- make install
-
-(If the configure script can't determine your type of computer, give it
-the name as an argument, for instance ``./configure sun4''. You can
-use the script ``config.sub'' to test whether a name is recognized; if
-it is, config.sub translates it to a triplet specifying CPU, vendor,
-and OS.)
-
-If you have more than one compiler on your system, it is often best to
-explicitly set CC in the environment before running configure, and to
-also set CC when running make. For example (assuming sh/bash/ksh):
-
- CC=gcc ./configure
- make
-
-A similar example using csh:
-
- setenv CC gcc
- ./configure
- make
-
-Much of the code and documentation enclosed is copyright by
-the Free Software Foundation, Inc. See the file COPYING or
-COPYING.LIB in the various directories, for a description of the
-GNU General Public License terms under which you can copy the files.
-
-REPORTING BUGS: Again, see gdb/README, binutils/README, etc., for info
-on where and how to report problems.
diff --git a/contrib/gdb/config-ml.in b/contrib/gdb/config-ml.in
deleted file mode 100644
index b2e4ea9cf977..000000000000
--- a/contrib/gdb/config-ml.in
+++ /dev/null
@@ -1,877 +0,0 @@
-# Configure fragment invoked in the post-target section for subdirs
-# wanting multilib support.
-#
-# Copyright (C) 1995, 1997, 1998, 1999, 2000, 2001, 2002, 2003
-# Free Software Foundation, Inc.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330,
-# Boston, MA 02111-1307, USA.
-#
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-#
-# Please report bugs to <gcc-bugs@gnu.org>
-# and send patches to <gcc-patches@gnu.org>.
-
-# It is advisable to support a few --enable/--disable options to let the
-# user select which libraries s/he really wants.
-#
-# Subdirectories wishing to use multilib should put the following lines
-# in the "post-target" section of configure.in.
-#
-# if [ "${srcdir}" = "." ] ; then
-# if [ "${with_target_subdir}" != "." ] ; then
-# . ${with_multisrctop}../../config-ml.in
-# else
-# . ${with_multisrctop}../config-ml.in
-# fi
-# else
-# . ${srcdir}/../config-ml.in
-# fi
-#
-#
-# Things are complicated because 6 separate cases must be handled:
-# 2 (native, cross) x 3 (absolute-path, relative-not-dot, dot) = 6.
-#
-# srcdir=. is special. It must handle make programs that don't handle VPATH.
-# To implement this, a symlink tree is built for each library and for each
-# multilib subdir.
-#
-# The build tree is layed out as
-#
-# ./
-# newlib
-# m68020/
-# newlib
-# m68881/
-# newlib
-#
-# The nice feature about this arrangement is that inter-library references
-# in the build tree work without having to care where you are. Note that
-# inter-library references also work in the source tree because symlink trees
-# are built when srcdir=.
-#
-# Unfortunately, trying to access the libraries in the build tree requires
-# the user to manually choose which library to use as GCC won't be able to
-# find the right one. This is viewed as the lesser of two evils.
-#
-# Configure variables:
-# ${with_target_subdir} = "." for native, or ${target_alias} for cross.
-# Set by top level Makefile.
-# ${with_multisrctop} = how many levels of multilibs there are in the source
-# tree. It exists to handle the case of configuring in the source tree:
-# ${srcdir} is not constant.
-# ${with_multisubdir} = name of multilib subdirectory (eg: m68020/m68881).
-#
-# Makefile variables:
-# MULTISRCTOP = number of multilib levels in source tree (+1 if cross)
-# (FIXME: note that this is different than ${with_multisrctop}. Check out.).
-# MULTIBUILDTOP = number of multilib levels in build tree
-# MULTIDIRS = list of multilib subdirs (eg: m68000 m68020 ...)
-# (only defined in each library's main Makefile).
-# MULTISUBDIR = installed subdirectory name with leading '/' (eg: /m68000)
-# (only defined in each multilib subdir).
-
-# FIXME: Multilib is currently disabled by default for everything other than
-# newlib. It is up to each target to turn on multilib support for the other
-# libraries as desired.
-
-# Autoconf incoming variables:
-# srcdir, host, ac_configure_args
-#
-# We *could* figure srcdir and host out, but we'd have to do work that
-# our caller has already done to figure them out and requiring these two
-# seems reasonable.
-# Note that `host' in this case is GCC's `target'. Target libraries are
-# configured for a particular host.
-
-Makefile=${ac_file-Makefile}
-ml_config_shell=${CONFIG_SHELL-/bin/sh}
-ml_realsrcdir=${srcdir}
-
-# Scan all the arguments and set all the ones we need.
-
-ml_verbose=--verbose
-for option in ${ac_configure_args}
-do
- case $option in
- --*) ;;
- -*) option=-$option ;;
- esac
-
- case $option in
- --*=*)
- optarg=`echo $option | sed -e 's/^[^=]*=//'`
- ;;
- esac
-
- case $option in
- --disable-*)
- enableopt=`echo ${option} | sed 's:^--disable-:enable_:;s:-:_:g'`
- eval $enableopt=no
- ;;
- --enable-*)
- case "$option" in
- *=*) ;;
- *) optarg=yes ;;
- esac
- enableopt=`echo ${option} | sed 's:^--::;s:=.*$::;s:-:_:g'`
- eval $enableopt="$optarg"
- ;;
- --norecursion | --no-recursion)
- ml_norecursion=yes
- ;;
- --silent | --sil* | --quiet | --q*)
- ml_verbose=--silent
- ;;
- --verbose | --v | --verb*)
- ml_verbose=--verbose
- ;;
- --with-*)
- case "$option" in
- *=*) ;;
- *) optarg=yes ;;
- esac
- withopt=`echo ${option} | sed 's:^--::;s:=.*$::;s:-:_:g'`
- eval $withopt="$optarg"
- ;;
- --without-*)
- withopt=`echo ${option} | sed 's:^--::;s:out::;s:-:_:g'`
- eval $withopt=no
- ;;
- esac
-done
-
-# Only do this if --enable-multilib.
-if [ "${enable_multilib}" = yes ]; then
-
-# Compute whether this is the library's top level directory
-# (ie: not a multilib subdirectory, and not a subdirectory like newlib/src).
-# ${with_multisubdir} tells us we're in the right branch, but we could be
-# in a subdir of that.
-# ??? The previous version could void this test by separating the process into
-# two files: one that only the library's toplevel configure.in ran (to
-# configure the multilib subdirs), and another that all configure.in's ran to
-# update the Makefile. It seemed reasonable to collapse all multilib support
-# into one file, but it does leave us with having to perform this test.
-ml_toplevel_p=no
-if [ -z "${with_multisubdir}" ]; then
- if [ "${srcdir}" = "." ]; then
- # Use ${ml_realsrcdir} instead of ${srcdir} here to account for ${subdir}.
- # ${with_target_subdir} = "." for native, otherwise target alias.
- if [ "${with_target_subdir}" = "." ]; then
- if [ -f ${ml_realsrcdir}/../config-ml.in ]; then
- ml_toplevel_p=yes
- fi
- else
- if [ -f ${ml_realsrcdir}/../../config-ml.in ]; then
- ml_toplevel_p=yes
- fi
- fi
- else
- # Use ${ml_realsrcdir} instead of ${srcdir} here to account for ${subdir}.
- if [ -f ${ml_realsrcdir}/../config-ml.in ]; then
- ml_toplevel_p=yes
- fi
- fi
-fi
-
-# If this is the library's top level directory, set multidirs to the
-# multilib subdirs to support. This lives at the top because we need
-# `multidirs' set right away.
-
-if [ "${ml_toplevel_p}" = yes ]; then
-
-multidirs=
-for i in `${CC-gcc} --print-multi-lib 2>/dev/null`; do
- dir=`echo $i | sed -e 's/;.*$//'`
- if [ "${dir}" = "." ]; then
- true
- else
- if [ -z "${multidirs}" ]; then
- multidirs="${dir}"
- else
- multidirs="${multidirs} ${dir}"
- fi
- fi
-done
-
-# Target libraries are configured for the host they run on, so we check
-# $host here, not $target.
-
-case "${host}" in
-arc-*-elf*)
- if [ x$enable_biendian != xyes ]
- then
- old_multidirs=${multidirs}
- multidirs=""
- for x in ${old_multidirs}; do
- case "${x}" in
- *be*) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- ;;
-arm-*-*)
- if [ x"$enable_fpu" = xno ]
- then
- old_multidirs=${multidirs}
- multidirs=""
- for x in ${old_multidirs}; do
- case "${x}" in
- *fpu*) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- if [ x"$enable_26bit" = xno ]
- then
- old_multidirs=${multidirs}
- multidirs=""
- for x in ${old_multidirs}; do
- case "${x}" in
- *26bit*) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- if [ x"$enable_underscore" = xno ]
- then
- old_multidirs=${multidirs}
- multidirs=""
- for x in ${old_multidirs}; do
- case "${x}" in
- *under*) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- if [ x"$enable_interwork" = xno ]
- then
- old_multidirs=${multidirs}
- multidirs=""
- for x in ${old_multidirs}; do
- case "${x}" in
- *interwork*) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- if [ x$enable_biendian = xno ]
- then
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *le* ) : ;;
- *be* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- if [ x"$enable_nofmult" = xno ]
- then
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *nofmult* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- ;;
-m68*-*-*)
- if [ x$enable_softfloat = xno ]
- then
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *soft-float* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- if [ x$enable_m68881 = xno ]
- then
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *m68881* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- if [ x$enable_m68000 = xno ]
- then
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *m68000* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- if [ x$enable_m68020 = xno ]
- then
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *m68020* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- ;;
-mips*-*-*)
- if [ x$enable_single_float = xno ]
- then
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *single* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- if [ x$enable_biendian = xno ]
- then
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *el* ) : ;;
- *eb* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- if [ x$enable_softfloat = xno ]
- then
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *soft-float* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- case " $multidirs " in
- *" mabi=64 "*)
- # We will not be able to create libraries with -mabi=64 if
- # we cannot even link a trivial program. It usually
- # indicates the 64bit libraries are missing.
- if echo 'main() {}' > conftest.c &&
- ${CC-gcc} -mabi=64 conftest.c -o conftest; then
- :
- else
- echo Could not link program with -mabi=64, disabling it.
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *mabi=64* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- rm -f conftest.c conftest
- ;;
- esac
- ;;
-powerpc*-*-* | rs6000*-*-*)
- if [ x$enable_aix64 = xno ]
- then
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *ppc64* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- if [ x$enable_pthread = xno ]
- then
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *pthread* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- if [ x$enable_softfloat = xno ]
- then
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *soft-float* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- if [ x$enable_powercpu = xno ]
- then
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- power | */power | */power/* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- if [ x$enable_powerpccpu = xno ]
- then
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *powerpc* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- if [ x$enable_powerpcos = xno ]
- then
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *mcall-linux* | *mcall-solaris* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- if [ x$enable_biendian = xno ]
- then
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *mlittle* | *mbig* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- if [ x$enable_sysv = xno ]
- then
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *mcall-sysv* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- ;;
-sparc*-*-*)
- case " $multidirs " in
- *" m64 "*)
- # We will not be able to create libraries with -m64 if
- # we cannot even link a trivial program. It usually
- # indicates the 64bit libraries are missing.
- if echo 'main() {}' > conftest.c &&
- ${CC-gcc} -m64 conftest.c -o conftest; then
- :
- else
- echo Could not link program with -m64, disabling it.
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *m64* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- rm -f conftest.c conftest
- ;;
- esac
- ;;
-esac
-
-# Remove extraneous blanks from multidirs.
-# Tests like `if [ -n "$multidirs" ]' require it.
-multidirs=`echo "$multidirs" | sed -e 's/^[ ][ ]*//' -e 's/[ ][ ]*$//' -e 's/[ ][ ]*/ /g'`
-
-# Add code to library's top level makefile to handle building the multilib
-# subdirs.
-
-cat > Multi.tem <<\EOF
-
-PWD_COMMAND=$${PWDCMD-pwd}
-
-# FIXME: There should be an @-sign in front of the `if'.
-# Leave out until this is tested a bit more.
-multi-do:
- if [ -z "$(MULTIDIRS)" ]; then \
- true; \
- else \
- rootpre=`${PWD_COMMAND}`/; export rootpre; \
- srcrootpre=`cd $(srcdir); ${PWD_COMMAND}`/; export srcrootpre; \
- lib=`echo $${rootpre} | sed -e 's,^.*/\([^/][^/]*\)/$$,\1,'`; \
- compiler="$(CC)"; \
- for i in `$${compiler} --print-multi-lib 2>/dev/null`; do \
- dir=`echo $$i | sed -e 's/;.*$$//'`; \
- if [ "$${dir}" = "." ]; then \
- true; \
- else \
- if [ -d ../$${dir}/$${lib} ]; then \
- flags=`echo $$i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \
- if (cd ../$${dir}/$${lib}; $(MAKE) $(FLAGS_TO_PASS) \
- CFLAGS="$(CFLAGS) $${flags}" \
- prefix="$(prefix)" \
- exec_prefix="$(exec_prefix)" \
- GCJFLAGS="$(GCJFLAGS) $${flags}" \
- CXXFLAGS="$(CXXFLAGS) $${flags}" \
- LIBCFLAGS="$(LIBCFLAGS) $${flags}" \
- LIBCXXFLAGS="$(LIBCXXFLAGS) $${flags}" \
- LDFLAGS="$(LDFLAGS) $${flags}" \
- MULTIFLAGS="$${flags}" \
- DESTDIR="$(DESTDIR)" \
- INSTALL="$(INSTALL)" \
- INSTALL_DATA="$(INSTALL_DATA)" \
- INSTALL_PROGRAM="$(INSTALL_PROGRAM)" \
- INSTALL_SCRIPT="$(INSTALL_SCRIPT)" \
- $(DO)); then \
- true; \
- else \
- exit 1; \
- fi; \
- else true; \
- fi; \
- fi; \
- done; \
- fi
-
-# FIXME: There should be an @-sign in front of the `if'.
-# Leave out until this is tested a bit more.
-multi-clean:
- if [ -z "$(MULTIDIRS)" ]; then \
- true; \
- else \
- lib=`${PWD_COMMAND} | sed -e 's,^.*/\([^/][^/]*\)$$,\1,'`; \
- for dir in Makefile $(MULTIDIRS); do \
- if [ -f ../$${dir}/$${lib}/Makefile ]; then \
- if (cd ../$${dir}/$${lib}; $(MAKE) $(FLAGS_TO_PASS) $(DO)); \
- then true; \
- else exit 1; \
- fi; \
- else true; \
- fi; \
- done; \
- fi
-EOF
-
-cat ${Makefile} Multi.tem > Makefile.tem
-rm -f ${Makefile} Multi.tem
-mv Makefile.tem ${Makefile}
-
-fi # ${ml_toplevel_p} = yes
-
-if [ "${ml_verbose}" = --verbose ]; then
- echo "Adding multilib support to Makefile in ${ml_realsrcdir}"
- if [ "${ml_toplevel_p}" = yes ]; then
- echo "multidirs=${multidirs}"
- fi
- echo "with_multisubdir=${with_multisubdir}"
-fi
-
-if [ "${srcdir}" = "." ]; then
- if [ "${with_target_subdir}" != "." ]; then
- ml_srcdotdot="../"
- else
- ml_srcdotdot=""
- fi
-else
- ml_srcdotdot=""
-fi
-
-if [ -z "${with_multisubdir}" ]; then
- ml_subdir=
- ml_builddotdot=
- : # ml_srcdotdot= # already set
-else
- ml_subdir="/${with_multisubdir}"
- # The '[^/][^/]*' appears that way to work around a SunOS sed bug.
- ml_builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`/
- if [ "$srcdir" = "." ]; then
- ml_srcdotdot=${ml_srcdotdot}${ml_builddotdot}
- else
- : # ml_srcdotdot= # already set
- fi
-fi
-
-if [ "${ml_toplevel_p}" = yes ]; then
- ml_do='$(MAKE)'
- ml_clean='$(MAKE)'
-else
- ml_do=true
- ml_clean=true
-fi
-
-# TOP is used by newlib and should not be used elsewhere for this purpose.
-# MULTI{SRC,BUILD}TOP are the proper ones to use. MULTISRCTOP is empty
-# when srcdir != builddir. MULTIBUILDTOP is always some number of ../'s.
-# FIXME: newlib needs to be updated to use MULTI{SRC,BUILD}TOP so we can
-# delete TOP. Newlib may wish to continue to use TOP for its own purposes
-# of course.
-# MULTIDIRS is non-empty for the cpu top level Makefile (eg: newlib/Makefile)
-# and lists the subdirectories to recurse into.
-# MULTISUBDIR is non-empty in each cpu subdirectory's Makefile
-# (eg: newlib/h8300h/Makefile) and is the installed subdirectory name with
-# a leading '/'.
-# MULTIDO is used for targets like all, install, and check where
-# $(FLAGS_TO_PASS) augmented with the subdir's compiler option is needed.
-# MULTICLEAN is used for the *clean targets.
-#
-# ??? It is possible to merge MULTIDO and MULTICLEAN into one. They are
-# currently kept separate because we don't want the *clean targets to require
-# the existence of the compiler (which MULTIDO currently requires) and
-# therefore we'd have to record the directory options as well as names
-# (currently we just record the names and use --print-multi-lib to get the
-# options).
-
-sed -e "s:^TOP[ ]*=[ ]*\([./]*\)[ ]*$:TOP = ${ml_builddotdot}\1:" \
- -e "s:^MULTISRCTOP[ ]*=.*$:MULTISRCTOP = ${ml_srcdotdot}:" \
- -e "s:^MULTIBUILDTOP[ ]*=.*$:MULTIBUILDTOP = ${ml_builddotdot}:" \
- -e "s:^MULTIDIRS[ ]*=.*$:MULTIDIRS = ${multidirs}:" \
- -e "s:^MULTISUBDIR[ ]*=.*$:MULTISUBDIR = ${ml_subdir}:" \
- -e "s:^MULTIDO[ ]*=.*$:MULTIDO = $ml_do:" \
- -e "s:^MULTICLEAN[ ]*=.*$:MULTICLEAN = $ml_clean:" \
- ${Makefile} > Makefile.tem
-rm -f ${Makefile}
-mv Makefile.tem ${Makefile}
-
-# If this is the library's top level, configure each multilib subdir.
-# This is done at the end because this is the loop that runs configure
-# in each multilib subdir and it seemed reasonable to finish updating the
-# Makefile before going on to configure the subdirs.
-
-if [ "${ml_toplevel_p}" = yes ]; then
-
-# We must freshly configure each subdirectory. This bit of code is
-# actually partially stolen from the main configure script. FIXME.
-
-if [ -n "${multidirs}" ] && [ -z "${ml_norecursion}" ]; then
-
- if [ "${ml_verbose}" = --verbose ]; then
- echo "Running configure in multilib subdirs ${multidirs}"
- echo "pwd: `${PWDCMD-pwd}`"
- fi
-
- ml_origdir=`${PWDCMD-pwd}`
- ml_libdir=`echo $ml_origdir | sed -e 's,^.*/,,'`
- # cd to top-level-build-dir/${with_target_subdir}
- cd ..
-
- for ml_dir in ${multidirs}; do
-
- if [ "${ml_verbose}" = --verbose ]; then
- echo "Running configure in multilib subdir ${ml_dir}"
- echo "pwd: `${PWDCMD-pwd}`"
- fi
-
- if [ -d ${ml_dir} ]; then true; else
- # ``mkdir -p ${ml_dir}'' See also mkinstalldirs.
- pathcomp=""
- for d in `echo ":${ml_dir}" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`; do
- pathcomp="$pathcomp$d"
- case "$pathcomp" in
- -* ) pathcomp=./$pathcomp ;;
- esac
- if test ! -d "$pathcomp"; then
- echo "mkdir $pathcomp" 1>&2
- mkdir "$pathcomp" > /dev/null 2>&1 || lasterr=$?
- fi
- if test ! -d "$pathcomp"; then
- exit $lasterr
- fi
- pathcomp="$pathcomp/"
- done
- fi
- if [ -d ${ml_dir}/${ml_libdir} ]; then true; else mkdir ${ml_dir}/${ml_libdir}; fi
-
- # Eg: if ${ml_dir} = m68000/m68881, dotdot = ../../
- dotdot=../`echo ${ml_dir} | sed -e 's|[^/]||g' -e 's|/|../|g'`
-
- case ${srcdir} in
- ".")
- echo Building symlink tree in `${PWDCMD-pwd}`/${ml_dir}/${ml_libdir}
- if [ "${with_target_subdir}" != "." ]; then
- ml_unsubdir="../"
- else
- ml_unsubdir=""
- fi
- (cd ${ml_dir}/${ml_libdir};
- ../${dotdot}${ml_unsubdir}symlink-tree ../${dotdot}${ml_unsubdir}${ml_libdir} "")
- if [ -f ${ml_dir}/${ml_libdir}/Makefile ]; then
- if [ x"${MAKE}" = x ]; then
- (cd ${ml_dir}/${ml_libdir}; make distclean)
- else
- (cd ${ml_dir}/${ml_libdir}; ${MAKE} distclean)
- fi
- fi
- ml_newsrcdir="."
- ml_srcdiroption=
- multisrctop=${dotdot}
- ;;
- *)
- case "${srcdir}" in
- /* | [A-Za-z]:[\\/]* ) # absolute path
- ml_newsrcdir=${srcdir}
- ;;
- *) # otherwise relative
- ml_newsrcdir=${dotdot}${srcdir}
- ;;
- esac
- ml_srcdiroption="-srcdir=${ml_newsrcdir}"
- multisrctop=
- ;;
- esac
-
- case "${progname}" in
- /* | [A-Za-z]:[\\/]* ) ml_recprog=${progname} ;;
- *) ml_recprog=${dotdot}${progname} ;;
- esac
-
- # FIXME: POPDIR=${PWD=`pwd`} doesn't work here.
- ML_POPDIR=`${PWDCMD-pwd}`
- cd ${ml_dir}/${ml_libdir}
-
- if [ -f ${ml_newsrcdir}/configure ]; then
- ml_recprog="${ml_newsrcdir}/configure"
- fi
-
- # find compiler flag corresponding to ${ml_dir}
- for i in `${CC-gcc} --print-multi-lib 2>/dev/null`; do
- dir=`echo $i | sed -e 's/;.*$//'`
- if [ "${dir}" = "${ml_dir}" ]; then
- flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`
- break
- fi
- done
- ml_config_env='CC="${CC_}$flags" CXX="${CXX_}$flags" GCJ="${GCJ_}$flags"'
-
- if [ "${with_target_subdir}" = "." ]; then
- CC_=$CC' '
- CXX_=$CXX' '
- GCJ_=$GCJ' '
- else
- # Create a regular expression that matches any string as long
- # as ML_POPDIR.
- popdir_rx=`echo ${ML_POPDIR} | sed 's,.,.,g'`
- CC_=
- for arg in ${CC}; do
- case $arg in
- -[BIL]"${ML_POPDIR}"/*)
- CC_="${CC_}"`echo "X${arg}" | sed -n "s/X\\(-[BIL]${popdir_rx}\\).*/\\1/p"`/${ml_dir}`echo "X${arg}" | sed -n "s/X-[BIL]${popdir_rx}\\(.*\\)/\1/p"`' ' ;;
- "${ML_POPDIR}"/*)
- CC_="${CC_}"`echo "X${arg}" | sed -n "s/X\\(${popdir_rx}\\).*/\\1/p"`/${ml_dir}`echo "X${arg}" | sed -n "s/X${popdir_rx}\\(.*\\)/\\1/p"`' ' ;;
- *)
- CC_="${CC_}${arg} " ;;
- esac
- done
-
- CXX_=
- for arg in ${CXX}; do
- case $arg in
- -[BIL]"${ML_POPDIR}"/*)
- CXX_="${CXX_}"`echo "X${arg}" | sed -n "s/X\\(-[BIL]${popdir_rx}\\).*/\\1/p"`/${ml_dir}`echo "X${arg}" | sed -n "s/X-[BIL]${popdir_rx}\\(.*\\)/\\1/p"`' ' ;;
- "${ML_POPDIR}"/*)
- CXX_="${CXX_}"`echo "X${arg}" | sed -n "s/X\\(${popdir_rx}\\).*/\\1/p"`/${ml_dir}`echo "X${arg}" | sed -n "s/X${popdir_rx}\\(.*\\)/\\1/p"`' ' ;;
- *)
- CXX_="${CXX_}${arg} " ;;
- esac
- done
-
- GCJ_=
- for arg in ${GCJ}; do
- case $arg in
- -[BIL]"${ML_POPDIR}"/*)
- GCJ_="${GCJ_}"`echo "X${arg}" | sed -n "s/X\\(-[BIL]${popdir_rx}\\).*/\\1/p"`/${ml_dir}`echo "X${arg}" | sed -n "s/X-[BIL]${popdir_rx}\\(.*\\)/\\1/p"`' ' ;;
- "${ML_POPDIR}"/*)
- GCJ_="${GCJ_}"`echo "X${arg}" | sed -n "s/X\\(${popdir_rx}\\).*/\\1/p"`/${ml_dir}`echo "X${arg}" | sed -n "s/X${popdir_rx}\\(.*\\)/\\1/p"`' ' ;;
- *)
- GCJ_="${GCJ_}${arg} " ;;
- esac
- done
-
- if test "x${LD_LIBRARY_PATH+set}" = xset; then
- LD_LIBRARY_PATH_=
- for arg in `echo "$LD_LIBRARY_PATH" | tr ':' ' '`; do
- case "$arg" in
- "${ML_POPDIR}"/*)
- arg=`echo "X${arg}" | sed -n "s/X\\(${popdir_rx}\\).*/\\1/p"`/${ml_dir}`echo "X${arg}" | sed -n "s/X${popdir_rx}\\(.*\\)/\\1/p"`
- ;;
- esac
- if test "x$LD_LIBRARY_PATH_" != x; then
- LD_LIBRARY_PATH_=$LD_LIBRARY_PATH_:$arg
- else
- LD_LIBRARY_PATH_=$arg
- fi
- done
- ml_config_env="$ml_config_env LD_LIBRARY_PATH=$LD_LIBRARY_PATH_"
- fi
-
- if test "x${SHLIB_PATH+set}" = xset; then
- SHLIB_PATH_=
- for arg in `echo "$SHLIB_PATH" | tr ':' ' '`; do
- case "$arg" in
- "${ML_POPDIR}"/*)
- arg=`echo "X${arg}" | sed -n "s/X\\(${popdir_rx}\\).*/\\1/p"`/${ml_dir}`echo "X${arg}" | sed -n "s/X${popdir_rx}\\(.*\\)/\\1/p"`
- ;;
- esac
- if test "x$SHLIB_PATH_" != x; then
- SHLIB_PATH_=$SHLIB_PATH_:$arg
- else
- SHLIB_PATH_=$arg
- fi
- done
- ml_config_env="$ml_config_env SHLIB_PATH=$SHLIB_PATH_"
- fi
- fi
-
- if eval ${ml_config_env} ${ml_config_shell} ${ml_recprog} \
- --with-multisubdir=${ml_dir} --with-multisrctop=${multisrctop} \
- ${ac_configure_args} ${ml_srcdiroption} ; then
- true
- else
- exit 1
- fi
-
- cd ${ML_POPDIR}
-
- done
-
- cd ${ml_origdir}
-fi
-
-fi # ${ml_toplevel_p} = yes
-fi # ${enable_multilib} = yes
diff --git a/contrib/gdb/djunpack.bat b/contrib/gdb/djunpack.bat
deleted file mode 100644
index 04b45c3d15b5..000000000000
--- a/contrib/gdb/djunpack.bat
+++ /dev/null
@@ -1,52 +0,0 @@
-@echo off
-Rem
-Rem WARNING WARNING WARNING: This file needs to have DOS CRLF end-of-line
-Rem format, or else stock DOS/Windows shells will refuse to run it.
-Rem
-Rem This batch file unpacks the GDB distribution while simultaneously
-Rem renaming some of the files whose names are invalid on DOS or conflict
-Rem with other file names after truncation to DOS 8+3 namespace.
-Rem
-Rem Invoke like this:
-Rem
-Rem djunpack gdb-XYZ.tar
-Rem
-Rem where XYZ is the version number. If the argument includes leading
-Rem directories, it MUST use backslashes, not forward slashes.
-Rem
-Rem The following 2 lines need to be changed with each new GDB release, to
-Rem be identical to the name of the top-level directory where the GDB
-Rem distribution unpacks itself.
-set GDBVER=gdb-6.1.1
-if "%GDBVER%"=="gdb-6.1.1" GoTo EnvOk
-Rem If their environment space is too small, re-exec with a larger one
-command.com /e:4096 /c %0 %1
-GoTo End
-:EnvOk
-if not exist %1 GoTo NoArchive
-djtar -x -p -o %GDBVER%/gdb/config/djgpp/fnchange.lst %1 > fnchange.tmp
-Rem The following uses a feature of COPY whereby it does not copy
-Rem empty files. We need that because the previous line will create
-Rem an empty fnchange.tmp even if the command failed for some reason.
-copy fnchange.tmp junk.tmp > nul
-if not exist junk.tmp GoTo NoDjTar
-del junk.tmp
-sed -e 's,@V@,%GDBVER%,g' < fnchange.tmp > fnchange.lst
-Rem See the comment above about the reason for using COPY.
-copy fnchange.lst junk.tmp > nul
-if not exist junk.tmp GoTo NoSed
-del junk.tmp
-djtar -x -n fnchange.lst %1
-GoTo End
-:NoSed
-echo FAIL: Sed is not available.
-GoTo End
-:NoDjTar
-echo FAIL: DJTAR is not available or no fnchange.lst file in %1.
-GoTo End
-:NoArchive
-echo FAIL: the file %1 does not seem to exist.
-echo Remember that %1 cannot use forward slashes, only backslashes.
-GoTo End
-:End
-set GDBVER=
diff --git a/contrib/gdb/gdb/CONTRIBUTE b/contrib/gdb/gdb/CONTRIBUTE
deleted file mode 100644
index 96c943cff947..000000000000
--- a/contrib/gdb/gdb/CONTRIBUTE
+++ /dev/null
@@ -1,143 +0,0 @@
-
- Contributing to GDB
-
-GDB is a collaborative project and one which wants to encourage new
-development. You may wish to fix GDB bugs, improve testing, port GDB
-to a new platform, update documentation, add new GDB features, and the
-like. To help with this, there is a lot of documentation
-available.. In addition to the user guide and internals manual
-included in the GDB distribution, the GDB web pages also contain much
-information.
-
-You may also want to submit your change so that can be considered for
-conclusion in a future version of GDB (see below). Regardless, we
-encourage you to distribute the change yourself.
-
-If you don't feel up to hacking GDB, there are still plenty of ways to
-help! You can answer questions on the mailing lists, write
-documentation, find bugs, create a GDB related website (contribute to
-the official GDB web site), or create a GDB related software
-package. We welcome all of the above and feel free to ask on the GDB
-mailing lists if you are looking for feedback or for people to review
-a work in progress.
-
-Ref: http://www.gnu.org/software/gdb/
-
-Finally, there are certain legal requirements and style issues which
-all contributors need to be aware of.
-
-o Coding Standards
-
- All contributions must conform to the GNU Coding Standard.
- Submissions which do not conform to the standards will be
- returned with a request to reformat the changes.
-
- GDB has certain additional coding requirements. Those
- requirements are explained in the GDB internals documentation
- in the gdb/doc directory.
-
- Ref: http://www.gnu.org/prep/standards_toc.html
-
-
-o Copyright Assignment
-
- Before we can accept code contributions from you, we need a
- copyright assignment form filled out and filed with the FSF.
-
- See some documentation by the FSF for details and contact us
- (either via the GDB mailing list or the GDB maintainer that is
- taking care of your contributions) to obtain the relevant
- forms.
-
- Small changes can be accepted without a copyright assignment form on file.
-
- Ref: http://www.gnu.org/prep/maintain.html#SEC6
-
-
-o Submitting Patches
-
- Every patch must have several pieces of information before we
- can properly evaluate it.
-
- A description of the bug and how your patch fixes this
- bug. A reference to a testsuite failure is very helpful. For
- new features a description of the feature and your
- implementation.
-
- A ChangeLog entry as plaintext (separate from the patch); see
- the various ChangeLog files for format and content. Note that,
- unlike some other projects, we do require ChangeLogs also for
- documentation (i.e., .texi files).
-
- The patch itself. If you are accessing the CVS repository use
- "cvs update; cvs diff -cp"; else, use "diff -cp OLD NEW" or
- "diff -up OLD NEW". If your version of diff does not support
- these options, then get the latest version of GNU diff.
-
- We accept patches as plain text (preferred for the compilers
- themselves), MIME attachments (preferred for the web pages),
- or as uuencoded gzipped text.
-
- When you have all these pieces, bundle them up in a mail
- message and send it to gdb-patches@sources.redhat.com. All
- patches and related discussion should be sent to the
- gdb-patches mailinglist. For further information on the GDB
- CVS repository, see the Anonymous read-only CVS access and
- Read-write CVS access page.
-
---
-
-Supplemental information for GDB:
-
-o Please try to run the relevant testsuite before and after
- committing a patch
-
- If the contributor doesn't do it then the maintainer will. A
- contributor might include before/after test results in their
- contribution.
-
-
-o For bug fixes, please try to include a way of
- demonstrating that the patch actually fixes something.
-
- The best way of doing this is to ensure that the
- testsuite contains one or more test cases that
- fail without the fix but pass with the fix.
-
- People are encouraged to submit patches that extend
- the testsuite.
-
-
-o Please read your patch before submitting it.
-
- A patch containing several unrelated changes or
- arbitrary reformats will be returned with a request
- to re-formatting / split it.
-
-
-o If ``gdb/configure.in'' is modified then you don't
- need to include patches to the regenerated file
- ``configure''.
-
- The maintainer will re-generate those files
- using autoconf (2.13 as of 2000-02-29).
-
-
-o If ``gdb/gdbarch.sh'' is modified, you don't
- need to include patches to the generated files
- ``gdbarch.h'' and ``gdbarch.c''.
-
- See ``gdb/configure.in'' above.
-
-
-o When submitting a patch that fixes a bug
- in GDB's bug database a brief reference
- to the bug can be included in the ChangeLog
- vis
-
- * CONTRIBUTE: Mention PR convention.
- Fix PR gdb/4705.
-
- The text ``PR gdb/4705'' should also be included
- in the CVS commit message. That causes the
- patch to automatically be archived with the PR.
diff --git a/contrib/gdb/gdb/COPYING b/contrib/gdb/gdb/COPYING
deleted file mode 100644
index 60549be514af..000000000000
--- a/contrib/gdb/gdb/COPYING
+++ /dev/null
@@ -1,340 +0,0 @@
- GNU GENERAL PUBLIC LICENSE
- Version 2, June 1991
-
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.
- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The licenses for most software are designed to take away your
-freedom to share and change it. By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users. This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it. (Some other Free Software Foundation software is covered by
-the GNU Library General Public License instead.) You can apply it to
-your programs, too.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
-
- To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have. You must make sure that they, too, receive or can get the
-source code. And you must show them these terms so they know their
-rights.
-
- We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
- Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software. If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
- Finally, any free program is threatened constantly by software
-patents. We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary. To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
-
- The precise terms and conditions for copying, distribution and
-modification follow.
-
- GNU GENERAL PUBLIC LICENSE
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
- 0. This License applies to any program or other work which contains
-a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License. The "Program", below,
-refers to any such program or work, and a "work based on the Program"
-means either the Program or any derivative work under copyright law:
-that is to say, a work containing the Program or a portion of it,
-either verbatim or with modifications and/or translated into another
-language. (Hereinafter, translation is included without limitation in
-the term "modification".) Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of
-running the Program is not restricted, and the output from the Program
-is covered only if its contents constitute a work based on the
-Program (independent of having been made by running the Program).
-Whether that is true depends on what the Program does.
-
- 1. You may copy and distribute verbatim copies of the Program's
-source code as you receive it, in any medium, provided that you
-conspicuously and appropriately publish on each copy an appropriate
-copyright notice and disclaimer of warranty; keep intact all the
-notices that refer to this License and to the absence of any warranty;
-and give any other recipients of the Program a copy of this License
-along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and
-you may at your option offer warranty protection in exchange for a fee.
-
- 2. You may modify your copy or copies of the Program or any portion
-of it, thus forming a work based on the Program, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
- a) You must cause the modified files to carry prominent notices
- stating that you changed the files and the date of any change.
-
- b) You must cause any work that you distribute or publish, that in
- whole or in part contains or is derived from the Program or any
- part thereof, to be licensed as a whole at no charge to all third
- parties under the terms of this License.
-
- c) If the modified program normally reads commands interactively
- when run, you must cause it, when started running for such
- interactive use in the most ordinary way, to print or display an
- announcement including an appropriate copyright notice and a
- notice that there is no warranty (or else, saying that you provide
- a warranty) and that users may redistribute the program under
- these conditions, and telling the user how to view a copy of this
- License. (Exception: if the Program itself is interactive but
- does not normally print such an announcement, your work based on
- the Program is not required to print an announcement.)
-
-These requirements apply to the modified work as a whole. If
-identifiable sections of that work are not derived from the Program,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
-distribute the same sections as part of a whole which is a work based
-on the Program, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
- 3. You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
- a) Accompany it with the complete corresponding machine-readable
- source code, which must be distributed under the terms of Sections
- 1 and 2 above on a medium customarily used for software interchange; or,
-
- b) Accompany it with a written offer, valid for at least three
- years, to give any third party, for a charge no more than your
- cost of physically performing source distribution, a complete
- machine-readable copy of the corresponding source code, to be
- distributed under the terms of Sections 1 and 2 above on a medium
- customarily used for software interchange; or,
-
- c) Accompany it with the information you received as to the offer
- to distribute corresponding source code. (This alternative is
- allowed only for noncommercial distribution and only if you
- received the program in object code or executable form with such
- an offer, in accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it. For an executable work, complete source
-code means all the source code for all modules it contains, plus any
-associated interface definition files, plus the scripts used to
-control compilation and installation of the executable. However, as a
-special exception, the source code distributed need not include
-anything that is normally distributed (in either source or binary
-form) with the major components (compiler, kernel, and so on) of the
-operating system on which the executable runs, unless that component
-itself accompanies the executable.
-
-If distribution of executable or object code is made by offering
-access to copy from a designated place, then offering equivalent
-access to copy the source code from the same place counts as
-distribution of the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
- 4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License. Any attempt
-otherwise to copy, modify, sublicense or distribute the Program is
-void, and will automatically terminate your rights under this License.
-However, parties who have received copies, or rights, from you under
-this License will not have their licenses terminated so long as such
-parties remain in full compliance.
-
- 5. You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Program or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Program or works based on it.
-
- 6. Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program subject to
-these terms and conditions. You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
-this License.
-
- 7. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Program at all. For example, if a patent
-license would not permit royalty-free redistribution of the Program by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system, which is
-implemented by public license practices. Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
- 8. If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program under this License
-may add an explicit geographical distribution limitation excluding
-those countries, so that distribution is permitted only in or among
-countries not thus excluded. In such case, this License incorporates
-the limitation as if written in the body of this License.
-
- 9. The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
-Each version is given a distinguishing version number. If the Program
-specifies a version number of this License which applies to it and "any
-later version", you have the option of following the terms and conditions
-either of that version or of any later version published by the Free
-Software Foundation. If the Program does not specify a version number of
-this License, you may choose any version ever published by the Free Software
-Foundation.
-
- 10. If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, write to the author
-to ask for permission. For software which is copyrighted by the Free
-Software Foundation, write to the Free Software Foundation; we sometimes
-make exceptions for this. Our decision will be guided by the two goals
-of preserving the free status of all derivatives of our free software and
-of promoting the sharing and reuse of software generally.
-
- NO WARRANTY
-
- 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
-REPAIR OR CORRECTION.
-
- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGES.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Programs
-
- If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
- To do so, attach the following notices to the program. It is safest
-to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
- <one line to give the program's name and a brief idea of what it does.>
- Copyright (C) 19yy <name of author>
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-
-Also add information on how to contact you by electronic and paper mail.
-
-If the program is interactive, make it output a short notice like this
-when it starts in an interactive mode:
-
- Gnomovision version 69, Copyright (C) 19yy name of author
- Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
- This is free software, and you are welcome to redistribute it
- under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License. Of course, the commands you use may
-be called something other than `show w' and `show c'; they could even be
-mouse-clicks or menu items--whatever suits your program.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the program, if
-necessary. Here is a sample; alter the names:
-
- Yoyodyne, Inc., hereby disclaims all copyright interest in the program
- `Gnomovision' (which makes passes at compilers) written by James Hacker.
-
- <signature of Ty Coon>, 1 April 1989
- Ty Coon, President of Vice
-
-This General Public License does not permit incorporating your program into
-proprietary programs. If your program is a subroutine library, you may
-consider it more useful to permit linking proprietary applications with the
-library. If this is what you want to do, use the GNU Library General
-Public License instead of this License.
diff --git a/contrib/gdb/gdb/MAINTAINERS b/contrib/gdb/gdb/MAINTAINERS
deleted file mode 100644
index 95328a45f6d3..000000000000
--- a/contrib/gdb/gdb/MAINTAINERS
+++ /dev/null
@@ -1,445 +0,0 @@
- GDB Maintainers
-
-
- Global Maintainers
- (alphabetic)
-
-Jim Blandy jimb@redhat.com
-Kevin Buettner kevinb@redhat.com
-Andrew Cagney cagney@gnu.org
-J.T. Conklin jtc@acorntoolworks.com
-Fred Fish fnf@ninemoons.com
-Daniel Jacobowitz dan@debian.org
-Mark Kettenis kettenis@gnu.org
-Peter Schauer Peter.Schauer@regent.e-technik.tu-muenchen.de
-Stan Shebs shebs@apple.com
-Michael Snyder msnyder@redhat.com
-Elena Zannoni ezannoni@redhat.com
-Eli Zaretskii eliz@gnu.org
-
-
- Various Maintainers
-
-Note individuals who maintain parts of the debugger need approval to
-check in changes outside of the immediate domain that they maintain.
-
-If there is no maintainer for a given domain then the responsibility
-falls to a global maintainer.
-
-If there are several maintainers for a given domain then
-responsibility falls to the first maintainer. The first maintainer is
-free to devolve that responsibility among the other maintainers.
-
-
- The Obvious Fix Rule
-
-All maintainers listed in this file are allowed to check in obvious
-fixes.
-
-An "obvious fix" means that there is no possibility that anyone will
-disagree with the change.
-
-A good mental test is "will the person who hates my work the most be
-able to find fault with the change" - if so, then it's not obvious and
-needs to be posted first. :-)
-
-Something like changing or bypassing an interface is _not_ an obvious
-fix, since such a change without discussion will result in
-instantaneous and loud complaints.
-
-
-Target Instruction Set Architectures:
-
-Generic ISA (Instruction Set Architecture) issues, API variants, CPU
-variants. *-tdep.c. The Target/Architecture maintainer works with the
-host maintainer when resolving build issues. The Target/Architecture
-maintainer works with the native maintainer when resolving API issues.
-
- a29k Deleted.
-
- alpha --target=alpha-elf ,-Werror
- Maintenance only
-
- arc Deleted.
-
- arm --target=arm-elf ,-Werror
- Scott Bambrough scottb@netwinder.org
- Richard Earnshaw rearnsha@arm.com
-
- avr --target=avr ,-Werror
- Theodore A. Roth troth@openavr.org
-
- cris --target=cris-elf ,-Werror
- Orjan Friberg orjanf@axis.com
-
- d10v --target=d10v-elf ,-Werror
- Maintenance only
-
- d30v Deleted.
-
- fr30 Deleted.
-
- frv --target=frv-elf ,-Werror
- Maintenance only
-
- h8300 --target=h8300hms ,-Werror
- Maintenance only
-
- h8500 Deleted.
-
- i386 --target=i386-elf ,-Werror
- Mark Kettenis kettenis@gnu.org
-
- i960 Deleted.
-
- ia64 --target=ia64-linux-gnu ,-Werror
- (--target=ia64-elf broken)
- Kevin Buettner kevinb@redhat.com
-
- m32r --target=m32r-elf ,-Werror
-
- m68hc11 --target=m68hc11-elf ,-Werror ,
- Stephane Carrez stcarrez@nerim.fr
-
- m68k --target=m68k-elf ,-Werror
- Maintenance only
-
- m88k Deleted.
-
- mcore --target=mcore-elf ,-Werror
- Maintenance only
-
- mips --target=mips-elf ,-Werror
- Andrew Cagney cagney@redhat.com
-
- mn10200 Deleted.
-
- mn10300 --target=mn10300-elf ,-Werror
- Maintenance only
-
- ns32k --target=ns32k-netbsd ,-Werror
- Maintenance only
-
- pa (--target=hppa-elf broken)
- Maintenance only
-
- powerpc --target=powerpc-eabi ,-Werror
- Kevin Buettner kevinb@redhat.com
-
- s390 --target=s390-linux-gnu ,-Werror
- (contact DJ Barrow djbarrow@de.ibm.com)
-
- sh --target=sh-elf ,-Werror
- Elena Zannoni ezannoni@redhat.com
-
- sparc --target=sparc-elf ,-Werror
- Maintenance only
-
- tic80 Deleted.
-
- v850 --target=v850-elf ,-Werror
- Maintenance only
-
- vax --target=vax-netbsd ,-Werror
- Maintenance only
-
- w65 Deleted.
-
- x86-64 --target=x86_64-linux-gnu ,-Werror
- Maintenance only
-
- xstormy16 --target=xstormy16-elf ,-Werror
- Corinna Vinschen vinschen@redhat.com
-
- z8k Deleted.
-
-All developers recognized by this file can make arbitrary changes to
-OBSOLETE targets.
-
-All maintainers can test and thence approve non-trivial changes to
-``maintenance only'' targets submitted by recognized developers.
-
-All recognized developers can make mechanical changes (by virtue of
-the obvious fix rule) to ``maintenance only'' targets. The change
-shall be sanity checked by compiling with one of the listed targets.
-
-The Bourne shell script gdb_mbuild.sh can be used to rebuild all the
-above targets.
-
-
-Host/Native:
-
-The Native maintainer is responsible for target specific native
-support - typically shared libraries and quirks to procfs/ptrace/...
-The Native maintainer works with the Arch and Core maintainers when
-resolving more generic problems.
-
-The host maintainer ensures that gdb can be built as a cross debugger on
-their platform.
-
-AIX Peter Schauer Peter.Schauer@regent.e-technik.tu-muenchen.de
- Kevin Buettner kevinb@redhat.com
- Joel Brobecker brobecker@gnat.com
-
-djgpp native Eli Zaretskii eliz@gnu.org
- DJ Delorie dj@redhat.com
-MS Windows (NT, '00, 9x, Me, XP) host & native
- Chris Faylor cgf@alum.bu.edu
-GNU/Linux/x86 native & host
- Mark Kettenis kettenis@gnu.org
-GNU/Linux PPC native Kevin Buettner kevinb@redhat.com
-GNU/Linux MIPS native & host
- Daniel Jacobowitz dan@debian.org
-GNU/Linux m68k Andreas Schwab schwab@suse.de
-FreeBSD native & host Mark Kettenis kettenis@gnu.org
- David O'Brien obrien@freebsd.org
-hurd native Mark Kettenis kettenis@gnu.org
-NetBSD native & host Jason Thorpe thorpej@wasabisystems.com
-SCO/Unixware Robert Lipe rjl@sco.com
-GNU/Linux ARM native Scott Bambrough scottb@netwinder.org
-Solaris/x86 native & host (devolved)
- Peter Schauer Peter.Schauer@regent.e-technik.tu-muenchen.de
-Solaris/SPARC native & host (devolved)
- (Global Maintainers)
-
-
-
-Core: Generic components used by all of GDB
-
-generic arch support Andrew Cagney cagney@redhat.com
- Any host/target maintainer can add to
- gdbarch.{c,h,sh}. Send tricky ones to cagney.
-target vector Andrew Cagney cagney@redhat.com
-
-event loop Elena Zannoni ezannoni@redhat.com
- For the part of top.c related to the event loop,
- send questions to ezannoni@redhat.com
-
-generic symtabs Jim Blandy jimb@redhat.com
- Elena Zannoni ezannoni@redhat.com
- dwarf readers Jim Blandy jimb@redhat.com
- Elena Zannoni ezannoni@redhat.com
- elf reader Jim Blandy jimb@redhat.com
- Elena Zannoni ezannoni@redhat.com
- stabs reader Jim Blandy jimb@redhat.com
- Elena Zannoni ezannoni@redhat.com
- coff reader Philippe De Muyter phdm@macqel.be
- xcoff reader Any maintainer can modify this; please send tricky
- ones to Kevin Buettner <kevinb@redhat.com>
- HP/UX readers Any [past] maintainer can modify this.
- Please send tricky ones to the symtabs maintainers.
-
-tracing bytecode stuff Jim Blandy jimb@redhat.com
- (Global Maintainers)
-tracing Michael Snyder msnyder@redhat.com
-threads Michael Snyder msnyder@redhat.com
- Mark Kettenis kettenis@gnu.org
-breakpoints (Global Maintainers)
-language support (Blanket Write Privs Maintainers)
- C++ Daniel Jacobowitz dan@debian.org
- Java support (Global Maintainers)
- Pascal support Pierre Muller muller@sources.redhat.com
- Objective C support Adam Fedor fedor@gnu.org
-shared libs (devolved) Kevin Buettner kevinb@redhat.com
- xcoffsolib Peter Schauer Peter.Schauer@regent.e-technik.tu-muenchen.de
-
-remote.c Andrew Cagney cagney@redhat.com
-include/remote-sim.h, remote-sim.c
- Andrew Cagney cagney@redhat.com
-sds protocol (vacant)
-rdi/adp protocol (vacant)
-documentation Eli Zaretskii eliz@gnu.org
-testsuite Michael Chastain mec.gnu@mindspring.com
- (Global Maintainers)
- lib/, config/, gdb.base/, ...
- Michael Chastain mec.gnu@mindspring.com
- (Global Maintainers)
- gdbtk (gdb.gdbtk) Keith Seitz keiths@redhat.com
- c++ (gdb.cp) Michael Chastain mec.gnu@mindspring.com
- David Carlton carlton@bactrian.org
- mi tests (gdb.mi) Elena Zannoni ezannoni@redhat.com
- Andrew Cagney cagney@redhat.com
- threads (gdb.threads) Michael Snyder msnyder@redhat.com
- trace (gdb.trace) Michael Snyder msnyder@redhat.com
- hp tests (gdb.hp) (vacant)
- Java tests (gdb.java) Anthony Green green@redhat.com
-Kernel Object Display Fernando Nasser fnasser@redhat.com
-
-
-UI: External (user) interfaces.
-
-command interpreter (Global Maintainers)
-gdbtk (c & tcl) Jim Ingham jingham@apple.com
- Fernando Nasser fnasser@redhat.com
- Keith Seitz keiths@redhat.com
-libgui (w/foundry, sn) Jim Ingham jingham@apple.com
- Keith Seitz keiths@redhat.com
-mi (gdb/mi) Andrew Cagney cagney@redhat.com
- Elena Zannoni ezannoni@redhat.com
- Fernando Nasser fnasser@redhat.com
-tui Stephane Carrez stcarrez@nerim.fr
- (Global Maintainers)
-
-
-Misc:
-
-gdb/gdbserver Daniel Jacobowitz dan@debian.org
-
-Web pages. Jim Kingdon jkingdon@engr.sgi.com ++
- (anyone can edit; kingdon is just lead maintainer)
-
-Makefile.in, configure* ALL
-
-mmalloc/ ALL Host maintainers
-
-NEWS ALL
-
-sim/ See sim/MAINTAINERS
-
-readline/ Master version: ftp://ftp.cwru.edu/pub/bash/
- Elena Zannoni ezannoni@redhat.com
- Host maintainers (host dependant parts)
- (but get your changes into the master version)
-
-tcl/ tk/ itcl/ Ian Roxborough irox@redhat.com
-
- Write After Approval
- (alphabetic)
-
-To get recommended for the Write After Approval list you need a valid
-FSF assignment and have submitted one good patch.
-
-David Anderson davea@sgi.com
-Shrinivas Atre shrinivasa@kpitcummins.com
-Scott Bambrough scottb@netwinder.org
-Jim Blandy jimb@redhat.com
-Philip Blundell philb@gnu.org
-Per Bothner per@bothner.com
-Joel Brobecker brobecker@gnat.com
-Dave Brolley brolley@redhat.com
-Paul Brook paul@codesourcery.com
-Kevin Buettner kevinb@redhat.com
-Andrew Cagney cagney@gnu.org
-David Carlton carlton@bactrian.org
-Stephane Carrez stcarrez@nerim.fr
-Michael Chastain mec.gnu@mindspring.com
-Eric Christopher echristo@redhat.com
-Randolph Chung tausq@debian.org
-Nick Clifton nickc@redhat.com
-Brendan Conoboy blc@redhat.com
-DJ Delorie dj@redhat.com
-Chris G. Demetriou cgd@broadcom.com
-Philippe De Muyter phdm@macqel.be
-Dhananjay Deshpande dhananjayd@kpitcummins.com
-Klee Dienes kdienes@apple.com
-Richard Earnshaw rearnsha@arm.com
-Frank Ch. Eigler fche@redhat.com
-Ben Elliston bje@gnu.org
-Brian Ford ford@vss.fsi.com
-Raoul Gough RaoulGough@yahoo.co.uk
-Anthony Green green@redhat.com
-Matthew Green mrg@eterna.com.au
-Jerome Guitton guitton@act-europe.fr
-Adam Fedor fedor@gnu.org
-Fred Fish fnf@ninemoons.com
-Orjan Friberg orjanf@axis.com
-Ben Harris bjh21@netbsd.org
-Richard Henderson rth@redhat.com
-Aldy Hernandez aldyh@redhat.com
-Paul Hilfinger hilfinger@gnat.com
-Matt Hiller hiller@redhat.com
-Kazu Hirata kazu@cs.umass.edu
-Jeff Holcomb jeffh@redhat.com
-Don Howard dhoward@redhat.com
-Martin Hunt hunt@redhat.com
-Jim Ingham jingham@apple.com
-Daniel Jacobowitz dan@debian.org
-Andreas Jaeger aj@suse.de
-Jeff Johnston jjohnstn@redhat.com
-Geoff Keating geoffk@redhat.com
-Mark Kettenis kettenis@gnu.org
-Jim Kingdon jkingdon@engr.sgi.com ++
-Jonathan Larmour jlarmour@redhat.co.uk
-Jeff Law law@redhat.com
-David Lecomber david@streamline-computing.com
-Robert Lipe rjl@sco.com
-H.J. Lu hjl@lucon.org
-Michal Ludvig mludvig@suse.cz
-Glen McCready gkm@redhat.com
-Greg McGary greg@mcgary.org
-Roland McGrath roland@redhat.com
-Bryce McKinlay mckinlay@redhat.com
-Jason Merrill jason@redhat.com
-David S. Miller davem@redhat.com
-Mark Mitchell mark@codesourcery.com
-Marko Mlinar markom@opencores.org
-Alan Modra amodra@bigpond.net.au
-Jason Molenda jmolenda@apple.com
-Pierre Muller muller@sources.redhat.com
-Fernando Nasser fnasser@redhat.com
-Hans-Peter Nilsson hp@bitrange.com
-David O'Brien obrien@freebsd.org
-Alexandre Oliva aoliva@redhat.com
-Tom Rix trix@redhat.com
-Nick Roberts nick@nick.uklinux.net
-Bob Rossi bob_rossi@cox.net
-Theodore A. Roth troth@openavr.org
-Ian Roxborough irox@redhat.com
-Grace Sainsbury graces@redhat.com
-Kei Sakamoto sakamoto.kei@renesas.com
-Mark Salter msalter@redhat.com
-Richard Sandiford rsandifo@redhat.com
-Peter Schauer Peter.Schauer@regent
-Andreas Schwab schwab@suse.de
-Keith Seitz keiths@redhat.com
-Stan Shebs shebs@apple.com
-Aidan Skinner aidan@velvet.net
-Jiri Smid smid@suse.cz
-David Smith dsmith@redhat.com
-Stephen P. Smith ischis2@cox.net
-Jackie Smith Cashion jsmith@redhat.com
-Michael Snyder msnyder@redhat.com
-Petr Sorfa petrs@caldera.com
-Ian Lance Taylor ian@wasabisystems.com
-Gary Thomas gthomas@redhat.com
-Jason Thorpe thorpej@wasabisystems.com
-Tom Tromey tromey@redhat.com
-D Venkatasubramanian dvenkat@noida.hcltech.com
-Corinna Vinschen vinschen@redhat.com
-Keith Walker keith.walker@arm.com
-Kris Warkentin kewarken@qnx.com
-Ulrich Weigand uweigand@de.ibm.com
-Nathan Williams nathanw@wasabisystems.com
-Jim Wilson wilson@specifixinc.com
-Elena Zannoni ezannoni@redhat.com
-Eli Zaretskii eliz@gnu.org
-
-
-
- Past Maintainers
-
-Jimmy Guo (gdb.hp, tui) guo at cup dot hp dot com
-Jeff Law (hppa) law at cygnus dot com
-Daniel Berlin (C++ support) dan at cgsoftware dot com
-Nick Duffek (powerpc, SCO, Sol/x86) nick at duffek dot com
-David Taylor (d10v, sparc, utils, defs,
- expression evaluator, language support) taylor at candd dot org
-J.T. Conklin (dcache, NetBSD, remote) jtc at redback dot com
-Frank Ch. Eigler (sim) fche at redhat dot com
-Per Bothner (Java) per at bothner dot com
-Anthony Green (Java) green at redhat dot com
-Fernando Nasser (testsuite/, mi, cli) fnasser at redhat dot com
-Mark Salter (testsuite/lib+config) msalter at redhat dot com
-
-
-
-Folks that have been caught up in a paper trail:
-
-Chris Faylor cgf@alum.bu.edu
-Jim Kingdon jkingdon@engr.sgi.com
-David Carlton carlton@bactrian.org
-
---
-
-(*) Indicates folks that don't have a Kerberos/SSH account in the GDB
-group.
diff --git a/contrib/gdb/gdb/NEWS b/contrib/gdb/gdb/NEWS
deleted file mode 100644
index abba0e760cc2..000000000000
--- a/contrib/gdb/gdb/NEWS
+++ /dev/null
@@ -1,2504 +0,0 @@
- What has changed in GDB?
- (Organized release by release)
-
-*** Changes in GDB 6.1.1:
-
-* TUI (Text-mode User Interface) built-in (also included in GDB 6.1)
-
-The TUI (Text-mode User Interface) is now built as part of a default
-GDB configuration. It is enabled by either selecting the TUI with the
-command line option "-i=tui" or by running the separate "gdbtui"
-program. For more information on the TUI, see the manual "Debugging
-with GDB".
-
-* Pending breakpoint support (also included in GDB 6.1)
-
-Support has been added to allow you to specify breakpoints in shared
-libraries that have not yet been loaded. If a breakpoint location
-cannot be found, and the "breakpoint pending" option is set to auto,
-GDB queries you if you wish to make the breakpoint pending on a future
-shared-library load. If and when GDB resolves the breakpoint symbol,
-the pending breakpoint is removed as one or more regular breakpoints
-are created.
-
-Pending breakpoints are very useful for GCJ Java debugging.
-
-* Fixed ISO-C build problems
-
-The files bfd/elf-bfd.h, gdb/dictionary.c and gdb/types.c contained
-non ISO-C code that stopped them being built using a more strict ISO-C
-compiler (e.g., IBM's C compiler).
-
-* Fixed build problem on IRIX 5
-
-Due to header problems with <sys/proc.h>, the file gdb/proc-api.c
-wasn't able to compile compile on an IRIX 5 system.
-
-* Added execute permission to gdb/gdbserver/configure
-
-The shell script gdb/testsuite/gdb.stabs/configure lacked execute
-permission. This bug would cause configure to fail on a number of
-systems (Solaris, IRIX). Ref: server/519.
-
-* Fixed build problem on hpux2.0w-hp-hpux11.00 using the HP ANSI C compiler
-
-Older HPUX ANSI C compilers did not accept variable array sizes. somsolib.c
-has been updated to use constant array sizes.
-
-* Fixed a panic in the DWARF Call Frame Info code on Solaris 2.7
-
-GCC 3.3.2, on Solaris 2.7, includes the DW_EH_PE_funcrel encoding in
-its generated DWARF Call Frame Info. This encoding was causing GDB to
-panic, that panic has been fixed. Ref: gdb/1628.
-
-* Fixed a problem when examining parameters in shared library code.
-
-When examining parameters in optimized shared library code generated
-by a mainline GCC, GDB would incorrectly report ``Variable "..." is
-not available''. GDB now correctly displays the variable's value.
-
-*** Changes in GDB 6.1:
-
-* Removed --with-mmalloc
-
-Support for the mmalloc memory manager has been removed, as it
-conflicted with the internal gdb byte cache.
-
-* Changes in AMD64 configurations
-
-The AMD64 target now includes the %cs and %ss registers. As a result
-the AMD64 remote protocol has changed; this affects the floating-point
-and SSE registers. If you rely on those registers for your debugging,
-you should upgrade gdbserver on the remote side.
-
-* Revised SPARC target
-
-The SPARC target has been completely revised, incorporating the
-FreeBSD/sparc64 support that was added for GDB 6.0. As a result
-support for LynxOS and SunOS 4 has been dropped. Calling functions
-from within GDB on operating systems with a non-executable stack
-(Solaris, OpenBSD) now works.
-
-* New C++ demangler
-
-GDB has a new C++ demangler which does a better job on the mangled
-names generated by current versions of g++. It also runs faster, so
-with this and other changes gdb should now start faster on large C++
-programs.
-
-* DWARF 2 Location Expressions
-
-GDB support for location expressions has been extended to support function
-arguments and frame bases. Older versions of GDB could crash when they
-encountered these.
-
-* C++ nested types and namespaces
-
-GDB's support for nested types and namespaces in C++ has been
-improved, especially if you use the DWARF 2 debugging format. (This
-is the default for recent versions of GCC on most platforms.)
-Specifically, if you have a class "Inner" defined within a class or
-namespace "Outer", then GDB realizes that the class's name is
-"Outer::Inner", not simply "Inner". This should greatly reduce the
-frequency of complaints about not finding RTTI symbols. In addition,
-if you are stopped at inside of a function defined within a namespace,
-GDB modifies its name lookup accordingly.
-
-* New native configurations
-
-NetBSD/amd64 x86_64-*-netbsd*
-OpenBSD/amd64 x86_64-*-openbsd*
-OpenBSD/alpha alpha*-*-openbsd*
-OpenBSD/sparc sparc-*-openbsd*
-OpenBSD/sparc64 sparc64-*-openbsd*
-
-* New debugging protocols
-
-M32R with SDI protocol m32r-*-elf*
-
-* "set prompt-escape-char" command deleted.
-
-The command "set prompt-escape-char" has been deleted. This command,
-and its very obscure effet on GDB's prompt, was never documented,
-tested, nor mentioned in the NEWS file.
-
-* OBSOLETE configurations and files
-
-Configurations that have been declared obsolete in this release have
-been commented out. Unless there is activity to revive these
-configurations, the next release of GDB will have their sources
-permanently REMOVED.
-
-Sun 3, running SunOS 3 m68*-*-sunos3*
-Sun 3, running SunOS 4 m68*-*-sunos4*
-Sun 2, running SunOS 3 m68000-*-sunos3*
-Sun 2, running SunOS 4 m68000-*-sunos4*
-Motorola 680x0 running LynxOS m68*-*-lynxos*
-AT&T 3b1/Unix pc m68*-att-*
-Bull DPX2 (68k, System V release 3) m68*-bull-sysv*
-decstation mips-dec-* mips-little-*
-riscos mips-*-riscos* mips-*-sysv*
-sonymips mips-sony-*
-sysv mips*-*-sysv4* (IRIX 5/6 not included)
-
-* REMOVED configurations and files
-
-SGI Irix-4.x mips-sgi-irix4 or iris4
-SGI Iris (MIPS) running Irix V3: mips-sgi-irix or iris
-Z8000 simulator z8k-zilog-none or z8ksim
-Matsushita MN10200 w/simulator mn10200-*-*
-H8/500 simulator h8500-hitachi-hms or h8500hms
-HP/PA running BSD hppa*-*-bsd*
-HP/PA running OSF/1 hppa*-*-osf*
-HP/PA Pro target hppa*-*-pro*
-PMAX (MIPS) running Mach 3.0 mips*-*-mach3*
-386BSD i[3456]86-*-bsd*
-Sequent family i[3456]86-sequent-sysv4*
- i[3456]86-sequent-sysv*
- i[3456]86-sequent-bsd*
-SPARC running LynxOS sparc-*-lynxos*
-SPARC running SunOS 4 sparc-*-sunos4*
-Tsqware Sparclet sparclet-*-*
-Fujitsu SPARClite sparclite-fujitsu-none or sparclite
-
-*** Changes in GDB 6.0:
-
-* Objective-C
-
-Support for debugging the Objective-C programming language has been
-integrated into GDB.
-
-* New backtrace mechanism (includes DWARF 2 Call Frame Information).
-
-DWARF 2's Call Frame Information makes available compiler generated
-information that more exactly describes the program's run-time stack.
-By using this information, GDB is able to provide more robust stack
-backtraces.
-
-The i386, amd64 (nee, x86-64), Alpha, m68hc11, ia64, and m32r targets
-have been updated to use a new backtrace mechanism which includes
-DWARF 2 CFI support.
-
-* Hosted file I/O.
-
-GDB's remote protocol has been extended to include support for hosted
-file I/O (where the remote target uses GDB's file system). See GDB's
-remote protocol documentation for details.
-
-* All targets using the new architecture framework.
-
-All of GDB's targets have been updated to use the new internal
-architecture framework. The way is now open for future GDB releases
-to include cross-architecture native debugging support (i386 on amd64,
-ppc32 on ppc64).
-
-* GNU/Linux's Thread Local Storage (TLS)
-
-GDB now includes support for for the GNU/Linux implementation of
-per-thread variables.
-
-* GNU/Linux's Native POSIX Thread Library (NPTL)
-
-GDB's thread code has been updated to work with either the new
-GNU/Linux NPTL thread library or the older "LinuxThreads" library.
-
-* Separate debug info.
-
-GDB, in conjunction with BINUTILS, now supports a mechanism for
-automatically loading debug information from a separate file. Instead
-of shipping full debug and non-debug versions of system libraries,
-system integrators can now instead ship just the stripped libraries
-and optional debug files.
-
-* DWARF 2 Location Expressions
-
-DWARF 2 Location Expressions allow the compiler to more completely
-describe the location of variables (even in optimized code) to the
-debugger.
-
-GDB now includes preliminary support for location expressions (support
-for DW_OP_piece is still missing).
-
-* Java
-
-A number of long standing bugs that caused GDB to die while starting a
-Java application have been fixed. GDB's Java support is now
-considered "useable".
-
-* GNU/Linux support for fork, vfork, and exec.
-
-The "catch fork", "catch exec", "catch vfork", and "set follow-fork-mode"
-commands are now implemented for GNU/Linux. They require a 2.5.x or later
-kernel.
-
-* GDB supports logging output to a file
-
-There are two new commands, "set logging" and "show logging", which can be
-used to capture GDB's output to a file.
-
-* The meaning of "detach" has changed for gdbserver
-
-The "detach" command will now resume the application, as documented. To
-disconnect from gdbserver and leave it stopped, use the new "disconnect"
-command.
-
-* d10v, m68hc11 `regs' command deprecated
-
-The `info registers' command has been updated so that it displays the
-registers using a format identical to the old `regs' command.
-
-* Profiling support
-
-A new command, "maint set profile on/off", has been added. This command can
-be used to enable or disable profiling while running GDB, to profile a
-session or a set of commands. In addition there is a new configure switch,
-"--enable-profiling", which will cause GDB to be compiled with profiling
-data, for more informative profiling results.
-
-* Default MI syntax changed to "mi2".
-
-The default MI (machine interface) syntax, enabled by the command line
-option "-i=mi", has been changed to "mi2". The previous MI syntax,
-"mi1", can be enabled by specifying the option "-i=mi1".
-
-Support for the original "mi0" syntax (included in GDB 5.0) has been
-removed.
-
-Fix for gdb/192: removed extraneous space when displaying frame level.
-Fix for gdb/672: update changelist is now output in mi list format.
-Fix for gdb/702: a -var-assign that updates the value now shows up
- in a subsequent -var-update.
-
-* New native configurations.
-
-FreeBSD/amd64 x86_64-*-freebsd*
-
-* Multi-arched targets.
-
-HP/PA HPUX11 hppa*-*-hpux*
-Renesas M32R/D w/simulator m32r-*-elf*
-
-* OBSOLETE configurations and files
-
-Configurations that have been declared obsolete in this release have
-been commented out. Unless there is activity to revive these
-configurations, the next release of GDB will have their sources
-permanently REMOVED.
-
-Z8000 simulator z8k-zilog-none or z8ksim
-Matsushita MN10200 w/simulator mn10200-*-*
-H8/500 simulator h8500-hitachi-hms or h8500hms
-HP/PA running BSD hppa*-*-bsd*
-HP/PA running OSF/1 hppa*-*-osf*
-HP/PA Pro target hppa*-*-pro*
-PMAX (MIPS) running Mach 3.0 mips*-*-mach3*
-Sequent family i[3456]86-sequent-sysv4*
- i[3456]86-sequent-sysv*
- i[3456]86-sequent-bsd*
-Tsqware Sparclet sparclet-*-*
-Fujitsu SPARClite sparclite-fujitsu-none or sparclite
-
-* REMOVED configurations and files
-
-V850EA ISA
-Motorola Delta 88000 running Sys V m88k-motorola-sysv or delta88
-IBM AIX PS/2 i[3456]86-*-aix
-i386 running Mach 3.0 i[3456]86-*-mach3*
-i386 running Mach i[3456]86-*-mach*
-i386 running OSF/1 i[3456]86-*osf1mk*
-HP/Apollo 68k Family m68*-apollo*-sysv*,
- m68*-apollo*-bsd*,
- m68*-hp-bsd*, m68*-hp-hpux*
-Argonaut Risc Chip (ARC) arc-*-*
-Mitsubishi D30V d30v-*-*
-Fujitsu FR30 fr30-*-elf*
-OS/9000 i[34]86-*-os9k
-I960 with MON960 i960-*-coff
-
-* MIPS $fp behavior changed
-
-The convenience variable $fp, for the MIPS, now consistently returns
-the address of the current frame's base. Previously, depending on the
-context, $fp could refer to either $sp or the current frame's base
-address. See ``8.10 Registers'' in the manual ``Debugging with GDB:
-The GNU Source-Level Debugger''.
-
-*** Changes in GDB 5.3:
-
-* GNU/Linux shared library multi-threaded performance improved.
-
-When debugging a multi-threaded application on GNU/Linux, GDB now uses
-`/proc', in preference to `ptrace' for memory reads. This may result
-in an improvement in the start-up time of multi-threaded, shared
-library applications when run under GDB. One GDB user writes: ``loads
-shared libs like mad''.
-
-* ``gdbserver'' now supports multi-threaded applications on some targets
-
-Support for debugging multi-threaded applications which use
-the GNU/Linux LinuxThreads package has been added for
-arm*-*-linux*-gnu*, i[3456]86-*-linux*-gnu*, mips*-*-linux*-gnu*,
-powerpc*-*-linux*-gnu*, and sh*-*-linux*-gnu*.
-
-* GDB now supports C/C++ preprocessor macros.
-
-GDB now expands preprocessor macro invocations in C/C++ expressions,
-and provides various commands for showing macro definitions and how
-they expand.
-
-The new command `macro expand EXPRESSION' expands any macro
-invocations in expression, and shows the result.
-
-The new command `show macro MACRO-NAME' shows the definition of the
-macro named MACRO-NAME, and where it was defined.
-
-Most compilers don't include information about macros in the debugging
-information by default. In GCC 3.1, for example, you need to compile
-your program with the options `-gdwarf-2 -g3'. If the macro
-information is present in the executable, GDB will read it.
-
-* Multi-arched targets.
-
-DEC Alpha (partial) alpha*-*-*
-DEC VAX (partial) vax-*-*
-NEC V850 v850-*-*
-National Semiconductor NS32000 (partial) ns32k-*-*
-Motorola 68000 (partial) m68k-*-*
-Motorola MCORE mcore-*-*
-
-* New targets.
-
-Fujitsu FRV architecture added by Red Hat frv*-*-*
-
-
-* New native configurations
-
-Alpha NetBSD alpha*-*-netbsd*
-SH NetBSD sh*-*-netbsdelf*
-MIPS NetBSD mips*-*-netbsd*
-UltraSPARC NetBSD sparc64-*-netbsd*
-
-* OBSOLETE configurations and files
-
-Configurations that have been declared obsolete in this release have
-been commented out. Unless there is activity to revive these
-configurations, the next release of GDB will have their sources
-permanently REMOVED.
-
-Mitsubishi D30V d30v-*-*
-OS/9000 i[34]86-*-os9k
-IBM AIX PS/2 i[3456]86-*-aix
-Fujitsu FR30 fr30-*-elf*
-Motorola Delta 88000 running Sys V m88k-motorola-sysv or delta88
-Argonaut Risc Chip (ARC) arc-*-*
-i386 running Mach 3.0 i[3456]86-*-mach3*
-i386 running Mach i[3456]86-*-mach*
-i386 running OSF/1 i[3456]86-*osf1mk*
-HP/Apollo 68k Family m68*-apollo*-sysv*,
- m68*-apollo*-bsd*,
- m68*-hp-bsd*, m68*-hp-hpux*
-I960 with MON960 i960-*-coff
-
-* OBSOLETE languages
-
-CHILL, a Pascal like language used by telecommunications companies.
-
-* REMOVED configurations and files
-
-AMD 29k family via UDI a29k-amd-udi, udi29k
-A29K VxWorks a29k-*-vxworks
-AMD 29000 embedded, using EBMON a29k-none-none
-AMD 29000 embedded with COFF a29k-none-coff
-AMD 29000 embedded with a.out a29k-none-aout
-
-testsuite/gdb.hp/gdb.threads-hp/ directory
-
-* New command "set max-user-call-depth <nnn>"
-
-This command allows the user to limit the call depth of user-defined
-commands. The default is 1024.
-
-* Changes in FreeBSD/i386 native debugging.
-
-Support for the "generate-core-file" has been added.
-
-* New commands "dump", "append", and "restore".
-
-These commands allow data to be copied from target memory
-to a bfd-format or binary file (dump and append), and back
-from a file into memory (restore).
-
-* Improved "next/step" support on multi-processor Alpha Tru64.
-
-The previous single-step mechanism could cause unpredictable problems,
-including the random appearance of SIGSEGV or SIGTRAP signals. The use
-of a software single-step mechanism prevents this.
-
-*** Changes in GDB 5.2.1:
-
-* New targets.
-
-Atmel AVR avr*-*-*
-
-* Bug fixes
-
-gdb/182: gdb/323: gdb/237: On alpha, gdb was reporting:
-mdebugread.c:2443: gdb-internal-error: sect_index_data not initialized
-Fix, by Joel Brobecker imported from mainline.
-
-gdb/439: gdb/291: On some ELF object files, gdb was reporting:
-dwarf2read.c:1072: gdb-internal-error: sect_index_text not initialize
-Fix, by Fred Fish, imported from mainline.
-
-Dwarf2 .debug_frame & .eh_frame handler improved in many ways.
-Surprisingly enough, it works now.
-By Michal Ludvig, imported from mainline.
-
-i386 hardware watchpoint support:
-avoid misses on second run for some targets.
-By Pierre Muller, imported from mainline.
-
-*** Changes in GDB 5.2:
-
-* New command "set trust-readonly-sections on[off]".
-
-This command is a hint that tells gdb that read-only sections
-really are read-only (ie. that their contents will not change).
-In this mode, gdb will go to the object file rather than the
-target to read memory from read-only sections (such as ".text").
-This can be a significant performance improvement on some
-(notably embedded) targets.
-
-* New command "generate-core-file" (or "gcore").
-
-This new gdb command allows the user to drop a core file of the child
-process state at any time. So far it's been implemented only for
-GNU/Linux and Solaris, but should be relatively easily ported to other
-hosts. Argument is core file name (defaults to core.<pid>).
-
-* New command line option
-
-GDB now accepts --pid or -p followed by a process id.
-
-* Change in command line behavior -- corefiles vs. process ids.
-
-There is a subtle behavior in the way in which GDB handles
-command line arguments. The first non-flag argument is always
-a program to debug, but the second non-flag argument may either
-be a corefile or a process id. Previously, GDB would attempt to
-open the second argument as a corefile, and if that failed, would
-issue a superfluous error message and then attempt to attach it as
-a process. Now, if the second argument begins with a non-digit,
-it will be treated as a corefile. If it begins with a digit,
-GDB will attempt to attach it as a process, and if no such process
-is found, will then attempt to open it as a corefile.
-
-* Changes in ARM configurations.
-
-Multi-arch support is enabled for all ARM configurations. The ARM/NetBSD
-configuration is fully multi-arch.
-
-* New native configurations
-
-ARM NetBSD arm*-*-netbsd*
-x86 OpenBSD i[3456]86-*-openbsd*
-AMD x86-64 running GNU/Linux x86_64-*-linux-*
-Sparc64 running FreeBSD sparc64-*-freebsd*
-
-* New targets
-
-Sanyo XStormy16 xstormy16-elf
-
-* OBSOLETE configurations and files
-
-Configurations that have been declared obsolete in this release have
-been commented out. Unless there is activity to revive these
-configurations, the next release of GDB will have their sources
-permanently REMOVED.
-
-AMD 29k family via UDI a29k-amd-udi, udi29k
-A29K VxWorks a29k-*-vxworks
-AMD 29000 embedded, using EBMON a29k-none-none
-AMD 29000 embedded with COFF a29k-none-coff
-AMD 29000 embedded with a.out a29k-none-aout
-
-testsuite/gdb.hp/gdb.threads-hp/ directory
-
-* REMOVED configurations and files
-
-TI TMS320C80 tic80-*-*
-WDC 65816 w65-*-*
-PowerPC Solaris powerpcle-*-solaris*
-PowerPC Windows NT powerpcle-*-cygwin32
-PowerPC Netware powerpc-*-netware*
-Harris/CXUX m88k m88*-harris-cxux*
-Most ns32k hosts and targets ns32k-*-mach3* ns32k-umax-*
- ns32k-utek-sysv* ns32k-utek-*
-SunOS 4.0.Xi on i386 i[3456]86-*-sunos*
-Ultracomputer (29K) running Sym1 a29k-nyu-sym1 a29k-*-kern*
-Sony NEWS (68K) running NEWSOS 3.x m68*-sony-sysv news
-ISI Optimum V (3.05) under 4.3bsd. m68*-isi-*
-Apple Macintosh (MPW) host and target N/A host, powerpc-*-macos*
-
-* Changes to command line processing
-
-The new `--args' feature can be used to specify command-line arguments
-for the inferior from gdb's command line.
-
-* Changes to key bindings
-
-There is a new `operate-and-get-next' function bound to `C-o'.
-
-*** Changes in GDB 5.1.1
-
-Fix compile problem on DJGPP.
-
-Fix a problem with floating-point registers on the i386 being
-corrupted.
-
-Fix to stop GDB crashing on .debug_str debug info.
-
-Numerous documentation fixes.
-
-Numerous testsuite fixes.
-
-*** Changes in GDB 5.1:
-
-* New native configurations
-
-Alpha FreeBSD alpha*-*-freebsd*
-x86 FreeBSD 3.x and 4.x i[3456]86*-freebsd[34]*
-MIPS GNU/Linux mips*-*-linux*
-MIPS SGI Irix 6.x mips*-sgi-irix6*
-ia64 AIX ia64-*-aix*
-s390 and s390x GNU/Linux {s390,s390x}-*-linux*
-
-* New targets
-
-Motorola 68HC11 and 68HC12 m68hc11-elf
-CRIS cris-axis
-UltraSparc running GNU/Linux sparc64-*-linux*
-
-* OBSOLETE configurations and files
-
-x86 FreeBSD before 2.2 i[3456]86*-freebsd{1,2.[01]}*,
-Harris/CXUX m88k m88*-harris-cxux*
-Most ns32k hosts and targets ns32k-*-mach3* ns32k-umax-*
- ns32k-utek-sysv* ns32k-utek-*
-TI TMS320C80 tic80-*-*
-WDC 65816 w65-*-*
-Ultracomputer (29K) running Sym1 a29k-nyu-sym1 a29k-*-kern*
-PowerPC Solaris powerpcle-*-solaris*
-PowerPC Windows NT powerpcle-*-cygwin32
-PowerPC Netware powerpc-*-netware*
-SunOS 4.0.Xi on i386 i[3456]86-*-sunos*
-Sony NEWS (68K) running NEWSOS 3.x m68*-sony-sysv news
-ISI Optimum V (3.05) under 4.3bsd. m68*-isi-*
-Apple Macintosh (MPW) host N/A
-
-stuff.c (Program to stuff files into a specially prepared space in kdb)
-kdb-start.c (Main loop for the standalone kernel debugger)
-
-Configurations that have been declared obsolete in this release have
-been commented out. Unless there is activity to revive these
-configurations, the next release of GDB will have their sources
-permanently REMOVED.
-
-* REMOVED configurations and files
-
-Altos 3068 m68*-altos-*
-Convex c1-*-*, c2-*-*
-Pyramid pyramid-*-*
-ARM RISCix arm-*-* (as host)
-Tahoe tahoe-*-*
-ser-ocd.c *-*-*
-
-* GDB has been converted to ISO C.
-
-GDB's source code has been converted to ISO C. In particular, the
-sources are fully protoized, and rely on standard headers being
-present.
-
-* Other news:
-
-* "info symbol" works on platforms which use COFF, ECOFF, XCOFF, and NLM.
-
-* The MI enabled by default.
-
-The new machine oriented interface (MI) introduced in GDB 5.0 has been
-revised and enabled by default. Packages which use GDB as a debugging
-engine behind a UI or another front end are encouraged to switch to
-using the GDB/MI interface, instead of the old annotations interface
-which is now deprecated.
-
-* Support for debugging Pascal programs.
-
-GDB now includes support for debugging Pascal programs. The following
-main features are supported:
-
- - Pascal-specific data types such as sets;
-
- - automatic recognition of Pascal sources based on file-name
- extension;
-
- - Pascal-style display of data types, variables, and functions;
-
- - a Pascal expression parser.
-
-However, some important features are not yet supported.
-
- - Pascal string operations are not supported at all;
-
- - there are some problems with boolean types;
-
- - Pascal type hexadecimal constants are not supported
- because they conflict with the internal variables format;
-
- - support for Pascal objects and classes is not full yet;
-
- - unlike Pascal, GDB is case-sensitive for symbol names.
-
-* Changes in completion.
-
-Commands such as `shell', `run' and `set args', which pass arguments
-to inferior programs, now complete on file names, similar to what
-users expect at the shell prompt.
-
-Commands which accept locations, such as `disassemble', `print',
-`breakpoint', `until', etc. now complete on filenames as well as
-program symbols. Thus, if you type "break foob TAB", and the source
-files linked into the programs include `foobar.c', that file name will
-be one of the candidates for completion. However, file names are not
-considered for completion after you typed a colon that delimits a file
-name from a name of a function in that file, as in "break foo.c:bar".
-
-`set demangle-style' completes on available demangling styles.
-
-* New platform-independent commands:
-
-It is now possible to define a post-hook for a command as well as a
-hook that runs before the command. For more details, see the
-documentation of `hookpost' in the GDB manual.
-
-* Changes in GNU/Linux native debugging.
-
-Support for debugging multi-threaded programs has been completely
-revised for all platforms except m68k and sparc. You can now debug as
-many threads as your system allows you to have.
-
-Attach/detach is supported for multi-threaded programs.
-
-Support for SSE registers was added for x86. This doesn't work for
-multi-threaded programs though.
-
-* Changes in MIPS configurations.
-
-Multi-arch support is enabled for all MIPS configurations.
-
-GDB can now be built as native debugger on SGI Irix 6.x systems for
-debugging n32 executables. (Debugging 64-bit executables is not yet
-supported.)
-
-* Unified support for hardware watchpoints in all x86 configurations.
-
-Most (if not all) native x86 configurations support hardware-assisted
-breakpoints and watchpoints in a unified manner. This support
-implements debug register sharing between watchpoints, which allows to
-put a virtually infinite number of watchpoints on the same address,
-and also supports watching regions up to 16 bytes with several debug
-registers.
-
-The new maintenance command `maintenance show-debug-regs' toggles
-debugging print-outs in functions that insert, remove, and test
-watchpoints and hardware breakpoints.
-
-* Changes in the DJGPP native configuration.
-
-New command ``info dos sysinfo'' displays assorted information about
-the CPU, OS, memory, and DPMI server.
-
-New commands ``info dos gdt'', ``info dos ldt'', and ``info dos idt''
-display information about segment descriptors stored in GDT, LDT, and
-IDT.
-
-New commands ``info dos pde'' and ``info dos pte'' display entries
-from Page Directory and Page Tables (for now works with CWSDPMI only).
-New command ``info dos address-pte'' displays the Page Table entry for
-a given linear address.
-
-GDB can now pass command lines longer than 126 characters to the
-program being debugged (requires an update to the libdbg.a library
-which is part of the DJGPP development kit).
-
-DWARF2 debug info is now supported.
-
-It is now possible to `step' and `next' through calls to `longjmp'.
-
-* Changes in documentation.
-
-All GDB documentation was converted to GFDL, the GNU Free
-Documentation License.
-
-Tracepoints-related commands are now fully documented in the GDB
-manual.
-
-TUI, the Text-mode User Interface, is now documented in the manual.
-
-Tracepoints-related commands are now fully documented in the GDB
-manual.
-
-The "GDB Internals" manual now has an index. It also includes
-documentation of `ui_out' functions, GDB coding standards, x86
-hardware watchpoints, and memory region attributes.
-
-* GDB's version number moved to ``version.in''
-
-The Makefile variable VERSION has been replaced by the file
-``version.in''. People creating GDB distributions should update the
-contents of this file.
-
-* gdba.el deleted
-
-GUD support is now a standard part of the EMACS distribution.
-
-*** Changes in GDB 5.0:
-
-* Improved support for debugging FP programs on x86 targets
-
-Unified and much-improved support for debugging floating-point
-programs on all x86 targets. In particular, ``info float'' now
-displays the FP registers in the same format on all x86 targets, with
-greater level of detail.
-
-* Improvements and bugfixes in hardware-assisted watchpoints
-
-It is now possible to watch array elements, struct members, and
-bitfields with hardware-assisted watchpoints. Data-read watchpoints
-on x86 targets no longer erroneously trigger when the address is
-written.
-
-* Improvements in the native DJGPP version of GDB
-
-The distribution now includes all the scripts and auxiliary files
-necessary to build the native DJGPP version on MS-DOS/MS-Windows
-machines ``out of the box''.
-
-The DJGPP version can now debug programs that use signals. It is
-possible to catch signals that happened in the debuggee, deliver
-signals to it, interrupt it with Ctrl-C, etc. (Previously, a signal
-would kill the program being debugged.) Programs that hook hardware
-interrupts (keyboard, timer, etc.) can also be debugged.
-
-It is now possible to debug DJGPP programs that redirect their
-standard handles or switch them to raw (as opposed to cooked) mode, or
-even close them. The command ``run < foo > bar'' works as expected,
-and ``info terminal'' reports useful information about the debuggee's
-terminal, including raw/cooked mode, redirection, etc.
-
-The DJGPP version now uses termios functions for console I/O, which
-enables debugging graphics programs. Interrupting GDB with Ctrl-C
-also works.
-
-DOS-style file names with drive letters are now fully supported by
-GDB.
-
-It is now possible to debug DJGPP programs that switch their working
-directory. It is also possible to rerun the debuggee any number of
-times without restarting GDB; thus, you can use the same setup,
-breakpoints, etc. for many debugging sessions.
-
-* New native configurations
-
-ARM GNU/Linux arm*-*-linux*
-PowerPC GNU/Linux powerpc-*-linux*
-
-* New targets
-
-Motorola MCore mcore-*-*
-x86 VxWorks i[3456]86-*-vxworks*
-PowerPC VxWorks powerpc-*-vxworks*
-TI TMS320C80 tic80-*-*
-
-* OBSOLETE configurations
-
-Altos 3068 m68*-altos-*
-Convex c1-*-*, c2-*-*
-Pyramid pyramid-*-*
-ARM RISCix arm-*-* (as host)
-Tahoe tahoe-*-*
-
-Configurations that have been declared obsolete will be commented out,
-but the code will be left in place. If there is no activity to revive
-these configurations before the next release of GDB, the sources will
-be permanently REMOVED.
-
-* Gould support removed
-
-Support for the Gould PowerNode and NP1 has been removed.
-
-* New features for SVR4
-
-On SVR4 native platforms (such as Solaris), if you attach to a process
-without first loading a symbol file, GDB will now attempt to locate and
-load symbols from the running process's executable file.
-
-* Many C++ enhancements
-
-C++ support has been greatly improved. Overload resolution now works properly
-in almost all cases. RTTI support is on the way.
-
-* Remote targets can connect to a sub-program
-
-A popen(3) style serial-device has been added. This device starts a
-sub-process (such as a stand-alone simulator) and then communicates
-with that. The sub-program to run is specified using the syntax
-``|<program> <args>'' vis:
-
- (gdb) set remotedebug 1
- (gdb) target extended-remote |mn10300-elf-sim program-args
-
-* MIPS 64 remote protocol
-
-A long standing bug in the mips64 remote protocol where by GDB
-expected certain 32 bit registers (ex SR) to be transfered as 32
-instead of 64 bits has been fixed.
-
-The command ``set remote-mips64-transfers-32bit-regs on'' has been
-added to provide backward compatibility with older versions of GDB.
-
-* ``set remotebinarydownload'' replaced by ``set remote X-packet''
-
-The command ``set remotebinarydownload'' command has been replaced by
-``set remote X-packet''. Other commands in ``set remote'' family
-include ``set remote P-packet''.
-
-* Breakpoint commands accept ranges.
-
-The breakpoint commands ``enable'', ``disable'', and ``delete'' now
-accept a range of breakpoints, e.g. ``5-7''. The tracepoint command
-``tracepoint passcount'' also accepts a range of tracepoints.
-
-* ``apropos'' command added.
-
-The ``apropos'' command searches through command names and
-documentation strings, printing out matches, making it much easier to
-try to find a command that does what you are looking for.
-
-* New MI interface
-
-A new machine oriented interface (MI) has been added to GDB. This
-interface is designed for debug environments running GDB as a separate
-process. This is part of the long term libGDB project. See the
-"GDB/MI" chapter of the GDB manual for further information. It can be
-enabled by configuring with:
-
- .../configure --enable-gdbmi
-
-*** Changes in GDB-4.18:
-
-* New native configurations
-
-HP-UX 10.20 hppa*-*-hpux10.20
-HP-UX 11.x hppa*-*-hpux11.0*
-M68K GNU/Linux m68*-*-linux*
-
-* New targets
-
-Fujitsu FR30 fr30-*-elf*
-Intel StrongARM strongarm-*-*
-Mitsubishi D30V d30v-*-*
-
-* OBSOLETE configurations
-
-Gould PowerNode, NP1 np1-*-*, pn-*-*
-
-Configurations that have been declared obsolete will be commented out,
-but the code will be left in place. If there is no activity to revive
-these configurations before the next release of GDB, the sources will
-be permanently REMOVED.
-
-* ANSI/ISO C
-
-As a compatibility experiment, GDB's source files buildsym.h and
-buildsym.c have been converted to pure standard C, no longer
-containing any K&R compatibility code. We believe that all systems in
-use today either come with a standard C compiler, or have a GCC port
-available. If this is not true, please report the affected
-configuration to bug-gdb@gnu.org immediately. See the README file for
-information about getting a standard C compiler if you don't have one
-already.
-
-* Readline 2.2
-
-GDB now uses readline 2.2.
-
-* set extension-language
-
-You can now control the mapping between filename extensions and source
-languages by using the `set extension-language' command. For instance,
-you can ask GDB to treat .c files as C++ by saying
- set extension-language .c c++
-The command `info extensions' lists all of the recognized extensions
-and their associated languages.
-
-* Setting processor type for PowerPC and RS/6000
-
-When GDB is configured for a powerpc*-*-* or an rs6000*-*-* target,
-you can use the `set processor' command to specify what variant of the
-PowerPC family you are debugging. The command
-
- set processor NAME
-
-sets the PowerPC/RS6000 variant to NAME. GDB knows about the
-following PowerPC and RS6000 variants:
-
- ppc-uisa PowerPC UISA - a PPC processor as viewed by user-level code
- rs6000 IBM RS6000 ("POWER") architecture, user-level view
- 403 IBM PowerPC 403
- 403GC IBM PowerPC 403GC
- 505 Motorola PowerPC 505
- 860 Motorola PowerPC 860 or 850
- 601 Motorola PowerPC 601
- 602 Motorola PowerPC 602
- 603 Motorola/IBM PowerPC 603 or 603e
- 604 Motorola PowerPC 604 or 604e
- 750 Motorola/IBM PowerPC 750 or 750
-
-At the moment, this command just tells GDB what to name the
-special-purpose processor registers. Since almost all the affected
-registers are inaccessible to user-level programs, this command is
-only useful for remote debugging in its present form.
-
-* HP-UX support
-
-Thanks to a major code donation from Hewlett-Packard, GDB now has much
-more extensive support for HP-UX. Added features include shared
-library support, kernel threads and hardware watchpoints for 11.00,
-support for HP's ANSI C and C++ compilers, and a compatibility mode
-for xdb and dbx commands.
-
-* Catchpoints
-
-HP's donation includes the new concept of catchpoints, which is a
-generalization of the old catch command. On HP-UX, it is now possible
-to catch exec, fork, and vfork, as well as library loading.
-
-This means that the existing catch command has changed; its first
-argument now specifies the type of catch to be set up. See the
-output of "help catch" for a list of catchpoint types.
-
-* Debugging across forks
-
-On HP-UX, you can choose which process to debug when a fork() happens
-in the inferior.
-
-* TUI
-
-HP has donated a curses-based terminal user interface (TUI). To get
-it, build with --enable-tui. Although this can be enabled for any
-configuration, at present it only works for native HP debugging.
-
-* GDB remote protocol additions
-
-A new protocol packet 'X' that writes binary data is now available.
-Default behavior is to try 'X', then drop back to 'M' if the stub
-fails to respond. The settable variable `remotebinarydownload'
-allows explicit control over the use of 'X'.
-
-For 64-bit targets, the memory packets ('M' and 'm') can now contain a
-full 64-bit address. The command
-
- set remoteaddresssize 32
-
-can be used to revert to the old behaviour. For existing remote stubs
-the change should not be noticed, as the additional address information
-will be discarded.
-
-In order to assist in debugging stubs, you may use the maintenance
-command `packet' to send any text string to the stub. For instance,
-
- maint packet heythere
-
-sends the packet "$heythere#<checksum>". Note that it is very easy to
-disrupt a debugging session by sending the wrong packet at the wrong
-time.
-
-The compare-sections command allows you to compare section data on the
-target to what is in the executable file without uploading or
-downloading, by comparing CRC checksums.
-
-* Tracing can collect general expressions
-
-You may now collect general expressions at tracepoints. This requires
-further additions to the target-side stub; see tracepoint.c and
-doc/agentexpr.texi for further details.
-
-* mask-address variable for Mips
-
-For Mips targets, you may control the zeroing of the upper 32 bits of
-a 64-bit address by entering `set mask-address on'. This is mainly
-of interest to users of embedded R4xxx and R5xxx processors.
-
-* Higher serial baud rates
-
-GDB's serial code now allows you to specify baud rates 57600, 115200,
-230400, and 460800 baud. (Note that your host system may not be able
-to achieve all of these rates.)
-
-* i960 simulator
-
-The i960 configuration now includes an initial implementation of a
-builtin simulator, contributed by Jim Wilson.
-
-
-*** Changes in GDB-4.17:
-
-* New native configurations
-
-Alpha GNU/Linux alpha*-*-linux*
-Unixware 2.x i[3456]86-unixware2*
-Irix 6.x mips*-sgi-irix6*
-PowerPC GNU/Linux powerpc-*-linux*
-PowerPC Solaris powerpcle-*-solaris*
-Sparc GNU/Linux sparc-*-linux*
-Motorola sysV68 R3V7.1 m68k-motorola-sysv
-
-* New targets
-
-Argonaut Risc Chip (ARC) arc-*-*
-Hitachi H8/300S h8300*-*-*
-Matsushita MN10200 w/simulator mn10200-*-*
-Matsushita MN10300 w/simulator mn10300-*-*
-MIPS NEC VR4100 mips64*vr4100*{,el}-*-elf*
-MIPS NEC VR5000 mips64*vr5000*{,el}-*-elf*
-MIPS Toshiba TX39 mips64*tx39*{,el}-*-elf*
-Mitsubishi D10V w/simulator d10v-*-*
-Mitsubishi M32R/D w/simulator m32r-*-elf*
-Tsqware Sparclet sparclet-*-*
-NEC V850 w/simulator v850-*-*
-
-* New debugging protocols
-
-ARM with RDI protocol arm*-*-*
-M68K with dBUG monitor m68*-*-{aout,coff,elf}
-DDB and LSI variants of PMON protocol mips*-*-*
-PowerPC with DINK32 monitor powerpc{,le}-*-eabi
-PowerPC with SDS protocol powerpc{,le}-*-eabi
-Macraigor OCD (Wiggler) devices powerpc{,le}-*-eabi
-
-* DWARF 2
-
-All configurations can now understand and use the DWARF 2 debugging
-format. The choice is automatic, if the symbol file contains DWARF 2
-information.
-
-* Java frontend
-
-GDB now includes basic Java language support. This support is
-only useful with Java compilers that produce native machine code.
-
-* solib-absolute-prefix and solib-search-path
-
-For SunOS and SVR4 shared libraries, you may now set the prefix for
-loading absolute shared library symbol files, and the search path for
-locating non-absolute shared library symbol files.
-
-* Live range splitting
-
-GDB can now effectively debug code for which GCC has performed live
-range splitting as part of its optimization. See gdb/doc/LRS for
-more details on the expected format of the stabs information.
-
-* Hurd support
-
-GDB's support for the GNU Hurd, including thread debugging, has been
-updated to work with current versions of the Hurd.
-
-* ARM Thumb support
-
-GDB's ARM target configuration now handles the ARM7T (Thumb) 16-bit
-instruction set. ARM GDB automatically detects when Thumb
-instructions are in use, and adjusts disassembly and backtracing
-accordingly.
-
-* MIPS16 support
-
-GDB's MIPS target configurations now handle the MIP16 16-bit
-instruction set.
-
-* Overlay support
-
-GDB now includes support for overlays; if an executable has been
-linked such that multiple sections are based at the same address, GDB
-will decide which section to use for symbolic info. You can choose to
-control the decision manually, using overlay commands, or implement
-additional target-side support and use "overlay load-target" to bring
-in the overlay mapping. Do "help overlay" for more detail.
-
-* info symbol
-
-The command "info symbol <address>" displays information about
-the symbol at the specified address.
-
-* Trace support
-
-The standard remote protocol now includes an extension that allows
-asynchronous collection and display of trace data. This requires
-extensive support in the target-side debugging stub. Tracing mode
-includes a new interaction mode in GDB and new commands: see the
-file tracepoint.c for more details.
-
-* MIPS simulator
-
-Configurations for embedded MIPS now include a simulator contributed
-by Cygnus Solutions. The simulator supports the instruction sets
-of most MIPS variants.
-
-* Sparc simulator
-
-Sparc configurations may now include the ERC32 simulator contributed
-by the European Space Agency. The simulator is not built into
-Sparc targets by default; configure with --enable-sim to include it.
-
-* set architecture
-
-For target configurations that may include multiple variants of a
-basic architecture (such as MIPS and SH), you may now set the
-architecture explicitly. "set arch" sets, "info arch" lists
-the possible architectures.
-
-*** Changes in GDB-4.16:
-
-* New native configurations
-
-Windows 95, x86 Windows NT i[345]86-*-cygwin32
-M68K NetBSD m68k-*-netbsd*
-PowerPC AIX 4.x powerpc-*-aix*
-PowerPC MacOS powerpc-*-macos*
-PowerPC Windows NT powerpcle-*-cygwin32
-RS/6000 AIX 4.x rs6000-*-aix4*
-
-* New targets
-
-ARM with RDP protocol arm-*-*
-I960 with MON960 i960-*-coff
-MIPS VxWorks mips*-*-vxworks*
-MIPS VR4300 with PMON mips64*vr4300{,el}-*-elf*
-PowerPC with PPCBUG monitor powerpc{,le}-*-eabi*
-Hitachi SH3 sh-*-*
-Matra Sparclet sparclet-*-*
-
-* PowerPC simulator
-
-The powerpc-eabi configuration now includes the PSIM simulator,
-contributed by Andrew Cagney, with assistance from Mike Meissner.
-PSIM is a very elaborate model of the PowerPC, including not only
-basic instruction set execution, but also details of execution unit
-performance and I/O hardware. See sim/ppc/README for more details.
-
-* Solaris 2.5
-
-GDB now works with Solaris 2.5.
-
-* Windows 95/NT native
-
-GDB will now work as a native debugger on Windows 95 and Windows NT.
-To build it from source, you must use the "gnu-win32" environment,
-which uses a DLL to emulate enough of Unix to run the GNU tools.
-Further information, binaries, and sources are available at
-ftp.cygnus.com, under pub/gnu-win32.
-
-* dont-repeat command
-
-If a user-defined command includes the command `dont-repeat', then the
-command will not be repeated if the user just types return. This is
-useful if the command is time-consuming to run, so that accidental
-extra keystrokes don't run the same command many times.
-
-* Send break instead of ^C
-
-The standard remote protocol now includes an option to send a break
-rather than a ^C to the target in order to interrupt it. By default,
-GDB will send ^C; to send a break, set the variable `remotebreak' to 1.
-
-* Remote protocol timeout
-
-The standard remote protocol includes a new variable `remotetimeout'
-that allows you to set the number of seconds before GDB gives up trying
-to read from the target. The default value is 2.
-
-* Automatic tracking of dynamic object loading (HPUX and Solaris only)
-
-By default GDB will automatically keep track of objects as they are
-loaded and unloaded by the dynamic linker. By using the command `set
-stop-on-solib-events 1' you can arrange for GDB to stop the inferior
-when shared library events occur, thus allowing you to set breakpoints
-in shared libraries which are explicitly loaded by the inferior.
-
-Note this feature does not work on hpux8. On hpux9 you must link
-/usr/lib/end.o into your program. This feature should work
-automatically on hpux10.
-
-* Irix 5.x hardware watchpoint support
-
-Irix 5 configurations now support the use of hardware watchpoints.
-
-* Mips protocol "SYN garbage limit"
-
-When debugging a Mips target using the `target mips' protocol, you
-may set the number of characters that GDB will ignore by setting
-the `syn-garbage-limit'. A value of -1 means that GDB will ignore
-every character. The default value is 1050.
-
-* Recording and replaying remote debug sessions
-
-If you set `remotelogfile' to the name of a file, gdb will write to it
-a recording of a remote debug session. This recording may then be
-replayed back to gdb using "gdbreplay". See gdbserver/README for
-details. This is useful when you have a problem with GDB while doing
-remote debugging; you can make a recording of the session and send it
-to someone else, who can then recreate the problem.
-
-* Speedups for remote debugging
-
-GDB includes speedups for downloading and stepping MIPS systems using
-the IDT monitor, fast downloads to the Hitachi SH E7000 emulator,
-and more efficient S-record downloading.
-
-* Memory use reductions and statistics collection
-
-GDB now uses less memory and reports statistics about memory usage.
-Try the `maint print statistics' command, for example.
-
-*** Changes in GDB-4.15:
-
-* Psymtabs for XCOFF
-
-The symbol reader for AIX GDB now uses partial symbol tables. This
-can greatly improve startup time, especially for large executables.
-
-* Remote targets use caching
-
-Remote targets now use a data cache to speed up communication with the
-remote side. The data cache could lead to incorrect results because
-it doesn't know about volatile variables, thus making it impossible to
-debug targets which use memory mapped I/O devices. `set remotecache
-off' turns the the data cache off.
-
-* Remote targets may have threads
-
-The standard remote protocol now includes support for multiple threads
-in the target system, using new protocol commands 'H' and 'T'. See
-gdb/remote.c for details.
-
-* NetROM support
-
-If GDB is configured with `--enable-netrom', then it will include
-support for the NetROM ROM emulator from XLNT Designs. The NetROM
-acts as though it is a bank of ROM on the target board, but you can
-write into it over the network. GDB's support consists only of
-support for fast loading into the emulated ROM; to debug, you must use
-another protocol, such as standard remote protocol. The usual
-sequence is something like
-
- target nrom <netrom-hostname>
- load <prog>
- target remote <netrom-hostname>:1235
-
-* Macintosh host
-
-GDB now includes support for the Apple Macintosh, as a host only. It
-may be run as either an MPW tool or as a standalone application, and
-it can debug through the serial port. All the usual GDB commands are
-available, but to the target command, you must supply "serial" as the
-device type instead of "/dev/ttyXX". See mpw-README in the main
-directory for more information on how to build. The MPW configuration
-scripts */mpw-config.in support only a few targets, and only the
-mips-idt-ecoff target has been tested.
-
-* Autoconf
-
-GDB configuration now uses autoconf. This is not user-visible,
-but does simplify configuration and building.
-
-* hpux10
-
-GDB now supports hpux10.
-
-*** Changes in GDB-4.14:
-
-* New native configurations
-
-x86 FreeBSD i[345]86-*-freebsd
-x86 NetBSD i[345]86-*-netbsd
-NS32k NetBSD ns32k-*-netbsd
-Sparc NetBSD sparc-*-netbsd
-
-* New targets
-
-A29K VxWorks a29k-*-vxworks
-HP PA PRO embedded (WinBond W89K & Oki OP50N) hppa*-*-pro*
-CPU32 EST-300 emulator m68*-*-est*
-PowerPC ELF powerpc-*-elf
-WDC 65816 w65-*-*
-
-* Alpha OSF/1 support for procfs
-
-GDB now supports procfs under OSF/1-2.x and higher, which makes it
-possible to attach to running processes. As the mounting of the /proc
-filesystem is optional on the Alpha, GDB automatically determines
-the availability of /proc during startup. This can lead to problems
-if /proc is unmounted after GDB has been started.
-
-* Arguments to user-defined commands
-
-User commands may accept up to 10 arguments separated by whitespace.
-Arguments are accessed within the user command via $arg0..$arg9. A
-trivial example:
-define adder
- print $arg0 + $arg1 + $arg2
-
-To execute the command use:
-adder 1 2 3
-
-Defines the command "adder" which prints the sum of its three arguments.
-Note the arguments are text substitutions, so they may reference variables,
-use complex expressions, or even perform inferior function calls.
-
-* New `if' and `while' commands
-
-This makes it possible to write more sophisticated user-defined
-commands. Both commands take a single argument, which is the
-expression to evaluate, and must be followed by the commands to
-execute, one per line, if the expression is nonzero, the list being
-terminated by the word `end'. The `if' command list may include an
-`else' word, which causes the following commands to be executed only
-if the expression is zero.
-
-* Fortran source language mode
-
-GDB now includes partial support for Fortran 77. It will recognize
-Fortran programs and can evaluate a subset of Fortran expressions, but
-variables and functions may not be handled correctly. GDB will work
-with G77, but does not yet know much about symbols emitted by other
-Fortran compilers.
-
-* Better HPUX support
-
-Most debugging facilities now work on dynamic executables for HPPAs
-running hpux9 or later. You can attach to running dynamically linked
-processes, but by default the dynamic libraries will be read-only, so
-for instance you won't be able to put breakpoints in them. To change
-that behavior do the following before running the program:
-
- adb -w a.out
- __dld_flags?W 0x5
- control-d
-
-This will cause the libraries to be mapped private and read-write.
-To revert to the normal behavior, do this:
-
- adb -w a.out
- __dld_flags?W 0x4
- control-d
-
-You cannot set breakpoints or examine data in the library until after
-the library is loaded if the function/data symbols do not have
-external linkage.
-
-GDB can now also read debug symbols produced by the HP C compiler on
-HPPAs (sorry, no C++, Fortran or 68k support).
-
-* Target byte order now dynamically selectable
-
-You can choose which byte order to use with a target system, via the
-commands "set endian big" and "set endian little", and you can see the
-current setting by using "show endian". You can also give the command
-"set endian auto", in which case GDB will use the byte order
-associated with the executable. Currently, only embedded MIPS
-configurations support dynamic selection of target byte order.
-
-* New DOS host serial code
-
-This version uses DPMI interrupts to handle buffered I/O, so you
-no longer need to run asynctsr when debugging boards connected to
-a PC's serial port.
-
-*** Changes in GDB-4.13:
-
-* New "complete" command
-
-This lists all the possible completions for the rest of the line, if it
-were to be given as a command itself. This is intended for use by emacs.
-
-* Trailing space optional in prompt
-
-"set prompt" no longer adds a space for you after the prompt you set. This
-allows you to set a prompt which ends in a space or one that does not.
-
-* Breakpoint hit counts
-
-"info break" now displays a count of the number of times the breakpoint
-has been hit. This is especially useful in conjunction with "ignore"; you
-can ignore a large number of breakpoint hits, look at the breakpoint info
-to see how many times the breakpoint was hit, then run again, ignoring one
-less than that number, and this will get you quickly to the last hit of
-that breakpoint.
-
-* Ability to stop printing at NULL character
-
-"set print null-stop" will cause GDB to stop printing the characters of
-an array when the first NULL is encountered. This is useful when large
-arrays actually contain only short strings.
-
-* Shared library breakpoints
-
-In SunOS 4.x, SVR4, and Alpha OSF/1 configurations, you can now set
-breakpoints in shared libraries before the executable is run.
-
-* Hardware watchpoints
-
-There is a new hardware breakpoint for the watch command for sparclite
-targets. See gdb/sparclite/hw_breakpoint.note.
-
-Hardware watchpoints are also now supported under GNU/Linux.
-
-* Annotations
-
-Annotations have been added. These are for use with graphical interfaces,
-and are still experimental. Currently only gdba.el uses these.
-
-* Improved Irix 5 support
-
-GDB now works properly with Irix 5.2.
-
-* Improved HPPA support
-
-GDB now works properly with the latest GCC and GAS.
-
-* New native configurations
-
-Sequent PTX4 i[34]86-sequent-ptx4
-HPPA running OSF/1 hppa*-*-osf*
-Atari TT running SVR4 m68*-*-sysv4*
-RS/6000 LynxOS rs6000-*-lynxos*
-
-* New targets
-
-OS/9000 i[34]86-*-os9k
-MIPS R4000 mips64*{,el}-*-{ecoff,elf}
-Sparc64 sparc64-*-*
-
-* Hitachi SH7000 and E7000-PC ICE support
-
-There is now support for communicating with the Hitachi E7000-PC ICE.
-This is available automatically when GDB is configured for the SH.
-
-* Fixes
-
-As usual, a variety of small fixes and improvements, both generic
-and configuration-specific. See the ChangeLog for more detail.
-
-*** Changes in GDB-4.12:
-
-* Irix 5 is now supported
-
-* HPPA support
-
-GDB-4.12 on the HPPA has a number of changes which make it unable
-to debug the output from the currently released versions of GCC and
-GAS (GCC 2.5.8 and GAS-2.2 or PAGAS-1.36). Until the next major release
-of GCC and GAS, versions of these tools designed to work with GDB-4.12
-can be retrieved via anonymous ftp from jaguar.cs.utah.edu:/dist.
-
-
-*** Changes in GDB-4.11:
-
-* User visible changes:
-
-* Remote Debugging
-
-The "set remotedebug" option is now consistent between the mips remote
-target, remote targets using the gdb-specific protocol, UDI (AMD's
-debug protocol for the 29k) and the 88k bug monitor. It is now an
-integer specifying a debug level (normally 0 or 1, but 2 means more
-debugging info for the mips target).
-
-* DEC Alpha native support
-
-GDB now works on the DEC Alpha. GCC 2.4.5 does not produce usable
-debug info, but GDB works fairly well with the DEC compiler and should
-work with a future GCC release. See the README file for a few
-Alpha-specific notes.
-
-* Preliminary thread implementation
-
-GDB now has preliminary thread support for both SGI/Irix and LynxOS.
-
-* LynxOS native and target support for 386
-
-This release has been hosted on LynxOS 2.2, and also can be configured
-to remotely debug programs running under LynxOS (see gdb/gdbserver/README
-for details).
-
-* Improvements in C++ mangling/demangling.
-
-This release has much better g++ debugging, specifically in name
-mangling/demangling, virtual function calls, print virtual table,
-call methods, ...etc.
-
-*** Changes in GDB-4.10:
-
- * User visible changes:
-
-Remote debugging using the GDB-specific (`target remote') protocol now
-supports the `load' command. This is only useful if you have some
-other way of getting the stub to the target system, and you can put it
-somewhere in memory where it won't get clobbered by the download.
-
-Filename completion now works.
-
-When run under emacs mode, the "info line" command now causes the
-arrow to point to the line specified. Also, "info line" prints
-addresses in symbolic form (as well as hex).
-
-All vxworks based targets now support a user settable option, called
-vxworks-timeout. This option represents the number of seconds gdb
-should wait for responses to rpc's. You might want to use this if
-your vxworks target is, perhaps, a slow software simulator or happens
-to be on the far side of a thin network line.
-
- * DEC alpha support
-
-This release contains support for using a DEC alpha as a GDB host for
-cross debugging. Native alpha debugging is not supported yet.
-
-
-*** Changes in GDB-4.9:
-
- * Testsuite
-
-This is the first GDB release which is accompanied by a matching testsuite.
-The testsuite requires installation of dejagnu, which should be available
-via ftp from most sites that carry GNU software.
-
- * C++ demangling
-
-'Cfront' style demangling has had its name changed to 'ARM' style, to
-emphasize that it was written from the specifications in the C++ Annotated
-Reference Manual, not necessarily to be compatible with AT&T cfront. Despite
-disclaimers, it still generated too much confusion with users attempting to
-use gdb with AT&T cfront.
-
- * Simulators
-
-GDB now uses a standard remote interface to a simulator library.
-So far, the library contains simulators for the Zilog Z8001/2, the
-Hitachi H8/300, H8/500 and Super-H.
-
- * New targets supported
-
-H8/300 simulator h8300-hitachi-hms or h8300hms
-H8/500 simulator h8500-hitachi-hms or h8500hms
-SH simulator sh-hitachi-hms or sh
-Z8000 simulator z8k-zilog-none or z8ksim
-IDT MIPS board over serial line mips-idt-ecoff
-
-Cross-debugging to GO32 targets is supported. It requires a custom
-version of the i386-stub.c module which is integrated with the
-GO32 memory extender.
-
- * New remote protocols
-
-MIPS remote debugging protocol.
-
- * New source languages supported
-
-This version includes preliminary support for Chill, a Pascal like language
-used by telecommunications companies. Chill support is also being integrated
-into the GNU compiler, but we don't know when it will be publically available.
-
-
-*** Changes in GDB-4.8:
-
- * HP Precision Architecture supported
-
-GDB now supports HP PA-RISC machines running HPUX. A preliminary
-version of this support was available as a set of patches from the
-University of Utah. GDB does not support debugging of programs
-compiled with the HP compiler, because HP will not document their file
-format. Instead, you must use GCC (version 2.3.2 or later) and PA-GAS
-(as available from jaguar.cs.utah.edu:/dist/pa-gas.u4.tar.Z).
-
-Many problems in the preliminary version have been fixed.
-
- * Faster and better demangling
-
-We have improved template demangling and fixed numerous bugs in the GNU style
-demangler. It can now handle type modifiers such as `static' or `const'. Wide
-character types (wchar_t) are now supported. Demangling of each symbol is now
-only done once, and is cached when the symbol table for a file is read in.
-This results in a small increase in memory usage for C programs, a moderate
-increase in memory usage for C++ programs, and a fantastic speedup in
-symbol lookups.
-
-`Cfront' style demangling still doesn't work with AT&T cfront. It was written
-from the specifications in the Annotated Reference Manual, which AT&T's
-compiler does not actually implement.
-
- * G++ multiple inheritance compiler problem
-
-In the 2.3.2 release of gcc/g++, how the compiler resolves multiple
-inheritance lattices was reworked to properly discover ambiguities. We
-recently found an example which causes this new algorithm to fail in a
-very subtle way, producing bad debug information for those classes.
-The file 'gcc.patch' (in this directory) can be applied to gcc to
-circumvent the problem. A future GCC release will contain a complete
-fix.
-
-The previous G++ debug info problem (mentioned below for the gdb-4.7
-release) is fixed in gcc version 2.3.2.
-
- * Improved configure script
-
-The `configure' script will now attempt to guess your system type if
-you don't supply a host system type. The old scheme of supplying a
-host system triplet is preferable over using this. All the magic is
-done in the new `config.guess' script. Examine it for details.
-
-We have also brought our configure script much more in line with the FSF's
-version. It now supports the --with-xxx options. In particular,
-`--with-minimal-bfd' can be used to make the GDB binary image smaller.
-The resulting GDB will not be able to read arbitrary object file formats --
-only the format ``expected'' to be used on the configured target system.
-We hope to make this the default in a future release.
-
- * Documentation improvements
-
-There's new internal documentation on how to modify GDB, and how to
-produce clean changes to the code. We implore people to read it
-before submitting changes.
-
-The GDB manual uses new, sexy Texinfo conditionals, rather than arcane
-M4 macros. The new texinfo.tex is provided in this release. Pre-built
-`info' files are also provided. To build `info' files from scratch,
-you will need the latest `makeinfo' release, which will be available in
-a future texinfo-X.Y release.
-
-*NOTE* The new texinfo.tex can cause old versions of TeX to hang.
-We're not sure exactly which versions have this problem, but it has
-been seen in 3.0. We highly recommend upgrading to TeX version 3.141
-or better. If that isn't possible, there is a patch in
-`texinfo/tex3patch' that will modify `texinfo/texinfo.tex' to work
-around this problem.
-
- * New features
-
-GDB now supports array constants that can be used in expressions typed in by
-the user. The syntax is `{element, element, ...}'. Ie: you can now type
-`print {1, 2, 3}', and it will build up an array in memory malloc'd in
-the target program.
-
-The new directory `gdb/sparclite' contains a program that demonstrates
-how the sparc-stub.c remote stub runs on a Fujitsu SPARClite processor.
-
- * New native hosts supported
-
-HP/PA-RISC under HPUX using GNU tools hppa1.1-hp-hpux
-386 CPUs running SCO Unix 3.2v4 i386-unknown-sco3.2v4
-
- * New targets supported
-
-AMD 29k family via UDI a29k-amd-udi or udi29k
-
- * New file formats supported
-
-BFD now supports reading HP/PA-RISC executables (SOM file format?),
-HPUX core files, and SCO 3.2v2 core files.
-
- * Major bug fixes
-
-Attaching to processes now works again; thanks for the many bug reports.
-
-We have also stomped on a bunch of core dumps caused by
-printf_filtered("%s") problems.
-
-We eliminated a copyright problem on the rpc and ptrace header files
-for VxWorks, which was discovered at the last minute during the 4.7
-release. You should now be able to build a VxWorks GDB.
-
-You can now interrupt gdb while an attached process is running. This
-will cause the attached process to stop, and give control back to GDB.
-
-We fixed problems caused by using too many file descriptors
-for reading symbols from object files and libraries. This was
-especially a problem for programs that used many (~100) shared
-libraries.
-
-The `step' command now only enters a subroutine if there is line number
-information for the subroutine. Otherwise it acts like the `next'
-command. Previously, `step' would enter subroutines if there was
-any debugging information about the routine. This avoids problems
-when using `cc -g1' on MIPS machines.
-
- * Internal improvements
-
-GDB's internal interfaces have been improved to make it easier to support
-debugging of multiple languages in the future.
-
-GDB now uses a common structure for symbol information internally.
-Minimal symbols (derived from linkage symbols in object files), partial
-symbols (from a quick scan of debug information), and full symbols
-contain a common subset of information, making it easier to write
-shared code that handles any of them.
-
- * New command line options
-
-We now accept --silent as an alias for --quiet.
-
- * Mmalloc licensing
-
-The memory-mapped-malloc library is now licensed under the GNU Library
-General Public License.
-
-*** Changes in GDB-4.7:
-
- * Host/native/target split
-
-GDB has had some major internal surgery to untangle the support for
-hosts and remote targets. Now, when you configure GDB for a remote
-target, it will no longer load in all of the support for debugging
-local programs on the host. When fully completed and tested, this will
-ensure that arbitrary host/target combinations are possible.
-
-The primary conceptual shift is to separate the non-portable code in
-GDB into three categories. Host specific code is required any time GDB
-is compiled on that host, regardless of the target. Target specific
-code relates to the peculiarities of the target, but can be compiled on
-any host. Native specific code is everything else: it can only be
-built when the host and target are the same system. Child process
-handling and core file support are two common `native' examples.
-
-GDB's use of /proc for controlling Unix child processes is now cleaner.
-It has been split out into a single module under the `target_ops' vector,
-plus two native-dependent functions for each system that uses /proc.
-
- * New hosts supported
-
-HP/Apollo 68k (under the BSD domain) m68k-apollo-bsd or apollo68bsd
-386 CPUs running various BSD ports i386-unknown-bsd or 386bsd
-386 CPUs running SCO Unix i386-unknown-scosysv322 or i386sco
-
- * New targets supported
-
-Fujitsu SPARClite sparclite-fujitsu-none or sparclite
-68030 and CPU32 m68030-*-*, m68332-*-*
-
- * New native hosts supported
-
-386 CPUs running various BSD ports i386-unknown-bsd or 386bsd
- (386bsd is not well tested yet)
-386 CPUs running SCO Unix i386-unknown-scosysv322 or sco
-
- * New file formats supported
-
-BFD now supports COFF files for the Zilog Z8000 microprocessor. It
-supports reading of `a.out.adobe' object files, which are an a.out
-format extended with minimal information about multiple sections.
-
- * New commands
-
-`show copying' is the same as the old `info copying'.
-`show warranty' is the same as `info warrantee'.
-These were renamed for consistency. The old commands continue to work.
-
-`info handle' is a new alias for `info signals'.
-
-You can now define pre-command hooks, which attach arbitrary command
-scripts to any command. The commands in the hook will be executed
-prior to the user's command. You can also create a hook which will be
-executed whenever the program stops. See gdb.texinfo.
-
- * C++ improvements
-
-We now deal with Cfront style name mangling, and can even extract type
-info from mangled symbols. GDB can automatically figure out which
-symbol mangling style your C++ compiler uses.
-
-Calling of methods and virtual functions has been improved as well.
-
- * Major bug fixes
-
-The crash that occured when debugging Sun Ansi-C compiled binaries is
-fixed. This was due to mishandling of the extra N_SO stabs output
-by the compiler.
-
-We also finally got Ultrix 4.2 running in house, and fixed core file
-support, with help from a dozen people on the net.
-
-John M. Farrell discovered that the reason that single-stepping was so
-slow on all of the Mips based platforms (primarily SGI and DEC) was
-that we were trying to demangle and lookup a symbol used for internal
-purposes on every instruction that was being stepped through. Changing
-the name of that symbol so that it couldn't be mistaken for a C++
-mangled symbol sped things up a great deal.
-
-Rich Pixley sped up symbol lookups in general by getting much smarter
-about when C++ symbol mangling is necessary. This should make symbol
-completion (TAB on the command line) much faster. It's not as fast as
-we'd like, but it's significantly faster than gdb-4.6.
-
- * AMD 29k support
-
-A new user controllable variable 'call_scratch_address' can
-specify the location of a scratch area to be used when GDB
-calls a function in the target. This is necessary because the
-usual method of putting the scratch area on the stack does not work
-in systems that have separate instruction and data spaces.
-
-We integrated changes to support the 29k UDI (Universal Debugger
-Interface), but discovered at the last minute that we didn't have all
-of the appropriate copyright paperwork. We are working with AMD to
-resolve this, and hope to have it available soon.
-
- * Remote interfaces
-
-We have sped up the remote serial line protocol, especially for targets
-with lots of registers. It now supports a new `expedited status' ('T')
-message which can be used in place of the existing 'S' status message.
-This allows the remote stub to send only the registers that GDB
-needs to make a quick decision about single-stepping or conditional
-breakpoints, eliminating the need to fetch the entire register set for
-each instruction being stepped through.
-
-The GDB remote serial protocol now implements a write-through cache for
-registers, only re-reading the registers if the target has run.
-
-There is also a new remote serial stub for SPARC processors. You can
-find it in gdb-4.7/gdb/sparc-stub.c. This was written to support the
-Fujitsu SPARClite processor, but will run on any stand-alone SPARC
-processor with a serial port.
-
- * Configuration
-
-Configure.in files have become much easier to read and modify. A new
-`table driven' format makes it more obvious what configurations are
-supported, and what files each one uses.
-
- * Library changes
-
-There is a new opcodes library which will eventually contain all of the
-disassembly routines and opcode tables. At present, it only contains
-Sparc and Z8000 routines. This will allow the assembler, debugger, and
-disassembler (binutils/objdump) to share these routines.
-
-The libiberty library is now copylefted under the GNU Library General
-Public License. This allows more liberal use, and was done so libg++
-can use it. This makes no difference to GDB, since the Library License
-grants all the rights from the General Public License.
-
- * Documentation
-
-The file gdb-4.7/gdb/doc/stabs.texinfo is a (relatively) complete
-reference to the stabs symbol info used by the debugger. It is (as far
-as we know) the only published document on this fascinating topic. We
-encourage you to read it, compare it to the stabs information on your
-system, and send improvements on the document in general (to
-bug-gdb@prep.ai.mit.edu).
-
-And, of course, many bugs have been fixed.
-
-
-*** Changes in GDB-4.6:
-
- * Better support for C++ function names
-
-GDB now accepts as input the "demangled form" of C++ overloaded function
-names and member function names, and can do command completion on such names
-(using TAB, TAB-TAB, and ESC-?). The names have to be quoted with a pair of
-single quotes. Examples are 'func (int, long)' and 'obj::operator==(obj&)'.
-Make use of command completion, it is your friend.
-
-GDB also now accepts a variety of C++ mangled symbol formats. They are
-the GNU g++ style, the Cfront (ARM) style, and the Lucid (lcc) style.
-You can tell GDB which format to use by doing a 'set demangle-style {gnu,
-lucid, cfront, auto}'. 'gnu' is the default. Do a 'set demangle-style foo'
-for the list of formats.
-
- * G++ symbol mangling problem
-
-Recent versions of gcc have a bug in how they emit debugging information for
-C++ methods (when using dbx-style stabs). The file 'gcc.patch' (in this
-directory) can be applied to gcc to fix the problem. Alternatively, if you
-can't fix gcc, you can #define GCC_MANGLE_BUG when compling gdb/symtab.c. The
-usual symptom is difficulty with setting breakpoints on methods. GDB complains
-about the method being non-existent. (We believe that version 2.2.2 of GCC has
-this problem.)
-
- * New 'maintenance' command
-
-All of the commands related to hacking GDB internals have been moved out of
-the main command set, and now live behind the 'maintenance' command. This
-can also be abbreviated as 'mt'. The following changes were made:
-
- dump-me -> maintenance dump-me
- info all-breakpoints -> maintenance info breakpoints
- printmsyms -> maintenance print msyms
- printobjfiles -> maintenance print objfiles
- printpsyms -> maintenance print psymbols
- printsyms -> maintenance print symbols
-
-The following commands are new:
-
- maintenance demangle Call internal GDB demangler routine to
- demangle a C++ link name and prints the result.
- maintenance print type Print a type chain for a given symbol
-
- * Change to .gdbinit file processing
-
-We now read the $HOME/.gdbinit file before processing the argv arguments
-(e.g. reading symbol files or core files). This allows global parameters to
-be set, which will apply during the symbol reading. The ./.gdbinit is still
-read after argv processing.
-
- * New hosts supported
-
-Solaris-2.0 !!! sparc-sun-solaris2 or sun4sol2
-
-GNU/Linux support i386-unknown-linux or linux
-
-We are also including code to support the HP/PA running BSD and HPUX. This
-is almost guaranteed not to work, as we didn't have time to test or build it
-for this release. We are including it so that the more adventurous (or
-masochistic) of you can play with it. We also had major problems with the
-fact that the compiler that we got from HP doesn't support the -g option.
-It costs extra.
-
- * New targets supported
-
-Hitachi H8/300 h8300-hitachi-hms or h8300hms
-
- * More smarts about finding #include files
-
-GDB now remembers the compilation directory for all include files, and for
-all files from which C is generated (like yacc and lex sources). This
-greatly improves GDB's ability to find yacc/lex sources, and include files,
-especially if you are debugging your program from a directory different from
-the one that contains your sources.
-
-We also fixed a bug which caused difficulty with listing and setting
-breakpoints in include files which contain C code. (In the past, you had to
-try twice in order to list an include file that you hadn't looked at before.)
-
- * Interesting infernals change
-
-GDB now deals with arbitrary numbers of sections, where the symbols for each
-section must be relocated relative to that section's landing place in the
-target's address space. This work was needed to support ELF with embedded
-stabs used by Solaris-2.0.
-
- * Bug fixes (of course!)
-
-There have been loads of fixes for the following things:
- mips, rs6000, 29k/udi, m68k, g++, type handling, elf/dwarf, m88k,
- i960, stabs, DOS(GO32), procfs, etc...
-
-See the ChangeLog for details.
-
-*** Changes in GDB-4.5:
-
- * New machines supported (host and target)
-
-IBM RS6000 running AIX rs6000-ibm-aix or rs6000
-
-SGI Irix-4.x mips-sgi-irix4 or iris4
-
- * New malloc package
-
-GDB now uses a new memory manager called mmalloc, based on gmalloc.
-Mmalloc is capable of handling mutiple heaps of memory. It is also
-capable of saving a heap to a file, and then mapping it back in later.
-This can be used to greatly speedup the startup of GDB by using a
-pre-parsed symbol table which lives in a mmalloc managed heap. For
-more details, please read mmalloc/mmalloc.texi.
-
- * info proc
-
-The 'info proc' command (SVR4 only) has been enhanced quite a bit. See
-'help info proc' for details.
-
- * MIPS ecoff symbol table format
-
-The code that reads MIPS symbol table format is now supported on all hosts.
-Thanks to MIPS for releasing the sym.h and symconst.h files to make this
-possible.
-
- * File name changes for MS-DOS
-
-Many files in the config directories have been renamed to make it easier to
-support GDB on MS-DOSe systems (which have very restrictive file name
-conventions :-( ). MS-DOSe host support (under DJ Delorie's GO32
-environment) is close to working but has some remaining problems. Note
-that debugging of DOS programs is not supported, due to limitations
-in the ``operating system'', but it can be used to host cross-debugging.
-
- * Cross byte order fixes
-
-Many fixes have been made to support cross debugging of Sparc and MIPS
-targets from hosts whose byte order differs.
-
- * New -mapped and -readnow options
-
-If memory-mapped files are available on your system through the 'mmap'
-system call, you can use the -mapped option on the `file' or
-`symbol-file' commands to cause GDB to write the symbols from your
-program into a reusable file. If the program you are debugging is
-called `/path/fred', the mapped symbol file will be `./fred.syms'.
-Future GDB debugging sessions will notice the presence of this file,
-and will quickly map in symbol information from it, rather than reading
-the symbol table from the executable program. Using the '-mapped'
-option in a GDB `file' or `symbol-file' command has the same effect as
-starting GDB with the '-mapped' command-line option.
-
-You can cause GDB to read the entire symbol table immediately by using
-the '-readnow' option with any of the commands that load symbol table
-information (or on the GDB command line). This makes the command
-slower, but makes future operations faster.
-
-The -mapped and -readnow options are typically combined in order to
-build a `fred.syms' file that contains complete symbol information.
-A simple GDB invocation to do nothing but build a `.syms' file for future
-use is:
-
- gdb -batch -nx -mapped -readnow programname
-
-The `.syms' file is specific to the host machine on which GDB is run.
-It holds an exact image of GDB's internal symbol table. It cannot be
-shared across multiple host platforms.
-
- * longjmp() handling
-
-GDB is now capable of stepping and nexting over longjmp(), _longjmp(), and
-siglongjmp() without losing control. This feature has not yet been ported to
-all systems. It currently works on many 386 platforms, all MIPS-based
-platforms (SGI, DECstation, etc), and Sun3/4.
-
- * Solaris 2.0
-
-Preliminary work has been put in to support the new Solaris OS from Sun. At
-this time, it can control and debug processes, but it is not capable of
-reading symbols.
-
- * Bug fixes
-
-As always, many many bug fixes. The major areas were with g++, and mipsread.
-People using the MIPS-based platforms should experience fewer mysterious
-crashes and trashed symbol tables.
-
-*** Changes in GDB-4.4:
-
- * New machines supported (host and target)
-
-SCO Unix on i386 IBM PC clones i386-sco-sysv or i386sco
- (except core files)
-BSD Reno on Vax vax-dec-bsd
-Ultrix on Vax vax-dec-ultrix
-
- * New machines supported (target)
-
-AMD 29000 embedded, using EBMON a29k-none-none
-
- * C++ support
-
-GDB continues to improve its handling of C++. `References' work better.
-The demangler has also been improved, and now deals with symbols mangled as
-per the Annotated C++ Reference Guide.
-
-GDB also now handles `stabs' symbol information embedded in MIPS
-`ecoff' symbol tables. Since the ecoff format was not easily
-extensible to handle new languages such as C++, this appeared to be a
-good way to put C++ debugging info into MIPS binaries. This option
-will be supported in the GNU C compiler, version 2, when it is
-released.
-
- * New features for SVR4
-
-GDB now handles SVR4 shared libraries, in the same fashion as SunOS
-shared libraries. Debugging dynamically linked programs should present
-only minor differences from debugging statically linked programs.
-
-The `info proc' command will print out information about any process
-on an SVR4 system (including the one you are debugging). At the moment,
-it prints the address mappings of the process.
-
-If you bring up GDB on another SVR4 system, please send mail to
-bug-gdb@prep.ai.mit.edu to let us know what changes were reqired (if any).
-
- * Better dynamic linking support in SunOS
-
-Reading symbols from shared libraries which contain debugging symbols
-now works properly. However, there remain issues such as automatic
-skipping of `transfer vector' code during function calls, which
-make it harder to debug code in a shared library, than to debug the
-same code linked statically.
-
- * New Getopt
-
-GDB is now using the latest `getopt' routines from the FSF. This
-version accepts the -- prefix for options with long names. GDB will
-continue to accept the old forms (-option and +option) as well.
-Various single letter abbreviations for options have been explicity
-added to the option table so that they won't get overshadowed in the
-future by other options that begin with the same letter.
-
- * Bugs fixed
-
-The `cleanup_undefined_types' bug that many of you noticed has been squashed.
-Many assorted bugs have been handled. Many more remain to be handled.
-See the various ChangeLog files (primarily in gdb and bfd) for details.
-
-
-*** Changes in GDB-4.3:
-
- * New machines supported (host and target)
-
-Amiga 3000 running Amix m68k-cbm-svr4 or amix
-NCR 3000 386 running SVR4 i386-ncr-svr4 or ncr3000
-Motorola Delta 88000 running Sys V m88k-motorola-sysv or delta88
-
- * Almost SCO Unix support
-
-We had hoped to support:
-SCO Unix on i386 IBM PC clones i386-sco-sysv or i386sco
-(except for core file support), but we discovered very late in the release
-that it has problems with process groups that render gdb unusable. Sorry
-about that. I encourage people to fix it and post the fixes.
-
- * Preliminary ELF and DWARF support
-
-GDB can read ELF object files on System V Release 4, and can handle
-debugging records for C, in DWARF format, in ELF files. This support
-is preliminary. If you bring up GDB on another SVR4 system, please
-send mail to bug-gdb@prep.ai.mit.edu to let us know what changes were
-reqired (if any).
-
- * New Readline
-
-GDB now uses the latest `readline' library. One user-visible change
-is that two tabs will list possible command completions, which previously
-required typing M-? (meta-question mark, or ESC ?).
-
- * Bugs fixed
-
-The `stepi' bug that many of you noticed has been squashed.
-Many bugs in C++ have been handled. Many more remain to be handled.
-See the various ChangeLog files (primarily in gdb and bfd) for details.
-
- * State of the MIPS world (in case you wondered):
-
-GDB can understand the symbol tables emitted by the compilers
-supplied by most vendors of MIPS-based machines, including DEC. These
-symbol tables are in a format that essentially nobody else uses.
-
-Some versions of gcc come with an assembler post-processor called
-mips-tfile. This program is required if you want to do source-level
-debugging of gcc-compiled programs. I believe FSF does not ship
-mips-tfile with gcc version 1, but it will eventually come with gcc
-version 2.
-
-Debugging of g++ output remains a problem. g++ version 1.xx does not
-really support it at all. (If you're lucky, you should be able to get
-line numbers and stack traces to work, but no parameters or local
-variables.) With some work it should be possible to improve the
-situation somewhat.
-
-When gcc version 2 is released, you will have somewhat better luck.
-However, even then you will get confusing results for inheritance and
-methods.
-
-We will eventually provide full debugging of g++ output on
-DECstations. This will probably involve some kind of stabs-in-ecoff
-encapulation, but the details have not been worked out yet.
-
-
-*** Changes in GDB-4.2:
-
- * Improved configuration
-
-Only one copy of `configure' exists now, and it is not self-modifying.
-Porting BFD is simpler.
-
- * Stepping improved
-
-The `step' and `next' commands now only stop at the first instruction
-of a source line. This prevents the multiple stops that used to occur
-in switch statements, for-loops, etc. `Step' continues to stop if a
-function that has debugging information is called within the line.
-
- * Bug fixing
-
-Lots of small bugs fixed. More remain.
-
- * New host supported (not target)
-
-Intel 386 PC clone running Mach i386-none-mach
-
-
-*** Changes in GDB-4.1:
-
- * Multiple source language support
-
-GDB now has internal scaffolding to handle several source languages.
-It determines the type of each source file from its filename extension,
-and will switch expression parsing and number formatting to match the
-language of the function in the currently selected stack frame.
-You can also specifically set the language to be used, with
-`set language c' or `set language modula-2'.
-
- * GDB and Modula-2
-
-GDB now has preliminary support for the GNU Modula-2 compiler,
-currently under development at the State University of New York at
-Buffalo. Development of both GDB and the GNU Modula-2 compiler will
-continue through the fall of 1991 and into 1992.
-
-Other Modula-2 compilers are currently not supported, and attempting to
-debug programs compiled with them will likely result in an error as the
-symbol table is read. Feel free to work on it, though!
-
-There are hooks in GDB for strict type checking and range checking,
-in the `Modula-2 philosophy', but they do not currently work.
-
- * set write on/off
-
-GDB can now write to executable and core files (e.g. patch
-a variable's value). You must turn this switch on, specify
-the file ("exec foo" or "core foo"), *then* modify it, e.g.
-by assigning a new value to a variable. Modifications take
-effect immediately.
-
- * Automatic SunOS shared library reading
-
-When you run your program, GDB automatically determines where its
-shared libraries (if any) have been loaded, and reads their symbols.
-The `share' command is no longer needed. This also works when
-examining core files.
-
- * set listsize
-
-You can specify the number of lines that the `list' command shows.
-The default is 10.
-
- * New machines supported (host and target)
-
-SGI Iris (MIPS) running Irix V3: mips-sgi-irix or iris
-Sony NEWS (68K) running NEWSOS 3.x: m68k-sony-sysv or news
-Ultracomputer (29K) running Sym1: a29k-nyu-sym1 or ultra3
-
- * New hosts supported (not targets)
-
-IBM RT/PC: romp-ibm-aix or rtpc
-
- * New targets supported (not hosts)
-
-AMD 29000 embedded with COFF a29k-none-coff
-AMD 29000 embedded with a.out a29k-none-aout
-Ultracomputer remote kernel debug a29k-nyu-kern
-
- * New remote interfaces
-
-AMD 29000 Adapt
-AMD 29000 Minimon
-
-
-*** Changes in GDB-4.0:
-
- * New Facilities
-
-Wide output is wrapped at good places to make the output more readable.
-
-Gdb now supports cross-debugging from a host machine of one type to a
-target machine of another type. Communication with the target system
-is over serial lines. The ``target'' command handles connecting to the
-remote system; the ``load'' command will download a program into the
-remote system. Serial stubs for the m68k and i386 are provided. Gdb
-also supports debugging of realtime processes running under VxWorks,
-using SunRPC Remote Procedure Calls over TCP/IP to talk to a debugger
-stub on the target system.
-
-New CPUs supported include the AMD 29000 and Intel 960.
-
-GDB now reads object files and symbol tables via a ``binary file''
-library, which allows a single copy of GDB to debug programs of multiple
-object file types such as a.out and coff.
-
-There is now a GDB reference card in "doc/refcard.tex". (Make targets
-refcard.dvi and refcard.ps are available to format it).
-
-
- * Control-Variable user interface simplified
-
-All variables that control the operation of the debugger can be set
-by the ``set'' command, and displayed by the ``show'' command.
-
-For example, ``set prompt new-gdb=>'' will change your prompt to new-gdb=>.
-``Show prompt'' produces the response:
-Gdb's prompt is new-gdb=>.
-
-What follows are the NEW set commands. The command ``help set'' will
-print a complete list of old and new set commands. ``help set FOO''
-will give a longer description of the variable FOO. ``show'' will show
-all of the variable descriptions and their current settings.
-
-confirm on/off: Enables warning questions for operations that are
- hard to recover from, e.g. rerunning the program while
- it is already running. Default is ON.
-
-editing on/off: Enables EMACS style command line editing
- of input. Previous lines can be recalled with
- control-P, the current line can be edited with control-B,
- you can search for commands with control-R, etc.
- Default is ON.
-
-history filename NAME: NAME is where the gdb command history
- will be stored. The default is .gdb_history,
- or the value of the environment variable
- GDBHISTFILE.
-
-history size N: The size, in commands, of the command history. The
- default is 256, or the value of the environment variable
- HISTSIZE.
-
-history save on/off: If this value is set to ON, the history file will
- be saved after exiting gdb. If set to OFF, the
- file will not be saved. The default is OFF.
-
-history expansion on/off: If this value is set to ON, then csh-like
- history expansion will be performed on
- command line input. The default is OFF.
-
-radix N: Sets the default radix for input and output. It can be set
- to 8, 10, or 16. Note that the argument to "radix" is interpreted
- in the current radix, so "set radix 10" is always a no-op.
-
-height N: This integer value is the number of lines on a page. Default
- is 24, the current `stty rows'' setting, or the ``li#''
- setting from the termcap entry matching the environment
- variable TERM.
-
-width N: This integer value is the number of characters on a line.
- Default is 80, the current `stty cols'' setting, or the ``co#''
- setting from the termcap entry matching the environment
- variable TERM.
-
-Note: ``set screensize'' is obsolete. Use ``set height'' and
-``set width'' instead.
-
-print address on/off: Print memory addresses in various command displays,
- such as stack traces and structure values. Gdb looks
- more ``symbolic'' if you turn this off; it looks more
- ``machine level'' with it on. Default is ON.
-
-print array on/off: Prettyprint arrays. New convenient format! Default
- is OFF.
-
-print demangle on/off: Print C++ symbols in "source" form if on,
- "raw" form if off.
-
-print asm-demangle on/off: Same, for assembler level printouts
- like instructions.
-
-print vtbl on/off: Prettyprint C++ virtual function tables. Default is OFF.
-
-
- * Support for Epoch Environment.
-
-The epoch environment is a version of Emacs v18 with windowing. One
-new command, ``inspect'', is identical to ``print'', except that if you
-are running in the epoch environment, the value is printed in its own
-window.
-
-
- * Support for Shared Libraries
-
-GDB can now debug programs and core files that use SunOS shared libraries.
-Symbols from a shared library cannot be referenced
-before the shared library has been linked with the program (this
-happens after you type ``run'' and before the function main() is entered).
-At any time after this linking (including when examining core files
-from dynamically linked programs), gdb reads the symbols from each
-shared library when you type the ``sharedlibrary'' command.
-It can be abbreviated ``share''.
-
-sharedlibrary REGEXP: Load shared object library symbols for files
- matching a unix regular expression. No argument
- indicates to load symbols for all shared libraries.
-
-info sharedlibrary: Status of loaded shared libraries.
-
-
- * Watchpoints
-
-A watchpoint stops execution of a program whenever the value of an
-expression changes. Checking for this slows down execution
-tremendously whenever you are in the scope of the expression, but is
-quite useful for catching tough ``bit-spreader'' or pointer misuse
-problems. Some machines such as the 386 have hardware for doing this
-more quickly, and future versions of gdb will use this hardware.
-
-watch EXP: Set a watchpoint (breakpoint) for an expression.
-
-info watchpoints: Information about your watchpoints.
-
-delete N: Deletes watchpoint number N (same as breakpoints).
-disable N: Temporarily turns off watchpoint number N (same as breakpoints).
-enable N: Re-enables watchpoint number N (same as breakpoints).
-
-
- * C++ multiple inheritance
-
-When used with a GCC version 2 compiler, GDB supports multiple inheritance
-for C++ programs.
-
- * C++ exception handling
-
-Gdb now supports limited C++ exception handling. Besides the existing
-ability to breakpoint on an exception handler, gdb can breakpoint on
-the raising of an exception (before the stack is peeled back to the
-handler's context).
-
-catch FOO: If there is a FOO exception handler in the dynamic scope,
- set a breakpoint to catch exceptions which may be raised there.
- Multiple exceptions (``catch foo bar baz'') may be caught.
-
-info catch: Lists all exceptions which may be caught in the
- current stack frame.
-
-
- * Minor command changes
-
-The command ``call func (arg, arg, ...)'' now acts like the print
-command, except it does not print or save a value if the function's result
-is void. This is similar to dbx usage.
-
-The ``up'' and ``down'' commands now always print the frame they end up
-at; ``up-silently'' and `down-silently'' can be used in scripts to change
-frames without printing.
-
- * New directory command
-
-'dir' now adds directories to the FRONT of the source search path.
-The path starts off empty. Source files that contain debug information
-about the directory in which they were compiled can be found even
-with an empty path; Sun CC and GCC include this information. If GDB can't
-find your source file in the current directory, type "dir .".
-
- * Configuring GDB for compilation
-
-For normal use, type ``./configure host''. See README or gdb.texinfo
-for more details.
-
-GDB now handles cross debugging. If you are remotely debugging between
-two different machines, type ``./configure host -target=targ''.
-Host is the machine where GDB will run; targ is the machine
-where the program that you are debugging will run.
diff --git a/contrib/gdb/gdb/PROBLEMS b/contrib/gdb/gdb/PROBLEMS
deleted file mode 100644
index 2f533135ac04..000000000000
--- a/contrib/gdb/gdb/PROBLEMS
+++ /dev/null
@@ -1,113 +0,0 @@
-
- Known problems in GDB 6.1
-
- See also: http://www.gnu.org/software/gdb/bugs/
-
-
-*** Build problems
-
-build/1458: comple failed on hpux11
-
-GDB 6.1 is known to have build problems on HP/UX 11.00 using the
-vendor supplied compilers (GDB does build on HP/UX 11.11, and using
-GCC).
-
-*** Misc
-
-gdb/1560: Control-C does not always interrupt GDB.
-
-When GDB is busy processing a command which takes a long time to
-complete, hitting Control-C does not have the expected effect.
-The command execution is not aborted, and the "QUIT" message confirming
-the abortion is displayed only after the command has been completed.
-
-*** C++ support
-
-gdb/931: GDB could be more generous when reading types C++ templates on input
-
-When the user types a template, GDB frequently requires the type to be
-typed in a certain way (e.g. "const char*" as opposed to "const char *"
-or "char const *" or "char const*").
-
-gdb/1512: no canonical way to output names of C++ types
-
-We currently don't have any canonical way to output names of C++ types.
-E.g. "const char *" versus "char const *"; more subtleties arise when
-dealing with templates.
-
-gdb/1516: [regression] local classes, gcc 2.95.3, dwarf-2
-
-With gcc 2.95.3 and the dwarf-2 debugging format, classes which are
-defined locally to a function include the demangled name of the function
-as part of their name. For example, if a function "foobar" contains a
-local class definition "Local", gdb will say that the name of the class
-type is "foobar__Fi.0:Local".
-
-This applies only to classes where the class type is defined inside a
-function, not to variables defined with types that are defined somewhere
-outside any function (which most types are).
-
-gdb/1588: names of c++ nested types in casts must be enclosed in quotes
-
-You must type
- (gdb) print ('Foo::Bar') x
-or
- (gdb) print ('Foo::Bar' *) y
-instead of
- (gdb) print (Foo::Bar) x
-or
- (gdb) print (Foo::Bar *) y
-respectively.
-
-gdb/1091: Constructor breakpoints ignored
-gdb/1193: g++ 3.3 creates multiple constructors: gdb 5.3 can't set breakpoints
-
-When gcc 3.x compiles a C++ constructor or C++ destructor, it generates
-2 or 3 different versions of the object code. These versions have
-unique mangled names (they have to, in order for linking to work), but
-they have identical source code names, which leads to a great deal of
-confusion. Specifically, if you set a breakpoint in a constructor or a
-destructor, gdb will put a breakpoint in one of the versions, but your
-program may execute the other version. This makes it impossible to set
-breakpoints reliably in constructors or destructors.
-
-gcc 3.x generates these multiple object code functions in order to
-implement virtual base classes. gcc 2.x generated just one object code
-function with a hidden parameter, but gcc 3.x conforms to a multi-vendor
-ABI for C++ which requires multiple object code functions.
-
-*** Stack backtraces
-
-GDB's core code base has been updated to use a new backtrace
-mechanism. This mechanism makes it possible to support new features
-such DWARF 2 Call Frame Information (which in turn makes possible
-backtraces through optimized code).
-
-Since this code is new, it is known to still have a few problems:
-
-gdb/1505: [regression] gdb prints a bad backtrace for a thread
-
-When backtracing a thread, gdb does not stop when it reaches the
-outermost frame, instead continuing until it hits garbage. This is
-sensitive to the operating system and thread library.
-
-hppa*-*-*
-mips*-*-*
-
-The MIPS and HPPA backtrace code has only very recently been updated
-to use GDB's new frame mechanism. At present there are still a few
-problems, in particular backtraces through signal handlers do not
-work.
-
-People encountering problems with these architectures should consult
-GDB's web pages and mailing lists (http://www.gnu.org/software/gdb/)
-to see if there are updates.
-
-powerpc*-*-*
-
-PowerPC architecture support, in 6.1, does not use the new frame code.
-
-Fortunately, PowerPC architecture support, in GDB's mainline sources,
-have been updated. People encountering problems should consider
-downloading a more current snapshot of GDB
-(http://www.gnu.org/software/gdb/current/).
diff --git a/contrib/gdb/gdb/README b/contrib/gdb/gdb/README
deleted file mode 100644
index 9a7cc05404ca..000000000000
--- a/contrib/gdb/gdb/README
+++ /dev/null
@@ -1,573 +0,0 @@
- README for gdb-6.1 release
- Updated 29 February, 2004 by Andrew Cagney
-
-This is GDB, the GNU source-level debugger.
-
-A summary of new features is in the file `gdb/NEWS'.
-
-Check the GDB home page at http://www.gnu.org/software/gdb/ for up to
-date release information, mailing list links and archives, etc.
-
-The file `gdb/PROBLEMS' contains information on problems identified
-late in the release cycle. GDB's bug tracking data base at
-http://www.gnu.org/software/gdb/bugs/ contains a more complete list of
-bugs.
-
-
-Unpacking and Installation -- quick overview
-==========================
-
- In this release, the GDB debugger sources, the generic GNU include
-files, the BFD ("binary file description") library, the readline
-library, and other libraries all have directories of their own
-underneath the gdb-6.1 directory. The idea is that a variety of GNU
-tools can share a common copy of these things. Be aware of variation
-over time--for example don't try to build gdb with a copy of bfd from
-a release other than the gdb release (such as a binutils release),
-especially if the releases are more than a few weeks apart.
-Configuration scripts and makefiles exist to cruise up and down this
-directory tree and automatically build all the pieces in the right
-order.
-
- When you unpack the gdb-6.1.tar.gz file, you'll find a directory
-called `gdb-6.1', which contains:
-
- COPYING config.sub intl missing opcodes
- COPYING.LIB configure libiberty mkinstalldirs readline
- Makefile.in configure.in libtool.m4 mmalloc sim
- README djunpack.bat ltcf-c.sh move-if-change symlink-tree
- bfd etc ltcf-cxx.sh mpw-README texinfo
- config gdb ltcf-gcj.sh mpw-build.in utils
- config-ml.in gettext.m4 ltconfig mpw-config.in ylwrap
- config.guess include ltmain.sh mpw-configure
- config.if install-sh md5.sum mpw-install
-
-You can build GDB right in the source directory:
-
- cd gdb-6.1
- ./configure
- make
- cp gdb/gdb /usr/local/bin/gdb (or wherever you want)
-
-However, we recommend that an empty directory be used instead.
-This way you do not clutter your source tree with binary files
-and will be able to create different builds with different
-configuration options.
-
-You can build GDB in any empty build directory:
-
- mkdir build
- cd build
- <full path to your sources>/gdb-6.1/configure
- make
- cp gdb/gdb /usr/local/bin/gdb (or wherever you want)
-
-(Building GDB with DJGPP tools for MS-DOS/MS-Windows is slightly
-different; see the file gdb-6.1/gdb/config/djgpp/README for details.)
-
- This will configure and build all the libraries as well as GDB. If
-`configure' can't determine your system type, specify one as its
-argument, e.g., `./configure sun4' or `./configure decstation'.
-
- Make sure that your 'configure' line ends in 'gdb-6.1/configure':
-
- /berman/migchain/source/gdb-6.1/configure # RIGHT
- /berman/migchain/source/gdb-6.1/gdb/configure # WRONG
-
- The gdb package contains several subdirectories, such as 'gdb',
-'bfd', and 'readline'. If your 'configure' line ends in
-'gdb-6.1/gdb/configure', then you are configuring only the gdb
-subdirectory, not the whole gdb package. This leads to build errors
-such as:
-
- make: *** No rule to make target `../bfd/bfd.h', needed by `gdb.o'. Stop.
-
- If you get other compiler errors during this stage, see the `Reporting
-Bugs' section below; there are a few known problems.
-
- GDB requires an ISO C (ANSI C) compiler. If you do not have an ISO
-C compiler for your system, you may be able to download and install
-the GNU CC compiler. It is available via anonymous FTP from the
-directory `ftp://ftp.gnu.org/pub/gnu/gcc'.
-
- GDB can be used as a cross-debugger, running on a machine of one
-type while debugging a program running on a machine of another type.
-See below.
-
-
-More Documentation
-******************
-
- All the documentation for GDB comes as part of the machine-readable
-distribution. The documentation is written in Texinfo format, which
-is a documentation system that uses a single source file to produce
-both on-line information and a printed manual. You can use one of the
-Info formatting commands to create the on-line version of the
-documentation and TeX (or `texi2roff') to typeset the printed version.
-
- GDB includes an already formatted copy of the on-line Info version
-of this manual in the `gdb/doc' subdirectory. The main Info file is
-`gdb-6.1/gdb/doc/gdb.info', and it refers to subordinate files
-matching `gdb.info*' in the same directory. If necessary, you can
-print out these files, or read them with any editor; but they are
-easier to read using the `info' subsystem in GNU Emacs or the
-standalone `info' program, available as part of the GNU Texinfo
-distribution.
-
- If you want to format these Info files yourself, you need one of the
-Info formatting programs, such as `texinfo-format-buffer' or
-`makeinfo'.
-
- If you have `makeinfo' installed, and are in the top level GDB
-source directory (`gdb-6.1', in the case of version 6.1), you can make
-the Info file by typing:
-
- cd gdb/doc
- make info
-
- If you want to typeset and print copies of this manual, you need
-TeX, a program to print its DVI output files, and `texinfo.tex', the
-Texinfo definitions file. This file is included in the GDB
-distribution, in the directory `gdb-6.1/texinfo'.
-
- TeX is a typesetting program; it does not print files directly, but
-produces output files called DVI files. To print a typeset document,
-you need a program to print DVI files. If your system has TeX
-installed, chances are it has such a program. The precise command to
-use depends on your system; `lpr -d' is common; another (for PostScript
-devices) is `dvips'. The DVI print command may require a file name
-without any extension or a `.dvi' extension.
-
- TeX also requires a macro definitions file called `texinfo.tex'.
-This file tells TeX how to typeset a document written in Texinfo
-format. On its own, TeX cannot read, much less typeset a Texinfo file.
- `texinfo.tex' is distributed with GDB and is located in the
-`gdb-6.1/texinfo' directory.
-
- If you have TeX and a DVI printer program installed, you can typeset
-and print this manual. First switch to the the `gdb' subdirectory of
-the main source directory (for example, to `gdb-6.1/gdb') and then type:
-
- make doc/gdb.dvi
-
- If you prefer to have the manual in PDF format, type this from the
-`gdb/doc' subdirectory of the main source directory:
-
- make gdb.pdf
-
-For this to work, you will need the PDFTeX package to be installed.
-
-
-Installing GDB
-**************
-
- GDB comes with a `configure' script that automates the process of
-preparing GDB for installation; you can then use `make' to build the
-`gdb' program.
-
- The GDB distribution includes all the source code you need for GDB in
-a single directory, whose name is usually composed by appending the
-version number to `gdb'.
-
- For example, the GDB version 6.1 distribution is in the `gdb-6.1'
-directory. That directory contains:
-
-`gdb-6.1/{COPYING,COPYING.LIB}'
- Standard GNU license files. Please read them.
-
-`gdb-6.1/bfd'
- source for the Binary File Descriptor library
-
-`gdb-6.1/config*'
- script for configuring GDB, along with other support files
-
-`gdb-6.1/gdb'
- the source specific to GDB itself
-
-`gdb-6.1/include'
- GNU include files
-
-`gdb-6.1/libiberty'
- source for the `-liberty' free software library
-
-`gdb-6.1/mmalloc'
- source for the GNU memory-mapped malloc package
-
-`gdb-6.1/opcodes'
- source for the library of opcode tables and disassemblers
-
-`gdb-6.1/readline'
- source for the GNU command-line interface
- NOTE: The readline library is compiled for use by GDB, but will
- not be installed on your system when "make install" is issued.
-
-`gdb-6.1/sim'
- source for some simulators (ARM, D10V, SPARC, M32R, MIPS, PPC, V850, etc)
-
-`gdb-6.1/intl'
- source for the GNU gettext library, for internationalization.
- This is slightly modified from the standalone gettext
- distribution you can get from GNU.
-
-`gdb-6.1/texinfo'
- The `texinfo.tex' file, which you need in order to make a printed
- manual using TeX.
-
-`gdb-6.1/etc'
- Coding standards, useful files for editing GDB, and other
- miscellanea.
-
-`gdb-6.1/utils'
- A grab bag of random utilities.
-
- Note: the following instructions are for building GDB on Unix or
-Unix-like systems. Instructions for building with DJGPP for
-MS-DOS/MS-Windows are in the file gdb/config/djgpp/README.
-
- The simplest way to configure and build GDB is to run `configure'
-from the `gdb-VERSION-NUMBER' source directory, which in this example
-is the `gdb-6.1' directory.
-
- First switch to the `gdb-VERSION-NUMBER' source directory if you are
-not already in it; then run `configure'.
-
- For example:
-
- cd gdb-6.1
- ./configure
- make
-
- Running `configure' followed by `make' builds the `bfd',
-`readline', `mmalloc', and `libiberty' libraries, then `gdb' itself.
-The configured source files, and the binaries, are left in the
-corresponding source directories.
-
- `configure' is a Bourne-shell (`/bin/sh') script; if your system
-does not recognize this automatically when you run a different shell,
-you may need to run `sh' on it explicitly:
-
- sh configure
-
- If you run `configure' from a directory that contains source
-directories for multiple libraries or programs, such as the `gdb-6.1'
-source directory for version 6.1, `configure' creates configuration
-files for every directory level underneath (unless you tell it not to,
-with the `--norecursion' option).
-
- You can run the `configure' script from any of the subordinate
-directories in the GDB distribution, if you only want to configure that
-subdirectory; but be sure to specify a path to it.
-
- For example, with version 6.1, type the following to configure only
-the `bfd' subdirectory:
-
- cd gdb-6.1/bfd
- ../configure
-
- You can install `gdb' anywhere; it has no hardwired paths. However,
-you should make sure that the shell on your path (named by the `SHELL'
-environment variable) is publicly readable. Remember that GDB uses the
-shell to start your program--some systems refuse to let GDB debug child
-processes whose programs are not readable.
-
-
-Compiling GDB in another directory
-==================================
-
- If you want to run GDB versions for several host or target machines,
-you need a different `gdb' compiled for each combination of host and
-target. `configure' is designed to make this easy by allowing you to
-generate each configuration in a separate subdirectory, rather than in
-the source directory. If your `make' program handles the `VPATH'
-feature correctly (GNU `make' and SunOS 'make' are two that should),
-running `make' in each of these directories builds the `gdb' program
-specified there.
-
- To build `gdb' in a separate directory, run `configure' with the
-`--srcdir' option to specify where to find the source. (You also need
-to specify a path to find `configure' itself from your working
-directory. If the path to `configure' would be the same as the
-argument to `--srcdir', you can leave out the `--srcdir' option; it
-will be assumed.)
-
- For example, with version 6.1, you can build GDB in a separate
-directory for a Sun 4 like this:
-
- cd gdb-6.1
- mkdir ../gdb-sun4
- cd ../gdb-sun4
- ../gdb-6.1/configure
- make
-
- When `configure' builds a configuration using a remote source
-directory, it creates a tree for the binaries with the same structure
-(and using the same names) as the tree under the source directory. In
-the example, you'd find the Sun 4 library `libiberty.a' in the
-directory `gdb-sun4/libiberty', and GDB itself in `gdb-sun4/gdb'.
-
- One popular reason to build several GDB configurations in separate
-directories is to configure GDB for cross-compiling (where GDB runs on
-one machine--the host--while debugging programs that run on another
-machine--the target). You specify a cross-debugging target by giving
-the `--target=TARGET' option to `configure'.
-
- When you run `make' to build a program or library, you must run it
-in a configured directory--whatever directory you were in when you
-called `configure' (or one of its subdirectories).
-
- The `Makefile' that `configure' generates in each source directory
-also runs recursively. If you type `make' in a source directory such
-as `gdb-6.1' (or in a separate configured directory configured with
-`--srcdir=PATH/gdb-6.1'), you will build all the required libraries,
-and then build GDB.
-
- When you have multiple hosts or targets configured in separate
-directories, you can run `make' on them in parallel (for example, if
-they are NFS-mounted on each of the hosts); they will not interfere
-with each other.
-
-
-Specifying names for hosts and targets
-======================================
-
- The specifications used for hosts and targets in the `configure'
-script are based on a three-part naming scheme, but some short
-predefined aliases are also supported. The full naming scheme encodes
-three pieces of information in the following pattern:
-
- ARCHITECTURE-VENDOR-OS
-
- For example, you can use the alias `sun4' as a HOST argument or in a
-`--target=TARGET' option. The equivalent full name is
-`sparc-sun-sunos4'.
-
- The `configure' script accompanying GDB does not provide any query
-facility to list all supported host and target names or aliases.
-`configure' calls the Bourne shell script `config.sub' to map
-abbreviations to full names; you can read the script, if you wish, or
-you can use it to test your guesses on abbreviations--for example:
-
- % sh config.sub sun4
- sparc-sun-sunos4.1.1
- % sh config.sub sun3
- m68k-sun-sunos4.1.1
- % sh config.sub decstation
- mips-dec-ultrix4.2
- % sh config.sub hp300bsd
- m68k-hp-bsd
- % sh config.sub i386v
- i386-pc-sysv
- % sh config.sub i786v
- Invalid configuration `i786v': machine `i786v' not recognized
-
-`config.sub' is also distributed in the GDB source directory
-(`gdb-6.1', for version 6.1).
-
-
-`configure' options
-===================
-
- Here is a summary of the `configure' options and arguments that are
-most often useful for building GDB. `configure' also has several other
-options not listed here. *note : (configure.info)What Configure Does,
-for a full explanation of `configure'.
-
- configure [--help]
- [--prefix=DIR]
- [--srcdir=PATH]
- [--norecursion] [--rm]
- [--enable-build-warnings]
- [--target=TARGET]
- [--host=HOST]
- [HOST]
-
-You may introduce options with a single `-' rather than `--' if you
-prefer; but you may abbreviate option names if you use `--'.
-
-`--help'
- Display a quick summary of how to invoke `configure'.
-
-`-prefix=DIR'
- Configure the source to install programs and files under directory
- `DIR'.
-
-`--srcdir=PATH'
- *Warning: using this option requires GNU `make', or another `make'
- that compatibly implements the `VPATH' feature.*
- Use this option to make configurations in directories separate
- from the GDB source directories. Among other things, you can use
- this to build (or maintain) several configurations simultaneously,
- in separate directories. `configure' writes configuration
- specific files in the current directory, but arranges for them to
- use the source in the directory PATH. `configure' will create
- directories under the working directory in parallel to the source
- directories below PATH.
-
-`--norecursion'
- Configure only the directory level where `configure' is executed;
- do not propagate configuration to subdirectories.
-
-`--rm'
- Remove the configuration that the other arguments specify.
-
-`--enable-build-warnings'
- When building the GDB sources, ask the compiler to warn about any
- code which looks even vaguely suspicious. You should only using
- this feature if you're compiling with GNU CC. It passes the
- following flags:
- -Wimplicit
- -Wreturn-type
- -Wcomment
- -Wtrigraphs
- -Wformat
- -Wparentheses
- -Wpointer-arith
-
-`--target=TARGET'
- Configure GDB for cross-debugging programs running on the specified
- TARGET. Without this option, GDB is configured to debug programs
- that run on the same machine (HOST) as GDB itself.
-
- There is no convenient way to generate a list of all available
- targets.
-
-`--host=HOST'
- Configure GDB to run on the specified HOST.
-
- There is no convenient way to generate a list of all available
- hosts.
-
-`HOST ...'
- Same as `--host=HOST'. If you omit this, GDB will guess; it's
- quite accurate.
-
-`configure' accepts other options, for compatibility with configuring
-other GNU tools recursively; but these are the only options that affect
-GDB or its supporting libraries.
-
-
-Remote debugging
-=================
-
- The files m68k-stub.c, i386-stub.c, and sparc-stub.c are examples
-of remote stubs to be used with remote.c. They are designed to run
-standalone on an m68k, i386, or SPARC cpu and communicate properly
-with the remote.c stub over a serial line.
-
- The directory gdb/gdbserver/ contains `gdbserver', a program that
-allows remote debugging for Unix applications. gdbserver is only
-supported for some native configurations, including Sun 3, Sun 4, and
-Linux.
-
- There are a number of remote interfaces for talking to existing ROM
-monitors and other hardware:
-
- remote-e7000.c Renesas E7000 ICE
- remote-est.c EST emulator
- remote-hms.c Renesas Micro Systems H8/300 monitor
- remote-mips.c MIPS remote debugging protocol
- remote-rdi.c ARM with Angel monitor
- remote-rdp.c ARM with Demon monitor
- remote-sds.c PowerPC SDS monitor
- remote-sim.c Generalized simulator protocol
- remote-st.c Tandem ST-2000 monitor
- remote-vx.c VxWorks realtime kernel
-
- Remote-vx.c and the vx-share subdirectory contain a remote
-interface for the VxWorks realtime kernel, which communicates over TCP
-using the Sun RPC library. This would be a useful starting point for
-other remote- via-ethernet back ends.
-
-
-Reporting Bugs in GDB
-=====================
-
- There are several ways of reporting bugs in GDB. The prefered
-method is to use the World Wide Web:
-
- http://www.gnu.org/software/gdb/bugs/
-
-As an alternative, the bug report can be submitted, via e-mail, to the
-address "bug-gdb@gnu.org".
-
- When submitting a bug, please include the GDB version number (e.g.,
-gdb-6.1), and how you configured it (e.g., "sun4" or "mach386 host,
-i586-intel-synopsys target"). Since GDB now supports so many
-different configurations, it is important that you be precise about
-this. If at all possible, you should include the actual banner that
-GDB prints when it starts up, or failing that, the actual configure
-command that you used when configuring GDB.
-
- For more information on how/whether to report bugs, see the
-Reporting Bugs chapter of the GDB manual (gdb/doc/gdb.texinfo).
-
-
-Graphical interface to GDB -- X Windows, MS Windows
-==========================
-
- Several graphical interfaces to GDB are available. You should
-check:
-
- http://www.gnu.org/software/gdb/links/
-
-for an up-to-date list.
-
- Emacs users will very likely enjoy the Grand Unified Debugger mode;
-try typing `M-x gdb RET'.
-
-
-Writing Code for GDB
-=====================
-
- There is a lot of information about writing code for GDB in the
-internals manual, distributed with GDB in gdb/doc/gdbint.texinfo. You
-can read it by hand, print it by using TeX and texinfo, or process it
-into an `info' file for use with Emacs' info mode or the standalone
-`info' program.
-
- If you are pondering writing anything but a short patch, especially
-take note of the information about copyrights in the node Submitting
-Patches. It can take quite a while to get all the paperwork done, so
-we encourage you to start that process as soon as you decide you are
-planning to work on something, or at least well ahead of when you
-think you will be ready to submit the patches.
-
-
-GDB Testsuite
-=============
-
- Included with the GDB distribution is a DejaGNU based testsuite
-that can either be used to test your newly built GDB, or for
-regression testing a GDB with local modifications.
-
- Running the testsuite requires the prior installation of DejaGNU,
-which is generally available via ftp. The directory
-ftp://sources.redhat.com/pub/dejagnu/ will contain a recent snapshot.
-Once DejaGNU is installed, you can run the tests in one of the
-following ways:
-
- (1) cd gdb-6.1
- make check-gdb
-
-or
-
- (2) cd gdb-6.1/gdb
- make check
-
-or
-
- (3) cd gdb-6.1/gdb/testsuite
- make site.exp (builds the site specific file)
- runtest -tool gdb GDB=../gdb (or GDB=<somepath> as appropriate)
-
-The last method gives you slightly more control in case of problems
-with building one or more test executables or if you are using the
-testsuite `standalone', without it being part of the GDB source tree.
-
-See the DejaGNU documentation for further details.
-
-
-(this is for editing this file with GNU emacs)
-Local Variables:
-mode: text
-End:
diff --git a/contrib/gdb/gdb/TODO b/contrib/gdb/gdb/TODO
deleted file mode 100644
index 1ef9c22b0f20..000000000000
--- a/contrib/gdb/gdb/TODO
+++ /dev/null
@@ -1,333 +0,0 @@
-If you find inaccuracies in this list, please send mail to
-gdb-patches@sources.redhat.com. If you would like to work on any
-of these, you should consider sending mail to the same address, to
-find out whether anyone else is working on it.
-
-
- GDB 5.1 - Fixes
- ===============
-
-Below is a list of problems identified during the GDB 5.0 release
-cycle. People hope to have these problems fixed in 5.1.
-
---
-
-Wow, three bug reports for the same problem in one day! We should
-probably make fixing this a real priority :-).
-
-Anyway, thanks for reporting.
-
-The following patch will fix the problems with setting breakpoints in
-dynamically loaded objects:
-
- http://sources.redhat.com/ml/gdb-patches/2000-05/msg00230.html
-
-This patch isn't checked in yet (ping Michael/JimB), but I hope this
-will be in the next GDB release.
-
-There should really be a test in the testsuite for this problem, since
-it keeps coming up :-(. Any volunteers?
-
-Mark
-
---
-
- GDB 5.1 - New features
- ======================
-
-The following new features should be included in 5.1.
-
---
-
- GDB 5.1 - Cleanups
- ==================
-
-The following code cleanups will hopefully be applied to GDB 5.1.
-
---
-
- GDB 5.1 - Known Problems
- ========================
-
---
-
-z8k
-
-The z8k has suffered bit rot and is known to not build. The problem
-was occuring in the opcodes directory.
-
---
-
-The BFD directory requires bug-fixed AUTOMAKE et.al.
-
-AUTOMAKE 1.4 incorrectly set the TEXINPUTS environment variable. It
-contained the full path to texinfo.tex when it should have only
-contained the directory. The bug has been fixed in the current
-AUTOMAKE sources. Automake snapshots can be found in:
- ftp://sources.redhat.com/pub/gdb/infrastructure
-and ftp://sources.redhat.com/pub/binutils
-
---
-
-Solaris 8 x86 CURSES_H problem
-http://sources.redhat.com/ml/gdb/2000-07/msg00038.html
-
-The original problem was worked around with:
-
- 2000-06-06 Michael Snyder <msnyder@cygnus.com>
-
- * configure.in: Enable autoconf to find curses.h on Solaris 2.8.
- * configure: Regenerate.
-
-When building both GDB and SID using the same source tree the problem
-will still occure. sid/component/configure.in mis-configures
-<curses.h> and leaves wrong information in the config cache.
-
---
-
- GDB 5.2 - Fixes
- ===============
-
---
-
- GDB 5.2 - New features
- ======================
-
---
-
-GCC 3.0 ABI support (but hopefully sooner...).
-
---
-
-Objective C/C++ support (but hopefully sooner...).
-
---
-
-Import of readline 4.2
-
---
-
- GDB 5.2 - Cleanups
- ==================
-
-The following cleanups have been identified as part of GDB 5.2.
-
---
-
-Compiler warnings.
-
-Eliminate warnings for all targets on at least one host for one of the
--W flags. Flags up for debate include: -Wswitch -Wcomment -trigraphs
--Wtrigraphs -Wunused-function -Wunused-label -Wunused-variable
--Wunused-value -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
--Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
--Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
--Woverloaded-virtual -Winline
-
---
-
-Deprecate, if not delete, the following:
-
- register[]
- register_valid[]
- REGISTER_BYTE()
- Replaced by, on the target side
- supply_register()
- and on core-gdb side:
- {read,write}_register_gen()
- Remote.c will need to use something
- other than REGISTER_BYTE() and
- REGISTER_RAW_SIZE() when unpacking
- [gG] packets.
-
- STORE_PSEUDO_REGISTER
- FETCH_PSEUDO_REGISTER
- Now handed by the methods
- gdbarch_{read,write}_register()
- which sits between core GDB and
- the register cache.
-
- REGISTER_CONVERTIBLE
- REGISTER_CONVERT_TO_RAW
- REGISTER_CONVERT_TO_VIRTUAL
- I think these three are redundant.
- gdbarch_register_{read,write} can
- do any conversion it likes.
-
- REGISTER_VIRTUAL_SIZE
- MAX_REGISTER_VIRTUAL_SIZE
- REGISTER_VIRTUAL_TYPE
- I think these can be replaced by
- the pair:
- FRAME_REGISTER_TYPE(frame, regnum)
- REGISTER_TYPE(regnum)
-
- DO_REGISTERS_INFO
- Replace with
- FRAME_REGISTER_INFO (frame, ...)
-
- REGISTER_SIM_REGNO()
- If nothing else rename this so that
- how it relates to rawreg and the
- regnum is clear.
-
---
-
-Obsolete the targets:
-
-arm*-wince-pe
-mips*-*-pe
-sh*-*-pe
-
---
-
-Obsolete the protocols:
-
-RDB?
-
-``As of version 5.3, WindRiver has removed the RDB server (RDB
-protocol support is built into gdb).'' -- Till.
-
---
-
-Restructure gdb directory tree so that it avoids any 8.3 and 14
-filename problems.
-
---
-
-Convert GDB build process to AUTOMAKE.
-
-See also sub-directory configure below.
-
-The current convention is (kind of) to use $(<header>_h) in all
-dependency lists. It isn't done in a consistent way.
-
---
-
- GDB 5.2 - Known Problems
- ========================
-
---
-
- Code Cleanups: General
- ======================
-
-The following are more general cleanups and fixes. They are not tied
-to any specific release.
-
-
- New Features and Fixes
- ======================
-
-These are harder than cleanups but easier than work involving
-fundamental architectural change.
-
---
-
- Language Support
- ================
-
-New languages come onto the scene all the time.
-
---
-
-Re: Various C++ things
-
-RTTI for g++ should be using the typeinfo functions rather than the
-vtables. The typeinfo functions are always at offset 4 from the
-beginning of the vtable, and are always right. The vtables will have
-weird names like E::VB sometimes. The typeinfo function will always
-be "E type_info function", or somesuch.
-
-value_virtual_fn_field needs to be fixed so there are no failures for
-virtual functions for C++ using g++.
-
-Testsuite cases are the major priority right now for C++ support,
-since i have to make a lot of changes that could potentially break
-each other.
-
---
-
-
- Symbol Support
- ==============
-
---
-
-Investiagate ways of reducing memory.
-
---
-
-Investigate ways of improving load time.
-
---
-
- Testsuite Support
- =================
-
-There are never to many testcases.
-
---
-
-Better thread testsuite.
-
---
-
-Better C++ testsuite.
-
---
-
- Architectural Changes: General
- ==============================
-
-These are harder than simple cleanups / fixes and, consequently
-involve more work. Typically an Architectural Change will be broken
-down into a more digestible set of cleanups and fixes.
-
---
-
- Architectural Change: Multi-arch et al.
- =======================================
-
-The long term objective is to remove all assumptions that there is a
-single target with a single address space with a single instruction
-set architecture and single application binary interface.
-
-This is an ongoing effort. The first milestone is to enable
-``multi-arch'' where by all architectural decisions are made at
-runtime.
-
-It should be noted that ``gdbarch'' is really ``gdbabi'' and
-``gdbisa''. Once things are multi-arched breaking that down correctly
-will become much easier.
-
---
-
- Architectural Change: MI, LIBGDB and scripting languages
- ========================================================
-
-See also architectural changes related to the event loop. LIBGDB
-can't be finished until there is a generic event loop being used by
-all targets.
-
-The long term objective is it to be possible to integrate GDB into
-scripting languages.
-
---
-
- Architectural Change: Async
- ===========================
-
-While GDB uses an event loop when prompting the user for input. That
-event loop is not exploited by targets when they allow the target
-program to continue. Typically targets still block in (target_wait())
-until the program again halts.
-
-The closest a target comes to supporting full asynchronous mode are
-the remote targets ``async'' and ``extended-async''.
-
---
-
-# Local Variables:
-# mode: text
-# End:
diff --git a/contrib/gdb/gdb/abug-rom.c b/contrib/gdb/gdb/abug-rom.c
deleted file mode 100644
index 543f70213f45..000000000000
--- a/contrib/gdb/gdb/abug-rom.c
+++ /dev/null
@@ -1,182 +0,0 @@
-/* Remote debugging interface for ABug Rom monitor for GDB, the GNU debugger.
- Copyright 1995, 1996, 1998, 1999, 2000, 2001
- Free Software Foundation, Inc.
-
- Written by Rob Savoye of Cygnus Support
-
- This file is part of GDB.
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA. */
-
-#include "defs.h"
-#include "gdbcore.h"
-#include "target.h"
-#include "monitor.h"
-#include "serial.h"
-#include "regcache.h"
-
-#include "m68k-tdep.h"
-
-/* Prototypes for local functions. */
-
-static void abug_open (char *args, int from_tty);
-
-static void
-abug_supply_register (char *regname, int regnamelen, char *val, int vallen)
-{
- int regno;
-
- if (regnamelen != 2)
- return;
-
- switch (regname[0])
- {
- case 'S':
- if (regname[1] != 'R')
- return;
- regno = PS_REGNUM;
- break;
- case 'P':
- if (regname[1] != 'C')
- return;
- regno = PC_REGNUM;
- break;
- case 'D':
- if (regname[1] < '0' || regname[1] > '7')
- return;
- regno = regname[1] - '0' + M68K_D0_REGNUM;
- break;
- case 'A':
- if (regname[1] < '0' || regname[1] > '7')
- return;
- regno = regname[1] - '0' + M68K_A0_REGNUM;
- break;
- default:
- return;
- }
-
- monitor_supply_register (regno, val);
-}
-
-/*
- * This array of registers needs to match the indexes used by GDB. The
- * whole reason this exists is because the various ROM monitors use
- * different names than GDB does, and don't support all the
- * registers either. So, typing "info reg sp" becomes an "A7".
- */
-
-static const char *
-abug_regname (int index)
-{
- static char *regnames[] =
- {
- "D0", "D1", "D2", "D3", "D4", "D5", "D6", "D7",
- "A0", "A1", "A2", "A3", "A4", "A5", "A6", "A7",
- "PC",
- };
-
- if ((index >= (sizeof (regnames) / sizeof (regnames[0])))
- || (index < 0) || (index >= NUM_REGS))
- return NULL;
- else
- return regnames[index];
-}
-
-/*
- * Define the monitor command strings. Since these are passed directly
- * through to a printf style function, we need can include formatting
- * strings. We also need a CR or LF on the end.
- */
-
-static struct target_ops abug_ops;
-
-static char *abug_inits[] =
-{"\r", NULL};
-
-static struct monitor_ops abug_cmds;
-
-static void
-init_abug_cmds (void)
-{
- abug_cmds.flags = MO_CLR_BREAK_USES_ADDR;
- abug_cmds.init = abug_inits; /* Init strings */
- abug_cmds.cont = "g\r"; /* continue command */
- abug_cmds.step = "t\r"; /* single step */
- abug_cmds.stop = NULL; /* interrupt command */
- abug_cmds.set_break = "br %x\r"; /* set a breakpoint */
- abug_cmds.clr_break = "nobr %x\r"; /* clear a breakpoint */
- abug_cmds.clr_all_break = "nobr\r"; /* clear all breakpoints */
- abug_cmds.fill = "bf %x:%x %x;b\r"; /* fill (start count val) */
- abug_cmds.setmem.cmdb = "ms %x %02x\r"; /* setmem.cmdb (addr, value) */
- abug_cmds.setmem.cmdw = "ms %x %04x\r"; /* setmem.cmdw (addr, value) */
- abug_cmds.setmem.cmdl = "ms %x %08x\r"; /* setmem.cmdl (addr, value) */
- abug_cmds.setmem.cmdll = NULL; /* setmem.cmdll (addr, value) */
- abug_cmds.setmem.resp_delim = NULL; /* setreg.resp_delim */
- abug_cmds.setmem.term = NULL; /* setreg.term */
- abug_cmds.setmem.term_cmd = NULL; /* setreg.term_cmd */
- abug_cmds.getmem.cmdb = "md %x:%x;b\r"; /* getmem.cmdb (addr, len) */
- abug_cmds.getmem.cmdw = "md %x:%x;b\r"; /* getmem.cmdw (addr, len) */
- abug_cmds.getmem.cmdl = "md %x:%x;b\r"; /* getmem.cmdl (addr, len) */
- abug_cmds.getmem.cmdll = NULL; /* getmem.cmdll (addr, len) */
- abug_cmds.getmem.resp_delim = " "; /* getmem.resp_delim */
- abug_cmds.getmem.term = NULL; /* getmem.term */
- abug_cmds.getmem.term_cmd = NULL; /* getmem.term_cmd */
- abug_cmds.setreg.cmd = "rm %s %x\r"; /* setreg.cmd (name, value) */
- abug_cmds.setreg.resp_delim = "="; /* setreg.resp_delim */
- abug_cmds.setreg.term = "? "; /* setreg.term */
- abug_cmds.setreg.term_cmd = ".\r"; /* setreg.term_cmd */
- abug_cmds.getreg.cmd = "rm %s\r"; /* getreg.cmd (name) */
- abug_cmds.getreg.resp_delim = "="; /* getreg.resp_delim */
- abug_cmds.getreg.term = "? "; /* getreg.term */
- abug_cmds.getreg.term_cmd = ".\r"; /* getreg.term_cmd */
- abug_cmds.dump_registers = "rd\r"; /* dump_registers */
- abug_cmds.register_pattern = "\\(\\w+\\) +=\\([0-9a-fA-F]+\\b\\)"; /* register_pattern */
- abug_cmds.supply_register = abug_supply_register; /* supply_register */
- abug_cmds.load_routine = NULL; /* load_routine (defaults to SRECs) */
- abug_cmds.load = "lo 0\r"; /* download command */
- abug_cmds.loadresp = "\n"; /* load response */
- abug_cmds.prompt = "135Bug>"; /* monitor command prompt */
- abug_cmds.line_term = "\r"; /* end-of-line terminator */
- abug_cmds.cmd_end = NULL; /* optional command terminator */
- abug_cmds.target = &abug_ops; /* target operations */
- abug_cmds.stopbits = SERIAL_1_STOPBITS; /* number of stop bits */
- abug_cmds.regnames = NULL; /* registers names */
- abug_cmds.regname = abug_regname;
- abug_cmds.magic = MONITOR_OPS_MAGIC; /* magic */
-};
-
-static void
-abug_open (char *args, int from_tty)
-{
- monitor_open (args, &abug_cmds, from_tty);
-}
-
-extern initialize_file_ftype _initialize_abug_rom; /* -Wmissing-prototypes */
-
-void
-_initialize_abug_rom (void)
-{
- init_abug_cmds ();
- init_monitor_ops (&abug_ops);
-
- abug_ops.to_shortname = "abug";
- abug_ops.to_longname = "ABug monitor";
- abug_ops.to_doc = "Debug via the ABug monitor.\n\
-Specify the serial device it is connected to (e.g. /dev/ttya).";
- abug_ops.to_open = abug_open;
-
- add_target (&abug_ops);
-}
diff --git a/contrib/gdb/gdb/acinclude.m4 b/contrib/gdb/gdb/acinclude.m4
deleted file mode 100644
index a85ce024f2f3..000000000000
--- a/contrib/gdb/gdb/acinclude.m4
+++ /dev/null
@@ -1,998 +0,0 @@
-dnl written by Rob Savoye <rob@cygnus.com> for Cygnus Support
-dnl major rewriting for Tcl 7.5 by Don Libes <libes@nist.gov>
-
-dnl gdb/configure.in uses BFD_NEED_DECLARATION, so get its definition.
-sinclude(../bfd/acinclude.m4)
-
-dnl This gets the standard macros, like the TCL, TK, etc ones.
-sinclude(../config/acinclude.m4)
-
-dnl CYGNUS LOCAL: This gets the right posix flag for gcc
-AC_DEFUN(CY_AC_TCL_LYNX_POSIX,
-[AC_REQUIRE([AC_PROG_CC])AC_REQUIRE([AC_PROG_CPP])
-AC_MSG_CHECKING([if running LynxOS])
-AC_CACHE_VAL(ac_cv_os_lynx,
-[AC_EGREP_CPP(yes,
-[/*
- * The old Lynx "cc" only defines "Lynx", but the newer one uses "__Lynx__"
- */
-#if defined(__Lynx__) || defined(Lynx)
-yes
-#endif
-], ac_cv_os_lynx=yes, ac_cv_os_lynx=no)])
-#
-if test "$ac_cv_os_lynx" = "yes" ; then
- AC_MSG_RESULT(yes)
- AC_DEFINE(LYNX)
- AC_MSG_CHECKING([whether -mposix or -X is available])
- AC_CACHE_VAL(ac_cv_c_posix_flag,
- [AC_TRY_COMPILE(,[
- /*
- * This flag varies depending on how old the compiler is.
- * -X is for the old "cc" and "gcc" (based on 1.42).
- * -mposix is for the new gcc (at least 2.5.8).
- */
- #if defined(__GNUC__) && __GNUC__ >= 2
- choke me
- #endif
- ], ac_cv_c_posix_flag=" -mposix", ac_cv_c_posix_flag=" -X")])
- CC="$CC $ac_cv_c_posix_flag"
- AC_MSG_RESULT($ac_cv_c_posix_flag)
- else
- AC_MSG_RESULT(no)
-fi
-])
-
-#
-# Sometimes the native compiler is a bogus stub for gcc or /usr/ucb/cc. This
-# makes configure think it's cross compiling. If --target wasn't used, then
-# we can't configure, so something is wrong. We don't use the cache
-# here cause if somebody fixes their compiler install, we want this to work.
-AC_DEFUN(CY_AC_C_WORKS,
-[# If we cannot compile and link a trivial program, we can't expect anything to work
-AC_MSG_CHECKING(whether the compiler ($CC) actually works)
-AC_TRY_COMPILE(, [/* don't need anything here */],
- c_compiles=yes, c_compiles=no)
-
-AC_TRY_LINK(, [/* don't need anything here */],
- c_links=yes, c_links=no)
-
-if test x"${c_compiles}" = x"no" ; then
- AC_MSG_ERROR(the native compiler is broken and won't compile.)
-fi
-
-if test x"${c_links}" = x"no" ; then
- AC_MSG_ERROR(the native compiler is broken and won't link.)
-fi
-AC_MSG_RESULT(yes)
-])
-
-AC_DEFUN(CY_AC_PATH_TCLH, [
-#
-# Ok, lets find the tcl source trees so we can use the headers
-# Warning: transition of version 9 to 10 will break this algorithm
-# because 10 sorts before 9. We also look for just tcl. We have to
-# be careful that we don't match stuff like tclX by accident.
-# the alternative search directory is involked by --with-tclinclude
-#
-
-no_tcl=true
-AC_MSG_CHECKING(for Tcl private headers. dir=${configdir})
-AC_ARG_WITH(tclinclude, [ --with-tclinclude=DIR Directory where tcl private headers are], with_tclinclude=${withval})
-AC_CACHE_VAL(ac_cv_c_tclh,[
-# first check to see if --with-tclinclude was specified
-if test x"${with_tclinclude}" != x ; then
- if test -f ${with_tclinclude}/tclInt.h ; then
- ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
- elif test -f ${with_tclinclude}/generic/tclInt.h ; then
- ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
- else
- AC_MSG_ERROR([${with_tclinclude} directory doesn't contain private headers])
- fi
-fi
-
-# next check if it came with Tcl configuration file
-if test x"${ac_cv_c_tclconfig}" = x ; then
- if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
- ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
- fi
-fi
-
-# next check in private source directory
-#
-# since ls returns lowest version numbers first, reverse its output
-if test x"${ac_cv_c_tclh}" = x ; then
- for i in \
- ${srcdir}/../tcl \
- `ls -dr ${srcdir}/../tcl[[7-9]]* 2>/dev/null` \
- ${srcdir}/../../tcl \
- `ls -dr ${srcdir}/../../tcl[[7-9]]* 2>/dev/null` \
- ${srcdir}/../../../tcl \
- `ls -dr ${srcdir}/../../../tcl[[7-9]]* 2>/dev/null ` ; do
- if test -f $i/generic/tclInt.h ; then
- ac_cv_c_tclh=`(cd $i/generic; pwd)`
- break
- fi
- done
-fi
-# finally check in a few common install locations
-#
-# since ls returns lowest version numbers first, reverse its output
-if test x"${ac_cv_c_tclh}" = x ; then
- for i in \
- `ls -dr /usr/local/src/tcl[[7-9]]* 2>/dev/null` \
- `ls -dr /usr/local/lib/tcl[[7-9]]* 2>/dev/null` \
- /usr/local/src/tcl \
- /usr/local/lib/tcl \
- ${prefix}/include ; do
- if test -f $i/generic/tclInt.h ; then
- ac_cv_c_tclh=`(cd $i/generic; pwd)`
- break
- fi
- done
-fi
-# see if one is installed
-if test x"${ac_cv_c_tclh}" = x ; then
- AC_HEADER_CHECK(tclInt.h, ac_cv_c_tclh=installed, ac_cv_c_tclh="")
-fi
-])
-if test x"${ac_cv_c_tclh}" = x ; then
- TCLHDIR="# no Tcl private headers found"
- AC_MSG_ERROR([Can't find Tcl private headers])
-fi
-if test x"${ac_cv_c_tclh}" != x ; then
- no_tcl=""
- if test x"${ac_cv_c_tclh}" = x"installed" ; then
- AC_MSG_RESULT([is installed])
- TCLHDIR=""
- else
- AC_MSG_RESULT([found in ${ac_cv_c_tclh}])
- # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
- TCLHDIR="-I${ac_cv_c_tclh}"
- fi
-fi
-
-AC_SUBST(TCLHDIR)
-])
-
-
-AC_DEFUN(CY_AC_PATH_TCLCONFIG, [
-#
-# Ok, lets find the tcl configuration
-# First, look for one uninstalled.
-# the alternative search directory is invoked by --with-tclconfig
-#
-
-if test x"${no_tcl}" = x ; then
- # we reset no_tcl in case something fails here
- no_tcl=true
- AC_ARG_WITH(tclconfig, [ --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)],
- with_tclconfig=${withval})
- AC_MSG_CHECKING([for Tcl configuration])
- AC_CACHE_VAL(ac_cv_c_tclconfig,[
-
- # First check to see if --with-tclconfig was specified.
- if test x"${with_tclconfig}" != x ; then
- if test -f "${with_tclconfig}/tclConfig.sh" ; then
- ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
- else
- AC_MSG_ERROR([${with_tclconfig} directory doesn't contain tclConfig.sh])
- fi
- fi
-
- # then check for a private Tcl installation
- if test x"${ac_cv_c_tclconfig}" = x ; then
- for i in \
- ../tcl \
- `ls -dr ../tcl[[7-9]]* 2>/dev/null` \
- ../../tcl \
- `ls -dr ../../tcl[[7-9]]* 2>/dev/null` \
- ../../../tcl \
- `ls -dr ../../../tcl[[7-9]]* 2>/dev/null` ; do
- if test -f "$i/${configdir}/tclConfig.sh" ; then
- ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
- break
- fi
- done
- fi
- # check in a few common install locations
- if test x"${ac_cv_c_tclconfig}" = x ; then
- for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
- if test -f "$i/tclConfig.sh" ; then
- ac_cv_c_tclconfig=`(cd $i; pwd)`
- break
- fi
- done
- fi
- # check in a few other private locations
- if test x"${ac_cv_c_tclconfig}" = x ; then
- for i in \
- ${srcdir}/../tcl \
- `ls -dr ${srcdir}/../tcl[[7-9]]* 2>/dev/null` ; do
- if test -f "$i/${configdir}/tclConfig.sh" ; then
- ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
- break
- fi
- done
- fi
- ])
- if test x"${ac_cv_c_tclconfig}" = x ; then
- TCLCONFIG="# no Tcl configs found"
- AC_MSG_WARN(Can't find Tcl configuration definitions)
- else
- no_tcl=
- TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
- AC_MSG_RESULT(found $TCLCONFIG)
- fi
-fi
-])
-
-# Defined as a separate macro so we don't have to cache the values
-# from PATH_TCLCONFIG (because this can also be cached).
-AC_DEFUN(CY_AC_LOAD_TCLCONFIG, [
- . $TCLCONFIG
-
- AC_SUBST(TCL_VERSION)
- AC_SUBST(TCL_MAJOR_VERSION)
- AC_SUBST(TCL_MINOR_VERSION)
- AC_SUBST(TCL_CC)
- AC_SUBST(TCL_DEFS)
-
-dnl not used, don't export to save symbols
-dnl AC_SUBST(TCL_LIB_FILE)
-
-dnl don't export, not used outside of configure
-dnl AC_SUBST(TCL_LIBS)
-dnl not used, don't export to save symbols
-dnl AC_SUBST(TCL_PREFIX)
-
-dnl not used, don't export to save symbols
-dnl AC_SUBST(TCL_EXEC_PREFIX)
-
- AC_SUBST(TCL_SHLIB_CFLAGS)
- AC_SUBST(TCL_SHLIB_LD)
-dnl don't export, not used outside of configure
- AC_SUBST(TCL_SHLIB_LD_LIBS)
- AC_SUBST(TCL_SHLIB_SUFFIX)
-dnl not used, don't export to save symbols
- AC_SUBST(TCL_DL_LIBS)
- AC_SUBST(TCL_LD_FLAGS)
-dnl don't export, not used outside of configure
- AC_SUBST(TCL_LD_SEARCH_FLAGS)
- AC_SUBST(TCL_CC_SEARCH_FLAGS)
- AC_SUBST(TCL_COMPAT_OBJS)
- AC_SUBST(TCL_RANLIB)
- AC_SUBST(TCL_BUILD_LIB_SPEC)
- AC_SUBST(TCL_LIB_SPEC)
- AC_SUBST(TCL_LIB_VERSIONS_OK)
-
-dnl not used, don't export to save symbols
-dnl AC_SUBST(TCL_SHARED_LIB_SUFFIX)
-
-dnl not used, don't export to save symbols
-dnl AC_SUBST(TCL_UNSHARED_LIB_SUFFIX)
-])
-
-# Warning: Tk definitions are very similar to Tcl definitions but
-# are not precisely the same. There are a couple of differences,
-# so don't do changes to Tcl thinking you can cut and paste it do
-# the Tk differences and later simply substitute "Tk" for "Tcl".
-# Known differences:
-# - Acceptable Tcl major version #s is 7-9 while Tk is 4-9
-# - Searching for Tcl includes looking for tclInt.h, Tk looks for tk.h
-# - Computing major/minor versions is different because Tk depends on
-# headers to Tcl, Tk, and X.
-# - Symbols in tkConfig.sh are different than tclConfig.sh
-# - Acceptable for Tk to be missing but not Tcl.
-
-AC_DEFUN(CY_AC_PATH_TKH, [
-#
-# Ok, lets find the tk source trees so we can use the headers
-# If the directory (presumably symlink) named "tk" exists, use that one
-# in preference to any others. Same logic is used when choosing library
-# and again with Tcl. The search order is the best place to look first, then in
-# decreasing significance. The loop breaks if the trigger file is found.
-# Note the gross little conversion here of srcdir by cd'ing to the found
-# directory. This converts the path from a relative to an absolute, so
-# recursive cache variables for the path will work right. We check all
-# the possible paths in one loop rather than many seperate loops to speed
-# things up.
-# the alternative search directory is involked by --with-tkinclude
-#
-no_tk=true
-AC_MSG_CHECKING(for Tk private headers)
-AC_ARG_WITH(tkinclude, [ --with-tkinclude=DIR Directory where tk private headers are], with_tkinclude=${withval})
-AC_CACHE_VAL(ac_cv_c_tkh,[
-# first check to see if --with-tkinclude was specified
-if test x"${with_tkinclude}" != x ; then
- if test -f ${with_tkinclude}/tk.h ; then
- ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
- elif test -f ${with_tkinclude}/generic/tk.h ; then
- ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
- else
- AC_MSG_ERROR([${with_tkinclude} directory doesn't contain private headers])
- fi
-fi
-
-# next check if it came with Tk configuration file
-if test x"${ac_cv_c_tkconfig}" = x ; then
- if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
- ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
- fi
-fi
-
-# next check in private source directory
-#
-# since ls returns lowest version numbers first, reverse its output
-if test x"${ac_cv_c_tkh}" = x ; then
- for i in \
- ${srcdir}/../tk \
- `ls -dr ${srcdir}/../tk[[4-9]]* 2>/dev/null` \
- ${srcdir}/../../tk \
- `ls -dr ${srcdir}/../../tk[[4-9]]* 2>/dev/null` \
- ${srcdir}/../../../tk \
- `ls -dr ${srcdir}/../../../tk[[4-9]]* 2>/dev/null ` ; do
- if test -f $i/generic/tk.h ; then
- ac_cv_c_tkh=`(cd $i/generic; pwd)`
- break
- fi
- done
-fi
-# finally check in a few common install locations
-#
-# since ls returns lowest version numbers first, reverse its output
-if test x"${ac_cv_c_tkh}" = x ; then
- for i in \
- `ls -dr /usr/local/src/tk[[4-9]]* 2>/dev/null` \
- `ls -dr /usr/local/lib/tk[[4-9]]* 2>/dev/null` \
- /usr/local/src/tk \
- /usr/local/lib/tk \
- ${prefix}/include ; do
- if test -f $i/generic/tk.h ; then
- ac_cv_c_tkh=`(cd $i/generic; pwd)`
- break
- fi
- done
-fi
-# see if one is installed
-if test x"${ac_cv_c_tkh}" = x ; then
- AC_HEADER_CHECK(tk.h, ac_cv_c_tkh=installed, ac_cv_c_tkh="")
-fi
-])
-if test x"${ac_cv_c_tkh}" != x ; then
- no_tk=""
- if test x"${ac_cv_c_tkh}" = x"installed" ; then
- AC_MSG_RESULT([is installed])
- TKHDIR=""
- else
- AC_MSG_RESULT([found in ${ac_cv_c_tkh}])
- # this hack is cause the TKHDIR won't print if there is a "-I" in it.
- TKHDIR="-I${ac_cv_c_tkh}"
- fi
-else
- TKHDIR="# no Tk directory found"
- AC_MSG_WARN([Can't find Tk private headers])
- no_tk=true
-fi
-
-AC_SUBST(TKHDIR)
-])
-
-
-AC_DEFUN(CY_AC_PATH_TKCONFIG, [
-#
-# Ok, lets find the tk configuration
-# First, look for one uninstalled.
-# the alternative search directory is invoked by --with-tkconfig
-#
-
-if test x"${no_tk}" = x ; then
- # we reset no_tk in case something fails here
- no_tk=true
- AC_ARG_WITH(tkconfig, [ --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)],
- with_tkconfig=${withval})
- AC_MSG_CHECKING([for Tk configuration])
- AC_CACHE_VAL(ac_cv_c_tkconfig,[
-
- # First check to see if --with-tkconfig was specified.
- if test x"${with_tkconfig}" != x ; then
- if test -f "${with_tkconfig}/tkConfig.sh" ; then
- ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
- else
- AC_MSG_ERROR([${with_tkconfig} directory doesn't contain tkConfig.sh])
- fi
- fi
-
- # then check for a private Tk library
- if test x"${ac_cv_c_tkconfig}" = x ; then
- for i in \
- ../tk \
- `ls -dr ../tk[[4-9]]* 2>/dev/null` \
- ../../tk \
- `ls -dr ../../tk[[4-9]]* 2>/dev/null` \
- ../../../tk \
- `ls -dr ../../../tk[[4-9]]* 2>/dev/null` ; do
- if test -f "$i/${configdir}/tkConfig.sh" ; then
- ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
- break
- fi
- done
- fi
- # check in a few common install locations
- if test x"${ac_cv_c_tkconfig}" = x ; then
- for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
- if test -f "$i/tkConfig.sh" ; then
- ac_cv_c_tkconfig=`(cd $i; pwd)`
- break
- fi
- done
- fi
- # check in a few other private locations
- if test x"${ac_cv_c_tkconfig}" = x ; then
- for i in \
- ${srcdir}/../tk \
- `ls -dr ${srcdir}/../tk[[4-9]]* 2>/dev/null` ; do
- if test -f "$i/${configdir}/tkConfig.sh" ; then
- ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
- break
- fi
- done
- fi
- ])
- if test x"${ac_cv_c_tkconfig}" = x ; then
- TKCONFIG="# no Tk configs found"
- AC_MSG_WARN(Can't find Tk configuration definitions)
- else
- no_tk=
- TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
- AC_MSG_RESULT(found $TKCONFIG)
- fi
-fi
-
-])
-
-# Defined as a separate macro so we don't have to cache the values
-# from PATH_TKCONFIG (because this can also be cached).
-AC_DEFUN(CY_AC_LOAD_TKCONFIG, [
- if test -f "$TKCONFIG" ; then
- . $TKCONFIG
- fi
-
- AC_SUBST(TK_VERSION)
-dnl not actually used, don't export to save symbols
-dnl AC_SUBST(TK_MAJOR_VERSION)
-dnl AC_SUBST(TK_MINOR_VERSION)
- AC_SUBST(TK_DEFS)
-
-dnl not used, don't export to save symbols
- dnl AC_SUBST(TK_LIB_FILE)
-
-dnl not used outside of configure
-dnl AC_SUBST(TK_LIBS)
-dnl not used, don't export to save symbols
-dnl AC_SUBST(TK_PREFIX)
-
-dnl not used, don't export to save symbols
-dnl AC_SUBST(TK_EXEC_PREFIX)
-
- AC_SUBST(TK_BUILD_INCLUDES)
- AC_SUBST(TK_XINCLUDES)
- AC_SUBST(TK_XLIBSW)
- AC_SUBST(TK_BUILD_LIB_SPEC)
- AC_SUBST(TK_LIB_SPEC)
-])
-
-# check for Itcl headers.
-
-AC_DEFUN(CY_AC_PATH_ITCLCONFIG, [
-#
-# Ok, lets find the itcl configuration
-# First, look for one uninstalled.
-# the alternative search directory is invoked by --with-itclconfig
-#
-
-if test x"${no_itcl}" = x ; then
- # we reset no_itcl in case something fails here
- no_itcl=true
- AC_ARG_WITH(itclconfig, [ --with-itclconfig Directory containing itcl configuration (itclConfig.sh)],
- with_itclconfig=${withval})
- AC_MSG_CHECKING([for Itcl configuration])
- AC_CACHE_VAL(ac_cv_c_itclconfig,[
-
- # First check to see if --with-itclconfig was specified.
- if test x"${with_itclconfig}" != x ; then
- if test -f "${with_itclconfig}/itclConfig.sh" ; then
- ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
- else
- AC_MSG_ERROR([${with_itclconfig} directory doesn't contain itclConfig.sh])
- fi
- fi
-
- # then check for a private Itcl library
- if test x"${ac_cv_c_itclconfig}" = x ; then
- for i in \
- ../itcl/itcl \
- `ls -dr ../itcl[[4-9]]*/itcl 2>/dev/null` \
- ../../itcl \
- `ls -dr ../../itcl[[4-9]]*/itcl 2>/dev/null` \
- ../../../itcl \
- `ls -dr ../../../itcl[[4-9]]*/itcl 2>/dev/null` ; do
- if test -f "$i/itclConfig.sh" ; then
- ac_cv_c_itclconfig=`(cd $i; pwd)`
- break
- fi
- done
- fi
- # check in a few common install locations
- if test x"${ac_cv_c_itclconfig}" = x ; then
- for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
- if test -f "$i/itclConfig.sh" ; then
- ac_cv_c_itclconfig=`(cd $i; pwd)`
- break
- fi
- done
- fi
- # check in a few other private locations
- if test x"${ac_cv_c_itclconfig}" = x ; then
- for i in \
- ${srcdir}/../itcl/itcl \
- `ls -dr ${srcdir}/../itcl[[4-9]]*/itcl 2>/dev/null` ; do
- if test -f "$i/itclConfig.sh" ; then
- ac_cv_c_itclconfig=`(cd $i; pwd)`
- break
- fi
- done
- fi
- ])
- if test x"${ac_cv_c_itclconfig}" = x ; then
- ITCLCONFIG="# no Itcl configs found"
- AC_MSG_WARN(Can't find Itcl configuration definitions)
- else
- no_itcl=
- ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
- AC_MSG_RESULT(found $ITCLCONFIG)
- fi
-fi
-])
-
-# Defined as a separate macro so we don't have to cache the values
-# from PATH_ITCLCONFIG (because this can also be cached).
-AC_DEFUN(CY_AC_LOAD_ITCLCONFIG, [
- if test -f "$ITCLCONFIG" ; then
- . $ITCLCONFIG
- fi
-
- AC_SUBST(ITCL_VERSION)
-dnl not actually used, don't export to save symbols
-dnl AC_SUBST(ITCL_MAJOR_VERSION)
-dnl AC_SUBST(ITCL_MINOR_VERSION)
- AC_SUBST(ITCL_DEFS)
-
-dnl not used, don't export to save symbols
- dnl AC_SUBST(ITCL_LIB_FILE)
-
-dnl not used outside of configure
-dnl AC_SUBST(ITCL_LIBS)
-dnl not used, don't export to save symbols
-dnl AC_SUBST(ITCL_PREFIX)
-
-dnl not used, don't export to save symbols
-dnl AC_SUBST(ITCL_EXEC_PREFIX)
-
- AC_SUBST(ITCL_BUILD_INCLUDES)
- AC_SUBST(ITCL_BUILD_LIB_SPEC)
- AC_SUBST(ITCL_LIB_SPEC)
-])
-
-# check for Itcl headers.
-
-AC_DEFUN(CY_AC_PATH_ITCLH, [
-AC_MSG_CHECKING(for Itcl private headers. srcdir=${srcdir})
-if test x"${ac_cv_c_itclh}" = x ; then
- for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
- if test -f $i/generic/itcl.h ; then
- ac_cv_c_itclh=`(cd $i/generic; pwd)`
- break
- fi
- done
-fi
-if test x"${ac_cv_c_itclh}" = x ; then
- ITCLHDIR="# no Itcl private headers found"
- AC_MSG_ERROR([Can't find Itcl private headers])
-fi
-if test x"${ac_cv_c_itclh}" != x ; then
- ITCLHDIR="-I${ac_cv_c_itclh}"
-fi
-# should always be here
-# ITCLLIB="../itcl/itcl/unix/libitcl.a"
-AC_SUBST(ITCLHDIR)
-#AC_SUBST(ITCLLIB)
-])
-
-
-AC_DEFUN(CY_AC_PATH_ITKCONFIG, [
-#
-# Ok, lets find the itk configuration
-# First, look for one uninstalled.
-# the alternative search directory is invoked by --with-itkconfig
-#
-
-if test x"${no_itk}" = x ; then
- # we reset no_itk in case something fails here
- no_itk=true
- AC_ARG_WITH(itkconfig, [ --with-itkconfig Directory containing itk configuration (itkConfig.sh)],
- with_itkconfig=${withval})
- AC_MSG_CHECKING([for Itk configuration])
- AC_CACHE_VAL(ac_cv_c_itkconfig,[
-
- # First check to see if --with-itkconfig was specified.
- if test x"${with_itkconfig}" != x ; then
- if test -f "${with_itkconfig}/itkConfig.sh" ; then
- ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
- else
- AC_MSG_ERROR([${with_itkconfig} directory doesn't contain itkConfig.sh])
- fi
- fi
-
- # then check for a private Itk library
- if test x"${ac_cv_c_itkconfig}" = x ; then
- for i in \
- ../itcl/itk \
- `ls -dr ../itcl[[4-9]]*/itk 2>/dev/null` \
- ../../itk \
- `ls -dr ../../itcl[[4-9]]*/itk 2>/dev/null` \
- ../../../itk \
- `ls -dr ../../../itcl[[4-9]]*/itk 2>/dev/null` ; do
- if test -f "$i/itkConfig.sh" ; then
- ac_cv_c_itkconfig=`(cd $i; pwd)`
- break
- fi
- done
- fi
- # check in a few common install locations
- if test x"${ac_cv_c_itkconfig}" = x ; then
- for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
- if test -f "$i/itkConfig.sh" ; then
- ac_cv_c_itkconfig=`(cd $i; pwd)`
- break
- fi
- done
- fi
- # check in a few other private locations
- if test x"${ac_cv_c_itkconfig}" = x ; then
- for i in \
- ${srcdir}/../itcl/itk \
- `ls -dr ${srcdir}/../itcl[[4-9]]*/itk 2>/dev/null` ; do
- if test -f "$i/itkConfig.sh" ; then
- ac_cv_c_itkconfig=`(cd $i; pwd)`
- break
- fi
- done
- fi
- ])
- if test x"${ac_cv_c_itkconfig}" = x ; then
- ITKCONFIG="# no Itk configs found"
- AC_MSG_WARN(Can't find Itk configuration definitions)
- else
- no_itk=
- ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
- AC_MSG_RESULT(found $ITKCONFIG)
- fi
-fi
-
-])
-
-# Defined as a separate macro so we don't have to cache the values
-# from PATH_ITKCONFIG (because this can also be cached).
-AC_DEFUN(CY_AC_LOAD_ITKCONFIG, [
- if test -f "$ITKCONFIG" ; then
- . $ITKCONFIG
- fi
-
- AC_SUBST(ITK_VERSION)
-dnl not actually used, don't export to save symbols
-dnl AC_SUBST(ITK_MAJOR_VERSION)
-dnl AC_SUBST(ITK_MINOR_VERSION)
- AC_SUBST(ITK_DEFS)
-
-dnl not used, don't export to save symbols
- dnl AC_SUBST(ITK_LIB_FILE)
-
-dnl not used outside of configure
-dnl AC_SUBST(ITK_LIBS)
-dnl not used, don't export to save symbols
-dnl AC_SUBST(ITK_PREFIX)
-
-dnl not used, don't export to save symbols
-dnl AC_SUBST(ITK_EXEC_PREFIX)
-
- AC_SUBST(ITK_BUILD_INCLUDES)
- AC_SUBST(ITK_BUILD_LIB_SPEC)
- AC_SUBST(ITK_LIB_SPEC)
-])
-
-AC_DEFUN(CY_AC_PATH_ITKH, [
-AC_MSG_CHECKING(for Itk private headers. srcdir=${srcdir})
-if test x"${ac_cv_c_itkh}" = x ; then
- for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
- if test -f $i/generic/itk.h ; then
- ac_cv_c_itkh=`(cd $i/generic; pwd)`
- break
- fi
- done
-fi
-if test x"${ac_cv_c_itkh}" = x ; then
- ITKHDIR="# no Itk private headers found"
- AC_MSG_ERROR([Can't find Itk private headers])
-fi
-if test x"${ac_cv_c_itkh}" != x ; then
- ITKHDIR="-I${ac_cv_c_itkh}"
-fi
-# should always be here
-# ITKLIB="../itcl/itk/unix/libitk.a"
-AC_SUBST(ITKHDIR)
-#AC_SUBST(ITKLIB)
-])
-
-
-dnl sinclude(../gettext.m4) already included by bfd/acinclude.m4
-dnl The lines below arrange for aclocal not to bring gettext.m4's
-dnl CY_GNU_GETTEXT into aclocal.m4.
-ifelse(yes,no,[
-AC_DEFUN([CY_GNU_GETTEXT],)
-])
-
-## ----------------------------------------- ##
-## ANSIfy the C compiler whenever possible. ##
-## From Franc,ois Pinard ##
-## ----------------------------------------- ##
-
-# Copyright 1996, 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-# 02111-1307, USA.
-
-# serial 1
-
-# @defmac AC_PROG_CC_STDC
-# @maindex PROG_CC_STDC
-# @ovindex CC
-# If the C compiler in not in ANSI C mode by default, try to add an option
-# to output variable @code{CC} to make it so. This macro tries various
-# options that select ANSI C on some system or another. It considers the
-# compiler to be in ANSI C mode if it handles function prototypes correctly.
-#
-# If you use this macro, you should check after calling it whether the C
-# compiler has been set to accept ANSI C; if not, the shell variable
-# @code{am_cv_prog_cc_stdc} is set to @samp{no}. If you wrote your source
-# code in ANSI C, you can make an un-ANSIfied copy of it by using the
-# program @code{ansi2knr}, which comes with Ghostscript.
-# @end defmac
-
-AC_DEFUN([AM_PROG_CC_STDC],
-[AC_REQUIRE([AC_PROG_CC])
-AC_BEFORE([$0], [AC_C_INLINE])
-AC_BEFORE([$0], [AC_C_CONST])
-dnl Force this before AC_PROG_CPP. Some cpp's, eg on HPUX, require
-dnl a magic option to avoid problems with ANSI preprocessor commands
-dnl like #elif.
-dnl FIXME: can't do this because then AC_AIX won't work due to a
-dnl circular dependency.
-dnl AC_BEFORE([$0], [AC_PROG_CPP])
-AC_MSG_CHECKING([for ${CC-cc} option to accept ANSI C])
-AC_CACHE_VAL(am_cv_prog_cc_stdc,
-[am_cv_prog_cc_stdc=no
-ac_save_CC="$CC"
-# Don't try gcc -ansi; that turns off useful extensions and
-# breaks some systems' header files.
-# AIX -qlanglvl=ansi
-# Ultrix and OSF/1 -std1
-# HP-UX 10.20 and later -Ae
-# HP-UX older versions -Aa -D_HPUX_SOURCE
-# SVR4 -Xc -D__EXTENSIONS__
-for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
-do
- CC="$ac_save_CC $ac_arg"
- AC_TRY_COMPILE(
-[#include <stdarg.h>
-#include <stdio.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
-struct buf { int x; };
-FILE * (*rcsopen) (struct buf *, struct stat *, int);
-static char *e (p, i)
- char **p;
- int i;
-{
- return p[i];
-}
-static char *f (char * (*g) (char **, int), char **p, ...)
-{
- char *s;
- va_list v;
- va_start (v,p);
- s = g (p, va_arg (v,int));
- va_end (v);
- return s;
-}
-int test (int i, double x);
-struct s1 {int (*f) (int a);};
-struct s2 {int (*f) (double a);};
-int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
-int argc;
-char **argv;
-], [
-return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
-],
-[am_cv_prog_cc_stdc="$ac_arg"; break])
-done
-CC="$ac_save_CC"
-])
-if test -z "$am_cv_prog_cc_stdc"; then
- AC_MSG_RESULT([none needed])
-else
- AC_MSG_RESULT([$am_cv_prog_cc_stdc])
-fi
-case "x$am_cv_prog_cc_stdc" in
- x|xno) ;;
- *) CC="$CC $am_cv_prog_cc_stdc" ;;
-esac
-])
-
-dnl From Bruno Haible.
-
-AC_DEFUN([AM_ICONV],
-[
- dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
- dnl those with the standalone portable GNU libiconv installed).
-
- AC_ARG_WITH([libiconv-prefix],
-[ --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib], [
- for dir in `echo "$withval" | tr : ' '`; do
- if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
- if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
- done
- ])
-
- AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [
- am_cv_func_iconv="no, consider installing GNU libiconv"
- am_cv_lib_iconv=no
- AC_TRY_LINK([#include <stdlib.h>
-#include <iconv.h>],
- [iconv_t cd = iconv_open("","");
- iconv(cd,NULL,NULL,NULL,NULL);
- iconv_close(cd);],
- am_cv_func_iconv=yes)
- if test "$am_cv_func_iconv" != yes; then
- am_save_LIBS="$LIBS"
- LIBS="$LIBS -liconv"
- AC_TRY_LINK([#include <stdlib.h>
-#include <iconv.h>],
- [iconv_t cd = iconv_open("","");
- iconv(cd,NULL,NULL,NULL,NULL);
- iconv_close(cd);],
- am_cv_lib_iconv=yes
- am_cv_func_iconv=yes)
- LIBS="$am_save_LIBS"
- fi
- ])
- if test "$am_cv_func_iconv" = yes; then
- AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
- AC_MSG_CHECKING([for iconv declaration])
- AC_CACHE_VAL(am_cv_proto_iconv, [
- AC_TRY_COMPILE([
-#include <stdlib.h>
-#include <iconv.h>
-extern
-#ifdef __cplusplus
-"C"
-#endif
-#if defined(__STDC__) || defined(__cplusplus)
-size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
-#else
-size_t iconv();
-#endif
-], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")
- am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"])
- am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
- AC_MSG_RESULT([$]{ac_t:-
- }[$]am_cv_proto_iconv)
- AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,
- [Define as const if the declaration of iconv() needs const.])
- fi
- LIBICONV=
- if test "$am_cv_lib_iconv" = yes; then
- LIBICONV="-liconv"
- fi
- AC_SUBST(LIBICONV)
-])
-
-# AC_GNU_SOURCE
-# -------------
-# FIXME: Remove thise once we start using Autoconf 2.5x (x>=4).
-AC_DEFUN([AC_GNU_SOURCE],
-[AC_BEFORE([$0], [AC_TRY_COMPILE])dnl
-AC_BEFORE([$0], [AC_TRY_RUN])dnl
-AC_DEFINE([_GNU_SOURCE])
-])
-
-dnl written by Guido Draheim <guidod@gmx.de>, original by Alexandre Oliva
-dnl Version 1.3 (2001/03/02)
-dnl source http://www.gnu.org/software/ac-archive/Miscellaneous/ac_define_dir.html
-
-AC_DEFUN([AC_DEFINE_DIR], [
- test "x$prefix" = xNONE && prefix="$ac_default_prefix"
- test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
- ac_define_dir=`eval echo [$]$2`
- ac_define_dir=`eval echo [$]ac_define_dir`
- ifelse($3, ,
- AC_DEFINE_UNQUOTED($1, "$ac_define_dir"),
- AC_DEFINE_UNQUOTED($1, "$ac_define_dir", $3))
-])
-
-dnl See whether we need a declaration for a function.
-dnl The result is highly dependent on the INCLUDES passed in, so make sure
-dnl to use a different cache variable name in this macro if it is invoked
-dnl in a different context somewhere else.
-dnl gcc_AC_CHECK_DECL(SYMBOL,
-dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, INCLUDES]]])
-AC_DEFUN(gcc_AC_CHECK_DECL,
-[AC_MSG_CHECKING([whether $1 is declared])
-AC_CACHE_VAL(gcc_cv_have_decl_$1,
-[AC_TRY_COMPILE([$4],
-[#ifndef $1
-char *(*pfn) = (char *(*)) $1 ;
-#endif], eval "gcc_cv_have_decl_$1=yes", eval "gcc_cv_have_decl_$1=no")])
-if eval "test \"`echo '$gcc_cv_have_decl_'$1`\" = yes"; then
- AC_MSG_RESULT(yes) ; ifelse([$2], , :, [$2])
-else
- AC_MSG_RESULT(no) ; ifelse([$3], , :, [$3])
-fi
-])dnl
-
-dnl Check multiple functions to see whether each needs a declaration.
-dnl Arrange to define HAVE_DECL_<FUNCTION> to 0 or 1 as appropriate.
-dnl gcc_AC_CHECK_DECLS(SYMBOLS,
-dnl [ACTION-IF-NEEDED [, ACTION-IF-NOT-NEEDED [, INCLUDES]]])
-AC_DEFUN(gcc_AC_CHECK_DECLS,
-[for ac_func in $1
-do
-changequote(, )dnl
- ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
-changequote([, ])dnl
-gcc_AC_CHECK_DECL($ac_func,
- [AC_DEFINE_UNQUOTED($ac_tr_decl, 1) $2],
- [AC_DEFINE_UNQUOTED($ac_tr_decl, 0) $3],
-dnl It is possible that the include files passed in here are local headers
-dnl which supply a backup declaration for the relevant prototype based on
-dnl the definition of (or lack of) the HAVE_DECL_ macro. If so, this test
-dnl will always return success. E.g. see libiberty.h's handling of
-dnl `basename'. To avoid this, we define the relevant HAVE_DECL_ macro to
-dnl 1 so that any local headers used do not provide their own prototype
-dnl during this test.
-#undef $ac_tr_decl
-#define $ac_tr_decl 1
- $4
-)
-done
-dnl Automatically generate config.h entries via autoheader.
-if test x = y ; then
- patsubst(translit([$1], [a-z], [A-Z]), [\w+],
- [AC_DEFINE([HAVE_DECL_\&], 1,
- [Define to 1 if we found this declaration otherwise define to 0.])])dnl
-fi
-])
-
diff --git a/contrib/gdb/gdb/aclocal.m4 b/contrib/gdb/gdb/aclocal.m4
deleted file mode 100644
index 40399a65d09e..000000000000
--- a/contrib/gdb/gdb/aclocal.m4
+++ /dev/null
@@ -1,1040 +0,0 @@
-dnl aclocal.m4 generated automatically by aclocal 1.4
-
-dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
-dnl This file is free software; the Free Software Foundation
-dnl gives unlimited permission to copy and/or distribute it,
-dnl with or without modifications, as long as this notice is preserved.
-
-dnl This program is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-dnl PARTICULAR PURPOSE.
-
-dnl written by Rob Savoye <rob@cygnus.com> for Cygnus Support
-dnl major rewriting for Tcl 7.5 by Don Libes <libes@nist.gov>
-
-dnl gdb/configure.in uses BFD_NEED_DECLARATION, so get its definition.
-sinclude(../bfd/acinclude.m4)
-
-dnl This gets the standard macros, like the TCL, TK, etc ones.
-sinclude(../config/acinclude.m4)
-
-dnl CYGNUS LOCAL: This gets the right posix flag for gcc
-AC_DEFUN(CY_AC_TCL_LYNX_POSIX,
-[AC_REQUIRE([AC_PROG_CC])AC_REQUIRE([AC_PROG_CPP])
-AC_MSG_CHECKING([if running LynxOS])
-AC_CACHE_VAL(ac_cv_os_lynx,
-[AC_EGREP_CPP(yes,
-[/*
- * The old Lynx "cc" only defines "Lynx", but the newer one uses "__Lynx__"
- */
-#if defined(__Lynx__) || defined(Lynx)
-yes
-#endif
-], ac_cv_os_lynx=yes, ac_cv_os_lynx=no)])
-#
-if test "$ac_cv_os_lynx" = "yes" ; then
- AC_MSG_RESULT(yes)
- AC_DEFINE(LYNX)
- AC_MSG_CHECKING([whether -mposix or -X is available])
- AC_CACHE_VAL(ac_cv_c_posix_flag,
- [AC_TRY_COMPILE(,[
- /*
- * This flag varies depending on how old the compiler is.
- * -X is for the old "cc" and "gcc" (based on 1.42).
- * -mposix is for the new gcc (at least 2.5.8).
- */
- #if defined(__GNUC__) && __GNUC__ >= 2
- choke me
- #endif
- ], ac_cv_c_posix_flag=" -mposix", ac_cv_c_posix_flag=" -X")])
- CC="$CC $ac_cv_c_posix_flag"
- AC_MSG_RESULT($ac_cv_c_posix_flag)
- else
- AC_MSG_RESULT(no)
-fi
-])
-
-#
-# Sometimes the native compiler is a bogus stub for gcc or /usr/ucb/cc. This
-# makes configure think it's cross compiling. If --target wasn't used, then
-# we can't configure, so something is wrong. We don't use the cache
-# here cause if somebody fixes their compiler install, we want this to work.
-AC_DEFUN(CY_AC_C_WORKS,
-[# If we cannot compile and link a trivial program, we can't expect anything to work
-AC_MSG_CHECKING(whether the compiler ($CC) actually works)
-AC_TRY_COMPILE(, [/* don't need anything here */],
- c_compiles=yes, c_compiles=no)
-
-AC_TRY_LINK(, [/* don't need anything here */],
- c_links=yes, c_links=no)
-
-if test x"${c_compiles}" = x"no" ; then
- AC_MSG_ERROR(the native compiler is broken and won't compile.)
-fi
-
-if test x"${c_links}" = x"no" ; then
- AC_MSG_ERROR(the native compiler is broken and won't link.)
-fi
-AC_MSG_RESULT(yes)
-])
-
-AC_DEFUN(CY_AC_PATH_TCLH, [
-#
-# Ok, lets find the tcl source trees so we can use the headers
-# Warning: transition of version 9 to 10 will break this algorithm
-# because 10 sorts before 9. We also look for just tcl. We have to
-# be careful that we don't match stuff like tclX by accident.
-# the alternative search directory is involked by --with-tclinclude
-#
-
-no_tcl=true
-AC_MSG_CHECKING(for Tcl private headers. dir=${configdir})
-AC_ARG_WITH(tclinclude, [ --with-tclinclude=DIR Directory where tcl private headers are], with_tclinclude=${withval})
-AC_CACHE_VAL(ac_cv_c_tclh,[
-# first check to see if --with-tclinclude was specified
-if test x"${with_tclinclude}" != x ; then
- if test -f ${with_tclinclude}/tclInt.h ; then
- ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
- elif test -f ${with_tclinclude}/generic/tclInt.h ; then
- ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
- else
- AC_MSG_ERROR([${with_tclinclude} directory doesn't contain private headers])
- fi
-fi
-
-# next check if it came with Tcl configuration file
-if test x"${ac_cv_c_tclconfig}" = x ; then
- if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
- ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
- fi
-fi
-
-# next check in private source directory
-#
-# since ls returns lowest version numbers first, reverse its output
-if test x"${ac_cv_c_tclh}" = x ; then
- for i in \
- ${srcdir}/../tcl \
- `ls -dr ${srcdir}/../tcl[[7-9]]* 2>/dev/null` \
- ${srcdir}/../../tcl \
- `ls -dr ${srcdir}/../../tcl[[7-9]]* 2>/dev/null` \
- ${srcdir}/../../../tcl \
- `ls -dr ${srcdir}/../../../tcl[[7-9]]* 2>/dev/null ` ; do
- if test -f $i/generic/tclInt.h ; then
- ac_cv_c_tclh=`(cd $i/generic; pwd)`
- break
- fi
- done
-fi
-# finally check in a few common install locations
-#
-# since ls returns lowest version numbers first, reverse its output
-if test x"${ac_cv_c_tclh}" = x ; then
- for i in \
- `ls -dr /usr/local/src/tcl[[7-9]]* 2>/dev/null` \
- `ls -dr /usr/local/lib/tcl[[7-9]]* 2>/dev/null` \
- /usr/local/src/tcl \
- /usr/local/lib/tcl \
- ${prefix}/include ; do
- if test -f $i/generic/tclInt.h ; then
- ac_cv_c_tclh=`(cd $i/generic; pwd)`
- break
- fi
- done
-fi
-# see if one is installed
-if test x"${ac_cv_c_tclh}" = x ; then
- AC_HEADER_CHECK(tclInt.h, ac_cv_c_tclh=installed, ac_cv_c_tclh="")
-fi
-])
-if test x"${ac_cv_c_tclh}" = x ; then
- TCLHDIR="# no Tcl private headers found"
- AC_MSG_ERROR([Can't find Tcl private headers])
-fi
-if test x"${ac_cv_c_tclh}" != x ; then
- no_tcl=""
- if test x"${ac_cv_c_tclh}" = x"installed" ; then
- AC_MSG_RESULT([is installed])
- TCLHDIR=""
- else
- AC_MSG_RESULT([found in ${ac_cv_c_tclh}])
- # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
- TCLHDIR="-I${ac_cv_c_tclh}"
- fi
-fi
-
-AC_SUBST(TCLHDIR)
-])
-
-
-AC_DEFUN(CY_AC_PATH_TCLCONFIG, [
-#
-# Ok, lets find the tcl configuration
-# First, look for one uninstalled.
-# the alternative search directory is invoked by --with-tclconfig
-#
-
-if test x"${no_tcl}" = x ; then
- # we reset no_tcl in case something fails here
- no_tcl=true
- AC_ARG_WITH(tclconfig, [ --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)],
- with_tclconfig=${withval})
- AC_MSG_CHECKING([for Tcl configuration])
- AC_CACHE_VAL(ac_cv_c_tclconfig,[
-
- # First check to see if --with-tclconfig was specified.
- if test x"${with_tclconfig}" != x ; then
- if test -f "${with_tclconfig}/tclConfig.sh" ; then
- ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
- else
- AC_MSG_ERROR([${with_tclconfig} directory doesn't contain tclConfig.sh])
- fi
- fi
-
- # then check for a private Tcl installation
- if test x"${ac_cv_c_tclconfig}" = x ; then
- for i in \
- ../tcl \
- `ls -dr ../tcl[[7-9]]* 2>/dev/null` \
- ../../tcl \
- `ls -dr ../../tcl[[7-9]]* 2>/dev/null` \
- ../../../tcl \
- `ls -dr ../../../tcl[[7-9]]* 2>/dev/null` ; do
- if test -f "$i/${configdir}/tclConfig.sh" ; then
- ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
- break
- fi
- done
- fi
- # check in a few common install locations
- if test x"${ac_cv_c_tclconfig}" = x ; then
- for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
- if test -f "$i/tclConfig.sh" ; then
- ac_cv_c_tclconfig=`(cd $i; pwd)`
- break
- fi
- done
- fi
- # check in a few other private locations
- if test x"${ac_cv_c_tclconfig}" = x ; then
- for i in \
- ${srcdir}/../tcl \
- `ls -dr ${srcdir}/../tcl[[7-9]]* 2>/dev/null` ; do
- if test -f "$i/${configdir}/tclConfig.sh" ; then
- ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
- break
- fi
- done
- fi
- ])
- if test x"${ac_cv_c_tclconfig}" = x ; then
- TCLCONFIG="# no Tcl configs found"
- AC_MSG_WARN(Can't find Tcl configuration definitions)
- else
- no_tcl=
- TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
- AC_MSG_RESULT(found $TCLCONFIG)
- fi
-fi
-])
-
-# Defined as a separate macro so we don't have to cache the values
-# from PATH_TCLCONFIG (because this can also be cached).
-AC_DEFUN(CY_AC_LOAD_TCLCONFIG, [
- . $TCLCONFIG
-
- AC_SUBST(TCL_VERSION)
- AC_SUBST(TCL_MAJOR_VERSION)
- AC_SUBST(TCL_MINOR_VERSION)
- AC_SUBST(TCL_CC)
- AC_SUBST(TCL_DEFS)
-
-dnl not used, don't export to save symbols
-dnl AC_SUBST(TCL_LIB_FILE)
-
-dnl don't export, not used outside of configure
-dnl AC_SUBST(TCL_LIBS)
-dnl not used, don't export to save symbols
-dnl AC_SUBST(TCL_PREFIX)
-
-dnl not used, don't export to save symbols
-dnl AC_SUBST(TCL_EXEC_PREFIX)
-
- AC_SUBST(TCL_SHLIB_CFLAGS)
- AC_SUBST(TCL_SHLIB_LD)
-dnl don't export, not used outside of configure
- AC_SUBST(TCL_SHLIB_LD_LIBS)
- AC_SUBST(TCL_SHLIB_SUFFIX)
-dnl not used, don't export to save symbols
- AC_SUBST(TCL_DL_LIBS)
- AC_SUBST(TCL_LD_FLAGS)
-dnl don't export, not used outside of configure
- AC_SUBST(TCL_LD_SEARCH_FLAGS)
- AC_SUBST(TCL_CC_SEARCH_FLAGS)
- AC_SUBST(TCL_COMPAT_OBJS)
- AC_SUBST(TCL_RANLIB)
- AC_SUBST(TCL_BUILD_LIB_SPEC)
- AC_SUBST(TCL_LIB_SPEC)
- AC_SUBST(TCL_LIB_VERSIONS_OK)
-
-dnl not used, don't export to save symbols
-dnl AC_SUBST(TCL_SHARED_LIB_SUFFIX)
-
-dnl not used, don't export to save symbols
-dnl AC_SUBST(TCL_UNSHARED_LIB_SUFFIX)
-])
-
-# Warning: Tk definitions are very similar to Tcl definitions but
-# are not precisely the same. There are a couple of differences,
-# so don't do changes to Tcl thinking you can cut and paste it do
-# the Tk differences and later simply substitute "Tk" for "Tcl".
-# Known differences:
-# - Acceptable Tcl major version #s is 7-9 while Tk is 4-9
-# - Searching for Tcl includes looking for tclInt.h, Tk looks for tk.h
-# - Computing major/minor versions is different because Tk depends on
-# headers to Tcl, Tk, and X.
-# - Symbols in tkConfig.sh are different than tclConfig.sh
-# - Acceptable for Tk to be missing but not Tcl.
-
-AC_DEFUN(CY_AC_PATH_TKH, [
-#
-# Ok, lets find the tk source trees so we can use the headers
-# If the directory (presumably symlink) named "tk" exists, use that one
-# in preference to any others. Same logic is used when choosing library
-# and again with Tcl. The search order is the best place to look first, then in
-# decreasing significance. The loop breaks if the trigger file is found.
-# Note the gross little conversion here of srcdir by cd'ing to the found
-# directory. This converts the path from a relative to an absolute, so
-# recursive cache variables for the path will work right. We check all
-# the possible paths in one loop rather than many seperate loops to speed
-# things up.
-# the alternative search directory is involked by --with-tkinclude
-#
-no_tk=true
-AC_MSG_CHECKING(for Tk private headers)
-AC_ARG_WITH(tkinclude, [ --with-tkinclude=DIR Directory where tk private headers are], with_tkinclude=${withval})
-AC_CACHE_VAL(ac_cv_c_tkh,[
-# first check to see if --with-tkinclude was specified
-if test x"${with_tkinclude}" != x ; then
- if test -f ${with_tkinclude}/tk.h ; then
- ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
- elif test -f ${with_tkinclude}/generic/tk.h ; then
- ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
- else
- AC_MSG_ERROR([${with_tkinclude} directory doesn't contain private headers])
- fi
-fi
-
-# next check if it came with Tk configuration file
-if test x"${ac_cv_c_tkconfig}" = x ; then
- if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
- ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
- fi
-fi
-
-# next check in private source directory
-#
-# since ls returns lowest version numbers first, reverse its output
-if test x"${ac_cv_c_tkh}" = x ; then
- for i in \
- ${srcdir}/../tk \
- `ls -dr ${srcdir}/../tk[[4-9]]* 2>/dev/null` \
- ${srcdir}/../../tk \
- `ls -dr ${srcdir}/../../tk[[4-9]]* 2>/dev/null` \
- ${srcdir}/../../../tk \
- `ls -dr ${srcdir}/../../../tk[[4-9]]* 2>/dev/null ` ; do
- if test -f $i/generic/tk.h ; then
- ac_cv_c_tkh=`(cd $i/generic; pwd)`
- break
- fi
- done
-fi
-# finally check in a few common install locations
-#
-# since ls returns lowest version numbers first, reverse its output
-if test x"${ac_cv_c_tkh}" = x ; then
- for i in \
- `ls -dr /usr/local/src/tk[[4-9]]* 2>/dev/null` \
- `ls -dr /usr/local/lib/tk[[4-9]]* 2>/dev/null` \
- /usr/local/src/tk \
- /usr/local/lib/tk \
- ${prefix}/include ; do
- if test -f $i/generic/tk.h ; then
- ac_cv_c_tkh=`(cd $i/generic; pwd)`
- break
- fi
- done
-fi
-# see if one is installed
-if test x"${ac_cv_c_tkh}" = x ; then
- AC_HEADER_CHECK(tk.h, ac_cv_c_tkh=installed, ac_cv_c_tkh="")
-fi
-])
-if test x"${ac_cv_c_tkh}" != x ; then
- no_tk=""
- if test x"${ac_cv_c_tkh}" = x"installed" ; then
- AC_MSG_RESULT([is installed])
- TKHDIR=""
- else
- AC_MSG_RESULT([found in ${ac_cv_c_tkh}])
- # this hack is cause the TKHDIR won't print if there is a "-I" in it.
- TKHDIR="-I${ac_cv_c_tkh}"
- fi
-else
- TKHDIR="# no Tk directory found"
- AC_MSG_WARN([Can't find Tk private headers])
- no_tk=true
-fi
-
-AC_SUBST(TKHDIR)
-])
-
-
-AC_DEFUN(CY_AC_PATH_TKCONFIG, [
-#
-# Ok, lets find the tk configuration
-# First, look for one uninstalled.
-# the alternative search directory is invoked by --with-tkconfig
-#
-
-if test x"${no_tk}" = x ; then
- # we reset no_tk in case something fails here
- no_tk=true
- AC_ARG_WITH(tkconfig, [ --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)],
- with_tkconfig=${withval})
- AC_MSG_CHECKING([for Tk configuration])
- AC_CACHE_VAL(ac_cv_c_tkconfig,[
-
- # First check to see if --with-tkconfig was specified.
- if test x"${with_tkconfig}" != x ; then
- if test -f "${with_tkconfig}/tkConfig.sh" ; then
- ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
- else
- AC_MSG_ERROR([${with_tkconfig} directory doesn't contain tkConfig.sh])
- fi
- fi
-
- # then check for a private Tk library
- if test x"${ac_cv_c_tkconfig}" = x ; then
- for i in \
- ../tk \
- `ls -dr ../tk[[4-9]]* 2>/dev/null` \
- ../../tk \
- `ls -dr ../../tk[[4-9]]* 2>/dev/null` \
- ../../../tk \
- `ls -dr ../../../tk[[4-9]]* 2>/dev/null` ; do
- if test -f "$i/${configdir}/tkConfig.sh" ; then
- ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
- break
- fi
- done
- fi
- # check in a few common install locations
- if test x"${ac_cv_c_tkconfig}" = x ; then
- for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
- if test -f "$i/tkConfig.sh" ; then
- ac_cv_c_tkconfig=`(cd $i; pwd)`
- break
- fi
- done
- fi
- # check in a few other private locations
- if test x"${ac_cv_c_tkconfig}" = x ; then
- for i in \
- ${srcdir}/../tk \
- `ls -dr ${srcdir}/../tk[[4-9]]* 2>/dev/null` ; do
- if test -f "$i/${configdir}/tkConfig.sh" ; then
- ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
- break
- fi
- done
- fi
- ])
- if test x"${ac_cv_c_tkconfig}" = x ; then
- TKCONFIG="# no Tk configs found"
- AC_MSG_WARN(Can't find Tk configuration definitions)
- else
- no_tk=
- TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
- AC_MSG_RESULT(found $TKCONFIG)
- fi
-fi
-
-])
-
-# Defined as a separate macro so we don't have to cache the values
-# from PATH_TKCONFIG (because this can also be cached).
-AC_DEFUN(CY_AC_LOAD_TKCONFIG, [
- if test -f "$TKCONFIG" ; then
- . $TKCONFIG
- fi
-
- AC_SUBST(TK_VERSION)
-dnl not actually used, don't export to save symbols
-dnl AC_SUBST(TK_MAJOR_VERSION)
-dnl AC_SUBST(TK_MINOR_VERSION)
- AC_SUBST(TK_DEFS)
-
-dnl not used, don't export to save symbols
- dnl AC_SUBST(TK_LIB_FILE)
-
-dnl not used outside of configure
-dnl AC_SUBST(TK_LIBS)
-dnl not used, don't export to save symbols
-dnl AC_SUBST(TK_PREFIX)
-
-dnl not used, don't export to save symbols
-dnl AC_SUBST(TK_EXEC_PREFIX)
-
- AC_SUBST(TK_BUILD_INCLUDES)
- AC_SUBST(TK_XINCLUDES)
- AC_SUBST(TK_XLIBSW)
- AC_SUBST(TK_BUILD_LIB_SPEC)
- AC_SUBST(TK_LIB_SPEC)
-])
-
-# check for Itcl headers.
-
-AC_DEFUN(CY_AC_PATH_ITCLCONFIG, [
-#
-# Ok, lets find the itcl configuration
-# First, look for one uninstalled.
-# the alternative search directory is invoked by --with-itclconfig
-#
-
-if test x"${no_itcl}" = x ; then
- # we reset no_itcl in case something fails here
- no_itcl=true
- AC_ARG_WITH(itclconfig, [ --with-itclconfig Directory containing itcl configuration (itclConfig.sh)],
- with_itclconfig=${withval})
- AC_MSG_CHECKING([for Itcl configuration])
- AC_CACHE_VAL(ac_cv_c_itclconfig,[
-
- # First check to see if --with-itclconfig was specified.
- if test x"${with_itclconfig}" != x ; then
- if test -f "${with_itclconfig}/itclConfig.sh" ; then
- ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
- else
- AC_MSG_ERROR([${with_itclconfig} directory doesn't contain itclConfig.sh])
- fi
- fi
-
- # then check for a private Itcl library
- if test x"${ac_cv_c_itclconfig}" = x ; then
- for i in \
- ../itcl/itcl \
- `ls -dr ../itcl[[4-9]]*/itcl 2>/dev/null` \
- ../../itcl \
- `ls -dr ../../itcl[[4-9]]*/itcl 2>/dev/null` \
- ../../../itcl \
- `ls -dr ../../../itcl[[4-9]]*/itcl 2>/dev/null` ; do
- if test -f "$i/itclConfig.sh" ; then
- ac_cv_c_itclconfig=`(cd $i; pwd)`
- break
- fi
- done
- fi
- # check in a few common install locations
- if test x"${ac_cv_c_itclconfig}" = x ; then
- for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
- if test -f "$i/itclConfig.sh" ; then
- ac_cv_c_itclconfig=`(cd $i; pwd)`
- break
- fi
- done
- fi
- # check in a few other private locations
- if test x"${ac_cv_c_itclconfig}" = x ; then
- for i in \
- ${srcdir}/../itcl/itcl \
- `ls -dr ${srcdir}/../itcl[[4-9]]*/itcl 2>/dev/null` ; do
- if test -f "$i/itclConfig.sh" ; then
- ac_cv_c_itclconfig=`(cd $i; pwd)`
- break
- fi
- done
- fi
- ])
- if test x"${ac_cv_c_itclconfig}" = x ; then
- ITCLCONFIG="# no Itcl configs found"
- AC_MSG_WARN(Can't find Itcl configuration definitions)
- else
- no_itcl=
- ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
- AC_MSG_RESULT(found $ITCLCONFIG)
- fi
-fi
-])
-
-# Defined as a separate macro so we don't have to cache the values
-# from PATH_ITCLCONFIG (because this can also be cached).
-AC_DEFUN(CY_AC_LOAD_ITCLCONFIG, [
- if test -f "$ITCLCONFIG" ; then
- . $ITCLCONFIG
- fi
-
- AC_SUBST(ITCL_VERSION)
-dnl not actually used, don't export to save symbols
-dnl AC_SUBST(ITCL_MAJOR_VERSION)
-dnl AC_SUBST(ITCL_MINOR_VERSION)
- AC_SUBST(ITCL_DEFS)
-
-dnl not used, don't export to save symbols
- dnl AC_SUBST(ITCL_LIB_FILE)
-
-dnl not used outside of configure
-dnl AC_SUBST(ITCL_LIBS)
-dnl not used, don't export to save symbols
-dnl AC_SUBST(ITCL_PREFIX)
-
-dnl not used, don't export to save symbols
-dnl AC_SUBST(ITCL_EXEC_PREFIX)
-
- AC_SUBST(ITCL_BUILD_INCLUDES)
- AC_SUBST(ITCL_BUILD_LIB_SPEC)
- AC_SUBST(ITCL_LIB_SPEC)
-])
-
-# check for Itcl headers.
-
-AC_DEFUN(CY_AC_PATH_ITCLH, [
-AC_MSG_CHECKING(for Itcl private headers. srcdir=${srcdir})
-if test x"${ac_cv_c_itclh}" = x ; then
- for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
- if test -f $i/generic/itcl.h ; then
- ac_cv_c_itclh=`(cd $i/generic; pwd)`
- break
- fi
- done
-fi
-if test x"${ac_cv_c_itclh}" = x ; then
- ITCLHDIR="# no Itcl private headers found"
- AC_MSG_ERROR([Can't find Itcl private headers])
-fi
-if test x"${ac_cv_c_itclh}" != x ; then
- ITCLHDIR="-I${ac_cv_c_itclh}"
-fi
-# should always be here
-# ITCLLIB="../itcl/itcl/unix/libitcl.a"
-AC_SUBST(ITCLHDIR)
-#AC_SUBST(ITCLLIB)
-])
-
-
-AC_DEFUN(CY_AC_PATH_ITKCONFIG, [
-#
-# Ok, lets find the itk configuration
-# First, look for one uninstalled.
-# the alternative search directory is invoked by --with-itkconfig
-#
-
-if test x"${no_itk}" = x ; then
- # we reset no_itk in case something fails here
- no_itk=true
- AC_ARG_WITH(itkconfig, [ --with-itkconfig Directory containing itk configuration (itkConfig.sh)],
- with_itkconfig=${withval})
- AC_MSG_CHECKING([for Itk configuration])
- AC_CACHE_VAL(ac_cv_c_itkconfig,[
-
- # First check to see if --with-itkconfig was specified.
- if test x"${with_itkconfig}" != x ; then
- if test -f "${with_itkconfig}/itkConfig.sh" ; then
- ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
- else
- AC_MSG_ERROR([${with_itkconfig} directory doesn't contain itkConfig.sh])
- fi
- fi
-
- # then check for a private Itk library
- if test x"${ac_cv_c_itkconfig}" = x ; then
- for i in \
- ../itcl/itk \
- `ls -dr ../itcl[[4-9]]*/itk 2>/dev/null` \
- ../../itk \
- `ls -dr ../../itcl[[4-9]]*/itk 2>/dev/null` \
- ../../../itk \
- `ls -dr ../../../itcl[[4-9]]*/itk 2>/dev/null` ; do
- if test -f "$i/itkConfig.sh" ; then
- ac_cv_c_itkconfig=`(cd $i; pwd)`
- break
- fi
- done
- fi
- # check in a few common install locations
- if test x"${ac_cv_c_itkconfig}" = x ; then
- for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
- if test -f "$i/itkConfig.sh" ; then
- ac_cv_c_itkconfig=`(cd $i; pwd)`
- break
- fi
- done
- fi
- # check in a few other private locations
- if test x"${ac_cv_c_itkconfig}" = x ; then
- for i in \
- ${srcdir}/../itcl/itk \
- `ls -dr ${srcdir}/../itcl[[4-9]]*/itk 2>/dev/null` ; do
- if test -f "$i/itkConfig.sh" ; then
- ac_cv_c_itkconfig=`(cd $i; pwd)`
- break
- fi
- done
- fi
- ])
- if test x"${ac_cv_c_itkconfig}" = x ; then
- ITKCONFIG="# no Itk configs found"
- AC_MSG_WARN(Can't find Itk configuration definitions)
- else
- no_itk=
- ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
- AC_MSG_RESULT(found $ITKCONFIG)
- fi
-fi
-
-])
-
-# Defined as a separate macro so we don't have to cache the values
-# from PATH_ITKCONFIG (because this can also be cached).
-AC_DEFUN(CY_AC_LOAD_ITKCONFIG, [
- if test -f "$ITKCONFIG" ; then
- . $ITKCONFIG
- fi
-
- AC_SUBST(ITK_VERSION)
-dnl not actually used, don't export to save symbols
-dnl AC_SUBST(ITK_MAJOR_VERSION)
-dnl AC_SUBST(ITK_MINOR_VERSION)
- AC_SUBST(ITK_DEFS)
-
-dnl not used, don't export to save symbols
- dnl AC_SUBST(ITK_LIB_FILE)
-
-dnl not used outside of configure
-dnl AC_SUBST(ITK_LIBS)
-dnl not used, don't export to save symbols
-dnl AC_SUBST(ITK_PREFIX)
-
-dnl not used, don't export to save symbols
-dnl AC_SUBST(ITK_EXEC_PREFIX)
-
- AC_SUBST(ITK_BUILD_INCLUDES)
- AC_SUBST(ITK_BUILD_LIB_SPEC)
- AC_SUBST(ITK_LIB_SPEC)
-])
-
-AC_DEFUN(CY_AC_PATH_ITKH, [
-AC_MSG_CHECKING(for Itk private headers. srcdir=${srcdir})
-if test x"${ac_cv_c_itkh}" = x ; then
- for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
- if test -f $i/generic/itk.h ; then
- ac_cv_c_itkh=`(cd $i/generic; pwd)`
- break
- fi
- done
-fi
-if test x"${ac_cv_c_itkh}" = x ; then
- ITKHDIR="# no Itk private headers found"
- AC_MSG_ERROR([Can't find Itk private headers])
-fi
-if test x"${ac_cv_c_itkh}" != x ; then
- ITKHDIR="-I${ac_cv_c_itkh}"
-fi
-# should always be here
-# ITKLIB="../itcl/itk/unix/libitk.a"
-AC_SUBST(ITKHDIR)
-#AC_SUBST(ITKLIB)
-])
-
-
-dnl sinclude(../gettext.m4) already included by bfd/acinclude.m4
-dnl The lines below arrange for aclocal not to bring gettext.m4's
-dnl CY_GNU_GETTEXT into aclocal.m4.
-ifelse(yes,no,[
-AC_DEFUN([CY_GNU_GETTEXT],)
-])
-
-
-# Copyright 1996, 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-# 02111-1307, USA.
-
-# serial 1
-
-# @defmac AC_PROG_CC_STDC
-# @maindex PROG_CC_STDC
-# @ovindex CC
-# If the C compiler in not in ANSI C mode by default, try to add an option
-# to output variable @code{CC} to make it so. This macro tries various
-# options that select ANSI C on some system or another. It considers the
-# compiler to be in ANSI C mode if it handles function prototypes correctly.
-#
-# If you use this macro, you should check after calling it whether the C
-# compiler has been set to accept ANSI C; if not, the shell variable
-# @code{am_cv_prog_cc_stdc} is set to @samp{no}. If you wrote your source
-# code in ANSI C, you can make an un-ANSIfied copy of it by using the
-# program @code{ansi2knr}, which comes with Ghostscript.
-# @end defmac
-
-AC_DEFUN([AM_PROG_CC_STDC],
-[AC_REQUIRE([AC_PROG_CC])
-AC_BEFORE([$0], [AC_C_INLINE])
-AC_BEFORE([$0], [AC_C_CONST])
-dnl Force this before AC_PROG_CPP. Some cpp's, eg on HPUX, require
-dnl a magic option to avoid problems with ANSI preprocessor commands
-dnl like #elif.
-dnl FIXME: can't do this because then AC_AIX won't work due to a
-dnl circular dependency.
-dnl AC_BEFORE([$0], [AC_PROG_CPP])
-AC_MSG_CHECKING([for ${CC-cc} option to accept ANSI C])
-AC_CACHE_VAL(am_cv_prog_cc_stdc,
-[am_cv_prog_cc_stdc=no
-ac_save_CC="$CC"
-# Don't try gcc -ansi; that turns off useful extensions and
-# breaks some systems' header files.
-# AIX -qlanglvl=ansi
-# Ultrix and OSF/1 -std1
-# HP-UX 10.20 and later -Ae
-# HP-UX older versions -Aa -D_HPUX_SOURCE
-# SVR4 -Xc -D__EXTENSIONS__
-for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
-do
- CC="$ac_save_CC $ac_arg"
- AC_TRY_COMPILE(
-[#include <stdarg.h>
-#include <stdio.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
-struct buf { int x; };
-FILE * (*rcsopen) (struct buf *, struct stat *, int);
-static char *e (p, i)
- char **p;
- int i;
-{
- return p[i];
-}
-static char *f (char * (*g) (char **, int), char **p, ...)
-{
- char *s;
- va_list v;
- va_start (v,p);
- s = g (p, va_arg (v,int));
- va_end (v);
- return s;
-}
-int test (int i, double x);
-struct s1 {int (*f) (int a);};
-struct s2 {int (*f) (double a);};
-int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
-int argc;
-char **argv;
-], [
-return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
-],
-[am_cv_prog_cc_stdc="$ac_arg"; break])
-done
-CC="$ac_save_CC"
-])
-if test -z "$am_cv_prog_cc_stdc"; then
- AC_MSG_RESULT([none needed])
-else
- AC_MSG_RESULT([$am_cv_prog_cc_stdc])
-fi
-case "x$am_cv_prog_cc_stdc" in
- x|xno) ;;
- *) CC="$CC $am_cv_prog_cc_stdc" ;;
-esac
-])
-
-dnl From Bruno Haible.
-
-AC_DEFUN([AM_ICONV],
-[
- dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
- dnl those with the standalone portable GNU libiconv installed).
-
- AC_ARG_WITH([libiconv-prefix],
-[ --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib], [
- for dir in `echo "$withval" | tr : ' '`; do
- if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
- if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
- done
- ])
-
- AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [
- am_cv_func_iconv="no, consider installing GNU libiconv"
- am_cv_lib_iconv=no
- AC_TRY_LINK([#include <stdlib.h>
-#include <iconv.h>],
- [iconv_t cd = iconv_open("","");
- iconv(cd,NULL,NULL,NULL,NULL);
- iconv_close(cd);],
- am_cv_func_iconv=yes)
- if test "$am_cv_func_iconv" != yes; then
- am_save_LIBS="$LIBS"
- LIBS="$LIBS -liconv"
- AC_TRY_LINK([#include <stdlib.h>
-#include <iconv.h>],
- [iconv_t cd = iconv_open("","");
- iconv(cd,NULL,NULL,NULL,NULL);
- iconv_close(cd);],
- am_cv_lib_iconv=yes
- am_cv_func_iconv=yes)
- LIBS="$am_save_LIBS"
- fi
- ])
- if test "$am_cv_func_iconv" = yes; then
- AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
- AC_MSG_CHECKING([for iconv declaration])
- AC_CACHE_VAL(am_cv_proto_iconv, [
- AC_TRY_COMPILE([
-#include <stdlib.h>
-#include <iconv.h>
-extern
-#ifdef __cplusplus
-"C"
-#endif
-#if defined(__STDC__) || defined(__cplusplus)
-size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
-#else
-size_t iconv();
-#endif
-], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")
- am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"])
- am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
- AC_MSG_RESULT([$]{ac_t:-
- }[$]am_cv_proto_iconv)
- AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,
- [Define as const if the declaration of iconv() needs const.])
- fi
- LIBICONV=
- if test "$am_cv_lib_iconv" = yes; then
- LIBICONV="-liconv"
- fi
- AC_SUBST(LIBICONV)
-])
-
-# AC_GNU_SOURCE
-# -------------
-# FIXME: Remove thise once we start using Autoconf 2.5x (x>=4).
-AC_DEFUN([AC_GNU_SOURCE],
-[AC_BEFORE([$0], [AC_TRY_COMPILE])dnl
-AC_BEFORE([$0], [AC_TRY_RUN])dnl
-AC_DEFINE([_GNU_SOURCE])
-])
-
-dnl written by Guido Draheim <guidod@gmx.de>, original by Alexandre Oliva
-dnl Version 1.3 (2001/03/02)
-dnl source http://www.gnu.org/software/ac-archive/Miscellaneous/ac_define_dir.html
-
-AC_DEFUN([AC_DEFINE_DIR], [
- test "x$prefix" = xNONE && prefix="$ac_default_prefix"
- test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
- ac_define_dir=`eval echo [$]$2`
- ac_define_dir=`eval echo [$]ac_define_dir`
- ifelse($3, ,
- AC_DEFINE_UNQUOTED($1, "$ac_define_dir"),
- AC_DEFINE_UNQUOTED($1, "$ac_define_dir", $3))
-])
-
-dnl See whether we need a declaration for a function.
-dnl The result is highly dependent on the INCLUDES passed in, so make sure
-dnl to use a different cache variable name in this macro if it is invoked
-dnl in a different context somewhere else.
-dnl gcc_AC_CHECK_DECL(SYMBOL,
-dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, INCLUDES]]])
-AC_DEFUN(gcc_AC_CHECK_DECL,
-[AC_MSG_CHECKING([whether $1 is declared])
-AC_CACHE_VAL(gcc_cv_have_decl_$1,
-[AC_TRY_COMPILE([$4],
-[#ifndef $1
-char *(*pfn) = (char *(*)) $1 ;
-#endif], eval "gcc_cv_have_decl_$1=yes", eval "gcc_cv_have_decl_$1=no")])
-if eval "test \"`echo '$gcc_cv_have_decl_'$1`\" = yes"; then
- AC_MSG_RESULT(yes) ; ifelse([$2], , :, [$2])
-else
- AC_MSG_RESULT(no) ; ifelse([$3], , :, [$3])
-fi
-])dnl
-
-dnl Check multiple functions to see whether each needs a declaration.
-dnl Arrange to define HAVE_DECL_<FUNCTION> to 0 or 1 as appropriate.
-dnl gcc_AC_CHECK_DECLS(SYMBOLS,
-dnl [ACTION-IF-NEEDED [, ACTION-IF-NOT-NEEDED [, INCLUDES]]])
-AC_DEFUN(gcc_AC_CHECK_DECLS,
-[for ac_func in $1
-do
-changequote(, )dnl
- ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
-changequote([, ])dnl
-gcc_AC_CHECK_DECL($ac_func,
- [AC_DEFINE_UNQUOTED($ac_tr_decl, 1) $2],
- [AC_DEFINE_UNQUOTED($ac_tr_decl, 0) $3],
-dnl It is possible that the include files passed in here are local headers
-dnl which supply a backup declaration for the relevant prototype based on
-dnl the definition of (or lack of) the HAVE_DECL_ macro. If so, this test
-dnl will always return success. E.g. see libiberty.h's handling of
-dnl `basename'. To avoid this, we define the relevant HAVE_DECL_ macro to
-dnl 1 so that any local headers used do not provide their own prototype
-dnl during this test.
-#undef $ac_tr_decl
-#define $ac_tr_decl 1
- $4
-)
-done
-dnl Automatically generate config.h entries via autoheader.
-if test x = y ; then
- patsubst(translit([$1], [a-z], [A-Z]), [\w+],
- [AC_DEFINE([HAVE_DECL_\&], 1,
- [Define to 1 if we found this declaration otherwise define to 0.])])dnl
-fi
-])
-
-
-# Add --enable-maintainer-mode option to configure.
-# From Jim Meyering
-
-# serial 1
-
-AC_DEFUN(AM_MAINTAINER_MODE,
-[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
- dnl maintainer-mode is disabled by default
- AC_ARG_ENABLE(maintainer-mode,
-[ --enable-maintainer-mode enable make rules and dependencies not useful
- (and sometimes confusing) to the casual installer],
- USE_MAINTAINER_MODE=$enableval,
- USE_MAINTAINER_MODE=no)
- AC_MSG_RESULT($USE_MAINTAINER_MODE)
- AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
- MAINT=$MAINTAINER_MODE_TRUE
- AC_SUBST(MAINT)dnl
-]
-)
-
-# Define a conditional.
-
-AC_DEFUN(AM_CONDITIONAL,
-[AC_SUBST($1_TRUE)
-AC_SUBST($1_FALSE)
-if $2; then
- $1_TRUE=
- $1_FALSE='#'
-else
- $1_TRUE='#'
- $1_FALSE=
-fi])
-
diff --git a/contrib/gdb/gdb/ada-exp.c b/contrib/gdb/gdb/ada-exp.c
deleted file mode 100644
index b8dad7a43a6d..000000000000
--- a/contrib/gdb/gdb/ada-exp.c
+++ /dev/null
@@ -1,2642 +0,0 @@
-/* A Bison parser, made by GNU Bison 1.875. */
-
-/* Skeleton parser for Yacc-like parsing with Bison,
- Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, Inc.
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2, or (at your option)
- any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA. */
-
-/* As a special exception, when this file is copied by Bison into a
- Bison output file, you may use that output file without restriction.
- This special exception was added by the Free Software Foundation
- in version 1.24 of Bison. */
-
-/* Written by Richard Stallman by simplifying the original so called
- ``semantic'' parser. */
-
-/* All symbols defined below should begin with yy or YY, to avoid
- infringing on user name space. This should be done even for local
- variables, as they might otherwise be expanded by user macros.
- There are some unavoidable exceptions within include files to
- define necessary library symbols; they are noted "INFRINGES ON
- USER NAME SPACE" below. */
-
-/* Identify Bison output. */
-#define YYBISON 1
-
-/* Skeleton name. */
-#define YYSKELETON_NAME "yacc.c"
-
-/* Pure parsers. */
-#define YYPURE 0
-
-/* Using locations. */
-#define YYLSP_NEEDED 0
-
-
-
-/* Tokens. */
-#ifndef YYTOKENTYPE
-# define YYTOKENTYPE
- /* Put the tokens into the symbol table, so that GDB and other debuggers
- know about them. */
- enum yytokentype {
- INT = 258,
- NULL_PTR = 259,
- CHARLIT = 260,
- FLOAT = 261,
- TYPENAME = 262,
- BLOCKNAME = 263,
- STRING = 264,
- NAME = 265,
- DOT_ID = 266,
- OBJECT_RENAMING = 267,
- DOT_ALL = 268,
- LAST = 269,
- REGNAME = 270,
- INTERNAL_VARIABLE = 271,
- ASSIGN = 272,
- ELSE = 273,
- THEN = 274,
- XOR = 275,
- OR = 276,
- _AND_ = 277,
- DOTDOT = 278,
- IN = 279,
- GEQ = 280,
- LEQ = 281,
- NOTEQUAL = 282,
- UNARY = 283,
- REM = 284,
- MOD = 285,
- NOT = 286,
- ABS = 287,
- STARSTAR = 288,
- TICK_LENGTH = 289,
- TICK_LAST = 290,
- TICK_FIRST = 291,
- TICK_ADDRESS = 292,
- TICK_ACCESS = 293,
- TICK_MODULUS = 294,
- TICK_MIN = 295,
- TICK_MAX = 296,
- TICK_VAL = 297,
- TICK_TAG = 298,
- TICK_SIZE = 299,
- TICK_RANGE = 300,
- TICK_POS = 301,
- ARROW = 302,
- NEW = 303
- };
-#endif
-#define INT 258
-#define NULL_PTR 259
-#define CHARLIT 260
-#define FLOAT 261
-#define TYPENAME 262
-#define BLOCKNAME 263
-#define STRING 264
-#define NAME 265
-#define DOT_ID 266
-#define OBJECT_RENAMING 267
-#define DOT_ALL 268
-#define LAST 269
-#define REGNAME 270
-#define INTERNAL_VARIABLE 271
-#define ASSIGN 272
-#define ELSE 273
-#define THEN 274
-#define XOR 275
-#define OR 276
-#define _AND_ 277
-#define DOTDOT 278
-#define IN 279
-#define GEQ 280
-#define LEQ 281
-#define NOTEQUAL 282
-#define UNARY 283
-#define REM 284
-#define MOD 285
-#define NOT 286
-#define ABS 287
-#define STARSTAR 288
-#define TICK_LENGTH 289
-#define TICK_LAST 290
-#define TICK_FIRST 291
-#define TICK_ADDRESS 292
-#define TICK_ACCESS 293
-#define TICK_MODULUS 294
-#define TICK_MIN 295
-#define TICK_MAX 296
-#define TICK_VAL 297
-#define TICK_TAG 298
-#define TICK_SIZE 299
-#define TICK_RANGE 300
-#define TICK_POS 301
-#define ARROW 302
-#define NEW 303
-
-
-
-
-/* Copy the first part of user declarations. */
-#line 38 "ada-exp.y"
-
-
-#include "defs.h"
-#include <string.h>
-#include <ctype.h>
-#include "expression.h"
-#include "value.h"
-#include "parser-defs.h"
-#include "language.h"
-#include "ada-lang.h"
-#include "bfd.h" /* Required by objfiles.h. */
-#include "symfile.h" /* Required by objfiles.h. */
-#include "objfiles.h" /* For have_full_symbols and have_partial_symbols */
-#include "frame.h"
-#include "block.h"
-
-/* Remap normal yacc parser interface names (yyparse, yylex, yyerror, etc),
- as well as gratuitiously global symbol names, so we can have multiple
- yacc generated parsers in gdb. These are only the variables
- produced by yacc. If other parser generators (bison, byacc, etc) produce
- additional global names that conflict at link time, then those parser
- generators need to be fixed instead of adding those names to this list. */
-
-/* NOTE: This is clumsy, especially since BISON and FLEX provide --prefix
- options. I presume we are maintaining it to accommodate systems
- without BISON? (PNH) */
-
-#define yymaxdepth ada_maxdepth
-#define yyparse _ada_parse /* ada_parse calls this after initialization */
-#define yylex ada_lex
-#define yyerror ada_error
-#define yylval ada_lval
-#define yychar ada_char
-#define yydebug ada_debug
-#define yypact ada_pact
-#define yyr1 ada_r1
-#define yyr2 ada_r2
-#define yydef ada_def
-#define yychk ada_chk
-#define yypgo ada_pgo
-#define yyact ada_act
-#define yyexca ada_exca
-#define yyerrflag ada_errflag
-#define yynerrs ada_nerrs
-#define yyps ada_ps
-#define yypv ada_pv
-#define yys ada_s
-#define yy_yys ada_yys
-#define yystate ada_state
-#define yytmp ada_tmp
-#define yyv ada_v
-#define yy_yyv ada_yyv
-#define yyval ada_val
-#define yylloc ada_lloc
-#define yyreds ada_reds /* With YYDEBUG defined */
-#define yytoks ada_toks /* With YYDEBUG defined */
-#define yyname ada_name /* With YYDEBUG defined */
-#define yyrule ada_rule /* With YYDEBUG defined */
-
-#ifndef YYDEBUG
-#define YYDEBUG 1 /* Default to yydebug support */
-#endif
-
-#define YYFPRINTF parser_fprintf
-
-struct name_info {
- struct symbol* sym;
- struct minimal_symbol* msym;
- struct block* block;
- struct stoken stoken;
-};
-
-/* If expression is in the context of TYPE'(...), then TYPE, else
- * NULL. */
-static struct type* type_qualifier;
-
-int yyparse (void);
-
-static int yylex (void);
-
-void yyerror (char *);
-
-static struct stoken string_to_operator (struct stoken);
-
-static void write_attribute_call0 (enum ada_attribute);
-
-static void write_attribute_call1 (enum ada_attribute, LONGEST);
-
-static void write_attribute_calln (enum ada_attribute, int);
-
-static void write_object_renaming (struct block*, struct symbol*);
-
-static void write_var_from_name (struct block*, struct name_info);
-
-static LONGEST
-convert_char_literal (struct type*, LONGEST);
-
-
-/* Enabling traces. */
-#ifndef YYDEBUG
-# define YYDEBUG 0
-#endif
-
-/* Enabling verbose error messages. */
-#ifdef YYERROR_VERBOSE
-# undef YYERROR_VERBOSE
-# define YYERROR_VERBOSE 1
-#else
-# define YYERROR_VERBOSE 0
-#endif
-
-#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
-#line 137 "ada-exp.y"
-typedef union YYSTYPE {
- LONGEST lval;
- struct {
- LONGEST val;
- struct type *type;
- } typed_val;
- struct {
- DOUBLEST dval;
- struct type *type;
- } typed_val_float;
- struct type *tval;
- struct stoken sval;
- struct name_info ssym;
- int voidval;
- struct block *bval;
- struct internalvar *ivar;
-
- } YYSTYPE;
-/* Line 191 of yacc.c. */
-# define yystype YYSTYPE /* obsolescent; will be withdrawn */
-# define YYSTYPE_IS_DECLARED 1
-# define YYSTYPE_IS_TRIVIAL 1
-#endif
-
-
-
-/* Copy the second part of user declarations. */
-
-
-/* Line 214 of yacc.c. */
-
-#if ! defined (yyoverflow) || YYERROR_VERBOSE
-
-/* The parser invokes alloca or xmalloc; define the necessary symbols. */
-
-# if YYSTACK_USE_ALLOCA
-# define YYSTACK_ALLOC alloca
-# else
-# ifndef YYSTACK_USE_ALLOCA
-# if defined (alloca) || defined (_ALLOCA_H)
-# define YYSTACK_ALLOC alloca
-# else
-# ifdef __GNUC__
-# define YYSTACK_ALLOC __builtin_alloca
-# endif
-# endif
-# endif
-# endif
-
-# ifdef YYSTACK_ALLOC
- /* Pacify GCC's `empty if-body' warning. */
-# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
-# else
-# if defined (__STDC__) || defined (__cplusplus)
-# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
-# define YYSIZE_T size_t
-# endif
-# define YYSTACK_ALLOC xmalloc
-# define YYSTACK_FREE free
-# endif
-#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */
-
-
-#if (! defined (yyoverflow) \
- && (! defined (__cplusplus) \
- || (YYSTYPE_IS_TRIVIAL)))
-
-/* A type that is properly aligned for any stack member. */
-union yyalloc
-{
- short yyss;
- YYSTYPE yyvs;
- };
-
-/* The size of the maximum gap between one aligned stack and the next. */
-# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
-
-/* The size of an array large to enough to hold all stacks, each with
- N elements. */
-# define YYSTACK_BYTES(N) \
- ((N) * (sizeof (short) + sizeof (YYSTYPE)) \
- + YYSTACK_GAP_MAXIMUM)
-
-/* Copy COUNT objects from FROM to TO. The source and destination do
- not overlap. */
-# ifndef YYCOPY
-# if 1 < __GNUC__
-# define YYCOPY(To, From, Count) \
- __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
-# else
-# define YYCOPY(To, From, Count) \
- do \
- { \
- register YYSIZE_T yyi; \
- for (yyi = 0; yyi < (Count); yyi++) \
- (To)[yyi] = (From)[yyi]; \
- } \
- while (0)
-# endif
-# endif
-
-/* Relocate STACK from its old location to the new one. The
- local variables YYSIZE and YYSTACKSIZE give the old and new number of
- elements in the stack, and YYPTR gives the new location of the
- stack. Advance YYPTR to a properly aligned location for the next
- stack. */
-# define YYSTACK_RELOCATE(Stack) \
- do \
- { \
- YYSIZE_T yynewbytes; \
- YYCOPY (&yyptr->Stack, Stack, yysize); \
- Stack = &yyptr->Stack; \
- yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
- yyptr += yynewbytes / sizeof (*yyptr); \
- } \
- while (0)
-
-#endif
-
-#if defined (__STDC__) || defined (__cplusplus)
- typedef signed char yysigned_char;
-#else
- typedef short yysigned_char;
-#endif
-
-/* YYFINAL -- State number of the termination state. */
-#define YYFINAL 44
-/* YYLAST -- Last index in YYTABLE. */
-#define YYLAST 1067
-
-/* YYNTOKENS -- Number of terminals. */
-#define YYNTOKENS 68
-/* YYNNTS -- Number of nonterminals. */
-#define YYNNTS 15
-/* YYNRULES -- Number of rules. */
-#define YYNRULES 98
-/* YYNRULES -- Number of states. */
-#define YYNSTATES 184
-
-/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
-#define YYUNDEFTOK 2
-#define YYMAXUTOK 303
-
-#define YYTRANSLATE(YYX) \
- ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
-
-/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
-static const unsigned char yytranslate[] =
-{
- 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 34, 63,
- 57, 62, 36, 32, 64, 33, 56, 37, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 61,
- 24, 23, 25, 2, 31, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 58, 2, 67, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 65, 2, 66, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
- 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
- 15, 16, 17, 18, 19, 20, 21, 22, 26, 27,
- 28, 29, 30, 35, 38, 39, 40, 41, 42, 43,
- 44, 45, 46, 47, 48, 49, 50, 51, 52, 53,
- 54, 55, 59, 60
-};
-
-#if YYDEBUG
-/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
- YYRHS. */
-static const unsigned short yyprhs[] =
-{
- 0, 0, 3, 5, 7, 9, 13, 16, 19, 24,
- 29, 30, 38, 39, 46, 50, 52, 54, 56, 58,
- 60, 64, 67, 70, 73, 76, 77, 79, 83, 87,
- 93, 98, 102, 106, 110, 114, 118, 122, 126, 130,
- 134, 138, 142, 146, 152, 158, 162, 169, 176, 181,
- 185, 189, 193, 197, 202, 206, 211, 215, 218, 221,
- 225, 229, 233, 236, 239, 247, 255, 261, 265, 269,
- 273, 279, 282, 283, 287, 289, 291, 292, 294, 296,
- 298, 300, 302, 305, 307, 310, 312, 315, 317, 319,
- 321, 323, 326, 328, 331, 334, 338, 341, 344
-};
-
-/* YYRHS -- A `-1'-separated list of the rules' RHS. */
-static const yysigned_char yyrhs[] =
-{
- 69, 0, -1, 70, -1, 82, -1, 74, -1, 70,
- 61, 74, -1, 71, 13, -1, 71, 11, -1, 71,
- 57, 75, 62, -1, 82, 57, 74, 62, -1, -1,
- 82, 63, 73, 72, 57, 74, 62, -1, -1, 71,
- 57, 74, 26, 74, 62, -1, 57, 70, 62, -1,
- 79, -1, 15, -1, 16, -1, 71, -1, 14, -1,
- 74, 17, 74, -1, 33, 74, -1, 32, 74, -1,
- 40, 74, -1, 41, 74, -1, -1, 74, -1, 80,
- 59, 74, -1, 75, 64, 74, -1, 75, 64, 80,
- 59, 74, -1, 65, 82, 66, 74, -1, 74, 42,
- 74, -1, 74, 36, 74, -1, 74, 37, 74, -1,
- 74, 38, 74, -1, 74, 39, 74, -1, 74, 31,
- 74, -1, 74, 32, 74, -1, 74, 34, 74, -1,
- 74, 33, 74, -1, 74, 23, 74, -1, 74, 30,
- 74, -1, 74, 29, 74, -1, 74, 27, 74, 26,
- 74, -1, 74, 27, 74, 54, 76, -1, 74, 27,
- 7, -1, 74, 40, 27, 74, 26, 74, -1, 74,
- 40, 27, 74, 54, 76, -1, 74, 40, 27, 7,
- -1, 74, 28, 74, -1, 74, 24, 74, -1, 74,
- 25, 74, -1, 74, 22, 74, -1, 74, 22, 19,
- 74, -1, 74, 21, 74, -1, 74, 21, 18, 74,
- -1, 74, 20, 74, -1, 71, 47, -1, 71, 46,
- -1, 71, 45, 76, -1, 71, 44, 76, -1, 71,
- 43, 76, -1, 71, 53, -1, 71, 52, -1, 78,
- 49, 57, 74, 64, 74, 62, -1, 78, 50, 57,
- 74, 64, 74, 62, -1, 78, 55, 57, 74, 62,
- -1, 77, 45, 76, -1, 77, 44, 76, -1, 77,
- 43, 76, -1, 77, 51, 57, 74, 62, -1, 77,
- 48, -1, -1, 57, 3, 62, -1, 7, -1, 77,
- -1, -1, 3, -1, 5, -1, 6, -1, 4, -1,
- 9, -1, 60, 7, -1, 10, -1, 81, 10, -1,
- 12, -1, 81, 12, -1, 10, -1, 7, -1, 12,
- -1, 8, -1, 81, 8, -1, 7, -1, 81, 7,
- -1, 7, 47, -1, 81, 7, 47, -1, 36, 74,
- -1, 34, 74, -1, 74, 58, 74, 67, -1
-};
-
-/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
-static const unsigned short yyrline[] =
-{
- 0, 208, 208, 209, 215, 216, 221, 225, 232, 240,
- 248, 248, 259, 263, 267, 270, 273, 280, 288, 291,
- 298, 302, 306, 310, 314, 318, 321, 323, 325, 327,
- 331, 341, 345, 349, 353, 357, 361, 365, 369, 373,
- 377, 381, 385, 389, 393, 399, 406, 411, 419, 429,
- 433, 437, 441, 445, 449, 453, 457, 461, 463, 469,
- 471, 473, 475, 477, 479, 481, 483, 485, 487, 489,
- 491, 493, 497, 499, 504, 511, 513, 519, 527, 539,
- 547, 555, 582, 586, 587, 589, 590, 594, 595, 596,
- 599, 601, 606, 607, 608, 610, 617, 619, 621
-};
-#endif
-
-#if YYDEBUG || YYERROR_VERBOSE
-/* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
- First, the terminals, then, starting at YYNTOKENS, nonterminals. */
-static const char *const yytname[] =
-{
- "$end", "error", "$undefined", "INT", "NULL_PTR", "CHARLIT", "FLOAT",
- "TYPENAME", "BLOCKNAME", "STRING", "NAME", "DOT_ID", "OBJECT_RENAMING",
- "DOT_ALL", "LAST", "REGNAME", "INTERNAL_VARIABLE", "ASSIGN", "ELSE",
- "THEN", "XOR", "OR", "_AND_", "'='", "'<'", "'>'", "DOTDOT", "IN",
- "GEQ", "LEQ", "NOTEQUAL", "'@'", "'+'", "'-'", "'&'", "UNARY", "'*'",
- "'/'", "REM", "MOD", "NOT", "ABS", "STARSTAR", "TICK_LENGTH",
- "TICK_LAST", "TICK_FIRST", "TICK_ADDRESS", "TICK_ACCESS",
- "TICK_MODULUS", "TICK_MIN", "TICK_MAX", "TICK_VAL", "TICK_TAG",
- "TICK_SIZE", "TICK_RANGE", "TICK_POS", "'.'", "'('", "'['", "ARROW",
- "NEW", "';'", "')'", "'''", "','", "'{'", "'}'", "']'", "$accept",
- "start", "exp1", "simple_exp", "@1", "save_qualifier", "exp", "arglist",
- "tick_arglist", "type_prefix", "opt_type_prefix", "variable",
- "any_name", "block", "type", 0
-};
-#endif
-
-# ifdef YYPRINT
-/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
- token YYLEX-NUM. */
-static const unsigned short yytoknum[] =
-{
- 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
- 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
- 275, 276, 277, 61, 60, 62, 278, 279, 280, 281,
- 282, 64, 43, 45, 38, 283, 42, 47, 284, 285,
- 286, 287, 288, 289, 290, 291, 292, 293, 294, 295,
- 296, 297, 298, 299, 300, 301, 46, 40, 91, 302,
- 303, 59, 41, 39, 44, 123, 125, 93
-};
-# endif
-
-/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
-static const unsigned char yyr1[] =
-{
- 0, 68, 69, 69, 70, 70, 71, 71, 71, 71,
- 72, 71, 73, 71, 71, 71, 71, 71, 74, 71,
- 74, 74, 74, 74, 74, 75, 75, 75, 75, 75,
- 74, 74, 74, 74, 74, 74, 74, 74, 74, 74,
- 74, 74, 74, 74, 74, 74, 74, 74, 74, 74,
- 74, 74, 74, 74, 74, 74, 74, 71, 71, 71,
- 71, 71, 71, 71, 71, 71, 71, 71, 71, 71,
- 71, 71, 76, 76, 77, 78, 78, 74, 74, 74,
- 74, 74, 74, 79, 79, 79, 79, 80, 80, 80,
- 81, 81, 82, 82, 82, 82, 74, 74, 74
-};
-
-/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
-static const unsigned char yyr2[] =
-{
- 0, 2, 1, 1, 1, 3, 2, 2, 4, 4,
- 0, 7, 0, 6, 3, 1, 1, 1, 1, 1,
- 3, 2, 2, 2, 2, 0, 1, 3, 3, 5,
- 4, 3, 3, 3, 3, 3, 3, 3, 3, 3,
- 3, 3, 3, 5, 5, 3, 6, 6, 4, 3,
- 3, 3, 3, 4, 3, 4, 3, 2, 2, 3,
- 3, 3, 2, 2, 7, 7, 5, 3, 3, 3,
- 5, 2, 0, 3, 1, 1, 0, 1, 1, 1,
- 1, 1, 2, 1, 2, 1, 2, 1, 1, 1,
- 1, 2, 1, 2, 2, 3, 2, 2, 4
-};
-
-/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
- STATE-NUM when YYTABLE doesn't specify something else to do. Zero
- means the default is an error. */
-static const unsigned char yydefact[] =
-{
- 76, 77, 80, 78, 79, 74, 90, 81, 83, 85,
- 19, 16, 17, 76, 76, 76, 76, 76, 76, 76,
- 0, 0, 0, 2, 18, 4, 75, 0, 15, 0,
- 3, 94, 22, 0, 21, 97, 96, 23, 24, 0,
- 82, 92, 0, 0, 1, 76, 7, 6, 72, 72,
- 72, 58, 57, 63, 62, 76, 76, 76, 76, 76,
- 76, 76, 76, 76, 76, 76, 76, 76, 76, 76,
- 76, 76, 76, 76, 76, 0, 76, 76, 72, 72,
- 72, 71, 0, 0, 0, 0, 93, 91, 84, 86,
- 76, 12, 14, 76, 5, 0, 61, 60, 59, 74,
- 83, 85, 26, 0, 0, 20, 56, 76, 54, 76,
- 52, 40, 50, 51, 45, 0, 49, 42, 41, 36,
- 37, 39, 38, 32, 33, 34, 35, 76, 31, 0,
- 69, 68, 67, 76, 76, 76, 76, 95, 0, 10,
- 30, 0, 76, 8, 76, 76, 55, 53, 76, 72,
- 48, 0, 98, 0, 0, 0, 0, 9, 0, 73,
- 0, 28, 0, 27, 43, 44, 76, 72, 70, 76,
- 76, 66, 76, 13, 76, 46, 47, 0, 0, 0,
- 29, 64, 65, 11
-};
-
-/* YYDEFGOTO[NTERM-NUM]. */
-static const short yydefgoto[] =
-{
- -1, 22, 23, 24, 158, 139, 25, 103, 96, 26,
- 27, 28, 104, 29, 33
-};
-
-/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
- STATE-NUM. */
-#define YYPACT_NINF -44
-static const short yypact[] =
-{
- 251, -44, -44, -44, -44, 15, -44, -44, -44, -44,
- -44, -44, -44, 251, 251, 251, 251, 251, 251, 251,
- 17, 2, 31, 10, 55, 947, -18, 20, -44, 118,
- -29, -44, 374, -29, 374, 18, 18, 374, 374, -21,
- -44, 32, 66, 16, -44, 251, -44, -44, 24, 24,
- 24, -44, -44, -44, -44, 133, 251, 251, 173, 212,
- 251, 251, 251, 290, 251, 251, 251, 251, 251, 251,
- 251, 251, 251, 251, 251, 59, 251, 251, 24, 24,
- 24, -44, 35, 38, 40, 47, 58, -44, -44, -44,
- 251, -44, -44, 251, 947, 107, -44, -44, -44, 56,
- 52, 57, 915, 3, 68, 979, 1002, 251, 1002, 251,
- 1002, -20, -20, -20, 1004, 837, -20, -20, -20, 51,
- 374, 374, 374, -19, -19, -19, -19, 329, -19, 414,
- -44, -44, -44, 251, 251, 251, 251, -44, 536, -44,
- 18, 71, 251, -44, 368, 251, 1002, 1002, 251, 24,
- 1004, 876, -44, 579, 446, 491, 622, -44, 60, -44,
- 665, 947, 75, 947, -20, -44, 251, 24, -44, 251,
- 251, -44, 251, -44, 251, -20, -44, 708, 751, 794,
- 947, -44, -44, -44
-};
-
-/* YYPGOTO[NTERM-NUM]. */
-static const yysigned_char yypgoto[] =
-{
- -44, -44, 99, -44, -44, -44, -13, -44, -43, -44,
- -44, -44, 0, 125, 8
-};
-
-/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
- positive, shift that token. If negative, reduce the rule which
- number is the opposite. If zero, do what YYDEFACT says.
- If YYTABLE_NINF, syntax error. */
-#define YYTABLE_NINF -93
-static const short yytable[] =
-{
- 32, 34, 35, 36, 37, 38, 97, 98, 30, 41,
- 6, 67, 68, 69, 70, -92, 71, 72, 73, 74,
- 75, 75, 76, 76, 40, 78, 79, 80, 90, 43,
- 81, 44, 94, 82, 91, 130, 131, 132, 77, 77,
- 45, 92, 102, 105, 106, 108, 110, 111, 112, 113,
- 115, 116, 117, 118, 119, 120, 121, 122, 123, 124,
- 125, 126, 31, 128, 129, 143, 46, 144, 47, 83,
- 84, 45, -92, 86, 87, 85, 77, 138, -92, 31,
- 140, 95, 93, 68, 69, 70, 127, 71, 72, 73,
- 74, 75, 133, 76, 146, 134, 147, 135, 48, 49,
- 50, 51, 52, 31, 136, 137, 165, 53, 54, 77,
- 141, -87, 55, -92, 151, -88, -89, 172, 39, -92,
- 153, 154, 155, 156, 176, 86, 87, 145, 88, 160,
- 89, 161, 163, 159, 174, 164, 1, 2, 3, 4,
- 99, 6, 7, 100, 162, 101, 42, 10, 11, 12,
- 0, 0, 0, 175, 0, 0, 177, 178, 0, 179,
- 0, 180, 0, 0, 0, 13, 14, 15, 0, 16,
- 0, 0, 0, 17, 18, 0, 1, 2, 3, 4,
- 5, 6, 7, 8, 0, 9, 0, 10, 11, 12,
- 19, 107, 0, 20, 0, -25, 0, -25, 21, 0,
- 0, 0, 0, 0, 0, 13, 14, 15, 0, 16,
- 0, 0, 0, 17, 18, 1, 2, 3, 4, 5,
- 6, 7, 8, 0, 9, 0, 10, 11, 12, 0,
- 19, 109, 0, 20, 0, 0, 0, 0, 21, 0,
- 0, 0, 0, 0, 13, 14, 15, 0, 16, 0,
- 0, 0, 17, 18, 1, 2, 3, 4, 5, 6,
- 7, 8, 0, 9, 0, 10, 11, 12, 0, 19,
- 0, 0, 20, 0, 0, 0, 0, 21, 0, 0,
- 0, 0, 0, 13, 14, 15, 0, 16, 0, 0,
- 0, 17, 18, 1, 2, 3, 4, 114, 6, 7,
- 8, 0, 9, 0, 10, 11, 12, 0, 19, 0,
- 0, 20, 0, 0, 0, 0, 21, 0, 0, 0,
- 0, 0, 13, 14, 15, 0, 16, 0, 0, 0,
- 17, 18, 1, 2, 3, 4, 150, 6, 7, 8,
- 0, 9, 0, 10, 11, 12, 0, 19, 0, 0,
- 20, 0, 0, 0, 0, 21, 0, 0, 0, 0,
- 0, 13, 14, 15, 0, 16, 0, 0, 0, 17,
- 18, 1, 2, 3, 4, 99, 6, 7, 100, 0,
- 101, 0, 10, 11, 12, 0, 19, 0, 0, 20,
- 0, 0, 0, 0, 21, 0, 0, 0, 0, 0,
- 13, 14, 15, 0, 16, 0, 0, 0, 17, 18,
- 71, 72, 73, 74, 75, 0, 76, 0, 0, 0,
- 0, 0, 0, 0, 0, 19, 0, 0, 20, 0,
- 0, 56, 77, 21, 57, 58, 59, 60, 61, 62,
- 0, 63, 64, 65, 66, 67, 68, 69, 70, 0,
- 71, 72, 73, 74, 75, 0, 76, 0, 0, 0,
- 0, 0, 0, 56, 0, 0, 57, 58, 59, 60,
- 61, 62, 77, 63, 64, 65, 66, 67, 68, 69,
- 70, 152, 71, 72, 73, 74, 75, 0, 76, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 77, 0, 0, 0, 56, 0,
- 169, 57, 58, 59, 60, 61, 62, 0, 63, 64,
- 65, 66, 67, 68, 69, 70, 0, 71, 72, 73,
- 74, 75, 0, 76, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 77,
- 0, 0, 0, 56, 0, 170, 57, 58, 59, 60,
- 61, 62, 0, 63, 64, 65, 66, 67, 68, 69,
- 70, 0, 71, 72, 73, 74, 75, 0, 76, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 77, 0, 56, 0, 157, 57,
- 58, 59, 60, 61, 62, 0, 63, 64, 65, 66,
- 67, 68, 69, 70, 0, 71, 72, 73, 74, 75,
- 0, 76, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 77, 0, 56,
- 0, 168, 57, 58, 59, 60, 61, 62, 0, 63,
- 64, 65, 66, 67, 68, 69, 70, 0, 71, 72,
- 73, 74, 75, 0, 76, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 77, 0, 56, 0, 171, 57, 58, 59, 60, 61,
- 62, 0, 63, 64, 65, 66, 67, 68, 69, 70,
- 0, 71, 72, 73, 74, 75, 0, 76, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 77, 0, 56, 0, 173, 57, 58,
- 59, 60, 61, 62, 0, 63, 64, 65, 66, 67,
- 68, 69, 70, 0, 71, 72, 73, 74, 75, 0,
- 76, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 77, 0, 56, 0,
- 181, 57, 58, 59, 60, 61, 62, 0, 63, 64,
- 65, 66, 67, 68, 69, 70, 0, 71, 72, 73,
- 74, 75, 0, 76, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 77,
- 0, 56, 0, 182, 57, 58, 59, 60, 61, 62,
- 0, 63, 64, 65, 66, 67, 68, 69, 70, 0,
- 71, 72, 73, 74, 75, 0, 76, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 77, 0, 56, 0, 183, 57, 58, 59,
- 60, 61, 62, 148, 63, 64, 65, 66, 67, 68,
- 69, 70, 0, 71, 72, 73, 74, 75, 0, 76,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 149, 0, 56, 0, 77, 57, 58, 59, 60,
- 61, 62, 166, 63, 64, 65, 66, 67, 68, 69,
- 70, 0, 71, 72, 73, 74, 75, 0, 76, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 167, 0, 56, 0, 77, 57, 58, 59, 60, 61,
- 62, 142, 63, 64, 65, 66, 67, 68, 69, 70,
- 0, 71, 72, 73, 74, 75, 0, 76, 0, 0,
- 0, 0, 0, 0, 56, 0, 0, 57, 58, 59,
- 60, 61, 62, 77, 63, 64, 65, 66, 67, 68,
- 69, 70, 0, 71, 72, 73, 74, 75, 0, 76,
- 0, 0, 0, 0, 0, 0, -93, 0, 0, 57,
- 58, 59, 60, 61, 62, 77, 63, 64, 65, 66,
- 67, 68, 69, 70, 0, 71, 72, 73, 74, 75,
- 0, 76, 0, 0, 0, 60, 61, 62, 0, 63,
- 64, 65, 66, 67, 68, 69, 70, 77, 71, 72,
- 73, 74, 75, 0, 76, 0, 0, -74, -74, -74,
- 0, 31, -74, -74, -74, -74, 0, 0, 0, -74,
- 77, -92, 0, 0, 0, 0, 0, -92
-};
-
-static const short yycheck[] =
-{
- 13, 14, 15, 16, 17, 18, 49, 50, 0, 7,
- 8, 31, 32, 33, 34, 0, 36, 37, 38, 39,
- 40, 40, 42, 42, 7, 43, 44, 45, 57, 21,
- 48, 0, 45, 51, 63, 78, 79, 80, 58, 58,
- 61, 62, 55, 56, 57, 58, 59, 60, 61, 62,
- 63, 64, 65, 66, 67, 68, 69, 70, 71, 72,
- 73, 74, 47, 76, 77, 62, 11, 64, 13, 49,
- 50, 61, 57, 7, 8, 55, 58, 90, 63, 47,
- 93, 57, 66, 32, 33, 34, 27, 36, 37, 38,
- 39, 40, 57, 42, 107, 57, 109, 57, 43, 44,
- 45, 46, 47, 47, 57, 47, 149, 52, 53, 58,
- 3, 59, 57, 57, 127, 59, 59, 57, 19, 63,
- 133, 134, 135, 136, 167, 7, 8, 59, 10, 142,
- 12, 144, 145, 62, 59, 148, 3, 4, 5, 6,
- 7, 8, 9, 10, 144, 12, 21, 14, 15, 16,
- -1, -1, -1, 166, -1, -1, 169, 170, -1, 172,
- -1, 174, -1, -1, -1, 32, 33, 34, -1, 36,
- -1, -1, -1, 40, 41, -1, 3, 4, 5, 6,
- 7, 8, 9, 10, -1, 12, -1, 14, 15, 16,
- 57, 18, -1, 60, -1, 62, -1, 64, 65, -1,
- -1, -1, -1, -1, -1, 32, 33, 34, -1, 36,
- -1, -1, -1, 40, 41, 3, 4, 5, 6, 7,
- 8, 9, 10, -1, 12, -1, 14, 15, 16, -1,
- 57, 19, -1, 60, -1, -1, -1, -1, 65, -1,
- -1, -1, -1, -1, 32, 33, 34, -1, 36, -1,
- -1, -1, 40, 41, 3, 4, 5, 6, 7, 8,
- 9, 10, -1, 12, -1, 14, 15, 16, -1, 57,
- -1, -1, 60, -1, -1, -1, -1, 65, -1, -1,
- -1, -1, -1, 32, 33, 34, -1, 36, -1, -1,
- -1, 40, 41, 3, 4, 5, 6, 7, 8, 9,
- 10, -1, 12, -1, 14, 15, 16, -1, 57, -1,
- -1, 60, -1, -1, -1, -1, 65, -1, -1, -1,
- -1, -1, 32, 33, 34, -1, 36, -1, -1, -1,
- 40, 41, 3, 4, 5, 6, 7, 8, 9, 10,
- -1, 12, -1, 14, 15, 16, -1, 57, -1, -1,
- 60, -1, -1, -1, -1, 65, -1, -1, -1, -1,
- -1, 32, 33, 34, -1, 36, -1, -1, -1, 40,
- 41, 3, 4, 5, 6, 7, 8, 9, 10, -1,
- 12, -1, 14, 15, 16, -1, 57, -1, -1, 60,
- -1, -1, -1, -1, 65, -1, -1, -1, -1, -1,
- 32, 33, 34, -1, 36, -1, -1, -1, 40, 41,
- 36, 37, 38, 39, 40, -1, 42, -1, -1, -1,
- -1, -1, -1, -1, -1, 57, -1, -1, 60, -1,
- -1, 17, 58, 65, 20, 21, 22, 23, 24, 25,
- -1, 27, 28, 29, 30, 31, 32, 33, 34, -1,
- 36, 37, 38, 39, 40, -1, 42, -1, -1, -1,
- -1, -1, -1, 17, -1, -1, 20, 21, 22, 23,
- 24, 25, 58, 27, 28, 29, 30, 31, 32, 33,
- 34, 67, 36, 37, 38, 39, 40, -1, 42, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, 58, -1, -1, -1, 17, -1,
- 64, 20, 21, 22, 23, 24, 25, -1, 27, 28,
- 29, 30, 31, 32, 33, 34, -1, 36, 37, 38,
- 39, 40, -1, 42, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, 58,
- -1, -1, -1, 17, -1, 64, 20, 21, 22, 23,
- 24, 25, -1, 27, 28, 29, 30, 31, 32, 33,
- 34, -1, 36, 37, 38, 39, 40, -1, 42, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, 58, -1, 17, -1, 62, 20,
- 21, 22, 23, 24, 25, -1, 27, 28, 29, 30,
- 31, 32, 33, 34, -1, 36, 37, 38, 39, 40,
- -1, 42, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, 58, -1, 17,
- -1, 62, 20, 21, 22, 23, 24, 25, -1, 27,
- 28, 29, 30, 31, 32, 33, 34, -1, 36, 37,
- 38, 39, 40, -1, 42, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- 58, -1, 17, -1, 62, 20, 21, 22, 23, 24,
- 25, -1, 27, 28, 29, 30, 31, 32, 33, 34,
- -1, 36, 37, 38, 39, 40, -1, 42, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, 58, -1, 17, -1, 62, 20, 21,
- 22, 23, 24, 25, -1, 27, 28, 29, 30, 31,
- 32, 33, 34, -1, 36, 37, 38, 39, 40, -1,
- 42, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, 58, -1, 17, -1,
- 62, 20, 21, 22, 23, 24, 25, -1, 27, 28,
- 29, 30, 31, 32, 33, 34, -1, 36, 37, 38,
- 39, 40, -1, 42, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, 58,
- -1, 17, -1, 62, 20, 21, 22, 23, 24, 25,
- -1, 27, 28, 29, 30, 31, 32, 33, 34, -1,
- 36, 37, 38, 39, 40, -1, 42, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, 58, -1, 17, -1, 62, 20, 21, 22,
- 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
- 33, 34, -1, 36, 37, 38, 39, 40, -1, 42,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, 54, -1, 17, -1, 58, 20, 21, 22, 23,
- 24, 25, 26, 27, 28, 29, 30, 31, 32, 33,
- 34, -1, 36, 37, 38, 39, 40, -1, 42, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- 54, -1, 17, -1, 58, 20, 21, 22, 23, 24,
- 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
- -1, 36, 37, 38, 39, 40, -1, 42, -1, -1,
- -1, -1, -1, -1, 17, -1, -1, 20, 21, 22,
- 23, 24, 25, 58, 27, 28, 29, 30, 31, 32,
- 33, 34, -1, 36, 37, 38, 39, 40, -1, 42,
- -1, -1, -1, -1, -1, -1, 17, -1, -1, 20,
- 21, 22, 23, 24, 25, 58, 27, 28, 29, 30,
- 31, 32, 33, 34, -1, 36, 37, 38, 39, 40,
- -1, 42, -1, -1, -1, 23, 24, 25, -1, 27,
- 28, 29, 30, 31, 32, 33, 34, 58, 36, 37,
- 38, 39, 40, -1, 42, -1, -1, 43, 44, 45,
- -1, 47, 48, 49, 50, 51, -1, -1, -1, 55,
- 58, 57, -1, -1, -1, -1, -1, 63
-};
-
-/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
- symbol of state STATE-NUM. */
-static const unsigned char yystos[] =
-{
- 0, 3, 4, 5, 6, 7, 8, 9, 10, 12,
- 14, 15, 16, 32, 33, 34, 36, 40, 41, 57,
- 60, 65, 69, 70, 71, 74, 77, 78, 79, 81,
- 82, 47, 74, 82, 74, 74, 74, 74, 74, 70,
- 7, 7, 81, 82, 0, 61, 11, 13, 43, 44,
- 45, 46, 47, 52, 53, 57, 17, 20, 21, 22,
- 23, 24, 25, 27, 28, 29, 30, 31, 32, 33,
- 34, 36, 37, 38, 39, 40, 42, 58, 43, 44,
- 45, 48, 51, 49, 50, 55, 7, 8, 10, 12,
- 57, 63, 62, 66, 74, 57, 76, 76, 76, 7,
- 10, 12, 74, 75, 80, 74, 74, 18, 74, 19,
- 74, 74, 74, 74, 7, 74, 74, 74, 74, 74,
- 74, 74, 74, 74, 74, 74, 74, 27, 74, 74,
- 76, 76, 76, 57, 57, 57, 57, 47, 74, 73,
- 74, 3, 26, 62, 64, 59, 74, 74, 26, 54,
- 7, 74, 67, 74, 74, 74, 74, 62, 72, 62,
- 74, 74, 80, 74, 74, 76, 26, 54, 62, 64,
- 64, 62, 57, 62, 59, 74, 76, 74, 74, 74,
- 74, 62, 62, 62
-};
-
-#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
-# define YYSIZE_T __SIZE_TYPE__
-#endif
-#if ! defined (YYSIZE_T) && defined (size_t)
-# define YYSIZE_T size_t
-#endif
-#if ! defined (YYSIZE_T)
-# if defined (__STDC__) || defined (__cplusplus)
-# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
-# define YYSIZE_T size_t
-# endif
-#endif
-#if ! defined (YYSIZE_T)
-# define YYSIZE_T unsigned int
-#endif
-
-#define yyerrok (yyerrstatus = 0)
-#define yyclearin (yychar = YYEMPTY)
-#define YYEMPTY (-2)
-#define YYEOF 0
-
-#define YYACCEPT goto yyacceptlab
-#define YYABORT goto yyabortlab
-#define YYERROR goto yyerrlab1
-
-/* Like YYERROR except do call yyerror. This remains here temporarily
- to ease the transition to the new meaning of YYERROR, for GCC.
- Once GCC version 2 has supplanted version 1, this can go. */
-
-#define YYFAIL goto yyerrlab
-
-#define YYRECOVERING() (!!yyerrstatus)
-
-#define YYBACKUP(Token, Value) \
-do \
- if (yychar == YYEMPTY && yylen == 1) \
- { \
- yychar = (Token); \
- yylval = (Value); \
- yytoken = YYTRANSLATE (yychar); \
- YYPOPSTACK; \
- goto yybackup; \
- } \
- else \
- { \
- yyerror ("syntax error: cannot back up");\
- YYERROR; \
- } \
-while (0)
-
-#define YYTERROR 1
-#define YYERRCODE 256
-
-/* YYLLOC_DEFAULT -- Compute the default location (before the actions
- are run). */
-
-#ifndef YYLLOC_DEFAULT
-# define YYLLOC_DEFAULT(Current, Rhs, N) \
- Current.first_line = Rhs[1].first_line; \
- Current.first_column = Rhs[1].first_column; \
- Current.last_line = Rhs[N].last_line; \
- Current.last_column = Rhs[N].last_column;
-#endif
-
-/* YYLEX -- calling `yylex' with the right arguments. */
-
-#ifdef YYLEX_PARAM
-# define YYLEX yylex (YYLEX_PARAM)
-#else
-# define YYLEX yylex ()
-#endif
-
-/* Enable debugging if requested. */
-#if YYDEBUG
-
-# ifndef YYFPRINTF
-# include <stdio.h> /* INFRINGES ON USER NAME SPACE */
-# define YYFPRINTF fprintf
-# endif
-
-# define YYDPRINTF(Args) \
-do { \
- if (yydebug) \
- YYFPRINTF Args; \
-} while (0)
-
-# define YYDSYMPRINT(Args) \
-do { \
- if (yydebug) \
- yysymprint Args; \
-} while (0)
-
-# define YYDSYMPRINTF(Title, Token, Value, Location) \
-do { \
- if (yydebug) \
- { \
- YYFPRINTF (stderr, "%s ", Title); \
- yysymprint (stderr, \
- Token, Value); \
- YYFPRINTF (stderr, "\n"); \
- } \
-} while (0)
-
-/*------------------------------------------------------------------.
-| yy_stack_print -- Print the state stack from its BOTTOM up to its |
-| TOP (cinluded). |
-`------------------------------------------------------------------*/
-
-#if defined (__STDC__) || defined (__cplusplus)
-static void
-yy_stack_print (short *bottom, short *top)
-#else
-static void
-yy_stack_print (bottom, top)
- short *bottom;
- short *top;
-#endif
-{
- YYFPRINTF (stderr, "Stack now");
- for (/* Nothing. */; bottom <= top; ++bottom)
- YYFPRINTF (stderr, " %d", *bottom);
- YYFPRINTF (stderr, "\n");
-}
-
-# define YY_STACK_PRINT(Bottom, Top) \
-do { \
- if (yydebug) \
- yy_stack_print ((Bottom), (Top)); \
-} while (0)
-
-
-/*------------------------------------------------.
-| Report that the YYRULE is going to be reduced. |
-`------------------------------------------------*/
-
-#if defined (__STDC__) || defined (__cplusplus)
-static void
-yy_reduce_print (int yyrule)
-#else
-static void
-yy_reduce_print (yyrule)
- int yyrule;
-#endif
-{
- int yyi;
- unsigned int yylineno = yyrline[yyrule];
- YYFPRINTF (stderr, "Reducing stack by rule %d (line %u), ",
- yyrule - 1, yylineno);
- /* Print the symbols being reduced, and their result. */
- for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++)
- YYFPRINTF (stderr, "%s ", yytname [yyrhs[yyi]]);
- YYFPRINTF (stderr, "-> %s\n", yytname [yyr1[yyrule]]);
-}
-
-# define YY_REDUCE_PRINT(Rule) \
-do { \
- if (yydebug) \
- yy_reduce_print (Rule); \
-} while (0)
-
-/* Nonzero means print parse trace. It is left uninitialized so that
- multiple parsers can coexist. */
-int yydebug;
-#else /* !YYDEBUG */
-# define YYDPRINTF(Args)
-# define YYDSYMPRINT(Args)
-# define YYDSYMPRINTF(Title, Token, Value, Location)
-# define YY_STACK_PRINT(Bottom, Top)
-# define YY_REDUCE_PRINT(Rule)
-#endif /* !YYDEBUG */
-
-
-/* YYINITDEPTH -- initial size of the parser's stacks. */
-#ifndef YYINITDEPTH
-# define YYINITDEPTH 200
-#endif
-
-/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
- if the built-in stack extension method is used).
-
- Do not make this value too large; the results are undefined if
- SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH)
- evaluated with infinite-precision integer arithmetic. */
-
-#if YYMAXDEPTH == 0
-# undef YYMAXDEPTH
-#endif
-
-#ifndef YYMAXDEPTH
-# define YYMAXDEPTH 10000
-#endif
-
-
-
-#if YYERROR_VERBOSE
-
-# ifndef yystrlen
-# if defined (__GLIBC__) && defined (_STRING_H)
-# define yystrlen strlen
-# else
-/* Return the length of YYSTR. */
-static YYSIZE_T
-# if defined (__STDC__) || defined (__cplusplus)
-yystrlen (const char *yystr)
-# else
-yystrlen (yystr)
- const char *yystr;
-# endif
-{
- register const char *yys = yystr;
-
- while (*yys++ != '\0')
- continue;
-
- return yys - yystr - 1;
-}
-# endif
-# endif
-
-# ifndef yystpcpy
-# if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE)
-# define yystpcpy stpcpy
-# else
-/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
- YYDEST. */
-static char *
-# if defined (__STDC__) || defined (__cplusplus)
-yystpcpy (char *yydest, const char *yysrc)
-# else
-yystpcpy (yydest, yysrc)
- char *yydest;
- const char *yysrc;
-# endif
-{
- register char *yyd = yydest;
- register const char *yys = yysrc;
-
- while ((*yyd++ = *yys++) != '\0')
- continue;
-
- return yyd - 1;
-}
-# endif
-# endif
-
-#endif /* !YYERROR_VERBOSE */
-
-
-
-#if YYDEBUG
-/*--------------------------------.
-| Print this symbol on YYOUTPUT. |
-`--------------------------------*/
-
-#if defined (__STDC__) || defined (__cplusplus)
-static void
-yysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep)
-#else
-static void
-yysymprint (yyoutput, yytype, yyvaluep)
- FILE *yyoutput;
- int yytype;
- YYSTYPE *yyvaluep;
-#endif
-{
- /* Pacify ``unused variable'' warnings. */
- (void) yyvaluep;
-
- if (yytype < YYNTOKENS)
- {
- YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
-# ifdef YYPRINT
- YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
-# endif
- }
- else
- YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
-
- switch (yytype)
- {
- default:
- break;
- }
- YYFPRINTF (yyoutput, ")");
-}
-
-#endif /* ! YYDEBUG */
-/*-----------------------------------------------.
-| Release the memory associated to this symbol. |
-`-----------------------------------------------*/
-
-#if defined (__STDC__) || defined (__cplusplus)
-static void
-yydestruct (int yytype, YYSTYPE *yyvaluep)
-#else
-static void
-yydestruct (yytype, yyvaluep)
- int yytype;
- YYSTYPE *yyvaluep;
-#endif
-{
- /* Pacify ``unused variable'' warnings. */
- (void) yyvaluep;
-
- switch (yytype)
- {
-
- default:
- break;
- }
-}
-
-
-/* Prevent warnings from -Wmissing-prototypes. */
-
-#ifdef YYPARSE_PARAM
-# if defined (__STDC__) || defined (__cplusplus)
-int yyparse (void *YYPARSE_PARAM);
-# else
-int yyparse ();
-# endif
-#else /* ! YYPARSE_PARAM */
-#if defined (__STDC__) || defined (__cplusplus)
-int yyparse (void);
-#else
-int yyparse ();
-#endif
-#endif /* ! YYPARSE_PARAM */
-
-
-
-/* The lookahead symbol. */
-int yychar;
-
-/* The semantic value of the lookahead symbol. */
-YYSTYPE yylval;
-
-/* Number of syntax errors so far. */
-int yynerrs;
-
-
-
-/*----------.
-| yyparse. |
-`----------*/
-
-#ifdef YYPARSE_PARAM
-# if defined (__STDC__) || defined (__cplusplus)
-int yyparse (void *YYPARSE_PARAM)
-# else
-int yyparse (YYPARSE_PARAM)
- void *YYPARSE_PARAM;
-# endif
-#else /* ! YYPARSE_PARAM */
-#if defined (__STDC__) || defined (__cplusplus)
-int
-yyparse (void)
-#else
-int
-yyparse ()
-
-#endif
-#endif
-{
-
- register int yystate;
- register int yyn;
- int yyresult;
- /* Number of tokens to shift before error messages enabled. */
- int yyerrstatus;
- /* Lookahead token as an internal (translated) token number. */
- int yytoken = 0;
-
- /* Three stacks and their tools:
- `yyss': related to states,
- `yyvs': related to semantic values,
- `yyls': related to locations.
-
- Refer to the stacks thru separate pointers, to allow yyoverflow
- to xreallocate them elsewhere. */
-
- /* The state stack. */
- short yyssa[YYINITDEPTH];
- short *yyss = yyssa;
- register short *yyssp;
-
- /* The semantic value stack. */
- YYSTYPE yyvsa[YYINITDEPTH];
- YYSTYPE *yyvs = yyvsa;
- register YYSTYPE *yyvsp;
-
-
-
-#define YYPOPSTACK (yyvsp--, yyssp--)
-
- YYSIZE_T yystacksize = YYINITDEPTH;
-
- /* The variables used to return semantic value and location from the
- action routines. */
- YYSTYPE yyval;
-
-
- /* When reducing, the number of symbols on the RHS of the reduced
- rule. */
- int yylen;
-
- YYDPRINTF ((stderr, "Starting parse\n"));
-
- yystate = 0;
- yyerrstatus = 0;
- yynerrs = 0;
- yychar = YYEMPTY; /* Cause a token to be read. */
-
- /* Initialize stack pointers.
- Waste one element of value and location stack
- so that they stay on the same level as the state stack.
- The wasted elements are never initialized. */
-
- yyssp = yyss;
- yyvsp = yyvs;
-
- goto yysetstate;
-
-/*------------------------------------------------------------.
-| yynewstate -- Push a new state, which is found in yystate. |
-`------------------------------------------------------------*/
- yynewstate:
- /* In all cases, when you get here, the value and location stacks
- have just been pushed. so pushing a state here evens the stacks.
- */
- yyssp++;
-
- yysetstate:
- *yyssp = yystate;
-
- if (yyss + yystacksize - 1 <= yyssp)
- {
- /* Get the current used size of the three stacks, in elements. */
- YYSIZE_T yysize = yyssp - yyss + 1;
-
-#ifdef yyoverflow
- {
- /* Give user a chance to xreallocate the stack. Use copies of
- these so that the &'s don't force the real ones into
- memory. */
- YYSTYPE *yyvs1 = yyvs;
- short *yyss1 = yyss;
-
-
- /* Each stack pointer address is followed by the size of the
- data in use in that stack, in bytes. This used to be a
- conditional around just the two extra args, but that might
- be undefined if yyoverflow is a macro. */
- yyoverflow ("parser stack overflow",
- &yyss1, yysize * sizeof (*yyssp),
- &yyvs1, yysize * sizeof (*yyvsp),
-
- &yystacksize);
-
- yyss = yyss1;
- yyvs = yyvs1;
- }
-#else /* no yyoverflow */
-# ifndef YYSTACK_RELOCATE
- goto yyoverflowlab;
-# else
- /* Extend the stack our own way. */
- if (YYMAXDEPTH <= yystacksize)
- goto yyoverflowlab;
- yystacksize *= 2;
- if (YYMAXDEPTH < yystacksize)
- yystacksize = YYMAXDEPTH;
-
- {
- short *yyss1 = yyss;
- union yyalloc *yyptr =
- (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
- if (! yyptr)
- goto yyoverflowlab;
- YYSTACK_RELOCATE (yyss);
- YYSTACK_RELOCATE (yyvs);
-
-# undef YYSTACK_RELOCATE
- if (yyss1 != yyssa)
- YYSTACK_FREE (yyss1);
- }
-# endif
-#endif /* no yyoverflow */
-
- yyssp = yyss + yysize - 1;
- yyvsp = yyvs + yysize - 1;
-
-
- YYDPRINTF ((stderr, "Stack size increased to %lu\n",
- (unsigned long int) yystacksize));
-
- if (yyss + yystacksize - 1 <= yyssp)
- YYABORT;
- }
-
- YYDPRINTF ((stderr, "Entering state %d\n", yystate));
-
- goto yybackup;
-
-/*-----------.
-| yybackup. |
-`-----------*/
-yybackup:
-
-/* Do appropriate processing given the current state. */
-/* Read a lookahead token if we need one and don't already have one. */
-/* yyresume: */
-
- /* First try to decide what to do without reference to lookahead token. */
-
- yyn = yypact[yystate];
- if (yyn == YYPACT_NINF)
- goto yydefault;
-
- /* Not known => get a lookahead token if don't already have one. */
-
- /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
- if (yychar == YYEMPTY)
- {
- YYDPRINTF ((stderr, "Reading a token: "));
- yychar = YYLEX;
- }
-
- if (yychar <= YYEOF)
- {
- yychar = yytoken = YYEOF;
- YYDPRINTF ((stderr, "Now at end of input.\n"));
- }
- else
- {
- yytoken = YYTRANSLATE (yychar);
- YYDSYMPRINTF ("Next token is", yytoken, &yylval, &yylloc);
- }
-
- /* If the proper action on seeing token YYTOKEN is to reduce or to
- detect an error, take that action. */
- yyn += yytoken;
- if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
- goto yydefault;
- yyn = yytable[yyn];
- if (yyn <= 0)
- {
- if (yyn == 0 || yyn == YYTABLE_NINF)
- goto yyerrlab;
- yyn = -yyn;
- goto yyreduce;
- }
-
- if (yyn == YYFINAL)
- YYACCEPT;
-
- /* Shift the lookahead token. */
- YYDPRINTF ((stderr, "Shifting token %s, ", yytname[yytoken]));
-
- /* Discard the token being shifted unless it is eof. */
- if (yychar != YYEOF)
- yychar = YYEMPTY;
-
- *++yyvsp = yylval;
-
-
- /* Count tokens shifted since error; after three, turn off error
- status. */
- if (yyerrstatus)
- yyerrstatus--;
-
- yystate = yyn;
- goto yynewstate;
-
-
-/*-----------------------------------------------------------.
-| yydefault -- do the default action for the current state. |
-`-----------------------------------------------------------*/
-yydefault:
- yyn = yydefact[yystate];
- if (yyn == 0)
- goto yyerrlab;
- goto yyreduce;
-
-
-/*-----------------------------.
-| yyreduce -- Do a reduction. |
-`-----------------------------*/
-yyreduce:
- /* yyn is the number of a rule to reduce with. */
- yylen = yyr2[yyn];
-
- /* If YYLEN is nonzero, implement the default value of the action:
- `$$ = $1'.
-
- Otherwise, the following line sets YYVAL to garbage.
- This behavior is undocumented and Bison
- users should not rely upon it. Assigning to YYVAL
- unconditionally makes the parser a bit smaller, and it avoids a
- GCC warning that YYVAL may be used uninitialized. */
- yyval = yyvsp[1-yylen];
-
-
- YY_REDUCE_PRINT (yyn);
- switch (yyn)
- {
- case 3:
-#line 209 "ada-exp.y"
- { write_exp_elt_opcode (OP_TYPE);
- write_exp_elt_type (yyvsp[0].tval);
- write_exp_elt_opcode (OP_TYPE); }
- break;
-
- case 5:
-#line 217 "ada-exp.y"
- { write_exp_elt_opcode (BINOP_COMMA); }
- break;
-
- case 6:
-#line 222 "ada-exp.y"
- { write_exp_elt_opcode (UNOP_IND); }
- break;
-
- case 7:
-#line 226 "ada-exp.y"
- { write_exp_elt_opcode (STRUCTOP_STRUCT);
- write_exp_string (yyvsp[0].ssym.stoken);
- write_exp_elt_opcode (STRUCTOP_STRUCT);
- }
- break;
-
- case 8:
-#line 233 "ada-exp.y"
- {
- write_exp_elt_opcode (OP_FUNCALL);
- write_exp_elt_longcst (yyvsp[-1].lval);
- write_exp_elt_opcode (OP_FUNCALL);
- }
- break;
-
- case 9:
-#line 241 "ada-exp.y"
- {
- write_exp_elt_opcode (UNOP_CAST);
- write_exp_elt_type (yyvsp[-3].tval);
- write_exp_elt_opcode (UNOP_CAST);
- }
- break;
-
- case 10:
-#line 248 "ada-exp.y"
- { type_qualifier = yyvsp[-2].tval; }
- break;
-
- case 11:
-#line 249 "ada-exp.y"
- {
- /* write_exp_elt_opcode (UNOP_QUAL); */
- /* FIXME: UNOP_QUAL should be defined in expression.h */
- write_exp_elt_type (yyvsp[-6].tval);
- /* write_exp_elt_opcode (UNOP_QUAL); */
- /* FIXME: UNOP_QUAL should be defined in expression.h */
- type_qualifier = yyvsp[-4].tval;
- }
- break;
-
- case 12:
-#line 259 "ada-exp.y"
- { yyval.tval = type_qualifier; }
- break;
-
- case 13:
-#line 264 "ada-exp.y"
- { write_exp_elt_opcode (TERNOP_SLICE); }
- break;
-
- case 14:
-#line 267 "ada-exp.y"
- { }
- break;
-
- case 16:
-#line 274 "ada-exp.y"
- { write_exp_elt_opcode (OP_REGISTER);
- write_exp_elt_longcst ((LONGEST) yyvsp[0].lval);
- write_exp_elt_opcode (OP_REGISTER);
- }
- break;
-
- case 17:
-#line 281 "ada-exp.y"
- { write_exp_elt_opcode (OP_INTERNALVAR);
- write_exp_elt_intern (yyvsp[0].ivar);
- write_exp_elt_opcode (OP_INTERNALVAR);
- }
- break;
-
- case 19:
-#line 292 "ada-exp.y"
- { write_exp_elt_opcode (OP_LAST);
- write_exp_elt_longcst ((LONGEST) yyvsp[0].lval);
- write_exp_elt_opcode (OP_LAST);
- }
- break;
-
- case 20:
-#line 299 "ada-exp.y"
- { write_exp_elt_opcode (BINOP_ASSIGN); }
- break;
-
- case 21:
-#line 303 "ada-exp.y"
- { write_exp_elt_opcode (UNOP_NEG); }
- break;
-
- case 22:
-#line 307 "ada-exp.y"
- { write_exp_elt_opcode (UNOP_PLUS); }
- break;
-
- case 23:
-#line 311 "ada-exp.y"
- { write_exp_elt_opcode (UNOP_LOGICAL_NOT); }
- break;
-
- case 24:
-#line 315 "ada-exp.y"
- { write_exp_elt_opcode (UNOP_ABS); }
- break;
-
- case 25:
-#line 318 "ada-exp.y"
- { yyval.lval = 0; }
- break;
-
- case 26:
-#line 322 "ada-exp.y"
- { yyval.lval = 1; }
- break;
-
- case 27:
-#line 324 "ada-exp.y"
- { yyval.lval = 1; }
- break;
-
- case 28:
-#line 326 "ada-exp.y"
- { yyval.lval = yyvsp[-2].lval + 1; }
- break;
-
- case 29:
-#line 328 "ada-exp.y"
- { yyval.lval = yyvsp[-4].lval + 1; }
- break;
-
- case 30:
-#line 333 "ada-exp.y"
- { write_exp_elt_opcode (UNOP_MEMVAL);
- write_exp_elt_type (yyvsp[-2].tval);
- write_exp_elt_opcode (UNOP_MEMVAL);
- }
- break;
-
- case 31:
-#line 342 "ada-exp.y"
- { write_exp_elt_opcode (BINOP_EXP); }
- break;
-
- case 32:
-#line 346 "ada-exp.y"
- { write_exp_elt_opcode (BINOP_MUL); }
- break;
-
- case 33:
-#line 350 "ada-exp.y"
- { write_exp_elt_opcode (BINOP_DIV); }
- break;
-
- case 34:
-#line 354 "ada-exp.y"
- { write_exp_elt_opcode (BINOP_REM); }
- break;
-
- case 35:
-#line 358 "ada-exp.y"
- { write_exp_elt_opcode (BINOP_MOD); }
- break;
-
- case 36:
-#line 362 "ada-exp.y"
- { write_exp_elt_opcode (BINOP_REPEAT); }
- break;
-
- case 37:
-#line 366 "ada-exp.y"
- { write_exp_elt_opcode (BINOP_ADD); }
- break;
-
- case 38:
-#line 370 "ada-exp.y"
- { write_exp_elt_opcode (BINOP_CONCAT); }
- break;
-
- case 39:
-#line 374 "ada-exp.y"
- { write_exp_elt_opcode (BINOP_SUB); }
- break;
-
- case 40:
-#line 378 "ada-exp.y"
- { write_exp_elt_opcode (BINOP_EQUAL); }
- break;
-
- case 41:
-#line 382 "ada-exp.y"
- { write_exp_elt_opcode (BINOP_NOTEQUAL); }
- break;
-
- case 42:
-#line 386 "ada-exp.y"
- { write_exp_elt_opcode (BINOP_LEQ); }
- break;
-
- case 43:
-#line 390 "ada-exp.y"
- { /*write_exp_elt_opcode (TERNOP_MBR); */ }
- break;
-
- case 44:
-#line 394 "ada-exp.y"
- { /*write_exp_elt_opcode (BINOP_MBR); */
- /* FIXME: BINOP_MBR should be defined in expression.h */
- write_exp_elt_longcst ((LONGEST) yyvsp[0].lval);
- /*write_exp_elt_opcode (BINOP_MBR); */
- }
- break;
-
- case 45:
-#line 400 "ada-exp.y"
- { /*write_exp_elt_opcode (UNOP_MBR); */
- /* FIXME: UNOP_QUAL should be defined in expression.h */
- write_exp_elt_type (yyvsp[0].tval);
- /* write_exp_elt_opcode (UNOP_MBR); */
- /* FIXME: UNOP_MBR should be defined in expression.h */
- }
- break;
-
- case 46:
-#line 407 "ada-exp.y"
- { /*write_exp_elt_opcode (TERNOP_MBR); */
- /* FIXME: TERNOP_MBR should be defined in expression.h */
- write_exp_elt_opcode (UNOP_LOGICAL_NOT);
- }
- break;
-
- case 47:
-#line 412 "ada-exp.y"
- { /* write_exp_elt_opcode (BINOP_MBR); */
- /* FIXME: BINOP_MBR should be defined in expression.h */
- write_exp_elt_longcst ((LONGEST) yyvsp[0].lval);
- /*write_exp_elt_opcode (BINOP_MBR);*/
- /* FIXME: BINOP_MBR should be defined in expression.h */
- write_exp_elt_opcode (UNOP_LOGICAL_NOT);
- }
- break;
-
- case 48:
-#line 420 "ada-exp.y"
- { /*write_exp_elt_opcode (UNOP_MBR);*/
- /* FIXME: UNOP_MBR should be defined in expression.h */
- write_exp_elt_type (yyvsp[0].tval);
- /* write_exp_elt_opcode (UNOP_MBR);*/
- /* FIXME: UNOP_MBR should be defined in expression.h */
- write_exp_elt_opcode (UNOP_LOGICAL_NOT);
- }
- break;
-
- case 49:
-#line 430 "ada-exp.y"
- { write_exp_elt_opcode (BINOP_GEQ); }
- break;
-
- case 50:
-#line 434 "ada-exp.y"
- { write_exp_elt_opcode (BINOP_LESS); }
- break;
-
- case 51:
-#line 438 "ada-exp.y"
- { write_exp_elt_opcode (BINOP_GTR); }
- break;
-
- case 52:
-#line 442 "ada-exp.y"
- { write_exp_elt_opcode (BINOP_BITWISE_AND); }
- break;
-
- case 53:
-#line 446 "ada-exp.y"
- { write_exp_elt_opcode (BINOP_LOGICAL_AND); }
- break;
-
- case 54:
-#line 450 "ada-exp.y"
- { write_exp_elt_opcode (BINOP_BITWISE_IOR); }
- break;
-
- case 55:
-#line 454 "ada-exp.y"
- { write_exp_elt_opcode (BINOP_LOGICAL_OR); }
- break;
-
- case 56:
-#line 458 "ada-exp.y"
- { write_exp_elt_opcode (BINOP_BITWISE_XOR); }
- break;
-
- case 57:
-#line 462 "ada-exp.y"
- { write_exp_elt_opcode (UNOP_ADDR); }
- break;
-
- case 58:
-#line 464 "ada-exp.y"
- { write_exp_elt_opcode (UNOP_ADDR);
- write_exp_elt_opcode (UNOP_CAST);
- write_exp_elt_type (builtin_type_ada_system_address);
- write_exp_elt_opcode (UNOP_CAST);
- }
- break;
-
- case 59:
-#line 470 "ada-exp.y"
- { write_attribute_call1 (ATR_FIRST, yyvsp[0].lval); }
- break;
-
- case 60:
-#line 472 "ada-exp.y"
- { write_attribute_call1 (ATR_LAST, yyvsp[0].lval); }
- break;
-
- case 61:
-#line 474 "ada-exp.y"
- { write_attribute_call1 (ATR_LENGTH, yyvsp[0].lval); }
- break;
-
- case 62:
-#line 476 "ada-exp.y"
- { write_attribute_call0 (ATR_SIZE); }
- break;
-
- case 63:
-#line 478 "ada-exp.y"
- { write_attribute_call0 (ATR_TAG); }
- break;
-
- case 64:
-#line 480 "ada-exp.y"
- { write_attribute_calln (ATR_MIN, 2); }
- break;
-
- case 65:
-#line 482 "ada-exp.y"
- { write_attribute_calln (ATR_MAX, 2); }
- break;
-
- case 66:
-#line 484 "ada-exp.y"
- { write_attribute_calln (ATR_POS, 1); }
- break;
-
- case 67:
-#line 486 "ada-exp.y"
- { write_attribute_call1 (ATR_FIRST, yyvsp[0].lval); }
- break;
-
- case 68:
-#line 488 "ada-exp.y"
- { write_attribute_call1 (ATR_LAST, yyvsp[0].lval); }
- break;
-
- case 69:
-#line 490 "ada-exp.y"
- { write_attribute_call1 (ATR_LENGTH, yyvsp[0].lval); }
- brea