mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-21 15:23:59 +02:00
addr2line returns "??" when not finding the filename
This commit is contained in:
parent
9d3d0c03a0
commit
6deb0ad99c
1 changed files with 4 additions and 0 deletions
|
@ -252,6 +252,10 @@ 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