gdb step

S

Sarah

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 $@ [email protected] $(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]);

/*
 
A

Artie Gold

Sarah said:
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 $@ [email protected] $(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 Also, please RTFM!!!

HTH,
--ag
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,160
Latest member
CollinStri
Top