Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* How to get value of gs:0xc with LTS note in coredump?
@ 2016-10-04  1:00 慕冬亮
  2016-10-04  1:20 ` Jan Kratochvil
  0 siblings, 1 reply; 5+ messages in thread
From: 慕冬亮 @ 2016-10-04  1:00 UTC (permalink / raw)
  To: gdb

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-10-04 17:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-04  1:00 How to get value of gs:0xc with LTS note in coredump? 慕冬亮
2016-10-04  1:20 ` Jan Kratochvil
2016-10-04  1:49   ` 慕冬亮
2016-10-04  6:57     ` Jan Kratochvil
2016-10-04 17:06       ` 慕冬亮

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox