Skip to content

Commit f5862e5

Browse files
committed
fix breakpoints check
1 parent c2c77f4 commit f5862e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/ruby_debug/ruby_debug.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include <insns_info.inc>
1010
#include "ruby_debug.h"
1111

12-
#define DEBUG_VERSION "0.11.30.pre9"
12+
#define DEBUG_VERSION "0.11.30.pre10"
1313

1414
#define FRAME_N(n) (&debug_context->frames[debug_context->stack_size-(n)-1])
1515
#define GET_FRAME (FRAME_N(check_frame_number(debug_context, frame)))
@@ -534,7 +534,7 @@ filename_cmp(VALUE source, char *file) {
534534
char path[PATH_MAX + 1];
535535
path[PATH_MAX] = 0;
536536

537-
if (realpath(RSTRING_PTR(source), path) != NULL)
537+
if (realpath(file, path) != NULL)
538538
return filename_cmp_impl(source, path);
539539
else
540540
return filename_cmp_impl(source, file);

0 commit comments

Comments
 (0)