Problem with gdb/mi under hp-ux 11.11, aix 5.2, gdb 6.7.1

Thomas Mittelstaedt T.Mittelstaedt@cadenas.de
Wed Nov 28 15:31:00 GMT 2007


Hallo,

Some more investigation shows that the forked gdb runs at about 90+ % 
CPU and the truss
output shows that floating point exceptions occur.

sigvec(SIGFPE, 0x7b042560, 
0x7b042570)                                         = 0
  Received signal 8, SIGFPE, in user mode, [caught], partial siginfo
    Siginfo: si_code: I_EXCEP, faulting address: 0xc015fd6b, si_errno: 0
    PC: 0xc015fd6b, instruction: 0x27c11200
sigvec(SIGFPE, 0x7b042560, 
0x7b042570)                                         = 0
  Received signal 8, SIGFPE, in user mode, [caught], partial siginfo
    Siginfo: si_code: I_EXCEP, faulting address: 0xc015fd6b, si_errno: 0
    PC: 0xc015fd6b, instruction: 0x27c11200
sigvec(SIGFPE, 0x7b042560, 
0x7b042570)                                         = 0
  Received signal 8, SIGFPE, in user mode, [caught], partial siginfo
    Siginfo: si_code: I_EXCEP, faulting address: 0xc015fd6b, si_errno: 0
    PC: 0xc015fd6b, instruction: 0x27c11200


Thomas Mittelstaedt schrieb:
> Hallo,
>
> I am trying to get ccdebug <http://ccdebug.sourceforge.net/>, a Qt-based 
> gdb frontend to work on hp-ux. It works without problems on linux. On 
> hp-ux, though, and also on aix,
> I am having trouble when I hit the key to show the register values. The 
> funny thing is, sometimes it works, but mostly it does not, i.e. there is no
> response from the forked gdb, because otherwise I would see it in the log.
> The following command is sent to gdb, but no response arrives.
>
> Sent: -data-list-register-values x 
>
> What can this be and how can I test this?
>
> Also, when I try to debug ccdebug with gdb directly, I get a ttrace: 
> Protocol error.
> Attaching to the running process also does not work.
>
> tmstaedt@buildhp3$ gdb ../ccdebug
> GNU gdb 6.7.1
> 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 "hppa2.0w-hp-hpux11.11"...
> (gdb) r
> Starting program: 
> /localbuild/source/V9_UNICODE_RESTRUCTURE/3rdparty/ccdebug/ccdebug
> warning: The shared libraries were not privately mapped; setting a
> breakpoint in a shared library will not work until you rerun the program.
>
> [New process 3561, lwp 1296829]
> Using /opt/gcc-4.1/32/bin/gdb
> Detaching after fork from child process 3567.
> [Switching to process 3561, lwp 1296829]
> 0x7affe5d4 in _fork_sys () from /usr/lib/libc.2
> ttrace: Protocol error.
>
>
>
> gcc -v
> Reading specs from 
> /opt/gcc/gcc-4.1/32/lib/gcc/hppa2.0w-hp-hpux11.11/4.1.1/specs
> Target: hppa2.0w-hp-hpux11.11
> Configured with: ../gcc-4.1.1/configure --prefix=/opt/gcc-4.1-32 
> --enable-version-specific-runtime-libs --enable-static --enable-shared 
> --with-gnu-as --with-as=/opt/gcc-4.1-32/bin/as --enable-threads=posix 
> --disable-nls --enable-languages=c,c++
> Thread model: posix
> gcc version 4.1.1
>
>
> Thanks in advance for help,
> thomas
>
>   



More information about the Gdb mailing list