From: Anton Kolesov <Anton.Kolesov@synopsys.com>
To: gdb-patches@sourceware.org
Cc: Anton Kolesov <Anton.Kolesov@synopsys.com>,
Francois Bedard <Francois.Bedard@synopsys.com>
Subject: [PATCH 1/3] arc: Add a gdbarch_tdep structure
Date: Fri, 07 Oct 2016 12:38:00 -0000 [thread overview]
Message-ID: <1475843870-11449-1-git-send-email-Anton.Kolesov@synopsys.com> (raw)
Add target-specific structure gdbarch_tdep for ARC.
gdb/ChangeLog:
* arc-tdep.h: Define gdbarch_tdep.
* arc-tdep.c (arc_gdbarch_init): Allocate gdbarch_tdep.
---
gdb/arc-tdep.c | 5 ++++-
gdb/arc-tdep.h | 6 ++++++
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/gdb/arc-tdep.c b/gdb/arc-tdep.c
index 60a4e04..58de8e9 100644
--- a/gdb/arc-tdep.c
+++ b/gdb/arc-tdep.c
@@ -1159,7 +1159,10 @@ arc_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
if (!arc_tdesc_init (info, &tdesc, &tdesc_data))
return NULL;
- struct gdbarch *gdbarch = gdbarch_alloc (&info, NULL);
+ /* Allocate the ARC-private target-dependent information structure, and the
+ GDB target-independent information structure. */
+ struct gdbarch_tdep *tdep = XCNEW (struct gdbarch_tdep);
+ struct gdbarch *gdbarch = gdbarch_alloc (&info, tdep);
/* Data types. */
set_gdbarch_short_bit (gdbarch, 16);
diff --git a/gdb/arc-tdep.h b/gdb/arc-tdep.h
index 1b2694b..ea34b9e 100644
--- a/gdb/arc-tdep.h
+++ b/gdb/arc-tdep.h
@@ -77,6 +77,12 @@ enum arc_regnum
extern int arc_debug;
+/* Target-dependent information. */
+
+struct gdbarch_tdep
+{
+};
+
/* Utility functions used by other ARC-specific modules. */
static inline int
--
2.8.1
next reply other threads:[~2016-10-07 12:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-07 12:38 Anton Kolesov [this message]
2016-10-07 12:38 ` [PATCH 3/3] arc: Add support for Newlib Anton Kolesov
2016-10-11 14:14 ` Yao Qi
2016-10-11 15:36 ` Anton Kolesov
2016-10-11 16:25 ` Yao Qi
2016-10-12 11:57 ` Anton Kolesov
2016-10-07 12:38 ` [PATCH 2/3] arc: Add evaluation of long jump targets Anton Kolesov
2016-10-11 16:22 ` Yao Qi
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=1475843870-11449-1-git-send-email-Anton.Kolesov@synopsys.com \
--to=anton.kolesov@synopsys.com \
--cc=Francois.Bedard@synopsys.com \
--cc=gdb-patches@sourceware.org \
/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