6 Replies Latest reply on Sep 28, 2015 7:19 AM by Ruscoff

    Eclipse debug not work

    Ruscoff

      Hi,

         Sometimes eclipse debug stop working exiting after press run or step button:

       

       

      This is shell report of eclipse:

      root@marco:~# echo $PWD'>'

      /home/root>

      root@marco:~#

      root@marco:~# chmod 755 /tmp/SailData;gdbserver :2345 /tmp/SailData;exit

      Process /tmp/SailData created; pid = 30199

      Listening on port 2345

      Remote debugging from host 192.168.1.87

       

       

      Child terminated with signal = 0xb (SIGSEGV)

      GDBserver exiting

      logout

       

      Edison mounts last image and Eclipse has version: Luna SR1 (4.4.1), the last one of intel edison download.

      Project has default build and debug setting of IoT cross GCC.

       

      If i try with another project with same setting it debugs correctly.

       

      Thanks

        • 1. Re: Eclipse debug not work
          Ruscoff

          I forget to say, that code works well if i try to upload it through FTP and start from shell

          • 2. Re: Eclipse debug not work
            JPMontero_Intel

            Hi Ruscoff,

             

            I’ve just tested it with an Edison Arduino expansion board using the image ww18-15 on Eclipse Luna SR1 (4.4.1). I uploaded a Blink.cpp example and I was able to debug the code correctly. How long does it take to disconnect when you are debugging?

             

            Regards,
            JPMontero_Intel

            • 3. Re: Eclipse debug not work
              Ruscoff

              Hi Montero,

                 i'm agree with you that in the same board if i try to load blink.cpp or whatever project debug works properly. The project that i'm talking about has debugged without problem but from moment to moment it started to have problem. This is the secondth time that i see this behave.   Last time i had to reload S.O., but it haven't sense, other projects debug correctly.

               

              Thanks

              Marco

              • 4. Re: Eclipse debug not work
                JPMontero_Intel

                Ruscoff,  Have you noticed under which conditions the debugging fails so we can replicate it? Maybe if you are having this issue with a specific project it can be related with its content. If this is the case and if you have the possibility to share your project do it so we can try to replicate. If you don’t feel comfortable by sharing your code publicly maybe you can fill out this form to generate a case for this issue and then you can send us your code privately. We are asking this because we would like to find the source of this issue but we need as much information on how and when is failing.

                 

                Regards,
                JPMontero_Intel

                • 5. Re: Eclipse debug not work
                  Ruscoff

                  It happens again. This time i stopped debugger when it was hold in breakpoint. On next debug session it didn't start.

                  Maybe are there a ways to reset gdb variable or session?

                   

                  NB: sometimes, when i start debug eclipse show a page that say "some header file not found"

                   

                  I can share the code but i think it's not code dependent.

                   

                  Thanks

                   

                  Marco

                  • 6. Re: Eclipse debug not work
                    Ruscoff

                    Maybe i find the solution: add to function main() the SIGSEV handle:

                     

                    void handle(int n)
                    {
                         puts("Bail");
                         exit(1);
                    }
                    
                    main()
                    {
                         signal(SIGSEGV, handle);
                         ...
                    
                    

                     

                    Now it works but i think there is something wrong...

                     

                    Marco