diff options
author | drath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2006-06-23 07:54:01 +0000 |
---|---|---|
committer | drath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2006-06-23 07:54:01 +0000 |
commit | ef139a3a5e41fbcbabdf4be0ecbbb5591448ad2e (patch) | |
tree | e9723f6723c0ed5b77b0edf85cb0ce2db6d35d66 /src/server | |
parent | 1f76f6999974a3a1765aaa96fecc3f2433e7b5b6 (diff) | |
download | openocd+libswd-ef139a3a5e41fbcbabdf4be0ecbbb5591448ad2e.tar.gz openocd+libswd-ef139a3a5e41fbcbabdf4be0ecbbb5591448ad2e.tar.bz2 openocd+libswd-ef139a3a5e41fbcbabdf4be0ecbbb5591448ad2e.tar.xz openocd+libswd-ef139a3a5e41fbcbabdf4be0ecbbb5591448ad2e.zip |
- added support for AT91SAM7A3 flash (patch from andre renaud, thanks)
- fix trunk build for mac os x (patch from Lauri Leukkunen, thanks)
- added check for host endianness, defines WORDS_BIGENDIAN on a big-endian host (e.g. mac os-x)
- fixed bug where endianness of memory accesses could be swapped on BE hosts
- added space for zero termination of ftd2xx_layout string (from Magnus Ludin, tahnks)
git-svn-id: svn://svn.berlios.de/openocd/trunk@73 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/gdb_server.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c index 125206dc..e8664bb2 100644 --- a/src/server/gdb_server.c +++ b/src/server/gdb_server.c @@ -17,6 +17,8 @@ * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ +#include "config.h" + #include "gdb_server.h" #include "server.h" @@ -31,7 +33,7 @@ #include <stdlib.h> // -ino: 060521-1116 -#ifdef __FreeBSD__ +#ifndef HAVE_STRNDUP #include <stdio.h> char * strndup(char * str, int n) { unsigned char * tmp = malloc((size_t)n+1); @@ -40,6 +42,7 @@ char * strndup(char * str, int n) { return tmp; } #endif + #if 0 #define _DEBUG_GDB_IO_ #endif |