Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
f2aff0ec
Commit
f2aff0ec
authored
Sep 06, 2004
by
Robert Shearman
Committed by
Alexandre Julliard
Sep 06, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better fix for includes with relative paths.
parent
c91ae456
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
stabs.c
dlls/dbghelp/stabs.c
+6
-10
No files found.
dlls/dbghelp/stabs.c
View file @
f2aff0ec
...
...
@@ -1085,8 +1085,8 @@ BOOL stabs_parse(struct module* module, const char* addr,
struct
symt_function
*
curr_func
=
NULL
;
struct
symt_block
*
block
=
NULL
;
struct
symt_compiland
*
compiland
=
NULL
;
char
currpath
[
PATH_MAX
];
char
srcpath
[
PATH_MAX
];
char
currpath
[
PATH_MAX
];
/* path to current file */
char
srcpath
[
PATH_MAX
];
/* path to directory source file is in */
int
i
,
j
;
int
nstab
;
const
char
*
ptr
;
...
...
@@ -1108,7 +1108,6 @@ BOOL stabs_parse(struct module* module, const char* addr,
stab_ptr
=
(
const
struct
stab_nlist
*
)(
addr
+
staboff
);
strs
=
(
const
char
*
)(
addr
+
strtaboff
);
memset
(
currpath
,
0
,
sizeof
(
currpath
));
memset
(
srcpath
,
0
,
sizeof
(
srcpath
));
memset
(
stabs_basic
,
0
,
sizeof
(
stabs_basic
));
...
...
@@ -1377,7 +1376,7 @@ BOOL stabs_parse(struct module* module, const char* addr,
if
(
*
ptr
==
'\0'
)
/* end of N_SO file */
{
/* Nuke old path. */
curr
path
[
0
]
=
'\0'
;
src
path
[
0
]
=
'\0'
;
stabs_finalize_function
(
module
,
curr_func
);
curr_func
=
NULL
;
source_idx
=
-
1
;
...
...
@@ -1387,20 +1386,17 @@ BOOL stabs_parse(struct module* module, const char* addr,
}
else
{
stabs_reset_includes
(
);
if
(
*
ptr
!=
'/'
)
int
len
=
strlen
(
ptr
);
if
(
ptr
[
len
-
1
]
!=
'/'
)
{
strcpy
(
currpath
,
srcpath
);
strcat
(
currpath
,
ptr
);
stabs_reset_includes
();
compiland
=
symt_new_compiland
(
module
,
currpath
);
source_idx
=
source_new
(
module
,
currpath
);
}
else
{
strcpy
(
srcpath
,
ptr
);
compiland
=
symt_new_compiland
(
module
,
srcpath
);
source_idx
=
source_new
(
module
,
srcpath
);
}
}
break
;
case
N_SOL
:
...
...
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