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

« back to all changes in this revision

Viewing changes to gdb/glibc-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 the GNU C Library (glibc).
2
2
 
3
 
   Copyright (C) 2002, 2003, 2007, 2008, 2009 Free Software Foundation, Inc.
 
3
   Copyright (C) 2002, 2003, 2007, 2008, 2009, 2010
 
4
   Free Software Foundation, Inc.
4
5
 
5
6
   This file is part of GDB.
6
7
 
27
28
 
28
29
/* Calling functions in shared libraries.  */
29
30
 
30
 
/* Find the minimal symbol named NAME, and return both the minsym
31
 
   struct and its objfile.  This probably ought to be in minsym.c, but
32
 
   everything there is trying to deal with things like C++ and
33
 
   SOFUN_ADDRESS_MAYBE_TURQUOISE, ...  Since this is so simple, it may
34
 
   be considered too special-purpose for general consumption.  */
35
 
 
36
 
static struct minimal_symbol *
37
 
find_minsym_and_objfile (char *name, struct objfile **objfile_p)
38
 
{
39
 
  struct objfile *objfile;
40
 
 
41
 
  ALL_OBJFILES (objfile)
42
 
    {
43
 
      struct minimal_symbol *msym;
44
 
 
45
 
      ALL_OBJFILE_MSYMBOLS (objfile, msym)
46
 
        {
47
 
          if (SYMBOL_LINKAGE_NAME (msym)
48
 
              && strcmp (SYMBOL_LINKAGE_NAME (msym), name) == 0)
49
 
            {
50
 
              *objfile_p = objfile;
51
 
              return msym;
52
 
            }
53
 
        }
54
 
    }
55
 
 
56
 
  return 0;
57
 
}
58
 
 
59
31
/* See the comments for SKIP_SOLIB_RESOLVER at the top of infrun.c.
60
32
   This function:
61
33
   1) decides whether a PLT has sent us into the linker to resolve
84
56
 
85
57
  struct objfile *objfile;
86
58
  struct minimal_symbol *resolver 
87
 
    = find_minsym_and_objfile ("_dl_runtime_resolve", &objfile);
 
59
    = lookup_minimal_symbol_and_objfile ("_dl_runtime_resolve", &objfile);
88
60
 
89
61
  if (resolver)
90
62
    {