Adam Bark wrote: > 2008/8/5 Yuri Malinovski <[email protected]> > >> On Tue, Aug 5, 2008 at 1:34 AM, Adam Bark <[email protected]> wrote: >> > Hi, I'm working on an F1612 here from linux. I can load code onto the >> flash >> > and run it but if i try to print a variable I get this from gdb: >> > No symbol table is loaded. Use the "file" command. >> > How can i access variables? >> > Thanks, >> > Adam. >> >> Hi Adam, >> I had similar problem before. Had solved it by adding symbol-file >> command to my .gdbinit file. So my .gdbinit file now looks like this: >> #-----8<----- cut --------------------- >> target remote localhost:3333 >> set remoteaddresssize 64 >> set remotetimeout 999999 >> monitor erase all >> symbol-file program.elf >> load program.elf >> #-----8<----- cut --------------------- >> Hope that helps. >> >> Yuri Malinovski. > > > Thanks for the info Yuri, it looked good but for some reason I got this > error: > Reading symbols from ADCtest...partial-stab.h:441: gdb-internal-error: > sect_index_data not initialized > > Any idea what the problem could be? > Thanks, > Adam.
I don't know what version of gdb you are using, but you may try with another one. Regards, -- Raúl Sánchez Siles
