Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 0/2] Test case on entry values
@ 2013-08-13  7:41 Yao Qi
  2013-08-13  7:41 ` [PATCH 1/2] Test case for " Yao Qi
  2013-08-13  7:41 ` [RFC 2/2] Test entry values in trace frame Yao Qi
  0 siblings, 2 replies; 31+ messages in thread
From: Yao Qi @ 2013-08-13  7:41 UTC (permalink / raw)
  To: gdb-patches

Hi,
In the review of the patch which adds '--skip-unavailable' to skip
unavailable locals and arguments, Pedro pointed that "entry value" should be
considered too.  The code is not hard, but the test case is harder than the
code.  We have to make sure that 1) necessary DIEs are generated, 2) set up
a case that argument is available but entry value is not.

We choose the test to arguments and entry values when GDB is examining trace
frames, because something can be unavailable.  This situation is not tested
in current testsuite, and this test can be reviewed committed independently.

Patch 1/2 is to generate dwarf using Dwarf Assembler to test "entry values"
are shown correctly.  At this point, gdb.trace/entry-values.exp is still
a dwarf test, nothing to do with trace.  Patch 2/2 is to use tracepoint,
to collect data, to test what happen when argument is available and entry
value is not.

Most of gdb.trace/etnry-values.exp is a dwarf test, and we can move them
to gdb.dwarf2 and copy necessary bits in gdb.trace.  I didn't do that
because it will cause some duplication.

*** BLURB HERE ***

Yao Qi (2):
  Test case for entry values.
  Test entry values in trace frame

 gdb/testsuite/gdb.trace/entry-values.c   |   50 ++++++
 gdb/testsuite/gdb.trace/entry-values.exp |  274 ++++++++++++++++++++++++++++++
 gdb/testsuite/lib/dwarf.exp              |    8 +
 3 files changed, 332 insertions(+), 0 deletions(-)
 create mode 100644 gdb/testsuite/gdb.trace/entry-values.c
 create mode 100644 gdb/testsuite/gdb.trace/entry-values.exp

-- 
1.7.7.6


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

end of thread, other threads:[~2013-09-11 13:27 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-13  7:41 [PATCH 0/2] Test case on entry values Yao Qi
2013-08-13  7:41 ` [PATCH 1/2] Test case for " Yao Qi
2013-08-20 17:39   ` Tom Tromey
2013-08-21  5:55     ` Yao Qi
2013-08-21 15:02       ` Tom Tromey
2013-08-22  0:12         ` Yao Qi
2013-08-22 14:05           ` Tom Tromey
2013-08-23  0:27             ` Yao Qi
2013-08-23 19:23               ` Tom Tromey
2013-08-24  1:56                 ` Yao Qi
2013-08-30 14:52   ` Vidya Praveen
2013-08-30 15:29     ` Vidya Praveen
2013-08-31  0:22       ` Yao Qi
2013-09-10 15:30         ` Vidya Praveen
2013-09-10 23:44           ` Yao Qi
2013-09-11 13:27             ` Vidya Praveen
2013-08-13  7:41 ` [RFC 2/2] Test entry values in trace frame Yao Qi
2013-08-20 17:48   ` Tom Tromey
2013-08-21  6:06     ` Yao Qi
2013-08-21 14:35       ` [PATCH] PR gdb/15871: Unavailable entry value is not shown correctly Pedro Alves
2013-08-21 14:47         ` Mark Kettenis
2013-08-21 15:32           ` Pedro Alves
2013-08-21 15:43             ` Mark Kettenis
2013-08-22  1:25             ` Yao Qi
2013-08-22 10:04               ` [COMMIT] " Pedro Alves
2013-08-23  1:08                 ` Yao Qi
2013-08-23 16:50                   ` Pedro Alves
2013-08-23  0:32       ` [RFC 2/2] Test entry values in trace frame Yao Qi
2013-08-23 17:04         ` Pedro Alves
2013-08-23 19:16           ` Tom Tromey
2013-08-24  1:56             ` Yao Qi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox