Threading support in binutils simulator such that gdb "info threads" sees it
Mike Frysinger
vapier@gentoo.org
Fri Jan 15 06:25:03 GMT 2021
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <https://sourceware.org/pipermail/gdb/attachments/20210115/1999de61/attachment.sig>
More information about the Gdb
mailing list