Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Ricard Wanderlof <ricard.wanderlof@axis.com>
To: <gdb-patches@sourceware.org>
Subject: [PATCH] Fix CRISv32 compilation
Date: Fri, 30 Aug 2013 13:13:00 -0000	[thread overview]
Message-ID: <alpine.DEB.2.00.1308301512140.10770@lnxricardw.se.axis.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1356 bytes --]


The following patch fixes gdbserver compilation for CRISv32. I've done
a quick test that the resulting gdbserver can be used to do at least
rudimentary debugging.

Patch included inline for review and as attachement for use.


Signed-off-by: Ricard Wanderlof <ricardw@axis.com>


2013-08-30  Ricard Wanderlof  <ricardw@axis.com>

gdbserver

   	* linux-crisv32-low.c: Fix compilation errors.


diff --git a/gdb/gdbserver/linux-crisv32-low.c b/gdb/gdbserver/linux-crisv32-low.c
index efe50a7..2849d02 100644
--- a/gdb/gdbserver/linux-crisv32-low.c
+++ b/gdb/gdbserver/linux-crisv32-low.c
@@ -369,8 +369,6 @@ cris_arch_setup (void)
      current_process ()->tdesc = tdesc_crisv32;
    }

-typedef unsigned long elf_gregset_t[cris_num_regs];
-
    static struct regset_info cris_regsets[] = {
      { PTRACE_GETREGS, PTRACE_SETREGS, 0, cris_num_regs * 4,
        GENERAL_REGS, cris_fill_gregset, cris_store_gregset },
@@ -426,7 +424,7 @@ struct linux_target_ops the_low_target = {
    void
    initialize_low_arch (void)
    {
-  init_register_crisv32 ();
+  init_registers_crisv32 ();

      initialize_regsets_info (&cris_regsets_info);
    }


/Ricard
-- 
Ricard Wolf Wanderlöf                           ricardw(at)axis.com
Axis Communications AB, Lund, Sweden            www.axis.com
Phone +46 46 272 2016                           Fax +46 46 13 61 30

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch file.patch --]
[-- Type: text/x-diff; name="cris-head-compilation.patch", Size: 742 bytes --]

diff --git a/gdb/gdbserver/linux-crisv32-low.c b/gdb/gdbserver/linux-crisv32-low.c
index efe50a7..2849d02 100644
--- a/gdb/gdbserver/linux-crisv32-low.c
+++ b/gdb/gdbserver/linux-crisv32-low.c
@@ -369,8 +369,6 @@ cris_arch_setup (void)
   current_process ()->tdesc = tdesc_crisv32;
 }
 
-typedef unsigned long elf_gregset_t[cris_num_regs];
-
 static struct regset_info cris_regsets[] = {
   { PTRACE_GETREGS, PTRACE_SETREGS, 0, cris_num_regs * 4,
     GENERAL_REGS, cris_fill_gregset, cris_store_gregset },
@@ -426,7 +424,7 @@ struct linux_target_ops the_low_target = {
 void
 initialize_low_arch (void)
 {
-  init_register_crisv32 ();
+  init_registers_crisv32 ();
 
   initialize_regsets_info (&cris_regsets_info);
 }

             reply	other threads:[~2013-08-30 13:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-30 13:13 Ricard Wanderlof [this message]
2013-09-02 17:29 ` Pedro Alves
     [not found]   ` <alpine.DEB.2.00.1309030857010.10770@lnxricardw.se.axis.com>
2013-09-03 12:03     ` Pedro Alves
2013-09-03 14:23       ` Ricard Wanderlof
2013-09-06  8:09   ` Ricard Wanderlof
2013-08-30 13:30 Ricard Wanderlof

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=alpine.DEB.2.00.1308301512140.10770@lnxricardw.se.axis.com \
    --to=ricard.wanderlof@axis.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