From: Tom Tromey <tromey@adacore.com>
To: Simon Marchi <simark@simark.ca>
Cc: Tom Tromey <tromey@adacore.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] Return lazy value from allocate_repeat_value
Date: Mon, 21 Sep 2026 13:30:54 -0600 [thread overview]
Message-ID: <87h5jijtap.fsf@tromey.com> (raw)
In-Reply-To: <0a491ae3-f893-4543-afd8-658f650bd042@simark.ca> (Simon Marchi's message of "Mon, 21 Sep 2026 13:46:44 -0400")
>> + # A regression test for a buffer overflow. PR gdb/34132.
>> + gdb_test_no_output {set $ctable = (char *) ctable2}
Simon> Just wondering, is the use of the convenience var necessary?
Doesn't seem to be, that was just a leftover from my various attempts to
reproduce the crash.
>> + gdb_test_no_output "set max-value-size 16"
>> + gdb_test_no_output "set print elements 10"
>> + gdb_test {print $ctable[0] @ 20} \
>> + [quotemeta {$@DECIMAL = {97 'a', 88 'X' <repeats 15 times>...}}]
>> + gdb_test_no_output "set max-value-size 65536"
>> + gdb_test_no_output "set print elements 200"
Simon> Can you do
Simon> with max-value-size 16 -- with print elements 10 -- ...
Simon> to avoid having to set and reset the settings?
Yep.
Simon> Approved-By: Simon Marchi <simon.marchi@efficios.com>
Thanks.
Tom
prev parent reply other threads:[~2026-09-21 19:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-21 16:16 Tom Tromey
2026-09-21 17:46 ` Simon Marchi
2026-09-21 19:30 ` Tom Tromey [this message]
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=87h5jijtap.fsf@tromey.com \
--to=tromey@adacore.com \
--cc=gdb-patches@sourceware.org \
--cc=simark@simark.ca \
/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