This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb and binutils branch master updated. 6c659fc2c7cd2da6d2b9a3d7c38597ad3821832a

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".

The branch, master has been updated
       via  6c659fc2c7cd2da6d2b9a3d7c38597ad3821832a (commit)
      from  f4f855e84b45eb41987641b4a26037c7444dda33 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------;h=6c659fc2c7cd2da6d2b9a3d7c38597ad3821832a

commit 6c659fc2c7cd2da6d2b9a3d7c38597ad3821832a
Author: Siva Chandra <>
Date:   Tue Nov 11 05:43:03 2014 -0800

    Enable chained function calls in C++ expressions.
    	* eval.c: Include gdbthread.h.
    	(evaluate_subexp): Enable thread stack temporaries before
    	evaluating a complete expression and clean them up after the
    	evaluation is complete.
    	* gdbthread.h: Include common/vec.h.
    	(value_ptr): New typedef.
    	(VEC (value_ptr)): New vector type.
    	(value_vec): New typedef.
    	(struct thread_info): Add new fields stack_temporaries_enabled
    	and stack_temporaries.
    	(thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
    	(value_in_thread_stack_temporaries): Declare.
    	* gdbtypes.c (class_or_union_p): New function.
    	* gdbtypes.h (class_or_union_p): Declare.
    	* infcall.c (call_function_by_hand): Store return values of class
    	type as	temporaries on stack.
    	* thread.c (enable_thread_stack_temporaries): New function.
    	(thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
    	(get_last_thread_stack_temporary): Likewise.
    	(value_in_thread_stack_temporaries): Likewise.
    	* value.c (value_force_lval): New function.
    	* value.h (value_force_lval): Declare.
    	* gdb.cp/ New file.
    	* gdb.cp/chained-calls.exp: New file.
    	* gdb.cp/smartp.exp: Remove KFAIL for "p c2->inta".


Summary of changes:
 gdb/ChangeLog                          |   27 ++++
 gdb/eval.c                             |   23 ++++-
 gdb/gdbthread.h                        |   23 ++++
 gdb/gdbtypes.c                         |    9 ++
 gdb/gdbtypes.h                         |    2 +
 gdb/infcall.c                          |   93 +++++++++++----
 gdb/testsuite/ChangeLog                |    6 +
 gdb/testsuite/gdb.cp/  |  203 ++++++++++++++++++++++++++++++++
 gdb/testsuite/gdb.cp/chained-calls.exp |   44 +++++++
 gdb/testsuite/gdb.cp/smartp.exp        |    1 -
 gdb/thread.c                           |  102 ++++++++++++++++
 gdb/value.c                            |   12 ++
 gdb/value.h                            |    2 +
 13 files changed, 523 insertions(+), 24 deletions(-)
 create mode 100644 gdb/testsuite/gdb.cp/
 create mode 100644 gdb/testsuite/gdb.cp/chained-calls.exp

gdb and binutils

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]