From: Daniel Jacobowitz <drow@false.org>
To: Pedro Alves <pedro@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFC 3/4] - Adjust all archs/targets to new interface
Date: Mon, 14 Apr 2008 19:31:00 -0000 [thread overview]
Message-ID: <20080414192317.GN1968@caradoc.them.org> (raw)
In-Reply-To: <200804091557.09472.pedro@codesourcery.com>
On Wed, Apr 09, 2008 at 03:57:09PM +0100, Pedro Alves wrote:
> - arm-linux: either we have currently the wrong jb_pc, or there must
> be some switch that changes the jmp_buf format I'm not aware of. I
> took the values in the patch from glibc, and tested it with a
> qemu in several multilibs configurations, including -mthumb.
> Inspecting manually revealed that indeed the these are the
> correct values, and running the new longjmp.exp test passed cleanly.
ARM_LINUX_JB_PC is for pre-EABI. This is
ports/sysdeps/arm/fpu/__longjmp.S in glibc:
/* Save registers */
sfmea f4, 4, [r0]!
stmia r0, {v1-v6, sl, fp, sp, lr}
So it's the tenth integer register but they're after the FPU state.
I can'd decode sfmea in my head, but I assume the previous value was
more or less right. Anyway, you were probably testing on EABI.
Looks like it needs an ARM_ABI_AAPCS conditional.
> * alpha-tdep.c (alplha_get_longjmp_target): Add SP parameter.
Typo.
I'm really sorry my comments on the earlier patch might make you
adjust this... it looks like a tremendous piece of work.
> Index: src/gdb/i386-cygwin-tdep.c
> ===================================================================
> --- src.orig/gdb/i386-cygwin-tdep.c 2008-04-07 23:13:41.000000000 +0100
> +++ src/gdb/i386-cygwin-tdep.c 2008-04-08 11:00:00.000000000 +0100
> @@ -233,6 +233,15 @@ i386_cygwin_init_abi (struct gdbarch_inf
> tdep->gregset_num_regs = ARRAY_SIZE (i386_win32_gregset_reg_offset);
> tdep->sizeof_gregset = I386_WIN32_SIZEOF_GREGSET;
>
> + /* TODO: this seems to be 4 and 5 on mingw32. I guess we came to a
> + point where we need to split cygwin vs mingw *-tdep.c support
> + somehow. Maybe we should detect a cygwin binary by looking at
> + the imports for "cygwin1.dll", and have a GDB_OSABI_MINGW32 or
> + GDB_OSABI_WINDOWS afterall. */
> +
> + tdep->jb_sp_offset = 7 * 4;
> + tdep->jb_pc_offset = 8 * 4;
> +
> set_solib_ops (gdbarch, &solib_target_so_ops);
>
> /* Core file support. */
I would somewhat prefer to see this resolved first.
--
Daniel Jacobowitz
CodeSourcery
prev parent reply other threads:[~2008-04-14 19:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-09 15:01 Pedro Alves
2008-04-09 17:48 ` DJ Delorie
2008-04-14 19:31 ` Daniel Jacobowitz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080414192317.GN1968@caradoc.them.org \
--to=drow@false.org \
--cc=gdb-patches@sourceware.org \
--cc=pedro@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox