debugging - C++: Do I need GCC and GDB with the same version to debug -


i developing in c++ on windows mingw. have debugging problems @ moment.

i must use , old version of gcc (4.4). wondering if possible compile old gcc , debug new gdb?

what link between 2 of them?

thanks!

(any pointers regarding debugger crashes appreciated too! know need sure use debug dlls)

gdb , gcc separate programs -- separate source bases (with bit of shared code, though not much), separate maintainers, different release schedules, , different version numbers. share bit of culture , of course there coordination.

gdb reasonably backward compatibility. keeps workarounds bugs in debuginfo emitted older versions of gcc , other compilers. means can upgrade gdb while keeping same gcc version.

the reverse, though, not case. new version of gcc emits debug info older gdb cannot understand. in situation must upgrade gdb well. in limited situations can pass compatibility flag gcc ask downgraded debug info, isn't possible. and, since simple upgrade gdb, might well.


Comments

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -