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

« back to all changes in this revision

Viewing changes to gdb/value.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:
2
2
 
3
3
   Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995,
4
4
   1996, 1997, 1998, 1999, 2000, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
5
 
   2009 Free Software Foundation, Inc.
 
5
   2009, 2010 Free Software Foundation, Inc.
6
6
 
7
7
   This file is part of GDB.
8
8
 
254
254
allocate_value_lazy (struct type *type)
255
255
{
256
256
  struct value *val;
257
 
  struct type *atype = check_typedef (type);
 
257
 
 
258
  /* Call check_typedef on our type to make sure that, if TYPE
 
259
     is a TYPE_CODE_TYPEDEF, its length is set to the length
 
260
     of the target type instead of zero.  However, we do not
 
261
     replace the typedef type by the target type, because we want
 
262
     to keep the typedef in order to be able to set the VAL's type
 
263
     description correctly.  */
 
264
  check_typedef (type);
258
265
 
259
266
  val = (struct value *) xzalloc (sizeof (struct value));
260
267
  val->contents = NULL;
1873
1880
 
1874
1881
  CHECK_TYPEDEF (arg_type);
1875
1882
  type = TYPE_FIELD_TYPE (arg_type, fieldno);
1876
 
  type = check_typedef (type);
 
1883
 
 
1884
  /* Call check_typedef on our type to make sure that, if TYPE
 
1885
     is a TYPE_CODE_TYPEDEF, its length is set to the length
 
1886
     of the target type instead of zero.  However, we do not
 
1887
     replace the typedef type by the target type, because we want
 
1888
     to keep the typedef in order to be able to print the type
 
1889
     description correctly.  */
 
1890
  check_typedef (type);
1877
1891
 
1878
1892
  /* Handle packed fields */
1879
1893