This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
GDB convenience variable values
- From: Mickael Gicquaire <Mickael dot Gicquaire at st dot com>
- To: gdb at sources dot redhat dot com <gdb at sources dot redhat dot com>
- Date: Mon, 3 Dec 2001 11:46:29 +0000
- Subject: GDB convenience variable values
- Recieved: from Mickael.Gicquaire@st.com by jaguar with local (Exim 3.03 #5)id 16ArYL-0004G9-00for gdb@sources.redhat.com; Mon, 03 Dec 2001 11:46:29 +0000
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 | | |
---------------------------------------------------------------------------