[patch] minor patch to constify lm_addr_check

Aleksandar Ristovski aristovski@qnx.com
Mon Apr 8 19:48:00 GMT 2013


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)
      {



More information about the Gdb-patches mailing list