aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2010-11-09*** empty log message ***gdbadmin1-1/+1
2010-11-08gdb/testsuite/Jan Kratochvil2-1/+17
* gdb.base/break-entry.exp: convert entry point for ppc64 and expect leading `.' on ppc64's symbols
2010-11-08*** empty log message ***gdbadmin1-1/+1
2010-11-07gdb/Jan Kratochvil2-3/+9
* infrun.c (restore_inferior_thread_state): Use discard_inferior_thread_state to free the data. (discard_inferior_thread_state): xfree also siginfo_data.
2010-11-07*** empty log message ***gdbadmin1-1/+1
2010-11-06*** empty log message ***gdbadmin1-1/+1
2010-11-05 * gdb.python/py-param.exp: Delete, contents moved to ...Doug Evans3-115/+87
* gdb.python/py-parameter.exp: ... here. New file. Add test for gdb.parameter ("directories").
2010-11-05 Make gdb.parameter("directories") work.Doug Evans8-10/+119
New command "set directories". * NEWS: Document them. * source.c (set_directories_command): New function. (show_directories_1): Renamed from show_directories. All callers updated. (show_directories_command): New function. (_initialize_source): Install "directories" as a set/show variable instead of just a show command. doc/ * gdb.texinfo (Source Path): Document "set directories". testsuite/ * gdb.base/help.exp: Update expected output. * gdb.python/py-parameter.exp: New file.
2010-11-05gdb:Ken Werner31-43/+4550
* NEWS: Mention OpenCL C language support. * Makefile.in (SFILES): Add opencl-lang.c. (COMMON_OBS): Add opencl-lang.o. * opencl-lang.c: New File * defs.h (enum language): Add language_opencl. * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the IBM XL C OpenCL compiler. * c-lang.h: Include "parser-defs.h". (evaluate_subexp_c): Declare. * c-lang.c (evaluate_subexp_c): Remove the static qualifier. (c_op_print_tab): Add declaration. * eval.c (binop_promote): Handle language_opencl. * c-exp.y: Lookup the primitive types instead of referring to the builtins. gdb/testsuite: * Makefile.in (ALL_SUBDIRS): Add gdb.opencl. * configure.ac (AC_OUTPUT): Add gdb.opencl/Makefile. * configure: Regenerate. * gdb.opencl/Makefile.in: New File. * gdb.opencl/datatypes.exp: Likewise. * gdb.opencl/datatypes.cl: Likewise. * gdb.opencl/operators.exp: Likewise. * gdb.opencl/operators.cl: Likewise. * gdb.opencl/vec_comps.exp: Likewise. * gdb.opencl/vec_comps.cl: Likewise. * gdb.opencl/convs_casts.exp: Likewise. * gdb.opencl/convs_casts.cl: Likewise. * lib/opencl.exp: Likewise. * lib/opencl_hostapp.c: Likewise. * lib/opencl_kernel.cl: Likewise. * lib/cl_util.c: Likewise. * lib/cl_util.c: Likewise. * gdb.base/default.exp (set language): Add "opencl" to the list of languages. gdb/doc: * gdb.texinfo: (Summary) Add mention about OpenCL C language support. (OpenCL C): New node.
2010-11-05gdb/Jan Kratochvil3-0/+22
Fix configure --enable-plugins --without-python. * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New. * configure: Regenerate.
2010-11-05gdb/Jan Kratochvil2-6/+8
* solib.c (solib_read_symbols): Call exception_fprintf even without FROM_TTY. Print also so->so_name.
2010-11-05*** empty log message ***gdbadmin1-1/+1
2010-11-04Fix derived class overload problem.Sami Wagiaalla7-36/+113
2010-11-04 Sami Wagiaalla <swagiaal@redhat.com> * gdbtypes.h (struct rank): Created subrank. * gdbtypes.c: Initialized subrank for all 'BADNESS' constants. (distance_to_ancestor): New function. (is_ancestor): Use distance_to_ancestor. (is_public_ancestor): Ditto. (sum_ranks): Handle subrank. (compare_ranks): Ditto. (rank_one_type): Subrank base conversions. 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com> * gdb.cp/overload.exp: Added test for inheritance overload. * gdb.cp/overload.cc: Ditto. * gdb.cp/oranking.exp: Removed releveant kfails.
2010-11-04Create and use struct rank.Sami Wagiaalla4-40/+128
2010-11-04 Sami Wagiaalla <swagiaal@redhat.com> * gdbtypes.h: Create struct rank. Convert all 'BADNESS' macros to const struct rank declarations. (sum_ranks): New function. (compare_ranks): New function. * valops.c (find_oload_champ): Updated. (classify_oload_match): Use compare_ranks. Improved comments. (compare_parameters): Use compare_ranks. * gdbtypes.c: Initialize 'BADNESS' constants. (sum_ranks): New function. (compare_ranks): New function. (compare_badness): Use compare_ranks. (rank_function): Use global constants instead of literals. (rank_one_type): Ditto. Return struct rank. Use sum_ranks.
2010-11-04 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.Doug Evans2-4/+9
(find_pretty_printer): Fix comments.
2010-11-04gdb/testsuite/Jan Kratochvil2-0/+15
* gdb.ada/null_array.exp (print my_table): Call get_compiler_info and check test_compiler_info.
2010-11-042010-11-04 Hui Zhu <teawater@gmail.com>Hui Zhu2-4/+8
* tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
2010-11-04*** empty log message ***gdbadmin1-1/+1
2010-11-03[Ada] move some variables to scope where they are usedJoel Brobecker2-11/+18
I noticed that some variables are only used inside one side of an if/else blob. So I moved these variables inside that block for better clarity. gdb/ChangeLog: * ada-valprint.c (ada_val_print_array): Move variables `eltlen' and `len' declaration and computation inside block where they are being used.
2010-11-03[Ada] fix warning when printing empty arrayJoel Brobecker2-1/+16
This patch should fix the following regression: (gdb) print my_table -$1 = () -(gdb) PASS: gdb.ada/null_array.exp: print my_table +$1 = (warning: unable to get bounds of array, assuming null array +) +(gdb) FAIL: gdb.ada/null_array.exp: print my_table The problem was introduced by a change in val_print_array_elements which removed a check for the case where the array's high bound is smaller than the array's low bound (empty array). This change restores the check and forces the len to zero in that case. Looking at the patch that caused the regression, I suspect that we may have other parts that might have been broken (non-zero array low bound?). gdb/ChangeLog: * valprint.c (val_print_array_elements): Put back handling of empty arrays.
2010-11-03gdb:Ken Werner12-96/+127
* dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the DIE and set the length of the type. * gdbtypes.h (get_array_bounds): Move here from valprint.h. * gdbtypes.c (get_array_bounds): Move here from valprint.c and return 0 if the corresponding bounds of the type are undefined. * valprint.h (get_array_bounds): Move declaration to gdbtypes.h. * valprint.c (get_array_bounds): Move implementation to gdbtypes.c. (val_print_array_elements): Use get_array_bounds to compute the number of array elements instead of dividing the length of the array by the length of the element types. * valarith.c (vector_binop): Likewise. * valops.c (value_cast): Likewise. * c-valprint.c (c_val_print): Likewise. * c-typeprint.c (c_type_print_varspec_suffix): Likewise. gdb/testsuite: * gdb.base/gnu_vector.exp: Adjust expect messages.
2010-11-03gdb:Ken Werner5-5/+78
* valarith.c (value_pos, value_neg, value_complement): Handle vector types. * valops.c (value_one): Likewise. gdb/testsuite: * gdb.base/gnu_vector.exp: Add unary operator tests.
2010-11-03gdb:Ken Werner6-2/+49
* value.h (value_non_lval): Declare. * value.c (value_non_lval): New function. * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT, UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a non-lvalue. gdb/testsuite: * gdb.base/exprs.exp: Add tests for pre-/post- in-/decrement operators.
2010-11-03*** empty log message ***gdbadmin1-1/+1
2010-11-02 New python module gdb.printing, and new commands info pretty-printer,Doug Evans13-42/+1184
enable pretty-printer, disable pretty-printer. * NEWS: Mention them. * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py, gdb/command/__init__.py, gdb/command/pretty_printers.py. * python/lib/gdb/__init__.py: Install pretty-printer commands. * python/lib/gdb/printing.py: New file. * python/lib/gdb/command/__init__.py: New file. * python/lib/gdb/command/pretty_printers.py: New file. doc/ * gdb.texinfo (Pretty Printing): Expand into three sections, introduction, example, and commands. (Python API): Delete section Disabling Pretty-Printers, merge into Selecting Pretty-Printers. (Writing a Pretty-Printer): New section. Move the pretty-printer example here, and reformat to match python coding style. Add a second example using the gdb.printing module. (Python modules): Add gdb.printing. testsuite/ * gdb.python/py-pp-maint.c: New file. * gdb.python/py-pp-maint.exp: New file. * gdb.python/py-pp-maint.py: New file.
2010-11-02gdbTom Tromey11-1733/+20
* NEWS: Mention Guile removal. * defs.h (enum language) <language_scm>: Remove. * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c, scm-valprint.c. (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h. (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o. * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h: Remove. gdb/testsuite * gdb.base/default.exp: Remove "scheme" from language list.
2010-11-02 * top.c: #include "python/python.h".Doug Evans4-8/+48
(gdb_init): Add a comment regarding initialize_all_files. Call finish_python_initialization at the end. * python/python.h (finish_python_initialization): Declare. * python/python.c (finish_python_initialization): New function. (_initialize_python): Move python-implemented initialization there and call it. (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
2010-11-02gdb/Jan Kratochvil8-155/+31
Revert: 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com> Pedro Alves <pedro@codesourcery.com> * gdbthread.h (currently_stepping): New declaration. * infrun.c (currently_stepping): Remove the forward declaration. (currently_stepping): Make it global. * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New variables tp and step, initialized them. Pass STEP to to_resume. Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP. * remote.c (currently_stepping_callback): New. (remote_vcont_resume) <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>: New variable tp. Call currently_stepping_callback and step such thread. gdb/testsuite/ Revert: 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com> * gdb.threads/sigstep-threads.exp: New file. * gdb.threads/sigstep-threads.c: New file.
2010-11-02*** empty log message ***gdbadmin1-1/+1
2010-11-012010-10-31 Hui Zhu <teawater@gmail.com>Hui Zhu2-5/+9
* tracepoint.c (tfile_xfer_partial): Change lma to vma.
2010-11-01*** empty log message ***gdbadmin1-1/+1
2010-10-31*** empty log message ***gdbadmin1-1/+1
2010-10-30 * gdb.texinfo (Python): Fix long line.Doug Evans2-1/+6
2010-10-30*** empty log message ***gdbadmin1-1/+1
2010-10-29*** empty log message ***gdbadmin1-1/+1
2010-10-282010-10-28 Hui Zhu <teawater@gmail.com>Hui Zhu2-1/+6
* tracepoint.c (trace_save): Change utp->actions to utp->step_actions.
2010-10-28*** empty log message ***gdbadmin1-1/+1
2010-10-27*** empty log message ***gdbadmin1-1/+1
2010-10-26fix typo in _FILE_OFFSET_BITS commentJoel Brobecker2-1/+5
This fixes a typo that MichaelS noticed in a patch I submitted and forgot to fix. gdb/ChangeLog: * (_FILE_OFFSET_BITS): Fix typo in comment.
2010-10-26Fix build failures with python support on sparc-solarisJoel Brobecker2-3/+13
There were two types of errors, mostly compiler warnings: 1. _FILE_OFFSET_BITS being redefined in pyconfig.h; This is a problem we're familiar with, having seen similar issues on GNU/Linux systems. I used a similar solution. 2. GCC 4.5 complains that calls to PyEval_InitThreads and PyEval_ReleaseLock have no effect. This is because our Python is built without thread support, leading us to use the dummy #define in python-internal.h which just gets replaced by `0'. Since this function returns void (checked versions 2.4 and 2.7), I simply removed the 0. gdb/ChangeLog: python/python-internal.h (_FILE_OFFSET_BITS): Undefine. (PyEval_InitThreads): Remove duplicate. Define as nothing. (PyEval_ReleaseLock): Define as nothing.
2010-10-26replace strcmp by FILENAME_CMP for filename comparisonJoel Brobecker2-1/+6
gdb/ChangeLog: * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp by call to FILENAME_CMP.
2010-10-26avoid assignment inside if condition (dictionary.c)Joel Brobecker2-2/+7
This change gets rid of an ARI warning which was recently introduced by one of our changes. gdb/ChangeLog: * dictionary.c (dict_hash): Move assignment out of if condition.
2010-10-26*** empty log message ***gdbadmin1-1/+1
2010-10-25*** empty log message ***gdbadmin1-1/+1
2010-10-24*** empty log message ***gdbadmin1-1/+1
2010-10-23*** empty log message ***gdbadmin1-1/+1
2010-10-22*** empty log message ***gdbadmin1-1/+1
2010-10-21 * Makefile.in (install): Remove dependency of install-only andJie Zhang5-3/+83
recursively invoke make for install-only. * data-directory/Makefile.in: Add FLAGS_TO_PASS variable. (install): Pass FLAGS_TO_PASS when recursively make install-only. gdbserver/ * Makefile.in: Add FLAGS_TO_PASS variable. (install): Remove dependency of install-only and recursively invoke make for install-only.
2010-10-21*** empty log message ***gdbadmin1-1/+1
2010-10-202010-10-20 Michael Snyder <msnyder@vmware.com>Michael Snyder2-0/+8
* gdb.threads/fork-child-threads.exp: Don't run on remote target.