diff options
author | Joel Brobecker <brobecker@adacore.com> | 2014-06-02 08:34:25 -0700 |
---|---|---|
committer | Joel Brobecker <brobecker@adacore.com> | 2014-06-02 08:39:02 -0700 |
commit | 486ef3b9331303f5913b3c8cbf390505cbf72038 (patch) | |
tree | 19cf48c0300b0119e6ac28776b2c678e2471901d /gdb/ChangeLog | |
parent | 230cd560c88f323e2c3e0ed9186e134ef70369e0 (diff) | |
download | gdb-486ef3b9331303f5913b3c8cbf390505cbf72038.zip gdb-486ef3b9331303f5913b3c8cbf390505cbf72038.tar.gz gdb-486ef3b9331303f5913b3c8cbf390505cbf72038.tar.bz2 |
simplify substitute_path_rule_matches using filename_ncmp
At the time this function was written, there was no filename_ncmp,
only FILENAME_CMP. So, in order to do an n-cmp, we had to make a local
copy of the first n characters of our string and use that to perform
the comparison. This patch simplifies the function's implementation,
now that we have filename_ncmp.
gdb/ChangeLog:
* source.c (substitute_path_rule_matches): Simplify using
filename_ncmp instead of FILENAME_CMP.
Tested on x86_64-linux.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index aa56a10..6faa689 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2014-06-02 Joel Brobecker <brobecker@adacore.com> + * source.c (substitute_path_rule_matches): Simplify using + filename_ncmp instead of FILENAME_CMP. + +2014-06-02 Joel Brobecker <brobecker@adacore.com> + * source.c (substitute_path_rule_matches): Remove trailing spaces. 2014-06-01 Ludovic Courtès <ludo@gnu.org> |