gdb を使用して C プログラムをデバッグしようとしています。使用しているコンパイル フラグは次のとおりです。
-fno-strict-aliasing -Wall -DHAVE_CONFIG_H -DNO_OLD_ERF_TYPES -Werror -Wredundant-decls -O2 -DNDEBUG -DBYTESWAP -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -g
私が使用しているコンパイラのバージョンは
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-52)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
私はとしてデバッグします
libtool gdb mytool
ブレークポイントを設定してプログラムを実行すると、実行がブレークポイントで停止せず、次の警告が表示されます。
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x2aaaaaaab000
[Thread debugging using libthread_db enabled]