aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-06-21ld/Alan Modra4-7/+11
* ldlang.c (lang_insert_orphan): Don't make __start_<sec> symbol absolute, and remove unnecessary alignment. ld/testsuite/ * ld-gc/start.d: Update.
2012-06-21*** empty log message ***gdbadmin1-1/+1
2012-06-21daily updateAlan Modra1-1/+1
2012-06-20 * gdb.texinfo (GDB/MI Breakpoint Commands): Re-order optionsKeith Seitz2-5/+12
for -break-insert and document -p.
2012-06-20 * python/py-inferior.c: Update comments of infpy_read_memoryYao Qi4-7/+18
and infpy_write_memory. gdb/doc: * gdb.texinfo (Inferiors In Python): Replace "gdb.read_memory" and "gdb.write_memory" with "Inferior.read_memory" and "Inferior.write_memory".
2012-06-20*** empty log message ***gdbadmin1-1/+1
2012-06-20daily updateAlan Modra1-1/+1
2012-06-19include "config.h" instead of BFD's sysdep.h in d10v/interp.cJoel Brobecker2-1/+19
The change of include file introduces some new warnings about functions being used without a prototype. So a few more system includes have been added to compensate for that. sim/d10v/ChangeLog: * interp.c: #include "config.h" instead of "sysdep.h". Add conditional include of string.h or strings.h, as well as conditional include of stdlib.h.
2012-06-19 PR exp/9514:Tom Tromey6-20/+138
* parser-defs.h (insert_type, insert_type_address_space): Declare. (push_type_address_space): Remove. * parse.c (insert_into_type_stack): New function. (insert_type): Likewise. (insert_type_address_space): Rename from push_type_address_space. Insert tp_space_identifier. * c-exp.y (ptr_operator): New production. (abs_decl): Use ptr_operator. (space_identifier): Call insert_type_address_space. (ptype): Don't use const_or_volatile_or_space_identifier. (const_or_volatile_noopt): Call insert_type. (conversion_type_id, conversion_declarator): New productions. (operator): Use conversion_type_id. testsuite * gdb.base/whatis.exp: Add tests.
2012-06-19 * gdb.cp/m-static.cc (keepalive): New function.Tom Tromey2-0/+8
(gnu_obj_1::method): Use it.
2012-06-19 * symtab.h (minimal_symbol): New member created_by_gdb.Doug Evans8-26/+208
* elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym created by gdb. * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function. (search_symbols): Call it instead of lookup_symbol. Skip symbols created by gdb. Only scan minsyms if nfiles == 0. testsuite: * gdb.base/info-fun.exp: New file. * gdb.base/info-fun.c: New file. * gdb.base/info-fun-solib.c: New file.
2012-06-19 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.Doug Evans5-2/+55
Adjust address for DW_OP_GNU_addr_index. * dwarf2expr.h (dwarf_expr_context): Update comment. * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu, all callers updated. Handle TLS vars described with DW_OP_GNU_const_index. (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index and DW_OP_GNU_const_index. * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
2012-06-19merge from gccDJ Delorie2-0/+5
2012-06-19daily updateAlan Modra1-1/+1
2012-06-19*** empty log message ***gdbadmin1-1/+1
2012-06-18 * block.c (find_block_in_blockvector): Make explicit the fact that weDoug Evans2-3/+13
ignore GLOBAL_BLOCK.
2012-06-18 * c-exp.y (operator): Remove trailing space after "delete" andTom Tromey2-2/+7
"delete[]".
2012-06-18gdb/Jan Kratochvil5-42/+34
Switch i386 and derived targets to ON_STACK. * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove. (amd64_dicos_init_abi): Remove its installment. * dicos-tdep.c (dicos_init_abi): Remove the set_gdbarch_call_dummy_location call. Update the comment here. * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove. (i386_dicos_init_abi): Remove its installment. * i386-tdep.c (i386_push_dummy_code): New function. (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install i386_push_dummy_code.
2012-06-18gdb/Jan Kratochvil12-21/+367
Remove stale dummy frames. * breakpoint.c: Include dummy-frame.h. (longjmp_breakpoint_ops): New variable. (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also bp_longjmp_call_dummy. (bpstat_what, bptype_string, print_one_breakpoint_location) (init_bp_location): Support bp_longjmp_call_dummy. (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why. (set_longjmp_breakpoint_for_call_dummy) (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New functions. (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops. * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete FIXME comment and extend the other comment for bp_call_dummy. (set_longjmp_breakpoint_for_call_dummy) (check_longjmp_breakpoint_for_call_dummy): New declarations. * dummy-frame.c: Include gdbthread.h. (pop_dummy_frame_bpt): New function. (pop_dummy_frame): Call pop_dummy_frame_bpt. (dummy_frame_discard): New function. (cleanup_dummy_frames): Update the comment about longjmps. * dummy-frame.h (dummy_frame_discard): New declaration. * gdbthread.h (struct thread_info): Extend initiating_frame comment. * infcall.c (call_function_by_hand): New variable longjmp_b. Call set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT. * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and keep_going if IS_LONGJMP and there is no other reason to stop. gdb/testsuite/ Remove stale dummy frames. * gdb.base/call-signal-resume.exp (maintenance print dummy-frames) (maintenance info breakpoints): New tests. * gdb.base/stale-infcall.c: New file. * gdb.base/stale-infcall.exp: New file.
2012-06-182012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>Tom Tromey2-1/+6
* remote-sim.c (sim_command_completer): Initialize variable 'result'.
2012-06-18Trim last, empty, lineHans-Peter Nilsson1-1/+0
2012-06-18 * ld-cris/dso-pltdis1.d, ld-cris/dso-pltdis2.d, dsofng.sHans-Peter Nilsson5-0/+127
dsofn4g.s: New tests.
2012-06-18 * elf32-cris.c (cris_elf_plt_sym_val): Rewrite to work in presenceHans-Peter Nilsson2-4/+57
of merged .got and .got.plt entries.
2012-06-18fix last commitAlan Modra3-22/+86
2012-06-18 * configure.in: Check DECLS for free, getenv, malloc, realloc,Alan Modra4-21/+31
* configure: Regenerate. * config.in: Likewise.
2012-06-18 * elf32-arm.c (elf32_arm_final_link_relocate): Correct return value.Alan Modra2-1/+5
2012-06-18*** empty log message ***gdbadmin1-1/+1
2012-06-18daily updateAlan Modra1-1/+1
2012-06-17sim: cr16: include config.h rather than sysdep.h from bfdMike Frysinger2-1/+8
2012-06-17sim: moxie: fix build by including config.h firstMike Frysinger2-0/+6
2012-06-17gdb/Jan Kratochvil9-5/+764
* dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref. * dwarf2loc.c (call_site_parameter_matches): Support CALL_SITE_PARAMETER_PARAM_OFFSET. (needs_dwarf_reg_entry_value): Push stub value. * dwarf2read.c (read_call_site_scope): New variable origin. Support CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin. * gdbtypes.h (enum call_site_parameter_kind): New item CALL_SITE_PARAMETER_PARAM_OFFSET. (struct call_site.parameter.u): New field param_offset. gdb/testsuite/ * gdb.arch/amd64-entry-value-param.S: New file. * gdb.arch/amd64-entry-value-param.c: New file. * gdb.arch/amd64-entry-value-param.exp: New file.
2012-06-17gdb/Jan Kratochvil6-74/+145
Code cleanup: Generalize call_site.parameter key. * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove variable dwarf_reg. New variable kind_u. Update parameters to push_dwarf_reg_entry_value. (ctx_no_push_dwarf_reg_entry_value): Update parameters. * dwarf2expr.h (enum call_site_parameter_kind) (union call_site_parameter_u): Forward declarations. (struct dwarf_expr_context_funcs): Update parameters and their description for push_dwarf_reg_entry_value. (ctx_no_push_dwarf_reg_entry_value): Update parameters. * dwarf2loc.c (call_site_parameter_matches): New function. (dwarf_expr_reg_to_entry_parameter): Update parameters and their description. Use call_site_parameter_matches. (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry): Update parameters and their description. (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset. New variable kind_u. Adjust the caller for updated parameters. (needs_dwarf_reg_entry_value): Update parameters. * dwarf2read.c (read_call_site_scope): New variable loc. Use it instead of attr. Update for the changed fields of struct call_site_parameter. * gdbtypes.h: Include dwarf2expr.h. (enum call_site_parameter_kind): New. (struct call_site.parameter): New field kind. Wrap dwarf_reg and fb_offset into new union u.
2012-06-17 * interp.c: Include config.h first. Do not include sysdep.h.Hans-Peter Nilsson2-1/+5
2012-06-17 * ld-cris/tls-e-tpoffgotcomm1.d: New test.Hans-Peter Nilsson2-0/+45
2012-06-17 * ld-cris/tls-e-tpiecomm1.d, ld-cris/tls-e-tpiecomm1.s: New test.Hans-Peter Nilsson5-0/+117
* ld-cris/tls-dso-tpoffgotcomm1.d, ld-cris/tls-dso-tpoffgotcomm1.s: Ditto.
2012-06-17 * elf32-cris.c (cris_elf_relocate_section): <R_CRIS_32_IE>Hans-Peter Nilsson2-1/+8
<R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>: Handle references to thread common symbols.
2012-06-17*** empty log message ***gdbadmin1-1/+1
2012-06-17daily updateAlan Modra1-1/+1
2012-06-16Add and use amd64_x32_analyze_stack_alignH.J. Lu2-1/+192
* amd64-tdep.c (amd64_x32_analyze_stack_align): New function. (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align for x32.
2012-06-16Support x32 siginfoH.J. Lu2-1/+209
* amd64-linux-nat.c (compat_x32_clock_t): New. (compat_x32_siginfo_t): Likewise. (compat_x32_siginfo_from_siginfo): Likewise. (siginfo_from_compat_x32_siginfo): Likewise. (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo and siginfo_from_compat_x32_siginfo for x32.
2012-06-162012-06-15 Hui Zhu <hui_zhu@mentor.com>Hui Zhu2-0/+6
* tracepoint.c (tfile_xfer_partial): Add a lseek.
2012-06-16Check bits_per_word instead of gdbarch_ptr_bitH.J. Lu4-8/+22
* amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word instead of gdbarch_ptr_bit. * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise. (amd64_supply_native_gregset): Likewise. (amd64_collect_native_gregset): Likewise. * amd64-tdep.c (amd64_supply_fxsave): Likewise. (amd64_supply_xsave): Likewise. (amd64_collect_fxsave): Likewise. (amd64_collect_xsave): Likewise.
2012-06-16Check DS segment register for x32 processH.J. Lu2-2/+37
* amd64-linux-nat.c (AMD64_LINUX_X32_DS): New. (amd64_linux_read_description): Check DS segment register for x32 process.
2012-06-16*** empty log message ***gdbadmin1-1/+1
2012-06-16daily updateAlan Modra1-1/+1
2012-06-15sim/erc32/sys.h: Include "config.h".Joel Brobecker2-0/+5
This file includes "gdb/callback.h", which includes "bfd.h", which itself verifies that "config.h" was included earlier. sim/erc32/ChangeLog: * sys.h: Include "config.h".
2012-06-15Define PACKAGE macro in all sims' config.h.Joel Brobecker82-10/+543
Some of the common includes in include/gdb such as callback.h include bfd.h. But there was a recent change in bfd-in.h to require that config.h be included before bfd.h can be included: /* PR 14072: Ensure that config.h is included first. */ #if !defined PACKAGE && !defined PACKAGE_VERSION #error config.h must be included before this header #endif PACKAGE_VERSION is always defined by default by the AC_INIT autoconf macro, but PACKAGE isn't. This patch updates the SIM_AC_COMMON macro to define it, and then regenerates all configure scripts and config.in files. sim/common/changeLog: * acinclude.m4 (SIM_AC_COMMON): Define PACKAGE. * config.in, configure: Regenerate. sim/ChangeLog: * configure: Regenerate. sim/arm/ChangeLog: * config.in, configure: Regenerate. sim/avr/ChangeLog: * config.in, configure: Regenerate. sim/bfin/ChangeLog: * config.in, configure: Regenerate. sim/cr16/ChangeLog: * config.in, configure: Regenerate. sim/cris/ChangeLog: * config.in, configure: Regenerate. sim/d10v/ChangeLog: * config.in, configure: Regenerate. sim/erc32/ChangeLog: * config.in, configure: Regenerate. sim/frv/ChangeLog: * config.in, configure: Regenerate. sim/h8300/ChangeLog: * config.in, configure: Regenerate. sim/iq2000/ChangeLog: * config.in, configure: Regenerate. sim/lm32/ChangeLog: * config.in, configure: Regenerate. sim/m32c/ChangeLog: * config.in, configure: Regenerate. sim/m32r/ChangeLog: * config.in, configure: Regenerate. sim/m68hc11/ChangeLog: * config.in, configure: Regenerate. sim/mcore/ChangeLog: * config.in, configure: Regenerate. sim/microblaze/ChangeLog: * config.in, configure: Regenerate. sim/mips/ChangeLog: * config.in, configure: Regenerate. sim/mn10300/ChangeLog: * config.in, configure: Regenerate. sim/moxie/ChangeLog: * config.in, configure: Regenerate. sim/ppc/ChangeLog: * configure: Regenerate. sim/rl78/ChangeLog: * config.in, configure: Regenerate. sim/rx/ChangeLog: * config.in, configure: Regenerate. sim/sh/ChangeLog: * config.in, configure: Regenerate. sim/sh64/ChangeLog: * config.in, configure: Regenerate. sim/v850/ChangeLog: * config.in, configure: Regenerate. sim/testsuite/ChangeLog: * configure: Regenerate.
2012-06-15 * dwarf2read.c (dw2_find_symbol_file): Unconditionally useTom Tromey4-6/+12
init_cutu_and_read_dies. testsuite * gdb.cp/namespace.exp: Add "show lang" test.
2012-06-15ld/Alan Modra121-565/+747
* ldlang.h (lang_output_section_statement_type): Add after_end field. (lang_abs_symbol_at_beginning_of, lang_abs_symbol_at_end_of): Delete. (section_for_dot): Declare. * ldlang.c (lang_size_sections_1): Correct comment. (current_section): Move earlier. (current_assign, prefer_next_section): New static vars. (lang_do_assignments_1): Add found_end param. Detect _end assignment to set found_end. Set os->after_end. Set above statics. (lang_do_assignments): Adjust lang_do_assignments_1 call. Init vars. (section_for_dot): New function. (lang_set_startof): Don't make an absolute symbol. (lang_abs_symbol_at_beginning_of, lang_abs_symbol_at_end_of): Delete. * ldexp.c (new_rel_from_abs): Use section_for_dot. * emultempl/lnk960.em (symbol_at_beginning_of): New function. (symbol_at_end_of): Likewise. (lnk960_after_allocation): Use them. * scripttempl/elf.sc: Precede OTHER_GOT_SYMBOLS with . = .; and likewise before __bss_start. ld/testsuite/ Update far too many tests.
2012-06-15gdb/testsuite:Iain Sandoe2-12/+9
* gdb.base/list.exp (test_listsize): Remove $use_gdb_stub special case. (top level): Use gdb_file_cmd instead of gdb_load.