From: Jiong Wang <jiwang@tilera.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: Yao Qi <yao@codesourcery.com>, <gdb-patches@sourceware.org>,
Walter Lee <walt@tilera.com>, <palves@redhat.com>
Subject: Re: [PATCH/tilegx] tilegx bug fixes & improvements
Date: Fri, 07 Dec 2012 03:12:00 -0000 [thread overview]
Message-ID: <50C15E9C.8010404@tilera.com> (raw)
In-Reply-To: <20121207024144.GB31477@adacore.com>
Hi Joel & Yao,
thanks for your time for careful review & suggestions.
I will re-organize the patches, re-test, then re-submit
---
Regards,
Jiong
On 12/07/2012 10:41 AM, Joel Brobecker wrote:
>>> alloca is unsafe, and we prefer to use xmalloc/cleanup+xfree.
>> fixed.
> Just to be more precise, we avoid the use of alloca when inside
> a loop (or inside a function that's typically called inside a loop),
> in order to avoid blowing the stack. But using alloca for resonably-
> sized objects is otherwise fine.
>
>> attachment is the patch to fix above problems
> I think you need to fold this patch into the previous patches you
> submitted, and then make sure you re-submit them, one patch per
> email - making sure you update the ChangeLog files when necessary.
>
> I noticed that some of your commits did not have a subject. And
> it would be good if each commit explained precisely what it improves.
>
> Take a look at how each patch in the following series of 4 patches
> has been submitted for instance:
> http://www.sourceware.org/ml/gdb-patches/2012-11/msg00854.html
> (links to referenced emails are at the bottom of the page).
>
> I apologize in advance for the comments below, as they seem like
> nit-picking. But they are about coding style, and trying to be
> consistent within a project is important.
>
>> - stack_dest = (stack_dest + 7) & ~0x7;
>> + stack_dest = align_down(stack_dest, 8);
> You are missing a space before the '('.
>
>> if (status == 0) {
> Our style is to put the brace on the next line, thus:
>
> if (status == 0)
> {
>
>> /* fix gdb.base/gdb1250
> Another nit: Sentences start with a capital letter and end with
> a period. Thus:
>
> /* Fix gdb.base/gdb1250.
>
> I am not too fond of references to the testsuite, however. Is that
> necessary? I don't think people grep the sources when they change
> anything in the testsuite. As long as you describe why you are
> making a change, I don't see a need for saying what testcase you
> are fixing.
>
> I haven't really looked at the contents of the patch, only the style.
> We'll get to that when you resubmit them.
>
>> - * breakpoint is set before dynamic library loaded, thus gdb
>> - * does a partial symbol name finding and sets the breakpoint
>> - * in the plt stub. our 32-bundle prefetch window is too large
>> - * for this situation to cause a memory access error.
>> - * For plt stub, we just need to return directly.
>> - *
>> - * x86 does not have this problem, because the first instruction
>> - * in their plt stub is jump, which ends the analysis also.
>> + breakpoint is set before dynamic library loaded, thus gdb
>> + does a partial symbol name finding and sets the breakpoint
>> + in the plt stub. our 32-bundle prefetch window is too large
>> + for this situation to cause a memory access error.
>> + For plt stub, we just need to return directly.
>> +
>> + x86 does not have this problem, because the first instruction
>> + in their plt stub is jump, which ends the analysis also.
>> */
>> - if (strcmp(find_pc_section(instbuf_start)->the_bfd_section->name,
>> - ".plt") == 0)
>> + if (in_plt_section (instbuf_start, NULL))
>> return instbuf_start;
>> memory_error (status, next_addr);
>> }
>
prev parent reply other threads:[~2012-12-07 3:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-06 7:00 Jiong Wang
2012-12-06 9:39 ` Yao Qi
2012-12-06 15:20 ` Jiong Wang
2012-12-07 2:40 ` Yao Qi
2012-12-07 2:42 ` Joel Brobecker
2012-12-07 3:12 ` Jiong Wang [this message]
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=50C15E9C.8010404@tilera.com \
--to=jiwang@tilera.com \
--cc=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
--cc=palves@redhat.com \
--cc=walt@tilera.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