This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Fix 64-bit->32-bit vDSO reporting


On Fri, 12 Oct 2012 17:09:00 +0200, Jan Kratochvil wrote:
> +  if (! valid64 && ! valid32)
> +    return 0;

I can drop this statement as I see.


> +
> +  unsigned char pid_class = ELFCLASSNONE;
> +  if (valid64 && valid32)
> +    pid_class = get_pid_class (pid);
> +
> +  if (pid_class == ELFCLASS64 || (valid64 && ! valid32))
> +    {
> +      *sysinfo_ehdr = sysinfo_ehdr64;
> +      dwfl->segment_align = segment_align64;
> +    }
> +  if (pid_class == ELFCLASS32 || (! valid64 && valid32))
> +    {
> +      *sysinfo_ehdr = sysinfo_ehdr32;
> +      dwfl->segment_align = segment_align32;
> +    }
> +  return 0;
>  }


Jan

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]