NetBSD/macppc | build.sh | kernel | models(NetBSD) | models(ki.nu) | Tsubai San | Starting | (English) | sysinst | X11 | kernel | Install in English | mozilla | make build | Open Firmware | sup | StarMax (Diary) | Diary | Links | NetBSD at ki.nu | NetBSD links | ki.nu 全文検索

gdb for NetBSD/PowerPC

URL
GDB internals
(これが原本ではないと思うのだけれど)
http://www.delorie.com/gnu/docs/gdb/gdbint_toc.html
The diffball to be used with `patch' against a vanilla binutils distribution can be found at:
ftp://ftp.duh.org/pub/NetBSD-hacks/binutils-2.9.1.diff.gz
with the addendum patch(es) that should be applied after the above:
ftp://ftp.duh.org/pub/NetBSD-hacks/elf64-alpha.c.diff
patch for gdb-4.16 and gdb-4.17
ftp://ftp.NetBSD.ORG/pub/NetBSD/arch/powerpc/tools/
gdb-4.16,4.17
ftp://ftp.iij.ad.jp/pub/GNU/gdb/

19990204

気を取り直してもう一度 gdb-4.17 の下で
makoto@harry  22:56:22/990204(...src2/gdb-4.17)> ./configure
Configuring for a powerpc-apple-netbsd1.3I host.
Created "Makefile" in /usr/src2/gdb-4.17
./config.status is unchanged
configure: error: *** Gdb does not support host powerpc-apple-netbsd1.3I
Configure in /usr/src2/gdb-4.17/gdb failed, exiting.
makoto@harry  23:01:36/990204(...src2/gdb-4.17)>

どこで言っているか分らない時は sh -xv configure として見る。
gdb-4.17/gdb で言っている。

host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
+ host_makefile_frag=./config/powerpc/.mh
if test ! -f ${host_makefile_frag}; then
{ echo "configure: error: "*** Gdb does not support host ${host}"" 1>&2; exit 1; }
fi
+ test ! -f ./config/powerpc/.mh
+ echo configure: error: *** Gdb does not support host powerpc-apple-netbsd1.3I
configure: error: *** Gdb does not support host powerpc-apple-netbsd1.3I
+ exit 1

19990203/

binutils-2.9.1.diff を当てて binutils-2.9.1/bfd をそっくり 4.16 の下に写す
makoto@harry  22:38:19/990203(...src2/gdb-4.16)> ./configure
Configuring for a powerpc-apple-netbsd1.3I host.
Created "Makefile" in /usr/src2/gdb-4.16
./config.status is unchanged
./../ltconfig: Can't open ./../ltconfig
configure: error: libtool configure failed
Configure in /usr/src2/gdb-4.16/bfd failed, exiting.
makoto@harry  22:40:24/990203(...src2/gdb-4.16)> 

19990203/4.17

が用意されている気がしたので試したが、全然その気配なし。
makoto@harry  21:37:34/990203(/usr/src2)> tar zxf /pub/gnu/gdb-4.17.tar.gz
makoto@harry  21:42:04/990203(/usr/src2)> cd gdb-4.17
makoto@harry  21:47:52/990203(...src2/gdb-4.17)> less /pub/NetBSD/PowerPC/gdb-4.17-diffs 
makoto@harry  21:48:05/990203(...src2/gdb-4.17)> patch -s -p0 < /pub/NetBSD/PowerPC/gdb-4.17-diffs
makoto@harry  22:21:25/990203(...src2/gdb-4.17)> ./configure
Configuring for a macppc-unknown-netbsd1.3I host.
Invalid configuration `macppc-unknown-netbsd1.3I': machine `macppc-unknown' not 
recognized
Invalid configuration `macppc-unknown-netbsd1.3I': machine `macppc-unknown' not 
recognized
Unrecognized host system name macppc-unknown-netbsd1.3I.
makoto@harry  22:21:33/990203(...src2/gdb-4.17)
makoto@harry  22:22:24/990203(...src2/gdb-4.17)> cp ../gdb-4.16/config.guess .
makoto@harry  22:22:35/990203(...src2/gdb-4.17)> cp ../gdb-4.16/config.sub .
makoto@harry  22:22:38/990203(...src2/gdb-4.17)> ./configure
Configuring for a powerpc-apple-netbsd1.3I host.
Created "Makefile" in /usr/src2/gdb-4.17
configure: error: *** Gdb does not support host powerpc-apple-netbsd1.3I
Configure in /usr/src2/gdb-4.17/gdb failed, exiting.
makoto@harry  22:29:13/990203(...src2/gdb-4.17)> 

19990202/ 4.16

にいい加減に 修正を加えて cp -p config/sparc/nbsd.m* config/powerpc/ cp -p config/sparc/*-nbsd* config/powerpc/ 組立てようとしたが sys_errlist で問題が起きる。