Add Rust,Swift,C++14,.. dwarf detection and fix omf warning

This commit is contained in:
pancake 2015-05-23 11:03:20 +02:00
parent 2353737e17
commit d727cebfbf
3 changed files with 18 additions and 2 deletions

View File

@ -180,6 +180,14 @@ static const char *dwarf_langs[] = {
[DW_LANG_UPC] = "UPC",
[DW_LANG_D] = "D",
[DW_LANG_Python] = "Python",
[DW_LANG_Rust] = "Rust",
[DW_LANG_C11] = "C11",
[DW_LANG_Swift] = "Swift",
[DW_LANG_Julia] = "Julia",
[DW_LANG_Dylan] = "Dylan",
[DW_LANG_C_plus_plus_14] = "C++14",
[DW_LANG_Fortran03] = "Fortran03",
[DW_LANG_Fortran08] = "Fortran08"
};
static int add_sdb_include_dir(Sdb *s, const char *incl, int idx) {

View File

@ -283,7 +283,6 @@ static int load_omf_pubdef(OMF_record *record, const char *buf) {
}
static int load_omf_data(const char *buf, OMF_record *record, ut64 global_ct) {
ut16 seg_idx;
ut32 offset;
ut16 ct = 4;
@ -627,7 +626,7 @@ r_bin_omf_obj *r_bin_internal_omf_load(const char *buf, ut64 size) {
int r_bin_omf_get_entry(r_bin_omf_obj *obj, RBinAddr *addr) {
ut32 ct_sym = 0;
OMF_data *data;
ut32 *offset = 0;
ut32 offset = 0;
while (ct_sym < obj->nb_symbol) {
if (!strcmp (obj->symbols[ct_sym]->name, "_start")) {

View File

@ -466,9 +466,18 @@ extern "C" {
#define DW_LANG_UPC 0x0012
#define DW_LANG_D 0x0013
#define DW_LANG_Python 0x0014
#define DW_LANG_Rust 0x001c
#define DW_LANG_C11 0x001d
#define DW_LANG_Swift 0x001e
#define DW_LANG_Julia 0x001f
#define DW_LANG_Dylan 0x0020
#define DW_LANG_C_plus_plus_14 0x0021
#define DW_LANG_Fortran03 0x0022
#define DW_LANG_Fortran08 0x0023
#define DW_LANG_lo_user 0x8000
#define DW_LANG_hi_user 0xffff
#define DW_ID_case_sensitive 0x00
#define DW_ID_up_case 0x01
#define DW_ID_down_case 0x02