stabs.exp 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Copyright 2014-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 stabs support. Stabs is used less and less these days, ideally
  16. # it will eventually disappear (hey, one can dream). Until then, this
  17. # board file is a simple way to run the testsuite with stabs.
  18. #
  19. # Example usage:
  20. # bash$ make check RUNTESTFLAGS='--target_board=stabs'
  21. #
  22. # Another way:
  23. # make check RUNTESTFLAGS="--target_board=unix/gdb:debug_flags=-gstabs+"
  24. # While this way doesn't require a board file, this file exists because
  25. # it's easier for some to find.
  26. #
  27. # Note: make check RUNTESTFLAGS=CFLAGS_FOR_TARGET=-gstabs+
  28. # "works" but kinda accidentally. The right way to set the flag for
  29. # specifying debug information is with the debug_flags board config parameter.
  30. # This is copied from baseboards/unix.exp.
  31. # At the moment this only supports things that unix.exp supports.
  32. load_generic_config "unix"
  33. process_multilib_options ""
  34. set_board_info compiler "[find_gcc]"
  35. # Use -gstabs+ instead of -gstabs for better c++ support.
  36. set_board_info debug_flags "-gstabs+"
  37. # This is needed otherwise dejagnu tries to rsh to host "stabs".
  38. load_board_description "local-board"