public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Star wildcard ranges (e.g., "info thread 2.*")
@ 2016-01-13 16:34 Pedro Alves
  2016-01-13 16:34 ` Pedro Alves
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Pedro Alves @ 2016-01-13 16:34 UTC (permalink / raw)
  To: gdb-patches

This series adds support for specifying "all threads of inferior N",
by writing "*" as thread number/range in thread ID lists.

E.g., "info threads 2.*" or "thread apply 2.* bt".

While doing this, I noticed a few bugs in "thread apply" (that even
predate the per-inferior thread IDs series).  Patch 1 fixes them.  I'm
only keeping both patches together to make it clear that patch 2
applies on top of patch 1.

Pedro Alves (2):
  Fix "thread apply $conv_var" and misc other related problems
  Star wildcard ranges (e.g., "info thread 2.*")

 gdb/NEWS                         |   6 ++
 gdb/cli/cli-utils.c              |  15 ++++
 gdb/cli/cli-utils.h              |   8 +++
 gdb/doc/gdb.texinfo              |  39 ++++++++---
 gdb/testsuite/gdb.multi/tids.exp | 143 +++++++++++++++++++++++++++++++++++----
 gdb/thread.c                     |  40 +++++++++--
 gdb/tid-parse.c                  |  63 ++++++++++++++---
 gdb/tid-parse.h                  |   7 ++
 8 files changed, 285 insertions(+), 36 deletions(-)

-- 
1.9.3

^ permalink raw reply	[flat|nested] 13+ messages in thread
* [PATCH 0/2] Star wildcard ranges (e.g., "info thread 2.*")
@ 2016-01-14 11:39 Pedro Alves
  0 siblings, 0 replies; 13+ messages in thread
From: Pedro Alves @ 2016-01-14 11:39 UTC (permalink / raw)
  To: gdb-patches

In v2:
	- Address Eli's documentation review.
	- Fix "thread apply" crash in patch #1.
	- remove 'state->string = "-"' hack in patch #2.

This series adds support for specifying "all threads of inferior N",
by writing "*" as thread number/range in thread ID lists.

E.g., "info threads 2.*" or "thread apply 2.* bt".

While doing this, I noticed a few bugs in "thread apply" (that even
predate the per-inferior thread IDs series).  Patch 1 fixes them.  I'm
only keeping both patches together to make it clear that patch 2
applies on top of patch 1.

Pedro Alves (2):
  Fix "thread apply $conv_var" and misc other related problems
  Star wildcard ranges (e.g., "info thread 2.*")

 gdb/NEWS                         |   6 ++
 gdb/cli/cli-utils.c              |  47 ++++++++-----
 gdb/cli/cli-utils.h              |   8 +++
 gdb/doc/gdb.texinfo              |  39 ++++++++---
 gdb/testsuite/gdb.multi/tids.exp | 143 +++++++++++++++++++++++++++++++++++----
 gdb/thread.c                     |  39 ++++++++++-
 gdb/tid-parse.c                  |  63 ++++++++++++++---
 gdb/tid-parse.h                  |   7 ++
 8 files changed, 301 insertions(+), 51 deletions(-)

-- 
1.9.3

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

end of thread, other threads:[~2016-01-15 21:50 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-13 16:34 [PATCH 0/2] Star wildcard ranges (e.g., "info thread 2.*") Pedro Alves
2016-01-13 16:34 ` Pedro Alves
2016-01-13 16:42   ` Pedro Alves
2016-01-13 16:34 ` [PATCH 1/2] Fix "thread apply $conv_var" and misc other related problems Pedro Alves
2016-01-13 16:34 ` [PATCH 2/2] Star wildcard ranges (e.g., "info thread 2.*") Pedro Alves
2016-01-13 17:00   ` Eli Zaretskii
2016-01-14 11:13     ` Pedro Alves
2016-01-14 16:16       ` Eli Zaretskii
2016-01-14 16:42         ` Pedro Alves
2016-01-14 11:29   ` Pedro Alves
2016-01-14 16:52 ` [PATCH 0/2] " Simon Marchi
2016-01-15 21:50 ` Pedro Alves
2016-01-14 11:39 Pedro Alves

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