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