OSDN Git Service

* hppa-tdep.c (find_function_in_inferior): Remove this extern,
authorJoel Brobecker <brobecker@gnat.com>
Wed, 30 Oct 2002 20:42:54 +0000 (20:42 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Wed, 30 Oct 2002 20:42:54 +0000 (20:42 +0000)
       as this is already provided by value.h, and was actually causing
       a compilation error because of a conflict in parameter type
       declaration due to a missing const keyword.
       (low_text_segment_addres): Fix a compilation warning.

gdb/ChangeLog
gdb/hppa-tdep.c

index 903e0f5..4a5df7e 100644 (file)
@@ -1,3 +1,11 @@
+2002-10-30  Joel Brobecker  <brobecker@gnat.com>
+
+       * hppa-tdep.c (find_function_in_inferior): Remove this extern,
+       as this is already provided by value.h, and was actually causing
+       a compilation error because of a conflict in parameter type
+       declaration due to a missing const keyword.
+       (low_text_segment_addres): Fix a compilation warning.
+
 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
 
        * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
index 19e4402..59f8873 100644 (file)
@@ -149,9 +149,6 @@ extern int hp_som_som_object_present;
 /* In breakpoint.c */
 extern int exception_catchpoints_are_fragile;
 
-/* This is defined in valops.c. */
-extern struct value *find_function_in_inferior (char *);
-
 /* Should call_function allocate stack space for a struct return?  */
 int
 hppa_use_struct_convention (int gcc_p, struct type *type)
@@ -300,7 +297,7 @@ static CORE_ADDR low_text_segment_address;
 static void
 record_text_segment_lowaddr (bfd *abfd, asection *section, void *ignored)
 {
-  if ((section->flags & (SEC_ALLOC | SEC_LOAD | SEC_READONLY)
+  if (((section->flags & (SEC_ALLOC | SEC_LOAD | SEC_READONLY))
        == (SEC_ALLOC | SEC_LOAD | SEC_READONLY))
       && section->vma < low_text_segment_address)
     low_text_segment_address = section->vma;