[Qt-creator] Loading source files while debugging mingw app with gdb
Andre Poenitz
andre.poenitz at mathematik.tu-chemnitz.de
Tue Mar 22 20:17:36 CET 2011
On Tue, Mar 22, 2011 at 07:17:45PM +0100, Piotr Dobrogost wrote:
> On 2011-03-12 19:58, Andre Poenitz wrote:
>
> > Creator uses (more or less) what gdb tells it, and gdb uses (more or
> > less) what information the compiler put into the debug information.
>
> Is it? How then can we explain the fact that without any mappings of
> source files stdio_filebuf.h is found by debugger whereas fstream.tcc
> is not? Files are placed as follows:
> C:\MinGw\4.4.0-qt\lib\gcc\mingw32\4.4.0\include\c++\ext\stdio_filebuf.h
> c:\MinGW\4.4.0-qt\lib\gcc\mingw32\4.4.0\include\c++\bits\fstream.tcc
First guess is that they are not put in the same. Like one is releative
and the other not.
Second guess it's indeed not gcc but gdb and the difference comes from
gdb treating .h differently from .tcc (and before you say that's
impossible, check e.g. find_last_source_symtab_from_partial or
select_source_symtab implementation).
Andre'
More information about the Qt-creator-old
mailing list