aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2008-06-25 * lib/gdb.exp (prepare_for_testing): Do not drop the OPTIONS argument.Jan Kratochvil2-1/+5
2008-06-25 Fix a memory leak found by Hui Zhu <teawater@gmail.com>.Jan Kratochvil2-14/+24
* c-exp.y (parse_number): Move the S and SAVED_CHAR initialization after the DECFLOAT detection to fix a memory leak. Remove the redundant NUM initialization. Protect the DECFLOAT detection memory access before the P block. Restore the P memory content for the DECFLOAT detection.
2008-06-25Revert accidental commit.Daniel Jacobowitz1-2/+0
2008-06-25 Kill the return value for all MI command functions.Vladimir Prus12-201/+111
* mi/mi-cmds.h (enum mi_cmd_result): Remove. (mi_cmd_argv_ftype): Change return type to void. * mi/mi-main.c: Adjust all function that implement MI commands to return nothing. (struct captured_mi_execute_command_actions): Remove the rc field. (mi_cmd_execute): Return nothing. (mi_execute_async_cli_command): Return nothing. (mi_cmd_exec_interrupt): Don't print ^done here. (mi_cmd_target_select): Don't print ^connected here. (captured_mi_execute_command): Don't check for MI_CMD_DONE. Special-case -target-select and output ^connected, not ^done. * mi/mi-cmd-break.c: Adjust. * mi/mi-cmd-disas.c: Adjust. * mi/mi-cmd-env.c: Adjust. * mi/mi-cmd-file.c: Adjust. * mi/mi-cmd-stack.c: Adjust. * mi/mi-cmd-target.c: Adjust. * mi/mi-cmd-var.c: Adjust. * mi/mi-interp.c: Adjust. * mi/mi-symbol-cmds.c: Adjust.
2008-06-25 Emit ^running via observer.Vladimir Prus7-139/+109
* mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print ^running here. (mi_on_resume): Print ^running if not previously output. * mi/mi-main.c (running_result_record_printed): New. (captured_mi_execute_command): Reset running_result_record_printed. Use running_result_record_printed to decide if we should skip ^done. (mi_execute_async_cli_command): Don't print ^running here. * mi/mi-main.h (current_token, running_result_record_printed): Declare.
2008-06-25 * elf32-arm.c (STUB_ENTRY_NAME): Define.Daniel Jacobowitz1-0/+2
(arm_thumb_thumb_long_branch_stub): Use bx instead of b.n. (arm_pic_long_branch_stub): Mention R_ARM_REL32 instead of R_ARM_ABS32. (struct elf32_arm_stub_hash_entry): Add output_name. (arm_build_one_stub): Move offsets into the offset argument of _bfd_final_link_relocate. Correct offset for arm_thumb_arm_v4t_stub_long_branch. (elf32_arm_size_stubs): Set stub_entry->output_name. (elf32_arm_ouput_plt_map_sym): Rename to elf32_arm_output_map_sym. Update all callers. (elf32_arm_output_stub_sym): New. (arm_map_one_stub): Correct formatting. Use elf32_arm_output_stub_sym. * ld-arm/farcall-arm-arm-be8.d, ld-arm/farcall-arm-arm-pic-veneer.d, ld-arm/farcall-arm-arm.d, ld-arm/farcall-arm-thumb-blx-pic-veneer.d, ld-arm/farcall-arm-thumb-blx.d, ld-arm/farcall-arm-thumb-pic-veneer.d, ld-arm/farcall-arm-thumb.d, ld-arm/farcall-group-size2.d, ld-arm/farcall-group.d, ld-arm/farcall-mix.d, ld-arm/farcall-mix2.d, ld-arm/farcall-thumb-arm-blx-pic-veneer.d, ld-arm/farcall-thumb-arm-blx.d, ld-arm/farcall-thumb-arm.d, ld-arm/farcall-thumb-thumb-blx-pic-veneer.d, ld-arm/farcall-thumb-thumb-blx.d, ld-arm/farcall-thumb-thumb-m.d, ld-arm/thumb2-bl-as-thumb1-bad.d, ld-arm/thumb2-bl-bad.d: Update for stub symbols and stub corrections.
2008-06-25*** empty log message ***gdbadmin1-1/+1
2008-06-242008-06-24 Michael Snyder <msnyder@specifix.com>Michael Snyder2-6/+9
* infrun.c (_initialize_infrun): White space and typo fix.
2008-06-24* win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.Christopher Faylor3-4/+12
(do_initial_win32_stuff): Fix problem with inability to set breakpoints when first loading DLL with "dll" command.
2008-06-24*** empty log message ***gdbadmin1-1/+1
2008-06-23 * fix wrong entry datesPierre Muller1-3/+3
2008-06-23*** empty log message ***gdbadmin1-1/+1
2008-06-22*** empty log message ***gdbadmin1-1/+1
2008-06-21*** empty log message ***gdbadmin1-1/+1
2008-06-20gdb/gdbserver/Carlos O'Donell2-0/+5
2008-06-20 Carlos O'Donell <carlos@codesourcery.com> * server.c (gdbserver_usage): Mention --version.
2008-06-20 * gnu-nat.c (proc_string): Use capital T for "Thread".Pierre Muller2-1/+5
2008-06-20*** empty log message ***gdbadmin1-1/+1
2008-06-19 * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".Pierre Muller3-2/+6
2008-06-19*** empty log message ***gdbadmin1-1/+1
2008-06-18 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing ifJoel Brobecker2-2/+14
the target cannot run.
2008-06-18 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing ifJoel Brobecker2-0/+10
we're attaching to a running process.
2008-06-18 * win32-nat.c (handle_load_dll): Give dll name and load addressPierre Muller3-0/+16
if debug_events is on. (handle_unload_dll): Likewise.
2008-06-18*** empty log message ***gdbadmin1-1/+1
2008-06-17*** empty log message ***gdbadmin1-1/+1
2008-06-16*** empty log message ***gdbadmin1-1/+1
2008-06-15*** empty log message ***gdbadmin1-1/+1
2008-06-14*** empty log message ***gdbadmin1-1/+1
2008-06-13 Don't suppress *running when doing finish.Vladimir Prus6-14/+34
* infcall.c (call_function_by_hand): Set both suppress_resume_observer and suppress_stop_observer. * infcmd.c (suppress_run_stop_observers): Split into... (suppress_resume_observer, suppress_stop_observer): ...those. (finish_command_continuation): Clear suppress_stop_observer. (finish_command): Set suppress_stop_observer. * inferior.h (suppress_run_stop_observers): Split into... (suppress_resume_observer, suppress_stop_observer): ...those. * infrun.c (normal_stop): Check for suppress_stop_observer. * thread.c (set_running): Check for suppress_resume_observer.
2008-06-13 Robustify mi-simplerun.Vladimir Prus5-10/+13
* gdb.mi/basics.c (main): Add a call to sleep. * gdb.mi/mi-cli.exp: Adjust for change in line numbers. * gdb.mi/mi2-cli.exp: Likewise. * gdb.mi/mi-break.exp: Likewise.
2008-06-13*** empty log message ***gdbadmin1-1/+1
2008-06-12*** empty log message ***gdbadmin1-1/+1
2008-06-11 * gdbarch.sh (gdbarch_skip_main_prologue): New.Pierre Muller8-0/+102
* gdbarch.h, gdbarch.c: Regenerate. * i386-tdep.h (i386_skip_main_prologue): Declare. * i386-tdep.c (i386_skip_main_prologue): New. * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback. * symtab.c (find_function_start_sal): When pc points at the "main" function, call gdbarch_skip_main_prologue.
2008-06-11 * value.c (value_primitive_field): Fetch lazy register values.Daniel Jacobowitz2-2/+16
2008-06-11Fix date in changelog entryVladimir Prus1-1/+1
2008-06-11 * gdb.mi/mi-break.exp (test_ignore_count): Use mi_expect_stop.Vladimir Prus2-11/+6
2008-06-11 * NEWS: Mention support removal of undocumented S AA p PID stopPedro Alves3-6/+13
reply packet. * remote.c (remote_wait): Remove undocumented S AA p PID support.
2008-06-11*** empty log message ***gdbadmin1-1/+1
2008-06-102008-06-10 Stan Shebs <stan@codesourcery.com>Stan Shebs2-3/+7
* MAINTAINERS: Update my affiliation and address.
2008-06-10(print_gdb_version): Don't print final newline.Andreas Schwab2-1/+5
2008-06-10 Implement *running.Vladimir Prus20-34/+176
* Makefile.in: Update dependencies. * gdbthread.h (struct thread_info): New field running_. (set_running, is_running): New. * thread.c (set_running, is_running): New. * inferior.h (suppress_normal_stop_observer): Rename to... (suppress_run_stop_observers): ..this. * infcmd.c (suppress_normal_stop_observer): Rename to... (suppress_run_stop_observers): ..this. (finish_command_continuation, finish_command): Adjust. * infcall.c (call_function_by_hand): Adjust. * infrun.c (normal_stop): Call set_running. * target.c (target_resume): New. Call set_running. * target.h (target_resume): Convert from macro to a function. * mi/mi-interp.c (mi_on_resume): New. (mi_interpreter_init): Register mi_on_resume.
2008-06-10 Use observers to report stop events in MI.Vladimir Prus9-89/+114
* mi/mi-interp.c (mi_on_normal_stop): New. (mi_interpreter_init): Register mi_on_normal_stop. (mi_interpreter_exec_continuation): Remove. (mi_cmd_interpreter_exec): Don't register the above. * mi/mi-main.c (captured_mi_execute_command): Don't care about sync_execution. (mi_execute_async_cli_command): Don't install continuation. Don't print *stopped. (mi_exec_async_cli_cmd_continuation): Remove.
2008-06-10 Suppress normal stop observer when it's problematic.Vladimir Prus5-2/+34
* inferior.h (suppress_normal_stop_observer): New. * infcall.c (call_function_by_hand): Disable stop events when doing function calls. * infmcd.c (suppress_normal_stop_observer): New. (finish_command_continuation): Call normal_stop observer explicitly. (finish_command): Disable stop events inside proceed. * infrun.c (normal_stop): Don't call normal stop observer if suppressed of if multi-step is in progress.
2008-06-10 Remove stale code.Vladimir Prus2-6/+9
* infrun.c (finish_command): Don't pass cleanup to continuation. (finish_command_continuation): Don't grab cleanup from the passed data, as we don't use, and cannot, use it anyway.
2008-06-10 Introduce common cleanup for restoring integers.Vladimir Prus4-11/+69
* defs.h (make_cleanup_restore_integer): New declaration. (struct cleanup): New field free_arg. (make_my_cleanup_2): New. * utils.c (restore_integer_closure, restore_integer) (make_cleanup_restore_integer): New. (make_my_cleanup): Initialize the free_arg field and renamed to make_my_cleanup_2. (do_my_cleanups): Call free_arg. (discard_cleanups): Call free_arg. * breakpoint.c (restore_always_inserted_mode): Remove. (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
2008-06-10*** empty log message ***gdbadmin1-1/+1
2008-06-09 * remote.c (remote_wait): Include beginning of malformed packetDoug Evans2-2/+9
in error output.
2008-06-09gdbTom Tromey5-7/+55
* completer.c (complete_line): Don't special-case expression_completer. (expression_completer): Only pass last word to location_completer. * c-exp.y (yylex): Check 'token', not 'operator'. gdb/testsuite * gdb.base/completion.exp: New tests for field name completion with spaces, and field name completion with '->'.
2008-06-09 * configure.ac (build_warnings): Add -Wno-format for mingw.Daniel Jacobowitz3-0/+17
* configure: Regenerated.
2008-06-09*** empty log message ***gdbadmin1-1/+1
2008-06-08*** empty log message ***gdbadmin1-1/+1