From: Aleksandar Ristovski <ARistovski@qnx.com>
To: Aleksandar Ristovski <ARistovski@qnx.com>
Cc: Vladimir Prus <vladimir@codesourcery.com>,
gdb-patches@sources.redhat.com, nickrob@snap.net.nz
Subject: Re: [patch] fix for PR2424
Date: Tue, 01 Apr 2008 19:41:00 -0000 [thread overview]
Message-ID: <47F27A80.2060906@qnx.com> (raw)
Aleksandar Ristovski wrote:
> Vladimir Prus wrote:
>> On Monday 10 March 2008 20:18:06 Aleksandar Ristovski wrote:
>>> Vladimir Prus wrote:
>>> The proposed patch (attached) will produce the following outputs:
>>>
>>> CLI:
>>> (gdb) tbreak main
>>> Temporary breakpoint 1 at 0x80483a0: file ./main.c, line 15.
>>> (gdb) r
>>> Starting program: /space/src/testcases/sigsegv/main
>>>
>>> Temporary breakpoint 1, main () at ./main.c:15
>>> 15 foo (p);
>>>
>>> MI:
>>> (gdb)
>>> -break-insert -t main
>>>
^done,bkpt={number="1",type="breakpoint",disp="del",enabled="y",addr="0x0804
83a0",func="main",file="./main.c",fullname="/space/src/testcases/sigsegv/mai
n.c",line="15",times="0"}
>>> (gdb)
>>> -exec-run
>>> ^running
>>> (gdb)
>>>
*stopped,reason="breakpoint-hit",disp="del",bkptno="1",thread-id="0",frame={
addr="0x080483a0",func="main",args=[],file="./main.c",fullname="/space/src/t
estcases/sigsegv/main.c",line="15"}
>>>
>> For consistency, it's better to use same printing of 'disp' as done
>> in print_one_breakpoint_location:
>>
>> ui_out_field_string (uiout, "disp", bpdisps[(int) b->disposition]);
>>
>> bpdisps is actually a table local to print_one_breakpoint_location,
>> but there's no reason why it cannot be made a global table.
>>
>> - Volodya
>>
>
> New diff for code (testsuite remains the same as in previous email).
Static
> array bpstats moved to new function bpstat_text and function used.
>
> Note: I believe docs need also be changed since in the examples for mi
protocol
> there are no 'disp' fields. But I am not sure where do I need to make
those changes.
>
> 2008-03-10 Aleksandar Ristovski <aristovski@qnx.com>
>
> * infrun.c (normal_stop) Move breakpoint_auto_delete further down
> to allow printing to 'see' real reason of stop. This fixes PR 2424.
> * breakpoint.c (bpdisp_texst): New function. The function takes over
> the role of bpstats static array in print_one_breakpoint_location.
> (print_it_typical): Print "Temporary breakpoint" instead
> of just "Breakpoint" when breakpoint is, well, temporary. For
mi-like
> protocols, print disp field.
> (print_one_breakpoint_location): Removed bpdisps static definition.
> Call new bpstat_text function to get value for 'disp' field.
> (mention): Print "Temporary breakpoint" instead of just
"Breakpoint".
>
Any thoughts on this?
next reply other threads:[~2008-04-01 18:10 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-01 19:41 Aleksandar Ristovski [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-04-23 17:48 Aleksandar Ristovski
2008-04-23 17:49 ` Vladimir Prus
2008-04-16 18:28 Aleksandar Ristovski
2008-04-15 15:31 Aleksandar Ristovski
2008-04-15 15:07 Aleksandar Ristovski
2008-04-15 15:25 ` Daniel Jacobowitz
2008-04-16 13:17 ` Vladimir Prus
2008-04-23 11:16 ` Vladimir Prus
2008-04-14 15:16 Aleksandar Ristovski
2008-04-14 18:06 ` Daniel Jacobowitz
2008-03-05 17:36 Aleksandar Ristovski
2008-03-08 11:31 ` Nick Roberts
2008-03-08 18:36 ` Vladimir Prus
2008-03-09 0:12 ` Aleksandar Ristovski
2008-03-09 3:32 ` Nick Roberts
2008-03-09 4:55 ` Aleksandar Ristovski
2008-03-10 8:11 ` Vladimir Prus
2008-03-10 14:29 ` Aleksandar Ristovski
2008-03-10 14:45 ` Vladimir Prus
2008-03-10 17:18 ` Aleksandar Ristovski
2008-03-10 17:36 ` Vladimir Prus
2008-03-10 18:50 ` Aleksandar Ristovski
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=47F27A80.2060906@qnx.com \
--to=aristovski@qnx.com \
--cc=gdb-patches@sources.redhat.com \
--cc=nickrob@snap.net.nz \
--cc=vladimir@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