Bug 719846

Summary: gcore outputs current frame
Product: [Fedora] Fedora Reporter: Jan Kratochvil <jan.kratochvil>
Component: gdbAssignee: Jan Kratochvil <jan.kratochvil>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: jan.kratochvil, pmuldoon, sergiodj, tromey
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-11 18:56:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jan Kratochvil 2011-07-08 07:03:47 UTC
Description of problem:
gcore should not output much

Version-Release number of selected component (if applicable):
gdb-7.2.90.20110703-40.fc15.x86_64

How reproducible:
Always.

Steps to Reproduce:
sleep 1h&p=$!;gcore $p

Actual results:
[1] 26696
0x00007f0dbaee0cd0 in __nanosleep_nocancel () at ../sysdeps/unix/syscall-template.S:82
82	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
Saved corefile core.26696

Expected results:
[1] 26696
Saved corefile core.26696

Additional info:

Comment 1 Jan Kratochvil 2011-07-11 18:56:07 UTC
This change happened since:

show 8235c43a2ff5e1dfa28c1a39757fd941cbc6454c
commit 8235c43a2ff5e1dfa28c1a39757fd941cbc6454c
Author: Daniel Jacobowitz <dan>
Date:   Sun Oct 2 23:01:01 2005 +0000

        * gdb_gcore.sh: Use a temporary file.  Use gdb from $PATH.

GDB before did not print anything due to >/dev/null there.

I do not find it easy to suppress just the normal_stop() message.
One can still get the original behavior by the >/dev/null redirect of gcore.
One can use the option `-o' to specific the gcore filename instead of parsing the one printed by GDB.

I do not think a fix is needed.