From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16199 invoked by alias); 12 Mar 2013 15:25:30 -0000 Received: (qmail 16190 invoked by uid 22791); 12 Mar 2013 15:25:29 -0000 X-SWARE-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-oa0-f50.google.com (HELO mail-oa0-f50.google.com) (209.85.219.50) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 12 Mar 2013 15:25:23 +0000 Received: by mail-oa0-f50.google.com with SMTP id l20so5776646oag.23 for ; Tue, 12 Mar 2013 08:25:22 -0700 (PDT) X-Received: by 10.60.18.136 with SMTP id w8mr12735908oed.84.1363101922622; Tue, 12 Mar 2013 08:25:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.60.60.7 with HTTP; Tue, 12 Mar 2013 08:24:42 -0700 (PDT) In-Reply-To: <87txogir7j.fsf@fleche.redhat.com> References: <513DDE2C.9080109@codesourcery.com> <87r4jmngr5.fsf@fleche.redhat.com> <87k3penfy3.fsf@fleche.redhat.com> <87y5dsityl.fsf@fleche.redhat.com> <513F4028.5090000@mentor.com> <87txogir7j.fsf@fleche.redhat.com> From: Hui Zhu Date: Tue, 12 Mar 2013 15:25:00 -0000 Message-ID: Subject: Re: [PATCH] Fix agent code generate bug of ref To: Tom Tromey Cc: Hui Zhu , Yao Qi , gdb-patches ml , Joel Brobecker Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes 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 X-SW-Source: 2013-03/txt/msg00520.txt.bz2 On Tue, Mar 12, 2013 at 11:16 PM, Tom Tromey wrote: >>>>>> "Hui" == Hui Zhu writes: > > Hui> According to the discussion with Tom in IRC. > Hui> I add a check before call access_memory. > Hui> + if (size != 1 && size != 2 && size != 4 && size != 8) > Hui> + error (_("Refn doesn't support size %d"), > Hui> + size * TARGET_CHAR_BIT); > > The old error message mentioned the actual opcode name. > I think "Refn" is less clear, since it isn't the name of anything > in DWARF. > > Tom What about change it to "DW_OP_deref and DW_OP_deref_size"? Thanks, Hui