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