aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2010-01-12 08:50:44 +0000
committerJoel Brobecker <brobecker@gnat.com>2010-01-12 08:50:44 +0000
commit02893727c56378bb9c723096a58fd6dfc6f0d02b (patch)
tree7f7f25d8529759dabddfcbe665b7b6df564fc5b2 /gdb
parent089d69dccddab953d0137f62585726cfecaab251 (diff)
downloadgdb-02893727c56378bb9c723096a58fd6dfc6f0d02b.zip
gdb-02893727c56378bb9c723096a58fd6dfc6f0d02b.tar.gz
gdb-02893727c56378bb9c723096a58fd6dfc6f0d02b.tar.bz2
Delete dead function.
* ada-lang.c (extract_string): Delete. No longer used.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/ada-lang.c21
2 files changed, 5 insertions, 21 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 54c9c42..ff22a90 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2010-01-12 Joel Brobecker <brobecker@adacore.com>
+ Delete dead function.
+ * ada-lang.c (extract_string): Delete. No longer used.
+
+2010-01-12 Joel Brobecker <brobecker@adacore.com>
+
Fix -Wunused warning in dec-thread.c.
* dec-thread.c (dec_thread_count_gdb_threads)
(dec_thread_add_gdb_thread): Prevent -Wunused warning.
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index 317c8d3..24def95 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -65,8 +65,6 @@
#define TRUNCATION_TOWARDS_ZERO ((-5 / 2) == -2)
#endif
-static void extract_string (CORE_ADDR addr, char *buf);
-
static void modify_general_field (struct type *, char *, LONGEST, int, int);
static struct type *desc_base_type (struct type *);
@@ -359,25 +357,6 @@ ada_print_array_index (struct value *index_value, struct ui_file *stream,
fprintf_filtered (stream, " => ");
}
-/* Read the string located at ADDR from the inferior and store the
- result into BUF. */
-
-static void
-extract_string (CORE_ADDR addr, char *buf)
-{
- int char_index = 0;
-
- /* Loop, reading one byte at a time, until we reach the '\000'
- end-of-string marker. */
- do
- {
- target_read_memory (addr + char_index * sizeof (char),
- buf + char_index * sizeof (char), sizeof (char));
- char_index++;
- }
- while (buf[char_index - 1] != '\000');
-}
-
/* Assuming VECT points to an array of *SIZE objects of size
ELEMENT_SIZE, grow it to contain at least MIN_SIZE objects,
updating *SIZE as necessary and returning the (new) array. */