aboutsummaryrefslogtreecommitdiff
path: root/src/server
AgeCommit message (Collapse)AuthorFilesLines
2009-11-26fix typos in source filesUwe Hermann3-8/+8
Correct some spelling errors in source comments and printed output. Signed-off-by: Zachary T Welch <zw@superlucidity.net>
2009-11-25target: create and use target_name()David Brownell1-5/+5
Several of the sites now using target_type_name() really ought to be using an instance-specific name. Create a function called target_name(), accessing the instance's own (command) name. Use it in several places that really should be displaying instance-specific names. Also in several places which were already doing so, but which had no wrapper to call. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-11-25target: target_get_name() --> target_type_name()David Brownell1-2/+2
There are two names that may matter on a per-target basis. One is a per-instance name (for example, "at91sam7s.cpu"). The other is the name of its type (for example, "arm7tdmi"), which is shared among multiple targets. Currently target_get_name() returns the type name, which is misleading and is rarely appropriate for target diagnostics. Rename that as target_type_name(). Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-11-24httpd: use register_commands()Zachary T Welch3-15/+49
Updates httpd_start() to use register_commands() for 'readform' and 'writeform' commands. Adds server/httpd.h to export the new signatures for this function (and httpd_stop), which allows removing the obsoleted declarations inside openocd.c.
2009-11-24server: use register_commandsZachary T Welch4-45/+95
Converts server directory to use new command registration paradigm.
2009-11-24use COMMAND_REGISTER macroZachary T Welch4-10/+10
Replaces direct calls to register_command() with a macro, to allow its parameters to be changed and callers updated in phases.
2009-11-24improve startup tcl scriptsZachary T Welch1-0/+2
Fix a couple of layering violations missed in the last round. Add missing comment headers.
2009-11-18use COMMAND_PARSE_ENABLE macro where appropriateZachary T Welch1-42/+3
Updates all command parsing of simple "enable" and "disable" arguments. A few case in the tree use a tri-state or extended arguments, which cannot use this simple macro. Simlifies the xscale icache/dcache command handler logic.
2009-11-18split startup.tcl file across modulesZachary T Welch2-0/+9
Moves definitions for each layer into their own file, eliminating layering violations in the built-in TCL code. Updates src/Makefile.am rules to include all files in the final startup.tcl input file, and others Makefile.am rules to distribute the new files in our packages.
2009-11-17command_handler: change 'cmd_ctx' to CMD_CTXZachary T Welch2-2/+2
Convert all command handler 'cmd_ctx' parameter usage with CMD_CTX.
2009-11-17command_handler: change 'args' to CMD_ARGVZachary T Welch3-15/+15
This patch converts all instances of 'args' in COMMAND_HANDLER routines to use CMD_ARGV macro.
2009-11-17command_handler: change to 'argc' to CMD_ARGCZachary T Welch2-7/+7
This patch converts all instances of 'argc' in COMMAND_HANDLER routines to use CMD_ARGC.
2009-11-17target: simplify register get/set opsDavid Brownell1-9/+2
No need to indirect from registered integers to pointers. Just stash the pointers directly in the register struct, and don't even bother registering. This is a small code shrink, speeds register access just a smidgeon, and gets rid of another rude exit() path. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-11-16rename CEIL as DIV_ROUND_UPZachary T Welch1-11/+11
Improves the name of this macro, moves it to types.h, and adds a block of Doxygen comments to describe what it does.
2009-11-16#include "target.h" less wildlyDavid Brownell2-3/+1
Don't include "target.h" from more headers than necessary. This avoids needless interdependencies and duplicated include paths. Don't needlessly include it in source files, either. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-11-16target: don't implicitly include "breakpoint.h"David Brownell1-0/+1
Most files in the tree seem to have ended up including this, and *quite* needlessly ... only code implementing or using breakpoints actually needs these declarations. So take it out of the header files which included it, and put it in files which use it ... reduce needless interdependencies. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-11-14add openocd.h for top-level declarationsZachary T Welch2-3/+2
Create src/openocd.h to hold declarations previously made internally by src/main.c and src/server/server.c. This ensures all functions are verified to be in-sync at compile time (rather than at link), making it easier to track down bugs.
2009-11-13command_context_t -> struct command_contextZachary T Welch8-16/+16
Remove misleading typedef and redundant suffix from struct command_context.
2009-11-13flash_bank_t -> struct flash_bankZachary T Welch1-7/+7
Remove misleading typedef and redundant suffix from struct flash_bank.
2009-11-13target_t -> struct targetZachary T Welch2-22/+22
Remove misleading typedef and redundant suffix from struct target.
2009-11-13reg_t -> struct regZachary T Welch1-6/+6
Remove misleading typedef and redundant suffix from struct reg.
2009-11-13image_t -> struct imageZachary T Welch2-3/+3
Remove misleading typedef and redundant suffix from struct image. Also removes the typedef from enum image_type, as it is used in image.h only.
2009-11-13reg_arch_type_t -> struct reg_arch_typeZachary T Welch1-2/+2
Remove misleading typedef and redundant suffix from struct reg_arch_type.
2009-11-13connection_t -> struct connectionZachary T Welch5-67/+67
Remove misleading typedef and redundant suffix from struct connection.
2009-11-13telnet_connection_t -> struct telnet_connectionZachary T Welch2-10/+10
Remove misleading typedef and redundant suffix from struct telnet_connection.
2009-11-13tcl_connection_t -> struct tcl_connectionZachary T Welch1-7/+7
Remove misleading typedef and redundant suffix from struct tcl_connection.
2009-11-13service_t -> struct serviceZachary T Welch2-14/+14
Remove misleading typedef and redundant suffix from struct service.
2009-11-13telnet_service_t -> struct telnet_serviceZachary T Welch2-4/+4
Remove misleading typedef and redundant suffix from struct telnet_service.
2009-11-13gdb_service_t -> struct gdb_serviceZachary T Welch2-10/+10
Remove misleading typedef and redundant suffix from struct gdb_service.
2009-11-13gdb_connection_t -> struct gdb_connectionZachary T Welch2-21/+21
Remove misleading typedef and redundant suffix from struct gdb_connection.
2009-11-13use CALL_COMMAND_HANDLER instead of direct callsZachary T Welch3-3/+3
By using CALL_COMMAND_HANDLER, parameters can be reordered, added, or even removed in inherited signatures, without requiring revisiting all of the various call sites.
2009-11-13use COMMAND_HELPER for command helper functionsZachary T Welch2-4/+11
Define the numerous helpers that inherit command handler parameters using the COMMAND_HELPER macro.
2009-11-13use COMMAND_HANDLER macro to define all commandsZachary T Welch4-14/+10
2009-11-11log: improve log_callback_fn signatureZachary T Welch2-3/+3
Use unsigned type for line number in log_callback_fn signature.
2009-11-10httpd: fix warnings, more robust error handling, improved MIME handlingØyvind Harboe1-6/+9
The httpd is work in progress... No mime type set by default. Let the browser guess. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2009-11-09server: remove useless declarationsZachary T Welch4-52/+64
Remove server command declarations, make handler routines static.
2009-11-09src/{server,pld,svf,xsvf}: remove 'extern' keywordZachary T Welch4-11/+17
Removes 'extern' keyword from function declarations in header filess.
2009-11-05Update all server port command to use new helper.Zachary T Welch3-23/+5
2009-11-05Add server port command helper function.Zachary T Welch2-0/+23
2009-10-13Retired gdb_attach. gdb-detach event covers this functionality.Øyvind Harboe1-66/+3
2009-10-12If halt times out, stop GDB. Allows e.g. manual reset via monitor commands.Øyvind Harboe1-1/+4
2009-10-09Stop debug session if halt failsØyvind Harboe1-1/+6
2009-10-08Stop GDB when polling fails, srst assert or powerdropout is detectedØyvind Harboe1-1/+1
2009-09-29handle single threadingoharboe1-14/+34
git-svn-id: svn://svn.berlios.de/openocd/trunk@2771 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2009-09-29httpd smoketest infooharboe1-4/+19
git-svn-id: svn://svn.berlios.de/openocd/trunk@2769 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2009-09-24When attaching GDB to OpenOCD, the target state is no longer affected.oharboe2-28/+68
Added gdb_sync feature that allows GDB to sync up to target state. Issue "monitor gdb_sync" and the next stepi, will return immediately with updated register values to GDB. git-svn-id: svn://svn.berlios.de/openocd/trunk@2754 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2009-09-21Remove annoying end-of-line whitespace from most src/*dbrownell1-1/+1
files; omitted src/httpd git-svn-id: svn://svn.berlios.de/openocd/trunk@2742 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2009-09-15fix bug when using 32 instead of 64 bit value in callback, caught by -Walloharboe1-1/+1
git-svn-id: svn://svn.berlios.de/openocd/trunk@2711 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2009-08-30David Brownell <david-b@pacbell.net> start phasing out integers as target IDsoharboe1-4/+12
git-svn-id: svn://svn.berlios.de/openocd/trunk@2650 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2009-08-24Steve Grubb <sgrubb@redhat.com> fix various and sundry leaksoharboe1-0/+1
git-svn-id: svn://svn.berlios.de/openocd/trunk@2606 b42882b7-edfa-0310-969c-e2dbd0fdcd60