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