From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15168 invoked by alias); 22 Jun 2007 10:51:55 -0000 Received: (qmail 15159 invoked by uid 22791); 22 Jun 2007 10:51:55 -0000 X-Spam-Check-By: sourceware.org Received: from hb17.de (HELO ww17.hb17.de) (80.190.209.47) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 22 Jun 2007 10:51:53 +0000 Received: from insanenotebook (e179161135.adsl.alicedsl.de [85.179.161.135]) by ww17.hb17.de (ww17.hb17.de) with ESMTP id D952C11502F4; Fri, 22 Jun 2007 12:51:49 +0200 (CEST) From: "Sascha Radike" To: "'Nick Roberts'" Cc: References: <000001c7b427$5822d330$02b2a8c0@insanenotebook><18042.56547.598273.973421@kahikatea.snap.net.nz><000301c7b493$5ca88a50$02b2a8c0@insanenotebook> <18043.30232.598149.954761@kahikatea.snap.net.nz> Subject: Re: BUG: MI reporting wrong attributes for casted variables Date: Fri, 22 Jun 2007 10:51:00 -0000 Message-ID: <000001c7b4bb$5873b310$02b2a8c0@insanenotebook> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <18043.30232.598149.954761@kahikatea.snap.net.nz> Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-06/txt/msg00191.txt.bz2 >Yes, but I still don't really understand when a user would try to change >the value of a cast of a variable. I would have thought that if you're >making the cast then you're intending just to watch it's value. In Eclipse CDT it is not always obvious which variables have been casted to a different type. So the user might assign a value and all he gets is a cryptic error message (cannot assign to variable object, or something like that). Anyway, I just made a change to the CDT code so type casted variables are no longer editable. This bug has low priority. Maybe the behavior of GDB can be changed in the future, so that only editable vars will have the "editable" attribute. Sascha