<p>I'm trying to send messages to Objective-C objects in gdb.</p>

<pre><code>(gdb) p $esi
$2 = (void *) 0x1268160
(gdb) po $esi
&lt;NSArray: 0x1359c0&gt;
(gdb) po [$esi count]
Target does not respond to this message selector.
</code></pre>

<p>I can't send any message to it. Am I missing something? Do I really need the symbols, or something else?</p>

Is it possible that you need to cast
```
$esi
```
?
```
```
p (NSUInteger)[(NSArray *)$esi count]
```
```