ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] KDevelop4 patch
@ 2011-02-22 16:51 Sergey Borovikov
  2011-02-24 11:20 ` Gleb Kulikov
  2011-02-24 12:20 ` Sergey V Turchin
  0 siblings, 2 replies; 4+ messages in thread
From: Sergey Borovikov @ 2011-02-22 16:51 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions


[-- Attachment #1.1: Type: Text/Plain, Size: 1395 bytes --]

Приветствую..
Ковырялся тут с обновлением KDevelop до версии 4.2 (кстати кто всё-таки соберёт?) и случайно починил "Debuging Shell", который уже несколько лет как поломаный. (http://www.kdevelop.org/mediawiki/index.php/FAQ#How_to_debug_exec_objects_with_libtool_.22temporary_wrapper_scripts.22.3F)
Решение конечно немного кривое, но позволяет дебажить libtool-приложения без проблем. По крайней мере других применений "Debuging Shell", кроме как написать туда "libtool --mode=execute" я в инете не нашёл.

По поводу решения: идея в том, чтобы 'gdb' запускал обычный 'sh', которому аргументом передаётся '-c "libtool --mode=execute appName appArgs"'. Естественно это только если "Debuging Shell" указан(не пуст). Работает на ура.
Найденные в коде артефакты по поводу этого функционала не работоспособны в принципе.
-- 
Sergey Borovikov

Top Sportwetten GesmbH
Hietzinger Kai 137a
A-1130 Wien

email: sergey.borovikov@top-sportbets.com
www.ambassador-bets.com

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 316 bytes --]

[-- Attachment #2: DebugShellFix.patch --]
[-- Type: text/x-patch, Size: 1793 bytes --]

diff -Naurd kdevelop-4.2.0.orig/debuggers/gdb/debugsession.cpp kdevelop-4.2.0/debuggers/gdb/debugsession.cpp
--- kdevelop-4.2.0.orig/debuggers/gdb/debugsession.cpp	2011-01-23 20:36:25.000000000 +0100
+++ kdevelop-4.2.0/debuggers/gdb/debugsession.cpp	2011-02-22 17:11:48.000000000 +0100
@@ -1024,6 +1024,11 @@
     
     queueCmd(new GDBCommand(GDBMI::EnvironmentCd, dir));
 
+    if(!config_dbgShell_.isEmpty()){
+        QString realArgs = KShell::joinArgs(arguments);
+        arguments = QStringList( QString("-c"));
+        arguments << config_dbgShell_.toLocalFile()+QString(" ")+executable+QString(" ")+realArgs;
+    }
     // Set the run arguments
     if (!arguments.isEmpty())
         queueCmd(
@@ -1078,6 +1083,12 @@
 
         // Note: script could contain "run" or "continue"
     }
+    else if(!config_dbgShell_.isEmpty()){
+        QStringList arguments;
+        queueCmd(new GDBCommand(GDBMI::FileExecAndSymbols, "sh", this, &DebugSession::handleFileExecAndSymbols, true));
+        raiseEvent(connected_to_program);
+        queueCmd(new GDBCommand(GDBMI::ExecRun));
+    }
     else
     {
         queueCmd(new GDBCommand(GDBMI::FileExecAndSymbols, executable, this, &DebugSession::handleFileExecAndSymbols, true));
diff -Naurd kdevelop-4.2.0.orig/debuggers/gdb/gdb.cpp kdevelop-4.2.0/debuggers/gdb/gdb.cpp
--- kdevelop-4.2.0.orig/debuggers/gdb/gdb.cpp	2011-01-23 20:36:25.000000000 +0100
+++ kdevelop-4.2.0/debuggers/gdb/gdb.cpp	2011-02-22 15:07:02.000000000 +0100
@@ -75,7 +75,8 @@
     arguments << "--interpreter=mi2" << "-quiet";
 
     QString shell = config.readEntry(GDBDebugger::debuggerShellEntry);
-    if( !shell.isEmpty() )
+//     if( !shell.isEmpty() )
+    if( false )
     {
         kDebug(9012) << "have shell\n";
         shell = shell.simplified();

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

* Re: [sisyphus] KDevelop4 patch
  2011-02-22 16:51 [sisyphus] KDevelop4 patch Sergey Borovikov
@ 2011-02-24 11:20 ` Gleb Kulikov
  2011-02-24 14:41   ` Sergey Borovikov
  2011-02-24 12:20 ` Sergey V Turchin
  1 sibling, 1 reply; 4+ messages in thread
From: Gleb Kulikov @ 2011-02-24 11:20 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

В сообщении от [Вторник 22 февраля 2011 Sergey Borovikov] написал:

> Приветствую..
> Ковырялся тут с обновлением KDevelop до версии 4.2 (кстати кто всё-таки
> соберёт?)

А там проблемы со сборкой? Вроде как, версия из мэйнстримовского гита на 
сизифе собирается без проблем.

-- 
      Салют, /GLeb

UIN: 15341920
jabber://gleb@asd.iao.ru
sip://2387245@sipnet.ru		(telephony)
skype://gleb_kulikov.tomsk	(telephony)

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

* Re: [sisyphus] KDevelop4 patch
  2011-02-22 16:51 [sisyphus] KDevelop4 patch Sergey Borovikov
  2011-02-24 11:20 ` Gleb Kulikov
@ 2011-02-24 12:20 ` Sergey V Turchin
  1 sibling, 0 replies; 4+ messages in thread
From: Sergey V Turchin @ 2011-02-24 12:20 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

[-- Attachment #1: Type: Text/Plain, Size: 268 bytes --]

On Tuesday 22 February 2011 19:51, Sergey Borovikov wrote:

[...]
> кстати кто всё-таки соберёт?
Для сборки kdevelop kdevplatform и kdevelop-pg-qt есть права у любого 
мантейнера. Мне пока некогда.

[...]

-- 
Regards, Sergey.       ALT Linux, http://www.altlinux.ru/

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

* Re: [sisyphus] KDevelop4 patch
  2011-02-24 11:20 ` Gleb Kulikov
@ 2011-02-24 14:41   ` Sergey Borovikov
  0 siblings, 0 replies; 4+ messages in thread
From: Sergey Borovikov @ 2011-02-24 14:41 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

[-- Attachment #1: Type: Text/Plain, Size: 601 bytes --]

В сообщении от 24 февраля 2011 12:20:12 автор Gleb Kulikov написал:
> е как, версия из мэйнстримовского гита на 
> сизифе собирается без проблем.
Проблем со сборкой нет. Изменился только набор устанавливаемых файлов для пакета 'okteta'. Пришлось поправить немного спек. Да и не майнтейнер я чтоб в сизиф собирать =))
А в код полез просто потому что он мне под руку попался ) Подумал, если всё-равно собираю, так надо починить то что меня давно досаждало...
-- 
Sergey Borovikov

Top Sportwetten GesmbH
Hietzinger Kai 137a
A-1130 Wien

email: sergey.borovikov@top-sportbets.com
www.ambassador-bets.com

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 316 bytes --]

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

end of thread, other threads:[~2011-02-24 14:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-22 16:51 [sisyphus] KDevelop4 patch Sergey Borovikov
2011-02-24 11:20 ` Gleb Kulikov
2011-02-24 14:41   ` Sergey Borovikov
2011-02-24 12:20 ` Sergey V Turchin

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git