From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17449 invoked by alias); 10 Feb 2012 13:23:12 -0000 Received: (qmail 17439 invoked by uid 22791); 10 Feb 2012 13:23:10 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,TW_NV X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 10 Feb 2012 13:22:57 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 1A744290009; Fri, 10 Feb 2012 14:22:57 +0100 (CET) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tf6J9rNOekwh; Fri, 10 Feb 2012 14:22:57 +0100 (CET) Received: from ulanbator.act-europe.fr (ulanbator.act-europe.fr [10.10.1.67]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id 0749F290001; Fri, 10 Feb 2012 14:22:57 +0100 (CET) Subject: RFA: New port: ia64-hp-openvms (2/3) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=us-ascii From: Tristan Gingold In-Reply-To: <6AD2487F-8409-4F4E-93A6-9DB7FD195E71@adacore.com> Date: Fri, 10 Feb 2012 13:23:00 -0000 Cc: Rupp Douglas Content-Transfer-Encoding: quoted-printable Message-Id: References: <6AD2487F-8409-4F4E-93A6-9DB7FD195E71@adacore.com> To: "gdb-patches@sourceware.org ml" 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: 2012-02/txt/msg00180.txt.bz2 The easiest way to get the unwind entry is to ask to the OpenVMS kernel, as= this always work. Might not be optimal for the user application, but it is bullet-proof. Tristan. 2012-02-10 Tristan Gingold * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB. * remote.c (PACKET_qXfer_uib): New enum value. (remote_protocol_features): Add entry for PACKET_qXfer_uib. (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB. diff --git a/gdb/remote.c b/gdb/remote.c index 3187ac0..7787864 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -1250,6 +1250,7 @@ enum { PACKET_qXfer_threads, PACKET_qXfer_statictrace_read, PACKET_qXfer_traceframe_info, + PACKET_qXfer_uib, PACKET_qGetTIBAddr, PACKET_qGetTLSAddr, PACKET_qSupported, @@ -3830,6 +3831,8 @@ static struct protocol_feature remote_protocol_featur= es[] =3D { remote_enable_disable_tracepoint_feature, -1 }, { "qXfer:fdpic:read", PACKET_DISABLE, remote_supported_packet, PACKET_qXfer_fdpic }, + { "qXfer:uib:read", PACKET_DISABLE, remote_supported_packet, + PACKET_qXfer_uib }, { "QDisableRandomization", PACKET_DISABLE, remote_supported_packet, PACKET_QDisableRandomization }, { "tracenz", PACKET_DISABLE, @@ -8417,6 +8420,12 @@ remote_xfer_partial (struct target_ops *ops, enum ta= rget_object object, case TARGET_OBJECT_FDPIC: return remote_read_qxfer (ops, "fdpic", annex, readbuf, offset, len, &remote_protocol_packets[PACKET_qXfer_fdpic]); + + case TARGET_OBJECT_OPENVMS_UIB: + return remote_read_qxfer + (ops, "uib", annex, readbuf, offset, len, + &remote_protocol_packets[PACKET_qXfer_uib]); + default: return -1; } diff --git a/gdb/target.h b/gdb/target.h index d4605ae..5f642be 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -280,7 +280,9 @@ enum target_object /* Load maps for FDPIC systems. */ TARGET_OBJECT_FDPIC, /* Darwin dynamic linker info data. */ - TARGET_OBJECT_DARWIN_DYLD_INFO + TARGET_OBJECT_DARWIN_DYLD_INFO, + /* OpenVMS Unwind Information Block. */ + TARGET_OBJECT_OPENVMS_UIB /* Possible future objects: TARGET_OBJECT_FILE, ... */ }; =20