It has been a few years, but I used to hit this on x86 too. If I
correctly recall...

The kernel is loading in 32b mode initially before switching to 64b
mode. Your gdb is set to 64b mode. I think the way to get around this
is to set a break on a symbol after the kernel has switched to 64b
mode. continue until you hit that symbol and then everything will
work. You can set 'set arch' in gdb to change the arch.

On Mon, Mar 12, 2012 at 11:09 AM, Justin Drake <[email protected]> wrote:
> I am using OpenOCD and DGB to talk with my ARM Cortex 3M chip. When I
> load my .elf file onto GDB, the moment I connect to my board (target
> remote localhost:3333) I get the error message:
>
> Remote 'g' packet reply is too long:
> 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fc010020ffffffff010000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000001
>
> Reading about the issue, I gather it might be a 32bit vs 64bit issue.
> How can I fix this?
>
> ------------------------------------------------------------------------------
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-dev2
> _______________________________________________
> OpenOCD-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openocd-devel



-- 
Jon Smirl
[email protected]

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to