From: Pedro Alves Date: Thu, 18 Feb 2010 19:17:00 +0000 (+0000) Subject: 2010-02-18 Harald Koenig X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=202b96c1a6b0cd635006a5773ac6e6c820c54bba;p=binutils-gdb.git 2010-02-18 Harald Koenig * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'. * symfile.c (symfile_map_offsets_to_segments): Fix assertion. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d8abca5593f..625355ea6e7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-02-18 Harald Koenig + + * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'. + * symfile.c (symfile_map_offsets_to_segments): Fix assertion. + 2010-02-17 Tom Tromey * NEWS: Add Python API Improvements section. diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index bdffd2313f9..9d9e3da2d83 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -190,7 +190,7 @@ void mi_cmd_exec_jump (char *args, char **argv, int argc) { /* FIXME: Should call a libgdb function, not a cli wrapper. */ - return mi_execute_async_cli_command ("jump", argv, argc); + mi_execute_async_cli_command ("jump", argv, argc); } static int diff --git a/gdb/symfile.c b/gdb/symfile.c index 6f455a21865..53266a78c5f 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -3715,7 +3715,7 @@ symfile_map_offsets_to_segments (bfd *abfd, struct symfile_segment_data *data, /* It doesn't make sense to call this function unless you have some segment base addresses. */ - gdb_assert (segment_bases > 0); + gdb_assert (num_segment_bases > 0); /* If we do not have segment mappings for the object file, we can not relocate it by segments. */