Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-debug-dev] problems: remote debug on AIX

I am trying to get gdbPicl run AIX(PowerPC) with gdb 
and I encountered the following problems:
(1). StringIndexOutOfBoundsException:
     This occurred in GetModuleParts.updateAllParts.
     the code around this point is
objFile="??????";
fullObjFileName="??????";
symtabs=false;
int colon=str.indexOf(":");
int slash=str.lastIndexOf("/");
if(colon>0 && slash>0)
{
  objFile=str.substring(slash+1, colon);
}
fullObjFileName=str.substring(keyword.length(),colon).trim();
objPath = str.substring(keyword.length(),slash+1);
<<this is the line caused the exception,when slash<0

The fix for this problem would be to put "if(slash>0)"
before setting objPath.

(2). GetGdbSharedLibraries.getSharedLibraries missing
' ' after startAddress 0xd007021c:
This occurred at two places:  line 120 and 140.
at line 120, the code is expecting " ", but AIX using
"-". at line 140, the code is expecting " ", AIX using
"	". The fix for this would be to put #ifdef AIX
around both lines and to set a "keyword" to the right
character according to the pplatformthe code is
running on.
(3). Module.setModuleStartFinishAddress
NUMBER_EXCEPTION:
This code around is _startAddress =
Integer.parseInt(start,16);
This method doesn't work for addresses like 0xd700201c
or ox800201c, they are too big for Integer.parseInt.

It seems that _startAddress and _finishAddress are
private data members of Module class and they are used
in containesAddress method for address validation. Is
it necessary to use integer values to do the
validation? Why not using string comparison?

(4). The output of "info file" command is different on
AIX causes GetMainModule method to set endAddress to
the wrong value.
PPleasesee the attached file for the output of "info
file" on AIX. In AIX case, the code set startAddress
to 0x10000150 and endAddress to 0x0000228c.

Can anyone explain where startAddress, endAddress and
_dataAddress are used and what values needs to be set
to?

Thanks in advance.

Linda Xie

 







__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

Attachment: info.out
Description: info.out


Back to the top