summaryrefslogtreecommitdiff
path: root/glib/glib_gdb.py
Commit message (Collapse)AuthorAgeFilesLines
* py: Various flake8 cleanupsPhilip Withnall2020-11-171-13/+14
| | | | | | | None of these are particularly significant, but they do get the CI output clean. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
* py: Reformat all Python files consistentlyPhilip Withnall2020-11-171-62/+81
| | | | | | | | | | This commit is the unmodified results of running ``` black $(git ls-files '*.py') ``` with black version 19.10b0. See #2046. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
* gdb: Fix GHashTable pretty printer off-by-one errorPhilip Chimento2019-11-051-3/+6
| | | | | | | Commit 7678b107 seems to have left the GHashTable pretty printer with an off-by-one error, skipping the first key it encounters and printing an extra garbage key/value pair instead. This fixes that by moving an increment to the end of a loop rather than the beginning.
* Update gdb pretty-printer for GHashTablezb32019-05-171-2/+18
| | | | Fixes #1780
* python: avoid equality check for NoneThomas Hindoe Paaboel Andersen2018-07-121-2/+2
| | | | | | | | | PEP8 says that: "Comparisons to singletons like None should always be done with is or is not, never the equality operators." glib uses a mix of "== None" and "is None". This patch changes all cases to the latter.
* Rename gdb macros with `_gdb` suffix to avoid ns clashesTom Tromey2016-05-231-0/+261
glib installs a gdb helper file named `glib.py`. Then the "hook" file updates `sys.path` and does `import glib`. This will fail if glib has already been imported into gdb, say using `from gi.repository import GLib`. This is due to a namespace clash. One fix would be to rename the gdb helper files to not clash with other Python modules. This should be done for all such helper files. https://bugzilla.gnome.org/show_bug.cgi?id=760186