From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14748 invoked by alias); 12 Feb 2012 09:39:45 -0000 Received: (qmail 14740 invoked by uid 22791); 12 Feb 2012 09:39:45 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,TW_NV,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO glazunov.sibelius.xs4all.nl) (83.163.83.176) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 12 Feb 2012 09:39:22 +0000 Received: from glazunov.sibelius.xs4all.nl (kettenis@localhost [127.0.0.1]) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3) with ESMTP id q1C9d63E014312; Sun, 12 Feb 2012 10:39:06 +0100 (CET) Received: (from kettenis@localhost) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3/Submit) id q1C9d4bf001627; Sun, 12 Feb 2012 10:39:04 +0100 (CET) Date: Sun, 12 Feb 2012 09:39:00 -0000 Message-Id: <201202120939.q1C9d4bf001627@glazunov.sibelius.xs4all.nl> From: Mark Kettenis To: gingold@adacore.com CC: gdb-patches@sourceware.org, rupp@adacore.com In-reply-to: (message from Tristan Gingold on Fri, 10 Feb 2012 14:22:56 +0100) Subject: Re: RFA: New port: ia64-hp-openvms (2/3) References: <6AD2487F-8409-4F4E-93A6-9DB7FD195E71@adacore.com> 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/msg00229.txt.bz2 > From: Tristan Gingold > Date: Fri, 10 Feb 2012 14:22:56 +0100 > > 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. Don't know much about (Open)VMS, but... > diff --git a/gdb/remote.c b/gdb/remote.c > index 3187ac0..7787864 100644 > --- a/gdb/remote.c > +++ b/gdb/remote.c > @@ -8417,6 +8420,12 @@ remote_xfer_partial (struct target_ops *ops, enum target_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]); > + Formatting here is different from the TARGET_OBJECT_FDPIC bit just before.