Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
bd5afe9e
Commit
bd5afe9e
authored
Sep 02, 2013
by
take_cheeze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename debug function name
parent
0b806ca1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
include/mruby/debug.h
include/mruby/debug.h
+2
-2
src/backtrace.c
src/backtrace.c
+2
-2
src/debug.c
src/debug.c
+2
-2
src/error.c
src/error.c
+2
-2
No files found.
include/mruby/debug.h
View file @
bd5afe9e
...
...
@@ -40,13 +40,13 @@ struct mrb_state;
* get line from irep's debug info and program counter
* @return returns NULL if not found
*/
char
const
*
mrb_get_filename
(
struct
mrb_irep
*
irep
,
uint32_t
pc
);
char
const
*
mrb_
debug_
get_filename
(
struct
mrb_irep
*
irep
,
uint32_t
pc
);
/*
* get line from irep's debug info and program counter
* @return returns -1 if not found
*/
int32_t
mrb_get_line
(
struct
mrb_irep
*
irep
,
uint32_t
pc
);
int32_t
mrb_
debug_
get_line
(
struct
mrb_irep
*
irep
,
uint32_t
pc
);
mrb_irep_debug_info_file
*
mrb_debug_info_append_file
(
struct
mrb_state
*
mrb
,
struct
mrb_irep
*
irep
,
...
...
src/backtrace.c
View file @
bd5afe9e
...
...
@@ -87,8 +87,8 @@ mrb_output_backtrace(mrb_state *mrb, struct RObject *exc, output_stream_func fun
else
{
pc
=
(
mrb_code
*
)
mrb_voidp
(
mrb_obj_iv_get
(
mrb
,
exc
,
mrb_intern2
(
mrb
,
"lastpc"
,
6
)));
}
filename
=
mrb_get_filename
(
irep
,
pc
-
irep
->
iseq
-
1
);
line
=
mrb_get_line
(
irep
,
pc
-
irep
->
iseq
-
1
);
filename
=
mrb_
debug_
get_filename
(
irep
,
pc
-
irep
->
iseq
-
1
);
line
=
mrb_
debug_
get_line
(
irep
,
pc
-
irep
->
iseq
-
1
);
}
if
(
!
verbose
&&
line
==
-
1
)
continue
;
if
(
ci
->
target_class
==
ci
->
proc
->
target_class
)
...
...
src/debug.c
View file @
bd5afe9e
...
...
@@ -40,7 +40,7 @@ select_line_type(uint32_t pc_count, uint16_t line_count)
}
char
const
*
mrb_get_filename
(
mrb_irep
*
irep
,
uint32_t
pc
)
mrb_
debug_
get_filename
(
mrb_irep
*
irep
,
uint32_t
pc
)
{
mrb_irep_debug_info_file
*
f
=
NULL
;
if
(
irep
)
{
...
...
@@ -53,7 +53,7 @@ mrb_get_filename(mrb_irep* irep, uint32_t pc)
}
int32_t
mrb_get_line
(
mrb_irep
*
irep
,
uint32_t
const
pc
)
mrb_
debug_
get_line
(
mrb_irep
*
irep
,
uint32_t
const
pc
)
{
mrb_irep_debug_info_file
*
f
=
NULL
;
if
(
irep
)
{
...
...
src/error.c
View file @
bd5afe9e
...
...
@@ -199,8 +199,8 @@ exc_debug_info(mrb_state *mrb, struct RObject *exc)
if
(
ci
->
proc
&&
!
MRB_PROC_CFUNC_P
(
ci
->
proc
))
{
mrb_irep
*
irep
=
ci
->
proc
->
body
.
irep
;
int32_t
const
line
=
mrb_get_line
(
irep
,
pc
-
irep
->
iseq
-
1
);
char
const
*
file
=
mrb_get_filename
(
irep
,
pc
-
irep
->
iseq
-
1
);
int32_t
const
line
=
mrb_
debug_
get_line
(
irep
,
pc
-
irep
->
iseq
-
1
);
char
const
*
file
=
mrb_
debug_
get_filename
(
irep
,
pc
-
irep
->
iseq
-
1
);
if
(
line
!=
-
1
&&
file
)
{
mrb_obj_iv_set
(
mrb
,
exc
,
mrb_intern2
(
mrb
,
"file"
,
4
),
mrb_str_new_cstr
(
mrb
,
file
));
mrb_obj_iv_set
(
mrb
,
exc
,
mrb_intern2
(
mrb
,
"line"
,
4
),
mrb_fixnum_value
(
line
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment