Semihosting fix

David Hoover
Wed Apr 20 06:13:00 GMT 2016

On 2016-04-19 16:19, Schwarz, Konrad wrote:
>> -----Original Message-----
>> From: []
>> On Behalf Of David Hoover
>> More often than not, dynamic stack and heap information is not
>> available, and the system call generally provides null values in this
>> case. Segger GDBServer and OpenOCD 0.9.9 are examples of this.
> Not to criticize your patch, but Segger GDBServer and OpenOCD are
> deficient in this regard.  I hope you have notified them.
> Lauterbach, for example, provides a way of setting this
> information from the user interface.
> In most cases, the memory layout is known at link time.
> Ideally, it would be possible to set the heap and stack
> limits at link time, so that if this information is
> not provided by the debugger, the default values
> set by the linker would be used.

It is nice to know that commercial software exists that can work around 
this bug via manual twiddling. Nevertheless, this is a newlib bug and 

Would the project maintainers please consider integrating the patch from 
my original post, or suggest an alternative fix?


David Hoover

More information about the Newlib mailing list