Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@cygnus.com>
To: GDB Patches <gdb-patches@sourceware.cygnus.com>
Subject: [rfc] Zap _WIN32 from main.c
Date: Fri, 04 May 2001 10:38:00 -0000	[thread overview]
Message-ID: <3AF2E913.9060902@cygnus.com> (raw)

Hello,

Per _WIN32 discussion, the attatched zapps the #ifndef _WIN32 from main.c.

	Andrew
From fnasser@cygnus.com Fri May 04 13:28:00 2001
From: Fernando Nasser <fnasser@cygnus.com>
To: Michael Snyder <msnyder@cygnus.com>
Cc: gdb-patches@sources.redhat.com, fnasser@redhat.com
Subject: Re: [RFA] Error handling in gdb/testsuite/config/sid.exp
Date: Fri, 04 May 2001 13:28:00 -0000
Message-id: <3AF310F9.1BBA5CB@cygnus.com>
References: <200105032256.PAA00844@sloth.cygnus.com>
X-SW-Source: 2001-05/msg00047.html
Content-length: 3705

Michael Snyder wrote:
> 
> These changes will handle some error conditions.
> 

Thanks Michael.


> 2001-05-03  Michael Snyder  <msnyder@redhat.com>
> 
>         * config/sid.exp (gdb_target_sid): Check for error messages.
>         On error or timeout, don't make expect exit (which will terminate
>         all subsequent tests); instead just make gdb exit.
>         (gdb_load): Check for error messages.  On error or timeout,
>         return a negative value.
> 
> *** sid.exp.mrg Thu May  3 15:49:44 2001
> --- sid.exp     Thu May  3 15:49:02 2001
> *************** proc gdb_target_sid { } {
> *** 141,153 ****
>       set timeout 60
>       verbose "Timeout is now $timeout seconds" 2
>       gdb_expect {
>         -re "Remote debugging using.*$gdb_prompt"       {
>             verbose "Set target to sid"
>         }
>         timeout {
>             perror "Couldn't set target for remote simulator."
>             cleanup
> !           exit $exit_status
>         }
>       }
>       set timeout $prev_timeout
> --- 141,158 ----
>       set timeout 60
>       verbose "Timeout is now $timeout seconds" 2
>       gdb_expect {
> +       -re ".*\[Ee\]rror.*$gdb_prompt $" {
> +           perror "Couldn't set target for remote simulator."
> +           cleanup
> +           gdb_exit
> +       }
>         -re "Remote debugging using.*$gdb_prompt"       {
>             verbose "Set target to sid"
>         }
>         timeout {
>             perror "Couldn't set target for remote simulator."
>             cleanup
> !           gdb_exit
>         }
>       }
>       set timeout $prev_timeout
> *************** proc gdb_load { arg } {
> *** 164,169 ****
> --- 169,175 ----
>       global loadfile
>       global GDB
>       global gdb_prompt
> +     global retval
> 
>       gdb_unload
>       if [gdb_file_cmd $arg] then { return -1 }
> *************** proc gdb_load { arg } {
> *** 175,198 ****
>       set timeout 2400
>       verbose "Timeout is now $timeout seconds" 2
>       gdb_expect {
>         -re ".*$gdb_prompt $" {
>             if $verbose>1 then {
>                 send_user "Loaded $arg into $GDB\n"
>             }
> !           set timeout 30
> !           verbose "Timeout is now $timeout seconds" 2
> !           return 1
>         }
>         -re "$gdb_prompt $"     {
>             if $verbose>1 then {
>                 perror "GDB couldn't load."
>             }
>         }
>         timeout {
>             if $verbose>1 then {
>                 perror "Timed out trying to load $arg."
>             }
>         }
>       }
>       set timeout $prev_timeout
>   }
> --- 181,212 ----
>       set timeout 2400
>       verbose "Timeout is now $timeout seconds" 2
>       gdb_expect {
> +       -re ".*\[Ee\]rror.*$gdb_prompt $" {
> +           if $verbose>1 then {
> +               perror "Error during download."
> +           }
> +           set retval -1;
> +       }
>         -re ".*$gdb_prompt $" {
>             if $verbose>1 then {
>                 send_user "Loaded $arg into $GDB\n"
>             }
> !           set retval 1;
>         }
>         -re "$gdb_prompt $"     {
>             if $verbose>1 then {
>                 perror "GDB couldn't load."
>             }
> +           set retval -1;
>         }
>         timeout {
>             if $verbose>1 then {
>                 perror "Timed out trying to load $arg."
>             }
> +           set retval -1;
>         }
>       }
>       set timeout $prev_timeout
> +     verbose "Timeout is now $timeout seconds" 2
> +     return $retval;
>   }

-- 
Fernando Nasser
Red Hat - Toronto                       E-Mail:  fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario   M4P 2C9


             reply	other threads:[~2001-05-04 10:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-04 10:38 Andrew Cagney [this message]
2001-05-04 14:58 ` Christopher Faylor

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=3AF2E913.9060902@cygnus.com \
    --to=ac131313@cygnus.com \
    --cc=gdb-patches@sourceware.cygnus.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