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