<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>29759</bug_id>
          
          <creation_ts>2014-01-27 21:42:50 +0400</creation_ts>
          <short_desc>Добавить поддержку python в gdb</short_desc>
          <delta_ts>2014-02-14 12:27:41 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>gdb</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>https://sourceware.org/gdb/wiki/PythonGdbTutorial</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Evgeny Sinelnikov">sin</reporter>
          <assigned_to name="Gleb F-Malinovskiy">glebfm</assigned_to>
          <cc>aris</cc>
    
    <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>sbolshakov</cc>
    
    <cc>vostok</cc>
    
    <cc>zerg</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>144807</commentid>
    <comment_count>0</comment_count>
    <who name="Evgeny Sinelnikov">sin</who>
    <bug_when>2014-01-27 21:42:50 +0400</bug_when>
    <thetext>На текущий момент gdb уже слинкован в libpython, но поддержка python в gdb почему-то отключена. Эта &quot;фича&quot; используется в различных скриптовых средствах отладки, а также в интегрированных средах разработки (см. https://bugzilla.altlinux.org/show_bug.cgi?id=29569#c25)

Предлагается включить опцию --with-python в ./configure и упаковать файлы питона в отдельный пакет python-modules-gdb.

При этом зависимость от python-modules у самого gdb переносится на этот пакет python-modules-gdb, что сокращает число лишних зависимостей в gdb. Пакет с модулями, при этом предоставляет зависимости для соответствующий модулей:
python2.7(gdb)  
python2.7(gdb.FrameIterator)  
python2.7(gdb.FrameWrapper)  
python2.7(gdb.backtrace)  
python2.7(gdb.command)  
python2.7(gdb.command.backtrace)  
python2.7(gdb.command.explore)  
python2.7(gdb.command.ignore_errors)  
python2.7(gdb.command.pahole)  
python2.7(gdb.command.pretty_printers)  
python2.7(gdb.command.prompt)  
python2.7(gdb.command.require)  
python2.7(gdb.command.upto)  
python2.7(gdb.function)  
python2.7(gdb.function.caller_is)  
python2.7(gdb.function.in_scope)  
python2.7(gdb.printing)  
python2.7(gdb.prompt)  
python2.7(gdb.types)

В качестве рабочего варианта предлагаю патч (0a211732f22cb90b или 149eee351cfdf) в моем git-репозитории.
http://git.altlinux.org/people/sin/packages/gdb.git

PS: с данным вопросом хотелось бы определиться для обновления qt-creator, который использует python в gdb.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>145005</commentid>
    <comment_count>1</comment_count>
    <who name="Evgeny Sinelnikov">sin</who>
    <bug_when>2014-02-03 05:56:32 +0400</bug_when>
    <thetext>Разобрал детальнее сборку gdb, внёс необходимые поправки.
По сути, компоновка с питоном уже была. Вопрос состоит в том, чтобы python-клиенты могли &quot;вытягивать&quot; gdb по зависимости. В новом патче (d12ad0c191608bbef42f19) это учтено.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>145026</commentid>
    <comment_count>2</comment_count>
    <who name="Sergey V Turchin">zerg</who>
    <bug_when>2014-02-03 15:28:38 +0400</bug_when>
    <thetext>http://git.altlinux.org/tasks/113268/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>145082</commentid>
    <comment_count>3</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2014-02-05 00:19:14 +0400</bug_when>
    <thetext>gdb-7.5.0.20121002-alt5 -&gt; sisyphus:

* Thu Jan 30 2014 Evgeny Sinelnikov &lt;sin@altlinux&gt; 7.5.0.20121002-alt5
- Built with python support (closes: #29759).
- Added separate subpackages gdb-common and gdb-light.
- Changed default auto-load path to /usr/share/gdb directory.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>145256</commentid>
    <comment_count>4</comment_count>
    <who name="Yuri N. Sedunov">aris</who>
    <bug_when>2014-02-14 12:27:41 +0400</bug_when>
    <thetext>(In reply to comment #3)
&gt; gdb-7.5.0.20121002-alt5 -&gt; sisyphus:
&gt; 
&gt; * Thu Jan 30 2014 Evgeny Sinelnikov &lt;sin@altlinux&gt; 7.5.0.20121002-alt5
&gt; - Built with python support (closes: #29759).

Надо б было и python3 support сделать.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>