From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11763 invoked by alias); 21 Jun 2007 17:12:36 -0000 Received: (qmail 11748 invoked by uid 22791); 21 Jun 2007 17:12:34 -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; Thu, 21 Jun 2007 17:12:28 +0000 Received: from insanenotebook (e182126209.adsl.alicedsl.de [85.182.126.209]) by ww17.hb17.de (ww17.hb17.de) with ESMTP id 38E0A11501CE for ; Thu, 21 Jun 2007 19:12:24 +0200 (CEST) From: "Sascha Radike" To: Subject: Bug: Cannot set registers when stack frame is invalid - Quick fix ? Date: Thu, 21 Jun 2007 17:12:00 -0000 Message-ID: <000101c7b427$5822d330$02b2a8c0@insanenotebook> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 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/msg00174.txt.bz2 Hi, I know there have been discussions before. I wonder if there is a quick fix for the following problem: GDB refuses to set registers when there is no valid stack frame. Example: 1) Debugging an ARM target right after reset: The program counter is at 0 and all other registers contain random data. I can't set any register - neither CPSR nor any R.. register. 2) Debugging an ARM target within a function: When changig CPSR or PC, so the current stack frame will become invalid, I can no longer set registers. This is quite blocking sometimes. I can set the PC to an invalid value, but I can't change it back. It a bit hard to understand that setting registers depends on valid stack frames as the CPU registers are independent of stack frames (in the "real" world). And when there is not valid stack frame, I, of course, expect to still be able to set registers. I wonder if there is quick fix so GDB will simply set registers when there is no valid stack frame ? GDB Snapshot from around 26.5.2007. Thanks Sascha