This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 2/4] Error on bad count number
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: palves at redhat dot com, brobecker at adacore dot com, gdb-patches at sourceware dot org
- Date: Fri, 07 Mar 2014 12:53:04 +0200
- Subject: Re: [PATCH 2/4] Error on bad count number
- Authentication-results: sourceware.org; auth=none
- References: <1394023608-10761-1-git-send-email-yao at codesourcery dot com> <1394023608-10761-3-git-send-email-yao at codesourcery dot com> <20140305142939 dot GB16858 at adacore dot com> <531749BA dot 8050806 at redhat dot com> <5318456D dot 3010709 at codesourcery dot com> <53186842 dot 9030704 at redhat dot com> <5319938B dot 60402 at codesourcery dot com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Fri, 7 Mar 2014 17:38:19 +0800
> From: Yao Qi <yao@codesourcery.com>
> CC: Joel Brobecker <brobecker@adacore.com>, <gdb-patches@sourceware.org>
>
> > (top-gdb) ignore -6 1
> > Will ignore next crossing of breakpoint -6.
>
> Shouldn't GDB emit an error on the negative input? Do we have any
> case that negative is valid?
AFAIR, breakpoints set by GDB for its own purposes are given negative
numbers.