All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Roland McGrath <roland@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
	linux-kernel@vger.kernel.org,
	Jason Wessel <jason.wessel@windriver.com>
Subject: Re: [PATCH] Pass -g to assembler under CONFIG_DEBUG_INFO
Date: Wed, 11 Jul 2007 14:09:11 -0700	[thread overview]
Message-ID: <20070711140911.707fcfaa.akpm@linux-foundation.org> (raw)
In-Reply-To: <20070711185334.1B8894D0555@magilla.localdomain>

On Wed, 11 Jul 2007 11:53:34 -0700 (PDT)
Roland McGrath <roland@redhat.com> wrote:

> 
> The assembler for a while now supports -g to generate source line info just
> like the C compiler does.  Source-level assembly debugging sounds like an
> oxymoron, but it is handy to be able to see the right source file and read
> its comments rather than just the disassembly.  This patch enables -g for
> assembly files when CONFIG_DEBUG_INFO=y and the assembler supports the option.
> 
> Signed-off-by: Roland McGrath <roland@redhat.com>
> ---
>  Makefile |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/Makefile b/Makefile
> index 8a3c271..88b2252 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -498,6 +498,7 @@ endif
>  
>  ifdef CONFIG_DEBUG_INFO
>  CFLAGS		+= -g
> +AFLAGS		+= $(call as-option, -g)
>  endif
>  
>  # Force gcc to behave correct even for buggy distributions

Jason's kgdb tree does

AFLAGS		+= -gdwarf2

(for all architectures!)  Which is better?

  reply	other threads:[~2007-07-11 21:09 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-11 18:53 [PATCH] Pass -g to assembler under CONFIG_DEBUG_INFO Roland McGrath
2007-07-11 21:09 ` Andrew Morton [this message]
2007-07-11 21:30   ` Roland McGrath
2007-07-11 22:37     ` Jason Wessel
2007-07-11 22:43       ` Roland McGrath
2007-07-11 23:03         ` Andrew Morton
2007-07-11 23:07           ` Roland McGrath
2007-07-11 23:15           ` Andreas Schwab
2007-07-11 23:19             ` Roland McGrath
2007-07-11 23:27               ` Andreas Schwab
2007-07-11 23:40           ` Linus Torvalds
2007-07-11 23:53             ` Andrew Morton
2007-07-12  8:23               ` Jan Engelhardt
2007-07-14  1:08               ` Adrian Bunk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070711140911.707fcfaa.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=jason.wessel@windriver.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=roland@redhat.com \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.