/* read_core_file_mappings will invoke this lambda for each mapping
that it finds. */
- [&] (int num, ULONGEST start, ULONGEST end, ULONGEST file_ofs,
+ [&] (ULONGEST start, ULONGEST end, ULONGEST file_ofs,
const char *filename, const bfd_build_id *build_id)
{
/* Architecture-specific read_core_mapping methods are expected to
gdb::function_view<void (ULONGEST count)>;
using read_core_file_mappings_loop_ftype =
- gdb::function_view<void (int num,
- ULONGEST start,
+ gdb::function_view<void (ULONGEST start,
ULONGEST end,
ULONGEST file_ofs,
const char *filename,
/* Vector to collect proc mappings. */
struct proc_mapping
{
- int num;
ULONGEST start;
ULONGEST end;
ULONGEST file_ofs;
/* Collect proc mappings. */
for (int i = 0; i < count; i++)
{
- struct proc_mapping m = { .num = i };
+ struct proc_mapping m;
m.start = bfd_get (addr_size_bits, cbfd, descdata);
descdata += addr_size;
m.end = bfd_get (addr_size_bits, cbfd, descdata);
for (int i = 0; i < count; i++)
{
const auto &m = proc_mappings[i];
- loop_cb (m.num, m.start, m.end, m.file_ofs, m.filename, m.build_id);
+ loop_cb (m.start, m.end, m.file_ofs, m.filename, m.build_id);
}
}
current_uiout->table_header (0, ui_left, "objfile", "File");
current_uiout->table_body ();
},
- [=] (int num, ULONGEST start, ULONGEST end, ULONGEST file_ofs,
+ [=] (ULONGEST start, ULONGEST end, ULONGEST file_ofs,
const char *filename, const bfd_build_id *build_id)
{
ui_out_emit_tuple tuple_emitter (current_uiout, nullptr);