Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tools
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
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
Show more breadcrumbs
CodeLinaro
public-release-test-restored
platform
vendor
qcom-opensource
tools
Commits
599f3123
Commit
599f3123
authored
11 years ago
by
Linux Build Service Account
Committed by
Gerrit - the friendly Code Review server
11 years ago
Browse files
Options
Downloads
Plain Diff
Merge "linux-ramdump-parser-v2: Properly support unwinding without tables"
parents
4372c731
280ae8af
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
linux-ramdump-parser-v2/ramdump.py
+4
-3
4 additions, 3 deletions
linux-ramdump-parser-v2/ramdump.py
with
4 additions
and
3 deletions
linux-ramdump-parser-v2/ramdump.py
+
4
−
3
View file @
599f3123
...
@@ -67,14 +67,15 @@ class RamDump():
...
@@ -67,14 +67,15 @@ class RamDump():
def
__init__
(
self
,
ramdump
):
def
__init__
(
self
,
ramdump
):
start
=
ramdump
.
addr_lookup
(
'
__start_unwind_idx
'
)
start
=
ramdump
.
addr_lookup
(
'
__start_unwind_idx
'
)
end
=
ramdump
.
addr_lookup
(
'
__stop_unwind_idx
'
)
end
=
ramdump
.
addr_lookup
(
'
__stop_unwind_idx
'
)
self
.
ramdump
=
ramdump
if
(
start
is
None
)
or
(
end
is
None
):
if
(
start
is
None
)
or
(
end
is
None
):
print_out_str
(
'
!!! Could not lookup unwinding information
'
)
self
.
unwind_frame
=
self
.
unwind_frame_generic
return
None
return
None
# addresses
# addresses
self
.
unwind_frame
=
self
.
unwind_frame_tables
self
.
start_idx
=
start
self
.
start_idx
=
start
self
.
stop_idx
=
end
self
.
stop_idx
=
end
self
.
unwind_table
=
[]
self
.
unwind_table
=
[]
self
.
ramdump
=
ramdump
i
=
0
i
=
0
for
addr
in
range
(
start
,
end
,
8
):
for
addr
in
range
(
start
,
end
,
8
):
r
=
ramdump
.
read_string
(
addr
,
'
<II
'
)
r
=
ramdump
.
read_string
(
addr
,
'
<II
'
)
...
@@ -325,7 +326,7 @@ class RamDump():
...
@@ -325,7 +326,7 @@ class RamDump():
temp
=
addr
+
offset
temp
=
addr
+
offset
return
(
temp
&
0xffffffff
)
+
((
temp
>>
32
)
&
0xffffffff
)
return
(
temp
&
0xffffffff
)
+
((
temp
>>
32
)
&
0xffffffff
)
def
unwind_frame
(
self
,
frame
,
trace
=
False
):
def
unwind_frame
_tables
(
self
,
frame
,
trace
=
False
):
low
=
frame
.
sp
low
=
frame
.
sp
high
=
((
low
+
(
THREAD_SIZE
-
1
))
&
~
(
THREAD_SIZE
-
1
))
+
\
high
=
((
low
+
(
THREAD_SIZE
-
1
))
&
~
(
THREAD_SIZE
-
1
))
+
\
THREAD_SIZE
THREAD_SIZE
...
...
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