<feed xmlns='http://www.w3.org/2005/Atom'>
<title>OpenOCD/src/server, branch mips-hack</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>https://git.amat.us/openocd/atom/src/server?h=mips-hack</id>
<link rel='self' href='https://git.amat.us/openocd/atom/src/server?h=mips-hack'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/openocd/'/>
<updated>2015-09-30T21:01:00Z</updated>
<entry>
<title>tcl_server: Support line buffers up to 4M (v3)</title>
<updated>2015-09-30T21:01:00Z</updated>
<author>
<name>Philipp Wagner</name>
<email>philipp.wagner@tum.de</email>
</author>
<published>2015-06-23T14:49:22Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/openocd/commit/?id=4b0477abc196d1488628131c18de742c092ad289'/>
<id>urn:sha1:4b0477abc196d1488628131c18de742c092ad289</id>
<content type='text'>
Currently, the maximum size of a command sent to the TCL server is
4k. This patch increases this limit up to 4M.

Reasoning:
To get high-speed JTAG data transfers, I'm using a very long shift
register. This reduces the overhead of the state changes, as well as the
latency due to the common USB adapter transfers considerably. In order
to submit those long DRSCAN commands to OpenOCD over the TCL/TCL
interface, long TCL command lines are required. This is enabled by this
patch.

v3:
Address review comments. Drop line instead of connection when realloc()
fails.

Changes in v2 of this patch:
The line buffer is allocated dynamically to avoid an OpenOCD memory
overhead if the large buffers are not used. The buffer starts at 4K and
increases exponentially up to 1M, and then linearly in 1M increments up
to 4M.

Change-Id: Iecaef6a56ed5e18e9de4d912a514031ea78fa3bd
Signed-off-by: Philipp Wagner &lt;philipp.wagner@tum.de&gt;
Reviewed-on: http://openocd.zylin.com/2837
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson &lt;andreas.fritiofson@gmail.com&gt;
</content>
</entry>
<entry>
<title>server: remove connection limit from tcl and telnet servers</title>
<updated>2015-09-28T07:01:02Z</updated>
<author>
<name>Austin Morton</name>
<email>austinpmorton@gmail.com</email>
</author>
<published>2015-08-13T18:45:29Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/openocd/commit/?id=8bffcc0cd4fd6a92c8f9bbb28ccc14e4b51a576a'/>
<id>urn:sha1:8bffcc0cd4fd6a92c8f9bbb28ccc14e4b51a576a</id>
<content type='text'>
Add constant CONNECTION_LIMIT_UNLIMITED which indicates a service
has no connection limit

Change-Id: I008d31264010c25fa44ca74eb6d5740eca38bee1
Signed-off-by: Austin Morton &lt;austinpmorton@gmail.com&gt;
Reviewed-on: http://openocd.zylin.com/2937
Tested-by: jenkins
Reviewed-by: Paul Fertser &lt;fercerpav@gmail.com&gt;
</content>
</entry>
<entry>
<title>server: tcl_trace command</title>
<updated>2015-09-05T08:19:26Z</updated>
<author>
<name>Austin Morton</name>
<email>austinpmorton@gmail.com</email>
</author>
<published>2015-03-09T09:34:52Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/openocd/commit/?id=d28ab08cfafb3ad7ff8dc539644883217e89f8c4'/>
<id>urn:sha1:d28ab08cfafb3ad7ff8dc539644883217e89f8c4</id>
<content type='text'>
Implements async target trace output to the tcl server

Change-Id: I0178f6404447337d523782a1d2c317457030da40
Signed-off-by: Austin Morton &lt;austinpmorton@gmail.com&gt;
Reviewed-on: http://openocd.zylin.com/2588
Tested-by: jenkins
Reviewed-by: Paul Fertser &lt;fercerpav@gmail.com&gt;
</content>
</entry>
<entry>
<title>gdb_server: Add check for malloc fail</title>
<updated>2015-08-06T12:16:17Z</updated>
<author>
<name>Evan Hunter</name>
<email>ehunter@broadcom.com</email>
</author>
<published>2015-07-16T16:44:17Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/openocd/commit/?id=72466de39931cbe872db367c878c5ed17a4b67f3'/>
<id>urn:sha1:72466de39931cbe872db367c878c5ed17a4b67f3</id>
<content type='text'>
Change-Id: I623b30883042eae3253ed29de5c426da760dffa0
Signed-off-by: Evan Hunter &lt;ehunter@broadcom.com&gt;
Reviewed-on: http://openocd.zylin.com/2871
Tested-by: jenkins
Reviewed-by: Spencer Oliver &lt;spen@spen-soft.co.uk&gt;
</content>
</entry>
<entry>
<title>server: avoid the tcl server crashing when there is no target</title>
<updated>2015-05-17T20:17:02Z</updated>
<author>
<name>Austin Morton</name>
<email>austinpmorton@gmail.com</email>
</author>
<published>2015-05-02T22:00:37Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/openocd/commit/?id=38cb629ddf2711f351bbec9d8cc60615dc654a56'/>
<id>urn:sha1:38cb629ddf2711f351bbec9d8cc60615dc654a56</id>
<content type='text'>
Since commit 1d0cf0df37a4e831ca3121ba8987d5848cad3e42
("server: tcl_notifications command") connecting to the tcl server
would terminate openocd. Fix this.

Change-Id: I36e2a7482f7db3a30ff7e9f969c3b6cda9599382
Signed-off-by: Austin Morton &lt;austinpmorton@gmail.com&gt;
Reviewed-on: http://openocd.zylin.com/2759
Tested-by: jenkins
Reviewed-by: Forest Crossman &lt;cyrozap@gmail.com&gt;
Reviewed-by: Paul Fertser &lt;fercerpav@gmail.com&gt;
</content>
</entry>
<entry>
<title>Tcl exception codes cleanup, shutdown command amendments</title>
<updated>2015-04-14T11:11:48Z</updated>
<author>
<name>Paul Fertser</name>
<email>fercerpav@gmail.com</email>
</author>
<published>2015-03-13T13:32:53Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/openocd/commit/?id=19f219f731f29503c8e4d432935d3ea558cc1659'/>
<id>urn:sha1:19f219f731f29503c8e4d432935d3ea558cc1659</id>
<content type='text'>
This patch might influence openocd Tcl commands behaviour in subtle
ways, please give it a nice testing.

The idea is that if an OpenOCD Tcl command returns an error, an
exception is raised, and then the return code is propogated all the
way up (or to the "catch" if present). This allows to detect
"shutdown" which is not actually an error but has to raise an
exception to stop execution of the commands that follow it in the
script.

openocd_thread special-cases shutdown because it should then terminate
OpenOCD with a success error code, unless shutdown was called with an
optional "error" argument which means terminate with a non-zero exit
code.

Change-Id: I7b6fa8a2e24c947dc45d8def0008b4b007c478b3
Signed-off-by: Paul Fertser &lt;fercerpav@gmail.com&gt;
Reviewed-on: http://openocd.zylin.com/2600
Tested-by: jenkins
Reviewed-by: Juha Niskanen &lt;juha.niskanen@haltian.com&gt;
Reviewed-by: Jens Bauer &lt;jens@gpio.dk&gt;
Reviewed-by: Oleksij Rempel &lt;linux@rempel-privat.de&gt;
</content>
</entry>
<entry>
<title>server, target, cortex_m: add deinit_target to the API to free resources</title>
<updated>2015-03-09T08:34:46Z</updated>
<author>
<name>Paul Fertser</name>
<email>fercerpav@gmail.com</email>
</author>
<published>2015-02-11T08:08:40Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/openocd/commit/?id=2d998c09446a230b669f0ea9771dabf2dbea2fe8'/>
<id>urn:sha1:2d998c09446a230b669f0ea9771dabf2dbea2fe8</id>
<content type='text'>
This should facilitate dynamic target creation and removal.

Currently it helps with getting 0 bytes lost report from Valgrind on
exit (after talking to a nucleo board). However, 1,223,886 bytes in
5,268 blocks are still reachable which means the app holds pointers to
that data on exit. The majority comes from the jtag command queue,
there're also many blocks from TCL command registration.

Change-Id: I7523234bb90fffd26f7d29cdd7648ddd221d46ab
Signed-off-by: Paul Fertser &lt;fercerpav@gmail.com&gt;
Reviewed-on: http://openocd.zylin.com/2544
Tested-by: jenkins
Reviewed-by: Stian Skjelstad &lt;stian@nixia.no&gt;
</content>
</entry>
<entry>
<title>server: tcl_notifications command</title>
<updated>2015-03-09T06:30:30Z</updated>
<author>
<name>Austin Morton</name>
<email>austinpmorton@gmail.com</email>
</author>
<published>2015-02-21T09:20:33Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/openocd/commit/?id=1d0cf0df37a4e831ca3121ba8987d5848cad3e42'/>
<id>urn:sha1:1d0cf0df37a4e831ca3121ba8987d5848cad3e42</id>
<content type='text'>
Implements async target notifications to the tcl server

Change-Id: I4d83e9fa209e95426c440030597f99e9f0c3b260
Signed-off-by: Austin Morton &lt;austinpmorton@gmail.com&gt;
Reviewed-on: http://openocd.zylin.com/2336
Reviewed-by: Paul Fertser &lt;fercerpav@gmail.com&gt;
Tested-by: jenkins
Reviewed-by: Spencer Oliver &lt;spen@spen-soft.co.uk&gt;
</content>
</entry>
<entry>
<title>Added system signal handling to Linux version</title>
<updated>2015-03-09T06:25:45Z</updated>
<author>
<name>Mateusz Manowiecki</name>
<email>segmentation@fault.pl</email>
</author>
<published>2015-01-05T15:40:16Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/openocd/commit/?id=5087a9554851cd7e1d33d13deb0f5d35b89369f6'/>
<id>urn:sha1:5087a9554851cd7e1d33d13deb0f5d35b89369f6</id>
<content type='text'>
(with http://www.cons.org/cracauer/sigint.html in mind)

Change-Id: I15f559bc1122a408c3fb9338ba55c16fab3187e1
Signed-off-by: Mateusz Manowiecki &lt;segmentation@fault.pl&gt;
Reviewed-on: http://openocd.zylin.com/2443
Tested-by: jenkins
Reviewed-by: Paul Fertser &lt;fercerpav@gmail.com&gt;
</content>
</entry>
<entry>
<title>gdb_server: ignore stray + in ACK mode</title>
<updated>2015-02-22T16:16:06Z</updated>
<author>
<name>Matej Kupljen</name>
<email>matej.kupljen@gmail.com</email>
</author>
<published>2015-02-11T08:28:41Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/openocd/commit/?id=750f8cd0c56baed8b27be415bcff9effa59c48e3'/>
<id>urn:sha1:750f8cd0c56baed8b27be415bcff9effa59c48e3</id>
<content type='text'>
I couldn't make OpenOCD to work with GDB. I was always getting this in GDB:
(gdb) target remote localhost:3333
Remote debugging using localhost:3333
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Malformed response to offset query, timeout
(gdb)
While debugging gdb remote protocol, I have seen that gdb responds with:
w ++$?#3f
And those two '+' seems to confuse the OpenOCD parser, if it sees another
'+' sign it emits the DEBUG output and sets the noack_mode to 2. The
problem is that we weren't even IN noack mode, this was set to 0 and then
it explicitly sets it to 2 and thus turning the noack mode on.

Change-Id: If267c9226e57fa83121ded09cf69829f8f0b4b93
Signed-off-by: Matej Kupljen &lt;matej.kupljen@gmail.com&gt;
Reviewed-on: http://openocd.zylin.com/2545
Tested-by: jenkins
Reviewed-by: Tomas Vanek &lt;vanekt@fbl.cz&gt;
Reviewed-by: Paul Fertser &lt;fercerpav@gmail.com&gt;
</content>
</entry>
</feed>
