wd at denx.de
Fri Nov 21 03:27:08 EST 2003
In message <DEF39A0710293E489D45B10E06645CBD02671CA2 at dub-msx1.spectelcorp.com> you wrote:
> My problem is that I dont really know what address the core is trying to write to when the exception occurs.
> As I mentioned in the previous message, the write() calls _syscall3() macro which will perform the write operation, but early in that macro the assembly 'sc' instruction is called.
> As I cannot step through 'sc', I cannot go further on investigating at what write access the exception occurs.
But you can set a breakpoint in the sc exception handler.
> How do I even find out what is the start address of the file associated with the file descritor?
Analyze at which offset the file starts in your filesystem image;
find out the load address of the filesystem image in RAM; add the
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
"Love is an ideal thing, marriage a real thing; a confusion of the
real with the ideal never goes unpunished." - Goethe
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-embedded