On Wed, Apr 9, 2025 at 7:16 AM John David Anglin <d...@parisc-linux.org> wrote:
>
> Tested on hppa64-hp-hpux11.11.
>
> Okay?
>
> Dave
> ---
>
> libbacktrace: Add hpux fileline support
>
> Fixes libstdc++ stacktrace tests.
>
> 2025-04-09  John David Anglin  <dang...@gcc.gnu.org>
>
> libbacktrace/ChangeLog:
>         * fileline.c (hpux_get_executable_path): New.
>         (fileline_initialize): Add pass to get hpux executable path.
>
> diff --git a/libbacktrace/fileline.c b/libbacktrace/fileline.c
> index c9fd86b8c0c..e46ea05e528 100644
> --- a/libbacktrace/fileline.c
> +++ b/libbacktrace/fileline.c
> @@ -66,6 +66,35 @@ POSSIBILITY OF SUCH DAMAGE.  */
>  #define getexecname() NULL
>  #endif
>
> +#ifdef __hpux__
> +#include <dl.h>

Please move this #include up with the other #include lines.

This is OK with that change. Thanks.

Ian

Reply via email to