This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Semihosting fix


On 2016-04-19 16:19, Schwarz, Konrad wrote:
-----Original Message-----
From: newlib-owner@sourceware.org [mailto:newlib-owner@sourceware.org]
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 regression.

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

Cheers,

David Hoover


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]