[patch] Fix catch_errors() argument signature
Andrew Cagney
ac131313@cygnus.com
Tue Oct 24 07:40:00 GMT 2000
FYI,
I've checked in the attatched.
Andrew
Wed Oct 25 01:19:26 2000 Andrew Cagney <cagney@b1.cygnus.com>
* solib.c (open_symbol_file_object): Update function signature to
match catch_errors function argument.
Index: solib.c
===================================================================
RCS file: /cvs/src/src/gdb/solib.c,v
retrieving revision 1.23
diff -p -r1.23 solib.c
*** solib.c 2000/10/20 00:44:49 1.23
--- solib.c 2000/10/24 14:35:49
*************** first_link_map_member (void)
*** 1060,1066 ****
SYNOPSIS
! void open_symbol_file_object (int *from_tty)
DESCRIPTION
--- 1060,1066 ----
SYNOPSIS
! int open_symbol_file_object (void *from_ttyp)
DESCRIPTION
*************** first_link_map_member (void)
*** 1075,1085 ****
catch_errors() requires a pointer argument. */
static int
! open_symbol_file_object (int *from_ttyp)
{
CORE_ADDR lm;
char *filename;
int errcode;
if (symfile_objfile)
if (!query ("Attempt to reload symbols from process? "))
--- 1075,1086 ----
catch_errors() requires a pointer argument. */
static int
! open_symbol_file_object (void *from_ttyp)
{
CORE_ADDR lm;
char *filename;
int errcode;
+ int from_tty = *(int *)from_ttyp;
if (symfile_objfile)
if (!query ("Attempt to reload symbols from process? "))
*************** open_symbol_file_object (int *from_ttyp)
*** 1130,1136 ****
make_cleanup (free, filename);
/* Have a pathname: read the symbol file. */
! symbol_file_command (filename, *from_ttyp);
return 1;
}
--- 1131,1137 ----
make_cleanup (free, filename);
/* Have a pathname: read the symbol file. */
! symbol_file_command (filename, from_tty);
return 1;
}
More information about the Gdb-patches
mailing list