diff options
Diffstat (limited to 'gdb/testsuite/gdb.base/jit-reader.c')
-rw-r--r-- | gdb/testsuite/gdb.base/jit-reader.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/jit-reader.c b/gdb/testsuite/gdb.base/jit-reader.c index 414be07..d3d007d 100644 --- a/gdb/testsuite/gdb.base/jit-reader.c +++ b/gdb/testsuite/gdb.base/jit-reader.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2009-2024 Free Software Foundation, Inc. +/* Copyright (C) 2009-2025 Free Software Foundation, Inc. This file is part of GDB. @@ -62,6 +62,18 @@ read_debug_info (struct gdb_reader_funcs *self, (GDB_CORE_ADDR) symfile->function_stack_mangle.end, "jit_function_stack_mangle"); + /* Add some line table information. This ensures that GDB can handle + accepting this information, and can scan the table. However, this + information is constructed such that none of the tests actually hit any + of these line entries. */ + struct gdb_line_mapping mangle_lines[] = + { + { 1, (GDB_CORE_ADDR) symfile->function_stack_mangle.begin + 0 }, + { 0, (GDB_CORE_ADDR) symfile->function_stack_mangle.begin + 1 }, + }; + int mangle_nlines = sizeof (mangle_lines) / sizeof (mangle_lines[0]); + cbs->line_mapping_add (cbs, symtab, mangle_nlines, mangle_lines); + cbs->block_open (cbs, symtab, NULL, (GDB_CORE_ADDR) symfile->function_add.begin, (GDB_CORE_ADDR) symfile->function_add.end, |