Author Topic: Debug remote linux application using gdb cannot stop?  (Read 15491 times)

Offline jinxin16897123

  • Multiple posting newcomer
  • *
  • Posts: 12
Debug remote linux application using gdb cannot stop?
« on: September 04, 2013, 03:41:44 am »
I'm debugging remote linux application using arm-none-linux-gnueabi-gdb, it couldn't stop and exit normally after the Debug button was clicked.
The following was log:

Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: e:\CodeSourcery\Sourcery_CodeBench_Lite_for_ARM_GNU_Linux\bin\
Adding source dir: e:\iWork\codeblocks\workspace\start\
Adding source dir: e:\iWork\codeblocks\workspace\start\
Adding file: e:\iWork\codeblocks\workspace\start\bin\Debug\start.exe
Changing directory to: e:/iWork/codeblocks/workspace/start/.
Set variable: PATH=.;E:\CodeSourcery\Sourcery_CodeBench_Lite_for_ARM_GNU_Linux\bin;E:\CodeSourcery\Sourcery_CodeBench_Lite_for_ARM_GNU_Linux\bin\bin;D:\Program Files\Microsoft Visual Studio 10.0\VC\bin;D:\Program Files\Microsoft Visual Studio 10.0\VC;D:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE;D:\Program Files\MinGWStudio\MinGW\bin;C:\MinGW\bin;C:\MinGW;E:\CodeSourcery\Sourcery_CodeBench_for_ARM_EABI\bin;D:\Program Files\ARM\bin\win_32-pentium;D:\Perl\site\bin;D:\Perl\bin;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;D:\Program Files\ARM\RVCT\Programs\3.0\586\win_32-pentium;D:\Program Files\ARM\Utilities\FLEXlm\10.8.0\12\win_32-pentium;D:\Program Files\ARM\RVD\Core\3.0.1\309\win_32-pentium\bin;D:\Program Files\ATMEL Corporation\AT91-ISP v1.13\Library;D:\Program Files\ATMEL Corporation\AT91-ISP v1.13\sam-ba 2.9;D:\Banyan-UE;d:\Program Files\Microsoft Visual Studio 10.0\VC\bin;C:\Windows\System32\bin;C:\Windows\System32\System32;E:\Python27;E:\Python27\Scripts
Starting debugger: E:\CodeSourcery\Sourcery_CodeBench_Lite_for_ARM_GNU_Linux\bin\arm-none-linux-gnueabi-gdb.exe -nx -fullname  -quiet  -args e:/iWork/codeblocks/workspace/start/bin/Debug/start.exe
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Connecting to remote target
Setting breakpoints
Debugger name and version: GNU gdb (Sourcery CodeBench Lite 2013.05-24) 7.4.50.20120716-cvs
Connected
Remote debugging using tcp:192.168.2.8:1347
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
0xb6fd5ee0 in ?? ()
In ?? () ()
At e:\iwork\codeblocks\workspace\start\main.cpp:11
[Inferior 1 (process 92) exited normally]
Debugger finished with status 0


Thank you very much for your attention.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Debug remote linux application using gdb cannot stop?
« Reply #1 on: September 04, 2013, 09:26:09 am »
I'm not sure I understand what is the problem. You should try to explain better.
Also next time please use code tags for long pastes.
Another thing you should do is enable the full log in the debugger's settings.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]