This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[ob/commit] rs6000 whitespace tweaks


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

	* rs6000-nat.c: Whitespace tweaks.
	* rs6000-tdep.c: Whitespace tweaks.

Index: rs6000-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/rs6000-nat.c,v
retrieving revision 1.55
diff -p -r1.55 rs6000-nat.c
*** rs6000-nat.c	12 Jan 2005 18:31:33 -0000	1.55
--- rs6000-nat.c	14 Jan 2005 01:51:47 -0000
*************** vmap_ldinfo (LdInfo *ldi)
*** 910,916 ****
  	  vmap_symtab (vp);
  
  	  /* Announce new object files.  Doing this after symbol relocation
! 	     makes aix-thread.c's job easier. */
  	  if (deprecated_target_new_objfile_hook && vp->objfile)
  	    deprecated_target_new_objfile_hook (vp->objfile);
  
--- 910,916 ----
  	  vmap_symtab (vp);
  
  	  /* Announce new object files.  Doing this after symbol relocation
! 	     makes aix-thread.c's job easier.  */
  	  if (deprecated_target_new_objfile_hook && vp->objfile)
  	    deprecated_target_new_objfile_hook (vp->objfile);
  
*************** set_host_arch (int pid)
*** 1044,1050 ****
  
  
  /* xcoff_relocate_symtab -      hook for symbol table relocation.
!    also reads shared libraries.. */
  
  void
  xcoff_relocate_symtab (unsigned int pid)
--- 1044,1050 ----
  
  
  /* xcoff_relocate_symtab -      hook for symbol table relocation.
!    also reads shared libraries.  */
  
  void
  xcoff_relocate_symtab (unsigned int pid)
*************** static struct core_fns rs6000_core_fns =
*** 1246,1257 ****
  void
  _initialize_core_rs6000 (void)
  {
!   /* 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. */
    rs6000_set_host_arch_hook = set_host_arch;
  
    deprecated_add_core_fns (&rs6000_core_fns);
--- 1246,1257 ----
  void
  _initialize_core_rs6000 (void)
  {
!   /* 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.  */
    rs6000_set_host_arch_hook = set_host_arch;
  
    deprecated_add_core_fns (&rs6000_core_fns);
Index: rs6000-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/rs6000-tdep.c,v
retrieving revision 1.233
diff -p -r1.233 rs6000-tdep.c
*** rs6000-tdep.c	25 Nov 2004 02:48:27 -0000	1.233
--- rs6000-tdep.c	14 Jan 2005 01:52:08 -0000
*************** rs6000_extract_return_value (struct type
*** 1721,1732 ****
     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.
! 
!    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)
--- 1721,1733 ----
     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.
! 
!    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)
*************** rs6000_skip_trampoline_code (CORE_ADDR p
*** 1770,1776 ****
  
    /* Check for bigtoc fixup code.  */
    msymbol = lookup_minimal_symbol_by_pc (pc);
!   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);
--- 1771,1779 ----
  
    /* Check for bigtoc fixup code.  */
    msymbol = lookup_minimal_symbol_by_pc (pc);
!   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);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]