* [COMMITTED PATCH] infcmd.c (jump_command): Minor simplification.
@ 2014-12-18 9:38 Doug Evans
0 siblings, 0 replies; only message in thread
From: Doug Evans @ 2014-12-18 9:38 UTC (permalink / raw)
To: gdb-patches
Hi.
A minor simplification, that stands by itself, but is also
preparatory work for looking up primitive types as symbols.
https://sourceware.org/ml/gdb-patches/2014-12/msg00169.html
2014-12-18 Doug Evans <xdje42@gmail.com>
* infcmd.c (jump_command): Minor simplification.
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? ")))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-12-18 9:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-18 9:38 [COMMITTED PATCH] infcmd.c (jump_command): Minor simplification Doug Evans
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).