public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* mi/2551: Missing MI command to do the same as "jump <line>" or "jump <address>"
@ 2008-11-10 18:18 dodji
  0 siblings, 0 replies; 3+ messages in thread
From: dodji @ 2008-11-10 18:18 UTC (permalink / raw)
  To: gdb-gnats


>Number:         2551
>Category:       mi
>Synopsis:       Missing MI command to do the same as "jump <line>" or "jump <address>"
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 10 18:18:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     dodji@redhat.com
>Release:        unknown-1.0
>Organization:
>Environment:
GNU/Linux
>Description:
MI should provide the client with a way to jump to a location, just like the commande line interface does with the "jump" command.

Please note that in that case, the new MI command needs to output an out-of-band record similar to the one that exists for the -exec-next command. Something along the lines of:
*stopped, reason="a-reason", line="8", file,="something.c"

That is needed to give the client a chance to update its state.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

* Re: mi/2551: Missing MI command to do the same as "jump <line>" or "jump <address>"
@ 2008-11-11 17:08 Dodji Seketeli
  0 siblings, 0 replies; 3+ messages in thread
From: Dodji Seketeli @ 2008-11-11 17:08 UTC (permalink / raw)
  To: nobody; +Cc: gdb-prs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 572 bytes --]

The following reply was made to PR mi/2551; it has been noted by GNATS.

From: Dodji Seketeli <dodji@redhat.com>
To: Nick Roberts <nickrob@snap.net.nz>
Cc: gdb-gnats@sources.redhat.com
Subject: Re: mi/2551: Missing MI command to do the same as "jump <line>" or
 "jump <address>"
Date: Tue, 11 Nov 2008 18:01:17 +0100

 Hello,
 
 Nick Roberts a écrit :
 
 > That seems reasonable.  Does the patch below do what you want?
 
 Yes it does work like a charm. Thank you for being so quick.
 
 I am looking forward to seeing this applied to HEAD.
 
 Many thanks,
 
 Dodji.
 
 


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

* Re: mi/2551: Missing MI command to do the same as "jump <line>" or "jump <address>"
@ 2008-11-11  9:18 Nick Roberts
  0 siblings, 0 replies; 3+ messages in thread
From: Nick Roberts @ 2008-11-11  9:18 UTC (permalink / raw)
  To: nobody; +Cc: gdb-prs

The following reply was made to PR mi/2551; it has been noted by GNATS.

From: Nick Roberts <nickrob@snap.net.nz>
To: dodji@redhat.com
Cc: gdb-gnats@sources.redhat.com
Subject: Re: mi/2551: Missing MI command to do the same as "jump <line>" or "jump <address>"
Date: Tue, 11 Nov 2008 22:09:12 +1300

  > MI should provide the client with a way to jump to a location, just like the commande line interface does with the "jump" command.
  > 
  > Please note that in that case, the new MI command needs to output an out-of-band record similar to the one that exists for the -exec-next command. Something along the lines of:
  > *stopped, reason="a-reason", line="8", file,="something.c"
  > 
  > That is needed to give the client a chance to update its state.
 
 That seems reasonable.  Does the patch below do what you want?
 
 -- 
 Nick                                           http://www.inet.net.nz/~nickrob
 
 
 --- mi-cmds.c	20 Aug 2008 01:05:02 +1200	1.35
 +++ mi-cmds.c	11 Nov 2008 22:03:36 +1300	
 @@ -61,6 +61,7 @@ struct mi_cmd mi_cmds[] =
    { "exec-continue", { NULL, 0 }, mi_cmd_exec_continue},
    { "exec-finish", { NULL, 0 }, mi_cmd_exec_finish},
    { "exec-interrupt", { NULL, 0 }, mi_cmd_exec_interrupt},
 +  { "exec-jump", { "jump", 1 }, NULL},
    { "exec-next", { NULL, 0 }, mi_cmd_exec_next},
    { "exec-next-instruction", { NULL, 0 }, mi_cmd_exec_next_instruction},
    { "exec-return", { NULL, 0 }, mi_cmd_exec_return},


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

end of thread, other threads:[~2008-11-11 17:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-10 18:18 mi/2551: Missing MI command to do the same as "jump <line>" or "jump <address>" dodji
2008-11-11  9:18 Nick Roberts
2008-11-11 17:08 Dodji Seketeli

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