Re: Detecting number of parameters of C function
From: Barry Margolin (barmar_at_alum.mit.edu)
Date: 06/29/04
- Next message: Joe Seigh: "Re: Program crashes - debugging suggestions?"
- Previous message: Ognen Duzlevski: "Re: pthreads question"
- In reply to: Lev Walkin: "Re: Detecting number of parameters of C function"
- Next in thread: Ognen Duzlevski: "Re: Detecting number of parameters of C function"
- Reply: Ognen Duzlevski: "Re: Detecting number of parameters of C function"
- Reply: Pawel Piaskowy: "Re: Detecting number of parameters of C function"
- Reply: Pawel Piaskowy: "Re: Detecting number of parameters of C function"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 28 Jun 2004 18:41:18 -0400
In article <2kbidpFfpdqU1@uni-berlin.de>, Lev Walkin <vlm@lionet.info>
wrote:
> You don't need to know the number of arguments in order to print it
> for debugging purposes. Suppose, the function is being called with
> 3 or 4 arguments. If you print 4 values down the stack, it might still
> be okay, 'cause for human eye the fourth argument's value will likely be
> easily distinguishable.
>
> Yes, it does not give you precise answer, but this is probably the closest
> thing to the high level C programming. Other methods require
> a fair platform knowledge and are much less portable.
In fact, this is what many Unix debuggers do when they're asked to work
on a program that doesn't have a symbol table available.
-- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***
- Next message: Joe Seigh: "Re: Program crashes - debugging suggestions?"
- Previous message: Ognen Duzlevski: "Re: pthreads question"
- In reply to: Lev Walkin: "Re: Detecting number of parameters of C function"
- Next in thread: Ognen Duzlevski: "Re: Detecting number of parameters of C function"
- Reply: Ognen Duzlevski: "Re: Detecting number of parameters of C function"
- Reply: Pawel Piaskowy: "Re: Detecting number of parameters of C function"
- Reply: Pawel Piaskowy: "Re: Detecting number of parameters of C function"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]