Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
3f2ebeb2
Commit
3f2ebeb2
authored
Sep 11, 2007
by
Matthias Braun
Browse files
an outedge debug helper
[r15743]
parent
8784054b
Changes
1
Show whitespace changes
Inline
Side-by-side
ir/debug/debugger.c
View file @
3f2ebeb2
...
...
@@ -62,6 +62,7 @@
#include
"entity_t.h"
#include
"irprintf.h"
#include
"irdump.h"
#include
"iredges_t.h"
#include
"debug.h"
#ifdef _WIN32
...
...
@@ -1312,6 +1313,24 @@ const char *gdb_tarval_helper(void *tv_object) {
return
buf
;
}
const
char
*
gdb_out_edge_helper
(
const
ir_node
*
node
)
{
static
char
buf
[
4
*
1024
];
char
*
b
=
buf
;
size_t
l
;
size_t
len
=
sizeof
(
buf
);
const
ir_edge_t
*
edge
;
foreach_out_edge
(
node
,
edge
)
{
ir_node
*
n
=
get_edge_src_irn
(
edge
);
ir_snprintf
(
b
,
len
,
"%+F "
,
n
);
l
=
strlen
(
b
);
len
-=
l
;
b
+=
l
;
}
return
buf
;
}
#else
/* some picky compiler do not allow empty files */
...
...
Write
Preview
Supports
Markdown
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