gdb
[Top][All Lists]
Advanced

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

[Gdb] Re: problem seeing executable file


From: Ben Elliston
Subject: [Gdb] Re: problem seeing executable file
Date: 16 Dec 2004 13:29:08 +1100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Jon Hatchett <address@hidden> writes:

> I am afraid I have a very simple problem but I am not very good with
> Linux. I want to use gdb (here on a test program a.out), but it
> seems that gdb cannot see the file even though from the directory it
> runs fine.

> bash-2.05b$ a.out
> hello world
> bash-2.05b$ gdb a.out
[...]
> "i386-redhat-linux-gnu"..."/home/jonh/dynamicrewire/numerics/a.out": not
> in executable format: File format not recognized

> .:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin
> so the present directory does seem to be in the path.

GDB doesn't search the path for files.  You need to either give the
full path to a.out, or you need to cd into that directory before
running GDB.

BTW, having . at the front of your path is probably not wise.

Cheers, Ben






reply via email to

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