Re: warning: not using untrusted file

Aleksey Midenkov <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CAF8BazB6LejreGupdv+kw22yRUAFhn-1amVsa1DCbk3gBEoAQg@mail.gmail.com>
On Tue, Jul 1, 2014 at 7:46 PM, Eli Zaretskii <[email protected]> wrote:
>> From: Aleksey Midenkov <[email protected]>
>> Date: Tue, 1 Jul 2014 18:01:15 +0400
>>
>> When I start gdb under sudo, I get this message:
>>
>> warning: not using untrusted file "/home/midenok/.gdbinit"
>>
>> Any easy way to overcome this?
>
> See the node "Auto-loading safe path" in the GDB manual.

It doesn't work.

# gdb

warning: not using untrusted file "/home/midenok/.gdbinit"
(gdb) show auto-load safe-path
List of directories from which it is safe to auto-load files is /home/*.
(gdb)

I also tried other variants:
/home/midenok
/home/midenok/
/home/midenok/.gdbinit

Nothing works!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.