gdb/contrib/ari/gdb_find.sh - gdb

  1. #!/bin/sh

  2. # GDB script to create list of files to check using gdb_ari.sh.
  3. #
  4. # Copyright (C) 2003-2015 Free Software Foundation, Inc.
  5. #
  6. # This file is part of GDB.
  7. #
  8. # This program is free software; you can redistribute it and/or modify
  9. # it under the terms of the GNU General Public License as published by
  10. # the Free Software Foundation; either version 3 of the License, or
  11. # (at your option) any later version.
  12. #
  13. # This program is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. # GNU General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU General Public License
  19. # along with this program.  If not, see <http://www.gnu.org/licenses/>.

  20. # Make certain that the script is not running in an internationalized
  21. # environment.

  22. LANG=C ; export LANG
  23. LC_ALL=C ; export LC_ALL


  24. # A find that prunes files that GDB users shouldn't be interested in.
  25. # Use sort to order files alphabetically.

  26. find "$@" \
  27.     -name testsuite -prune -o \
  28.     -name gdbserver -prune -o \
  29.     -name gdbtk -prune -o \
  30.     -name gnulib -prune -o \
  31.     -name '*-stub.c' -prune -o \
  32.     -name '*-exp.c' -prune -o \
  33.     -name ada-lex.c -prune -o \
  34.     -name cp-name-parser.c -prune -o \
  35.     -type f -name '*.[lyhc]' -print | sort