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: [BUG] BINOP_DIV and ptyp command


On Jan 29, 2008 8:03 AM, Doug Evans <dje@google.com> wrote:
> I can't tell if that's a fun comment for grin's sake or not.  I can
> flip my pedantic bit and argue the same thing.  Obviously "ptype
> int+int" is "int".
>
> In this particular case having to hack whatis-exp.exp to "pass" until
> the general bug is fixed is ok by me - is anyone relying on ptype 4/2
> to be int whereas ptype 4*2 is long?

For completeness' sake, while my pedantic bit is flipped,
One premise of this particular comment is that it assumes one
particular definition of EVAL_AVOID_SIDE_EFFECTS.  If E_A_S_E is
indeed intended to mean to avoid calling error() (which isn't
unreasonable), then that changes the premise.

To make progress here (and those who have worked on gdb longer
probably know the complete definition of E_A_S_E already - they take
it as a given - I can't) it would be nice to at least have a full and
correct definition of EVAL_AVOID_SIDE_EFFECTS at its definition site.


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