2002-04-04 Daniel Jacobowitz <drow@mvista.com>
authorDaniel Jacobowitz <drow@false.org>
Thu, 4 Apr 2002 20:23:36 +0000 (20:23 +0000)
committerDaniel Jacobowitz <drow@false.org>
Thu, 4 Apr 2002 20:23:36 +0000 (20:23 +0000)
        * mi-cmd-disas.c (mi_cmd_disassemble): Skip end-of-function
        markers in the line table.

gdb/mi/ChangeLog
gdb/mi/mi-cmd-disas.c

index 8908a7a9674239e29ed91f3526645e31297584d2..25d2313bdc2752ca520c32b238844d76c1b9bf70 100644 (file)
@@ -1,3 +1,8 @@
+2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
+
+       * mi-cmd-disas.c (mi_cmd_disassemble): Skip end-of-function
+       markers in the line table.
+
 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
 
        * mi-main.c (XMALLOC): Delete macro.
index afaf31c4372f52a9c837ee5b682611d70ab06e70..c155fc741a2eaa81405f6e6ac4d77de9fc57e1a2 100644 (file)
@@ -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;