RHEL 6.1 HOW TO REMOVE GDB WARNINGS???

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

RHEL 6.1 HOW TO REMOVE GDB WARNINGS???

spinlock
Hello there can someone help me with this warnings being displayed by GDB while debugging a program...these warnings almost fill the screen and is very hard to ignore while taking the important info from gdb debugging.. I am using RHEL 6.1 SANTIAGO

(gdb) br 7
Breakpoint 1 at 0x80483e2: file sizes.c, line 7.
(gdb) r
Starting program: /home/progs/sizes.o
warning: the debug information found in "/usr/lib/debug//lib/ld-2.12.so.debug" does not match "/lib/ld-linux.so.2" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug/lib/ld-2.12.so.debug" does not match "/lib/ld-linux.so.2" (CRC mismatch).

Missing separate debuginfo for /lib/ld-linux.so.2
Try: yum --disablerepo='*' --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/30/7b5a6c660c11f61a43d7ba8a1c5e9b05f8ce64.debug
warning: the debug information found in "/usr/lib/debug//lib/libc-2.12.so.debug" does not match "/lib/libc.so.6" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug/lib/libc-2.12.so.debug" does not match "/lib/libc.so.6" (CRC mismatch).

Missing separate debuginfo for /lib/libc.so.6
Try: yum --disablerepo='*' --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/c3/b065713186188ceda17339e87ed1fd23f9e5fb.debug
size of int = 4

Breakpoint 1, main () at sizes.c:7
7         printf("size of char = %u\n",sizeof(char));[/B][/CODE]



Currently these are the details of my LINUX DISTRO ..how do I get rid of this...please help


 gcc -v
Using built-in specs.
Target: i686-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla
--enable-bootstrap --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk
--disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
--enable-libgcj-multifile --enable-java-maintainer-mode
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib
--with-ppl --with-cloog --with-tune=generic --with-arch=i686
--build=i686-redhat-linux
Thread model: posix
gcc version 4.4.5 20110214 (Red Hat 4.4.5-6) (GCC)



[root@localhost progs]# gdb -v
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-48.el6)
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 "i686-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.

and the kernel version
[CODE][B]Linux localhost.localdomain 2.6.32-131.0.15.el6.i686 #1 SMP Tue May 10
15:42:28 EDT 2011 i686 i686 i386 GNU/Linux


thanks and regards