Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Burgess <aburgess@redhat.com>
To: Keith Seitz <keiths@redhat.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] gdbserver: fix memory leak in vRun handling
Date: Mon, 23 Nov 2026 14:45:28 +0000	[thread overview]
Message-ID: <xhuyfik1n7gjb.fsf@aburgess-thinkpadp1gen8.rmtgb.csb> (raw)
In-Reply-To: <e472d3d9-6a1e-46cd-87f9-8905949bf907@redhat.com>

Keith Seitz <keiths@redhat.com> writes:

> Hi,
>
> On 11/18/26 3:24 AM, Andrew Burgess wrote:
>> diff --git a/gdb/testsuite/gdb.server/invalid-vrun.exp b/gdb/testsuite/gdb.server/invalid-vrun.exp
>> new file mode 100644
>> index 00000000000..5f189b7feb9
>> --- /dev/null
>> +++ b/gdb/testsuite/gdb.server/invalid-vrun.exp
>> @@ -0,0 +1,60 @@
>> +# This testcase is part of GDB, the GNU debugger.
>> +#
>> +# Copyright 2026 Free Software Foundation, Inc.
>> +#
>> +# This program is free software; you can redistribute it and/or modify
>> +# it under the terms of the GNU General Public License as published by
>> +# the Free Software Foundation; either version 3 of the License, or
>> +# (at your option) any later version.
>> +#
>> +# This program is distributed in the hope that it will be useful,
>> +# but WITHOUT ANY WARRANTY; without even the implied warranty of
>> +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
>> +# GNU General Public License for more details.
>> +#
>> +# You should have received a copy of the GNU General Public License
>> +# along with this program.  If not, see <http://www.gnu.org/licenses/>.
>> +
>> +# Test handling of vRun packet where argument fields contains invalid
>> +# non-hex characters.
>> +
>> +load_lib gdbserver-support.exp
>> +
>> +require allow_gdbserver_tests
>> +
>> +standard_testfile normal.c
>> +
>> +save_vars { GDBFLAGS } {
>> +    # If GDB and GDBserver are both running locally, set the sysroot to avoid
>> +    # reading files via the remote protocol (the `is_remote target` check is
>  > +    # already done above).
>
> Maybe I'm daft, but where is the "is_remote target" check done? I'm not
> seeing. AFAICT, this file follows an idiom used in other gdbserver
> tests, but they all check both "host" and "target".

You are totally correct.  I've updated this to check host and target,
and pushed this patch.

Thanks,
Andrew


  reply	other threads:[~2026-11-23 14:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-18 11:24 Andrew Burgess
2026-11-19 20:23 ` Keith Seitz
2026-11-23 14:45   ` Andrew Burgess [this message]
2026-11-19 20:38 ` Tom Tromey

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=xhuyfik1n7gjb.fsf@aburgess-thinkpadp1gen8.rmtgb.csb \
    --to=aburgess@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=keiths@redhat.com \
    /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