1 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
3 * value.h (value_bitstring_subscript): New prototype.
4 * valarith.h (value_bitstring_subscript): New function.
5 (value_subscript): No longer handle TYPE_CODE_BITSTRING.
6 * eval.c (evaluate_subexp_standard): Call value_bitstring_subscript
7 instead of value_subscript to handle TYPE_CODE_BITSTRING.
9 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
11 * expression.h (struct expression): New member GDBARCH.
12 * parse.c (parse_exp_in_context): Initialize it.
13 * parser-def.h (parse_gdbarch, parse_language): New macros.
15 * ada-exp.y (parse_type): New macro.
16 Replace builtin_type_ macros by using parse_type.
17 Replace current_language by parse_language.
18 * ada-lex.l (processInt): Replace current_gdbarch by parse_gdbarch.
19 Replace builtin_type_ macros.
21 * c-exp.y (parse_type): New macro.
22 Replace builtin_type_ macros by using parse_type.
23 (parse_number): Replace current_gdbarch by parse_gdbarch.
24 (yylex): Replace current_language by parse_language.
26 * f-exp.y (parse_type, parse_f_type): New macros.
27 Replace builtin_type_ macros by using parse_{f_,}type.
28 (parse_number): Replace current_gdbarch by parse_gdbarch.
29 (yylex): Replace current_language by parse_language.
31 * jv-exp.y (parse_type): New macro.
32 (parse_number): Replace builtin_type_ macros by using parse_type.
34 * m2-exp.y (parse_type, parse_m2_type): New macros.
35 Replace builtin_type_ macros by using parse_{m2_,}type.
37 * objc-exp.y (parse_type): New macro.
38 Replace builtin_type_ macros by using parse_type.
39 (parse_number): Replace current_gdbarch by parse_gdbarch.
40 (yylex): Replace current_language by parse_language.
42 * p-exp.y (parse_type): New macro.
43 Replace builtin_type_ macros by using parse_type.
44 (parse_number): Replace current_gdbarch by parse_gdbarch.
45 (yylex): Replace current_language by parse_language.
47 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
49 * parser-defs.h (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE
50 and DATA_SYMBOL_TYPE arguments.
51 * parse.c (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE and
52 DATA_SYMBOL_TYPE arguments. Replace use of builtin_type_CORE_ADDR.
53 (write_dollar_variable): Update call.
55 * ada-exp.y (write_var_or_type): Update call.
60 * objc-exp.y: Likewise.
63 2008-09-10 Joel Brobecker <brobecker@adacore.com>
65 * ada-lang.c (ada_parent_type): Add handling of the case where
66 the _parent field is a pointer and/or has a parallel XVS type.
67 (ada_evaluate_subexp) [OP_VAR_VALUE]: When doing an
68 EVAL_AVOID_SIDE_EFFECTS evaluation of a tagged type, return
69 the type of the tag instead of doing forcing an EVAL_NORMAL
70 expression evaluation.
72 2008-09-10 Paul N. Hilfinger <hilfinger@adacore.com>
73 Joel Brobecker <brobecker@adacore.com>
75 * ada-lang.c (is_digits_suffix): New function.
76 (is_dot_digits_suffix): Remove.
77 (ada_lookup_symbol_list): Remove digits suffix from minimal symbols
78 before looking up in symbol table, and do not use wild matches on them.
79 (wild_match): Reimplement for speed and to allow matching of operator
81 (is_valid_name_for_wild_match): Return zero for names that do not
82 follow the GNAT encoding.
84 (is_name_suffix): Fix typo in comment.
85 (to_record_with_fixed_variant_part): Ditto.
87 2008-09-10 Pedro Alves <pedro@codesourcery.com>
89 * Makefile.in (gnu-nat.o): New rule.
91 2008-09-10 Joel Brobecker <brobecker@adacore.com>
93 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Use
94 archecture-neutral builtin_type_int32 instead of builtin_type_int.
96 2008-09-10 Joel Brobecker <brobecker@adacore.com>
98 * ada-lang.c (ada_evaluate_subexp) [BINOP_ADD, BINOP_SUB]:
99 Add special handling for pointer types.
101 2008-09-10 Pedro Alves <pedro@codesourcery.com>
103 * inf-ttrace.c (inf_ttrace_follow_fork): Declare locals at the
105 (inf_ttrace_resume, inf_ttrace_wait): Typos.
107 2008-09-10 Ulrich Weigand <uweigand@de.ibm.com>
109 * ada-lang.c (ada_array_length): Use builtin_type_int32 instead
111 (ada_evaluate_subexp) [UNOP_IN_RANGE]: Use operand range type
112 instead of builtin_type_int.
114 2008-09-09 Pedro Alves <pedro@codesourcery.com>
116 * infrun.c (normal_stop): Run hook-stop last.
118 2008-09-09 Pedro Alves <pedro@codesourcery.com>
120 * gnu-nat.c (gnu_pid_to_exec_file): Delete.
121 (init_gnu_ops): Don't register it.
123 2008-09-09 Pedro Alves <pedro@codesourcery.com>
125 * gnu-nat.c (gnu_attach): Push target before fetching the list of
128 2008-09-08 Daniel Jacobowitz <dan@codesourcery.com>
130 * valops.c (value_cast_structs): Return NULL for failure.
131 (value_cast): Handle NULL from value_cast_structs.
132 (value_fetch_lazy): Call check_typedef. Remove unused variable.
134 2008-09-08 Pedro Alves <pedro@codesourcery.com>
136 * inferior.h (context_switch_to): Delete.
137 * infrun.c (context_switch): Don't save and load infrun state.
138 (context_switch_to): Delete.
140 * infcmd.c (proceed_thread_callback): Replace context_switch_to
141 calls by switch_to_thread calls.
143 * gdbthread.h (save_infrun_state, load_infrun_state): Delete.
144 * thread.c (main_thread_state, main_thread_executing): Delete.
145 (inferior_thread): Delete references to them.
146 (add_thread_silent): Fix case where we're adding a thread with the
147 same ptid as an exited thread. Remove references to
149 (load_infrun_state, save_infrun_state): Delete.
150 (thread_alive, is_thread_state, any_running, is_executing)
151 (set_executing): Remove the special handling for targets that
152 don't register any thread.
153 (restore_current_thread, thread_apply_all_command)
154 (do_captured_thread_select): Unconditionally call
157 * mi/mi-main.c (mi_cmd_execute): Check for exited threads.
158 Call switch_to_thread instead of context_switch_to.
160 2008-09-08 Pedro Alves <pedro@codesourcery.com>
162 Remove global continuations in favour of a per-thread
165 * gdbthread.h (struct thread_info): Add comments around
166 continuations and intermediate_continuations.
167 (save_infrun_state, load_infrun_state): Delete continuations and
168 intermediate_continuations arguments.
169 * infrun.c (context_switch): Don't context-switch the continuations.
170 * thread.c (clear_thread_inferior_resources): Discard all
171 continuations of the thread we're clearing.
172 (save_infrun_state, load_infrun_state): Delete continuations and
173 intermediate_continuations arguments, and the code referencing
175 * utils.c: Include "gdbthread.h".
176 (cmd_continuation, intermediate_continuation): Delete.
177 (add_continuation): Add thread_info* argument. Install the
179 (restore_thread_cleanup): New.
180 (do_all_continuations_ptid, do_all_continuations_thread_callback):
182 (do_all_continuations): Reimplement.
183 (discard_all_continuations_thread_callback,
184 discard_all_continuations_thread): New.
185 (discard_all_continuations): Reimplement.
186 (add_intermediate_continuation): Add thread_info* argument.
187 Install the continuation on it.
188 (do_all_intermediate_continuations_thread_callback)
189 (do_all_intermediate_continuations_thread): New.
190 (do_all_intermediate_continuations): Reimplement.
191 (discard_all_intermediate_continuations_thread_callback): New.
192 (discard_all_intermediate_continuations_thread): New.
193 (discard_all_intermediate_continuations): Reimplement.
195 * breakpoint.c (until_break_command): Install the continuation on
198 * defs.h (cmd_continuation, intermediate_continuation): Delete.
199 (struct thread_info): Forward declare.
200 (add_continuation, add_intermediate_continuation): Add
201 thread_info* argument.
202 (do_all_continuations_thread, discard_all_continuations_thread)
203 (do_all_intermediate_continuations_thread)
204 (discard_all_intermediate_continuations_thread): Declare.
205 * inf-loop.c (inferior_event_handler): In non-stop only run
206 continuations on the thread that stopped. In all-stop, run
207 continuations on all threads.
208 * infcmd.c (step_once, finish_command): Adjust.
210 2008-09-08 Pedro Alves <pedro@codesourcery.com>
212 Remove the global stop_step in favour of a per-thread
215 * inferior.h (stop_step): Delete.
217 * gdbthread.h (struct thread_info): Add comments to stop_step.
218 (save_infrun_state, load_infrun_state): Remove stop_step argument.
219 * thread.c (load_infrun_state, save_infrun_state): Remove
220 stop_step argument, and references to it.
222 * infrun.c (clear_proceed_status): Clear stop_step.
223 (fetch_inferior_event): Adjust.
224 (context_switch): Don't context-switch stop_step.
225 (handle_inferior_event): Adjust.
226 (normal_stop): Adjust.
227 (save_inferior_status, restore_inferior_status): Adjust.
229 * infcmd.c (stop_step): Delete.
230 (step_1, step_1_continuation, step_once, until_next_command):
233 2008-09-08 Pedro Alves <pedro@codesourcery.com>
235 Remove the global step_multi in favour of a per-thread
238 * inferior.h (step_multi): Delete.
239 * gdbthread.h (struct thread_info): Add comments around
241 (save_infrun_state, load_infrun_state): Remove step_multi
243 * thread.c (load_infrun_state, save_infrun_state): Remove
244 step_multi argument, and references to it.
245 * infcmd.c (step_multi): Delete.
247 (step_1_continuation, until_next_command): Adjust.
248 * infrun.c (fetch_inferior_event): Adjust.
249 (context_switch): Don't context-switch step_multi.
250 (print_stop_reason, normal_stop): Adjust.
252 2008-09-08 Pedro Alves <pedro@codesourcery.com>
254 Remove the global stop_signal in favour of a per-thread
257 * inferior.h (stop_signal): Delete.
258 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
259 stop_signal argument.
260 * thread.c (load_infrun_state, save_infrun_state): Remove
261 stop_signal argument. Don't reference it.
263 * infcmd.c (stop_signal): Delete.
264 (program_info): Adjust.
265 * infrun.c (resume): Clear stop_signal.
266 (proceed): Adjust. Pass the last stop_signal to the thread we're
268 (context_switch): Don't context-switch stop_signal.
269 (handle_inferior_event, keep_going): Adjust.
270 (save_inferior_status, restore_inferior_status): Adjust.
272 * fbsd-nat.c: Include "gdbthread.h".
273 (find_signalled_thread, find_stop_signal): New.
274 (fbsd_make_corefile_notes): Use it.
275 * fork-child.c (startup_inferior): Adjust.
277 * linux-nat.c (get_pending_status): Adjust.
278 (linux_nat_do_thread_registers): Adjust.
279 (find_signalled_thread, find_stop_signal): New.
280 (linux_nat_do_thread_registers): Add stop_signal parameter.
281 (struct linux_nat_corefile_thread_data): Add stop_signal member.
282 (linux_nat_corefile_thread_callback): Pass stop_signal.
283 (linux_nat_do_registers): Delete.
284 (linux_nat_make_corefile_notes): Use find_stop_signal. Assume
285 there's always a thread.
287 * procfs.c (find_signalled_thread, find_stop_signal): New.
288 (find_stop_signal): New.
289 (procfs_do_thread_registers): Add stop_signal parameter.
290 (struct procfs_corefile_thread_data): Add stop_signal member.
291 (procfs_corefile_thread_callback): Pass args->stop_signal.
292 (procfs_make_note_section): Find the last stop_signal.
294 * solib-irix.c: Include gdbthread.h.
295 (irix_solib_create_inferior_hook): Adjust.
296 * solib-osf.c: Include gdbthread.h.
297 (osf_solib_create_inferior_hook): Adjust.
298 * solib-sunos.c: Include gdbthread.h.
299 (sunos_solib_create_inferior_hook): Adjust.
300 * solib-svr4.c: Include gdbthread.h.
301 (svr4_solib_create_inferior_hook): Adjust.
303 * win32-nat.c (do_initial_win32_stuff): Adjust.
305 2008-09-08 Pedro Alves <pedro@codesourcery.com>
307 * gdbthread.h (struct thread_info): Add comments around
309 (save_infrun_state, load_infrun_state): Remove proceed_to_finish
311 * thread.c (load_infrun_state, save_infrun_state): Delete
312 proceed_to_finish argument and references to it.
314 * infcall.c (call_function_by_hand): Adjust.
315 * infcmd.c (finish_command): Adjust.
316 * infrun.c (proceed_to_finish): Delete.
317 (clear_proceed_status): Adjust.
318 (context_switch): Don't context-switch proceed_to_finish.
319 (normal_stop, save_inferior_status, restore_inferior_status):
322 2008-09-08 Pedro Alves <pedro@codesourcery.com>
324 * inferior.h (stop_bpstat): Delete.
326 * breakpoint.h (bpstat_do_actions): Remove bpstat* argument.
328 * breakpoint.c (bpstat_do_actions): Rename to ...
329 (bpstat_do_actions_1): ... this. Make static. Change return type
330 to int. Return true if a breakpoint proceeded.
331 (bpstat_do_actions): New, as wrapper around bpstat_do_actions_1.
332 (delete_breakpoint): Don't reference the global stop_bpstat; it's
335 * gdbthread.h (struct thread_info): Add stop_bpstat.
336 (save_infrun_state, load_infrun_state): Remove stop_bpstat
338 * thread.c (load_infrun_state, save_infrun_state): Remove
339 stop_bpstat argument, and the code referencing it.
341 * infcall.c: Include "gdbthread.h".
342 (call_function_by_hand): Adjust.
343 * exceptions.c: Include "gdbthread.h".
344 (throw_exception): Adjust.
345 * infcmd.c (stop_bpstat): Delete.
346 (continue_command): In all-stop, set the ignore count on the
347 thread that reported the stop. In non-stop, set it on the current
349 (finish_command_continuation): Adjust.
350 (program_info): Adjust.
351 * infrun.c (clear_proceed_status): Adjust.
352 (context_switch): Don't context-switch stop_bpstat.
353 (handle_inferior_event): Adjust.
354 (normal_stop): Adjust.
355 (save_inferior_status, restore_inferior_status): Adjust.
357 * inf-loop.c (inferior_event_handler): Remove parameter to
358 bpstat_do_actions call.
359 * top.c (command_loop): Remove parameter to bpstat_do_actions
360 call. Call it unconditionally.
361 * event-top.c (command_handler): Ditto.
362 * python/python.c (execute_gdb_command): Ditto.
364 2008-09-08 Pedro Alves <pedro@codesourcery.com>
366 * inferior.h (step_over_calls): Delete.
368 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
369 step_over_calls argument.
370 * thread.c (save_infrun_state, load_infrun_state): Remove
371 step_over_calls argument. Adjust.
373 * infcmd.c (step_over_calls): Delete.
375 * infrun.c (clear_proceed_status): Adjust.
376 (context_switch): Don't context-switch step_over_calls.
377 (handle_inferior_event, save_inferior_status)
378 (restore_inferior_status): Adjust.
380 2008-09-08 Pedro Alves <pedro@codesourcery.com>
382 Remove context switching in favour of accessing thread_info fields
385 * infrun.c (stepping_over_breakpoint, step_resume_breakpoint):
387 (struct thread_stepping_state): Delete.
389 (follow_inferior_reset_breakpoints, follow_exec)
390 (resume, clear_proceed_status): Adjust.
392 (proceed, start_remote, init_wait_for_inferior): Adjust.
393 (struct execution_control_state): Add event_thread member.
394 (delete_step_resume_breakpoint_callback)
395 (delete_step_thread_step_resume_breakpoint)
396 (delete_step_thread_step_resume_breakpoint_cleanup)
397 (delete_step_thread_step_resume_breakpoint): New.
398 (wait_for_inferior, init_execution_control_state): Use
399 delete_step_thread_step_resume_breakpoint_cleanup.
400 (wait_for_inferior): Set the event_thread.
401 (fetch_inferior_event): Ditto. Delete the step-resume breakpoint
402 with delete_step_thread_step_resume_breakpoint.
403 (init_thread_stepping_state): Change parameter type to
405 (context_switch): Don't context switch prev_pc,
406 stepping_over_breakpoint, step_resume_breakpoint,
407 step_range_start, step_range_end, step_frame_id,
408 tss->stepping_over_breakpoint,
409 tss->stepping_through_solib_after_catch,
410 tss->stepping_through_solib_catchpoints, tss->current_line, or
412 (adjust_pc_after_break, handle_inferior_event)
413 (currently_stepping, step_into_function)
414 (insert_step_resume_breakpoint_at_sal)
415 (insert_longjmp_resume_breakpoint, keep_going): Adjust.
416 (clear_stepping_state): New.
417 (normal_stop): Adjust.
418 (save_inferior_status, restore_inferior_status): Adjust.
420 * gdbthread.h (struct thread_info): Comments describing the
421 members moved here. Add step_after_step_resume_breakpoint.
422 (delete_step_resume_breakpoint): Add thread_info argument.
423 (save_infrun_state, load_infrun_state): Remove prev_pc,
424 trap_expected, step_resume_breakpoint, step_range_start,
425 step_range_end, step_frame_id, another_trap,
426 stepping_through_solib_after_catch,
427 stepping_through_solib_catchpoints, current_line and
428 current_symtab function arguments.
429 (inferior_thread): Declare.
431 * thread.c (inferior_thread): New.
432 (delete_step_resume_breakpoint): Add a thread_info parameter and
434 (load_infrun_state, save_infrun_state): Remove prev_pc,
435 trap_expected, step_resume_breakpoint, step_range_start,
436 step_range_end, step_frame_id, stepping_over_breakpoint,
437 stepping_through_solib_after_catch,
438 stepping_through_solib_catchpoints, current_line and
439 current_symtab args. Remove code referencing them.
441 * infcmd.c (step_range_start, step_range_end, step_frame_id):
443 (step_1, step_once, until_next_command): Adjust.
445 * inferior.h (step_range_start, step_range_end, step_frame_id):
448 * linux-nat.c (linux_child_follow_fork): If following the child,
449 move the step state to it. Adjust.
450 * inf-ptrace.c (inf_ptrace_follow_fork): Ditto.
451 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
453 2008-09-08 Pedro Alves <pedro@codesourcery.com>
455 * bsd-uthread.c (bsd_uthread_find_new_threads): Claim the main
458 2008-09-08 Pedro Alves <pedro@codesourcery.com>
460 * corelow.c (add_to_thread_list): If this is the first time we
461 hear about thread info, update inferior_ptid.
462 (core_open): Clear the thread list and set inferior_ptid before
463 acknowledging a new inferior. Find threads before fetching
464 register info. Give an upper target layer a chance to find and
465 claim new threads. Print core generation and stop signal info
466 after finding new threads.
467 (get_core_register_section): Look at the lwp member of
468 inferior_ptid for detecting if we have threads info, instead of
470 (core_pid_to_str): New.
471 (init_core_ops): Register core_pid_to_str.
473 2008-09-08 Pedro Alves <pedro@codesourcery.com>
475 * spu-linux-nat.c (spu_child_post_startup_inferior)
476 (spu_child_post_attach): Don't add the main thread here.
478 2008-09-08 Pedro Alves <pedro@codesourcery.com>
480 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
482 * gnu-nat.c (inf_validate_procs): If this is the first time we're
483 seeing a thread id, extend the main thread's ptid. If we still
484 have pending execs, don't be verbose about new threads.
485 (gnu_wait, gnu_resume, gnu_attach, gnu_thread_alive)
486 (gnu_pid_to_str, cur_thread, sig_thread_cmd): Adjust.
487 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers):
490 2008-09-08 Pedro Alves <pedro@codesourcery.com>
492 * procfs.c (to_attach): Create a procinfo for the current lwp.
493 Add it to gdb's thread list.
494 (procfs_fetch_registers, procfs_store_registers): Assume there's
496 (procfs_wait): Don't add the main thread here.
497 (procfs_init_inferior): Create a procinfo for the main lwp here.
498 Change main thread's ptid with thread_change_ptid.
499 (procfs_notice_thread): Check for exited threads.
500 (procfs_corefile_thread_callback): Remove check for the main
502 (procfs_make_note_section): Assume there is always a thread.
504 * sol-thread.c (sol_thread_attach): Clear sol_thread_active before
505 attaching. Change the main thread ptid with thread_change_ptid.
506 (sol_thread_detach): Clear sol_thread_active.
507 (sol_thread_wait): Check for exited threads.
508 (sol_thread_create_inferior): Clear sol_thread_active before
509 creating a new inferior. Change the main thread ptid with
511 (sol_thread_mourn_inferior): Clear sol_thread_active.
512 (sol_find_new_threads_callback): Check for exited threads.
514 2008-09-08 Pedro Alves <pedro@codesourcery.com>
516 * inf-ttrace.c (inf_ttrace_wait): On TTEVT_LWP_CREATE and
517 LWP_TERMINATE, resume the caller thread. On TTEVT_LWP_CREATE,
518 TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE, don't stop the whole
519 process, and return TARGET_WAITKIND_IGNORE.
521 2008-09-08 Pedro Alves <pedro@codesourcery.com>
523 * inf-ttrace.c: Include <signal.h>
524 (inf_ttrace_delete_dead_threads_callback): New.
525 (inf_ttrace_resume_lwp): New.
526 (inf_ttrace_resume_callback, inf_ttrace_resume): Rewrite. Don't
527 delete dying threads until they are really dead.
528 (inf_ttrace_wait): After stopping the whole process, delete any
529 dying thread that is really dead by now.
530 (inf_ttrace_thread_alive): Return 1.
531 (inf_ttrace_extra_thread_info): New.
532 (inf_ttrace_target): Register inf_ttrace_extra_thread_info.
534 2008-09-08 Pedro Alves <pedro@codesourcery.com>
536 * inf-ttrace.c (inf_ttrace_follow_fork): Register the main thread
538 (inf_ttrace_attach): Add the main thread.
539 (inf_ttrace_resume_callback): Check for exited threads. Adjust
541 (inf_ttrace_wait): Decorate the main thread's ptid with lwp info
542 using thread_change_ptid, and set its private data. Don't add the
544 (inf_ttrace_pid_to_str): Adjust.
546 2008-09-08 Pedro Alves <pedro@codesourcery.com>
548 * bsd-uthread.c (bsd_uthread_wait): Decorate the main thread with
549 thread_change_ptid. Check for exited threads.
550 (bsd_uthread_find_new_threads): Check for exited threads.
552 2008-09-08 Pedro Alves <pedro@codesourcery.com>
554 * inf-ptrace.c: Include "gdbthread.h".
555 (inf_ptrace_attach): Add the main thread here.
556 * linux-nat.c (linux_nat_attach): Don't add the main thread here.
557 Decorate the main thread id with the lwp id.
559 2008-09-08 Pedro Alves <pedro@codesourcery.com>
561 * linux-nat.c (linux_nat_wait): Update inferior_ptid's ptid with
562 thread_change_ptid. Don't add or mark the main thread as running
564 * fork-child.c (fork_inferior): Add the main thread here.
566 2008-09-08 Jerome Guitton <guitton@adacore.com>
568 * rs6000-tdep.c (rs6000_fetch_instruction)
569 (rs6000_skip_stack_check): New functions.
570 (skip_prologue): Skip stack check sequence.
572 2008-09-08 David Daney <ddaney@avtrex.com>
574 * dummy-frame.h (frame.h): Include it.
575 (struct frame_id): Remove declaration.
577 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
579 * spu-tdep.c (spu_push_dummy_code): New function.
580 (spu_gdbarch_init): Install it.
582 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
584 * gdbarch.sh (gdbarch_dump): Use core_addr_to_string_nz
586 * gdbarch.c: Regenerate.
588 * target.c (target_xfer_partial, debug_print_register): Use
589 core_addr_to_string_nz instead of paddr_nz.
591 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
593 * rs6000-tdep.c (rs6000_gdbarch_init): Setup displaced stepping
594 *before* calling gdbarch_init_osabi.
595 (rs6000_aix_init_osabi): Disable displaced stepping.
597 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
599 * target.c (update_current_target): Do not inherit to_open
601 (pop_target): Call target_close on target_stack instead
603 (pop_all_targets_above): Likewise.
605 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
607 * gnu-v3-abi.c (gnuv3_decode_method_ptr): New function.
608 (gnuv3_print_method_ptr): Use it.
609 (gnuv3_method_ptr_to_value): Likewise.
611 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
613 * nto-tdep.h (struct nto_target_ops): Add gdbarch parameter to
614 register_area callback function.
615 * i386-nto-tdep.c (i386nto_register_area): Add gdbarch parameter.
616 Use it instead of current_gdbarch.
617 * nto-procfs.c (procfs_store_registers): Update call.
619 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
621 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Use
622 regcache architecture instead of current_gdbarch.
624 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
626 * mep-tdep.c (struct mep_prologue): Add gdbarch member.
627 (check_for_saved): Use it instead of current_gdbarch.
628 (is_arg_spill): Add gdbarch paramter. Use it instead
630 (mep_analyze_prologue): Add gdbarch parameter. Pass it
631 to is_arg_spill and check_for_saved.
632 (mep_skip_prologue, mep_analyze_frame_prologue): Update calls.
634 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
636 * hppa-tdep.c (internalize_unwinds): Use objfile architecture
637 instead of current_gdbarch.
639 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
641 * m68k-tdep.h (m68kbsd_fpreg_offset): Add gdbarch parameter.
642 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Add gdbarch paramter.
643 Use it instead of current_gdbarch.
644 (m68kbsd_supply_fpregset): Update call.
645 * m68kbsd-nat.c (m68kbsd_supply_fpregset): Likewise.
646 (m68kbsd_collect_fpregset): Likewise.
648 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
650 * cris-tdep.c (cris_version, cris_mode): Remove.
651 (crisv32_single_step_through_delay): Use tdep->cris_mode.
652 (cris_breakpoint_from_pc): Likewise.
653 (cris_frame_unwind_cache): Use tdep->cris_version.
654 (crisv32_scan_prologue): Likewise.
655 (cris_spec_reg_applicable): Add gdbarch argument.
656 Use tdep->cris_version.
657 (cris_register_size, cris_special_register_name): Update calls.
658 (cris_special_register_name): Add gdbarch argument.
659 (cris_register_name, crisv32_register_name): Update calls.
661 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
663 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Use info->arch
664 instead of current_gdbarch.
666 * sh64-tdep.c (gdb_print_insn_sh64): Remove.
667 (sh64_gdbarch_init): Install print_insn_sh64 directly.
668 * sh-tdep.c (gdb_print_insn_sh): Remove.
669 (sh_gdbarch_init): Install print_insn_sh directly.
671 * mips-tdep.c (gdb_print_insn_mips): Do not check mips_abi
672 from current_gdbarch.
673 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): New functions.
674 (mips_gdbarch_init): Install them instead of gdb_print_insn_mips
675 depending on mips_abi.
677 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
679 * gdbarch.sh (addr_bits_remove): Change type to 'm'.
680 (smash_text_address): Likewise.
681 * gdbarch.c, gdbarch.h: Regenerate.
683 * arch-utils.c (core_addr_identity): Add gdbarch parameter.
684 * arch-utils.h (core_addr_identity): Likewise.
685 * arm-tdep.c (arm_addr_bits_remove): Likewise.
686 (arm_smash_text_address): Likewise.
687 * hppa-tdep.c (hppa_smash_text_address): Likewise.
688 * m88k-tdep.c (m88k_addr_bits_remove): Likewise.
689 * s390-tdep.c (s390_addr_bits_remove): Likewise.
691 * mips-tdep.c (mips_addr_bits_remove): Add gdbarch parameter.
692 Use it instead of current_gdbarch.
694 * arm-tdep.c (arm_prologue_prev_register, arm_unwind_pc,
695 arm_dwarf2_prev_register): Update calls.
696 * m88k-tdep.c (m88k_unwind_pc): Update call.
698 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
700 * dwarf2expr.h (dwarf2_read_address): Add gdbarch argument.
701 * dwarf2expr.c (dwarf2_read_address): Add gdbarch argument.
702 Call gdbarch_integer_to_address directly instead of converting
703 to value and back. Update comment.
704 (execute_stack_op): Update call site.
705 * dwarf2loc.c (find_location_expression): Likewise.
706 (locexpr_describe_location): Update
708 * dwarf2expr.h (struct dwarf_expr_context): Add gdbarch member.
709 * dwarf2-frame.c (execute_stack_op): Initialize ctx->gdbarch.
710 * dwarf2loc. (dwarf2_evaluate_loc_desc): Likewise.
711 (dwarf2_loc_desc_needs_frame): Likewise.
713 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
715 * breakpoint.h (struct bp_location): Change type of section
716 member to "struct obj_section *".
717 * tracepoint.h (struct tracepoint): Likewise.
718 * symtab.h (struct general_symbol_info): Replace bfd_section
719 member with obj_section.
720 (struct symtab_and_line): Change type of section member to
721 "struct obj_section *".
722 (SYMBOL_BFD_SECTION): Remove macro, replace by ...
723 (SYMBOL_OBJ_SECTION): ... this.
725 * minsym.c (prim_record_minimal_symbol_and_info): Record symbol
726 section as obj_section instead of bfd_section.
728 * ada-lang.c (ada_decode_symbol): Use gsymbol->obj_section
729 directly instead of looking of obj_section from bfd_section.
731 * objfiles.h (find_pc_sect_section): Remove.
732 * objfiles.c (find_pc_sect_section): Remove.
733 (find_pc_section): Inline find_pc_sect_section code.
735 * symfile.h (find_pc_overlay): Return struct obj_section *.
736 (find_pc_mapped_section): Likewise.
737 (section_is_overlay, section_is_mapped): Change type of section
738 argument to struct obj_section *.
739 (pc_in_mapped_range, pc_in_unmapped_range): Likewise.
740 (overlay_mapped_address, overlay_unmapped_address): Likewise.
741 (symbol_overlayed_address): Likewise.
742 * symtab.h (symbol_overlayed_address): Likewise.
743 * symfile.c (overlay_is_mapped): Remove.
744 (section_is_mapped): Inline overlay_is_mapped code. Update.
745 (overlay_invalidate_all): Update.
746 (section_is_overlay): Change section argument to type
747 "struct obj_section *". Use bfd_ methods.
748 (pc_in_unmapped_range): Likewise. Handle relocated sections.
749 (pc_in_mapped_range): Likewise. Handle relocated sections.
750 (sections_overlap): Likewise.
751 (overlay_unmapped_address): Likewise.
752 (overlay_mapped_address): Likewise.
753 (symbol_overlayed_address): Likewise.
754 (find_pc_overlay): Return struct obj_section *.
755 (find_pc_mapped_section): Likewise.
756 (list_overlays_command): Update.
757 (map_overlay_command, unmap_overlay_command): Update.
758 (simple_overlay_update): Update.
760 * block.h (blockvector_for_pc_sect): Change section argument
761 to type "struct obj_section *".
762 (block_for_pc_sect): Likewise.
763 * block.c (blockvector_for_pc_sect): Change section argument
764 to type "struct obj_section *".
765 (block_for_pc_sect): Likewise.
766 * symtab.h (find_pc_sect_function, find_pc_sect_psymtab,
767 find_pc_sect_symtab, find_pc_sect_psymbol, find_pc_sect_line,
768 lookup_minimal_symbol_by_pc_section, find_function_start_pc): Likewise.
769 (matching_bfd_sections): Rename to ...
770 (matching_obj_sections): ... this. Update argument types.
771 * blockframe.c (find_pc_sect_function): Likewise.
772 * breakpoint.c (describe_other_breakpoints): Likewise.
773 (breakpoint_has_pc, check_duplicates_for): Likewise.
774 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
775 (lookup_minimal_symbol_by_pc_section): Likewise.
776 * symtab.c (find_pc_sect_psymtab_closer): Likewise.
777 (find_pc_sect_psymtab, find_pc_sect_psymbol, find_pc_sect_symtab,
778 find_pc_sect_line, find_function_start_pc): Likewise.
779 (matching_bfd_sections): Rename to ...
780 (matching_obj_sections): ... this. Update argument types.
782 * blockframe.c (find_pc_partial_function): Update to section
783 type changes. No longer call find_pc_sect_section.
784 (cache_pc_function_section): Change to type "struct obj_section *".
785 * breakpoint.c (resolve_sal_pc): Update to section type changes.
786 * exec.c (xfer_memory): Likewise.
787 * findvar.c (read_var_value): Likewise.
788 * infcmd.c (jump_command): Likewise.
789 * linespec.c (minsym_found): Likewise.
790 * maint.c (maintenance_translate_address): Likewise.
791 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
792 (lookup_solib_trampoline_symbol_by_pc): Likewise.
793 * parse.c (write_exp_msymbol): Likewise.
794 * printcmd.c (build_address_symbolic): Likewise.
795 (address_info, sym_info): Likewise.
796 * symmisc.c (dump_msymbols, print_symbol): Likewise.
797 * symtab.c (fixup_section): Likewise.
798 (fixup_symbol_section, fixup_psymbol_section): Likewise.
799 (find_pc_line, find_function_start_sal): Likewise.
800 * target.c (memory_xfer_partial): Likewise.
801 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline): Likewise.
802 * spu-tdep.c (spu_overlay_update): Likewise.
804 2008-09-04 Doug Evans <dje@google.com>
806 * defs.h (plongest,pulongest): Renamed from paddr_u,paddr_d.
807 Change argument of pulongest from CORE_ADDR to ULONGEST.
809 * utils.c (plongest): Renamed from paddr_d.
810 (pulongest): Renamed from paddr_u, change arg type to ULONGEST.
811 * remote-mips.c (send_srec): Use paddr_nz instead of paddr_u in
812 `CORE_ADDR addr' arg of error message.
814 2008-09-03 Angela Marie Thomas <angela@releasedominatrix.com>
816 * ser-tcp.c (ser_tcp_send_break): New function.
817 (_initialize_ser_tcp): Use ser_tcp_send_break.
818 * ser-tcp.h (ser_tcp_send_break): New prototype.
820 2008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
822 * spu-tdep.c (spu_push_dummy_call): Update all stack pointer slots
823 when allocating stack frame for inferior call.
825 2008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
827 * spu-tdep.c (spu_frame_unwind_cache): Do not attempt to unwind
828 SP or return address if we failed to find a valid frame.
830 2008-09-03 Aleksandar Ristovski <aristovski@qnx.com>
832 * breakpoint.c (breakpoint_init_inferior): Mark as not inserted only
833 non-permanent breakpoints.
834 (bpstat_stop_status): Change enable_state to bp_disabled only for
835 non-permanent breakpoints.
836 (bp_loc_is_permanent): New function.
837 (create_breakpoint): Check if the location points to a permanent
838 breakpoint and if it does, make breakpoint permanent.
839 (update_breakpoint_locations): Make sure new locations of permanent
840 breakpoints are properly initialized.
841 * i386-tdep.c (i386_skip_permanent_breakpoint): New function.
842 (i386_gdbarch_init): Set gdbarch_skip_permanent_breakpoint.
844 2008-09-02 Pedro Alves <pedro@codesourcery.com>
846 * breakpoint.c (insert_breakpoints, update_global_location_list):
847 Check breakpoints_always_inserted_mode instead of
848 always_inserted_mode directly.
850 2008-09-02 Andreas Schwab <schwab@suse.de>
852 * ia64-tdep.c (ia64_get_dyn_info_list): Use obj_section_addr.
854 2008-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
856 Stay compatible after the GCC PR fortran/29635 fix.
857 * dwarf2read.c (process_die <DW_TAG_imported_module>)
858 (process_die <DW_TAG_imported_module>): Do not assert anything about
859 these unsupported tags.
861 2008-08-29 Tom Tromey <tromey@redhat.com>
863 * maint.c (_initialize_maint_cmds): Fix typo.
865 2008-08-29 Tom Tromey <tromey@redhat.com>
867 * dwarf2read.c (dwarf2_build_psymtabs_hard): Copy dirname on
870 2008-08-27 Ulrich Weigand <uweigand@de.ibm.com>
872 * remote.c: Include "gdb_stat.h".
874 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
876 * dummy-frame.h (dummy_frame_pop): Add prototype.
877 * dummy-frame.c: Include "observer.h".
878 (dummy_frame_push): Do not check for stale frames.
879 (dummy_frame_pop): New function.
880 (cleanup_dummy_frames): New function.
881 (_initialize_dummy_frame): Install it as inferior_created observer.
883 * frame.h (struct frame_id): Update comments.
884 (frame_id_inner): Remove prototype.
885 * frame.c (frame_id_inner): Make static. Add comments.
886 (frame_find_by_id): Update frame_id_inner safety net check to avoid
887 false positives for targets using non-contiguous stack ranges.
888 (get_prev_frame_1): Update frame_id_inner safety net check.
889 (frame_pop): Call dummy_frame_pop when popping a dummy frame.
891 * stack.c (return_command): Directly pop the selected frame.
892 * infrun.c (handle_inferior_event): Remove dead code.
893 * i386-tdep.c (i386_push_dummy_call): Update comment.
895 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
897 * breakpoint.c (remove_breakpoint): Do not fail if unable to remove
898 breakpoint from shared library.
900 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
902 * solib-svr4.c (read_program_header): New function.
903 (scan_dyntag_auxv): New function.
904 (elf_locate_base): Use it if scan_dyntag fails.
905 (find_program_interpreter): New function.
906 (enable_break): Use it instead of .interp section.
908 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
910 * remote.h (remote_filename_p, remote_bfd_open): Add prototypes.
911 * remote.c (remote_bfd_iovec_open, remote_bfd_iovec_close,
912 remote_bfd_iovec_pread, remote_bfd_iovec_stat, remote_filename_p,
913 remote_bfd_open): New functions.
914 (remote_hostio_send_command): Fail safely if remote connection
917 * solist.h (solib_open): Remove prototype.
918 (solib_bfd_open): Add prototype.
919 * solib.c: Include "remote.h".
920 (solib_open): Remove, replace by ...
921 (solib_bfd_open): ... this new function. Handle remote BFDs.
922 (solib_map_sections): Replace solib_open by solib_bfd_open.
923 * solib-frv.c: Include "exceptions.h".
924 (enable_break2): Replace solib_open by solib_bfd_open.
925 * solib-svr4.c: Include "exceptions.h".
926 (enable_break): Replace solib_open by solib_bfd_open.
928 * symfile.c: Include "remote.h".
929 (build_id_verify): Handle remote BFDs.
930 (separate_debug_file_exists): Use BFD to access file. Handle
932 (symfile_bfd_open): Handle remote BFDs.
933 (reread_symbols): Handle remote BFDs.
935 * NEWS: Mention "remote:" argument prefix to "set sysroot".
937 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
939 * gdbarch.sh (target_gdbarch): New global variable.
940 (deprecated_current_gdbarch_select_hack): Set it.
941 * gdbarch.c, gdbarch.h: Regenerate.
943 * arch-utils.c (gdbarch_update_p): Use target_gdbarch instead
945 * target-descriptions.c (target_find_description): Likewise.
946 * arm-tdep.c (arm_update_current_architecture): Likewise.
947 (show_fp_model, arm_show_abi, arm_show_fallback_mode,
948 arm_show_force_mode): Likewise.
949 * mips-tdep.c (show_mask_address, show_mipsfpu_command,
950 show_mips_abi): Likewise.
951 * mep-tdep.c (me_module_register_set, current_me_module): Likewise.
953 * target.c (target_translate_tls_address): Use target_gdbarch
954 instead of current_gdbarch.
955 * remote.c (struct packet_reg): Likewise.
956 (get_remote_arch_state, packet_reg_from_regnum,
957 packet_reg_from_pnum, remote_check_symbols, remote_wait,
958 remote_address_masked, remote_insert_breakpoint,
959 remote_insert_hw_breakpoint, remote_read_description): Likewise.
960 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
961 * remote-mips.c (mips_open, mips_common_breakpoint): Likewise.
962 * cris-tdep.c (cris_can_use_hardware_watchpoint): Likewise.
964 * solib.c (solib_open, solib_map_sections, solib_read_symbols,
965 solib_add, info_sharedlibrary_command, solib_address,
966 solib_create_inferior_hook, in_solib_dynsym_resolve_code,
967 solib_global_lookup): Likewise.
968 * solib-frv.c (enable_break2, frv_relocate_main_executable): Likewise.
969 * solib-irix.c (irix_current_sos, irix_open_symbol_file_object):
971 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
972 * solib-svr4.c (exec_entry_point, enable_break, svr4_free_so,
973 set_solib_svr4_fetch_link_map_offsets, svr4_fetch_link_map_offsets):
975 * nto-tdep.c (nto_find_and_open_solib, nto_init_solib_absolute_prefix,
976 nto_truncate_ptr): Likewise.
977 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Likewise.
979 2008-08-26 Luis Machado <luisgpm@br.ibm.com>
981 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections) New structure.
982 (ppc_linux_vmx_regset_sections): New structure.
983 (ppc_linux_fp_regset_sections): New structure.
984 (ppc_linux_init_abi): Select core-file regset based on target
987 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
989 * target.c (debug_print_register): Use regcache_raw_collect
990 instead of regcache_cooked_read. Only handle raw registers.
992 2008-08-25 Pedro Alves <pedro@codesourcery.com>
994 * cp-name-parser.y: Include config.h before system headers.
996 2008-08-25 Ulrich Weigand <uweigand@de.ibm.com>
998 * m88k-tdep.c: Update for unwinder changes.
1000 2008-08-24 Tom Tromey <tromey@redhat.com>
1002 * s390-tdep.c (s390_address_class_type_flags): Use
1003 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1.
1004 (s390_address_class_type_flags_to_name): Likewise.
1005 (s390_address_class_name_to_type_flags): Likewise.
1007 2008-08-24 Tom Tromey <tromey@redhat.com>
1009 * rs6000-tdep.c (rs6000_builtin_type_vec128): Don't use
1011 * features/rs6000/powerpc-vsx32l.c
1012 (initialize_tdesc_powerpc_vsx32l): Update.
1013 * features/rs6000/powerpc-vsx32.c
1014 (initialize_tdesc_powerpc_vsx32): Update.
1015 * features/rs6000/powerpc-vsx64.c
1016 (initialize_tdesc_powerpc_vsx64): Update.
1017 * features/rs6000/powerpc-vsx64l.c
1018 (initialize_tdesc_powerpc_vsx64l): Update.
1019 * target-descriptions.c (maint_print_c_tdesc_cmd): Emit
1020 TYPE_VECTOR, not TYPE_FLAGS.
1022 2008-08-24 Tom Tromey <tromey@redhat.com>
1024 * xml-tdesc.c (tdesc_end_union): Update.
1025 * stabsread.c (define_symbol): Update.
1026 (read_type): Update.
1027 (read_struct_type): Update.
1028 (read_enum_type): Update.
1029 * spu-tdep.c (spu_builtin_type_vec128): Update.
1030 * sh-tdep.c (sh_push_dummy_call_fpu): Update.
1031 (sh_push_dummy_call_nofpu): Update.
1032 * mdebugread.c (parse_symbol): Update.
1033 (parse_symbol): Update.
1034 (parse_symbol): Update.
1035 (upgrade_type): Update.
1036 * jv-lang.c (java_lookup_class): Update.
1037 * iq2000-tdep.c (iq2000_pointer_to_address): Update.
1038 * i386-tdep.c (i386_mmx_type): Update.
1039 (i386_sse_type): Update.
1040 * gdbtypes.h (enum type_flag_value): New enum.
1041 (enum type_instance_flag_value): New enum.
1042 (TYPE_FLAG_UNSIGNED, TYPE_FLAG_NOSIGN, TYPE_FLAG_STUB,
1043 TYPE_FLAG_TARGET_STUB, TYPE_FLAG_STATIC, TYPE_FLAG_PROTOTYPED,
1044 TYPE_FLAG_INCOMPLETE, TYPE_FLAG_VARARGS, TYPE_FLAG_VECTOR,
1045 TYPE_FLAG_FIXED_INSTANCE, TYPE_FLAG_STUB_SUPPORTED,
1046 TYPE_FLAG_NOTTEXT): Now enum constants.
1047 (TYPE_FLAG_CONST, TYPE_FLAG_VOLATILE, TYPE_FLAG_CODE_SPACE,
1048 TYPE_FLAG_DATA_SPACE, TYPE_FLAG_ADDRESS_CLASS_1,
1049 TYPE_FLAG_ADDRESS_CLASS_2): Remove.
1050 (TYPE_INSTANCE_FLAG_CONST, TYPE_INSTANCE_FLAG_VOLATILE,
1051 TYPE_INSTANCE_FLAG_CODE_SPACE, TYPE_INSTANCE_FLAG_DATA_SPACE,
1052 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1,
1053 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_2): New constants.
1054 (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB, TYPE_TARGET_STUB,
1055 TYPE_STATIC, TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_VARARGS,
1056 TYPE_VECTOR, TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED,
1057 TYPE_NOTTEXT): Update.
1058 (TYPE_FLAG_ADDRESS_CLASS_ALL): Remove.
1059 (TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL): New define.
1060 (TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE,
1061 TYPE_ADDRESS_CLASS_1, TYPE_ADDRESS_CLASS_2,
1062 TYPE_ADDRESS_CLASS_ALL): Update.
1063 (struct main_type) <flags>: Remove.
1064 <flag_unsigned, flag_nosign, flag_stub, flag_target_stub,
1065 flag_static, flag_prototyped, flag_incomplete, flag_varargs,
1066 flag_vector, flag_stub_supported, flag_nottext,
1067 flag_fixed_instance>: New fields.
1068 <nfields, vptr_fieldno>: Move earlier.
1069 (TYPE_FLAGS): Remove.
1070 * gdbtypes.c (make_pointer_type): Update.
1071 (address_space_name_to_int): Update.
1072 (address_space_int_to_name): Update.
1073 (make_type_with_address_space): Update.
1074 (make_cv_type): Update.
1075 (create_range_type): Update.
1076 (get_discrete_bounds): Update.
1077 (create_set_type): Update.
1078 (make_vector_type): Update.
1079 (smash_to_method_type): Update.
1080 (check_typedef): Update.
1081 (check_stub_method): Update.
1082 (init_type): Individually assign flag fields.
1083 (recursive_dump_type): Don't print entire TYPE_FLAGS field. Do
1084 print TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED, and TYPE_NOTTEXT.
1085 (copy_type_recursive): Copy the entire main type. Don't use
1087 * features/rs6000/powerpc-altivec64l.c
1088 (initialize_tdesc_powerpc_altivec64l): Update.
1089 * features/rs6000/powerpc-altivec64.c
1090 (initialize_tdesc_powerpc_altivec64): Update.
1091 * features/rs6000/powerpc-altivec32l.c
1092 (initialize_tdesc_powerpc_altivec32l): Update.
1093 * features/rs6000/powerpc-altivec32.c
1094 (initialize_tdesc_powerpc_altivec32): Update.
1095 * features/rs6000/powerpc-7400.c (initialize_tdesc_powerpc_7400):
1097 * features/arm-with-iwmmxt.c (initialize_tdesc_arm_with_iwmmxt):
1099 * dwarf2read.c (read_structure_type): Update.
1100 (read_enumeration_type): Likewise.
1101 (process_enumeration_scope): Likewise.
1102 (read_tag_pointer_type): Likewise.
1103 (read_subroutine_type): Likewise.
1104 (read_subroutine_type): Likewise.
1105 (read_base_type): Likewise.
1106 * coffread.c (coff_read_enum_type): Update.
1107 * ada-valprint.c (adjust_type_signedness): Update.
1108 * ada-typeprint.c (print_record_field_types): Update.
1109 * ada-lang.c (packed_array_type): Update.
1110 (empty_record): Don't reset TYPE_FLAGS.
1111 (ada_template_to_fixed_record_type_1): Update.
1112 (ada_template_to_fixed_record_type_1): Likewise.
1113 (template_to_static_fixed_type): Likewise.
1114 (to_record_with_fixed_variant_part): Likewise.
1115 (to_fixed_record_type): Likewise.
1116 (to_fixed_array_type): Likewise.
1117 (to_static_fixed_type): Likewise.
1119 2008-08-23 Jim Blandy <jimb@redhat.com>
1122 * symmisc.c (print_symbol_bcache_statistics): Include statistics
1123 for the macro bcache.
1125 2008-08-23 Tom Tromey <tromey@redhat.com>
1127 * macrotab.h (struct macro_definition) <kind>: Shrink to one bit.
1128 (argc): Now 31 bits.
1130 2008-08-22 Tom Tromey <tromey@redhat.com>
1132 * NEWS: Move macro entries back under "New commands".
1134 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
1136 * breakpoint.c (create_overlay_event_breakpoint): Rename to ...
1137 (create_overlay_event_breakpoint_1): ... this. Add OBJFILE parameter.
1138 (create_overlay_event_breakpoint): Loop over all objfiles to install
1139 multiple instances of the overlay event breakpoint if present.
1141 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
1143 * spu-tdep.c (spu_overlay_new_objfile): Only consider SPU objfiles.
1144 (info_spu_event_command): Command only supported on SPU architecture.
1145 (info_spu_signal_command): Likewise.
1146 (info_spu_mailbox_command): Likewise.
1147 (info_spu_dma_command): Likewise.
1148 (info_spu_proxydma_command): Likewise.
1150 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
1152 * infrun.c (adjust_pc_after_break): Do not call get_thread_regcache
1153 if the thread has already exited.
1155 2008-08-22 Pedro Alves <pedro@codesourcery.com>
1157 * infrun.c (proceed): Move back setting previous_inferior_ptid
1159 (wait_for_inferior): ... to here.
1160 (fetch_inferior_event): ... and here.
1162 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
1164 * gdbarch.sh: Include "regcache.h" into gdbarch.c.
1165 (deprecated_current_gdbarch_select_hack): Call registers_changed
1166 instead of reinit_frame_cache.
1167 * gdbarch.c: Regenerate.
1169 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
1171 * elfread.c (elf_symtab_read): Do not relocate thread-local symbols.
1173 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1175 * xcoffread.c (SYMNAME_ALLOC): Correct syntax.
1177 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
1179 * findvar.c (locate_var_value): Do not call get_frame_arch
1180 with a NULL frame argument.
1182 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
1184 * frame.h (frame_map_regnum_to_name): Remove prototype.
1185 (frame_map_name_to_regnum): Remove prototype.
1186 * frame.c (frame_map_regnum_to_name): Remove.
1187 (frame_map_name_to_regnum): Remove.
1188 (frame_unwind_register_value): Use user_reg_map_regnum_to_name
1189 instead of frame_map_regnum_to_name.
1190 * ax-gdb.c: Include "user-regs.h".
1191 (gen_expr): Use user_reg_map_name_to_regnum instead of
1192 frame_map_name_to_regnum.
1193 * eval.c: Include "user-regs.h".
1194 (evaluate_subexp_standard): Use user_reg_map_name_to_regnum
1195 instead of frame_map_name_to_regnum.
1196 * infcmd.c (registers_info): Likewise.
1197 * parse.c: Include "user-regs.h".
1198 (write_dollar_variable): Use user_reg_map_name_to_regnum
1199 instead of frame_map_name_to_regnum.
1200 * tracepoint.c: Include "user-regs.h".
1201 (encode_actions): Use user_reg_map_name_to_regnum
1202 instead of frame_map_name_to_regnum.
1203 * valops.c: Include "user-regs.h".
1204 (value_fetch_lazy): Use user_reg_map_regnum_to_name instead
1205 of frame_map_regnum_to_name.
1207 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
1209 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Read
1210 and manually relocate .opd contents from BFD instead of reading
1211 them from target memory.
1213 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1215 * dwarf2read.c (processing_current_prefix): Delete static
1217 (process_full_comp_unit): Do not set processing_current_prefix.
1218 (dwarf2_full_name): New function.
1219 (read_func_scope): Do not set processing_current_prefix. Use
1221 (read_structure_type): Do not set processing_current_prefix. Remove
1222 unused inner cleanup.
1223 (process_structure_scope): Do not set processing_current_prefix.
1224 (read_enumeration_type): Use dwarf2_full_name.
1225 (determine_class_name): Return a const char *. Put the result
1226 on the objfile obstack. Use dwarf2_full_name.
1227 (read_namespace_type): New function.
1228 (read_namespace): Do not create the type here. Use
1230 (read_typedef): Use dwarf2_full_name. Do not pass the name
1232 (read_base_type): Do not pass the name to init_type. Handle
1234 (read_unspecified_type): Do not pass the name to init_type.
1235 (new_symbol): Use dwarf2_full_name instead of
1236 processing_current_prefix.
1237 (read_type_die): Do not set processing_current_prefix. Handle
1239 (determine_prefix): Handle specifications. Return the result
1240 on the objfile obstack. Handle unions correctly.
1242 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1244 * buildsym.c (add_symbol_to_list): Do not call
1245 cp_scan_for_anonymous_namespaces here.
1246 (finish_block): Do not call cp_set_block_scope here.
1247 * cp-namespace.c (processing_has_namespace_info)
1248 (processing_current_prefix): Delete.
1249 (cp_initialize_namespace): Do not initialize
1250 processing_has_namespace_info.
1251 (cp_scan_for_anonymous_namespaces): Use SYMBOL_DEMANGLED_NAME. Do
1252 not check processing_has_namespace_info.
1253 (cp_set_block_scope): Take prefix and namespace info flag as
1254 arguments. Honor namespaces regardless of a demangled name.
1255 * cp-support.h (processing_has_namespace_info)
1256 (processing_current_prefix): Delete declarations.
1257 (cp_set_block_scope): Update prototype.
1258 * dwarf2read.c (processing_has_namespace_info)
1259 (processing_current_prefix): New static variables.
1260 (read_file_scope): Initialize processing_has_namespace_info.
1261 (read_func_scope): Call cp_set_block_scope for C++.
1262 (new_symbol): Call cp_scan_for_anonymous_namespaces for C++.
1263 * symtab.c (symbol_demangled_name): Accept a const argument.
1264 * symtab.h (symbol_demangled_name): Update prototype.
1266 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1268 * ax-gdb.c (gen_var_ref): Use SYMBOL_LINKAGE_NAME.
1269 * blockframe.c (find_pc_partial_function): Likewise.
1270 * buildsym.c (find_symbol_in_list): Likewise.
1271 * c-valprint.c (c_val_print): Likewise.
1272 * coffread.c (patch_opaque_types, process_coff_symbol): Likewise.
1273 (coff_read_enum_type): Likewise. Use SYMBOL_SET_LINKAGE_NAME.
1274 * cp-support.c (cp_remove_params): Renamed from remove_params and
1276 (overload_list_add_symbol): Update call to remove_params.
1277 * cp-support.h (cp_remove_params): Declare.
1278 * dwarf2read.c (process_enumeration_scope): Use SYMBOL_LINKAGE_NAME.
1279 (dwarf2_const_value): Use SYMBOL_PRINT_NAME.
1280 * expprint.c (dump_subexp_body_standard): Likewise.
1281 * f-valprint.c (info_common_command, there_is_a_visible_common_named):
1282 Use SYMBOL_LINKAGE_NAME to find symbols and SYMBOL_PRINT_NAME
1284 * findvar.c (read_var_value): Use SYMBOL_LINKAGE_NAME.
1285 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
1286 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
1287 (hppa_hpux_skip_trampoline_code): Use SYMBOL_LINKAGE_NAME to find
1288 symbols and SYMBOL_PRINT_NAME for messages.
1289 * jv-lang.c (add_class_symbol): Use SYMBOL_SET_LINKAGE_NAME.
1290 * linespec.c (decode_line_2): Use SYMBOL_LINKAGE_NAME.
1291 * mdebugread.c (parse_symbol): Use SYMBOL_LINKAGE_NAME and
1292 SYMBOL_SET_LINKAGE_NAME.
1293 (mylookup_symbol): Use SYMBOL_LINKAGE_NAME.
1294 * minsyms.c (add_minsym_to_demangled_hash_table): Use
1296 (lookup_minimal_symbol): Use SYMBOL_LINKAGE_NAME or
1297 SYMBOL_MATCHES_SEARCH_NAME, depending on the pass.
1298 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Use SYMBOL_LINKAGE_NAME.
1299 * printcmd.c (build_address_symbolic): Use SYMBOL_LINKAGE_NAME.
1300 (address_info): Use SYMBOL_PRINT_NAME for messages and
1301 SYMBOL_LINKAGE_NAME for lookups.
1302 * sol-thread.c (info_cb): Use SYMBOL_PRINT_NAME for messages.
1303 * stabsread.c (patch_block_stabs, define_symbol)
1304 (read_type, read_enum_type, common_block_end)
1305 (cleanup_undefined_types_1, scan_file_globals): Use
1306 SYMBOL_LINKAGE_NAME, SYMBOL_SET_LINKAGE_NAME, ALL_OBJFILE_MSYMBOLS,
1307 and SYMBOL_PRINT_NAME.
1308 * stack.c (print_frame_args): Use SYMBOL_LINKAGE_NAME.
1309 (print_frame, frame_info): Use SYMBOL_PRINT_NAME for output. Use
1310 cp_remove_params instead of cplus_demangle.
1311 (print_block_frame_labels, print_frame_arg_vars): Use
1312 SYMBOL_LINKAGE_NAME.
1313 * symmisc.c (dump_msymbols): Use ALL_OBJFILE_MSYMBOLS and
1314 SYMBOL_LINKAGE_NAME.
1315 (dump_symtab_1, print_symbol, print_partial_symbols)
1316 (maintenance_check_symtabs): Use SYMBOL_LINKAGE_NAME.
1317 * symtab.h (DEPRECATED_SYMBOL_NAME): Delete.
1318 (SYMBOL_SET_LINKAGE_NAME): New.
1319 (SYMBOL_SET_NAMES): Add a comment.
1320 * tracepoint.c (set_traceframe_context, validate_actionline)
1321 (collect_symbol, scope_info): Use SYMBOL_LINKAGE_NAME for
1322 lookups and SYMBOL_PRINT_NAME for output.
1323 * typeprint.c (typedef_print): Use SYMBOL_LINKAGE_NAME.
1324 * xcoffread.c (process_xcoff_symbol): Use SYMBOL_SET_LINKAGE_NAME.
1326 2008-08-21 Pedro Alves <pedro@codesourcery.com>
1328 * arm-tdep.c (arm_pc_is_thumb): Use obj_section_addr.
1329 * hppa-hpux-tdep.c (hppa_hpux_find_dummy_bpaddr): Likewise.
1330 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Use
1331 obj_section_addr and obj_section_endaddr.
1332 * hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Likewise.
1333 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
1334 * ia64-tdep.c (ia64_find_global_pointer): Likewise.
1335 (find_extant_func_descr): Likewise.
1336 * solib-frv.c (frv_relocate_main_executable): Use
1338 * xstormy16-tdep.c (xstormy16_find_jmp_table_entry): Use
1339 obj_section_addr and obj_section_endaddr.
1341 2008-08-21 Paul N. Hilfinger <hilfinger@adacore.com>
1343 * NEWS: Amplify last entry on boolean types in Ada.
1345 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
1347 * dwarf2read.c (die_specification, dwarf2_extension, follow_die_ref):
1348 Make the dwarf2_cu * parameter output as well as input. Update it if
1349 we follow a reference to another CU.
1350 (read_func_scope, determine_class_name, namespace_name, dwarf2_attr)
1351 (die_type, die_containing_type): Update calls to changed functions.
1352 Use the returned CU along with the returned DIE.
1353 (read_namespace): Use dwarf2_attr instead of dwarf2_extension.
1355 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
1357 * dwarf2read.c (queue_comp_unit): Take an objfile argument. Read
1359 (process_queue): Do not read in the DIEs here.
1360 (psymtab_to_symtab_1): Update call to queue_comp_unit.
1361 (read_full_die): Do not call queue_comp_unit from here.
1362 (maybe_queue_comp_unit): New function.
1363 (follow_die_ref): Use it.
1365 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
1367 * dwarf2read.c (struct attribute): Move earlier.
1368 (struct die_info): Change attrs to a trailing array.
1369 (dwarf_alloc_die): Take the number of attributes. Allocate space
1371 (read_full_die): Update call to dwarf_alloc_die. Do not manually
1372 allocate attributes.
1374 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
1376 * dwarf2read.c (REF_HASH_SIZE): Delete.
1377 (struct dwarf2_cu): Replace die_ref_table with die_hash.
1378 (struct die_info): Remove next_ref.
1379 (store_in_ref_table): Remove offset argument. Rewrite to use
1380 htab_find_slot_with_hash.
1381 (die_hash, die_eq): New.
1382 (read_comp_unit): Allocate the die_hash.
1383 (read_die_and_children): Update call to store_die_ref.
1384 (follow_die_ref): Rewrite to use htab_find_with_hash.
1386 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
1388 * dwarf2read.c (free_die_list, copy_die): Delete.
1389 (dwarf_alloc_die): Take a CU argument. Allocate the new DIE
1391 (read_full_die): Update call to dwarf_alloc_die. Allocate
1392 attributes on the CU obstack.
1393 (free_one_comp_unit): Do not call free_die_list.
1395 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
1397 * dwarf2read.c (read_die_and_children): Ignore NULL DIEs.
1398 (read_die_and_siblings): Likewise. Do not add padding DIEs to the
1400 (read_full_die): Do not allocate DIEs for abbrev 0.
1401 (follow_die_ref): Correct error message.
1403 2008-08-20 Pedro Alves <pedro@codesourcery.com>
1405 * linespec.c (symtab_from_filename): Also throw NOT_FOUND_ERROR if
1406 there are no symbols loaded, instead of throwing a generic error.
1407 (decode_variable): Likewise.
1409 2008-08-20 Pedro Alves <pedro@codesourcery.com>
1411 * objfiles.h (struct obj_section): Remove addr and endaddr fields.
1412 (obj_section_offset, obj_section_addr, obj_section_endaddr): New
1414 * objfiles.c (add_to_objfile_sections): Don't set addr, endaddr
1415 and offset. Use size_t instead of unsigned long.
1416 (build_objfile_section_table): Use size_t instead of unsigned
1418 (objfile_relocate): Don't relocate s->addr and s->endaddr, they're
1420 (find_pc_sect_section): Use obj_section_addr and
1421 obj_section_endaddr.
1422 * symfile.c (symfile.c): Remove code that maps sections
1423 offsets in "addr" to the object's sections.
1424 * blockframe.c (find_pc_partial_function): Use obj_section_endaddr.
1425 * gcore.c (gcore_create_callback): Use obj_section_addr and
1426 obj_section_endaddr.
1427 * maint.c (print_objfile_section_info): Likewise.
1428 * printcmd.c (sym_info): Use obj_section_addr and
1429 obj_section_endaddr.
1430 * symtab.c (fixup_section): Likewise.
1432 2008-08-20 Mark Kettenis <kettenis@gnu.org>
1434 * sparc-tdep.c: Make some comments catch up with reality.
1436 2008-08-20 Vladimir Prus <vladimir@codesourcery.com>
1438 * NEWS: Mention 'set target-async'
1440 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
1442 * infrun.c (resume): If the thread is placed to the deferred step
1443 queue, mark it as running.
1445 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
1447 Make sure target supports non-stop.
1448 * infcmd.c (run_command_1, attach_command): If non-stop mode
1449 is requested, verify the target supports it.
1450 * linux-nat.c (linux_nat_supports_non_stop): New.
1451 (linux_nat_add_target): Register the above.
1452 * target.c (find_default_supports_non_stop)
1453 (target_supports_non_stop): New.
1454 (init_dummy_target): Register find_default_supports_non_stop.
1455 * target.h (struct target_ops): New field to_supports_non_stop.
1456 (target_supports_non_stop): New.
1458 2008-08-19 Pedro Alves <pedro@codesourcery.com>
1459 Vladimir Prus <vladimir@codesourcery.com>
1461 * target.c (target_async_permitted, target_async_permitted_1)
1462 (set_maintenance_target_async_permitted)
1463 (show_maintenance_target_async_permitted): New.
1464 (initialize_targets): Register 'set target-async'.
1465 * target.h (target_async_permitted): Declare.
1466 * linux-nat.c (linux_nat_async_enabled)
1467 (linux_nat_async_permitted, set_maintenance_linux_async_permitted)
1468 (show_maintenance_linux_async_permitted): Remove.
1469 (sigchld_handler, linux_nat_is_async_p, linux_nat_can_async_p)
1470 (get_pending_events, linux_nat_async): Use target_async_permitted.
1471 (linux_nat_set_async_mode): Remove, moving the only used bits
1473 (linux_nat_setup_async): This.
1474 (_initialize_linux_nat): Do not register 'maint set linux-async'.
1475 Use linux_nat_setup_async.
1476 * remote.c (remote_async_permitted, remote_async_permitted_set)
1477 (set_maintenance_remote_async_permitted)
1478 (show_maintenance_remote_async_permitted): Remove.
1479 (remote_open_1, remote_terminal_inferior, remote_can_async_p)
1480 (remote_is_async_p): Use target_async_permitted.
1481 (_initialize_remote): Don't register 'main set remote-async'.
1482 * mi/mi-cmds.c (mi_cmds): Register -list-target-features.
1483 * mi/mi-cmds.h (mi_cmd_list_target_features): New.
1484 * mi/mi-main.c (mi_cmd_list_target_features): New.
1486 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
1488 * target.c (maybe_kill_then_attach)
1489 (maybe_kill_then_create_inferior): Remove.
1490 (update_current_target): Do not default to_attach,
1491 to_create_inferiour, to_is_async_p.
1493 2008-08-19 Paul N. Hilfinger <hilfinger@adacore.com>
1495 Changes for supporting boolean types in debugging data.
1496 * ada-lang.c (discrete_type_high_bound,discrete_type_low_bound): Change
1497 API to return LONGEST values rather than struct values.
1498 (ada_evaluate_subexp): Change to use new API of discrete_type_low_bound
1499 and discrete_type_high_bound.
1500 (to_fixed_range_type): Create a range type in cases where
1501 argument is base type and its limits are representable as ints.
1502 (ada_is_modular_type): Correct so that base type must be integral.
1503 * ada-lex.l (TRUEKEYWORD,FALSEKEYWORD): Make 'true' and 'false'
1504 keywords when they appear alone, since we are phasing out
1505 direct representation of these identifiers in debugging data.
1506 * ada-exp.y: Define 'true' and 'false' as primaries.
1507 (type_boolean): New function.
1508 (type_int,type_long,type_long_long,type_floattype_double)
1509 (type_long_double): Remove uses of current_gdbarch for consistency
1511 (write_int): Change comment to indicate that it might write boolean
1513 * ada-typeprint.c (ada_print_type): Print '(false, true)' for boolean
1514 type, since will no longer be represented as enumerated type in
1516 * ada-valprint.c (print_optional_low_bound): Handle boolean case
1518 * NEWS: Note support boolean types.
1520 2008-08-18 Pedro Alves <pedro@codesourcery.com>
1522 * bsd-uthread.c (bsd_uthread_close): New.
1523 (bsd_uthread_deactivate): Don't cleanup here, just unpush the
1525 (bsd_uthread_solib_loaded): Fix typo.
1526 (bsd_uthread_target): Register bsd_uthread_close.
1528 2008-08-18 Pedro Alves <pedro@codesourcery.com>
1530 * corelow.c (core_open): Assume there was no upper layer left
1531 behind from a previous inferior.
1532 * target.c (pop_all_targets): Rename to ...
1533 (pop_all_targets_above): ... this. Add a target stratum
1534 parameter. Use it instead of hardcoding the dummy_stratum.
1535 (pop_all_targets): New, defer to pop_all_targets_above.
1536 (target_preopen): Use pop_all_targets_above.
1537 * target.h (pop_all_targets_above): Declare.
1539 2008-08-18 Pedro Alves <pedro@codesourcery.com>
1541 * gdbthread.h (thread_change_ptid): Declare.
1542 * infrun.c (infrun_thread_ptid_changed): New.
1543 (_initialize_infrun): Attach infrun_thread_ptid_changed to the
1544 thread_ptid_changed observer.
1545 * regcache.c (regcache_thread_ptid_changed): New.
1546 (_initialize_regcache): Attach regcache_thread_ptid_changed to the
1547 thread_ptid_changed observer.
1548 * thread.c (thread_change_ptid): New.
1550 2008-08-18 Tom Tromey <tromey@redhat.com>
1552 * symfile.c (reread_symbols): Update.
1553 * solib-sunos.c (allocate_rt_common_objfile): Update.
1554 * objfiles.c (allocate_objfile): Update.
1555 * objfiles.h (struct objfile) <md, mmfd, deprecated_obj_private>:
1558 2008-08-18 Tom Tromey <tromey@redhat.com>
1560 * gdbtypes.c (copy_type_recursive): Allocate 'stored' on objfile's
1563 2008-08-18 Daniel Jacobowitz <dan@codesourcery.com>
1565 * rs6000-tdep.c (struct rs6000_framedata): Add gpr_mask, used_bl,
1567 (rs6000_in_function_epilogue_p): Check for bctr.
1568 (skip_prologue): Initialize lr_register. Set lr_reg to a register
1569 number. Set gpr_mask and used_bl. Continue scanning while some
1570 expected registers are not saved. Set lr_register if LR is not
1572 (rs6000_frame_cache): Handle gpr_mask and lr_register.
1574 2008-08-17 Tom Tromey <tromey@redhat.com>
1577 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): New macros.
1578 (ep_find_event_name_end): Remove.
1579 (catch_fork_temporary, catch_vfork_temporary,
1580 catch_fork_permanent, catch_vfork_permanent): New constants.
1581 (catch_vfork, catch_fork): Remove.
1582 (catch_fork_command_1): Add 'command' argument. Remove
1583 'fork_kind' and 'tempflag'. Handle NULL 'arg'. Update switch for
1585 (catch_exec_command_1): Add 'command' argument; remove
1586 'tempflag'. Handle NULL 'arg'.
1587 (catch_load_command_1): Likewise.
1588 (catch_unload_command_1): Likewise.
1589 (catch_ada_exception_command): Likewise.
1590 (catch_assert_command): Likewise.
1591 (catch_catch_command): New function.
1592 (catch_throw_command): Likewise.
1593 (catch_command_1): Remove.
1594 (catch_command): Just call error.
1595 (tcatch_command): Likewise.
1596 (catch_cmdlist): New global.
1597 (tcatch_cmdlist): Likewise.
1598 (add_catch_command): New function.
1599 (_initialize_breakpoint): Create "catch" and "tcatch" as prefix
1600 commands. Create all catch sub-commands.
1602 2008-08-17 Pedro Alves <pedro@codesourcery.com>
1604 * gdbthread.h: Add comments.
1605 * stack.c (get_selected_block): Return 0 on an exited thread.
1606 * top.c (execute_command): Check for is_stopped, not !is_running.
1607 * event-top.c (command_handler): Likewise.
1609 2008-08-16 Pedro Alves <pedro@codesourcery.com>
1611 * mi/mi-main.c (mi_cmd_exec_next, mi_cmd_exec_next_instruction)
1612 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
1613 (mi_cmd_exec_finish): Remove "return".
1615 2008-08-16 Pedro Alves <pedro@codesourcery.com>
1617 * target.h (pop_all_targets): Declare.
1618 * target.c (pop_all_targets): New.
1619 * top.c (quit_target): Pop all targets instead of just closing the
1622 2008-08-16 Vladimir Prus <vladimir@codesourcery.com>
1623 Thiago Jung Bauermann <bauerman@br.ibm.com>
1625 * cli-script.c (read_next_line): Add parse_commands argument.
1626 (recurse_read_control_structure): Adapt to new read_next_line
1628 (read_command_lines): Add parse_commands argument.
1629 (define_command): Adapt to new read_command_lines signature.
1630 (document_command): Likewise.
1631 * breakpoint.c (commands_command): Likewise.
1632 * defs.h (read_command_lines): Adjust function prototype.
1634 2008-08-16 Paul N. Hilfinger <hilfinger@adacore.com>
1636 * ada-lang.c (pos_atr): Account for the possibility that the
1637 argument may be a reference.
1639 2008-08-16 Paul N. Hilfinger <hilfingr@adacore.com>
1641 * xcoffread.c (scan_xcoff_symtab): Do not include global symbols
1642 ('F' format) for @FIX names generated by the loader, retaining only
1643 the minimal symbols (and no partial symbol tables) for these names.
1644 Fixes warning messages about symbols that are found in partial
1645 symbol tables, but not full symbol tables.
1647 2008-08-16 Pedro Alves <pedro@codesourcery.com>
1649 * infrun.c (fetch_inferior_event): Only call normal_stop if not
1652 2008-08-15 Luis Machado <luisgpm@br.ibm.com>
1654 * rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c".
1655 Include "features/rs6000/powerpc-vsx64.c".
1656 (ppc_supply_vsxregset): New function.
1657 (ppc_collect_vsxregset): New function.
1658 (IS_VSX_PSEUDOREG): New macro.
1659 (IS_EFP_PSEUDOREG): New macro.
1660 (vsx_register_p): New function.
1661 (ppc_vsx_support_p): New function.
1662 (rs6000_builtin_type_vec128): New function.
1663 (rs6000_register_name): Hide upper halves of vs0~vs31. Return
1664 correct names for VSX registers and EFPR registers.
1665 (rs6000_pseudo_register_type): Return correct types for VSX
1667 (rs6000_pseudo_register_reggroup_p): Return correct group for
1668 VSX and EFPR registers.
1669 (ppc_pseudo_register_read): Rename to dfp_pseudo_register_read.
1670 (ppc_pseudo_register_write): Rename to dfp_pseudo_register_write.
1671 (vsx_pseudo_register_read): New function.
1672 (vsx_pseudo_register_write): New function.
1673 (efpr_pseudo_register_read): New function.
1674 (efpr_pseudo_register_write): New function.
1675 (rs6000_pseudo_register_read): Call new VSX and EFPR read functions.
1676 (rs6000_pseudo_register_write): Call new VSX and EFPR write functions.
1677 (rs6000_gdbarch_init): Declare have_vsx.
1678 Initialize new upper half VSX registers.
1679 Initialize VSX-related and EFPR-related pseudo-registers variables.
1680 Adjust the number of pseudo registers accordingly.
1682 * ppc-linux-nat.c: Define PTRACE_GETVSXREGS, PTRACE_SETVSXREGS
1684 (gdb_vsxregset_t): New type.
1685 (have_ptrace_getsetvsxregs): New variable.
1686 (fetch_vsx_register): New function.
1687 (fetch_register): Handle VSX registers.
1688 (fetch_vsx_registers): New function.
1689 (fetch_ppc_registers): Handle VSX registers.
1690 (store_ppc_registers): Handle VSX registers.
1691 (store_vsx_register): New function.
1692 (store_register): Handle VSX registers.
1693 (store_vsx_registers): New function.
1694 (ppc_linux_read_description): Handle VSX-enabled inferiors.
1695 (gdb_vsxregset_t): New type.
1696 (supply_vsxregset): New function.
1697 (fill_vsxregset): New function.
1699 * ppc-tdep.h (vsx_register_p): New prototype.
1700 (vsx_support_p): New prototype.
1701 (ppc_vsr0_regnum): New variable.
1702 (ppc_vsr0_upper_regnum): Likewise.
1703 (ppc_efpr0_regnum): Likewise.
1704 (ppc_builtin_type_vec128): New type.
1705 (ppc_num_vsrs): New constant.
1706 (ppc_num_vshrs): New constant.
1707 (ppc_num_efprs): Likewise.
1708 Define POWERPC_VEC_VSX PPC_VSR0_UPPER_REGNUM and PPC_VSR31_UPPER_REGNUM.
1709 (ppc_supply_vsxregset): New prototype.
1710 (ppc_collect_vsxregset): New prototype.
1712 * ppc-linux-tdep.c: Include "features/rs6000/powerpc-vsx32l.c"
1713 Include "features/rs6000/powerpc-vsx64l.c".
1714 (_initialize_ppc_linux_tdep): Initialize VSX-enabled targets.
1715 (ppc_linux_regset_sections): Add new ".reg-ppc-vsx" field.
1716 (ppc32_linux_vsxregset): New 32-bit VSX-enabled regset.
1717 (ppc_linux_regset_from_core_section): Handle VSX core section.
1718 (ppc_linux_core_read_description): Support VSX-enabled core files.
1720 * ppc-linux-tdep.h: Declare *tdesc_powerpc_vsx32l
1721 Declare tdesc_powerpc_vsx64l
1723 * corelow.c (get_core_register_section): Support VSX-enabled
1726 * features/rs6000/power-vsx.xml: New VSX descriptions.
1727 * features/rs6000/powerpc-vsx32.xml: New file.
1728 * features/rs6000/powerpc-vsx32l.xml: New file.
1729 * features/rs6000/powerpc-vsx64.xml: New file.
1730 * features/rs6000/powerpc-vsx64l.xml: New file.
1731 * features/rs6000/powerpc-vsx32.c: New file (generated).
1732 * features/rs6000/powerpc-vsx32l.c: New file (generated).
1733 * features/rs6000/powerpc-vsx64.c: New file (generated).
1734 * features/rs6000/powerpc-vsx64l.c: New file (generated).
1735 * features/Makefile: Updated with new descriptions.
1736 * regformats/rs6000/powerpc-vsx32l.dat: New file (generated).
1737 * regformats/rs6000/powerpc-vsx64l.dat: New file (generated).
1739 2008-08-15 Vladimir Prus <vladimir@codesourcery.com>
1741 * ia64-linux.nat (_initialize_ia64_linux_nat): Don't
1742 call linux_target twice.
1744 2008-08-14 Aleksandar Ristovski <aristovski@qnx.com>
1746 * nto-tdep.c (lm_info): Updated struct lm_info definition from
1748 (LM_ADDR): Use l_addr if available; if not, use link map and set
1751 2008-08-14 Tom Tromey <tromey@redhat.com>
1753 * macrocmd.c (macro_define_command): Check for NULL argument.
1754 (macro_undef_command): Likewise.
1756 2008-08-14 Pedro Alves <pedro@codesourcery.com>
1758 * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call.
1760 2008-08-13 Pedro Alves <pedro@codesourcery.com>
1762 * breakpoint.c (always_inserted_auto, always_inserted_on)
1763 (always_inserted_off, always_inserted_enums): New.
1764 (always_inserted_mode): Change type to char* and point to
1765 always_inserted_auto.
1766 (show_always_inserted_mode): In auto mode, also show the current
1767 effect of the option.
1768 (breakpoints_always_inserted_mode): Adjust for the new auto mode.
1769 (_initialize_breakpoint): Make the "set breakpoints
1770 always-inserted" command an enum command. Extend help to describe
1773 2008-08-13 Ulrich Weigand <uweigand@de.ibm.com>
1775 * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
1776 query valid) bit. Ignore bits outside the condition field.
1777 (info_spu_proxydma_command): Ignore bits outside the field.
1779 2008-08-12 Michael Snyder <msnyder@vmware.com>
1781 * MAINTAINERS: Update my email address.
1783 2008-08-12 Ulrich Weigand <uweigand@de.ibm.com>
1785 * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP.
1787 2008-08-12 Pedro Alves <pedro@codesourcery.com>
1789 Add no-ack mode to the remote protocol --- optionally stop ACKing
1790 packets and responses when we have a reliable communication
1793 Based on Apple's GDB, by Jason Molenda <jmolenda@apple.com>
1795 * remote.c (struct remote_state): Add noack_mode field.
1796 (PACKET_QStartNoAckMode): New.
1797 (remote_start_remote): Don't any outstanding packet here.
1798 (remote_open_1): Clear noack_mode. Ack any outstanding packet
1799 here. Activate noack mode if requested.
1800 (remote_protocol_features): Add QStartNoAckMode.
1802 (putpkt_binary): Don't send ack in noack mode.
1803 (read_frame): Don't recompute the checksum in noack mode.
1804 (getpkt_sane): Skip sending ack if in noack mode.
1805 (_initialize_remote): Add set/show remote noack mode.
1806 * NEWS: Note the new features.
1808 2008-08-11 Kevin Buettner <kevinb@redhat.com>
1810 * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK):
1812 (rs6000_skip_main_prologue): New function.
1813 (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue.
1815 2008-08-11 Sandra Loosemore <sandra@codesourcery.com>
1817 * MAINTAINERS (Write After Approval): Add self.
1819 2008-08-11 Stan Shebs <stan@codesourcery.com>
1822 * disasm.c (gdb_disassemble_info): Set endian_code.
1823 * gdbarch.sh (gdbarch_info): New field byte_order_for_code.
1824 * gdbarch.h, gdbarch.c: Regenerate.
1825 * arch-utils.c (initialize_current_architecture): Set the
1826 default byte_order_for_code.
1827 (gdbarch_info_init): Ditto.
1828 (gdbarch_info_fill): Ditto.
1829 * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros.
1830 (thumb_analyze_prologue): Swap halfword if code endianness is
1831 different from general endianness.
1832 (arm_skip_prologue): Similarly.
1833 (arm_scan_prologue): Ditto.
1834 (thumb_get_next_pc): Ditto.
1835 (arm_get_next_pc): Ditto.
1836 (arm_gdbarch_init): Set byte_order_for_code from BE8 flag,
1837 choose correct endianness for breakpoints.
1839 2008-08-10 Pedro Alves <pedro@codesourcery.com>
1841 * bsd-kvm.c: Include "gdbthread.h".
1842 (bsd_kvm_ptid): New.
1843 (bsd_kvm_open): Add a main thread.
1844 (bsd_kvm_close): Delete it.
1845 (bsd_kvm_thread_alive): New.
1846 (bsd_kvm_pid_to_str): New.
1847 (bsd_kvm_add_target): Register bsd_kvm_thread_alive and
1849 (bsd_kvm_add_target): Initialize bsd_kvm_ptid.
1851 2008-08-09 Pedro Alves <pedro@codesourcery.com>
1853 * buildsym.c (start_subfile): Properly cast sentinel in concat
1855 * cp-name-parser.y: Include "config.h".
1856 * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in
1858 * gdb_select.h: Include sys/time.h if sys/select.h is not
1861 2008-08-09 Pedro Alves <pedro@codesourcery.com>
1863 * go32-nat.c: Include "gdbthread.h".
1864 (go32_stop, go32_kill_inferior): Delete the main thread.
1865 (go32_create_inferior): Add it.
1866 (go32_thread_alive, go32_pid_to_str): New.
1867 (init_go32_ops): Register go32_thread_alive and go32_pid_to_str.
1869 2008-08-09 Pedro Alves <pedro@codesourcery.com>
1871 * go32-nat.c (fetch_register, store_register): Pass the regcache
1872 gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p.
1873 (go32_xfer_memory): Change type of myaddr parameter to gdb_byte.
1874 (struct seg_descr, struct seg_descr): pack the whole struct
1875 instead of each member individually.
1877 2008-08-09 Andreas Schwab <schwab@suse.de>
1879 * python/python.c (_initialize_python): Use unabbreviated commands
1882 2008-08-09 Daniel Jacobowitz <dan@codesourcery.com>
1884 * Makefile.in (stamp-h): Also create .deps.
1886 2008-08-09 Tom Tromey <tromey@redhat.com>
1888 * Makefile.in (generated_files): Add GNULIB_H.
1890 2008-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1892 * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set
1893 DT_HP_DEBUG_PRIVATE. Add warning if DT_HP_DEBUG_PRIVATE is not set.
1895 (pa64_current_sos): Remove map private warning warning.
1896 * solib-som.c: Include string.h and sys/utsname.h.
1897 (get_hpux_major_release): New function.
1898 (som_solib_create_inferior_hook): Read dynamic linker header. Warn
1899 about shared library private mapping on HP-UX 11 and later. Only force
1900 private mapping of shared libraries on HP-UX 10 and earlier.
1901 (link_map_start): Delete warning.
1903 2008-08-09 Xuepeng Guo <xuepeng.guo@intel.com>
1904 H.J. Lu <hongjiu.lu@intel.com>
1905 Mark Kettenis <kettenis@gnu.org>
1907 * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg.
1908 (amd64_init_frame_cache): Initialize saved_sp_reg.
1909 (amd64_analyze_stack_align): New.
1910 (amd64_analyze_prologue): Call it.
1911 (amd64_frame_cache): Use saved_sp_reg if it is invalid. Don't set
1912 %rip to 8 when halfway aligning the stack.
1914 * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to
1917 * i386-tdep.c (i386_frame_cache): Remove stack_align. Add
1919 (i386_alloc_frame_cache): Remove stack_align. Initialize
1921 (i386_analyze_stack_align): Rewrite.
1922 (i386_frame_cache): Use saved_sp_reg if it is valid.
1924 2008-08-09 Ulrich Weigand <uweigand@de.ibm.com>
1926 * target.c: Include "solib.h".
1927 (target_pre_inferior): Call no_shared_libraries.
1928 * infcmd.c (run_command_1): Do not call objfile_purge_solibs
1930 (attach_command): Do not call clear_solib.
1932 2008-08-09 Mark Kettenis <kettenis@gnu.org>
1934 * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
1937 2008-08-08 Tom Tromey <tromey@redhat.com>
1939 * Makefile.in (python.o): Remove dependencies. Use COMPILE and
1941 (python-utils.o): Likewise.
1943 2008-08-08 Andreas Schwab <schwab@suse.de>
1945 * corefile.c (_initialize_core): Remove spurious paren from set
1946 gnutarget doc string.
1948 2008-08-08 Luis Machado <luisgpm@br.ibm.com>
1950 * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h".
1951 Define PPC_FEATURE_BOOKE.
1952 (ppc_linux_get_hwcap): New function.
1953 (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440
1954 4-bytes alignment restrictions.
1955 (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific
1956 positioning of the read/write flags.
1957 (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440
1960 2008-08-08 Pedro Alves <pedro@codesourcery.com>
1962 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
1964 * win32-nat.c (win32_add_thread): Change thread argument type to
1966 (win32_add_thread): Adjust.
1967 (win32_delete_thread): Change thread argument type to ptid_t.
1969 (win32_fetch_inferior_registers, win32_store_inferior_registers)
1970 (win32_resume, get_win32_debug_event, get_win32_debug_event)
1971 (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust.
1972 (init_win32_ops): Put to_magic last.
1973 (win32_win32_thread_alive): Adjust.
1975 2008-08-08 Pedro Alves <pedro@codesourcery.com>
1977 * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New.
1978 (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str.
1980 2008-08-08 Pedro Alves <pedro@codesourcery.com>
1982 * remote-m32r-sdi.c: Include "gdbthread.h".
1983 (remote_m32r_ptid): New.
1984 (m32r_close): Delete the main thread.
1985 (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the
1987 (m32r_kill, m32r_load, sdireset_command): Delete the main thread.
1988 (_initialize_remote_m32r): Initialize remote_m32r_ptid.
1990 2008-08-07 Tom Tromey <tromey@redhat.com>
1991 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1993 * aclocal.m4, configure: Rebuild.
1994 * configure.in: Call ZW_CREATE_DEPDIR,
1995 ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
1996 (MAKE, GMAKE): New substs.
1997 * acinclude.m4: Include depstand.m4.
1998 * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
1999 COMPILE, POSTCOMPILE, depcomp): New variables.
2000 Remove all _h variables.
2001 Remove many .o targets.
2002 ($(srcdir)/copying.c): avoid backslash-newline after comment
2003 sign (@maintainer_mode_true@).
2004 (HFILES_NO_SRCDIR): Regenerate.
2005 (generated_files): New variable.
2006 (all_gdbtk_cflags): Likewise.
2008 (init.o, version.o, copying.o): Remove.
2009 (distclean): Remove DEPDIR.
2010 (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
2011 printcmd.o, procfs.o, v850ice.o): Rewrite.
2012 (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
2013 cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
2014 (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
2015 gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
2016 gdbtk-wrapper.o): Likewise.
2017 (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
2018 mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
2019 mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
2020 mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
2021 tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
2022 tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
2023 tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
2024 tui-wingeneral.o, tui-winsource.o): Likewise.
2025 (all_object_files): New variable.
2026 ($(all_object_files)): New target.
2027 Include dependency files, when using GNU Make.
2029 2008-08-07 Ulrich Weigand <uweigand@de.ibm.com>
2031 * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with
2032 the valid bit set. Ensure display order respects partial
2033 order defined by dependency bits.
2035 2008-08-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2037 * solib-pa64.c (read_dld_descriptor): Return zero if load map is not
2040 2008-08-06 Mark Kettenis <kettenis@gnu.org>
2042 * i386obsd-nat.c (i386obsd_supply_pcb): Adjust for changes in
2045 2008-08-06 Vladimir Prus <vladimir@codesourcery.com>
2046 Tom Tromey <tromey@redhat.com>
2047 Thiago Jung Bauermann <bauerman@br.ibm.com>
2048 Doug Evans <dje@google.com>
2050 * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS,
2051 SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS,
2052 PYTHON_CFLAGS): New.
2053 (python_h, python_internal_h): New.
2054 (cli-script.o): Depend on python.h
2055 (python.o, python-utils.o): New.
2056 * cli/cli-script.c (print_command_lines): Handle python_control.
2057 (execute_control_command): Handle python_control.
2058 (execute_control_command_untraced): New function.
2059 (while_command): Call execute_control_command_untraced.
2060 (if_command): Likewise.
2061 (get_command_line): Remove static attribute.
2062 (read_next_line): Handle "python".
2063 (recurse_read_control_structure): Handle python_control.
2064 (read_command_lines): Handle python_control.
2066 * cli/cli-script.h (get_command_line): Add prototype.
2067 (execute_control_command_untraced): Likewise.
2068 * configure.ac: Add --with-python.
2069 * defs.h (enum command_control_type) <python_control>: New
2071 * python/python-internal.h: New file.
2072 * python/python.c: New file.
2073 * python/python.h: New file.
2074 * python/python-utils.c: New file.
2075 * NEWS: Mention Python scripting support and its new commands.
2077 2008-08-06 Ulrich Weigand <uweigand@de.ibm.com>
2079 * spu-tdep.c (spu_gdbarch_init): Call set_gdbarch_frame_red_zone_size.
2081 2008-08-06 Phil Muldoon <pmuldoon@redhat.com>
2083 * MAINTAINERS (Write After Approval): Add self.
2085 2008-08-06 Phil Muldoon <pmuldoon@redhat.com>
2087 * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled.
2088 (insert_breakpoint_locations): Likewise.
2090 2008-08-05 Phil Muldoon <pmuldoon@redhat.com>
2092 * breakpoint.c (create_longjmp_breakpoint): Remove unused struct
2094 (set_longjmp_breakpoint): Likewise.
2096 2008-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2099 * solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are
2102 2008-08-05 Tom Tromey <tromey@redhat.com>
2104 * bcache.c (deprecated_bcache_added): Initialize obstack.
2105 (bcache_xmalloc): Don't initialize obstack.
2106 (bcache_xfree): Conditionally free obstack.
2107 (bcache_memory_used): Update.
2109 2008-08-05 Tom Tromey <tromey@redhat.com>
2111 * symfile.c (add_psymbol_to_bcache): Return a const pointer. Use
2113 (append_psymbol_to_list): Accept a const pointer.
2114 (add_psymbol_to_list): Fix const correctness.
2115 * bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove.
2116 (bcache_full): Declare.
2117 * bcache.c (bcache_data, deprecated_bcache): Remove.
2118 (bcache): Use bcache_full.
2119 (bcache_full): Rename from deprecated_bcache_added. Change return
2122 2008-08-04 Stan Shebs <stan@codesourcery.com>
2124 * solib-svr4.c (BKPT_AT_SYMBOL): Remove, always defined.
2125 (bkpt_names): Remove SOLIB_BKPT_NAME, never defined.
2126 (enable_break): Remove test of BKPT_AT_SYMBOL.
2128 2008-08-02 Keith Seitz <keiths@redhat.com>
2130 * acinclude.m4: Include ../config/tcl.m4 to pick up
2131 standard Tcl configury bits.
2132 Remove all Tcl, Tk, Itcl, Itk, etc definitions.
2133 * configure.ac: Don't check if ../itcl exists when building
2134 gdbtk. It could be installed.
2135 Rewrite gdbtk configury to allow for using system-supplied
2136 Tcl and Tk. Gdbtk no longer requires build-time access to
2138 * Makefile.in: Remove everything related to itcl and itk.
2139 Rewrite the Tcl bits for gdbtk to correspond to rewrite of
2141 Remove v850ice.o build rule.
2142 (ALL_TCL_CFLAGS): New convenience defintion. Change all
2143 gdbtk sources to use it.
2144 * configure: Regenerate.
2146 2008-07-31 Stan Shebs <stan@codesourcery.com>
2148 * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE.
2150 2008-07-30 Stan Shebs <stan@codesourcery.com>
2152 * objfiles.c (TARGET_KEEP_SECTION): Remove.
2153 (add_to_objfile_sections): Remove use.
2155 2008-07-29 Tom Tromey <tromey@redhat.com>
2157 * cli/cli-decode.c (lookup_cmd_1): Use memcpy.
2158 (lookup_cmd_composition): Likewise.
2160 2008-07-29 Tom Tromey <tromey@redhat.com>
2162 * cli/cli-cmds.c (edit_command): Remove unused variables. Delete
2163 dead code. Fix indentation.
2165 2008-07-29 Stan Shebs <stan@codesourcery.com>
2167 * main.c (captured_main): Remove long-unused #if 0 blocks.
2169 2008-07-28 Tom Tromey <tromey@redhat.com>
2171 * annotate.h (deprecated_annotate_starting_hook): Remove.
2172 (deprecated_annotate_stopped_hook): Remove.
2173 (deprecated_annotate_exited_hook): Remove.
2174 * Makefile.in (annotate.o): Depend on observer_h.
2175 * top.c (deprecated_delete_breakpoint_hook): Remove.
2176 (deprecated_create_breakpoint_hook): Likewise.
2177 (deprecated_modify_breakpoint_hook): Likewise.
2178 * interps.c (clear_interpreter_hooks): Update for removed hooks.
2179 * breakpoint.c (mention): Don't call removed hook.
2180 (delete_breakpoint): Likewise.
2181 (disable_breakpoint): Likewise.
2182 (do_enable_breakpoint): Likewise.
2183 * annotate.c: Include observer.h.
2184 (breakpoint_changed): Change type of argument.
2185 (_initialize_annotate): Register observers.
2186 (deprecated_annotate_starting_hook): Remove.
2187 (deprecated_annotate_stopped_hook): Remove.
2188 (deprecated_annotate_exited_hook): Remove.
2189 (annotate_starting): Update for hook removal.
2190 (annotate_stopped): Likewise.
2191 (annotate_exited): Likewise.
2192 * defs.h (deprecated_delete_breakpoint_hook): Remove.
2193 (deprecated_create_breakpoint_hook): Likewise.
2194 (deprecated_modify_breakpoint_hook): Likewise.
2196 2008-07-28 Tom Tromey <tromey@redhat.com>
2198 * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.
2200 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
2202 * configure.ac: Check for the GNU/Linux ptrace signature.
2203 * configure: Regenerated.
2205 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
2207 * linux-nat.c (resume_callback): Add more debugging output.
2208 (linux_nat_has_pending_sigint): New function, based on
2209 linux_nat_has_pending.
2210 (set_ignore_sigint, maybe_clear_ignore_sigint): New functions.
2211 (stop_wait_callback): Remove flush_mask handling. Honor
2212 ignore_sigint. Call maybe_clear_ignore_sigint. Pass NULL
2214 (linux_nat_has_pending, flush_callback): Remove.
2215 (linux_nat_filter_event): Check for ignore_sigint.
2216 (linux_nat_wait): Remove flush_mask support and call to
2217 flush_callback. Use set_ignore_sigint and maybe_clear_ignore_sigint.
2218 * linux-nat.h (struct lwp_info): Add ignore_sigint field.
2220 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
2222 * linux-nat.c (count_events_callback, select_event_lwp_callback): Only
2223 report events from resumed threads.
2225 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
2227 * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function.
2228 (mips_linux_init_abi): Set tdep->syscall_next_pc.
2229 * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to
2231 (mips32_next_pc): Handle the syscall instruction.
2232 * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New,
2233 from mips-tdep.c. Add syscall_next_pc to gdbarch_tdep.
2235 2008-07-26 Tom Tromey <tromey@redhat.com>
2238 * valops.c (value_struct_elt): Treat function-valued field as a
2241 2008-07-26 Tom Tromey <tromey@redhat.com>
2244 * macroexp.c (get_punctuator) <punctuators>: Rearrange to put
2245 longer tokens first.
2247 2008-07-26 Vladimir Prus <vladimir@codesourcery.com>
2250 * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok)
2251 (get_cmd_async_ok): Remove.
2252 * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove.
2253 * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok.
2254 * infcmd.c (_initialize_infcmd): Likewise.
2255 * thread.c (_initialize_thread): Likewise.
2257 2008-07-25 Joseph Myers <joseph@codesourcery.com>
2259 * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing
2260 128-bit long doubles in even-odd pairs of FPRs. Do not
2261 right-align float arguments for big-endian.
2262 (mips_n32n64_return_value): Apply return value convention for
2263 structs containing one or two floating-point values to soft-float
2264 as well as hard-float. Handle 128-bit long doubles in such
2266 (mips_o32_push_dummy_call): Only skip one integer register for a
2267 float argument passed in an FPR.
2269 2008-07-25 Tom Tromey <tromey@redhat.com>
2271 * tui/tui-hooks.c: Include observer.h.
2272 (tui_event_default, tui_old_event_hooks, tui_event_hooks):
2274 (tui_bp_created_observer, tui_bp_deleted_observer,
2275 tui_bp_modified_observer): New globals.
2276 (tui_install_hooks): Use observers, not events.
2277 (tui_remove_hooks): Likewise.
2278 * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h.
2279 (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New
2281 (breakpoint_notify): Check mi_can_breakpoint_notify.
2282 (breakpoint_hooks): Remove.
2283 (mi_cmd_break_insert): Attach observers. Don't use events.
2284 * tracepoint.c: Include observer.h, not gdb-events.h.
2285 (tracepoint_operation, trace_pass_command): Notify observer.
2286 * interps.c: Don't include gdb-events.h.
2287 (clear_interpreter_hooks): Don't call clear_gdb_event_hooks.
2288 * gdbarch.c: Rebuild.
2289 * gdbarch.sh: Emit include for observer.h, not gdb-events.h.
2290 (deprecated_current_gdbarch_select_hack): Notify observer.
2291 * breakpoint.h: Don't include gdb-events.h.
2292 * breakpoint.c: Don't include gdb-events.h.
2293 (condition_command): Notify observer.
2294 (commands_command): Likewise.
2295 (commands_from_control_command): Likewise.
2296 (mention, delete_breakpoint, set_ignore_count): Likewise.
2297 (disable_breakpoint, do_enable_breakpoint): Likewise.
2298 * Makefile.in (gdb_events_h): Remove.
2299 (breakpoint_h): Update.
2300 (COMMON_OBS): Remove gdb-events.o.
2301 (gdb-events.o): Remove.
2302 (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o,
2303 gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update.
2304 * gdb-events.c: Remove.
2305 * gdb-events.h: Remove.
2306 * gdb-events.sh: Remove.
2308 2008-07-24 Pedro Alves <pedro@codesourcery.com>
2310 * remote.c (remote_threads_extra_info): Don't query the remote
2311 server about info on the internally added main thread.
2313 2008-07-24 Aleksandar Ristovski <aristovski@qnx.com>
2315 * nto-procfs.c (procfs_attach): Populate initial thread list.
2316 (procfs_wait): Return new pid, built from the inferior status.
2318 2008-07-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
2320 * configure.ac (CONFIG_INITS): Delete long obsoleted variable.
2321 * configure: Regenerate.
2323 2008-07-23 Aleksandar Ristovski <aristovski@qnx.com>
2325 * nto-procfs.c (procfs_xfer_memory): Changed signature.
2326 (procfs_resume): Workaround for dereferencing type-punned pointer
2328 * nto-tdep.c (nto_parse_redirection): Change signature to be const
2330 * nto-tdep.h (nto_parse_redirection): Likewise.
2332 2008-07-21 Stan Shebs <stan@codesourcery.com>
2334 Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.
2335 * gdbarch.sh: Adjust comment to refer to
2336 in_solib_dynsym_resolve_code().
2337 * gdbarch.h, gdbarch.c: Update.
2338 * solib-osf.c: Ditto.
2340 (handle_inferior_event): Use in_solib_dynsym_resolve_code
2342 * config/mips/nm-irix5.h: Remove undef of
2343 IN_SOLIB_DYNSYM_RESOLVE_CODE.
2345 2008-07-21 Tom Tromey <tromey@redhat.com>
2347 * symfile.c (reread_symbols): Don't pass argument to observer.
2348 * exec.c (exec_file_attach): Don't pass argument to observer.
2349 * ada-lang.c (ada_executable_changed_observer): Remove argument.
2350 * symtab.c (symtab_observer_executable_changed): Remove argument.
2351 * observer.sh: Handle functions with no arguments.
2353 2008-07-20 Sergei Poselenov <sposelenov@emcraft.com>
2354 Chris Demetriou <cgd@google.com>
2356 * elfread.c (elf_symfile_segments): Fix the check that each loadable
2357 section fits within an ELF segment to handle ELF segments that hit
2358 the end of the address space.
2360 2008-07-20 Chris Demetriou <cgd@google.com>
2362 * MAINTAINERS (Write After Approval): Add self.
2364 2008-07-18 Tom Tromey <tromey@redhat.com>
2367 * NEWS: Add entry for macro commands.
2368 * Makefile.in (macrocmd.o): Add gdb_string.h.
2369 * macroscope.h (user_macro_scope): Declare.
2370 (default_macro_scope): Update documentation.
2371 (macro_user_macros): Declare.
2372 * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup.
2373 Use user_macro_scope.
2374 (null_macro_lookup): Remove.
2375 * macrotab.h (macro_callback_fn): Declare.
2376 (macro_for_each): Likewise.
2377 (macro_allow_redefinitions): Likewise.
2378 * macrotab.c (foreach_macro): New function
2379 (macro_for_each): Likewise.
2380 (struct macro_table) <redef_ok>: New field.
2381 (macro_allow_redefinitions): New function.
2382 (new_macro_table): Update.
2383 (macro_define_function): Likewise.
2384 (macro_define_object): Likewise.
2385 * macroscope.c (user_macro_scope): New function.
2386 (default_macro_scope): Use it.
2387 (macro_user_macros): New global.
2388 (standard_macro_lookup): Look in macro_user_macros.
2389 (_initialize_macroscope): New function.
2390 * macroexp.h (macro_is_whitespace, macro_is_digit,
2391 macro_is_identifier_nondigit): Declare.
2392 * macroexp.c (macro_is_whitespace): Rename. No longer static.
2393 (macro_is_digit): Likewise.
2394 (macro_is_identifier_nondigit): Likewise.
2395 (get_identifier): Update.
2396 (get_pp_number): Likewise.
2397 (get_token): Likewise.
2398 * macrocmd.c (skip_ws): New function.
2399 (extract_identifier): Likewise.
2400 (free_macro_definition_ptr): Likewise.
2401 (user_macros): Remove.
2402 (macro_define_command): Implement.
2403 (_initialize_macrocmd): Update.
2404 (macro_undef_command): Implement.
2405 (print_one_macro): New function.
2406 (macro_list_command): Implement.
2408 2008-07-18 Joseph Myers <joseph@codesourcery.com>
2410 * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl
2412 * configure: Regenerate.
2414 2008-07-17 Paul Pluzhnikov <ppluzhnikov@google.com>
2416 * auxv.c (fprint_target_auxv): Stop at AT_NULL.
2418 2008-07-15 Andreas Schwab <schwab@suse.de>
2420 * valops.c (value_cast_pointers): Follow typedefs when checking
2423 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
2425 * block.c (block_function): Renamed to ...
2426 (block_linkage_function): ... this. All callers changed.
2427 * block.h (block_function): Renamed to ...
2428 (block_linkage_function): ... this.
2430 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
2432 * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned.
2434 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
2436 * frame.c (frame_sp_unwind): Delete.
2437 (get_frame_sp): Do not use it.
2438 * frame.h (frame_sp_unwind): Delete prototype.
2440 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
2442 * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc.
2444 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
2446 * dwarf2-frame.c (dwarf2_frame_cache): Update comment.
2447 * frame.c (frame_unwind_address_in_block): Delete.
2448 (get_frame_address_in_block): Do not use it. Check the type
2449 of the next frame first.
2450 (frame_cleanup_after_sniffer): Update comment.
2451 * frame.h (frame_unwind_address_in_block): Delete prototype.
2452 * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment.
2454 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
2456 * frame.c (frame_func_unwind): Delete.
2457 (get_frame_func): Do not use it.
2458 * frame.h (frame_func_unwind): Delete prototype.
2459 * hppa-tdep.c (hppa_frame_cache): Update comment.
2460 * rs6000-tdep.c (rs6000_frame_cache): Update comment.
2462 2008-07-14 Stan Shebs <stan@codesourcery.com>
2464 * remote-sim.c (init_gdbsim_ops): Remove
2465 TARGET_REDEFINE_DEFAULT_OPS.
2467 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
2469 * findvar.c (read_var_value): Remove unused variable.
2471 2008-07-15 Luis Machado <luisgpm@br.ibm.com>
2473 * infrun.c (handle_inferior_event): Tag threads as stopped
2474 before inserting breakpoints.
2476 2008-07-15 Hui Zhu <teawater@gmail.com>
2478 * MAINTAINERS: Added myself to section Write After Approval.
2480 2008-07-14 Paul Pluzhnikov <ppluzhnikov@google.com>
2483 * cp-abi.c (value_virtual_fn_field): Handle invalid pointers.
2485 2008-07-14 Pedro Alves <pedro@codesourcery.com>
2487 * i386-dicos-tdep.c (i386_dicos_frame_align): Delete.
2488 (i386_dicos_push_dummy_code): New.
2489 (i386_dicos_init_abi): Don't register i386_dicos_frame_align.
2490 Register i386_dicos_push_dummy_code.
2492 2008-07-14 Markus Deuling <deuling@de.ibm.com>
2494 * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter.
2495 (mips_n32n64_push_dummy_call, mips_o64_return_value)
2496 (mips_eabi_push_dummy_call): Update call to fp_register_arg_p.
2498 (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch.
2499 (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command)
2500 (mips_n32n64_fp_arg_chunk_p): Update caller.
2502 (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter.
2503 (mips_n32n64_push_dummy_call): Update caller.
2505 (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace
2507 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
2508 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller.
2511 (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace
2513 (mips_eabi_push_dummy_call, mips_o32_push_dummy_call)
2514 (mips_o64_push_dummy_call): Update caller.
2516 (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch.
2517 (fp_register_arg_p, mips_dump_tdep): Update caller.
2519 (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch.
2520 (mips16_scan_prologue, mips32_scan_prologue): Update caller.
2522 (reset_saved_regs): Make static. Add gdbarch as parameter. Replace
2524 (mips32_scan_prologue): Update caller.
2526 (heuristic_proc_start): Add gdbarch as parameter. Replace
2528 (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller.
2530 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2531 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
2532 the current architecture. Update call to getregs_supplies.
2533 (getregs_supplies): Add gdbarch as parameter and replace
2536 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to
2537 get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and
2538 NBSD_MIPS_JB_ELEMENT_SIZE.
2539 (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and
2540 replace current_gdbarch.
2542 * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace
2544 (mips_fetch_registers, mips_store_registers): Update call
2546 (mips_load): Use get_regcache_arch to get at the current_architecture
2547 and replace current_gdbarch.
2549 2008-07-13 Pedro Alves <pedro@codesourcery.com>
2551 * thread.c (restore_selected_frame): On fail to restore, select
2552 the innermost frame, and don't crash when warning the user.
2554 2008-07-13 Hui Zhu <teawater@gmail.com>
2556 * symtab.c (expand_line_sal): Fix a memory leak.
2558 2008-07-13 Pedro Alves <pedro@codesourcery.com>
2560 * utils.c (struct continuation): Define as inheriting struct
2562 (add_continuation, do_all_continuations)
2563 (discard_all_continuations, add_intermediate_continuation)
2564 (do_all_intermediate_continuations)
2565 (discard_all_intermediate_continuations): Adjust.
2567 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
2569 Skip varobj in running threads.
2570 * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's
2571 thread is not stopped, skip the varobj.
2572 * Makefile.in: Update dependencies.
2574 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
2576 Enable all commands while inferiour is running
2577 * mi/mi-main.c (mi_cmd_execute): Don't check if
2578 inferiour is executing.
2580 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
2582 Allow all CLI command even if target is executing.
2583 * gdb/top.c (execute_command_1): Don't check if the inferiour
2586 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
2588 * mi/mi-main.c (mi_cmd_execute): Remove unused variable.
2589 Fix printing of frame, when frame is wrong.
2591 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
2593 * spu-tdep.c (spu_frame_unwind_cache): Do not error if
2594 backchain is unreadable.
2596 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
2598 * spu-linux-nat.c: Include "gdbthread.h".
2599 (spu_child_post_startup_inferior): Register main thread.
2600 (spu_child_post_attach): Likewise.
2601 * Makefile.in (spu-linux-nat.o): Update dependencies.
2603 2008-07-12 Pedro Alves <pedro@codesourcery.com>
2605 Rewrite continuations internals on top of cleanups and plug
2606 continuation arguments leaks.
2608 * defs.h (struct continuation): Make it opaque.
2609 (add_continuation, add_intermediate_continuation): Drop the int
2610 argument of the continuation hook argument. Add
2611 continuation_free_args argument.
2612 (do_all_continuations, do_all_intermediate_continuations): Drop
2613 the error_p argument.
2615 * utils.c (add_continuation): Drop the int argument of the
2616 continuation hook argument. Add continuation_free_args argument.
2617 Reimplement on top of cleanups.
2618 (do_all_continuations): Drop error argument. Reimplement on top
2620 (discard_all_continuations): Reimplement on top of cleanups.
2621 (add_intermediate_continuation): Drop the int argument of the
2622 continuation hook argument. Add continuation_free_args argument.
2623 Reimplement on top of cleanups.
2624 (do_all_intermediate_continuations): Drop error argument.
2625 Reimplement on top of cleanups.
2626 (discard_all_intermediate_continuations): Reimplement on top of
2629 * breakpoint.c (until_break_command_continuation): Drop error
2630 argument. Add xfree as continuation argument deleter.
2632 * inf-loop.c (inferior_event_handler): On error, discard all
2633 continuations. Adjust to new do_all_intermediate_continuations
2634 and do_all_continuations interfaces.
2636 * infcmd.c (step_1_continuation): Drop error_p argument. Adjust.
2637 Pass xfree as continuation argument deleter.
2638 (finish_command_continuation): Drop error_p argument. Adjust.
2639 (finish_command_continuation_free_arg): New.
2640 (finish_command): Pass finish_command_continuation_free_arg as
2641 continuation argument deleter. Adjust to new do_all_continuations
2643 (attach_command_continuation): Drop error_p argument.
2644 (attach_command_continuation_free_args): New.
2645 (attach_command): Pass attach_command_continuation_free_args as
2646 continuation argument deleter.
2648 * interps.c (interp_set): Adjust to new do_all_continuations
2651 * event-top.c (stdin_event_handler): In error, also discard the
2652 intermediate continuations.
2654 2008-07-12 Pedro Alves <pedro@codesourcery.com>
2656 Replace struct continuation_args by void* and per command structs.
2658 * top.c (execute_command): Remove unused arg1 and arg2 locals.
2660 * breakpoint.c (struct until_break_command_continuation_args):
2662 (until_break_command_continuation): Take a void* instead of a
2663 continuations_arg. Adjust.
2664 (until_break_command): Adjust to use struct
2665 until_break_command_continuation_args instead of struct
2668 * infcmd.c (struct step_1_continuation_args): New.
2669 (step_1_continuation): Take a void* instead of a
2670 continuations_arg. Adjust to use struct step_1_continuation_args.
2671 (step_once): Adjust to use struct step_1_continuation_args.
2673 (struct finish_command_continuation_args): New.
2674 (finish_command_continuation): Take a void* instead of a
2675 continuations_arg. Adjust to use struct
2676 finish_command_continuation_args.
2677 (finish_command): Adjust to use struct
2678 finish_command_continuation_args.
2679 (struct attach_command_continuation_args): New.
2680 (attach_command_continuation): Take a void* instead of a
2681 continuations_arg. Adjust to use struct
2682 attach_command_continuation_args.
2683 (attach_command): Adjust to use struct
2684 attach_command_continuation_args.
2686 * defs.h (struct continuation_arg): Delete.
2687 (struct continuation): Replace the struct continuation_arg*
2688 parameter of continuation_hook by a void*. Replace "arg_list"
2689 member by a new "args" member with void* type.
2690 (add_continuation, add_intermediate_continuation): Replace struct
2691 continuation_arg type usages by void* usages.
2693 * utils.c (add_continuation, do_all_continuations)
2694 (add_intermediate_continuation)
2695 (do_all_intermediate_continuations): Replace struct
2696 continuation_arg type usages by void* usages. Pass "args" instead
2699 2008-07-12 Pedro Alves <pedro@codesourcery.com>
2701 * infrun.c (struct thread_stepping_state): Delete sal member.
2702 (init_thread_stepping_state): Add local sal. Use it instead of
2704 (handle_inferior_event): New local stop_pc_sal. Use it instead of
2706 (step_into_function): Add local stop_func_sal. Use it instead of
2709 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
2711 Implement -exec-continue/-exec-interrupt --all.
2712 * infcmd.c (continue_1): New, extracted from
2713 (continue_command): ...here.
2714 (interrupt_target_1): New, extracted from
2715 (interrupt_target_command): ...here.
2716 * inferior.h (continue_1, interrupt_target_1): New.
2717 * mi/mi-main.c (mi_cmd_exec_continue)
2718 (mi_cmd_exec_interrupt): Handle --all.
2720 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
2722 Implement --thread and --frame.
2723 * gdbthread.h (find_thread_id): Declare.
2724 * thread.c (find_thread_id): Make non-static.
2725 * mi/mi-main.c (mi_cmd_execute): Switch to the right
2726 thread and frame, if necessary.
2727 * mi/mi-parse.c (mi_parse): Handle --thread and --frame.
2728 * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
2730 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
2732 * infrun.c (resume): Discard cleanups on early exit path.
2734 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
2736 * infrun.c (normal_stop): For MI, report which threads
2739 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
2741 Report thread state in -thread-info output.
2742 * thread.c (print_thread_info): Add new field "state".
2744 2008-07-11 Pedro Alves <pedro@codesourcery.com>
2746 * infrun.c (handle_inferior_event): Also ignore a
2747 TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP.
2749 2008-07-11 Tom Tromey <tromey@redhat.com>
2751 * completer.c (complete_line_internal): New function, from
2752 complete_line. Add 'for_help' parameter.
2753 (complete_line): Use it.
2754 (command_completer): Move later. Rewrite.
2756 2008-07-11 Pedro Alves <pedro@codesourcery.com>
2758 * thread.c (thread_apply_command): Move making the cleanup out of
2761 2008-07-11 Pedro Alves <pedro@codesourcery.com>
2765 * thread.c (enum thread_state): New.
2766 (thread_state main_thread_running): Delete, in favor of...
2767 (thread_state main_thread_state): ... this. Update throughout.
2768 (clear_thread_inferior_resources): New, split from free_thread.
2769 (free_thread): Call clear_thread_inferior_resources.
2770 (init_thread_list): Set main thread to stopped state.
2771 (add_thread_silent): Take care of PTID reuses.
2772 (delete_thread): If deleting inferior_ptid or a thread with
2773 refcount > 0, mark it as exited, but still keep it in the list.
2774 Only notify of thread exits, if we haven't done so yet.
2775 (iterate_over_threads): Make it safe to delete threads while
2776 iterating over them.
2777 (do_captured_list_thread_ids): Don't account for exited threads.
2778 (thread_alive): Check for the THREAD_EXITED state, and don't set
2779 ptid to -1 on exited threads.
2780 (set_running): Update to account for extra possible states.
2781 (is_thread_state): New.
2782 (is_stopped, is_exited): New.
2783 (is_running): Implement in terms of is_thread_state.
2784 (any_running): Update.
2785 (print_thread_info): Update. Account for exited threads. Don't
2786 warn about missed frame restoring here, its done in the cleanup.
2787 (switch_to_thread): Don't read from a thread that has gone.
2788 (restore_current_thread): In non-stop mode, do a full context
2790 (restore_selected_frame): Add a frame_level argument. Rewrite.
2791 (struct current_thread_cleanup): Add selected_frame_level and
2792 was_stopped members.
2793 (do_restore_current_thread_cleanup): Check if thread was stopped
2794 and still is, and if the target has registers, stack and memory
2795 before restoring the selected frame. Don't delete the cleanup
2797 (restore_current_thread_cleanup_dtor): New.
2798 (make_cleanup_restore_current_thread): Remove all arguments.
2800 (thread_apply_all_command): Update. Prune threads.
2801 (thread_apply_command): Update.
2802 (thread_command): Account for currently selected exited thread.
2803 (do_captured_thread_select): Check for a running thread. Prune
2805 (_initialize_thread): Make "info threads", "thread", "thread
2806 apply", and "thread apply all" appliable without a selected thread.
2807 * gdbthread.h (struct thread_info): Replace running_ by state_.
2809 (is_exited, is_stopped): Declare.
2810 (make_cleanup_restore_current_thread): Remove all arguments.
2811 * infrun.c: Include "event-top.h".
2812 (fetch_inferior_event): In non-stop mode, restore selected thread
2813 and frame after handling the event and running breakpoint
2814 commands. Display GDB prompt if needed.
2815 (normal_stop): In non-stop mode, don't print thread switching
2817 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
2818 (get_cmd_no_selected_thread_ok): New.
2819 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New.
2820 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
2822 * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as
2823 no-selected-thread ok.
2824 * top.c (execute_command): Check for non no-selected-thread-ok
2826 * linux-nat.c (struct saved_ptids, threads_to_delete)
2827 (record_dead_thread, prune_lwps): Delete.
2828 (exit_lwp): Unconditionally delete thread.
2829 (linux_nat_resume): Remove prune_lwps call.
2830 * infcmd.c (proceed_thread_callback): Check if !is_stopped instead
2831 of is_running. Adjust to make_cleanup_restore_current_thread
2833 * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the
2834 selected thread has exited.
2835 * inf-loop.c (inferior_event_handler): Don't display the prompt
2837 * varobj.c (c_value_of_root): Update.
2838 * defs.h (make_cleanup_dtor): Declare.
2839 * utils.c (make_cleanup_dtor): New.
2841 * Makefile.in (infrun.o): Depend on $(event_top_h).
2843 2008-07-11 Pedro Alves <pedro@codesourcery.com>
2845 Add "continue -a" and "interrupt -a" options for non-stop mode.
2847 * infcmd.c (proceed_thread_callback, do_context_switch_to): New.
2848 (continue_command): Add "-a" option.
2849 (interrupt_target_command): Add "-a" option.
2850 (_initialize_infcmd): Add extend help of continue and interrupt
2851 command to mention the new "-a" option. Mark "continue" async ok.
2853 2008-07-10 Doug Evans <dje@google.com>
2855 Add "set print symbol-loading on|off".
2856 * NEWS: Document new option.
2857 * symfile.h (print_symbol_loading): Declare.
2858 * symfile.c (print_symbol_loading): New global.
2859 (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols
2860 from ..." if print_symbol_loading.
2861 (_initialize_symfile): Add set/show print symbol-loading.
2862 * solib.c (solib_read_symbols): Only print "Loaded symbols for ..."
2863 if print_symbol_loading.
2865 2008-07-10 Pedro Alves <pedro@codesourcery.com>
2867 Non-stop linux native.
2869 * linux-nat.c (linux_test_for_tracefork): Block events while we're
2871 (get_pending_status): Implement non-stop mode.
2872 (linux_nat_detach): Stop threads before detaching.
2873 (linux_nat_resume): In non-stop mode, always resume only a single
2875 (linux_handle_extended_wait): On a clone event, in non-stop mode,
2876 add new lwp to GDB's thread table, and mark as running, executing
2877 and stopped appropriately.
2878 (linux_nat_filter_event): Don't assume there are other running
2879 threads when a thread exits.
2880 (linux_nat_wait): Mark the main thread as running and executing.
2881 In non-stop mode, don't stop all lwps.
2882 (linux_nat_kill): Stop lwps before killing them.
2883 (linux_nat_thread_alive): Use signal 0 to detect if a thread is
2885 (send_sigint_callback): New.
2886 (linux_nat_stop): New.
2887 (linux_nat_add_target): Set to_stop to linux_nat_stop.
2889 * linux-nat.h (thread_db_attach_lwp): Declare.
2891 * linux-thread-db.c (thread_get_info_callback): Check for new
2892 threads if we have none.
2893 (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the
2894 stopped lwp. Check for new threads if we have none.
2895 (thread_db_attach_lwp): New.
2896 (thread_db_init): Set proc_handle.pid to inferior_ptid.
2897 (check_event): Set proc_handle.pid to the stopped lwp.
2898 (thread_db_find_new_threads): Set proc_handle.pid to any stopped
2899 lwp available, bail out if there is none.
2901 * linux-fork.c (linux_fork_killall): Use SIGKILL instead of
2904 2008-07-10 Kevin Buettner <kevinb@redhat.com>
2906 * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
2907 `current_pc' from CORE_ADDR to ULONGEST.
2909 * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
2912 2008-07-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2914 * NEWS (New commands): Mention "set disable-randomization".
2915 * configure.ac: Add check for HAVE_PERSONALITY and
2916 HAVE_DECL_ADDR_NO_RANDOMIZE.
2917 * configure, config.in: Regenerate.
2918 * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
2919 [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
2921 (disable_randomization, show_disable_randomization)
2922 (set_disable_randomization): New.
2923 (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
2924 PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the
2925 variable DISABLE_RANDOMIZATION.
2926 (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
2927 DISABLE_RANDOMIZATION.
2929 2008-07-09 Pedro Alves <pedro@codesourcery.com>
2931 Adjust all targets to new target_stop interface.
2933 * gnu-nat.c (gnu_stop): Add ptid argument.
2934 * go32-nat.c (go32_stop): Add ptid argument.
2935 (go32_create_inferior): Pass inferior_ptid to go32_stop.
2936 * hpux-thread.c (hpux_thread_stop): Add ptid argument.
2937 * monitor.c (monitor_stop): Add ptid argument.
2938 (monitor_open): Pass inferior_ptid to monitor_stop.
2939 (monitor_interrupt): Pass inferior_ptid to target_stop.
2940 (monitor_stop): Add ptid argument.
2941 * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
2942 (procfs_create_inferior): Add ptid argument.
2943 * procfs.c (procfs_stop): Add ptid argument.
2944 * remote-m32r-sdi.c (m32r_stop): Add ptid argument.
2945 * remote-sim.c (gdbsim_stop): Add ptid argument.
2946 * sol-thread.c (sol_thread_stop): Add ptid argument.
2947 * win32-nat.c (win32_stop): Add ptid argument.
2949 2008-07-09 Pedro Alves <pedro@codesourcery.com>
2951 Non-stop inferior control.
2953 * infrun.c (resume): In non-stop mode, always resume just one
2955 (proceed): Don't call prepare_to_proceed in non-stop mode.
2956 (fetch_inferior_event): In non-stop mode, switch context before
2958 (error_is_running, ensure_not_running): New.
2959 (handle_inferior_event): In non-stop mode: Mark only the event
2960 thread as stopped. Require that the target module manages adding
2961 threads to the thread list. Assert that there isn't a
2962 deferred_step_ptid set. Don't switch to infwait_thread_hop_state.
2963 (normal_stop): Only mark not-running if inferior hasn't exited.
2964 In non-stop mode, only mark the event thread.
2966 * thread.c:Include "cli/cli-decode.h".
2967 (print_thread_info): Don't read from a running thread.
2968 Output "(running)" if thread is running.
2969 (switch_to_thread): Don't read stop_pc if thread is executing.
2970 (do_restore_current_thread_cleanup): Don't write to a running
2972 (thread_apply_all_command): Don't read from a running thread. In
2973 non-stop mode, do a full context-switch instead of just switching
2975 (thread_apply_command): In non-stop mode, do a full context-switch
2976 instead of just switching threads.
2977 (do_captured_thread_select): Likewise. Inform user if selected
2979 (_initialize_thread): Mark "info threads" and "thread" and
2982 * inf-loop.c (inferior_event_handler): In non-stop mode, don't
2983 unregister the target from the event loop.
2985 * infcmd.c (continue_command, step_1, jump_command)
2986 (signal_command): Ensure the selected thread isn't running.
2987 (interrupt_target_command): In non-stop mode, interrupt only the
2990 * inferior.h (error_is_running, ensure_not_running): Declare.
2992 * target.h (struct target_ops): Add ptid argument to the to_stop
2994 (target_stop): Add ptid_t argument.
2996 * target.c (update_current_target): Add ptid argument to to_stop's
2998 (debug_to_stop): Add ptid_t argument.
2999 (debug_to_rcmd): Set to_stop_ptid.
3001 * remote.c (remote_stop): Add ptid_t argument.
3002 (async_remote_interrupt): Add inferior_ptid to target_stop.
3003 * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
3005 * Makefile.in (thread.o): Depend on $(cli_decode_h).
3007 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3009 Don't rely on ecs->wait_for_more.
3011 * infrun.c (proceed): Clear the stepping state, set
3012 previous_inferior_ptid and clear infwait state.
3013 (wait_for_inferior): Don't clear the stepping state, set
3014 previous_inferior_ptid, or clear the infwait state here.
3015 (fetch_inferior_event): Don't clear the stepping state, set
3016 previous_inferior_ptid, or clear the infwait state here. Don't
3017 condition on wait_for_more.
3019 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3021 Refactor infrun a bit.
3023 * infrun.c (currently_stepping): Take a struct
3024 thread_stepping_state instead of an execution_control_state.
3025 (struct thread_stepping_state): New, split from
3026 execution_control_state.
3027 (gtss, tss): New globals.
3028 (proceed): Clear the stepping state, set previous_inferior_ptid
3029 and clear infwait state.
3030 (init_wait_for_inferior): Clear the stepping state,
3031 previous_inferior_ptid and infwait state.
3032 (waiton_ptid, infwait_state): New, split from
3033 execution_control_state.
3034 (struct execution_control_state): Members that persist through
3035 events moved out to either struct thred_stepping_state or made
3036 global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
3037 (wait_for_inferior, fetch_inferior_event): Use local
3038 execution_control_state. Update to execution_control_state split.
3039 (init_execution_control_state): Adjust.
3040 (init_thread_stepping_state): New, extracted from
3041 init_execution_control_state.
3042 (context_switch): Take a ptid instead of an
3043 execution_control_state.
3044 (context_switch_to): Adjust.
3045 (adjust_pc_after_break): Adjust.
3046 (init_infwait_state): New.
3047 (handle_inferior_event): Adjust.
3049 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3050 Vladimir Prus <vladimir@codesourcery.com>
3052 Per-thread commands.
3054 * gdbthread.h: Remove unneeded forward declarations.
3055 Include "inferior.h".
3056 (struct thread_info): Add continuations,
3057 intermediate_continuations, proceed_to_finish, step_over_calls,
3058 stop_step, step_multi and stop_signal members.
3059 (save_infrun_state): Add continuations,
3060 intermediate_continuations, proceed_to_finish, step_over_calls,
3061 stop_step, step_multi, stop_signal and stop_bpstat parameters.
3062 (load_infrun_state): Add continuations,
3063 intermediate_continuations, proceed_to_finish, step_over_calls,
3064 stop_step, step_multi, stop_signal and stop_bpstat parameters.
3066 * thread.c (load_infrun_state): In non-stop mode, load
3067 continuations, intermediate_continuations, proceed_to_finish,
3068 step_over_calls, stop_step, step_multi and stop_signal.
3069 (save_infrun_state): Store continuations,
3070 intermediate_continuations, proceed_to_finish, step_over_calls,
3071 stop_step, step_multi, stop_signal and stop_bpstat.
3072 (save_infrun_state): Store continuations,
3073 intermediate_continuations, proceed_to_finish, step_over_calls,
3074 stop_step, step_multi, stop_signal and stop_bpstat.
3075 (free_thread): Clear The thread's stop_bpstat.
3077 * inferior.h (context_switch_to): Declare.
3079 * infrun.c (ecss): New global.
3080 (context_switch): Context switch continuations,
3081 intermediate_continuations, proceed_to_finish, step_over_calls,
3082 stop_step, step_multi, stop_signal and stop_bpstat.
3083 (wait_for_inferior): Use global ecss.
3084 (async_ecss, async_ecs): Delete.
3085 (fetch_inferior_event): Use global ecss.
3086 (context_switch_to): New.
3088 * top.c (execute_command): In non-stop, only check if the current
3089 thread is running, in all-stop, check if there's any thread
3092 * breakpoint.c (bpstat_remove_breakpoint): New.
3093 (bpstat_remove_breakpoint_callback): New.
3094 (delete_breakpoint): Clear the stop_bpstats of all threads.
3096 * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
3097 current thread is running, in all-stop, check if there's any
3100 * Makefile.in (gdbthread_h): Depend on $(inferior_h).
3102 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3104 Add non_stop global.
3106 * inferior.h (non_stop): Declare.
3107 * infrun.c (non_stop, non_stop_1): New.
3108 (set_non_stop, show_non_stop): New.
3109 (_initialize_infrun): Add "set/show non-stop" command.
3111 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3113 Adjust fork/vfork/exec to pass ptids around.
3115 * target.h (struct target_waitstatus): Store related_pid as a ptid.
3116 (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
3118 * breakpoint.h (struct breakpoint): Change forked_inferior_pid
3120 * breakpoint.c (print_it_typical, bpstat_check_location)
3121 (print_one_breakpoint_location, set_raw_breakpoint_without_location)
3122 (create_fork_vfork_event_catchpoint): Adjust.
3123 * infrun.c (fork_event): Change parent_pid and child_pid types to
3125 (follow_exec, inferior_has_forked, inferior_has_vforked)
3126 (inferior_has_execd): Take a ptid_t and don't trim it.
3127 * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
3128 * linux-nat.c (linux_child_follow_fork): Adjust.
3129 * inf-ptrace.c (inf_ptrace_wait): Adjust.
3130 * inf-ttrace.c (inf_ttrace_wait): Adjust.
3131 * win32-nat.c (get_win32_debug_event): Don't set related_pid.
3133 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3135 Add "executing" property to threads.
3137 * inferior.h (target_executing): Delete.
3138 * gdbthread.h (struct thread_info): Add executing_ field.
3139 (set_executing, is_executing): New.
3140 * thread.c (main_thread_executing): New.
3141 (init_thread_list): Clear it and also main_thread_running.
3142 (is_running): Return false if target has no execution.
3143 (any_running, is_executing, set_executing): New.
3145 * top.c: Include "gdbthread.h".
3146 (target_executing): Delete.
3147 (execute_command): Replace target_executing check by any_running.
3148 * event-top.c: Include "gdbthread.h".
3149 (display_gdb_prompt, command_handler): Replace target_executing by
3151 * inf-loop.c: Include "gdbthread.h". Don't mark as not executing
3152 here. Replace target_executing by is_running.
3153 * infrun.c (handle_inferior_event): Mark all threads as
3155 * linux-nat.c (linux_nat_resume): Don't mark thread as executing
3157 * stack.c (get_selected_block): Return null if inferior is
3159 * target.c (target_resume): Mark resumed ptid as executing.
3160 * breakpoint.c (until_break_command): Replace target_executing
3161 check by is_executing.
3162 * remote.c (remote_async_resume): Don't mark inferior as executing
3164 * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
3167 * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
3168 (mi_execute_async_cli_command): Replace target_executing by
3171 * frame.c (get_current_frame): Error out if the current thread is
3173 (has_stack_frames): New.
3174 (get_selected_frame, deprecated_safe_get_selected_frame): Check
3177 * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
3180 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3182 * symfile.c (load_command): Reopen the exec file and reread
3183 symbols before anything else.
3185 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3187 * remote-sim.c: Include gdbthread.h.
3188 (remote_sim_ptid): New global.
3189 (gdbsim_create_inferior): Silently add the main task to GDB's
3191 (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
3192 task from GDB's thread list.
3193 (gdbsim_resume): Adjust to use remote_sim_ptid.
3194 (gdbsim_thread_alive, gdbsim_pid_to_str): New.
3195 (init_gdbsim_ops): Register gdbsim_thread_alive and
3197 (_initialize_remote_sim): Initialize remote_sim_ptid.
3198 * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
3200 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3202 * monitor (monitor_ptid): New global.
3203 (monitor_open): Silently add the main task to GDB's thread list.
3204 (monitor_close, monitor_mourn_inferior): Silently delete the main
3205 task from GDB's thread list.
3206 (monitor_thread_alive, monitor_pid_to_str): New.
3207 (init_base_monitor_ops): Register monitor_thread_alive and
3209 (_initialize_remote_monitors): Initialize monitor_ptid.
3211 * gdbthread.h (delete_thread_silent): Declare.
3212 * thread.c (delete_thread): Rename to ...
3213 (delete_thread_1): ... this. Add "silent" parameter. If silent,
3214 don't do exit notifications.
3215 (delete_thread, delete_thread_silent): New, as wrappers to
3218 2008-07-08 Pedro Alves <pedro@codesourcery.com>
3220 * breakpoint.c (update_global_location_list): Add boolean
3221 "should_insert" argument. Only insert locations if caller told it
3223 (update_global_location_list_nothrow): Add boolean "should_insert"
3224 argument. Pass it to update_global_location_list.
3225 (insert_breakpoints, create_longjmp_breakpoint)
3226 (create_overlay_event_breakpoint, enable_overlay_breakpoints)
3227 (create_thread_event_breakpoint, create_solib_event_breakpoint)
3228 (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
3229 (enable_watchpoints_after_interactive_call_stop)
3230 (set_momentary_breakpoint, create_breakpoints)
3231 (break_command_really, watch_command_1)
3232 (create_ada_exception_breakpoint, update_breakpoint_locations)
3233 (do_enable_breakpoint, enable_command): Pass true to
3234 update_global_location_list.
3235 (bpstat_stop_status, disable_overlay_breakpoints)
3236 (disable_watchpoints_before_interactive_call_start)
3237 (delete_breakpoint, disable_breakpoint, disable_command): Pass
3238 false to update_global_location_list.
3239 (update_breakpoints_after_exec): Don't temporarily disable
3240 always-inserted mode.
3242 2008-07-08 Pedro Alves <pedro@codesourcery.com>
3244 * breakpoint.c (mark_breakpoints_out): Make public.
3245 (update_breakpoints_after_exec): Don't call mark_breakpoints_out
3246 here. Update comment.
3247 * breakpoint.h (mark_breakpoints_out): Declare.
3249 * linux-nat.c (linux_handle_extended_wait): On
3250 TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
3251 * inf-ttrace.c (inf_ttrace_wait): Likewise.
3253 2008-07-08 Pedro Alves <pedro@codesourcery.com>
3255 * infrun.c (follow_exec): Reset shared libraries before adding the
3258 2008-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3260 * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
3262 2008-07-07 Pedro Alves <pedro@codesourcery.com>
3264 * i386-dicos-tdep.c: Include "inferior.h".
3265 (i386_dicos_frame_align): New.
3266 (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call
3267 dummy location ON_STACK.
3268 * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
3270 2008-07-07 Joel Brobecker <brobecker@adacore.com>
3272 * gstdint.h: New file.
3274 2008-07-05 Vladimir Prus <vladimir@codesourcery.com>
3276 * mi/mi-interp.c (mi_on_resume): Don't try to report
3277 resumed thread it the thread list is empty.
3279 2008-07-05 Pierre Muller <muller@ics.u-strasbg.fr>
3281 * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
3282 completer for set to filename_completer.
3286 2008-07-04 Vladimir Prus <vladimir@codesourcery.com>
3288 Implement -target-attach.
3289 * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
3291 2008-06-21 Hui Zhu <teawater@gmail.com>
3293 * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
3295 2008-07-03 Pedro Alves <pedro@codesourcery.com>
3297 * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
3298 * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
3300 * target.h (struct target_ops): Add to_attach_no_wait member.
3301 (target_attach_no_wait): New.
3302 * target.c (update_current_target): Inherit to_attach_no_wait.
3304 * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
3305 target_attach_no_wait runtime check.
3307 * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
3308 * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
3311 2008-07-03 Pedro Alves <pedro@codesourcery.com>
3313 * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
3314 on debug_displaced being set.
3316 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
3318 * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
3319 directly instead of get_frame_id.
3321 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
3323 * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
3324 (deal_with_atomic_sequence): Update BC masks.
3325 (rs6000_gdbarch_init): Init displaced stepping infra-structure.
3326 Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
3328 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
3330 * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
3331 register, not the previous frame's.
3333 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
3335 * source.c (select_source_symtab): Make sure we skip namespace
3336 symtabs when showing cpp source code.
3338 2008-06-30 Hans-Peter Nilsson <hp@axis.com>
3340 * MAINTAINERS (Authorized committers): Fix my email address.
3342 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
3344 * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
3345 -target-download and -target-select via CLI, so that
3346 the quoting rules are the same as they were (unfortunately)
3347 in all prior gdb releases.
3348 * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
3349 (mi_cmd_target_download, mi_cmd_target_select): Remove.
3350 * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
3351 (mi_cmd_target_download, mi_cmd_target_select): Remove.
3352 (mi_cmd_execute): Set current_token even for commands
3355 2008-06-28 Ulrich Weigand <uweigand@de.ibm.com>
3357 * alphafbsd-tdep.c: Update for unwinder changes.
3358 * alpha-linux-tdep.c: Likewise.
3359 * alphanbsd-tdep.c: Likewise.
3360 * alphaobsd-tdep.c: Likewise.
3361 * avr-tdep.c: Likewise.
3362 * cris-tdep.c: Likewise.
3363 * frv-linux-tdep.c: Likewise.
3364 * frv-tdep.c: Likewise.
3365 * h8300-tdep.c: Likewise.
3366 * hppa-linux-tdep.c: Likewise.
3367 * iq2000-tdep.c: Likewise.
3368 * m32c-tdep.c: Likewise.
3369 * m32r-linux-tdep.c: Likewise.
3370 * m32r-tdep.c: Likewise.
3371 * m68hc11-tdep.c: Likewise.
3372 * mep-tdep.c: Likewise.
3373 * mn10300-tdep.c: Likewise.
3374 * mt-tdep.c: Likewise.
3375 * score-tdep.c: Likewise.
3376 * sh64-tdep.c: Likewise.
3377 * sh-tdep.c: Likewise.
3378 * sparc64fbsd-tdep.c: Likewise.
3379 * sparc64nbsd-tdep.c: Likewise.
3380 * sparc64obsd-tdep.c: Likewise.
3381 * v850-tdep.c: Likewise.
3382 * vaxobsd-tdep.c: Likewise.
3383 * vax-tdep.c: Likewise.
3384 * xstormy16-tdep.c: Likewise.
3386 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
3388 * mi/mi-main.c (enum captured_mi_execute_command_actions)
3389 (captured_mi_execute_command_args): Remove.
3390 (captured_mi_execute_command): Cast the closure to mi_parse
3391 pointer, not to captured_mi_execute_command_args, and don't
3392 set the action field thereof.
3393 (mi_execute_command): Pass struct mi_parse, not
3394 captured_mi_execute_command_args to captured_mi_execute_command.
3395 (mi_execute_command): Remove (dead) code for suppressing
3398 2008-06-28 Pedro Alves <pedro@codesourcery.com>
3400 * linux-nat.c (enum sigchld_state): New.
3401 (linux_nat_async_events_state): Renamed from
3402 linux_nat_async_events_enabled.
3403 (linux_nat_event_pipe_push, my_waitpid): Adjust.
3404 (sigchld_default_action): New.
3405 (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
3407 (linux_nat_create_inferior): Set events state to sigchld_default
3409 (linux_nat_resume): Adjust.
3410 (linux_nat_wait): Call linux_nat_async_events unconditionally.
3411 (sigchld_handler): Adjust.
3412 (linux_nat_async_mask): Don't set SIGCHLD actions here.
3413 (get_pending_events): Adjust.
3414 (linux_nat_async_events): Rewrite to handle enum sigchld_state
3415 instead of a boolean.
3416 (linux_nat_async): Adjust.
3417 (_initialize_linux_nat): Capture default SIGCHLD action into
3418 sigchld_default_action.
3420 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
3422 * breakpoint.c (moribund_locations): New.
3423 (bpstat_stop_status): Process moribund locations.
3424 (update_global_location_list): Add removed
3425 locations to moribund_locations.
3426 (breakpoint_retire_moribund): New.
3427 * breakpoint.h (struct bp_location): New field
3428 events_till_retirement.
3429 (breakpoint_retire_moribund): Declare.
3430 * thread.c (thread_count): New.
3431 * infrun.c (handle_inferior_event): Call
3432 breakpoint_retire_moribund.
3433 * gdbthread.h (thread_count): Declare.
3435 2008-06-27 Joseph Myers <joseph@codesourcery.com>
3437 * dfp.c (decimal_convert): Call match_endianness before and after
3440 2008-06-27 Jonathan Larmour <jifl@eCosCentric.com>
3442 * remote.c (remote_insert_breakpoint): Ensure that if Z0
3443 unsupported and we fall back to memory_insert_breakpoint, we
3444 use the unmodified requested address.
3446 2008-06-27 Joel Brobecker <brobecker@adacore.com>
3448 * dwarf2read.c (read_attribute_value): Issue a complaint when
3449 adjusting size attribute values of 0xffffffff as zero.
3451 2008-06-27 Joseph Myers <joseph@codesourcery.com>
3453 * i386-tdep.c (i386_16_byte_align_p): New.
3454 (i386_push_dummy_call): Determine stack space required for
3455 arguments going forwards allowing for 16-byte alignment, then push
3456 arguments going forwards.
3458 2008-06-27 Pedro Alves <pedro@codesourcery.com>
3460 * infrun.c (start_remote): Don't clear thread list here.
3461 * monitor.c (monitor_open): Include "gdbthread.h". Clear thread
3463 * remote.c (record_currthread): Upgrade the main thread and its
3464 entry in the thread list if this is the first time we hear about
3466 (remote_thread_alive): Consider magic_null_ptid or a ptid without
3467 a tid member always alive.
3468 (remote_find_new_threads): Don't update the main thread here.
3469 (remote_start_remote): Clear thread list here. Always add the
3471 (extended_remote_attach_1): Add the main thread here.
3472 (extended_remote_mourn_1): Re-add the main thread here.
3473 (extended_remote_create_inferior_1): Add a main thread.
3475 * Makefile.in (monitor.o): Depend on $(gdbthread_h).
3477 2008-06-27 Pedro Alves <pedro@codesourcery.com>
3479 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
3481 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
3483 (general_thread, continue_thread): Change type to ptid_t.
3484 (record_currthread): Take a ptid_t parameter instead of an
3486 (MAGIC_NULL_PID): Delete.
3487 (set_thread): Take a ptid_t parameter and adjust.
3488 (set_general_thread, set_continue_thread): New.
3489 (remote_thread_alive, remote_newthread_step)
3490 (remote_current_thread, remote_find_new_threads)
3491 (remote_threads_info, remote_start_remote, remote_vcont_resume)
3492 (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
3493 (threadalive_test, remote_pid_to_str)
3494 (remote_get_thread_local_address): Adjust.
3495 (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
3496 and any_thread_ptid.
3498 2008-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3500 * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
3501 * configure: Regenerated.
3503 2008-06-26 Joel Brobecker <brobecker@adacore.com>
3505 * dwarf2read.c (read_attribute_value): Treat size attribute
3506 values of 0xffffffff as if the attribute value was zero.
3508 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
3510 * linux-nat.c: Add description of overall logic.
3512 2008-06-26 Daniel Jacobowitz <dan@codesourcery.com>
3514 * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
3515 (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
3516 all dependencies on $(gdb_stdint_h).
3517 (distclean): Do not delete gdb_stdint.h.
3518 * acinclude.m4: Do not use stdint.m4.
3519 * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
3520 uintptr_t, and gdb_stdint.h.
3521 * defs.h: Include <stdint.h>.
3522 * gdb_thread_db.h: Assume stdint.h is already included.
3523 * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
3524 rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
3525 include gdb_stdint.h.
3526 * configure, config.in: Regenerate.
3528 2008-06-26 Joseph Myers <joseph@codesourcery.com>
3530 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
3531 decimal floating-point values in GPRs for soft-float.
3532 (do_ppc_sysv_return_value): Handle returning decimal
3533 floating-point values in GPRs for soft-float.
3535 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
3537 * target.c (target_read_until_error): New.
3538 * target.h (target_read_until_error): Declare.
3539 * mi/mi-main.c (mi_cmd_data_read_memory): Use
3540 target_read_until_error.
3542 2008-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3544 Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
3545 * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
3546 after the DECFLOAT detection to fix a memory leak. Remove the
3547 redundant NUM initialization. Protect the DECFLOAT detection memory
3548 access before the P block. Restore the P memory content for the
3551 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
3553 Kill the return value for all MI command functions.
3554 * mi/mi-cmds.h (enum mi_cmd_result): Remove.
3555 (mi_cmd_argv_ftype): Change return type to void.
3557 * mi/mi-main.c: Adjust all function that implement
3558 MI commands to return nothing.
3559 (struct captured_mi_execute_command_actions):
3560 Remove the rc field.
3561 (mi_cmd_execute): Return nothing.
3562 (mi_execute_async_cli_command): Return nothing.
3563 (mi_cmd_exec_interrupt): Don't print ^done here.
3564 (mi_cmd_target_select): Don't print ^connected here.
3565 (captured_mi_execute_command): Don't check for MI_CMD_DONE.
3566 Special-case -target-select and output ^connected, not ^done.
3568 * mi/mi-cmd-break.c: Adjust.
3569 * mi/mi-cmd-disas.c: Adjust.
3570 * mi/mi-cmd-env.c: Adjust.
3571 * mi/mi-cmd-file.c: Adjust.
3572 * mi/mi-cmd-stack.c: Adjust.
3573 * mi/mi-cmd-target.c: Adjust.
3574 * mi/mi-cmd-var.c: Adjust.
3575 * mi/mi-interp.c: Adjust.
3576 * mi/mi-symbol-cmds.c: Adjust.
3578 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
3580 Emit ^running via observer.
3581 * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
3583 (mi_on_resume): Print ^running if not previously output.
3584 * mi/mi-main.c (running_result_record_printed): New.
3585 (captured_mi_execute_command): Reset
3586 running_result_record_printed. Use running_result_record_printed
3587 to decide if we should skip ^done.
3588 (mi_execute_async_cli_command): Don't print ^running here.
3589 * mi/mi-main.h (current_token, running_result_record_printed):
3592 2008-06-24 Michael Snyder <msnyder@specifix.com>
3594 * infrun.c (_initialize_infrun): White space and typo fix.
3596 2008-06-23 Christopher Faylor <me.gdb.changelog@cgf.cx>
3598 * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
3599 (do_initial_win32_stuff): Fix problem with inability to set breakpoints
3600 when first loading DLL with "dll" command.
3602 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3604 * gnu-nat.c (proc_string): Use capital T for "Thread".
3606 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3608 * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
3610 2008-06-18 Joel Brobecker <brobecker@adacore.com>
3612 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
3613 the target cannot run.
3615 2008-06-18 Joel Brobecker <brobecker@adacore.com>
3617 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
3618 we're attaching to a running process.
3620 2008-06-18 Pierre Muller <muller@ics.u-strasbg.fr>
3622 * win32-nat.c (handle_load_dll): Give dll name and load address
3623 if debug_events is on.
3624 (handle_unload_dll): Likewise.
3626 2008-06-14 Vladimir Prus <vladimir@codesourcery.com>
3628 Don't suppress *running when doing finish.
3629 * infcall.c (call_function_by_hand): Set both
3630 suppress_resume_observer and suppress_stop_observer.
3631 * infcmd.c (suppress_run_stop_observers): Split into...
3632 (suppress_resume_observer, suppress_stop_observer): ...those.
3633 (finish_command_continuation): Clear suppress_stop_observer.
3634 (finish_command): Set suppress_stop_observer.
3635 * inferior.h (suppress_run_stop_observers): Split into...
3636 (suppress_resume_observer, suppress_stop_observer): ...those.
3637 * infrun.c (normal_stop): Check for suppress_stop_observer.
3638 * thread.c (set_running): Check for suppress_resume_observer.
3640 2008-06-12 Pedro Alves <pedro_alves@portugalmail.pt>
3641 Pierre Muller <muller@ics.u-strasbg.fr>
3643 * gdbarch.sh (gdbarch_skip_main_prologue): New.
3644 * gdbarch.h, gdbarch.c: Regenerate.
3645 * i386-tdep.h (i386_skip_main_prologue): Declare.
3646 * i386-tdep.c (i386_skip_main_prologue): New.
3647 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
3648 i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
3649 * symtab.c (find_function_start_sal): When pc points at the "main"
3650 function, call gdbarch_skip_main_prologue.
3652 2008-06-11 Daniel Jacobowitz <dan@codesourcery.com>
3654 * value.c (value_primitive_field): Fetch lazy register values.
3656 2008-06-11 Pedro Alves <pedro@codesourcery.com>
3658 * NEWS: Mention support removal of undocumented S AA p PID stop
3661 * remote.c (remote_wait): Remove undocumented S AA p PID support.
3663 2008-06-10 Stan Shebs <stan@codesourcery.com>
3665 * MAINTAINERS: Update my affiliation and address.
3667 2008-06-10 Andreas Schwab <schwab@suse.de>
3669 * top.c (print_gdb_version): Don't print final newline.
3671 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
3674 * Makefile.in: Update dependencies.
3675 * gdbthread.h (struct thread_info): New field
3677 (set_running, is_running): New.
3678 * thread.c (set_running, is_running): New.
3679 * inferior.h (suppress_normal_stop_observer): Rename to...
3680 (suppress_run_stop_observers): ..this.
3681 * infcmd.c (suppress_normal_stop_observer): Rename to...
3682 (suppress_run_stop_observers): ..this.
3683 (finish_command_continuation, finish_command): Adjust.
3684 * infcall.c (call_function_by_hand): Adjust.
3685 * infrun.c (normal_stop): Call set_running.
3686 * target.c (target_resume): New. Call set_running.
3687 * target.h (target_resume): Convert from macro to
3690 * mi/mi-interp.c (mi_on_resume): New.
3691 (mi_interpreter_init): Register mi_on_resume.
3693 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
3695 Use observers to report stop events in MI.
3696 * mi/mi-interp.c (mi_on_normal_stop): New.
3697 (mi_interpreter_init): Register mi_on_normal_stop.
3698 (mi_interpreter_exec_continuation): Remove.
3699 (mi_cmd_interpreter_exec): Don't register the above.
3700 * mi/mi-main.c (captured_mi_execute_command): Don't care
3701 about sync_execution.
3702 (mi_execute_async_cli_command): Don't install continuation. Don't
3704 (mi_exec_async_cli_cmd_continuation): Remove.
3706 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
3708 Suppress normal stop observer when it's problematic.
3709 * inferior.h (suppress_normal_stop_observer): New.
3710 * infcall.c (call_function_by_hand): Disable stop events when
3711 doing function calls.
3712 * infmcd.c (suppress_normal_stop_observer): New.
3713 (finish_command_continuation): Call normal_stop observer
3715 (finish_command): Disable stop events inside proceed.
3716 * infrun.c (normal_stop): Don't call normal stop observer if
3717 suppressed of if multi-step is in progress.
3719 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
3722 * infrun.c (finish_command): Don't pass cleanup
3724 (finish_command_continuation): Don't grab cleanup from
3725 the passed data, as we don't use, and cannot, use it anyway.
3727 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
3729 Introduce common cleanup for restoring integers.
3730 * defs.h (make_cleanup_restore_integer): New declaration.
3731 (struct cleanup): New field free_arg.
3732 (make_my_cleanup_2): New.
3733 * utils.c (restore_integer_closure, restore_integer)
3734 (make_cleanup_restore_integer): New.
3735 (make_my_cleanup): Initialize the free_arg field and
3736 renamed to make_my_cleanup_2.
3737 (do_my_cleanups): Call free_arg.
3738 (discard_cleanups): Call free_arg.
3739 * breakpoint.c (restore_always_inserted_mode): Remove.
3740 (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
3742 2008-06-09 Doug Evans <dje@google.com>
3744 * remote.c (remote_wait): Include beginning of malformed packet
3747 2008-06-09 Tom Tromey <tromey@redhat.com>
3749 * completer.c (complete_line): Don't special-case
3750 expression_completer.
3751 (expression_completer): Only pass last word to
3753 * c-exp.y (yylex): Check 'token', not 'operator'.
3755 2008-06-09 Daniel Jacobowitz <dan@codesourcery.com>
3757 * configure.ac (build_warnings): Add -Wno-format for mingw.
3758 * configure: Regenerated.
3760 2008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
3762 * NEWS: Make indentation consistent. Move exec tracing entry out
3763 of remote packet list.
3765 2008-06-06 Tom Tromey <tromey@redhat.com>
3767 * value.h (evaluate_subexpression_type, extract_field_op):
3769 * printcmd.c (_initialize_printcmd): Use expression_completer for
3770 'p', 'inspect', 'call'.
3771 * parser-defs.h (parse_field_expression): Declare.
3772 * parse.c: Include exceptions.h.
3773 (in_parse_field, expout_last_struct): New globals.
3774 (mark_struct_expression): New function.
3775 (prefixify_expression): Return int.
3776 (prefixify_subexp): Return int. Use expout_last_struct.
3777 (parse_exp_1): Update.
3778 (parse_exp_in_context): Add 'out_subexp' argument. Handle
3780 (parse_field_expression): New function.
3781 * expression.h (parse_field_expression): Declare.
3782 (in_parse_field): Likewise.
3783 * eval.c (evaluate_subexpression_type): New function.
3784 (extract_field_op): Likewise.
3785 * completer.h (expression_completer): Declare.
3786 * completer.c (expression_completer): New function.
3787 (count_struct_fields, add_struct_fields): New functions.
3788 * c-exp.y (yyparse): Redefine.
3789 (COMPLETE): New token.
3790 (exp): New productions.
3791 (saw_name_at_eof, last_was_structop): New globals.
3792 (yylex): Return COMPLETE when needed. Recognize in_parse_field.
3793 (c_parse): New function.
3794 * breakpoint.c (_initialize_breakpoint): Use expression_completer
3795 for watch, awatch, and rwatch.
3796 * Makefile.in (parse.o): Depend on exceptions_h.
3798 2008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3801 * gdb/valopts.c (find_overload_match): Handle references
3804 2008-06-06 Paul N. Hilfinger <hilfinger@adacore.com>
3806 * ada-lang.c (ada_value_assign): Correct big-endian case to take into
3807 account the bitsize of the 'from' operand.
3809 2008-06-06 Pedro Alves <pedro@codesourcery.com>
3811 * annotate.h (annotate_thread_changed): Declare.
3813 2008-06-06 Nick Roberts <nickrob@snap.net.nz>
3815 * annotate.c (annotate_thread_changed): New function.
3816 * thread.c (thread_command) : Use it.
3817 * infrun.c (normal_stop): Use it.
3819 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
3820 Nathan Sidwell <nathan@codesourcery.com>
3821 Joseph Myers <joseph@codesourcery.com>
3823 * acinclude.m4: Include ../config/acx.m4.
3824 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
3825 * configure, config.in: Regenerate.
3826 * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
3828 * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
3830 2008-06-05 Pedro Alves <pedro@codesourcery.com>
3832 Replace 'target async' by 'maintenance set remote-async' and
3833 'target remote' combination.
3835 * remote.c (remote_async_wait): Merge into remote_wait, and
3837 (remote_async_permitted, remote_async_permitted_set): New
3839 (set_maintenance_remote_async_permitted)
3840 (show_maintenance_remote_async_permitted): New functions.
3841 (remote_async_ops, extended_async_remote_ops): Delete.
3842 (remote_async_open, extended_remote_async_open): Delete.
3843 (remote_open_1): Drop async_p parameter. Update callers. Replace
3844 async_p with remote_async_permitted checks.
3845 (extended_async_remote_attach): Delete.
3846 (remote_resume, remote_async_resume): Merge and leave remote_resume.
3847 (remote_async_terminal_inferior): Rename to...
3848 (remote_terminal_inferior): ... this, and add
3849 remote_async_termitted check.
3850 (remote_async_terminal_ours): Rename to...
3851 (remote_terminal_ours): ... this, and add remote_async_termitted
3853 (remote_wait, remote_async_wait): Merge and leave remote_wait
3855 (remote_kill, remote_async_kill): Merge and leave remote_kill
3857 (remote_async_mourn, extended_async_remote_mourn): Delete.
3858 (extended_remote_create_inferior_1): Drop async_p parameter.
3859 Update callers. Always use extended_remote_ops.
3860 (extended_remote_async_create_inferior): Delete.
3861 (remote_return_zero): Delete.
3862 (init_remote_ops): Register remote_can_async_p, remote_async,
3863 remote_async_mask, remote_terminal_inferior and
3864 remote_terminal_ours.
3865 (remote_can_async_p, remote_is_async_p): Check for
3866 remote_async_permitted.
3867 (init_remote_async_ops, init_extended_async_remote_ops): Remove.
3868 (set_remote_cmd): Don't add async and extended-async targets.
3869 (_initialize_remote): Add set/show remote-async maintenance
3872 2008-06-05 Pedro Alves <pedro@codesourcery.com>
3874 * remote.c (kill_kludge): Delete.
3875 (remote_wait, remote_async_wait): Don't set it.
3876 (remote_kill, remote_async_kill): Don't do anything with it.
3878 2008-06-05 Pedro Alves <pedro@codesourcery.com>
3880 * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
3882 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
3884 * bcache.c (bcache_data): Call deprecated_bcache_added function.
3885 (deprecated_bcache_added): New function name. Body of function
3886 bcache_data is used here with the addition of 'added' argument.
3887 * bcache.h (deprecated_bcache_added): New function.
3888 * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
3889 work from add_psymbol_to_list - initialises partial symbol and stashes
3890 it in objfile's cache.
3891 (append_psymbol_to_list): New helper function, takes other part of
3892 work from add_psymbol_to_list - adds partial symbol to the given list.
3893 (add_psymbol_to_list): Call helper functions instead of doing work
3894 here. If adding to global list, do not duplicate partial symbols in the
3897 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
3899 * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
3900 'exception caught|thrown' message.
3902 2008-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3904 * Makefile.in: Update dependencies.
3905 * dwarf2expr.c: New include "gdb_assert.h".
3906 (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
3907 (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
3908 (execute_stack_op): Error out on too large RECURSION_DEPTH.
3909 Increase/decrease RECURSION_DEPTH around the function.
3911 2008-06-05 Daniel Jacobowitz <dan@codesourcery.com>
3913 * remote.c (get_offsets): Handle a single segment.
3914 * symfile.c (symfile_map_offsets_to_segments): Allow more bases
3917 2008-06-03 Daniel Jacobowitz <dan@codesourcery.com>
3919 * solib-svr4.c (struct lm_info): Add lm_addr.
3920 (main_lm_addr): New.
3921 (svr4_default_sos): Set lm_addr.
3922 (svr4_current_sos): Set lm_addr and main_lm_addr.
3923 (svr4_fetch_objfile_link_map): Rewrite.
3924 (svr4_clear_solib): Clear main_lm_addr.
3926 2008-06-03 Michael Snyder <msnyder@redhat.com>
3927 Joseph Myers <joseph@codesourcery.com>
3929 * mips-tdep.c (mips_eabi_return_value): Replace stub that always
3930 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
3932 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
3934 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
3936 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
3938 * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
3940 2008-06-01 Joel Brobecker <brobecker@adacore.com>
3942 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
3943 treat pointers in data space as function descriptors if the
3944 target address is also in the data space.
3946 2008-05-30 Joel Brobecker <brobecker@adacore.com>
3948 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
3949 the trad-frame register value for the SP register.
3951 2008-05-29 Mark Kettenis <kettenis@gnu.org>
3953 * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
3955 2008-05-28 Joel Brobecker <brobecker@adacore.com>
3957 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
3958 that identifies function descriptors outside of the .opd section.
3960 2008-05-28 Aleksandar Ristovski <aristovski@qnx.com>
3962 * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
3963 temporary catchpoints. In MI add missing fields 'reason', 'disp',
3965 (print_mention_exception_catchpoint): Add 'Temporary' for temporary
3967 (handle_gnu_v3_exceptions): Use tempflag.
3969 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
3971 Refactor varobj_update interface.
3972 * varobj.c (varobj_update): Report changes as vector. Also
3973 return not just a list of varobj, but a list of special structures
3974 that tell what exactly has changed.
3975 * varobj.h (enum varobj_update_error): Rename to
3976 varobj_scope_status.
3977 (struct varobj_update_result_t): New.
3978 (varobj_update): Adjust prototype.
3979 * mi/mi-cmd-var.c: Adjust for changes.
3981 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
3983 * varobj.c (varobj_update): Fix comment typo.
3986 2008-05-26 Joel Brobecker <brobecker@adacore.com>
3988 Set the symtab field of symbols read from ECOFF debugging entries.
3989 * mdebugread.c (add_symbol): Add new parameter symtab.
3990 (parse_symbol): Update calls to add_symbol throughout.
3992 2008-05-27 Andreas Schwab <schwab@suse.de>
3994 * symtab.h (enum address_class): Remove LOC_REGPARM and
3996 (struct symbol): Add is_argument.
3997 (SYMBOL_IS_ARGUMENT): Define.
3999 * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
4000 * buildsym.c (finish_block): Likewise.
4001 * stack.c (print_frame_args, print_block_frame_locals)
4002 (print_frame_arg_vars): Likewise.
4003 * symtab.c (lookup_block_symbol): Likewise.
4004 * tracepoint.c (add_local_symbols): Likewise.
4005 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
4007 * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
4008 * dwarf2read.c (new_symbol): Likewise.
4009 * mdebugread.c (parse_symbol): Likewise.
4010 * stabsread.c (define_symbol): Likewise.
4012 * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
4013 and LOC_COMPUTED_ARG.
4014 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
4015 * ax-gdb.c (gen_var_ref): Likewise.
4016 * eval.c (evaluate_subexp_for_address): Likewise.
4017 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
4018 * m2-exp.y (yylex): Likewise.
4019 * printcmd.c (address_info): Likewise.
4020 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
4021 * tracepoint.c (collect_symbol, scope_info): Likewise.
4023 2008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
4025 * gdbarch.sh: Added new gdbarch struct
4026 core_regset_sections.
4027 * gdbarch.c: Refreshed.
4028 * gdbarch.h: Refreshed.
4029 * regset.h (core_regset_section): Declared.
4030 * linux-nat.c (linux_nat_do_thread_registers): Added
4031 support for the new gdbarch struct core_regset_sections.
4032 * utils.c (host_address_to_string): New function.
4033 * defs.h (host_address_to_string): New prototype.
4034 * i386-linux-tdep.c (i386_regset_rections): New register
4035 sections list for i386.
4036 (i386_linux_init_abi): Initialized new gdbarch struct
4037 core_regset_sections.
4038 * Makefile.in: Updated to reflect dependency changes.
4039 * ppc-linux-tdep.c (ppc_regset_sections): Register
4040 sections list for ppc.
4041 (ppc_linux_init_abi): Initialized new gdbarch struct
4042 core_regset_sections
4044 2008-05-24 Andreas Schwab <schwab@suse.de>
4046 * linespec.c (decode_objc): Save current language around call to
4049 2008-05-23 Joel Brobecker <brobecker@adacore.com>
4051 * valprint.h (get_array_bounds): Renames get_array_low_bound.
4052 * valprint.c (get_array_bounds): Renames get_array_low_bound.
4053 Return the proper bound value if the array index type is an
4054 enumerated type. Compute the high bound if requested.
4055 (val_print_array_elements): Handle the case when the array
4056 element has a null size.
4057 * ada-valprint.c (print_optional_low_bound): Add handling
4058 for empty arrays or arrays of zero-size elements.
4059 (ada_val_print_array): New function, extracted out from
4060 ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
4061 handle empty arrays and arrays of zero-size elements.
4062 (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
4063 code by call to ada_val_print_array.
4064 (ada_value_print): Remove handling of null array. The handling
4065 was incomplete and is now better handled by ada_val_print_array.
4067 2008-05-23 Markus Deuling <deuling@de.ibm.com>
4069 * annotate.c (annotate_source, annotate_frame_begin): Replace
4070 deprecated_print_address_numeric with paddress.
4071 * cli/cli-cmds.c (list_command, edit_command): Likewise.
4072 * tui/tui-stack.c (tui_make_status_line): Likewise.
4074 * defs.h (deprecated_print_address_numeric): Remove.
4075 * printcmd.c (deprecated_print_address_numeric): Remove.
4076 * maint.c (maint_print_section_info): Fix comment.
4078 2008-05-23 Markus Deuling <deuling@de.ibm.com>
4080 * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
4081 print_binary_chars, print_char_chars): Add byte_order parameter and
4082 replace gdbarch_byte_order.
4083 (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
4084 expressions and remove them. Remove unused TWO_TO_FOURTH.
4085 (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
4086 endianness. Update call to print_hex_chars.
4087 * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
4088 print_binary_chars, print_char_chars): Add byte_order parameter.
4089 * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
4090 get at the endianness. Update print_*_char calls to use byte_order.
4092 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
4094 * symtab.h (struct symbol): Make "aux_value" member a void pointer
4096 (SYMBOL_LOCATION_BATON): Update.
4098 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
4100 * symtab.h (enum address_class): Remove LOC_BASEREG and
4102 (struct symbol): Remove "basereg" member of "aux_value" union.
4103 (SYMBOL_BASEREG): Remove.
4105 * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
4107 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
4108 (ada_add_block_symbols): Likewise.
4109 * ax-gdb.c (gen_var_ref): Likewise.
4110 * buildsym.c (finish_block): Likewise.
4111 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
4112 * m2-exp.y (yylex): Likewise.
4113 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
4114 * printcmd.c (address_info): Likewise.
4115 * stack.c (print_frame_args, print_block_frame_locals): Likewise.
4116 (print_frame_arg_vars): Likewise.
4117 * symmisc.c (print_symbol): Likewise.
4118 * symtab.c (lookup_block_symbol): Likewise.
4119 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
4120 (scope_info): Likewise.
4122 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
4124 * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
4126 * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
4127 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
4128 (ada_add_block_symbols): Likewise.
4129 * ax-gdb.c (gen_var_ref): Likewise.
4130 * buildsyms.c (finish_block): Likewise.
4131 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
4132 * m2-exp.y (yylex): Likewise.
4133 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
4134 * printcmd.c (address_info): Likewise.
4135 * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
4136 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
4137 * symtab.c (lookup_block_symbol): Likewise.
4138 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
4139 (scope_info): Likewise.
4141 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
4143 * symtab.h (enum address_class): Remove LOC_INDIRECT and
4144 LOC_HP_THREAD_LOCAL_STATIC.
4146 * findvar.c (symbol_read_needs_frame, read_var_value): Do not
4147 handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
4148 (read_var_value): Likewise.
4149 * buildsym.c (finish_block): Likewise.
4150 * objfiles.c (objfile_relocate): Likewise.
4151 * printcmd.c (address_info): Likewise.
4152 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
4153 * tracepoint.c (scope_info): Likewise.
4155 2008-05-21 Markus Deuling <deuling@de.ibm.com>
4156 Maxim Grigoriev <maxim2405@gmail.com>
4158 * xtensa-tdep.c (xtensa_read_register): Remove.
4159 (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
4160 argument litbase to call0_frame_cache().
4161 (call0_track_op, call0_analyze_prologue)
4162 (call0_frame_cache): Use extra argument litbase.
4164 2008-05-21 Joel Brobecker <brobecker@adacore.com>
4166 * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
4168 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
4170 * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
4172 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
4174 * alpha-mdebug-tdep.c: Include "trad-frame.h".
4175 (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
4176 struct trad_frame_saved_reg *.
4177 (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
4178 trad_frame_alloc_saved_regs. Update accesses. Record previous
4179 value of SP as being vfp.
4180 (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
4181 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
4183 2008-05-21 Markus Deuling <deuling@de.ibm.com>
4185 * score-tdep.c (score_print_insn): Get the current endianess from
4186 disassemble_info instead of gdbarch_byte_order.
4188 2008-05-21 Pedro Alves <pedro@codesourcery.com>
4190 * frame.c (get_prev_frame_1): Build frame id before setting
4191 this_frame->prev_p, not after.
4193 2008-05-21 Nick Roberts <nickrob@snap.net.nz>
4195 * annotate.c (annotate_new_thread): New function for new-thread
4197 * annotate.h: (annotate_new_thread): New extern.
4198 * thread.c (add_thread_with_info): Use it.
4199 * Makefile.in (thread.o): Add dependency on annotate.h.
4201 2008-05-20 Joel Brobecker <brobecker@adacore.com>
4203 * win32-nat.c (win32_wait): Block the control-c event while
4204 waiting for a debug event.
4206 2008-05-19 Pedro Alves <pedro@codesourcery.com>
4208 * symtab.h (lookup_symbol_in_language): Update comment.
4209 * symtab.c (lookup_symbol_aux_block): Update comment.
4210 * ada-lang.c (ada_lookup_symbol_list): Update comment.
4212 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
4214 * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
4215 (lookup_symbol): Likewise.
4216 * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
4217 (lookup_symbol): Likewise.
4218 (search_symbols): Update.
4220 * linespec.c (find_methods, collect_methods): Update.
4221 (add_matching_methods, add_constructors): Update.
4222 (decode_compound, decode_dollar, decode_variable): Update.
4223 (lookup_prefix_sym): Update.
4225 (symbol_found): Remove SYM_SYMTAB parameter.
4226 Use SYMBOL_SYMTAB (sym) instead.
4228 * gdbtypes.c (lookup_typename): Update.
4229 (lookup_struct, lookup_union, lookup_enum): Update.
4230 (lookup_template_type): Update.
4231 (check_typedef): Update.
4232 * language.c (lang_bool_type): Update.
4233 * mdebugread.c (parse_procedure): Update.
4234 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4235 * parse.c (write_dollar_variable): Update.
4236 * printcmd.c (address_info): Update.
4237 * source.c (select_source_symtab): Update.
4238 * stack.c (print_frame_args, print_frame_arg_vars): Update.
4239 * valops.c (find_function_in_inferior): Update.
4240 (value_struct_elt_for_reference): Update.
4241 * value.c (value_static_field, value_fn_field): Update.
4243 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4244 * arm-tdep.c (arm_skip_prologue): Update.
4245 * mt-tdep.c (mt_skip_prologue): Update.
4246 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
4248 * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
4249 * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
4250 (add_defn_to_vec): Likewise.
4251 (ada_add_block_symbols): Likewise.
4252 (lookup_cached_symbol, cache_symbol): Likewise.
4253 (standard_lookup): Update.
4254 (ada_lookup_symbol_list): Update.
4256 * c-valprint.c (c_val_print): Update.
4257 * cp-support.c (cp_lookup_rtti_type): Update.
4258 * jv-lang.c (java_lookup_class, get_java_object_type): Update.
4259 * objc-lang.c (lookup_struct_typedef, find_imps): Update.
4260 * p-valprint.c (pascal_val_print): Update.
4261 * scm-lang.c (scm_lookup_name): Update.
4267 * objc-exp.y: Update.
4270 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
4272 * language.h (struct language_defn): Remove SYMTAB parameter from
4273 la_lookup_symbol_nonlocal callback function pointer.
4275 * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
4276 (ada_lookup_encoded_symbol): Likewise.
4277 * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
4278 Always call fixup_symbol_section.
4279 (ada_lookup_symbol): Remove SYMTAB parameter.
4280 (ada_lookup_symbol_nonlocal): Likewise.
4281 * ada-exp.y (write_object_renaming): Update.
4282 (find_primitive_type): Likewise.
4284 * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
4285 (cp_lookup_symbol_namespace): Likewise.
4286 * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
4287 (lookup_symbol_file): Likewise.
4288 (lookup_possible_namespace_symbol): Likewise.
4289 (cp_lookup_symbol_nonlocal): Likewise.
4290 (cp_lookup_symbol_namespace): Likewise.
4291 (cp_lookup_nested_type): Update.
4293 * scm-valprint.c (scm_inferior_print): Update.
4294 * valops.c (value_maybe_namespace_elt): Update.
4296 * solist.h (struct target_so_ops): Remove SYMTAB parameter from
4297 lookup_lib_global_symbol callback function pointer.
4298 (solib_global_lookup): Remove SYMTAB parameter.
4299 * solib.c (solib_global_lookup): Remove SYMTAB parameter.
4300 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
4302 * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
4303 (lookup_symbol_static): Likewise.
4304 (lookup_symbol_global): Likewise.
4305 (lookup_symbol_aux_block): Likewise.
4306 (lookup_global_symbol_from_objfile): Likewise.
4307 * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
4308 (lookup_symbol_aux_local): Likewise.
4309 (lookup_symbol_aux_block): Likewise.
4310 (lookup_symbol_aux_symtabs): Likewise.
4311 (lookup_symbol_aux_psymtabs): Likewise.
4312 (lookup_global_symbol_from_objfile): Likewise.
4313 (basic_lookup_symbol_nonlocal): Likewise.
4314 (lookup_symbol_static): Likewise.
4315 (lookup_symbol_global): Likewise.
4317 (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
4319 2008-05-17 Pedro Alves <pedro@codesourcery.com>
4321 * remote.c (init_extended_remote_ops): Fix typo.
4323 2008-05-16 Pedro Alves <pedro@codesourcery.com>
4325 * NEWS: Mention new DICOS x86 target configuration.
4327 2008-05-16 Pedro Alves <pedro@codesourcery.com>
4328 Ulrich Weigand <uweigand@de.ibm.com>
4330 * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
4331 * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
4333 * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
4334 use it instead of ginfo->value.address. Look up minimal symbol by
4335 address and name. Assume OBJFILE is non-NULL.
4336 (fixup_symbol_section): Ensure we always have an objfile to look
4337 into. Extract and pass to fixup_section the symbol's address that
4338 will match the minimal symbol's address.
4339 (fixup_psymbol_section): Likewise.
4341 (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
4342 overlays and the addrmap returned the wrong section.
4344 * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
4345 calling fixup_symbol_section.
4347 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
4349 * minsyms.c: Include "target.h".
4350 (find_solib_trampoline_target): Handle minimal symbols pointing
4351 to function descriptors as well.
4352 * Makefile.in (minsyms.o): Update dependencies.
4354 * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
4355 (ppc64_standard_linkage1): ... this. Fix optional instructions.
4356 (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
4357 (PPC64_STANDARD_LINKAGE1_LEN): ... this.
4358 (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
4359 (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
4360 (ppc64_standard_linkage_target): Rename to ...
4361 (ppc64_standard_linkage1_target): ... this.
4362 (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
4363 (ppc64_skip_trampoline_code): Support three variants of standard
4364 linkage stubs. Call find_solib_trampoline_target to handle
4367 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
4369 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
4370 ppc64_sysv_abi_adjust_breakpoint_address.
4371 * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
4372 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
4374 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
4376 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
4377 (ppc_linux_init_abi): Install find_solib_trampoline_target instead
4378 of ppc_linux_skip_trampoline_code.
4380 2008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
4382 * gdbarch.sh: Delete dwarf_reg_to_regnum.
4383 * gdbarch.c, gdbarch.h: Regenerated.
4384 * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
4385 hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
4386 s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
4388 2008-05-15 Pedro Alves <pedro@codesourcery.com>
4390 * linux-nat.c (trap_ptid): Delete.
4391 (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
4393 * linux-thread-db.c (thread_db_wait): Adjust.
4395 2008-05-15 Joel Brobecker <brobecker@adacore.com>
4397 * linespec.c (decode_line_1): Fix a couple of comments.
4399 2008-05-15 Alan Modra <amodra@bigpond.net.au>
4401 * dbxread.c: Formatting.
4402 (INTERNALIZE_SYMBOL): Init n_other.
4403 (set_namestring): Take pointer to nlist arg rather than struct
4404 copy. Update all callers.
4406 2008-05-15 Andreas Schwab <schwab@suse.de>
4408 * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
4409 (dwarf2read.o): Add $(addrmap_h).
4411 2008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
4413 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
4414 (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
4415 to handle ppc32 PLT entries.
4416 (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
4419 2008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
4421 * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
4422 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
4423 lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
4424 (lookup_minimal_symbol_by_pc_section): Use
4425 lookup_minimal_symbol_by_pc_section_1.
4426 (lookup_solib_trampoline_symbol_by_pc): Likewise.
4428 2008-05-13 Joel Brobecker <brobecker@adacore.com>
4430 * findcmd.c: Add #include "gdb_stdint.h".
4431 * Makefile.in (findcmd.o): Update dependencies.
4433 2008-05-11 David S. Miller <davem@davemloft.net>
4435 * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
4436 long double size override, Linux does use 128-bit now.
4438 * sparc-linux-tdep.c (PSR_SYSCALL): Define.
4439 (sparc_linux_write_pc): New function.
4440 (sparc32_linux_init_abi): Register it.
4441 * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
4442 (sparc64_linux_write_pc): New function.
4443 (sparc64_linux_init_abi): Register it.
4445 * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
4446 dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
4448 2008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
4450 * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
4451 and info.tdep_info before calling gdbarch_init_osabi.
4453 2008-05-09 Joel Brobecker <brobecker@adacore.com>
4455 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
4456 the type of the right hand side of the assignment to the type
4457 of the left hand side if the left hand side is a convenience
4460 2008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
4462 * NEWS: Mention gdbserver bi-arch capability.
4464 2008-05-09 Doug Evans <dje@google.com>
4467 * NEWS: Document find command and qSearch:memory packet.
4468 * Makefile.in (SFILES): Add findcmd.c.
4469 (COMMON_OBJS): Add findcmd.o.
4470 (findcmd.o): New rule.
4471 * findcmd.c: New file.
4472 * target.h (target_ops): New member to_search_memory.
4473 (simple_search_memory): Declare.
4474 (target_search_memory): Declare.
4475 * target.c (simple_search_memory): New fn.
4476 (target_search_memory): New fn.
4477 * remote.c (PACKET_qSearch_memory): New packet kind.
4478 (remote_search_memory): New fn.
4479 (init_remote_ops): Init to_search_memory.
4480 (init_extended_remote_ops): Ditto.
4481 (_initialize_remote): Add qSearch:memory packet config command.
4483 2008-05-09 Eli Zaretskii <eliz@gnu.org>
4485 * thread.c (_initialize_thread): Don't use commas and periods in
4486 first line of doc string of "set/show print thread-events".
4488 2008-05-08 Joel Brobecker <brobecker@adacore.com>
4490 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
4491 Update for unwinder changes.
4493 2008-05-08 Joel Brobecker <brobecker@adacore.com>
4495 * frame.c (get_frame_base_address, get_frame_locals_address)
4496 (get_frame_args_address): Pass the correct frame when calling
4497 frame_base_find_by_frame.
4499 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
4501 * remote.c (extended_remote_attach_1): Call target_find_description.
4503 2008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
4505 * remote.c (extended_remote_create_inferior_1): Clean up
4506 before marking the target running.
4508 2008-05-08 Joel Brobecker <brobecker@adacore.com>
4510 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
4513 2008-05-07 Joel Brobecker <brobecker@adacore.com>
4515 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
4516 sparc64-sol2-tdep.c: Update for unwinder changes.
4518 2008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
4520 * cp-support.c (mangled_name_to_comp): Initialize storage.
4521 (unqualified_name_from_comp): Likewise.
4523 2008-05-07 Jie Zhang <jie.zhang@analog.com>
4525 * remote.c (remote_insert_breakpoint): Call get_remote_state
4526 after gdbarch_breakpoint_from_pc is called.
4527 (remote_insert_hw_breakpoint): Likewise.
4529 2008-05-06 Joel Brobecker <brobecker@adacore.com>
4531 * valprint.c (val_print): Add new language parameter and use it
4532 instead of using the current_language. Update calls to val_print
4534 (common_val_print): Add new langauge parameter and pass it to
4536 * value.h (struct language_defn): Add opaque declaration.
4537 (val_print, common_val_print): Update declarations.
4538 * stack.c (print_frame_args): Update call to common_val_print
4539 using the appropriate language.
4540 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
4541 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
4542 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
4543 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
4544 #include "language.h" if necessary.
4545 Update calls to val_print and common_val_print.
4546 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
4547 Update dependencies.
4549 2008-05-06 Joel Brobecker <brobecker@adacore.com>
4551 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
4552 pointing inside a non-executable section as function descriptors.
4554 2008-05-06 Pedro Alves <pedro@codesourcery.com>
4556 * inf-loop.c (inferior_event_handler): Run all continuations and
4557 print any language change before running the breakpoint commands.
4559 2008-05-06 Joel Brobecker <brobecker@adacore.com>
4561 * frame-unwind.c (frame_unwind_got_bytes): New function.
4562 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
4563 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
4564 for unwinder changes.
4566 2008-05-05 Doug Evans <dje@google.com>
4568 * NEWS: Mention new /m modifier for disassemble command.
4569 * cli/cli-cmds.c (print_disassembly): New function.
4570 (disassemble_current_function): New function
4571 (disassemble_command): Recognize /m modifier, print mixed
4573 (init_cli_cmds): Update disassemble help text.
4575 2008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
4577 * xtensa-tdep.c: Update for unwinder changes.
4579 2008-05-05 Andreas Schwab <schwab@suse.de>
4581 Update m68k port for unwinder changes.
4582 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
4583 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
4584 (m68k_frame_unwind): Use default_frame_sniffer.
4585 (m68k_frame_sniffer): Remove.
4586 (m68k_frame_base_address): Expect this_frame.
4587 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
4589 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
4590 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
4591 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
4592 parameter instead of pc value.
4593 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
4595 (m68k_linux_sigtramp_frame_this_id)
4596 (m68k_linux_sigtramp_frame_prev_register)
4597 (m68k_linux_sigtramp_frame_sniffer): Update signature.
4598 (m68k_linux_sigtramp_frame_unwind): Use
4599 m68k_linux_sigtramp_frame_sniffer.
4600 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
4602 * m68klinux-nat.c (store_register): Fix typo.
4604 2008-05-05 Pedro Alves <pedro@codesourcery.com>
4606 * infcmd.c (step_1): Put thread id on the stack to avoid possible
4609 2008-05-05 Luis Machado <luisgpm@br.ibm.com>
4611 * symfile.c (reread_symbols): Update objfile's entry point.
4613 2008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
4614 Joel Brobecker <brobecker@adacore.com>
4616 * ada-lang.c: Update throughout to use symbol_matches_domain
4617 instead of matching the symbol domain explictly.
4618 * dwarf2read.c (add_partial_symbol): Do not add new psym for
4619 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
4620 class as typedefs. See lookup_partial_symbol function.
4621 (new_symbol): Similar to add_partial_symbol, do not create
4622 symbol for the typedef. See lookup_block_symbol.
4623 * symtab.c (symbol_matches_domain): New function, takes care
4624 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
4625 (lookup_partial_symbol): Use symbol_matches_domain to see if the
4626 found psym domain matches the given domain.
4627 (lookup_block_symbol): Likewise.
4629 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
4631 * top.c (command_line_handler_continuation): Remove.
4632 (execute_command): Do not install the above.
4634 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
4636 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
4637 and catch all exceptions from it.
4638 * top.c (command_line_handler_continuation): Don't
4639 call bpstat_do_action here.
4641 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
4643 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
4644 (struct die_info): Remove type.
4645 (read_type_die, read_typedef, read_base_type, read_subrange_type)
4646 (read_structure_type, read_enumeration_type, read_array_type)
4647 (read_tag_pointer_type, read_tag_ptr_to_member_type)
4648 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
4649 (read_tag_string_type, read_subroutine_type, read_set_type)
4650 (read_unspecified_type): Delete prototypes. Remove check for
4651 already-loaded type. Return the new type.
4652 (set_die_type): Return the new type.
4653 (reset_die_and_siblings_types): Delete.
4654 (load_comp_unit, load_full_comp_unit): Set type_hash.
4655 (process_queue): Remove call to reset_die_and_siblings_types.
4656 (process_die): Do not read most types here. Use read_type_die
4658 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
4659 (quirk_gcc_member_function_pointer): Return the new type.
4660 (process_structure_scope, process_enumeration_scope): Use
4661 get_die_type and read the DIE's type.
4662 (read_full_die): Do not initialize die->type.
4663 (tag_type_to_type): Use read_type_die.
4664 (read_type_die): Check for already defined types. Return the
4666 (determine_prefix): Use get_die_type.
4667 (set_die_type): Return the type.
4668 (get_die_type): Take a CU argument. Check for no type_hash.
4670 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
4672 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
4675 2008-05-04 Pedro Alves <pedro@codesourcery.com>
4677 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
4678 and bp_longjmp_resume breakpoints.
4679 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
4681 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
4682 breakpoints. Create bp_longjmp breakpoints as momentary
4684 (enable_longjmp_breakpoint): Delete.
4685 (set_longjmp_breakpoint): New.
4686 (disable_longjmp_breakpoint): Delete.
4687 (delete_longjmp_breakpoint): New.
4688 (set_longjmp_resume_breakpoint): Delete.
4689 (set_momentary_breakpoint_at_pc): New.
4690 (breakpoint_re_set_one): Don't delete bp_longjmp and
4691 bp_longjmp_resume breakpoints.
4692 (breakpoint_re_set): Don't create longjmp and longjmp-resume
4695 * infrun.c (step_resume_breakpoint): Add comment.
4696 (struct execution_control_state): Delete handling_longjmp member.
4697 (init_execution_control_state). Don't clear handling_longjmp.
4698 (context_switch): Don't context switch handling_longjmp.
4699 (handle_inferior_event): If handling a bp_longjmp breakpoint,
4700 create a bp_longjmp_resume breakpoint, and set it as current
4701 step_resume_breakpoint, then step over the longjmp breakpoint. If
4702 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
4703 breakpoint, delete the longjmp-resume breakpoint, and stop
4705 (currently_stepping): Remove handling_longjmp from expression.
4706 (insert_step_resume_breakpoint_at_sal): Update comment.
4707 (insert_longjmp_resume_breakpoint): New.
4709 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
4710 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
4712 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
4713 (set_longjmp_resume_breakpoint): Delete declaration.
4715 * gdbthread.h (save_infrun_state): Remove handling_longjmp
4717 (load_infrun_state): Delete *handling_longjmp parameter.
4718 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
4720 (load_infrun_state): Delete *handling_longjmp parameter. Update
4723 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
4724 (delete_longjmp_breakpoint_cleanup): New.
4725 (step_1): Call set_longjmp_breakpoint instead of
4726 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
4727 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
4728 (step_1_continuation): Pass thread id in the continuation args to
4730 (step_once): Add thread parameter. Pass thread id the the
4733 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4735 Set CU BASE_ADDRESS already from partial DIEs.
4736 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
4737 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
4738 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
4739 from these variables if it was still unset.
4741 * Makefile.in: Update dependencies.
4742 * dwarf2read.c: Include "addrmap.h"
4743 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
4744 (dwarf2_ranges_read): New prototype.
4745 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
4746 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
4747 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
4748 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
4749 comment for it. Add the found ranges to RANGES_PST. New variable
4750 BASEADDR, initialize it the common way.
4751 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
4752 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
4753 HAS_RANGES_OFFSET for the later processing.
4754 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
4755 * symtab.c: Include "addrmap.h"
4756 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
4757 Move the psymtab locator into ...
4758 (find_pc_sect_psymtab_closer): ... a new function.
4760 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
4762 * arch-utils.c (gdbarch_update_p): Use default values for
4763 info.abfd and info.target_desc if they are NULL.
4764 (gdbarch_from_bfd): Remove assertion.
4765 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
4766 using the current target description.
4767 (gdbarch_info_fill): Do not use default values for info->abfd
4768 and info->target_desc.
4770 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4772 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
4774 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
4776 * inferior.h (read_pc_pid, write_pc_pid): Remove.
4777 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
4779 * regcache.c (read_pc_pid): Remove, replace by ...
4780 (regcache_read_pc): ... this function.
4781 (write_pc_pid): Remove, replace by ...
4782 (regcache_write_pc): ... this function.
4783 (read_pc, write_pc): Update.
4785 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
4786 write_pc_pid by regcache_read_pc and regcache_write_pc.
4787 (displaced_step_fixup): Likewise.
4788 (resume): Likewise. Use regcache arch instead of current_gdbarch.
4789 (prepare_to_proceed): Likewise.
4790 (proceed): Likewise.
4791 (adjust_pc_after_break): Likewise.
4792 (handle_inferior_event): Likewise.
4794 * linux-nat.c (cancel_breakpoint): Likewise.
4795 * linux-thread-db.c (check_event): Likewise.
4796 * aix-thread.c (aix_thread_wait): Likewise.
4797 * tracepoint.c (trace_dump_command): Likewise.
4799 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4801 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
4802 SYMBOL_LOCATION_BATON.
4804 2008-05-04 Vladimir Prus <vladimir@codesourcery.com>
4806 * target.h (struct target_ops): New field to_auxv_parse.
4807 * auxv.c (default_auxv_parse): New, renamed from previous
4809 (target_auxv_parse): Try to call target method. Fallback to
4810 default_auxv_parse if not found.
4811 * procfs.c (procfs_auxv_parse): New.
4812 (init_procfs_ops): On Solaris, in 64-bit mode, install
4815 2008-05-03 Adam Nemet <anemet@caviumnetworks.com>
4817 * symfile.c (add_symbol_file_command): Use paddress rather than
4818 hex_string to print the address.
4820 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
4822 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
4823 return the null frame ID to terminate the backtrace.
4825 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
4827 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
4828 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
4829 (SIG_FRAME_PC_OFFSET): Likewise.
4830 (SIG_FRAME_LR_OFFSET): Likewise.
4831 (SIG_FRAME_FP_OFFSET): Likewise.
4832 (rs6000_push_dummy_call): Likewise.
4833 (rs6000_return_value): Likewise.
4834 (rs6000_convert_from_func_ptr_addr): Likewise.
4835 (branch_dest, rs6000_software_single_step): Likewise.
4836 (deal_with_atomic_sequence): Rename to ...
4837 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
4838 Do not call branch_dest; inline required parts of that function.
4839 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
4840 with SYMBOL_LINKAGE_NAME.
4841 (struct reg, regsize): Delete.
4842 (read_memory_addr): Delete; inline into callers.
4843 (rs6000_skip_prologue): Move after skip_prologue.
4844 (skip_prologue): Remove prototype.
4845 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
4846 initialization as if this variable were true. Do not install
4847 ppc64_sysv_abi_adjust_breakpoint_address.
4849 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
4850 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
4852 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
4853 (SIG_FRAME_PC_OFFSET): Likewise.
4854 (SIG_FRAME_LR_OFFSET): Likewise.
4855 (SIG_FRAME_FP_OFFSET): Likewise.
4856 (rs6000_push_dummy_call): Likewise.
4857 (rs6000_return_value): Likewise.
4858 (rs6000_convert_from_func_ptr_addr): Likewise.
4859 (branch_dest, rs6000_software_single_step): Likewise. Replace
4860 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
4861 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
4862 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
4863 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
4864 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
4866 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
4867 (AIX_TEXT_SEGMENT_BASE): New macro.
4868 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
4869 by AIX_TEXT_SEGMENT_BASE.
4871 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
4872 (struct gdbarch_tdep): Remove text_segment_base member.
4873 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
4874 ppc64_sysv_abi_adjust_breakpoint_address.
4876 * Makefile.in (rs6000-tdep.o): Update dependencies.
4877 (rs6000-aix-tdep.o): Likewise.
4879 2008-05-03 Luis Machado <luisgpm@br.ibm.com>
4880 Thiago Jung Bauermann <bauerman@br.ibm.com>
4882 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
4883 * doublest.c (convert_typed_floating): Fix typo in comment.
4884 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
4885 * frame-unwind.h (frame_sniffer_ftype): Likewise.
4886 * frame.c (frame_unwind_address_in_block): Likewise.
4887 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
4888 * symtab.h (struct symbol): Likewise.
4889 * tramp-frame.h (struct trad_frame_cache): Likewise.
4890 * value.c (allocate_repeat_value): Likewise.
4892 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
4894 * infrun.c (handle_inferior_event): Do not insert breakpoints at
4895 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
4897 2008-05-03 Pedro Alves <pedro@codesourcery.com>
4899 * parse.c (parse_exp_in_context): Don't override
4900 expression_context_pc if get_selected_block returned a valid
4903 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
4905 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
4906 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
4907 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
4909 * c-typeprint.c (c_type_print_base): Delete handling of template
4911 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
4912 (METHOD_PTR_TO_VOFFSET): Delete.
4913 * defs.h (QUIT_FIXME): Delete.
4914 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
4915 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
4916 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
4917 ninstantiations, and instantiations.
4918 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
4919 (TYPE_FN_FIELD_INLINED): Delete.
4920 * srec.h (SREC_BINARY): Delete.
4921 * symtab.c (symbol_init_demangled_name): Delete.
4922 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
4923 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
4924 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
4925 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
4926 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
4927 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
4928 * target.h (enum thread_control_capabilities): Delete tc_switch.
4929 (target_can_switch_threads): Delete.
4931 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
4933 * Makefile.in (objfiles.o): Update.
4934 * exec.c (exec_set_section_address): Support p->addr != 0.
4935 * objfiles.c (objfile_relocate): Update exec_ops section
4937 * symfile.c (place_section): Move exec_set_section_address call...
4938 (default_symfile_offsets): ...to here.
4940 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
4942 * Makefile.in (ppc_linux_tdep_h): New macro.
4943 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
4944 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
4945 (powerpc_e500l_c): Likewise.
4946 (ppc-linux-nat.o): Update dependencies.
4947 (ppc-linux-tdep.o): Update dependencies.
4948 (rs6000-tdep.o): Update dependencies.
4950 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
4951 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
4952 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
4953 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
4954 (tdesc_powerpc_e500): Remove.
4956 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
4957 and "features/rs6000/powerpc-altivec64.c".
4958 (ppc_supply_reg, ppc_collect_reg): Make global.
4959 (variants): Use tdesc_powerpc_32 for "powerpc" and
4960 tdesc_powerpc_altivec64 for "powerpc64".
4961 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
4963 * ppc-linux-tdep.h: New file.
4965 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
4966 Include "features/rs6000/powerpc-32l.c".
4967 Include "features/rs6000/powerpc-altivec32l.c".
4968 Include "features/rs6000/powerpc-64l.c".
4969 Include "features/rs6000/powerpc-altivec64l.c".
4970 Include "features/rs6000/powerpc-e500l.c".
4971 (ppc_linux_supply_gregset): New function.
4972 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
4973 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
4974 (ppc64_linux_gregset): Likewise.
4975 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
4976 (ppc_linux_trap_reg_p): New function.
4977 (ppc_linux_write_pc): New function.
4978 (ppc_linux_core_read_description): New function.
4979 (ppc_linux_init_abi): Install ppc_linux_write_pc and
4980 ppc_linux_core_read_description. Install orig_r3 and trap
4981 registers if present in the target description.
4982 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
4984 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
4985 (PT_ORIG_R3, PT_TRAP): Define if necessary.
4986 (ppc_register_u_addr): Handle orig_r3 and trap registers.
4987 (fetch_ppc_registers): Likewise.
4988 (store_ppc_registers): Likewise.
4989 (store_register): Likewise.
4990 (ppc_linux_read_description): Check whether AltiVec is supported.
4991 Check whether inferior is 32-bit or 64-bit. Return the appropriate
4992 Linux target description.
4994 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
4995 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
4996 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
4997 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
4998 rs6000/powerpc-e500. Update -expedite variables accordingly.
5000 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
5001 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
5002 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
5003 * features/rs6000/powerpc-e500.c: Regenerate.
5004 * features/rs6000/powerpc-32.c: Regenerate.
5005 * features/rs6000/powerpc-64.c: Regenerate.
5007 * features/rs6000/power-linux.xml: New file.
5008 * features/rs6000/power64-linux.xml: New file.
5009 * features/rs6000/powerpc-32l.xml: New file.
5010 * features/rs6000/powerpc-altivec32l.xml: New file.
5011 * features/rs6000/powerpc-64l.xml: New file.
5012 * features/rs6000/powerpc-altivec64l.xml: New file.
5013 * features/rs6000/powerpc-e500l.xml: New file.
5014 * features/rs6000/powerpc-32l.c: New (generated) file.
5015 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
5016 * features/rs6000/powerpc-64l.c: New (generated) file.
5017 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
5018 * features/rs6000/powerpc-e500l.xml: New (generated) file.
5020 * regformats/reg-ppc.dat: Remove.
5021 * regformats/reg-ppc64.dat: Remove.
5022 * regformats/rs6000/powerpc-32.dat: Remove.
5023 * regformats/rs6000/powerpc-64.dat: Remove.
5024 * regformats/rs6000/powerpc-e500.dat: Remove.
5025 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
5026 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
5027 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
5028 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
5029 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
5031 2008-05-03 Pedro Alves <pedro@codesourcery.com>
5033 * thread.c (delete_thread): Call observer_notify_thread_exit.
5034 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
5035 thread_exit observer.
5036 (mi_thread_exit): New.
5038 2008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5040 * breakpoint.c (create_exception_catchpoint): Remove prototype
5041 for already deleted function.
5042 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
5043 * frame.h (show_stack_frame): Remove prototype.
5044 * stack.c (show_stack_frame): Remove empty, unused function.
5045 * source.c (symtab_to_fullname, print_source_lines): Small fix
5047 * value.c (show_values): Update comments to mention "show values"
5048 command instead of "info history".
5050 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
5052 * linespec.c: Include "target.h".
5053 (minsym_found): Handle minimal symbols pointing to function
5054 descriptors. Use find_function_start_pc.
5055 * minsyms.c (msymbol_objfile): New function.
5056 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
5057 to function descriptors.
5058 * symtab.c (fixup_section): Only use minimal symbol at the same
5059 address to determine section of a symbol.
5060 (find_function_start_pc): New function.
5061 (find_function_start_sal): Use it.
5062 * symtab.h (msymbol_objfile): Add prototype.
5063 (find_function_start_pc): Likewise.
5064 * value.c: Include "objfiles.h".
5065 (value_fn_field): Handle minimal symbols pointing to function
5067 * Makefile.in (linespec.o): Update dependencies.
5068 (value.o): Likewise.
5070 2008-05-02 Joel Brobecker <brobecker@adacore.com>
5072 * ada-lang.c (unwrap_value): Handle the case where the "F" field
5073 inside a PAD type is a bitfield.
5075 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
5077 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
5078 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
5079 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
5080 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
5081 Allow typedefs when checking for function pointer arguments.
5082 Right-align small structs passed on the stack.
5083 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
5084 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
5085 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
5087 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
5089 * Makefile.in (arm-tdep.o): Update.
5090 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
5091 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
5092 (arm_pc_is_thumb): Use mapping symbols.
5093 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
5094 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
5095 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
5096 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
5097 * gdbarch.sh: Add record_special_symbol.
5098 * gdbarch.c, gdbarch.h: Regenerated.
5099 * objfiles.c (struct objfile_data): Add cleanup member.
5100 (register_objfile_data_with_cleanup): New function, from
5101 register_objfile_data.
5102 (register_objfile_data): Use it.
5103 (objfile_free_data): Call clear_objfile_data.
5104 (clear_objfile_data): Call cleanup functions.
5105 * objfiles.h (register_objfile_data_with_cleanup): Declare.
5107 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
5109 * objfiles.c (init_entry_point_info): Handle shared libraries.
5111 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
5113 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
5116 2008-05-02 Jim Blandy <jimb@codesourcery.com>
5117 Pedro Alves <pedro@codesourcery.com>
5119 Implement displaced stepping.
5121 * gdbarch.sh (max_insn_length): New 'variable'.
5122 (displaced_step_copy, displaced_step_fixup)
5123 (displaced_step_free_closure, displaced_step_location): New
5125 (struct displaced_step_closure): Add forward declaration.
5126 * gdbarch.c, gdbarch.h: Regenerated.
5128 * arch-utils.c: #include "objfiles.h".
5129 (simple_displaced_step_copy_insn)
5130 (simple_displaced_step_free_closure)
5131 (displaced_step_at_entry_point): New functions.
5132 * arch-utils.h (simple_displaced_step_copy_insn)
5133 (simple_displaced_step_free_closure)
5134 (displaced_step_at_entry_point): New prototypes.
5136 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
5137 (I386_MAX_MATCHED_INSN_LEN): ... this.
5138 (i386_absolute_jmp_p, i386_absolute_call_p)
5139 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
5140 (i386_displaced_step_fixup): New functions.
5141 (struct i386_insn, i386_match_insn): Update.
5142 (i386_gdbarch_init): Set gdbarch_max_insn_length.
5143 * i386-tdep.h (I386_MAX_INSN_LEN): New.
5144 (i386_displaced_step_fixup): New prototype.
5145 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
5146 Register gdbarch_displaced_step_copy,
5147 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
5148 and gdbarch_displaced_step_location functions.
5150 * infrun.c (debug_displaced): New variable.
5151 (show_debug_displaced): New function.
5152 (struct displaced_step_request): New struct.
5153 (displaced_step_request_queue, displaced_step_ptid)
5154 (displaced_step_gdbarch, displaced_step_closure)
5155 (displaced_step_original, displaced_step_copy)
5156 (displaced_step_saved_copy, can_use_displaced_stepping): New
5158 (show_can_use_displaced_stepping, use_displaced_stepping)
5159 (displaced_step_clear, cleanup_displaced_step_closure)
5160 (displaced_step_dump_bytes, displaced_step_prepare)
5161 (displaced_step_clear_cleanup, write_memory_ptid)
5162 (displaced_step_fixup): New functions.
5163 (resume): Call displaced_step_prepare.
5164 (proceed): Call read_pc once, and remember the value. If using
5165 displaced stepping, don't remove breakpoints.
5166 (handle_inferior_event): Call displaced_step_fixup. Add some
5167 debugging output. When we try to step over a breakpoint, but get
5168 a signal to deliver to the thread instead, ensure the step-resume
5169 breakpoint is actually inserted. If a thread hop is needed, and
5170 displaced stepping is enabled, don't remove breakpoints.
5171 (init_wait_for_inferior): Call displaced_step_clear.
5172 (_initialize_infrun): Add "set debug displaced" command. Add
5173 "maint set can-use-displaced-stepping" command. Clear
5174 displaced_step_ptid.
5175 * inferior.h (debug_displaced): Declare variable.
5176 (displaced_step_dump_bytes): Declare function.
5178 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
5181 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
5183 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
5184 (arm_force_mode_string, arm_show_fallback_mode)
5185 (arm_show_force_mode): New.
5186 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
5188 (_initialize_arm_tdep): Add "set arm fallback-mode"
5189 and "set arm force-mode".
5190 * NEWS: Document new commands.
5192 2008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
5194 * main.h (batch_silent): Declare.
5195 * event-top.c: Include main.h.
5196 (gdb_setup_readline): Remove extern batch_silent declaration.
5197 * infrun.c (normal_stop): Don't print source location when running in
5198 --batch-silent mode.
5199 * Makefile.in (event-top.o): Add main.h dependency.
5201 2008-05-02 Andreas Schwab <schwab@suse.de>
5203 * target.h (struct target_ops): Add
5204 to_watchpoint_addr_within_range.
5205 (target_watchpoint_addr_within_range): New function.
5206 * target.c (update_current_target): Inherit
5207 to_watchpoint_addr_within_range, defaulting to
5208 default_watchpoint_addr_within_range.
5209 (default_watchpoint_addr_within_range): New function.
5210 (debug_to_watchpoint_addr_within_range): New function.
5211 (setup_target_debug): Set to_watchpoint_addr_within_range.
5212 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
5214 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
5215 * breakpoint.c (watchpoints_triggered): Use
5216 target_watchpoint_addr_within_range.
5218 2008-05-01 Pedro Alves <pedro@codesourcery.com>
5220 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
5221 (i[34567]86-*-dicos*, x86_64-*-dicos*):
5222 Set gdb_osabi to GDB_OSABI_DICOS.
5224 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
5225 * osabi.c (gdb_osabi_name): Add "DICOS".
5227 * i386-dicos-tdep.c: New file.
5229 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
5230 (ALLDEPFILES): Add i386-dicos-tdep.c.
5231 (i386-dicos-tdep.o): New rule.
5233 2008-05-01 Pedro Alves <pedro@codesourcery.com>
5235 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
5236 and register the fork's PTID as a thread.
5238 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
5241 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
5242 assign its value to the breakpoint created.
5243 (create_breakpoints): Add breakpoint_ops argument and pass it
5244 to create_breakpoint call.
5245 (break_command_really): Add breakpoint_ops argument and pass/assign
5247 (break_command_1): Pass NULL as ops argument.
5248 (set_breakpoint): Pass NULL as ops argument.
5249 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
5250 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
5251 catch and throw catchpoints.
5253 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
5256 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
5257 translate signal numeric value from the target to GDB's enum
5259 * gdbarch.c, gdbarch.h: Regenerated.
5260 * gdbarch.sh: Added two new functions target_signal_from_host and
5261 target_signal_to_host.
5262 * target.h (default_target_signal_from_host,
5263 default_target_signal_to_host): New functions - declarations.
5264 * signals/signals.c (struct gdbarch): New declaration.
5265 (default_target_signal_to_host, default_target_signal_from_host): New
5268 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
5269 Pedro Alves <pedro@codesourcery.com>
5271 Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff
5272 Johnston <jjohnstn@redhat.com>.
5274 * NEWS: Mention attach to stopped process fix.
5275 * infcmd.c (detach_command, disconnect_command): Discard the thread
5277 * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
5278 attaching. Use signal_stop_state.
5279 (signal_stop_state): Check stop_soon.
5280 * linux-nat.c (kill_lwp): Declare earlier.
5281 (pid_is_stopped, linux_nat_post_attach_wait): New.
5282 (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update
5284 (linux_nat_attach): Use linux_nat_post_attach_wait.
5285 (detach_callback, linux_nat_detach): Improve handling for signalled
5287 (linux_nat_pid_to_str): Always print out the LWP ID if it differs
5288 from the process ID.
5289 * Makefile.in (infcmd.o): Update.
5291 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
5293 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
5294 * arm-tdep.c (arm_frame_is_thumb): New.
5295 (arm_pc_is_thumb): Clarify comment.
5296 (thumb_analyze_prologue): Remove PC special case.
5297 (thumb_scan_prologue): Take a block_addr argument. Use it for
5298 find_pc_partial_function. Remove unused variables.
5299 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
5300 for find_pc_partial_function. Remove PC special case.
5301 (arm_prologue_prev_register): Add special handling for PC and CPSR.
5302 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
5303 (arm_get_next_pc): Use arm_frame_is_thumb.
5304 (arm_write_pc): Use CPSR_T instead of 0x20.
5305 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
5306 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
5308 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
5309 DWARF2_FRAME_REG_FN.
5310 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
5311 DWARF2_FRAME_REG_FN.
5312 (struct dwarf2_frame_state_reg): Add FN to loc union.
5314 2008-05-01 Nick Roberts <nickrob@snap.net.nz>
5316 * exec.c (print_section_info): Add missing '\n'.
5318 2008-05-01 Vladimir Prus <vladimir@codesourcery.com>
5320 * thread.c (add_thread): Move observer call to ...
5321 (add_thread_silent): ... here.
5323 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
5325 * rs6000-tdep.c: Update for unwinder changes.
5326 * ppcobsd-tdep.c: Likewise.
5328 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
5330 * s390-tdep.c: Update for unwinder changes.
5332 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
5334 * spu-tdep.c: Update for unwinder changes.
5336 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5338 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
5339 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
5340 sparc64-linux-tdep.c: Update for unwinder changes.
5342 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5344 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
5345 for unwinder changes.
5346 * mips-tdep.c: Likewise.
5347 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
5350 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5352 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
5355 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5357 Update i386 and amd64 ports for unwinder changes.
5359 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
5360 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
5361 (amd64_frame_unwind): Use default_frame_sniffer.
5362 (amd64_frame_sniffer): Delete.
5363 (amd64_sigtramp_frame_cache): Expect this_frame.
5364 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
5365 (amd64_sigtramp_frame_sniffer): Update signature.
5366 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
5367 (amd64_frame_base_address): Expect this_frame.
5368 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
5370 (amd64_init_abi): Use set_gdbarch_dummy_id and
5371 frame_unwind_append_unwinder.
5372 * i386-tdep.c (i386_frame_cache): Expect this_frame.
5373 (i386_frame_this_id, i386_frame_prev_register): Update signature.
5374 (i386_frame_unwind): Use default_frame_sniffer.
5375 (i386_frame_sniffer): Delete.
5376 (i386_sigtramp_frame_cache): Expect this_frame.
5377 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
5378 (i386_sigtramp_frame_sniffer): Update signature.
5379 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
5380 (i386_frame_base_address): Update signature.
5381 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
5382 (i386_push_dummy_call): Update comment.
5383 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
5385 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
5386 and frame_unwind_append_unwinder.
5387 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
5388 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
5389 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
5390 i386nbsd-tdep.c: Update for unwinder changes.
5392 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5394 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
5395 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
5397 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
5398 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
5399 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
5401 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
5403 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
5405 * tramp-frame.h (struct tramp_frame): Update signature of init.
5406 * Makefile.in (trad-frame.o): Update.
5408 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5410 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
5411 (execute_stack_op): Put this_frame in the baton.
5412 (execute_cfa_program): Take this_frame.
5413 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
5414 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
5415 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
5416 (dwarf2_frame_this_id): Adjust to work on this_frame.
5417 (dwarf2_signal_frame_this_id): Delete.
5418 (dwarf2_frame_prev_register): Update signature. Use new frame
5420 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
5421 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
5422 dwarf2_frame_sniffer.
5423 (dwarf2_append_unwinders): New.
5424 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
5426 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
5427 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
5428 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
5429 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
5430 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
5431 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
5432 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
5433 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
5434 (dwarf2_append_unwinders): Declare.
5435 (dwarf2_frame_base_sniffer): Update declaration.
5436 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
5439 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5441 Convert frame unwinders to use the current frame and
5444 * frame.c (frame_debug): Make global.
5445 (get_frame_id): Pass this frame to unwinder routines.
5446 (frame_pc_unwind): Remove unused unwind->prev_pc support.
5447 (do_frame_register_read): Do not discard the return value of
5448 frame_register_read.
5449 (frame_register_unwind): Remove debug messages. Use
5450 frame_unwind_register_value.
5451 (frame_unwind_register_value, get_frame_register_value): New
5453 (create_new_frame, get_frame_base_address, get_frame_locals_address)
5454 (get_frame_args_address, get_frame_type): Pass this frame to
5456 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
5458 * frame.h: Update comments.
5459 (frame_debug, frame_unwind_register_value, get_frame_register_value)
5460 (frame_prepare_for_sniffer): Declare.
5461 * frame-unwind.h: Update comments and parameter names.
5462 (default_frame_sniffer): Declare.
5463 (frame_prev_register_ftype): Return a struct value *.
5464 (struct frame_unwind): Remove prev_pc member.
5465 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
5466 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
5467 (frame_unwind_got_register, frame_unwind_got_memory)
5468 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
5469 * frame-base.h: Update comments and parameter names.
5470 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
5471 if necessary. Add debugging output.
5472 * sentinel-frame.c (sentinel_frame_prev_register)
5473 (sentinel_frame_this_id): Update for new signature.
5474 (sentinel_frame_prev_pc): Delete.
5475 (sentinel_frame_unwinder): Remove prev_pc.
5476 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
5478 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
5479 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
5480 (frame_unwind_append_sniffer): Delete.
5481 (frame_unwind_append_unwinder): New function.
5482 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
5483 from unwinders. Use frame_prepare_for_sniffer.
5484 (default_frame_sniffer, frame_unwind_got_optimized)
5485 (frame_unwind_got_register, frame_unwind_got_memory)
5486 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
5487 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
5488 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
5490 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
5491 * gdbarch.c, gdbarch.c: Regenerated.
5492 * frame-base.c (default_frame_base_address)
5493 (default_frame_locals_address, default_frame_args_address): Update
5495 (frame_base_find_by_frame): Pass this frame to unwinder routines.
5496 * infcall.c (call_function_by_hand): Update comments.
5497 * Makefile.in (frame-unwind.o): Update dependencies.
5499 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5501 * ada-lang.c (ada_value_primitive_packed_val): Only check
5502 value_lazy for memory lvals.
5503 * findvar.c (value_of_register_lazy): New function.
5504 (locate_var_value): Only check value_lazy for memory lvals.
5505 * valarith.c (value_subscripted_rvalue): Likewise.
5506 * valops.c (value_fetch_lazy): Handle both memory and register
5508 (search_struct_field, value_slice): Only check value_lazy for memory
5510 * value.c (struct value): Update comment for lazy.
5511 (value_primitive_field): Only check value_lazy for memory lvals.
5512 * value.h (value_lazy): Update comment.
5513 (value_of_register_lazy): Declare.
5515 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5517 * corefile.c (reopen_exec_file): Close any open files.
5519 2008-04-29 Joel Brobecker <brobecker@adacore.com>
5521 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
5522 show_memory_breakpoints to 1 while reading the instruction bundle.
5524 2008-04-29 Joel Brobecker <brobecker@adacore.com>
5526 * gdbarch.sh: Document the return_value method. Explain that
5527 the FUNCTYPE parameter might be NULL.
5528 * gdbarch.h: Regenerated.
5529 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
5530 type when calling using_struct_return, as this is unnecessary
5533 2008-04-28 Joel Brobecker <brobecker@adacore.com>
5535 * terminal.h (create_tty_session): Fix return type.
5537 2008-04-26 Vladimir Prus <vladimir@codesourcery.com>
5539 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
5541 2008-04-26 Joel Brobecker <brobecker@adacore.com>
5543 * breakpoint.c (condition_command, commands_from_control_command)
5544 (break_command_really): Minor reformatting.
5546 2008-04-25 Pedro Alves <pedro@codesourcery.com>
5548 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
5550 2008-04-25 Pedro Alves <pedro@codesourcery.com>
5552 * amd64-tdep.c (amd64_get_longjmp_target): New.
5553 (amd64_init_abi): Register amd64_get_longjmp_target as
5554 gdbarch_get_longjmp_target callback.
5555 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
5557 2008-04-25 Pedro Alves <pedro@codesourcery.com>
5559 * breakpoint.h (enum bpstat_what_main_action): Delete
5560 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
5562 * breakpoint.c (clrs): Delete.
5563 (bpstat_what): Update table.
5565 * infrun.c (handle_inferior_event): Remove
5566 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
5568 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
5570 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
5571 Adjust all prototypes using mi_cmd_args_ftype to use
5573 (struct mi_cmd): Remove the args_func field.
5574 * mi/mi-cmds.c: Don't provide value for the args_func field.
5575 * mi/mi-main.c (mi_execute_async_cli_command)
5576 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
5577 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
5578 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
5579 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
5580 (mi_cmd_target_download): Adjust.
5581 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
5582 (mi_cmd_execute): Do not check for args_func.
5583 (mi_execute_async_cli_command): Adjust.
5584 * mi/mi-parse.c: Don't check for args_func.
5586 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
5588 * breakpoint.c (bpstat_check_location)
5589 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
5590 New, extracted from bpstat_stop_status.
5591 (bpstat_stop_status): Use the above.
5593 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
5595 * mi/mi-main.c (last_async_command): Rename to current_token.
5596 (previous_async_command): Remove.
5597 (mi_cmd_gdb_exit): Adjust.
5598 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
5599 (mi_cmd_target_select): Adjust.
5600 (mi_cmd_execute): Don't set previous_async_command. Free token
5601 here even in async mode.
5602 (mi_execute_async_cli_command): Adjust.
5603 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
5605 (mi_load_progress): Adjust.
5607 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
5609 * infcmd.c (step_1_continuation): Always disable longjmp
5610 breakpoint if we're not going to do another step.
5612 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
5614 exec_cleanup murder.
5615 * breakpoint.c (until_break_command_continuation): Add
5616 the 'error' parameter. Directly delete the breakoint as
5617 opposed to running cleanups.
5618 (until_break_command): Install continuation only
5619 after starting the target. Don't use exec cleanups,
5620 use ordinary cleanups. Discard cleanups is successfully
5621 started the target in async mode.
5622 (make_cleanup_delete_breakpoint): Remove.
5623 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
5625 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
5627 (struct continations): Add the 'error' parameter to the
5628 continuation_hook field.
5629 (add_continuation, do_all_continuations)
5630 (add_intermediate_continuation)
5631 (do_all_intermediate_continuations): Add the 'error' parameter.
5632 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
5633 * inf-loop.c (inferior_event_handler): Instead of calling
5634 discard_all_continuations, use do_all_continuations with 1 as
5635 'error' parameter. Pass 0 as 'error' parameter in existing uses
5636 of discard_all_continuations.
5637 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
5639 (step_once): Install continuation only after resuming the target.
5640 (step_1_continuation): Disable longjmp breakpoint on error.
5641 (finish_command_continuation): Add the error parameter. Delete
5642 the finish breakpoint directly, do not use cleanups.
5643 (finish_command): Do not use exec_cleanups. Always setup
5644 continuation. For sync case, immediately run them.
5645 (attach_command_continuation): Add the error parameter.
5646 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
5647 remove step_resume_breakpoint -- adjust delete it directly.
5648 * interps.c (interp_set): Adjust call to do_all_continations.
5649 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
5651 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
5653 (mi_cmd_execute): Do not use exec_cleanup.
5654 (mi_execute_async_cli_command): Simplify the string concatenation
5655 logic. Do no use exec cleanup.
5656 (mi_exec_async_cli_cmd_continuation): New parameter error.
5657 Free last_async_command.
5658 * top.c (command_line_handler_continuation): New parameter error.
5659 * utils.c (exec_cleanup_chain, make_exec_cleanup)
5660 (do_exec_cleanups): Remove.
5661 (add_continuation, do_all_continations)
5662 (add_intermediate_continuation)
5663 (do_all_intermediate_continuations): New parameter error.
5665 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
5667 * breakpoint.h (bp_location_p): New typedef.
5668 Register a vector of bp_location_p.
5669 * breakpoint.c (always_inserted_mode)
5670 (show_always_inserted_mode): New.
5671 (unlink_locations_from_global_list): Remove.
5672 (update_global_location_list)
5673 (update_global_location_list_nothrow): New.
5674 (update_watchpoint): Don't free locations.
5675 (should_insert_location): New.
5676 (insert_bp_location): Use should_insert_location.
5677 (insert_breakpoint_locations): Copied from
5679 (insert_breakpoint): Use insert_breakpoint_locations.
5680 (bpstat_stop_status): Call update_global_location_list
5681 when disabling breakpoint.
5682 (allocate_bp_location): Don't add to bp_location_chain.
5683 (set_raw_breakpoint)
5684 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
5685 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
5686 (enable_overlay_breakpoints, disable_overlay_breakpoints)
5687 (set_longjmp_resume_breakpoint)
5688 (enable_watchpoints_after_interactive_call_stop)
5689 (disable_watchpoints_before_interactive_call_start)
5690 (create_internal_breakpoint)
5691 (create_fork_vfork_event_catchpoint)
5692 (create_exec_event_catchpoint, set_momentary_breakpoint)
5693 (create_breakpoints, break_command_1, watch_command_1)
5694 (create_exception_catchpoint)
5695 (handle_gnu_v3_exceptions)
5696 (disable_breakpoint, breakpoint_re_set_one)
5697 (create_thread_event_breakpoint, create_solib_event_breakpoint)
5698 (create_ada_exception_breakpoint): : Don't call check_duplicates.
5699 Call update_global_location_list.
5700 (delete_breakpoint): Don't remove locations and don't
5701 try to reinsert them. Call update_global_location_list.
5702 (update_breakpoint_locations): Likewise.
5703 (restore_always_inserted_mode): New.
5704 (update_breakpoints_after_exec): Temporary disable
5705 always inserted mode.
5706 * Makefile.in: Update dependencies.
5708 * infrun.c (proceed): Remove breakpoints while stepping
5710 (handle_inferior_event): Don't remove or insert
5712 * linux-fork.c (checkpoint_command): Remove breakpoints
5713 before fork and insert after.
5714 (linux_fork_context): Remove breakpoints before switch
5716 * target.c (target_disconnect, target_detach): Remove
5717 breakpoints from target.
5720 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
5722 * breakpoint.c (print_one_breakpoint_location): In MI
5723 mode, report the location string the breakpoint was
5724 originally created with.
5726 2008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
5728 * Makefile.in (xtensa-tdep.o): Update dependencies.
5729 * configure.tgt (xtensa*): Update dependencies.
5730 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
5731 Local variable areg renamed to arreg.
5732 (areg_number): New function.
5733 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
5734 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
5735 replaced by arreg_number.
5736 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
5737 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
5738 (xtensa_scan_prologue): New function.
5739 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
5740 when ENTRY instraction hasn't been executed yet. Get the frame pointer
5741 value based on prologue analysis. Fix the bugs preventing WS and
5742 AR4-AR7/A11 registers from getting right values for intermediate frames,
5743 whose registers have been already spilled.
5744 (xtensa_frame_prev_register): Fix WS register value. Use are_number
5745 and arreg_number appropriately.
5746 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
5747 svr4_ilp32_fetch_link_map_offsets.
5749 2008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
5751 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
5752 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
5754 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
5756 * acinclude.m4: Add override.m4.
5757 * configure: Regenerate.
5759 2008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5761 * ada-lang.c (get_selections): Variable PROMPT made non-const and
5762 initialized with a trailing space now. Use PROMPT_ARG of
5763 COMMAND_LINE_INPUT instead of printing it ourselves.
5765 2008-04-22 Joel Brobecker <brobecker@adacore.com>
5767 * NEWS: Document support for 64-bit core file.
5769 2008-04-22 Corinna Vinschen <vinschen@redhat.com>
5771 * NEWS: Add information on calling convention and new SH CLI options.
5773 * sh-tdep.c (sh_cc_gcc): New static string.
5774 (sh_cc_renesas): Ditto.
5775 (sh_cc_enum): New static string array.
5776 (sh_active_calling_convention): New static string pointer denoting
5777 active user chosen ABI.
5778 (sh_is_renesas_calling_convention): New function to return function
5779 specific ABI, or user choice if necessary.
5780 (sh_use_struct_convention): Rename first argument and turn around its
5781 meaning. Check for renesas ABI and return accordingly.
5782 (sh_use_struct_convention_nofpu): New function.
5783 (sh_next_flt_argreg): Get function type as third parameter. Check
5784 for renesas ABI and choose floating registers accordingly.
5785 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
5786 struct return slot accordingly.
5787 (sh_push_dummy_call_nofpu): Ditto.
5788 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
5789 Evaluate ABI and give to sh_use_struct_convention_nofpu.
5790 (sh_return_value_fpu): Evaluate ABI and give to
5791 sh_use_struct_convention.
5792 (show_sh_command): New function.
5793 (set_sh_command): Ditto.
5794 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
5797 * gdbarch.sh (return_value): Add func_type argument.
5798 * gdbarch.c: Regenerate.
5800 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
5801 val_type so as not to collide with value_type function. Call
5802 using_struct_return with additional function type argument.
5803 * infcall.c (call_function_by_hand): Call using_struct_return and
5804 gdbarch_return_value with additional function type argument.
5805 * infcmd.c (print_return_value): Take addition func_type argument.
5806 Call gdbarch_return_value with additional function type argument.
5807 (finish_command_continuation): Call print_return_value with additional
5808 function type argument.
5809 (finish_command): Ditto.
5810 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
5811 additional function type argument.
5812 * stack.c (return_command): Call using_struct_return and
5813 gdbarch_return_value with additional function type argument.
5814 * value.c (using_struct_return): Take additional function type argument.
5815 * value.h (using_struct_return): Accommodate declaration.
5816 * alpha-tdep.c (alpha_return_value): Add func_type argument.
5817 * amd64-tdep.c (amd64_return_value): Ditto.
5818 * arm-tdep.c (arm_return_value): Ditto.
5819 * avr-tdep.c (avr_return_value): Ditto.
5820 * cris-tdep.c (cris_return_value): Ditto.
5821 * frv-tdep.c (frv_return_value): Ditto.
5822 * h8300-tdep.c (h8300_return_value): Ditto.
5823 (h8300h_return_value): Ditto.
5824 * hppa-tdep.c (hppa32_return_value): Ditto.
5825 (hppa64_return_value): Ditto.
5826 * i386-tdep.c (i386_return_value): Ditto.
5827 * ia64-tdep.c (ia64_return_value): Ditto.
5828 * iq2000-tdep.c (iq2000_return_value): Ditto.
5829 * m32c-tdep.c (m32c_return_value): Ditto.
5830 * m32r-tdep.c (m32r_return_value): Ditto.
5831 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
5832 * m68k-tdep.c (m68k_return_value): Ditto.
5833 (m68k_svr4_return_value): Ditto.
5834 * m88k-tdep.c (m88k_return_value): Ditto.
5835 * mep-tdep.c (mep_return_value): Ditto.
5836 * mips-tdep.c (mips_eabi_return_value): Ditto.
5837 (mips_n32n64_return_value): Ditto.
5838 (mips_o32_return_value): Ditto.
5839 (mips_o64_return_value): Ditto.
5840 * mn10300-tdep.c (mn10300_return_value): Ditto.
5841 * mt-tdep.c (mt_return_value): Ditto.
5842 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
5843 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
5844 (ppc_sysv_abi_broken_return_value): Ditto.
5845 (ppc64_sysv_abi_return_value): Ditto.
5846 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
5847 (ppc_sysv_abi_broken_return_value): Ditto.
5848 (ppc64_sysv_abi_return_value): Ditto.
5849 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
5850 * rs6000-tdep.c (rs6000_return_value): Ditto.
5851 * s390-tdep.c (s390_return_value): Ditto.
5852 * score-tdep.c (score_return_value): Ditto.
5853 * sh-tdep.c (sh_return_value_nofpu): Ditto.
5854 (sh_return_value_fpu): Ditto.
5855 * sh64-tdep.c (sh64_return_value): Ditto.
5856 * sparc-tdep.c (sparc32_return_value): Ditto.
5857 * sparc64-tdep.c (sparc64_return_value): Ditto.
5858 * spu-tdep.c (spu_return_value): Ditto.
5859 * v850-tdep.c (v850_return_value): Ditto.
5860 * vax-tdep.c (vax_return_value): Ditto.
5861 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
5862 * xtensa-tdep.c (xtensa_return_value): Ditto.
5864 * gdbtypes.h (struct type): Add calling_convention member.
5865 * dwarf2read.c (read_subroutine_type): Add calling convention read
5866 from DW_AT_calling_convention attribute to function type.
5868 2008-04-22 Markus Deuling <deuling@de.ibm.com>
5870 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
5871 multi_f77_subscript to support values from registers.
5872 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
5873 * value.h (value_subscripted_rvalue): Add prototype.
5875 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
5877 * f-valprint.c (f_val_print): Likewise.
5879 2008-04-21 Craig Silverstein <csilvers@google.com>
5881 * dwarf2read.c (zlib_decompress_section): Define abfd in the
5884 2008-04-21 Pedro Alves <pedro@codesourcery.com>
5886 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
5887 section is not a code section.
5889 2008-04-19 Craig Silverstein <csilvers@google.com>
5891 * NEWS: Add information on compressed debug sections.
5893 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
5895 * mi/mi-cmd-var.c (varobj_update_one): Print new
5896 value for variable objects that changed type.
5898 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
5900 * varobj.c (varobj_invalidate): Don't touch floating
5903 2008-04-19 Mark Kettenis <kettenis@gnu.org>
5905 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
5906 (multiple_symbols_cancel): Remove extra const.
5907 * symtab.h: Likewise.
5909 2008-04-19 Nick Roberts <nickrob@snap.net.nz>
5911 * interps.c (top_level_interpreter): Rename static variable...
5912 (top_level_interpreter_ptr): ...to this.
5913 (top_level_interpreter): New function.
5915 * interps.h: New extern for top_level_interpreter.
5917 * linespec.c: Include interps.h and mi/mi-cmds.h.
5918 (decode_line_2): When using MI, always set all breakpoints in menu.
5920 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
5922 2008-04-18 Craig Silverstein <csilvers@google.com>
5924 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
5925 * config.in, configure: Regenerate.
5926 * dwarf2read.c: Include zlib.h if present.
5927 Modified *_SECTION macros.
5928 (section_is_p): New.
5929 (dwarf2_locate_sections): Use section_is_p instead of strcmp
5930 (dwarf2_resize_section): New.
5931 to determine whether a given section has a given name.
5932 (zlib_decompress_section): New.
5933 (dwarf2_read_section): Read the compressed section if present
5935 * MAINTAINERS: Added myself to section Write After Approval.
5937 2008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
5939 * defs.h (exec_set_section_offsets): Remove prototype.
5940 * exec.c (exec_set_section_offsets): Remove function.
5942 2008-04-18 Joel Brobecker <brobecker@adacore.com>
5944 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
5945 in the search for the matching symbol.
5947 2008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
5949 * breakpoint.c (update_watchpoint): Always reparse
5952 2008-04-17 Joel Brobecker <brobecker@adacore.com>
5954 * breakpoint.c (print_one_breakpoint_location): Make sure to print
5955 the breakpoint address only once.
5957 2008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
5959 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
5960 rather than a hard-coded architecture, for xcoff executables.
5962 2008-04-17 Doug Evans <dje@google.com>
5964 * buildsym.c (watch_main_source_file_lossage): New fn.
5965 (end_symtab): Call it.
5967 * source.c (find_and_open_source): Add some comments clarifying
5968 handling of FULLNAME argument. Make static. Remove pointless
5971 2008-04-17 Pedro Alves <pedro@codesourcery.com>
5973 * inf-loop.c (inferior_event_handler): Also run the intermediate
5974 continuations in the INF_EXEC_COMPLETE case.
5976 2008-04-16 Tom Tromey <tromey@redhat.com>
5978 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
5979 (set_cmd_async_ok, get_cmd_async_ok): Declare.
5980 * cli/cli-decode.c (set_cmd_async_ok): New function.
5981 (get_cmd_async_ok): New function.
5982 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
5984 * top.c (execute_command): Use get_cmd_async_ok.
5985 * infcmd.c: Include cli/cli-decode.h.
5986 (_initialize_infcmd): Mark "interrupt" as async-ok.
5987 * Makefile.in (infcmd.o): Depend on cli_decode_h.
5989 2008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
5992 * exec.c: Correct "arch-utils.h" include.
5994 2008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
5997 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
5998 to allow printing to 'see' real reason of stop. This fixes PR 2424.
5999 * breakpoint.c (bpdisp_texst): New function. The function takes over
6000 the role of bpstats static array in print_one_breakpoint_location.
6001 (print_it_typical): Print "Temporary breakpoint" instead
6002 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
6003 protocols, print disp field.
6004 (print_one_breakpoint_location): Removed bpdisps static definition.
6005 Call new bpstat_text function to get value for 'disp' field.
6006 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
6008 2008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
6010 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
6011 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
6012 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
6013 * gnulib/Makefile.in: Regenerate.
6015 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6017 * Makefile.in (GNULIB_H): New. Trigger all-lib.
6018 (defs_h): Use $(GNULIB_H).
6019 (all-lib): Depend on gnulib/Makefile.
6020 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
6021 * config.in, gnulib/Makefile.in: Regenerated.
6023 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6025 * Makefile.in (LIBGNU, INCGNU): Define.
6026 (INTERNAL_CFLAGS_BASE): Add INCGNU.
6027 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
6029 ($(LIBGNU), all-lib): New rules.
6030 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
6031 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
6032 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
6033 * gnulib: New directory, from gnulib-tool.
6034 * configure, aclocal.m4: Regenerated.
6036 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6038 * linux-thread-db.c (have_threads_callback): Check thread->private.
6040 2008-04-13 Nick Roberts <nickrob@snap.net.nz>
6041 Vladimir Prus <vladimir@codesourcery.com>
6044 * varobj.c (value_of_root): Update the expression for
6046 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
6049 2008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
6051 * mi/mi-cmd-var.c: Include "mi-getopt.h".
6052 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
6053 (mi_cmd_var_set_format): Use new mi_parse_format.
6054 (mi_cmd_var_evaluate_expression): Support for -f option to specify
6056 * Makefile.in (mi-cmd-var.o): Update dependencies.
6058 * varobj.h (varobj_get_formatted_value): Declare.
6059 * varobj.c (my_value_of_variable): Added format parameter.
6060 (cplus_value_of_variable): Likewise.
6061 (java_value_of_variable): Likewise.
6062 (c_value_of_variable): Likewise. Evaluate expression based
6063 on format parameter.
6064 (struct language_specific): Add format parameter to function member
6066 (varobj_get_formatted_value): New.
6067 (varobj_get_value): Added format parameter to method call.
6069 2008-04-08 Joel Brobecker <brobecker@adacore.com>
6071 * stabsread.c (cleanup_undefined_types_noname): Manually set the
6072 instance flags of the undefined type before calling replace_type.
6074 2008-04-08 Vladimir Prus <vladimir@codesourcery.com>
6076 * target.h (enum strata): Remove the download_stratum.
6078 2008-04-07 Doug Evans <dje@google.com>
6080 * buildsym.h (last_source_file): Add dwarf info to comment.
6081 (last_source_start_addr): Ditto.
6083 2008-04-07 Pedro Alves <pedro@codesourcery.com>
6085 * alphanbsd-tdep.c: Include "target.h".
6086 * mn10300-tdep.c: Include "target.h".
6087 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
6089 2008-04-06 Vladimir Prus <vladimir@codesourcery.com>
6091 Fix breakpoint condition that use member variables.
6092 * valops.c (check_field): Remove.
6093 (check_field_in): Rename to check_field.
6094 (value_of_this): Use la_name_of_this.
6095 * value.h (check_field): Adjust prototype.
6097 * language.h (la_value_of_this): Rename to la_name_of_this.
6098 * language.c (unknown_language_defn): Specify "this" for
6100 (auto_language_defn): Likewise.
6101 (local_language_defn): Likewise.
6102 * ada-lang.c (ada_language_defn): Adjust comment.
6103 * c-lang.c (c_language_defn): Adjust comment.
6104 (cplus_language_defn): Specify "this" for name_of_this.
6105 (asm_language_defn): Adjust comment.
6106 (minimal_language_defn): Adjust comment.
6107 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
6108 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
6109 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
6110 * objc-lang.c (objc_language_defn): Specify "self" for
6112 * p-lang.c (pascal_language_defn): Specify "this" for
6114 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
6116 * symtab.c (lookup_symbol_aux): Lookup "this" in the
6117 proper scope, and check for field in type of "this", without
6118 trying to create a value.
6120 2008-04-04 Pedro Alves <pedro@codesourcery.com>
6122 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
6123 (mi_error_message): Delete declaration.
6124 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
6125 returning MI_CMD_ERROR.
6126 * mi/mi-main.c (mi_error_message): Delete.
6127 (mi_cmd_exec_interrupt):
6128 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6129 (mi_cmd_thread_info): Call error instead of returning
6131 (mi_cmd_data_list_register_values): Call error instead of
6132 returning MI_CMD_ERROR. Adapt to new get_register interface.
6133 (get_register): Change return typo to void. Call error instead of
6134 returning MI_CMD_ERROR.
6135 (mi_cmd_data_write_register_values): Call error instead of
6136 returning MI_CMD_ERROR.
6137 (mi_cmd_list_features): Return MI_CMD_DONE.
6138 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
6139 (mi_execute_command): Always print exceptions with -error.
6141 2008-04-04 Joel Brobecker <brobecker@adacore.com>
6143 * NEWS: Mention new commands set/show multiple-symbols.
6145 2008-04-03 Joel Brobecker <brobecker@adacore.com>
6147 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
6148 (multiple_symbols_cancel): New constants.
6149 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
6150 (multiple_symbols_select_mode): New function.
6151 (_initialize_symtab): Add new set/show multiple-symbols commands.
6152 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
6153 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
6154 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
6156 * linespec.c (decode_line_2): Likewise.
6158 2008-04-03 Doug Evans <dje@sebabeach.org>
6160 * symtab.h (enum free_code): Delete free_contents, unused.
6161 * symmisc.c (free_symtab_block): Delete.
6162 (free_symtab, case free_code): Delete.
6164 2008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
6166 * valops.c (value_cast_structs): New function. Cast related
6167 STRUCT types up/down and return cast value. The body of this
6168 function comes mostly from value_cast_pointers.
6169 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
6170 to value_cast_structs. Now value_cast_pointers needs only create
6171 appropriate reference after using value_cast_structs for actual
6173 (value_cast): Handle references.
6175 2008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
6177 * MAINTAINERS: Added myself to section Write After Approval.
6179 2008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6181 * ia64-tdep.c (examine_prologue): Correct array access.
6183 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
6185 * cp-support.c (first_component_command): Return if no arguments.
6187 2008-03-28 Carlos O'Donell <carlos@codesourcery.com>
6189 * ser-mingw.c (ser_windows_open): Open requested name.
6191 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
6193 * MAINTAINERS: Added myself.
6195 2008-03-28 Pedro Alves <pedro@codesourcery.com>
6197 * target.c (find_default_run_target): Allow a NULL `do_mesg'
6198 parameter. If it is NULL, don't call error.
6199 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
6200 `do_mesg' parameter to find_default_run_target. If no target was
6203 2008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
6205 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
6206 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
6207 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
6209 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
6211 2008-03-27 Joel Brobecker <brobecker@adacore.com>
6215 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6217 * features/Makefile (%.dat): Set xmltarget to the base filename
6218 of the XML source, without subdirectory.
6219 * regformats/rs6000/powerpc-32.dat: Regenerate.
6220 * regformats/rs6000/powerpc-64.dat: Regenerate.
6221 * regformats/rs6000/powerpc-e500.dat: Regenerate.
6223 2008-03-27 Markus Deuling <deuling@de.ibm.com>
6225 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
6228 2008-03-27 Nick Roberts <nickrob@snap.net.nz>
6230 * mi/mi-main.c (enum captured_mi_execute_command_actions):
6231 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
6233 2008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6235 * objfiles.h (struct objfile): New GDBARCH member.
6236 (get_objfile_arch): Add prototype.
6237 * objfiles.c: Include "arch-utils.h".
6238 (allocate_objfile): Look up gdbarch associated with bfd.
6239 (get_objfile_arch): New function.
6240 * Makefile (objfiles.o): Update dependencies.
6242 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
6244 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
6246 (locexpr_describe_location): Replace current_gdbarch by
6248 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
6249 (dwarf2_add_field): Likewise.
6250 (read_tag_pointer_type): Likewise.
6251 (read_base_type): Likewise.
6252 (new_symbol): Likewise.
6254 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
6255 (decode_base_type, decode_function_type): Likewise.
6256 (coff_read_struct_type, coff_read_enum_type): Likewise.
6257 (coff_symtab_read): Replace current_gdbarch by objfile arch.
6258 (decode_base_type): Likewise.
6259 (coff_read_enum_type): Likewise.
6260 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
6261 (coff_read_enum_type): Likewise.
6263 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
6264 (end_psymtab): Likewise.
6265 (process_one_symbol): Likewise.
6267 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
6268 (parse_procedure): Likewise.
6269 (parse_partial_symbols): Likewise.
6271 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
6273 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
6274 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
6276 (read_range_type): Replace current_gdbarch by objfile arch. Replace
6277 static range_index_type by built-in type.
6278 (read_one_struct_field): Replace current_gdbarch by objfile arch.
6279 (read_enum_type): Likewise.
6281 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
6284 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
6286 * varobj.h (varobj_floating_p): Declare.
6287 * varobj.c (varobj_floating_p): New.
6288 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
6289 '@' as the name, update all floating varobjs.
6291 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
6293 * varobj.c (struct varobj_root): Rename use_selected_frame to
6294 floating, and clarify the meaning.
6295 (varobj_create, varobj_update, new_root_variable): Adjust.
6296 (value_of_root): Don't use type_changed as in variable,
6298 (c_value_of_root): Adjust.
6300 2008-03-25 Pedro Alves <pedro@codesourcery.com>
6302 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
6304 (linux_nat_wait): Add main lwp to gdb's thread list.
6305 * linux-thread-db.c (find_new_threads_callback): Also attach to
6306 already listed threads which thread_db didn't know about yet.
6308 2008-03-25 Pedro Alves <pedro@codesourcery.com>
6310 * linux-nat.c (drain_queued_events): Fix comment typo.
6311 (linux_nat_attach): In async mode, don't rely on storing a pending
6312 status. Instead place the wait status on the pipe.
6313 (linux_nat_resume): Remove unreacheable shortcut code in async
6315 (stop_wait_callback): In async mode, don't store pending status.
6316 Instead, cancel breakpoints or resend the signal appropriatelly.
6317 (cancel_breakpoint): New, refactored from
6318 cancel_breakpoints_callback.
6319 (cancel_breakpoints_callback): Call cancel_breakpoint.
6320 (pipe_to_local_event_queue): Remove special token processing.
6321 (linux_nat_wait): Issue an internal error if a pending status is
6322 found in async mode.
6324 2008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
6326 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
6328 2008-03-24 Nick Roberts <nickrob@snap.net.nz>
6329 Vladimir Prus <vladimir@codesourcery.com>
6331 * varobj.c (struct varobj_root): New component thread_id.
6332 (varobj_get_thread_id, check_scope): New functions.
6333 (c_value_of_root): Use check_scope. Switch to the
6334 proper thread if necessary.
6336 * varobj.h (varobj_get_thread_id): New extern.
6338 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
6340 2008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
6343 * top.c: Revert 2008-03-21 changes.
6345 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
6347 * thread.c (make_cleanup_restore_current_thread): Make it
6349 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
6350 * varobj.c (varobj_update): Don't save/restore frame.
6351 (c_value_of_root): Save/restore thread and frame here,
6352 using make_cleanup_restore_current_thread.
6353 * Makefile.in: Update dependecies.
6355 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
6357 * varobj.c (struct varobj_root): Clarify
6358 comment on the frame field.
6359 (varobj_create): Don't set frame if we have no
6362 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
6365 Suggested by Jan Kratochvil:
6366 * top.c (gdb_rl_operate_and_get_next_completion): Call
6367 rl_redisplay_function.
6368 (gdb_rl_redisplay): New.
6369 (init_main): Set rl_redisplay_function.
6371 2008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
6373 * aix-thread.c (pdc_read_regs): Fix compiler warning.
6374 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
6375 (store_regs_kernel_thread): Likewise.
6377 2008-03-21 Pedro Alves <pedro@codesourcery.com>
6379 Linux native async support.
6381 * target.h (struct target_ops): Delete to_async_mask_value and add
6383 (target_is_async_p, target_async): Formatting.
6384 (target_async_mask_value): Delete.
6385 (target_async_mask): Delete function declaration, and add new
6386 target macro with the same name.
6388 * target.c (update_current_target): Replace to_async_mask_value by
6389 to_async_mask. Default to_async_mask to return_one.
6390 (target_async_mask): Delete.
6391 (find_default_can_async_p, find_default_is_async_p): New.
6392 (init_dummy_target): register find_default_can_async_p and
6393 find_default_is_async_p on the dummy target.
6395 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
6396 (debug_linux_nat_async): New global.
6397 (show_debug_linux_nat_async): New function.
6398 (linux_nat_async_enabled, linux_nat_async_mask_value)
6399 (linux_nat_event_pipe, linux_nat_num_queued_events)
6400 (linux_nat_async_events_enabled): New globals.
6401 (struct waitpid_result): New struct.
6402 (waitpid_queue): New global.
6403 (queued_waitpid, push_waitpid, drain_queued_events): New.
6404 (my_waitpid): Call queued_waitpid.
6405 (linux_child_follow_fork): Disable async events during the call.
6406 (blocked_mask): Delete.
6407 (sync_sigchld_action, async_sigchld_action): New globals.
6408 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
6409 async mode, block events during the call.
6410 (linux_nat_create_inferior): New.
6411 (linux_nat_attach): In sync mode, restore the mask states. In
6412 async mode, wake the event loop immediatelly.
6413 (detach_callback): Drain all queued events of the lwp we're
6415 (linux_nat_detach): Block async mode, and drain events of the main
6417 (linux_nat_resume): If in async mode, mask async events during the
6418 call. If short circuiting, force event loop to wake up. If
6419 resuming, set target_executing, and register target events in the
6421 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
6422 (linux_nat_wait): In async mode, block events during the call.
6423 Only enable/disable passing SIGINT to the inferior in sync mode.
6424 Get events from local waitpid queue. If no interesting events was
6425 found, return to events loop. Reregister target events in the
6426 event loop on exit. In sync mode, no need to reblock SIGCHLD.
6427 (linux_nat_kill): Disable events on entry.
6428 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
6429 here. Detach async mode from the event loop if there are no more
6430 forks available, otherwise leave it on.
6431 (sigchld_handler): Assure this is called only in sync mode.
6432 (linux_async_permitted, linux_async_permitted_1): New globals.
6433 (set_maintenance_linux_async_permitted)
6434 (show_maintenance_linux_async_permitted): New functions.
6435 (linux_nat_is_async_p, linux_nat_can_async_p)
6436 (linux_nat_async_mask): New.
6437 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
6438 (get_pending_events, async_sigchld_handler): New.
6439 (linux_nat_async_events): New.
6440 (async_terminal_is_ours): New global.
6441 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
6442 (async_client_callback, async_client_context): New.
6443 (linux_nat_async_file_handler, linux_nat_async)
6444 (linux_nat_disable_async, linux_nat_enable_async): New.
6445 (linux_nat_add_target): Register linux_nat_create_inferior,
6446 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
6447 linux_nat_async_mask, linux_nat_terminal_inferior and
6448 linux_nat_terminal_ours.
6449 (_initialize_linux_nat): Remove local action variable, and update
6450 code that used it to use sync_sigchld_action. Add new
6451 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
6452 set/show command in the maintenance class. Add new "linux-async"
6453 maintenance set/show command. Block SIGCHLD by default. Setup
6454 async_sichld_action, and sync_sigchld_action. Install the default
6456 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
6459 * linux-thread-db.c (re_check_for_thread_db): New.
6460 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
6461 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
6462 (thread_db_async_mask): New.
6463 (init_thread_db_ops): Register thread_db_can_async_p,
6464 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
6466 * remote.c (remote_async_mask_value): New.
6467 (remote_return_zero): New.
6468 (init_remote_ops): Register remote_return_zero as callbacks of
6469 to_can_async_p and to_is_async_p.
6470 (remote_can_async_p, remote_is_async_p, remote_async): Update to
6471 use remote_async_mask_value.
6472 (remote_async_mask): New.
6473 (init_remote_async_ops): Remove to_async_mask_value setting and
6474 register remote_async_mask as to_async_mask callback in
6477 * Makefile.in (linux-nat.o): Update.
6479 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
6481 * gdbthread.h (add_thread_with_info): New.
6482 * linux-thread-db.c: Add some documentation.
6483 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
6484 (struct private_thread_info): Remove th_valid and ti_valid.
6485 Replace ti with tid.
6486 (thread_get_info_callback): Do not add TID to the new ptid. Do
6488 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
6489 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
6491 (attach_thread): Handle an already-existing thread. Use
6492 add_thread_with_info. Cache the th and tid.
6493 (detach_thread): Verify that private was set. Remove verbose
6494 argument and printing. Update caller.
6495 (thread_db_detach): Do not adjust inferior_ptid.
6496 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
6497 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
6498 (thread_db_wait): Do not use lwp_from_thread.
6499 (thread_db_pid_to_str): Use the cached TID.
6500 (thread_db_extra_thread_info): Check that private is set.
6501 (same_ptid_callback): Delete.
6502 (thread_db_get_thread_local_address): Do not use it or check
6503 is_thread. Check that private is set. Assume that the thread
6504 handle is already cached.
6505 (init_thread_db_ops): Remove to_resume and to_kill.
6506 * thread.c (add_thread_with_info): New.
6507 (add_thread): Use it.
6508 * linux-nat.c (find_thread_from_lwp): Delete.
6509 (exit_lwp): Do not use it. Check print_thread_events. Print before
6510 deleting the thread.
6511 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
6512 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
6513 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
6514 printf_unfiltered for thread exits.
6515 * procfs.c (procfs_wait): Likewise.
6517 2008-03-21 Chris Demetriou <cgd@google.com>
6519 * symtab.c (rbreak_command): Quote symbol name before passing
6520 it to break_command.
6522 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
6524 * eval.c (evaluate_subexp_for_address): Clarify error message.
6525 Use value_must_coerce_to_target.
6526 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
6527 * valops.c (value_assign): Call value_coerce_to_target when
6528 assigning to anything but internalvars. Leave GDB-side arrays
6529 as arrays when assigning to internalvars.
6530 (value_must_coerce_to_target, value_coerce_to_target): New.
6531 (value_coerce_array, value_addr): Call value_coerce_to_target.
6532 (value_array): Create the array in GDB's memory instead of
6534 * value.h (value_must_coerce_to_target, value_coerce_to_target):
6537 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
6539 * top.c (quit_confirm): Warn that we will kill the program.
6541 2008-03-19 Pedro Alves <pedro@codesourcery.com>
6543 * inflow.c (terminal_ours_1): Guard access to
6544 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
6546 2008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
6547 Jim Blandy <jimb@codesourcery.com>
6548 Daniel Jacobowitz <drow@false.org>
6550 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
6551 (dwarf2_read_address): Update prototype.
6553 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
6554 (signed_address_type): Likewise.
6555 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
6556 (execute_stack_op): Update calls to unsigned_address_type,
6557 signed_address_type and dwarf2_read_address. Fix implementation
6558 of DW_OP_deref_size.
6560 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
6561 (dwarf2_per_cu_addr_size): Likewise.
6562 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
6563 (struct dwarf2_loclist_baton): Likewise.
6565 * dwarf2loc.c (find_location_expression): Update calls to
6566 dwarf2_read_address. Use dwarf2_per_cu_objfile and
6567 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
6568 (locexpr_describe_location): Likewise.
6569 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
6570 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
6571 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
6572 to dwarf2_per_cu_addr_size (per_cu).
6573 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
6574 (loclist_read_variable): Likewise.
6575 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
6577 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
6578 instead of baton->objfile.
6579 (dwarf2_per_cu_obfile): New function.
6580 (dwarf2_per_cu_addr_size): Likewise.
6582 * dwarf2-frame.c (struct comp_unit): Move higher.
6583 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
6584 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
6585 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
6586 parameter by using fde->eh_frame_p. Use read_encoded_value
6587 to implement DW_CFA_set_loc.
6588 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
6589 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
6590 execute_stack_op and execute_cfa_program.
6591 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
6592 (size_of_encoded_value): Remove.
6593 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
6594 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
6595 (add_cie): Set cie->unit backlink.
6596 (decode_frame_entry_1): Set cie->addr_size. Update calls to
6598 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
6600 2008-03-17 Markus Deuling <deuling@de.ibm.com>
6602 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
6603 gdbarch_bfd_arch_info.
6605 2008-03-17 Joel Brobecker <brobecker@adacore.com>
6607 * aix-thread.c (pdc_read_regs): Minor reformatting.
6609 2008-03-17 Vladimir Prus <vladimir@codesourcery.com>
6611 * thread.c (print_thread_info): Don't insist
6612 on having current thread if there are no
6615 2008-03-17 Pedro Alves <pedro@codesourcery.com>
6617 * infcmd.c (attach_command_post_wait)
6618 (attach_command_continuation): New.
6619 (attach_command): Support background async execution, and async
6620 execution in synchronous mode.
6622 2008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
6624 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
6625 * symmisc.c (dump_symtab_1): Likewise.
6626 * wrapper.c (gdb_value_struct_elt): Likewise.
6628 2008-03-17 Pedro Alves <pedro@codesourcery.com>
6630 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
6632 2008-03-17 Pedro Alves <pedro@codesourcery.com>
6634 * linux-nat.c (linux_nat_filter_event): New, refactored from
6636 (linux_nat_wait): Call linux_nat_filter_event.
6638 2008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
6640 * top.c (execute_command): Fix uninitialized variable error.
6642 2008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
6644 * Makefile.in (amd64nbsd-nat.o): New dependency.
6645 * amd64nbsd-nat.c: Include "nbsd-nat.h".
6646 (_initialize_amd64nbsd_nat): Update target vector to use
6647 nbsd_pid_to_exec_file.
6648 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
6650 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
6652 Remove ignoring leading exec events code.
6653 * fork-child.c (startup_inferior): Do not set
6654 inferior_ignoring_leading_exec_events.
6655 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
6656 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
6657 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
6658 (handle_inferior_event): Remove code for ignoring leading exec
6660 * target.c (update_current_target): Do not inherit, or default,
6661 to_reported_exec_events_per_exec_call.
6662 (debug_to_reported_exec_events_per_exec_call): Remove.
6663 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
6664 * target.h (target_reported_exec_events_per_exec_call): Remove.
6665 (struct target): Remove the to_reported_exec_events_per_exec_call
6668 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
6670 Implement -thread-info.
6671 * gdbthread.h (print_thread_info): Declare.
6673 * thread.c (print_thread_info): New, extracted
6674 from info_threads_command and adjusted to
6675 work for CLI and MI.
6676 (info_threads_command): Use print_thread_info.
6677 * Makefile.in: Update dependencies.
6679 * mi/mi-cmds.c (mi_cmds): Specify a handler
6681 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
6682 * mi/mi-main.c (mi_cmd_thread_info): New.
6683 (mi_cmd_list_features): Include 'thread-info'.
6685 2008-03-14 Kevin Buettner <kevinb@redhat.com>
6687 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
6688 to decide whether to match instruction patterns using "sw" and "sd".
6690 2008-03-14 Pedro Alves <pedro@codesourcery.com>
6692 * infcmd.c (jump_command): Postpone disabling stdin until after
6695 2008-03-14 Pedro Alves <pedro@codesourcery.com>
6697 * inflow.c (gdb_getpgrp): New.
6698 (gdb_has_a_terminal): Use get_getpgrp.
6699 (terminal_ours_1): If attach_flag is set, don't refetch
6700 inferior_process_group.
6702 2008-03-14 Pedro Alves <pedro@codesourcery.com>
6704 * features/library-list.dtd: Allow "section" elements as children
6705 of "library". Add "section" element and describe its attributes.
6707 * solib-target.c (struct lm_info): Add section_bases member.
6708 (library_list_start_segment): Error out if seen a section element.
6709 (library_list_start_section): New.
6710 (library_list_end_library): New.
6711 (solib_target_free_library_list): Free section_bases.
6712 (section_attributes): New.
6713 (library_children): Make "segment" optional. Add "section" child.
6714 (library_list_children): Register library_list_end_library.
6715 (solib_target_relocate_section_addresses): Handle section bases.
6717 * NEWS: Mention new qXfer:libraries:read section offsets support.
6719 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
6721 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
6722 (make_exec_error_cleanup): Remove declarations.
6723 * utils.c (exec_error_cleanup_chain): Remove.
6724 (do_exec_error_cleanups, discard_exec_error_cleanups)
6725 (make_exec_error_cleanup): Remove.
6726 * event-loop.c (start_event_loop): Adjust call to
6728 * event-top.c (async_enable_stdin): Remove the paramater dummy.
6729 (async_disable_stdin): Don't register async_enable_stdin via
6731 * inf-loop.c (inferior_event_handler): Don't
6732 call do_exec_error_cleanups. Call async_enable_stdin instead.
6733 * event-loop.c (start_event_loop): Adjust call to
6735 * tui/tui-interp.c (tui_command_loop): Adjust call to
6738 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
6741 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
6742 * breakpoint.c (bpstat_do_actions): In async mode,
6743 don't jump to top expecting stop_bpstat to be already
6745 * event-loop.c (start_event_loop): Call async_enable_stdin
6747 * event-top.c (async_enable_stdin): Do nothing if sync_execution
6749 (command_handler): Do not setup continuation here.
6750 (command_line_handler_continuation): Move to...
6751 * top.c (command_line_handler_continuation): ... here.
6752 (execute_command): In async mode, register continuation.
6753 Don't check frame's language in running in async mode.
6754 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
6755 * inf-loop.c (complete_execution): Inline into...
6756 (inferior_event_handler): ... here. Clear target_executing before
6757 doing any cleanups. Don't try to show prompt if the target was
6759 * infcmd.c (signal_command): Add support for async mode.
6760 (finish_command): Only add continuation if the target was
6761 successfully resumed.
6762 * remote.c (init_async_opts): Register to_get_thread_local_address
6764 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
6765 with sync_execution.
6766 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
6769 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
6771 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
6772 * exec.c (exec_bfd_mtime): Define.
6773 (exec_close): Clear it.
6774 (exec_file_attach): Set it.
6775 * gdbcore.h (exec_bfd_mtime): Declare.
6776 * source.c (find_source_lines): Do not use bfd_get_mtime.
6778 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
6780 * top.c (simplified_command_loop): Remove.
6782 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
6784 Remove unused remote.c hooks.
6785 * remote.c (deprecated_target_resume_hook)
6786 (deprecated_target_wait_loop_hook): Remove.
6787 (remote_resume): Do not call deprecated_target_resume_hook.
6788 (remote_wait): Do not call deprecated_target_wait_loop_hook.
6789 (remote_async_wait): Likewise.
6791 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
6793 Implement MI notification for new threads.
6794 * doc/observer.texi (new_thread): Document.
6795 * observer.sh: Forward declare struct thread_info.
6796 * thread.c (add_thread): Notify observer.
6798 * interps.h (interp_init_ftype): New parameter
6800 (interp_set): Likewise.
6801 (top_level_interpreter_data): Declare.
6802 * interps.c (interp_set): New parameter top_level.
6803 Pass it to interpreter's init function. Remember
6804 top level interpreter.
6805 (interpreter_exec_cmd): Adjust.
6806 (top_level_interpreter_data): New.
6807 * main.c (captured_main): Pass 1 for top_level
6808 parameter of interp_set.
6809 * cli/cli-interp.c (cli_interpreter_init): New
6810 parameter top_level.
6811 * tui/tui-interp.c (tui_init): New parameter top_level.
6813 * mi/mi-interp.c (mi_new_thread): New.
6814 (mi_interpreter_init): If top level, register
6815 observer for new threads.
6817 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
6819 2008-03-14 Pedro Alves <pedro@codesourcery.com>
6821 * top.c (execute_command): Disable break and stop
6822 commands in async mode.
6824 2008-03-14 Pedro Alves <pedro@codesourcery.com>
6827 2008-03-14 Pedro Alves <pedro@codesourcery.com>
6828 * inf-loop.c (inferior_event_handler): Don't include remote.h.
6829 Call target_stop in the INF_QUIT_REQ case.
6830 * Makefile.in (inf-loop.o): Update.
6832 2008-03-14 Pedro Alves <pedro@codesourcery.com>
6834 * inf-loop.c (inferior_event_handler): Don't include remote.h.
6835 Call target_stop in the INF_QUIT_REQ case.
6836 * Makefile.in (inf-loop.o): Update.
6838 2008-03-14 Pedro Alves <pedro@codesourcery.com>
6840 * top.c (execute_command): Enable break, info and interrupt
6841 commands in async mode.
6843 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
6844 Daniel Jacobowitz <dan@codesourcery.com>
6846 * breakpoint.h (breakpoint_restore_shadows): New
6848 * breakpoint.c (breakpoint_restore_shadows): New.
6849 (read_memory_nobpt): Delete.
6850 * gdbcore.h (read_memory_nobpt): Delete declaration.
6851 * target.c (memory_xfer_partial): Call
6852 breakpoint_restore_shadows.
6853 (restore_show_memory_breakpoints)
6854 (make_show_memory_beakpoints_cleanup): New.
6855 (show_memory_breakpoints): New.
6856 * target.h (make_show_memory_beakpoints_cleanup): Declare.
6857 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
6858 Make sure we see memory breakpoints when checking if
6859 breakpoint is still there.
6860 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
6861 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
6862 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
6863 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
6865 2008-03-12 Pedro Alves <pedro@codesourcery.com>
6867 * thread.c (add_thread): Use printf_unfiltered to print.
6869 2008-03-12 Joel Brobecker <brobecker@gnat.com>
6871 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
6872 that is true only on x86-solaris and x86_64-solaris.
6873 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
6874 with proc_get_LDT_entry.
6876 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
6878 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
6879 * config.in, configure: Regenerate.
6880 * fork-child.c (fork_inferior): Call create_tty_session.
6881 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
6882 (create_tty_session): New function.
6883 * terminal.h: Declare create_tty_session.
6885 2008-03-12 Alan Modra <amodra@bigpond.net.au>
6888 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
6889 * mipsread.c: Include elf/internal.h.
6890 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
6893 2008-03-11 Markus Deuling <deuling@de.ibm.com>
6895 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
6896 to get at the current architecture and at the target specific vector.
6897 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
6898 remove define of I387_ST0_REGNUM.
6900 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
6902 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
6903 get at the current architecture
6904 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
6907 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
6908 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
6910 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
6911 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
6912 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
6914 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
6915 at the target specific vector.
6917 (i386_get_longjmp_target): Use get_frame_arch to get at the current
6918 architecture. Use gdbarch_tdep to get at the target specific vector.
6920 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
6921 update caller. Use gdbarch_tdep to get at the target specific vector.
6923 (i386_register_to_value: Use get_frame_arch to get at the current
6926 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
6929 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
6930 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
6931 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
6932 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
6934 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
6937 (i387_convert_register_p, i387_register_to_value,
6938 i387_value_to_register): Update call for i386_fp_regnum_p.
6940 * i387-tdep.h: Remove comment.
6941 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
6942 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
6943 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
6944 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
6945 I387_MXCSR_REGNUM): Add target specific vector as parameter.
6947 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
6949 * Makefile.in (fork-child.o): Update.
6950 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
6951 argument. Gather all gdbserver features together.
6952 * fork-child.c (exec_wrapper): New variable.
6953 (fork_inferior): Use it.
6954 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
6955 (unset_exec_wrapper_command, _initialize_fork_child): New.
6957 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
6959 * source.c (directory_command): Modify the determination of
6960 condition of terminal "from_tty".
6962 2008-03-10 Matt Rice <ratmice@gmail.com>
6964 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
6966 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
6968 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
6969 of the data passing to strtoulst function.
6970 (info_spu_signal_command): Likewise.
6972 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
6974 * mi/mi-interp.c (mi_command_loop): Remove
6977 2008-03-07 Joel Brobecker <brobecker@adacore.com>
6979 * remote.c (extended_remote_attach_1): Make local variable pid an int
6982 2008-03-07 Joel Brobecker <brobecker@adacore.com>
6984 * solib-svr4.c (svr4_same_1): New function, originally extracted
6985 from svr4_same and expanded to handle the sparc64 case.
6986 (svr4_same): Move up and reimplement using svr4_same_1.
6987 (enable_break): Use svr4_same_1 to do shared library name comparisons.
6989 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
6991 * MAINTAINERS: Move self to Paper trail.
6993 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
6995 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
6996 * event-loop.c (call_async_signal_handler): New.
6997 * event-loop.h (call_async_signal_handler)
6998 (gdb_call_async_signal_handler): Declare.
6999 (mark_async_signal_handler): Add comments.
7000 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
7001 * mingw-hdep.c (sigint_event, sigint_handler): New.
7002 (gdb_select): Use them. Wait for the readline signal handler
7004 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
7005 * posix-hdep.c (gdb_call_async_signal_handler): New function.
7006 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
7008 (remote_fileio_ctrl_c_signal_handler): Use
7009 gdb_call_async_signal_handler.
7010 (initialize_remote_fileio): Initialize sigint_fileio_token.
7011 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
7012 not initialize tokens here.
7013 (handle_remote_sigint_twice): Likewise. Reinstall
7014 handle_remote_sigint.
7015 (async_remote_interrupt_twice): Just call interrupt_query.
7016 (cleanup_sigint_signal_handler): Do not delete tokens.
7017 (remote_interrupt, remote_interrupt_twice): Use
7018 gdb_call_async_signal_handler.
7019 (interrupt_query): Reinstall the default signal handler.
7020 (_initialize_remote): Initialize tokens here.
7022 2008-03-04 Joel Brobecker <brobecker@adacore.com>
7024 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
7025 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
7026 Change the type of the lr register to code_ptr.
7027 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
7028 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
7029 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
7030 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
7031 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
7032 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
7033 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
7035 2008-03-03 James E. Wilson <wilson@tuliptree.org>
7037 * MAINTAINERS: Update my email address.
7039 2008-03-03 Keith Seitz <keiths@redhat.com>
7041 From Dave Murphy <davem@devkitpro.org>:
7042 * configure.ac: Set tcl configdir to win under mingw.
7043 * configure: Regenerate.
7045 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
7047 * breakpoint.c (fetch_watchpoint_value): New function.
7048 (update_watchpoint): Set and clear val_valid. Use
7049 fetch_watchpoint_value. Handle unreadable values on the
7050 value chain. Correct check for user-requested array watchpoints.
7051 (breakpoint_init_inferior): Clear val_valid.
7052 (watchpoint_value_print): New function.
7053 (print_it_typical): Use it. Do not free or clear old_val. Print
7054 watchpoints even if old_val == NULL.
7055 (watchpoint_check): Use fetch_watchpoint_value. Check for values
7056 becoming readable or unreadable.
7057 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
7058 (do_enable_watchpoint): Likewise.
7059 * breakpoint.h (struct breakpoint): Update comment for val. Add
7061 * NEWS: Mention watchpoints on inaccessible memory.
7063 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
7065 * Makefile.in (i386-nat.o): Update.
7066 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
7067 i386_use_watchpoints.
7068 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
7069 i386_use_watchpoints.
7070 * i386-nat.c (i386_stopped_data_address): Take two arguments.
7071 (i386_stopped_by_watchpoint): Update call.
7072 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
7073 * config/i386/nm-i386.h: Conditionalize definitions on
7074 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
7075 (i386_use_watchpoints): Declare.
7076 (i386_stopped_data_address): Update.
7077 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
7078 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
7080 2008-02-29 Joel Brobecker <brobecker@adacore.com>
7082 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
7083 * version.in: Bump version to 6.8.50.20080229-cvs.
7085 2008-02-28 Markus Deuling <deuling@de.ibm.com>
7087 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
7090 2008-02-28 Tom Tromey <tromey@redhat.com>
7092 * infcmd.c (notice_args_read): Print result of get_inferior_args.
7094 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
7096 * infcmd.c (kill_if_already_running): Make static. Use
7097 target_require_runnable.
7098 * target.c (target_require_runnable): New.
7099 * target.h (target_require_runnable): Declare.
7101 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
7103 * frame.c (reinit_frame_cache): Only annotate if frames were
7106 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
7108 * regformats/reg-ppc.dat: Rename "ps" to "msr".
7109 * regformats/reg-ppc64.dat: Likewise.
7111 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
7113 * features/Makefile (%.dat): Emit xmltarget statement.
7115 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
7116 Generate code to set gdbserver_xmltarget in init_registers_${name}.
7118 * regformats/arm-with-iwmmxt.dat: Regenerate.
7119 * regformats/mips64-linux.dat: Regenerate.
7120 * regformats/mips-linux.dat: Regenerate.
7121 * regformats/rs6000/powerpc-32.dat: Regenerate.
7122 * regformats/rs6000/powerpc-64.dat: Regenerate.
7123 * regformats/rs6000/powerpc-e500.dat: Regenerate.
7125 * regformats/reg-arm.dat: Add xmlarch statement.
7126 * regformats/reg-i386.dat: Likewise.
7127 * regformats/reg-i386-linux.dat: Likewise.
7128 * regformats/reg-x86-64-linux.dat: Likewise.
7129 * regformats/reg-spu.dat: Likewise.
7131 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
7133 * remote.c (remote_wait, remote_async_wait): Stop if we receive
7136 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
7138 * utils.c (debug_timestamp): New.
7139 (vfprintf_unfiltered): Print timestamps if requested.
7140 (show_debug_timestamp): New.
7141 (initialize_utils): Register "set debug timestamp".
7142 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
7144 2008-02-27 Joel Brobecker <brobecker@adacore.com>
7146 * breakpoint.c (skip_prologue_sal): New function.
7147 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
7148 computed from a line number.
7150 2008-02-27 Joel Brobecker <brobecker@adacore.com>
7152 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
7153 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
7154 Set PC register type to "code_ptr".
7155 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
7156 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
7157 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
7158 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
7159 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
7160 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
7161 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
7164 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
7166 * regformats/regdat.sh: Rename init_registers function in
7167 generated file to init_registers_${name}.
7169 * regformats/reg-crisv32.dat: Set "name" to crisv32.
7170 * regformats/reg-ppc64.dat: Set "name" to ppc64.
7171 * regformats/reg-s390x.dat: Set "name" to s390x.
7173 2008-02-26 Greg Law <glaw@undo-software.com>
7175 * regcache.c (registers_changed): Call reinit_frame_cache.
7177 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
7179 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
7180 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
7181 and svr4_fetch_objfile_link_map.
7182 * Makefile.in (sh-linux-tdep.o): Update.
7184 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
7186 * amd64-tdep.c (amd64_classify): Add support for decimal float
7188 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
7189 use the struct return convention.
7191 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
7193 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
7194 to old format. Discard breakpoint address if shared library is
7196 (breakpoint_1): Adjust formatting of table header accordingly.
7198 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
7200 * remote.c (remote_get_threadlist): If the response
7201 is empty, don't try to parse it.
7203 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
7205 Unbreak 'target async'.
7206 * serial.c (serial_async): Set the
7207 handler function before enabling async
7210 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
7212 * solib-svr4.c (enable_break): Convert r_brk to a code address.
7214 2008-02-21 Pedro Alves <pedro@codesourcery.com>
7216 * remote.c (extended_remote_attach_1): Set attach_flag.
7217 (extended_remote_create_inferior_1): Clear attach_flag.
7219 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
7221 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
7223 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
7224 * solib-svr4.c (solib_svr4_r_brk): New.
7225 (open_symbol_file_object, svr4_current_sos): Always check the
7227 (svr4_fetch_objfile_link_map): Do not set debug_base.
7228 (enable_break): Use r_brk if it is set.
7229 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
7230 (svr4_lp64_fetch_link_map_offsets): Likewise.
7231 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
7233 2008-02-20 Markus Deuling <deuling@de.ibm.com>
7234 Mark Kettenis <kettenis@gnu.org>
7236 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
7237 trad_frame_saved_reg.
7238 (trad-frame.h): New include.
7240 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
7241 instead of frame_obstack_zalloc.
7242 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
7244 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
7246 2008-02-20 Markus Deuling <deuling@de.ibm.com>
7248 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
7249 from disassemble_info instead of gdbarch_byte_order.
7251 * mips-tdep.c (gdb_print_insn_mips): Likewise.
7252 * arm-tdep.c (gdb_print_insn_arm): Likewise.
7254 2008-02-20 Markus Deuling <deuling@de.ibm.com>
7256 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
7257 gdbarch as parameter.
7259 * gdbarch.{c,h}: Regenerate.
7261 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
7263 * mem-break.c (default_memory_insert_breakpoint)
7264 (default_memory_remove_breakpoint): Likewise.
7265 * target.h (default_memory_remove_breakpoint)
7266 (default_memory_insert_breakpoint): Likewise.
7268 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
7269 parameter. Replace current_gdbarch by gdbarch.
7270 * m32r-tdep.c (m32r_memory_insert_breakpoint)
7271 (m32r_memory_remove_breakpoint): Likewise.
7273 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
7275 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
7277 2008-02-19 Joel Brobecker <brobecker@adacore.com>
7279 * NEWS: Add entry describing Add support improvements.
7281 2008-02-18 Markus Deuling <deuling@de.ibm.com>
7283 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
7286 2008-02-18 Markus Deuling <deuling@de.ibm.com>
7288 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
7289 register_offset_hack anymore.
7291 * regcache.{c,h} (register_offset_hack): Remove.
7293 2008-02-18 Markus Deuling <deuling@de.ibm.com>
7295 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
7297 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
7298 current_gdbarch by gdbarch.
7299 (hppa64_hpux_find_global_pointer): Likewise.
7300 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
7301 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
7302 find_global_pointer.
7304 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
7306 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
7308 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
7309 of gdbarch_num_regs.
7311 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
7312 replace current_gdbarch by gdbarch.
7313 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
7315 2008-02-18 Markus Deuling <deuling@de.ibm.com>
7317 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
7318 and replace current_gdbarch by gdbarch.
7320 (store_register): Update call for exec_one_dummy_insn.
7321 (fetch_register, store_register): Update call of regmap.
7323 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
7324 parameter and replace current_gdbarch by gdbarch.
7326 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
7327 the current architecture. Update call for getregs_supplies and
7329 (ppcnbsd_fetch_inferior_registers): Likewise.
7331 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
7332 replace current_gdbarch by gdbarch.
7333 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
7334 get_regcache_arch to get at the current architecture. Update call for
7337 2008-02-18 Markus Deuling <deuling@de.ibm.com>
7339 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
7342 2008-02-15 Markus Deuling <deuling@de.ibm.com>
7344 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
7346 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
7348 * NEWS: Mention pending breakpints in MI.
7350 2008-02-14 Markus Deuling <deuling@de.ibm.com>
7352 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
7354 2008-02-13 Markus Deuling <deuling@de.ibm.com>
7356 Add script to build and test GDB using enable-targets=all.
7358 * gdb_buildall.sh: New file.
7360 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
7362 * NEWS (New native configurations): Xtensa GNU/Linux.
7363 (New targets): Xtensa GNU/Linux.
7364 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
7366 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
7367 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
7368 * configure.tgt (xtensa*-*-linux*): New entry.
7369 * xtensa-config.c (xtensa_tdep): New variable.
7370 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
7371 (rmap): Change format based on new macro XTREG.
7372 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
7373 * xtensa-linux-nat.c: New.
7374 * xtensa-linux-tdep.c: New.
7375 * xtensa-xtregs.c: New.
7376 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
7377 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
7378 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
7379 (xtensa_register_t): New field coprocessor.
7380 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
7381 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
7382 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
7383 Update to handle privileged registers.
7384 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
7385 (xtensa_push_dummy_call): Set windowstart register correctly.
7386 (call0_analyze_prologue): Initialize xtensa_default_isa.
7387 (xtensa_derive_tdep): New.
7388 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
7389 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
7390 Call xtensa_derive_tdep().
7391 * config/xtensa/linux.mh: New.
7392 * regformats/reg-xtensa.dat: New.
7394 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
7396 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
7397 (filenames.h): New include.
7398 * Makefile.in (corelow.o): Add dependency for filenames.h.
7400 2008-02-08 Doug Evans <dje@google.com>
7402 * source.c (find_and_open_source): Always rewrite absolute filenames.
7404 2008-02-07 Doug Evans <dje@google.com>
7406 * breakpoint.c: #include "hashtab.h".
7407 (ambiguous_names_p): New fn.
7408 (update_breakpoint_locations): When restoring bp enable status, don't
7409 compare function names if any functions have same name.
7410 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
7412 2008-02-07 Joel Brobecker <brobecker@adacore.com>
7414 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
7415 instead of just a VEC*. Update use of SV.
7416 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
7418 2007-02-07 Joel Brobecker <brobecker@adacore.com>
7420 * NEWS: Put all new commands since gdb-6.7 together.
7422 2007-02-07 Joel Brobecker <brobecker@adacore.com>
7424 * ada-lang.c: #include "vec.h".
7425 (struct string_vector, new_string_vector, string_vector_append):
7427 (char_ptr): New typedef.
7428 (DEF_VEC_P (char_ptr)): New VEC type.
7429 (symbol_completion_add): Update profile to take the new VEC type
7430 instead of the old string_vector structure. Update code accordingly.
7431 (ada_make_symbol_completion_list): Use the new VEC type instead of
7432 the old string_vector structure, and update the code accordingly.
7433 * Makefile.in (ada-lang.o): Add dependency on vec.h.
7435 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
7437 * p-exp.y: Set current_type in missing places.
7438 (leftdiv_is_integer): New static variable.
7439 Typecast right operand of BINOP_DIV to long_double if both operands
7442 2008-02-06 Maciej W. Rozycki <macro@mips.com>
7444 * remote-mips.c (set_breakpoint): Rename to...
7445 (mips_set_breakpoint): ... this.
7446 (clear_breakpoint): Rename to...
7447 (mips_clear_breakpoint): ... this.
7448 (common_breakpoint): Rename to...
7449 (mips_common_breakpoint): ... this.
7450 (check_lsi_error): Rename to...
7451 (mips_check_lsi_error): ... this.
7453 2007-02-05 Joel Brobecker <brobecker@adacore.com>
7455 * language.h (struct language_defn): Add new field
7456 la_make_symbol_completion_list.
7457 * symtab.c (default_make_symbol_completion_list): Renames
7458 make_symbol_completion_list.
7459 (make_symbol_completion_list): New function.
7460 * symtab.h (default_make_symbol_completion_list): Add declaration.
7461 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
7462 (auto_language, local_language): Likewise.
7463 * objc-lang.c (objc_language_defn): Likewise.
7464 * scm-lang.c (scm_language_defn): Likewise.
7465 * m2-lang.c (m2_language_defn): Likewise.
7466 * f-lang.c (f_language_defn): Likewise.
7467 * jv-lang.c (java_language_defn): Likewise.
7468 * p-lang.c (pascal_language_defn): Likewise.
7469 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
7470 (minimal_language_defn): Likewise.
7471 * ada-lang.c (struct string_vector): New structure.
7472 (new_string_vector, string_vector_append, ada_unqualified_name)
7473 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
7474 (ada_make_symbol_completion_list): New functions.
7475 (ada_language_defn): Set la_make_symbol_completion_list.
7476 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
7477 this function is static.
7479 2008-02-05 Kevin Buettner <kevinb@redhat.com>
7481 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
7482 to account for call site optimizations.
7484 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
7486 * tracepoint.c (read_actions): Handle end-of-text indicator
7487 in action list properly. (Committed by Jim Blandy)
7489 2008-02-05 Jim Blandy <jimb@red-bean.com>
7491 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
7492 pseudoregister, not an internal error.
7493 Reported by: Andrzej Zaborowski
7495 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
7497 * varobj.c (c_value_of_variable): Use xstrdup.
7499 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
7501 Update stored rendition of varobj value when format changes.
7502 * varobj.c (varobj_set_display_format): Recomputed
7504 (c_value_of_variable): Return print_value.
7506 2008-02-03 Doug Evans <dje@google.com>
7508 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
7509 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
7510 * valops.c (value_one): New function.
7511 * value.h (value_one): Declare.
7513 Fix argument promotion for binary arithmetic ops for C.
7514 * valarith.c (unop_result_type): New fn.
7515 (binop_result_type): New fn.
7516 (value_binop): Move result type computation to binop_result_type.
7517 (value_pos, value_neg, value_complement): Move result type
7518 computation to unop_result_type.
7521 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
7522 Return basetype, fieldno if found. All callers updated.
7523 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
7525 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
7526 * symfile.h (fill_in_vptr_fieldno): Delete.
7528 2008-02-02 Doug Evans <dje@google.com>
7530 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
7532 * typeprint.c (*): Whitespace cleanup.
7534 2008-02-02 Mark Kettenis <kettenis@gnu.org>
7535 Luis Machado <luisgpm@br.ibm.com>
7536 Thiago Jung Bauermann <bauerman@br.ibm.com>
7538 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
7539 don't fit into registerson the stack the way GCC does.
7541 2008-02-01 Joel Brobecker <brobecker@adacore.com>
7543 * symtab.c (symbol_set_names): Do not add an entry in the demangling
7544 hash table for Ada symbols. Just store the linkage name as is,
7545 and leave the demangled_name as NULL.
7547 2007-02-01 Joel Brobecker <brobecker@adacore.com>
7549 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
7550 in the global scope.
7551 (new_symbol): Likewise.
7553 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
7555 * breakpoint.c (break_command_1): Return void.
7556 (break_command_really): Return void. Rethrow
7557 exceptions instead of returning.
7558 (gdb_breakpoint): Remove the error_message parameter.
7559 Return void. Rename to set_breakpoint.
7560 * gdb.h (gdb_breakpoint): Rename and move to...
7561 * breakpoint.h (set_breakpoint): ...here.
7562 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
7563 event hooks even if exception is thrown. Adjust to
7564 gdb_breakpoint interface changes.
7567 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
7569 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
7570 float in both first and second word in the doubleword, to support
7573 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
7575 Properly rethrow exception. This fixes errors
7576 about non-existent functions for -break-insert.
7577 * breakpoint.c (break_command_really): Use throw_exception
7578 for rethrowing. If rethrowing, don't print the exception.
7580 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7582 * NEWS: Mention Decimal Floating Point support.
7584 2008-01-31 Joel Brobecker <brobecker@adacore.com>
7586 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
7587 value type to builtin_type_void_func_ptr.
7589 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
7591 * s390-tdep.c (is_float_singleton, is_float_like,
7592 alignment_of, s390_return_value): Make checks for
7593 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
7595 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
7596 Thiago Jung Bauermann <bauerman@br.ibm.com>
7598 * infcmd.c (default_print_registers_info): Also print hex
7599 raw contents for TYPE_CODE_DECFLOAT registers.
7600 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
7601 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
7602 (rs6000_register_name): Add support for DFP pseudo-registers.
7603 (rs6000_pseudo_register_type): Likewise.
7604 rs6000_pseudo_register_reggroup_p): Likewise.
7605 (ppc_pseudo_register_read): New function.
7606 (ppc_pseudo_register_write): Likewise.
7607 (rs6000_pseudo_register_read): Likewise.
7608 (rs6000_pseudo_register_write): Likewise.
7609 (e500_pseudo_register_read): Move checks to
7610 rs6000_pseudo_register_read.
7611 (e500_pseudo_register_write): Move checks to
7612 rs6000_pseudo_register_write.
7613 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
7614 rs6000_pseudo_register_read and rs6000_pseudo_register_write
7615 in gdbarch if SPE or DFP is available. Adjust gdbarch's
7616 num_pseudo_regs to account for DFP pseudo regs.
7618 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7620 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
7621 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
7622 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
7623 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
7624 e500_pseudo_register_read, e500_pseudo_register_write): Use
7625 IS_SPE_PSEUDOREG macro.
7626 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
7627 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
7628 Remove initialization of tdep->ppc_ev31_regnum.
7630 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
7632 * printcmd.c (print_formatted): Handle references as for unformatted
7635 2008-01-30 Joel Brobecker <brobecker@adacore.com>
7637 * eval.c (evaluate_subexp_standard): Add handling of user
7638 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
7640 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
7642 * eval.c (evaluate_subexp_standard): Support
7643 BINOP_INTDIV opcode.
7645 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
7647 * valarith.c (value_binop): Add floating-point BINOP_MIN and
7649 For BINOP_EXP, use length and signedness of left operand only for
7650 result, as for shifts.
7651 For integral operands to BINOP_EXP, use new integer_pow and
7652 uinteger_pow functions so as to get full range of results.
7653 (integer_pow): New function.
7654 (uinteger_pow): New function.
7656 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
7658 Use vector for varobj_list_children interface.
7659 * gdb/varobj.c (varobj_list_children): Return vector
7661 * gdb/varobj.h (varobj_list_children): Adjust
7663 (varobj_p): Declare. Declare vector thereof.
7664 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
7665 for varobj_list_children change.
7666 * Makefile.in (varobj_h): Update dependencies.
7668 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7670 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
7671 TYPE_CODE_DECFLOAT arguments.
7672 (ppc64_sysv_abi_push_dummy_call) Likewise.
7673 (get_decimal_float_return_value): New function.
7674 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
7675 values by calling get_decimal_float_return_value.
7676 (ppc64_sysv_abi_return_value): Likewise.
7678 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
7680 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
7681 for preprocessor macro information. Formatting changes.
7683 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
7685 * remote.c (struct remote_state): Add cached_wait_status.
7686 (remote_exec_file): New variable.
7687 (PACKET_vAttach, PACKET_vRun): New constants.
7688 (extended_remote_restart): Do not query for status.
7689 (struct start_remote_args): New.
7690 (remote_start_remote): Take it as a second argument. Check
7691 whether the target is running. Issue an error for non-running
7692 non-extended targets. Cache the wait status. Set inferior_ptid
7694 (remote_open_1): Prompt to disconnect non-running targets. Make
7695 sure the target is marked running. Do not set inferior_ptid here.
7696 Update call to remote_start_remote. Do not call remote_check_symbols
7697 if the target is not running.
7698 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
7699 argument. Handle a non-running target.
7700 (remote_detach): Use it.
7701 (extended_remote_detach): New.
7702 (remote_disconnect): Fix typo. Use remoute_mourn_1.
7703 (extended_remote_attach_1, extended_remote_attach)
7704 (extended_async_remote_attach): New.
7705 (remote_vcont_resume): Remove unused variable.
7706 (remote_wait, remote_async_wait): Use any cached wait status.
7707 (putpkt_binary, getpkt): Clear any cached wait status.
7708 (extended_remoute_mourn_1): New.
7709 (extended_remote_mourn): Use it.
7710 (extended_async_remote_mourn, extended_remote_run): New.
7711 (extended_remote_create_inferior_1): New.
7712 (extended_remote_create_inferior): Use it.
7713 (extended_remote_async_create_inferior): Likewise.
7714 (remote_xfer_partial): Skip for non-executing targets.
7715 (init_extended_remote_ops): Set to_detach and to_attach.
7716 (init_extended_async_remote_ops): Likewise. Use
7717 extended_async_remote_mourn.
7718 (_initialize_remote): Register vAttach, vRun, and
7719 set remote exec-file.
7720 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
7722 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
7724 * Makefile.in (symfile.o): Update.
7725 * NEWS: Mention exec tracing support.
7726 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
7728 * infcmd.c (kill_if_already_running, detach_command)
7729 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
7730 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
7731 (follow_exec): Do not check may_follow_exec. Do not mourn and push
7732 targets. Apply the sysroot path to the loaded executable. Use
7733 no_shared_libraries.
7734 * linux-nat.c (linux_child_follow_fork): Print fork following
7735 messages if verbose.
7736 (kill_wait_callback): Kill again before waiting a second time.
7737 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
7738 no_shared_libraries.
7740 2008-01-29 Joel Brobecker <brobecker@adacore.com>
7742 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
7744 2008-01-29 Joel Brobecker <brobecker@adacore.com>
7746 * nto-tdep.h: Remove #include "defs.h".
7747 * nto-tdep.c: Add #include "defs.h".
7748 * Makefile.in (nto_tdep_h): Update dependencies.
7749 (nto-tdep.o): Likewise.
7751 2008-01-29 Joel Brobecker <brobecker@adacore.com>
7753 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
7755 (proceed, start_remote): Update call to wait_for_inferior.
7756 * inferior.h (wait_for_inferior): Update declaration.
7757 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
7758 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
7759 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
7760 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
7762 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
7764 * varobj (adjust_value_for_child_access): Added checking for
7765 returned value from gdb_value_ind.
7766 (c_describe_child): Likewise.
7767 (cplus_describe_child): Fixed a typo.
7769 2008-01-29 Jim Blandy <jimb@red-bean.com>
7771 * MAINTAINERS: Update my info.
7773 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
7775 Use multiple locations for hardware watchpoints.
7776 This eliminates the need to traverse value chain, doing
7777 various checks, in three different places.
7779 * breakpoint.h (struct bp_location): New fields
7780 lengths and watchpoint_type.
7781 (struct breakpoint): Remove the val_chain field.
7782 * breakpoint.c (is_hardware_watchpoint): New.
7783 (free_valchain): Remove.
7784 (update_watchpoint): New.
7785 (insert_bp_location): For hardware watchpoint, just
7787 (insert_breakpoints): Call update_watchpoint_locations
7788 on all watchpoints. If we have failed to insert
7789 any location of a hardware watchpoint, remove all inserted
7791 (remove_breakpoint): For hardware watchpoints, directly
7793 (watchpoints_triggered): Iterate over locations.
7794 (bpstat_stop_status): Use only first location of
7795 a resource watchpoint.
7796 (delete_breakpoint): Don't call free_valchain.
7797 (print_one_breakpoint): Don't print all
7798 locations for watchpoints.
7799 (breakpoint_re_set_one): Use update_watchpoint for
7802 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
7804 Don't reset watchpoint block on solib load.
7806 * breakpoint.c (insert_bp_location): For watchpoints,
7807 recompute condition.
7808 (breakpoint_re_set_one): Instead of recomputing value
7809 and condition for watchpoints, just reset value and
7810 let insert_breakpoints/insert_bp_location recompute it.
7811 Don't do anything about disabled watchpoint.
7813 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
7815 * valarith.c (value_binop): Handle unsigned integer
7818 2008-01-28 Kevin Buettner <kevinb@redhat.com>
7820 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
7821 instruction pattern that appears frequently in position
7822 independent code. Fix bug in code which looks for "fmov" and
7823 backtracks if no "fmov" is found.
7825 2008-01-28 Doug Evans <dje@google.com>
7827 * dbxread.c (read_dbx_symtab): Fix indentation.
7828 Reformat comments to 80 columns.
7829 Move local var def closer to only use.
7831 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
7833 * fork-child.c (SHELL_FILE): Remove #ifndef.
7834 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
7836 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
7838 * i386-tdep.c (i386_skip_noop): New function.
7839 (i386_analyze_prologue): Call i386_skip_noop function.
7841 2008-01-24 Michael Snyder <msnyder@specifix.com>
7843 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
7844 * win32-nat.c (win32_xfer_partial): Ditto.
7845 * target.c (default_xfer_partial): Minor whitespace adjustment.
7847 2008-01-24 Pedro Alves <pedro@codesourcery.com>
7849 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
7850 strip bit 1 even if pc doesn't point to thumb code.
7852 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
7854 * remote.c (remote_wait): Handle SIGINT between packets.
7855 (remote_async_wait): Likewise.
7857 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
7858 Chris Demetriou <cgd@google.com>
7860 * thread.c (add_thread_silent): Renamed
7862 (print_thread_events): New variable definition.
7863 (show_print_thread_events): New function.
7864 (_initialize_thread): Add "set print thread-events" and
7865 "show print thread-events" commands.
7866 (add_thread): Announce new thread.
7867 * gdbthread.h (add_thread_silent): Declare.
7868 (print_thread_events): New variable declaration.
7869 * inf-ttrace.c (inf_ttrace_wait): Don't
7870 inform about new thread, as add_thread is always
7871 called too, and will take care of that.
7872 * infrun.c (handle_inferior_event): Likewise.
7873 * procfs.c (procfs_wait): Likewise.
7874 * remote.c (remote_currthread): Likewise.
7875 * sol-thread.c (sol_thread_wait): Likewise.
7876 * win32-nat.c (get_win32_debug_event): Likewise.
7877 * linux-thread-db.c (attach_thread): Likewise.
7878 Remove the verbose parameter.
7879 (check_event): Make detach_thread be verbose
7880 only if print_thread_events is set.
7881 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
7882 about new thread. This is called only from
7883 linux-thread-db.c:attach_thread, which will take care.
7884 Remove the verbose parameter.
7885 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
7887 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
7889 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
7891 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
7893 * breakpoint.c (break_command_really): New parameter
7895 (break_command_1): Pass 0 as
7896 ignore_count to break_command_really.
7897 (gdb_breakpoint): Pass ignore_count to
7898 break_command_really.
7900 2008-01-21 Kevin Buettner <kevinb@redhat.com>
7902 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
7903 sigcontext struct via pointer.
7904 (struct sigframe comment): Update to show new field `psc'.
7906 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
7908 * infrun.c (handle_inferior_event): If
7909 we failed to remove breakpoints, error,
7910 don't try to increment PC by hand.
7912 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
7914 Add NetBSD/hppa target and host support.
7916 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
7917 (hppabsd_gregset): Move to ...
7918 (hppabsd_regset_from_core_section): Rename
7919 hppaobsd_regset_from_core_section and move to ...
7920 (hppabsd_find_global_pointer): Update comment.
7921 (hppabsd_init_abi): Make global. Do not register
7922 hppabsd_regset_from_core_section.
7923 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
7925 (_initialize_hppabsd_tdep): Move to ...
7926 * hppaobsd-tdep.c: ... here. New file.
7927 * hppnbsd-tdep.c: New file.
7928 * hppnbsd-nat.c: New file.
7929 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
7930 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
7931 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
7932 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
7933 * configure.host (hppa*-*-netbsd*): New entry.
7934 * configure.tgt (hppa*-*-netbsd*): New entry.
7935 (hppa*-*-openbsd*): Update.
7936 * NEWS (New native configuration): Mention NetBSD/hppa.
7937 (New targets): Mention NetBSD/hppa.
7939 2008-01-18 Markus Deuling <deuling@de.ibm.com>
7941 * gdbarch.sh (function_list): Add new property bits_big_endian to
7943 * gdbarch.{c,h}: Regenerate.
7945 * value.c (struct value): Replace BITS_BIG_ENDIAN by
7946 gdbarch_bits_big_endian (comment).
7947 (unpack_field_as_long, modify_field): Likewise.
7948 * value.h: Likewise (comment).
7949 * valops.c (value_slice): Likewise.
7950 * valarith.c (value_subscript, value_bit_index): Likewise.
7951 * gdbtypes.h (field): Likewise (comment).
7952 * eval.c (evaluate_subexp_standard): Likewise.
7953 * dwarf2read.c (dwarf2_add_field): Likewise.
7954 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
7955 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
7957 * defs.h (BITS_BIG_ENDIAN): Remove.
7959 2008-01-18 Markus Deuling <deuling@de.ibm.com>
7961 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
7963 * m2-exp.y (yylex): Likewise.
7964 * objc-exp.y (yylex): Likewise.
7966 * defs.h (DEPRECATED_STREQN): Remove.
7968 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
7970 * MAINTAINERS: Update my email address.
7972 2008-01-17 Jim Blandy <jimb@codesourcery.com>
7974 * README: Mention gdbserver/README.
7976 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
7978 * valarith.c (value_binop): Handle BINOP_INTDIV
7979 for unsigned and signed integers.
7981 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
7983 * s390-tdep.c (s390_gdbarch_init): Set default long double
7984 type to 128-bit IEEE quad.
7986 2008-01-17 Joel Brobecker <brobecker@adacore.com>
7988 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
7990 2008-01-16 Mark Kettenis <kettenis@gnu.org>
7992 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
7994 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
7995 * value.c: All callers changed.
7997 2008-01-16 Markus Deuling <deuling@de.ibm.com>
7999 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
8000 DEPRECATED_STREQ by its expression.
8001 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
8002 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
8003 (scan_xcoff_symtab): Likewise.
8004 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
8005 * f-lang.c (find_common_for_function): Likewise.
8006 * objc-exp.y (parse_number): Likewise.
8008 * defs.h (DEPRECATED_STREQ): Remove.
8010 2008-01-16 Markus Deuling <deuling@de.ibm.com>
8012 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
8013 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
8014 get_frame_arch to get at the current_architecture. Update AM33_MODE
8016 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
8017 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
8019 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
8021 2008-01-16 Markus Deuling <deuling@de.ibm.com>
8023 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
8025 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
8027 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
8028 current_gdbarch by gdbarch. Update caller.
8030 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
8031 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
8032 the current architecture. Update calls of
8033 amd64_native_gregset_supplies_p.
8034 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
8035 (amd64bsd_store_inferior_registers): Likewise.
8037 2008-01-16 Markus Deuling <deuling@de.ibm.com>
8039 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
8040 Replace current_gdbarch by gdbarch. Update caller.
8042 2008-01-16 Markus Deuling <deuling@de.ibm.com>
8044 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
8045 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
8046 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
8047 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
8048 (stabsect_build_psymtabs): Fix indentation.
8050 2008-01-15 Michael Snyder <msnyder@specifix.com>
8052 * corelow.c (core_xfer_partial): Comment, cut/paste error.
8054 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
8056 * win32-nat.c (win32_create_inferior): Restore code calling
8057 CloseHandle on ProcessInformation structure.
8059 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
8061 * configure.ac: Check for void * as 3 argument of ptrace.
8062 * configure: regenerate.
8064 2008-01-11 Markus Deuling <deuling@de.ibm.com>
8066 * alpha-tdep.c (alpha_heuristic_proc_start)
8067 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
8068 current_gdbarch by gdbarch.
8070 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
8071 current architecture by frame_info. Update alpha_heuristic_proc_start
8074 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
8075 get_frame_arch to get at the current architecture by frame_info. Update
8076 alpha_sigtramp_register_address call.
8078 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
8079 current_gdbarch by gdbarch. Update caller.
8080 (convert_to_extended, convert_from_extended): Add endianess parameter
8081 for comparison. Update caller.
8082 (arm_extract_return_value, arm_store_return_value): Use
8083 get_regcache_arch to get at the current architecture.
8085 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
8086 current_gdbarch by gdbarch. Update caller.
8087 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
8088 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
8090 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
8091 gdbarch as parameter. Update caller.
8092 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
8093 current_gdbarch by gdbarch. Update caller.
8095 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
8096 update caller. Replace current_gdbarch by gdbarch.
8098 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
8099 the current architecture. Replace current_gdbarch by gdbarch.
8100 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
8101 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
8102 expression. Add gdbarch as parameter and replace current_gdbarch with
8104 (M6811_TDEP): Remove.
8105 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
8107 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
8108 current_gdbarch by gdbarch. Update caller.
8110 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
8112 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
8115 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
8116 caller. Relace current_gdbarch by gdbarch.
8117 (altivec_register_p, spe_register_p): Likewise.
8118 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
8120 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
8121 altivec_register_p and spe_register_p.
8123 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
8124 caller. Replace current_gdbarch by gdbarch.
8125 (score_analyze_prologue): use get_frame_arch to get at the current
8128 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
8129 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
8130 current_gdbarch by gdbarch. Update caller.
8131 (sparc_frame_cache): Use get_frame_arch to get at the current
8133 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
8134 sparc_analyze_prologue.
8136 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
8139 2008-01-11 Markus Deuling <deuling@de.ibm.com>
8141 * exec.c: #include "arch-utils.h"
8142 (print_section_info): Use gdbarch_from_bfd to get at the
8143 current architecture. Replace current_gdbarch. Fix indention. Replace
8144 deprecated_print_address_numeric by paddress.
8145 * Makefile.in (exec.o) Add dependency to arch-utils.h.
8147 * valprint.c (val_print_string): Replace
8148 deprecated_print_address_numeric.
8149 * tracepoint.c (trace_mention, scope_info): Likewise.
8150 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
8151 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
8152 (maintenance_check_symtabs): Likewise.
8153 * symfile.c (list_overlays_command): Likewise.
8154 * stack.c (frame_info, print_block_frame_labels): Likewise.
8155 * printcmd.c (print_address, print_address_demangle)
8156 (address_info): Likewise.
8157 * corefile.c (memory_error): Likewise.
8158 * infcmd.c (jump_command): Likewise.
8159 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
8160 (mention, delete_breakpoint): Likewise.
8161 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
8162 * dwarf2read.c (dump_die): Likewise.
8163 * ada-valprint.c (ada_val_print_1): Likewise.
8164 * f-valprint.c (f_val_print): Likewise.
8165 * linux-fork.c (info_forks_command): Likewise.
8166 * m32r-com.c (m32r_load_section, m32r_load)
8167 (m32r_upload_command): Likewise.
8169 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
8171 2008-01-11 Markus Deuling <deuling@de.ibm.com>
8173 * gdbarch.sh (skip_prologue): Add gdbarch
8175 * gdbarch.{c,h}: Regenerate.
8177 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
8178 * amd64-tdep.c (amd64_skip_prologue): Likewise.
8179 * avr-tdep.c (avr_skip_prologue): Likewise.
8180 * cris-tdep.c (cris_skip_prologue): Likewise.
8181 * frv-tdep.c (frv_skip_prologue): Likewise.
8182 * h8300-tdep.c (h8300_skip_prologue): Likewise.
8183 * hppa-tdep.c (hppa_skip_prologue): Likewise.
8184 * i386-tdep.c (i386_skip_prologue): Likewise.
8185 * ia64-tdep.c (ia64_skip_prologue): Likewise.
8186 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
8187 * m32r-tdep.c (m32r_skip_prologue): Likewise.
8188 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
8189 * m68k-tdep.c (m68k_skip_prologue): Likewise.
8190 * m88k-tdep.c (m88k_skip_prologue): Likewise.
8191 * mep-tdep.c (mep_skip_prologue): Likewise.
8192 * mips-tdep.c (mips_skip_prologue): Likewise.
8193 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
8194 * mt-tdep.c (mt_skip_prologue): Likewise.
8195 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
8196 * score-tdep.c (score_skip_prologue): Likewise.
8197 * sh64-tdep.c (sh64_skip_prologue): Likewise.
8198 * sh-tdep.c (sh_skip_prologue): Likewise.
8199 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
8200 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
8201 * spu-tdep.c (spu_skip_prologue): Likewise.
8202 * v850-tdep.c (v850_skip_prologue): Likewise.
8203 * vax-tdep.c (vax_skip_prologue): Likewise.
8204 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
8205 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
8207 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
8208 current_gdbarch by gdbarch.
8209 * m32c-tdep.c (m32c_skip_prologue): Likewise.
8210 * s390-tdep.c (s390_skip_prologue): Likewise.
8212 2008-01-10 Doug Evans <dje@google.com>
8214 * defs.h (struct continuation_arg): Fix typo in comment.
8215 * target.c (target_translate_tls_address): Fix comment spelling error.
8217 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
8219 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
8220 (DOUBLEST_SCAN_FORMAT): Likewise.
8221 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
8222 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
8223 * c-exp.y (parse_number): Likewise.
8224 * jv-exp.y (parse_number): Likewise.
8225 * objc-exp.y (parse_number): Likewise.
8226 * p-exp.y (parse_number): Likewise.
8228 2008-01-09 Joel Brobecker <brobecker@adacore.com>
8230 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
8231 (check_typedef): Likewise.
8233 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
8235 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
8236 seen_double_big_d, treat the new H, D, and DD modifiers as length
8239 2008-01-08 Joel Brobecker <brobecker@adacore.com>
8241 * dwarf2read.c (read_enumeration_type): Add comment.
8243 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
8245 * config.in: Regenerate.
8247 2008-01-08 Joel Brobecker <brobecker@adacore.com>
8249 * ada-lang.c (ada_convert_actual): Renames convert_actual.
8251 (ada_convert_actuals): Delete.
8252 * ada-lang.h (ada_convert_actual): Add declaration.
8253 (ada_convert_actuals): Remove declaration.
8254 * infcall.c: #include "ada-lang.h".
8255 (value_arg_coerce): Add new parameter sp. Update function
8256 documetnation. Add handling of Ada function call parameters.
8257 * Makefile.in (infcall.o): Update dependencies.
8259 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
8261 * ada-lang.c (ensure_lval): Fix value lval kind.
8262 (convert_actual): Add handling for arguments passed by reference.
8264 2008-01-08 Doug Evans <dje@google.com>
8266 * dbxread.c (read_dbx_symtab): Fix indentation.
8268 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
8270 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
8271 (valarith.o): Depend on dfp.h.
8272 (valops.o): Likewise.
8273 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
8274 (set_decnumber_context): New function.
8275 (decimal_check_errors): Likewise.
8276 (decimal_from_number): Likewise.
8277 (decimal_to_number): Likewise.
8278 (decimal_from_string): Use set_decnumber_context and
8279 decimal_check_errors.
8280 (decimal_from_integral): New function.
8281 (decimal_from_floating): Likewise.
8282 (decimal_to_double): Likewise.
8283 (promote_decimal): Likewise.
8284 (decimal_binop): Likewise.
8285 (decimal_is_zero): Likewise.
8286 (decimal_compare): Likewise.
8287 (decimal_convert): Likewise.
8288 * dfp.h (decimal_from_integral): New prototype.
8289 (decimal_from_floating): Likewise.
8290 (decimal_to_double): Likewise.
8291 (decimal_binop): Likewise.
8292 (decimal_is_zero): Likewise.
8293 (decimal_compare): Likewise.
8294 (decimal_convert): Likewise.
8295 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
8296 call to value_from_decfloat.
8297 * valarith.c: Include dfp.h.
8298 (value_args_as_decimal): New function.
8299 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
8300 (value_logical_not): Likewise.
8301 (value_equal): Likewise.
8302 (value_less): Likewise.
8303 (value_pos): Likewise.
8304 (value_neg): Formatting fix.
8305 * valops.c: Include dfp.h.
8306 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
8307 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
8308 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
8309 (value_from_decfloat): Remove expect_type argument.
8310 * value.h (value_from_decfloat): Update prototype.
8312 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
8314 Ignore change in name of dynamic linker during
8315 execution on Solaris. This also unbreaks pending breakpoints.
8317 * solist.h (struct target_so_ops): New field same.
8318 * solib-svr4.c (svr4_same): New.
8319 (_initialize_svr4_solib): Register svr4_same.
8320 * solib.c (update_solib_list): Use ops->same, if available.
8322 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
8324 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
8325 when using MS-DOS paths.
8327 2008-01-05 Pedro Alves <pedro@codesourcery.com>
8329 * NEWS: Mention --pid and --core command line behaviour changes.
8331 2008-01-05 Pedro Alves <pedro@codesourcery.com>
8333 * main.c (captured_main): Remove 'count' varible and the
8334 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
8335 --pid options were issued simultaneously. If an explicit pid
8336 option was passed, don't fallback to core file. Detect extra
8337 arguments better in the presence of explicit pid or core
8340 2008-01-05 Joel Brobecker <brobecker@adacore.com>
8342 * ada-lang.c (ada_which_variant_applies): Correctly compute
8343 the value of the discriminant when the variant record is packed.
8345 2008-01-04 Joel Brobecker <brobecker@adacore.com>
8347 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
8348 that are used to differentiate homonyms.
8350 2008-01-04 Jerome Guitton <guitton@adacore.com>
8352 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
8353 when the type is an anonymous pointer type.
8354 (ada_check_typedef): Avoid a seg fault when the type is null.
8355 * ada-typeprint.c (print_array_type): Add support for pointer
8358 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
8360 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
8362 2008-01-04 Joel Brobecker <brobecker@adacore.com>
8364 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
8365 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
8367 2008-01-04 Joel Brobecker <brobecker@adacore.com>
8369 * ada-exp.y (chop_separator): New function.
8370 (write_selectors): Rewrite to re-use chop_separator.
8371 (ada_nget_field_index, get_symbol_field_type): New functions.
8372 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
8375 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
8377 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
8378 of SYMBOL_VALUE when working with function symbols.
8380 2008-01-03 Joel Brobecker <brobecker@adacore.com>
8382 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
8383 expressions. These expressions do not need to be rewriten.
8385 2008-01-03 Joel Brobecker <brobecker@adacore.com>
8387 * dwarf2read.c (read_enumeration_type): Flag type as stub if
8388 the given die is a declaration.
8390 2008-01-03 Joel Brobecker <brobecker@adacore.com>
8392 * ada-lang.c (ada_array_bound_from_type): Make non-static.
8393 Handle properly the case when the index type is an enumerated type.
8394 Do not return the subtype of the bounds type, just return the
8395 bounds type directly - this is not needed and is more consistent
8396 with what we do for arrays when no XA parallel type exists.
8398 2008-01-03 Joel Brobecker <brobecker@adacore.com>
8400 * ada-lang.c (static_unwrap_type): Add forward declaration.
8401 (template_to_static_fixed_type): Fields of dynamic types sometimes
8402 also need to be unwrapped. Take this into account.
8403 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
8404 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
8405 * ada-typeprint.c (ada_print_type): Get the typename from
8406 the original type, not the base type.
8408 2008-01-03 Jerome Guitton <guitton@adacore.com>
8410 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
8411 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
8412 Update calls to ada_to_fixed_type.
8413 (ada_template_to_fixed_record_type_1): Ditto, but without looking
8415 (ada_to_fixed_type): Add check_tag parameter; do not look for
8416 tag if null. When looking for a tag, use a fixed record type.
8417 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
8418 * ada-valprint.c (printable_val_type, ada_value_print): Update
8419 calls to ada_to_fixed_type.
8421 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
8423 * doublest.c (convert_floatformat_to_doublest): Call
8424 floatformat_to_doublest instead of floatformat_to_double and use
8426 (convert_doublest_to_floatformat): Call floatformat_from_doublest
8427 instead of floatformat_from_double and use DOUBLEST variables.
8429 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
8431 * MAINTAINERS (Write After Approval): Add self.
8433 2008-01-03 Joel Brobecker <brobecker@adacore.com>
8435 * symfile.c (set_initial_language): Make non-static.
8436 * symfile.h (set_initial_language): Add declaration.
8437 * language.c: #include "symfile.h".
8438 (set_language): Call set_initial_language if the frame language
8439 could not be determined.
8441 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
8443 * eval.c (evaluate_subexp_for_address): Provide frame address to
8444 locate_var_value only if it will be needed.
8446 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8448 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
8450 2008-01-02 Joel Brobecker <brobecker@adacore.com>
8452 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
8453 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
8454 This is needed to make sure that any other treatment applied
8455 to the resulting value does not fail for spurious reason,
8456 such as trying to take the address of this value.
8458 2008-01-02 Joel Brobecker <brobecker@adacore.com>
8460 * ada-lang.c (ada_value_equal): Dereference reference types when
8463 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
8465 Updated copyright notices for most files.
8467 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
8469 * win32-nat.c (psapi_module_handle): Remove static.
8470 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
8471 return first module found if base_address is zero. Don't initialize
8472 psapi function pointers here. Convert to cygwin paths when
8474 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
8475 executable name. Use get_module_name when that fails or when
8477 (_initialize_psapi): New function. Initialize psapi stuff before it is
8478 needed or issue a warning if it is not found. Move psapi_module_handle
8481 2008-01-01 Joel Brobecker <brobecker@adacore.com>
8483 * ada-lang.c (ada_remove_trailing_digits): New function.
8484 (ada_remove_po_subprogram_suffix): New function.
8485 (ada_decode): Improve. Move the description of the algorithm
8486 directly inside the code, instead of in the function global
8489 2008-01-01 Joel Brobecker <brobecker@adacore.com>
8491 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
8492 and always print the dereferenced value.
8494 2008-01-01 Joel Brobecker <brobecker@adacore.com>
8496 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
8497 of the case where the first argument is a reference.
8498 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
8500 2008-01-01 Joel Brobecker <brobecker@adacore.com>
8502 Implement support for Ada interface types.
8504 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
8505 (ada_is_ignored_field): Ignore fields that are a dispatch table
8508 2008-01-01 Joel Brobecker <brobecker@adacore.com>
8510 * top.c (print_gdb_version): Update copyright year.
8512 2008-01-01 Joel Brobecker <brobecker@adacore.com>
8514 * ChangeLog-2007: New ChangeLog rotation.
8515 * ChangeLog: Reset for 2008.
8516 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
8519 For older changes see ChangeLog-2007.
8525 version-control: never