Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: ?????? <xueyunlong@gmail.com>
Cc: gdb <gdb@sourceware.org>
Subject: Re: How to use variable in gdb?
Date: Sun, 04 Feb 2007 14:05:00 -0000	[thread overview]
Message-ID: <20070204140544.GA8222@nevyn.them.org> (raw)
In-Reply-To: <9875e6b70702040206xaea7b10o1c85db30fb4b737b@mail.gmail.com>

On Sun, Feb 04, 2007 at 06:06:01PM +0800, ?????? wrote:
> Hello, I have problem with gdb program, can I define a variable like
> shell script?
> For example:
> 
> xxx=/home/src/
> yyy=/home/exe/
> 
> file f
> set args $xxx  $yyy (So I can use variable here!)

"set args" doesn't allow any variables - sorry.  We've been talking
about adding a full scripting language to GDB, which will make this
easier.

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2007-02-04 14:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-04 10:06 薛云龙
2007-02-04 14:05 ` Daniel Jacobowitz [this message]
2007-02-04 14:28   ` Jack
2007-02-04 15:55 ` Andreas Schwab

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=20070204140544.GA8222@nevyn.them.org \
    --to=drow@false.org \
    --cc=gdb@sourceware.org \
    --cc=xueyunlong@gmail.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