projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git]
/
gdb
/
go-typeprint.c
diff --git
a/gdb/go-typeprint.c
b/gdb/go-typeprint.c
index 5fe8dd4885fa87747c952a7fc2b4e1a1aac1f277..c334914398d1a027ef9fbf4079c2b27fc46d54d6 100644
(file)
--- a/
gdb/go-typeprint.c
+++ b/
gdb/go-typeprint.c
@@
-1,6
+1,6
@@
/* Support for printing Go types for GDB, the GNU debugger.
/* Support for printing Go types for GDB, the GNU debugger.
- Copyright (C) 2012-20
14
Free Software Foundation, Inc.
+ Copyright (C) 2012-20
20
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-48,11
+48,11
@@
go_print_type (struct type *type, const char *varstring,
{
/* Borrowed from c-typeprint.c. */
if (show > 0)
{
/* Borrowed from c-typeprint.c. */
if (show > 0)
-
CHECK_TYPEDEF
(type);
+
type = check_typedef
(type);
/* Print the type of "abc" as "string", not char[4]. */
/* Print the type of "abc" as "string", not char[4]. */
- if (
TYPE_CODE (type
) == TYPE_CODE_ARRAY
- && TYPE_
CODE (TYPE_TARGET_TYPE (type)
) == TYPE_CODE_CHAR)
+ if (
type->code (
) == TYPE_CODE_ARRAY
+ && TYPE_
TARGET_TYPE (type)->code (
) == TYPE_CODE_CHAR)
{
fputs_filtered ("string", stream);
return;
{
fputs_filtered ("string", stream);
return;
This page took
0.024581 seconds
and
4
git commands to generate.