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
51dfd9ad
Commit
51dfd9ad
authored
Mar 27, 2010
by
Francois Gouget
Committed by
Alexandre Julliard
Mar 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Fix compilation with gcc 2.95 and non-GNU compilers.
parent
5aca2dd9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
6 deletions
+20
-6
db_disasm64.c
programs/winedbg/db_disasm64.c
+20
-6
No files found.
programs/winedbg/db_disasm64.c
View file @
51dfd9ad
...
...
@@ -32,11 +32,25 @@
#include <stdio.h>
#include "debugger.h"
static
int
(
*
db_printf
)(
const
char
*
format
,
...)
#ifdef __GNUC__
__attribute__
((
format
(
printf
,
1
,
2
)));
#ifndef __GNUC__
#define __attribute__(X)
#endif
static
int
no_printf
(
const
char
*
format
,
...)
{
return
0
;}
static
int
db_debug
=
0
;
static
int
db_printf
(
const
char
*
format
,
...)
__attribute__
((
format
(
printf
,
1
,
2
)));
int
db_printf
(
const
char
*
format
,
...)
{
va_list
valist
;
int
len
=
0
;
if
(
db_debug
)
{
va_start
(
valist
,
format
);
len
=
dbg_printf
(
format
,
valist
);
va_end
(
valist
);
}
return
len
;
}
typedef
DWORD_PTR
db_addr_t
;
typedef
BOOL
boolean_t
;
...
...
@@ -79,7 +93,7 @@ static ULONG64 db_get_value(db_addr_t addr, int size, int is_signed)
static
void
db_printsym
(
db_addr_t
addr
,
unsigned
unused
)
{
if
(
db_
printf
!=
no_printf
)
if
(
db_
debug
)
{
ADDRESS64
a
;
...
...
@@ -1642,6 +1656,6 @@ db_disasm(db_addr_t loc, boolean_t altfmt)
void
be_x86_64_disasm_one_insn
(
ADDRESS64
*
addr
,
int
display
)
{
db_
printf
=
display
?
dbg_printf
:
no_printf
;
db_
debug
=
display
;
addr
->
Offset
=
db_disasm
(
addr
->
Offset
,
TRUE
);
}
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