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

« back to all changes in this revision

Viewing changes to gdb/findvar.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
/* Find a variable's value in memory, for GDB, the GNU debugger.
2
2
 
3
3
   Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995,
4
 
   1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2007, 2008, 2009
5
 
   Free Software Foundation, Inc.
 
4
   1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2007, 2008, 2009,
 
5
   2010 Free Software Foundation, Inc.
6
6
 
7
7
   This file is part of GDB.
8
8
 
36
36
#include "block.h"
37
37
#include "objfiles.h"
38
38
 
39
 
/* Basic byte-swapping routines.  GDB has needed these for a long time...
40
 
   All extract a target-format integer at ADDR which is LEN bytes long.  */
 
39
/* Basic byte-swapping routines.  All 'extract' functions return a
 
40
   host-format integer from a target-format integer at ADDR which is
 
41
   LEN bytes long.  */
41
42
 
42
43
#if TARGET_CHAR_BIT != 8 || HOST_CHAR_BIT != 8
43
44
  /* 8 bit characters are a pretty safe assumption these days, so we
179
180
  return gdbarch_pointer_to_address (get_type_arch (type), type, buf);
180
181
}
181
182
 
 
183
/* All 'store' functions accept a host-format integer and store a
 
184
   target-format integer at ADDR which is LEN bytes long.  */
182
185
 
183
186
void
184
187
store_signed_integer (gdb_byte *addr, int len,