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. cd6873a0f45ff7ef32a00a2f73c1b0f3dfcda4db

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  cd6873a0f45ff7ef32a00a2f73c1b0f3dfcda4db (commit)
      from  d4703eb2949c3296107cad41f925519730f16927 (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=cd6873a0f45ff7ef32a00a2f73c1b0f3dfcda4db

commit cd6873a0f45ff7ef32a00a2f73c1b0f3dfcda4db
Author: Yao Qi <>
Date:   Thu Oct 17 21:15:21 2013 +0800

    New field la_varobj_ops in struct language_defn
    This is a follow-up series to move language stuff out of varobj.c.
    This patch adds a new field la_varobj_ops in struct language_defn so
    that each language has varobj-related options.  Not every language
    supports varobj, and the operations are identical to operations of c
    'struct language_defn' is the ideal place to save all language-related
    operations.  After this patch, some cleanups can be done in patch 2/2,
    which removes language-related stuff completely from varobj.c.
    Regression tested on x86_64-linux.
    2013-10-25  Yao Qi  <>
    	* language.h (struct lang_varobj_ops): Declare.
    	(struct language_defn) <la_varobj_ops>: New field.
    	* ada-lang.c: Include "varobj.h"
    	(defn ada_language_defn): Initialize field 'la_varobj_ops' by
    	* c-lang.c: Include "varobj.h"
    	(c_language_defn): Initialize field 'la_varobj_ops' by
    	(cplus_language_defn): Initialize field 'la_varobj_ops' by
    	(asm_language_defn): Initialize field 'la_varobj_ops' by
    	(minimal_language_defn): Likewise.
    	* d-lang.c (d_language_defn): Likewise.
    	* f-lang.c (f_language_defn): Likewise.
    	* go-lang.c (go_language_defn): Likewise.
    	* m2-lang.c (m2_language_defn): Likewise.
    	* objc-lang.c (objc_language_defn): Likewise.
    	* opencl-lang.c (opencl_language_defn): Likewise.
    	* p-lang.c (pascal_language_defn): Likewise.
    	* language.c (unknown_language_defn): Likewise.
    	(auto_language_defn): Likewise.
    	(local_language_defn): Likewise.
    	* jv-lang.c (java_language_defn): Initialize field
    	'la_varobj_ops' by java_varobj_ops.
    	* varobj.c (varobj_create): Update.
    	* varobj.h (default_varobj_ops): Define macro.


Summary of changes:
 gdb/ChangeLog     |   30 ++++++++++++++++++++++++++++++
 gdb/ada-lang.c    |    2 ++
 gdb/c-lang.c      |    5 +++++
 gdb/d-lang.c      |    2 ++
 gdb/f-lang.c      |    2 ++
 gdb/go-lang.c     |    2 ++
 gdb/jv-lang.c     |    2 ++
 gdb/language.c    |    4 ++++
 gdb/language.h    |    4 ++++
 gdb/m2-lang.c     |    2 ++
 gdb/objc-lang.c   |    2 ++
 gdb/opencl-lang.c |    2 ++
 gdb/p-lang.c      |    2 ++
 gdb/varobj.c      |    4 +---
 gdb/varobj.h      |    1 +
 15 files changed, 63 insertions(+), 3 deletions(-)

gdb and binutils

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