infcmd.c (jump_command): Minor simplification.

gdb/ChangeLog:

	* infcmd.c (jump_command): Minor simplification.
This commit is contained in:
Doug Evans 2014-12-18 01:32:59 -08:00
parent 46b0da1738
commit 253342b8e6
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,7 @@
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

View File

@ -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? ")))