aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2012-04-27*** empty log message ***gdbadmin1-1/+1
2012-04-26gdb/Jan Kratochvil2-5/+42
Fix DW_AT_lower_bound defaults for DWARF-4+. * dwarf2read.c (read_subrange_type): Remove initialization of low and high. New variable low_default_is_valid. Implement DWARF-4+ DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with no default by the DWARF standard.
2012-04-26 gdb/Maciej W. Rozycki13-121/+1315
* infrun.c (handle_inferior_event): Move the check for return trampolines ahead of the check for function trampolines. * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros. * mips-tdep.c (mips_str_mips16_call_stub): New variable. (mips_str_mips16_ret_stub): Likewise. (mips_str_call_fp_stub): Likewise. (mips_str_call_stub): Likewise. (mips_str_fn_stub): Likewise. (mips_str_pic): Likewise. (mips_in_frame_stub): New function. (mips_unwind_pc): Return the return address rather than the PC if the PC of an intermediate frame is inside a call thunk. (mips_is_stub_suffix): New function. (mips_is_stub_mode): Likewise. (mips_get_mips16_fn_stub_pc): Likewise. (mips_skip_mips16_trampoline_code): Update to handle all the currently generated stub types. Don't recurse into __fn_stub thunks. Remove heuristics to handle stubs beyond etext/_etext. Use cooked register accesses. (mips_in_return_stub): Reintroduce function. (mips_skip_trampoline_code): Traverse trampolines recursively. (mips_gdbarch_init): Handle MIPS16 return trampolines. gdb/testsuite/ * gdb.arch/mips16-thunks-inmain.c: New file. * gdb.arch/mips16-thunks-main.c: New file. * gdb.arch/mips16-thunks-sin.c: New file. * gdb.arch/mips16-thunks-sinfrob.c: New file. * gdb.arch/mips16-thunks-sinfrob16.c: New file. * gdb.arch/mips16-thunks-sinmain.c: New file. * gdb.arch/mips16-thunks-sinmips16.c: New file. * gdb.arch/mips16-thunks.exp: New file.
2012-04-26Mention GDB 7.4.1 release in CL.gdbadmin1-0/+4
2012-04-26 * arm-tdep.h (VFP_REGISTER_SIZE): Define.Jonathan Larmour6-1/+92
* features/arm-with-m-vfp-d16.xml: New file. Describes Cortex-M with VFPv4-sp-d16 FPU register layout. * features/Makefile (WHICH): Add arm-with-m-vfp-d16. * features/arm-with-m-vfp-d16.c: New. Generated from above. * arm-tdep.c: Include arm-with-m-vfp-d16.c. (arm-register_g_packet_guesses): Add vfp-d16 guess. (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
2012-04-26*** empty log message ***gdbadmin1-1/+1
2012-04-25 * cli/cli-decode.c (print_doc_line): Use stream instead ofDoug Evans2-1/+6
current_uiout.
2012-04-25back out previous changeDoug Evans2-6/+1
2012-04-25 * cli/cli-decode.c (print_doc_line): Use stream instead ofDoug Evans2-1/+6
current_uiout.
2012-04-252012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>Sergio Durigan Junior27-26/+66
* features/arm-with-iwmmxt.c: Regenerate. * features/arm-with-m-fpa-layout.c: Likewise. * features/arm-with-m.c: Likewise. * features/arm-with-neon.c: Likewise. * features/arm-with-vfpv2.c: Likewise. * features/arm-with-vfpv3.c: Likewise. * features/mips-dsp-linux.c: Likewise. * features/mips-linux.c: Likewise. * features/mips64-dsp-linux.c: Likewise. * features/mips64-linux.c: Likewise. * features/s390-linux32.c: Likewise. * features/s390-linux32v1.c: Likewise. * features/s390-linux32v2.c: Likewise. * features/s390-linux64.c: Likewise. * features/s390-linux64v1.c: Likewise. * features/s390-linux64v2.c: Likewise. * features/s390x-linux64.c: Likewise. * features/s390x-linux64v1.c: Likewise. * features/s390x-linux64v2.c: Likewise. * features/tic6x-c62x-linux.c: Likewise. * features/tic6x-c62x.c: Likewise. * features/tic6x-c64x-linux.c: Likewise. * features/tic6x-c64x.c: Likewise. * features/tic6x-c64xp-linux.c: Likewise. * features/tic6x-c64xp.c: Likewise. * target-descriptions.c: Only generate `field_type' and `type' variables when needed.
2012-04-25 * gdb.texinfo (Go): Fix thinko.Doug Evans2-1/+3
2012-04-25Fix location of entry added last.Joel Brobecker1-4/+4
2012-04-25Corrupted path caused by "cd" command.Joel Brobecker2-2/+6
gdb/ChangeLog: * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
2012-04-25 Initial pass at Go language support.Doug Evans42-21/+3840
* NEWS: Mention Go. * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c, go-valprint.c. (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o. (YYFILES): Add go-exp.c. (YYOBJ): Add go-exp.o. (local-maintainer-clean): Delete go-exp.c. * defs.h (enum language): Add language_go. * dwarf2read.c: #include "go-lang.h". (fixup_go_packaging): New function. (process_full_comp_unit): Call it when processing Go CUs. (dwarf2_physname): Add Go support. (read_file_scope): Handle missing language spec for GNU Go. (set_cu_language): Handle DW_LANG_Go. * go-exp.y: New file. * go-lang.h: New file. * go-lang.c: New file. * go-typeprint.c: New file. * go-valprint.c: New file. * symtab.c: #include "go-lang.h". (symbol_set_language): Handle language_go. (symbol_find_demangled_name, symbol_set_names): Ditto. (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto. testsuite/ * configure.ac: Create gdb.go/Makefile. * configure: Regenerate. * gdb.base/default.exp: Add "go" to "set language" testing. * gdb.go/Makefile.in: New file. * gdb.go/basic-types.exp: New file. * gdb.go/chan.exp: New file. * gdb.go/chan.go: New file. * gdb.go/handcall.exp: New file. * gdb.go/handcall.go: New file. * gdb.go/hello.exp: New file. * gdb.go/hello.go: New file. * gdb.go/integers.exp: New file. * gdb.go/integers.go: New file. * gdb.go/methods.exp: New file. * gdb.go/methods.go: New file. * gdb.go/package.exp: New file. * gdb.go/package1.go: New file. * gdb.go/package2.go: New file. * gdb.go/print.exp: New file. * gdb.go/strings.exp: New file. * gdb.go/strings.go: New file. * gdb.go/types.exp: New file. * gdb.go/types.go: New file. * gdb.go/unsafe.exp: New file. * gdb.go/unsafe.go: New file. * lib/future.exp: Add Go support. (gdb_find_go, gdb_find_go_linker): New procs. (gdb_default_target_compile): Add Go support. * lib/gdb.exp (skip_go_tests): New proc. * lib/go.exp: New file. doc/ * gdb.texinfo (Supported Languages): Add Go. (Go): New node.
2012-04-25 * gdb.threads/linux-dp.exp: Unset 'seen' before 'array set'.Tom Tromey2-1/+5
2012-04-25gdb/docYao Qi2-0/+55
* gdbint.texinfo (Testsuite): New section `Board settings'.
2012-04-25avoid a few strncpy-induced buffer overrunsJim Meyering3-2/+12
* procfs.c (procfs_make_note_section): Be sure to NUL-terminate fname and psargs before trying to concatenate. * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate "name" before applying strchr.
2012-04-252012-04-25 Siva Chandra Reddy <sivachandra@google.com>Siva Chandra Reddy2-3/+8
* CONTRIBUTE: Use unified diff instead of context diff when generating patches.
2012-04-25*** empty log message ***gdbadmin1-1/+1
2012-04-24 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 supportMaciej W. Rozycki2-10/+15
code. Handle JR.HB correctly.
2012-04-24 * mips-tdep.cMaciej W. Rozycki2-21/+27
(is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group with the other MIPS16 helpers.
2012-04-242012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>Sergio Durigan Junior2-1/+15
* observer.sh: Conditionally declare `args', thus cleaning up unused instances of this variable.
2012-04-24 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.Thiago Jung Bauermann4-16/+40
(PTRACE_ARG4_TYPE): Likewise. (PTRACE_XFER_TYPE): Likewise. * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of ptrace to PTRACE_ARG3_TYPE. * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h. (PTRACE_ARG4_TYPE): Likewise. (PTRACE_XFER_TYPE): Likewise. (linux_detach_one_lwp): Cast fourth argument of ptrace to long then PTRACE_ARG4_TYPE. (regsets_fetch_inferior_registers): Cast third argument of ptrace to long then PTRACE_ARG3_TYPE. (regsets_store_inferior_registers): Likewise.
2012-04-24gdb:Yao Qi5-4/+73
Revert this patch to allow breakpoint always-inserted in record target. 2011-12-05 Pedro Alves <pedro@codesourcery.com> * breakpoint.c: Include record.h. (breakpoints_always_inserted_mode): Return false when the record target is in use. * breakpoint.c (iterate_over_bp_locations): New. * breakpoint.h: Declare. New typedef walk_bp_location_callback. * record.c (record_open): Call record_init_record_breakpoints. (record_sync_record_breakpoints): New. (record_init_record_breakpoints): New. * NEWS: Mention supporting breakpoint always-inserted mode in record target.
2012-04-242012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>Marc Khouzam2-1/+6
* mi/mi-main.c (mi_cmd_execute): Choose a live thread not just any thread.
2012-04-24gdb/Yao Qi3-3/+10
* breakpoint.c (ep_is_catchpoint): Renamed to ... (is_catchpoint): ... it. (print_one_breakpoint_location): Caller update. * breakpoint.h: Update declaration.
2012-04-24gdb: Enable gdbserver by default on sparc-*-linux*David S. Miller2-0/+5
This appears to be an oversight, since this is done already for sparc64-*-linux*, and essentially every other linux target. gdb/ * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
2012-04-24*** empty log message ***gdbadmin1-1/+1
2012-04-23 * buildsym.c (add_free_pendings): Remove.Tom Tromey3-16/+5
* buildsym.h (add_free_pendings): Remove.
2012-04-23gdb/doc/Jan Kratochvil2-3/+6
* gdb.texinfo (Auto-loading safe path): Add trailing @dots{}. Three times.
2012-04-23gdb/doc/Jan Kratochvil2-3/+8
* gdb.texinfo (Auto-loading safe path): Remove trailing [@dots{}]. Three times.
2012-04-23 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr inDoug Evans2-17/+35
attr.u.unsnd instead of attr.u.addr. (read_attribute_value) Ditto for cases DW_FORM_ref_addr, DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8, DW_FORM_ref_udata. (dump_die_shallow): Update cases DW_FORM_ref_addr, DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8, DW_FORM_ref_udata. (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
2012-04-23 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.Maciej W. Rozycki2-19/+25
(mips_o32_return_value): Likewise. (mips_o64_return_value): Likewise.
2012-04-23*** empty log message ***gdbadmin1-1/+1
2012-04-22gdb/doc/Jan Kratochvil2-6/+11
* gdb.texinfo (Auto-loading safe path): Replace @itemize @bullet by @table @asis. Fix formatting of one item.
2012-04-22*** empty log message ***gdbadmin1-1/+1
2012-04-21Add proper handling for internal functions and STT_GNU_IFUNC symbols in Ada ↵Paul N. Hilfinger2-1/+24
mode. The code for handling calls to internal functions (esp., Python functions) and for handling STT_GNU_IFUNC had not been added to the Ada expression evaluator. This change adapts them from eval.c. gdb/Changelog: * ada-lang.c (ada_evaluate_subexp): Add cases for TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following their treatment in eval.c.
2012-04-21Handle sparc compare-and-branchDavid S. Miller2-6/+31
SPARC-T4 adds a "compare and branch" instruction which fuses a compare and a branch instruction into one. The branch is non-delayed, there are no anulling facilities, and the displacement is 10-bits. This also corrects the existing bit test for Branch on Integer Register. The distinguising characteristic between Branch on Integer Register and Compare-and-Branch is bit 28. The existing code was checking bit 24 for zero, but that's pointless because bit 24 is already covered by the "X_OP2 (insn) == 3" test. gdb/ * sparc-tdep.c (X_DISP10): Define. (sparc_analyze_control_transfer): Handle compare-and-branch.
2012-04-21*** empty log message ***gdbadmin1-1/+1
2012-04-20 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.Jonathan Larmour3-1/+7
* arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
2012-04-20 * mips-tdep.c (mips_float_register_p): New function.Maciej W. Rozycki2-14/+28
(mips_convert_register_float_case_p): Use mips_float_register_p. (mips_register_type): Likewise. (mips_print_register): Likewise. (print_gp_register_row): Likewise. (mips_print_registers_info): Likewise.
2012-04-20 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identificationMaciej W. Rozycki2-1/+7
of mips16 symbols.
2012-04-202012-04-20 Andrew Pinski <apinski@cavium.com>Andrew Pinski2-0/+5
* MAINTAINERS (Write After Approval): Add myself to the list.
2012-04-202012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>Sergio Durigan Junior2-1/+5
* MAINTAINERS: Update my e-mail address.
2012-04-202012-04-20 Pedro Alves <palves@redhat.com>Pedro Alves5-3/+28
gdb/ * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute $srcdir. * configure: Regenerate. gdb/gdbserver/ * configure: Regenerate.
2012-04-202012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>Sergio Durigan Junior3-2/+9
* cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC declaration. * gdb_vecs.h: Declare `const_char_ptr' VEC.
2012-04-20whitespace/tabifyPedro Alves1-38/+39
2012-04-20gdb/Jan Kratochvil2-1/+8
Fix compilation compatibility with python-2.4 * python/py-type.c (convert_field): Cast ADDRSTRING for PyObject_SetAttrString as non-const. New comment.
2012-04-20*** empty log message ***gdbadmin1-1/+1
2012-04-19 * top.c (quit_target): Use all_cleanups.Tom Tromey4-4/+10
* main.c (captured_command_loop): Use all_cleanups. * exceptions.c (throw_exception): Use all_cleanups.