<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>goyoki</author_name>
  <author_url>https://blog.hatena.ne.jp/goyoki/</author_url>
  <blog_title>千里霧中</blog_title>
  <blog_url>https://goyoki.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>メモ用。デバッグ等で有用なコールスタックはgdbなどの各種デバッガで取得できるけれど、実行中にアプリケーション内で取得したい場合がある。 それはglibcが使えるならbacktrace()、backtrace_symbols()で実現できる。 例えば下記のコード： #include &lt;stdio.h&gt; #include &lt;execinfo.h&gt; void hoge1(void) { size_t i; void *trace[128]; char **ss_trace; size_t size = backtrace(trace, sizeof(trace) / sizeof(trace[0]…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgoyoki.hatenablog.com%2Fentry%2F2013%2F04%2F21%2F002828&quot; title=&quot;実行中でのコールスタックの取得と表示 - 千里霧中&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-04-21 00:28:28</published>
  <title>実行中でのコールスタックの取得と表示</title>
  <type>rich</type>
  <url>https://goyoki.hatenablog.com/entry/2013/04/21/002828</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
