[patch] XFAIL gdb.cp/mb-inline.exp conditionally

Yao Qi yao@codesourcery.com
Thu Jun 16 06:36:00 GMT 2011


[I thought it was sent out last night, but I am still unable to see it
in gdb-patches@.  Send it again.]

In mb-inline.exp, breakpoint 1.2 is disabled, re-run program, and make
sure breakpoint 1.2 is still disabled and program will not hit it.  The
pre-condition is new inferior created by re-run is loaded at the exactly
same address as previous one.  However, it is not true on some systems,
such as uclinux.

On uclinux, new inferior is created on the different address, so status
of breakpoint location (enabled or disabled) will not be kept during
breakpoint updates.  breakpoint 1.2 become enabled, instead of disabled.
 This will make this FAIL,

  FAIL: gdb.cp/mb-inline.exp: continue with disabled breakpoint 1.2

This patch is to address this issue.  After this patch, in my uclinux
port, the test result is like this,

# of expected passes            9
# of expected failures          1

but, some times, we can get 10 PASSes, because the new inferior may be
created/loaded on the same address as previous one.

Note that I also considered to use setup_xfail for uclinux target, but
we may get a XPASS, so I didn't write patch in that way.

OK for mainline?

-- 
Yao (齐尧)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uclinux_mb_inline.patch
Type: text/x-patch
Size: 1651 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20110616/98bfdbd7/attachment.bin>


More information about the Gdb-patches mailing list