Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
9b77e104
Commit
9b77e104
authored
Aug 23, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Win32: display stacktrace before modules list
parent
04d5562b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
17 deletions
+16
-17
bin/winvlc.c
bin/winvlc.c
+16
-17
No files found.
bin/winvlc.c
View file @
9b77e104
...
@@ -357,23 +357,6 @@ LONG WINAPI vlc_exception_filter(struct _EXCEPTION_POINTERS *lpExceptionInfo)
...
@@ -357,23 +357,6 @@ LONG WINAPI vlc_exception_filter(struct _EXCEPTION_POINTERS *lpExceptionInfo)
pContext
->
Ebp
,
pContext
->
Eip
,
pContext
->
Esp
);
pContext
->
Ebp
,
pContext
->
Eip
,
pContext
->
Esp
);
#endif
#endif
HANDLE
hpid
=
OpenProcess
(
PROCESS_QUERY_INFORMATION
|
PROCESS_VM_READ
,
FALSE
,
GetCurrentProcessId
());
if
(
hpid
)
{
HMODULE
mods
[
1024
];
DWORD
size
;
if
(
EnumProcessModules
(
hpid
,
mods
,
sizeof
(
mods
),
&
size
))
{
fwprintf
(
fd
,
L"
\n\n
[modules]
\n
"
);
for
(
unsigned
int
i
=
0
;
i
<
size
/
sizeof
(
HMODULE
);
i
++
)
{
wchar_t
module
[
256
];
GetModuleFileName
(
mods
[
i
],
module
,
256
);
fwprintf
(
fd
,
L"%p|%s
\n
"
,
mods
[
i
],
module
);
}
}
CloseHandle
(
hpid
);
}
fwprintf
(
fd
,
L"
\n
[stacktrace]
\n
#EIP|base|module
\n
"
);
fwprintf
(
fd
,
L"
\n
[stacktrace]
\n
#EIP|base|module
\n
"
);
#ifdef WIN64
#ifdef WIN64
...
@@ -398,6 +381,22 @@ LONG WINAPI vlc_exception_filter(struct _EXCEPTION_POINTERS *lpExceptionInfo)
...
@@ -398,6 +381,22 @@ LONG WINAPI vlc_exception_filter(struct _EXCEPTION_POINTERS *lpExceptionInfo)
pBase
=
*
pBase
;
pBase
=
*
pBase
;
}
}
HANDLE
hpid
=
OpenProcess
(
PROCESS_QUERY_INFORMATION
|
PROCESS_VM_READ
,
FALSE
,
GetCurrentProcessId
());
if
(
hpid
)
{
HMODULE
mods
[
1024
];
DWORD
size
;
if
(
EnumProcessModules
(
hpid
,
mods
,
sizeof
(
mods
),
&
size
))
{
fwprintf
(
fd
,
L"
\n\n
[modules]
\n
"
);
for
(
unsigned
int
i
=
0
;
i
<
size
/
sizeof
(
HMODULE
);
i
++
)
{
wchar_t
module
[
256
];
GetModuleFileName
(
mods
[
i
],
module
,
256
);
fwprintf
(
fd
,
L"%p|%s
\n
"
,
mods
[
i
],
module
);
}
}
CloseHandle
(
hpid
);
}
fclose
(
fd
);
fclose
(
fd
);
fflush
(
stderr
);
fflush
(
stderr
);
exit
(
1
);
exit
(
1
);
...
...
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