Excerpts from Daniel Jacobowitz's message of Thu Aug 12 18:42:17 +0200 2010:
> 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?

Yes, it works better.

However, the file which is normally executed is /usr/bin/X and running
gdb with that does not work either. Obviously it is also the wrong file.

Thanks

Michal



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to