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