This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GDB convenience variable values



hi, i have a problem figuring a way to do the following:

i have a variable that contain a port number. This variable is set like this:
set $PosixStdin = (char) 1245

I want to pass that variable value to a user defined command(sh4sim) like this:
sh4sim $PosixStdin

The problem is that it is actually passing $PosixStdin to the user defined
command instead of 1245.

Is there any way to do this ?

-- 
---------------------------------------------------------------------------
| Mickael Gicquaire  | email mickael.gicquaire@.st.com  |                 |
|                    |                                  |   _____________ | 
| STMicroelectronics |                                  |  / ___/__   __/ |
| 1000 Aztec West    |                                  |  \__ \  /  /    | 
| Almondsbury        |   Phone 01454-462342             | /____/ /__/     |
| BRISTOL            |                                  |                 |
---------------------------------------------------------------------------



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]