public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/6] S390: Watchpoint enhancements and hardware breakpoints
@ 2016-09-15 11:53 Andreas Arnez
  2016-09-15 11:54 ` [PATCH] Fix order of inferiors in "thread apply all" Andreas Arnez
                   ` (8 more replies)
  0 siblings, 9 replies; 19+ messages in thread
From: Andreas Arnez @ 2016-09-15 11:53 UTC (permalink / raw)
  To: gdb-patches; +Cc: Ulrich Weigand

This series adds some enhancements to the current s390-linux native
support for watchpoints.  It also adds hardware breakpoint support.

While this is mostly an s390-specific series, it includes one
common-code patch: patch #5, "linux-nat: Add function lwp_is_stepping".
I'm looking for feedback on that.  Comments to the s390-specific patches
are certainly welcome as well.

Andreas Arnez (6):
  S390: Avoid direct access to lwp_info structure
  S390: Migrate watch areas from list to VEC type
  S390: Multi-inferior watchpoint support
  S390: Enable "maint set show-debug-regs"
  linux-nat: Add function lwp_is_stepping
  S390: Hardware breakpoint support

 gdb/gdbserver/linux-low.c |   8 +
 gdb/linux-nat.c           |   8 +
 gdb/nat/linux-nat.h       |   4 +
 gdb/s390-linux-nat.c      | 442 ++++++++++++++++++++++++++++++++++++++--------
 gdb/testsuite/lib/gdb.exp |   3 +-
 5 files changed, 394 insertions(+), 71 deletions(-)

-- 
2.5.0

^ permalink raw reply	[flat|nested] 19+ messages in thread
* [PATCH] Fix order of inferiors in "thread apply all"
@ 2016-08-30 14:36 Andreas Arnez
  2016-08-30 14:44 ` Pedro Alves
  0 siblings, 1 reply; 19+ messages in thread
From: Andreas Arnez @ 2016-08-30 14:36 UTC (permalink / raw)
  To: gdb-patches; +Cc: Philipp Rudo

This inserts missing parentheses in the calculation of the comparison
result between two different inferior numbers.  The problem was found by
Philipp Rudo.

gdb/ChangeLog:

	* thread.c (tp_array_compar): Insert missing parentheses.

gdb/testsuite/ChangeLog:

	* gdb.multi/tids.exp: Test "thread apply all".
---
 gdb/testsuite/gdb.multi/tids.exp | 6 ++++++
 gdb/thread.c                     | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/gdb/testsuite/gdb.multi/tids.exp b/gdb/testsuite/gdb.multi/tids.exp
index 5d8701e..12ce98a 100644
--- a/gdb/testsuite/gdb.multi/tids.exp
+++ b/gdb/testsuite/gdb.multi/tids.exp
@@ -224,6 +224,12 @@ with_test_prefix "two inferiors" {
     thr_apply_info_thr "1.1-2 2.2-3" \
 	"1.1 1.2 2.2 2.3"
 
+    # All threads.
+    thread_apply "all" \
+	"2.3 2.2 2.1 1.3 1.2 1.1"
+    thread_apply "all -ascending" \
+	"1.1 1.2 1.3 2.1 2.2 2.3"
+
     # Now test using GDB convenience variables.
 
     gdb_test "p \$inf = 1" " = 1"
diff --git a/gdb/thread.c b/gdb/thread.c
index ab98777..a66a2b5 100644
--- a/gdb/thread.c
+++ b/gdb/thread.c
@@ -1725,7 +1725,7 @@ tp_array_compar (const void *ap_voidp, const void *bp_voidp)
 
   if (a->inf->num != b->inf->num)
     {
-      return ((a->inf->num > b->inf->num) - (a->inf->num < b->inf->num)
+      return (((a->inf->num > b->inf->num) - (a->inf->num < b->inf->num))
 	      * (tp_array_compar_ascending ? +1 : -1));
     }
 
-- 
2.5.0

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

end of thread, other threads:[~2016-09-16 17:30 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-15 11:53 [PATCH 0/6] S390: Watchpoint enhancements and hardware breakpoints Andreas Arnez
2016-09-15 11:54 ` [PATCH] Fix order of inferiors in "thread apply all" Andreas Arnez
2016-09-15 12:03   ` Andreas Arnez
2016-09-15 11:59 ` [PATCH 1/6] S390: Avoid direct access to lwp_info structure Andreas Arnez
2016-09-15 12:01 ` [PATCH 3/6] S390: Multi-inferior watchpoint support Andreas Arnez
2016-09-15 12:02 ` [PATCH 2/6] S390: Migrate watch areas from list to VEC type Andreas Arnez
2016-09-15 12:02 ` [PATCH 4/6] S390: Enable "maint set show-debug-regs" Andreas Arnez
2016-09-15 12:02 ` [PATCH 5/6] linux-nat: Add function lwp_is_stepping Andreas Arnez
2016-09-15 15:08   ` Yao Qi
2016-09-15 12:02 ` [PATCH 6/6] S390: Hardware breakpoint support Andreas Arnez
2016-09-15 14:11 ` [PATCH 0/6] S390: Watchpoint enhancements and hardware breakpoints Pedro Alves
2016-09-16 12:43   ` Ulrich Weigand
2016-09-16 15:43     ` Pedro Alves
2016-09-16 17:30       ` Andreas Arnez
2016-09-15 14:58 ` Yao Qi
2016-09-15 17:14   ` Andreas Arnez
  -- strict thread matches above, loose matches on Subject: below --
2016-08-30 14:36 [PATCH] Fix order of inferiors in "thread apply all" Andreas Arnez
2016-08-30 14:44 ` Pedro Alves
2016-08-30 15:09   ` Andreas Arnez

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