1 2008-07-11 Pedro Alves <pedro@codesourcery.com>
3 * thread.c (thread_apply_command): Move making the cleanup out of
6 2008-07-11 Pedro Alves <pedro@codesourcery.com>
10 * thread.c (enum thread_state): New.
11 (thread_state main_thread_running): Delete, in favor of...
12 (thread_state main_thread_state): ... this. Update throughout.
13 (clear_thread_inferior_resources): New, split from free_thread.
14 (free_thread): Call clear_thread_inferior_resources.
15 (init_thread_list): Set main thread to stopped state.
16 (add_thread_silent): Take care of PTID reuses.
17 (delete_thread): If deleting inferior_ptid or a thread with
18 refcount > 0, mark it as exited, but still keep it in the list.
19 Only notify of thread exits, if we haven't done so yet.
20 (iterate_over_threads): Make it safe to delete threads while
22 (do_captured_list_thread_ids): Don't account for exited threads.
23 (thread_alive): Check for the THREAD_EXITED state, and don't set
24 ptid to -1 on exited threads.
25 (set_running): Update to account for extra possible states.
26 (is_thread_state): New.
27 (is_stopped, is_exited): New.
28 (is_running): Implement in terms of is_thread_state.
29 (any_running): Update.
30 (print_thread_info): Update. Account for exited threads. Don't
31 warn about missed frame restoring here, its done in the cleanup.
32 (switch_to_thread): Don't read from a thread that has gone.
33 (restore_current_thread): In non-stop mode, do a full context
35 (restore_selected_frame): Add a frame_level argument. Rewrite.
36 (struct current_thread_cleanup): Add selected_frame_level and
38 (do_restore_current_thread_cleanup): Check if thread was stopped
39 and still is, and if the target has registers, stack and memory
40 before restoring the selected frame. Don't delete the cleanup
42 (restore_current_thread_cleanup_dtor): New.
43 (make_cleanup_restore_current_thread): Remove all arguments.
45 (thread_apply_all_command): Update. Prune threads.
46 (thread_apply_command): Update.
47 (thread_command): Account for currently selected exited thread.
48 (do_captured_thread_select): Check for a running thread. Prune
50 (_initialize_thread): Make "info threads", "thread", "thread
51 apply", and "thread apply all" appliable without a selected thread.
52 * gdbthread.h (struct thread_info): Replace running_ by state_.
54 (is_exited, is_stopped): Declare.
55 (make_cleanup_restore_current_thread): Remove all arguments.
56 * infrun.c: Include "event-top.h".
57 (fetch_inferior_event): In non-stop mode, restore selected thread
58 and frame after handling the event and running breakpoint
59 commands. Display GDB prompt if needed.
60 (normal_stop): In non-stop mode, don't print thread switching
62 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
63 (get_cmd_no_selected_thread_ok): New.
64 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New.
65 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
67 * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as
68 no-selected-thread ok.
69 * top.c (execute_command): Check for non no-selected-thread-ok
71 * linux-nat.c (struct saved_ptids, threads_to_delete)
72 (record_dead_thread, prune_lwps): Delete.
73 (exit_lwp): Unconditionally delete thread.
74 (linux_nat_resume): Remove prune_lwps call.
75 * infcmd.c (proceed_thread_callback): Check if !is_stopped instead
76 of is_running. Adjust to make_cleanup_restore_current_thread
78 * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the
79 selected thread has exited.
80 * inf-loop.c (inferior_event_handler): Don't display the prompt
82 * varobj.c (c_value_of_root): Update.
83 * defs.h (make_cleanup_dtor): Declare.
84 * utils.c (make_cleanup_dtor): New.
86 * Makefile.in (infrun.o): Depend on $(event_top_h).
88 2008-07-11 Pedro Alves <pedro@codesourcery.com>
90 Add "continue -a" and "interrupt -a" options for non-stop mode.
92 * infcmd.c (proceed_thread_callback, do_context_switch_to): New.
93 (continue_command): Add "-a" option.
94 (interrupt_target_command): Add "-a" option.
95 (_initialize_infcmd): Add extend help of continue and interrupt
96 command to mention the new "-a" option. Mark "continue" async ok.
98 2008-07-10 Doug Evans <dje@google.com>
100 Add "set print symbol-loading on|off".
101 * NEWS: Document new option.
102 * symfile.h (print_symbol_loading): Declare.
103 * symfile.c (print_symbol_loading): New global.
104 (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols
105 from ..." if print_symbol_loading.
106 (_initialize_symfile): Add set/show print symbol-loading.
107 * solib.c (solib_read_symbols): Only print "Loaded symbols for ..."
108 if print_symbol_loading.
110 2008-07-10 Pedro Alves <pedro@codesourcery.com>
112 Non-stop linux native.
114 * linux-nat.c (linux_test_for_tracefork): Block events while we're
116 (get_pending_status): Implement non-stop mode.
117 (linux_nat_detach): Stop threads before detaching.
118 (linux_nat_resume): In non-stop mode, always resume only a single
120 (linux_handle_extended_wait): On a clone event, in non-stop mode,
121 add new lwp to GDB's thread table, and mark as running, executing
122 and stopped appropriately.
123 (linux_nat_filter_event): Don't assume there are other running
124 threads when a thread exits.
125 (linux_nat_wait): Mark the main thread as running and executing.
126 In non-stop mode, don't stop all lwps.
127 (linux_nat_kill): Stop lwps before killing them.
128 (linux_nat_thread_alive): Use signal 0 to detect if a thread is
130 (send_sigint_callback): New.
131 (linux_nat_stop): New.
132 (linux_nat_add_target): Set to_stop to linux_nat_stop.
134 * linux-nat.h (thread_db_attach_lwp): Declare.
136 * linux-thread-db.c (thread_get_info_callback): Check for new
137 threads if we have none.
138 (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the
139 stopped lwp. Check for new threads if we have none.
140 (thread_db_attach_lwp): New.
141 (thread_db_init): Set proc_handle.pid to inferior_ptid.
142 (check_event): Set proc_handle.pid to the stopped lwp.
143 (thread_db_find_new_threads): Set proc_handle.pid to any stopped
144 lwp available, bail out if there is none.
146 * linux-fork.c (linux_fork_killall): Use SIGKILL instead of
149 2008-07-10 Kevin Buettner <kevinb@redhat.com>
151 * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
152 `current_pc' from CORE_ADDR to ULONGEST.
154 * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
157 2008-07-10 Jan Kratochvil <jan.kratochvil@redhat.com>
159 * NEWS (New commands): Mention "set disable-randomization".
160 * configure.ac: Add check for HAVE_PERSONALITY and
161 HAVE_DECL_ADDR_NO_RANDOMIZE.
162 * configure, config.in: Regenerate.
163 * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
164 [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
166 (disable_randomization, show_disable_randomization)
167 (set_disable_randomization): New.
168 (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
169 PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the
170 variable DISABLE_RANDOMIZATION.
171 (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
172 DISABLE_RANDOMIZATION.
174 2008-07-09 Pedro Alves <pedro@codesourcery.com>
176 Adjust all targets to new target_stop interface.
178 * gnu-nat.c (gnu_stop): Add ptid argument.
179 * go32-nat.c (go32_stop): Add ptid argument.
180 (go32_create_inferior): Pass inferior_ptid to go32_stop.
181 * hpux-thread.c (hpux_thread_stop): Add ptid argument.
182 * monitor.c (monitor_stop): Add ptid argument.
183 (monitor_open): Pass inferior_ptid to monitor_stop.
184 (monitor_interrupt): Pass inferior_ptid to target_stop.
185 (monitor_stop): Add ptid argument.
186 * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
187 (procfs_create_inferior): Add ptid argument.
188 * procfs.c (procfs_stop): Add ptid argument.
189 * remote-m32r-sdi.c (m32r_stop): Add ptid argument.
190 * remote-sim.c (gdbsim_stop): Add ptid argument.
191 * sol-thread.c (sol_thread_stop): Add ptid argument.
192 * win32-nat.c (win32_stop): Add ptid argument.
194 2008-07-09 Pedro Alves <pedro@codesourcery.com>
196 Non-stop inferior control.
198 * infrun.c (resume): In non-stop mode, always resume just one
200 (proceed): Don't call prepare_to_proceed in non-stop mode.
201 (fetch_inferior_event): In non-stop mode, switch context before
203 (error_is_running, ensure_not_running): New.
204 (handle_inferior_event): In non-stop mode: Mark only the event
205 thread as stopped. Require that the target module manages adding
206 threads to the thread list. Assert that there isn't a
207 deferred_step_ptid set. Don't switch to infwait_thread_hop_state.
208 (normal_stop): Only mark not-running if inferior hasn't exited.
209 In non-stop mode, only mark the event thread.
211 * thread.c:Include "cli/cli-decode.h".
212 (print_thread_info): Don't read from a running thread.
213 Output "(running)" if thread is running.
214 (switch_to_thread): Don't read stop_pc if thread is executing.
215 (do_restore_current_thread_cleanup): Don't write to a running
217 (thread_apply_all_command): Don't read from a running thread. In
218 non-stop mode, do a full context-switch instead of just switching
220 (thread_apply_command): In non-stop mode, do a full context-switch
221 instead of just switching threads.
222 (do_captured_thread_select): Likewise. Inform user if selected
224 (_initialize_thread): Mark "info threads" and "thread" and
227 * inf-loop.c (inferior_event_handler): In non-stop mode, don't
228 unregister the target from the event loop.
230 * infcmd.c (continue_command, step_1, jump_command)
231 (signal_command): Ensure the selected thread isn't running.
232 (interrupt_target_command): In non-stop mode, interrupt only the
235 * inferior.h (error_is_running, ensure_not_running): Declare.
237 * target.h (struct target_ops): Add ptid argument to the to_stop
239 (target_stop): Add ptid_t argument.
241 * target.c (update_current_target): Add ptid argument to to_stop's
243 (debug_to_stop): Add ptid_t argument.
244 (debug_to_rcmd): Set to_stop_ptid.
246 * remote.c (remote_stop): Add ptid_t argument.
247 (async_remote_interrupt): Add inferior_ptid to target_stop.
248 * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
250 * Makefile.in (thread.o): Depend on $(cli_decode_h).
252 2008-07-09 Pedro Alves <pedro@codesourcery.com>
254 Don't rely on ecs->wait_for_more.
256 * infrun.c (proceed): Clear the stepping state, set
257 previous_inferior_ptid and clear infwait state.
258 (wait_for_inferior): Don't clear the stepping state, set
259 previous_inferior_ptid, or clear the infwait state here.
260 (fetch_inferior_event): Don't clear the stepping state, set
261 previous_inferior_ptid, or clear the infwait state here. Don't
262 condition on wait_for_more.
264 2008-07-09 Pedro Alves <pedro@codesourcery.com>
266 Refactor infrun a bit.
268 * infrun.c (currently_stepping): Take a struct
269 thread_stepping_state instead of an execution_control_state.
270 (struct thread_stepping_state): New, split from
271 execution_control_state.
272 (gtss, tss): New globals.
273 (proceed): Clear the stepping state, set previous_inferior_ptid
274 and clear infwait state.
275 (init_wait_for_inferior): Clear the stepping state,
276 previous_inferior_ptid and infwait state.
277 (waiton_ptid, infwait_state): New, split from
278 execution_control_state.
279 (struct execution_control_state): Members that persist through
280 events moved out to either struct thred_stepping_state or made
281 global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
282 (wait_for_inferior, fetch_inferior_event): Use local
283 execution_control_state. Update to execution_control_state split.
284 (init_execution_control_state): Adjust.
285 (init_thread_stepping_state): New, extracted from
286 init_execution_control_state.
287 (context_switch): Take a ptid instead of an
288 execution_control_state.
289 (context_switch_to): Adjust.
290 (adjust_pc_after_break): Adjust.
291 (init_infwait_state): New.
292 (handle_inferior_event): Adjust.
294 2008-07-09 Pedro Alves <pedro@codesourcery.com>
295 Vladimir Prus <vladimir@codesourcery.com>
299 * gdbthread.h: Remove unneeded forward declarations.
300 Include "inferior.h".
301 (struct thread_info): Add continuations,
302 intermediate_continuations, proceed_to_finish, step_over_calls,
303 stop_step, step_multi and stop_signal members.
304 (save_infrun_state): Add continuations,
305 intermediate_continuations, proceed_to_finish, step_over_calls,
306 stop_step, step_multi, stop_signal and stop_bpstat parameters.
307 (load_infrun_state): Add continuations,
308 intermediate_continuations, proceed_to_finish, step_over_calls,
309 stop_step, step_multi, stop_signal and stop_bpstat parameters.
311 * thread.c (load_infrun_state): In non-stop mode, load
312 continuations, intermediate_continuations, proceed_to_finish,
313 step_over_calls, stop_step, step_multi and stop_signal.
314 (save_infrun_state): Store continuations,
315 intermediate_continuations, proceed_to_finish, step_over_calls,
316 stop_step, step_multi, stop_signal and stop_bpstat.
317 (save_infrun_state): Store continuations,
318 intermediate_continuations, proceed_to_finish, step_over_calls,
319 stop_step, step_multi, stop_signal and stop_bpstat.
320 (free_thread): Clear The thread's stop_bpstat.
322 * inferior.h (context_switch_to): Declare.
324 * infrun.c (ecss): New global.
325 (context_switch): Context switch continuations,
326 intermediate_continuations, proceed_to_finish, step_over_calls,
327 stop_step, step_multi, stop_signal and stop_bpstat.
328 (wait_for_inferior): Use global ecss.
329 (async_ecss, async_ecs): Delete.
330 (fetch_inferior_event): Use global ecss.
331 (context_switch_to): New.
333 * top.c (execute_command): In non-stop, only check if the current
334 thread is running, in all-stop, check if there's any thread
337 * breakpoint.c (bpstat_remove_breakpoint): New.
338 (bpstat_remove_breakpoint_callback): New.
339 (delete_breakpoint): Clear the stop_bpstats of all threads.
341 * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
342 current thread is running, in all-stop, check if there's any
345 * Makefile.in (gdbthread_h): Depend on $(inferior_h).
347 2008-07-09 Pedro Alves <pedro@codesourcery.com>
351 * inferior.h (non_stop): Declare.
352 * infrun.c (non_stop, non_stop_1): New.
353 (set_non_stop, show_non_stop): New.
354 (_initialize_infrun): Add "set/show non-stop" command.
356 2008-07-09 Pedro Alves <pedro@codesourcery.com>
358 Adjust fork/vfork/exec to pass ptids around.
360 * target.h (struct target_waitstatus): Store related_pid as a ptid.
361 (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
363 * breakpoint.h (struct breakpoint): Change forked_inferior_pid
365 * breakpoint.c (print_it_typical, bpstat_check_location)
366 (print_one_breakpoint_location, set_raw_breakpoint_without_location)
367 (create_fork_vfork_event_catchpoint): Adjust.
368 * infrun.c (fork_event): Change parent_pid and child_pid types to
370 (follow_exec, inferior_has_forked, inferior_has_vforked)
371 (inferior_has_execd): Take a ptid_t and don't trim it.
372 * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
373 * linux-nat.c (linux_child_follow_fork): Adjust.
374 * inf-ptrace.c (inf_ptrace_wait): Adjust.
375 * inf-ttrace.c (inf_ttrace_wait): Adjust.
376 * win32-nat.c (get_win32_debug_event): Don't set related_pid.
378 2008-07-09 Pedro Alves <pedro@codesourcery.com>
380 Add "executing" property to threads.
382 * inferior.h (target_executing): Delete.
383 * gdbthread.h (struct thread_info): Add executing_ field.
384 (set_executing, is_executing): New.
385 * thread.c (main_thread_executing): New.
386 (init_thread_list): Clear it and also main_thread_running.
387 (is_running): Return false if target has no execution.
388 (any_running, is_executing, set_executing): New.
390 * top.c: Include "gdbthread.h".
391 (target_executing): Delete.
392 (execute_command): Replace target_executing check by any_running.
393 * event-top.c: Include "gdbthread.h".
394 (display_gdb_prompt, command_handler): Replace target_executing by
396 * inf-loop.c: Include "gdbthread.h". Don't mark as not executing
397 here. Replace target_executing by is_running.
398 * infrun.c (handle_inferior_event): Mark all threads as
400 * linux-nat.c (linux_nat_resume): Don't mark thread as executing
402 * stack.c (get_selected_block): Return null if inferior is
404 * target.c (target_resume): Mark resumed ptid as executing.
405 * breakpoint.c (until_break_command): Replace target_executing
406 check by is_executing.
407 * remote.c (remote_async_resume): Don't mark inferior as executing
409 * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
412 * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
413 (mi_execute_async_cli_command): Replace target_executing by
416 * frame.c (get_current_frame): Error out if the current thread is
418 (has_stack_frames): New.
419 (get_selected_frame, deprecated_safe_get_selected_frame): Check
422 * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
425 2008-07-09 Pedro Alves <pedro@codesourcery.com>
427 * symfile.c (load_command): Reopen the exec file and reread
428 symbols before anything else.
430 2008-07-09 Pedro Alves <pedro@codesourcery.com>
432 * remote-sim.c: Include gdbthread.h.
433 (remote_sim_ptid): New global.
434 (gdbsim_create_inferior): Silently add the main task to GDB's
436 (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
437 task from GDB's thread list.
438 (gdbsim_resume): Adjust to use remote_sim_ptid.
439 (gdbsim_thread_alive, gdbsim_pid_to_str): New.
440 (init_gdbsim_ops): Register gdbsim_thread_alive and
442 (_initialize_remote_sim): Initialize remote_sim_ptid.
443 * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
445 2008-07-09 Pedro Alves <pedro@codesourcery.com>
447 * monitor (monitor_ptid): New global.
448 (monitor_open): Silently add the main task to GDB's thread list.
449 (monitor_close, monitor_mourn_inferior): Silently delete the main
450 task from GDB's thread list.
451 (monitor_thread_alive, monitor_pid_to_str): New.
452 (init_base_monitor_ops): Register monitor_thread_alive and
454 (_initialize_remote_monitors): Initialize monitor_ptid.
456 * gdbthread.h (delete_thread_silent): Declare.
457 * thread.c (delete_thread): Rename to ...
458 (delete_thread_1): ... this. Add "silent" parameter. If silent,
459 don't do exit notifications.
460 (delete_thread, delete_thread_silent): New, as wrappers to
463 2008-07-08 Pedro Alves <pedro@codesourcery.com>
465 * breakpoint.c (update_global_location_list): Add boolean
466 "should_insert" argument. Only insert locations if caller told it
468 (update_global_location_list_nothrow): Add boolean "should_insert"
469 argument. Pass it to update_global_location_list.
470 (insert_breakpoints, create_longjmp_breakpoint)
471 (create_overlay_event_breakpoint, enable_overlay_breakpoints)
472 (create_thread_event_breakpoint, create_solib_event_breakpoint)
473 (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
474 (enable_watchpoints_after_interactive_call_stop)
475 (set_momentary_breakpoint, create_breakpoints)
476 (break_command_really, watch_command_1)
477 (create_ada_exception_breakpoint, update_breakpoint_locations)
478 (do_enable_breakpoint, enable_command): Pass true to
479 update_global_location_list.
480 (bpstat_stop_status, disable_overlay_breakpoints)
481 (disable_watchpoints_before_interactive_call_start)
482 (delete_breakpoint, disable_breakpoint, disable_command): Pass
483 false to update_global_location_list.
484 (update_breakpoints_after_exec): Don't temporarily disable
485 always-inserted mode.
487 2008-07-08 Pedro Alves <pedro@codesourcery.com>
489 * breakpoint.c (mark_breakpoints_out): Make public.
490 (update_breakpoints_after_exec): Don't call mark_breakpoints_out
491 here. Update comment.
492 * breakpoint.h (mark_breakpoints_out): Declare.
494 * linux-nat.c (linux_handle_extended_wait): On
495 TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
496 * inf-ttrace.c (inf_ttrace_wait): Likewise.
498 2008-07-08 Pedro Alves <pedro@codesourcery.com>
500 * infrun.c (follow_exec): Reset shared libraries before adding the
503 2008-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
505 * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
507 2008-07-07 Pedro Alves <pedro@codesourcery.com>
509 * i386-dicos-tdep.c: Include "inferior.h".
510 (i386_dicos_frame_align): New.
511 (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call
512 dummy location ON_STACK.
513 * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
515 2008-07-07 Joel Brobecker <brobecker@adacore.com>
517 * gstdint.h: New file.
519 2008-07-05 Vladimir Prus <vladimir@codesourcery.com>
521 * mi/mi-interp.c (mi_on_resume): Don't try to report
522 resumed thread it the thread list is empty.
524 2008-07-05 Pierre Muller <muller@ics.u-strasbg.fr>
526 * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
527 completer for set to filename_completer.
531 2008-07-04 Vladimir Prus <vladimir@codesourcery.com>
533 Implement -target-attach.
534 * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
536 2008-06-21 Hui Zhu <teawater@gmail.com>
538 * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
540 2008-07-03 Pedro Alves <pedro@codesourcery.com>
542 * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
543 * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
545 * target.h (struct target_ops): Add to_attach_no_wait member.
546 (target_attach_no_wait): New.
547 * target.c (update_current_target): Inherit to_attach_no_wait.
549 * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
550 target_attach_no_wait runtime check.
552 * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
553 * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
556 2008-07-03 Pedro Alves <pedro@codesourcery.com>
558 * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
559 on debug_displaced being set.
561 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
563 * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
564 directly instead of get_frame_id.
566 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
568 * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
569 (deal_with_atomic_sequence): Update BC masks.
570 (rs6000_gdbarch_init): Init displaced stepping infra-structure.
571 Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
573 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
575 * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
576 register, not the previous frame's.
578 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
580 * source.c (select_source_symtab): Make sure we skip namespace
581 symtabs when showing cpp source code.
583 2008-06-30 Hans-Peter Nilsson <hp@axis.com>
585 * MAINTAINERS (Authorized committers): Fix my email address.
587 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
589 * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
590 -target-download and -target-select via CLI, so that
591 the quoting rules are the same as they were (unfortunately)
592 in all prior gdb releases.
593 * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
594 (mi_cmd_target_download, mi_cmd_target_select): Remove.
595 * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
596 (mi_cmd_target_download, mi_cmd_target_select): Remove.
597 (mi_cmd_execute): Set current_token even for commands
600 2008-06-28 Ulrich Weigand <uweigand@de.ibm.com>
602 * alphafbsd-tdep.c: Update for unwinder changes.
603 * alpha-linux-tdep.c: Likewise.
604 * alphanbsd-tdep.c: Likewise.
605 * alphaobsd-tdep.c: Likewise.
606 * avr-tdep.c: Likewise.
607 * cris-tdep.c: Likewise.
608 * frv-linux-tdep.c: Likewise.
609 * frv-tdep.c: Likewise.
610 * h8300-tdep.c: Likewise.
611 * hppa-linux-tdep.c: Likewise.
612 * iq2000-tdep.c: Likewise.
613 * m32c-tdep.c: Likewise.
614 * m32r-linux-tdep.c: Likewise.
615 * m32r-tdep.c: Likewise.
616 * m68hc11-tdep.c: Likewise.
617 * mep-tdep.c: Likewise.
618 * mn10300-tdep.c: Likewise.
619 * mt-tdep.c: Likewise.
620 * score-tdep.c: Likewise.
621 * sh64-tdep.c: Likewise.
622 * sh-tdep.c: Likewise.
623 * sparc64fbsd-tdep.c: Likewise.
624 * sparc64nbsd-tdep.c: Likewise.
625 * sparc64obsd-tdep.c: Likewise.
626 * v850-tdep.c: Likewise.
627 * vaxobsd-tdep.c: Likewise.
628 * vax-tdep.c: Likewise.
629 * xstormy16-tdep.c: Likewise.
631 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
633 * mi/mi-main.c (enum captured_mi_execute_command_actions)
634 (captured_mi_execute_command_args): Remove.
635 (captured_mi_execute_command): Cast the closure to mi_parse
636 pointer, not to captured_mi_execute_command_args, and don't
637 set the action field thereof.
638 (mi_execute_command): Pass struct mi_parse, not
639 captured_mi_execute_command_args to captured_mi_execute_command.
640 (mi_execute_command): Remove (dead) code for suppressing
643 2008-06-28 Pedro Alves <pedro@codesourcery.com>
645 * linux-nat.c (enum sigchld_state): New.
646 (linux_nat_async_events_state): Renamed from
647 linux_nat_async_events_enabled.
648 (linux_nat_event_pipe_push, my_waitpid): Adjust.
649 (sigchld_default_action): New.
650 (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
652 (linux_nat_create_inferior): Set events state to sigchld_default
654 (linux_nat_resume): Adjust.
655 (linux_nat_wait): Call linux_nat_async_events unconditionally.
656 (sigchld_handler): Adjust.
657 (linux_nat_async_mask): Don't set SIGCHLD actions here.
658 (get_pending_events): Adjust.
659 (linux_nat_async_events): Rewrite to handle enum sigchld_state
660 instead of a boolean.
661 (linux_nat_async): Adjust.
662 (_initialize_linux_nat): Capture default SIGCHLD action into
663 sigchld_default_action.
665 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
667 * breakpoint.c (moribund_locations): New.
668 (bpstat_stop_status): Process moribund locations.
669 (update_global_location_list): Add removed
670 locations to moribund_locations.
671 (breakpoint_retire_moribund): New.
672 * breakpoint.h (struct bp_location): New field
673 events_till_retirement.
674 (breakpoint_retire_moribund): Declare.
675 * thread.c (thread_count): New.
676 * infrun.c (handle_inferior_event): Call
677 breakpoint_retire_moribund.
678 * gdbthread.h (thread_count): Declare.
680 2008-06-27 Joseph Myers <joseph@codesourcery.com>
682 * dfp.c (decimal_convert): Call match_endianness before and after
685 2008-06-27 Jonathan Larmour <jifl@eCosCentric.com>
687 * remote.c (remote_insert_breakpoint): Ensure that if Z0
688 unsupported and we fall back to memory_insert_breakpoint, we
689 use the unmodified requested address.
691 2008-06-27 Joel Brobecker <brobecker@adacore.com>
693 * dwarf2read.c (read_attribute_value): Issue a complaint when
694 adjusting size attribute values of 0xffffffff as zero.
696 2008-06-27 Joseph Myers <joseph@codesourcery.com>
698 * i386-tdep.c (i386_16_byte_align_p): New.
699 (i386_push_dummy_call): Determine stack space required for
700 arguments going forwards allowing for 16-byte alignment, then push
701 arguments going forwards.
703 2008-06-27 Pedro Alves <pedro@codesourcery.com>
705 * infrun.c (start_remote): Don't clear thread list here.
706 * monitor.c (monitor_open): Include "gdbthread.h". Clear thread
708 * remote.c (record_currthread): Upgrade the main thread and its
709 entry in the thread list if this is the first time we hear about
711 (remote_thread_alive): Consider magic_null_ptid or a ptid without
712 a tid member always alive.
713 (remote_find_new_threads): Don't update the main thread here.
714 (remote_start_remote): Clear thread list here. Always add the
716 (extended_remote_attach_1): Add the main thread here.
717 (extended_remote_mourn_1): Re-add the main thread here.
718 (extended_remote_create_inferior_1): Add a main thread.
720 * Makefile.in (monitor.o): Depend on $(gdbthread_h).
722 2008-06-27 Pedro Alves <pedro@codesourcery.com>
724 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
726 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
728 (general_thread, continue_thread): Change type to ptid_t.
729 (record_currthread): Take a ptid_t parameter instead of an
731 (MAGIC_NULL_PID): Delete.
732 (set_thread): Take a ptid_t parameter and adjust.
733 (set_general_thread, set_continue_thread): New.
734 (remote_thread_alive, remote_newthread_step)
735 (remote_current_thread, remote_find_new_threads)
736 (remote_threads_info, remote_start_remote, remote_vcont_resume)
737 (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
738 (threadalive_test, remote_pid_to_str)
739 (remote_get_thread_local_address): Adjust.
740 (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
743 2008-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
745 * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
746 * configure: Regenerated.
748 2008-06-26 Joel Brobecker <brobecker@adacore.com>
750 * dwarf2read.c (read_attribute_value): Treat size attribute
751 values of 0xffffffff as if the attribute value was zero.
753 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
755 * linux-nat.c: Add description of overall logic.
757 2008-06-26 Daniel Jacobowitz <dan@codesourcery.com>
759 * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
760 (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
761 all dependencies on $(gdb_stdint_h).
762 (distclean): Do not delete gdb_stdint.h.
763 * acinclude.m4: Do not use stdint.m4.
764 * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
765 uintptr_t, and gdb_stdint.h.
766 * defs.h: Include <stdint.h>.
767 * gdb_thread_db.h: Assume stdint.h is already included.
768 * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
769 rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
770 include gdb_stdint.h.
771 * configure, config.in: Regenerate.
773 2008-06-26 Joseph Myers <joseph@codesourcery.com>
775 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
776 decimal floating-point values in GPRs for soft-float.
777 (do_ppc_sysv_return_value): Handle returning decimal
778 floating-point values in GPRs for soft-float.
780 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
782 * target.c (target_read_until_error): New.
783 * target.h (target_read_until_error): Declare.
784 * mi/mi-main.c (mi_cmd_data_read_memory): Use
785 target_read_until_error.
787 2008-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
789 Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
790 * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
791 after the DECFLOAT detection to fix a memory leak. Remove the
792 redundant NUM initialization. Protect the DECFLOAT detection memory
793 access before the P block. Restore the P memory content for the
796 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
798 Kill the return value for all MI command functions.
799 * mi/mi-cmds.h (enum mi_cmd_result): Remove.
800 (mi_cmd_argv_ftype): Change return type to void.
802 * mi/mi-main.c: Adjust all function that implement
803 MI commands to return nothing.
804 (struct captured_mi_execute_command_actions):
806 (mi_cmd_execute): Return nothing.
807 (mi_execute_async_cli_command): Return nothing.
808 (mi_cmd_exec_interrupt): Don't print ^done here.
809 (mi_cmd_target_select): Don't print ^connected here.
810 (captured_mi_execute_command): Don't check for MI_CMD_DONE.
811 Special-case -target-select and output ^connected, not ^done.
813 * mi/mi-cmd-break.c: Adjust.
814 * mi/mi-cmd-disas.c: Adjust.
815 * mi/mi-cmd-env.c: Adjust.
816 * mi/mi-cmd-file.c: Adjust.
817 * mi/mi-cmd-stack.c: Adjust.
818 * mi/mi-cmd-target.c: Adjust.
819 * mi/mi-cmd-var.c: Adjust.
820 * mi/mi-interp.c: Adjust.
821 * mi/mi-symbol-cmds.c: Adjust.
823 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
825 Emit ^running via observer.
826 * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
828 (mi_on_resume): Print ^running if not previously output.
829 * mi/mi-main.c (running_result_record_printed): New.
830 (captured_mi_execute_command): Reset
831 running_result_record_printed. Use running_result_record_printed
832 to decide if we should skip ^done.
833 (mi_execute_async_cli_command): Don't print ^running here.
834 * mi/mi-main.h (current_token, running_result_record_printed):
837 2008-06-24 Michael Snyder <msnyder@specifix.com>
839 * infrun.c (_initialize_infrun): White space and typo fix.
841 2008-06-23 Christopher Faylor <me.gdb.changelog@cgf.cx>
843 * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
844 (do_initial_win32_stuff): Fix problem with inability to set breakpoints
845 when first loading DLL with "dll" command.
847 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
849 * gnu-nat.c (proc_string): Use capital T for "Thread".
851 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
853 * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
855 2008-06-18 Joel Brobecker <brobecker@adacore.com>
857 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
858 the target cannot run.
860 2008-06-18 Joel Brobecker <brobecker@adacore.com>
862 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
863 we're attaching to a running process.
865 2008-06-18 Pierre Muller <muller@ics.u-strasbg.fr>
867 * win32-nat.c (handle_load_dll): Give dll name and load address
868 if debug_events is on.
869 (handle_unload_dll): Likewise.
871 2008-06-14 Vladimir Prus <vladimir@codesourcery.com>
873 Don't suppress *running when doing finish.
874 * infcall.c (call_function_by_hand): Set both
875 suppress_resume_observer and suppress_stop_observer.
876 * infcmd.c (suppress_run_stop_observers): Split into...
877 (suppress_resume_observer, suppress_stop_observer): ...those.
878 (finish_command_continuation): Clear suppress_stop_observer.
879 (finish_command): Set suppress_stop_observer.
880 * inferior.h (suppress_run_stop_observers): Split into...
881 (suppress_resume_observer, suppress_stop_observer): ...those.
882 * infrun.c (normal_stop): Check for suppress_stop_observer.
883 * thread.c (set_running): Check for suppress_resume_observer.
885 2008-06-12 Pedro Alves <pedro_alves@portugalmail.pt>
886 Pierre Muller <muller@ics.u-strasbg.fr>
888 * gdbarch.sh (gdbarch_skip_main_prologue): New.
889 * gdbarch.h, gdbarch.c: Regenerate.
890 * i386-tdep.h (i386_skip_main_prologue): Declare.
891 * i386-tdep.c (i386_skip_main_prologue): New.
892 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
893 i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
894 * symtab.c (find_function_start_sal): When pc points at the "main"
895 function, call gdbarch_skip_main_prologue.
897 2008-06-11 Daniel Jacobowitz <dan@codesourcery.com>
899 * value.c (value_primitive_field): Fetch lazy register values.
901 2008-06-11 Pedro Alves <pedro@codesourcery.com>
903 * NEWS: Mention support removal of undocumented S AA p PID stop
906 * remote.c (remote_wait): Remove undocumented S AA p PID support.
908 2008-06-10 Stan Shebs <stan@codesourcery.com>
910 * MAINTAINERS: Update my affiliation and address.
912 2008-06-10 Andreas Schwab <schwab@suse.de>
914 * top.c (print_gdb_version): Don't print final newline.
916 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
919 * Makefile.in: Update dependencies.
920 * gdbthread.h (struct thread_info): New field
922 (set_running, is_running): New.
923 * thread.c (set_running, is_running): New.
924 * inferior.h (suppress_normal_stop_observer): Rename to...
925 (suppress_run_stop_observers): ..this.
926 * infcmd.c (suppress_normal_stop_observer): Rename to...
927 (suppress_run_stop_observers): ..this.
928 (finish_command_continuation, finish_command): Adjust.
929 * infcall.c (call_function_by_hand): Adjust.
930 * infrun.c (normal_stop): Call set_running.
931 * target.c (target_resume): New. Call set_running.
932 * target.h (target_resume): Convert from macro to
935 * mi/mi-interp.c (mi_on_resume): New.
936 (mi_interpreter_init): Register mi_on_resume.
938 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
940 Use observers to report stop events in MI.
941 * mi/mi-interp.c (mi_on_normal_stop): New.
942 (mi_interpreter_init): Register mi_on_normal_stop.
943 (mi_interpreter_exec_continuation): Remove.
944 (mi_cmd_interpreter_exec): Don't register the above.
945 * mi/mi-main.c (captured_mi_execute_command): Don't care
946 about sync_execution.
947 (mi_execute_async_cli_command): Don't install continuation. Don't
949 (mi_exec_async_cli_cmd_continuation): Remove.
951 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
953 Suppress normal stop observer when it's problematic.
954 * inferior.h (suppress_normal_stop_observer): New.
955 * infcall.c (call_function_by_hand): Disable stop events when
956 doing function calls.
957 * infmcd.c (suppress_normal_stop_observer): New.
958 (finish_command_continuation): Call normal_stop observer
960 (finish_command): Disable stop events inside proceed.
961 * infrun.c (normal_stop): Don't call normal stop observer if
962 suppressed of if multi-step is in progress.
964 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
967 * infrun.c (finish_command): Don't pass cleanup
969 (finish_command_continuation): Don't grab cleanup from
970 the passed data, as we don't use, and cannot, use it anyway.
972 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
974 Introduce common cleanup for restoring integers.
975 * defs.h (make_cleanup_restore_integer): New declaration.
976 (struct cleanup): New field free_arg.
977 (make_my_cleanup_2): New.
978 * utils.c (restore_integer_closure, restore_integer)
979 (make_cleanup_restore_integer): New.
980 (make_my_cleanup): Initialize the free_arg field and
981 renamed to make_my_cleanup_2.
982 (do_my_cleanups): Call free_arg.
983 (discard_cleanups): Call free_arg.
984 * breakpoint.c (restore_always_inserted_mode): Remove.
985 (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
987 2008-06-09 Doug Evans <dje@google.com>
989 * remote.c (remote_wait): Include beginning of malformed packet
992 2008-06-09 Tom Tromey <tromey@redhat.com>
994 * completer.c (complete_line): Don't special-case
995 expression_completer.
996 (expression_completer): Only pass last word to
998 * c-exp.y (yylex): Check 'token', not 'operator'.
1000 2008-06-09 Daniel Jacobowitz <dan@codesourcery.com>
1002 * configure.ac (build_warnings): Add -Wno-format for mingw.
1003 * configure: Regenerated.
1005 2008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
1007 * NEWS: Make indentation consistent. Move exec tracing entry out
1008 of remote packet list.
1010 2008-06-06 Tom Tromey <tromey@redhat.com>
1012 * value.h (evaluate_subexpression_type, extract_field_op):
1014 * printcmd.c (_initialize_printcmd): Use expression_completer for
1015 'p', 'inspect', 'call'.
1016 * parser-defs.h (parse_field_expression): Declare.
1017 * parse.c: Include exceptions.h.
1018 (in_parse_field, expout_last_struct): New globals.
1019 (mark_struct_expression): New function.
1020 (prefixify_expression): Return int.
1021 (prefixify_subexp): Return int. Use expout_last_struct.
1022 (parse_exp_1): Update.
1023 (parse_exp_in_context): Add 'out_subexp' argument. Handle
1025 (parse_field_expression): New function.
1026 * expression.h (parse_field_expression): Declare.
1027 (in_parse_field): Likewise.
1028 * eval.c (evaluate_subexpression_type): New function.
1029 (extract_field_op): Likewise.
1030 * completer.h (expression_completer): Declare.
1031 * completer.c (expression_completer): New function.
1032 (count_struct_fields, add_struct_fields): New functions.
1033 * c-exp.y (yyparse): Redefine.
1034 (COMPLETE): New token.
1035 (exp): New productions.
1036 (saw_name_at_eof, last_was_structop): New globals.
1037 (yylex): Return COMPLETE when needed. Recognize in_parse_field.
1038 (c_parse): New function.
1039 * breakpoint.c (_initialize_breakpoint): Use expression_completer
1040 for watch, awatch, and rwatch.
1041 * Makefile.in (parse.o): Depend on exceptions_h.
1043 2008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
1046 * gdb/valopts.c (find_overload_match): Handle references
1049 2008-06-06 Paul N. Hilfinger <hilfinger@adacore.com>
1051 * ada-lang.c (ada_value_assign): Correct big-endian case to take into
1052 account the bitsize of the 'from' operand.
1054 2008-06-06 Pedro Alves <pedro@codesourcery.com>
1056 * annotate.h (annotate_thread_changed): Declare.
1058 2008-06-06 Nick Roberts <nickrob@snap.net.nz>
1060 * annotate.c (annotate_thread_changed): New function.
1061 * thread.c (thread_command) : Use it.
1062 * infrun.c (normal_stop): Use it.
1064 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
1065 Nathan Sidwell <nathan@codesourcery.com>
1066 Joseph Myers <joseph@codesourcery.com>
1068 * acinclude.m4: Include ../config/acx.m4.
1069 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
1070 * configure, config.in: Regenerate.
1071 * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
1073 * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
1075 2008-06-05 Pedro Alves <pedro@codesourcery.com>
1077 Replace 'target async' by 'maintenance set remote-async' and
1078 'target remote' combination.
1080 * remote.c (remote_async_wait): Merge into remote_wait, and
1082 (remote_async_permitted, remote_async_permitted_set): New
1084 (set_maintenance_remote_async_permitted)
1085 (show_maintenance_remote_async_permitted): New functions.
1086 (remote_async_ops, extended_async_remote_ops): Delete.
1087 (remote_async_open, extended_remote_async_open): Delete.
1088 (remote_open_1): Drop async_p parameter. Update callers. Replace
1089 async_p with remote_async_permitted checks.
1090 (extended_async_remote_attach): Delete.
1091 (remote_resume, remote_async_resume): Merge and leave remote_resume.
1092 (remote_async_terminal_inferior): Rename to...
1093 (remote_terminal_inferior): ... this, and add
1094 remote_async_termitted check.
1095 (remote_async_terminal_ours): Rename to...
1096 (remote_terminal_ours): ... this, and add remote_async_termitted
1098 (remote_wait, remote_async_wait): Merge and leave remote_wait
1100 (remote_kill, remote_async_kill): Merge and leave remote_kill
1102 (remote_async_mourn, extended_async_remote_mourn): Delete.
1103 (extended_remote_create_inferior_1): Drop async_p parameter.
1104 Update callers. Always use extended_remote_ops.
1105 (extended_remote_async_create_inferior): Delete.
1106 (remote_return_zero): Delete.
1107 (init_remote_ops): Register remote_can_async_p, remote_async,
1108 remote_async_mask, remote_terminal_inferior and
1109 remote_terminal_ours.
1110 (remote_can_async_p, remote_is_async_p): Check for
1111 remote_async_permitted.
1112 (init_remote_async_ops, init_extended_async_remote_ops): Remove.
1113 (set_remote_cmd): Don't add async and extended-async targets.
1114 (_initialize_remote): Add set/show remote-async maintenance
1117 2008-06-05 Pedro Alves <pedro@codesourcery.com>
1119 * remote.c (kill_kludge): Delete.
1120 (remote_wait, remote_async_wait): Don't set it.
1121 (remote_kill, remote_async_kill): Don't do anything with it.
1123 2008-06-05 Pedro Alves <pedro@codesourcery.com>
1125 * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
1127 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
1129 * bcache.c (bcache_data): Call deprecated_bcache_added function.
1130 (deprecated_bcache_added): New function name. Body of function
1131 bcache_data is used here with the addition of 'added' argument.
1132 * bcache.h (deprecated_bcache_added): New function.
1133 * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
1134 work from add_psymbol_to_list - initialises partial symbol and stashes
1135 it in objfile's cache.
1136 (append_psymbol_to_list): New helper function, takes other part of
1137 work from add_psymbol_to_list - adds partial symbol to the given list.
1138 (add_psymbol_to_list): Call helper functions instead of doing work
1139 here. If adding to global list, do not duplicate partial symbols in the
1142 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
1144 * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
1145 'exception caught|thrown' message.
1147 2008-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1149 * Makefile.in: Update dependencies.
1150 * dwarf2expr.c: New include "gdb_assert.h".
1151 (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
1152 (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
1153 (execute_stack_op): Error out on too large RECURSION_DEPTH.
1154 Increase/decrease RECURSION_DEPTH around the function.
1156 2008-06-05 Daniel Jacobowitz <dan@codesourcery.com>
1158 * remote.c (get_offsets): Handle a single segment.
1159 * symfile.c (symfile_map_offsets_to_segments): Allow more bases
1162 2008-06-03 Daniel Jacobowitz <dan@codesourcery.com>
1164 * solib-svr4.c (struct lm_info): Add lm_addr.
1165 (main_lm_addr): New.
1166 (svr4_default_sos): Set lm_addr.
1167 (svr4_current_sos): Set lm_addr and main_lm_addr.
1168 (svr4_fetch_objfile_link_map): Rewrite.
1169 (svr4_clear_solib): Clear main_lm_addr.
1171 2008-06-03 Michael Snyder <msnyder@redhat.com>
1172 Joseph Myers <joseph@codesourcery.com>
1174 * mips-tdep.c (mips_eabi_return_value): Replace stub that always
1175 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
1177 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
1179 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
1181 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
1183 * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
1185 2008-06-01 Joel Brobecker <brobecker@adacore.com>
1187 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
1188 treat pointers in data space as function descriptors if the
1189 target address is also in the data space.
1191 2008-05-30 Joel Brobecker <brobecker@adacore.com>
1193 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
1194 the trad-frame register value for the SP register.
1196 2008-05-29 Mark Kettenis <kettenis@gnu.org>
1198 * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
1200 2008-05-28 Joel Brobecker <brobecker@adacore.com>
1202 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
1203 that identifies function descriptors outside of the .opd section.
1205 2008-05-28 Aleksandar Ristovski <aristovski@qnx.com>
1207 * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
1208 temporary catchpoints. In MI add missing fields 'reason', 'disp',
1210 (print_mention_exception_catchpoint): Add 'Temporary' for temporary
1212 (handle_gnu_v3_exceptions): Use tempflag.
1214 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
1216 Refactor varobj_update interface.
1217 * varobj.c (varobj_update): Report changes as vector. Also
1218 return not just a list of varobj, but a list of special structures
1219 that tell what exactly has changed.
1220 * varobj.h (enum varobj_update_error): Rename to
1221 varobj_scope_status.
1222 (struct varobj_update_result_t): New.
1223 (varobj_update): Adjust prototype.
1224 * mi/mi-cmd-var.c: Adjust for changes.
1226 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
1228 * varobj.c (varobj_update): Fix comment typo.
1231 2008-05-26 Joel Brobecker <brobecker@adacore.com>
1233 Set the symtab field of symbols read from ECOFF debugging entries.
1234 * mdebugread.c (add_symbol): Add new parameter symtab.
1235 (parse_symbol): Update calls to add_symbol throughout.
1237 2008-05-27 Andreas Schwab <schwab@suse.de>
1239 * symtab.h (enum address_class): Remove LOC_REGPARM and
1241 (struct symbol): Add is_argument.
1242 (SYMBOL_IS_ARGUMENT): Define.
1244 * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
1245 * buildsym.c (finish_block): Likewise.
1246 * stack.c (print_frame_args, print_block_frame_locals)
1247 (print_frame_arg_vars): Likewise.
1248 * symtab.c (lookup_block_symbol): Likewise.
1249 * tracepoint.c (add_local_symbols): Likewise.
1250 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
1252 * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
1253 * dwarf2read.c (new_symbol): Likewise.
1254 * mdebugread.c (parse_symbol): Likewise.
1255 * stabsread.c (define_symbol): Likewise.
1257 * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
1258 and LOC_COMPUTED_ARG.
1259 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
1260 * ax-gdb.c (gen_var_ref): Likewise.
1261 * eval.c (evaluate_subexp_for_address): Likewise.
1262 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
1263 * m2-exp.y (yylex): Likewise.
1264 * printcmd.c (address_info): Likewise.
1265 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
1266 * tracepoint.c (collect_symbol, scope_info): Likewise.
1268 2008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1270 * gdbarch.sh: Added new gdbarch struct
1271 core_regset_sections.
1272 * gdbarch.c: Refreshed.
1273 * gdbarch.h: Refreshed.
1274 * regset.h (core_regset_section): Declared.
1275 * linux-nat.c (linux_nat_do_thread_registers): Added
1276 support for the new gdbarch struct core_regset_sections.
1277 * utils.c (host_address_to_string): New function.
1278 * defs.h (host_address_to_string): New prototype.
1279 * i386-linux-tdep.c (i386_regset_rections): New register
1280 sections list for i386.
1281 (i386_linux_init_abi): Initialized new gdbarch struct
1282 core_regset_sections.
1283 * Makefile.in: Updated to reflect dependency changes.
1284 * ppc-linux-tdep.c (ppc_regset_sections): Register
1285 sections list for ppc.
1286 (ppc_linux_init_abi): Initialized new gdbarch struct
1287 core_regset_sections
1289 2008-05-24 Andreas Schwab <schwab@suse.de>
1291 * linespec.c (decode_objc): Save current language around call to
1294 2008-05-23 Joel Brobecker <brobecker@adacore.com>
1296 * valprint.h (get_array_bounds): Renames get_array_low_bound.
1297 * valprint.c (get_array_bounds): Renames get_array_low_bound.
1298 Return the proper bound value if the array index type is an
1299 enumerated type. Compute the high bound if requested.
1300 (val_print_array_elements): Handle the case when the array
1301 element has a null size.
1302 * ada-valprint.c (print_optional_low_bound): Add handling
1303 for empty arrays or arrays of zero-size elements.
1304 (ada_val_print_array): New function, extracted out from
1305 ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
1306 handle empty arrays and arrays of zero-size elements.
1307 (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
1308 code by call to ada_val_print_array.
1309 (ada_value_print): Remove handling of null array. The handling
1310 was incomplete and is now better handled by ada_val_print_array.
1312 2008-05-23 Markus Deuling <deuling@de.ibm.com>
1314 * annotate.c (annotate_source, annotate_frame_begin): Replace
1315 deprecated_print_address_numeric with paddress.
1316 * cli/cli-cmds.c (list_command, edit_command): Likewise.
1317 * tui/tui-stack.c (tui_make_status_line): Likewise.
1319 * defs.h (deprecated_print_address_numeric): Remove.
1320 * printcmd.c (deprecated_print_address_numeric): Remove.
1321 * maint.c (maint_print_section_info): Fix comment.
1323 2008-05-23 Markus Deuling <deuling@de.ibm.com>
1325 * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
1326 print_binary_chars, print_char_chars): Add byte_order parameter and
1327 replace gdbarch_byte_order.
1328 (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
1329 expressions and remove them. Remove unused TWO_TO_FOURTH.
1330 (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
1331 endianness. Update call to print_hex_chars.
1332 * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
1333 print_binary_chars, print_char_chars): Add byte_order parameter.
1334 * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
1335 get at the endianness. Update print_*_char calls to use byte_order.
1337 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
1339 * symtab.h (struct symbol): Make "aux_value" member a void pointer
1341 (SYMBOL_LOCATION_BATON): Update.
1343 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
1345 * symtab.h (enum address_class): Remove LOC_BASEREG and
1347 (struct symbol): Remove "basereg" member of "aux_value" union.
1348 (SYMBOL_BASEREG): Remove.
1350 * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
1352 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
1353 (ada_add_block_symbols): Likewise.
1354 * ax-gdb.c (gen_var_ref): Likewise.
1355 * buildsym.c (finish_block): Likewise.
1356 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
1357 * m2-exp.y (yylex): Likewise.
1358 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
1359 * printcmd.c (address_info): Likewise.
1360 * stack.c (print_frame_args, print_block_frame_locals): Likewise.
1361 (print_frame_arg_vars): Likewise.
1362 * symmisc.c (print_symbol): Likewise.
1363 * symtab.c (lookup_block_symbol): Likewise.
1364 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
1365 (scope_info): Likewise.
1367 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
1369 * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
1371 * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
1372 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
1373 (ada_add_block_symbols): Likewise.
1374 * ax-gdb.c (gen_var_ref): Likewise.
1375 * buildsyms.c (finish_block): Likewise.
1376 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
1377 * m2-exp.y (yylex): Likewise.
1378 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
1379 * printcmd.c (address_info): Likewise.
1380 * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
1381 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
1382 * symtab.c (lookup_block_symbol): Likewise.
1383 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
1384 (scope_info): Likewise.
1386 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
1388 * symtab.h (enum address_class): Remove LOC_INDIRECT and
1389 LOC_HP_THREAD_LOCAL_STATIC.
1391 * findvar.c (symbol_read_needs_frame, read_var_value): Do not
1392 handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
1393 (read_var_value): Likewise.
1394 * buildsym.c (finish_block): Likewise.
1395 * objfiles.c (objfile_relocate): Likewise.
1396 * printcmd.c (address_info): Likewise.
1397 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
1398 * tracepoint.c (scope_info): Likewise.
1400 2008-05-21 Markus Deuling <deuling@de.ibm.com>
1401 Maxim Grigoriev <maxim2405@gmail.com>
1403 * xtensa-tdep.c (xtensa_read_register): Remove.
1404 (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
1405 argument litbase to call0_frame_cache().
1406 (call0_track_op, call0_analyze_prologue)
1407 (call0_frame_cache): Use extra argument litbase.
1409 2008-05-21 Joel Brobecker <brobecker@adacore.com>
1411 * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
1413 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
1415 * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
1417 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
1419 * alpha-mdebug-tdep.c: Include "trad-frame.h".
1420 (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
1421 struct trad_frame_saved_reg *.
1422 (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
1423 trad_frame_alloc_saved_regs. Update accesses. Record previous
1424 value of SP as being vfp.
1425 (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
1426 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
1428 2008-05-21 Markus Deuling <deuling@de.ibm.com>
1430 * score-tdep.c (score_print_insn): Get the current endianess from
1431 disassemble_info instead of gdbarch_byte_order.
1433 2008-05-21 Pedro Alves <pedro@codesourcery.com>
1435 * frame.c (get_prev_frame_1): Build frame id before setting
1436 this_frame->prev_p, not after.
1438 2008-05-21 Nick Roberts <nickrob@snap.net.nz>
1440 * annotate.c (annotate_new_thread): New function for new-thread
1442 * annotate.h: (annotate_new_thread): New extern.
1443 * thread.c (add_thread_with_info): Use it.
1444 * Makefile.in (thread.o): Add dependency on annotate.h.
1446 2008-05-20 Joel Brobecker <brobecker@adacore.com>
1448 * win32-nat.c (win32_wait): Block the control-c event while
1449 waiting for a debug event.
1451 2008-05-19 Pedro Alves <pedro@codesourcery.com>
1453 * symtab.h (lookup_symbol_in_language): Update comment.
1454 * symtab.c (lookup_symbol_aux_block): Update comment.
1455 * ada-lang.c (ada_lookup_symbol_list): Update comment.
1457 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
1459 * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
1460 (lookup_symbol): Likewise.
1461 * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
1462 (lookup_symbol): Likewise.
1463 (search_symbols): Update.
1465 * linespec.c (find_methods, collect_methods): Update.
1466 (add_matching_methods, add_constructors): Update.
1467 (decode_compound, decode_dollar, decode_variable): Update.
1468 (lookup_prefix_sym): Update.
1470 (symbol_found): Remove SYM_SYMTAB parameter.
1471 Use SYMBOL_SYMTAB (sym) instead.
1473 * gdbtypes.c (lookup_typename): Update.
1474 (lookup_struct, lookup_union, lookup_enum): Update.
1475 (lookup_template_type): Update.
1476 (check_typedef): Update.
1477 * language.c (lang_bool_type): Update.
1478 * mdebugread.c (parse_procedure): Update.
1479 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1480 * parse.c (write_dollar_variable): Update.
1481 * printcmd.c (address_info): Update.
1482 * source.c (select_source_symtab): Update.
1483 * stack.c (print_frame_args, print_frame_arg_vars): Update.
1484 * valops.c (find_function_in_inferior): Update.
1485 (value_struct_elt_for_reference): Update.
1486 * value.c (value_static_field, value_fn_field): Update.
1488 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1489 * arm-tdep.c (arm_skip_prologue): Update.
1490 * mt-tdep.c (mt_skip_prologue): Update.
1491 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
1493 * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
1494 * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
1495 (add_defn_to_vec): Likewise.
1496 (ada_add_block_symbols): Likewise.
1497 (lookup_cached_symbol, cache_symbol): Likewise.
1498 (standard_lookup): Update.
1499 (ada_lookup_symbol_list): Update.
1501 * c-valprint.c (c_val_print): Update.
1502 * cp-support.c (cp_lookup_rtti_type): Update.
1503 * jv-lang.c (java_lookup_class, get_java_object_type): Update.
1504 * objc-lang.c (lookup_struct_typedef, find_imps): Update.
1505 * p-valprint.c (pascal_val_print): Update.
1506 * scm-lang.c (scm_lookup_name): Update.
1512 * objc-exp.y: Update.
1515 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
1517 * language.h (struct language_defn): Remove SYMTAB parameter from
1518 la_lookup_symbol_nonlocal callback function pointer.
1520 * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
1521 (ada_lookup_encoded_symbol): Likewise.
1522 * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
1523 Always call fixup_symbol_section.
1524 (ada_lookup_symbol): Remove SYMTAB parameter.
1525 (ada_lookup_symbol_nonlocal): Likewise.
1526 * ada-exp.y (write_object_renaming): Update.
1527 (find_primitive_type): Likewise.
1529 * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
1530 (cp_lookup_symbol_namespace): Likewise.
1531 * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
1532 (lookup_symbol_file): Likewise.
1533 (lookup_possible_namespace_symbol): Likewise.
1534 (cp_lookup_symbol_nonlocal): Likewise.
1535 (cp_lookup_symbol_namespace): Likewise.
1536 (cp_lookup_nested_type): Update.
1538 * scm-valprint.c (scm_inferior_print): Update.
1539 * valops.c (value_maybe_namespace_elt): Update.
1541 * solist.h (struct target_so_ops): Remove SYMTAB parameter from
1542 lookup_lib_global_symbol callback function pointer.
1543 (solib_global_lookup): Remove SYMTAB parameter.
1544 * solib.c (solib_global_lookup): Remove SYMTAB parameter.
1545 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
1547 * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
1548 (lookup_symbol_static): Likewise.
1549 (lookup_symbol_global): Likewise.
1550 (lookup_symbol_aux_block): Likewise.
1551 (lookup_global_symbol_from_objfile): Likewise.
1552 * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
1553 (lookup_symbol_aux_local): Likewise.
1554 (lookup_symbol_aux_block): Likewise.
1555 (lookup_symbol_aux_symtabs): Likewise.
1556 (lookup_symbol_aux_psymtabs): Likewise.
1557 (lookup_global_symbol_from_objfile): Likewise.
1558 (basic_lookup_symbol_nonlocal): Likewise.
1559 (lookup_symbol_static): Likewise.
1560 (lookup_symbol_global): Likewise.
1562 (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
1564 2008-05-17 Pedro Alves <pedro@codesourcery.com>
1566 * remote.c (init_extended_remote_ops): Fix typo.
1568 2008-05-16 Pedro Alves <pedro@codesourcery.com>
1570 * NEWS: Mention new DICOS x86 target configuration.
1572 2008-05-16 Pedro Alves <pedro@codesourcery.com>
1573 Ulrich Weigand <uweigand@de.ibm.com>
1575 * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
1576 * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
1578 * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
1579 use it instead of ginfo->value.address. Look up minimal symbol by
1580 address and name. Assume OBJFILE is non-NULL.
1581 (fixup_symbol_section): Ensure we always have an objfile to look
1582 into. Extract and pass to fixup_section the symbol's address that
1583 will match the minimal symbol's address.
1584 (fixup_psymbol_section): Likewise.
1586 (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
1587 overlays and the addrmap returned the wrong section.
1589 * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
1590 calling fixup_symbol_section.
1592 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
1594 * minsyms.c: Include "target.h".
1595 (find_solib_trampoline_target): Handle minimal symbols pointing
1596 to function descriptors as well.
1597 * Makefile.in (minsyms.o): Update dependencies.
1599 * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
1600 (ppc64_standard_linkage1): ... this. Fix optional instructions.
1601 (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
1602 (PPC64_STANDARD_LINKAGE1_LEN): ... this.
1603 (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
1604 (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
1605 (ppc64_standard_linkage_target): Rename to ...
1606 (ppc64_standard_linkage1_target): ... this.
1607 (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
1608 (ppc64_skip_trampoline_code): Support three variants of standard
1609 linkage stubs. Call find_solib_trampoline_target to handle
1612 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
1614 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
1615 ppc64_sysv_abi_adjust_breakpoint_address.
1616 * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
1617 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
1619 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
1621 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
1622 (ppc_linux_init_abi): Install find_solib_trampoline_target instead
1623 of ppc_linux_skip_trampoline_code.
1625 2008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
1627 * gdbarch.sh: Delete dwarf_reg_to_regnum.
1628 * gdbarch.c, gdbarch.h: Regenerated.
1629 * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
1630 hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
1631 s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
1633 2008-05-15 Pedro Alves <pedro@codesourcery.com>
1635 * linux-nat.c (trap_ptid): Delete.
1636 (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
1638 * linux-thread-db.c (thread_db_wait): Adjust.
1640 2008-05-15 Joel Brobecker <brobecker@adacore.com>
1642 * linespec.c (decode_line_1): Fix a couple of comments.
1644 2008-05-15 Alan Modra <amodra@bigpond.net.au>
1646 * dbxread.c: Formatting.
1647 (INTERNALIZE_SYMBOL): Init n_other.
1648 (set_namestring): Take pointer to nlist arg rather than struct
1649 copy. Update all callers.
1651 2008-05-15 Andreas Schwab <schwab@suse.de>
1653 * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
1654 (dwarf2read.o): Add $(addrmap_h).
1656 2008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
1658 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
1659 (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
1660 to handle ppc32 PLT entries.
1661 (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
1664 2008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
1666 * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
1667 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
1668 lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
1669 (lookup_minimal_symbol_by_pc_section): Use
1670 lookup_minimal_symbol_by_pc_section_1.
1671 (lookup_solib_trampoline_symbol_by_pc): Likewise.
1673 2008-05-13 Joel Brobecker <brobecker@adacore.com>
1675 * findcmd.c: Add #include "gdb_stdint.h".
1676 * Makefile.in (findcmd.o): Update dependencies.
1678 2008-05-11 David S. Miller <davem@davemloft.net>
1680 * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
1681 long double size override, Linux does use 128-bit now.
1683 * sparc-linux-tdep.c (PSR_SYSCALL): Define.
1684 (sparc_linux_write_pc): New function.
1685 (sparc32_linux_init_abi): Register it.
1686 * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
1687 (sparc64_linux_write_pc): New function.
1688 (sparc64_linux_init_abi): Register it.
1690 * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
1691 dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
1693 2008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
1695 * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
1696 and info.tdep_info before calling gdbarch_init_osabi.
1698 2008-05-09 Joel Brobecker <brobecker@adacore.com>
1700 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
1701 the type of the right hand side of the assignment to the type
1702 of the left hand side if the left hand side is a convenience
1705 2008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
1707 * NEWS: Mention gdbserver bi-arch capability.
1709 2008-05-09 Doug Evans <dje@google.com>
1712 * NEWS: Document find command and qSearch:memory packet.
1713 * Makefile.in (SFILES): Add findcmd.c.
1714 (COMMON_OBJS): Add findcmd.o.
1715 (findcmd.o): New rule.
1716 * findcmd.c: New file.
1717 * target.h (target_ops): New member to_search_memory.
1718 (simple_search_memory): Declare.
1719 (target_search_memory): Declare.
1720 * target.c (simple_search_memory): New fn.
1721 (target_search_memory): New fn.
1722 * remote.c (PACKET_qSearch_memory): New packet kind.
1723 (remote_search_memory): New fn.
1724 (init_remote_ops): Init to_search_memory.
1725 (init_extended_remote_ops): Ditto.
1726 (_initialize_remote): Add qSearch:memory packet config command.
1728 2008-05-09 Eli Zaretskii <eliz@gnu.org>
1730 * thread.c (_initialize_thread): Don't use commas and periods in
1731 first line of doc string of "set/show print thread-events".
1733 2008-05-08 Joel Brobecker <brobecker@adacore.com>
1735 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
1736 Update for unwinder changes.
1738 2008-05-08 Joel Brobecker <brobecker@adacore.com>
1740 * frame.c (get_frame_base_address, get_frame_locals_address)
1741 (get_frame_args_address): Pass the correct frame when calling
1742 frame_base_find_by_frame.
1744 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
1746 * remote.c (extended_remote_attach_1): Call target_find_description.
1748 2008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
1750 * remote.c (extended_remote_create_inferior_1): Clean up
1751 before marking the target running.
1753 2008-05-08 Joel Brobecker <brobecker@adacore.com>
1755 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
1758 2008-05-07 Joel Brobecker <brobecker@adacore.com>
1760 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
1761 sparc64-sol2-tdep.c: Update for unwinder changes.
1763 2008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
1765 * cp-support.c (mangled_name_to_comp): Initialize storage.
1766 (unqualified_name_from_comp): Likewise.
1768 2008-05-07 Jie Zhang <jie.zhang@analog.com>
1770 * remote.c (remote_insert_breakpoint): Call get_remote_state
1771 after gdbarch_breakpoint_from_pc is called.
1772 (remote_insert_hw_breakpoint): Likewise.
1774 2008-05-06 Joel Brobecker <brobecker@adacore.com>
1776 * valprint.c (val_print): Add new language parameter and use it
1777 instead of using the current_language. Update calls to val_print
1779 (common_val_print): Add new langauge parameter and pass it to
1781 * value.h (struct language_defn): Add opaque declaration.
1782 (val_print, common_val_print): Update declarations.
1783 * stack.c (print_frame_args): Update call to common_val_print
1784 using the appropriate language.
1785 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
1786 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
1787 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
1788 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
1789 #include "language.h" if necessary.
1790 Update calls to val_print and common_val_print.
1791 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
1792 Update dependencies.
1794 2008-05-06 Joel Brobecker <brobecker@adacore.com>
1796 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
1797 pointing inside a non-executable section as function descriptors.
1799 2008-05-06 Pedro Alves <pedro@codesourcery.com>
1801 * inf-loop.c (inferior_event_handler): Run all continuations and
1802 print any language change before running the breakpoint commands.
1804 2008-05-06 Joel Brobecker <brobecker@adacore.com>
1806 * frame-unwind.c (frame_unwind_got_bytes): New function.
1807 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
1808 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
1809 for unwinder changes.
1811 2008-05-05 Doug Evans <dje@google.com>
1813 * NEWS: Mention new /m modifier for disassemble command.
1814 * cli/cli-cmds.c (print_disassembly): New function.
1815 (disassemble_current_function): New function
1816 (disassemble_command): Recognize /m modifier, print mixed
1818 (init_cli_cmds): Update disassemble help text.
1820 2008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
1822 * xtensa-tdep.c: Update for unwinder changes.
1824 2008-05-05 Andreas Schwab <schwab@suse.de>
1826 Update m68k port for unwinder changes.
1827 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
1828 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
1829 (m68k_frame_unwind): Use default_frame_sniffer.
1830 (m68k_frame_sniffer): Remove.
1831 (m68k_frame_base_address): Expect this_frame.
1832 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
1834 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
1835 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
1836 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
1837 parameter instead of pc value.
1838 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
1840 (m68k_linux_sigtramp_frame_this_id)
1841 (m68k_linux_sigtramp_frame_prev_register)
1842 (m68k_linux_sigtramp_frame_sniffer): Update signature.
1843 (m68k_linux_sigtramp_frame_unwind): Use
1844 m68k_linux_sigtramp_frame_sniffer.
1845 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
1847 * m68klinux-nat.c (store_register): Fix typo.
1849 2008-05-05 Pedro Alves <pedro@codesourcery.com>
1851 * infcmd.c (step_1): Put thread id on the stack to avoid possible
1854 2008-05-05 Luis Machado <luisgpm@br.ibm.com>
1856 * symfile.c (reread_symbols): Update objfile's entry point.
1858 2008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
1859 Joel Brobecker <brobecker@adacore.com>
1861 * ada-lang.c: Update throughout to use symbol_matches_domain
1862 instead of matching the symbol domain explictly.
1863 * dwarf2read.c (add_partial_symbol): Do not add new psym for
1864 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
1865 class as typedefs. See lookup_partial_symbol function.
1866 (new_symbol): Similar to add_partial_symbol, do not create
1867 symbol for the typedef. See lookup_block_symbol.
1868 * symtab.c (symbol_matches_domain): New function, takes care
1869 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
1870 (lookup_partial_symbol): Use symbol_matches_domain to see if the
1871 found psym domain matches the given domain.
1872 (lookup_block_symbol): Likewise.
1874 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
1876 * top.c (command_line_handler_continuation): Remove.
1877 (execute_command): Do not install the above.
1879 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
1881 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
1882 and catch all exceptions from it.
1883 * top.c (command_line_handler_continuation): Don't
1884 call bpstat_do_action here.
1886 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
1888 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
1889 (struct die_info): Remove type.
1890 (read_type_die, read_typedef, read_base_type, read_subrange_type)
1891 (read_structure_type, read_enumeration_type, read_array_type)
1892 (read_tag_pointer_type, read_tag_ptr_to_member_type)
1893 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
1894 (read_tag_string_type, read_subroutine_type, read_set_type)
1895 (read_unspecified_type): Delete prototypes. Remove check for
1896 already-loaded type. Return the new type.
1897 (set_die_type): Return the new type.
1898 (reset_die_and_siblings_types): Delete.
1899 (load_comp_unit, load_full_comp_unit): Set type_hash.
1900 (process_queue): Remove call to reset_die_and_siblings_types.
1901 (process_die): Do not read most types here. Use read_type_die
1903 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
1904 (quirk_gcc_member_function_pointer): Return the new type.
1905 (process_structure_scope, process_enumeration_scope): Use
1906 get_die_type and read the DIE's type.
1907 (read_full_die): Do not initialize die->type.
1908 (tag_type_to_type): Use read_type_die.
1909 (read_type_die): Check for already defined types. Return the
1911 (determine_prefix): Use get_die_type.
1912 (set_die_type): Return the type.
1913 (get_die_type): Take a CU argument. Check for no type_hash.
1915 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
1917 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
1920 2008-05-04 Pedro Alves <pedro@codesourcery.com>
1922 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
1923 and bp_longjmp_resume breakpoints.
1924 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
1926 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
1927 breakpoints. Create bp_longjmp breakpoints as momentary
1929 (enable_longjmp_breakpoint): Delete.
1930 (set_longjmp_breakpoint): New.
1931 (disable_longjmp_breakpoint): Delete.
1932 (delete_longjmp_breakpoint): New.
1933 (set_longjmp_resume_breakpoint): Delete.
1934 (set_momentary_breakpoint_at_pc): New.
1935 (breakpoint_re_set_one): Don't delete bp_longjmp and
1936 bp_longjmp_resume breakpoints.
1937 (breakpoint_re_set): Don't create longjmp and longjmp-resume
1940 * infrun.c (step_resume_breakpoint): Add comment.
1941 (struct execution_control_state): Delete handling_longjmp member.
1942 (init_execution_control_state). Don't clear handling_longjmp.
1943 (context_switch): Don't context switch handling_longjmp.
1944 (handle_inferior_event): If handling a bp_longjmp breakpoint,
1945 create a bp_longjmp_resume breakpoint, and set it as current
1946 step_resume_breakpoint, then step over the longjmp breakpoint. If
1947 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
1948 breakpoint, delete the longjmp-resume breakpoint, and stop
1950 (currently_stepping): Remove handling_longjmp from expression.
1951 (insert_step_resume_breakpoint_at_sal): Update comment.
1952 (insert_longjmp_resume_breakpoint): New.
1954 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
1955 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
1957 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
1958 (set_longjmp_resume_breakpoint): Delete declaration.
1960 * gdbthread.h (save_infrun_state): Remove handling_longjmp
1962 (load_infrun_state): Delete *handling_longjmp parameter.
1963 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
1965 (load_infrun_state): Delete *handling_longjmp parameter. Update
1968 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
1969 (delete_longjmp_breakpoint_cleanup): New.
1970 (step_1): Call set_longjmp_breakpoint instead of
1971 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
1972 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
1973 (step_1_continuation): Pass thread id in the continuation args to
1975 (step_once): Add thread parameter. Pass thread id the the
1978 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1980 Set CU BASE_ADDRESS already from partial DIEs.
1981 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
1982 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
1983 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
1984 from these variables if it was still unset.
1986 * Makefile.in: Update dependencies.
1987 * dwarf2read.c: Include "addrmap.h"
1988 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
1989 (dwarf2_ranges_read): New prototype.
1990 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
1991 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
1992 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
1993 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
1994 comment for it. Add the found ranges to RANGES_PST. New variable
1995 BASEADDR, initialize it the common way.
1996 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
1997 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
1998 HAS_RANGES_OFFSET for the later processing.
1999 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
2000 * symtab.c: Include "addrmap.h"
2001 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
2002 Move the psymtab locator into ...
2003 (find_pc_sect_psymtab_closer): ... a new function.
2005 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
2007 * arch-utils.c (gdbarch_update_p): Use default values for
2008 info.abfd and info.target_desc if they are NULL.
2009 (gdbarch_from_bfd): Remove assertion.
2010 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
2011 using the current target description.
2012 (gdbarch_info_fill): Do not use default values for info->abfd
2013 and info->target_desc.
2015 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2017 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
2019 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
2021 * inferior.h (read_pc_pid, write_pc_pid): Remove.
2022 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
2024 * regcache.c (read_pc_pid): Remove, replace by ...
2025 (regcache_read_pc): ... this function.
2026 (write_pc_pid): Remove, replace by ...
2027 (regcache_write_pc): ... this function.
2028 (read_pc, write_pc): Update.
2030 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
2031 write_pc_pid by regcache_read_pc and regcache_write_pc.
2032 (displaced_step_fixup): Likewise.
2033 (resume): Likewise. Use regcache arch instead of current_gdbarch.
2034 (prepare_to_proceed): Likewise.
2035 (proceed): Likewise.
2036 (adjust_pc_after_break): Likewise.
2037 (handle_inferior_event): Likewise.
2039 * linux-nat.c (cancel_breakpoint): Likewise.
2040 * linux-thread-db.c (check_event): Likewise.
2041 * aix-thread.c (aix_thread_wait): Likewise.
2042 * tracepoint.c (trace_dump_command): Likewise.
2044 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2046 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
2047 SYMBOL_LOCATION_BATON.
2049 2008-05-04 Vladimir Prus <vladimir@codesourcery.com>
2051 * target.h (struct target_ops): New field to_auxv_parse.
2052 * auxv.c (default_auxv_parse): New, renamed from previous
2054 (target_auxv_parse): Try to call target method. Fallback to
2055 default_auxv_parse if not found.
2056 * procfs.c (procfs_auxv_parse): New.
2057 (init_procfs_ops): On Solaris, in 64-bit mode, install
2060 2008-05-03 Adam Nemet <anemet@caviumnetworks.com>
2062 * symfile.c (add_symbol_file_command): Use paddress rather than
2063 hex_string to print the address.
2065 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
2067 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
2068 return the null frame ID to terminate the backtrace.
2070 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
2072 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
2073 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
2074 (SIG_FRAME_PC_OFFSET): Likewise.
2075 (SIG_FRAME_LR_OFFSET): Likewise.
2076 (SIG_FRAME_FP_OFFSET): Likewise.
2077 (rs6000_push_dummy_call): Likewise.
2078 (rs6000_return_value): Likewise.
2079 (rs6000_convert_from_func_ptr_addr): Likewise.
2080 (branch_dest, rs6000_software_single_step): Likewise.
2081 (deal_with_atomic_sequence): Rename to ...
2082 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
2083 Do not call branch_dest; inline required parts of that function.
2084 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
2085 with SYMBOL_LINKAGE_NAME.
2086 (struct reg, regsize): Delete.
2087 (read_memory_addr): Delete; inline into callers.
2088 (rs6000_skip_prologue): Move after skip_prologue.
2089 (skip_prologue): Remove prototype.
2090 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
2091 initialization as if this variable were true. Do not install
2092 ppc64_sysv_abi_adjust_breakpoint_address.
2094 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
2095 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
2097 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
2098 (SIG_FRAME_PC_OFFSET): Likewise.
2099 (SIG_FRAME_LR_OFFSET): Likewise.
2100 (SIG_FRAME_FP_OFFSET): Likewise.
2101 (rs6000_push_dummy_call): Likewise.
2102 (rs6000_return_value): Likewise.
2103 (rs6000_convert_from_func_ptr_addr): Likewise.
2104 (branch_dest, rs6000_software_single_step): Likewise. Replace
2105 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
2106 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
2107 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
2108 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
2109 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
2111 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
2112 (AIX_TEXT_SEGMENT_BASE): New macro.
2113 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
2114 by AIX_TEXT_SEGMENT_BASE.
2116 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
2117 (struct gdbarch_tdep): Remove text_segment_base member.
2118 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
2119 ppc64_sysv_abi_adjust_breakpoint_address.
2121 * Makefile.in (rs6000-tdep.o): Update dependencies.
2122 (rs6000-aix-tdep.o): Likewise.
2124 2008-05-03 Luis Machado <luisgpm@br.ibm.com>
2125 Thiago Jung Bauermann <bauerman@br.ibm.com>
2127 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
2128 * doublest.c (convert_typed_floating): Fix typo in comment.
2129 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
2130 * frame-unwind.h (frame_sniffer_ftype): Likewise.
2131 * frame.c (frame_unwind_address_in_block): Likewise.
2132 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
2133 * symtab.h (struct symbol): Likewise.
2134 * tramp-frame.h (struct trad_frame_cache): Likewise.
2135 * value.c (allocate_repeat_value): Likewise.
2137 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
2139 * infrun.c (handle_inferior_event): Do not insert breakpoints at
2140 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
2142 2008-05-03 Pedro Alves <pedro@codesourcery.com>
2144 * parse.c (parse_exp_in_context): Don't override
2145 expression_context_pc if get_selected_block returned a valid
2148 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
2150 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
2151 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
2152 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
2154 * c-typeprint.c (c_type_print_base): Delete handling of template
2156 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
2157 (METHOD_PTR_TO_VOFFSET): Delete.
2158 * defs.h (QUIT_FIXME): Delete.
2159 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
2160 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
2161 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
2162 ninstantiations, and instantiations.
2163 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
2164 (TYPE_FN_FIELD_INLINED): Delete.
2165 * srec.h (SREC_BINARY): Delete.
2166 * symtab.c (symbol_init_demangled_name): Delete.
2167 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
2168 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
2169 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
2170 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
2171 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
2172 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
2173 * target.h (enum thread_control_capabilities): Delete tc_switch.
2174 (target_can_switch_threads): Delete.
2176 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
2178 * Makefile.in (objfiles.o): Update.
2179 * exec.c (exec_set_section_address): Support p->addr != 0.
2180 * objfiles.c (objfile_relocate): Update exec_ops section
2182 * symfile.c (place_section): Move exec_set_section_address call...
2183 (default_symfile_offsets): ...to here.
2185 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
2187 * Makefile.in (ppc_linux_tdep_h): New macro.
2188 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
2189 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
2190 (powerpc_e500l_c): Likewise.
2191 (ppc-linux-nat.o): Update dependencies.
2192 (ppc-linux-tdep.o): Update dependencies.
2193 (rs6000-tdep.o): Update dependencies.
2195 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
2196 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
2197 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
2198 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
2199 (tdesc_powerpc_e500): Remove.
2201 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
2202 and "features/rs6000/powerpc-altivec64.c".
2203 (ppc_supply_reg, ppc_collect_reg): Make global.
2204 (variants): Use tdesc_powerpc_32 for "powerpc" and
2205 tdesc_powerpc_altivec64 for "powerpc64".
2206 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
2208 * ppc-linux-tdep.h: New file.
2210 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
2211 Include "features/rs6000/powerpc-32l.c".
2212 Include "features/rs6000/powerpc-altivec32l.c".
2213 Include "features/rs6000/powerpc-64l.c".
2214 Include "features/rs6000/powerpc-altivec64l.c".
2215 Include "features/rs6000/powerpc-e500l.c".
2216 (ppc_linux_supply_gregset): New function.
2217 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
2218 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
2219 (ppc64_linux_gregset): Likewise.
2220 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
2221 (ppc_linux_trap_reg_p): New function.
2222 (ppc_linux_write_pc): New function.
2223 (ppc_linux_core_read_description): New function.
2224 (ppc_linux_init_abi): Install ppc_linux_write_pc and
2225 ppc_linux_core_read_description. Install orig_r3 and trap
2226 registers if present in the target description.
2227 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
2229 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
2230 (PT_ORIG_R3, PT_TRAP): Define if necessary.
2231 (ppc_register_u_addr): Handle orig_r3 and trap registers.
2232 (fetch_ppc_registers): Likewise.
2233 (store_ppc_registers): Likewise.
2234 (store_register): Likewise.
2235 (ppc_linux_read_description): Check whether AltiVec is supported.
2236 Check whether inferior is 32-bit or 64-bit. Return the appropriate
2237 Linux target description.
2239 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
2240 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
2241 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
2242 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
2243 rs6000/powerpc-e500. Update -expedite variables accordingly.
2245 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
2246 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
2247 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
2248 * features/rs6000/powerpc-e500.c: Regenerate.
2249 * features/rs6000/powerpc-32.c: Regenerate.
2250 * features/rs6000/powerpc-64.c: Regenerate.
2252 * features/rs6000/power-linux.xml: New file.
2253 * features/rs6000/power64-linux.xml: New file.
2254 * features/rs6000/powerpc-32l.xml: New file.
2255 * features/rs6000/powerpc-altivec32l.xml: New file.
2256 * features/rs6000/powerpc-64l.xml: New file.
2257 * features/rs6000/powerpc-altivec64l.xml: New file.
2258 * features/rs6000/powerpc-e500l.xml: New file.
2259 * features/rs6000/powerpc-32l.c: New (generated) file.
2260 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
2261 * features/rs6000/powerpc-64l.c: New (generated) file.
2262 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
2263 * features/rs6000/powerpc-e500l.xml: New (generated) file.
2265 * regformats/reg-ppc.dat: Remove.
2266 * regformats/reg-ppc64.dat: Remove.
2267 * regformats/rs6000/powerpc-32.dat: Remove.
2268 * regformats/rs6000/powerpc-64.dat: Remove.
2269 * regformats/rs6000/powerpc-e500.dat: Remove.
2270 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
2271 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
2272 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
2273 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
2274 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
2276 2008-05-03 Pedro Alves <pedro@codesourcery.com>
2278 * thread.c (delete_thread): Call observer_notify_thread_exit.
2279 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
2280 thread_exit observer.
2281 (mi_thread_exit): New.
2283 2008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
2285 * breakpoint.c (create_exception_catchpoint): Remove prototype
2286 for already deleted function.
2287 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
2288 * frame.h (show_stack_frame): Remove prototype.
2289 * stack.c (show_stack_frame): Remove empty, unused function.
2290 * source.c (symtab_to_fullname, print_source_lines): Small fix
2292 * value.c (show_values): Update comments to mention "show values"
2293 command instead of "info history".
2295 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
2297 * linespec.c: Include "target.h".
2298 (minsym_found): Handle minimal symbols pointing to function
2299 descriptors. Use find_function_start_pc.
2300 * minsyms.c (msymbol_objfile): New function.
2301 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
2302 to function descriptors.
2303 * symtab.c (fixup_section): Only use minimal symbol at the same
2304 address to determine section of a symbol.
2305 (find_function_start_pc): New function.
2306 (find_function_start_sal): Use it.
2307 * symtab.h (msymbol_objfile): Add prototype.
2308 (find_function_start_pc): Likewise.
2309 * value.c: Include "objfiles.h".
2310 (value_fn_field): Handle minimal symbols pointing to function
2312 * Makefile.in (linespec.o): Update dependencies.
2313 (value.o): Likewise.
2315 2008-05-02 Joel Brobecker <brobecker@adacore.com>
2317 * ada-lang.c (unwrap_value): Handle the case where the "F" field
2318 inside a PAD type is a bitfield.
2320 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
2322 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
2323 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
2324 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
2325 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
2326 Allow typedefs when checking for function pointer arguments.
2327 Right-align small structs passed on the stack.
2328 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
2329 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
2330 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
2332 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
2334 * Makefile.in (arm-tdep.o): Update.
2335 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
2336 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
2337 (arm_pc_is_thumb): Use mapping symbols.
2338 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
2339 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
2340 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
2341 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
2342 * gdbarch.sh: Add record_special_symbol.
2343 * gdbarch.c, gdbarch.h: Regenerated.
2344 * objfiles.c (struct objfile_data): Add cleanup member.
2345 (register_objfile_data_with_cleanup): New function, from
2346 register_objfile_data.
2347 (register_objfile_data): Use it.
2348 (objfile_free_data): Call clear_objfile_data.
2349 (clear_objfile_data): Call cleanup functions.
2350 * objfiles.h (register_objfile_data_with_cleanup): Declare.
2352 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
2354 * objfiles.c (init_entry_point_info): Handle shared libraries.
2356 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
2358 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
2361 2008-05-02 Jim Blandy <jimb@codesourcery.com>
2362 Pedro Alves <pedro@codesourcery.com>
2364 Implement displaced stepping.
2366 * gdbarch.sh (max_insn_length): New 'variable'.
2367 (displaced_step_copy, displaced_step_fixup)
2368 (displaced_step_free_closure, displaced_step_location): New
2370 (struct displaced_step_closure): Add forward declaration.
2371 * gdbarch.c, gdbarch.h: Regenerated.
2373 * arch-utils.c: #include "objfiles.h".
2374 (simple_displaced_step_copy_insn)
2375 (simple_displaced_step_free_closure)
2376 (displaced_step_at_entry_point): New functions.
2377 * arch-utils.h (simple_displaced_step_copy_insn)
2378 (simple_displaced_step_free_closure)
2379 (displaced_step_at_entry_point): New prototypes.
2381 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
2382 (I386_MAX_MATCHED_INSN_LEN): ... this.
2383 (i386_absolute_jmp_p, i386_absolute_call_p)
2384 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
2385 (i386_displaced_step_fixup): New functions.
2386 (struct i386_insn, i386_match_insn): Update.
2387 (i386_gdbarch_init): Set gdbarch_max_insn_length.
2388 * i386-tdep.h (I386_MAX_INSN_LEN): New.
2389 (i386_displaced_step_fixup): New prototype.
2390 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
2391 Register gdbarch_displaced_step_copy,
2392 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
2393 and gdbarch_displaced_step_location functions.
2395 * infrun.c (debug_displaced): New variable.
2396 (show_debug_displaced): New function.
2397 (struct displaced_step_request): New struct.
2398 (displaced_step_request_queue, displaced_step_ptid)
2399 (displaced_step_gdbarch, displaced_step_closure)
2400 (displaced_step_original, displaced_step_copy)
2401 (displaced_step_saved_copy, can_use_displaced_stepping): New
2403 (show_can_use_displaced_stepping, use_displaced_stepping)
2404 (displaced_step_clear, cleanup_displaced_step_closure)
2405 (displaced_step_dump_bytes, displaced_step_prepare)
2406 (displaced_step_clear_cleanup, write_memory_ptid)
2407 (displaced_step_fixup): New functions.
2408 (resume): Call displaced_step_prepare.
2409 (proceed): Call read_pc once, and remember the value. If using
2410 displaced stepping, don't remove breakpoints.
2411 (handle_inferior_event): Call displaced_step_fixup. Add some
2412 debugging output. When we try to step over a breakpoint, but get
2413 a signal to deliver to the thread instead, ensure the step-resume
2414 breakpoint is actually inserted. If a thread hop is needed, and
2415 displaced stepping is enabled, don't remove breakpoints.
2416 (init_wait_for_inferior): Call displaced_step_clear.
2417 (_initialize_infrun): Add "set debug displaced" command. Add
2418 "maint set can-use-displaced-stepping" command. Clear
2419 displaced_step_ptid.
2420 * inferior.h (debug_displaced): Declare variable.
2421 (displaced_step_dump_bytes): Declare function.
2423 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
2426 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
2428 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
2429 (arm_force_mode_string, arm_show_fallback_mode)
2430 (arm_show_force_mode): New.
2431 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
2433 (_initialize_arm_tdep): Add "set arm fallback-mode"
2434 and "set arm force-mode".
2435 * NEWS: Document new commands.
2437 2008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
2439 * main.h (batch_silent): Declare.
2440 * event-top.c: Include main.h.
2441 (gdb_setup_readline): Remove extern batch_silent declaration.
2442 * infrun.c (normal_stop): Don't print source location when running in
2443 --batch-silent mode.
2444 * Makefile.in (event-top.o): Add main.h dependency.
2446 2008-05-02 Andreas Schwab <schwab@suse.de>
2448 * target.h (struct target_ops): Add
2449 to_watchpoint_addr_within_range.
2450 (target_watchpoint_addr_within_range): New function.
2451 * target.c (update_current_target): Inherit
2452 to_watchpoint_addr_within_range, defaulting to
2453 default_watchpoint_addr_within_range.
2454 (default_watchpoint_addr_within_range): New function.
2455 (debug_to_watchpoint_addr_within_range): New function.
2456 (setup_target_debug): Set to_watchpoint_addr_within_range.
2457 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
2459 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
2460 * breakpoint.c (watchpoints_triggered): Use
2461 target_watchpoint_addr_within_range.
2463 2008-05-01 Pedro Alves <pedro@codesourcery.com>
2465 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
2466 (i[34567]86-*-dicos*, x86_64-*-dicos*):
2467 Set gdb_osabi to GDB_OSABI_DICOS.
2469 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
2470 * osabi.c (gdb_osabi_name): Add "DICOS".
2472 * i386-dicos-tdep.c: New file.
2474 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
2475 (ALLDEPFILES): Add i386-dicos-tdep.c.
2476 (i386-dicos-tdep.o): New rule.
2478 2008-05-01 Pedro Alves <pedro@codesourcery.com>
2480 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
2481 and register the fork's PTID as a thread.
2483 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
2486 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
2487 assign its value to the breakpoint created.
2488 (create_breakpoints): Add breakpoint_ops argument and pass it
2489 to create_breakpoint call.
2490 (break_command_really): Add breakpoint_ops argument and pass/assign
2492 (break_command_1): Pass NULL as ops argument.
2493 (set_breakpoint): Pass NULL as ops argument.
2494 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
2495 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
2496 catch and throw catchpoints.
2498 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
2501 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
2502 translate signal numeric value from the target to GDB's enum
2504 * gdbarch.c, gdbarch.h: Regenerated.
2505 * gdbarch.sh: Added two new functions target_signal_from_host and
2506 target_signal_to_host.
2507 * target.h (default_target_signal_from_host,
2508 default_target_signal_to_host): New functions - declarations.
2509 * signals/signals.c (struct gdbarch): New declaration.
2510 (default_target_signal_to_host, default_target_signal_from_host): New
2513 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
2514 Pedro Alves <pedro@codesourcery.com>
2516 Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff
2517 Johnston <jjohnstn@redhat.com>.
2519 * NEWS: Mention attach to stopped process fix.
2520 * infcmd.c (detach_command, disconnect_command): Discard the thread
2522 * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
2523 attaching. Use signal_stop_state.
2524 (signal_stop_state): Check stop_soon.
2525 * linux-nat.c (kill_lwp): Declare earlier.
2526 (pid_is_stopped, linux_nat_post_attach_wait): New.
2527 (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update
2529 (linux_nat_attach): Use linux_nat_post_attach_wait.
2530 (detach_callback, linux_nat_detach): Improve handling for signalled
2532 (linux_nat_pid_to_str): Always print out the LWP ID if it differs
2533 from the process ID.
2534 * Makefile.in (infcmd.o): Update.
2536 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
2538 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
2539 * arm-tdep.c (arm_frame_is_thumb): New.
2540 (arm_pc_is_thumb): Clarify comment.
2541 (thumb_analyze_prologue): Remove PC special case.
2542 (thumb_scan_prologue): Take a block_addr argument. Use it for
2543 find_pc_partial_function. Remove unused variables.
2544 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
2545 for find_pc_partial_function. Remove PC special case.
2546 (arm_prologue_prev_register): Add special handling for PC and CPSR.
2547 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
2548 (arm_get_next_pc): Use arm_frame_is_thumb.
2549 (arm_write_pc): Use CPSR_T instead of 0x20.
2550 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
2551 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
2553 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
2554 DWARF2_FRAME_REG_FN.
2555 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
2556 DWARF2_FRAME_REG_FN.
2557 (struct dwarf2_frame_state_reg): Add FN to loc union.
2559 2008-05-01 Nick Roberts <nickrob@snap.net.nz>
2561 * exec.c (print_section_info): Add missing '\n'.
2563 2008-05-01 Vladimir Prus <vladimir@codesourcery.com>
2565 * thread.c (add_thread): Move observer call to ...
2566 (add_thread_silent): ... here.
2568 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
2570 * rs6000-tdep.c: Update for unwinder changes.
2571 * ppcobsd-tdep.c: Likewise.
2573 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
2575 * s390-tdep.c: Update for unwinder changes.
2577 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
2579 * spu-tdep.c: Update for unwinder changes.
2581 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2583 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
2584 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
2585 sparc64-linux-tdep.c: Update for unwinder changes.
2587 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2589 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
2590 for unwinder changes.
2591 * mips-tdep.c: Likewise.
2592 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
2595 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2597 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
2600 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2602 Update i386 and amd64 ports for unwinder changes.
2604 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
2605 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
2606 (amd64_frame_unwind): Use default_frame_sniffer.
2607 (amd64_frame_sniffer): Delete.
2608 (amd64_sigtramp_frame_cache): Expect this_frame.
2609 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
2610 (amd64_sigtramp_frame_sniffer): Update signature.
2611 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
2612 (amd64_frame_base_address): Expect this_frame.
2613 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
2615 (amd64_init_abi): Use set_gdbarch_dummy_id and
2616 frame_unwind_append_unwinder.
2617 * i386-tdep.c (i386_frame_cache): Expect this_frame.
2618 (i386_frame_this_id, i386_frame_prev_register): Update signature.
2619 (i386_frame_unwind): Use default_frame_sniffer.
2620 (i386_frame_sniffer): Delete.
2621 (i386_sigtramp_frame_cache): Expect this_frame.
2622 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
2623 (i386_sigtramp_frame_sniffer): Update signature.
2624 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
2625 (i386_frame_base_address): Update signature.
2626 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
2627 (i386_push_dummy_call): Update comment.
2628 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
2630 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
2631 and frame_unwind_append_unwinder.
2632 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
2633 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
2634 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
2635 i386nbsd-tdep.c: Update for unwinder changes.
2637 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2639 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
2640 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
2642 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
2643 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
2644 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
2646 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
2648 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
2650 * tramp-frame.h (struct tramp_frame): Update signature of init.
2651 * Makefile.in (trad-frame.o): Update.
2653 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2655 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
2656 (execute_stack_op): Put this_frame in the baton.
2657 (execute_cfa_program): Take this_frame.
2658 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
2659 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
2660 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
2661 (dwarf2_frame_this_id): Adjust to work on this_frame.
2662 (dwarf2_signal_frame_this_id): Delete.
2663 (dwarf2_frame_prev_register): Update signature. Use new frame
2665 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
2666 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
2667 dwarf2_frame_sniffer.
2668 (dwarf2_append_unwinders): New.
2669 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
2671 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
2672 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
2673 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
2674 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
2675 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
2676 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
2677 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
2678 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
2679 (dwarf2_append_unwinders): Declare.
2680 (dwarf2_frame_base_sniffer): Update declaration.
2681 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
2684 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2686 Convert frame unwinders to use the current frame and
2689 * frame.c (frame_debug): Make global.
2690 (get_frame_id): Pass this frame to unwinder routines.
2691 (frame_pc_unwind): Remove unused unwind->prev_pc support.
2692 (do_frame_register_read): Do not discard the return value of
2693 frame_register_read.
2694 (frame_register_unwind): Remove debug messages. Use
2695 frame_unwind_register_value.
2696 (frame_unwind_register_value, get_frame_register_value): New
2698 (create_new_frame, get_frame_base_address, get_frame_locals_address)
2699 (get_frame_args_address, get_frame_type): Pass this frame to
2701 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
2703 * frame.h: Update comments.
2704 (frame_debug, frame_unwind_register_value, get_frame_register_value)
2705 (frame_prepare_for_sniffer): Declare.
2706 * frame-unwind.h: Update comments and parameter names.
2707 (default_frame_sniffer): Declare.
2708 (frame_prev_register_ftype): Return a struct value *.
2709 (struct frame_unwind): Remove prev_pc member.
2710 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
2711 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
2712 (frame_unwind_got_register, frame_unwind_got_memory)
2713 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
2714 * frame-base.h: Update comments and parameter names.
2715 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
2716 if necessary. Add debugging output.
2717 * sentinel-frame.c (sentinel_frame_prev_register)
2718 (sentinel_frame_this_id): Update for new signature.
2719 (sentinel_frame_prev_pc): Delete.
2720 (sentinel_frame_unwinder): Remove prev_pc.
2721 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
2723 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
2724 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
2725 (frame_unwind_append_sniffer): Delete.
2726 (frame_unwind_append_unwinder): New function.
2727 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
2728 from unwinders. Use frame_prepare_for_sniffer.
2729 (default_frame_sniffer, frame_unwind_got_optimized)
2730 (frame_unwind_got_register, frame_unwind_got_memory)
2731 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
2732 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
2733 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
2735 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
2736 * gdbarch.c, gdbarch.c: Regenerated.
2737 * frame-base.c (default_frame_base_address)
2738 (default_frame_locals_address, default_frame_args_address): Update
2740 (frame_base_find_by_frame): Pass this frame to unwinder routines.
2741 * infcall.c (call_function_by_hand): Update comments.
2742 * Makefile.in (frame-unwind.o): Update dependencies.
2744 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2746 * ada-lang.c (ada_value_primitive_packed_val): Only check
2747 value_lazy for memory lvals.
2748 * findvar.c (value_of_register_lazy): New function.
2749 (locate_var_value): Only check value_lazy for memory lvals.
2750 * valarith.c (value_subscripted_rvalue): Likewise.
2751 * valops.c (value_fetch_lazy): Handle both memory and register
2753 (search_struct_field, value_slice): Only check value_lazy for memory
2755 * value.c (struct value): Update comment for lazy.
2756 (value_primitive_field): Only check value_lazy for memory lvals.
2757 * value.h (value_lazy): Update comment.
2758 (value_of_register_lazy): Declare.
2760 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2762 * corefile.c (reopen_exec_file): Close any open files.
2764 2008-04-29 Joel Brobecker <brobecker@adacore.com>
2766 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
2767 show_memory_breakpoints to 1 while reading the instruction bundle.
2769 2008-04-29 Joel Brobecker <brobecker@adacore.com>
2771 * gdbarch.sh: Document the return_value method. Explain that
2772 the FUNCTYPE parameter might be NULL.
2773 * gdbarch.h: Regenerated.
2774 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
2775 type when calling using_struct_return, as this is unnecessary
2778 2008-04-28 Joel Brobecker <brobecker@adacore.com>
2780 * terminal.h (create_tty_session): Fix return type.
2782 2008-04-26 Vladimir Prus <vladimir@codesourcery.com>
2784 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
2786 2008-04-26 Joel Brobecker <brobecker@adacore.com>
2788 * breakpoint.c (condition_command, commands_from_control_command)
2789 (break_command_really): Minor reformatting.
2791 2008-04-25 Pedro Alves <pedro@codesourcery.com>
2793 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
2795 2008-04-25 Pedro Alves <pedro@codesourcery.com>
2797 * amd64-tdep.c (amd64_get_longjmp_target): New.
2798 (amd64_init_abi): Register amd64_get_longjmp_target as
2799 gdbarch_get_longjmp_target callback.
2800 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
2802 2008-04-25 Pedro Alves <pedro@codesourcery.com>
2804 * breakpoint.h (enum bpstat_what_main_action): Delete
2805 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
2807 * breakpoint.c (clrs): Delete.
2808 (bpstat_what): Update table.
2810 * infrun.c (handle_inferior_event): Remove
2811 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
2813 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
2815 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
2816 Adjust all prototypes using mi_cmd_args_ftype to use
2818 (struct mi_cmd): Remove the args_func field.
2819 * mi/mi-cmds.c: Don't provide value for the args_func field.
2820 * mi/mi-main.c (mi_execute_async_cli_command)
2821 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
2822 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
2823 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
2824 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
2825 (mi_cmd_target_download): Adjust.
2826 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
2827 (mi_cmd_execute): Do not check for args_func.
2828 (mi_execute_async_cli_command): Adjust.
2829 * mi/mi-parse.c: Don't check for args_func.
2831 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
2833 * breakpoint.c (bpstat_check_location)
2834 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
2835 New, extracted from bpstat_stop_status.
2836 (bpstat_stop_status): Use the above.
2838 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
2840 * mi/mi-main.c (last_async_command): Rename to current_token.
2841 (previous_async_command): Remove.
2842 (mi_cmd_gdb_exit): Adjust.
2843 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
2844 (mi_cmd_target_select): Adjust.
2845 (mi_cmd_execute): Don't set previous_async_command. Free token
2846 here even in async mode.
2847 (mi_execute_async_cli_command): Adjust.
2848 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
2850 (mi_load_progress): Adjust.
2852 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
2854 * infcmd.c (step_1_continuation): Always disable longjmp
2855 breakpoint if we're not going to do another step.
2857 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
2859 exec_cleanup murder.
2860 * breakpoint.c (until_break_command_continuation): Add
2861 the 'error' parameter. Directly delete the breakoint as
2862 opposed to running cleanups.
2863 (until_break_command): Install continuation only
2864 after starting the target. Don't use exec cleanups,
2865 use ordinary cleanups. Discard cleanups is successfully
2866 started the target in async mode.
2867 (make_cleanup_delete_breakpoint): Remove.
2868 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
2870 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
2872 (struct continations): Add the 'error' parameter to the
2873 continuation_hook field.
2874 (add_continuation, do_all_continuations)
2875 (add_intermediate_continuation)
2876 (do_all_intermediate_continuations): Add the 'error' parameter.
2877 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
2878 * inf-loop.c (inferior_event_handler): Instead of calling
2879 discard_all_continuations, use do_all_continuations with 1 as
2880 'error' parameter. Pass 0 as 'error' parameter in existing uses
2881 of discard_all_continuations.
2882 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
2884 (step_once): Install continuation only after resuming the target.
2885 (step_1_continuation): Disable longjmp breakpoint on error.
2886 (finish_command_continuation): Add the error parameter. Delete
2887 the finish breakpoint directly, do not use cleanups.
2888 (finish_command): Do not use exec_cleanups. Always setup
2889 continuation. For sync case, immediately run them.
2890 (attach_command_continuation): Add the error parameter.
2891 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
2892 remove step_resume_breakpoint -- adjust delete it directly.
2893 * interps.c (interp_set): Adjust call to do_all_continations.
2894 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
2896 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
2898 (mi_cmd_execute): Do not use exec_cleanup.
2899 (mi_execute_async_cli_command): Simplify the string concatenation
2900 logic. Do no use exec cleanup.
2901 (mi_exec_async_cli_cmd_continuation): New parameter error.
2902 Free last_async_command.
2903 * top.c (command_line_handler_continuation): New parameter error.
2904 * utils.c (exec_cleanup_chain, make_exec_cleanup)
2905 (do_exec_cleanups): Remove.
2906 (add_continuation, do_all_continations)
2907 (add_intermediate_continuation)
2908 (do_all_intermediate_continuations): New parameter error.
2910 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
2912 * breakpoint.h (bp_location_p): New typedef.
2913 Register a vector of bp_location_p.
2914 * breakpoint.c (always_inserted_mode)
2915 (show_always_inserted_mode): New.
2916 (unlink_locations_from_global_list): Remove.
2917 (update_global_location_list)
2918 (update_global_location_list_nothrow): New.
2919 (update_watchpoint): Don't free locations.
2920 (should_insert_location): New.
2921 (insert_bp_location): Use should_insert_location.
2922 (insert_breakpoint_locations): Copied from
2924 (insert_breakpoint): Use insert_breakpoint_locations.
2925 (bpstat_stop_status): Call update_global_location_list
2926 when disabling breakpoint.
2927 (allocate_bp_location): Don't add to bp_location_chain.
2928 (set_raw_breakpoint)
2929 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
2930 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
2931 (enable_overlay_breakpoints, disable_overlay_breakpoints)
2932 (set_longjmp_resume_breakpoint)
2933 (enable_watchpoints_after_interactive_call_stop)
2934 (disable_watchpoints_before_interactive_call_start)
2935 (create_internal_breakpoint)
2936 (create_fork_vfork_event_catchpoint)
2937 (create_exec_event_catchpoint, set_momentary_breakpoint)
2938 (create_breakpoints, break_command_1, watch_command_1)
2939 (create_exception_catchpoint)
2940 (handle_gnu_v3_exceptions)
2941 (disable_breakpoint, breakpoint_re_set_one)
2942 (create_thread_event_breakpoint, create_solib_event_breakpoint)
2943 (create_ada_exception_breakpoint): : Don't call check_duplicates.
2944 Call update_global_location_list.
2945 (delete_breakpoint): Don't remove locations and don't
2946 try to reinsert them. Call update_global_location_list.
2947 (update_breakpoint_locations): Likewise.
2948 (restore_always_inserted_mode): New.
2949 (update_breakpoints_after_exec): Temporary disable
2950 always inserted mode.
2951 * Makefile.in: Update dependencies.
2953 * infrun.c (proceed): Remove breakpoints while stepping
2955 (handle_inferior_event): Don't remove or insert
2957 * linux-fork.c (checkpoint_command): Remove breakpoints
2958 before fork and insert after.
2959 (linux_fork_context): Remove breakpoints before switch
2961 * target.c (target_disconnect, target_detach): Remove
2962 breakpoints from target.
2965 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
2967 * breakpoint.c (print_one_breakpoint_location): In MI
2968 mode, report the location string the breakpoint was
2969 originally created with.
2971 2008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
2973 * Makefile.in (xtensa-tdep.o): Update dependencies.
2974 * configure.tgt (xtensa*): Update dependencies.
2975 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
2976 Local variable areg renamed to arreg.
2977 (areg_number): New function.
2978 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2979 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
2980 replaced by arreg_number.
2981 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
2982 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
2983 (xtensa_scan_prologue): New function.
2984 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
2985 when ENTRY instraction hasn't been executed yet. Get the frame pointer
2986 value based on prologue analysis. Fix the bugs preventing WS and
2987 AR4-AR7/A11 registers from getting right values for intermediate frames,
2988 whose registers have been already spilled.
2989 (xtensa_frame_prev_register): Fix WS register value. Use are_number
2990 and arreg_number appropriately.
2991 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
2992 svr4_ilp32_fetch_link_map_offsets.
2994 2008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
2996 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
2997 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
2999 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
3001 * acinclude.m4: Add override.m4.
3002 * configure: Regenerate.
3004 2008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3006 * ada-lang.c (get_selections): Variable PROMPT made non-const and
3007 initialized with a trailing space now. Use PROMPT_ARG of
3008 COMMAND_LINE_INPUT instead of printing it ourselves.
3010 2008-04-22 Joel Brobecker <brobecker@adacore.com>
3012 * NEWS: Document support for 64-bit core file.
3014 2008-04-22 Corinna Vinschen <vinschen@redhat.com>
3016 * NEWS: Add information on calling convention and new SH CLI options.
3018 * sh-tdep.c (sh_cc_gcc): New static string.
3019 (sh_cc_renesas): Ditto.
3020 (sh_cc_enum): New static string array.
3021 (sh_active_calling_convention): New static string pointer denoting
3022 active user chosen ABI.
3023 (sh_is_renesas_calling_convention): New function to return function
3024 specific ABI, or user choice if necessary.
3025 (sh_use_struct_convention): Rename first argument and turn around its
3026 meaning. Check for renesas ABI and return accordingly.
3027 (sh_use_struct_convention_nofpu): New function.
3028 (sh_next_flt_argreg): Get function type as third parameter. Check
3029 for renesas ABI and choose floating registers accordingly.
3030 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
3031 struct return slot accordingly.
3032 (sh_push_dummy_call_nofpu): Ditto.
3033 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
3034 Evaluate ABI and give to sh_use_struct_convention_nofpu.
3035 (sh_return_value_fpu): Evaluate ABI and give to
3036 sh_use_struct_convention.
3037 (show_sh_command): New function.
3038 (set_sh_command): Ditto.
3039 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
3042 * gdbarch.sh (return_value): Add func_type argument.
3043 * gdbarch.c: Regenerate.
3045 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
3046 val_type so as not to collide with value_type function. Call
3047 using_struct_return with additional function type argument.
3048 * infcall.c (call_function_by_hand): Call using_struct_return and
3049 gdbarch_return_value with additional function type argument.
3050 * infcmd.c (print_return_value): Take addition func_type argument.
3051 Call gdbarch_return_value with additional function type argument.
3052 (finish_command_continuation): Call print_return_value with additional
3053 function type argument.
3054 (finish_command): Ditto.
3055 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
3056 additional function type argument.
3057 * stack.c (return_command): Call using_struct_return and
3058 gdbarch_return_value with additional function type argument.
3059 * value.c (using_struct_return): Take additional function type argument.
3060 * value.h (using_struct_return): Accommodate declaration.
3061 * alpha-tdep.c (alpha_return_value): Add func_type argument.
3062 * amd64-tdep.c (amd64_return_value): Ditto.
3063 * arm-tdep.c (arm_return_value): Ditto.
3064 * avr-tdep.c (avr_return_value): Ditto.
3065 * cris-tdep.c (cris_return_value): Ditto.
3066 * frv-tdep.c (frv_return_value): Ditto.
3067 * h8300-tdep.c (h8300_return_value): Ditto.
3068 (h8300h_return_value): Ditto.
3069 * hppa-tdep.c (hppa32_return_value): Ditto.
3070 (hppa64_return_value): Ditto.
3071 * i386-tdep.c (i386_return_value): Ditto.
3072 * ia64-tdep.c (ia64_return_value): Ditto.
3073 * iq2000-tdep.c (iq2000_return_value): Ditto.
3074 * m32c-tdep.c (m32c_return_value): Ditto.
3075 * m32r-tdep.c (m32r_return_value): Ditto.
3076 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
3077 * m68k-tdep.c (m68k_return_value): Ditto.
3078 (m68k_svr4_return_value): Ditto.
3079 * m88k-tdep.c (m88k_return_value): Ditto.
3080 * mep-tdep.c (mep_return_value): Ditto.
3081 * mips-tdep.c (mips_eabi_return_value): Ditto.
3082 (mips_n32n64_return_value): Ditto.
3083 (mips_o32_return_value): Ditto.
3084 (mips_o64_return_value): Ditto.
3085 * mn10300-tdep.c (mn10300_return_value): Ditto.
3086 * mt-tdep.c (mt_return_value): Ditto.
3087 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
3088 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
3089 (ppc_sysv_abi_broken_return_value): Ditto.
3090 (ppc64_sysv_abi_return_value): Ditto.
3091 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
3092 (ppc_sysv_abi_broken_return_value): Ditto.
3093 (ppc64_sysv_abi_return_value): Ditto.
3094 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
3095 * rs6000-tdep.c (rs6000_return_value): Ditto.
3096 * s390-tdep.c (s390_return_value): Ditto.
3097 * score-tdep.c (score_return_value): Ditto.
3098 * sh-tdep.c (sh_return_value_nofpu): Ditto.
3099 (sh_return_value_fpu): Ditto.
3100 * sh64-tdep.c (sh64_return_value): Ditto.
3101 * sparc-tdep.c (sparc32_return_value): Ditto.
3102 * sparc64-tdep.c (sparc64_return_value): Ditto.
3103 * spu-tdep.c (spu_return_value): Ditto.
3104 * v850-tdep.c (v850_return_value): Ditto.
3105 * vax-tdep.c (vax_return_value): Ditto.
3106 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
3107 * xtensa-tdep.c (xtensa_return_value): Ditto.
3109 * gdbtypes.h (struct type): Add calling_convention member.
3110 * dwarf2read.c (read_subroutine_type): Add calling convention read
3111 from DW_AT_calling_convention attribute to function type.
3113 2008-04-22 Markus Deuling <deuling@de.ibm.com>
3115 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
3116 multi_f77_subscript to support values from registers.
3117 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
3118 * value.h (value_subscripted_rvalue): Add prototype.
3120 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
3122 * f-valprint.c (f_val_print): Likewise.
3124 2008-04-21 Craig Silverstein <csilvers@google.com>
3126 * dwarf2read.c (zlib_decompress_section): Define abfd in the
3129 2008-04-21 Pedro Alves <pedro@codesourcery.com>
3131 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
3132 section is not a code section.
3134 2008-04-19 Craig Silverstein <csilvers@google.com>
3136 * NEWS: Add information on compressed debug sections.
3138 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
3140 * mi/mi-cmd-var.c (varobj_update_one): Print new
3141 value for variable objects that changed type.
3143 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
3145 * varobj.c (varobj_invalidate): Don't touch floating
3148 2008-04-19 Mark Kettenis <kettenis@gnu.org>
3150 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
3151 (multiple_symbols_cancel): Remove extra const.
3152 * symtab.h: Likewise.
3154 2008-04-19 Nick Roberts <nickrob@snap.net.nz>
3156 * interps.c (top_level_interpreter): Rename static variable...
3157 (top_level_interpreter_ptr): ...to this.
3158 (top_level_interpreter): New function.
3160 * interps.h: New extern for top_level_interpreter.
3162 * linespec.c: Include interps.h and mi/mi-cmds.h.
3163 (decode_line_2): When using MI, always set all breakpoints in menu.
3165 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
3167 2008-04-18 Craig Silverstein <csilvers@google.com>
3169 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
3170 * config.in, configure: Regenerate.
3171 * dwarf2read.c: Include zlib.h if present.
3172 Modified *_SECTION macros.
3173 (section_is_p): New.
3174 (dwarf2_locate_sections): Use section_is_p instead of strcmp
3175 (dwarf2_resize_section): New.
3176 to determine whether a given section has a given name.
3177 (zlib_decompress_section): New.
3178 (dwarf2_read_section): Read the compressed section if present
3180 * MAINTAINERS: Added myself to section Write After Approval.
3182 2008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
3184 * defs.h (exec_set_section_offsets): Remove prototype.
3185 * exec.c (exec_set_section_offsets): Remove function.
3187 2008-04-18 Joel Brobecker <brobecker@adacore.com>
3189 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
3190 in the search for the matching symbol.
3192 2008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
3194 * breakpoint.c (update_watchpoint): Always reparse
3197 2008-04-17 Joel Brobecker <brobecker@adacore.com>
3199 * breakpoint.c (print_one_breakpoint_location): Make sure to print
3200 the breakpoint address only once.
3202 2008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
3204 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
3205 rather than a hard-coded architecture, for xcoff executables.
3207 2008-04-17 Doug Evans <dje@google.com>
3209 * buildsym.c (watch_main_source_file_lossage): New fn.
3210 (end_symtab): Call it.
3212 * source.c (find_and_open_source): Add some comments clarifying
3213 handling of FULLNAME argument. Make static. Remove pointless
3216 2008-04-17 Pedro Alves <pedro@codesourcery.com>
3218 * inf-loop.c (inferior_event_handler): Also run the intermediate
3219 continuations in the INF_EXEC_COMPLETE case.
3221 2008-04-16 Tom Tromey <tromey@redhat.com>
3223 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
3224 (set_cmd_async_ok, get_cmd_async_ok): Declare.
3225 * cli/cli-decode.c (set_cmd_async_ok): New function.
3226 (get_cmd_async_ok): New function.
3227 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
3229 * top.c (execute_command): Use get_cmd_async_ok.
3230 * infcmd.c: Include cli/cli-decode.h.
3231 (_initialize_infcmd): Mark "interrupt" as async-ok.
3232 * Makefile.in (infcmd.o): Depend on cli_decode_h.
3234 2008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
3237 * exec.c: Correct "arch-utils.h" include.
3239 2008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
3242 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
3243 to allow printing to 'see' real reason of stop. This fixes PR 2424.
3244 * breakpoint.c (bpdisp_texst): New function. The function takes over
3245 the role of bpstats static array in print_one_breakpoint_location.
3246 (print_it_typical): Print "Temporary breakpoint" instead
3247 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
3248 protocols, print disp field.
3249 (print_one_breakpoint_location): Removed bpdisps static definition.
3250 Call new bpstat_text function to get value for 'disp' field.
3251 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
3253 2008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
3255 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
3256 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
3257 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
3258 * gnulib/Makefile.in: Regenerate.
3260 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3262 * Makefile.in (GNULIB_H): New. Trigger all-lib.
3263 (defs_h): Use $(GNULIB_H).
3264 (all-lib): Depend on gnulib/Makefile.
3265 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
3266 * config.in, gnulib/Makefile.in: Regenerated.
3268 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3270 * Makefile.in (LIBGNU, INCGNU): Define.
3271 (INTERNAL_CFLAGS_BASE): Add INCGNU.
3272 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
3274 ($(LIBGNU), all-lib): New rules.
3275 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
3276 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
3277 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
3278 * gnulib: New directory, from gnulib-tool.
3279 * configure, aclocal.m4: Regenerated.
3281 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3283 * linux-thread-db.c (have_threads_callback): Check thread->private.
3285 2008-04-13 Nick Roberts <nickrob@snap.net.nz>
3286 Vladimir Prus <vladimir@codesourcery.com>
3289 * varobj.c (value_of_root): Update the expression for
3291 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
3294 2008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
3296 * mi/mi-cmd-var.c: Include "mi-getopt.h".
3297 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
3298 (mi_cmd_var_set_format): Use new mi_parse_format.
3299 (mi_cmd_var_evaluate_expression): Support for -f option to specify
3301 * Makefile.in (mi-cmd-var.o): Update dependencies.
3303 * varobj.h (varobj_get_formatted_value): Declare.
3304 * varobj.c (my_value_of_variable): Added format parameter.
3305 (cplus_value_of_variable): Likewise.
3306 (java_value_of_variable): Likewise.
3307 (c_value_of_variable): Likewise. Evaluate expression based
3308 on format parameter.
3309 (struct language_specific): Add format parameter to function member
3311 (varobj_get_formatted_value): New.
3312 (varobj_get_value): Added format parameter to method call.
3314 2008-04-08 Joel Brobecker <brobecker@adacore.com>
3316 * stabsread.c (cleanup_undefined_types_noname): Manually set the
3317 instance flags of the undefined type before calling replace_type.
3319 2008-04-08 Vladimir Prus <vladimir@codesourcery.com>
3321 * target.h (enum strata): Remove the download_stratum.
3323 2008-04-07 Doug Evans <dje@google.com>
3325 * buildsym.h (last_source_file): Add dwarf info to comment.
3326 (last_source_start_addr): Ditto.
3328 2008-04-07 Pedro Alves <pedro@codesourcery.com>
3330 * alphanbsd-tdep.c: Include "target.h".
3331 * mn10300-tdep.c: Include "target.h".
3332 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
3334 2008-04-06 Vladimir Prus <vladimir@codesourcery.com>
3336 Fix breakpoint condition that use member variables.
3337 * valops.c (check_field): Remove.
3338 (check_field_in): Rename to check_field.
3339 (value_of_this): Use la_name_of_this.
3340 * value.h (check_field): Adjust prototype.
3342 * language.h (la_value_of_this): Rename to la_name_of_this.
3343 * language.c (unknown_language_defn): Specify "this" for
3345 (auto_language_defn): Likewise.
3346 (local_language_defn): Likewise.
3347 * ada-lang.c (ada_language_defn): Adjust comment.
3348 * c-lang.c (c_language_defn): Adjust comment.
3349 (cplus_language_defn): Specify "this" for name_of_this.
3350 (asm_language_defn): Adjust comment.
3351 (minimal_language_defn): Adjust comment.
3352 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
3353 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
3354 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
3355 * objc-lang.c (objc_language_defn): Specify "self" for
3357 * p-lang.c (pascal_language_defn): Specify "this" for
3359 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
3361 * symtab.c (lookup_symbol_aux): Lookup "this" in the
3362 proper scope, and check for field in type of "this", without
3363 trying to create a value.
3365 2008-04-04 Pedro Alves <pedro@codesourcery.com>
3367 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
3368 (mi_error_message): Delete declaration.
3369 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
3370 returning MI_CMD_ERROR.
3371 * mi/mi-main.c (mi_error_message): Delete.
3372 (mi_cmd_exec_interrupt):
3373 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
3374 (mi_cmd_thread_info): Call error instead of returning
3376 (mi_cmd_data_list_register_values): Call error instead of
3377 returning MI_CMD_ERROR. Adapt to new get_register interface.
3378 (get_register): Change return typo to void. Call error instead of
3379 returning MI_CMD_ERROR.
3380 (mi_cmd_data_write_register_values): Call error instead of
3381 returning MI_CMD_ERROR.
3382 (mi_cmd_list_features): Return MI_CMD_DONE.
3383 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
3384 (mi_execute_command): Always print exceptions with -error.
3386 2008-04-04 Joel Brobecker <brobecker@adacore.com>
3388 * NEWS: Mention new commands set/show multiple-symbols.
3390 2008-04-03 Joel Brobecker <brobecker@adacore.com>
3392 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
3393 (multiple_symbols_cancel): New constants.
3394 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
3395 (multiple_symbols_select_mode): New function.
3396 (_initialize_symtab): Add new set/show multiple-symbols commands.
3397 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
3398 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
3399 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
3401 * linespec.c (decode_line_2): Likewise.
3403 2008-04-03 Doug Evans <dje@sebabeach.org>
3405 * symtab.h (enum free_code): Delete free_contents, unused.
3406 * symmisc.c (free_symtab_block): Delete.
3407 (free_symtab, case free_code): Delete.
3409 2008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
3411 * valops.c (value_cast_structs): New function. Cast related
3412 STRUCT types up/down and return cast value. The body of this
3413 function comes mostly from value_cast_pointers.
3414 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
3415 to value_cast_structs. Now value_cast_pointers needs only create
3416 appropriate reference after using value_cast_structs for actual
3418 (value_cast): Handle references.
3420 2008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
3422 * MAINTAINERS: Added myself to section Write After Approval.
3424 2008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
3426 * ia64-tdep.c (examine_prologue): Correct array access.
3428 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
3430 * cp-support.c (first_component_command): Return if no arguments.
3432 2008-03-28 Carlos O'Donell <carlos@codesourcery.com>
3434 * ser-mingw.c (ser_windows_open): Open requested name.
3436 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
3438 * MAINTAINERS: Added myself.
3440 2008-03-28 Pedro Alves <pedro@codesourcery.com>
3442 * target.c (find_default_run_target): Allow a NULL `do_mesg'
3443 parameter. If it is NULL, don't call error.
3444 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
3445 `do_mesg' parameter to find_default_run_target. If no target was
3448 2008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
3450 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
3451 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
3452 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
3454 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
3456 2008-03-27 Joel Brobecker <brobecker@adacore.com>
3460 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
3462 * features/Makefile (%.dat): Set xmltarget to the base filename
3463 of the XML source, without subdirectory.
3464 * regformats/rs6000/powerpc-32.dat: Regenerate.
3465 * regformats/rs6000/powerpc-64.dat: Regenerate.
3466 * regformats/rs6000/powerpc-e500.dat: Regenerate.
3468 2008-03-27 Markus Deuling <deuling@de.ibm.com>
3470 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
3473 2008-03-27 Nick Roberts <nickrob@snap.net.nz>
3475 * mi/mi-main.c (enum captured_mi_execute_command_actions):
3476 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
3478 2008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3480 * objfiles.h (struct objfile): New GDBARCH member.
3481 (get_objfile_arch): Add prototype.
3482 * objfiles.c: Include "arch-utils.h".
3483 (allocate_objfile): Look up gdbarch associated with bfd.
3484 (get_objfile_arch): New function.
3485 * Makefile (objfiles.o): Update dependencies.
3487 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
3489 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
3491 (locexpr_describe_location): Replace current_gdbarch by
3493 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
3494 (dwarf2_add_field): Likewise.
3495 (read_tag_pointer_type): Likewise.
3496 (read_base_type): Likewise.
3497 (new_symbol): Likewise.
3499 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
3500 (decode_base_type, decode_function_type): Likewise.
3501 (coff_read_struct_type, coff_read_enum_type): Likewise.
3502 (coff_symtab_read): Replace current_gdbarch by objfile arch.
3503 (decode_base_type): Likewise.
3504 (coff_read_enum_type): Likewise.
3505 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
3506 (coff_read_enum_type): Likewise.
3508 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
3509 (end_psymtab): Likewise.
3510 (process_one_symbol): Likewise.
3512 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
3513 (parse_procedure): Likewise.
3514 (parse_partial_symbols): Likewise.
3516 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
3518 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
3519 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
3521 (read_range_type): Replace current_gdbarch by objfile arch. Replace
3522 static range_index_type by built-in type.
3523 (read_one_struct_field): Replace current_gdbarch by objfile arch.
3524 (read_enum_type): Likewise.
3526 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
3529 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
3531 * varobj.h (varobj_floating_p): Declare.
3532 * varobj.c (varobj_floating_p): New.
3533 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
3534 '@' as the name, update all floating varobjs.
3536 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
3538 * varobj.c (struct varobj_root): Rename use_selected_frame to
3539 floating, and clarify the meaning.
3540 (varobj_create, varobj_update, new_root_variable): Adjust.
3541 (value_of_root): Don't use type_changed as in variable,
3543 (c_value_of_root): Adjust.
3545 2008-03-25 Pedro Alves <pedro@codesourcery.com>
3547 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
3549 (linux_nat_wait): Add main lwp to gdb's thread list.
3550 * linux-thread-db.c (find_new_threads_callback): Also attach to
3551 already listed threads which thread_db didn't know about yet.
3553 2008-03-25 Pedro Alves <pedro@codesourcery.com>
3555 * linux-nat.c (drain_queued_events): Fix comment typo.
3556 (linux_nat_attach): In async mode, don't rely on storing a pending
3557 status. Instead place the wait status on the pipe.
3558 (linux_nat_resume): Remove unreacheable shortcut code in async
3560 (stop_wait_callback): In async mode, don't store pending status.
3561 Instead, cancel breakpoints or resend the signal appropriatelly.
3562 (cancel_breakpoint): New, refactored from
3563 cancel_breakpoints_callback.
3564 (cancel_breakpoints_callback): Call cancel_breakpoint.
3565 (pipe_to_local_event_queue): Remove special token processing.
3566 (linux_nat_wait): Issue an internal error if a pending status is
3567 found in async mode.
3569 2008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
3571 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
3573 2008-03-24 Nick Roberts <nickrob@snap.net.nz>
3574 Vladimir Prus <vladimir@codesourcery.com>
3576 * varobj.c (struct varobj_root): New component thread_id.
3577 (varobj_get_thread_id, check_scope): New functions.
3578 (c_value_of_root): Use check_scope. Switch to the
3579 proper thread if necessary.
3581 * varobj.h (varobj_get_thread_id): New extern.
3583 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
3585 2008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
3588 * top.c: Revert 2008-03-21 changes.
3590 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
3592 * thread.c (make_cleanup_restore_current_thread): Make it
3594 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
3595 * varobj.c (varobj_update): Don't save/restore frame.
3596 (c_value_of_root): Save/restore thread and frame here,
3597 using make_cleanup_restore_current_thread.
3598 * Makefile.in: Update dependecies.
3600 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
3602 * varobj.c (struct varobj_root): Clarify
3603 comment on the frame field.
3604 (varobj_create): Don't set frame if we have no
3607 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
3610 Suggested by Jan Kratochvil:
3611 * top.c (gdb_rl_operate_and_get_next_completion): Call
3612 rl_redisplay_function.
3613 (gdb_rl_redisplay): New.
3614 (init_main): Set rl_redisplay_function.
3616 2008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
3618 * aix-thread.c (pdc_read_regs): Fix compiler warning.
3619 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
3620 (store_regs_kernel_thread): Likewise.
3622 2008-03-21 Pedro Alves <pedro@codesourcery.com>
3624 Linux native async support.
3626 * target.h (struct target_ops): Delete to_async_mask_value and add
3628 (target_is_async_p, target_async): Formatting.
3629 (target_async_mask_value): Delete.
3630 (target_async_mask): Delete function declaration, and add new
3631 target macro with the same name.
3633 * target.c (update_current_target): Replace to_async_mask_value by
3634 to_async_mask. Default to_async_mask to return_one.
3635 (target_async_mask): Delete.
3636 (find_default_can_async_p, find_default_is_async_p): New.
3637 (init_dummy_target): register find_default_can_async_p and
3638 find_default_is_async_p on the dummy target.
3640 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
3641 (debug_linux_nat_async): New global.
3642 (show_debug_linux_nat_async): New function.
3643 (linux_nat_async_enabled, linux_nat_async_mask_value)
3644 (linux_nat_event_pipe, linux_nat_num_queued_events)
3645 (linux_nat_async_events_enabled): New globals.
3646 (struct waitpid_result): New struct.
3647 (waitpid_queue): New global.
3648 (queued_waitpid, push_waitpid, drain_queued_events): New.
3649 (my_waitpid): Call queued_waitpid.
3650 (linux_child_follow_fork): Disable async events during the call.
3651 (blocked_mask): Delete.
3652 (sync_sigchld_action, async_sigchld_action): New globals.
3653 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
3654 async mode, block events during the call.
3655 (linux_nat_create_inferior): New.
3656 (linux_nat_attach): In sync mode, restore the mask states. In
3657 async mode, wake the event loop immediatelly.
3658 (detach_callback): Drain all queued events of the lwp we're
3660 (linux_nat_detach): Block async mode, and drain events of the main
3662 (linux_nat_resume): If in async mode, mask async events during the
3663 call. If short circuiting, force event loop to wake up. If
3664 resuming, set target_executing, and register target events in the
3666 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
3667 (linux_nat_wait): In async mode, block events during the call.
3668 Only enable/disable passing SIGINT to the inferior in sync mode.
3669 Get events from local waitpid queue. If no interesting events was
3670 found, return to events loop. Reregister target events in the
3671 event loop on exit. In sync mode, no need to reblock SIGCHLD.
3672 (linux_nat_kill): Disable events on entry.
3673 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
3674 here. Detach async mode from the event loop if there are no more
3675 forks available, otherwise leave it on.
3676 (sigchld_handler): Assure this is called only in sync mode.
3677 (linux_async_permitted, linux_async_permitted_1): New globals.
3678 (set_maintenance_linux_async_permitted)
3679 (show_maintenance_linux_async_permitted): New functions.
3680 (linux_nat_is_async_p, linux_nat_can_async_p)
3681 (linux_nat_async_mask): New.
3682 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
3683 (get_pending_events, async_sigchld_handler): New.
3684 (linux_nat_async_events): New.
3685 (async_terminal_is_ours): New global.
3686 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
3687 (async_client_callback, async_client_context): New.
3688 (linux_nat_async_file_handler, linux_nat_async)
3689 (linux_nat_disable_async, linux_nat_enable_async): New.
3690 (linux_nat_add_target): Register linux_nat_create_inferior,
3691 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
3692 linux_nat_async_mask, linux_nat_terminal_inferior and
3693 linux_nat_terminal_ours.
3694 (_initialize_linux_nat): Remove local action variable, and update
3695 code that used it to use sync_sigchld_action. Add new
3696 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
3697 set/show command in the maintenance class. Add new "linux-async"
3698 maintenance set/show command. Block SIGCHLD by default. Setup
3699 async_sichld_action, and sync_sigchld_action. Install the default
3701 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
3704 * linux-thread-db.c (re_check_for_thread_db): New.
3705 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
3706 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
3707 (thread_db_async_mask): New.
3708 (init_thread_db_ops): Register thread_db_can_async_p,
3709 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
3711 * remote.c (remote_async_mask_value): New.
3712 (remote_return_zero): New.
3713 (init_remote_ops): Register remote_return_zero as callbacks of
3714 to_can_async_p and to_is_async_p.
3715 (remote_can_async_p, remote_is_async_p, remote_async): Update to
3716 use remote_async_mask_value.
3717 (remote_async_mask): New.
3718 (init_remote_async_ops): Remove to_async_mask_value setting and
3719 register remote_async_mask as to_async_mask callback in
3722 * Makefile.in (linux-nat.o): Update.
3724 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
3726 * gdbthread.h (add_thread_with_info): New.
3727 * linux-thread-db.c: Add some documentation.
3728 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
3729 (struct private_thread_info): Remove th_valid and ti_valid.
3730 Replace ti with tid.
3731 (thread_get_info_callback): Do not add TID to the new ptid. Do
3733 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
3734 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
3736 (attach_thread): Handle an already-existing thread. Use
3737 add_thread_with_info. Cache the th and tid.
3738 (detach_thread): Verify that private was set. Remove verbose
3739 argument and printing. Update caller.
3740 (thread_db_detach): Do not adjust inferior_ptid.
3741 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
3742 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
3743 (thread_db_wait): Do not use lwp_from_thread.
3744 (thread_db_pid_to_str): Use the cached TID.
3745 (thread_db_extra_thread_info): Check that private is set.
3746 (same_ptid_callback): Delete.
3747 (thread_db_get_thread_local_address): Do not use it or check
3748 is_thread. Check that private is set. Assume that the thread
3749 handle is already cached.
3750 (init_thread_db_ops): Remove to_resume and to_kill.
3751 * thread.c (add_thread_with_info): New.
3752 (add_thread): Use it.
3753 * linux-nat.c (find_thread_from_lwp): Delete.
3754 (exit_lwp): Do not use it. Check print_thread_events. Print before
3755 deleting the thread.
3756 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
3757 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
3758 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
3759 printf_unfiltered for thread exits.
3760 * procfs.c (procfs_wait): Likewise.
3762 2008-03-21 Chris Demetriou <cgd@google.com>
3764 * symtab.c (rbreak_command): Quote symbol name before passing
3765 it to break_command.
3767 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
3769 * eval.c (evaluate_subexp_for_address): Clarify error message.
3770 Use value_must_coerce_to_target.
3771 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
3772 * valops.c (value_assign): Call value_coerce_to_target when
3773 assigning to anything but internalvars. Leave GDB-side arrays
3774 as arrays when assigning to internalvars.
3775 (value_must_coerce_to_target, value_coerce_to_target): New.
3776 (value_coerce_array, value_addr): Call value_coerce_to_target.
3777 (value_array): Create the array in GDB's memory instead of
3779 * value.h (value_must_coerce_to_target, value_coerce_to_target):
3782 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
3784 * top.c (quit_confirm): Warn that we will kill the program.
3786 2008-03-19 Pedro Alves <pedro@codesourcery.com>
3788 * inflow.c (terminal_ours_1): Guard access to
3789 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
3791 2008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
3792 Jim Blandy <jimb@codesourcery.com>
3793 Daniel Jacobowitz <drow@false.org>
3795 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
3796 (dwarf2_read_address): Update prototype.
3798 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
3799 (signed_address_type): Likewise.
3800 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
3801 (execute_stack_op): Update calls to unsigned_address_type,
3802 signed_address_type and dwarf2_read_address. Fix implementation
3803 of DW_OP_deref_size.
3805 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
3806 (dwarf2_per_cu_addr_size): Likewise.
3807 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
3808 (struct dwarf2_loclist_baton): Likewise.
3810 * dwarf2loc.c (find_location_expression): Update calls to
3811 dwarf2_read_address. Use dwarf2_per_cu_objfile and
3812 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
3813 (locexpr_describe_location): Likewise.
3814 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
3815 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
3816 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
3817 to dwarf2_per_cu_addr_size (per_cu).
3818 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
3819 (loclist_read_variable): Likewise.
3820 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
3822 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
3823 instead of baton->objfile.
3824 (dwarf2_per_cu_obfile): New function.
3825 (dwarf2_per_cu_addr_size): Likewise.
3827 * dwarf2-frame.c (struct comp_unit): Move higher.
3828 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
3829 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
3830 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
3831 parameter by using fde->eh_frame_p. Use read_encoded_value
3832 to implement DW_CFA_set_loc.
3833 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
3834 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
3835 execute_stack_op and execute_cfa_program.
3836 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
3837 (size_of_encoded_value): Remove.
3838 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
3839 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
3840 (add_cie): Set cie->unit backlink.
3841 (decode_frame_entry_1): Set cie->addr_size. Update calls to
3843 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
3845 2008-03-17 Markus Deuling <deuling@de.ibm.com>
3847 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
3848 gdbarch_bfd_arch_info.
3850 2008-03-17 Joel Brobecker <brobecker@adacore.com>
3852 * aix-thread.c (pdc_read_regs): Minor reformatting.
3854 2008-03-17 Vladimir Prus <vladimir@codesourcery.com>
3856 * thread.c (print_thread_info): Don't insist
3857 on having current thread if there are no
3860 2008-03-17 Pedro Alves <pedro@codesourcery.com>
3862 * infcmd.c (attach_command_post_wait)
3863 (attach_command_continuation): New.
3864 (attach_command): Support background async execution, and async
3865 execution in synchronous mode.
3867 2008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
3869 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
3870 * symmisc.c (dump_symtab_1): Likewise.
3871 * wrapper.c (gdb_value_struct_elt): Likewise.
3873 2008-03-17 Pedro Alves <pedro@codesourcery.com>
3875 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
3877 2008-03-17 Pedro Alves <pedro@codesourcery.com>
3879 * linux-nat.c (linux_nat_filter_event): New, refactored from
3881 (linux_nat_wait): Call linux_nat_filter_event.
3883 2008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
3885 * top.c (execute_command): Fix uninitialized variable error.
3887 2008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
3889 * Makefile.in (amd64nbsd-nat.o): New dependency.
3890 * amd64nbsd-nat.c: Include "nbsd-nat.h".
3891 (_initialize_amd64nbsd_nat): Update target vector to use
3892 nbsd_pid_to_exec_file.
3893 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
3895 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
3897 Remove ignoring leading exec events code.
3898 * fork-child.c (startup_inferior): Do not set
3899 inferior_ignoring_leading_exec_events.
3900 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
3901 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
3902 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
3903 (handle_inferior_event): Remove code for ignoring leading exec
3905 * target.c (update_current_target): Do not inherit, or default,
3906 to_reported_exec_events_per_exec_call.
3907 (debug_to_reported_exec_events_per_exec_call): Remove.
3908 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
3909 * target.h (target_reported_exec_events_per_exec_call): Remove.
3910 (struct target): Remove the to_reported_exec_events_per_exec_call
3913 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
3915 Implement -thread-info.
3916 * gdbthread.h (print_thread_info): Declare.
3918 * thread.c (print_thread_info): New, extracted
3919 from info_threads_command and adjusted to
3920 work for CLI and MI.
3921 (info_threads_command): Use print_thread_info.
3922 * Makefile.in: Update dependencies.
3924 * mi/mi-cmds.c (mi_cmds): Specify a handler
3926 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
3927 * mi/mi-main.c (mi_cmd_thread_info): New.
3928 (mi_cmd_list_features): Include 'thread-info'.
3930 2008-03-14 Kevin Buettner <kevinb@redhat.com>
3932 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
3933 to decide whether to match instruction patterns using "sw" and "sd".
3935 2008-03-14 Pedro Alves <pedro@codesourcery.com>
3937 * infcmd.c (jump_command): Postpone disabling stdin until after
3940 2008-03-14 Pedro Alves <pedro@codesourcery.com>
3942 * inflow.c (gdb_getpgrp): New.
3943 (gdb_has_a_terminal): Use get_getpgrp.
3944 (terminal_ours_1): If attach_flag is set, don't refetch
3945 inferior_process_group.
3947 2008-03-14 Pedro Alves <pedro@codesourcery.com>
3949 * features/library-list.dtd: Allow "section" elements as children
3950 of "library". Add "section" element and describe its attributes.
3952 * solib-target.c (struct lm_info): Add section_bases member.
3953 (library_list_start_segment): Error out if seen a section element.
3954 (library_list_start_section): New.
3955 (library_list_end_library): New.
3956 (solib_target_free_library_list): Free section_bases.
3957 (section_attributes): New.
3958 (library_children): Make "segment" optional. Add "section" child.
3959 (library_list_children): Register library_list_end_library.
3960 (solib_target_relocate_section_addresses): Handle section bases.
3962 * NEWS: Mention new qXfer:libraries:read section offsets support.
3964 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
3966 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
3967 (make_exec_error_cleanup): Remove declarations.
3968 * utils.c (exec_error_cleanup_chain): Remove.
3969 (do_exec_error_cleanups, discard_exec_error_cleanups)
3970 (make_exec_error_cleanup): Remove.
3971 * event-loop.c (start_event_loop): Adjust call to
3973 * event-top.c (async_enable_stdin): Remove the paramater dummy.
3974 (async_disable_stdin): Don't register async_enable_stdin via
3976 * inf-loop.c (inferior_event_handler): Don't
3977 call do_exec_error_cleanups. Call async_enable_stdin instead.
3978 * event-loop.c (start_event_loop): Adjust call to
3980 * tui/tui-interp.c (tui_command_loop): Adjust call to
3983 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
3986 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
3987 * breakpoint.c (bpstat_do_actions): In async mode,
3988 don't jump to top expecting stop_bpstat to be already
3990 * event-loop.c (start_event_loop): Call async_enable_stdin
3992 * event-top.c (async_enable_stdin): Do nothing if sync_execution
3994 (command_handler): Do not setup continuation here.
3995 (command_line_handler_continuation): Move to...
3996 * top.c (command_line_handler_continuation): ... here.
3997 (execute_command): In async mode, register continuation.
3998 Don't check frame's language in running in async mode.
3999 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
4000 * inf-loop.c (complete_execution): Inline into...
4001 (inferior_event_handler): ... here. Clear target_executing before
4002 doing any cleanups. Don't try to show prompt if the target was
4004 * infcmd.c (signal_command): Add support for async mode.
4005 (finish_command): Only add continuation if the target was
4006 successfully resumed.
4007 * remote.c (init_async_opts): Register to_get_thread_local_address
4009 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
4010 with sync_execution.
4011 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
4014 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
4016 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
4017 * exec.c (exec_bfd_mtime): Define.
4018 (exec_close): Clear it.
4019 (exec_file_attach): Set it.
4020 * gdbcore.h (exec_bfd_mtime): Declare.
4021 * source.c (find_source_lines): Do not use bfd_get_mtime.
4023 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
4025 * top.c (simplified_command_loop): Remove.
4027 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
4029 Remove unused remote.c hooks.
4030 * remote.c (deprecated_target_resume_hook)
4031 (deprecated_target_wait_loop_hook): Remove.
4032 (remote_resume): Do not call deprecated_target_resume_hook.
4033 (remote_wait): Do not call deprecated_target_wait_loop_hook.
4034 (remote_async_wait): Likewise.
4036 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
4038 Implement MI notification for new threads.
4039 * doc/observer.texi (new_thread): Document.
4040 * observer.sh: Forward declare struct thread_info.
4041 * thread.c (add_thread): Notify observer.
4043 * interps.h (interp_init_ftype): New parameter
4045 (interp_set): Likewise.
4046 (top_level_interpreter_data): Declare.
4047 * interps.c (interp_set): New parameter top_level.
4048 Pass it to interpreter's init function. Remember
4049 top level interpreter.
4050 (interpreter_exec_cmd): Adjust.
4051 (top_level_interpreter_data): New.
4052 * main.c (captured_main): Pass 1 for top_level
4053 parameter of interp_set.
4054 * cli/cli-interp.c (cli_interpreter_init): New
4055 parameter top_level.
4056 * tui/tui-interp.c (tui_init): New parameter top_level.
4058 * mi/mi-interp.c (mi_new_thread): New.
4059 (mi_interpreter_init): If top level, register
4060 observer for new threads.
4062 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
4064 2008-03-14 Pedro Alves <pedro@codesourcery.com>
4066 * top.c (execute_command): Disable break and stop
4067 commands in async mode.
4069 2008-03-14 Pedro Alves <pedro@codesourcery.com>
4072 2008-03-14 Pedro Alves <pedro@codesourcery.com>
4073 * inf-loop.c (inferior_event_handler): Don't include remote.h.
4074 Call target_stop in the INF_QUIT_REQ case.
4075 * Makefile.in (inf-loop.o): Update.
4077 2008-03-14 Pedro Alves <pedro@codesourcery.com>
4079 * inf-loop.c (inferior_event_handler): Don't include remote.h.
4080 Call target_stop in the INF_QUIT_REQ case.
4081 * Makefile.in (inf-loop.o): Update.
4083 2008-03-14 Pedro Alves <pedro@codesourcery.com>
4085 * top.c (execute_command): Enable break, info and interrupt
4086 commands in async mode.
4088 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
4089 Daniel Jacobowitz <dan@codesourcery.com>
4091 * breakpoint.h (breakpoint_restore_shadows): New
4093 * breakpoint.c (breakpoint_restore_shadows): New.
4094 (read_memory_nobpt): Delete.
4095 * gdbcore.h (read_memory_nobpt): Delete declaration.
4096 * target.c (memory_xfer_partial): Call
4097 breakpoint_restore_shadows.
4098 (restore_show_memory_breakpoints)
4099 (make_show_memory_beakpoints_cleanup): New.
4100 (show_memory_breakpoints): New.
4101 * target.h (make_show_memory_beakpoints_cleanup): Declare.
4102 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
4103 Make sure we see memory breakpoints when checking if
4104 breakpoint is still there.
4105 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
4106 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
4107 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
4108 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
4110 2008-03-12 Pedro Alves <pedro@codesourcery.com>
4112 * thread.c (add_thread): Use printf_unfiltered to print.
4114 2008-03-12 Joel Brobecker <brobecker@gnat.com>
4116 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
4117 that is true only on x86-solaris and x86_64-solaris.
4118 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
4119 with proc_get_LDT_entry.
4121 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
4123 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
4124 * config.in, configure: Regenerate.
4125 * fork-child.c (fork_inferior): Call create_tty_session.
4126 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
4127 (create_tty_session): New function.
4128 * terminal.h: Declare create_tty_session.
4130 2008-03-12 Alan Modra <amodra@bigpond.net.au>
4133 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
4134 * mipsread.c: Include elf/internal.h.
4135 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
4138 2008-03-11 Markus Deuling <deuling@de.ibm.com>
4140 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
4141 to get at the current architecture and at the target specific vector.
4142 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
4143 remove define of I387_ST0_REGNUM.
4145 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
4147 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
4148 get at the current architecture
4149 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
4152 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
4153 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
4155 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
4156 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
4157 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
4159 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
4160 at the target specific vector.
4162 (i386_get_longjmp_target): Use get_frame_arch to get at the current
4163 architecture. Use gdbarch_tdep to get at the target specific vector.
4165 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
4166 update caller. Use gdbarch_tdep to get at the target specific vector.
4168 (i386_register_to_value: Use get_frame_arch to get at the current
4171 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
4174 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
4175 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
4176 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
4177 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
4179 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
4182 (i387_convert_register_p, i387_register_to_value,
4183 i387_value_to_register): Update call for i386_fp_regnum_p.
4185 * i387-tdep.h: Remove comment.
4186 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
4187 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
4188 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
4189 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
4190 I387_MXCSR_REGNUM): Add target specific vector as parameter.
4192 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
4194 * Makefile.in (fork-child.o): Update.
4195 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
4196 argument. Gather all gdbserver features together.
4197 * fork-child.c (exec_wrapper): New variable.
4198 (fork_inferior): Use it.
4199 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
4200 (unset_exec_wrapper_command, _initialize_fork_child): New.
4202 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
4204 * source.c (directory_command): Modify the determination of
4205 condition of terminal "from_tty".
4207 2008-03-10 Matt Rice <ratmice@gmail.com>
4209 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
4211 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
4213 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
4214 of the data passing to strtoulst function.
4215 (info_spu_signal_command): Likewise.
4217 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
4219 * mi/mi-interp.c (mi_command_loop): Remove
4222 2008-03-07 Joel Brobecker <brobecker@adacore.com>
4224 * remote.c (extended_remote_attach_1): Make local variable pid an int
4227 2008-03-07 Joel Brobecker <brobecker@adacore.com>
4229 * solib-svr4.c (svr4_same_1): New function, originally extracted
4230 from svr4_same and expanded to handle the sparc64 case.
4231 (svr4_same): Move up and reimplement using svr4_same_1.
4232 (enable_break): Use svr4_same_1 to do shared library name comparisons.
4234 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
4236 * MAINTAINERS: Move self to Paper trail.
4238 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
4240 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
4241 * event-loop.c (call_async_signal_handler): New.
4242 * event-loop.h (call_async_signal_handler)
4243 (gdb_call_async_signal_handler): Declare.
4244 (mark_async_signal_handler): Add comments.
4245 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
4246 * mingw-hdep.c (sigint_event, sigint_handler): New.
4247 (gdb_select): Use them. Wait for the readline signal handler
4249 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
4250 * posix-hdep.c (gdb_call_async_signal_handler): New function.
4251 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
4253 (remote_fileio_ctrl_c_signal_handler): Use
4254 gdb_call_async_signal_handler.
4255 (initialize_remote_fileio): Initialize sigint_fileio_token.
4256 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
4257 not initialize tokens here.
4258 (handle_remote_sigint_twice): Likewise. Reinstall
4259 handle_remote_sigint.
4260 (async_remote_interrupt_twice): Just call interrupt_query.
4261 (cleanup_sigint_signal_handler): Do not delete tokens.
4262 (remote_interrupt, remote_interrupt_twice): Use
4263 gdb_call_async_signal_handler.
4264 (interrupt_query): Reinstall the default signal handler.
4265 (_initialize_remote): Initialize tokens here.
4267 2008-03-04 Joel Brobecker <brobecker@adacore.com>
4269 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
4270 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
4271 Change the type of the lr register to code_ptr.
4272 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
4273 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
4274 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
4275 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
4276 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
4277 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
4278 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
4280 2008-03-03 James E. Wilson <wilson@tuliptree.org>
4282 * MAINTAINERS: Update my email address.
4284 2008-03-03 Keith Seitz <keiths@redhat.com>
4286 From Dave Murphy <davem@devkitpro.org>:
4287 * configure.ac: Set tcl configdir to win under mingw.
4288 * configure: Regenerate.
4290 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
4292 * breakpoint.c (fetch_watchpoint_value): New function.
4293 (update_watchpoint): Set and clear val_valid. Use
4294 fetch_watchpoint_value. Handle unreadable values on the
4295 value chain. Correct check for user-requested array watchpoints.
4296 (breakpoint_init_inferior): Clear val_valid.
4297 (watchpoint_value_print): New function.
4298 (print_it_typical): Use it. Do not free or clear old_val. Print
4299 watchpoints even if old_val == NULL.
4300 (watchpoint_check): Use fetch_watchpoint_value. Check for values
4301 becoming readable or unreadable.
4302 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
4303 (do_enable_watchpoint): Likewise.
4304 * breakpoint.h (struct breakpoint): Update comment for val. Add
4306 * NEWS: Mention watchpoints on inaccessible memory.
4308 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
4310 * Makefile.in (i386-nat.o): Update.
4311 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
4312 i386_use_watchpoints.
4313 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
4314 i386_use_watchpoints.
4315 * i386-nat.c (i386_stopped_data_address): Take two arguments.
4316 (i386_stopped_by_watchpoint): Update call.
4317 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
4318 * config/i386/nm-i386.h: Conditionalize definitions on
4319 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
4320 (i386_use_watchpoints): Declare.
4321 (i386_stopped_data_address): Update.
4322 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
4323 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
4325 2008-02-29 Joel Brobecker <brobecker@adacore.com>
4327 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
4328 * version.in: Bump version to 6.8.50.20080229-cvs.
4330 2008-02-28 Markus Deuling <deuling@de.ibm.com>
4332 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
4335 2008-02-28 Tom Tromey <tromey@redhat.com>
4337 * infcmd.c (notice_args_read): Print result of get_inferior_args.
4339 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
4341 * infcmd.c (kill_if_already_running): Make static. Use
4342 target_require_runnable.
4343 * target.c (target_require_runnable): New.
4344 * target.h (target_require_runnable): Declare.
4346 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
4348 * frame.c (reinit_frame_cache): Only annotate if frames were
4351 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4353 * regformats/reg-ppc.dat: Rename "ps" to "msr".
4354 * regformats/reg-ppc64.dat: Likewise.
4356 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4358 * features/Makefile (%.dat): Emit xmltarget statement.
4360 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
4361 Generate code to set gdbserver_xmltarget in init_registers_${name}.
4363 * regformats/arm-with-iwmmxt.dat: Regenerate.
4364 * regformats/mips64-linux.dat: Regenerate.
4365 * regformats/mips-linux.dat: Regenerate.
4366 * regformats/rs6000/powerpc-32.dat: Regenerate.
4367 * regformats/rs6000/powerpc-64.dat: Regenerate.
4368 * regformats/rs6000/powerpc-e500.dat: Regenerate.
4370 * regformats/reg-arm.dat: Add xmlarch statement.
4371 * regformats/reg-i386.dat: Likewise.
4372 * regformats/reg-i386-linux.dat: Likewise.
4373 * regformats/reg-x86-64-linux.dat: Likewise.
4374 * regformats/reg-spu.dat: Likewise.
4376 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
4378 * remote.c (remote_wait, remote_async_wait): Stop if we receive
4381 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
4383 * utils.c (debug_timestamp): New.
4384 (vfprintf_unfiltered): Print timestamps if requested.
4385 (show_debug_timestamp): New.
4386 (initialize_utils): Register "set debug timestamp".
4387 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
4389 2008-02-27 Joel Brobecker <brobecker@adacore.com>
4391 * breakpoint.c (skip_prologue_sal): New function.
4392 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
4393 computed from a line number.
4395 2008-02-27 Joel Brobecker <brobecker@adacore.com>
4397 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
4398 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
4399 Set PC register type to "code_ptr".
4400 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
4401 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
4402 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
4403 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
4404 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
4405 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
4406 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
4409 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
4411 * regformats/regdat.sh: Rename init_registers function in
4412 generated file to init_registers_${name}.
4414 * regformats/reg-crisv32.dat: Set "name" to crisv32.
4415 * regformats/reg-ppc64.dat: Set "name" to ppc64.
4416 * regformats/reg-s390x.dat: Set "name" to s390x.
4418 2008-02-26 Greg Law <glaw@undo-software.com>
4420 * regcache.c (registers_changed): Call reinit_frame_cache.
4422 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
4424 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
4425 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
4426 and svr4_fetch_objfile_link_map.
4427 * Makefile.in (sh-linux-tdep.o): Update.
4429 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
4431 * amd64-tdep.c (amd64_classify): Add support for decimal float
4433 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
4434 use the struct return convention.
4436 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
4438 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
4439 to old format. Discard breakpoint address if shared library is
4441 (breakpoint_1): Adjust formatting of table header accordingly.
4443 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
4445 * remote.c (remote_get_threadlist): If the response
4446 is empty, don't try to parse it.
4448 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
4450 Unbreak 'target async'.
4451 * serial.c (serial_async): Set the
4452 handler function before enabling async
4455 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
4457 * solib-svr4.c (enable_break): Convert r_brk to a code address.
4459 2008-02-21 Pedro Alves <pedro@codesourcery.com>
4461 * remote.c (extended_remote_attach_1): Set attach_flag.
4462 (extended_remote_create_inferior_1): Clear attach_flag.
4464 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
4466 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
4468 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
4469 * solib-svr4.c (solib_svr4_r_brk): New.
4470 (open_symbol_file_object, svr4_current_sos): Always check the
4472 (svr4_fetch_objfile_link_map): Do not set debug_base.
4473 (enable_break): Use r_brk if it is set.
4474 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
4475 (svr4_lp64_fetch_link_map_offsets): Likewise.
4476 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
4478 2008-02-20 Markus Deuling <deuling@de.ibm.com>
4479 Mark Kettenis <kettenis@gnu.org>
4481 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
4482 trad_frame_saved_reg.
4483 (trad-frame.h): New include.
4485 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
4486 instead of frame_obstack_zalloc.
4487 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
4489 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
4491 2008-02-20 Markus Deuling <deuling@de.ibm.com>
4493 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
4494 from disassemble_info instead of gdbarch_byte_order.
4496 * mips-tdep.c (gdb_print_insn_mips): Likewise.
4497 * arm-tdep.c (gdb_print_insn_arm): Likewise.
4499 2008-02-20 Markus Deuling <deuling@de.ibm.com>
4501 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
4502 gdbarch as parameter.
4504 * gdbarch.{c,h}: Regenerate.
4506 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
4508 * mem-break.c (default_memory_insert_breakpoint)
4509 (default_memory_remove_breakpoint): Likewise.
4510 * target.h (default_memory_remove_breakpoint)
4511 (default_memory_insert_breakpoint): Likewise.
4513 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
4514 parameter. Replace current_gdbarch by gdbarch.
4515 * m32r-tdep.c (m32r_memory_insert_breakpoint)
4516 (m32r_memory_remove_breakpoint): Likewise.
4518 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
4520 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
4522 2008-02-19 Joel Brobecker <brobecker@adacore.com>
4524 * NEWS: Add entry describing Add support improvements.
4526 2008-02-18 Markus Deuling <deuling@de.ibm.com>
4528 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
4531 2008-02-18 Markus Deuling <deuling@de.ibm.com>
4533 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
4534 register_offset_hack anymore.
4536 * regcache.{c,h} (register_offset_hack): Remove.
4538 2008-02-18 Markus Deuling <deuling@de.ibm.com>
4540 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
4542 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
4543 current_gdbarch by gdbarch.
4544 (hppa64_hpux_find_global_pointer): Likewise.
4545 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
4546 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
4547 find_global_pointer.
4549 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
4551 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4553 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
4554 of gdbarch_num_regs.
4556 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
4557 replace current_gdbarch by gdbarch.
4558 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
4560 2008-02-18 Markus Deuling <deuling@de.ibm.com>
4562 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
4563 and replace current_gdbarch by gdbarch.
4565 (store_register): Update call for exec_one_dummy_insn.
4566 (fetch_register, store_register): Update call of regmap.
4568 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
4569 parameter and replace current_gdbarch by gdbarch.
4571 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
4572 the current architecture. Update call for getregs_supplies and
4574 (ppcnbsd_fetch_inferior_registers): Likewise.
4576 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
4577 replace current_gdbarch by gdbarch.
4578 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
4579 get_regcache_arch to get at the current architecture. Update call for
4582 2008-02-18 Markus Deuling <deuling@de.ibm.com>
4584 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
4587 2008-02-15 Markus Deuling <deuling@de.ibm.com>
4589 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
4591 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
4593 * NEWS: Mention pending breakpints in MI.
4595 2008-02-14 Markus Deuling <deuling@de.ibm.com>
4597 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
4599 2008-02-13 Markus Deuling <deuling@de.ibm.com>
4601 Add script to build and test GDB using enable-targets=all.
4603 * gdb_buildall.sh: New file.
4605 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
4607 * NEWS (New native configurations): Xtensa GNU/Linux.
4608 (New targets): Xtensa GNU/Linux.
4609 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
4611 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
4612 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
4613 * configure.tgt (xtensa*-*-linux*): New entry.
4614 * xtensa-config.c (xtensa_tdep): New variable.
4615 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
4616 (rmap): Change format based on new macro XTREG.
4617 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
4618 * xtensa-linux-nat.c: New.
4619 * xtensa-linux-tdep.c: New.
4620 * xtensa-xtregs.c: New.
4621 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
4622 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
4623 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
4624 (xtensa_register_t): New field coprocessor.
4625 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
4626 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
4627 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
4628 Update to handle privileged registers.
4629 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
4630 (xtensa_push_dummy_call): Set windowstart register correctly.
4631 (call0_analyze_prologue): Initialize xtensa_default_isa.
4632 (xtensa_derive_tdep): New.
4633 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
4634 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
4635 Call xtensa_derive_tdep().
4636 * config/xtensa/linux.mh: New.
4637 * regformats/reg-xtensa.dat: New.
4639 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
4641 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
4642 (filenames.h): New include.
4643 * Makefile.in (corelow.o): Add dependency for filenames.h.
4645 2008-02-08 Doug Evans <dje@google.com>
4647 * source.c (find_and_open_source): Always rewrite absolute filenames.
4649 2008-02-07 Doug Evans <dje@google.com>
4651 * breakpoint.c: #include "hashtab.h".
4652 (ambiguous_names_p): New fn.
4653 (update_breakpoint_locations): When restoring bp enable status, don't
4654 compare function names if any functions have same name.
4655 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
4657 2008-02-07 Joel Brobecker <brobecker@adacore.com>
4659 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
4660 instead of just a VEC*. Update use of SV.
4661 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
4663 2007-02-07 Joel Brobecker <brobecker@adacore.com>
4665 * NEWS: Put all new commands since gdb-6.7 together.
4667 2007-02-07 Joel Brobecker <brobecker@adacore.com>
4669 * ada-lang.c: #include "vec.h".
4670 (struct string_vector, new_string_vector, string_vector_append):
4672 (char_ptr): New typedef.
4673 (DEF_VEC_P (char_ptr)): New VEC type.
4674 (symbol_completion_add): Update profile to take the new VEC type
4675 instead of the old string_vector structure. Update code accordingly.
4676 (ada_make_symbol_completion_list): Use the new VEC type instead of
4677 the old string_vector structure, and update the code accordingly.
4678 * Makefile.in (ada-lang.o): Add dependency on vec.h.
4680 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
4682 * p-exp.y: Set current_type in missing places.
4683 (leftdiv_is_integer): New static variable.
4684 Typecast right operand of BINOP_DIV to long_double if both operands
4687 2008-02-06 Maciej W. Rozycki <macro@mips.com>
4689 * remote-mips.c (set_breakpoint): Rename to...
4690 (mips_set_breakpoint): ... this.
4691 (clear_breakpoint): Rename to...
4692 (mips_clear_breakpoint): ... this.
4693 (common_breakpoint): Rename to...
4694 (mips_common_breakpoint): ... this.
4695 (check_lsi_error): Rename to...
4696 (mips_check_lsi_error): ... this.
4698 2007-02-05 Joel Brobecker <brobecker@adacore.com>
4700 * language.h (struct language_defn): Add new field
4701 la_make_symbol_completion_list.
4702 * symtab.c (default_make_symbol_completion_list): Renames
4703 make_symbol_completion_list.
4704 (make_symbol_completion_list): New function.
4705 * symtab.h (default_make_symbol_completion_list): Add declaration.
4706 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
4707 (auto_language, local_language): Likewise.
4708 * objc-lang.c (objc_language_defn): Likewise.
4709 * scm-lang.c (scm_language_defn): Likewise.
4710 * m2-lang.c (m2_language_defn): Likewise.
4711 * f-lang.c (f_language_defn): Likewise.
4712 * jv-lang.c (java_language_defn): Likewise.
4713 * p-lang.c (pascal_language_defn): Likewise.
4714 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
4715 (minimal_language_defn): Likewise.
4716 * ada-lang.c (struct string_vector): New structure.
4717 (new_string_vector, string_vector_append, ada_unqualified_name)
4718 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
4719 (ada_make_symbol_completion_list): New functions.
4720 (ada_language_defn): Set la_make_symbol_completion_list.
4721 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
4722 this function is static.
4724 2008-02-05 Kevin Buettner <kevinb@redhat.com>
4726 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
4727 to account for call site optimizations.
4729 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
4731 * tracepoint.c (read_actions): Handle end-of-text indicator
4732 in action list properly. (Committed by Jim Blandy)
4734 2008-02-05 Jim Blandy <jimb@red-bean.com>
4736 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
4737 pseudoregister, not an internal error.
4738 Reported by: Andrzej Zaborowski
4740 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
4742 * varobj.c (c_value_of_variable): Use xstrdup.
4744 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
4746 Update stored rendition of varobj value when format changes.
4747 * varobj.c (varobj_set_display_format): Recomputed
4749 (c_value_of_variable): Return print_value.
4751 2008-02-03 Doug Evans <dje@google.com>
4753 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
4754 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
4755 * valops.c (value_one): New function.
4756 * value.h (value_one): Declare.
4758 Fix argument promotion for binary arithmetic ops for C.
4759 * valarith.c (unop_result_type): New fn.
4760 (binop_result_type): New fn.
4761 (value_binop): Move result type computation to binop_result_type.
4762 (value_pos, value_neg, value_complement): Move result type
4763 computation to unop_result_type.
4766 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
4767 Return basetype, fieldno if found. All callers updated.
4768 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
4770 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
4771 * symfile.h (fill_in_vptr_fieldno): Delete.
4773 2008-02-02 Doug Evans <dje@google.com>
4775 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
4777 * typeprint.c (*): Whitespace cleanup.
4779 2008-02-02 Mark Kettenis <kettenis@gnu.org>
4780 Luis Machado <luisgpm@br.ibm.com>
4781 Thiago Jung Bauermann <bauerman@br.ibm.com>
4783 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
4784 don't fit into registerson the stack the way GCC does.
4786 2008-02-01 Joel Brobecker <brobecker@adacore.com>
4788 * symtab.c (symbol_set_names): Do not add an entry in the demangling
4789 hash table for Ada symbols. Just store the linkage name as is,
4790 and leave the demangled_name as NULL.
4792 2007-02-01 Joel Brobecker <brobecker@adacore.com>
4794 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
4795 in the global scope.
4796 (new_symbol): Likewise.
4798 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
4800 * breakpoint.c (break_command_1): Return void.
4801 (break_command_really): Return void. Rethrow
4802 exceptions instead of returning.
4803 (gdb_breakpoint): Remove the error_message parameter.
4804 Return void. Rename to set_breakpoint.
4805 * gdb.h (gdb_breakpoint): Rename and move to...
4806 * breakpoint.h (set_breakpoint): ...here.
4807 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
4808 event hooks even if exception is thrown. Adjust to
4809 gdb_breakpoint interface changes.
4812 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
4814 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
4815 float in both first and second word in the doubleword, to support
4818 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
4820 Properly rethrow exception. This fixes errors
4821 about non-existent functions for -break-insert.
4822 * breakpoint.c (break_command_really): Use throw_exception
4823 for rethrowing. If rethrowing, don't print the exception.
4825 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4827 * NEWS: Mention Decimal Floating Point support.
4829 2008-01-31 Joel Brobecker <brobecker@adacore.com>
4831 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
4832 value type to builtin_type_void_func_ptr.
4834 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
4836 * s390-tdep.c (is_float_singleton, is_float_like,
4837 alignment_of, s390_return_value): Make checks for
4838 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
4840 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
4841 Thiago Jung Bauermann <bauerman@br.ibm.com>
4843 * infcmd.c (default_print_registers_info): Also print hex
4844 raw contents for TYPE_CODE_DECFLOAT registers.
4845 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
4846 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
4847 (rs6000_register_name): Add support for DFP pseudo-registers.
4848 (rs6000_pseudo_register_type): Likewise.
4849 rs6000_pseudo_register_reggroup_p): Likewise.
4850 (ppc_pseudo_register_read): New function.
4851 (ppc_pseudo_register_write): Likewise.
4852 (rs6000_pseudo_register_read): Likewise.
4853 (rs6000_pseudo_register_write): Likewise.
4854 (e500_pseudo_register_read): Move checks to
4855 rs6000_pseudo_register_read.
4856 (e500_pseudo_register_write): Move checks to
4857 rs6000_pseudo_register_write.
4858 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
4859 rs6000_pseudo_register_read and rs6000_pseudo_register_write
4860 in gdbarch if SPE or DFP is available. Adjust gdbarch's
4861 num_pseudo_regs to account for DFP pseudo regs.
4863 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4865 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
4866 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
4867 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
4868 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
4869 e500_pseudo_register_read, e500_pseudo_register_write): Use
4870 IS_SPE_PSEUDOREG macro.
4871 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
4872 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
4873 Remove initialization of tdep->ppc_ev31_regnum.
4875 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
4877 * printcmd.c (print_formatted): Handle references as for unformatted
4880 2008-01-30 Joel Brobecker <brobecker@adacore.com>
4882 * eval.c (evaluate_subexp_standard): Add handling of user
4883 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
4885 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
4887 * eval.c (evaluate_subexp_standard): Support
4888 BINOP_INTDIV opcode.
4890 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
4892 * valarith.c (value_binop): Add floating-point BINOP_MIN and
4894 For BINOP_EXP, use length and signedness of left operand only for
4895 result, as for shifts.
4896 For integral operands to BINOP_EXP, use new integer_pow and
4897 uinteger_pow functions so as to get full range of results.
4898 (integer_pow): New function.
4899 (uinteger_pow): New function.
4901 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
4903 Use vector for varobj_list_children interface.
4904 * gdb/varobj.c (varobj_list_children): Return vector
4906 * gdb/varobj.h (varobj_list_children): Adjust
4908 (varobj_p): Declare. Declare vector thereof.
4909 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
4910 for varobj_list_children change.
4911 * Makefile.in (varobj_h): Update dependencies.
4913 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
4915 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
4916 TYPE_CODE_DECFLOAT arguments.
4917 (ppc64_sysv_abi_push_dummy_call) Likewise.
4918 (get_decimal_float_return_value): New function.
4919 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
4920 values by calling get_decimal_float_return_value.
4921 (ppc64_sysv_abi_return_value): Likewise.
4923 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
4925 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
4926 for preprocessor macro information. Formatting changes.
4928 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
4930 * remote.c (struct remote_state): Add cached_wait_status.
4931 (remote_exec_file): New variable.
4932 (PACKET_vAttach, PACKET_vRun): New constants.
4933 (extended_remote_restart): Do not query for status.
4934 (struct start_remote_args): New.
4935 (remote_start_remote): Take it as a second argument. Check
4936 whether the target is running. Issue an error for non-running
4937 non-extended targets. Cache the wait status. Set inferior_ptid
4939 (remote_open_1): Prompt to disconnect non-running targets. Make
4940 sure the target is marked running. Do not set inferior_ptid here.
4941 Update call to remote_start_remote. Do not call remote_check_symbols
4942 if the target is not running.
4943 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
4944 argument. Handle a non-running target.
4945 (remote_detach): Use it.
4946 (extended_remote_detach): New.
4947 (remote_disconnect): Fix typo. Use remoute_mourn_1.
4948 (extended_remote_attach_1, extended_remote_attach)
4949 (extended_async_remote_attach): New.
4950 (remote_vcont_resume): Remove unused variable.
4951 (remote_wait, remote_async_wait): Use any cached wait status.
4952 (putpkt_binary, getpkt): Clear any cached wait status.
4953 (extended_remoute_mourn_1): New.
4954 (extended_remote_mourn): Use it.
4955 (extended_async_remote_mourn, extended_remote_run): New.
4956 (extended_remote_create_inferior_1): New.
4957 (extended_remote_create_inferior): Use it.
4958 (extended_remote_async_create_inferior): Likewise.
4959 (remote_xfer_partial): Skip for non-executing targets.
4960 (init_extended_remote_ops): Set to_detach and to_attach.
4961 (init_extended_async_remote_ops): Likewise. Use
4962 extended_async_remote_mourn.
4963 (_initialize_remote): Register vAttach, vRun, and
4964 set remote exec-file.
4965 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
4967 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
4969 * Makefile.in (symfile.o): Update.
4970 * NEWS: Mention exec tracing support.
4971 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
4973 * infcmd.c (kill_if_already_running, detach_command)
4974 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
4975 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
4976 (follow_exec): Do not check may_follow_exec. Do not mourn and push
4977 targets. Apply the sysroot path to the loaded executable. Use
4978 no_shared_libraries.
4979 * linux-nat.c (linux_child_follow_fork): Print fork following
4980 messages if verbose.
4981 (kill_wait_callback): Kill again before waiting a second time.
4982 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
4983 no_shared_libraries.
4985 2008-01-29 Joel Brobecker <brobecker@adacore.com>
4987 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
4989 2008-01-29 Joel Brobecker <brobecker@adacore.com>
4991 * nto-tdep.h: Remove #include "defs.h".
4992 * nto-tdep.c: Add #include "defs.h".
4993 * Makefile.in (nto_tdep_h): Update dependencies.
4994 (nto-tdep.o): Likewise.
4996 2008-01-29 Joel Brobecker <brobecker@adacore.com>
4998 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
5000 (proceed, start_remote): Update call to wait_for_inferior.
5001 * inferior.h (wait_for_inferior): Update declaration.
5002 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
5003 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
5004 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
5005 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
5007 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
5009 * varobj (adjust_value_for_child_access): Added checking for
5010 returned value from gdb_value_ind.
5011 (c_describe_child): Likewise.
5012 (cplus_describe_child): Fixed a typo.
5014 2008-01-29 Jim Blandy <jimb@red-bean.com>
5016 * MAINTAINERS: Update my info.
5018 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
5020 Use multiple locations for hardware watchpoints.
5021 This eliminates the need to traverse value chain, doing
5022 various checks, in three different places.
5024 * breakpoint.h (struct bp_location): New fields
5025 lengths and watchpoint_type.
5026 (struct breakpoint): Remove the val_chain field.
5027 * breakpoint.c (is_hardware_watchpoint): New.
5028 (free_valchain): Remove.
5029 (update_watchpoint): New.
5030 (insert_bp_location): For hardware watchpoint, just
5032 (insert_breakpoints): Call update_watchpoint_locations
5033 on all watchpoints. If we have failed to insert
5034 any location of a hardware watchpoint, remove all inserted
5036 (remove_breakpoint): For hardware watchpoints, directly
5038 (watchpoints_triggered): Iterate over locations.
5039 (bpstat_stop_status): Use only first location of
5040 a resource watchpoint.
5041 (delete_breakpoint): Don't call free_valchain.
5042 (print_one_breakpoint): Don't print all
5043 locations for watchpoints.
5044 (breakpoint_re_set_one): Use update_watchpoint for
5047 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
5049 Don't reset watchpoint block on solib load.
5051 * breakpoint.c (insert_bp_location): For watchpoints,
5052 recompute condition.
5053 (breakpoint_re_set_one): Instead of recomputing value
5054 and condition for watchpoints, just reset value and
5055 let insert_breakpoints/insert_bp_location recompute it.
5056 Don't do anything about disabled watchpoint.
5058 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
5060 * valarith.c (value_binop): Handle unsigned integer
5063 2008-01-28 Kevin Buettner <kevinb@redhat.com>
5065 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
5066 instruction pattern that appears frequently in position
5067 independent code. Fix bug in code which looks for "fmov" and
5068 backtracks if no "fmov" is found.
5070 2008-01-28 Doug Evans <dje@google.com>
5072 * dbxread.c (read_dbx_symtab): Fix indentation.
5073 Reformat comments to 80 columns.
5074 Move local var def closer to only use.
5076 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
5078 * fork-child.c (SHELL_FILE): Remove #ifndef.
5079 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
5081 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
5083 * i386-tdep.c (i386_skip_noop): New function.
5084 (i386_analyze_prologue): Call i386_skip_noop function.
5086 2008-01-24 Michael Snyder <msnyder@specifix.com>
5088 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
5089 * win32-nat.c (win32_xfer_partial): Ditto.
5090 * target.c (default_xfer_partial): Minor whitespace adjustment.
5092 2008-01-24 Pedro Alves <pedro@codesourcery.com>
5094 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
5095 strip bit 1 even if pc doesn't point to thumb code.
5097 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
5099 * remote.c (remote_wait): Handle SIGINT between packets.
5100 (remote_async_wait): Likewise.
5102 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
5103 Chris Demetriou <cgd@google.com>
5105 * thread.c (add_thread_silent): Renamed
5107 (print_thread_events): New variable definition.
5108 (show_print_thread_events): New function.
5109 (_initialize_thread): Add "set print thread-events" and
5110 "show print thread-events" commands.
5111 (add_thread): Announce new thread.
5112 * gdbthread.h (add_thread_silent): Declare.
5113 (print_thread_events): New variable declaration.
5114 * inf-ttrace.c (inf_ttrace_wait): Don't
5115 inform about new thread, as add_thread is always
5116 called too, and will take care of that.
5117 * infrun.c (handle_inferior_event): Likewise.
5118 * procfs.c (procfs_wait): Likewise.
5119 * remote.c (remote_currthread): Likewise.
5120 * sol-thread.c (sol_thread_wait): Likewise.
5121 * win32-nat.c (get_win32_debug_event): Likewise.
5122 * linux-thread-db.c (attach_thread): Likewise.
5123 Remove the verbose parameter.
5124 (check_event): Make detach_thread be verbose
5125 only if print_thread_events is set.
5126 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
5127 about new thread. This is called only from
5128 linux-thread-db.c:attach_thread, which will take care.
5129 Remove the verbose parameter.
5130 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
5132 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
5134 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
5136 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
5138 * breakpoint.c (break_command_really): New parameter
5140 (break_command_1): Pass 0 as
5141 ignore_count to break_command_really.
5142 (gdb_breakpoint): Pass ignore_count to
5143 break_command_really.
5145 2008-01-21 Kevin Buettner <kevinb@redhat.com>
5147 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
5148 sigcontext struct via pointer.
5149 (struct sigframe comment): Update to show new field `psc'.
5151 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
5153 * infrun.c (handle_inferior_event): If
5154 we failed to remove breakpoints, error,
5155 don't try to increment PC by hand.
5157 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
5159 Add NetBSD/hppa target and host support.
5161 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
5162 (hppabsd_gregset): Move to ...
5163 (hppabsd_regset_from_core_section): Rename
5164 hppaobsd_regset_from_core_section and move to ...
5165 (hppabsd_find_global_pointer): Update comment.
5166 (hppabsd_init_abi): Make global. Do not register
5167 hppabsd_regset_from_core_section.
5168 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
5170 (_initialize_hppabsd_tdep): Move to ...
5171 * hppaobsd-tdep.c: ... here. New file.
5172 * hppnbsd-tdep.c: New file.
5173 * hppnbsd-nat.c: New file.
5174 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
5175 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5176 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
5177 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
5178 * configure.host (hppa*-*-netbsd*): New entry.
5179 * configure.tgt (hppa*-*-netbsd*): New entry.
5180 (hppa*-*-openbsd*): Update.
5181 * NEWS (New native configuration): Mention NetBSD/hppa.
5182 (New targets): Mention NetBSD/hppa.
5184 2008-01-18 Markus Deuling <deuling@de.ibm.com>
5186 * gdbarch.sh (function_list): Add new property bits_big_endian to
5188 * gdbarch.{c,h}: Regenerate.
5190 * value.c (struct value): Replace BITS_BIG_ENDIAN by
5191 gdbarch_bits_big_endian (comment).
5192 (unpack_field_as_long, modify_field): Likewise.
5193 * value.h: Likewise (comment).
5194 * valops.c (value_slice): Likewise.
5195 * valarith.c (value_subscript, value_bit_index): Likewise.
5196 * gdbtypes.h (field): Likewise (comment).
5197 * eval.c (evaluate_subexp_standard): Likewise.
5198 * dwarf2read.c (dwarf2_add_field): Likewise.
5199 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
5200 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
5202 * defs.h (BITS_BIG_ENDIAN): Remove.
5204 2008-01-18 Markus Deuling <deuling@de.ibm.com>
5206 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
5208 * m2-exp.y (yylex): Likewise.
5209 * objc-exp.y (yylex): Likewise.
5211 * defs.h (DEPRECATED_STREQN): Remove.
5213 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
5215 * MAINTAINERS: Update my email address.
5217 2008-01-17 Jim Blandy <jimb@codesourcery.com>
5219 * README: Mention gdbserver/README.
5221 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
5223 * valarith.c (value_binop): Handle BINOP_INTDIV
5224 for unsigned and signed integers.
5226 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
5228 * s390-tdep.c (s390_gdbarch_init): Set default long double
5229 type to 128-bit IEEE quad.
5231 2008-01-17 Joel Brobecker <brobecker@adacore.com>
5233 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
5235 2008-01-16 Mark Kettenis <kettenis@gnu.org>
5237 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
5239 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
5240 * value.c: All callers changed.
5242 2008-01-16 Markus Deuling <deuling@de.ibm.com>
5244 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
5245 DEPRECATED_STREQ by its expression.
5246 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
5247 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
5248 (scan_xcoff_symtab): Likewise.
5249 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
5250 * f-lang.c (find_common_for_function): Likewise.
5251 * objc-exp.y (parse_number): Likewise.
5253 * defs.h (DEPRECATED_STREQ): Remove.
5255 2008-01-16 Markus Deuling <deuling@de.ibm.com>
5257 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
5258 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
5259 get_frame_arch to get at the current_architecture. Update AM33_MODE
5261 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
5262 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
5264 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
5266 2008-01-16 Markus Deuling <deuling@de.ibm.com>
5268 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
5270 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
5272 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
5273 current_gdbarch by gdbarch. Update caller.
5275 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
5276 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
5277 the current architecture. Update calls of
5278 amd64_native_gregset_supplies_p.
5279 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
5280 (amd64bsd_store_inferior_registers): Likewise.
5282 2008-01-16 Markus Deuling <deuling@de.ibm.com>
5284 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
5285 Replace current_gdbarch by gdbarch. Update caller.
5287 2008-01-16 Markus Deuling <deuling@de.ibm.com>
5289 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
5290 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
5291 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
5292 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
5293 (stabsect_build_psymtabs): Fix indentation.
5295 2008-01-15 Michael Snyder <msnyder@specifix.com>
5297 * corelow.c (core_xfer_partial): Comment, cut/paste error.
5299 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
5301 * win32-nat.c (win32_create_inferior): Restore code calling
5302 CloseHandle on ProcessInformation structure.
5304 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
5306 * configure.ac: Check for void * as 3 argument of ptrace.
5307 * configure: regenerate.
5309 2008-01-11 Markus Deuling <deuling@de.ibm.com>
5311 * alpha-tdep.c (alpha_heuristic_proc_start)
5312 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
5313 current_gdbarch by gdbarch.
5315 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
5316 current architecture by frame_info. Update alpha_heuristic_proc_start
5319 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
5320 get_frame_arch to get at the current architecture by frame_info. Update
5321 alpha_sigtramp_register_address call.
5323 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
5324 current_gdbarch by gdbarch. Update caller.
5325 (convert_to_extended, convert_from_extended): Add endianess parameter
5326 for comparison. Update caller.
5327 (arm_extract_return_value, arm_store_return_value): Use
5328 get_regcache_arch to get at the current architecture.
5330 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
5331 current_gdbarch by gdbarch. Update caller.
5332 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
5333 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
5335 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
5336 gdbarch as parameter. Update caller.
5337 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
5338 current_gdbarch by gdbarch. Update caller.
5340 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
5341 update caller. Replace current_gdbarch by gdbarch.
5343 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
5344 the current architecture. Replace current_gdbarch by gdbarch.
5345 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
5346 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
5347 expression. Add gdbarch as parameter and replace current_gdbarch with
5349 (M6811_TDEP): Remove.
5350 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
5352 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
5353 current_gdbarch by gdbarch. Update caller.
5355 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
5357 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
5360 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
5361 caller. Relace current_gdbarch by gdbarch.
5362 (altivec_register_p, spe_register_p): Likewise.
5363 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
5365 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
5366 altivec_register_p and spe_register_p.
5368 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
5369 caller. Replace current_gdbarch by gdbarch.
5370 (score_analyze_prologue): use get_frame_arch to get at the current
5373 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
5374 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
5375 current_gdbarch by gdbarch. Update caller.
5376 (sparc_frame_cache): Use get_frame_arch to get at the current
5378 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
5379 sparc_analyze_prologue.
5381 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
5384 2008-01-11 Markus Deuling <deuling@de.ibm.com>
5386 * exec.c: #include "arch-utils.h"
5387 (print_section_info): Use gdbarch_from_bfd to get at the
5388 current architecture. Replace current_gdbarch. Fix indention. Replace
5389 deprecated_print_address_numeric by paddress.
5390 * Makefile.in (exec.o) Add dependency to arch-utils.h.
5392 * valprint.c (val_print_string): Replace
5393 deprecated_print_address_numeric.
5394 * tracepoint.c (trace_mention, scope_info): Likewise.
5395 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
5396 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
5397 (maintenance_check_symtabs): Likewise.
5398 * symfile.c (list_overlays_command): Likewise.
5399 * stack.c (frame_info, print_block_frame_labels): Likewise.
5400 * printcmd.c (print_address, print_address_demangle)
5401 (address_info): Likewise.
5402 * corefile.c (memory_error): Likewise.
5403 * infcmd.c (jump_command): Likewise.
5404 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
5405 (mention, delete_breakpoint): Likewise.
5406 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
5407 * dwarf2read.c (dump_die): Likewise.
5408 * ada-valprint.c (ada_val_print_1): Likewise.
5409 * f-valprint.c (f_val_print): Likewise.
5410 * linux-fork.c (info_forks_command): Likewise.
5411 * m32r-com.c (m32r_load_section, m32r_load)
5412 (m32r_upload_command): Likewise.
5414 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
5416 2008-01-11 Markus Deuling <deuling@de.ibm.com>
5418 * gdbarch.sh (skip_prologue): Add gdbarch
5420 * gdbarch.{c,h}: Regenerate.
5422 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
5423 * amd64-tdep.c (amd64_skip_prologue): Likewise.
5424 * avr-tdep.c (avr_skip_prologue): Likewise.
5425 * cris-tdep.c (cris_skip_prologue): Likewise.
5426 * frv-tdep.c (frv_skip_prologue): Likewise.
5427 * h8300-tdep.c (h8300_skip_prologue): Likewise.
5428 * hppa-tdep.c (hppa_skip_prologue): Likewise.
5429 * i386-tdep.c (i386_skip_prologue): Likewise.
5430 * ia64-tdep.c (ia64_skip_prologue): Likewise.
5431 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
5432 * m32r-tdep.c (m32r_skip_prologue): Likewise.
5433 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
5434 * m68k-tdep.c (m68k_skip_prologue): Likewise.
5435 * m88k-tdep.c (m88k_skip_prologue): Likewise.
5436 * mep-tdep.c (mep_skip_prologue): Likewise.
5437 * mips-tdep.c (mips_skip_prologue): Likewise.
5438 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
5439 * mt-tdep.c (mt_skip_prologue): Likewise.
5440 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
5441 * score-tdep.c (score_skip_prologue): Likewise.
5442 * sh64-tdep.c (sh64_skip_prologue): Likewise.
5443 * sh-tdep.c (sh_skip_prologue): Likewise.
5444 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
5445 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
5446 * spu-tdep.c (spu_skip_prologue): Likewise.
5447 * v850-tdep.c (v850_skip_prologue): Likewise.
5448 * vax-tdep.c (vax_skip_prologue): Likewise.
5449 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5450 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
5452 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
5453 current_gdbarch by gdbarch.
5454 * m32c-tdep.c (m32c_skip_prologue): Likewise.
5455 * s390-tdep.c (s390_skip_prologue): Likewise.
5457 2008-01-10 Doug Evans <dje@google.com>
5459 * defs.h (struct continuation_arg): Fix typo in comment.
5460 * target.c (target_translate_tls_address): Fix comment spelling error.
5462 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
5464 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
5465 (DOUBLEST_SCAN_FORMAT): Likewise.
5466 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
5467 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
5468 * c-exp.y (parse_number): Likewise.
5469 * jv-exp.y (parse_number): Likewise.
5470 * objc-exp.y (parse_number): Likewise.
5471 * p-exp.y (parse_number): Likewise.
5473 2008-01-09 Joel Brobecker <brobecker@adacore.com>
5475 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
5476 (check_typedef): Likewise.
5478 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
5480 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
5481 seen_double_big_d, treat the new H, D, and DD modifiers as length
5484 2008-01-08 Joel Brobecker <brobecker@adacore.com>
5486 * dwarf2read.c (read_enumeration_type): Add comment.
5488 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
5490 * config.in: Regenerate.
5492 2008-01-08 Joel Brobecker <brobecker@adacore.com>
5494 * ada-lang.c (ada_convert_actual): Renames convert_actual.
5496 (ada_convert_actuals): Delete.
5497 * ada-lang.h (ada_convert_actual): Add declaration.
5498 (ada_convert_actuals): Remove declaration.
5499 * infcall.c: #include "ada-lang.h".
5500 (value_arg_coerce): Add new parameter sp. Update function
5501 documetnation. Add handling of Ada function call parameters.
5502 * Makefile.in (infcall.o): Update dependencies.
5504 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
5506 * ada-lang.c (ensure_lval): Fix value lval kind.
5507 (convert_actual): Add handling for arguments passed by reference.
5509 2008-01-08 Doug Evans <dje@google.com>
5511 * dbxread.c (read_dbx_symtab): Fix indentation.
5513 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
5515 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
5516 (valarith.o): Depend on dfp.h.
5517 (valops.o): Likewise.
5518 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
5519 (set_decnumber_context): New function.
5520 (decimal_check_errors): Likewise.
5521 (decimal_from_number): Likewise.
5522 (decimal_to_number): Likewise.
5523 (decimal_from_string): Use set_decnumber_context and
5524 decimal_check_errors.
5525 (decimal_from_integral): New function.
5526 (decimal_from_floating): Likewise.
5527 (decimal_to_double): Likewise.
5528 (promote_decimal): Likewise.
5529 (decimal_binop): Likewise.
5530 (decimal_is_zero): Likewise.
5531 (decimal_compare): Likewise.
5532 (decimal_convert): Likewise.
5533 * dfp.h (decimal_from_integral): New prototype.
5534 (decimal_from_floating): Likewise.
5535 (decimal_to_double): Likewise.
5536 (decimal_binop): Likewise.
5537 (decimal_is_zero): Likewise.
5538 (decimal_compare): Likewise.
5539 (decimal_convert): Likewise.
5540 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
5541 call to value_from_decfloat.
5542 * valarith.c: Include dfp.h.
5543 (value_args_as_decimal): New function.
5544 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
5545 (value_logical_not): Likewise.
5546 (value_equal): Likewise.
5547 (value_less): Likewise.
5548 (value_pos): Likewise.
5549 (value_neg): Formatting fix.
5550 * valops.c: Include dfp.h.
5551 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
5552 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
5553 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
5554 (value_from_decfloat): Remove expect_type argument.
5555 * value.h (value_from_decfloat): Update prototype.
5557 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
5559 Ignore change in name of dynamic linker during
5560 execution on Solaris. This also unbreaks pending breakpoints.
5562 * solist.h (struct target_so_ops): New field same.
5563 * solib-svr4.c (svr4_same): New.
5564 (_initialize_svr4_solib): Register svr4_same.
5565 * solib.c (update_solib_list): Use ops->same, if available.
5567 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
5569 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
5570 when using MS-DOS paths.
5572 2008-01-05 Pedro Alves <pedro@codesourcery.com>
5574 * NEWS: Mention --pid and --core command line behaviour changes.
5576 2008-01-05 Pedro Alves <pedro@codesourcery.com>
5578 * main.c (captured_main): Remove 'count' varible and the
5579 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
5580 --pid options were issued simultaneously. If an explicit pid
5581 option was passed, don't fallback to core file. Detect extra
5582 arguments better in the presence of explicit pid or core
5585 2008-01-05 Joel Brobecker <brobecker@adacore.com>
5587 * ada-lang.c (ada_which_variant_applies): Correctly compute
5588 the value of the discriminant when the variant record is packed.
5590 2008-01-04 Joel Brobecker <brobecker@adacore.com>
5592 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
5593 that are used to differentiate homonyms.
5595 2008-01-04 Jerome Guitton <guitton@adacore.com>
5597 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
5598 when the type is an anonymous pointer type.
5599 (ada_check_typedef): Avoid a seg fault when the type is null.
5600 * ada-typeprint.c (print_array_type): Add support for pointer
5603 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
5605 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
5607 2008-01-04 Joel Brobecker <brobecker@adacore.com>
5609 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
5610 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
5612 2008-01-04 Joel Brobecker <brobecker@adacore.com>
5614 * ada-exp.y (chop_separator): New function.
5615 (write_selectors): Rewrite to re-use chop_separator.
5616 (ada_nget_field_index, get_symbol_field_type): New functions.
5617 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
5620 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5622 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
5623 of SYMBOL_VALUE when working with function symbols.
5625 2008-01-03 Joel Brobecker <brobecker@adacore.com>
5627 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
5628 expressions. These expressions do not need to be rewriten.
5630 2008-01-03 Joel Brobecker <brobecker@adacore.com>
5632 * dwarf2read.c (read_enumeration_type): Flag type as stub if
5633 the given die is a declaration.
5635 2008-01-03 Joel Brobecker <brobecker@adacore.com>
5637 * ada-lang.c (ada_array_bound_from_type): Make non-static.
5638 Handle properly the case when the index type is an enumerated type.
5639 Do not return the subtype of the bounds type, just return the
5640 bounds type directly - this is not needed and is more consistent
5641 with what we do for arrays when no XA parallel type exists.
5643 2008-01-03 Joel Brobecker <brobecker@adacore.com>
5645 * ada-lang.c (static_unwrap_type): Add forward declaration.
5646 (template_to_static_fixed_type): Fields of dynamic types sometimes
5647 also need to be unwrapped. Take this into account.
5648 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
5649 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
5650 * ada-typeprint.c (ada_print_type): Get the typename from
5651 the original type, not the base type.
5653 2008-01-03 Jerome Guitton <guitton@adacore.com>
5655 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
5656 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
5657 Update calls to ada_to_fixed_type.
5658 (ada_template_to_fixed_record_type_1): Ditto, but without looking
5660 (ada_to_fixed_type): Add check_tag parameter; do not look for
5661 tag if null. When looking for a tag, use a fixed record type.
5662 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
5663 * ada-valprint.c (printable_val_type, ada_value_print): Update
5664 calls to ada_to_fixed_type.
5666 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
5668 * doublest.c (convert_floatformat_to_doublest): Call
5669 floatformat_to_doublest instead of floatformat_to_double and use
5671 (convert_doublest_to_floatformat): Call floatformat_from_doublest
5672 instead of floatformat_from_double and use DOUBLEST variables.
5674 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
5676 * MAINTAINERS (Write After Approval): Add self.
5678 2008-01-03 Joel Brobecker <brobecker@adacore.com>
5680 * symfile.c (set_initial_language): Make non-static.
5681 * symfile.h (set_initial_language): Add declaration.
5682 * language.c: #include "symfile.h".
5683 (set_language): Call set_initial_language if the frame language
5684 could not be determined.
5686 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
5688 * eval.c (evaluate_subexp_for_address): Provide frame address to
5689 locate_var_value only if it will be needed.
5691 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5693 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
5695 2008-01-02 Joel Brobecker <brobecker@adacore.com>
5697 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
5698 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
5699 This is needed to make sure that any other treatment applied
5700 to the resulting value does not fail for spurious reason,
5701 such as trying to take the address of this value.
5703 2008-01-02 Joel Brobecker <brobecker@adacore.com>
5705 * ada-lang.c (ada_value_equal): Dereference reference types when
5708 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
5710 Updated copyright notices for most files.
5712 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
5714 * win32-nat.c (psapi_module_handle): Remove static.
5715 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
5716 return first module found if base_address is zero. Don't initialize
5717 psapi function pointers here. Convert to cygwin paths when
5719 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
5720 executable name. Use get_module_name when that fails or when
5722 (_initialize_psapi): New function. Initialize psapi stuff before it is
5723 needed or issue a warning if it is not found. Move psapi_module_handle
5726 2008-01-01 Joel Brobecker <brobecker@adacore.com>
5728 * ada-lang.c (ada_remove_trailing_digits): New function.
5729 (ada_remove_po_subprogram_suffix): New function.
5730 (ada_decode): Improve. Move the description of the algorithm
5731 directly inside the code, instead of in the function global
5734 2008-01-01 Joel Brobecker <brobecker@adacore.com>
5736 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
5737 and always print the dereferenced value.
5739 2008-01-01 Joel Brobecker <brobecker@adacore.com>
5741 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
5742 of the case where the first argument is a reference.
5743 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
5745 2008-01-01 Joel Brobecker <brobecker@adacore.com>
5747 Implement support for Ada interface types.
5749 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
5750 (ada_is_ignored_field): Ignore fields that are a dispatch table
5753 2008-01-01 Joel Brobecker <brobecker@adacore.com>
5755 * top.c (print_gdb_version): Update copyright year.
5757 2008-01-01 Joel Brobecker <brobecker@adacore.com>
5759 * ChangeLog-2007: New ChangeLog rotation.
5760 * ChangeLog: Reset for 2008.
5761 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
5764 For older changes see ChangeLog-2007.
5770 version-control: never