1 2008-09-08 Pedro Alves <pedro@codesourcery.com>
3 Remove the global stop_signal in favour of a per-thread
6 * inferior.h (stop_signal): Delete.
7 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
9 * thread.c (load_infrun_state, save_infrun_state): Remove
10 stop_signal argument. Don't reference it.
12 * infcmd.c (stop_signal): Delete.
13 (program_info): Adjust.
14 * infrun.c (resume): Clear stop_signal.
15 (proceed): Adjust. Pass the last stop_signal to the thread we're
17 (context_switch): Don't context-switch stop_signal.
18 (handle_inferior_event, keep_going): Adjust.
19 (save_inferior_status, restore_inferior_status): Adjust.
21 * fbsd-nat.c: Include "gdbthread.h".
22 (find_signalled_thread, find_stop_signal): New.
23 (fbsd_make_corefile_notes): Use it.
24 * fork-child.c (startup_inferior): Adjust.
26 * linux-nat.c (get_pending_status): Adjust.
27 (linux_nat_do_thread_registers): Adjust.
28 (find_signalled_thread, find_stop_signal): New.
29 (linux_nat_do_thread_registers): Add stop_signal parameter.
30 (struct linux_nat_corefile_thread_data): Add stop_signal member.
31 (linux_nat_corefile_thread_callback): Pass stop_signal.
32 (linux_nat_do_registers): Delete.
33 (linux_nat_make_corefile_notes): Use find_stop_signal. Assume
34 there's always a thread.
36 * procfs.c (find_signalled_thread, find_stop_signal): New.
37 (find_stop_signal): New.
38 (procfs_do_thread_registers): Add stop_signal parameter.
39 (struct procfs_corefile_thread_data): Add stop_signal member.
40 (procfs_corefile_thread_callback): Pass args->stop_signal.
41 (procfs_make_note_section): Find the last stop_signal.
43 * solib-irix.c: Include gdbthread.h.
44 (irix_solib_create_inferior_hook): Adjust.
45 * solib-osf.c: Include gdbthread.h.
46 (osf_solib_create_inferior_hook): Adjust.
47 * solib-sunos.c: Include gdbthread.h.
48 (sunos_solib_create_inferior_hook): Adjust.
49 * solib-svr4.c: Include gdbthread.h.
50 (svr4_solib_create_inferior_hook): Adjust.
52 * win32-nat.c (do_initial_win32_stuff): Adjust.
54 2008-09-08 Pedro Alves <pedro@codesourcery.com>
56 * gdbthread.h (struct thread_info): Add comments around
58 (save_infrun_state, load_infrun_state): Remove proceed_to_finish
60 * thread.c (load_infrun_state, save_infrun_state): Delete
61 proceed_to_finish argument and references to it.
63 * infcall.c (call_function_by_hand): Adjust.
64 * infcmd.c (finish_command): Adjust.
65 * infrun.c (proceed_to_finish): Delete.
66 (clear_proceed_status): Adjust.
67 (context_switch): Don't context-switch proceed_to_finish.
68 (normal_stop, save_inferior_status, restore_inferior_status):
71 2008-09-08 Pedro Alves <pedro@codesourcery.com>
73 * inferior.h (stop_bpstat): Delete.
75 * breakpoint.h (bpstat_do_actions): Remove bpstat* argument.
77 * breakpoint.c (bpstat_do_actions): Rename to ...
78 (bpstat_do_actions_1): ... this. Make static. Change return type
79 to int. Return true if a breakpoint proceeded.
80 (bpstat_do_actions): New, as wrapper around bpstat_do_actions_1.
81 (delete_breakpoint): Don't reference the global stop_bpstat; it's
84 * gdbthread.h (struct thread_info): Add stop_bpstat.
85 (save_infrun_state, load_infrun_state): Remove stop_bpstat
87 * thread.c (load_infrun_state, save_infrun_state): Remove
88 stop_bpstat argument, and the code referencing it.
90 * infcall.c: Include "gdbthread.h".
91 (call_function_by_hand): Adjust.
92 * exceptions.c: Include "gdbthread.h".
93 (throw_exception): Adjust.
94 * infcmd.c (stop_bpstat): Delete.
95 (continue_command): In all-stop, set the ignore count on the
96 thread that reported the stop. In non-stop, set it on the current
98 (finish_command_continuation): Adjust.
99 (program_info): Adjust.
100 * infrun.c (clear_proceed_status): Adjust.
101 (context_switch): Don't context-switch stop_bpstat.
102 (handle_inferior_event): Adjust.
103 (normal_stop): Adjust.
104 (save_inferior_status, restore_inferior_status): Adjust.
106 * inf-loop.c (inferior_event_handler): Remove parameter to
107 bpstat_do_actions call.
108 * top.c (command_loop): Remove parameter to bpstat_do_actions
109 call. Call it unconditionally.
110 * event-top.c (command_handler): Ditto.
111 * python/python.c (execute_gdb_command): Ditto.
113 2008-09-08 Pedro Alves <pedro@codesourcery.com>
115 * inferior.h (step_over_calls): Delete.
117 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
118 step_over_calls argument.
119 * thread.c (save_infrun_state, load_infrun_state): Remove
120 step_over_calls argument. Adjust.
122 * infcmd.c (step_over_calls): Delete.
124 * infrun.c (clear_proceed_status): Adjust.
125 (context_switch): Don't context-switch step_over_calls.
126 (handle_inferior_event, save_inferior_status)
127 (restore_inferior_status): Adjust.
129 2008-09-08 Pedro Alves <pedro@codesourcery.com>
131 Remove context switching in favour of accessing thread_info fields
134 * infrun.c (stepping_over_breakpoint, step_resume_breakpoint):
136 (struct thread_stepping_state): Delete.
138 (follow_inferior_reset_breakpoints, follow_exec)
139 (resume, clear_proceed_status): Adjust.
141 (proceed, start_remote, init_wait_for_inferior): Adjust.
142 (struct execution_control_state): Add event_thread member.
143 (delete_step_resume_breakpoint_callback)
144 (delete_step_thread_step_resume_breakpoint)
145 (delete_step_thread_step_resume_breakpoint_cleanup)
146 (delete_step_thread_step_resume_breakpoint): New.
147 (wait_for_inferior, init_execution_control_state): Use
148 delete_step_thread_step_resume_breakpoint_cleanup.
149 (wait_for_inferior): Set the event_thread.
150 (fetch_inferior_event): Ditto. Delete the step-resume breakpoint
151 with delete_step_thread_step_resume_breakpoint.
152 (init_thread_stepping_state): Change parameter type to
154 (context_switch): Don't context switch prev_pc,
155 stepping_over_breakpoint, step_resume_breakpoint,
156 step_range_start, step_range_end, step_frame_id,
157 tss->stepping_over_breakpoint,
158 tss->stepping_through_solib_after_catch,
159 tss->stepping_through_solib_catchpoints, tss->current_line, or
161 (adjust_pc_after_break, handle_inferior_event)
162 (currently_stepping, step_into_function)
163 (insert_step_resume_breakpoint_at_sal)
164 (insert_longjmp_resume_breakpoint, keep_going): Adjust.
165 (clear_stepping_state): New.
166 (normal_stop): Adjust.
167 (save_inferior_status, restore_inferior_status): Adjust.
169 * gdbthread.h (struct thread_info): Comments describing the
170 members moved here. Add step_after_step_resume_breakpoint.
171 (delete_step_resume_breakpoint): Add thread_info argument.
172 (save_infrun_state, load_infrun_state): Remove prev_pc,
173 trap_expected, step_resume_breakpoint, step_range_start,
174 step_range_end, step_frame_id, another_trap,
175 stepping_through_solib_after_catch,
176 stepping_through_solib_catchpoints, current_line and
177 current_symtab function arguments.
178 (inferior_thread): Declare.
180 * thread.c (inferior_thread): New.
181 (delete_step_resume_breakpoint): Add a thread_info parameter and
183 (load_infrun_state, save_infrun_state): Remove prev_pc,
184 trap_expected, step_resume_breakpoint, step_range_start,
185 step_range_end, step_frame_id, stepping_over_breakpoint,
186 stepping_through_solib_after_catch,
187 stepping_through_solib_catchpoints, current_line and
188 current_symtab args. Remove code referencing them.
190 * infcmd.c (step_range_start, step_range_end, step_frame_id):
192 (step_1, step_once, until_next_command): Adjust.
194 * inferior.h (step_range_start, step_range_end, step_frame_id):
197 * linux-nat.c (linux_child_follow_fork): If following the child,
198 move the step state to it. Adjust.
199 * inf-ptrace.c (inf_ptrace_follow_fork): Ditto.
200 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
202 2008-09-08 Pedro Alves <pedro@codesourcery.com>
204 * bsd-uthread.c (bsd_uthread_find_new_threads): Claim the main
207 2008-09-08 Pedro Alves <pedro@codesourcery.com>
209 * corelow.c (add_to_thread_list): If this is the first time we
210 hear about thread info, update inferior_ptid.
211 (core_open): Clear the thread list and set inferior_ptid before
212 acknowledging a new inferior. Find threads before fetching
213 register info. Give an upper target layer a chance to find and
214 claim new threads. Print core generation and stop signal info
215 after finding new threads.
216 (get_core_register_section): Look at the lwp member of
217 inferior_ptid for detecting if we have threads info, instead of
219 (core_pid_to_str): New.
220 (init_core_ops): Register core_pid_to_str.
222 2008-09-08 Pedro Alves <pedro@codesourcery.com>
224 * spu-linux-nat.c (spu_child_post_startup_inferior)
225 (spu_child_post_attach): Don't add the main thread here.
227 2008-09-08 Pedro Alves <pedro@codesourcery.com>
229 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
231 * gnu-nat.c (inf_validate_procs): If this is the first time we're
232 seeing a thread id, extend the main thread's ptid. If we still
233 have pending execs, don't be verbose about new threads.
234 (gnu_wait, gnu_resume, gnu_attach, gnu_thread_alive)
235 (gnu_pid_to_str, cur_thread, sig_thread_cmd): Adjust.
236 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers):
239 2008-09-08 Pedro Alves <pedro@codesourcery.com>
241 * procfs.c (to_attach): Create a procinfo for the current lwp.
242 Add it to gdb's thread list.
243 (procfs_fetch_registers, procfs_store_registers): Assume there's
245 (procfs_wait): Don't add the main thread here.
246 (procfs_init_inferior): Create a procinfo for the main lwp here.
247 Change main thread's ptid with thread_change_ptid.
248 (procfs_notice_thread): Check for exited threads.
249 (procfs_corefile_thread_callback): Remove check for the main
251 (procfs_make_note_section): Assume there is always a thread.
253 * sol-thread.c (sol_thread_attach): Clear sol_thread_active before
254 attaching. Change the main thread ptid with thread_change_ptid.
255 (sol_thread_detach): Clear sol_thread_active.
256 (sol_thread_wait): Check for exited threads.
257 (sol_thread_create_inferior): Clear sol_thread_active before
258 creating a new inferior. Change the main thread ptid with
260 (sol_thread_mourn_inferior): Clear sol_thread_active.
261 (sol_find_new_threads_callback): Check for exited threads.
263 2008-09-08 Pedro Alves <pedro@codesourcery.com>
265 * inf-ttrace.c (inf_ttrace_wait): On TTEVT_LWP_CREATE and
266 LWP_TERMINATE, resume the caller thread. On TTEVT_LWP_CREATE,
267 TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE, don't stop the whole
268 process, and return TARGET_WAITKIND_IGNORE.
270 2008-09-08 Pedro Alves <pedro@codesourcery.com>
272 * inf-ttrace.c: Include <signal.h>
273 (inf_ttrace_delete_dead_threads_callback): New.
274 (inf_ttrace_resume_lwp): New.
275 (inf_ttrace_resume_callback, inf_ttrace_resume): Rewrite. Don't
276 delete dying threads until they are really dead.
277 (inf_ttrace_wait): After stopping the whole process, delete any
278 dying thread that is really dead by now.
279 (inf_ttrace_thread_alive): Return 1.
280 (inf_ttrace_extra_thread_info): New.
281 (inf_ttrace_target): Register inf_ttrace_extra_thread_info.
283 2008-09-08 Pedro Alves <pedro@codesourcery.com>
285 * inf-ttrace.c (inf_ttrace_follow_fork): Register the main thread
287 (inf_ttrace_attach): Add the main thread.
288 (inf_ttrace_resume_callback): Check for exited threads. Adjust
290 (inf_ttrace_wait): Decorate the main thread's ptid with lwp info
291 using thread_change_ptid, and set its private data. Don't add the
293 (inf_ttrace_pid_to_str): Adjust.
295 2008-09-08 Pedro Alves <pedro@codesourcery.com>
297 * bsd-uthread.c (bsd_uthread_wait): Decorate the main thread with
298 thread_change_ptid. Check for exited threads.
299 (bsd_uthread_find_new_threads): Check for exited threads.
301 2008-09-08 Pedro Alves <pedro@codesourcery.com>
303 * inf-ptrace.c: Include "gdbthread.h".
304 (inf_ptrace_attach): Add the main thread here.
305 * linux-nat.c (linux_nat_attach): Don't add the main thread here.
306 Decorate the main thread id with the lwp id.
308 2008-09-08 Pedro Alves <pedro@codesourcery.com>
310 * linux-nat.c (linux_nat_wait): Update inferior_ptid's ptid with
311 thread_change_ptid. Don't add or mark the main thread as running
313 * fork-child.c (fork_inferior): Add the main thread here.
315 2008-09-08 Jerome Guitton <guitton@adacore.com>
317 * rs6000-tdep.c (rs6000_fetch_instruction)
318 (rs6000_skip_stack_check): New functions.
319 (skip_prologue): Skip stack check sequence.
321 2008-09-08 David Daney <ddaney@avtrex.com>
323 * dummy-frame.h (frame.h): Include it.
324 (struct frame_id): Remove declaration.
326 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
328 * spu-tdep.c (spu_push_dummy_code): New function.
329 (spu_gdbarch_init): Install it.
331 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
333 * gdbarch.sh (gdbarch_dump): Use core_addr_to_string_nz
335 * gdbarch.c: Regenerate.
337 * target.c (target_xfer_partial, debug_print_register): Use
338 core_addr_to_string_nz instead of paddr_nz.
340 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
342 * rs6000-tdep.c (rs6000_gdbarch_init): Setup displaced stepping
343 *before* calling gdbarch_init_osabi.
344 (rs6000_aix_init_osabi): Disable displaced stepping.
346 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
348 * target.c (update_current_target): Do not inherit to_open
350 (pop_target): Call target_close on target_stack instead
352 (pop_all_targets_above): Likewise.
354 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
356 * gnu-v3-abi.c (gnuv3_decode_method_ptr): New function.
357 (gnuv3_print_method_ptr): Use it.
358 (gnuv3_method_ptr_to_value): Likewise.
360 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
362 * nto-tdep.h (struct nto_target_ops): Add gdbarch parameter to
363 register_area callback function.
364 * i386-nto-tdep.c (i386nto_register_area): Add gdbarch parameter.
365 Use it instead of current_gdbarch.
366 * nto-procfs.c (procfs_store_registers): Update call.
368 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
370 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Use
371 regcache architecture instead of current_gdbarch.
373 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
375 * mep-tdep.c (struct mep_prologue): Add gdbarch member.
376 (check_for_saved): Use it instead of current_gdbarch.
377 (is_arg_spill): Add gdbarch paramter. Use it instead
379 (mep_analyze_prologue): Add gdbarch parameter. Pass it
380 to is_arg_spill and check_for_saved.
381 (mep_skip_prologue, mep_analyze_frame_prologue): Update calls.
383 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
385 * hppa-tdep.c (internalize_unwinds): Use objfile architecture
386 instead of current_gdbarch.
388 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
390 * m68k-tdep.h (m68kbsd_fpreg_offset): Add gdbarch parameter.
391 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Add gdbarch paramter.
392 Use it instead of current_gdbarch.
393 (m68kbsd_supply_fpregset): Update call.
394 * m68kbsd-nat.c (m68kbsd_supply_fpregset): Likewise.
395 (m68kbsd_collect_fpregset): Likewise.
397 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
399 * cris-tdep.c (cris_version, cris_mode): Remove.
400 (crisv32_single_step_through_delay): Use tdep->cris_mode.
401 (cris_breakpoint_from_pc): Likewise.
402 (cris_frame_unwind_cache): Use tdep->cris_version.
403 (crisv32_scan_prologue): Likewise.
404 (cris_spec_reg_applicable): Add gdbarch argument.
405 Use tdep->cris_version.
406 (cris_register_size, cris_special_register_name): Update calls.
407 (cris_special_register_name): Add gdbarch argument.
408 (cris_register_name, crisv32_register_name): Update calls.
410 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
412 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Use info->arch
413 instead of current_gdbarch.
415 * sh64-tdep.c (gdb_print_insn_sh64): Remove.
416 (sh64_gdbarch_init): Install print_insn_sh64 directly.
417 * sh-tdep.c (gdb_print_insn_sh): Remove.
418 (sh_gdbarch_init): Install print_insn_sh directly.
420 * mips-tdep.c (gdb_print_insn_mips): Do not check mips_abi
421 from current_gdbarch.
422 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): New functions.
423 (mips_gdbarch_init): Install them instead of gdb_print_insn_mips
424 depending on mips_abi.
426 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
428 * gdbarch.sh (addr_bits_remove): Change type to 'm'.
429 (smash_text_address): Likewise.
430 * gdbarch.c, gdbarch.h: Regenerate.
432 * arch-utils.c (core_addr_identity): Add gdbarch parameter.
433 * arch-utils.h (core_addr_identity): Likewise.
434 * arm-tdep.c (arm_addr_bits_remove): Likewise.
435 (arm_smash_text_address): Likewise.
436 * hppa-tdep.c (hppa_smash_text_address): Likewise.
437 * m88k-tdep.c (m88k_addr_bits_remove): Likewise.
438 * s390-tdep.c (s390_addr_bits_remove): Likewise.
440 * mips-tdep.c (mips_addr_bits_remove): Add gdbarch parameter.
441 Use it instead of current_gdbarch.
443 * arm-tdep.c (arm_prologue_prev_register, arm_unwind_pc,
444 arm_dwarf2_prev_register): Update calls.
445 * m88k-tdep.c (m88k_unwind_pc): Update call.
447 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
449 * dwarf2expr.h (dwarf2_read_address): Add gdbarch argument.
450 * dwarf2expr.c (dwarf2_read_address): Add gdbarch argument.
451 Call gdbarch_integer_to_address directly instead of converting
452 to value and back. Update comment.
453 (execute_stack_op): Update call site.
454 * dwarf2loc.c (find_location_expression): Likewise.
455 (locexpr_describe_location): Update
457 * dwarf2expr.h (struct dwarf_expr_context): Add gdbarch member.
458 * dwarf2-frame.c (execute_stack_op): Initialize ctx->gdbarch.
459 * dwarf2loc. (dwarf2_evaluate_loc_desc): Likewise.
460 (dwarf2_loc_desc_needs_frame): Likewise.
462 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
464 * breakpoint.h (struct bp_location): Change type of section
465 member to "struct obj_section *".
466 * tracepoint.h (struct tracepoint): Likewise.
467 * symtab.h (struct general_symbol_info): Replace bfd_section
468 member with obj_section.
469 (struct symtab_and_line): Change type of section member to
470 "struct obj_section *".
471 (SYMBOL_BFD_SECTION): Remove macro, replace by ...
472 (SYMBOL_OBJ_SECTION): ... this.
474 * minsym.c (prim_record_minimal_symbol_and_info): Record symbol
475 section as obj_section instead of bfd_section.
477 * ada-lang.c (ada_decode_symbol): Use gsymbol->obj_section
478 directly instead of looking of obj_section from bfd_section.
480 * objfiles.h (find_pc_sect_section): Remove.
481 * objfiles.c (find_pc_sect_section): Remove.
482 (find_pc_section): Inline find_pc_sect_section code.
484 * symfile.h (find_pc_overlay): Return struct obj_section *.
485 (find_pc_mapped_section): Likewise.
486 (section_is_overlay, section_is_mapped): Change type of section
487 argument to struct obj_section *.
488 (pc_in_mapped_range, pc_in_unmapped_range): Likewise.
489 (overlay_mapped_address, overlay_unmapped_address): Likewise.
490 (symbol_overlayed_address): Likewise.
491 * symtab.h (symbol_overlayed_address): Likewise.
492 * symfile.c (overlay_is_mapped): Remove.
493 (section_is_mapped): Inline overlay_is_mapped code. Update.
494 (overlay_invalidate_all): Update.
495 (section_is_overlay): Change section argument to type
496 "struct obj_section *". Use bfd_ methods.
497 (pc_in_unmapped_range): Likewise. Handle relocated sections.
498 (pc_in_mapped_range): Likewise. Handle relocated sections.
499 (sections_overlap): Likewise.
500 (overlay_unmapped_address): Likewise.
501 (overlay_mapped_address): Likewise.
502 (symbol_overlayed_address): Likewise.
503 (find_pc_overlay): Return struct obj_section *.
504 (find_pc_mapped_section): Likewise.
505 (list_overlays_command): Update.
506 (map_overlay_command, unmap_overlay_command): Update.
507 (simple_overlay_update): Update.
509 * block.h (blockvector_for_pc_sect): Change section argument
510 to type "struct obj_section *".
511 (block_for_pc_sect): Likewise.
512 * block.c (blockvector_for_pc_sect): Change section argument
513 to type "struct obj_section *".
514 (block_for_pc_sect): Likewise.
515 * symtab.h (find_pc_sect_function, find_pc_sect_psymtab,
516 find_pc_sect_symtab, find_pc_sect_psymbol, find_pc_sect_line,
517 lookup_minimal_symbol_by_pc_section, find_function_start_pc): Likewise.
518 (matching_bfd_sections): Rename to ...
519 (matching_obj_sections): ... this. Update argument types.
520 * blockframe.c (find_pc_sect_function): Likewise.
521 * breakpoint.c (describe_other_breakpoints): Likewise.
522 (breakpoint_has_pc, check_duplicates_for): Likewise.
523 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
524 (lookup_minimal_symbol_by_pc_section): Likewise.
525 * symtab.c (find_pc_sect_psymtab_closer): Likewise.
526 (find_pc_sect_psymtab, find_pc_sect_psymbol, find_pc_sect_symtab,
527 find_pc_sect_line, find_function_start_pc): Likewise.
528 (matching_bfd_sections): Rename to ...
529 (matching_obj_sections): ... this. Update argument types.
531 * blockframe.c (find_pc_partial_function): Update to section
532 type changes. No longer call find_pc_sect_section.
533 (cache_pc_function_section): Change to type "struct obj_section *".
534 * breakpoint.c (resolve_sal_pc): Update to section type changes.
535 * exec.c (xfer_memory): Likewise.
536 * findvar.c (read_var_value): Likewise.
537 * infcmd.c (jump_command): Likewise.
538 * linespec.c (minsym_found): Likewise.
539 * maint.c (maintenance_translate_address): Likewise.
540 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
541 (lookup_solib_trampoline_symbol_by_pc): Likewise.
542 * parse.c (write_exp_msymbol): Likewise.
543 * printcmd.c (build_address_symbolic): Likewise.
544 (address_info, sym_info): Likewise.
545 * symmisc.c (dump_msymbols, print_symbol): Likewise.
546 * symtab.c (fixup_section): Likewise.
547 (fixup_symbol_section, fixup_psymbol_section): Likewise.
548 (find_pc_line, find_function_start_sal): Likewise.
549 * target.c (memory_xfer_partial): Likewise.
550 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline): Likewise.
551 * spu-tdep.c (spu_overlay_update): Likewise.
553 2008-09-04 Doug Evans <dje@google.com>
555 * defs.h (plongest,pulongest): Renamed from paddr_u,paddr_d.
556 Change argument of pulongest from CORE_ADDR to ULONGEST.
558 * utils.c (plongest): Renamed from paddr_d.
559 (pulongest): Renamed from paddr_u, change arg type to ULONGEST.
560 * remote-mips.c (send_srec): Use paddr_nz instead of paddr_u in
561 `CORE_ADDR addr' arg of error message.
563 2008-09-03 Angela Marie Thomas <angela@releasedominatrix.com>
565 * ser-tcp.c (ser_tcp_send_break): New function.
566 (_initialize_ser_tcp): Use ser_tcp_send_break.
567 * ser-tcp.h (ser_tcp_send_break): New prototype.
569 2008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
571 * spu-tdep.c (spu_push_dummy_call): Update all stack pointer slots
572 when allocating stack frame for inferior call.
574 2008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
576 * spu-tdep.c (spu_frame_unwind_cache): Do not attempt to unwind
577 SP or return address if we failed to find a valid frame.
579 2008-09-03 Aleksandar Ristovski <aristovski@qnx.com>
581 * breakpoint.c (breakpoint_init_inferior): Mark as not inserted only
582 non-permanent breakpoints.
583 (bpstat_stop_status): Change enable_state to bp_disabled only for
584 non-permanent breakpoints.
585 (bp_loc_is_permanent): New function.
586 (create_breakpoint): Check if the location points to a permanent
587 breakpoint and if it does, make breakpoint permanent.
588 (update_breakpoint_locations): Make sure new locations of permanent
589 breakpoints are properly initialized.
590 * i386-tdep.c (i386_skip_permanent_breakpoint): New function.
591 (i386_gdbarch_init): Set gdbarch_skip_permanent_breakpoint.
593 2008-09-02 Pedro Alves <pedro@codesourcery.com>
595 * breakpoint.c (insert_breakpoints, update_global_location_list):
596 Check breakpoints_always_inserted_mode instead of
597 always_inserted_mode directly.
599 2008-09-02 Andreas Schwab <schwab@suse.de>
601 * ia64-tdep.c (ia64_get_dyn_info_list): Use obj_section_addr.
603 2008-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
605 Stay compatible after the GCC PR fortran/29635 fix.
606 * dwarf2read.c (process_die <DW_TAG_imported_module>)
607 (process_die <DW_TAG_imported_module>): Do not assert anything about
608 these unsupported tags.
610 2008-08-29 Tom Tromey <tromey@redhat.com>
612 * maint.c (_initialize_maint_cmds): Fix typo.
614 2008-08-29 Tom Tromey <tromey@redhat.com>
616 * dwarf2read.c (dwarf2_build_psymtabs_hard): Copy dirname on
619 2008-08-27 Ulrich Weigand <uweigand@de.ibm.com>
621 * remote.c: Include "gdb_stat.h".
623 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
625 * dummy-frame.h (dummy_frame_pop): Add prototype.
626 * dummy-frame.c: Include "observer.h".
627 (dummy_frame_push): Do not check for stale frames.
628 (dummy_frame_pop): New function.
629 (cleanup_dummy_frames): New function.
630 (_initialize_dummy_frame): Install it as inferior_created observer.
632 * frame.h (struct frame_id): Update comments.
633 (frame_id_inner): Remove prototype.
634 * frame.c (frame_id_inner): Make static. Add comments.
635 (frame_find_by_id): Update frame_id_inner safety net check to avoid
636 false positives for targets using non-contiguous stack ranges.
637 (get_prev_frame_1): Update frame_id_inner safety net check.
638 (frame_pop): Call dummy_frame_pop when popping a dummy frame.
640 * stack.c (return_command): Directly pop the selected frame.
641 * infrun.c (handle_inferior_event): Remove dead code.
642 * i386-tdep.c (i386_push_dummy_call): Update comment.
644 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
646 * breakpoint.c (remove_breakpoint): Do not fail if unable to remove
647 breakpoint from shared library.
649 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
651 * solib-svr4.c (read_program_header): New function.
652 (scan_dyntag_auxv): New function.
653 (elf_locate_base): Use it if scan_dyntag fails.
654 (find_program_interpreter): New function.
655 (enable_break): Use it instead of .interp section.
657 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
659 * remote.h (remote_filename_p, remote_bfd_open): Add prototypes.
660 * remote.c (remote_bfd_iovec_open, remote_bfd_iovec_close,
661 remote_bfd_iovec_pread, remote_bfd_iovec_stat, remote_filename_p,
662 remote_bfd_open): New functions.
663 (remote_hostio_send_command): Fail safely if remote connection
666 * solist.h (solib_open): Remove prototype.
667 (solib_bfd_open): Add prototype.
668 * solib.c: Include "remote.h".
669 (solib_open): Remove, replace by ...
670 (solib_bfd_open): ... this new function. Handle remote BFDs.
671 (solib_map_sections): Replace solib_open by solib_bfd_open.
672 * solib-frv.c: Include "exceptions.h".
673 (enable_break2): Replace solib_open by solib_bfd_open.
674 * solib-svr4.c: Include "exceptions.h".
675 (enable_break): Replace solib_open by solib_bfd_open.
677 * symfile.c: Include "remote.h".
678 (build_id_verify): Handle remote BFDs.
679 (separate_debug_file_exists): Use BFD to access file. Handle
681 (symfile_bfd_open): Handle remote BFDs.
682 (reread_symbols): Handle remote BFDs.
684 * NEWS: Mention "remote:" argument prefix to "set sysroot".
686 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
688 * gdbarch.sh (target_gdbarch): New global variable.
689 (deprecated_current_gdbarch_select_hack): Set it.
690 * gdbarch.c, gdbarch.h: Regenerate.
692 * arch-utils.c (gdbarch_update_p): Use target_gdbarch instead
694 * target-descriptions.c (target_find_description): Likewise.
695 * arm-tdep.c (arm_update_current_architecture): Likewise.
696 (show_fp_model, arm_show_abi, arm_show_fallback_mode,
697 arm_show_force_mode): Likewise.
698 * mips-tdep.c (show_mask_address, show_mipsfpu_command,
699 show_mips_abi): Likewise.
700 * mep-tdep.c (me_module_register_set, current_me_module): Likewise.
702 * target.c (target_translate_tls_address): Use target_gdbarch
703 instead of current_gdbarch.
704 * remote.c (struct packet_reg): Likewise.
705 (get_remote_arch_state, packet_reg_from_regnum,
706 packet_reg_from_pnum, remote_check_symbols, remote_wait,
707 remote_address_masked, remote_insert_breakpoint,
708 remote_insert_hw_breakpoint, remote_read_description): Likewise.
709 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
710 * remote-mips.c (mips_open, mips_common_breakpoint): Likewise.
711 * cris-tdep.c (cris_can_use_hardware_watchpoint): Likewise.
713 * solib.c (solib_open, solib_map_sections, solib_read_symbols,
714 solib_add, info_sharedlibrary_command, solib_address,
715 solib_create_inferior_hook, in_solib_dynsym_resolve_code,
716 solib_global_lookup): Likewise.
717 * solib-frv.c (enable_break2, frv_relocate_main_executable): Likewise.
718 * solib-irix.c (irix_current_sos, irix_open_symbol_file_object):
720 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
721 * solib-svr4.c (exec_entry_point, enable_break, svr4_free_so,
722 set_solib_svr4_fetch_link_map_offsets, svr4_fetch_link_map_offsets):
724 * nto-tdep.c (nto_find_and_open_solib, nto_init_solib_absolute_prefix,
725 nto_truncate_ptr): Likewise.
726 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Likewise.
728 2008-08-26 Luis Machado <luisgpm@br.ibm.com>
730 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections) New structure.
731 (ppc_linux_vmx_regset_sections): New structure.
732 (ppc_linux_fp_regset_sections): New structure.
733 (ppc_linux_init_abi): Select core-file regset based on target
736 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
738 * target.c (debug_print_register): Use regcache_raw_collect
739 instead of regcache_cooked_read. Only handle raw registers.
741 2008-08-25 Pedro Alves <pedro@codesourcery.com>
743 * cp-name-parser.y: Include config.h before system headers.
745 2008-08-25 Ulrich Weigand <uweigand@de.ibm.com>
747 * m88k-tdep.c: Update for unwinder changes.
749 2008-08-24 Tom Tromey <tromey@redhat.com>
751 * s390-tdep.c (s390_address_class_type_flags): Use
752 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1.
753 (s390_address_class_type_flags_to_name): Likewise.
754 (s390_address_class_name_to_type_flags): Likewise.
756 2008-08-24 Tom Tromey <tromey@redhat.com>
758 * rs6000-tdep.c (rs6000_builtin_type_vec128): Don't use
760 * features/rs6000/powerpc-vsx32l.c
761 (initialize_tdesc_powerpc_vsx32l): Update.
762 * features/rs6000/powerpc-vsx32.c
763 (initialize_tdesc_powerpc_vsx32): Update.
764 * features/rs6000/powerpc-vsx64.c
765 (initialize_tdesc_powerpc_vsx64): Update.
766 * features/rs6000/powerpc-vsx64l.c
767 (initialize_tdesc_powerpc_vsx64l): Update.
768 * target-descriptions.c (maint_print_c_tdesc_cmd): Emit
769 TYPE_VECTOR, not TYPE_FLAGS.
771 2008-08-24 Tom Tromey <tromey@redhat.com>
773 * xml-tdesc.c (tdesc_end_union): Update.
774 * stabsread.c (define_symbol): Update.
776 (read_struct_type): Update.
777 (read_enum_type): Update.
778 * spu-tdep.c (spu_builtin_type_vec128): Update.
779 * sh-tdep.c (sh_push_dummy_call_fpu): Update.
780 (sh_push_dummy_call_nofpu): Update.
781 * mdebugread.c (parse_symbol): Update.
782 (parse_symbol): Update.
783 (parse_symbol): Update.
784 (upgrade_type): Update.
785 * jv-lang.c (java_lookup_class): Update.
786 * iq2000-tdep.c (iq2000_pointer_to_address): Update.
787 * i386-tdep.c (i386_mmx_type): Update.
788 (i386_sse_type): Update.
789 * gdbtypes.h (enum type_flag_value): New enum.
790 (enum type_instance_flag_value): New enum.
791 (TYPE_FLAG_UNSIGNED, TYPE_FLAG_NOSIGN, TYPE_FLAG_STUB,
792 TYPE_FLAG_TARGET_STUB, TYPE_FLAG_STATIC, TYPE_FLAG_PROTOTYPED,
793 TYPE_FLAG_INCOMPLETE, TYPE_FLAG_VARARGS, TYPE_FLAG_VECTOR,
794 TYPE_FLAG_FIXED_INSTANCE, TYPE_FLAG_STUB_SUPPORTED,
795 TYPE_FLAG_NOTTEXT): Now enum constants.
796 (TYPE_FLAG_CONST, TYPE_FLAG_VOLATILE, TYPE_FLAG_CODE_SPACE,
797 TYPE_FLAG_DATA_SPACE, TYPE_FLAG_ADDRESS_CLASS_1,
798 TYPE_FLAG_ADDRESS_CLASS_2): Remove.
799 (TYPE_INSTANCE_FLAG_CONST, TYPE_INSTANCE_FLAG_VOLATILE,
800 TYPE_INSTANCE_FLAG_CODE_SPACE, TYPE_INSTANCE_FLAG_DATA_SPACE,
801 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1,
802 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_2): New constants.
803 (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB, TYPE_TARGET_STUB,
804 TYPE_STATIC, TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_VARARGS,
805 TYPE_VECTOR, TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED,
806 TYPE_NOTTEXT): Update.
807 (TYPE_FLAG_ADDRESS_CLASS_ALL): Remove.
808 (TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL): New define.
809 (TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE,
810 TYPE_ADDRESS_CLASS_1, TYPE_ADDRESS_CLASS_2,
811 TYPE_ADDRESS_CLASS_ALL): Update.
812 (struct main_type) <flags>: Remove.
813 <flag_unsigned, flag_nosign, flag_stub, flag_target_stub,
814 flag_static, flag_prototyped, flag_incomplete, flag_varargs,
815 flag_vector, flag_stub_supported, flag_nottext,
816 flag_fixed_instance>: New fields.
817 <nfields, vptr_fieldno>: Move earlier.
818 (TYPE_FLAGS): Remove.
819 * gdbtypes.c (make_pointer_type): Update.
820 (address_space_name_to_int): Update.
821 (address_space_int_to_name): Update.
822 (make_type_with_address_space): Update.
823 (make_cv_type): Update.
824 (create_range_type): Update.
825 (get_discrete_bounds): Update.
826 (create_set_type): Update.
827 (make_vector_type): Update.
828 (smash_to_method_type): Update.
829 (check_typedef): Update.
830 (check_stub_method): Update.
831 (init_type): Individually assign flag fields.
832 (recursive_dump_type): Don't print entire TYPE_FLAGS field. Do
833 print TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED, and TYPE_NOTTEXT.
834 (copy_type_recursive): Copy the entire main type. Don't use
836 * features/rs6000/powerpc-altivec64l.c
837 (initialize_tdesc_powerpc_altivec64l): Update.
838 * features/rs6000/powerpc-altivec64.c
839 (initialize_tdesc_powerpc_altivec64): Update.
840 * features/rs6000/powerpc-altivec32l.c
841 (initialize_tdesc_powerpc_altivec32l): Update.
842 * features/rs6000/powerpc-altivec32.c
843 (initialize_tdesc_powerpc_altivec32): Update.
844 * features/rs6000/powerpc-7400.c (initialize_tdesc_powerpc_7400):
846 * features/arm-with-iwmmxt.c (initialize_tdesc_arm_with_iwmmxt):
848 * dwarf2read.c (read_structure_type): Update.
849 (read_enumeration_type): Likewise.
850 (process_enumeration_scope): Likewise.
851 (read_tag_pointer_type): Likewise.
852 (read_subroutine_type): Likewise.
853 (read_subroutine_type): Likewise.
854 (read_base_type): Likewise.
855 * coffread.c (coff_read_enum_type): Update.
856 * ada-valprint.c (adjust_type_signedness): Update.
857 * ada-typeprint.c (print_record_field_types): Update.
858 * ada-lang.c (packed_array_type): Update.
859 (empty_record): Don't reset TYPE_FLAGS.
860 (ada_template_to_fixed_record_type_1): Update.
861 (ada_template_to_fixed_record_type_1): Likewise.
862 (template_to_static_fixed_type): Likewise.
863 (to_record_with_fixed_variant_part): Likewise.
864 (to_fixed_record_type): Likewise.
865 (to_fixed_array_type): Likewise.
866 (to_static_fixed_type): Likewise.
868 2008-08-23 Jim Blandy <jimb@redhat.com>
871 * symmisc.c (print_symbol_bcache_statistics): Include statistics
872 for the macro bcache.
874 2008-08-23 Tom Tromey <tromey@redhat.com>
876 * macrotab.h (struct macro_definition) <kind>: Shrink to one bit.
879 2008-08-22 Tom Tromey <tromey@redhat.com>
881 * NEWS: Move macro entries back under "New commands".
883 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
885 * breakpoint.c (create_overlay_event_breakpoint): Rename to ...
886 (create_overlay_event_breakpoint_1): ... this. Add OBJFILE parameter.
887 (create_overlay_event_breakpoint): Loop over all objfiles to install
888 multiple instances of the overlay event breakpoint if present.
890 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
892 * spu-tdep.c (spu_overlay_new_objfile): Only consider SPU objfiles.
893 (info_spu_event_command): Command only supported on SPU architecture.
894 (info_spu_signal_command): Likewise.
895 (info_spu_mailbox_command): Likewise.
896 (info_spu_dma_command): Likewise.
897 (info_spu_proxydma_command): Likewise.
899 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
901 * infrun.c (adjust_pc_after_break): Do not call get_thread_regcache
902 if the thread has already exited.
904 2008-08-22 Pedro Alves <pedro@codesourcery.com>
906 * infrun.c (proceed): Move back setting previous_inferior_ptid
908 (wait_for_inferior): ... to here.
909 (fetch_inferior_event): ... and here.
911 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
913 * gdbarch.sh: Include "regcache.h" into gdbarch.c.
914 (deprecated_current_gdbarch_select_hack): Call registers_changed
915 instead of reinit_frame_cache.
916 * gdbarch.c: Regenerate.
918 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
920 * elfread.c (elf_symtab_read): Do not relocate thread-local symbols.
922 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
924 * xcoffread.c (SYMNAME_ALLOC): Correct syntax.
926 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
928 * findvar.c (locate_var_value): Do not call get_frame_arch
929 with a NULL frame argument.
931 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
933 * frame.h (frame_map_regnum_to_name): Remove prototype.
934 (frame_map_name_to_regnum): Remove prototype.
935 * frame.c (frame_map_regnum_to_name): Remove.
936 (frame_map_name_to_regnum): Remove.
937 (frame_unwind_register_value): Use user_reg_map_regnum_to_name
938 instead of frame_map_regnum_to_name.
939 * ax-gdb.c: Include "user-regs.h".
940 (gen_expr): Use user_reg_map_name_to_regnum instead of
941 frame_map_name_to_regnum.
942 * eval.c: Include "user-regs.h".
943 (evaluate_subexp_standard): Use user_reg_map_name_to_regnum
944 instead of frame_map_name_to_regnum.
945 * infcmd.c (registers_info): Likewise.
946 * parse.c: Include "user-regs.h".
947 (write_dollar_variable): Use user_reg_map_name_to_regnum
948 instead of frame_map_name_to_regnum.
949 * tracepoint.c: Include "user-regs.h".
950 (encode_actions): Use user_reg_map_name_to_regnum
951 instead of frame_map_name_to_regnum.
952 * valops.c: Include "user-regs.h".
953 (value_fetch_lazy): Use user_reg_map_regnum_to_name instead
954 of frame_map_regnum_to_name.
956 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
958 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Read
959 and manually relocate .opd contents from BFD instead of reading
960 them from target memory.
962 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
964 * dwarf2read.c (processing_current_prefix): Delete static
966 (process_full_comp_unit): Do not set processing_current_prefix.
967 (dwarf2_full_name): New function.
968 (read_func_scope): Do not set processing_current_prefix. Use
970 (read_structure_type): Do not set processing_current_prefix. Remove
971 unused inner cleanup.
972 (process_structure_scope): Do not set processing_current_prefix.
973 (read_enumeration_type): Use dwarf2_full_name.
974 (determine_class_name): Return a const char *. Put the result
975 on the objfile obstack. Use dwarf2_full_name.
976 (read_namespace_type): New function.
977 (read_namespace): Do not create the type here. Use
979 (read_typedef): Use dwarf2_full_name. Do not pass the name
981 (read_base_type): Do not pass the name to init_type. Handle
983 (read_unspecified_type): Do not pass the name to init_type.
984 (new_symbol): Use dwarf2_full_name instead of
985 processing_current_prefix.
986 (read_type_die): Do not set processing_current_prefix. Handle
988 (determine_prefix): Handle specifications. Return the result
989 on the objfile obstack. Handle unions correctly.
991 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
993 * buildsym.c (add_symbol_to_list): Do not call
994 cp_scan_for_anonymous_namespaces here.
995 (finish_block): Do not call cp_set_block_scope here.
996 * cp-namespace.c (processing_has_namespace_info)
997 (processing_current_prefix): Delete.
998 (cp_initialize_namespace): Do not initialize
999 processing_has_namespace_info.
1000 (cp_scan_for_anonymous_namespaces): Use SYMBOL_DEMANGLED_NAME. Do
1001 not check processing_has_namespace_info.
1002 (cp_set_block_scope): Take prefix and namespace info flag as
1003 arguments. Honor namespaces regardless of a demangled name.
1004 * cp-support.h (processing_has_namespace_info)
1005 (processing_current_prefix): Delete declarations.
1006 (cp_set_block_scope): Update prototype.
1007 * dwarf2read.c (processing_has_namespace_info)
1008 (processing_current_prefix): New static variables.
1009 (read_file_scope): Initialize processing_has_namespace_info.
1010 (read_func_scope): Call cp_set_block_scope for C++.
1011 (new_symbol): Call cp_scan_for_anonymous_namespaces for C++.
1012 * symtab.c (symbol_demangled_name): Accept a const argument.
1013 * symtab.h (symbol_demangled_name): Update prototype.
1015 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1017 * ax-gdb.c (gen_var_ref): Use SYMBOL_LINKAGE_NAME.
1018 * blockframe.c (find_pc_partial_function): Likewise.
1019 * buildsym.c (find_symbol_in_list): Likewise.
1020 * c-valprint.c (c_val_print): Likewise.
1021 * coffread.c (patch_opaque_types, process_coff_symbol): Likewise.
1022 (coff_read_enum_type): Likewise. Use SYMBOL_SET_LINKAGE_NAME.
1023 * cp-support.c (cp_remove_params): Renamed from remove_params and
1025 (overload_list_add_symbol): Update call to remove_params.
1026 * cp-support.h (cp_remove_params): Declare.
1027 * dwarf2read.c (process_enumeration_scope): Use SYMBOL_LINKAGE_NAME.
1028 (dwarf2_const_value): Use SYMBOL_PRINT_NAME.
1029 * expprint.c (dump_subexp_body_standard): Likewise.
1030 * f-valprint.c (info_common_command, there_is_a_visible_common_named):
1031 Use SYMBOL_LINKAGE_NAME to find symbols and SYMBOL_PRINT_NAME
1033 * findvar.c (read_var_value): Use SYMBOL_LINKAGE_NAME.
1034 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
1035 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
1036 (hppa_hpux_skip_trampoline_code): Use SYMBOL_LINKAGE_NAME to find
1037 symbols and SYMBOL_PRINT_NAME for messages.
1038 * jv-lang.c (add_class_symbol): Use SYMBOL_SET_LINKAGE_NAME.
1039 * linespec.c (decode_line_2): Use SYMBOL_LINKAGE_NAME.
1040 * mdebugread.c (parse_symbol): Use SYMBOL_LINKAGE_NAME and
1041 SYMBOL_SET_LINKAGE_NAME.
1042 (mylookup_symbol): Use SYMBOL_LINKAGE_NAME.
1043 * minsyms.c (add_minsym_to_demangled_hash_table): Use
1045 (lookup_minimal_symbol): Use SYMBOL_LINKAGE_NAME or
1046 SYMBOL_MATCHES_SEARCH_NAME, depending on the pass.
1047 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Use SYMBOL_LINKAGE_NAME.
1048 * printcmd.c (build_address_symbolic): Use SYMBOL_LINKAGE_NAME.
1049 (address_info): Use SYMBOL_PRINT_NAME for messages and
1050 SYMBOL_LINKAGE_NAME for lookups.
1051 * sol-thread.c (info_cb): Use SYMBOL_PRINT_NAME for messages.
1052 * stabsread.c (patch_block_stabs, define_symbol)
1053 (read_type, read_enum_type, common_block_end)
1054 (cleanup_undefined_types_1, scan_file_globals): Use
1055 SYMBOL_LINKAGE_NAME, SYMBOL_SET_LINKAGE_NAME, ALL_OBJFILE_MSYMBOLS,
1056 and SYMBOL_PRINT_NAME.
1057 * stack.c (print_frame_args): Use SYMBOL_LINKAGE_NAME.
1058 (print_frame, frame_info): Use SYMBOL_PRINT_NAME for output. Use
1059 cp_remove_params instead of cplus_demangle.
1060 (print_block_frame_labels, print_frame_arg_vars): Use
1061 SYMBOL_LINKAGE_NAME.
1062 * symmisc.c (dump_msymbols): Use ALL_OBJFILE_MSYMBOLS and
1063 SYMBOL_LINKAGE_NAME.
1064 (dump_symtab_1, print_symbol, print_partial_symbols)
1065 (maintenance_check_symtabs): Use SYMBOL_LINKAGE_NAME.
1066 * symtab.h (DEPRECATED_SYMBOL_NAME): Delete.
1067 (SYMBOL_SET_LINKAGE_NAME): New.
1068 (SYMBOL_SET_NAMES): Add a comment.
1069 * tracepoint.c (set_traceframe_context, validate_actionline)
1070 (collect_symbol, scope_info): Use SYMBOL_LINKAGE_NAME for
1071 lookups and SYMBOL_PRINT_NAME for output.
1072 * typeprint.c (typedef_print): Use SYMBOL_LINKAGE_NAME.
1073 * xcoffread.c (process_xcoff_symbol): Use SYMBOL_SET_LINKAGE_NAME.
1075 2008-08-21 Pedro Alves <pedro@codesourcery.com>
1077 * arm-tdep.c (arm_pc_is_thumb): Use obj_section_addr.
1078 * hppa-hpux-tdep.c (hppa_hpux_find_dummy_bpaddr): Likewise.
1079 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Use
1080 obj_section_addr and obj_section_endaddr.
1081 * hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Likewise.
1082 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
1083 * ia64-tdep.c (ia64_find_global_pointer): Likewise.
1084 (find_extant_func_descr): Likewise.
1085 * solib-frv.c (frv_relocate_main_executable): Use
1087 * xstormy16-tdep.c (xstormy16_find_jmp_table_entry): Use
1088 obj_section_addr and obj_section_endaddr.
1090 2008-08-21 Paul N. Hilfinger <hilfinger@adacore.com>
1092 * NEWS: Amplify last entry on boolean types in Ada.
1094 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
1096 * dwarf2read.c (die_specification, dwarf2_extension, follow_die_ref):
1097 Make the dwarf2_cu * parameter output as well as input. Update it if
1098 we follow a reference to another CU.
1099 (read_func_scope, determine_class_name, namespace_name, dwarf2_attr)
1100 (die_type, die_containing_type): Update calls to changed functions.
1101 Use the returned CU along with the returned DIE.
1102 (read_namespace): Use dwarf2_attr instead of dwarf2_extension.
1104 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
1106 * dwarf2read.c (queue_comp_unit): Take an objfile argument. Read
1108 (process_queue): Do not read in the DIEs here.
1109 (psymtab_to_symtab_1): Update call to queue_comp_unit.
1110 (read_full_die): Do not call queue_comp_unit from here.
1111 (maybe_queue_comp_unit): New function.
1112 (follow_die_ref): Use it.
1114 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
1116 * dwarf2read.c (struct attribute): Move earlier.
1117 (struct die_info): Change attrs to a trailing array.
1118 (dwarf_alloc_die): Take the number of attributes. Allocate space
1120 (read_full_die): Update call to dwarf_alloc_die. Do not manually
1121 allocate attributes.
1123 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
1125 * dwarf2read.c (REF_HASH_SIZE): Delete.
1126 (struct dwarf2_cu): Replace die_ref_table with die_hash.
1127 (struct die_info): Remove next_ref.
1128 (store_in_ref_table): Remove offset argument. Rewrite to use
1129 htab_find_slot_with_hash.
1130 (die_hash, die_eq): New.
1131 (read_comp_unit): Allocate the die_hash.
1132 (read_die_and_children): Update call to store_die_ref.
1133 (follow_die_ref): Rewrite to use htab_find_with_hash.
1135 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
1137 * dwarf2read.c (free_die_list, copy_die): Delete.
1138 (dwarf_alloc_die): Take a CU argument. Allocate the new DIE
1140 (read_full_die): Update call to dwarf_alloc_die. Allocate
1141 attributes on the CU obstack.
1142 (free_one_comp_unit): Do not call free_die_list.
1144 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
1146 * dwarf2read.c (read_die_and_children): Ignore NULL DIEs.
1147 (read_die_and_siblings): Likewise. Do not add padding DIEs to the
1149 (read_full_die): Do not allocate DIEs for abbrev 0.
1150 (follow_die_ref): Correct error message.
1152 2008-08-20 Pedro Alves <pedro@codesourcery.com>
1154 * linespec.c (symtab_from_filename): Also throw NOT_FOUND_ERROR if
1155 there are no symbols loaded, instead of throwing a generic error.
1156 (decode_variable): Likewise.
1158 2008-08-20 Pedro Alves <pedro@codesourcery.com>
1160 * objfiles.h (struct obj_section): Remove addr and endaddr fields.
1161 (obj_section_offset, obj_section_addr, obj_section_endaddr): New
1163 * objfiles.c (add_to_objfile_sections): Don't set addr, endaddr
1164 and offset. Use size_t instead of unsigned long.
1165 (build_objfile_section_table): Use size_t instead of unsigned
1167 (objfile_relocate): Don't relocate s->addr and s->endaddr, they're
1169 (find_pc_sect_section): Use obj_section_addr and
1170 obj_section_endaddr.
1171 * symfile.c (symfile.c): Remove code that maps sections
1172 offsets in "addr" to the object's sections.
1173 * blockframe.c (find_pc_partial_function): Use obj_section_endaddr.
1174 * gcore.c (gcore_create_callback): Use obj_section_addr and
1175 obj_section_endaddr.
1176 * maint.c (print_objfile_section_info): Likewise.
1177 * printcmd.c (sym_info): Use obj_section_addr and
1178 obj_section_endaddr.
1179 * symtab.c (fixup_section): Likewise.
1181 2008-08-20 Mark Kettenis <kettenis@gnu.org>
1183 * sparc-tdep.c: Make some comments catch up with reality.
1185 2008-08-20 Vladimir Prus <vladimir@codesourcery.com>
1187 * NEWS: Mention 'set target-async'
1189 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
1191 * infrun.c (resume): If the thread is placed to the deferred step
1192 queue, mark it as running.
1194 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
1196 Make sure target supports non-stop.
1197 * infcmd.c (run_command_1, attach_command): If non-stop mode
1198 is requested, verify the target supports it.
1199 * linux-nat.c (linux_nat_supports_non_stop): New.
1200 (linux_nat_add_target): Register the above.
1201 * target.c (find_default_supports_non_stop)
1202 (target_supports_non_stop): New.
1203 (init_dummy_target): Register find_default_supports_non_stop.
1204 * target.h (struct target_ops): New field to_supports_non_stop.
1205 (target_supports_non_stop): New.
1207 2008-08-19 Pedro Alves <pedro@codesourcery.com>
1208 Vladimir Prus <vladimir@codesourcery.com>
1210 * target.c (target_async_permitted, target_async_permitted_1)
1211 (set_maintenance_target_async_permitted)
1212 (show_maintenance_target_async_permitted): New.
1213 (initialize_targets): Register 'set target-async'.
1214 * target.h (target_async_permitted): Declare.
1215 * linux-nat.c (linux_nat_async_enabled)
1216 (linux_nat_async_permitted, set_maintenance_linux_async_permitted)
1217 (show_maintenance_linux_async_permitted): Remove.
1218 (sigchld_handler, linux_nat_is_async_p, linux_nat_can_async_p)
1219 (get_pending_events, linux_nat_async): Use target_async_permitted.
1220 (linux_nat_set_async_mode): Remove, moving the only used bits
1222 (linux_nat_setup_async): This.
1223 (_initialize_linux_nat): Do not register 'maint set linux-async'.
1224 Use linux_nat_setup_async.
1225 * remote.c (remote_async_permitted, remote_async_permitted_set)
1226 (set_maintenance_remote_async_permitted)
1227 (show_maintenance_remote_async_permitted): Remove.
1228 (remote_open_1, remote_terminal_inferior, remote_can_async_p)
1229 (remote_is_async_p): Use target_async_permitted.
1230 (_initialize_remote): Don't register 'main set remote-async'.
1231 * mi/mi-cmds.c (mi_cmds): Register -list-target-features.
1232 * mi/mi-cmds.h (mi_cmd_list_target_features): New.
1233 * mi/mi-main.c (mi_cmd_list_target_features): New.
1235 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
1237 * target.c (maybe_kill_then_attach)
1238 (maybe_kill_then_create_inferior): Remove.
1239 (update_current_target): Do not default to_attach,
1240 to_create_inferiour, to_is_async_p.
1242 2008-08-19 Paul N. Hilfinger <hilfinger@adacore.com>
1244 Changes for supporting boolean types in debugging data.
1245 * ada-lang.c (discrete_type_high_bound,discrete_type_low_bound): Change
1246 API to return LONGEST values rather than struct values.
1247 (ada_evaluate_subexp): Change to use new API of discrete_type_low_bound
1248 and discrete_type_high_bound.
1249 (to_fixed_range_type): Create a range type in cases where
1250 argument is base type and its limits are representable as ints.
1251 (ada_is_modular_type): Correct so that base type must be integral.
1252 * ada-lex.l (TRUEKEYWORD,FALSEKEYWORD): Make 'true' and 'false'
1253 keywords when they appear alone, since we are phasing out
1254 direct representation of these identifiers in debugging data.
1255 * ada-exp.y: Define 'true' and 'false' as primaries.
1256 (type_boolean): New function.
1257 (type_int,type_long,type_long_long,type_floattype_double)
1258 (type_long_double): Remove uses of current_gdbarch for consistency
1260 (write_int): Change comment to indicate that it might write boolean
1262 * ada-typeprint.c (ada_print_type): Print '(false, true)' for boolean
1263 type, since will no longer be represented as enumerated type in
1265 * ada-valprint.c (print_optional_low_bound): Handle boolean case
1267 * NEWS: Note support boolean types.
1269 2008-08-18 Pedro Alves <pedro@codesourcery.com>
1271 * bsd-uthread.c (bsd_uthread_close): New.
1272 (bsd_uthread_deactivate): Don't cleanup here, just unpush the
1274 (bsd_uthread_solib_loaded): Fix typo.
1275 (bsd_uthread_target): Register bsd_uthread_close.
1277 2008-08-18 Pedro Alves <pedro@codesourcery.com>
1279 * corelow.c (core_open): Assume there was no upper layer left
1280 behind from a previous inferior.
1281 * target.c (pop_all_targets): Rename to ...
1282 (pop_all_targets_above): ... this. Add a target stratum
1283 parameter. Use it instead of hardcoding the dummy_stratum.
1284 (pop_all_targets): New, defer to pop_all_targets_above.
1285 (target_preopen): Use pop_all_targets_above.
1286 * target.h (pop_all_targets_above): Declare.
1288 2008-08-18 Pedro Alves <pedro@codesourcery.com>
1290 * gdbthread.h (thread_change_ptid): Declare.
1291 * infrun.c (infrun_thread_ptid_changed): New.
1292 (_initialize_infrun): Attach infrun_thread_ptid_changed to the
1293 thread_ptid_changed observer.
1294 * regcache.c (regcache_thread_ptid_changed): New.
1295 (_initialize_regcache): Attach regcache_thread_ptid_changed to the
1296 thread_ptid_changed observer.
1297 * thread.c (thread_change_ptid): New.
1299 2008-08-18 Tom Tromey <tromey@redhat.com>
1301 * symfile.c (reread_symbols): Update.
1302 * solib-sunos.c (allocate_rt_common_objfile): Update.
1303 * objfiles.c (allocate_objfile): Update.
1304 * objfiles.h (struct objfile) <md, mmfd, deprecated_obj_private>:
1307 2008-08-18 Tom Tromey <tromey@redhat.com>
1309 * gdbtypes.c (copy_type_recursive): Allocate 'stored' on objfile's
1312 2008-08-18 Daniel Jacobowitz <dan@codesourcery.com>
1314 * rs6000-tdep.c (struct rs6000_framedata): Add gpr_mask, used_bl,
1316 (rs6000_in_function_epilogue_p): Check for bctr.
1317 (skip_prologue): Initialize lr_register. Set lr_reg to a register
1318 number. Set gpr_mask and used_bl. Continue scanning while some
1319 expected registers are not saved. Set lr_register if LR is not
1321 (rs6000_frame_cache): Handle gpr_mask and lr_register.
1323 2008-08-17 Tom Tromey <tromey@redhat.com>
1326 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): New macros.
1327 (ep_find_event_name_end): Remove.
1328 (catch_fork_temporary, catch_vfork_temporary,
1329 catch_fork_permanent, catch_vfork_permanent): New constants.
1330 (catch_vfork, catch_fork): Remove.
1331 (catch_fork_command_1): Add 'command' argument. Remove
1332 'fork_kind' and 'tempflag'. Handle NULL 'arg'. Update switch for
1334 (catch_exec_command_1): Add 'command' argument; remove
1335 'tempflag'. Handle NULL 'arg'.
1336 (catch_load_command_1): Likewise.
1337 (catch_unload_command_1): Likewise.
1338 (catch_ada_exception_command): Likewise.
1339 (catch_assert_command): Likewise.
1340 (catch_catch_command): New function.
1341 (catch_throw_command): Likewise.
1342 (catch_command_1): Remove.
1343 (catch_command): Just call error.
1344 (tcatch_command): Likewise.
1345 (catch_cmdlist): New global.
1346 (tcatch_cmdlist): Likewise.
1347 (add_catch_command): New function.
1348 (_initialize_breakpoint): Create "catch" and "tcatch" as prefix
1349 commands. Create all catch sub-commands.
1351 2008-08-17 Pedro Alves <pedro@codesourcery.com>
1353 * gdbthread.h: Add comments.
1354 * stack.c (get_selected_block): Return 0 on an exited thread.
1355 * top.c (execute_command): Check for is_stopped, not !is_running.
1356 * event-top.c (command_handler): Likewise.
1358 2008-08-16 Pedro Alves <pedro@codesourcery.com>
1360 * mi/mi-main.c (mi_cmd_exec_next, mi_cmd_exec_next_instruction)
1361 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
1362 (mi_cmd_exec_finish): Remove "return".
1364 2008-08-16 Pedro Alves <pedro@codesourcery.com>
1366 * target.h (pop_all_targets): Declare.
1367 * target.c (pop_all_targets): New.
1368 * top.c (quit_target): Pop all targets instead of just closing the
1371 2008-08-16 Vladimir Prus <vladimir@codesourcery.com>
1372 Thiago Jung Bauermann <bauerman@br.ibm.com>
1374 * cli-script.c (read_next_line): Add parse_commands argument.
1375 (recurse_read_control_structure): Adapt to new read_next_line
1377 (read_command_lines): Add parse_commands argument.
1378 (define_command): Adapt to new read_command_lines signature.
1379 (document_command): Likewise.
1380 * breakpoint.c (commands_command): Likewise.
1381 * defs.h (read_command_lines): Adjust function prototype.
1383 2008-08-16 Paul N. Hilfinger <hilfinger@adacore.com>
1385 * ada-lang.c (pos_atr): Account for the possibility that the
1386 argument may be a reference.
1388 2008-08-16 Paul N. Hilfinger <hilfingr@adacore.com>
1390 * xcoffread.c (scan_xcoff_symtab): Do not include global symbols
1391 ('F' format) for @FIX names generated by the loader, retaining only
1392 the minimal symbols (and no partial symbol tables) for these names.
1393 Fixes warning messages about symbols that are found in partial
1394 symbol tables, but not full symbol tables.
1396 2008-08-16 Pedro Alves <pedro@codesourcery.com>
1398 * infrun.c (fetch_inferior_event): Only call normal_stop if not
1401 2008-08-15 Luis Machado <luisgpm@br.ibm.com>
1403 * rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c".
1404 Include "features/rs6000/powerpc-vsx64.c".
1405 (ppc_supply_vsxregset): New function.
1406 (ppc_collect_vsxregset): New function.
1407 (IS_VSX_PSEUDOREG): New macro.
1408 (IS_EFP_PSEUDOREG): New macro.
1409 (vsx_register_p): New function.
1410 (ppc_vsx_support_p): New function.
1411 (rs6000_builtin_type_vec128): New function.
1412 (rs6000_register_name): Hide upper halves of vs0~vs31. Return
1413 correct names for VSX registers and EFPR registers.
1414 (rs6000_pseudo_register_type): Return correct types for VSX
1416 (rs6000_pseudo_register_reggroup_p): Return correct group for
1417 VSX and EFPR registers.
1418 (ppc_pseudo_register_read): Rename to dfp_pseudo_register_read.
1419 (ppc_pseudo_register_write): Rename to dfp_pseudo_register_write.
1420 (vsx_pseudo_register_read): New function.
1421 (vsx_pseudo_register_write): New function.
1422 (efpr_pseudo_register_read): New function.
1423 (efpr_pseudo_register_write): New function.
1424 (rs6000_pseudo_register_read): Call new VSX and EFPR read functions.
1425 (rs6000_pseudo_register_write): Call new VSX and EFPR write functions.
1426 (rs6000_gdbarch_init): Declare have_vsx.
1427 Initialize new upper half VSX registers.
1428 Initialize VSX-related and EFPR-related pseudo-registers variables.
1429 Adjust the number of pseudo registers accordingly.
1431 * ppc-linux-nat.c: Define PTRACE_GETVSXREGS, PTRACE_SETVSXREGS
1433 (gdb_vsxregset_t): New type.
1434 (have_ptrace_getsetvsxregs): New variable.
1435 (fetch_vsx_register): New function.
1436 (fetch_register): Handle VSX registers.
1437 (fetch_vsx_registers): New function.
1438 (fetch_ppc_registers): Handle VSX registers.
1439 (store_ppc_registers): Handle VSX registers.
1440 (store_vsx_register): New function.
1441 (store_register): Handle VSX registers.
1442 (store_vsx_registers): New function.
1443 (ppc_linux_read_description): Handle VSX-enabled inferiors.
1444 (gdb_vsxregset_t): New type.
1445 (supply_vsxregset): New function.
1446 (fill_vsxregset): New function.
1448 * ppc-tdep.h (vsx_register_p): New prototype.
1449 (vsx_support_p): New prototype.
1450 (ppc_vsr0_regnum): New variable.
1451 (ppc_vsr0_upper_regnum): Likewise.
1452 (ppc_efpr0_regnum): Likewise.
1453 (ppc_builtin_type_vec128): New type.
1454 (ppc_num_vsrs): New constant.
1455 (ppc_num_vshrs): New constant.
1456 (ppc_num_efprs): Likewise.
1457 Define POWERPC_VEC_VSX PPC_VSR0_UPPER_REGNUM and PPC_VSR31_UPPER_REGNUM.
1458 (ppc_supply_vsxregset): New prototype.
1459 (ppc_collect_vsxregset): New prototype.
1461 * ppc-linux-tdep.c: Include "features/rs6000/powerpc-vsx32l.c"
1462 Include "features/rs6000/powerpc-vsx64l.c".
1463 (_initialize_ppc_linux_tdep): Initialize VSX-enabled targets.
1464 (ppc_linux_regset_sections): Add new ".reg-ppc-vsx" field.
1465 (ppc32_linux_vsxregset): New 32-bit VSX-enabled regset.
1466 (ppc_linux_regset_from_core_section): Handle VSX core section.
1467 (ppc_linux_core_read_description): Support VSX-enabled core files.
1469 * ppc-linux-tdep.h: Declare *tdesc_powerpc_vsx32l
1470 Declare tdesc_powerpc_vsx64l
1472 * corelow.c (get_core_register_section): Support VSX-enabled
1475 * features/rs6000/power-vsx.xml: New VSX descriptions.
1476 * features/rs6000/powerpc-vsx32.xml: New file.
1477 * features/rs6000/powerpc-vsx32l.xml: New file.
1478 * features/rs6000/powerpc-vsx64.xml: New file.
1479 * features/rs6000/powerpc-vsx64l.xml: New file.
1480 * features/rs6000/powerpc-vsx32.c: New file (generated).
1481 * features/rs6000/powerpc-vsx32l.c: New file (generated).
1482 * features/rs6000/powerpc-vsx64.c: New file (generated).
1483 * features/rs6000/powerpc-vsx64l.c: New file (generated).
1484 * features/Makefile: Updated with new descriptions.
1485 * regformats/rs6000/powerpc-vsx32l.dat: New file (generated).
1486 * regformats/rs6000/powerpc-vsx64l.dat: New file (generated).
1488 2008-08-15 Vladimir Prus <vladimir@codesourcery.com>
1490 * ia64-linux.nat (_initialize_ia64_linux_nat): Don't
1491 call linux_target twice.
1493 2008-08-14 Aleksandar Ristovski <aristovski@qnx.com>
1495 * nto-tdep.c (lm_info): Updated struct lm_info definition from
1497 (LM_ADDR): Use l_addr if available; if not, use link map and set
1500 2008-08-14 Tom Tromey <tromey@redhat.com>
1502 * macrocmd.c (macro_define_command): Check for NULL argument.
1503 (macro_undef_command): Likewise.
1505 2008-08-14 Pedro Alves <pedro@codesourcery.com>
1507 * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call.
1509 2008-08-13 Pedro Alves <pedro@codesourcery.com>
1511 * breakpoint.c (always_inserted_auto, always_inserted_on)
1512 (always_inserted_off, always_inserted_enums): New.
1513 (always_inserted_mode): Change type to char* and point to
1514 always_inserted_auto.
1515 (show_always_inserted_mode): In auto mode, also show the current
1516 effect of the option.
1517 (breakpoints_always_inserted_mode): Adjust for the new auto mode.
1518 (_initialize_breakpoint): Make the "set breakpoints
1519 always-inserted" command an enum command. Extend help to describe
1522 2008-08-13 Ulrich Weigand <uweigand@de.ibm.com>
1524 * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
1525 query valid) bit. Ignore bits outside the condition field.
1526 (info_spu_proxydma_command): Ignore bits outside the field.
1528 2008-08-12 Michael Snyder <msnyder@vmware.com>
1530 * MAINTAINERS: Update my email address.
1532 2008-08-12 Ulrich Weigand <uweigand@de.ibm.com>
1534 * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP.
1536 2008-08-12 Pedro Alves <pedro@codesourcery.com>
1538 Add no-ack mode to the remote protocol --- optionally stop ACKing
1539 packets and responses when we have a reliable communication
1542 Based on Apple's GDB, by Jason Molenda <jmolenda@apple.com>
1544 * remote.c (struct remote_state): Add noack_mode field.
1545 (PACKET_QStartNoAckMode): New.
1546 (remote_start_remote): Don't any outstanding packet here.
1547 (remote_open_1): Clear noack_mode. Ack any outstanding packet
1548 here. Activate noack mode if requested.
1549 (remote_protocol_features): Add QStartNoAckMode.
1551 (putpkt_binary): Don't send ack in noack mode.
1552 (read_frame): Don't recompute the checksum in noack mode.
1553 (getpkt_sane): Skip sending ack if in noack mode.
1554 (_initialize_remote): Add set/show remote noack mode.
1555 * NEWS: Note the new features.
1557 2008-08-11 Kevin Buettner <kevinb@redhat.com>
1559 * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK):
1561 (rs6000_skip_main_prologue): New function.
1562 (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue.
1564 2008-08-11 Sandra Loosemore <sandra@codesourcery.com>
1566 * MAINTAINERS (Write After Approval): Add self.
1568 2008-08-11 Stan Shebs <stan@codesourcery.com>
1571 * disasm.c (gdb_disassemble_info): Set endian_code.
1572 * gdbarch.sh (gdbarch_info): New field byte_order_for_code.
1573 * gdbarch.h, gdbarch.c: Regenerate.
1574 * arch-utils.c (initialize_current_architecture): Set the
1575 default byte_order_for_code.
1576 (gdbarch_info_init): Ditto.
1577 (gdbarch_info_fill): Ditto.
1578 * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros.
1579 (thumb_analyze_prologue): Swap halfword if code endianness is
1580 different from general endianness.
1581 (arm_skip_prologue): Similarly.
1582 (arm_scan_prologue): Ditto.
1583 (thumb_get_next_pc): Ditto.
1584 (arm_get_next_pc): Ditto.
1585 (arm_gdbarch_init): Set byte_order_for_code from BE8 flag,
1586 choose correct endianness for breakpoints.
1588 2008-08-10 Pedro Alves <pedro@codesourcery.com>
1590 * bsd-kvm.c: Include "gdbthread.h".
1591 (bsd_kvm_ptid): New.
1592 (bsd_kvm_open): Add a main thread.
1593 (bsd_kvm_close): Delete it.
1594 (bsd_kvm_thread_alive): New.
1595 (bsd_kvm_pid_to_str): New.
1596 (bsd_kvm_add_target): Register bsd_kvm_thread_alive and
1598 (bsd_kvm_add_target): Initialize bsd_kvm_ptid.
1600 2008-08-09 Pedro Alves <pedro@codesourcery.com>
1602 * buildsym.c (start_subfile): Properly cast sentinel in concat
1604 * cp-name-parser.y: Include "config.h".
1605 * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in
1607 * gdb_select.h: Include sys/time.h if sys/select.h is not
1610 2008-08-09 Pedro Alves <pedro@codesourcery.com>
1612 * go32-nat.c: Include "gdbthread.h".
1613 (go32_stop, go32_kill_inferior): Delete the main thread.
1614 (go32_create_inferior): Add it.
1615 (go32_thread_alive, go32_pid_to_str): New.
1616 (init_go32_ops): Register go32_thread_alive and go32_pid_to_str.
1618 2008-08-09 Pedro Alves <pedro@codesourcery.com>
1620 * go32-nat.c (fetch_register, store_register): Pass the regcache
1621 gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p.
1622 (go32_xfer_memory): Change type of myaddr parameter to gdb_byte.
1623 (struct seg_descr, struct seg_descr): pack the whole struct
1624 instead of each member individually.
1626 2008-08-09 Andreas Schwab <schwab@suse.de>
1628 * python/python.c (_initialize_python): Use unabbreviated commands
1631 2008-08-09 Daniel Jacobowitz <dan@codesourcery.com>
1633 * Makefile.in (stamp-h): Also create .deps.
1635 2008-08-09 Tom Tromey <tromey@redhat.com>
1637 * Makefile.in (generated_files): Add GNULIB_H.
1639 2008-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1641 * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set
1642 DT_HP_DEBUG_PRIVATE. Add warning if DT_HP_DEBUG_PRIVATE is not set.
1644 (pa64_current_sos): Remove map private warning warning.
1645 * solib-som.c: Include string.h and sys/utsname.h.
1646 (get_hpux_major_release): New function.
1647 (som_solib_create_inferior_hook): Read dynamic linker header. Warn
1648 about shared library private mapping on HP-UX 11 and later. Only force
1649 private mapping of shared libraries on HP-UX 10 and earlier.
1650 (link_map_start): Delete warning.
1652 2008-08-09 Xuepeng Guo <xuepeng.guo@intel.com>
1653 H.J. Lu <hongjiu.lu@intel.com>
1654 Mark Kettenis <kettenis@gnu.org>
1656 * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg.
1657 (amd64_init_frame_cache): Initialize saved_sp_reg.
1658 (amd64_analyze_stack_align): New.
1659 (amd64_analyze_prologue): Call it.
1660 (amd64_frame_cache): Use saved_sp_reg if it is invalid. Don't set
1661 %rip to 8 when halfway aligning the stack.
1663 * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to
1666 * i386-tdep.c (i386_frame_cache): Remove stack_align. Add
1668 (i386_alloc_frame_cache): Remove stack_align. Initialize
1670 (i386_analyze_stack_align): Rewrite.
1671 (i386_frame_cache): Use saved_sp_reg if it is valid.
1673 2008-08-09 Ulrich Weigand <uweigand@de.ibm.com>
1675 * target.c: Include "solib.h".
1676 (target_pre_inferior): Call no_shared_libraries.
1677 * infcmd.c (run_command_1): Do not call objfile_purge_solibs
1679 (attach_command): Do not call clear_solib.
1681 2008-08-09 Mark Kettenis <kettenis@gnu.org>
1683 * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
1686 2008-08-08 Tom Tromey <tromey@redhat.com>
1688 * Makefile.in (python.o): Remove dependencies. Use COMPILE and
1690 (python-utils.o): Likewise.
1692 2008-08-08 Andreas Schwab <schwab@suse.de>
1694 * corefile.c (_initialize_core): Remove spurious paren from set
1695 gnutarget doc string.
1697 2008-08-08 Luis Machado <luisgpm@br.ibm.com>
1699 * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h".
1700 Define PPC_FEATURE_BOOKE.
1701 (ppc_linux_get_hwcap): New function.
1702 (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440
1703 4-bytes alignment restrictions.
1704 (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific
1705 positioning of the read/write flags.
1706 (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440
1709 2008-08-08 Pedro Alves <pedro@codesourcery.com>
1711 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
1713 * win32-nat.c (win32_add_thread): Change thread argument type to
1715 (win32_add_thread): Adjust.
1716 (win32_delete_thread): Change thread argument type to ptid_t.
1718 (win32_fetch_inferior_registers, win32_store_inferior_registers)
1719 (win32_resume, get_win32_debug_event, get_win32_debug_event)
1720 (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust.
1721 (init_win32_ops): Put to_magic last.
1722 (win32_win32_thread_alive): Adjust.
1724 2008-08-08 Pedro Alves <pedro@codesourcery.com>
1726 * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New.
1727 (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str.
1729 2008-08-08 Pedro Alves <pedro@codesourcery.com>
1731 * remote-m32r-sdi.c: Include "gdbthread.h".
1732 (remote_m32r_ptid): New.
1733 (m32r_close): Delete the main thread.
1734 (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the
1736 (m32r_kill, m32r_load, sdireset_command): Delete the main thread.
1737 (_initialize_remote_m32r): Initialize remote_m32r_ptid.
1739 2008-08-07 Tom Tromey <tromey@redhat.com>
1740 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1742 * aclocal.m4, configure: Rebuild.
1743 * configure.in: Call ZW_CREATE_DEPDIR,
1744 ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
1745 (MAKE, GMAKE): New substs.
1746 * acinclude.m4: Include depstand.m4.
1747 * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
1748 COMPILE, POSTCOMPILE, depcomp): New variables.
1749 Remove all _h variables.
1750 Remove many .o targets.
1751 ($(srcdir)/copying.c): avoid backslash-newline after comment
1752 sign (@maintainer_mode_true@).
1753 (HFILES_NO_SRCDIR): Regenerate.
1754 (generated_files): New variable.
1755 (all_gdbtk_cflags): Likewise.
1757 (init.o, version.o, copying.o): Remove.
1758 (distclean): Remove DEPDIR.
1759 (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
1760 printcmd.o, procfs.o, v850ice.o): Rewrite.
1761 (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
1762 cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
1763 (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
1764 gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
1765 gdbtk-wrapper.o): Likewise.
1766 (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
1767 mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
1768 mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
1769 mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
1770 tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
1771 tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
1772 tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
1773 tui-wingeneral.o, tui-winsource.o): Likewise.
1774 (all_object_files): New variable.
1775 ($(all_object_files)): New target.
1776 Include dependency files, when using GNU Make.
1778 2008-08-07 Ulrich Weigand <uweigand@de.ibm.com>
1780 * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with
1781 the valid bit set. Ensure display order respects partial
1782 order defined by dependency bits.
1784 2008-08-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1786 * solib-pa64.c (read_dld_descriptor): Return zero if load map is not
1789 2008-08-06 Mark Kettenis <kettenis@gnu.org>
1791 * i386obsd-nat.c (i386obsd_supply_pcb): Adjust for changes in
1794 2008-08-06 Vladimir Prus <vladimir@codesourcery.com>
1795 Tom Tromey <tromey@redhat.com>
1796 Thiago Jung Bauermann <bauerman@br.ibm.com>
1797 Doug Evans <dje@google.com>
1799 * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS,
1800 SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS,
1801 PYTHON_CFLAGS): New.
1802 (python_h, python_internal_h): New.
1803 (cli-script.o): Depend on python.h
1804 (python.o, python-utils.o): New.
1805 * cli/cli-script.c (print_command_lines): Handle python_control.
1806 (execute_control_command): Handle python_control.
1807 (execute_control_command_untraced): New function.
1808 (while_command): Call execute_control_command_untraced.
1809 (if_command): Likewise.
1810 (get_command_line): Remove static attribute.
1811 (read_next_line): Handle "python".
1812 (recurse_read_control_structure): Handle python_control.
1813 (read_command_lines): Handle python_control.
1815 * cli/cli-script.h (get_command_line): Add prototype.
1816 (execute_control_command_untraced): Likewise.
1817 * configure.ac: Add --with-python.
1818 * defs.h (enum command_control_type) <python_control>: New
1820 * python/python-internal.h: New file.
1821 * python/python.c: New file.
1822 * python/python.h: New file.
1823 * python/python-utils.c: New file.
1824 * NEWS: Mention Python scripting support and its new commands.
1826 2008-08-06 Ulrich Weigand <uweigand@de.ibm.com>
1828 * spu-tdep.c (spu_gdbarch_init): Call set_gdbarch_frame_red_zone_size.
1830 2008-08-06 Phil Muldoon <pmuldoon@redhat.com>
1832 * MAINTAINERS (Write After Approval): Add self.
1834 2008-08-06 Phil Muldoon <pmuldoon@redhat.com>
1836 * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled.
1837 (insert_breakpoint_locations): Likewise.
1839 2008-08-05 Phil Muldoon <pmuldoon@redhat.com>
1841 * breakpoint.c (create_longjmp_breakpoint): Remove unused struct
1843 (set_longjmp_breakpoint): Likewise.
1845 2008-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1848 * solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are
1851 2008-08-05 Tom Tromey <tromey@redhat.com>
1853 * bcache.c (deprecated_bcache_added): Initialize obstack.
1854 (bcache_xmalloc): Don't initialize obstack.
1855 (bcache_xfree): Conditionally free obstack.
1856 (bcache_memory_used): Update.
1858 2008-08-05 Tom Tromey <tromey@redhat.com>
1860 * symfile.c (add_psymbol_to_bcache): Return a const pointer. Use
1862 (append_psymbol_to_list): Accept a const pointer.
1863 (add_psymbol_to_list): Fix const correctness.
1864 * bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove.
1865 (bcache_full): Declare.
1866 * bcache.c (bcache_data, deprecated_bcache): Remove.
1867 (bcache): Use bcache_full.
1868 (bcache_full): Rename from deprecated_bcache_added. Change return
1871 2008-08-04 Stan Shebs <stan@codesourcery.com>
1873 * solib-svr4.c (BKPT_AT_SYMBOL): Remove, always defined.
1874 (bkpt_names): Remove SOLIB_BKPT_NAME, never defined.
1875 (enable_break): Remove test of BKPT_AT_SYMBOL.
1877 2008-08-02 Keith Seitz <keiths@redhat.com>
1879 * acinclude.m4: Include ../config/tcl.m4 to pick up
1880 standard Tcl configury bits.
1881 Remove all Tcl, Tk, Itcl, Itk, etc definitions.
1882 * configure.ac: Don't check if ../itcl exists when building
1883 gdbtk. It could be installed.
1884 Rewrite gdbtk configury to allow for using system-supplied
1885 Tcl and Tk. Gdbtk no longer requires build-time access to
1887 * Makefile.in: Remove everything related to itcl and itk.
1888 Rewrite the Tcl bits for gdbtk to correspond to rewrite of
1890 Remove v850ice.o build rule.
1891 (ALL_TCL_CFLAGS): New convenience defintion. Change all
1892 gdbtk sources to use it.
1893 * configure: Regenerate.
1895 2008-07-31 Stan Shebs <stan@codesourcery.com>
1897 * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE.
1899 2008-07-30 Stan Shebs <stan@codesourcery.com>
1901 * objfiles.c (TARGET_KEEP_SECTION): Remove.
1902 (add_to_objfile_sections): Remove use.
1904 2008-07-29 Tom Tromey <tromey@redhat.com>
1906 * cli/cli-decode.c (lookup_cmd_1): Use memcpy.
1907 (lookup_cmd_composition): Likewise.
1909 2008-07-29 Tom Tromey <tromey@redhat.com>
1911 * cli/cli-cmds.c (edit_command): Remove unused variables. Delete
1912 dead code. Fix indentation.
1914 2008-07-29 Stan Shebs <stan@codesourcery.com>
1916 * main.c (captured_main): Remove long-unused #if 0 blocks.
1918 2008-07-28 Tom Tromey <tromey@redhat.com>
1920 * annotate.h (deprecated_annotate_starting_hook): Remove.
1921 (deprecated_annotate_stopped_hook): Remove.
1922 (deprecated_annotate_exited_hook): Remove.
1923 * Makefile.in (annotate.o): Depend on observer_h.
1924 * top.c (deprecated_delete_breakpoint_hook): Remove.
1925 (deprecated_create_breakpoint_hook): Likewise.
1926 (deprecated_modify_breakpoint_hook): Likewise.
1927 * interps.c (clear_interpreter_hooks): Update for removed hooks.
1928 * breakpoint.c (mention): Don't call removed hook.
1929 (delete_breakpoint): Likewise.
1930 (disable_breakpoint): Likewise.
1931 (do_enable_breakpoint): Likewise.
1932 * annotate.c: Include observer.h.
1933 (breakpoint_changed): Change type of argument.
1934 (_initialize_annotate): Register observers.
1935 (deprecated_annotate_starting_hook): Remove.
1936 (deprecated_annotate_stopped_hook): Remove.
1937 (deprecated_annotate_exited_hook): Remove.
1938 (annotate_starting): Update for hook removal.
1939 (annotate_stopped): Likewise.
1940 (annotate_exited): Likewise.
1941 * defs.h (deprecated_delete_breakpoint_hook): Remove.
1942 (deprecated_create_breakpoint_hook): Likewise.
1943 (deprecated_modify_breakpoint_hook): Likewise.
1945 2008-07-28 Tom Tromey <tromey@redhat.com>
1947 * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.
1949 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
1951 * configure.ac: Check for the GNU/Linux ptrace signature.
1952 * configure: Regenerated.
1954 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
1956 * linux-nat.c (resume_callback): Add more debugging output.
1957 (linux_nat_has_pending_sigint): New function, based on
1958 linux_nat_has_pending.
1959 (set_ignore_sigint, maybe_clear_ignore_sigint): New functions.
1960 (stop_wait_callback): Remove flush_mask handling. Honor
1961 ignore_sigint. Call maybe_clear_ignore_sigint. Pass NULL
1963 (linux_nat_has_pending, flush_callback): Remove.
1964 (linux_nat_filter_event): Check for ignore_sigint.
1965 (linux_nat_wait): Remove flush_mask support and call to
1966 flush_callback. Use set_ignore_sigint and maybe_clear_ignore_sigint.
1967 * linux-nat.h (struct lwp_info): Add ignore_sigint field.
1969 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
1971 * linux-nat.c (count_events_callback, select_event_lwp_callback): Only
1972 report events from resumed threads.
1974 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
1976 * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function.
1977 (mips_linux_init_abi): Set tdep->syscall_next_pc.
1978 * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to
1980 (mips32_next_pc): Handle the syscall instruction.
1981 * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New,
1982 from mips-tdep.c. Add syscall_next_pc to gdbarch_tdep.
1984 2008-07-26 Tom Tromey <tromey@redhat.com>
1987 * valops.c (value_struct_elt): Treat function-valued field as a
1990 2008-07-26 Tom Tromey <tromey@redhat.com>
1993 * macroexp.c (get_punctuator) <punctuators>: Rearrange to put
1994 longer tokens first.
1996 2008-07-26 Vladimir Prus <vladimir@codesourcery.com>
1999 * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok)
2000 (get_cmd_async_ok): Remove.
2001 * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove.
2002 * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok.
2003 * infcmd.c (_initialize_infcmd): Likewise.
2004 * thread.c (_initialize_thread): Likewise.
2006 2008-07-25 Joseph Myers <joseph@codesourcery.com>
2008 * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing
2009 128-bit long doubles in even-odd pairs of FPRs. Do not
2010 right-align float arguments for big-endian.
2011 (mips_n32n64_return_value): Apply return value convention for
2012 structs containing one or two floating-point values to soft-float
2013 as well as hard-float. Handle 128-bit long doubles in such
2015 (mips_o32_push_dummy_call): Only skip one integer register for a
2016 float argument passed in an FPR.
2018 2008-07-25 Tom Tromey <tromey@redhat.com>
2020 * tui/tui-hooks.c: Include observer.h.
2021 (tui_event_default, tui_old_event_hooks, tui_event_hooks):
2023 (tui_bp_created_observer, tui_bp_deleted_observer,
2024 tui_bp_modified_observer): New globals.
2025 (tui_install_hooks): Use observers, not events.
2026 (tui_remove_hooks): Likewise.
2027 * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h.
2028 (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New
2030 (breakpoint_notify): Check mi_can_breakpoint_notify.
2031 (breakpoint_hooks): Remove.
2032 (mi_cmd_break_insert): Attach observers. Don't use events.
2033 * tracepoint.c: Include observer.h, not gdb-events.h.
2034 (tracepoint_operation, trace_pass_command): Notify observer.
2035 * interps.c: Don't include gdb-events.h.
2036 (clear_interpreter_hooks): Don't call clear_gdb_event_hooks.
2037 * gdbarch.c: Rebuild.
2038 * gdbarch.sh: Emit include for observer.h, not gdb-events.h.
2039 (deprecated_current_gdbarch_select_hack): Notify observer.
2040 * breakpoint.h: Don't include gdb-events.h.
2041 * breakpoint.c: Don't include gdb-events.h.
2042 (condition_command): Notify observer.
2043 (commands_command): Likewise.
2044 (commands_from_control_command): Likewise.
2045 (mention, delete_breakpoint, set_ignore_count): Likewise.
2046 (disable_breakpoint, do_enable_breakpoint): Likewise.
2047 * Makefile.in (gdb_events_h): Remove.
2048 (breakpoint_h): Update.
2049 (COMMON_OBS): Remove gdb-events.o.
2050 (gdb-events.o): Remove.
2051 (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o,
2052 gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update.
2053 * gdb-events.c: Remove.
2054 * gdb-events.h: Remove.
2055 * gdb-events.sh: Remove.
2057 2008-07-24 Pedro Alves <pedro@codesourcery.com>
2059 * remote.c (remote_threads_extra_info): Don't query the remote
2060 server about info on the internally added main thread.
2062 2008-07-24 Aleksandar Ristovski <aristovski@qnx.com>
2064 * nto-procfs.c (procfs_attach): Populate initial thread list.
2065 (procfs_wait): Return new pid, built from the inferior status.
2067 2008-07-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
2069 * configure.ac (CONFIG_INITS): Delete long obsoleted variable.
2070 * configure: Regenerate.
2072 2008-07-23 Aleksandar Ristovski <aristovski@qnx.com>
2074 * nto-procfs.c (procfs_xfer_memory): Changed signature.
2075 (procfs_resume): Workaround for dereferencing type-punned pointer
2077 * nto-tdep.c (nto_parse_redirection): Change signature to be const
2079 * nto-tdep.h (nto_parse_redirection): Likewise.
2081 2008-07-21 Stan Shebs <stan@codesourcery.com>
2083 Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.
2084 * gdbarch.sh: Adjust comment to refer to
2085 in_solib_dynsym_resolve_code().
2086 * gdbarch.h, gdbarch.c: Update.
2087 * solib-osf.c: Ditto.
2089 (handle_inferior_event): Use in_solib_dynsym_resolve_code
2091 * config/mips/nm-irix5.h: Remove undef of
2092 IN_SOLIB_DYNSYM_RESOLVE_CODE.
2094 2008-07-21 Tom Tromey <tromey@redhat.com>
2096 * symfile.c (reread_symbols): Don't pass argument to observer.
2097 * exec.c (exec_file_attach): Don't pass argument to observer.
2098 * ada-lang.c (ada_executable_changed_observer): Remove argument.
2099 * symtab.c (symtab_observer_executable_changed): Remove argument.
2100 * observer.sh: Handle functions with no arguments.
2102 2008-07-20 Sergei Poselenov <sposelenov@emcraft.com>
2103 Chris Demetriou <cgd@google.com>
2105 * elfread.c (elf_symfile_segments): Fix the check that each loadable
2106 section fits within an ELF segment to handle ELF segments that hit
2107 the end of the address space.
2109 2008-07-20 Chris Demetriou <cgd@google.com>
2111 * MAINTAINERS (Write After Approval): Add self.
2113 2008-07-18 Tom Tromey <tromey@redhat.com>
2116 * NEWS: Add entry for macro commands.
2117 * Makefile.in (macrocmd.o): Add gdb_string.h.
2118 * macroscope.h (user_macro_scope): Declare.
2119 (default_macro_scope): Update documentation.
2120 (macro_user_macros): Declare.
2121 * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup.
2122 Use user_macro_scope.
2123 (null_macro_lookup): Remove.
2124 * macrotab.h (macro_callback_fn): Declare.
2125 (macro_for_each): Likewise.
2126 (macro_allow_redefinitions): Likewise.
2127 * macrotab.c (foreach_macro): New function
2128 (macro_for_each): Likewise.
2129 (struct macro_table) <redef_ok>: New field.
2130 (macro_allow_redefinitions): New function.
2131 (new_macro_table): Update.
2132 (macro_define_function): Likewise.
2133 (macro_define_object): Likewise.
2134 * macroscope.c (user_macro_scope): New function.
2135 (default_macro_scope): Use it.
2136 (macro_user_macros): New global.
2137 (standard_macro_lookup): Look in macro_user_macros.
2138 (_initialize_macroscope): New function.
2139 * macroexp.h (macro_is_whitespace, macro_is_digit,
2140 macro_is_identifier_nondigit): Declare.
2141 * macroexp.c (macro_is_whitespace): Rename. No longer static.
2142 (macro_is_digit): Likewise.
2143 (macro_is_identifier_nondigit): Likewise.
2144 (get_identifier): Update.
2145 (get_pp_number): Likewise.
2146 (get_token): Likewise.
2147 * macrocmd.c (skip_ws): New function.
2148 (extract_identifier): Likewise.
2149 (free_macro_definition_ptr): Likewise.
2150 (user_macros): Remove.
2151 (macro_define_command): Implement.
2152 (_initialize_macrocmd): Update.
2153 (macro_undef_command): Implement.
2154 (print_one_macro): New function.
2155 (macro_list_command): Implement.
2157 2008-07-18 Joseph Myers <joseph@codesourcery.com>
2159 * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl
2161 * configure: Regenerate.
2163 2008-07-17 Paul Pluzhnikov <ppluzhnikov@google.com>
2165 * auxv.c (fprint_target_auxv): Stop at AT_NULL.
2167 2008-07-15 Andreas Schwab <schwab@suse.de>
2169 * valops.c (value_cast_pointers): Follow typedefs when checking
2172 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
2174 * block.c (block_function): Renamed to ...
2175 (block_linkage_function): ... this. All callers changed.
2176 * block.h (block_function): Renamed to ...
2177 (block_linkage_function): ... this.
2179 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
2181 * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned.
2183 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
2185 * frame.c (frame_sp_unwind): Delete.
2186 (get_frame_sp): Do not use it.
2187 * frame.h (frame_sp_unwind): Delete prototype.
2189 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
2191 * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc.
2193 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
2195 * dwarf2-frame.c (dwarf2_frame_cache): Update comment.
2196 * frame.c (frame_unwind_address_in_block): Delete.
2197 (get_frame_address_in_block): Do not use it. Check the type
2198 of the next frame first.
2199 (frame_cleanup_after_sniffer): Update comment.
2200 * frame.h (frame_unwind_address_in_block): Delete prototype.
2201 * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment.
2203 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
2205 * frame.c (frame_func_unwind): Delete.
2206 (get_frame_func): Do not use it.
2207 * frame.h (frame_func_unwind): Delete prototype.
2208 * hppa-tdep.c (hppa_frame_cache): Update comment.
2209 * rs6000-tdep.c (rs6000_frame_cache): Update comment.
2211 2008-07-14 Stan Shebs <stan@codesourcery.com>
2213 * remote-sim.c (init_gdbsim_ops): Remove
2214 TARGET_REDEFINE_DEFAULT_OPS.
2216 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
2218 * findvar.c (read_var_value): Remove unused variable.
2220 2008-07-15 Luis Machado <luisgpm@br.ibm.com>
2222 * infrun.c (handle_inferior_event): Tag threads as stopped
2223 before inserting breakpoints.
2225 2008-07-15 Hui Zhu <teawater@gmail.com>
2227 * MAINTAINERS: Added myself to section Write After Approval.
2229 2008-07-14 Paul Pluzhnikov <ppluzhnikov@google.com>
2232 * cp-abi.c (value_virtual_fn_field): Handle invalid pointers.
2234 2008-07-14 Pedro Alves <pedro@codesourcery.com>
2236 * i386-dicos-tdep.c (i386_dicos_frame_align): Delete.
2237 (i386_dicos_push_dummy_code): New.
2238 (i386_dicos_init_abi): Don't register i386_dicos_frame_align.
2239 Register i386_dicos_push_dummy_code.
2241 2008-07-14 Markus Deuling <deuling@de.ibm.com>
2243 * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter.
2244 (mips_n32n64_push_dummy_call, mips_o64_return_value)
2245 (mips_eabi_push_dummy_call): Update call to fp_register_arg_p.
2247 (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch.
2248 (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command)
2249 (mips_n32n64_fp_arg_chunk_p): Update caller.
2251 (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter.
2252 (mips_n32n64_push_dummy_call): Update caller.
2254 (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace
2256 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
2257 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller.
2260 (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace
2262 (mips_eabi_push_dummy_call, mips_o32_push_dummy_call)
2263 (mips_o64_push_dummy_call): Update caller.
2265 (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch.
2266 (fp_register_arg_p, mips_dump_tdep): Update caller.
2268 (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch.
2269 (mips16_scan_prologue, mips32_scan_prologue): Update caller.
2271 (reset_saved_regs): Make static. Add gdbarch as parameter. Replace
2273 (mips32_scan_prologue): Update caller.
2275 (heuristic_proc_start): Add gdbarch as parameter. Replace
2277 (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller.
2279 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2280 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
2281 the current architecture. Update call to getregs_supplies.
2282 (getregs_supplies): Add gdbarch as parameter and replace
2285 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to
2286 get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and
2287 NBSD_MIPS_JB_ELEMENT_SIZE.
2288 (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and
2289 replace current_gdbarch.
2291 * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace
2293 (mips_fetch_registers, mips_store_registers): Update call
2295 (mips_load): Use get_regcache_arch to get at the current_architecture
2296 and replace current_gdbarch.
2298 2008-07-13 Pedro Alves <pedro@codesourcery.com>
2300 * thread.c (restore_selected_frame): On fail to restore, select
2301 the innermost frame, and don't crash when warning the user.
2303 2008-07-13 Hui Zhu <teawater@gmail.com>
2305 * symtab.c (expand_line_sal): Fix a memory leak.
2307 2008-07-13 Pedro Alves <pedro@codesourcery.com>
2309 * utils.c (struct continuation): Define as inheriting struct
2311 (add_continuation, do_all_continuations)
2312 (discard_all_continuations, add_intermediate_continuation)
2313 (do_all_intermediate_continuations)
2314 (discard_all_intermediate_continuations): Adjust.
2316 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
2318 Skip varobj in running threads.
2319 * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's
2320 thread is not stopped, skip the varobj.
2321 * Makefile.in: Update dependencies.
2323 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
2325 Enable all commands while inferiour is running
2326 * mi/mi-main.c (mi_cmd_execute): Don't check if
2327 inferiour is executing.
2329 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
2331 Allow all CLI command even if target is executing.
2332 * gdb/top.c (execute_command_1): Don't check if the inferiour
2335 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
2337 * mi/mi-main.c (mi_cmd_execute): Remove unused variable.
2338 Fix printing of frame, when frame is wrong.
2340 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
2342 * spu-tdep.c (spu_frame_unwind_cache): Do not error if
2343 backchain is unreadable.
2345 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
2347 * spu-linux-nat.c: Include "gdbthread.h".
2348 (spu_child_post_startup_inferior): Register main thread.
2349 (spu_child_post_attach): Likewise.
2350 * Makefile.in (spu-linux-nat.o): Update dependencies.
2352 2008-07-12 Pedro Alves <pedro@codesourcery.com>
2354 Rewrite continuations internals on top of cleanups and plug
2355 continuation arguments leaks.
2357 * defs.h (struct continuation): Make it opaque.
2358 (add_continuation, add_intermediate_continuation): Drop the int
2359 argument of the continuation hook argument. Add
2360 continuation_free_args argument.
2361 (do_all_continuations, do_all_intermediate_continuations): Drop
2362 the error_p argument.
2364 * utils.c (add_continuation): Drop the int argument of the
2365 continuation hook argument. Add continuation_free_args argument.
2366 Reimplement on top of cleanups.
2367 (do_all_continuations): Drop error argument. Reimplement on top
2369 (discard_all_continuations): Reimplement on top of cleanups.
2370 (add_intermediate_continuation): Drop the int argument of the
2371 continuation hook argument. Add continuation_free_args argument.
2372 Reimplement on top of cleanups.
2373 (do_all_intermediate_continuations): Drop error argument.
2374 Reimplement on top of cleanups.
2375 (discard_all_intermediate_continuations): Reimplement on top of
2378 * breakpoint.c (until_break_command_continuation): Drop error
2379 argument. Add xfree as continuation argument deleter.
2381 * inf-loop.c (inferior_event_handler): On error, discard all
2382 continuations. Adjust to new do_all_intermediate_continuations
2383 and do_all_continuations interfaces.
2385 * infcmd.c (step_1_continuation): Drop error_p argument. Adjust.
2386 Pass xfree as continuation argument deleter.
2387 (finish_command_continuation): Drop error_p argument. Adjust.
2388 (finish_command_continuation_free_arg): New.
2389 (finish_command): Pass finish_command_continuation_free_arg as
2390 continuation argument deleter. Adjust to new do_all_continuations
2392 (attach_command_continuation): Drop error_p argument.
2393 (attach_command_continuation_free_args): New.
2394 (attach_command): Pass attach_command_continuation_free_args as
2395 continuation argument deleter.
2397 * interps.c (interp_set): Adjust to new do_all_continuations
2400 * event-top.c (stdin_event_handler): In error, also discard the
2401 intermediate continuations.
2403 2008-07-12 Pedro Alves <pedro@codesourcery.com>
2405 Replace struct continuation_args by void* and per command structs.
2407 * top.c (execute_command): Remove unused arg1 and arg2 locals.
2409 * breakpoint.c (struct until_break_command_continuation_args):
2411 (until_break_command_continuation): Take a void* instead of a
2412 continuations_arg. Adjust.
2413 (until_break_command): Adjust to use struct
2414 until_break_command_continuation_args instead of struct
2417 * infcmd.c (struct step_1_continuation_args): New.
2418 (step_1_continuation): Take a void* instead of a
2419 continuations_arg. Adjust to use struct step_1_continuation_args.
2420 (step_once): Adjust to use struct step_1_continuation_args.
2422 (struct finish_command_continuation_args): New.
2423 (finish_command_continuation): Take a void* instead of a
2424 continuations_arg. Adjust to use struct
2425 finish_command_continuation_args.
2426 (finish_command): Adjust to use struct
2427 finish_command_continuation_args.
2428 (struct attach_command_continuation_args): New.
2429 (attach_command_continuation): Take a void* instead of a
2430 continuations_arg. Adjust to use struct
2431 attach_command_continuation_args.
2432 (attach_command): Adjust to use struct
2433 attach_command_continuation_args.
2435 * defs.h (struct continuation_arg): Delete.
2436 (struct continuation): Replace the struct continuation_arg*
2437 parameter of continuation_hook by a void*. Replace "arg_list"
2438 member by a new "args" member with void* type.
2439 (add_continuation, add_intermediate_continuation): Replace struct
2440 continuation_arg type usages by void* usages.
2442 * utils.c (add_continuation, do_all_continuations)
2443 (add_intermediate_continuation)
2444 (do_all_intermediate_continuations): Replace struct
2445 continuation_arg type usages by void* usages. Pass "args" instead
2448 2008-07-12 Pedro Alves <pedro@codesourcery.com>
2450 * infrun.c (struct thread_stepping_state): Delete sal member.
2451 (init_thread_stepping_state): Add local sal. Use it instead of
2453 (handle_inferior_event): New local stop_pc_sal. Use it instead of
2455 (step_into_function): Add local stop_func_sal. Use it instead of
2458 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
2460 Implement -exec-continue/-exec-interrupt --all.
2461 * infcmd.c (continue_1): New, extracted from
2462 (continue_command): ...here.
2463 (interrupt_target_1): New, extracted from
2464 (interrupt_target_command): ...here.
2465 * inferior.h (continue_1, interrupt_target_1): New.
2466 * mi/mi-main.c (mi_cmd_exec_continue)
2467 (mi_cmd_exec_interrupt): Handle --all.
2469 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
2471 Implement --thread and --frame.
2472 * gdbthread.h (find_thread_id): Declare.
2473 * thread.c (find_thread_id): Make non-static.
2474 * mi/mi-main.c (mi_cmd_execute): Switch to the right
2475 thread and frame, if necessary.
2476 * mi/mi-parse.c (mi_parse): Handle --thread and --frame.
2477 * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
2479 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
2481 * infrun.c (resume): Discard cleanups on early exit path.
2483 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
2485 * infrun.c (normal_stop): For MI, report which threads
2488 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
2490 Report thread state in -thread-info output.
2491 * thread.c (print_thread_info): Add new field "state".
2493 2008-07-11 Pedro Alves <pedro@codesourcery.com>
2495 * infrun.c (handle_inferior_event): Also ignore a
2496 TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP.
2498 2008-07-11 Tom Tromey <tromey@redhat.com>
2500 * completer.c (complete_line_internal): New function, from
2501 complete_line. Add 'for_help' parameter.
2502 (complete_line): Use it.
2503 (command_completer): Move later. Rewrite.
2505 2008-07-11 Pedro Alves <pedro@codesourcery.com>
2507 * thread.c (thread_apply_command): Move making the cleanup out of
2510 2008-07-11 Pedro Alves <pedro@codesourcery.com>
2514 * thread.c (enum thread_state): New.
2515 (thread_state main_thread_running): Delete, in favor of...
2516 (thread_state main_thread_state): ... this. Update throughout.
2517 (clear_thread_inferior_resources): New, split from free_thread.
2518 (free_thread): Call clear_thread_inferior_resources.
2519 (init_thread_list): Set main thread to stopped state.
2520 (add_thread_silent): Take care of PTID reuses.
2521 (delete_thread): If deleting inferior_ptid or a thread with
2522 refcount > 0, mark it as exited, but still keep it in the list.
2523 Only notify of thread exits, if we haven't done so yet.
2524 (iterate_over_threads): Make it safe to delete threads while
2525 iterating over them.
2526 (do_captured_list_thread_ids): Don't account for exited threads.
2527 (thread_alive): Check for the THREAD_EXITED state, and don't set
2528 ptid to -1 on exited threads.
2529 (set_running): Update to account for extra possible states.
2530 (is_thread_state): New.
2531 (is_stopped, is_exited): New.
2532 (is_running): Implement in terms of is_thread_state.
2533 (any_running): Update.
2534 (print_thread_info): Update. Account for exited threads. Don't
2535 warn about missed frame restoring here, its done in the cleanup.
2536 (switch_to_thread): Don't read from a thread that has gone.
2537 (restore_current_thread): In non-stop mode, do a full context
2539 (restore_selected_frame): Add a frame_level argument. Rewrite.
2540 (struct current_thread_cleanup): Add selected_frame_level and
2541 was_stopped members.
2542 (do_restore_current_thread_cleanup): Check if thread was stopped
2543 and still is, and if the target has registers, stack and memory
2544 before restoring the selected frame. Don't delete the cleanup
2546 (restore_current_thread_cleanup_dtor): New.
2547 (make_cleanup_restore_current_thread): Remove all arguments.
2549 (thread_apply_all_command): Update. Prune threads.
2550 (thread_apply_command): Update.
2551 (thread_command): Account for currently selected exited thread.
2552 (do_captured_thread_select): Check for a running thread. Prune
2554 (_initialize_thread): Make "info threads", "thread", "thread
2555 apply", and "thread apply all" appliable without a selected thread.
2556 * gdbthread.h (struct thread_info): Replace running_ by state_.
2558 (is_exited, is_stopped): Declare.
2559 (make_cleanup_restore_current_thread): Remove all arguments.
2560 * infrun.c: Include "event-top.h".
2561 (fetch_inferior_event): In non-stop mode, restore selected thread
2562 and frame after handling the event and running breakpoint
2563 commands. Display GDB prompt if needed.
2564 (normal_stop): In non-stop mode, don't print thread switching
2566 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
2567 (get_cmd_no_selected_thread_ok): New.
2568 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New.
2569 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
2571 * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as
2572 no-selected-thread ok.
2573 * top.c (execute_command): Check for non no-selected-thread-ok
2575 * linux-nat.c (struct saved_ptids, threads_to_delete)
2576 (record_dead_thread, prune_lwps): Delete.
2577 (exit_lwp): Unconditionally delete thread.
2578 (linux_nat_resume): Remove prune_lwps call.
2579 * infcmd.c (proceed_thread_callback): Check if !is_stopped instead
2580 of is_running. Adjust to make_cleanup_restore_current_thread
2582 * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the
2583 selected thread has exited.
2584 * inf-loop.c (inferior_event_handler): Don't display the prompt
2586 * varobj.c (c_value_of_root): Update.
2587 * defs.h (make_cleanup_dtor): Declare.
2588 * utils.c (make_cleanup_dtor): New.
2590 * Makefile.in (infrun.o): Depend on $(event_top_h).
2592 2008-07-11 Pedro Alves <pedro@codesourcery.com>
2594 Add "continue -a" and "interrupt -a" options for non-stop mode.
2596 * infcmd.c (proceed_thread_callback, do_context_switch_to): New.
2597 (continue_command): Add "-a" option.
2598 (interrupt_target_command): Add "-a" option.
2599 (_initialize_infcmd): Add extend help of continue and interrupt
2600 command to mention the new "-a" option. Mark "continue" async ok.
2602 2008-07-10 Doug Evans <dje@google.com>
2604 Add "set print symbol-loading on|off".
2605 * NEWS: Document new option.
2606 * symfile.h (print_symbol_loading): Declare.
2607 * symfile.c (print_symbol_loading): New global.
2608 (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols
2609 from ..." if print_symbol_loading.
2610 (_initialize_symfile): Add set/show print symbol-loading.
2611 * solib.c (solib_read_symbols): Only print "Loaded symbols for ..."
2612 if print_symbol_loading.
2614 2008-07-10 Pedro Alves <pedro@codesourcery.com>
2616 Non-stop linux native.
2618 * linux-nat.c (linux_test_for_tracefork): Block events while we're
2620 (get_pending_status): Implement non-stop mode.
2621 (linux_nat_detach): Stop threads before detaching.
2622 (linux_nat_resume): In non-stop mode, always resume only a single
2624 (linux_handle_extended_wait): On a clone event, in non-stop mode,
2625 add new lwp to GDB's thread table, and mark as running, executing
2626 and stopped appropriately.
2627 (linux_nat_filter_event): Don't assume there are other running
2628 threads when a thread exits.
2629 (linux_nat_wait): Mark the main thread as running and executing.
2630 In non-stop mode, don't stop all lwps.
2631 (linux_nat_kill): Stop lwps before killing them.
2632 (linux_nat_thread_alive): Use signal 0 to detect if a thread is
2634 (send_sigint_callback): New.
2635 (linux_nat_stop): New.
2636 (linux_nat_add_target): Set to_stop to linux_nat_stop.
2638 * linux-nat.h (thread_db_attach_lwp): Declare.
2640 * linux-thread-db.c (thread_get_info_callback): Check for new
2641 threads if we have none.
2642 (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the
2643 stopped lwp. Check for new threads if we have none.
2644 (thread_db_attach_lwp): New.
2645 (thread_db_init): Set proc_handle.pid to inferior_ptid.
2646 (check_event): Set proc_handle.pid to the stopped lwp.
2647 (thread_db_find_new_threads): Set proc_handle.pid to any stopped
2648 lwp available, bail out if there is none.
2650 * linux-fork.c (linux_fork_killall): Use SIGKILL instead of
2653 2008-07-10 Kevin Buettner <kevinb@redhat.com>
2655 * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
2656 `current_pc' from CORE_ADDR to ULONGEST.
2658 * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
2661 2008-07-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2663 * NEWS (New commands): Mention "set disable-randomization".
2664 * configure.ac: Add check for HAVE_PERSONALITY and
2665 HAVE_DECL_ADDR_NO_RANDOMIZE.
2666 * configure, config.in: Regenerate.
2667 * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
2668 [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
2670 (disable_randomization, show_disable_randomization)
2671 (set_disable_randomization): New.
2672 (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
2673 PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the
2674 variable DISABLE_RANDOMIZATION.
2675 (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
2676 DISABLE_RANDOMIZATION.
2678 2008-07-09 Pedro Alves <pedro@codesourcery.com>
2680 Adjust all targets to new target_stop interface.
2682 * gnu-nat.c (gnu_stop): Add ptid argument.
2683 * go32-nat.c (go32_stop): Add ptid argument.
2684 (go32_create_inferior): Pass inferior_ptid to go32_stop.
2685 * hpux-thread.c (hpux_thread_stop): Add ptid argument.
2686 * monitor.c (monitor_stop): Add ptid argument.
2687 (monitor_open): Pass inferior_ptid to monitor_stop.
2688 (monitor_interrupt): Pass inferior_ptid to target_stop.
2689 (monitor_stop): Add ptid argument.
2690 * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
2691 (procfs_create_inferior): Add ptid argument.
2692 * procfs.c (procfs_stop): Add ptid argument.
2693 * remote-m32r-sdi.c (m32r_stop): Add ptid argument.
2694 * remote-sim.c (gdbsim_stop): Add ptid argument.
2695 * sol-thread.c (sol_thread_stop): Add ptid argument.
2696 * win32-nat.c (win32_stop): Add ptid argument.
2698 2008-07-09 Pedro Alves <pedro@codesourcery.com>
2700 Non-stop inferior control.
2702 * infrun.c (resume): In non-stop mode, always resume just one
2704 (proceed): Don't call prepare_to_proceed in non-stop mode.
2705 (fetch_inferior_event): In non-stop mode, switch context before
2707 (error_is_running, ensure_not_running): New.
2708 (handle_inferior_event): In non-stop mode: Mark only the event
2709 thread as stopped. Require that the target module manages adding
2710 threads to the thread list. Assert that there isn't a
2711 deferred_step_ptid set. Don't switch to infwait_thread_hop_state.
2712 (normal_stop): Only mark not-running if inferior hasn't exited.
2713 In non-stop mode, only mark the event thread.
2715 * thread.c:Include "cli/cli-decode.h".
2716 (print_thread_info): Don't read from a running thread.
2717 Output "(running)" if thread is running.
2718 (switch_to_thread): Don't read stop_pc if thread is executing.
2719 (do_restore_current_thread_cleanup): Don't write to a running
2721 (thread_apply_all_command): Don't read from a running thread. In
2722 non-stop mode, do a full context-switch instead of just switching
2724 (thread_apply_command): In non-stop mode, do a full context-switch
2725 instead of just switching threads.
2726 (do_captured_thread_select): Likewise. Inform user if selected
2728 (_initialize_thread): Mark "info threads" and "thread" and
2731 * inf-loop.c (inferior_event_handler): In non-stop mode, don't
2732 unregister the target from the event loop.
2734 * infcmd.c (continue_command, step_1, jump_command)
2735 (signal_command): Ensure the selected thread isn't running.
2736 (interrupt_target_command): In non-stop mode, interrupt only the
2739 * inferior.h (error_is_running, ensure_not_running): Declare.
2741 * target.h (struct target_ops): Add ptid argument to the to_stop
2743 (target_stop): Add ptid_t argument.
2745 * target.c (update_current_target): Add ptid argument to to_stop's
2747 (debug_to_stop): Add ptid_t argument.
2748 (debug_to_rcmd): Set to_stop_ptid.
2750 * remote.c (remote_stop): Add ptid_t argument.
2751 (async_remote_interrupt): Add inferior_ptid to target_stop.
2752 * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
2754 * Makefile.in (thread.o): Depend on $(cli_decode_h).
2756 2008-07-09 Pedro Alves <pedro@codesourcery.com>
2758 Don't rely on ecs->wait_for_more.
2760 * infrun.c (proceed): Clear the stepping state, set
2761 previous_inferior_ptid and clear infwait state.
2762 (wait_for_inferior): Don't clear the stepping state, set
2763 previous_inferior_ptid, or clear the infwait state here.
2764 (fetch_inferior_event): Don't clear the stepping state, set
2765 previous_inferior_ptid, or clear the infwait state here. Don't
2766 condition on wait_for_more.
2768 2008-07-09 Pedro Alves <pedro@codesourcery.com>
2770 Refactor infrun a bit.
2772 * infrun.c (currently_stepping): Take a struct
2773 thread_stepping_state instead of an execution_control_state.
2774 (struct thread_stepping_state): New, split from
2775 execution_control_state.
2776 (gtss, tss): New globals.
2777 (proceed): Clear the stepping state, set previous_inferior_ptid
2778 and clear infwait state.
2779 (init_wait_for_inferior): Clear the stepping state,
2780 previous_inferior_ptid and infwait state.
2781 (waiton_ptid, infwait_state): New, split from
2782 execution_control_state.
2783 (struct execution_control_state): Members that persist through
2784 events moved out to either struct thred_stepping_state or made
2785 global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
2786 (wait_for_inferior, fetch_inferior_event): Use local
2787 execution_control_state. Update to execution_control_state split.
2788 (init_execution_control_state): Adjust.
2789 (init_thread_stepping_state): New, extracted from
2790 init_execution_control_state.
2791 (context_switch): Take a ptid instead of an
2792 execution_control_state.
2793 (context_switch_to): Adjust.
2794 (adjust_pc_after_break): Adjust.
2795 (init_infwait_state): New.
2796 (handle_inferior_event): Adjust.
2798 2008-07-09 Pedro Alves <pedro@codesourcery.com>
2799 Vladimir Prus <vladimir@codesourcery.com>
2801 Per-thread commands.
2803 * gdbthread.h: Remove unneeded forward declarations.
2804 Include "inferior.h".
2805 (struct thread_info): Add continuations,
2806 intermediate_continuations, proceed_to_finish, step_over_calls,
2807 stop_step, step_multi and stop_signal members.
2808 (save_infrun_state): Add continuations,
2809 intermediate_continuations, proceed_to_finish, step_over_calls,
2810 stop_step, step_multi, stop_signal and stop_bpstat parameters.
2811 (load_infrun_state): Add continuations,
2812 intermediate_continuations, proceed_to_finish, step_over_calls,
2813 stop_step, step_multi, stop_signal and stop_bpstat parameters.
2815 * thread.c (load_infrun_state): In non-stop mode, load
2816 continuations, intermediate_continuations, proceed_to_finish,
2817 step_over_calls, stop_step, step_multi and stop_signal.
2818 (save_infrun_state): Store continuations,
2819 intermediate_continuations, proceed_to_finish, step_over_calls,
2820 stop_step, step_multi, stop_signal and stop_bpstat.
2821 (save_infrun_state): Store continuations,
2822 intermediate_continuations, proceed_to_finish, step_over_calls,
2823 stop_step, step_multi, stop_signal and stop_bpstat.
2824 (free_thread): Clear The thread's stop_bpstat.
2826 * inferior.h (context_switch_to): Declare.
2828 * infrun.c (ecss): New global.
2829 (context_switch): Context switch continuations,
2830 intermediate_continuations, proceed_to_finish, step_over_calls,
2831 stop_step, step_multi, stop_signal and stop_bpstat.
2832 (wait_for_inferior): Use global ecss.
2833 (async_ecss, async_ecs): Delete.
2834 (fetch_inferior_event): Use global ecss.
2835 (context_switch_to): New.
2837 * top.c (execute_command): In non-stop, only check if the current
2838 thread is running, in all-stop, check if there's any thread
2841 * breakpoint.c (bpstat_remove_breakpoint): New.
2842 (bpstat_remove_breakpoint_callback): New.
2843 (delete_breakpoint): Clear the stop_bpstats of all threads.
2845 * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
2846 current thread is running, in all-stop, check if there's any
2849 * Makefile.in (gdbthread_h): Depend on $(inferior_h).
2851 2008-07-09 Pedro Alves <pedro@codesourcery.com>
2853 Add non_stop global.
2855 * inferior.h (non_stop): Declare.
2856 * infrun.c (non_stop, non_stop_1): New.
2857 (set_non_stop, show_non_stop): New.
2858 (_initialize_infrun): Add "set/show non-stop" command.
2860 2008-07-09 Pedro Alves <pedro@codesourcery.com>
2862 Adjust fork/vfork/exec to pass ptids around.
2864 * target.h (struct target_waitstatus): Store related_pid as a ptid.
2865 (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
2867 * breakpoint.h (struct breakpoint): Change forked_inferior_pid
2869 * breakpoint.c (print_it_typical, bpstat_check_location)
2870 (print_one_breakpoint_location, set_raw_breakpoint_without_location)
2871 (create_fork_vfork_event_catchpoint): Adjust.
2872 * infrun.c (fork_event): Change parent_pid and child_pid types to
2874 (follow_exec, inferior_has_forked, inferior_has_vforked)
2875 (inferior_has_execd): Take a ptid_t and don't trim it.
2876 * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
2877 * linux-nat.c (linux_child_follow_fork): Adjust.
2878 * inf-ptrace.c (inf_ptrace_wait): Adjust.
2879 * inf-ttrace.c (inf_ttrace_wait): Adjust.
2880 * win32-nat.c (get_win32_debug_event): Don't set related_pid.
2882 2008-07-09 Pedro Alves <pedro@codesourcery.com>
2884 Add "executing" property to threads.
2886 * inferior.h (target_executing): Delete.
2887 * gdbthread.h (struct thread_info): Add executing_ field.
2888 (set_executing, is_executing): New.
2889 * thread.c (main_thread_executing): New.
2890 (init_thread_list): Clear it and also main_thread_running.
2891 (is_running): Return false if target has no execution.
2892 (any_running, is_executing, set_executing): New.
2894 * top.c: Include "gdbthread.h".
2895 (target_executing): Delete.
2896 (execute_command): Replace target_executing check by any_running.
2897 * event-top.c: Include "gdbthread.h".
2898 (display_gdb_prompt, command_handler): Replace target_executing by
2900 * inf-loop.c: Include "gdbthread.h". Don't mark as not executing
2901 here. Replace target_executing by is_running.
2902 * infrun.c (handle_inferior_event): Mark all threads as
2904 * linux-nat.c (linux_nat_resume): Don't mark thread as executing
2906 * stack.c (get_selected_block): Return null if inferior is
2908 * target.c (target_resume): Mark resumed ptid as executing.
2909 * breakpoint.c (until_break_command): Replace target_executing
2910 check by is_executing.
2911 * remote.c (remote_async_resume): Don't mark inferior as executing
2913 * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
2916 * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
2917 (mi_execute_async_cli_command): Replace target_executing by
2920 * frame.c (get_current_frame): Error out if the current thread is
2922 (has_stack_frames): New.
2923 (get_selected_frame, deprecated_safe_get_selected_frame): Check
2926 * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
2929 2008-07-09 Pedro Alves <pedro@codesourcery.com>
2931 * symfile.c (load_command): Reopen the exec file and reread
2932 symbols before anything else.
2934 2008-07-09 Pedro Alves <pedro@codesourcery.com>
2936 * remote-sim.c: Include gdbthread.h.
2937 (remote_sim_ptid): New global.
2938 (gdbsim_create_inferior): Silently add the main task to GDB's
2940 (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
2941 task from GDB's thread list.
2942 (gdbsim_resume): Adjust to use remote_sim_ptid.
2943 (gdbsim_thread_alive, gdbsim_pid_to_str): New.
2944 (init_gdbsim_ops): Register gdbsim_thread_alive and
2946 (_initialize_remote_sim): Initialize remote_sim_ptid.
2947 * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
2949 2008-07-09 Pedro Alves <pedro@codesourcery.com>
2951 * monitor (monitor_ptid): New global.
2952 (monitor_open): Silently add the main task to GDB's thread list.
2953 (monitor_close, monitor_mourn_inferior): Silently delete the main
2954 task from GDB's thread list.
2955 (monitor_thread_alive, monitor_pid_to_str): New.
2956 (init_base_monitor_ops): Register monitor_thread_alive and
2958 (_initialize_remote_monitors): Initialize monitor_ptid.
2960 * gdbthread.h (delete_thread_silent): Declare.
2961 * thread.c (delete_thread): Rename to ...
2962 (delete_thread_1): ... this. Add "silent" parameter. If silent,
2963 don't do exit notifications.
2964 (delete_thread, delete_thread_silent): New, as wrappers to
2967 2008-07-08 Pedro Alves <pedro@codesourcery.com>
2969 * breakpoint.c (update_global_location_list): Add boolean
2970 "should_insert" argument. Only insert locations if caller told it
2972 (update_global_location_list_nothrow): Add boolean "should_insert"
2973 argument. Pass it to update_global_location_list.
2974 (insert_breakpoints, create_longjmp_breakpoint)
2975 (create_overlay_event_breakpoint, enable_overlay_breakpoints)
2976 (create_thread_event_breakpoint, create_solib_event_breakpoint)
2977 (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
2978 (enable_watchpoints_after_interactive_call_stop)
2979 (set_momentary_breakpoint, create_breakpoints)
2980 (break_command_really, watch_command_1)
2981 (create_ada_exception_breakpoint, update_breakpoint_locations)
2982 (do_enable_breakpoint, enable_command): Pass true to
2983 update_global_location_list.
2984 (bpstat_stop_status, disable_overlay_breakpoints)
2985 (disable_watchpoints_before_interactive_call_start)
2986 (delete_breakpoint, disable_breakpoint, disable_command): Pass
2987 false to update_global_location_list.
2988 (update_breakpoints_after_exec): Don't temporarily disable
2989 always-inserted mode.
2991 2008-07-08 Pedro Alves <pedro@codesourcery.com>
2993 * breakpoint.c (mark_breakpoints_out): Make public.
2994 (update_breakpoints_after_exec): Don't call mark_breakpoints_out
2995 here. Update comment.
2996 * breakpoint.h (mark_breakpoints_out): Declare.
2998 * linux-nat.c (linux_handle_extended_wait): On
2999 TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
3000 * inf-ttrace.c (inf_ttrace_wait): Likewise.
3002 2008-07-08 Pedro Alves <pedro@codesourcery.com>
3004 * infrun.c (follow_exec): Reset shared libraries before adding the
3007 2008-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3009 * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
3011 2008-07-07 Pedro Alves <pedro@codesourcery.com>
3013 * i386-dicos-tdep.c: Include "inferior.h".
3014 (i386_dicos_frame_align): New.
3015 (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call
3016 dummy location ON_STACK.
3017 * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
3019 2008-07-07 Joel Brobecker <brobecker@adacore.com>
3021 * gstdint.h: New file.
3023 2008-07-05 Vladimir Prus <vladimir@codesourcery.com>
3025 * mi/mi-interp.c (mi_on_resume): Don't try to report
3026 resumed thread it the thread list is empty.
3028 2008-07-05 Pierre Muller <muller@ics.u-strasbg.fr>
3030 * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
3031 completer for set to filename_completer.
3035 2008-07-04 Vladimir Prus <vladimir@codesourcery.com>
3037 Implement -target-attach.
3038 * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
3040 2008-06-21 Hui Zhu <teawater@gmail.com>
3042 * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
3044 2008-07-03 Pedro Alves <pedro@codesourcery.com>
3046 * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
3047 * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
3049 * target.h (struct target_ops): Add to_attach_no_wait member.
3050 (target_attach_no_wait): New.
3051 * target.c (update_current_target): Inherit to_attach_no_wait.
3053 * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
3054 target_attach_no_wait runtime check.
3056 * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
3057 * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
3060 2008-07-03 Pedro Alves <pedro@codesourcery.com>
3062 * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
3063 on debug_displaced being set.
3065 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
3067 * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
3068 directly instead of get_frame_id.
3070 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
3072 * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
3073 (deal_with_atomic_sequence): Update BC masks.
3074 (rs6000_gdbarch_init): Init displaced stepping infra-structure.
3075 Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
3077 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
3079 * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
3080 register, not the previous frame's.
3082 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
3084 * source.c (select_source_symtab): Make sure we skip namespace
3085 symtabs when showing cpp source code.
3087 2008-06-30 Hans-Peter Nilsson <hp@axis.com>
3089 * MAINTAINERS (Authorized committers): Fix my email address.
3091 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
3093 * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
3094 -target-download and -target-select via CLI, so that
3095 the quoting rules are the same as they were (unfortunately)
3096 in all prior gdb releases.
3097 * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
3098 (mi_cmd_target_download, mi_cmd_target_select): Remove.
3099 * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
3100 (mi_cmd_target_download, mi_cmd_target_select): Remove.
3101 (mi_cmd_execute): Set current_token even for commands
3104 2008-06-28 Ulrich Weigand <uweigand@de.ibm.com>
3106 * alphafbsd-tdep.c: Update for unwinder changes.
3107 * alpha-linux-tdep.c: Likewise.
3108 * alphanbsd-tdep.c: Likewise.
3109 * alphaobsd-tdep.c: Likewise.
3110 * avr-tdep.c: Likewise.
3111 * cris-tdep.c: Likewise.
3112 * frv-linux-tdep.c: Likewise.
3113 * frv-tdep.c: Likewise.
3114 * h8300-tdep.c: Likewise.
3115 * hppa-linux-tdep.c: Likewise.
3116 * iq2000-tdep.c: Likewise.
3117 * m32c-tdep.c: Likewise.
3118 * m32r-linux-tdep.c: Likewise.
3119 * m32r-tdep.c: Likewise.
3120 * m68hc11-tdep.c: Likewise.
3121 * mep-tdep.c: Likewise.
3122 * mn10300-tdep.c: Likewise.
3123 * mt-tdep.c: Likewise.
3124 * score-tdep.c: Likewise.
3125 * sh64-tdep.c: Likewise.
3126 * sh-tdep.c: Likewise.
3127 * sparc64fbsd-tdep.c: Likewise.
3128 * sparc64nbsd-tdep.c: Likewise.
3129 * sparc64obsd-tdep.c: Likewise.
3130 * v850-tdep.c: Likewise.
3131 * vaxobsd-tdep.c: Likewise.
3132 * vax-tdep.c: Likewise.
3133 * xstormy16-tdep.c: Likewise.
3135 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
3137 * mi/mi-main.c (enum captured_mi_execute_command_actions)
3138 (captured_mi_execute_command_args): Remove.
3139 (captured_mi_execute_command): Cast the closure to mi_parse
3140 pointer, not to captured_mi_execute_command_args, and don't
3141 set the action field thereof.
3142 (mi_execute_command): Pass struct mi_parse, not
3143 captured_mi_execute_command_args to captured_mi_execute_command.
3144 (mi_execute_command): Remove (dead) code for suppressing
3147 2008-06-28 Pedro Alves <pedro@codesourcery.com>
3149 * linux-nat.c (enum sigchld_state): New.
3150 (linux_nat_async_events_state): Renamed from
3151 linux_nat_async_events_enabled.
3152 (linux_nat_event_pipe_push, my_waitpid): Adjust.
3153 (sigchld_default_action): New.
3154 (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
3156 (linux_nat_create_inferior): Set events state to sigchld_default
3158 (linux_nat_resume): Adjust.
3159 (linux_nat_wait): Call linux_nat_async_events unconditionally.
3160 (sigchld_handler): Adjust.
3161 (linux_nat_async_mask): Don't set SIGCHLD actions here.
3162 (get_pending_events): Adjust.
3163 (linux_nat_async_events): Rewrite to handle enum sigchld_state
3164 instead of a boolean.
3165 (linux_nat_async): Adjust.
3166 (_initialize_linux_nat): Capture default SIGCHLD action into
3167 sigchld_default_action.
3169 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
3171 * breakpoint.c (moribund_locations): New.
3172 (bpstat_stop_status): Process moribund locations.
3173 (update_global_location_list): Add removed
3174 locations to moribund_locations.
3175 (breakpoint_retire_moribund): New.
3176 * breakpoint.h (struct bp_location): New field
3177 events_till_retirement.
3178 (breakpoint_retire_moribund): Declare.
3179 * thread.c (thread_count): New.
3180 * infrun.c (handle_inferior_event): Call
3181 breakpoint_retire_moribund.
3182 * gdbthread.h (thread_count): Declare.
3184 2008-06-27 Joseph Myers <joseph@codesourcery.com>
3186 * dfp.c (decimal_convert): Call match_endianness before and after
3189 2008-06-27 Jonathan Larmour <jifl@eCosCentric.com>
3191 * remote.c (remote_insert_breakpoint): Ensure that if Z0
3192 unsupported and we fall back to memory_insert_breakpoint, we
3193 use the unmodified requested address.
3195 2008-06-27 Joel Brobecker <brobecker@adacore.com>
3197 * dwarf2read.c (read_attribute_value): Issue a complaint when
3198 adjusting size attribute values of 0xffffffff as zero.
3200 2008-06-27 Joseph Myers <joseph@codesourcery.com>
3202 * i386-tdep.c (i386_16_byte_align_p): New.
3203 (i386_push_dummy_call): Determine stack space required for
3204 arguments going forwards allowing for 16-byte alignment, then push
3205 arguments going forwards.
3207 2008-06-27 Pedro Alves <pedro@codesourcery.com>
3209 * infrun.c (start_remote): Don't clear thread list here.
3210 * monitor.c (monitor_open): Include "gdbthread.h". Clear thread
3212 * remote.c (record_currthread): Upgrade the main thread and its
3213 entry in the thread list if this is the first time we hear about
3215 (remote_thread_alive): Consider magic_null_ptid or a ptid without
3216 a tid member always alive.
3217 (remote_find_new_threads): Don't update the main thread here.
3218 (remote_start_remote): Clear thread list here. Always add the
3220 (extended_remote_attach_1): Add the main thread here.
3221 (extended_remote_mourn_1): Re-add the main thread here.
3222 (extended_remote_create_inferior_1): Add a main thread.
3224 * Makefile.in (monitor.o): Depend on $(gdbthread_h).
3226 2008-06-27 Pedro Alves <pedro@codesourcery.com>
3228 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
3230 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
3232 (general_thread, continue_thread): Change type to ptid_t.
3233 (record_currthread): Take a ptid_t parameter instead of an
3235 (MAGIC_NULL_PID): Delete.
3236 (set_thread): Take a ptid_t parameter and adjust.
3237 (set_general_thread, set_continue_thread): New.
3238 (remote_thread_alive, remote_newthread_step)
3239 (remote_current_thread, remote_find_new_threads)
3240 (remote_threads_info, remote_start_remote, remote_vcont_resume)
3241 (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
3242 (threadalive_test, remote_pid_to_str)
3243 (remote_get_thread_local_address): Adjust.
3244 (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
3245 and any_thread_ptid.
3247 2008-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3249 * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
3250 * configure: Regenerated.
3252 2008-06-26 Joel Brobecker <brobecker@adacore.com>
3254 * dwarf2read.c (read_attribute_value): Treat size attribute
3255 values of 0xffffffff as if the attribute value was zero.
3257 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
3259 * linux-nat.c: Add description of overall logic.
3261 2008-06-26 Daniel Jacobowitz <dan@codesourcery.com>
3263 * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
3264 (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
3265 all dependencies on $(gdb_stdint_h).
3266 (distclean): Do not delete gdb_stdint.h.
3267 * acinclude.m4: Do not use stdint.m4.
3268 * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
3269 uintptr_t, and gdb_stdint.h.
3270 * defs.h: Include <stdint.h>.
3271 * gdb_thread_db.h: Assume stdint.h is already included.
3272 * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
3273 rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
3274 include gdb_stdint.h.
3275 * configure, config.in: Regenerate.
3277 2008-06-26 Joseph Myers <joseph@codesourcery.com>
3279 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
3280 decimal floating-point values in GPRs for soft-float.
3281 (do_ppc_sysv_return_value): Handle returning decimal
3282 floating-point values in GPRs for soft-float.
3284 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
3286 * target.c (target_read_until_error): New.
3287 * target.h (target_read_until_error): Declare.
3288 * mi/mi-main.c (mi_cmd_data_read_memory): Use
3289 target_read_until_error.
3291 2008-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3293 Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
3294 * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
3295 after the DECFLOAT detection to fix a memory leak. Remove the
3296 redundant NUM initialization. Protect the DECFLOAT detection memory
3297 access before the P block. Restore the P memory content for the
3300 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
3302 Kill the return value for all MI command functions.
3303 * mi/mi-cmds.h (enum mi_cmd_result): Remove.
3304 (mi_cmd_argv_ftype): Change return type to void.
3306 * mi/mi-main.c: Adjust all function that implement
3307 MI commands to return nothing.
3308 (struct captured_mi_execute_command_actions):
3309 Remove the rc field.
3310 (mi_cmd_execute): Return nothing.
3311 (mi_execute_async_cli_command): Return nothing.
3312 (mi_cmd_exec_interrupt): Don't print ^done here.
3313 (mi_cmd_target_select): Don't print ^connected here.
3314 (captured_mi_execute_command): Don't check for MI_CMD_DONE.
3315 Special-case -target-select and output ^connected, not ^done.
3317 * mi/mi-cmd-break.c: Adjust.
3318 * mi/mi-cmd-disas.c: Adjust.
3319 * mi/mi-cmd-env.c: Adjust.
3320 * mi/mi-cmd-file.c: Adjust.
3321 * mi/mi-cmd-stack.c: Adjust.
3322 * mi/mi-cmd-target.c: Adjust.
3323 * mi/mi-cmd-var.c: Adjust.
3324 * mi/mi-interp.c: Adjust.
3325 * mi/mi-symbol-cmds.c: Adjust.
3327 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
3329 Emit ^running via observer.
3330 * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
3332 (mi_on_resume): Print ^running if not previously output.
3333 * mi/mi-main.c (running_result_record_printed): New.
3334 (captured_mi_execute_command): Reset
3335 running_result_record_printed. Use running_result_record_printed
3336 to decide if we should skip ^done.
3337 (mi_execute_async_cli_command): Don't print ^running here.
3338 * mi/mi-main.h (current_token, running_result_record_printed):
3341 2008-06-24 Michael Snyder <msnyder@specifix.com>
3343 * infrun.c (_initialize_infrun): White space and typo fix.
3345 2008-06-23 Christopher Faylor <me.gdb.changelog@cgf.cx>
3347 * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
3348 (do_initial_win32_stuff): Fix problem with inability to set breakpoints
3349 when first loading DLL with "dll" command.
3351 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3353 * gnu-nat.c (proc_string): Use capital T for "Thread".
3355 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3357 * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
3359 2008-06-18 Joel Brobecker <brobecker@adacore.com>
3361 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
3362 the target cannot run.
3364 2008-06-18 Joel Brobecker <brobecker@adacore.com>
3366 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
3367 we're attaching to a running process.
3369 2008-06-18 Pierre Muller <muller@ics.u-strasbg.fr>
3371 * win32-nat.c (handle_load_dll): Give dll name and load address
3372 if debug_events is on.
3373 (handle_unload_dll): Likewise.
3375 2008-06-14 Vladimir Prus <vladimir@codesourcery.com>
3377 Don't suppress *running when doing finish.
3378 * infcall.c (call_function_by_hand): Set both
3379 suppress_resume_observer and suppress_stop_observer.
3380 * infcmd.c (suppress_run_stop_observers): Split into...
3381 (suppress_resume_observer, suppress_stop_observer): ...those.
3382 (finish_command_continuation): Clear suppress_stop_observer.
3383 (finish_command): Set suppress_stop_observer.
3384 * inferior.h (suppress_run_stop_observers): Split into...
3385 (suppress_resume_observer, suppress_stop_observer): ...those.
3386 * infrun.c (normal_stop): Check for suppress_stop_observer.
3387 * thread.c (set_running): Check for suppress_resume_observer.
3389 2008-06-12 Pedro Alves <pedro_alves@portugalmail.pt>
3390 Pierre Muller <muller@ics.u-strasbg.fr>
3392 * gdbarch.sh (gdbarch_skip_main_prologue): New.
3393 * gdbarch.h, gdbarch.c: Regenerate.
3394 * i386-tdep.h (i386_skip_main_prologue): Declare.
3395 * i386-tdep.c (i386_skip_main_prologue): New.
3396 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
3397 i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
3398 * symtab.c (find_function_start_sal): When pc points at the "main"
3399 function, call gdbarch_skip_main_prologue.
3401 2008-06-11 Daniel Jacobowitz <dan@codesourcery.com>
3403 * value.c (value_primitive_field): Fetch lazy register values.
3405 2008-06-11 Pedro Alves <pedro@codesourcery.com>
3407 * NEWS: Mention support removal of undocumented S AA p PID stop
3410 * remote.c (remote_wait): Remove undocumented S AA p PID support.
3412 2008-06-10 Stan Shebs <stan@codesourcery.com>
3414 * MAINTAINERS: Update my affiliation and address.
3416 2008-06-10 Andreas Schwab <schwab@suse.de>
3418 * top.c (print_gdb_version): Don't print final newline.
3420 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
3423 * Makefile.in: Update dependencies.
3424 * gdbthread.h (struct thread_info): New field
3426 (set_running, is_running): New.
3427 * thread.c (set_running, is_running): New.
3428 * inferior.h (suppress_normal_stop_observer): Rename to...
3429 (suppress_run_stop_observers): ..this.
3430 * infcmd.c (suppress_normal_stop_observer): Rename to...
3431 (suppress_run_stop_observers): ..this.
3432 (finish_command_continuation, finish_command): Adjust.
3433 * infcall.c (call_function_by_hand): Adjust.
3434 * infrun.c (normal_stop): Call set_running.
3435 * target.c (target_resume): New. Call set_running.
3436 * target.h (target_resume): Convert from macro to
3439 * mi/mi-interp.c (mi_on_resume): New.
3440 (mi_interpreter_init): Register mi_on_resume.
3442 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
3444 Use observers to report stop events in MI.
3445 * mi/mi-interp.c (mi_on_normal_stop): New.
3446 (mi_interpreter_init): Register mi_on_normal_stop.
3447 (mi_interpreter_exec_continuation): Remove.
3448 (mi_cmd_interpreter_exec): Don't register the above.
3449 * mi/mi-main.c (captured_mi_execute_command): Don't care
3450 about sync_execution.
3451 (mi_execute_async_cli_command): Don't install continuation. Don't
3453 (mi_exec_async_cli_cmd_continuation): Remove.
3455 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
3457 Suppress normal stop observer when it's problematic.
3458 * inferior.h (suppress_normal_stop_observer): New.
3459 * infcall.c (call_function_by_hand): Disable stop events when
3460 doing function calls.
3461 * infmcd.c (suppress_normal_stop_observer): New.
3462 (finish_command_continuation): Call normal_stop observer
3464 (finish_command): Disable stop events inside proceed.
3465 * infrun.c (normal_stop): Don't call normal stop observer if
3466 suppressed of if multi-step is in progress.
3468 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
3471 * infrun.c (finish_command): Don't pass cleanup
3473 (finish_command_continuation): Don't grab cleanup from
3474 the passed data, as we don't use, and cannot, use it anyway.
3476 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
3478 Introduce common cleanup for restoring integers.
3479 * defs.h (make_cleanup_restore_integer): New declaration.
3480 (struct cleanup): New field free_arg.
3481 (make_my_cleanup_2): New.
3482 * utils.c (restore_integer_closure, restore_integer)
3483 (make_cleanup_restore_integer): New.
3484 (make_my_cleanup): Initialize the free_arg field and
3485 renamed to make_my_cleanup_2.
3486 (do_my_cleanups): Call free_arg.
3487 (discard_cleanups): Call free_arg.
3488 * breakpoint.c (restore_always_inserted_mode): Remove.
3489 (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
3491 2008-06-09 Doug Evans <dje@google.com>
3493 * remote.c (remote_wait): Include beginning of malformed packet
3496 2008-06-09 Tom Tromey <tromey@redhat.com>
3498 * completer.c (complete_line): Don't special-case
3499 expression_completer.
3500 (expression_completer): Only pass last word to
3502 * c-exp.y (yylex): Check 'token', not 'operator'.
3504 2008-06-09 Daniel Jacobowitz <dan@codesourcery.com>
3506 * configure.ac (build_warnings): Add -Wno-format for mingw.
3507 * configure: Regenerated.
3509 2008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
3511 * NEWS: Make indentation consistent. Move exec tracing entry out
3512 of remote packet list.
3514 2008-06-06 Tom Tromey <tromey@redhat.com>
3516 * value.h (evaluate_subexpression_type, extract_field_op):
3518 * printcmd.c (_initialize_printcmd): Use expression_completer for
3519 'p', 'inspect', 'call'.
3520 * parser-defs.h (parse_field_expression): Declare.
3521 * parse.c: Include exceptions.h.
3522 (in_parse_field, expout_last_struct): New globals.
3523 (mark_struct_expression): New function.
3524 (prefixify_expression): Return int.
3525 (prefixify_subexp): Return int. Use expout_last_struct.
3526 (parse_exp_1): Update.
3527 (parse_exp_in_context): Add 'out_subexp' argument. Handle
3529 (parse_field_expression): New function.
3530 * expression.h (parse_field_expression): Declare.
3531 (in_parse_field): Likewise.
3532 * eval.c (evaluate_subexpression_type): New function.
3533 (extract_field_op): Likewise.
3534 * completer.h (expression_completer): Declare.
3535 * completer.c (expression_completer): New function.
3536 (count_struct_fields, add_struct_fields): New functions.
3537 * c-exp.y (yyparse): Redefine.
3538 (COMPLETE): New token.
3539 (exp): New productions.
3540 (saw_name_at_eof, last_was_structop): New globals.
3541 (yylex): Return COMPLETE when needed. Recognize in_parse_field.
3542 (c_parse): New function.
3543 * breakpoint.c (_initialize_breakpoint): Use expression_completer
3544 for watch, awatch, and rwatch.
3545 * Makefile.in (parse.o): Depend on exceptions_h.
3547 2008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3550 * gdb/valopts.c (find_overload_match): Handle references
3553 2008-06-06 Paul N. Hilfinger <hilfinger@adacore.com>
3555 * ada-lang.c (ada_value_assign): Correct big-endian case to take into
3556 account the bitsize of the 'from' operand.
3558 2008-06-06 Pedro Alves <pedro@codesourcery.com>
3560 * annotate.h (annotate_thread_changed): Declare.
3562 2008-06-06 Nick Roberts <nickrob@snap.net.nz>
3564 * annotate.c (annotate_thread_changed): New function.
3565 * thread.c (thread_command) : Use it.
3566 * infrun.c (normal_stop): Use it.
3568 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
3569 Nathan Sidwell <nathan@codesourcery.com>
3570 Joseph Myers <joseph@codesourcery.com>
3572 * acinclude.m4: Include ../config/acx.m4.
3573 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
3574 * configure, config.in: Regenerate.
3575 * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
3577 * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
3579 2008-06-05 Pedro Alves <pedro@codesourcery.com>
3581 Replace 'target async' by 'maintenance set remote-async' and
3582 'target remote' combination.
3584 * remote.c (remote_async_wait): Merge into remote_wait, and
3586 (remote_async_permitted, remote_async_permitted_set): New
3588 (set_maintenance_remote_async_permitted)
3589 (show_maintenance_remote_async_permitted): New functions.
3590 (remote_async_ops, extended_async_remote_ops): Delete.
3591 (remote_async_open, extended_remote_async_open): Delete.
3592 (remote_open_1): Drop async_p parameter. Update callers. Replace
3593 async_p with remote_async_permitted checks.
3594 (extended_async_remote_attach): Delete.
3595 (remote_resume, remote_async_resume): Merge and leave remote_resume.
3596 (remote_async_terminal_inferior): Rename to...
3597 (remote_terminal_inferior): ... this, and add
3598 remote_async_termitted check.
3599 (remote_async_terminal_ours): Rename to...
3600 (remote_terminal_ours): ... this, and add remote_async_termitted
3602 (remote_wait, remote_async_wait): Merge and leave remote_wait
3604 (remote_kill, remote_async_kill): Merge and leave remote_kill
3606 (remote_async_mourn, extended_async_remote_mourn): Delete.
3607 (extended_remote_create_inferior_1): Drop async_p parameter.
3608 Update callers. Always use extended_remote_ops.
3609 (extended_remote_async_create_inferior): Delete.
3610 (remote_return_zero): Delete.
3611 (init_remote_ops): Register remote_can_async_p, remote_async,
3612 remote_async_mask, remote_terminal_inferior and
3613 remote_terminal_ours.
3614 (remote_can_async_p, remote_is_async_p): Check for
3615 remote_async_permitted.
3616 (init_remote_async_ops, init_extended_async_remote_ops): Remove.
3617 (set_remote_cmd): Don't add async and extended-async targets.
3618 (_initialize_remote): Add set/show remote-async maintenance
3621 2008-06-05 Pedro Alves <pedro@codesourcery.com>
3623 * remote.c (kill_kludge): Delete.
3624 (remote_wait, remote_async_wait): Don't set it.
3625 (remote_kill, remote_async_kill): Don't do anything with it.
3627 2008-06-05 Pedro Alves <pedro@codesourcery.com>
3629 * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
3631 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
3633 * bcache.c (bcache_data): Call deprecated_bcache_added function.
3634 (deprecated_bcache_added): New function name. Body of function
3635 bcache_data is used here with the addition of 'added' argument.
3636 * bcache.h (deprecated_bcache_added): New function.
3637 * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
3638 work from add_psymbol_to_list - initialises partial symbol and stashes
3639 it in objfile's cache.
3640 (append_psymbol_to_list): New helper function, takes other part of
3641 work from add_psymbol_to_list - adds partial symbol to the given list.
3642 (add_psymbol_to_list): Call helper functions instead of doing work
3643 here. If adding to global list, do not duplicate partial symbols in the
3646 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
3648 * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
3649 'exception caught|thrown' message.
3651 2008-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3653 * Makefile.in: Update dependencies.
3654 * dwarf2expr.c: New include "gdb_assert.h".
3655 (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
3656 (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
3657 (execute_stack_op): Error out on too large RECURSION_DEPTH.
3658 Increase/decrease RECURSION_DEPTH around the function.
3660 2008-06-05 Daniel Jacobowitz <dan@codesourcery.com>
3662 * remote.c (get_offsets): Handle a single segment.
3663 * symfile.c (symfile_map_offsets_to_segments): Allow more bases
3666 2008-06-03 Daniel Jacobowitz <dan@codesourcery.com>
3668 * solib-svr4.c (struct lm_info): Add lm_addr.
3669 (main_lm_addr): New.
3670 (svr4_default_sos): Set lm_addr.
3671 (svr4_current_sos): Set lm_addr and main_lm_addr.
3672 (svr4_fetch_objfile_link_map): Rewrite.
3673 (svr4_clear_solib): Clear main_lm_addr.
3675 2008-06-03 Michael Snyder <msnyder@redhat.com>
3676 Joseph Myers <joseph@codesourcery.com>
3678 * mips-tdep.c (mips_eabi_return_value): Replace stub that always
3679 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
3681 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
3683 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
3685 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
3687 * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
3689 2008-06-01 Joel Brobecker <brobecker@adacore.com>
3691 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
3692 treat pointers in data space as function descriptors if the
3693 target address is also in the data space.
3695 2008-05-30 Joel Brobecker <brobecker@adacore.com>
3697 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
3698 the trad-frame register value for the SP register.
3700 2008-05-29 Mark Kettenis <kettenis@gnu.org>
3702 * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
3704 2008-05-28 Joel Brobecker <brobecker@adacore.com>
3706 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
3707 that identifies function descriptors outside of the .opd section.
3709 2008-05-28 Aleksandar Ristovski <aristovski@qnx.com>
3711 * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
3712 temporary catchpoints. In MI add missing fields 'reason', 'disp',
3714 (print_mention_exception_catchpoint): Add 'Temporary' for temporary
3716 (handle_gnu_v3_exceptions): Use tempflag.
3718 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
3720 Refactor varobj_update interface.
3721 * varobj.c (varobj_update): Report changes as vector. Also
3722 return not just a list of varobj, but a list of special structures
3723 that tell what exactly has changed.
3724 * varobj.h (enum varobj_update_error): Rename to
3725 varobj_scope_status.
3726 (struct varobj_update_result_t): New.
3727 (varobj_update): Adjust prototype.
3728 * mi/mi-cmd-var.c: Adjust for changes.
3730 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
3732 * varobj.c (varobj_update): Fix comment typo.
3735 2008-05-26 Joel Brobecker <brobecker@adacore.com>
3737 Set the symtab field of symbols read from ECOFF debugging entries.
3738 * mdebugread.c (add_symbol): Add new parameter symtab.
3739 (parse_symbol): Update calls to add_symbol throughout.
3741 2008-05-27 Andreas Schwab <schwab@suse.de>
3743 * symtab.h (enum address_class): Remove LOC_REGPARM and
3745 (struct symbol): Add is_argument.
3746 (SYMBOL_IS_ARGUMENT): Define.
3748 * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
3749 * buildsym.c (finish_block): Likewise.
3750 * stack.c (print_frame_args, print_block_frame_locals)
3751 (print_frame_arg_vars): Likewise.
3752 * symtab.c (lookup_block_symbol): Likewise.
3753 * tracepoint.c (add_local_symbols): Likewise.
3754 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
3756 * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
3757 * dwarf2read.c (new_symbol): Likewise.
3758 * mdebugread.c (parse_symbol): Likewise.
3759 * stabsread.c (define_symbol): Likewise.
3761 * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
3762 and LOC_COMPUTED_ARG.
3763 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
3764 * ax-gdb.c (gen_var_ref): Likewise.
3765 * eval.c (evaluate_subexp_for_address): Likewise.
3766 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
3767 * m2-exp.y (yylex): Likewise.
3768 * printcmd.c (address_info): Likewise.
3769 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
3770 * tracepoint.c (collect_symbol, scope_info): Likewise.
3772 2008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3774 * gdbarch.sh: Added new gdbarch struct
3775 core_regset_sections.
3776 * gdbarch.c: Refreshed.
3777 * gdbarch.h: Refreshed.
3778 * regset.h (core_regset_section): Declared.
3779 * linux-nat.c (linux_nat_do_thread_registers): Added
3780 support for the new gdbarch struct core_regset_sections.
3781 * utils.c (host_address_to_string): New function.
3782 * defs.h (host_address_to_string): New prototype.
3783 * i386-linux-tdep.c (i386_regset_rections): New register
3784 sections list for i386.
3785 (i386_linux_init_abi): Initialized new gdbarch struct
3786 core_regset_sections.
3787 * Makefile.in: Updated to reflect dependency changes.
3788 * ppc-linux-tdep.c (ppc_regset_sections): Register
3789 sections list for ppc.
3790 (ppc_linux_init_abi): Initialized new gdbarch struct
3791 core_regset_sections
3793 2008-05-24 Andreas Schwab <schwab@suse.de>
3795 * linespec.c (decode_objc): Save current language around call to
3798 2008-05-23 Joel Brobecker <brobecker@adacore.com>
3800 * valprint.h (get_array_bounds): Renames get_array_low_bound.
3801 * valprint.c (get_array_bounds): Renames get_array_low_bound.
3802 Return the proper bound value if the array index type is an
3803 enumerated type. Compute the high bound if requested.
3804 (val_print_array_elements): Handle the case when the array
3805 element has a null size.
3806 * ada-valprint.c (print_optional_low_bound): Add handling
3807 for empty arrays or arrays of zero-size elements.
3808 (ada_val_print_array): New function, extracted out from
3809 ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
3810 handle empty arrays and arrays of zero-size elements.
3811 (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
3812 code by call to ada_val_print_array.
3813 (ada_value_print): Remove handling of null array. The handling
3814 was incomplete and is now better handled by ada_val_print_array.
3816 2008-05-23 Markus Deuling <deuling@de.ibm.com>
3818 * annotate.c (annotate_source, annotate_frame_begin): Replace
3819 deprecated_print_address_numeric with paddress.
3820 * cli/cli-cmds.c (list_command, edit_command): Likewise.
3821 * tui/tui-stack.c (tui_make_status_line): Likewise.
3823 * defs.h (deprecated_print_address_numeric): Remove.
3824 * printcmd.c (deprecated_print_address_numeric): Remove.
3825 * maint.c (maint_print_section_info): Fix comment.
3827 2008-05-23 Markus Deuling <deuling@de.ibm.com>
3829 * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
3830 print_binary_chars, print_char_chars): Add byte_order parameter and
3831 replace gdbarch_byte_order.
3832 (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
3833 expressions and remove them. Remove unused TWO_TO_FOURTH.
3834 (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
3835 endianness. Update call to print_hex_chars.
3836 * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
3837 print_binary_chars, print_char_chars): Add byte_order parameter.
3838 * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
3839 get at the endianness. Update print_*_char calls to use byte_order.
3841 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
3843 * symtab.h (struct symbol): Make "aux_value" member a void pointer
3845 (SYMBOL_LOCATION_BATON): Update.
3847 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
3849 * symtab.h (enum address_class): Remove LOC_BASEREG and
3851 (struct symbol): Remove "basereg" member of "aux_value" union.
3852 (SYMBOL_BASEREG): Remove.
3854 * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
3856 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
3857 (ada_add_block_symbols): Likewise.
3858 * ax-gdb.c (gen_var_ref): Likewise.
3859 * buildsym.c (finish_block): Likewise.
3860 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
3861 * m2-exp.y (yylex): Likewise.
3862 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
3863 * printcmd.c (address_info): Likewise.
3864 * stack.c (print_frame_args, print_block_frame_locals): Likewise.
3865 (print_frame_arg_vars): Likewise.
3866 * symmisc.c (print_symbol): Likewise.
3867 * symtab.c (lookup_block_symbol): Likewise.
3868 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
3869 (scope_info): Likewise.
3871 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
3873 * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
3875 * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
3876 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
3877 (ada_add_block_symbols): Likewise.
3878 * ax-gdb.c (gen_var_ref): Likewise.
3879 * buildsyms.c (finish_block): Likewise.
3880 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
3881 * m2-exp.y (yylex): Likewise.
3882 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
3883 * printcmd.c (address_info): Likewise.
3884 * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
3885 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
3886 * symtab.c (lookup_block_symbol): Likewise.
3887 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
3888 (scope_info): Likewise.
3890 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
3892 * symtab.h (enum address_class): Remove LOC_INDIRECT and
3893 LOC_HP_THREAD_LOCAL_STATIC.
3895 * findvar.c (symbol_read_needs_frame, read_var_value): Do not
3896 handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
3897 (read_var_value): Likewise.
3898 * buildsym.c (finish_block): Likewise.
3899 * objfiles.c (objfile_relocate): Likewise.
3900 * printcmd.c (address_info): Likewise.
3901 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
3902 * tracepoint.c (scope_info): Likewise.
3904 2008-05-21 Markus Deuling <deuling@de.ibm.com>
3905 Maxim Grigoriev <maxim2405@gmail.com>
3907 * xtensa-tdep.c (xtensa_read_register): Remove.
3908 (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
3909 argument litbase to call0_frame_cache().
3910 (call0_track_op, call0_analyze_prologue)
3911 (call0_frame_cache): Use extra argument litbase.
3913 2008-05-21 Joel Brobecker <brobecker@adacore.com>
3915 * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
3917 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
3919 * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
3921 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
3923 * alpha-mdebug-tdep.c: Include "trad-frame.h".
3924 (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
3925 struct trad_frame_saved_reg *.
3926 (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
3927 trad_frame_alloc_saved_regs. Update accesses. Record previous
3928 value of SP as being vfp.
3929 (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
3930 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
3932 2008-05-21 Markus Deuling <deuling@de.ibm.com>
3934 * score-tdep.c (score_print_insn): Get the current endianess from
3935 disassemble_info instead of gdbarch_byte_order.
3937 2008-05-21 Pedro Alves <pedro@codesourcery.com>
3939 * frame.c (get_prev_frame_1): Build frame id before setting
3940 this_frame->prev_p, not after.
3942 2008-05-21 Nick Roberts <nickrob@snap.net.nz>
3944 * annotate.c (annotate_new_thread): New function for new-thread
3946 * annotate.h: (annotate_new_thread): New extern.
3947 * thread.c (add_thread_with_info): Use it.
3948 * Makefile.in (thread.o): Add dependency on annotate.h.
3950 2008-05-20 Joel Brobecker <brobecker@adacore.com>
3952 * win32-nat.c (win32_wait): Block the control-c event while
3953 waiting for a debug event.
3955 2008-05-19 Pedro Alves <pedro@codesourcery.com>
3957 * symtab.h (lookup_symbol_in_language): Update comment.
3958 * symtab.c (lookup_symbol_aux_block): Update comment.
3959 * ada-lang.c (ada_lookup_symbol_list): Update comment.
3961 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
3963 * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
3964 (lookup_symbol): Likewise.
3965 * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
3966 (lookup_symbol): Likewise.
3967 (search_symbols): Update.
3969 * linespec.c (find_methods, collect_methods): Update.
3970 (add_matching_methods, add_constructors): Update.
3971 (decode_compound, decode_dollar, decode_variable): Update.
3972 (lookup_prefix_sym): Update.
3974 (symbol_found): Remove SYM_SYMTAB parameter.
3975 Use SYMBOL_SYMTAB (sym) instead.
3977 * gdbtypes.c (lookup_typename): Update.
3978 (lookup_struct, lookup_union, lookup_enum): Update.
3979 (lookup_template_type): Update.
3980 (check_typedef): Update.
3981 * language.c (lang_bool_type): Update.
3982 * mdebugread.c (parse_procedure): Update.
3983 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3984 * parse.c (write_dollar_variable): Update.
3985 * printcmd.c (address_info): Update.
3986 * source.c (select_source_symtab): Update.
3987 * stack.c (print_frame_args, print_frame_arg_vars): Update.
3988 * valops.c (find_function_in_inferior): Update.
3989 (value_struct_elt_for_reference): Update.
3990 * value.c (value_static_field, value_fn_field): Update.
3992 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3993 * arm-tdep.c (arm_skip_prologue): Update.
3994 * mt-tdep.c (mt_skip_prologue): Update.
3995 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
3997 * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
3998 * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
3999 (add_defn_to_vec): Likewise.
4000 (ada_add_block_symbols): Likewise.
4001 (lookup_cached_symbol, cache_symbol): Likewise.
4002 (standard_lookup): Update.
4003 (ada_lookup_symbol_list): Update.
4005 * c-valprint.c (c_val_print): Update.
4006 * cp-support.c (cp_lookup_rtti_type): Update.
4007 * jv-lang.c (java_lookup_class, get_java_object_type): Update.
4008 * objc-lang.c (lookup_struct_typedef, find_imps): Update.
4009 * p-valprint.c (pascal_val_print): Update.
4010 * scm-lang.c (scm_lookup_name): Update.
4016 * objc-exp.y: Update.
4019 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
4021 * language.h (struct language_defn): Remove SYMTAB parameter from
4022 la_lookup_symbol_nonlocal callback function pointer.
4024 * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
4025 (ada_lookup_encoded_symbol): Likewise.
4026 * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
4027 Always call fixup_symbol_section.
4028 (ada_lookup_symbol): Remove SYMTAB parameter.
4029 (ada_lookup_symbol_nonlocal): Likewise.
4030 * ada-exp.y (write_object_renaming): Update.
4031 (find_primitive_type): Likewise.
4033 * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
4034 (cp_lookup_symbol_namespace): Likewise.
4035 * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
4036 (lookup_symbol_file): Likewise.
4037 (lookup_possible_namespace_symbol): Likewise.
4038 (cp_lookup_symbol_nonlocal): Likewise.
4039 (cp_lookup_symbol_namespace): Likewise.
4040 (cp_lookup_nested_type): Update.
4042 * scm-valprint.c (scm_inferior_print): Update.
4043 * valops.c (value_maybe_namespace_elt): Update.
4045 * solist.h (struct target_so_ops): Remove SYMTAB parameter from
4046 lookup_lib_global_symbol callback function pointer.
4047 (solib_global_lookup): Remove SYMTAB parameter.
4048 * solib.c (solib_global_lookup): Remove SYMTAB parameter.
4049 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
4051 * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
4052 (lookup_symbol_static): Likewise.
4053 (lookup_symbol_global): Likewise.
4054 (lookup_symbol_aux_block): Likewise.
4055 (lookup_global_symbol_from_objfile): Likewise.
4056 * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
4057 (lookup_symbol_aux_local): Likewise.
4058 (lookup_symbol_aux_block): Likewise.
4059 (lookup_symbol_aux_symtabs): Likewise.
4060 (lookup_symbol_aux_psymtabs): Likewise.
4061 (lookup_global_symbol_from_objfile): Likewise.
4062 (basic_lookup_symbol_nonlocal): Likewise.
4063 (lookup_symbol_static): Likewise.
4064 (lookup_symbol_global): Likewise.
4066 (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
4068 2008-05-17 Pedro Alves <pedro@codesourcery.com>
4070 * remote.c (init_extended_remote_ops): Fix typo.
4072 2008-05-16 Pedro Alves <pedro@codesourcery.com>
4074 * NEWS: Mention new DICOS x86 target configuration.
4076 2008-05-16 Pedro Alves <pedro@codesourcery.com>
4077 Ulrich Weigand <uweigand@de.ibm.com>
4079 * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
4080 * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
4082 * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
4083 use it instead of ginfo->value.address. Look up minimal symbol by
4084 address and name. Assume OBJFILE is non-NULL.
4085 (fixup_symbol_section): Ensure we always have an objfile to look
4086 into. Extract and pass to fixup_section the symbol's address that
4087 will match the minimal symbol's address.
4088 (fixup_psymbol_section): Likewise.
4090 (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
4091 overlays and the addrmap returned the wrong section.
4093 * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
4094 calling fixup_symbol_section.
4096 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
4098 * minsyms.c: Include "target.h".
4099 (find_solib_trampoline_target): Handle minimal symbols pointing
4100 to function descriptors as well.
4101 * Makefile.in (minsyms.o): Update dependencies.
4103 * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
4104 (ppc64_standard_linkage1): ... this. Fix optional instructions.
4105 (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
4106 (PPC64_STANDARD_LINKAGE1_LEN): ... this.
4107 (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
4108 (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
4109 (ppc64_standard_linkage_target): Rename to ...
4110 (ppc64_standard_linkage1_target): ... this.
4111 (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
4112 (ppc64_skip_trampoline_code): Support three variants of standard
4113 linkage stubs. Call find_solib_trampoline_target to handle
4116 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
4118 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
4119 ppc64_sysv_abi_adjust_breakpoint_address.
4120 * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
4121 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
4123 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
4125 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
4126 (ppc_linux_init_abi): Install find_solib_trampoline_target instead
4127 of ppc_linux_skip_trampoline_code.
4129 2008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
4131 * gdbarch.sh: Delete dwarf_reg_to_regnum.
4132 * gdbarch.c, gdbarch.h: Regenerated.
4133 * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
4134 hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
4135 s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
4137 2008-05-15 Pedro Alves <pedro@codesourcery.com>
4139 * linux-nat.c (trap_ptid): Delete.
4140 (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
4142 * linux-thread-db.c (thread_db_wait): Adjust.
4144 2008-05-15 Joel Brobecker <brobecker@adacore.com>
4146 * linespec.c (decode_line_1): Fix a couple of comments.
4148 2008-05-15 Alan Modra <amodra@bigpond.net.au>
4150 * dbxread.c: Formatting.
4151 (INTERNALIZE_SYMBOL): Init n_other.
4152 (set_namestring): Take pointer to nlist arg rather than struct
4153 copy. Update all callers.
4155 2008-05-15 Andreas Schwab <schwab@suse.de>
4157 * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
4158 (dwarf2read.o): Add $(addrmap_h).
4160 2008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4162 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
4163 (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
4164 to handle ppc32 PLT entries.
4165 (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
4168 2008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4170 * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
4171 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
4172 lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
4173 (lookup_minimal_symbol_by_pc_section): Use
4174 lookup_minimal_symbol_by_pc_section_1.
4175 (lookup_solib_trampoline_symbol_by_pc): Likewise.
4177 2008-05-13 Joel Brobecker <brobecker@adacore.com>
4179 * findcmd.c: Add #include "gdb_stdint.h".
4180 * Makefile.in (findcmd.o): Update dependencies.
4182 2008-05-11 David S. Miller <davem@davemloft.net>
4184 * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
4185 long double size override, Linux does use 128-bit now.
4187 * sparc-linux-tdep.c (PSR_SYSCALL): Define.
4188 (sparc_linux_write_pc): New function.
4189 (sparc32_linux_init_abi): Register it.
4190 * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
4191 (sparc64_linux_write_pc): New function.
4192 (sparc64_linux_init_abi): Register it.
4194 * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
4195 dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
4197 2008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4199 * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
4200 and info.tdep_info before calling gdbarch_init_osabi.
4202 2008-05-09 Joel Brobecker <brobecker@adacore.com>
4204 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
4205 the type of the right hand side of the assignment to the type
4206 of the left hand side if the left hand side is a convenience
4209 2008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
4211 * NEWS: Mention gdbserver bi-arch capability.
4213 2008-05-09 Doug Evans <dje@google.com>
4216 * NEWS: Document find command and qSearch:memory packet.
4217 * Makefile.in (SFILES): Add findcmd.c.
4218 (COMMON_OBJS): Add findcmd.o.
4219 (findcmd.o): New rule.
4220 * findcmd.c: New file.
4221 * target.h (target_ops): New member to_search_memory.
4222 (simple_search_memory): Declare.
4223 (target_search_memory): Declare.
4224 * target.c (simple_search_memory): New fn.
4225 (target_search_memory): New fn.
4226 * remote.c (PACKET_qSearch_memory): New packet kind.
4227 (remote_search_memory): New fn.
4228 (init_remote_ops): Init to_search_memory.
4229 (init_extended_remote_ops): Ditto.
4230 (_initialize_remote): Add qSearch:memory packet config command.
4232 2008-05-09 Eli Zaretskii <eliz@gnu.org>
4234 * thread.c (_initialize_thread): Don't use commas and periods in
4235 first line of doc string of "set/show print thread-events".
4237 2008-05-08 Joel Brobecker <brobecker@adacore.com>
4239 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
4240 Update for unwinder changes.
4242 2008-05-08 Joel Brobecker <brobecker@adacore.com>
4244 * frame.c (get_frame_base_address, get_frame_locals_address)
4245 (get_frame_args_address): Pass the correct frame when calling
4246 frame_base_find_by_frame.
4248 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4250 * remote.c (extended_remote_attach_1): Call target_find_description.
4252 2008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
4254 * remote.c (extended_remote_create_inferior_1): Clean up
4255 before marking the target running.
4257 2008-05-08 Joel Brobecker <brobecker@adacore.com>
4259 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
4262 2008-05-07 Joel Brobecker <brobecker@adacore.com>
4264 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
4265 sparc64-sol2-tdep.c: Update for unwinder changes.
4267 2008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
4269 * cp-support.c (mangled_name_to_comp): Initialize storage.
4270 (unqualified_name_from_comp): Likewise.
4272 2008-05-07 Jie Zhang <jie.zhang@analog.com>
4274 * remote.c (remote_insert_breakpoint): Call get_remote_state
4275 after gdbarch_breakpoint_from_pc is called.
4276 (remote_insert_hw_breakpoint): Likewise.
4278 2008-05-06 Joel Brobecker <brobecker@adacore.com>
4280 * valprint.c (val_print): Add new language parameter and use it
4281 instead of using the current_language. Update calls to val_print
4283 (common_val_print): Add new langauge parameter and pass it to
4285 * value.h (struct language_defn): Add opaque declaration.
4286 (val_print, common_val_print): Update declarations.
4287 * stack.c (print_frame_args): Update call to common_val_print
4288 using the appropriate language.
4289 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
4290 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
4291 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
4292 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
4293 #include "language.h" if necessary.
4294 Update calls to val_print and common_val_print.
4295 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
4296 Update dependencies.
4298 2008-05-06 Joel Brobecker <brobecker@adacore.com>
4300 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
4301 pointing inside a non-executable section as function descriptors.
4303 2008-05-06 Pedro Alves <pedro@codesourcery.com>
4305 * inf-loop.c (inferior_event_handler): Run all continuations and
4306 print any language change before running the breakpoint commands.
4308 2008-05-06 Joel Brobecker <brobecker@adacore.com>
4310 * frame-unwind.c (frame_unwind_got_bytes): New function.
4311 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
4312 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
4313 for unwinder changes.
4315 2008-05-05 Doug Evans <dje@google.com>
4317 * NEWS: Mention new /m modifier for disassemble command.
4318 * cli/cli-cmds.c (print_disassembly): New function.
4319 (disassemble_current_function): New function
4320 (disassemble_command): Recognize /m modifier, print mixed
4322 (init_cli_cmds): Update disassemble help text.
4324 2008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
4326 * xtensa-tdep.c: Update for unwinder changes.
4328 2008-05-05 Andreas Schwab <schwab@suse.de>
4330 Update m68k port for unwinder changes.
4331 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
4332 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
4333 (m68k_frame_unwind): Use default_frame_sniffer.
4334 (m68k_frame_sniffer): Remove.
4335 (m68k_frame_base_address): Expect this_frame.
4336 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
4338 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
4339 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
4340 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
4341 parameter instead of pc value.
4342 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
4344 (m68k_linux_sigtramp_frame_this_id)
4345 (m68k_linux_sigtramp_frame_prev_register)
4346 (m68k_linux_sigtramp_frame_sniffer): Update signature.
4347 (m68k_linux_sigtramp_frame_unwind): Use
4348 m68k_linux_sigtramp_frame_sniffer.
4349 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
4351 * m68klinux-nat.c (store_register): Fix typo.
4353 2008-05-05 Pedro Alves <pedro@codesourcery.com>
4355 * infcmd.c (step_1): Put thread id on the stack to avoid possible
4358 2008-05-05 Luis Machado <luisgpm@br.ibm.com>
4360 * symfile.c (reread_symbols): Update objfile's entry point.
4362 2008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
4363 Joel Brobecker <brobecker@adacore.com>
4365 * ada-lang.c: Update throughout to use symbol_matches_domain
4366 instead of matching the symbol domain explictly.
4367 * dwarf2read.c (add_partial_symbol): Do not add new psym for
4368 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
4369 class as typedefs. See lookup_partial_symbol function.
4370 (new_symbol): Similar to add_partial_symbol, do not create
4371 symbol for the typedef. See lookup_block_symbol.
4372 * symtab.c (symbol_matches_domain): New function, takes care
4373 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
4374 (lookup_partial_symbol): Use symbol_matches_domain to see if the
4375 found psym domain matches the given domain.
4376 (lookup_block_symbol): Likewise.
4378 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
4380 * top.c (command_line_handler_continuation): Remove.
4381 (execute_command): Do not install the above.
4383 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
4385 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
4386 and catch all exceptions from it.
4387 * top.c (command_line_handler_continuation): Don't
4388 call bpstat_do_action here.
4390 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
4392 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
4393 (struct die_info): Remove type.
4394 (read_type_die, read_typedef, read_base_type, read_subrange_type)
4395 (read_structure_type, read_enumeration_type, read_array_type)
4396 (read_tag_pointer_type, read_tag_ptr_to_member_type)
4397 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
4398 (read_tag_string_type, read_subroutine_type, read_set_type)
4399 (read_unspecified_type): Delete prototypes. Remove check for
4400 already-loaded type. Return the new type.
4401 (set_die_type): Return the new type.
4402 (reset_die_and_siblings_types): Delete.
4403 (load_comp_unit, load_full_comp_unit): Set type_hash.
4404 (process_queue): Remove call to reset_die_and_siblings_types.
4405 (process_die): Do not read most types here. Use read_type_die
4407 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
4408 (quirk_gcc_member_function_pointer): Return the new type.
4409 (process_structure_scope, process_enumeration_scope): Use
4410 get_die_type and read the DIE's type.
4411 (read_full_die): Do not initialize die->type.
4412 (tag_type_to_type): Use read_type_die.
4413 (read_type_die): Check for already defined types. Return the
4415 (determine_prefix): Use get_die_type.
4416 (set_die_type): Return the type.
4417 (get_die_type): Take a CU argument. Check for no type_hash.
4419 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
4421 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
4424 2008-05-04 Pedro Alves <pedro@codesourcery.com>
4426 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
4427 and bp_longjmp_resume breakpoints.
4428 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
4430 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
4431 breakpoints. Create bp_longjmp breakpoints as momentary
4433 (enable_longjmp_breakpoint): Delete.
4434 (set_longjmp_breakpoint): New.
4435 (disable_longjmp_breakpoint): Delete.
4436 (delete_longjmp_breakpoint): New.
4437 (set_longjmp_resume_breakpoint): Delete.
4438 (set_momentary_breakpoint_at_pc): New.
4439 (breakpoint_re_set_one): Don't delete bp_longjmp and
4440 bp_longjmp_resume breakpoints.
4441 (breakpoint_re_set): Don't create longjmp and longjmp-resume
4444 * infrun.c (step_resume_breakpoint): Add comment.
4445 (struct execution_control_state): Delete handling_longjmp member.
4446 (init_execution_control_state). Don't clear handling_longjmp.
4447 (context_switch): Don't context switch handling_longjmp.
4448 (handle_inferior_event): If handling a bp_longjmp breakpoint,
4449 create a bp_longjmp_resume breakpoint, and set it as current
4450 step_resume_breakpoint, then step over the longjmp breakpoint. If
4451 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
4452 breakpoint, delete the longjmp-resume breakpoint, and stop
4454 (currently_stepping): Remove handling_longjmp from expression.
4455 (insert_step_resume_breakpoint_at_sal): Update comment.
4456 (insert_longjmp_resume_breakpoint): New.
4458 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
4459 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
4461 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
4462 (set_longjmp_resume_breakpoint): Delete declaration.
4464 * gdbthread.h (save_infrun_state): Remove handling_longjmp
4466 (load_infrun_state): Delete *handling_longjmp parameter.
4467 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
4469 (load_infrun_state): Delete *handling_longjmp parameter. Update
4472 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
4473 (delete_longjmp_breakpoint_cleanup): New.
4474 (step_1): Call set_longjmp_breakpoint instead of
4475 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
4476 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
4477 (step_1_continuation): Pass thread id in the continuation args to
4479 (step_once): Add thread parameter. Pass thread id the the
4482 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4484 Set CU BASE_ADDRESS already from partial DIEs.
4485 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
4486 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
4487 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
4488 from these variables if it was still unset.
4490 * Makefile.in: Update dependencies.
4491 * dwarf2read.c: Include "addrmap.h"
4492 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
4493 (dwarf2_ranges_read): New prototype.
4494 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
4495 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
4496 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
4497 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
4498 comment for it. Add the found ranges to RANGES_PST. New variable
4499 BASEADDR, initialize it the common way.
4500 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
4501 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
4502 HAS_RANGES_OFFSET for the later processing.
4503 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
4504 * symtab.c: Include "addrmap.h"
4505 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
4506 Move the psymtab locator into ...
4507 (find_pc_sect_psymtab_closer): ... a new function.
4509 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
4511 * arch-utils.c (gdbarch_update_p): Use default values for
4512 info.abfd and info.target_desc if they are NULL.
4513 (gdbarch_from_bfd): Remove assertion.
4514 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
4515 using the current target description.
4516 (gdbarch_info_fill): Do not use default values for info->abfd
4517 and info->target_desc.
4519 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4521 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
4523 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
4525 * inferior.h (read_pc_pid, write_pc_pid): Remove.
4526 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
4528 * regcache.c (read_pc_pid): Remove, replace by ...
4529 (regcache_read_pc): ... this function.
4530 (write_pc_pid): Remove, replace by ...
4531 (regcache_write_pc): ... this function.
4532 (read_pc, write_pc): Update.
4534 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
4535 write_pc_pid by regcache_read_pc and regcache_write_pc.
4536 (displaced_step_fixup): Likewise.
4537 (resume): Likewise. Use regcache arch instead of current_gdbarch.
4538 (prepare_to_proceed): Likewise.
4539 (proceed): Likewise.
4540 (adjust_pc_after_break): Likewise.
4541 (handle_inferior_event): Likewise.
4543 * linux-nat.c (cancel_breakpoint): Likewise.
4544 * linux-thread-db.c (check_event): Likewise.
4545 * aix-thread.c (aix_thread_wait): Likewise.
4546 * tracepoint.c (trace_dump_command): Likewise.
4548 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4550 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
4551 SYMBOL_LOCATION_BATON.
4553 2008-05-04 Vladimir Prus <vladimir@codesourcery.com>
4555 * target.h (struct target_ops): New field to_auxv_parse.
4556 * auxv.c (default_auxv_parse): New, renamed from previous
4558 (target_auxv_parse): Try to call target method. Fallback to
4559 default_auxv_parse if not found.
4560 * procfs.c (procfs_auxv_parse): New.
4561 (init_procfs_ops): On Solaris, in 64-bit mode, install
4564 2008-05-03 Adam Nemet <anemet@caviumnetworks.com>
4566 * symfile.c (add_symbol_file_command): Use paddress rather than
4567 hex_string to print the address.
4569 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
4571 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
4572 return the null frame ID to terminate the backtrace.
4574 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
4576 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
4577 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
4578 (SIG_FRAME_PC_OFFSET): Likewise.
4579 (SIG_FRAME_LR_OFFSET): Likewise.
4580 (SIG_FRAME_FP_OFFSET): Likewise.
4581 (rs6000_push_dummy_call): Likewise.
4582 (rs6000_return_value): Likewise.
4583 (rs6000_convert_from_func_ptr_addr): Likewise.
4584 (branch_dest, rs6000_software_single_step): Likewise.
4585 (deal_with_atomic_sequence): Rename to ...
4586 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
4587 Do not call branch_dest; inline required parts of that function.
4588 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
4589 with SYMBOL_LINKAGE_NAME.
4590 (struct reg, regsize): Delete.
4591 (read_memory_addr): Delete; inline into callers.
4592 (rs6000_skip_prologue): Move after skip_prologue.
4593 (skip_prologue): Remove prototype.
4594 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
4595 initialization as if this variable were true. Do not install
4596 ppc64_sysv_abi_adjust_breakpoint_address.
4598 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
4599 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
4601 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
4602 (SIG_FRAME_PC_OFFSET): Likewise.
4603 (SIG_FRAME_LR_OFFSET): Likewise.
4604 (SIG_FRAME_FP_OFFSET): Likewise.
4605 (rs6000_push_dummy_call): Likewise.
4606 (rs6000_return_value): Likewise.
4607 (rs6000_convert_from_func_ptr_addr): Likewise.
4608 (branch_dest, rs6000_software_single_step): Likewise. Replace
4609 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
4610 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
4611 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
4612 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
4613 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
4615 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
4616 (AIX_TEXT_SEGMENT_BASE): New macro.
4617 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
4618 by AIX_TEXT_SEGMENT_BASE.
4620 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
4621 (struct gdbarch_tdep): Remove text_segment_base member.
4622 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
4623 ppc64_sysv_abi_adjust_breakpoint_address.
4625 * Makefile.in (rs6000-tdep.o): Update dependencies.
4626 (rs6000-aix-tdep.o): Likewise.
4628 2008-05-03 Luis Machado <luisgpm@br.ibm.com>
4629 Thiago Jung Bauermann <bauerman@br.ibm.com>
4631 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
4632 * doublest.c (convert_typed_floating): Fix typo in comment.
4633 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
4634 * frame-unwind.h (frame_sniffer_ftype): Likewise.
4635 * frame.c (frame_unwind_address_in_block): Likewise.
4636 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
4637 * symtab.h (struct symbol): Likewise.
4638 * tramp-frame.h (struct trad_frame_cache): Likewise.
4639 * value.c (allocate_repeat_value): Likewise.
4641 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
4643 * infrun.c (handle_inferior_event): Do not insert breakpoints at
4644 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
4646 2008-05-03 Pedro Alves <pedro@codesourcery.com>
4648 * parse.c (parse_exp_in_context): Don't override
4649 expression_context_pc if get_selected_block returned a valid
4652 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
4654 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
4655 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
4656 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
4658 * c-typeprint.c (c_type_print_base): Delete handling of template
4660 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
4661 (METHOD_PTR_TO_VOFFSET): Delete.
4662 * defs.h (QUIT_FIXME): Delete.
4663 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
4664 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
4665 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
4666 ninstantiations, and instantiations.
4667 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
4668 (TYPE_FN_FIELD_INLINED): Delete.
4669 * srec.h (SREC_BINARY): Delete.
4670 * symtab.c (symbol_init_demangled_name): Delete.
4671 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
4672 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
4673 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
4674 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
4675 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
4676 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
4677 * target.h (enum thread_control_capabilities): Delete tc_switch.
4678 (target_can_switch_threads): Delete.
4680 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
4682 * Makefile.in (objfiles.o): Update.
4683 * exec.c (exec_set_section_address): Support p->addr != 0.
4684 * objfiles.c (objfile_relocate): Update exec_ops section
4686 * symfile.c (place_section): Move exec_set_section_address call...
4687 (default_symfile_offsets): ...to here.
4689 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
4691 * Makefile.in (ppc_linux_tdep_h): New macro.
4692 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
4693 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
4694 (powerpc_e500l_c): Likewise.
4695 (ppc-linux-nat.o): Update dependencies.
4696 (ppc-linux-tdep.o): Update dependencies.
4697 (rs6000-tdep.o): Update dependencies.
4699 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
4700 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
4701 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
4702 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
4703 (tdesc_powerpc_e500): Remove.
4705 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
4706 and "features/rs6000/powerpc-altivec64.c".
4707 (ppc_supply_reg, ppc_collect_reg): Make global.
4708 (variants): Use tdesc_powerpc_32 for "powerpc" and
4709 tdesc_powerpc_altivec64 for "powerpc64".
4710 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
4712 * ppc-linux-tdep.h: New file.
4714 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
4715 Include "features/rs6000/powerpc-32l.c".
4716 Include "features/rs6000/powerpc-altivec32l.c".
4717 Include "features/rs6000/powerpc-64l.c".
4718 Include "features/rs6000/powerpc-altivec64l.c".
4719 Include "features/rs6000/powerpc-e500l.c".
4720 (ppc_linux_supply_gregset): New function.
4721 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
4722 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
4723 (ppc64_linux_gregset): Likewise.
4724 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
4725 (ppc_linux_trap_reg_p): New function.
4726 (ppc_linux_write_pc): New function.
4727 (ppc_linux_core_read_description): New function.
4728 (ppc_linux_init_abi): Install ppc_linux_write_pc and
4729 ppc_linux_core_read_description. Install orig_r3 and trap
4730 registers if present in the target description.
4731 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
4733 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
4734 (PT_ORIG_R3, PT_TRAP): Define if necessary.
4735 (ppc_register_u_addr): Handle orig_r3 and trap registers.
4736 (fetch_ppc_registers): Likewise.
4737 (store_ppc_registers): Likewise.
4738 (store_register): Likewise.
4739 (ppc_linux_read_description): Check whether AltiVec is supported.
4740 Check whether inferior is 32-bit or 64-bit. Return the appropriate
4741 Linux target description.
4743 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
4744 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
4745 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
4746 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
4747 rs6000/powerpc-e500. Update -expedite variables accordingly.
4749 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
4750 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
4751 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
4752 * features/rs6000/powerpc-e500.c: Regenerate.
4753 * features/rs6000/powerpc-32.c: Regenerate.
4754 * features/rs6000/powerpc-64.c: Regenerate.
4756 * features/rs6000/power-linux.xml: New file.
4757 * features/rs6000/power64-linux.xml: New file.
4758 * features/rs6000/powerpc-32l.xml: New file.
4759 * features/rs6000/powerpc-altivec32l.xml: New file.
4760 * features/rs6000/powerpc-64l.xml: New file.
4761 * features/rs6000/powerpc-altivec64l.xml: New file.
4762 * features/rs6000/powerpc-e500l.xml: New file.
4763 * features/rs6000/powerpc-32l.c: New (generated) file.
4764 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
4765 * features/rs6000/powerpc-64l.c: New (generated) file.
4766 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
4767 * features/rs6000/powerpc-e500l.xml: New (generated) file.
4769 * regformats/reg-ppc.dat: Remove.
4770 * regformats/reg-ppc64.dat: Remove.
4771 * regformats/rs6000/powerpc-32.dat: Remove.
4772 * regformats/rs6000/powerpc-64.dat: Remove.
4773 * regformats/rs6000/powerpc-e500.dat: Remove.
4774 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
4775 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
4776 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
4777 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
4778 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
4780 2008-05-03 Pedro Alves <pedro@codesourcery.com>
4782 * thread.c (delete_thread): Call observer_notify_thread_exit.
4783 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
4784 thread_exit observer.
4785 (mi_thread_exit): New.
4787 2008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
4789 * breakpoint.c (create_exception_catchpoint): Remove prototype
4790 for already deleted function.
4791 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
4792 * frame.h (show_stack_frame): Remove prototype.
4793 * stack.c (show_stack_frame): Remove empty, unused function.
4794 * source.c (symtab_to_fullname, print_source_lines): Small fix
4796 * value.c (show_values): Update comments to mention "show values"
4797 command instead of "info history".
4799 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
4801 * linespec.c: Include "target.h".
4802 (minsym_found): Handle minimal symbols pointing to function
4803 descriptors. Use find_function_start_pc.
4804 * minsyms.c (msymbol_objfile): New function.
4805 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
4806 to function descriptors.
4807 * symtab.c (fixup_section): Only use minimal symbol at the same
4808 address to determine section of a symbol.
4809 (find_function_start_pc): New function.
4810 (find_function_start_sal): Use it.
4811 * symtab.h (msymbol_objfile): Add prototype.
4812 (find_function_start_pc): Likewise.
4813 * value.c: Include "objfiles.h".
4814 (value_fn_field): Handle minimal symbols pointing to function
4816 * Makefile.in (linespec.o): Update dependencies.
4817 (value.o): Likewise.
4819 2008-05-02 Joel Brobecker <brobecker@adacore.com>
4821 * ada-lang.c (unwrap_value): Handle the case where the "F" field
4822 inside a PAD type is a bitfield.
4824 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
4826 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
4827 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
4828 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
4829 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
4830 Allow typedefs when checking for function pointer arguments.
4831 Right-align small structs passed on the stack.
4832 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
4833 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
4834 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
4836 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
4838 * Makefile.in (arm-tdep.o): Update.
4839 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
4840 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
4841 (arm_pc_is_thumb): Use mapping symbols.
4842 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
4843 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
4844 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
4845 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
4846 * gdbarch.sh: Add record_special_symbol.
4847 * gdbarch.c, gdbarch.h: Regenerated.
4848 * objfiles.c (struct objfile_data): Add cleanup member.
4849 (register_objfile_data_with_cleanup): New function, from
4850 register_objfile_data.
4851 (register_objfile_data): Use it.
4852 (objfile_free_data): Call clear_objfile_data.
4853 (clear_objfile_data): Call cleanup functions.
4854 * objfiles.h (register_objfile_data_with_cleanup): Declare.
4856 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
4858 * objfiles.c (init_entry_point_info): Handle shared libraries.
4860 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
4862 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
4865 2008-05-02 Jim Blandy <jimb@codesourcery.com>
4866 Pedro Alves <pedro@codesourcery.com>
4868 Implement displaced stepping.
4870 * gdbarch.sh (max_insn_length): New 'variable'.
4871 (displaced_step_copy, displaced_step_fixup)
4872 (displaced_step_free_closure, displaced_step_location): New
4874 (struct displaced_step_closure): Add forward declaration.
4875 * gdbarch.c, gdbarch.h: Regenerated.
4877 * arch-utils.c: #include "objfiles.h".
4878 (simple_displaced_step_copy_insn)
4879 (simple_displaced_step_free_closure)
4880 (displaced_step_at_entry_point): New functions.
4881 * arch-utils.h (simple_displaced_step_copy_insn)
4882 (simple_displaced_step_free_closure)
4883 (displaced_step_at_entry_point): New prototypes.
4885 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
4886 (I386_MAX_MATCHED_INSN_LEN): ... this.
4887 (i386_absolute_jmp_p, i386_absolute_call_p)
4888 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
4889 (i386_displaced_step_fixup): New functions.
4890 (struct i386_insn, i386_match_insn): Update.
4891 (i386_gdbarch_init): Set gdbarch_max_insn_length.
4892 * i386-tdep.h (I386_MAX_INSN_LEN): New.
4893 (i386_displaced_step_fixup): New prototype.
4894 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
4895 Register gdbarch_displaced_step_copy,
4896 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
4897 and gdbarch_displaced_step_location functions.
4899 * infrun.c (debug_displaced): New variable.
4900 (show_debug_displaced): New function.
4901 (struct displaced_step_request): New struct.
4902 (displaced_step_request_queue, displaced_step_ptid)
4903 (displaced_step_gdbarch, displaced_step_closure)
4904 (displaced_step_original, displaced_step_copy)
4905 (displaced_step_saved_copy, can_use_displaced_stepping): New
4907 (show_can_use_displaced_stepping, use_displaced_stepping)
4908 (displaced_step_clear, cleanup_displaced_step_closure)
4909 (displaced_step_dump_bytes, displaced_step_prepare)
4910 (displaced_step_clear_cleanup, write_memory_ptid)
4911 (displaced_step_fixup): New functions.
4912 (resume): Call displaced_step_prepare.
4913 (proceed): Call read_pc once, and remember the value. If using
4914 displaced stepping, don't remove breakpoints.
4915 (handle_inferior_event): Call displaced_step_fixup. Add some
4916 debugging output. When we try to step over a breakpoint, but get
4917 a signal to deliver to the thread instead, ensure the step-resume
4918 breakpoint is actually inserted. If a thread hop is needed, and
4919 displaced stepping is enabled, don't remove breakpoints.
4920 (init_wait_for_inferior): Call displaced_step_clear.
4921 (_initialize_infrun): Add "set debug displaced" command. Add
4922 "maint set can-use-displaced-stepping" command. Clear
4923 displaced_step_ptid.
4924 * inferior.h (debug_displaced): Declare variable.
4925 (displaced_step_dump_bytes): Declare function.
4927 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
4930 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
4932 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
4933 (arm_force_mode_string, arm_show_fallback_mode)
4934 (arm_show_force_mode): New.
4935 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
4937 (_initialize_arm_tdep): Add "set arm fallback-mode"
4938 and "set arm force-mode".
4939 * NEWS: Document new commands.
4941 2008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
4943 * main.h (batch_silent): Declare.
4944 * event-top.c: Include main.h.
4945 (gdb_setup_readline): Remove extern batch_silent declaration.
4946 * infrun.c (normal_stop): Don't print source location when running in
4947 --batch-silent mode.
4948 * Makefile.in (event-top.o): Add main.h dependency.
4950 2008-05-02 Andreas Schwab <schwab@suse.de>
4952 * target.h (struct target_ops): Add
4953 to_watchpoint_addr_within_range.
4954 (target_watchpoint_addr_within_range): New function.
4955 * target.c (update_current_target): Inherit
4956 to_watchpoint_addr_within_range, defaulting to
4957 default_watchpoint_addr_within_range.
4958 (default_watchpoint_addr_within_range): New function.
4959 (debug_to_watchpoint_addr_within_range): New function.
4960 (setup_target_debug): Set to_watchpoint_addr_within_range.
4961 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
4963 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
4964 * breakpoint.c (watchpoints_triggered): Use
4965 target_watchpoint_addr_within_range.
4967 2008-05-01 Pedro Alves <pedro@codesourcery.com>
4969 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
4970 (i[34567]86-*-dicos*, x86_64-*-dicos*):
4971 Set gdb_osabi to GDB_OSABI_DICOS.
4973 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
4974 * osabi.c (gdb_osabi_name): Add "DICOS".
4976 * i386-dicos-tdep.c: New file.
4978 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
4979 (ALLDEPFILES): Add i386-dicos-tdep.c.
4980 (i386-dicos-tdep.o): New rule.
4982 2008-05-01 Pedro Alves <pedro@codesourcery.com>
4984 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
4985 and register the fork's PTID as a thread.
4987 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
4990 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
4991 assign its value to the breakpoint created.
4992 (create_breakpoints): Add breakpoint_ops argument and pass it
4993 to create_breakpoint call.
4994 (break_command_really): Add breakpoint_ops argument and pass/assign
4996 (break_command_1): Pass NULL as ops argument.
4997 (set_breakpoint): Pass NULL as ops argument.
4998 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
4999 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
5000 catch and throw catchpoints.
5002 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
5005 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
5006 translate signal numeric value from the target to GDB's enum
5008 * gdbarch.c, gdbarch.h: Regenerated.
5009 * gdbarch.sh: Added two new functions target_signal_from_host and
5010 target_signal_to_host.
5011 * target.h (default_target_signal_from_host,
5012 default_target_signal_to_host): New functions - declarations.
5013 * signals/signals.c (struct gdbarch): New declaration.
5014 (default_target_signal_to_host, default_target_signal_from_host): New
5017 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
5018 Pedro Alves <pedro@codesourcery.com>
5020 Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff
5021 Johnston <jjohnstn@redhat.com>.
5023 * NEWS: Mention attach to stopped process fix.
5024 * infcmd.c (detach_command, disconnect_command): Discard the thread
5026 * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
5027 attaching. Use signal_stop_state.
5028 (signal_stop_state): Check stop_soon.
5029 * linux-nat.c (kill_lwp): Declare earlier.
5030 (pid_is_stopped, linux_nat_post_attach_wait): New.
5031 (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update
5033 (linux_nat_attach): Use linux_nat_post_attach_wait.
5034 (detach_callback, linux_nat_detach): Improve handling for signalled
5036 (linux_nat_pid_to_str): Always print out the LWP ID if it differs
5037 from the process ID.
5038 * Makefile.in (infcmd.o): Update.
5040 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
5042 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
5043 * arm-tdep.c (arm_frame_is_thumb): New.
5044 (arm_pc_is_thumb): Clarify comment.
5045 (thumb_analyze_prologue): Remove PC special case.
5046 (thumb_scan_prologue): Take a block_addr argument. Use it for
5047 find_pc_partial_function. Remove unused variables.
5048 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
5049 for find_pc_partial_function. Remove PC special case.
5050 (arm_prologue_prev_register): Add special handling for PC and CPSR.
5051 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
5052 (arm_get_next_pc): Use arm_frame_is_thumb.
5053 (arm_write_pc): Use CPSR_T instead of 0x20.
5054 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
5055 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
5057 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
5058 DWARF2_FRAME_REG_FN.
5059 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
5060 DWARF2_FRAME_REG_FN.
5061 (struct dwarf2_frame_state_reg): Add FN to loc union.
5063 2008-05-01 Nick Roberts <nickrob@snap.net.nz>
5065 * exec.c (print_section_info): Add missing '\n'.
5067 2008-05-01 Vladimir Prus <vladimir@codesourcery.com>
5069 * thread.c (add_thread): Move observer call to ...
5070 (add_thread_silent): ... here.
5072 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
5074 * rs6000-tdep.c: Update for unwinder changes.
5075 * ppcobsd-tdep.c: Likewise.
5077 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
5079 * s390-tdep.c: Update for unwinder changes.
5081 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
5083 * spu-tdep.c: Update for unwinder changes.
5085 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5087 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
5088 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
5089 sparc64-linux-tdep.c: Update for unwinder changes.
5091 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5093 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
5094 for unwinder changes.
5095 * mips-tdep.c: Likewise.
5096 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
5099 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5101 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
5104 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5106 Update i386 and amd64 ports for unwinder changes.
5108 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
5109 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
5110 (amd64_frame_unwind): Use default_frame_sniffer.
5111 (amd64_frame_sniffer): Delete.
5112 (amd64_sigtramp_frame_cache): Expect this_frame.
5113 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
5114 (amd64_sigtramp_frame_sniffer): Update signature.
5115 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
5116 (amd64_frame_base_address): Expect this_frame.
5117 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
5119 (amd64_init_abi): Use set_gdbarch_dummy_id and
5120 frame_unwind_append_unwinder.
5121 * i386-tdep.c (i386_frame_cache): Expect this_frame.
5122 (i386_frame_this_id, i386_frame_prev_register): Update signature.
5123 (i386_frame_unwind): Use default_frame_sniffer.
5124 (i386_frame_sniffer): Delete.
5125 (i386_sigtramp_frame_cache): Expect this_frame.
5126 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
5127 (i386_sigtramp_frame_sniffer): Update signature.
5128 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
5129 (i386_frame_base_address): Update signature.
5130 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
5131 (i386_push_dummy_call): Update comment.
5132 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
5134 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
5135 and frame_unwind_append_unwinder.
5136 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
5137 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
5138 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
5139 i386nbsd-tdep.c: Update for unwinder changes.
5141 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5143 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
5144 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
5146 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
5147 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
5148 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
5150 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
5152 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
5154 * tramp-frame.h (struct tramp_frame): Update signature of init.
5155 * Makefile.in (trad-frame.o): Update.
5157 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5159 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
5160 (execute_stack_op): Put this_frame in the baton.
5161 (execute_cfa_program): Take this_frame.
5162 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
5163 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
5164 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
5165 (dwarf2_frame_this_id): Adjust to work on this_frame.
5166 (dwarf2_signal_frame_this_id): Delete.
5167 (dwarf2_frame_prev_register): Update signature. Use new frame
5169 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
5170 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
5171 dwarf2_frame_sniffer.
5172 (dwarf2_append_unwinders): New.
5173 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
5175 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
5176 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
5177 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
5178 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
5179 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
5180 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
5181 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
5182 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
5183 (dwarf2_append_unwinders): Declare.
5184 (dwarf2_frame_base_sniffer): Update declaration.
5185 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
5188 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5190 Convert frame unwinders to use the current frame and
5193 * frame.c (frame_debug): Make global.
5194 (get_frame_id): Pass this frame to unwinder routines.
5195 (frame_pc_unwind): Remove unused unwind->prev_pc support.
5196 (do_frame_register_read): Do not discard the return value of
5197 frame_register_read.
5198 (frame_register_unwind): Remove debug messages. Use
5199 frame_unwind_register_value.
5200 (frame_unwind_register_value, get_frame_register_value): New
5202 (create_new_frame, get_frame_base_address, get_frame_locals_address)
5203 (get_frame_args_address, get_frame_type): Pass this frame to
5205 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
5207 * frame.h: Update comments.
5208 (frame_debug, frame_unwind_register_value, get_frame_register_value)
5209 (frame_prepare_for_sniffer): Declare.
5210 * frame-unwind.h: Update comments and parameter names.
5211 (default_frame_sniffer): Declare.
5212 (frame_prev_register_ftype): Return a struct value *.
5213 (struct frame_unwind): Remove prev_pc member.
5214 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
5215 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
5216 (frame_unwind_got_register, frame_unwind_got_memory)
5217 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
5218 * frame-base.h: Update comments and parameter names.
5219 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
5220 if necessary. Add debugging output.
5221 * sentinel-frame.c (sentinel_frame_prev_register)
5222 (sentinel_frame_this_id): Update for new signature.
5223 (sentinel_frame_prev_pc): Delete.
5224 (sentinel_frame_unwinder): Remove prev_pc.
5225 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
5227 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
5228 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
5229 (frame_unwind_append_sniffer): Delete.
5230 (frame_unwind_append_unwinder): New function.
5231 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
5232 from unwinders. Use frame_prepare_for_sniffer.
5233 (default_frame_sniffer, frame_unwind_got_optimized)
5234 (frame_unwind_got_register, frame_unwind_got_memory)
5235 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
5236 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
5237 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
5239 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
5240 * gdbarch.c, gdbarch.c: Regenerated.
5241 * frame-base.c (default_frame_base_address)
5242 (default_frame_locals_address, default_frame_args_address): Update
5244 (frame_base_find_by_frame): Pass this frame to unwinder routines.
5245 * infcall.c (call_function_by_hand): Update comments.
5246 * Makefile.in (frame-unwind.o): Update dependencies.
5248 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5250 * ada-lang.c (ada_value_primitive_packed_val): Only check
5251 value_lazy for memory lvals.
5252 * findvar.c (value_of_register_lazy): New function.
5253 (locate_var_value): Only check value_lazy for memory lvals.
5254 * valarith.c (value_subscripted_rvalue): Likewise.
5255 * valops.c (value_fetch_lazy): Handle both memory and register
5257 (search_struct_field, value_slice): Only check value_lazy for memory
5259 * value.c (struct value): Update comment for lazy.
5260 (value_primitive_field): Only check value_lazy for memory lvals.
5261 * value.h (value_lazy): Update comment.
5262 (value_of_register_lazy): Declare.
5264 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5266 * corefile.c (reopen_exec_file): Close any open files.
5268 2008-04-29 Joel Brobecker <brobecker@adacore.com>
5270 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
5271 show_memory_breakpoints to 1 while reading the instruction bundle.
5273 2008-04-29 Joel Brobecker <brobecker@adacore.com>
5275 * gdbarch.sh: Document the return_value method. Explain that
5276 the FUNCTYPE parameter might be NULL.
5277 * gdbarch.h: Regenerated.
5278 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
5279 type when calling using_struct_return, as this is unnecessary
5282 2008-04-28 Joel Brobecker <brobecker@adacore.com>
5284 * terminal.h (create_tty_session): Fix return type.
5286 2008-04-26 Vladimir Prus <vladimir@codesourcery.com>
5288 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
5290 2008-04-26 Joel Brobecker <brobecker@adacore.com>
5292 * breakpoint.c (condition_command, commands_from_control_command)
5293 (break_command_really): Minor reformatting.
5295 2008-04-25 Pedro Alves <pedro@codesourcery.com>
5297 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
5299 2008-04-25 Pedro Alves <pedro@codesourcery.com>
5301 * amd64-tdep.c (amd64_get_longjmp_target): New.
5302 (amd64_init_abi): Register amd64_get_longjmp_target as
5303 gdbarch_get_longjmp_target callback.
5304 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
5306 2008-04-25 Pedro Alves <pedro@codesourcery.com>
5308 * breakpoint.h (enum bpstat_what_main_action): Delete
5309 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
5311 * breakpoint.c (clrs): Delete.
5312 (bpstat_what): Update table.
5314 * infrun.c (handle_inferior_event): Remove
5315 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
5317 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
5319 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
5320 Adjust all prototypes using mi_cmd_args_ftype to use
5322 (struct mi_cmd): Remove the args_func field.
5323 * mi/mi-cmds.c: Don't provide value for the args_func field.
5324 * mi/mi-main.c (mi_execute_async_cli_command)
5325 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
5326 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
5327 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
5328 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
5329 (mi_cmd_target_download): Adjust.
5330 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
5331 (mi_cmd_execute): Do not check for args_func.
5332 (mi_execute_async_cli_command): Adjust.
5333 * mi/mi-parse.c: Don't check for args_func.
5335 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
5337 * breakpoint.c (bpstat_check_location)
5338 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
5339 New, extracted from bpstat_stop_status.
5340 (bpstat_stop_status): Use the above.
5342 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
5344 * mi/mi-main.c (last_async_command): Rename to current_token.
5345 (previous_async_command): Remove.
5346 (mi_cmd_gdb_exit): Adjust.
5347 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
5348 (mi_cmd_target_select): Adjust.
5349 (mi_cmd_execute): Don't set previous_async_command. Free token
5350 here even in async mode.
5351 (mi_execute_async_cli_command): Adjust.
5352 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
5354 (mi_load_progress): Adjust.
5356 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
5358 * infcmd.c (step_1_continuation): Always disable longjmp
5359 breakpoint if we're not going to do another step.
5361 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
5363 exec_cleanup murder.
5364 * breakpoint.c (until_break_command_continuation): Add
5365 the 'error' parameter. Directly delete the breakoint as
5366 opposed to running cleanups.
5367 (until_break_command): Install continuation only
5368 after starting the target. Don't use exec cleanups,
5369 use ordinary cleanups. Discard cleanups is successfully
5370 started the target in async mode.
5371 (make_cleanup_delete_breakpoint): Remove.
5372 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
5374 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
5376 (struct continations): Add the 'error' parameter to the
5377 continuation_hook field.
5378 (add_continuation, do_all_continuations)
5379 (add_intermediate_continuation)
5380 (do_all_intermediate_continuations): Add the 'error' parameter.
5381 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
5382 * inf-loop.c (inferior_event_handler): Instead of calling
5383 discard_all_continuations, use do_all_continuations with 1 as
5384 'error' parameter. Pass 0 as 'error' parameter in existing uses
5385 of discard_all_continuations.
5386 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
5388 (step_once): Install continuation only after resuming the target.
5389 (step_1_continuation): Disable longjmp breakpoint on error.
5390 (finish_command_continuation): Add the error parameter. Delete
5391 the finish breakpoint directly, do not use cleanups.
5392 (finish_command): Do not use exec_cleanups. Always setup
5393 continuation. For sync case, immediately run them.
5394 (attach_command_continuation): Add the error parameter.
5395 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
5396 remove step_resume_breakpoint -- adjust delete it directly.
5397 * interps.c (interp_set): Adjust call to do_all_continations.
5398 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
5400 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
5402 (mi_cmd_execute): Do not use exec_cleanup.
5403 (mi_execute_async_cli_command): Simplify the string concatenation
5404 logic. Do no use exec cleanup.
5405 (mi_exec_async_cli_cmd_continuation): New parameter error.
5406 Free last_async_command.
5407 * top.c (command_line_handler_continuation): New parameter error.
5408 * utils.c (exec_cleanup_chain, make_exec_cleanup)
5409 (do_exec_cleanups): Remove.
5410 (add_continuation, do_all_continations)
5411 (add_intermediate_continuation)
5412 (do_all_intermediate_continuations): New parameter error.
5414 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
5416 * breakpoint.h (bp_location_p): New typedef.
5417 Register a vector of bp_location_p.
5418 * breakpoint.c (always_inserted_mode)
5419 (show_always_inserted_mode): New.
5420 (unlink_locations_from_global_list): Remove.
5421 (update_global_location_list)
5422 (update_global_location_list_nothrow): New.
5423 (update_watchpoint): Don't free locations.
5424 (should_insert_location): New.
5425 (insert_bp_location): Use should_insert_location.
5426 (insert_breakpoint_locations): Copied from
5428 (insert_breakpoint): Use insert_breakpoint_locations.
5429 (bpstat_stop_status): Call update_global_location_list
5430 when disabling breakpoint.
5431 (allocate_bp_location): Don't add to bp_location_chain.
5432 (set_raw_breakpoint)
5433 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
5434 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
5435 (enable_overlay_breakpoints, disable_overlay_breakpoints)
5436 (set_longjmp_resume_breakpoint)
5437 (enable_watchpoints_after_interactive_call_stop)
5438 (disable_watchpoints_before_interactive_call_start)
5439 (create_internal_breakpoint)
5440 (create_fork_vfork_event_catchpoint)
5441 (create_exec_event_catchpoint, set_momentary_breakpoint)
5442 (create_breakpoints, break_command_1, watch_command_1)
5443 (create_exception_catchpoint)
5444 (handle_gnu_v3_exceptions)
5445 (disable_breakpoint, breakpoint_re_set_one)
5446 (create_thread_event_breakpoint, create_solib_event_breakpoint)
5447 (create_ada_exception_breakpoint): : Don't call check_duplicates.
5448 Call update_global_location_list.
5449 (delete_breakpoint): Don't remove locations and don't
5450 try to reinsert them. Call update_global_location_list.
5451 (update_breakpoint_locations): Likewise.
5452 (restore_always_inserted_mode): New.
5453 (update_breakpoints_after_exec): Temporary disable
5454 always inserted mode.
5455 * Makefile.in: Update dependencies.
5457 * infrun.c (proceed): Remove breakpoints while stepping
5459 (handle_inferior_event): Don't remove or insert
5461 * linux-fork.c (checkpoint_command): Remove breakpoints
5462 before fork and insert after.
5463 (linux_fork_context): Remove breakpoints before switch
5465 * target.c (target_disconnect, target_detach): Remove
5466 breakpoints from target.
5469 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
5471 * breakpoint.c (print_one_breakpoint_location): In MI
5472 mode, report the location string the breakpoint was
5473 originally created with.
5475 2008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
5477 * Makefile.in (xtensa-tdep.o): Update dependencies.
5478 * configure.tgt (xtensa*): Update dependencies.
5479 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
5480 Local variable areg renamed to arreg.
5481 (areg_number): New function.
5482 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
5483 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
5484 replaced by arreg_number.
5485 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
5486 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
5487 (xtensa_scan_prologue): New function.
5488 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
5489 when ENTRY instraction hasn't been executed yet. Get the frame pointer
5490 value based on prologue analysis. Fix the bugs preventing WS and
5491 AR4-AR7/A11 registers from getting right values for intermediate frames,
5492 whose registers have been already spilled.
5493 (xtensa_frame_prev_register): Fix WS register value. Use are_number
5494 and arreg_number appropriately.
5495 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
5496 svr4_ilp32_fetch_link_map_offsets.
5498 2008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
5500 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
5501 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
5503 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
5505 * acinclude.m4: Add override.m4.
5506 * configure: Regenerate.
5508 2008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5510 * ada-lang.c (get_selections): Variable PROMPT made non-const and
5511 initialized with a trailing space now. Use PROMPT_ARG of
5512 COMMAND_LINE_INPUT instead of printing it ourselves.
5514 2008-04-22 Joel Brobecker <brobecker@adacore.com>
5516 * NEWS: Document support for 64-bit core file.
5518 2008-04-22 Corinna Vinschen <vinschen@redhat.com>
5520 * NEWS: Add information on calling convention and new SH CLI options.
5522 * sh-tdep.c (sh_cc_gcc): New static string.
5523 (sh_cc_renesas): Ditto.
5524 (sh_cc_enum): New static string array.
5525 (sh_active_calling_convention): New static string pointer denoting
5526 active user chosen ABI.
5527 (sh_is_renesas_calling_convention): New function to return function
5528 specific ABI, or user choice if necessary.
5529 (sh_use_struct_convention): Rename first argument and turn around its
5530 meaning. Check for renesas ABI and return accordingly.
5531 (sh_use_struct_convention_nofpu): New function.
5532 (sh_next_flt_argreg): Get function type as third parameter. Check
5533 for renesas ABI and choose floating registers accordingly.
5534 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
5535 struct return slot accordingly.
5536 (sh_push_dummy_call_nofpu): Ditto.
5537 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
5538 Evaluate ABI and give to sh_use_struct_convention_nofpu.
5539 (sh_return_value_fpu): Evaluate ABI and give to
5540 sh_use_struct_convention.
5541 (show_sh_command): New function.
5542 (set_sh_command): Ditto.
5543 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
5546 * gdbarch.sh (return_value): Add func_type argument.
5547 * gdbarch.c: Regenerate.
5549 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
5550 val_type so as not to collide with value_type function. Call
5551 using_struct_return with additional function type argument.
5552 * infcall.c (call_function_by_hand): Call using_struct_return and
5553 gdbarch_return_value with additional function type argument.
5554 * infcmd.c (print_return_value): Take addition func_type argument.
5555 Call gdbarch_return_value with additional function type argument.
5556 (finish_command_continuation): Call print_return_value with additional
5557 function type argument.
5558 (finish_command): Ditto.
5559 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
5560 additional function type argument.
5561 * stack.c (return_command): Call using_struct_return and
5562 gdbarch_return_value with additional function type argument.
5563 * value.c (using_struct_return): Take additional function type argument.
5564 * value.h (using_struct_return): Accommodate declaration.
5565 * alpha-tdep.c (alpha_return_value): Add func_type argument.
5566 * amd64-tdep.c (amd64_return_value): Ditto.
5567 * arm-tdep.c (arm_return_value): Ditto.
5568 * avr-tdep.c (avr_return_value): Ditto.
5569 * cris-tdep.c (cris_return_value): Ditto.
5570 * frv-tdep.c (frv_return_value): Ditto.
5571 * h8300-tdep.c (h8300_return_value): Ditto.
5572 (h8300h_return_value): Ditto.
5573 * hppa-tdep.c (hppa32_return_value): Ditto.
5574 (hppa64_return_value): Ditto.
5575 * i386-tdep.c (i386_return_value): Ditto.
5576 * ia64-tdep.c (ia64_return_value): Ditto.
5577 * iq2000-tdep.c (iq2000_return_value): Ditto.
5578 * m32c-tdep.c (m32c_return_value): Ditto.
5579 * m32r-tdep.c (m32r_return_value): Ditto.
5580 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
5581 * m68k-tdep.c (m68k_return_value): Ditto.
5582 (m68k_svr4_return_value): Ditto.
5583 * m88k-tdep.c (m88k_return_value): Ditto.
5584 * mep-tdep.c (mep_return_value): Ditto.
5585 * mips-tdep.c (mips_eabi_return_value): Ditto.
5586 (mips_n32n64_return_value): Ditto.
5587 (mips_o32_return_value): Ditto.
5588 (mips_o64_return_value): Ditto.
5589 * mn10300-tdep.c (mn10300_return_value): Ditto.
5590 * mt-tdep.c (mt_return_value): Ditto.
5591 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
5592 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
5593 (ppc_sysv_abi_broken_return_value): Ditto.
5594 (ppc64_sysv_abi_return_value): Ditto.
5595 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
5596 (ppc_sysv_abi_broken_return_value): Ditto.
5597 (ppc64_sysv_abi_return_value): Ditto.
5598 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
5599 * rs6000-tdep.c (rs6000_return_value): Ditto.
5600 * s390-tdep.c (s390_return_value): Ditto.
5601 * score-tdep.c (score_return_value): Ditto.
5602 * sh-tdep.c (sh_return_value_nofpu): Ditto.
5603 (sh_return_value_fpu): Ditto.
5604 * sh64-tdep.c (sh64_return_value): Ditto.
5605 * sparc-tdep.c (sparc32_return_value): Ditto.
5606 * sparc64-tdep.c (sparc64_return_value): Ditto.
5607 * spu-tdep.c (spu_return_value): Ditto.
5608 * v850-tdep.c (v850_return_value): Ditto.
5609 * vax-tdep.c (vax_return_value): Ditto.
5610 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
5611 * xtensa-tdep.c (xtensa_return_value): Ditto.
5613 * gdbtypes.h (struct type): Add calling_convention member.
5614 * dwarf2read.c (read_subroutine_type): Add calling convention read
5615 from DW_AT_calling_convention attribute to function type.
5617 2008-04-22 Markus Deuling <deuling@de.ibm.com>
5619 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
5620 multi_f77_subscript to support values from registers.
5621 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
5622 * value.h (value_subscripted_rvalue): Add prototype.
5624 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
5626 * f-valprint.c (f_val_print): Likewise.
5628 2008-04-21 Craig Silverstein <csilvers@google.com>
5630 * dwarf2read.c (zlib_decompress_section): Define abfd in the
5633 2008-04-21 Pedro Alves <pedro@codesourcery.com>
5635 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
5636 section is not a code section.
5638 2008-04-19 Craig Silverstein <csilvers@google.com>
5640 * NEWS: Add information on compressed debug sections.
5642 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
5644 * mi/mi-cmd-var.c (varobj_update_one): Print new
5645 value for variable objects that changed type.
5647 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
5649 * varobj.c (varobj_invalidate): Don't touch floating
5652 2008-04-19 Mark Kettenis <kettenis@gnu.org>
5654 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
5655 (multiple_symbols_cancel): Remove extra const.
5656 * symtab.h: Likewise.
5658 2008-04-19 Nick Roberts <nickrob@snap.net.nz>
5660 * interps.c (top_level_interpreter): Rename static variable...
5661 (top_level_interpreter_ptr): ...to this.
5662 (top_level_interpreter): New function.
5664 * interps.h: New extern for top_level_interpreter.
5666 * linespec.c: Include interps.h and mi/mi-cmds.h.
5667 (decode_line_2): When using MI, always set all breakpoints in menu.
5669 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
5671 2008-04-18 Craig Silverstein <csilvers@google.com>
5673 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
5674 * config.in, configure: Regenerate.
5675 * dwarf2read.c: Include zlib.h if present.
5676 Modified *_SECTION macros.
5677 (section_is_p): New.
5678 (dwarf2_locate_sections): Use section_is_p instead of strcmp
5679 (dwarf2_resize_section): New.
5680 to determine whether a given section has a given name.
5681 (zlib_decompress_section): New.
5682 (dwarf2_read_section): Read the compressed section if present
5684 * MAINTAINERS: Added myself to section Write After Approval.
5686 2008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
5688 * defs.h (exec_set_section_offsets): Remove prototype.
5689 * exec.c (exec_set_section_offsets): Remove function.
5691 2008-04-18 Joel Brobecker <brobecker@adacore.com>
5693 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
5694 in the search for the matching symbol.
5696 2008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
5698 * breakpoint.c (update_watchpoint): Always reparse
5701 2008-04-17 Joel Brobecker <brobecker@adacore.com>
5703 * breakpoint.c (print_one_breakpoint_location): Make sure to print
5704 the breakpoint address only once.
5706 2008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
5708 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
5709 rather than a hard-coded architecture, for xcoff executables.
5711 2008-04-17 Doug Evans <dje@google.com>
5713 * buildsym.c (watch_main_source_file_lossage): New fn.
5714 (end_symtab): Call it.
5716 * source.c (find_and_open_source): Add some comments clarifying
5717 handling of FULLNAME argument. Make static. Remove pointless
5720 2008-04-17 Pedro Alves <pedro@codesourcery.com>
5722 * inf-loop.c (inferior_event_handler): Also run the intermediate
5723 continuations in the INF_EXEC_COMPLETE case.
5725 2008-04-16 Tom Tromey <tromey@redhat.com>
5727 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
5728 (set_cmd_async_ok, get_cmd_async_ok): Declare.
5729 * cli/cli-decode.c (set_cmd_async_ok): New function.
5730 (get_cmd_async_ok): New function.
5731 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
5733 * top.c (execute_command): Use get_cmd_async_ok.
5734 * infcmd.c: Include cli/cli-decode.h.
5735 (_initialize_infcmd): Mark "interrupt" as async-ok.
5736 * Makefile.in (infcmd.o): Depend on cli_decode_h.
5738 2008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
5741 * exec.c: Correct "arch-utils.h" include.
5743 2008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
5746 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
5747 to allow printing to 'see' real reason of stop. This fixes PR 2424.
5748 * breakpoint.c (bpdisp_texst): New function. The function takes over
5749 the role of bpstats static array in print_one_breakpoint_location.
5750 (print_it_typical): Print "Temporary breakpoint" instead
5751 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
5752 protocols, print disp field.
5753 (print_one_breakpoint_location): Removed bpdisps static definition.
5754 Call new bpstat_text function to get value for 'disp' field.
5755 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
5757 2008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
5759 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
5760 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
5761 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
5762 * gnulib/Makefile.in: Regenerate.
5764 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
5766 * Makefile.in (GNULIB_H): New. Trigger all-lib.
5767 (defs_h): Use $(GNULIB_H).
5768 (all-lib): Depend on gnulib/Makefile.
5769 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
5770 * config.in, gnulib/Makefile.in: Regenerated.
5772 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
5774 * Makefile.in (LIBGNU, INCGNU): Define.
5775 (INTERNAL_CFLAGS_BASE): Add INCGNU.
5776 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
5778 ($(LIBGNU), all-lib): New rules.
5779 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
5780 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
5781 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
5782 * gnulib: New directory, from gnulib-tool.
5783 * configure, aclocal.m4: Regenerated.
5785 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
5787 * linux-thread-db.c (have_threads_callback): Check thread->private.
5789 2008-04-13 Nick Roberts <nickrob@snap.net.nz>
5790 Vladimir Prus <vladimir@codesourcery.com>
5793 * varobj.c (value_of_root): Update the expression for
5795 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
5798 2008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
5800 * mi/mi-cmd-var.c: Include "mi-getopt.h".
5801 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
5802 (mi_cmd_var_set_format): Use new mi_parse_format.
5803 (mi_cmd_var_evaluate_expression): Support for -f option to specify
5805 * Makefile.in (mi-cmd-var.o): Update dependencies.
5807 * varobj.h (varobj_get_formatted_value): Declare.
5808 * varobj.c (my_value_of_variable): Added format parameter.
5809 (cplus_value_of_variable): Likewise.
5810 (java_value_of_variable): Likewise.
5811 (c_value_of_variable): Likewise. Evaluate expression based
5812 on format parameter.
5813 (struct language_specific): Add format parameter to function member
5815 (varobj_get_formatted_value): New.
5816 (varobj_get_value): Added format parameter to method call.
5818 2008-04-08 Joel Brobecker <brobecker@adacore.com>
5820 * stabsread.c (cleanup_undefined_types_noname): Manually set the
5821 instance flags of the undefined type before calling replace_type.
5823 2008-04-08 Vladimir Prus <vladimir@codesourcery.com>
5825 * target.h (enum strata): Remove the download_stratum.
5827 2008-04-07 Doug Evans <dje@google.com>
5829 * buildsym.h (last_source_file): Add dwarf info to comment.
5830 (last_source_start_addr): Ditto.
5832 2008-04-07 Pedro Alves <pedro@codesourcery.com>
5834 * alphanbsd-tdep.c: Include "target.h".
5835 * mn10300-tdep.c: Include "target.h".
5836 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
5838 2008-04-06 Vladimir Prus <vladimir@codesourcery.com>
5840 Fix breakpoint condition that use member variables.
5841 * valops.c (check_field): Remove.
5842 (check_field_in): Rename to check_field.
5843 (value_of_this): Use la_name_of_this.
5844 * value.h (check_field): Adjust prototype.
5846 * language.h (la_value_of_this): Rename to la_name_of_this.
5847 * language.c (unknown_language_defn): Specify "this" for
5849 (auto_language_defn): Likewise.
5850 (local_language_defn): Likewise.
5851 * ada-lang.c (ada_language_defn): Adjust comment.
5852 * c-lang.c (c_language_defn): Adjust comment.
5853 (cplus_language_defn): Specify "this" for name_of_this.
5854 (asm_language_defn): Adjust comment.
5855 (minimal_language_defn): Adjust comment.
5856 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
5857 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
5858 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
5859 * objc-lang.c (objc_language_defn): Specify "self" for
5861 * p-lang.c (pascal_language_defn): Specify "this" for
5863 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
5865 * symtab.c (lookup_symbol_aux): Lookup "this" in the
5866 proper scope, and check for field in type of "this", without
5867 trying to create a value.
5869 2008-04-04 Pedro Alves <pedro@codesourcery.com>
5871 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
5872 (mi_error_message): Delete declaration.
5873 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
5874 returning MI_CMD_ERROR.
5875 * mi/mi-main.c (mi_error_message): Delete.
5876 (mi_cmd_exec_interrupt):
5877 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
5878 (mi_cmd_thread_info): Call error instead of returning
5880 (mi_cmd_data_list_register_values): Call error instead of
5881 returning MI_CMD_ERROR. Adapt to new get_register interface.
5882 (get_register): Change return typo to void. Call error instead of
5883 returning MI_CMD_ERROR.
5884 (mi_cmd_data_write_register_values): Call error instead of
5885 returning MI_CMD_ERROR.
5886 (mi_cmd_list_features): Return MI_CMD_DONE.
5887 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
5888 (mi_execute_command): Always print exceptions with -error.
5890 2008-04-04 Joel Brobecker <brobecker@adacore.com>
5892 * NEWS: Mention new commands set/show multiple-symbols.
5894 2008-04-03 Joel Brobecker <brobecker@adacore.com>
5896 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
5897 (multiple_symbols_cancel): New constants.
5898 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
5899 (multiple_symbols_select_mode): New function.
5900 (_initialize_symtab): Add new set/show multiple-symbols commands.
5901 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
5902 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
5903 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
5905 * linespec.c (decode_line_2): Likewise.
5907 2008-04-03 Doug Evans <dje@sebabeach.org>
5909 * symtab.h (enum free_code): Delete free_contents, unused.
5910 * symmisc.c (free_symtab_block): Delete.
5911 (free_symtab, case free_code): Delete.
5913 2008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
5915 * valops.c (value_cast_structs): New function. Cast related
5916 STRUCT types up/down and return cast value. The body of this
5917 function comes mostly from value_cast_pointers.
5918 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
5919 to value_cast_structs. Now value_cast_pointers needs only create
5920 appropriate reference after using value_cast_structs for actual
5922 (value_cast): Handle references.
5924 2008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
5926 * MAINTAINERS: Added myself to section Write After Approval.
5928 2008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
5930 * ia64-tdep.c (examine_prologue): Correct array access.
5932 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
5934 * cp-support.c (first_component_command): Return if no arguments.
5936 2008-03-28 Carlos O'Donell <carlos@codesourcery.com>
5938 * ser-mingw.c (ser_windows_open): Open requested name.
5940 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
5942 * MAINTAINERS: Added myself.
5944 2008-03-28 Pedro Alves <pedro@codesourcery.com>
5946 * target.c (find_default_run_target): Allow a NULL `do_mesg'
5947 parameter. If it is NULL, don't call error.
5948 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
5949 `do_mesg' parameter to find_default_run_target. If no target was
5952 2008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
5954 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
5955 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
5956 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
5958 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
5960 2008-03-27 Joel Brobecker <brobecker@adacore.com>
5964 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
5966 * features/Makefile (%.dat): Set xmltarget to the base filename
5967 of the XML source, without subdirectory.
5968 * regformats/rs6000/powerpc-32.dat: Regenerate.
5969 * regformats/rs6000/powerpc-64.dat: Regenerate.
5970 * regformats/rs6000/powerpc-e500.dat: Regenerate.
5972 2008-03-27 Markus Deuling <deuling@de.ibm.com>
5974 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
5977 2008-03-27 Nick Roberts <nickrob@snap.net.nz>
5979 * mi/mi-main.c (enum captured_mi_execute_command_actions):
5980 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
5982 2008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
5984 * objfiles.h (struct objfile): New GDBARCH member.
5985 (get_objfile_arch): Add prototype.
5986 * objfiles.c: Include "arch-utils.h".
5987 (allocate_objfile): Look up gdbarch associated with bfd.
5988 (get_objfile_arch): New function.
5989 * Makefile (objfiles.o): Update dependencies.
5991 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
5993 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
5995 (locexpr_describe_location): Replace current_gdbarch by
5997 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
5998 (dwarf2_add_field): Likewise.
5999 (read_tag_pointer_type): Likewise.
6000 (read_base_type): Likewise.
6001 (new_symbol): Likewise.
6003 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
6004 (decode_base_type, decode_function_type): Likewise.
6005 (coff_read_struct_type, coff_read_enum_type): Likewise.
6006 (coff_symtab_read): Replace current_gdbarch by objfile arch.
6007 (decode_base_type): Likewise.
6008 (coff_read_enum_type): Likewise.
6009 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
6010 (coff_read_enum_type): Likewise.
6012 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
6013 (end_psymtab): Likewise.
6014 (process_one_symbol): Likewise.
6016 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
6017 (parse_procedure): Likewise.
6018 (parse_partial_symbols): Likewise.
6020 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
6022 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
6023 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
6025 (read_range_type): Replace current_gdbarch by objfile arch. Replace
6026 static range_index_type by built-in type.
6027 (read_one_struct_field): Replace current_gdbarch by objfile arch.
6028 (read_enum_type): Likewise.
6030 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
6033 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
6035 * varobj.h (varobj_floating_p): Declare.
6036 * varobj.c (varobj_floating_p): New.
6037 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
6038 '@' as the name, update all floating varobjs.
6040 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
6042 * varobj.c (struct varobj_root): Rename use_selected_frame to
6043 floating, and clarify the meaning.
6044 (varobj_create, varobj_update, new_root_variable): Adjust.
6045 (value_of_root): Don't use type_changed as in variable,
6047 (c_value_of_root): Adjust.
6049 2008-03-25 Pedro Alves <pedro@codesourcery.com>
6051 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
6053 (linux_nat_wait): Add main lwp to gdb's thread list.
6054 * linux-thread-db.c (find_new_threads_callback): Also attach to
6055 already listed threads which thread_db didn't know about yet.
6057 2008-03-25 Pedro Alves <pedro@codesourcery.com>
6059 * linux-nat.c (drain_queued_events): Fix comment typo.
6060 (linux_nat_attach): In async mode, don't rely on storing a pending
6061 status. Instead place the wait status on the pipe.
6062 (linux_nat_resume): Remove unreacheable shortcut code in async
6064 (stop_wait_callback): In async mode, don't store pending status.
6065 Instead, cancel breakpoints or resend the signal appropriatelly.
6066 (cancel_breakpoint): New, refactored from
6067 cancel_breakpoints_callback.
6068 (cancel_breakpoints_callback): Call cancel_breakpoint.
6069 (pipe_to_local_event_queue): Remove special token processing.
6070 (linux_nat_wait): Issue an internal error if a pending status is
6071 found in async mode.
6073 2008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
6075 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
6077 2008-03-24 Nick Roberts <nickrob@snap.net.nz>
6078 Vladimir Prus <vladimir@codesourcery.com>
6080 * varobj.c (struct varobj_root): New component thread_id.
6081 (varobj_get_thread_id, check_scope): New functions.
6082 (c_value_of_root): Use check_scope. Switch to the
6083 proper thread if necessary.
6085 * varobj.h (varobj_get_thread_id): New extern.
6087 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
6089 2008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
6092 * top.c: Revert 2008-03-21 changes.
6094 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
6096 * thread.c (make_cleanup_restore_current_thread): Make it
6098 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
6099 * varobj.c (varobj_update): Don't save/restore frame.
6100 (c_value_of_root): Save/restore thread and frame here,
6101 using make_cleanup_restore_current_thread.
6102 * Makefile.in: Update dependecies.
6104 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
6106 * varobj.c (struct varobj_root): Clarify
6107 comment on the frame field.
6108 (varobj_create): Don't set frame if we have no
6111 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
6114 Suggested by Jan Kratochvil:
6115 * top.c (gdb_rl_operate_and_get_next_completion): Call
6116 rl_redisplay_function.
6117 (gdb_rl_redisplay): New.
6118 (init_main): Set rl_redisplay_function.
6120 2008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
6122 * aix-thread.c (pdc_read_regs): Fix compiler warning.
6123 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
6124 (store_regs_kernel_thread): Likewise.
6126 2008-03-21 Pedro Alves <pedro@codesourcery.com>
6128 Linux native async support.
6130 * target.h (struct target_ops): Delete to_async_mask_value and add
6132 (target_is_async_p, target_async): Formatting.
6133 (target_async_mask_value): Delete.
6134 (target_async_mask): Delete function declaration, and add new
6135 target macro with the same name.
6137 * target.c (update_current_target): Replace to_async_mask_value by
6138 to_async_mask. Default to_async_mask to return_one.
6139 (target_async_mask): Delete.
6140 (find_default_can_async_p, find_default_is_async_p): New.
6141 (init_dummy_target): register find_default_can_async_p and
6142 find_default_is_async_p on the dummy target.
6144 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
6145 (debug_linux_nat_async): New global.
6146 (show_debug_linux_nat_async): New function.
6147 (linux_nat_async_enabled, linux_nat_async_mask_value)
6148 (linux_nat_event_pipe, linux_nat_num_queued_events)
6149 (linux_nat_async_events_enabled): New globals.
6150 (struct waitpid_result): New struct.
6151 (waitpid_queue): New global.
6152 (queued_waitpid, push_waitpid, drain_queued_events): New.
6153 (my_waitpid): Call queued_waitpid.
6154 (linux_child_follow_fork): Disable async events during the call.
6155 (blocked_mask): Delete.
6156 (sync_sigchld_action, async_sigchld_action): New globals.
6157 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
6158 async mode, block events during the call.
6159 (linux_nat_create_inferior): New.
6160 (linux_nat_attach): In sync mode, restore the mask states. In
6161 async mode, wake the event loop immediatelly.
6162 (detach_callback): Drain all queued events of the lwp we're
6164 (linux_nat_detach): Block async mode, and drain events of the main
6166 (linux_nat_resume): If in async mode, mask async events during the
6167 call. If short circuiting, force event loop to wake up. If
6168 resuming, set target_executing, and register target events in the
6170 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
6171 (linux_nat_wait): In async mode, block events during the call.
6172 Only enable/disable passing SIGINT to the inferior in sync mode.
6173 Get events from local waitpid queue. If no interesting events was
6174 found, return to events loop. Reregister target events in the
6175 event loop on exit. In sync mode, no need to reblock SIGCHLD.
6176 (linux_nat_kill): Disable events on entry.
6177 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
6178 here. Detach async mode from the event loop if there are no more
6179 forks available, otherwise leave it on.
6180 (sigchld_handler): Assure this is called only in sync mode.
6181 (linux_async_permitted, linux_async_permitted_1): New globals.
6182 (set_maintenance_linux_async_permitted)
6183 (show_maintenance_linux_async_permitted): New functions.
6184 (linux_nat_is_async_p, linux_nat_can_async_p)
6185 (linux_nat_async_mask): New.
6186 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
6187 (get_pending_events, async_sigchld_handler): New.
6188 (linux_nat_async_events): New.
6189 (async_terminal_is_ours): New global.
6190 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
6191 (async_client_callback, async_client_context): New.
6192 (linux_nat_async_file_handler, linux_nat_async)
6193 (linux_nat_disable_async, linux_nat_enable_async): New.
6194 (linux_nat_add_target): Register linux_nat_create_inferior,
6195 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
6196 linux_nat_async_mask, linux_nat_terminal_inferior and
6197 linux_nat_terminal_ours.
6198 (_initialize_linux_nat): Remove local action variable, and update
6199 code that used it to use sync_sigchld_action. Add new
6200 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
6201 set/show command in the maintenance class. Add new "linux-async"
6202 maintenance set/show command. Block SIGCHLD by default. Setup
6203 async_sichld_action, and sync_sigchld_action. Install the default
6205 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
6208 * linux-thread-db.c (re_check_for_thread_db): New.
6209 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
6210 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
6211 (thread_db_async_mask): New.
6212 (init_thread_db_ops): Register thread_db_can_async_p,
6213 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
6215 * remote.c (remote_async_mask_value): New.
6216 (remote_return_zero): New.
6217 (init_remote_ops): Register remote_return_zero as callbacks of
6218 to_can_async_p and to_is_async_p.
6219 (remote_can_async_p, remote_is_async_p, remote_async): Update to
6220 use remote_async_mask_value.
6221 (remote_async_mask): New.
6222 (init_remote_async_ops): Remove to_async_mask_value setting and
6223 register remote_async_mask as to_async_mask callback in
6226 * Makefile.in (linux-nat.o): Update.
6228 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
6230 * gdbthread.h (add_thread_with_info): New.
6231 * linux-thread-db.c: Add some documentation.
6232 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
6233 (struct private_thread_info): Remove th_valid and ti_valid.
6234 Replace ti with tid.
6235 (thread_get_info_callback): Do not add TID to the new ptid. Do
6237 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
6238 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
6240 (attach_thread): Handle an already-existing thread. Use
6241 add_thread_with_info. Cache the th and tid.
6242 (detach_thread): Verify that private was set. Remove verbose
6243 argument and printing. Update caller.
6244 (thread_db_detach): Do not adjust inferior_ptid.
6245 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
6246 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
6247 (thread_db_wait): Do not use lwp_from_thread.
6248 (thread_db_pid_to_str): Use the cached TID.
6249 (thread_db_extra_thread_info): Check that private is set.
6250 (same_ptid_callback): Delete.
6251 (thread_db_get_thread_local_address): Do not use it or check
6252 is_thread. Check that private is set. Assume that the thread
6253 handle is already cached.
6254 (init_thread_db_ops): Remove to_resume and to_kill.
6255 * thread.c (add_thread_with_info): New.
6256 (add_thread): Use it.
6257 * linux-nat.c (find_thread_from_lwp): Delete.
6258 (exit_lwp): Do not use it. Check print_thread_events. Print before
6259 deleting the thread.
6260 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
6261 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
6262 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
6263 printf_unfiltered for thread exits.
6264 * procfs.c (procfs_wait): Likewise.
6266 2008-03-21 Chris Demetriou <cgd@google.com>
6268 * symtab.c (rbreak_command): Quote symbol name before passing
6269 it to break_command.
6271 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
6273 * eval.c (evaluate_subexp_for_address): Clarify error message.
6274 Use value_must_coerce_to_target.
6275 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
6276 * valops.c (value_assign): Call value_coerce_to_target when
6277 assigning to anything but internalvars. Leave GDB-side arrays
6278 as arrays when assigning to internalvars.
6279 (value_must_coerce_to_target, value_coerce_to_target): New.
6280 (value_coerce_array, value_addr): Call value_coerce_to_target.
6281 (value_array): Create the array in GDB's memory instead of
6283 * value.h (value_must_coerce_to_target, value_coerce_to_target):
6286 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
6288 * top.c (quit_confirm): Warn that we will kill the program.
6290 2008-03-19 Pedro Alves <pedro@codesourcery.com>
6292 * inflow.c (terminal_ours_1): Guard access to
6293 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
6295 2008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
6296 Jim Blandy <jimb@codesourcery.com>
6297 Daniel Jacobowitz <drow@false.org>
6299 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
6300 (dwarf2_read_address): Update prototype.
6302 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
6303 (signed_address_type): Likewise.
6304 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
6305 (execute_stack_op): Update calls to unsigned_address_type,
6306 signed_address_type and dwarf2_read_address. Fix implementation
6307 of DW_OP_deref_size.
6309 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
6310 (dwarf2_per_cu_addr_size): Likewise.
6311 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
6312 (struct dwarf2_loclist_baton): Likewise.
6314 * dwarf2loc.c (find_location_expression): Update calls to
6315 dwarf2_read_address. Use dwarf2_per_cu_objfile and
6316 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
6317 (locexpr_describe_location): Likewise.
6318 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
6319 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
6320 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
6321 to dwarf2_per_cu_addr_size (per_cu).
6322 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
6323 (loclist_read_variable): Likewise.
6324 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
6326 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
6327 instead of baton->objfile.
6328 (dwarf2_per_cu_obfile): New function.
6329 (dwarf2_per_cu_addr_size): Likewise.
6331 * dwarf2-frame.c (struct comp_unit): Move higher.
6332 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
6333 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
6334 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
6335 parameter by using fde->eh_frame_p. Use read_encoded_value
6336 to implement DW_CFA_set_loc.
6337 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
6338 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
6339 execute_stack_op and execute_cfa_program.
6340 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
6341 (size_of_encoded_value): Remove.
6342 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
6343 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
6344 (add_cie): Set cie->unit backlink.
6345 (decode_frame_entry_1): Set cie->addr_size. Update calls to
6347 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
6349 2008-03-17 Markus Deuling <deuling@de.ibm.com>
6351 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
6352 gdbarch_bfd_arch_info.
6354 2008-03-17 Joel Brobecker <brobecker@adacore.com>
6356 * aix-thread.c (pdc_read_regs): Minor reformatting.
6358 2008-03-17 Vladimir Prus <vladimir@codesourcery.com>
6360 * thread.c (print_thread_info): Don't insist
6361 on having current thread if there are no
6364 2008-03-17 Pedro Alves <pedro@codesourcery.com>
6366 * infcmd.c (attach_command_post_wait)
6367 (attach_command_continuation): New.
6368 (attach_command): Support background async execution, and async
6369 execution in synchronous mode.
6371 2008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
6373 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
6374 * symmisc.c (dump_symtab_1): Likewise.
6375 * wrapper.c (gdb_value_struct_elt): Likewise.
6377 2008-03-17 Pedro Alves <pedro@codesourcery.com>
6379 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
6381 2008-03-17 Pedro Alves <pedro@codesourcery.com>
6383 * linux-nat.c (linux_nat_filter_event): New, refactored from
6385 (linux_nat_wait): Call linux_nat_filter_event.
6387 2008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
6389 * top.c (execute_command): Fix uninitialized variable error.
6391 2008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
6393 * Makefile.in (amd64nbsd-nat.o): New dependency.
6394 * amd64nbsd-nat.c: Include "nbsd-nat.h".
6395 (_initialize_amd64nbsd_nat): Update target vector to use
6396 nbsd_pid_to_exec_file.
6397 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
6399 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
6401 Remove ignoring leading exec events code.
6402 * fork-child.c (startup_inferior): Do not set
6403 inferior_ignoring_leading_exec_events.
6404 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
6405 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
6406 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
6407 (handle_inferior_event): Remove code for ignoring leading exec
6409 * target.c (update_current_target): Do not inherit, or default,
6410 to_reported_exec_events_per_exec_call.
6411 (debug_to_reported_exec_events_per_exec_call): Remove.
6412 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
6413 * target.h (target_reported_exec_events_per_exec_call): Remove.
6414 (struct target): Remove the to_reported_exec_events_per_exec_call
6417 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
6419 Implement -thread-info.
6420 * gdbthread.h (print_thread_info): Declare.
6422 * thread.c (print_thread_info): New, extracted
6423 from info_threads_command and adjusted to
6424 work for CLI and MI.
6425 (info_threads_command): Use print_thread_info.
6426 * Makefile.in: Update dependencies.
6428 * mi/mi-cmds.c (mi_cmds): Specify a handler
6430 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
6431 * mi/mi-main.c (mi_cmd_thread_info): New.
6432 (mi_cmd_list_features): Include 'thread-info'.
6434 2008-03-14 Kevin Buettner <kevinb@redhat.com>
6436 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
6437 to decide whether to match instruction patterns using "sw" and "sd".
6439 2008-03-14 Pedro Alves <pedro@codesourcery.com>
6441 * infcmd.c (jump_command): Postpone disabling stdin until after
6444 2008-03-14 Pedro Alves <pedro@codesourcery.com>
6446 * inflow.c (gdb_getpgrp): New.
6447 (gdb_has_a_terminal): Use get_getpgrp.
6448 (terminal_ours_1): If attach_flag is set, don't refetch
6449 inferior_process_group.
6451 2008-03-14 Pedro Alves <pedro@codesourcery.com>
6453 * features/library-list.dtd: Allow "section" elements as children
6454 of "library". Add "section" element and describe its attributes.
6456 * solib-target.c (struct lm_info): Add section_bases member.
6457 (library_list_start_segment): Error out if seen a section element.
6458 (library_list_start_section): New.
6459 (library_list_end_library): New.
6460 (solib_target_free_library_list): Free section_bases.
6461 (section_attributes): New.
6462 (library_children): Make "segment" optional. Add "section" child.
6463 (library_list_children): Register library_list_end_library.
6464 (solib_target_relocate_section_addresses): Handle section bases.
6466 * NEWS: Mention new qXfer:libraries:read section offsets support.
6468 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
6470 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
6471 (make_exec_error_cleanup): Remove declarations.
6472 * utils.c (exec_error_cleanup_chain): Remove.
6473 (do_exec_error_cleanups, discard_exec_error_cleanups)
6474 (make_exec_error_cleanup): Remove.
6475 * event-loop.c (start_event_loop): Adjust call to
6477 * event-top.c (async_enable_stdin): Remove the paramater dummy.
6478 (async_disable_stdin): Don't register async_enable_stdin via
6480 * inf-loop.c (inferior_event_handler): Don't
6481 call do_exec_error_cleanups. Call async_enable_stdin instead.
6482 * event-loop.c (start_event_loop): Adjust call to
6484 * tui/tui-interp.c (tui_command_loop): Adjust call to
6487 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
6490 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
6491 * breakpoint.c (bpstat_do_actions): In async mode,
6492 don't jump to top expecting stop_bpstat to be already
6494 * event-loop.c (start_event_loop): Call async_enable_stdin
6496 * event-top.c (async_enable_stdin): Do nothing if sync_execution
6498 (command_handler): Do not setup continuation here.
6499 (command_line_handler_continuation): Move to...
6500 * top.c (command_line_handler_continuation): ... here.
6501 (execute_command): In async mode, register continuation.
6502 Don't check frame's language in running in async mode.
6503 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
6504 * inf-loop.c (complete_execution): Inline into...
6505 (inferior_event_handler): ... here. Clear target_executing before
6506 doing any cleanups. Don't try to show prompt if the target was
6508 * infcmd.c (signal_command): Add support for async mode.
6509 (finish_command): Only add continuation if the target was
6510 successfully resumed.
6511 * remote.c (init_async_opts): Register to_get_thread_local_address
6513 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
6514 with sync_execution.
6515 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
6518 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
6520 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
6521 * exec.c (exec_bfd_mtime): Define.
6522 (exec_close): Clear it.
6523 (exec_file_attach): Set it.
6524 * gdbcore.h (exec_bfd_mtime): Declare.
6525 * source.c (find_source_lines): Do not use bfd_get_mtime.
6527 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
6529 * top.c (simplified_command_loop): Remove.
6531 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
6533 Remove unused remote.c hooks.
6534 * remote.c (deprecated_target_resume_hook)
6535 (deprecated_target_wait_loop_hook): Remove.
6536 (remote_resume): Do not call deprecated_target_resume_hook.
6537 (remote_wait): Do not call deprecated_target_wait_loop_hook.
6538 (remote_async_wait): Likewise.
6540 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
6542 Implement MI notification for new threads.
6543 * doc/observer.texi (new_thread): Document.
6544 * observer.sh: Forward declare struct thread_info.
6545 * thread.c (add_thread): Notify observer.
6547 * interps.h (interp_init_ftype): New parameter
6549 (interp_set): Likewise.
6550 (top_level_interpreter_data): Declare.
6551 * interps.c (interp_set): New parameter top_level.
6552 Pass it to interpreter's init function. Remember
6553 top level interpreter.
6554 (interpreter_exec_cmd): Adjust.
6555 (top_level_interpreter_data): New.
6556 * main.c (captured_main): Pass 1 for top_level
6557 parameter of interp_set.
6558 * cli/cli-interp.c (cli_interpreter_init): New
6559 parameter top_level.
6560 * tui/tui-interp.c (tui_init): New parameter top_level.
6562 * mi/mi-interp.c (mi_new_thread): New.
6563 (mi_interpreter_init): If top level, register
6564 observer for new threads.
6566 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
6568 2008-03-14 Pedro Alves <pedro@codesourcery.com>
6570 * top.c (execute_command): Disable break and stop
6571 commands in async mode.
6573 2008-03-14 Pedro Alves <pedro@codesourcery.com>
6576 2008-03-14 Pedro Alves <pedro@codesourcery.com>
6577 * inf-loop.c (inferior_event_handler): Don't include remote.h.
6578 Call target_stop in the INF_QUIT_REQ case.
6579 * Makefile.in (inf-loop.o): Update.
6581 2008-03-14 Pedro Alves <pedro@codesourcery.com>
6583 * inf-loop.c (inferior_event_handler): Don't include remote.h.
6584 Call target_stop in the INF_QUIT_REQ case.
6585 * Makefile.in (inf-loop.o): Update.
6587 2008-03-14 Pedro Alves <pedro@codesourcery.com>
6589 * top.c (execute_command): Enable break, info and interrupt
6590 commands in async mode.
6592 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
6593 Daniel Jacobowitz <dan@codesourcery.com>
6595 * breakpoint.h (breakpoint_restore_shadows): New
6597 * breakpoint.c (breakpoint_restore_shadows): New.
6598 (read_memory_nobpt): Delete.
6599 * gdbcore.h (read_memory_nobpt): Delete declaration.
6600 * target.c (memory_xfer_partial): Call
6601 breakpoint_restore_shadows.
6602 (restore_show_memory_breakpoints)
6603 (make_show_memory_beakpoints_cleanup): New.
6604 (show_memory_breakpoints): New.
6605 * target.h (make_show_memory_beakpoints_cleanup): Declare.
6606 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
6607 Make sure we see memory breakpoints when checking if
6608 breakpoint is still there.
6609 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
6610 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
6611 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
6612 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
6614 2008-03-12 Pedro Alves <pedro@codesourcery.com>
6616 * thread.c (add_thread): Use printf_unfiltered to print.
6618 2008-03-12 Joel Brobecker <brobecker@gnat.com>
6620 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
6621 that is true only on x86-solaris and x86_64-solaris.
6622 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
6623 with proc_get_LDT_entry.
6625 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
6627 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
6628 * config.in, configure: Regenerate.
6629 * fork-child.c (fork_inferior): Call create_tty_session.
6630 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
6631 (create_tty_session): New function.
6632 * terminal.h: Declare create_tty_session.
6634 2008-03-12 Alan Modra <amodra@bigpond.net.au>
6637 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
6638 * mipsread.c: Include elf/internal.h.
6639 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
6642 2008-03-11 Markus Deuling <deuling@de.ibm.com>
6644 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
6645 to get at the current architecture and at the target specific vector.
6646 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
6647 remove define of I387_ST0_REGNUM.
6649 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
6651 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
6652 get at the current architecture
6653 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
6656 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
6657 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
6659 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
6660 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
6661 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
6663 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
6664 at the target specific vector.
6666 (i386_get_longjmp_target): Use get_frame_arch to get at the current
6667 architecture. Use gdbarch_tdep to get at the target specific vector.
6669 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
6670 update caller. Use gdbarch_tdep to get at the target specific vector.
6672 (i386_register_to_value: Use get_frame_arch to get at the current
6675 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
6678 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
6679 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
6680 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
6681 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
6683 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
6686 (i387_convert_register_p, i387_register_to_value,
6687 i387_value_to_register): Update call for i386_fp_regnum_p.
6689 * i387-tdep.h: Remove comment.
6690 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
6691 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
6692 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
6693 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
6694 I387_MXCSR_REGNUM): Add target specific vector as parameter.
6696 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
6698 * Makefile.in (fork-child.o): Update.
6699 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
6700 argument. Gather all gdbserver features together.
6701 * fork-child.c (exec_wrapper): New variable.
6702 (fork_inferior): Use it.
6703 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
6704 (unset_exec_wrapper_command, _initialize_fork_child): New.
6706 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
6708 * source.c (directory_command): Modify the determination of
6709 condition of terminal "from_tty".
6711 2008-03-10 Matt Rice <ratmice@gmail.com>
6713 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
6715 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
6717 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
6718 of the data passing to strtoulst function.
6719 (info_spu_signal_command): Likewise.
6721 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
6723 * mi/mi-interp.c (mi_command_loop): Remove
6726 2008-03-07 Joel Brobecker <brobecker@adacore.com>
6728 * remote.c (extended_remote_attach_1): Make local variable pid an int
6731 2008-03-07 Joel Brobecker <brobecker@adacore.com>
6733 * solib-svr4.c (svr4_same_1): New function, originally extracted
6734 from svr4_same and expanded to handle the sparc64 case.
6735 (svr4_same): Move up and reimplement using svr4_same_1.
6736 (enable_break): Use svr4_same_1 to do shared library name comparisons.
6738 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
6740 * MAINTAINERS: Move self to Paper trail.
6742 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
6744 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
6745 * event-loop.c (call_async_signal_handler): New.
6746 * event-loop.h (call_async_signal_handler)
6747 (gdb_call_async_signal_handler): Declare.
6748 (mark_async_signal_handler): Add comments.
6749 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
6750 * mingw-hdep.c (sigint_event, sigint_handler): New.
6751 (gdb_select): Use them. Wait for the readline signal handler
6753 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
6754 * posix-hdep.c (gdb_call_async_signal_handler): New function.
6755 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
6757 (remote_fileio_ctrl_c_signal_handler): Use
6758 gdb_call_async_signal_handler.
6759 (initialize_remote_fileio): Initialize sigint_fileio_token.
6760 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
6761 not initialize tokens here.
6762 (handle_remote_sigint_twice): Likewise. Reinstall
6763 handle_remote_sigint.
6764 (async_remote_interrupt_twice): Just call interrupt_query.
6765 (cleanup_sigint_signal_handler): Do not delete tokens.
6766 (remote_interrupt, remote_interrupt_twice): Use
6767 gdb_call_async_signal_handler.
6768 (interrupt_query): Reinstall the default signal handler.
6769 (_initialize_remote): Initialize tokens here.
6771 2008-03-04 Joel Brobecker <brobecker@adacore.com>
6773 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
6774 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
6775 Change the type of the lr register to code_ptr.
6776 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
6777 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
6778 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
6779 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
6780 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
6781 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
6782 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
6784 2008-03-03 James E. Wilson <wilson@tuliptree.org>
6786 * MAINTAINERS: Update my email address.
6788 2008-03-03 Keith Seitz <keiths@redhat.com>
6790 From Dave Murphy <davem@devkitpro.org>:
6791 * configure.ac: Set tcl configdir to win under mingw.
6792 * configure: Regenerate.
6794 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
6796 * breakpoint.c (fetch_watchpoint_value): New function.
6797 (update_watchpoint): Set and clear val_valid. Use
6798 fetch_watchpoint_value. Handle unreadable values on the
6799 value chain. Correct check for user-requested array watchpoints.
6800 (breakpoint_init_inferior): Clear val_valid.
6801 (watchpoint_value_print): New function.
6802 (print_it_typical): Use it. Do not free or clear old_val. Print
6803 watchpoints even if old_val == NULL.
6804 (watchpoint_check): Use fetch_watchpoint_value. Check for values
6805 becoming readable or unreadable.
6806 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
6807 (do_enable_watchpoint): Likewise.
6808 * breakpoint.h (struct breakpoint): Update comment for val. Add
6810 * NEWS: Mention watchpoints on inaccessible memory.
6812 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
6814 * Makefile.in (i386-nat.o): Update.
6815 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
6816 i386_use_watchpoints.
6817 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
6818 i386_use_watchpoints.
6819 * i386-nat.c (i386_stopped_data_address): Take two arguments.
6820 (i386_stopped_by_watchpoint): Update call.
6821 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
6822 * config/i386/nm-i386.h: Conditionalize definitions on
6823 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
6824 (i386_use_watchpoints): Declare.
6825 (i386_stopped_data_address): Update.
6826 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
6827 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
6829 2008-02-29 Joel Brobecker <brobecker@adacore.com>
6831 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
6832 * version.in: Bump version to 6.8.50.20080229-cvs.
6834 2008-02-28 Markus Deuling <deuling@de.ibm.com>
6836 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
6839 2008-02-28 Tom Tromey <tromey@redhat.com>
6841 * infcmd.c (notice_args_read): Print result of get_inferior_args.
6843 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6845 * infcmd.c (kill_if_already_running): Make static. Use
6846 target_require_runnable.
6847 * target.c (target_require_runnable): New.
6848 * target.h (target_require_runnable): Declare.
6850 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
6852 * frame.c (reinit_frame_cache): Only annotate if frames were
6855 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6857 * regformats/reg-ppc.dat: Rename "ps" to "msr".
6858 * regformats/reg-ppc64.dat: Likewise.
6860 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6862 * features/Makefile (%.dat): Emit xmltarget statement.
6864 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
6865 Generate code to set gdbserver_xmltarget in init_registers_${name}.
6867 * regformats/arm-with-iwmmxt.dat: Regenerate.
6868 * regformats/mips64-linux.dat: Regenerate.
6869 * regformats/mips-linux.dat: Regenerate.
6870 * regformats/rs6000/powerpc-32.dat: Regenerate.
6871 * regformats/rs6000/powerpc-64.dat: Regenerate.
6872 * regformats/rs6000/powerpc-e500.dat: Regenerate.
6874 * regformats/reg-arm.dat: Add xmlarch statement.
6875 * regformats/reg-i386.dat: Likewise.
6876 * regformats/reg-i386-linux.dat: Likewise.
6877 * regformats/reg-x86-64-linux.dat: Likewise.
6878 * regformats/reg-spu.dat: Likewise.
6880 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6882 * remote.c (remote_wait, remote_async_wait): Stop if we receive
6885 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
6887 * utils.c (debug_timestamp): New.
6888 (vfprintf_unfiltered): Print timestamps if requested.
6889 (show_debug_timestamp): New.
6890 (initialize_utils): Register "set debug timestamp".
6891 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
6893 2008-02-27 Joel Brobecker <brobecker@adacore.com>
6895 * breakpoint.c (skip_prologue_sal): New function.
6896 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
6897 computed from a line number.
6899 2008-02-27 Joel Brobecker <brobecker@adacore.com>
6901 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
6902 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
6903 Set PC register type to "code_ptr".
6904 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
6905 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
6906 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
6907 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
6908 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
6909 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
6910 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
6913 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
6915 * regformats/regdat.sh: Rename init_registers function in
6916 generated file to init_registers_${name}.
6918 * regformats/reg-crisv32.dat: Set "name" to crisv32.
6919 * regformats/reg-ppc64.dat: Set "name" to ppc64.
6920 * regformats/reg-s390x.dat: Set "name" to s390x.
6922 2008-02-26 Greg Law <glaw@undo-software.com>
6924 * regcache.c (registers_changed): Call reinit_frame_cache.
6926 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6928 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
6929 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
6930 and svr4_fetch_objfile_link_map.
6931 * Makefile.in (sh-linux-tdep.o): Update.
6933 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
6935 * amd64-tdep.c (amd64_classify): Add support for decimal float
6937 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
6938 use the struct return convention.
6940 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
6942 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
6943 to old format. Discard breakpoint address if shared library is
6945 (breakpoint_1): Adjust formatting of table header accordingly.
6947 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
6949 * remote.c (remote_get_threadlist): If the response
6950 is empty, don't try to parse it.
6952 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
6954 Unbreak 'target async'.
6955 * serial.c (serial_async): Set the
6956 handler function before enabling async
6959 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
6961 * solib-svr4.c (enable_break): Convert r_brk to a code address.
6963 2008-02-21 Pedro Alves <pedro@codesourcery.com>
6965 * remote.c (extended_remote_attach_1): Set attach_flag.
6966 (extended_remote_create_inferior_1): Clear attach_flag.
6968 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
6970 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
6972 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
6973 * solib-svr4.c (solib_svr4_r_brk): New.
6974 (open_symbol_file_object, svr4_current_sos): Always check the
6976 (svr4_fetch_objfile_link_map): Do not set debug_base.
6977 (enable_break): Use r_brk if it is set.
6978 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
6979 (svr4_lp64_fetch_link_map_offsets): Likewise.
6980 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
6982 2008-02-20 Markus Deuling <deuling@de.ibm.com>
6983 Mark Kettenis <kettenis@gnu.org>
6985 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
6986 trad_frame_saved_reg.
6987 (trad-frame.h): New include.
6989 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
6990 instead of frame_obstack_zalloc.
6991 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
6993 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
6995 2008-02-20 Markus Deuling <deuling@de.ibm.com>
6997 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
6998 from disassemble_info instead of gdbarch_byte_order.
7000 * mips-tdep.c (gdb_print_insn_mips): Likewise.
7001 * arm-tdep.c (gdb_print_insn_arm): Likewise.
7003 2008-02-20 Markus Deuling <deuling@de.ibm.com>
7005 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
7006 gdbarch as parameter.
7008 * gdbarch.{c,h}: Regenerate.
7010 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
7012 * mem-break.c (default_memory_insert_breakpoint)
7013 (default_memory_remove_breakpoint): Likewise.
7014 * target.h (default_memory_remove_breakpoint)
7015 (default_memory_insert_breakpoint): Likewise.
7017 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
7018 parameter. Replace current_gdbarch by gdbarch.
7019 * m32r-tdep.c (m32r_memory_insert_breakpoint)
7020 (m32r_memory_remove_breakpoint): Likewise.
7022 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
7024 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
7026 2008-02-19 Joel Brobecker <brobecker@adacore.com>
7028 * NEWS: Add entry describing Add support improvements.
7030 2008-02-18 Markus Deuling <deuling@de.ibm.com>
7032 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
7035 2008-02-18 Markus Deuling <deuling@de.ibm.com>
7037 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
7038 register_offset_hack anymore.
7040 * regcache.{c,h} (register_offset_hack): Remove.
7042 2008-02-18 Markus Deuling <deuling@de.ibm.com>
7044 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
7046 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
7047 current_gdbarch by gdbarch.
7048 (hppa64_hpux_find_global_pointer): Likewise.
7049 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
7050 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
7051 find_global_pointer.
7053 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
7055 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
7057 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
7058 of gdbarch_num_regs.
7060 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
7061 replace current_gdbarch by gdbarch.
7062 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
7064 2008-02-18 Markus Deuling <deuling@de.ibm.com>
7066 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
7067 and replace current_gdbarch by gdbarch.
7069 (store_register): Update call for exec_one_dummy_insn.
7070 (fetch_register, store_register): Update call of regmap.
7072 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
7073 parameter and replace current_gdbarch by gdbarch.
7075 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
7076 the current architecture. Update call for getregs_supplies and
7078 (ppcnbsd_fetch_inferior_registers): Likewise.
7080 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
7081 replace current_gdbarch by gdbarch.
7082 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
7083 get_regcache_arch to get at the current architecture. Update call for
7086 2008-02-18 Markus Deuling <deuling@de.ibm.com>
7088 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
7091 2008-02-15 Markus Deuling <deuling@de.ibm.com>
7093 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
7095 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
7097 * NEWS: Mention pending breakpints in MI.
7099 2008-02-14 Markus Deuling <deuling@de.ibm.com>
7101 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
7103 2008-02-13 Markus Deuling <deuling@de.ibm.com>
7105 Add script to build and test GDB using enable-targets=all.
7107 * gdb_buildall.sh: New file.
7109 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
7111 * NEWS (New native configurations): Xtensa GNU/Linux.
7112 (New targets): Xtensa GNU/Linux.
7113 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
7115 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
7116 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
7117 * configure.tgt (xtensa*-*-linux*): New entry.
7118 * xtensa-config.c (xtensa_tdep): New variable.
7119 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
7120 (rmap): Change format based on new macro XTREG.
7121 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
7122 * xtensa-linux-nat.c: New.
7123 * xtensa-linux-tdep.c: New.
7124 * xtensa-xtregs.c: New.
7125 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
7126 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
7127 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
7128 (xtensa_register_t): New field coprocessor.
7129 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
7130 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
7131 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
7132 Update to handle privileged registers.
7133 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
7134 (xtensa_push_dummy_call): Set windowstart register correctly.
7135 (call0_analyze_prologue): Initialize xtensa_default_isa.
7136 (xtensa_derive_tdep): New.
7137 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
7138 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
7139 Call xtensa_derive_tdep().
7140 * config/xtensa/linux.mh: New.
7141 * regformats/reg-xtensa.dat: New.
7143 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
7145 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
7146 (filenames.h): New include.
7147 * Makefile.in (corelow.o): Add dependency for filenames.h.
7149 2008-02-08 Doug Evans <dje@google.com>
7151 * source.c (find_and_open_source): Always rewrite absolute filenames.
7153 2008-02-07 Doug Evans <dje@google.com>
7155 * breakpoint.c: #include "hashtab.h".
7156 (ambiguous_names_p): New fn.
7157 (update_breakpoint_locations): When restoring bp enable status, don't
7158 compare function names if any functions have same name.
7159 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
7161 2008-02-07 Joel Brobecker <brobecker@adacore.com>
7163 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
7164 instead of just a VEC*. Update use of SV.
7165 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
7167 2007-02-07 Joel Brobecker <brobecker@adacore.com>
7169 * NEWS: Put all new commands since gdb-6.7 together.
7171 2007-02-07 Joel Brobecker <brobecker@adacore.com>
7173 * ada-lang.c: #include "vec.h".
7174 (struct string_vector, new_string_vector, string_vector_append):
7176 (char_ptr): New typedef.
7177 (DEF_VEC_P (char_ptr)): New VEC type.
7178 (symbol_completion_add): Update profile to take the new VEC type
7179 instead of the old string_vector structure. Update code accordingly.
7180 (ada_make_symbol_completion_list): Use the new VEC type instead of
7181 the old string_vector structure, and update the code accordingly.
7182 * Makefile.in (ada-lang.o): Add dependency on vec.h.
7184 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
7186 * p-exp.y: Set current_type in missing places.
7187 (leftdiv_is_integer): New static variable.
7188 Typecast right operand of BINOP_DIV to long_double if both operands
7191 2008-02-06 Maciej W. Rozycki <macro@mips.com>
7193 * remote-mips.c (set_breakpoint): Rename to...
7194 (mips_set_breakpoint): ... this.
7195 (clear_breakpoint): Rename to...
7196 (mips_clear_breakpoint): ... this.
7197 (common_breakpoint): Rename to...
7198 (mips_common_breakpoint): ... this.
7199 (check_lsi_error): Rename to...
7200 (mips_check_lsi_error): ... this.
7202 2007-02-05 Joel Brobecker <brobecker@adacore.com>
7204 * language.h (struct language_defn): Add new field
7205 la_make_symbol_completion_list.
7206 * symtab.c (default_make_symbol_completion_list): Renames
7207 make_symbol_completion_list.
7208 (make_symbol_completion_list): New function.
7209 * symtab.h (default_make_symbol_completion_list): Add declaration.
7210 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
7211 (auto_language, local_language): Likewise.
7212 * objc-lang.c (objc_language_defn): Likewise.
7213 * scm-lang.c (scm_language_defn): Likewise.
7214 * m2-lang.c (m2_language_defn): Likewise.
7215 * f-lang.c (f_language_defn): Likewise.
7216 * jv-lang.c (java_language_defn): Likewise.
7217 * p-lang.c (pascal_language_defn): Likewise.
7218 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
7219 (minimal_language_defn): Likewise.
7220 * ada-lang.c (struct string_vector): New structure.
7221 (new_string_vector, string_vector_append, ada_unqualified_name)
7222 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
7223 (ada_make_symbol_completion_list): New functions.
7224 (ada_language_defn): Set la_make_symbol_completion_list.
7225 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
7226 this function is static.
7228 2008-02-05 Kevin Buettner <kevinb@redhat.com>
7230 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
7231 to account for call site optimizations.
7233 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
7235 * tracepoint.c (read_actions): Handle end-of-text indicator
7236 in action list properly. (Committed by Jim Blandy)
7238 2008-02-05 Jim Blandy <jimb@red-bean.com>
7240 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
7241 pseudoregister, not an internal error.
7242 Reported by: Andrzej Zaborowski
7244 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
7246 * varobj.c (c_value_of_variable): Use xstrdup.
7248 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
7250 Update stored rendition of varobj value when format changes.
7251 * varobj.c (varobj_set_display_format): Recomputed
7253 (c_value_of_variable): Return print_value.
7255 2008-02-03 Doug Evans <dje@google.com>
7257 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
7258 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
7259 * valops.c (value_one): New function.
7260 * value.h (value_one): Declare.
7262 Fix argument promotion for binary arithmetic ops for C.
7263 * valarith.c (unop_result_type): New fn.
7264 (binop_result_type): New fn.
7265 (value_binop): Move result type computation to binop_result_type.
7266 (value_pos, value_neg, value_complement): Move result type
7267 computation to unop_result_type.
7270 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
7271 Return basetype, fieldno if found. All callers updated.
7272 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
7274 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
7275 * symfile.h (fill_in_vptr_fieldno): Delete.
7277 2008-02-02 Doug Evans <dje@google.com>
7279 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
7281 * typeprint.c (*): Whitespace cleanup.
7283 2008-02-02 Mark Kettenis <kettenis@gnu.org>
7284 Luis Machado <luisgpm@br.ibm.com>
7285 Thiago Jung Bauermann <bauerman@br.ibm.com>
7287 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
7288 don't fit into registerson the stack the way GCC does.
7290 2008-02-01 Joel Brobecker <brobecker@adacore.com>
7292 * symtab.c (symbol_set_names): Do not add an entry in the demangling
7293 hash table for Ada symbols. Just store the linkage name as is,
7294 and leave the demangled_name as NULL.
7296 2007-02-01 Joel Brobecker <brobecker@adacore.com>
7298 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
7299 in the global scope.
7300 (new_symbol): Likewise.
7302 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
7304 * breakpoint.c (break_command_1): Return void.
7305 (break_command_really): Return void. Rethrow
7306 exceptions instead of returning.
7307 (gdb_breakpoint): Remove the error_message parameter.
7308 Return void. Rename to set_breakpoint.
7309 * gdb.h (gdb_breakpoint): Rename and move to...
7310 * breakpoint.h (set_breakpoint): ...here.
7311 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
7312 event hooks even if exception is thrown. Adjust to
7313 gdb_breakpoint interface changes.
7316 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
7318 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
7319 float in both first and second word in the doubleword, to support
7322 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
7324 Properly rethrow exception. This fixes errors
7325 about non-existent functions for -break-insert.
7326 * breakpoint.c (break_command_really): Use throw_exception
7327 for rethrowing. If rethrowing, don't print the exception.
7329 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7331 * NEWS: Mention Decimal Floating Point support.
7333 2008-01-31 Joel Brobecker <brobecker@adacore.com>
7335 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
7336 value type to builtin_type_void_func_ptr.
7338 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
7340 * s390-tdep.c (is_float_singleton, is_float_like,
7341 alignment_of, s390_return_value): Make checks for
7342 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
7344 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
7345 Thiago Jung Bauermann <bauerman@br.ibm.com>
7347 * infcmd.c (default_print_registers_info): Also print hex
7348 raw contents for TYPE_CODE_DECFLOAT registers.
7349 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
7350 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
7351 (rs6000_register_name): Add support for DFP pseudo-registers.
7352 (rs6000_pseudo_register_type): Likewise.
7353 rs6000_pseudo_register_reggroup_p): Likewise.
7354 (ppc_pseudo_register_read): New function.
7355 (ppc_pseudo_register_write): Likewise.
7356 (rs6000_pseudo_register_read): Likewise.
7357 (rs6000_pseudo_register_write): Likewise.
7358 (e500_pseudo_register_read): Move checks to
7359 rs6000_pseudo_register_read.
7360 (e500_pseudo_register_write): Move checks to
7361 rs6000_pseudo_register_write.
7362 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
7363 rs6000_pseudo_register_read and rs6000_pseudo_register_write
7364 in gdbarch if SPE or DFP is available. Adjust gdbarch's
7365 num_pseudo_regs to account for DFP pseudo regs.
7367 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7369 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
7370 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
7371 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
7372 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
7373 e500_pseudo_register_read, e500_pseudo_register_write): Use
7374 IS_SPE_PSEUDOREG macro.
7375 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
7376 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
7377 Remove initialization of tdep->ppc_ev31_regnum.
7379 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
7381 * printcmd.c (print_formatted): Handle references as for unformatted
7384 2008-01-30 Joel Brobecker <brobecker@adacore.com>
7386 * eval.c (evaluate_subexp_standard): Add handling of user
7387 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
7389 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
7391 * eval.c (evaluate_subexp_standard): Support
7392 BINOP_INTDIV opcode.
7394 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
7396 * valarith.c (value_binop): Add floating-point BINOP_MIN and
7398 For BINOP_EXP, use length and signedness of left operand only for
7399 result, as for shifts.
7400 For integral operands to BINOP_EXP, use new integer_pow and
7401 uinteger_pow functions so as to get full range of results.
7402 (integer_pow): New function.
7403 (uinteger_pow): New function.
7405 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
7407 Use vector for varobj_list_children interface.
7408 * gdb/varobj.c (varobj_list_children): Return vector
7410 * gdb/varobj.h (varobj_list_children): Adjust
7412 (varobj_p): Declare. Declare vector thereof.
7413 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
7414 for varobj_list_children change.
7415 * Makefile.in (varobj_h): Update dependencies.
7417 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7419 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
7420 TYPE_CODE_DECFLOAT arguments.
7421 (ppc64_sysv_abi_push_dummy_call) Likewise.
7422 (get_decimal_float_return_value): New function.
7423 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
7424 values by calling get_decimal_float_return_value.
7425 (ppc64_sysv_abi_return_value): Likewise.
7427 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
7429 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
7430 for preprocessor macro information. Formatting changes.
7432 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
7434 * remote.c (struct remote_state): Add cached_wait_status.
7435 (remote_exec_file): New variable.
7436 (PACKET_vAttach, PACKET_vRun): New constants.
7437 (extended_remote_restart): Do not query for status.
7438 (struct start_remote_args): New.
7439 (remote_start_remote): Take it as a second argument. Check
7440 whether the target is running. Issue an error for non-running
7441 non-extended targets. Cache the wait status. Set inferior_ptid
7443 (remote_open_1): Prompt to disconnect non-running targets. Make
7444 sure the target is marked running. Do not set inferior_ptid here.
7445 Update call to remote_start_remote. Do not call remote_check_symbols
7446 if the target is not running.
7447 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
7448 argument. Handle a non-running target.
7449 (remote_detach): Use it.
7450 (extended_remote_detach): New.
7451 (remote_disconnect): Fix typo. Use remoute_mourn_1.
7452 (extended_remote_attach_1, extended_remote_attach)
7453 (extended_async_remote_attach): New.
7454 (remote_vcont_resume): Remove unused variable.
7455 (remote_wait, remote_async_wait): Use any cached wait status.
7456 (putpkt_binary, getpkt): Clear any cached wait status.
7457 (extended_remoute_mourn_1): New.
7458 (extended_remote_mourn): Use it.
7459 (extended_async_remote_mourn, extended_remote_run): New.
7460 (extended_remote_create_inferior_1): New.
7461 (extended_remote_create_inferior): Use it.
7462 (extended_remote_async_create_inferior): Likewise.
7463 (remote_xfer_partial): Skip for non-executing targets.
7464 (init_extended_remote_ops): Set to_detach and to_attach.
7465 (init_extended_async_remote_ops): Likewise. Use
7466 extended_async_remote_mourn.
7467 (_initialize_remote): Register vAttach, vRun, and
7468 set remote exec-file.
7469 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
7471 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
7473 * Makefile.in (symfile.o): Update.
7474 * NEWS: Mention exec tracing support.
7475 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
7477 * infcmd.c (kill_if_already_running, detach_command)
7478 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
7479 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
7480 (follow_exec): Do not check may_follow_exec. Do not mourn and push
7481 targets. Apply the sysroot path to the loaded executable. Use
7482 no_shared_libraries.
7483 * linux-nat.c (linux_child_follow_fork): Print fork following
7484 messages if verbose.
7485 (kill_wait_callback): Kill again before waiting a second time.
7486 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
7487 no_shared_libraries.
7489 2008-01-29 Joel Brobecker <brobecker@adacore.com>
7491 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
7493 2008-01-29 Joel Brobecker <brobecker@adacore.com>
7495 * nto-tdep.h: Remove #include "defs.h".
7496 * nto-tdep.c: Add #include "defs.h".
7497 * Makefile.in (nto_tdep_h): Update dependencies.
7498 (nto-tdep.o): Likewise.
7500 2008-01-29 Joel Brobecker <brobecker@adacore.com>
7502 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
7504 (proceed, start_remote): Update call to wait_for_inferior.
7505 * inferior.h (wait_for_inferior): Update declaration.
7506 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
7507 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
7508 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
7509 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
7511 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
7513 * varobj (adjust_value_for_child_access): Added checking for
7514 returned value from gdb_value_ind.
7515 (c_describe_child): Likewise.
7516 (cplus_describe_child): Fixed a typo.
7518 2008-01-29 Jim Blandy <jimb@red-bean.com>
7520 * MAINTAINERS: Update my info.
7522 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
7524 Use multiple locations for hardware watchpoints.
7525 This eliminates the need to traverse value chain, doing
7526 various checks, in three different places.
7528 * breakpoint.h (struct bp_location): New fields
7529 lengths and watchpoint_type.
7530 (struct breakpoint): Remove the val_chain field.
7531 * breakpoint.c (is_hardware_watchpoint): New.
7532 (free_valchain): Remove.
7533 (update_watchpoint): New.
7534 (insert_bp_location): For hardware watchpoint, just
7536 (insert_breakpoints): Call update_watchpoint_locations
7537 on all watchpoints. If we have failed to insert
7538 any location of a hardware watchpoint, remove all inserted
7540 (remove_breakpoint): For hardware watchpoints, directly
7542 (watchpoints_triggered): Iterate over locations.
7543 (bpstat_stop_status): Use only first location of
7544 a resource watchpoint.
7545 (delete_breakpoint): Don't call free_valchain.
7546 (print_one_breakpoint): Don't print all
7547 locations for watchpoints.
7548 (breakpoint_re_set_one): Use update_watchpoint for
7551 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
7553 Don't reset watchpoint block on solib load.
7555 * breakpoint.c (insert_bp_location): For watchpoints,
7556 recompute condition.
7557 (breakpoint_re_set_one): Instead of recomputing value
7558 and condition for watchpoints, just reset value and
7559 let insert_breakpoints/insert_bp_location recompute it.
7560 Don't do anything about disabled watchpoint.
7562 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
7564 * valarith.c (value_binop): Handle unsigned integer
7567 2008-01-28 Kevin Buettner <kevinb@redhat.com>
7569 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
7570 instruction pattern that appears frequently in position
7571 independent code. Fix bug in code which looks for "fmov" and
7572 backtracks if no "fmov" is found.
7574 2008-01-28 Doug Evans <dje@google.com>
7576 * dbxread.c (read_dbx_symtab): Fix indentation.
7577 Reformat comments to 80 columns.
7578 Move local var def closer to only use.
7580 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
7582 * fork-child.c (SHELL_FILE): Remove #ifndef.
7583 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
7585 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
7587 * i386-tdep.c (i386_skip_noop): New function.
7588 (i386_analyze_prologue): Call i386_skip_noop function.
7590 2008-01-24 Michael Snyder <msnyder@specifix.com>
7592 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
7593 * win32-nat.c (win32_xfer_partial): Ditto.
7594 * target.c (default_xfer_partial): Minor whitespace adjustment.
7596 2008-01-24 Pedro Alves <pedro@codesourcery.com>
7598 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
7599 strip bit 1 even if pc doesn't point to thumb code.
7601 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
7603 * remote.c (remote_wait): Handle SIGINT between packets.
7604 (remote_async_wait): Likewise.
7606 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
7607 Chris Demetriou <cgd@google.com>
7609 * thread.c (add_thread_silent): Renamed
7611 (print_thread_events): New variable definition.
7612 (show_print_thread_events): New function.
7613 (_initialize_thread): Add "set print thread-events" and
7614 "show print thread-events" commands.
7615 (add_thread): Announce new thread.
7616 * gdbthread.h (add_thread_silent): Declare.
7617 (print_thread_events): New variable declaration.
7618 * inf-ttrace.c (inf_ttrace_wait): Don't
7619 inform about new thread, as add_thread is always
7620 called too, and will take care of that.
7621 * infrun.c (handle_inferior_event): Likewise.
7622 * procfs.c (procfs_wait): Likewise.
7623 * remote.c (remote_currthread): Likewise.
7624 * sol-thread.c (sol_thread_wait): Likewise.
7625 * win32-nat.c (get_win32_debug_event): Likewise.
7626 * linux-thread-db.c (attach_thread): Likewise.
7627 Remove the verbose parameter.
7628 (check_event): Make detach_thread be verbose
7629 only if print_thread_events is set.
7630 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
7631 about new thread. This is called only from
7632 linux-thread-db.c:attach_thread, which will take care.
7633 Remove the verbose parameter.
7634 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
7636 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
7638 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
7640 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
7642 * breakpoint.c (break_command_really): New parameter
7644 (break_command_1): Pass 0 as
7645 ignore_count to break_command_really.
7646 (gdb_breakpoint): Pass ignore_count to
7647 break_command_really.
7649 2008-01-21 Kevin Buettner <kevinb@redhat.com>
7651 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
7652 sigcontext struct via pointer.
7653 (struct sigframe comment): Update to show new field `psc'.
7655 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
7657 * infrun.c (handle_inferior_event): If
7658 we failed to remove breakpoints, error,
7659 don't try to increment PC by hand.
7661 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
7663 Add NetBSD/hppa target and host support.
7665 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
7666 (hppabsd_gregset): Move to ...
7667 (hppabsd_regset_from_core_section): Rename
7668 hppaobsd_regset_from_core_section and move to ...
7669 (hppabsd_find_global_pointer): Update comment.
7670 (hppabsd_init_abi): Make global. Do not register
7671 hppabsd_regset_from_core_section.
7672 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
7674 (_initialize_hppabsd_tdep): Move to ...
7675 * hppaobsd-tdep.c: ... here. New file.
7676 * hppnbsd-tdep.c: New file.
7677 * hppnbsd-nat.c: New file.
7678 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
7679 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
7680 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
7681 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
7682 * configure.host (hppa*-*-netbsd*): New entry.
7683 * configure.tgt (hppa*-*-netbsd*): New entry.
7684 (hppa*-*-openbsd*): Update.
7685 * NEWS (New native configuration): Mention NetBSD/hppa.
7686 (New targets): Mention NetBSD/hppa.
7688 2008-01-18 Markus Deuling <deuling@de.ibm.com>
7690 * gdbarch.sh (function_list): Add new property bits_big_endian to
7692 * gdbarch.{c,h}: Regenerate.
7694 * value.c (struct value): Replace BITS_BIG_ENDIAN by
7695 gdbarch_bits_big_endian (comment).
7696 (unpack_field_as_long, modify_field): Likewise.
7697 * value.h: Likewise (comment).
7698 * valops.c (value_slice): Likewise.
7699 * valarith.c (value_subscript, value_bit_index): Likewise.
7700 * gdbtypes.h (field): Likewise (comment).
7701 * eval.c (evaluate_subexp_standard): Likewise.
7702 * dwarf2read.c (dwarf2_add_field): Likewise.
7703 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
7704 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
7706 * defs.h (BITS_BIG_ENDIAN): Remove.
7708 2008-01-18 Markus Deuling <deuling@de.ibm.com>
7710 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
7712 * m2-exp.y (yylex): Likewise.
7713 * objc-exp.y (yylex): Likewise.
7715 * defs.h (DEPRECATED_STREQN): Remove.
7717 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
7719 * MAINTAINERS: Update my email address.
7721 2008-01-17 Jim Blandy <jimb@codesourcery.com>
7723 * README: Mention gdbserver/README.
7725 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
7727 * valarith.c (value_binop): Handle BINOP_INTDIV
7728 for unsigned and signed integers.
7730 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
7732 * s390-tdep.c (s390_gdbarch_init): Set default long double
7733 type to 128-bit IEEE quad.
7735 2008-01-17 Joel Brobecker <brobecker@adacore.com>
7737 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
7739 2008-01-16 Mark Kettenis <kettenis@gnu.org>
7741 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
7743 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
7744 * value.c: All callers changed.
7746 2008-01-16 Markus Deuling <deuling@de.ibm.com>
7748 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
7749 DEPRECATED_STREQ by its expression.
7750 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
7751 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
7752 (scan_xcoff_symtab): Likewise.
7753 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
7754 * f-lang.c (find_common_for_function): Likewise.
7755 * objc-exp.y (parse_number): Likewise.
7757 * defs.h (DEPRECATED_STREQ): Remove.
7759 2008-01-16 Markus Deuling <deuling@de.ibm.com>
7761 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
7762 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
7763 get_frame_arch to get at the current_architecture. Update AM33_MODE
7765 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
7766 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
7768 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
7770 2008-01-16 Markus Deuling <deuling@de.ibm.com>
7772 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
7774 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
7776 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
7777 current_gdbarch by gdbarch. Update caller.
7779 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
7780 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
7781 the current architecture. Update calls of
7782 amd64_native_gregset_supplies_p.
7783 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
7784 (amd64bsd_store_inferior_registers): Likewise.
7786 2008-01-16 Markus Deuling <deuling@de.ibm.com>
7788 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
7789 Replace current_gdbarch by gdbarch. Update caller.
7791 2008-01-16 Markus Deuling <deuling@de.ibm.com>
7793 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
7794 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
7795 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
7796 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
7797 (stabsect_build_psymtabs): Fix indentation.
7799 2008-01-15 Michael Snyder <msnyder@specifix.com>
7801 * corelow.c (core_xfer_partial): Comment, cut/paste error.
7803 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
7805 * win32-nat.c (win32_create_inferior): Restore code calling
7806 CloseHandle on ProcessInformation structure.
7808 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
7810 * configure.ac: Check for void * as 3 argument of ptrace.
7811 * configure: regenerate.
7813 2008-01-11 Markus Deuling <deuling@de.ibm.com>
7815 * alpha-tdep.c (alpha_heuristic_proc_start)
7816 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
7817 current_gdbarch by gdbarch.
7819 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
7820 current architecture by frame_info. Update alpha_heuristic_proc_start
7823 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
7824 get_frame_arch to get at the current architecture by frame_info. Update
7825 alpha_sigtramp_register_address call.
7827 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
7828 current_gdbarch by gdbarch. Update caller.
7829 (convert_to_extended, convert_from_extended): Add endianess parameter
7830 for comparison. Update caller.
7831 (arm_extract_return_value, arm_store_return_value): Use
7832 get_regcache_arch to get at the current architecture.
7834 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
7835 current_gdbarch by gdbarch. Update caller.
7836 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
7837 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
7839 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
7840 gdbarch as parameter. Update caller.
7841 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
7842 current_gdbarch by gdbarch. Update caller.
7844 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
7845 update caller. Replace current_gdbarch by gdbarch.
7847 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
7848 the current architecture. Replace current_gdbarch by gdbarch.
7849 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
7850 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
7851 expression. Add gdbarch as parameter and replace current_gdbarch with
7853 (M6811_TDEP): Remove.
7854 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
7856 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
7857 current_gdbarch by gdbarch. Update caller.
7859 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
7861 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
7864 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
7865 caller. Relace current_gdbarch by gdbarch.
7866 (altivec_register_p, spe_register_p): Likewise.
7867 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
7869 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
7870 altivec_register_p and spe_register_p.
7872 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
7873 caller. Replace current_gdbarch by gdbarch.
7874 (score_analyze_prologue): use get_frame_arch to get at the current
7877 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
7878 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
7879 current_gdbarch by gdbarch. Update caller.
7880 (sparc_frame_cache): Use get_frame_arch to get at the current
7882 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
7883 sparc_analyze_prologue.
7885 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
7888 2008-01-11 Markus Deuling <deuling@de.ibm.com>
7890 * exec.c: #include "arch-utils.h"
7891 (print_section_info): Use gdbarch_from_bfd to get at the
7892 current architecture. Replace current_gdbarch. Fix indention. Replace
7893 deprecated_print_address_numeric by paddress.
7894 * Makefile.in (exec.o) Add dependency to arch-utils.h.
7896 * valprint.c (val_print_string): Replace
7897 deprecated_print_address_numeric.
7898 * tracepoint.c (trace_mention, scope_info): Likewise.
7899 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
7900 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
7901 (maintenance_check_symtabs): Likewise.
7902 * symfile.c (list_overlays_command): Likewise.
7903 * stack.c (frame_info, print_block_frame_labels): Likewise.
7904 * printcmd.c (print_address, print_address_demangle)
7905 (address_info): Likewise.
7906 * corefile.c (memory_error): Likewise.
7907 * infcmd.c (jump_command): Likewise.
7908 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
7909 (mention, delete_breakpoint): Likewise.
7910 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
7911 * dwarf2read.c (dump_die): Likewise.
7912 * ada-valprint.c (ada_val_print_1): Likewise.
7913 * f-valprint.c (f_val_print): Likewise.
7914 * linux-fork.c (info_forks_command): Likewise.
7915 * m32r-com.c (m32r_load_section, m32r_load)
7916 (m32r_upload_command): Likewise.
7918 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
7920 2008-01-11 Markus Deuling <deuling@de.ibm.com>
7922 * gdbarch.sh (skip_prologue): Add gdbarch
7924 * gdbarch.{c,h}: Regenerate.
7926 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
7927 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7928 * avr-tdep.c (avr_skip_prologue): Likewise.
7929 * cris-tdep.c (cris_skip_prologue): Likewise.
7930 * frv-tdep.c (frv_skip_prologue): Likewise.
7931 * h8300-tdep.c (h8300_skip_prologue): Likewise.
7932 * hppa-tdep.c (hppa_skip_prologue): Likewise.
7933 * i386-tdep.c (i386_skip_prologue): Likewise.
7934 * ia64-tdep.c (ia64_skip_prologue): Likewise.
7935 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
7936 * m32r-tdep.c (m32r_skip_prologue): Likewise.
7937 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
7938 * m68k-tdep.c (m68k_skip_prologue): Likewise.
7939 * m88k-tdep.c (m88k_skip_prologue): Likewise.
7940 * mep-tdep.c (mep_skip_prologue): Likewise.
7941 * mips-tdep.c (mips_skip_prologue): Likewise.
7942 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
7943 * mt-tdep.c (mt_skip_prologue): Likewise.
7944 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
7945 * score-tdep.c (score_skip_prologue): Likewise.
7946 * sh64-tdep.c (sh64_skip_prologue): Likewise.
7947 * sh-tdep.c (sh_skip_prologue): Likewise.
7948 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
7949 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
7950 * spu-tdep.c (spu_skip_prologue): Likewise.
7951 * v850-tdep.c (v850_skip_prologue): Likewise.
7952 * vax-tdep.c (vax_skip_prologue): Likewise.
7953 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
7954 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
7956 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
7957 current_gdbarch by gdbarch.
7958 * m32c-tdep.c (m32c_skip_prologue): Likewise.
7959 * s390-tdep.c (s390_skip_prologue): Likewise.
7961 2008-01-10 Doug Evans <dje@google.com>
7963 * defs.h (struct continuation_arg): Fix typo in comment.
7964 * target.c (target_translate_tls_address): Fix comment spelling error.
7966 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
7968 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
7969 (DOUBLEST_SCAN_FORMAT): Likewise.
7970 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
7971 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
7972 * c-exp.y (parse_number): Likewise.
7973 * jv-exp.y (parse_number): Likewise.
7974 * objc-exp.y (parse_number): Likewise.
7975 * p-exp.y (parse_number): Likewise.
7977 2008-01-09 Joel Brobecker <brobecker@adacore.com>
7979 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
7980 (check_typedef): Likewise.
7982 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
7984 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
7985 seen_double_big_d, treat the new H, D, and DD modifiers as length
7988 2008-01-08 Joel Brobecker <brobecker@adacore.com>
7990 * dwarf2read.c (read_enumeration_type): Add comment.
7992 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
7994 * config.in: Regenerate.
7996 2008-01-08 Joel Brobecker <brobecker@adacore.com>
7998 * ada-lang.c (ada_convert_actual): Renames convert_actual.
8000 (ada_convert_actuals): Delete.
8001 * ada-lang.h (ada_convert_actual): Add declaration.
8002 (ada_convert_actuals): Remove declaration.
8003 * infcall.c: #include "ada-lang.h".
8004 (value_arg_coerce): Add new parameter sp. Update function
8005 documetnation. Add handling of Ada function call parameters.
8006 * Makefile.in (infcall.o): Update dependencies.
8008 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
8010 * ada-lang.c (ensure_lval): Fix value lval kind.
8011 (convert_actual): Add handling for arguments passed by reference.
8013 2008-01-08 Doug Evans <dje@google.com>
8015 * dbxread.c (read_dbx_symtab): Fix indentation.
8017 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
8019 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
8020 (valarith.o): Depend on dfp.h.
8021 (valops.o): Likewise.
8022 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
8023 (set_decnumber_context): New function.
8024 (decimal_check_errors): Likewise.
8025 (decimal_from_number): Likewise.
8026 (decimal_to_number): Likewise.
8027 (decimal_from_string): Use set_decnumber_context and
8028 decimal_check_errors.
8029 (decimal_from_integral): New function.
8030 (decimal_from_floating): Likewise.
8031 (decimal_to_double): Likewise.
8032 (promote_decimal): Likewise.
8033 (decimal_binop): Likewise.
8034 (decimal_is_zero): Likewise.
8035 (decimal_compare): Likewise.
8036 (decimal_convert): Likewise.
8037 * dfp.h (decimal_from_integral): New prototype.
8038 (decimal_from_floating): Likewise.
8039 (decimal_to_double): Likewise.
8040 (decimal_binop): Likewise.
8041 (decimal_is_zero): Likewise.
8042 (decimal_compare): Likewise.
8043 (decimal_convert): Likewise.
8044 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
8045 call to value_from_decfloat.
8046 * valarith.c: Include dfp.h.
8047 (value_args_as_decimal): New function.
8048 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
8049 (value_logical_not): Likewise.
8050 (value_equal): Likewise.
8051 (value_less): Likewise.
8052 (value_pos): Likewise.
8053 (value_neg): Formatting fix.
8054 * valops.c: Include dfp.h.
8055 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
8056 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
8057 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
8058 (value_from_decfloat): Remove expect_type argument.
8059 * value.h (value_from_decfloat): Update prototype.
8061 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
8063 Ignore change in name of dynamic linker during
8064 execution on Solaris. This also unbreaks pending breakpoints.
8066 * solist.h (struct target_so_ops): New field same.
8067 * solib-svr4.c (svr4_same): New.
8068 (_initialize_svr4_solib): Register svr4_same.
8069 * solib.c (update_solib_list): Use ops->same, if available.
8071 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
8073 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
8074 when using MS-DOS paths.
8076 2008-01-05 Pedro Alves <pedro@codesourcery.com>
8078 * NEWS: Mention --pid and --core command line behaviour changes.
8080 2008-01-05 Pedro Alves <pedro@codesourcery.com>
8082 * main.c (captured_main): Remove 'count' varible and the
8083 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
8084 --pid options were issued simultaneously. If an explicit pid
8085 option was passed, don't fallback to core file. Detect extra
8086 arguments better in the presence of explicit pid or core
8089 2008-01-05 Joel Brobecker <brobecker@adacore.com>
8091 * ada-lang.c (ada_which_variant_applies): Correctly compute
8092 the value of the discriminant when the variant record is packed.
8094 2008-01-04 Joel Brobecker <brobecker@adacore.com>
8096 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
8097 that are used to differentiate homonyms.
8099 2008-01-04 Jerome Guitton <guitton@adacore.com>
8101 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
8102 when the type is an anonymous pointer type.
8103 (ada_check_typedef): Avoid a seg fault when the type is null.
8104 * ada-typeprint.c (print_array_type): Add support for pointer
8107 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
8109 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
8111 2008-01-04 Joel Brobecker <brobecker@adacore.com>
8113 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
8114 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
8116 2008-01-04 Joel Brobecker <brobecker@adacore.com>
8118 * ada-exp.y (chop_separator): New function.
8119 (write_selectors): Rewrite to re-use chop_separator.
8120 (ada_nget_field_index, get_symbol_field_type): New functions.
8121 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
8124 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
8126 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
8127 of SYMBOL_VALUE when working with function symbols.
8129 2008-01-03 Joel Brobecker <brobecker@adacore.com>
8131 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
8132 expressions. These expressions do not need to be rewriten.
8134 2008-01-03 Joel Brobecker <brobecker@adacore.com>
8136 * dwarf2read.c (read_enumeration_type): Flag type as stub if
8137 the given die is a declaration.
8139 2008-01-03 Joel Brobecker <brobecker@adacore.com>
8141 * ada-lang.c (ada_array_bound_from_type): Make non-static.
8142 Handle properly the case when the index type is an enumerated type.
8143 Do not return the subtype of the bounds type, just return the
8144 bounds type directly - this is not needed and is more consistent
8145 with what we do for arrays when no XA parallel type exists.
8147 2008-01-03 Joel Brobecker <brobecker@adacore.com>
8149 * ada-lang.c (static_unwrap_type): Add forward declaration.
8150 (template_to_static_fixed_type): Fields of dynamic types sometimes
8151 also need to be unwrapped. Take this into account.
8152 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
8153 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
8154 * ada-typeprint.c (ada_print_type): Get the typename from
8155 the original type, not the base type.
8157 2008-01-03 Jerome Guitton <guitton@adacore.com>
8159 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
8160 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
8161 Update calls to ada_to_fixed_type.
8162 (ada_template_to_fixed_record_type_1): Ditto, but without looking
8164 (ada_to_fixed_type): Add check_tag parameter; do not look for
8165 tag if null. When looking for a tag, use a fixed record type.
8166 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
8167 * ada-valprint.c (printable_val_type, ada_value_print): Update
8168 calls to ada_to_fixed_type.
8170 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
8172 * doublest.c (convert_floatformat_to_doublest): Call
8173 floatformat_to_doublest instead of floatformat_to_double and use
8175 (convert_doublest_to_floatformat): Call floatformat_from_doublest
8176 instead of floatformat_from_double and use DOUBLEST variables.
8178 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
8180 * MAINTAINERS (Write After Approval): Add self.
8182 2008-01-03 Joel Brobecker <brobecker@adacore.com>
8184 * symfile.c (set_initial_language): Make non-static.
8185 * symfile.h (set_initial_language): Add declaration.
8186 * language.c: #include "symfile.h".
8187 (set_language): Call set_initial_language if the frame language
8188 could not be determined.
8190 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
8192 * eval.c (evaluate_subexp_for_address): Provide frame address to
8193 locate_var_value only if it will be needed.
8195 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8197 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
8199 2008-01-02 Joel Brobecker <brobecker@adacore.com>
8201 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
8202 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
8203 This is needed to make sure that any other treatment applied
8204 to the resulting value does not fail for spurious reason,
8205 such as trying to take the address of this value.
8207 2008-01-02 Joel Brobecker <brobecker@adacore.com>
8209 * ada-lang.c (ada_value_equal): Dereference reference types when
8212 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
8214 Updated copyright notices for most files.
8216 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
8218 * win32-nat.c (psapi_module_handle): Remove static.
8219 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
8220 return first module found if base_address is zero. Don't initialize
8221 psapi function pointers here. Convert to cygwin paths when
8223 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
8224 executable name. Use get_module_name when that fails or when
8226 (_initialize_psapi): New function. Initialize psapi stuff before it is
8227 needed or issue a warning if it is not found. Move psapi_module_handle
8230 2008-01-01 Joel Brobecker <brobecker@adacore.com>
8232 * ada-lang.c (ada_remove_trailing_digits): New function.
8233 (ada_remove_po_subprogram_suffix): New function.
8234 (ada_decode): Improve. Move the description of the algorithm
8235 directly inside the code, instead of in the function global
8238 2008-01-01 Joel Brobecker <brobecker@adacore.com>
8240 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
8241 and always print the dereferenced value.
8243 2008-01-01 Joel Brobecker <brobecker@adacore.com>
8245 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
8246 of the case where the first argument is a reference.
8247 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
8249 2008-01-01 Joel Brobecker <brobecker@adacore.com>
8251 Implement support for Ada interface types.
8253 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
8254 (ada_is_ignored_field): Ignore fields that are a dispatch table
8257 2008-01-01 Joel Brobecker <brobecker@adacore.com>
8259 * top.c (print_gdb_version): Update copyright year.
8261 2008-01-01 Joel Brobecker <brobecker@adacore.com>
8263 * ChangeLog-2007: New ChangeLog rotation.
8264 * ChangeLog: Reset for 2008.
8265 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
8268 For older changes see ChangeLog-2007.
8274 version-control: never