[patch] Fix BSD build regression on core file's PID

Alan Modra amodra@gmail.com
Thu May 12 01:31:00 GMT 2011


On Wed, May 11, 2011 at 11:56:36PM +0200, Jan Kratochvil wrote:
> 	(HAVE_ELFCORE_PSINFO_T_PR_PID, HAVE_ELFCORE_PSINFO32_T_PR_PID): Set
> 	them if appropriate.

I think the code would be clearer without these two new macros.
ie. Keep with existing practice in elfcore_grok_psinfo and use
#if defined (HAVE_PSINFO_T_PR_PID) || defined (HAVE_PRPSINFO_T_PR_PID)
and
#if defined (HAVE_PSINFO32_T_PR_PID) || defined (HAVE_PRPSINFO32_T_PR_PID)
instead.  OK with that change.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list