~ubuntu-branches/ubuntu/precise/eglibc/precise-201308281639

« back to all changes in this revision

Viewing changes to sysdeps/generic/elf/backtracesymsfd.c

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-02-08 01:58:09 UTC
  • mfrom: (1.5.3) (288.1.12 precise)
  • Revision ID: package-import@ubuntu.com-20120208015809-ulscst7uteq3e22z
Tags: 2.15~pre6-0ubuntu10
Merge from Debian (r5151, 2.13-26).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Write formatted list with names for addresses in backtrace to a file.
2
 
   Copyright (C) 1998,2000,2003,2005,2009 Free Software Foundation, Inc.
 
2
   Copyright (C) 1998,2000,2003,2005,2009,2011 Free Software Foundation, Inc.
3
3
   This file is part of the GNU C Library.
4
4
   Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
5
5
 
28
28
#if __ELF_NATIVE_CLASS == 32
29
29
# define WORD_WIDTH 8
30
30
#else
31
 
/* We assyme 64bits.  */
 
31
/* We assume 64bits.  */
32
32
# define WORD_WIDTH 16
33
33
#endif
34
34
 
45
45
  for (cnt = 0; cnt < size; ++cnt)
46
46
    {
47
47
      char buf[WORD_WIDTH];
 
48
      char buf2[WORD_WIDTH];
48
49
      Dl_info info;
49
50
      struct link_map *map;
50
51
      size_t last = 0;
59
60
 
60
61
          if (info.dli_sname != NULL || map->l_addr != 0)
61
62
            {
62
 
              char buf2[WORD_WIDTH];
63
63
              size_t diff;
64
64
 
65
65
              iov[last].iov_base = (void *) "(";