On 0.35 installer:
make
gdb prog.exe
break main   # main(), not line number
run
gdb crashes
If both #if sections are disabled, gdb can break in main().
Can anyone verify?
Is this indicative of a serious problem?
If it is working for you, would you mind posting your makefiles? I am using a 
tool makefile with nothing added other than the source file and the tool name. 
I am using makefiles from 8 years ago. Where are the template makefiles for 
making new projects?
Thanks and regards.

—

#import <Foundation/Foundation.h>

#define GDB_BREAK_MAIN_CRASH_A 1
#define GDB_BREAK_MAIN_CRASH_B 1

#if GDB_BREAK_MAIN_CRASH_A
@interface SmartTool : NSObject {}
+ (void) hello;
@end

@implementation SmartTool
+ (void) hello { printf("NSObject Hello\n"); }
@end
#endif

@interface DumbTool {}
+ (void) hello;
@end

@implementation DumbTool
+ (void) hello { printf("Hello\n"); }
@end

int main( int argc, const char *argv[] )
{
#if GDB_BREAK_MAIN_CRASH_B
    [NSString alloc];
#endif
    [DumbTool hello];
    return 0;
}

_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@gnu.org
https://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to