Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Michael Eager <eager@eagercon.com>
To: Pierre Muller <muller@ics.u-strasbg.fr>
Cc: 'Joel Brobecker' <brobecker@adacore.com>, gdb-patches@sourceware.org
Subject: Re: Build-failure from [PATCH] Support for Xilinx MicroBlaze
Date: Fri, 16 Oct 2009 15:56:00 -0000	[thread overview]
Message-ID: <4AD8978D.9080305@eagercon.com> (raw)
In-Reply-To: <001501ca4e35$a9392c10$fbab8430$@u-strasbg.fr>

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

Pierre Muller wrote:
>   Linux vadmin 2.6.28-15-server #52-Ubuntu SMP Wed Sep 9 11:50:50 UTC 2009 i686 GNU/Linux
> gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3
> 
>   configured with --enable-targets=all
> I get this new build failure:

This should fix the build errors for --target=microblaze-xilinx-linux.

2009-10-16  Michael Eager  <eager@eagercon.com>

	* microblaze-linux-tdep.c:
	microblaze_linux_memory_remove_breakpoint(): Add gdbarch to param,
	replace frame_pc_unwind with get_frame_address_in_block.
	* microblaze-tdep.c: Remove MICROBLAZE_REGISTER_SIZE.
	* microblaze-tdep.h: Add MICROBLAZE_REGISTER_SIZE.

-- 
Michael Eager	 eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077

[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 2456 bytes --]

Index: microblaze-linux-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/microblaze-linux-tdep.c,v
retrieving revision 1.1
diff -u -p -r1.1 microblaze-linux-tdep.c
--- microblaze-linux-tdep.c	15 Oct 2009 19:28:52 -0000	1.1
+++ microblaze-linux-tdep.c	16 Oct 2009 15:48:14 -0000
@@ -38,7 +38,8 @@
 
 
 static int
-microblaze_linux_memory_remove_breakpoint (struct bp_target_info *bp_tgt)
+microblaze_linux_memory_remove_breakpoint (struct gdbarch *gdbarch, 
+					   struct bp_target_info *bp_tgt)
 {
   CORE_ADDR addr = bp_tgt->placed_address;
   const gdb_byte *bp;
@@ -74,8 +75,8 @@ microblaze_linux_sigtramp_cache (struct 
   struct gdbarch *gdbarch = get_frame_arch (next_frame);
   struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
 
-  base = frame_unwind_register_unsigned (next_frame, SP_REGNUM);
-  if (bias > 0 && frame_pc_unwind (next_frame) != func)
+  base = frame_unwind_register_unsigned (next_frame, MICROBLAZE_SP_REGNUM);
+  if (bias > 0 && get_frame_address_in_block (next_frame) != func)
     /* See below, some signal trampolines increment the stack as their
        first instruction, need to compensate for that.  */
     base -= bias;
Index: microblaze-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/microblaze-tdep.c,v
retrieving revision 1.1
diff -u -p -r1.1 microblaze-tdep.c
--- microblaze-tdep.c	15 Oct 2009 19:28:52 -0000	1.1
+++ microblaze-tdep.c	16 Oct 2009 15:48:15 -0000
@@ -63,9 +63,6 @@
 #define IS_SAVE_HIDDEN_PTR(op, rd, ra, rb) \
 	((op == add || op == addik) && ra == MICROBLAZE_FIRST_ARGREG && rb == 0)
 
-/* All registers are 32 bits.  */
-#define MICROBLAZE_REGISTER_SIZE 4
-
 /* The registers of the Xilinx microblaze processor.  */
 
 static const char *microblaze_register_names[] =
Index: microblaze-tdep.h
===================================================================
RCS file: /cvs/src/src/gdb/microblaze-tdep.h,v
retrieving revision 1.1
diff -u -p -r1.1 microblaze-tdep.h
--- microblaze-tdep.h	15 Oct 2009 19:28:52 -0000	1.1
+++ microblaze-tdep.h	16 Oct 2009 15:48:15 -0000
@@ -110,6 +110,9 @@ enum microblaze_regnum 
   MICROBLAZE_RTLBHI_REGNUM
 };
 
+/* All registers are 32 bits.  */
+#define MICROBLAZE_REGISTER_SIZE 4
+
 /* MICROBLAZE_BREAKPOINT defines the breakpoint that should be used.
    Only used for native debugging.  */
 #define MICROBLAZE_BREAKPOINT {0xb9, 0xcc, 0x00, 0x60}

  reply	other threads:[~2009-10-16 15:56 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-15 16:32 Michael Eager
2009-10-15 16:44 ` Tom Tromey
2009-10-15 16:47   ` Joel Brobecker
2009-10-15 18:00     ` Tom Tromey
2009-10-15 18:04       ` Tom Tromey
2009-10-15 18:31         ` Joel Brobecker
2009-10-16 12:53         ` Daniel Jacobowitz
2009-10-16 16:14           ` Michael Eager
2009-10-15 17:12   ` Michael Eager
2009-10-15 17:18     ` Joel Brobecker
2009-10-15 18:06       ` Michael Eager
2009-10-15 16:46 ` Joel Brobecker
2009-10-15 17:14   ` Michael Eager
2009-10-15 19:31   ` Michael Eager
2009-10-16  7:53     ` Build-failure from " Pierre Muller
2009-10-16 15:56       ` Michael Eager [this message]
2009-10-16 16:11         ` Pierre Muller
2009-10-16 16:35         ` Joel Brobecker
2009-10-16 23:21           ` Michael Eager

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=4AD8978D.9080305@eagercon.com \
    --to=eager@eagercon.com \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=muller@ics.u-strasbg.fr \
    /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