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 4/7] AVR support


Hi.  Just a nit.

On Fri, Jul 26, 2013 at 1:13 PM, Sergio Durigan Junior
<sergiodj@redhat.com> wrote:
> Support for the AVR architecture.  More of the same.  Defining an enum
> containing the differences between Linux kernel generic and AVR signals,
> and treat them on avr_linux_gdb_signal_{to,from}_target.  In this case,
> the only difference is the SIGRTMAX.
>
> 2013-07-26  Sergio Durigan Junior  <sergiodj@redhat.com>
>
>         * avr-tdep.c: Define enum with differences between Linux kernel
>         and AVR signals.
>         (avr_linux_gdb_signal_from_target): New function.
>         (avr_linux_gdb_signal_to_target): Likewise.
>         (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
>         the functions mentioned above.
> [...]
> +  /* GDB_SIGNAL_REALTIME_33 to _63 are continuous.
> +

Nit: Either delete this blank line or move it to after the comment.

> +     AVR does not have _64.  */
> +  if (signal >= GDB_SIGNAL_REALTIME_33
> +      && signal <= GDB_SIGNAL_REALTIME_63)
> +    {
> +      int offset = signal - GDB_SIGNAL_REALTIME_33;
> +
> +      return AVR_LINUX_SIGRTMIN + 1 + offset;
> +    }
> [...]


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