multithreaded programs on arm-linux

Frank Meerkoetter frank@betaversion.net
Thu Nov 3 15:00:00 GMT 2005


Quoting Daniel Jacobowitz <drow@false.org>:

Hi,

> OK, let's start at the top then.
>
> 1.  Is gdbserver linked to libthread_db.so during build?

I'm not using the gdbserver but rather running the gdb on
the target. The reason is that i didn't managed to
remote debug a program which is dynamically linked.

I assume gdb is linked against libthread_db.so

frank@linux:~/gdb/gdb-host-arm/gdb> arm-linux-readelf --syms gdb | grep
thread_db
   1896: 0005be00    28 FUNC    GLOBAL DEFAULT   13 thread_db_init
   3751: 0005d7f4    80 FUNC    GLOBAL DEFAULT   13 _initialize_thread_db
    647: 0005b6e4   400 FUNC    LOCAL  DEFAULT   13 thread_db_err_str
    649: 0005b874   168 FUNC    LOCAL  DEFAULT   13 thread_db_state_str
    653: 0005bac4   168 FUNC    LOCAL  DEFAULT   13 thread_db_map_id2thr
    656: 0005bb6c   140 FUNC    LOCAL  DEFAULT   13 thread_db_get_info
    662: 0005be58  1044 FUNC    LOCAL  DEFAULT   13 thread_db_load
    686: 0005c5d0   428 FUNC    LOCAL  DEFAULT   13 thread_db_new_objfile
    687: 0005d3e8   108 FUNC    LOCAL  DEFAULT   13 thread_db_find_new_threads
    688: 0026d4fc     0 NOTYPE  LOCAL  DEFAULT   22 using_thread_db
    690: 0026d3b0     0 NOTYPE  LOCAL  DEFAULT   22 thread_db_ops
    692: 0005c908    76 FUNC    LOCAL  DEFAULT   13 thread_db_attach
    694: 0005c9e8    88 FUNC    LOCAL  DEFAULT   13 thread_db_detach
    696: 0005ca74   168 FUNC    LOCAL  DEFAULT   13 thread_db_resume
    698: 0005cca0   304 FUNC    LOCAL  DEFAULT   13 thread_db_wait
    699: 0005cdd0   204 FUNC    LOCAL  DEFAULT   13 thread_db_xfer_memory
    700: 0005ce9c   272 FUNC    LOCAL  DEFAULT   13 thread_db_fetch_registers
    701: 0005cfac   340 FUNC    LOCAL  DEFAULT   13 thread_db_store_registers
    702: 0005d100    52 FUNC    LOCAL  DEFAULT   13 thread_db_kill
    703: 0005d134    96 FUNC    LOCAL  DEFAULT   13 thread_db_create_inferior
    704: 0005d194    68 FUNC    LOCAL  DEFAULT   13
thread_db_post_startup_inferior
    705: 0005d1d8    80 FUNC    LOCAL  DEFAULT   13 thread_db_mourn_inferior
    706: 0005d228   248 FUNC    LOCAL  DEFAULT   13 thread_db_thread_alive
    709: 0005d454   292 FUNC    LOCAL  DEFAULT   13 thread_db_pid_to_str
    710: 0005d578   372 FUNC    LOCAL  DEFAULT   13
thread_db_get_thread_local_address
    711: 0005d6ec   264 FUNC    LOCAL  DEFAULT   13 init_thread_db_ops
   7239: 0005be00    28 FUNC    GLOBAL DEFAULT   13 thread_db_init
   9093: 0005d7f4    80 FUNC    GLOBAL DEFAULT   13 _initialize_thread_db

The libthread_db.so of the toolchain and the target have matching md5sums.

Regards,
   Frank




More information about the Gdb mailing list