aboutsummaryrefslogtreecommitdiff
path: root/gdb/hppa-tdep.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2002-10-30 20:42:54 +0000
committerJoel Brobecker <brobecker@gnat.com>2002-10-30 20:42:54 +0000
commitbf9c25dc04a0d51aa8c03b6110d3fc3d0c2962db (patch)
tree178e9e0d34851482bd99dd847c8d2fd2a85f074b /gdb/hppa-tdep.c
parent54847c7622d8b0bff65fba8131a2a7b0f8e7b6e0 (diff)
downloadgdb-bf9c25dc04a0d51aa8c03b6110d3fc3d0c2962db.zip
gdb-bf9c25dc04a0d51aa8c03b6110d3fc3d0c2962db.tar.gz
gdb-bf9c25dc04a0d51aa8c03b6110d3fc3d0c2962db.tar.bz2
* 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.
Diffstat (limited to 'gdb/hppa-tdep.c')
-rw-r--r--gdb/hppa-tdep.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c
index 19e4402..59f8873 100644
--- a/gdb/hppa-tdep.c
+++ b/gdb/hppa-tdep.c
@@ -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;