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