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