Re: abort() traceability

2009-06-15 Thread Ben Pfaff
Simon Josefsson writes: > Sam Steingold writes: > >> Ben Pfaff wrote: >>> Bruno Haible writes: >>> What do the others think? Should we possibly extend stdlib.in.h so that abort() becomes a macro that produces a detailed error message, similar to what assert() does? >>> >>> Just c

Re: abort() traceability

2009-06-15 Thread Simon Josefsson
Sam Steingold writes: > Ben Pfaff wrote: >> Bruno Haible writes: >> >>> What do the others think? Should we possibly extend stdlib.in.h so that >>> abort() becomes a macro that produces a detailed error message, similar to >>> what assert() does? >> >> Just changing abort() to assert(0) would im

Re: abort() traceability

2009-06-15 Thread Sam Steingold
Ben Pfaff wrote: Bruno Haible writes: What do the others think? Should we possibly extend stdlib.in.h so that abort() becomes a macro that produces a detailed error message, similar to what assert() does? Just changing abort() to assert(0) would improve the diagnostics significantly. Sound

Re: abort() traceability

2009-06-15 Thread Ben Pfaff
Bruno Haible writes: > What do the others think? Should we possibly extend stdlib.in.h so that > abort() becomes a macro that produces a detailed error message, similar to > what assert() does? Just changing abort() to assert(0) would improve the diagnostics significantly. -- Ben Pfaff http://

Re: abort() traceability

2009-06-15 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Bruno Haible on 6/15/2009 2:08 AM: > What do the others think? Should we possibly extend stdlib.in.h so that > abort() becomes a macro that produces a detailed error message, similar to > what assert() does? Only if you name it something

Re: abort() traceability

2009-06-15 Thread Bruno Haible
Sam Steingold wrote: > I am not saying that abort() is wrong. > I am saying that it must be accompanied by a meaningful message. OK, this is a different issue. > E.g, "Gnulib.drop_privileges_permanently: failed to drop privileges". > Or just "Error A23Z51DT97". > Then the user can google for the