mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Addr2line returns "??" when it does not find a filename.
This commit is contained in:
parent
dc03462d49
commit
d4457e175e
1 changed files with 5 additions and 0 deletions
|
@ -252,6 +252,11 @@ public class BinaryObject extends BinaryFile implements IBinaryObject {
|
|||
if (addr2line != null) {
|
||||
try {
|
||||
String filename = addr2line.getFileName(sym.addr);
|
||||
// Addr2line returns the funny "??" when it can not find the file.
|
||||
if (filename != null && filename.equals("??")) {
|
||||
filename = null;
|
||||
}
|
||||
|
||||
if (filename != null) {
|
||||
if (cygpath != null) {
|
||||
sym.filename = new Path(cygpath.getFileName(filename));
|
||||
|
|
Loading…
Add table
Reference in a new issue