[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mac compatility problem: recent items menu
From: |
Riccardo Mottola |
Subject: |
Re: Mac compatility problem: recent items menu |
Date: |
Fri, 12 Dec 2014 15:03:43 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0 SeaMonkey/2.31 |
Hi Wolfgang,
Wolfgang Lux wrote:
PowerPC: po (id)$r5
x86: po ((id*)%ebx)[5]
x86_64: po (id)%rdx
I tried your second line being on x86 32, but it did not work I got a
syntax error
(gdb) po ((id*)%ebx)[5]
A syntax error in expression, near `%ebx)[5]'.
I then searched and found this:
http://www.clarkcox.com/blog/2009/02/04/inspecting-obj-c-parameters-in-gdb/
Not knowing if I am before or after a prolog, I tried both.
(gdb) po *(id*)($esp + 8)
-> invalid
(gdb) po *(id*)($ebp + 16)
file://localhost/Users/multix/Pictures/02Trieste_Linhof_R80S.jpg
Since I put a breakpoint here:
(gdb) bt
#0 0x920b4fd1 in -[NSDocumentController noteNewRecentDocumentURL:] ()
#1 0x91f9c4b3 in -[NSDocumentController
_finishOpeningDocument:andShowWindows:] ()
it means that I have an apparently valid file! this makes things even
more strange! And I have even less clues on how it is going wrong. If I
have AppKit manage its menu and the File is there (I suspected it was
empty), what could go wrong?
One think I'd like to check is the type of object, that is, being a a
File (wrong, old code) or an URL containing a file.
I did:
(gdb) po [*(id*)($ebp + 16) class]
NSURL
so it looks "correct" to me!
Further ideas? Thank you.
Riccardo