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


ADVERTISEMENT

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

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

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

Programming :: Attach Source Code To A Remote Debug?

May 25, 2011

running a java application in a remote site,and I would like to debug the application. I'm using jdb, and, due to network architecture, I can only use jdb do debug in text-mode. To debug in text-mode I use the command: jdb -attach remotesite: port. At this point this is ok. Now I would like to attach the source code to the jdb. I tried the command

jdb -attach remotesite: port ~/src/org/path/file.java

to attach the source code to the remote debug to. But it doesn't work. In jdb, I try the command use ~/src/org/path/file.java but it doesn't work either. How can I attach the source code to the remote debug?

View 1 Replies View Related

Programming :: Extract Dwarf Information Debug A Section?

May 10, 2011

I would like to extract debug information but I have some problems. For example, I have a executable a.out...

Quote:

nm -f sysv a.out | grep ".global_var" >vars.txt

With this command I extract all my variables. All of them are in .global_var section, and it give me follow information:

Quote:

CAN_station_n |08073258| D | OBJECT|00000001| |.global_var
CONTROLend |080732a7| D | OBJECT|00000001| |.global_var

[code]....

Well, I have only address of my vars, but I would like to know type var or struct of the variables. With dwarf dump I have all of information, but it is a mess...

Quote:

<1><117bc>: Abbrev Number: 32 (DW_TAG_variable)
<117bd> DW_AT_name : (indirect string, offset: 0x153d): draw_limits
<117c1> DW_AT_decl_file : 128
<117c2> DW_AT_decl_line : 207

[code]...

Is there any parser or way to put in order this information?? create a file with the follow information:

name of var - address - type - size - struct or not

View 5 Replies View Related

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 View Related

Programming :: Got "Build Failed" When Making Debug With Mono Developer?

Feb 23, 2010

I've installed mono developer, but when I want to make debug I got this message : Build failed. ApplicationName='/usr/bin/gmcs', CommandLine='"@/tmp/tmp17a7a5e2.tmp"', CurrentDirectory= ...

View 1 Replies View Related

Ubuntu :: Debug 10.04 UEC Node?

Jun 3, 2010

I installed a Node UEC from 10.04 which does not boot(stops at loading apache) and the logs are empty.

View 1 Replies View Related

Fedora Networking :: How To Debug A Network

Aug 27, 2009

I built my wife a new computer about a month ago, from a barebones kit. It seems to be working fine, except that it will not connect to a known-good internet connection. I can put the cable that is connected to her ethernet port on my computer (also built from a barebones kit) and my computer connects automatically. The network is a cable modem followed by a six port router. Two of the ports, plus the one my wife's computer is on, are in use, but all have been checked, and all work.I thought there might be a hardware problem with the onboard etherneet port that is part of the motherboard, but adding a separate ethernet NIC card did not help; it simply gave me another port that would not connect. I have since removed the second ethernet port.

I am using the default Fedora 10 installation from a DVD I got a few months ago with a magazine. It is exactly the same installation I put on my computer, which works fine. I also put Fedora 10, since upgraded to 11, on the machine in the basement, which also connected okay. The GUI used is Gnome.So the question is, how do I go about debugging what might be wrong? Once I find what's wrong, I will almost certainly need help fixing it, but that is for later.

View 14 Replies View Related

Fedora :: Debug - Kernel-uname ?

Aug 29, 2009

I got this message after a update some weeks ago and am now on a permissive opening.

Fedora 11

gnome 2.26.3

View 3 Replies View Related

Fedora Security :: How To Debug 'ssh W/o Password'

Jan 22, 2011

I tried the following instructions to set up "ssh without passwords". But this didn't work.Could someone please tell how to debug this.

View 11 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