agent/src/os/linux/ps_proc.c

changeset 2036
126ea7725993
parent 1907
c18cbe5936b8
child 2332
401fbd7ff77c
     1.1 --- a/agent/src/os/linux/ps_proc.c	Wed Jul 28 17:57:43 2010 -0400
     1.2 +++ b/agent/src/os/linux/ps_proc.c	Tue Aug 03 08:13:38 2010 -0400
     1.3 @@ -253,7 +253,11 @@
     1.4      if (nwords > 5 && find_lib(ph, word[5]) == false) {
     1.5         intptr_t base;
     1.6         lib_info* lib;
     1.7 +#ifdef _LP64
     1.8         sscanf(word[0], "%lx", &base);
     1.9 +#else
    1.10 +       sscanf(word[0], "%x", &base);
    1.11 +#endif
    1.12         if ((lib = add_lib_info(ph, word[5], (uintptr_t)base)) == NULL)
    1.13            continue; // ignore, add_lib_info prints error
    1.14  

mercurial