public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/27439] New: Detection of a running target/process
@ 2021-02-19  9:51 anders at janssonsoftware dot se
  2021-02-21 16:13 ` [Bug gdb/27439] " simark at simark dot ca
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: anders at janssonsoftware dot se @ 2021-02-19  9:51 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=27439

            Bug ID: 27439
           Summary: Detection of a running target/process
           Product: gdb
           Version: 8.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: anders at janssonsoftware dot se
  Target Milestone: ---

Perhaps more of a question (sorry if on the wrong list!). 

As i understand it the RSP-protocol has the "stop reply" packets used by an
RSP-stub/GDB-server to inform GDB-client that my debug target has stopped. But
i cant find any information if its possible for an RSP-stub/GDB-server to
inform the GDB-client if my debug target starts to execute by some external
event not controlled by the GDB-client itself.

For example:
* During a GDB session (target halted) i repower/reset an development board and
the process starts to execute. Can GDB be notified about this?

* In a heterogeneous multi-core scenario where the starting/stopping of the
cores are controlled by ARM cortex-M Cross Triggering. Different cores are
controlled by multiple GDB-sessions. Perhaps the same issue as above. One
GDB-session needs to get notified that the debug target started to execute.

Anyone know if there exists some RSP support for this. Some sort of "Running
reply"?

Best Regards
Anders Jansson

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug gdb/27439] Detection of a running target/process
  2021-02-19  9:51 [Bug gdb/27439] New: Detection of a running target/process anders at janssonsoftware dot se
@ 2021-02-21 16:13 ` simark at simark dot ca
  2021-02-23 19:13 ` tromey at sourceware dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: simark at simark dot ca @ 2021-02-21 16:13 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=27439

Simon Marchi <simark at simark dot ca> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simark at simark dot ca

--- Comment #1 from Simon Marchi <simark at simark dot ca> ---
Off the top of my head, I don't think that kind of thing is supported right
now.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug gdb/27439] Detection of a running target/process
  2021-02-19  9:51 [Bug gdb/27439] New: Detection of a running target/process anders at janssonsoftware dot se
  2021-02-21 16:13 ` [Bug gdb/27439] " simark at simark dot ca
@ 2021-02-23 19:13 ` tromey at sourceware dot org
  2021-02-24  7:36 ` anders at janssonsoftware dot se
  2021-02-24 14:06 ` clyon at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: tromey at sourceware dot org @ 2021-02-23 19:13 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=27439

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at sourceware dot org

--- Comment #2 from Tom Tromey <tromey at sourceware dot org> ---
FWIW I imagine this would require some work on the gdb side as well.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug gdb/27439] Detection of a running target/process
  2021-02-19  9:51 [Bug gdb/27439] New: Detection of a running target/process anders at janssonsoftware dot se
  2021-02-21 16:13 ` [Bug gdb/27439] " simark at simark dot ca
  2021-02-23 19:13 ` tromey at sourceware dot org
@ 2021-02-24  7:36 ` anders at janssonsoftware dot se
  2021-02-24 14:06 ` clyon at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: anders at janssonsoftware dot se @ 2021-02-24  7:36 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=27439

--- Comment #3 from Anders Jansson <anders at janssonsoftware dot se> ---
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 :)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug gdb/27439] Detection of a running target/process
  2021-02-19  9:51 [Bug gdb/27439] New: Detection of a running target/process anders at janssonsoftware dot se
                   ` (2 preceding siblings ...)
  2021-02-24  7:36 ` anders at janssonsoftware dot se
@ 2021-02-24 14:06 ` clyon at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: clyon at gcc dot gnu.org @ 2021-02-24 14:06 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=27439

Christophe Lyon <clyon at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clyon at gcc dot gnu.org

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2021-02-24 14:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-19  9:51 [Bug gdb/27439] New: Detection of a running target/process anders at janssonsoftware dot se
2021-02-21 16:13 ` [Bug gdb/27439] " simark at simark dot ca
2021-02-23 19:13 ` tromey at sourceware dot org
2021-02-24  7:36 ` anders at janssonsoftware dot se
2021-02-24 14:06 ` clyon at gcc dot gnu.org

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).