[OB PATCH] target.h (to_traceframe_info): Fix TARGET_DEFAULT_RETURN

Yao Qi yao@codesourcery.com
Tue Mar 4 01:38:00 GMT 2014


On 03/04/2014 09:18 AM, Hui Zhu wrote:
> I cannot understand about this OB is not right.  I have 2 questions to you:
> 1. Before my patch, does target-delegates.c that generated by make-target-delegates is same with current target-delegates.c?

No, as I said, I forgot to re-generate target-delegates.c.

> 2. Does this new target-delegates.c that generated by make-target-delegates can be built success?

No, we should use TARGET_DEFAULT_NORETURN instead of
TARGET_DEFAULT_RETURN, which is a mistake when I resolved conflicts.

    struct traceframe_info *(*to_traceframe_info) (struct target_ops *)
       TARGET_DEFAULT_NORETURN (tcomplain ());

-- 
Yao (齐尧)



More information about the Gdb-patches mailing list