[0/3] On-demand debuginfo downloading

Message ID 20241128035402.438052-1-amerey@redhat.com
Headers
Series On-demand debuginfo downloading |

Message

Aaron Merey Nov. 28, 2024, 3:53 a.m. UTC
  Patch set that adds support for lazy/on-demand downloading of debuginfo
as well as .gdb_index, .debug_line and .debug_line_str ELF section
downloading.  See patch 2/3 commit message for details.

All three patches in this series have been rebased onto gdb's current
master branch

Aaron Merey (3):
  gdb/progspace: Add reverse safe iterator
  gdb/debuginfod: Support on-demand debuginfo downloading
  gdb/debuginfod: Add .debug_line downloading

 gdb/cli-out.c                              |  11 +-
 gdb/completer.c                            |  18 +-
 gdb/dwarf2/frame.c                         |  13 +
 gdb/dwarf2/frame.h                         |   4 +
 gdb/dwarf2/index-cache.c                   |  22 +-
 gdb/dwarf2/index-cache.h                   |  11 +
 gdb/dwarf2/line-header.c                   | 161 +++++++---
 gdb/dwarf2/line-header.h                   |  10 +
 gdb/dwarf2/public.h                        |   5 +
 gdb/dwarf2/read-gdb-index.c                | 133 +++++++-
 gdb/dwarf2/read.c                          | 352 ++++++++++++++++++++-
 gdb/dwarf2/read.h                          |  42 +++
 gdb/dwarf2/section.c                       |   6 +-
 gdb/elfread.c                              |   3 +-
 gdb/frame.c                                |  27 +-
 gdb/jit.c                                  |   7 +-
 gdb/mi/mi-out.c                            |   9 +-
 gdb/objfile-flags.h                        |   4 +
 gdb/objfiles.c                             |  16 +-
 gdb/objfiles.h                             |  36 ++-
 gdb/progspace.c                            |  19 +-
 gdb/progspace.h                            |  30 +-
 gdb/quick-symbol.h                         |   4 +
 gdb/symfile-debug.c                        |  45 ++-
 gdb/symfile.c                              |  12 +-
 gdb/symtab.c                               |  18 +-
 gdb/testsuite/gdb.debuginfod/libsection1.c |  43 +++
 gdb/testsuite/gdb.debuginfod/libsection2.c |  37 +++
 gdb/testsuite/gdb.debuginfod/section.c     |  29 ++
 gdb/testsuite/gdb.debuginfod/section.exp   | 185 +++++++++++
 gdb/testsuite/gdb.python/py-objfile.exp    |   2 +-
 gdb/testsuite/lib/debuginfod-support.exp   |  25 +-
 gdb/testsuite/lib/gdb.exp                  |   8 +-
 gdb/ui-out.c                               |   3 +
 gdb/ui-out.h                               |  20 ++
 gdbsupport/safe-iterator.h                 | 118 +++++++
 36 files changed, 1358 insertions(+), 130 deletions(-)
 create mode 100644 gdb/testsuite/gdb.debuginfod/libsection1.c
 create mode 100644 gdb/testsuite/gdb.debuginfod/libsection2.c
 create mode 100644 gdb/testsuite/gdb.debuginfod/section.c
 create mode 100644 gdb/testsuite/gdb.debuginfod/section.exp