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