• 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: Setting up GDB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting up GDB


  • Subject: Re: Setting up GDB
  • From: Joe Lowe <email@hidden>
  • Date: Fri, 27 Mar 2015 17:13:57 -0700

Prokash,

I just recently worked through using LLDB for OSX kernel debugging. Searching the Apple developer site for all the related docs, and filtering out the obviously outdated stuff, I was able to figure it out. It may have helped that I know the GDB kernel debugging setup pretty well.

Actually using LLDB was less of a learning curve than I expected coming from GDB. The kext debug symbol loading is fixed in LLDB, no more manual kext load address nonsense. The thing that took me the longest was porting over some basic debug helper macros to the LLDB Python script mechanism, I need my "zap" macro.

Joe L.


On 3/27/2015 4:41 PM, Prokash Sinha wrote:
Is there any document or anything you can refer me to, Shantonu ? AFAIK, you did not stress it on your blog :-). 

I don’t know how different it is from GDB, it being under LLVM umbrella !.

Thanks much for the quick response though!

Prokash

On Mar 27, 2015, at 4:35 PM, Shantonu Sen <email@hidden> wrote:

GDB is no longer used for kernel debugging on OS X. lldb is.

Shantonu

On Mar 27, 2015, at 4:07 PM, Prokash Sinha <email@hidden> wrote:

Folks,

I got over the installation of Xcode, and building xnu code on 10.9 and 10.10 . This is good enough for now. They are on Fusion. Now I’m trying to hook up remote debugging using gdb. And here are some of the problems, I’m seeing -

1) On the target VM ( it is based on 10.9), after I get the respective kernel debug kit, and configuration I see it boots up with debug mode, and wait for remote connection….

For this I need a way ( perhaps some key combination ) to boot it up normally w/o debug configuration . Is there something that can do? Or how can I break out of the listen mode of the vm and let it boot thru.


2) I installed using  port install gdb. This is ggdb.  Here is some info about the package -

GDB 7.7.1 was configured as x86-64-apple-darwin13.4.0.  But it does not have remote-kdp. 
So “target remote-kdp” does not work. Help of course does not have that option.

Anybody knows, why it is gone ?

Thanks
Prokash
;4.0"


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to
email@hidden




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Setting up GDB (From: Prokash Sinha <email@hidden>)
 >Re: Setting up GDB (From: Shantonu Sen <email@hidden>)
 >Re: Setting up GDB (From: Prokash Sinha <email@hidden>)

  • Prev by Date: Re: Setting up GDB
  • Next by Date: Re: Setting up GDB
  • Previous by thread: Re: Setting up GDB
  • Next by thread: Re: Setting up GDB
  • Index(es):
    • Date
    • Thread