[gtkada] Gtk.List_Store.Swap
Jan de Kruyf
jan.de.kruyf at gmail.com
Fri May 3 21:27:15 CEST 2013
Her are the results from some schpelunking with gdb.
by the way this is on a 64 bit debian wheezy system,
and libgtkada.so.2.24.1.
GNATMAKE 4.6.
Not much help so far.
What I can say is that the type casting of "Model" as a
"Gtk.Tree_Model.Gtk_Tree_Model"
when "Model" is assigned to, seems to be problematic in some other test I
did.
Allthough "Gtk.List_Store.Gtk_List_Store" maps perfectly onto
"Gtk.Tree_Model.Gtk_Tree_Model". (At least that is how I read the ads files)
Thanks in advance.
Regards,
j.
-------------------------------------------------------------
$ gdb ./test
(gdb) break test1.adb:174
(gdb) run
Breakpoint 1, test1.on_button_clicked (user_data=<optimized out>,
<user_dataL>=<optimized out>)
at test1.adb:174
174 Gtk.List_Store.Swap
(gdb) list
173 -- . . . . . .
174 Gtk.List_Store.Swap
175 (Store => Model,
176 A => Iter1,
177 B => Iter2);
178 -- . . . . .
(gdb) p Model
$1 = (access gtk.list_store.gtk_list_store_record) 0x71fe50
(gdb) p Iter1
$2 = (stamp => 1272016787, user_data => (system.address) 0x616400,
user_data2 => (system.address) 0x0,
user_data3 => (system.address) 0x0)
(gdb) p Iter2
$3 = (stamp => 1272016787, user_data => (system.address) 0x616390,
user_data2 => (system.address) 0x0,
user_data3 => (system.address) 0x0)
(gdb) s
Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/gtkada/attachments/20130503/3e3cd0e5/attachment.html>
More information about the gtkada
mailing list