[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[cdt-debug-dev] The list generated by "info sharedlibrary" gets truncated.
|
The following is the list from "info sharedlibrary" on
AIX:
info sharedlibrary
// the is the 1st line
post-prompt
Text Range Data Range Syms
Shared Object Library
0xd1040d20-0xd10a1a42 0xf04dcf20-0xf0508684 Yes
(shr.o) /usr/lib/librtl.a
0xd007021c-0xd0070966 0xf028c530-0xf028c658 Yes
(shr.o) /usr/lib/libcrypt.a
0xd01b93a0-0xd0392f69 0xf020a0c0-0xf028bf18 Yes
(shr.o) /usr/lib/libc.a
0xd32f8150-0xd32f8535 0xf0a1a3b4-0xf0a1a3f4 Yes
./libdummy.a
pre-prompt
(gdb)
prompt
Since the following code will get out of the loop when
it sees "pre-prompt" line,
GdbCommandAndResponse.java:
at line 150:
else if ( lines[i].equals(PRE_PROMPT_keyword) )
{
break;
}
So, String[] lines =
_debugSession.getTextResponseLines(); in
GetGdbSharedLibraries::updateSharedLibraries() will
have:
Text Range Data Range Syms
Shared Object Library
0xd1040d20-0xd10a1a42 0xf04dcf20-0xf0508684 Yes
(shr.o) /usr/lib/librtl.a
0xd007021c-0xd0070966 0xf028c530-0xf028c658 Yes
(shr.o) /usr/lib/libcrypt.a
0xd01b93a0-0xd0392f69 0xf020a0c0-0xf028bf18 Yes
(shr.o) /usr/lib/libc.a
0xd32f8150-0xd32f8535 0xf0a1a3b4-0xf0a1a3f4 Yes
./libdummy.a
So in GetGdbSharedLibraries.java, at line 62
if(lines!=null && lines.length>0)
lines[lines.length-1] = null; // remove
trailing "(gdb)" prompt
will remove "./libdummy.a" line.
How does it work on linux?
__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com