Re: Memory mapping... Help !

From: Andy Valencia <vandys_at_nospam.org>
Date: Sat May 30 1998 - 08:12:29 PDT

[Yoda <bett@dialup.ptt.ru> writes:]

>I trying to make some sort of PCI server...

A worthy goal!

>It leads to very strange error: (under GDB, when trying to call last
>printf()) "Hmmm, unexpected stop reason 0x4 Program received signal
>SIGTRAP Trace/breakpoint trap 0x6000295a in ??()" But all before that
>printf() work fine ...

I think all that's wrong here is the debugger's comment about why the
program stopped.

> unsigned short a;
>...
> printf("Current segmet is: %sx\n", a);

You've asked the printf code to use a short number (promoted to int, no
doubt) as a pointer to chars to display in the "%s" format.

                                                        Andy
Received on Sat May 30 04:26:12 1998

This archive was generated by hypermail 2.1.8 : Thu Sep 22 2005 - 15:12:43 PDT