This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb and binutils branch master updated. 1e2ccb612d2b61014bb7e9fef3eb58e4947b9d2b


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".

The branch, master has been updated
       via  1e2ccb612d2b61014bb7e9fef3eb58e4947b9d2b (commit)
      from  c6ec5ab23a17b972c7c78ac66f3685b57db74946 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1e2ccb612d2b61014bb7e9fef3eb58e4947b9d2b

commit 1e2ccb612d2b61014bb7e9fef3eb58e4947b9d2b
Author: Brad Mouring <bmouring@ni.com>
Date:   Mon Jun 2 15:55:10 2014 -0500

    gdb/source.c: Fix matching path substitute rule listing
    
    The check for the source (or "from") directory snippet in listing
    matching path substitution rules currently will not match anything
    other than a direct match of the "from" field in a substitution rule,
    resulting in the incorrect behavior below:
    
    ...
    (gdb) set substitute-path /a/path /another/path
    (gdb) show substitute-path
    List of all source path substitution rules:
      `/a/path' -> `/another/path'.
    (gdb) show substitute-path /a/path/to/a/file.ext
    Source path substitution rule matching `/a/path/to/a/file.ext':
    (gdb) show substitute-path /a/path
    Source path substitution rule matching `/a/path':
      `/a/path' -> `/another/path'.
    ...
    
    This change effects the following behavior by (sanely) checking
    with the length of the "from" portion of a rule and ensuring that
    the next character of the path considered for substitution is a path
    delimiter (or NULL). With this change, the following behavior is
    garnered:
    ...
    (gdb) set substitute-path /a/path /another/path
    (gdb) show substitute-path
    List of all source path substitution rules:
      `/a/path' -> `/another/path'.
    (gdb) show substitute-path /a/path/to/a/file.ext
    Source path substitution rule matching `/a/path/to/a/file.ext':
      `/a/path' -> `/another/path'.
    (gdb) show substitute-path /a/pathological/case/that/should/fail.err
    Source path substitution rule matching `/a/pathological/case/that/should/fail.err':
    (gdb)
    
    Also included is a couple of tests added to subst.exp to verify
    this behavior in the test suite.
    
    gdb/ChangeLog:
    
            * source.c (show_substitute_path_command): Fix display of matching
            substitution rules.
    
    gdb/testsuite/ChangeLog:
    
            * gdb.ada/subst.exp: Add tests to verify partial path matching
            output.
    
    This was tested on x86_64 Linux.

-----------------------------------------------------------------------

Summary of changes:
 gdb/ChangeLog                    |    6 ++++++
 gdb/source.c                     |    2 +-
 gdb/testsuite/ChangeLog          |    5 +++++
 gdb/testsuite/gdb.base/subst.exp |    8 ++++++++
 4 files changed, 20 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
gdb and binutils


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]