Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: gdb/microblaze-tdep.c

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/microblaze-tdep.h ('k') | gdb/mingw-hdep.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/microblaze-tdep.c
diff --git a/gdb/microblaze-tdep.c b/gdb/microblaze-tdep.c
index ca592133e7f5c34a73f405053ae5229ce0204419..46f346864b390ce5e5736feb37e91f2dbab758be 100644
--- a/gdb/microblaze-tdep.c
+++ b/gdb/microblaze-tdep.c
@@ -1,6 +1,6 @@
/* Target-dependent code for Xilinx MicroBlaze.
- Copyright 2009-2012 Free Software Foundation, Inc.
+ Copyright (C) 2009-2013 Free Software Foundation, Inc.
This file is part of GDB.
@@ -36,7 +36,7 @@
#include "osabi.h"
#include "gdb_assert.h"
-#include "gdb_string.h"
+#include <string.h>
#include "target-descriptions.h"
#include "opcodes/microblaze-opcm.h"
#include "opcodes/microblaze-dis.h"
@@ -79,7 +79,7 @@ static const char *microblaze_register_names[] =
#define MICROBLAZE_NUM_REGS ARRAY_SIZE (microblaze_register_names)
-static int microblaze_debug_flag = 0;
+static unsigned int microblaze_debug_flag = 0;
static void
microblaze_debug (const char *fmt, ...)
@@ -123,7 +123,7 @@ microblaze_register_type (struct gdbarch *gdbarch, int regnum)
static unsigned long
microblaze_fetch_instruction (CORE_ADDR pc)
{
- enum bfd_endian byte_order = gdbarch_byte_order (target_gdbarch);
+ enum bfd_endian byte_order = gdbarch_byte_order (target_gdbarch ());
gdb_byte buf[4];
/* If we can't read the instruction at PC, return zero. */
@@ -739,13 +739,13 @@ _initialize_microblaze_tdep (void)
register_gdbarch_init (bfd_arch_microblaze, microblaze_gdbarch_init);
/* Debug this files internals. */
- add_setshow_zinteger_cmd ("microblaze", class_maintenance,
- &microblaze_debug_flag, _("\
+ add_setshow_zuinteger_cmd ("microblaze", class_maintenance,
+ &microblaze_debug_flag, _("\
Set microblaze debugging."), _("\
Show microblaze debugging."), _("\
When non-zero, microblaze specific debugging is enabled."),
- NULL,
- NULL,
- &setdebuglist, &showdebuglist);
+ NULL,
+ NULL,
+ &setdebuglist, &showdebuglist);
}
« no previous file with comments | « gdb/microblaze-tdep.h ('k') | gdb/mingw-hdep.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698