This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Several regressions and we branch soon.
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Walfred Tedeschi <walfred dot tedeschi at intel dot com>
- Cc: "Yao Qi \<qiyaoltc\ at gmail dot com\>\; Patrick Palka \<patrick\ at parcs dot ath dot cx\>\; Doug Evans \<dje\ at google dot com\>\; Keith Seitz \<keiths\ at redhat dot com\>\; gdb-patches" <gdb-patches at sourceware dot org>
- Date: Thu, 02 Jul 2015 11:09:49 +0100
- Subject: Re: Several regressions and we branch soon.
- Authentication-results: sourceware.org; auth=none
- References: <CADPb22SYnN52pqR+1UtR_Vr-1Yxzmx=OyMgnCD-OMcCL1GwAYg at mail dot gmail dot com> <CA+C-WL_uZdNj29-6u4MnqH-8zQt9Q20fzUb6b9nWHKJPCstY9A at mail dot gmail dot com> <CADPb22Rg2FySdxWo9VKb5WApPh-wdf946po9UXX-+kQ99bULug at mail dot gmail dot com> <5589BECB dot 7090200 at redhat dot com> <CADPb22RbcoyxPwwTTQCjSTdexN-D-gfWPd6doF2KbcMm074XyA at mail dot gmail dot com> <alpine dot DEB dot 2 dot 20 dot 8 dot 1506231742590 dot 4322 at idea> <86mvzpqq1z dot fsf at gmail dot com> <AC542571535E904D8E8ADAE745D60B194444379A at IRSMSX104 dot ger dot corp dot intel dot com> <86pp4cp8ii dot fsf at gmail dot com> <AC542571535E904D8E8ADAE745D60B1944445D44 at IRSMSX104 dot ger dot corp dot intel dot com> <5593B32F dot 6070503 at intel dot com>
Walfred Tedeschi <walfred.tedeschi@intel.com> writes:
>> - if program doesn't set mpx bounds at all, GDB attaches to the program,
>> and set mpx bounds, when GDB detaches from this program, does GDB
>> need to clear these mpx bounds it sets?
> In case program does not set bounds GDB will also not able to set
> bounds. Basically idea is to have bounds as variables.
> Once user has modified its done.
so GDB can only update and show the mpx bounds set in the program, is it correct?
>> - if program does set mpx bounds too (through mpx instructions or
>> compiler builtins), do we expect GDB to show these mpx bounds too?
> No. Same as above.
Your answer to Q1 is contradictive to it.
>> - If program sets mpx bounds through mxp instructions and GDB sets mpx
>> bounds too, does this interfere each other? or program's mxp bounds
>> setting is stored in bnd0-bnd3, but GDB's mpx bound setting is bound
>> directory and bound table, so this doesn't interfere each other?
>
> Yes. Like it happens with variables location dependent variables.
Sorry, I don't understand what does "Yes" mean to my alternative
question. What are "variables location dependent variables"?
> To be able to to set bounds also on registers and tables and make them
> sync we need debug information.
Can you elaborate on this? Why do we need debug information? AFAIK,
bounds are stored in either registers and tables, GDB can read them from
registers and tables, and show them.
> The solution by now is without. In this sense user has to know a bit
> of assembler to know where to set the bounds, for the case it being
> debugged.
--
Yao (éå)