1 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
3 * expression.h (struct expression): New member GDBARCH.
4 * parse.c (parse_exp_in_context): Initialize it.
5 * parser-def.h (parse_gdbarch, parse_language): New macros.
7 * ada-exp.y (parse_type): New macro.
8 Replace builtin_type_ macros by using parse_type.
9 Replace current_language by parse_language.
10 * ada-lex.l (processInt): Replace current_gdbarch by parse_gdbarch.
11 Replace builtin_type_ macros.
13 * c-exp.y (parse_type): New macro.
14 Replace builtin_type_ macros by using parse_type.
15 (parse_number): Replace current_gdbarch by parse_gdbarch.
16 (yylex): Replace current_language by parse_language.
18 * f-exp.y (parse_type, parse_f_type): New macros.
19 Replace builtin_type_ macros by using parse_{f_,}type.
20 (parse_number): Replace current_gdbarch by parse_gdbarch.
21 (yylex): Replace current_language by parse_language.
23 * jv-exp.y (parse_type): New macro.
24 (parse_number): Replace builtin_type_ macros by using parse_type.
26 * m2-exp.y (parse_type, parse_m2_type): New macros.
27 Replace builtin_type_ macros by using parse_{m2_,}type.
29 * objc-exp.y (parse_type): New macro.
30 Replace builtin_type_ macros by using parse_type.
31 (parse_number): Replace current_gdbarch by parse_gdbarch.
32 (yylex): Replace current_language by parse_language.
34 * p-exp.y (parse_type): New macro.
35 Replace builtin_type_ macros by using parse_type.
36 (parse_number): Replace current_gdbarch by parse_gdbarch.
37 (yylex): Replace current_language by parse_language.
39 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
41 * parser-defs.h (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE
42 and DATA_SYMBOL_TYPE arguments.
43 * parse.c (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE and
44 DATA_SYMBOL_TYPE arguments. Replace use of builtin_type_CORE_ADDR.
45 (write_dollar_variable): Update call.
47 * ada-exp.y (write_var_or_type): Update call.
52 * objc-exp.y: Likewise.
55 2008-09-10 Joel Brobecker <brobecker@adacore.com>
57 * ada-lang.c (ada_parent_type): Add handling of the case where
58 the _parent field is a pointer and/or has a parallel XVS type.
59 (ada_evaluate_subexp) [OP_VAR_VALUE]: When doing an
60 EVAL_AVOID_SIDE_EFFECTS evaluation of a tagged type, return
61 the type of the tag instead of doing forcing an EVAL_NORMAL
62 expression evaluation.
64 2008-09-10 Paul N. Hilfinger <hilfinger@adacore.com>
65 Joel Brobecker <brobecker@adacore.com>
67 * ada-lang.c (is_digits_suffix): New function.
68 (is_dot_digits_suffix): Remove.
69 (ada_lookup_symbol_list): Remove digits suffix from minimal symbols
70 before looking up in symbol table, and do not use wild matches on them.
71 (wild_match): Reimplement for speed and to allow matching of operator
73 (is_valid_name_for_wild_match): Return zero for names that do not
74 follow the GNAT encoding.
76 (is_name_suffix): Fix typo in comment.
77 (to_record_with_fixed_variant_part): Ditto.
79 2008-09-10 Pedro Alves <pedro@codesourcery.com>
81 * Makefile.in (gnu-nat.o): New rule.
83 2008-09-10 Joel Brobecker <brobecker@adacore.com>
85 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Use
86 archecture-neutral builtin_type_int32 instead of builtin_type_int.
88 2008-09-10 Joel Brobecker <brobecker@adacore.com>
90 * ada-lang.c (ada_evaluate_subexp) [BINOP_ADD, BINOP_SUB]:
91 Add special handling for pointer types.
93 2008-09-10 Pedro Alves <pedro@codesourcery.com>
95 * inf-ttrace.c (inf_ttrace_follow_fork): Declare locals at the
97 (inf_ttrace_resume, inf_ttrace_wait): Typos.
99 2008-09-10 Ulrich Weigand <uweigand@de.ibm.com>
101 * ada-lang.c (ada_array_length): Use builtin_type_int32 instead
103 (ada_evaluate_subexp) [UNOP_IN_RANGE]: Use operand range type
104 instead of builtin_type_int.
106 2008-09-09 Pedro Alves <pedro@codesourcery.com>
108 * infrun.c (normal_stop): Run hook-stop last.
110 2008-09-09 Pedro Alves <pedro@codesourcery.com>
112 * gnu-nat.c (gnu_pid_to_exec_file): Delete.
113 (init_gnu_ops): Don't register it.
115 2008-09-09 Pedro Alves <pedro@codesourcery.com>
117 * gnu-nat.c (gnu_attach): Push target before fetching the list of
120 2008-09-08 Daniel Jacobowitz <dan@codesourcery.com>
122 * valops.c (value_cast_structs): Return NULL for failure.
123 (value_cast): Handle NULL from value_cast_structs.
124 (value_fetch_lazy): Call check_typedef. Remove unused variable.
126 2008-09-08 Pedro Alves <pedro@codesourcery.com>
128 * inferior.h (context_switch_to): Delete.
129 * infrun.c (context_switch): Don't save and load infrun state.
130 (context_switch_to): Delete.
132 * infcmd.c (proceed_thread_callback): Replace context_switch_to
133 calls by switch_to_thread calls.
135 * gdbthread.h (save_infrun_state, load_infrun_state): Delete.
136 * thread.c (main_thread_state, main_thread_executing): Delete.
137 (inferior_thread): Delete references to them.
138 (add_thread_silent): Fix case where we're adding a thread with the
139 same ptid as an exited thread. Remove references to
141 (load_infrun_state, save_infrun_state): Delete.
142 (thread_alive, is_thread_state, any_running, is_executing)
143 (set_executing): Remove the special handling for targets that
144 don't register any thread.
145 (restore_current_thread, thread_apply_all_command)
146 (do_captured_thread_select): Unconditionally call
149 * mi/mi-main.c (mi_cmd_execute): Check for exited threads.
150 Call switch_to_thread instead of context_switch_to.
152 2008-09-08 Pedro Alves <pedro@codesourcery.com>
154 Remove global continuations in favour of a per-thread
157 * gdbthread.h (struct thread_info): Add comments around
158 continuations and intermediate_continuations.
159 (save_infrun_state, load_infrun_state): Delete continuations and
160 intermediate_continuations arguments.
161 * infrun.c (context_switch): Don't context-switch the continuations.
162 * thread.c (clear_thread_inferior_resources): Discard all
163 continuations of the thread we're clearing.
164 (save_infrun_state, load_infrun_state): Delete continuations and
165 intermediate_continuations arguments, and the code referencing
167 * utils.c: Include "gdbthread.h".
168 (cmd_continuation, intermediate_continuation): Delete.
169 (add_continuation): Add thread_info* argument. Install the
171 (restore_thread_cleanup): New.
172 (do_all_continuations_ptid, do_all_continuations_thread_callback):
174 (do_all_continuations): Reimplement.
175 (discard_all_continuations_thread_callback,
176 discard_all_continuations_thread): New.
177 (discard_all_continuations): Reimplement.
178 (add_intermediate_continuation): Add thread_info* argument.
179 Install the continuation on it.
180 (do_all_intermediate_continuations_thread_callback)
181 (do_all_intermediate_continuations_thread): New.
182 (do_all_intermediate_continuations): Reimplement.
183 (discard_all_intermediate_continuations_thread_callback): New.
184 (discard_all_intermediate_continuations_thread): New.
185 (discard_all_intermediate_continuations): Reimplement.
187 * breakpoint.c (until_break_command): Install the continuation on
190 * defs.h (cmd_continuation, intermediate_continuation): Delete.
191 (struct thread_info): Forward declare.
192 (add_continuation, add_intermediate_continuation): Add
193 thread_info* argument.
194 (do_all_continuations_thread, discard_all_continuations_thread)
195 (do_all_intermediate_continuations_thread)
196 (discard_all_intermediate_continuations_thread): Declare.
197 * inf-loop.c (inferior_event_handler): In non-stop only run
198 continuations on the thread that stopped. In all-stop, run
199 continuations on all threads.
200 * infcmd.c (step_once, finish_command): Adjust.
202 2008-09-08 Pedro Alves <pedro@codesourcery.com>
204 Remove the global stop_step in favour of a per-thread
207 * inferior.h (stop_step): Delete.
209 * gdbthread.h (struct thread_info): Add comments to stop_step.
210 (save_infrun_state, load_infrun_state): Remove stop_step argument.
211 * thread.c (load_infrun_state, save_infrun_state): Remove
212 stop_step argument, and references to it.
214 * infrun.c (clear_proceed_status): Clear stop_step.
215 (fetch_inferior_event): Adjust.
216 (context_switch): Don't context-switch stop_step.
217 (handle_inferior_event): Adjust.
218 (normal_stop): Adjust.
219 (save_inferior_status, restore_inferior_status): Adjust.
221 * infcmd.c (stop_step): Delete.
222 (step_1, step_1_continuation, step_once, until_next_command):
225 2008-09-08 Pedro Alves <pedro@codesourcery.com>
227 Remove the global step_multi in favour of a per-thread
230 * inferior.h (step_multi): Delete.
231 * gdbthread.h (struct thread_info): Add comments around
233 (save_infrun_state, load_infrun_state): Remove step_multi
235 * thread.c (load_infrun_state, save_infrun_state): Remove
236 step_multi argument, and references to it.
237 * infcmd.c (step_multi): Delete.
239 (step_1_continuation, until_next_command): Adjust.
240 * infrun.c (fetch_inferior_event): Adjust.
241 (context_switch): Don't context-switch step_multi.
242 (print_stop_reason, normal_stop): Adjust.
244 2008-09-08 Pedro Alves <pedro@codesourcery.com>
246 Remove the global stop_signal in favour of a per-thread
249 * inferior.h (stop_signal): Delete.
250 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
251 stop_signal argument.
252 * thread.c (load_infrun_state, save_infrun_state): Remove
253 stop_signal argument. Don't reference it.
255 * infcmd.c (stop_signal): Delete.
256 (program_info): Adjust.
257 * infrun.c (resume): Clear stop_signal.
258 (proceed): Adjust. Pass the last stop_signal to the thread we're
260 (context_switch): Don't context-switch stop_signal.
261 (handle_inferior_event, keep_going): Adjust.
262 (save_inferior_status, restore_inferior_status): Adjust.
264 * fbsd-nat.c: Include "gdbthread.h".
265 (find_signalled_thread, find_stop_signal): New.
266 (fbsd_make_corefile_notes): Use it.
267 * fork-child.c (startup_inferior): Adjust.
269 * linux-nat.c (get_pending_status): Adjust.
270 (linux_nat_do_thread_registers): Adjust.
271 (find_signalled_thread, find_stop_signal): New.
272 (linux_nat_do_thread_registers): Add stop_signal parameter.
273 (struct linux_nat_corefile_thread_data): Add stop_signal member.
274 (linux_nat_corefile_thread_callback): Pass stop_signal.
275 (linux_nat_do_registers): Delete.
276 (linux_nat_make_corefile_notes): Use find_stop_signal. Assume
277 there's always a thread.
279 * procfs.c (find_signalled_thread, find_stop_signal): New.
280 (find_stop_signal): New.
281 (procfs_do_thread_registers): Add stop_signal parameter.
282 (struct procfs_corefile_thread_data): Add stop_signal member.
283 (procfs_corefile_thread_callback): Pass args->stop_signal.
284 (procfs_make_note_section): Find the last stop_signal.
286 * solib-irix.c: Include gdbthread.h.
287 (irix_solib_create_inferior_hook): Adjust.
288 * solib-osf.c: Include gdbthread.h.
289 (osf_solib_create_inferior_hook): Adjust.
290 * solib-sunos.c: Include gdbthread.h.
291 (sunos_solib_create_inferior_hook): Adjust.
292 * solib-svr4.c: Include gdbthread.h.
293 (svr4_solib_create_inferior_hook): Adjust.
295 * win32-nat.c (do_initial_win32_stuff): Adjust.
297 2008-09-08 Pedro Alves <pedro@codesourcery.com>
299 * gdbthread.h (struct thread_info): Add comments around
301 (save_infrun_state, load_infrun_state): Remove proceed_to_finish
303 * thread.c (load_infrun_state, save_infrun_state): Delete
304 proceed_to_finish argument and references to it.
306 * infcall.c (call_function_by_hand): Adjust.
307 * infcmd.c (finish_command): Adjust.
308 * infrun.c (proceed_to_finish): Delete.
309 (clear_proceed_status): Adjust.
310 (context_switch): Don't context-switch proceed_to_finish.
311 (normal_stop, save_inferior_status, restore_inferior_status):
314 2008-09-08 Pedro Alves <pedro@codesourcery.com>
316 * inferior.h (stop_bpstat): Delete.
318 * breakpoint.h (bpstat_do_actions): Remove bpstat* argument.
320 * breakpoint.c (bpstat_do_actions): Rename to ...
321 (bpstat_do_actions_1): ... this. Make static. Change return type
322 to int. Return true if a breakpoint proceeded.
323 (bpstat_do_actions): New, as wrapper around bpstat_do_actions_1.
324 (delete_breakpoint): Don't reference the global stop_bpstat; it's
327 * gdbthread.h (struct thread_info): Add stop_bpstat.
328 (save_infrun_state, load_infrun_state): Remove stop_bpstat
330 * thread.c (load_infrun_state, save_infrun_state): Remove
331 stop_bpstat argument, and the code referencing it.
333 * infcall.c: Include "gdbthread.h".
334 (call_function_by_hand): Adjust.
335 * exceptions.c: Include "gdbthread.h".
336 (throw_exception): Adjust.
337 * infcmd.c (stop_bpstat): Delete.
338 (continue_command): In all-stop, set the ignore count on the
339 thread that reported the stop. In non-stop, set it on the current
341 (finish_command_continuation): Adjust.
342 (program_info): Adjust.
343 * infrun.c (clear_proceed_status): Adjust.
344 (context_switch): Don't context-switch stop_bpstat.
345 (handle_inferior_event): Adjust.
346 (normal_stop): Adjust.
347 (save_inferior_status, restore_inferior_status): Adjust.
349 * inf-loop.c (inferior_event_handler): Remove parameter to
350 bpstat_do_actions call.
351 * top.c (command_loop): Remove parameter to bpstat_do_actions
352 call. Call it unconditionally.
353 * event-top.c (command_handler): Ditto.
354 * python/python.c (execute_gdb_command): Ditto.
356 2008-09-08 Pedro Alves <pedro@codesourcery.com>
358 * inferior.h (step_over_calls): Delete.
360 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
361 step_over_calls argument.
362 * thread.c (save_infrun_state, load_infrun_state): Remove
363 step_over_calls argument. Adjust.
365 * infcmd.c (step_over_calls): Delete.
367 * infrun.c (clear_proceed_status): Adjust.
368 (context_switch): Don't context-switch step_over_calls.
369 (handle_inferior_event, save_inferior_status)
370 (restore_inferior_status): Adjust.
372 2008-09-08 Pedro Alves <pedro@codesourcery.com>
374 Remove context switching in favour of accessing thread_info fields
377 * infrun.c (stepping_over_breakpoint, step_resume_breakpoint):
379 (struct thread_stepping_state): Delete.
381 (follow_inferior_reset_breakpoints, follow_exec)
382 (resume, clear_proceed_status): Adjust.
384 (proceed, start_remote, init_wait_for_inferior): Adjust.
385 (struct execution_control_state): Add event_thread member.
386 (delete_step_resume_breakpoint_callback)
387 (delete_step_thread_step_resume_breakpoint)
388 (delete_step_thread_step_resume_breakpoint_cleanup)
389 (delete_step_thread_step_resume_breakpoint): New.
390 (wait_for_inferior, init_execution_control_state): Use
391 delete_step_thread_step_resume_breakpoint_cleanup.
392 (wait_for_inferior): Set the event_thread.
393 (fetch_inferior_event): Ditto. Delete the step-resume breakpoint
394 with delete_step_thread_step_resume_breakpoint.
395 (init_thread_stepping_state): Change parameter type to
397 (context_switch): Don't context switch prev_pc,
398 stepping_over_breakpoint, step_resume_breakpoint,
399 step_range_start, step_range_end, step_frame_id,
400 tss->stepping_over_breakpoint,
401 tss->stepping_through_solib_after_catch,
402 tss->stepping_through_solib_catchpoints, tss->current_line, or
404 (adjust_pc_after_break, handle_inferior_event)
405 (currently_stepping, step_into_function)
406 (insert_step_resume_breakpoint_at_sal)
407 (insert_longjmp_resume_breakpoint, keep_going): Adjust.
408 (clear_stepping_state): New.
409 (normal_stop): Adjust.
410 (save_inferior_status, restore_inferior_status): Adjust.
412 * gdbthread.h (struct thread_info): Comments describing the
413 members moved here. Add step_after_step_resume_breakpoint.
414 (delete_step_resume_breakpoint): Add thread_info argument.
415 (save_infrun_state, load_infrun_state): Remove prev_pc,
416 trap_expected, step_resume_breakpoint, step_range_start,
417 step_range_end, step_frame_id, another_trap,
418 stepping_through_solib_after_catch,
419 stepping_through_solib_catchpoints, current_line and
420 current_symtab function arguments.
421 (inferior_thread): Declare.
423 * thread.c (inferior_thread): New.
424 (delete_step_resume_breakpoint): Add a thread_info parameter and
426 (load_infrun_state, save_infrun_state): Remove prev_pc,
427 trap_expected, step_resume_breakpoint, step_range_start,
428 step_range_end, step_frame_id, stepping_over_breakpoint,
429 stepping_through_solib_after_catch,
430 stepping_through_solib_catchpoints, current_line and
431 current_symtab args. Remove code referencing them.
433 * infcmd.c (step_range_start, step_range_end, step_frame_id):
435 (step_1, step_once, until_next_command): Adjust.
437 * inferior.h (step_range_start, step_range_end, step_frame_id):
440 * linux-nat.c (linux_child_follow_fork): If following the child,
441 move the step state to it. Adjust.
442 * inf-ptrace.c (inf_ptrace_follow_fork): Ditto.
443 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
445 2008-09-08 Pedro Alves <pedro@codesourcery.com>
447 * bsd-uthread.c (bsd_uthread_find_new_threads): Claim the main
450 2008-09-08 Pedro Alves <pedro@codesourcery.com>
452 * corelow.c (add_to_thread_list): If this is the first time we
453 hear about thread info, update inferior_ptid.
454 (core_open): Clear the thread list and set inferior_ptid before
455 acknowledging a new inferior. Find threads before fetching
456 register info. Give an upper target layer a chance to find and
457 claim new threads. Print core generation and stop signal info
458 after finding new threads.
459 (get_core_register_section): Look at the lwp member of
460 inferior_ptid for detecting if we have threads info, instead of
462 (core_pid_to_str): New.
463 (init_core_ops): Register core_pid_to_str.
465 2008-09-08 Pedro Alves <pedro@codesourcery.com>
467 * spu-linux-nat.c (spu_child_post_startup_inferior)
468 (spu_child_post_attach): Don't add the main thread here.
470 2008-09-08 Pedro Alves <pedro@codesourcery.com>
472 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
474 * gnu-nat.c (inf_validate_procs): If this is the first time we're
475 seeing a thread id, extend the main thread's ptid. If we still
476 have pending execs, don't be verbose about new threads.
477 (gnu_wait, gnu_resume, gnu_attach, gnu_thread_alive)
478 (gnu_pid_to_str, cur_thread, sig_thread_cmd): Adjust.
479 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers):
482 2008-09-08 Pedro Alves <pedro@codesourcery.com>
484 * procfs.c (to_attach): Create a procinfo for the current lwp.
485 Add it to gdb's thread list.
486 (procfs_fetch_registers, procfs_store_registers): Assume there's
488 (procfs_wait): Don't add the main thread here.
489 (procfs_init_inferior): Create a procinfo for the main lwp here.
490 Change main thread's ptid with thread_change_ptid.
491 (procfs_notice_thread): Check for exited threads.
492 (procfs_corefile_thread_callback): Remove check for the main
494 (procfs_make_note_section): Assume there is always a thread.
496 * sol-thread.c (sol_thread_attach): Clear sol_thread_active before
497 attaching. Change the main thread ptid with thread_change_ptid.
498 (sol_thread_detach): Clear sol_thread_active.
499 (sol_thread_wait): Check for exited threads.
500 (sol_thread_create_inferior): Clear sol_thread_active before
501 creating a new inferior. Change the main thread ptid with
503 (sol_thread_mourn_inferior): Clear sol_thread_active.
504 (sol_find_new_threads_callback): Check for exited threads.
506 2008-09-08 Pedro Alves <pedro@codesourcery.com>
508 * inf-ttrace.c (inf_ttrace_wait): On TTEVT_LWP_CREATE and
509 LWP_TERMINATE, resume the caller thread. On TTEVT_LWP_CREATE,
510 TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE, don't stop the whole
511 process, and return TARGET_WAITKIND_IGNORE.
513 2008-09-08 Pedro Alves <pedro@codesourcery.com>
515 * inf-ttrace.c: Include <signal.h>
516 (inf_ttrace_delete_dead_threads_callback): New.
517 (inf_ttrace_resume_lwp): New.
518 (inf_ttrace_resume_callback, inf_ttrace_resume): Rewrite. Don't
519 delete dying threads until they are really dead.
520 (inf_ttrace_wait): After stopping the whole process, delete any
521 dying thread that is really dead by now.
522 (inf_ttrace_thread_alive): Return 1.
523 (inf_ttrace_extra_thread_info): New.
524 (inf_ttrace_target): Register inf_ttrace_extra_thread_info.
526 2008-09-08 Pedro Alves <pedro@codesourcery.com>
528 * inf-ttrace.c (inf_ttrace_follow_fork): Register the main thread
530 (inf_ttrace_attach): Add the main thread.
531 (inf_ttrace_resume_callback): Check for exited threads. Adjust
533 (inf_ttrace_wait): Decorate the main thread's ptid with lwp info
534 using thread_change_ptid, and set its private data. Don't add the
536 (inf_ttrace_pid_to_str): Adjust.
538 2008-09-08 Pedro Alves <pedro@codesourcery.com>
540 * bsd-uthread.c (bsd_uthread_wait): Decorate the main thread with
541 thread_change_ptid. Check for exited threads.
542 (bsd_uthread_find_new_threads): Check for exited threads.
544 2008-09-08 Pedro Alves <pedro@codesourcery.com>
546 * inf-ptrace.c: Include "gdbthread.h".
547 (inf_ptrace_attach): Add the main thread here.
548 * linux-nat.c (linux_nat_attach): Don't add the main thread here.
549 Decorate the main thread id with the lwp id.
551 2008-09-08 Pedro Alves <pedro@codesourcery.com>
553 * linux-nat.c (linux_nat_wait): Update inferior_ptid's ptid with
554 thread_change_ptid. Don't add or mark the main thread as running
556 * fork-child.c (fork_inferior): Add the main thread here.
558 2008-09-08 Jerome Guitton <guitton@adacore.com>
560 * rs6000-tdep.c (rs6000_fetch_instruction)
561 (rs6000_skip_stack_check): New functions.
562 (skip_prologue): Skip stack check sequence.
564 2008-09-08 David Daney <ddaney@avtrex.com>
566 * dummy-frame.h (frame.h): Include it.
567 (struct frame_id): Remove declaration.
569 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
571 * spu-tdep.c (spu_push_dummy_code): New function.
572 (spu_gdbarch_init): Install it.
574 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
576 * gdbarch.sh (gdbarch_dump): Use core_addr_to_string_nz
578 * gdbarch.c: Regenerate.
580 * target.c (target_xfer_partial, debug_print_register): Use
581 core_addr_to_string_nz instead of paddr_nz.
583 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
585 * rs6000-tdep.c (rs6000_gdbarch_init): Setup displaced stepping
586 *before* calling gdbarch_init_osabi.
587 (rs6000_aix_init_osabi): Disable displaced stepping.
589 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
591 * target.c (update_current_target): Do not inherit to_open
593 (pop_target): Call target_close on target_stack instead
595 (pop_all_targets_above): Likewise.
597 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
599 * gnu-v3-abi.c (gnuv3_decode_method_ptr): New function.
600 (gnuv3_print_method_ptr): Use it.
601 (gnuv3_method_ptr_to_value): Likewise.
603 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
605 * nto-tdep.h (struct nto_target_ops): Add gdbarch parameter to
606 register_area callback function.
607 * i386-nto-tdep.c (i386nto_register_area): Add gdbarch parameter.
608 Use it instead of current_gdbarch.
609 * nto-procfs.c (procfs_store_registers): Update call.
611 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
613 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Use
614 regcache architecture instead of current_gdbarch.
616 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
618 * mep-tdep.c (struct mep_prologue): Add gdbarch member.
619 (check_for_saved): Use it instead of current_gdbarch.
620 (is_arg_spill): Add gdbarch paramter. Use it instead
622 (mep_analyze_prologue): Add gdbarch parameter. Pass it
623 to is_arg_spill and check_for_saved.
624 (mep_skip_prologue, mep_analyze_frame_prologue): Update calls.
626 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
628 * hppa-tdep.c (internalize_unwinds): Use objfile architecture
629 instead of current_gdbarch.
631 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
633 * m68k-tdep.h (m68kbsd_fpreg_offset): Add gdbarch parameter.
634 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Add gdbarch paramter.
635 Use it instead of current_gdbarch.
636 (m68kbsd_supply_fpregset): Update call.
637 * m68kbsd-nat.c (m68kbsd_supply_fpregset): Likewise.
638 (m68kbsd_collect_fpregset): Likewise.
640 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
642 * cris-tdep.c (cris_version, cris_mode): Remove.
643 (crisv32_single_step_through_delay): Use tdep->cris_mode.
644 (cris_breakpoint_from_pc): Likewise.
645 (cris_frame_unwind_cache): Use tdep->cris_version.
646 (crisv32_scan_prologue): Likewise.
647 (cris_spec_reg_applicable): Add gdbarch argument.
648 Use tdep->cris_version.
649 (cris_register_size, cris_special_register_name): Update calls.
650 (cris_special_register_name): Add gdbarch argument.
651 (cris_register_name, crisv32_register_name): Update calls.
653 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
655 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Use info->arch
656 instead of current_gdbarch.
658 * sh64-tdep.c (gdb_print_insn_sh64): Remove.
659 (sh64_gdbarch_init): Install print_insn_sh64 directly.
660 * sh-tdep.c (gdb_print_insn_sh): Remove.
661 (sh_gdbarch_init): Install print_insn_sh directly.
663 * mips-tdep.c (gdb_print_insn_mips): Do not check mips_abi
664 from current_gdbarch.
665 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): New functions.
666 (mips_gdbarch_init): Install them instead of gdb_print_insn_mips
667 depending on mips_abi.
669 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
671 * gdbarch.sh (addr_bits_remove): Change type to 'm'.
672 (smash_text_address): Likewise.
673 * gdbarch.c, gdbarch.h: Regenerate.
675 * arch-utils.c (core_addr_identity): Add gdbarch parameter.
676 * arch-utils.h (core_addr_identity): Likewise.
677 * arm-tdep.c (arm_addr_bits_remove): Likewise.
678 (arm_smash_text_address): Likewise.
679 * hppa-tdep.c (hppa_smash_text_address): Likewise.
680 * m88k-tdep.c (m88k_addr_bits_remove): Likewise.
681 * s390-tdep.c (s390_addr_bits_remove): Likewise.
683 * mips-tdep.c (mips_addr_bits_remove): Add gdbarch parameter.
684 Use it instead of current_gdbarch.
686 * arm-tdep.c (arm_prologue_prev_register, arm_unwind_pc,
687 arm_dwarf2_prev_register): Update calls.
688 * m88k-tdep.c (m88k_unwind_pc): Update call.
690 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
692 * dwarf2expr.h (dwarf2_read_address): Add gdbarch argument.
693 * dwarf2expr.c (dwarf2_read_address): Add gdbarch argument.
694 Call gdbarch_integer_to_address directly instead of converting
695 to value and back. Update comment.
696 (execute_stack_op): Update call site.
697 * dwarf2loc.c (find_location_expression): Likewise.
698 (locexpr_describe_location): Update
700 * dwarf2expr.h (struct dwarf_expr_context): Add gdbarch member.
701 * dwarf2-frame.c (execute_stack_op): Initialize ctx->gdbarch.
702 * dwarf2loc. (dwarf2_evaluate_loc_desc): Likewise.
703 (dwarf2_loc_desc_needs_frame): Likewise.
705 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
707 * breakpoint.h (struct bp_location): Change type of section
708 member to "struct obj_section *".
709 * tracepoint.h (struct tracepoint): Likewise.
710 * symtab.h (struct general_symbol_info): Replace bfd_section
711 member with obj_section.
712 (struct symtab_and_line): Change type of section member to
713 "struct obj_section *".
714 (SYMBOL_BFD_SECTION): Remove macro, replace by ...
715 (SYMBOL_OBJ_SECTION): ... this.
717 * minsym.c (prim_record_minimal_symbol_and_info): Record symbol
718 section as obj_section instead of bfd_section.
720 * ada-lang.c (ada_decode_symbol): Use gsymbol->obj_section
721 directly instead of looking of obj_section from bfd_section.
723 * objfiles.h (find_pc_sect_section): Remove.
724 * objfiles.c (find_pc_sect_section): Remove.
725 (find_pc_section): Inline find_pc_sect_section code.
727 * symfile.h (find_pc_overlay): Return struct obj_section *.
728 (find_pc_mapped_section): Likewise.
729 (section_is_overlay, section_is_mapped): Change type of section
730 argument to struct obj_section *.
731 (pc_in_mapped_range, pc_in_unmapped_range): Likewise.
732 (overlay_mapped_address, overlay_unmapped_address): Likewise.
733 (symbol_overlayed_address): Likewise.
734 * symtab.h (symbol_overlayed_address): Likewise.
735 * symfile.c (overlay_is_mapped): Remove.
736 (section_is_mapped): Inline overlay_is_mapped code. Update.
737 (overlay_invalidate_all): Update.
738 (section_is_overlay): Change section argument to type
739 "struct obj_section *". Use bfd_ methods.
740 (pc_in_unmapped_range): Likewise. Handle relocated sections.
741 (pc_in_mapped_range): Likewise. Handle relocated sections.
742 (sections_overlap): Likewise.
743 (overlay_unmapped_address): Likewise.
744 (overlay_mapped_address): Likewise.
745 (symbol_overlayed_address): Likewise.
746 (find_pc_overlay): Return struct obj_section *.
747 (find_pc_mapped_section): Likewise.
748 (list_overlays_command): Update.
749 (map_overlay_command, unmap_overlay_command): Update.
750 (simple_overlay_update): Update.
752 * block.h (blockvector_for_pc_sect): Change section argument
753 to type "struct obj_section *".
754 (block_for_pc_sect): Likewise.
755 * block.c (blockvector_for_pc_sect): Change section argument
756 to type "struct obj_section *".
757 (block_for_pc_sect): Likewise.
758 * symtab.h (find_pc_sect_function, find_pc_sect_psymtab,
759 find_pc_sect_symtab, find_pc_sect_psymbol, find_pc_sect_line,
760 lookup_minimal_symbol_by_pc_section, find_function_start_pc): Likewise.
761 (matching_bfd_sections): Rename to ...
762 (matching_obj_sections): ... this. Update argument types.
763 * blockframe.c (find_pc_sect_function): Likewise.
764 * breakpoint.c (describe_other_breakpoints): Likewise.
765 (breakpoint_has_pc, check_duplicates_for): Likewise.
766 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
767 (lookup_minimal_symbol_by_pc_section): Likewise.
768 * symtab.c (find_pc_sect_psymtab_closer): Likewise.
769 (find_pc_sect_psymtab, find_pc_sect_psymbol, find_pc_sect_symtab,
770 find_pc_sect_line, find_function_start_pc): Likewise.
771 (matching_bfd_sections): Rename to ...
772 (matching_obj_sections): ... this. Update argument types.
774 * blockframe.c (find_pc_partial_function): Update to section
775 type changes. No longer call find_pc_sect_section.
776 (cache_pc_function_section): Change to type "struct obj_section *".
777 * breakpoint.c (resolve_sal_pc): Update to section type changes.
778 * exec.c (xfer_memory): Likewise.
779 * findvar.c (read_var_value): Likewise.
780 * infcmd.c (jump_command): Likewise.
781 * linespec.c (minsym_found): Likewise.
782 * maint.c (maintenance_translate_address): Likewise.
783 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
784 (lookup_solib_trampoline_symbol_by_pc): Likewise.
785 * parse.c (write_exp_msymbol): Likewise.
786 * printcmd.c (build_address_symbolic): Likewise.
787 (address_info, sym_info): Likewise.
788 * symmisc.c (dump_msymbols, print_symbol): Likewise.
789 * symtab.c (fixup_section): Likewise.
790 (fixup_symbol_section, fixup_psymbol_section): Likewise.
791 (find_pc_line, find_function_start_sal): Likewise.
792 * target.c (memory_xfer_partial): Likewise.
793 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline): Likewise.
794 * spu-tdep.c (spu_overlay_update): Likewise.
796 2008-09-04 Doug Evans <dje@google.com>
798 * defs.h (plongest,pulongest): Renamed from paddr_u,paddr_d.
799 Change argument of pulongest from CORE_ADDR to ULONGEST.
801 * utils.c (plongest): Renamed from paddr_d.
802 (pulongest): Renamed from paddr_u, change arg type to ULONGEST.
803 * remote-mips.c (send_srec): Use paddr_nz instead of paddr_u in
804 `CORE_ADDR addr' arg of error message.
806 2008-09-03 Angela Marie Thomas <angela@releasedominatrix.com>
808 * ser-tcp.c (ser_tcp_send_break): New function.
809 (_initialize_ser_tcp): Use ser_tcp_send_break.
810 * ser-tcp.h (ser_tcp_send_break): New prototype.
812 2008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
814 * spu-tdep.c (spu_push_dummy_call): Update all stack pointer slots
815 when allocating stack frame for inferior call.
817 2008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
819 * spu-tdep.c (spu_frame_unwind_cache): Do not attempt to unwind
820 SP or return address if we failed to find a valid frame.
822 2008-09-03 Aleksandar Ristovski <aristovski@qnx.com>
824 * breakpoint.c (breakpoint_init_inferior): Mark as not inserted only
825 non-permanent breakpoints.
826 (bpstat_stop_status): Change enable_state to bp_disabled only for
827 non-permanent breakpoints.
828 (bp_loc_is_permanent): New function.
829 (create_breakpoint): Check if the location points to a permanent
830 breakpoint and if it does, make breakpoint permanent.
831 (update_breakpoint_locations): Make sure new locations of permanent
832 breakpoints are properly initialized.
833 * i386-tdep.c (i386_skip_permanent_breakpoint): New function.
834 (i386_gdbarch_init): Set gdbarch_skip_permanent_breakpoint.
836 2008-09-02 Pedro Alves <pedro@codesourcery.com>
838 * breakpoint.c (insert_breakpoints, update_global_location_list):
839 Check breakpoints_always_inserted_mode instead of
840 always_inserted_mode directly.
842 2008-09-02 Andreas Schwab <schwab@suse.de>
844 * ia64-tdep.c (ia64_get_dyn_info_list): Use obj_section_addr.
846 2008-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
848 Stay compatible after the GCC PR fortran/29635 fix.
849 * dwarf2read.c (process_die <DW_TAG_imported_module>)
850 (process_die <DW_TAG_imported_module>): Do not assert anything about
851 these unsupported tags.
853 2008-08-29 Tom Tromey <tromey@redhat.com>
855 * maint.c (_initialize_maint_cmds): Fix typo.
857 2008-08-29 Tom Tromey <tromey@redhat.com>
859 * dwarf2read.c (dwarf2_build_psymtabs_hard): Copy dirname on
862 2008-08-27 Ulrich Weigand <uweigand@de.ibm.com>
864 * remote.c: Include "gdb_stat.h".
866 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
868 * dummy-frame.h (dummy_frame_pop): Add prototype.
869 * dummy-frame.c: Include "observer.h".
870 (dummy_frame_push): Do not check for stale frames.
871 (dummy_frame_pop): New function.
872 (cleanup_dummy_frames): New function.
873 (_initialize_dummy_frame): Install it as inferior_created observer.
875 * frame.h (struct frame_id): Update comments.
876 (frame_id_inner): Remove prototype.
877 * frame.c (frame_id_inner): Make static. Add comments.
878 (frame_find_by_id): Update frame_id_inner safety net check to avoid
879 false positives for targets using non-contiguous stack ranges.
880 (get_prev_frame_1): Update frame_id_inner safety net check.
881 (frame_pop): Call dummy_frame_pop when popping a dummy frame.
883 * stack.c (return_command): Directly pop the selected frame.
884 * infrun.c (handle_inferior_event): Remove dead code.
885 * i386-tdep.c (i386_push_dummy_call): Update comment.
887 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
889 * breakpoint.c (remove_breakpoint): Do not fail if unable to remove
890 breakpoint from shared library.
892 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
894 * solib-svr4.c (read_program_header): New function.
895 (scan_dyntag_auxv): New function.
896 (elf_locate_base): Use it if scan_dyntag fails.
897 (find_program_interpreter): New function.
898 (enable_break): Use it instead of .interp section.
900 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
902 * remote.h (remote_filename_p, remote_bfd_open): Add prototypes.
903 * remote.c (remote_bfd_iovec_open, remote_bfd_iovec_close,
904 remote_bfd_iovec_pread, remote_bfd_iovec_stat, remote_filename_p,
905 remote_bfd_open): New functions.
906 (remote_hostio_send_command): Fail safely if remote connection
909 * solist.h (solib_open): Remove prototype.
910 (solib_bfd_open): Add prototype.
911 * solib.c: Include "remote.h".
912 (solib_open): Remove, replace by ...
913 (solib_bfd_open): ... this new function. Handle remote BFDs.
914 (solib_map_sections): Replace solib_open by solib_bfd_open.
915 * solib-frv.c: Include "exceptions.h".
916 (enable_break2): Replace solib_open by solib_bfd_open.
917 * solib-svr4.c: Include "exceptions.h".
918 (enable_break): Replace solib_open by solib_bfd_open.
920 * symfile.c: Include "remote.h".
921 (build_id_verify): Handle remote BFDs.
922 (separate_debug_file_exists): Use BFD to access file. Handle
924 (symfile_bfd_open): Handle remote BFDs.
925 (reread_symbols): Handle remote BFDs.
927 * NEWS: Mention "remote:" argument prefix to "set sysroot".
929 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
931 * gdbarch.sh (target_gdbarch): New global variable.
932 (deprecated_current_gdbarch_select_hack): Set it.
933 * gdbarch.c, gdbarch.h: Regenerate.
935 * arch-utils.c (gdbarch_update_p): Use target_gdbarch instead
937 * target-descriptions.c (target_find_description): Likewise.
938 * arm-tdep.c (arm_update_current_architecture): Likewise.
939 (show_fp_model, arm_show_abi, arm_show_fallback_mode,
940 arm_show_force_mode): Likewise.
941 * mips-tdep.c (show_mask_address, show_mipsfpu_command,
942 show_mips_abi): Likewise.
943 * mep-tdep.c (me_module_register_set, current_me_module): Likewise.
945 * target.c (target_translate_tls_address): Use target_gdbarch
946 instead of current_gdbarch.
947 * remote.c (struct packet_reg): Likewise.
948 (get_remote_arch_state, packet_reg_from_regnum,
949 packet_reg_from_pnum, remote_check_symbols, remote_wait,
950 remote_address_masked, remote_insert_breakpoint,
951 remote_insert_hw_breakpoint, remote_read_description): Likewise.
952 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
953 * remote-mips.c (mips_open, mips_common_breakpoint): Likewise.
954 * cris-tdep.c (cris_can_use_hardware_watchpoint): Likewise.
956 * solib.c (solib_open, solib_map_sections, solib_read_symbols,
957 solib_add, info_sharedlibrary_command, solib_address,
958 solib_create_inferior_hook, in_solib_dynsym_resolve_code,
959 solib_global_lookup): Likewise.
960 * solib-frv.c (enable_break2, frv_relocate_main_executable): Likewise.
961 * solib-irix.c (irix_current_sos, irix_open_symbol_file_object):
963 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
964 * solib-svr4.c (exec_entry_point, enable_break, svr4_free_so,
965 set_solib_svr4_fetch_link_map_offsets, svr4_fetch_link_map_offsets):
967 * nto-tdep.c (nto_find_and_open_solib, nto_init_solib_absolute_prefix,
968 nto_truncate_ptr): Likewise.
969 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Likewise.
971 2008-08-26 Luis Machado <luisgpm@br.ibm.com>
973 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections) New structure.
974 (ppc_linux_vmx_regset_sections): New structure.
975 (ppc_linux_fp_regset_sections): New structure.
976 (ppc_linux_init_abi): Select core-file regset based on target
979 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
981 * target.c (debug_print_register): Use regcache_raw_collect
982 instead of regcache_cooked_read. Only handle raw registers.
984 2008-08-25 Pedro Alves <pedro@codesourcery.com>
986 * cp-name-parser.y: Include config.h before system headers.
988 2008-08-25 Ulrich Weigand <uweigand@de.ibm.com>
990 * m88k-tdep.c: Update for unwinder changes.
992 2008-08-24 Tom Tromey <tromey@redhat.com>
994 * s390-tdep.c (s390_address_class_type_flags): Use
995 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1.
996 (s390_address_class_type_flags_to_name): Likewise.
997 (s390_address_class_name_to_type_flags): Likewise.
999 2008-08-24 Tom Tromey <tromey@redhat.com>
1001 * rs6000-tdep.c (rs6000_builtin_type_vec128): Don't use
1003 * features/rs6000/powerpc-vsx32l.c
1004 (initialize_tdesc_powerpc_vsx32l): Update.
1005 * features/rs6000/powerpc-vsx32.c
1006 (initialize_tdesc_powerpc_vsx32): Update.
1007 * features/rs6000/powerpc-vsx64.c
1008 (initialize_tdesc_powerpc_vsx64): Update.
1009 * features/rs6000/powerpc-vsx64l.c
1010 (initialize_tdesc_powerpc_vsx64l): Update.
1011 * target-descriptions.c (maint_print_c_tdesc_cmd): Emit
1012 TYPE_VECTOR, not TYPE_FLAGS.
1014 2008-08-24 Tom Tromey <tromey@redhat.com>
1016 * xml-tdesc.c (tdesc_end_union): Update.
1017 * stabsread.c (define_symbol): Update.
1018 (read_type): Update.
1019 (read_struct_type): Update.
1020 (read_enum_type): Update.
1021 * spu-tdep.c (spu_builtin_type_vec128): Update.
1022 * sh-tdep.c (sh_push_dummy_call_fpu): Update.
1023 (sh_push_dummy_call_nofpu): Update.
1024 * mdebugread.c (parse_symbol): Update.
1025 (parse_symbol): Update.
1026 (parse_symbol): Update.
1027 (upgrade_type): Update.
1028 * jv-lang.c (java_lookup_class): Update.
1029 * iq2000-tdep.c (iq2000_pointer_to_address): Update.
1030 * i386-tdep.c (i386_mmx_type): Update.
1031 (i386_sse_type): Update.
1032 * gdbtypes.h (enum type_flag_value): New enum.
1033 (enum type_instance_flag_value): New enum.
1034 (TYPE_FLAG_UNSIGNED, TYPE_FLAG_NOSIGN, TYPE_FLAG_STUB,
1035 TYPE_FLAG_TARGET_STUB, TYPE_FLAG_STATIC, TYPE_FLAG_PROTOTYPED,
1036 TYPE_FLAG_INCOMPLETE, TYPE_FLAG_VARARGS, TYPE_FLAG_VECTOR,
1037 TYPE_FLAG_FIXED_INSTANCE, TYPE_FLAG_STUB_SUPPORTED,
1038 TYPE_FLAG_NOTTEXT): Now enum constants.
1039 (TYPE_FLAG_CONST, TYPE_FLAG_VOLATILE, TYPE_FLAG_CODE_SPACE,
1040 TYPE_FLAG_DATA_SPACE, TYPE_FLAG_ADDRESS_CLASS_1,
1041 TYPE_FLAG_ADDRESS_CLASS_2): Remove.
1042 (TYPE_INSTANCE_FLAG_CONST, TYPE_INSTANCE_FLAG_VOLATILE,
1043 TYPE_INSTANCE_FLAG_CODE_SPACE, TYPE_INSTANCE_FLAG_DATA_SPACE,
1044 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1,
1045 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_2): New constants.
1046 (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB, TYPE_TARGET_STUB,
1047 TYPE_STATIC, TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_VARARGS,
1048 TYPE_VECTOR, TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED,
1049 TYPE_NOTTEXT): Update.
1050 (TYPE_FLAG_ADDRESS_CLASS_ALL): Remove.
1051 (TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL): New define.
1052 (TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE,
1053 TYPE_ADDRESS_CLASS_1, TYPE_ADDRESS_CLASS_2,
1054 TYPE_ADDRESS_CLASS_ALL): Update.
1055 (struct main_type) <flags>: Remove.
1056 <flag_unsigned, flag_nosign, flag_stub, flag_target_stub,
1057 flag_static, flag_prototyped, flag_incomplete, flag_varargs,
1058 flag_vector, flag_stub_supported, flag_nottext,
1059 flag_fixed_instance>: New fields.
1060 <nfields, vptr_fieldno>: Move earlier.
1061 (TYPE_FLAGS): Remove.
1062 * gdbtypes.c (make_pointer_type): Update.
1063 (address_space_name_to_int): Update.
1064 (address_space_int_to_name): Update.
1065 (make_type_with_address_space): Update.
1066 (make_cv_type): Update.
1067 (create_range_type): Update.
1068 (get_discrete_bounds): Update.
1069 (create_set_type): Update.
1070 (make_vector_type): Update.
1071 (smash_to_method_type): Update.
1072 (check_typedef): Update.
1073 (check_stub_method): Update.
1074 (init_type): Individually assign flag fields.
1075 (recursive_dump_type): Don't print entire TYPE_FLAGS field. Do
1076 print TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED, and TYPE_NOTTEXT.
1077 (copy_type_recursive): Copy the entire main type. Don't use
1079 * features/rs6000/powerpc-altivec64l.c
1080 (initialize_tdesc_powerpc_altivec64l): Update.
1081 * features/rs6000/powerpc-altivec64.c
1082 (initialize_tdesc_powerpc_altivec64): Update.
1083 * features/rs6000/powerpc-altivec32l.c
1084 (initialize_tdesc_powerpc_altivec32l): Update.
1085 * features/rs6000/powerpc-altivec32.c
1086 (initialize_tdesc_powerpc_altivec32): Update.
1087 * features/rs6000/powerpc-7400.c (initialize_tdesc_powerpc_7400):
1089 * features/arm-with-iwmmxt.c (initialize_tdesc_arm_with_iwmmxt):
1091 * dwarf2read.c (read_structure_type): Update.
1092 (read_enumeration_type): Likewise.
1093 (process_enumeration_scope): Likewise.
1094 (read_tag_pointer_type): Likewise.
1095 (read_subroutine_type): Likewise.
1096 (read_subroutine_type): Likewise.
1097 (read_base_type): Likewise.
1098 * coffread.c (coff_read_enum_type): Update.
1099 * ada-valprint.c (adjust_type_signedness): Update.
1100 * ada-typeprint.c (print_record_field_types): Update.
1101 * ada-lang.c (packed_array_type): Update.
1102 (empty_record): Don't reset TYPE_FLAGS.
1103 (ada_template_to_fixed_record_type_1): Update.
1104 (ada_template_to_fixed_record_type_1): Likewise.
1105 (template_to_static_fixed_type): Likewise.
1106 (to_record_with_fixed_variant_part): Likewise.
1107 (to_fixed_record_type): Likewise.
1108 (to_fixed_array_type): Likewise.
1109 (to_static_fixed_type): Likewise.
1111 2008-08-23 Jim Blandy <jimb@redhat.com>
1114 * symmisc.c (print_symbol_bcache_statistics): Include statistics
1115 for the macro bcache.
1117 2008-08-23 Tom Tromey <tromey@redhat.com>
1119 * macrotab.h (struct macro_definition) <kind>: Shrink to one bit.
1120 (argc): Now 31 bits.
1122 2008-08-22 Tom Tromey <tromey@redhat.com>
1124 * NEWS: Move macro entries back under "New commands".
1126 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
1128 * breakpoint.c (create_overlay_event_breakpoint): Rename to ...
1129 (create_overlay_event_breakpoint_1): ... this. Add OBJFILE parameter.
1130 (create_overlay_event_breakpoint): Loop over all objfiles to install
1131 multiple instances of the overlay event breakpoint if present.
1133 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
1135 * spu-tdep.c (spu_overlay_new_objfile): Only consider SPU objfiles.
1136 (info_spu_event_command): Command only supported on SPU architecture.
1137 (info_spu_signal_command): Likewise.
1138 (info_spu_mailbox_command): Likewise.
1139 (info_spu_dma_command): Likewise.
1140 (info_spu_proxydma_command): Likewise.
1142 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
1144 * infrun.c (adjust_pc_after_break): Do not call get_thread_regcache
1145 if the thread has already exited.
1147 2008-08-22 Pedro Alves <pedro@codesourcery.com>
1149 * infrun.c (proceed): Move back setting previous_inferior_ptid
1151 (wait_for_inferior): ... to here.
1152 (fetch_inferior_event): ... and here.
1154 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
1156 * gdbarch.sh: Include "regcache.h" into gdbarch.c.
1157 (deprecated_current_gdbarch_select_hack): Call registers_changed
1158 instead of reinit_frame_cache.
1159 * gdbarch.c: Regenerate.
1161 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
1163 * elfread.c (elf_symtab_read): Do not relocate thread-local symbols.
1165 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1167 * xcoffread.c (SYMNAME_ALLOC): Correct syntax.
1169 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
1171 * findvar.c (locate_var_value): Do not call get_frame_arch
1172 with a NULL frame argument.
1174 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
1176 * frame.h (frame_map_regnum_to_name): Remove prototype.
1177 (frame_map_name_to_regnum): Remove prototype.
1178 * frame.c (frame_map_regnum_to_name): Remove.
1179 (frame_map_name_to_regnum): Remove.
1180 (frame_unwind_register_value): Use user_reg_map_regnum_to_name
1181 instead of frame_map_regnum_to_name.
1182 * ax-gdb.c: Include "user-regs.h".
1183 (gen_expr): Use user_reg_map_name_to_regnum instead of
1184 frame_map_name_to_regnum.
1185 * eval.c: Include "user-regs.h".
1186 (evaluate_subexp_standard): Use user_reg_map_name_to_regnum
1187 instead of frame_map_name_to_regnum.
1188 * infcmd.c (registers_info): Likewise.
1189 * parse.c: Include "user-regs.h".
1190 (write_dollar_variable): Use user_reg_map_name_to_regnum
1191 instead of frame_map_name_to_regnum.
1192 * tracepoint.c: Include "user-regs.h".
1193 (encode_actions): Use user_reg_map_name_to_regnum
1194 instead of frame_map_name_to_regnum.
1195 * valops.c: Include "user-regs.h".
1196 (value_fetch_lazy): Use user_reg_map_regnum_to_name instead
1197 of frame_map_regnum_to_name.
1199 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
1201 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Read
1202 and manually relocate .opd contents from BFD instead of reading
1203 them from target memory.
1205 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1207 * dwarf2read.c (processing_current_prefix): Delete static
1209 (process_full_comp_unit): Do not set processing_current_prefix.
1210 (dwarf2_full_name): New function.
1211 (read_func_scope): Do not set processing_current_prefix. Use
1213 (read_structure_type): Do not set processing_current_prefix. Remove
1214 unused inner cleanup.
1215 (process_structure_scope): Do not set processing_current_prefix.
1216 (read_enumeration_type): Use dwarf2_full_name.
1217 (determine_class_name): Return a const char *. Put the result
1218 on the objfile obstack. Use dwarf2_full_name.
1219 (read_namespace_type): New function.
1220 (read_namespace): Do not create the type here. Use
1222 (read_typedef): Use dwarf2_full_name. Do not pass the name
1224 (read_base_type): Do not pass the name to init_type. Handle
1226 (read_unspecified_type): Do not pass the name to init_type.
1227 (new_symbol): Use dwarf2_full_name instead of
1228 processing_current_prefix.
1229 (read_type_die): Do not set processing_current_prefix. Handle
1231 (determine_prefix): Handle specifications. Return the result
1232 on the objfile obstack. Handle unions correctly.
1234 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1236 * buildsym.c (add_symbol_to_list): Do not call
1237 cp_scan_for_anonymous_namespaces here.
1238 (finish_block): Do not call cp_set_block_scope here.
1239 * cp-namespace.c (processing_has_namespace_info)
1240 (processing_current_prefix): Delete.
1241 (cp_initialize_namespace): Do not initialize
1242 processing_has_namespace_info.
1243 (cp_scan_for_anonymous_namespaces): Use SYMBOL_DEMANGLED_NAME. Do
1244 not check processing_has_namespace_info.
1245 (cp_set_block_scope): Take prefix and namespace info flag as
1246 arguments. Honor namespaces regardless of a demangled name.
1247 * cp-support.h (processing_has_namespace_info)
1248 (processing_current_prefix): Delete declarations.
1249 (cp_set_block_scope): Update prototype.
1250 * dwarf2read.c (processing_has_namespace_info)
1251 (processing_current_prefix): New static variables.
1252 (read_file_scope): Initialize processing_has_namespace_info.
1253 (read_func_scope): Call cp_set_block_scope for C++.
1254 (new_symbol): Call cp_scan_for_anonymous_namespaces for C++.
1255 * symtab.c (symbol_demangled_name): Accept a const argument.
1256 * symtab.h (symbol_demangled_name): Update prototype.
1258 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1260 * ax-gdb.c (gen_var_ref): Use SYMBOL_LINKAGE_NAME.
1261 * blockframe.c (find_pc_partial_function): Likewise.
1262 * buildsym.c (find_symbol_in_list): Likewise.
1263 * c-valprint.c (c_val_print): Likewise.
1264 * coffread.c (patch_opaque_types, process_coff_symbol): Likewise.
1265 (coff_read_enum_type): Likewise. Use SYMBOL_SET_LINKAGE_NAME.
1266 * cp-support.c (cp_remove_params): Renamed from remove_params and
1268 (overload_list_add_symbol): Update call to remove_params.
1269 * cp-support.h (cp_remove_params): Declare.
1270 * dwarf2read.c (process_enumeration_scope): Use SYMBOL_LINKAGE_NAME.
1271 (dwarf2_const_value): Use SYMBOL_PRINT_NAME.
1272 * expprint.c (dump_subexp_body_standard): Likewise.
1273 * f-valprint.c (info_common_command, there_is_a_visible_common_named):
1274 Use SYMBOL_LINKAGE_NAME to find symbols and SYMBOL_PRINT_NAME
1276 * findvar.c (read_var_value): Use SYMBOL_LINKAGE_NAME.
1277 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
1278 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
1279 (hppa_hpux_skip_trampoline_code): Use SYMBOL_LINKAGE_NAME to find
1280 symbols and SYMBOL_PRINT_NAME for messages.
1281 * jv-lang.c (add_class_symbol): Use SYMBOL_SET_LINKAGE_NAME.
1282 * linespec.c (decode_line_2): Use SYMBOL_LINKAGE_NAME.
1283 * mdebugread.c (parse_symbol): Use SYMBOL_LINKAGE_NAME and
1284 SYMBOL_SET_LINKAGE_NAME.
1285 (mylookup_symbol): Use SYMBOL_LINKAGE_NAME.
1286 * minsyms.c (add_minsym_to_demangled_hash_table): Use
1288 (lookup_minimal_symbol): Use SYMBOL_LINKAGE_NAME or
1289 SYMBOL_MATCHES_SEARCH_NAME, depending on the pass.
1290 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Use SYMBOL_LINKAGE_NAME.
1291 * printcmd.c (build_address_symbolic): Use SYMBOL_LINKAGE_NAME.
1292 (address_info): Use SYMBOL_PRINT_NAME for messages and
1293 SYMBOL_LINKAGE_NAME for lookups.
1294 * sol-thread.c (info_cb): Use SYMBOL_PRINT_NAME for messages.
1295 * stabsread.c (patch_block_stabs, define_symbol)
1296 (read_type, read_enum_type, common_block_end)
1297 (cleanup_undefined_types_1, scan_file_globals): Use
1298 SYMBOL_LINKAGE_NAME, SYMBOL_SET_LINKAGE_NAME, ALL_OBJFILE_MSYMBOLS,
1299 and SYMBOL_PRINT_NAME.
1300 * stack.c (print_frame_args): Use SYMBOL_LINKAGE_NAME.
1301 (print_frame, frame_info): Use SYMBOL_PRINT_NAME for output. Use
1302 cp_remove_params instead of cplus_demangle.
1303 (print_block_frame_labels, print_frame_arg_vars): Use
1304 SYMBOL_LINKAGE_NAME.
1305 * symmisc.c (dump_msymbols): Use ALL_OBJFILE_MSYMBOLS and
1306 SYMBOL_LINKAGE_NAME.
1307 (dump_symtab_1, print_symbol, print_partial_symbols)
1308 (maintenance_check_symtabs): Use SYMBOL_LINKAGE_NAME.
1309 * symtab.h (DEPRECATED_SYMBOL_NAME): Delete.
1310 (SYMBOL_SET_LINKAGE_NAME): New.
1311 (SYMBOL_SET_NAMES): Add a comment.
1312 * tracepoint.c (set_traceframe_context, validate_actionline)
1313 (collect_symbol, scope_info): Use SYMBOL_LINKAGE_NAME for
1314 lookups and SYMBOL_PRINT_NAME for output.
1315 * typeprint.c (typedef_print): Use SYMBOL_LINKAGE_NAME.
1316 * xcoffread.c (process_xcoff_symbol): Use SYMBOL_SET_LINKAGE_NAME.
1318 2008-08-21 Pedro Alves <pedro@codesourcery.com>
1320 * arm-tdep.c (arm_pc_is_thumb): Use obj_section_addr.
1321 * hppa-hpux-tdep.c (hppa_hpux_find_dummy_bpaddr): Likewise.
1322 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Use
1323 obj_section_addr and obj_section_endaddr.
1324 * hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Likewise.
1325 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
1326 * ia64-tdep.c (ia64_find_global_pointer): Likewise.
1327 (find_extant_func_descr): Likewise.
1328 * solib-frv.c (frv_relocate_main_executable): Use
1330 * xstormy16-tdep.c (xstormy16_find_jmp_table_entry): Use
1331 obj_section_addr and obj_section_endaddr.
1333 2008-08-21 Paul N. Hilfinger <hilfinger@adacore.com>
1335 * NEWS: Amplify last entry on boolean types in Ada.
1337 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
1339 * dwarf2read.c (die_specification, dwarf2_extension, follow_die_ref):
1340 Make the dwarf2_cu * parameter output as well as input. Update it if
1341 we follow a reference to another CU.
1342 (read_func_scope, determine_class_name, namespace_name, dwarf2_attr)
1343 (die_type, die_containing_type): Update calls to changed functions.
1344 Use the returned CU along with the returned DIE.
1345 (read_namespace): Use dwarf2_attr instead of dwarf2_extension.
1347 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
1349 * dwarf2read.c (queue_comp_unit): Take an objfile argument. Read
1351 (process_queue): Do not read in the DIEs here.
1352 (psymtab_to_symtab_1): Update call to queue_comp_unit.
1353 (read_full_die): Do not call queue_comp_unit from here.
1354 (maybe_queue_comp_unit): New function.
1355 (follow_die_ref): Use it.
1357 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
1359 * dwarf2read.c (struct attribute): Move earlier.
1360 (struct die_info): Change attrs to a trailing array.
1361 (dwarf_alloc_die): Take the number of attributes. Allocate space
1363 (read_full_die): Update call to dwarf_alloc_die. Do not manually
1364 allocate attributes.
1366 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
1368 * dwarf2read.c (REF_HASH_SIZE): Delete.
1369 (struct dwarf2_cu): Replace die_ref_table with die_hash.
1370 (struct die_info): Remove next_ref.
1371 (store_in_ref_table): Remove offset argument. Rewrite to use
1372 htab_find_slot_with_hash.
1373 (die_hash, die_eq): New.
1374 (read_comp_unit): Allocate the die_hash.
1375 (read_die_and_children): Update call to store_die_ref.
1376 (follow_die_ref): Rewrite to use htab_find_with_hash.
1378 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
1380 * dwarf2read.c (free_die_list, copy_die): Delete.
1381 (dwarf_alloc_die): Take a CU argument. Allocate the new DIE
1383 (read_full_die): Update call to dwarf_alloc_die. Allocate
1384 attributes on the CU obstack.
1385 (free_one_comp_unit): Do not call free_die_list.
1387 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
1389 * dwarf2read.c (read_die_and_children): Ignore NULL DIEs.
1390 (read_die_and_siblings): Likewise. Do not add padding DIEs to the
1392 (read_full_die): Do not allocate DIEs for abbrev 0.
1393 (follow_die_ref): Correct error message.
1395 2008-08-20 Pedro Alves <pedro@codesourcery.com>
1397 * linespec.c (symtab_from_filename): Also throw NOT_FOUND_ERROR if
1398 there are no symbols loaded, instead of throwing a generic error.
1399 (decode_variable): Likewise.
1401 2008-08-20 Pedro Alves <pedro@codesourcery.com>
1403 * objfiles.h (struct obj_section): Remove addr and endaddr fields.
1404 (obj_section_offset, obj_section_addr, obj_section_endaddr): New
1406 * objfiles.c (add_to_objfile_sections): Don't set addr, endaddr
1407 and offset. Use size_t instead of unsigned long.
1408 (build_objfile_section_table): Use size_t instead of unsigned
1410 (objfile_relocate): Don't relocate s->addr and s->endaddr, they're
1412 (find_pc_sect_section): Use obj_section_addr and
1413 obj_section_endaddr.
1414 * symfile.c (symfile.c): Remove code that maps sections
1415 offsets in "addr" to the object's sections.
1416 * blockframe.c (find_pc_partial_function): Use obj_section_endaddr.
1417 * gcore.c (gcore_create_callback): Use obj_section_addr and
1418 obj_section_endaddr.
1419 * maint.c (print_objfile_section_info): Likewise.
1420 * printcmd.c (sym_info): Use obj_section_addr and
1421 obj_section_endaddr.
1422 * symtab.c (fixup_section): Likewise.
1424 2008-08-20 Mark Kettenis <kettenis@gnu.org>
1426 * sparc-tdep.c: Make some comments catch up with reality.
1428 2008-08-20 Vladimir Prus <vladimir@codesourcery.com>
1430 * NEWS: Mention 'set target-async'
1432 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
1434 * infrun.c (resume): If the thread is placed to the deferred step
1435 queue, mark it as running.
1437 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
1439 Make sure target supports non-stop.
1440 * infcmd.c (run_command_1, attach_command): If non-stop mode
1441 is requested, verify the target supports it.
1442 * linux-nat.c (linux_nat_supports_non_stop): New.
1443 (linux_nat_add_target): Register the above.
1444 * target.c (find_default_supports_non_stop)
1445 (target_supports_non_stop): New.
1446 (init_dummy_target): Register find_default_supports_non_stop.
1447 * target.h (struct target_ops): New field to_supports_non_stop.
1448 (target_supports_non_stop): New.
1450 2008-08-19 Pedro Alves <pedro@codesourcery.com>
1451 Vladimir Prus <vladimir@codesourcery.com>
1453 * target.c (target_async_permitted, target_async_permitted_1)
1454 (set_maintenance_target_async_permitted)
1455 (show_maintenance_target_async_permitted): New.
1456 (initialize_targets): Register 'set target-async'.
1457 * target.h (target_async_permitted): Declare.
1458 * linux-nat.c (linux_nat_async_enabled)
1459 (linux_nat_async_permitted, set_maintenance_linux_async_permitted)
1460 (show_maintenance_linux_async_permitted): Remove.
1461 (sigchld_handler, linux_nat_is_async_p, linux_nat_can_async_p)
1462 (get_pending_events, linux_nat_async): Use target_async_permitted.
1463 (linux_nat_set_async_mode): Remove, moving the only used bits
1465 (linux_nat_setup_async): This.
1466 (_initialize_linux_nat): Do not register 'maint set linux-async'.
1467 Use linux_nat_setup_async.
1468 * remote.c (remote_async_permitted, remote_async_permitted_set)
1469 (set_maintenance_remote_async_permitted)
1470 (show_maintenance_remote_async_permitted): Remove.
1471 (remote_open_1, remote_terminal_inferior, remote_can_async_p)
1472 (remote_is_async_p): Use target_async_permitted.
1473 (_initialize_remote): Don't register 'main set remote-async'.
1474 * mi/mi-cmds.c (mi_cmds): Register -list-target-features.
1475 * mi/mi-cmds.h (mi_cmd_list_target_features): New.
1476 * mi/mi-main.c (mi_cmd_list_target_features): New.
1478 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
1480 * target.c (maybe_kill_then_attach)
1481 (maybe_kill_then_create_inferior): Remove.
1482 (update_current_target): Do not default to_attach,
1483 to_create_inferiour, to_is_async_p.
1485 2008-08-19 Paul N. Hilfinger <hilfinger@adacore.com>
1487 Changes for supporting boolean types in debugging data.
1488 * ada-lang.c (discrete_type_high_bound,discrete_type_low_bound): Change
1489 API to return LONGEST values rather than struct values.
1490 (ada_evaluate_subexp): Change to use new API of discrete_type_low_bound
1491 and discrete_type_high_bound.
1492 (to_fixed_range_type): Create a range type in cases where
1493 argument is base type and its limits are representable as ints.
1494 (ada_is_modular_type): Correct so that base type must be integral.
1495 * ada-lex.l (TRUEKEYWORD,FALSEKEYWORD): Make 'true' and 'false'
1496 keywords when they appear alone, since we are phasing out
1497 direct representation of these identifiers in debugging data.
1498 * ada-exp.y: Define 'true' and 'false' as primaries.
1499 (type_boolean): New function.
1500 (type_int,type_long,type_long_long,type_floattype_double)
1501 (type_long_double): Remove uses of current_gdbarch for consistency
1503 (write_int): Change comment to indicate that it might write boolean
1505 * ada-typeprint.c (ada_print_type): Print '(false, true)' for boolean
1506 type, since will no longer be represented as enumerated type in
1508 * ada-valprint.c (print_optional_low_bound): Handle boolean case
1510 * NEWS: Note support boolean types.
1512 2008-08-18 Pedro Alves <pedro@codesourcery.com>
1514 * bsd-uthread.c (bsd_uthread_close): New.
1515 (bsd_uthread_deactivate): Don't cleanup here, just unpush the
1517 (bsd_uthread_solib_loaded): Fix typo.
1518 (bsd_uthread_target): Register bsd_uthread_close.
1520 2008-08-18 Pedro Alves <pedro@codesourcery.com>
1522 * corelow.c (core_open): Assume there was no upper layer left
1523 behind from a previous inferior.
1524 * target.c (pop_all_targets): Rename to ...
1525 (pop_all_targets_above): ... this. Add a target stratum
1526 parameter. Use it instead of hardcoding the dummy_stratum.
1527 (pop_all_targets): New, defer to pop_all_targets_above.
1528 (target_preopen): Use pop_all_targets_above.
1529 * target.h (pop_all_targets_above): Declare.
1531 2008-08-18 Pedro Alves <pedro@codesourcery.com>
1533 * gdbthread.h (thread_change_ptid): Declare.
1534 * infrun.c (infrun_thread_ptid_changed): New.
1535 (_initialize_infrun): Attach infrun_thread_ptid_changed to the
1536 thread_ptid_changed observer.
1537 * regcache.c (regcache_thread_ptid_changed): New.
1538 (_initialize_regcache): Attach regcache_thread_ptid_changed to the
1539 thread_ptid_changed observer.
1540 * thread.c (thread_change_ptid): New.
1542 2008-08-18 Tom Tromey <tromey@redhat.com>
1544 * symfile.c (reread_symbols): Update.
1545 * solib-sunos.c (allocate_rt_common_objfile): Update.
1546 * objfiles.c (allocate_objfile): Update.
1547 * objfiles.h (struct objfile) <md, mmfd, deprecated_obj_private>:
1550 2008-08-18 Tom Tromey <tromey@redhat.com>
1552 * gdbtypes.c (copy_type_recursive): Allocate 'stored' on objfile's
1555 2008-08-18 Daniel Jacobowitz <dan@codesourcery.com>
1557 * rs6000-tdep.c (struct rs6000_framedata): Add gpr_mask, used_bl,
1559 (rs6000_in_function_epilogue_p): Check for bctr.
1560 (skip_prologue): Initialize lr_register. Set lr_reg to a register
1561 number. Set gpr_mask and used_bl. Continue scanning while some
1562 expected registers are not saved. Set lr_register if LR is not
1564 (rs6000_frame_cache): Handle gpr_mask and lr_register.
1566 2008-08-17 Tom Tromey <tromey@redhat.com>
1569 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): New macros.
1570 (ep_find_event_name_end): Remove.
1571 (catch_fork_temporary, catch_vfork_temporary,
1572 catch_fork_permanent, catch_vfork_permanent): New constants.
1573 (catch_vfork, catch_fork): Remove.
1574 (catch_fork_command_1): Add 'command' argument. Remove
1575 'fork_kind' and 'tempflag'. Handle NULL 'arg'. Update switch for
1577 (catch_exec_command_1): Add 'command' argument; remove
1578 'tempflag'. Handle NULL 'arg'.
1579 (catch_load_command_1): Likewise.
1580 (catch_unload_command_1): Likewise.
1581 (catch_ada_exception_command): Likewise.
1582 (catch_assert_command): Likewise.
1583 (catch_catch_command): New function.
1584 (catch_throw_command): Likewise.
1585 (catch_command_1): Remove.
1586 (catch_command): Just call error.
1587 (tcatch_command): Likewise.
1588 (catch_cmdlist): New global.
1589 (tcatch_cmdlist): Likewise.
1590 (add_catch_command): New function.
1591 (_initialize_breakpoint): Create "catch" and "tcatch" as prefix
1592 commands. Create all catch sub-commands.
1594 2008-08-17 Pedro Alves <pedro@codesourcery.com>
1596 * gdbthread.h: Add comments.
1597 * stack.c (get_selected_block): Return 0 on an exited thread.
1598 * top.c (execute_command): Check for is_stopped, not !is_running.
1599 * event-top.c (command_handler): Likewise.
1601 2008-08-16 Pedro Alves <pedro@codesourcery.com>
1603 * mi/mi-main.c (mi_cmd_exec_next, mi_cmd_exec_next_instruction)
1604 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
1605 (mi_cmd_exec_finish): Remove "return".
1607 2008-08-16 Pedro Alves <pedro@codesourcery.com>
1609 * target.h (pop_all_targets): Declare.
1610 * target.c (pop_all_targets): New.
1611 * top.c (quit_target): Pop all targets instead of just closing the
1614 2008-08-16 Vladimir Prus <vladimir@codesourcery.com>
1615 Thiago Jung Bauermann <bauerman@br.ibm.com>
1617 * cli-script.c (read_next_line): Add parse_commands argument.
1618 (recurse_read_control_structure): Adapt to new read_next_line
1620 (read_command_lines): Add parse_commands argument.
1621 (define_command): Adapt to new read_command_lines signature.
1622 (document_command): Likewise.
1623 * breakpoint.c (commands_command): Likewise.
1624 * defs.h (read_command_lines): Adjust function prototype.
1626 2008-08-16 Paul N. Hilfinger <hilfinger@adacore.com>
1628 * ada-lang.c (pos_atr): Account for the possibility that the
1629 argument may be a reference.
1631 2008-08-16 Paul N. Hilfinger <hilfingr@adacore.com>
1633 * xcoffread.c (scan_xcoff_symtab): Do not include global symbols
1634 ('F' format) for @FIX names generated by the loader, retaining only
1635 the minimal symbols (and no partial symbol tables) for these names.
1636 Fixes warning messages about symbols that are found in partial
1637 symbol tables, but not full symbol tables.
1639 2008-08-16 Pedro Alves <pedro@codesourcery.com>
1641 * infrun.c (fetch_inferior_event): Only call normal_stop if not
1644 2008-08-15 Luis Machado <luisgpm@br.ibm.com>
1646 * rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c".
1647 Include "features/rs6000/powerpc-vsx64.c".
1648 (ppc_supply_vsxregset): New function.
1649 (ppc_collect_vsxregset): New function.
1650 (IS_VSX_PSEUDOREG): New macro.
1651 (IS_EFP_PSEUDOREG): New macro.
1652 (vsx_register_p): New function.
1653 (ppc_vsx_support_p): New function.
1654 (rs6000_builtin_type_vec128): New function.
1655 (rs6000_register_name): Hide upper halves of vs0~vs31. Return
1656 correct names for VSX registers and EFPR registers.
1657 (rs6000_pseudo_register_type): Return correct types for VSX
1659 (rs6000_pseudo_register_reggroup_p): Return correct group for
1660 VSX and EFPR registers.
1661 (ppc_pseudo_register_read): Rename to dfp_pseudo_register_read.
1662 (ppc_pseudo_register_write): Rename to dfp_pseudo_register_write.
1663 (vsx_pseudo_register_read): New function.
1664 (vsx_pseudo_register_write): New function.
1665 (efpr_pseudo_register_read): New function.
1666 (efpr_pseudo_register_write): New function.
1667 (rs6000_pseudo_register_read): Call new VSX and EFPR read functions.
1668 (rs6000_pseudo_register_write): Call new VSX and EFPR write functions.
1669 (rs6000_gdbarch_init): Declare have_vsx.
1670 Initialize new upper half VSX registers.
1671 Initialize VSX-related and EFPR-related pseudo-registers variables.
1672 Adjust the number of pseudo registers accordingly.
1674 * ppc-linux-nat.c: Define PTRACE_GETVSXREGS, PTRACE_SETVSXREGS
1676 (gdb_vsxregset_t): New type.
1677 (have_ptrace_getsetvsxregs): New variable.
1678 (fetch_vsx_register): New function.
1679 (fetch_register): Handle VSX registers.
1680 (fetch_vsx_registers): New function.
1681 (fetch_ppc_registers): Handle VSX registers.
1682 (store_ppc_registers): Handle VSX registers.
1683 (store_vsx_register): New function.
1684 (store_register): Handle VSX registers.
1685 (store_vsx_registers): New function.
1686 (ppc_linux_read_description): Handle VSX-enabled inferiors.
1687 (gdb_vsxregset_t): New type.
1688 (supply_vsxregset): New function.
1689 (fill_vsxregset): New function.
1691 * ppc-tdep.h (vsx_register_p): New prototype.
1692 (vsx_support_p): New prototype.
1693 (ppc_vsr0_regnum): New variable.
1694 (ppc_vsr0_upper_regnum): Likewise.
1695 (ppc_efpr0_regnum): Likewise.
1696 (ppc_builtin_type_vec128): New type.
1697 (ppc_num_vsrs): New constant.
1698 (ppc_num_vshrs): New constant.
1699 (ppc_num_efprs): Likewise.
1700 Define POWERPC_VEC_VSX PPC_VSR0_UPPER_REGNUM and PPC_VSR31_UPPER_REGNUM.
1701 (ppc_supply_vsxregset): New prototype.
1702 (ppc_collect_vsxregset): New prototype.
1704 * ppc-linux-tdep.c: Include "features/rs6000/powerpc-vsx32l.c"
1705 Include "features/rs6000/powerpc-vsx64l.c".
1706 (_initialize_ppc_linux_tdep): Initialize VSX-enabled targets.
1707 (ppc_linux_regset_sections): Add new ".reg-ppc-vsx" field.
1708 (ppc32_linux_vsxregset): New 32-bit VSX-enabled regset.
1709 (ppc_linux_regset_from_core_section): Handle VSX core section.
1710 (ppc_linux_core_read_description): Support VSX-enabled core files.
1712 * ppc-linux-tdep.h: Declare *tdesc_powerpc_vsx32l
1713 Declare tdesc_powerpc_vsx64l
1715 * corelow.c (get_core_register_section): Support VSX-enabled
1718 * features/rs6000/power-vsx.xml: New VSX descriptions.
1719 * features/rs6000/powerpc-vsx32.xml: New file.
1720 * features/rs6000/powerpc-vsx32l.xml: New file.
1721 * features/rs6000/powerpc-vsx64.xml: New file.
1722 * features/rs6000/powerpc-vsx64l.xml: New file.
1723 * features/rs6000/powerpc-vsx32.c: New file (generated).
1724 * features/rs6000/powerpc-vsx32l.c: New file (generated).
1725 * features/rs6000/powerpc-vsx64.c: New file (generated).
1726 * features/rs6000/powerpc-vsx64l.c: New file (generated).
1727 * features/Makefile: Updated with new descriptions.
1728 * regformats/rs6000/powerpc-vsx32l.dat: New file (generated).
1729 * regformats/rs6000/powerpc-vsx64l.dat: New file (generated).
1731 2008-08-15 Vladimir Prus <vladimir@codesourcery.com>
1733 * ia64-linux.nat (_initialize_ia64_linux_nat): Don't
1734 call linux_target twice.
1736 2008-08-14 Aleksandar Ristovski <aristovski@qnx.com>
1738 * nto-tdep.c (lm_info): Updated struct lm_info definition from
1740 (LM_ADDR): Use l_addr if available; if not, use link map and set
1743 2008-08-14 Tom Tromey <tromey@redhat.com>
1745 * macrocmd.c (macro_define_command): Check for NULL argument.
1746 (macro_undef_command): Likewise.
1748 2008-08-14 Pedro Alves <pedro@codesourcery.com>
1750 * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call.
1752 2008-08-13 Pedro Alves <pedro@codesourcery.com>
1754 * breakpoint.c (always_inserted_auto, always_inserted_on)
1755 (always_inserted_off, always_inserted_enums): New.
1756 (always_inserted_mode): Change type to char* and point to
1757 always_inserted_auto.
1758 (show_always_inserted_mode): In auto mode, also show the current
1759 effect of the option.
1760 (breakpoints_always_inserted_mode): Adjust for the new auto mode.
1761 (_initialize_breakpoint): Make the "set breakpoints
1762 always-inserted" command an enum command. Extend help to describe
1765 2008-08-13 Ulrich Weigand <uweigand@de.ibm.com>
1767 * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
1768 query valid) bit. Ignore bits outside the condition field.
1769 (info_spu_proxydma_command): Ignore bits outside the field.
1771 2008-08-12 Michael Snyder <msnyder@vmware.com>
1773 * MAINTAINERS: Update my email address.
1775 2008-08-12 Ulrich Weigand <uweigand@de.ibm.com>
1777 * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP.
1779 2008-08-12 Pedro Alves <pedro@codesourcery.com>
1781 Add no-ack mode to the remote protocol --- optionally stop ACKing
1782 packets and responses when we have a reliable communication
1785 Based on Apple's GDB, by Jason Molenda <jmolenda@apple.com>
1787 * remote.c (struct remote_state): Add noack_mode field.
1788 (PACKET_QStartNoAckMode): New.
1789 (remote_start_remote): Don't any outstanding packet here.
1790 (remote_open_1): Clear noack_mode. Ack any outstanding packet
1791 here. Activate noack mode if requested.
1792 (remote_protocol_features): Add QStartNoAckMode.
1794 (putpkt_binary): Don't send ack in noack mode.
1795 (read_frame): Don't recompute the checksum in noack mode.
1796 (getpkt_sane): Skip sending ack if in noack mode.
1797 (_initialize_remote): Add set/show remote noack mode.
1798 * NEWS: Note the new features.
1800 2008-08-11 Kevin Buettner <kevinb@redhat.com>
1802 * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK):
1804 (rs6000_skip_main_prologue): New function.
1805 (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue.
1807 2008-08-11 Sandra Loosemore <sandra@codesourcery.com>
1809 * MAINTAINERS (Write After Approval): Add self.
1811 2008-08-11 Stan Shebs <stan@codesourcery.com>
1814 * disasm.c (gdb_disassemble_info): Set endian_code.
1815 * gdbarch.sh (gdbarch_info): New field byte_order_for_code.
1816 * gdbarch.h, gdbarch.c: Regenerate.
1817 * arch-utils.c (initialize_current_architecture): Set the
1818 default byte_order_for_code.
1819 (gdbarch_info_init): Ditto.
1820 (gdbarch_info_fill): Ditto.
1821 * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros.
1822 (thumb_analyze_prologue): Swap halfword if code endianness is
1823 different from general endianness.
1824 (arm_skip_prologue): Similarly.
1825 (arm_scan_prologue): Ditto.
1826 (thumb_get_next_pc): Ditto.
1827 (arm_get_next_pc): Ditto.
1828 (arm_gdbarch_init): Set byte_order_for_code from BE8 flag,
1829 choose correct endianness for breakpoints.
1831 2008-08-10 Pedro Alves <pedro@codesourcery.com>
1833 * bsd-kvm.c: Include "gdbthread.h".
1834 (bsd_kvm_ptid): New.
1835 (bsd_kvm_open): Add a main thread.
1836 (bsd_kvm_close): Delete it.
1837 (bsd_kvm_thread_alive): New.
1838 (bsd_kvm_pid_to_str): New.
1839 (bsd_kvm_add_target): Register bsd_kvm_thread_alive and
1841 (bsd_kvm_add_target): Initialize bsd_kvm_ptid.
1843 2008-08-09 Pedro Alves <pedro@codesourcery.com>
1845 * buildsym.c (start_subfile): Properly cast sentinel in concat
1847 * cp-name-parser.y: Include "config.h".
1848 * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in
1850 * gdb_select.h: Include sys/time.h if sys/select.h is not
1853 2008-08-09 Pedro Alves <pedro@codesourcery.com>
1855 * go32-nat.c: Include "gdbthread.h".
1856 (go32_stop, go32_kill_inferior): Delete the main thread.
1857 (go32_create_inferior): Add it.
1858 (go32_thread_alive, go32_pid_to_str): New.
1859 (init_go32_ops): Register go32_thread_alive and go32_pid_to_str.
1861 2008-08-09 Pedro Alves <pedro@codesourcery.com>
1863 * go32-nat.c (fetch_register, store_register): Pass the regcache
1864 gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p.
1865 (go32_xfer_memory): Change type of myaddr parameter to gdb_byte.
1866 (struct seg_descr, struct seg_descr): pack the whole struct
1867 instead of each member individually.
1869 2008-08-09 Andreas Schwab <schwab@suse.de>
1871 * python/python.c (_initialize_python): Use unabbreviated commands
1874 2008-08-09 Daniel Jacobowitz <dan@codesourcery.com>
1876 * Makefile.in (stamp-h): Also create .deps.
1878 2008-08-09 Tom Tromey <tromey@redhat.com>
1880 * Makefile.in (generated_files): Add GNULIB_H.
1882 2008-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1884 * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set
1885 DT_HP_DEBUG_PRIVATE. Add warning if DT_HP_DEBUG_PRIVATE is not set.
1887 (pa64_current_sos): Remove map private warning warning.
1888 * solib-som.c: Include string.h and sys/utsname.h.
1889 (get_hpux_major_release): New function.
1890 (som_solib_create_inferior_hook): Read dynamic linker header. Warn
1891 about shared library private mapping on HP-UX 11 and later. Only force
1892 private mapping of shared libraries on HP-UX 10 and earlier.
1893 (link_map_start): Delete warning.
1895 2008-08-09 Xuepeng Guo <xuepeng.guo@intel.com>
1896 H.J. Lu <hongjiu.lu@intel.com>
1897 Mark Kettenis <kettenis@gnu.org>
1899 * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg.
1900 (amd64_init_frame_cache): Initialize saved_sp_reg.
1901 (amd64_analyze_stack_align): New.
1902 (amd64_analyze_prologue): Call it.
1903 (amd64_frame_cache): Use saved_sp_reg if it is invalid. Don't set
1904 %rip to 8 when halfway aligning the stack.
1906 * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to
1909 * i386-tdep.c (i386_frame_cache): Remove stack_align. Add
1911 (i386_alloc_frame_cache): Remove stack_align. Initialize
1913 (i386_analyze_stack_align): Rewrite.
1914 (i386_frame_cache): Use saved_sp_reg if it is valid.
1916 2008-08-09 Ulrich Weigand <uweigand@de.ibm.com>
1918 * target.c: Include "solib.h".
1919 (target_pre_inferior): Call no_shared_libraries.
1920 * infcmd.c (run_command_1): Do not call objfile_purge_solibs
1922 (attach_command): Do not call clear_solib.
1924 2008-08-09 Mark Kettenis <kettenis@gnu.org>
1926 * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
1929 2008-08-08 Tom Tromey <tromey@redhat.com>
1931 * Makefile.in (python.o): Remove dependencies. Use COMPILE and
1933 (python-utils.o): Likewise.
1935 2008-08-08 Andreas Schwab <schwab@suse.de>
1937 * corefile.c (_initialize_core): Remove spurious paren from set
1938 gnutarget doc string.
1940 2008-08-08 Luis Machado <luisgpm@br.ibm.com>
1942 * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h".
1943 Define PPC_FEATURE_BOOKE.
1944 (ppc_linux_get_hwcap): New function.
1945 (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440
1946 4-bytes alignment restrictions.
1947 (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific
1948 positioning of the read/write flags.
1949 (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440
1952 2008-08-08 Pedro Alves <pedro@codesourcery.com>
1954 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
1956 * win32-nat.c (win32_add_thread): Change thread argument type to
1958 (win32_add_thread): Adjust.
1959 (win32_delete_thread): Change thread argument type to ptid_t.
1961 (win32_fetch_inferior_registers, win32_store_inferior_registers)
1962 (win32_resume, get_win32_debug_event, get_win32_debug_event)
1963 (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust.
1964 (init_win32_ops): Put to_magic last.
1965 (win32_win32_thread_alive): Adjust.
1967 2008-08-08 Pedro Alves <pedro@codesourcery.com>
1969 * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New.
1970 (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str.
1972 2008-08-08 Pedro Alves <pedro@codesourcery.com>
1974 * remote-m32r-sdi.c: Include "gdbthread.h".
1975 (remote_m32r_ptid): New.
1976 (m32r_close): Delete the main thread.
1977 (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the
1979 (m32r_kill, m32r_load, sdireset_command): Delete the main thread.
1980 (_initialize_remote_m32r): Initialize remote_m32r_ptid.
1982 2008-08-07 Tom Tromey <tromey@redhat.com>
1983 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1985 * aclocal.m4, configure: Rebuild.
1986 * configure.in: Call ZW_CREATE_DEPDIR,
1987 ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
1988 (MAKE, GMAKE): New substs.
1989 * acinclude.m4: Include depstand.m4.
1990 * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
1991 COMPILE, POSTCOMPILE, depcomp): New variables.
1992 Remove all _h variables.
1993 Remove many .o targets.
1994 ($(srcdir)/copying.c): avoid backslash-newline after comment
1995 sign (@maintainer_mode_true@).
1996 (HFILES_NO_SRCDIR): Regenerate.
1997 (generated_files): New variable.
1998 (all_gdbtk_cflags): Likewise.
2000 (init.o, version.o, copying.o): Remove.
2001 (distclean): Remove DEPDIR.
2002 (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
2003 printcmd.o, procfs.o, v850ice.o): Rewrite.
2004 (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
2005 cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
2006 (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
2007 gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
2008 gdbtk-wrapper.o): Likewise.
2009 (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
2010 mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
2011 mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
2012 mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
2013 tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
2014 tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
2015 tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
2016 tui-wingeneral.o, tui-winsource.o): Likewise.
2017 (all_object_files): New variable.
2018 ($(all_object_files)): New target.
2019 Include dependency files, when using GNU Make.
2021 2008-08-07 Ulrich Weigand <uweigand@de.ibm.com>
2023 * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with
2024 the valid bit set. Ensure display order respects partial
2025 order defined by dependency bits.
2027 2008-08-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2029 * solib-pa64.c (read_dld_descriptor): Return zero if load map is not
2032 2008-08-06 Mark Kettenis <kettenis@gnu.org>
2034 * i386obsd-nat.c (i386obsd_supply_pcb): Adjust for changes in
2037 2008-08-06 Vladimir Prus <vladimir@codesourcery.com>
2038 Tom Tromey <tromey@redhat.com>
2039 Thiago Jung Bauermann <bauerman@br.ibm.com>
2040 Doug Evans <dje@google.com>
2042 * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS,
2043 SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS,
2044 PYTHON_CFLAGS): New.
2045 (python_h, python_internal_h): New.
2046 (cli-script.o): Depend on python.h
2047 (python.o, python-utils.o): New.
2048 * cli/cli-script.c (print_command_lines): Handle python_control.
2049 (execute_control_command): Handle python_control.
2050 (execute_control_command_untraced): New function.
2051 (while_command): Call execute_control_command_untraced.
2052 (if_command): Likewise.
2053 (get_command_line): Remove static attribute.
2054 (read_next_line): Handle "python".
2055 (recurse_read_control_structure): Handle python_control.
2056 (read_command_lines): Handle python_control.
2058 * cli/cli-script.h (get_command_line): Add prototype.
2059 (execute_control_command_untraced): Likewise.
2060 * configure.ac: Add --with-python.
2061 * defs.h (enum command_control_type) <python_control>: New
2063 * python/python-internal.h: New file.
2064 * python/python.c: New file.
2065 * python/python.h: New file.
2066 * python/python-utils.c: New file.
2067 * NEWS: Mention Python scripting support and its new commands.
2069 2008-08-06 Ulrich Weigand <uweigand@de.ibm.com>
2071 * spu-tdep.c (spu_gdbarch_init): Call set_gdbarch_frame_red_zone_size.
2073 2008-08-06 Phil Muldoon <pmuldoon@redhat.com>
2075 * MAINTAINERS (Write After Approval): Add self.
2077 2008-08-06 Phil Muldoon <pmuldoon@redhat.com>
2079 * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled.
2080 (insert_breakpoint_locations): Likewise.
2082 2008-08-05 Phil Muldoon <pmuldoon@redhat.com>
2084 * breakpoint.c (create_longjmp_breakpoint): Remove unused struct
2086 (set_longjmp_breakpoint): Likewise.
2088 2008-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2091 * solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are
2094 2008-08-05 Tom Tromey <tromey@redhat.com>
2096 * bcache.c (deprecated_bcache_added): Initialize obstack.
2097 (bcache_xmalloc): Don't initialize obstack.
2098 (bcache_xfree): Conditionally free obstack.
2099 (bcache_memory_used): Update.
2101 2008-08-05 Tom Tromey <tromey@redhat.com>
2103 * symfile.c (add_psymbol_to_bcache): Return a const pointer. Use
2105 (append_psymbol_to_list): Accept a const pointer.
2106 (add_psymbol_to_list): Fix const correctness.
2107 * bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove.
2108 (bcache_full): Declare.
2109 * bcache.c (bcache_data, deprecated_bcache): Remove.
2110 (bcache): Use bcache_full.
2111 (bcache_full): Rename from deprecated_bcache_added. Change return
2114 2008-08-04 Stan Shebs <stan@codesourcery.com>
2116 * solib-svr4.c (BKPT_AT_SYMBOL): Remove, always defined.
2117 (bkpt_names): Remove SOLIB_BKPT_NAME, never defined.
2118 (enable_break): Remove test of BKPT_AT_SYMBOL.
2120 2008-08-02 Keith Seitz <keiths@redhat.com>
2122 * acinclude.m4: Include ../config/tcl.m4 to pick up
2123 standard Tcl configury bits.
2124 Remove all Tcl, Tk, Itcl, Itk, etc definitions.
2125 * configure.ac: Don't check if ../itcl exists when building
2126 gdbtk. It could be installed.
2127 Rewrite gdbtk configury to allow for using system-supplied
2128 Tcl and Tk. Gdbtk no longer requires build-time access to
2130 * Makefile.in: Remove everything related to itcl and itk.
2131 Rewrite the Tcl bits for gdbtk to correspond to rewrite of
2133 Remove v850ice.o build rule.
2134 (ALL_TCL_CFLAGS): New convenience defintion. Change all
2135 gdbtk sources to use it.
2136 * configure: Regenerate.
2138 2008-07-31 Stan Shebs <stan@codesourcery.com>
2140 * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE.
2142 2008-07-30 Stan Shebs <stan@codesourcery.com>
2144 * objfiles.c (TARGET_KEEP_SECTION): Remove.
2145 (add_to_objfile_sections): Remove use.
2147 2008-07-29 Tom Tromey <tromey@redhat.com>
2149 * cli/cli-decode.c (lookup_cmd_1): Use memcpy.
2150 (lookup_cmd_composition): Likewise.
2152 2008-07-29 Tom Tromey <tromey@redhat.com>
2154 * cli/cli-cmds.c (edit_command): Remove unused variables. Delete
2155 dead code. Fix indentation.
2157 2008-07-29 Stan Shebs <stan@codesourcery.com>
2159 * main.c (captured_main): Remove long-unused #if 0 blocks.
2161 2008-07-28 Tom Tromey <tromey@redhat.com>
2163 * annotate.h (deprecated_annotate_starting_hook): Remove.
2164 (deprecated_annotate_stopped_hook): Remove.
2165 (deprecated_annotate_exited_hook): Remove.
2166 * Makefile.in (annotate.o): Depend on observer_h.
2167 * top.c (deprecated_delete_breakpoint_hook): Remove.
2168 (deprecated_create_breakpoint_hook): Likewise.
2169 (deprecated_modify_breakpoint_hook): Likewise.
2170 * interps.c (clear_interpreter_hooks): Update for removed hooks.
2171 * breakpoint.c (mention): Don't call removed hook.
2172 (delete_breakpoint): Likewise.
2173 (disable_breakpoint): Likewise.
2174 (do_enable_breakpoint): Likewise.
2175 * annotate.c: Include observer.h.
2176 (breakpoint_changed): Change type of argument.
2177 (_initialize_annotate): Register observers.
2178 (deprecated_annotate_starting_hook): Remove.
2179 (deprecated_annotate_stopped_hook): Remove.
2180 (deprecated_annotate_exited_hook): Remove.
2181 (annotate_starting): Update for hook removal.
2182 (annotate_stopped): Likewise.
2183 (annotate_exited): Likewise.
2184 * defs.h (deprecated_delete_breakpoint_hook): Remove.
2185 (deprecated_create_breakpoint_hook): Likewise.
2186 (deprecated_modify_breakpoint_hook): Likewise.
2188 2008-07-28 Tom Tromey <tromey@redhat.com>
2190 * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.
2192 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
2194 * configure.ac: Check for the GNU/Linux ptrace signature.
2195 * configure: Regenerated.
2197 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
2199 * linux-nat.c (resume_callback): Add more debugging output.
2200 (linux_nat_has_pending_sigint): New function, based on
2201 linux_nat_has_pending.
2202 (set_ignore_sigint, maybe_clear_ignore_sigint): New functions.
2203 (stop_wait_callback): Remove flush_mask handling. Honor
2204 ignore_sigint. Call maybe_clear_ignore_sigint. Pass NULL
2206 (linux_nat_has_pending, flush_callback): Remove.
2207 (linux_nat_filter_event): Check for ignore_sigint.
2208 (linux_nat_wait): Remove flush_mask support and call to
2209 flush_callback. Use set_ignore_sigint and maybe_clear_ignore_sigint.
2210 * linux-nat.h (struct lwp_info): Add ignore_sigint field.
2212 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
2214 * linux-nat.c (count_events_callback, select_event_lwp_callback): Only
2215 report events from resumed threads.
2217 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
2219 * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function.
2220 (mips_linux_init_abi): Set tdep->syscall_next_pc.
2221 * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to
2223 (mips32_next_pc): Handle the syscall instruction.
2224 * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New,
2225 from mips-tdep.c. Add syscall_next_pc to gdbarch_tdep.
2227 2008-07-26 Tom Tromey <tromey@redhat.com>
2230 * valops.c (value_struct_elt): Treat function-valued field as a
2233 2008-07-26 Tom Tromey <tromey@redhat.com>
2236 * macroexp.c (get_punctuator) <punctuators>: Rearrange to put
2237 longer tokens first.
2239 2008-07-26 Vladimir Prus <vladimir@codesourcery.com>
2242 * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok)
2243 (get_cmd_async_ok): Remove.
2244 * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove.
2245 * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok.
2246 * infcmd.c (_initialize_infcmd): Likewise.
2247 * thread.c (_initialize_thread): Likewise.
2249 2008-07-25 Joseph Myers <joseph@codesourcery.com>
2251 * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing
2252 128-bit long doubles in even-odd pairs of FPRs. Do not
2253 right-align float arguments for big-endian.
2254 (mips_n32n64_return_value): Apply return value convention for
2255 structs containing one or two floating-point values to soft-float
2256 as well as hard-float. Handle 128-bit long doubles in such
2258 (mips_o32_push_dummy_call): Only skip one integer register for a
2259 float argument passed in an FPR.
2261 2008-07-25 Tom Tromey <tromey@redhat.com>
2263 * tui/tui-hooks.c: Include observer.h.
2264 (tui_event_default, tui_old_event_hooks, tui_event_hooks):
2266 (tui_bp_created_observer, tui_bp_deleted_observer,
2267 tui_bp_modified_observer): New globals.
2268 (tui_install_hooks): Use observers, not events.
2269 (tui_remove_hooks): Likewise.
2270 * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h.
2271 (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New
2273 (breakpoint_notify): Check mi_can_breakpoint_notify.
2274 (breakpoint_hooks): Remove.
2275 (mi_cmd_break_insert): Attach observers. Don't use events.
2276 * tracepoint.c: Include observer.h, not gdb-events.h.
2277 (tracepoint_operation, trace_pass_command): Notify observer.
2278 * interps.c: Don't include gdb-events.h.
2279 (clear_interpreter_hooks): Don't call clear_gdb_event_hooks.
2280 * gdbarch.c: Rebuild.
2281 * gdbarch.sh: Emit include for observer.h, not gdb-events.h.
2282 (deprecated_current_gdbarch_select_hack): Notify observer.
2283 * breakpoint.h: Don't include gdb-events.h.
2284 * breakpoint.c: Don't include gdb-events.h.
2285 (condition_command): Notify observer.
2286 (commands_command): Likewise.
2287 (commands_from_control_command): Likewise.
2288 (mention, delete_breakpoint, set_ignore_count): Likewise.
2289 (disable_breakpoint, do_enable_breakpoint): Likewise.
2290 * Makefile.in (gdb_events_h): Remove.
2291 (breakpoint_h): Update.
2292 (COMMON_OBS): Remove gdb-events.o.
2293 (gdb-events.o): Remove.
2294 (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o,
2295 gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update.
2296 * gdb-events.c: Remove.
2297 * gdb-events.h: Remove.
2298 * gdb-events.sh: Remove.
2300 2008-07-24 Pedro Alves <pedro@codesourcery.com>
2302 * remote.c (remote_threads_extra_info): Don't query the remote
2303 server about info on the internally added main thread.
2305 2008-07-24 Aleksandar Ristovski <aristovski@qnx.com>
2307 * nto-procfs.c (procfs_attach): Populate initial thread list.
2308 (procfs_wait): Return new pid, built from the inferior status.
2310 2008-07-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
2312 * configure.ac (CONFIG_INITS): Delete long obsoleted variable.
2313 * configure: Regenerate.
2315 2008-07-23 Aleksandar Ristovski <aristovski@qnx.com>
2317 * nto-procfs.c (procfs_xfer_memory): Changed signature.
2318 (procfs_resume): Workaround for dereferencing type-punned pointer
2320 * nto-tdep.c (nto_parse_redirection): Change signature to be const
2322 * nto-tdep.h (nto_parse_redirection): Likewise.
2324 2008-07-21 Stan Shebs <stan@codesourcery.com>
2326 Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.
2327 * gdbarch.sh: Adjust comment to refer to
2328 in_solib_dynsym_resolve_code().
2329 * gdbarch.h, gdbarch.c: Update.
2330 * solib-osf.c: Ditto.
2332 (handle_inferior_event): Use in_solib_dynsym_resolve_code
2334 * config/mips/nm-irix5.h: Remove undef of
2335 IN_SOLIB_DYNSYM_RESOLVE_CODE.
2337 2008-07-21 Tom Tromey <tromey@redhat.com>
2339 * symfile.c (reread_symbols): Don't pass argument to observer.
2340 * exec.c (exec_file_attach): Don't pass argument to observer.
2341 * ada-lang.c (ada_executable_changed_observer): Remove argument.
2342 * symtab.c (symtab_observer_executable_changed): Remove argument.
2343 * observer.sh: Handle functions with no arguments.
2345 2008-07-20 Sergei Poselenov <sposelenov@emcraft.com>
2346 Chris Demetriou <cgd@google.com>
2348 * elfread.c (elf_symfile_segments): Fix the check that each loadable
2349 section fits within an ELF segment to handle ELF segments that hit
2350 the end of the address space.
2352 2008-07-20 Chris Demetriou <cgd@google.com>
2354 * MAINTAINERS (Write After Approval): Add self.
2356 2008-07-18 Tom Tromey <tromey@redhat.com>
2359 * NEWS: Add entry for macro commands.
2360 * Makefile.in (macrocmd.o): Add gdb_string.h.
2361 * macroscope.h (user_macro_scope): Declare.
2362 (default_macro_scope): Update documentation.
2363 (macro_user_macros): Declare.
2364 * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup.
2365 Use user_macro_scope.
2366 (null_macro_lookup): Remove.
2367 * macrotab.h (macro_callback_fn): Declare.
2368 (macro_for_each): Likewise.
2369 (macro_allow_redefinitions): Likewise.
2370 * macrotab.c (foreach_macro): New function
2371 (macro_for_each): Likewise.
2372 (struct macro_table) <redef_ok>: New field.
2373 (macro_allow_redefinitions): New function.
2374 (new_macro_table): Update.
2375 (macro_define_function): Likewise.
2376 (macro_define_object): Likewise.
2377 * macroscope.c (user_macro_scope): New function.
2378 (default_macro_scope): Use it.
2379 (macro_user_macros): New global.
2380 (standard_macro_lookup): Look in macro_user_macros.
2381 (_initialize_macroscope): New function.
2382 * macroexp.h (macro_is_whitespace, macro_is_digit,
2383 macro_is_identifier_nondigit): Declare.
2384 * macroexp.c (macro_is_whitespace): Rename. No longer static.
2385 (macro_is_digit): Likewise.
2386 (macro_is_identifier_nondigit): Likewise.
2387 (get_identifier): Update.
2388 (get_pp_number): Likewise.
2389 (get_token): Likewise.
2390 * macrocmd.c (skip_ws): New function.
2391 (extract_identifier): Likewise.
2392 (free_macro_definition_ptr): Likewise.
2393 (user_macros): Remove.
2394 (macro_define_command): Implement.
2395 (_initialize_macrocmd): Update.
2396 (macro_undef_command): Implement.
2397 (print_one_macro): New function.
2398 (macro_list_command): Implement.
2400 2008-07-18 Joseph Myers <joseph@codesourcery.com>
2402 * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl
2404 * configure: Regenerate.
2406 2008-07-17 Paul Pluzhnikov <ppluzhnikov@google.com>
2408 * auxv.c (fprint_target_auxv): Stop at AT_NULL.
2410 2008-07-15 Andreas Schwab <schwab@suse.de>
2412 * valops.c (value_cast_pointers): Follow typedefs when checking
2415 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
2417 * block.c (block_function): Renamed to ...
2418 (block_linkage_function): ... this. All callers changed.
2419 * block.h (block_function): Renamed to ...
2420 (block_linkage_function): ... this.
2422 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
2424 * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned.
2426 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
2428 * frame.c (frame_sp_unwind): Delete.
2429 (get_frame_sp): Do not use it.
2430 * frame.h (frame_sp_unwind): Delete prototype.
2432 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
2434 * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc.
2436 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
2438 * dwarf2-frame.c (dwarf2_frame_cache): Update comment.
2439 * frame.c (frame_unwind_address_in_block): Delete.
2440 (get_frame_address_in_block): Do not use it. Check the type
2441 of the next frame first.
2442 (frame_cleanup_after_sniffer): Update comment.
2443 * frame.h (frame_unwind_address_in_block): Delete prototype.
2444 * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment.
2446 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
2448 * frame.c (frame_func_unwind): Delete.
2449 (get_frame_func): Do not use it.
2450 * frame.h (frame_func_unwind): Delete prototype.
2451 * hppa-tdep.c (hppa_frame_cache): Update comment.
2452 * rs6000-tdep.c (rs6000_frame_cache): Update comment.
2454 2008-07-14 Stan Shebs <stan@codesourcery.com>
2456 * remote-sim.c (init_gdbsim_ops): Remove
2457 TARGET_REDEFINE_DEFAULT_OPS.
2459 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
2461 * findvar.c (read_var_value): Remove unused variable.
2463 2008-07-15 Luis Machado <luisgpm@br.ibm.com>
2465 * infrun.c (handle_inferior_event): Tag threads as stopped
2466 before inserting breakpoints.
2468 2008-07-15 Hui Zhu <teawater@gmail.com>
2470 * MAINTAINERS: Added myself to section Write After Approval.
2472 2008-07-14 Paul Pluzhnikov <ppluzhnikov@google.com>
2475 * cp-abi.c (value_virtual_fn_field): Handle invalid pointers.
2477 2008-07-14 Pedro Alves <pedro@codesourcery.com>
2479 * i386-dicos-tdep.c (i386_dicos_frame_align): Delete.
2480 (i386_dicos_push_dummy_code): New.
2481 (i386_dicos_init_abi): Don't register i386_dicos_frame_align.
2482 Register i386_dicos_push_dummy_code.
2484 2008-07-14 Markus Deuling <deuling@de.ibm.com>
2486 * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter.
2487 (mips_n32n64_push_dummy_call, mips_o64_return_value)
2488 (mips_eabi_push_dummy_call): Update call to fp_register_arg_p.
2490 (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch.
2491 (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command)
2492 (mips_n32n64_fp_arg_chunk_p): Update caller.
2494 (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter.
2495 (mips_n32n64_push_dummy_call): Update caller.
2497 (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace
2499 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
2500 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller.
2503 (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace
2505 (mips_eabi_push_dummy_call, mips_o32_push_dummy_call)
2506 (mips_o64_push_dummy_call): Update caller.
2508 (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch.
2509 (fp_register_arg_p, mips_dump_tdep): Update caller.
2511 (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch.
2512 (mips16_scan_prologue, mips32_scan_prologue): Update caller.
2514 (reset_saved_regs): Make static. Add gdbarch as parameter. Replace
2516 (mips32_scan_prologue): Update caller.
2518 (heuristic_proc_start): Add gdbarch as parameter. Replace
2520 (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller.
2522 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2523 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
2524 the current architecture. Update call to getregs_supplies.
2525 (getregs_supplies): Add gdbarch as parameter and replace
2528 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to
2529 get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and
2530 NBSD_MIPS_JB_ELEMENT_SIZE.
2531 (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and
2532 replace current_gdbarch.
2534 * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace
2536 (mips_fetch_registers, mips_store_registers): Update call
2538 (mips_load): Use get_regcache_arch to get at the current_architecture
2539 and replace current_gdbarch.
2541 2008-07-13 Pedro Alves <pedro@codesourcery.com>
2543 * thread.c (restore_selected_frame): On fail to restore, select
2544 the innermost frame, and don't crash when warning the user.
2546 2008-07-13 Hui Zhu <teawater@gmail.com>
2548 * symtab.c (expand_line_sal): Fix a memory leak.
2550 2008-07-13 Pedro Alves <pedro@codesourcery.com>
2552 * utils.c (struct continuation): Define as inheriting struct
2554 (add_continuation, do_all_continuations)
2555 (discard_all_continuations, add_intermediate_continuation)
2556 (do_all_intermediate_continuations)
2557 (discard_all_intermediate_continuations): Adjust.
2559 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
2561 Skip varobj in running threads.
2562 * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's
2563 thread is not stopped, skip the varobj.
2564 * Makefile.in: Update dependencies.
2566 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
2568 Enable all commands while inferiour is running
2569 * mi/mi-main.c (mi_cmd_execute): Don't check if
2570 inferiour is executing.
2572 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
2574 Allow all CLI command even if target is executing.
2575 * gdb/top.c (execute_command_1): Don't check if the inferiour
2578 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
2580 * mi/mi-main.c (mi_cmd_execute): Remove unused variable.
2581 Fix printing of frame, when frame is wrong.
2583 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
2585 * spu-tdep.c (spu_frame_unwind_cache): Do not error if
2586 backchain is unreadable.
2588 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
2590 * spu-linux-nat.c: Include "gdbthread.h".
2591 (spu_child_post_startup_inferior): Register main thread.
2592 (spu_child_post_attach): Likewise.
2593 * Makefile.in (spu-linux-nat.o): Update dependencies.
2595 2008-07-12 Pedro Alves <pedro@codesourcery.com>
2597 Rewrite continuations internals on top of cleanups and plug
2598 continuation arguments leaks.
2600 * defs.h (struct continuation): Make it opaque.
2601 (add_continuation, add_intermediate_continuation): Drop the int
2602 argument of the continuation hook argument. Add
2603 continuation_free_args argument.
2604 (do_all_continuations, do_all_intermediate_continuations): Drop
2605 the error_p argument.
2607 * utils.c (add_continuation): Drop the int argument of the
2608 continuation hook argument. Add continuation_free_args argument.
2609 Reimplement on top of cleanups.
2610 (do_all_continuations): Drop error argument. Reimplement on top
2612 (discard_all_continuations): Reimplement on top of cleanups.
2613 (add_intermediate_continuation): Drop the int argument of the
2614 continuation hook argument. Add continuation_free_args argument.
2615 Reimplement on top of cleanups.
2616 (do_all_intermediate_continuations): Drop error argument.
2617 Reimplement on top of cleanups.
2618 (discard_all_intermediate_continuations): Reimplement on top of
2621 * breakpoint.c (until_break_command_continuation): Drop error
2622 argument. Add xfree as continuation argument deleter.
2624 * inf-loop.c (inferior_event_handler): On error, discard all
2625 continuations. Adjust to new do_all_intermediate_continuations
2626 and do_all_continuations interfaces.
2628 * infcmd.c (step_1_continuation): Drop error_p argument. Adjust.
2629 Pass xfree as continuation argument deleter.
2630 (finish_command_continuation): Drop error_p argument. Adjust.
2631 (finish_command_continuation_free_arg): New.
2632 (finish_command): Pass finish_command_continuation_free_arg as
2633 continuation argument deleter. Adjust to new do_all_continuations
2635 (attach_command_continuation): Drop error_p argument.
2636 (attach_command_continuation_free_args): New.
2637 (attach_command): Pass attach_command_continuation_free_args as
2638 continuation argument deleter.
2640 * interps.c (interp_set): Adjust to new do_all_continuations
2643 * event-top.c (stdin_event_handler): In error, also discard the
2644 intermediate continuations.
2646 2008-07-12 Pedro Alves <pedro@codesourcery.com>
2648 Replace struct continuation_args by void* and per command structs.
2650 * top.c (execute_command): Remove unused arg1 and arg2 locals.
2652 * breakpoint.c (struct until_break_command_continuation_args):
2654 (until_break_command_continuation): Take a void* instead of a
2655 continuations_arg. Adjust.
2656 (until_break_command): Adjust to use struct
2657 until_break_command_continuation_args instead of struct
2660 * infcmd.c (struct step_1_continuation_args): New.
2661 (step_1_continuation): Take a void* instead of a
2662 continuations_arg. Adjust to use struct step_1_continuation_args.
2663 (step_once): Adjust to use struct step_1_continuation_args.
2665 (struct finish_command_continuation_args): New.
2666 (finish_command_continuation): Take a void* instead of a
2667 continuations_arg. Adjust to use struct
2668 finish_command_continuation_args.
2669 (finish_command): Adjust to use struct
2670 finish_command_continuation_args.
2671 (struct attach_command_continuation_args): New.
2672 (attach_command_continuation): Take a void* instead of a
2673 continuations_arg. Adjust to use struct
2674 attach_command_continuation_args.
2675 (attach_command): Adjust to use struct
2676 attach_command_continuation_args.
2678 * defs.h (struct continuation_arg): Delete.
2679 (struct continuation): Replace the struct continuation_arg*
2680 parameter of continuation_hook by a void*. Replace "arg_list"
2681 member by a new "args" member with void* type.
2682 (add_continuation, add_intermediate_continuation): Replace struct
2683 continuation_arg type usages by void* usages.
2685 * utils.c (add_continuation, do_all_continuations)
2686 (add_intermediate_continuation)
2687 (do_all_intermediate_continuations): Replace struct
2688 continuation_arg type usages by void* usages. Pass "args" instead
2691 2008-07-12 Pedro Alves <pedro@codesourcery.com>
2693 * infrun.c (struct thread_stepping_state): Delete sal member.
2694 (init_thread_stepping_state): Add local sal. Use it instead of
2696 (handle_inferior_event): New local stop_pc_sal. Use it instead of
2698 (step_into_function): Add local stop_func_sal. Use it instead of
2701 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
2703 Implement -exec-continue/-exec-interrupt --all.
2704 * infcmd.c (continue_1): New, extracted from
2705 (continue_command): ...here.
2706 (interrupt_target_1): New, extracted from
2707 (interrupt_target_command): ...here.
2708 * inferior.h (continue_1, interrupt_target_1): New.
2709 * mi/mi-main.c (mi_cmd_exec_continue)
2710 (mi_cmd_exec_interrupt): Handle --all.
2712 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
2714 Implement --thread and --frame.
2715 * gdbthread.h (find_thread_id): Declare.
2716 * thread.c (find_thread_id): Make non-static.
2717 * mi/mi-main.c (mi_cmd_execute): Switch to the right
2718 thread and frame, if necessary.
2719 * mi/mi-parse.c (mi_parse): Handle --thread and --frame.
2720 * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
2722 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
2724 * infrun.c (resume): Discard cleanups on early exit path.
2726 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
2728 * infrun.c (normal_stop): For MI, report which threads
2731 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
2733 Report thread state in -thread-info output.
2734 * thread.c (print_thread_info): Add new field "state".
2736 2008-07-11 Pedro Alves <pedro@codesourcery.com>
2738 * infrun.c (handle_inferior_event): Also ignore a
2739 TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP.
2741 2008-07-11 Tom Tromey <tromey@redhat.com>
2743 * completer.c (complete_line_internal): New function, from
2744 complete_line. Add 'for_help' parameter.
2745 (complete_line): Use it.
2746 (command_completer): Move later. Rewrite.
2748 2008-07-11 Pedro Alves <pedro@codesourcery.com>
2750 * thread.c (thread_apply_command): Move making the cleanup out of
2753 2008-07-11 Pedro Alves <pedro@codesourcery.com>
2757 * thread.c (enum thread_state): New.
2758 (thread_state main_thread_running): Delete, in favor of...
2759 (thread_state main_thread_state): ... this. Update throughout.
2760 (clear_thread_inferior_resources): New, split from free_thread.
2761 (free_thread): Call clear_thread_inferior_resources.
2762 (init_thread_list): Set main thread to stopped state.
2763 (add_thread_silent): Take care of PTID reuses.
2764 (delete_thread): If deleting inferior_ptid or a thread with
2765 refcount > 0, mark it as exited, but still keep it in the list.
2766 Only notify of thread exits, if we haven't done so yet.
2767 (iterate_over_threads): Make it safe to delete threads while
2768 iterating over them.
2769 (do_captured_list_thread_ids): Don't account for exited threads.
2770 (thread_alive): Check for the THREAD_EXITED state, and don't set
2771 ptid to -1 on exited threads.
2772 (set_running): Update to account for extra possible states.
2773 (is_thread_state): New.
2774 (is_stopped, is_exited): New.
2775 (is_running): Implement in terms of is_thread_state.
2776 (any_running): Update.
2777 (print_thread_info): Update. Account for exited threads. Don't
2778 warn about missed frame restoring here, its done in the cleanup.
2779 (switch_to_thread): Don't read from a thread that has gone.
2780 (restore_current_thread): In non-stop mode, do a full context
2782 (restore_selected_frame): Add a frame_level argument. Rewrite.
2783 (struct current_thread_cleanup): Add selected_frame_level and
2784 was_stopped members.
2785 (do_restore_current_thread_cleanup): Check if thread was stopped
2786 and still is, and if the target has registers, stack and memory
2787 before restoring the selected frame. Don't delete the cleanup
2789 (restore_current_thread_cleanup_dtor): New.
2790 (make_cleanup_restore_current_thread): Remove all arguments.
2792 (thread_apply_all_command): Update. Prune threads.
2793 (thread_apply_command): Update.
2794 (thread_command): Account for currently selected exited thread.
2795 (do_captured_thread_select): Check for a running thread. Prune
2797 (_initialize_thread): Make "info threads", "thread", "thread
2798 apply", and "thread apply all" appliable without a selected thread.
2799 * gdbthread.h (struct thread_info): Replace running_ by state_.
2801 (is_exited, is_stopped): Declare.
2802 (make_cleanup_restore_current_thread): Remove all arguments.
2803 * infrun.c: Include "event-top.h".
2804 (fetch_inferior_event): In non-stop mode, restore selected thread
2805 and frame after handling the event and running breakpoint
2806 commands. Display GDB prompt if needed.
2807 (normal_stop): In non-stop mode, don't print thread switching
2809 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
2810 (get_cmd_no_selected_thread_ok): New.
2811 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New.
2812 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
2814 * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as
2815 no-selected-thread ok.
2816 * top.c (execute_command): Check for non no-selected-thread-ok
2818 * linux-nat.c (struct saved_ptids, threads_to_delete)
2819 (record_dead_thread, prune_lwps): Delete.
2820 (exit_lwp): Unconditionally delete thread.
2821 (linux_nat_resume): Remove prune_lwps call.
2822 * infcmd.c (proceed_thread_callback): Check if !is_stopped instead
2823 of is_running. Adjust to make_cleanup_restore_current_thread
2825 * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the
2826 selected thread has exited.
2827 * inf-loop.c (inferior_event_handler): Don't display the prompt
2829 * varobj.c (c_value_of_root): Update.
2830 * defs.h (make_cleanup_dtor): Declare.
2831 * utils.c (make_cleanup_dtor): New.
2833 * Makefile.in (infrun.o): Depend on $(event_top_h).
2835 2008-07-11 Pedro Alves <pedro@codesourcery.com>
2837 Add "continue -a" and "interrupt -a" options for non-stop mode.
2839 * infcmd.c (proceed_thread_callback, do_context_switch_to): New.
2840 (continue_command): Add "-a" option.
2841 (interrupt_target_command): Add "-a" option.
2842 (_initialize_infcmd): Add extend help of continue and interrupt
2843 command to mention the new "-a" option. Mark "continue" async ok.
2845 2008-07-10 Doug Evans <dje@google.com>
2847 Add "set print symbol-loading on|off".
2848 * NEWS: Document new option.
2849 * symfile.h (print_symbol_loading): Declare.
2850 * symfile.c (print_symbol_loading): New global.
2851 (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols
2852 from ..." if print_symbol_loading.
2853 (_initialize_symfile): Add set/show print symbol-loading.
2854 * solib.c (solib_read_symbols): Only print "Loaded symbols for ..."
2855 if print_symbol_loading.
2857 2008-07-10 Pedro Alves <pedro@codesourcery.com>
2859 Non-stop linux native.
2861 * linux-nat.c (linux_test_for_tracefork): Block events while we're
2863 (get_pending_status): Implement non-stop mode.
2864 (linux_nat_detach): Stop threads before detaching.
2865 (linux_nat_resume): In non-stop mode, always resume only a single
2867 (linux_handle_extended_wait): On a clone event, in non-stop mode,
2868 add new lwp to GDB's thread table, and mark as running, executing
2869 and stopped appropriately.
2870 (linux_nat_filter_event): Don't assume there are other running
2871 threads when a thread exits.
2872 (linux_nat_wait): Mark the main thread as running and executing.
2873 In non-stop mode, don't stop all lwps.
2874 (linux_nat_kill): Stop lwps before killing them.
2875 (linux_nat_thread_alive): Use signal 0 to detect if a thread is
2877 (send_sigint_callback): New.
2878 (linux_nat_stop): New.
2879 (linux_nat_add_target): Set to_stop to linux_nat_stop.
2881 * linux-nat.h (thread_db_attach_lwp): Declare.
2883 * linux-thread-db.c (thread_get_info_callback): Check for new
2884 threads if we have none.
2885 (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the
2886 stopped lwp. Check for new threads if we have none.
2887 (thread_db_attach_lwp): New.
2888 (thread_db_init): Set proc_handle.pid to inferior_ptid.
2889 (check_event): Set proc_handle.pid to the stopped lwp.
2890 (thread_db_find_new_threads): Set proc_handle.pid to any stopped
2891 lwp available, bail out if there is none.
2893 * linux-fork.c (linux_fork_killall): Use SIGKILL instead of
2896 2008-07-10 Kevin Buettner <kevinb@redhat.com>
2898 * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
2899 `current_pc' from CORE_ADDR to ULONGEST.
2901 * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
2904 2008-07-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2906 * NEWS (New commands): Mention "set disable-randomization".
2907 * configure.ac: Add check for HAVE_PERSONALITY and
2908 HAVE_DECL_ADDR_NO_RANDOMIZE.
2909 * configure, config.in: Regenerate.
2910 * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
2911 [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
2913 (disable_randomization, show_disable_randomization)
2914 (set_disable_randomization): New.
2915 (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
2916 PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the
2917 variable DISABLE_RANDOMIZATION.
2918 (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
2919 DISABLE_RANDOMIZATION.
2921 2008-07-09 Pedro Alves <pedro@codesourcery.com>
2923 Adjust all targets to new target_stop interface.
2925 * gnu-nat.c (gnu_stop): Add ptid argument.
2926 * go32-nat.c (go32_stop): Add ptid argument.
2927 (go32_create_inferior): Pass inferior_ptid to go32_stop.
2928 * hpux-thread.c (hpux_thread_stop): Add ptid argument.
2929 * monitor.c (monitor_stop): Add ptid argument.
2930 (monitor_open): Pass inferior_ptid to monitor_stop.
2931 (monitor_interrupt): Pass inferior_ptid to target_stop.
2932 (monitor_stop): Add ptid argument.
2933 * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
2934 (procfs_create_inferior): Add ptid argument.
2935 * procfs.c (procfs_stop): Add ptid argument.
2936 * remote-m32r-sdi.c (m32r_stop): Add ptid argument.
2937 * remote-sim.c (gdbsim_stop): Add ptid argument.
2938 * sol-thread.c (sol_thread_stop): Add ptid argument.
2939 * win32-nat.c (win32_stop): Add ptid argument.
2941 2008-07-09 Pedro Alves <pedro@codesourcery.com>
2943 Non-stop inferior control.
2945 * infrun.c (resume): In non-stop mode, always resume just one
2947 (proceed): Don't call prepare_to_proceed in non-stop mode.
2948 (fetch_inferior_event): In non-stop mode, switch context before
2950 (error_is_running, ensure_not_running): New.
2951 (handle_inferior_event): In non-stop mode: Mark only the event
2952 thread as stopped. Require that the target module manages adding
2953 threads to the thread list. Assert that there isn't a
2954 deferred_step_ptid set. Don't switch to infwait_thread_hop_state.
2955 (normal_stop): Only mark not-running if inferior hasn't exited.
2956 In non-stop mode, only mark the event thread.
2958 * thread.c:Include "cli/cli-decode.h".
2959 (print_thread_info): Don't read from a running thread.
2960 Output "(running)" if thread is running.
2961 (switch_to_thread): Don't read stop_pc if thread is executing.
2962 (do_restore_current_thread_cleanup): Don't write to a running
2964 (thread_apply_all_command): Don't read from a running thread. In
2965 non-stop mode, do a full context-switch instead of just switching
2967 (thread_apply_command): In non-stop mode, do a full context-switch
2968 instead of just switching threads.
2969 (do_captured_thread_select): Likewise. Inform user if selected
2971 (_initialize_thread): Mark "info threads" and "thread" and
2974 * inf-loop.c (inferior_event_handler): In non-stop mode, don't
2975 unregister the target from the event loop.
2977 * infcmd.c (continue_command, step_1, jump_command)
2978 (signal_command): Ensure the selected thread isn't running.
2979 (interrupt_target_command): In non-stop mode, interrupt only the
2982 * inferior.h (error_is_running, ensure_not_running): Declare.
2984 * target.h (struct target_ops): Add ptid argument to the to_stop
2986 (target_stop): Add ptid_t argument.
2988 * target.c (update_current_target): Add ptid argument to to_stop's
2990 (debug_to_stop): Add ptid_t argument.
2991 (debug_to_rcmd): Set to_stop_ptid.
2993 * remote.c (remote_stop): Add ptid_t argument.
2994 (async_remote_interrupt): Add inferior_ptid to target_stop.
2995 * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
2997 * Makefile.in (thread.o): Depend on $(cli_decode_h).
2999 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3001 Don't rely on ecs->wait_for_more.
3003 * infrun.c (proceed): Clear the stepping state, set
3004 previous_inferior_ptid and clear infwait state.
3005 (wait_for_inferior): Don't clear the stepping state, set
3006 previous_inferior_ptid, or clear the infwait state here.
3007 (fetch_inferior_event): Don't clear the stepping state, set
3008 previous_inferior_ptid, or clear the infwait state here. Don't
3009 condition on wait_for_more.
3011 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3013 Refactor infrun a bit.
3015 * infrun.c (currently_stepping): Take a struct
3016 thread_stepping_state instead of an execution_control_state.
3017 (struct thread_stepping_state): New, split from
3018 execution_control_state.
3019 (gtss, tss): New globals.
3020 (proceed): Clear the stepping state, set previous_inferior_ptid
3021 and clear infwait state.
3022 (init_wait_for_inferior): Clear the stepping state,
3023 previous_inferior_ptid and infwait state.
3024 (waiton_ptid, infwait_state): New, split from
3025 execution_control_state.
3026 (struct execution_control_state): Members that persist through
3027 events moved out to either struct thred_stepping_state or made
3028 global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
3029 (wait_for_inferior, fetch_inferior_event): Use local
3030 execution_control_state. Update to execution_control_state split.
3031 (init_execution_control_state): Adjust.
3032 (init_thread_stepping_state): New, extracted from
3033 init_execution_control_state.
3034 (context_switch): Take a ptid instead of an
3035 execution_control_state.
3036 (context_switch_to): Adjust.
3037 (adjust_pc_after_break): Adjust.
3038 (init_infwait_state): New.
3039 (handle_inferior_event): Adjust.
3041 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3042 Vladimir Prus <vladimir@codesourcery.com>
3044 Per-thread commands.
3046 * gdbthread.h: Remove unneeded forward declarations.
3047 Include "inferior.h".
3048 (struct thread_info): Add continuations,
3049 intermediate_continuations, proceed_to_finish, step_over_calls,
3050 stop_step, step_multi and stop_signal members.
3051 (save_infrun_state): Add continuations,
3052 intermediate_continuations, proceed_to_finish, step_over_calls,
3053 stop_step, step_multi, stop_signal and stop_bpstat parameters.
3054 (load_infrun_state): Add continuations,
3055 intermediate_continuations, proceed_to_finish, step_over_calls,
3056 stop_step, step_multi, stop_signal and stop_bpstat parameters.
3058 * thread.c (load_infrun_state): In non-stop mode, load
3059 continuations, intermediate_continuations, proceed_to_finish,
3060 step_over_calls, stop_step, step_multi and stop_signal.
3061 (save_infrun_state): Store continuations,
3062 intermediate_continuations, proceed_to_finish, step_over_calls,
3063 stop_step, step_multi, stop_signal and stop_bpstat.
3064 (save_infrun_state): Store continuations,
3065 intermediate_continuations, proceed_to_finish, step_over_calls,
3066 stop_step, step_multi, stop_signal and stop_bpstat.
3067 (free_thread): Clear The thread's stop_bpstat.
3069 * inferior.h (context_switch_to): Declare.
3071 * infrun.c (ecss): New global.
3072 (context_switch): Context switch continuations,
3073 intermediate_continuations, proceed_to_finish, step_over_calls,
3074 stop_step, step_multi, stop_signal and stop_bpstat.
3075 (wait_for_inferior): Use global ecss.
3076 (async_ecss, async_ecs): Delete.
3077 (fetch_inferior_event): Use global ecss.
3078 (context_switch_to): New.
3080 * top.c (execute_command): In non-stop, only check if the current
3081 thread is running, in all-stop, check if there's any thread
3084 * breakpoint.c (bpstat_remove_breakpoint): New.
3085 (bpstat_remove_breakpoint_callback): New.
3086 (delete_breakpoint): Clear the stop_bpstats of all threads.
3088 * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
3089 current thread is running, in all-stop, check if there's any
3092 * Makefile.in (gdbthread_h): Depend on $(inferior_h).
3094 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3096 Add non_stop global.
3098 * inferior.h (non_stop): Declare.
3099 * infrun.c (non_stop, non_stop_1): New.
3100 (set_non_stop, show_non_stop): New.
3101 (_initialize_infrun): Add "set/show non-stop" command.
3103 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3105 Adjust fork/vfork/exec to pass ptids around.
3107 * target.h (struct target_waitstatus): Store related_pid as a ptid.
3108 (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
3110 * breakpoint.h (struct breakpoint): Change forked_inferior_pid
3112 * breakpoint.c (print_it_typical, bpstat_check_location)
3113 (print_one_breakpoint_location, set_raw_breakpoint_without_location)
3114 (create_fork_vfork_event_catchpoint): Adjust.
3115 * infrun.c (fork_event): Change parent_pid and child_pid types to
3117 (follow_exec, inferior_has_forked, inferior_has_vforked)
3118 (inferior_has_execd): Take a ptid_t and don't trim it.
3119 * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
3120 * linux-nat.c (linux_child_follow_fork): Adjust.
3121 * inf-ptrace.c (inf_ptrace_wait): Adjust.
3122 * inf-ttrace.c (inf_ttrace_wait): Adjust.
3123 * win32-nat.c (get_win32_debug_event): Don't set related_pid.
3125 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3127 Add "executing" property to threads.
3129 * inferior.h (target_executing): Delete.
3130 * gdbthread.h (struct thread_info): Add executing_ field.
3131 (set_executing, is_executing): New.
3132 * thread.c (main_thread_executing): New.
3133 (init_thread_list): Clear it and also main_thread_running.
3134 (is_running): Return false if target has no execution.
3135 (any_running, is_executing, set_executing): New.
3137 * top.c: Include "gdbthread.h".
3138 (target_executing): Delete.
3139 (execute_command): Replace target_executing check by any_running.
3140 * event-top.c: Include "gdbthread.h".
3141 (display_gdb_prompt, command_handler): Replace target_executing by
3143 * inf-loop.c: Include "gdbthread.h". Don't mark as not executing
3144 here. Replace target_executing by is_running.
3145 * infrun.c (handle_inferior_event): Mark all threads as
3147 * linux-nat.c (linux_nat_resume): Don't mark thread as executing
3149 * stack.c (get_selected_block): Return null if inferior is
3151 * target.c (target_resume): Mark resumed ptid as executing.
3152 * breakpoint.c (until_break_command): Replace target_executing
3153 check by is_executing.
3154 * remote.c (remote_async_resume): Don't mark inferior as executing
3156 * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
3159 * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
3160 (mi_execute_async_cli_command): Replace target_executing by
3163 * frame.c (get_current_frame): Error out if the current thread is
3165 (has_stack_frames): New.
3166 (get_selected_frame, deprecated_safe_get_selected_frame): Check
3169 * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
3172 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3174 * symfile.c (load_command): Reopen the exec file and reread
3175 symbols before anything else.
3177 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3179 * remote-sim.c: Include gdbthread.h.
3180 (remote_sim_ptid): New global.
3181 (gdbsim_create_inferior): Silently add the main task to GDB's
3183 (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
3184 task from GDB's thread list.
3185 (gdbsim_resume): Adjust to use remote_sim_ptid.
3186 (gdbsim_thread_alive, gdbsim_pid_to_str): New.
3187 (init_gdbsim_ops): Register gdbsim_thread_alive and
3189 (_initialize_remote_sim): Initialize remote_sim_ptid.
3190 * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
3192 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3194 * monitor (monitor_ptid): New global.
3195 (monitor_open): Silently add the main task to GDB's thread list.
3196 (monitor_close, monitor_mourn_inferior): Silently delete the main
3197 task from GDB's thread list.
3198 (monitor_thread_alive, monitor_pid_to_str): New.
3199 (init_base_monitor_ops): Register monitor_thread_alive and
3201 (_initialize_remote_monitors): Initialize monitor_ptid.
3203 * gdbthread.h (delete_thread_silent): Declare.
3204 * thread.c (delete_thread): Rename to ...
3205 (delete_thread_1): ... this. Add "silent" parameter. If silent,
3206 don't do exit notifications.
3207 (delete_thread, delete_thread_silent): New, as wrappers to
3210 2008-07-08 Pedro Alves <pedro@codesourcery.com>
3212 * breakpoint.c (update_global_location_list): Add boolean
3213 "should_insert" argument. Only insert locations if caller told it
3215 (update_global_location_list_nothrow): Add boolean "should_insert"
3216 argument. Pass it to update_global_location_list.
3217 (insert_breakpoints, create_longjmp_breakpoint)
3218 (create_overlay_event_breakpoint, enable_overlay_breakpoints)
3219 (create_thread_event_breakpoint, create_solib_event_breakpoint)
3220 (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
3221 (enable_watchpoints_after_interactive_call_stop)
3222 (set_momentary_breakpoint, create_breakpoints)
3223 (break_command_really, watch_command_1)
3224 (create_ada_exception_breakpoint, update_breakpoint_locations)
3225 (do_enable_breakpoint, enable_command): Pass true to
3226 update_global_location_list.
3227 (bpstat_stop_status, disable_overlay_breakpoints)
3228 (disable_watchpoints_before_interactive_call_start)
3229 (delete_breakpoint, disable_breakpoint, disable_command): Pass
3230 false to update_global_location_list.
3231 (update_breakpoints_after_exec): Don't temporarily disable
3232 always-inserted mode.
3234 2008-07-08 Pedro Alves <pedro@codesourcery.com>
3236 * breakpoint.c (mark_breakpoints_out): Make public.
3237 (update_breakpoints_after_exec): Don't call mark_breakpoints_out
3238 here. Update comment.
3239 * breakpoint.h (mark_breakpoints_out): Declare.
3241 * linux-nat.c (linux_handle_extended_wait): On
3242 TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
3243 * inf-ttrace.c (inf_ttrace_wait): Likewise.
3245 2008-07-08 Pedro Alves <pedro@codesourcery.com>
3247 * infrun.c (follow_exec): Reset shared libraries before adding the
3250 2008-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3252 * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
3254 2008-07-07 Pedro Alves <pedro@codesourcery.com>
3256 * i386-dicos-tdep.c: Include "inferior.h".
3257 (i386_dicos_frame_align): New.
3258 (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call
3259 dummy location ON_STACK.
3260 * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
3262 2008-07-07 Joel Brobecker <brobecker@adacore.com>
3264 * gstdint.h: New file.
3266 2008-07-05 Vladimir Prus <vladimir@codesourcery.com>
3268 * mi/mi-interp.c (mi_on_resume): Don't try to report
3269 resumed thread it the thread list is empty.
3271 2008-07-05 Pierre Muller <muller@ics.u-strasbg.fr>
3273 * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
3274 completer for set to filename_completer.
3278 2008-07-04 Vladimir Prus <vladimir@codesourcery.com>
3280 Implement -target-attach.
3281 * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
3283 2008-06-21 Hui Zhu <teawater@gmail.com>
3285 * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
3287 2008-07-03 Pedro Alves <pedro@codesourcery.com>
3289 * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
3290 * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
3292 * target.h (struct target_ops): Add to_attach_no_wait member.
3293 (target_attach_no_wait): New.
3294 * target.c (update_current_target): Inherit to_attach_no_wait.
3296 * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
3297 target_attach_no_wait runtime check.
3299 * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
3300 * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
3303 2008-07-03 Pedro Alves <pedro@codesourcery.com>
3305 * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
3306 on debug_displaced being set.
3308 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
3310 * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
3311 directly instead of get_frame_id.
3313 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
3315 * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
3316 (deal_with_atomic_sequence): Update BC masks.
3317 (rs6000_gdbarch_init): Init displaced stepping infra-structure.
3318 Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
3320 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
3322 * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
3323 register, not the previous frame's.
3325 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
3327 * source.c (select_source_symtab): Make sure we skip namespace
3328 symtabs when showing cpp source code.
3330 2008-06-30 Hans-Peter Nilsson <hp@axis.com>
3332 * MAINTAINERS (Authorized committers): Fix my email address.
3334 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
3336 * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
3337 -target-download and -target-select via CLI, so that
3338 the quoting rules are the same as they were (unfortunately)
3339 in all prior gdb releases.
3340 * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
3341 (mi_cmd_target_download, mi_cmd_target_select): Remove.
3342 * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
3343 (mi_cmd_target_download, mi_cmd_target_select): Remove.
3344 (mi_cmd_execute): Set current_token even for commands
3347 2008-06-28 Ulrich Weigand <uweigand@de.ibm.com>
3349 * alphafbsd-tdep.c: Update for unwinder changes.
3350 * alpha-linux-tdep.c: Likewise.
3351 * alphanbsd-tdep.c: Likewise.
3352 * alphaobsd-tdep.c: Likewise.
3353 * avr-tdep.c: Likewise.
3354 * cris-tdep.c: Likewise.
3355 * frv-linux-tdep.c: Likewise.
3356 * frv-tdep.c: Likewise.
3357 * h8300-tdep.c: Likewise.
3358 * hppa-linux-tdep.c: Likewise.
3359 * iq2000-tdep.c: Likewise.
3360 * m32c-tdep.c: Likewise.
3361 * m32r-linux-tdep.c: Likewise.
3362 * m32r-tdep.c: Likewise.
3363 * m68hc11-tdep.c: Likewise.
3364 * mep-tdep.c: Likewise.
3365 * mn10300-tdep.c: Likewise.
3366 * mt-tdep.c: Likewise.
3367 * score-tdep.c: Likewise.
3368 * sh64-tdep.c: Likewise.
3369 * sh-tdep.c: Likewise.
3370 * sparc64fbsd-tdep.c: Likewise.
3371 * sparc64nbsd-tdep.c: Likewise.
3372 * sparc64obsd-tdep.c: Likewise.
3373 * v850-tdep.c: Likewise.
3374 * vaxobsd-tdep.c: Likewise.
3375 * vax-tdep.c: Likewise.
3376 * xstormy16-tdep.c: Likewise.
3378 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
3380 * mi/mi-main.c (enum captured_mi_execute_command_actions)
3381 (captured_mi_execute_command_args): Remove.
3382 (captured_mi_execute_command): Cast the closure to mi_parse
3383 pointer, not to captured_mi_execute_command_args, and don't
3384 set the action field thereof.
3385 (mi_execute_command): Pass struct mi_parse, not
3386 captured_mi_execute_command_args to captured_mi_execute_command.
3387 (mi_execute_command): Remove (dead) code for suppressing
3390 2008-06-28 Pedro Alves <pedro@codesourcery.com>
3392 * linux-nat.c (enum sigchld_state): New.
3393 (linux_nat_async_events_state): Renamed from
3394 linux_nat_async_events_enabled.
3395 (linux_nat_event_pipe_push, my_waitpid): Adjust.
3396 (sigchld_default_action): New.
3397 (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
3399 (linux_nat_create_inferior): Set events state to sigchld_default
3401 (linux_nat_resume): Adjust.
3402 (linux_nat_wait): Call linux_nat_async_events unconditionally.
3403 (sigchld_handler): Adjust.
3404 (linux_nat_async_mask): Don't set SIGCHLD actions here.
3405 (get_pending_events): Adjust.
3406 (linux_nat_async_events): Rewrite to handle enum sigchld_state
3407 instead of a boolean.
3408 (linux_nat_async): Adjust.
3409 (_initialize_linux_nat): Capture default SIGCHLD action into
3410 sigchld_default_action.
3412 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
3414 * breakpoint.c (moribund_locations): New.
3415 (bpstat_stop_status): Process moribund locations.
3416 (update_global_location_list): Add removed
3417 locations to moribund_locations.
3418 (breakpoint_retire_moribund): New.
3419 * breakpoint.h (struct bp_location): New field
3420 events_till_retirement.
3421 (breakpoint_retire_moribund): Declare.
3422 * thread.c (thread_count): New.
3423 * infrun.c (handle_inferior_event): Call
3424 breakpoint_retire_moribund.
3425 * gdbthread.h (thread_count): Declare.
3427 2008-06-27 Joseph Myers <joseph@codesourcery.com>
3429 * dfp.c (decimal_convert): Call match_endianness before and after
3432 2008-06-27 Jonathan Larmour <jifl@eCosCentric.com>
3434 * remote.c (remote_insert_breakpoint): Ensure that if Z0
3435 unsupported and we fall back to memory_insert_breakpoint, we
3436 use the unmodified requested address.
3438 2008-06-27 Joel Brobecker <brobecker@adacore.com>
3440 * dwarf2read.c (read_attribute_value): Issue a complaint when
3441 adjusting size attribute values of 0xffffffff as zero.
3443 2008-06-27 Joseph Myers <joseph@codesourcery.com>
3445 * i386-tdep.c (i386_16_byte_align_p): New.
3446 (i386_push_dummy_call): Determine stack space required for
3447 arguments going forwards allowing for 16-byte alignment, then push
3448 arguments going forwards.
3450 2008-06-27 Pedro Alves <pedro@codesourcery.com>
3452 * infrun.c (start_remote): Don't clear thread list here.
3453 * monitor.c (monitor_open): Include "gdbthread.h". Clear thread
3455 * remote.c (record_currthread): Upgrade the main thread and its
3456 entry in the thread list if this is the first time we hear about
3458 (remote_thread_alive): Consider magic_null_ptid or a ptid without
3459 a tid member always alive.
3460 (remote_find_new_threads): Don't update the main thread here.
3461 (remote_start_remote): Clear thread list here. Always add the
3463 (extended_remote_attach_1): Add the main thread here.
3464 (extended_remote_mourn_1): Re-add the main thread here.
3465 (extended_remote_create_inferior_1): Add a main thread.
3467 * Makefile.in (monitor.o): Depend on $(gdbthread_h).
3469 2008-06-27 Pedro Alves <pedro@codesourcery.com>
3471 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
3473 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
3475 (general_thread, continue_thread): Change type to ptid_t.
3476 (record_currthread): Take a ptid_t parameter instead of an
3478 (MAGIC_NULL_PID): Delete.
3479 (set_thread): Take a ptid_t parameter and adjust.
3480 (set_general_thread, set_continue_thread): New.
3481 (remote_thread_alive, remote_newthread_step)
3482 (remote_current_thread, remote_find_new_threads)
3483 (remote_threads_info, remote_start_remote, remote_vcont_resume)
3484 (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
3485 (threadalive_test, remote_pid_to_str)
3486 (remote_get_thread_local_address): Adjust.
3487 (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
3488 and any_thread_ptid.
3490 2008-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3492 * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
3493 * configure: Regenerated.
3495 2008-06-26 Joel Brobecker <brobecker@adacore.com>
3497 * dwarf2read.c (read_attribute_value): Treat size attribute
3498 values of 0xffffffff as if the attribute value was zero.
3500 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
3502 * linux-nat.c: Add description of overall logic.
3504 2008-06-26 Daniel Jacobowitz <dan@codesourcery.com>
3506 * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
3507 (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
3508 all dependencies on $(gdb_stdint_h).
3509 (distclean): Do not delete gdb_stdint.h.
3510 * acinclude.m4: Do not use stdint.m4.
3511 * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
3512 uintptr_t, and gdb_stdint.h.
3513 * defs.h: Include <stdint.h>.
3514 * gdb_thread_db.h: Assume stdint.h is already included.
3515 * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
3516 rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
3517 include gdb_stdint.h.
3518 * configure, config.in: Regenerate.
3520 2008-06-26 Joseph Myers <joseph@codesourcery.com>
3522 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
3523 decimal floating-point values in GPRs for soft-float.
3524 (do_ppc_sysv_return_value): Handle returning decimal
3525 floating-point values in GPRs for soft-float.
3527 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
3529 * target.c (target_read_until_error): New.
3530 * target.h (target_read_until_error): Declare.
3531 * mi/mi-main.c (mi_cmd_data_read_memory): Use
3532 target_read_until_error.
3534 2008-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3536 Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
3537 * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
3538 after the DECFLOAT detection to fix a memory leak. Remove the
3539 redundant NUM initialization. Protect the DECFLOAT detection memory
3540 access before the P block. Restore the P memory content for the
3543 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
3545 Kill the return value for all MI command functions.
3546 * mi/mi-cmds.h (enum mi_cmd_result): Remove.
3547 (mi_cmd_argv_ftype): Change return type to void.
3549 * mi/mi-main.c: Adjust all function that implement
3550 MI commands to return nothing.
3551 (struct captured_mi_execute_command_actions):
3552 Remove the rc field.
3553 (mi_cmd_execute): Return nothing.
3554 (mi_execute_async_cli_command): Return nothing.
3555 (mi_cmd_exec_interrupt): Don't print ^done here.
3556 (mi_cmd_target_select): Don't print ^connected here.
3557 (captured_mi_execute_command): Don't check for MI_CMD_DONE.
3558 Special-case -target-select and output ^connected, not ^done.
3560 * mi/mi-cmd-break.c: Adjust.
3561 * mi/mi-cmd-disas.c: Adjust.
3562 * mi/mi-cmd-env.c: Adjust.
3563 * mi/mi-cmd-file.c: Adjust.
3564 * mi/mi-cmd-stack.c: Adjust.
3565 * mi/mi-cmd-target.c: Adjust.
3566 * mi/mi-cmd-var.c: Adjust.
3567 * mi/mi-interp.c: Adjust.
3568 * mi/mi-symbol-cmds.c: Adjust.
3570 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
3572 Emit ^running via observer.
3573 * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
3575 (mi_on_resume): Print ^running if not previously output.
3576 * mi/mi-main.c (running_result_record_printed): New.
3577 (captured_mi_execute_command): Reset
3578 running_result_record_printed. Use running_result_record_printed
3579 to decide if we should skip ^done.
3580 (mi_execute_async_cli_command): Don't print ^running here.
3581 * mi/mi-main.h (current_token, running_result_record_printed):
3584 2008-06-24 Michael Snyder <msnyder@specifix.com>
3586 * infrun.c (_initialize_infrun): White space and typo fix.
3588 2008-06-23 Christopher Faylor <me.gdb.changelog@cgf.cx>
3590 * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
3591 (do_initial_win32_stuff): Fix problem with inability to set breakpoints
3592 when first loading DLL with "dll" command.
3594 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3596 * gnu-nat.c (proc_string): Use capital T for "Thread".
3598 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3600 * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
3602 2008-06-18 Joel Brobecker <brobecker@adacore.com>
3604 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
3605 the target cannot run.
3607 2008-06-18 Joel Brobecker <brobecker@adacore.com>
3609 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
3610 we're attaching to a running process.
3612 2008-06-18 Pierre Muller <muller@ics.u-strasbg.fr>
3614 * win32-nat.c (handle_load_dll): Give dll name and load address
3615 if debug_events is on.
3616 (handle_unload_dll): Likewise.
3618 2008-06-14 Vladimir Prus <vladimir@codesourcery.com>
3620 Don't suppress *running when doing finish.
3621 * infcall.c (call_function_by_hand): Set both
3622 suppress_resume_observer and suppress_stop_observer.
3623 * infcmd.c (suppress_run_stop_observers): Split into...
3624 (suppress_resume_observer, suppress_stop_observer): ...those.
3625 (finish_command_continuation): Clear suppress_stop_observer.
3626 (finish_command): Set suppress_stop_observer.
3627 * inferior.h (suppress_run_stop_observers): Split into...
3628 (suppress_resume_observer, suppress_stop_observer): ...those.
3629 * infrun.c (normal_stop): Check for suppress_stop_observer.
3630 * thread.c (set_running): Check for suppress_resume_observer.
3632 2008-06-12 Pedro Alves <pedro_alves@portugalmail.pt>
3633 Pierre Muller <muller@ics.u-strasbg.fr>
3635 * gdbarch.sh (gdbarch_skip_main_prologue): New.
3636 * gdbarch.h, gdbarch.c: Regenerate.
3637 * i386-tdep.h (i386_skip_main_prologue): Declare.
3638 * i386-tdep.c (i386_skip_main_prologue): New.
3639 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
3640 i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
3641 * symtab.c (find_function_start_sal): When pc points at the "main"
3642 function, call gdbarch_skip_main_prologue.
3644 2008-06-11 Daniel Jacobowitz <dan@codesourcery.com>
3646 * value.c (value_primitive_field): Fetch lazy register values.
3648 2008-06-11 Pedro Alves <pedro@codesourcery.com>
3650 * NEWS: Mention support removal of undocumented S AA p PID stop
3653 * remote.c (remote_wait): Remove undocumented S AA p PID support.
3655 2008-06-10 Stan Shebs <stan@codesourcery.com>
3657 * MAINTAINERS: Update my affiliation and address.
3659 2008-06-10 Andreas Schwab <schwab@suse.de>
3661 * top.c (print_gdb_version): Don't print final newline.
3663 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
3666 * Makefile.in: Update dependencies.
3667 * gdbthread.h (struct thread_info): New field
3669 (set_running, is_running): New.
3670 * thread.c (set_running, is_running): New.
3671 * inferior.h (suppress_normal_stop_observer): Rename to...
3672 (suppress_run_stop_observers): ..this.
3673 * infcmd.c (suppress_normal_stop_observer): Rename to...
3674 (suppress_run_stop_observers): ..this.
3675 (finish_command_continuation, finish_command): Adjust.
3676 * infcall.c (call_function_by_hand): Adjust.
3677 * infrun.c (normal_stop): Call set_running.
3678 * target.c (target_resume): New. Call set_running.
3679 * target.h (target_resume): Convert from macro to
3682 * mi/mi-interp.c (mi_on_resume): New.
3683 (mi_interpreter_init): Register mi_on_resume.
3685 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
3687 Use observers to report stop events in MI.
3688 * mi/mi-interp.c (mi_on_normal_stop): New.
3689 (mi_interpreter_init): Register mi_on_normal_stop.
3690 (mi_interpreter_exec_continuation): Remove.
3691 (mi_cmd_interpreter_exec): Don't register the above.
3692 * mi/mi-main.c (captured_mi_execute_command): Don't care
3693 about sync_execution.
3694 (mi_execute_async_cli_command): Don't install continuation. Don't
3696 (mi_exec_async_cli_cmd_continuation): Remove.
3698 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
3700 Suppress normal stop observer when it's problematic.
3701 * inferior.h (suppress_normal_stop_observer): New.
3702 * infcall.c (call_function_by_hand): Disable stop events when
3703 doing function calls.
3704 * infmcd.c (suppress_normal_stop_observer): New.
3705 (finish_command_continuation): Call normal_stop observer
3707 (finish_command): Disable stop events inside proceed.
3708 * infrun.c (normal_stop): Don't call normal stop observer if
3709 suppressed of if multi-step is in progress.
3711 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
3714 * infrun.c (finish_command): Don't pass cleanup
3716 (finish_command_continuation): Don't grab cleanup from
3717 the passed data, as we don't use, and cannot, use it anyway.
3719 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
3721 Introduce common cleanup for restoring integers.
3722 * defs.h (make_cleanup_restore_integer): New declaration.
3723 (struct cleanup): New field free_arg.
3724 (make_my_cleanup_2): New.
3725 * utils.c (restore_integer_closure, restore_integer)
3726 (make_cleanup_restore_integer): New.
3727 (make_my_cleanup): Initialize the free_arg field and
3728 renamed to make_my_cleanup_2.
3729 (do_my_cleanups): Call free_arg.
3730 (discard_cleanups): Call free_arg.
3731 * breakpoint.c (restore_always_inserted_mode): Remove.
3732 (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
3734 2008-06-09 Doug Evans <dje@google.com>
3736 * remote.c (remote_wait): Include beginning of malformed packet
3739 2008-06-09 Tom Tromey <tromey@redhat.com>
3741 * completer.c (complete_line): Don't special-case
3742 expression_completer.
3743 (expression_completer): Only pass last word to
3745 * c-exp.y (yylex): Check 'token', not 'operator'.
3747 2008-06-09 Daniel Jacobowitz <dan@codesourcery.com>
3749 * configure.ac (build_warnings): Add -Wno-format for mingw.
3750 * configure: Regenerated.
3752 2008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
3754 * NEWS: Make indentation consistent. Move exec tracing entry out
3755 of remote packet list.
3757 2008-06-06 Tom Tromey <tromey@redhat.com>
3759 * value.h (evaluate_subexpression_type, extract_field_op):
3761 * printcmd.c (_initialize_printcmd): Use expression_completer for
3762 'p', 'inspect', 'call'.
3763 * parser-defs.h (parse_field_expression): Declare.
3764 * parse.c: Include exceptions.h.
3765 (in_parse_field, expout_last_struct): New globals.
3766 (mark_struct_expression): New function.
3767 (prefixify_expression): Return int.
3768 (prefixify_subexp): Return int. Use expout_last_struct.
3769 (parse_exp_1): Update.
3770 (parse_exp_in_context): Add 'out_subexp' argument. Handle
3772 (parse_field_expression): New function.
3773 * expression.h (parse_field_expression): Declare.
3774 (in_parse_field): Likewise.
3775 * eval.c (evaluate_subexpression_type): New function.
3776 (extract_field_op): Likewise.
3777 * completer.h (expression_completer): Declare.
3778 * completer.c (expression_completer): New function.
3779 (count_struct_fields, add_struct_fields): New functions.
3780 * c-exp.y (yyparse): Redefine.
3781 (COMPLETE): New token.
3782 (exp): New productions.
3783 (saw_name_at_eof, last_was_structop): New globals.
3784 (yylex): Return COMPLETE when needed. Recognize in_parse_field.
3785 (c_parse): New function.
3786 * breakpoint.c (_initialize_breakpoint): Use expression_completer
3787 for watch, awatch, and rwatch.
3788 * Makefile.in (parse.o): Depend on exceptions_h.
3790 2008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3793 * gdb/valopts.c (find_overload_match): Handle references
3796 2008-06-06 Paul N. Hilfinger <hilfinger@adacore.com>
3798 * ada-lang.c (ada_value_assign): Correct big-endian case to take into
3799 account the bitsize of the 'from' operand.
3801 2008-06-06 Pedro Alves <pedro@codesourcery.com>
3803 * annotate.h (annotate_thread_changed): Declare.
3805 2008-06-06 Nick Roberts <nickrob@snap.net.nz>
3807 * annotate.c (annotate_thread_changed): New function.
3808 * thread.c (thread_command) : Use it.
3809 * infrun.c (normal_stop): Use it.
3811 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
3812 Nathan Sidwell <nathan@codesourcery.com>
3813 Joseph Myers <joseph@codesourcery.com>
3815 * acinclude.m4: Include ../config/acx.m4.
3816 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
3817 * configure, config.in: Regenerate.
3818 * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
3820 * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
3822 2008-06-05 Pedro Alves <pedro@codesourcery.com>
3824 Replace 'target async' by 'maintenance set remote-async' and
3825 'target remote' combination.
3827 * remote.c (remote_async_wait): Merge into remote_wait, and
3829 (remote_async_permitted, remote_async_permitted_set): New
3831 (set_maintenance_remote_async_permitted)
3832 (show_maintenance_remote_async_permitted): New functions.
3833 (remote_async_ops, extended_async_remote_ops): Delete.
3834 (remote_async_open, extended_remote_async_open): Delete.
3835 (remote_open_1): Drop async_p parameter. Update callers. Replace
3836 async_p with remote_async_permitted checks.
3837 (extended_async_remote_attach): Delete.
3838 (remote_resume, remote_async_resume): Merge and leave remote_resume.
3839 (remote_async_terminal_inferior): Rename to...
3840 (remote_terminal_inferior): ... this, and add
3841 remote_async_termitted check.
3842 (remote_async_terminal_ours): Rename to...
3843 (remote_terminal_ours): ... this, and add remote_async_termitted
3845 (remote_wait, remote_async_wait): Merge and leave remote_wait
3847 (remote_kill, remote_async_kill): Merge and leave remote_kill
3849 (remote_async_mourn, extended_async_remote_mourn): Delete.
3850 (extended_remote_create_inferior_1): Drop async_p parameter.
3851 Update callers. Always use extended_remote_ops.
3852 (extended_remote_async_create_inferior): Delete.
3853 (remote_return_zero): Delete.
3854 (init_remote_ops): Register remote_can_async_p, remote_async,
3855 remote_async_mask, remote_terminal_inferior and
3856 remote_terminal_ours.
3857 (remote_can_async_p, remote_is_async_p): Check for
3858 remote_async_permitted.
3859 (init_remote_async_ops, init_extended_async_remote_ops): Remove.
3860 (set_remote_cmd): Don't add async and extended-async targets.
3861 (_initialize_remote): Add set/show remote-async maintenance
3864 2008-06-05 Pedro Alves <pedro@codesourcery.com>
3866 * remote.c (kill_kludge): Delete.
3867 (remote_wait, remote_async_wait): Don't set it.
3868 (remote_kill, remote_async_kill): Don't do anything with it.
3870 2008-06-05 Pedro Alves <pedro@codesourcery.com>
3872 * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
3874 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
3876 * bcache.c (bcache_data): Call deprecated_bcache_added function.
3877 (deprecated_bcache_added): New function name. Body of function
3878 bcache_data is used here with the addition of 'added' argument.
3879 * bcache.h (deprecated_bcache_added): New function.
3880 * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
3881 work from add_psymbol_to_list - initialises partial symbol and stashes
3882 it in objfile's cache.
3883 (append_psymbol_to_list): New helper function, takes other part of
3884 work from add_psymbol_to_list - adds partial symbol to the given list.
3885 (add_psymbol_to_list): Call helper functions instead of doing work
3886 here. If adding to global list, do not duplicate partial symbols in the
3889 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
3891 * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
3892 'exception caught|thrown' message.
3894 2008-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3896 * Makefile.in: Update dependencies.
3897 * dwarf2expr.c: New include "gdb_assert.h".
3898 (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
3899 (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
3900 (execute_stack_op): Error out on too large RECURSION_DEPTH.
3901 Increase/decrease RECURSION_DEPTH around the function.
3903 2008-06-05 Daniel Jacobowitz <dan@codesourcery.com>
3905 * remote.c (get_offsets): Handle a single segment.
3906 * symfile.c (symfile_map_offsets_to_segments): Allow more bases
3909 2008-06-03 Daniel Jacobowitz <dan@codesourcery.com>
3911 * solib-svr4.c (struct lm_info): Add lm_addr.
3912 (main_lm_addr): New.
3913 (svr4_default_sos): Set lm_addr.
3914 (svr4_current_sos): Set lm_addr and main_lm_addr.
3915 (svr4_fetch_objfile_link_map): Rewrite.
3916 (svr4_clear_solib): Clear main_lm_addr.
3918 2008-06-03 Michael Snyder <msnyder@redhat.com>
3919 Joseph Myers <joseph@codesourcery.com>
3921 * mips-tdep.c (mips_eabi_return_value): Replace stub that always
3922 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
3924 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
3926 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
3928 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
3930 * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
3932 2008-06-01 Joel Brobecker <brobecker@adacore.com>
3934 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
3935 treat pointers in data space as function descriptors if the
3936 target address is also in the data space.
3938 2008-05-30 Joel Brobecker <brobecker@adacore.com>
3940 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
3941 the trad-frame register value for the SP register.
3943 2008-05-29 Mark Kettenis <kettenis@gnu.org>
3945 * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
3947 2008-05-28 Joel Brobecker <brobecker@adacore.com>
3949 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
3950 that identifies function descriptors outside of the .opd section.
3952 2008-05-28 Aleksandar Ristovski <aristovski@qnx.com>
3954 * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
3955 temporary catchpoints. In MI add missing fields 'reason', 'disp',
3957 (print_mention_exception_catchpoint): Add 'Temporary' for temporary
3959 (handle_gnu_v3_exceptions): Use tempflag.
3961 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
3963 Refactor varobj_update interface.
3964 * varobj.c (varobj_update): Report changes as vector. Also
3965 return not just a list of varobj, but a list of special structures
3966 that tell what exactly has changed.
3967 * varobj.h (enum varobj_update_error): Rename to
3968 varobj_scope_status.
3969 (struct varobj_update_result_t): New.
3970 (varobj_update): Adjust prototype.
3971 * mi/mi-cmd-var.c: Adjust for changes.
3973 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
3975 * varobj.c (varobj_update): Fix comment typo.
3978 2008-05-26 Joel Brobecker <brobecker@adacore.com>
3980 Set the symtab field of symbols read from ECOFF debugging entries.
3981 * mdebugread.c (add_symbol): Add new parameter symtab.
3982 (parse_symbol): Update calls to add_symbol throughout.
3984 2008-05-27 Andreas Schwab <schwab@suse.de>
3986 * symtab.h (enum address_class): Remove LOC_REGPARM and
3988 (struct symbol): Add is_argument.
3989 (SYMBOL_IS_ARGUMENT): Define.
3991 * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
3992 * buildsym.c (finish_block): Likewise.
3993 * stack.c (print_frame_args, print_block_frame_locals)
3994 (print_frame_arg_vars): Likewise.
3995 * symtab.c (lookup_block_symbol): Likewise.
3996 * tracepoint.c (add_local_symbols): Likewise.
3997 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
3999 * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
4000 * dwarf2read.c (new_symbol): Likewise.
4001 * mdebugread.c (parse_symbol): Likewise.
4002 * stabsread.c (define_symbol): Likewise.
4004 * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
4005 and LOC_COMPUTED_ARG.
4006 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
4007 * ax-gdb.c (gen_var_ref): Likewise.
4008 * eval.c (evaluate_subexp_for_address): Likewise.
4009 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
4010 * m2-exp.y (yylex): Likewise.
4011 * printcmd.c (address_info): Likewise.
4012 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
4013 * tracepoint.c (collect_symbol, scope_info): Likewise.
4015 2008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
4017 * gdbarch.sh: Added new gdbarch struct
4018 core_regset_sections.
4019 * gdbarch.c: Refreshed.
4020 * gdbarch.h: Refreshed.
4021 * regset.h (core_regset_section): Declared.
4022 * linux-nat.c (linux_nat_do_thread_registers): Added
4023 support for the new gdbarch struct core_regset_sections.
4024 * utils.c (host_address_to_string): New function.
4025 * defs.h (host_address_to_string): New prototype.
4026 * i386-linux-tdep.c (i386_regset_rections): New register
4027 sections list for i386.
4028 (i386_linux_init_abi): Initialized new gdbarch struct
4029 core_regset_sections.
4030 * Makefile.in: Updated to reflect dependency changes.
4031 * ppc-linux-tdep.c (ppc_regset_sections): Register
4032 sections list for ppc.
4033 (ppc_linux_init_abi): Initialized new gdbarch struct
4034 core_regset_sections
4036 2008-05-24 Andreas Schwab <schwab@suse.de>
4038 * linespec.c (decode_objc): Save current language around call to
4041 2008-05-23 Joel Brobecker <brobecker@adacore.com>
4043 * valprint.h (get_array_bounds): Renames get_array_low_bound.
4044 * valprint.c (get_array_bounds): Renames get_array_low_bound.
4045 Return the proper bound value if the array index type is an
4046 enumerated type. Compute the high bound if requested.
4047 (val_print_array_elements): Handle the case when the array
4048 element has a null size.
4049 * ada-valprint.c (print_optional_low_bound): Add handling
4050 for empty arrays or arrays of zero-size elements.
4051 (ada_val_print_array): New function, extracted out from
4052 ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
4053 handle empty arrays and arrays of zero-size elements.
4054 (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
4055 code by call to ada_val_print_array.
4056 (ada_value_print): Remove handling of null array. The handling
4057 was incomplete and is now better handled by ada_val_print_array.
4059 2008-05-23 Markus Deuling <deuling@de.ibm.com>
4061 * annotate.c (annotate_source, annotate_frame_begin): Replace
4062 deprecated_print_address_numeric with paddress.
4063 * cli/cli-cmds.c (list_command, edit_command): Likewise.
4064 * tui/tui-stack.c (tui_make_status_line): Likewise.
4066 * defs.h (deprecated_print_address_numeric): Remove.
4067 * printcmd.c (deprecated_print_address_numeric): Remove.
4068 * maint.c (maint_print_section_info): Fix comment.
4070 2008-05-23 Markus Deuling <deuling@de.ibm.com>
4072 * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
4073 print_binary_chars, print_char_chars): Add byte_order parameter and
4074 replace gdbarch_byte_order.
4075 (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
4076 expressions and remove them. Remove unused TWO_TO_FOURTH.
4077 (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
4078 endianness. Update call to print_hex_chars.
4079 * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
4080 print_binary_chars, print_char_chars): Add byte_order parameter.
4081 * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
4082 get at the endianness. Update print_*_char calls to use byte_order.
4084 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
4086 * symtab.h (struct symbol): Make "aux_value" member a void pointer
4088 (SYMBOL_LOCATION_BATON): Update.
4090 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
4092 * symtab.h (enum address_class): Remove LOC_BASEREG and
4094 (struct symbol): Remove "basereg" member of "aux_value" union.
4095 (SYMBOL_BASEREG): Remove.
4097 * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
4099 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
4100 (ada_add_block_symbols): Likewise.
4101 * ax-gdb.c (gen_var_ref): Likewise.
4102 * buildsym.c (finish_block): Likewise.
4103 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
4104 * m2-exp.y (yylex): Likewise.
4105 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
4106 * printcmd.c (address_info): Likewise.
4107 * stack.c (print_frame_args, print_block_frame_locals): Likewise.
4108 (print_frame_arg_vars): Likewise.
4109 * symmisc.c (print_symbol): Likewise.
4110 * symtab.c (lookup_block_symbol): Likewise.
4111 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
4112 (scope_info): Likewise.
4114 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
4116 * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
4118 * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
4119 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
4120 (ada_add_block_symbols): Likewise.
4121 * ax-gdb.c (gen_var_ref): Likewise.
4122 * buildsyms.c (finish_block): Likewise.
4123 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
4124 * m2-exp.y (yylex): Likewise.
4125 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
4126 * printcmd.c (address_info): Likewise.
4127 * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
4128 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
4129 * symtab.c (lookup_block_symbol): Likewise.
4130 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
4131 (scope_info): Likewise.
4133 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
4135 * symtab.h (enum address_class): Remove LOC_INDIRECT and
4136 LOC_HP_THREAD_LOCAL_STATIC.
4138 * findvar.c (symbol_read_needs_frame, read_var_value): Do not
4139 handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
4140 (read_var_value): Likewise.
4141 * buildsym.c (finish_block): Likewise.
4142 * objfiles.c (objfile_relocate): Likewise.
4143 * printcmd.c (address_info): Likewise.
4144 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
4145 * tracepoint.c (scope_info): Likewise.
4147 2008-05-21 Markus Deuling <deuling@de.ibm.com>
4148 Maxim Grigoriev <maxim2405@gmail.com>
4150 * xtensa-tdep.c (xtensa_read_register): Remove.
4151 (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
4152 argument litbase to call0_frame_cache().
4153 (call0_track_op, call0_analyze_prologue)
4154 (call0_frame_cache): Use extra argument litbase.
4156 2008-05-21 Joel Brobecker <brobecker@adacore.com>
4158 * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
4160 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
4162 * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
4164 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
4166 * alpha-mdebug-tdep.c: Include "trad-frame.h".
4167 (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
4168 struct trad_frame_saved_reg *.
4169 (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
4170 trad_frame_alloc_saved_regs. Update accesses. Record previous
4171 value of SP as being vfp.
4172 (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
4173 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
4175 2008-05-21 Markus Deuling <deuling@de.ibm.com>
4177 * score-tdep.c (score_print_insn): Get the current endianess from
4178 disassemble_info instead of gdbarch_byte_order.
4180 2008-05-21 Pedro Alves <pedro@codesourcery.com>
4182 * frame.c (get_prev_frame_1): Build frame id before setting
4183 this_frame->prev_p, not after.
4185 2008-05-21 Nick Roberts <nickrob@snap.net.nz>
4187 * annotate.c (annotate_new_thread): New function for new-thread
4189 * annotate.h: (annotate_new_thread): New extern.
4190 * thread.c (add_thread_with_info): Use it.
4191 * Makefile.in (thread.o): Add dependency on annotate.h.
4193 2008-05-20 Joel Brobecker <brobecker@adacore.com>
4195 * win32-nat.c (win32_wait): Block the control-c event while
4196 waiting for a debug event.
4198 2008-05-19 Pedro Alves <pedro@codesourcery.com>
4200 * symtab.h (lookup_symbol_in_language): Update comment.
4201 * symtab.c (lookup_symbol_aux_block): Update comment.
4202 * ada-lang.c (ada_lookup_symbol_list): Update comment.
4204 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
4206 * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
4207 (lookup_symbol): Likewise.
4208 * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
4209 (lookup_symbol): Likewise.
4210 (search_symbols): Update.
4212 * linespec.c (find_methods, collect_methods): Update.
4213 (add_matching_methods, add_constructors): Update.
4214 (decode_compound, decode_dollar, decode_variable): Update.
4215 (lookup_prefix_sym): Update.
4217 (symbol_found): Remove SYM_SYMTAB parameter.
4218 Use SYMBOL_SYMTAB (sym) instead.
4220 * gdbtypes.c (lookup_typename): Update.
4221 (lookup_struct, lookup_union, lookup_enum): Update.
4222 (lookup_template_type): Update.
4223 (check_typedef): Update.
4224 * language.c (lang_bool_type): Update.
4225 * mdebugread.c (parse_procedure): Update.
4226 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4227 * parse.c (write_dollar_variable): Update.
4228 * printcmd.c (address_info): Update.
4229 * source.c (select_source_symtab): Update.
4230 * stack.c (print_frame_args, print_frame_arg_vars): Update.
4231 * valops.c (find_function_in_inferior): Update.
4232 (value_struct_elt_for_reference): Update.
4233 * value.c (value_static_field, value_fn_field): Update.
4235 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4236 * arm-tdep.c (arm_skip_prologue): Update.
4237 * mt-tdep.c (mt_skip_prologue): Update.
4238 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
4240 * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
4241 * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
4242 (add_defn_to_vec): Likewise.
4243 (ada_add_block_symbols): Likewise.
4244 (lookup_cached_symbol, cache_symbol): Likewise.
4245 (standard_lookup): Update.
4246 (ada_lookup_symbol_list): Update.
4248 * c-valprint.c (c_val_print): Update.
4249 * cp-support.c (cp_lookup_rtti_type): Update.
4250 * jv-lang.c (java_lookup_class, get_java_object_type): Update.
4251 * objc-lang.c (lookup_struct_typedef, find_imps): Update.
4252 * p-valprint.c (pascal_val_print): Update.
4253 * scm-lang.c (scm_lookup_name): Update.
4259 * objc-exp.y: Update.
4262 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
4264 * language.h (struct language_defn): Remove SYMTAB parameter from
4265 la_lookup_symbol_nonlocal callback function pointer.
4267 * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
4268 (ada_lookup_encoded_symbol): Likewise.
4269 * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
4270 Always call fixup_symbol_section.
4271 (ada_lookup_symbol): Remove SYMTAB parameter.
4272 (ada_lookup_symbol_nonlocal): Likewise.
4273 * ada-exp.y (write_object_renaming): Update.
4274 (find_primitive_type): Likewise.
4276 * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
4277 (cp_lookup_symbol_namespace): Likewise.
4278 * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
4279 (lookup_symbol_file): Likewise.
4280 (lookup_possible_namespace_symbol): Likewise.
4281 (cp_lookup_symbol_nonlocal): Likewise.
4282 (cp_lookup_symbol_namespace): Likewise.
4283 (cp_lookup_nested_type): Update.
4285 * scm-valprint.c (scm_inferior_print): Update.
4286 * valops.c (value_maybe_namespace_elt): Update.
4288 * solist.h (struct target_so_ops): Remove SYMTAB parameter from
4289 lookup_lib_global_symbol callback function pointer.
4290 (solib_global_lookup): Remove SYMTAB parameter.
4291 * solib.c (solib_global_lookup): Remove SYMTAB parameter.
4292 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
4294 * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
4295 (lookup_symbol_static): Likewise.
4296 (lookup_symbol_global): Likewise.
4297 (lookup_symbol_aux_block): Likewise.
4298 (lookup_global_symbol_from_objfile): Likewise.
4299 * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
4300 (lookup_symbol_aux_local): Likewise.
4301 (lookup_symbol_aux_block): Likewise.
4302 (lookup_symbol_aux_symtabs): Likewise.
4303 (lookup_symbol_aux_psymtabs): Likewise.
4304 (lookup_global_symbol_from_objfile): Likewise.
4305 (basic_lookup_symbol_nonlocal): Likewise.
4306 (lookup_symbol_static): Likewise.
4307 (lookup_symbol_global): Likewise.
4309 (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
4311 2008-05-17 Pedro Alves <pedro@codesourcery.com>
4313 * remote.c (init_extended_remote_ops): Fix typo.
4315 2008-05-16 Pedro Alves <pedro@codesourcery.com>
4317 * NEWS: Mention new DICOS x86 target configuration.
4319 2008-05-16 Pedro Alves <pedro@codesourcery.com>
4320 Ulrich Weigand <uweigand@de.ibm.com>
4322 * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
4323 * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
4325 * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
4326 use it instead of ginfo->value.address. Look up minimal symbol by
4327 address and name. Assume OBJFILE is non-NULL.
4328 (fixup_symbol_section): Ensure we always have an objfile to look
4329 into. Extract and pass to fixup_section the symbol's address that
4330 will match the minimal symbol's address.
4331 (fixup_psymbol_section): Likewise.
4333 (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
4334 overlays and the addrmap returned the wrong section.
4336 * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
4337 calling fixup_symbol_section.
4339 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
4341 * minsyms.c: Include "target.h".
4342 (find_solib_trampoline_target): Handle minimal symbols pointing
4343 to function descriptors as well.
4344 * Makefile.in (minsyms.o): Update dependencies.
4346 * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
4347 (ppc64_standard_linkage1): ... this. Fix optional instructions.
4348 (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
4349 (PPC64_STANDARD_LINKAGE1_LEN): ... this.
4350 (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
4351 (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
4352 (ppc64_standard_linkage_target): Rename to ...
4353 (ppc64_standard_linkage1_target): ... this.
4354 (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
4355 (ppc64_skip_trampoline_code): Support three variants of standard
4356 linkage stubs. Call find_solib_trampoline_target to handle
4359 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
4361 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
4362 ppc64_sysv_abi_adjust_breakpoint_address.
4363 * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
4364 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
4366 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
4368 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
4369 (ppc_linux_init_abi): Install find_solib_trampoline_target instead
4370 of ppc_linux_skip_trampoline_code.
4372 2008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
4374 * gdbarch.sh: Delete dwarf_reg_to_regnum.
4375 * gdbarch.c, gdbarch.h: Regenerated.
4376 * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
4377 hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
4378 s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
4380 2008-05-15 Pedro Alves <pedro@codesourcery.com>
4382 * linux-nat.c (trap_ptid): Delete.
4383 (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
4385 * linux-thread-db.c (thread_db_wait): Adjust.
4387 2008-05-15 Joel Brobecker <brobecker@adacore.com>
4389 * linespec.c (decode_line_1): Fix a couple of comments.
4391 2008-05-15 Alan Modra <amodra@bigpond.net.au>
4393 * dbxread.c: Formatting.
4394 (INTERNALIZE_SYMBOL): Init n_other.
4395 (set_namestring): Take pointer to nlist arg rather than struct
4396 copy. Update all callers.
4398 2008-05-15 Andreas Schwab <schwab@suse.de>
4400 * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
4401 (dwarf2read.o): Add $(addrmap_h).
4403 2008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4405 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
4406 (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
4407 to handle ppc32 PLT entries.
4408 (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
4411 2008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4413 * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
4414 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
4415 lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
4416 (lookup_minimal_symbol_by_pc_section): Use
4417 lookup_minimal_symbol_by_pc_section_1.
4418 (lookup_solib_trampoline_symbol_by_pc): Likewise.
4420 2008-05-13 Joel Brobecker <brobecker@adacore.com>
4422 * findcmd.c: Add #include "gdb_stdint.h".
4423 * Makefile.in (findcmd.o): Update dependencies.
4425 2008-05-11 David S. Miller <davem@davemloft.net>
4427 * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
4428 long double size override, Linux does use 128-bit now.
4430 * sparc-linux-tdep.c (PSR_SYSCALL): Define.
4431 (sparc_linux_write_pc): New function.
4432 (sparc32_linux_init_abi): Register it.
4433 * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
4434 (sparc64_linux_write_pc): New function.
4435 (sparc64_linux_init_abi): Register it.
4437 * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
4438 dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
4440 2008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4442 * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
4443 and info.tdep_info before calling gdbarch_init_osabi.
4445 2008-05-09 Joel Brobecker <brobecker@adacore.com>
4447 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
4448 the type of the right hand side of the assignment to the type
4449 of the left hand side if the left hand side is a convenience
4452 2008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
4454 * NEWS: Mention gdbserver bi-arch capability.
4456 2008-05-09 Doug Evans <dje@google.com>
4459 * NEWS: Document find command and qSearch:memory packet.
4460 * Makefile.in (SFILES): Add findcmd.c.
4461 (COMMON_OBJS): Add findcmd.o.
4462 (findcmd.o): New rule.
4463 * findcmd.c: New file.
4464 * target.h (target_ops): New member to_search_memory.
4465 (simple_search_memory): Declare.
4466 (target_search_memory): Declare.
4467 * target.c (simple_search_memory): New fn.
4468 (target_search_memory): New fn.
4469 * remote.c (PACKET_qSearch_memory): New packet kind.
4470 (remote_search_memory): New fn.
4471 (init_remote_ops): Init to_search_memory.
4472 (init_extended_remote_ops): Ditto.
4473 (_initialize_remote): Add qSearch:memory packet config command.
4475 2008-05-09 Eli Zaretskii <eliz@gnu.org>
4477 * thread.c (_initialize_thread): Don't use commas and periods in
4478 first line of doc string of "set/show print thread-events".
4480 2008-05-08 Joel Brobecker <brobecker@adacore.com>
4482 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
4483 Update for unwinder changes.
4485 2008-05-08 Joel Brobecker <brobecker@adacore.com>
4487 * frame.c (get_frame_base_address, get_frame_locals_address)
4488 (get_frame_args_address): Pass the correct frame when calling
4489 frame_base_find_by_frame.
4491 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4493 * remote.c (extended_remote_attach_1): Call target_find_description.
4495 2008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
4497 * remote.c (extended_remote_create_inferior_1): Clean up
4498 before marking the target running.
4500 2008-05-08 Joel Brobecker <brobecker@adacore.com>
4502 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
4505 2008-05-07 Joel Brobecker <brobecker@adacore.com>
4507 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
4508 sparc64-sol2-tdep.c: Update for unwinder changes.
4510 2008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
4512 * cp-support.c (mangled_name_to_comp): Initialize storage.
4513 (unqualified_name_from_comp): Likewise.
4515 2008-05-07 Jie Zhang <jie.zhang@analog.com>
4517 * remote.c (remote_insert_breakpoint): Call get_remote_state
4518 after gdbarch_breakpoint_from_pc is called.
4519 (remote_insert_hw_breakpoint): Likewise.
4521 2008-05-06 Joel Brobecker <brobecker@adacore.com>
4523 * valprint.c (val_print): Add new language parameter and use it
4524 instead of using the current_language. Update calls to val_print
4526 (common_val_print): Add new langauge parameter and pass it to
4528 * value.h (struct language_defn): Add opaque declaration.
4529 (val_print, common_val_print): Update declarations.
4530 * stack.c (print_frame_args): Update call to common_val_print
4531 using the appropriate language.
4532 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
4533 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
4534 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
4535 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
4536 #include "language.h" if necessary.
4537 Update calls to val_print and common_val_print.
4538 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
4539 Update dependencies.
4541 2008-05-06 Joel Brobecker <brobecker@adacore.com>
4543 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
4544 pointing inside a non-executable section as function descriptors.
4546 2008-05-06 Pedro Alves <pedro@codesourcery.com>
4548 * inf-loop.c (inferior_event_handler): Run all continuations and
4549 print any language change before running the breakpoint commands.
4551 2008-05-06 Joel Brobecker <brobecker@adacore.com>
4553 * frame-unwind.c (frame_unwind_got_bytes): New function.
4554 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
4555 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
4556 for unwinder changes.
4558 2008-05-05 Doug Evans <dje@google.com>
4560 * NEWS: Mention new /m modifier for disassemble command.
4561 * cli/cli-cmds.c (print_disassembly): New function.
4562 (disassemble_current_function): New function
4563 (disassemble_command): Recognize /m modifier, print mixed
4565 (init_cli_cmds): Update disassemble help text.
4567 2008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
4569 * xtensa-tdep.c: Update for unwinder changes.
4571 2008-05-05 Andreas Schwab <schwab@suse.de>
4573 Update m68k port for unwinder changes.
4574 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
4575 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
4576 (m68k_frame_unwind): Use default_frame_sniffer.
4577 (m68k_frame_sniffer): Remove.
4578 (m68k_frame_base_address): Expect this_frame.
4579 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
4581 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
4582 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
4583 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
4584 parameter instead of pc value.
4585 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
4587 (m68k_linux_sigtramp_frame_this_id)
4588 (m68k_linux_sigtramp_frame_prev_register)
4589 (m68k_linux_sigtramp_frame_sniffer): Update signature.
4590 (m68k_linux_sigtramp_frame_unwind): Use
4591 m68k_linux_sigtramp_frame_sniffer.
4592 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
4594 * m68klinux-nat.c (store_register): Fix typo.
4596 2008-05-05 Pedro Alves <pedro@codesourcery.com>
4598 * infcmd.c (step_1): Put thread id on the stack to avoid possible
4601 2008-05-05 Luis Machado <luisgpm@br.ibm.com>
4603 * symfile.c (reread_symbols): Update objfile's entry point.
4605 2008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
4606 Joel Brobecker <brobecker@adacore.com>
4608 * ada-lang.c: Update throughout to use symbol_matches_domain
4609 instead of matching the symbol domain explictly.
4610 * dwarf2read.c (add_partial_symbol): Do not add new psym for
4611 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
4612 class as typedefs. See lookup_partial_symbol function.
4613 (new_symbol): Similar to add_partial_symbol, do not create
4614 symbol for the typedef. See lookup_block_symbol.
4615 * symtab.c (symbol_matches_domain): New function, takes care
4616 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
4617 (lookup_partial_symbol): Use symbol_matches_domain to see if the
4618 found psym domain matches the given domain.
4619 (lookup_block_symbol): Likewise.
4621 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
4623 * top.c (command_line_handler_continuation): Remove.
4624 (execute_command): Do not install the above.
4626 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
4628 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
4629 and catch all exceptions from it.
4630 * top.c (command_line_handler_continuation): Don't
4631 call bpstat_do_action here.
4633 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
4635 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
4636 (struct die_info): Remove type.
4637 (read_type_die, read_typedef, read_base_type, read_subrange_type)
4638 (read_structure_type, read_enumeration_type, read_array_type)
4639 (read_tag_pointer_type, read_tag_ptr_to_member_type)
4640 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
4641 (read_tag_string_type, read_subroutine_type, read_set_type)
4642 (read_unspecified_type): Delete prototypes. Remove check for
4643 already-loaded type. Return the new type.
4644 (set_die_type): Return the new type.
4645 (reset_die_and_siblings_types): Delete.
4646 (load_comp_unit, load_full_comp_unit): Set type_hash.
4647 (process_queue): Remove call to reset_die_and_siblings_types.
4648 (process_die): Do not read most types here. Use read_type_die
4650 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
4651 (quirk_gcc_member_function_pointer): Return the new type.
4652 (process_structure_scope, process_enumeration_scope): Use
4653 get_die_type and read the DIE's type.
4654 (read_full_die): Do not initialize die->type.
4655 (tag_type_to_type): Use read_type_die.
4656 (read_type_die): Check for already defined types. Return the
4658 (determine_prefix): Use get_die_type.
4659 (set_die_type): Return the type.
4660 (get_die_type): Take a CU argument. Check for no type_hash.
4662 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
4664 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
4667 2008-05-04 Pedro Alves <pedro@codesourcery.com>
4669 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
4670 and bp_longjmp_resume breakpoints.
4671 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
4673 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
4674 breakpoints. Create bp_longjmp breakpoints as momentary
4676 (enable_longjmp_breakpoint): Delete.
4677 (set_longjmp_breakpoint): New.
4678 (disable_longjmp_breakpoint): Delete.
4679 (delete_longjmp_breakpoint): New.
4680 (set_longjmp_resume_breakpoint): Delete.
4681 (set_momentary_breakpoint_at_pc): New.
4682 (breakpoint_re_set_one): Don't delete bp_longjmp and
4683 bp_longjmp_resume breakpoints.
4684 (breakpoint_re_set): Don't create longjmp and longjmp-resume
4687 * infrun.c (step_resume_breakpoint): Add comment.
4688 (struct execution_control_state): Delete handling_longjmp member.
4689 (init_execution_control_state). Don't clear handling_longjmp.
4690 (context_switch): Don't context switch handling_longjmp.
4691 (handle_inferior_event): If handling a bp_longjmp breakpoint,
4692 create a bp_longjmp_resume breakpoint, and set it as current
4693 step_resume_breakpoint, then step over the longjmp breakpoint. If
4694 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
4695 breakpoint, delete the longjmp-resume breakpoint, and stop
4697 (currently_stepping): Remove handling_longjmp from expression.
4698 (insert_step_resume_breakpoint_at_sal): Update comment.
4699 (insert_longjmp_resume_breakpoint): New.
4701 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
4702 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
4704 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
4705 (set_longjmp_resume_breakpoint): Delete declaration.
4707 * gdbthread.h (save_infrun_state): Remove handling_longjmp
4709 (load_infrun_state): Delete *handling_longjmp parameter.
4710 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
4712 (load_infrun_state): Delete *handling_longjmp parameter. Update
4715 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
4716 (delete_longjmp_breakpoint_cleanup): New.
4717 (step_1): Call set_longjmp_breakpoint instead of
4718 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
4719 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
4720 (step_1_continuation): Pass thread id in the continuation args to
4722 (step_once): Add thread parameter. Pass thread id the the
4725 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4727 Set CU BASE_ADDRESS already from partial DIEs.
4728 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
4729 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
4730 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
4731 from these variables if it was still unset.
4733 * Makefile.in: Update dependencies.
4734 * dwarf2read.c: Include "addrmap.h"
4735 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
4736 (dwarf2_ranges_read): New prototype.
4737 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
4738 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
4739 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
4740 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
4741 comment for it. Add the found ranges to RANGES_PST. New variable
4742 BASEADDR, initialize it the common way.
4743 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
4744 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
4745 HAS_RANGES_OFFSET for the later processing.
4746 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
4747 * symtab.c: Include "addrmap.h"
4748 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
4749 Move the psymtab locator into ...
4750 (find_pc_sect_psymtab_closer): ... a new function.
4752 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
4754 * arch-utils.c (gdbarch_update_p): Use default values for
4755 info.abfd and info.target_desc if they are NULL.
4756 (gdbarch_from_bfd): Remove assertion.
4757 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
4758 using the current target description.
4759 (gdbarch_info_fill): Do not use default values for info->abfd
4760 and info->target_desc.
4762 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4764 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
4766 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
4768 * inferior.h (read_pc_pid, write_pc_pid): Remove.
4769 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
4771 * regcache.c (read_pc_pid): Remove, replace by ...
4772 (regcache_read_pc): ... this function.
4773 (write_pc_pid): Remove, replace by ...
4774 (regcache_write_pc): ... this function.
4775 (read_pc, write_pc): Update.
4777 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
4778 write_pc_pid by regcache_read_pc and regcache_write_pc.
4779 (displaced_step_fixup): Likewise.
4780 (resume): Likewise. Use regcache arch instead of current_gdbarch.
4781 (prepare_to_proceed): Likewise.
4782 (proceed): Likewise.
4783 (adjust_pc_after_break): Likewise.
4784 (handle_inferior_event): Likewise.
4786 * linux-nat.c (cancel_breakpoint): Likewise.
4787 * linux-thread-db.c (check_event): Likewise.
4788 * aix-thread.c (aix_thread_wait): Likewise.
4789 * tracepoint.c (trace_dump_command): Likewise.
4791 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4793 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
4794 SYMBOL_LOCATION_BATON.
4796 2008-05-04 Vladimir Prus <vladimir@codesourcery.com>
4798 * target.h (struct target_ops): New field to_auxv_parse.
4799 * auxv.c (default_auxv_parse): New, renamed from previous
4801 (target_auxv_parse): Try to call target method. Fallback to
4802 default_auxv_parse if not found.
4803 * procfs.c (procfs_auxv_parse): New.
4804 (init_procfs_ops): On Solaris, in 64-bit mode, install
4807 2008-05-03 Adam Nemet <anemet@caviumnetworks.com>
4809 * symfile.c (add_symbol_file_command): Use paddress rather than
4810 hex_string to print the address.
4812 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
4814 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
4815 return the null frame ID to terminate the backtrace.
4817 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
4819 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
4820 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
4821 (SIG_FRAME_PC_OFFSET): Likewise.
4822 (SIG_FRAME_LR_OFFSET): Likewise.
4823 (SIG_FRAME_FP_OFFSET): Likewise.
4824 (rs6000_push_dummy_call): Likewise.
4825 (rs6000_return_value): Likewise.
4826 (rs6000_convert_from_func_ptr_addr): Likewise.
4827 (branch_dest, rs6000_software_single_step): Likewise.
4828 (deal_with_atomic_sequence): Rename to ...
4829 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
4830 Do not call branch_dest; inline required parts of that function.
4831 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
4832 with SYMBOL_LINKAGE_NAME.
4833 (struct reg, regsize): Delete.
4834 (read_memory_addr): Delete; inline into callers.
4835 (rs6000_skip_prologue): Move after skip_prologue.
4836 (skip_prologue): Remove prototype.
4837 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
4838 initialization as if this variable were true. Do not install
4839 ppc64_sysv_abi_adjust_breakpoint_address.
4841 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
4842 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
4844 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
4845 (SIG_FRAME_PC_OFFSET): Likewise.
4846 (SIG_FRAME_LR_OFFSET): Likewise.
4847 (SIG_FRAME_FP_OFFSET): Likewise.
4848 (rs6000_push_dummy_call): Likewise.
4849 (rs6000_return_value): Likewise.
4850 (rs6000_convert_from_func_ptr_addr): Likewise.
4851 (branch_dest, rs6000_software_single_step): Likewise. Replace
4852 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
4853 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
4854 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
4855 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
4856 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
4858 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
4859 (AIX_TEXT_SEGMENT_BASE): New macro.
4860 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
4861 by AIX_TEXT_SEGMENT_BASE.
4863 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
4864 (struct gdbarch_tdep): Remove text_segment_base member.
4865 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
4866 ppc64_sysv_abi_adjust_breakpoint_address.
4868 * Makefile.in (rs6000-tdep.o): Update dependencies.
4869 (rs6000-aix-tdep.o): Likewise.
4871 2008-05-03 Luis Machado <luisgpm@br.ibm.com>
4872 Thiago Jung Bauermann <bauerman@br.ibm.com>
4874 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
4875 * doublest.c (convert_typed_floating): Fix typo in comment.
4876 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
4877 * frame-unwind.h (frame_sniffer_ftype): Likewise.
4878 * frame.c (frame_unwind_address_in_block): Likewise.
4879 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
4880 * symtab.h (struct symbol): Likewise.
4881 * tramp-frame.h (struct trad_frame_cache): Likewise.
4882 * value.c (allocate_repeat_value): Likewise.
4884 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
4886 * infrun.c (handle_inferior_event): Do not insert breakpoints at
4887 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
4889 2008-05-03 Pedro Alves <pedro@codesourcery.com>
4891 * parse.c (parse_exp_in_context): Don't override
4892 expression_context_pc if get_selected_block returned a valid
4895 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
4897 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
4898 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
4899 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
4901 * c-typeprint.c (c_type_print_base): Delete handling of template
4903 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
4904 (METHOD_PTR_TO_VOFFSET): Delete.
4905 * defs.h (QUIT_FIXME): Delete.
4906 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
4907 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
4908 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
4909 ninstantiations, and instantiations.
4910 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
4911 (TYPE_FN_FIELD_INLINED): Delete.
4912 * srec.h (SREC_BINARY): Delete.
4913 * symtab.c (symbol_init_demangled_name): Delete.
4914 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
4915 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
4916 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
4917 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
4918 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
4919 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
4920 * target.h (enum thread_control_capabilities): Delete tc_switch.
4921 (target_can_switch_threads): Delete.
4923 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
4925 * Makefile.in (objfiles.o): Update.
4926 * exec.c (exec_set_section_address): Support p->addr != 0.
4927 * objfiles.c (objfile_relocate): Update exec_ops section
4929 * symfile.c (place_section): Move exec_set_section_address call...
4930 (default_symfile_offsets): ...to here.
4932 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
4934 * Makefile.in (ppc_linux_tdep_h): New macro.
4935 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
4936 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
4937 (powerpc_e500l_c): Likewise.
4938 (ppc-linux-nat.o): Update dependencies.
4939 (ppc-linux-tdep.o): Update dependencies.
4940 (rs6000-tdep.o): Update dependencies.
4942 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
4943 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
4944 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
4945 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
4946 (tdesc_powerpc_e500): Remove.
4948 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
4949 and "features/rs6000/powerpc-altivec64.c".
4950 (ppc_supply_reg, ppc_collect_reg): Make global.
4951 (variants): Use tdesc_powerpc_32 for "powerpc" and
4952 tdesc_powerpc_altivec64 for "powerpc64".
4953 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
4955 * ppc-linux-tdep.h: New file.
4957 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
4958 Include "features/rs6000/powerpc-32l.c".
4959 Include "features/rs6000/powerpc-altivec32l.c".
4960 Include "features/rs6000/powerpc-64l.c".
4961 Include "features/rs6000/powerpc-altivec64l.c".
4962 Include "features/rs6000/powerpc-e500l.c".
4963 (ppc_linux_supply_gregset): New function.
4964 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
4965 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
4966 (ppc64_linux_gregset): Likewise.
4967 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
4968 (ppc_linux_trap_reg_p): New function.
4969 (ppc_linux_write_pc): New function.
4970 (ppc_linux_core_read_description): New function.
4971 (ppc_linux_init_abi): Install ppc_linux_write_pc and
4972 ppc_linux_core_read_description. Install orig_r3 and trap
4973 registers if present in the target description.
4974 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
4976 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
4977 (PT_ORIG_R3, PT_TRAP): Define if necessary.
4978 (ppc_register_u_addr): Handle orig_r3 and trap registers.
4979 (fetch_ppc_registers): Likewise.
4980 (store_ppc_registers): Likewise.
4981 (store_register): Likewise.
4982 (ppc_linux_read_description): Check whether AltiVec is supported.
4983 Check whether inferior is 32-bit or 64-bit. Return the appropriate
4984 Linux target description.
4986 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
4987 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
4988 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
4989 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
4990 rs6000/powerpc-e500. Update -expedite variables accordingly.
4992 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
4993 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
4994 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
4995 * features/rs6000/powerpc-e500.c: Regenerate.
4996 * features/rs6000/powerpc-32.c: Regenerate.
4997 * features/rs6000/powerpc-64.c: Regenerate.
4999 * features/rs6000/power-linux.xml: New file.
5000 * features/rs6000/power64-linux.xml: New file.
5001 * features/rs6000/powerpc-32l.xml: New file.
5002 * features/rs6000/powerpc-altivec32l.xml: New file.
5003 * features/rs6000/powerpc-64l.xml: New file.
5004 * features/rs6000/powerpc-altivec64l.xml: New file.
5005 * features/rs6000/powerpc-e500l.xml: New file.
5006 * features/rs6000/powerpc-32l.c: New (generated) file.
5007 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
5008 * features/rs6000/powerpc-64l.c: New (generated) file.
5009 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
5010 * features/rs6000/powerpc-e500l.xml: New (generated) file.
5012 * regformats/reg-ppc.dat: Remove.
5013 * regformats/reg-ppc64.dat: Remove.
5014 * regformats/rs6000/powerpc-32.dat: Remove.
5015 * regformats/rs6000/powerpc-64.dat: Remove.
5016 * regformats/rs6000/powerpc-e500.dat: Remove.
5017 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
5018 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
5019 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
5020 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
5021 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
5023 2008-05-03 Pedro Alves <pedro@codesourcery.com>
5025 * thread.c (delete_thread): Call observer_notify_thread_exit.
5026 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
5027 thread_exit observer.
5028 (mi_thread_exit): New.
5030 2008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5032 * breakpoint.c (create_exception_catchpoint): Remove prototype
5033 for already deleted function.
5034 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
5035 * frame.h (show_stack_frame): Remove prototype.
5036 * stack.c (show_stack_frame): Remove empty, unused function.
5037 * source.c (symtab_to_fullname, print_source_lines): Small fix
5039 * value.c (show_values): Update comments to mention "show values"
5040 command instead of "info history".
5042 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
5044 * linespec.c: Include "target.h".
5045 (minsym_found): Handle minimal symbols pointing to function
5046 descriptors. Use find_function_start_pc.
5047 * minsyms.c (msymbol_objfile): New function.
5048 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
5049 to function descriptors.
5050 * symtab.c (fixup_section): Only use minimal symbol at the same
5051 address to determine section of a symbol.
5052 (find_function_start_pc): New function.
5053 (find_function_start_sal): Use it.
5054 * symtab.h (msymbol_objfile): Add prototype.
5055 (find_function_start_pc): Likewise.
5056 * value.c: Include "objfiles.h".
5057 (value_fn_field): Handle minimal symbols pointing to function
5059 * Makefile.in (linespec.o): Update dependencies.
5060 (value.o): Likewise.
5062 2008-05-02 Joel Brobecker <brobecker@adacore.com>
5064 * ada-lang.c (unwrap_value): Handle the case where the "F" field
5065 inside a PAD type is a bitfield.
5067 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
5069 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
5070 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
5071 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
5072 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
5073 Allow typedefs when checking for function pointer arguments.
5074 Right-align small structs passed on the stack.
5075 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
5076 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
5077 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
5079 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
5081 * Makefile.in (arm-tdep.o): Update.
5082 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
5083 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
5084 (arm_pc_is_thumb): Use mapping symbols.
5085 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
5086 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
5087 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
5088 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
5089 * gdbarch.sh: Add record_special_symbol.
5090 * gdbarch.c, gdbarch.h: Regenerated.
5091 * objfiles.c (struct objfile_data): Add cleanup member.
5092 (register_objfile_data_with_cleanup): New function, from
5093 register_objfile_data.
5094 (register_objfile_data): Use it.
5095 (objfile_free_data): Call clear_objfile_data.
5096 (clear_objfile_data): Call cleanup functions.
5097 * objfiles.h (register_objfile_data_with_cleanup): Declare.
5099 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
5101 * objfiles.c (init_entry_point_info): Handle shared libraries.
5103 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
5105 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
5108 2008-05-02 Jim Blandy <jimb@codesourcery.com>
5109 Pedro Alves <pedro@codesourcery.com>
5111 Implement displaced stepping.
5113 * gdbarch.sh (max_insn_length): New 'variable'.
5114 (displaced_step_copy, displaced_step_fixup)
5115 (displaced_step_free_closure, displaced_step_location): New
5117 (struct displaced_step_closure): Add forward declaration.
5118 * gdbarch.c, gdbarch.h: Regenerated.
5120 * arch-utils.c: #include "objfiles.h".
5121 (simple_displaced_step_copy_insn)
5122 (simple_displaced_step_free_closure)
5123 (displaced_step_at_entry_point): New functions.
5124 * arch-utils.h (simple_displaced_step_copy_insn)
5125 (simple_displaced_step_free_closure)
5126 (displaced_step_at_entry_point): New prototypes.
5128 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
5129 (I386_MAX_MATCHED_INSN_LEN): ... this.
5130 (i386_absolute_jmp_p, i386_absolute_call_p)
5131 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
5132 (i386_displaced_step_fixup): New functions.
5133 (struct i386_insn, i386_match_insn): Update.
5134 (i386_gdbarch_init): Set gdbarch_max_insn_length.
5135 * i386-tdep.h (I386_MAX_INSN_LEN): New.
5136 (i386_displaced_step_fixup): New prototype.
5137 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
5138 Register gdbarch_displaced_step_copy,
5139 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
5140 and gdbarch_displaced_step_location functions.
5142 * infrun.c (debug_displaced): New variable.
5143 (show_debug_displaced): New function.
5144 (struct displaced_step_request): New struct.
5145 (displaced_step_request_queue, displaced_step_ptid)
5146 (displaced_step_gdbarch, displaced_step_closure)
5147 (displaced_step_original, displaced_step_copy)
5148 (displaced_step_saved_copy, can_use_displaced_stepping): New
5150 (show_can_use_displaced_stepping, use_displaced_stepping)
5151 (displaced_step_clear, cleanup_displaced_step_closure)
5152 (displaced_step_dump_bytes, displaced_step_prepare)
5153 (displaced_step_clear_cleanup, write_memory_ptid)
5154 (displaced_step_fixup): New functions.
5155 (resume): Call displaced_step_prepare.
5156 (proceed): Call read_pc once, and remember the value. If using
5157 displaced stepping, don't remove breakpoints.
5158 (handle_inferior_event): Call displaced_step_fixup. Add some
5159 debugging output. When we try to step over a breakpoint, but get
5160 a signal to deliver to the thread instead, ensure the step-resume
5161 breakpoint is actually inserted. If a thread hop is needed, and
5162 displaced stepping is enabled, don't remove breakpoints.
5163 (init_wait_for_inferior): Call displaced_step_clear.
5164 (_initialize_infrun): Add "set debug displaced" command. Add
5165 "maint set can-use-displaced-stepping" command. Clear
5166 displaced_step_ptid.
5167 * inferior.h (debug_displaced): Declare variable.
5168 (displaced_step_dump_bytes): Declare function.
5170 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
5173 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
5175 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
5176 (arm_force_mode_string, arm_show_fallback_mode)
5177 (arm_show_force_mode): New.
5178 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
5180 (_initialize_arm_tdep): Add "set arm fallback-mode"
5181 and "set arm force-mode".
5182 * NEWS: Document new commands.
5184 2008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
5186 * main.h (batch_silent): Declare.
5187 * event-top.c: Include main.h.
5188 (gdb_setup_readline): Remove extern batch_silent declaration.
5189 * infrun.c (normal_stop): Don't print source location when running in
5190 --batch-silent mode.
5191 * Makefile.in (event-top.o): Add main.h dependency.
5193 2008-05-02 Andreas Schwab <schwab@suse.de>
5195 * target.h (struct target_ops): Add
5196 to_watchpoint_addr_within_range.
5197 (target_watchpoint_addr_within_range): New function.
5198 * target.c (update_current_target): Inherit
5199 to_watchpoint_addr_within_range, defaulting to
5200 default_watchpoint_addr_within_range.
5201 (default_watchpoint_addr_within_range): New function.
5202 (debug_to_watchpoint_addr_within_range): New function.
5203 (setup_target_debug): Set to_watchpoint_addr_within_range.
5204 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
5206 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
5207 * breakpoint.c (watchpoints_triggered): Use
5208 target_watchpoint_addr_within_range.
5210 2008-05-01 Pedro Alves <pedro@codesourcery.com>
5212 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
5213 (i[34567]86-*-dicos*, x86_64-*-dicos*):
5214 Set gdb_osabi to GDB_OSABI_DICOS.
5216 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
5217 * osabi.c (gdb_osabi_name): Add "DICOS".
5219 * i386-dicos-tdep.c: New file.
5221 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
5222 (ALLDEPFILES): Add i386-dicos-tdep.c.
5223 (i386-dicos-tdep.o): New rule.
5225 2008-05-01 Pedro Alves <pedro@codesourcery.com>
5227 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
5228 and register the fork's PTID as a thread.
5230 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
5233 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
5234 assign its value to the breakpoint created.
5235 (create_breakpoints): Add breakpoint_ops argument and pass it
5236 to create_breakpoint call.
5237 (break_command_really): Add breakpoint_ops argument and pass/assign
5239 (break_command_1): Pass NULL as ops argument.
5240 (set_breakpoint): Pass NULL as ops argument.
5241 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
5242 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
5243 catch and throw catchpoints.
5245 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
5248 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
5249 translate signal numeric value from the target to GDB's enum
5251 * gdbarch.c, gdbarch.h: Regenerated.
5252 * gdbarch.sh: Added two new functions target_signal_from_host and
5253 target_signal_to_host.
5254 * target.h (default_target_signal_from_host,
5255 default_target_signal_to_host): New functions - declarations.
5256 * signals/signals.c (struct gdbarch): New declaration.
5257 (default_target_signal_to_host, default_target_signal_from_host): New
5260 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
5261 Pedro Alves <pedro@codesourcery.com>
5263 Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff
5264 Johnston <jjohnstn@redhat.com>.
5266 * NEWS: Mention attach to stopped process fix.
5267 * infcmd.c (detach_command, disconnect_command): Discard the thread
5269 * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
5270 attaching. Use signal_stop_state.
5271 (signal_stop_state): Check stop_soon.
5272 * linux-nat.c (kill_lwp): Declare earlier.
5273 (pid_is_stopped, linux_nat_post_attach_wait): New.
5274 (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update
5276 (linux_nat_attach): Use linux_nat_post_attach_wait.
5277 (detach_callback, linux_nat_detach): Improve handling for signalled
5279 (linux_nat_pid_to_str): Always print out the LWP ID if it differs
5280 from the process ID.
5281 * Makefile.in (infcmd.o): Update.
5283 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
5285 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
5286 * arm-tdep.c (arm_frame_is_thumb): New.
5287 (arm_pc_is_thumb): Clarify comment.
5288 (thumb_analyze_prologue): Remove PC special case.
5289 (thumb_scan_prologue): Take a block_addr argument. Use it for
5290 find_pc_partial_function. Remove unused variables.
5291 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
5292 for find_pc_partial_function. Remove PC special case.
5293 (arm_prologue_prev_register): Add special handling for PC and CPSR.
5294 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
5295 (arm_get_next_pc): Use arm_frame_is_thumb.
5296 (arm_write_pc): Use CPSR_T instead of 0x20.
5297 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
5298 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
5300 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
5301 DWARF2_FRAME_REG_FN.
5302 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
5303 DWARF2_FRAME_REG_FN.
5304 (struct dwarf2_frame_state_reg): Add FN to loc union.
5306 2008-05-01 Nick Roberts <nickrob@snap.net.nz>
5308 * exec.c (print_section_info): Add missing '\n'.
5310 2008-05-01 Vladimir Prus <vladimir@codesourcery.com>
5312 * thread.c (add_thread): Move observer call to ...
5313 (add_thread_silent): ... here.
5315 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
5317 * rs6000-tdep.c: Update for unwinder changes.
5318 * ppcobsd-tdep.c: Likewise.
5320 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
5322 * s390-tdep.c: Update for unwinder changes.
5324 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
5326 * spu-tdep.c: Update for unwinder changes.
5328 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5330 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
5331 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
5332 sparc64-linux-tdep.c: Update for unwinder changes.
5334 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5336 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
5337 for unwinder changes.
5338 * mips-tdep.c: Likewise.
5339 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
5342 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5344 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
5347 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5349 Update i386 and amd64 ports for unwinder changes.
5351 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
5352 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
5353 (amd64_frame_unwind): Use default_frame_sniffer.
5354 (amd64_frame_sniffer): Delete.
5355 (amd64_sigtramp_frame_cache): Expect this_frame.
5356 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
5357 (amd64_sigtramp_frame_sniffer): Update signature.
5358 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
5359 (amd64_frame_base_address): Expect this_frame.
5360 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
5362 (amd64_init_abi): Use set_gdbarch_dummy_id and
5363 frame_unwind_append_unwinder.
5364 * i386-tdep.c (i386_frame_cache): Expect this_frame.
5365 (i386_frame_this_id, i386_frame_prev_register): Update signature.
5366 (i386_frame_unwind): Use default_frame_sniffer.
5367 (i386_frame_sniffer): Delete.
5368 (i386_sigtramp_frame_cache): Expect this_frame.
5369 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
5370 (i386_sigtramp_frame_sniffer): Update signature.
5371 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
5372 (i386_frame_base_address): Update signature.
5373 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
5374 (i386_push_dummy_call): Update comment.
5375 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
5377 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
5378 and frame_unwind_append_unwinder.
5379 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
5380 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
5381 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
5382 i386nbsd-tdep.c: Update for unwinder changes.
5384 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5386 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
5387 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
5389 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
5390 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
5391 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
5393 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
5395 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
5397 * tramp-frame.h (struct tramp_frame): Update signature of init.
5398 * Makefile.in (trad-frame.o): Update.
5400 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5402 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
5403 (execute_stack_op): Put this_frame in the baton.
5404 (execute_cfa_program): Take this_frame.
5405 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
5406 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
5407 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
5408 (dwarf2_frame_this_id): Adjust to work on this_frame.
5409 (dwarf2_signal_frame_this_id): Delete.
5410 (dwarf2_frame_prev_register): Update signature. Use new frame
5412 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
5413 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
5414 dwarf2_frame_sniffer.
5415 (dwarf2_append_unwinders): New.
5416 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
5418 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
5419 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
5420 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
5421 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
5422 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
5423 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
5424 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
5425 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
5426 (dwarf2_append_unwinders): Declare.
5427 (dwarf2_frame_base_sniffer): Update declaration.
5428 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
5431 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5433 Convert frame unwinders to use the current frame and
5436 * frame.c (frame_debug): Make global.
5437 (get_frame_id): Pass this frame to unwinder routines.
5438 (frame_pc_unwind): Remove unused unwind->prev_pc support.
5439 (do_frame_register_read): Do not discard the return value of
5440 frame_register_read.
5441 (frame_register_unwind): Remove debug messages. Use
5442 frame_unwind_register_value.
5443 (frame_unwind_register_value, get_frame_register_value): New
5445 (create_new_frame, get_frame_base_address, get_frame_locals_address)
5446 (get_frame_args_address, get_frame_type): Pass this frame to
5448 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
5450 * frame.h: Update comments.
5451 (frame_debug, frame_unwind_register_value, get_frame_register_value)
5452 (frame_prepare_for_sniffer): Declare.
5453 * frame-unwind.h: Update comments and parameter names.
5454 (default_frame_sniffer): Declare.
5455 (frame_prev_register_ftype): Return a struct value *.
5456 (struct frame_unwind): Remove prev_pc member.
5457 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
5458 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
5459 (frame_unwind_got_register, frame_unwind_got_memory)
5460 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
5461 * frame-base.h: Update comments and parameter names.
5462 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
5463 if necessary. Add debugging output.
5464 * sentinel-frame.c (sentinel_frame_prev_register)
5465 (sentinel_frame_this_id): Update for new signature.
5466 (sentinel_frame_prev_pc): Delete.
5467 (sentinel_frame_unwinder): Remove prev_pc.
5468 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
5470 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
5471 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
5472 (frame_unwind_append_sniffer): Delete.
5473 (frame_unwind_append_unwinder): New function.
5474 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
5475 from unwinders. Use frame_prepare_for_sniffer.
5476 (default_frame_sniffer, frame_unwind_got_optimized)
5477 (frame_unwind_got_register, frame_unwind_got_memory)
5478 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
5479 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
5480 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
5482 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
5483 * gdbarch.c, gdbarch.c: Regenerated.
5484 * frame-base.c (default_frame_base_address)
5485 (default_frame_locals_address, default_frame_args_address): Update
5487 (frame_base_find_by_frame): Pass this frame to unwinder routines.
5488 * infcall.c (call_function_by_hand): Update comments.
5489 * Makefile.in (frame-unwind.o): Update dependencies.
5491 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5493 * ada-lang.c (ada_value_primitive_packed_val): Only check
5494 value_lazy for memory lvals.
5495 * findvar.c (value_of_register_lazy): New function.
5496 (locate_var_value): Only check value_lazy for memory lvals.
5497 * valarith.c (value_subscripted_rvalue): Likewise.
5498 * valops.c (value_fetch_lazy): Handle both memory and register
5500 (search_struct_field, value_slice): Only check value_lazy for memory
5502 * value.c (struct value): Update comment for lazy.
5503 (value_primitive_field): Only check value_lazy for memory lvals.
5504 * value.h (value_lazy): Update comment.
5505 (value_of_register_lazy): Declare.
5507 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5509 * corefile.c (reopen_exec_file): Close any open files.
5511 2008-04-29 Joel Brobecker <brobecker@adacore.com>
5513 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
5514 show_memory_breakpoints to 1 while reading the instruction bundle.
5516 2008-04-29 Joel Brobecker <brobecker@adacore.com>
5518 * gdbarch.sh: Document the return_value method. Explain that
5519 the FUNCTYPE parameter might be NULL.
5520 * gdbarch.h: Regenerated.
5521 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
5522 type when calling using_struct_return, as this is unnecessary
5525 2008-04-28 Joel Brobecker <brobecker@adacore.com>
5527 * terminal.h (create_tty_session): Fix return type.
5529 2008-04-26 Vladimir Prus <vladimir@codesourcery.com>
5531 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
5533 2008-04-26 Joel Brobecker <brobecker@adacore.com>
5535 * breakpoint.c (condition_command, commands_from_control_command)
5536 (break_command_really): Minor reformatting.
5538 2008-04-25 Pedro Alves <pedro@codesourcery.com>
5540 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
5542 2008-04-25 Pedro Alves <pedro@codesourcery.com>
5544 * amd64-tdep.c (amd64_get_longjmp_target): New.
5545 (amd64_init_abi): Register amd64_get_longjmp_target as
5546 gdbarch_get_longjmp_target callback.
5547 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
5549 2008-04-25 Pedro Alves <pedro@codesourcery.com>
5551 * breakpoint.h (enum bpstat_what_main_action): Delete
5552 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
5554 * breakpoint.c (clrs): Delete.
5555 (bpstat_what): Update table.
5557 * infrun.c (handle_inferior_event): Remove
5558 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
5560 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
5562 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
5563 Adjust all prototypes using mi_cmd_args_ftype to use
5565 (struct mi_cmd): Remove the args_func field.
5566 * mi/mi-cmds.c: Don't provide value for the args_func field.
5567 * mi/mi-main.c (mi_execute_async_cli_command)
5568 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
5569 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
5570 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
5571 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
5572 (mi_cmd_target_download): Adjust.
5573 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
5574 (mi_cmd_execute): Do not check for args_func.
5575 (mi_execute_async_cli_command): Adjust.
5576 * mi/mi-parse.c: Don't check for args_func.
5578 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
5580 * breakpoint.c (bpstat_check_location)
5581 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
5582 New, extracted from bpstat_stop_status.
5583 (bpstat_stop_status): Use the above.
5585 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
5587 * mi/mi-main.c (last_async_command): Rename to current_token.
5588 (previous_async_command): Remove.
5589 (mi_cmd_gdb_exit): Adjust.
5590 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
5591 (mi_cmd_target_select): Adjust.
5592 (mi_cmd_execute): Don't set previous_async_command. Free token
5593 here even in async mode.
5594 (mi_execute_async_cli_command): Adjust.
5595 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
5597 (mi_load_progress): Adjust.
5599 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
5601 * infcmd.c (step_1_continuation): Always disable longjmp
5602 breakpoint if we're not going to do another step.
5604 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
5606 exec_cleanup murder.
5607 * breakpoint.c (until_break_command_continuation): Add
5608 the 'error' parameter. Directly delete the breakoint as
5609 opposed to running cleanups.
5610 (until_break_command): Install continuation only
5611 after starting the target. Don't use exec cleanups,
5612 use ordinary cleanups. Discard cleanups is successfully
5613 started the target in async mode.
5614 (make_cleanup_delete_breakpoint): Remove.
5615 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
5617 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
5619 (struct continations): Add the 'error' parameter to the
5620 continuation_hook field.
5621 (add_continuation, do_all_continuations)
5622 (add_intermediate_continuation)
5623 (do_all_intermediate_continuations): Add the 'error' parameter.
5624 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
5625 * inf-loop.c (inferior_event_handler): Instead of calling
5626 discard_all_continuations, use do_all_continuations with 1 as
5627 'error' parameter. Pass 0 as 'error' parameter in existing uses
5628 of discard_all_continuations.
5629 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
5631 (step_once): Install continuation only after resuming the target.
5632 (step_1_continuation): Disable longjmp breakpoint on error.
5633 (finish_command_continuation): Add the error parameter. Delete
5634 the finish breakpoint directly, do not use cleanups.
5635 (finish_command): Do not use exec_cleanups. Always setup
5636 continuation. For sync case, immediately run them.
5637 (attach_command_continuation): Add the error parameter.
5638 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
5639 remove step_resume_breakpoint -- adjust delete it directly.
5640 * interps.c (interp_set): Adjust call to do_all_continations.
5641 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
5643 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
5645 (mi_cmd_execute): Do not use exec_cleanup.
5646 (mi_execute_async_cli_command): Simplify the string concatenation
5647 logic. Do no use exec cleanup.
5648 (mi_exec_async_cli_cmd_continuation): New parameter error.
5649 Free last_async_command.
5650 * top.c (command_line_handler_continuation): New parameter error.
5651 * utils.c (exec_cleanup_chain, make_exec_cleanup)
5652 (do_exec_cleanups): Remove.
5653 (add_continuation, do_all_continations)
5654 (add_intermediate_continuation)
5655 (do_all_intermediate_continuations): New parameter error.
5657 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
5659 * breakpoint.h (bp_location_p): New typedef.
5660 Register a vector of bp_location_p.
5661 * breakpoint.c (always_inserted_mode)
5662 (show_always_inserted_mode): New.
5663 (unlink_locations_from_global_list): Remove.
5664 (update_global_location_list)
5665 (update_global_location_list_nothrow): New.
5666 (update_watchpoint): Don't free locations.
5667 (should_insert_location): New.
5668 (insert_bp_location): Use should_insert_location.
5669 (insert_breakpoint_locations): Copied from
5671 (insert_breakpoint): Use insert_breakpoint_locations.
5672 (bpstat_stop_status): Call update_global_location_list
5673 when disabling breakpoint.
5674 (allocate_bp_location): Don't add to bp_location_chain.
5675 (set_raw_breakpoint)
5676 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
5677 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
5678 (enable_overlay_breakpoints, disable_overlay_breakpoints)
5679 (set_longjmp_resume_breakpoint)
5680 (enable_watchpoints_after_interactive_call_stop)
5681 (disable_watchpoints_before_interactive_call_start)
5682 (create_internal_breakpoint)
5683 (create_fork_vfork_event_catchpoint)
5684 (create_exec_event_catchpoint, set_momentary_breakpoint)
5685 (create_breakpoints, break_command_1, watch_command_1)
5686 (create_exception_catchpoint)
5687 (handle_gnu_v3_exceptions)
5688 (disable_breakpoint, breakpoint_re_set_one)
5689 (create_thread_event_breakpoint, create_solib_event_breakpoint)
5690 (create_ada_exception_breakpoint): : Don't call check_duplicates.
5691 Call update_global_location_list.
5692 (delete_breakpoint): Don't remove locations and don't
5693 try to reinsert them. Call update_global_location_list.
5694 (update_breakpoint_locations): Likewise.
5695 (restore_always_inserted_mode): New.
5696 (update_breakpoints_after_exec): Temporary disable
5697 always inserted mode.
5698 * Makefile.in: Update dependencies.
5700 * infrun.c (proceed): Remove breakpoints while stepping
5702 (handle_inferior_event): Don't remove or insert
5704 * linux-fork.c (checkpoint_command): Remove breakpoints
5705 before fork and insert after.
5706 (linux_fork_context): Remove breakpoints before switch
5708 * target.c (target_disconnect, target_detach): Remove
5709 breakpoints from target.
5712 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
5714 * breakpoint.c (print_one_breakpoint_location): In MI
5715 mode, report the location string the breakpoint was
5716 originally created with.
5718 2008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
5720 * Makefile.in (xtensa-tdep.o): Update dependencies.
5721 * configure.tgt (xtensa*): Update dependencies.
5722 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
5723 Local variable areg renamed to arreg.
5724 (areg_number): New function.
5725 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
5726 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
5727 replaced by arreg_number.
5728 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
5729 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
5730 (xtensa_scan_prologue): New function.
5731 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
5732 when ENTRY instraction hasn't been executed yet. Get the frame pointer
5733 value based on prologue analysis. Fix the bugs preventing WS and
5734 AR4-AR7/A11 registers from getting right values for intermediate frames,
5735 whose registers have been already spilled.
5736 (xtensa_frame_prev_register): Fix WS register value. Use are_number
5737 and arreg_number appropriately.
5738 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
5739 svr4_ilp32_fetch_link_map_offsets.
5741 2008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
5743 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
5744 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
5746 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
5748 * acinclude.m4: Add override.m4.
5749 * configure: Regenerate.
5751 2008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5753 * ada-lang.c (get_selections): Variable PROMPT made non-const and
5754 initialized with a trailing space now. Use PROMPT_ARG of
5755 COMMAND_LINE_INPUT instead of printing it ourselves.
5757 2008-04-22 Joel Brobecker <brobecker@adacore.com>
5759 * NEWS: Document support for 64-bit core file.
5761 2008-04-22 Corinna Vinschen <vinschen@redhat.com>
5763 * NEWS: Add information on calling convention and new SH CLI options.
5765 * sh-tdep.c (sh_cc_gcc): New static string.
5766 (sh_cc_renesas): Ditto.
5767 (sh_cc_enum): New static string array.
5768 (sh_active_calling_convention): New static string pointer denoting
5769 active user chosen ABI.
5770 (sh_is_renesas_calling_convention): New function to return function
5771 specific ABI, or user choice if necessary.
5772 (sh_use_struct_convention): Rename first argument and turn around its
5773 meaning. Check for renesas ABI and return accordingly.
5774 (sh_use_struct_convention_nofpu): New function.
5775 (sh_next_flt_argreg): Get function type as third parameter. Check
5776 for renesas ABI and choose floating registers accordingly.
5777 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
5778 struct return slot accordingly.
5779 (sh_push_dummy_call_nofpu): Ditto.
5780 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
5781 Evaluate ABI and give to sh_use_struct_convention_nofpu.
5782 (sh_return_value_fpu): Evaluate ABI and give to
5783 sh_use_struct_convention.
5784 (show_sh_command): New function.
5785 (set_sh_command): Ditto.
5786 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
5789 * gdbarch.sh (return_value): Add func_type argument.
5790 * gdbarch.c: Regenerate.
5792 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
5793 val_type so as not to collide with value_type function. Call
5794 using_struct_return with additional function type argument.
5795 * infcall.c (call_function_by_hand): Call using_struct_return and
5796 gdbarch_return_value with additional function type argument.
5797 * infcmd.c (print_return_value): Take addition func_type argument.
5798 Call gdbarch_return_value with additional function type argument.
5799 (finish_command_continuation): Call print_return_value with additional
5800 function type argument.
5801 (finish_command): Ditto.
5802 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
5803 additional function type argument.
5804 * stack.c (return_command): Call using_struct_return and
5805 gdbarch_return_value with additional function type argument.
5806 * value.c (using_struct_return): Take additional function type argument.
5807 * value.h (using_struct_return): Accommodate declaration.
5808 * alpha-tdep.c (alpha_return_value): Add func_type argument.
5809 * amd64-tdep.c (amd64_return_value): Ditto.
5810 * arm-tdep.c (arm_return_value): Ditto.
5811 * avr-tdep.c (avr_return_value): Ditto.
5812 * cris-tdep.c (cris_return_value): Ditto.
5813 * frv-tdep.c (frv_return_value): Ditto.
5814 * h8300-tdep.c (h8300_return_value): Ditto.
5815 (h8300h_return_value): Ditto.
5816 * hppa-tdep.c (hppa32_return_value): Ditto.
5817 (hppa64_return_value): Ditto.
5818 * i386-tdep.c (i386_return_value): Ditto.
5819 * ia64-tdep.c (ia64_return_value): Ditto.
5820 * iq2000-tdep.c (iq2000_return_value): Ditto.
5821 * m32c-tdep.c (m32c_return_value): Ditto.
5822 * m32r-tdep.c (m32r_return_value): Ditto.
5823 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
5824 * m68k-tdep.c (m68k_return_value): Ditto.
5825 (m68k_svr4_return_value): Ditto.
5826 * m88k-tdep.c (m88k_return_value): Ditto.
5827 * mep-tdep.c (mep_return_value): Ditto.
5828 * mips-tdep.c (mips_eabi_return_value): Ditto.
5829 (mips_n32n64_return_value): Ditto.
5830 (mips_o32_return_value): Ditto.
5831 (mips_o64_return_value): Ditto.
5832 * mn10300-tdep.c (mn10300_return_value): Ditto.
5833 * mt-tdep.c (mt_return_value): Ditto.
5834 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
5835 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
5836 (ppc_sysv_abi_broken_return_value): Ditto.
5837 (ppc64_sysv_abi_return_value): Ditto.
5838 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
5839 (ppc_sysv_abi_broken_return_value): Ditto.
5840 (ppc64_sysv_abi_return_value): Ditto.
5841 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
5842 * rs6000-tdep.c (rs6000_return_value): Ditto.
5843 * s390-tdep.c (s390_return_value): Ditto.
5844 * score-tdep.c (score_return_value): Ditto.
5845 * sh-tdep.c (sh_return_value_nofpu): Ditto.
5846 (sh_return_value_fpu): Ditto.
5847 * sh64-tdep.c (sh64_return_value): Ditto.
5848 * sparc-tdep.c (sparc32_return_value): Ditto.
5849 * sparc64-tdep.c (sparc64_return_value): Ditto.
5850 * spu-tdep.c (spu_return_value): Ditto.
5851 * v850-tdep.c (v850_return_value): Ditto.
5852 * vax-tdep.c (vax_return_value): Ditto.
5853 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
5854 * xtensa-tdep.c (xtensa_return_value): Ditto.
5856 * gdbtypes.h (struct type): Add calling_convention member.
5857 * dwarf2read.c (read_subroutine_type): Add calling convention read
5858 from DW_AT_calling_convention attribute to function type.
5860 2008-04-22 Markus Deuling <deuling@de.ibm.com>
5862 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
5863 multi_f77_subscript to support values from registers.
5864 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
5865 * value.h (value_subscripted_rvalue): Add prototype.
5867 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
5869 * f-valprint.c (f_val_print): Likewise.
5871 2008-04-21 Craig Silverstein <csilvers@google.com>
5873 * dwarf2read.c (zlib_decompress_section): Define abfd in the
5876 2008-04-21 Pedro Alves <pedro@codesourcery.com>
5878 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
5879 section is not a code section.
5881 2008-04-19 Craig Silverstein <csilvers@google.com>
5883 * NEWS: Add information on compressed debug sections.
5885 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
5887 * mi/mi-cmd-var.c (varobj_update_one): Print new
5888 value for variable objects that changed type.
5890 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
5892 * varobj.c (varobj_invalidate): Don't touch floating
5895 2008-04-19 Mark Kettenis <kettenis@gnu.org>
5897 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
5898 (multiple_symbols_cancel): Remove extra const.
5899 * symtab.h: Likewise.
5901 2008-04-19 Nick Roberts <nickrob@snap.net.nz>
5903 * interps.c (top_level_interpreter): Rename static variable...
5904 (top_level_interpreter_ptr): ...to this.
5905 (top_level_interpreter): New function.
5907 * interps.h: New extern for top_level_interpreter.
5909 * linespec.c: Include interps.h and mi/mi-cmds.h.
5910 (decode_line_2): When using MI, always set all breakpoints in menu.
5912 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
5914 2008-04-18 Craig Silverstein <csilvers@google.com>
5916 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
5917 * config.in, configure: Regenerate.
5918 * dwarf2read.c: Include zlib.h if present.
5919 Modified *_SECTION macros.
5920 (section_is_p): New.
5921 (dwarf2_locate_sections): Use section_is_p instead of strcmp
5922 (dwarf2_resize_section): New.
5923 to determine whether a given section has a given name.
5924 (zlib_decompress_section): New.
5925 (dwarf2_read_section): Read the compressed section if present
5927 * MAINTAINERS: Added myself to section Write After Approval.
5929 2008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
5931 * defs.h (exec_set_section_offsets): Remove prototype.
5932 * exec.c (exec_set_section_offsets): Remove function.
5934 2008-04-18 Joel Brobecker <brobecker@adacore.com>
5936 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
5937 in the search for the matching symbol.
5939 2008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
5941 * breakpoint.c (update_watchpoint): Always reparse
5944 2008-04-17 Joel Brobecker <brobecker@adacore.com>
5946 * breakpoint.c (print_one_breakpoint_location): Make sure to print
5947 the breakpoint address only once.
5949 2008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
5951 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
5952 rather than a hard-coded architecture, for xcoff executables.
5954 2008-04-17 Doug Evans <dje@google.com>
5956 * buildsym.c (watch_main_source_file_lossage): New fn.
5957 (end_symtab): Call it.
5959 * source.c (find_and_open_source): Add some comments clarifying
5960 handling of FULLNAME argument. Make static. Remove pointless
5963 2008-04-17 Pedro Alves <pedro@codesourcery.com>
5965 * inf-loop.c (inferior_event_handler): Also run the intermediate
5966 continuations in the INF_EXEC_COMPLETE case.
5968 2008-04-16 Tom Tromey <tromey@redhat.com>
5970 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
5971 (set_cmd_async_ok, get_cmd_async_ok): Declare.
5972 * cli/cli-decode.c (set_cmd_async_ok): New function.
5973 (get_cmd_async_ok): New function.
5974 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
5976 * top.c (execute_command): Use get_cmd_async_ok.
5977 * infcmd.c: Include cli/cli-decode.h.
5978 (_initialize_infcmd): Mark "interrupt" as async-ok.
5979 * Makefile.in (infcmd.o): Depend on cli_decode_h.
5981 2008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
5984 * exec.c: Correct "arch-utils.h" include.
5986 2008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
5989 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
5990 to allow printing to 'see' real reason of stop. This fixes PR 2424.
5991 * breakpoint.c (bpdisp_texst): New function. The function takes over
5992 the role of bpstats static array in print_one_breakpoint_location.
5993 (print_it_typical): Print "Temporary breakpoint" instead
5994 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
5995 protocols, print disp field.
5996 (print_one_breakpoint_location): Removed bpdisps static definition.
5997 Call new bpstat_text function to get value for 'disp' field.
5998 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
6000 2008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
6002 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
6003 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
6004 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
6005 * gnulib/Makefile.in: Regenerate.
6007 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6009 * Makefile.in (GNULIB_H): New. Trigger all-lib.
6010 (defs_h): Use $(GNULIB_H).
6011 (all-lib): Depend on gnulib/Makefile.
6012 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
6013 * config.in, gnulib/Makefile.in: Regenerated.
6015 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6017 * Makefile.in (LIBGNU, INCGNU): Define.
6018 (INTERNAL_CFLAGS_BASE): Add INCGNU.
6019 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
6021 ($(LIBGNU), all-lib): New rules.
6022 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
6023 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
6024 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
6025 * gnulib: New directory, from gnulib-tool.
6026 * configure, aclocal.m4: Regenerated.
6028 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6030 * linux-thread-db.c (have_threads_callback): Check thread->private.
6032 2008-04-13 Nick Roberts <nickrob@snap.net.nz>
6033 Vladimir Prus <vladimir@codesourcery.com>
6036 * varobj.c (value_of_root): Update the expression for
6038 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
6041 2008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
6043 * mi/mi-cmd-var.c: Include "mi-getopt.h".
6044 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
6045 (mi_cmd_var_set_format): Use new mi_parse_format.
6046 (mi_cmd_var_evaluate_expression): Support for -f option to specify
6048 * Makefile.in (mi-cmd-var.o): Update dependencies.
6050 * varobj.h (varobj_get_formatted_value): Declare.
6051 * varobj.c (my_value_of_variable): Added format parameter.
6052 (cplus_value_of_variable): Likewise.
6053 (java_value_of_variable): Likewise.
6054 (c_value_of_variable): Likewise. Evaluate expression based
6055 on format parameter.
6056 (struct language_specific): Add format parameter to function member
6058 (varobj_get_formatted_value): New.
6059 (varobj_get_value): Added format parameter to method call.
6061 2008-04-08 Joel Brobecker <brobecker@adacore.com>
6063 * stabsread.c (cleanup_undefined_types_noname): Manually set the
6064 instance flags of the undefined type before calling replace_type.
6066 2008-04-08 Vladimir Prus <vladimir@codesourcery.com>
6068 * target.h (enum strata): Remove the download_stratum.
6070 2008-04-07 Doug Evans <dje@google.com>
6072 * buildsym.h (last_source_file): Add dwarf info to comment.
6073 (last_source_start_addr): Ditto.
6075 2008-04-07 Pedro Alves <pedro@codesourcery.com>
6077 * alphanbsd-tdep.c: Include "target.h".
6078 * mn10300-tdep.c: Include "target.h".
6079 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
6081 2008-04-06 Vladimir Prus <vladimir@codesourcery.com>
6083 Fix breakpoint condition that use member variables.
6084 * valops.c (check_field): Remove.
6085 (check_field_in): Rename to check_field.
6086 (value_of_this): Use la_name_of_this.
6087 * value.h (check_field): Adjust prototype.
6089 * language.h (la_value_of_this): Rename to la_name_of_this.
6090 * language.c (unknown_language_defn): Specify "this" for
6092 (auto_language_defn): Likewise.
6093 (local_language_defn): Likewise.
6094 * ada-lang.c (ada_language_defn): Adjust comment.
6095 * c-lang.c (c_language_defn): Adjust comment.
6096 (cplus_language_defn): Specify "this" for name_of_this.
6097 (asm_language_defn): Adjust comment.
6098 (minimal_language_defn): Adjust comment.
6099 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
6100 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
6101 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
6102 * objc-lang.c (objc_language_defn): Specify "self" for
6104 * p-lang.c (pascal_language_defn): Specify "this" for
6106 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
6108 * symtab.c (lookup_symbol_aux): Lookup "this" in the
6109 proper scope, and check for field in type of "this", without
6110 trying to create a value.
6112 2008-04-04 Pedro Alves <pedro@codesourcery.com>
6114 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
6115 (mi_error_message): Delete declaration.
6116 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
6117 returning MI_CMD_ERROR.
6118 * mi/mi-main.c (mi_error_message): Delete.
6119 (mi_cmd_exec_interrupt):
6120 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6121 (mi_cmd_thread_info): Call error instead of returning
6123 (mi_cmd_data_list_register_values): Call error instead of
6124 returning MI_CMD_ERROR. Adapt to new get_register interface.
6125 (get_register): Change return typo to void. Call error instead of
6126 returning MI_CMD_ERROR.
6127 (mi_cmd_data_write_register_values): Call error instead of
6128 returning MI_CMD_ERROR.
6129 (mi_cmd_list_features): Return MI_CMD_DONE.
6130 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
6131 (mi_execute_command): Always print exceptions with -error.
6133 2008-04-04 Joel Brobecker <brobecker@adacore.com>
6135 * NEWS: Mention new commands set/show multiple-symbols.
6137 2008-04-03 Joel Brobecker <brobecker@adacore.com>
6139 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
6140 (multiple_symbols_cancel): New constants.
6141 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
6142 (multiple_symbols_select_mode): New function.
6143 (_initialize_symtab): Add new set/show multiple-symbols commands.
6144 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
6145 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
6146 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
6148 * linespec.c (decode_line_2): Likewise.
6150 2008-04-03 Doug Evans <dje@sebabeach.org>
6152 * symtab.h (enum free_code): Delete free_contents, unused.
6153 * symmisc.c (free_symtab_block): Delete.
6154 (free_symtab, case free_code): Delete.
6156 2008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
6158 * valops.c (value_cast_structs): New function. Cast related
6159 STRUCT types up/down and return cast value. The body of this
6160 function comes mostly from value_cast_pointers.
6161 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
6162 to value_cast_structs. Now value_cast_pointers needs only create
6163 appropriate reference after using value_cast_structs for actual
6165 (value_cast): Handle references.
6167 2008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
6169 * MAINTAINERS: Added myself to section Write After Approval.
6171 2008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6173 * ia64-tdep.c (examine_prologue): Correct array access.
6175 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
6177 * cp-support.c (first_component_command): Return if no arguments.
6179 2008-03-28 Carlos O'Donell <carlos@codesourcery.com>
6181 * ser-mingw.c (ser_windows_open): Open requested name.
6183 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
6185 * MAINTAINERS: Added myself.
6187 2008-03-28 Pedro Alves <pedro@codesourcery.com>
6189 * target.c (find_default_run_target): Allow a NULL `do_mesg'
6190 parameter. If it is NULL, don't call error.
6191 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
6192 `do_mesg' parameter to find_default_run_target. If no target was
6195 2008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
6197 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
6198 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
6199 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
6201 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
6203 2008-03-27 Joel Brobecker <brobecker@adacore.com>
6207 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6209 * features/Makefile (%.dat): Set xmltarget to the base filename
6210 of the XML source, without subdirectory.
6211 * regformats/rs6000/powerpc-32.dat: Regenerate.
6212 * regformats/rs6000/powerpc-64.dat: Regenerate.
6213 * regformats/rs6000/powerpc-e500.dat: Regenerate.
6215 2008-03-27 Markus Deuling <deuling@de.ibm.com>
6217 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
6220 2008-03-27 Nick Roberts <nickrob@snap.net.nz>
6222 * mi/mi-main.c (enum captured_mi_execute_command_actions):
6223 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
6225 2008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6227 * objfiles.h (struct objfile): New GDBARCH member.
6228 (get_objfile_arch): Add prototype.
6229 * objfiles.c: Include "arch-utils.h".
6230 (allocate_objfile): Look up gdbarch associated with bfd.
6231 (get_objfile_arch): New function.
6232 * Makefile (objfiles.o): Update dependencies.
6234 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
6236 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
6238 (locexpr_describe_location): Replace current_gdbarch by
6240 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
6241 (dwarf2_add_field): Likewise.
6242 (read_tag_pointer_type): Likewise.
6243 (read_base_type): Likewise.
6244 (new_symbol): Likewise.
6246 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
6247 (decode_base_type, decode_function_type): Likewise.
6248 (coff_read_struct_type, coff_read_enum_type): Likewise.
6249 (coff_symtab_read): Replace current_gdbarch by objfile arch.
6250 (decode_base_type): Likewise.
6251 (coff_read_enum_type): Likewise.
6252 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
6253 (coff_read_enum_type): Likewise.
6255 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
6256 (end_psymtab): Likewise.
6257 (process_one_symbol): Likewise.
6259 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
6260 (parse_procedure): Likewise.
6261 (parse_partial_symbols): Likewise.
6263 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
6265 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
6266 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
6268 (read_range_type): Replace current_gdbarch by objfile arch. Replace
6269 static range_index_type by built-in type.
6270 (read_one_struct_field): Replace current_gdbarch by objfile arch.
6271 (read_enum_type): Likewise.
6273 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
6276 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
6278 * varobj.h (varobj_floating_p): Declare.
6279 * varobj.c (varobj_floating_p): New.
6280 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
6281 '@' as the name, update all floating varobjs.
6283 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
6285 * varobj.c (struct varobj_root): Rename use_selected_frame to
6286 floating, and clarify the meaning.
6287 (varobj_create, varobj_update, new_root_variable): Adjust.
6288 (value_of_root): Don't use type_changed as in variable,
6290 (c_value_of_root): Adjust.
6292 2008-03-25 Pedro Alves <pedro@codesourcery.com>
6294 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
6296 (linux_nat_wait): Add main lwp to gdb's thread list.
6297 * linux-thread-db.c (find_new_threads_callback): Also attach to
6298 already listed threads which thread_db didn't know about yet.
6300 2008-03-25 Pedro Alves <pedro@codesourcery.com>
6302 * linux-nat.c (drain_queued_events): Fix comment typo.
6303 (linux_nat_attach): In async mode, don't rely on storing a pending
6304 status. Instead place the wait status on the pipe.
6305 (linux_nat_resume): Remove unreacheable shortcut code in async
6307 (stop_wait_callback): In async mode, don't store pending status.
6308 Instead, cancel breakpoints or resend the signal appropriatelly.
6309 (cancel_breakpoint): New, refactored from
6310 cancel_breakpoints_callback.
6311 (cancel_breakpoints_callback): Call cancel_breakpoint.
6312 (pipe_to_local_event_queue): Remove special token processing.
6313 (linux_nat_wait): Issue an internal error if a pending status is
6314 found in async mode.
6316 2008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
6318 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
6320 2008-03-24 Nick Roberts <nickrob@snap.net.nz>
6321 Vladimir Prus <vladimir@codesourcery.com>
6323 * varobj.c (struct varobj_root): New component thread_id.
6324 (varobj_get_thread_id, check_scope): New functions.
6325 (c_value_of_root): Use check_scope. Switch to the
6326 proper thread if necessary.
6328 * varobj.h (varobj_get_thread_id): New extern.
6330 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
6332 2008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
6335 * top.c: Revert 2008-03-21 changes.
6337 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
6339 * thread.c (make_cleanup_restore_current_thread): Make it
6341 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
6342 * varobj.c (varobj_update): Don't save/restore frame.
6343 (c_value_of_root): Save/restore thread and frame here,
6344 using make_cleanup_restore_current_thread.
6345 * Makefile.in: Update dependecies.
6347 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
6349 * varobj.c (struct varobj_root): Clarify
6350 comment on the frame field.
6351 (varobj_create): Don't set frame if we have no
6354 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
6357 Suggested by Jan Kratochvil:
6358 * top.c (gdb_rl_operate_and_get_next_completion): Call
6359 rl_redisplay_function.
6360 (gdb_rl_redisplay): New.
6361 (init_main): Set rl_redisplay_function.
6363 2008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
6365 * aix-thread.c (pdc_read_regs): Fix compiler warning.
6366 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
6367 (store_regs_kernel_thread): Likewise.
6369 2008-03-21 Pedro Alves <pedro@codesourcery.com>
6371 Linux native async support.
6373 * target.h (struct target_ops): Delete to_async_mask_value and add
6375 (target_is_async_p, target_async): Formatting.
6376 (target_async_mask_value): Delete.
6377 (target_async_mask): Delete function declaration, and add new
6378 target macro with the same name.
6380 * target.c (update_current_target): Replace to_async_mask_value by
6381 to_async_mask. Default to_async_mask to return_one.
6382 (target_async_mask): Delete.
6383 (find_default_can_async_p, find_default_is_async_p): New.
6384 (init_dummy_target): register find_default_can_async_p and
6385 find_default_is_async_p on the dummy target.
6387 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
6388 (debug_linux_nat_async): New global.
6389 (show_debug_linux_nat_async): New function.
6390 (linux_nat_async_enabled, linux_nat_async_mask_value)
6391 (linux_nat_event_pipe, linux_nat_num_queued_events)
6392 (linux_nat_async_events_enabled): New globals.
6393 (struct waitpid_result): New struct.
6394 (waitpid_queue): New global.
6395 (queued_waitpid, push_waitpid, drain_queued_events): New.
6396 (my_waitpid): Call queued_waitpid.
6397 (linux_child_follow_fork): Disable async events during the call.
6398 (blocked_mask): Delete.
6399 (sync_sigchld_action, async_sigchld_action): New globals.
6400 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
6401 async mode, block events during the call.
6402 (linux_nat_create_inferior): New.
6403 (linux_nat_attach): In sync mode, restore the mask states. In
6404 async mode, wake the event loop immediatelly.
6405 (detach_callback): Drain all queued events of the lwp we're
6407 (linux_nat_detach): Block async mode, and drain events of the main
6409 (linux_nat_resume): If in async mode, mask async events during the
6410 call. If short circuiting, force event loop to wake up. If
6411 resuming, set target_executing, and register target events in the
6413 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
6414 (linux_nat_wait): In async mode, block events during the call.
6415 Only enable/disable passing SIGINT to the inferior in sync mode.
6416 Get events from local waitpid queue. If no interesting events was
6417 found, return to events loop. Reregister target events in the
6418 event loop on exit. In sync mode, no need to reblock SIGCHLD.
6419 (linux_nat_kill): Disable events on entry.
6420 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
6421 here. Detach async mode from the event loop if there are no more
6422 forks available, otherwise leave it on.
6423 (sigchld_handler): Assure this is called only in sync mode.
6424 (linux_async_permitted, linux_async_permitted_1): New globals.
6425 (set_maintenance_linux_async_permitted)
6426 (show_maintenance_linux_async_permitted): New functions.
6427 (linux_nat_is_async_p, linux_nat_can_async_p)
6428 (linux_nat_async_mask): New.
6429 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
6430 (get_pending_events, async_sigchld_handler): New.
6431 (linux_nat_async_events): New.
6432 (async_terminal_is_ours): New global.
6433 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
6434 (async_client_callback, async_client_context): New.
6435 (linux_nat_async_file_handler, linux_nat_async)
6436 (linux_nat_disable_async, linux_nat_enable_async): New.
6437 (linux_nat_add_target): Register linux_nat_create_inferior,
6438 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
6439 linux_nat_async_mask, linux_nat_terminal_inferior and
6440 linux_nat_terminal_ours.
6441 (_initialize_linux_nat): Remove local action variable, and update
6442 code that used it to use sync_sigchld_action. Add new
6443 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
6444 set/show command in the maintenance class. Add new "linux-async"
6445 maintenance set/show command. Block SIGCHLD by default. Setup
6446 async_sichld_action, and sync_sigchld_action. Install the default
6448 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
6451 * linux-thread-db.c (re_check_for_thread_db): New.
6452 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
6453 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
6454 (thread_db_async_mask): New.
6455 (init_thread_db_ops): Register thread_db_can_async_p,
6456 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
6458 * remote.c (remote_async_mask_value): New.
6459 (remote_return_zero): New.
6460 (init_remote_ops): Register remote_return_zero as callbacks of
6461 to_can_async_p and to_is_async_p.
6462 (remote_can_async_p, remote_is_async_p, remote_async): Update to
6463 use remote_async_mask_value.
6464 (remote_async_mask): New.
6465 (init_remote_async_ops): Remove to_async_mask_value setting and
6466 register remote_async_mask as to_async_mask callback in
6469 * Makefile.in (linux-nat.o): Update.
6471 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
6473 * gdbthread.h (add_thread_with_info): New.
6474 * linux-thread-db.c: Add some documentation.
6475 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
6476 (struct private_thread_info): Remove th_valid and ti_valid.
6477 Replace ti with tid.
6478 (thread_get_info_callback): Do not add TID to the new ptid. Do
6480 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
6481 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
6483 (attach_thread): Handle an already-existing thread. Use
6484 add_thread_with_info. Cache the th and tid.
6485 (detach_thread): Verify that private was set. Remove verbose
6486 argument and printing. Update caller.
6487 (thread_db_detach): Do not adjust inferior_ptid.
6488 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
6489 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
6490 (thread_db_wait): Do not use lwp_from_thread.
6491 (thread_db_pid_to_str): Use the cached TID.
6492 (thread_db_extra_thread_info): Check that private is set.
6493 (same_ptid_callback): Delete.
6494 (thread_db_get_thread_local_address): Do not use it or check
6495 is_thread. Check that private is set. Assume that the thread
6496 handle is already cached.
6497 (init_thread_db_ops): Remove to_resume and to_kill.
6498 * thread.c (add_thread_with_info): New.
6499 (add_thread): Use it.
6500 * linux-nat.c (find_thread_from_lwp): Delete.
6501 (exit_lwp): Do not use it. Check print_thread_events. Print before
6502 deleting the thread.
6503 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
6504 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
6505 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
6506 printf_unfiltered for thread exits.
6507 * procfs.c (procfs_wait): Likewise.
6509 2008-03-21 Chris Demetriou <cgd@google.com>
6511 * symtab.c (rbreak_command): Quote symbol name before passing
6512 it to break_command.
6514 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
6516 * eval.c (evaluate_subexp_for_address): Clarify error message.
6517 Use value_must_coerce_to_target.
6518 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
6519 * valops.c (value_assign): Call value_coerce_to_target when
6520 assigning to anything but internalvars. Leave GDB-side arrays
6521 as arrays when assigning to internalvars.
6522 (value_must_coerce_to_target, value_coerce_to_target): New.
6523 (value_coerce_array, value_addr): Call value_coerce_to_target.
6524 (value_array): Create the array in GDB's memory instead of
6526 * value.h (value_must_coerce_to_target, value_coerce_to_target):
6529 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
6531 * top.c (quit_confirm): Warn that we will kill the program.
6533 2008-03-19 Pedro Alves <pedro@codesourcery.com>
6535 * inflow.c (terminal_ours_1): Guard access to
6536 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
6538 2008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
6539 Jim Blandy <jimb@codesourcery.com>
6540 Daniel Jacobowitz <drow@false.org>
6542 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
6543 (dwarf2_read_address): Update prototype.
6545 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
6546 (signed_address_type): Likewise.
6547 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
6548 (execute_stack_op): Update calls to unsigned_address_type,
6549 signed_address_type and dwarf2_read_address. Fix implementation
6550 of DW_OP_deref_size.
6552 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
6553 (dwarf2_per_cu_addr_size): Likewise.
6554 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
6555 (struct dwarf2_loclist_baton): Likewise.
6557 * dwarf2loc.c (find_location_expression): Update calls to
6558 dwarf2_read_address. Use dwarf2_per_cu_objfile and
6559 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
6560 (locexpr_describe_location): Likewise.
6561 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
6562 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
6563 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
6564 to dwarf2_per_cu_addr_size (per_cu).
6565 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
6566 (loclist_read_variable): Likewise.
6567 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
6569 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
6570 instead of baton->objfile.
6571 (dwarf2_per_cu_obfile): New function.
6572 (dwarf2_per_cu_addr_size): Likewise.
6574 * dwarf2-frame.c (struct comp_unit): Move higher.
6575 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
6576 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
6577 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
6578 parameter by using fde->eh_frame_p. Use read_encoded_value
6579 to implement DW_CFA_set_loc.
6580 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
6581 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
6582 execute_stack_op and execute_cfa_program.
6583 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
6584 (size_of_encoded_value): Remove.
6585 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
6586 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
6587 (add_cie): Set cie->unit backlink.
6588 (decode_frame_entry_1): Set cie->addr_size. Update calls to
6590 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
6592 2008-03-17 Markus Deuling <deuling@de.ibm.com>
6594 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
6595 gdbarch_bfd_arch_info.
6597 2008-03-17 Joel Brobecker <brobecker@adacore.com>
6599 * aix-thread.c (pdc_read_regs): Minor reformatting.
6601 2008-03-17 Vladimir Prus <vladimir@codesourcery.com>
6603 * thread.c (print_thread_info): Don't insist
6604 on having current thread if there are no
6607 2008-03-17 Pedro Alves <pedro@codesourcery.com>
6609 * infcmd.c (attach_command_post_wait)
6610 (attach_command_continuation): New.
6611 (attach_command): Support background async execution, and async
6612 execution in synchronous mode.
6614 2008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
6616 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
6617 * symmisc.c (dump_symtab_1): Likewise.
6618 * wrapper.c (gdb_value_struct_elt): Likewise.
6620 2008-03-17 Pedro Alves <pedro@codesourcery.com>
6622 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
6624 2008-03-17 Pedro Alves <pedro@codesourcery.com>
6626 * linux-nat.c (linux_nat_filter_event): New, refactored from
6628 (linux_nat_wait): Call linux_nat_filter_event.
6630 2008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
6632 * top.c (execute_command): Fix uninitialized variable error.
6634 2008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
6636 * Makefile.in (amd64nbsd-nat.o): New dependency.
6637 * amd64nbsd-nat.c: Include "nbsd-nat.h".
6638 (_initialize_amd64nbsd_nat): Update target vector to use
6639 nbsd_pid_to_exec_file.
6640 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
6642 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
6644 Remove ignoring leading exec events code.
6645 * fork-child.c (startup_inferior): Do not set
6646 inferior_ignoring_leading_exec_events.
6647 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
6648 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
6649 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
6650 (handle_inferior_event): Remove code for ignoring leading exec
6652 * target.c (update_current_target): Do not inherit, or default,
6653 to_reported_exec_events_per_exec_call.
6654 (debug_to_reported_exec_events_per_exec_call): Remove.
6655 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
6656 * target.h (target_reported_exec_events_per_exec_call): Remove.
6657 (struct target): Remove the to_reported_exec_events_per_exec_call
6660 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
6662 Implement -thread-info.
6663 * gdbthread.h (print_thread_info): Declare.
6665 * thread.c (print_thread_info): New, extracted
6666 from info_threads_command and adjusted to
6667 work for CLI and MI.
6668 (info_threads_command): Use print_thread_info.
6669 * Makefile.in: Update dependencies.
6671 * mi/mi-cmds.c (mi_cmds): Specify a handler
6673 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
6674 * mi/mi-main.c (mi_cmd_thread_info): New.
6675 (mi_cmd_list_features): Include 'thread-info'.
6677 2008-03-14 Kevin Buettner <kevinb@redhat.com>
6679 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
6680 to decide whether to match instruction patterns using "sw" and "sd".
6682 2008-03-14 Pedro Alves <pedro@codesourcery.com>
6684 * infcmd.c (jump_command): Postpone disabling stdin until after
6687 2008-03-14 Pedro Alves <pedro@codesourcery.com>
6689 * inflow.c (gdb_getpgrp): New.
6690 (gdb_has_a_terminal): Use get_getpgrp.
6691 (terminal_ours_1): If attach_flag is set, don't refetch
6692 inferior_process_group.
6694 2008-03-14 Pedro Alves <pedro@codesourcery.com>
6696 * features/library-list.dtd: Allow "section" elements as children
6697 of "library". Add "section" element and describe its attributes.
6699 * solib-target.c (struct lm_info): Add section_bases member.
6700 (library_list_start_segment): Error out if seen a section element.
6701 (library_list_start_section): New.
6702 (library_list_end_library): New.
6703 (solib_target_free_library_list): Free section_bases.
6704 (section_attributes): New.
6705 (library_children): Make "segment" optional. Add "section" child.
6706 (library_list_children): Register library_list_end_library.
6707 (solib_target_relocate_section_addresses): Handle section bases.
6709 * NEWS: Mention new qXfer:libraries:read section offsets support.
6711 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
6713 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
6714 (make_exec_error_cleanup): Remove declarations.
6715 * utils.c (exec_error_cleanup_chain): Remove.
6716 (do_exec_error_cleanups, discard_exec_error_cleanups)
6717 (make_exec_error_cleanup): Remove.
6718 * event-loop.c (start_event_loop): Adjust call to
6720 * event-top.c (async_enable_stdin): Remove the paramater dummy.
6721 (async_disable_stdin): Don't register async_enable_stdin via
6723 * inf-loop.c (inferior_event_handler): Don't
6724 call do_exec_error_cleanups. Call async_enable_stdin instead.
6725 * event-loop.c (start_event_loop): Adjust call to
6727 * tui/tui-interp.c (tui_command_loop): Adjust call to
6730 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
6733 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
6734 * breakpoint.c (bpstat_do_actions): In async mode,
6735 don't jump to top expecting stop_bpstat to be already
6737 * event-loop.c (start_event_loop): Call async_enable_stdin
6739 * event-top.c (async_enable_stdin): Do nothing if sync_execution
6741 (command_handler): Do not setup continuation here.
6742 (command_line_handler_continuation): Move to...
6743 * top.c (command_line_handler_continuation): ... here.
6744 (execute_command): In async mode, register continuation.
6745 Don't check frame's language in running in async mode.
6746 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
6747 * inf-loop.c (complete_execution): Inline into...
6748 (inferior_event_handler): ... here. Clear target_executing before
6749 doing any cleanups. Don't try to show prompt if the target was
6751 * infcmd.c (signal_command): Add support for async mode.
6752 (finish_command): Only add continuation if the target was
6753 successfully resumed.
6754 * remote.c (init_async_opts): Register to_get_thread_local_address
6756 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
6757 with sync_execution.
6758 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
6761 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
6763 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
6764 * exec.c (exec_bfd_mtime): Define.
6765 (exec_close): Clear it.
6766 (exec_file_attach): Set it.
6767 * gdbcore.h (exec_bfd_mtime): Declare.
6768 * source.c (find_source_lines): Do not use bfd_get_mtime.
6770 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
6772 * top.c (simplified_command_loop): Remove.
6774 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
6776 Remove unused remote.c hooks.
6777 * remote.c (deprecated_target_resume_hook)
6778 (deprecated_target_wait_loop_hook): Remove.
6779 (remote_resume): Do not call deprecated_target_resume_hook.
6780 (remote_wait): Do not call deprecated_target_wait_loop_hook.
6781 (remote_async_wait): Likewise.
6783 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
6785 Implement MI notification for new threads.
6786 * doc/observer.texi (new_thread): Document.
6787 * observer.sh: Forward declare struct thread_info.
6788 * thread.c (add_thread): Notify observer.
6790 * interps.h (interp_init_ftype): New parameter
6792 (interp_set): Likewise.
6793 (top_level_interpreter_data): Declare.
6794 * interps.c (interp_set): New parameter top_level.
6795 Pass it to interpreter's init function. Remember
6796 top level interpreter.
6797 (interpreter_exec_cmd): Adjust.
6798 (top_level_interpreter_data): New.
6799 * main.c (captured_main): Pass 1 for top_level
6800 parameter of interp_set.
6801 * cli/cli-interp.c (cli_interpreter_init): New
6802 parameter top_level.
6803 * tui/tui-interp.c (tui_init): New parameter top_level.
6805 * mi/mi-interp.c (mi_new_thread): New.
6806 (mi_interpreter_init): If top level, register
6807 observer for new threads.
6809 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
6811 2008-03-14 Pedro Alves <pedro@codesourcery.com>
6813 * top.c (execute_command): Disable break and stop
6814 commands in async mode.
6816 2008-03-14 Pedro Alves <pedro@codesourcery.com>
6819 2008-03-14 Pedro Alves <pedro@codesourcery.com>
6820 * inf-loop.c (inferior_event_handler): Don't include remote.h.
6821 Call target_stop in the INF_QUIT_REQ case.
6822 * Makefile.in (inf-loop.o): Update.
6824 2008-03-14 Pedro Alves <pedro@codesourcery.com>
6826 * inf-loop.c (inferior_event_handler): Don't include remote.h.
6827 Call target_stop in the INF_QUIT_REQ case.
6828 * Makefile.in (inf-loop.o): Update.
6830 2008-03-14 Pedro Alves <pedro@codesourcery.com>
6832 * top.c (execute_command): Enable break, info and interrupt
6833 commands in async mode.
6835 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
6836 Daniel Jacobowitz <dan@codesourcery.com>
6838 * breakpoint.h (breakpoint_restore_shadows): New
6840 * breakpoint.c (breakpoint_restore_shadows): New.
6841 (read_memory_nobpt): Delete.
6842 * gdbcore.h (read_memory_nobpt): Delete declaration.
6843 * target.c (memory_xfer_partial): Call
6844 breakpoint_restore_shadows.
6845 (restore_show_memory_breakpoints)
6846 (make_show_memory_beakpoints_cleanup): New.
6847 (show_memory_breakpoints): New.
6848 * target.h (make_show_memory_beakpoints_cleanup): Declare.
6849 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
6850 Make sure we see memory breakpoints when checking if
6851 breakpoint is still there.
6852 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
6853 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
6854 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
6855 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
6857 2008-03-12 Pedro Alves <pedro@codesourcery.com>
6859 * thread.c (add_thread): Use printf_unfiltered to print.
6861 2008-03-12 Joel Brobecker <brobecker@gnat.com>
6863 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
6864 that is true only on x86-solaris and x86_64-solaris.
6865 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
6866 with proc_get_LDT_entry.
6868 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
6870 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
6871 * config.in, configure: Regenerate.
6872 * fork-child.c (fork_inferior): Call create_tty_session.
6873 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
6874 (create_tty_session): New function.
6875 * terminal.h: Declare create_tty_session.
6877 2008-03-12 Alan Modra <amodra@bigpond.net.au>
6880 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
6881 * mipsread.c: Include elf/internal.h.
6882 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
6885 2008-03-11 Markus Deuling <deuling@de.ibm.com>
6887 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
6888 to get at the current architecture and at the target specific vector.
6889 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
6890 remove define of I387_ST0_REGNUM.
6892 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
6894 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
6895 get at the current architecture
6896 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
6899 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
6900 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
6902 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
6903 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
6904 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
6906 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
6907 at the target specific vector.
6909 (i386_get_longjmp_target): Use get_frame_arch to get at the current
6910 architecture. Use gdbarch_tdep to get at the target specific vector.
6912 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
6913 update caller. Use gdbarch_tdep to get at the target specific vector.
6915 (i386_register_to_value: Use get_frame_arch to get at the current
6918 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
6921 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
6922 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
6923 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
6924 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
6926 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
6929 (i387_convert_register_p, i387_register_to_value,
6930 i387_value_to_register): Update call for i386_fp_regnum_p.
6932 * i387-tdep.h: Remove comment.
6933 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
6934 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
6935 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
6936 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
6937 I387_MXCSR_REGNUM): Add target specific vector as parameter.
6939 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
6941 * Makefile.in (fork-child.o): Update.
6942 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
6943 argument. Gather all gdbserver features together.
6944 * fork-child.c (exec_wrapper): New variable.
6945 (fork_inferior): Use it.
6946 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
6947 (unset_exec_wrapper_command, _initialize_fork_child): New.
6949 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
6951 * source.c (directory_command): Modify the determination of
6952 condition of terminal "from_tty".
6954 2008-03-10 Matt Rice <ratmice@gmail.com>
6956 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
6958 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
6960 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
6961 of the data passing to strtoulst function.
6962 (info_spu_signal_command): Likewise.
6964 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
6966 * mi/mi-interp.c (mi_command_loop): Remove
6969 2008-03-07 Joel Brobecker <brobecker@adacore.com>
6971 * remote.c (extended_remote_attach_1): Make local variable pid an int
6974 2008-03-07 Joel Brobecker <brobecker@adacore.com>
6976 * solib-svr4.c (svr4_same_1): New function, originally extracted
6977 from svr4_same and expanded to handle the sparc64 case.
6978 (svr4_same): Move up and reimplement using svr4_same_1.
6979 (enable_break): Use svr4_same_1 to do shared library name comparisons.
6981 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
6983 * MAINTAINERS: Move self to Paper trail.
6985 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
6987 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
6988 * event-loop.c (call_async_signal_handler): New.
6989 * event-loop.h (call_async_signal_handler)
6990 (gdb_call_async_signal_handler): Declare.
6991 (mark_async_signal_handler): Add comments.
6992 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
6993 * mingw-hdep.c (sigint_event, sigint_handler): New.
6994 (gdb_select): Use them. Wait for the readline signal handler
6996 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
6997 * posix-hdep.c (gdb_call_async_signal_handler): New function.
6998 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
7000 (remote_fileio_ctrl_c_signal_handler): Use
7001 gdb_call_async_signal_handler.
7002 (initialize_remote_fileio): Initialize sigint_fileio_token.
7003 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
7004 not initialize tokens here.
7005 (handle_remote_sigint_twice): Likewise. Reinstall
7006 handle_remote_sigint.
7007 (async_remote_interrupt_twice): Just call interrupt_query.
7008 (cleanup_sigint_signal_handler): Do not delete tokens.
7009 (remote_interrupt, remote_interrupt_twice): Use
7010 gdb_call_async_signal_handler.
7011 (interrupt_query): Reinstall the default signal handler.
7012 (_initialize_remote): Initialize tokens here.
7014 2008-03-04 Joel Brobecker <brobecker@adacore.com>
7016 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
7017 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
7018 Change the type of the lr register to code_ptr.
7019 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
7020 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
7021 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
7022 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
7023 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
7024 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
7025 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
7027 2008-03-03 James E. Wilson <wilson@tuliptree.org>
7029 * MAINTAINERS: Update my email address.
7031 2008-03-03 Keith Seitz <keiths@redhat.com>
7033 From Dave Murphy <davem@devkitpro.org>:
7034 * configure.ac: Set tcl configdir to win under mingw.
7035 * configure: Regenerate.
7037 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
7039 * breakpoint.c (fetch_watchpoint_value): New function.
7040 (update_watchpoint): Set and clear val_valid. Use
7041 fetch_watchpoint_value. Handle unreadable values on the
7042 value chain. Correct check for user-requested array watchpoints.
7043 (breakpoint_init_inferior): Clear val_valid.
7044 (watchpoint_value_print): New function.
7045 (print_it_typical): Use it. Do not free or clear old_val. Print
7046 watchpoints even if old_val == NULL.
7047 (watchpoint_check): Use fetch_watchpoint_value. Check for values
7048 becoming readable or unreadable.
7049 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
7050 (do_enable_watchpoint): Likewise.
7051 * breakpoint.h (struct breakpoint): Update comment for val. Add
7053 * NEWS: Mention watchpoints on inaccessible memory.
7055 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
7057 * Makefile.in (i386-nat.o): Update.
7058 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
7059 i386_use_watchpoints.
7060 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
7061 i386_use_watchpoints.
7062 * i386-nat.c (i386_stopped_data_address): Take two arguments.
7063 (i386_stopped_by_watchpoint): Update call.
7064 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
7065 * config/i386/nm-i386.h: Conditionalize definitions on
7066 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
7067 (i386_use_watchpoints): Declare.
7068 (i386_stopped_data_address): Update.
7069 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
7070 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
7072 2008-02-29 Joel Brobecker <brobecker@adacore.com>
7074 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
7075 * version.in: Bump version to 6.8.50.20080229-cvs.
7077 2008-02-28 Markus Deuling <deuling@de.ibm.com>
7079 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
7082 2008-02-28 Tom Tromey <tromey@redhat.com>
7084 * infcmd.c (notice_args_read): Print result of get_inferior_args.
7086 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
7088 * infcmd.c (kill_if_already_running): Make static. Use
7089 target_require_runnable.
7090 * target.c (target_require_runnable): New.
7091 * target.h (target_require_runnable): Declare.
7093 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
7095 * frame.c (reinit_frame_cache): Only annotate if frames were
7098 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
7100 * regformats/reg-ppc.dat: Rename "ps" to "msr".
7101 * regformats/reg-ppc64.dat: Likewise.
7103 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
7105 * features/Makefile (%.dat): Emit xmltarget statement.
7107 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
7108 Generate code to set gdbserver_xmltarget in init_registers_${name}.
7110 * regformats/arm-with-iwmmxt.dat: Regenerate.
7111 * regformats/mips64-linux.dat: Regenerate.
7112 * regformats/mips-linux.dat: Regenerate.
7113 * regformats/rs6000/powerpc-32.dat: Regenerate.
7114 * regformats/rs6000/powerpc-64.dat: Regenerate.
7115 * regformats/rs6000/powerpc-e500.dat: Regenerate.
7117 * regformats/reg-arm.dat: Add xmlarch statement.
7118 * regformats/reg-i386.dat: Likewise.
7119 * regformats/reg-i386-linux.dat: Likewise.
7120 * regformats/reg-x86-64-linux.dat: Likewise.
7121 * regformats/reg-spu.dat: Likewise.
7123 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
7125 * remote.c (remote_wait, remote_async_wait): Stop if we receive
7128 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
7130 * utils.c (debug_timestamp): New.
7131 (vfprintf_unfiltered): Print timestamps if requested.
7132 (show_debug_timestamp): New.
7133 (initialize_utils): Register "set debug timestamp".
7134 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
7136 2008-02-27 Joel Brobecker <brobecker@adacore.com>
7138 * breakpoint.c (skip_prologue_sal): New function.
7139 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
7140 computed from a line number.
7142 2008-02-27 Joel Brobecker <brobecker@adacore.com>
7144 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
7145 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
7146 Set PC register type to "code_ptr".
7147 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
7148 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
7149 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
7150 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
7151 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
7152 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
7153 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
7156 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
7158 * regformats/regdat.sh: Rename init_registers function in
7159 generated file to init_registers_${name}.
7161 * regformats/reg-crisv32.dat: Set "name" to crisv32.
7162 * regformats/reg-ppc64.dat: Set "name" to ppc64.
7163 * regformats/reg-s390x.dat: Set "name" to s390x.
7165 2008-02-26 Greg Law <glaw@undo-software.com>
7167 * regcache.c (registers_changed): Call reinit_frame_cache.
7169 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
7171 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
7172 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
7173 and svr4_fetch_objfile_link_map.
7174 * Makefile.in (sh-linux-tdep.o): Update.
7176 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
7178 * amd64-tdep.c (amd64_classify): Add support for decimal float
7180 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
7181 use the struct return convention.
7183 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
7185 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
7186 to old format. Discard breakpoint address if shared library is
7188 (breakpoint_1): Adjust formatting of table header accordingly.
7190 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
7192 * remote.c (remote_get_threadlist): If the response
7193 is empty, don't try to parse it.
7195 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
7197 Unbreak 'target async'.
7198 * serial.c (serial_async): Set the
7199 handler function before enabling async
7202 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
7204 * solib-svr4.c (enable_break): Convert r_brk to a code address.
7206 2008-02-21 Pedro Alves <pedro@codesourcery.com>
7208 * remote.c (extended_remote_attach_1): Set attach_flag.
7209 (extended_remote_create_inferior_1): Clear attach_flag.
7211 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
7213 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
7215 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
7216 * solib-svr4.c (solib_svr4_r_brk): New.
7217 (open_symbol_file_object, svr4_current_sos): Always check the
7219 (svr4_fetch_objfile_link_map): Do not set debug_base.
7220 (enable_break): Use r_brk if it is set.
7221 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
7222 (svr4_lp64_fetch_link_map_offsets): Likewise.
7223 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
7225 2008-02-20 Markus Deuling <deuling@de.ibm.com>
7226 Mark Kettenis <kettenis@gnu.org>
7228 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
7229 trad_frame_saved_reg.
7230 (trad-frame.h): New include.
7232 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
7233 instead of frame_obstack_zalloc.
7234 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
7236 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
7238 2008-02-20 Markus Deuling <deuling@de.ibm.com>
7240 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
7241 from disassemble_info instead of gdbarch_byte_order.
7243 * mips-tdep.c (gdb_print_insn_mips): Likewise.
7244 * arm-tdep.c (gdb_print_insn_arm): Likewise.
7246 2008-02-20 Markus Deuling <deuling@de.ibm.com>
7248 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
7249 gdbarch as parameter.
7251 * gdbarch.{c,h}: Regenerate.
7253 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
7255 * mem-break.c (default_memory_insert_breakpoint)
7256 (default_memory_remove_breakpoint): Likewise.
7257 * target.h (default_memory_remove_breakpoint)
7258 (default_memory_insert_breakpoint): Likewise.
7260 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
7261 parameter. Replace current_gdbarch by gdbarch.
7262 * m32r-tdep.c (m32r_memory_insert_breakpoint)
7263 (m32r_memory_remove_breakpoint): Likewise.
7265 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
7267 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
7269 2008-02-19 Joel Brobecker <brobecker@adacore.com>
7271 * NEWS: Add entry describing Add support improvements.
7273 2008-02-18 Markus Deuling <deuling@de.ibm.com>
7275 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
7278 2008-02-18 Markus Deuling <deuling@de.ibm.com>
7280 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
7281 register_offset_hack anymore.
7283 * regcache.{c,h} (register_offset_hack): Remove.
7285 2008-02-18 Markus Deuling <deuling@de.ibm.com>
7287 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
7289 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
7290 current_gdbarch by gdbarch.
7291 (hppa64_hpux_find_global_pointer): Likewise.
7292 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
7293 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
7294 find_global_pointer.
7296 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
7298 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
7300 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
7301 of gdbarch_num_regs.
7303 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
7304 replace current_gdbarch by gdbarch.
7305 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
7307 2008-02-18 Markus Deuling <deuling@de.ibm.com>
7309 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
7310 and replace current_gdbarch by gdbarch.
7312 (store_register): Update call for exec_one_dummy_insn.
7313 (fetch_register, store_register): Update call of regmap.
7315 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
7316 parameter and replace current_gdbarch by gdbarch.
7318 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
7319 the current architecture. Update call for getregs_supplies and
7321 (ppcnbsd_fetch_inferior_registers): Likewise.
7323 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
7324 replace current_gdbarch by gdbarch.
7325 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
7326 get_regcache_arch to get at the current architecture. Update call for
7329 2008-02-18 Markus Deuling <deuling@de.ibm.com>
7331 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
7334 2008-02-15 Markus Deuling <deuling@de.ibm.com>
7336 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
7338 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
7340 * NEWS: Mention pending breakpints in MI.
7342 2008-02-14 Markus Deuling <deuling@de.ibm.com>
7344 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
7346 2008-02-13 Markus Deuling <deuling@de.ibm.com>
7348 Add script to build and test GDB using enable-targets=all.
7350 * gdb_buildall.sh: New file.
7352 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
7354 * NEWS (New native configurations): Xtensa GNU/Linux.
7355 (New targets): Xtensa GNU/Linux.
7356 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
7358 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
7359 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
7360 * configure.tgt (xtensa*-*-linux*): New entry.
7361 * xtensa-config.c (xtensa_tdep): New variable.
7362 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
7363 (rmap): Change format based on new macro XTREG.
7364 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
7365 * xtensa-linux-nat.c: New.
7366 * xtensa-linux-tdep.c: New.
7367 * xtensa-xtregs.c: New.
7368 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
7369 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
7370 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
7371 (xtensa_register_t): New field coprocessor.
7372 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
7373 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
7374 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
7375 Update to handle privileged registers.
7376 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
7377 (xtensa_push_dummy_call): Set windowstart register correctly.
7378 (call0_analyze_prologue): Initialize xtensa_default_isa.
7379 (xtensa_derive_tdep): New.
7380 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
7381 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
7382 Call xtensa_derive_tdep().
7383 * config/xtensa/linux.mh: New.
7384 * regformats/reg-xtensa.dat: New.
7386 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
7388 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
7389 (filenames.h): New include.
7390 * Makefile.in (corelow.o): Add dependency for filenames.h.
7392 2008-02-08 Doug Evans <dje@google.com>
7394 * source.c (find_and_open_source): Always rewrite absolute filenames.
7396 2008-02-07 Doug Evans <dje@google.com>
7398 * breakpoint.c: #include "hashtab.h".
7399 (ambiguous_names_p): New fn.
7400 (update_breakpoint_locations): When restoring bp enable status, don't
7401 compare function names if any functions have same name.
7402 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
7404 2008-02-07 Joel Brobecker <brobecker@adacore.com>
7406 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
7407 instead of just a VEC*. Update use of SV.
7408 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
7410 2007-02-07 Joel Brobecker <brobecker@adacore.com>
7412 * NEWS: Put all new commands since gdb-6.7 together.
7414 2007-02-07 Joel Brobecker <brobecker@adacore.com>
7416 * ada-lang.c: #include "vec.h".
7417 (struct string_vector, new_string_vector, string_vector_append):
7419 (char_ptr): New typedef.
7420 (DEF_VEC_P (char_ptr)): New VEC type.
7421 (symbol_completion_add): Update profile to take the new VEC type
7422 instead of the old string_vector structure. Update code accordingly.
7423 (ada_make_symbol_completion_list): Use the new VEC type instead of
7424 the old string_vector structure, and update the code accordingly.
7425 * Makefile.in (ada-lang.o): Add dependency on vec.h.
7427 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
7429 * p-exp.y: Set current_type in missing places.
7430 (leftdiv_is_integer): New static variable.
7431 Typecast right operand of BINOP_DIV to long_double if both operands
7434 2008-02-06 Maciej W. Rozycki <macro@mips.com>
7436 * remote-mips.c (set_breakpoint): Rename to...
7437 (mips_set_breakpoint): ... this.
7438 (clear_breakpoint): Rename to...
7439 (mips_clear_breakpoint): ... this.
7440 (common_breakpoint): Rename to...
7441 (mips_common_breakpoint): ... this.
7442 (check_lsi_error): Rename to...
7443 (mips_check_lsi_error): ... this.
7445 2007-02-05 Joel Brobecker <brobecker@adacore.com>
7447 * language.h (struct language_defn): Add new field
7448 la_make_symbol_completion_list.
7449 * symtab.c (default_make_symbol_completion_list): Renames
7450 make_symbol_completion_list.
7451 (make_symbol_completion_list): New function.
7452 * symtab.h (default_make_symbol_completion_list): Add declaration.
7453 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
7454 (auto_language, local_language): Likewise.
7455 * objc-lang.c (objc_language_defn): Likewise.
7456 * scm-lang.c (scm_language_defn): Likewise.
7457 * m2-lang.c (m2_language_defn): Likewise.
7458 * f-lang.c (f_language_defn): Likewise.
7459 * jv-lang.c (java_language_defn): Likewise.
7460 * p-lang.c (pascal_language_defn): Likewise.
7461 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
7462 (minimal_language_defn): Likewise.
7463 * ada-lang.c (struct string_vector): New structure.
7464 (new_string_vector, string_vector_append, ada_unqualified_name)
7465 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
7466 (ada_make_symbol_completion_list): New functions.
7467 (ada_language_defn): Set la_make_symbol_completion_list.
7468 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
7469 this function is static.
7471 2008-02-05 Kevin Buettner <kevinb@redhat.com>
7473 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
7474 to account for call site optimizations.
7476 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
7478 * tracepoint.c (read_actions): Handle end-of-text indicator
7479 in action list properly. (Committed by Jim Blandy)
7481 2008-02-05 Jim Blandy <jimb@red-bean.com>
7483 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
7484 pseudoregister, not an internal error.
7485 Reported by: Andrzej Zaborowski
7487 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
7489 * varobj.c (c_value_of_variable): Use xstrdup.
7491 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
7493 Update stored rendition of varobj value when format changes.
7494 * varobj.c (varobj_set_display_format): Recomputed
7496 (c_value_of_variable): Return print_value.
7498 2008-02-03 Doug Evans <dje@google.com>
7500 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
7501 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
7502 * valops.c (value_one): New function.
7503 * value.h (value_one): Declare.
7505 Fix argument promotion for binary arithmetic ops for C.
7506 * valarith.c (unop_result_type): New fn.
7507 (binop_result_type): New fn.
7508 (value_binop): Move result type computation to binop_result_type.
7509 (value_pos, value_neg, value_complement): Move result type
7510 computation to unop_result_type.
7513 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
7514 Return basetype, fieldno if found. All callers updated.
7515 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
7517 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
7518 * symfile.h (fill_in_vptr_fieldno): Delete.
7520 2008-02-02 Doug Evans <dje@google.com>
7522 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
7524 * typeprint.c (*): Whitespace cleanup.
7526 2008-02-02 Mark Kettenis <kettenis@gnu.org>
7527 Luis Machado <luisgpm@br.ibm.com>
7528 Thiago Jung Bauermann <bauerman@br.ibm.com>
7530 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
7531 don't fit into registerson the stack the way GCC does.
7533 2008-02-01 Joel Brobecker <brobecker@adacore.com>
7535 * symtab.c (symbol_set_names): Do not add an entry in the demangling
7536 hash table for Ada symbols. Just store the linkage name as is,
7537 and leave the demangled_name as NULL.
7539 2007-02-01 Joel Brobecker <brobecker@adacore.com>
7541 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
7542 in the global scope.
7543 (new_symbol): Likewise.
7545 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
7547 * breakpoint.c (break_command_1): Return void.
7548 (break_command_really): Return void. Rethrow
7549 exceptions instead of returning.
7550 (gdb_breakpoint): Remove the error_message parameter.
7551 Return void. Rename to set_breakpoint.
7552 * gdb.h (gdb_breakpoint): Rename and move to...
7553 * breakpoint.h (set_breakpoint): ...here.
7554 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
7555 event hooks even if exception is thrown. Adjust to
7556 gdb_breakpoint interface changes.
7559 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
7561 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
7562 float in both first and second word in the doubleword, to support
7565 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
7567 Properly rethrow exception. This fixes errors
7568 about non-existent functions for -break-insert.
7569 * breakpoint.c (break_command_really): Use throw_exception
7570 for rethrowing. If rethrowing, don't print the exception.
7572 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7574 * NEWS: Mention Decimal Floating Point support.
7576 2008-01-31 Joel Brobecker <brobecker@adacore.com>
7578 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
7579 value type to builtin_type_void_func_ptr.
7581 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
7583 * s390-tdep.c (is_float_singleton, is_float_like,
7584 alignment_of, s390_return_value): Make checks for
7585 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
7587 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
7588 Thiago Jung Bauermann <bauerman@br.ibm.com>
7590 * infcmd.c (default_print_registers_info): Also print hex
7591 raw contents for TYPE_CODE_DECFLOAT registers.
7592 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
7593 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
7594 (rs6000_register_name): Add support for DFP pseudo-registers.
7595 (rs6000_pseudo_register_type): Likewise.
7596 rs6000_pseudo_register_reggroup_p): Likewise.
7597 (ppc_pseudo_register_read): New function.
7598 (ppc_pseudo_register_write): Likewise.
7599 (rs6000_pseudo_register_read): Likewise.
7600 (rs6000_pseudo_register_write): Likewise.
7601 (e500_pseudo_register_read): Move checks to
7602 rs6000_pseudo_register_read.
7603 (e500_pseudo_register_write): Move checks to
7604 rs6000_pseudo_register_write.
7605 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
7606 rs6000_pseudo_register_read and rs6000_pseudo_register_write
7607 in gdbarch if SPE or DFP is available. Adjust gdbarch's
7608 num_pseudo_regs to account for DFP pseudo regs.
7610 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7612 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
7613 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
7614 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
7615 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
7616 e500_pseudo_register_read, e500_pseudo_register_write): Use
7617 IS_SPE_PSEUDOREG macro.
7618 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
7619 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
7620 Remove initialization of tdep->ppc_ev31_regnum.
7622 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
7624 * printcmd.c (print_formatted): Handle references as for unformatted
7627 2008-01-30 Joel Brobecker <brobecker@adacore.com>
7629 * eval.c (evaluate_subexp_standard): Add handling of user
7630 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
7632 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
7634 * eval.c (evaluate_subexp_standard): Support
7635 BINOP_INTDIV opcode.
7637 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
7639 * valarith.c (value_binop): Add floating-point BINOP_MIN and
7641 For BINOP_EXP, use length and signedness of left operand only for
7642 result, as for shifts.
7643 For integral operands to BINOP_EXP, use new integer_pow and
7644 uinteger_pow functions so as to get full range of results.
7645 (integer_pow): New function.
7646 (uinteger_pow): New function.
7648 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
7650 Use vector for varobj_list_children interface.
7651 * gdb/varobj.c (varobj_list_children): Return vector
7653 * gdb/varobj.h (varobj_list_children): Adjust
7655 (varobj_p): Declare. Declare vector thereof.
7656 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
7657 for varobj_list_children change.
7658 * Makefile.in (varobj_h): Update dependencies.
7660 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7662 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
7663 TYPE_CODE_DECFLOAT arguments.
7664 (ppc64_sysv_abi_push_dummy_call) Likewise.
7665 (get_decimal_float_return_value): New function.
7666 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
7667 values by calling get_decimal_float_return_value.
7668 (ppc64_sysv_abi_return_value): Likewise.
7670 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
7672 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
7673 for preprocessor macro information. Formatting changes.
7675 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
7677 * remote.c (struct remote_state): Add cached_wait_status.
7678 (remote_exec_file): New variable.
7679 (PACKET_vAttach, PACKET_vRun): New constants.
7680 (extended_remote_restart): Do not query for status.
7681 (struct start_remote_args): New.
7682 (remote_start_remote): Take it as a second argument. Check
7683 whether the target is running. Issue an error for non-running
7684 non-extended targets. Cache the wait status. Set inferior_ptid
7686 (remote_open_1): Prompt to disconnect non-running targets. Make
7687 sure the target is marked running. Do not set inferior_ptid here.
7688 Update call to remote_start_remote. Do not call remote_check_symbols
7689 if the target is not running.
7690 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
7691 argument. Handle a non-running target.
7692 (remote_detach): Use it.
7693 (extended_remote_detach): New.
7694 (remote_disconnect): Fix typo. Use remoute_mourn_1.
7695 (extended_remote_attach_1, extended_remote_attach)
7696 (extended_async_remote_attach): New.
7697 (remote_vcont_resume): Remove unused variable.
7698 (remote_wait, remote_async_wait): Use any cached wait status.
7699 (putpkt_binary, getpkt): Clear any cached wait status.
7700 (extended_remoute_mourn_1): New.
7701 (extended_remote_mourn): Use it.
7702 (extended_async_remote_mourn, extended_remote_run): New.
7703 (extended_remote_create_inferior_1): New.
7704 (extended_remote_create_inferior): Use it.
7705 (extended_remote_async_create_inferior): Likewise.
7706 (remote_xfer_partial): Skip for non-executing targets.
7707 (init_extended_remote_ops): Set to_detach and to_attach.
7708 (init_extended_async_remote_ops): Likewise. Use
7709 extended_async_remote_mourn.
7710 (_initialize_remote): Register vAttach, vRun, and
7711 set remote exec-file.
7712 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
7714 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
7716 * Makefile.in (symfile.o): Update.
7717 * NEWS: Mention exec tracing support.
7718 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
7720 * infcmd.c (kill_if_already_running, detach_command)
7721 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
7722 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
7723 (follow_exec): Do not check may_follow_exec. Do not mourn and push
7724 targets. Apply the sysroot path to the loaded executable. Use
7725 no_shared_libraries.
7726 * linux-nat.c (linux_child_follow_fork): Print fork following
7727 messages if verbose.
7728 (kill_wait_callback): Kill again before waiting a second time.
7729 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
7730 no_shared_libraries.
7732 2008-01-29 Joel Brobecker <brobecker@adacore.com>
7734 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
7736 2008-01-29 Joel Brobecker <brobecker@adacore.com>
7738 * nto-tdep.h: Remove #include "defs.h".
7739 * nto-tdep.c: Add #include "defs.h".
7740 * Makefile.in (nto_tdep_h): Update dependencies.
7741 (nto-tdep.o): Likewise.
7743 2008-01-29 Joel Brobecker <brobecker@adacore.com>
7745 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
7747 (proceed, start_remote): Update call to wait_for_inferior.
7748 * inferior.h (wait_for_inferior): Update declaration.
7749 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
7750 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
7751 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
7752 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
7754 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
7756 * varobj (adjust_value_for_child_access): Added checking for
7757 returned value from gdb_value_ind.
7758 (c_describe_child): Likewise.
7759 (cplus_describe_child): Fixed a typo.
7761 2008-01-29 Jim Blandy <jimb@red-bean.com>
7763 * MAINTAINERS: Update my info.
7765 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
7767 Use multiple locations for hardware watchpoints.
7768 This eliminates the need to traverse value chain, doing
7769 various checks, in three different places.
7771 * breakpoint.h (struct bp_location): New fields
7772 lengths and watchpoint_type.
7773 (struct breakpoint): Remove the val_chain field.
7774 * breakpoint.c (is_hardware_watchpoint): New.
7775 (free_valchain): Remove.
7776 (update_watchpoint): New.
7777 (insert_bp_location): For hardware watchpoint, just
7779 (insert_breakpoints): Call update_watchpoint_locations
7780 on all watchpoints. If we have failed to insert
7781 any location of a hardware watchpoint, remove all inserted
7783 (remove_breakpoint): For hardware watchpoints, directly
7785 (watchpoints_triggered): Iterate over locations.
7786 (bpstat_stop_status): Use only first location of
7787 a resource watchpoint.
7788 (delete_breakpoint): Don't call free_valchain.
7789 (print_one_breakpoint): Don't print all
7790 locations for watchpoints.
7791 (breakpoint_re_set_one): Use update_watchpoint for
7794 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
7796 Don't reset watchpoint block on solib load.
7798 * breakpoint.c (insert_bp_location): For watchpoints,
7799 recompute condition.
7800 (breakpoint_re_set_one): Instead of recomputing value
7801 and condition for watchpoints, just reset value and
7802 let insert_breakpoints/insert_bp_location recompute it.
7803 Don't do anything about disabled watchpoint.
7805 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
7807 * valarith.c (value_binop): Handle unsigned integer
7810 2008-01-28 Kevin Buettner <kevinb@redhat.com>
7812 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
7813 instruction pattern that appears frequently in position
7814 independent code. Fix bug in code which looks for "fmov" and
7815 backtracks if no "fmov" is found.
7817 2008-01-28 Doug Evans <dje@google.com>
7819 * dbxread.c (read_dbx_symtab): Fix indentation.
7820 Reformat comments to 80 columns.
7821 Move local var def closer to only use.
7823 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
7825 * fork-child.c (SHELL_FILE): Remove #ifndef.
7826 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
7828 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
7830 * i386-tdep.c (i386_skip_noop): New function.
7831 (i386_analyze_prologue): Call i386_skip_noop function.
7833 2008-01-24 Michael Snyder <msnyder@specifix.com>
7835 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
7836 * win32-nat.c (win32_xfer_partial): Ditto.
7837 * target.c (default_xfer_partial): Minor whitespace adjustment.
7839 2008-01-24 Pedro Alves <pedro@codesourcery.com>
7841 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
7842 strip bit 1 even if pc doesn't point to thumb code.
7844 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
7846 * remote.c (remote_wait): Handle SIGINT between packets.
7847 (remote_async_wait): Likewise.
7849 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
7850 Chris Demetriou <cgd@google.com>
7852 * thread.c (add_thread_silent): Renamed
7854 (print_thread_events): New variable definition.
7855 (show_print_thread_events): New function.
7856 (_initialize_thread): Add "set print thread-events" and
7857 "show print thread-events" commands.
7858 (add_thread): Announce new thread.
7859 * gdbthread.h (add_thread_silent): Declare.
7860 (print_thread_events): New variable declaration.
7861 * inf-ttrace.c (inf_ttrace_wait): Don't
7862 inform about new thread, as add_thread is always
7863 called too, and will take care of that.
7864 * infrun.c (handle_inferior_event): Likewise.
7865 * procfs.c (procfs_wait): Likewise.
7866 * remote.c (remote_currthread): Likewise.
7867 * sol-thread.c (sol_thread_wait): Likewise.
7868 * win32-nat.c (get_win32_debug_event): Likewise.
7869 * linux-thread-db.c (attach_thread): Likewise.
7870 Remove the verbose parameter.
7871 (check_event): Make detach_thread be verbose
7872 only if print_thread_events is set.
7873 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
7874 about new thread. This is called only from
7875 linux-thread-db.c:attach_thread, which will take care.
7876 Remove the verbose parameter.
7877 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
7879 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
7881 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
7883 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
7885 * breakpoint.c (break_command_really): New parameter
7887 (break_command_1): Pass 0 as
7888 ignore_count to break_command_really.
7889 (gdb_breakpoint): Pass ignore_count to
7890 break_command_really.
7892 2008-01-21 Kevin Buettner <kevinb@redhat.com>
7894 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
7895 sigcontext struct via pointer.
7896 (struct sigframe comment): Update to show new field `psc'.
7898 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
7900 * infrun.c (handle_inferior_event): If
7901 we failed to remove breakpoints, error,
7902 don't try to increment PC by hand.
7904 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
7906 Add NetBSD/hppa target and host support.
7908 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
7909 (hppabsd_gregset): Move to ...
7910 (hppabsd_regset_from_core_section): Rename
7911 hppaobsd_regset_from_core_section and move to ...
7912 (hppabsd_find_global_pointer): Update comment.
7913 (hppabsd_init_abi): Make global. Do not register
7914 hppabsd_regset_from_core_section.
7915 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
7917 (_initialize_hppabsd_tdep): Move to ...
7918 * hppaobsd-tdep.c: ... here. New file.
7919 * hppnbsd-tdep.c: New file.
7920 * hppnbsd-nat.c: New file.
7921 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
7922 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
7923 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
7924 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
7925 * configure.host (hppa*-*-netbsd*): New entry.
7926 * configure.tgt (hppa*-*-netbsd*): New entry.
7927 (hppa*-*-openbsd*): Update.
7928 * NEWS (New native configuration): Mention NetBSD/hppa.
7929 (New targets): Mention NetBSD/hppa.
7931 2008-01-18 Markus Deuling <deuling@de.ibm.com>
7933 * gdbarch.sh (function_list): Add new property bits_big_endian to
7935 * gdbarch.{c,h}: Regenerate.
7937 * value.c (struct value): Replace BITS_BIG_ENDIAN by
7938 gdbarch_bits_big_endian (comment).
7939 (unpack_field_as_long, modify_field): Likewise.
7940 * value.h: Likewise (comment).
7941 * valops.c (value_slice): Likewise.
7942 * valarith.c (value_subscript, value_bit_index): Likewise.
7943 * gdbtypes.h (field): Likewise (comment).
7944 * eval.c (evaluate_subexp_standard): Likewise.
7945 * dwarf2read.c (dwarf2_add_field): Likewise.
7946 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
7947 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
7949 * defs.h (BITS_BIG_ENDIAN): Remove.
7951 2008-01-18 Markus Deuling <deuling@de.ibm.com>
7953 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
7955 * m2-exp.y (yylex): Likewise.
7956 * objc-exp.y (yylex): Likewise.
7958 * defs.h (DEPRECATED_STREQN): Remove.
7960 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
7962 * MAINTAINERS: Update my email address.
7964 2008-01-17 Jim Blandy <jimb@codesourcery.com>
7966 * README: Mention gdbserver/README.
7968 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
7970 * valarith.c (value_binop): Handle BINOP_INTDIV
7971 for unsigned and signed integers.
7973 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
7975 * s390-tdep.c (s390_gdbarch_init): Set default long double
7976 type to 128-bit IEEE quad.
7978 2008-01-17 Joel Brobecker <brobecker@adacore.com>
7980 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
7982 2008-01-16 Mark Kettenis <kettenis@gnu.org>
7984 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
7986 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
7987 * value.c: All callers changed.
7989 2008-01-16 Markus Deuling <deuling@de.ibm.com>
7991 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
7992 DEPRECATED_STREQ by its expression.
7993 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
7994 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
7995 (scan_xcoff_symtab): Likewise.
7996 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
7997 * f-lang.c (find_common_for_function): Likewise.
7998 * objc-exp.y (parse_number): Likewise.
8000 * defs.h (DEPRECATED_STREQ): Remove.
8002 2008-01-16 Markus Deuling <deuling@de.ibm.com>
8004 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
8005 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
8006 get_frame_arch to get at the current_architecture. Update AM33_MODE
8008 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
8009 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
8011 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
8013 2008-01-16 Markus Deuling <deuling@de.ibm.com>
8015 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
8017 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
8019 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
8020 current_gdbarch by gdbarch. Update caller.
8022 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
8023 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
8024 the current architecture. Update calls of
8025 amd64_native_gregset_supplies_p.
8026 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
8027 (amd64bsd_store_inferior_registers): Likewise.
8029 2008-01-16 Markus Deuling <deuling@de.ibm.com>
8031 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
8032 Replace current_gdbarch by gdbarch. Update caller.
8034 2008-01-16 Markus Deuling <deuling@de.ibm.com>
8036 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
8037 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
8038 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
8039 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
8040 (stabsect_build_psymtabs): Fix indentation.
8042 2008-01-15 Michael Snyder <msnyder@specifix.com>
8044 * corelow.c (core_xfer_partial): Comment, cut/paste error.
8046 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
8048 * win32-nat.c (win32_create_inferior): Restore code calling
8049 CloseHandle on ProcessInformation structure.
8051 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
8053 * configure.ac: Check for void * as 3 argument of ptrace.
8054 * configure: regenerate.
8056 2008-01-11 Markus Deuling <deuling@de.ibm.com>
8058 * alpha-tdep.c (alpha_heuristic_proc_start)
8059 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
8060 current_gdbarch by gdbarch.
8062 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
8063 current architecture by frame_info. Update alpha_heuristic_proc_start
8066 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
8067 get_frame_arch to get at the current architecture by frame_info. Update
8068 alpha_sigtramp_register_address call.
8070 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
8071 current_gdbarch by gdbarch. Update caller.
8072 (convert_to_extended, convert_from_extended): Add endianess parameter
8073 for comparison. Update caller.
8074 (arm_extract_return_value, arm_store_return_value): Use
8075 get_regcache_arch to get at the current architecture.
8077 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
8078 current_gdbarch by gdbarch. Update caller.
8079 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
8080 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
8082 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
8083 gdbarch as parameter. Update caller.
8084 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
8085 current_gdbarch by gdbarch. Update caller.
8087 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
8088 update caller. Replace current_gdbarch by gdbarch.
8090 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
8091 the current architecture. Replace current_gdbarch by gdbarch.
8092 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
8093 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
8094 expression. Add gdbarch as parameter and replace current_gdbarch with
8096 (M6811_TDEP): Remove.
8097 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
8099 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
8100 current_gdbarch by gdbarch. Update caller.
8102 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
8104 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
8107 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
8108 caller. Relace current_gdbarch by gdbarch.
8109 (altivec_register_p, spe_register_p): Likewise.
8110 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
8112 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
8113 altivec_register_p and spe_register_p.
8115 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
8116 caller. Replace current_gdbarch by gdbarch.
8117 (score_analyze_prologue): use get_frame_arch to get at the current
8120 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
8121 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
8122 current_gdbarch by gdbarch. Update caller.
8123 (sparc_frame_cache): Use get_frame_arch to get at the current
8125 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
8126 sparc_analyze_prologue.
8128 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
8131 2008-01-11 Markus Deuling <deuling@de.ibm.com>
8133 * exec.c: #include "arch-utils.h"
8134 (print_section_info): Use gdbarch_from_bfd to get at the
8135 current architecture. Replace current_gdbarch. Fix indention. Replace
8136 deprecated_print_address_numeric by paddress.
8137 * Makefile.in (exec.o) Add dependency to arch-utils.h.
8139 * valprint.c (val_print_string): Replace
8140 deprecated_print_address_numeric.
8141 * tracepoint.c (trace_mention, scope_info): Likewise.
8142 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
8143 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
8144 (maintenance_check_symtabs): Likewise.
8145 * symfile.c (list_overlays_command): Likewise.
8146 * stack.c (frame_info, print_block_frame_labels): Likewise.
8147 * printcmd.c (print_address, print_address_demangle)
8148 (address_info): Likewise.
8149 * corefile.c (memory_error): Likewise.
8150 * infcmd.c (jump_command): Likewise.
8151 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
8152 (mention, delete_breakpoint): Likewise.
8153 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
8154 * dwarf2read.c (dump_die): Likewise.
8155 * ada-valprint.c (ada_val_print_1): Likewise.
8156 * f-valprint.c (f_val_print): Likewise.
8157 * linux-fork.c (info_forks_command): Likewise.
8158 * m32r-com.c (m32r_load_section, m32r_load)
8159 (m32r_upload_command): Likewise.
8161 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
8163 2008-01-11 Markus Deuling <deuling@de.ibm.com>
8165 * gdbarch.sh (skip_prologue): Add gdbarch
8167 * gdbarch.{c,h}: Regenerate.
8169 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
8170 * amd64-tdep.c (amd64_skip_prologue): Likewise.
8171 * avr-tdep.c (avr_skip_prologue): Likewise.
8172 * cris-tdep.c (cris_skip_prologue): Likewise.
8173 * frv-tdep.c (frv_skip_prologue): Likewise.
8174 * h8300-tdep.c (h8300_skip_prologue): Likewise.
8175 * hppa-tdep.c (hppa_skip_prologue): Likewise.
8176 * i386-tdep.c (i386_skip_prologue): Likewise.
8177 * ia64-tdep.c (ia64_skip_prologue): Likewise.
8178 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
8179 * m32r-tdep.c (m32r_skip_prologue): Likewise.
8180 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
8181 * m68k-tdep.c (m68k_skip_prologue): Likewise.
8182 * m88k-tdep.c (m88k_skip_prologue): Likewise.
8183 * mep-tdep.c (mep_skip_prologue): Likewise.
8184 * mips-tdep.c (mips_skip_prologue): Likewise.
8185 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
8186 * mt-tdep.c (mt_skip_prologue): Likewise.
8187 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
8188 * score-tdep.c (score_skip_prologue): Likewise.
8189 * sh64-tdep.c (sh64_skip_prologue): Likewise.
8190 * sh-tdep.c (sh_skip_prologue): Likewise.
8191 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
8192 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
8193 * spu-tdep.c (spu_skip_prologue): Likewise.
8194 * v850-tdep.c (v850_skip_prologue): Likewise.
8195 * vax-tdep.c (vax_skip_prologue): Likewise.
8196 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
8197 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
8199 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
8200 current_gdbarch by gdbarch.
8201 * m32c-tdep.c (m32c_skip_prologue): Likewise.
8202 * s390-tdep.c (s390_skip_prologue): Likewise.
8204 2008-01-10 Doug Evans <dje@google.com>
8206 * defs.h (struct continuation_arg): Fix typo in comment.
8207 * target.c (target_translate_tls_address): Fix comment spelling error.
8209 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
8211 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
8212 (DOUBLEST_SCAN_FORMAT): Likewise.
8213 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
8214 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
8215 * c-exp.y (parse_number): Likewise.
8216 * jv-exp.y (parse_number): Likewise.
8217 * objc-exp.y (parse_number): Likewise.
8218 * p-exp.y (parse_number): Likewise.
8220 2008-01-09 Joel Brobecker <brobecker@adacore.com>
8222 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
8223 (check_typedef): Likewise.
8225 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
8227 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
8228 seen_double_big_d, treat the new H, D, and DD modifiers as length
8231 2008-01-08 Joel Brobecker <brobecker@adacore.com>
8233 * dwarf2read.c (read_enumeration_type): Add comment.
8235 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
8237 * config.in: Regenerate.
8239 2008-01-08 Joel Brobecker <brobecker@adacore.com>
8241 * ada-lang.c (ada_convert_actual): Renames convert_actual.
8243 (ada_convert_actuals): Delete.
8244 * ada-lang.h (ada_convert_actual): Add declaration.
8245 (ada_convert_actuals): Remove declaration.
8246 * infcall.c: #include "ada-lang.h".
8247 (value_arg_coerce): Add new parameter sp. Update function
8248 documetnation. Add handling of Ada function call parameters.
8249 * Makefile.in (infcall.o): Update dependencies.
8251 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
8253 * ada-lang.c (ensure_lval): Fix value lval kind.
8254 (convert_actual): Add handling for arguments passed by reference.
8256 2008-01-08 Doug Evans <dje@google.com>
8258 * dbxread.c (read_dbx_symtab): Fix indentation.
8260 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
8262 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
8263 (valarith.o): Depend on dfp.h.
8264 (valops.o): Likewise.
8265 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
8266 (set_decnumber_context): New function.
8267 (decimal_check_errors): Likewise.
8268 (decimal_from_number): Likewise.
8269 (decimal_to_number): Likewise.
8270 (decimal_from_string): Use set_decnumber_context and
8271 decimal_check_errors.
8272 (decimal_from_integral): New function.
8273 (decimal_from_floating): Likewise.
8274 (decimal_to_double): Likewise.
8275 (promote_decimal): Likewise.
8276 (decimal_binop): Likewise.
8277 (decimal_is_zero): Likewise.
8278 (decimal_compare): Likewise.
8279 (decimal_convert): Likewise.
8280 * dfp.h (decimal_from_integral): New prototype.
8281 (decimal_from_floating): Likewise.
8282 (decimal_to_double): Likewise.
8283 (decimal_binop): Likewise.
8284 (decimal_is_zero): Likewise.
8285 (decimal_compare): Likewise.
8286 (decimal_convert): Likewise.
8287 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
8288 call to value_from_decfloat.
8289 * valarith.c: Include dfp.h.
8290 (value_args_as_decimal): New function.
8291 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
8292 (value_logical_not): Likewise.
8293 (value_equal): Likewise.
8294 (value_less): Likewise.
8295 (value_pos): Likewise.
8296 (value_neg): Formatting fix.
8297 * valops.c: Include dfp.h.
8298 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
8299 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
8300 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
8301 (value_from_decfloat): Remove expect_type argument.
8302 * value.h (value_from_decfloat): Update prototype.
8304 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
8306 Ignore change in name of dynamic linker during
8307 execution on Solaris. This also unbreaks pending breakpoints.
8309 * solist.h (struct target_so_ops): New field same.
8310 * solib-svr4.c (svr4_same): New.
8311 (_initialize_svr4_solib): Register svr4_same.
8312 * solib.c (update_solib_list): Use ops->same, if available.
8314 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
8316 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
8317 when using MS-DOS paths.
8319 2008-01-05 Pedro Alves <pedro@codesourcery.com>
8321 * NEWS: Mention --pid and --core command line behaviour changes.
8323 2008-01-05 Pedro Alves <pedro@codesourcery.com>
8325 * main.c (captured_main): Remove 'count' varible and the
8326 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
8327 --pid options were issued simultaneously. If an explicit pid
8328 option was passed, don't fallback to core file. Detect extra
8329 arguments better in the presence of explicit pid or core
8332 2008-01-05 Joel Brobecker <brobecker@adacore.com>
8334 * ada-lang.c (ada_which_variant_applies): Correctly compute
8335 the value of the discriminant when the variant record is packed.
8337 2008-01-04 Joel Brobecker <brobecker@adacore.com>
8339 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
8340 that are used to differentiate homonyms.
8342 2008-01-04 Jerome Guitton <guitton@adacore.com>
8344 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
8345 when the type is an anonymous pointer type.
8346 (ada_check_typedef): Avoid a seg fault when the type is null.
8347 * ada-typeprint.c (print_array_type): Add support for pointer
8350 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
8352 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
8354 2008-01-04 Joel Brobecker <brobecker@adacore.com>
8356 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
8357 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
8359 2008-01-04 Joel Brobecker <brobecker@adacore.com>
8361 * ada-exp.y (chop_separator): New function.
8362 (write_selectors): Rewrite to re-use chop_separator.
8363 (ada_nget_field_index, get_symbol_field_type): New functions.
8364 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
8367 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
8369 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
8370 of SYMBOL_VALUE when working with function symbols.
8372 2008-01-03 Joel Brobecker <brobecker@adacore.com>
8374 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
8375 expressions. These expressions do not need to be rewriten.
8377 2008-01-03 Joel Brobecker <brobecker@adacore.com>
8379 * dwarf2read.c (read_enumeration_type): Flag type as stub if
8380 the given die is a declaration.
8382 2008-01-03 Joel Brobecker <brobecker@adacore.com>
8384 * ada-lang.c (ada_array_bound_from_type): Make non-static.
8385 Handle properly the case when the index type is an enumerated type.
8386 Do not return the subtype of the bounds type, just return the
8387 bounds type directly - this is not needed and is more consistent
8388 with what we do for arrays when no XA parallel type exists.
8390 2008-01-03 Joel Brobecker <brobecker@adacore.com>
8392 * ada-lang.c (static_unwrap_type): Add forward declaration.
8393 (template_to_static_fixed_type): Fields of dynamic types sometimes
8394 also need to be unwrapped. Take this into account.
8395 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
8396 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
8397 * ada-typeprint.c (ada_print_type): Get the typename from
8398 the original type, not the base type.
8400 2008-01-03 Jerome Guitton <guitton@adacore.com>
8402 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
8403 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
8404 Update calls to ada_to_fixed_type.
8405 (ada_template_to_fixed_record_type_1): Ditto, but without looking
8407 (ada_to_fixed_type): Add check_tag parameter; do not look for
8408 tag if null. When looking for a tag, use a fixed record type.
8409 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
8410 * ada-valprint.c (printable_val_type, ada_value_print): Update
8411 calls to ada_to_fixed_type.
8413 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
8415 * doublest.c (convert_floatformat_to_doublest): Call
8416 floatformat_to_doublest instead of floatformat_to_double and use
8418 (convert_doublest_to_floatformat): Call floatformat_from_doublest
8419 instead of floatformat_from_double and use DOUBLEST variables.
8421 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
8423 * MAINTAINERS (Write After Approval): Add self.
8425 2008-01-03 Joel Brobecker <brobecker@adacore.com>
8427 * symfile.c (set_initial_language): Make non-static.
8428 * symfile.h (set_initial_language): Add declaration.
8429 * language.c: #include "symfile.h".
8430 (set_language): Call set_initial_language if the frame language
8431 could not be determined.
8433 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
8435 * eval.c (evaluate_subexp_for_address): Provide frame address to
8436 locate_var_value only if it will be needed.
8438 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8440 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
8442 2008-01-02 Joel Brobecker <brobecker@adacore.com>
8444 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
8445 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
8446 This is needed to make sure that any other treatment applied
8447 to the resulting value does not fail for spurious reason,
8448 such as trying to take the address of this value.
8450 2008-01-02 Joel Brobecker <brobecker@adacore.com>
8452 * ada-lang.c (ada_value_equal): Dereference reference types when
8455 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
8457 Updated copyright notices for most files.
8459 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
8461 * win32-nat.c (psapi_module_handle): Remove static.
8462 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
8463 return first module found if base_address is zero. Don't initialize
8464 psapi function pointers here. Convert to cygwin paths when
8466 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
8467 executable name. Use get_module_name when that fails or when
8469 (_initialize_psapi): New function. Initialize psapi stuff before it is
8470 needed or issue a warning if it is not found. Move psapi_module_handle
8473 2008-01-01 Joel Brobecker <brobecker@adacore.com>
8475 * ada-lang.c (ada_remove_trailing_digits): New function.
8476 (ada_remove_po_subprogram_suffix): New function.
8477 (ada_decode): Improve. Move the description of the algorithm
8478 directly inside the code, instead of in the function global
8481 2008-01-01 Joel Brobecker <brobecker@adacore.com>
8483 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
8484 and always print the dereferenced value.
8486 2008-01-01 Joel Brobecker <brobecker@adacore.com>
8488 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
8489 of the case where the first argument is a reference.
8490 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
8492 2008-01-01 Joel Brobecker <brobecker@adacore.com>
8494 Implement support for Ada interface types.
8496 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
8497 (ada_is_ignored_field): Ignore fields that are a dispatch table
8500 2008-01-01 Joel Brobecker <brobecker@adacore.com>
8502 * top.c (print_gdb_version): Update copyright year.
8504 2008-01-01 Joel Brobecker <brobecker@adacore.com>
8506 * ChangeLog-2007: New ChangeLog rotation.
8507 * ChangeLog: Reset for 2008.
8508 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
8511 For older changes see ChangeLog-2007.
8517 version-control: never