gdb on AIX with Xlc generated 64 bit executables

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ravit
    New Member
    • Sep 2007
    • 11

    gdb on AIX with Xlc generated 64 bit executables

    I have built my gdb-6.7.1 yesterday on my AIX 5.3 64 bit machine.

    my gcc is gcc3.3.2

    and tried debugging 64 bit executables generated by gcc, working fine. debugging session ends successfully.

    But I am facing a problem when it comes 64 bit executables generated by xlc compiler.

    The session ends like this:

    $>gdb
    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 "powerpc-ibm-aix5.3.0.0".
    (gdb) file a.out
    Reading symbols from /home/tools/ravit/a.out...done.
    (gdb) b main
    Breakpoint 1 at 0x5b4
    (gdb) r
    Starting program: /home/tools/ravit/a.out
    Warning:
    Cannot insert breakpoint 1.
    Error accessing memory address 0x5b4: I/O error.



    any body faced this problem ?
    What might be the solution for this?

    thanks for the replies if any.

    --
    Regards,
    Ravi.T
  • ravit
    New Member
    • Sep 2007
    • 11

    #2
    Any body is using gdb on AIX 5.3 64 bit executables?

    --
    Regards,
    Ravi.T

    Comment

    • ravit
      New Member
      • Sep 2007
      • 11

      #3
      Originally posted by ravit
      Any body is using gdb on AIX 5.3 64 bit executables?

      --
      Regards,
      Ravi.T
      Guys not body is using gdb on AIX for 64 bit executables?

      Comment

      • fisch371
        New Member
        • Jan 2008
        • 1

        #4
        I'd like to know how you have compile gdb?
        I'm still struggeling to get over the compile errors.
        Which pre-compile/settings flags have you used?

        Thanks in advance

        Comment

        • ravit
          New Member
          • Sep 2007
          • 11

          #5
          Originally posted by fisch371
          I'd like to know how you have compile gdb?
          I'm still struggeling to get over the compile errors.
          Which pre-compile/settings flags have you used?

          Thanks in advance
          Hi fisch,

          I have compiled it normally with
          CC=gcc
          CPP=cpp
          CXX=g++

          by the way, Are you using the gdb on AIX 5.3 for 64 executables generated by xlc??

          Or
          You wanted one for such ??

          I have been trying to get gdb working for my 64 bit executables generated by Xlc , but no success hopes yet.
          If you have any ideas , hope we share.

          --
          Regards,
          Ravi.Thati

          Comment

          Working...