fission-dwp.exp 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Copyright 2013-2022 Free Software Foundation, Inc.
  2. # This program is free software; you can redistribute it and/or modify
  3. # it under the terms of the GNU General Public License as published by
  4. # the Free Software Foundation; either version 3 of the License, or
  5. # (at your option) any later version.
  6. #
  7. # This program is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. # GNU General Public License for more details.
  11. #
  12. # You should have received a copy of the GNU General Public License
  13. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. # This file is a dejagnu "board file" and is used to run the testsuite
  15. # with Fission support and generation of dwp files.
  16. # http://gcc.gnu.org/wiki/DebugFission
  17. # http://gcc.gnu.org/wiki/DebugFissionDWP
  18. #
  19. # Example usage:
  20. # bash$ make check RUNTESTFLAGS='--target_board=fission-dwp'
  21. load_board_description "fission"
  22. set found_gcc [find_gcc]
  23. set found_gxx [find_g++]
  24. set contrib_dir [file normalize $srcdir/../contrib]
  25. if ![info exists CC_FOR_TARGET] {
  26. set CC_FOR_TARGET "$found_gcc"
  27. }
  28. set CC_FOR_TARGET "$contrib_dir/cc-with-tweaks.sh -p $CC_FOR_TARGET"
  29. if ![info exists CXX_FOR_TARGET] {
  30. set CXX_FOR_TARGET "$found_gxx"
  31. }
  32. set CXX_FOR_TARGET "$contrib_dir/cc-with-tweaks.sh -p $CXX_FOR_TARGET"
  33. if ![info exists READELF_FOR_TARGET] {
  34. set READELF_FOR_TARGET "[transform readelf]"
  35. }
  36. # cc-with-tweaks.sh uses READELF, not READELF_FOR_TARGET. Blech.
  37. set env(READELF) "$READELF_FOR_TARGET"
  38. if ![info exists DWP_FOR_TARGET] {
  39. set DWP_FOR_TARGET "[transform dwp]"
  40. }
  41. # cc-with-tweaks.sh uses DWP, not DWP_FOR_TARGET. Blech.
  42. set env(DWP) "$DWP_FOR_TARGET"