[Crash-utility] [PATCH] Support extensions for MIPS

Dave Anderson anderson at redhat.com
Thu Feb 5 14:35:18 UTC 2015



----- Original Message -----
> Add appropriate checks for MIPS to is_shared_object() so that extensions
> work.
> ---
>  symbols.c | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/symbols.c b/symbols.c
> index 59312e6..c3883f0 100644
> --- a/symbols.c
> +++ b/symbols.c
> @@ -3452,7 +3452,8 @@ is_shared_object(char *file)
>  		switch (swap16(elf32->e_machine, swap))
>  		{
>  		case EM_386:
> -			if (machine_type("X86") || machine_type("ARM"))
> +			if (machine_type("X86") || machine_type("ARM") ||
> +			    machine_type("MIPS"))
>  				return TRUE;
>  			break;
>  
> @@ -3466,6 +3467,11 @@ is_shared_object(char *file)
>  				return TRUE;
>  			break;
>  
> +		case EM_MIPS:
> +			if (machine_type("MIPS"))
> +				return TRUE;
> +			break;
> +
>  		case EM_PPC:
>  			if (machine_type("PPC"))
>  				return TRUE;
> --

Thanks Rabin -- queued for crash-7.1.0:

  https://github.com/crash-utility/crash/commit/75014edcbd668617a1a7fb049ffa2975cd1592b8

Dave


  




More information about the Crash-utility mailing list