From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id pUaYLKhtBGtGsS8AWB0awg (envelope-from ) for ; Mon, 23 Nov 2026 11:45:28 -0500 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=a/mi1hce; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 9DCB61E023; Mon, 23 Nov 2026 11:45:28 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 5EDF31E023 for ; Mon, 23 Nov 2026 11:45:27 -0500 (EST) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E6E1F48577C1 for ; Mon, 23 Nov 2026 16:45:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E6E1F48577C1 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=a/mi1hce Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id 75D2846B4B01 for ; Mon, 23 Nov 2026 16:44:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 75D2846B4B01 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 75D2846B4B01 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1795452296; cv=none; b=HRb4AMrdhINHZ8H7HYQGODtz7LepCz4GDignK98Exa7pXCJOlHVt+rxBcoDa5yuk72GpqFEPr94YnYH+JYZLsfoJNdjVDds/5hfRCDgq9+rIR2fn3GRc6OiHIsiFgKJ2UKuF5E2JQWlpXPyaqw3kfh0b6BLwqiLntPMnBnPp0fg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1795452296; c=relaxed/simple; bh=I/a9+axMIkbE6RYCvHtuAWvXIKOXWsGvBCJJRWFbSg4=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=KQ2EsKFF+bDis5db/z1utnH24pc7vQ3sWWTsETMkm7DYo1rIIi0RtXCr5hs18OuGZ3V4sro3iZ5kztrM7lHJCCyrlvc2cV+UU6Ozh+1WeICdpMQM5y+Mc1GpkwY2/63zyfvNwKtmc3QsFUN9ZtFqVhlakSmgjCAzOK7eKmLEDB4= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=a/mi1hce DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 75D2846B4B01 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1795452289; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=50vdqnwaR2kp6mOxqOK+JC1SLOc7F/cPc9Iv0AiCaDw=; b=a/mi1hceM54Y+oPbv0bOVwnV64EhXAHWS61ae84M/Gr1apcmi1bWunHGgKeoClBXPAyP/n jQFRBVlJNVtoBpbSkt7bUFAtKqUeGuL2bo+3DltjPgltCIDxoyDuSniUEgftdtXas/S6L1 nHZdUmRlXkX6yLIuXSVwpKNeEv0rjVU= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-694-EuQrf3YlO1m52Std9zWlRg-1; Mon, 23 Nov 2026 16:44:35 +0000 X-MC-Unique: EuQrf3YlO1m52Std9zWlRg-1 X-Mimecast-MFC-AGG-ID: EuQrf3YlO1m52Std9zWlRg_1795452271 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-49d70f45b22so2022299f8f.2 for ; Mon, 23 Nov 2026 08:44:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795452271; x=1796057071; h=content-type:mime-version:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to:content-type; bh=50vdqnwaR2kp6mOxqOK+JC1SLOc7F/cPc9Iv0AiCaDw=; b=AJUicvRYRqUMzFOvL+04K16mxsNB6PJmjNRwQ1bf29nTHQeq20jXFQMvS+epOoDfQg GjYfY7D4H3MpyQ71eMmzEK91IWARnjCpoJgPL36ZFGoWh4L/285toQ/VWfGWHlxi1NdU SHhO6+KSYrGKYJNlCllkyZxpjQf5YGH2BrjSKgzgG3SZPP3hu48L3eMo6uGveXj8yB1b ciun+gK6bZLeUg/q0iaeHGXhD2vJX/JLdKPavRCziQfFRZDv1vlGfMaBexFbjcfOJuB4 Fo4UNZhdPN/v2m/pxFuBwGkW4EYc0Gv3EFBUOCdmusv34xtZd4IPXEUa6ytp1kvZnd6b msuw== X-Gm-Message-State: APuU4Z/Y072dtkPVtjw2jUEsTjLWQiauBOON3ElbkfwqPY6gkzsSgKQn ciXXVAlbUKDqJNnsF9/9iv9yj1fDZ3BSaBIxUl9tzoJVqwPyMZPsWM6nDjHue0+8tw6nyqmCgPv iPB0S0tZinfCtpOkubgONgwN+Xk6c7kPDfUMTugL4a2o8o1uqx0AbHd4bYFJlc5ZaYLIJQFA= X-Gm-Gg: AZFdTZccJedR2wZzXCdhgeMeP8wA+f9eFrtLZNy6nZDOVUyL5ScFD/I65tU5rcJ4OG3 VAbyZau1ZHEPF8fitJl3QaPau/UuMRv3emziAAg8vNHyL+fr3mL8eZgXI3bQkk8ljsPqoKkCgnN lFFpI9X3ZHa04r1e4ryxJJnMuNhedTEqQJbNBZZcIzsw9QPpz3RdbhDMbtJGuBLcypB6pETMtu+ gAZZ1RGB7DGbP55SlVb/MWefZmmgK1hY9l6vqf741LQkz+vxyrxcoULbMTJKKloWsVd7TY6vw3p Ga13JpVkuRALKbamRiOf2KLGaCdAC/rNfjMPihv7FZnTO+4yLSSvi5bRrJDfhls1PC3Hy7+mWEQ eLKfXv7Ue7+v4fjV613DCKOT77Pk94Hdq2BFDx0xE7t3OtQ== X-Received: by 2002:a05:6000:2211:b0:4a7:5873:c65b with SMTP id ffacd0b85a97d-4abb400bd66mr22910462f8f.47.1795452270428; Mon, 23 Nov 2026 08:44:30 -0800 (PST) X-Received: by 2002:a05:6000:2211:b0:4a7:5873:c65b with SMTP id ffacd0b85a97d-4abb400bd66mr22910413f8f.47.1795452269744; Mon, 23 Nov 2026 08:44:29 -0800 (PST) Received: from localhost ([83.216.138.189]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab65cb4341sm23582264f8f.4.2026.11.23.08.44.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Nov 2026 08:44:29 -0800 (PST) From: Andrew Burgess To: Tom Tromey Cc: gdb-patches@sourceware.org Subject: Re: [PATCH 3/3] gdb/remote: improve error checking for 'p' packet reply In-Reply-To: <875wy5vrsa.fsf@tromey.com> References: <74dfd6c36ec51bc513bc84ec5480d8c3421ca3a4.1794238395.git.aburgess@redhat.com> <875wy5vrsa.fsf@tromey.com> Date: Mon, 23 Nov 2026 16:44:27 +0000 Message-ID: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: kL2vj2Sh_VVPea6KZ1snJe9ctzOneMP0J_bWOpPwHPI_1795452271 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org Tom Tromey writes: >>>>>> "Andrew" == Andrew Burgess writes: > > Andrew> When building the outgoing packet use xsnprintf; this allows for > Andrew> bounds checking as the packet is being written. The chances of the > Andrew> outgoing packet overflowing are pretty slim, but using a bounded write > Andrew> seems better than not, so let's do that. > > I suppose for this to assert we'd have to have a packet that's smaller > than a register number and the register value. But I guess we > anticipate that this can't really happen? Or is pathological enough > that we don't care? You are correct that for the xsnprintf to fail we'd need an absolutely tiny packet buffer. I don't think we'd make it as far as sending a p packet in that case, things like qSupported would have gone wrong before we got here. But also, I'm switching to xsnprintf because it's better than just pushing content blindly into the buffer, so we really should check the return value, it doesn't cost much. I initially added something like: int res = xsnprintf (...); if (res < 0 && res >= get_remote_packet_size ()) error (_("...")); But then I started writing a comment, and the comment was along this lines of: this error will never trigger because .... And we already have a construct for use when something will never happen, gdb_assert. So then I changed the code to: int res = xsnprintf (...); gdb_assert (res > 0 && res < get_remote_packet_size ()); There's also a comment explaining why I used an assert rather than an if and error. > > Andrew> + /* Otherwise, parse the register value from the hex string. */ > Andrew> + struct gdbarch *gdbarch = regcache->arch (); > Andrew> + int reg_size = register_size (gdbarch, reg->regnum); > Andrew> + gdb_byte *regp = (gdb_byte *) alloca (reg_size); > > I would prefer it if we didn't add new calls to alloca to the tree. > I think alloca is bad and that generally we will not notice an extra > allocation. I switched this to gdb::byte_vector. Let me know what you think of the updated patch below. Thanks, Andrew --- commit c59492b533149b5ebe20bb0953f10a6179f8c266 Author: Andrew Burgess Date: Sun Nov 8 20:37:32 2026 +0000 gdb/remote: improve error checking for 'p' packet reply Improve the remote_target::fetch_register_using_p function (remote.c) in a couple of ways. When building the outgoing packet use xsnprintf; this allows for bounds checking as the packet is being written. The chances of the outgoing packet overflowing are pretty slim, but using a bounded write seems better than not, so let's do that. Next, when parsing the reply packet the result is written into a buffer which is the size of the register being fetched. Unfortunately the loop that reads the packet does not have any bounds checking, which allows for buffer overflow. Convert the manual loop which calls fromhex on each character to instead use hex2bin which allows a limit to be applied to the number of bytes parsed; this prevents buffer overflow. hex2bin returns the number of bytes parsed, which also allows me to check for cases where the remote fails to supply all of the expected bytes. For testing I made use of the gdbserver option --disable-packet=gG which I added in the previous commit. I ran the testsuite like this: make check-gdb RUNTESTFLAGS="--target_board=native-gdbserver \ GDBSERVER='/path/to/patched/gdbserver --disable-packet=gG'" I've also added a new test that makes use of the gdbreplay mechanism to adjust the size of the returned register. This allows testing of the two error cases: register value too short, and register value too long. As in the previous commit the trace related tests fail as the trace functionality depends on the 'g' packet being supported, but otherwise I saw no regressions after this commit. diff --git a/gdb/remote.c b/gdb/remote.c index c1560c28e6b..2d264168f59 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -9242,27 +9242,28 @@ int remote_target::fetch_register_using_p (struct regcache *regcache, packet_reg *reg) { - struct gdbarch *gdbarch = regcache->arch (); - struct remote_state *rs = get_remote_state (); - char *buf, *p; - gdb_byte *regp = (gdb_byte *) alloca (register_size (gdbarch, reg->regnum)); - int i; - if (m_features.packet_support (PACKET_p) == PACKET_DISABLE) return 0; if (reg->pnum == -1) return 0; - p = rs->buf.data (); - *p++ = 'p'; - p += hexnumstr (p, reg->pnum); - *p++ = '\0'; + /* Send the packet asking for the register. */ + struct remote_state *rs = get_remote_state (); + int res = xsnprintf (rs->buf.data (), get_remote_packet_size (), "p%s", + phex_nz (reg->pnum, 0)); + + /* For writing a string into a buffer xsnprintf isn't going to return an + error. Nor can this overflow, a 'p' followed by an int register number + will always fit. */ + gdb_assert (res > 0 && res < get_remote_packet_size ()); + putpkt (rs->buf); + + /* Read the reply. */ getpkt (&rs->buf); - buf = rs->buf.data (); - + /* Check the packet status. */ packet_result result = m_features.packet_ok (rs->buf, PACKET_p); switch (result.status ()) { @@ -9277,24 +9278,28 @@ remote_target::fetch_register_using_p (struct regcache *regcache, } /* If this register is unfetchable, tell the regcache. */ + char *buf = rs->buf.data (); if (buf[0] == 'x') { regcache->raw_supply (reg->regnum, NULL); return 1; } - /* Otherwise, parse and supply the value. */ - p = buf; - i = 0; - while (p[0] != 0) - { - if (p[1] == 0) - error (_("fetch_register_using_p: early buf termination")); + /* Otherwise, parse the register value from the hex string. */ + struct gdbarch *gdbarch = regcache->arch (); + int reg_size = register_size (gdbarch, reg->regnum); + gdb::byte_vector regp (reg_size); + int bytes_converted = hex2bin (buf, regp.data (), reg_size); - regp[i++] = fromhex (p[0]) * 16 + fromhex (p[1]); - p += 2; - } - regcache->raw_supply (reg->regnum, regp); + /* Check the whole packet was parsed, and that the packet length matches + the register size. */ + if (buf[bytes_converted * 2] != '\0' || bytes_converted != reg_size) + error (_("Remote 'p' packet reply for register %s is of unexpected " + "length (expected %d bytes): %s"), + gdbarch_register_name (gdbarch, reg->regnum), reg_size, buf); + + /* Supply the value to the register cache. */ + regcache->raw_supply (reg->regnum, regp.data ()); return 1; } diff --git a/gdb/testsuite/gdb.replay/p-packet.c b/gdb/testsuite/gdb.replay/p-packet.c new file mode 100644 index 00000000000..6a0e311ef41 --- /dev/null +++ b/gdb/testsuite/gdb.replay/p-packet.c @@ -0,0 +1,22 @@ +/* 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 . */ + +int +main (void) +{ + return 0; +} diff --git a/gdb/testsuite/gdb.replay/p-packet.exp b/gdb/testsuite/gdb.replay/p-packet.exp new file mode 100644 index 00000000000..f59fc13faa2 --- /dev/null +++ b/gdb/testsuite/gdb.replay/p-packet.exp @@ -0,0 +1,213 @@ +# 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 . */ + +# Test error handling for the 'p' packet. Start gdbserver with the g/G +# packets disabled. Start GDB, connect to the server, and then run 'info +# registers', this will make use of the 'p' packet. +# +# Update the recorded logfile to replace the reply to the first 'p' packet, +# the updated reply will be an invalid size. +# +# Replay the log and check that the 'info registers' gives a suitable error +# message. + +load_lib gdbserver-support.exp +load_lib gdbreplay-support.exp + +require allow_gdbserver_tests +require has_gdbreplay + +standard_testfile + +if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } { + return +} + +# Check that remote register 0 is a suitable size. The test could be +# updated to handle other register sizes, but for now handle 4 or 8 byte +# registers. +set reg_size 0 +gdb_test_multiple "maint print remote-registers" "" -lbl { + -re "\r\n\\S+\\s+$::decimal\\s+$::decimal\\s+$::decimal\\s+($::decimal)\\s+\[^\r\n\]+\\s+0\\s+0\\s*(?=\r\n)" { + set reg_size $expect_out(1,string) + exp_continue + } + + -re "\r\n$gdb_prompt $" { + pass $gdb_test_name + } +} + +if { $reg_size != 4 && $reg_size != 8 } { + unsupported "remote register 0 is an unsupported size" + return +} + +# Connect to gdbserver and run to a breakpoint in main, then use the 'info +# registers' command. Record the remotelogfile into the REMOTELOG log +# file. +proc_with_prefix record_initial_logfile { remotelog } { + # Make sure we're disconnected, in case we're testing with an + # extended-remote board, therefore already connected. + gdb_test "disconnect" ".*" + + gdb_test_no_output "set sysroot" \ + "setting sysroot before starting gdbserver" + + # Start gdbserver like: + # gdbserver :PORT .... + set res [gdbserver_start "--disable-packet=gG" $::binfile] + set gdbserver_protocol [lindex $res 0] + set gdbserver_gdbport [lindex $res 1] + + gdb_test_no_output "set remotelogfile $remotelog" \ + "setup remotelogfile" + + # Connect to gdbserver. + if {![gdb_target_cmd $gdbserver_protocol $gdbserver_gdbport] == 0} { + unsupported "couldn't start gdbserver" + return + } + + # If we're connecting as 'remote' then we can't use 'runto'. + gdb_breakpoint main + gdb_continue_to_breakpoint "continuing to main" + + gdb_test "info registers" ".*" +} + +# Connect to gdbreplay using the REMOTELOG log file. Runs to a breakpoint in +# main and then uses the 'info registers' command. +proc_with_prefix replay_without_error { remotelog } { + clean_restart $::testfile + + # Make sure we're disconnected, in case we're testing with an + # extended-remote board, therefore already connected. + gdb_test "disconnect" ".*" + + gdb_test_no_output "set sysroot" "setting sysroot" + + set res [gdbreplay_start $remotelog] + set gdbserver_protocol [lindex $res 0] + set gdbserver_gdbport [lindex $res 1] + + # Connect to gdbreplay. + if {![gdb_target_cmd $gdbserver_protocol $gdbserver_gdbport] == 0} { + unsupported "couldn't start gdbreplay" + return + } + + gdb_breakpoint main + gdb_continue_to_breakpoint "continue to main" + + gdb_test "info registers" ".*" +} + +# Connect to gdbreplay using the REMOTELOG log file. Runs to a breakpoint in +# main and then uses the 'info registers' command. Expect an error from the +# 'info registers' command, the error will include the VALUE string. +proc_with_prefix replay_with_error { remotelog value } { + clean_restart $::testfile + + # Make sure we're disconnected, in case we're testing with an + # extended-remote board, therefore already connected. + gdb_test "disconnect" ".*" + + gdb_test_no_output "set sysroot" "setting sysroot" + + set res [gdbreplay_start $remotelog] + set gdbserver_protocol [lindex $res 0] + set gdbserver_gdbport [lindex $res 1] + + # Connect to gdbreplay. + if {![gdb_target_cmd $gdbserver_protocol $gdbserver_gdbport] == 0} { + unsupported "couldn't start gdbreplay" + return + } + + gdb_breakpoint main + gdb_continue_to_breakpoint "continue to main" + + gdb_test "info registers" \ + "Remote 'p' packet reply for register \[^\r\n\]+ is of unexpected length \\(expected $::decimal bytes\\): $value" \ + "info registers gives an error" +} + +# Create a copy of file SRC into DST. While making the copy look for the +# 'info registers' command. After the 'info registers' GDB will send a 'p' +# packet, and the remote will send a reply. +# +# Rewrite the reply to the first 'p' packet, replacing the returned register +# value with NEW_VALUE. +proc create_modified_remote_logfile { src dst new_value } { + set dst_fd [open $dst w] + set src_fd [open $src r] + + # State machine: 'init' -> 'info regs' -> 'p pkt' -> 'done'. + # 'init' -- before we find the "info registers" command. + # 'info regs' -- after seeing the "info registers" command, before + # finding the outbound 'p' packet. + # 'p pkt' -- after seeing the outbound 'p' packet, looking for the reply + # line. + # 'done' -- after finding and modifying the reply to the first 'p' + # packet. + set state "init" + while { [gets $src_fd line] != -1 } { + if { $state eq "init" } { + if { $line eq "c info registers" } { + set state "info regs" + } + } elseif { $state eq "info regs" } { + if { [regexp "^w \\\$p\[0-9a-f\]+#" $line] } { + set state "p pkt" + } else { + set state "done" + } + } elseif { $state eq "p pkt" } { + if { [regexp "^r \\\$\[0-9a-f\]+.*#" $line] } { + set line "r \$${new_value}" + } + set state "done" + } + + puts $dst_fd $line + } + + close $src_fd + close $dst_fd +} + +# The replay log is placed in 'replay.log'. +set remotelog [standard_output_file replay.log] + +record_initial_logfile $remotelog +replay_without_error $remotelog + +# Create two modified logfiles. The first replaces a register with a 1 byte +# value. +set remotelog_short [standard_output_file replay-short.log] +set short_value_str 00 +create_modified_remote_logfile $remotelog $remotelog_short $short_value_str +with_test_prefix "with short register" { + replay_with_error $remotelog_short $short_value_str +} + +# The second replaces a register with a 10 byte value. +set remotelog_long [standard_output_file replay-long.log] +set long_value_str 00000000000000000000 +create_modified_remote_logfile $remotelog $remotelog_long $long_value_str +with_test_prefix "with long register" { + replay_with_error $remotelog_long $long_value_str +}