From: Tristan Gingold <gingold@adacore.com>
To: "gdb-patches@sourceware.org ml" <gdb-patches@sourceware.org>
Cc: Rupp Douglas <rupp@adacore.com>
Subject: RFA: New port: ia64-hp-openvms (2/3)
Date: Fri, 10 Feb 2012 13:23:00 -0000 [thread overview]
Message-ID: <B4F017B1-7F3A-4483-939F-DE91D5836D17@adacore.com> (raw)
In-Reply-To: <6AD2487F-8409-4F4E-93A6-9DB7FD195E71@adacore.com>
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 <gingold@adacore.com>
* 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_features[] = {
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 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]);
+
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, ... */
};
next prev parent reply other threads:[~2012-02-10 13:23 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-10 13:07 RFA: New port: ia64-hp-openvms (0/3) Tristan Gingold
2012-02-10 13:21 ` RFA: New port: ia64-hp-openvms (1/3) - new osabi Tristan Gingold
2012-02-10 13:27 ` RFA: New port: ia64-hp-openvms (3/3) - ia64-vms-tdep.c Tristan Gingold
2012-02-14 17:50 ` Pedro Alves
2012-02-15 9:14 ` Tristan Gingold
2012-02-15 12:57 ` Pedro Alves
2012-02-21 16:23 ` Tristan Gingold
2012-02-22 19:39 ` Pedro Alves
2012-02-22 19:53 ` Douglas Rupp
2012-02-24 14:17 ` Tristan Gingold
2012-02-24 14:16 ` Tristan Gingold
2012-02-24 14:29 ` Pedro Alves
2012-03-05 11:58 ` Tristan Gingold
2012-02-12 9:36 ` RFA: New port: ia64-hp-openvms (1/3) - new osabi Mark Kettenis
2012-02-10 13:23 ` Tristan Gingold [this message]
2012-02-12 9:39 ` RFA: New port: ia64-hp-openvms (2/3) Mark Kettenis
2012-02-13 8:45 ` Tristan Gingold
2012-02-14 17:36 ` Pedro Alves
2012-02-14 17:40 ` Pedro Alves
2012-02-21 16:08 ` RFA: New port: ia64-hp-openvms (2/3) - v2 Tristan Gingold
2012-02-22 19:41 ` Pedro Alves
2012-02-10 13:44 ` RFA: New port: ia64-hp-openvms - the stub Tristan Gingold
2012-02-10 19:06 ` Douglas Rupp
2012-02-13 8:43 ` Tristan Gingold
2012-02-14 18:09 ` Pedro Alves
2012-02-21 17:08 ` Tristan Gingold
2012-02-22 20:25 ` Pedro Alves
2012-02-24 9:24 ` Tristan Gingold
2012-02-24 11:06 ` Pedro Alves
2012-02-24 11:24 ` Tristan Gingold
2012-02-24 12:17 ` Pedro Alves
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=B4F017B1-7F3A-4483-939F-DE91D5836D17@adacore.com \
--to=gingold@adacore.com \
--cc=gdb-patches@sourceware.org \
--cc=rupp@adacore.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox