11-08-2008
Need some help in debugging the C-Progam.
Hi i want to debug the C program with GDB debugger. I want to debug the program by line by line. I want to debug program like as we debug the program in Turbo-C using the F8. Can any one help me?
I know i have to use single stepping. But i don't know how to use it. Any help can be appreciated..
Thanks in Adv.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
If we want to debug a shell script, then set -vx has to be included in the begining of the script. Just i want to know what purpose -vx is used.
Thanks in advace
Sarwan (2 Replies)
Discussion started by: sarwan
2 Replies
2. Solaris
OS : SOLARIS 10
debug tool :$gdb -v
GNU gdb 6.6
compiler : $gcc -v
gcc version 2.95.3 20010315 (release)
When i tried to debug my application i got the following error.
$gdb Pal
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
This GDB was... (2 Replies)
Discussion started by: satish@123
2 Replies
3. Solaris
when I tried to debug my application i got the following.
gdb -v
GNU gdb 6.6
file is in C and Xmotiff Languages
(gdb) attach 25499
Attaching to process 25499
Retry #1:
Retry #2:
Retry #3:
Retry #4:
0xfea40b68 in ?? ()
(gdb) where
#0 0xfea40b68 in ?? () (0 Replies)
Discussion started by: satish@123
0 Replies
4. Shell Programming and Scripting
is there any way you can add a breakpoint in a script so you can stop on it?
i have used -xv in my shebang but the script just runs and i want it to stop at a specific point in the script.
appreciate any help. (1 Reply)
Discussion started by: npatwardhan
1 Replies
5. Shell Programming and Scripting
hi all, would you please help me correcting and debugging this script: fx-permiss.sh which accepts a list of users as argument resiting those files permissions:
say our directory structure:
/home/erzal/file
/home/erzal/dire
/home/erzal/share
/home/erzal/share/file
/home/erzal/share/dire
1-... (1 Reply)
Discussion started by: erzal
1 Replies
6. Homework & Coursework Questions
School:Syrian Virtual University - Bachelor in Information Technology - Tutor: A.Issa - course: S10-iti320
hi all, would you please help me correcting and debugging this script: fx-permiss.sh which accepts a list of users as argument resiting those files permissions:
say our directory... (0 Replies)
Discussion started by: erzal
0 Replies
7. UNIX for Dummies Questions & Answers
hey,
can any one please tell me how can i debug blcr??
actually i have checkpointd a client using blcr and i want to check out what actually happens when we checkpoint any program. so i want to see what happen when we type
$cr_checkpoint pid
i mean i want to debug when i enter this... (0 Replies)
Discussion started by: pratibha
0 Replies
8. Programming
hey
i have a problem with a switch case in program and the debugger is messy has hell ( we use normal VI and gdb in our schoool to make it more diffiacult)
any way i have a problom where for some unknown reason the debugger just skips a switch statment as if it wasent even there
the rest... (2 Replies)
Discussion started by: gotenxds
2 Replies
9. Shell Programming and Scripting
So here I have a simple function that I wish to debug. However, I am unable to debug the desired function even with set -o functrace enabled. Before resorting to asking this question, I had managed to find a possible solution that did not produce the desired results, which is located here.
How... (5 Replies)
Discussion started by: BrandonD
5 Replies
10. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
I am VERY much a neophyte with shell scripting. I am working on the following,
1. The problem statement, all variables and given/known data:
"Create a script sends an... (7 Replies)
Discussion started by: doghouse308
7 Replies
LEARN ABOUT DEBIAN
yasm_dbgfmts
YASM_DBGFMTS(7) Yasm Supported Debug Formats YASM_DBGFMTS(7)
NAME
yasm_dbgfmts - Yasm Supported Debugging Formats
SYNOPSIS
yasm -g dbgfmt ...
DESCRIPTION
The standard Yasm distribution includes a number of modules for different debugging formats. The debugging information is embedded into the
object file. Use of a non-"null" debug format also causes Yasm to output all symbols to the object file (including local symbols).
The debug format is selected on the yasm(1) command line by use of the -g dbgfmt command line option.
CV8
The CV8 debug format is used by Microsoft Visual Studio 2005 (version 8.0) and is completely undocumented, although it bears strong
similarities to earlier CodeView formats. Yasm's support for the CV8 debug format is currently limited to generating assembly-level line
number information (to allow some level of source-level debugging). The CV8 debug information is stored in the .debug$S and .debug$T
sections of the Win64 object file.
DWARF2
The DWARF 2 debug format is a complex, well-documented standard for debugging information. It was created to overcome shortcomings in
STABS, allowing for much more detailed and compact descriptions of data structures, data variable movement, and complex language structures
such as in C++. The debugging information is stored in sections (just like normal program sections) in the object file. Yasm supports full
pass-through of DWARF2 debugging information (e.g. from a C++ compiler), and can also generate assembly-level line number information.
NULL
The "null" debug format is a placeholder; it adds no debugging information to the output file.
STABS
The STABS debug format is a poorly documented, semi-standard format for debugging information in COFF and ELF object files. The debugging
information is stored as part of the object file's symbol table and thus is limited in complexity and scope. Despite this, STABS is a
common debugging format on older Unix and compatible systems, as well as DJGPP.
SEE ALSO
yasm(1), yasm_objfmts(7)
AUTHOR
Peter Johnson <peter@tortall.net>
Author.
COPYRIGHT
Copyright (C) 2006 Peter Johnson
Yasm October 2006 YASM_DBGFMTS(7)