Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mark Newman <markn_46@yahoo.com>
To: gdb-patches@sources.redhat.com,
	Daniel Jacobowitz <drow@mvista.com>,
	"Newman,
	Mark \(N-Superior Technical Resource Inc\)"
	<mark.newman@lmco.com>
Cc: ankit thukral <ankit_plug@yahoo.com>,
	Jim Blandy <jimb@redhat.com>,
	gdb@sources.redhat.com
Subject: Re: regarding transparent data ranges (in tracepoint support)
Date: Sat, 29 Nov 2003 01:29:00 -0000	[thread overview]
Message-ID: <20031129012952.6540.qmail@web13801.mail.yahoo.com> (raw)
In-Reply-To: <20031128192301.GA9654@nevyn.them.org>

Here ya go - but I'll be darned if this is clearer.

                       Mark

Index: gdb/infrun.c
===================================================================
RCS file: /cvs/src/src/gdb/infrun.c,v
retrieving revision 1.122
diff -r1.122 infrun.c
46a47,48
> #include "cli/cli-decode.h"
> 
4007a4010,4011
>     async_cmd(stop_command , ASYNC_OK);
> 
Index: gdb/maint.c
===================================================================
RCS file: /cvs/src/src/gdb/maint.c,v
retrieving revision 1.40
diff -r1.40 maint.c
737c737
<   add_prefix_cmd ("show", class_maintenance,
maintenance_show_cmd, "\
---
> async_cmd (  add_prefix_cmd ("show",
class_maintenance, maintenance_show_cmd, "\
742c742,743
< 		  &maintenancelist);
---
> 		  &maintenancelist)
> , ASYNC_OK);
Index: gdb/top.c
===================================================================
RCS file: /cvs/src/src/gdb/top.c,v
retrieving revision 1.85
diff -r1.85 top.c
671,676c671,673
<       if (event_loop_p && target_can_async_p () &&
target_executing)
< 	if (strcmp (c->name, "help") != 0
< 	    && strcmp (c->name, "pwd") != 0
< 	    && strcmp (c->name, "show") != 0
< 	    && strcmp (c->name, "stop") != 0)
< 	  error ("Cannot execute this command while the
target is running.");
---
>       if (event_loop_p && target_can_async_p () &&
target_executing) 
> 	     if ((c->flags & ASYNC_OK) != 0)
> 	        error ("Cannot execute this command while
the target is running.");
749a747,754
>     
>     if (event_loop_p && target_can_async_p () &&
target_executing) {
> 	if ((c->flags & ASYNC_WAIT) != 0) {
> 	   wait_for_inferior();
> 	  }
>       }
> 
> 
Index: gdb/cli/cli-cmds.c
===================================================================
RCS file: /cvs/src/src/gdb/cli/cli-cmds.c,v
retrieving revision 1.36
diff -r1.36 cli-cmds.c
1059,1060c1059,1061
<   add_com ("pwd", class_files, pwd_command,
< 	"Print working directory.  This is used for your
program as well.");
---
>   async_cmd(add_com ("pwd", class_files,
pwd_command,
> 	"Print working directory.  This is used for your
program as well.")
> , ASYNC_OK);
1093a1095,1096
>   async_cmd(c, ASYNC_OK);
> 
Index: gdb/cli/cli-decode.c
===================================================================
RCS file: /cvs/src/src/gdb/cli/cli-decode.c,v
retrieving revision 1.34
diff -r1.34 cli-decode.c
1541a1542,1550
> struct cmd_list_element *
> async_cmd (struct cmd_list_element *cmd, int f)
> {
> 
>     cmd->flags |= f;
> 
>   return cmd;
> }
> 
Index: gdb/cli/cli-decode.h
===================================================================
RCS file: /cvs/src/src/gdb/cli/cli-decode.h,v
retrieving revision 1.17
diff -r1.17 cli-decode.h
51a52,54
> #define ASYNC_OK                  0x08
> #define ASYNC_WAIT                0x10
> 





--- Daniel Jacobowitz <drow@mvista.com> wrote:
> On Fri, Nov 28, 2003 at 12:31:13PM -0500, Newman,
> Mark (N-Superior Technical Resource Inc) wrote:
> > Thanks Daniel;
> > 
> > Any other comments on the async changes?  
> 
> I asked for you to repost them using some readable
> format.  Describing
> changes is both inefficient and ambiguous.
> 
> > 
> >                                 Mark
> > 
> > > -----Original Message-----
> > > From: Daniel Jacobowitz [mailto:drow@mvista.com]
> > > Sent: Friday, November 28, 2003 12:28 PM
> > > To: Newman, Mark (N-Superior Technical Resource
> Inc)
> > > Cc: ankit thukral; Jim Blandy;
> gdb@sources.redhat.com
> > > Subject: Re: regarding transparent data ranges
> (in tracepoint support)
> > > 
> > > 
> > > On Fri, Nov 28, 2003 at 12:19:12PM -0500,
> Newman, Mark 
> > > (N-Superior Technical Resource Inc) wrote:
> > > > Could you be specific as to what kernel/file
> this is in?
> > > > 
> > > > I am using 2.4.18 and can't find it in
> kernel/ptrace.c .
> > > 
> > > That's your problem.  It was added around
> 2.5.38.
> > > 
> > > -- 
> > > Daniel Jacobowitz
> > > MontaVista Software                        
> Debian GNU/Linux Developer
> > > 
> > 
> 
> -- 
> Daniel Jacobowitz
> MontaVista Software                         Debian
> GNU/Linux Developer


       reply	other threads:[~2003-11-29  1:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20031128192301.GA9654@nevyn.them.org>
2003-11-29  1:29 ` Mark Newman [this message]
2003-11-29  1:34   ` Daniel Jacobowitz
2003-11-29  2:08     ` Mark Newman
2003-11-29  5:41       ` Daniel Jacobowitz
2003-12-04 18:59       ` [RFA] async changes; Was: " Elena Zannoni
2003-12-04 22:16         ` Mark Newman
2003-12-05  2:22         ` Mark Newman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031129012952.6540.qmail@web13801.mail.yahoo.com \
    --to=markn_46@yahoo.com \
    --cc=ankit_plug@yahoo.com \
    --cc=drow@mvista.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=gdb@sources.redhat.com \
    --cc=jimb@redhat.com \
    --cc=mark.newman@lmco.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox