We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Generating configfile with modifed context-sections fails
### Description

Trying to generate a configfile when changing context-sections produces error.

### Steps to reproduce

Happens with no binary loaded

Gdb session history:
```
set context-sections ''
configfile
```


With exception-verbose on:
```
pwndbg> configfile
Showing only changed values:
# context-sections: which context sections are displayed (controls order)
Traceback (most recent call last):
  File "/home/rene/tempenis/pwndbg/pwndbg/commands/__init__.py", line 184, in __call__
    return self.function(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/rene/tempenis/pwndbg/pwndbg/commands/config.py", line 127, in configfile
    configfile_print_scope("config", show_all)
  File "/home/rene/tempenis/pwndbg/pwndbg/commands/config.py", line 154, in configfile_print_scope
    print("# default: %s" % p.native_default)
                            ^^^^^^^^^^^^^^^^
  File "/home/rene/tempenis/pwndbg/pwndbg/lib/config.py", line 64, in __getattr__
    return getattr(self.value, name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'native_default'

If that is an issue, you can report it on https://github.com/pwndbg/pwndbg/issues
(Please don't forget to search if it hasn't been reported before)
To generate the report and open a browser, you may run `bugreport --run-browser`
PS: Pull requests are welcome
pwndbg>
```
### My setup

```
Platform: Linux-6.1.0-3-amd64-x86_64-with-glibc2.36
Gdb:      12.1
Python:   3.11.1 (main, Dec 31 2022, 10:23:59) [GCC 12.2.0]
Pwndbg:   1.1.1 build: 47e4e09
Capstone: 4.0.1024
Unicorn:  2.0.1
This GDB was configured as follows:
   configure --host=x86_64-linux-gnu --target=x86_64-linux-gnu
	     --with-auto-load-dir=$debugdir:$datadir/auto-load
	     --with-auto-load-safe-path=$debugdir:$datadir/auto-load
	     --with-expat
	     --with-gdb-datadir=/usr/share/gdb (relocatable)
	     --with-jit-reader-dir=/usr/lib/gdb (relocatable)
	     --without-libunwind-ia64
	     --with-lzma
	     --with-babeltrace
	     --with-intel-pt
	     --with-mpfr
	     --with-xxhash
	     --with-python=/usr (relocatable)
	     --with-python-libdir=/usr/lib (relocatable)
	     --with-debuginfod
	     --without-guile
	     --enable-source-highlight
	     --with-separate-debug-dir=/usr/lib/debug (relocatable)
	     --with-system-gdbinit=/etc/gdb/gdbinit
	     --with-system-gdbinit-dir=/etc/gdb/gdbinit.d

("Relocatable" means the directory can be moved with the GDB installation
tree, and GDB will still find it.)

```

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `pwndbg/commands/config.py`
Content:
```
1 """
2 Dumps all pwndbg-specific configuration points.
3 """
4 
5 import argparse
6 
7 import pwndbg.commands
8 import pwndbg.gdblib.config
9 from pwndbg.color import generateColorFunction
10 from pwndbg.color import ljust_colored
11 from pwndbg.color import strip
12 from pwndbg.color.message import hint
13 from pwndbg.commands import CommandCategory
14 
15 
16 def print_row(name, value, default, set_show_doc, ljust_optname, ljust_value, empty_space=6):
17     name = ljust_colored(name, ljust_optname + empty_space)
18     defval = extend_value_with_default(value, default)
19     defval = ljust_colored(defval, ljust_value + empty_space)
20     result = " ".join((name, defval, set_show_doc))
21     print(result)
22     return result
23 
24 
25 def extend_value_with_default(value, default):
26     if strip(value) != strip(default):
27         return "%s (%s)" % (value, default)
28     return value
29 
30 
31 def get_config_parameters(scope, filter_pattern):
32     values = [
33         v
34         for k, v in pwndbg.gdblib.config.params.items()
35         if isinstance(v, pwndbg.lib.config.Parameter) and v.scope == scope
36     ]
37 
38     if filter_pattern:
39         filter_pattern = filter_pattern.lower()
40         values = [
41             v
42             for v in values
43             if filter_pattern in v.name.lower() or filter_pattern in v.set_show_doc.lower()
44         ]
45 
46     return values
47 
48 
49 parser = argparse.ArgumentParser(description="Shows pwndbg-specific configuration.")
50 parser.add_argument(
51     "filter_pattern",
52     type=str,
53     nargs="?",
54     default=None,
55     help="Filter to apply to config parameters names/descriptions",
56 )
57 
58 
59 def display_config(filter_pattern: str, scope: str, has_file_command: bool = True) -> None:
60     values = get_config_parameters(scope, filter_pattern)
61 
62     if not values:
63         print(hint(f'No {scope} parameter found with filter "{filter_pattern}"'))
64         return
65 
66     longest_optname = max(map(len, [v.name for v in values]))
67     longest_value = max(
68         # We use `repr` here so the string values will be in quotes
69         map(len, [extend_value_with_default(repr(v.value), repr(v.default)) for v in values])
70     )
71 
72     header = print_row("Name", "Value", "Def", "Documentation", longest_optname, longest_value)
73     print("-" * (len(header)))
74 
75     for v in sorted(values):
76         if isinstance(v, pwndbg.color.theme.ColorParameter):
77             # Only the theme scope should use ColorParameter
78             assert scope == "theme"
79 
80             value = generateColorFunction(v.value)(v.value)
81             default = generateColorFunction(v.default)(v.default)
82         else:
83             value = repr(v.value)
84             default = repr(v.default)
85 
86         print_row(v.name, value, default, v.set_show_doc, longest_optname, longest_value)
87 
88     print(hint(f"You can set config variable with `set <{scope}-var> <value>`"))
89     if has_file_command:
90         print(
91             hint(
92                 f"You can generate configuration file using `{scope}file` "
93                 "- then put it in your .gdbinit after initializing pwndbg"
94             )
95         )
96 
97 
98 @pwndbg.commands.ArgparsedCommand(parser, category=CommandCategory.PWNDBG)
99 def config(filter_pattern) -> None:
100     display_config(filter_pattern, "config")
101 
102 
103 configfile_parser = argparse.ArgumentParser(
104     description="Generates a configuration file for the current pwndbg options."
105 )
106 configfile_parser.add_argument(
107     "--show-all", action="store_true", help="Display all configuration options."
108 )
109 
110 parser = argparse.ArgumentParser(description="Shows pwndbg-specific theme configuration.")
111 parser.add_argument(
112     "filter_pattern",
113     type=str,
114     nargs="?",
115     default=None,
116     help="Filter to apply to theme parameters names/descriptions",
117 )
118 
119 
120 @pwndbg.commands.ArgparsedCommand(parser, category=CommandCategory.PWNDBG)
121 def theme(filter_pattern) -> None:
122     display_config(filter_pattern, "theme")
123 
124 
125 @pwndbg.commands.ArgparsedCommand(configfile_parser, category=CommandCategory.PWNDBG)
126 def configfile(show_all=False) -> None:
127     configfile_print_scope("config", show_all)
128 
129 
130 themefile_parser = argparse.ArgumentParser(
131     description="Generates a configuration file for the current pwndbg theme options."
132 )
133 themefile_parser.add_argument(
134     "--show-all", action="store_true", help="Force displaying of all theme options."
135 )
136 
137 
138 @pwndbg.commands.ArgparsedCommand(themefile_parser, category=CommandCategory.PWNDBG)
139 def themefile(show_all=False) -> None:
140     configfile_print_scope("theme", show_all)
141 
142 
143 def configfile_print_scope(scope, show_all=False) -> None:
144     params = pwndbg.gdblib.config.get_params(scope)
145 
146     if not show_all:
147         params = list(filter(lambda p: p.is_changed, params))
148 
149     if params:
150         if not show_all:
151             print(hint("Showing only changed values:"))
152         for p in params:
153             print("# %s: %s" % (p.name, p.set_show_doc))
154             print("# default: %s" % p.native_default)
155             print("set %s %s" % (p.name, p.native_value))
156             print()
157     else:
158         print(hint("No changed values. To see current values use `%s`." % scope))
159
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/pwndbg/commands/config.py b/pwndbg/commands/config.py
--- a/pwndbg/commands/config.py
+++ b/pwndbg/commands/config.py
@@ -150,9 +150,15 @@
         if not show_all:
             print(hint("Showing only changed values:"))
         for p in params:
+            native_default = pwndbg.gdblib.config_mod.Parameter._value_to_gdb_native(
+                p.default, param_class=p.param_class
+            )
+            native_value = pwndbg.gdblib.config_mod.Parameter._value_to_gdb_native(
+                p.value, param_class=p.param_class
+            )
             print("# %s: %s" % (p.name, p.set_show_doc))
-            print("# default: %s" % p.native_default)
-            print("set %s %s" % (p.name, p.native_value))
+            print("# default: %s" % native_default)
+            print("set %s %s" % (p.name, native_value))
             print()
     else:
         print(hint("No changed values. To see current values use `%s`." % scope))

{"golden_diff": "diff --git a/pwndbg/commands/config.py b/pwndbg/commands/config.py\n--- a/pwndbg/commands/config.py\n+++ b/pwndbg/commands/config.py\n@@ -150,9 +150,15 @@\n         if not show_all:\n             print(hint(\"Showing only changed values:\"))\n         for p in params:\n+            native_default = pwndbg.gdblib.config_mod.Parameter._value_to_gdb_native(\n+                p.default, param_class=p.param_class\n+            )\n+            native_value = pwndbg.gdblib.config_mod.Parameter._value_to_gdb_native(\n+                p.value, param_class=p.param_class\n+            )\n             print(\"# %s: %s\" % (p.name, p.set_show_doc))\n-            print(\"# default: %s\" % p.native_default)\n-            print(\"set %s %s\" % (p.name, p.native_value))\n+            print(\"# default: %s\" % native_default)\n+            print(\"set %s %s\" % (p.name, native_value))\n             print()\n     else:\n         print(hint(\"No changed values. To see current values use `%s`.\" % scope))\n", "issue": "Generating configfile with modifed context-sections fails\n### Description\r\n\r\nTrying to generate a configfile when changing context-sections produces error.\r\n\r\n### Steps to reproduce\r\n\r\nHappens with no binary loaded\r\n\r\nGdb session history:\r\n```\r\nset context-sections ''\r\nconfigfile\r\n```\r\n\r\n\r\nWith exception-verbose on:\r\n```\r\npwndbg> configfile\r\nShowing only changed values:\r\n# context-sections: which context sections are displayed (controls order)\r\nTraceback (most recent call last):\r\n  File \"/home/rene/tempenis/pwndbg/pwndbg/commands/__init__.py\", line 184, in __call__\r\n    return self.function(*args, **kwargs)\r\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/home/rene/tempenis/pwndbg/pwndbg/commands/config.py\", line 127, in configfile\r\n    configfile_print_scope(\"config\", show_all)\r\n  File \"/home/rene/tempenis/pwndbg/pwndbg/commands/config.py\", line 154, in configfile_print_scope\r\n    print(\"# default: %s\" % p.native_default)\r\n                            ^^^^^^^^^^^^^^^^\r\n  File \"/home/rene/tempenis/pwndbg/pwndbg/lib/config.py\", line 64, in __getattr__\r\n    return getattr(self.value, name)\r\n           ^^^^^^^^^^^^^^^^^^^^^^^^^\r\nAttributeError: 'str' object has no attribute 'native_default'\r\n\r\nIf that is an issue, you can report it on https://github.com/pwndbg/pwndbg/issues\r\n(Please don't forget to search if it hasn't been reported before)\r\nTo generate the report and open a browser, you may run `bugreport --run-browser`\r\nPS: Pull requests are welcome\r\npwndbg>\r\n```\r\n### My setup\r\n\r\n```\r\nPlatform: Linux-6.1.0-3-amd64-x86_64-with-glibc2.36\r\nGdb:      12.1\r\nPython:   3.11.1 (main, Dec 31 2022, 10:23:59) [GCC 12.2.0]\r\nPwndbg:   1.1.1 build: 47e4e09\r\nCapstone: 4.0.1024\r\nUnicorn:  2.0.1\r\nThis GDB was configured as follows:\r\n   configure --host=x86_64-linux-gnu --target=x86_64-linux-gnu\r\n\t     --with-auto-load-dir=$debugdir:$datadir/auto-load\r\n\t     --with-auto-load-safe-path=$debugdir:$datadir/auto-load\r\n\t     --with-expat\r\n\t     --with-gdb-datadir=/usr/share/gdb (relocatable)\r\n\t     --with-jit-reader-dir=/usr/lib/gdb (relocatable)\r\n\t     --without-libunwind-ia64\r\n\t     --with-lzma\r\n\t     --with-babeltrace\r\n\t     --with-intel-pt\r\n\t     --with-mpfr\r\n\t     --with-xxhash\r\n\t     --with-python=/usr (relocatable)\r\n\t     --with-python-libdir=/usr/lib (relocatable)\r\n\t     --with-debuginfod\r\n\t     --without-guile\r\n\t     --enable-source-highlight\r\n\t     --with-separate-debug-dir=/usr/lib/debug (relocatable)\r\n\t     --with-system-gdbinit=/etc/gdb/gdbinit\r\n\t     --with-system-gdbinit-dir=/etc/gdb/gdbinit.d\r\n\r\n(\"Relocatable\" means the directory can be moved with the GDB installation\r\ntree, and GDB will still find it.)\r\n\r\n```\n", "before_files": [{"content": "\"\"\"\nDumps all pwndbg-specific configuration points.\n\"\"\"\n\nimport argparse\n\nimport pwndbg.commands\nimport pwndbg.gdblib.config\nfrom pwndbg.color import generateColorFunction\nfrom pwndbg.color import ljust_colored\nfrom pwndbg.color import strip\nfrom pwndbg.color.message import hint\nfrom pwndbg.commands import CommandCategory\n\n\ndef print_row(name, value, default, set_show_doc, ljust_optname, ljust_value, empty_space=6):\n    name = ljust_colored(name, ljust_optname + empty_space)\n    defval = extend_value_with_default(value, default)\n    defval = ljust_colored(defval, ljust_value + empty_space)\n    result = \" \".join((name, defval, set_show_doc))\n    print(result)\n    return result\n\n\ndef extend_value_with_default(value, default):\n    if strip(value) != strip(default):\n        return \"%s (%s)\" % (value, default)\n    return value\n\n\ndef get_config_parameters(scope, filter_pattern):\n    values = [\n        v\n        for k, v in pwndbg.gdblib.config.params.items()\n        if isinstance(v, pwndbg.lib.config.Parameter) and v.scope == scope\n    ]\n\n    if filter_pattern:\n        filter_pattern = filter_pattern.lower()\n        values = [\n            v\n            for v in values\n            if filter_pattern in v.name.lower() or filter_pattern in v.set_show_doc.lower()\n        ]\n\n    return values\n\n\nparser = argparse.ArgumentParser(description=\"Shows pwndbg-specific configuration.\")\nparser.add_argument(\n    \"filter_pattern\",\n    type=str,\n    nargs=\"?\",\n    default=None,\n    help=\"Filter to apply to config parameters names/descriptions\",\n)\n\n\ndef display_config(filter_pattern: str, scope: str, has_file_command: bool = True) -> None:\n    values = get_config_parameters(scope, filter_pattern)\n\n    if not values:\n        print(hint(f'No {scope} parameter found with filter \"{filter_pattern}\"'))\n        return\n\n    longest_optname = max(map(len, [v.name for v in values]))\n    longest_value = max(\n        # We use `repr` here so the string values will be in quotes\n        map(len, [extend_value_with_default(repr(v.value), repr(v.default)) for v in values])\n    )\n\n    header = print_row(\"Name\", \"Value\", \"Def\", \"Documentation\", longest_optname, longest_value)\n    print(\"-\" * (len(header)))\n\n    for v in sorted(values):\n        if isinstance(v, pwndbg.color.theme.ColorParameter):\n            # Only the theme scope should use ColorParameter\n            assert scope == \"theme\"\n\n            value = generateColorFunction(v.value)(v.value)\n            default = generateColorFunction(v.default)(v.default)\n        else:\n            value = repr(v.value)\n            default = repr(v.default)\n\n        print_row(v.name, value, default, v.set_show_doc, longest_optname, longest_value)\n\n    print(hint(f\"You can set config variable with `set <{scope}-var> <value>`\"))\n    if has_file_command:\n        print(\n            hint(\n                f\"You can generate configuration file using `{scope}file` \"\n                \"- then put it in your .gdbinit after initializing pwndbg\"\n            )\n        )\n\n\n@pwndbg.commands.ArgparsedCommand(parser, category=CommandCategory.PWNDBG)\ndef config(filter_pattern) -> None:\n    display_config(filter_pattern, \"config\")\n\n\nconfigfile_parser = argparse.ArgumentParser(\n    description=\"Generates a configuration file for the current pwndbg options.\"\n)\nconfigfile_parser.add_argument(\n    \"--show-all\", action=\"store_true\", help=\"Display all configuration options.\"\n)\n\nparser = argparse.ArgumentParser(description=\"Shows pwndbg-specific theme configuration.\")\nparser.add_argument(\n    \"filter_pattern\",\n    type=str,\n    nargs=\"?\",\n    default=None,\n    help=\"Filter to apply to theme parameters names/descriptions\",\n)\n\n\n@pwndbg.commands.ArgparsedCommand(parser, category=CommandCategory.PWNDBG)\ndef theme(filter_pattern) -> None:\n    display_config(filter_pattern, \"theme\")\n\n\n@pwndbg.commands.ArgparsedCommand(configfile_parser, category=CommandCategory.PWNDBG)\ndef configfile(show_all=False) -> None:\n    configfile_print_scope(\"config\", show_all)\n\n\nthemefile_parser = argparse.ArgumentParser(\n    description=\"Generates a configuration file for the current pwndbg theme options.\"\n)\nthemefile_parser.add_argument(\n    \"--show-all\", action=\"store_true\", help=\"Force displaying of all theme options.\"\n)\n\n\n@pwndbg.commands.ArgparsedCommand(themefile_parser, category=CommandCategory.PWNDBG)\ndef themefile(show_all=False) -> None:\n    configfile_print_scope(\"theme\", show_all)\n\n\ndef configfile_print_scope(scope, show_all=False) -> None:\n    params = pwndbg.gdblib.config.get_params(scope)\n\n    if not show_all:\n        params = list(filter(lambda p: p.is_changed, params))\n\n    if params:\n        if not show_all:\n            print(hint(\"Showing only changed values:\"))\n        for p in params:\n            print(\"# %s: %s\" % (p.name, p.set_show_doc))\n            print(\"# default: %s\" % p.native_default)\n            print(\"set %s %s\" % (p.name, p.native_value))\n            print()\n    else:\n        print(hint(\"No changed values. To see current values use `%s`.\" % scope))\n", "path": "pwndbg/commands/config.py"}], "after_files": [{"content": "\"\"\"\nDumps all pwndbg-specific configuration points.\n\"\"\"\n\nimport argparse\n\nimport pwndbg.commands\nimport pwndbg.gdblib.config\nfrom pwndbg.color import generateColorFunction\nfrom pwndbg.color import ljust_colored\nfrom pwndbg.color import strip\nfrom pwndbg.color.message import hint\nfrom pwndbg.commands import CommandCategory\n\n\ndef print_row(name, value, default, set_show_doc, ljust_optname, ljust_value, empty_space=6):\n    name = ljust_colored(name, ljust_optname + empty_space)\n    defval = extend_value_with_default(value, default)\n    defval = ljust_colored(defval, ljust_value + empty_space)\n    result = \" \".join((name, defval, set_show_doc))\n    print(result)\n    return result\n\n\ndef extend_value_with_default(value, default):\n    if strip(value) != strip(default):\n        return \"%s (%s)\" % (value, default)\n    return value\n\n\ndef get_config_parameters(scope, filter_pattern):\n    values = [\n        v\n        for k, v in pwndbg.gdblib.config.params.items()\n        if isinstance(v, pwndbg.lib.config.Parameter) and v.scope == scope\n    ]\n\n    if filter_pattern:\n        filter_pattern = filter_pattern.lower()\n        values = [\n            v\n            for v in values\n            if filter_pattern in v.name.lower() or filter_pattern in v.set_show_doc.lower()\n        ]\n\n    return values\n\n\nparser = argparse.ArgumentParser(description=\"Shows pwndbg-specific configuration.\")\nparser.add_argument(\n    \"filter_pattern\",\n    type=str,\n    nargs=\"?\",\n    default=None,\n    help=\"Filter to apply to config parameters names/descriptions\",\n)\n\n\ndef display_config(filter_pattern: str, scope: str, has_file_command: bool = True) -> None:\n    values = get_config_parameters(scope, filter_pattern)\n\n    if not values:\n        print(hint(f'No {scope} parameter found with filter \"{filter_pattern}\"'))\n        return\n\n    longest_optname = max(map(len, [v.name for v in values]))\n    longest_value = max(\n        # We use `repr` here so the string values will be in quotes\n        map(len, [extend_value_with_default(repr(v.value), repr(v.default)) for v in values])\n    )\n\n    header = print_row(\"Name\", \"Value\", \"Def\", \"Documentation\", longest_optname, longest_value)\n    print(\"-\" * (len(header)))\n\n    for v in sorted(values):\n        if isinstance(v, pwndbg.color.theme.ColorParameter):\n            # Only the theme scope should use ColorParameter\n            assert scope == \"theme\"\n\n            value = generateColorFunction(v.value)(v.value)\n            default = generateColorFunction(v.default)(v.default)\n        else:\n            value = repr(v.value)\n            default = repr(v.default)\n\n        print_row(v.name, value, default, v.set_show_doc, longest_optname, longest_value)\n\n    print(hint(f\"You can set config variable with `set <{scope}-var> <value>`\"))\n    if has_file_command:\n        print(\n            hint(\n                f\"You can generate configuration file using `{scope}file` \"\n                \"- then put it in your .gdbinit after initializing pwndbg\"\n            )\n        )\n\n\n@pwndbg.commands.ArgparsedCommand(parser, category=CommandCategory.PWNDBG)\ndef config(filter_pattern) -> None:\n    display_config(filter_pattern, \"config\")\n\n\nconfigfile_parser = argparse.ArgumentParser(\n    description=\"Generates a configuration file for the current pwndbg options.\"\n)\nconfigfile_parser.add_argument(\n    \"--show-all\", action=\"store_true\", help=\"Display all configuration options.\"\n)\n\nparser = argparse.ArgumentParser(description=\"Shows pwndbg-specific theme configuration.\")\nparser.add_argument(\n    \"filter_pattern\",\n    type=str,\n    nargs=\"?\",\n    default=None,\n    help=\"Filter to apply to theme parameters names/descriptions\",\n)\n\n\n@pwndbg.commands.ArgparsedCommand(parser, category=CommandCategory.PWNDBG)\ndef theme(filter_pattern) -> None:\n    display_config(filter_pattern, \"theme\")\n\n\n@pwndbg.commands.ArgparsedCommand(configfile_parser, category=CommandCategory.PWNDBG)\ndef configfile(show_all=False) -> None:\n    configfile_print_scope(\"config\", show_all)\n\n\nthemefile_parser = argparse.ArgumentParser(\n    description=\"Generates a configuration file for the current pwndbg theme options.\"\n)\nthemefile_parser.add_argument(\n    \"--show-all\", action=\"store_true\", help=\"Force displaying of all theme options.\"\n)\n\n\n@pwndbg.commands.ArgparsedCommand(themefile_parser, category=CommandCategory.PWNDBG)\ndef themefile(show_all=False) -> None:\n    configfile_print_scope(\"theme\", show_all)\n\n\ndef configfile_print_scope(scope, show_all=False) -> None:\n    params = pwndbg.gdblib.config.get_params(scope)\n\n    if not show_all:\n        params = list(filter(lambda p: p.is_changed, params))\n\n    if params:\n        if not show_all:\n            print(hint(\"Showing only changed values:\"))\n        for p in params:\n            native_default = pwndbg.gdblib.config_mod.Parameter._value_to_gdb_native(\n                p.default, param_class=p.param_class\n            )\n            native_value = pwndbg.gdblib.config_mod.Parameter._value_to_gdb_native(\n                p.value, param_class=p.param_class\n            )\n            print(\"# %s: %s\" % (p.name, p.set_show_doc))\n            print(\"# default: %s\" % native_default)\n            print(\"set %s %s\" % (p.name, native_value))\n            print()\n    else:\n        print(hint(\"No changed values. To see current values use `%s`.\" % scope))\n", "path": "pwndbg/commands/config.py"}]}