This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH V5 2/2] Add mpx-bnd-init-on-return set/show command for inferior calls.


Walfred Tedeschi <walfred.tedeschi@intel.com> writes:

> When using the return command, execution of a function is aborted
> and present values are returned from that point.  That can cause
> bound violations in the MPX context.  To avoid such side-effects,
> a new setting ("mpx-bnd-init-on-return") was added to control
> the initialization of bound register when using the return command.
>

We need to investigate why does "return" cause bound violations.  If the
violations are caused by the invalid or garbage return value, that is
expected, and it is a correct behavior to me.  If the return value is
out of the bounds of registers settings, the violation is caused.  Can we
tweak GDB to adjust the register settings to allow these memory accesses
in the "return"?

-- 
Yao (éå)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]