- Unpack attached archive to /mtd_rwcommon/
- copy /mtd_rwcommon/gdb to some location from PATH variable
- add to your .gdbinit:
Code: Select all
set libthread-db-search-path /mtd_rwcommon/debug/lib/ set auto-load safe-path /mtd_rwcommon/debug/lib/
[Tutorial] Debugging (with breakpoints) on C series
[Tutorial] Debugging (with breakpoints) on C series
You do not have the required permissions to view the files attached to this post.
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
-
- Posts: 61
- Joined: Fri Dec 17, 2010 12:37 am
Re: [Tutorial] Debugging (with breakpoints) on C series
Wow, this is exciting! I've tried to get gdb working, but never got very far. In order to try out your version of gdb, I thought I'd try to make a patch to allow media playback from an xfs format usb drive. However, I'm having some problems. Would you let me know if you can see problems with what I'm doing?
I started gdb with
After I did that, when I pressed MEDIA (or any other remote button), the led on the tv flash, but the button has no other effect. After, when I exit gdb with quit, the button has it's effect. Since the button doesn't seem to execute anything while gdb is running, I thought that exeDSP wasn't running. However, when I type 'run' to gdb, I get "The program being debugged has been started already." I want to place breakpoints to see what happens when I press MEDIA, but pressing MEDIA doesn't do anything when gdb is running.
I started gdb with
Code: Select all
gdb /mtd_exe/exeDSP 61
Re: [Tutorial] Debugging (with breakpoints) on C series
You start gdb incorrectly you should use:plasticassius wrote:Wow, this is exciting! I've tried to get gdb working, but never got very far. In order to try out your version of gdb, I thought I'd try to make a patch to allow media playback from an xfs format usb drive. However, I'm having some problems. Would you let me know if you can see problems with what I'm doing?
I started gdb withAfter I did that, when I pressed MEDIA (or any other remote button), the led on the tv flash, but the button has no other effect. After, when I exit gdb with quit, the button has it's effect. Since the button doesn't seem to execute anything while gdb is running, I thought that exeDSP wasn't running. However, when I type 'run' to gdb, I get "The program being debugged has been started already." I want to place breakpoints to see what happens when I press MEDIA, but pressing MEDIA doesn't do anything when gdb is running.Code: Select all
gdb /mtd_exe/exeDSP 61
Code: Select all
gdb --pid 61
Code: Select all
gdb --pid `pidof exeDSP`
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
-
- Posts: 61
- Joined: Fri Dec 17, 2010 12:37 am
Re: [Tutorial] Debugging (with breakpoints) on C series
Thanks, but it behaves the same when I start it the way you recommend.
Re: [Tutorial] Debugging (with breakpoints) on C series
I think you don't know how to use gdb After starting gdb program is HANGED. You nee to use:plasticassius wrote:Thanks, but it behaves the same when I start it the way you recommend.
Code: Select all
continue
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
-
- Posts: 61
- Joined: Fri Dec 17, 2010 12:37 am
Re: [Tutorial] Debugging (with breakpoints) on C series
Yes! Thanks! I ran continue and exeDSP became resposive! However, afterwards, the gdb prompt didn't reappear. I take it that only one of gdb or exeDSP runs at a time. Although, I'm getting messages from gdb about threads starting and exiting.
You're right that I don't have much experience with gdb, but I think that I'll be able to learn more about it now. My next step will be to try out breakpoints and watchpoints.
You're right that I don't have much experience with gdb, but I think that I'll be able to learn more about it now. My next step will be to try out breakpoints and watchpoints.