This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 0/2] PR 19947: throw right exception in read_code and read_stack


Hi,
Patch 1 triggers PR 19947, because it uses -fno-asynchronous-unwind-tables
in the compilation of test case, so that there is no DWARF info, and GDB
has to choose prologue unwinder.  In this way, the prologue unwinder can
be tested under the situation that memory/register is not available.

Patch 2 is the fix, by throwing the right exception in read_code and
read_stack.  See details in patch 2.

Regression tested on x86_64-linux.

*** BLURB HERE ***

Yao Qi (2):
  Use -fno-asynchronous-unwind-tables if C program is compiled without
    debug info on x86
  Throw NOT_AVAILABLE_ERROR in read_stack and read_code

 gdb/corefile.c            | 29 +++++++++++++++--------------
 gdb/testsuite/lib/gdb.exp |  9 +++++++++
 2 files changed, 24 insertions(+), 14 deletions(-)

-- 
1.9.1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]