public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug tdep/18107] New: syscall catchpoint isn't supported on aarch64-linux
@ 2015-03-10 14:08 qiyao at gcc dot gnu.org
  2015-03-10 20:05 ` [Bug tdep/18107] " qiyao at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: qiyao at gcc dot gnu.org @ 2015-03-10 14:08 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=18107

            Bug ID: 18107
           Summary: syscall catchpoint isn't supported on aarch64-linux
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tdep
          Assignee: unassigned at sourceware dot org
          Reporter: qiyao at gcc dot gnu.org

syscall catchpoint isn't supported on aarch64-linux.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug tdep/18107] syscall catchpoint isn't supported on aarch64-linux
  2015-03-10 14:08 [Bug tdep/18107] New: syscall catchpoint isn't supported on aarch64-linux qiyao at gcc dot gnu.org
@ 2015-03-10 20:05 ` qiyao at gcc dot gnu.org
  2015-03-18 10:53 ` cvs-commit at gcc dot gnu.org
  2015-03-18 11:21 ` qiyao at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: qiyao at gcc dot gnu.org @ 2015-03-10 20:05 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=18107

Yao Qi <qiyao at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |aarch64-linux-gnu
               Host|                            |aarch64-linux-gnu
           Assignee|unassigned at sourceware dot org   |qiyao at gcc dot gnu.org

--- Comment #1 from Yao Qi <qiyao at gcc dot gnu.org> ---
Mine.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug tdep/18107] syscall catchpoint isn't supported on aarch64-linux
  2015-03-10 14:08 [Bug tdep/18107] New: syscall catchpoint isn't supported on aarch64-linux qiyao at gcc dot gnu.org
  2015-03-10 20:05 ` [Bug tdep/18107] " qiyao at gcc dot gnu.org
@ 2015-03-18 10:53 ` cvs-commit at gcc dot gnu.org
  2015-03-18 11:21 ` qiyao at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2015-03-18 10:53 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=18107

--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Yao Qi <qiyao@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f68f11b76de09dcb0d399814127fbf5227fe8245

commit f68f11b76de09dcb0d399814127fbf5227fe8245
Author: Yao Qi <yao.qi@linaro.org>
Date:   Wed Mar 18 10:47:45 2015 +0000

    Support catch syscall on aarch64 linux

    Hi,
    This patch is to support catch syscall on aarch64 linux.  We
    implement gdbarch method get_syscall_number for aarch64-linux,
    and add aarch64-linux.xml file, which looks straightforward, however
    the changes to test case doesn't.

    First of all, we enable catch-syscall.exp on aarch64-linux target,
    but skip the multi_arch testing on current stage.  I plan to touch
    multi arch debugging on aarch64-linux later.

    Then, when I run catch-syscall.exp on aarch64-linux, gcc errors that
    SYS_pipe isn't defined.  We find that aarch64 kernel only has pipe2
    syscall and libc already convert pipe to pipe2.  As a result, I change
    catch-syscall.c to use SYS_pipe if it is defined, otherwise use
    SYS_pipe2 instead.  The vector all_syscalls in catch-syscall.exp can't
    be pre-determined, so I add a new proc setup_all_syscalls to fill it,
    according to the availability of SYS_pipe.

    Regression tested on {x86_64, aarch64}-linux x {native, gdbserver}.

    gdb:

    2015-03-18  Yao Qi  <yao.qi@linaro.org>

        PR tdep/18107
        * aarch64-linux-tdep.c: Include xml-syscall.h
        (aarch64_linux_get_syscall_number): New function.
        (aarch64_linux_init_abi): Call
        set_gdbarch_get_syscall_number.
        * syscalls/aarch64-linux.xml: New file.

    gdb/testsuite:

    2015-03-18  Yao Qi  <yao.qi@linaro.org>

        PR tdep/18107
        * gdb.base/catch-syscall.c [!SYS_pipe] (pipe2_syscall): New
        variable.
        * gdb.base/catch-syscall.exp: Don't skip it on
        aarch64*-*-linux* target.  Remove elements in all_syscalls.
        (test_catch_syscall_multi_arch): Skip it on aarch64*-linux*
        target.
        (setup_all_syscalls): New proc.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug tdep/18107] syscall catchpoint isn't supported on aarch64-linux
  2015-03-10 14:08 [Bug tdep/18107] New: syscall catchpoint isn't supported on aarch64-linux qiyao at gcc dot gnu.org
  2015-03-10 20:05 ` [Bug tdep/18107] " qiyao at gcc dot gnu.org
  2015-03-18 10:53 ` cvs-commit at gcc dot gnu.org
@ 2015-03-18 11:21 ` qiyao at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: qiyao at gcc dot gnu.org @ 2015-03-18 11:21 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=18107

Yao Qi <qiyao at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |8.0

--- Comment #3 from Yao Qi <qiyao at gcc dot gnu.org> ---
Patch is pushed in.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-03-18 10:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-10 14:08 [Bug tdep/18107] New: syscall catchpoint isn't supported on aarch64-linux qiyao at gcc dot gnu.org
2015-03-10 20:05 ` [Bug tdep/18107] " qiyao at gcc dot gnu.org
2015-03-18 10:53 ` cvs-commit at gcc dot gnu.org
2015-03-18 11:21 ` qiyao at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).