public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Fix a couple undefined behaviors flagged by UBSan
@ 2022-04-04 12:51 Pedro Alves
  2022-04-04 12:51 ` [PATCH v2 1/2] gdb: Avoid undefined shifts Pedro Alves
  2022-04-04 12:51 ` [PATCH v2 2/2] Avoid undefined behavior in gdbscm_make_breakpoint Pedro Alves
  0 siblings, 2 replies; 8+ messages in thread
From: Pedro Alves @ 2022-04-04 12:51 UTC (permalink / raw)
  To: gdb-patches

New in v2:
  - Fix a number of typos in patch #1.

Running the testsuite against GDBserver with a GDB built with
--enable-ubsan, I noticed a few problems.  This mini-series fixes a
couple.

Pedro Alves (2):
  gdb: Avoid undefined shifts
  Avoid undefined behavior in gdbscm_make_breakpoint

 gdb/guile/scm-breakpoint.c        |  10 +--
 gdb/testsuite/gdb.base/bitops.exp | 131 ++++++++++++++++++++++++++++++
 gdb/valarith.c                    |  61 +++++++++++++-
 3 files changed, 193 insertions(+), 9 deletions(-)


base-commit: edbc15e6c4f463173b25b1f8042346c2e1a78602
-- 
2.26.2


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

end of thread, other threads:[~2022-04-04 19:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-04 12:51 [PATCH v2 0/2] Fix a couple undefined behaviors flagged by UBSan Pedro Alves
2022-04-04 12:51 ` [PATCH v2 1/2] gdb: Avoid undefined shifts Pedro Alves
2022-04-04 17:21   ` Tom Tromey
2022-04-04 17:54     ` Pedro Alves
2022-04-04 17:59       ` Tom Tromey
2022-04-04 12:51 ` [PATCH v2 2/2] Avoid undefined behavior in gdbscm_make_breakpoint Pedro Alves
2022-04-04 17:15   ` Tom Tromey
2022-04-04 19:50     ` 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).