Mailing Lists: Apple Mailing Lists

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

Re: Kernel Debugging & mbuf & opaqueness




If you have the kernel symbol file, you can use the following:

p *(struct mbuf*)myBufPtr

I believe you can get the kernel symbol file as part of a kernel debugging SDK.

-josh

On Dec 6, 2005, at 8:35 AM, Stephane Sudre wrote:

Stupid question probably but I have not found the answer for it yet.

Let's say I am remote-debugging a kernel extension on OS X 10.4.3.

How can I display the contents or values of a mbuf in gdb?

Since the structure is now opaque, doing a p *myBufPtr is leading to <type description incomplete> (or something like this).

The idea is that I would like to be able to browse the mbuf link chain and inspect the data and length of each mbuf.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macnetworkprog/jgraessley% 40apple.com


This email sent to email@hidden


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macnetworkprog/email@hidden

This email sent to email@hidden

References: 
 >Kernel Debugging & mbuf & opaqueness (From: Stephane Sudre <email@hidden>)



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.