[Apple] gdb が動かないと思ったら…


Zsh だと Darwin で gdb が動かない。こんな感じ:



pineapple% gdb
Unable to start GDB: unknown architecture "unknown-apple-darwin5.4"


でも XEmacs から M-x shell して実行した shell (tcsh) だと、こんな感じにきちんと動く。



pineapple: {152} gdb
GNU gdb 5.0-20001113 (Apple version gdb-203) (Wed Nov 7 16:28:57 GMT 2001) (UI_OUT)
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "powerpc-apple-macos10".
(gdb)


なぜだか よぉ分からんが、まぁいいかぁ。ただ、opensource.apple.com の Bug entry にuname() should include processor typeというエントリがあるんだけど、これも関係あるのかなぁ。

コメント

このブログの人気の投稿

パスワードを覚えるのも無理があるから、パスワードマネージャ使いましょう。

大型特殊自動車免許を取った時の話。

車両系建設機械運転者(整地) の講習