Hi, The function `attach_command' sets up the terminal by calling target_terminal_inferior (). This makes gcore(1) to lock up when being run without its controlling terminal. I do not find a reason for this terminal setup as GDB does not share its input/output with the application in the mode of external attached program. Provided a testcase for `gdb_gcore.sh' at all. Regards, Jan https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=229517