Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Maxim Grigoriev <maxim@tensilica.com>
To: Maxim Grigoriev <maxim@tensilica.com>,
	  gdb-patches@sources.redhat.com,
	Bob Wilson <bwilson@tensilica.com>,
	  Marc Gauthier <marc@tensilica.com>,
	 Chris Zankel <czankel@tensilica.com>
Subject: Re: Xtensa GDB port -- revised patch
Date: Sat, 11 Nov 2006 01:21:00 -0000	[thread overview]
Message-ID: <45552583.8070206@hq.tensilica.com> (raw)
In-Reply-To: <20061110203908.GC1115@nevyn.them.org>

Hi Daniel,

Thank you very much for finding the time to review Xtensa submission.
>   - The port needs a maintainer, and an entry in MAINTAINERS.  Who will
>     be the maintainer?
>   
I'd be happy to become an Xtensa GDB maintainer.

I have a question about the second issue you pointed to:
>   - I noticed that your prev_register recursively calls
>     frame_register_unwind.  This isn't a big problem but it is
>     incorrect.  If you defer to another frame, you should set
>     e.g. realnump to point the number for the next frame.  See
>     trad_frame_get_prev_register for an example.
>   
I understood your concern is that the register number within the next 
frame is not set ( *realnump ). On Xtensa, it's going to be unchanged 
from the previous frame's value.

Question: is replacing of

frame_register_unwind (next_frame, regnum,
optimizedp, lvalp, addrp, realnump, valuep);

with

*optimizedp = 0;
*lvalp = lval_register;
*addrp = 0;
*realnump = regnum;
if (valuep)
frame_unwind_register (next_frame, (*realnump), valuep);

the fix you are looking for ? I tested it. It works fine.

And, I fixed the rest of issues ( sorry for missing that ) :
>   - There's one stray hunk:
>   
>> @@ -1330,7 +1332,6 @@
>>  	done
>>  
>>  Makefile: Makefile.in config.status @frags@
>> -	# Regenerate the Makefile and the tm.h / nm.h links.
>>  	CONFIG_FILES=Makefile \
>>     
>   - There's a few instances of operators without spaces around them,
>     like "-=4" and "(op1)==0x6c" and "8? 8".  I don't think you need to
>     go back and fix them at this point, but please be careful in the
>     future.
>   
-- Maxim


  reply	other threads:[~2006-11-11  1:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-28  1:07 Maxim Grigoriev
2006-09-28  1:19 ` Daniel Jacobowitz
2006-10-05 23:55   ` Maxim Grigoriev
2006-10-06  9:51     ` Eli Zaretskii
2006-11-10 20:39     ` Daniel Jacobowitz
2006-11-11  1:21       ` Maxim Grigoriev [this message]
2006-11-11  1:40         ` Daniel Jacobowitz
2006-11-11  2:15           ` Maxim Grigoriev
     [not found]           ` <455530BB.3060403@hq.tensilica.com>
2006-11-14 21:54             ` Daniel Jacobowitz

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=45552583.8070206@hq.tensilica.com \
    --to=maxim@tensilica.com \
    --cc=bwilson@tensilica.com \
    --cc=czankel@tensilica.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=marc@tensilica.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