⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 objdbg04.exp

📁 lwip在ucos上的移植
💻 EXP
字号:
# Test reading debug information from in object files.if { [skip_hp_tests] } { continue }if { ![istarget "hppa*-*-hpux*"] } {    verbose "HPUX test ignored for non-hppa targets."    return 0}set testfile "test"set srcsubdir ${srcdir}/${subdir}/objdbg04set objdbgdir ${objdir}/${subdir}/objdbg04set binfile ${objdbgdir}/${testfile}set toolssubdir ${srcdir}/${subdir}/toolsset symaddrfile ${toolssubdir}/symaddrif { [gdb_compile "${toolssubdir}/test-objdbg.cc" "${objdbgdir}/test-objdbg.o" object "debug c++ {additional_flags=-I${toolssubdir} +objdebug}"] != "" } {    gdb_suppress_entire_file "WARNING: +objdebug option is not supported in this compiler version, test ignored."}if { [gdb_compile "${srcsubdir}/x1.cc" "${objdbgdir}/x1.o" object "debug c++ {additional_flags=-I${srcsubdir} +objdebug}"] != "" } {    perror "Couldn't compile x1.cc"    return -1}if { [gdb_compile "${srcsubdir}/x2.cc" "${objdbgdir}/x2.o" object "debug c++ {additional_flags=-I${srcsubdir} +objdebug}"] != "" } {    perror "Couldn't compile x2.cc"    return -1}if { [gdb_compile "${objdbgdir}/x1.o ${objdbgdir}/x2.o" "${binfile}0" executable "debug c++ {additional_flags=-I${srcsubdir} +objdebug}"] != "" } {    perror "Couldn't compile x1.cc"    return -1}if { [gdb_compile "${objdbgdir}/x2.o ${objdbgdir}/x1.o" "${binfile}1" executable "debug c++ {additional_flags=-I${srcsubdir} +objdebug}"] != "" } {    perror "Couldn't compile x1.cc"    return -1}# Test two executables. The first has x1.cc linked first, the second# has x2.cc linked first.  The difference is which COMDAT section was# picked.for {set filenum 0} {$filenum < 2} {incr filenum 1} {  gdb_exit  gdb_start  gdb_reinitialize_dir ${srcsubdir}  gdb_load ${binfile}${filenum}  gdb_test "ptype Adder" "type = template <class T> (class |)Adder {..*T val.*;.*}(.*template instantiations:.*Adder<int>|)"  gdb_test "ptype Adder<int>" "type = (class |)Adder<int> {.*private:.*int val;.*public:.*void set( |)\\(int\\);.*int get( |)\\(void\\);.*int add( |)\\(int\\);.*}"  gdb_test "ptype Adder" "type = template <class T> (class |)Adder {..*T val.*;.*}(.*template instantiations:.*Adder<int>|)"}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -