OK, I got it.
It has to be part of a J-Link script file. The script file can be passed by using the command line option -jlinkscriptfile which can be set in the eclipse debug configurations under the debugger tab.
See this link for instructions: https://wiki.segger.com/Eclipse#Using_J-Link_script_files
It works now as expected. Thanks again for pointing me to that