gdb include paths

Ignacio Castaño <[email protected]>
Newsgroups gmane.comp.gdb.general
Message-ID <[email protected]>
Hi,

I've been using gdb for some time, but I had to live with an annoying
problem that finally I've decided to ask about, because I've not been
able to find a solution for it on my own.

The problem is that it seems that gdb is not able to find the source
code of some of the files that I'm debugging. The file structure of my
project is as follows:

./code/*/include
./code/*/src

The binaries are in . and * stands for different module names. I have
no problem listing the contents of the files that are in the src
folders, but I cannot do the same with the files contained in the
include folder. I would like to know if it's possible to add
additional search paths to gdb and if it would be possible to store
those search paths in a config file, so that I don't have to add them
on every session.

I'm also looking for a function to determine whether the debugger is
running or not, similar to the win32 IsDebuggerPresent function, so
that I can determine the presence of the debugger in my error handling
code.

Thanks in advance!

-- 
Ignacio Castaño
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.