Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: jagorak <jagorak@wp.pl>
Cc: gdb@sourceware.org
Subject: Re: Calling an Ada subprogram with complex parameters
Date: Mon, 19 Mar 2007 16:35:00 -0000	[thread overview]
Message-ID: <20070319163613.GI3485@adacore.com> (raw)
In-Reply-To: <5416595812.20070318171038@wp.pl>

> I've    managed   to   work out how to make GDB treat an address as if
> data there was of specific type and make a call accordingly.
> 
> 
> (gdb) set ({Rec} 0xABCDEF00).a := false
> (gdb) set ({Rec} 0xABCDEF00).b := 55
> (gdb) call myProc({Rec} *0xABCDEF00))

That's indeed what I would recommend. Just for the record, I verified
that the relevant info is in the GDB documentation.

-- 
Joel


  reply	other threads:[~2007-03-19 16:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-17 23:11 jagorak
2007-03-18 17:10 ` jagorak
2007-03-19 16:35   ` Joel Brobecker [this message]
2007-03-19 18:46     ` Re[2]: " jagorak
2007-03-19  2:16 ` Daniel Jacobowitz
2007-03-19 20:08   ` Re[2]: " jagorak
2007-03-19 20:17     ` Daniel Jacobowitz
2007-03-19 20:40       ` Re[2]: " jagorak

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=20070319163613.GI3485@adacore.com \
    --to=brobecker@adacore.com \
    --cc=gdb@sourceware.org \
    --cc=jagorak@wp.pl \
    /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