Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
llvm-epi-0.8
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Roger Ferrer
llvm-epi-0.8
Commits
1117795e
Commit
1117795e
authored
14 years ago
by
Greg Clayton
Browse files
Options
Downloads
Patches
Plain Diff
Fixed a crasher when enabling logging that is due to the new hijack listener stack changes.
llvm-svn: 125269
parent
f768aa76
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lldb/source/Core/Broadcaster.cpp
+12
-3
12 additions, 3 deletions
lldb/source/Core/Broadcaster.cpp
with
12 additions
and
3 deletions
lldb/source/Core/Broadcaster.cpp
+
12
−
3
View file @
1117795e
...
...
@@ -214,6 +214,16 @@ Broadcaster::PrivateBroadcastEvent (EventSP &event_sp, bool unique)
const
uint32_t
event_type
=
event_sp
->
GetType
();
Mutex
::
Locker
event_types_locker
(
m_listeners_mutex
);
Listener
*
hijacking_listener
=
NULL
;
if
(
!
m_hijacking_listeners
.
empty
())
{
assert
(
!
m_hijacking_masks
.
empty
());
hijacking_listener
=
m_hijacking_listeners
.
back
();
if
((
event_type
&
m_hijacking_masks
.
back
())
==
0
)
hijacking_listener
=
NULL
;
}
LogSP
log
(
lldb_private
::
GetLogIfAnyCategoriesSet
(
LIBLLDB_LOG_EVENTS
));
if
(
log
)
{
...
...
@@ -224,12 +234,11 @@ Broadcaster::PrivateBroadcastEvent (EventSP &event_sp, bool unique)
m_broadcaster_name
.
AsCString
(
""
),
event_description
.
GetData
(),
unique
,
m_
hijacking_listener
s
.
back
()
);
hijacking_listener
);
}
if
(
m_
hijacking_listener
s
.
size
()
>
0
&&
m_hijacking_masks
.
back
()
&
event_type
)
if
(
hijacking_listener
)
{
Listener
*
hijacking_listener
=
m_hijacking_listeners
.
back
();
// FIXME: REMOVE THIS EXTRA LOGGING
LogSP
log_process
(
lldb_private
::
GetLogIfAnyCategoriesSet
(
LIBLLDB_LOG_PROCESS
));
if
(
log_process
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment