PDA

View Full Version : How to specify runtime options with fdb?


paulv
07-12-2005, 05:18 PM
Hello,

(Setup: lf95 express 6.2c under RHE3)

I'm trying to debug a program that reads a big-endian data file on a little-endian box. When I simply invoke the program on the command line, I use the -Wl,-T runtime option. But when I want to run the program in the debugger, fdb, I can't figure out how to specify those runtime options. E.g. doing something like:

fdb Test_ChannelInfo -Wl,-T

(where Test_ChannelInfo is the name of my executable) starts fdb but with the message:

Option not found:"-Wl,-T".

I can then run the program in the debugger, but it coughs up when it tries to read the datafile (as expected...my code traps for this possibility).

I've looked in the fdb documentation chapter, and I did a quick search of these forums but found nothing to indicate how to pass the runtime options into fdb. Can anyone help?

Thanks,

paulv

Lahey Support
07-12-2005, 07:19 PM
To pass runtime options to a program while executing in fdb add them to the run command used to start the program.

For more information, see the description of the run command in Chapter 4 of the LF95 User's Guide, Command-Line Debugging with fdb.