This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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, nios2] fix stepping past unwritable kernel helper


On 03/28/2019 04:47 AM, Sandra Loosemore wrote:
> +static int
> +nios2_linux_is_kernel_helper (CORE_ADDR pc)
> +{
> +  return pc == 0x1004;
> +}
> +

> +  /* Returns true if PC points to a kernel helper function.  */
> +  int (*is_kernel_helper) (CORE_ADDR pc);

Nit: please make these return bool instead of int.

Thanks,
Pedro Alves


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