aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbtypes.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@adacore.com>2015-10-09 14:14:43 -0700
committerJoel Brobecker <brobecker@adacore.com>2015-10-09 14:32:23 -0700
commit220475ed8b0c1ef7b4eabf64bcc723e14fd78209 (patch)
treea435a257c733ca27a35aacbe17a01e543931505a /gdb/gdbtypes.c
parentd0a9e8108942ebeb68d9b0b39bebb37369e0f701 (diff)
downloadfsf-binutils-gdb-220475ed8b0c1ef7b4eabf64bcc723e14fd78209.zip
fsf-binutils-gdb-220475ed8b0c1ef7b4eabf64bcc723e14fd78209.tar.gz
fsf-binutils-gdb-220475ed8b0c1ef7b4eabf64bcc723e14fd78209.tar.bz2
make is_scalar_type non-static and use it in ada-lang.c
Just a small cleanup, to avoid code duplication... gdb/ChangeLog: * gdbtypes.h (is_scalar_type): Add extern declaration. * gdbtypes.c (is_scalar_type): Make non-static. * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type to compute IS_SCALAR instead of doing it ourselves.
Diffstat (limited to 'gdb/gdbtypes.c')
-rw-r--r--gdb/gdbtypes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index b406550..919cac9 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -2717,7 +2717,7 @@ is_integral_type (struct type *t)
/* Return true if TYPE is scalar. */
-static int
+int
is_scalar_type (struct type *type)
{
type = check_typedef (type);