Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Hui Zhu <teawater@gmail.com>
To: Yao Qi <yao@codesourcery.com>
Cc: Keith Seitz <keiths@redhat.com>, Hui Zhu <hui_zhu@mentor.com>,
		gdb-patches ml <gdb-patches@sourceware.org>
Subject: Re: [PATCH] Fix create pending breakpoint handle extra_string issue if not parse_condition_and_thread
Date: Mon, 25 Mar 2013 16:27:00 -0000	[thread overview]
Message-ID: <CANFwon3F=a5hqK=70tbXT-MpndDiiuM4oBEgSiM5Rnsn+EZqag@mail.gmail.com> (raw)
In-Reply-To: <515051B8.3010801@codesourcery.com>

On Mon, Mar 25, 2013 at 9:31 PM, Yao Qi <yao@codesourcery.com> wrote:
> On 03/25/2013 11:45 AM, Hui Zhu wrote:
>>
>> But my patch is for the issue inside the function create_breakpoint.
>> I post the mi commands to show the issue is because it call
>> create_breakpoint with parse_condition_and_thread is 0 and easy to
>> show how it can affect the behavior of a pending breakpoint.
>> I think this issue also affect other functions that call
>> create_breakpoint with parse_condition_and_thread is 0.
>
>
> Hui,
> The comment of create_breakpoint says something,
>
> /* Set a breakpoint.  This function is shared between CLI and MI
>    functions for setting a breakpoint.  This function has two major
>    modes of operations, selected by the PARSE_CONDITION_AND_THREAD
>    parameter.  If non-zero, the function will parse arg, extracting
>    breakpoint location, address and thread.  Otherwise, ARG is just
>    the location of breakpoint, with condition and thread specified by
>    the COND_STRING and THREAD parameters.  If INTERNAL is non-zero,
>    the breakpoint number will be allocated from the internal
>    breakpoint count.  Returns true if any breakpoint was created;
>    false otherwise.  */
>
> in other words, it is invalid to put condition into ARG and set
> parse_condition_and_thread 0.

Yao, thanks for your remind.  And my patch just to make
create_breakpoint handle pending breakpoint follow this comments,
right?  :)


*If non-zero, the function will parse arg, extracting breakpoint
location, address and thread. *
So if it is zero, the function should get arg and anything from
argument of this function, right?

But "-break-insert -f -c k>0 "pendfunc1 if k == 0" " is a example that
it is zero, and GDB get condition from arg, it is a right behavior?

And extra_string just be dropped even if parse_condition_and_thread is
non-zero, is that right?

Thanks,
Hui

>
> --
> Yao (齐尧)


  reply	other threads:[~2013-03-25 14:40 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-24 12:05 Hui Zhu
2013-03-25  0:53 ` Keith Seitz
2013-03-25  7:54   ` Hui Zhu
2013-03-25 16:14     ` Yao Qi
2013-03-25 16:27       ` Hui Zhu [this message]
2013-03-25 19:32     ` Tom Tromey
2013-03-25 19:58       ` Keith Seitz
2013-03-26 11:16         ` Hui Zhu
2013-04-05 19:18         ` Pedro Alves
2013-04-08  7:56           ` Keith Seitz
2013-04-08 17:54             ` Pedro Alves

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CANFwon3F=a5hqK=70tbXT-MpndDiiuM4oBEgSiM5Rnsn+EZqag@mail.gmail.com' \
    --to=teawater@gmail.com \
    --cc=gdb-patches@sourceware.org \
    --cc=hui_zhu@mentor.com \
    --cc=keiths@redhat.com \
    --cc=yao@codesourcery.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox