GDB (xrefs)
Loading...
Searching...
No Matches
Functions | Variables
test_pubnames_and_indexes Namespace Reference

Functions

def get_pub_info (filename, readelf_option)
 
def get_gdb_index (filename)
 
def CheckSets (list0, list1, name0, name1)
 
def find_executables ()
 
def main (argv)
 

Variables

str __author__ = "saugustine@google.com (Sterling Augustine)"
 
None OBJCOPY = None
 
None READELF = None
 
None GDB = None
 

Detailed Description

test_pubnames_and_indexes.py

Test that the gdb_index produced by gold is identical to the gdb_index
produced by gdb itself.

Further check that the pubnames and pubtypes produced by gcc are identical
to those that gdb produces.

Finally, check that all strings are canonicalized identically.

Function Documentation

◆ CheckSets()

def test_pubnames_and_indexes.CheckSets (   list0,
  list1,
  name0,
  name1 
)
Report any setwise differences between the two lists

Definition at line 97 of file test_pubnames_and_indexes.py.

Referenced by main().

◆ find_executables()

def test_pubnames_and_indexes.find_executables ( )
Find the copies of readelf, objcopy and gdb to use.

Definition at line 126 of file test_pubnames_and_indexes.py.

Referenced by main().

◆ get_gdb_index()

def test_pubnames_and_indexes.get_gdb_index (   filename)
Use readelf to dump the gdb index and collect the types and names

Definition at line 77 of file test_pubnames_and_indexes.py.

Referenced by main().

◆ get_pub_info()

def test_pubnames_and_indexes.get_pub_info (   filename,
  readelf_option 
)
Parse and return all the pubnames or pubtypes produced by readelf with the
given option.

Definition at line 53 of file test_pubnames_and_indexes.py.

Referenced by main().

◆ main()

def test_pubnames_and_indexes.main (   argv)
The main subprogram.

Definition at line 152 of file test_pubnames_and_indexes.py.

References CheckSets(), find_executables(), get_gdb_index(), get_pub_info(), and main().

Variable Documentation

◆ __author__

str test_pubnames_and_indexes.__author__ = "saugustine@google.com (Sterling Augustine)"
private

Definition at line 42 of file test_pubnames_and_indexes.py.

◆ GDB

None test_pubnames_and_indexes.GDB = None

Definition at line 50 of file test_pubnames_and_indexes.py.

◆ OBJCOPY

None test_pubnames_and_indexes.OBJCOPY = None

Definition at line 48 of file test_pubnames_and_indexes.py.

◆ READELF

None test_pubnames_and_indexes.READELF = None

Definition at line 49 of file test_pubnames_and_indexes.py.