aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
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.
2010-10-14 * p-lang.c (is_pascal_string_type): Avoid crashes on structuresPierre Muller2-1/+10
having fields without names.
2010-10-14*** empty log message ***gdbadmin1-1/+1
2010-10-13 New python module gdb.types.Doug Evans11-2/+392
* NEWS: Document it. * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py. * python/lib/gdb/types.py: New file. testsuite/ * lib/gdb-python.exp (gdb_check_python_config): New function. * gdb.python/Makefile.in (EXECUTABLES): Add lib-types. * gdb.python/lib-types.cc: New file. * gdb.python/lib-types.exp: New file. doc/ * gdb.texinfo (Python): Add "Python modules". (Types in Python): Add reference to gdb.types section. (Python modules): New node.
2010-10-13 * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.Tom Tromey2-1/+5
2010-10-13 * c-typeprint.c: Whitespace cleanup.Doug Evans2-15/+13
(cp_type_print_method_args): Remove unnecessary forward decl. (cp_type_print_derivation_info): Ditto. (c_type_print_varspec_prefix): Mark as static at definition. (c_type_print_modifier): Fix arg descriptions.
2010-10-13gdb/Jan Kratochvil14-34/+241
* python/py-breakpoint.c (bppy_set_condition): New comment. * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for failed PyUnicode_Decode. (cmdpy_completer): Skip element for failed python_string_to_host_string. (cmdpy_init): Return -1 on failed python_string_to_host_string. * python/py-frame.c (frapy_read_var): Extend the function comment. * python/py-function.c (fnpy_init): Return -1 on failed python_string_to_host_string. * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend the function comment. (infpy_search_memory): Extend the function comment. Remove the PyErr_SetString call on already set error state. * python/py-param.c (set_parameter_value): Extend the function comment. Return -1 on failed python_string_to_host_string, twice. (set_attr): Extend the function comment. (compute_enum_values): Extend the function comment. New variable back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on failed python_string_to_host_string. (get_doc_string): Call gdbpy_print_stack on failed python_string_to_host_string. (parmpy_init): Extend the function comment. * python/py-prettyprint.c (pretty_print_one_value): Likewise. (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on failed python_string_to_host_string. * python/py-value.c (valpy_new, valpy_getitem, valpy_call) (valpy_binop, valpy_richcompare): Extend the function comment. * python/python.c (struct python_env) <error_type, error_value, error_traceback>: New fields. (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore. (ensure_python_env): Call PyErr_Fetch. * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on failed convert_value_from_python. (value_get_print_value): Call gdbpy_print_stack on failed python_string_to_target_python_string. gdb/testsuite/ * gdb.python/py-error.exp: New file. * gdb.python/py-error.py: New file.
2010-10-13*** empty log message ***gdbadmin1-1/+1
2010-10-12 * python/py-prettyprint.c (search_pp_list): Fix error checking.Tom Tromey2-3/+18
2010-10-12Eliminate 'is_ancestor' redundant code.Sami Wagiaalla2-25/+29
2010-10-12 Sami Wagiaalla <swagiaal@redhat.com> * gdbtypes.c (do_is_ancestor): New function. (is_ancestor): Use do_is_ancestor. (is_public_ancestor): Use do_is_ancestor.
2010-10-12gdb/testsuite/Jan Kratochvil2-9/+12
* gdb.base/break-interp.exp (test_ld): Replace gdb_expect by gdb_test_multiple.
2010-10-12gdb/testsuite/Jan Kratochvil6-8/+17
* gdb.base/break-interp.exp: Use ldlags for linking flags. * gdb.base/prelink.exp: Likewise. * gdb.base/solib-nodir.exp: Likewise. * lib/gdb.exp (gdb_compile) <*-*-openbsd*> (gdb_compile) <shlib_load>: Use ldlags for linking flags. * lib/prelink-support.exp (build_executable_own_libs): Likewise.
2010-10-12 * break-interp.exp (test_ld): Use two separate gdb_expect statementsUlrich Weigand2-3/+17
for the "info files" test to avoid timeouts on slow machines.
2010-10-12 * ser-go32.c (struct dos_ops): Add missing fdopen field.Pierre Muller2-0/+5
2010-10-12 * gdb/arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.Matthew Gretton-Dann2-1/+6
2010-10-12*** empty log message ***gdbadmin1-1/+1
2010-10-11gdb/testsuite/Jan Kratochvil2-0/+11
* gdb.cp/infcall-dlopen.cc (openlib): Support NULL FILENAME. (main): Make openlib dummy call.
2010-10-11 * c-typeprint.c (c_type_print_modifier): Add note that this printsDoug Evans2-1/+7
the address space id too.
2010-10-11 * gdb.texinfo (Values From Inferior): Add reference to "Types inDoug Evans2-1/+6
Python" from gdb.Value.type description.
2010-10-11gdb/Jan Kratochvil2-0/+64
Fix attaching to re-prelinked executables on ppc64. * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect, initialize it, try to adjust FILESZ field by it.
2010-10-11gdb/testsuite/Jan Kratochvil2-34/+91
Fix missing _start PIE relocation on ppc64 due to stop on dl_main. * break-interp.exp (reach): Move the core body ... (reach_1): ... here. Use stop-on-solib-events for _dl_debug_state. (test_ld): Provide always real argument, even to the linker. Replace dl_main by _dl_debug_state.
2010-10-11gdb/testsuite/Jan Kratochvil2-7/+23
Fix results of prelinked PIEs on ppc*. * gdb.base/break-interp.exp (reach, test_core, test_attach_gdb): Accept also DISPLACEMENT "PRESENT". (main): Replace "ZERO" displacements by "PRESENT".
2010-10-11*** empty log message ***gdbadmin1-1/+1
2010-10-10*** empty log message ***gdbadmin1-1/+1
2010-10-09*** empty log message ***gdbadmin1-1/+1