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
911d4242
Commit
911d4242
authored
Jan 18, 2002
by
Eric Pouech
Committed by
Alexandre Julliard
Jan 18, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes char array in structure dumping.
parent
964109de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
14 deletions
+31
-14
types.c
debugger/types.c
+31
-14
No files found.
debugger/types.c
View file @
911d4242
...
...
@@ -861,24 +861,41 @@ DEBUG_Print( const DBG_VALUE *value, int count, char format, int level )
size
=
DEBUG_GetObjectSize
(
value
->
type
->
un
.
array
.
basictype
);
if
(
size
==
1
)
{
char
ach
[
16
];
int
len
,
clen
;
/*
* Special handling for character arrays.
*/
pnt
=
(
char
*
)
value
->
addr
.
off
;
DEBUG_nchar
+=
DEBUG_Printf
(
DBG_CHN_MESG
,
"
\"
"
);
for
(
i
=
value
->
type
->
un
.
array
.
start
;
i
<
value
->
type
->
un
.
array
.
end
;
i
++
)
{
DEBUG_Output
(
DBG_CHN_MESG
,
pnt
++
,
1
);
DEBUG_nchar
++
;
if
(
DEBUG_nchar
>
DEBUG_maxchar
)
{
DEBUG_Printf
(
DBG_CHN_MESG
,
"...
\"
"
);
goto
leave
;
}
}
DEBUG_nchar
+=
DEBUG_Printf
(
DBG_CHN_MESG
,
"
\"
"
);
break
;
}
len
=
value
->
type
->
un
.
array
.
end
-
value
->
type
->
un
.
array
.
start
+
1
;
clen
=
(
DEBUG_nchar
+
len
<
DEBUG_maxchar
)
?
len
:
(
DEBUG_maxchar
-
DEBUG_nchar
);
DEBUG_nchar
+=
DEBUG_Printf
(
DBG_CHN_MESG
,
"
\"
"
);
switch
(
value
->
cookie
)
{
case
DV_TARGET
:
for
(
i
=
clen
;
i
>
0
;
i
-=
sizeof
(
ach
))
{
DEBUG_READ_MEM
(
pnt
,
ach
,
min
(
sizeof
(
ach
),
i
));
DEBUG_Output
(
DBG_CHN_MESG
,
ach
,
min
(
sizeof
(
ach
),
i
));
}
break
;
case
DV_HOST
:
DEBUG_Output
(
DBG_CHN_MESG
,
pnt
,
clen
);
break
;
default:
assert
(
0
);
}
DEBUG_nchar
+=
clen
;
if
(
clen
!=
len
)
{
DEBUG_Printf
(
DBG_CHN_MESG
,
"...
\"
"
);
goto
leave
;
}
DEBUG_nchar
+=
DEBUG_Printf
(
DBG_CHN_MESG
,
"
\"
"
);
break
;
}
val1
=
*
value
;
val1
.
type
=
value
->
type
->
un
.
array
.
basictype
;
DEBUG_nchar
+=
DEBUG_Printf
(
DBG_CHN_MESG
,
"{"
);
...
...
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