From b0c0ea31a1bacf1aa7209729c840b606a275983a Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Thu, 4 Apr 2002 20:23:36 +0000 Subject: [PATCH] 2002-04-04 Daniel Jacobowitz * mi-cmd-disas.c (mi_cmd_disassemble): Skip end-of-function markers in the line table. --- gdb/mi/ChangeLog | 5 +++++ gdb/mi/mi-cmd-disas.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gdb/mi/ChangeLog b/gdb/mi/ChangeLog index 8908a7a9674..25d2313bdc2 100644 --- a/gdb/mi/ChangeLog +++ b/gdb/mi/ChangeLog @@ -1,3 +1,8 @@ +2002-04-04 Daniel Jacobowitz + + * mi-cmd-disas.c (mi_cmd_disassemble): Skip end-of-function + markers in the line table. + 2002-03-15 Andrew Cagney * mi-main.c (XMALLOC): Delete macro. diff --git a/gdb/mi/mi-cmd-disas.c b/gdb/mi/mi-cmd-disas.c index afaf31c4372..c155fc741a2 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; -- 2.30.2