This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[patch] minor patch to constify lm_addr_check
- From: Aleksandar Ristovski <aristovski at qnx dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 08 Apr 2013 09:50:00 -0400
- Subject: [patch] minor patch to constify lm_addr_check
This has already been seen in the other patches, but I want it committed
before the rest so I can finish with const-correct use of lm_addr_check.
Thanks,
Aleksandar
Add const to lm_addr_check.
* solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c
index 601e34d..bb2a4e9 100644
--- a/gdb/solib-svr4.c
+++ b/gdb/solib-svr4.c
@@ -189,7 +189,7 @@ has_lm_dynamic_from_link_map (void)
}
static CORE_ADDR
-lm_addr_check (struct so_list *so, bfd *abfd)
+lm_addr_check (const struct so_list *so, bfd *abfd)
{
if (!so->lm_info->l_addr_p)
{