On Fri, Aug 06, 2010 at 10:18:01AM +0200, Michal Suchanek wrote:
> The usage message suggests that when attaching to a process an
> executable image should be specified. This is useless and actually
> harmful, gdb can only load symbols if an executable is *not* specified.

The usage message is correct.  GDB can be run with or without an
executable file when attaching.

> IPX7A-ION:/home/hramrach# gdb /usr/lib/debug/usr/bin/Xorg 2921

That's the wrong file.  Use the program that was actually run; the
files in /usr/lib/debug are special, and GDB will load them
automatically.

If you use gdb /usr/bin/Xorg does it work better?

> Attaching to process 2921
> 
> Reading symbols from /usr/bin/Xorg...Reading symbols from 
> /usr/lib/debug/usr/bin/Xorg...done.

As you can see here, GDB loads /usr/bin/Xorg first when told to find
the file.

-- 
Daniel Jacobowitz
CodeSourcery



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to