Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Help with source+object address
@ 2001-05-09  5:51 Mauricio Lima Pilla
  2001-05-10  8:32 ` Andrew Cagney
  0 siblings, 1 reply; 2+ messages in thread
From: Mauricio Lima Pilla @ 2001-05-09  5:51 UTC (permalink / raw)
  To: gdb

Hi,

I need help with associating object addresses with the source code
lines. I'm a complete rookie in this field, and I'm not even sure I'm
posting to the right mail list, so please forgive me if it's the wrong
place. 

I'm working with a superscalar processor simulator (SimpleScalar) and I
want to associate addresses in the object file with lines of source code,
just to analyse what the compiler is doing with my source code, and which
branches are derived from if, for, while,...

Any help is welcome.

Thank you in advance,

Pilla

+================================================================+
Mauricio Lima Pilla                           (pilla@inf.ufrgs.br)
PhD Student			    Instituto de Informatica/UFRGS
Caixa Postal/Box 15064         91501-970, Porto Alegre, RS, Brasil
Fone/Phone: +55 51 316 6804                   Fax: +55 51 319 1576
http://www.inf.ufrgs.br/            http://www.inf.ufrgs.br/~pilla
+================================================================+


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Help with source+object address
  2001-05-09  5:51 Help with source+object address Mauricio Lima Pilla
@ 2001-05-10  8:32 ` Andrew Cagney
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Cagney @ 2001-05-10  8:32 UTC (permalink / raw)
  To: Mauricio Lima Pilla; +Cc: gdb

> I need help with associating object addresses with the source code
> lines. I'm a complete rookie in this field, and I'm not even sure I'm
> posting to the right mail list, so please forgive me if it's the wrong
> place. 
> 
> I'm working with a superscalar processor simulator (SimpleScalar) and I
> want to associate addresses in the object file with lines of source code,
> just to analyse what the compiler is doing with my source code, and which
> branches are derived from if, for, while,...

Check the program addr2line.

	Andrew


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-05-10  8:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-09  5:51 Help with source+object address Mauricio Lima Pilla
2001-05-10  8:32 ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox