Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Re: [PATCH] tracepoint.c
@ 2002-01-08 15:25 Klee Dienes
  0 siblings, 0 replies; 4+ messages in thread
From: Klee Dienes @ 2002-01-08 15:25 UTC (permalink / raw)
  To: Michael Snyder; +Cc: gdb-patches


> Ah, I think we've had a communication breakdown.  I thought that
> your 
> previous patch was defunct, and we were waiting for you to resubmit
> it. 
> Rereading the old thread, I can see where I lost continuity.  Sorry
> for 
> the confusion -- can we start again? 
>  
> I actually liked the 'save-breakpoints' command, and was thinking 
> of pinging you to see when you planned to resubmit it.  But I don't 
> like it being grouped together with the 'future-break' command. 
> They're really separate, though related, and I'd rather consider 
> separate functionalities separately.  Besides, the two together 
> make a really huge patch, one that it's difficult to review  
> line by line. 
 
OK, that's fair.  My main reason for combining the patches was that 
they had mutual dependencies on each other ('save-breakpoints' knows 
about 'future' breakpoints so that it can save and restore them; the 
future-break code knows about the 'original-flags' field added by 
'save-breakpoints').  But I can probably remove the future-break 
support from the 'save-breakpoints' command, and resubmit future-break 
once 'save-breakpoints' is committed. 
 
> As for the change to tracepoints, I had that sitting in my source 
> tree from your earlier submission, and I was just cleaning up loose 
> ends.  I decided to make sure that didn't get lost, while waiting 
> for you to resubmit your patch.  Sorry if I jumped the gun on you. 
 
Anything that reduces the size of our diffs is a win from my 
perspective; I just wanted to make sure I was understanding the 
process properly. 
 
> If a week goes by without a response, you should ping the list. 
> We might have gotten distracted ourselves, or there could be a 
> misunderstanding such as this one. 
 
OK, will do.  I believe there's only one other patch outstanding at 
this point; I'm just eager to get it resolved, since it's holding up 
some of our more interesting Objective-C patches.  I'll send a ping 
now; thanks for the advice! 


^ permalink raw reply	[flat|nested] 4+ messages in thread
* [PATCH] tracepoint.c
@ 2002-01-07 17:54 Michael Snyder
  2002-01-08  1:46 ` Klee Dienes
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Snyder @ 2002-01-07 17:54 UTC (permalink / raw)
  To: gdb-patches; +Cc: klee

2002-01-07  Michael Snyder  <msnyder@redhat.com>

	* tracepoint.c (tracepoint_save_command): From Klee Dienes --
	use tilde_expand and strerror for opening save-tracepoints file.

Index: tracepoint.c
===================================================================
RCS file: /cvs/src/src/gdb/tracepoint.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -p -r1.29 -r1.30
*** tracepoint.c	2001/12/25 22:24:38	1.29
--- tracepoint.c	2002/01/08 01:52:12	1.30
*************** tracepoint_save_command (char *args, int
*** 2263,2269 ****
    struct action_line *line;
    FILE *fp;
    char *i1 = "    ", *i2 = "      ";
!   char *indent, *actionline;
    char tmp[40];
  
    if (args == 0 || *args == 0)
--- 2263,2269 ----
    struct action_line *line;
    FILE *fp;
    char *i1 = "    ", *i2 = "      ";
!   char *indent, *actionline, *pathname;
    char tmp[40];
  
    if (args == 0 || *args == 0)
*************** tracepoint_save_command (char *args, int
*** 2275,2283 ****
        return;
      }
  
!   if (!(fp = fopen (args, "w")))
!     error ("Unable to open file '%s' for saving tracepoints");
! 
    ALL_TRACEPOINTS (tp)
    {
      if (tp->addr_string)
--- 2275,2286 ----
        return;
      }
  
!   pathname = tilde_expand (args);
!   if (!(fp = fopen (pathname, "w")))
!     error ("Unable to open file '%s' for saving tracepoints (%s)",
! 	   args, strerror (errno));
!   xfree (pathname);
!   
    ALL_TRACEPOINTS (tp)
    {
      if (tp->addr_string)


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

end of thread, other threads:[~2002-01-08 23:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-08 15:25 [PATCH] tracepoint.c Klee Dienes
  -- strict thread matches above, loose matches on Subject: below --
2002-01-07 17:54 Michael Snyder
2002-01-08  1:46 ` Klee Dienes
2002-01-08 15:15   ` Michael Snyder

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