* source.c (select_source_symtab): Make sure we skip namespace
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 4f4e28c2032a90ad5ac2b8c1e0818ac24e8b07b6..cea722e10132c1024b0986e51745442fa8ece786 100644 (file)
@@ -1,3 +1,376 @@
+2008-06-30  Luis Machado  <luisgpm@br.ibm.com>
+
+       * source.c (select_source_symtab): Make sure we skip namespace
+       symtabs when showing cpp source code.
+
+2008-06-30  Hans-Peter Nilsson  <hp@axis.com>
+
+       * MAINTAINERS (Authorized committers): Fix my email address.
+
+2008-06-28  Vladimir Prus  <vladimir@codesourcery.com>
+
+       * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
+       -target-download and -target-select via CLI, so that
+       the quoting rules are the same as they were (unfortunately)
+       in all prior gdb releases.
+       * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
+       (mi_cmd_target_download, mi_cmd_target_select): Remove.
+       * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
+       (mi_cmd_target_download, mi_cmd_target_select): Remove.
+       (mi_cmd_execute): Set current_token even for commands
+       routed via CLI.
+
+2008-06-28  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * alphafbsd-tdep.c: Update for unwinder changes.
+       * alpha-linux-tdep.c: Likewise.
+       * alphanbsd-tdep.c: Likewise.
+       * alphaobsd-tdep.c: Likewise.
+       * avr-tdep.c: Likewise.
+       * cris-tdep.c: Likewise.
+       * frv-linux-tdep.c: Likewise.
+       * frv-tdep.c: Likewise.
+       * h8300-tdep.c: Likewise.
+       * hppa-linux-tdep.c: Likewise.
+       * iq2000-tdep.c: Likewise.
+       * m32c-tdep.c: Likewise.
+       * m32r-linux-tdep.c: Likewise.
+       * m32r-tdep.c: Likewise.
+       * m68hc11-tdep.c: Likewise.
+       * mep-tdep.c: Likewise.
+       * mn10300-tdep.c: Likewise.
+       * mt-tdep.c: Likewise.
+       * score-tdep.c: Likewise.
+       * sh64-tdep.c: Likewise.
+       * sh-tdep.c: Likewise.
+       * sparc64fbsd-tdep.c: Likewise.
+       * sparc64nbsd-tdep.c: Likewise.
+       * sparc64obsd-tdep.c: Likewise.
+       * v850-tdep.c: Likewise.
+       * vaxobsd-tdep.c: Likewise.
+       * vax-tdep.c: Likewise.
+       * xstormy16-tdep.c: Likewise.
+
+2008-06-28  Vladimir Prus  <vladimir@codesourcery.com>
+
+       * mi/mi-main.c (enum captured_mi_execute_command_actions)
+       (captured_mi_execute_command_args): Remove.
+       (captured_mi_execute_command): Cast the closure to mi_parse
+       pointer, not to captured_mi_execute_command_args, and don't
+       set the action field thereof.
+       (mi_execute_command): Pass struct mi_parse, not
+       captured_mi_execute_command_args to captured_mi_execute_command.
+       (mi_execute_command): Remove (dead) code for suppressing
+       printing prompt.
+
+2008-06-28  Pedro Alves  <pedro@codesourcery.com>
+
+       * linux-nat.c (enum sigchld_state): New.
+       (linux_nat_async_events_state): Renamed from
+       linux_nat_async_events_enabled.
+       (linux_nat_event_pipe_push, my_waitpid): Adjust.
+       (sigchld_default_action): New.
+       (lin_lwp_attach_lwp): Adjust.  Call linux_nat_async_events
+       unconditionally.
+       (linux_nat_create_inferior): Set events state to sigchld_default
+       state.
+       (linux_nat_resume): Adjust.
+       (linux_nat_wait): Call linux_nat_async_events unconditionally.
+       (sigchld_handler): Adjust.
+       (linux_nat_async_mask): Don't set SIGCHLD actions here.
+       (get_pending_events): Adjust.
+       (linux_nat_async_events): Rewrite to handle enum sigchld_state
+       instead of a boolean.
+       (linux_nat_async): Adjust.
+       (_initialize_linux_nat): Capture default SIGCHLD action into
+       sigchld_default_action.
+
+2008-06-28  Vladimir Prus  <vladimir@codesourcery.com>
+
+        * breakpoint.c (moribund_locations): New.
+        (bpstat_stop_status): Process moribund locations.
+        (update_global_location_list): Add removed
+        locations to moribund_locations.
+        (breakpoint_retire_moribund): New.
+        * breakpoint.h (struct bp_location): New field
+        events_till_retirement.
+        (breakpoint_retire_moribund): Declare.
+        * thread.c (thread_count): New.
+        * infrun.c (handle_inferior_event): Call
+        breakpoint_retire_moribund.
+        * gdbthread.h (thread_count): Declare.
+
+2008-06-27  Joseph Myers  <joseph@codesourcery.com>
+
+       * dfp.c (decimal_convert): Call match_endianness before and after
+       conversion.
+
+2008-06-27  Jonathan Larmour  <jifl@eCosCentric.com>
+
+       * remote.c (remote_insert_breakpoint): Ensure that if Z0
+       unsupported and we fall back to memory_insert_breakpoint, we
+       use the unmodified requested address.
+
+2008-06-27  Joel Brobecker  <brobecker@adacore.com>
+
+       * dwarf2read.c (read_attribute_value): Issue a complaint when
+       adjusting size attribute values of 0xffffffff as zero.
+
+2008-06-27  Joseph Myers  <joseph@codesourcery.com>
+
+       * i386-tdep.c (i386_16_byte_align_p): New.
+       (i386_push_dummy_call): Determine stack space required for
+       arguments going forwards allowing for 16-byte alignment, then push
+       arguments going forwards.
+
+2008-06-27  Pedro Alves  <pedro@codesourcery.com>
+
+       * infrun.c (start_remote): Don't clear thread list here.
+       * monitor.c (monitor_open): Include "gdbthread.h".  Clear thread
+       list here.
+       * remote.c (record_currthread): Upgrade the main thread and its
+       entry in the thread list if this is the first time we hear about
+       threads.
+       (remote_thread_alive): Consider magic_null_ptid or a ptid without
+       a tid member always alive.
+       (remote_find_new_threads): Don't update the main thread here.
+       (remote_start_remote): Clear thread list here.  Always add the
+       main thread.
+       (extended_remote_attach_1): Add the main thread here.
+       (extended_remote_mourn_1): Re-add the main thread here.
+       (extended_remote_create_inferior_1): Add a main thread.
+
+       * Makefile.in (monitor.o): Depend on $(gdbthread_h).
+
+2008-06-27  Pedro Alves  <pedro@codesourcery.com>
+
+       Use ptid_t.tid to store thread ids instead of ptid_t.pid.
+
+       * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
+       globals.
+       (general_thread, continue_thread): Change type to ptid_t.
+       (record_currthread): Take a ptid_t parameter instead of an
+       integer.
+       (MAGIC_NULL_PID): Delete.
+       (set_thread): Take a ptid_t parameter and adjust.
+       (set_general_thread, set_continue_thread): New.
+       (remote_thread_alive, remote_newthread_step)
+       (remote_current_thread, remote_find_new_threads)
+       (remote_threads_info, remote_start_remote, remote_vcont_resume)
+       (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
+       (threadalive_test, remote_pid_to_str)
+       (remote_get_thread_local_address): Adjust.
+       (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
+       and any_thread_ptid.
+
+2008-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
+       * configure: Regenerated.
+
+2008-06-26  Joel Brobecker  <brobecker@adacore.com>
+
+       * dwarf2read.c (read_attribute_value): Treat size attribute
+       values of 0xffffffff as if the attribute value was zero.
+
+2008-06-26  Vladimir Prus  <vladimir@codesourcery.com>
+
+       * linux-nat.c: Add description of overall logic.
+
+2008-06-26  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
+       (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete.  Remove
+       all dependencies on $(gdb_stdint_h).
+       (distclean): Do not delete gdb_stdint.h.
+       * acinclude.m4: Do not use stdint.m4.
+       * configure.ac: Set GNULIB_STDINT_H.  Remove tests for stdint.h,
+       uintptr_t, and gdb_stdint.h.
+       * defs.h: Include <stdint.h>.
+       * gdb_thread_db.h: Assume stdint.h is already included.
+       * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
+       rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
+       include gdb_stdint.h.
+       * configure, config.in: Regenerate.
+
+2008-06-26  Joseph Myers  <joseph@codesourcery.com>
+
+       * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
+       decimal floating-point values in GPRs for soft-float.
+       (do_ppc_sysv_return_value): Handle returning decimal
+       floating-point values in GPRs for soft-float.
+
+2008-06-26  Vladimir Prus  <vladimir@codesourcery.com>
+
+       * target.c (target_read_until_error): New.
+        * target.h (target_read_until_error): Declare.
+        * mi/mi-main.c (mi_cmd_data_read_memory): Use
+        target_read_until_error.
+
+2008-06-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
+       * 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-25  Vladimir Prus  <vladimir@codesourcery.com>
+
+       Kill the return value for all MI command functions.
+       * 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  Vladimir Prus  <vladimir@codesourcery.com>
+
+       Emit ^running via observer.
+       * 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-24  Michael Snyder  <msnyder@specifix.com>
+
+       * infrun.c (_initialize_infrun): White space and typo fix.
+
+2008-06-23  Christopher Faylor  <me.gdb.changelog@cgf.cx>
+
+       * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
+       (do_initial_win32_stuff): Fix problem with inability to set breakpoints
+       when first loading DLL with "dll" command.
+
+2008-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * gnu-nat.c (proc_string): Use capital T for "Thread".
+2008-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
+2008-06-18  Joel Brobecker  <brobecker@adacore.com>
+
+        * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
+        the target cannot run.
+
+2008-06-18  Joel Brobecker  <brobecker@adacore.com>
+
+       * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
+       we're attaching to a running process.
+
+2008-06-18  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * win32-nat.c (handle_load_dll): Give dll name and load address
+       if debug_events is on.
+       (handle_unload_dll): Likewise.
+
+2008-06-14  Vladimir Prus  <vladimir@codesourcery.com>
+
+       Don't suppress *running when doing finish.
+        * 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-12  Pedro Alves  <pedro_alves@portugalmail.pt>
+           Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * gdbarch.sh (gdbarch_skip_main_prologue): New.
+       * 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  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * value.c (value_primitive_field): Fetch lazy register values.
+
+2008-06-11  Pedro Alves  <pedro@codesourcery.com>
+
+       * NEWS: Mention support removal of undocumented S AA p PID stop
+       reply packet.
+
+       * remote.c (remote_wait): Remove undocumented S AA p PID support.
+
+2008-06-10  Stan Shebs  <stan@codesourcery.com>
+
+       * MAINTAINERS: Update my affiliation and address.
+
+2008-06-10  Andreas Schwab  <schwab@suse.de>
+
+       * top.c (print_gdb_version): Don't print final newline.
+
+2008-06-10  Vladimir Prus  <vladimir@codesourcery.com>
+
+       Implement *running.
+        * 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  Vladimir Prus  <vladimir@codesourcery.com>
+
+       Use observers to report stop events in MI.
+        * 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  Vladimir Prus  <vladimir@codesourcery.com>
 
        Suppress normal stop observer when it's problematic.
This page took 0.038192 seconds and 4 git commands to generate.