This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: patch to add QNX NTO i386 support


> > That being said, I'm of the opinion that exec-file should be
unconditional.
> > If symbol-file is set to one thing and exec-file to another, should gdb
even
> > need to check to see if exec-file exists?  I haven't looked to see what
info
> > exec-file seems to feel it needs from the binary but I figure the run
> > command will discover that the exec file isn't there and report an error
> > itself.  Then, in our case, the run command spawns on the remote and
> > everyone is happy and we don't need a special command.
>
> Good point.  Would a doco / code comparison be better to see if what
> currently goes on makes sense?

The docs only say the following:

<doc>

exec-file [ filename ]
Specify that the program to be run (but not the symbol table) is found in
filename. GDB searches the environment variable PATH if necessary to locate
your program. Omitting filename means to discard information on the
executable file.

</doc>

Right now it errors out if it doesn't find the file.  Inquiry: does
searching the path seem like a sensible thing to do?  It seems to me that
there could be unforseen consequences.

Kris


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]