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