Re: GLib-GObject-CRITICAL debugging



Thanks Oliver,

I tried that but it is still the same. Do I have to have gtk+/glib etc
compiled with the debug option? (I use gentoo)


On Sat, 2005-05-14 at 17:19, Olivier Ramare wrote:
Hi,
I usually compile with the additionnal flag -ggdb
then gdb ./Sol.o (mine is called Sol.o these days :-))
and run --sync as a gdb command. Then "where" or "bt"
usually shows me where things go wrong : gdb puts
last call first, so after #2, you should get the name on
the function who called it (from your own code)
as well as the file name and the line number in this
file (dont edit the file in between !!) to locate
precisely where it went wrong. That's usually very
efficient (except when some pointers go awry :-()

HTH,
Amities,
          Olivier




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]