public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/6] Don't throw quit while handling inferior events
@ 2023-02-10 23:35 Pedro Alves
  2023-02-10 23:35 ` [PATCH 1/6] Fix "ptype INTERNAL_FUNC" (PR gdb/30105) Pedro Alves
                   ` (5 more replies)
  0 siblings, 6 replies; 31+ messages in thread
From: Pedro Alves @ 2023-02-10 23:35 UTC (permalink / raw)
  To: gdb-patches

This series implements what I suggested here:

  https://inbox.sourceware.org/gdb-patches/ab97c553-f406-b094-cdf3-ba031fdea925@palves.net/

... and then some more.

To expose the problem with a testcase, I added a new $_shell
convenience function, and I'm using that to send a SIGINT signal to
GDB from a breakpoint condition.

While writing tests for the new $_shell convenience function, I ran
into a number of bugs, also fixed in the series.

Pedro Alves (6):
  Fix "ptype INTERNAL_FUNC" (PR gdb/30105)
  Make "ptype INTERNAL_FUNCTION" in Ada print like other languages
  Add new "$_shell(CMD)" internal function
  Don't throw quit while handling inferior events
  GC get_active_ext_lang
  Don't throw quit while handling inferior events, part II

 gdb/NEWS                                      | 10 ++
 gdb/ada-typeprint.c                           |  7 ++
 gdb/c-typeprint.c                             | 51 ----------
 gdb/cli/cli-cmds.c                            | 89 ++++++++++++++++-
 gdb/doc/gdb.texinfo                           | 47 +++++++++
 gdb/extension-priv.h                          |  2 -
 gdb/extension.c                               | 70 +++++++++++--
 gdb/extension.h                               | 16 +++
 gdb/infrun.c                                  | 54 ++++++++++
 gdb/p-typeprint.c                             | 46 ---------
 .../gdb.base/bg-exec-sigint-bp-cond.c         | 35 +++++++
 .../gdb.base/bg-exec-sigint-bp-cond.exp       | 98 +++++++++++++++++++
 gdb/testsuite/gdb.base/default.exp            |  1 +
 .../gdb.base/internal-functions-ptype.exp     | 40 ++++++++
 gdb/testsuite/gdb.base/shell.exp              | 36 +++++++
 gdb/testsuite/gdb.python/py-xmethods.exp      |  8 ++
 16 files changed, 498 insertions(+), 112 deletions(-)
 create mode 100644 gdb/testsuite/gdb.base/bg-exec-sigint-bp-cond.c
 create mode 100644 gdb/testsuite/gdb.base/bg-exec-sigint-bp-cond.exp
 create mode 100644 gdb/testsuite/gdb.base/internal-functions-ptype.exp


base-commit: 5036bde964bc1a18282dde536a95aecd0d2c08fb
-- 
2.36.0


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

end of thread, other threads:[~2023-02-20 15:28 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-10 23:35 [PATCH 0/6] Don't throw quit while handling inferior events Pedro Alves
2023-02-10 23:35 ` [PATCH 1/6] Fix "ptype INTERNAL_FUNC" (PR gdb/30105) Pedro Alves
2023-02-13 16:02   ` Andrew Burgess
2023-02-14 15:26   ` Tom Tromey
2023-02-15 21:10     ` Pedro Alves
2023-02-15 22:04       ` Tom Tromey
2023-02-10 23:36 ` [PATCH 2/6] Make "ptype INTERNAL_FUNCTION" in Ada print like other languages Pedro Alves
2023-02-13 16:02   ` Andrew Burgess
2023-02-14 15:30     ` Tom Tromey
2023-02-15 13:38       ` Pedro Alves
2023-02-15 15:13         ` Pedro Alves
2023-02-15 16:56         ` Tom Tromey
2023-02-15 21:04           ` [PATCH] Move TYPE_CODE_INTERNAL_FUNCTION type printing to common code (was: Re: [PATCH 2/6] Make "ptype INTERNAL_FUNCTION" in Ada print like other languages) Pedro Alves
2023-02-20 15:28             ` Andrew Burgess
2023-02-10 23:36 ` [PATCH 3/6] Add new "$_shell(CMD)" internal function Pedro Alves
2023-02-11  8:02   ` Eli Zaretskii
2023-02-13 15:11     ` Pedro Alves
2023-02-13 15:36       ` Eli Zaretskii
2023-02-13 16:47         ` [PATCH] gdb/manual: Move @findex entries (was: Re: [PATCH 3/6] Add new "$_shell(CMD)" internal function) Pedro Alves
2023-02-13 17:00           ` Eli Zaretskii
2023-02-13 17:27         ` [PATCH 3/6] Add new "$_shell(CMD)" internal function Pedro Alves
2023-02-13 18:41           ` Eli Zaretskii
2023-02-14 15:38           ` Tom Tromey
2023-02-10 23:36 ` [PATCH 4/6] Don't throw quit while handling inferior events Pedro Alves
2023-02-14 15:50   ` Tom Tromey
2023-02-10 23:36 ` [PATCH 5/6] GC get_active_ext_lang Pedro Alves
2023-02-14 15:39   ` Tom Tromey
2023-02-10 23:36 ` [PATCH 6/6] Don't throw quit while handling inferior events, part II Pedro Alves
2023-02-14 15:54   ` Tom Tromey
2023-02-15 21:16     ` Pedro Alves
2023-02-15 21:24       ` 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).