elf: fix FDE Count formatting

Displays the FDE Count as a number, not a series of bytes.

Change-Id: I60dd426cb5305a5001a8200578008b7c4a99c64e
Reviewed-on: https://code.wireshark.org/review/5489
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Petri-Dish: Michal Labedzki <michal.labedzki@tieto.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com>
This commit is contained in:
Peter Wu 2014-11-25 19:40:12 +01:00 committed by Michal Labedzki
parent e8cda3b1bd
commit 3355ed6b7e
1 changed files with 4 additions and 3 deletions

View File

@ -917,7 +917,8 @@ dissect_eh_frame_hdr(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *segment_
}
}
proto_tree_add_item(segment_tree, hf_elf_eh_frame_hdr_fde_count, tvb, offset, fde_count_length, machine_encoding);
proto_tree_add_item(segment_tree, hf_elf_eh_frame_hdr_fde_count, tvb, offset,
fde_count_length, machine_encoding);
offset += fde_count_length;
if (table_entry_length == LENGTH_ULEB128) {
@ -2227,8 +2228,8 @@ proto_register_elf(void)
NULL, HFILL }
},
{ &hf_elf_eh_frame_hdr_fde_count,
{ "FDE Count", "elf.eh_frame_hdr.fde_count",
FT_BYTES, BASE_NONE, NULL, 0x00,
{ "Number of FDE entries", "elf.eh_frame_hdr.fde_count",
FT_UINT64, BASE_DEC, NULL, 0x00,
NULL, HFILL }
},
{ &hf_elf_eh_frame_hdr_binary_search_table_entry_initial_location,