(gdb)add-symbol-file FILE ADDR [-s <SECT> <SECT_ADDR> -s <SECT> <SECT_ADDR> ...] Load the symbols from FILE, assuming FILE has been dynamically loaded. ADDR is the starting address of the file's text. The optional arguments are section-name section-address pairs and should be spec...
set sysroot <path>是最常用的命令,用来设置被搜索符号文件路径的前缀,值只能是一个 如果被搜索的符号文件路径有多个,则使用set solib-search-path <path1:path2>命令 也可以使用symbol-file <filename>直接指定从<filename>读取符号表 通常系统里面较复杂的应用会链接多个动态库,可以使用info sharedlibrary来查看...
"cwd":"${workspaceRoot}","gdbpath":"<path_to_gdb>","gdbArgs": ["--qemu","-machine","virt,gic-version=max","-cpu","max","-s","-S"],"autorun": ["target remote :1234","symbol-file <path_to_kernel_image>"]
1、-symbols file -s file 从file文件中读取符号表symbol table 2、-exec file -e file 指定可执行文件file 3、-se file 从file中读取符号表并把file作为可执行文件 4、-core file -c file 指定core dump文件file 5、-pid number -p number 将gdb attach到进程pid 6、-command file -x file 从file文件...
info sharedlibrary//查看addressadd-symbol-file /path/to/library.so符号表 2、出现 Type <RET> for more, q to quit, c to continue without paging 在GDB 中出现 "Type <RET> for more, q to quit, c to continue without paging" 的提示时,这通常是因为 GDB 检测到输出信息太多而无法完全显示在...
(gdb) set debug-file-directory /home/zy/debuginfo/debug_infos/ (gdb) add-symbol-file /home/zy/debuginfo/debug_infos/test.debug add symbol table from file "/home/zy/debuginfo/debug_infos/test.debug" (y or n) y Reading symbols from /home/zy/debuginfo/debug_infos/test.debug... ...
make_a_section_from_file make_environ make_abs_section make_function_type make_blockvector make_pointer_type make_cleanup make_reference_type make_command make_symbol_completion_list (gdb) b make_ GDB把所有make开头的函数全部例出来给你查看。
symbol-file test.debug 在GDB环境载入调试符号信息文件 objcopy --add-gnu-debuglink test.debug test 将分离的调试信息test.debug链接回可执行文件test中 addr2line -e test 0x401c23 addr2line读取调试信息 2、dump数据 dump binary value file_name variable_name ...
9.符号(Symbol) 10.文件(File) 11.目标数据(Target Manipulation) 12.其它杂项 我们以下面这段代码为例演示各种命令的执行结果: /**//* ** demo.c */ #include stdio.h> int swap(int a[], int len) ...{ int i; int temp; for(i = 0; i len / 2; i++) ...
(gdb) help filesSpecifying and examining files.List of commands:add-symbol-file -- Load symbols from FILEadd-symbol-file-from-memory -- Load the symbols out of memory from a dynamically loaded object filecd -- Set working directory to DIR for debugger and program being debuggedcore-file--...