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