From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11759 invoked by alias); 21 Jun 2007 17:12:35 -0000 Received: (qmail 11742 invoked by uid 22791); 21 Jun 2007 17:12:33 -0000 X-Spam-Check-By: sourceware.org Received: from mail.gmx.net (HELO mail.gmx.net) (213.165.64.20) by sourceware.org (qpsmtpd/0.31) with SMTP; Thu, 21 Jun 2007 17:12:28 +0000 Received: (qmail invoked by alias); 21 Jun 2007 17:12:24 -0000 Received: from e182126209.adsl.alicedsl.de (EHLO insanenotebook) [85.182.126.209] by mail.gmx.net (mp053) with SMTP; 21 Jun 2007 19:12:24 +0200 X-Authenticated: #748753 From: "Srrr" To: Subject: BUG: MI reporting wrong attributes for casted variables Date: Thu, 21 Jun 2007 17:12:00 -0000 Message-ID: <000001c7b427$5822d330$02b2a8c0@insanenotebook> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-Y-GMX-Trusted: 0 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/msg00173.txt.bz2 Assume a variable like unsigned int myValue; It is possible to create a casted MI variable like 1096-var-create - * (int)myValue 1096^done,name="var4",numchild="0",value="0",type="int" GDB reports this to be an editable variable: 1097-var-show-attributes var4 1097^done,attr="editable" But in fact, it is not. GDB does not allow assiging values to casted variables. So GDB should not report this to be editable. 1100-var-assign var4 1 1100^error,msg="mi_cmd_var_assign: Could not assign expression to varible object" This bug is causing trouble in Eclipse CDT because casted vars show up as editable when they are not. GDB Snapshot from around 26.5.2007. Sascha