aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-09-12daily updateAlan Modra1-1/+1
2011-09-11gdb/Jan Kratochvil2-2/+10
Code cleanup. * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter values.
2011-09-11daily updateAlan Modra1-1/+1
2011-09-11*** empty log message ***gdbadmin1-1/+1
2011-09-10Add PR markersAndreas Schwab2-0/+2
2011-09-10 * output.cc (Output_fill_debug_info::do_write): Use Swap_unaligned.David S. Miller2-12/+17
(Output_fill_debug_line::do_write): Likewise.
2011-09-10daily updateAlan Modra1-1/+1
2011-09-10*** empty log message ***gdbadmin1-1/+1
2011-09-09gdb/Jan Kratochvil6-78/+96
Code cleanup. * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ... (amd64_skip_xmm_prologue): ... this new function. Describe its parameters. No longer use amd64_prologue_line_bug. * defs.h (producer_is_gcc_ge_4): New declaration. * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c. (process_full_comp_unit): Update its caller. Remove amd64_prologue_line_bug initialization. * symtab.h (struct symtab): Remove field amd64_prologue_line_bug. * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2011-09-09Fixup last entry.Pedro Alves1-2/+2
2011-09-09 Pedro Alves <pedro@codesourcery.com> * linux-nat.h (enum resume_kind): New. (struct lwp_info) <last_resume_kind>: New field. * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to resume_stop on the new lwp. (add_lwp): Set last_resume_kind as resume_continue by default. (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop. (resume_lwp): New, factored out from resume_callback. Also check for pending status in lp->waitstatus. (resume_callback): Reimplement. (resume_clear_callback): Set last_resume_kind as resume_stop. (resume_set_callback): Set last_resume_kind as resume_continue. (linux_nat_resume, linux_handle_extended_wait): Set last_resume_kind. (running_callback): Also check lp->waitstatus for pending events. (select_singlestep_lwp_callback): Check that lp->last_resume_kind is resume_step. (stop_and_resume_callback): Don't re-resume if the core wanted the lwp stopped. Use resume_lwp instead of resume_callback. Avoid using an invalidated pointer. (linux_nat_filter_event): Don't discard SIGSTOPs as delayed SIGSTOPs if the core wanted the LWP to stop. (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core wanted the lwp to stop. If the core wanted the lwp to stop, and the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead of TARGET_SIGNAL_STOP. (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop here. Instead, signal the lwp, and set the last_resume_kind to resume_stop.
2011-09-092011-09-09 Pedro Alves <pedro@codesourcery.com>Pedro Alves3-73/+164
* linux-nat.h (enum resume_kind): New. (struct lwp_info) <last_resume_kind>: New field. (linux_child_follow_fork): Set last_resume_kind to resume_stop on the new lwp. (add_lwp): Set last_resume_kind as resume_continue by default. (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop. (resume_lwp): New, factored out from resume_callback. Also check for pending status in lp->waitstatus. (resume_callback): Reimplement. (resume_clear_callback): Set last_resume_kind as resume_stop. (resume_set_callback): Set last_resume_kind as resume_continue. (linux_nat_resume, linux_handle_extended_wait): Set last_resume_kind. (running_callback): Also check lp->waitstatus for pending events. (select_singlestep_lwp_callback): Check that lp->last_resume_kind is resume_step. (stop_and_resume_callback): Don't re-resume if the core wanted the lwp stopped. Use resume_lwp instead of resume_callback. Avoid using an invalidated pointer. (linux_nat_filter_event): Don't discard SIGSTOPs as delayed SIGSTOPs if the core wanted the LWP to stop. (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core wanted the lwp to stop. If the core wanted the lwp to stop, and the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead of TARGET_SIGNAL_STOP. (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop here. Instead, signal the lwp, and set the last_resume_kind to resume_stop.
2011-09-092011-09-09 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-1/+6
* linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of -1 (error), if the lwp exits right after attaching.
2011-09-092011-09-09 Kai Tietz <ktietz@redhat.com>Kai Tietz2-1/+10
* peicode.h (pe_ILF_build_a_bfd): Don't remove leading underscore for targets without symbol_leading_char.
2011-09-09daily updateAlan Modra1-1/+1
2011-09-09*** empty log message ***gdbadmin1-1/+1
2011-09-08 * linux-x86-low.c (i386_emit_prologue): Save %ebx.Stan Shebs2-1/+8
(i386_emit_epilogue): Restore %ebx.
2011-09-08 * py-cmd.c: Some minor formatting fixes.Doug Evans4-31/+28
(gdbpy_parse_command_name): Rename text arg to name, make const. All callers updated. * python-internal.h (gdbpy_parse_command_name): Update.
2011-09-08opcodes/David S. Miller6-0/+26
* sparc-opc.c (sparc_opcodes): Add entry for 'save simm13,regrs1,regrd' This has been reported as being accepted by the Sun assmebler. gas/testsuite/ * gas/sparc/save-args.[sd]: New test. * gas/sparc/sparc.exp: Run new test.
2011-09-08opcodes/David S. Miller8-5/+165
The changes below bring 'mov' and 'ticc' instructions into line with the V8 SPARC Architecture Manual. * sparc-opc.c (sparc_opcodes): Add entry for 'ticc imm + regrs1'. * sparc-opc.c (sparc_opcodes): Add alias entries for 'mov regrs2,%asrX'; 'mov regrs2,%y'; 'mov regrs2,%prs'; 'mov regrs2,%wim' and 'mov regrs2,%tbr'. * sparc-opc.c (sparc_opcodes): Move/Change entries for 'mov imm,%asrX'; 'mov imm,%y'; 'mov imm,%prs'; 'mov imm,%wim' and 'mov imm,%tbr'. * sparc-opc.c (sparc_opcodes): Add wr alias entries to match above mov aliases. gas/testsuite/ * gas/sparc/ticc-imm-reg.[sd]: New test. * gas/sparc/v8-movwr-imm.[sd]: New test. * gas/sparc/sparc.exp: Run new tests.
2011-09-08gdb/testsuite/Jan Kratochvil8-15/+71
Fix compatibility with x32 arch. * testsuite/gdb.dwarf2/typeddwarf.exp: Check also is_lp64_target. * testsuite/gdb.trace/backtrace.exp: Use is_amd64_regs_target and is_x86_like_target. * testsuite/gdb.trace/collection.exp: Likewise. * testsuite/gdb.trace/report.exp: Likewise. * testsuite/gdb.trace/unavailable.exp: Likewise. * testsuite/gdb.trace/while-dyn.exp: Likewise. * testsuite/lib/gdb.exp (is_amd64_regs_target): New function. (is_x86_like_target): Check also is_amd64_regs_target.
2011-09-08 * cli/cli-decode.c (add_cmd): Add comment.Doug Evans2-0/+5
2011-09-08gas/David S. Miller6-1/+34
* config/tc-sparc.c (sparc_ip): Handle 'i' + r<0..31> in addition to 'i' + [goli]<0..7>. gas/testsuite/ * gas/sparc/imm-plus-rreg.[sd]: New test. * gas/sparc/sparc.exp: Run new test.
2011-09-08opcodes/David S. Miller5-3/+12
* sparc-opc.c (pdistn): Destination is integer not float register. gas/testsuite/ * gas/sparc/hpcvis3.s: Correct pdistn test. * gas/sparc/hpcvis3.d: Likewise.
2011-09-08 * po/ja.po: Updated Japanese translation.Nick Clifton2-56/+61
2011-09-08 * cgen.c (gas_cgen_pcrel_r_type): New function.Nick Clifton3-7/+39
(gas_cgen_tc_gen_reloc): Check for GAS_CGEN_PCREL_R_TYPE. * cgen.h (gas_cgen_pcrel_r_type): Declare.
2011-09-08 * bfdwin.c (bfd_get_file_window): Fix memory leak.Nick Clifton2-16/+29
2011-09-08gdb/Jan Kratochvil8-1/+576
PR breakpoints/12435 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal, next_sal, buf, offset and xmmreg. Advance PC if it sees the PR. * dwarf2read.c (process_full_comp_unit): Initialize amd64_prologue_line_bug. * symtab.h (struct symtab): New field amd64_prologue_line_bug. gdb/testsuite/ PR breakpoints/12435 * gdb.arch/amd64-prologue-xmm.c: New file. * gdb.arch/amd64-prologue-xmm.exp: New file. * gdb.arch/amd64-prologue-xmm.s: New file.
2011-09-08gdb/Jan Kratochvil2-2/+8
Fix TUI screen corruption. * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by batch_flag.
2011-09-08gdb/Jan Kratochvil5-43/+41
* findvar.c (read_var_value): Never return NULL, throw an error instead. Update the function comment. State symbol name in the error messages. * python/py-frame.c (frapy_read_var): Remove handling of NULL from read_var_value. * stack.c (print_frame_args): Likewise. * valops.c (value_of_variable): Likewise.
2011-09-08gdb/Jan Kratochvil6-30/+231
* stack.c (print_frame_args): New variable except. Wrap read_var_value and common_val_print into TRY_CATCH. gdb/testsuite/ * gdb.dwarf2/dw2-param-error-main.c: New file. * gdb.dwarf2/dw2-param-error.S: New file. * gdb.dwarf2/dw2-param-error.exp: New file.
2011-09-082011-09-08 Pedro Alves <pedro@codesourcery.com>Pedro Alves4-21/+48
* gdb.base/annota1.exp, gdb.base/annota3.exp: Extract the inferior's pid and look for a core dump named core.$pid. Use `remote_file' commands on the host instead of hand coding shell commands on the build. * gdb.base/valgrind-db-attach.exp: Kill the program before finishing the test.
2011-09-08gdb/Jan Kratochvil5-31/+40
* eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this caller to value_of_this. * p-exp.y: Update the value_of_this caller to value_of_this_silent. Twice. * valops.c (value_of_this): Remove parameter complain and variable ret. Update function comment. Never return NULL by this code. (value_of_this_silent): New function. * value.h (value_of_this): Remove parameter complain. (value_of_this_silent): New declaration.
2011-09-08gas/Richard Sandiford6-1/+67
PR gas/13167 * dwarf2dbg.c (dwarf2_flush_pending_lines): Use symbol_temp_new_now. gas/testsuite/ PR gas/13167 * gas/ia64/pr13167.d, gas/ia64/pr13167.s: New test. * gas/ia64/ia64.exp: Run it.
2011-09-08*** empty log message ***gdbadmin1-1/+1
2011-09-08daily updateAlan Modra1-1/+1
2011-09-07* gas/testsuite/gas/m68k/all.exp: Run "mode5" test also with -mcpu=5200.Andreas Schwab6-10/+20
* gas/testsuite/gas/m68k/mode5.s: Add moveml testcases. * gas/testsuite/gas/m68k/mode5.d: Update. * opcodes/m68k-opc.c: Use "y" in moveml pattern for mcfisa_a.
2011-09-07 gdb/Yao Qi3-47/+10
* gdbthread.h (struct thread_info): Remove fields `stepping_through_solib_after_catch' and `stepping_through_solib_catchpoints'. * infrun.c (init_thread_stepping_state): Update. (process_event_stop_test, currently_stepping): Update. (currently_stepping_or_nexting_callback): Update.
2011-09-07 PR ld/13131Alan Modra2-0/+8
* bfd/elf64-ppc.c (adjust_toc_syms): Ensure ppc64_elf_howto_table is initialized.
2011-09-07 gdb/Yao Qi2-1/+13
* gdbthread.h (struct thread_info): Comment on field `step_after_step_resume_breakpoint'.
2011-09-072011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>Pedro Alves2-2/+6
* remote.c (remote_console_output): Reindent.
2011-09-072011-09-06 Luis Machado <lgustavo@codesourcery.com>Luis Machado2-9/+18
* frame.c (has_stack_frames): Check for currently selected traceframe.
2011-09-07daily updateAlan Modra1-1/+1
2011-09-07*** empty log message ***gdbadmin1-1/+1
2011-09-062011-09-06 Pedro Alves <pedro@codesourcery.com>Pedro Alves6-358/+154
* event-top.h (MAXPROMPTS, struct prompts): Delete. (set_async_annotation_level, set_async_prompt, pop_prompt) (push_prompt, new_async_prompt): Delete declarations. * top.h (get_prompt, set_prompt): Change prototype. (get_prefix, set_prefix, get_suffix, set_suffix): Delete declarations. * top.c (command_loop): (top_prompt): New global. (get_prefix, set_prefix, get_suffix, ): Delete. (get_prompt, set_prompt): Rewrite. (show_new_async_prompt): Rename to ... (show_prompt): ... this. (init_main): Adjust. Don't handle --annotate=2 here. * event-top.c (new_async_prompt): Delete. (the_prompts): Delete. (more_to_come): Make static. (display_gdb_prompt): Use top_level_prompt() to compute the top level prompt, and don't notify the before_prompt observers directly here. Always trick readline into not trying to display the prompt if sync_execution and displaying the primary prompt. If displaying a local/secondary prompt, always show it, even if sync_execution is set. (change_annotation_level): Delete. (top_level_prompt): New, based on change_annotation_level. (push_prompt, pop_prompt): Delete. (async_disable_stdin): No longer pushes prompt. (command_line_handler): No longer pushes or pops prompt. If more input is expected, call display_gdb_prompt with an explicit empty prompt. (async_stop_sig): Adjust. (set_async_annotation_level, set_async_prompt): Delete. * python/python.c (before_prompt_hook): Adjust.
2011-09-06 PR ld/13131Alan Modra2-5/+16
* elf64-ppc.c (adjust_toc_syms): Delete redundant code. (ppc64_elf_edit_toc): Fix style nit. Report some details on linker failure due to reference in debug or non-alloc sections to optimized away toc entry, and don't abort.
2011-09-06*** empty log message ***gdbadmin1-1/+1
2011-09-06daily updateAlan Modra1-1/+1
2011-09-05gas/Richard Sandiford8-13/+233
PR gas/13024 * dwarf2dbg.c (pending_lines, pending_lines_tail): New variables. (dwarf2_gen_line_info_1): Delete. (dwarf2_push_line, dwarf2_flush_pending_lines): New functions. (dwarf2_gen_line_info, dwarf2_emit_label): Use them. (dwarf2_consume_line_info): Call dwarf2_flush_pending_lines. (dwarf2_directive_loc): Push previous .locs instead of generating them immediately. gas/testsuite/ * gas/mips/loc-swap-2.s, gas/mips/loc-swap-2.d, gas/mips/micromips@loc-swap-2.d, gas/mips/mips16@loc-swap-2.d: New test. * gas/mips/mips.exp: Run it.
2011-09-052011-09-05 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-1/+10
PR cli/13110 * infrun.c (fetch_inferior_event): Check if there's a selected thread before checking if the selected thread is executing.
2011-09-052011-09-05 Pedro Alves <pedro@codesourcery.com>Pedro Alves4-17/+26
* inf-loop.c (execute_command): Don't check if the current thread if running before synchronously waiting for command completion. * infrun.c (fetch_inferior_event): Handle "set exec-done-display" here. (normal_stop): Call async_enable_stdin here. * inf-loop.c (inferior_event_handler): Don't call async_enable_stdin, nor handle "set exec-done-display" here.