[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gdb] How to test the type of an object
From: |
Stefan Monnier |
Subject: |
[Gdb] How to test the type of an object |
Date: |
26 May 2003 18:00:35 -0400 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
I can use `whatis' to interactively get information about a given
symbol, but how can I do something like
if (whatis v = int)
do something for the case where `v' is an int.
else
do something for the case where `v' is a union.
end
-- Stefan
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gdb] How to test the type of an object,
Stefan Monnier <=