Re: about how to get the result message of function printf
Re: about how to get the result message of function printf
- Subject: Re: about how to get the result message of function printf
- From: Michael Wu <email@hidden>
- Date: Wed, 17 Mar 2004 20:02:09 -0500
If you really want to debug in Mac OS 9.x. use Jasik debug at
http://www.jasik.com/
On Mar 17, 2004, at 1:54 PM, Rich Kubota wrote:
At 2:55 PM +0800 3/17/04, =?Big5?B?pP2yUadELXZpdmlhbg==?= wrote:
Hi:
I am developing an ethernet adapter driver for MAC. The MAC OS version
is 9.2.2. The MAC machine is PowerPC G4. The compiler is CodeWarrir
pro
5. I download the open transport 2.6 from the apple web. I have
compiled
the sample source code for DEC 21140 driver. Then I want to trace the
DEC 21140 source code. So I want to know where to get the result
message
of printf from these functions as follow:
EPrintf
TPrintf
SPrintf
BPrintf
Is there any console mode on MAC OS 9.2.2 looks like terminal on MAC
OS
10.X?
Vivian,
when I worked with this code, I just used macsbug. In fact, as I
recall, the calls above are wrapper calls into Macsbug. Since the
DebugStr calls only accept pascal strings, one of my colleagues
created the debugf code which is used exactly like printf, but results
in breaks in Macsbug.
Since breaking into Macsbug can be annoying, what you can do is
1. turn user breaks off within Macsbug. By doing this, the DebugStr
statements are still recorded in Macsbug, but you won't enter Macsbug
each time they are entered or
2. suffix each DebugStr string with ";g" where "g" is the go command.
Every time Macsbug is entered on a DebugStr call, the "g" command will
cause Macsbug to continue on. In this case, the screen flickers to
show that Macsbug was entered, but the process continues on.
Under a separate email, I will send you the debugf code. Use the
debugf call exactly like you would printf - for example
debugf("At some point in my code where the result was %d, and the
pointer is 0x%X;g", result, EnetRef);
--
Sincerely,
Rich Kubota
email@hidden
(408) 974-6212
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.