From: David Daney <ddaney@caviumnetworks.com>
To: gdb-patches@sourceware.org
Subject: Ping: [Patch v2] Add mips*-linux* catch syscall support.
Date: Mon, 31 Jan 2011 19:00:00 -0000 [thread overview]
Message-ID: <4D46F658.3020302@caviumnetworks.com> (raw)
In-Reply-To: <4D3DD73C.9060201@caviumnetworks.com>
If it is not too much trouble, could a Maintainer review this patch?
Thanks in advance,
David Daney
On 01/24/2011 11:47 AM, David Daney wrote:
> Change in v2: Simplify memory allocation in
> mips_linux_get_syscall_number() as suggested by Nathen Froyd.
>
> From the original posting:
>
> This patch adds catch syscall support for all three MIPS Linux ABIs
> (o32, n32 and n64).
>
> For the most part this works as expected, except for one small detail.
> The MIPS Linux syscall ABI passes the syscall number in register v0 when
> making a syscall, but it also uses the same register to return
> information back from the syscall. This clobbering of the syscall number
> is currently not well handled by GDB. We PASS all the tests for '(call
> to syscall ???)', but FAIL those for (returned from syscall ???),
> because GDB expects to be able to obtain the syscall number on syscall
> exit. For MIPS Linux it will never be available.
>
> I think the real fix for this is to improve the core 'catch syscall'
> support so that it can either remember the syscall number, or not try to
> print out bogus information, but that would be something for a different
> patch.
>
> Tested on mips-linux, and mips64-linux.
>
> OK to commit?
>
> 2011-01-24 David Daney <ddaney@caviumnetworks.com>
>
> * mips-linux-tdep.c: Include xml-syscall.h.
> (mips_linux_get_syscall_number): New function.
> (mips_linux_init_abi): Add calls to
> mips_linux_get_syscall_number() and set_xml_syscall_file_name().
> * data-directory/Makefile.in (SYSCALLS_FILES): Add
> mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
> * syscalls/mips-n32-linux.xml: New file.
> * syscalls/mips-n64-linux.xml: New file.
> * syscalls/mips-o32-linux.xml: New file.
>
> 2011-01-24 David Daney <ddaney@caviumnetworks.com>
>
> * gdb.base/catch-syscall.exp: Enable for mips*-linux*.
next prev parent reply other threads:[~2011-01-31 17:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-24 20:20 David Daney
2011-01-31 19:00 ` David Daney [this message]
2011-01-31 19:52 ` Ping: " Michael Snyder
2011-01-31 20:08 ` David Daney
2011-02-04 16:11 ` Tom Tromey
2011-02-04 16:11 ` Tom Tromey
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=4D46F658.3020302@caviumnetworks.com \
--to=ddaney@caviumnetworks.com \
--cc=gdb-patches@sourceware.org \
/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