View Post - post87424
Re: AW: Momentix IDE Debugger Error
In your IDE, debug perspective, click on the gdb entry in the left-hand 
side view where thread, inferior, is shown in a tree. Bottom view should 
then show gdb console. In it, type:

show version

it will print the version.

Another way is to open your 'cmd.exe' and type:

C:> ntox86-gdb
(gdb) show version


Could you turn on verbose logging in the IDE, in your debug 
configuration, Debugger tab, scroll down and check the checkbox. Then 
copy the output from gdb console and paste it here (or in an attached file).







On 07/19/2011 09:25 AM, Andreas Beschorner wrote:
> Greetings mate,
>
> how can I get information about which gdb version is used within the toolchain?
> As gdb is not installed on the virtual machine/ target I need to do this via the IDE somehow...
>
> The system itself: X86 running QNX on a virtual machine in Windows 7 64bit, Momentix 6.5.0.
>
> Thanks for help,
> Andreas
>
> -----Ursprüngliche Nachricht-----
> Von: Aleksandar Ristovski [mailto:community-noreply@qnx.com]
> Gesendet: Dienstag, 19. Juli 2011 15:17
> An: general-ide
> Betreff: Re: Momentix IDE Debugger Error
>
> Which architecture, release and gdb version are you using?
>
>
> Works for me on x86, 6.5.0, gdb 6.8 rev. 506 :
>
>
>
> (gdb) b 21
> Breakpoint 1 at 0x8048757: file
> /home/aristovski/testcases/forumproblem/main.cc, line 21.
> (gdb) c
> The program is not being run.
> (gdb) r
> Starting program: /shared/forumproblem_g
> [New pid 225310 tid 1]
>
> Breakpoint 1, __static_initialization_and_destruction_0 (__initialize_p=1,
>       __priority=65535) at /home/aristovski/testcases/forumproblem/main.cc:21
> 21      int* testDebug::devastator = new int[666];
> (gdb) step
> 32      }
> (gdb)
> 0x080487c2 in __do_global_ctors_aux ()
> (gdb)
> Single stepping until exit from function __do_global_ctors_aux,
> which has no line number information.
> 0x0804848e in _init ()
> (gdb)
> Single stepping until exit from function _init,
> which has no line number information.
> 0x080485c9 in _start ()
> (gdb)
> Single stepping until exit from function _start,
> which has no line number information.
> 0xb0367750 in _init_array () from /opt/qnx650/target/qnx6/x86/lib/libc.so.3
> (gdb)
> Single stepping until exit from function _init_array,
> which has no line number information.
> 0x080485d8 in _start ()
> (gdb)
> Single stepping until exit from function _start,
> which has no line number information.
> main (argc=0x1, argv=134512356)
>       at /home/aristovski/testcases/forumproblem/main.cc:24
> 24      {
> (gdb)
> 26              int j=0;
> (gdb)
> 27              for (int i=0; i<  9; ++i)
> (gdb)
> 29                      j+=i;
> (gdb)
> 27              for (int i=0; i<  9; ++i)
>
> (gdb) show version
> GNU gdb 6.8 qnx-nto (rev. 506)
> Copyright (C) 2008 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> <http://gnu.org/licenses/gpl.html>;
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "--host=i686-pc-linux-gnu
> --target=i486-pc-nto-qnx6.5.0".
>
>
> On 07/19/2011 07:47 AM, Andreas Beschorner wrote:
>> Greetings,
>>
>> the Momentix/Eclipse IDE Debugger (maybe the used debugger is the
>> reason, I am not sure here) messes up things completely when debugging
>> QNX-Accplications with classes including static member pointers. After
>> having initialized them, when using "step in"or step over" debugging
>> methods, the heap seems to be destroyed and return points, function
>> boundaries etc. are becoming invalid.
>>
>> Attached file demonstrates the behaviour. How to reproduce: Start
>> debugging an application, and press F6 or F5 or set a breakpoint at the
>> point of the pointer initialization and afterwards use step in/over.
>> Using F8 until the debugger reaches the entry point (main here) works
>> around the bug.
>>
>> Best regards,
>> Andy
>>
>>
>>
>>
>>
>> _______________________________________________
>>
>> General
>> http://community.qnx.com/sf/go/post87420
>>
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post87421
>
>