mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* template/id.h.tmpl, id.h (enum ruby_method_ids): added some IDs.
* debug.c (dummy_gdb_enums): added enum ruby_method_ids. * .gdbinit (rp): improved output of Symbol. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7427390cad
commit
1b4d0c76de
5 changed files with 210 additions and 117 deletions
4
debug.c
4
debug.c
|
@ -15,6 +15,7 @@
|
|||
#include "debug.h"
|
||||
#include "eval_intern.h"
|
||||
#include "vm_core.h"
|
||||
#include "id.h"
|
||||
|
||||
/* for gdb */
|
||||
static const union {
|
||||
|
@ -22,6 +23,7 @@ static const union {
|
|||
enum ruby_value_type value_type;
|
||||
enum ruby_tag_type tag_type;
|
||||
enum node_type node_type;
|
||||
enum ruby_method_ids method_ids;
|
||||
enum {
|
||||
RUBY_ENCODING_INLINE_MAX = ENCODING_INLINE_MAX,
|
||||
RUBY_ENCODING_SHIFT = ENCODING_SHIFT,
|
||||
|
@ -96,7 +98,7 @@ ruby_debug_print_value(int level, int debug_level, const char *header, VALUE obj
|
|||
VALUE str;
|
||||
str = rb_inspect(obj);
|
||||
fprintf(stderr, "DBG> %s: %s\n", header,
|
||||
obj == -1 ? "" : StringValueCStr(str));
|
||||
obj == (VALUE)(SIGNED_VALUE)-1 ? "" : StringValueCStr(str));
|
||||
fflush(stderr);
|
||||
}
|
||||
return obj;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue