mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-01 17:39:54 +08:00
add no_continue env variable
This commit is contained in:
7
NEWS
7
NEWS
@@ -1,3 +1,10 @@
|
||||
= RubyMotion 0.22 =
|
||||
|
||||
* Add the `no_continue' environment variable for `rake sim debug=1'.
|
||||
* Fix a bug when retrieving some C constants (wrong pointer dereferencing).
|
||||
* Fix a couple bugs when compiling setter methods (/^set[A-Z]/).
|
||||
* Add support for QuickLook.framework.
|
||||
|
||||
= RubyMotion 0.21 =
|
||||
|
||||
* Rename the `package' rake task to `archive'.
|
||||
|
||||
@@ -62,8 +62,12 @@ sigforwarder(int sig)
|
||||
[NSArray arrayWithObjects:NSTemporaryDirectory(), @"_simgdbcmds",
|
||||
nil]];
|
||||
//if (![[NSFileManager defaultManager] fileExistsAtPath:cmds_path]) {
|
||||
NSString *cmds = @"set breakpoint pending on\nbreak rb_exc_raise\n";
|
||||
if (getenv("no_continue") == NULL) {
|
||||
cmds = [cmds stringByAppendingString:@"continue\n"];
|
||||
}
|
||||
NSError *error = nil;
|
||||
if (![@"set breakpoint pending on\nbreak rb_exc_raise\ncontinue\n" writeToFile:cmds_path atomically:YES
|
||||
if (![cmds writeToFile:cmds_path atomically:YES
|
||||
encoding:NSASCIIStringEncoding error:&error]) {
|
||||
fprintf(stderr,
|
||||
"can't write gdb commands file into path %s: %s\n",
|
||||
|
||||
Reference in New Issue
Block a user