1 2008-07-12 Pedro Alves <pedro@codesourcery.com>
3 * infrun.c (struct thread_stepping_state): Delete sal member.
4 (init_thread_stepping_state): Add local sal. Use it instead of
6 (handle_inferior_event): New local stop_pc_sal. Use it instead of
8 (step_into_function): Add local stop_func_sal. Use it instead of
11 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
13 Implement -exec-continue/-exec-interrupt --all.
14 * infcmd.c (continue_1): New, extracted from
15 (continue_command): ...here.
16 (interrupt_target_1): New, extracted from
17 (interrupt_target_command): ...here.
18 * inferior.h (continue_1, interrupt_target_1): New.
19 * mi/mi-main.c (mi_cmd_exec_continue)
20 (mi_cmd_exec_interrupt): Handle --all.
22 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
24 Implement --thread and --frame.
25 * gdbthread.h (find_thread_id): Declare.
26 * thread.c (find_thread_id): Make non-static.
27 * mi/mi-main.c (mi_cmd_execute): Switch to the right
28 thread and frame, if necessary.
29 * mi/mi-parse.c (mi_parse): Handle --thread and --frame.
30 * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
32 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
34 * infrun.c (resume): Discard cleanups on early exit path.
36 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
38 * infrun.c (normal_stop): For MI, report which threads
41 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
43 Report thread state in -thread-info output.
44 * thread.c (print_thread_info): Add new field "state".
46 2008-07-11 Pedro Alves <pedro@codesourcery.com>
48 * infrun.c (handle_inferior_event): Also ignore a
49 TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP.
51 2008-07-11 Tom Tromey <tromey@redhat.com>
53 * completer.c (complete_line_internal): New function, from
54 complete_line. Add 'for_help' parameter.
55 (complete_line): Use it.
56 (command_completer): Move later. Rewrite.
58 2008-07-11 Pedro Alves <pedro@codesourcery.com>
60 * thread.c (thread_apply_command): Move making the cleanup out of
63 2008-07-11 Pedro Alves <pedro@codesourcery.com>
67 * thread.c (enum thread_state): New.
68 (thread_state main_thread_running): Delete, in favor of...
69 (thread_state main_thread_state): ... this. Update throughout.
70 (clear_thread_inferior_resources): New, split from free_thread.
71 (free_thread): Call clear_thread_inferior_resources.
72 (init_thread_list): Set main thread to stopped state.
73 (add_thread_silent): Take care of PTID reuses.
74 (delete_thread): If deleting inferior_ptid or a thread with
75 refcount > 0, mark it as exited, but still keep it in the list.
76 Only notify of thread exits, if we haven't done so yet.
77 (iterate_over_threads): Make it safe to delete threads while
79 (do_captured_list_thread_ids): Don't account for exited threads.
80 (thread_alive): Check for the THREAD_EXITED state, and don't set
81 ptid to -1 on exited threads.
82 (set_running): Update to account for extra possible states.
83 (is_thread_state): New.
84 (is_stopped, is_exited): New.
85 (is_running): Implement in terms of is_thread_state.
86 (any_running): Update.
87 (print_thread_info): Update. Account for exited threads. Don't
88 warn about missed frame restoring here, its done in the cleanup.
89 (switch_to_thread): Don't read from a thread that has gone.
90 (restore_current_thread): In non-stop mode, do a full context
92 (restore_selected_frame): Add a frame_level argument. Rewrite.
93 (struct current_thread_cleanup): Add selected_frame_level and
95 (do_restore_current_thread_cleanup): Check if thread was stopped
96 and still is, and if the target has registers, stack and memory
97 before restoring the selected frame. Don't delete the cleanup
99 (restore_current_thread_cleanup_dtor): New.
100 (make_cleanup_restore_current_thread): Remove all arguments.
102 (thread_apply_all_command): Update. Prune threads.
103 (thread_apply_command): Update.
104 (thread_command): Account for currently selected exited thread.
105 (do_captured_thread_select): Check for a running thread. Prune
107 (_initialize_thread): Make "info threads", "thread", "thread
108 apply", and "thread apply all" appliable without a selected thread.
109 * gdbthread.h (struct thread_info): Replace running_ by state_.
111 (is_exited, is_stopped): Declare.
112 (make_cleanup_restore_current_thread): Remove all arguments.
113 * infrun.c: Include "event-top.h".
114 (fetch_inferior_event): In non-stop mode, restore selected thread
115 and frame after handling the event and running breakpoint
116 commands. Display GDB prompt if needed.
117 (normal_stop): In non-stop mode, don't print thread switching
119 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
120 (get_cmd_no_selected_thread_ok): New.
121 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New.
122 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
124 * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as
125 no-selected-thread ok.
126 * top.c (execute_command): Check for non no-selected-thread-ok
128 * linux-nat.c (struct saved_ptids, threads_to_delete)
129 (record_dead_thread, prune_lwps): Delete.
130 (exit_lwp): Unconditionally delete thread.
131 (linux_nat_resume): Remove prune_lwps call.
132 * infcmd.c (proceed_thread_callback): Check if !is_stopped instead
133 of is_running. Adjust to make_cleanup_restore_current_thread
135 * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the
136 selected thread has exited.
137 * inf-loop.c (inferior_event_handler): Don't display the prompt
139 * varobj.c (c_value_of_root): Update.
140 * defs.h (make_cleanup_dtor): Declare.
141 * utils.c (make_cleanup_dtor): New.
143 * Makefile.in (infrun.o): Depend on $(event_top_h).
145 2008-07-11 Pedro Alves <pedro@codesourcery.com>
147 Add "continue -a" and "interrupt -a" options for non-stop mode.
149 * infcmd.c (proceed_thread_callback, do_context_switch_to): New.
150 (continue_command): Add "-a" option.
151 (interrupt_target_command): Add "-a" option.
152 (_initialize_infcmd): Add extend help of continue and interrupt
153 command to mention the new "-a" option. Mark "continue" async ok.
155 2008-07-10 Doug Evans <dje@google.com>
157 Add "set print symbol-loading on|off".
158 * NEWS: Document new option.
159 * symfile.h (print_symbol_loading): Declare.
160 * symfile.c (print_symbol_loading): New global.
161 (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols
162 from ..." if print_symbol_loading.
163 (_initialize_symfile): Add set/show print symbol-loading.
164 * solib.c (solib_read_symbols): Only print "Loaded symbols for ..."
165 if print_symbol_loading.
167 2008-07-10 Pedro Alves <pedro@codesourcery.com>
169 Non-stop linux native.
171 * linux-nat.c (linux_test_for_tracefork): Block events while we're
173 (get_pending_status): Implement non-stop mode.
174 (linux_nat_detach): Stop threads before detaching.
175 (linux_nat_resume): In non-stop mode, always resume only a single
177 (linux_handle_extended_wait): On a clone event, in non-stop mode,
178 add new lwp to GDB's thread table, and mark as running, executing
179 and stopped appropriately.
180 (linux_nat_filter_event): Don't assume there are other running
181 threads when a thread exits.
182 (linux_nat_wait): Mark the main thread as running and executing.
183 In non-stop mode, don't stop all lwps.
184 (linux_nat_kill): Stop lwps before killing them.
185 (linux_nat_thread_alive): Use signal 0 to detect if a thread is
187 (send_sigint_callback): New.
188 (linux_nat_stop): New.
189 (linux_nat_add_target): Set to_stop to linux_nat_stop.
191 * linux-nat.h (thread_db_attach_lwp): Declare.
193 * linux-thread-db.c (thread_get_info_callback): Check for new
194 threads if we have none.
195 (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the
196 stopped lwp. Check for new threads if we have none.
197 (thread_db_attach_lwp): New.
198 (thread_db_init): Set proc_handle.pid to inferior_ptid.
199 (check_event): Set proc_handle.pid to the stopped lwp.
200 (thread_db_find_new_threads): Set proc_handle.pid to any stopped
201 lwp available, bail out if there is none.
203 * linux-fork.c (linux_fork_killall): Use SIGKILL instead of
206 2008-07-10 Kevin Buettner <kevinb@redhat.com>
208 * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
209 `current_pc' from CORE_ADDR to ULONGEST.
211 * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
214 2008-07-10 Jan Kratochvil <jan.kratochvil@redhat.com>
216 * NEWS (New commands): Mention "set disable-randomization".
217 * configure.ac: Add check for HAVE_PERSONALITY and
218 HAVE_DECL_ADDR_NO_RANDOMIZE.
219 * configure, config.in: Regenerate.
220 * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
221 [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
223 (disable_randomization, show_disable_randomization)
224 (set_disable_randomization): New.
225 (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
226 PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the
227 variable DISABLE_RANDOMIZATION.
228 (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
229 DISABLE_RANDOMIZATION.
231 2008-07-09 Pedro Alves <pedro@codesourcery.com>
233 Adjust all targets to new target_stop interface.
235 * gnu-nat.c (gnu_stop): Add ptid argument.
236 * go32-nat.c (go32_stop): Add ptid argument.
237 (go32_create_inferior): Pass inferior_ptid to go32_stop.
238 * hpux-thread.c (hpux_thread_stop): Add ptid argument.
239 * monitor.c (monitor_stop): Add ptid argument.
240 (monitor_open): Pass inferior_ptid to monitor_stop.
241 (monitor_interrupt): Pass inferior_ptid to target_stop.
242 (monitor_stop): Add ptid argument.
243 * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
244 (procfs_create_inferior): Add ptid argument.
245 * procfs.c (procfs_stop): Add ptid argument.
246 * remote-m32r-sdi.c (m32r_stop): Add ptid argument.
247 * remote-sim.c (gdbsim_stop): Add ptid argument.
248 * sol-thread.c (sol_thread_stop): Add ptid argument.
249 * win32-nat.c (win32_stop): Add ptid argument.
251 2008-07-09 Pedro Alves <pedro@codesourcery.com>
253 Non-stop inferior control.
255 * infrun.c (resume): In non-stop mode, always resume just one
257 (proceed): Don't call prepare_to_proceed in non-stop mode.
258 (fetch_inferior_event): In non-stop mode, switch context before
260 (error_is_running, ensure_not_running): New.
261 (handle_inferior_event): In non-stop mode: Mark only the event
262 thread as stopped. Require that the target module manages adding
263 threads to the thread list. Assert that there isn't a
264 deferred_step_ptid set. Don't switch to infwait_thread_hop_state.
265 (normal_stop): Only mark not-running if inferior hasn't exited.
266 In non-stop mode, only mark the event thread.
268 * thread.c:Include "cli/cli-decode.h".
269 (print_thread_info): Don't read from a running thread.
270 Output "(running)" if thread is running.
271 (switch_to_thread): Don't read stop_pc if thread is executing.
272 (do_restore_current_thread_cleanup): Don't write to a running
274 (thread_apply_all_command): Don't read from a running thread. In
275 non-stop mode, do a full context-switch instead of just switching
277 (thread_apply_command): In non-stop mode, do a full context-switch
278 instead of just switching threads.
279 (do_captured_thread_select): Likewise. Inform user if selected
281 (_initialize_thread): Mark "info threads" and "thread" and
284 * inf-loop.c (inferior_event_handler): In non-stop mode, don't
285 unregister the target from the event loop.
287 * infcmd.c (continue_command, step_1, jump_command)
288 (signal_command): Ensure the selected thread isn't running.
289 (interrupt_target_command): In non-stop mode, interrupt only the
292 * inferior.h (error_is_running, ensure_not_running): Declare.
294 * target.h (struct target_ops): Add ptid argument to the to_stop
296 (target_stop): Add ptid_t argument.
298 * target.c (update_current_target): Add ptid argument to to_stop's
300 (debug_to_stop): Add ptid_t argument.
301 (debug_to_rcmd): Set to_stop_ptid.
303 * remote.c (remote_stop): Add ptid_t argument.
304 (async_remote_interrupt): Add inferior_ptid to target_stop.
305 * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
307 * Makefile.in (thread.o): Depend on $(cli_decode_h).
309 2008-07-09 Pedro Alves <pedro@codesourcery.com>
311 Don't rely on ecs->wait_for_more.
313 * infrun.c (proceed): Clear the stepping state, set
314 previous_inferior_ptid and clear infwait state.
315 (wait_for_inferior): Don't clear the stepping state, set
316 previous_inferior_ptid, or clear the infwait state here.
317 (fetch_inferior_event): Don't clear the stepping state, set
318 previous_inferior_ptid, or clear the infwait state here. Don't
319 condition on wait_for_more.
321 2008-07-09 Pedro Alves <pedro@codesourcery.com>
323 Refactor infrun a bit.
325 * infrun.c (currently_stepping): Take a struct
326 thread_stepping_state instead of an execution_control_state.
327 (struct thread_stepping_state): New, split from
328 execution_control_state.
329 (gtss, tss): New globals.
330 (proceed): Clear the stepping state, set previous_inferior_ptid
331 and clear infwait state.
332 (init_wait_for_inferior): Clear the stepping state,
333 previous_inferior_ptid and infwait state.
334 (waiton_ptid, infwait_state): New, split from
335 execution_control_state.
336 (struct execution_control_state): Members that persist through
337 events moved out to either struct thred_stepping_state or made
338 global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
339 (wait_for_inferior, fetch_inferior_event): Use local
340 execution_control_state. Update to execution_control_state split.
341 (init_execution_control_state): Adjust.
342 (init_thread_stepping_state): New, extracted from
343 init_execution_control_state.
344 (context_switch): Take a ptid instead of an
345 execution_control_state.
346 (context_switch_to): Adjust.
347 (adjust_pc_after_break): Adjust.
348 (init_infwait_state): New.
349 (handle_inferior_event): Adjust.
351 2008-07-09 Pedro Alves <pedro@codesourcery.com>
352 Vladimir Prus <vladimir@codesourcery.com>
356 * gdbthread.h: Remove unneeded forward declarations.
357 Include "inferior.h".
358 (struct thread_info): Add continuations,
359 intermediate_continuations, proceed_to_finish, step_over_calls,
360 stop_step, step_multi and stop_signal members.
361 (save_infrun_state): Add continuations,
362 intermediate_continuations, proceed_to_finish, step_over_calls,
363 stop_step, step_multi, stop_signal and stop_bpstat parameters.
364 (load_infrun_state): Add continuations,
365 intermediate_continuations, proceed_to_finish, step_over_calls,
366 stop_step, step_multi, stop_signal and stop_bpstat parameters.
368 * thread.c (load_infrun_state): In non-stop mode, load
369 continuations, intermediate_continuations, proceed_to_finish,
370 step_over_calls, stop_step, step_multi and stop_signal.
371 (save_infrun_state): Store continuations,
372 intermediate_continuations, proceed_to_finish, step_over_calls,
373 stop_step, step_multi, stop_signal and stop_bpstat.
374 (save_infrun_state): Store continuations,
375 intermediate_continuations, proceed_to_finish, step_over_calls,
376 stop_step, step_multi, stop_signal and stop_bpstat.
377 (free_thread): Clear The thread's stop_bpstat.
379 * inferior.h (context_switch_to): Declare.
381 * infrun.c (ecss): New global.
382 (context_switch): Context switch continuations,
383 intermediate_continuations, proceed_to_finish, step_over_calls,
384 stop_step, step_multi, stop_signal and stop_bpstat.
385 (wait_for_inferior): Use global ecss.
386 (async_ecss, async_ecs): Delete.
387 (fetch_inferior_event): Use global ecss.
388 (context_switch_to): New.
390 * top.c (execute_command): In non-stop, only check if the current
391 thread is running, in all-stop, check if there's any thread
394 * breakpoint.c (bpstat_remove_breakpoint): New.
395 (bpstat_remove_breakpoint_callback): New.
396 (delete_breakpoint): Clear the stop_bpstats of all threads.
398 * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
399 current thread is running, in all-stop, check if there's any
402 * Makefile.in (gdbthread_h): Depend on $(inferior_h).
404 2008-07-09 Pedro Alves <pedro@codesourcery.com>
408 * inferior.h (non_stop): Declare.
409 * infrun.c (non_stop, non_stop_1): New.
410 (set_non_stop, show_non_stop): New.
411 (_initialize_infrun): Add "set/show non-stop" command.
413 2008-07-09 Pedro Alves <pedro@codesourcery.com>
415 Adjust fork/vfork/exec to pass ptids around.
417 * target.h (struct target_waitstatus): Store related_pid as a ptid.
418 (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
420 * breakpoint.h (struct breakpoint): Change forked_inferior_pid
422 * breakpoint.c (print_it_typical, bpstat_check_location)
423 (print_one_breakpoint_location, set_raw_breakpoint_without_location)
424 (create_fork_vfork_event_catchpoint): Adjust.
425 * infrun.c (fork_event): Change parent_pid and child_pid types to
427 (follow_exec, inferior_has_forked, inferior_has_vforked)
428 (inferior_has_execd): Take a ptid_t and don't trim it.
429 * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
430 * linux-nat.c (linux_child_follow_fork): Adjust.
431 * inf-ptrace.c (inf_ptrace_wait): Adjust.
432 * inf-ttrace.c (inf_ttrace_wait): Adjust.
433 * win32-nat.c (get_win32_debug_event): Don't set related_pid.
435 2008-07-09 Pedro Alves <pedro@codesourcery.com>
437 Add "executing" property to threads.
439 * inferior.h (target_executing): Delete.
440 * gdbthread.h (struct thread_info): Add executing_ field.
441 (set_executing, is_executing): New.
442 * thread.c (main_thread_executing): New.
443 (init_thread_list): Clear it and also main_thread_running.
444 (is_running): Return false if target has no execution.
445 (any_running, is_executing, set_executing): New.
447 * top.c: Include "gdbthread.h".
448 (target_executing): Delete.
449 (execute_command): Replace target_executing check by any_running.
450 * event-top.c: Include "gdbthread.h".
451 (display_gdb_prompt, command_handler): Replace target_executing by
453 * inf-loop.c: Include "gdbthread.h". Don't mark as not executing
454 here. Replace target_executing by is_running.
455 * infrun.c (handle_inferior_event): Mark all threads as
457 * linux-nat.c (linux_nat_resume): Don't mark thread as executing
459 * stack.c (get_selected_block): Return null if inferior is
461 * target.c (target_resume): Mark resumed ptid as executing.
462 * breakpoint.c (until_break_command): Replace target_executing
463 check by is_executing.
464 * remote.c (remote_async_resume): Don't mark inferior as executing
466 * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
469 * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
470 (mi_execute_async_cli_command): Replace target_executing by
473 * frame.c (get_current_frame): Error out if the current thread is
475 (has_stack_frames): New.
476 (get_selected_frame, deprecated_safe_get_selected_frame): Check
479 * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
482 2008-07-09 Pedro Alves <pedro@codesourcery.com>
484 * symfile.c (load_command): Reopen the exec file and reread
485 symbols before anything else.
487 2008-07-09 Pedro Alves <pedro@codesourcery.com>
489 * remote-sim.c: Include gdbthread.h.
490 (remote_sim_ptid): New global.
491 (gdbsim_create_inferior): Silently add the main task to GDB's
493 (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
494 task from GDB's thread list.
495 (gdbsim_resume): Adjust to use remote_sim_ptid.
496 (gdbsim_thread_alive, gdbsim_pid_to_str): New.
497 (init_gdbsim_ops): Register gdbsim_thread_alive and
499 (_initialize_remote_sim): Initialize remote_sim_ptid.
500 * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
502 2008-07-09 Pedro Alves <pedro@codesourcery.com>
504 * monitor (monitor_ptid): New global.
505 (monitor_open): Silently add the main task to GDB's thread list.
506 (monitor_close, monitor_mourn_inferior): Silently delete the main
507 task from GDB's thread list.
508 (monitor_thread_alive, monitor_pid_to_str): New.
509 (init_base_monitor_ops): Register monitor_thread_alive and
511 (_initialize_remote_monitors): Initialize monitor_ptid.
513 * gdbthread.h (delete_thread_silent): Declare.
514 * thread.c (delete_thread): Rename to ...
515 (delete_thread_1): ... this. Add "silent" parameter. If silent,
516 don't do exit notifications.
517 (delete_thread, delete_thread_silent): New, as wrappers to
520 2008-07-08 Pedro Alves <pedro@codesourcery.com>
522 * breakpoint.c (update_global_location_list): Add boolean
523 "should_insert" argument. Only insert locations if caller told it
525 (update_global_location_list_nothrow): Add boolean "should_insert"
526 argument. Pass it to update_global_location_list.
527 (insert_breakpoints, create_longjmp_breakpoint)
528 (create_overlay_event_breakpoint, enable_overlay_breakpoints)
529 (create_thread_event_breakpoint, create_solib_event_breakpoint)
530 (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
531 (enable_watchpoints_after_interactive_call_stop)
532 (set_momentary_breakpoint, create_breakpoints)
533 (break_command_really, watch_command_1)
534 (create_ada_exception_breakpoint, update_breakpoint_locations)
535 (do_enable_breakpoint, enable_command): Pass true to
536 update_global_location_list.
537 (bpstat_stop_status, disable_overlay_breakpoints)
538 (disable_watchpoints_before_interactive_call_start)
539 (delete_breakpoint, disable_breakpoint, disable_command): Pass
540 false to update_global_location_list.
541 (update_breakpoints_after_exec): Don't temporarily disable
542 always-inserted mode.
544 2008-07-08 Pedro Alves <pedro@codesourcery.com>
546 * breakpoint.c (mark_breakpoints_out): Make public.
547 (update_breakpoints_after_exec): Don't call mark_breakpoints_out
548 here. Update comment.
549 * breakpoint.h (mark_breakpoints_out): Declare.
551 * linux-nat.c (linux_handle_extended_wait): On
552 TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
553 * inf-ttrace.c (inf_ttrace_wait): Likewise.
555 2008-07-08 Pedro Alves <pedro@codesourcery.com>
557 * infrun.c (follow_exec): Reset shared libraries before adding the
560 2008-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
562 * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
564 2008-07-07 Pedro Alves <pedro@codesourcery.com>
566 * i386-dicos-tdep.c: Include "inferior.h".
567 (i386_dicos_frame_align): New.
568 (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call
569 dummy location ON_STACK.
570 * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
572 2008-07-07 Joel Brobecker <brobecker@adacore.com>
574 * gstdint.h: New file.
576 2008-07-05 Vladimir Prus <vladimir@codesourcery.com>
578 * mi/mi-interp.c (mi_on_resume): Don't try to report
579 resumed thread it the thread list is empty.
581 2008-07-05 Pierre Muller <muller@ics.u-strasbg.fr>
583 * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
584 completer for set to filename_completer.
588 2008-07-04 Vladimir Prus <vladimir@codesourcery.com>
590 Implement -target-attach.
591 * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
593 2008-06-21 Hui Zhu <teawater@gmail.com>
595 * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
597 2008-07-03 Pedro Alves <pedro@codesourcery.com>
599 * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
600 * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
602 * target.h (struct target_ops): Add to_attach_no_wait member.
603 (target_attach_no_wait): New.
604 * target.c (update_current_target): Inherit to_attach_no_wait.
606 * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
607 target_attach_no_wait runtime check.
609 * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
610 * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
613 2008-07-03 Pedro Alves <pedro@codesourcery.com>
615 * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
616 on debug_displaced being set.
618 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
620 * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
621 directly instead of get_frame_id.
623 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
625 * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
626 (deal_with_atomic_sequence): Update BC masks.
627 (rs6000_gdbarch_init): Init displaced stepping infra-structure.
628 Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
630 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
632 * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
633 register, not the previous frame's.
635 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
637 * source.c (select_source_symtab): Make sure we skip namespace
638 symtabs when showing cpp source code.
640 2008-06-30 Hans-Peter Nilsson <hp@axis.com>
642 * MAINTAINERS (Authorized committers): Fix my email address.
644 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
646 * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
647 -target-download and -target-select via CLI, so that
648 the quoting rules are the same as they were (unfortunately)
649 in all prior gdb releases.
650 * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
651 (mi_cmd_target_download, mi_cmd_target_select): Remove.
652 * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
653 (mi_cmd_target_download, mi_cmd_target_select): Remove.
654 (mi_cmd_execute): Set current_token even for commands
657 2008-06-28 Ulrich Weigand <uweigand@de.ibm.com>
659 * alphafbsd-tdep.c: Update for unwinder changes.
660 * alpha-linux-tdep.c: Likewise.
661 * alphanbsd-tdep.c: Likewise.
662 * alphaobsd-tdep.c: Likewise.
663 * avr-tdep.c: Likewise.
664 * cris-tdep.c: Likewise.
665 * frv-linux-tdep.c: Likewise.
666 * frv-tdep.c: Likewise.
667 * h8300-tdep.c: Likewise.
668 * hppa-linux-tdep.c: Likewise.
669 * iq2000-tdep.c: Likewise.
670 * m32c-tdep.c: Likewise.
671 * m32r-linux-tdep.c: Likewise.
672 * m32r-tdep.c: Likewise.
673 * m68hc11-tdep.c: Likewise.
674 * mep-tdep.c: Likewise.
675 * mn10300-tdep.c: Likewise.
676 * mt-tdep.c: Likewise.
677 * score-tdep.c: Likewise.
678 * sh64-tdep.c: Likewise.
679 * sh-tdep.c: Likewise.
680 * sparc64fbsd-tdep.c: Likewise.
681 * sparc64nbsd-tdep.c: Likewise.
682 * sparc64obsd-tdep.c: Likewise.
683 * v850-tdep.c: Likewise.
684 * vaxobsd-tdep.c: Likewise.
685 * vax-tdep.c: Likewise.
686 * xstormy16-tdep.c: Likewise.
688 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
690 * mi/mi-main.c (enum captured_mi_execute_command_actions)
691 (captured_mi_execute_command_args): Remove.
692 (captured_mi_execute_command): Cast the closure to mi_parse
693 pointer, not to captured_mi_execute_command_args, and don't
694 set the action field thereof.
695 (mi_execute_command): Pass struct mi_parse, not
696 captured_mi_execute_command_args to captured_mi_execute_command.
697 (mi_execute_command): Remove (dead) code for suppressing
700 2008-06-28 Pedro Alves <pedro@codesourcery.com>
702 * linux-nat.c (enum sigchld_state): New.
703 (linux_nat_async_events_state): Renamed from
704 linux_nat_async_events_enabled.
705 (linux_nat_event_pipe_push, my_waitpid): Adjust.
706 (sigchld_default_action): New.
707 (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
709 (linux_nat_create_inferior): Set events state to sigchld_default
711 (linux_nat_resume): Adjust.
712 (linux_nat_wait): Call linux_nat_async_events unconditionally.
713 (sigchld_handler): Adjust.
714 (linux_nat_async_mask): Don't set SIGCHLD actions here.
715 (get_pending_events): Adjust.
716 (linux_nat_async_events): Rewrite to handle enum sigchld_state
717 instead of a boolean.
718 (linux_nat_async): Adjust.
719 (_initialize_linux_nat): Capture default SIGCHLD action into
720 sigchld_default_action.
722 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
724 * breakpoint.c (moribund_locations): New.
725 (bpstat_stop_status): Process moribund locations.
726 (update_global_location_list): Add removed
727 locations to moribund_locations.
728 (breakpoint_retire_moribund): New.
729 * breakpoint.h (struct bp_location): New field
730 events_till_retirement.
731 (breakpoint_retire_moribund): Declare.
732 * thread.c (thread_count): New.
733 * infrun.c (handle_inferior_event): Call
734 breakpoint_retire_moribund.
735 * gdbthread.h (thread_count): Declare.
737 2008-06-27 Joseph Myers <joseph@codesourcery.com>
739 * dfp.c (decimal_convert): Call match_endianness before and after
742 2008-06-27 Jonathan Larmour <jifl@eCosCentric.com>
744 * remote.c (remote_insert_breakpoint): Ensure that if Z0
745 unsupported and we fall back to memory_insert_breakpoint, we
746 use the unmodified requested address.
748 2008-06-27 Joel Brobecker <brobecker@adacore.com>
750 * dwarf2read.c (read_attribute_value): Issue a complaint when
751 adjusting size attribute values of 0xffffffff as zero.
753 2008-06-27 Joseph Myers <joseph@codesourcery.com>
755 * i386-tdep.c (i386_16_byte_align_p): New.
756 (i386_push_dummy_call): Determine stack space required for
757 arguments going forwards allowing for 16-byte alignment, then push
758 arguments going forwards.
760 2008-06-27 Pedro Alves <pedro@codesourcery.com>
762 * infrun.c (start_remote): Don't clear thread list here.
763 * monitor.c (monitor_open): Include "gdbthread.h". Clear thread
765 * remote.c (record_currthread): Upgrade the main thread and its
766 entry in the thread list if this is the first time we hear about
768 (remote_thread_alive): Consider magic_null_ptid or a ptid without
769 a tid member always alive.
770 (remote_find_new_threads): Don't update the main thread here.
771 (remote_start_remote): Clear thread list here. Always add the
773 (extended_remote_attach_1): Add the main thread here.
774 (extended_remote_mourn_1): Re-add the main thread here.
775 (extended_remote_create_inferior_1): Add a main thread.
777 * Makefile.in (monitor.o): Depend on $(gdbthread_h).
779 2008-06-27 Pedro Alves <pedro@codesourcery.com>
781 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
783 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
785 (general_thread, continue_thread): Change type to ptid_t.
786 (record_currthread): Take a ptid_t parameter instead of an
788 (MAGIC_NULL_PID): Delete.
789 (set_thread): Take a ptid_t parameter and adjust.
790 (set_general_thread, set_continue_thread): New.
791 (remote_thread_alive, remote_newthread_step)
792 (remote_current_thread, remote_find_new_threads)
793 (remote_threads_info, remote_start_remote, remote_vcont_resume)
794 (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
795 (threadalive_test, remote_pid_to_str)
796 (remote_get_thread_local_address): Adjust.
797 (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
800 2008-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
802 * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
803 * configure: Regenerated.
805 2008-06-26 Joel Brobecker <brobecker@adacore.com>
807 * dwarf2read.c (read_attribute_value): Treat size attribute
808 values of 0xffffffff as if the attribute value was zero.
810 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
812 * linux-nat.c: Add description of overall logic.
814 2008-06-26 Daniel Jacobowitz <dan@codesourcery.com>
816 * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
817 (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
818 all dependencies on $(gdb_stdint_h).
819 (distclean): Do not delete gdb_stdint.h.
820 * acinclude.m4: Do not use stdint.m4.
821 * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
822 uintptr_t, and gdb_stdint.h.
823 * defs.h: Include <stdint.h>.
824 * gdb_thread_db.h: Assume stdint.h is already included.
825 * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
826 rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
827 include gdb_stdint.h.
828 * configure, config.in: Regenerate.
830 2008-06-26 Joseph Myers <joseph@codesourcery.com>
832 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
833 decimal floating-point values in GPRs for soft-float.
834 (do_ppc_sysv_return_value): Handle returning decimal
835 floating-point values in GPRs for soft-float.
837 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
839 * target.c (target_read_until_error): New.
840 * target.h (target_read_until_error): Declare.
841 * mi/mi-main.c (mi_cmd_data_read_memory): Use
842 target_read_until_error.
844 2008-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
846 Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
847 * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
848 after the DECFLOAT detection to fix a memory leak. Remove the
849 redundant NUM initialization. Protect the DECFLOAT detection memory
850 access before the P block. Restore the P memory content for the
853 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
855 Kill the return value for all MI command functions.
856 * mi/mi-cmds.h (enum mi_cmd_result): Remove.
857 (mi_cmd_argv_ftype): Change return type to void.
859 * mi/mi-main.c: Adjust all function that implement
860 MI commands to return nothing.
861 (struct captured_mi_execute_command_actions):
863 (mi_cmd_execute): Return nothing.
864 (mi_execute_async_cli_command): Return nothing.
865 (mi_cmd_exec_interrupt): Don't print ^done here.
866 (mi_cmd_target_select): Don't print ^connected here.
867 (captured_mi_execute_command): Don't check for MI_CMD_DONE.
868 Special-case -target-select and output ^connected, not ^done.
870 * mi/mi-cmd-break.c: Adjust.
871 * mi/mi-cmd-disas.c: Adjust.
872 * mi/mi-cmd-env.c: Adjust.
873 * mi/mi-cmd-file.c: Adjust.
874 * mi/mi-cmd-stack.c: Adjust.
875 * mi/mi-cmd-target.c: Adjust.
876 * mi/mi-cmd-var.c: Adjust.
877 * mi/mi-interp.c: Adjust.
878 * mi/mi-symbol-cmds.c: Adjust.
880 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
882 Emit ^running via observer.
883 * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
885 (mi_on_resume): Print ^running if not previously output.
886 * mi/mi-main.c (running_result_record_printed): New.
887 (captured_mi_execute_command): Reset
888 running_result_record_printed. Use running_result_record_printed
889 to decide if we should skip ^done.
890 (mi_execute_async_cli_command): Don't print ^running here.
891 * mi/mi-main.h (current_token, running_result_record_printed):
894 2008-06-24 Michael Snyder <msnyder@specifix.com>
896 * infrun.c (_initialize_infrun): White space and typo fix.
898 2008-06-23 Christopher Faylor <me.gdb.changelog@cgf.cx>
900 * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
901 (do_initial_win32_stuff): Fix problem with inability to set breakpoints
902 when first loading DLL with "dll" command.
904 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
906 * gnu-nat.c (proc_string): Use capital T for "Thread".
908 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
910 * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
912 2008-06-18 Joel Brobecker <brobecker@adacore.com>
914 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
915 the target cannot run.
917 2008-06-18 Joel Brobecker <brobecker@adacore.com>
919 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
920 we're attaching to a running process.
922 2008-06-18 Pierre Muller <muller@ics.u-strasbg.fr>
924 * win32-nat.c (handle_load_dll): Give dll name and load address
925 if debug_events is on.
926 (handle_unload_dll): Likewise.
928 2008-06-14 Vladimir Prus <vladimir@codesourcery.com>
930 Don't suppress *running when doing finish.
931 * infcall.c (call_function_by_hand): Set both
932 suppress_resume_observer and suppress_stop_observer.
933 * infcmd.c (suppress_run_stop_observers): Split into...
934 (suppress_resume_observer, suppress_stop_observer): ...those.
935 (finish_command_continuation): Clear suppress_stop_observer.
936 (finish_command): Set suppress_stop_observer.
937 * inferior.h (suppress_run_stop_observers): Split into...
938 (suppress_resume_observer, suppress_stop_observer): ...those.
939 * infrun.c (normal_stop): Check for suppress_stop_observer.
940 * thread.c (set_running): Check for suppress_resume_observer.
942 2008-06-12 Pedro Alves <pedro_alves@portugalmail.pt>
943 Pierre Muller <muller@ics.u-strasbg.fr>
945 * gdbarch.sh (gdbarch_skip_main_prologue): New.
946 * gdbarch.h, gdbarch.c: Regenerate.
947 * i386-tdep.h (i386_skip_main_prologue): Declare.
948 * i386-tdep.c (i386_skip_main_prologue): New.
949 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
950 i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
951 * symtab.c (find_function_start_sal): When pc points at the "main"
952 function, call gdbarch_skip_main_prologue.
954 2008-06-11 Daniel Jacobowitz <dan@codesourcery.com>
956 * value.c (value_primitive_field): Fetch lazy register values.
958 2008-06-11 Pedro Alves <pedro@codesourcery.com>
960 * NEWS: Mention support removal of undocumented S AA p PID stop
963 * remote.c (remote_wait): Remove undocumented S AA p PID support.
965 2008-06-10 Stan Shebs <stan@codesourcery.com>
967 * MAINTAINERS: Update my affiliation and address.
969 2008-06-10 Andreas Schwab <schwab@suse.de>
971 * top.c (print_gdb_version): Don't print final newline.
973 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
976 * Makefile.in: Update dependencies.
977 * gdbthread.h (struct thread_info): New field
979 (set_running, is_running): New.
980 * thread.c (set_running, is_running): New.
981 * inferior.h (suppress_normal_stop_observer): Rename to...
982 (suppress_run_stop_observers): ..this.
983 * infcmd.c (suppress_normal_stop_observer): Rename to...
984 (suppress_run_stop_observers): ..this.
985 (finish_command_continuation, finish_command): Adjust.
986 * infcall.c (call_function_by_hand): Adjust.
987 * infrun.c (normal_stop): Call set_running.
988 * target.c (target_resume): New. Call set_running.
989 * target.h (target_resume): Convert from macro to
992 * mi/mi-interp.c (mi_on_resume): New.
993 (mi_interpreter_init): Register mi_on_resume.
995 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
997 Use observers to report stop events in MI.
998 * mi/mi-interp.c (mi_on_normal_stop): New.
999 (mi_interpreter_init): Register mi_on_normal_stop.
1000 (mi_interpreter_exec_continuation): Remove.
1001 (mi_cmd_interpreter_exec): Don't register the above.
1002 * mi/mi-main.c (captured_mi_execute_command): Don't care
1003 about sync_execution.
1004 (mi_execute_async_cli_command): Don't install continuation. Don't
1006 (mi_exec_async_cli_cmd_continuation): Remove.
1008 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
1010 Suppress normal stop observer when it's problematic.
1011 * inferior.h (suppress_normal_stop_observer): New.
1012 * infcall.c (call_function_by_hand): Disable stop events when
1013 doing function calls.
1014 * infmcd.c (suppress_normal_stop_observer): New.
1015 (finish_command_continuation): Call normal_stop observer
1017 (finish_command): Disable stop events inside proceed.
1018 * infrun.c (normal_stop): Don't call normal stop observer if
1019 suppressed of if multi-step is in progress.
1021 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
1024 * infrun.c (finish_command): Don't pass cleanup
1026 (finish_command_continuation): Don't grab cleanup from
1027 the passed data, as we don't use, and cannot, use it anyway.
1029 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
1031 Introduce common cleanup for restoring integers.
1032 * defs.h (make_cleanup_restore_integer): New declaration.
1033 (struct cleanup): New field free_arg.
1034 (make_my_cleanup_2): New.
1035 * utils.c (restore_integer_closure, restore_integer)
1036 (make_cleanup_restore_integer): New.
1037 (make_my_cleanup): Initialize the free_arg field and
1038 renamed to make_my_cleanup_2.
1039 (do_my_cleanups): Call free_arg.
1040 (discard_cleanups): Call free_arg.
1041 * breakpoint.c (restore_always_inserted_mode): Remove.
1042 (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
1044 2008-06-09 Doug Evans <dje@google.com>
1046 * remote.c (remote_wait): Include beginning of malformed packet
1049 2008-06-09 Tom Tromey <tromey@redhat.com>
1051 * completer.c (complete_line): Don't special-case
1052 expression_completer.
1053 (expression_completer): Only pass last word to
1055 * c-exp.y (yylex): Check 'token', not 'operator'.
1057 2008-06-09 Daniel Jacobowitz <dan@codesourcery.com>
1059 * configure.ac (build_warnings): Add -Wno-format for mingw.
1060 * configure: Regenerated.
1062 2008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
1064 * NEWS: Make indentation consistent. Move exec tracing entry out
1065 of remote packet list.
1067 2008-06-06 Tom Tromey <tromey@redhat.com>
1069 * value.h (evaluate_subexpression_type, extract_field_op):
1071 * printcmd.c (_initialize_printcmd): Use expression_completer for
1072 'p', 'inspect', 'call'.
1073 * parser-defs.h (parse_field_expression): Declare.
1074 * parse.c: Include exceptions.h.
1075 (in_parse_field, expout_last_struct): New globals.
1076 (mark_struct_expression): New function.
1077 (prefixify_expression): Return int.
1078 (prefixify_subexp): Return int. Use expout_last_struct.
1079 (parse_exp_1): Update.
1080 (parse_exp_in_context): Add 'out_subexp' argument. Handle
1082 (parse_field_expression): New function.
1083 * expression.h (parse_field_expression): Declare.
1084 (in_parse_field): Likewise.
1085 * eval.c (evaluate_subexpression_type): New function.
1086 (extract_field_op): Likewise.
1087 * completer.h (expression_completer): Declare.
1088 * completer.c (expression_completer): New function.
1089 (count_struct_fields, add_struct_fields): New functions.
1090 * c-exp.y (yyparse): Redefine.
1091 (COMPLETE): New token.
1092 (exp): New productions.
1093 (saw_name_at_eof, last_was_structop): New globals.
1094 (yylex): Return COMPLETE when needed. Recognize in_parse_field.
1095 (c_parse): New function.
1096 * breakpoint.c (_initialize_breakpoint): Use expression_completer
1097 for watch, awatch, and rwatch.
1098 * Makefile.in (parse.o): Depend on exceptions_h.
1100 2008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
1103 * gdb/valopts.c (find_overload_match): Handle references
1106 2008-06-06 Paul N. Hilfinger <hilfinger@adacore.com>
1108 * ada-lang.c (ada_value_assign): Correct big-endian case to take into
1109 account the bitsize of the 'from' operand.
1111 2008-06-06 Pedro Alves <pedro@codesourcery.com>
1113 * annotate.h (annotate_thread_changed): Declare.
1115 2008-06-06 Nick Roberts <nickrob@snap.net.nz>
1117 * annotate.c (annotate_thread_changed): New function.
1118 * thread.c (thread_command) : Use it.
1119 * infrun.c (normal_stop): Use it.
1121 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
1122 Nathan Sidwell <nathan@codesourcery.com>
1123 Joseph Myers <joseph@codesourcery.com>
1125 * acinclude.m4: Include ../config/acx.m4.
1126 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
1127 * configure, config.in: Regenerate.
1128 * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
1130 * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
1132 2008-06-05 Pedro Alves <pedro@codesourcery.com>
1134 Replace 'target async' by 'maintenance set remote-async' and
1135 'target remote' combination.
1137 * remote.c (remote_async_wait): Merge into remote_wait, and
1139 (remote_async_permitted, remote_async_permitted_set): New
1141 (set_maintenance_remote_async_permitted)
1142 (show_maintenance_remote_async_permitted): New functions.
1143 (remote_async_ops, extended_async_remote_ops): Delete.
1144 (remote_async_open, extended_remote_async_open): Delete.
1145 (remote_open_1): Drop async_p parameter. Update callers. Replace
1146 async_p with remote_async_permitted checks.
1147 (extended_async_remote_attach): Delete.
1148 (remote_resume, remote_async_resume): Merge and leave remote_resume.
1149 (remote_async_terminal_inferior): Rename to...
1150 (remote_terminal_inferior): ... this, and add
1151 remote_async_termitted check.
1152 (remote_async_terminal_ours): Rename to...
1153 (remote_terminal_ours): ... this, and add remote_async_termitted
1155 (remote_wait, remote_async_wait): Merge and leave remote_wait
1157 (remote_kill, remote_async_kill): Merge and leave remote_kill
1159 (remote_async_mourn, extended_async_remote_mourn): Delete.
1160 (extended_remote_create_inferior_1): Drop async_p parameter.
1161 Update callers. Always use extended_remote_ops.
1162 (extended_remote_async_create_inferior): Delete.
1163 (remote_return_zero): Delete.
1164 (init_remote_ops): Register remote_can_async_p, remote_async,
1165 remote_async_mask, remote_terminal_inferior and
1166 remote_terminal_ours.
1167 (remote_can_async_p, remote_is_async_p): Check for
1168 remote_async_permitted.
1169 (init_remote_async_ops, init_extended_async_remote_ops): Remove.
1170 (set_remote_cmd): Don't add async and extended-async targets.
1171 (_initialize_remote): Add set/show remote-async maintenance
1174 2008-06-05 Pedro Alves <pedro@codesourcery.com>
1176 * remote.c (kill_kludge): Delete.
1177 (remote_wait, remote_async_wait): Don't set it.
1178 (remote_kill, remote_async_kill): Don't do anything with it.
1180 2008-06-05 Pedro Alves <pedro@codesourcery.com>
1182 * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
1184 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
1186 * bcache.c (bcache_data): Call deprecated_bcache_added function.
1187 (deprecated_bcache_added): New function name. Body of function
1188 bcache_data is used here with the addition of 'added' argument.
1189 * bcache.h (deprecated_bcache_added): New function.
1190 * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
1191 work from add_psymbol_to_list - initialises partial symbol and stashes
1192 it in objfile's cache.
1193 (append_psymbol_to_list): New helper function, takes other part of
1194 work from add_psymbol_to_list - adds partial symbol to the given list.
1195 (add_psymbol_to_list): Call helper functions instead of doing work
1196 here. If adding to global list, do not duplicate partial symbols in the
1199 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
1201 * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
1202 'exception caught|thrown' message.
1204 2008-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1206 * Makefile.in: Update dependencies.
1207 * dwarf2expr.c: New include "gdb_assert.h".
1208 (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
1209 (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
1210 (execute_stack_op): Error out on too large RECURSION_DEPTH.
1211 Increase/decrease RECURSION_DEPTH around the function.
1213 2008-06-05 Daniel Jacobowitz <dan@codesourcery.com>
1215 * remote.c (get_offsets): Handle a single segment.
1216 * symfile.c (symfile_map_offsets_to_segments): Allow more bases
1219 2008-06-03 Daniel Jacobowitz <dan@codesourcery.com>
1221 * solib-svr4.c (struct lm_info): Add lm_addr.
1222 (main_lm_addr): New.
1223 (svr4_default_sos): Set lm_addr.
1224 (svr4_current_sos): Set lm_addr and main_lm_addr.
1225 (svr4_fetch_objfile_link_map): Rewrite.
1226 (svr4_clear_solib): Clear main_lm_addr.
1228 2008-06-03 Michael Snyder <msnyder@redhat.com>
1229 Joseph Myers <joseph@codesourcery.com>
1231 * mips-tdep.c (mips_eabi_return_value): Replace stub that always
1232 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
1234 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
1236 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
1238 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
1240 * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
1242 2008-06-01 Joel Brobecker <brobecker@adacore.com>
1244 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
1245 treat pointers in data space as function descriptors if the
1246 target address is also in the data space.
1248 2008-05-30 Joel Brobecker <brobecker@adacore.com>
1250 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
1251 the trad-frame register value for the SP register.
1253 2008-05-29 Mark Kettenis <kettenis@gnu.org>
1255 * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
1257 2008-05-28 Joel Brobecker <brobecker@adacore.com>
1259 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
1260 that identifies function descriptors outside of the .opd section.
1262 2008-05-28 Aleksandar Ristovski <aristovski@qnx.com>
1264 * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
1265 temporary catchpoints. In MI add missing fields 'reason', 'disp',
1267 (print_mention_exception_catchpoint): Add 'Temporary' for temporary
1269 (handle_gnu_v3_exceptions): Use tempflag.
1271 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
1273 Refactor varobj_update interface.
1274 * varobj.c (varobj_update): Report changes as vector. Also
1275 return not just a list of varobj, but a list of special structures
1276 that tell what exactly has changed.
1277 * varobj.h (enum varobj_update_error): Rename to
1278 varobj_scope_status.
1279 (struct varobj_update_result_t): New.
1280 (varobj_update): Adjust prototype.
1281 * mi/mi-cmd-var.c: Adjust for changes.
1283 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
1285 * varobj.c (varobj_update): Fix comment typo.
1288 2008-05-26 Joel Brobecker <brobecker@adacore.com>
1290 Set the symtab field of symbols read from ECOFF debugging entries.
1291 * mdebugread.c (add_symbol): Add new parameter symtab.
1292 (parse_symbol): Update calls to add_symbol throughout.
1294 2008-05-27 Andreas Schwab <schwab@suse.de>
1296 * symtab.h (enum address_class): Remove LOC_REGPARM and
1298 (struct symbol): Add is_argument.
1299 (SYMBOL_IS_ARGUMENT): Define.
1301 * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
1302 * buildsym.c (finish_block): Likewise.
1303 * stack.c (print_frame_args, print_block_frame_locals)
1304 (print_frame_arg_vars): Likewise.
1305 * symtab.c (lookup_block_symbol): Likewise.
1306 * tracepoint.c (add_local_symbols): Likewise.
1307 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
1309 * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
1310 * dwarf2read.c (new_symbol): Likewise.
1311 * mdebugread.c (parse_symbol): Likewise.
1312 * stabsread.c (define_symbol): Likewise.
1314 * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
1315 and LOC_COMPUTED_ARG.
1316 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
1317 * ax-gdb.c (gen_var_ref): Likewise.
1318 * eval.c (evaluate_subexp_for_address): Likewise.
1319 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
1320 * m2-exp.y (yylex): Likewise.
1321 * printcmd.c (address_info): Likewise.
1322 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
1323 * tracepoint.c (collect_symbol, scope_info): Likewise.
1325 2008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1327 * gdbarch.sh: Added new gdbarch struct
1328 core_regset_sections.
1329 * gdbarch.c: Refreshed.
1330 * gdbarch.h: Refreshed.
1331 * regset.h (core_regset_section): Declared.
1332 * linux-nat.c (linux_nat_do_thread_registers): Added
1333 support for the new gdbarch struct core_regset_sections.
1334 * utils.c (host_address_to_string): New function.
1335 * defs.h (host_address_to_string): New prototype.
1336 * i386-linux-tdep.c (i386_regset_rections): New register
1337 sections list for i386.
1338 (i386_linux_init_abi): Initialized new gdbarch struct
1339 core_regset_sections.
1340 * Makefile.in: Updated to reflect dependency changes.
1341 * ppc-linux-tdep.c (ppc_regset_sections): Register
1342 sections list for ppc.
1343 (ppc_linux_init_abi): Initialized new gdbarch struct
1344 core_regset_sections
1346 2008-05-24 Andreas Schwab <schwab@suse.de>
1348 * linespec.c (decode_objc): Save current language around call to
1351 2008-05-23 Joel Brobecker <brobecker@adacore.com>
1353 * valprint.h (get_array_bounds): Renames get_array_low_bound.
1354 * valprint.c (get_array_bounds): Renames get_array_low_bound.
1355 Return the proper bound value if the array index type is an
1356 enumerated type. Compute the high bound if requested.
1357 (val_print_array_elements): Handle the case when the array
1358 element has a null size.
1359 * ada-valprint.c (print_optional_low_bound): Add handling
1360 for empty arrays or arrays of zero-size elements.
1361 (ada_val_print_array): New function, extracted out from
1362 ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
1363 handle empty arrays and arrays of zero-size elements.
1364 (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
1365 code by call to ada_val_print_array.
1366 (ada_value_print): Remove handling of null array. The handling
1367 was incomplete and is now better handled by ada_val_print_array.
1369 2008-05-23 Markus Deuling <deuling@de.ibm.com>
1371 * annotate.c (annotate_source, annotate_frame_begin): Replace
1372 deprecated_print_address_numeric with paddress.
1373 * cli/cli-cmds.c (list_command, edit_command): Likewise.
1374 * tui/tui-stack.c (tui_make_status_line): Likewise.
1376 * defs.h (deprecated_print_address_numeric): Remove.
1377 * printcmd.c (deprecated_print_address_numeric): Remove.
1378 * maint.c (maint_print_section_info): Fix comment.
1380 2008-05-23 Markus Deuling <deuling@de.ibm.com>
1382 * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
1383 print_binary_chars, print_char_chars): Add byte_order parameter and
1384 replace gdbarch_byte_order.
1385 (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
1386 expressions and remove them. Remove unused TWO_TO_FOURTH.
1387 (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
1388 endianness. Update call to print_hex_chars.
1389 * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
1390 print_binary_chars, print_char_chars): Add byte_order parameter.
1391 * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
1392 get at the endianness. Update print_*_char calls to use byte_order.
1394 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
1396 * symtab.h (struct symbol): Make "aux_value" member a void pointer
1398 (SYMBOL_LOCATION_BATON): Update.
1400 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
1402 * symtab.h (enum address_class): Remove LOC_BASEREG and
1404 (struct symbol): Remove "basereg" member of "aux_value" union.
1405 (SYMBOL_BASEREG): Remove.
1407 * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
1409 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
1410 (ada_add_block_symbols): Likewise.
1411 * ax-gdb.c (gen_var_ref): Likewise.
1412 * buildsym.c (finish_block): Likewise.
1413 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
1414 * m2-exp.y (yylex): Likewise.
1415 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
1416 * printcmd.c (address_info): Likewise.
1417 * stack.c (print_frame_args, print_block_frame_locals): Likewise.
1418 (print_frame_arg_vars): Likewise.
1419 * symmisc.c (print_symbol): Likewise.
1420 * symtab.c (lookup_block_symbol): Likewise.
1421 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
1422 (scope_info): Likewise.
1424 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
1426 * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
1428 * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
1429 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
1430 (ada_add_block_symbols): Likewise.
1431 * ax-gdb.c (gen_var_ref): Likewise.
1432 * buildsyms.c (finish_block): Likewise.
1433 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
1434 * m2-exp.y (yylex): Likewise.
1435 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
1436 * printcmd.c (address_info): Likewise.
1437 * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
1438 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
1439 * symtab.c (lookup_block_symbol): Likewise.
1440 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
1441 (scope_info): Likewise.
1443 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
1445 * symtab.h (enum address_class): Remove LOC_INDIRECT and
1446 LOC_HP_THREAD_LOCAL_STATIC.
1448 * findvar.c (symbol_read_needs_frame, read_var_value): Do not
1449 handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
1450 (read_var_value): Likewise.
1451 * buildsym.c (finish_block): Likewise.
1452 * objfiles.c (objfile_relocate): Likewise.
1453 * printcmd.c (address_info): Likewise.
1454 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
1455 * tracepoint.c (scope_info): Likewise.
1457 2008-05-21 Markus Deuling <deuling@de.ibm.com>
1458 Maxim Grigoriev <maxim2405@gmail.com>
1460 * xtensa-tdep.c (xtensa_read_register): Remove.
1461 (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
1462 argument litbase to call0_frame_cache().
1463 (call0_track_op, call0_analyze_prologue)
1464 (call0_frame_cache): Use extra argument litbase.
1466 2008-05-21 Joel Brobecker <brobecker@adacore.com>
1468 * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
1470 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
1472 * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
1474 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
1476 * alpha-mdebug-tdep.c: Include "trad-frame.h".
1477 (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
1478 struct trad_frame_saved_reg *.
1479 (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
1480 trad_frame_alloc_saved_regs. Update accesses. Record previous
1481 value of SP as being vfp.
1482 (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
1483 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
1485 2008-05-21 Markus Deuling <deuling@de.ibm.com>
1487 * score-tdep.c (score_print_insn): Get the current endianess from
1488 disassemble_info instead of gdbarch_byte_order.
1490 2008-05-21 Pedro Alves <pedro@codesourcery.com>
1492 * frame.c (get_prev_frame_1): Build frame id before setting
1493 this_frame->prev_p, not after.
1495 2008-05-21 Nick Roberts <nickrob@snap.net.nz>
1497 * annotate.c (annotate_new_thread): New function for new-thread
1499 * annotate.h: (annotate_new_thread): New extern.
1500 * thread.c (add_thread_with_info): Use it.
1501 * Makefile.in (thread.o): Add dependency on annotate.h.
1503 2008-05-20 Joel Brobecker <brobecker@adacore.com>
1505 * win32-nat.c (win32_wait): Block the control-c event while
1506 waiting for a debug event.
1508 2008-05-19 Pedro Alves <pedro@codesourcery.com>
1510 * symtab.h (lookup_symbol_in_language): Update comment.
1511 * symtab.c (lookup_symbol_aux_block): Update comment.
1512 * ada-lang.c (ada_lookup_symbol_list): Update comment.
1514 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
1516 * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
1517 (lookup_symbol): Likewise.
1518 * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
1519 (lookup_symbol): Likewise.
1520 (search_symbols): Update.
1522 * linespec.c (find_methods, collect_methods): Update.
1523 (add_matching_methods, add_constructors): Update.
1524 (decode_compound, decode_dollar, decode_variable): Update.
1525 (lookup_prefix_sym): Update.
1527 (symbol_found): Remove SYM_SYMTAB parameter.
1528 Use SYMBOL_SYMTAB (sym) instead.
1530 * gdbtypes.c (lookup_typename): Update.
1531 (lookup_struct, lookup_union, lookup_enum): Update.
1532 (lookup_template_type): Update.
1533 (check_typedef): Update.
1534 * language.c (lang_bool_type): Update.
1535 * mdebugread.c (parse_procedure): Update.
1536 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1537 * parse.c (write_dollar_variable): Update.
1538 * printcmd.c (address_info): Update.
1539 * source.c (select_source_symtab): Update.
1540 * stack.c (print_frame_args, print_frame_arg_vars): Update.
1541 * valops.c (find_function_in_inferior): Update.
1542 (value_struct_elt_for_reference): Update.
1543 * value.c (value_static_field, value_fn_field): Update.
1545 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1546 * arm-tdep.c (arm_skip_prologue): Update.
1547 * mt-tdep.c (mt_skip_prologue): Update.
1548 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
1550 * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
1551 * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
1552 (add_defn_to_vec): Likewise.
1553 (ada_add_block_symbols): Likewise.
1554 (lookup_cached_symbol, cache_symbol): Likewise.
1555 (standard_lookup): Update.
1556 (ada_lookup_symbol_list): Update.
1558 * c-valprint.c (c_val_print): Update.
1559 * cp-support.c (cp_lookup_rtti_type): Update.
1560 * jv-lang.c (java_lookup_class, get_java_object_type): Update.
1561 * objc-lang.c (lookup_struct_typedef, find_imps): Update.
1562 * p-valprint.c (pascal_val_print): Update.
1563 * scm-lang.c (scm_lookup_name): Update.
1569 * objc-exp.y: Update.
1572 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
1574 * language.h (struct language_defn): Remove SYMTAB parameter from
1575 la_lookup_symbol_nonlocal callback function pointer.
1577 * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
1578 (ada_lookup_encoded_symbol): Likewise.
1579 * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
1580 Always call fixup_symbol_section.
1581 (ada_lookup_symbol): Remove SYMTAB parameter.
1582 (ada_lookup_symbol_nonlocal): Likewise.
1583 * ada-exp.y (write_object_renaming): Update.
1584 (find_primitive_type): Likewise.
1586 * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
1587 (cp_lookup_symbol_namespace): Likewise.
1588 * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
1589 (lookup_symbol_file): Likewise.
1590 (lookup_possible_namespace_symbol): Likewise.
1591 (cp_lookup_symbol_nonlocal): Likewise.
1592 (cp_lookup_symbol_namespace): Likewise.
1593 (cp_lookup_nested_type): Update.
1595 * scm-valprint.c (scm_inferior_print): Update.
1596 * valops.c (value_maybe_namespace_elt): Update.
1598 * solist.h (struct target_so_ops): Remove SYMTAB parameter from
1599 lookup_lib_global_symbol callback function pointer.
1600 (solib_global_lookup): Remove SYMTAB parameter.
1601 * solib.c (solib_global_lookup): Remove SYMTAB parameter.
1602 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
1604 * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
1605 (lookup_symbol_static): Likewise.
1606 (lookup_symbol_global): Likewise.
1607 (lookup_symbol_aux_block): Likewise.
1608 (lookup_global_symbol_from_objfile): Likewise.
1609 * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
1610 (lookup_symbol_aux_local): Likewise.
1611 (lookup_symbol_aux_block): Likewise.
1612 (lookup_symbol_aux_symtabs): Likewise.
1613 (lookup_symbol_aux_psymtabs): Likewise.
1614 (lookup_global_symbol_from_objfile): Likewise.
1615 (basic_lookup_symbol_nonlocal): Likewise.
1616 (lookup_symbol_static): Likewise.
1617 (lookup_symbol_global): Likewise.
1619 (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
1621 2008-05-17 Pedro Alves <pedro@codesourcery.com>
1623 * remote.c (init_extended_remote_ops): Fix typo.
1625 2008-05-16 Pedro Alves <pedro@codesourcery.com>
1627 * NEWS: Mention new DICOS x86 target configuration.
1629 2008-05-16 Pedro Alves <pedro@codesourcery.com>
1630 Ulrich Weigand <uweigand@de.ibm.com>
1632 * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
1633 * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
1635 * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
1636 use it instead of ginfo->value.address. Look up minimal symbol by
1637 address and name. Assume OBJFILE is non-NULL.
1638 (fixup_symbol_section): Ensure we always have an objfile to look
1639 into. Extract and pass to fixup_section the symbol's address that
1640 will match the minimal symbol's address.
1641 (fixup_psymbol_section): Likewise.
1643 (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
1644 overlays and the addrmap returned the wrong section.
1646 * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
1647 calling fixup_symbol_section.
1649 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
1651 * minsyms.c: Include "target.h".
1652 (find_solib_trampoline_target): Handle minimal symbols pointing
1653 to function descriptors as well.
1654 * Makefile.in (minsyms.o): Update dependencies.
1656 * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
1657 (ppc64_standard_linkage1): ... this. Fix optional instructions.
1658 (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
1659 (PPC64_STANDARD_LINKAGE1_LEN): ... this.
1660 (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
1661 (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
1662 (ppc64_standard_linkage_target): Rename to ...
1663 (ppc64_standard_linkage1_target): ... this.
1664 (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
1665 (ppc64_skip_trampoline_code): Support three variants of standard
1666 linkage stubs. Call find_solib_trampoline_target to handle
1669 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
1671 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
1672 ppc64_sysv_abi_adjust_breakpoint_address.
1673 * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
1674 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
1676 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
1678 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
1679 (ppc_linux_init_abi): Install find_solib_trampoline_target instead
1680 of ppc_linux_skip_trampoline_code.
1682 2008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
1684 * gdbarch.sh: Delete dwarf_reg_to_regnum.
1685 * gdbarch.c, gdbarch.h: Regenerated.
1686 * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
1687 hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
1688 s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
1690 2008-05-15 Pedro Alves <pedro@codesourcery.com>
1692 * linux-nat.c (trap_ptid): Delete.
1693 (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
1695 * linux-thread-db.c (thread_db_wait): Adjust.
1697 2008-05-15 Joel Brobecker <brobecker@adacore.com>
1699 * linespec.c (decode_line_1): Fix a couple of comments.
1701 2008-05-15 Alan Modra <amodra@bigpond.net.au>
1703 * dbxread.c: Formatting.
1704 (INTERNALIZE_SYMBOL): Init n_other.
1705 (set_namestring): Take pointer to nlist arg rather than struct
1706 copy. Update all callers.
1708 2008-05-15 Andreas Schwab <schwab@suse.de>
1710 * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
1711 (dwarf2read.o): Add $(addrmap_h).
1713 2008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
1715 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
1716 (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
1717 to handle ppc32 PLT entries.
1718 (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
1721 2008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
1723 * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
1724 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
1725 lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
1726 (lookup_minimal_symbol_by_pc_section): Use
1727 lookup_minimal_symbol_by_pc_section_1.
1728 (lookup_solib_trampoline_symbol_by_pc): Likewise.
1730 2008-05-13 Joel Brobecker <brobecker@adacore.com>
1732 * findcmd.c: Add #include "gdb_stdint.h".
1733 * Makefile.in (findcmd.o): Update dependencies.
1735 2008-05-11 David S. Miller <davem@davemloft.net>
1737 * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
1738 long double size override, Linux does use 128-bit now.
1740 * sparc-linux-tdep.c (PSR_SYSCALL): Define.
1741 (sparc_linux_write_pc): New function.
1742 (sparc32_linux_init_abi): Register it.
1743 * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
1744 (sparc64_linux_write_pc): New function.
1745 (sparc64_linux_init_abi): Register it.
1747 * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
1748 dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
1750 2008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
1752 * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
1753 and info.tdep_info before calling gdbarch_init_osabi.
1755 2008-05-09 Joel Brobecker <brobecker@adacore.com>
1757 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
1758 the type of the right hand side of the assignment to the type
1759 of the left hand side if the left hand side is a convenience
1762 2008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
1764 * NEWS: Mention gdbserver bi-arch capability.
1766 2008-05-09 Doug Evans <dje@google.com>
1769 * NEWS: Document find command and qSearch:memory packet.
1770 * Makefile.in (SFILES): Add findcmd.c.
1771 (COMMON_OBJS): Add findcmd.o.
1772 (findcmd.o): New rule.
1773 * findcmd.c: New file.
1774 * target.h (target_ops): New member to_search_memory.
1775 (simple_search_memory): Declare.
1776 (target_search_memory): Declare.
1777 * target.c (simple_search_memory): New fn.
1778 (target_search_memory): New fn.
1779 * remote.c (PACKET_qSearch_memory): New packet kind.
1780 (remote_search_memory): New fn.
1781 (init_remote_ops): Init to_search_memory.
1782 (init_extended_remote_ops): Ditto.
1783 (_initialize_remote): Add qSearch:memory packet config command.
1785 2008-05-09 Eli Zaretskii <eliz@gnu.org>
1787 * thread.c (_initialize_thread): Don't use commas and periods in
1788 first line of doc string of "set/show print thread-events".
1790 2008-05-08 Joel Brobecker <brobecker@adacore.com>
1792 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
1793 Update for unwinder changes.
1795 2008-05-08 Joel Brobecker <brobecker@adacore.com>
1797 * frame.c (get_frame_base_address, get_frame_locals_address)
1798 (get_frame_args_address): Pass the correct frame when calling
1799 frame_base_find_by_frame.
1801 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
1803 * remote.c (extended_remote_attach_1): Call target_find_description.
1805 2008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
1807 * remote.c (extended_remote_create_inferior_1): Clean up
1808 before marking the target running.
1810 2008-05-08 Joel Brobecker <brobecker@adacore.com>
1812 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
1815 2008-05-07 Joel Brobecker <brobecker@adacore.com>
1817 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
1818 sparc64-sol2-tdep.c: Update for unwinder changes.
1820 2008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
1822 * cp-support.c (mangled_name_to_comp): Initialize storage.
1823 (unqualified_name_from_comp): Likewise.
1825 2008-05-07 Jie Zhang <jie.zhang@analog.com>
1827 * remote.c (remote_insert_breakpoint): Call get_remote_state
1828 after gdbarch_breakpoint_from_pc is called.
1829 (remote_insert_hw_breakpoint): Likewise.
1831 2008-05-06 Joel Brobecker <brobecker@adacore.com>
1833 * valprint.c (val_print): Add new language parameter and use it
1834 instead of using the current_language. Update calls to val_print
1836 (common_val_print): Add new langauge parameter and pass it to
1838 * value.h (struct language_defn): Add opaque declaration.
1839 (val_print, common_val_print): Update declarations.
1840 * stack.c (print_frame_args): Update call to common_val_print
1841 using the appropriate language.
1842 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
1843 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
1844 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
1845 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
1846 #include "language.h" if necessary.
1847 Update calls to val_print and common_val_print.
1848 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
1849 Update dependencies.
1851 2008-05-06 Joel Brobecker <brobecker@adacore.com>
1853 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
1854 pointing inside a non-executable section as function descriptors.
1856 2008-05-06 Pedro Alves <pedro@codesourcery.com>
1858 * inf-loop.c (inferior_event_handler): Run all continuations and
1859 print any language change before running the breakpoint commands.
1861 2008-05-06 Joel Brobecker <brobecker@adacore.com>
1863 * frame-unwind.c (frame_unwind_got_bytes): New function.
1864 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
1865 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
1866 for unwinder changes.
1868 2008-05-05 Doug Evans <dje@google.com>
1870 * NEWS: Mention new /m modifier for disassemble command.
1871 * cli/cli-cmds.c (print_disassembly): New function.
1872 (disassemble_current_function): New function
1873 (disassemble_command): Recognize /m modifier, print mixed
1875 (init_cli_cmds): Update disassemble help text.
1877 2008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
1879 * xtensa-tdep.c: Update for unwinder changes.
1881 2008-05-05 Andreas Schwab <schwab@suse.de>
1883 Update m68k port for unwinder changes.
1884 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
1885 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
1886 (m68k_frame_unwind): Use default_frame_sniffer.
1887 (m68k_frame_sniffer): Remove.
1888 (m68k_frame_base_address): Expect this_frame.
1889 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
1891 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
1892 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
1893 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
1894 parameter instead of pc value.
1895 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
1897 (m68k_linux_sigtramp_frame_this_id)
1898 (m68k_linux_sigtramp_frame_prev_register)
1899 (m68k_linux_sigtramp_frame_sniffer): Update signature.
1900 (m68k_linux_sigtramp_frame_unwind): Use
1901 m68k_linux_sigtramp_frame_sniffer.
1902 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
1904 * m68klinux-nat.c (store_register): Fix typo.
1906 2008-05-05 Pedro Alves <pedro@codesourcery.com>
1908 * infcmd.c (step_1): Put thread id on the stack to avoid possible
1911 2008-05-05 Luis Machado <luisgpm@br.ibm.com>
1913 * symfile.c (reread_symbols): Update objfile's entry point.
1915 2008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
1916 Joel Brobecker <brobecker@adacore.com>
1918 * ada-lang.c: Update throughout to use symbol_matches_domain
1919 instead of matching the symbol domain explictly.
1920 * dwarf2read.c (add_partial_symbol): Do not add new psym for
1921 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
1922 class as typedefs. See lookup_partial_symbol function.
1923 (new_symbol): Similar to add_partial_symbol, do not create
1924 symbol for the typedef. See lookup_block_symbol.
1925 * symtab.c (symbol_matches_domain): New function, takes care
1926 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
1927 (lookup_partial_symbol): Use symbol_matches_domain to see if the
1928 found psym domain matches the given domain.
1929 (lookup_block_symbol): Likewise.
1931 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
1933 * top.c (command_line_handler_continuation): Remove.
1934 (execute_command): Do not install the above.
1936 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
1938 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
1939 and catch all exceptions from it.
1940 * top.c (command_line_handler_continuation): Don't
1941 call bpstat_do_action here.
1943 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
1945 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
1946 (struct die_info): Remove type.
1947 (read_type_die, read_typedef, read_base_type, read_subrange_type)
1948 (read_structure_type, read_enumeration_type, read_array_type)
1949 (read_tag_pointer_type, read_tag_ptr_to_member_type)
1950 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
1951 (read_tag_string_type, read_subroutine_type, read_set_type)
1952 (read_unspecified_type): Delete prototypes. Remove check for
1953 already-loaded type. Return the new type.
1954 (set_die_type): Return the new type.
1955 (reset_die_and_siblings_types): Delete.
1956 (load_comp_unit, load_full_comp_unit): Set type_hash.
1957 (process_queue): Remove call to reset_die_and_siblings_types.
1958 (process_die): Do not read most types here. Use read_type_die
1960 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
1961 (quirk_gcc_member_function_pointer): Return the new type.
1962 (process_structure_scope, process_enumeration_scope): Use
1963 get_die_type and read the DIE's type.
1964 (read_full_die): Do not initialize die->type.
1965 (tag_type_to_type): Use read_type_die.
1966 (read_type_die): Check for already defined types. Return the
1968 (determine_prefix): Use get_die_type.
1969 (set_die_type): Return the type.
1970 (get_die_type): Take a CU argument. Check for no type_hash.
1972 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
1974 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
1977 2008-05-04 Pedro Alves <pedro@codesourcery.com>
1979 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
1980 and bp_longjmp_resume breakpoints.
1981 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
1983 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
1984 breakpoints. Create bp_longjmp breakpoints as momentary
1986 (enable_longjmp_breakpoint): Delete.
1987 (set_longjmp_breakpoint): New.
1988 (disable_longjmp_breakpoint): Delete.
1989 (delete_longjmp_breakpoint): New.
1990 (set_longjmp_resume_breakpoint): Delete.
1991 (set_momentary_breakpoint_at_pc): New.
1992 (breakpoint_re_set_one): Don't delete bp_longjmp and
1993 bp_longjmp_resume breakpoints.
1994 (breakpoint_re_set): Don't create longjmp and longjmp-resume
1997 * infrun.c (step_resume_breakpoint): Add comment.
1998 (struct execution_control_state): Delete handling_longjmp member.
1999 (init_execution_control_state). Don't clear handling_longjmp.
2000 (context_switch): Don't context switch handling_longjmp.
2001 (handle_inferior_event): If handling a bp_longjmp breakpoint,
2002 create a bp_longjmp_resume breakpoint, and set it as current
2003 step_resume_breakpoint, then step over the longjmp breakpoint. If
2004 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
2005 breakpoint, delete the longjmp-resume breakpoint, and stop
2007 (currently_stepping): Remove handling_longjmp from expression.
2008 (insert_step_resume_breakpoint_at_sal): Update comment.
2009 (insert_longjmp_resume_breakpoint): New.
2011 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
2012 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
2014 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
2015 (set_longjmp_resume_breakpoint): Delete declaration.
2017 * gdbthread.h (save_infrun_state): Remove handling_longjmp
2019 (load_infrun_state): Delete *handling_longjmp parameter.
2020 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
2022 (load_infrun_state): Delete *handling_longjmp parameter. Update
2025 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
2026 (delete_longjmp_breakpoint_cleanup): New.
2027 (step_1): Call set_longjmp_breakpoint instead of
2028 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
2029 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
2030 (step_1_continuation): Pass thread id in the continuation args to
2032 (step_once): Add thread parameter. Pass thread id the the
2035 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2037 Set CU BASE_ADDRESS already from partial DIEs.
2038 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
2039 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
2040 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
2041 from these variables if it was still unset.
2043 * Makefile.in: Update dependencies.
2044 * dwarf2read.c: Include "addrmap.h"
2045 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
2046 (dwarf2_ranges_read): New prototype.
2047 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
2048 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
2049 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
2050 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
2051 comment for it. Add the found ranges to RANGES_PST. New variable
2052 BASEADDR, initialize it the common way.
2053 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
2054 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
2055 HAS_RANGES_OFFSET for the later processing.
2056 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
2057 * symtab.c: Include "addrmap.h"
2058 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
2059 Move the psymtab locator into ...
2060 (find_pc_sect_psymtab_closer): ... a new function.
2062 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
2064 * arch-utils.c (gdbarch_update_p): Use default values for
2065 info.abfd and info.target_desc if they are NULL.
2066 (gdbarch_from_bfd): Remove assertion.
2067 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
2068 using the current target description.
2069 (gdbarch_info_fill): Do not use default values for info->abfd
2070 and info->target_desc.
2072 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2074 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
2076 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
2078 * inferior.h (read_pc_pid, write_pc_pid): Remove.
2079 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
2081 * regcache.c (read_pc_pid): Remove, replace by ...
2082 (regcache_read_pc): ... this function.
2083 (write_pc_pid): Remove, replace by ...
2084 (regcache_write_pc): ... this function.
2085 (read_pc, write_pc): Update.
2087 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
2088 write_pc_pid by regcache_read_pc and regcache_write_pc.
2089 (displaced_step_fixup): Likewise.
2090 (resume): Likewise. Use regcache arch instead of current_gdbarch.
2091 (prepare_to_proceed): Likewise.
2092 (proceed): Likewise.
2093 (adjust_pc_after_break): Likewise.
2094 (handle_inferior_event): Likewise.
2096 * linux-nat.c (cancel_breakpoint): Likewise.
2097 * linux-thread-db.c (check_event): Likewise.
2098 * aix-thread.c (aix_thread_wait): Likewise.
2099 * tracepoint.c (trace_dump_command): Likewise.
2101 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2103 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
2104 SYMBOL_LOCATION_BATON.
2106 2008-05-04 Vladimir Prus <vladimir@codesourcery.com>
2108 * target.h (struct target_ops): New field to_auxv_parse.
2109 * auxv.c (default_auxv_parse): New, renamed from previous
2111 (target_auxv_parse): Try to call target method. Fallback to
2112 default_auxv_parse if not found.
2113 * procfs.c (procfs_auxv_parse): New.
2114 (init_procfs_ops): On Solaris, in 64-bit mode, install
2117 2008-05-03 Adam Nemet <anemet@caviumnetworks.com>
2119 * symfile.c (add_symbol_file_command): Use paddress rather than
2120 hex_string to print the address.
2122 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
2124 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
2125 return the null frame ID to terminate the backtrace.
2127 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
2129 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
2130 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
2131 (SIG_FRAME_PC_OFFSET): Likewise.
2132 (SIG_FRAME_LR_OFFSET): Likewise.
2133 (SIG_FRAME_FP_OFFSET): Likewise.
2134 (rs6000_push_dummy_call): Likewise.
2135 (rs6000_return_value): Likewise.
2136 (rs6000_convert_from_func_ptr_addr): Likewise.
2137 (branch_dest, rs6000_software_single_step): Likewise.
2138 (deal_with_atomic_sequence): Rename to ...
2139 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
2140 Do not call branch_dest; inline required parts of that function.
2141 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
2142 with SYMBOL_LINKAGE_NAME.
2143 (struct reg, regsize): Delete.
2144 (read_memory_addr): Delete; inline into callers.
2145 (rs6000_skip_prologue): Move after skip_prologue.
2146 (skip_prologue): Remove prototype.
2147 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
2148 initialization as if this variable were true. Do not install
2149 ppc64_sysv_abi_adjust_breakpoint_address.
2151 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
2152 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
2154 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
2155 (SIG_FRAME_PC_OFFSET): Likewise.
2156 (SIG_FRAME_LR_OFFSET): Likewise.
2157 (SIG_FRAME_FP_OFFSET): Likewise.
2158 (rs6000_push_dummy_call): Likewise.
2159 (rs6000_return_value): Likewise.
2160 (rs6000_convert_from_func_ptr_addr): Likewise.
2161 (branch_dest, rs6000_software_single_step): Likewise. Replace
2162 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
2163 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
2164 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
2165 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
2166 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
2168 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
2169 (AIX_TEXT_SEGMENT_BASE): New macro.
2170 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
2171 by AIX_TEXT_SEGMENT_BASE.
2173 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
2174 (struct gdbarch_tdep): Remove text_segment_base member.
2175 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
2176 ppc64_sysv_abi_adjust_breakpoint_address.
2178 * Makefile.in (rs6000-tdep.o): Update dependencies.
2179 (rs6000-aix-tdep.o): Likewise.
2181 2008-05-03 Luis Machado <luisgpm@br.ibm.com>
2182 Thiago Jung Bauermann <bauerman@br.ibm.com>
2184 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
2185 * doublest.c (convert_typed_floating): Fix typo in comment.
2186 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
2187 * frame-unwind.h (frame_sniffer_ftype): Likewise.
2188 * frame.c (frame_unwind_address_in_block): Likewise.
2189 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
2190 * symtab.h (struct symbol): Likewise.
2191 * tramp-frame.h (struct trad_frame_cache): Likewise.
2192 * value.c (allocate_repeat_value): Likewise.
2194 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
2196 * infrun.c (handle_inferior_event): Do not insert breakpoints at
2197 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
2199 2008-05-03 Pedro Alves <pedro@codesourcery.com>
2201 * parse.c (parse_exp_in_context): Don't override
2202 expression_context_pc if get_selected_block returned a valid
2205 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
2207 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
2208 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
2209 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
2211 * c-typeprint.c (c_type_print_base): Delete handling of template
2213 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
2214 (METHOD_PTR_TO_VOFFSET): Delete.
2215 * defs.h (QUIT_FIXME): Delete.
2216 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
2217 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
2218 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
2219 ninstantiations, and instantiations.
2220 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
2221 (TYPE_FN_FIELD_INLINED): Delete.
2222 * srec.h (SREC_BINARY): Delete.
2223 * symtab.c (symbol_init_demangled_name): Delete.
2224 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
2225 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
2226 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
2227 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
2228 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
2229 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
2230 * target.h (enum thread_control_capabilities): Delete tc_switch.
2231 (target_can_switch_threads): Delete.
2233 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
2235 * Makefile.in (objfiles.o): Update.
2236 * exec.c (exec_set_section_address): Support p->addr != 0.
2237 * objfiles.c (objfile_relocate): Update exec_ops section
2239 * symfile.c (place_section): Move exec_set_section_address call...
2240 (default_symfile_offsets): ...to here.
2242 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
2244 * Makefile.in (ppc_linux_tdep_h): New macro.
2245 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
2246 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
2247 (powerpc_e500l_c): Likewise.
2248 (ppc-linux-nat.o): Update dependencies.
2249 (ppc-linux-tdep.o): Update dependencies.
2250 (rs6000-tdep.o): Update dependencies.
2252 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
2253 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
2254 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
2255 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
2256 (tdesc_powerpc_e500): Remove.
2258 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
2259 and "features/rs6000/powerpc-altivec64.c".
2260 (ppc_supply_reg, ppc_collect_reg): Make global.
2261 (variants): Use tdesc_powerpc_32 for "powerpc" and
2262 tdesc_powerpc_altivec64 for "powerpc64".
2263 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
2265 * ppc-linux-tdep.h: New file.
2267 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
2268 Include "features/rs6000/powerpc-32l.c".
2269 Include "features/rs6000/powerpc-altivec32l.c".
2270 Include "features/rs6000/powerpc-64l.c".
2271 Include "features/rs6000/powerpc-altivec64l.c".
2272 Include "features/rs6000/powerpc-e500l.c".
2273 (ppc_linux_supply_gregset): New function.
2274 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
2275 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
2276 (ppc64_linux_gregset): Likewise.
2277 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
2278 (ppc_linux_trap_reg_p): New function.
2279 (ppc_linux_write_pc): New function.
2280 (ppc_linux_core_read_description): New function.
2281 (ppc_linux_init_abi): Install ppc_linux_write_pc and
2282 ppc_linux_core_read_description. Install orig_r3 and trap
2283 registers if present in the target description.
2284 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
2286 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
2287 (PT_ORIG_R3, PT_TRAP): Define if necessary.
2288 (ppc_register_u_addr): Handle orig_r3 and trap registers.
2289 (fetch_ppc_registers): Likewise.
2290 (store_ppc_registers): Likewise.
2291 (store_register): Likewise.
2292 (ppc_linux_read_description): Check whether AltiVec is supported.
2293 Check whether inferior is 32-bit or 64-bit. Return the appropriate
2294 Linux target description.
2296 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
2297 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
2298 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
2299 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
2300 rs6000/powerpc-e500. Update -expedite variables accordingly.
2302 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
2303 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
2304 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
2305 * features/rs6000/powerpc-e500.c: Regenerate.
2306 * features/rs6000/powerpc-32.c: Regenerate.
2307 * features/rs6000/powerpc-64.c: Regenerate.
2309 * features/rs6000/power-linux.xml: New file.
2310 * features/rs6000/power64-linux.xml: New file.
2311 * features/rs6000/powerpc-32l.xml: New file.
2312 * features/rs6000/powerpc-altivec32l.xml: New file.
2313 * features/rs6000/powerpc-64l.xml: New file.
2314 * features/rs6000/powerpc-altivec64l.xml: New file.
2315 * features/rs6000/powerpc-e500l.xml: New file.
2316 * features/rs6000/powerpc-32l.c: New (generated) file.
2317 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
2318 * features/rs6000/powerpc-64l.c: New (generated) file.
2319 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
2320 * features/rs6000/powerpc-e500l.xml: New (generated) file.
2322 * regformats/reg-ppc.dat: Remove.
2323 * regformats/reg-ppc64.dat: Remove.
2324 * regformats/rs6000/powerpc-32.dat: Remove.
2325 * regformats/rs6000/powerpc-64.dat: Remove.
2326 * regformats/rs6000/powerpc-e500.dat: Remove.
2327 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
2328 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
2329 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
2330 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
2331 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
2333 2008-05-03 Pedro Alves <pedro@codesourcery.com>
2335 * thread.c (delete_thread): Call observer_notify_thread_exit.
2336 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
2337 thread_exit observer.
2338 (mi_thread_exit): New.
2340 2008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
2342 * breakpoint.c (create_exception_catchpoint): Remove prototype
2343 for already deleted function.
2344 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
2345 * frame.h (show_stack_frame): Remove prototype.
2346 * stack.c (show_stack_frame): Remove empty, unused function.
2347 * source.c (symtab_to_fullname, print_source_lines): Small fix
2349 * value.c (show_values): Update comments to mention "show values"
2350 command instead of "info history".
2352 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
2354 * linespec.c: Include "target.h".
2355 (minsym_found): Handle minimal symbols pointing to function
2356 descriptors. Use find_function_start_pc.
2357 * minsyms.c (msymbol_objfile): New function.
2358 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
2359 to function descriptors.
2360 * symtab.c (fixup_section): Only use minimal symbol at the same
2361 address to determine section of a symbol.
2362 (find_function_start_pc): New function.
2363 (find_function_start_sal): Use it.
2364 * symtab.h (msymbol_objfile): Add prototype.
2365 (find_function_start_pc): Likewise.
2366 * value.c: Include "objfiles.h".
2367 (value_fn_field): Handle minimal symbols pointing to function
2369 * Makefile.in (linespec.o): Update dependencies.
2370 (value.o): Likewise.
2372 2008-05-02 Joel Brobecker <brobecker@adacore.com>
2374 * ada-lang.c (unwrap_value): Handle the case where the "F" field
2375 inside a PAD type is a bitfield.
2377 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
2379 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
2380 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
2381 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
2382 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
2383 Allow typedefs when checking for function pointer arguments.
2384 Right-align small structs passed on the stack.
2385 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
2386 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
2387 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
2389 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
2391 * Makefile.in (arm-tdep.o): Update.
2392 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
2393 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
2394 (arm_pc_is_thumb): Use mapping symbols.
2395 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
2396 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
2397 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
2398 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
2399 * gdbarch.sh: Add record_special_symbol.
2400 * gdbarch.c, gdbarch.h: Regenerated.
2401 * objfiles.c (struct objfile_data): Add cleanup member.
2402 (register_objfile_data_with_cleanup): New function, from
2403 register_objfile_data.
2404 (register_objfile_data): Use it.
2405 (objfile_free_data): Call clear_objfile_data.
2406 (clear_objfile_data): Call cleanup functions.
2407 * objfiles.h (register_objfile_data_with_cleanup): Declare.
2409 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
2411 * objfiles.c (init_entry_point_info): Handle shared libraries.
2413 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
2415 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
2418 2008-05-02 Jim Blandy <jimb@codesourcery.com>
2419 Pedro Alves <pedro@codesourcery.com>
2421 Implement displaced stepping.
2423 * gdbarch.sh (max_insn_length): New 'variable'.
2424 (displaced_step_copy, displaced_step_fixup)
2425 (displaced_step_free_closure, displaced_step_location): New
2427 (struct displaced_step_closure): Add forward declaration.
2428 * gdbarch.c, gdbarch.h: Regenerated.
2430 * arch-utils.c: #include "objfiles.h".
2431 (simple_displaced_step_copy_insn)
2432 (simple_displaced_step_free_closure)
2433 (displaced_step_at_entry_point): New functions.
2434 * arch-utils.h (simple_displaced_step_copy_insn)
2435 (simple_displaced_step_free_closure)
2436 (displaced_step_at_entry_point): New prototypes.
2438 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
2439 (I386_MAX_MATCHED_INSN_LEN): ... this.
2440 (i386_absolute_jmp_p, i386_absolute_call_p)
2441 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
2442 (i386_displaced_step_fixup): New functions.
2443 (struct i386_insn, i386_match_insn): Update.
2444 (i386_gdbarch_init): Set gdbarch_max_insn_length.
2445 * i386-tdep.h (I386_MAX_INSN_LEN): New.
2446 (i386_displaced_step_fixup): New prototype.
2447 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
2448 Register gdbarch_displaced_step_copy,
2449 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
2450 and gdbarch_displaced_step_location functions.
2452 * infrun.c (debug_displaced): New variable.
2453 (show_debug_displaced): New function.
2454 (struct displaced_step_request): New struct.
2455 (displaced_step_request_queue, displaced_step_ptid)
2456 (displaced_step_gdbarch, displaced_step_closure)
2457 (displaced_step_original, displaced_step_copy)
2458 (displaced_step_saved_copy, can_use_displaced_stepping): New
2460 (show_can_use_displaced_stepping, use_displaced_stepping)
2461 (displaced_step_clear, cleanup_displaced_step_closure)
2462 (displaced_step_dump_bytes, displaced_step_prepare)
2463 (displaced_step_clear_cleanup, write_memory_ptid)
2464 (displaced_step_fixup): New functions.
2465 (resume): Call displaced_step_prepare.
2466 (proceed): Call read_pc once, and remember the value. If using
2467 displaced stepping, don't remove breakpoints.
2468 (handle_inferior_event): Call displaced_step_fixup. Add some
2469 debugging output. When we try to step over a breakpoint, but get
2470 a signal to deliver to the thread instead, ensure the step-resume
2471 breakpoint is actually inserted. If a thread hop is needed, and
2472 displaced stepping is enabled, don't remove breakpoints.
2473 (init_wait_for_inferior): Call displaced_step_clear.
2474 (_initialize_infrun): Add "set debug displaced" command. Add
2475 "maint set can-use-displaced-stepping" command. Clear
2476 displaced_step_ptid.
2477 * inferior.h (debug_displaced): Declare variable.
2478 (displaced_step_dump_bytes): Declare function.
2480 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
2483 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
2485 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
2486 (arm_force_mode_string, arm_show_fallback_mode)
2487 (arm_show_force_mode): New.
2488 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
2490 (_initialize_arm_tdep): Add "set arm fallback-mode"
2491 and "set arm force-mode".
2492 * NEWS: Document new commands.
2494 2008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
2496 * main.h (batch_silent): Declare.
2497 * event-top.c: Include main.h.
2498 (gdb_setup_readline): Remove extern batch_silent declaration.
2499 * infrun.c (normal_stop): Don't print source location when running in
2500 --batch-silent mode.
2501 * Makefile.in (event-top.o): Add main.h dependency.
2503 2008-05-02 Andreas Schwab <schwab@suse.de>
2505 * target.h (struct target_ops): Add
2506 to_watchpoint_addr_within_range.
2507 (target_watchpoint_addr_within_range): New function.
2508 * target.c (update_current_target): Inherit
2509 to_watchpoint_addr_within_range, defaulting to
2510 default_watchpoint_addr_within_range.
2511 (default_watchpoint_addr_within_range): New function.
2512 (debug_to_watchpoint_addr_within_range): New function.
2513 (setup_target_debug): Set to_watchpoint_addr_within_range.
2514 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
2516 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
2517 * breakpoint.c (watchpoints_triggered): Use
2518 target_watchpoint_addr_within_range.
2520 2008-05-01 Pedro Alves <pedro@codesourcery.com>
2522 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
2523 (i[34567]86-*-dicos*, x86_64-*-dicos*):
2524 Set gdb_osabi to GDB_OSABI_DICOS.
2526 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
2527 * osabi.c (gdb_osabi_name): Add "DICOS".
2529 * i386-dicos-tdep.c: New file.
2531 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
2532 (ALLDEPFILES): Add i386-dicos-tdep.c.
2533 (i386-dicos-tdep.o): New rule.
2535 2008-05-01 Pedro Alves <pedro@codesourcery.com>
2537 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
2538 and register the fork's PTID as a thread.
2540 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
2543 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
2544 assign its value to the breakpoint created.
2545 (create_breakpoints): Add breakpoint_ops argument and pass it
2546 to create_breakpoint call.
2547 (break_command_really): Add breakpoint_ops argument and pass/assign
2549 (break_command_1): Pass NULL as ops argument.
2550 (set_breakpoint): Pass NULL as ops argument.
2551 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
2552 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
2553 catch and throw catchpoints.
2555 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
2558 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
2559 translate signal numeric value from the target to GDB's enum
2561 * gdbarch.c, gdbarch.h: Regenerated.
2562 * gdbarch.sh: Added two new functions target_signal_from_host and
2563 target_signal_to_host.
2564 * target.h (default_target_signal_from_host,
2565 default_target_signal_to_host): New functions - declarations.
2566 * signals/signals.c (struct gdbarch): New declaration.
2567 (default_target_signal_to_host, default_target_signal_from_host): New
2570 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
2571 Pedro Alves <pedro@codesourcery.com>
2573 Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff
2574 Johnston <jjohnstn@redhat.com>.
2576 * NEWS: Mention attach to stopped process fix.
2577 * infcmd.c (detach_command, disconnect_command): Discard the thread
2579 * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
2580 attaching. Use signal_stop_state.
2581 (signal_stop_state): Check stop_soon.
2582 * linux-nat.c (kill_lwp): Declare earlier.
2583 (pid_is_stopped, linux_nat_post_attach_wait): New.
2584 (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update
2586 (linux_nat_attach): Use linux_nat_post_attach_wait.
2587 (detach_callback, linux_nat_detach): Improve handling for signalled
2589 (linux_nat_pid_to_str): Always print out the LWP ID if it differs
2590 from the process ID.
2591 * Makefile.in (infcmd.o): Update.
2593 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
2595 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
2596 * arm-tdep.c (arm_frame_is_thumb): New.
2597 (arm_pc_is_thumb): Clarify comment.
2598 (thumb_analyze_prologue): Remove PC special case.
2599 (thumb_scan_prologue): Take a block_addr argument. Use it for
2600 find_pc_partial_function. Remove unused variables.
2601 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
2602 for find_pc_partial_function. Remove PC special case.
2603 (arm_prologue_prev_register): Add special handling for PC and CPSR.
2604 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
2605 (arm_get_next_pc): Use arm_frame_is_thumb.
2606 (arm_write_pc): Use CPSR_T instead of 0x20.
2607 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
2608 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
2610 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
2611 DWARF2_FRAME_REG_FN.
2612 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
2613 DWARF2_FRAME_REG_FN.
2614 (struct dwarf2_frame_state_reg): Add FN to loc union.
2616 2008-05-01 Nick Roberts <nickrob@snap.net.nz>
2618 * exec.c (print_section_info): Add missing '\n'.
2620 2008-05-01 Vladimir Prus <vladimir@codesourcery.com>
2622 * thread.c (add_thread): Move observer call to ...
2623 (add_thread_silent): ... here.
2625 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
2627 * rs6000-tdep.c: Update for unwinder changes.
2628 * ppcobsd-tdep.c: Likewise.
2630 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
2632 * s390-tdep.c: Update for unwinder changes.
2634 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
2636 * spu-tdep.c: Update for unwinder changes.
2638 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2640 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
2641 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
2642 sparc64-linux-tdep.c: Update for unwinder changes.
2644 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2646 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
2647 for unwinder changes.
2648 * mips-tdep.c: Likewise.
2649 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
2652 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2654 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
2657 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2659 Update i386 and amd64 ports for unwinder changes.
2661 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
2662 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
2663 (amd64_frame_unwind): Use default_frame_sniffer.
2664 (amd64_frame_sniffer): Delete.
2665 (amd64_sigtramp_frame_cache): Expect this_frame.
2666 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
2667 (amd64_sigtramp_frame_sniffer): Update signature.
2668 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
2669 (amd64_frame_base_address): Expect this_frame.
2670 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
2672 (amd64_init_abi): Use set_gdbarch_dummy_id and
2673 frame_unwind_append_unwinder.
2674 * i386-tdep.c (i386_frame_cache): Expect this_frame.
2675 (i386_frame_this_id, i386_frame_prev_register): Update signature.
2676 (i386_frame_unwind): Use default_frame_sniffer.
2677 (i386_frame_sniffer): Delete.
2678 (i386_sigtramp_frame_cache): Expect this_frame.
2679 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
2680 (i386_sigtramp_frame_sniffer): Update signature.
2681 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
2682 (i386_frame_base_address): Update signature.
2683 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
2684 (i386_push_dummy_call): Update comment.
2685 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
2687 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
2688 and frame_unwind_append_unwinder.
2689 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
2690 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
2691 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
2692 i386nbsd-tdep.c: Update for unwinder changes.
2694 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2696 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
2697 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
2699 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
2700 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
2701 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
2703 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
2705 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
2707 * tramp-frame.h (struct tramp_frame): Update signature of init.
2708 * Makefile.in (trad-frame.o): Update.
2710 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2712 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
2713 (execute_stack_op): Put this_frame in the baton.
2714 (execute_cfa_program): Take this_frame.
2715 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
2716 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
2717 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
2718 (dwarf2_frame_this_id): Adjust to work on this_frame.
2719 (dwarf2_signal_frame_this_id): Delete.
2720 (dwarf2_frame_prev_register): Update signature. Use new frame
2722 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
2723 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
2724 dwarf2_frame_sniffer.
2725 (dwarf2_append_unwinders): New.
2726 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
2728 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
2729 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
2730 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
2731 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
2732 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
2733 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
2734 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
2735 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
2736 (dwarf2_append_unwinders): Declare.
2737 (dwarf2_frame_base_sniffer): Update declaration.
2738 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
2741 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2743 Convert frame unwinders to use the current frame and
2746 * frame.c (frame_debug): Make global.
2747 (get_frame_id): Pass this frame to unwinder routines.
2748 (frame_pc_unwind): Remove unused unwind->prev_pc support.
2749 (do_frame_register_read): Do not discard the return value of
2750 frame_register_read.
2751 (frame_register_unwind): Remove debug messages. Use
2752 frame_unwind_register_value.
2753 (frame_unwind_register_value, get_frame_register_value): New
2755 (create_new_frame, get_frame_base_address, get_frame_locals_address)
2756 (get_frame_args_address, get_frame_type): Pass this frame to
2758 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
2760 * frame.h: Update comments.
2761 (frame_debug, frame_unwind_register_value, get_frame_register_value)
2762 (frame_prepare_for_sniffer): Declare.
2763 * frame-unwind.h: Update comments and parameter names.
2764 (default_frame_sniffer): Declare.
2765 (frame_prev_register_ftype): Return a struct value *.
2766 (struct frame_unwind): Remove prev_pc member.
2767 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
2768 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
2769 (frame_unwind_got_register, frame_unwind_got_memory)
2770 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
2771 * frame-base.h: Update comments and parameter names.
2772 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
2773 if necessary. Add debugging output.
2774 * sentinel-frame.c (sentinel_frame_prev_register)
2775 (sentinel_frame_this_id): Update for new signature.
2776 (sentinel_frame_prev_pc): Delete.
2777 (sentinel_frame_unwinder): Remove prev_pc.
2778 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
2780 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
2781 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
2782 (frame_unwind_append_sniffer): Delete.
2783 (frame_unwind_append_unwinder): New function.
2784 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
2785 from unwinders. Use frame_prepare_for_sniffer.
2786 (default_frame_sniffer, frame_unwind_got_optimized)
2787 (frame_unwind_got_register, frame_unwind_got_memory)
2788 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
2789 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
2790 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
2792 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
2793 * gdbarch.c, gdbarch.c: Regenerated.
2794 * frame-base.c (default_frame_base_address)
2795 (default_frame_locals_address, default_frame_args_address): Update
2797 (frame_base_find_by_frame): Pass this frame to unwinder routines.
2798 * infcall.c (call_function_by_hand): Update comments.
2799 * Makefile.in (frame-unwind.o): Update dependencies.
2801 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2803 * ada-lang.c (ada_value_primitive_packed_val): Only check
2804 value_lazy for memory lvals.
2805 * findvar.c (value_of_register_lazy): New function.
2806 (locate_var_value): Only check value_lazy for memory lvals.
2807 * valarith.c (value_subscripted_rvalue): Likewise.
2808 * valops.c (value_fetch_lazy): Handle both memory and register
2810 (search_struct_field, value_slice): Only check value_lazy for memory
2812 * value.c (struct value): Update comment for lazy.
2813 (value_primitive_field): Only check value_lazy for memory lvals.
2814 * value.h (value_lazy): Update comment.
2815 (value_of_register_lazy): Declare.
2817 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2819 * corefile.c (reopen_exec_file): Close any open files.
2821 2008-04-29 Joel Brobecker <brobecker@adacore.com>
2823 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
2824 show_memory_breakpoints to 1 while reading the instruction bundle.
2826 2008-04-29 Joel Brobecker <brobecker@adacore.com>
2828 * gdbarch.sh: Document the return_value method. Explain that
2829 the FUNCTYPE parameter might be NULL.
2830 * gdbarch.h: Regenerated.
2831 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
2832 type when calling using_struct_return, as this is unnecessary
2835 2008-04-28 Joel Brobecker <brobecker@adacore.com>
2837 * terminal.h (create_tty_session): Fix return type.
2839 2008-04-26 Vladimir Prus <vladimir@codesourcery.com>
2841 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
2843 2008-04-26 Joel Brobecker <brobecker@adacore.com>
2845 * breakpoint.c (condition_command, commands_from_control_command)
2846 (break_command_really): Minor reformatting.
2848 2008-04-25 Pedro Alves <pedro@codesourcery.com>
2850 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
2852 2008-04-25 Pedro Alves <pedro@codesourcery.com>
2854 * amd64-tdep.c (amd64_get_longjmp_target): New.
2855 (amd64_init_abi): Register amd64_get_longjmp_target as
2856 gdbarch_get_longjmp_target callback.
2857 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
2859 2008-04-25 Pedro Alves <pedro@codesourcery.com>
2861 * breakpoint.h (enum bpstat_what_main_action): Delete
2862 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
2864 * breakpoint.c (clrs): Delete.
2865 (bpstat_what): Update table.
2867 * infrun.c (handle_inferior_event): Remove
2868 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
2870 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
2872 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
2873 Adjust all prototypes using mi_cmd_args_ftype to use
2875 (struct mi_cmd): Remove the args_func field.
2876 * mi/mi-cmds.c: Don't provide value for the args_func field.
2877 * mi/mi-main.c (mi_execute_async_cli_command)
2878 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
2879 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
2880 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
2881 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
2882 (mi_cmd_target_download): Adjust.
2883 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
2884 (mi_cmd_execute): Do not check for args_func.
2885 (mi_execute_async_cli_command): Adjust.
2886 * mi/mi-parse.c: Don't check for args_func.
2888 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
2890 * breakpoint.c (bpstat_check_location)
2891 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
2892 New, extracted from bpstat_stop_status.
2893 (bpstat_stop_status): Use the above.
2895 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
2897 * mi/mi-main.c (last_async_command): Rename to current_token.
2898 (previous_async_command): Remove.
2899 (mi_cmd_gdb_exit): Adjust.
2900 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
2901 (mi_cmd_target_select): Adjust.
2902 (mi_cmd_execute): Don't set previous_async_command. Free token
2903 here even in async mode.
2904 (mi_execute_async_cli_command): Adjust.
2905 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
2907 (mi_load_progress): Adjust.
2909 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
2911 * infcmd.c (step_1_continuation): Always disable longjmp
2912 breakpoint if we're not going to do another step.
2914 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
2916 exec_cleanup murder.
2917 * breakpoint.c (until_break_command_continuation): Add
2918 the 'error' parameter. Directly delete the breakoint as
2919 opposed to running cleanups.
2920 (until_break_command): Install continuation only
2921 after starting the target. Don't use exec cleanups,
2922 use ordinary cleanups. Discard cleanups is successfully
2923 started the target in async mode.
2924 (make_cleanup_delete_breakpoint): Remove.
2925 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
2927 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
2929 (struct continations): Add the 'error' parameter to the
2930 continuation_hook field.
2931 (add_continuation, do_all_continuations)
2932 (add_intermediate_continuation)
2933 (do_all_intermediate_continuations): Add the 'error' parameter.
2934 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
2935 * inf-loop.c (inferior_event_handler): Instead of calling
2936 discard_all_continuations, use do_all_continuations with 1 as
2937 'error' parameter. Pass 0 as 'error' parameter in existing uses
2938 of discard_all_continuations.
2939 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
2941 (step_once): Install continuation only after resuming the target.
2942 (step_1_continuation): Disable longjmp breakpoint on error.
2943 (finish_command_continuation): Add the error parameter. Delete
2944 the finish breakpoint directly, do not use cleanups.
2945 (finish_command): Do not use exec_cleanups. Always setup
2946 continuation. For sync case, immediately run them.
2947 (attach_command_continuation): Add the error parameter.
2948 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
2949 remove step_resume_breakpoint -- adjust delete it directly.
2950 * interps.c (interp_set): Adjust call to do_all_continations.
2951 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
2953 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
2955 (mi_cmd_execute): Do not use exec_cleanup.
2956 (mi_execute_async_cli_command): Simplify the string concatenation
2957 logic. Do no use exec cleanup.
2958 (mi_exec_async_cli_cmd_continuation): New parameter error.
2959 Free last_async_command.
2960 * top.c (command_line_handler_continuation): New parameter error.
2961 * utils.c (exec_cleanup_chain, make_exec_cleanup)
2962 (do_exec_cleanups): Remove.
2963 (add_continuation, do_all_continations)
2964 (add_intermediate_continuation)
2965 (do_all_intermediate_continuations): New parameter error.
2967 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
2969 * breakpoint.h (bp_location_p): New typedef.
2970 Register a vector of bp_location_p.
2971 * breakpoint.c (always_inserted_mode)
2972 (show_always_inserted_mode): New.
2973 (unlink_locations_from_global_list): Remove.
2974 (update_global_location_list)
2975 (update_global_location_list_nothrow): New.
2976 (update_watchpoint): Don't free locations.
2977 (should_insert_location): New.
2978 (insert_bp_location): Use should_insert_location.
2979 (insert_breakpoint_locations): Copied from
2981 (insert_breakpoint): Use insert_breakpoint_locations.
2982 (bpstat_stop_status): Call update_global_location_list
2983 when disabling breakpoint.
2984 (allocate_bp_location): Don't add to bp_location_chain.
2985 (set_raw_breakpoint)
2986 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
2987 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
2988 (enable_overlay_breakpoints, disable_overlay_breakpoints)
2989 (set_longjmp_resume_breakpoint)
2990 (enable_watchpoints_after_interactive_call_stop)
2991 (disable_watchpoints_before_interactive_call_start)
2992 (create_internal_breakpoint)
2993 (create_fork_vfork_event_catchpoint)
2994 (create_exec_event_catchpoint, set_momentary_breakpoint)
2995 (create_breakpoints, break_command_1, watch_command_1)
2996 (create_exception_catchpoint)
2997 (handle_gnu_v3_exceptions)
2998 (disable_breakpoint, breakpoint_re_set_one)
2999 (create_thread_event_breakpoint, create_solib_event_breakpoint)
3000 (create_ada_exception_breakpoint): : Don't call check_duplicates.
3001 Call update_global_location_list.
3002 (delete_breakpoint): Don't remove locations and don't
3003 try to reinsert them. Call update_global_location_list.
3004 (update_breakpoint_locations): Likewise.
3005 (restore_always_inserted_mode): New.
3006 (update_breakpoints_after_exec): Temporary disable
3007 always inserted mode.
3008 * Makefile.in: Update dependencies.
3010 * infrun.c (proceed): Remove breakpoints while stepping
3012 (handle_inferior_event): Don't remove or insert
3014 * linux-fork.c (checkpoint_command): Remove breakpoints
3015 before fork and insert after.
3016 (linux_fork_context): Remove breakpoints before switch
3018 * target.c (target_disconnect, target_detach): Remove
3019 breakpoints from target.
3022 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3024 * breakpoint.c (print_one_breakpoint_location): In MI
3025 mode, report the location string the breakpoint was
3026 originally created with.
3028 2008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
3030 * Makefile.in (xtensa-tdep.o): Update dependencies.
3031 * configure.tgt (xtensa*): Update dependencies.
3032 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
3033 Local variable areg renamed to arreg.
3034 (areg_number): New function.
3035 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
3036 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
3037 replaced by arreg_number.
3038 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
3039 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
3040 (xtensa_scan_prologue): New function.
3041 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
3042 when ENTRY instraction hasn't been executed yet. Get the frame pointer
3043 value based on prologue analysis. Fix the bugs preventing WS and
3044 AR4-AR7/A11 registers from getting right values for intermediate frames,
3045 whose registers have been already spilled.
3046 (xtensa_frame_prev_register): Fix WS register value. Use are_number
3047 and arreg_number appropriately.
3048 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
3049 svr4_ilp32_fetch_link_map_offsets.
3051 2008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
3053 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
3054 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
3056 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
3058 * acinclude.m4: Add override.m4.
3059 * configure: Regenerate.
3061 2008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3063 * ada-lang.c (get_selections): Variable PROMPT made non-const and
3064 initialized with a trailing space now. Use PROMPT_ARG of
3065 COMMAND_LINE_INPUT instead of printing it ourselves.
3067 2008-04-22 Joel Brobecker <brobecker@adacore.com>
3069 * NEWS: Document support for 64-bit core file.
3071 2008-04-22 Corinna Vinschen <vinschen@redhat.com>
3073 * NEWS: Add information on calling convention and new SH CLI options.
3075 * sh-tdep.c (sh_cc_gcc): New static string.
3076 (sh_cc_renesas): Ditto.
3077 (sh_cc_enum): New static string array.
3078 (sh_active_calling_convention): New static string pointer denoting
3079 active user chosen ABI.
3080 (sh_is_renesas_calling_convention): New function to return function
3081 specific ABI, or user choice if necessary.
3082 (sh_use_struct_convention): Rename first argument and turn around its
3083 meaning. Check for renesas ABI and return accordingly.
3084 (sh_use_struct_convention_nofpu): New function.
3085 (sh_next_flt_argreg): Get function type as third parameter. Check
3086 for renesas ABI and choose floating registers accordingly.
3087 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
3088 struct return slot accordingly.
3089 (sh_push_dummy_call_nofpu): Ditto.
3090 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
3091 Evaluate ABI and give to sh_use_struct_convention_nofpu.
3092 (sh_return_value_fpu): Evaluate ABI and give to
3093 sh_use_struct_convention.
3094 (show_sh_command): New function.
3095 (set_sh_command): Ditto.
3096 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
3099 * gdbarch.sh (return_value): Add func_type argument.
3100 * gdbarch.c: Regenerate.
3102 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
3103 val_type so as not to collide with value_type function. Call
3104 using_struct_return with additional function type argument.
3105 * infcall.c (call_function_by_hand): Call using_struct_return and
3106 gdbarch_return_value with additional function type argument.
3107 * infcmd.c (print_return_value): Take addition func_type argument.
3108 Call gdbarch_return_value with additional function type argument.
3109 (finish_command_continuation): Call print_return_value with additional
3110 function type argument.
3111 (finish_command): Ditto.
3112 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
3113 additional function type argument.
3114 * stack.c (return_command): Call using_struct_return and
3115 gdbarch_return_value with additional function type argument.
3116 * value.c (using_struct_return): Take additional function type argument.
3117 * value.h (using_struct_return): Accommodate declaration.
3118 * alpha-tdep.c (alpha_return_value): Add func_type argument.
3119 * amd64-tdep.c (amd64_return_value): Ditto.
3120 * arm-tdep.c (arm_return_value): Ditto.
3121 * avr-tdep.c (avr_return_value): Ditto.
3122 * cris-tdep.c (cris_return_value): Ditto.
3123 * frv-tdep.c (frv_return_value): Ditto.
3124 * h8300-tdep.c (h8300_return_value): Ditto.
3125 (h8300h_return_value): Ditto.
3126 * hppa-tdep.c (hppa32_return_value): Ditto.
3127 (hppa64_return_value): Ditto.
3128 * i386-tdep.c (i386_return_value): Ditto.
3129 * ia64-tdep.c (ia64_return_value): Ditto.
3130 * iq2000-tdep.c (iq2000_return_value): Ditto.
3131 * m32c-tdep.c (m32c_return_value): Ditto.
3132 * m32r-tdep.c (m32r_return_value): Ditto.
3133 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
3134 * m68k-tdep.c (m68k_return_value): Ditto.
3135 (m68k_svr4_return_value): Ditto.
3136 * m88k-tdep.c (m88k_return_value): Ditto.
3137 * mep-tdep.c (mep_return_value): Ditto.
3138 * mips-tdep.c (mips_eabi_return_value): Ditto.
3139 (mips_n32n64_return_value): Ditto.
3140 (mips_o32_return_value): Ditto.
3141 (mips_o64_return_value): Ditto.
3142 * mn10300-tdep.c (mn10300_return_value): Ditto.
3143 * mt-tdep.c (mt_return_value): Ditto.
3144 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
3145 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
3146 (ppc_sysv_abi_broken_return_value): Ditto.
3147 (ppc64_sysv_abi_return_value): Ditto.
3148 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
3149 (ppc_sysv_abi_broken_return_value): Ditto.
3150 (ppc64_sysv_abi_return_value): Ditto.
3151 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
3152 * rs6000-tdep.c (rs6000_return_value): Ditto.
3153 * s390-tdep.c (s390_return_value): Ditto.
3154 * score-tdep.c (score_return_value): Ditto.
3155 * sh-tdep.c (sh_return_value_nofpu): Ditto.
3156 (sh_return_value_fpu): Ditto.
3157 * sh64-tdep.c (sh64_return_value): Ditto.
3158 * sparc-tdep.c (sparc32_return_value): Ditto.
3159 * sparc64-tdep.c (sparc64_return_value): Ditto.
3160 * spu-tdep.c (spu_return_value): Ditto.
3161 * v850-tdep.c (v850_return_value): Ditto.
3162 * vax-tdep.c (vax_return_value): Ditto.
3163 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
3164 * xtensa-tdep.c (xtensa_return_value): Ditto.
3166 * gdbtypes.h (struct type): Add calling_convention member.
3167 * dwarf2read.c (read_subroutine_type): Add calling convention read
3168 from DW_AT_calling_convention attribute to function type.
3170 2008-04-22 Markus Deuling <deuling@de.ibm.com>
3172 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
3173 multi_f77_subscript to support values from registers.
3174 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
3175 * value.h (value_subscripted_rvalue): Add prototype.
3177 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
3179 * f-valprint.c (f_val_print): Likewise.
3181 2008-04-21 Craig Silverstein <csilvers@google.com>
3183 * dwarf2read.c (zlib_decompress_section): Define abfd in the
3186 2008-04-21 Pedro Alves <pedro@codesourcery.com>
3188 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
3189 section is not a code section.
3191 2008-04-19 Craig Silverstein <csilvers@google.com>
3193 * NEWS: Add information on compressed debug sections.
3195 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
3197 * mi/mi-cmd-var.c (varobj_update_one): Print new
3198 value for variable objects that changed type.
3200 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
3202 * varobj.c (varobj_invalidate): Don't touch floating
3205 2008-04-19 Mark Kettenis <kettenis@gnu.org>
3207 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
3208 (multiple_symbols_cancel): Remove extra const.
3209 * symtab.h: Likewise.
3211 2008-04-19 Nick Roberts <nickrob@snap.net.nz>
3213 * interps.c (top_level_interpreter): Rename static variable...
3214 (top_level_interpreter_ptr): ...to this.
3215 (top_level_interpreter): New function.
3217 * interps.h: New extern for top_level_interpreter.
3219 * linespec.c: Include interps.h and mi/mi-cmds.h.
3220 (decode_line_2): When using MI, always set all breakpoints in menu.
3222 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
3224 2008-04-18 Craig Silverstein <csilvers@google.com>
3226 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
3227 * config.in, configure: Regenerate.
3228 * dwarf2read.c: Include zlib.h if present.
3229 Modified *_SECTION macros.
3230 (section_is_p): New.
3231 (dwarf2_locate_sections): Use section_is_p instead of strcmp
3232 (dwarf2_resize_section): New.
3233 to determine whether a given section has a given name.
3234 (zlib_decompress_section): New.
3235 (dwarf2_read_section): Read the compressed section if present
3237 * MAINTAINERS: Added myself to section Write After Approval.
3239 2008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
3241 * defs.h (exec_set_section_offsets): Remove prototype.
3242 * exec.c (exec_set_section_offsets): Remove function.
3244 2008-04-18 Joel Brobecker <brobecker@adacore.com>
3246 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
3247 in the search for the matching symbol.
3249 2008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
3251 * breakpoint.c (update_watchpoint): Always reparse
3254 2008-04-17 Joel Brobecker <brobecker@adacore.com>
3256 * breakpoint.c (print_one_breakpoint_location): Make sure to print
3257 the breakpoint address only once.
3259 2008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
3261 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
3262 rather than a hard-coded architecture, for xcoff executables.
3264 2008-04-17 Doug Evans <dje@google.com>
3266 * buildsym.c (watch_main_source_file_lossage): New fn.
3267 (end_symtab): Call it.
3269 * source.c (find_and_open_source): Add some comments clarifying
3270 handling of FULLNAME argument. Make static. Remove pointless
3273 2008-04-17 Pedro Alves <pedro@codesourcery.com>
3275 * inf-loop.c (inferior_event_handler): Also run the intermediate
3276 continuations in the INF_EXEC_COMPLETE case.
3278 2008-04-16 Tom Tromey <tromey@redhat.com>
3280 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
3281 (set_cmd_async_ok, get_cmd_async_ok): Declare.
3282 * cli/cli-decode.c (set_cmd_async_ok): New function.
3283 (get_cmd_async_ok): New function.
3284 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
3286 * top.c (execute_command): Use get_cmd_async_ok.
3287 * infcmd.c: Include cli/cli-decode.h.
3288 (_initialize_infcmd): Mark "interrupt" as async-ok.
3289 * Makefile.in (infcmd.o): Depend on cli_decode_h.
3291 2008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
3294 * exec.c: Correct "arch-utils.h" include.
3296 2008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
3299 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
3300 to allow printing to 'see' real reason of stop. This fixes PR 2424.
3301 * breakpoint.c (bpdisp_texst): New function. The function takes over
3302 the role of bpstats static array in print_one_breakpoint_location.
3303 (print_it_typical): Print "Temporary breakpoint" instead
3304 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
3305 protocols, print disp field.
3306 (print_one_breakpoint_location): Removed bpdisps static definition.
3307 Call new bpstat_text function to get value for 'disp' field.
3308 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
3310 2008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
3312 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
3313 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
3314 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
3315 * gnulib/Makefile.in: Regenerate.
3317 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3319 * Makefile.in (GNULIB_H): New. Trigger all-lib.
3320 (defs_h): Use $(GNULIB_H).
3321 (all-lib): Depend on gnulib/Makefile.
3322 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
3323 * config.in, gnulib/Makefile.in: Regenerated.
3325 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3327 * Makefile.in (LIBGNU, INCGNU): Define.
3328 (INTERNAL_CFLAGS_BASE): Add INCGNU.
3329 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
3331 ($(LIBGNU), all-lib): New rules.
3332 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
3333 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
3334 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
3335 * gnulib: New directory, from gnulib-tool.
3336 * configure, aclocal.m4: Regenerated.
3338 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3340 * linux-thread-db.c (have_threads_callback): Check thread->private.
3342 2008-04-13 Nick Roberts <nickrob@snap.net.nz>
3343 Vladimir Prus <vladimir@codesourcery.com>
3346 * varobj.c (value_of_root): Update the expression for
3348 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
3351 2008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
3353 * mi/mi-cmd-var.c: Include "mi-getopt.h".
3354 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
3355 (mi_cmd_var_set_format): Use new mi_parse_format.
3356 (mi_cmd_var_evaluate_expression): Support for -f option to specify
3358 * Makefile.in (mi-cmd-var.o): Update dependencies.
3360 * varobj.h (varobj_get_formatted_value): Declare.
3361 * varobj.c (my_value_of_variable): Added format parameter.
3362 (cplus_value_of_variable): Likewise.
3363 (java_value_of_variable): Likewise.
3364 (c_value_of_variable): Likewise. Evaluate expression based
3365 on format parameter.
3366 (struct language_specific): Add format parameter to function member
3368 (varobj_get_formatted_value): New.
3369 (varobj_get_value): Added format parameter to method call.
3371 2008-04-08 Joel Brobecker <brobecker@adacore.com>
3373 * stabsread.c (cleanup_undefined_types_noname): Manually set the
3374 instance flags of the undefined type before calling replace_type.
3376 2008-04-08 Vladimir Prus <vladimir@codesourcery.com>
3378 * target.h (enum strata): Remove the download_stratum.
3380 2008-04-07 Doug Evans <dje@google.com>
3382 * buildsym.h (last_source_file): Add dwarf info to comment.
3383 (last_source_start_addr): Ditto.
3385 2008-04-07 Pedro Alves <pedro@codesourcery.com>
3387 * alphanbsd-tdep.c: Include "target.h".
3388 * mn10300-tdep.c: Include "target.h".
3389 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
3391 2008-04-06 Vladimir Prus <vladimir@codesourcery.com>
3393 Fix breakpoint condition that use member variables.
3394 * valops.c (check_field): Remove.
3395 (check_field_in): Rename to check_field.
3396 (value_of_this): Use la_name_of_this.
3397 * value.h (check_field): Adjust prototype.
3399 * language.h (la_value_of_this): Rename to la_name_of_this.
3400 * language.c (unknown_language_defn): Specify "this" for
3402 (auto_language_defn): Likewise.
3403 (local_language_defn): Likewise.
3404 * ada-lang.c (ada_language_defn): Adjust comment.
3405 * c-lang.c (c_language_defn): Adjust comment.
3406 (cplus_language_defn): Specify "this" for name_of_this.
3407 (asm_language_defn): Adjust comment.
3408 (minimal_language_defn): Adjust comment.
3409 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
3410 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
3411 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
3412 * objc-lang.c (objc_language_defn): Specify "self" for
3414 * p-lang.c (pascal_language_defn): Specify "this" for
3416 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
3418 * symtab.c (lookup_symbol_aux): Lookup "this" in the
3419 proper scope, and check for field in type of "this", without
3420 trying to create a value.
3422 2008-04-04 Pedro Alves <pedro@codesourcery.com>
3424 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
3425 (mi_error_message): Delete declaration.
3426 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
3427 returning MI_CMD_ERROR.
3428 * mi/mi-main.c (mi_error_message): Delete.
3429 (mi_cmd_exec_interrupt):
3430 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
3431 (mi_cmd_thread_info): Call error instead of returning
3433 (mi_cmd_data_list_register_values): Call error instead of
3434 returning MI_CMD_ERROR. Adapt to new get_register interface.
3435 (get_register): Change return typo to void. Call error instead of
3436 returning MI_CMD_ERROR.
3437 (mi_cmd_data_write_register_values): Call error instead of
3438 returning MI_CMD_ERROR.
3439 (mi_cmd_list_features): Return MI_CMD_DONE.
3440 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
3441 (mi_execute_command): Always print exceptions with -error.
3443 2008-04-04 Joel Brobecker <brobecker@adacore.com>
3445 * NEWS: Mention new commands set/show multiple-symbols.
3447 2008-04-03 Joel Brobecker <brobecker@adacore.com>
3449 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
3450 (multiple_symbols_cancel): New constants.
3451 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
3452 (multiple_symbols_select_mode): New function.
3453 (_initialize_symtab): Add new set/show multiple-symbols commands.
3454 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
3455 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
3456 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
3458 * linespec.c (decode_line_2): Likewise.
3460 2008-04-03 Doug Evans <dje@sebabeach.org>
3462 * symtab.h (enum free_code): Delete free_contents, unused.
3463 * symmisc.c (free_symtab_block): Delete.
3464 (free_symtab, case free_code): Delete.
3466 2008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
3468 * valops.c (value_cast_structs): New function. Cast related
3469 STRUCT types up/down and return cast value. The body of this
3470 function comes mostly from value_cast_pointers.
3471 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
3472 to value_cast_structs. Now value_cast_pointers needs only create
3473 appropriate reference after using value_cast_structs for actual
3475 (value_cast): Handle references.
3477 2008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
3479 * MAINTAINERS: Added myself to section Write After Approval.
3481 2008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
3483 * ia64-tdep.c (examine_prologue): Correct array access.
3485 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
3487 * cp-support.c (first_component_command): Return if no arguments.
3489 2008-03-28 Carlos O'Donell <carlos@codesourcery.com>
3491 * ser-mingw.c (ser_windows_open): Open requested name.
3493 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
3495 * MAINTAINERS: Added myself.
3497 2008-03-28 Pedro Alves <pedro@codesourcery.com>
3499 * target.c (find_default_run_target): Allow a NULL `do_mesg'
3500 parameter. If it is NULL, don't call error.
3501 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
3502 `do_mesg' parameter to find_default_run_target. If no target was
3505 2008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
3507 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
3508 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
3509 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
3511 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
3513 2008-03-27 Joel Brobecker <brobecker@adacore.com>
3517 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
3519 * features/Makefile (%.dat): Set xmltarget to the base filename
3520 of the XML source, without subdirectory.
3521 * regformats/rs6000/powerpc-32.dat: Regenerate.
3522 * regformats/rs6000/powerpc-64.dat: Regenerate.
3523 * regformats/rs6000/powerpc-e500.dat: Regenerate.
3525 2008-03-27 Markus Deuling <deuling@de.ibm.com>
3527 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
3530 2008-03-27 Nick Roberts <nickrob@snap.net.nz>
3532 * mi/mi-main.c (enum captured_mi_execute_command_actions):
3533 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
3535 2008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3537 * objfiles.h (struct objfile): New GDBARCH member.
3538 (get_objfile_arch): Add prototype.
3539 * objfiles.c: Include "arch-utils.h".
3540 (allocate_objfile): Look up gdbarch associated with bfd.
3541 (get_objfile_arch): New function.
3542 * Makefile (objfiles.o): Update dependencies.
3544 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
3546 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
3548 (locexpr_describe_location): Replace current_gdbarch by
3550 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
3551 (dwarf2_add_field): Likewise.
3552 (read_tag_pointer_type): Likewise.
3553 (read_base_type): Likewise.
3554 (new_symbol): Likewise.
3556 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
3557 (decode_base_type, decode_function_type): Likewise.
3558 (coff_read_struct_type, coff_read_enum_type): Likewise.
3559 (coff_symtab_read): Replace current_gdbarch by objfile arch.
3560 (decode_base_type): Likewise.
3561 (coff_read_enum_type): Likewise.
3562 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
3563 (coff_read_enum_type): Likewise.
3565 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
3566 (end_psymtab): Likewise.
3567 (process_one_symbol): Likewise.
3569 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
3570 (parse_procedure): Likewise.
3571 (parse_partial_symbols): Likewise.
3573 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
3575 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
3576 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
3578 (read_range_type): Replace current_gdbarch by objfile arch. Replace
3579 static range_index_type by built-in type.
3580 (read_one_struct_field): Replace current_gdbarch by objfile arch.
3581 (read_enum_type): Likewise.
3583 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
3586 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
3588 * varobj.h (varobj_floating_p): Declare.
3589 * varobj.c (varobj_floating_p): New.
3590 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
3591 '@' as the name, update all floating varobjs.
3593 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
3595 * varobj.c (struct varobj_root): Rename use_selected_frame to
3596 floating, and clarify the meaning.
3597 (varobj_create, varobj_update, new_root_variable): Adjust.
3598 (value_of_root): Don't use type_changed as in variable,
3600 (c_value_of_root): Adjust.
3602 2008-03-25 Pedro Alves <pedro@codesourcery.com>
3604 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
3606 (linux_nat_wait): Add main lwp to gdb's thread list.
3607 * linux-thread-db.c (find_new_threads_callback): Also attach to
3608 already listed threads which thread_db didn't know about yet.
3610 2008-03-25 Pedro Alves <pedro@codesourcery.com>
3612 * linux-nat.c (drain_queued_events): Fix comment typo.
3613 (linux_nat_attach): In async mode, don't rely on storing a pending
3614 status. Instead place the wait status on the pipe.
3615 (linux_nat_resume): Remove unreacheable shortcut code in async
3617 (stop_wait_callback): In async mode, don't store pending status.
3618 Instead, cancel breakpoints or resend the signal appropriatelly.
3619 (cancel_breakpoint): New, refactored from
3620 cancel_breakpoints_callback.
3621 (cancel_breakpoints_callback): Call cancel_breakpoint.
3622 (pipe_to_local_event_queue): Remove special token processing.
3623 (linux_nat_wait): Issue an internal error if a pending status is
3624 found in async mode.
3626 2008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
3628 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
3630 2008-03-24 Nick Roberts <nickrob@snap.net.nz>
3631 Vladimir Prus <vladimir@codesourcery.com>
3633 * varobj.c (struct varobj_root): New component thread_id.
3634 (varobj_get_thread_id, check_scope): New functions.
3635 (c_value_of_root): Use check_scope. Switch to the
3636 proper thread if necessary.
3638 * varobj.h (varobj_get_thread_id): New extern.
3640 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
3642 2008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
3645 * top.c: Revert 2008-03-21 changes.
3647 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
3649 * thread.c (make_cleanup_restore_current_thread): Make it
3651 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
3652 * varobj.c (varobj_update): Don't save/restore frame.
3653 (c_value_of_root): Save/restore thread and frame here,
3654 using make_cleanup_restore_current_thread.
3655 * Makefile.in: Update dependecies.
3657 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
3659 * varobj.c (struct varobj_root): Clarify
3660 comment on the frame field.
3661 (varobj_create): Don't set frame if we have no
3664 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
3667 Suggested by Jan Kratochvil:
3668 * top.c (gdb_rl_operate_and_get_next_completion): Call
3669 rl_redisplay_function.
3670 (gdb_rl_redisplay): New.
3671 (init_main): Set rl_redisplay_function.
3673 2008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
3675 * aix-thread.c (pdc_read_regs): Fix compiler warning.
3676 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
3677 (store_regs_kernel_thread): Likewise.
3679 2008-03-21 Pedro Alves <pedro@codesourcery.com>
3681 Linux native async support.
3683 * target.h (struct target_ops): Delete to_async_mask_value and add
3685 (target_is_async_p, target_async): Formatting.
3686 (target_async_mask_value): Delete.
3687 (target_async_mask): Delete function declaration, and add new
3688 target macro with the same name.
3690 * target.c (update_current_target): Replace to_async_mask_value by
3691 to_async_mask. Default to_async_mask to return_one.
3692 (target_async_mask): Delete.
3693 (find_default_can_async_p, find_default_is_async_p): New.
3694 (init_dummy_target): register find_default_can_async_p and
3695 find_default_is_async_p on the dummy target.
3697 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
3698 (debug_linux_nat_async): New global.
3699 (show_debug_linux_nat_async): New function.
3700 (linux_nat_async_enabled, linux_nat_async_mask_value)
3701 (linux_nat_event_pipe, linux_nat_num_queued_events)
3702 (linux_nat_async_events_enabled): New globals.
3703 (struct waitpid_result): New struct.
3704 (waitpid_queue): New global.
3705 (queued_waitpid, push_waitpid, drain_queued_events): New.
3706 (my_waitpid): Call queued_waitpid.
3707 (linux_child_follow_fork): Disable async events during the call.
3708 (blocked_mask): Delete.
3709 (sync_sigchld_action, async_sigchld_action): New globals.
3710 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
3711 async mode, block events during the call.
3712 (linux_nat_create_inferior): New.
3713 (linux_nat_attach): In sync mode, restore the mask states. In
3714 async mode, wake the event loop immediatelly.
3715 (detach_callback): Drain all queued events of the lwp we're
3717 (linux_nat_detach): Block async mode, and drain events of the main
3719 (linux_nat_resume): If in async mode, mask async events during the
3720 call. If short circuiting, force event loop to wake up. If
3721 resuming, set target_executing, and register target events in the
3723 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
3724 (linux_nat_wait): In async mode, block events during the call.
3725 Only enable/disable passing SIGINT to the inferior in sync mode.
3726 Get events from local waitpid queue. If no interesting events was
3727 found, return to events loop. Reregister target events in the
3728 event loop on exit. In sync mode, no need to reblock SIGCHLD.
3729 (linux_nat_kill): Disable events on entry.
3730 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
3731 here. Detach async mode from the event loop if there are no more
3732 forks available, otherwise leave it on.
3733 (sigchld_handler): Assure this is called only in sync mode.
3734 (linux_async_permitted, linux_async_permitted_1): New globals.
3735 (set_maintenance_linux_async_permitted)
3736 (show_maintenance_linux_async_permitted): New functions.
3737 (linux_nat_is_async_p, linux_nat_can_async_p)
3738 (linux_nat_async_mask): New.
3739 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
3740 (get_pending_events, async_sigchld_handler): New.
3741 (linux_nat_async_events): New.
3742 (async_terminal_is_ours): New global.
3743 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
3744 (async_client_callback, async_client_context): New.
3745 (linux_nat_async_file_handler, linux_nat_async)
3746 (linux_nat_disable_async, linux_nat_enable_async): New.
3747 (linux_nat_add_target): Register linux_nat_create_inferior,
3748 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
3749 linux_nat_async_mask, linux_nat_terminal_inferior and
3750 linux_nat_terminal_ours.
3751 (_initialize_linux_nat): Remove local action variable, and update
3752 code that used it to use sync_sigchld_action. Add new
3753 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
3754 set/show command in the maintenance class. Add new "linux-async"
3755 maintenance set/show command. Block SIGCHLD by default. Setup
3756 async_sichld_action, and sync_sigchld_action. Install the default
3758 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
3761 * linux-thread-db.c (re_check_for_thread_db): New.
3762 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
3763 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
3764 (thread_db_async_mask): New.
3765 (init_thread_db_ops): Register thread_db_can_async_p,
3766 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
3768 * remote.c (remote_async_mask_value): New.
3769 (remote_return_zero): New.
3770 (init_remote_ops): Register remote_return_zero as callbacks of
3771 to_can_async_p and to_is_async_p.
3772 (remote_can_async_p, remote_is_async_p, remote_async): Update to
3773 use remote_async_mask_value.
3774 (remote_async_mask): New.
3775 (init_remote_async_ops): Remove to_async_mask_value setting and
3776 register remote_async_mask as to_async_mask callback in
3779 * Makefile.in (linux-nat.o): Update.
3781 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
3783 * gdbthread.h (add_thread_with_info): New.
3784 * linux-thread-db.c: Add some documentation.
3785 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
3786 (struct private_thread_info): Remove th_valid and ti_valid.
3787 Replace ti with tid.
3788 (thread_get_info_callback): Do not add TID to the new ptid. Do
3790 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
3791 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
3793 (attach_thread): Handle an already-existing thread. Use
3794 add_thread_with_info. Cache the th and tid.
3795 (detach_thread): Verify that private was set. Remove verbose
3796 argument and printing. Update caller.
3797 (thread_db_detach): Do not adjust inferior_ptid.
3798 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
3799 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
3800 (thread_db_wait): Do not use lwp_from_thread.
3801 (thread_db_pid_to_str): Use the cached TID.
3802 (thread_db_extra_thread_info): Check that private is set.
3803 (same_ptid_callback): Delete.
3804 (thread_db_get_thread_local_address): Do not use it or check
3805 is_thread. Check that private is set. Assume that the thread
3806 handle is already cached.
3807 (init_thread_db_ops): Remove to_resume and to_kill.
3808 * thread.c (add_thread_with_info): New.
3809 (add_thread): Use it.
3810 * linux-nat.c (find_thread_from_lwp): Delete.
3811 (exit_lwp): Do not use it. Check print_thread_events. Print before
3812 deleting the thread.
3813 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
3814 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
3815 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
3816 printf_unfiltered for thread exits.
3817 * procfs.c (procfs_wait): Likewise.
3819 2008-03-21 Chris Demetriou <cgd@google.com>
3821 * symtab.c (rbreak_command): Quote symbol name before passing
3822 it to break_command.
3824 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
3826 * eval.c (evaluate_subexp_for_address): Clarify error message.
3827 Use value_must_coerce_to_target.
3828 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
3829 * valops.c (value_assign): Call value_coerce_to_target when
3830 assigning to anything but internalvars. Leave GDB-side arrays
3831 as arrays when assigning to internalvars.
3832 (value_must_coerce_to_target, value_coerce_to_target): New.
3833 (value_coerce_array, value_addr): Call value_coerce_to_target.
3834 (value_array): Create the array in GDB's memory instead of
3836 * value.h (value_must_coerce_to_target, value_coerce_to_target):
3839 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
3841 * top.c (quit_confirm): Warn that we will kill the program.
3843 2008-03-19 Pedro Alves <pedro@codesourcery.com>
3845 * inflow.c (terminal_ours_1): Guard access to
3846 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
3848 2008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
3849 Jim Blandy <jimb@codesourcery.com>
3850 Daniel Jacobowitz <drow@false.org>
3852 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
3853 (dwarf2_read_address): Update prototype.
3855 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
3856 (signed_address_type): Likewise.
3857 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
3858 (execute_stack_op): Update calls to unsigned_address_type,
3859 signed_address_type and dwarf2_read_address. Fix implementation
3860 of DW_OP_deref_size.
3862 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
3863 (dwarf2_per_cu_addr_size): Likewise.
3864 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
3865 (struct dwarf2_loclist_baton): Likewise.
3867 * dwarf2loc.c (find_location_expression): Update calls to
3868 dwarf2_read_address. Use dwarf2_per_cu_objfile and
3869 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
3870 (locexpr_describe_location): Likewise.
3871 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
3872 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
3873 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
3874 to dwarf2_per_cu_addr_size (per_cu).
3875 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
3876 (loclist_read_variable): Likewise.
3877 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
3879 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
3880 instead of baton->objfile.
3881 (dwarf2_per_cu_obfile): New function.
3882 (dwarf2_per_cu_addr_size): Likewise.
3884 * dwarf2-frame.c (struct comp_unit): Move higher.
3885 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
3886 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
3887 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
3888 parameter by using fde->eh_frame_p. Use read_encoded_value
3889 to implement DW_CFA_set_loc.
3890 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
3891 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
3892 execute_stack_op and execute_cfa_program.
3893 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
3894 (size_of_encoded_value): Remove.
3895 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
3896 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
3897 (add_cie): Set cie->unit backlink.
3898 (decode_frame_entry_1): Set cie->addr_size. Update calls to
3900 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
3902 2008-03-17 Markus Deuling <deuling@de.ibm.com>
3904 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
3905 gdbarch_bfd_arch_info.
3907 2008-03-17 Joel Brobecker <brobecker@adacore.com>
3909 * aix-thread.c (pdc_read_regs): Minor reformatting.
3911 2008-03-17 Vladimir Prus <vladimir@codesourcery.com>
3913 * thread.c (print_thread_info): Don't insist
3914 on having current thread if there are no
3917 2008-03-17 Pedro Alves <pedro@codesourcery.com>
3919 * infcmd.c (attach_command_post_wait)
3920 (attach_command_continuation): New.
3921 (attach_command): Support background async execution, and async
3922 execution in synchronous mode.
3924 2008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
3926 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
3927 * symmisc.c (dump_symtab_1): Likewise.
3928 * wrapper.c (gdb_value_struct_elt): Likewise.
3930 2008-03-17 Pedro Alves <pedro@codesourcery.com>
3932 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
3934 2008-03-17 Pedro Alves <pedro@codesourcery.com>
3936 * linux-nat.c (linux_nat_filter_event): New, refactored from
3938 (linux_nat_wait): Call linux_nat_filter_event.
3940 2008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
3942 * top.c (execute_command): Fix uninitialized variable error.
3944 2008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
3946 * Makefile.in (amd64nbsd-nat.o): New dependency.
3947 * amd64nbsd-nat.c: Include "nbsd-nat.h".
3948 (_initialize_amd64nbsd_nat): Update target vector to use
3949 nbsd_pid_to_exec_file.
3950 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
3952 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
3954 Remove ignoring leading exec events code.
3955 * fork-child.c (startup_inferior): Do not set
3956 inferior_ignoring_leading_exec_events.
3957 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
3958 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
3959 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
3960 (handle_inferior_event): Remove code for ignoring leading exec
3962 * target.c (update_current_target): Do not inherit, or default,
3963 to_reported_exec_events_per_exec_call.
3964 (debug_to_reported_exec_events_per_exec_call): Remove.
3965 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
3966 * target.h (target_reported_exec_events_per_exec_call): Remove.
3967 (struct target): Remove the to_reported_exec_events_per_exec_call
3970 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
3972 Implement -thread-info.
3973 * gdbthread.h (print_thread_info): Declare.
3975 * thread.c (print_thread_info): New, extracted
3976 from info_threads_command and adjusted to
3977 work for CLI and MI.
3978 (info_threads_command): Use print_thread_info.
3979 * Makefile.in: Update dependencies.
3981 * mi/mi-cmds.c (mi_cmds): Specify a handler
3983 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
3984 * mi/mi-main.c (mi_cmd_thread_info): New.
3985 (mi_cmd_list_features): Include 'thread-info'.
3987 2008-03-14 Kevin Buettner <kevinb@redhat.com>
3989 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
3990 to decide whether to match instruction patterns using "sw" and "sd".
3992 2008-03-14 Pedro Alves <pedro@codesourcery.com>
3994 * infcmd.c (jump_command): Postpone disabling stdin until after
3997 2008-03-14 Pedro Alves <pedro@codesourcery.com>
3999 * inflow.c (gdb_getpgrp): New.
4000 (gdb_has_a_terminal): Use get_getpgrp.
4001 (terminal_ours_1): If attach_flag is set, don't refetch
4002 inferior_process_group.
4004 2008-03-14 Pedro Alves <pedro@codesourcery.com>
4006 * features/library-list.dtd: Allow "section" elements as children
4007 of "library". Add "section" element and describe its attributes.
4009 * solib-target.c (struct lm_info): Add section_bases member.
4010 (library_list_start_segment): Error out if seen a section element.
4011 (library_list_start_section): New.
4012 (library_list_end_library): New.
4013 (solib_target_free_library_list): Free section_bases.
4014 (section_attributes): New.
4015 (library_children): Make "segment" optional. Add "section" child.
4016 (library_list_children): Register library_list_end_library.
4017 (solib_target_relocate_section_addresses): Handle section bases.
4019 * NEWS: Mention new qXfer:libraries:read section offsets support.
4021 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
4023 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
4024 (make_exec_error_cleanup): Remove declarations.
4025 * utils.c (exec_error_cleanup_chain): Remove.
4026 (do_exec_error_cleanups, discard_exec_error_cleanups)
4027 (make_exec_error_cleanup): Remove.
4028 * event-loop.c (start_event_loop): Adjust call to
4030 * event-top.c (async_enable_stdin): Remove the paramater dummy.
4031 (async_disable_stdin): Don't register async_enable_stdin via
4033 * inf-loop.c (inferior_event_handler): Don't
4034 call do_exec_error_cleanups. Call async_enable_stdin instead.
4035 * event-loop.c (start_event_loop): Adjust call to
4037 * tui/tui-interp.c (tui_command_loop): Adjust call to
4040 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
4043 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
4044 * breakpoint.c (bpstat_do_actions): In async mode,
4045 don't jump to top expecting stop_bpstat to be already
4047 * event-loop.c (start_event_loop): Call async_enable_stdin
4049 * event-top.c (async_enable_stdin): Do nothing if sync_execution
4051 (command_handler): Do not setup continuation here.
4052 (command_line_handler_continuation): Move to...
4053 * top.c (command_line_handler_continuation): ... here.
4054 (execute_command): In async mode, register continuation.
4055 Don't check frame's language in running in async mode.
4056 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
4057 * inf-loop.c (complete_execution): Inline into...
4058 (inferior_event_handler): ... here. Clear target_executing before
4059 doing any cleanups. Don't try to show prompt if the target was
4061 * infcmd.c (signal_command): Add support for async mode.
4062 (finish_command): Only add continuation if the target was
4063 successfully resumed.
4064 * remote.c (init_async_opts): Register to_get_thread_local_address
4066 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
4067 with sync_execution.
4068 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
4071 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
4073 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
4074 * exec.c (exec_bfd_mtime): Define.
4075 (exec_close): Clear it.
4076 (exec_file_attach): Set it.
4077 * gdbcore.h (exec_bfd_mtime): Declare.
4078 * source.c (find_source_lines): Do not use bfd_get_mtime.
4080 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
4082 * top.c (simplified_command_loop): Remove.
4084 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
4086 Remove unused remote.c hooks.
4087 * remote.c (deprecated_target_resume_hook)
4088 (deprecated_target_wait_loop_hook): Remove.
4089 (remote_resume): Do not call deprecated_target_resume_hook.
4090 (remote_wait): Do not call deprecated_target_wait_loop_hook.
4091 (remote_async_wait): Likewise.
4093 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
4095 Implement MI notification for new threads.
4096 * doc/observer.texi (new_thread): Document.
4097 * observer.sh: Forward declare struct thread_info.
4098 * thread.c (add_thread): Notify observer.
4100 * interps.h (interp_init_ftype): New parameter
4102 (interp_set): Likewise.
4103 (top_level_interpreter_data): Declare.
4104 * interps.c (interp_set): New parameter top_level.
4105 Pass it to interpreter's init function. Remember
4106 top level interpreter.
4107 (interpreter_exec_cmd): Adjust.
4108 (top_level_interpreter_data): New.
4109 * main.c (captured_main): Pass 1 for top_level
4110 parameter of interp_set.
4111 * cli/cli-interp.c (cli_interpreter_init): New
4112 parameter top_level.
4113 * tui/tui-interp.c (tui_init): New parameter top_level.
4115 * mi/mi-interp.c (mi_new_thread): New.
4116 (mi_interpreter_init): If top level, register
4117 observer for new threads.
4119 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
4121 2008-03-14 Pedro Alves <pedro@codesourcery.com>
4123 * top.c (execute_command): Disable break and stop
4124 commands in async mode.
4126 2008-03-14 Pedro Alves <pedro@codesourcery.com>
4129 2008-03-14 Pedro Alves <pedro@codesourcery.com>
4130 * inf-loop.c (inferior_event_handler): Don't include remote.h.
4131 Call target_stop in the INF_QUIT_REQ case.
4132 * Makefile.in (inf-loop.o): Update.
4134 2008-03-14 Pedro Alves <pedro@codesourcery.com>
4136 * inf-loop.c (inferior_event_handler): Don't include remote.h.
4137 Call target_stop in the INF_QUIT_REQ case.
4138 * Makefile.in (inf-loop.o): Update.
4140 2008-03-14 Pedro Alves <pedro@codesourcery.com>
4142 * top.c (execute_command): Enable break, info and interrupt
4143 commands in async mode.
4145 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
4146 Daniel Jacobowitz <dan@codesourcery.com>
4148 * breakpoint.h (breakpoint_restore_shadows): New
4150 * breakpoint.c (breakpoint_restore_shadows): New.
4151 (read_memory_nobpt): Delete.
4152 * gdbcore.h (read_memory_nobpt): Delete declaration.
4153 * target.c (memory_xfer_partial): Call
4154 breakpoint_restore_shadows.
4155 (restore_show_memory_breakpoints)
4156 (make_show_memory_beakpoints_cleanup): New.
4157 (show_memory_breakpoints): New.
4158 * target.h (make_show_memory_beakpoints_cleanup): Declare.
4159 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
4160 Make sure we see memory breakpoints when checking if
4161 breakpoint is still there.
4162 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
4163 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
4164 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
4165 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
4167 2008-03-12 Pedro Alves <pedro@codesourcery.com>
4169 * thread.c (add_thread): Use printf_unfiltered to print.
4171 2008-03-12 Joel Brobecker <brobecker@gnat.com>
4173 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
4174 that is true only on x86-solaris and x86_64-solaris.
4175 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
4176 with proc_get_LDT_entry.
4178 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
4180 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
4181 * config.in, configure: Regenerate.
4182 * fork-child.c (fork_inferior): Call create_tty_session.
4183 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
4184 (create_tty_session): New function.
4185 * terminal.h: Declare create_tty_session.
4187 2008-03-12 Alan Modra <amodra@bigpond.net.au>
4190 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
4191 * mipsread.c: Include elf/internal.h.
4192 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
4195 2008-03-11 Markus Deuling <deuling@de.ibm.com>
4197 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
4198 to get at the current architecture and at the target specific vector.
4199 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
4200 remove define of I387_ST0_REGNUM.
4202 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
4204 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
4205 get at the current architecture
4206 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
4209 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
4210 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
4212 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
4213 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
4214 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
4216 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
4217 at the target specific vector.
4219 (i386_get_longjmp_target): Use get_frame_arch to get at the current
4220 architecture. Use gdbarch_tdep to get at the target specific vector.
4222 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
4223 update caller. Use gdbarch_tdep to get at the target specific vector.
4225 (i386_register_to_value: Use get_frame_arch to get at the current
4228 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
4231 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
4232 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
4233 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
4234 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
4236 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
4239 (i387_convert_register_p, i387_register_to_value,
4240 i387_value_to_register): Update call for i386_fp_regnum_p.
4242 * i387-tdep.h: Remove comment.
4243 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
4244 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
4245 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
4246 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
4247 I387_MXCSR_REGNUM): Add target specific vector as parameter.
4249 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
4251 * Makefile.in (fork-child.o): Update.
4252 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
4253 argument. Gather all gdbserver features together.
4254 * fork-child.c (exec_wrapper): New variable.
4255 (fork_inferior): Use it.
4256 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
4257 (unset_exec_wrapper_command, _initialize_fork_child): New.
4259 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
4261 * source.c (directory_command): Modify the determination of
4262 condition of terminal "from_tty".
4264 2008-03-10 Matt Rice <ratmice@gmail.com>
4266 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
4268 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
4270 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
4271 of the data passing to strtoulst function.
4272 (info_spu_signal_command): Likewise.
4274 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
4276 * mi/mi-interp.c (mi_command_loop): Remove
4279 2008-03-07 Joel Brobecker <brobecker@adacore.com>
4281 * remote.c (extended_remote_attach_1): Make local variable pid an int
4284 2008-03-07 Joel Brobecker <brobecker@adacore.com>
4286 * solib-svr4.c (svr4_same_1): New function, originally extracted
4287 from svr4_same and expanded to handle the sparc64 case.
4288 (svr4_same): Move up and reimplement using svr4_same_1.
4289 (enable_break): Use svr4_same_1 to do shared library name comparisons.
4291 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
4293 * MAINTAINERS: Move self to Paper trail.
4295 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
4297 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
4298 * event-loop.c (call_async_signal_handler): New.
4299 * event-loop.h (call_async_signal_handler)
4300 (gdb_call_async_signal_handler): Declare.
4301 (mark_async_signal_handler): Add comments.
4302 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
4303 * mingw-hdep.c (sigint_event, sigint_handler): New.
4304 (gdb_select): Use them. Wait for the readline signal handler
4306 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
4307 * posix-hdep.c (gdb_call_async_signal_handler): New function.
4308 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
4310 (remote_fileio_ctrl_c_signal_handler): Use
4311 gdb_call_async_signal_handler.
4312 (initialize_remote_fileio): Initialize sigint_fileio_token.
4313 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
4314 not initialize tokens here.
4315 (handle_remote_sigint_twice): Likewise. Reinstall
4316 handle_remote_sigint.
4317 (async_remote_interrupt_twice): Just call interrupt_query.
4318 (cleanup_sigint_signal_handler): Do not delete tokens.
4319 (remote_interrupt, remote_interrupt_twice): Use
4320 gdb_call_async_signal_handler.
4321 (interrupt_query): Reinstall the default signal handler.
4322 (_initialize_remote): Initialize tokens here.
4324 2008-03-04 Joel Brobecker <brobecker@adacore.com>
4326 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
4327 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
4328 Change the type of the lr register to code_ptr.
4329 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
4330 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
4331 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
4332 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
4333 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
4334 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
4335 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
4337 2008-03-03 James E. Wilson <wilson@tuliptree.org>
4339 * MAINTAINERS: Update my email address.
4341 2008-03-03 Keith Seitz <keiths@redhat.com>
4343 From Dave Murphy <davem@devkitpro.org>:
4344 * configure.ac: Set tcl configdir to win under mingw.
4345 * configure: Regenerate.
4347 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
4349 * breakpoint.c (fetch_watchpoint_value): New function.
4350 (update_watchpoint): Set and clear val_valid. Use
4351 fetch_watchpoint_value. Handle unreadable values on the
4352 value chain. Correct check for user-requested array watchpoints.
4353 (breakpoint_init_inferior): Clear val_valid.
4354 (watchpoint_value_print): New function.
4355 (print_it_typical): Use it. Do not free or clear old_val. Print
4356 watchpoints even if old_val == NULL.
4357 (watchpoint_check): Use fetch_watchpoint_value. Check for values
4358 becoming readable or unreadable.
4359 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
4360 (do_enable_watchpoint): Likewise.
4361 * breakpoint.h (struct breakpoint): Update comment for val. Add
4363 * NEWS: Mention watchpoints on inaccessible memory.
4365 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
4367 * Makefile.in (i386-nat.o): Update.
4368 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
4369 i386_use_watchpoints.
4370 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
4371 i386_use_watchpoints.
4372 * i386-nat.c (i386_stopped_data_address): Take two arguments.
4373 (i386_stopped_by_watchpoint): Update call.
4374 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
4375 * config/i386/nm-i386.h: Conditionalize definitions on
4376 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
4377 (i386_use_watchpoints): Declare.
4378 (i386_stopped_data_address): Update.
4379 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
4380 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
4382 2008-02-29 Joel Brobecker <brobecker@adacore.com>
4384 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
4385 * version.in: Bump version to 6.8.50.20080229-cvs.
4387 2008-02-28 Markus Deuling <deuling@de.ibm.com>
4389 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
4392 2008-02-28 Tom Tromey <tromey@redhat.com>
4394 * infcmd.c (notice_args_read): Print result of get_inferior_args.
4396 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
4398 * infcmd.c (kill_if_already_running): Make static. Use
4399 target_require_runnable.
4400 * target.c (target_require_runnable): New.
4401 * target.h (target_require_runnable): Declare.
4403 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
4405 * frame.c (reinit_frame_cache): Only annotate if frames were
4408 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4410 * regformats/reg-ppc.dat: Rename "ps" to "msr".
4411 * regformats/reg-ppc64.dat: Likewise.
4413 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4415 * features/Makefile (%.dat): Emit xmltarget statement.
4417 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
4418 Generate code to set gdbserver_xmltarget in init_registers_${name}.
4420 * regformats/arm-with-iwmmxt.dat: Regenerate.
4421 * regformats/mips64-linux.dat: Regenerate.
4422 * regformats/mips-linux.dat: Regenerate.
4423 * regformats/rs6000/powerpc-32.dat: Regenerate.
4424 * regformats/rs6000/powerpc-64.dat: Regenerate.
4425 * regformats/rs6000/powerpc-e500.dat: Regenerate.
4427 * regformats/reg-arm.dat: Add xmlarch statement.
4428 * regformats/reg-i386.dat: Likewise.
4429 * regformats/reg-i386-linux.dat: Likewise.
4430 * regformats/reg-x86-64-linux.dat: Likewise.
4431 * regformats/reg-spu.dat: Likewise.
4433 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
4435 * remote.c (remote_wait, remote_async_wait): Stop if we receive
4438 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
4440 * utils.c (debug_timestamp): New.
4441 (vfprintf_unfiltered): Print timestamps if requested.
4442 (show_debug_timestamp): New.
4443 (initialize_utils): Register "set debug timestamp".
4444 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
4446 2008-02-27 Joel Brobecker <brobecker@adacore.com>
4448 * breakpoint.c (skip_prologue_sal): New function.
4449 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
4450 computed from a line number.
4452 2008-02-27 Joel Brobecker <brobecker@adacore.com>
4454 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
4455 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
4456 Set PC register type to "code_ptr".
4457 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
4458 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
4459 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
4460 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
4461 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
4462 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
4463 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
4466 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
4468 * regformats/regdat.sh: Rename init_registers function in
4469 generated file to init_registers_${name}.
4471 * regformats/reg-crisv32.dat: Set "name" to crisv32.
4472 * regformats/reg-ppc64.dat: Set "name" to ppc64.
4473 * regformats/reg-s390x.dat: Set "name" to s390x.
4475 2008-02-26 Greg Law <glaw@undo-software.com>
4477 * regcache.c (registers_changed): Call reinit_frame_cache.
4479 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
4481 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
4482 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
4483 and svr4_fetch_objfile_link_map.
4484 * Makefile.in (sh-linux-tdep.o): Update.
4486 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
4488 * amd64-tdep.c (amd64_classify): Add support for decimal float
4490 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
4491 use the struct return convention.
4493 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
4495 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
4496 to old format. Discard breakpoint address if shared library is
4498 (breakpoint_1): Adjust formatting of table header accordingly.
4500 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
4502 * remote.c (remote_get_threadlist): If the response
4503 is empty, don't try to parse it.
4505 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
4507 Unbreak 'target async'.
4508 * serial.c (serial_async): Set the
4509 handler function before enabling async
4512 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
4514 * solib-svr4.c (enable_break): Convert r_brk to a code address.
4516 2008-02-21 Pedro Alves <pedro@codesourcery.com>
4518 * remote.c (extended_remote_attach_1): Set attach_flag.
4519 (extended_remote_create_inferior_1): Clear attach_flag.
4521 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
4523 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
4525 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
4526 * solib-svr4.c (solib_svr4_r_brk): New.
4527 (open_symbol_file_object, svr4_current_sos): Always check the
4529 (svr4_fetch_objfile_link_map): Do not set debug_base.
4530 (enable_break): Use r_brk if it is set.
4531 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
4532 (svr4_lp64_fetch_link_map_offsets): Likewise.
4533 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
4535 2008-02-20 Markus Deuling <deuling@de.ibm.com>
4536 Mark Kettenis <kettenis@gnu.org>
4538 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
4539 trad_frame_saved_reg.
4540 (trad-frame.h): New include.
4542 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
4543 instead of frame_obstack_zalloc.
4544 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
4546 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
4548 2008-02-20 Markus Deuling <deuling@de.ibm.com>
4550 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
4551 from disassemble_info instead of gdbarch_byte_order.
4553 * mips-tdep.c (gdb_print_insn_mips): Likewise.
4554 * arm-tdep.c (gdb_print_insn_arm): Likewise.
4556 2008-02-20 Markus Deuling <deuling@de.ibm.com>
4558 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
4559 gdbarch as parameter.
4561 * gdbarch.{c,h}: Regenerate.
4563 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
4565 * mem-break.c (default_memory_insert_breakpoint)
4566 (default_memory_remove_breakpoint): Likewise.
4567 * target.h (default_memory_remove_breakpoint)
4568 (default_memory_insert_breakpoint): Likewise.
4570 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
4571 parameter. Replace current_gdbarch by gdbarch.
4572 * m32r-tdep.c (m32r_memory_insert_breakpoint)
4573 (m32r_memory_remove_breakpoint): Likewise.
4575 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
4577 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
4579 2008-02-19 Joel Brobecker <brobecker@adacore.com>
4581 * NEWS: Add entry describing Add support improvements.
4583 2008-02-18 Markus Deuling <deuling@de.ibm.com>
4585 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
4588 2008-02-18 Markus Deuling <deuling@de.ibm.com>
4590 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
4591 register_offset_hack anymore.
4593 * regcache.{c,h} (register_offset_hack): Remove.
4595 2008-02-18 Markus Deuling <deuling@de.ibm.com>
4597 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
4599 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
4600 current_gdbarch by gdbarch.
4601 (hppa64_hpux_find_global_pointer): Likewise.
4602 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
4603 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
4604 find_global_pointer.
4606 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
4608 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4610 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
4611 of gdbarch_num_regs.
4613 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
4614 replace current_gdbarch by gdbarch.
4615 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
4617 2008-02-18 Markus Deuling <deuling@de.ibm.com>
4619 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
4620 and replace current_gdbarch by gdbarch.
4622 (store_register): Update call for exec_one_dummy_insn.
4623 (fetch_register, store_register): Update call of regmap.
4625 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
4626 parameter and replace current_gdbarch by gdbarch.
4628 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
4629 the current architecture. Update call for getregs_supplies and
4631 (ppcnbsd_fetch_inferior_registers): Likewise.
4633 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
4634 replace current_gdbarch by gdbarch.
4635 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
4636 get_regcache_arch to get at the current architecture. Update call for
4639 2008-02-18 Markus Deuling <deuling@de.ibm.com>
4641 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
4644 2008-02-15 Markus Deuling <deuling@de.ibm.com>
4646 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
4648 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
4650 * NEWS: Mention pending breakpints in MI.
4652 2008-02-14 Markus Deuling <deuling@de.ibm.com>
4654 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
4656 2008-02-13 Markus Deuling <deuling@de.ibm.com>
4658 Add script to build and test GDB using enable-targets=all.
4660 * gdb_buildall.sh: New file.
4662 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
4664 * NEWS (New native configurations): Xtensa GNU/Linux.
4665 (New targets): Xtensa GNU/Linux.
4666 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
4668 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
4669 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
4670 * configure.tgt (xtensa*-*-linux*): New entry.
4671 * xtensa-config.c (xtensa_tdep): New variable.
4672 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
4673 (rmap): Change format based on new macro XTREG.
4674 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
4675 * xtensa-linux-nat.c: New.
4676 * xtensa-linux-tdep.c: New.
4677 * xtensa-xtregs.c: New.
4678 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
4679 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
4680 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
4681 (xtensa_register_t): New field coprocessor.
4682 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
4683 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
4684 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
4685 Update to handle privileged registers.
4686 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
4687 (xtensa_push_dummy_call): Set windowstart register correctly.
4688 (call0_analyze_prologue): Initialize xtensa_default_isa.
4689 (xtensa_derive_tdep): New.
4690 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
4691 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
4692 Call xtensa_derive_tdep().
4693 * config/xtensa/linux.mh: New.
4694 * regformats/reg-xtensa.dat: New.
4696 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
4698 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
4699 (filenames.h): New include.
4700 * Makefile.in (corelow.o): Add dependency for filenames.h.
4702 2008-02-08 Doug Evans <dje@google.com>
4704 * source.c (find_and_open_source): Always rewrite absolute filenames.
4706 2008-02-07 Doug Evans <dje@google.com>
4708 * breakpoint.c: #include "hashtab.h".
4709 (ambiguous_names_p): New fn.
4710 (update_breakpoint_locations): When restoring bp enable status, don't
4711 compare function names if any functions have same name.
4712 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
4714 2008-02-07 Joel Brobecker <brobecker@adacore.com>
4716 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
4717 instead of just a VEC*. Update use of SV.
4718 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
4720 2007-02-07 Joel Brobecker <brobecker@adacore.com>
4722 * NEWS: Put all new commands since gdb-6.7 together.
4724 2007-02-07 Joel Brobecker <brobecker@adacore.com>
4726 * ada-lang.c: #include "vec.h".
4727 (struct string_vector, new_string_vector, string_vector_append):
4729 (char_ptr): New typedef.
4730 (DEF_VEC_P (char_ptr)): New VEC type.
4731 (symbol_completion_add): Update profile to take the new VEC type
4732 instead of the old string_vector structure. Update code accordingly.
4733 (ada_make_symbol_completion_list): Use the new VEC type instead of
4734 the old string_vector structure, and update the code accordingly.
4735 * Makefile.in (ada-lang.o): Add dependency on vec.h.
4737 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
4739 * p-exp.y: Set current_type in missing places.
4740 (leftdiv_is_integer): New static variable.
4741 Typecast right operand of BINOP_DIV to long_double if both operands
4744 2008-02-06 Maciej W. Rozycki <macro@mips.com>
4746 * remote-mips.c (set_breakpoint): Rename to...
4747 (mips_set_breakpoint): ... this.
4748 (clear_breakpoint): Rename to...
4749 (mips_clear_breakpoint): ... this.
4750 (common_breakpoint): Rename to...
4751 (mips_common_breakpoint): ... this.
4752 (check_lsi_error): Rename to...
4753 (mips_check_lsi_error): ... this.
4755 2007-02-05 Joel Brobecker <brobecker@adacore.com>
4757 * language.h (struct language_defn): Add new field
4758 la_make_symbol_completion_list.
4759 * symtab.c (default_make_symbol_completion_list): Renames
4760 make_symbol_completion_list.
4761 (make_symbol_completion_list): New function.
4762 * symtab.h (default_make_symbol_completion_list): Add declaration.
4763 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
4764 (auto_language, local_language): Likewise.
4765 * objc-lang.c (objc_language_defn): Likewise.
4766 * scm-lang.c (scm_language_defn): Likewise.
4767 * m2-lang.c (m2_language_defn): Likewise.
4768 * f-lang.c (f_language_defn): Likewise.
4769 * jv-lang.c (java_language_defn): Likewise.
4770 * p-lang.c (pascal_language_defn): Likewise.
4771 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
4772 (minimal_language_defn): Likewise.
4773 * ada-lang.c (struct string_vector): New structure.
4774 (new_string_vector, string_vector_append, ada_unqualified_name)
4775 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
4776 (ada_make_symbol_completion_list): New functions.
4777 (ada_language_defn): Set la_make_symbol_completion_list.
4778 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
4779 this function is static.
4781 2008-02-05 Kevin Buettner <kevinb@redhat.com>
4783 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
4784 to account for call site optimizations.
4786 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
4788 * tracepoint.c (read_actions): Handle end-of-text indicator
4789 in action list properly. (Committed by Jim Blandy)
4791 2008-02-05 Jim Blandy <jimb@red-bean.com>
4793 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
4794 pseudoregister, not an internal error.
4795 Reported by: Andrzej Zaborowski
4797 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
4799 * varobj.c (c_value_of_variable): Use xstrdup.
4801 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
4803 Update stored rendition of varobj value when format changes.
4804 * varobj.c (varobj_set_display_format): Recomputed
4806 (c_value_of_variable): Return print_value.
4808 2008-02-03 Doug Evans <dje@google.com>
4810 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
4811 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
4812 * valops.c (value_one): New function.
4813 * value.h (value_one): Declare.
4815 Fix argument promotion for binary arithmetic ops for C.
4816 * valarith.c (unop_result_type): New fn.
4817 (binop_result_type): New fn.
4818 (value_binop): Move result type computation to binop_result_type.
4819 (value_pos, value_neg, value_complement): Move result type
4820 computation to unop_result_type.
4823 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
4824 Return basetype, fieldno if found. All callers updated.
4825 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
4827 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
4828 * symfile.h (fill_in_vptr_fieldno): Delete.
4830 2008-02-02 Doug Evans <dje@google.com>
4832 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
4834 * typeprint.c (*): Whitespace cleanup.
4836 2008-02-02 Mark Kettenis <kettenis@gnu.org>
4837 Luis Machado <luisgpm@br.ibm.com>
4838 Thiago Jung Bauermann <bauerman@br.ibm.com>
4840 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
4841 don't fit into registerson the stack the way GCC does.
4843 2008-02-01 Joel Brobecker <brobecker@adacore.com>
4845 * symtab.c (symbol_set_names): Do not add an entry in the demangling
4846 hash table for Ada symbols. Just store the linkage name as is,
4847 and leave the demangled_name as NULL.
4849 2007-02-01 Joel Brobecker <brobecker@adacore.com>
4851 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
4852 in the global scope.
4853 (new_symbol): Likewise.
4855 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
4857 * breakpoint.c (break_command_1): Return void.
4858 (break_command_really): Return void. Rethrow
4859 exceptions instead of returning.
4860 (gdb_breakpoint): Remove the error_message parameter.
4861 Return void. Rename to set_breakpoint.
4862 * gdb.h (gdb_breakpoint): Rename and move to...
4863 * breakpoint.h (set_breakpoint): ...here.
4864 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
4865 event hooks even if exception is thrown. Adjust to
4866 gdb_breakpoint interface changes.
4869 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
4871 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
4872 float in both first and second word in the doubleword, to support
4875 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
4877 Properly rethrow exception. This fixes errors
4878 about non-existent functions for -break-insert.
4879 * breakpoint.c (break_command_really): Use throw_exception
4880 for rethrowing. If rethrowing, don't print the exception.
4882 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4884 * NEWS: Mention Decimal Floating Point support.
4886 2008-01-31 Joel Brobecker <brobecker@adacore.com>
4888 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
4889 value type to builtin_type_void_func_ptr.
4891 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
4893 * s390-tdep.c (is_float_singleton, is_float_like,
4894 alignment_of, s390_return_value): Make checks for
4895 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
4897 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
4898 Thiago Jung Bauermann <bauerman@br.ibm.com>
4900 * infcmd.c (default_print_registers_info): Also print hex
4901 raw contents for TYPE_CODE_DECFLOAT registers.
4902 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
4903 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
4904 (rs6000_register_name): Add support for DFP pseudo-registers.
4905 (rs6000_pseudo_register_type): Likewise.
4906 rs6000_pseudo_register_reggroup_p): Likewise.
4907 (ppc_pseudo_register_read): New function.
4908 (ppc_pseudo_register_write): Likewise.
4909 (rs6000_pseudo_register_read): Likewise.
4910 (rs6000_pseudo_register_write): Likewise.
4911 (e500_pseudo_register_read): Move checks to
4912 rs6000_pseudo_register_read.
4913 (e500_pseudo_register_write): Move checks to
4914 rs6000_pseudo_register_write.
4915 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
4916 rs6000_pseudo_register_read and rs6000_pseudo_register_write
4917 in gdbarch if SPE or DFP is available. Adjust gdbarch's
4918 num_pseudo_regs to account for DFP pseudo regs.
4920 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4922 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
4923 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
4924 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
4925 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
4926 e500_pseudo_register_read, e500_pseudo_register_write): Use
4927 IS_SPE_PSEUDOREG macro.
4928 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
4929 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
4930 Remove initialization of tdep->ppc_ev31_regnum.
4932 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
4934 * printcmd.c (print_formatted): Handle references as for unformatted
4937 2008-01-30 Joel Brobecker <brobecker@adacore.com>
4939 * eval.c (evaluate_subexp_standard): Add handling of user
4940 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
4942 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
4944 * eval.c (evaluate_subexp_standard): Support
4945 BINOP_INTDIV opcode.
4947 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
4949 * valarith.c (value_binop): Add floating-point BINOP_MIN and
4951 For BINOP_EXP, use length and signedness of left operand only for
4952 result, as for shifts.
4953 For integral operands to BINOP_EXP, use new integer_pow and
4954 uinteger_pow functions so as to get full range of results.
4955 (integer_pow): New function.
4956 (uinteger_pow): New function.
4958 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
4960 Use vector for varobj_list_children interface.
4961 * gdb/varobj.c (varobj_list_children): Return vector
4963 * gdb/varobj.h (varobj_list_children): Adjust
4965 (varobj_p): Declare. Declare vector thereof.
4966 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
4967 for varobj_list_children change.
4968 * Makefile.in (varobj_h): Update dependencies.
4970 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
4972 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
4973 TYPE_CODE_DECFLOAT arguments.
4974 (ppc64_sysv_abi_push_dummy_call) Likewise.
4975 (get_decimal_float_return_value): New function.
4976 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
4977 values by calling get_decimal_float_return_value.
4978 (ppc64_sysv_abi_return_value): Likewise.
4980 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
4982 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
4983 for preprocessor macro information. Formatting changes.
4985 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
4987 * remote.c (struct remote_state): Add cached_wait_status.
4988 (remote_exec_file): New variable.
4989 (PACKET_vAttach, PACKET_vRun): New constants.
4990 (extended_remote_restart): Do not query for status.
4991 (struct start_remote_args): New.
4992 (remote_start_remote): Take it as a second argument. Check
4993 whether the target is running. Issue an error for non-running
4994 non-extended targets. Cache the wait status. Set inferior_ptid
4996 (remote_open_1): Prompt to disconnect non-running targets. Make
4997 sure the target is marked running. Do not set inferior_ptid here.
4998 Update call to remote_start_remote. Do not call remote_check_symbols
4999 if the target is not running.
5000 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
5001 argument. Handle a non-running target.
5002 (remote_detach): Use it.
5003 (extended_remote_detach): New.
5004 (remote_disconnect): Fix typo. Use remoute_mourn_1.
5005 (extended_remote_attach_1, extended_remote_attach)
5006 (extended_async_remote_attach): New.
5007 (remote_vcont_resume): Remove unused variable.
5008 (remote_wait, remote_async_wait): Use any cached wait status.
5009 (putpkt_binary, getpkt): Clear any cached wait status.
5010 (extended_remoute_mourn_1): New.
5011 (extended_remote_mourn): Use it.
5012 (extended_async_remote_mourn, extended_remote_run): New.
5013 (extended_remote_create_inferior_1): New.
5014 (extended_remote_create_inferior): Use it.
5015 (extended_remote_async_create_inferior): Likewise.
5016 (remote_xfer_partial): Skip for non-executing targets.
5017 (init_extended_remote_ops): Set to_detach and to_attach.
5018 (init_extended_async_remote_ops): Likewise. Use
5019 extended_async_remote_mourn.
5020 (_initialize_remote): Register vAttach, vRun, and
5021 set remote exec-file.
5022 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
5024 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
5026 * Makefile.in (symfile.o): Update.
5027 * NEWS: Mention exec tracing support.
5028 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
5030 * infcmd.c (kill_if_already_running, detach_command)
5031 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
5032 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
5033 (follow_exec): Do not check may_follow_exec. Do not mourn and push
5034 targets. Apply the sysroot path to the loaded executable. Use
5035 no_shared_libraries.
5036 * linux-nat.c (linux_child_follow_fork): Print fork following
5037 messages if verbose.
5038 (kill_wait_callback): Kill again before waiting a second time.
5039 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
5040 no_shared_libraries.
5042 2008-01-29 Joel Brobecker <brobecker@adacore.com>
5044 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
5046 2008-01-29 Joel Brobecker <brobecker@adacore.com>
5048 * nto-tdep.h: Remove #include "defs.h".
5049 * nto-tdep.c: Add #include "defs.h".
5050 * Makefile.in (nto_tdep_h): Update dependencies.
5051 (nto-tdep.o): Likewise.
5053 2008-01-29 Joel Brobecker <brobecker@adacore.com>
5055 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
5057 (proceed, start_remote): Update call to wait_for_inferior.
5058 * inferior.h (wait_for_inferior): Update declaration.
5059 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
5060 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
5061 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
5062 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
5064 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
5066 * varobj (adjust_value_for_child_access): Added checking for
5067 returned value from gdb_value_ind.
5068 (c_describe_child): Likewise.
5069 (cplus_describe_child): Fixed a typo.
5071 2008-01-29 Jim Blandy <jimb@red-bean.com>
5073 * MAINTAINERS: Update my info.
5075 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
5077 Use multiple locations for hardware watchpoints.
5078 This eliminates the need to traverse value chain, doing
5079 various checks, in three different places.
5081 * breakpoint.h (struct bp_location): New fields
5082 lengths and watchpoint_type.
5083 (struct breakpoint): Remove the val_chain field.
5084 * breakpoint.c (is_hardware_watchpoint): New.
5085 (free_valchain): Remove.
5086 (update_watchpoint): New.
5087 (insert_bp_location): For hardware watchpoint, just
5089 (insert_breakpoints): Call update_watchpoint_locations
5090 on all watchpoints. If we have failed to insert
5091 any location of a hardware watchpoint, remove all inserted
5093 (remove_breakpoint): For hardware watchpoints, directly
5095 (watchpoints_triggered): Iterate over locations.
5096 (bpstat_stop_status): Use only first location of
5097 a resource watchpoint.
5098 (delete_breakpoint): Don't call free_valchain.
5099 (print_one_breakpoint): Don't print all
5100 locations for watchpoints.
5101 (breakpoint_re_set_one): Use update_watchpoint for
5104 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
5106 Don't reset watchpoint block on solib load.
5108 * breakpoint.c (insert_bp_location): For watchpoints,
5109 recompute condition.
5110 (breakpoint_re_set_one): Instead of recomputing value
5111 and condition for watchpoints, just reset value and
5112 let insert_breakpoints/insert_bp_location recompute it.
5113 Don't do anything about disabled watchpoint.
5115 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
5117 * valarith.c (value_binop): Handle unsigned integer
5120 2008-01-28 Kevin Buettner <kevinb@redhat.com>
5122 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
5123 instruction pattern that appears frequently in position
5124 independent code. Fix bug in code which looks for "fmov" and
5125 backtracks if no "fmov" is found.
5127 2008-01-28 Doug Evans <dje@google.com>
5129 * dbxread.c (read_dbx_symtab): Fix indentation.
5130 Reformat comments to 80 columns.
5131 Move local var def closer to only use.
5133 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
5135 * fork-child.c (SHELL_FILE): Remove #ifndef.
5136 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
5138 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
5140 * i386-tdep.c (i386_skip_noop): New function.
5141 (i386_analyze_prologue): Call i386_skip_noop function.
5143 2008-01-24 Michael Snyder <msnyder@specifix.com>
5145 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
5146 * win32-nat.c (win32_xfer_partial): Ditto.
5147 * target.c (default_xfer_partial): Minor whitespace adjustment.
5149 2008-01-24 Pedro Alves <pedro@codesourcery.com>
5151 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
5152 strip bit 1 even if pc doesn't point to thumb code.
5154 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
5156 * remote.c (remote_wait): Handle SIGINT between packets.
5157 (remote_async_wait): Likewise.
5159 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
5160 Chris Demetriou <cgd@google.com>
5162 * thread.c (add_thread_silent): Renamed
5164 (print_thread_events): New variable definition.
5165 (show_print_thread_events): New function.
5166 (_initialize_thread): Add "set print thread-events" and
5167 "show print thread-events" commands.
5168 (add_thread): Announce new thread.
5169 * gdbthread.h (add_thread_silent): Declare.
5170 (print_thread_events): New variable declaration.
5171 * inf-ttrace.c (inf_ttrace_wait): Don't
5172 inform about new thread, as add_thread is always
5173 called too, and will take care of that.
5174 * infrun.c (handle_inferior_event): Likewise.
5175 * procfs.c (procfs_wait): Likewise.
5176 * remote.c (remote_currthread): Likewise.
5177 * sol-thread.c (sol_thread_wait): Likewise.
5178 * win32-nat.c (get_win32_debug_event): Likewise.
5179 * linux-thread-db.c (attach_thread): Likewise.
5180 Remove the verbose parameter.
5181 (check_event): Make detach_thread be verbose
5182 only if print_thread_events is set.
5183 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
5184 about new thread. This is called only from
5185 linux-thread-db.c:attach_thread, which will take care.
5186 Remove the verbose parameter.
5187 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
5189 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
5191 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
5193 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
5195 * breakpoint.c (break_command_really): New parameter
5197 (break_command_1): Pass 0 as
5198 ignore_count to break_command_really.
5199 (gdb_breakpoint): Pass ignore_count to
5200 break_command_really.
5202 2008-01-21 Kevin Buettner <kevinb@redhat.com>
5204 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
5205 sigcontext struct via pointer.
5206 (struct sigframe comment): Update to show new field `psc'.
5208 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
5210 * infrun.c (handle_inferior_event): If
5211 we failed to remove breakpoints, error,
5212 don't try to increment PC by hand.
5214 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
5216 Add NetBSD/hppa target and host support.
5218 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
5219 (hppabsd_gregset): Move to ...
5220 (hppabsd_regset_from_core_section): Rename
5221 hppaobsd_regset_from_core_section and move to ...
5222 (hppabsd_find_global_pointer): Update comment.
5223 (hppabsd_init_abi): Make global. Do not register
5224 hppabsd_regset_from_core_section.
5225 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
5227 (_initialize_hppabsd_tdep): Move to ...
5228 * hppaobsd-tdep.c: ... here. New file.
5229 * hppnbsd-tdep.c: New file.
5230 * hppnbsd-nat.c: New file.
5231 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
5232 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5233 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
5234 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
5235 * configure.host (hppa*-*-netbsd*): New entry.
5236 * configure.tgt (hppa*-*-netbsd*): New entry.
5237 (hppa*-*-openbsd*): Update.
5238 * NEWS (New native configuration): Mention NetBSD/hppa.
5239 (New targets): Mention NetBSD/hppa.
5241 2008-01-18 Markus Deuling <deuling@de.ibm.com>
5243 * gdbarch.sh (function_list): Add new property bits_big_endian to
5245 * gdbarch.{c,h}: Regenerate.
5247 * value.c (struct value): Replace BITS_BIG_ENDIAN by
5248 gdbarch_bits_big_endian (comment).
5249 (unpack_field_as_long, modify_field): Likewise.
5250 * value.h: Likewise (comment).
5251 * valops.c (value_slice): Likewise.
5252 * valarith.c (value_subscript, value_bit_index): Likewise.
5253 * gdbtypes.h (field): Likewise (comment).
5254 * eval.c (evaluate_subexp_standard): Likewise.
5255 * dwarf2read.c (dwarf2_add_field): Likewise.
5256 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
5257 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
5259 * defs.h (BITS_BIG_ENDIAN): Remove.
5261 2008-01-18 Markus Deuling <deuling@de.ibm.com>
5263 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
5265 * m2-exp.y (yylex): Likewise.
5266 * objc-exp.y (yylex): Likewise.
5268 * defs.h (DEPRECATED_STREQN): Remove.
5270 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
5272 * MAINTAINERS: Update my email address.
5274 2008-01-17 Jim Blandy <jimb@codesourcery.com>
5276 * README: Mention gdbserver/README.
5278 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
5280 * valarith.c (value_binop): Handle BINOP_INTDIV
5281 for unsigned and signed integers.
5283 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
5285 * s390-tdep.c (s390_gdbarch_init): Set default long double
5286 type to 128-bit IEEE quad.
5288 2008-01-17 Joel Brobecker <brobecker@adacore.com>
5290 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
5292 2008-01-16 Mark Kettenis <kettenis@gnu.org>
5294 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
5296 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
5297 * value.c: All callers changed.
5299 2008-01-16 Markus Deuling <deuling@de.ibm.com>
5301 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
5302 DEPRECATED_STREQ by its expression.
5303 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
5304 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
5305 (scan_xcoff_symtab): Likewise.
5306 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
5307 * f-lang.c (find_common_for_function): Likewise.
5308 * objc-exp.y (parse_number): Likewise.
5310 * defs.h (DEPRECATED_STREQ): Remove.
5312 2008-01-16 Markus Deuling <deuling@de.ibm.com>
5314 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
5315 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
5316 get_frame_arch to get at the current_architecture. Update AM33_MODE
5318 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
5319 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
5321 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
5323 2008-01-16 Markus Deuling <deuling@de.ibm.com>
5325 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
5327 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
5329 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
5330 current_gdbarch by gdbarch. Update caller.
5332 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
5333 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
5334 the current architecture. Update calls of
5335 amd64_native_gregset_supplies_p.
5336 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
5337 (amd64bsd_store_inferior_registers): Likewise.
5339 2008-01-16 Markus Deuling <deuling@de.ibm.com>
5341 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
5342 Replace current_gdbarch by gdbarch. Update caller.
5344 2008-01-16 Markus Deuling <deuling@de.ibm.com>
5346 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
5347 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
5348 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
5349 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
5350 (stabsect_build_psymtabs): Fix indentation.
5352 2008-01-15 Michael Snyder <msnyder@specifix.com>
5354 * corelow.c (core_xfer_partial): Comment, cut/paste error.
5356 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
5358 * win32-nat.c (win32_create_inferior): Restore code calling
5359 CloseHandle on ProcessInformation structure.
5361 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
5363 * configure.ac: Check for void * as 3 argument of ptrace.
5364 * configure: regenerate.
5366 2008-01-11 Markus Deuling <deuling@de.ibm.com>
5368 * alpha-tdep.c (alpha_heuristic_proc_start)
5369 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
5370 current_gdbarch by gdbarch.
5372 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
5373 current architecture by frame_info. Update alpha_heuristic_proc_start
5376 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
5377 get_frame_arch to get at the current architecture by frame_info. Update
5378 alpha_sigtramp_register_address call.
5380 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
5381 current_gdbarch by gdbarch. Update caller.
5382 (convert_to_extended, convert_from_extended): Add endianess parameter
5383 for comparison. Update caller.
5384 (arm_extract_return_value, arm_store_return_value): Use
5385 get_regcache_arch to get at the current architecture.
5387 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
5388 current_gdbarch by gdbarch. Update caller.
5389 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
5390 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
5392 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
5393 gdbarch as parameter. Update caller.
5394 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
5395 current_gdbarch by gdbarch. Update caller.
5397 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
5398 update caller. Replace current_gdbarch by gdbarch.
5400 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
5401 the current architecture. Replace current_gdbarch by gdbarch.
5402 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
5403 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
5404 expression. Add gdbarch as parameter and replace current_gdbarch with
5406 (M6811_TDEP): Remove.
5407 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
5409 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
5410 current_gdbarch by gdbarch. Update caller.
5412 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
5414 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
5417 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
5418 caller. Relace current_gdbarch by gdbarch.
5419 (altivec_register_p, spe_register_p): Likewise.
5420 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
5422 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
5423 altivec_register_p and spe_register_p.
5425 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
5426 caller. Replace current_gdbarch by gdbarch.
5427 (score_analyze_prologue): use get_frame_arch to get at the current
5430 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
5431 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
5432 current_gdbarch by gdbarch. Update caller.
5433 (sparc_frame_cache): Use get_frame_arch to get at the current
5435 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
5436 sparc_analyze_prologue.
5438 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
5441 2008-01-11 Markus Deuling <deuling@de.ibm.com>
5443 * exec.c: #include "arch-utils.h"
5444 (print_section_info): Use gdbarch_from_bfd to get at the
5445 current architecture. Replace current_gdbarch. Fix indention. Replace
5446 deprecated_print_address_numeric by paddress.
5447 * Makefile.in (exec.o) Add dependency to arch-utils.h.
5449 * valprint.c (val_print_string): Replace
5450 deprecated_print_address_numeric.
5451 * tracepoint.c (trace_mention, scope_info): Likewise.
5452 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
5453 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
5454 (maintenance_check_symtabs): Likewise.
5455 * symfile.c (list_overlays_command): Likewise.
5456 * stack.c (frame_info, print_block_frame_labels): Likewise.
5457 * printcmd.c (print_address, print_address_demangle)
5458 (address_info): Likewise.
5459 * corefile.c (memory_error): Likewise.
5460 * infcmd.c (jump_command): Likewise.
5461 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
5462 (mention, delete_breakpoint): Likewise.
5463 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
5464 * dwarf2read.c (dump_die): Likewise.
5465 * ada-valprint.c (ada_val_print_1): Likewise.
5466 * f-valprint.c (f_val_print): Likewise.
5467 * linux-fork.c (info_forks_command): Likewise.
5468 * m32r-com.c (m32r_load_section, m32r_load)
5469 (m32r_upload_command): Likewise.
5471 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
5473 2008-01-11 Markus Deuling <deuling@de.ibm.com>
5475 * gdbarch.sh (skip_prologue): Add gdbarch
5477 * gdbarch.{c,h}: Regenerate.
5479 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
5480 * amd64-tdep.c (amd64_skip_prologue): Likewise.
5481 * avr-tdep.c (avr_skip_prologue): Likewise.
5482 * cris-tdep.c (cris_skip_prologue): Likewise.
5483 * frv-tdep.c (frv_skip_prologue): Likewise.
5484 * h8300-tdep.c (h8300_skip_prologue): Likewise.
5485 * hppa-tdep.c (hppa_skip_prologue): Likewise.
5486 * i386-tdep.c (i386_skip_prologue): Likewise.
5487 * ia64-tdep.c (ia64_skip_prologue): Likewise.
5488 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
5489 * m32r-tdep.c (m32r_skip_prologue): Likewise.
5490 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
5491 * m68k-tdep.c (m68k_skip_prologue): Likewise.
5492 * m88k-tdep.c (m88k_skip_prologue): Likewise.
5493 * mep-tdep.c (mep_skip_prologue): Likewise.
5494 * mips-tdep.c (mips_skip_prologue): Likewise.
5495 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
5496 * mt-tdep.c (mt_skip_prologue): Likewise.
5497 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
5498 * score-tdep.c (score_skip_prologue): Likewise.
5499 * sh64-tdep.c (sh64_skip_prologue): Likewise.
5500 * sh-tdep.c (sh_skip_prologue): Likewise.
5501 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
5502 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
5503 * spu-tdep.c (spu_skip_prologue): Likewise.
5504 * v850-tdep.c (v850_skip_prologue): Likewise.
5505 * vax-tdep.c (vax_skip_prologue): Likewise.
5506 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5507 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
5509 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
5510 current_gdbarch by gdbarch.
5511 * m32c-tdep.c (m32c_skip_prologue): Likewise.
5512 * s390-tdep.c (s390_skip_prologue): Likewise.
5514 2008-01-10 Doug Evans <dje@google.com>
5516 * defs.h (struct continuation_arg): Fix typo in comment.
5517 * target.c (target_translate_tls_address): Fix comment spelling error.
5519 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
5521 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
5522 (DOUBLEST_SCAN_FORMAT): Likewise.
5523 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
5524 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
5525 * c-exp.y (parse_number): Likewise.
5526 * jv-exp.y (parse_number): Likewise.
5527 * objc-exp.y (parse_number): Likewise.
5528 * p-exp.y (parse_number): Likewise.
5530 2008-01-09 Joel Brobecker <brobecker@adacore.com>
5532 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
5533 (check_typedef): Likewise.
5535 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
5537 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
5538 seen_double_big_d, treat the new H, D, and DD modifiers as length
5541 2008-01-08 Joel Brobecker <brobecker@adacore.com>
5543 * dwarf2read.c (read_enumeration_type): Add comment.
5545 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
5547 * config.in: Regenerate.
5549 2008-01-08 Joel Brobecker <brobecker@adacore.com>
5551 * ada-lang.c (ada_convert_actual): Renames convert_actual.
5553 (ada_convert_actuals): Delete.
5554 * ada-lang.h (ada_convert_actual): Add declaration.
5555 (ada_convert_actuals): Remove declaration.
5556 * infcall.c: #include "ada-lang.h".
5557 (value_arg_coerce): Add new parameter sp. Update function
5558 documetnation. Add handling of Ada function call parameters.
5559 * Makefile.in (infcall.o): Update dependencies.
5561 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
5563 * ada-lang.c (ensure_lval): Fix value lval kind.
5564 (convert_actual): Add handling for arguments passed by reference.
5566 2008-01-08 Doug Evans <dje@google.com>
5568 * dbxread.c (read_dbx_symtab): Fix indentation.
5570 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
5572 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
5573 (valarith.o): Depend on dfp.h.
5574 (valops.o): Likewise.
5575 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
5576 (set_decnumber_context): New function.
5577 (decimal_check_errors): Likewise.
5578 (decimal_from_number): Likewise.
5579 (decimal_to_number): Likewise.
5580 (decimal_from_string): Use set_decnumber_context and
5581 decimal_check_errors.
5582 (decimal_from_integral): New function.
5583 (decimal_from_floating): Likewise.
5584 (decimal_to_double): Likewise.
5585 (promote_decimal): Likewise.
5586 (decimal_binop): Likewise.
5587 (decimal_is_zero): Likewise.
5588 (decimal_compare): Likewise.
5589 (decimal_convert): Likewise.
5590 * dfp.h (decimal_from_integral): New prototype.
5591 (decimal_from_floating): Likewise.
5592 (decimal_to_double): Likewise.
5593 (decimal_binop): Likewise.
5594 (decimal_is_zero): Likewise.
5595 (decimal_compare): Likewise.
5596 (decimal_convert): Likewise.
5597 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
5598 call to value_from_decfloat.
5599 * valarith.c: Include dfp.h.
5600 (value_args_as_decimal): New function.
5601 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
5602 (value_logical_not): Likewise.
5603 (value_equal): Likewise.
5604 (value_less): Likewise.
5605 (value_pos): Likewise.
5606 (value_neg): Formatting fix.
5607 * valops.c: Include dfp.h.
5608 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
5609 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
5610 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
5611 (value_from_decfloat): Remove expect_type argument.
5612 * value.h (value_from_decfloat): Update prototype.
5614 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
5616 Ignore change in name of dynamic linker during
5617 execution on Solaris. This also unbreaks pending breakpoints.
5619 * solist.h (struct target_so_ops): New field same.
5620 * solib-svr4.c (svr4_same): New.
5621 (_initialize_svr4_solib): Register svr4_same.
5622 * solib.c (update_solib_list): Use ops->same, if available.
5624 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
5626 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
5627 when using MS-DOS paths.
5629 2008-01-05 Pedro Alves <pedro@codesourcery.com>
5631 * NEWS: Mention --pid and --core command line behaviour changes.
5633 2008-01-05 Pedro Alves <pedro@codesourcery.com>
5635 * main.c (captured_main): Remove 'count' varible and the
5636 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
5637 --pid options were issued simultaneously. If an explicit pid
5638 option was passed, don't fallback to core file. Detect extra
5639 arguments better in the presence of explicit pid or core
5642 2008-01-05 Joel Brobecker <brobecker@adacore.com>
5644 * ada-lang.c (ada_which_variant_applies): Correctly compute
5645 the value of the discriminant when the variant record is packed.
5647 2008-01-04 Joel Brobecker <brobecker@adacore.com>
5649 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
5650 that are used to differentiate homonyms.
5652 2008-01-04 Jerome Guitton <guitton@adacore.com>
5654 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
5655 when the type is an anonymous pointer type.
5656 (ada_check_typedef): Avoid a seg fault when the type is null.
5657 * ada-typeprint.c (print_array_type): Add support for pointer
5660 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
5662 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
5664 2008-01-04 Joel Brobecker <brobecker@adacore.com>
5666 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
5667 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
5669 2008-01-04 Joel Brobecker <brobecker@adacore.com>
5671 * ada-exp.y (chop_separator): New function.
5672 (write_selectors): Rewrite to re-use chop_separator.
5673 (ada_nget_field_index, get_symbol_field_type): New functions.
5674 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
5677 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5679 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
5680 of SYMBOL_VALUE when working with function symbols.
5682 2008-01-03 Joel Brobecker <brobecker@adacore.com>
5684 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
5685 expressions. These expressions do not need to be rewriten.
5687 2008-01-03 Joel Brobecker <brobecker@adacore.com>
5689 * dwarf2read.c (read_enumeration_type): Flag type as stub if
5690 the given die is a declaration.
5692 2008-01-03 Joel Brobecker <brobecker@adacore.com>
5694 * ada-lang.c (ada_array_bound_from_type): Make non-static.
5695 Handle properly the case when the index type is an enumerated type.
5696 Do not return the subtype of the bounds type, just return the
5697 bounds type directly - this is not needed and is more consistent
5698 with what we do for arrays when no XA parallel type exists.
5700 2008-01-03 Joel Brobecker <brobecker@adacore.com>
5702 * ada-lang.c (static_unwrap_type): Add forward declaration.
5703 (template_to_static_fixed_type): Fields of dynamic types sometimes
5704 also need to be unwrapped. Take this into account.
5705 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
5706 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
5707 * ada-typeprint.c (ada_print_type): Get the typename from
5708 the original type, not the base type.
5710 2008-01-03 Jerome Guitton <guitton@adacore.com>
5712 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
5713 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
5714 Update calls to ada_to_fixed_type.
5715 (ada_template_to_fixed_record_type_1): Ditto, but without looking
5717 (ada_to_fixed_type): Add check_tag parameter; do not look for
5718 tag if null. When looking for a tag, use a fixed record type.
5719 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
5720 * ada-valprint.c (printable_val_type, ada_value_print): Update
5721 calls to ada_to_fixed_type.
5723 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
5725 * doublest.c (convert_floatformat_to_doublest): Call
5726 floatformat_to_doublest instead of floatformat_to_double and use
5728 (convert_doublest_to_floatformat): Call floatformat_from_doublest
5729 instead of floatformat_from_double and use DOUBLEST variables.
5731 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
5733 * MAINTAINERS (Write After Approval): Add self.
5735 2008-01-03 Joel Brobecker <brobecker@adacore.com>
5737 * symfile.c (set_initial_language): Make non-static.
5738 * symfile.h (set_initial_language): Add declaration.
5739 * language.c: #include "symfile.h".
5740 (set_language): Call set_initial_language if the frame language
5741 could not be determined.
5743 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
5745 * eval.c (evaluate_subexp_for_address): Provide frame address to
5746 locate_var_value only if it will be needed.
5748 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5750 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
5752 2008-01-02 Joel Brobecker <brobecker@adacore.com>
5754 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
5755 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
5756 This is needed to make sure that any other treatment applied
5757 to the resulting value does not fail for spurious reason,
5758 such as trying to take the address of this value.
5760 2008-01-02 Joel Brobecker <brobecker@adacore.com>
5762 * ada-lang.c (ada_value_equal): Dereference reference types when
5765 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
5767 Updated copyright notices for most files.
5769 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
5771 * win32-nat.c (psapi_module_handle): Remove static.
5772 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
5773 return first module found if base_address is zero. Don't initialize
5774 psapi function pointers here. Convert to cygwin paths when
5776 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
5777 executable name. Use get_module_name when that fails or when
5779 (_initialize_psapi): New function. Initialize psapi stuff before it is
5780 needed or issue a warning if it is not found. Move psapi_module_handle
5783 2008-01-01 Joel Brobecker <brobecker@adacore.com>
5785 * ada-lang.c (ada_remove_trailing_digits): New function.
5786 (ada_remove_po_subprogram_suffix): New function.
5787 (ada_decode): Improve. Move the description of the algorithm
5788 directly inside the code, instead of in the function global
5791 2008-01-01 Joel Brobecker <brobecker@adacore.com>
5793 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
5794 and always print the dereferenced value.
5796 2008-01-01 Joel Brobecker <brobecker@adacore.com>
5798 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
5799 of the case where the first argument is a reference.
5800 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
5802 2008-01-01 Joel Brobecker <brobecker@adacore.com>
5804 Implement support for Ada interface types.
5806 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
5807 (ada_is_ignored_field): Ignore fields that are a dispatch table
5810 2008-01-01 Joel Brobecker <brobecker@adacore.com>
5812 * top.c (print_gdb_version): Update copyright year.
5814 2008-01-01 Joel Brobecker <brobecker@adacore.com>
5816 * ChangeLog-2007: New ChangeLog rotation.
5817 * ChangeLog: Reset for 2008.
5818 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
5821 For older changes see ChangeLog-2007.
5827 version-control: never