This is how to use gdb:
- Code: Select all
$ gdb --args ./out/Debug/cefclient --off-screen-rendering-enabled
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04
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 "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /home/marshall/code/chromium/src/out/Debug/cefclient...done.
(gdb) break main
Breakpoint 1 at 0x431dc4: file ../../cef/tests/cefclient/cefclient_gtk.cpp, line 262.
(gdb) r
Starting program: /home/marshall/code/chromium/src/out/Debug/cefclient --off-screen-rendering-enabled
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Breakpoint 1, main (argc=2, argv=0x7fffffffe1c8) at ../../cef/tests/cefclient/cefclient_gtk.cpp:262
262 CefMainArgs main_args(argc, argv);
(gdb) break gdk_x_error
Breakpoint 2 at 0x7fffec9f6670: file /build/buildd/gtk+2.0-2.24.10/gdk/x11/gdkmain-x11.c, line 458.
(gdb) c
Continuing.
If it crashes use the 'bt' command to output the stack trace.
Adding the --sync option triggers a bug similar to https://code.google.com/p/chromiumembed ... ail?id=620. I'm not sure how to fix that yet.