dm: dm-zoned: use __bio_add_page for adding single metadata page
[linux-block.git] / scripts / gdb / vmlinux-gdb.py
CommitLineData
3ee7b3fa
JK
1#
2# gdb helper commands and functions for Linux kernel debugging
3#
4# loader module
5#
6# Copyright (c) Siemens AG, 2012, 2013
7#
8# Authors:
9# Jan Kiszka <jan.kiszka@siemens.com>
10#
11# This work is licensed under the terms of the GNU GPL version 2.
12#
13
14import os
15
b9969558 16sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)) + "/scripts/gdb")
3ee7b3fa
JK
17
18try:
19 gdb.parse_and_eval("0")
20 gdb.execute("", to_string=True)
21except:
22 gdb.write("NOTE: gdb 7.2 or later required for Linux helper scripts to "
23 "work.\n")
b0fecd8c 24else:
8af055ae
FF
25 import linux.constants
26 if linux.constants.LX_CONFIG_DEBUG_INFO_REDUCED:
27 raise gdb.GdbError("Reduced debug information will prevent GDB "
28 "from having complete types.\n")
b0fecd8c 29 import linux.utils
66051720 30 import linux.symbols
7b599ef5 31 import linux.modules
ae7dbaad 32 import linux.dmesg
47528710 33 import linux.tasks
90cf83db 34 import linux.config
fe7f9ed9 35 import linux.cpus
084f6b1e 36 import linux.lists
449ca0c9 37 import linux.rbtree
2d061d99 38 import linux.proc
442284a8 39 import linux.timerlist
d1e9710b 40 import linux.clk
8207d4a8 41 import linux.genpd
778c1f5c 42 import linux.device
f4efbdaf 43 import linux.vfs
e36903b0 44 import linux.mm
b7235d6b 45 import linux.radixtree
b0969d76 46 import linux.interrupts