Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Wenbo Yang <wenbo.yang@simplnano.com>
To: Michael Eager <eager@eagercon.com>
Cc: Mark Kettenis <mark.kettenis@xs4all.nl>,  gdb@sources.redhat.com
Subject: Re: frame cache
Date: Tue, 31 Jul 2007 03:51:00 -0000	[thread overview]
Message-ID: <46AE8B7C.5000502@simplnano.com> (raw)
In-Reply-To: <46AE5570.7080202@eagercon.com>

 > Michael Eager Wrote:
>> It depends on target . If you register dwarf2 frame sniffers to 
>> gdbarch, and your compiler can emit proper debugging information, gdb 
>> will not call analyze_prologue(). At least for our target(I did the 
>> porting), it works as Mark Kettenis said:
>> "prologue analysis should only be done as a last resort, i.e. when 
>> proper debug information is not available. "
> 
> Which target?

Our chip is still under development, so no target name published.

>> Because if you want to use debugging information to skip prologue, you 
>> write the code in this function. So, test should be place here in this 
>> function.
> 
> As I mentioned, in x86 or PowerPC there is no code to bypass analyzing
> the prologue, even if there is debug info.  If prologue analysis is
> truly to be done "only as a last resort", and I agree that this should
> be the case, then this seems not to be represented in the gdb code.
> 
> If I've missed where this is done, feel free to point me at the correct
> code.

I'm sorry I didn't find it too in x86. But x86 has many files, I'm not sure I 
have read through them. In mips-tdep.c, in mips_skip_prologue() , this 
function "skip_prologue_using_sal()" is using the debugging information, i.e. 
skip prologue using symbol and line. If x86 doesn't use debugging information, 
maybe it has some universal consideration on using it, e.g. some compiler 
can't emit proper debugging information. From my experience, if your compiler 
can't give all right debugging information, your debugging will encounter 
strange problems, what is worse than not using them(exclude the base info as 
symbols).

Regards,
Wenbo
-- 
Wenbo Yang

The State Key Lab. of Information Security
Graduate School of CAS, 19A Yuquan Road, Beijing, China
Homepage: http://solrex.cn

SimpLight Nanoelectronics Ltd. 6 Zhichun Road, 10th Floor, Beijing, China
Phone: +86-10-5126-6989   ---  Email: wenbo.yang@simplnano.com


      parent reply	other threads:[~2007-07-31  1:08 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-24 17:08 Michael Eager
2007-07-24 17:14 ` Michael Eager
2007-07-24 17:36   ` Daniel Jacobowitz
2007-07-24 18:19     ` Michael Eager
2007-07-24 18:34       ` Daniel Jacobowitz
2007-07-24 18:34       ` Mark Kettenis
2007-07-24 17:17 ` Daniel Jacobowitz
2007-07-24 18:10   ` Michael Eager
2007-07-24 18:22     ` Daniel Jacobowitz
2007-07-24 18:45       ` Michael Eager
2007-07-24 18:45     ` Mark Kettenis
2007-07-24 19:08       ` Michael Eager
2007-07-25  2:18         ` Paul Koning
2007-07-27  9:18         ` Wenbo Yang
2007-07-30 22:01           ` Michael Eager
2007-07-30 23:07             ` Mark Kettenis
2007-07-31  3:51             ` Wenbo Yang [this message]

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=46AE8B7C.5000502@simplnano.com \
    --to=wenbo.yang@simplnano.com \
    --cc=eager@eagercon.com \
    --cc=gdb@sources.redhat.com \
    --cc=mark.kettenis@xs4all.nl \
    /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