Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Anmol P. Paralkar" <b07584@freescale.com>
To: gdb@sourceware.org
Subject: Need help with GDB test run: Asks for password although ssh setup  not to require password.
Date: Sun, 26 Oct 2008 01:25:00 -0000	[thread overview]
Message-ID: <Pine.LNX.4.64.0810251959140.1412@ld0159-tx32> (raw)

Hello,

  I am trying to setup GDB DejaGNU remote testing using gdbserver. I have set things up so
  that I can ssh to my target machine without it asking for my password. However, I see
  these failures in my gdb.log file:

-------------------------------------------------------------------------------- 
spawn ssh -l b07584 perf1vme6 gdbserver :4004 vmx21726.x^M
  b07584@perf1vme6's password: board_info host exists name
board_info host name
getting ld0159-tx32 name
board_info ld0159-tx32 exists name
board_info ld0159-tx32 exists protocol
board_info ld0159-tx32 generic_name
getting ld0159-tx32 generic_name
call_remote  send ld0159-tx32 {target remote perf1vme6:4004
}
board_info ld0159-tx32 file_transfer
getting ld0159-tx32 file_transfer
board_info ld0159-tx32 connect
getting ld0159-tx32 connect
looking for ld0159-tx32_send
looking for telnet_send
looking for standard_send
call_remote calling standard_send
board_info ld0159-tx32 exists fileid
board_info ld0159-tx32 fileid
getting ld0159-tx32 fileid
shell_id in standard_send is exp6
board_info ld0159-tx32 fileid
getting ld0159-tx32 fileid
send -i exp6 -- {target remote perf1vme6:4004
}
board_info ld0159-tx32 fileid
getting ld0159-tx32 fileid
board_info target exists gdb,timeout
board_info host fileid
getting ld0159-tx32 fileid
target remote perf1vme6:4004^M
perf1vme6:4004: Connection refused.^M
(gdb) Connection refused by remote target.  Pausing, and trying again.
--------------------------------------------------------------------------------

  The: "perf1vme6:4004: Connection refused" is due to the gdbserver not being up
  on the target and I think, that, in turn is due to the password being asked when:
  "spawn ssh -l b07584 perf1vme6 gdbserver :4004 hello" happens.

  If I run the ssh by hand, I am not asked for a password, I do see something like:

----------------------------------------
Process hello created; pid = 550
Listening on port 4004
----------------------------------------

  and I can remote connect and debug as given in the GDB User Manual.

  --

  Is the failure I am seeing in the DejaGNU run really due to the gdbserver not being
  up prior to the remote connect attempt on the hostside GDB in turn, due to the password
  being asked on the ssh? What am I doing wrong here? Kindly help.

Thanks,
Anmol.


             reply	other threads:[~2008-10-26  1:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-26  1:25 Anmol P. Paralkar [this message]
2008-10-26  8:07 ` Andreas Schwab
2008-10-28 23:08   ` Anmol P. Paralkar

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=Pine.LNX.4.64.0810251959140.1412@ld0159-tx32 \
    --to=b07584@freescale.com \
    --cc=gdb@sourceware.org \
    /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