Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 0/2] use std::vector<> to hold on blocks in struct blockvector
@ 2025-10-13 18:23 Jan Vrany
  2025-10-13 18:23 ` [PATCH 1/2] gdb: allocate blockvector on heap Jan Vrany
  2025-10-13 18:23 ` [PATCH 2/2] gdb: use std::vector<> to hold on blocks in struct blockvector Jan Vrany
  0 siblings, 2 replies; 12+ messages in thread
From: Jan Vrany @ 2025-10-13 18:23 UTC (permalink / raw)
  To: gdb-patches; +Cc: Jan Vrany

These two patches change make blockvector to be heap-allocated and
use std::vector to hold on blocks (rather than flexible array).

This is useful for lazy CU expansion and for Python "JIT" API as it
allows for adding more blocks dynamically.

Thanks,
Jan

--
Jan Vrany (2):
  gdb: allocate blockvector on heap
  gdb: use std::vector<> to hold on blocks in struct blockvector

 gdb/block.c      | 36 ++++++++++++++++++++++++++++++++++++
 gdb/block.h      | 47 +++++++++++++++++++++++++++++++----------------
 gdb/buildsym.c   |  5 +----
 gdb/jit.c        |  8 +-------
 gdb/mdebugread.c | 46 +++-------------------------------------------
 5 files changed, 72 insertions(+), 70 deletions(-)

-- 
2.51.0


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

end of thread, other threads:[~2025-10-15 21:35 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-13 18:23 [PATCH 0/2] use std::vector<> to hold on blocks in struct blockvector Jan Vrany
2025-10-13 18:23 ` [PATCH 1/2] gdb: allocate blockvector on heap Jan Vrany
2025-10-14 18:41   ` Simon Marchi
2025-10-13 18:23 ` [PATCH 2/2] gdb: use std::vector<> to hold on blocks in struct blockvector Jan Vrany
2025-10-14 15:00   ` Andrew Burgess
2025-10-14 19:41     ` Simon Marchi
2025-10-15 21:34       ` Jan Vraný
2025-10-14 19:29   ` Simon Marchi
2025-10-14 20:05     ` Tom Tromey
2025-10-14 20:19       ` Simon Marchi
2025-10-14 20:40         ` Jan Vraný
2025-10-15  2:00           ` Simon Marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox