This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
bitwise operations on registers
- From: Andrew Morton <akpm at zip dot com dot au>
- To: gdb at sources dot redhat dot com
- Date: Sun, 10 Mar 2002 23:48:46 -0800
- Subject: bitwise operations on registers
I'm sure I'm doing something silly.
(gdb) p $esp + 4
$15 = (void *) 0xca9c3ea4
(gdb) p $esp & 4
Argument to arithmetic operation not a number or boolean.
(gdb)
I don't seem to be able to perform the `&' and `|' arithmetic
operators against machine registers.
GNU gdb Red Hat Linux (5.1.1-1)
Thanks.