2004年08月04日

おうちでサーバ(その13: gdb-6.1について)

gdb-6.1 おぼえがき補逸

以下はgdb/configureの10532行目からの引用.

host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
if test ! -f ${host_makefile_frag}; then
  # When building a native debuger the .mh file containing things
  # like NATDEPFILES is needed.  Cross debuggers don't need .mh
  # since it no longer contains anything useful.
  if test "${target}" = "${host}"; then
      { echo "configure: error: "*** Gdb does not support native target ${host}"" 1>&2; exit 1; }
  else
      host_makefile_frag=/dev/null
  fi
fi

ここで${srcdir}=gdb,${gdb_host_cpu}=sh4, ${gdb_host}=linuxということになっているらしい.したがって,ここの判定に成功するためには, gdb/config/sh4/linux.mhというファイルが存在しなければならない.

想像したとおり,gdb/config/shというディレクトリはあるが,gdb/config/sh4というディレクトリはない. まあ,これはlinkを張ってやればいいだけ.

問題は,

landisk# ls gdb/config/sh
embed.mt  nbsd.mh  nm-nbsd.h   tm-nbsd.h  tm-wince.h
linux.mt  nbsd.mt  tm-linux.h  tm-sh.h    wince.mt

…*.mhがnbsd.mhしかない.

ただ,この中身を見ると,

landisk# cat gdb/config/sh/nbsd.mh
# Host: SuperH running NetBSD
NAT_CLIBS=
NATDEPFILES= infptrace.o inftarg.o fork-child.o shnbsd-nat.o
NAT_FILE= nm-nbsd.h

というだけなので,gdbとsh4の両方についてちゃんと知っていればshnbsd-nat.c相当品(のlinux版) をでっちあげるだけでいけるばず.

…と,ここまで書いてふと思い立って「sh-linux-nat.c(mips-linux-nat.cからの類推)」 でぐぐってみたら,やっぱり誰か書いたことがあって存在するらしい.それなのになぜgdb-6.1に含まれないんだろうと思っていたら,

... See the -nat file associated with your target. In this case it's sh-linux-nat.c, if I remember right - which isn't in the FSF GDB sources (was never contributed :().

[Daniel Jacobowitz, 2004]

…そういうことだったのか.oTZ

この記事へのコメント
書き込むmature women amatuer xnj http://amatuer.bluesauce.com/mature-women-amatuer.html mature women amatuer
amatuer vidoe porn xnj http://amatuer.bluesauce.com/amatuer-vidoe-porn.html amatuer vidoe porn
amatuer teen sex videos xnj http://amatuer.bluesauce.com/amatuer-teen-sex-videos.html amatuer teen sex videos
amatuer nude women pics xnj http://amatuer.bluesauce.com/amatuer-nude-women-pics.html amatuer nude women pics
amatuer sex videos married couples xnj http://amatuer.bluesauce.com/amatuer-sex-videos--married-couples.html amatuer sex videos married couples
amatuer sex acts xnj http://amatuer.bluesauce.com/amatuer-sex-acts.html amatuer sex acts
amatuer series index sex xnj http://amatuer.bluesauce.com/amatuer-series-index-sex.html amatuer series index sex
absolute free amatuer porn sites xnj http://amatuer.bluesauce.com/absolute-free-amatuer-porn-sites.html absolute free amatuer porn sites
amatuer nude women community xnj http://amatuer.bluesauce.com/amatuer-nude-women-community.html amatuer nude women community
teen male str8 amatuer porn xnj http://amatuer.bluesauce.com/teen-male-str8-amatuer-porn.html teen male str8 amatuer porn
free movies of amatuer porn xnj http://amatuer.bluesauce.com/free-movies-of-amatuer-porn.html free movies of amatuer porn
private amatuer sex videos xnj http://amatuer.bluesauce.com/private-amatuer-sex-videos.html private amatuer sex videos
live amatuer sex xnj http://amatuer.bluesauce.com/live-amatuer-sex.html live amatuer sex
amatuer sex anal free xnj http://amatuer.bluesauce.com/amatuer-sex-anal-free.html amatuer sex anal free
amatuer first date porn video xnj http://amatuer.bluesauce.com/amatuer-first-date-porn-video.html amatuer first date porn video
dirty amatuer sex xnj http://amatuer.bluesauce.com/dirty-amatuer-sex.html dirty amatuer sex
video sex gay amatuer xnj http://amatuer.bluesauce.com/video-sex-gay-amatuer.html video sex gay amatuer
amatuer sex personals xnj http://amatuer.bluesauce.com/amatuer-sex-personals.html amatuer sex personals
amatuer housewives masturbating xnj http://amatuer.bluesauce.com/amatuer-housewives-masturbating.html amatuer housewives masturbating
amatuer video girls xnj http://amatuer.bluesauce.com/amatuer-video-girls.html amatuer video girls
amatuer porn audition xnj http://amatuer.bluesauce.com/amatuer-porn-audition.html amatuer porn audition
amatuer home made sex may xnj http://amatuer.bluesauce.com/amatuer-home-made-sex-may.html amatuer home made sex may
amatuer sex cam xnj http://amatuer.bluesauce.com/amatuer-sex-cam.html amatuer sex cam
free sick amatuer sex photos xnj http://amatuer.bluesauce.com/free-sick-amatuer-sex-photos.html free sick amatuer sex photos
famous amatuer porn stars xnj http://amatuer.bluesauce.com/famous-amatuer-porn-stars.html famous amatuer porn stars
amatuer women at home naked xnj http://amatuer.bluesauce.com/amatuer-women-at-home-naked.html amatuer women at home naked
amatuer blogs sex fun xnj http://amatuer.bluesauce.com/amatuer-blogs-sex-fun.html amatuer blogs sex fun
amatuer porn latina xnj http://amatuer.bluesauce.com/amatuer-porn--latina.html amatuer porn latina
skinny sex amatuer xnj http://amatuer.bluesauce.com/skinny-sex-amatuer.html skinny sex amatuer
free amatuer homemade porn video xnj http://amatuer.bluesauce.com/free-amatuer-homemade-porn-video.html free amatuer homemade porn video
Posted by mature women amatuer at 2006年10月03日 10:12
コメントを書く
お名前:

メールアドレス:

ホームページアドレス:

コメント:


この記事へのトラックバック
×

この広告は180日以上新しい記事の投稿がないブログに表示されております。