Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932176AbaA1Rfn (ORCPT ); Tue, 28 Jan 2014 12:35:43 -0500 Received: from mail-ve0-f175.google.com ([209.85.128.175]:50389 "EHLO mail-ve0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932161AbaA1Rfj (ORCPT ); Tue, 28 Jan 2014 12:35:39 -0500 MIME-Version: 1.0 In-Reply-To: <52E7E7D8.2050605@nod.at> References: <52E6954F.2060303@nod.at> <20140128062806.GA20750@gmail.com> <52E76997.40303@nod.at> <52E7D2E5.8090208@linux.intel.com> <52E7D9FF.1080506@nod.at> <52E7DB15.3090808@zytor.com> <20140128170507.GA16279@gmail.com> <52E7E7D8.2050605@nod.at> Date: Tue, 28 Jan 2014 09:35:38 -0800 X-Google-Sender-Auth: 0byEWxwnS8qEQ_rzz0eVgVKw8xk Message-ID: Subject: Re: [GIT PULL] x86/kaslr for v3.14 From: Linus Torvalds To: Richard Weinberger Cc: Ingo Molnar , "H. Peter Anvin" , "H. Peter Anvin" , Kees Cook , Cong Ding , Ingo Molnar , Linux Kernel Mailing List , Mathias Krause , Michael Davidson , Thomas Gleixner , Wei Yongjun Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 28, 2014 at 9:24 AM, Richard Weinberger wrote: > > Hmm, my gdb does not like that notion. > > (gdb) list schedule+0x45 > Function "schedule+0x45" not defined. I don't have a debug build, so maybe it's something specific to gdb actually seeing type information and then being confused.. Can you do "x/10i schedule+0x45" because that definitely works for me. But I literally detest DBUG_INFO builds, because it's useless crap. 99% of everything I debug is from people reporting problems on their kernels, so it's not like my local debug info would match that anyway. Anyway, if it's a type information thing due to DEBUG_INFO that confuses gdb and makes it think that the "+0x45" part doesn't make sense, you may need to add a cast to get gdb to ignore the type information. IOW, does list (void *)schedule + 0x45 work for you? I happen to have gdb-7.6.50 here that I tested with, but I've used "symbol+offset" forever afaik, so it's definitely not something new. Linus -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/