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