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