[cairo] Re: Using --sync and gdb to debug X protocol errors in GTK+-based programs

Bill Spitzak spitzak at d2.com
Thu Jun 23 12:42:04 PDT 2005


Kristian Høgsberg wrote:

> These days gdb also has the nifty --args argument which specifies that
> the arguments given to gdb after the program filename are arguments for
> the program being debugged, not gdb.  For example:
> 
>     gdb --args /bin/ls -l
>     (gdb) run
>     ...
>     total 2384
>     -rw-rw-r--  1 krh krh   1525 Jan 27 14:35 acinclude.m4
>     -rw-rw-r--  1 krh krh 252975 Jun 21 18:51 aclocal.m4

Thanks! I didn't know that! By far the lack of this is my biggest 
frustration with gdb is that I had to cut & paste the command that I 
want to test, rather than using uparrow.

PS: I tried it and it works.



More information about the cairo mailing list