From: Mark Wielaard Date: Sat, 6 Sep 2014 19:29:51 +0000 (+0000) Subject: readstabs.c: Don't include a.out.h, just define the stabs symbol nlist entry. X-Git-Tag: svn/VALGRIND_3_10_0~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3765bf29d4e86efb523ce39bcf90b1fb943ec9a;p=thirdparty%2Fvalgrind.git readstabs.c: Don't include a.out.h, just define the stabs symbol nlist entry. readstabs.c tries to include a.out.h to get the stabs symbol list entry definition. STABS isn't specifically tied to the a.out format though. The symbol entry structure just happens to be defined in the a.out.h header. The header isn't really standard though. It might be provided by glibc or the kernel in different locations. And not all arches support the a.out format so the header might not even exist. Just define the needed nlist struct entry directly in readstabs.c for VGO_linux. All arches in glibc and the kernel use the same one anyway. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14484 --- diff --git a/coregrind/m_debuginfo/readstabs.c b/coregrind/m_debuginfo/readstabs.c index e9892dc91b..0882f45b0f 100644 --- a/coregrind/m_debuginfo/readstabs.c +++ b/coregrind/m_debuginfo/readstabs.c @@ -55,7 +55,18 @@ /* --- !!! --- EXTERNAL HEADERS start --- !!! --- */ #if defined(VGO_linux) -# include /* stabs defns */ +/* stabs symbol list entry definition. */ +struct nlist { + union { + char *n_name; + struct nlist *n_next; + long n_strx; + } n_un; + unsigned char n_type; + char n_other; + short n_desc; + unsigned long n_value; +}; #elif defined(VGO_darwin) # include # define n_other n_sect