On Fri, Dec 4, 2009 at 7:14 PM, Chris Liechti <[email protected]> wrote:
> Ben Ransford schrieb:
>> Forgive me if I'm being naive, but is msp430-run (part of mspgcc's
>> gdb, apparently) meant to do anything useful?
>>
>> % cat > foo.c
>> int main (void) { return 0; }
>> % msp430-gcc -o foo.msp foo.c
>> % msp430-run foo.msp
>> ``foo.msp'' has no bss section.
>
> there was once a bug so that GDB refuses to load files with no global
> variables. and this sounds like exactly this problem. try defining a
> global variable like:
> unsigned dummy; // no init value so that it gets into .bss

Thanks, Chris, for your reply and for your hard work on mspgcc.
msp430-run no longer complains about my program -- now it segfaults
instead. :-)

% cat foo.c
unsigned dummy;
int main (void) { return 0; }
% msp430-gcc -o foo.msp foo.c
% msp430-run foo.msp
zsh: 30910 segmentation fault  msp430-run foo.msp

I guess msp430-run is unpopular.  Maybe I'll bang on it again in a few
months.  In the meantime, I'm going to bend mspsim to my needs.
Thanks again for replying.

-ben

Reply via email to