You are not logged in.

1

Tuesday, March 25th 2008, 1:47am

separate_debug_info and the .debug file

when i study qt4 in the examples and demos,i find the *.debug file on linux os, these file can not be find in qt3 and qt4 install on windows , what is separate_debug_info use for? how i use the *.debug file? i ues command file *.debug and i find the *.debug is a exe file,but when i run it the program core:(

thanks for help:)

This post has been edited 1 times, last edit by "trytoremeber963" (Mar 25th 2008, 1:49am)


2

Thursday, March 27th 2008, 1:06am

help me !!!!

3

Thursday, March 27th 2008, 5:09pm

RE: separate_debug_info and the .debug file

separate_debug_info is to produce two files

first: application
- contains only executable code
- is smaller than if it was containing debugging informations

second: application.debug
- contains debugging informations
- is used when you run you application under the control of a debugger
or when a crash produce a core file

I think this config option doesn't work under Windows
Nicolas

4

Friday, March 28th 2008, 4:17pm

thank you very much at first,

and i still have some questions ,
first ,is it the application contain the debug information?if he application does not include the debug information , how can i debug the application?
if the application contain the debug information ,what the application.debug use for?

second,where i use the gdb run the applicaion.debug,but it can not start the application.debug,(i have chown +x application.debug)

and i see the configure file and find the fellow text:
if [ "$CFG_SEPARATE_DEBUG_INFO" = "yes" ]; then
QMakeVar add QMAKE_CFLAGS -g
QMakeVar add QMAKE_CXXFLAGS -g
QMAKE_CONFIG="$QMAKE_CONFIG separate_debug_info"
fi

it means when i add separate_debug_info to the CONFIG option the compliber add -g,
but if i am not add separate_debug_info it will no -g and no application.debug ,oh ?? the application is not contian the debug info?? how can i debug the application????

5

Friday, March 28th 2008, 4:31pm

Quoted


first ,is it the application contain the debug information?if he application does not include the debug information , how can i debug the application?
if the application contain the debug information ,what the application.debug use for?

probably application contains info to find application.debug

Quoted


second,where i use the gdb run the applicaion.debug,but it can not start the application.debug,(i have chown +x application.debug)

run gdb with application, not application.debug

Quoted


and i see the configure file and find the fellow text:
if [ "$CFG_SEPARATE_DEBUG_INFO" = "yes" ]; then
QMakeVar add QMAKE_CFLAGS -g
QMakeVar add QMAKE_CXXFLAGS -g
QMAKE_CONFIG="$QMAKE_CONFIG separate_debug_info"
fi

it means when i add separate_debug_info to the CONFIG option the compliber add -g,
but if i am not add separate_debug_info it will no -g and no application.debug ,oh ?? the application is not contian the debug info?? how can i debug the application????

it's possible to compile release version with debug info

note that compile release version with debug info is not the same
than compile debug version because of optimisations
Nicolas

This post has been edited 2 times, last edit by "Nicolas SOUCHON" (Mar 28th 2008, 4:46pm)


6

Sunday, March 30th 2008, 6:34am

thank you very much
just usr "gdb application" to debug the application, do not care of the application.debug :tongue: