riscv-openocd/src
David Brownell 88fcb5a9ef simplify and unconfuse target_run_algorithm()
For some reason there are *two* schemes for interposing logic into
the run_algorithm() code path...  One is a standard procedural wapper
around the target method invocation.

the other (superfluous) one hacked the method table by splicing
a second procedural wrapper into the method table.  Remove it:

	* Rename its  slightly-more-featureful wrapper so it becomes
	  the standard procedural wrapper, leaving its added logic
	  (where it should have been in the first place.

          Also add a paranoia check, to report targets that don't
	  support algorithms without traversing a NULL pointer, and
	  tweak its code structure a bit so it's easier to modify.

	* Get rid of the superfluous/conusing method table hacks.

This is a net simplification, making it simpler to analyse what's
going on, and then interpose logic . ... by ensuring there's only one
natural place for it to live.

------------

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2010-04-04 00:38:39 -07:00
..
flash NOR TCL: fix usage message 2010-03-26 09:14:56 +01:00
helper gpl: fix GPL startup message 2010-02-15 22:59:41 +01:00
jtag buildfix 2010-04-03 18:36:07 -07:00
pld jtag: move towards making out_value const 2010-03-20 11:16:49 +01:00
server telnet_server: review unused symbols 2010-03-25 07:44:59 +01:00
svf rename jtag_khz as adapter_khz 2010-03-15 08:37:43 -07:00
target simplify and unconfuse target_run_algorithm() 2010-04-04 00:38:39 -07:00
xsvf jtag: cut down on usage of unintended modification of global end state 2010-03-18 08:43:19 +01:00
Makefile.am Driver for USB-JTAG, Altera USB-Blaster and compatibles 2009-12-26 15:05:06 -08:00
ecosboard.c zy1000: complete zy1000_uart to jim command switch 2010-02-05 14:38:26 +01:00
hello.c Doc/examples: clarify usage messages 2010-01-08 23:13:39 -08:00
hello.h improve command handling examples 2009-11-25 10:29:05 -08:00
main.c add openocd.h for top-level declarations 2009-11-14 07:29:16 -08:00
openocd.c SCRIPT: add add_script_search_dir cmd 2010-03-17 09:57:44 +00:00
openocd.h remove #if logic for openocd_sleep_*lude 2009-12-02 13:26:26 -08:00