Re: gdb / thread_db / multiple ABI question

Pedro Alves
2017-07-10T09:43:13Z

> OK, setting libthread-db-search-path and debug libthread-db got me
> a bit further. I don't get any errors or warnings about not being
> able to find or load libthread_db. It's still not reading everything
> correctly though:
>
> (gdb) info threads
> Found 0 new threads in iteration 0.
> Id Target Id Frame
> * 3 Thread 0xf739ef70 (LWP 8660) 0x00400680 in doSomeThing ()
> 4 Thread 0xf69bf490 (LWP 8662) warning: Couldn't find general-purpose registers in core file.
> PC register is not available

Do you get that same warning without libthread_db? It sounds more
like an issue on the gdb<->bfd side than on the libthread_db side
of things. (Put a breakpoint on "warning". I believe it comes from
corelow.c:get_core_register_section.)

Thanks,
Pedro Alves