From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18913 invoked by alias); 11 Mar 2002 07:50:55 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 18809 invoked from network); 11 Mar 2002 07:50:52 -0000 Received: from unknown (HELO www.linux.org.uk) (195.92.249.252) by sources.redhat.com with SMTP; 11 Mar 2002 07:50:52 -0000 Received: from adsl-64-161-31-224.dsl.sntc01.pacbell.net ([64.161.31.224] helo=zip.com.au) by www.linux.org.uk with esmtp (Exim 3.33 #5) id 16kKa3-0000De-00 for gdb@sources.redhat.com; Mon, 11 Mar 2002 07:50:51 +0000 Message-ID: <3C8C615E.5D4F0A6B@zip.com.au> Date: Sun, 10 Mar 2002 23:50:00 -0000 From: Andrew Morton X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.19-pre2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: bitwise operations on registers Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-03/txt/msg00094.txt.bz2 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.