projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1cf7548
)
* utils.c (prompt_for_continue): Call readline, not gdb_readline.
author
Steve Chamberlain
<sac@cygnus>
Sat, 19 Mar 1994 03:16:10 +0000
(
03:16
+0000)
committer
Steve Chamberlain
<sac@cygnus>
Sat, 19 Mar 1994 03:16:10 +0000
(
03:16
+0000)
gdb/ChangeLog
patch
|
blob
|
history
gdb/utils.c
patch
|
blob
|
history
diff --git
a/gdb/ChangeLog
b/gdb/ChangeLog
index be00d87ccc3bcb7ee7453887d47b04604bb06708..54d26a09feb7ca012a54a758d0d2f85539143115 100644
(file)
--- a/
gdb/ChangeLog
+++ b/
gdb/ChangeLog
@@
-1,3
+1,7
@@
+Fri Mar 18 19:11:15 1994 Steve Chamberlain (sac@jonny.cygnus.com)
+
+ * utils.c (prompt_for_continue): Call readline, not gdb_readline.
+
Fri Mar 18 10:25:55 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
* dstread.c (record_minimal_symbol): New arg objfile. Pass it to
Fri Mar 18 10:25:55 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
* dstread.c (record_minimal_symbol): New arg objfile. Pass it to
diff --git
a/gdb/utils.c
b/gdb/utils.c
index 08c2353c598b5f3342a165578fa17ce0f576cc6d..7480fa60429b3aba5603d8e6d28718c49baff24e 100644
(file)
--- a/
gdb/utils.c
+++ b/
gdb/utils.c
@@
-379,7
+379,7
@@
perror_with_name (string)
/* I understand setting these is a matter of taste. Still, some people
may clear errno but not know about bfd_error. Doing this here is not
unreasonable. */
/* I understand setting these is a matter of taste. Still, some people
may clear errno but not know about bfd_error. Doing this here is not
unreasonable. */
- bfd_
error = no_error
;
+ bfd_
set_error (bfd_error_no_error)
;
errno = 0;
error ("%s.", combined);
errno = 0;
error ("%s.", combined);
@@
-764,6
+764,21
@@
print_spaces (n, file)
fputc (' ', file);
}
fputc (' ', file);
}
+/* Print a host address. */
+
+void
+gdb_print_address (addr, stream)
+ PTR addr;
+ GDB_FILE *stream;
+{
+
+ /* We could use the %p conversion specifier to fprintf if we had any
+ way of knowing whether this host supports it. But the following
+ should work on the Alpha and on 32 bit machines. */
+
+ fprintf_filtered (stream, "0x%lx", (unsigned long)addr);
+}
+
/* Ask user a y-or-n question and return 1 iff answer is yes.
Takes three args which are given to printf to print the question.
The first, a control string, should end in "? ".
/* Ask user a y-or-n question and return 1 iff answer is yes.
Takes three args which are given to printf to print the question.
The first, a control string, should end in "? ".
@@
-1018,7
+1033,7
@@
prompt_for_continue ()
the prompt is more user-friendly than expecting them to think of
SIGINT. */
ignore =
the prompt is more user-friendly than expecting them to think of
SIGINT. */
ignore =
-
gdb_
readline ("---Type <return> to continue, or q <return> to quit---");
+ readline ("---Type <return> to continue, or q <return> to quit---");
if (ignore)
{
char *p = ignore;
if (ignore)
{
char *p = ignore;