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