public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/15092] New: auto load safe directory is not set correctly in configure file
@ 2013-02-01 12:10 muhammad_bilal at codesourcery dot com
  2013-02-01 12:37 ` [Bug build/15092] " jan.kratochvil at redhat dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: muhammad_bilal at codesourcery dot com @ 2013-02-01 12:10 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15092

             Bug #: 15092
           Summary: auto load safe directory is not set correctly in
                    configure file
           Product: gdb
           Version: 7.5
            Status: NEW
          Severity: normal
          Priority: P2
         Component: build
        AssignedTo: unassigned@sourceware.org
        ReportedBy: muhammad_bilal@codesourcery.com
        Depends on: 15091
    Classification: Unclassified


+++ This bug was initially created as a clone of Bug #15091 +++

Hi All,
In gdb configure file with-auto-load-dir=$debugdir:$datadir/auto-load option 
The $debugdir variable is not declare in the file then why we are using this
variable wheres the correct variable is $DEBUGDIR

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug build/15092] auto load safe directory is not set correctly in configure file
  2013-02-01 12:10 [Bug build/15092] New: auto load safe directory is not set correctly in configure file muhammad_bilal at codesourcery dot com
@ 2013-02-01 12:37 ` jan.kratochvil at redhat dot com
  2013-02-01 12:39 ` jan.kratochvil at redhat dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jan.kratochvil at redhat dot com @ 2013-02-01 12:37 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15092

Jan Kratochvil <jan.kratochvil at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jan.kratochvil at redhat
                   |                            |dot com
         Resolution|                            |INVALID

--- Comment #1 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2013-02-01 12:37:34 UTC ---
DEBUGDIR is C #define in config.h, it is internal to GDB, GDB user never faces
$DEBUGDIR.

$debugdir is substituted by GDB and $debugdir is documented in GDB Manual.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug build/15092] auto load safe directory is not set correctly in configure file
  2013-02-01 12:10 [Bug build/15092] New: auto load safe directory is not set correctly in configure file muhammad_bilal at codesourcery dot com
  2013-02-01 12:37 ` [Bug build/15092] " jan.kratochvil at redhat dot com
@ 2013-02-01 12:39 ` jan.kratochvil at redhat dot com
  2013-02-01 12:45 ` muhammad_bilal at codesourcery dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jan.kratochvil at redhat dot com @ 2013-02-01 12:39 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15092

Bug 15092 depends on bug 15091, which changed state.

Bug 15091 Summary: auto load safe directory is not set correctly in configure file
http://sourceware.org/bugzilla/show_bug.cgi?id=15091

           What    |Old Value                   |New Value
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #2 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2013-02-01 12:38:55 UTC ---
*** Bug 15091 has been marked as a duplicate of this bug. ***

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug build/15092] auto load safe directory is not set correctly in configure file
  2013-02-01 12:10 [Bug build/15092] New: auto load safe directory is not set correctly in configure file muhammad_bilal at codesourcery dot com
  2013-02-01 12:37 ` [Bug build/15092] " jan.kratochvil at redhat dot com
  2013-02-01 12:39 ` jan.kratochvil at redhat dot com
@ 2013-02-01 12:45 ` muhammad_bilal at codesourcery dot com
  2013-02-01 13:00 ` jan.kratochvil at redhat dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: muhammad_bilal at codesourcery dot com @ 2013-02-01 12:45 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15092

bilal <muhammad_bilal at codesourcery dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |

--- Comment #3 from bilal <muhammad_bilal at codesourcery dot com> 2013-02-01 12:45:56 UTC ---
Hi jan,
we are setting the auto-load directory with $debugdir
But  $debugdir has nothing value
So auto-load safe-path does not set to the debug directory
So we should change the name


Thanks
Bilal

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug build/15092] auto load safe directory is not set correctly in configure file
  2013-02-01 12:10 [Bug build/15092] New: auto load safe directory is not set correctly in configure file muhammad_bilal at codesourcery dot com
                   ` (2 preceding siblings ...)
  2013-02-01 12:45 ` muhammad_bilal at codesourcery dot com
@ 2013-02-01 13:00 ` jan.kratochvil at redhat dot com
  2013-02-01 13:29 ` muhammad_bilal at codesourcery dot com
  2013-02-01 13:38 ` jan.kratochvil at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: jan.kratochvil at redhat dot com @ 2013-02-01 13:00 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15092

Jan Kratochvil <jan.kratochvil at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |INVALID

--- Comment #4 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2013-02-01 13:00:33 UTC ---
GDB Manual:
Any used string `$debugdir' will get replaced by DEBUG-FILE-DIRECTORY value
(*note Separate Debug Files::)
[...]
   Global debugging info directories default to what is set by GDB
configure option `--with-separate-debug-dir'.  During GDB run you can
also set the global debugging info directories, and view the list GDB
is currently using.

`set debug-file-directory DIRECTORIES'
     Set the directories which GDB searches for separate debugging
     information files to DIRECTORY.  Multiple path components can be
     set concatenating them by a path separator.

(In reply to comment #3)
> Hi jan,
> we are setting the auto-load directory with $debugdir

How do you set it?  By `set debug-file-directory DIRECTORIES' or by
--with-separate-debug-dir=DIR?

> But  $debugdir has nothing value

How do you display the $debugdir value?

(gdb) show debug-file-directory 
The directory where separate debug symbols are searched for is
"/usr/lib/debug".


> So auto-load safe-path does not set to the debug directory
> So we should change the name

Which name should be changed?  It just works as it is configured on Fedora.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug build/15092] auto load safe directory is not set correctly in configure file
  2013-02-01 12:10 [Bug build/15092] New: auto load safe directory is not set correctly in configure file muhammad_bilal at codesourcery dot com
                   ` (3 preceding siblings ...)
  2013-02-01 13:00 ` jan.kratochvil at redhat dot com
@ 2013-02-01 13:29 ` muhammad_bilal at codesourcery dot com
  2013-02-01 13:38 ` jan.kratochvil at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: muhammad_bilal at codesourcery dot com @ 2013-02-01 13:29 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15092

--- Comment #5 from bilal <muhammad_bilal at codesourcery dot com> 2013-02-01 13:29:44 UTC ---
Hi jan,

> How do you display the $debugdir value?

If we changed the $debugdir with ----> ${debugdir} in configure file
now reconfigure gdb and make install 
then if we give the (gdb)show auto-load
gdb show

safe-path:  List of directories from which it is safe to auto-load files is
:$datadir/auto-load.

and if changed $debugdir with ---> ${DEBUGDIR} in configure file 


now reconfigure gdb and make install 
then if we apply the command 
(gdb)show auto-load
gdb show

safe-path:  List of directories from which it is safe to auto-load files is 
${prefix}/lib/debug:$datadir/auto-load.


Thanks
Bilal

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug build/15092] auto load safe directory is not set correctly in configure file
  2013-02-01 12:10 [Bug build/15092] New: auto load safe directory is not set correctly in configure file muhammad_bilal at codesourcery dot com
                   ` (4 preceding siblings ...)
  2013-02-01 13:29 ` muhammad_bilal at codesourcery dot com
@ 2013-02-01 13:38 ` jan.kratochvil at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: jan.kratochvil at redhat dot com @ 2013-02-01 13:38 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15092

--- Comment #6 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2013-02-01 13:38:36 UTC ---
Why have you changed the source (configure file)?  It works without changing
GDB sources.  Changed GDB is your problem, this Bugzilla is for FSF unchanged
GDB.

./configure --prefix=/usr
make
./gdb/gdb
(gdb) show auto-load safe-path 
List of directories from which it is safe to auto-load files is
$debugdir:$datadir/auto-load.
(gdb) show debug-file-directory 
The directory where separate debug symbols are searched for is
"/usr/lib/debug".
(gdb) show data-directory 
GDB's data directory is "/usr/share/gdb".

What problem do you have with this behavior of FSF GDB?

BTW you can use
  ./configure --without-auto-load-safe-path
if you do not need the security restriction on your system.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

end of thread, other threads:[~2013-02-01 13:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-01 12:10 [Bug build/15092] New: auto load safe directory is not set correctly in configure file muhammad_bilal at codesourcery dot com
2013-02-01 12:37 ` [Bug build/15092] " jan.kratochvil at redhat dot com
2013-02-01 12:39 ` jan.kratochvil at redhat dot com
2013-02-01 12:45 ` muhammad_bilal at codesourcery dot com
2013-02-01 13:00 ` jan.kratochvil at redhat dot com
2013-02-01 13:29 ` muhammad_bilal at codesourcery dot com
2013-02-01 13:38 ` jan.kratochvil at redhat dot com

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).