public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Fernando Nasser <fnasser@cygnus.com>
To: Elena Zannoni <ezannoni@cygnus.com>
Cc: insight@sourceware.cygnus.com
Subject: Re: [PATCH] savestring-->gdb_savestring
Date: Fri, 07 Jul 2000 10:48:00 -0000	[thread overview]
Message-ID: <396617C9.4E411B8E@cygnus.com> (raw)
In-Reply-To: <14692.51351.465539.467765@kwikemart.cygnus.com>

There is no alternative so, please, just go ahead and check it in.

Thanks.

Fernando

Elena Zannoni wrote:
> 
> This patch is to make gdbtk build with the new release of readline
> (4.1).  There are conflicts between the readline exported version of
> savestring and the gdb defined one. I'll commit it tomorrow.
> 
> 2000-07-06  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
> 
>         * gdbtk-cmds.c, gdbtk-variable.c: Replace savestring() with
>         gdb_savestring(), to avoid conflicts with readline's version of
>         savestring().
> 
> Index: gdbtk-cmds.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-cmds.c,v
> retrieving revision 1.10
> diff -c -u -p -r1.10 gdbtk-cmds.c
> --- gdbtk-cmds.c        2000/07/02 20:07:07     1.10
> +++ gdbtk-cmds.c        2000/07/06 14:39:13
> @@ -2327,7 +2327,7 @@ gdb_actions_command (clientData, interp,
>        temp = xmalloc (sizeof (struct action_line));
>        temp->next = NULL;
>        action = Tcl_GetStringFromObj (actions[i], &len);
> -      temp->action = savestring (action, len);
> +      temp->action = gdb_savestring (action, len);
> 
>        linetype = validate_actionline (&(temp->action), tp);
> 
> Index: gdbtk-variable.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-variable.c,v
> retrieving revision 1.3
> diff -c -u -p -r1.3 gdbtk-variable.c
> --- gdbtk-variable.c    2000/07/02 20:07:07     1.3
> +++ gdbtk-variable.c    2000/07/06 14:39:13
> @@ -515,7 +515,7 @@ variable_obj_command (clientData, interp
>         /* If var->name has "-" in it, it's because we
>            needed to escape periods in the name... */
>         char *p, *name;
> -       name = savestring (var->name, strlen (var->name));
> +       name = gdb_savestring (var->name, strlen (var->name));
>         p = name;
>         while (*p != '\000')
>           {
> @@ -715,7 +715,7 @@ create_variable (name, frame)
> 
>        var->format            = variable_default_display (var);
>        var->root->valid_block = innermost_block;
> -      var->name              = savestring (name, strlen (name));
> +      var->name              = gdb_savestring (name, strlen (name));
> 
>        /* When the frame is different from the current frame,
>           we must select the appropriate frame before parsing
> @@ -766,7 +766,7 @@ install_variable (interp, name, var)
>       char *name;
>       gdb_variable *var;
>  {
> -  var->obj_name = savestring (name, strlen (name));
> +  var->obj_name = gdb_savestring (name, strlen (name));
>    Tcl_CreateObjCommand (interp, name, variable_obj_command,
>                          (ClientData) var, NULL);
>  }
> @@ -1796,7 +1796,7 @@ c_name_of_child (parent, index)
>      case TYPE_CODE_STRUCT:
>      case TYPE_CODE_UNION:
>        string = TYPE_FIELD_NAME (type, index);
> -      name   = savestring (string, strlen (string));
> +      name   = gdb_savestring (string, strlen (string));
>        break;
> 
>      case TYPE_CODE_PTR:
> @@ -1805,7 +1805,7 @@ c_name_of_child (parent, index)
>          case TYPE_CODE_STRUCT:
>          case TYPE_CODE_UNION:
>            string = TYPE_FIELD_NAME (target, index);
> -          name   = savestring (string, strlen (string));
> +          name   = gdb_savestring (string, strlen (string));
>            break;
> 
>          default:
> @@ -2205,7 +2205,7 @@ cplus_name_of_child (parent, index)
>    else
>      {
>        if (name != NULL)
> -       name = savestring (name, strlen (name));
> +       name = gdb_savestring (name, strlen (name));
>      }
> 
>    return name;

-- 
Fernando Nasser
Red Hat - Toronto                       E-Mail:  fnasser@cygnus.com
2323 Yonge Street, Suite #300           Tel:  416-482-2661 ext. 311
Toronto, Ontario   M4P 2C9              Fax:  416-482-6299

      parent reply	other threads:[~2000-07-07 10:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-07-06 10:57 Elena Zannoni
2000-07-06 16:41 ` Elena Zannoni
2000-07-07 10:48 ` Fernando Nasser [this message]

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=396617C9.4E411B8E@cygnus.com \
    --to=fnasser@cygnus.com \
    --cc=ezannoni@cygnus.com \
    --cc=insight@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).