#include <stdio.h>
-#include <objc/Object.h>
+#include <Foundation/NSObject.h>
-@interface BasicClass: Object
+@interface BasicClass: NSObject
{
id object;
}
{
/* This is not really what _NSPrintForDebugger should do, but it
is a simple test if gdb can call this function */
- if (object && [object respondsTo: @selector(myDescription)])
+ if (object)
return [object myDescription];
return NULL;
#include <stdio.h>
-#include <objc/Object.h>
+#include <Foundation/NSObject.h>
-@interface NonDebug: Object
+@interface NonDebug: NSObject
{
}
@end
-@interface NonDebug2: Object
+@interface NonDebug2: NSObject
{
}
@end
#include <stdio.h>
-#include <objc/Object.h>
+#include <Foundation/NSObject.h>
-@interface Decode: Object
+@interface Decode: NSObject
{
}
- multipleDef;
{
/* This is not really what _NSPrintForDebugger should do, but it
is a simple test if gdb can call this function */
- if (object && [object respondsTo: @selector(myDescription)])
+ if (object)
return [object myDescription];
return NULL;
proc gdb_compile_objc {source dest type options} {
set built_binfile 0
set why_msg "unrecognized error"
- foreach lib {-lobjc -lpthreads -lpthread -lthread solaris} {
+ set base_libs {-lgnustep-base -lobjc}
+ foreach lib {-lpthreads -lpthread -lthread "-lpthread -lposix4"} {
# This kind of wipes out whatever libs the caller may have
- # set. Or maybe theirs will override ours. How infelicitous.
- if { $lib == "solaris" } {
- set lib "-lpthread -lposix4"
- }
- if { $lib != "-lobjc" } {
- set lib "-lobjc $lib"
- }
+ # set. Or maybe theirs will override ours. How infelicitous.
+ set lib "$base_libs $lib"
set options_with_lib [concat $options [list libs=$lib quiet]]
set ccout [gdb_compile $source $dest $type $options_with_lib]
switch -regexp -- $ccout {