summaryrefslogtreecommitdiff
path: root/gdb/solib.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-10-24 14:42:21 +0000
committerAndrew Cagney <cagney@redhat.com>2000-10-24 14:42:21 +0000
commitfc66c0617b4f813efa6cc8c42fb9bc5c9b2f4b43 (patch)
tree182d6a8a28e4be8d23bd06082847a5cc448d949b /gdb/solib.c
parent736729fde3d513f6771da4d862c2c722bac93971 (diff)
downloadgdb-fc66c0617b4f813efa6cc8c42fb9bc5c9b2f4b43.tar.gz
* solib.c (open_symbol_file_object): Update function signature to
match catch_errors function argument.
Diffstat (limited to 'gdb/solib.c')
-rw-r--r--gdb/solib.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/solib.c b/gdb/solib.c
index 65e98db9b88..a492dbf0ee1 100644
--- a/gdb/solib.c
+++ b/gdb/solib.c
@@ -1060,7 +1060,7 @@ first_link_map_member (void)
SYNOPSIS
- void open_symbol_file_object (int *from_tty)
+ int open_symbol_file_object (void *from_ttyp)
DESCRIPTION
@@ -1075,11 +1075,12 @@ first_link_map_member (void)
catch_errors() requires a pointer argument. */
static int
-open_symbol_file_object (int *from_ttyp)
+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? "))
@@ -1130,7 +1131,7 @@ open_symbol_file_object (int *from_ttyp)
make_cleanup (free, filename);
/* Have a pathname: read the symbol file. */
- symbol_file_command (filename, *from_ttyp);
+ symbol_file_command (filename, from_tty);
return 1;
}