I am not sure with LILO or Grub, but embedded boot loaders like Redboot come with gdb stubs which allow us to debug it Regards, P. Srikanth ----- Original Message ----- Subject: Re: Kdb help > i m not talking about kdb, but i think a debugger can be written in > assembly and put in the MBR of machine. In that case, that debugger can > be used for debugging boot loader. > correct me if i m wrong > Thanks > Anurag > On Wed, 2005-07-13 at 21:18, Meenal Gupta wrote: > > Hi > > Even i m a newbie still i am trying to answer. I think that you can > > not debug boot loader using KDB because KDB is part of kernel sources > > and source code for boot loader (lilo, grub) should be independent of > > it. So if KDB implemented in the kernel so how can you use that to > > debug your loader ? > > > > Even in theory i read that work of loader is to load the OS thats all. > > So loader is part of program which loads the kernel itself so this > > also gives feeling that you can not debug loader. > > > > Correct me if i am wrong and sorry if i have misinterpreted the things. > > > > Best Regards > > Meenal > > > > On 7/13/05, Rahul T <gr8rahul@xxxxxxxxx> wrote: > > > Hi all, > > > i have read that we can use kdb even at boot time. > > > However i am not able to find out that upto which low level can i go > > > and use kdb. > > > i.e. (for e.g.)can i debug the boot loader itself. > > > > > > plz let me know. > > > Thanks in advance > > > > > > Regards, > > > rahul > > > > > > -- > > > Kernelnewbies: Help each other learn about the Linux kernel. > > > Archive: http://mail.nl.linux.org/kernelnewbies/ > > > FAQ: http://kernelnewbies.org/faq/ > > > > > > > > > > -- > > Kernelnewbies: Help each other learn about the Linux kernel. > > Archive: http://mail.nl.linux.org/kernelnewbies/ > > FAQ: http://kernelnewbies.org/faq/ > > > > > **************************************************************************** **** > Network Programs is a SEI-CMM Level 5 & ISO 9001: 2000 Certified Company > **************************************************************************** **** > The information contained in this communication (including any attachments) is > intended solely for the use of the individual or entity to whom it is addressed > and others authorized to receive it. It may contain confidential or legally > privileged information. If you are not the intended recipient you are hereby > notified that any disclosure, copying, distribution or taking any action in > reliance on the contents of this information is strictly prohibited and may be > unlawful. If you have received this communication in error, please notify us > immediately by responding to this email and delete it from your system. > Network Programs (India) Limited is neither liable for the proper and complete > transmission of the information contained in this communication nor for any > delay in its receipt. > **************************************************************************** **** > > ---------------------------------------------------------------------------- ---- Internal Virus Database is out-of-date. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.9.10 - Release Date: 4/14/05 -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/