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
e3f8799a
Commit
e3f8799a
authored
Sep 25, 2006
by
Eric Pouech
Committed by
Alexandre Julliard
Sep 26, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Put back the %d format for printing integral values even for
64bit internal values as the default format in winebdg command imposes.
parent
7c92e801
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
memory.c
programs/winedbg/memory.c
+17
-3
No files found.
programs/winedbg/memory.c
View file @
e3f8799a
...
...
@@ -299,6 +299,20 @@ char* memory_offset_to_string(char *str, DWORD64 offset, unsigned mode)
return
str
;
}
static
void
dbg_print_longlong
(
LONGLONG
sv
,
BOOL
is_signed
)
{
char
tmp
[
24
],
*
ptr
=
tmp
+
sizeof
(
tmp
)
-
1
;
ULONGLONG
uv
,
div
;
*
ptr
=
'\0'
;
if
(
is_signed
&&
sv
<
0
)
uv
=
-
sv
;
else
{
uv
=
sv
;
is_signed
=
FALSE
;
}
for
(
div
=
10
;
uv
;
div
*=
10
,
uv
/=
10
)
*--
ptr
=
'0'
+
(
uv
%
10
);
if
(
ptr
==
tmp
+
sizeof
(
tmp
)
-
1
)
*--
ptr
=
'0'
;
if
(
is_signed
)
*--
ptr
=
'-'
;
dbg_printf
(
"%s"
,
ptr
);
}
static
void
print_typed_basic
(
const
struct
dbg_lvalue
*
lvalue
)
{
LONGLONG
val_int
;
...
...
@@ -326,12 +340,12 @@ static void print_typed_basic(const struct dbg_lvalue* lvalue)
case
btInt
:
case
btLong
:
if
(
!
be_cpu
->
fetch_integer
(
lvalue
,
size
,
TRUE
,
&
val_int
))
return
;
dbg_print
f
(
"%s"
,
wine_dbgstr_longlong
(
val_int
)
);
dbg_print
_longlong
(
val_int
,
TRUE
);
break
;
case
btUInt
:
case
btULong
:
if
(
!
be_cpu
->
fetch_integer
(
lvalue
,
size
,
FALSE
,
&
val_int
))
return
;
dbg_print
f
(
"%s"
,
wine_dbgstr_longlong
(
val_int
)
);
dbg_print
_longlong
(
val_int
,
FALSE
);
break
;
case
btFloat
:
if
(
!
be_cpu
->
fetch_float
(
lvalue
,
size
,
&
val_real
))
return
;
...
...
@@ -438,7 +452,7 @@ static void print_typed_basic(const struct dbg_lvalue* lvalue)
count
-=
min
(
count
,
256
);
fcp
->
Start
+=
256
;
}
if
(
!
ok
)
dbg_print
f
(
"%s"
,
wine_dbgstr_longlong
(
val_int
)
);
if
(
!
ok
)
dbg_print
_longlong
(
val_int
,
TRUE
);
}
break
;
default:
...
...
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