Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Debugging USBCDCEthernet Driver



Received: from blr-ec-msg02.wipro.com ([10.200.51.99]) by
  blr-ec-bh2.wipro.com with Microsoft SMTPSVC(5.0.2195.5329); Mon, 13
  Oct 2003 14:19:33 +0530
Received: from wipro.com ([192.151.103.207]) by blr-ec-msg02.wipro.com
  with Microsoft SMTPSVC(5.0.2195.5329); Mon, 13 Oct 2003 14:19:33 +0530
Date: Mon, 13 Oct 2003 14:26:49 +0530
Mime-Version: 1.0 (Apple Message framework v552)
Content-Type: text/plain; charset="us-ascii"
Subject: Debugging USBCDCEthernet Driver
From: Kapil Bharati Langer <email@hidden>
To: email@hidden
Message-Id: <email@hidden>
X-Mailer: Apple Mail (2.552)
Return-Path: email@hidden
X-OriginalArrivalTime: 13 Oct 2003 08:49:33.0251 (UTC)
  FILETIME=[EC3B5930:01C39166]
X-Converted-To-Plain-Text: from multipart/alternative by demime 0.98b
X-Converted-To-Plain-Text: Alternative section used was text/plain

Hi all ,

I am working with the sample code provided by apple USBCDCEthernet

This driver is available at the developer site with apple.
http://developer.apple.com/samplecode/Sample_Code/Networking/ 
USBCDCEthernet.htm

  I need to work on this driver and get a trace of it soon. I tried  
debugging the driver using two machine set up ...
the debugger is running fine .. but when i set a breakpoint in the gdb  
... by giving the function name ..

(gdb)  break ' com_apple_driver_dts_USBCDCEthernet::start(IOService *)'

the command given in the two machine debugging guide on the apple site  
.. the driver does not stop at the debugger ...
i suspect that the flow does not reach the point where i have set the  
break point

what i need to know is ...
1)  is there a specific entry point function that is present in all  
drivers written on mac ... something apple specified
2)  is there any one who has debugged this code .. casue i need to know  
the flow real fast .
3) apart from debugging it using two machines .. is there any other way  
with which i can get a trace for this kext
4) Can i set the breakpoints in the Project builder and then try  
debugging t using the two machine set up will it work.. that way.

the hard way to know the entry point is to set the breakpoints at all  
the functions using gdb ... one of it is sure to click but it is a  
crude way .. any suggestions in this regard would also be encouraged.

or if anyone could suggest what could be the entry point for this  
driver code .. .by having a look at it ..
I am providing the link again.

http://developer.apple.com/samplecode/Sample_Code/Networking/ 
USBCDCEthernet.htm

thanks in advance ..
Hope to hear from someone
regards
Kapil Bharati
**************************Disclaimer************************************

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***************************************************************************
_______________________________________________
usb mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/usb
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.