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