Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@codesourcery.com>
To: Doug Evans <dje@google.com>
Cc: "Sérgio Durigan Júnior" <sergiodj@linux.vnet.ibm.com>,
	gdb-patches@sourceware.org,
	"Joel Brobecker" <brobecker@adacore.com>
Subject: Re: Can we make gdbinit.in set the data-directory to @srcdir@?
Date: Tue, 06 Oct 2009 09:33:00 -0000	[thread overview]
Message-ID: <200910061033.52216.pedro@codesourcery.com> (raw)
In-Reply-To: <e394668d0910052234g2e580abl2149580367affb78@mail.gmail.com>

On Tuesday 06 October 2009 06:34:39, Doug Evans wrote:

> I think data-dir *is* set on start up, and we want it to.
> 
> The testcase should set data-dir to something appropriate instead of
> assuming what it is (or isn't).

Yes.

> Maybe the testcase could set data-dir to something that doesn't exist
> when testing for non-existent xml files, etc.

Yes.

> Since the syscall files aren't read until the first request, one can
> set data-dir to a non-existent directory first, and then do "catch
> syscall".

FTR, there are a few issues with when is the syscall file read.

First, when the user changes the data-directory, gdb doesn't try
to re-read the syscall file.  This means no ammount of
"set data-directory" to point at the real data directory path
fixes "catch syscall" after gdb having noticed it didn't find
the xml once.

Second, the syscall file and the syscall name mappings aren't
associated with gdbarch, they're global.  This means that e.g., a
gdb configured with native linux debugging support connected to
a !linux remote target of linux remote target !arch than the native
target mistakingly uses the native syscall name mapping.  I'll probably
file PRs for these.

-- 
Pedro Alves


  reply	other threads:[~2009-10-06  9:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-02 19:56 Pedro Alves
2009-10-02 21:05 ` Joel Brobecker
2009-10-04 13:55   ` Pedro Alves
2009-10-05 13:41     ` Pedro Alves
2009-10-06  4:44       ` Sérgio Durigan Júnior
2009-10-06  5:34         ` Doug Evans
2009-10-06  9:33           ` Pedro Alves [this message]
2009-10-06  8:48         ` Pedro Alves
2009-11-22 23:00           ` Make sure catch-syscall.exp doesn't pick up system/installed syscalls xml Pedro Alves

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=200910061033.52216.pedro@codesourcery.com \
    --to=pedro@codesourcery.com \
    --cc=brobecker@adacore.com \
    --cc=dje@google.com \
    --cc=gdb-patches@sourceware.org \
    --cc=sergiodj@linux.vnet.ibm.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