AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
Expand all | Collapse all

Run ddd or another debugger for aix 5.3 based executable file.

  • 1.  Run ddd or another debugger for aix 5.3 based executable file.

    Posted Thu February 12, 2009 03:54 AM

    Originally posted by: SystemAdmin


    Hi, folks.

    I have a problem to debug my program on aix 5.3.

    compiled with gcc 4.2.0
    (
    here is compile option when I install gcc:
    ./configure --with-as=/usr/bin/as --with-ld=/usr/bin/ld --enable-languages=c,c++,java --prefix=/opt/freeware --enable-threads --enable-version-specific-runtime-libs --host=powerpc-ibm-aix5.3.0.0 --target=powerpc-ibm-aix5.3.0.0 --build=powerpc-ibm-aix5.3.0.0 --disable-libjava-multilib
    )

    but, I've alway met the following error msgs. alway it.
    (
    GNU gdb 6.8
    Copyright (C) 2008 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.1.0.0"...
    Architecture of file not recognized.
    (gdb)
    )

    When I use a ddd, i met same an error.

    $> file my_program
    64-bit XCOFF executable or object module not stripped

    by googling, I can know there are another debugger developers are using.

    1) totalview(www.totalviewtech.com)
    but, I have to enable license to use it. ( In spite of they provide free trial product, there is no response related it to give me demo license key.)

    2) idebug (??)
    this is to debug java applications.

    3) what else???? I can do?


  • 2.  Re: Run ddd or another debugger for aix 5.3 based executable file.

    Posted Thu February 12, 2009 10:47 AM

    Originally posted by: SystemAdmin


    Did you try dbx?
    BTW idebug is not just for debugging Java programs.


  • 3.  Re: Run ddd or another debugger for aix 5.3 based executable file.

    Posted Wed May 06, 2009 05:25 AM

    Originally posted by: SystemAdmin


    I also get the Architecture not recognized message on AIX 5.3 after building with gcc 4.2.4 and debugging with gdb 6.8.

    If I attach gdb to a running program that is caught in an indefinite loop, gdb fails to grab control and both programs hang, ignoring ^C, so have to be killed explicitly.

    I have tried dbx and adb but because gcc uses a different name mangling algorithm to xlC, although a stack dump (*where 0 10*) is just about intelligible, I get screens full of warnings and internal error messages and it is virtually impossible to print the values of any variables or set any break points.

    Any ideas? At the moment I am reduced to inserting print statements in code that runs on half a dozen other platforms. Back to the early 1980s!