Re: [Openocd-development] [PATCH] support for TCL events

2008-08-08 Thread Spen
> The file event code needs work(posted to jim-devel), but the > timer event stuff should be fine. I added one cast from void > * to FILE * to make it compile under Cygwin... > > > one issue is we cannot use select on a std file descriptor, > eg. stdin, > > stdout etc. > > I suggest that we s

Re: [Openocd-development] [PATCH] support for TCL events

2008-08-08 Thread Øyvind Harboe
> i can fix the errors (include replacements.h and cast Jim_FileEvent->handle) > but have no idea what it all should do. > should handle be a void* ? The file event code needs work(posted to jim-devel), but the timer event stuff should be fine. I added one cast from void * to FILE * to make it com

Re: [Openocd-development] [PATCH] support for TCL events

2008-08-08 Thread Spen
> Did you use cygwin or mingw? i test using mingw, cygwin and linux. issue above is with mingw. This is what i sent to Øyvind. if gcc -mno-cygwin -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -I../../src/target -DPKGDATADIR=\"/usr/local/share/openocd\" -DPKGLIBDIR=\"/usr/local/lib/openocd\"-O0

Re: [Openocd-development] [PATCH] support for TCL events

2008-08-08 Thread Øyvind Harboe
On Fri, Aug 8, 2008 at 9:21 AM, David Kuehling <[EMAIL PROTECTED]> wrote: >> "Øyvind" == Øyvind Harboe <[EMAIL PROTECTED]> writes: > >> Committed. >>> Most of the 'target_script' functionality seems to be unavailable in >>> SVN head. The only target script that is actually called in the >>> so

Re: [Openocd-development] [PATCH] support for TCL events

2008-08-08 Thread David Kuehling
> "Øyvind" == Øyvind Harboe <[EMAIL PROTECTED]> writes: > Committed. >> Most of the 'target_script' functionality seems to be unavailable in >> SVN head. The only target script that is actually called in the >> sources is 'pre_resume'. Neither 'post_halt' nor 'reset' seem >> supported. > Pl

Re: [Openocd-development] [PATCH] support for TCL events

2008-08-08 Thread David Kuehling
> "Spen" == Spen <[EMAIL PROTECTED]> writes: >> >> If you find flaws with my patch, please tell me and I'll be happy to >> fix/rewrite whatever is wrong. >> > This breaks win32 build, any ideas? Can you post the full output of the compilation? Thinking about windows compatability I alrea

Re: [Openocd-development] [PATCH] support for TCL events

2008-08-07 Thread Spen
> > so here's a first patch that adds the jim-eventloop > functionality to openocd. Seems to work stably so far, but > unfortunately openocd has some bugs/regressions that make it > impossible to continously service the watchdog while halted: > > Most of the 'target_script' functionality seem

Re: [Openocd-development] [PATCH] support for TCL events

2008-08-07 Thread Øyvind Harboe
Committed. > Most of the 'target_script' functionality seems to be unavailable in SVN > head. The only target script that is actually called in the sources is > 'pre_resume'. Neither 'post_halt' nor 'reset' seem supported. Please explain? post/pre_reset are used. See target/lpc2148.cfg as an e

[Openocd-development] [PATCH] support for TCL events

2008-08-07 Thread David Kuehling
Hi, so here's a first patch that adds the jim-eventloop functionality to openocd. Seems to work stably so far, but unfortunately openocd has some bugs/regressions that make it impossible to continously service the watchdog while halted: Most of the 'target_script' functionality seems to be unava