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