News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

cross debug with C::B

Started by sitt, January 30, 2011, 11:55:16 AM

Previous topic - Next topic

sitt

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

Pecan

#1
Google the following:

site:forums.next.codeblocks.org remote debugging

site:forums.next.codeblocks.org embedded

site:forums.next.codeblocks.org arm

sitt

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

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

oBFusCATed

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!]

sitt

Thank you for the help.
Today, I have not arrived.
Wanting to try it as soon as possible once again.

QuoteAlso 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

sitt

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

oBFusCATed

(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!]

sitt

#7
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

oBFusCATed

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!]

sitt

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

oBFusCATed

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!]