(lldb) Drucken unsigned long long in hex
Ich versuche zu Debuggen mein Objective-C-Programm, und ich brauche, um meine drucken unsigned long long
variable im hex. Ich bin mit der lldb
debugger.
Um zu drucken short
als hex, Sie können diese:
(lldb) type format add --format hex short
(lldb) print bit
(short) $11 = 0x0000
Aber ich kann nicht damit es funktioniert für unsigned long long
.
//failed attempts:
(lldb) type format add --format hex (unsigned long long)
(lldb) type format add --format hex unsigned long long
(lldb) type format add --format hex unsigned decimal
(lldb) type format add --format hex long long
(lldb) type format add --format hex long
(lldb) type format add --format hex int
Ich bin mit einer iOS-app auf dem simulator, wenn das macht keinen Unterschied.
Du musst angemeldet sein, um einen Kommentar abzugeben.
Typ format fügen Sie erwartet, dass die Typ-name als ein einziges Wort-Sie brauchen, um zu zitieren, das argument, wenn es mehrere Wörter. z.B.
Können Sie format Briefe. Link GDB-docs (Werke für LLDB zu): https://sourceware.org/gdb/current/onlinedocs/gdb/Output-Formats.html#Output-Formats
p
und/x
, lldb nicht, sop /x
arbeitet in gdb, aber in lldb esp/x
.Nach dem Lesen der rest der Dokument, fand ich heraus, dass es möglich ist, so etwas zu tun:
dann,
Dies gab mir die Idee zu
typedef unsigned long long BigInt
:dann,
Funktioniert wie ein Charme.