~ubuntu-branches/debian/jessie/gdb/jessie

« back to all changes in this revision

Viewing changes to gdb/ppc-sysv-tdep.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Jacobowitz
  • Date: 2010-03-20 01:21:29 UTC
  • mfrom: (1.3.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20100320012129-t7h25y8zgr8c2369
Tags: 7.1-1
* New upstream release, including:
  - PIE support (Closes: #346409).
  - C++ improvements, including static_cast<> et al, namespace imports,
    and bug fixes in printing virtual base classes.
  - Multi-program debugging.  One GDB can now debug multiple programs
    at the same time.
  - Python scripting improvements, including gdb.parse_and_eval.
  - Updated MIPS Linux signal frame layout (Closes: #570875).
  - No internal error stepping over _dl_debug_state (Closes: #569551).
* Update to Standards-Version: 3.8.4 (no changes required).
* Include more relevant (and smaller) docs in the gdbserver package
  (Closes: #571132).
* Do not duplicate documentation in gdb64, gdb-source, and libgdb-dev.
* Fix crash when switching into TUI mode (Closes: #568489).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Target-dependent code for PowerPC systems using the SVR4 ABI
2
2
   for GDB, the GNU debugger.
3
3
 
4
 
   Copyright (C) 2000, 2001, 2002, 2003, 2005, 2007, 2008, 2009
 
4
   Copyright (C) 2000, 2001, 2002, 2003, 2005, 2007, 2008, 2009, 2010
5
5
   Free Software Foundation, Inc.
6
6
 
7
7
   This file is part of GDB.
1326
1326
  regcache_cooked_write_signed (regcache, tdep->ppc_lr_regnum, bp_addr);
1327
1327
 
1328
1328
  /* Use the func_addr to find the descriptor, and use that to find
1329
 
     the TOC.  */
 
1329
     the TOC.  If we're calling via a function pointer, the pointer
 
1330
     itself identifies the descriptor.  */
1330
1331
  {
1331
 
    CORE_ADDR desc_addr;
1332
 
    if (convert_code_addr_to_desc_addr (func_addr, &desc_addr))
 
1332
    struct type *ftype = check_typedef (value_type (function));
 
1333
    CORE_ADDR desc_addr = value_as_address (function);
 
1334
 
 
1335
    if (TYPE_CODE (ftype) == TYPE_CODE_PTR
 
1336
        || convert_code_addr_to_desc_addr (func_addr, &desc_addr))
1333
1337
      {
1334
1338
        /* The TOC is the second double word in the descriptor.  */
1335
1339
        CORE_ADDR toc =