Code: Alles auswählen
sudo gdb gpartedbin
sudo habe ich nicht konfiguriert und möchte das auch nur im notfall tun. Es wird doch hoffentlich diese debugmöglichkeit auch irgendwie unter Debian zu nutzen sein, nur hat es noch nicht funktioniert mit allen möglichen varianten, die ich jetzt gar nicht erst wiederholen will. Der letzte versuch bestand jedoch darin, su im VT auszuführen, dann entweder DISPLAY=:0 / DISPLAY=:0.0 / export DISPLAY=:0.0 dann gdb gpartedbin, führt jedoch auch zu
kann mir jemand sagen wir ich "gdb gpartedbin" mit rootrechten unter X starte?~# export DISPLAY=:0.0
~# gdb gpartedbin
GNU gdb (Debian 7.7.1+dfsg-3) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i586-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from gpartedbin...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/sbin/gpartedbin
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/i686/cmov/libthread_db.so.1".
Invalid MIT-MAGIC-COOKIE-1 key
(gpartedbin:25015): Gtk-WARNING **: cannot open display: :0.0
[Inferior 1 (process 25015) exited with code 01]
als root:~#env
...
DISPLAY=:0.0
...