SF.net SVN: geany:[3388] trunk

ntrel at users.sourceforge.net ntrel at xxxxx
Tue Dec 16 17:11:10 UTC 2008


Revision: 3388
          http://geany.svn.sourceforge.net/geany/?rev=3388&view=rev
Author:   ntrel
Date:     2008-12-16 17:11:09 +0000 (Tue, 16 Dec 2008)

Log Message:
-----------
Add GDB 'Stop on warnings' and 'Running with batch commands'
sections.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/HACKING

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2008-12-16 16:27:17 UTC (rev 3387)
+++ trunk/ChangeLog	2008-12-16 17:11:09 UTC (rev 3388)
@@ -15,6 +15,9 @@
    working directory if the current file has no path.
  * src/editor.c:
    Move %ws and %newline% replacement into snippets-only code.
+ * HACKING:
+   Add GDB 'Stop on warnings' and 'Running with batch commands'
+   sections.
 
 
 2008-12-15  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>

Modified: trunk/HACKING
===================================================================
--- trunk/HACKING	2008-12-16 16:27:17 UTC (rev 3387)
+++ trunk/HACKING	2008-12-16 17:11:09 UTC (rev 3388)
@@ -292,8 +292,37 @@
 to the s_tag_type_names strings used in foo.c for FooKinds.
 
 
-Loading a plugin from GDB
--------------------------
+GDB
+---
+
+Stop on warnings
+^^^^^^^^^^^^^^^^
+When a GLib or GTK warning is printed, often you want to get a
+backtrace to find out what code caused them. You can do that with the
+``--g-fatal-warnings`` argument, which will abort Geany on the first
+warning it receives.
+
+But for ordinary testing, you don't always want your editor to abort
+just because of a warning - use::
+
+    (gdb) b handler_log if level <= G_LOG_LEVEL_WARNING
+
+
+Running with batch commands
+^^^^^^^^^^^^^^^^^^^^^^^^^^^
+Use::
+
+    $ gdb src/geany -x gdb-commands
+
+Where ``gdb-commands`` is a file with the following lines::
+
+    set pagination off
+    b handler_log if level <= G_LOG_LEVEL_WARNING
+    r -d
+
+
+Loading a plugin
+^^^^^^^^^^^^^^^^
 This is useful so you can load plugins without installing them first.
 Alternatively you can use a symlink in ~/.config/geany/plugins or
 $prefix/lib/geany (where $prefix is /usr/local by default).


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list