public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "palves at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug gdb/10737] catch syscall name mappings (xml) should be per-arch or per-target, not global
Date: Fri, 17 Oct 2014 11:44:00 -0000	[thread overview]
Message-ID: <bug-10737-4717-Pi2iYM8KKV@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-10737-4717@http.sourceware.org/bugzilla/>

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

--- Comment #5 from Pedro Alves <palves at redhat dot com> ---
A related question is how to handle syscalls by name ("catch syscall open"):

#1 - when the user kills the program, and then starts another one, of a
different architecture, in the same inferior.  E.g.,

  - file prog64
  - start
  - catch syscall open
  - kill
  - file prog32
  - run

#2 - similarly, when a 64-bit inferior execs a 32-bit inferior.

  - file prog64
  - start
  - catch syscall open (2 on 64-bit)
  - continue
  - inferior execs prog32
  - inferior now calls syscall 2, which is something else on i386.

These two cases may end up handled by the breakpoint_re_set machinery.

#3 - in the presence of multiple inferiors, each with its own arch.

  - file prog64
  - start
  - add-inferior -exec prog32
  - inferior 2
  - start
  - catch syscall open
  - set schedule-multiple on
  - c
  - both inferiors call "open"

Here, I don't think we'll catch inferior 1's.  syscall catchpoints is presently
inferior-specific; while I think it should end up with a location per inferior
instead, and "open" should be parsed in each inferior's/location's arch.

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


  parent reply	other threads:[~2014-10-17 11:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-10737-4717@http.sourceware.org/bugzilla/>
2014-10-08 19:10 ` sergiodj at redhat dot com
2014-10-13  0:23 ` sergiodj at redhat dot com
2014-10-16  4:03 ` sergiodj at redhat dot com
2014-10-17 11:44 ` palves at redhat dot com [this message]
2014-11-14  1:43 ` sergiodj at redhat dot com
2014-11-20 17:33 ` cvs-commit at gcc dot gnu.org
2014-11-20 18:35 ` cvs-commit at gcc dot gnu.org
2014-12-25  0:46 ` cvs-commit at gcc dot gnu.org
2009-10-06 10:44 [Bug gdb/10737] New: " pedro at codesourcery dot com
2009-10-06 10:53 ` [Bug gdb/10737] " pedro at codesourcery dot com

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=bug-10737-4717-Pi2iYM8KKV@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).