[OSy] gdb how
Artur Finger
fingerartur at gmail.com
Wed Nov 9 09:05:01 CET 2016
I also had to change compiler optimizations from O2 to O0 to actually be
able to debug anything (in kernel/Makefile CFLAGS). But now I'm facing
another issue. GDB says that _kernel_end == 0. (If I run it on unmodified
Kalisto.) (_kernel_end should be the first free address after kernel.) Is
this related to the gdb settings? Or how do I fix it?
Have a lovely day,
Artur Finger
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/20161109/844d6401/attachment.html>
More information about the NSWI004
mailing list