This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Compiling on AIX 5.3 with xlC


Am Donnerstag, 18. Oktober 2007 schrieb Joel Brobecker:
> > I claimed success too early. I am not able to attach to a process.
>
> That's strange. I don't have any problems:
>
>     (gdb) attach  700422
>     Attaching to program: /[...]/foo, process 700422
>     0xd0234e94 in nsleep () from /usr/lib/libc.a(shr.o)
>     (gdb) bt
>     #0  0xd0234e94 in nsleep () from /usr/lib/libc.a(shr.o)
>     #1  0xd026759c in nanosleep () from /usr/lib/libc.a(shr.o)
>     #2  0x100174d4 in system.os_primitives.timed_delay ()
>     #3  0x100211ac in ada.calendar.delays.timed_delay_nt ()
>     #4  0x100210d4 in ada.calendar.delays.delay_for ()
>     #5  0x1002d3ec in pck.wait_for_debugger () at pck.adb:11
>     #6  0x1002da58 in foo () at foo.adb:15
>
> Something must have happened during the build. Are you able to
> debug GDB?

I did not make my point clear. I am able to attach but I do not get any 
backtrace. Here is my log:

bartosch@duco:/fs/data/bartosch/work/12.1aktuell>gdb
GNU gdb 6.7
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "powerpc-ibm-aix5.3.0.0".
(gdb) attach 98248
Attaching to process 98248
0x00000000 in ?? ()
(gdb) where
#0  0x00000000 in ?? ()
(gdb) quit
The program is running.  Quit anyway (and detach it)? (y or n) y
Detaching from program: , process 98248
bartosch@duco:/fs/data/bartosch/work/12.1aktuell> 


How did you compile your GDB with xlc? Did you use the same 
settings --disable-sim?

Christoph


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]