linux debugging - lauterbach · 2020. 12. 3. · mainly stop-mode debugging run-mode debugging...

4
Linux Debugging • Arm ® /Cortex ® • Intel ® Processors • MIPS ® Architecture • Power Architecture • RISC-V ® • and others TM

Upload: others

Post on 15-Mar-2021

43 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Linux Debugging - Lauterbach · 2020. 12. 3. · Mainly Stop-mode debugging Run-mode debugging possible Power Trace II Front-End Front-End TRACE32 Debugger TRACE32 Debugger Virtual

44Lauterbach GmbHAltlaufstraße 40 • 85635 Höhenkirchen • Tel: +49 8102 9876 0 • [email protected] our offi cial Youtube channel and discover our new tutorials: http://www.youtube.com/user/lauterbachgmbh

Software-only Products

Benefi t from the same user interface on all products.

Hardware-based Products

For more information visit: www.lauterbach.com/rtoslinux.html

Linux Debugging

• Arm®/Cortex®

• Intel® Processors• MIPS® Architecture• Power Architecture• RISC-V ®• and others

PowerDebug

Debugger via JTAGMainly Stop-mode debuggingCombined Run- and Stop-mode debugging possible

Real-Time TraceLinux-aware single core andmulticore tracingStop-mode debugging only

Debugger via GDB ProtocolRun-mode debuggingGDB and KGDB

Debugger for Virtual TargetsMainly Stop-mode debuggingRun-mode debugging possible

PowerTrace II

Front-End

Front-End

TRACE32 Debugger

TRACE32 Debugger

Virtual Target

TM

x20.2

PowerDebug

Debugger via JTAGMainly Stop-mode debuggingCombined Run- and Stop-mode debugging possible

Real-Time TraceLinux-aware single core andmulticore tracingStop-mode debugging only

Debugger via GDB ProtocolRun-mode debuggingGDB and KGDB

Debugger for Virtual TargetsMainly Stop-mode debuggingRun-mode debugging possible

PowerTrace II

Front-End

Front-End

TRACE32 Debugger

TRACE32 Debugger

Virtual Target

Page 2: Linux Debugging - Lauterbach · 2020. 12. 3. · Mainly Stop-mode debugging Run-mode debugging possible Power Trace II Front-End Front-End TRACE32 Debugger TRACE32 Debugger Virtual

www.lauterbach.com/rtoslinux.html2 3

Run-mode Debugging

Linux-aware Tracing

Trace technologies allow an in-depth analysis of the behavior and the timing characteristics of the embedded system.Core trace modules generate information on the instruction execution and running processes for their related core.

Off-chip parallel or serial trace ports allow a TRACE32 trace tool to record this information for Linux-aware trace analysis, providing effective troubleshooting, comprehensive profi ling and quality assurance.

Time chart of processes and threads

Call tree of a thread

A JTAG debugger works with Stop-mode debugging. This means the processor and thus the whole system is stopped whenever a breakpoint is hit. This behavior makes it possible to analyze the overall system state at a specifi c point in time.

Benefi ts• The only requirement for Stop-mode debugging is a

functioning JTAG interface. This enables debugging from the reset vector.

• Debugging of the kernel and beyond process boundaries is possible because the TRACE32 debugger offers both Linux and MMU support.

• If the software ceases to react, the processor can be stopped to fi nd out the point in the code where the processor crashed.

• If the processor is stopped, neither the kernel nor any other process can interfere with your analysis.

Stop-mode Debugging

Debugging via GDB protocol is Run-mode debugging. This means only the selected process is stopped, while the kernel and all other processes are not infl uenced.

Benefi ts• Ideal for pure application process debugging• Communication interfaces remain active (e.g. Ethernet, RS232) • As a special feature, TRACE32 allows the user to concurrently use Run- and Stop-mode debugging.

List of Linux processes

MIPS for processes and threads

Linux Debugging Environment

TRACE32 supports all Linux distributions, bundles and platforms using the standard Linux kernel (e.g. Android). It offers:• Linux-aware debugging of single core systems• Linux-aware debugging of SMP systems

Process-aware breakpointList of Linux processes

Page 3: Linux Debugging - Lauterbach · 2020. 12. 3. · Mainly Stop-mode debugging Run-mode debugging possible Power Trace II Front-End Front-End TRACE32 Debugger TRACE32 Debugger Virtual

www.lauterbach.com/rtoslinux.html2 3

Run-mode Debugging

Linux-aware Tracing

Trace technologies allow an in-depth analysis of the behavior and the timing characteristics of the embedded system.Core trace modules generate information on the instruction execution and running processes for their related core.

Off-chip parallel or serial trace ports allow a TRACE32 trace tool to record this information for Linux-aware trace analysis, providing effective troubleshooting, comprehensive profi ling and quality assurance.

Time chart of processes and threads

Call tree of a thread

A JTAG debugger works with Stop-mode debugging. This means the processor and thus the whole system is stopped whenever a breakpoint is hit. This behavior makes it possible to analyze the overall system state at a specifi c point in time.

Benefi ts• The only requirement for Stop-mode debugging is a

functioning JTAG interface. This enables debugging from the reset vector.

• Debugging of the kernel and beyond process boundaries is possible because the TRACE32 debugger offers both Linux and MMU support.

• If the software ceases to react, the processor can be stopped to fi nd out the point in the code where the processor crashed.

• If the processor is stopped, neither the kernel nor any other process can interfere with your analysis.

Stop-mode Debugging

Debugging via GDB protocol is Run-mode debugging. This means only the selected process is stopped, while the kernel and all other processes are not infl uenced.

Benefi ts• Ideal for pure application process debugging• Communication interfaces remain active (e.g. Ethernet, RS232) • As a special feature, TRACE32 allows the user to concurrently use Run- and Stop-mode debugging.

List of Linux processes

MIPS for processes and threads

Linux Debugging Environment

TRACE32 supports all Linux distributions, bundles and platforms using the standard Linux kernel (e.g. Android). It offers:• Linux-aware debugging of single core systems• Linux-aware debugging of SMP systems

Process-aware breakpointList of Linux processes

Page 4: Linux Debugging - Lauterbach · 2020. 12. 3. · Mainly Stop-mode debugging Run-mode debugging possible Power Trace II Front-End Front-End TRACE32 Debugger TRACE32 Debugger Virtual

44Lauterbach GmbHAltlaufstraße 40 • 85635 Höhenkirchen • Tel: +49 8102 9876 0 • [email protected] our offi cial Youtube channel and discover our new tutorials: http://www.youtube.com/user/lauterbachgmbh

Software-only Products

Benefi t from the same user interface on all products.

Hardware-based Products

For more information visit: www.lauterbach.com/rtoslinux.html

Linux Debugging

• Arm®/Cortex®

• Intel® Processors• MIPS® Architecture• Power Architecture• RISC-V ®• and others

PowerDebug

Debugger via JTAGMainly Stop-mode debuggingCombined Run- and Stop-mode debugging possible

Real-Time TraceLinux-aware single core andmulticore tracingStop-mode debugging only

Debugger via GDB ProtocolRun-mode debuggingGDB and KGDB

Debugger for Virtual TargetsMainly Stop-mode debuggingRun-mode debugging possible

PowerTrace II

Front-End

Front-End

TRACE32 Debugger

TRACE32 Debugger

Virtual Target

TM

x20.2

PowerDebug

Debugger via JTAGMainly Stop-mode debuggingCombined Run- and Stop-mode debugging possible

Real-Time TraceLinux-aware single core andmulticore tracingStop-mode debugging only

Debugger via GDB ProtocolRun-mode debuggingGDB and KGDB

Debugger for Virtual TargetsMainly Stop-mode debuggingRun-mode debugging possible

PowerTrace II

Front-End

Front-End

TRACE32 Debugger

TRACE32 Debugger

Virtual Target