[Mono-bugs] [Bug 81555][Nor] Changed - repeated "list" commands don't match gdb

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed May 9 11:45:26 EDT 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by joeshaw at novell.com.

http://bugzilla.ximian.com/show_bug.cgi?id=81555

--- shadow/81555	2007-05-09 10:42:01.000000000 -0400
+++ shadow/81555.tmp.31184	2007-05-09 11:45:26.000000000 -0400
@@ -131,6 +131,58 @@
 
 The same behavior occurs with "list -" to go backward.
 
 ------- Additional Comments From martin at ximian.com  2007-05-09 10:42 -------
 If you type `list' a second time, it's a new command and thus it
 starts again.
+
+------- Additional Comments From joeshaw at novell.com  2007-05-09 11:45 -------
+This doesn't match gdb behavior, and since mdb otherwise "feels" a lot
+like gdb, I think this is a bug:
+
+(gdb) list
+2       #include <sys/types.h>
+3
+4       int
+5       main (int argc, char *argv[])
+6       {
+7               printf ("hello world\n");
+8               printf ("UID: %d\n", getuid ());
+9               printf ("Effective UID: %d\n", geteuid ());
+10
+11              return 0;
+(gdb) list
+12      }
+(gdb)
+
+(gdb) list -
+2       #include <sys/types.h>
+3
+4       int
+5       main (int argc, char *argv[])
+6       {
+7               printf ("hello world\n");
+8               printf ("UID: %d\n", getuid ());
+9               printf ("Effective UID: %d\n", geteuid ());
+10
+11              return 0;
+(gdb) list -
+1       #include <unistd.h>
+(gdb)
+
+And lastly, the help:
+List specified function or line.
+With no argument, lists ten more lines after or around previous listing.
+"list -" lists the ten lines before a previous ten-line listing.
+One argument specifies a line, and ten lines are listed around that line.
+Two arguments with comma between specify starting and ending lines to
+list.
+Lines can be specified in these ways:
+  LINENUM, to list around that line in current file,
+  FILE:LINENUM, to list around that line in that file,
+  FUNCTION, to list around beginning of that function,
+  FILE:FUNCTION, to distinguish among like-named static functions.
+  *ADDRESS, to list around the line containing that address.
+With two args if one is empty it stands for ten lines away from the
+other arg.
+
+


More information about the mono-bugs mailing list