This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]