Get Started with Debugging with Intel® Parallel Studio XE
for Windows* OS
Debugging on a Remote Target System with GDB
- Depending on the target system, there are different gdbserver executables provided. Select an appropriate one under<install-dir>\debugger_<version>\gdb\targets\<target-arch>\<target>\bin\gdbserver, where:
Not all combinations of host/target systems are supported. Refer to the Intel ® Parallel Studio XE release notes for more information.
- <install-dir>is the installation directory. The default one isC:\Program Files (x86)\IntelSWTools.
- <target-arch>defines the architecture of the target system. Possible values areia32,intel64, andQuark.
- <target>is the target system type.
- Ensure that the application to debug is launched.
- Start the gdbserver on the target system by either loading an application to debug or attaching to it:
The expected output for both steps is below:Process program created; pid = ... Listening on port 2000
- Load an application calledmy_applicationby executing the command below:gdbserver localhost:2000 my_application
- Attach to a running application with PIDmy_pidby executing the command below:gdbserver localhost:2000 --attach my_pid
- Start GDB on the host.Do not usegdb-ia.exedirectly. Usegdb-ia.batinstead.
- Сonnect to the gdbserver on the target system calledmy_targetand debug the remote applicationmy_remote_application:
The port number must match the one specified during launch of gdbserver on the target called(gdb) target remote my_target:2000my_target.Expected output:Remote debugging using my_target:2000Make sure the connection is not blocked by a firewall.Alternatively, you can use the multi-mode, which enables reusing the gdbserver across different debug sessions (it does not terminate):
- Start gdbserver on the target system in multi-mode:
Expected output:gdbserver --multilocalhost:2000 Listening on port
- Start GDB on host viagdb-ia.batand connect to the target with the following command:
Expected output:(gdb) target extended-remotemy_target:2000 Remote
Documentation and Resources
Contains descriptions of the GNU* Debugger (GDB) functions and interfaces including Intel-extended features for debugging applications natively on Intel® 64 Architecture systems.
Release Notes for debugging with Intel® Parallel Studio XE.
Intel® Parallel Studio XE product page. See this page for support and online documentation.