aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog2
-rw-r--r--gdb/rs6000-nat.c12
-rw-r--r--gdb/rs6000-tdep.c15
3 files changed, 17 insertions, 12 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e5e26a7..ab1fcd7 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -20,6 +20,8 @@
2005-01-13 Michael Snyder <msnyder@redhat.com>
+ * rs6000-tdep.c: Whitespace tweaks.
+ * rs6000-nat.c: Whitespace tweaks.
* remote.c: Whitespace tweaks.
* remote-st.c: Whitespace tweaks.
* remote-sim.c: Whitespace tweaks.
diff --git a/gdb/rs6000-nat.c b/gdb/rs6000-nat.c
index 29ef8ac..d0f3ba5 100644
--- a/gdb/rs6000-nat.c
+++ b/gdb/rs6000-nat.c
@@ -910,7 +910,7 @@ vmap_ldinfo (LdInfo *ldi)
vmap_symtab (vp);
/* Announce new object files. Doing this after symbol relocation
- makes aix-thread.c's job easier. */
+ makes aix-thread.c's job easier. */
if (deprecated_target_new_objfile_hook && vp->objfile)
deprecated_target_new_objfile_hook (vp->objfile);
@@ -1044,7 +1044,7 @@ set_host_arch (int pid)
/* xcoff_relocate_symtab - hook for symbol table relocation.
- also reads shared libraries.. */
+ also reads shared libraries. */
void
xcoff_relocate_symtab (unsigned int pid)
@@ -1246,12 +1246,12 @@ static struct core_fns rs6000_core_fns =
void
_initialize_core_rs6000 (void)
{
- /* Initialize hook in rs6000-tdep.c for determining the TOC address when
- calling functions in the inferior. */
+ /* Initialize hook in rs6000-tdep.c for determining the TOC address
+ when calling functions in the inferior. */
rs6000_find_toc_address_hook = find_toc_address;
- /* Initialize hook in rs6000-tdep.c to set the current architecture when
- starting a child process. */
+ /* Initialize hook in rs6000-tdep.c to set the current architecture
+ when starting a child process. */
rs6000_set_host_arch_hook = set_host_arch;
deprecated_add_core_fns (&rs6000_core_fns);
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index 8b341b2..96ee67d 100644
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -1721,12 +1721,13 @@ rs6000_extract_return_value (struct type *valtype, char *regbuf, char *valbuf)
back to where execution should continue.
GDB should silently step over @FIX code, just like AIX dbx does.
- Unfortunately, the linker uses the "b" instruction for the branches,
- meaning that the link register doesn't get set. Therefore, GDB's usual
- step_over_function() mechanism won't work.
+ Unfortunately, the linker uses the "b" instruction for the
+ branches, meaning that the link register doesn't get set.
+ Therefore, GDB's usual step_over_function () mechanism won't work.
- Instead, use the IN_SOLIB_RETURN_TRAMPOLINE and SKIP_TRAMPOLINE_CODE hooks
- in handle_inferior_event() to skip past @FIX code. */
+ Instead, use the IN_SOLIB_RETURN_TRAMPOLINE and
+ SKIP_TRAMPOLINE_CODE hooks in handle_inferior_event() to skip past
+ @FIX code. */
int
rs6000_in_solib_return_trampoline (CORE_ADDR pc, char *name)
@@ -1770,7 +1771,9 @@ rs6000_skip_trampoline_code (CORE_ADDR pc)
/* Check for bigtoc fixup code. */
msymbol = lookup_minimal_symbol_by_pc (pc);
- if (msymbol && rs6000_in_solib_return_trampoline (pc, DEPRECATED_SYMBOL_NAME (msymbol)))
+ if (msymbol
+ && rs6000_in_solib_return_trampoline (pc,
+ DEPRECATED_SYMBOL_NAME (msymbol)))
{
/* Double-check that the third instruction from PC is relative "b". */
op = read_memory_integer (pc + 8, 4);