Author Topic: Remote debugging with gdb under Linux  (Read 2221 times)

Offline seahawkibiza

  • Multiple posting newcomer
  • *
  • Posts: 28
Remote debugging with gdb under Linux
« on: July 19, 2016, 12:45:27 pm »
Hello,

I have a small problem. First my envoirement:

Host:
i386, Linux debian, Kernel 3.x, LXDE, C::B,
Application to debug: Multithreaded, multi process (aprox. 10 threads, 2 processes), build with wxWidgets 3.0

In C::B: I copied the local debug Target to a new one what I named Debug Remote. There I setup the options for the remote debugger (IP, Port)

Target:
i386 (VIA CPU, 1GHz), Linux debian, Kernel 4.x, LXDE
Application runs without error - but I will debug some network related functions.
I´ve started gdbserver --debug localhost:2222 Progname

After this I´ve started on the host the debugger in C::B. On the target the programs started now also, because I´ve started with the --debug option I can see the commands in the terminal.

If I set a breakpoint in C::B this was transmitted and the debugger on the targets sets this breakpoint. But nothing happens.
The breakpoints are in an other task as the main-task.

But then I´ve setup a breakpoint in the mainApp.cpp and nothing. The debugger don´t stops at the breakpoints.

Whats my mistake?


Offline seahawkibiza

  • Multiple posting newcomer
  • *
  • Posts: 28
Re: Remote debugging with gdb under Linux [Solved]
« Reply #1 on: July 19, 2016, 01:14:08 pm »
Sorry - after checking 1000 times i found a stupid error.
In the project options was the path to the builded binary wrong, so I copied always a wrong version to the target and the too versions was´nt the same -  :-[