diff --git a/gdb/gcore.in b/gdb/gcore.in index 34860de..5ede1d4 100644 --- a/gdb/gcore.in +++ b/gdb/gcore.in @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/sh # Copyright (C) 2003-2023 Free Software Foundation, Inc. @@ -25,17 +25,12 @@ prefix=core # When the -a option is present, this may hold additional commands # to ensure gdb dumps all mappings (OS dependent). -dump_all_cmds=() +dump_all=0 while getopts :ao: opt; do case "$opt" in a) - case "$OSTYPE" in - linux*) - dump_all_cmds=("-ex" "set use-coredump-filter off") - dump_all_cmds+=("-ex" "set dump-excluded-mappings on") - ;; - esac + dump_all=1 ;; o) prefix=$OPTARG @@ -97,11 +92,18 @@ for pid in "$@" do # `