Sponsored Content
Top Forums Programming Following source files with gdb/xxgdb Post 26611 by w0lf on Wednesday 21st of August 2002 10:06:50 AM
Old 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

Splitting my program to multiple source files.

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

Source all files in a directory

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

Kernel Source files Confusion

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

need a shell script to extract the files from source file and check whether those files existonserve

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

Awk command with two source files

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.

- 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

Files not deleted in source server

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

Error files count while coping files from source to destination locaton as well count success full

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

Create Makefile from source files

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

Question on awk source files

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
fltk-config(1)						      General Commands Manual						    fltk-config(1)

NAME
fltk-config - script to get information about the installed version of fltk. SYNOPSIS
fltk-config [ --prefix [=DIR] ] [ --exec-prefix [=DIR] ] [ --version ] [ --api-version ] [ --use-gl ] [ --use-images ] [ --use-glut ] [ --cc ] [ --cxx ] [ --cflags ] [ --cxxflags ] [ --ldflags ] [ --ldstaticflags ] [ --libs ] [ -Dname[=value] ] [ -g ] [ --compile program.cxx ] DESCRIPTION
fltk-config is a utility script that can be used to get information about the current version of FLTK that is installed on the system, what compiler and linker options to use when building FLTK-based applications, and to build simple FLTK applications. The following options are supported: --api-version Displays the current FLTK API version number, e.g. "1.1". --cc --cxx Displays the C/C++ compiler that was used to compile FLTK. --cflags --cxxflags Displays the C/C++ compiler options to use when compiling source files that use FLTK. --compile program.cxx Compiles the source file program.cxx into program. This option implies "--post program". -g Enables debugging information when compiling with the --compile option. --ldflags Displays the linker options to use when linking a FLTK application. --ldstaticflags Displays the linker options to use when linking a FLTK application to the static FLTK libraries. --libs Displays the full path to the FLTK library files, to be used for dependency checking. --use-gl Enables OpenGL support. --use-glut Enables GLUT support. --use-images Enables image file support. --version Displays the current FLTK version number, e.g. "1.1.0". SEE ALSO
fluid(1), fltk(3) FLTK Programming Manual FLTK Web Site, http://www.fltk.org/ AUTHORS
Bill Spitzak and others. 6 February 2007 Fast Light Tool Kit fltk-config(1)
All times are GMT -4. The time now is 02:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy