aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2008-05-06 * options.h (DEFINE_var): Add set_user_set_##varname__.Ian Lance Taylor3-10/+66
(DEFINE_bool_alias): New macro. (class General_options): Define -Bstatic using DEFINE_bool_alias rather than DEFINE_special. Add --undefined as an alias for -z defs. * options.cc (General_options::parse_Bstatic): Remove.
2008-05-06 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addressesJoel Brobecker2-0/+11
pointing inside a non-executable section as function descriptors.
2008-05-06 * inf-loop.c (inferior_event_handler): Run all continuations andPedro Alves2-14/+24
print any language change before running the breakpoint commands.
2008-05-06 * frame-unwind.c (frame_unwind_got_bytes): New function.Joel Brobecker6-496/+420
* frame-unwind.h (frame_unwind_got_bytes): Add declaration. * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update for unwinder changes.
2008-05-06 * options.h (class General_options): Add --fatal-warnings.Ian Lance Taylor4-0/+18
* main.cc (main): Implement --fatal-warnings. * errors.h (Errors::warning_count): New function.
2008-05-06 * options.h (class General_options): Add -Bsymbolic-functions.Ian Lance Taylor3-6/+39
* symtab.h (Symbol::is_preemptible): Check for -Bsymbolic-functions.
2008-05-06Correct last patch.Ian Lance Taylor1-2/+2
2008-05-062008-05-05 Ian Lance Taylor <iant@google.com>Ian Lance Taylor7-23/+159
* options.h (DEFINE_bool): For DASH_Z, create the negative option as noVARNAME rather than no-VARNAME. (class General_options): Add option -z combreloc. * output.h (class Output_reloc) [SHT_REL]: Declare compare and get_address. (Output_reloc::sort_before) [SHT_REL]: New function. (Output_reloc::sort_before) [SHT_RELA]: New function. (class Output_data_reloc_base): Add sort_relocs_ field. Define Sort_relocs_comparison. (Output_data_reloc_base::Output_data_reloc_base): Add sort_relocs parameter. Change all callers. (Output_data_reloc::Output_data_reloc) [both versions]: Add sort_relocs parameter. Change all callers. * output.cc (Output_reloc::get_address): New function, broken out of write_rel. (Output_reloc::write_rel): Call it. (Output_reloc::compare): New function. (Output_data_reloc_base::do_write): Optionally sort relocs.
2008-05-06daily updateAlan Modra1-1/+1
2008-05-06*** empty log message ***gdbadmin1-1/+1
2008-05-05 * gdb.base/help.exp (disassemble): Update expected help text.Doug Evans2-1/+5
2008-05-05 * NEWS: Mention new /m modifier for disassemble command.Doug Evans5-53/+150
* cli/cli-cmds.c (print_disassembly): New function. (disassemble_current_function): New function (disassemble_command): Recognize /m modifier, print mixed source+assembly. (init_cli_cmds): Update disassemble help text. * gdb.texinfo (disassemble): Document /m modifier.
2008-05-052008-05-05 Maxim Grigoriev <maxim2405@gmail.com>Maxim Grigoriev2-181/+70
* xtensa-tdep.c: Update for unwinder changes.
2008-05-05Update m68k port for unwinder changes.Andreas Schwab4-115/+96
* m68k-tdep.c (m68k_frame_cache): Expect this_frame. (m68k_frame_this_id, m68k_frame_prev_register): Update signature. (m68k_frame_unwind): Use default_frame_sniffer. (m68k_frame_sniffer): Remove. (m68k_frame_base_address): Expect this_frame. (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect this_frame. (m68k_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders, and frame_unwind_append_unwinder. * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info parameter instead of pc value. (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache): Expect this_frame. (m68k_linux_sigtramp_frame_this_id) (m68k_linux_sigtramp_frame_prev_register) (m68k_linux_sigtramp_frame_sniffer): Update signature. (m68k_linux_sigtramp_frame_unwind): Use m68k_linux_sigtramp_frame_sniffer. (m68k_linux_init_abi): Use frame_unwind_append_unwinder. * m68klinux-nat.c (store_register): Fix typo.
2008-05-05 * configure.ac: If targ_extra_obj is set, link it in.Ian Lance Taylor4-0/+20
* configure.tgt: Initialize all variables. (x86_64*): Set targ_extra_obj and targ_extra_size. * configure: Rebuild.
2008-05-05 * object.cc (Sized_relobj::include_section_group): Adjust sectionIan Lance Taylor7-25/+73
indexes read from group data. Build vector to pass to layout_group. * layout.cc (Layout::layout_group): Add flags and shndxes parameters. Remove contents parameter. Change caller. Update explicit instantiations. * layout.h (class Layout): Update layout_group declaration. * output.cc (Output_data_group::Output_data_group): Add flags and input_shndxes parameters. Remove contents parameter. Change caller. (Output_data_group::do_write): Change input_sections_ to input_shndxes_. * output.h (class Output_data_group): Update constructor declaration. Rename input_sections_ to input_shndxes_. * testsuite/many_sections_test.cc: Add template.
2008-05-05 * infcmd.c (step_1): Put thread id on the stack to avoid possiblePedro Alves2-10/+9
NULL dereferencing.
2008-05-05 * symfile.c (reread_symbols): Update objfile's entry point.Luis Machado2-0/+5
2008-05-05Minor typing error fixes in ChangeLog.Aleksandar Ristovski1-5/+5
2008-05-05 * ada-lang.c: Update throughout to use symbol_matches_domainAleksandar Ristovski5-31/+62
instead of matching the symbol domain explictly. * dwarf2read.c (add_partial_symbol): Do not add new psym for STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada class as typedefs. See lookup_partial_symbol function. (new_symbol): Similar to add_partial_symbol, do not create symbol for the typedef. See lookup_block_symbol. * symtab.c (symbol_matches_domain): New function, takes care of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java. (lookup_partial_symbol): Use symbol_matches_domain to see if the found psym domain matches the given domain. (lookup_block_symbol): Likewise.
2008-05-05Added 3 miscellaneous testcases like read32.ms uread16.ms hw-trap.ms.M R Swami Reddy3-0/+44
2008-05-05These files removed.M R Swami Reddy3-131/+0
2008-05-05Add the change for testcases comment update and new testcases addition.M R Swami Reddy1-0/+14
2008-05-05Update testcase comment.M R Swami Reddy53-60/+315
addb.cgs addd.cgs addi.cgs andb.cgs andd.cgs andw.cgs ashub.cgs ashub_i.cgs ashud.cgs ashud_i.cgs ashuw.cgs ashuw_i.cgs cmpi.cgs cmpw.cgs jlt.cgs jump.cgs loadd.cgs loadw.cgs lshb.cgs lshb_i.cgs lshd.cgs lshd_i.cgs lshw.cgs lshw_i.cgs movb.cgs movd.cgs movw.cgs movxb.cgs movxw.cgs movzb.cgs movzw.cgs mulb.cgs muluw.cgs mulw.cgs orb.cgs ord.cgs orw.cgs pop1.cgs pop2.cgs pop3.cgs popret1.cgs popret2.cgs popret3.cgs push1.cgs push2.cgs push3.cgs Added BIT operation testcases: cbitb.cgs cbitw.cgs sbitb.cgs sbitw.cgs tbitb.cgs tbit.cgs and tbitw.cgs
2008-05-05 * top.c (command_line_handler_continuation): Remove.Vladimir Prus4-55/+14
(execute_command): Do not install the above.
2008-05-05Comment changeM R Swami Reddy1-2/+2
2008-05-05Updated the sim engine's ecode logic and commit the code changesM R Swami Reddy1-0/+6
2008-05-05Update for code standardsM R Swami Reddy1-70/+62
2008-05-05Cleaned up unwanted code and fixed BIT operations simulation.M R Swami Reddy1-66/+14
2008-05-05Update simops struct members and PSR bits.M R Swami Reddy1-11/+12
2008-05-05Fix typo.M R Swami Reddy1-3/+3
2008-05-05 Update the machine code decode algorithm using hash table.M R Swami Reddy1-456/+584
2008-05-05 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,Vladimir Prus3-2/+14
and catch all exceptions from it. * top.c (command_line_handler_continuation): Don't call bpstat_do_action here.
2008-05-05 PR 6473Alan Modra3-0/+16
* ld-elf/lma.s, ld-elf/lma.lnk: New test. * ld-elf/binutils.exp: Run it.
2008-05-05*** empty log message ***gdbadmin1-1/+1
2008-05-05daily updateAlan Modra1-1/+1
2008-05-04 * dwarf2read.c (struct dwarf2_cu): Add type_hash.Daniel Jacobowitz2-288/+199
(struct die_info): Remove type. (read_type_die, read_typedef, read_base_type, read_subrange_type) (read_structure_type, read_enumeration_type, read_array_type) (read_tag_pointer_type, read_tag_ptr_to_member_type) (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type) (read_tag_string_type, read_subroutine_type, read_set_type) (read_unspecified_type): Delete prototypes. Remove check for already-loaded type. Return the new type. (set_die_type): Return the new type. (reset_die_and_siblings_types): Delete. (load_comp_unit, load_full_comp_unit): Set type_hash. (process_queue): Remove call to reset_die_and_siblings_types. (process_die): Do not read most types here. Use read_type_die for others. (read_func_scope, dwarf2_add_member_fn): Use read_type_die. (quirk_gcc_member_function_pointer): Return the new type. (process_structure_scope, process_enumeration_scope): Use get_die_type and read the DIE's type. (read_full_die): Do not initialize die->type. (tag_type_to_type): Use read_type_die. (read_type_die): Check for already defined types. Return the type. (determine_prefix): Use get_die_type. (set_die_type): Return the type. (get_die_type): Take a CU argument. Check for no type_hash.
2008-05-04 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): InitializeDaniel Jacobowitz2-3/+7
locals.
2008-05-04 * gdb.base/longjmp.c, gdb.base/longjmp.exp: New files.Pedro Alves3-0/+215
2008-05-04gdb/Pedro Alves9-118/+204
* breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp and bp_longjmp_resume breakpoints. (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as meaningful. (create_longjmp_breakpoint): Don't create bp_longjmp_resume breakpoints. Create bp_longjmp breakpoints as momentary breakpoints. (enable_longjmp_breakpoint): Delete. (set_longjmp_breakpoint): New. (disable_longjmp_breakpoint): Delete. (delete_longjmp_breakpoint): New. (set_longjmp_resume_breakpoint): Delete. (set_momentary_breakpoint_at_pc): New. (breakpoint_re_set_one): Don't delete bp_longjmp and bp_longjmp_resume breakpoints. (breakpoint_re_set): Don't create longjmp and longjmp-resume breakpoints. * infrun.c (step_resume_breakpoint): Add comment. (struct execution_control_state): Delete handling_longjmp member. (init_execution_control_state). Don't clear handling_longjmp. (context_switch): Don't context switch handling_longjmp. (handle_inferior_event): If handling a bp_longjmp breakpoint, create a bp_longjmp_resume breakpoint, and set it as current step_resume_breakpoint, then step over the longjmp breakpoint. If handling a bp_longjmp_resume breakpoint, don't delete the longjmp breakpoint, delete the longjmp-resume breakpoint, and stop stepping. (currently_stepping): Remove handling_longjmp from expression. (insert_step_resume_breakpoint_at_sal): Update comment. (insert_longjmp_resume_breakpoint): New. * breakpoint.h (set_momentary_breakpoint_at_pc): Declare. (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete declarations. (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare. (set_longjmp_resume_breakpoint): Delete declaration. * gdbthread.h (save_infrun_state): Remove handling_longjmp parameter. (load_infrun_state): Delete *handling_longjmp parameter. * thread.c (save_infrun_state): Remove handling_longjmp parameter. Update body. (load_infrun_state): Delete *handling_longjmp parameter. Update body. * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete. (delete_longjmp_breakpoint_cleanup): New. (step_1): Call set_longjmp_breakpoint instead of enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup instead of disable_longjmp_breakpoint_cleanup when making cleanup. (step_1_continuation): Pass thread id in the continuation args to step_once. (step_once): Add thread parameter. Pass thread id the the continuation. gdb/testsuite/ * gdb.cp/annota2.exp: Adjust to breakpoints invalidations at different times.
2008-05-04 gdb/Jan Kratochvil10-82/+316
* Makefile.in: Update dependencies. * dwarf2read.c: Include "addrmap.h" (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET. (dwarf2_ranges_read): New prototype. (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP. Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on HAS_RANGES_OFFSET, otherwise add there the contiguous range. (dwarf2_ranges_read): New parameter RANGES_PST, update the function comment for it. Add the found ranges to RANGES_PST. New variable BASEADDR, initialize it the common way. (dwarf2_get_pc_bounds): Update the caller for the new parameter. (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and HAS_RANGES_OFFSET for the later processing. * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP. * symtab.c: Include "addrmap.h" (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP. Move the psymtab locator into ... (find_pc_sect_psymtab_closer): ... a new function. gdb/testsuite/ * gdb.dwarf2/dw2-ranges.S: Merge the secondary section with `.fini'. * gdb.dwarf2/dw2-ranges.exp: Compile also `dw2-ranges2.S' and `dw2-ranges3.S' and test also their MAIN2, FUNC2 and MAIN3 symbols. * gdb.dwarf2/dw2-ranges2.S, gdb.dwarf2/dw2-ranges3.S: New files.
2008-05-04 Set CU BASE_ADDRESS already from partial DIEs.Jan Kratochvil2-0/+39
* dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS from these variables if it was still unset.
2008-05-04 * arch-utils.c (gdbarch_update_p): Use default values forUlrich Weigand2-20/+29
info.abfd and info.target_desc if they are NULL. (gdbarch_from_bfd): Remove assertion. (set_gdbarch_from_file): Call gdbarch_find_by_info directly, using the current target description. (gdbarch_info_fill): Do not use default values for info->abfd and info->target_desc.
2008-05-04 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.Jan Kratochvil2-0/+12
2008-05-04 * inferior.h (read_pc_pid, write_pc_pid): Remove.Ulrich Weigand9-83/+126
* regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes. * regcache.c (read_pc_pid): Remove, replace by ... (regcache_read_pc): ... this function. (write_pc_pid): Remove, replace by ... (regcache_write_pc): ... this function. (read_pc, write_pc): Update. * infrun.c (displaced_step_prepare): Replace read_pc_pid and write_pc_pid by regcache_read_pc and regcache_write_pc. (displaced_step_fixup): Likewise. (resume): Likewise. Use regcache arch instead of current_gdbarch. (prepare_to_proceed): Likewise. (proceed): Likewise. (adjust_pc_after_break): Likewise. (handle_inferior_event): Likewise. * linux-nat.c (cancel_breakpoint): Likewise. * linux-thread-db.c (check_event): Likewise. * aix-thread.c (aix_thread_wait): Likewise. * tracepoint.c (trace_dump_command): Likewise.
2008-05-04 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missingJan Kratochvil2-2/+12
SYMBOL_LOCATION_BATON.
2008-05-04 * lib/mi-support.exp (mi_run_cmd): Allow for =thread-createdVladimir Prus2-1/+6
notification to appear.
2008-05-04Fix formattingVladimir Prus1-8/+8
2008-05-04 * gdb.texinfo (GDB/MI Output Records): AddVladimir Prus2-1/+6
missing semicolon.
2008-05-04 Fix auxv data parsing on 64-bit solarisVladimir Prus4-1/+69
* target.h (struct target_ops): New field to_auxv_parse. * auxv.c (default_auxv_parse): New, renamed from previous target_auxv_parse. (target_auxv_parse): Try to call target method. Fallback to default_auxv_parse if not found. * procfs.c (procfs_auxv_parse): New. (init_procfs_ops): On Solaris, in 64-bit mode, install procfs_auxv_parse.