public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Make allocate_on_obstack a bit safer
@ 2024-02-27 21:42 Tom Tromey
  2024-02-27 21:42 ` [PATCH 1/3] Use addrmap_fixed in a few spots Tom Tromey
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Tom Tromey @ 2024-02-27 21:42 UTC (permalink / raw)
  To: gdb-patches

This series makes the allocate_on_obstack mixin a little safer by
having it enforce the rule that an object allocated on an obstack must
have a trivial destructor.

---
Tom Tromey (3):
      Use addrmap_fixed in a few spots
      Don't use virtual destructor in addrmap
      Require trivial destructor in allocate_on_obstack

 gdb/addrmap.h             |  7 ++++---
 gdb/block.c               |  2 +-
 gdb/block.h               | 12 ++++++------
 gdb/dwarf2/cooked-index.h |  4 ++--
 gdb/dwarf2/read.h         |  2 +-
 gdb/gdbtypes.h            |  4 ++--
 gdb/symtab.h              |  2 +-
 gdbsupport/gdb_obstack.h  |  6 +++++-
 8 files changed, 22 insertions(+), 17 deletions(-)
---
base-commit: 407ca654547b100903f7eab44d078a2440736f13
change-id: 20240227-obstac-alloc-deabe0f935c3

Best regards,
-- 
Tom Tromey <tromey@adacore.com>


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

end of thread, other threads:[~2024-03-21 18:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-27 21:42 [PATCH 0/3] Make allocate_on_obstack a bit safer Tom Tromey
2024-02-27 21:42 ` [PATCH 1/3] Use addrmap_fixed in a few spots Tom Tromey
2024-02-28 12:27   ` Alexandra Petlanova Hajkova
2024-02-27 21:42 ` [PATCH 2/3] Don't use virtual destructor in addrmap Tom Tromey
2024-02-28 15:16   ` Alexandra Petlanova Hajkova
2024-02-27 21:42 ` [PATCH 3/3] Require trivial destructor in allocate_on_obstack Tom Tromey
2024-02-28 16:55   ` Alexandra Petlanova Hajkova
2024-03-21 18:20 ` [PATCH 0/3] Make allocate_on_obstack a bit safer Tom 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).