From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13845 invoked by alias); 17 Feb 2010 20:06:30 -0000 Received: (qmail 13827 invoked by uid 48); 17 Feb 2010 20:06:30 -0000 Date: Wed, 17 Feb 2010 20:06:00 -0000 Message-ID: <20100217200630.13826.qmail@sourceware.org> From: "hjl dot tools at gmail dot com" To: gdb-prs@sourceware.org In-Reply-To: <20100217195339.11293.hjl.tools@gmail.com> References: <20100217195339.11293.hjl.tools@gmail.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug shlibs/11293] gdb is broken on Linux/i386 X-Bugzilla-Reason: CC Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2010-q1/txt/msg00297.txt.bz2 ------- Additional Comments From hjl dot tools at gmail dot com 2010-02-17 20:06 ------- This patch: --- diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c index b3b9e00..f4fccb2 100644 --- a/gdb/solib-svr4.c +++ b/gdb/solib-svr4.c @@ -1459,7 +1459,7 @@ enable_break (struct svr4_info *info, int from_tty) invalid addresses like 0x101234567 for 32bit inferiors on 64bit GDB. */ - if (addr_bit < (sizeof (ULONGEST) * HOST_CHAR_BIT)) + if (addr_bit < (sizeof (CORE_ADDR) * HOST_CHAR_BIT)) { CORE_ADDR space_size = (ULONGEST) 1 << addr_bit; CORE_ADDR tmp_entry_point = exec_entry_point (tmp_bfd, -- seems to work. -- http://sourceware.org/bugzilla/show_bug.cgi?id=11293 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.