[OSy] gdb how

Jan Hrach jenda at yakumo.hrach.eu
Tue Nov 8 08:04:03 CET 2016


$ 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




More information about the NSWI004 mailing list