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