[PATCH v7 3/8] Use xml-syscall to compare syscall numbers in arm_linux_sigreturn_return-addr.

Antoine Tremblay antoine.tremblay@ericsson.com
Fri Dec 11 12:29:00 GMT 2015



On 12/11/2015 06:29 AM, Yao Qi wrote:
> Antoine Tremblay <antoine.tremblay@ericsson.com> writes:
>
>> It also adds a new function to xml-syscall.h/c to compare syscalls numbers
>> called is_syscall.
>
> Why don't we use existing get_syscall_by_name in
> arm_linux_sigreturn_return_addr rather than adding a new function is_syscall?
>

This is because it complicated the code a lot just to compare a syscall 
I have to do what is in the is_syscall function.

And I have to do that over and over... so might as well be in a function ?




More information about the Gdb-patches mailing list