how to debug gdb?

Christian Prochaska christian.prochaska at genode-labs.com
Thu May 6 13:07:19 CEST 2021


Hi Tomasz,

On 06.05.21 12:42, Tomasz Gajewski wrote:
> Currently I stumbled on problem with threads too. I know that creating
> thread using 'pthread_create' in debugged code does not raise any error
> but after this call number of thread visible in gdb (using 'info
> thread') does not change and breakpoint set inside a function assigned
> for thread is never triggered.
>
>
> Does anybody know if it is a sign of not creating thread at all or some
> deficiency in 'gdb_monitor' that fails to update presented list of
> threads? From the behavior it seems it is a first option.
>
> Another question is if it is supposed to work and it doesn't only
> because of some error or gdb_monitor lacks this functionality
> completely?

can you somehow reproduce the problem with the gdb monitor test which is used by gdb_monitor.run? This test also creates a pthread
and the breakpoint in 'test_thread_start()' appears to work as well as the appearance in the thread info list.

Christian


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.genode.org/pipermail/users/attachments/20210506/2d677034/attachment.sig>


More information about the users mailing list