aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
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
2010-10-19Support pointer to bool conversion.Sami Wagiaalla7-9/+26
2010-10-19 Sami Wagiaalla <swagiaal@redhat.com> * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS. * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS for conversion. Make all other conversions illegal. 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com> * gdb.cp/converts.exp: Test pointer to bool conversion. Test pointer to long conversion. * gdb.cp/oranking.exp: Removed relevant kfail.
2010-10-19 * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): VerifyDoug Evans2-0/+12
assumptions of when this case happens. Print "<unnamed typedef>".
2010-10-19*** empty log message ***gdbadmin1-1/+1
2010-10-18gdbTom Tromey6-4/+31
* valprint.c (val_print_string): Pass 'encoding' to LA_PRINT_STRING. gdb/testsuite * gdb.python/py-prettyprint.exp (run_lang_tests): Test encoding argument to lazy_string. * gdb.python/py-prettyprint.py (pp_ls_encoding): New global. (pp_ls.to_string): Use it. * gdb.python/py-prettyprint.c (main): Move declarations to top. Add "estring2" local.
2010-10-18*** empty log message ***gdbadmin1-1/+1
2010-10-17gdb/testsuite/Jan Kratochvil3-3/+15
Fix s390x compatibility. * gdb.dwarf2/pr11465.S (DW_TAG_pointer_type): Use PTRBITS. Twice. * gdb.dwarf2/pr11465.exp: Set ptrbits, use it for -DPTRBITS.
2010-10-17gdb/Jan Kratochvil5-5/+31
Fix the `stopped language detection' testcase for gcc-4.5. * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN. * symfile.c (set_initial_language): Move variable filename to a more inner block. Prefer LANGUAGE_OF_MAIN. * symtab.c (language_of_main): New variable. (set_main_name): Always reset LANGUAGE_OF_MAIN. * symtab.h (language_of_main): New declaration.
2010-10-17gdb/Jan Kratochvil8-7/+175
* 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/ * gdb.threads/sigstep-threads.exp: New file. * gdb.threads/sigstep-threads.c: New file.
2010-10-17gdb/Jan Kratochvil11-15/+199
* infrun.c (follow_exec): Replace symbol_file_add_main by symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and breakpoint_re_set. * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for clear_symtab_users. * objfiles.c (free_all_objfiles): Likewise. * remote-m32r-sdi.c (m32r_load): Likewise. * solib-som.c (som_solib_create_inferior_hook): Likewise. * symfile.c (new_symfile_objfile): New comment for add_flags. Call clear_symtab_users with ADD_FLAGS. (reread_symbols): Use parameter 0 for clear_symtab_users. (clear_symtab_users): New parameter add_flags. Do not call breakpoint_re_set if SYMFILE_DEFER_BP_RESET. (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users. * symtab.h (clear_symtab_users): New parameter add_flags. gdb/testsuite/ * gdb.base/pie-execl.exp: New file. * gdb.base/pie-execl.c: New file.
2010-10-17gdb/Jan Kratochvil2-1/+7
Fix GCC false warning. * varobj.c (value_get_print_value) <str_addr>: Initialize it.
2010-10-17*** empty log message ***gdbadmin1-1/+1
2010-10-16*** empty log message ***gdbadmin1-1/+1
2010-10-15 * p-typeprint.c (pascal_type_print_method_args): Fix problem inPierre Muller2-4/+10
display of type of method arguments.
2010-10-15 PR python/11948:Tom Tromey14-165/+135
* varobj.c (value_get_print_value): Use val_print_string to print lazy strings. * python/py-prettyprint.c (print_string_repr): Use val_print_string to print lazy strings. Fix cleanup logic. (print_children): Likewise. * python/python-internal.h (gdbpy_extract_lazy_string): Update. * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite. Change return type to 'void', add 'addr' argument. * value.h (val_print_string): Update. * valprint.c (val_print_string): Add 'encoding' argument. * printcmd.c (print_formatted): Update. * p-valprint.c (pascal_val_print): Update. * m2-valprint.c (print_unpacked_pointer): Update. (m2_print_array_contents): Likewise. * jv-valprint.c (java_value_print): Update. * f-valprint.c (f_val_print): Update. * c-valprint.c (c_val_print): Update. * auxv.c (fprint_target_auxv): Update.
2010-10-15gdb/Jan Kratochvil6-28/+159
PR exp/12117 * gdbtypes.c (check_typedef): Clean up function comment. Keep track of instance flags as we strip typedefs and create a new type to preserve them if necessary. * gdbtypes.h (type) <instance_flags>: Extend the comment. gdb/testsuite/ PR exp/12117 * gdb.cp/ptype-cv-cp.cc: New file. * gdb.cp/ptype-cv-cp.exp: New file.
2010-10-15 * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.Pierre Muller2-10/+14
2010-10-15*** empty log message ***gdbadmin1-1/+1
2010-10-14Fixed void* vs int* overload issue (PR C++/10343).Sami Wagiaalla9-28/+207
2010-10-14 Sami Wagiaalla <swagiaal@redhat.com> * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS. * gdbtypes.c (rank_one_type): Move type comparison code out of here to... (types_equal): ...here. And changed it as follows: Outside of typedefs type must be of the same TYPE_CODE. When compairing two pointers or references they are equal if their targets are equal. Correct pointer conversions. 2010-10-14 Sami Wagiaalla <swagiaal@redhat.com> * gdb.cp/converts.cc: New test program. * gdb.cp/converts.exp: New test. * gdb.cp/overload.exp: Added test for void* vs int*. * gdb.cp/overload.exp: Ditto. * gdb.cp/oranking.exp: Removed related kfail.