https://bugzilla.novell.com/show_bug.cgi?id=374259
User sh@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=374259#c14
--- Comment #14 from Stefan Hundhammer 2008-04-24 07:05:27 MST ---
A UI is created in all cases, for Qt as well as for NCurses. Of course it is;
why would it _not_ be created if there are UI calls?
In the Qt case you are just lucky: The Qt UI doesn't do anything with your tty.
It will probably create an X connection, however. You just don't see anything
until a window is opened.
In the NCurses case OTOH you realize that a UI is created because it
initializes its tty, which of course it needs to do for subsequent NCurses
operations.
Sample GDB session using the Qt (!) UI:
sh @ snell] ...share/YaST2/clients 18 % gdb /usr/lib/YaST2/bin/y2base
GNU gdb 6.5
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i586-suse-linux"...Using host libthread_db library
"/lib/libthread_db.so.1".
(gdb) break YUIComponent.cc:150
No source file named YUIComponent.cc.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (YUIComponent.cc:150) pending.
(gdb) run ldap '("interactive")' qt
Starting program: /suse/sh/util/y2base ldap '("interactive")' qt
Failed to read a valid object file image from memory.
[Thread debugging using libthread_db enabled]
[New Thread -1215056176 (LWP 24559)]
Breakpoint 2 at 0xb75c0b2d: file YUIComponent.cc, line 150.
Pending breakpoint "YUIComponent.cc:150" resolved
[Switching to Thread -1215056176 (LWP 24559)]
Breakpoint 2, YUIComponent::createUI (this=0x80677e0) at YUIComponent.cc:150
150 YUILog::setLoggerFunction( yui_y2logger );
Current language: auto; currently c++
(gdb) bt
#0 YUIComponent::createUI (this=0x80677e0) at YUIComponent.cc:150
#1 0xb75d584d in YUIFunction::evaluateCall (this=0x8071068) at
YUINamespace.cc:704
#2 0xb7de48a4 in YEFunction::evaluate (this=0x822ad98, cse=false) at
YExpression.cc:3126
#3 0xb7df0c01 in YEBracket::evaluate (this=0x8252450, cse=false) at
YExpression.cc:1747
#4 0xb7de6126 in YEPropagate::evaluate (this=0x822acc8, cse=false) at
YExpression.cc:1156
#5 0xb7dfc496 in YSAssign::evaluate (this=0x8252400, cse=false) at
YStatement.cc:653
#6 0xb7e1a448 in YBlock::evaluate (this=0x8206478, cse=false) at YBlock.cc:604
#7 0xb7d7003b in Y2Namespace::initialize (this=0x8206480) at
Y2Namespace.cc:307
#8 0xb7dfc195 in YSImport::evaluate (this=0x8206450, cse=false) at
YStatement.cc:1793
#9 0xb7e1a448 in YBlock::evaluate (this=0x81752f8, cse=false) at YBlock.cc:604
#10 0xb7d7003b in Y2Namespace::initialize (this=0x8175300) at
Y2Namespace.cc:307
#11 0xb7dfc195 in YSImport::evaluate (this=0x8175240, cse=false) at
YStatement.cc:1793
#12 0xb7e1a448 in YBlock::evaluate (this=0x8160378, cse=false) at YBlock.cc:604
#13 0xb7d7003b in Y2Namespace::initialize (this=0x8160380) at
Y2Namespace.cc:307
#14 0xb7dfc195 in YSImport::evaluate (this=0x81602e8, cse=false) at
YStatement.cc:1793
#15 0xb7e1a448 in YBlock::evaluate (this=0x815ea98, cse=false) at YBlock.cc:604
#16 0xb7d7003b in Y2Namespace::initialize (this=0x815eaa0) at
Y2Namespace.cc:307
#17 0xb7dfc195 in YSImport::evaluate (this=0x815e920, cse=false) at
YStatement.cc:1793
#18 0xb7e1a448 in YBlock::evaluate (this=0x8079478, cse=false) at YBlock.cc:604
#19 0xb7d7003b in Y2Namespace::initialize (this=0x8079480) at
Y2Namespace.cc:307
#20 0xb7dfc195 in YSImport::evaluate (this=0x8050048, cse=false) at
YStatement.cc:1793
#21 0xb7e1a448 in YBlock::evaluate (this=0x8072518, cse=false) at YBlock.cc:604
#22 0xb7dd59e3 in YCPCodeRep::evaluate (this=0x8871518, cse=false) at
YCPCode.cc:82
#23 0xb7ee3e2f in Y2WFMComponent::doActualWork (this=0x8072cb8,
arglist=@0xbfc76d80, displayserver=0x80677e0)
at Y2WFMComponent.cc:177
#24 0xb7d75541 in main (argc=0, argv=0xbfc76eb4) at genericfrontend.cc:680
#25 0xb7952f9c in __libc_start_main () from /lib/libc.so.6
#26 0x080484d1 in _start ()
(gdb) up
#1 0xb75d584d in YUIFunction::evaluateCall (this=0x8071068) at
YUINamespace.cc:704
704 m_comp->createUI();
(gdb)
127 void
128 YUIComponent::createUI()
129 {
..
..
148 y2debug( "Creating UI" );
149
150 YUILog::setLoggerFunction( yui_y2logger );
151 YUILog::setEnableDebugLoggingHooks( set_log_debug, // from y2log
152 get_log_debug ); // from y2log
153
154 try
155 {
156 if ( _requestedUIName.empty() )
157 YUILoader::loadUI( _withThreads );
158 else
159 YUILoader::loadPlugin( _requestedUIName, _withThreads );
160
161 _ui = YUI::ui();
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.