Programming :: GDB Error - Missing Separate Debug Info

Jul 9, 2010

OpenSuse 11.2 (64 bit)
GDB 6.8.91.20090930-2.4

I ran GDB on a program and am receiving following errors,
Code:
anisha@linux-uitj:~/junk> g++ -g jk.cpp
anisha@linux-uitj:~/junk> gdb a.out
GNU gdb (GDB) SUSE (6.8.91.20090930-2.4)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later [URL]
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-suse-linux".
For bug reporting instructions, please see: [URL] ...
Reading symbols from /home/anisha/junk/a.out...done.
(gdb) b readline
Breakpoint 1 at 0x400b90: file jk.cpp, line 19.
(gdb) r
Starting program: /home/anisha/junk/a.out
Missing separate debuginfo for /lib64/ld-linux-x86-64.so.2
Try: zypper install -C "debuginfo(build-id)=591af1afa33f255704fb6a60859b93d00e205302"
Missing separate debuginfo for /usr/lib64/libstdc++.so.6
Try: zypper install -C "debuginfo(build-id)=62220ad5c8941afb5d332c0c47d32f8beec8ac50"
Missing separate debuginfo for /lib64/libm.so.6
Try: zypper install -C "debuginfo(build-id)=57fc1891d8d9f419fb8c7fc06a8285563b53a47e"
Missing separate debuginfo for /lib64/libgcc_s.so.1
Try: zypper install -C "debuginfo(build-id)=0206e11fa8ca0db0633073adcbf1349a7871e1dc"
Missing separate debuginfo for /lib64/libc.so.6
Try: zypper install -C "debuginfo(build-id)=c5a3dfd66bf61fcdec9bc22153b2fbd0d6697960"
can't open input file (null)
Program exited with code 01.
(gdb)

View 1 Replies


ADVERTISEMENT

OpenSUSE :: 11.3 (64bit) GDB Not Working - Missing Separate Debug Info

Oct 11, 2010

I am a hobbyist interested in development and have recently decided to migrate from Windows to Linux and after trying out a number of distributions decided to use openSUSE. After getting somewhat more comfortable with Linux and openSUSE I decided to try and get comfortable with development on this platform.

And hence my problem: After compiling the simplest of programs (hello world) and trying to step through it with gdb I get this output:
Missing separate debuginfo for /lib64/ld-linux-x86-64.so.2
Try: zypper install -C "debuginfo(buildid)=2b25d8329d1aa713a2cc61b5cb701f6f89c78022"
Missing separate debuginfo for /lib64/libc.so.6
Try: zypper install -C "debuginfo(buildid)=9b674b2caef1982db55e436bca814060e1705b7f"

As soon as I type the command start in gdb. Naturally I tried the recommended zypper downloads to no avail. Furthermore I sought out the glibc debuginfo in the software manager and found nothing which I have not already installed.

On my system are:-devel-32bit
glibc
glibc-32bit
glibc-devel
glibc
glibc-info
glibc-locale
glibc-locale-32bit
glibc-profile
glibc-profile-32bit
gdb
gdbm
gdbm-32bit

All of these are the latest version from the standard 11.3 repositories. I believe these are all the requirements I should need to not have gdb give me errors but sadly that is not the case. Lastly I am running on a 64bit version of openSUSE 11.3.

View 4 Replies View Related

Programming :: GDB - Core Dump Analysis And Debug Info?

Oct 21, 2010

I am developing an application whose executable is generated inside a certain folder hierarchy (say: /DevPath/MyProject/bin). My source code is located in a different branch of this hierarchy (say: /DevPath/MyProject/src). When my app crashes, its core files are stored in /DevPath/MyProject. I'm developing the app on a pc, but running it on a separate platform in which i can only execute it. Folder hierarchy is the same as above on both computers. Usually, when a new executable version is ready, we update both the executable and the source code on the target platform, transferring all the new /DevPath/MyProject folder on it. But sometimes it can really be a bother, so we update only the executable.

1)In the case we only update the executable, keeping an old source code version, and the app generates a core file, can i trust the backtrace produced by gdb in this case? I.e., does gdb need the latest source code files or it just needs the debugging information?

2) (More radical question ) Do i really need to keep the source code on the target platform for core dump analysis or i just need the executable?

View 1 Replies View Related

Ubuntu :: Can't Install Update-info-dir File Is Missing From /var/lib/dpkg/info/?

Aug 6, 2010

so i cannot install anything because update-info-dir file is missing from /var/lib/dpkg/info/ .. I've searched for the last day and a half for a way to fix this, but nothing. can't even update dpkg because of this. so how do I bypass or fix this so I can install stuff (this is a fresh install of ubuntu 10.04 lts Lucid Lynx).

View 9 Replies View Related

Ubuntu :: Installing Emacs 23.1 - Error "makeinfo Is Missing - Cannot Build Manuals Make: *** [info] Error 1 **** Installation Failed"

Feb 6, 2010

I've been trying to install the latest version of Emacs from source but I'm running into a trouble. The commands "./configure" and "make" work just fine. However, when I run "sudo checkinstall" I get a message saying that makeinfo is missing:

Code: makeinfo is missing - cannot build manuals make: *** [info] Error 1 **** Installation failed. Aborting package creation. Cleaning up...OK Bye. What is Error 1

View 4 Replies View Related

OpenSUSE :: GDB Breakpoint Fails - Debug Info For Libc Not Available

Aug 4, 2010

When I debug a program with GDB and hit a break point I get:

Missing separate debuginfo for /lib64/ld-linux-x86-64.so.2
Try: zypper install -C "debuginfo(build-id)=2b25d8329d1aa713a2cc61b5cb701f6f89c78022"
Missing separate debuginfo for /lib64/libm.so.6
Try: zypper install -C "debuginfo(build-id)=f05646449077dfbf15d5f78251a3b25e0f955dd9"
Missing separate debuginfo for /lib64/libc.so.6
Try: zypper install -C "debuginfo(build-id)=9b674b2caef1982db55e436bca814060e1705b7f"

When I install the suggested packages the debuginfo does not match the object files. I get:

warning: the debug information found in "/usr/lib/debug//lib64/libc-2.11.2.so.debug" does not match "/lib64/libc.so.6" (CRC mismatch).
warning: the debug information found in "/usr/lib/debug/lib64/libc-2.11.2.so.debug" does not match "/lib64/libc.so.6" (CRC mismatch).
Missing separate debuginfo for /lib64/libc.so.6
Try: zypper install -C "debuginfo(build-id)=9b674b2caef1982db55e436bca814060e1705b7f"

The last package is not found. Is this missing from the repositories?

View 4 Replies View Related

Ubuntu Installation :: Info Error "error Processing Install-info (--configure)" During Update

Apr 8, 2010

I'm using ubuntu 10.04 beta 1. when I try to update & upgrade I get the following error:

Code:
Setting up install-info (4.13a.dfsg.1-5ubuntu1) .../etc/environment: line 4: LC-ALL=en_US.UTF-8: command not found dpkg: error processing install-info (--configure): subprocess installed post-installation script returned error exit status 127 Errors were encountered while processing: install-info

View 4 Replies View Related

Programming :: Cannot Debug With The Gdb

Apr 21, 2009

downloaded a project from the Internet and tried to debug it, but run into a problem. i managed to copy the part where it build the executable I need. The problem is that I cannot use gdb with this executable for some reason. However, running the it without gdb seems to work ok. Below is what it shows when compiling and link.

Compile:

Code:

gcc -g -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION=""
-DPACKAGE_STRING="" -DPACKAGE_BUGREPORT="" -DPACKAGE="sphinx3"
-DVERSION="0.7" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1

[code]....

View 9 Replies View Related

Programming :: Debug C Cgi Script ?

Mar 3, 2011

I have a html page that calls a c cgi script on my local server; how can i view the html page and debug the script at the same time? if i would give some input in a form on the html page then i want to debug the script with the entered data. my gues was with w3m and gdb but i don't know how its done...

View 9 Replies View Related

Programming :: How To Debug Macros Under Gdb

Jun 14, 2010

It seems GDB can not expand or show the macro expansion or its definition under the GDB debug to while debugging the program. how to debug macros under GDB?

Sample Code:

#include <stdio.h>
#include "sample.h"
#define M 42
#define ADD(x) (M + x)

[code]....

View 7 Replies View Related

Programming :: Want To Debug Kernel.bin

Jan 31, 2010

I want debug kernel.bin
this file is boot in floppy

View 1 Replies View Related

Programming :: How To Debug Deployed Software

Nov 15, 2010

I have developed an application written in C, Linux well tested and stripped off all the symbols for final deployment. When I'm testing the stripped off version of the application in the field. Here the application has got crashed. Now how to debug the application.

View 6 Replies View Related

Programming :: Debug In Eclipse As Root?

Jun 16, 2010

debug my code as root in eclipse without starting the eclipse as root? I searched on the net, and seems like it is not possible.

View 4 Replies View Related

Programming :: Debug Library Source In GDB/DDD?

Aug 25, 2009

is there a way to debug my library files from DDD? Basically a way to pass the paths to DDD so I can view the source etc. I'm having a segmentation nightmare, which only crops up about every 10 or so starts, I know it's in one file in a library. I could move the source file into my general code to debug, but am sure there's a way in DDD.

View 1 Replies View Related

Programming :: Debug The Dsdv.cc File Of Ns-2?

Jun 26, 2011

I am trying to debug the dsdv.cc file of ns-2. I have attached the screenshots of the results.I added ns-2.34 as project in eclipse then opened dsdv.cc file. given a ".TCL" file as argument it runs ok. as in screenshot-1 but when i want to debug it gives the error "No Source Available for main at 0x83b269f" shown in screenshot-2.

View 1 Replies View Related

Programming :: How To Debug Large Project Using 'GDB'

Jun 21, 2010

I'm using ubuntu 9.04;I want to debug my project that comprises mutiple files.When I cd to the project folder and run the command "gdb rawusb_test",Once I tried the flag -g and changed the line "$(CC) -o $(PROG) $(OBJS) $(LIBS)" to "$(CC) -g -o $(PROG) $(OBJS) $(LIBS)", it didn't work!I want to trace the program "rawusb_test" line by line and see the parameters' values!Could you help me how I should debug this project or how the Makefile should be changed?

View 8 Replies View Related

Programming :: Debug Big C Language Project With GDB?

Nov 11, 2009

Now I have a project which include three directories /bin, /inc and /src. All of header files (*.h) are included in /inc and all of source(*.c) files are stored in /src, i.e. a.c, b.c, c.c..., the final generated executable file will locate in /bin. after compling with makefile, all of obj files will be generated in /src/obj like a.o, b.o, c.o, d....! Moreover an final.exe executable file will be generated in the /bin directory. Now if I want to debug it with GDB, how can I do it?

View 1 Replies View Related

Programming :: How To Debug Shell Scripts

Apr 26, 2010

I want to know how can I debug shell scripts.Many a times I found while installing a software or a package some where some link to some file or dependency is broken.Some one suggested me use of -vx in the beginning I want to know what are the other methods to debug shell scripts.

View 1 Replies View Related

Programming :: Debug The NTLM LWP Module ?

Nov 11, 2010

I'm trying to debug the NTLM LWP module.

I added use LWP:ebug qw(+); to the top of my script, but I can't see any change.

I'm on Windows if that makes a difference (installed activeperl).

I know there are probably a million reasons why something perl won't work, but can anyone help me get debug logging showing up?

View 1 Replies View Related

Ubuntu :: Upgrade To Ubuntu 11.04 And Now /sys/kernel/debug/vgaswitcheroo Missing

Apr 25, 2011

I set modest to 1 and NVIDIA driver not installed.

What is the problem?

Code:

View 2 Replies View Related

Ubuntu :: 10.04 / Vista Dual Boot - Missing Or Corrupt Info On Restart

Jun 19, 2010

This morning I attempted to 'clean' up some old files/programs from my dual mounted (Vista/10.04) laptop. All seemed ok until I tried to run Vista and I got the following:
/windows/system32/winload.exe
status Oxc000000F
missing or corrupt

I then tried to reboot into Ubuntu but it keeps trying to load windows. It looks like I have somehow lost my grub, so now I have lost Ubuntu and Vista. I tried my Vista Start Up disk and at the command prompt I entered:
Bootrec.ext /fixboot
Bootrec.exe /fixmbr
on restart it went back to the 'missing or corrupt' information. Is there some way I get get back to normal?

View 4 Replies View Related

Debian Programming :: How To Debug A Gfortran Program

Oct 8, 2014

I have Windows 7==>Oracle VB==>Ubuntu==>Gfortran. How do I debug fortran programs? I would like to have a step by step debugging.

View 1 Replies View Related

Programming :: Autoconf And Automake - Debug And Release ?

May 6, 2010

After doing make I have the following questions? How can I see that the build is with debug information? What shall I do to build the release version? Can I have the release version in one directory and the debug version in another? I mean, when I change from debug to release, make will not overwrite the debug version.

View 7 Replies View Related

Programming :: Debug App Built By Libtool Using Eclipse?

Oct 17, 2010

I am trying to debug a src code that I download from the Internet.It is built with libtool. I am able to debug it with gdb, but i cannot debug it with eclipse.

View 3 Replies View Related

Programming :: Debug Remotely A Java Program With Ddd?

Jun 4, 2011

Is it possible to debug remotely a java program with ddd (data display debugger)?

View 2 Replies View Related

Programming :: Can't Debug Libc After Intall Libc6-dbg

Jul 25, 2011

1 system info:

root@yes-desktop:/usr/src/eglibc-2.11.1/malloc# uname -a
Linux yes-desktop 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010 i686 GNU/Linux
2 gcc version
root@yes-desktop:/usr/src/eglibc-2.11.1/malloc# gcc -v
Using built-in specs.

[code]....

1 why cann't i debug the test? because i can't step into the "operator new" function.

View 2 Replies View Related

Programming :: Tell Makefile Not To Compile Debug Code?

Mar 4, 2010

I've been trying to work out a way to stop chunks of code being compiled using a variable in my makefile but can't work it out. What I mean is for example in my code I might have.

/****output comms portdata********/
printf("
debug comms port %d",ReadPort("ttys1);

I only wish this code to be compiled when I'm debugging. What I've tried is using #ifdef with

#ifdef COMM_PORT_DEBUG
printf("
debug comms port %d",ReadPort("ttys1);
#endif

Then in my make file I set COMM_PORT_DEBUG to 1 so

DEBUG_DEFS = COMM_PORT_DEBUG=1

I then thought I could put it into my in my link line

all: $(CC) $(CPFLAGS) $(DEBUG_DEFS) $(INC_PATHS) $(SOURCE) -o $(PROGRAM) $(LIB_DIRS) $(GAME_LIBS)

but this gives a

gcc: COMM_PORT_DEBUG=1: No such file or directory

is there a way to do this sort of thing? Or am I barking up the wrong tree?

View 1 Replies View Related

Programming :: Using Switches - Allow Program To Run In Debug Mode

Nov 23, 2010

I want to allow my program to be able to run in DEBUG mode. i.e., I want to be able to run ./program, and I want to be able to run ./program -v to show all the debug output. How do I go about setting up something like that?

View 3 Replies View Related

OpenSUSE :: Can't Debug Firefox Because Of Error?

May 12, 2010

in terminal i typed firefox -g -d gdbthen typed backtracethen i got lots of these different errors:

Missing separate debuginfo for /usr/lib/libelf.so.1
Try: zypper install -C
"debuginfo(build-id)=d813b7afac2270c3ac525dd07566d693f7f558ee"

[code]....

View 4 Replies View Related

Ubuntu :: How To Debug Random Error

Jan 17, 2010

So my machine crashed and as far as I can tell it wasn't associated with any particular program. Is there some log I can investigate to see if I can determine what caused the crash?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved