From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24091 invoked by alias); 16 Apr 2003 03:17:47 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 24082 invoked from network); 16 Apr 2003 03:17:47 -0000 Received: from unknown (HELO localhost.redhat.com) (24.157.166.107) by sources.redhat.com with SMTP; 16 Apr 2003 03:17:47 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id D06F52B2F; Tue, 15 Apr 2003 23:17:36 -0400 (EDT) Message-ID: <3E9CCB50.5000908@redhat.com> Date: Wed, 16 Apr 2003 03:17:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andrew Cagney Cc: Elena Zannoni , "J. Johnston" , gdb@sources.redhat.com Subject: Re: prev_pc problem on ia64 References: <3E973FEB.1090500@redhat.com> <16027.6227.694651.833559@localhost.redhat.com> <3E9C8262.8070401@redhat.com> <3E9C9E1B.4040400@redhat.com> <16028.46200.713351.766037@localhost.redhat.com> <3E9CB85B.5000308@redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-04/txt/msg00148.txt.bz2 >> >> > I tried to use target_has_execution but that did not work. The error >> > I get is that the process does not exist. The read_pc() routine for the ia64 is doing >> > a read_register_pid() and it appears that the inferior_ptid is not set up >> > at a time when target_has_execution is set to true. >> >> target_has_execution doesn't mean that the target is executing. It is >> a total misnomer to indicate that the gdb target stratum is capable of >> execution. I think what you want is target_has_registers. > Arrrgh! That problem, core file's also has registers ... so right theory, I've no idea on which thing to use in the test though. Hmm, ... but at least target_has_registers should only be true when the target really does have the registers available. I guess try it. Andrew