public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Fix fails in gdb.mi on arm-none-eabi
@ 2014-09-01  1:02 Yao Qi
  2014-09-01  1:03 ` [PATCH 1/3] Set print symbol off in mi-var-display.exp Yao Qi
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Yao Qi @ 2014-09-01  1:02 UTC (permalink / raw)
  To: gdb-patches

Hi,
This series fixes some fails in mi-var-child.exp and
mi-var-display.exp, which are caused by printed symbol on address
zero.  One of them is fixed by "set print symbol" off, and that is
what patch 1/3 does.  Patch 2/3 is a refactor patch, which uses
mi_varobj_update in tests to simplify them.

The cause of the rest of fails is that function pointers are NULL,
and they point to a code symbol _ftext on address zero.  We can
relax pattern to match both "0x0" and "0x0 <_ftext>", but I didn't
fix it in this way.  Instead, I explicitly assign function address
to these function pointers, so the output becomes "$hex <$func_name>"
on all the targets.  See details in patch 3/3.

The patch series is tested on x86_64-linux with native and gdbserver,
and arm-none-eabi.

*** BLURB HERE ***

Yao Qi (3):
  Set print symbol off in mi-var-display.exp
  Use mi_varobj_update in mi-var-child.exp and mi2-var-child.exp
  Fix fail in mi-var-child.exp and mi-var-display.exp

 gdb/testsuite/gdb.mi/mi-var-child.c     | 18 +++++++
 gdb/testsuite/gdb.mi/mi-var-child.exp   | 92 ++++++++++++++++++++-------------
 gdb/testsuite/gdb.mi/mi-var-display.exp |  5 +-
 gdb/testsuite/gdb.mi/mi2-var-child.exp  | 74 ++++++++++++++------------
 gdb/testsuite/gdb.mi/var-cmd.c          | 16 ++++++
 5 files changed, 135 insertions(+), 70 deletions(-)

-- 
1.9.3

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

end of thread, other threads:[~2014-10-14 11:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-01  1:02 [PATCH 0/3] Fix fails in gdb.mi on arm-none-eabi Yao Qi
2014-09-01  1:03 ` [PATCH 1/3] Set print symbol off in mi-var-display.exp Yao Qi
2014-09-09  2:12   ` Yao Qi
2014-09-01  1:03 ` [PATCH 2/3] Use mi_varobj_update in mi-var-child.exp and mi2-var-child.exp Yao Qi
2014-10-14 11:48   ` Yao Qi
2014-09-01  1:04 ` [PATCH 3/3] Fix fail in mi-var-child.exp and mi-var-display.exp Yao Qi
2014-10-14 11:49   ` Yao Qi
2014-09-18  1:05 ` [PATCH 0/3] Fix fails in gdb.mi on arm-none-eabi Yao Qi
2014-09-30 14:04   ` 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).