<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>1005</bug_id>
          
          <creation_ts>2011-04-25 01:18:22 +0000</creation_ts>
          <short_desc>gdb-7.2: can&apos;t build with ust-0.12: need upstream fix</short_desc>
          <delta_ts>2011-08-08 09:49:26 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dexuan Cui">dexuan.cui</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>13393</commentid>
    <comment_count>0</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-04-25 01:18:22 +0000</bug_when>
    <thetext>By default gdb-7.2 depends on ust(btw, the recipe of gdb lacks: DEPENDS += &quot; lttng-ust&quot;) unless we specify --without-ust.

gdb-7.2 works with lttng-ust 0.11 fine.
Recently we upgraded lttng-ust to 0.12 that has API changes(http://www.mail-archive.com/ltt-dev@lists.casi.polymtl.ca/msg01839.html) so gdb-7.2 doesn&apos;t build now:
gdb-7.2/gdb/gdbserver/tracepoint.c: In function &apos;first_marker&apos;:
gdb-7.2/gdb/gdbserver/tracepoint.c:7009:3: warning: return from incompatible pointer type.

Saul has worked around the build issue by adding --without-ust to gdb-7.2&apos;s configure, and we need try to push upstream gdb to fix the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13397</commentid>
    <comment_count>1</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-04-25 06:25:44 +0000</bug_when>
    <thetext>I reported http://sourceware.org/bugzilla/show_bug.cgi?id=12699 in gdb bugzilla.

Also reported the issue in gdb and lttng-ust communities:
http://sourceware.org/ml/gdb/2011-04/msg00140.html
http://lists.casi.polymtl.ca/pipermail/ltt-dev/2011-April/004449.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13414</commentid>
    <comment_count>2</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-04-25 18:52:55 +0000</bug_when>
    <thetext>A comment from lttng mailing list follows:

http://lists.casi.polymtl.ca/pipermail/ltt-dev/2011-April/004450.html

----------------------------

We&apos;re currently doing instrumentation API changes in UST. At the moment,
it is in the git tree, planned for release in UST 0.13. Our goal is to
perform this painful (but required) step sooner than later so that we
minimize the amount of pain for our user-base.

Also, we should reopen the discussion on the way the UST Markers collect
the registers for GDB, because the current way involves a _lot_ of ugly
assembly code. It should be possible to only use a volatile inline asm
to specify input constraints on the target marker parameters, and keep
the instruction pointer address that corresponds to this inline asm in a
section known by gdb (so gdb could use the drawf info to fetch data from
registers/memory). If you can ensure that this would fit gdb&apos;s
requirements, I could clean up the marker code and we could resync the
APIs together. We could also provide this for UST Tracepoints in the
same go, with pretty much the same interface as we&apos;d use for UST
Markers. I am aware that this would require change on the GDB side, but
I think it&apos;s better to synchronise our effort rather than to shoot at
different targets.

Thanks,

Mathieu

----------------------------</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13482</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-04-28 15:20:05 +0000</bug_when>
    <thetext>Need to wait for the upstream resolution with UST and gdb</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15325</commentid>
    <comment_count>4</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-08-08 09:49:26 +0000</bug_when>
    <thetext>LTTNG Update to 0.15 and GDB update fixes this issue

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=d26c9bd80d8ee5fd125a487435e5c976ea13916a

and

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=7ae7e7e09a0ecb76413754c70e12fda14d64a0be</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>