From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22226 invoked by alias); 17 Nov 2014 10:25:25 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 22213 invoked by uid 89); 17 Nov 2014 10:25:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Mon, 17 Nov 2014 10:25:24 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 8D87C116555; Mon, 17 Nov 2014 05:25:22 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id aa0QwaxDwypB; Mon, 17 Nov 2014 05:25:22 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 2650D116554; Mon, 17 Nov 2014 05:25:22 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 52C4D40F79; Mon, 17 Nov 2014 14:25:18 +0400 (RET) Date: Mon, 17 Nov 2014 10:25:00 -0000 From: Joel Brobecker To: Hui Zhu Cc: Doug Evans , gdb-patches ml Subject: Re: [PATCH] Add gdbarch_sizeof_g_packet to "struct remote_arch_state" to handle the issue that get error "Remote 'g' packet reply is too long" with qemu-system-x86_64 Message-ID: <20141117102518.GL5774@adacore.com> References: <1409238683-17886-1-git-send-email-teawater@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2014-11/txt/msg00401.txt.bz2 > Will GDB be hurted if it support bigger size? Maybe GDB can output a > warning like "the size that you use is bigger than xxxxxx", And keep > work. > But not just tell the user "your target is cheater. It changed the > size. I hate that. I will not work with it." > GDB is a debugger but not a judge, right? Yes, GDB will be hurt if we try applying bandaids for issues we don't understand. One bandaid doesn't seem like much, but they accumulate over time, and make long-term maintenance a lot harder. We need to understand what is going on before we can determine whether the fix you are proposing is the best approach. -- Joel