Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Can we make gdbinit.in set the data-directory to @srcdir@?
@ 2009-10-02 19:56 Pedro Alves
  2009-10-02 21:05 ` Joel Brobecker
  0 siblings, 1 reply; 9+ messages in thread
From: Pedro Alves @ 2009-10-02 19:56 UTC (permalink / raw)
  To: gdb-patches

While working on "catch syscall" issues, I found it weird
that a non-installed gdb ran from the build dir didn't pick
up the syscall names from the xml file found in its own sources.
I think it should, always, even when at some point distros start
including data in the default system data dir, which is meant for
the system gdb, not for the gdb one is hacking on.

Would anyone object to this?

-- 
Pedro Alves

2009-10-02  Pedro Alves  <pedro@codesourcery.com>

	* gdbinit.in: set data-directory to @srcdir@.

---
 gdb/gdbinit.in |    2 ++
 1 file changed, 2 insertions(+)

Index: src/gdb/gdbinit.in
===================================================================
--- src.orig/gdb/gdbinit.in	2009-10-01 15:15:16.000000000 +0100
+++ src/gdb/gdbinit.in	2009-10-02 20:45:52.000000000 +0100
@@ -16,6 +16,8 @@ dir @srcdir@
 dir .
 set prompt (top-gdb) 
 
+set data-directory @srcdir@
+
 define pdie
   if $argc == 1
     call dump_die ($arg0, 1)


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

end of thread, other threads:[~2009-11-22 23:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-02 19:56 Can we make gdbinit.in set the data-directory to @srcdir@? 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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox