#include "bfd.h"#include "sysdep.h"#include "libbfd.h"#include <signal.h>

Go to the source code of this file.
Data Types | |
| type | crashinfo_external |
| type | cisco_core_struct |
Defines | |
| #define | SIGTRAP 5 |
| #define | SIGEMT 6 |
| #define | SIGBUS 10 |
| #define | CRASH_MAGIC 0xdead1234 |
| #define | MASK_ADDR(x) ((x) & 0x0fffffff) |
Enumerations | |
| enum | crashreason { CRASH_REASON_NOTCRASHED = 0, CRASH_REASON_EXCEPTION = 1, CRASH_REASON_CORRUPT = 2 } |
Functions/Subroutines | |
| static const bfd_target *cisco_core_file_validate | PARAMS ((bfd *, int)) |
| static const bfd_target *cisco_core_file_p | PARAMS ((bfd *)) |
| bfd_boolean cisco_core_file_matches_executable_p | PARAMS ((bfd *, bfd *)) |
| static const bfd_target * | cisco_core_file_validate (bfd *abfd, int crash_info_loc) |
| static const bfd_target * | cisco_core_file_p (bfd *abfd) |
| char * | cisco_core_file_failing_command (abfd) |
| int | cisco_core_file_failing_signal (abfd) |
| bfd_boolean | cisco_core_file_matches_executable_p (core_bfd, exec_bfd) |
Variables | |
| int | crash_info_locs [] |
| const bfd_target | cisco_core_little_vec |
| const bfd_target | cisco_core_big_vec |
| #define CRASH_MAGIC 0xdead1234 |
| #define MASK_ADDR | ( | x | ) | ((x) & 0x0fffffff) |
| #define SIGBUS 10 |
Definition at line 40 of file cisco-core.c.
Referenced by catch(), catch_signal(), catch_signals(), cisco_core_file_validate(), general_init(), Handle_Signals(), Init_Signal_Handlers(), ir_bwrite_signal_handler(), Ir_Lno_Signal_Handler(), main(), IPA_LNO_WRITE_FILE::Open_Write_File(), Opt_Catch_Signals(), and WN_open_output().
| #define SIGEMT 6 |
Definition at line 37 of file cisco-core.c.
Referenced by cisco_core_file_validate(), Handle_Signals(), and Opt_Catch_Signals().
| #define SIGTRAP 5 |
Definition at line 34 of file cisco-core.c.
Referenced by catch_signals(), cisco_core_file_validate(), Handle_Signals(), Init_Signal_Handlers(), and Opt_Catch_Signals().
| enum crashreason |
Definition at line 55 of file cisco-core.c.
| char* cisco_core_file_failing_command | ( | abfd | ) |
| int cisco_core_file_failing_signal | ( | abfd | ) |
| bfd_boolean cisco_core_file_matches_executable_p | ( | core_bfd | , | |
| exec_bfd | ||||
| ) |
| static const bfd_target* cisco_core_file_p | ( | bfd * | abfd | ) | [static] |
Definition at line 296 of file cisco-core.c.
References cisco_core_file_validate(), crash_info_locs, NULL, and target.
| static const bfd_target* cisco_core_file_validate | ( | bfd * | abfd, | |
| int | crash_info_loc | |||
| ) | [static] |
Definition at line 88 of file cisco-core.c.
References asect, bfd_bread(), bfd_error_system_call, bfd_error_wrong_format, bfd_get_32, bfd_get_error(), bfd_make_section_anyway(), bfd_release(), bfd_section_list_clear(), bfd_seek(), bfd_set_error(), bfd_stat(), bfd_zmalloc(), buf, crashinfo_external::cpu_vector, CRASH_MAGIC, CRASH_REASON_CORRUPT, CRASH_REASON_EXCEPTION, CRASH_REASON_NOTCRASHED, bfd_section::filepos, bfd_section::flags, crashinfo_external::magic, magic, MASK_ADDR, NULL, crashinfo_external::rambase, crashinfo_external::reason, crashinfo_external::registers, SEC_ALLOC, SEC_HAS_CONTENTS, SEC_LOAD, SEEK_SET, SIGBUS, SIGEMT, SIGTRAP, bfd_section::size, stat::st_size, version, crashinfo_external::version, and bfd_section::vma.
Referenced by cisco_core_file_p().
| static const bfd_target* cisco_core_file_p PARAMS | ( | (bfd *) | ) | [static] |
| static const bfd_target* cisco_core_file_validate PARAMS | ( | (bfd *, int) | ) | [static] |
| const bfd_target cisco_core_big_vec |
Definition at line 335 of file cisco-core.c.
Definition at line 385 of file cisco-core.c.
| int crash_info_locs[] |
Initial value:
{
0x0250,
0x0400,
0x0FFC,
0x3000,
0x4FFC,
-1
}
Definition at line 43 of file cisco-core.c.
Referenced by cisco_core_file_p().
1.5.6