Skip to main content
summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEugene Tarassov2012-01-02 13:44:43 -0500
committerEugene Tarassov2012-01-02 13:44:43 -0500
commit7c9da913ecdc190950493a663b0a0ca9fa2ba6e9 (patch)
tree0906f772c0806ddd997ee46f12d8743624b370db /tests
parenta34186e5ac90c5781fbe0ded80f8909198634a9b (diff)
downloadorg.eclipse.tcf.agent-7c9da913ecdc190950493a663b0a0ca9fa2ba6e9.tar.gz
org.eclipse.tcf.agent-7c9da913ecdc190950493a663b0a0ca9fa2ba6e9.tar.xz
org.eclipse.tcf.agent-7c9da913ecdc190950493a663b0a0ca9fa2ba6e9.zip
TCF Agent: fixed OP_implicit_pointer handling in DWARF.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-dwarf/tcf/backend/backend.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test-dwarf/tcf/backend/backend.c b/tests/test-dwarf/tcf/backend/backend.c
index 37cf1093..d42c3e58 100644
--- a/tests/test-dwarf/tcf/backend/backend.c
+++ b/tests/test-dwarf/tcf/backend/backend.c
@@ -558,7 +558,6 @@ static void next_pc(void) {
}
else {
char * name = NULL;
- char name_buf[0x1000];
ContextAddress addr = 0;
ContextAddress size = 0;
func_object = get_symbol_object(sym);
@@ -576,7 +575,7 @@ static void next_pc(void) {
error("invalid symbol address");
}
if (name != NULL) {
- strcpy(name_buf, name);
+ char * name_buf = tmp_strdup(name);
if (find_symbol_by_name(elf_ctx, STACK_TOP_FRAME, 0, name_buf, &sym) < 0) {
if (get_error_code(errno) != ERR_SYM_NOT_FOUND) {
error("find_symbol_by_name");

Back to the top