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
613d1715
Commit
613d1715
authored
Sep 16, 2014
by
André Hentschel
Committed by
Alexandre Julliard
Sep 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Respect TMPDIR environment variable.
parent
b23ed0bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
gdbproxy.c
programs/winedbg/gdbproxy.c
+4
-2
No files found.
programs/winedbg/gdbproxy.c
View file @
613d1715
...
...
@@ -2342,11 +2342,13 @@ static BOOL gdb_exec(const char* wine_path, unsigned port, unsigned flags)
{
char
buf
[
MAX_PATH
];
int
fd
;
const
char
*
gdb
_path
;
const
char
*
gdb_path
,
*
tmp
_path
;
FILE
*
f
;
if
(
!
(
gdb_path
=
getenv
(
"WINE_GDB"
)))
gdb_path
=
"gdb"
;
strcpy
(
buf
,
"/tmp/winegdb.XXXXXX"
);
if
(
!
(
tmp_path
=
getenv
(
"TMPDIR"
)))
tmp_path
=
"/tmp"
;
strcpy
(
buf
,
tmp_path
);
strcat
(
buf
,
"/winegdb.XXXXXX"
);
fd
=
mkstemps
(
buf
,
0
);
if
(
fd
==
-
1
)
return
FALSE
;
if
((
f
=
fdopen
(
fd
,
"w+"
))
==
NULL
)
return
FALSE
;
...
...
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