 
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 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 "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/python3...Reading symbols from /usr/lib/debug/usr/bin/python3.2mu...done.
done.
(gdb) break gtk_ui_manager_add_ui_from_string
Function "gtk_ui_manager_add_ui_from_string" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (gtk_ui_manager_add_ui_from_string) pending.
(gdb) r
Starting program: /usr/bin/python3 test-uimanager-unicode.py
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/i686/cmov/libthread_db.so.1".
1

Breakpoint 1, gtk_ui_manager_add_ui_from_string (manager=0x84fc318, buffer=
    0x856e720 "<ui><popup name='mainmenu'><menu action='plmenu'><menuitem action='e'/></menu></popup></ui>", length=91, error=0xbfffe894)
    at /build/buildd-gtk+3.0_3.4.2-4-i386-QQNfyz/gtk+3.0-3.4.2/./gtk/gtkuimanager.c:1949
1949	/build/buildd-gtk+3.0_3.4.2-4-i386-QQNfyz/gtk+3.0-3.4.2/./gtk/gtkuimanager.c: No such file or directory.
(gdb) print bufffer
No symbol "bufffer" in current context.
(gdb) print buffer
$1 = (const gchar *) 0x856e720 "<ui><popup name='mainmenu'><menu action='plmenu'><menuitem action='e'/></menu></popup></ui>"
(gdb) print length
$2 = 91
(gdb) c
Continuing.
2

Breakpoint 1, gtk_ui_manager_add_ui_from_string (manager=0x84fc368, buffer=
    0x856e730 "<ui><popup name='mainmenu'><menu action='plmenu'><menuitem action='é'/></menu></popup></ui>", length=91, error=0xbfffe894)
    at /build/buildd-gtk+3.0_3.4.2-4-i386-QQNfyz/gtk+3.0-3.4.2/./gtk/gtkuimanager.c:1949
1949	in /build/buildd-gtk+3.0_3.4.2-4-i386-QQNfyz/gtk+3.0-3.4.2/./gtk/gtkuimanager.c
(gdb) print buffer
$3 = (const gchar *) 0x856e730 "<ui><popup name='mainmenu'><menu action='plmenu'><menuitem action='é'/></menu></popup></ui>"
(gdb) print length
$4 = 91
(gdb) c
Continuing.
Traceback (most recent call last):
  File "test-uimanager-unicode.py", line 18, in <module>
    u.add_ui_from_string(ui % "é")
  File "/usr/lib/python3/dist-packages/gi/overrides/Gtk.py", line 293, in add_ui_from_string
    return Gtk.UIManager.add_ui_from_string(self, buffer, length)
  File "/usr/lib/python3/dist-packages/gi/types.py", line 43, in function
    return info.invoke(*args, **kwargs)
gi._glib.GError: Error on line 1 char 92: Document ended unexpectedly inside the close tag for element 'ui'
[Inferior 1 (process 31731) exited with code 01]
(gdb) quit

