summaryrefslogtreecommitdiff
path: root/gdb/solib-spu.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2010-05-16 23:49:57 +0000
committerMichael Snyder <msnyder@specifix.com>2010-05-16 23:49:57 +0000
commitd3127cbfffc1e22603ab33e2b170b443982d3c0d (patch)
tree2fd0f4b1ad5106c56302ecdb123462917601ba3d /gdb/solib-spu.c
parent45d63159a5eb58a3f886a12967f631e15a6a8033 (diff)
downloadgdb-d3127cbfffc1e22603ab33e2b170b443982d3c0d.tar.gz
2010-05-16 Michael Snyder <msnyder@vmware.com>
* scm-exp.c: White space. * scm-lang.c: White space. * scm-valprint.c: White space. * sentinel-frame.c: White space. * ser-base.c: White space. * ser-go32.c: White space. * serial.c: White space. * ser-mingw.c: White space. * ser-pipe.c: White space. * ser-tcp.c: White space. * ser-unix.c: White space. * solib.c: White space. * solib-darwin.c: White space. * solib-frv.c: White space. * solib-irix.c: White space. * solib-osf.c: White space. * solib-pa64.c: White space. * solib-som.c: White space. * solib-spu.c: White space. * solib-svr4.c: White space. * solib-target.c: White space. * source.c: White space. * stabsread.c: White space. * stack.c: White space. * std-regs.c: White space. * symfile.c: White space. * symmisc.c: White space. * symtab.c: White space.
Diffstat (limited to 'gdb/solib-spu.c')
-rw-r--r--gdb/solib-spu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/solib-spu.c b/gdb/solib-spu.c
index 6d035cb705f..177617d1d08 100644
--- a/gdb/solib-spu.c
+++ b/gdb/solib-spu.c
@@ -124,6 +124,7 @@ spu_current_sos (void)
if (size == 4)
{
int fd = extract_unsigned_integer (buf, 4, byte_order);
+
spu_relocate_main_executable (fd);
/* Re-enable breakpoints after main SPU context was established;
@@ -307,9 +308,11 @@ spu_bfd_open (char *pathname)
if (spu_name)
{
int sect_size = bfd_section_size (abfd, spu_name);
+
if (sect_size > 20)
{
char *buf = alloca (sect_size - 20 + strlen (original_name) + 1);
+
bfd_get_section_contents (abfd, spu_name, buf, 20, sect_size - 20);
buf[sect_size - 20] = '\0';
@@ -352,6 +355,7 @@ spu_enable_break (struct objfile *objfile)
if (spe_event_sym)
{
CORE_ADDR addr = SYMBOL_VALUE_ADDRESS (spe_event_sym);
+
addr = gdbarch_convert_from_func_ptr_addr (target_gdbarch, addr,
&current_target);
create_solib_event_breakpoint (target_gdbarch, addr);