Author Topic: cross debug with C::B  (Read 5554 times)

Offline sitt

  • Single posting newcomer
  • *
  • Posts: 6
cross debug with C::B
« on: January 30, 2011, 11:55:16 am »
Hi, request excuses my bad English.
I plan the following and hope for somebody can help me here.
I have a Linux arm host.
I edit the source code only with C::B editor now.
I build the whole in the console.
I would like C::B now, however and GDB use for debugging.
Please help me at the configuration.

Compiling in c::b would not be necessary absolutely.

Please answer in German if possible

THX
Sitt

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: cross debug with C::B
« Reply #1 on: January 30, 2011, 01:30:37 pm »
Google the following:

site:forums.codeblocks.org remote debugging

site:forums.codeblocks.org embedded

site:forums.codeblocks.org arm
« Last Edit: January 30, 2011, 01:34:02 pm by Pecan »

Offline sitt

  • Single posting newcomer
  • *
  • Posts: 6
Re: cross debug with C::B
« Reply #2 on: January 30, 2011, 08:27:47 pm »
Thank you for the help.
Unfortunately, it has not further helped me yet
I have carried out the attitudes:
Project -> Properties -> Debugger tab -> Remote connection
Unfortunately, gdb does not connect himself

Code
Selecting target: 
Debug
Adding source dir: /home/xx/codeblocks/xxxxxx/xx/
Adding source dir: /home/xx/codeblocks/xxxxxx/
Adding file: bin/Debug/xx
Starting debugger:
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 6.8-debian
Connected
The program is not being run.
Debugger finished with status 0


Greeting
Sitt

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: cross debug with C::B
« Reply #3 on: January 31, 2011, 12:01:18 am »
You can enable the debugger's debug log to see what gdb commands are executed and their output:

Settings -> Compiler and Debugger -> Debugger -> Display debugger's log.

Also I advise you to try the latest debugger's branch nightly. There are some improvements in regards to remote debugging.
(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!]

Offline sitt

  • Single posting newcomer
  • *
  • Posts: 6
Re: cross debug with C::B
« Reply #4 on: February 01, 2011, 12:11:14 am »
Thank you for the help.
Today, I have not arrived.
Wanting to try it as soon as possible once again.

Quote
Also I advise you to try the latest debugger's branch nightly. There are some improvements in regards to remote debugging.

I think I am up-to-date there

Greeting
Sitt

Offline sitt

  • Single posting newcomer
  • *
  • Posts: 6
Re: cross debug with C::B
« Reply #5 on: February 02, 2011, 08:57:55 pm »
Hi,

I can connect with the gdbserver so now.
The application starts with the  Debug/Continue-Button.
Unfortunately, I have not managed yet to put break points or to get back information of the server.

Please still help me at this problem. THX

regards
Sitt

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: cross debug with C::B
« Reply #6 on: February 02, 2011, 09:40:57 pm »
I can't see your log :lol:

Have you read this: http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks ?
(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!]

Offline sitt

  • Single posting newcomer
  • *
  • Posts: 6
Re: cross debug with C::B
« Reply #7 on: February 03, 2011, 01:02:18 am »
Hi,

Log comes later if necessary.

Yes, I have read it.
Yes, I have compiled with option -g.
I build but not with C::B but by consols, this is . the next topic :)
I must with console client on the gdbserver locally binary this is give (file ...)
then also must something like that make at C::B or?

regards
Sitt
« Last Edit: February 03, 2011, 01:05:49 am by sitt »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: cross debug with C::B
« Reply #8 on: February 03, 2011, 09:12:01 am »
Cannot compute...  :shock:

To be able to remote debug you need to have the same binaries on the remote machine (the one running gdbserver) and on the one running C::B + gdb.
If there are mismatches it won't work reliably.
(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!]

Offline sitt

  • Single posting newcomer
  • *
  • Posts: 6
Re: cross debug with C::B
« Reply #9 on: February 03, 2011, 05:28:35 pm »
Hi,
There is no deviation between the file on the server and the host.
This file is mounted over nfs on the server machine.

Where is C::B looking for the file?

regards
Sitt

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: cross debug with C::B
« Reply #10 on: February 03, 2011, 05:30:25 pm »
Read the debugger's debug log and post it probably.
You'll see what C::B is telling gdb to do and what is the response.
(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!]