Re: Kdb - Invalid address for breakpoint, ignoring bp command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Sep 19, 2009 at 6:58 PM, Loic Pefferkorn
<loic-kernelnewbies@xxxxxxxxxxxxx> wrote:
> Hello,
>
> I'm trying to put a breakpoint on do_sys_open function through Kdb on a
> linux-2.6.30 with the command:
>
> kdb> bp do_sys_open
>
> But I get the following error:
>
> Invalid address for breakpoint, ignoring bp command
> diag: -21: Invalid address
> kdb>
>
> However I'm able to disassemble this function using id command, which means
> do_sys_open symbol is known to kdb.
>
> Does someone has an idea about this error ?
>
> Thanks in advance
> Loic

Not a very specific idea. The fact that you can dissasemble
do_sys_open means the symbol is resolvable. Thus I suspect it is
either a bug in KDB  or KDB is unable to put a breakpoint in that
respective address since the instruction(s) in that address is still
actively executed, thus it can not be replaced with trapping
instruction ( INT 3 right? or something like that)

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer
blog: the-hydra.blogspot.com

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux