Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Yi Tang <yitang@itee.uq.edu.au>
Cc: gdb@sourceware.org
Subject: Re: asm debug problem
Date: Tue, 06 Nov 2007 14:02:00 -0000	[thread overview]
Message-ID: <20071106140203.GA26543@caradoc.them.org> (raw)
In-Reply-To: <002001c8207b$c84042e0$82406682@itee.uq.edu.au>

On Tue, Nov 06, 2007 at 11:48:59PM +1000, Yi Tang wrote:
> Hello maintainer,
> 
> I have got some trouble using gdb for my source code.
> 
> My code, written in asm and compiled by gcc, should be attached to an rtos 
> library (ecos) to perform some test. I found it is not possible to debug the 
> assemble source code. My assemble code, to build the function 
> (usr_interrupt_vsr()),  is in a separate file called uivsr.S. And it is linked 
> to the OS through a head file. However, when I run the gdb, it goes to some 
> other file in OS kernel, the clock.cxx (also wrong line num, I'm pretty sure no 
> such function in this file). And the language is set to C++. I also tried gas 
> as assembler, same situation.

Did you assemble the file with -g to gcc, or --gdwarf2 to gas?

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2007-11-06 14:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-06 13:49 Yi Tang
2007-11-06 14:02 ` Daniel Jacobowitz [this message]
2007-11-07  2:33   ` Yi Tang

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=20071106140203.GA26543@caradoc.them.org \
    --to=drow@false.org \
    --cc=gdb@sourceware.org \
    --cc=yitang@itee.uq.edu.au \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox