aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
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.
2010-10-20 * gdbint.texinfo (Misc Guidelines): Renamed from Coding.Doug Evans2-216/+247
All references updated. Correct sections marked as subsections. (Coding Standards): New chapter. Move the coding standard related subsections here. Add section on Python coding standards.
2010-10-20cvs add smartp.cc smartp.expSami Wagiaalla2-0/+240
Original changelog: Support overloading of 'operator->'. [...] 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com> * gdb.cp/smartp.exp: New test. * gdb.cp/smartp.cc : New test.
2010-10-202010-10-20 Hui Zhu <teawater@gmail.com>Hui Zhu2-2/+42
* tracepoint.c (tfile_get_traceframe_address): Call extract_signed_integer. (tfile_trace_find): Call extract_signed_integer and extract_unsigned_integer. Change data_size to unsigned int. (tfile_fetch_registers): Call extract_unsigned_integer. (tfile_xfer_partial): Ditto. (tfile_get_trace_state_variable_value): Call extract_signed_integer and extract_unsigned_integer.
2010-10-20 * remote.c (remote_get_threadlist): If we got emptyVladimir Prus2-1/+7
response, bail out immediately, and don't emit any warnings.
2010-10-20*** empty log message ***gdbadmin1-1/+1
2010-10-19 * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encodingUlrich Weigand2-0/+18
for "mov pc, REG" as well. (thumb_instruction_changes_pc): Likewise.
2010-10-19 * gdb.base/watch_thread_num.exp: Revert 2008-09-03 change.Ulrich Weigand2-7/+13
Skip test completely if gdb,no_hardware_watchpoints.
2010-10-19 * gdb.base/foll-fork.exp: Make regexps to match catchpoint hits moreUlrich Weigand2-5/+11
strict, but do not check for any particular function name within libc.
2010-10-19Support overloading of 'operator->'.Sami Wagiaalla5-4/+74
2010-10-19 Sami Wagiaalla <swagiaal@redhat.com> PR C++/11500: * valarith.c (value_x_unop): Handle STRUCTOP_PTR. * eval.c (evaluate_subexp_standard): Check for overload of 'operator->'. * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR. (value_x_unop): Ditto. * valops.c: Include "exceptions.h". (find_overload_match): Throw NOT_FOUND_ERROR. (value_struct_elt): Ditto. 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com> * gdb.cp/smartp.exp: New test. * gdb.cp/smartp.cc : New test.
2010-10-19 * python/py-cmd.c (cmdpy_function): Unreference exception state.Tom Tromey2-1/+10