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