This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
> >> Because we use the stabs debugging format, we could simply link in >> a module which defines a 'main stab'. gdb honors this stab type, and >> treats the name given with this stab like 'main'. In particular, >> backtraces stop at this function. > >This sounds very promising! Do you set the stab type somewhere on >assembly level or is there a nifty GCC __attribute__(()) thingy? > I simply created a small assembler module, the line .stabs "myentry",42,0,0,0 designates "myentry" as 'main function'. 42 is the Stab type N_MAIN. This may also work with inline assembly, but I didn't try. Regards D.Ruppert ePS&RTS GmbH dieter_ruppert@siemens.com ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |