08-21-2002
Following source files with gdb/xxgdb
Hello folks,
I haven't used C and the debuggers in a long time, and I'm currently in a project where I need to do some debugging. I have an application written in C and some .a libs which have functions called by the program. I need to be able to follow each function which is called no matter which file it is in. For example, when I start the main program and have its source file in my xxgdb window, when I get to a function call which is in some other file or even the library, I want either the particular source file the function is in to appear in the source window so I can follow it, or I can manually open the relevant source file myself, as long as the debugger can follow it.
How can I do this, if possible? I am going to compile all the C files with gcc -g, including the files used to make the .a libs with ar. I'd appreciate some prompt assistance here. Thanks.
Salman
10 More Discussions You Might Find Interesting
1. Programming
Hi I have a program, say file1.c which included file1.h, the header file which had lots of #define macros and structure definitions used by file1.c
I have decided to split the source code into 3 separate files (for logical reasons)
file1.c
file2.c
file3.c
Each of these have a... (6 Replies)
Discussion started by: the_learner
6 Replies
2. UNIX for Dummies Questions & Answers
Hi everyone,
Is there an efficient way to source all of the files contained in a directory? Theoretically I could create a FOR loop and successively source each file, but I just wanted to check if there was a cleaner method.
Thanks!
Mike (3 Replies)
Discussion started by: msb65
3 Replies
3. UNIX for Dummies Questions & Answers
I have open suse kernel kernel 3.1.0-1.2-desktop on which I used kernel source 3.1.10-1.2 downloaded from kernel.org and so I guess I am facing issues while loading kernel modules.
I went to site
kernel-source-3.1.0-1.2.1.noarch.rpm openSUSE 12.1 Free Download
where it shows 2 rpm files... (0 Replies)
Discussion started by: rupeshkp728
0 Replies
4. Shell Programming and Scripting
Hi,
I am new to shell scripting.Please help me on this.I am using solaris 10 OS and shell i am using is
# echo $0
-sh
My requirement is i have source file say makefile.I need to extract files with extensions (.c |.cxx |.h |.hxx |.sc) from the makefile.after doing so i need to check whether... (13 Replies)
Discussion started by: muraliinfy04
13 Replies
5. Shell Programming and Scripting
Hello,
I have two source files:
sourcefile1.dat:
12345 xxx yyy zzz
23456 qqq ttt rrr
34567 ppp jjj ggg
45678 fff ddd sss
56789 nnn mmm ccc
sourcefile2.dat:
12345.gif
34567.gif
I want to obtain a simple awk one linger to obtain the following:
xxx yyy zzz 12345.gif
qqq ttt rrr... (15 Replies)
Discussion started by: palex
15 Replies
6. UNIX for Dummies Questions & Answers
- Concatenate files and delete source files. Also have to add a comment.
- I need to concatenate 3 files which have the same characters in the beginning and have to remove those files and add a comment and the end.
Example:
cat REJ_FILE_ABC.txt REJ_FILE_XYZ.txt REJ_FILE_PQR.txt >... (0 Replies)
Discussion started by: eskay
0 Replies
7. Shell Programming and Scripting
I have connected to the source server by ftp command. when I tried to delete the file I am getting the permission error.
delete file1.txt
450 No permission to delete /today1/file1.txt
the files have below permission
150 File status okay; about to open data connection.
drwx------ 0 ... (3 Replies)
Discussion started by: ramkumar15
3 Replies
8. Shell Programming and Scripting
hi All, Any one answer my requirement.
I have source location
src_dir="/home/oracle/arun/IRMS-CM"
My Target location
dest_dir="/home/oracle/arun/LiveLink/IRMS-CM/$dc/$pc/$ct"
my source text files check with below example.text file content
$fn "\t" $dc "\t" $pc "\t" ... (3 Replies)
Discussion started by: sravanreddy
3 Replies
9. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
Create a makefile for a set of source files. Several sources files are given but we are not allowed to modify them. The goal is to create a makefile such that if a change is made to any of the source code files, the project can be... (5 Replies)
Discussion started by: pintu1228
5 Replies
10. Shell Programming and Scripting
Im repeating same command to get count, filename from 4 different files, writing to one same file.
awk 'END{print NR"|"FILENAME}' file.txt >> temp.txt;
awk 'END{print NR"|"FILENAME}' asdf.txt >> temp.txt;
awk 'END{print NR"|"FILENAME}' lkjh.txt >> temp.txt;
awk 'END{print NR"|"FILENAME}'... (12 Replies)
Discussion started by: JSKOBS
12 Replies
LEARN ABOUT DEBIAN
kadu-config
KADU(1) General Commands Manual KADU(1)
NAME
kadu-config - script to get information about the installed version of kadu
SYNOPSIS
kadu-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--libs] [--cflags] [--data-dir] [--modules-dir] [--qt-moc-dir]
DESCRIPTION
kadu-config is a tool for retrieving the library/include paths kadu was compiled with. Useful for folks compiling their own Kadu modules
outside the main source tree.
kadu-config is based on xmms-config from the XMMS package.
OPTIONS
kadu-config accepts the following options:
--prefix[=DIR]
If specified, use DIR instead of the installation prefix that kadu was built with when computing the output for the --cflags and
--libs options. This option is also used for the exec prefix if --exec-prefix was not specified. This option must be specified
before any --libs or --cflags options.
--exec-prefix[=DIR]
If specified, use DIR instead of the installation exec prefix that kadu was built with when computing the output for the --cflags
and --libs options. This option must be specified before any --libs or --cflags options.
--version
Print the currently installed version of kadu on the standard output.
--libs Print the linker flags that are necessary to link kadu to a program.
--cflags
Print the compiler flags that are necessary to compile a program that uses kadu.
--data-dir
Print the directory that the kadu's icons, emoticons and sounds themes are installed in.
--modules-dir
Print the directory that the kadu's modules keep their description and data files.
--qt-moc-dir
Print the directory that the Qt's moc compiler is installed in.
AUTHOR
kadu was written by Kadu Team (see /usr/share/kadu/doc/AUTHORS file for details).
Copyright (C) 2007, 2008 Patryk Cisek <patryk@debian.org>
This manual page was written by Patryk Cisek <patryk@debian.org> for the Debian project, based heavily on the xmms-config manual by
Christopher Martin <chrsmrtn@debian.org> and may be used by others. This manual may be distributed under the terms of GPL license version
2, or (at your opinion) any later version. On Debian GNU/Linux system, the complete text of the GNU General Public License can be found in
`/usr/share/common-licenses/GPL'. If you're not using Debian, you may also find full text of the license at http://www.gnu.org/licenses/.
KADU(1)