From bf9c25dc04a0d51aa8c03b6110d3fc3d0c2962db Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Wed, 30 Oct 2002 20:42:54 +0000 Subject: * 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. --- gdb/ChangeLog | 8 ++++++++ gdb/hppa-tdep.c | 5 +---- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'gdb') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 903e0f5..4a5df7e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +2002-10-30 Joel Brobecker + + * 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 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch 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; -- cgit v1.1