KGDB_ARCH_HANDLE_EXC(9) KGDB Internals KGDB_ARCH_HANDLE_EXC(9)NAME
kgdb_arch_handle_exception - Handle architecture specific GDB packets.
SYNOPSIS
int kgdb_arch_handle_exception(int vector, int signo, int err_code, char * remcom_in_buffer, char * remcom_out_buffer,
struct pt_regs * regs);
ARGUMENTS
vector
The error vector of the exception that happened.
signo
The signal number of the exception that happened.
err_code
The error code of the exception that happened.
remcom_in_buffer
The buffer of the packet we have read.
remcom_out_buffer
The buffer of BUFMAX bytes to write a packet into.
regs
The struct pt_regs of the current process.
DESCRIPTION
This function MUST handle the 'c' and 's' command packets, as well packets to set / remove a hardware breakpoint, if used. If there are
additional packets which the hardware needs to handle, they are handled here. The code should return -1 if it wants to process more
packets, and a 0 or 1 if it wants to exit from the kgdb callback.
AUTHORS
Jason Wessel <jason.wessel@windriver.com>
Author.
Tom Rini <trini@kernel.crashing.org>
Author.
Amit S. Kale <amitkale@linsyssoft.com>
Author.
COPYRIGHT Kernel Hackers Manual 2.6. July 2010 KGDB_ARCH_HANDLE_EXC(9)
Check Out this Related Man Page
STRUCT KGDB_ARCH(9) Kernel Debugger Internals STRUCT KGDB_ARCH(9)NAME
struct_kgdb_arch - Describe architecture specific values.
SYNOPSIS
struct kgdb_arch {
unsigned char gdb_bpt_instr[BREAK_INSTR_SIZE];
unsigned long flags;
int (* set_breakpoint) (unsigned long, char *);
int (* remove_breakpoint) (unsigned long, char *);
int (* set_hw_breakpoint) (unsigned long, int, enum kgdb_bptype);
int (* remove_hw_breakpoint) (unsigned long, int, enum kgdb_bptype);
void (* disable_hw_break) (struct pt_regs *regs);
void (* remove_all_hw_break) (void);
void (* correct_hw_break) (void);
void (* enable_nmi) (bool on);
};
MEMBERS
gdb_bpt_instr[BREAK_INSTR_SIZE]
The instruction to trigger a breakpoint.
flags
Flags for the breakpoint, currently just KGDB_HW_BREAKPOINT.
set_breakpoint
Allow an architecture to specify how to set a software breakpoint.
remove_breakpoint
Allow an architecture to specify how to remove a software breakpoint.
set_hw_breakpoint
Allow an architecture to specify how to set a hardware breakpoint.
remove_hw_breakpoint
Allow an architecture to specify how to remove a hardware breakpoint.
disable_hw_break
Allow an architecture to specify how to disable hardware breakpoints for a single cpu.
remove_all_hw_break
Allow an architecture to specify how to remove all hardware breakpoints.
correct_hw_break
Allow an architecture to specify how to correct the hardware debug registers.
enable_nmi
Manage NMI-triggered entry to KGDB
AUTHOR
Jason Wessel <jason.wessel@windriver.com>
Author.
COPYRIGHT Kernel Hackers Manual 3.10 June 2014 STRUCT KGDB_ARCH(9)
hi,
i hav array of following struct which contains 50 elements. I want to
print only first feild of the struct ie name field in GDB debuggure.
struct node {
char name ;
int age;
char sex;
int location
} SS
... (4 Replies)
Hi, all:
I am using the KGDB to debug my own network driver on linux. But I suspect if my KGDB work nomally. When I set a breakpoint at "do_one_initcall" function, the kernel function that will call my driver module, and continue to reach there, the "step" command of GDB cannot enter into my... (3 Replies)
The standard return code when everything goes right is 0, but what about using any other number something happened? Are there "ranges" depending on the kind of problem you want to express or is totally up to the programmer? (3 Replies)