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