From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by sourceware.org (Postfix) with ESMTPS id 37A353857B98 for ; Sat, 2 Nov 2024 02:56:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 37A353857B98 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 37A353857B98 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::431 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730516213; cv=none; b=slw4yqMo6/XuUiuxAv1XgflG2iQ75aEGQB+qvWaatHuSmLicKBet+mu91baV1RO2MdHqzKLf09ASO+NxvTBH14HXajFfFxmsPFAshcfHJVwDwL8UX0K6D+HyMO3qC6QjCANHZtLMrd/T6u7e6AtMUZOZg82WVoHR53ObI76G/s0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730516213; c=relaxed/simple; bh=2+GTJ+aHCcySfy03FIwn7Q4juZV5AptkC4LNjaY6pQQ=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=PmBh/mdTzRMSsFsKZo9t194TXJfZVMYfR0qPksazmrpQ0p03mG/Oq5jvFnQYkcTz7usTueqMc15cFRPlu4kKAW13GDRxdmzmOkniH/2nM1Td3VlmmuQLCU+tBTTCPbPfLNRjUgBUOXpdtdziOpyVc21XVx2Hf2VWcKxVC+IDeXM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-72061bfec2dso2281073b3a.2 for ; Fri, 01 Nov 2024 19:56:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1730516208; x=1731121008; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=+5/JIjjk3fjKXdNt7jCgPnHuRRfHZJz4B273m5YwTKs=; b=D3Lsjl9E2SWuwL2EPW+OahyQ1eBVGHEbgehEHxUsqj+DIz9pjSQfgNovxDNYb5moix wCf5iM27OllUJRG8ttyfMhI+pus2iqk7XwQRndwZ2tfoafhoyzfgpT7midRtIZShIqRV 5n+JNfRd7a3Z4RvW6LfAyS2eH+vZR3Hj5plL4cSSqat+NMPlPLELNDJyNhkvP0mGL1dp DSRm/KCaEzrFQgcVdFxWOOm/bJPetBpYDAjOWGvM/ccWqMUFTAZKXWOkvDkcTp9uASA0 qjQKmzTqwEySuBwZ/Ueg8HImTcpBaC6tDByqP5WjEeB7/VQBKQFgA0Td9iTuOPmZn1YM f2cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730516208; x=1731121008; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+5/JIjjk3fjKXdNt7jCgPnHuRRfHZJz4B273m5YwTKs=; b=S7Dh9HcM8PKJRCRFY+oB9Ds/q29r1/CXmV0FRFE0i13QyFYAx5Su+JSbyNQGmdJq9D N19KWHQ1PdRab94Oqz+R8dZcyCtGMKf3yFvEEUy7GFL2n5zC7L534LAdvLEjzLRT1EMa lIPkSG+sg4oDo73eWsVdJ333c31BoVa04kSG3+DdjW4rIT2wEBMKuJo2ApvEwSlO4HSs ZTmfOk83qvfq2T6SlV6h3HotYjkjR7r+ICp3MvwIXcXbe7WcxsV4qLzzIeSRPsFOcpRS DDF8XA/7SlZMbuwBA/nabOlNUkF9lMUDSUicWaxw7Xbore9arXIx7eiRWkYoGaX3U0+p ZEJQ== X-Gm-Message-State: AOJu0YxuQaH/gK2AfK7piGbW14TGt4FQuNF4V26mnGwuqh7UoFeOQhzt o69NcO/UtriZd9Xh/Rl3YHFfg2t0NlzMNQNJFCUDYOJFJyNj8AAiDmP2SJnvzd9pJ0faZZy/Kqx b X-Google-Smtp-Source: AGHT+IFe+zATY3SHfnpXeHj1DrtlV8YT66VmE0SaNrNe0KYafidDBEhe51AAeyGl81ztGrVgtiRf7A== X-Received: by 2002:a05:6a21:e92:b0:1cf:6c86:231c with SMTP id adf61e73a8af0-1dba532816fmr7415234637.26.1730516208174; Fri, 01 Nov 2024 19:56:48 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8470:f214:b4dc:314a:c1ee]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7ee4606c58bsm2543485a12.19.2024.11.01.19.56.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Nov 2024 19:56:47 -0700 (PDT) From: Thiago Jung Bauermann To: gdb-patches@sourceware.org Subject: [RFC PATCH v4 03/15] GDB: remote: Print total bytes received in debug message Date: Fri, 1 Nov 2024 23:56:23 -0300 Message-ID: <20241102025635.586759-4-thiago.bauermann@linaro.org> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20241102025635.586759-1-thiago.bauermann@linaro.org> References: <20241102025635.586759-1-thiago.bauermann@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: This is useful information I missed while debugging issues with the g packet reply. --- gdb/remote.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/remote.c b/gdb/remote.c index b65a1c3094ae..6ffc51e4e2f5 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -10484,8 +10484,8 @@ remote_target::getpkt (gdb::char_vector *buf, bool forever, bool *is_notif) if (val > max_chars) remote_debug_printf_nofunc - ("Packet received: %s [%d bytes omitted]", str.c_str (), - val - max_chars); + ("Packet received: %s [%d bytes omitted, %d bytes total]", str.c_str (), + val - max_chars, val); else remote_debug_printf_nofunc ("Packet received: %s", str.c_str ());