[PATCH 3/3] arc: Add support for Newlib
Yao Qi
qiyaoltc@gmail.com
Tue Oct 11 14:14:00 GMT 2016
Anton Kolesov <Anton.Kolesov@synopsys.com> writes:
Hi Anton,
> +/* Implement the 'init_osabi' method of struct gdb_osabi_handler. */
> +
> +static void
> +arc_newlib_init_osabi (struct gdbarch_info info, struct gdbarch *gdbarch)
> +{
> + if (arc_debug)
> + debug_printf ("arc-newlib: Initialization.\n");
> +
> + struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
> +
> + /* Offset of original PC in longjmp jump buffer (in registers). Value of PC
> + offset can be found in newlib/libc/machine/arc/setjmp.S. */
> + tdep->jb_pc = 18;
What is jb_pc on arc-linux? Is it 18 or a different one? If it is 18
too, we can use arc_get_longjmp_target for both newlib and linux. Patch
#1 is not needed.
--
Yao (齐尧)
More information about the Gdb-patches
mailing list