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