[OSy] gdb how

Artur Finger fingerartur at gmail.com
Tue Nov 8 11:37:04 CET 2016


I'm getting this:

target remote localhost:3000

> warning: No executable has been specified and target does not support
> determining executable automatically.  Try using the "file" command.

0x00000000 in ?? ()
>
(gdb) break frame_init

> Breakpoint 1 at 0x8000b150: file mm/falloc.c, line 100.
>
(gdb) c

> Continuing.
> Warning:
> Cannot insert breakpoint 1.
> Cannot access memory at address 0x8000b150
>
Command aborted.
>


On 8 November 2016 at 08:04, Jan Hrach <jenda at yakumo.hrach.eu> wrote:

> $ msim -g 3000
>
> $ gdb   (the mipsel version, of course)
> symbol-file kernel/kernel.raw
> set endian little
> target remote localhost:3000
> break frame_init
> c
> p npages
>
>
> On 8.11.2016 07:54, Artur Finger wrote:
> > Hello, could you please give me a simple example of how to debug
> function frame_init() (in mm/falloc.c) with gdb? (eg. look at the value of
> variable A in frame_init())
> >
> > Have a nice day,
> > Artur Finger
> >
> >
> > _______________________________________________
> > OSy mailing list
> > OSy at d3s.mff.cuni.cz
> > https://d3s.mff.cuni.cz/mailman/listinfo/osy
> >
>
>
> --
> Jan Hrach | https://jenda.hrach.eu/
> GPG CD98 5440 4372 0C6D 164D A24D F019 2F8E 6527 282E
>
> _______________________________________________
> OSy mailing list
> OSy at d3s.mff.cuni.cz
> https://d3s.mff.cuni.cz/mailman/listinfo/osy
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://d3s.mff.cuni.cz/pipermail/nswi004/attachments/20161108/c5b58aa6/attachment.html>


More information about the NSWI004 mailing list