This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cli/1859: Linux, Mac OS X, finish, define, break


>Number:         1859
>Category:       cli
>Synopsis:       Linux, Mac OS X, finish, define, break
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 02 14:48:03 UTC 2005
>Closed-Date:
>Last-Modified:
>Originator:     Andrew Griffiths
>Release:        unknown-1.0
>Organization:
>Environment:
 GNU gdb 6.3-debian
 GNU gdb 5.3-20030128 (Apple version gdb-330.1)
>Description:
The first problem is relating to the terminating input field for the define command.

Specifically, the 'end' terminator is used, which makes it unusable if you need to use another command which uses that example.

>How-To-Repeat:
gdb> def bug1
> break hihi if (*($esp + 4) > 100)
> commands
> finish
> echo "ok, I should be at main now."
> end
gdb> bug1 
Breakpoint 1 at 0x804838a

*now the user has to control c to get back input, as the commands bit is unterminated*
>Fix:
Perhaps parse the input the same as the commands instruction when possible, or perhaps alternatively allow the user to specify end of construct terminators.
>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]