diff options
author | Doug Evans <xdje42@gmail.com> | 2014-12-18 01:32:59 -0800 |
---|---|---|
committer | Doug Evans <xdje42@gmail.com> | 2014-12-18 01:32:59 -0800 |
commit | 253342b8e6fbd24249fb84eebc706d923f08406f (patch) | |
tree | 56bb8de24a2940f0b15f9464ed7d5d1a00529ab8 | |
parent | 46b0da1738df4a49025f1674a67cd841688dd3d9 (diff) | |
download | fsf-binutils-gdb-253342b8e6fbd24249fb84eebc706d923f08406f.zip fsf-binutils-gdb-253342b8e6fbd24249fb84eebc706d923f08406f.tar.gz fsf-binutils-gdb-253342b8e6fbd24249fb84eebc706d923f08406f.tar.bz2 |
infcmd.c (jump_command): Minor simplification.
gdb/ChangeLog:
* infcmd.c (jump_command): Minor simplification.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/infcmd.c | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c7b4b21..4c87d95 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2014-12-18 Doug Evans <xdje42@gmail.com> + * infcmd.c (jump_command): Minor simplification. + +2014-12-18 Doug Evans <xdje42@gmail.com> + * language.c (language_lookup_primitive_type): Renamed from language_lookup_primitive_type_by_name. All callers updated. diff --git a/gdb/infcmd.c b/gdb/infcmd.c index de0d24d..9d0a527 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -1199,9 +1199,12 @@ jump_command (char *arg, int from_tty) if (sfn != NULL) { + struct obj_section *section; + fixup_symbol_section (sfn, 0); - if (section_is_overlay (SYMBOL_OBJ_SECTION (SYMBOL_OBJFILE (sfn), sfn)) && - !section_is_mapped (SYMBOL_OBJ_SECTION (SYMBOL_OBJFILE (sfn), sfn))) + section = SYMBOL_OBJ_SECTION (SYMBOL_OBJFILE (sfn), sfn); + if (section_is_overlay (section) + && !section_is_mapped (section)) { if (!query (_("WARNING!!! Destination is in " "unmapped overlay! Jump anyway? "))) |