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