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
56dcea4d
Commit
56dcea4d
authored
Dec 03, 2005
by
Eric Pouech
Committed by
Alexandre Julliard
Dec 03, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: simplify some code.
parent
4880c586
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
symbol.c
programs/winedbg/symbol.c
+3
-7
No files found.
programs/winedbg/symbol.c
View file @
56dcea4d
...
...
@@ -432,11 +432,10 @@ enum dbg_line_status symbol_get_function_line_status(const ADDRESS* addr)
{
IMAGEHLP_LINE
il
;
DWORD
disp
;
ULONG64
disp64
,
start
,
size
;
ULONG64
disp64
,
start
;
DWORD
lin
=
(
DWORD
)
memory_to_linear_addr
(
addr
);
char
buffer
[
sizeof
(
SYMBOL_INFO
)
+
256
];
SYMBOL_INFO
*
sym
=
(
SYMBOL_INFO
*
)
buffer
;
struct
dbg_type
type
;
il
.
SizeOfStruct
=
sizeof
(
il
);
sym
->
SizeOfStruct
=
sizeof
(
SYMBOL_INFO
);
...
...
@@ -466,11 +465,8 @@ enum dbg_line_status symbol_get_function_line_status(const ADDRESS* addr)
if
(
symbol_get_debug_start
(
sym
->
ModBase
,
sym
->
TypeIndex
,
&
start
)
&&
lin
<
start
)
return
dbg_not_on_a_line_number
;
type
.
module
=
sym
->
ModBase
;
type
.
id
=
sym
->
TypeIndex
;
if
(
!
types_get_info
(
&
type
,
TI_GET_LENGTH
,
&
size
)
||
size
==
0
)
size
=
0x100000
;
if
(
il
.
FileName
&&
il
.
FileName
[
0
]
&&
disp
<
size
)
if
(
!
sym
->
Size
)
sym
->
Size
=
0x100000
;
if
(
il
.
FileName
&&
il
.
FileName
[
0
]
&&
disp
<
sym
->
Size
)
return
(
disp
==
0
)
?
dbg_on_a_line_number
:
dbg_not_on_a_line_number
;
return
dbg_no_line_info
;
...
...
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