Mail Archives: djgpp/1996/04/29/11:04:56
From: j DOT aldrich6 AT genie DOT com
Date: Fri, 26 Apr 96 01:56:00 UTC 0000
Reply to message 4187547 from ELRIC AT WHEEL DOT D on 04/24/96 11:47AM
>I debug across multiple source files in mutliple directories. What is
>the difficulty? Or did I miss a winky?
How do you get multiple directories? When I run gdb, it can't find the
source code unless I run the program from the source directory.
John
Just use the "directory" command. You can specify one or more source
directories and GDB will add it/them to the list of directories it searches.
The default search list includes only current directory. You can also put dir
commands into your gdb init file for directories you frequently use or a
current hot project (it is .gdbinit in UNIX I don't remember the file name for
the DJGPP port, look in the info docs).
--
Art S. Kagel, kagel AT quasar DOT bloomberg DOT com
A proverb is no proverb to you 'till life has illustrated it. -- John Keats
- Raw text -