2010-12-16 35 views
0

我想設置一個斷點__CFXNotificationPost_old(在gdb中),但似乎從來沒有停止它。斷點沒有打'__CFXNotificationPost_old'

我有下面的代碼,我試圖調試它:

- (void) notificationHandler:(NSNotification*)notification 
{ 
    DLog(@"|NOTIFICATION| Name [%@] Sender [%@] UserData [%@]", 
     notification.name, 
     notification.object, 
     notification.userInfo); 
} 

- (void) startLogging 
{ 
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(notificationHandler:) name:nil object:nil ]; 
} 
+0

誰讓你在'__CFXNotificationPost_old'處設置斷點??? – Yuji 2010-12-16 11:04:52

+0

http://ftplistchecker.mmsguru.com/blogger/?action=news&id=1284804265 – Egil 2010-12-16 11:53:56

回答

0

沒有與在3.2 SDK的二進制的CoreFoundation該名稱沒有符號。 4.1 SDK中有一個。您可能會在_CFXNotificationPostNotification上碰到更多的運氣,它們都在SDK中。

不清楚這與調試提供的代碼有什麼關係,特別是因爲你沒有解釋你在代碼中遇到什麼問題。