Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] New annotation for threads
@ 2008-04-18 16:06 Nick Roberts
  2008-04-29  4:47 ` Joel Brobecker
  0 siblings, 1 reply; 33+ messages in thread
From: Nick Roberts @ 2008-04-18 16:06 UTC (permalink / raw)
  To: gdb-patches

This is just an annotation equivalent of Vladimir's patch for an observer
for new threads.

-- 
Nick                                           http://www.inet.net.nz/~nickrob


2008-04-18  Nick Roberts  <nickrob@snap.net.nz>

	* annotate.h: (annotate_new_thread): New extern.

	* annotate.c (annotate_new_thread): New function.

	* thread.c (add_thread_with_info): Use it.


** annotate.h	10 Jan 2008 11:34:22 +1300	1.9
--- annotate.h	18 Apr 2008 17:30:37 +1200	
*************** extern void annotate_record (void);
*** 43,48 ****
--- 43,49 ----
  extern void annotate_breakpoints_table_end (void);
  
  extern void annotate_frames_invalid (void);
+ extern void annotate_new_thread (void);
  
  struct type;
  
*** annotate.c	10 Jan 2008 11:34:21 +1300	1.15
--- annotate.c	18 Apr 2008 17:29:19 +1200	
*************** annotate_frames_invalid (void)
*** 234,239 ****
--- 234,248 ----
  }
  
  void
+ annotate_new_thread (void)
+ {
+   if (annotation_level > 1)
+     {
+       printf_unfiltered (("\n\032\032new-thread\n"));
+     }
+ }
+ 
+ void
  annotate_field_begin (struct type *type)
  {
    if (annotation_level == 2)


*** thread.c	25 Mar 2008 08:17:29 +1200	1.65
--- thread.c	18 Apr 2008 17:31:41 +1200	
***************
*** 40,45 ****
--- 40,46 ----
  #include <signal.h>
  #include "ui-out.h"
  #include "observer.h"
+ #include "annotate.h"
  
  /* Definition of struct thread_info exported to gdbthread.h */
  
*************** add_thread_with_info (ptid_t ptid, struc
*** 140,146 ****
      printf_unfiltered (_("[New %s]\n"), target_pid_to_str (ptid));
  
    observer_notify_new_thread (result);
!   
    return result;
  }
  
--- 141,148 ----
      printf_unfiltered (_("[New %s]\n"), target_pid_to_str (ptid));
  
    observer_notify_new_thread (result);
!   annotate_new_thread ();
!  
    return result;
  }
  


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

end of thread, other threads:[~2008-05-21  4:06 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-18 16:06 [PATCH] New annotation for threads Nick Roberts
2008-04-29  4:47 ` Joel Brobecker
2008-04-29 14:19   ` Nick Roberts
2008-05-01 18:18     ` Joel Brobecker
2008-05-01 18:44       ` Daniel Jacobowitz
2008-05-01 23:31       ` Nick Roberts
2008-05-01 23:37         ` Joel Brobecker
2008-05-02  0:07           ` Nick Roberts
2008-05-02  5:50             ` Joel Brobecker
2008-05-02 10:41             ` Eli Zaretskii
2008-05-17 15:51               ` Nick Roberts
2008-05-17 19:15                 ` Stan Shebs
2008-05-17 21:18                 ` Eli Zaretskii
2008-05-18  3:20                   ` Bob Rossi
2008-05-18  9:11                     ` Bob Rossi
2008-05-18 17:44                     ` Eli Zaretskii
2008-05-19  8:48                       ` Joel Brobecker
2008-05-19  9:09                   ` Nick Roberts
2008-05-19  9:44                     ` Eli Zaretskii
2008-05-19 12:39                 ` Nick Roberts
2008-05-19 13:23                   ` Eli Zaretskii
2008-05-20 15:27                   ` Joel Brobecker
2008-05-20 16:10                     ` Nick Roberts
2008-05-20 16:43                       ` Nick Roberts
2008-05-20 18:09                         ` Joel Brobecker
2008-05-21  3:55                           ` Nick Roberts
2008-05-21  7:22                             ` Joel Brobecker
2008-05-20 22:21                     ` Eli Zaretskii
2008-05-20 22:54                       ` Joel Brobecker
2008-05-21  3:26                         ` Eli Zaretskii
2008-05-21  9:33                           ` Joel Brobecker
2008-05-21 15:11                             ` Nick Roberts
2008-05-21 15:14                               ` Joel Brobecker

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