[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gdb
Subject:    varargs in define'd functions?
From:       Kevin Hilman <khilman () equator ! com>
Date:       2000-01-11 18:18:39
Message-ID: r2ya9wo4jp.fsf () bobdog ! equator ! com
[Download RAW message or body]


using gdb's 'define' command to define a function/macro.  Is there a
way to have these functions work with variable number of arguments.

For example, if I use $arg0 inside a define'd function, I have to give
that function an argument.  What I'd like is some way for the function
to work even when no argument is given (other than creating a separate
function to handle no args).

On a related note, is there a way to _use_ environment variables in
these functions?  I know of 'show environment' but then I can't seem
to figure out how to use the result of the 'show environment' command.

Thanks.

-- 
Kevin Hilman               ---  Equator Technologies Inc.
khilman@equator.com        ---  Seattle, WA USA



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic