projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* top.c (xgdb_verbose): Remove.
[deliverable/binutils-gdb.git]
/
gdb
/
ppcbug-rom.c
diff --git
a/gdb/ppcbug-rom.c
b/gdb/ppcbug-rom.c
index 3eac535e7a4aa2b85c7502a0081d77869b78aacd..d97245b9e132f1526f3eeb57ad82417121063a3f 100644
(file)
--- a/
gdb/ppcbug-rom.c
+++ b/
gdb/ppcbug-rom.c
@@
-1,6
+1,7
@@
/* Remote debugging interface for PPCbug (PowerPC) Rom monitor
for GDB, the GNU debugger.
/* Remote debugging interface for PPCbug (PowerPC) Rom monitor
for GDB, the GNU debugger.
- Copyright 1995 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1998-2001, 2007-2012 Free Software Foundation,
+ Inc.
Written by Stu Grossman of Cygnus Support
Written by Stu Grossman of Cygnus Support
@@
-8,7
+9,7
@@
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version
2
of the License, or
+ the Free Software Foundation; either version
3
of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
(at your option) any later version.
This program is distributed in the hope that it will be useful,
@@
-17,26
+18,20
@@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA. */
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
#include "gdbcore.h"
#include "target.h"
#include "monitor.h"
#include "serial.h"
#include "defs.h"
#include "gdbcore.h"
#include "target.h"
#include "monitor.h"
#include "serial.h"
-
-static void ppcbug_open PARAMS ((char *args, int from_tty));
+#include "regcache.h"
static void
static void
-ppcbug_supply_register (regname, regnamelen, val, vallen)
- char *regname;
- int regnamelen;
- char *val;
- int vallen;
+ppcbug_supply_register (struct regcache *regcache, char *regname,
+ int regnamelen, char *val, int vallen)
{
{
- int regno = 0
, base = 0
;
+ int regno = 0;
if (regnamelen < 2 || regnamelen > 4)
return;
if (regnamelen < 2 || regnamelen > 4)
return;
@@
-96,17
+91,17
@@
ppcbug_supply_register (regname, regnamelen, val, vallen)
return;
}
return;
}
- monitor_supply_register (regno, val);
+ monitor_supply_register (reg
cache, reg
no, val);
}
/*
}
/*
- * This array of registers needs to match the indexes used by GDB. The
+ * This array of registers needs to match the indexes used by GDB.
The
* whole reason this exists is because the various ROM monitors use
* different names than GDB does, and don't support all the
* whole reason this exists is because the various ROM monitors use
* different names than GDB does, and don't support all the
- * registers either. So, typing "info reg sp" becomes an "A7".
+ * registers either.
So, typing "info reg sp" becomes an "A7".
*/
*/
-static char *ppcbug_regnames[
NUM_REGS
] =
+static char *ppcbug_regnames[] =
{
"r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7",
"r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15",
{
"r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7",
"r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15",
@@
-123,9
+118,9
@@
static char *ppcbug_regnames[NUM_REGS] =
};
/*
};
/*
- * Define the monitor command strings. Since these are passed directly
+ * Define the monitor command strings.
Since these are passed directly
* through to a printf style function, we need can include formatting
* through to a printf style function, we need can include formatting
- * strings. We also need a CR or LF on the end.
+ * strings.
We also need a CR or LF on the end.
*/
static struct target_ops ppcbug_ops0;
*/
static struct target_ops ppcbug_ops0;
@@
-170,8
+165,9
@@
init_ppc_cmds (char *LOAD_CMD,
OPS->getreg.resp_delim = "="; /* getreg.resp_delim */
OPS->getreg.term = NULL; /* getreg.term */
OPS->getreg.term_cmd = NULL; /* getreg.term_cmd */
OPS->getreg.resp_delim = "="; /* getreg.resp_delim */
OPS->getreg.term = NULL; /* getreg.term */
OPS->getreg.term_cmd = NULL; /* getreg.term_cmd */
- OPS->register_pattern = "\\(\\w+\\) +=\\([0-9a-fA-F]+\\b\\)"; /* register_pattern */
- OPS->supply_register = ppcbug_supply_register; /* supply_register */
+ /* register_pattern */
+ OPS->register_pattern = "\\(\\w+\\) +=\\([0-9a-fA-F]+\\b\\)";
+ OPS->supply_register = ppcbug_supply_register;
OPS->dump_registers = "rd\r"; /* dump all registers */
OPS->load_routine = NULL; /* load_routine (defaults to SRECs) */
OPS->load = LOAD_CMD; /* download command */
OPS->dump_registers = "rd\r"; /* dump all registers */
OPS->load_routine = NULL; /* load_routine (defaults to SRECs) */
OPS->load = LOAD_CMD; /* download command */
@@
-190,23
+186,21
@@
static struct monitor_ops ppcbug_cmds0;
static struct monitor_ops ppcbug_cmds1;
static void
static struct monitor_ops ppcbug_cmds1;
static void
-ppcbug_open0 (args, from_tty)
- char *args;
- int from_tty;
+ppcbug_open0 (char *args, int from_tty)
{
monitor_open (args, &ppcbug_cmds0, from_tty);
}
static void
{
monitor_open (args, &ppcbug_cmds0, from_tty);
}
static void
-ppcbug_open1 (args, from_tty)
- char *args;
- int from_tty;
+ppcbug_open1 (char *args, int from_tty)
{
monitor_open (args, &ppcbug_cmds1, from_tty);
}
{
monitor_open (args, &ppcbug_cmds1, from_tty);
}
+extern initialize_file_ftype _initialize_ppcbug_rom; /* -Wmissing-prototypes */
+
void
void
-_initialize_ppcbug_rom ()
+_initialize_ppcbug_rom (
void
)
{
init_ppc_cmds ("lo 0\r", &ppcbug_cmds0, &ppcbug_ops0);
init_ppc_cmds ("lo 1\r", &ppcbug_cmds1, &ppcbug_ops1);
{
init_ppc_cmds ("lo 0\r", &ppcbug_cmds0, &ppcbug_ops0);
init_ppc_cmds ("lo 1\r", &ppcbug_cmds1, &ppcbug_ops1);
This page took
0.026085 seconds
and
4
git commands to generate.