Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
3088ba32
Commit
3088ba32
authored
Aug 23, 2004
by
Robert Shearman
Committed by
Alexandre Julliard
Aug 23, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Store the current source directory and use it when encountering a
relative include so that the full path to it is stored instead.
parent
383de6ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
5 deletions
+20
-5
stabs.c
dlls/dbghelp/stabs.c
+20
-5
No files found.
dlls/dbghelp/stabs.c
View file @
3088ba32
...
@@ -1086,6 +1086,7 @@ SYM_TYPE stabs_parse(struct module* module, const char* addr,
...
@@ -1086,6 +1086,7 @@ SYM_TYPE stabs_parse(struct module* module, const char* addr,
struct
symt_block
*
block
=
NULL
;
struct
symt_block
*
block
=
NULL
;
struct
symt_compiland
*
compiland
=
NULL
;
struct
symt_compiland
*
compiland
=
NULL
;
char
currpath
[
PATH_MAX
];
char
currpath
[
PATH_MAX
];
char
srcpath
[
PATH_MAX
];
int
i
,
j
;
int
i
,
j
;
int
nstab
;
int
nstab
;
const
char
*
ptr
;
const
char
*
ptr
;
...
@@ -1108,6 +1109,7 @@ SYM_TYPE stabs_parse(struct module* module, const char* addr,
...
@@ -1108,6 +1109,7 @@ SYM_TYPE stabs_parse(struct module* module, const char* addr,
strs
=
(
const
char
*
)(
addr
+
strtaboff
);
strs
=
(
const
char
*
)(
addr
+
strtaboff
);
memset
(
currpath
,
0
,
sizeof
(
currpath
));
memset
(
currpath
,
0
,
sizeof
(
currpath
));
memset
(
srcpath
,
0
,
sizeof
(
srcpath
));
memset
(
stabs_basic
,
0
,
sizeof
(
stabs_basic
));
memset
(
stabs_basic
,
0
,
sizeof
(
stabs_basic
));
/*
/*
...
@@ -1385,17 +1387,30 @@ SYM_TYPE stabs_parse(struct module* module, const char* addr,
...
@@ -1385,17 +1387,30 @@ SYM_TYPE stabs_parse(struct module* module, const char* addr,
}
}
else
else
{
{
stabs_reset_includes
();
if
(
*
ptr
!=
'/'
)
if
(
*
ptr
!=
'/'
)
{
strcpy
(
currpath
,
srcpath
);
strcat
(
currpath
,
ptr
);
strcat
(
currpath
,
ptr
);
compiland
=
symt_new_compiland
(
module
,
currpath
);
source_idx
=
source_new
(
module
,
currpath
);
}
else
else
strcpy
(
currpath
,
ptr
);
{
stabs_reset_includes
();
strcpy
(
srcpath
,
ptr
);
compiland
=
symt_new_compiland
(
module
,
currpath
);
compiland
=
symt_new_compiland
(
module
,
srcpath
);
source_idx
=
source_new
(
module
,
currpath
);
source_idx
=
source_new
(
module
,
srcpath
);
}
}
}
break
;
break
;
case
N_SOL
:
case
N_SOL
:
strcpy
(
currpath
,
ptr
);
if
(
*
ptr
!=
'/'
)
{
strcpy
(
currpath
,
srcpath
);
strcat
(
currpath
,
ptr
);
}
else
strcpy
(
currpath
,
ptr
);
source_idx
=
source_new
(
module
,
currpath
);
source_idx
=
source_new
(
module
,
currpath
);
break
;
break
;
case
N_UNDF
:
case
N_UNDF
:
...
...
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