aboutsummaryrefslogtreecommitdiff
path: root/gdb/jv-lang.c
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>1999-05-25 18:09:09 +0000
committerJason Molenda <jmolenda@apple.com>1999-05-25 18:09:09 +0000
commit392a587b0562bfd8561bc15ad2625a4f49f461f0 (patch)
tree933e0970b7845c901c7ea3e128fa9cb0dcf9fe14 /gdb/jv-lang.c
parent751d21b5b946a4a451552fbac692b14abea3d816 (diff)
downloadgdb-392a587b0562bfd8561bc15ad2625a4f49f461f0.zip
gdb-392a587b0562bfd8561bc15ad2625a4f49f461f0.tar.gz
gdb-392a587b0562bfd8561bc15ad2625a4f49f461f0.tar.bz2
import gdb-1999-05-25 snapshot
Diffstat (limited to 'gdb/jv-lang.c')
-rw-r--r--gdb/jv-lang.c20
1 files changed, 16 insertions, 4 deletions
diff --git a/gdb/jv-lang.c b/gdb/jv-lang.c
index a98147a..049d10b 100644
--- a/gdb/jv-lang.c
+++ b/gdb/jv-lang.c
@@ -44,9 +44,19 @@ struct type *java_float_type;
struct type *java_double_type;
struct type *java_void_type;
+/* Local functions */
+
+extern void _initialize_java_language PARAMS ((void));
+
static int java_demangled_signature_length PARAMS ((char*));
static void java_demangled_signature_copy PARAMS ((char*, char*));
+static struct symtab *get_java_class_symtab PARAMS ((void));
+static char *get_java_utf8_name PARAMS ((struct obstack *obstack, value_ptr name));
+static int java_class_is_primitive PARAMS ((value_ptr clas));
+static struct type *java_lookup_type PARAMS ((char *signature));
+static value_ptr java_value_string PARAMS ((char *ptr, int len));
+
static void java_emit_char PARAMS ((int c, GDB_FILE *stream, int quoter));
/* This objfile contains symtabs that have been dynamically created
@@ -76,7 +86,7 @@ static struct symtab *class_symtab = NULL;
static int class_symtab_space;
-struct symtab *
+static struct symtab *
get_java_class_symtab ()
{
if (class_symtab == NULL)
@@ -234,7 +244,7 @@ java_class_from_object (obj_val)
}
/* Check if CLASS_IS_PRIMITIVE(value of clas): */
-int
+static int
java_class_is_primitive (clas)
value_ptr clas;
{
@@ -800,7 +810,7 @@ java_array_type (type, dims)
/* Create a Java string in the inferior from a (Utf8) literal. */
-value_ptr
+static value_ptr
java_value_string (ptr, len)
char *ptr;
int len;
@@ -1071,7 +1081,9 @@ _initialize_java_language ()
We should use make_run_cleanup to have this be called.
But will that mess up values in value histry? FIXME */
-void java_rerun_cleanup ()
+extern void java_rerun_cleanup PARAMS ((void));
+void
+java_rerun_cleanup ()
{
if (class_symtab != NULL)
{