1 2008-07-10 Doug Evans <dje@google.com>
3 Add "set print symbol-loading on|off".
4 * NEWS: Document new option.
5 * symfile.h (print_symbol_loading): Declare.
6 * symfile.c (print_symbol_loading): New global.
7 (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols
8 from ..." if print_symbol_loading.
9 (_initialize_symfile): Add set/show print symbol-loading.
10 * solib.c (solib_read_symbols): Only print "Loaded symbols for ..."
11 if print_symbol_loading.
13 2008-07-10 Pedro Alves <pedro@codesourcery.com>
15 Non-stop linux native.
17 * linux-nat.c (linux_test_for_tracefork): Block events while we're
19 (get_pending_status): Implement non-stop mode.
20 (linux_nat_detach): Stop threads before detaching.
21 (linux_nat_resume): In non-stop mode, always resume only a single
23 (linux_handle_extended_wait): On a clone event, in non-stop mode,
24 add new lwp to GDB's thread table, and mark as running, executing
25 and stopped appropriately.
26 (linux_nat_filter_event): Don't assume there are other running
27 threads when a thread exits.
28 (linux_nat_wait): Mark the main thread as running and executing.
29 In non-stop mode, don't stop all lwps.
30 (linux_nat_kill): Stop lwps before killing them.
31 (linux_nat_thread_alive): Use signal 0 to detect if a thread is
33 (send_sigint_callback): New.
34 (linux_nat_stop): New.
35 (linux_nat_add_target): Set to_stop to linux_nat_stop.
37 * linux-nat.h (thread_db_attach_lwp): Declare.
39 * linux-thread-db.c (thread_get_info_callback): Check for new
40 threads if we have none.
41 (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the
42 stopped lwp. Check for new threads if we have none.
43 (thread_db_attach_lwp): New.
44 (thread_db_init): Set proc_handle.pid to inferior_ptid.
45 (check_event): Set proc_handle.pid to the stopped lwp.
46 (thread_db_find_new_threads): Set proc_handle.pid to any stopped
47 lwp available, bail out if there is none.
49 * linux-fork.c (linux_fork_killall): Use SIGKILL instead of
52 2008-07-10 Kevin Buettner <kevinb@redhat.com>
54 * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
55 `current_pc' from CORE_ADDR to ULONGEST.
57 * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
60 2008-07-10 Jan Kratochvil <jan.kratochvil@redhat.com>
62 * NEWS (New commands): Mention "set disable-randomization".
63 * configure.ac: Add check for HAVE_PERSONALITY and
64 HAVE_DECL_ADDR_NO_RANDOMIZE.
65 * configure, config.in: Regenerate.
66 * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
67 [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
69 (disable_randomization, show_disable_randomization)
70 (set_disable_randomization): New.
71 (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
72 PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the
73 variable DISABLE_RANDOMIZATION.
74 (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
75 DISABLE_RANDOMIZATION.
77 2008-07-09 Pedro Alves <pedro@codesourcery.com>
79 Adjust all targets to new target_stop interface.
81 * gnu-nat.c (gnu_stop): Add ptid argument.
82 * go32-nat.c (go32_stop): Add ptid argument.
83 (go32_create_inferior): Pass inferior_ptid to go32_stop.
84 * hpux-thread.c (hpux_thread_stop): Add ptid argument.
85 * monitor.c (monitor_stop): Add ptid argument.
86 (monitor_open): Pass inferior_ptid to monitor_stop.
87 (monitor_interrupt): Pass inferior_ptid to target_stop.
88 (monitor_stop): Add ptid argument.
89 * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
90 (procfs_create_inferior): Add ptid argument.
91 * procfs.c (procfs_stop): Add ptid argument.
92 * remote-m32r-sdi.c (m32r_stop): Add ptid argument.
93 * remote-sim.c (gdbsim_stop): Add ptid argument.
94 * sol-thread.c (sol_thread_stop): Add ptid argument.
95 * win32-nat.c (win32_stop): Add ptid argument.
97 2008-07-09 Pedro Alves <pedro@codesourcery.com>
99 Non-stop inferior control.
101 * infrun.c (resume): In non-stop mode, always resume just one
103 (proceed): Don't call prepare_to_proceed in non-stop mode.
104 (fetch_inferior_event): In non-stop mode, switch context before
106 (error_is_running, ensure_not_running): New.
107 (handle_inferior_event): In non-stop mode: Mark only the event
108 thread as stopped. Require that the target module manages adding
109 threads to the thread list. Assert that there isn't a
110 deferred_step_ptid set. Don't switch to infwait_thread_hop_state.
111 (normal_stop): Only mark not-running if inferior hasn't exited.
112 In non-stop mode, only mark the event thread.
114 * thread.c:Include "cli/cli-decode.h".
115 (print_thread_info): Don't read from a running thread.
116 Output "(running)" if thread is running.
117 (switch_to_thread): Don't read stop_pc if thread is executing.
118 (do_restore_current_thread_cleanup): Don't write to a running
120 (thread_apply_all_command): Don't read from a running thread. In
121 non-stop mode, do a full context-switch instead of just switching
123 (thread_apply_command): In non-stop mode, do a full context-switch
124 instead of just switching threads.
125 (do_captured_thread_select): Likewise. Inform user if selected
127 (_initialize_thread): Mark "info threads" and "thread" and
130 * inf-loop.c (inferior_event_handler): In non-stop mode, don't
131 unregister the target from the event loop.
133 * infcmd.c (continue_command, step_1, jump_command)
134 (signal_command): Ensure the selected thread isn't running.
135 (interrupt_target_command): In non-stop mode, interrupt only the
138 * inferior.h (error_is_running, ensure_not_running): Declare.
140 * target.h (struct target_ops): Add ptid argument to the to_stop
142 (target_stop): Add ptid_t argument.
144 * target.c (update_current_target): Add ptid argument to to_stop's
146 (debug_to_stop): Add ptid_t argument.
147 (debug_to_rcmd): Set to_stop_ptid.
149 * remote.c (remote_stop): Add ptid_t argument.
150 (async_remote_interrupt): Add inferior_ptid to target_stop.
151 * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
153 * Makefile.in (thread.o): Depend on $(cli_decode_h).
155 2008-07-09 Pedro Alves <pedro@codesourcery.com>
157 Don't rely on ecs->wait_for_more.
159 * infrun.c (proceed): Clear the stepping state, set
160 previous_inferior_ptid and clear infwait state.
161 (wait_for_inferior): Don't clear the stepping state, set
162 previous_inferior_ptid, or clear the infwait state here.
163 (fetch_inferior_event): Don't clear the stepping state, set
164 previous_inferior_ptid, or clear the infwait state here. Don't
165 condition on wait_for_more.
167 2008-07-09 Pedro Alves <pedro@codesourcery.com>
169 Refactor infrun a bit.
171 * infrun.c (currently_stepping): Take a struct
172 thread_stepping_state instead of an execution_control_state.
173 (struct thread_stepping_state): New, split from
174 execution_control_state.
175 (gtss, tss): New globals.
176 (proceed): Clear the stepping state, set previous_inferior_ptid
177 and clear infwait state.
178 (init_wait_for_inferior): Clear the stepping state,
179 previous_inferior_ptid and infwait state.
180 (waiton_ptid, infwait_state): New, split from
181 execution_control_state.
182 (struct execution_control_state): Members that persist through
183 events moved out to either struct thred_stepping_state or made
184 global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
185 (wait_for_inferior, fetch_inferior_event): Use local
186 execution_control_state. Update to execution_control_state split.
187 (init_execution_control_state): Adjust.
188 (init_thread_stepping_state): New, extracted from
189 init_execution_control_state.
190 (context_switch): Take a ptid instead of an
191 execution_control_state.
192 (context_switch_to): Adjust.
193 (adjust_pc_after_break): Adjust.
194 (init_infwait_state): New.
195 (handle_inferior_event): Adjust.
197 2008-07-09 Pedro Alves <pedro@codesourcery.com>
198 Vladimir Prus <vladimir@codesourcery.com>
202 * gdbthread.h: Remove unneeded forward declarations.
203 Include "inferior.h".
204 (struct thread_info): Add continuations,
205 intermediate_continuations, proceed_to_finish, step_over_calls,
206 stop_step, step_multi and stop_signal members.
207 (save_infrun_state): Add continuations,
208 intermediate_continuations, proceed_to_finish, step_over_calls,
209 stop_step, step_multi, stop_signal and stop_bpstat parameters.
210 (load_infrun_state): Add continuations,
211 intermediate_continuations, proceed_to_finish, step_over_calls,
212 stop_step, step_multi, stop_signal and stop_bpstat parameters.
214 * thread.c (load_infrun_state): In non-stop mode, load
215 continuations, intermediate_continuations, proceed_to_finish,
216 step_over_calls, stop_step, step_multi and stop_signal.
217 (save_infrun_state): Store continuations,
218 intermediate_continuations, proceed_to_finish, step_over_calls,
219 stop_step, step_multi, stop_signal and stop_bpstat.
220 (save_infrun_state): Store continuations,
221 intermediate_continuations, proceed_to_finish, step_over_calls,
222 stop_step, step_multi, stop_signal and stop_bpstat.
223 (free_thread): Clear The thread's stop_bpstat.
225 * inferior.h (context_switch_to): Declare.
227 * infrun.c (ecss): New global.
228 (context_switch): Context switch continuations,
229 intermediate_continuations, proceed_to_finish, step_over_calls,
230 stop_step, step_multi, stop_signal and stop_bpstat.
231 (wait_for_inferior): Use global ecss.
232 (async_ecss, async_ecs): Delete.
233 (fetch_inferior_event): Use global ecss.
234 (context_switch_to): New.
236 * top.c (execute_command): In non-stop, only check if the current
237 thread is running, in all-stop, check if there's any thread
240 * breakpoint.c (bpstat_remove_breakpoint): New.
241 (bpstat_remove_breakpoint_callback): New.
242 (delete_breakpoint): Clear the stop_bpstats of all threads.
244 * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
245 current thread is running, in all-stop, check if there's any
248 * Makefile.in (gdbthread_h): Depend on $(inferior_h).
250 2008-07-09 Pedro Alves <pedro@codesourcery.com>
254 * inferior.h (non_stop): Declare.
255 * infrun.c (non_stop, non_stop_1): New.
256 (set_non_stop, show_non_stop): New.
257 (_initialize_infrun): Add "set/show non-stop" command.
259 2008-07-09 Pedro Alves <pedro@codesourcery.com>
261 Adjust fork/vfork/exec to pass ptids around.
263 * target.h (struct target_waitstatus): Store related_pid as a ptid.
264 (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
266 * breakpoint.h (struct breakpoint): Change forked_inferior_pid
268 * breakpoint.c (print_it_typical, bpstat_check_location)
269 (print_one_breakpoint_location, set_raw_breakpoint_without_location)
270 (create_fork_vfork_event_catchpoint): Adjust.
271 * infrun.c (fork_event): Change parent_pid and child_pid types to
273 (follow_exec, inferior_has_forked, inferior_has_vforked)
274 (inferior_has_execd): Take a ptid_t and don't trim it.
275 * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
276 * linux-nat.c (linux_child_follow_fork): Adjust.
277 * inf-ptrace.c (inf_ptrace_wait): Adjust.
278 * inf-ttrace.c (inf_ttrace_wait): Adjust.
279 * win32-nat.c (get_win32_debug_event): Don't set related_pid.
281 2008-07-09 Pedro Alves <pedro@codesourcery.com>
283 Add "executing" property to threads.
285 * inferior.h (target_executing): Delete.
286 * gdbthread.h (struct thread_info): Add executing_ field.
287 (set_executing, is_executing): New.
288 * thread.c (main_thread_executing): New.
289 (init_thread_list): Clear it and also main_thread_running.
290 (is_running): Return false if target has no execution.
291 (any_running, is_executing, set_executing): New.
293 * top.c: Include "gdbthread.h".
294 (target_executing): Delete.
295 (execute_command): Replace target_executing check by any_running.
296 * event-top.c: Include "gdbthread.h".
297 (display_gdb_prompt, command_handler): Replace target_executing by
299 * inf-loop.c: Include "gdbthread.h". Don't mark as not executing
300 here. Replace target_executing by is_running.
301 * infrun.c (handle_inferior_event): Mark all threads as
303 * linux-nat.c (linux_nat_resume): Don't mark thread as executing
305 * stack.c (get_selected_block): Return null if inferior is
307 * target.c (target_resume): Mark resumed ptid as executing.
308 * breakpoint.c (until_break_command): Replace target_executing
309 check by is_executing.
310 * remote.c (remote_async_resume): Don't mark inferior as executing
312 * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
315 * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
316 (mi_execute_async_cli_command): Replace target_executing by
319 * frame.c (get_current_frame): Error out if the current thread is
321 (has_stack_frames): New.
322 (get_selected_frame, deprecated_safe_get_selected_frame): Check
325 * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
328 2008-07-09 Pedro Alves <pedro@codesourcery.com>
330 * symfile.c (load_command): Reopen the exec file and reread
331 symbols before anything else.
333 2008-07-09 Pedro Alves <pedro@codesourcery.com>
335 * remote-sim.c: Include gdbthread.h.
336 (remote_sim_ptid): New global.
337 (gdbsim_create_inferior): Silently add the main task to GDB's
339 (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
340 task from GDB's thread list.
341 (gdbsim_resume): Adjust to use remote_sim_ptid.
342 (gdbsim_thread_alive, gdbsim_pid_to_str): New.
343 (init_gdbsim_ops): Register gdbsim_thread_alive and
345 (_initialize_remote_sim): Initialize remote_sim_ptid.
346 * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
348 2008-07-09 Pedro Alves <pedro@codesourcery.com>
350 * monitor (monitor_ptid): New global.
351 (monitor_open): Silently add the main task to GDB's thread list.
352 (monitor_close, monitor_mourn_inferior): Silently delete the main
353 task from GDB's thread list.
354 (monitor_thread_alive, monitor_pid_to_str): New.
355 (init_base_monitor_ops): Register monitor_thread_alive and
357 (_initialize_remote_monitors): Initialize monitor_ptid.
359 * gdbthread.h (delete_thread_silent): Declare.
360 * thread.c (delete_thread): Rename to ...
361 (delete_thread_1): ... this. Add "silent" parameter. If silent,
362 don't do exit notifications.
363 (delete_thread, delete_thread_silent): New, as wrappers to
366 2008-07-08 Pedro Alves <pedro@codesourcery.com>
368 * breakpoint.c (update_global_location_list): Add boolean
369 "should_insert" argument. Only insert locations if caller told it
371 (update_global_location_list_nothrow): Add boolean "should_insert"
372 argument. Pass it to update_global_location_list.
373 (insert_breakpoints, create_longjmp_breakpoint)
374 (create_overlay_event_breakpoint, enable_overlay_breakpoints)
375 (create_thread_event_breakpoint, create_solib_event_breakpoint)
376 (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
377 (enable_watchpoints_after_interactive_call_stop)
378 (set_momentary_breakpoint, create_breakpoints)
379 (break_command_really, watch_command_1)
380 (create_ada_exception_breakpoint, update_breakpoint_locations)
381 (do_enable_breakpoint, enable_command): Pass true to
382 update_global_location_list.
383 (bpstat_stop_status, disable_overlay_breakpoints)
384 (disable_watchpoints_before_interactive_call_start)
385 (delete_breakpoint, disable_breakpoint, disable_command): Pass
386 false to update_global_location_list.
387 (update_breakpoints_after_exec): Don't temporarily disable
388 always-inserted mode.
390 2008-07-08 Pedro Alves <pedro@codesourcery.com>
392 * breakpoint.c (mark_breakpoints_out): Make public.
393 (update_breakpoints_after_exec): Don't call mark_breakpoints_out
394 here. Update comment.
395 * breakpoint.h (mark_breakpoints_out): Declare.
397 * linux-nat.c (linux_handle_extended_wait): On
398 TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
399 * inf-ttrace.c (inf_ttrace_wait): Likewise.
401 2008-07-08 Pedro Alves <pedro@codesourcery.com>
403 * infrun.c (follow_exec): Reset shared libraries before adding the
406 2008-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
408 * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
410 2008-07-07 Pedro Alves <pedro@codesourcery.com>
412 * i386-dicos-tdep.c: Include "inferior.h".
413 (i386_dicos_frame_align): New.
414 (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call
415 dummy location ON_STACK.
416 * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
418 2008-07-07 Joel Brobecker <brobecker@adacore.com>
420 * gstdint.h: New file.
422 2008-07-05 Vladimir Prus <vladimir@codesourcery.com>
424 * mi/mi-interp.c (mi_on_resume): Don't try to report
425 resumed thread it the thread list is empty.
427 2008-07-05 Pierre Muller <muller@ics.u-strasbg.fr>
429 * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
430 completer for set to filename_completer.
434 2008-07-04 Vladimir Prus <vladimir@codesourcery.com>
436 Implement -target-attach.
437 * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
439 2008-06-21 Hui Zhu <teawater@gmail.com>
441 * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
443 2008-07-03 Pedro Alves <pedro@codesourcery.com>
445 * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
446 * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
448 * target.h (struct target_ops): Add to_attach_no_wait member.
449 (target_attach_no_wait): New.
450 * target.c (update_current_target): Inherit to_attach_no_wait.
452 * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
453 target_attach_no_wait runtime check.
455 * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
456 * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
459 2008-07-03 Pedro Alves <pedro@codesourcery.com>
461 * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
462 on debug_displaced being set.
464 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
466 * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
467 directly instead of get_frame_id.
469 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
471 * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
472 (deal_with_atomic_sequence): Update BC masks.
473 (rs6000_gdbarch_init): Init displaced stepping infra-structure.
474 Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
476 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
478 * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
479 register, not the previous frame's.
481 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
483 * source.c (select_source_symtab): Make sure we skip namespace
484 symtabs when showing cpp source code.
486 2008-06-30 Hans-Peter Nilsson <hp@axis.com>
488 * MAINTAINERS (Authorized committers): Fix my email address.
490 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
492 * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
493 -target-download and -target-select via CLI, so that
494 the quoting rules are the same as they were (unfortunately)
495 in all prior gdb releases.
496 * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
497 (mi_cmd_target_download, mi_cmd_target_select): Remove.
498 * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
499 (mi_cmd_target_download, mi_cmd_target_select): Remove.
500 (mi_cmd_execute): Set current_token even for commands
503 2008-06-28 Ulrich Weigand <uweigand@de.ibm.com>
505 * alphafbsd-tdep.c: Update for unwinder changes.
506 * alpha-linux-tdep.c: Likewise.
507 * alphanbsd-tdep.c: Likewise.
508 * alphaobsd-tdep.c: Likewise.
509 * avr-tdep.c: Likewise.
510 * cris-tdep.c: Likewise.
511 * frv-linux-tdep.c: Likewise.
512 * frv-tdep.c: Likewise.
513 * h8300-tdep.c: Likewise.
514 * hppa-linux-tdep.c: Likewise.
515 * iq2000-tdep.c: Likewise.
516 * m32c-tdep.c: Likewise.
517 * m32r-linux-tdep.c: Likewise.
518 * m32r-tdep.c: Likewise.
519 * m68hc11-tdep.c: Likewise.
520 * mep-tdep.c: Likewise.
521 * mn10300-tdep.c: Likewise.
522 * mt-tdep.c: Likewise.
523 * score-tdep.c: Likewise.
524 * sh64-tdep.c: Likewise.
525 * sh-tdep.c: Likewise.
526 * sparc64fbsd-tdep.c: Likewise.
527 * sparc64nbsd-tdep.c: Likewise.
528 * sparc64obsd-tdep.c: Likewise.
529 * v850-tdep.c: Likewise.
530 * vaxobsd-tdep.c: Likewise.
531 * vax-tdep.c: Likewise.
532 * xstormy16-tdep.c: Likewise.
534 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
536 * mi/mi-main.c (enum captured_mi_execute_command_actions)
537 (captured_mi_execute_command_args): Remove.
538 (captured_mi_execute_command): Cast the closure to mi_parse
539 pointer, not to captured_mi_execute_command_args, and don't
540 set the action field thereof.
541 (mi_execute_command): Pass struct mi_parse, not
542 captured_mi_execute_command_args to captured_mi_execute_command.
543 (mi_execute_command): Remove (dead) code for suppressing
546 2008-06-28 Pedro Alves <pedro@codesourcery.com>
548 * linux-nat.c (enum sigchld_state): New.
549 (linux_nat_async_events_state): Renamed from
550 linux_nat_async_events_enabled.
551 (linux_nat_event_pipe_push, my_waitpid): Adjust.
552 (sigchld_default_action): New.
553 (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
555 (linux_nat_create_inferior): Set events state to sigchld_default
557 (linux_nat_resume): Adjust.
558 (linux_nat_wait): Call linux_nat_async_events unconditionally.
559 (sigchld_handler): Adjust.
560 (linux_nat_async_mask): Don't set SIGCHLD actions here.
561 (get_pending_events): Adjust.
562 (linux_nat_async_events): Rewrite to handle enum sigchld_state
563 instead of a boolean.
564 (linux_nat_async): Adjust.
565 (_initialize_linux_nat): Capture default SIGCHLD action into
566 sigchld_default_action.
568 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
570 * breakpoint.c (moribund_locations): New.
571 (bpstat_stop_status): Process moribund locations.
572 (update_global_location_list): Add removed
573 locations to moribund_locations.
574 (breakpoint_retire_moribund): New.
575 * breakpoint.h (struct bp_location): New field
576 events_till_retirement.
577 (breakpoint_retire_moribund): Declare.
578 * thread.c (thread_count): New.
579 * infrun.c (handle_inferior_event): Call
580 breakpoint_retire_moribund.
581 * gdbthread.h (thread_count): Declare.
583 2008-06-27 Joseph Myers <joseph@codesourcery.com>
585 * dfp.c (decimal_convert): Call match_endianness before and after
588 2008-06-27 Jonathan Larmour <jifl@eCosCentric.com>
590 * remote.c (remote_insert_breakpoint): Ensure that if Z0
591 unsupported and we fall back to memory_insert_breakpoint, we
592 use the unmodified requested address.
594 2008-06-27 Joel Brobecker <brobecker@adacore.com>
596 * dwarf2read.c (read_attribute_value): Issue a complaint when
597 adjusting size attribute values of 0xffffffff as zero.
599 2008-06-27 Joseph Myers <joseph@codesourcery.com>
601 * i386-tdep.c (i386_16_byte_align_p): New.
602 (i386_push_dummy_call): Determine stack space required for
603 arguments going forwards allowing for 16-byte alignment, then push
604 arguments going forwards.
606 2008-06-27 Pedro Alves <pedro@codesourcery.com>
608 * infrun.c (start_remote): Don't clear thread list here.
609 * monitor.c (monitor_open): Include "gdbthread.h". Clear thread
611 * remote.c (record_currthread): Upgrade the main thread and its
612 entry in the thread list if this is the first time we hear about
614 (remote_thread_alive): Consider magic_null_ptid or a ptid without
615 a tid member always alive.
616 (remote_find_new_threads): Don't update the main thread here.
617 (remote_start_remote): Clear thread list here. Always add the
619 (extended_remote_attach_1): Add the main thread here.
620 (extended_remote_mourn_1): Re-add the main thread here.
621 (extended_remote_create_inferior_1): Add a main thread.
623 * Makefile.in (monitor.o): Depend on $(gdbthread_h).
625 2008-06-27 Pedro Alves <pedro@codesourcery.com>
627 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
629 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
631 (general_thread, continue_thread): Change type to ptid_t.
632 (record_currthread): Take a ptid_t parameter instead of an
634 (MAGIC_NULL_PID): Delete.
635 (set_thread): Take a ptid_t parameter and adjust.
636 (set_general_thread, set_continue_thread): New.
637 (remote_thread_alive, remote_newthread_step)
638 (remote_current_thread, remote_find_new_threads)
639 (remote_threads_info, remote_start_remote, remote_vcont_resume)
640 (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
641 (threadalive_test, remote_pid_to_str)
642 (remote_get_thread_local_address): Adjust.
643 (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
646 2008-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
648 * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
649 * configure: Regenerated.
651 2008-06-26 Joel Brobecker <brobecker@adacore.com>
653 * dwarf2read.c (read_attribute_value): Treat size attribute
654 values of 0xffffffff as if the attribute value was zero.
656 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
658 * linux-nat.c: Add description of overall logic.
660 2008-06-26 Daniel Jacobowitz <dan@codesourcery.com>
662 * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
663 (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
664 all dependencies on $(gdb_stdint_h).
665 (distclean): Do not delete gdb_stdint.h.
666 * acinclude.m4: Do not use stdint.m4.
667 * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
668 uintptr_t, and gdb_stdint.h.
669 * defs.h: Include <stdint.h>.
670 * gdb_thread_db.h: Assume stdint.h is already included.
671 * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
672 rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
673 include gdb_stdint.h.
674 * configure, config.in: Regenerate.
676 2008-06-26 Joseph Myers <joseph@codesourcery.com>
678 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
679 decimal floating-point values in GPRs for soft-float.
680 (do_ppc_sysv_return_value): Handle returning decimal
681 floating-point values in GPRs for soft-float.
683 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
685 * target.c (target_read_until_error): New.
686 * target.h (target_read_until_error): Declare.
687 * mi/mi-main.c (mi_cmd_data_read_memory): Use
688 target_read_until_error.
690 2008-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
692 Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
693 * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
694 after the DECFLOAT detection to fix a memory leak. Remove the
695 redundant NUM initialization. Protect the DECFLOAT detection memory
696 access before the P block. Restore the P memory content for the
699 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
701 Kill the return value for all MI command functions.
702 * mi/mi-cmds.h (enum mi_cmd_result): Remove.
703 (mi_cmd_argv_ftype): Change return type to void.
705 * mi/mi-main.c: Adjust all function that implement
706 MI commands to return nothing.
707 (struct captured_mi_execute_command_actions):
709 (mi_cmd_execute): Return nothing.
710 (mi_execute_async_cli_command): Return nothing.
711 (mi_cmd_exec_interrupt): Don't print ^done here.
712 (mi_cmd_target_select): Don't print ^connected here.
713 (captured_mi_execute_command): Don't check for MI_CMD_DONE.
714 Special-case -target-select and output ^connected, not ^done.
716 * mi/mi-cmd-break.c: Adjust.
717 * mi/mi-cmd-disas.c: Adjust.
718 * mi/mi-cmd-env.c: Adjust.
719 * mi/mi-cmd-file.c: Adjust.
720 * mi/mi-cmd-stack.c: Adjust.
721 * mi/mi-cmd-target.c: Adjust.
722 * mi/mi-cmd-var.c: Adjust.
723 * mi/mi-interp.c: Adjust.
724 * mi/mi-symbol-cmds.c: Adjust.
726 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
728 Emit ^running via observer.
729 * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
731 (mi_on_resume): Print ^running if not previously output.
732 * mi/mi-main.c (running_result_record_printed): New.
733 (captured_mi_execute_command): Reset
734 running_result_record_printed. Use running_result_record_printed
735 to decide if we should skip ^done.
736 (mi_execute_async_cli_command): Don't print ^running here.
737 * mi/mi-main.h (current_token, running_result_record_printed):
740 2008-06-24 Michael Snyder <msnyder@specifix.com>
742 * infrun.c (_initialize_infrun): White space and typo fix.
744 2008-06-23 Christopher Faylor <me.gdb.changelog@cgf.cx>
746 * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
747 (do_initial_win32_stuff): Fix problem with inability to set breakpoints
748 when first loading DLL with "dll" command.
750 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
752 * gnu-nat.c (proc_string): Use capital T for "Thread".
754 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
756 * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
758 2008-06-18 Joel Brobecker <brobecker@adacore.com>
760 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
761 the target cannot run.
763 2008-06-18 Joel Brobecker <brobecker@adacore.com>
765 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
766 we're attaching to a running process.
768 2008-06-18 Pierre Muller <muller@ics.u-strasbg.fr>
770 * win32-nat.c (handle_load_dll): Give dll name and load address
771 if debug_events is on.
772 (handle_unload_dll): Likewise.
774 2008-06-14 Vladimir Prus <vladimir@codesourcery.com>
776 Don't suppress *running when doing finish.
777 * infcall.c (call_function_by_hand): Set both
778 suppress_resume_observer and suppress_stop_observer.
779 * infcmd.c (suppress_run_stop_observers): Split into...
780 (suppress_resume_observer, suppress_stop_observer): ...those.
781 (finish_command_continuation): Clear suppress_stop_observer.
782 (finish_command): Set suppress_stop_observer.
783 * inferior.h (suppress_run_stop_observers): Split into...
784 (suppress_resume_observer, suppress_stop_observer): ...those.
785 * infrun.c (normal_stop): Check for suppress_stop_observer.
786 * thread.c (set_running): Check for suppress_resume_observer.
788 2008-06-12 Pedro Alves <pedro_alves@portugalmail.pt>
789 Pierre Muller <muller@ics.u-strasbg.fr>
791 * gdbarch.sh (gdbarch_skip_main_prologue): New.
792 * gdbarch.h, gdbarch.c: Regenerate.
793 * i386-tdep.h (i386_skip_main_prologue): Declare.
794 * i386-tdep.c (i386_skip_main_prologue): New.
795 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
796 i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
797 * symtab.c (find_function_start_sal): When pc points at the "main"
798 function, call gdbarch_skip_main_prologue.
800 2008-06-11 Daniel Jacobowitz <dan@codesourcery.com>
802 * value.c (value_primitive_field): Fetch lazy register values.
804 2008-06-11 Pedro Alves <pedro@codesourcery.com>
806 * NEWS: Mention support removal of undocumented S AA p PID stop
809 * remote.c (remote_wait): Remove undocumented S AA p PID support.
811 2008-06-10 Stan Shebs <stan@codesourcery.com>
813 * MAINTAINERS: Update my affiliation and address.
815 2008-06-10 Andreas Schwab <schwab@suse.de>
817 * top.c (print_gdb_version): Don't print final newline.
819 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
822 * Makefile.in: Update dependencies.
823 * gdbthread.h (struct thread_info): New field
825 (set_running, is_running): New.
826 * thread.c (set_running, is_running): New.
827 * inferior.h (suppress_normal_stop_observer): Rename to...
828 (suppress_run_stop_observers): ..this.
829 * infcmd.c (suppress_normal_stop_observer): Rename to...
830 (suppress_run_stop_observers): ..this.
831 (finish_command_continuation, finish_command): Adjust.
832 * infcall.c (call_function_by_hand): Adjust.
833 * infrun.c (normal_stop): Call set_running.
834 * target.c (target_resume): New. Call set_running.
835 * target.h (target_resume): Convert from macro to
838 * mi/mi-interp.c (mi_on_resume): New.
839 (mi_interpreter_init): Register mi_on_resume.
841 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
843 Use observers to report stop events in MI.
844 * mi/mi-interp.c (mi_on_normal_stop): New.
845 (mi_interpreter_init): Register mi_on_normal_stop.
846 (mi_interpreter_exec_continuation): Remove.
847 (mi_cmd_interpreter_exec): Don't register the above.
848 * mi/mi-main.c (captured_mi_execute_command): Don't care
849 about sync_execution.
850 (mi_execute_async_cli_command): Don't install continuation. Don't
852 (mi_exec_async_cli_cmd_continuation): Remove.
854 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
856 Suppress normal stop observer when it's problematic.
857 * inferior.h (suppress_normal_stop_observer): New.
858 * infcall.c (call_function_by_hand): Disable stop events when
859 doing function calls.
860 * infmcd.c (suppress_normal_stop_observer): New.
861 (finish_command_continuation): Call normal_stop observer
863 (finish_command): Disable stop events inside proceed.
864 * infrun.c (normal_stop): Don't call normal stop observer if
865 suppressed of if multi-step is in progress.
867 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
870 * infrun.c (finish_command): Don't pass cleanup
872 (finish_command_continuation): Don't grab cleanup from
873 the passed data, as we don't use, and cannot, use it anyway.
875 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
877 Introduce common cleanup for restoring integers.
878 * defs.h (make_cleanup_restore_integer): New declaration.
879 (struct cleanup): New field free_arg.
880 (make_my_cleanup_2): New.
881 * utils.c (restore_integer_closure, restore_integer)
882 (make_cleanup_restore_integer): New.
883 (make_my_cleanup): Initialize the free_arg field and
884 renamed to make_my_cleanup_2.
885 (do_my_cleanups): Call free_arg.
886 (discard_cleanups): Call free_arg.
887 * breakpoint.c (restore_always_inserted_mode): Remove.
888 (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
890 2008-06-09 Doug Evans <dje@google.com>
892 * remote.c (remote_wait): Include beginning of malformed packet
895 2008-06-09 Tom Tromey <tromey@redhat.com>
897 * completer.c (complete_line): Don't special-case
898 expression_completer.
899 (expression_completer): Only pass last word to
901 * c-exp.y (yylex): Check 'token', not 'operator'.
903 2008-06-09 Daniel Jacobowitz <dan@codesourcery.com>
905 * configure.ac (build_warnings): Add -Wno-format for mingw.
906 * configure: Regenerated.
908 2008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
910 * NEWS: Make indentation consistent. Move exec tracing entry out
911 of remote packet list.
913 2008-06-06 Tom Tromey <tromey@redhat.com>
915 * value.h (evaluate_subexpression_type, extract_field_op):
917 * printcmd.c (_initialize_printcmd): Use expression_completer for
918 'p', 'inspect', 'call'.
919 * parser-defs.h (parse_field_expression): Declare.
920 * parse.c: Include exceptions.h.
921 (in_parse_field, expout_last_struct): New globals.
922 (mark_struct_expression): New function.
923 (prefixify_expression): Return int.
924 (prefixify_subexp): Return int. Use expout_last_struct.
925 (parse_exp_1): Update.
926 (parse_exp_in_context): Add 'out_subexp' argument. Handle
928 (parse_field_expression): New function.
929 * expression.h (parse_field_expression): Declare.
930 (in_parse_field): Likewise.
931 * eval.c (evaluate_subexpression_type): New function.
932 (extract_field_op): Likewise.
933 * completer.h (expression_completer): Declare.
934 * completer.c (expression_completer): New function.
935 (count_struct_fields, add_struct_fields): New functions.
936 * c-exp.y (yyparse): Redefine.
937 (COMPLETE): New token.
938 (exp): New productions.
939 (saw_name_at_eof, last_was_structop): New globals.
940 (yylex): Return COMPLETE when needed. Recognize in_parse_field.
941 (c_parse): New function.
942 * breakpoint.c (_initialize_breakpoint): Use expression_completer
943 for watch, awatch, and rwatch.
944 * Makefile.in (parse.o): Depend on exceptions_h.
946 2008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
949 * gdb/valopts.c (find_overload_match): Handle references
952 2008-06-06 Paul N. Hilfinger <hilfinger@adacore.com>
954 * ada-lang.c (ada_value_assign): Correct big-endian case to take into
955 account the bitsize of the 'from' operand.
957 2008-06-06 Pedro Alves <pedro@codesourcery.com>
959 * annotate.h (annotate_thread_changed): Declare.
961 2008-06-06 Nick Roberts <nickrob@snap.net.nz>
963 * annotate.c (annotate_thread_changed): New function.
964 * thread.c (thread_command) : Use it.
965 * infrun.c (normal_stop): Use it.
967 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
968 Nathan Sidwell <nathan@codesourcery.com>
969 Joseph Myers <joseph@codesourcery.com>
971 * acinclude.m4: Include ../config/acx.m4.
972 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
973 * configure, config.in: Regenerate.
974 * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
976 * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
978 2008-06-05 Pedro Alves <pedro@codesourcery.com>
980 Replace 'target async' by 'maintenance set remote-async' and
981 'target remote' combination.
983 * remote.c (remote_async_wait): Merge into remote_wait, and
985 (remote_async_permitted, remote_async_permitted_set): New
987 (set_maintenance_remote_async_permitted)
988 (show_maintenance_remote_async_permitted): New functions.
989 (remote_async_ops, extended_async_remote_ops): Delete.
990 (remote_async_open, extended_remote_async_open): Delete.
991 (remote_open_1): Drop async_p parameter. Update callers. Replace
992 async_p with remote_async_permitted checks.
993 (extended_async_remote_attach): Delete.
994 (remote_resume, remote_async_resume): Merge and leave remote_resume.
995 (remote_async_terminal_inferior): Rename to...
996 (remote_terminal_inferior): ... this, and add
997 remote_async_termitted check.
998 (remote_async_terminal_ours): Rename to...
999 (remote_terminal_ours): ... this, and add remote_async_termitted
1001 (remote_wait, remote_async_wait): Merge and leave remote_wait
1003 (remote_kill, remote_async_kill): Merge and leave remote_kill
1005 (remote_async_mourn, extended_async_remote_mourn): Delete.
1006 (extended_remote_create_inferior_1): Drop async_p parameter.
1007 Update callers. Always use extended_remote_ops.
1008 (extended_remote_async_create_inferior): Delete.
1009 (remote_return_zero): Delete.
1010 (init_remote_ops): Register remote_can_async_p, remote_async,
1011 remote_async_mask, remote_terminal_inferior and
1012 remote_terminal_ours.
1013 (remote_can_async_p, remote_is_async_p): Check for
1014 remote_async_permitted.
1015 (init_remote_async_ops, init_extended_async_remote_ops): Remove.
1016 (set_remote_cmd): Don't add async and extended-async targets.
1017 (_initialize_remote): Add set/show remote-async maintenance
1020 2008-06-05 Pedro Alves <pedro@codesourcery.com>
1022 * remote.c (kill_kludge): Delete.
1023 (remote_wait, remote_async_wait): Don't set it.
1024 (remote_kill, remote_async_kill): Don't do anything with it.
1026 2008-06-05 Pedro Alves <pedro@codesourcery.com>
1028 * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
1030 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
1032 * bcache.c (bcache_data): Call deprecated_bcache_added function.
1033 (deprecated_bcache_added): New function name. Body of function
1034 bcache_data is used here with the addition of 'added' argument.
1035 * bcache.h (deprecated_bcache_added): New function.
1036 * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
1037 work from add_psymbol_to_list - initialises partial symbol and stashes
1038 it in objfile's cache.
1039 (append_psymbol_to_list): New helper function, takes other part of
1040 work from add_psymbol_to_list - adds partial symbol to the given list.
1041 (add_psymbol_to_list): Call helper functions instead of doing work
1042 here. If adding to global list, do not duplicate partial symbols in the
1045 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
1047 * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
1048 'exception caught|thrown' message.
1050 2008-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1052 * Makefile.in: Update dependencies.
1053 * dwarf2expr.c: New include "gdb_assert.h".
1054 (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
1055 (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
1056 (execute_stack_op): Error out on too large RECURSION_DEPTH.
1057 Increase/decrease RECURSION_DEPTH around the function.
1059 2008-06-05 Daniel Jacobowitz <dan@codesourcery.com>
1061 * remote.c (get_offsets): Handle a single segment.
1062 * symfile.c (symfile_map_offsets_to_segments): Allow more bases
1065 2008-06-03 Daniel Jacobowitz <dan@codesourcery.com>
1067 * solib-svr4.c (struct lm_info): Add lm_addr.
1068 (main_lm_addr): New.
1069 (svr4_default_sos): Set lm_addr.
1070 (svr4_current_sos): Set lm_addr and main_lm_addr.
1071 (svr4_fetch_objfile_link_map): Rewrite.
1072 (svr4_clear_solib): Clear main_lm_addr.
1074 2008-06-03 Michael Snyder <msnyder@redhat.com>
1075 Joseph Myers <joseph@codesourcery.com>
1077 * mips-tdep.c (mips_eabi_return_value): Replace stub that always
1078 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
1080 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
1082 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
1084 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
1086 * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
1088 2008-06-01 Joel Brobecker <brobecker@adacore.com>
1090 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
1091 treat pointers in data space as function descriptors if the
1092 target address is also in the data space.
1094 2008-05-30 Joel Brobecker <brobecker@adacore.com>
1096 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
1097 the trad-frame register value for the SP register.
1099 2008-05-29 Mark Kettenis <kettenis@gnu.org>
1101 * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
1103 2008-05-28 Joel Brobecker <brobecker@adacore.com>
1105 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
1106 that identifies function descriptors outside of the .opd section.
1108 2008-05-28 Aleksandar Ristovski <aristovski@qnx.com>
1110 * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
1111 temporary catchpoints. In MI add missing fields 'reason', 'disp',
1113 (print_mention_exception_catchpoint): Add 'Temporary' for temporary
1115 (handle_gnu_v3_exceptions): Use tempflag.
1117 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
1119 Refactor varobj_update interface.
1120 * varobj.c (varobj_update): Report changes as vector. Also
1121 return not just a list of varobj, but a list of special structures
1122 that tell what exactly has changed.
1123 * varobj.h (enum varobj_update_error): Rename to
1124 varobj_scope_status.
1125 (struct varobj_update_result_t): New.
1126 (varobj_update): Adjust prototype.
1127 * mi/mi-cmd-var.c: Adjust for changes.
1129 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
1131 * varobj.c (varobj_update): Fix comment typo.
1134 2008-05-26 Joel Brobecker <brobecker@adacore.com>
1136 Set the symtab field of symbols read from ECOFF debugging entries.
1137 * mdebugread.c (add_symbol): Add new parameter symtab.
1138 (parse_symbol): Update calls to add_symbol throughout.
1140 2008-05-27 Andreas Schwab <schwab@suse.de>
1142 * symtab.h (enum address_class): Remove LOC_REGPARM and
1144 (struct symbol): Add is_argument.
1145 (SYMBOL_IS_ARGUMENT): Define.
1147 * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
1148 * buildsym.c (finish_block): Likewise.
1149 * stack.c (print_frame_args, print_block_frame_locals)
1150 (print_frame_arg_vars): Likewise.
1151 * symtab.c (lookup_block_symbol): Likewise.
1152 * tracepoint.c (add_local_symbols): Likewise.
1153 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
1155 * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
1156 * dwarf2read.c (new_symbol): Likewise.
1157 * mdebugread.c (parse_symbol): Likewise.
1158 * stabsread.c (define_symbol): Likewise.
1160 * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
1161 and LOC_COMPUTED_ARG.
1162 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
1163 * ax-gdb.c (gen_var_ref): Likewise.
1164 * eval.c (evaluate_subexp_for_address): Likewise.
1165 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
1166 * m2-exp.y (yylex): Likewise.
1167 * printcmd.c (address_info): Likewise.
1168 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
1169 * tracepoint.c (collect_symbol, scope_info): Likewise.
1171 2008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1173 * gdbarch.sh: Added new gdbarch struct
1174 core_regset_sections.
1175 * gdbarch.c: Refreshed.
1176 * gdbarch.h: Refreshed.
1177 * regset.h (core_regset_section): Declared.
1178 * linux-nat.c (linux_nat_do_thread_registers): Added
1179 support for the new gdbarch struct core_regset_sections.
1180 * utils.c (host_address_to_string): New function.
1181 * defs.h (host_address_to_string): New prototype.
1182 * i386-linux-tdep.c (i386_regset_rections): New register
1183 sections list for i386.
1184 (i386_linux_init_abi): Initialized new gdbarch struct
1185 core_regset_sections.
1186 * Makefile.in: Updated to reflect dependency changes.
1187 * ppc-linux-tdep.c (ppc_regset_sections): Register
1188 sections list for ppc.
1189 (ppc_linux_init_abi): Initialized new gdbarch struct
1190 core_regset_sections
1192 2008-05-24 Andreas Schwab <schwab@suse.de>
1194 * linespec.c (decode_objc): Save current language around call to
1197 2008-05-23 Joel Brobecker <brobecker@adacore.com>
1199 * valprint.h (get_array_bounds): Renames get_array_low_bound.
1200 * valprint.c (get_array_bounds): Renames get_array_low_bound.
1201 Return the proper bound value if the array index type is an
1202 enumerated type. Compute the high bound if requested.
1203 (val_print_array_elements): Handle the case when the array
1204 element has a null size.
1205 * ada-valprint.c (print_optional_low_bound): Add handling
1206 for empty arrays or arrays of zero-size elements.
1207 (ada_val_print_array): New function, extracted out from
1208 ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
1209 handle empty arrays and arrays of zero-size elements.
1210 (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
1211 code by call to ada_val_print_array.
1212 (ada_value_print): Remove handling of null array. The handling
1213 was incomplete and is now better handled by ada_val_print_array.
1215 2008-05-23 Markus Deuling <deuling@de.ibm.com>
1217 * annotate.c (annotate_source, annotate_frame_begin): Replace
1218 deprecated_print_address_numeric with paddress.
1219 * cli/cli-cmds.c (list_command, edit_command): Likewise.
1220 * tui/tui-stack.c (tui_make_status_line): Likewise.
1222 * defs.h (deprecated_print_address_numeric): Remove.
1223 * printcmd.c (deprecated_print_address_numeric): Remove.
1224 * maint.c (maint_print_section_info): Fix comment.
1226 2008-05-23 Markus Deuling <deuling@de.ibm.com>
1228 * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
1229 print_binary_chars, print_char_chars): Add byte_order parameter and
1230 replace gdbarch_byte_order.
1231 (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
1232 expressions and remove them. Remove unused TWO_TO_FOURTH.
1233 (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
1234 endianness. Update call to print_hex_chars.
1235 * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
1236 print_binary_chars, print_char_chars): Add byte_order parameter.
1237 * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
1238 get at the endianness. Update print_*_char calls to use byte_order.
1240 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
1242 * symtab.h (struct symbol): Make "aux_value" member a void pointer
1244 (SYMBOL_LOCATION_BATON): Update.
1246 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
1248 * symtab.h (enum address_class): Remove LOC_BASEREG and
1250 (struct symbol): Remove "basereg" member of "aux_value" union.
1251 (SYMBOL_BASEREG): Remove.
1253 * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
1255 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
1256 (ada_add_block_symbols): Likewise.
1257 * ax-gdb.c (gen_var_ref): Likewise.
1258 * buildsym.c (finish_block): Likewise.
1259 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
1260 * m2-exp.y (yylex): Likewise.
1261 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
1262 * printcmd.c (address_info): Likewise.
1263 * stack.c (print_frame_args, print_block_frame_locals): Likewise.
1264 (print_frame_arg_vars): Likewise.
1265 * symmisc.c (print_symbol): Likewise.
1266 * symtab.c (lookup_block_symbol): Likewise.
1267 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
1268 (scope_info): Likewise.
1270 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
1272 * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
1274 * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
1275 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
1276 (ada_add_block_symbols): Likewise.
1277 * ax-gdb.c (gen_var_ref): Likewise.
1278 * buildsyms.c (finish_block): Likewise.
1279 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
1280 * m2-exp.y (yylex): Likewise.
1281 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
1282 * printcmd.c (address_info): Likewise.
1283 * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
1284 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
1285 * symtab.c (lookup_block_symbol): Likewise.
1286 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
1287 (scope_info): Likewise.
1289 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
1291 * symtab.h (enum address_class): Remove LOC_INDIRECT and
1292 LOC_HP_THREAD_LOCAL_STATIC.
1294 * findvar.c (symbol_read_needs_frame, read_var_value): Do not
1295 handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
1296 (read_var_value): Likewise.
1297 * buildsym.c (finish_block): Likewise.
1298 * objfiles.c (objfile_relocate): Likewise.
1299 * printcmd.c (address_info): Likewise.
1300 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
1301 * tracepoint.c (scope_info): Likewise.
1303 2008-05-21 Markus Deuling <deuling@de.ibm.com>
1304 Maxim Grigoriev <maxim2405@gmail.com>
1306 * xtensa-tdep.c (xtensa_read_register): Remove.
1307 (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
1308 argument litbase to call0_frame_cache().
1309 (call0_track_op, call0_analyze_prologue)
1310 (call0_frame_cache): Use extra argument litbase.
1312 2008-05-21 Joel Brobecker <brobecker@adacore.com>
1314 * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
1316 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
1318 * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
1320 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
1322 * alpha-mdebug-tdep.c: Include "trad-frame.h".
1323 (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
1324 struct trad_frame_saved_reg *.
1325 (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
1326 trad_frame_alloc_saved_regs. Update accesses. Record previous
1327 value of SP as being vfp.
1328 (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
1329 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
1331 2008-05-21 Markus Deuling <deuling@de.ibm.com>
1333 * score-tdep.c (score_print_insn): Get the current endianess from
1334 disassemble_info instead of gdbarch_byte_order.
1336 2008-05-21 Pedro Alves <pedro@codesourcery.com>
1338 * frame.c (get_prev_frame_1): Build frame id before setting
1339 this_frame->prev_p, not after.
1341 2008-05-21 Nick Roberts <nickrob@snap.net.nz>
1343 * annotate.c (annotate_new_thread): New function for new-thread
1345 * annotate.h: (annotate_new_thread): New extern.
1346 * thread.c (add_thread_with_info): Use it.
1347 * Makefile.in (thread.o): Add dependency on annotate.h.
1349 2008-05-20 Joel Brobecker <brobecker@adacore.com>
1351 * win32-nat.c (win32_wait): Block the control-c event while
1352 waiting for a debug event.
1354 2008-05-19 Pedro Alves <pedro@codesourcery.com>
1356 * symtab.h (lookup_symbol_in_language): Update comment.
1357 * symtab.c (lookup_symbol_aux_block): Update comment.
1358 * ada-lang.c (ada_lookup_symbol_list): Update comment.
1360 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
1362 * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
1363 (lookup_symbol): Likewise.
1364 * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
1365 (lookup_symbol): Likewise.
1366 (search_symbols): Update.
1368 * linespec.c (find_methods, collect_methods): Update.
1369 (add_matching_methods, add_constructors): Update.
1370 (decode_compound, decode_dollar, decode_variable): Update.
1371 (lookup_prefix_sym): Update.
1373 (symbol_found): Remove SYM_SYMTAB parameter.
1374 Use SYMBOL_SYMTAB (sym) instead.
1376 * gdbtypes.c (lookup_typename): Update.
1377 (lookup_struct, lookup_union, lookup_enum): Update.
1378 (lookup_template_type): Update.
1379 (check_typedef): Update.
1380 * language.c (lang_bool_type): Update.
1381 * mdebugread.c (parse_procedure): Update.
1382 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1383 * parse.c (write_dollar_variable): Update.
1384 * printcmd.c (address_info): Update.
1385 * source.c (select_source_symtab): Update.
1386 * stack.c (print_frame_args, print_frame_arg_vars): Update.
1387 * valops.c (find_function_in_inferior): Update.
1388 (value_struct_elt_for_reference): Update.
1389 * value.c (value_static_field, value_fn_field): Update.
1391 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1392 * arm-tdep.c (arm_skip_prologue): Update.
1393 * mt-tdep.c (mt_skip_prologue): Update.
1394 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
1396 * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
1397 * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
1398 (add_defn_to_vec): Likewise.
1399 (ada_add_block_symbols): Likewise.
1400 (lookup_cached_symbol, cache_symbol): Likewise.
1401 (standard_lookup): Update.
1402 (ada_lookup_symbol_list): Update.
1404 * c-valprint.c (c_val_print): Update.
1405 * cp-support.c (cp_lookup_rtti_type): Update.
1406 * jv-lang.c (java_lookup_class, get_java_object_type): Update.
1407 * objc-lang.c (lookup_struct_typedef, find_imps): Update.
1408 * p-valprint.c (pascal_val_print): Update.
1409 * scm-lang.c (scm_lookup_name): Update.
1415 * objc-exp.y: Update.
1418 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
1420 * language.h (struct language_defn): Remove SYMTAB parameter from
1421 la_lookup_symbol_nonlocal callback function pointer.
1423 * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
1424 (ada_lookup_encoded_symbol): Likewise.
1425 * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
1426 Always call fixup_symbol_section.
1427 (ada_lookup_symbol): Remove SYMTAB parameter.
1428 (ada_lookup_symbol_nonlocal): Likewise.
1429 * ada-exp.y (write_object_renaming): Update.
1430 (find_primitive_type): Likewise.
1432 * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
1433 (cp_lookup_symbol_namespace): Likewise.
1434 * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
1435 (lookup_symbol_file): Likewise.
1436 (lookup_possible_namespace_symbol): Likewise.
1437 (cp_lookup_symbol_nonlocal): Likewise.
1438 (cp_lookup_symbol_namespace): Likewise.
1439 (cp_lookup_nested_type): Update.
1441 * scm-valprint.c (scm_inferior_print): Update.
1442 * valops.c (value_maybe_namespace_elt): Update.
1444 * solist.h (struct target_so_ops): Remove SYMTAB parameter from
1445 lookup_lib_global_symbol callback function pointer.
1446 (solib_global_lookup): Remove SYMTAB parameter.
1447 * solib.c (solib_global_lookup): Remove SYMTAB parameter.
1448 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
1450 * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
1451 (lookup_symbol_static): Likewise.
1452 (lookup_symbol_global): Likewise.
1453 (lookup_symbol_aux_block): Likewise.
1454 (lookup_global_symbol_from_objfile): Likewise.
1455 * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
1456 (lookup_symbol_aux_local): Likewise.
1457 (lookup_symbol_aux_block): Likewise.
1458 (lookup_symbol_aux_symtabs): Likewise.
1459 (lookup_symbol_aux_psymtabs): Likewise.
1460 (lookup_global_symbol_from_objfile): Likewise.
1461 (basic_lookup_symbol_nonlocal): Likewise.
1462 (lookup_symbol_static): Likewise.
1463 (lookup_symbol_global): Likewise.
1465 (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
1467 2008-05-17 Pedro Alves <pedro@codesourcery.com>
1469 * remote.c (init_extended_remote_ops): Fix typo.
1471 2008-05-16 Pedro Alves <pedro@codesourcery.com>
1473 * NEWS: Mention new DICOS x86 target configuration.
1475 2008-05-16 Pedro Alves <pedro@codesourcery.com>
1476 Ulrich Weigand <uweigand@de.ibm.com>
1478 * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
1479 * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
1481 * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
1482 use it instead of ginfo->value.address. Look up minimal symbol by
1483 address and name. Assume OBJFILE is non-NULL.
1484 (fixup_symbol_section): Ensure we always have an objfile to look
1485 into. Extract and pass to fixup_section the symbol's address that
1486 will match the minimal symbol's address.
1487 (fixup_psymbol_section): Likewise.
1489 (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
1490 overlays and the addrmap returned the wrong section.
1492 * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
1493 calling fixup_symbol_section.
1495 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
1497 * minsyms.c: Include "target.h".
1498 (find_solib_trampoline_target): Handle minimal symbols pointing
1499 to function descriptors as well.
1500 * Makefile.in (minsyms.o): Update dependencies.
1502 * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
1503 (ppc64_standard_linkage1): ... this. Fix optional instructions.
1504 (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
1505 (PPC64_STANDARD_LINKAGE1_LEN): ... this.
1506 (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
1507 (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
1508 (ppc64_standard_linkage_target): Rename to ...
1509 (ppc64_standard_linkage1_target): ... this.
1510 (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
1511 (ppc64_skip_trampoline_code): Support three variants of standard
1512 linkage stubs. Call find_solib_trampoline_target to handle
1515 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
1517 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
1518 ppc64_sysv_abi_adjust_breakpoint_address.
1519 * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
1520 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
1522 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
1524 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
1525 (ppc_linux_init_abi): Install find_solib_trampoline_target instead
1526 of ppc_linux_skip_trampoline_code.
1528 2008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
1530 * gdbarch.sh: Delete dwarf_reg_to_regnum.
1531 * gdbarch.c, gdbarch.h: Regenerated.
1532 * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
1533 hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
1534 s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
1536 2008-05-15 Pedro Alves <pedro@codesourcery.com>
1538 * linux-nat.c (trap_ptid): Delete.
1539 (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
1541 * linux-thread-db.c (thread_db_wait): Adjust.
1543 2008-05-15 Joel Brobecker <brobecker@adacore.com>
1545 * linespec.c (decode_line_1): Fix a couple of comments.
1547 2008-05-15 Alan Modra <amodra@bigpond.net.au>
1549 * dbxread.c: Formatting.
1550 (INTERNALIZE_SYMBOL): Init n_other.
1551 (set_namestring): Take pointer to nlist arg rather than struct
1552 copy. Update all callers.
1554 2008-05-15 Andreas Schwab <schwab@suse.de>
1556 * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
1557 (dwarf2read.o): Add $(addrmap_h).
1559 2008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
1561 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
1562 (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
1563 to handle ppc32 PLT entries.
1564 (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
1567 2008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
1569 * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
1570 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
1571 lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
1572 (lookup_minimal_symbol_by_pc_section): Use
1573 lookup_minimal_symbol_by_pc_section_1.
1574 (lookup_solib_trampoline_symbol_by_pc): Likewise.
1576 2008-05-13 Joel Brobecker <brobecker@adacore.com>
1578 * findcmd.c: Add #include "gdb_stdint.h".
1579 * Makefile.in (findcmd.o): Update dependencies.
1581 2008-05-11 David S. Miller <davem@davemloft.net>
1583 * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
1584 long double size override, Linux does use 128-bit now.
1586 * sparc-linux-tdep.c (PSR_SYSCALL): Define.
1587 (sparc_linux_write_pc): New function.
1588 (sparc32_linux_init_abi): Register it.
1589 * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
1590 (sparc64_linux_write_pc): New function.
1591 (sparc64_linux_init_abi): Register it.
1593 * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
1594 dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
1596 2008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
1598 * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
1599 and info.tdep_info before calling gdbarch_init_osabi.
1601 2008-05-09 Joel Brobecker <brobecker@adacore.com>
1603 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
1604 the type of the right hand side of the assignment to the type
1605 of the left hand side if the left hand side is a convenience
1608 2008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
1610 * NEWS: Mention gdbserver bi-arch capability.
1612 2008-05-09 Doug Evans <dje@google.com>
1615 * NEWS: Document find command and qSearch:memory packet.
1616 * Makefile.in (SFILES): Add findcmd.c.
1617 (COMMON_OBJS): Add findcmd.o.
1618 (findcmd.o): New rule.
1619 * findcmd.c: New file.
1620 * target.h (target_ops): New member to_search_memory.
1621 (simple_search_memory): Declare.
1622 (target_search_memory): Declare.
1623 * target.c (simple_search_memory): New fn.
1624 (target_search_memory): New fn.
1625 * remote.c (PACKET_qSearch_memory): New packet kind.
1626 (remote_search_memory): New fn.
1627 (init_remote_ops): Init to_search_memory.
1628 (init_extended_remote_ops): Ditto.
1629 (_initialize_remote): Add qSearch:memory packet config command.
1631 2008-05-09 Eli Zaretskii <eliz@gnu.org>
1633 * thread.c (_initialize_thread): Don't use commas and periods in
1634 first line of doc string of "set/show print thread-events".
1636 2008-05-08 Joel Brobecker <brobecker@adacore.com>
1638 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
1639 Update for unwinder changes.
1641 2008-05-08 Joel Brobecker <brobecker@adacore.com>
1643 * frame.c (get_frame_base_address, get_frame_locals_address)
1644 (get_frame_args_address): Pass the correct frame when calling
1645 frame_base_find_by_frame.
1647 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
1649 * remote.c (extended_remote_attach_1): Call target_find_description.
1651 2008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
1653 * remote.c (extended_remote_create_inferior_1): Clean up
1654 before marking the target running.
1656 2008-05-08 Joel Brobecker <brobecker@adacore.com>
1658 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
1661 2008-05-07 Joel Brobecker <brobecker@adacore.com>
1663 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
1664 sparc64-sol2-tdep.c: Update for unwinder changes.
1666 2008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
1668 * cp-support.c (mangled_name_to_comp): Initialize storage.
1669 (unqualified_name_from_comp): Likewise.
1671 2008-05-07 Jie Zhang <jie.zhang@analog.com>
1673 * remote.c (remote_insert_breakpoint): Call get_remote_state
1674 after gdbarch_breakpoint_from_pc is called.
1675 (remote_insert_hw_breakpoint): Likewise.
1677 2008-05-06 Joel Brobecker <brobecker@adacore.com>
1679 * valprint.c (val_print): Add new language parameter and use it
1680 instead of using the current_language. Update calls to val_print
1682 (common_val_print): Add new langauge parameter and pass it to
1684 * value.h (struct language_defn): Add opaque declaration.
1685 (val_print, common_val_print): Update declarations.
1686 * stack.c (print_frame_args): Update call to common_val_print
1687 using the appropriate language.
1688 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
1689 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
1690 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
1691 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
1692 #include "language.h" if necessary.
1693 Update calls to val_print and common_val_print.
1694 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
1695 Update dependencies.
1697 2008-05-06 Joel Brobecker <brobecker@adacore.com>
1699 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
1700 pointing inside a non-executable section as function descriptors.
1702 2008-05-06 Pedro Alves <pedro@codesourcery.com>
1704 * inf-loop.c (inferior_event_handler): Run all continuations and
1705 print any language change before running the breakpoint commands.
1707 2008-05-06 Joel Brobecker <brobecker@adacore.com>
1709 * frame-unwind.c (frame_unwind_got_bytes): New function.
1710 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
1711 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
1712 for unwinder changes.
1714 2008-05-05 Doug Evans <dje@google.com>
1716 * NEWS: Mention new /m modifier for disassemble command.
1717 * cli/cli-cmds.c (print_disassembly): New function.
1718 (disassemble_current_function): New function
1719 (disassemble_command): Recognize /m modifier, print mixed
1721 (init_cli_cmds): Update disassemble help text.
1723 2008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
1725 * xtensa-tdep.c: Update for unwinder changes.
1727 2008-05-05 Andreas Schwab <schwab@suse.de>
1729 Update m68k port for unwinder changes.
1730 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
1731 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
1732 (m68k_frame_unwind): Use default_frame_sniffer.
1733 (m68k_frame_sniffer): Remove.
1734 (m68k_frame_base_address): Expect this_frame.
1735 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
1737 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
1738 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
1739 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
1740 parameter instead of pc value.
1741 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
1743 (m68k_linux_sigtramp_frame_this_id)
1744 (m68k_linux_sigtramp_frame_prev_register)
1745 (m68k_linux_sigtramp_frame_sniffer): Update signature.
1746 (m68k_linux_sigtramp_frame_unwind): Use
1747 m68k_linux_sigtramp_frame_sniffer.
1748 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
1750 * m68klinux-nat.c (store_register): Fix typo.
1752 2008-05-05 Pedro Alves <pedro@codesourcery.com>
1754 * infcmd.c (step_1): Put thread id on the stack to avoid possible
1757 2008-05-05 Luis Machado <luisgpm@br.ibm.com>
1759 * symfile.c (reread_symbols): Update objfile's entry point.
1761 2008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
1762 Joel Brobecker <brobecker@adacore.com>
1764 * ada-lang.c: Update throughout to use symbol_matches_domain
1765 instead of matching the symbol domain explictly.
1766 * dwarf2read.c (add_partial_symbol): Do not add new psym for
1767 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
1768 class as typedefs. See lookup_partial_symbol function.
1769 (new_symbol): Similar to add_partial_symbol, do not create
1770 symbol for the typedef. See lookup_block_symbol.
1771 * symtab.c (symbol_matches_domain): New function, takes care
1772 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
1773 (lookup_partial_symbol): Use symbol_matches_domain to see if the
1774 found psym domain matches the given domain.
1775 (lookup_block_symbol): Likewise.
1777 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
1779 * top.c (command_line_handler_continuation): Remove.
1780 (execute_command): Do not install the above.
1782 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
1784 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
1785 and catch all exceptions from it.
1786 * top.c (command_line_handler_continuation): Don't
1787 call bpstat_do_action here.
1789 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
1791 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
1792 (struct die_info): Remove type.
1793 (read_type_die, read_typedef, read_base_type, read_subrange_type)
1794 (read_structure_type, read_enumeration_type, read_array_type)
1795 (read_tag_pointer_type, read_tag_ptr_to_member_type)
1796 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
1797 (read_tag_string_type, read_subroutine_type, read_set_type)
1798 (read_unspecified_type): Delete prototypes. Remove check for
1799 already-loaded type. Return the new type.
1800 (set_die_type): Return the new type.
1801 (reset_die_and_siblings_types): Delete.
1802 (load_comp_unit, load_full_comp_unit): Set type_hash.
1803 (process_queue): Remove call to reset_die_and_siblings_types.
1804 (process_die): Do not read most types here. Use read_type_die
1806 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
1807 (quirk_gcc_member_function_pointer): Return the new type.
1808 (process_structure_scope, process_enumeration_scope): Use
1809 get_die_type and read the DIE's type.
1810 (read_full_die): Do not initialize die->type.
1811 (tag_type_to_type): Use read_type_die.
1812 (read_type_die): Check for already defined types. Return the
1814 (determine_prefix): Use get_die_type.
1815 (set_die_type): Return the type.
1816 (get_die_type): Take a CU argument. Check for no type_hash.
1818 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
1820 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
1823 2008-05-04 Pedro Alves <pedro@codesourcery.com>
1825 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
1826 and bp_longjmp_resume breakpoints.
1827 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
1829 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
1830 breakpoints. Create bp_longjmp breakpoints as momentary
1832 (enable_longjmp_breakpoint): Delete.
1833 (set_longjmp_breakpoint): New.
1834 (disable_longjmp_breakpoint): Delete.
1835 (delete_longjmp_breakpoint): New.
1836 (set_longjmp_resume_breakpoint): Delete.
1837 (set_momentary_breakpoint_at_pc): New.
1838 (breakpoint_re_set_one): Don't delete bp_longjmp and
1839 bp_longjmp_resume breakpoints.
1840 (breakpoint_re_set): Don't create longjmp and longjmp-resume
1843 * infrun.c (step_resume_breakpoint): Add comment.
1844 (struct execution_control_state): Delete handling_longjmp member.
1845 (init_execution_control_state). Don't clear handling_longjmp.
1846 (context_switch): Don't context switch handling_longjmp.
1847 (handle_inferior_event): If handling a bp_longjmp breakpoint,
1848 create a bp_longjmp_resume breakpoint, and set it as current
1849 step_resume_breakpoint, then step over the longjmp breakpoint. If
1850 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
1851 breakpoint, delete the longjmp-resume breakpoint, and stop
1853 (currently_stepping): Remove handling_longjmp from expression.
1854 (insert_step_resume_breakpoint_at_sal): Update comment.
1855 (insert_longjmp_resume_breakpoint): New.
1857 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
1858 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
1860 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
1861 (set_longjmp_resume_breakpoint): Delete declaration.
1863 * gdbthread.h (save_infrun_state): Remove handling_longjmp
1865 (load_infrun_state): Delete *handling_longjmp parameter.
1866 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
1868 (load_infrun_state): Delete *handling_longjmp parameter. Update
1871 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
1872 (delete_longjmp_breakpoint_cleanup): New.
1873 (step_1): Call set_longjmp_breakpoint instead of
1874 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
1875 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
1876 (step_1_continuation): Pass thread id in the continuation args to
1878 (step_once): Add thread parameter. Pass thread id the the
1881 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1883 Set CU BASE_ADDRESS already from partial DIEs.
1884 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
1885 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
1886 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
1887 from these variables if it was still unset.
1889 * Makefile.in: Update dependencies.
1890 * dwarf2read.c: Include "addrmap.h"
1891 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
1892 (dwarf2_ranges_read): New prototype.
1893 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
1894 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
1895 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
1896 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
1897 comment for it. Add the found ranges to RANGES_PST. New variable
1898 BASEADDR, initialize it the common way.
1899 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
1900 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
1901 HAS_RANGES_OFFSET for the later processing.
1902 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
1903 * symtab.c: Include "addrmap.h"
1904 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
1905 Move the psymtab locator into ...
1906 (find_pc_sect_psymtab_closer): ... a new function.
1908 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
1910 * arch-utils.c (gdbarch_update_p): Use default values for
1911 info.abfd and info.target_desc if they are NULL.
1912 (gdbarch_from_bfd): Remove assertion.
1913 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
1914 using the current target description.
1915 (gdbarch_info_fill): Do not use default values for info->abfd
1916 and info->target_desc.
1918 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1920 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
1922 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
1924 * inferior.h (read_pc_pid, write_pc_pid): Remove.
1925 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
1927 * regcache.c (read_pc_pid): Remove, replace by ...
1928 (regcache_read_pc): ... this function.
1929 (write_pc_pid): Remove, replace by ...
1930 (regcache_write_pc): ... this function.
1931 (read_pc, write_pc): Update.
1933 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
1934 write_pc_pid by regcache_read_pc and regcache_write_pc.
1935 (displaced_step_fixup): Likewise.
1936 (resume): Likewise. Use regcache arch instead of current_gdbarch.
1937 (prepare_to_proceed): Likewise.
1938 (proceed): Likewise.
1939 (adjust_pc_after_break): Likewise.
1940 (handle_inferior_event): Likewise.
1942 * linux-nat.c (cancel_breakpoint): Likewise.
1943 * linux-thread-db.c (check_event): Likewise.
1944 * aix-thread.c (aix_thread_wait): Likewise.
1945 * tracepoint.c (trace_dump_command): Likewise.
1947 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1949 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
1950 SYMBOL_LOCATION_BATON.
1952 2008-05-04 Vladimir Prus <vladimir@codesourcery.com>
1954 * target.h (struct target_ops): New field to_auxv_parse.
1955 * auxv.c (default_auxv_parse): New, renamed from previous
1957 (target_auxv_parse): Try to call target method. Fallback to
1958 default_auxv_parse if not found.
1959 * procfs.c (procfs_auxv_parse): New.
1960 (init_procfs_ops): On Solaris, in 64-bit mode, install
1963 2008-05-03 Adam Nemet <anemet@caviumnetworks.com>
1965 * symfile.c (add_symbol_file_command): Use paddress rather than
1966 hex_string to print the address.
1968 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
1970 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
1971 return the null frame ID to terminate the backtrace.
1973 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
1975 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
1976 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
1977 (SIG_FRAME_PC_OFFSET): Likewise.
1978 (SIG_FRAME_LR_OFFSET): Likewise.
1979 (SIG_FRAME_FP_OFFSET): Likewise.
1980 (rs6000_push_dummy_call): Likewise.
1981 (rs6000_return_value): Likewise.
1982 (rs6000_convert_from_func_ptr_addr): Likewise.
1983 (branch_dest, rs6000_software_single_step): Likewise.
1984 (deal_with_atomic_sequence): Rename to ...
1985 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
1986 Do not call branch_dest; inline required parts of that function.
1987 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
1988 with SYMBOL_LINKAGE_NAME.
1989 (struct reg, regsize): Delete.
1990 (read_memory_addr): Delete; inline into callers.
1991 (rs6000_skip_prologue): Move after skip_prologue.
1992 (skip_prologue): Remove prototype.
1993 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
1994 initialization as if this variable were true. Do not install
1995 ppc64_sysv_abi_adjust_breakpoint_address.
1997 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
1998 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
2000 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
2001 (SIG_FRAME_PC_OFFSET): Likewise.
2002 (SIG_FRAME_LR_OFFSET): Likewise.
2003 (SIG_FRAME_FP_OFFSET): Likewise.
2004 (rs6000_push_dummy_call): Likewise.
2005 (rs6000_return_value): Likewise.
2006 (rs6000_convert_from_func_ptr_addr): Likewise.
2007 (branch_dest, rs6000_software_single_step): Likewise. Replace
2008 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
2009 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
2010 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
2011 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
2012 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
2014 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
2015 (AIX_TEXT_SEGMENT_BASE): New macro.
2016 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
2017 by AIX_TEXT_SEGMENT_BASE.
2019 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
2020 (struct gdbarch_tdep): Remove text_segment_base member.
2021 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
2022 ppc64_sysv_abi_adjust_breakpoint_address.
2024 * Makefile.in (rs6000-tdep.o): Update dependencies.
2025 (rs6000-aix-tdep.o): Likewise.
2027 2008-05-03 Luis Machado <luisgpm@br.ibm.com>
2028 Thiago Jung Bauermann <bauerman@br.ibm.com>
2030 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
2031 * doublest.c (convert_typed_floating): Fix typo in comment.
2032 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
2033 * frame-unwind.h (frame_sniffer_ftype): Likewise.
2034 * frame.c (frame_unwind_address_in_block): Likewise.
2035 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
2036 * symtab.h (struct symbol): Likewise.
2037 * tramp-frame.h (struct trad_frame_cache): Likewise.
2038 * value.c (allocate_repeat_value): Likewise.
2040 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
2042 * infrun.c (handle_inferior_event): Do not insert breakpoints at
2043 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
2045 2008-05-03 Pedro Alves <pedro@codesourcery.com>
2047 * parse.c (parse_exp_in_context): Don't override
2048 expression_context_pc if get_selected_block returned a valid
2051 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
2053 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
2054 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
2055 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
2057 * c-typeprint.c (c_type_print_base): Delete handling of template
2059 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
2060 (METHOD_PTR_TO_VOFFSET): Delete.
2061 * defs.h (QUIT_FIXME): Delete.
2062 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
2063 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
2064 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
2065 ninstantiations, and instantiations.
2066 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
2067 (TYPE_FN_FIELD_INLINED): Delete.
2068 * srec.h (SREC_BINARY): Delete.
2069 * symtab.c (symbol_init_demangled_name): Delete.
2070 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
2071 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
2072 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
2073 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
2074 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
2075 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
2076 * target.h (enum thread_control_capabilities): Delete tc_switch.
2077 (target_can_switch_threads): Delete.
2079 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
2081 * Makefile.in (objfiles.o): Update.
2082 * exec.c (exec_set_section_address): Support p->addr != 0.
2083 * objfiles.c (objfile_relocate): Update exec_ops section
2085 * symfile.c (place_section): Move exec_set_section_address call...
2086 (default_symfile_offsets): ...to here.
2088 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
2090 * Makefile.in (ppc_linux_tdep_h): New macro.
2091 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
2092 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
2093 (powerpc_e500l_c): Likewise.
2094 (ppc-linux-nat.o): Update dependencies.
2095 (ppc-linux-tdep.o): Update dependencies.
2096 (rs6000-tdep.o): Update dependencies.
2098 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
2099 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
2100 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
2101 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
2102 (tdesc_powerpc_e500): Remove.
2104 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
2105 and "features/rs6000/powerpc-altivec64.c".
2106 (ppc_supply_reg, ppc_collect_reg): Make global.
2107 (variants): Use tdesc_powerpc_32 for "powerpc" and
2108 tdesc_powerpc_altivec64 for "powerpc64".
2109 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
2111 * ppc-linux-tdep.h: New file.
2113 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
2114 Include "features/rs6000/powerpc-32l.c".
2115 Include "features/rs6000/powerpc-altivec32l.c".
2116 Include "features/rs6000/powerpc-64l.c".
2117 Include "features/rs6000/powerpc-altivec64l.c".
2118 Include "features/rs6000/powerpc-e500l.c".
2119 (ppc_linux_supply_gregset): New function.
2120 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
2121 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
2122 (ppc64_linux_gregset): Likewise.
2123 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
2124 (ppc_linux_trap_reg_p): New function.
2125 (ppc_linux_write_pc): New function.
2126 (ppc_linux_core_read_description): New function.
2127 (ppc_linux_init_abi): Install ppc_linux_write_pc and
2128 ppc_linux_core_read_description. Install orig_r3 and trap
2129 registers if present in the target description.
2130 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
2132 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
2133 (PT_ORIG_R3, PT_TRAP): Define if necessary.
2134 (ppc_register_u_addr): Handle orig_r3 and trap registers.
2135 (fetch_ppc_registers): Likewise.
2136 (store_ppc_registers): Likewise.
2137 (store_register): Likewise.
2138 (ppc_linux_read_description): Check whether AltiVec is supported.
2139 Check whether inferior is 32-bit or 64-bit. Return the appropriate
2140 Linux target description.
2142 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
2143 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
2144 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
2145 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
2146 rs6000/powerpc-e500. Update -expedite variables accordingly.
2148 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
2149 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
2150 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
2151 * features/rs6000/powerpc-e500.c: Regenerate.
2152 * features/rs6000/powerpc-32.c: Regenerate.
2153 * features/rs6000/powerpc-64.c: Regenerate.
2155 * features/rs6000/power-linux.xml: New file.
2156 * features/rs6000/power64-linux.xml: New file.
2157 * features/rs6000/powerpc-32l.xml: New file.
2158 * features/rs6000/powerpc-altivec32l.xml: New file.
2159 * features/rs6000/powerpc-64l.xml: New file.
2160 * features/rs6000/powerpc-altivec64l.xml: New file.
2161 * features/rs6000/powerpc-e500l.xml: New file.
2162 * features/rs6000/powerpc-32l.c: New (generated) file.
2163 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
2164 * features/rs6000/powerpc-64l.c: New (generated) file.
2165 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
2166 * features/rs6000/powerpc-e500l.xml: New (generated) file.
2168 * regformats/reg-ppc.dat: Remove.
2169 * regformats/reg-ppc64.dat: Remove.
2170 * regformats/rs6000/powerpc-32.dat: Remove.
2171 * regformats/rs6000/powerpc-64.dat: Remove.
2172 * regformats/rs6000/powerpc-e500.dat: Remove.
2173 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
2174 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
2175 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
2176 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
2177 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
2179 2008-05-03 Pedro Alves <pedro@codesourcery.com>
2181 * thread.c (delete_thread): Call observer_notify_thread_exit.
2182 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
2183 thread_exit observer.
2184 (mi_thread_exit): New.
2186 2008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
2188 * breakpoint.c (create_exception_catchpoint): Remove prototype
2189 for already deleted function.
2190 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
2191 * frame.h (show_stack_frame): Remove prototype.
2192 * stack.c (show_stack_frame): Remove empty, unused function.
2193 * source.c (symtab_to_fullname, print_source_lines): Small fix
2195 * value.c (show_values): Update comments to mention "show values"
2196 command instead of "info history".
2198 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
2200 * linespec.c: Include "target.h".
2201 (minsym_found): Handle minimal symbols pointing to function
2202 descriptors. Use find_function_start_pc.
2203 * minsyms.c (msymbol_objfile): New function.
2204 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
2205 to function descriptors.
2206 * symtab.c (fixup_section): Only use minimal symbol at the same
2207 address to determine section of a symbol.
2208 (find_function_start_pc): New function.
2209 (find_function_start_sal): Use it.
2210 * symtab.h (msymbol_objfile): Add prototype.
2211 (find_function_start_pc): Likewise.
2212 * value.c: Include "objfiles.h".
2213 (value_fn_field): Handle minimal symbols pointing to function
2215 * Makefile.in (linespec.o): Update dependencies.
2216 (value.o): Likewise.
2218 2008-05-02 Joel Brobecker <brobecker@adacore.com>
2220 * ada-lang.c (unwrap_value): Handle the case where the "F" field
2221 inside a PAD type is a bitfield.
2223 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
2225 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
2226 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
2227 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
2228 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
2229 Allow typedefs when checking for function pointer arguments.
2230 Right-align small structs passed on the stack.
2231 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
2232 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
2233 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
2235 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
2237 * Makefile.in (arm-tdep.o): Update.
2238 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
2239 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
2240 (arm_pc_is_thumb): Use mapping symbols.
2241 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
2242 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
2243 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
2244 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
2245 * gdbarch.sh: Add record_special_symbol.
2246 * gdbarch.c, gdbarch.h: Regenerated.
2247 * objfiles.c (struct objfile_data): Add cleanup member.
2248 (register_objfile_data_with_cleanup): New function, from
2249 register_objfile_data.
2250 (register_objfile_data): Use it.
2251 (objfile_free_data): Call clear_objfile_data.
2252 (clear_objfile_data): Call cleanup functions.
2253 * objfiles.h (register_objfile_data_with_cleanup): Declare.
2255 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
2257 * objfiles.c (init_entry_point_info): Handle shared libraries.
2259 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
2261 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
2264 2008-05-02 Jim Blandy <jimb@codesourcery.com>
2265 Pedro Alves <pedro@codesourcery.com>
2267 Implement displaced stepping.
2269 * gdbarch.sh (max_insn_length): New 'variable'.
2270 (displaced_step_copy, displaced_step_fixup)
2271 (displaced_step_free_closure, displaced_step_location): New
2273 (struct displaced_step_closure): Add forward declaration.
2274 * gdbarch.c, gdbarch.h: Regenerated.
2276 * arch-utils.c: #include "objfiles.h".
2277 (simple_displaced_step_copy_insn)
2278 (simple_displaced_step_free_closure)
2279 (displaced_step_at_entry_point): New functions.
2280 * arch-utils.h (simple_displaced_step_copy_insn)
2281 (simple_displaced_step_free_closure)
2282 (displaced_step_at_entry_point): New prototypes.
2284 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
2285 (I386_MAX_MATCHED_INSN_LEN): ... this.
2286 (i386_absolute_jmp_p, i386_absolute_call_p)
2287 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
2288 (i386_displaced_step_fixup): New functions.
2289 (struct i386_insn, i386_match_insn): Update.
2290 (i386_gdbarch_init): Set gdbarch_max_insn_length.
2291 * i386-tdep.h (I386_MAX_INSN_LEN): New.
2292 (i386_displaced_step_fixup): New prototype.
2293 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
2294 Register gdbarch_displaced_step_copy,
2295 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
2296 and gdbarch_displaced_step_location functions.
2298 * infrun.c (debug_displaced): New variable.
2299 (show_debug_displaced): New function.
2300 (struct displaced_step_request): New struct.
2301 (displaced_step_request_queue, displaced_step_ptid)
2302 (displaced_step_gdbarch, displaced_step_closure)
2303 (displaced_step_original, displaced_step_copy)
2304 (displaced_step_saved_copy, can_use_displaced_stepping): New
2306 (show_can_use_displaced_stepping, use_displaced_stepping)
2307 (displaced_step_clear, cleanup_displaced_step_closure)
2308 (displaced_step_dump_bytes, displaced_step_prepare)
2309 (displaced_step_clear_cleanup, write_memory_ptid)
2310 (displaced_step_fixup): New functions.
2311 (resume): Call displaced_step_prepare.
2312 (proceed): Call read_pc once, and remember the value. If using
2313 displaced stepping, don't remove breakpoints.
2314 (handle_inferior_event): Call displaced_step_fixup. Add some
2315 debugging output. When we try to step over a breakpoint, but get
2316 a signal to deliver to the thread instead, ensure the step-resume
2317 breakpoint is actually inserted. If a thread hop is needed, and
2318 displaced stepping is enabled, don't remove breakpoints.
2319 (init_wait_for_inferior): Call displaced_step_clear.
2320 (_initialize_infrun): Add "set debug displaced" command. Add
2321 "maint set can-use-displaced-stepping" command. Clear
2322 displaced_step_ptid.
2323 * inferior.h (debug_displaced): Declare variable.
2324 (displaced_step_dump_bytes): Declare function.
2326 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
2329 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
2331 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
2332 (arm_force_mode_string, arm_show_fallback_mode)
2333 (arm_show_force_mode): New.
2334 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
2336 (_initialize_arm_tdep): Add "set arm fallback-mode"
2337 and "set arm force-mode".
2338 * NEWS: Document new commands.
2340 2008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
2342 * main.h (batch_silent): Declare.
2343 * event-top.c: Include main.h.
2344 (gdb_setup_readline): Remove extern batch_silent declaration.
2345 * infrun.c (normal_stop): Don't print source location when running in
2346 --batch-silent mode.
2347 * Makefile.in (event-top.o): Add main.h dependency.
2349 2008-05-02 Andreas Schwab <schwab@suse.de>
2351 * target.h (struct target_ops): Add
2352 to_watchpoint_addr_within_range.
2353 (target_watchpoint_addr_within_range): New function.
2354 * target.c (update_current_target): Inherit
2355 to_watchpoint_addr_within_range, defaulting to
2356 default_watchpoint_addr_within_range.
2357 (default_watchpoint_addr_within_range): New function.
2358 (debug_to_watchpoint_addr_within_range): New function.
2359 (setup_target_debug): Set to_watchpoint_addr_within_range.
2360 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
2362 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
2363 * breakpoint.c (watchpoints_triggered): Use
2364 target_watchpoint_addr_within_range.
2366 2008-05-01 Pedro Alves <pedro@codesourcery.com>
2368 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
2369 (i[34567]86-*-dicos*, x86_64-*-dicos*):
2370 Set gdb_osabi to GDB_OSABI_DICOS.
2372 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
2373 * osabi.c (gdb_osabi_name): Add "DICOS".
2375 * i386-dicos-tdep.c: New file.
2377 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
2378 (ALLDEPFILES): Add i386-dicos-tdep.c.
2379 (i386-dicos-tdep.o): New rule.
2381 2008-05-01 Pedro Alves <pedro@codesourcery.com>
2383 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
2384 and register the fork's PTID as a thread.
2386 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
2389 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
2390 assign its value to the breakpoint created.
2391 (create_breakpoints): Add breakpoint_ops argument and pass it
2392 to create_breakpoint call.
2393 (break_command_really): Add breakpoint_ops argument and pass/assign
2395 (break_command_1): Pass NULL as ops argument.
2396 (set_breakpoint): Pass NULL as ops argument.
2397 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
2398 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
2399 catch and throw catchpoints.
2401 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
2404 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
2405 translate signal numeric value from the target to GDB's enum
2407 * gdbarch.c, gdbarch.h: Regenerated.
2408 * gdbarch.sh: Added two new functions target_signal_from_host and
2409 target_signal_to_host.
2410 * target.h (default_target_signal_from_host,
2411 default_target_signal_to_host): New functions - declarations.
2412 * signals/signals.c (struct gdbarch): New declaration.
2413 (default_target_signal_to_host, default_target_signal_from_host): New
2416 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
2417 Pedro Alves <pedro@codesourcery.com>
2419 Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff
2420 Johnston <jjohnstn@redhat.com>.
2422 * NEWS: Mention attach to stopped process fix.
2423 * infcmd.c (detach_command, disconnect_command): Discard the thread
2425 * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
2426 attaching. Use signal_stop_state.
2427 (signal_stop_state): Check stop_soon.
2428 * linux-nat.c (kill_lwp): Declare earlier.
2429 (pid_is_stopped, linux_nat_post_attach_wait): New.
2430 (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update
2432 (linux_nat_attach): Use linux_nat_post_attach_wait.
2433 (detach_callback, linux_nat_detach): Improve handling for signalled
2435 (linux_nat_pid_to_str): Always print out the LWP ID if it differs
2436 from the process ID.
2437 * Makefile.in (infcmd.o): Update.
2439 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
2441 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
2442 * arm-tdep.c (arm_frame_is_thumb): New.
2443 (arm_pc_is_thumb): Clarify comment.
2444 (thumb_analyze_prologue): Remove PC special case.
2445 (thumb_scan_prologue): Take a block_addr argument. Use it for
2446 find_pc_partial_function. Remove unused variables.
2447 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
2448 for find_pc_partial_function. Remove PC special case.
2449 (arm_prologue_prev_register): Add special handling for PC and CPSR.
2450 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
2451 (arm_get_next_pc): Use arm_frame_is_thumb.
2452 (arm_write_pc): Use CPSR_T instead of 0x20.
2453 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
2454 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
2456 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
2457 DWARF2_FRAME_REG_FN.
2458 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
2459 DWARF2_FRAME_REG_FN.
2460 (struct dwarf2_frame_state_reg): Add FN to loc union.
2462 2008-05-01 Nick Roberts <nickrob@snap.net.nz>
2464 * exec.c (print_section_info): Add missing '\n'.
2466 2008-05-01 Vladimir Prus <vladimir@codesourcery.com>
2468 * thread.c (add_thread): Move observer call to ...
2469 (add_thread_silent): ... here.
2471 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
2473 * rs6000-tdep.c: Update for unwinder changes.
2474 * ppcobsd-tdep.c: Likewise.
2476 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
2478 * s390-tdep.c: Update for unwinder changes.
2480 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
2482 * spu-tdep.c: Update for unwinder changes.
2484 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2486 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
2487 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
2488 sparc64-linux-tdep.c: Update for unwinder changes.
2490 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2492 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
2493 for unwinder changes.
2494 * mips-tdep.c: Likewise.
2495 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
2498 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2500 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
2503 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2505 Update i386 and amd64 ports for unwinder changes.
2507 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
2508 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
2509 (amd64_frame_unwind): Use default_frame_sniffer.
2510 (amd64_frame_sniffer): Delete.
2511 (amd64_sigtramp_frame_cache): Expect this_frame.
2512 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
2513 (amd64_sigtramp_frame_sniffer): Update signature.
2514 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
2515 (amd64_frame_base_address): Expect this_frame.
2516 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
2518 (amd64_init_abi): Use set_gdbarch_dummy_id and
2519 frame_unwind_append_unwinder.
2520 * i386-tdep.c (i386_frame_cache): Expect this_frame.
2521 (i386_frame_this_id, i386_frame_prev_register): Update signature.
2522 (i386_frame_unwind): Use default_frame_sniffer.
2523 (i386_frame_sniffer): Delete.
2524 (i386_sigtramp_frame_cache): Expect this_frame.
2525 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
2526 (i386_sigtramp_frame_sniffer): Update signature.
2527 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
2528 (i386_frame_base_address): Update signature.
2529 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
2530 (i386_push_dummy_call): Update comment.
2531 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
2533 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
2534 and frame_unwind_append_unwinder.
2535 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
2536 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
2537 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
2538 i386nbsd-tdep.c: Update for unwinder changes.
2540 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2542 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
2543 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
2545 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
2546 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
2547 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
2549 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
2551 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
2553 * tramp-frame.h (struct tramp_frame): Update signature of init.
2554 * Makefile.in (trad-frame.o): Update.
2556 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2558 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
2559 (execute_stack_op): Put this_frame in the baton.
2560 (execute_cfa_program): Take this_frame.
2561 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
2562 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
2563 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
2564 (dwarf2_frame_this_id): Adjust to work on this_frame.
2565 (dwarf2_signal_frame_this_id): Delete.
2566 (dwarf2_frame_prev_register): Update signature. Use new frame
2568 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
2569 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
2570 dwarf2_frame_sniffer.
2571 (dwarf2_append_unwinders): New.
2572 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
2574 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
2575 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
2576 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
2577 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
2578 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
2579 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
2580 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
2581 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
2582 (dwarf2_append_unwinders): Declare.
2583 (dwarf2_frame_base_sniffer): Update declaration.
2584 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
2587 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2589 Convert frame unwinders to use the current frame and
2592 * frame.c (frame_debug): Make global.
2593 (get_frame_id): Pass this frame to unwinder routines.
2594 (frame_pc_unwind): Remove unused unwind->prev_pc support.
2595 (do_frame_register_read): Do not discard the return value of
2596 frame_register_read.
2597 (frame_register_unwind): Remove debug messages. Use
2598 frame_unwind_register_value.
2599 (frame_unwind_register_value, get_frame_register_value): New
2601 (create_new_frame, get_frame_base_address, get_frame_locals_address)
2602 (get_frame_args_address, get_frame_type): Pass this frame to
2604 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
2606 * frame.h: Update comments.
2607 (frame_debug, frame_unwind_register_value, get_frame_register_value)
2608 (frame_prepare_for_sniffer): Declare.
2609 * frame-unwind.h: Update comments and parameter names.
2610 (default_frame_sniffer): Declare.
2611 (frame_prev_register_ftype): Return a struct value *.
2612 (struct frame_unwind): Remove prev_pc member.
2613 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
2614 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
2615 (frame_unwind_got_register, frame_unwind_got_memory)
2616 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
2617 * frame-base.h: Update comments and parameter names.
2618 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
2619 if necessary. Add debugging output.
2620 * sentinel-frame.c (sentinel_frame_prev_register)
2621 (sentinel_frame_this_id): Update for new signature.
2622 (sentinel_frame_prev_pc): Delete.
2623 (sentinel_frame_unwinder): Remove prev_pc.
2624 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
2626 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
2627 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
2628 (frame_unwind_append_sniffer): Delete.
2629 (frame_unwind_append_unwinder): New function.
2630 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
2631 from unwinders. Use frame_prepare_for_sniffer.
2632 (default_frame_sniffer, frame_unwind_got_optimized)
2633 (frame_unwind_got_register, frame_unwind_got_memory)
2634 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
2635 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
2636 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
2638 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
2639 * gdbarch.c, gdbarch.c: Regenerated.
2640 * frame-base.c (default_frame_base_address)
2641 (default_frame_locals_address, default_frame_args_address): Update
2643 (frame_base_find_by_frame): Pass this frame to unwinder routines.
2644 * infcall.c (call_function_by_hand): Update comments.
2645 * Makefile.in (frame-unwind.o): Update dependencies.
2647 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2649 * ada-lang.c (ada_value_primitive_packed_val): Only check
2650 value_lazy for memory lvals.
2651 * findvar.c (value_of_register_lazy): New function.
2652 (locate_var_value): Only check value_lazy for memory lvals.
2653 * valarith.c (value_subscripted_rvalue): Likewise.
2654 * valops.c (value_fetch_lazy): Handle both memory and register
2656 (search_struct_field, value_slice): Only check value_lazy for memory
2658 * value.c (struct value): Update comment for lazy.
2659 (value_primitive_field): Only check value_lazy for memory lvals.
2660 * value.h (value_lazy): Update comment.
2661 (value_of_register_lazy): Declare.
2663 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2665 * corefile.c (reopen_exec_file): Close any open files.
2667 2008-04-29 Joel Brobecker <brobecker@adacore.com>
2669 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
2670 show_memory_breakpoints to 1 while reading the instruction bundle.
2672 2008-04-29 Joel Brobecker <brobecker@adacore.com>
2674 * gdbarch.sh: Document the return_value method. Explain that
2675 the FUNCTYPE parameter might be NULL.
2676 * gdbarch.h: Regenerated.
2677 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
2678 type when calling using_struct_return, as this is unnecessary
2681 2008-04-28 Joel Brobecker <brobecker@adacore.com>
2683 * terminal.h (create_tty_session): Fix return type.
2685 2008-04-26 Vladimir Prus <vladimir@codesourcery.com>
2687 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
2689 2008-04-26 Joel Brobecker <brobecker@adacore.com>
2691 * breakpoint.c (condition_command, commands_from_control_command)
2692 (break_command_really): Minor reformatting.
2694 2008-04-25 Pedro Alves <pedro@codesourcery.com>
2696 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
2698 2008-04-25 Pedro Alves <pedro@codesourcery.com>
2700 * amd64-tdep.c (amd64_get_longjmp_target): New.
2701 (amd64_init_abi): Register amd64_get_longjmp_target as
2702 gdbarch_get_longjmp_target callback.
2703 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
2705 2008-04-25 Pedro Alves <pedro@codesourcery.com>
2707 * breakpoint.h (enum bpstat_what_main_action): Delete
2708 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
2710 * breakpoint.c (clrs): Delete.
2711 (bpstat_what): Update table.
2713 * infrun.c (handle_inferior_event): Remove
2714 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
2716 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
2718 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
2719 Adjust all prototypes using mi_cmd_args_ftype to use
2721 (struct mi_cmd): Remove the args_func field.
2722 * mi/mi-cmds.c: Don't provide value for the args_func field.
2723 * mi/mi-main.c (mi_execute_async_cli_command)
2724 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
2725 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
2726 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
2727 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
2728 (mi_cmd_target_download): Adjust.
2729 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
2730 (mi_cmd_execute): Do not check for args_func.
2731 (mi_execute_async_cli_command): Adjust.
2732 * mi/mi-parse.c: Don't check for args_func.
2734 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
2736 * breakpoint.c (bpstat_check_location)
2737 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
2738 New, extracted from bpstat_stop_status.
2739 (bpstat_stop_status): Use the above.
2741 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
2743 * mi/mi-main.c (last_async_command): Rename to current_token.
2744 (previous_async_command): Remove.
2745 (mi_cmd_gdb_exit): Adjust.
2746 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
2747 (mi_cmd_target_select): Adjust.
2748 (mi_cmd_execute): Don't set previous_async_command. Free token
2749 here even in async mode.
2750 (mi_execute_async_cli_command): Adjust.
2751 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
2753 (mi_load_progress): Adjust.
2755 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
2757 * infcmd.c (step_1_continuation): Always disable longjmp
2758 breakpoint if we're not going to do another step.
2760 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
2762 exec_cleanup murder.
2763 * breakpoint.c (until_break_command_continuation): Add
2764 the 'error' parameter. Directly delete the breakoint as
2765 opposed to running cleanups.
2766 (until_break_command): Install continuation only
2767 after starting the target. Don't use exec cleanups,
2768 use ordinary cleanups. Discard cleanups is successfully
2769 started the target in async mode.
2770 (make_cleanup_delete_breakpoint): Remove.
2771 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
2773 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
2775 (struct continations): Add the 'error' parameter to the
2776 continuation_hook field.
2777 (add_continuation, do_all_continuations)
2778 (add_intermediate_continuation)
2779 (do_all_intermediate_continuations): Add the 'error' parameter.
2780 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
2781 * inf-loop.c (inferior_event_handler): Instead of calling
2782 discard_all_continuations, use do_all_continuations with 1 as
2783 'error' parameter. Pass 0 as 'error' parameter in existing uses
2784 of discard_all_continuations.
2785 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
2787 (step_once): Install continuation only after resuming the target.
2788 (step_1_continuation): Disable longjmp breakpoint on error.
2789 (finish_command_continuation): Add the error parameter. Delete
2790 the finish breakpoint directly, do not use cleanups.
2791 (finish_command): Do not use exec_cleanups. Always setup
2792 continuation. For sync case, immediately run them.
2793 (attach_command_continuation): Add the error parameter.
2794 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
2795 remove step_resume_breakpoint -- adjust delete it directly.
2796 * interps.c (interp_set): Adjust call to do_all_continations.
2797 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
2799 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
2801 (mi_cmd_execute): Do not use exec_cleanup.
2802 (mi_execute_async_cli_command): Simplify the string concatenation
2803 logic. Do no use exec cleanup.
2804 (mi_exec_async_cli_cmd_continuation): New parameter error.
2805 Free last_async_command.
2806 * top.c (command_line_handler_continuation): New parameter error.
2807 * utils.c (exec_cleanup_chain, make_exec_cleanup)
2808 (do_exec_cleanups): Remove.
2809 (add_continuation, do_all_continations)
2810 (add_intermediate_continuation)
2811 (do_all_intermediate_continuations): New parameter error.
2813 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
2815 * breakpoint.h (bp_location_p): New typedef.
2816 Register a vector of bp_location_p.
2817 * breakpoint.c (always_inserted_mode)
2818 (show_always_inserted_mode): New.
2819 (unlink_locations_from_global_list): Remove.
2820 (update_global_location_list)
2821 (update_global_location_list_nothrow): New.
2822 (update_watchpoint): Don't free locations.
2823 (should_insert_location): New.
2824 (insert_bp_location): Use should_insert_location.
2825 (insert_breakpoint_locations): Copied from
2827 (insert_breakpoint): Use insert_breakpoint_locations.
2828 (bpstat_stop_status): Call update_global_location_list
2829 when disabling breakpoint.
2830 (allocate_bp_location): Don't add to bp_location_chain.
2831 (set_raw_breakpoint)
2832 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
2833 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
2834 (enable_overlay_breakpoints, disable_overlay_breakpoints)
2835 (set_longjmp_resume_breakpoint)
2836 (enable_watchpoints_after_interactive_call_stop)
2837 (disable_watchpoints_before_interactive_call_start)
2838 (create_internal_breakpoint)
2839 (create_fork_vfork_event_catchpoint)
2840 (create_exec_event_catchpoint, set_momentary_breakpoint)
2841 (create_breakpoints, break_command_1, watch_command_1)
2842 (create_exception_catchpoint)
2843 (handle_gnu_v3_exceptions)
2844 (disable_breakpoint, breakpoint_re_set_one)
2845 (create_thread_event_breakpoint, create_solib_event_breakpoint)
2846 (create_ada_exception_breakpoint): : Don't call check_duplicates.
2847 Call update_global_location_list.
2848 (delete_breakpoint): Don't remove locations and don't
2849 try to reinsert them. Call update_global_location_list.
2850 (update_breakpoint_locations): Likewise.
2851 (restore_always_inserted_mode): New.
2852 (update_breakpoints_after_exec): Temporary disable
2853 always inserted mode.
2854 * Makefile.in: Update dependencies.
2856 * infrun.c (proceed): Remove breakpoints while stepping
2858 (handle_inferior_event): Don't remove or insert
2860 * linux-fork.c (checkpoint_command): Remove breakpoints
2861 before fork and insert after.
2862 (linux_fork_context): Remove breakpoints before switch
2864 * target.c (target_disconnect, target_detach): Remove
2865 breakpoints from target.
2868 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
2870 * breakpoint.c (print_one_breakpoint_location): In MI
2871 mode, report the location string the breakpoint was
2872 originally created with.
2874 2008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
2876 * Makefile.in (xtensa-tdep.o): Update dependencies.
2877 * configure.tgt (xtensa*): Update dependencies.
2878 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
2879 Local variable areg renamed to arreg.
2880 (areg_number): New function.
2881 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2882 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
2883 replaced by arreg_number.
2884 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
2885 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
2886 (xtensa_scan_prologue): New function.
2887 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
2888 when ENTRY instraction hasn't been executed yet. Get the frame pointer
2889 value based on prologue analysis. Fix the bugs preventing WS and
2890 AR4-AR7/A11 registers from getting right values for intermediate frames,
2891 whose registers have been already spilled.
2892 (xtensa_frame_prev_register): Fix WS register value. Use are_number
2893 and arreg_number appropriately.
2894 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
2895 svr4_ilp32_fetch_link_map_offsets.
2897 2008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
2899 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
2900 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
2902 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
2904 * acinclude.m4: Add override.m4.
2905 * configure: Regenerate.
2907 2008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2909 * ada-lang.c (get_selections): Variable PROMPT made non-const and
2910 initialized with a trailing space now. Use PROMPT_ARG of
2911 COMMAND_LINE_INPUT instead of printing it ourselves.
2913 2008-04-22 Joel Brobecker <brobecker@adacore.com>
2915 * NEWS: Document support for 64-bit core file.
2917 2008-04-22 Corinna Vinschen <vinschen@redhat.com>
2919 * NEWS: Add information on calling convention and new SH CLI options.
2921 * sh-tdep.c (sh_cc_gcc): New static string.
2922 (sh_cc_renesas): Ditto.
2923 (sh_cc_enum): New static string array.
2924 (sh_active_calling_convention): New static string pointer denoting
2925 active user chosen ABI.
2926 (sh_is_renesas_calling_convention): New function to return function
2927 specific ABI, or user choice if necessary.
2928 (sh_use_struct_convention): Rename first argument and turn around its
2929 meaning. Check for renesas ABI and return accordingly.
2930 (sh_use_struct_convention_nofpu): New function.
2931 (sh_next_flt_argreg): Get function type as third parameter. Check
2932 for renesas ABI and choose floating registers accordingly.
2933 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
2934 struct return slot accordingly.
2935 (sh_push_dummy_call_nofpu): Ditto.
2936 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
2937 Evaluate ABI and give to sh_use_struct_convention_nofpu.
2938 (sh_return_value_fpu): Evaluate ABI and give to
2939 sh_use_struct_convention.
2940 (show_sh_command): New function.
2941 (set_sh_command): Ditto.
2942 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
2945 * gdbarch.sh (return_value): Add func_type argument.
2946 * gdbarch.c: Regenerate.
2948 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
2949 val_type so as not to collide with value_type function. Call
2950 using_struct_return with additional function type argument.
2951 * infcall.c (call_function_by_hand): Call using_struct_return and
2952 gdbarch_return_value with additional function type argument.
2953 * infcmd.c (print_return_value): Take addition func_type argument.
2954 Call gdbarch_return_value with additional function type argument.
2955 (finish_command_continuation): Call print_return_value with additional
2956 function type argument.
2957 (finish_command): Ditto.
2958 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
2959 additional function type argument.
2960 * stack.c (return_command): Call using_struct_return and
2961 gdbarch_return_value with additional function type argument.
2962 * value.c (using_struct_return): Take additional function type argument.
2963 * value.h (using_struct_return): Accommodate declaration.
2964 * alpha-tdep.c (alpha_return_value): Add func_type argument.
2965 * amd64-tdep.c (amd64_return_value): Ditto.
2966 * arm-tdep.c (arm_return_value): Ditto.
2967 * avr-tdep.c (avr_return_value): Ditto.
2968 * cris-tdep.c (cris_return_value): Ditto.
2969 * frv-tdep.c (frv_return_value): Ditto.
2970 * h8300-tdep.c (h8300_return_value): Ditto.
2971 (h8300h_return_value): Ditto.
2972 * hppa-tdep.c (hppa32_return_value): Ditto.
2973 (hppa64_return_value): Ditto.
2974 * i386-tdep.c (i386_return_value): Ditto.
2975 * ia64-tdep.c (ia64_return_value): Ditto.
2976 * iq2000-tdep.c (iq2000_return_value): Ditto.
2977 * m32c-tdep.c (m32c_return_value): Ditto.
2978 * m32r-tdep.c (m32r_return_value): Ditto.
2979 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
2980 * m68k-tdep.c (m68k_return_value): Ditto.
2981 (m68k_svr4_return_value): Ditto.
2982 * m88k-tdep.c (m88k_return_value): Ditto.
2983 * mep-tdep.c (mep_return_value): Ditto.
2984 * mips-tdep.c (mips_eabi_return_value): Ditto.
2985 (mips_n32n64_return_value): Ditto.
2986 (mips_o32_return_value): Ditto.
2987 (mips_o64_return_value): Ditto.
2988 * mn10300-tdep.c (mn10300_return_value): Ditto.
2989 * mt-tdep.c (mt_return_value): Ditto.
2990 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
2991 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
2992 (ppc_sysv_abi_broken_return_value): Ditto.
2993 (ppc64_sysv_abi_return_value): Ditto.
2994 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
2995 (ppc_sysv_abi_broken_return_value): Ditto.
2996 (ppc64_sysv_abi_return_value): Ditto.
2997 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
2998 * rs6000-tdep.c (rs6000_return_value): Ditto.
2999 * s390-tdep.c (s390_return_value): Ditto.
3000 * score-tdep.c (score_return_value): Ditto.
3001 * sh-tdep.c (sh_return_value_nofpu): Ditto.
3002 (sh_return_value_fpu): Ditto.
3003 * sh64-tdep.c (sh64_return_value): Ditto.
3004 * sparc-tdep.c (sparc32_return_value): Ditto.
3005 * sparc64-tdep.c (sparc64_return_value): Ditto.
3006 * spu-tdep.c (spu_return_value): Ditto.
3007 * v850-tdep.c (v850_return_value): Ditto.
3008 * vax-tdep.c (vax_return_value): Ditto.
3009 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
3010 * xtensa-tdep.c (xtensa_return_value): Ditto.
3012 * gdbtypes.h (struct type): Add calling_convention member.
3013 * dwarf2read.c (read_subroutine_type): Add calling convention read
3014 from DW_AT_calling_convention attribute to function type.
3016 2008-04-22 Markus Deuling <deuling@de.ibm.com>
3018 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
3019 multi_f77_subscript to support values from registers.
3020 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
3021 * value.h (value_subscripted_rvalue): Add prototype.
3023 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
3025 * f-valprint.c (f_val_print): Likewise.
3027 2008-04-21 Craig Silverstein <csilvers@google.com>
3029 * dwarf2read.c (zlib_decompress_section): Define abfd in the
3032 2008-04-21 Pedro Alves <pedro@codesourcery.com>
3034 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
3035 section is not a code section.
3037 2008-04-19 Craig Silverstein <csilvers@google.com>
3039 * NEWS: Add information on compressed debug sections.
3041 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
3043 * mi/mi-cmd-var.c (varobj_update_one): Print new
3044 value for variable objects that changed type.
3046 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
3048 * varobj.c (varobj_invalidate): Don't touch floating
3051 2008-04-19 Mark Kettenis <kettenis@gnu.org>
3053 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
3054 (multiple_symbols_cancel): Remove extra const.
3055 * symtab.h: Likewise.
3057 2008-04-19 Nick Roberts <nickrob@snap.net.nz>
3059 * interps.c (top_level_interpreter): Rename static variable...
3060 (top_level_interpreter_ptr): ...to this.
3061 (top_level_interpreter): New function.
3063 * interps.h: New extern for top_level_interpreter.
3065 * linespec.c: Include interps.h and mi/mi-cmds.h.
3066 (decode_line_2): When using MI, always set all breakpoints in menu.
3068 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
3070 2008-04-18 Craig Silverstein <csilvers@google.com>
3072 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
3073 * config.in, configure: Regenerate.
3074 * dwarf2read.c: Include zlib.h if present.
3075 Modified *_SECTION macros.
3076 (section_is_p): New.
3077 (dwarf2_locate_sections): Use section_is_p instead of strcmp
3078 (dwarf2_resize_section): New.
3079 to determine whether a given section has a given name.
3080 (zlib_decompress_section): New.
3081 (dwarf2_read_section): Read the compressed section if present
3083 * MAINTAINERS: Added myself to section Write After Approval.
3085 2008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
3087 * defs.h (exec_set_section_offsets): Remove prototype.
3088 * exec.c (exec_set_section_offsets): Remove function.
3090 2008-04-18 Joel Brobecker <brobecker@adacore.com>
3092 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
3093 in the search for the matching symbol.
3095 2008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
3097 * breakpoint.c (update_watchpoint): Always reparse
3100 2008-04-17 Joel Brobecker <brobecker@adacore.com>
3102 * breakpoint.c (print_one_breakpoint_location): Make sure to print
3103 the breakpoint address only once.
3105 2008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
3107 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
3108 rather than a hard-coded architecture, for xcoff executables.
3110 2008-04-17 Doug Evans <dje@google.com>
3112 * buildsym.c (watch_main_source_file_lossage): New fn.
3113 (end_symtab): Call it.
3115 * source.c (find_and_open_source): Add some comments clarifying
3116 handling of FULLNAME argument. Make static. Remove pointless
3119 2008-04-17 Pedro Alves <pedro@codesourcery.com>
3121 * inf-loop.c (inferior_event_handler): Also run the intermediate
3122 continuations in the INF_EXEC_COMPLETE case.
3124 2008-04-16 Tom Tromey <tromey@redhat.com>
3126 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
3127 (set_cmd_async_ok, get_cmd_async_ok): Declare.
3128 * cli/cli-decode.c (set_cmd_async_ok): New function.
3129 (get_cmd_async_ok): New function.
3130 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
3132 * top.c (execute_command): Use get_cmd_async_ok.
3133 * infcmd.c: Include cli/cli-decode.h.
3134 (_initialize_infcmd): Mark "interrupt" as async-ok.
3135 * Makefile.in (infcmd.o): Depend on cli_decode_h.
3137 2008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
3140 * exec.c: Correct "arch-utils.h" include.
3142 2008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
3145 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
3146 to allow printing to 'see' real reason of stop. This fixes PR 2424.
3147 * breakpoint.c (bpdisp_texst): New function. The function takes over
3148 the role of bpstats static array in print_one_breakpoint_location.
3149 (print_it_typical): Print "Temporary breakpoint" instead
3150 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
3151 protocols, print disp field.
3152 (print_one_breakpoint_location): Removed bpdisps static definition.
3153 Call new bpstat_text function to get value for 'disp' field.
3154 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
3156 2008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
3158 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
3159 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
3160 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
3161 * gnulib/Makefile.in: Regenerate.
3163 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3165 * Makefile.in (GNULIB_H): New. Trigger all-lib.
3166 (defs_h): Use $(GNULIB_H).
3167 (all-lib): Depend on gnulib/Makefile.
3168 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
3169 * config.in, gnulib/Makefile.in: Regenerated.
3171 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3173 * Makefile.in (LIBGNU, INCGNU): Define.
3174 (INTERNAL_CFLAGS_BASE): Add INCGNU.
3175 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
3177 ($(LIBGNU), all-lib): New rules.
3178 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
3179 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
3180 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
3181 * gnulib: New directory, from gnulib-tool.
3182 * configure, aclocal.m4: Regenerated.
3184 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3186 * linux-thread-db.c (have_threads_callback): Check thread->private.
3188 2008-04-13 Nick Roberts <nickrob@snap.net.nz>
3189 Vladimir Prus <vladimir@codesourcery.com>
3192 * varobj.c (value_of_root): Update the expression for
3194 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
3197 2008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
3199 * mi/mi-cmd-var.c: Include "mi-getopt.h".
3200 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
3201 (mi_cmd_var_set_format): Use new mi_parse_format.
3202 (mi_cmd_var_evaluate_expression): Support for -f option to specify
3204 * Makefile.in (mi-cmd-var.o): Update dependencies.
3206 * varobj.h (varobj_get_formatted_value): Declare.
3207 * varobj.c (my_value_of_variable): Added format parameter.
3208 (cplus_value_of_variable): Likewise.
3209 (java_value_of_variable): Likewise.
3210 (c_value_of_variable): Likewise. Evaluate expression based
3211 on format parameter.
3212 (struct language_specific): Add format parameter to function member
3214 (varobj_get_formatted_value): New.
3215 (varobj_get_value): Added format parameter to method call.
3217 2008-04-08 Joel Brobecker <brobecker@adacore.com>
3219 * stabsread.c (cleanup_undefined_types_noname): Manually set the
3220 instance flags of the undefined type before calling replace_type.
3222 2008-04-08 Vladimir Prus <vladimir@codesourcery.com>
3224 * target.h (enum strata): Remove the download_stratum.
3226 2008-04-07 Doug Evans <dje@google.com>
3228 * buildsym.h (last_source_file): Add dwarf info to comment.
3229 (last_source_start_addr): Ditto.
3231 2008-04-07 Pedro Alves <pedro@codesourcery.com>
3233 * alphanbsd-tdep.c: Include "target.h".
3234 * mn10300-tdep.c: Include "target.h".
3235 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
3237 2008-04-06 Vladimir Prus <vladimir@codesourcery.com>
3239 Fix breakpoint condition that use member variables.
3240 * valops.c (check_field): Remove.
3241 (check_field_in): Rename to check_field.
3242 (value_of_this): Use la_name_of_this.
3243 * value.h (check_field): Adjust prototype.
3245 * language.h (la_value_of_this): Rename to la_name_of_this.
3246 * language.c (unknown_language_defn): Specify "this" for
3248 (auto_language_defn): Likewise.
3249 (local_language_defn): Likewise.
3250 * ada-lang.c (ada_language_defn): Adjust comment.
3251 * c-lang.c (c_language_defn): Adjust comment.
3252 (cplus_language_defn): Specify "this" for name_of_this.
3253 (asm_language_defn): Adjust comment.
3254 (minimal_language_defn): Adjust comment.
3255 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
3256 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
3257 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
3258 * objc-lang.c (objc_language_defn): Specify "self" for
3260 * p-lang.c (pascal_language_defn): Specify "this" for
3262 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
3264 * symtab.c (lookup_symbol_aux): Lookup "this" in the
3265 proper scope, and check for field in type of "this", without
3266 trying to create a value.
3268 2008-04-04 Pedro Alves <pedro@codesourcery.com>
3270 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
3271 (mi_error_message): Delete declaration.
3272 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
3273 returning MI_CMD_ERROR.
3274 * mi/mi-main.c (mi_error_message): Delete.
3275 (mi_cmd_exec_interrupt):
3276 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
3277 (mi_cmd_thread_info): Call error instead of returning
3279 (mi_cmd_data_list_register_values): Call error instead of
3280 returning MI_CMD_ERROR. Adapt to new get_register interface.
3281 (get_register): Change return typo to void. Call error instead of
3282 returning MI_CMD_ERROR.
3283 (mi_cmd_data_write_register_values): Call error instead of
3284 returning MI_CMD_ERROR.
3285 (mi_cmd_list_features): Return MI_CMD_DONE.
3286 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
3287 (mi_execute_command): Always print exceptions with -error.
3289 2008-04-04 Joel Brobecker <brobecker@adacore.com>
3291 * NEWS: Mention new commands set/show multiple-symbols.
3293 2008-04-03 Joel Brobecker <brobecker@adacore.com>
3295 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
3296 (multiple_symbols_cancel): New constants.
3297 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
3298 (multiple_symbols_select_mode): New function.
3299 (_initialize_symtab): Add new set/show multiple-symbols commands.
3300 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
3301 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
3302 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
3304 * linespec.c (decode_line_2): Likewise.
3306 2008-04-03 Doug Evans <dje@sebabeach.org>
3308 * symtab.h (enum free_code): Delete free_contents, unused.
3309 * symmisc.c (free_symtab_block): Delete.
3310 (free_symtab, case free_code): Delete.
3312 2008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
3314 * valops.c (value_cast_structs): New function. Cast related
3315 STRUCT types up/down and return cast value. The body of this
3316 function comes mostly from value_cast_pointers.
3317 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
3318 to value_cast_structs. Now value_cast_pointers needs only create
3319 appropriate reference after using value_cast_structs for actual
3321 (value_cast): Handle references.
3323 2008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
3325 * MAINTAINERS: Added myself to section Write After Approval.
3327 2008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
3329 * ia64-tdep.c (examine_prologue): Correct array access.
3331 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
3333 * cp-support.c (first_component_command): Return if no arguments.
3335 2008-03-28 Carlos O'Donell <carlos@codesourcery.com>
3337 * ser-mingw.c (ser_windows_open): Open requested name.
3339 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
3341 * MAINTAINERS: Added myself.
3343 2008-03-28 Pedro Alves <pedro@codesourcery.com>
3345 * target.c (find_default_run_target): Allow a NULL `do_mesg'
3346 parameter. If it is NULL, don't call error.
3347 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
3348 `do_mesg' parameter to find_default_run_target. If no target was
3351 2008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
3353 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
3354 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
3355 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
3357 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
3359 2008-03-27 Joel Brobecker <brobecker@adacore.com>
3363 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
3365 * features/Makefile (%.dat): Set xmltarget to the base filename
3366 of the XML source, without subdirectory.
3367 * regformats/rs6000/powerpc-32.dat: Regenerate.
3368 * regformats/rs6000/powerpc-64.dat: Regenerate.
3369 * regformats/rs6000/powerpc-e500.dat: Regenerate.
3371 2008-03-27 Markus Deuling <deuling@de.ibm.com>
3373 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
3376 2008-03-27 Nick Roberts <nickrob@snap.net.nz>
3378 * mi/mi-main.c (enum captured_mi_execute_command_actions):
3379 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
3381 2008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3383 * objfiles.h (struct objfile): New GDBARCH member.
3384 (get_objfile_arch): Add prototype.
3385 * objfiles.c: Include "arch-utils.h".
3386 (allocate_objfile): Look up gdbarch associated with bfd.
3387 (get_objfile_arch): New function.
3388 * Makefile (objfiles.o): Update dependencies.
3390 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
3392 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
3394 (locexpr_describe_location): Replace current_gdbarch by
3396 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
3397 (dwarf2_add_field): Likewise.
3398 (read_tag_pointer_type): Likewise.
3399 (read_base_type): Likewise.
3400 (new_symbol): Likewise.
3402 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
3403 (decode_base_type, decode_function_type): Likewise.
3404 (coff_read_struct_type, coff_read_enum_type): Likewise.
3405 (coff_symtab_read): Replace current_gdbarch by objfile arch.
3406 (decode_base_type): Likewise.
3407 (coff_read_enum_type): Likewise.
3408 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
3409 (coff_read_enum_type): Likewise.
3411 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
3412 (end_psymtab): Likewise.
3413 (process_one_symbol): Likewise.
3415 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
3416 (parse_procedure): Likewise.
3417 (parse_partial_symbols): Likewise.
3419 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
3421 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
3422 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
3424 (read_range_type): Replace current_gdbarch by objfile arch. Replace
3425 static range_index_type by built-in type.
3426 (read_one_struct_field): Replace current_gdbarch by objfile arch.
3427 (read_enum_type): Likewise.
3429 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
3432 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
3434 * varobj.h (varobj_floating_p): Declare.
3435 * varobj.c (varobj_floating_p): New.
3436 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
3437 '@' as the name, update all floating varobjs.
3439 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
3441 * varobj.c (struct varobj_root): Rename use_selected_frame to
3442 floating, and clarify the meaning.
3443 (varobj_create, varobj_update, new_root_variable): Adjust.
3444 (value_of_root): Don't use type_changed as in variable,
3446 (c_value_of_root): Adjust.
3448 2008-03-25 Pedro Alves <pedro@codesourcery.com>
3450 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
3452 (linux_nat_wait): Add main lwp to gdb's thread list.
3453 * linux-thread-db.c (find_new_threads_callback): Also attach to
3454 already listed threads which thread_db didn't know about yet.
3456 2008-03-25 Pedro Alves <pedro@codesourcery.com>
3458 * linux-nat.c (drain_queued_events): Fix comment typo.
3459 (linux_nat_attach): In async mode, don't rely on storing a pending
3460 status. Instead place the wait status on the pipe.
3461 (linux_nat_resume): Remove unreacheable shortcut code in async
3463 (stop_wait_callback): In async mode, don't store pending status.
3464 Instead, cancel breakpoints or resend the signal appropriatelly.
3465 (cancel_breakpoint): New, refactored from
3466 cancel_breakpoints_callback.
3467 (cancel_breakpoints_callback): Call cancel_breakpoint.
3468 (pipe_to_local_event_queue): Remove special token processing.
3469 (linux_nat_wait): Issue an internal error if a pending status is
3470 found in async mode.
3472 2008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
3474 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
3476 2008-03-24 Nick Roberts <nickrob@snap.net.nz>
3477 Vladimir Prus <vladimir@codesourcery.com>
3479 * varobj.c (struct varobj_root): New component thread_id.
3480 (varobj_get_thread_id, check_scope): New functions.
3481 (c_value_of_root): Use check_scope. Switch to the
3482 proper thread if necessary.
3484 * varobj.h (varobj_get_thread_id): New extern.
3486 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
3488 2008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
3491 * top.c: Revert 2008-03-21 changes.
3493 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
3495 * thread.c (make_cleanup_restore_current_thread): Make it
3497 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
3498 * varobj.c (varobj_update): Don't save/restore frame.
3499 (c_value_of_root): Save/restore thread and frame here,
3500 using make_cleanup_restore_current_thread.
3501 * Makefile.in: Update dependecies.
3503 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
3505 * varobj.c (struct varobj_root): Clarify
3506 comment on the frame field.
3507 (varobj_create): Don't set frame if we have no
3510 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
3513 Suggested by Jan Kratochvil:
3514 * top.c (gdb_rl_operate_and_get_next_completion): Call
3515 rl_redisplay_function.
3516 (gdb_rl_redisplay): New.
3517 (init_main): Set rl_redisplay_function.
3519 2008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
3521 * aix-thread.c (pdc_read_regs): Fix compiler warning.
3522 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
3523 (store_regs_kernel_thread): Likewise.
3525 2008-03-21 Pedro Alves <pedro@codesourcery.com>
3527 Linux native async support.
3529 * target.h (struct target_ops): Delete to_async_mask_value and add
3531 (target_is_async_p, target_async): Formatting.
3532 (target_async_mask_value): Delete.
3533 (target_async_mask): Delete function declaration, and add new
3534 target macro with the same name.
3536 * target.c (update_current_target): Replace to_async_mask_value by
3537 to_async_mask. Default to_async_mask to return_one.
3538 (target_async_mask): Delete.
3539 (find_default_can_async_p, find_default_is_async_p): New.
3540 (init_dummy_target): register find_default_can_async_p and
3541 find_default_is_async_p on the dummy target.
3543 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
3544 (debug_linux_nat_async): New global.
3545 (show_debug_linux_nat_async): New function.
3546 (linux_nat_async_enabled, linux_nat_async_mask_value)
3547 (linux_nat_event_pipe, linux_nat_num_queued_events)
3548 (linux_nat_async_events_enabled): New globals.
3549 (struct waitpid_result): New struct.
3550 (waitpid_queue): New global.
3551 (queued_waitpid, push_waitpid, drain_queued_events): New.
3552 (my_waitpid): Call queued_waitpid.
3553 (linux_child_follow_fork): Disable async events during the call.
3554 (blocked_mask): Delete.
3555 (sync_sigchld_action, async_sigchld_action): New globals.
3556 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
3557 async mode, block events during the call.
3558 (linux_nat_create_inferior): New.
3559 (linux_nat_attach): In sync mode, restore the mask states. In
3560 async mode, wake the event loop immediatelly.
3561 (detach_callback): Drain all queued events of the lwp we're
3563 (linux_nat_detach): Block async mode, and drain events of the main
3565 (linux_nat_resume): If in async mode, mask async events during the
3566 call. If short circuiting, force event loop to wake up. If
3567 resuming, set target_executing, and register target events in the
3569 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
3570 (linux_nat_wait): In async mode, block events during the call.
3571 Only enable/disable passing SIGINT to the inferior in sync mode.
3572 Get events from local waitpid queue. If no interesting events was
3573 found, return to events loop. Reregister target events in the
3574 event loop on exit. In sync mode, no need to reblock SIGCHLD.
3575 (linux_nat_kill): Disable events on entry.
3576 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
3577 here. Detach async mode from the event loop if there are no more
3578 forks available, otherwise leave it on.
3579 (sigchld_handler): Assure this is called only in sync mode.
3580 (linux_async_permitted, linux_async_permitted_1): New globals.
3581 (set_maintenance_linux_async_permitted)
3582 (show_maintenance_linux_async_permitted): New functions.
3583 (linux_nat_is_async_p, linux_nat_can_async_p)
3584 (linux_nat_async_mask): New.
3585 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
3586 (get_pending_events, async_sigchld_handler): New.
3587 (linux_nat_async_events): New.
3588 (async_terminal_is_ours): New global.
3589 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
3590 (async_client_callback, async_client_context): New.
3591 (linux_nat_async_file_handler, linux_nat_async)
3592 (linux_nat_disable_async, linux_nat_enable_async): New.
3593 (linux_nat_add_target): Register linux_nat_create_inferior,
3594 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
3595 linux_nat_async_mask, linux_nat_terminal_inferior and
3596 linux_nat_terminal_ours.
3597 (_initialize_linux_nat): Remove local action variable, and update
3598 code that used it to use sync_sigchld_action. Add new
3599 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
3600 set/show command in the maintenance class. Add new "linux-async"
3601 maintenance set/show command. Block SIGCHLD by default. Setup
3602 async_sichld_action, and sync_sigchld_action. Install the default
3604 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
3607 * linux-thread-db.c (re_check_for_thread_db): New.
3608 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
3609 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
3610 (thread_db_async_mask): New.
3611 (init_thread_db_ops): Register thread_db_can_async_p,
3612 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
3614 * remote.c (remote_async_mask_value): New.
3615 (remote_return_zero): New.
3616 (init_remote_ops): Register remote_return_zero as callbacks of
3617 to_can_async_p and to_is_async_p.
3618 (remote_can_async_p, remote_is_async_p, remote_async): Update to
3619 use remote_async_mask_value.
3620 (remote_async_mask): New.
3621 (init_remote_async_ops): Remove to_async_mask_value setting and
3622 register remote_async_mask as to_async_mask callback in
3625 * Makefile.in (linux-nat.o): Update.
3627 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
3629 * gdbthread.h (add_thread_with_info): New.
3630 * linux-thread-db.c: Add some documentation.
3631 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
3632 (struct private_thread_info): Remove th_valid and ti_valid.
3633 Replace ti with tid.
3634 (thread_get_info_callback): Do not add TID to the new ptid. Do
3636 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
3637 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
3639 (attach_thread): Handle an already-existing thread. Use
3640 add_thread_with_info. Cache the th and tid.
3641 (detach_thread): Verify that private was set. Remove verbose
3642 argument and printing. Update caller.
3643 (thread_db_detach): Do not adjust inferior_ptid.
3644 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
3645 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
3646 (thread_db_wait): Do not use lwp_from_thread.
3647 (thread_db_pid_to_str): Use the cached TID.
3648 (thread_db_extra_thread_info): Check that private is set.
3649 (same_ptid_callback): Delete.
3650 (thread_db_get_thread_local_address): Do not use it or check
3651 is_thread. Check that private is set. Assume that the thread
3652 handle is already cached.
3653 (init_thread_db_ops): Remove to_resume and to_kill.
3654 * thread.c (add_thread_with_info): New.
3655 (add_thread): Use it.
3656 * linux-nat.c (find_thread_from_lwp): Delete.
3657 (exit_lwp): Do not use it. Check print_thread_events. Print before
3658 deleting the thread.
3659 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
3660 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
3661 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
3662 printf_unfiltered for thread exits.
3663 * procfs.c (procfs_wait): Likewise.
3665 2008-03-21 Chris Demetriou <cgd@google.com>
3667 * symtab.c (rbreak_command): Quote symbol name before passing
3668 it to break_command.
3670 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
3672 * eval.c (evaluate_subexp_for_address): Clarify error message.
3673 Use value_must_coerce_to_target.
3674 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
3675 * valops.c (value_assign): Call value_coerce_to_target when
3676 assigning to anything but internalvars. Leave GDB-side arrays
3677 as arrays when assigning to internalvars.
3678 (value_must_coerce_to_target, value_coerce_to_target): New.
3679 (value_coerce_array, value_addr): Call value_coerce_to_target.
3680 (value_array): Create the array in GDB's memory instead of
3682 * value.h (value_must_coerce_to_target, value_coerce_to_target):
3685 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
3687 * top.c (quit_confirm): Warn that we will kill the program.
3689 2008-03-19 Pedro Alves <pedro@codesourcery.com>
3691 * inflow.c (terminal_ours_1): Guard access to
3692 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
3694 2008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
3695 Jim Blandy <jimb@codesourcery.com>
3696 Daniel Jacobowitz <drow@false.org>
3698 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
3699 (dwarf2_read_address): Update prototype.
3701 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
3702 (signed_address_type): Likewise.
3703 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
3704 (execute_stack_op): Update calls to unsigned_address_type,
3705 signed_address_type and dwarf2_read_address. Fix implementation
3706 of DW_OP_deref_size.
3708 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
3709 (dwarf2_per_cu_addr_size): Likewise.
3710 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
3711 (struct dwarf2_loclist_baton): Likewise.
3713 * dwarf2loc.c (find_location_expression): Update calls to
3714 dwarf2_read_address. Use dwarf2_per_cu_objfile and
3715 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
3716 (locexpr_describe_location): Likewise.
3717 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
3718 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
3719 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
3720 to dwarf2_per_cu_addr_size (per_cu).
3721 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
3722 (loclist_read_variable): Likewise.
3723 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
3725 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
3726 instead of baton->objfile.
3727 (dwarf2_per_cu_obfile): New function.
3728 (dwarf2_per_cu_addr_size): Likewise.
3730 * dwarf2-frame.c (struct comp_unit): Move higher.
3731 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
3732 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
3733 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
3734 parameter by using fde->eh_frame_p. Use read_encoded_value
3735 to implement DW_CFA_set_loc.
3736 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
3737 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
3738 execute_stack_op and execute_cfa_program.
3739 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
3740 (size_of_encoded_value): Remove.
3741 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
3742 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
3743 (add_cie): Set cie->unit backlink.
3744 (decode_frame_entry_1): Set cie->addr_size. Update calls to
3746 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
3748 2008-03-17 Markus Deuling <deuling@de.ibm.com>
3750 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
3751 gdbarch_bfd_arch_info.
3753 2008-03-17 Joel Brobecker <brobecker@adacore.com>
3755 * aix-thread.c (pdc_read_regs): Minor reformatting.
3757 2008-03-17 Vladimir Prus <vladimir@codesourcery.com>
3759 * thread.c (print_thread_info): Don't insist
3760 on having current thread if there are no
3763 2008-03-17 Pedro Alves <pedro@codesourcery.com>
3765 * infcmd.c (attach_command_post_wait)
3766 (attach_command_continuation): New.
3767 (attach_command): Support background async execution, and async
3768 execution in synchronous mode.
3770 2008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
3772 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
3773 * symmisc.c (dump_symtab_1): Likewise.
3774 * wrapper.c (gdb_value_struct_elt): Likewise.
3776 2008-03-17 Pedro Alves <pedro@codesourcery.com>
3778 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
3780 2008-03-17 Pedro Alves <pedro@codesourcery.com>
3782 * linux-nat.c (linux_nat_filter_event): New, refactored from
3784 (linux_nat_wait): Call linux_nat_filter_event.
3786 2008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
3788 * top.c (execute_command): Fix uninitialized variable error.
3790 2008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
3792 * Makefile.in (amd64nbsd-nat.o): New dependency.
3793 * amd64nbsd-nat.c: Include "nbsd-nat.h".
3794 (_initialize_amd64nbsd_nat): Update target vector to use
3795 nbsd_pid_to_exec_file.
3796 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
3798 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
3800 Remove ignoring leading exec events code.
3801 * fork-child.c (startup_inferior): Do not set
3802 inferior_ignoring_leading_exec_events.
3803 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
3804 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
3805 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
3806 (handle_inferior_event): Remove code for ignoring leading exec
3808 * target.c (update_current_target): Do not inherit, or default,
3809 to_reported_exec_events_per_exec_call.
3810 (debug_to_reported_exec_events_per_exec_call): Remove.
3811 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
3812 * target.h (target_reported_exec_events_per_exec_call): Remove.
3813 (struct target): Remove the to_reported_exec_events_per_exec_call
3816 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
3818 Implement -thread-info.
3819 * gdbthread.h (print_thread_info): Declare.
3821 * thread.c (print_thread_info): New, extracted
3822 from info_threads_command and adjusted to
3823 work for CLI and MI.
3824 (info_threads_command): Use print_thread_info.
3825 * Makefile.in: Update dependencies.
3827 * mi/mi-cmds.c (mi_cmds): Specify a handler
3829 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
3830 * mi/mi-main.c (mi_cmd_thread_info): New.
3831 (mi_cmd_list_features): Include 'thread-info'.
3833 2008-03-14 Kevin Buettner <kevinb@redhat.com>
3835 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
3836 to decide whether to match instruction patterns using "sw" and "sd".
3838 2008-03-14 Pedro Alves <pedro@codesourcery.com>
3840 * infcmd.c (jump_command): Postpone disabling stdin until after
3843 2008-03-14 Pedro Alves <pedro@codesourcery.com>
3845 * inflow.c (gdb_getpgrp): New.
3846 (gdb_has_a_terminal): Use get_getpgrp.
3847 (terminal_ours_1): If attach_flag is set, don't refetch
3848 inferior_process_group.
3850 2008-03-14 Pedro Alves <pedro@codesourcery.com>
3852 * features/library-list.dtd: Allow "section" elements as children
3853 of "library". Add "section" element and describe its attributes.
3855 * solib-target.c (struct lm_info): Add section_bases member.
3856 (library_list_start_segment): Error out if seen a section element.
3857 (library_list_start_section): New.
3858 (library_list_end_library): New.
3859 (solib_target_free_library_list): Free section_bases.
3860 (section_attributes): New.
3861 (library_children): Make "segment" optional. Add "section" child.
3862 (library_list_children): Register library_list_end_library.
3863 (solib_target_relocate_section_addresses): Handle section bases.
3865 * NEWS: Mention new qXfer:libraries:read section offsets support.
3867 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
3869 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
3870 (make_exec_error_cleanup): Remove declarations.
3871 * utils.c (exec_error_cleanup_chain): Remove.
3872 (do_exec_error_cleanups, discard_exec_error_cleanups)
3873 (make_exec_error_cleanup): Remove.
3874 * event-loop.c (start_event_loop): Adjust call to
3876 * event-top.c (async_enable_stdin): Remove the paramater dummy.
3877 (async_disable_stdin): Don't register async_enable_stdin via
3879 * inf-loop.c (inferior_event_handler): Don't
3880 call do_exec_error_cleanups. Call async_enable_stdin instead.
3881 * event-loop.c (start_event_loop): Adjust call to
3883 * tui/tui-interp.c (tui_command_loop): Adjust call to
3886 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
3889 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
3890 * breakpoint.c (bpstat_do_actions): In async mode,
3891 don't jump to top expecting stop_bpstat to be already
3893 * event-loop.c (start_event_loop): Call async_enable_stdin
3895 * event-top.c (async_enable_stdin): Do nothing if sync_execution
3897 (command_handler): Do not setup continuation here.
3898 (command_line_handler_continuation): Move to...
3899 * top.c (command_line_handler_continuation): ... here.
3900 (execute_command): In async mode, register continuation.
3901 Don't check frame's language in running in async mode.
3902 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
3903 * inf-loop.c (complete_execution): Inline into...
3904 (inferior_event_handler): ... here. Clear target_executing before
3905 doing any cleanups. Don't try to show prompt if the target was
3907 * infcmd.c (signal_command): Add support for async mode.
3908 (finish_command): Only add continuation if the target was
3909 successfully resumed.
3910 * remote.c (init_async_opts): Register to_get_thread_local_address
3912 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
3913 with sync_execution.
3914 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
3917 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
3919 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
3920 * exec.c (exec_bfd_mtime): Define.
3921 (exec_close): Clear it.
3922 (exec_file_attach): Set it.
3923 * gdbcore.h (exec_bfd_mtime): Declare.
3924 * source.c (find_source_lines): Do not use bfd_get_mtime.
3926 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
3928 * top.c (simplified_command_loop): Remove.
3930 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
3932 Remove unused remote.c hooks.
3933 * remote.c (deprecated_target_resume_hook)
3934 (deprecated_target_wait_loop_hook): Remove.
3935 (remote_resume): Do not call deprecated_target_resume_hook.
3936 (remote_wait): Do not call deprecated_target_wait_loop_hook.
3937 (remote_async_wait): Likewise.
3939 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
3941 Implement MI notification for new threads.
3942 * doc/observer.texi (new_thread): Document.
3943 * observer.sh: Forward declare struct thread_info.
3944 * thread.c (add_thread): Notify observer.
3946 * interps.h (interp_init_ftype): New parameter
3948 (interp_set): Likewise.
3949 (top_level_interpreter_data): Declare.
3950 * interps.c (interp_set): New parameter top_level.
3951 Pass it to interpreter's init function. Remember
3952 top level interpreter.
3953 (interpreter_exec_cmd): Adjust.
3954 (top_level_interpreter_data): New.
3955 * main.c (captured_main): Pass 1 for top_level
3956 parameter of interp_set.
3957 * cli/cli-interp.c (cli_interpreter_init): New
3958 parameter top_level.
3959 * tui/tui-interp.c (tui_init): New parameter top_level.
3961 * mi/mi-interp.c (mi_new_thread): New.
3962 (mi_interpreter_init): If top level, register
3963 observer for new threads.
3965 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
3967 2008-03-14 Pedro Alves <pedro@codesourcery.com>
3969 * top.c (execute_command): Disable break and stop
3970 commands in async mode.
3972 2008-03-14 Pedro Alves <pedro@codesourcery.com>
3975 2008-03-14 Pedro Alves <pedro@codesourcery.com>
3976 * inf-loop.c (inferior_event_handler): Don't include remote.h.
3977 Call target_stop in the INF_QUIT_REQ case.
3978 * Makefile.in (inf-loop.o): Update.
3980 2008-03-14 Pedro Alves <pedro@codesourcery.com>
3982 * inf-loop.c (inferior_event_handler): Don't include remote.h.
3983 Call target_stop in the INF_QUIT_REQ case.
3984 * Makefile.in (inf-loop.o): Update.
3986 2008-03-14 Pedro Alves <pedro@codesourcery.com>
3988 * top.c (execute_command): Enable break, info and interrupt
3989 commands in async mode.
3991 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
3992 Daniel Jacobowitz <dan@codesourcery.com>
3994 * breakpoint.h (breakpoint_restore_shadows): New
3996 * breakpoint.c (breakpoint_restore_shadows): New.
3997 (read_memory_nobpt): Delete.
3998 * gdbcore.h (read_memory_nobpt): Delete declaration.
3999 * target.c (memory_xfer_partial): Call
4000 breakpoint_restore_shadows.
4001 (restore_show_memory_breakpoints)
4002 (make_show_memory_beakpoints_cleanup): New.
4003 (show_memory_breakpoints): New.
4004 * target.h (make_show_memory_beakpoints_cleanup): Declare.
4005 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
4006 Make sure we see memory breakpoints when checking if
4007 breakpoint is still there.
4008 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
4009 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
4010 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
4011 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
4013 2008-03-12 Pedro Alves <pedro@codesourcery.com>
4015 * thread.c (add_thread): Use printf_unfiltered to print.
4017 2008-03-12 Joel Brobecker <brobecker@gnat.com>
4019 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
4020 that is true only on x86-solaris and x86_64-solaris.
4021 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
4022 with proc_get_LDT_entry.
4024 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
4026 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
4027 * config.in, configure: Regenerate.
4028 * fork-child.c (fork_inferior): Call create_tty_session.
4029 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
4030 (create_tty_session): New function.
4031 * terminal.h: Declare create_tty_session.
4033 2008-03-12 Alan Modra <amodra@bigpond.net.au>
4036 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
4037 * mipsread.c: Include elf/internal.h.
4038 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
4041 2008-03-11 Markus Deuling <deuling@de.ibm.com>
4043 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
4044 to get at the current architecture and at the target specific vector.
4045 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
4046 remove define of I387_ST0_REGNUM.
4048 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
4050 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
4051 get at the current architecture
4052 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
4055 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
4056 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
4058 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
4059 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
4060 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
4062 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
4063 at the target specific vector.
4065 (i386_get_longjmp_target): Use get_frame_arch to get at the current
4066 architecture. Use gdbarch_tdep to get at the target specific vector.
4068 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
4069 update caller. Use gdbarch_tdep to get at the target specific vector.
4071 (i386_register_to_value: Use get_frame_arch to get at the current
4074 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
4077 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
4078 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
4079 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
4080 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
4082 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
4085 (i387_convert_register_p, i387_register_to_value,
4086 i387_value_to_register): Update call for i386_fp_regnum_p.
4088 * i387-tdep.h: Remove comment.
4089 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
4090 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
4091 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
4092 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
4093 I387_MXCSR_REGNUM): Add target specific vector as parameter.
4095 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
4097 * Makefile.in (fork-child.o): Update.
4098 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
4099 argument. Gather all gdbserver features together.
4100 * fork-child.c (exec_wrapper): New variable.
4101 (fork_inferior): Use it.
4102 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
4103 (unset_exec_wrapper_command, _initialize_fork_child): New.
4105 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
4107 * source.c (directory_command): Modify the determination of
4108 condition of terminal "from_tty".
4110 2008-03-10 Matt Rice <ratmice@gmail.com>
4112 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
4114 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
4116 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
4117 of the data passing to strtoulst function.
4118 (info_spu_signal_command): Likewise.
4120 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
4122 * mi/mi-interp.c (mi_command_loop): Remove
4125 2008-03-07 Joel Brobecker <brobecker@adacore.com>
4127 * remote.c (extended_remote_attach_1): Make local variable pid an int
4130 2008-03-07 Joel Brobecker <brobecker@adacore.com>
4132 * solib-svr4.c (svr4_same_1): New function, originally extracted
4133 from svr4_same and expanded to handle the sparc64 case.
4134 (svr4_same): Move up and reimplement using svr4_same_1.
4135 (enable_break): Use svr4_same_1 to do shared library name comparisons.
4137 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
4139 * MAINTAINERS: Move self to Paper trail.
4141 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
4143 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
4144 * event-loop.c (call_async_signal_handler): New.
4145 * event-loop.h (call_async_signal_handler)
4146 (gdb_call_async_signal_handler): Declare.
4147 (mark_async_signal_handler): Add comments.
4148 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
4149 * mingw-hdep.c (sigint_event, sigint_handler): New.
4150 (gdb_select): Use them. Wait for the readline signal handler
4152 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
4153 * posix-hdep.c (gdb_call_async_signal_handler): New function.
4154 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
4156 (remote_fileio_ctrl_c_signal_handler): Use
4157 gdb_call_async_signal_handler.
4158 (initialize_remote_fileio): Initialize sigint_fileio_token.
4159 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
4160 not initialize tokens here.
4161 (handle_remote_sigint_twice): Likewise. Reinstall
4162 handle_remote_sigint.
4163 (async_remote_interrupt_twice): Just call interrupt_query.
4164 (cleanup_sigint_signal_handler): Do not delete tokens.
4165 (remote_interrupt, remote_interrupt_twice): Use
4166 gdb_call_async_signal_handler.
4167 (interrupt_query): Reinstall the default signal handler.
4168 (_initialize_remote): Initialize tokens here.
4170 2008-03-04 Joel Brobecker <brobecker@adacore.com>
4172 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
4173 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
4174 Change the type of the lr register to code_ptr.
4175 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
4176 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
4177 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
4178 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
4179 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
4180 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
4181 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
4183 2008-03-03 James E. Wilson <wilson@tuliptree.org>
4185 * MAINTAINERS: Update my email address.
4187 2008-03-03 Keith Seitz <keiths@redhat.com>
4189 From Dave Murphy <davem@devkitpro.org>:
4190 * configure.ac: Set tcl configdir to win under mingw.
4191 * configure: Regenerate.
4193 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
4195 * breakpoint.c (fetch_watchpoint_value): New function.
4196 (update_watchpoint): Set and clear val_valid. Use
4197 fetch_watchpoint_value. Handle unreadable values on the
4198 value chain. Correct check for user-requested array watchpoints.
4199 (breakpoint_init_inferior): Clear val_valid.
4200 (watchpoint_value_print): New function.
4201 (print_it_typical): Use it. Do not free or clear old_val. Print
4202 watchpoints even if old_val == NULL.
4203 (watchpoint_check): Use fetch_watchpoint_value. Check for values
4204 becoming readable or unreadable.
4205 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
4206 (do_enable_watchpoint): Likewise.
4207 * breakpoint.h (struct breakpoint): Update comment for val. Add
4209 * NEWS: Mention watchpoints on inaccessible memory.
4211 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
4213 * Makefile.in (i386-nat.o): Update.
4214 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
4215 i386_use_watchpoints.
4216 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
4217 i386_use_watchpoints.
4218 * i386-nat.c (i386_stopped_data_address): Take two arguments.
4219 (i386_stopped_by_watchpoint): Update call.
4220 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
4221 * config/i386/nm-i386.h: Conditionalize definitions on
4222 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
4223 (i386_use_watchpoints): Declare.
4224 (i386_stopped_data_address): Update.
4225 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
4226 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
4228 2008-02-29 Joel Brobecker <brobecker@adacore.com>
4230 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
4231 * version.in: Bump version to 6.8.50.20080229-cvs.
4233 2008-02-28 Markus Deuling <deuling@de.ibm.com>
4235 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
4238 2008-02-28 Tom Tromey <tromey@redhat.com>
4240 * infcmd.c (notice_args_read): Print result of get_inferior_args.
4242 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
4244 * infcmd.c (kill_if_already_running): Make static. Use
4245 target_require_runnable.
4246 * target.c (target_require_runnable): New.
4247 * target.h (target_require_runnable): Declare.
4249 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
4251 * frame.c (reinit_frame_cache): Only annotate if frames were
4254 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4256 * regformats/reg-ppc.dat: Rename "ps" to "msr".
4257 * regformats/reg-ppc64.dat: Likewise.
4259 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4261 * features/Makefile (%.dat): Emit xmltarget statement.
4263 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
4264 Generate code to set gdbserver_xmltarget in init_registers_${name}.
4266 * regformats/arm-with-iwmmxt.dat: Regenerate.
4267 * regformats/mips64-linux.dat: Regenerate.
4268 * regformats/mips-linux.dat: Regenerate.
4269 * regformats/rs6000/powerpc-32.dat: Regenerate.
4270 * regformats/rs6000/powerpc-64.dat: Regenerate.
4271 * regformats/rs6000/powerpc-e500.dat: Regenerate.
4273 * regformats/reg-arm.dat: Add xmlarch statement.
4274 * regformats/reg-i386.dat: Likewise.
4275 * regformats/reg-i386-linux.dat: Likewise.
4276 * regformats/reg-x86-64-linux.dat: Likewise.
4277 * regformats/reg-spu.dat: Likewise.
4279 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
4281 * remote.c (remote_wait, remote_async_wait): Stop if we receive
4284 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
4286 * utils.c (debug_timestamp): New.
4287 (vfprintf_unfiltered): Print timestamps if requested.
4288 (show_debug_timestamp): New.
4289 (initialize_utils): Register "set debug timestamp".
4290 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
4292 2008-02-27 Joel Brobecker <brobecker@adacore.com>
4294 * breakpoint.c (skip_prologue_sal): New function.
4295 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
4296 computed from a line number.
4298 2008-02-27 Joel Brobecker <brobecker@adacore.com>
4300 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
4301 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
4302 Set PC register type to "code_ptr".
4303 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
4304 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
4305 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
4306 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
4307 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
4308 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
4309 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
4312 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
4314 * regformats/regdat.sh: Rename init_registers function in
4315 generated file to init_registers_${name}.
4317 * regformats/reg-crisv32.dat: Set "name" to crisv32.
4318 * regformats/reg-ppc64.dat: Set "name" to ppc64.
4319 * regformats/reg-s390x.dat: Set "name" to s390x.
4321 2008-02-26 Greg Law <glaw@undo-software.com>
4323 * regcache.c (registers_changed): Call reinit_frame_cache.
4325 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
4327 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
4328 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
4329 and svr4_fetch_objfile_link_map.
4330 * Makefile.in (sh-linux-tdep.o): Update.
4332 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
4334 * amd64-tdep.c (amd64_classify): Add support for decimal float
4336 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
4337 use the struct return convention.
4339 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
4341 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
4342 to old format. Discard breakpoint address if shared library is
4344 (breakpoint_1): Adjust formatting of table header accordingly.
4346 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
4348 * remote.c (remote_get_threadlist): If the response
4349 is empty, don't try to parse it.
4351 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
4353 Unbreak 'target async'.
4354 * serial.c (serial_async): Set the
4355 handler function before enabling async
4358 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
4360 * solib-svr4.c (enable_break): Convert r_brk to a code address.
4362 2008-02-21 Pedro Alves <pedro@codesourcery.com>
4364 * remote.c (extended_remote_attach_1): Set attach_flag.
4365 (extended_remote_create_inferior_1): Clear attach_flag.
4367 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
4369 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
4371 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
4372 * solib-svr4.c (solib_svr4_r_brk): New.
4373 (open_symbol_file_object, svr4_current_sos): Always check the
4375 (svr4_fetch_objfile_link_map): Do not set debug_base.
4376 (enable_break): Use r_brk if it is set.
4377 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
4378 (svr4_lp64_fetch_link_map_offsets): Likewise.
4379 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
4381 2008-02-20 Markus Deuling <deuling@de.ibm.com>
4382 Mark Kettenis <kettenis@gnu.org>
4384 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
4385 trad_frame_saved_reg.
4386 (trad-frame.h): New include.
4388 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
4389 instead of frame_obstack_zalloc.
4390 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
4392 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
4394 2008-02-20 Markus Deuling <deuling@de.ibm.com>
4396 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
4397 from disassemble_info instead of gdbarch_byte_order.
4399 * mips-tdep.c (gdb_print_insn_mips): Likewise.
4400 * arm-tdep.c (gdb_print_insn_arm): Likewise.
4402 2008-02-20 Markus Deuling <deuling@de.ibm.com>
4404 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
4405 gdbarch as parameter.
4407 * gdbarch.{c,h}: Regenerate.
4409 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
4411 * mem-break.c (default_memory_insert_breakpoint)
4412 (default_memory_remove_breakpoint): Likewise.
4413 * target.h (default_memory_remove_breakpoint)
4414 (default_memory_insert_breakpoint): Likewise.
4416 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
4417 parameter. Replace current_gdbarch by gdbarch.
4418 * m32r-tdep.c (m32r_memory_insert_breakpoint)
4419 (m32r_memory_remove_breakpoint): Likewise.
4421 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
4423 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
4425 2008-02-19 Joel Brobecker <brobecker@adacore.com>
4427 * NEWS: Add entry describing Add support improvements.
4429 2008-02-18 Markus Deuling <deuling@de.ibm.com>
4431 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
4434 2008-02-18 Markus Deuling <deuling@de.ibm.com>
4436 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
4437 register_offset_hack anymore.
4439 * regcache.{c,h} (register_offset_hack): Remove.
4441 2008-02-18 Markus Deuling <deuling@de.ibm.com>
4443 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
4445 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
4446 current_gdbarch by gdbarch.
4447 (hppa64_hpux_find_global_pointer): Likewise.
4448 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
4449 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
4450 find_global_pointer.
4452 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
4454 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4456 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
4457 of gdbarch_num_regs.
4459 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
4460 replace current_gdbarch by gdbarch.
4461 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
4463 2008-02-18 Markus Deuling <deuling@de.ibm.com>
4465 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
4466 and replace current_gdbarch by gdbarch.
4468 (store_register): Update call for exec_one_dummy_insn.
4469 (fetch_register, store_register): Update call of regmap.
4471 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
4472 parameter and replace current_gdbarch by gdbarch.
4474 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
4475 the current architecture. Update call for getregs_supplies and
4477 (ppcnbsd_fetch_inferior_registers): Likewise.
4479 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
4480 replace current_gdbarch by gdbarch.
4481 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
4482 get_regcache_arch to get at the current architecture. Update call for
4485 2008-02-18 Markus Deuling <deuling@de.ibm.com>
4487 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
4490 2008-02-15 Markus Deuling <deuling@de.ibm.com>
4492 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
4494 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
4496 * NEWS: Mention pending breakpints in MI.
4498 2008-02-14 Markus Deuling <deuling@de.ibm.com>
4500 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
4502 2008-02-13 Markus Deuling <deuling@de.ibm.com>
4504 Add script to build and test GDB using enable-targets=all.
4506 * gdb_buildall.sh: New file.
4508 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
4510 * NEWS (New native configurations): Xtensa GNU/Linux.
4511 (New targets): Xtensa GNU/Linux.
4512 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
4514 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
4515 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
4516 * configure.tgt (xtensa*-*-linux*): New entry.
4517 * xtensa-config.c (xtensa_tdep): New variable.
4518 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
4519 (rmap): Change format based on new macro XTREG.
4520 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
4521 * xtensa-linux-nat.c: New.
4522 * xtensa-linux-tdep.c: New.
4523 * xtensa-xtregs.c: New.
4524 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
4525 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
4526 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
4527 (xtensa_register_t): New field coprocessor.
4528 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
4529 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
4530 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
4531 Update to handle privileged registers.
4532 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
4533 (xtensa_push_dummy_call): Set windowstart register correctly.
4534 (call0_analyze_prologue): Initialize xtensa_default_isa.
4535 (xtensa_derive_tdep): New.
4536 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
4537 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
4538 Call xtensa_derive_tdep().
4539 * config/xtensa/linux.mh: New.
4540 * regformats/reg-xtensa.dat: New.
4542 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
4544 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
4545 (filenames.h): New include.
4546 * Makefile.in (corelow.o): Add dependency for filenames.h.
4548 2008-02-08 Doug Evans <dje@google.com>
4550 * source.c (find_and_open_source): Always rewrite absolute filenames.
4552 2008-02-07 Doug Evans <dje@google.com>
4554 * breakpoint.c: #include "hashtab.h".
4555 (ambiguous_names_p): New fn.
4556 (update_breakpoint_locations): When restoring bp enable status, don't
4557 compare function names if any functions have same name.
4558 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
4560 2008-02-07 Joel Brobecker <brobecker@adacore.com>
4562 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
4563 instead of just a VEC*. Update use of SV.
4564 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
4566 2007-02-07 Joel Brobecker <brobecker@adacore.com>
4568 * NEWS: Put all new commands since gdb-6.7 together.
4570 2007-02-07 Joel Brobecker <brobecker@adacore.com>
4572 * ada-lang.c: #include "vec.h".
4573 (struct string_vector, new_string_vector, string_vector_append):
4575 (char_ptr): New typedef.
4576 (DEF_VEC_P (char_ptr)): New VEC type.
4577 (symbol_completion_add): Update profile to take the new VEC type
4578 instead of the old string_vector structure. Update code accordingly.
4579 (ada_make_symbol_completion_list): Use the new VEC type instead of
4580 the old string_vector structure, and update the code accordingly.
4581 * Makefile.in (ada-lang.o): Add dependency on vec.h.
4583 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
4585 * p-exp.y: Set current_type in missing places.
4586 (leftdiv_is_integer): New static variable.
4587 Typecast right operand of BINOP_DIV to long_double if both operands
4590 2008-02-06 Maciej W. Rozycki <macro@mips.com>
4592 * remote-mips.c (set_breakpoint): Rename to...
4593 (mips_set_breakpoint): ... this.
4594 (clear_breakpoint): Rename to...
4595 (mips_clear_breakpoint): ... this.
4596 (common_breakpoint): Rename to...
4597 (mips_common_breakpoint): ... this.
4598 (check_lsi_error): Rename to...
4599 (mips_check_lsi_error): ... this.
4601 2007-02-05 Joel Brobecker <brobecker@adacore.com>
4603 * language.h (struct language_defn): Add new field
4604 la_make_symbol_completion_list.
4605 * symtab.c (default_make_symbol_completion_list): Renames
4606 make_symbol_completion_list.
4607 (make_symbol_completion_list): New function.
4608 * symtab.h (default_make_symbol_completion_list): Add declaration.
4609 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
4610 (auto_language, local_language): Likewise.
4611 * objc-lang.c (objc_language_defn): Likewise.
4612 * scm-lang.c (scm_language_defn): Likewise.
4613 * m2-lang.c (m2_language_defn): Likewise.
4614 * f-lang.c (f_language_defn): Likewise.
4615 * jv-lang.c (java_language_defn): Likewise.
4616 * p-lang.c (pascal_language_defn): Likewise.
4617 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
4618 (minimal_language_defn): Likewise.
4619 * ada-lang.c (struct string_vector): New structure.
4620 (new_string_vector, string_vector_append, ada_unqualified_name)
4621 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
4622 (ada_make_symbol_completion_list): New functions.
4623 (ada_language_defn): Set la_make_symbol_completion_list.
4624 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
4625 this function is static.
4627 2008-02-05 Kevin Buettner <kevinb@redhat.com>
4629 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
4630 to account for call site optimizations.
4632 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
4634 * tracepoint.c (read_actions): Handle end-of-text indicator
4635 in action list properly. (Committed by Jim Blandy)
4637 2008-02-05 Jim Blandy <jimb@red-bean.com>
4639 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
4640 pseudoregister, not an internal error.
4641 Reported by: Andrzej Zaborowski
4643 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
4645 * varobj.c (c_value_of_variable): Use xstrdup.
4647 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
4649 Update stored rendition of varobj value when format changes.
4650 * varobj.c (varobj_set_display_format): Recomputed
4652 (c_value_of_variable): Return print_value.
4654 2008-02-03 Doug Evans <dje@google.com>
4656 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
4657 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
4658 * valops.c (value_one): New function.
4659 * value.h (value_one): Declare.
4661 Fix argument promotion for binary arithmetic ops for C.
4662 * valarith.c (unop_result_type): New fn.
4663 (binop_result_type): New fn.
4664 (value_binop): Move result type computation to binop_result_type.
4665 (value_pos, value_neg, value_complement): Move result type
4666 computation to unop_result_type.
4669 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
4670 Return basetype, fieldno if found. All callers updated.
4671 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
4673 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
4674 * symfile.h (fill_in_vptr_fieldno): Delete.
4676 2008-02-02 Doug Evans <dje@google.com>
4678 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
4680 * typeprint.c (*): Whitespace cleanup.
4682 2008-02-02 Mark Kettenis <kettenis@gnu.org>
4683 Luis Machado <luisgpm@br.ibm.com>
4684 Thiago Jung Bauermann <bauerman@br.ibm.com>
4686 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
4687 don't fit into registerson the stack the way GCC does.
4689 2008-02-01 Joel Brobecker <brobecker@adacore.com>
4691 * symtab.c (symbol_set_names): Do not add an entry in the demangling
4692 hash table for Ada symbols. Just store the linkage name as is,
4693 and leave the demangled_name as NULL.
4695 2007-02-01 Joel Brobecker <brobecker@adacore.com>
4697 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
4698 in the global scope.
4699 (new_symbol): Likewise.
4701 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
4703 * breakpoint.c (break_command_1): Return void.
4704 (break_command_really): Return void. Rethrow
4705 exceptions instead of returning.
4706 (gdb_breakpoint): Remove the error_message parameter.
4707 Return void. Rename to set_breakpoint.
4708 * gdb.h (gdb_breakpoint): Rename and move to...
4709 * breakpoint.h (set_breakpoint): ...here.
4710 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
4711 event hooks even if exception is thrown. Adjust to
4712 gdb_breakpoint interface changes.
4715 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
4717 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
4718 float in both first and second word in the doubleword, to support
4721 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
4723 Properly rethrow exception. This fixes errors
4724 about non-existent functions for -break-insert.
4725 * breakpoint.c (break_command_really): Use throw_exception
4726 for rethrowing. If rethrowing, don't print the exception.
4728 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4730 * NEWS: Mention Decimal Floating Point support.
4732 2008-01-31 Joel Brobecker <brobecker@adacore.com>
4734 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
4735 value type to builtin_type_void_func_ptr.
4737 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
4739 * s390-tdep.c (is_float_singleton, is_float_like,
4740 alignment_of, s390_return_value): Make checks for
4741 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
4743 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
4744 Thiago Jung Bauermann <bauerman@br.ibm.com>
4746 * infcmd.c (default_print_registers_info): Also print hex
4747 raw contents for TYPE_CODE_DECFLOAT registers.
4748 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
4749 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
4750 (rs6000_register_name): Add support for DFP pseudo-registers.
4751 (rs6000_pseudo_register_type): Likewise.
4752 rs6000_pseudo_register_reggroup_p): Likewise.
4753 (ppc_pseudo_register_read): New function.
4754 (ppc_pseudo_register_write): Likewise.
4755 (rs6000_pseudo_register_read): Likewise.
4756 (rs6000_pseudo_register_write): Likewise.
4757 (e500_pseudo_register_read): Move checks to
4758 rs6000_pseudo_register_read.
4759 (e500_pseudo_register_write): Move checks to
4760 rs6000_pseudo_register_write.
4761 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
4762 rs6000_pseudo_register_read and rs6000_pseudo_register_write
4763 in gdbarch if SPE or DFP is available. Adjust gdbarch's
4764 num_pseudo_regs to account for DFP pseudo regs.
4766 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4768 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
4769 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
4770 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
4771 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
4772 e500_pseudo_register_read, e500_pseudo_register_write): Use
4773 IS_SPE_PSEUDOREG macro.
4774 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
4775 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
4776 Remove initialization of tdep->ppc_ev31_regnum.
4778 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
4780 * printcmd.c (print_formatted): Handle references as for unformatted
4783 2008-01-30 Joel Brobecker <brobecker@adacore.com>
4785 * eval.c (evaluate_subexp_standard): Add handling of user
4786 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
4788 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
4790 * eval.c (evaluate_subexp_standard): Support
4791 BINOP_INTDIV opcode.
4793 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
4795 * valarith.c (value_binop): Add floating-point BINOP_MIN and
4797 For BINOP_EXP, use length and signedness of left operand only for
4798 result, as for shifts.
4799 For integral operands to BINOP_EXP, use new integer_pow and
4800 uinteger_pow functions so as to get full range of results.
4801 (integer_pow): New function.
4802 (uinteger_pow): New function.
4804 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
4806 Use vector for varobj_list_children interface.
4807 * gdb/varobj.c (varobj_list_children): Return vector
4809 * gdb/varobj.h (varobj_list_children): Adjust
4811 (varobj_p): Declare. Declare vector thereof.
4812 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
4813 for varobj_list_children change.
4814 * Makefile.in (varobj_h): Update dependencies.
4816 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
4818 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
4819 TYPE_CODE_DECFLOAT arguments.
4820 (ppc64_sysv_abi_push_dummy_call) Likewise.
4821 (get_decimal_float_return_value): New function.
4822 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
4823 values by calling get_decimal_float_return_value.
4824 (ppc64_sysv_abi_return_value): Likewise.
4826 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
4828 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
4829 for preprocessor macro information. Formatting changes.
4831 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
4833 * remote.c (struct remote_state): Add cached_wait_status.
4834 (remote_exec_file): New variable.
4835 (PACKET_vAttach, PACKET_vRun): New constants.
4836 (extended_remote_restart): Do not query for status.
4837 (struct start_remote_args): New.
4838 (remote_start_remote): Take it as a second argument. Check
4839 whether the target is running. Issue an error for non-running
4840 non-extended targets. Cache the wait status. Set inferior_ptid
4842 (remote_open_1): Prompt to disconnect non-running targets. Make
4843 sure the target is marked running. Do not set inferior_ptid here.
4844 Update call to remote_start_remote. Do not call remote_check_symbols
4845 if the target is not running.
4846 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
4847 argument. Handle a non-running target.
4848 (remote_detach): Use it.
4849 (extended_remote_detach): New.
4850 (remote_disconnect): Fix typo. Use remoute_mourn_1.
4851 (extended_remote_attach_1, extended_remote_attach)
4852 (extended_async_remote_attach): New.
4853 (remote_vcont_resume): Remove unused variable.
4854 (remote_wait, remote_async_wait): Use any cached wait status.
4855 (putpkt_binary, getpkt): Clear any cached wait status.
4856 (extended_remoute_mourn_1): New.
4857 (extended_remote_mourn): Use it.
4858 (extended_async_remote_mourn, extended_remote_run): New.
4859 (extended_remote_create_inferior_1): New.
4860 (extended_remote_create_inferior): Use it.
4861 (extended_remote_async_create_inferior): Likewise.
4862 (remote_xfer_partial): Skip for non-executing targets.
4863 (init_extended_remote_ops): Set to_detach and to_attach.
4864 (init_extended_async_remote_ops): Likewise. Use
4865 extended_async_remote_mourn.
4866 (_initialize_remote): Register vAttach, vRun, and
4867 set remote exec-file.
4868 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
4870 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
4872 * Makefile.in (symfile.o): Update.
4873 * NEWS: Mention exec tracing support.
4874 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
4876 * infcmd.c (kill_if_already_running, detach_command)
4877 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
4878 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
4879 (follow_exec): Do not check may_follow_exec. Do not mourn and push
4880 targets. Apply the sysroot path to the loaded executable. Use
4881 no_shared_libraries.
4882 * linux-nat.c (linux_child_follow_fork): Print fork following
4883 messages if verbose.
4884 (kill_wait_callback): Kill again before waiting a second time.
4885 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
4886 no_shared_libraries.
4888 2008-01-29 Joel Brobecker <brobecker@adacore.com>
4890 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
4892 2008-01-29 Joel Brobecker <brobecker@adacore.com>
4894 * nto-tdep.h: Remove #include "defs.h".
4895 * nto-tdep.c: Add #include "defs.h".
4896 * Makefile.in (nto_tdep_h): Update dependencies.
4897 (nto-tdep.o): Likewise.
4899 2008-01-29 Joel Brobecker <brobecker@adacore.com>
4901 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
4903 (proceed, start_remote): Update call to wait_for_inferior.
4904 * inferior.h (wait_for_inferior): Update declaration.
4905 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
4906 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
4907 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
4908 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
4910 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
4912 * varobj (adjust_value_for_child_access): Added checking for
4913 returned value from gdb_value_ind.
4914 (c_describe_child): Likewise.
4915 (cplus_describe_child): Fixed a typo.
4917 2008-01-29 Jim Blandy <jimb@red-bean.com>
4919 * MAINTAINERS: Update my info.
4921 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
4923 Use multiple locations for hardware watchpoints.
4924 This eliminates the need to traverse value chain, doing
4925 various checks, in three different places.
4927 * breakpoint.h (struct bp_location): New fields
4928 lengths and watchpoint_type.
4929 (struct breakpoint): Remove the val_chain field.
4930 * breakpoint.c (is_hardware_watchpoint): New.
4931 (free_valchain): Remove.
4932 (update_watchpoint): New.
4933 (insert_bp_location): For hardware watchpoint, just
4935 (insert_breakpoints): Call update_watchpoint_locations
4936 on all watchpoints. If we have failed to insert
4937 any location of a hardware watchpoint, remove all inserted
4939 (remove_breakpoint): For hardware watchpoints, directly
4941 (watchpoints_triggered): Iterate over locations.
4942 (bpstat_stop_status): Use only first location of
4943 a resource watchpoint.
4944 (delete_breakpoint): Don't call free_valchain.
4945 (print_one_breakpoint): Don't print all
4946 locations for watchpoints.
4947 (breakpoint_re_set_one): Use update_watchpoint for
4950 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
4952 Don't reset watchpoint block on solib load.
4954 * breakpoint.c (insert_bp_location): For watchpoints,
4955 recompute condition.
4956 (breakpoint_re_set_one): Instead of recomputing value
4957 and condition for watchpoints, just reset value and
4958 let insert_breakpoints/insert_bp_location recompute it.
4959 Don't do anything about disabled watchpoint.
4961 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
4963 * valarith.c (value_binop): Handle unsigned integer
4966 2008-01-28 Kevin Buettner <kevinb@redhat.com>
4968 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
4969 instruction pattern that appears frequently in position
4970 independent code. Fix bug in code which looks for "fmov" and
4971 backtracks if no "fmov" is found.
4973 2008-01-28 Doug Evans <dje@google.com>
4975 * dbxread.c (read_dbx_symtab): Fix indentation.
4976 Reformat comments to 80 columns.
4977 Move local var def closer to only use.
4979 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
4981 * fork-child.c (SHELL_FILE): Remove #ifndef.
4982 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
4984 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
4986 * i386-tdep.c (i386_skip_noop): New function.
4987 (i386_analyze_prologue): Call i386_skip_noop function.
4989 2008-01-24 Michael Snyder <msnyder@specifix.com>
4991 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
4992 * win32-nat.c (win32_xfer_partial): Ditto.
4993 * target.c (default_xfer_partial): Minor whitespace adjustment.
4995 2008-01-24 Pedro Alves <pedro@codesourcery.com>
4997 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
4998 strip bit 1 even if pc doesn't point to thumb code.
5000 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
5002 * remote.c (remote_wait): Handle SIGINT between packets.
5003 (remote_async_wait): Likewise.
5005 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
5006 Chris Demetriou <cgd@google.com>
5008 * thread.c (add_thread_silent): Renamed
5010 (print_thread_events): New variable definition.
5011 (show_print_thread_events): New function.
5012 (_initialize_thread): Add "set print thread-events" and
5013 "show print thread-events" commands.
5014 (add_thread): Announce new thread.
5015 * gdbthread.h (add_thread_silent): Declare.
5016 (print_thread_events): New variable declaration.
5017 * inf-ttrace.c (inf_ttrace_wait): Don't
5018 inform about new thread, as add_thread is always
5019 called too, and will take care of that.
5020 * infrun.c (handle_inferior_event): Likewise.
5021 * procfs.c (procfs_wait): Likewise.
5022 * remote.c (remote_currthread): Likewise.
5023 * sol-thread.c (sol_thread_wait): Likewise.
5024 * win32-nat.c (get_win32_debug_event): Likewise.
5025 * linux-thread-db.c (attach_thread): Likewise.
5026 Remove the verbose parameter.
5027 (check_event): Make detach_thread be verbose
5028 only if print_thread_events is set.
5029 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
5030 about new thread. This is called only from
5031 linux-thread-db.c:attach_thread, which will take care.
5032 Remove the verbose parameter.
5033 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
5035 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
5037 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
5039 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
5041 * breakpoint.c (break_command_really): New parameter
5043 (break_command_1): Pass 0 as
5044 ignore_count to break_command_really.
5045 (gdb_breakpoint): Pass ignore_count to
5046 break_command_really.
5048 2008-01-21 Kevin Buettner <kevinb@redhat.com>
5050 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
5051 sigcontext struct via pointer.
5052 (struct sigframe comment): Update to show new field `psc'.
5054 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
5056 * infrun.c (handle_inferior_event): If
5057 we failed to remove breakpoints, error,
5058 don't try to increment PC by hand.
5060 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
5062 Add NetBSD/hppa target and host support.
5064 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
5065 (hppabsd_gregset): Move to ...
5066 (hppabsd_regset_from_core_section): Rename
5067 hppaobsd_regset_from_core_section and move to ...
5068 (hppabsd_find_global_pointer): Update comment.
5069 (hppabsd_init_abi): Make global. Do not register
5070 hppabsd_regset_from_core_section.
5071 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
5073 (_initialize_hppabsd_tdep): Move to ...
5074 * hppaobsd-tdep.c: ... here. New file.
5075 * hppnbsd-tdep.c: New file.
5076 * hppnbsd-nat.c: New file.
5077 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
5078 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5079 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
5080 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
5081 * configure.host (hppa*-*-netbsd*): New entry.
5082 * configure.tgt (hppa*-*-netbsd*): New entry.
5083 (hppa*-*-openbsd*): Update.
5084 * NEWS (New native configuration): Mention NetBSD/hppa.
5085 (New targets): Mention NetBSD/hppa.
5087 2008-01-18 Markus Deuling <deuling@de.ibm.com>
5089 * gdbarch.sh (function_list): Add new property bits_big_endian to
5091 * gdbarch.{c,h}: Regenerate.
5093 * value.c (struct value): Replace BITS_BIG_ENDIAN by
5094 gdbarch_bits_big_endian (comment).
5095 (unpack_field_as_long, modify_field): Likewise.
5096 * value.h: Likewise (comment).
5097 * valops.c (value_slice): Likewise.
5098 * valarith.c (value_subscript, value_bit_index): Likewise.
5099 * gdbtypes.h (field): Likewise (comment).
5100 * eval.c (evaluate_subexp_standard): Likewise.
5101 * dwarf2read.c (dwarf2_add_field): Likewise.
5102 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
5103 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
5105 * defs.h (BITS_BIG_ENDIAN): Remove.
5107 2008-01-18 Markus Deuling <deuling@de.ibm.com>
5109 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
5111 * m2-exp.y (yylex): Likewise.
5112 * objc-exp.y (yylex): Likewise.
5114 * defs.h (DEPRECATED_STREQN): Remove.
5116 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
5118 * MAINTAINERS: Update my email address.
5120 2008-01-17 Jim Blandy <jimb@codesourcery.com>
5122 * README: Mention gdbserver/README.
5124 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
5126 * valarith.c (value_binop): Handle BINOP_INTDIV
5127 for unsigned and signed integers.
5129 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
5131 * s390-tdep.c (s390_gdbarch_init): Set default long double
5132 type to 128-bit IEEE quad.
5134 2008-01-17 Joel Brobecker <brobecker@adacore.com>
5136 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
5138 2008-01-16 Mark Kettenis <kettenis@gnu.org>
5140 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
5142 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
5143 * value.c: All callers changed.
5145 2008-01-16 Markus Deuling <deuling@de.ibm.com>
5147 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
5148 DEPRECATED_STREQ by its expression.
5149 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
5150 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
5151 (scan_xcoff_symtab): Likewise.
5152 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
5153 * f-lang.c (find_common_for_function): Likewise.
5154 * objc-exp.y (parse_number): Likewise.
5156 * defs.h (DEPRECATED_STREQ): Remove.
5158 2008-01-16 Markus Deuling <deuling@de.ibm.com>
5160 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
5161 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
5162 get_frame_arch to get at the current_architecture. Update AM33_MODE
5164 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
5165 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
5167 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
5169 2008-01-16 Markus Deuling <deuling@de.ibm.com>
5171 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
5173 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
5175 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
5176 current_gdbarch by gdbarch. Update caller.
5178 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
5179 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
5180 the current architecture. Update calls of
5181 amd64_native_gregset_supplies_p.
5182 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
5183 (amd64bsd_store_inferior_registers): Likewise.
5185 2008-01-16 Markus Deuling <deuling@de.ibm.com>
5187 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
5188 Replace current_gdbarch by gdbarch. Update caller.
5190 2008-01-16 Markus Deuling <deuling@de.ibm.com>
5192 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
5193 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
5194 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
5195 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
5196 (stabsect_build_psymtabs): Fix indentation.
5198 2008-01-15 Michael Snyder <msnyder@specifix.com>
5200 * corelow.c (core_xfer_partial): Comment, cut/paste error.
5202 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
5204 * win32-nat.c (win32_create_inferior): Restore code calling
5205 CloseHandle on ProcessInformation structure.
5207 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
5209 * configure.ac: Check for void * as 3 argument of ptrace.
5210 * configure: regenerate.
5212 2008-01-11 Markus Deuling <deuling@de.ibm.com>
5214 * alpha-tdep.c (alpha_heuristic_proc_start)
5215 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
5216 current_gdbarch by gdbarch.
5218 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
5219 current architecture by frame_info. Update alpha_heuristic_proc_start
5222 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
5223 get_frame_arch to get at the current architecture by frame_info. Update
5224 alpha_sigtramp_register_address call.
5226 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
5227 current_gdbarch by gdbarch. Update caller.
5228 (convert_to_extended, convert_from_extended): Add endianess parameter
5229 for comparison. Update caller.
5230 (arm_extract_return_value, arm_store_return_value): Use
5231 get_regcache_arch to get at the current architecture.
5233 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
5234 current_gdbarch by gdbarch. Update caller.
5235 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
5236 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
5238 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
5239 gdbarch as parameter. Update caller.
5240 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
5241 current_gdbarch by gdbarch. Update caller.
5243 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
5244 update caller. Replace current_gdbarch by gdbarch.
5246 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
5247 the current architecture. Replace current_gdbarch by gdbarch.
5248 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
5249 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
5250 expression. Add gdbarch as parameter and replace current_gdbarch with
5252 (M6811_TDEP): Remove.
5253 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
5255 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
5256 current_gdbarch by gdbarch. Update caller.
5258 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
5260 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
5263 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
5264 caller. Relace current_gdbarch by gdbarch.
5265 (altivec_register_p, spe_register_p): Likewise.
5266 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
5268 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
5269 altivec_register_p and spe_register_p.
5271 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
5272 caller. Replace current_gdbarch by gdbarch.
5273 (score_analyze_prologue): use get_frame_arch to get at the current
5276 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
5277 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
5278 current_gdbarch by gdbarch. Update caller.
5279 (sparc_frame_cache): Use get_frame_arch to get at the current
5281 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
5282 sparc_analyze_prologue.
5284 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
5287 2008-01-11 Markus Deuling <deuling@de.ibm.com>
5289 * exec.c: #include "arch-utils.h"
5290 (print_section_info): Use gdbarch_from_bfd to get at the
5291 current architecture. Replace current_gdbarch. Fix indention. Replace
5292 deprecated_print_address_numeric by paddress.
5293 * Makefile.in (exec.o) Add dependency to arch-utils.h.
5295 * valprint.c (val_print_string): Replace
5296 deprecated_print_address_numeric.
5297 * tracepoint.c (trace_mention, scope_info): Likewise.
5298 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
5299 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
5300 (maintenance_check_symtabs): Likewise.
5301 * symfile.c (list_overlays_command): Likewise.
5302 * stack.c (frame_info, print_block_frame_labels): Likewise.
5303 * printcmd.c (print_address, print_address_demangle)
5304 (address_info): Likewise.
5305 * corefile.c (memory_error): Likewise.
5306 * infcmd.c (jump_command): Likewise.
5307 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
5308 (mention, delete_breakpoint): Likewise.
5309 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
5310 * dwarf2read.c (dump_die): Likewise.
5311 * ada-valprint.c (ada_val_print_1): Likewise.
5312 * f-valprint.c (f_val_print): Likewise.
5313 * linux-fork.c (info_forks_command): Likewise.
5314 * m32r-com.c (m32r_load_section, m32r_load)
5315 (m32r_upload_command): Likewise.
5317 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
5319 2008-01-11 Markus Deuling <deuling@de.ibm.com>
5321 * gdbarch.sh (skip_prologue): Add gdbarch
5323 * gdbarch.{c,h}: Regenerate.
5325 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
5326 * amd64-tdep.c (amd64_skip_prologue): Likewise.
5327 * avr-tdep.c (avr_skip_prologue): Likewise.
5328 * cris-tdep.c (cris_skip_prologue): Likewise.
5329 * frv-tdep.c (frv_skip_prologue): Likewise.
5330 * h8300-tdep.c (h8300_skip_prologue): Likewise.
5331 * hppa-tdep.c (hppa_skip_prologue): Likewise.
5332 * i386-tdep.c (i386_skip_prologue): Likewise.
5333 * ia64-tdep.c (ia64_skip_prologue): Likewise.
5334 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
5335 * m32r-tdep.c (m32r_skip_prologue): Likewise.
5336 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
5337 * m68k-tdep.c (m68k_skip_prologue): Likewise.
5338 * m88k-tdep.c (m88k_skip_prologue): Likewise.
5339 * mep-tdep.c (mep_skip_prologue): Likewise.
5340 * mips-tdep.c (mips_skip_prologue): Likewise.
5341 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
5342 * mt-tdep.c (mt_skip_prologue): Likewise.
5343 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
5344 * score-tdep.c (score_skip_prologue): Likewise.
5345 * sh64-tdep.c (sh64_skip_prologue): Likewise.
5346 * sh-tdep.c (sh_skip_prologue): Likewise.
5347 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
5348 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
5349 * spu-tdep.c (spu_skip_prologue): Likewise.
5350 * v850-tdep.c (v850_skip_prologue): Likewise.
5351 * vax-tdep.c (vax_skip_prologue): Likewise.
5352 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5353 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
5355 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
5356 current_gdbarch by gdbarch.
5357 * m32c-tdep.c (m32c_skip_prologue): Likewise.
5358 * s390-tdep.c (s390_skip_prologue): Likewise.
5360 2008-01-10 Doug Evans <dje@google.com>
5362 * defs.h (struct continuation_arg): Fix typo in comment.
5363 * target.c (target_translate_tls_address): Fix comment spelling error.
5365 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
5367 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
5368 (DOUBLEST_SCAN_FORMAT): Likewise.
5369 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
5370 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
5371 * c-exp.y (parse_number): Likewise.
5372 * jv-exp.y (parse_number): Likewise.
5373 * objc-exp.y (parse_number): Likewise.
5374 * p-exp.y (parse_number): Likewise.
5376 2008-01-09 Joel Brobecker <brobecker@adacore.com>
5378 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
5379 (check_typedef): Likewise.
5381 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
5383 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
5384 seen_double_big_d, treat the new H, D, and DD modifiers as length
5387 2008-01-08 Joel Brobecker <brobecker@adacore.com>
5389 * dwarf2read.c (read_enumeration_type): Add comment.
5391 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
5393 * config.in: Regenerate.
5395 2008-01-08 Joel Brobecker <brobecker@adacore.com>
5397 * ada-lang.c (ada_convert_actual): Renames convert_actual.
5399 (ada_convert_actuals): Delete.
5400 * ada-lang.h (ada_convert_actual): Add declaration.
5401 (ada_convert_actuals): Remove declaration.
5402 * infcall.c: #include "ada-lang.h".
5403 (value_arg_coerce): Add new parameter sp. Update function
5404 documetnation. Add handling of Ada function call parameters.
5405 * Makefile.in (infcall.o): Update dependencies.
5407 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
5409 * ada-lang.c (ensure_lval): Fix value lval kind.
5410 (convert_actual): Add handling for arguments passed by reference.
5412 2008-01-08 Doug Evans <dje@google.com>
5414 * dbxread.c (read_dbx_symtab): Fix indentation.
5416 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
5418 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
5419 (valarith.o): Depend on dfp.h.
5420 (valops.o): Likewise.
5421 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
5422 (set_decnumber_context): New function.
5423 (decimal_check_errors): Likewise.
5424 (decimal_from_number): Likewise.
5425 (decimal_to_number): Likewise.
5426 (decimal_from_string): Use set_decnumber_context and
5427 decimal_check_errors.
5428 (decimal_from_integral): New function.
5429 (decimal_from_floating): Likewise.
5430 (decimal_to_double): Likewise.
5431 (promote_decimal): Likewise.
5432 (decimal_binop): Likewise.
5433 (decimal_is_zero): Likewise.
5434 (decimal_compare): Likewise.
5435 (decimal_convert): Likewise.
5436 * dfp.h (decimal_from_integral): New prototype.
5437 (decimal_from_floating): Likewise.
5438 (decimal_to_double): Likewise.
5439 (decimal_binop): Likewise.
5440 (decimal_is_zero): Likewise.
5441 (decimal_compare): Likewise.
5442 (decimal_convert): Likewise.
5443 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
5444 call to value_from_decfloat.
5445 * valarith.c: Include dfp.h.
5446 (value_args_as_decimal): New function.
5447 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
5448 (value_logical_not): Likewise.
5449 (value_equal): Likewise.
5450 (value_less): Likewise.
5451 (value_pos): Likewise.
5452 (value_neg): Formatting fix.
5453 * valops.c: Include dfp.h.
5454 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
5455 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
5456 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
5457 (value_from_decfloat): Remove expect_type argument.
5458 * value.h (value_from_decfloat): Update prototype.
5460 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
5462 Ignore change in name of dynamic linker during
5463 execution on Solaris. This also unbreaks pending breakpoints.
5465 * solist.h (struct target_so_ops): New field same.
5466 * solib-svr4.c (svr4_same): New.
5467 (_initialize_svr4_solib): Register svr4_same.
5468 * solib.c (update_solib_list): Use ops->same, if available.
5470 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
5472 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
5473 when using MS-DOS paths.
5475 2008-01-05 Pedro Alves <pedro@codesourcery.com>
5477 * NEWS: Mention --pid and --core command line behaviour changes.
5479 2008-01-05 Pedro Alves <pedro@codesourcery.com>
5481 * main.c (captured_main): Remove 'count' varible and the
5482 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
5483 --pid options were issued simultaneously. If an explicit pid
5484 option was passed, don't fallback to core file. Detect extra
5485 arguments better in the presence of explicit pid or core
5488 2008-01-05 Joel Brobecker <brobecker@adacore.com>
5490 * ada-lang.c (ada_which_variant_applies): Correctly compute
5491 the value of the discriminant when the variant record is packed.
5493 2008-01-04 Joel Brobecker <brobecker@adacore.com>
5495 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
5496 that are used to differentiate homonyms.
5498 2008-01-04 Jerome Guitton <guitton@adacore.com>
5500 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
5501 when the type is an anonymous pointer type.
5502 (ada_check_typedef): Avoid a seg fault when the type is null.
5503 * ada-typeprint.c (print_array_type): Add support for pointer
5506 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
5508 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
5510 2008-01-04 Joel Brobecker <brobecker@adacore.com>
5512 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
5513 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
5515 2008-01-04 Joel Brobecker <brobecker@adacore.com>
5517 * ada-exp.y (chop_separator): New function.
5518 (write_selectors): Rewrite to re-use chop_separator.
5519 (ada_nget_field_index, get_symbol_field_type): New functions.
5520 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
5523 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5525 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
5526 of SYMBOL_VALUE when working with function symbols.
5528 2008-01-03 Joel Brobecker <brobecker@adacore.com>
5530 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
5531 expressions. These expressions do not need to be rewriten.
5533 2008-01-03 Joel Brobecker <brobecker@adacore.com>
5535 * dwarf2read.c (read_enumeration_type): Flag type as stub if
5536 the given die is a declaration.
5538 2008-01-03 Joel Brobecker <brobecker@adacore.com>
5540 * ada-lang.c (ada_array_bound_from_type): Make non-static.
5541 Handle properly the case when the index type is an enumerated type.
5542 Do not return the subtype of the bounds type, just return the
5543 bounds type directly - this is not needed and is more consistent
5544 with what we do for arrays when no XA parallel type exists.
5546 2008-01-03 Joel Brobecker <brobecker@adacore.com>
5548 * ada-lang.c (static_unwrap_type): Add forward declaration.
5549 (template_to_static_fixed_type): Fields of dynamic types sometimes
5550 also need to be unwrapped. Take this into account.
5551 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
5552 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
5553 * ada-typeprint.c (ada_print_type): Get the typename from
5554 the original type, not the base type.
5556 2008-01-03 Jerome Guitton <guitton@adacore.com>
5558 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
5559 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
5560 Update calls to ada_to_fixed_type.
5561 (ada_template_to_fixed_record_type_1): Ditto, but without looking
5563 (ada_to_fixed_type): Add check_tag parameter; do not look for
5564 tag if null. When looking for a tag, use a fixed record type.
5565 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
5566 * ada-valprint.c (printable_val_type, ada_value_print): Update
5567 calls to ada_to_fixed_type.
5569 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
5571 * doublest.c (convert_floatformat_to_doublest): Call
5572 floatformat_to_doublest instead of floatformat_to_double and use
5574 (convert_doublest_to_floatformat): Call floatformat_from_doublest
5575 instead of floatformat_from_double and use DOUBLEST variables.
5577 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
5579 * MAINTAINERS (Write After Approval): Add self.
5581 2008-01-03 Joel Brobecker <brobecker@adacore.com>
5583 * symfile.c (set_initial_language): Make non-static.
5584 * symfile.h (set_initial_language): Add declaration.
5585 * language.c: #include "symfile.h".
5586 (set_language): Call set_initial_language if the frame language
5587 could not be determined.
5589 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
5591 * eval.c (evaluate_subexp_for_address): Provide frame address to
5592 locate_var_value only if it will be needed.
5594 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5596 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
5598 2008-01-02 Joel Brobecker <brobecker@adacore.com>
5600 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
5601 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
5602 This is needed to make sure that any other treatment applied
5603 to the resulting value does not fail for spurious reason,
5604 such as trying to take the address of this value.
5606 2008-01-02 Joel Brobecker <brobecker@adacore.com>
5608 * ada-lang.c (ada_value_equal): Dereference reference types when
5611 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
5613 Updated copyright notices for most files.
5615 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
5617 * win32-nat.c (psapi_module_handle): Remove static.
5618 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
5619 return first module found if base_address is zero. Don't initialize
5620 psapi function pointers here. Convert to cygwin paths when
5622 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
5623 executable name. Use get_module_name when that fails or when
5625 (_initialize_psapi): New function. Initialize psapi stuff before it is
5626 needed or issue a warning if it is not found. Move psapi_module_handle
5629 2008-01-01 Joel Brobecker <brobecker@adacore.com>
5631 * ada-lang.c (ada_remove_trailing_digits): New function.
5632 (ada_remove_po_subprogram_suffix): New function.
5633 (ada_decode): Improve. Move the description of the algorithm
5634 directly inside the code, instead of in the function global
5637 2008-01-01 Joel Brobecker <brobecker@adacore.com>
5639 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
5640 and always print the dereferenced value.
5642 2008-01-01 Joel Brobecker <brobecker@adacore.com>
5644 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
5645 of the case where the first argument is a reference.
5646 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
5648 2008-01-01 Joel Brobecker <brobecker@adacore.com>
5650 Implement support for Ada interface types.
5652 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
5653 (ada_is_ignored_field): Ignore fields that are a dispatch table
5656 2008-01-01 Joel Brobecker <brobecker@adacore.com>
5658 * top.c (print_gdb_version): Update copyright year.
5660 2008-01-01 Joel Brobecker <brobecker@adacore.com>
5662 * ChangeLog-2007: New ChangeLog rotation.
5663 * ChangeLog: Reset for 2008.
5664 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
5667 For older changes see ChangeLog-2007.
5673 version-control: never