aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli/cli-cmds.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-08-06 18:28:15 +0000
committerTom Tromey <tromey@redhat.com>2012-08-06 18:28:15 +0000
commit4979d7f0a6644db8a512fdf29a6a9df8d258969c (patch)
treeaf61d90a4792729cf9e8cbf3d8a6cd8d6293eafd /gdb/cli/cli-cmds.c
parentf3c8a52aceef30de05174ef7232578535a9cb32a (diff)
downloadgdb-4979d7f0a6644db8a512fdf29a6a9df8d258969c.zip
gdb-4979d7f0a6644db8a512fdf29a6a9df8d258969c.tar.gz
gdb-4979d7f0a6644db8a512fdf29a6a9df8d258969c.tar.bz2
PR cli/14392:
* cli/cli-cmds.c (list_command): Filter 'sals_end'.
Diffstat (limited to 'gdb/cli/cli-cmds.c')
-rw-r--r--gdb/cli/cli-cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c
index d9849ca..6595d5b 100644
--- a/gdb/cli/cli-cmds.c
+++ b/gdb/cli/cli-cmds.c
@@ -959,7 +959,7 @@ list_command (char *arg, int from_tty)
else
sals_end = decode_line_1 (&arg1, DECODE_LINE_LIST_MODE,
sal.symtab, sal.line);
- filter_sals (&sals);
+ filter_sals (&sals_end);
if (sals_end.nelts == 0)
return;
if (sals_end.nelts > 1)