Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <cagney@gnu.org>
To: Kevin Buettner <kevinb@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [PATCH] frv-tdep.c: Stop backtraces in entry func, not entry file
Date: Mon, 20 Oct 2003 23:57:00 -0000	[thread overview]
Message-ID: <3F947650.8090601@gnu.org> (raw)
In-Reply-To: <1031016033144.ZM24591@localhost.localdomain>

>> I'd like to avoid re-introducing a dependency on inside_entry_func() as 
>> that places garish requirements on the object file readers :-(
> 
> 
> I agree that object file readers should not attempt to track of
> the bounds of the start function.  However, given an arbitrary
> address, it's not unreasonable to ask the symtab machinery to attempt
> to figure out the function bounds.  And, in fact, this is just what
> find_pc_partial_function() does.

Begs the question.  How come it wasn't done that way originally?  Same 
for main()?

One common problem is badly written crt0.o files.  For instance:
	_start:
		set-sp-insn
		for-insn endloop
		clear-mem-insn
	endloop:
		call-insn main
should use numeric lables so that the symbol table code doesn't get 
tripped up thinking "endloop" is a function.

> > I also suspect that just removing the test fixes the bug.
> 
> 
> What bug?

The original one:  "An FR-V user reported being unable to see useful 
backtraces when debugging functions inside the entry file."

Removing the entry-file test gives the user a meaningful backtrace. 
(Oh, the assembler tests don't pass if that test is present.)

> As noted earlier, I'm seeing unwelcome behavior regardless of whether
> the test is enabled or not.  I've looked at what's going on in
> inside_entry_func() and have already determined that it's not working
> properly for me.

Andrew



      parent reply	other threads:[~2003-10-20 23:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-14 20:51 Kevin Buettner
2003-10-14 21:55 ` Andrew Cagney
2003-10-15 22:39   ` Michael Snyder
2003-10-16  0:07   ` Kevin Buettner
2003-10-16  1:15     ` Andrew Cagney
2003-10-16  3:31       ` Kevin Buettner
2003-10-16  4:10         ` Daniel Jacobowitz
2003-10-20 23:57         ` Andrew Cagney [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=3F947650.8090601@gnu.org \
    --to=cagney@gnu.org \
    --cc=gdb-patches@sources.redhat.com \
    --cc=kevinb@redhat.com \
    /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