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
c09ac7a4
Commit
c09ac7a4
authored
Dec 09, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Use the explicit name for all A/W function.
parent
09db5288
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
43 additions
and
42 deletions
+43
-42
Makefile.in
programs/winedbg/Makefile.in
+1
-0
dbg.y
programs/winedbg/dbg.y
+3
-3
debugger.h
programs/winedbg/debugger.h
+1
-1
gdbproxy.c
programs/winedbg/gdbproxy.c
+4
-4
info.c
programs/winedbg/info.c
+17
-17
source.c
programs/winedbg/source.c
+5
-5
tgt_active.c
programs/winedbg/tgt_active.c
+4
-4
tgt_minidump.c
programs/winedbg/tgt_minidump.c
+2
-2
winedbg.c
programs/winedbg/winedbg.c
+6
-6
No files found.
programs/winedbg/Makefile.in
View file @
c09ac7a4
...
...
@@ -7,6 +7,7 @@ APPMODE = -mconsole
IMPORTS
=
psapi dbghelp advapi32 kernel32 ntdll
DELAYIMPORTS
=
user32 gdi32
EXTRALIBS
=
@LIBPOLL@
EXTRADEFS
=
-DWINE_NO_UNICODE_MACROS
C_SRCS
=
\
be_alpha.c
\
...
...
programs/winedbg/dbg.y
View file @
c09ac7a4
...
...
@@ -556,7 +556,7 @@ void parser_handle(HANDLE input)
static void parser(const char* filename)
{
HANDLE h = CreateFile(filename, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0L, 0);
HANDLE h = CreateFile
A
(filename, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0L, 0);
if (h != INVALID_HANDLE_VALUE)
{
parser_handle(h);
...
...
@@ -577,8 +577,8 @@ HANDLE parser_generate_command_file(const char* pmt, ...)
DWORD w;
const char* p;
GetTempPath(sizeof(path), path);
GetTempFileName(path, "WD", 0, file);
GetTempPath
A
(sizeof(path), path);
GetTempFileName
A
(path, "WD", 0, file);
hFile = CreateFileA(file, GENERIC_READ|GENERIC_WRITE|DELETE, FILE_SHARE_DELETE,
NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL | FILE_FLAG_DELETE_ON_CLOSE, 0);
if (hFile != INVALID_HANDLE_VALUE)
...
...
programs/winedbg/debugger.h
View file @
c09ac7a4
...
...
@@ -160,7 +160,7 @@ struct dbg_breakpoint
typedef
struct
tagTHREADNAME_INFO
{
DWORD
dwType
;
/* Must be 0x1000 */
LPC
TSTR
szName
;
/* Pointer to name - limited to 9 bytes (8 characters + terminator) */
LPC
STR
szName
;
/* Pointer to name - limited to 9 bytes (8 characters + terminator) */
DWORD
dwThreadID
;
/* Thread ID (-1 = caller thread) */
DWORD
dwFlags
;
/* Reserved for future use. Must be zero. */
}
THREADNAME_INFO
;
...
...
programs/winedbg/gdbproxy.c
View file @
c09ac7a4
...
...
@@ -1501,9 +1501,9 @@ static void packet_query_monitor_wnd_helper(struct gdb_context* gdbctx, HWND hWn
HWND
child
;
do
{
if
(
!
GetClassName
(
hWnd
,
clsName
,
sizeof
(
clsName
)))
if
(
!
GetClassName
A
(
hWnd
,
clsName
,
sizeof
(
clsName
)))
strcpy
(
clsName
,
"-- Unknown --"
);
if
(
!
GetWindowText
(
hWnd
,
wndName
,
sizeof
(
wndName
)))
if
(
!
GetWindowText
A
(
hWnd
,
wndName
,
sizeof
(
wndName
)))
strcpy
(
wndName
,
"-- Empty --"
);
packet_reply_open
(
gdbctx
);
...
...
@@ -1511,8 +1511,8 @@ static void packet_query_monitor_wnd_helper(struct gdb_context* gdbctx, HWND hWn
snprintf
(
buffer
,
sizeof
(
buffer
),
"%*s%04lx%*s%-17.17s %08x %08x %.14s
\n
"
,
indent
,
""
,
(
ULONG_PTR
)
hWnd
,
13
-
indent
,
""
,
clsName
,
GetWindowLong
(
hWnd
,
GWL_STYLE
),
GetWindowLongPtr
(
hWnd
,
GWLP_WNDPROC
),
wndName
);
clsName
,
GetWindowLong
W
(
hWnd
,
GWL_STYLE
),
GetWindowLongPtr
W
(
hWnd
,
GWLP_WNDPROC
),
wndName
);
packet_reply_hex_to_str
(
gdbctx
,
buffer
);
packet_reply_close
(
gdbctx
);
...
...
programs/winedbg/info.c
View file @
c09ac7a4
...
...
@@ -280,9 +280,9 @@ static void class_walker(HWND hWnd, struct class_walker* cw)
ATOM
atom
;
HWND
child
;
if
(
!
GetClassName
(
hWnd
,
clsName
,
sizeof
(
clsName
)))
if
(
!
GetClassName
A
(
hWnd
,
clsName
,
sizeof
(
clsName
)))
return
;
if
((
atom
=
FindAtom
(
clsName
))
==
0
)
if
((
atom
=
FindAtom
A
(
clsName
))
==
0
)
return
;
for
(
i
=
0
;
i
<
cw
->
used
;
i
++
)
...
...
@@ -310,7 +310,7 @@ static void class_walker(HWND hWnd, struct class_walker* cw)
void
info_win32_class
(
HWND
hWnd
,
const
char
*
name
)
{
WNDCLASSEXA
wca
;
HINSTANCE
hInst
=
hWnd
?
(
HINSTANCE
)
GetWindowLongPtr
(
hWnd
,
GWLP_HINSTANCE
)
:
0
;
HINSTANCE
hInst
=
hWnd
?
(
HINSTANCE
)
GetWindowLongPtr
W
(
hWnd
,
GWLP_HINSTANCE
)
:
0
;
if
(
!
name
)
{
...
...
@@ -323,7 +323,7 @@ void info_win32_class(HWND hWnd, const char* name)
return
;
}
if
(
!
GetClassInfoEx
(
hInst
,
name
,
&
wca
))
if
(
!
GetClassInfoEx
A
(
hInst
,
name
,
&
wca
))
{
dbg_printf
(
"Cannot find class '%s'
\n
"
,
name
);
return
;
...
...
@@ -366,15 +366,15 @@ static void info_window(HWND hWnd, int indent)
do
{
if
(
!
GetClassName
(
hWnd
,
clsName
,
sizeof
(
clsName
)))
if
(
!
GetClassName
A
(
hWnd
,
clsName
,
sizeof
(
clsName
)))
strcpy
(
clsName
,
"-- Unknown --"
);
if
(
!
GetWindowText
(
hWnd
,
wndName
,
sizeof
(
wndName
)))
if
(
!
GetWindowText
A
(
hWnd
,
wndName
,
sizeof
(
wndName
)))
strcpy
(
wndName
,
"-- Empty --"
);
dbg_printf
(
"%*s%08lx%*s %-17.17s %08x %08x %08x %.14s
\n
"
,
indent
,
""
,
(
DWORD_PTR
)
hWnd
,
12
-
indent
,
""
,
clsName
,
GetWindowLong
(
hWnd
,
GWL_STYLE
),
GetWindowLongPtr
(
hWnd
,
GWLP_WNDPROC
),
clsName
,
GetWindowLong
W
(
hWnd
,
GWL_STYLE
),
GetWindowLongPtr
W
(
hWnd
,
GWLP_WNDPROC
),
GetWindowThreadProcessId
(
hWnd
,
NULL
),
wndName
);
if
((
child
=
GetWindow
(
hWnd
,
GW_CHILD
))
!=
0
)
...
...
@@ -400,9 +400,9 @@ void info_win32_window(HWND hWnd, BOOL detailed)
return
;
}
if
(
!
GetClassName
(
hWnd
,
clsName
,
sizeof
(
clsName
)))
if
(
!
GetClassName
A
(
hWnd
,
clsName
,
sizeof
(
clsName
)))
strcpy
(
clsName
,
"-- Unknown --"
);
if
(
!
GetWindowText
(
hWnd
,
wndName
,
sizeof
(
wndName
)))
if
(
!
GetWindowText
A
(
hWnd
,
wndName
,
sizeof
(
wndName
)))
strcpy
(
wndName
,
"-- Empty --"
);
if
(
!
GetClientRect
(
hWnd
,
&
clientRect
)
||
!
MapWindowPoints
(
hWnd
,
0
,
(
LPPOINT
)
&
clientRect
,
2
))
...
...
@@ -420,23 +420,23 @@ void info_win32_window(HWND hWnd, BOOL detailed)
GetParent
(
hWnd
),
GetWindow
(
hWnd
,
GW_OWNER
),
clsName
,
(
HINSTANCE
)
GetWindowLongPtr
(
hWnd
,
GWLP_HINSTANCE
),
(
HINSTANCE
)
GetWindowLongPtr
W
(
hWnd
,
GWLP_HINSTANCE
),
GetLastActivePopup
(
hWnd
),
GetWindowLongPtr
(
hWnd
,
GWLP_ID
),
GetWindowLong
(
hWnd
,
GWL_STYLE
),
GetWindowLong
(
hWnd
,
GWL_EXSTYLE
),
GetWindowLongPtr
(
hWnd
,
GWLP_WNDPROC
),
GetWindowLongPtr
W
(
hWnd
,
GWLP_ID
),
GetWindowLong
W
(
hWnd
,
GWL_STYLE
),
GetWindowLong
W
(
hWnd
,
GWL_EXSTYLE
),
GetWindowLongPtr
W
(
hWnd
,
GWLP_WNDPROC
),
wndName
,
clientRect
.
left
,
clientRect
.
top
,
clientRect
.
right
,
clientRect
.
bottom
,
windowRect
.
left
,
windowRect
.
top
,
windowRect
.
right
,
windowRect
.
bottom
,
GetSystemMenu
(
hWnd
,
FALSE
));
if
(
GetClassLong
(
hWnd
,
GCL_CBWNDEXTRA
))
if
(
GetClassLong
W
(
hWnd
,
GCL_CBWNDEXTRA
))
{
UINT
i
;
dbg_printf
(
"Extra bytes:"
);
for
(
i
=
0
;
i
<
GetClassLong
(
hWnd
,
GCL_CBWNDEXTRA
)
/
2
;
i
++
)
for
(
i
=
0
;
i
<
GetClassLong
W
(
hWnd
,
GCL_CBWNDEXTRA
)
/
2
;
i
++
)
{
w
=
GetWindowWord
(
hWnd
,
i
*
2
);
/* FIXME: depends on i386 endian-ity */
...
...
programs/winedbg/source.c
View file @
c09ac7a4
...
...
@@ -84,11 +84,11 @@ static void* source_map_file(const char* name, HANDLE* hMap, unsigned* size)
{
HANDLE
hFile
;
hFile
=
CreateFile
(
name
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
OPEN_EXISTING
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
hFile
=
CreateFile
A
(
name
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
OPEN_EXISTING
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
if
(
hFile
==
INVALID_HANDLE_VALUE
)
return
(
void
*
)
-
1
;
if
(
size
!=
NULL
&&
(
*
size
=
GetFileSize
(
hFile
,
NULL
))
==
-
1
)
return
(
void
*
)
-
1
;
*
hMap
=
CreateFileMapping
(
hFile
,
NULL
,
PAGE_READONLY
,
0
,
0
,
NULL
);
*
hMap
=
CreateFileMapping
W
(
hFile
,
NULL
,
PAGE_READONLY
,
0
,
0
,
NULL
);
CloseHandle
(
hFile
);
if
(
!*
hMap
)
return
(
void
*
)
-
1
;
return
MapViewOfFile
(
*
hMap
,
FILE_MAP_READ
,
0
,
0
,
0
);
...
...
@@ -115,7 +115,7 @@ static BOOL source_locate_file(const char* srcfile, char* path)
{
BOOL
found
=
FALSE
;
if
(
GetFileAttributes
(
srcfile
)
!=
INVALID_FILE_ATTRIBUTES
)
if
(
GetFileAttributes
A
(
srcfile
)
!=
INVALID_FILE_ATTRIBUTES
)
{
strcpy
(
path
,
srcfile
);
found
=
TRUE
;
...
...
@@ -216,7 +216,7 @@ static int source_display(const char* sourcefile, int start, int end)
}
else
tmppath
[
0
]
=
'\0'
;
if
(
GetFileAttributes
(
tmppath
)
==
INVALID_FILE_ATTRIBUTES
)
if
(
GetFileAttributes
A
(
tmppath
)
==
INVALID_FILE_ATTRIBUTES
)
{
/*
* OK, I guess the user doesn't really want to see it
...
...
programs/winedbg/tgt_active.c
View file @
c09ac7a4
...
...
@@ -745,8 +745,8 @@ static unsigned dbg_start_debuggee(LPSTR cmdLine)
flags
=
DEBUG_PROCESS
|
CREATE_NEW_CONSOLE
;
if
(
!
DBG_IVAR
(
AlsoDebugProcChild
))
flags
|=
DEBUG_ONLY_THIS_PROCESS
;
if
(
!
CreateProcess
(
NULL
,
cmdLine
,
NULL
,
NULL
,
FALSE
,
flags
,
NULL
,
NULL
,
&
startup
,
&
info
))
if
(
!
CreateProcess
A
(
NULL
,
cmdLine
,
NULL
,
NULL
,
FALSE
,
flags
,
NULL
,
NULL
,
&
startup
,
&
info
))
{
dbg_printf
(
"Couldn't start process '%s'
\n
"
,
cmdLine
);
return
FALSE
;
...
...
@@ -950,8 +950,8 @@ enum dbg_start dbg_active_auto(int argc, char* argv[])
{
char
path
[
MAX_PATH
];
GetTempPath
(
sizeof
(
path
),
path
);
GetTempFileName
(
path
,
"WD"
,
0
,
tmp
+
10
);
GetTempPath
A
(
sizeof
(
path
),
path
);
GetTempFileName
A
(
path
,
"WD"
,
0
,
tmp
+
10
);
}
else
strcpy
(
tmp
+
10
,
file
);
strcat
(
tmp
,
"
\"
"
);
...
...
programs/winedbg/tgt_minidump.c
View file @
c09ac7a4
...
...
@@ -51,8 +51,8 @@ void minidump_write(const char* file, const EXCEPTION_RECORD* rec)
MINIDUMP_EXCEPTION_INFORMATION
mei
;
EXCEPTION_POINTERS
ep
;
hFile
=
CreateFile
(
file
,
GENERIC_READ
|
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
hFile
=
CreateFile
A
(
file
,
GENERIC_READ
|
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
if
(
hFile
==
INVALID_HANDLE_VALUE
)
return
;
...
...
programs/winedbg/winedbg.c
View file @
c09ac7a4
...
...
@@ -201,8 +201,8 @@ static unsigned dbg_load_internal_vars(void)
{
if
(
!
dbg_internal_vars
[
i
].
pval
)
{
if
(
!
RegQueryValueEx
(
hkey
,
dbg_internal_vars
[
i
].
name
,
0
,
&
type
,
(
LPBYTE
)
&
val
,
&
count
))
if
(
!
RegQueryValueEx
A
(
hkey
,
dbg_internal_vars
[
i
].
name
,
0
,
&
type
,
(
LPBYTE
)
&
val
,
&
count
))
dbg_internal_vars
[
i
].
val
=
val
;
dbg_internal_vars
[
i
].
pval
=
&
dbg_internal_vars
[
i
].
val
;
}
...
...
@@ -229,9 +229,9 @@ static unsigned dbg_save_internal_vars(void)
{
/* FIXME: type should be inferred from basic type -if any- of intvar */
if
(
dbg_internal_vars
[
i
].
pval
==
&
dbg_internal_vars
[
i
].
val
)
RegSetValueEx
(
hkey
,
dbg_internal_vars
[
i
].
name
,
0
,
REG_DWORD
,
(
const
void
*
)
dbg_internal_vars
[
i
].
pval
,
sizeof
(
*
dbg_internal_vars
[
i
].
pval
));
RegSetValueEx
A
(
hkey
,
dbg_internal_vars
[
i
].
name
,
0
,
REG_DWORD
,
(
const
void
*
)
dbg_internal_vars
[
i
].
pval
,
sizeof
(
*
dbg_internal_vars
[
i
].
pval
));
}
RegCloseKey
(
hkey
);
return
TRUE
;
...
...
@@ -565,7 +565,7 @@ void dbg_init_console(void)
SetConsoleCtrlHandler
(
ctrl_c_handler
,
TRUE
);
/* set our own title */
SetConsoleTitle
(
"Wine Debugger"
);
SetConsoleTitle
A
(
"Wine Debugger"
);
}
static
int
dbg_winedbg_usage
(
BOOL
advanced
)
...
...
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