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