well...
basically gdb displays source lines when receives
        list sourcefile:lineno
but only 10 lines around lineno will be printed. Command
        set listsize 999999
will force gdb to display a million without one lines around current or 
requested line (most people say all lines of source file which is not 
microsloth one :)

Probably in you emacs settings a command 'list' missing or you have to type 
it.

hope this helps.
~d



On Wednesday 10 September 2003 16:03, Paolo Santinelli wrote:
> Yes, I compiled with "-g" option. I am able to use
> msp430-gdb alone ( in a dos window) or gdb + Insight.
>
> Under emacs I can send commands to gdb, set
> breakpoint, view code with "disassembler" command,
> exec. one instructions ... but the source code don't
> appears. When I run the program a new Emacs window
> appears with an "=>" arrow but without source code.
> There are two windows, a first used to send command
> to, and view answer from gdb, a second with only an
> arrow.
> Using the first window I am able to send command like
> "next 1", "step 1", after these command gdb answer
> with prompt "(gdb)". If I send "disass" I get the dump
> of assembler code (in the first window) and the second
> window sty blank (only the =>).
>
>
> ???
>
> Thanks.
>
> Paolo
>
> --- Chris Liechti <cliec...@gmx.net> wrote:
> > Paolo Santinelli wrote:
> > > I need run mspg430-gdb under Emacs.
> > >
> > > When I try to do it, Emacs buffer don't show the
> > > source code
> >
> > did you compile with the "-g" option. that embeds
> > debug information into
> > the elf object file, which is required for GDB to
> > locate the source.
> >
> > chris
>
> -------------------------------------------------------
>
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > Mspgcc-users mailing list
> > Mspgcc-users@lists.sourceforge.net
>
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Mspgcc-users mailing list
> Mspgcc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users

-- 
/*****************************************************************
     ("`-''-/").___..--''"`-._     (\   Dimmy the Wild     UA1ACZ
      `6_ 6  )   `-.  (     ).`-.__.`)  State Polytechnical Univ.
      (_Y_.)'  ._   )  `._ `. ``-..-'   Radio-Physics Departament
    _..`--'_..-_/  /--'_.' ,'           Saint Petersburg,  Russia
   (il),-''  (li),'  ((!.-'             +7 (812) 5403923, 5585314
 *****************************************************************/


Reply via email to