[Chapel Merge] add break-on-query-hash flag

Branch: refs/heads/main
Revision: dcc0b86
Author: arezaii
Link: Unavailable
Log Message:

Merge pull request #19034 from arezaii/break-on-hash

add break-on-query-hash flag

This PR adds a compile time flag --break-on-query-hash that lets
the developer specify a specific hash value to break on during compilation.

The scope of work is outline in cray/chapel-private/issues/2783


  • [x] compiler breaks on hash value
  • [x] hash value can be passed through CL arg
  • [x] hash value can be set with env var
  • [x] break only happens with debugger flag --gdb or --lldb
  • [x] break only happens when using --compiler-library-parser
  • [x] break works in conjunction with --debug-trace

Reviewed by @dlongnecke-cray

Signed-off-by: arezaii ahmad.rezaii@hpe.com

Modified Files:
M compiler/include/driver.h

M compiler/main/arg.cpp
M compiler/main/docsDriver.cpp
M compiler/main/driver.cpp
M compiler/next/include/chpl/queries/Context.h
M compiler/next/lib/queries/Context.cpp
M util/chpl-completion.bash

Compare: https://github.com/chapel-lang/chapel/compare/c484c3e6b0e2...dcc0b86d6b51