zoukankan      html  css  js  c++  java
  • gdb 的 symbos 加载详情(set verbose on)

    http://stackoverflow.com/questions/10000335/how-to-use-debug-version-of-libc

    两个重要参数

    set verbose on
    debug-file-directory

    本机的测试结果

    [julian@irwas123x64 Projects]$ ls /usr/lib/debug
    ls: /usr/lib/debug: No such file or directory
    [julian@irwas123x64 Projects]$ !gdb
    gdb ./filetest
    GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-37.el5)
    Copyright (C) 2009 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 "x86_64-redhat-linux-gnu".
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/>...
    Reading symbols from /home/julian/Projects/filetest...(no debugging symbols found)...done.
    (gdb) set verbose on
    (gdb) run
    Starting program: /home/julian/Projects/filetest 
    Trying host libthread_db library: libthread_db.so.1.
    Host libthread_db.so.1 resolved to: /lib64/libthread_db.so.1.
    td_ta_new failed: application not linked with libthread
    Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done.
    Trying host libthread_db library: libthread_db.so.1.
    Host libthread_db.so.1 resolved to: /lib64/libthread_db.so.1.
    td_ta_new failed: application not linked with libthread
    Loaded symbols for /lib64/ld-linux-x86-64.so.2
    Symbols already loaded for /lib64/ld-linux-x86-64.so.2
    Reading symbols from system-supplied DSO at 0x2aaaaaaab000...warning: no loadable sections found in added symbol-file system-supplied DSO at 0x2aaaaaaab000
    (no debugging symbols found)...done.
    Trying host libthread_db library: libthread_db.so.1.
    Host libthread_db.so.1 resolved to: /lib64/libthread_db.so.1.
    td_ta_new failed: application not linked with libthread
    Symbols already loaded for /lib64/ld-linux-x86-64.so.2
    Symbols already loaded for /lib64/ld-linux-x86-64.so.2
    Reading symbols from /lib64/libc.so.6...(no debugging symbols found)...done.
    Trying host libthread_db library: libthread_db.so.1.
    Host libthread_db.so.1 resolved to: /lib64/libthread_db.so.1.
    td_ta_new failed: application not linked with libthread
    Loaded symbols for /lib64/libc.so.6
    OK
    
    Program exited normally.
  • 相关阅读:
    二叉树的非递归遍历
    关于vc变量定义顺序猜测
    单点登录详解(token简述)(七)
    session及cookie详解(七)
    dubbo(八)
    Zookeeper简介(九)
    拦截器与过滤器的区别(九)
    cookie详解(八)
    kafka可视化工具(二)
    Windows环境安装kafka(一)
  • 原文地址:https://www.cnblogs.com/johnsonshu/p/6163646.html
Copyright © 2011-2022 走看看