gdb 7.2 installation error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bettadpur
    New Member
    • Jul 2007
    • 2

    gdb 7.2 installation error

    Hi All,

    I am trying to install gdb 7.2 on redhat5. it was successfull.. But if you run from the command prompt as gdb any object file(test) I am getting the following error..

    GNU gdb (GDB) 7.2
    Copyright (C) 2010 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 "x86_64-unknown-linux-gnu".
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/>...
    Reading symbols from /usr/bin/test...I'm sorry, Dave, I can't do that. Symbol format `elf64-x86-64' unknown.

    Please observe the last line statement (i.e Reading symbols from /usr/bin/test...I'm sorry, Dave, I can't do that. Symbol format `elf64-x86-64' unknown), because of this I could not able to debug any programs..

    Thanks in advance
  • ashitpro
    Recognized Expert Contributor
    • Aug 2007
    • 542

    #2
    See the line:
    "This GDB was configured as "x86_64-unknown-linux-gnu"."
    GDB is not able to figure out your platform.

    Either, you have downloaded it from non-native repository or while building gdb you have specified wrong platform.

    I would rather suggest to use "yum install gdb" command to install the gdb.

    Comment

    • bettadpur
      New Member
      • Jul 2007
      • 2

      #3
      Hi,

      Thanks for your reply..

      Let me explain my problem briefly.. Currently I am installing gdb 7.2 version and using yum install is not possible for me to install we are using some different technique to install packages..

      I downloaded from following URL
      ftp://ftp.gnu.org/pub/gnu/gdb/
      and wrong platform is not a major issue, it seems because i have checked 6.6 there also i am getting same kind of message "unknown-linux-gnu" but it is working fine without getting this Error

      "I'm sorry, Dave, I can't do that. Symbol format `elf64-x86-64' unknown."

      I think some where we need to set the path properly...
      Please let me know if you have any idea...

      Thanks

      Comment

      Working...