• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Kernel Debugging & mbuf & opaqueness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Kernel Debugging & mbuf & opaqueness


  • Subject: Re: Kernel Debugging & mbuf & opaqueness
  • From: Josh Graessley <email@hidden>
  • Date: Tue, 6 Dec 2005 10:43:54 -0800


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:
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:

This email sent to email@hidden

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

  • Prev by Date: Re: Is there a clean way to get my default IP address.
  • Next by Date: Re: Is there a clean way to get my default IP address.
  • Previous by thread: Kernel Debugging & mbuf & opaqueness
  • Next by thread: Unbinding a port?
  • Index(es):
    • Date
    • Thread