Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Weimin Pan <weimin.pan@oracle.com>
To: Simon Marchi <simon.marchi@polymtl.ca>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH 4 PR gdb/16959] gdb hangs in infinite recursion
Date: Tue, 27 Mar 2018 22:03:00 -0000	[thread overview]
Message-ID: <366467e7-2473-9e33-90e1-2e20215acb5d@oracle.com> (raw)
In-Reply-To: <ad317148ba5d0f1661ad3179b188739f@polymtl.ca>



On 3/27/2018 1:48 PM, Simon Marchi wrote:
> On 2018-03-27 15:53, Weimin Pan wrote:
>> On 3/26/2018 8:28 PM, Simon Marchi wrote:
>>> On 2018-03-26 17:54, Weimin Pan wrote:
>>>> @@ -658,15 +659,14 @@ cp_print_static_field (struct type *type,
>>>>        addr = value_address (val);
>>>>        obstack_grow (&dont_print_statmem_obstack, (char *) &addr,
>>>>              sizeof (CORE_ADDR));
>>>> -      type = check_typedef (type);
>>>> -      cp_print_value_fields (type, value_enclosing_type (val),
>>>> +      cp_print_value_fields (real_type, value_enclosing_type (val),
>>>
>>> As discussed previously, here we should pass the original type.
>>
>> Hi Simon,
>>
>> OK, just made the change to pass the original type to 
>> cp_print_value_fields()
>> which in turn calls check_typedef() to get the real type.
>>
>>>
>>> Btw, if you now have push access to the git repo, you should add 
>>> yourself in the "Write After Approval" section of the 
>>> gdb/MAINTAINERS file.  This will help you make sure everything is 
>>> set up correctly.  Don't forget to include a ChangeLog entry for it 
>>> and post the patch on the mailing list afterwards (mentioning that 
>>> you have pushed it), you can inspire yourself from how people have 
>>> done it in the past.
>>
>> Is there any document or instructions that I can access to understand
>> the whole process better?
>
> I am not sure there is such a document, but there isn't that much to 
> the process.  We should probably have a little something on the wiki 
> though, if there isn't already.
>
> To setup your git repo, see here, in the section "Read-write git":
>
> https://www.gnu.org/software/gdb/current/
>
> The important part is using the ssh:// address.  After that, it's like 
> any other git repo.  It will use the public key you provided while 
> registering for your account.  In my local repo, I added it as a 
> different remote with a special name (other than origin) to help 
> prevent pushing things accidentally.  So, for example:
>
> $ git remote add upstream ssh://sourceware.org/git/binutils-gdb.git
>
> You can then check that your access work by doing
>
> $ git fetch upstream
>
> Then:
>
> 1. While on the master branch, make sure you only have the patch (or 
> patches) you intend to push applied on top of upstream/master.
> 2. Make sure you inserted the ChangeLog entries in the actual 
> ChangeLog files and amended your commit
> 3. Push with "git push upstream master:master"
> 4. Notify the mailing list that you have pushed the patch.
>
> For the patch adding yourself as a write-after-approval maintainer, 
> you can see how Pedro did it recently:
>
> The commit: 
> https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=7eb2418fa4641c60f6713986de7d3a50fd7a22c0
> The mailing list message: 
> https://sourceware.org/ml/gdb-patches/2018-03/msg00391.html

Hi Simon,

Thanks very much for the detailed information. I will try to go through 
the process with either
this patch or the small task of getting rid of the 
lookup_minimal_symbol_and_objfile calls.

Weimin

>
> Simon


      reply	other threads:[~2018-03-27 22:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-26 22:20 Weimin Pan
2018-03-27  3:28 ` Simon Marchi
2018-03-27 19:54   ` Weimin Pan
2018-03-27 20:49     ` Simon Marchi
2018-03-27 22:03       ` Weimin Pan [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=366467e7-2473-9e33-90e1-2e20215acb5d@oracle.com \
    --to=weimin.pan@oracle.com \
    --cc=gdb-patches@sourceware.org \
    --cc=simon.marchi@polymtl.ca \
    /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