From owner-freebsd-hackers@freebsd.org Mon Jul 6 07:22:44 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E278C35DECE for ; Mon, 6 Jul 2020 07:22:44 +0000 (UTC) (envelope-from arka.sw1988@gmail.com) Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B0cTv5Z2pz4sX6 for ; Mon, 6 Jul 2020 07:22:43 +0000 (UTC) (envelope-from arka.sw1988@gmail.com) Received: by mail-lj1-x22d.google.com with SMTP id f5so28199777ljj.10 for ; Mon, 06 Jul 2020 00:22:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=/SFbcV+i0vZZ47NMuYOEbw9+8NIBGICVrm/0eXX1Tu4=; b=Yjr0g6cP1jV+i/CFqRFMKC1BklC5PHOvQfn2iygGmSWO9DBQHFxeCVLpsHpNCGbtJy P/fgacjjciAQsWM8iInoEe8zUurM/eSFKEy5fP4TaqcKRBHNTrefRjUoPPAgfsLTDm4E vNpUYgd1Xt2lipde+7Kg446XPzfs9au5LHb8gRy0MwYVpmg4+tDVxS2IcESG9yGDLhVz H/94GfTzyRaJip4Q+OPidT5ZbmwzXDeTeq84rhCZDBxOwmwsqZYDIK09bpe9M7s/7IbP WZ6dbOxM6k2TztTIrIa5RaHci77j2+bNKaXDxQf7dIkH+Dj0/VRII+AfuyFFpxiHW7DN d4Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=/SFbcV+i0vZZ47NMuYOEbw9+8NIBGICVrm/0eXX1Tu4=; b=nkzj4ZWBhoc3mfPpGYdy1+R6KTAM7k+mBvmc1iigTLIaYqP7X6JsGC79pzQzH4f9ul F7zg/EyM16Cfjs9Wc4+IyQUpQcwKsEm0mKzJpWAhxiY4teo5VkEHk+4R2PWT7g7iRYXK Ur6w+bdcDmDPwPNT2o8rn51eQlQRi3klgBW7lldh10zRbIWwvL6BfdQUphWcihaEpHdp 3MFDYQjmziDd+K4cjjfFzaUBWvQg6vP3B/nY5ndL+kpQ7FqscnhrL55P2tMfySsg4bGQ VdfHNnlEUKJ8BcKPXaP+6syPMMVonuuHpf1AjU3492DK6mRMpAm+8z4zwRewDVNjlUfD qdcw== X-Gm-Message-State: AOAM531gPE+xl68klXuw/aAm3Wb+U0UfOxrZTdqr0eq9tCc8jLJEM9K7 DWjZ38nxHAi2WlR7jubFHeub0HSlckzEQSK6aadO7A== X-Google-Smtp-Source: ABdhPJxP1EGU+hbIrtq/UTxqumnSOsjpypYK4GXYnN76DGBhFrWQ725sbdFE57EmUoVZs3GmPLLzaUglejv3AL3V2x0= X-Received: by 2002:a2e:9c95:: with SMTP id x21mr19661637lji.234.1594020160703; Mon, 06 Jul 2020 00:22:40 -0700 (PDT) MIME-Version: 1.0 From: Arka Sharma Date: Mon, 6 Jul 2020 12:52:28 +0530 Message-ID: Subject: Accessing curthread in a kgdb session To: freebsd-hackers@freebsd.org X-Rspamd-Queue-Id: 4B0cTv5Z2pz4sX6 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=Yjr0g6cP; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of arkasw1988@gmail.com designates 2a00:1450:4864:20::22d as permitted sender) smtp.mailfrom=arkasw1988@gmail.com X-Spamd-Result: default: False [-2.56 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.997]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.98)[-0.985]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::22d:from]; NEURAL_SPAM_SHORT(0.42)[0.420]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jul 2020 07:22:44 -0000 Dear All, I have connected to kgdb. Now if I want to dump the curthread is there any way to do that ? I have checked the definition of curthread macro for amd64 and it is being read from gs register whose value I am not able to check from kgdb as it says "value not available". Regards, Arka