Yes, but not on the mainframe. You need to debug with gdb on the target (board). Of course, this gdb must be able to run on the board, that is, the compile-time configuration parameter HOST.
The target must be specified as arm-hisi-linux.
If you agree with my answer, please adopt it.
Your adoption is my motivation to answer questions, O(∩_∩)O Thank you! !