关于在使用GDB调试工具调试源代码时报错问题解决

时间:2022-12-18 10:51:53
在使用AIX 5.3下使用GNU gdb 6.8调试源代码,当设置断点时,GDB提示报错:No symbol table is loaded.  Use the "file" command.
查了网上相关资料说是在源文件编译时,没有使用-g参数。但是从源代码编译信息看,是加了-g参数的,为什么在调试源代码时还是报错?请各位大侠帮忙看看,谢谢。
附上相关信息:
1、源代码编译信息(编译器为xlC_r):
mcgxzcbk%gmake
(for i in MakeQuery.mak MakeCalc.mak MakeProc.mak ; do (gmake -f $i all); done)
gmake[1]: Entering directory `/home/gx_home/mcgxzcbk/work/products/openias/abm51/monitor'
mkdir -p ./build/
xlC_r -brtl -bexpall -qlonglong -qlongdouble -q64 -qalign=full -qkeyword=typename   -DAIXV3 -DAIXV5 -DOPENBOSS -DV20 -DGANSU -D_REENTRANT -D__OPENBOSS_NGMAKE__ -DOBD_SELECTED_API -DBIT64 -D_THREAD_SAFE -DPTHREADS -DTHREAD -DOBD_DLL_CALL -DOBD_OPEN_BROKER_CALL -DOTL_ORA9I -DDB_TYPE_ORA -DOTL_DESTRUCTORS_DO_NOT_THROW -DOTL_STL -DABM_VER_NGCM -DOBD_MESSAGE_CALL -I/sw/oracle/9.2/rdbms/demo -I/sw/oracle/9.2/rdbms/public -I/sw/oracle/9.2/plsql/public -I/sw/oracle/9.2/network/public -I. -I. -I./inc -I./kernel -I./include -I/home/gx_home/mcgxzcbk/work/products/openias/abm51/public/inc -I/home/gx_home/mcgxzcbk/result/include -I/home/gx_home/mcgxzcbk/result/include/AI_ORL -I/home/gx_home/mcgxzcbk/result/include/common -I/home/gx_home/mcgxzcbk/result/include/billing40 -I/home/gx_home/mcgxzcbk/result/include/openias -I/home/gx_home/mcgxzcbk/result/include/openias/abm51 -I/home/gx_home/mcgxzcbk/result/include/openias/ams -I/home/gx_home/mcgxzcbk/result/include/openias/mdb -I/home/gx_home/mcgxzcbk/result/include/openias/aps51 -I. -I/home/gx_home/mcgxzcbk/result/include -I/home/gx_home/mcgxzcbk/result/include/abm51 -DDEBUG -g -qstaticinline -c ./src/MonitorQueryQueue.cpp -o build/MonitorQueryQueue.o
mkdir -p ./build/
xlC_r -brtl -bexpall -qlonglong -qlongdouble -q64 -qalign=full -qkeyword=typename   -DAIXV3 -DAIXV5 -DOPENBOSS -DV20 -DGANSU -D_REENTRANT -D__OPENBOSS_NGMAKE__ -DOBD_SELECTED_API -DBIT64 -D_THREAD_SAFE -DPTHREADS -DTHREAD -DOBD_DLL_CALL -DOBD_OPEN_BROKER_CALL -DOTL_ORA9I -DDB_TYPE_ORA -DOTL_DESTRUCTORS_DO_NOT_THROW -DOTL_STL -DABM_VER_NGCM -DOBD_MESSAGE_CALL -I/sw/oracle/9.2/rdbms/demo -I/sw/oracle/9.2/rdbms/public -I/sw/oracle/9.2/plsql/public -I/sw/oracle/9.2/network/public -I. -I. -I./inc -I./kernel -I./include -I/home/gx_home/mcgxzcbk/work/products/openias/abm51/public/inc -I/home/gx_home/mcgxzcbk/result/include -I/home/gx_home/mcgxzcbk/result/include/AI_ORL -I/home/gx_home/mcgxzcbk/result/include/common -I/home/gx_home/mcgxzcbk/result/include/billing40 -I/home/gx_home/mcgxzcbk/result/include/openias -I/home/gx_home/mcgxzcbk/result/include/openias/abm51 -I/home/gx_home/mcgxzcbk/result/include/openias/ams -I/home/gx_home/mcgxzcbk/result/include/openias/mdb -I/home/gx_home/mcgxzcbk/result/include/openias/aps51 -I. -I/home/gx_home/mcgxzcbk/result/include -I/home/gx_home/mcgxzcbk/result/include/abm51 -DDEBUG -g -qstaticinline -c ./src/MonitorQueryIntf.cpp -o build/MonitorQueryIntf.o
mkdir -p ./build/
fastdepend -nc -d./build/  -E/home/gx_home/mcgxzcbk/result/include -E/home/gx_home/mcgxzcbk/result/include/common -Ver -I. -I. -I./inc -I./kernel -I./include -I/home/gx_home/mcgxzcbk/work/products/openias/abm51/public/inc -I/home/gx_home/mcgxzcbk/result/include -I/home/gx_home/mcgxzcbk/result/include/AI_ORL -I/home/gx_home/mcgxzcbk/result/include/common -I/home/gx_home/mcgxzcbk/result/include/billing40 -I/home/gx_home/mcgxzcbk/result/include/openias -I/home/gx_home/mcgxzcbk/result/include/openias/abm51 -I/home/gx_home/mcgxzcbk/result/include/openias/ams -I/home/gx_home/mcgxzcbk/result/include/openias/mdb -I/home/gx_home/mcgxzcbk/result/include/openias/aps51 -I. -P. -P../kernel -P/home/gx_home/mcgxzcbk/work/products/openias/abm51/idl -P/home/gx_home/mcgxzcbk/result/idl -P/home/gx_home/mcgxzcbk/result/idl/openias/ams -P/home/gx_home/mcgxzcbk/work/products/openias//AbmMonitorQuery/ -P/home/gx_home/mcgxzcbk/work/products/openias//idl src/MonitorQueryQueue.cpp src/MonitorQueryIntf.cpp > ./build/Makefile_AbmMonitorQuery.version
dllver -m ./build/libAbmMonitorQueryD.so -g -d build/Makefile_AbmMonitorQuery.version -o __aiob_dll_version_for_AbmMonitorQuery.cpp
mkdir -p ./build/
xlC_r -brtl -bexpall -qlonglong -qlongdouble -q64 -qalign=full -qkeyword=typename   -DAIXV3 -DAIXV5 -DOPENBOSS -DV20 -DGANSU -D_REENTRANT -D__OPENBOSS_NGMAKE__ -DOBD_SELECTED_API -DBIT64 -D_THREAD_SAFE -DPTHREADS -DTHREAD -DOBD_DLL_CALL -DOBD_OPEN_BROKER_CALL -DOTL_ORA9I -DDB_TYPE_ORA -DOTL_DESTRUCTORS_DO_NOT_THROW -DOTL_STL -DABM_VER_NGCM -DOBD_MESSAGE_CALL -I/sw/oracle/9.2/rdbms/demo -I/sw/oracle/9.2/rdbms/public -I/sw/oracle/9.2/plsql/public -I/sw/oracle/9.2/network/public -I. -I. -I./inc -I./kernel -I./include -I/home/gx_home/mcgxzcbk/work/products/openias/abm51/public/inc -I/home/gx_home/mcgxzcbk/result/include -I/home/gx_home/mcgxzcbk/result/include/AI_ORL -I/home/gx_home/mcgxzcbk/result/include/common -I/home/gx_home/mcgxzcbk/result/include/billing40 -I/home/gx_home/mcgxzcbk/result/include/openias -I/home/gx_home/mcgxzcbk/result/include/openias/abm51 -I/home/gx_home/mcgxzcbk/result/include/openias/ams -I/home/gx_home/mcgxzcbk/result/include/openias/mdb -I/home/gx_home/mcgxzcbk/result/include/openias/aps51 -I. -I/home/gx_home/mcgxzcbk/result/include -I/home/gx_home/mcgxzcbk/result/include/abm51 -DDEBUG -g -qstaticinline -c __aiob_dll_version_for_AbmMonitorQuery.cpp -o build/__aiob_dll_version_for_AbmMonitorQuery.o
makeC++SharedLib    ./build/MonitorQueryQueue.o ./build/MonitorQueryIntf.o  ./build/__aiob_dll_version_for_AbmMonitorQuery.o -p0 -brtl -lpthreads -bhalt:5 -X64  -L/sw/oracle/9.2/lib -L. -L/home/gx_home/mcgxzcbk/result/lib -L/home/gx_home/mcgxzcbk/result/lib -lclntsh -lCbsSysClassD -lOpenBufferD -lCbsSysClassD -lOpenBufferD -lFrameD -lFrameFileD -lsockapiD -lBsXmlConfigD -lBsLogD -lxerces-c -o build/libAbmMonitorQueryD.so
gmake[1]: Leaving directory `/home/gx_home/mcgxzcbk/work/products/openias/abm51/monitor'

2、用GDB 6.8调试过程信息:
mcgxzccs[/home/gx_home/mcgxzccs/config/abm/monitor]%gdb ecframe
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "powerpc-ibm-aix5.1.0.0"...
Architecture of file not recognized.
(gdb) set environment LD_PRELOAD /home/gx_home/mcgxzccs/lib/libAbmMonitorQueryD.so
(gdb) set environment LD_PRELOAD /home/gx_home/mcgxzccs/lib/libAbmMonitorProcD.so
(gdb) set args -i /home/gx_home/mcgxzccs/config/abm/monitor/monitor.xml -g
(gdb) b main
No symbol table is loaded.  Use the "file" command.

10 个解决方案

#1


看下编译产生ecframe的语句有没加-g ?

#2


有加-g的,ecframe编译信息如下:
mcgxzcbk%gmake
xlC_r  -brtl -bexpall -qlonglong -qlongdouble -q64 -qalign=full -qstaticinline -qkeyword=typename -g       -D_REENTRANT -D_THREAD_SAFE -DPTHREADS -DTHREAD    -DOBD_SELECTED_API -DBIT64 -DAIXV3 -DAIXV5 -DOPENBOSS -DV20 -DGANSU -DDEBUG  -DOTL_ORA9I -DDB_TYPE_ORA -DOTL_DESTRUCTORS_DO_NOT_THROW -DOTL_STL    -I/sw/oracle/9.2/rdbms/demo -I/sw/oracle/9.2/rdbms/public -I/sw/oracle/9.2/plsql/public -I/sw/oracle/9.2/network/public -I/home/gx_home/mcgxzcbk/result/include/home -I/home/gx_home/mcgxzcbk/result/include -c log.cpp -o log.o
xlC_r  -brtl -bexpall -qlonglong -qlongdouble -q64 -qalign=full -qstaticinline -qkeyword=typename -g       -D_REENTRANT -D_THREAD_SAFE -DPTHREADS -DTHREAD    -DOBD_SELECTED_API -DBIT64 -DAIXV3 -DAIXV5 -DOPENBOSS -DV20 -DGANSU -DDEBUG  -DOTL_ORA9I -DDB_TYPE_ORA -DOTL_DESTRUCTORS_DO_NOT_THROW -DOTL_STL    -I/sw/oracle/9.2/rdbms/demo -I/sw/oracle/9.2/rdbms/public -I/sw/oracle/9.2/plsql/public -I/sw/oracle/9.2/network/public -I/home/gx_home/mcgxzcbk/result/include/home -I/home/gx_home/mcgxzcbk/result/include -c function_list.cpp -o function_list.o
xlC_r  -brtl -bexpall -qlonglong -qlongdouble -q64 -qalign=full -qstaticinline -qkeyword=typename -g       -D_REENTRANT -D_THREAD_SAFE -DPTHREADS -DTHREAD    -DOBD_SELECTED_API -DBIT64 -DAIXV3 -DAIXV5 -DOPENBOSS -DV20 -DGANSU -DDEBUG  -DOTL_ORA9I -DDB_TYPE_ORA -DOTL_DESTRUCTORS_DO_NOT_THROW -DOTL_STL    -I/sw/oracle/9.2/rdbms/demo -I/sw/oracle/9.2/rdbms/public -I/sw/oracle/9.2/plsql/public -I/sw/oracle/9.2/network/public -I/home/gx_home/mcgxzcbk/result/include/home -I/home/gx_home/mcgxzcbk/result/include -c nodedef.cpp -o nodedef.o
xlC_r  -brtl -bexpall -qlonglong -qlongdouble -q64 -qalign=full -qstaticinline -qkeyword=typename -g       -D_REENTRANT -D_THREAD_SAFE -DPTHREADS -DTHREAD    -DOBD_SELECTED_API -DBIT64 -DAIXV3 -DAIXV5 -DOPENBOSS -DV20 -DGANSU -DDEBUG  -DOTL_ORA9I -DDB_TYPE_ORA -DOTL_DESTRUCTORS_DO_NOT_THROW -DOTL_STL    -I/sw/oracle/9.2/rdbms/demo -I/sw/oracle/9.2/rdbms/public -I/sw/oracle/9.2/plsql/public -I/sw/oracle/9.2/network/public -I/home/gx_home/mcgxzcbk/result/include/home -I/home/gx_home/mcgxzcbk/result/include -c node.cpp -o node.o
xlC_r  -brtl -bexpall -qlonglong -qlongdouble -q64 -qalign=full -qstaticinline -qkeyword=typename -g       -D_REENTRANT -D_THREAD_SAFE -DPTHREADS -DTHREAD    -DOBD_SELECTED_API -DBIT64 -DAIXV3 -DAIXV5 -DOPENBOSS -DV20 -DGANSU -DDEBUG  -DOTL_ORA9I -DDB_TYPE_ORA -DOTL_DESTRUCTORS_DO_NOT_THROW -DOTL_STL    -I/sw/oracle/9.2/rdbms/demo -I/sw/oracle/9.2/rdbms/public -I/sw/oracle/9.2/plsql/public -I/sw/oracle/9.2/network/public -I/home/gx_home/mcgxzcbk/result/include/home -I/home/gx_home/mcgxzcbk/result/include -c flow.cpp -o flow.o
xlC_r  -brtl -bexpall -qlonglong -qlongdouble -q64 -qalign=full -qstaticinline -qkeyword=typename -g       -D_REENTRANT -D_THREAD_SAFE -DPTHREADS -DTHREAD    -DOBD_SELECTED_API -DBIT64 -DAIXV3 -DAIXV5 -DOPENBOSS -DV20 -DGANSU -DDEBUG  -DOTL_ORA9I -DDB_TYPE_ORA -DOTL_DESTRUCTORS_DO_NOT_THROW -DOTL_STL    -I/sw/oracle/9.2/rdbms/demo -I/sw/oracle/9.2/rdbms/public -I/sw/oracle/9.2/plsql/public -I/sw/oracle/9.2/network/public -I/home/gx_home/mcgxzcbk/result/include/home -I/home/gx_home/mcgxzcbk/result/include -c processmgr.cpp -o processmgr.o
xlC_r  -brtl -bexpall -qlonglong -qlongdouble -q64 -qalign=full -qstaticinline -qkeyword=typename -g       -D_REENTRANT -D_THREAD_SAFE -DPTHREADS -DTHREAD    -DOBD_SELECTED_API -DBIT64 -DAIXV3 -DAIXV5 -DOPENBOSS -DV20 -DGANSU -DDEBUG  -DOTL_ORA9I -DDB_TYPE_ORA -DOTL_DESTRUCTORS_DO_NOT_THROW -DOTL_STL    -I/sw/oracle/9.2/rdbms/demo -I/sw/oracle/9.2/rdbms/public -I/sw/oracle/9.2/plsql/public -I/sw/oracle/9.2/network/public -I/home/gx_home/mcgxzcbk/result/include/home -I/home/gx_home/mcgxzcbk/result/include -c time.cpp -o time.o
xlC_r  -brtl -bexpall -qlonglong -qlongdouble -q64 -qalign=full -qstaticinline -qkeyword=typename -g       -D_REENTRANT -D_THREAD_SAFE -DPTHREADS -DTHREAD    -DOBD_SELECTED_API -DBIT64 -DAIXV3 -DAIXV5 -DOPENBOSS -DV20 -DGANSU -DDEBUG  -DOTL_ORA9I -DDB_TYPE_ORA -DOTL_DESTRUCTORS_DO_NOT_THROW -DOTL_STL    -I/sw/oracle/9.2/rdbms/demo -I/sw/oracle/9.2/rdbms/public -I/sw/oracle/9.2/plsql/public -I/sw/oracle/9.2/network/public -I/home/gx_home/mcgxzcbk/result/include/home -I/home/gx_home/mcgxzcbk/result/include -c frame_interface.cpp -o frame_interface.o
xlC_r  -brtl -bexpall -qlonglong -qlongdouble -q64 -qalign=full -qstaticinline -qkeyword=typename -g       -D_REENTRANT -D_THREAD_SAFE -DPTHREADS -DTHREAD    -DOBD_SELECTED_API -DBIT64 -DAIXV3 -DAIXV5 -DOPENBOSS -DV20 -DGANSU -DDEBUG  -DOTL_ORA9I -DDB_TYPE_ORA -DOTL_DESTRUCTORS_DO_NOT_THROW -DOTL_STL    -I/sw/oracle/9.2/rdbms/demo -I/sw/oracle/9.2/rdbms/public -I/sw/oracle/9.2/plsql/public -I/sw/oracle/9.2/network/public -I/home/gx_home/mcgxzcbk/result/include/home -I/home/gx_home/mcgxzcbk/result/include -c timer.cpp -o timer.o
xlC_r  -brtl -bexpall -qlonglong -qlongdouble -q64 -qalign=full -qstaticinline -qkeyword=typename -g       -D_REENTRANT -D_THREAD_SAFE -DPTHREADS -DTHREAD    -DOBD_SELECTED_API -DBIT64 -DAIXV3 -DAIXV5 -DOPENBOSS -DV20 -DGANSU -DDEBUG  -DOTL_ORA9I -DDB_TYPE_ORA -DOTL_DESTRUCTORS_DO_NOT_THROW -DOTL_STL    -I/sw/oracle/9.2/rdbms/demo -I/sw/oracle/9.2/rdbms/public -I/sw/oracle/9.2/plsql/public -I/sw/oracle/9.2/network/public -I/home/gx_home/mcgxzcbk/result/include/home -I/home/gx_home/mcgxzcbk/result/include -c util.cpp -o util.o
xlC_r  -brtl -bexpall -qlonglong -qlongdouble -q64 -qalign=full -qstaticinline -qkeyword=typename -g       -D_REENTRANT -D_THREAD_SAFE -DPTHREADS -DTHREAD    -DOBD_SELECTED_API -DBIT64 -DAIXV3 -DAIXV5 -DOPENBOSS -DV20 -DGANSU -DDEBUG  -DOTL_ORA9I -DDB_TYPE_ORA -DOTL_DESTRUCTORS_DO_NOT_THROW -DOTL_STL    -I/sw/oracle/9.2/rdbms/demo -I/sw/oracle/9.2/rdbms/public -I/sw/oracle/9.2/plsql/public -I/sw/oracle/9.2/network/public -I/home/gx_home/mcgxzcbk/result/include/home -I/home/gx_home/mcgxzcbk/result/include -c nodebuf.cpp -o nodebuf.o
xlC_r  -brtl -bexpall -qlonglong -qlongdouble -q64 -qalign=full -qstaticinline -qkeyword=typename -g       -D_REENTRANT -D_THREAD_SAFE -DPTHREADS -DTHREAD    -DOBD_SELECTED_API -DBIT64 -DAIXV3 -DAIXV5 -DOPENBOSS -DV20 -DGANSU -DDEBUG  -DOTL_ORA9I -DDB_TYPE_ORA -DOTL_DESTRUCTORS_DO_NOT_THROW -DOTL_STL    -I/sw/oracle/9.2/rdbms/demo -I/sw/oracle/9.2/rdbms/public -I/sw/oracle/9.2/plsql/public -I/sw/oracle/9.2/network/public -I/home/gx_home/mcgxzcbk/result/include/home -I/home/gx_home/mcgxzcbk/result/include -c share_var.cpp -o share_var.o
makeC++SharedLib log.o function_list.o nodedef.o node.o flow.o processmgr.o time.o frame_interface.o timer.o util.o nodebuf.o share_var.o -p0 -brtl -lpthreads -qstaticinline -bhalt:5 -X64  -L/sw/oracle/9.2/lib -L/home/gx_home/mcgxzcbk/result/lib -lpthread -lxerces-c -lCbsSysClassD -lBaseClsD -lBsXmlConfigD -lBsLogD -lclntsh   -o libFrameD.so
xlC_r  -brtl -bexpall -qlonglong -qlongdouble -q64 -qalign=full -qstaticinline -qkeyword=typename -g       -D_REENTRANT -D_THREAD_SAFE -DPTHREADS -DTHREAD    -DOBD_SELECTED_API -DBIT64 -DAIXV3 -DAIXV5 -DOPENBOSS -DV20 -DGANSU -DDEBUG  -DOTL_ORA9I -DDB_TYPE_ORA -DOTL_DESTRUCTORS_DO_NOT_THROW -DOTL_STL    -I/sw/oracle/9.2/rdbms/demo -I/sw/oracle/9.2/rdbms/public -I/sw/oracle/9.2/plsql/public -I/sw/oracle/9.2/network/public -I/home/gx_home/mcgxzcbk/result/include/home -I/home/gx_home/mcgxzcbk/result/include -c frame.cpp -o frame.o
xlC_r  -L./ -lFrameD frame.o -brtl -bexpall -qlonglong -qlongdouble -q64 -qalign=full -qstaticinline -qkeyword=typename -g         -D_REENTRANT -D_THREAD_SAFE -DPTHREADS -DTHREAD    -DOBD_SELECTED_API -DBIT64 -DAIXV3 -DAIXV5 -DOPENBOSS -DV20 -DGANSU -DDEBUG  -DOTL_ORA9I -DDB_TYPE_ORA -DOTL_DESTRUCTORS_DO_NOT_THROW -DOTL_STL   -brtl -bexpall -bnoipath -q64 -qstaticinline -bhalt:5 -b maxdata:0x8000000000   -L/sw/oracle/9.2/lib -L/home/gx_home/mcgxzcbk/result/lib -lpthread -lxerces-c -lCbsSysClassD -lBaseClsD -lBsXmlConfigD -lBsLogD -lclntsh -o ecframe

#3


那就不知道了,“b 文件名:行号”试试。

#4


试了"b 文件名:行号",还是不行。不过还是感谢你的热心帮助,谢谢~

#5


用nm查看一下符号表看看?

#6


在gdb命令行下 执行

symbol-file <可执行文件>

试试,其中可执行文件是包含-g选项的 编译出来的文件.
可能是gdb没有正确加载符号表. 我之前在别的平台远端调试的时候就应为没有手动指定符号文件.即使可执行文件加了-g选项也无法加载符号表.所有搜到要手动加载一下. 

#7


aix下是dbx吧?

#8


AIX下干嘛用gdb
dbx好用多了

#9


DBX。。。。。。。。。

#10


兄弟,账务那边的?
xlC_r 这个编出来的用dbx调试吧

#1


看下编译产生ecframe的语句有没加-g ?

#2


有加-g的,ecframe编译信息如下:
mcgxzcbk%gmake
xlC_r  -brtl -bexpall -qlonglong -qlongdouble -q64 -qalign=full -qstaticinline -qkeyword=typename -g       -D_REENTRANT -D_THREAD_SAFE -DPTHREADS -DTHREAD    -DOBD_SELECTED_API -DBIT64 -DAIXV3 -DAIXV5 -DOPENBOSS -DV20 -DGANSU -DDEBUG  -DOTL_ORA9I -DDB_TYPE_ORA -DOTL_DESTRUCTORS_DO_NOT_THROW -DOTL_STL    -I/sw/oracle/9.2/rdbms/demo -I/sw/oracle/9.2/rdbms/public -I/sw/oracle/9.2/plsql/public -I/sw/oracle/9.2/network/public -I/home/gx_home/mcgxzcbk/result/include/home -I/home/gx_home/mcgxzcbk/result/include -c log.cpp -o log.o
xlC_r  -brtl -bexpall -qlonglong -qlongdouble -q64 -qalign=full -qstaticinline -qkeyword=typename -g       -D_REENTRANT -D_THREAD_SAFE -DPTHREADS -DTHREAD    -DOBD_SELECTED_API -DBIT64 -DAIXV3 -DAIXV5 -DOPENBOSS -DV20 -DGANSU -DDEBUG  -DOTL_ORA9I -DDB_TYPE_ORA -DOTL_DESTRUCTORS_DO_NOT_THROW -DOTL_STL    -I/sw/oracle/9.2/rdbms/demo -I/sw/oracle/9.2/rdbms/public -I/sw/oracle/9.2/plsql/public -I/sw/oracle/9.2/network/public -I/home/gx_home/mcgxzcbk/result/include/home -I/home/gx_home/mcgxzcbk/result/include -c function_list.cpp -o function_list.o
xlC_r  -brtl -bexpall -qlonglong -qlongdouble -q64 -qalign=full -qstaticinline -qkeyword=typename -g       -D_REENTRANT -D_THREAD_SAFE -DPTHREADS -DTHREAD    -DOBD_SELECTED_API -DBIT64 -DAIXV3 -DAIXV5 -DOPENBOSS -DV20 -DGANSU -DDEBUG  -DOTL_ORA9I -DDB_TYPE_ORA -DOTL_DESTRUCTORS_DO_NOT_THROW -DOTL_STL    -I/sw/oracle/9.2/rdbms/demo -I/sw/oracle/9.2/rdbms/public -I/sw/oracle/9.2/plsql/public -I/sw/oracle/9.2/network/public -I/home/gx_home/mcgxzcbk/result/include/home -I/home/gx_home/mcgxzcbk/result/include -c nodedef.cpp -o nodedef.o
xlC_r  -brtl -bexpall -qlonglong -qlongdouble -q64 -qalign=full -qstaticinline -qkeyword=typename -g       -D_REENTRANT -D_THREAD_SAFE -DPTHREADS -DTHREAD    -DOBD_SELECTED_API -DBIT64 -DAIXV3 -DAIXV5 -DOPENBOSS -DV20 -DGANSU -DDEBUG  -DOTL_ORA9I -DDB_TYPE_ORA -DOTL_DESTRUCTORS_DO_NOT_THROW -DOTL_STL    -I/sw/oracle/9.2/rdbms/demo -I/sw/oracle/9.2/rdbms/public -I/sw/oracle/9.2/plsql/public -I/sw/oracle/9.2/network/public -I/home/gx_home/mcgxzcbk/result/include/home -I/home/gx_home/mcgxzcbk/result/include -c node.cpp -o node.o
xlC_r  -brtl -bexpall -qlonglong -qlongdouble -q64 -qalign=full -qstaticinline -qkeyword=typename -g       -D_REENTRANT -D_THREAD_SAFE -DPTHREADS -DTHREAD    -DOBD_SELECTED_API -DBIT64 -DAIXV3 -DAIXV5 -DOPENBOSS -DV20 -DGANSU -DDEBUG  -DOTL_ORA9I -DDB_TYPE_ORA -DOTL_DESTRUCTORS_DO_NOT_THROW -DOTL_STL    -I/sw/oracle/9.2/rdbms/demo -I/sw/oracle/9.2/rdbms/public -I/sw/oracle/9.2/plsql/public -I/sw/oracle/9.2/network/public -I/home/gx_home/mcgxzcbk/result/include/home -I/home/gx_home/mcgxzcbk/result/include -c flow.cpp -o flow.o
xlC_r  -brtl -bexpall -qlonglong -qlongdouble -q64 -qalign=full -qstaticinline -qkeyword=typename -g       -D_REENTRANT -D_THREAD_SAFE -DPTHREADS -DTHREAD    -DOBD_SELECTED_API -DBIT64 -DAIXV3 -DAIXV5 -DOPENBOSS -DV20 -DGANSU -DDEBUG  -DOTL_ORA9I -DDB_TYPE_ORA -DOTL_DESTRUCTORS_DO_NOT_THROW -DOTL_STL    -I/sw/oracle/9.2/rdbms/demo -I/sw/oracle/9.2/rdbms/public -I/sw/oracle/9.2/plsql/public -I/sw/oracle/9.2/network/public -I/home/gx_home/mcgxzcbk/result/include/home -I/home/gx_home/mcgxzcbk/result/include -c processmgr.cpp -o processmgr.o
xlC_r  -brtl -bexpall -qlonglong -qlongdouble -q64 -qalign=full -qstaticinline -qkeyword=typename -g       -D_REENTRANT -D_THREAD_SAFE -DPTHREADS -DTHREAD    -DOBD_SELECTED_API -DBIT64 -DAIXV3 -DAIXV5 -DOPENBOSS -DV20 -DGANSU -DDEBUG  -DOTL_ORA9I -DDB_TYPE_ORA -DOTL_DESTRUCTORS_DO_NOT_THROW -DOTL_STL    -I/sw/oracle/9.2/rdbms/demo -I/sw/oracle/9.2/rdbms/public -I/sw/oracle/9.2/plsql/public -I/sw/oracle/9.2/network/public -I/home/gx_home/mcgxzcbk/result/include/home -I/home/gx_home/mcgxzcbk/result/include -c time.cpp -o time.o
xlC_r  -brtl -bexpall -qlonglong -qlongdouble -q64 -qalign=full -qstaticinline -qkeyword=typename -g       -D_REENTRANT -D_THREAD_SAFE -DPTHREADS -DTHREAD    -DOBD_SELECTED_API -DBIT64 -DAIXV3 -DAIXV5 -DOPENBOSS -DV20 -DGANSU -DDEBUG  -DOTL_ORA9I -DDB_TYPE_ORA -DOTL_DESTRUCTORS_DO_NOT_THROW -DOTL_STL    -I/sw/oracle/9.2/rdbms/demo -I/sw/oracle/9.2/rdbms/public -I/sw/oracle/9.2/plsql/public -I/sw/oracle/9.2/network/public -I/home/gx_home/mcgxzcbk/result/include/home -I/home/gx_home/mcgxzcbk/result/include -c frame_interface.cpp -o frame_interface.o
xlC_r  -brtl -bexpall -qlonglong -qlongdouble -q64 -qalign=full -qstaticinline -qkeyword=typename -g       -D_REENTRANT -D_THREAD_SAFE -DPTHREADS -DTHREAD    -DOBD_SELECTED_API -DBIT64 -DAIXV3 -DAIXV5 -DOPENBOSS -DV20 -DGANSU -DDEBUG  -DOTL_ORA9I -DDB_TYPE_ORA -DOTL_DESTRUCTORS_DO_NOT_THROW -DOTL_STL    -I/sw/oracle/9.2/rdbms/demo -I/sw/oracle/9.2/rdbms/public -I/sw/oracle/9.2/plsql/public -I/sw/oracle/9.2/network/public -I/home/gx_home/mcgxzcbk/result/include/home -I/home/gx_home/mcgxzcbk/result/include -c timer.cpp -o timer.o
xlC_r  -brtl -bexpall -qlonglong -qlongdouble -q64 -qalign=full -qstaticinline -qkeyword=typename -g       -D_REENTRANT -D_THREAD_SAFE -DPTHREADS -DTHREAD    -DOBD_SELECTED_API -DBIT64 -DAIXV3 -DAIXV5 -DOPENBOSS -DV20 -DGANSU -DDEBUG  -DOTL_ORA9I -DDB_TYPE_ORA -DOTL_DESTRUCTORS_DO_NOT_THROW -DOTL_STL    -I/sw/oracle/9.2/rdbms/demo -I/sw/oracle/9.2/rdbms/public -I/sw/oracle/9.2/plsql/public -I/sw/oracle/9.2/network/public -I/home/gx_home/mcgxzcbk/result/include/home -I/home/gx_home/mcgxzcbk/result/include -c util.cpp -o util.o
xlC_r  -brtl -bexpall -qlonglong -qlongdouble -q64 -qalign=full -qstaticinline -qkeyword=typename -g       -D_REENTRANT -D_THREAD_SAFE -DPTHREADS -DTHREAD    -DOBD_SELECTED_API -DBIT64 -DAIXV3 -DAIXV5 -DOPENBOSS -DV20 -DGANSU -DDEBUG  -DOTL_ORA9I -DDB_TYPE_ORA -DOTL_DESTRUCTORS_DO_NOT_THROW -DOTL_STL    -I/sw/oracle/9.2/rdbms/demo -I/sw/oracle/9.2/rdbms/public -I/sw/oracle/9.2/plsql/public -I/sw/oracle/9.2/network/public -I/home/gx_home/mcgxzcbk/result/include/home -I/home/gx_home/mcgxzcbk/result/include -c nodebuf.cpp -o nodebuf.o
xlC_r  -brtl -bexpall -qlonglong -qlongdouble -q64 -qalign=full -qstaticinline -qkeyword=typename -g       -D_REENTRANT -D_THREAD_SAFE -DPTHREADS -DTHREAD    -DOBD_SELECTED_API -DBIT64 -DAIXV3 -DAIXV5 -DOPENBOSS -DV20 -DGANSU -DDEBUG  -DOTL_ORA9I -DDB_TYPE_ORA -DOTL_DESTRUCTORS_DO_NOT_THROW -DOTL_STL    -I/sw/oracle/9.2/rdbms/demo -I/sw/oracle/9.2/rdbms/public -I/sw/oracle/9.2/plsql/public -I/sw/oracle/9.2/network/public -I/home/gx_home/mcgxzcbk/result/include/home -I/home/gx_home/mcgxzcbk/result/include -c share_var.cpp -o share_var.o
makeC++SharedLib log.o function_list.o nodedef.o node.o flow.o processmgr.o time.o frame_interface.o timer.o util.o nodebuf.o share_var.o -p0 -brtl -lpthreads -qstaticinline -bhalt:5 -X64  -L/sw/oracle/9.2/lib -L/home/gx_home/mcgxzcbk/result/lib -lpthread -lxerces-c -lCbsSysClassD -lBaseClsD -lBsXmlConfigD -lBsLogD -lclntsh   -o libFrameD.so
xlC_r  -brtl -bexpall -qlonglong -qlongdouble -q64 -qalign=full -qstaticinline -qkeyword=typename -g       -D_REENTRANT -D_THREAD_SAFE -DPTHREADS -DTHREAD    -DOBD_SELECTED_API -DBIT64 -DAIXV3 -DAIXV5 -DOPENBOSS -DV20 -DGANSU -DDEBUG  -DOTL_ORA9I -DDB_TYPE_ORA -DOTL_DESTRUCTORS_DO_NOT_THROW -DOTL_STL    -I/sw/oracle/9.2/rdbms/demo -I/sw/oracle/9.2/rdbms/public -I/sw/oracle/9.2/plsql/public -I/sw/oracle/9.2/network/public -I/home/gx_home/mcgxzcbk/result/include/home -I/home/gx_home/mcgxzcbk/result/include -c frame.cpp -o frame.o
xlC_r  -L./ -lFrameD frame.o -brtl -bexpall -qlonglong -qlongdouble -q64 -qalign=full -qstaticinline -qkeyword=typename -g         -D_REENTRANT -D_THREAD_SAFE -DPTHREADS -DTHREAD    -DOBD_SELECTED_API -DBIT64 -DAIXV3 -DAIXV5 -DOPENBOSS -DV20 -DGANSU -DDEBUG  -DOTL_ORA9I -DDB_TYPE_ORA -DOTL_DESTRUCTORS_DO_NOT_THROW -DOTL_STL   -brtl -bexpall -bnoipath -q64 -qstaticinline -bhalt:5 -b maxdata:0x8000000000   -L/sw/oracle/9.2/lib -L/home/gx_home/mcgxzcbk/result/lib -lpthread -lxerces-c -lCbsSysClassD -lBaseClsD -lBsXmlConfigD -lBsLogD -lclntsh -o ecframe

#3


那就不知道了,“b 文件名:行号”试试。

#4


试了"b 文件名:行号",还是不行。不过还是感谢你的热心帮助,谢谢~

#5


用nm查看一下符号表看看?

#6


在gdb命令行下 执行

symbol-file <可执行文件>

试试,其中可执行文件是包含-g选项的 编译出来的文件.
可能是gdb没有正确加载符号表. 我之前在别的平台远端调试的时候就应为没有手动指定符号文件.即使可执行文件加了-g选项也无法加载符号表.所有搜到要手动加载一下. 

#7


aix下是dbx吧?

#8


AIX下干嘛用gdb
dbx好用多了

#9


DBX。。。。。。。。。

#10


兄弟,账务那边的?
xlC_r 这个编出来的用dbx调试吧