gdb not found


 
Thread Tools Search this Thread
Top Forums Programming gdb not found
# 8  
Old 09-24-2010
Quote:
Originally Posted by mind@work
@Corona688:

I tried to run gdb both on my machine and on the robot.
What function would running it on your local machine serve? They're probably not even the same architecture.
Quote:
ON my machine it is giving me the problem, I just talked about
"file not found" can sometimes, and bafflingly, mean "incorrect architecture". You can't run or debug ARM executables on an x86 machine.
Quote:
so am prob. thinking of installing gdb on my robot, if there is any way, but not sure if it will work at all.
This is what you have to do. I don't see why it wouldn't be possible, the robot you're using is a linux machine at core. You might end up needing to build it yourself in your ARM cross-compiler.
# 9  
Old 09-29-2010
@Corona688:

I tried to install gdb on my robot but it has total of 12 MB hard drive whereas, gdb needs atleast 15MB.

So it is giving me "not enough space" error. So i guess would need to debug only with the printf statements Smilie
# 10  
Old 09-29-2010
By 'gdb needs 15 megabytes' do you mean 'the source tarball is 15 megabytes'? You don't need to copy over the whole source tarball. Build it on your PC system with your cross compiler and copy over only the executable, and the files it needs to run.

Or if there's some harebrained binary package available that somehow wastes 15 megs of space, extract it manually on your PC and copy over only the minimum things it needs to run. The gdb executable on my system is 3.4 megs in size, and the things it needs under /usr/share/gdb/syscalls/ only a few kilobytes in size.

If you end up printf-ing, try 'fprintf(stderr, "string%d", 4); instead of plain printf, printing to stderr will ensure that it prints unbuffered, i.e. printf("the result is: "); code_that_crashes; ...will probably print nothing, while fprintf(stderr, "the result is: "); code_that_crashes; will print "the result is:" before crashing.

Last edited by Corona688; 09-29-2010 at 06:02 PM..
# 11  
Old 09-30-2010
@Corona688:not sure how to copy the executables to the robot.....bt. tried fprintf and definitely it's lotttt better than printf.

Thank you so much, it helped a lott!!!!!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Qemu + gdb

Hi, I got: host machine: RedHat (RHEL6) virtual machine: RedHat (RHEL6) I run (on host machine): qemu-system-x86_64 ...... -S -s after that i run (on host machine): gdb target remote localhost:1234 set architecture i386:x86-64 and then i can use (on host machine) 'ctrl + c' to... (2 Replies)
Discussion started by: Chrisdot
2 Replies

2. Programming

gdb help

i have created some break points in gdb. let's say.... b sqlcxt how can i know the breakpoint name of sqlcxt ??? (1 Reply)
Discussion started by: lipun4u
1 Replies

3. UNIX for Advanced & Expert Users

gdb and ptrace ????

Hi all What 's the relationship between gdb and ptrace, if the kernel does not support ptrace, can gdb work ? Is there some one can explain this for me (3 Replies)
Discussion started by: yanglei_fage
3 Replies

4. UNIX for Advanced & Expert Users

Using Gdb

Hi All, I am trying to execute a binary and it is giving Segmentation Fault. Can I use gdb to debug this error? Secondly there is no core file generated , so when I an trying to run gdb with the binary only I am not able to set any breakpoints. When I am running the gdb and the I am... (1 Reply)
Discussion started by: shubhranshu
1 Replies

5. UNIX for Advanced & Expert Users

Gdb

Hi All, I wanted to know if there is a core file generated and I am not sure for which Binary it is generated . Can I use gdb to debug the core file ? Thanks. (1 Reply)
Discussion started by: shubhranshu
1 Replies

6. UNIX for Advanced & Expert Users

Gdb:

Hi, This is a simple question on GDB. Given a core file, how can you check which process has dumped the core? Regards - Krishna (1 Reply)
Discussion started by: krishnamurthig
1 Replies

7. Solaris

gdb for SunOS 5.6

I want to install gdb on SunOS 5.6 machine. Where can i download from ? (1 Reply)
Discussion started by: shafi2all
1 Replies

8. Shell Programming and Scripting

how can i check in csh if command found or not found ?

hello all im trying to use in sun Solaris the information received from the top command now i several machines that dont have install the top program so when im running the script im geting error saying after im running this code : set MemoryInfo = `top | grep Memory` if (... (2 Replies)
Discussion started by: umen
2 Replies

9. Programming

gdb command

I'm having problem understanding the how to use gdb command to debug my program. Can anyone give me some suggestion how to start, and examples. I read the manual in unix...I'm still confuse. (6 Replies)
Discussion started by: Confuse
6 Replies

10. Programming

GDB or DBX??

Which is better?? I have always been a gdb fan.. But ppl say dbx is beter better for debugging the core.. Do all GDB lovers agree to it??? :cool: (1 Reply)
Discussion started by: jyotipg
1 Replies
Login or Register to Ask a Question