X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fppcbug-rom.c;h=db12054d31d3081ea8f46ec3956dc30d59d062ff;hb=d4d4db8a722f18a2abfa771a77689c5c1efae002;hp=ee0465660f7626c1dfccf343d4d1e6c1c97f481e;hpb=23a6d36940157c674aedaf5a9d4b38676ea0d9e9;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ppcbug-rom.c b/gdb/ppcbug-rom.c index ee0465660f..db12054d31 100644 --- 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. - Copyright 1995, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. + Copyright (C) 1995, 1998, 1999, 2000, 2001, 2007, 2008, 2009, 2010, 2011 + Free Software Foundation, Inc. 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 - 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, @@ -17,9 +18,7 @@ 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 . */ #include "defs.h" #include "gdbcore.h" @@ -29,7 +28,8 @@ #include "regcache.h" static void -ppcbug_supply_register (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; @@ -91,14 +91,14 @@ ppcbug_supply_register (char *regname, int regnamelen, char *val, int vallen) return; } - monitor_supply_register (regno, val); + monitor_supply_register (regcache, regno, 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 - * registers either. So, typing "info reg sp" becomes an "A7". + * registers either. So, typing "info reg sp" becomes an "A7". */ static char *ppcbug_regnames[] = @@ -118,9 +118,9 @@ static char *ppcbug_regnames[] = }; /* - * 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 - * 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; @@ -165,7 +165,8 @@ 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->register_pattern = "\\(\\w+\\) +=\\([0-9a-fA-F]+\\b\\)"; /* register_pattern */ + /* 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) */