From f653a09d334175732b817113d166c00918533c76 Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Mon, 3 Oct 2005 10:16:15 +0000 Subject: [PATCH] - N_PSYM stabs blocks (aka parameters) can also contain a typedef - shorten some paths --- dlls/dbghelp/stabs.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dlls/dbghelp/stabs.c b/dlls/dbghelp/stabs.c index dba254f7ad0..616918ac673 100644 --- a/dlls/dbghelp/stabs.c +++ b/dlls/dbghelp/stabs.c @@ -1200,6 +1200,7 @@ BOOL stabs_parse(struct module* module, unsigned long load_offset, case N_RSYM: case N_LSYM: case N_ROSYM: + case N_PSYM: if (strchr(ptr, '=') != NULL) { /* @@ -1456,8 +1457,13 @@ BOOL stabs_parse(struct module* module, unsigned long load_offset, int len = strlen(ptr); if (ptr[len-1] != '/') { - strcpy(currpath, srcpath); - strcat(currpath, ptr); + if (ptr[0] == '/') + strcpy(currpath, ptr); + else + { + strcpy(currpath, srcpath); + strcat(currpath, ptr); + } stabs_reset_includes(); compiland = symt_new_compiland(module, currpath); source_idx = source_new(module, currpath);