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