On Wed, Aug 29, 2012 at 02:47:18AM -0500, Gabriel Dos Reis wrote: > On Wed, Aug 29, 2012 at 2:22 AM, Ian Lance Taylor <i...@google.com> wrote: > > > Does this seem like something we could usefully add to GCC? > > Emphatically, yes!.
I also think it would be very useful. BTW, MELT has also such a feature (which proved extremely useful in daily use, so I am sure that if something existed in GCC it would help a lot many GCC developers), but it is simpler because MELT call frames are explicit (linked) C struct-s (generated by the MELT translator), and there is some location slot inside them. So MELT can output backtraces like e.g. SHORT BACKTRACE[#0] warmelt-first.melt:2809: MELT CHECK: meltmod__warmelt_first__initialmeltchunk_39 {putroutconst constnull.drout_3199__INITVALUE_EXPORTER#0}; #1:_ warmelt-first.melt:2801:/ initchunk #2:_ melt-runtime.c:9000:: meltgc_start_module_by_index before starting #1 /usr/src/Lang/basile-melt-gcc/gcc/melt/generated/warmelt-first #3:_ melt-runtime.c:9038:: meltgc_start_all_new_modules before starting #1 module /usr/src/Lang/_Obj_Melt_Basile/gcc/meltbuild-stage0-dynamic/warmelt-first.meltmod-675464a27b5d1fd9709f280cd71315ef.dynami #4:_ melt-runtime.c:9675:: meltgc_load_modules_and_do_mode before loading curmod meltbuild-stage0-dynamic/warmelt-modes.dynamic Cheers. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mines, sont seulement les miennes} ***