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