473,396 Members | 2,076 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

gdb step

When I type 'step' at gdb prompt, gdb does not get inside the function,
insted it goes to the next line in my main program.
Someone can perhaps help me find the reason for the same. Part of
Makefile and code can be fould below.
Thanks,
~Sarah

Make file
==========

all: $(OBJS) $(EXECUTABLES)
%: %.c $(OBJS)
$(CC) $(CFLAGS) -o $@ $@.c $(OBJS) $(LDFLAGS)

..c.o:
$(CC) -c $(CFLAGS) $<

clean:
@echo "Cleaning..."
@$(CLEAN) $(CLEAN_FILES)

Code snipped
=============

/*
* Find the DCT of the image
*/
ImageDCT(InputImage, DCTImage, &num_rows, &num_cols, B);

/*
* Write output image
*/
WriteImage(DCTImage, num_rows, num_cols, argv[2]);

/*

Nov 14 '05 #1
1 1202
Sarah wrote:
When I type 'step' at gdb prompt, gdb does not get inside the function,
insted it goes to the next line in my main program.
Someone can perhaps help me find the reason for the same. Part of
Makefile and code can be fould below.
Thanks,
~Sarah

Make file
==========

all: $(OBJS) $(EXECUTABLES)
%: %.c $(OBJS)
$(CC) $(CFLAGS) -o $@ $@.c $(OBJS) $(LDFLAGS)

.c.o:
$(CC) -c $(CFLAGS) $<

clean:
@echo "Cleaning..."
@$(CLEAN) $(CLEAN_FILES)

Code snipped
=============

/*
* Find the DCT of the image
*/
ImageDCT(InputImage, DCTImage, &num_rows, &num_cols, B);

/*
* Write output image
*/
WriteImage(DCTImage, num_rows, num_cols, argv[2]);

/*

You're not even remotely on topic here (which you'd know if you had read
the FAQ at http://www.eskimo.com/~scs/C-faq/top.html).

Try, for example news:comp.unix.programmer. Also, please RTFM!!!

HTH,
--ag

--
Artie Gold -- Austin, Texas
http://it-matters.blogspot.com (new post 12/5)
http://www.cafepress.com/goldsays
Nov 14 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Martin Bless | last post by:
The good news: Along with Python-2.4 comes really good news to Windows users. Yes, you now CAN build extension modules yourself using the SAME C++ compiler and linker Python is built with...
10
by: tram | last post by:
How do we pass on the step1 output file to step2 of the same job? I would like to know the current job's output file programmetically, instead of hard coding it. Any idaes would be appreciated. ...
4
by: Claudio Grondi | last post by:
I need to unpack on a Windows 2000 machine some Wikipedia media .tar archives which are compressed with TAR 1.14 (support for long file names and maybe some other features) . It seems, that...
4
by: light_wt | last post by:
Hi I am taking the 2555 class and a lot of the material is over my head. I don't like the MS's book because there is no step-by-step on interacting with the VS.NET Is there good free resource...
3
by: R Millman | last post by:
under ASP.NET, single stepping in debug mode appears not to stop within event procedures. i.e. 1) Create web page with submit button and event procedure for the click event in the code behind...
1
by: Jim Hammond | last post by:
I can get data from a client-side assembly to the server in two manual steps, but I need to be able to do it in one step. Step 1: The user presses the manually coded "Step 1" button, which calls...
27
by: Julien Fiore | last post by:
Do you wand to install Pyrex on Windows ? Here is a step-by-step guide explaining: A) how to install Pyrex on Windows XP. B) how to compile a Pyrex module. Julien Fiore, U. of Geneva
5
by: ibiza | last post by:
Hi all, I'd need a function that would rounds values like : d = roundTo(64.2, 0.25) ' returns 64.25 d = roundTo(64.2, 10) ' returns 64 d = roundTo(64.2, 100) ' returns 100 well, that rounds...
7
by: gregory.lielens | last post by:
Hi, I am using a small python file as an input file (defining constants, parameters, input data, ...) for a python application. The input file is simply read by an exec statement in a specific...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.