This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA/Semi-obvious/5.3?] Fix compilation error in hppa-tdep.c


> 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
> 
>         * hppa-tdep.c (find_function_in_inferior): Fix the declaration
>         that caused a compilation error on HP/UX.
>         (low_text_segment_addres): Fix a compilation warning.

Actually, I am replying to myself: the fix to find_function_in_inferior
works, but is pretty stupid. Better to remove the extern altogether,
since we get the definition directly from value.h (which caused the
compilation error in the first place). 

Sorry about that, I should not be working that late I suppose.

Here is a new patch, with a new ChangeLog:

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 due to a conflict in parameter type declaration
        due to a missing const keyword.
        (low_text_segment_addres): Fix a compilation warning.

It looks like the 5.3 branch has the same problem, so I'll fix it too
when I get approval for this patch.

Thanks,
-- 
Joel

Attachment: hppa-tdep.c.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]