Go to the first, previous, next, last section, table of contents.


Support Libraries

Áö¿ø ¶óÀ̺귯¸®µé

BFD

BFD provides support for GDB in several ways:

GDB´Â ´Ù¾çÇÑ ¹æ¹ýÀ¸·Î GDB¸¦ À§ÇÑ Áö¿øÀ» Á¦°øÇÑ´Ù.

identifying executable and core files
½ÇÇà ÆÄÀÏ°ú ÄÚ¾îÆÄÀÏ ½Äº°Çϱâ
BFD will identify a variety of file types, including a.out, coff, and several variants thereof, as well as several kinds of core files.

GDB´Â ÄÚ¾î ÆÄÀÏÀÇ Á¾À¯»Ó¸¸ ¾Æ´Ï¶ó a.out, coff¿Í ¸î¸î ´Ù¸¥ º¯Á¾µéÀ» Æ÷ÇÔÇÏ¿© ´Ù¾çÇÑ ÆÄÀÏ Å¸ÀÔÀ» ½Äº°ÇÑ´Ù.

access to sections of files
ÆÄÀÏ ¼½¼Ç¿¡ Á¢±ÙÇϱâ
BFD parses the file headers to determine the names, virtual addresses, sizes, and file locations of all the various named sections in files (such as the text section or the data section). GDB simply calls BFD to read or write section x at byte offset y for length z.

BFD´Â À̸§, °¡»ó ÁÖ¼Ò, Å©±â ÆÄÀϳ» ´Ù¾çÇÏ°Ô ¸í¸íµÈ ¼½¼ÇÀÇ ÆÄÀÏ À§Ä¡¸¦ °áÁ¤Çϱâ À§ÇØ ÆÄÀÏ Çì´õ¸¦ ÆĽÌÇÑ´Ù.(ÅؽºÆ® ¼½¼ÇÀ̳ª µ¥ÀÌÅÍ ¼½¼Çó·³) GDB´Â ´Ü¼øÈ÷ ±æÀÌ z¸¦ ¹ÙÀÌÆ® ¿ÀÇÁ¼Â y¿¡¼­ ¼½¼Ç x¿¡ Àаųª ¾²±â À§ÇØ BFD¸¦ È£ÃâÇÑ´Ù.

specialized core file support
Ưº°ÇÑ ÄÚ¾î ÆÄÀÏ Áö¿ø
BFD provides routines to determine the failing command name stored in a core file, the signal with which the program failed, and whether a core file matches (i.e. could be a core dump of) a particular executable file.

GDB´Â ÄÚ¾î ÆÄÀÏ¿¡ ÀúÀåµÈ ½ÇÆÐÇÑ ¸í·É¾î À̸§, ½ÇÆÐÇÑ ÇÁ·Î±×·¥½Ã °¡Áö´Â ½ÅÈ£ ±×¸®°í ÄÚ¾î ÆÄÀÏÀÌ Æ¯Á¤ ½ÇÇà ÆÄÀÏ(i.e. ÄÚ¾î ´ýÇÁÀϼöµµ ÀÖ´Ù.)°ú ÀÏÄ¡ÇÏ´ÂÁö¸¦ °áÁ¤Çϱâ À§ÇÑ ·çƾÀ» Á¦°øÇÑ´Ù.

locating the symbol information
GDB uses an internal interface of BFD to determine where to find the symbol information in an executable file or symbol-file. GDB itself handles the reading of symbols, since BFD does not "understand" debug symbols, but GDB uses BFD's cached information to find the symbols, string table, etc.

GDB´Â ½ÇÇà ÆÄÀÏÀ̳ª ½Éº¼ ÆÄÀÏÀÇ ½Éº¼ Á¤º¸¸¦ ¹ß°ßÇϱâ À§ÇÑ °÷À» °áÁ¤Çϱâ À§ÇØ BFDÀÇ ³»ºÎ ÀÎÅÍÆäÀ̽º¸¦ »ç¿ëÇÑ´Ù. GDB ÀÚü´Â ½Éº¼ÀÇ Àб⸦ Çڵ鸵ÇÑ´Ù. ¿Ö³ÄÇϸé BFD´Â µð¹ö±ë ½Éº¼À» ÀÌÇØÇÏÁö ¸øÇϱ⠶§¹®ÀÌ´Ù. ±×·¯³ª GDB´Â ½Éº¼, ¹®ÀÚ¿­ Å×À̺íµîÀ» ã±â À§ÇØ BFDÀÇ Ä³½ÃµÈ Á¤º¸¸¦ »ç¿ëÇÑ´Ù.

opcodes

The opcodes library provides GDB's disassembler. (It's a separate library because it's also used in binutils, for `objdump').

opcode ¶óÀ̺귯¸®´Â GDB µð½º¾î¼Àºí·¯¸¦ Á¦°øÇÑ´Ù. (¶óÀ̺귯¸®´Â ºÐ¸®µÇ¾ú´Ù. ¿Ö³ÄÇϸé `objdump'¸¦ À§ÇØ binutils¿¡¼­ »ç¿ëµÉ¼ö Àֱ⠶§¹®ÀÌ´Ù.)

readline

mmalloc

libiberty

gnu-regex

Regex Á¶°Çµé.

C_ALLOCA
NFAILURES
RE_NREGS
SIGN_EXTEND_CHAR
SWITCH_ENUM_BUG
SYNTAX_TABLE
Sword
sparc

include


Go to the first, previous, next, last section, table of contents.