aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbarch_components.py
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2025-03-06 10:09:38 -0700
committerTom Tromey <tromey@adacore.com>2025-03-06 11:25:45 -0700
commit78dd36b8f21a05337ebb1888cddd34dcabf261d0 (patch)
tree28537162a5fce41640872401e424a6d2d8eb658e /gdb/gdbarch_components.py
parent8d95753834490ae778a261305d8942c762160940 (diff)
downloadgdb-78dd36b8f21a05337ebb1888cddd34dcabf261d0.zip
gdb-78dd36b8f21a05337ebb1888cddd34dcabf261d0.tar.gz
gdb-78dd36b8f21a05337ebb1888cddd34dcabf261d0.tar.bz2
Use 'const' in some gdbarch methods
This changes a couple of gdbarch methods to use 'const' for an "asymbol *" parameter. These methods shouldn't be modifying the underlying symbol in the BFD. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/gdbarch_components.py')
-rw-r--r--gdb/gdbarch_components.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/gdbarch_components.py b/gdb/gdbarch_components.py
index e0fd74e..cd0a894 100644
--- a/gdb/gdbarch_components.py
+++ b/gdb/gdbarch_components.py
@@ -1506,7 +1506,7 @@ the main symbol table and DWARF-2 records.
""",
type="void",
name="elf_make_msymbol_special",
- params=[("asymbol *", "sym"), ("struct minimal_symbol *", "msym")],
+ params=[("const asymbol *", "sym"), ("struct minimal_symbol *", "msym")],
predicate=True,
)
@@ -2126,7 +2126,7 @@ Record architecture-specific information from the symbol table.
""",
type="void",
name="record_special_symbol",
- params=[("struct objfile *", "objfile"), ("asymbol *", "sym")],
+ params=[("struct objfile *", "objfile"), ("const asymbol *", "sym")],
predicate=True,
)