Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Yao Qi <yao@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Remove board setting `gdb,cannot_call_functions'
Date: Tue, 24 Apr 2012 14:13:00 -0000	[thread overview]
Message-ID: <4F96B0D7.4040506@redhat.com> (raw)
In-Reply-To: <1335177254-5616-1-git-send-email-yao@codesourcery.com>

On 04/23/2012 11:34 AM, Yao Qi wrote:

> Hi,
> When documenting all exiting board settings we are using,
> `gdb,cannot_call_functions' is interesting to me.  What does
> `gdb,cannot_call_functions' mean?  Can't do inf-call?


Yes.

From upstream DejaGNU's baseboards:

>grep cannot_call_functions * -C 1
arm-ice.exp-# Can't call functions from GDB.
arm-ice.exp:set_board_info gdb,cannot_call_functions 1
arm-ice.exp-
--
moxie-sim.exp-set_board_info gdb,noresults 1
moxie-sim.exp:set_board_info gdb,cannot_call_functions 1
moxie-sim.exp-set_board_info gdb,skip_float_tests 1
--
powerpcle-sim.exp-# Can't call functions from GDB.
powerpcle-sim.exp:set_board_info gdb,cannot_call_functions 1
--
powerpc-sim.exp-# Can't call functions from GDB.
powerpc-sim.exp:# set_board_info gdb,cannot_call_functions 1
--
sh-hms.exp-# And it can't call functions.
sh-hms.exp:set_board_info gdb,cannot_call_functions  1
sh-hms.exp-


The powerpc-sim ones could still be relevant, and tested, I suppose.  It could
be the reason that functions couldn't (or can't)  be called with these targets was
related to the target backend, not the tdep code in gdb.  Or, this might useful while
still developing a new port.  E.g., moxie is a new-ish port, where Anthony Green
added that "gdb,cannot_call_functions" as recently as 2010:

https://lists.gnu.org/archive/html/dejagnu/2010-01/msg00000.html

Of course, that might have been blind copy&paste.

I think that even if we removed the support, we should still minimally document
the variable though...  If we add something like this in the future,
we'd want to reuse the old name.  But if this isn't getting in the way...

> It is quite impossible that someone is still setting

> `gdb,cannot_call_functions' in his/her board file, I assume.  However,
> I might be wrong.


-- 
Pedro Alves


  parent reply	other threads:[~2012-04-24 13:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-23 13:18 Yao Qi
2012-04-23 13:42 ` Tom Tromey
2012-04-24 14:13 ` Pedro Alves [this message]
2012-04-24 14:36   ` Yao Qi
2012-05-01  2:34   ` Jan Kratochvil

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=4F96B0D7.4040506@redhat.com \
    --to=palves@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=yao@codesourcery.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