6. Tools


6.1. Depurador de proyecto GNU (GDB)

El Proyecto depurador GNU (normalmente conocido como GDB) depura programas escritos en C, C++, y otras lenguajes ejecutándolos de una forma controlada y luego imprimiendo su información.
En Red Hat Enterprise Linux 5.5, GDB ha sido actualizado a la versión 7.0.1. Para obtener un listado detallado de los cambios, consulte la sección GDB de las Notas técnicas.
Soporte mejorado de C++

El soporte para el lenguaje de programación C++ en GDB ha sido mejorado. Las mejoras más destacadas incluyen:

  • Muchas mejoras para análisis de expresión.
  • Mejor manejo de nombres de tipo.
  • Las innecesarias comillas casi han sido eliminadas.
  • "next" and other stepping commands work properly even when the inferior throws an exception.
  • GDB has a new "catch syscall" command. This can be used to stop the inferior whenever it makes a system call.

Soporte de caracteres amplios y multi-bytes

Ahora, GDB soporta caracteres amplios y multi bytes en el destino.

Depuración independiente de hilos

Thread execution now permits debugging threads individually and independently of each other; enabled by new settings "set target-async" and "set non-stop".

6.2. SystemTap

SystemTap is a tracing and probing tool that allows users to study and monitor the activities of the operating system (particularly, the kernel) in fine detail. It provides information similar to the output of tools like netstat, ps, top, and iostat; however, SystemTap is designed to provide more filtering and analysis options for collected information.
New Kernel Tracepoints

Tracepoints are placed in important sections of the kernel, allowing system administrators to analyze the performance of, and debug portions of code. In Red Hat Enterprise Linux 5.5, a wide range of tracepoints have been added to the kernel (BZ#475710), including tracepoints for networking (BZ#475457), coredump (BZ#517115) and signal (BZ#517121).

Nota

A list of tracepoints available in the kernel can be obtained with:
stap -L 'kernel.trace("*")'|sort

Unprivileged mode

Previously, only users with root privileges were able to use SystemTap. This update introduces SystemTap's unprivileged mode, allowing non-root users to still use SystemTap. Detailed information on unprivileged man stap-client manpage.

Importante

Unprivileged mode is considered a Technology Preview in the Red Hat Enterprise Linux 5.5. The stap-server facility on which it relies is undergoing work for security improvements and should be deployed with care on a trustworthy network.
C++ Probing

The C++ program probing improvements also allows better probing of user-space programs.

6.3. Valgrind

Valgrind is used to monitor memory read, write, and allocation operations. The valgrind tool is frequently used by developers to diagnose and debug memory management problems.
Valgrind has been updated to version 3.5.0, providing enhanced support for a wide range of system architectures. This update introduces many improvements to performance, scalability and usability of the Valgrind. Notably, the usability and scalability of the Helgrind tool — which is used to detect race contiditions — has been improved. The leak checking capabilities of the Memcheck tool are also improved. Additionally, support for DWARF debugging information has been enhanced.
Red Hat logoGithubRedditYoutubeTwitter

Aprender

Pruebe, compre y venda

Comunidades

Acerca de la documentación de Red Hat

Ayudamos a los usuarios de Red Hat a innovar y alcanzar sus objetivos con nuestros productos y servicios con contenido en el que pueden confiar.

Hacer que el código abierto sea más inclusivo

Red Hat se compromete a reemplazar el lenguaje problemático en nuestro código, documentación y propiedades web. Para más detalles, consulte el Blog de Red Hat.

Acerca de Red Hat

Ofrecemos soluciones reforzadas que facilitan a las empresas trabajar en plataformas y entornos, desde el centro de datos central hasta el perímetro de la red.

© 2024 Red Hat, Inc.