public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] PR 19947: throw right exception in read_code and read_stack
@ 2016-04-19  7:50 Yao Qi
  2016-04-19  7:50 ` [PATCH 1/2] Use -fno-asynchronous-unwind-tables if C program is compiled without debug info on x86 Yao Qi
  2016-04-19  7:50 ` [PATCH 2/2] Throw NOT_AVAILABLE_ERROR in read_stack and read_code Yao Qi
  0 siblings, 2 replies; 11+ messages in thread
From: Yao Qi @ 2016-04-19  7:50 UTC (permalink / raw)
  To: gdb-patches

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-05-04 14:08 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-19  7:50 [PATCH 0/2] PR 19947: throw right exception in read_code and read_stack Yao Qi
2016-04-19  7:50 ` [PATCH 1/2] Use -fno-asynchronous-unwind-tables if C program is compiled without debug info on x86 Yao Qi
2016-04-19 13:35   ` Pedro Alves
2016-04-20  8:38     ` Yao Qi
2016-04-22 12:30       ` Pedro Alves
2016-04-22 14:23         ` Yao Qi
2016-04-22 14:36           ` Pedro Alves
2016-04-22 16:05             ` Yao Qi
2016-04-19  7:50 ` [PATCH 2/2] Throw NOT_AVAILABLE_ERROR in read_stack and read_code Yao Qi
2016-04-22 13:41   ` Pedro Alves
2016-05-04 14:08     ` Yao Qi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).