Skip to Content
Binary Hacks Rebooted ―低レイヤの世界を探検するテクニック89選
book

Binary Hacks Rebooted ―低レイヤの世界を探検するテクニック89選

by 河田 旺, 小池 悠生, 渡邉 慶一, 佐伯 学哉, 荒田 実樹, 鈴木 創, 中村 孝史, 竹腰 開, 光成 滋生, hikalium, 浜地 慎一郎
August 2024
Intermediate to advanced
660 pages
9h 58m
Japanese
O'Reilly Japan, Inc.
Content preview from Binary Hacks Rebooted ―低レイヤの世界を探検するテクニック89選

5章デバッガ・トレーサHackHack #44–52

プログラミングにおいて、バグがないコードを書くこと、そして効率的に動作するコードを書くことは、重要課題だと言えるでしょう。そのためにはプログラムの動作を正確に理解する必要があります。本章ではそんなときの強力な助けとなるデバッガやトレーサに関するHackを紹介します。デバッガやトレーサを駆使し、ソースコードをただ読むだけではわからない、実行時のプログラムの一挙手一投足を追跡・解析できれば、難しいバグの原因を特定したり、パフォーマンスのボトルネックを発見することもできるでしょう。

本章の前半ではデバッグに役立つテクニックを紹介し、後半ではさまざまなトレーサを駆使してプログラムの挙動やパフォーマンスを解析する方法を紹介します。

[level-medium] HACK #44 gdb Tips

このHackでは状況に応じて利用できるgdbのさまざまなコマンドやTipsを、実行例とともに紹介します。

gdbには数多くのコマンドが実装されており、コマンドを学べば学ぶほど、さまざまな操作をgdbのみを用いて行えるようになります。直感的な操作が可能なグラフィカルなデバッガと比べると、コマンドを覚えないといけないのは面倒ではありますが、CLIさえあれば動かせるgdbは多様な環境で利用できるという利点を持っています。特にLinuxでは、コマンドを自在に扱えるようになれば、gdbは非常に強力なデバッガとなるでしょう。

コマンドを省略する

gdbでは、いくつかのコマンドに省略形が存在しています。たとえば ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

LLMのプロンプトエンジニアリング ―GitHub Copilotを生んだ開発者が教える生成AIアプリケーション開発

LLMのプロンプトエンジニアリング ―GitHub Copilotを生んだ開発者が教える生成AIアプリケーション開発

John Berryman, Albert Ziegler, 服部 佑樹, 佐藤 直生
実用 Git 第3版

実用 Git 第3版

Prem Kumar Ponuthorai, Jon Loeliger, 萬谷 暢崇, 長尾 高弘
入門 Python 3 第2版

入門 Python 3 第2版

Bill Lubanovic, 鈴木 駿, 長尾 高弘
実践 Keycloak ―OpenID Connect、OAuth 2.0を利用したモダンアプリケーションのセキュリティー保護

実践 Keycloak ―OpenID Connect、OAuth 2.0を利用したモダンアプリケーションのセキュリティー保護

Stian Thorgersen, Pedro Igor Silva, 和田 広之, 田村 広平, 乗松 隆志, 田畑 義之

Publisher Resources

ISBN: 9784814400850Publisher Website