discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

a gdb question


From: David Relson
Subject: a gdb question
Date: Sat, 15 Mar 2003 14:30:39 -0500

Hi,

My preferred development environment is to use emacs as my ide. This gives me the editor I like and, with gud (the "grand unified debugger"), a reasonable visual debugger. When I start gdb from emacs the startup looks like:

Current directory is /home/relson/GNUstep/Hello/obj/
GNU gdb 5.3
Copyright 2002 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 "i686-pc-linux-gnu"...
(gdb) b main
Breakpoint 1 at 0x804b51a: file main.m, line 5.
(gdb) r
Starting program: /home/relson/GNUstep/Hello/shared_debug_obj/Hello
/home/relson/GNUstep/Hello/shared_debug_obj/Hello: error while loading shared libraries: libgnustep-base.so.1: cannot open shared object file: No such file or directory
Program exited with code 0177.

If I simply run "gdb obj/Hello" from a command line, gdb is perfectly happy (though I don't have the source code view that emacs provides).

I _am_ setting solib-search-path with a "set solib-search-path=/usr/GNUstep/System/Libraries" in my .gdbinit file, but that doesn't help. "ldd obj/Hello" affirms that /usr/GNUstep/System/Libraries is the correct path.

My gdb-5.3 does have the Objective-C patches applied.

What is the proper thing to do?

Thanks.

David





reply via email to

[Prev in Thread] Current Thread [Next in Thread]