Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1321078

Re: [PATCH 30/31] Add debugger entry points for SPARC

From Sam Ravnborg <sam@ravnborg.org>
Newsgroups linux.kernel
Subject Re: [PATCH 30/31] Add debugger entry points for SPARC
Date 2016-01-28 22:40 +0100
Message-ID <qW2si-Yt-9@gated-at.bofh.it> (permalink)
References <qW0JQ-8ef-33@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Jeff.

> +++ b/arch/sparc/include/asm/kdebug.h
> @@ -5,4 +5,9 @@
>  #else
>  #include <asm/kdebug_32.h>
>  #endif
> +
> +static inline void arch_breakpoint(void)
> +{
> +	asm("ta	$0x7d");
> +}
>  #endif
There seems to be some debugger infrastructure present already for kgdb,
but I assume this cannot be used.
Anyway - trap 0x7d is a debugger trap in sparc32.
If CONFIG_KGDB is not defined then 0x7d is just a regular BAD_TRAP.

For sparc64 trap 0x7d is something different.
I did not conclude what was the right choice for neither.

	Sam

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 30/31] Add debugger entry points for SPARC Jeffrey Merkey <jeffmerkey@gmail.com> - 2016-01-28 20:50 +0100
  Re: [PATCH 30/31] Add debugger entry points for SPARC Sam Ravnborg <sam@ravnborg.org> - 2016-01-28 22:40 +0100
    Re: [PATCH 30/31] Add debugger entry points for SPARC Jeffrey Merkey <jeffmerkey@gmail.com> - 2016-01-28 22:40 +0100
  Re: [PATCH 30/31] Add debugger entry points for SPARC kbuild test robot <lkp@intel.com> - 2016-01-28 22:40 +0100
  Re: [PATCH 30/31] Add debugger entry points for SPARC kbuild test robot <lkp@intel.com> - 2016-01-28 22:50 +0100

csiph-web