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

« back to all changes in this revision

Viewing changes to gdb/i386-darwin-nat.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
/* Darwin support for GDB, the GNU debugger.
2
 
   Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2008, 2009
 
2
   Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2008, 2009, 2010
3
3
   Free Software Foundation, Inc.
4
4
 
5
5
   Contributed by Apple Computer, Inc.
40
40
 
41
41
#ifdef BFD64
42
42
#include "amd64-nat.h"
 
43
#include "amd64-tdep.h"
43
44
#include "amd64-darwin-tdep.h"
44
45
#endif
45
46
 
89
90
              printf_unfiltered (_("Error calling thread_get_state for float registers for thread 0x%ulx"), current_thread);
90
91
              MACH_CHECK_ERROR (ret);
91
92
            }
92
 
          i387_supply_fxsave (regcache, -1, &fp_regs.ufs.fs64);
 
93
          amd64_supply_fxsave (regcache, -1, &fp_regs.ufs.fs64.__fpu_fcw);
93
94
          fetched++;
94
95
        }
95
96
    }
194
195
          gdb_assert (fp_regs.fsh.flavor == x86_FLOAT_STATE64);
195
196
          gdb_assert (fp_regs.fsh.count == x86_FLOAT_STATE64_COUNT);
196
197
 
197
 
          i387_collect_fxsave (regcache, regno, &fp_regs.ufs.fs64.__fpu_fcw);
 
198
          amd64_collect_fxsave (regcache, regno, &fp_regs.ufs.fs64.__fpu_fcw);
198
199
 
199
200
          ret = thread_set_state (current_thread, x86_FLOAT_STATE,
200
201
                                  (thread_state_t) & fp_regs,