mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
2004-12-09 Alain Magloire
Fix for 80724: not showing initialized global variables. * utils/org/eclipse/cdt/utils/coff/parser/CygwinPEBinaryObject.java
This commit is contained in:
parent
2db439e528
commit
da52887933
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2004-12-09 Alain Magloire
|
||||||
|
Fix for 80724: not showing initialized global variables.
|
||||||
|
* utils/org/eclipse/cdt/utils/coff/parser/CygwinPEBinaryObject.java
|
||||||
|
|
||||||
2004-12-10 David Inglis
|
2004-12-10 David Inglis
|
||||||
Fixed bug #80713
|
Fixed bug #80713
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,7 @@ import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.eclipse.cdt.core.CConventions;
|
||||||
import org.eclipse.cdt.core.IAddress;
|
import org.eclipse.cdt.core.IAddress;
|
||||||
import org.eclipse.cdt.core.IBinaryParser;
|
import org.eclipse.cdt.core.IBinaryParser;
|
||||||
import org.eclipse.cdt.core.IBinaryParser.ISymbol;
|
import org.eclipse.cdt.core.IBinaryParser.ISymbol;
|
||||||
|
@ -191,6 +192,10 @@ public class CygwinPEBinaryObject extends PEBinaryObject {
|
||||||
for (int i = 0; i < pairs.length; ++i) {
|
for (int i = 0; i < pairs.length; ++i) {
|
||||||
addSymbol(pairs[i], list, ISymbol.VARIABLE);
|
addSymbol(pairs[i], list, ISymbol.VARIABLE);
|
||||||
}
|
}
|
||||||
|
pairs = nm.getDataSymbols();
|
||||||
|
for (int i = 0; i < pairs.length; ++i) {
|
||||||
|
addSymbol(pairs[i], list, ISymbol.VARIABLE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// pairs = nm.getTextSymbols();
|
// pairs = nm.getTextSymbols();
|
||||||
// for (int i = 0; i < pairs.length; ++i) {
|
// for (int i = 0; i < pairs.length; ++i) {
|
||||||
|
@ -216,7 +221,7 @@ public class CygwinPEBinaryObject extends PEBinaryObject {
|
||||||
|
|
||||||
private void addSymbol(NM.AddressNamePair p, List list, int type) {
|
private void addSymbol(NM.AddressNamePair p, List list, int type) {
|
||||||
String name = p.name;
|
String name = p.name;
|
||||||
if (name != null && name.length() > 0 && Character.isJavaIdentifierStart(name.charAt(0))) {
|
if (name != null && name.length() > 0 && CConventions.isValidIdentifier(name)) {
|
||||||
IAddress addr = new Addr32(p.address);
|
IAddress addr = new Addr32(p.address);
|
||||||
int size = 4;
|
int size = 4;
|
||||||
if (symbolLoadingCPPFilt != null) {
|
if (symbolLoadingCPPFilt != null) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue