projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da2bb56
)
* cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
author
Tom Tromey
<tromey@redhat.com>
Wed, 22 Aug 2012 14:24:05 +0000
(14:24 +0000)
committer
Tom Tromey
<tromey@redhat.com>
Wed, 22 Aug 2012 14:24:05 +0000
(14:24 +0000)
gdb/ChangeLog
patch
|
blob
|
history
gdb/cli/cli-cmds.c
patch
|
blob
|
history
diff --git
a/gdb/ChangeLog
b/gdb/ChangeLog
index bef6d8cbf28c6dc7f19f2d5d6e3f3ab8ff386452..7dcdbedf497ed9dcb2ad72e0ae669197c5ae90be 100644
(file)
--- a/
gdb/ChangeLog
+++ b/
gdb/ChangeLog
@@
-1,3
+1,7
@@
+2012-08-22 Tom Tromey <tromey@redhat.com>
+
+ * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
+
2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
* symfile.c (allocate_symtab): Use host_address_to_string
diff --git
a/gdb/cli/cli-cmds.c
b/gdb/cli/cli-cmds.c
index 2a808034027e7dbfdfb4bd1343c0f89a2067871d..5d8a124ab26c9d8240f63c75aba36e4e5b63db44 100644
(file)
--- a/
gdb/cli/cli-cmds.c
+++ b/
gdb/cli/cli-cmds.c
@@
-1534,13
+1534,14
@@
filter_sals (struct symtabs_and_lines *sals)
++out;
}
}
- sals->nelts = out;
if (sals->nelts == 0)
{
xfree (sals->sals);
sals->sals = NULL;
}
+ else
+ sals->nelts = out;
}
static void