Rockbox Development > Starting Development and Compiling
Using gdb for debugging
rkostynu:
here is a link I found:
http://users.actcom.co.il/~choo/lupg/tutorials/debugging/debugging-with-gdb.html
I'm kind of in the same boat with learning, so debugger is the best way to jump into the fire..
I create engineering applications using C# in .Net and Java, been a few years since Ive used C++ since C# came along, and never used C (maybe in highschool, 20 years ago). C isn't that hard to learn, esp. if you've been exposed to C++.
What I did was start with all the header files , printed most of the common ones out , started with main.c to get a list to start with ( config.h, , etc...) and just start reading...
...get a handle on all the preprocessors, whats in, whats out and why.
..then scan all the header files to see what the function prototypes look like
im just going to teach myself gdb, so if i come across any other tuts ill let you know...
when your used to Visual Studio and graphical IDE's, its a bit of work, but at least im working my typing skills
GodEater:
You could always use one of the many nice front ends for gdb. I quite like 'ddd' the Data Display Debugger - which puts a nice gui over the top of gdb.
iPodFoo:
That ddd looks interesting godeater. Problem is how can i install it?
Ive tried
--- Code: ---dpkg -i ddd_3.3.11-1_i386.deb
--- End code ---
but says theres dependency problems. So I tried
--- Code: ---apt-get -f install
--- End code ---
Still wont get the dependent files. They are:
--- Code: ---debian:/home/user# apt-get -f install
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
ddd: Depends: libgcc1 (>= 1:4.0.0-7) but 1:3.4.3-13 is installed
Depends: libncurses5 (>= 5.4-5) but 5.4-4 is installed
Depends: libstdc++6 (>= 4.0.0-10) but it is not installed
E: Unmet dependencies. Try using -f.
debian:/home/user#
--- End code ---
Currently using the Debian package provided by rockbox. Tried looking at debian related forums but just recommend what I tried. :-\
GodEater:
Unfortunately for you, I'm not a debian expert.
However, I probably wouldn't have started that with the "dpkg -i" - I'd just have done an "apt-get install ddd".
I'm not sure what having done it with dpkg has done to your package database - so I've no idea how to fix it - sorry :(
It looks like you need to upgrade the versions of libgcc and libncurses5 you have installed to the ones it says in the unmet dependencies section of that report. And you need to install libstdc++ too. I'm guessing that the reason their not currently installed is that their in the testing branch of debian, and not stable - but that's a completely wild stab in the dark - I could be utterly wrong.
You could always drop into IRC and ask nicely for the image maintainer to install ddd and replace the default image with the new one I suppose :-\
scorche:
There is no "image maintainer", but I did update the image last.
Download the new image and try it. (And tell me if the image works as well. I have not gotten a response if the new one works on a computer other than mine yet. Networking would be the thing that would break if I had done something incorrectly.)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version