public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Threading support in binutils simulator such that gdb "info threads" sees it
@ 2019-08-20  5:55 William Tambe
  2021-01-15  6:25 ` Mike Frysinger
  0 siblings, 1 reply; 2+ messages in thread
From: William Tambe @ 2019-08-20  5:55 UTC (permalink / raw)
  To: gdb

What should be implemented within the binutils simulator such that gdb
"info threads" sees it ?

I tried using fork() within sim_create_inferior() but GDB would behave
erratically.

Is there any example I could be pointed to ?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Threading support in binutils simulator such that gdb "info threads" sees it
  2019-08-20  5:55 Threading support in binutils simulator such that gdb "info threads" sees it William Tambe
@ 2021-01-15  6:25 ` Mike Frysinger
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Frysinger @ 2021-01-15  6:25 UTC (permalink / raw)
  To: William Tambe; +Cc: gdb

[-- Attachment #1: Type: text/plain, Size: 754 bytes --]

On 20 Aug 2019 00:55, William Tambe wrote:
> What should be implemented within the binutils simulator

it's just "the simulator".  no relation to binutils.

> such that gdb "info threads" sees it ?

there is no support for threads in the simulator.  the simulator is
simulating processors, not processes.  so the concept doesn't even
really map.

if/when we finish up multiprocessor support, i'd expect we'd expose
those as threads in gdb.  but that would still be hardware level,
not software level.

> I tried using fork() within sim_create_inferior() but GDB would behave
> erratically.

it's unclear what you mean, but if you forked the sim, you now have two
sims running ... and if the sim is built into gdb, you now have two gdbs
running ...
-mike

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-01-15  6:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-20  5:55 Threading support in binutils simulator such that gdb "info threads" sees it William Tambe
2021-01-15  6:25 ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).