From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 113244 invoked by alias); 4 Oct 2016 01:00:23 -0000 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 Received: (qmail 113207 invoked by uid 89); 4 Oct 2016 01:00:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=0xc, 12th, Safe, Storage X-HELO: mail-oi0-f50.google.com Received: from mail-oi0-f50.google.com (HELO mail-oi0-f50.google.com) (209.85.218.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 04 Oct 2016 01:00:20 +0000 Received: by mail-oi0-f50.google.com with SMTP id r126so219059615oib.0 for ; Mon, 03 Oct 2016 18:00:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ykOmHakKzqhlounx0QZsK//H/yCOxWOstkh+hlfJMJk=; b=fTiUnk8r3ZOZH/D6cUml/8SokrVWcmJhd4BteUXRt9FpGMpU1nXsunJPXOcAP4xIUp e6917rDf+k7QuxMgyDQr9dX7D+DuI95FnX3qW0xUtzLadfOMn1pobTmHKGy4TtEo/Zwq IasqewkNoc6gyCkLjKYrJwDDgH7c8voDPpBUL0NjLl2Yu4sGUYKb1z5YV1QxmFpHCD1W aL0flr34/bkYqQCUpqo8lccAqzAypxrGMRWf1uzE/5pu5ccfYRhK2MaMa6rsUIsjSD6x uQR3ND4m4sxdTUGozY9zJBa1GQ4DNPWSJVgt+gGY+DHFBeIvNJVe0+/yGGO5+gbkp3V4 /gaA== X-Gm-Message-State: AA6/9RkH8F38wPxj59jEd59MgxAtpDW5nep7QsFzhZf0hwQf45DNXuHKr36NbRgOWh6VLIq7KIlx7j2VhEaPPA== X-Received: by 10.157.48.74 with SMTP id w10mr563804otd.78.1475542815357; Mon, 03 Oct 2016 18:00:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.97.136 with HTTP; Mon, 3 Oct 2016 17:59:45 -0700 (PDT) From: =?UTF-8?B?5oWV5Yas5Lqu?= Date: Tue, 04 Oct 2016 01:00:00 -0000 Message-ID: Subject: How to get value of gs:0xc with LTS note in coredump? To: gdb@sourceware.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2016-10/txt/msg00004.txt.bz2 Dear all, I have a question about gs and TLS in core dump. When I read the assembly code from one coredump, there is one memory dereference : gs:[edx] or gs:0xc. I googled gs register and found it points to Thread Local Storage. However, gs is a selector to GDT and this structure is in the kernel. And I could not obtain it in coredump. Then I searched all the segments in core dump. I found a note entry with type NT_386_TLS, length 0x30. Is gs:0xc in this note ? And gs:0xc is the 12th element of this note entry? -- My best regards to you. No System Is Safe! Dongliang Mu