[PATCH] PowerPC, correct the gdb ioctl values for TCGETS, TCSETS, TCSETSW and TCSETSF.
Carl Love
cel@us.ibm.com
Wed Jun 8 17:26:48 GMT 2022
Ulrich:
On Wed, 2022-06-08 at 16:59 +0000, Ulrich Weigand wrote:
> Carl Love <cel@us.ibm.com> wrote:
>
> > @@ -1898,15 +1903,16 @@ ppc_init_linux_record_tdep (struct
> > linux_record_tdep *record_tdep,
> >
> > /* These values are the second argument of system call
> > "sys_ioctl".
> > They are obtained from Linux Kernel source.
> > - See arch/powerpc/include/uapi/asm/ioctls.h. */
> > - record_tdep->ioctl_TCGETS = 0x403c7413;
> > - record_tdep->ioctl_TCSETS = 0x803c7414;
> > - record_tdep->ioctl_TCSETSW = 0x803c7415;
> > - record_tdep->ioctl_TCSETSF = 0x803c7416;
> > record_tdep->ioctl_TCGETA = 0x40147417;
> > record_tdep->ioctl_TCSETA = 0x80147418;
> > record_tdep->ioctl_TCSETAW = 0x80147419;
> > record_tdep->ioctl_TCSETAF = 0x8014741c;
> > + See arch/powerpc/include/uapi/asm/ioctls.h. */
> > + record_tdep->ioctl_TCGETS = 0x40007413 | (SIZE_OF_STRUCT_TERMIOS
> > <<
> > 16);
>
> This doesn't look right - unless I'm missing something this patch now
> effectively comments out the ioctl_TC[GS]ETA* assingments?
Argh! Yes, you are correct. Will fix, retest and repost. Thanks.
Carl
More information about the Gdb-patches
mailing list