Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Reporting of "program no longer exists"
@ 2006-10-14 16:33 Vladimir Prus
  2006-10-14 16:39 ` Daniel Jacobowitz
  0 siblings, 1 reply; 6+ messages in thread
From: Vladimir Prus @ 2006-10-14 16:33 UTC (permalink / raw)
  To: gdb


Hi,
suppose a program being debugged got SIGSEGV and the user for GUI frontend 
tries the "next" command. Here's what happens:

   (gdb) -exec-next
   ^running
   *stopped,reason="signal-received",signal-name="SIGSEGV".....
   (gdb) -exec-next
   ^running
   Couldn't get registers: No such process.
   ^error,msg="Couldn't get registers: No such process."

I think this is a bit unfriendly to frontend.

(1) How can frontend disable the "next" command? Checking for "SIGSEGV" is 
possible, but it a bit of a hack.

(2) After getting the second response, how can frontend understand that this 
is really fatal, unfixable error? Looking at the specific text is obviously a 
hack?

How about making a notion of "inferior state" and announcing changes in the 
state. So, the above would become

   (gdb) -exec-next
   ^running
   *stopped,target-state="noncontinuable",
           reason="signal-received",signal-name="SIGSEGV".....
   (gdb) -exec-next
   ^running
   Couldn't get registers: No such process.
   ^error,msg="Couldn't get registers: No such process.",target-state="dead"

?

- Volodya


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

end of thread, other threads:[~2006-10-15  4:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-14 16:33 Reporting of "program no longer exists" Vladimir Prus
2006-10-14 16:39 ` Daniel Jacobowitz
2006-10-14 20:58   ` Nick Roberts
2006-10-14 21:05     ` Daniel Jacobowitz
2006-10-14 21:17       ` Nick Roberts
2006-10-15  4:36         ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox