help: gdb can't find ../sysdeps/x86_64/elf/start.S
Folks, I'm trying to debug a simple program using gdb on SuSE 9.2 64bit stock (up to date on all patches), and I get an error when trying to debug the code in gdb: +++++++++++++ $ gdb myprog GNU gdb 6.2.1 Copyright 2004 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 "x86_64-suse-linux"...Using host libthread_db library "/lib64/tls/libthread_db.so.1". (gdb) list 1 ../sysdeps/x86_64/elf/start.S: No such file or directory. in ../sysdeps/x86_64/elf/start.S ++++++++++++++++ I'm writing a simple Qt application, which compiles fine and exits cleanly. I don't want to publish the code just yet, so can't include it here unfortunately. But the code itself doesn't seem to be the problem anyway. This are sample compilation commands (generated by qmake): # same for all objects: g++ -c -pipe -O2 -fmessage-length=0 -Wall -Wall -W -g -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/lib/qt3/mkspecs/default -I. -I/usr/include -I/usr/lib/qt3/include -I.ui/ -I. -I.moc/ -o .obj/mycode.o mycode.cpp # the linking step: g++ -o myprog .obj/mycode.o .obj/main.o .obj/mydialog.o .obj/moc_mydialog.o -L/usr/lib64/ -L/usr/lib/qt3/lib64/ -L/usr/X11R6/lib64/ -lqt-mt -lXext -lX11 -lm Anyone knows what the problem is here? Issues I should be aware of? Any help would be greatly appreciated. TIA
participants (1)
-
Adalberto Castelo