Commit Graph

419 Commits

Author SHA1 Message Date
Daniel Beer 53e28ea8fb Restructuring: moved user interface code to ui/ 2011-09-14 16:22:01 +12:00
Daniel Beer d4fee98904 Restructuring: moved low-level utility code to util/ 2011-09-14 16:19:30 +12:00
Daniel Beer 6ac5c5a618 Restructuring: move drivers into drivers/ 2011-09-14 16:15:37 +12:00
Daniel Beer 7715e45af4 Restructuring: move file format implementations to formats/ 2011-09-14 16:12:03 +12:00
Daniel Beer 7f4fdfb4f2 Restructuring: move IO simulator into simio/ 2011-09-14 16:08:54 +12:00
Daniel Beer 00465dcb33 fet_db: corrected breakpoint counts for various chips.
Information obtained from SLAU157S (Code Composer Studio v4.2 User's
Guide for MSP430), section 2.2.1 (Breakpoint Types). Chips affected
are:

 - MSP430F47197
 - MSP430F2013
 - MSP430G2452
 - MSP430G2231
 - MSP430AFE253
 - MSP430G2252
2011-09-14 11:44:57 +12:00
Daniel Beer 8ffb7551a6 gdb_proto/sockets: gdb_peek() shouldn't fail on poll timeout. 2011-09-13 14:01:43 +12:00
Daniel Beer bc69c3d065 gdbc: check for Ctrl+C portably. 2011-09-13 14:01:15 +12:00
Daniel Beer edf625929c Fix immediate-mode addressing with byte instructions.
Immediate mode is implemented using auto-increment register indexing,
but the advance is always 2 for PC-indexed operands.

Bug introduced in 2aed1b90a4.
2011-09-13 13:36:19 +12:00
Daniel Beer 02c355afe2 gdb_proto: error field is just a flag. 2011-09-13 09:31:56 +12:00
Daniel Beer 185001e017 Remove redundant errno.h includes. 2011-09-13 09:23:44 +12:00
Daniel Beer e81d24b24d Added support for MSP430F2121.
Based on data sent by Grzegorz <as.serce@gmail.com>.
2011-09-08 19:32:23 +12:00
Daniel Beer 7a0a30f626 usb_bulk_read: may return 0 on timeout.
Pointed out by Jasper Lievisse Adriaanse <jasper@openbsd.org>.
2011-09-07 08:18:00 +12:00
Tamas TEVESZ a0ece48e4e Add more error codes from MSP430.dll v3 beta2:
http://processors.wiki.ti.com/index.php/MSP430.dll_v3
2011-09-06 08:54:20 +12:00
Daniel Beer 44ef1d8922 MSP430G2553: Support two hardware breakpoints. 2011-09-05 15:01:34 +12:00
Luca Bruno bada33763f Spelling fixes.
Fixed a couple of typos in manpage via simple s/preceeded/preceded/
subsitution; errors caught by Debian QA checks.

Signed-off-by: Luca Bruno <lucab@debian.org>
2011-09-02 09:09:44 +12:00
Daniel Beer 06a6018559 Fix strsep() implementation for Win32.
Missing an increment with leads to an infinite loop.

Bug identifed by Patrick Dussud <phdussud@hotmail.com>.
2011-09-01 09:08:40 +12:00
Daniel Beer 1a99daa84b fet: allow interrupted run on Win32.
usleep() doesn't return a negative value on Ctrl+C under Windows, so we
need to poll the Ctrl+C handler.

Bug identified by Patrick Dussud <phdussud@hotmail.com>.
2011-08-30 17:27:08 +12:00
Jasper Lievisse Adriaanse 9563fc2683 Allow CC to be overriden, as needed for some packaging systems. 2011-08-25 08:16:34 +12:00
Daniel Beer ffeee9046b Version 0.17 2011-08-24 16:24:16 +12:00
Radu Rendec 428f274f43 Simulator: fix word write on unaligned address
When writing a word to an unaligned address, the least significant bit
is simply ignored, causing the real write address to be automatically
aligned.

Signed-off-by: Radu Rendec <radu.rendec@cloudbit.ro>
2011-08-24 09:15:58 +12:00
Radu Rendec 2aed1b90a4 Simulator: fix 1-byte indirect INC
Signed-off-by: Radu Rendec <radu.rendec@cloudbit.ro>
2011-08-23 10:15:30 +12:00
Daniel Beer 89220746d0 Added support for MSP430F5528. 2011-08-22 10:33:54 +12:00
Daniel Beer 1e443fab2b Added support for MSP430F5510. 2011-08-22 10:23:33 +12:00
Tamas TEVESZ 3a8994b4f7 Add more error codes from MSP430.dll v3:
http://processors.wiki.ti.com/index.php/MSP430.dll_v3
2011-08-16 10:22:37 +12:00
Daniel Beer 62bd2ccd18 Added support for MSP430F5527. 2011-08-15 09:09:32 +12:00
Tamas TEVESZ 2e40c07370 Add support for MSP430AFE253. 2011-08-15 09:08:50 +12:00
Tamas TEVESZ 45c1ba5dc8 Use tilde-expanded path in process_file(). 2011-08-02 13:11:53 +12:00
Jasper Lievisse Adriaanse f597d25811 Using FD_ZERO requires including string.h for the memset() prototype. 2011-08-02 09:32:03 +12:00
Jasper Lievisse Adriaanse 1560547a0d Remove explicit linking with libelf for OpenBSD.
This isn't needed anymore since commit eee0bc.
2011-08-02 09:31:45 +12:00
Daniel Beer a5def5cf92 win32: set comm timeouts when opening serial port. 2011-07-30 01:23:08 +12:00
Daniel Beer 345ad4ae2d Bug fix: usb_set_configuration causes problems on Linux.
Added #ifdef WIN32 around these calls.
2011-07-30 12:51:44 +12:00
Tamas TEVESZ d045d8feec New expand_tilde() utility function
Add new `expand_tilde' utility function which substitutes
leading `~/' for the current user's home directory in path
names; NB: returns a new string the caller must free when
it's not needed anymore.
2011-07-29 08:57:08 +12:00
Tamas TEVESZ 457e5a6a3f Allow handling of ^[# on the command line. 2011-07-29 08:53:03 +12:00
Daniel Beer a361e68843 win32: socket IO fixes. 2011-07-27 23:50:54 +12:00
Daniel Beer 5084d0d925 Fix missing CFLAGS for readline support. 2011-07-27 23:17:34 +12:00
Daniel Beer 04335f4f1c win32: ANSI emulation for colour output. 2011-07-27 22:51:39 +12:00
Daniel Beer 51b1d6b90f Fixed bug in gdb client leading to infinite loop on remote close. 2011-07-27 17:18:52 +12:00
Daniel Beer ce020a99f0 sockets: fix build error on posix systems. 2011-07-27 17:12:23 +12:00
Daniel Beer 45a731f4fd win32: cancellable serial port IO. 2011-07-27 05:10:18 +12:00
Daniel Beer 935cd1bdff win32: sockets abstraction layer with cancellable blocking IO. 2011-07-27 04:38:54 +12:00
Daniel Beer df46811d2d win32: catch Ctrl+C on console. 2011-07-27 03:46:29 +12:00
Daniel Beer 8c4080b97f win32: correct initial help message. 2011-07-27 02:28:40 +12:00
Daniel Beer 3fa5b3ce0a win32: specify binary mode fopen() where appropriate. 2011-07-27 02:16:33 +12:00
Daniel Beer 07780ff11f Fixed error reporting for Win32. 2011-07-27 01:56:45 +12:00
Daniel Beer a81043a656 Now compiling with MinGW.
- implemented Win32 serial IO
  - added Winsock init/exit
  - added missing strsep()
  - minor API fixups
2011-07-27 01:23:16 +12:00
Daniel Beer 7b261217c8 Add sockets abstraction layer. 2011-07-27 11:43:22 +12:00
Daniel Beer b8dd765a5b sport: serial IO abstraction layer. 2011-07-27 11:26:02 +12:00
Daniel Beer eee0bc0352 elf32: use local elf.h. 2011-07-27 10:35:46 +12:00
Tamas TEVESZ 99c38aba9f Silence fread()-related signedness warnings 2011-07-26 08:54:41 +12:00