gdb and configuration files 
Author Message
 gdb and configuration files

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

    Mike> I run a c program executable nameed a.exe which requires a
    Mike> configuration file (which contains data) a.conf to run.
    Mike> a.exe will not run unless a.conf is typed after it.

    Mike> I execute them using the syntax

    Mike> a.exe a.conf

    Mike> How do I use gdb to debug such a program?

This is off-topic here.

Start gdb with the exe [ gdb a.exe RET ] and then in gdb type `r
a.conf' -- this is the way to pass commandline args.  This is clearly
stated in the documentation:

The *arguments.*
     Specify the arguments to give your program as the arguments of the
     `run' command.

The manual is your friend.

mp

- --
powered by GNU/linux since Sept 1997                 Penguin spoken here

Michael Powe                                        Portland, Oregon USA
  "Would John the Baptist have lost his head if his name was Steve?"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v0.9.0 (GNU/Linux)
Comment: Encrypted with Mailcrypt 3.5.1 and GNU Privacy Guard

iD8DBQE3NT13755rgEMD+T8RAqSMAKCFgQj/RbS9pcTgHJNr6+0DleNfEwCgpJBB
WWh3UENRazLq8fss1M2RNK0=
=OXCd
-----END PGP SIGNATURE-----



Thu, 25 Oct 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. how to: XML file as application configuration file

2. gdb cannot find a source file - help !!!

3. Configuration Manager loses configurations

4. Unhandled Exception: System.Configuration.ConfigurationException: Could not create System Configuration.NameValueSectionHandler, System

5. saving configuration files

6. Project Configurations are out of date -- another solution for Libraries/LIB files

7. Configuration files for DLL`s when app is unmanaged .exe

8. fgets reading a configuration file: compiles OK but output wrong

9. fgets reading a configuration file:

10. reading a configuration file

11. Loading Configuration files in C#

12. Configuration file

 

 
Powered by phpBB® Forum Software