Re: [Openocd-development] [PATCH] basic ARM semihosting support

2009-12-04 Thread David Brownell
On Thursday 03 December 2009, Nicolas Pitre wrote: > Interest is pretty evident when you want to display debugging > information from code running on a target without a serial port for > example, or during early board bringup when there is simply no code yet > to drive the serial port.  This is

Re: [Openocd-development] [PATCH] basic ARM semihosting support

2009-12-03 Thread David Brownell
On Thursday 03 December 2009, Nicolas Pitre wrote: > I'll let someone else modify the NEWS.  As to the TODO items: they're > already commented in the code.  So please just commit v2 as is now and > let's put incremental improvements on top.  I want other people to get > involved too!  ;-) OK, I

Re: [Openocd-development] [PATCH] basic ARM semihosting support

2009-12-03 Thread Nicolas Pitre
On Thu, 3 Dec 2009, David Brownell wrote: > Cool! > > On Thursday 03 December 2009, Nicolas Pitre wrote: > > > Some docs to openocd.texi would be great. > > > > It sure would.  ;-) > > More like "essential". ;) I provided the minimum in version 2 of the patch. For improved prose I'll defer

Re: [Openocd-development] [PATCH] basic ARM semihosting support

2009-12-03 Thread David Brownell
Cool! On Thursday 03 December 2009, Nicolas Pitre wrote: > > Some docs to openocd.texi would be great. > > It sure would.  ;-) More like "essential". ;) Also, NEWS; and surely a few TODO list updates (like that mapping table, etc). What's the story on how one would *use* this? Must target co

Re: [Openocd-development] [PATCH] basic ARM semihosting support

2009-12-03 Thread Nicolas Pitre
On Thu, 3 Dec 2009, Zach Welch wrote: > On Thu, 2009-12-03 at 12:27 -0500, Nicolas Pitre wrote: > > On Thu, 3 Dec 2009, Zach Welch wrote: > > > > > On Thu, 2009-12-03 at 10:39 +0100, Øyvind Harboe wrote: > > > > I added a missing #include , but it is not quite ready to > > > > commit > > > > yet

Re: [Openocd-development] [PATCH] basic ARM semihosting support

2009-12-03 Thread Zach Welch
On Thu, 2009-12-03 at 12:27 -0500, Nicolas Pitre wrote: > On Thu, 3 Dec 2009, Zach Welch wrote: > > > On Thu, 2009-12-03 at 10:39 +0100, Øyvind Harboe wrote: > > > I added a missing #include , but it is not quite ready to > > > commit > > > yet I think. > > > > > > Does it build under Windows? P

Re: [Openocd-development] [PATCH] basic ARM semihosting support

2009-12-03 Thread Øyvind Harboe
I think it makes sense to wrap up this patch and get it pushed. Zach had some suggestions to the C code and a tiny bit of docs and I think we're good to go. -- Øyvind Harboe US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex

Re: [Openocd-development] [PATCH] basic ARM semihosting support

2009-12-03 Thread Nicolas Pitre
On Thu, 3 Dec 2009, Igor Skochinsky wrote: > Hello Nicolas, > > Thursday, December 3, 2009, 7:58:05 AM, you wrote: > > > NP> Semihosting enables code running on an ARM target to use the I/O > NP> facilities on the host computer. The target application must be linked > NP> against a library that

Re: [Openocd-development] [PATCH] basic ARM semihosting support

2009-12-03 Thread Nicolas Pitre
On Thu, 3 Dec 2009, Øyvind Harboe wrote: > I added a missing #include , but it is not quite ready to commit > yet I think. > > Does it build under Windows? Perhaps it does, I didn't try. It probably does. We maintain both a Linux and Windows build internally and I didn't get any complaint yet.

Re: [Openocd-development] [PATCH] basic ARM semihosting support

2009-12-03 Thread Nicolas Pitre
On Thu, 3 Dec 2009, Zach Welch wrote: > On Thu, 2009-12-03 at 10:39 +0100, Øyvind Harboe wrote: > > I added a missing #include , but it is not quite ready to commit > > yet I think. > > > > Does it build under Windows? Perhaps it does, I didn't try. > > > > I don't think we should try to make th

Re: [Openocd-development] [PATCH] basic ARM semihosting support

2009-12-03 Thread Igor Skochinsky
Hello Nicolas, Thursday, December 3, 2009, 7:58:05 AM, you wrote: NP> Semihosting enables code running on an ARM target to use the I/O NP> facilities on the host computer. The target application must be linked NP> against a library that forwards operation requests by using the SVC NP> instructio

Re: [Openocd-development] [PATCH] basic ARM semihosting support

2009-12-03 Thread Zach Welch
On Thu, 2009-12-03 at 10:39 +0100, Øyvind Harboe wrote: > I added a missing #include , but it is not quite ready to commit > yet I think. > > Does it build under Windows? Perhaps it does, I didn't try. > > I don't think we should try to make this work under anything but POSIX > API for now, but t

Re: [Openocd-development] [PATCH] basic ARM semihosting support

2009-12-03 Thread Øyvind Harboe
If I don't hear Windows guys either providing test results or protesting, I'm inclined to commit it and let the Windows crowd work on fixes to that host platform. -- Øyvind Harboe US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale

Re: [Openocd-development] [PATCH] basic ARM semihosting support

2009-12-03 Thread Øyvind Harboe
I added a missing #include , but it is not quite ready to commit yet I think. Does it build under Windows? Perhaps it does, I didn't try. I don't think we should try to make this work under anything but POSIX API for now, but the build should not fail. Autotools magic? Some docs to openocd.texi

Re: [Openocd-development] [PATCH] basic ARM semihosting support

2009-12-03 Thread Zach Welch
On Thu, 2009-12-03 at 08:23 +0100, Øyvind Harboe wrote: > I would like to see this merged. > > Any objections? Actually, I did just find two things: 1) The header is missing from the Makefile.am 2) The header is missing a copyright header and #ifdef wrapper --Z _

Re: [Openocd-development] [PATCH] basic ARM semihosting support

2009-12-03 Thread Zach Welch
On Thu, 2009-12-03 at 08:23 +0100, Øyvind Harboe wrote: > I would like to see this merged. > > Any objections? Go for it! --Z ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-de

Re: [Openocd-development] [PATCH] basic ARM semihosting support

2009-12-02 Thread Øyvind Harboe
I would like to see this merged. Any objections? -- Øyvind Harboe US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer ___ Openocd-development m

[Openocd-development] [PATCH] basic ARM semihosting support

2009-12-02 Thread Nicolas Pitre
Semihosting enables code running on an ARM target to use the I/O facilities on the host computer. The target application must be linked against a library that forwards operation requests by using the SVC instruction that is trapped at the SWI vector by the debugger. The "hosted" library version pr