Red Hat Developer Toolset 1.1

User Guide

Installing and Using Red Hat Developer Toolset

Edition 1

Jaromír Hradílek

Red Hat Engineering Content Services

Jacquelynn East

Red Hat Engineering Content Services

Matt Newsome

Red Hat Software Engineering

Legal Notice

Copyright © 2012, 2013 Red Hat, Inc.
This document is licensed by Red Hat under the Creative Commons Attribution-ShareAlike 3.0 Unported License. If you distribute this document, or a modified version of it, you must provide attribution to Red Hat, Inc. and provide a link to the original. If the document is modified, all Red Hat trademarks must be removed.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, MetaMatrix, Fedora, the Infinity Logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
Linux® is the registered trademark of Linus Torvalds in the United States and other countries.
Java® is a registered trademark of Oracle and/or its affiliates.
XFS® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries.
MySQL® is a registered trademark of MySQL AB in the United States, the European Union and other countries.
Node.js® is an official trademark of Joyent. Red Hat Software Collections is not formally related to or endorsed by the official Joyent Node.js open source or commercial project.
The OpenStack® Word Mark and OpenStack Logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community.
All other trademarks are the property of their respective owners.

Abstract

Red Hat Developer Toolset is a Red Hat offering for developers on the Red Hat Enterprise Linux platform. The Red Hat Developer Toolset User Guide provides an overview of this product, explains how to invoke and use the Developer Toolset versions of the tools, and links to resources with more in-depth information.
Preface
1. Document Conventions
1.1. Typographic Conventions
1.2. Pull-quote Conventions
1.3. Notes and Warnings
2. Getting Help and Giving Feedback
2.1. Do You Need Help?
2.2. We Need Feedback!
I. Introduction
1. Red Hat Developer Toolset
1.1. About Red Hat Developer Toolset
1.2. Main Features
1.3. Compatibility
1.4. Getting Access to Red Hat Developer Toolset
1.4.1. Using RHN Classic
1.4.2. Using Red Hat Subscription Management
1.5. Installing Red Hat Developer Toolset
1.6. Updating Red Hat Developer Toolset
1.7. Uninstalling Red Hat Developer Toolset
1.8. Additional Resources
II. Development Tools
2. GNU Compiler Collection (GCC)
2.1. GNU C Compiler
2.1.1. Installing the C Compiler
2.1.2. Using the C Compiler
2.1.3. Running a C Program
2.2. GNU C++ Compiler
2.2.1. Installing the C++ Compiler
2.2.2. Using the C++ Compiler
2.2.3. Running a C++ Program
2.3. GNU Fortran Compiler
2.3.1. Installing the Fortran Compiler
2.3.2. Using the Fortran Compiler
2.3.3. Running a Fortran Program
2.4. Additional Resources
3. GNU Debugger (GDB)
3.1. Installing the GNU Debugger
3.2. Preparing a Program for Debugging
3.3. Running the GNU Debugger
3.4. Listing Source Code
3.5. Setting Breakpoints
3.6. Starting Execution
3.7. Displaying Current Values
3.8. Continuing Execution
3.9. Additional Resources
4. binutils
4.1. Installing binutils
4.2. Using the GNU Assembler
4.3. Using the GNU Linker
4.4. Using Other Binary Tools
4.5. Additional Resources
5. elfutils
5.1. Installing elfutils
5.2. Using elfutils
5.3. Additional Resources
6. dwz
6.1. Installing dwz
6.2. Using dwz
6.3. Additional Resources
III. Performance Monitoring Tools
7. SystemTap
7.1. Installing SystemTap
7.2. Using SystemTap
7.3. Additional Resources
8. Valgrind
8.1. Installing Valgrind
8.2. Using Valgrind
8.3. Additional Resources
9. OProfile
9.1. Installing OProfile
9.2. Using OProfile
9.3. Additional Resources
IV. Integrated Development Environments
10. Eclipse
10.1. Installing Eclipse
10.2. Running Eclipse
10.3. Additional Resources
V. Getting Help
11. Accessing Red Hat Product Documentation
12. Accessing the Customer Portal
12.1. The Plan Menu
12.2. The Deploy Menu
12.3. The Connect Menu
13. Contacting Global Support Services
13.1. Gathering Required Information
13.2. Escalating an Issue
13.3. Re-opening a Service Request
13.4. Additional Resources
A. Changes in Version 1.0
A.1. Changes in GCC 4.7.0
A.1.1. Status and Features
A.1.2. Language Compatibility
A.1.3. ABI Compatibility
A.1.4. Debugging Compatibility
A.1.5. Other Compatibility
A.2. Changes in GDB 7.4
A.2.1. New Features
A.2.2. Compatibility Changes
A.3. Changes in binutils 2.22.52
A.3.1. GNU Linker
A.3.2. GNU Assembler
A.3.3. Other Binary Tools
B. Changes in Version 1.1
B.1. Changes in GCC 4.7.2
B.1.1. C++11 Compatibility
B.1.2. Fortran
B.1.3. Architecture-specific Options
B.2. Changes in GDB 7.5
B.3. Changes in binutils 2.23.51
B.3.1. GNU Linker
B.3.2. GNU Assembler
B.3.3. Other Binary Tools
B.4. Changes in elfutils 0.154
B.5. Changes in Valgrind 3.8.1
B.6. Changes in OProfile 0.154
C. Revision History
Index