Patch for httpd monitor

Eric Doenges Eric.Doenges@DynaPel.com
Tue Oct 21 13:37:00 GMT 2003


The simple monitor example daemon that comes with the httpd stuff
can display memory contents as a hex dump. The address is specified
with the 'base' parameter; however when the page is accessed without
this parameter (as when the user clicks on the link from the
monitor.html page), an address of zero is assumed, which will crash
targets where address zero is not valid (mine, for example) before
the user can even choose which address range to dump.

The attached patch does a quick fix by not dumping any data if 'base'
is not specified in the HTTP request. A better solution would be to
ask the HAL if an address range is accessible; unfortunately no such
HAL functionality exists. There is a CYG_HAL_STUB_PERMIT_DATA_READ(),
but this macro seems to be only intended for use with the GDB stub and
does not seem to actually do anything on mose platforms, even if a
MMU is available that could be queried.
-- 
--------------------------------------------------------------------
|     Eric Doenges              |     DynaPel Laboratories GmbH    |
|     Tel: +49 89 962428 23     |     Fraunhoferstrasse 9/2        |
|     Fax: +49 89 962428 90     |     D - 85737 Ismaning, Germany  |
--------------------------------------------------------------------
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch
URL: <http://sourceware.org/pipermail/ecos-patches/attachments/20031021/6ebdd508/attachment.ksh>


More information about the Ecos-patches mailing list