Summary: | Detection of a running target/process | ||
---|---|---|---|
Product: | gdb | Reporter: | Anders Jansson <anders> |
Component: | gdb | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | clyon, simark, tromey |
Priority: | P2 | ||
Version: | 8.3 | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: |
Description
Anders Jansson
2021-02-19 09:51:51 UTC
Off the top of my head, I don't think that kind of thing is supported right now. FWIW I imagine this would require some work on the gdb side as well. Thanks for the replies. At least not an obvious solution to this it seems. Yes i guess it would require some work on the gdb side if additional RSP commands should be handled. For my use cases (at least as a starting point) i think it would be sufficient with a "polling" solution perhaps not requiring any extra RSP. If it was possible to issue a gdb command and make it reevaluate the target status. Then different MI frontends (Eclipse etc) could issue some sort of "refresh"-command periodically so the IDEs always presents the correct state. 1. GDB show target/core is in halted state. 2. Issue "refresh" command. 3. If target/core is running gdb is moved to running state (and sends the "running MI records"). Otherwise it do nothing. Will do some experimenting. Only need to get into the GDB code first :) |