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 - `save breakpoints' does not save signal catchpoints and disabled breakpoints correctly
Summary: `save breakpoints' does not save signal catchpoints and disabled breakpoints ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gdb
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Kratochvil
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-24 16:03 UTC by Miroslav Franc
Modified: 2016-02-01 02:29 UTC (History)
7 users (show)

Fixed In Version: gdb-7.8-24.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-10-06 05:06:12 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
gdb catch signal patch (422 bytes, patch)
2014-09-24 16:03 UTC, Miroslav Franc
no flags Details | Diff
save breakpoints does not handle disable properly (487 bytes, patch)
2014-09-24 17:35 UTC, Miroslav Franc
no flags Details | Diff

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.


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