URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
Compare Revisions
- This comparison shows the changes necessary to convert path
/or1k/trunk/gdb-5.0/gdb/config/djgpp
- from Rev 107 to Rev 1765
- ↔ Reverse comparison
Rev 107 → Rev 1765
/config.sed
0,0 → 1,31
s|po2tbl\.sed\.in|po2tblsed.in|g |
s|gdb\.c++|gdb.cxx|g |
/ac_rel_source/s|ln -s|cp -p| |
s|\.gdbinit|gdb.ini|g |
|
/ac_given_INSTALL=/,/^CEOF/ { |
/^s%@prefix@%/a\ |
s,\\([yp*]\\)\\.tab,\\1_tab,g\ |
/^ @rm -f/s,\\$@-\\[0-9\\]\\[0-9\\],& *.i[1-9] *.i[1-9][0-9],\ |
s,\\.info\\*,.inf* *.i[1-9] *.i[1-9][0-9],\ |
s,\\.gdbinit,gdb.ini,g\ |
/TEXINPUTS=/s,:,';',g\ |
/VPATH *=/s,:,;,g\ |
/\\$\\$file-\\[0-9\\]/s,echo,& *.i[1-9] *.i[1-9][0-9],\ |
/\\$\\$file-\\[0-9\\]/s,rm -f \\$\\$file,& \\${PACKAGE}.i[1-9] \\${PACKAGE}.i[1-9][0-9],\ |
s,config\\.h\\.in,config.h-in,g\ |
s,po2tbl\\.sed\\.in,po2tblsed.in,g |
} |
|
/^CONFIG_FILES=/,/^EOF/ { |
s|po/Makefile.in\([^-:]\)|po/Makefile.in:po/Makefile.in-in\1| |
} |
|
/^ *CONFIG_HEADERS=/,/^EOF/ { |
s|config.h\([^-:]\)|config.h:config.h-in\1| |
} |
|
/^[ ]*\/\*)/s,/\*,/*|[A-z]:/*, |
/\$]\*) INSTALL=/s,\[/\$\]\*,&|[A-z]:/*, |
/\$]\*) ac_rel_source=/s,\[/\$\]\*,&|[A-z]:/*, |
/ac_file_inputs=/s,\( -e "s%\^%\$ac_given_srcdir/%"\)\( -e "s%:% $ac_given_srcdir/%g"\),\2\1, |
/djcheck.sh
0,0 → 1,33
#!/bin/sh |
|
# A shell script to run the test suite on the DJGPP version of GDB. |
|
ORIGDIR=`pwd` |
GDB=${ORIGDIR}/../gdb.exe |
SUBDIRS=`find $ORIGDIR -type d ! -ipath $ORIGDIR` |
|
for d in $SUBDIRS |
do |
cd $d |
echo "Running tests in $d..." |
for f in *.out |
do |
test -f $f || break |
base=`basename $f .out` |
if test "${base}" = "dbx" ; then |
options=-dbx |
else |
options= |
fi |
$GDB ${options} < ${base}.in 2>&1 \ |
| sed -e '/GNU gdb /s/ [.0-9][.0-9]*//' \ |
-e '/^Copyright/s/[12][0-9][0-9][0-9]/XYZZY/g' \ |
-e '/Starting program: /s|[A-z]:/.*/||' \ |
-e '/main (/s/=0x[0-9a-f][0-9a-f]*/=XYZ/g' \ |
> ${base}.tst |
if diff --binary -u ${base}.out ${base}.tst ; then |
rm -f ${base}.tst |
fi |
done |
done |
|
/fnchange.lst
0,0 → 1,179
@V@/gdb/ChangeLog-3.x @V@/gdb/ChangeLog.3-x |
@V@/gdb/ChangeLog-9091 @V@/gdb/ChangeLog.9091 |
@V@/gdb/ChangeLog-92 @V@/gdb/ChangeLog.92 |
@V@/gdb/ChangeLog-93 @V@/gdb/ChangeLog.93 |
@V@/gdb/ChangeLog-94 @V@/gdb/ChangeLog.94 |
@V@/gdb/ChangeLog-95 @V@/gdb/ChangeLog.95 |
@V@/gdb/ChangeLog-96 @V@/gdb/ChangeLog.96 |
@V@/gdb/ChangeLog-97 @V@/gdb/ChangeLog.97 |
@V@/gdb/ChangeLog-98 @V@/gdb/ChangeLog.98 |
@V@/gdb/ChangeLog-99 @V@/gdb/ChangeLog.99 |
@V@/gdb/ppc-linux-tdep.c @V@/gdb/ppc-linx-tdep.c |
@V@/gdb/remote-adapt.c @V@/gdb/rmt-adapt.c |
@V@/gdb/remote-array.c @V@/gdb/rmt-array.c |
@V@/gdb/remote-e7000.c @V@/gdb/rmt-e7000.c |
@V@/gdb/remote-eb.c @V@/gdb/rmt-eb.c |
@V@/gdb/remote-es.c @V@/gdb/rmt-es.c |
@V@/gdb/remote-est.c @V@/gdb/rmt-est.c |
@V@/gdb/remote-mips.c @V@/gdb/emt-mips.c |
@V@/gdb/remote-mm.c @V@/gdb/emt-mm.c |
@V@/gdb/remote-nindy.c @V@/gdb/rmt-nindy.c |
@V@/gdb/remote-nrom.c @V@/gdb/rmt-nrom.c |
@V@/gdb/remote-rdi.c @V@/gdb/rmt-rdi.c |
@V@/gdb/remote-rdp.c @V@/gdb/rmt-rdp.c |
@V@/gdb/remote-sds.c @V@/gdb/rmt-sds.c |
@V@/gdb/remote-sim.c @V@/gdb/rmt-sim.c |
@V@/gdb/remote-st.c @V@/gdb/rmt-st.c |
@V@/gdb/remote-udi.c @V@/gdb/rmt-udi.c |
@V@/gdb/remote-vx.c @V@/gdb/rmt-vx.c |
@V@/gdb/remote-vx29k.c @V@/gdb/rmt-vx29k.c |
@V@/gdb/remote-vx68.c @V@/gdb/rmt-vx68.c |
@V@/gdb/remote-vx960.c @V@/gdb/rmt-vx960.c |
@V@/gdb/remote-vxmips.c @V@/gdb/rmt-vxmips.c |
@V@/gdb/remote-vxsparc.c @V@/gdb/rmt-vxsparc.c |
@V@/gdb/sparclet-rom.c @V@/gdb/splet-rom.c |
@V@/gdb/sparclet-stub.c @V@/gdb/splet-stub.c |
@V@/gdb/i386-linux-tdep.c @V@/gdb/i386linux-tdep.c |
@V@/gdb/arm-linux-tdep.c @V@/gdb/armlin-tdep.c |
@V@/gdb/arm-linux-nat.c @V@/gdb/armlin-nat.c |
@V@/gdb/config/alpha/alpha-osf1.mh @V@/gdb/config/alpha/alphosf1.mh |
@V@/gdb/config/alpha/alpha-osf2.mh @V@/gdb/config/alpha/alphosf2.mh |
@V@/gdb/config/alpha/alpha-osf3.mh @V@/gdb/config/alpha/alphosf3.mh |
@V@/gdb/config/alpha/tm-alphalinux.h @V@/gdb/config/alpha/tm-alplinux.h |
@V@/gdb/config/alpha/xm-alphalinux.h @V@/gdb/config/alpha/xm-alplinux.h |
@V@/gdb/config/i386/nm-i386sco4.h @V@/gdb/config/i386/nm-sco4.h |
@V@/gdb/config/i386/nm-i386sco5.h @V@/gdb/config/i386/nm-sco5.h |
@V@/gdb/config/i386/nm-i386sol2.h @V@/gdb/config/i386/nm-sol2.h |
@V@/gdb/config/i386/nm-i386v4.h @V@/gdb/config/i386/nm-v4.h |
@V@/gdb/config/i386/nm-i386v42mp.h @V@/gdb/config/i386/nm-v42mp.h |
@V@/gdb/config/i386/tm-i386mk.h @V@/gdb/config/i386/tm-mk.h |
@V@/gdb/config/i386/tm-i386sol2.h @V@/gdb/config/i386/tm-sol2.h |
@V@/gdb/config/i386/tm-i386v4.h @V@/gdb/config/i386/tm-v4.h |
@V@/gdb/config/i386/tm-i386v42mp.h @V@/gdb/config/i386/tm-v42mp.h |
@V@/gdb/config/i386/xm-i386mach.h @V@/gdb/config/i386/xm-mach.h |
@V@/gdb/config/i386/xm-i386mk.h @V@/gdb/config/i386/xm-mk.h |
@V@/gdb/config/i386/xm-i386v32.h @V@/gdb/config/i386/xm-v32.h |
@V@/gdb/config/i386/xm-i386v4.h @V@/gdb/config/i386/xm-v4.h |
@V@/gdb/config/m68k/apollo68v.mh @V@/gdb/config/m68k/apollo-v.mh |
@V@/gdb/config/m68k/nm-apollo68v.h @V@/gdb/config/m68k/nm-apolv.h |
@V@/gdb/config/m68k/nm-hp300hpux.h @V@/gdb/config/m68k/nm-300ux.h |
@V@/gdb/config/m68k/tm-hp300hpux.h @V@/gdb/config/m68k/tm-300ux.h |
@V@/gdb/config/m68k/xm-apollo68v.h @V@/gdb/config/m68k/xm-apolv.h |
@V@/gdb/config/m68k/xm-hp300hpux.h @V@/gdb/config/m68k/xm-300ux.h |
@V@/gdb/config/m88k/tm-delta88v4.h @V@/gdb/config/m88k/tm-d88v4.h |
@V@/gdb/config/m88k/xm-delta88v4.h @V@/gdb/config/m88k/xm-d88v4.h |
@V@/gdb/config/mips/tm-bigmips64.h @V@/gdb/config/mips/tm-bigm64.h |
@V@/gdb/config/mips/tm-embed64.h @V@/gdb/config/mips/tm-emb64.h |
@V@/gdb/config/mips/tm-embedl.h @V@/gdb/config/mips/tm-embdl.h |
@V@/gdb/config/mips/tm-embedl64.h @V@/gdb/config/mips/tm-embl64.h |
@V@/gdb/config/mips/tm-vr4300el.h @V@/gdb/config/mips/tm-v43el.h |
@V@/gdb/config/mips/tm-vr4xxxel.h @V@/gdb/config/mips/tm-v4xel.h |
@V@/gdb/config/mips/tm-vr5000el.h @V@/gdb/config/mips/tm-vr5kel.h |
@V@/gdb/config/pa/nm-hppah11.h @V@/gdb/config/pa/nm-hppa11.h |
@V@/gdb/config/powerpc/tm-ppcle-sim.h @V@/gdb/config/powerpc/tm-ppcl-sim.h |
@V@/gdb/config/rs6000/nm-rs6000ly.h @V@/gdb/config/rs6000/nm-rs6kly.h |
@V@/gdb/config/rs6000/tm-rs6000.h @V@/gdb/config/rs6000/tm-rs6k.h |
@V@/gdb/config/rs6000/tm-rs6000ly.h @V@/gdb/config/rs6000/tm-rs6kly.h |
@V@/gdb/config/rs6000/xm-rs6000ly.h @V@/gdb/config/rs6000/xm-rs6kly.h |
@V@/gdb/config/sparc/tm-sparclet.h @V@/gdb/config/sparc/tm-splet.h |
@V@/gdb/config/sparc/tm-sparclite.h @V@/gdb/config/sparc/tm-splite.h |
@V@/gdb/config/sparc/tm-sparclynx.h @V@/gdb/config/sparc/tm-splynx.h |
@V@/gdb/config/sparc/xm-sparclynx.h @V@/gdb/config/sparc/xm-xplynx.h |
@V@/gdb/config/vax/xm-vaxult2.h @V@/gdb/config/vax/xm-vaxut2.h |
@V@/gdb/gdbtk/generic/gdbtk-varobj.c @V@/gdb/gdbtk/generic/gdbtk-vobj.c |
@V@/gdb/osf-share/cma_stack_int.h @V@/gdb/osf-share/cma_stkint.h |
@V@/gdb/testsuite/gdb.base/coremaker2.c @V@/gdb/testsuite/gdb.base/core2maker.c |
@V@/gdb/tui/tuiSourceWin.c @V@/gdb/tui/tuiWinSource.c |
@V@/gdb/tui/tuiSourceWin.h @V@/gdb/tui/tuiWinSource.h |
@V@/bfd/ChangeLog-9193 @V@/bfd/ChangeLog.9193 |
@V@/bfd/ChangeLog-9495 @V@/bfd/ChangeLog.9495 |
@V@/bfd/ChangeLog-9697 @V@/bfd/ChangeLog.9697 |
@V@/bfd/coff-tic80.c @V@/bfd/coff-tc80.c |
@V@/sim/mips/dv-tx3904irc.c @V@/sim/mips/dv-tx3irc.c |
@V@/sim/mips/dv-tx3904sio.c @V@/sim/mips/dv-tx3sio.c |
@V@/sim/mips/dv-tx3904tmr.c @V@/sim/mips/dv-tx3tmr.c |
@V@/sim/mn10300/dv-mn103int.c @V@/sim/mn10300/dv-mn1int.c |
@V@/sim/mn10300/dv-mn103iop.c @V@/sim/mn10300/dv-mn1iop.c |
@V@/sim/mn10300/dv-mn103ser.c @V@/sim/mn10300/dv-mn1ser.c |
@V@/sim/mn10300/dv-mn103tim.c @V@/sim/mn10300/dv-mn1tim.c |
@V@/sim/ppc/corefile-n.h @V@/sim/ppc/corefle-n.h |
@V@/sim/ppc/idecode_branch.h @V@/sim/ppc/idec_branch.h |
@V@/sim/ppc/idecode_expression.h @V@/sim/ppc/idec_expression.h |
@V@/sim/ppc/idecode_fields.h @V@/sim/ppc/idec_fields.h |
@V@/sim/ppc/sim-endian-n.h @V@/sim/ppc/sim-endn.h |
@V@/sim/testsuite/d10v-elf/t-ae-ld-d.s @V@/sim/testsuite/d10v-elf/t-ld-d.s |
@V@/sim/testsuite/d10v-elf/t-ae-ld-i.s @V@/sim/testsuite/d10v-elf/t-ld-i.s |
@V@/sim/testsuite/d10v-elf/t-ae-ld-id.s @V@/sim/testsuite/d10v-elf/t-ld-id.s |
@V@/sim/testsuite/d10v-elf/t-ae-ld-im.s @V@/sim/testsuite/d10v-elf/t-ld-im.s |
@V@/sim/testsuite/d10v-elf/t-ae-ld-ip.s @V@/sim/testsuite/d10v-elf/t-ld-ip.s |
@V@/sim/testsuite/d10v-elf/t-ae-ld2w-d.s @V@/sim/testsuite/d10v-elf/t-ld2-d.s |
@V@/sim/testsuite/d10v-elf/t-ae-ld2w-i.s @V@/sim/testsuite/d10v-elf/t-ld2-i.s |
@V@/sim/testsuite/d10v-elf/t-ae-ld2w-id.s @V@/sim/testsuite/d10v-elf/t-ld2-id.s |
@V@/sim/testsuite/d10v-elf/t-ae-ld2w-im.s @V@/sim/testsuite/d10v-elf/t-ld2-im.s |
@V@/sim/testsuite/d10v-elf/t-ae-ld2w-ip.s @V@/sim/testsuite/d10v-elf/t-ld2-ip.s |
@V@/sim/testsuite/d10v-elf/t-ae-st-d.s @V@/sim/testsuite/d10v-elf/t-st-d.s |
@V@/sim/testsuite/d10v-elf/t-ae-st-i.s @V@/sim/testsuite/d10v-elf/t-st-i.s |
@V@/sim/testsuite/d10v-elf/t-ae-st-id.s @V@/sim/testsuite/d10v-elf/t-st-id.s |
@V@/sim/testsuite/d10v-elf/t-ae-st-im.s @V@/sim/testsuite/d10v-elf/t-st-im.s |
@V@/sim/testsuite/d10v-elf/t-ae-st-ip.s @V@/sim/testsuite/d10v-elf/t-st-ip.s |
@V@/sim/testsuite/d10v-elf/t-ae-st-is.s @V@/sim/testsuite/d10v-elf/t-st-is.s |
@V@/sim/testsuite/d10v-elf/t-ae-st2w-d.s @V@/sim/testsuite/d10v-elf/t-st2-d.s |
@V@/sim/testsuite/d10v-elf/t-ae-st2w-i.s @V@/sim/testsuite/d10v-elf/t-st2-i.s |
@V@/sim/testsuite/d10v-elf/t-ae-st2w-id.s @V@/sim/testsuite/d10v-elf/t-st2-id.s |
@V@/sim/testsuite/d10v-elf/t-ae-st2w-im.s @V@/sim/testsuite/d10v-elf/t-st2-im.s |
@V@/sim/testsuite/d10v-elf/t-ae-st2w-ip.s @V@/sim/testsuite/d10v-elf/t-st2-ip.s |
@V@/sim/testsuite/d10v-elf/t-ae-st2w-is.s @V@/sim/testsuite/d10v-elf/t-st2-is.s |
@V@/sim/testsuite/d30v-elf/ls-ld4bhu.S @V@/sim/testsuite/d30v-elf/ls-ld4bu.S |
@V@/intl/po2tbl.sed.in @V@/intl/po2tblsed.in |
@V@/intl/intlh.inst.in @V@/intl/intlh_inst.in |
@V@/readline/config.h.in @V@/readline/config.h-in |
@V@/readline/config.h.bot @V@/readline/config.h-bot |
@V@/gdb/nindy-share/b.out.h @V@/gdb/nindy-share/b_out.h |
@V@/gdb/c-exp.tab.c @V@/gdb/c-exp_tab.c |
@V@/gdb/jv-exp.tab.c @V@/gdb/jv-exp_tab.c |
@V@/gdb/f-exp.tab.c @V@/gdb/f-exp_tab.c |
@V@/gdb/m2-exp.tab.c @V@/gdb/m2-exp_tab.c |
@V@/gdb/testsuite/gdb.c++ @V@/gdb/testsuite/gdb.cxx |
@V@/gdb/testsuite/gdb.c++/Makefile.in @V@/gdb/testsuite/gdb.cxx/Makefile.in |
@V@/gdb/testsuite/gdb.c++/ambiguous.cc @V@/gdb/testsuite/gdb.cxx/ambiguous.cc |
@V@/gdb/testsuite/gdb.c++/ambiguous.exp @V@/gdb/testsuite/gdb.cxx/ambiguous.exp |
@V@/gdb/testsuite/gdb.c++/annota2.cc @V@/gdb/testsuite/gdb.cxx/annota2.cc |
@V@/gdb/testsuite/gdb.c++/annota2.exp @V@/gdb/testsuite/gdb.cxx/annota2.exp |
@V@/gdb/testsuite/gdb.c++/anon-union.cc @V@/gdb/testsuite/gdb.cxx/anon-union.cc |
@V@/gdb/testsuite/gdb.c++/anon-union.exp @V@/gdb/testsuite/gdb.cxx/anon-union.exp |
@V@/gdb/testsuite/gdb.c++/classes.exp @V@/gdb/testsuite/gdb.cxx/classes.exp |
@V@/gdb/testsuite/gdb.c++/configure @V@/gdb/testsuite/gdb.cxx/configure |
@V@/gdb/testsuite/gdb.c++/configure.in @V@/gdb/testsuite/gdb.cxx/configure.in |
@V@/gdb/testsuite/gdb.c++/cplusfuncs.cc @V@/gdb/testsuite/gdb.cxx/cplusfuncs.cc |
@V@/gdb/testsuite/gdb.c++/cplusfuncs.exp @V@/gdb/testsuite/gdb.cxx/cplusfuncs.exp |
@V@/gdb/testsuite/gdb.c++/ctti.exp @V@/gdb/testsuite/gdb.cxx/ctti.exp |
@V@/gdb/testsuite/gdb.c++/cttiadd.cc @V@/gdb/testsuite/gdb.cxx/cttiadd.cc |
@V@/gdb/testsuite/gdb.c++/cttiadd1.cc @V@/gdb/testsuite/gdb.cxx/cttiadd1.cc |
@V@/gdb/testsuite/gdb.c++/cttiadd2.cc @V@/gdb/testsuite/gdb.cxx/cttiadd2.cc |
@V@/gdb/testsuite/gdb.c++/cttiadd3.cc @V@/gdb/testsuite/gdb.cxx/cttiadd3.cc |
@V@/gdb/testsuite/gdb.c++/demangle.exp @V@/gdb/testsuite/gdb.cxx/demangle.exp |
@V@/gdb/testsuite/gdb.c++/derivation.cc @V@/gdb/testsuite/gdb.cxx/derivation.cc |
@V@/gdb/testsuite/gdb.c++/derivation.exp @V@/gdb/testsuite/gdb.cxx/derivation.exp |
@V@/gdb/testsuite/gdb.c++/inherit.exp @V@/gdb/testsuite/gdb.cxx/inherit.exp |
@V@/gdb/testsuite/gdb.c++/local.cc @V@/gdb/testsuite/gdb.cxx/local.cc |
@V@/gdb/testsuite/gdb.c++/local.exp @V@/gdb/testsuite/gdb.cxx/local.exp |
@V@/gdb/testsuite/gdb.c++/member-ptr.cc @V@/gdb/testsuite/gdb.cxx/member-ptr.cc |
@V@/gdb/testsuite/gdb.c++/member-ptr.exp @V@/gdb/testsuite/gdb.cxx/member-ptr.exp |
@V@/gdb/testsuite/gdb.c++/method.cc @V@/gdb/testsuite/gdb.cxx/method.cc |
@V@/gdb/testsuite/gdb.c++/method.exp @V@/gdb/testsuite/gdb.cxx/method.exp |
@V@/gdb/testsuite/gdb.c++/misc.cc @V@/gdb/testsuite/gdb.cxx/misc.cc |
@V@/gdb/testsuite/gdb.c++/misc.exp @V@/gdb/testsuite/gdb.cxx/misc.exp |
@V@/gdb/testsuite/gdb.c++/overload.cc @V@/gdb/testsuite/gdb.cxx/overload.cc |
@V@/gdb/testsuite/gdb.c++/overload.exp @V@/gdb/testsuite/gdb.cxx/overload.exp |
@V@/gdb/testsuite/gdb.c++/ovldbreak.cc @V@/gdb/testsuite/gdb.cxx/ovldbreak.cc |
@V@/gdb/testsuite/gdb.c++/ovldbreak.exp @V@/gdb/testsuite/gdb.cxx/ovldbreak.exp |
@V@/gdb/testsuite/gdb.c++/ref-types.cc @V@/gdb/testsuite/gdb.cxx/ref-types.cc |
@V@/gdb/testsuite/gdb.c++/ref-types.exp @V@/gdb/testsuite/gdb.cxx/ref-types.exp |
@V@/gdb/testsuite/gdb.c++/templates.cc @V@/gdb/testsuite/gdb.cxx/templates.cc |
@V@/gdb/testsuite/gdb.c++/templates.exp @V@/gdb/testsuite/gdb.cxx/templates.exp |
@V@/gdb/testsuite/gdb.c++/userdef.cc @V@/gdb/testsuite/gdb.cxx/userdef.cc |
@V@/gdb/testsuite/gdb.c++/userdef.exp @V@/gdb/testsuite/gdb.cxx/userdef.exp |
@V@/gdb/testsuite/gdb.c++/virtfunc.cc @V@/gdb/testsuite/gdb.cxx/virtfunc.cc |
@V@/gdb/testsuite/gdb.c++/virtfunc.exp @V@/gdb/testsuite/gdb.cxx/virtfunc.exp |
@V@/gdb/testsuite/.gdbinit @V@/gdb/testsuite/gdb.ini |
@V@/sim/ppc/.gdbinit @V@/sim/ppc/gdb.ini |
/djconfig.sh
0,0 → 1,128
#!/bin/sh |
# |
# This shell script is a wrapper to the main configure script when |
# configuring GDB for DJGPP. 99% of it can also be used when |
# configuring other GNU programs for DJGPP. |
# |
# Originally written by Robert Hoehne, revised by Eli Zaretskii. |
# |
# Call it like the main configure script with one exception. If you |
# want to pass parameters to configure, you have to pass as the first |
# argument the srcdir, even when it is `.' !!!!! |
|
# Where are the sources? If you are used to having the sources |
# in a separate directory and the objects in another, then set |
# here the full path to the source directory and run this script |
# in the directory where you want to build gdb!! |
# You might give the source directory on commandline, but use |
# then only forward slashes (/) in the directories. It should be |
# an absolute path. |
|
if [ x$1 = x ]; then |
srcdir=`pwd` |
else |
srcdir=`cd $1 && pwd` |
shift |
fi |
|
# Make sure they don't have some file names mangled by untarring. |
echo -n "Checking the unpacked distribution..." |
if ( ! test -f ${srcdir}/intl/po2tblsed.in || \ |
! test -d ${srcdir}/gdb/testsuite/gdb.cxx || \ |
! test -f ${srcdir}/readline/config.h-in ) ; then |
echo " FAILED." |
echo "" |
echo "You MUST unpack the sources with the DJTAR command, like this:" |
echo "" |
echo " djtar -x -n fnchange.lst gdb-X.YZ.tar.gz" |
echo "" |
echo "where X.YZ is the GDB version, and fnchange.lst can be found" |
echo "in the gdb/config/djgpp/ directory in the GDB distribution." |
echo "configure FAILED!" |
exit 1 |
else |
echo " ok." |
fi |
|
# Where is the directory with DJGPP-specific scripts? |
DJGPPDIR=${srcdir}/gdb/config/djgpp |
|
echo "Editing configure scripts for DJGPP..." |
TMPFILE="${TMPDIR-.}/cfg.tmp" |
|
# We need to skip the build directory if it is a subdirectory of $srcdir, |
# otherwise we will have an infinite recursion on our hands... |
if test "`pwd`" == "${srcdir}" ; then |
SKIPDIR="" |
SKIPFILES="" |
else |
SKIPDIR=`pwd | sed -e "s|${srcdir}|.|"` |
SKIPFILES="${SKIPDIR}/*" |
fi |
for fix_dir in \ |
`cd $srcdir && find . -type d ! -ipath "${SKIPDIR}" ! -ipath "${SKIPFILES}"` |
do |
if test ! -f ${fix_dir}/configure.orig ; then |
if test -f ${srcdir}/${fix_dir}/configure ; then |
mkdir -p ${fix_dir} |
cp -p ${srcdir}/${fix_dir}/configure ${fix_dir}/configure.orig |
fi |
fi |
if test -f ${fix_dir}/configure.orig ; then |
sed -f ${DJGPPDIR}/config.sed ${fix_dir}/configure.orig > $TMPFILE |
update $TMPFILE ${fix_dir}/configure |
touch ./${fix_dir}/configure -r ${fix_dir}/configure.orig |
rm -f $TMPFILE |
fi |
if test -f ${fix_dir}/INSTALL ; then |
mv ${fix_dir}/INSTALL ${fix_dir}/INSTALL.txt |
fi |
done |
|
# Now set the config shell. It is really needed, that the shell |
# points to a shell with full path and also it must conatain the |
# .exe suffix. I assume here, that bash is installed. If not, |
# install it. Additionally, the pathname must not contain a |
# drive letter, so use the /dev/x/foo format supported by versions |
# of Bash 2.03 and later, and by all DJGPP programs compiled with |
# v2.03 (or later) library. |
export CONFIG_SHELL=/dev/env/DJDIR/bin/sh.exe |
|
# force to have the ltmain.sh script to be in DOS text format, |
# otherwise the resulting ltconfig script will have mixed |
# (UNIX/DOS) format and is unusable with Bash ports before v2.03. |
utod $srcdir/ltmain.sh |
|
# Give the configure script some hints: |
export LD=ld |
export CC=gcc |
export RANLIB=ranlib |
export DEFAULT_YACC="bison -y" |
export YACC="bison -y" |
export DEFAULT_LEX=flex |
# Define explicitly the .exe extension because on W95 with LFN=y |
# the check might fail |
export am_cv_exeext=.exe |
|
# The configure script needs to see the `install-sh' script, otherwise |
# it decides the source installation is broken. But "make install" will |
# fail on 8+3 filesystems if it finds a file `install-', since there |
# are numerous "install-foo" targets in Makefile's. So we rename the |
# offending file after the configure step is done. |
if test ! -f ${srcdir}/install-sh ; then |
if test -f ${srcdir}/install-.sh ; then |
mv ${srcdir}/install-.sh ${srcdir}/install-sh |
fi |
fi |
|
# Now run the configure script while disabling some things like the NLS |
# support, which is nearly impossible to be supported in the current way, |
# since it relies on file names which will never work on DOS. |
echo "Running the configure script..." |
$srcdir/configure --srcdir="$srcdir" --prefix='${DJDIR}' \ |
--disable-shared --disable-nls --verbose --enable-build-warnings=\ |
-Wimplicit,-Wcomment,-Wformat,-Wparentheses,-Wpointer-arith $* |
|
if test -f ${srcdir}/install- ; then |
mv ${srcdir}/install- ${srcdir}/install-.sh |
fi |
/README
0,0 → 1,191
|
How to build and install the DJGPP native version of GDB |
******************************************************** |
|
General |
======= |
|
GDB built with DJGPP supports native DJGPP debugging, whereby you run |
gdb.exe and the program being debugged on the same machine. In |
addition, this version supports remote debugging via a serial port, |
provided that the target machine has a GDB-compatible debugging stub |
which can be linked with the target program (see the section "Remote |
Serial" in the GDB manual for more details). |
|
|
Installation of the binary distribution |
======================================= |
|
Simply unzip the gdbNNNb.zip file (where NNN is the version number) |
from the top DJGPP installation directory. Be sure to preserve the |
directory structure while you unzip (use -d switch if you do this with |
PKUNZIP). On Windows 9X and Windows 2000, use an unzip program which |
supports long file names; one such program is unzip32.exe, available |
from the DJGPP sites. |
|
If you need the libraries which are built as part of GDB, install the |
companion file gdbNNNa.zip. This allows to develop applications which |
use the same functions as GDB. For example, you can build your own |
front end to the debugger. |
|
|
Rebuilding GDB from sources |
=========================== |
|
1. Prerequisites |
------------- |
To build the package, you will need the DJGPP development environment |
(GCC, header files, and the libraries), and also DJGPP ports of the |
following tools: |
|
- GNU Make 3.78.1 or later |
- Bash 2.03 or later |
- GNU Sed |
- GNU Fileutils |
- GNU Textutils 2.0 or later |
- GNU Sh-utils |
- GNU Grep 2.4 or later |
- GNU Findutils |
- GNU Awk 3.04 or later |
- GNU Bison (only if you change one of the gdb/*.y files) |
- Groff (only if you need to format the man pages) |
- GNU Diffutils (only if you run the test suite) |
|
These programs should be available from the DJGPP sites, in the v2gnu |
directory. In addition, the configuration script invokes the `update' |
and `utod' utilities which are part of the basic DJGPP development kit |
(djdevNNN.zip). |
|
|
2. Unpacking the sources |
--------------------- |
If you download the source distribution from one of the DJGPP sites, |
just unzip it while preserving the directory structure (I suggest to |
use unzip32.exe available with the rest of DJGPP), and proceed to the |
section "How to build" below. |
|
Source distributions downloaded from one of the GNU FTP sites need |
some more work to unpack. First, you MUST use the `djunpack' batch |
file to unzip the package. That's because some file names in the |
official distributions need to be changed to avoid problems on the |
various platforms supported by DJGPP. `djunpack' invokes the `djtar' |
program (that is part of the basic DJGPP development kit) to rename |
these files on the fly given a file with name mappings; the |
distribution includes a file `gdb/config/djgpp/fnchange.lst' with the |
necessary mappings. So you need first to retrieve that batch file, |
and then invoke it to unpack the distribution. Here's how: |
|
djtar -x -p -o gdb-5.0/djunpack.bat gdb-5.0.tar.gz > djunpack.bat |
djunpack gdb-5.0.tar.gz |
|
(The name of the distribution archive and the leading directory of the |
path to `djunpack.bat' in the distribution will be different for |
versions of GDB other than 5.0.) |
|
If the argument to `djunpack.bat' include leading directories, it MUST |
be given with the DOS-style backslashes; Unix-style forward slashes |
will NOT work. |
|
If the distribution comes as a .tar.bz2 archive, you need to unpack it |
as follows: |
|
bnzip2 gdb-5.0.tar.bz2 |
djtar -x -p -o gdb-5.0/djunpack.bat gdb-5.0.tar > djunpack.bat |
djunpack gdb-5.0.tar |
|
|
3. How to build |
------------ |
|
The source distribution available from DJGPP archives is already |
configured for DJGPP v2.x, so if you only want to compile it, just |
invoke Make: |
|
make |
|
To build a package downloaded from a GNU FTP site, you will need o |
configure it first. You will also need to configure it if you want to |
change the configuration options (e.g., compile with support for the |
GDBMI interface). To configure GDB, type this command: |
|
sh ./gdb/config/djgpp/djconfig.sh |
|
This script checks the unpacked distribution, then edits the configure |
scripts in the various subdirectories, to make them suitable for |
DJGPP, and finally invokes the top-level configure script, which |
recursively configures all the subdirectories. |
|
You may pass optional switches to djconfig.sh. It accepts all the |
switches accepted by the original GDB configure script. These |
switches are described in the file gdb/README, and their full list be |
displayed by running the following command: |
|
sh ./gdb/configure --help |
|
NOTE: if you *do* use optional command-line switches, you MUST pass |
to the script the name of the directory where GDB sources are |
unpacked--even if you are building GDB in-place! For example: |
|
sh ./gdb/config/djgpp/djconfig.sh . --enable-gdbmi |
|
It is also possible to build GDB in a directory that is different from |
the one where the sources were unpacked. In that case, you have to |
pass the source directory as the first argument to the script: |
|
sh ./gdb/config/djgpp/djconfig.sh d:/gnu/gdb-5.0 |
|
You MUST use forward slashes in the first argument. |
|
After the configure script finishes, run Make: |
|
make |
|
If you want to produce the documentation (for example, if you changed |
some of the Texinfo sources), type this: |
|
make info |
|
When Make finishes, you can install the package: |
|
make -k install prefix='${DJDIR}' INSTALL='ginstall -c' |
|
The above doesn't install the docs; for that you will need to say |
this: |
|
make -k install-info prefix='${DJDIR}' INSTALL='ginstall -c' |
|
(The -k switch is required, because some unneeded targets that are |
part of the install process fail; -k lets Make run to completion |
nonetheless.) |
|
The test suite has been made to work with DJGPP. If you make a change |
in some of the programs, or want to be sure you have a fully |
functional GDB executable, it is a good idea to run the test suite. |
You cannot use "make check" for that, since it will want to run the |
`dejagnu' utility which GDB doesn't support. Instead, use the special |
script gdb/config/djgpp/djcheck.sh, like this: |
|
cd gdb/testsuite |
sh ../config/djgpp/djcheck.sh |
|
This will run for a while and should not print anything, except the |
messages "Running tests in DIR", where DIR is one of the |
subdirectories of the testsuite. Any test that fails to produce the |
expected output will cause the diffs between the expected and the |
actual output be printed, and in addition will leave behind a file |
SOMETHING.tst (where SOMETHING is the name of the failed test). You |
should compare each of the *.tst files with the corresponding *.out |
file and convince yourself that the differences do not indicate a real |
problem. Examples of differences you can disregard are changes in the |
copyright blurb printed by GDB, values of unitialized variables, |
addresses of global variables like argv[] and envp[] (which depend on |
the size of your environment), etc. |
|
Note that djcheck.sh only recurses into those of the subdirectories of |
the test suite which test features supported by the DJGPP port of GDB. |
For example, the tests in the gdb.gdbtk, gdb.threads, and gdb.hp |
directories are not run. |
|
|
Enjoy, |
Eli Zaretskii <eliz@is.elta.co.il> |