From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28511 invoked by alias); 28 Dec 2010 11:04:16 -0000 Received: (qmail 28503 invoked by uid 22791); 28 Dec 2010 11:04:15 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 28 Dec 2010 11:04:10 +0000 Received: (qmail 27149 invoked from network); 28 Dec 2010 11:04:09 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 28 Dec 2010 11:04:09 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Re: [PATCH 7/8] ia64-hpux: unwinding bsp value from system call Date: Tue, 28 Dec 2010 11:35:00 -0000 User-Agent: KMail/1.13.5 (Linux/2.6.33-29-realtime; KDE/4.4.5; x86_64; ; ) Cc: Joel Brobecker References: <1293511386-7384-1-git-send-email-brobecker@adacore.com> <1293511386-7384-8-git-send-email-brobecker@adacore.com> In-Reply-To: <1293511386-7384-8-git-send-email-brobecker@adacore.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201012281104.06493.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-12/txt/msg00504.txt.bz2 On Tuesday 28 December 2010 04:43:05, Joel Brobecker wrote: > 1. Figuring out that we are stopped inside a syscal: This requires > a ttrace call, which is not directly possible from ia64-tdep.c. > So we get the info using a target-read of a TARGET_OBJECT_OSDATA > object (with the annex set to "ia64.hpux.in_syscall"). BZZT. Don't do that. The return of a TARGET_OBJECT_OSDATA request should be a table that follows the gdb/features/osdata.dtd dtd. It is meant as data to be fed into the "info os" command (and a non-submitted -info-os MI command). You need to come up with a new target object. -- Pedro Alves