change solib-frv to use entry_point_address_query
authorTom Tromey <tromey@redhat.com>
Tue, 31 Dec 2013 09:47:37 +0000 (02:47 -0700)
committerTom Tromey <tromey@redhat.com>
Wed, 15 Jan 2014 18:02:23 +0000 (11:02 -0700)
This is just a minor cleanup in advance of some other changes, that
modifies solib-frv.c to use entry_point_address_query.  I don't have a
good way to test this but I think it is obviously correct.

2014-01-15  Tom Tromey  <tromey@redhat.com>

* solib-frv.c (enable_break): Use entry_point_address_query.

gdb/ChangeLog
gdb/solib-frv.c

index 055911da294c97393f6abce5f853f8cf813c712d..f1b12771e69dda120f2bf0c96c3676b56a7c919d 100644 (file)
@@ -1,3 +1,7 @@
+2014-01-15  Tom Tromey  <tromey@redhat.com>
+
+       * solib-frv.c (enable_break): Use entry_point_address_query.
+
 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
 
        * NEWS: Add note on improved process record-replay on
index 71f2ebe05e9f932070de71b5128ed09742f558e8..d257eea55172d536fe37884525131261a2bb74d7 100644 (file)
@@ -721,6 +721,7 @@ static int
 enable_break (void)
 {
   asection *interp_sect;
+  CORE_ADDR entry_point;
 
   if (symfile_objfile == NULL)
     {
@@ -730,7 +731,7 @@ enable_break (void)
       return 0;
     }
 
-  if (!symfile_objfile->ei.entry_point_p)
+  if (!entry_point_address_query (&entry_point))
     {
       if (solib_frv_debug)
        fprintf_unfiltered (gdb_stdlog,
@@ -751,15 +752,13 @@ enable_break (void)
       return 0;
     }
 
-  create_solib_event_breakpoint (target_gdbarch (),
-                                symfile_objfile->ei.entry_point);
+  create_solib_event_breakpoint (target_gdbarch (), entry_point);
 
   if (solib_frv_debug)
     fprintf_unfiltered (gdb_stdlog,
                        "enable_break: solib event breakpoint "
                        "placed at entry point: %s\n",
-                       hex_string_custom (symfile_objfile->ei.entry_point,
-                                          8));
+                       hex_string_custom (entry_point, 8));
   return 1;
 }