Bug 719846 - gcore outputs current frame
Summary: gcore outputs current frame
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: gdb
Version: 15
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Kratochvil
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-08 07:03 UTC by Jan Kratochvil
Modified: 2011-07-11 18:56 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-11 18:56:07 UTC
Type: ---


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.