[pushed] Remove dwarf_expr_baton

Message ID 20200212214142.409-1-tom@tromey.com
State New, archived
Headers

Commit Message

Tom Tromey Feb. 12, 2020, 9:41 p.m. UTC
  The type dwarf_expr_baton is unused and can be removed.

gdb/ChangeLog
2020-02-12  Tom Tromey  <tom@tromey.com>

	* dwarf2/loc.c (struct dwarf_expr_baton): Remove.

Change-Id: Id8342da31398b9b4b08f31be7c3d612e9590bbbf
---
 gdb/ChangeLog    | 4 ++++
 gdb/dwarf2/loc.c | 9 ---------
 2 files changed, 4 insertions(+), 9 deletions(-)
  

Patch

diff --git a/gdb/dwarf2/loc.c b/gdb/dwarf2/loc.c
index ad13e8920ff..7f27e453b30 100644
--- a/gdb/dwarf2/loc.c
+++ b/gdb/dwarf2/loc.c
@@ -423,15 +423,6 @@  dwarf2_find_location_expression (struct dwarf2_loclist_baton *baton,
     }
 }
 
-/* This is the baton used when performing dwarf2 expression
-   evaluation.  */
-struct dwarf_expr_baton
-{
-  struct frame_info *frame;
-  struct dwarf2_per_cu_data *per_cu;
-  CORE_ADDR obj_address;
-};
-
 /* Implement find_frame_base_location method for LOC_BLOCK functions using
    DWARF expression for its DW_AT_frame_base.  */