Re: Bug in i386_process_record?

Eli Zaretskii
2009-08-26T03:19:23Z

> From: Hui Zhu <teawater@gmail.com>
> Date: Wed, 26 Aug 2009 10:58:39 +0800
> Cc: msnyder@vmware.com, gdb-patches@sourceware.org
>
> I add some code about it:
> regcache_raw_read_unsigned (ir.regcache,
> ir.regmap[X86_RECORD_ES_REGNUM],
> &es);
> regcache_raw_read_unsigned (ir.regcache,
> ir.regmap[X86_RECORD_DS_REGNUM],
> &ds);
> if (ir.aflag && (es != ds))
> {
>
> After that, we will not get the warning because the es is same with ds
> in user level.
>
> What do you think about it?

Sounds good to me.