From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24435 invoked by alias); 30 Oct 2007 07:38:01 -0000 Received: (qmail 24418 invoked by uid 71); 30 Oct 2007 07:38:01 -0000 Resent-Date: 30 Oct 2007 07:38:01 -0000 Resent-Message-ID: <20071030073801.24417.qmail@sourceware.org> Resent-From: gdb-gnats@sources.redhat.com (GNATS Filer) Resent-To: nobody@sources.redhat.com Resent-Cc: gdb-prs@sources.redhat.com Resent-Reply-To: gdb-gnats@sources.redhat.com, chrisj@rtems.org Received: (qmail 20526 invoked by uid 48); 30 Oct 2007 07:29:21 -0000 Message-Id: <20071030072921.20519.qmail@sourceware.org> Date: Tue, 30 Oct 2007 07:38:00 -0000 From: chrisj@rtems.org Reply-To: chrisj@rtems.org To: gdb-gnats@sources.redhat.com X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: gdb/2351: gdbarch_dump core dumps. Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2007-q4/txt/msg00093.txt.bz2 >Number: 2351 >Category: gdb >Synopsis: gdbarch_dump core dumps. >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: change-request >Submitter-Id: net >Arrival-Date: Tue Oct 30 07:38:01 UTC 2007 >Closed-Date: >Last-Modified: >Originator: Chris Johns >Release: 6.7 >Organization: >Environment: --target=m68k-rtems4.8 >Description: gdbarch_dump uses paddr_nz and this function needs the global current_gdbarch set. The call gdbarch_dump can be made when creating a new arch and so current_gdbarch is NULL. This results in a core dump. >How-To-Repeat: Have a remote target create a new target with 'set debug arch 1'. >Fix: >Release-Note: >Audit-Trail: >Unformatted: