public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  archer-sergiodj-stap: display semaphore address in "info probes"
@ 2011-02-11 14:32 tromey
  0 siblings, 0 replies; only message in thread
From: tromey @ 2011-02-11 14:32 UTC (permalink / raw)
  To: archer-commits

The branch, archer-sergiodj-stap has been updated
       via  3eb16a82b0d09e0be398246165355a5e2711adb3 (commit)
      from  55a4ac87f0bb074befb8a89995cf1126f86c2ce9 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 3eb16a82b0d09e0be398246165355a5e2711adb3
Author: Tom Tromey <tromey@redhat.com>
Date:   Fri Feb 11 07:32:24 2011 -0700

    display semaphore address in "info probes"

-----------------------------------------------------------------------

Summary of changes:
 gdb/stap-probe.c |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

First 500 lines of diff:
diff --git a/gdb/stap-probe.c b/gdb/stap-probe.c
index fe101d0..8deaf3a 100644
--- a/gdb/stap-probe.c
+++ b/gdb/stap-probe.c
@@ -222,7 +222,7 @@ info_probes_command (char *arg, int from_tty)
 
   items = collect_probes (objname, provider, probe);
   make_cleanup (VEC_cleanup (stap_entry), &items);
-  make_cleanup_ui_out_table_begin_end (uiout, 4,
+  make_cleanup_ui_out_table_begin_end (uiout, 5,
 				       VEC_length (stap_entry, items),
 				       "SystemTapProbes");
 
@@ -234,9 +234,11 @@ info_probes_command (char *arg, int from_tty)
 
   addr_width = 4 + (gdbarch_ptr_bit (get_current_arch ()) / 4);
 
-  ui_out_table_header (uiout, 15, ui_left, "provider", _("Provider"));
-  ui_out_table_header (uiout, 15, ui_left, "name", _("Name"));
+  ui_out_table_header (uiout, 10, ui_left, "provider", _("Provider"));
+  ui_out_table_header (uiout, 10, ui_left, "name", _("Name"));
   ui_out_table_header (uiout, addr_width - 1, ui_left, "addr", _("Where"));
+  ui_out_table_header (uiout, addr_width - 1, ui_left, "semaphore",
+		       _("Semaphore"));
   ui_out_table_header (uiout, 30, ui_left, "object", _("Object"));
   ui_out_table_body (uiout);
 
@@ -250,6 +252,11 @@ info_probes_command (char *arg, int from_tty)
       ui_out_field_string (uiout, "name", entry->probe->name);
       ui_out_field_core_addr (uiout, "addr", get_current_arch (),
 			      entry->probe->address);
+      if (entry->probe->sem_addr == 0)
+	ui_out_field_skip (uiout, "semaphore");
+      else
+      ui_out_field_core_addr (uiout, "semaphore", get_current_arch (),
+			      entry->probe->sem_addr);
       ui_out_field_string (uiout, "object", entry->objfile->name);
       ui_out_text (uiout, "\n");
 


hooks/post-receive
--
Repository for Project Archer.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-02-11 14:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-11 14:32 [SCM] archer-sergiodj-stap: display semaphore address in "info probes" tromey

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