public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* set_value_component_location in apply_val_pretty_printer
@ 2016-10-28 14:18 Yao Qi
  2016-10-28 18:58 ` Ulrich Weigand
  0 siblings, 1 reply; 9+ messages in thread
From: Yao Qi @ 2016-10-28 14:18 UTC (permalink / raw)
  To: gdb-patches; +Cc: Tom Tromey

Hi,

I don't understand this piece of code in apply_val_pretty_printer,
why do we need to call set_value_component_location?

  set_value_component_location (value, val);
  /* set_value_component_location resets the address, so we may
     need to set it again.  */
  if (VALUE_LVAL (value) != lval_internalvar
      && VALUE_LVAL (value) != lval_internalvar_component
      && VALUE_LVAL (value) != lval_computed)
    set_value_address (value, address + embedded_offset);

It was added by Tom in
https://sourceware.org/ml/gdb-patches/2010-06/msg00132.html
There wasn't much information in email and ChangeLog.

-- 
Yao (齐尧)

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-11-22  9:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-28 14:18 set_value_component_location in apply_val_pretty_printer Yao Qi
2016-10-28 18:58 ` Ulrich Weigand
2016-10-31  3:07   ` Tom Tromey
2016-11-14 12:52   ` Yao Qi
2016-11-14 16:38     ` Ulrich Weigand
2016-11-21 14:14       ` Yao Qi
2016-11-21 18:23         ` Yao Qi
2016-11-21 20:37           ` Yao Qi
2016-11-22  9:00             ` Yao Qi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).