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