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
0888943e
Commit
0888943e
authored
Dec 08, 2021
by
Eric Pouech
Committed by
Alexandre Julliard
Dec 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Rename print_longlong into print_sdecimal (to mimic print_hex).
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bbfbd7ac
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
14 deletions
+5
-14
memory.c
programs/winedbg/memory.c
+5
-14
No files found.
programs/winedbg/memory.c
View file @
0888943e
...
...
@@ -346,18 +346,9 @@ char* memory_offset_to_string(char *str, DWORD64 offset, unsigned mode)
return
str
;
}
static
void
dbg_print_
longlong
(
LONGLONG
sv
,
BOOL
is_signed
)
static
void
dbg_print_
sdecimal
(
dbg_lgint_t
sv
)
{
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
);
dbg_printf
(
"%I64d"
,
sv
);
}
static
void
dbg_print_hex
(
DWORD
size
,
dbg_lgint_t
sv
)
...
...
@@ -512,7 +503,7 @@ static void print_typed_basic(const struct dbg_lvalue* lvalue)
fcp
->
Start
+=
256
;
}
}
if
(
!
ok
)
dbg_print_
longlong
(
val_int
,
TRUE
);
if
(
!
ok
)
dbg_print_
sdecimal
(
val_int
);
}
break
;
default:
...
...
@@ -547,7 +538,7 @@ void print_basic(const struct dbg_lvalue* lvalue, char format)
return
;
case
'd'
:
dbg_print_
longlong
(
res
,
TRUE
);
dbg_print_
sdecimal
(
res
);
return
;
case
'c'
:
...
...
@@ -570,7 +561,7 @@ void print_basic(const struct dbg_lvalue* lvalue, char format)
}
if
(
lvalue
->
type
.
id
==
dbg_itype_segptr
)
{
dbg_print_
longlong
(
types_extract_as_lgint
(
lvalue
,
NULL
,
NULL
),
TRUE
);
dbg_print_
sdecimal
(
types_extract_as_lgint
(
lvalue
,
NULL
,
NULL
)
);
}
else
print_typed_basic
(
lvalue
);
}
...
...
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