aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi/mi-cmd-disas.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2002-04-04 20:23:36 +0000
committerDaniel Jacobowitz <drow@false.org>2002-04-04 20:23:36 +0000
commitb0c0ea31a1bacf1aa7209729c840b606a275983a (patch)
treed8f6383690bc50e1cc731fad3f9dabc64ec1d008 /gdb/mi/mi-cmd-disas.c
parente2d34d7de2eb0bf5be827ffcf976ae5f9524e901 (diff)
downloadgdb-b0c0ea31a1bacf1aa7209729c840b606a275983a.zip
gdb-b0c0ea31a1bacf1aa7209729c840b606a275983a.tar.gz
gdb-b0c0ea31a1bacf1aa7209729c840b606a275983a.tar.bz2
2002-04-04 Daniel Jacobowitz <drow@mvista.com>
* mi-cmd-disas.c (mi_cmd_disassemble): Skip end-of-function markers in the line table.
Diffstat (limited to 'gdb/mi/mi-cmd-disas.c')
-rw-r--r--gdb/mi/mi-cmd-disas.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/mi/mi-cmd-disas.c b/gdb/mi/mi-cmd-disas.c
index afaf31c..c155fc7 100644
--- a/gdb/mi/mi-cmd-disas.c
+++ b/gdb/mi/mi-cmd-disas.c
@@ -332,6 +332,10 @@ mi_cmd_disassemble (char *command, char **argv, int argc)
&& le[i].pc == le[i + 1].pc)
continue; /* Ignore duplicates */
+ /* Skip any end-of-function markers. */
+ if (le[i].line == 0)
+ continue;
+
mle[newlines].line = le[i].line;
if (le[i].line > le[i + 1].line)
out_of_order = 1;