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
387edc76
Commit
387edc76
authored
Aug 26, 2001
by
Bryce McKinlay
Committed by
Bryce McKinlay
Aug 26, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* name-finder.cc (lookup): Ignore a null dli_fname from d
From-SVN: r45181
parent
51c4678a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
libjava/ChangeLog
+4
-0
libjava/name-finder.cc
+4
-2
No files found.
libjava/ChangeLog
View file @
387edc76
2001-08-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* name-finder.cc (lookup): Ignore a null dli_fname from dladdr.
2001-08-23 Tom Tromey <tromey@redhat.com>
2001-08-23 Tom Tromey <tromey@redhat.com>
* java/lang/reflect/Field.java (toString): Use
* java/lang/reflect/Field.java (toString): Use
...
...
libjava/name-finder.cc
View file @
387edc76
...
@@ -145,11 +145,13 @@ _Jv_name_finder::lookup (void *p)
...
@@ -145,11 +145,13 @@ _Jv_name_finder::lookup (void *p)
if
(
dladdr
(
p
,
&
dl_info
))
if
(
dladdr
(
p
,
&
dl_info
))
{
{
strncpy
(
file_name
,
dl_info
.
dli_fname
,
sizeof
file_name
);
if
(
dl_info
.
dli_fname
)
strncpy
(
file_name
,
dl_info
.
dli_fname
,
sizeof
file_name
);
strncpy
(
method_name
,
dl_info
.
dli_sname
,
sizeof
method_name
);
strncpy
(
method_name
,
dl_info
.
dli_sname
,
sizeof
method_name
);
/* Don't trust dladdr() if the address is from the main program. */
/* Don't trust dladdr() if the address is from the main program. */
if
(
_Jv_argv
==
NULL
||
strcmp
(
file_name
,
_Jv_argv
[
0
])
!=
0
)
if
(
dl_info
.
dli_fname
!=
NULL
&&
(
_Jv_argv
==
NULL
||
strcmp
(
file_name
,
_Jv_argv
[
0
])
!=
0
))
return
true
;
return
true
;
}
}
}
}
...
...
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