tag:blogger.com,1999:blog-17487316.post2092112981058697720..comments2024-01-13T09:14:12.131+00:00Comments on The life of a Games Programmer: Debugging....Mikehttp://www.blogger.com/profile/15958965170878448339noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-17487316.post-3898947872766930442008-07-31T17:55:00.000+00:002008-07-31T17:55:00.000+00:00Its for both emulators and real machines. Mainly f...Its for both emulators and real machines. Mainly for a real machine I guess, but since Im doing a plug-in system, I figured I could allow emulators access to it as well. But because of that I need to keep it very small. However, its a good refrence to seem what they've used, as chances are I'll need something similar.Mikehttps://www.blogger.com/profile/15958965170878448339noreply@blogger.comtag:blogger.com,1999:blog-17487316.post-49975856446529540722008-07-31T16:55:00.000+00:002008-07-31T16:55:00.000+00:00I thought this was a stub built into emulators so ...I thought this was a stub built into emulators so you can talk to them from the host computer (or another on the network). If it's an emulator, you don't have to worry as much about space. The gdb protocol is quite small, especially if you implement only part (register access, breakpoints, etc.) I too agree the built-in VICE debugger sucks and would like to have gdb protocol support to plug in whatever I want. Maybe I'll code that up sometime.<BR/><BR/>If you're doing something on the c64 itself, I agree it needs to be even more small and hard-coded.Unknownhttps://www.blogger.com/profile/11280644250533859717noreply@blogger.comtag:blogger.com,1999:blog-17487316.post-17623702473441173492008-07-28T17:16:00.000+00:002008-07-28T17:16:00.000+00:00Its an interesting idea, but from first glance its...Its an interesting idea, but from first glance its way too much for a small target to implement. I want to have UDP on the C64 as well as emulators, but theres no way Im spending the amount of memory needed for a full gdb stub. Also, if I can get everything I need on a C64 stub then theres probably not much point in adding extra stuff for for an emulator.<BR/><BR/>That said... I'll look into it more and see whats its likely to cost, or at the very least look a the functions it implements and copy what I need from it as a good starting point.<BR/><BR/>I want to use as little memory as possible for the stub, and Im currently sitting at around 0.5K (well..421 bytes), but know I have to add some more bits. <BR/><BR/>The UDP one will take more but it must be less than 1K or its of no use as a <I>professional</I> setup.<BR/>(professional in the sense of what I was used to back in the day).Mikehttps://www.blogger.com/profile/15958965170878448339noreply@blogger.comtag:blogger.com,1999:blog-17487316.post-65399020484324741142008-07-28T08:32:00.000+00:002008-07-28T08:32:00.000+00:00Don't reinvent the wheel with a custom UDP protoco...Don't reinvent the wheel with a custom UDP protocol. Just implement the <A HREF="http://sourceware.org/gdb/current/onlinedocs/gdb_33.html" REL="nofollow">gdb remote protocol</A> over TCP for the best compatibility. It's quite simple, here's an <A HREF="http://www.embedded.com/1999/9911/9911feat3.htm" REL="nofollow">intro</A>.<BR/><BR/>-NateUnknownhttps://www.blogger.com/profile/11280644250533859717noreply@blogger.com