C, C#, C++

Featured image for Red Hat article roundup
Article

Red Hat Developer roundup: Best of April 2022

Red Hat Developer Editorial Team

A trip through Red Hat Developer's content for the month, with articles on GCC 12, Java in containers, Red Hat's SSO technology, and much more.

Featured image for "Get started with clang-tidy in Red Hat Enterprise Linux."
Article

Enforce code consistency with clang-format

Serge Guelton

Get started with clang-format, an LLVM tool that you can use to set and maintain a consistent code style in your open source C and C++ projects.

Featured image for: Value range propagation in GCC with Project Ranger.
Article

Prevent Trojan Source attacks with GCC 12

David Malcolm

Discover how Red Hat protects GCC 12 code from Trojan Source attacks. Learn how we defend our customers against this recent software vulnerability.

Featured image for a Linux topic.
Article

What's new in Libabigail 2.0

Dodji Seketeli

Find out what's new in Libabigail 2.0, including updates to the symbol table reader component, ABIXML format, and moving to the Apache 2 license.

Custom image for Red Hat Developer roundup: December 2021.
Article

Red Hat Developer roundup: Best of December 2021

Red Hat Developer Editorial Team

Highlights of December 2021 include two guides for integrating Red Hat OpenShift Streams for Apache Kafka. Read the entire monthly recap for further details.

Featured image for: Mostly harmless: An account of pseudo-normal floating point numbers.
Article

Why glibc 2.34 removed libpthread

Florian Weimer

Consolidation of libraries in the GNU C library, glibc, means more error-free builds, but there are consequences for developers and system administrators.

Featured image for C/C++ language topics.
Article

Printf-style debugging using GDB, Part 3

Kevin Buettner

Complete your introduction to using virtual print statements in the GDB debugger with tips for running program functions and automating GDB behavior.

Featured image for: Can we consider --editable a bad practice?
Article

Generating pseudorandom numbers in Python

Fridolin Pokorny

Learn how Project Thoth uses termial random number calculations to recommend a variety of Python packages while prioritizing newer package releases.

RHEL 9 Beta Release Feature Image
Article

Red Hat Enterprise Linux 9 Beta is here

Don Pinto

RHEL 9 Beta features GCC 11, glibc 2.34, updated compilers, enhanced application streams, Python 3.9, and more. Plus, it's built from CentOS Stream!

Featured image for Valgrind.
Article

How to debug memory errors with Valgrind and GDB

Alexandra Petlanova Hajkova

Discover little-known Valgrind and GDB commands that can help you resolve memory leaks, buffer overflows, and similar bugs in your C and C++ code.

Featured image for: Value range propagation in GCC with Project Ranger.
Article

A beginner's attempt at optimizing GCC

Arjun Shankar

Implementing a minor tree optimization was a great way to get started with GCC internals while contributing to the community.

Featured image for C-language topics.
Article

Printf-style debugging using GDB, Part 2

Kevin Buettner

Learn how to use virtual print statements in the GDB debugger. This second article in the series shows how to save commands and output for later use.

Featured image for C-language topics.
Article

Printf-style debugging using GDB, Part 1

Kevin Buettner

You can use the GDB debugger to understand program behavior without any source code changes. In Part 1, learn how to run virtual print statements.

Featured image for Python topics.
Article

Debugging Python C extensions with GDB

Victor Stinner

You can use C debuggers to debug C extensions in Python 3.9. Learn how to use the improved Python debug build with the GNU Project Debugger (GDB).

Featured image for: Automating the testing process for SystemTap, Part 1: Test automation with libvirt and Buildbot.
Article

Explore new features in SystemTap 4.5.0

Stan Cox

SystemTap allows access to low-level Linux kernel features. Explore enhancements to context variables, alias syntax, and BPF features in version 4.5.0.

Featured Image: systemtap dyninst runtime
Article

Debugging function parameters with Dyninst

William Cohen

Automate app analysis by using Dyninst to debug function parameters. The suite simplifies the process via dynamic and static analysis and instrumentation tools.

Featured image for: Value range propagation in GCC with Project Ranger.
Article

Porting your code to C++17 with GCC 11

Marek Polacek

C++17 is now the default version in the GNU Compiler Collection. Find out what you need to know when updating your code to C++17 with GCC 11.