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