aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-frv.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-31 02:47:37 -0700
committerTom Tromey <tromey@redhat.com>2014-01-15 11:02:23 -0700
commitd56e56aaa79d7d65e9d969a7bf6795f2612d34ca (patch)
tree407bcd7351d9215ebc9823eb78cff60ae2c8b5f1 /gdb/solib-frv.c
parent33a97bbe01566b42a9e6a0466814c2fb46d0c368 (diff)
downloadgdb-d56e56aaa79d7d65e9d969a7bf6795f2612d34ca.zip
gdb-d56e56aaa79d7d65e9d969a7bf6795f2612d34ca.tar.gz
gdb-d56e56aaa79d7d65e9d969a7bf6795f2612d34ca.tar.bz2
change solib-frv to use entry_point_address_query
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.
Diffstat (limited to 'gdb/solib-frv.c')
-rw-r--r--gdb/solib-frv.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gdb/solib-frv.c b/gdb/solib-frv.c
index 71f2ebe..d257eea 100644
--- a/gdb/solib-frv.c
+++ b/gdb/solib-frv.c
@@ -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;
}