* [PATCH] savestring-->gdb_savestring
@ 2000-07-06 10:57 Elena Zannoni
2000-07-06 16:41 ` Elena Zannoni
2000-07-07 10:48 ` Fernando Nasser
0 siblings, 2 replies; 3+ messages in thread
From: Elena Zannoni @ 2000-07-06 10:57 UTC (permalink / raw)
To: insight
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;
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] savestring-->gdb_savestring
2000-07-06 10:57 [PATCH] savestring-->gdb_savestring Elena Zannoni
@ 2000-07-06 16:41 ` Elena Zannoni
2000-07-07 10:48 ` Fernando Nasser
1 sibling, 0 replies; 3+ messages in thread
From: Elena Zannoni @ 2000-07-06 16:41 UTC (permalink / raw)
To: insight
Elena Zannoni writes:
>
> 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().
>
I withdraw this patch. It is not actually needed. Turns out that
leaving savestring in readline.h was an oversight. So I am just going
to comment that occurrence out.
Elena
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] savestring-->gdb_savestring
2000-07-06 10:57 [PATCH] savestring-->gdb_savestring Elena Zannoni
2000-07-06 16:41 ` Elena Zannoni
@ 2000-07-07 10:48 ` Fernando Nasser
1 sibling, 0 replies; 3+ messages in thread
From: Fernando Nasser @ 2000-07-07 10:48 UTC (permalink / raw)
To: Elena Zannoni; +Cc: insight
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-07-07 10:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-06 10:57 [PATCH] savestring-->gdb_savestring Elena Zannoni
2000-07-06 16:41 ` Elena Zannoni
2000-07-07 10:48 ` Fernando Nasser
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).