Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1146170

Summary: `save breakpoints' does not save signal catchpoints and disabled breakpoints correctly
Product: [Fedora] Fedora Reporter: Miroslav Franc <mfranc>
Component: gdbAssignee: Jan Kratochvil <jan.kratochvil>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: gbenson, jan.kratochvil, ohudlick, palves, pmuldoon, sergiodj, tromey
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gdb-7.8-24.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-06 05:06:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
gdb catch signal patch
none
save breakpoints does not handle disable properly none

Description Miroslav Franc 2014-09-24 16:03:35 UTC
Created attachment 940822 [details]
gdb catch signal patch

Description of problem:
SSIA

Version-Release number of selected component (if applicable):
gdb-7.7.90.20140613-4.fc21 but seems to be upstream issue as well

How reproducible:
always


Steps to Reproduce:
1. $ gdb <whatever>
2. catch signal SIGTERM
3. break main
4. save breakpoints b.txt
5. shell cat b.txt

Actual results:
catch signal SIGTERMbreak main


Expected results:
catch signal SIGTERM
break main

Comment 1 Miroslav Franc 2014-09-24 17:35:51 UTC
Created attachment 940836 [details]
save breakpoints does not handle disable properly

There's one additional problem.  `save breakpoints' does not save disable properly.  Let's say I create 3 breakpoints and disable the middle one.

I should have

break main
break foo
disable $bpnum
break bar

instead I have

break main
break foo
disable
break bar

which erroneously disables even the first breakpoint.

Comment 2 Fedora Update System 2014-10-04 06:00:36 UTC
gdb-7.8-24.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/gdb-7.8-24.fc21

Comment 3 Fedora Update System 2014-10-05 08:14:44 UTC
Package gdb-7.8-24.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing gdb-7.8-24.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-12211/gdb-7.8-24.fc21
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2014-10-06 05:06:12 UTC
gdb-7.8-24.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.