[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gdb bug on AIX 5.3 64bit
From: |
dot094 |
Subject: |
gdb bug on AIX 5.3 64bit |
Date: |
Thu, 8 Apr 2010 22:19:44 GMT |
Hi.
I have a problem in use gdb
*- env*
AIX 5.3 64bit
IBM XL C/C++ Enterprise Edition for AIX, V9.0.
gdb version 7.1
export OBJECT_MODE=64
export CC=xlc
export CFLAGS="-g -q64"
*- solved some problem*
1. compile...
"rs6000-core.c", line 114.10: 1506-007 (S) "struct core_dump" is
undefined.
"rs6000-core.c", line 127.10: 1506-007 (S) "struct vm_info" is undefined.
< my action > remove option at 'bfd/Makefile' file : remove that
'-DAIX_CORE' (2 count)
2. compile...
xlc -c -g -q64 -DDEFAULT_INLINE=PSIM_INLINE_LOCALS
-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN -DWITH_SMP=5
-DHAVE_TERMIO_STRUCTURE -DHAVE_TERMIO_CLINE -DHAVE_DEVZERO -I. -I.
-I./../../include -I../../bfd -I./../../bfd -I../../gdb -I./../../gdb
-I./../../gdb/config -I../../intl -DHAVE_COMMON_FPU -I../common
-I./../common debug.c
"words.h", line 81.9: 1506-166 (S) Definition of function natural64
requires parentheses.
"words.h", line 81.19: 1506-276 (S) Syntax error: possible missing '{'?
< my action > 'sim/ppc/words.h' file : remove '#ifdef __GNUC__' (line 65)
3. compile...
gdb compile error ....
< my action > 'gdb/features/feature_to_c.sh' file : modify 'split($0,
line, "\n");' ( line 43)
4. compile...
gdb link error ptrace , ptracex undefined.....
< my action > modify function : ptrace -> ptrace64 , ptracex -> ptrace64
(ptrace : aix-thread.c,inf-ptrace.c,rs6000-nat.c -- ptracex :
aix-thread.c)
5. excute...
excute gdb but trace infomation is nothing...
< my action > 'gdb/rs6000-nat.c' file : modify '__ld_info32' ->
'__ld_info64'(line 69)
*- last status*
command 'where' : trace infomation is no problem
command 'print' or 'info locals' : have a problem..
-> I debuged gdb program by dbx.
breakpoint in shared library (.so) function.
gdb program get another frame point ( current_frame is wrong frame
point...)
It is bug in gdb?
This sample is same locals info ( in_locals , temp ) at first and secend
breakpoint.
but first breakpoint have ( in_locals , temp ) , secend breakpoint have
( i_data , o_data )
- sample...
*(gdb01.cpp)*
40 bool gdb01::onInit( IRequest* request, IResponse* response )
41 {
42 int in_locals = 0;
43 char *temp = "444";
44 return true;
45 }
46
47 bool gdb01::perform( IRequest* request, IResponse* response )
48 {
49 gdb01Req* i_data = (gdb01Req*) request;
50 gdb01Res* o_data = (gdb01Res*) response;
*GDB*
_(gdb) b gdb01.cpp:42
_No source file named gdb01.cpp.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (gdb01.cpp:42) pending.
_(gdb) b gdb01.cpp:49_
No source file named gdb01.cpp.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 2 (gdb01.cpp:49) pending.
_(gdb) c
_Continuing.
Breakpoint 1, gdb01::onInit(nexcore::online::IRequest *,
nexcore::online::IResponse *) (
this=0x110103890, request=0x11000de90, response=0x11000e090) at
gdb01.cpp:42
42 gdb01.cpp:
in gdb01.cpp
Current language: auto
The current source language is "auto; currently c++".
_(gdb) info locals
_/in_locals = 150994944
temp = 0xfffffffffffcba0 <error reading variable>
/_(gdb) c
_Continuing.
Breakpoint 2, gdb01::perform(nexcore::online::IRequest *,
nexcore::online::IResponse *) (
this=0x90000001344d38c, request=0x110103b71,
response=0xfffffffffffc7b0) at gdb01.cpp:50
50 in gdb01.cpp
_(gdb) info locals_
/in_locals = 1
temp = 0x11000de90 <error reading variable>
/(gdb)
<mailto:address@hidden>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gdb bug on AIX 5.3 64bit,
dot094 <=