Languages

Menu
Sites
Language
Unable to get rid of GDB security protection to debug on device

Hi there. I am on Windows 7, and it's my first attempt to debug an application on target device. I'm using SDK v. 2.1.

The problem is that when I launch the app in debug mode, GDB raises a security exception and refuses to load the binary. Details are below:

Reading symbols from D:\Projects\tizen\workspace\XXXX\Debug-Tizen-Device\.tpk\bin\XXXX.exe...done.
To enable execution of this file add
    add-auto-load-safe-path D:\Projects\tizen\workspace\XXXX\.gdbinit
line to your configuration file "$HOME/.gdbinit".
To completely disable this security protection add
    set auto-load safe-path /
line to your configuration file "$HOME/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
    info "(gdb)Auto-loading safe path"
warning: File "D:\Projects\tizen\workspace\XXXX\.gdbinit" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".

Now, has anyone experienced and fixed this? I tried to create a file named .gdbinit in either project home (D:\Projects\tizen\workspace\XXXX\) and my "home" folder in Windows ("C:\users\myuser") and put there "set auto-load safe-path /" but it doesn't work.

I can see that GDB is parsing at least the first file (because if I generate a syntax error there it complains) but it doesn't seem to care about the command I am trying to give it.

Any clue?

Thanks in advance,

Filippo

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

2 Replies
Vineet Tiwari
Hi zark75 Can you share your log details? Thanks, Vineet tiwari
Filippo Forchino
Hi, I found out that the problem was due to the project having been generated by BADA Import tool (in SDK 2.0). I created a brand new Tizen 2.1 project, copied into it my sources and resources, built it and I can debug on target normally. The whole Tizen environment is still very buggy. BADA import, specially, does a lot of boring work in your place but does not really end up with a working Tizen project, at least this is my experience. Thanks anyways!