summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-09-13 07:29:06 +0000
committerJay Freeman <saurik@saurik.com>2008-09-13 07:29:06 +0000
commit63f1b449bcd8e5624e1bdf3920a3877dad35aadf (patch)
treec2c28de70043244795d8dabcb4a11016ce13de09
parent366a5b3fd69c75fa1873b066e0a7b67baa1a4308 (diff)
Checkpointing temporary class-dump-x fix.
git-svn-id: http://svn.telesphoreo.org/trunk@467 514c082c-b64e-11dc-b46d-3d985efe055d
-rw-r--r--data/class-dump/null.diff25
1 files changed, 25 insertions, 0 deletions
diff --git a/data/class-dump/null.diff b/data/class-dump/null.diff
new file mode 100644
index 000000000..1d8883282
--- /dev/null
+++ b/data/class-dump/null.diff
@@ -0,0 +1,25 @@
+diff -ru class-dump-3.1.2-x/src/CDObjCSegmentProcessor-Private.m class-dump-3.1.2-x+iPhone/src/CDObjCSegmentProcessor-Private.m
+--- class-dump-3.1.2-x/src/CDObjCSegmentProcessor-Private.m 2008-04-20 04:27:18.000000000 +0000
++++ class-dump-3.1.2-x+iPhone/src/CDObjCSegmentProcessor-Private.m 2008-09-02 16:27:14.000000000 +0000
+@@ -467,7 +467,9 @@
+
+ // Search super class in Symtab first. We just need a super class name only so we don't need to get
+ // detail information about super
+- NSString * superName = [NSString stringWithString:[[machOFile symbolTable] findSymbolByValue:objcClass.super_class]];
++ NSString * superName = [[machOFile symbolTable] findSymbolByValue:objcClass.super_class];
++ if (superName != nil)
++ superName = [NSString stringWithString:superName];
+ // ptr = [machOFile pointerFromVMAddr:objcClass.super_class];
+ if ( superName != nil ) {
+ if ( [superName hasPrefix:@"_OBJC_CLASS_$_"] )
+@@ -928,7 +930,9 @@
+ return nil;
+
+ // class - We just need name
+- NSString * class_name = [NSString stringWithString:[[machOFile symbolTable] findSymbolByValue:objcCategory.class]];
++ NSString * class_name = [[machOFile symbolTable] findSymbolByValue:objcCategory.class];
++ if (class_name != nil)
++ class_name = [NSString stringWithString:class_name];
+ if ( class_name != nil ) {
+ if ( [class_name hasPrefix:@"_OBJC_CLASS_$_"] )
+ class_name = [class_name substringFromIndex:14];