2005-01-13 Michael Snyder <msnyder@redhat.com>

* rs6000-nat.c: Whitespace tweaks.
This commit is contained in:
Michael Snyder 2005-01-14 01:54:49 +00:00
parent 238603485f
commit 2ec664f5c4
3 changed files with 17 additions and 12 deletions

View File

@ -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.

View File

@ -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);

View File

@ -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);