- Fixed various error handling when looking for memory leaks
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 10 Mar 2008 12:11:07 +0000 (12:11 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 10 Mar 2008 12:11:07 +0000 (12:11 +0000)
commit0424155dfc29ab8e3b5e4b7f36f9164df7b5b740
tree7198a57c3a72830480a0614a8759cbafc4b62776
parent0a34980f2bfb403ce56d6407ffa7891890852dbb
- Fixed various error handling when looking for memory leaks
- Fixed memory leak in gdb_server.c
- pushed "Error:" statements up into fn's that know something about what went wrong
- load_image now fails if target_write_memory() fails
- only issue an asynchronous halt() upon connect of GDB. Synchronous halt/reset
  doesn't really work as what's required to initialize the target might involve a
  special monitor sequence for the target in question
- syntax error handling improved(fewer exit()'s)

git-svn-id: svn://svn.berlios.de/openocd/trunk@482 b42882b7-edfa-0310-969c-e2dbd0fdcd60
src/server/gdb_server.c
src/target/target.c