Re: [Development] Qt Creator Debug - GDB error

2013-03-03 Thread André Pönitz
On Sat, Mar 02, 2013 at 01:20:09AM +1100, Majid Khan wrote:
 Thanks,
 
 
 ptrace: Operation not permitted.
 
 
 Could not attach to the process. Make sure no other debugger traces this
 process.
 
 Check the settings of
 
 /proc/sys/kernel/yama/ptrace_scope
 
 For more details, see /etc/sysctl.d/10-ptrace.conf
 
 
 and contents of file:
 
 kernel.yama.ptrace_scope = 1

Do you have Run in Terminal selected?

That's not needed for debugging a Gui applications.

Andre'

___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


[Development] Qt Creator Debug - GDB error

2013-03-01 Thread Majid Khan
I am trying to debug Qt Creator (working on #7044) but when I debug (its
new linux mint 14 Nadia Cinammon) my gdb gives error

Starting executable failed:

/home/majid/projects/qtcreator-build/bin/qtcreator.sh: not in executable
format: File format not recognised


but all other pet projects build alright in debug mode.


Can someone please help?


-- 
Majid Khan
http://www.icplusplus.com
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] Qt Creator Debug - GDB error

2013-03-01 Thread Majid Khan
Thanks,

ptrace: Operation not permitted.


Could not attach to the process. Make sure no other debugger traces this
process.

Check the settings of

/proc/sys/kernel/yama/ptrace_scope

For more details, see /etc/sysctl.d/10-ptrace.conf


and contents of file:

kernel.yama.ptrace_scope = 1




On Sat, Mar 2, 2013 at 1:10 AM, Poenitz Andre andre.poen...@digia.comwrote:

 Majid Khan wrote:
  I am trying to debug Qt Creator (working on #7044) but when I debug
  (its new linux mint 14 Nadia Cinammon) my gdb gives error
 
  Starting executable failed:
  /home/majid/projects/qtcreator-build/bin/qtcreator.sh: not in
 executable format: File format not recognised

 That's the wrong run configuration (the one for the wrapper script,
 not the application itself). Select 'app', not 'bin' in the Target selector
 or under Projects/Run Run configuration.

 Andre'





-- 
Majid Khan
http://www.icplusplus.com
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] Qt Creator Debug - GDB error

2013-03-01 Thread Majid Khan
Great! Thanks :)


On Sat, Mar 2, 2013 at 1:34 AM, Mitch Curtis mitch.cur...@digia.com wrote:

 On 03/01/2013 03:20 PM, Majid Khan wrote:
  Thanks,
 
  ptrace: Operation not permitted.
 
 
  Could not attach to the process. Make sure no other debugger traces this
  process.
 
  Check the settings of
 
  /proc/sys/kernel/yama/ptrace_scope
 
  For more details, see /etc/sysctl.d/10-ptrace.conf
 
 
  and contents of file:
 
  kernel.yama.ptrace_scope = 1
 

 This is a known issue:
 https://bugreports.qt-project.org/browse/QTCREATORBUG-3509

 Feel free to vote for it. :)
 ___
 Development mailing list
 Development@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/development




-- 
Majid Khan
http://www.icplusplus.com
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development