From: Jan Vrany <jan.vrany@labware.com>
To: gdb-patches@sourceware.org
Cc: Jan Vrany <jan.vrany@labware.com>
Subject: [PATCH 0/2] use std::vector<> to hold on blocks in struct blockvector
Date: Mon, 13 Oct 2025 19:23:16 +0100 [thread overview]
Message-ID: <20251013182318.1045138-1-jan.vrany@labware.com> (raw)
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
next reply other threads:[~2025-10-13 18:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-13 18:23 Jan Vrany [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251013182318.1045138-1-jan.vrany@labware.com \
--to=jan.vrany@labware.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox