projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix possible bug when no args have been provided to the executable
[deliverable/binutils-gdb.git]
/
gdb
/
ppc-ravenscar-thread.c
diff --git
a/gdb/ppc-ravenscar-thread.c
b/gdb/ppc-ravenscar-thread.c
index 790d970765c0a66de5b8b6c2dea2cd8b42497379..795dae7a4da9030d13111bc14caa1e599063e392 100644
(file)
--- a/
gdb/ppc-ravenscar-thread.c
+++ b/
gdb/ppc-ravenscar-thread.c
@@
-1,6
+1,6
@@
/* Ravenscar PowerPC target support.
/* Ravenscar PowerPC target support.
- Copyright (C) 2011-201
3
Free Software Foundation, Inc.
+ Copyright (C) 2011-201
7
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-123,7
+123,7
@@
supply_register_at_address (struct regcache *regcache, int regnum,
int buf_size = register_size (gdbarch, regnum);
gdb_byte *buf;
int buf_size = register_size (gdbarch, regnum);
gdb_byte *buf;
- buf = alloca (buf_size);
+ buf =
(gdb_byte *)
alloca (buf_size);
read_memory (register_addr, buf, buf_size);
regcache_raw_supply (regcache, regnum, buf);
}
read_memory (register_addr, buf, buf_size);
regcache_raw_supply (regcache, regnum, buf);
}
@@
-148,7
+148,6
@@
ppc_ravenscar_generic_fetch_registers
struct regcache *regcache, int regnum)
{
struct gdbarch *gdbarch = get_regcache_arch (regcache);
struct regcache *regcache, int regnum)
{
struct gdbarch *gdbarch = get_regcache_arch (regcache);
- const int sp_regnum = gdbarch_sp_regnum (gdbarch);
const int num_regs = gdbarch_num_regs (gdbarch);
int current_regnum;
CORE_ADDR current_address;
const int num_regs = gdbarch_num_regs (gdbarch);
int current_regnum;
CORE_ADDR current_address;
This page took
0.026253 seconds
and
4
git commands to generate.