Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
55c15dfc
Commit
55c15dfc
authored
May 15, 2005
by
Tom Tromey
Committed by
Tom Tromey
May 15, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* stacktrace.cc (getLineNumberForFrame): Use _Jv_GetSafeArg.
From-SVN: r99733
parent
099ff66c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
libjava/ChangeLog
+4
-0
libjava/stacktrace.cc
+3
-3
No files found.
libjava/ChangeLog
View file @
55c15dfc
2005
-
05
-
15
Tom
Tromey
<
tromey
@
redhat
.
com
>
*
stacktrace
.
cc
(
getLineNumberForFrame
):
Use
_Jv_GetSafeArg
.
2005
-
05
-
13
Bryce
McKinlay
<
mckinlay
@
redhat
.
com
>
PR
libgcj
/
21557
...
...
libjava/stacktrace.cc
View file @
55c15dfc
...
...
@@ -184,13 +184,13 @@ _Jv_StackTrace::getLineNumberForFrame(_Jv_StackFrame *frame, NameFinder *finder,
#endif
// Use dladdr() to determine in which binary the address IP resides.
#if defined (HAVE_DLFCN_H) && defined (HAVE_DLADDR)
extern
char
**
_Jv_argv
;
Dl_info
info
;
jstring
binaryName
=
NULL
;
const
char
*
argv0
=
_Jv_GetSafeArg
(
0
);
void
*
ip
=
frame
->
ip
;
_Unwind_Ptr
offset
=
0
;
if
(
dladdr
(
ip
,
&
info
))
{
if
(
info
.
dli_fname
)
...
...
@@ -199,7 +199,7 @@ _Jv_StackTrace::getLineNumberForFrame(_Jv_StackFrame *frame, NameFinder *finder,
return
;
// addr2line expects relative addresses for shared libraries.
if
(
strcmp
(
info
.
dli_fname
,
_Jv_argv
[
0
]
)
==
0
)
if
(
strcmp
(
info
.
dli_fname
,
argv0
)
==
0
)
offset
=
(
_Unwind_Ptr
)
ip
;
else
offset
=
(
_Unwind_Ptr
)
ip
-
(
_Unwind_Ptr
)
info
.
dli_fbase
;
...
...
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