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: Setting watchpoints in GDB




On 25 okt 2004, at 00:59, Paul Sargent wrote:

Thing is..... OMG how slow is it? It says it's adding a hardware watchpoint. If that's hardware.....!!!!! I have a feeling what I was seeing before as a hang was just a very slow running program.

True hardware watchpoints are still not supported in the PPC version of gdb afaik (even though (most?) ppc's has this capability). I think it currently simply makes the page containing the watched data read-only, and then after each segmentation fault checks whether the watched data has changed.


If there are lots of other changes to the page containing the data you are watching, this is indeed very slow. The old way where gdb always used software watchpoints on ppc (single stepping through the program and checking whether the watched value changed after each instruction) was even worse though :)


Jonas

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

This email sent to email@hidden
References: 
 >Setting watchpoints in GDB (From: Paul Sargent <email@hidden>)
 >Re: Setting watchpoints in GDB (From: Jonas Maebe <email@hidden>)
 >Re: Setting watchpoints in GDB (From: Paul Sargent <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.