From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2169 invoked by alias); 31 Aug 2012 09:19:37 -0000 Received: (qmail 1868 invoked by uid 22791); 31 Aug 2012 09:19:34 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,TW_BJ,TW_IB X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 31 Aug 2012 09:19:21 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id E8885290020; Fri, 31 Aug 2012 11:19:28 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NA8h9aZcX54z; Fri, 31 Aug 2012 11:19:28 +0200 (CEST) Received: from ulanbator.act-europe.fr (ulanbator.act-europe.fr [10.10.1.67]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id D701D29000A; Fri, 31 Aug 2012 11:19:28 +0200 (CEST) Subject: Re: GDB 7.5 on OS X 10.7 Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=us-ascii From: Tristan Gingold In-Reply-To: Date: Fri, 31 Aug 2012 09:19:00 -0000 Cc: gdb@sourceware.org Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Kaushik Srenevasan X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-08/txt/msg00101.txt.bz2 On Aug 31, 2012, at 6:37 AM, Kaushik Srenevasan wrote: > Is GDB (7.5) known to work on OS X 10.7? I compiled it from GIT with > all defaults except the prefix but don't seem to be able to get even > the basic commands (bt, break) to work. Yes, it is known to work (I use it every days). However there is still man= y issues because it is not heavily used. In particular, I rarely debug dylibs. Tristan. >=20 > file ~/src/jdk7/build/macosx-x86_64-debug/bin/java > set args -classpath ~/src/tmp helloworld > catch load libjvm >=20 > Catchpoint 1 > Inferior loaded > /Users/ks/src/jdk7/build/macosx-x86_64-debug/lib/server/libjvm.dylib > 0x00007fff5fc0b269 in ?? () > (gdb) bt > #0 0x00007fff5fc0b269 in ?? () > #1 0x00007fff5fc0b24d in ?? () > #2 0x00000001000d1a50 in ?? () > #3 0x00007fff5fc3b560 in ?? () > #4 0x00000001000d1f20 in ?? () > #5 0x00007fff5fc0540e in ?? () > #6 0x0000000101800000 in ?? () > #7 0x0000000100200300 in ?? () > #8 0x0000000050403138 in ?? () > #9 0x00007fff5fc052ea in ?? () > #10 0x0000000100200260 in ?? () > #11 0x00000001000d1ae8 in ?? () > #12 0x0000000000000000 in ?? () > (gdb) break LRG::set_mask > Cannot access memory at address 0x141be0 >=20 > It looks like break was able to find the symbol's address. The address > however looks suspect to me. The target (if that matters) is a debug > build of the OpenJDK. >=20 > --- Kaushik