projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
oops - typo correction.
[deliverable/binutils-gdb.git]
/
gdb
/
printcmd.c
diff --git
a/gdb/printcmd.c
b/gdb/printcmd.c
index 7a669f125e0b57d4634e54135118eb067aafb93d..82ae1830a46581afc41b6d5d2310c6d35b09b038 100644
(file)
--- a/
gdb/printcmd.c
+++ b/
gdb/printcmd.c
@@
-1,6
+1,6
@@
/* Print values for GNU debugger GDB.
/* Print values for GNU debugger GDB.
- Copyright (C) 1986-201
2
Free Software Foundation, Inc.
+ Copyright (C) 1986-201
3
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-145,7
+145,7
@@
struct display
struct program_space *pspace;
/* Innermost block required by this expression when evaluated. */
struct program_space *pspace;
/* Innermost block required by this expression when evaluated. */
- struct block *block;
+
const
struct block *block;
/* Status of this display (enabled or disabled). */
int enabled_p;
/* Status of this display (enabled or disabled). */
int enabled_p;
@@
-1199,8
+1199,7
@@
address_info (char *exp, int from_tty)
long val;
struct obj_section *section;
CORE_ADDR load_addr, context_pc = 0;
long val;
struct obj_section *section;
CORE_ADDR load_addr, context_pc = 0;
- int is_a_field_of_this; /* C++: lookup_symbol sets this to nonzero
- if exp is a field of `this'. */
+ struct field_of_this_result is_a_field_of_this;
if (exp == 0)
error (_("Argument required."));
if (exp == 0)
error (_("Argument required."));
@@
-1209,7
+1208,7
@@
address_info (char *exp, int from_tty)
&is_a_field_of_this);
if (sym == NULL)
{
&is_a_field_of_this);
if (sym == NULL)
{
- if (is_a_field_of_this)
+ if (is_a_field_of_this
.type != NULL
)
{
printf_filtered ("Symbol \"");
fprintf_symbol_filtered (gdb_stdout, exp,
{
printf_filtered ("Symbol \"");
fprintf_symbol_filtered (gdb_stdout, exp,
@@
-2221,7
+2220,7
@@
ui_printf (char *arg, struct ui_file *stream)
error (_("long double not supported in printf"));
#endif
case long_long_arg:
error (_("long double not supported in printf"));
#endif
case long_long_arg:
-#if
defined (CC_HAS_LONG_LONG) && defined (PRINTF_HAS_LONG_LONG)
+#if
def PRINTF_HAS_LONG_LONG
{
long long val = value_as_long (val_args[i]);
{
long long val = value_as_long (val_args[i]);
@@
-2356,7
+2355,7
@@
ui_printf (char *arg, struct ui_file *stream)
handle %p as glibc would: %#x or a literal "(nil)". */
char *p, *fmt, *fmt_p;
handle %p as glibc would: %#x or a literal "(nil)". */
char *p, *fmt, *fmt_p;
-#if
defined (CC_HAS_LONG_LONG) && defined (PRINTF_HAS_LONG_LONG)
+#if
def PRINTF_HAS_LONG_LONG
long long val = value_as_long (val_args[i]);
#else
long val = value_as_long (val_args[i]);
long long val = value_as_long (val_args[i]);
#else
long val = value_as_long (val_args[i]);
@@
-2391,7
+2390,7
@@
ui_printf (char *arg, struct ui_file *stream)
gdb_assert (*p == 'p' && *(p + 1) == '\0');
if (val != 0)
{
gdb_assert (*p == 'p' && *(p + 1) == '\0');
if (val != 0)
{
-#if
defined (CC_HAS_LONG_LONG) && defined (PRINTF_HAS_LONG_LONG)
+#if
def PRINTF_HAS_LONG_LONG
*fmt_p++ = 'l';
#endif
*fmt_p++ = 'l';
*fmt_p++ = 'l';
#endif
*fmt_p++ = 'l';
This page took
0.024947 seconds
and
4
git commands to generate.