]> Git Repo - binutils.git/blame - gdb/ChangeLog
2008-09-04 Michael Snyder <[email protected]>
[binutils.git] / gdb / ChangeLog
CommitLineData
8775bb90
MS
12008-09-03 Angela Marie Thomas <[email protected]>
2
3 * ser-tcp.c (ser_tcp_send_break): New function.
4 (_initialize_ser_tcp): Use ser_tcp_send_break.
5 * ser-tcp.h (ser_tcp_send_break): New prototype.
6
9ff3afda
UW
72008-09-03 Ulrich Weigand <[email protected]>
8
9 * spu-tdep.c (spu_push_dummy_call): Update all stack pointer slots
10 when allocating stack frame for inferior call.
11
c4891da7
UW
122008-09-03 Ulrich Weigand <[email protected]>
13
14 * spu-tdep.c (spu_frame_unwind_cache): Do not attempt to unwind
15 SP or return address if we failed to find a valid frame.
16
514f746b
AR
172008-09-03 Aleksandar Ristovski <[email protected]>
18
19 * breakpoint.c (breakpoint_init_inferior): Mark as not inserted only
20 non-permanent breakpoints.
21 (bpstat_stop_status): Change enable_state to bp_disabled only for
22 non-permanent breakpoints.
23 (bp_loc_is_permanent): New function.
24 (create_breakpoint): Check if the location points to a permanent
25 breakpoint and if it does, make breakpoint permanent.
26 (update_breakpoint_locations): Make sure new locations of permanent
27 breakpoints are properly initialized.
28 * i386-tdep.c (i386_skip_permanent_breakpoint): New function.
29 (i386_gdbarch_init): Set gdbarch_skip_permanent_breakpoint.
30
a12654ce
PA
312008-09-02 Pedro Alves <[email protected]>
32
33 * breakpoint.c (insert_breakpoints, update_global_location_list):
34 Check breakpoints_always_inserted_mode instead of
35 always_inserted_mode directly.
36
8b7a6d61
AS
372008-09-02 Andreas Schwab <[email protected]>
38
39 * ia64-tdep.c (ia64_get_dyn_info_list): Use obj_section_addr.
40
d68209e4
JK
412008-09-01 Jan Kratochvil <[email protected]>
42
43 Stay compatible after the GCC PR fortran/29635 fix.
44 * dwarf2read.c (process_die <DW_TAG_imported_module>)
45 (process_die <DW_TAG_imported_module>): Do not assert anything about
46 these unsupported tags.
47
ef4cb050
TT
482008-08-29 Tom Tromey <[email protected]>
49
50 * maint.c (_initialize_maint_cmds): Fix typo.
51
a683b3c0
TT
522008-08-29 Tom Tromey <[email protected]>
53
54 * dwarf2read.c (dwarf2_build_psymtabs_hard): Copy dirname on
55 obstack.
56
3e88cf8d
UW
572008-08-27 Ulrich Weigand <[email protected]>
58
59 * remote.c: Include "gdb_stat.h".
60
a45ae3ed
UW
612008-08-26 Ulrich Weigand <[email protected]>
62
63 * dummy-frame.h (dummy_frame_pop): Add prototype.
64 * dummy-frame.c: Include "observer.h".
65 (dummy_frame_push): Do not check for stale frames.
66 (dummy_frame_pop): New function.
67 (cleanup_dummy_frames): New function.
68 (_initialize_dummy_frame): Install it as inferior_created observer.
69
70 * frame.h (struct frame_id): Update comments.
71 (frame_id_inner): Remove prototype.
72 * frame.c (frame_id_inner): Make static. Add comments.
73 (frame_find_by_id): Update frame_id_inner safety net check to avoid
74 false positives for targets using non-contiguous stack ranges.
75 (get_prev_frame_1): Update frame_id_inner safety net check.
76 (frame_pop): Call dummy_frame_pop when popping a dummy frame.
77
78 * stack.c (return_command): Directly pop the selected frame.
79 * infrun.c (handle_inferior_event): Remove dead code.
80 * i386-tdep.c (i386_push_dummy_call): Update comment.
81
879d1e6b
UW
822008-08-26 Ulrich Weigand <[email protected]>
83
84 * breakpoint.c (remove_breakpoint): Do not fail if unable to remove
85 breakpoint from shared library.
86
97ec2c2f
UW
872008-08-26 Ulrich Weigand <[email protected]>
88
89 * solib-svr4.c (read_program_header): New function.
90 (scan_dyntag_auxv): New function.
91 (elf_locate_base): Use it if scan_dyntag fails.
92 (find_program_interpreter): New function.
93 (enable_break): Use it instead of .interp section.
94
f1838a98
UW
952008-08-26 Ulrich Weigand <[email protected]>
96
97 * remote.h (remote_filename_p, remote_bfd_open): Add prototypes.
98 * remote.c (remote_bfd_iovec_open, remote_bfd_iovec_close,
99 remote_bfd_iovec_pread, remote_bfd_iovec_stat, remote_filename_p,
100 remote_bfd_open): New functions.
101 (remote_hostio_send_command): Fail safely if remote connection
102 is not set up.
103
104 * solist.h (solib_open): Remove prototype.
105 (solib_bfd_open): Add prototype.
106 * solib.c: Include "remote.h".
107 (solib_open): Remove, replace by ...
108 (solib_bfd_open): ... this new function. Handle remote BFDs.
109 (solib_map_sections): Replace solib_open by solib_bfd_open.
110 * solib-frv.c: Include "exceptions.h".
111 (enable_break2): Replace solib_open by solib_bfd_open.
112 * solib-svr4.c: Include "exceptions.h".
113 (enable_break): Replace solib_open by solib_bfd_open.
114
115 * symfile.c: Include "remote.h".
116 (build_id_verify): Handle remote BFDs.
117 (separate_debug_file_exists): Use BFD to access file. Handle
118 remote BFDs.
119 (symfile_bfd_open): Handle remote BFDs.
120 (reread_symbols): Handle remote BFDs.
121
122 * NEWS: Mention "remote:" argument prefix to "set sysroot".
123
1cf3db46
UW
1242008-08-26 Ulrich Weigand <[email protected]>
125
126 * gdbarch.sh (target_gdbarch): New global variable.
127 (deprecated_current_gdbarch_select_hack): Set it.
128 * gdbarch.c, gdbarch.h: Regenerate.
129
130 * arch-utils.c (gdbarch_update_p): Use target_gdbarch instead
131 of current_gdbarch.
132 * target-descriptions.c (target_find_description): Likewise.
133 * arm-tdep.c (arm_update_current_architecture): Likewise.
134 (show_fp_model, arm_show_abi, arm_show_fallback_mode,
135 arm_show_force_mode): Likewise.
136 * mips-tdep.c (show_mask_address, show_mipsfpu_command,
137 show_mips_abi): Likewise.
138 * mep-tdep.c (me_module_register_set, current_me_module): Likewise.
139
140 * target.c (target_translate_tls_address): Use target_gdbarch
141 instead of current_gdbarch.
142 * remote.c (struct packet_reg): Likewise.
143 (get_remote_arch_state, packet_reg_from_regnum,
144 packet_reg_from_pnum, remote_check_symbols, remote_wait,
145 remote_address_masked, remote_insert_breakpoint,
146 remote_insert_hw_breakpoint, remote_read_description): Likewise.
147 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
148 * remote-mips.c (mips_open, mips_common_breakpoint): Likewise.
149 * cris-tdep.c (cris_can_use_hardware_watchpoint): Likewise.
150
151 * solib.c (solib_open, solib_map_sections, solib_read_symbols,
152 solib_add, info_sharedlibrary_command, solib_address,
153 solib_create_inferior_hook, in_solib_dynsym_resolve_code,
154 solib_global_lookup): Likewise.
155 * solib-frv.c (enable_break2, frv_relocate_main_executable): Likewise.
156 * solib-irix.c (irix_current_sos, irix_open_symbol_file_object):
157 Likewise.
158 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
159 * solib-svr4.c (exec_entry_point, enable_break, svr4_free_so,
160 set_solib_svr4_fetch_link_map_offsets, svr4_fetch_link_map_offsets):
161 Likewise.
162 * nto-tdep.c (nto_find_and_open_solib, nto_init_solib_absolute_prefix,
163 nto_truncate_ptr): Likewise.
164 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Likewise.
165
6207416c
LM
1662008-08-26 Luis Machado <[email protected]>
167
168 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections) New structure.
169 (ppc_linux_vmx_regset_sections): New structure.
170 (ppc_linux_fp_regset_sections): New structure.
171 (ppc_linux_init_abi): Select core-file regset based on target
172 features.
173
0ff58721
UW
1742008-08-26 Ulrich Weigand <[email protected]>
175
176 * target.c (debug_print_register): Use regcache_raw_collect
177 instead of regcache_cooked_read. Only handle raw registers.
178
6c5561f9
PA
1792008-08-25 Pedro Alves <[email protected]>
180
181 * cp-name-parser.y: Include config.h before system headers.
182
ed0c3906
UW
1832008-08-25 Ulrich Weigand <[email protected]>
184
185 * m88k-tdep.c: Update for unwinder changes.
186
119ac181
TT
1872008-08-24 Tom Tromey <[email protected]>
188
189 * s390-tdep.c (s390_address_class_type_flags): Use
190 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1.
191 (s390_address_class_type_flags_to_name): Likewise.
192 (s390_address_class_name_to_type_flags): Likewise.
193
803e1097
TT
1942008-08-24 Tom Tromey <[email protected]>
195
196 * rs6000-tdep.c (rs6000_builtin_type_vec128): Don't use
197 TYPE_FLAGS.
198 * features/rs6000/powerpc-vsx32l.c
199 (initialize_tdesc_powerpc_vsx32l): Update.
200 * features/rs6000/powerpc-vsx32.c
201 (initialize_tdesc_powerpc_vsx32): Update.
202 * features/rs6000/powerpc-vsx64.c
203 (initialize_tdesc_powerpc_vsx64): Update.
204 * features/rs6000/powerpc-vsx64l.c
205 (initialize_tdesc_powerpc_vsx64l): Update.
206 * target-descriptions.c (maint_print_c_tdesc_cmd): Emit
207 TYPE_VECTOR, not TYPE_FLAGS.
208
876cecd0
TT
2092008-08-24 Tom Tromey <[email protected]>
210
211 * xml-tdesc.c (tdesc_end_union): Update.
212 * stabsread.c (define_symbol): Update.
213 (read_type): Update.
214 (read_struct_type): Update.
215 (read_enum_type): Update.
216 * spu-tdep.c (spu_builtin_type_vec128): Update.
217 * sh-tdep.c (sh_push_dummy_call_fpu): Update.
218 (sh_push_dummy_call_nofpu): Update.
219 * mdebugread.c (parse_symbol): Update.
220 (parse_symbol): Update.
221 (parse_symbol): Update.
222 (upgrade_type): Update.
223 * jv-lang.c (java_lookup_class): Update.
224 * iq2000-tdep.c (iq2000_pointer_to_address): Update.
225 * i386-tdep.c (i386_mmx_type): Update.
226 (i386_sse_type): Update.
227 * gdbtypes.h (enum type_flag_value): New enum.
228 (enum type_instance_flag_value): New enum.
229 (TYPE_FLAG_UNSIGNED, TYPE_FLAG_NOSIGN, TYPE_FLAG_STUB,
230 TYPE_FLAG_TARGET_STUB, TYPE_FLAG_STATIC, TYPE_FLAG_PROTOTYPED,
231 TYPE_FLAG_INCOMPLETE, TYPE_FLAG_VARARGS, TYPE_FLAG_VECTOR,
232 TYPE_FLAG_FIXED_INSTANCE, TYPE_FLAG_STUB_SUPPORTED,
233 TYPE_FLAG_NOTTEXT): Now enum constants.
234 (TYPE_FLAG_CONST, TYPE_FLAG_VOLATILE, TYPE_FLAG_CODE_SPACE,
235 TYPE_FLAG_DATA_SPACE, TYPE_FLAG_ADDRESS_CLASS_1,
236 TYPE_FLAG_ADDRESS_CLASS_2): Remove.
237 (TYPE_INSTANCE_FLAG_CONST, TYPE_INSTANCE_FLAG_VOLATILE,
238 TYPE_INSTANCE_FLAG_CODE_SPACE, TYPE_INSTANCE_FLAG_DATA_SPACE,
239 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1,
240 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_2): New constants.
241 (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB, TYPE_TARGET_STUB,
242 TYPE_STATIC, TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_VARARGS,
243 TYPE_VECTOR, TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED,
244 TYPE_NOTTEXT): Update.
245 (TYPE_FLAG_ADDRESS_CLASS_ALL): Remove.
246 (TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL): New define.
247 (TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE,
248 TYPE_ADDRESS_CLASS_1, TYPE_ADDRESS_CLASS_2,
249 TYPE_ADDRESS_CLASS_ALL): Update.
250 (struct main_type) <flags>: Remove.
251 <flag_unsigned, flag_nosign, flag_stub, flag_target_stub,
252 flag_static, flag_prototyped, flag_incomplete, flag_varargs,
253 flag_vector, flag_stub_supported, flag_nottext,
254 flag_fixed_instance>: New fields.
255 <nfields, vptr_fieldno>: Move earlier.
256 (TYPE_FLAGS): Remove.
257 * gdbtypes.c (make_pointer_type): Update.
258 (address_space_name_to_int): Update.
259 (address_space_int_to_name): Update.
260 (make_type_with_address_space): Update.
261 (make_cv_type): Update.
262 (create_range_type): Update.
263 (get_discrete_bounds): Update.
264 (create_set_type): Update.
265 (make_vector_type): Update.
266 (smash_to_method_type): Update.
267 (check_typedef): Update.
268 (check_stub_method): Update.
269 (init_type): Individually assign flag fields.
270 (recursive_dump_type): Don't print entire TYPE_FLAGS field. Do
271 print TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED, and TYPE_NOTTEXT.
272 (copy_type_recursive): Copy the entire main type. Don't use
273 TYPE_FLAGS.
274 * features/rs6000/powerpc-altivec64l.c
275 (initialize_tdesc_powerpc_altivec64l): Update.
276 * features/rs6000/powerpc-altivec64.c
277 (initialize_tdesc_powerpc_altivec64): Update.
278 * features/rs6000/powerpc-altivec32l.c
279 (initialize_tdesc_powerpc_altivec32l): Update.
280 * features/rs6000/powerpc-altivec32.c
281 (initialize_tdesc_powerpc_altivec32): Update.
282 * features/rs6000/powerpc-7400.c (initialize_tdesc_powerpc_7400):
283 Update.
284 * features/arm-with-iwmmxt.c (initialize_tdesc_arm_with_iwmmxt):
285 Update.
286 * dwarf2read.c (read_structure_type): Update.
287 (read_enumeration_type): Likewise.
288 (process_enumeration_scope): Likewise.
289 (read_tag_pointer_type): Likewise.
290 (read_subroutine_type): Likewise.
291 (read_subroutine_type): Likewise.
292 (read_base_type): Likewise.
293 * coffread.c (coff_read_enum_type): Update.
294 * ada-valprint.c (adjust_type_signedness): Update.
295 * ada-typeprint.c (print_record_field_types): Update.
296 * ada-lang.c (packed_array_type): Update.
297 (empty_record): Don't reset TYPE_FLAGS.
298 (ada_template_to_fixed_record_type_1): Update.
299 (ada_template_to_fixed_record_type_1): Likewise.
300 (template_to_static_fixed_type): Likewise.
301 (to_record_with_fixed_variant_part): Likewise.
302 (to_fixed_record_type): Likewise.
303 (to_fixed_array_type): Likewise.
304 (to_static_fixed_type): Likewise.
305
d4ce0d3f
TT
3062008-08-23 Jim Blandy <[email protected]>
307
308 PR macros/607:
309 * symmisc.c (print_symbol_bcache_statistics): Include statistics
310 for the macro bcache.
311
2e668a5d
TT
3122008-08-23 Tom Tromey <[email protected]>
313
314 * macrotab.h (struct macro_definition) <kind>: Shrink to one bit.
315 (argc): Now 31 bits.
316
75a2d5e7
TT
3172008-08-22 Tom Tromey <[email protected]>
318
319 * NEWS: Move macro entries back under "New commands".
320
25db0f1b
UW
3212008-08-22 Ulrich Weigand <[email protected]>
322
323 * breakpoint.c (create_overlay_event_breakpoint): Rename to ...
324 (create_overlay_event_breakpoint_1): ... this. Add OBJFILE parameter.
325 (create_overlay_event_breakpoint): Loop over all objfiles to install
326 multiple instances of the overlay event breakpoint if present.
327
0391f248
UW
3282008-08-22 Ulrich Weigand <[email protected]>
329
330 * spu-tdep.c (spu_overlay_new_objfile): Only consider SPU objfiles.
331 (info_spu_event_command): Command only supported on SPU architecture.
332 (info_spu_signal_command): Likewise.
333 (info_spu_mailbox_command): Likewise.
334 (info_spu_dma_command): Likewise.
335 (info_spu_proxydma_command): Likewise.
336
24a73cce
UW
3372008-08-22 Ulrich Weigand <[email protected]>
338
339 * infrun.c (adjust_pc_after_break): Do not call get_thread_regcache
340 if the thread has already exited.
341
e0bb1c1c
PA
3422008-08-22 Pedro Alves <[email protected]>
343
344 * infrun.c (proceed): Move back setting previous_inferior_ptid
345 from here ...
346 (wait_for_inferior): ... to here.
347 (fetch_inferior_event): ... and here.
348
a3ecef73
UW
3492008-08-21 Ulrich Weigand <[email protected]>
350
351 * gdbarch.sh: Include "regcache.h" into gdbarch.c.
352 (deprecated_current_gdbarch_select_hack): Call registers_changed
353 instead of reinit_frame_cache.
354 * gdbarch.c: Regenerate.
355
45148c2e
UW
3562008-08-21 Ulrich Weigand <[email protected]>
357
358 * elfread.c (elf_symtab_read): Do not relocate thread-local symbols.
359
6a94242b
DJ
3602008-08-21 Daniel Jacobowitz <[email protected]>
361
362 * xcoffread.c (SYMNAME_ALLOC): Correct syntax.
363
5045add0
UW
3642008-08-21 Ulrich Weigand <[email protected]>
365
366 * findvar.c (locate_var_value): Do not call get_frame_arch
367 with a NULL frame argument.
368
029a67e4
UW
3692008-08-21 Ulrich Weigand <[email protected]>
370
371 * frame.h (frame_map_regnum_to_name): Remove prototype.
372 (frame_map_name_to_regnum): Remove prototype.
373 * frame.c (frame_map_regnum_to_name): Remove.
374 (frame_map_name_to_regnum): Remove.
375 (frame_unwind_register_value): Use user_reg_map_regnum_to_name
376 instead of frame_map_regnum_to_name.
377 * ax-gdb.c: Include "user-regs.h".
378 (gen_expr): Use user_reg_map_name_to_regnum instead of
379 frame_map_name_to_regnum.
380 * eval.c: Include "user-regs.h".
381 (evaluate_subexp_standard): Use user_reg_map_name_to_regnum
382 instead of frame_map_name_to_regnum.
383 * infcmd.c (registers_info): Likewise.
384 * parse.c: Include "user-regs.h".
385 (write_dollar_variable): Use user_reg_map_name_to_regnum
386 instead of frame_map_name_to_regnum.
387 * tracepoint.c: Include "user-regs.h".
388 (encode_actions): Use user_reg_map_name_to_regnum
389 instead of frame_map_name_to_regnum.
390 * valops.c: Include "user-regs.h".
391 (value_fetch_lazy): Use user_reg_map_regnum_to_name instead
392 of frame_map_regnum_to_name.
393
e84ee240
UW
3942008-08-21 Ulrich Weigand <[email protected]>
395
396 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Read
397 and manually relocate .opd contents from BFD instead of reading
398 them from target memory.
399
0114d602
DJ
4002008-08-21 Daniel Jacobowitz <[email protected]>
401
402 * dwarf2read.c (processing_current_prefix): Delete static
403 variable.
404 (process_full_comp_unit): Do not set processing_current_prefix.
405 (dwarf2_full_name): New function.
406 (read_func_scope): Do not set processing_current_prefix. Use
407 determine_prefix.
408 (read_structure_type): Do not set processing_current_prefix. Remove
409 unused inner cleanup.
410 (process_structure_scope): Do not set processing_current_prefix.
411 (read_enumeration_type): Use dwarf2_full_name.
412 (determine_class_name): Return a const char *. Put the result
413 on the objfile obstack. Use dwarf2_full_name.
414 (read_namespace_type): New function.
415 (read_namespace): Do not create the type here. Use
416 determine_prefix.
417 (read_typedef): Use dwarf2_full_name. Do not pass the name
418 to init_type.
419 (read_base_type): Do not pass the name to init_type. Handle
420 TYPE_FLAG_NOSIGN.
421 (read_unspecified_type): Do not pass the name to init_type.
422 (new_symbol): Use dwarf2_full_name instead of
423 processing_current_prefix.
424 (read_type_die): Do not set processing_current_prefix. Handle
425 DW_TAG_namespace.
426 (determine_prefix): Handle specifications. Return the result
427 on the objfile obstack. Handle unions correctly.
428
df8a16a1
DJ
4292008-08-21 Daniel Jacobowitz <[email protected]>
430
431 * buildsym.c (add_symbol_to_list): Do not call
432 cp_scan_for_anonymous_namespaces here.
433 (finish_block): Do not call cp_set_block_scope here.
434 * cp-namespace.c (processing_has_namespace_info)
435 (processing_current_prefix): Delete.
436 (cp_initialize_namespace): Do not initialize
437 processing_has_namespace_info.
438 (cp_scan_for_anonymous_namespaces): Use SYMBOL_DEMANGLED_NAME. Do
439 not check processing_has_namespace_info.
440 (cp_set_block_scope): Take prefix and namespace info flag as
441 arguments. Honor namespaces regardless of a demangled name.
442 * cp-support.h (processing_has_namespace_info)
443 (processing_current_prefix): Delete declarations.
444 (cp_set_block_scope): Update prototype.
445 * dwarf2read.c (processing_has_namespace_info)
446 (processing_current_prefix): New static variables.
447 (read_file_scope): Initialize processing_has_namespace_info.
448 (read_func_scope): Call cp_set_block_scope for C++.
449 (new_symbol): Call cp_scan_for_anonymous_namespaces for C++.
450 * symtab.c (symbol_demangled_name): Accept a const argument.
451 * symtab.h (symbol_demangled_name): Update prototype.
452
3567439c
DJ
4532008-08-21 Daniel Jacobowitz <[email protected]>
454
455 * ax-gdb.c (gen_var_ref): Use SYMBOL_LINKAGE_NAME.
456 * blockframe.c (find_pc_partial_function): Likewise.
457 * buildsym.c (find_symbol_in_list): Likewise.
458 * c-valprint.c (c_val_print): Likewise.
459 * coffread.c (patch_opaque_types, process_coff_symbol): Likewise.
460 (coff_read_enum_type): Likewise. Use SYMBOL_SET_LINKAGE_NAME.
461 * cp-support.c (cp_remove_params): Renamed from remove_params and
462 made global.
463 (overload_list_add_symbol): Update call to remove_params.
464 * cp-support.h (cp_remove_params): Declare.
465 * dwarf2read.c (process_enumeration_scope): Use SYMBOL_LINKAGE_NAME.
466 (dwarf2_const_value): Use SYMBOL_PRINT_NAME.
467 * expprint.c (dump_subexp_body_standard): Likewise.
468 * f-valprint.c (info_common_command, there_is_a_visible_common_named):
469 Use SYMBOL_LINKAGE_NAME to find symbols and SYMBOL_PRINT_NAME
470 for messages.
471 * findvar.c (read_var_value): Use SYMBOL_LINKAGE_NAME.
472 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
473 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
474 (hppa_hpux_skip_trampoline_code): Use SYMBOL_LINKAGE_NAME to find
475 symbols and SYMBOL_PRINT_NAME for messages.
476 * jv-lang.c (add_class_symbol): Use SYMBOL_SET_LINKAGE_NAME.
477 * linespec.c (decode_line_2): Use SYMBOL_LINKAGE_NAME.
478 * mdebugread.c (parse_symbol): Use SYMBOL_LINKAGE_NAME and
479 SYMBOL_SET_LINKAGE_NAME.
480 (mylookup_symbol): Use SYMBOL_LINKAGE_NAME.
481 * minsyms.c (add_minsym_to_demangled_hash_table): Use
482 SYMBOL_SEARCH_NAME.
483 (lookup_minimal_symbol): Use SYMBOL_LINKAGE_NAME or
484 SYMBOL_MATCHES_SEARCH_NAME, depending on the pass.
485 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Use SYMBOL_LINKAGE_NAME.
486 * printcmd.c (build_address_symbolic): Use SYMBOL_LINKAGE_NAME.
487 (address_info): Use SYMBOL_PRINT_NAME for messages and
488 SYMBOL_LINKAGE_NAME for lookups.
489 * sol-thread.c (info_cb): Use SYMBOL_PRINT_NAME for messages.
490 * stabsread.c (patch_block_stabs, define_symbol)
491 (read_type, read_enum_type, common_block_end)
492 (cleanup_undefined_types_1, scan_file_globals): Use
493 SYMBOL_LINKAGE_NAME, SYMBOL_SET_LINKAGE_NAME, ALL_OBJFILE_MSYMBOLS,
494 and SYMBOL_PRINT_NAME.
495 * stack.c (print_frame_args): Use SYMBOL_LINKAGE_NAME.
496 (print_frame, frame_info): Use SYMBOL_PRINT_NAME for output. Use
497 cp_remove_params instead of cplus_demangle.
498 (print_block_frame_labels, print_frame_arg_vars): Use
499 SYMBOL_LINKAGE_NAME.
500 * symmisc.c (dump_msymbols): Use ALL_OBJFILE_MSYMBOLS and
501 SYMBOL_LINKAGE_NAME.
502 (dump_symtab_1, print_symbol, print_partial_symbols)
503 (maintenance_check_symtabs): Use SYMBOL_LINKAGE_NAME.
504 * symtab.h (DEPRECATED_SYMBOL_NAME): Delete.
505 (SYMBOL_SET_LINKAGE_NAME): New.
506 (SYMBOL_SET_NAMES): Add a comment.
507 * tracepoint.c (set_traceframe_context, validate_actionline)
508 (collect_symbol, scope_info): Use SYMBOL_LINKAGE_NAME for
509 lookups and SYMBOL_PRINT_NAME for output.
510 * typeprint.c (typedef_print): Use SYMBOL_LINKAGE_NAME.
511 * xcoffread.c (process_xcoff_symbol): Use SYMBOL_SET_LINKAGE_NAME.
512
aded6f54
PA
5132008-08-21 Pedro Alves <[email protected]>
514
515 * arm-tdep.c (arm_pc_is_thumb): Use obj_section_addr.
516 * hppa-hpux-tdep.c (hppa_hpux_find_dummy_bpaddr): Likewise.
517 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Use
518 obj_section_addr and obj_section_endaddr.
519 * hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Likewise.
520 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
521 * ia64-tdep.c (ia64_find_global_pointer): Likewise.
522 (find_extant_func_descr): Likewise.
523 * solib-frv.c (frv_relocate_main_executable): Use
524 obj_section_addr.
525 * xstormy16-tdep.c (xstormy16_find_jmp_table_entry): Use
526 obj_section_addr and obj_section_endaddr.
527
158c7665
PH
5282008-08-21 Paul N. Hilfinger <[email protected]>
529
530 * NEWS: Amplify last entry on boolean types in Ada.
531
f2f0e013
DJ
5322008-08-20 Daniel Jacobowitz <[email protected]>
533
534 * dwarf2read.c (die_specification, dwarf2_extension, follow_die_ref):
535 Make the dwarf2_cu * parameter output as well as input. Update it if
536 we follow a reference to another CU.
537 (read_func_scope, determine_class_name, namespace_name, dwarf2_attr)
538 (die_type, die_containing_type): Update calls to changed functions.
539 Use the returned CU along with the returned DIE.
540 (read_namespace): Use dwarf2_attr instead of dwarf2_extension.
541
03dd20cc
DJ
5422008-08-20 Daniel Jacobowitz <[email protected]>
543
544 * dwarf2read.c (queue_comp_unit): Take an objfile argument. Read
545 in the DIEs here.
546 (process_queue): Do not read in the DIEs here.
547 (psymtab_to_symtab_1): Update call to queue_comp_unit.
548 (read_full_die): Do not call queue_comp_unit from here.
549 (maybe_queue_comp_unit): New function.
550 (follow_die_ref): Use it.
551
b60c80d6
DJ
5522008-08-20 Daniel Jacobowitz <[email protected]>
553
554 * dwarf2read.c (struct attribute): Move earlier.
555 (struct die_info): Change attrs to a trailing array.
556 (dwarf_alloc_die): Take the number of attributes. Allocate space
557 for them.
558 (read_full_die): Update call to dwarf_alloc_die. Do not manually
559 allocate attributes.
560
51545339
DJ
5612008-08-20 Daniel Jacobowitz <[email protected]>
562
563 * dwarf2read.c (REF_HASH_SIZE): Delete.
564 (struct dwarf2_cu): Replace die_ref_table with die_hash.
565 (struct die_info): Remove next_ref.
566 (store_in_ref_table): Remove offset argument. Rewrite to use
567 htab_find_slot_with_hash.
568 (die_hash, die_eq): New.
569 (read_comp_unit): Allocate the die_hash.
570 (read_die_and_children): Update call to store_die_ref.
571 (follow_die_ref): Rewrite to use htab_find_with_hash.
572
7475d072
DJ
5732008-08-20 Daniel Jacobowitz <[email protected]>
574
575 * dwarf2read.c (free_die_list, copy_die): Delete.
576 (dwarf_alloc_die): Take a CU argument. Allocate the new DIE
577 on the obstack.
578 (read_full_die): Update call to dwarf_alloc_die. Allocate
579 attributes on the CU obstack.
580 (free_one_comp_unit): Do not call free_die_list.
581
1d325ec1
DJ
5822008-08-20 Daniel Jacobowitz <[email protected]>
583
584 * dwarf2read.c (read_die_and_children): Ignore NULL DIEs.
585 (read_die_and_siblings): Likewise. Do not add padding DIEs to the
586 sibling list.
587 (read_full_die): Do not allocate DIEs for abbrev 0.
588 (follow_die_ref): Correct error message.
589
b96e2927
PA
5902008-08-20 Pedro Alves <[email protected]>
591
592 * linespec.c (symtab_from_filename): Also throw NOT_FOUND_ERROR if
593 there are no symbols loaded, instead of throwing a generic error.
594 (decode_variable): Likewise.
595
f1f6aadf
PA
5962008-08-20 Pedro Alves <[email protected]>
597
598 * objfiles.h (struct obj_section): Remove addr and endaddr fields.
599 (obj_section_offset, obj_section_addr, obj_section_endaddr): New
600 macros.
601 * objfiles.c (add_to_objfile_sections): Don't set addr, endaddr
602 and offset. Use size_t instead of unsigned long.
603 (build_objfile_section_table): Use size_t instead of unsigned
604 long.
605 (objfile_relocate): Don't relocate s->addr and s->endaddr, they're
606 gone.
607 (find_pc_sect_section): Use obj_section_addr and
608 obj_section_endaddr.
609 * symfile.c (symfile.c): Remove code that maps sections
610 offsets in "addr" to the object's sections.
611 * blockframe.c (find_pc_partial_function): Use obj_section_endaddr.
612 * gcore.c (gcore_create_callback): Use obj_section_addr and
613 obj_section_endaddr.
614 * maint.c (print_objfile_section_info): Likewise.
615 * printcmd.c (sym_info): Use obj_section_addr and
616 obj_section_endaddr.
617 * symtab.c (fixup_section): Likewise.
618
3923a2b2
MK
6192008-08-20 Mark Kettenis <[email protected]>
620
621 * sparc-tdep.c: Make some comments catch up with reality.
622
b3eb342c
VP
6232008-08-20 Vladimir Prus <[email protected]>
624
625 * NEWS: Mention 'set target-async'
626
7f7efbd9
VP
6272008-08-19 Vladimir Prus <[email protected]>
628
629 * infrun.c (resume): If the thread is placed to the deferred step
630 queue, mark it as running.
631
9908b566
VP
6322008-08-19 Vladimir Prus <[email protected]>
633
634 Make sure target supports non-stop.
635 * infcmd.c (run_command_1, attach_command): If non-stop mode
636 is requested, verify the target supports it.
637 * linux-nat.c (linux_nat_supports_non_stop): New.
638 (linux_nat_add_target): Register the above.
639 * target.c (find_default_supports_non_stop)
640 (target_supports_non_stop): New.
641 (init_dummy_target): Register find_default_supports_non_stop.
642 * target.h (struct target_ops): New field to_supports_non_stop.
643 (target_supports_non_stop): New.
644
c6ebd6cf
VP
6452008-08-19 Pedro Alves <[email protected]>
646 Vladimir Prus <[email protected]>
647
648 * target.c (target_async_permitted, target_async_permitted_1)
649 (set_maintenance_target_async_permitted)
650 (show_maintenance_target_async_permitted): New.
651 (initialize_targets): Register 'set target-async'.
652 * target.h (target_async_permitted): Declare.
653 * linux-nat.c (linux_nat_async_enabled)
654 (linux_nat_async_permitted, set_maintenance_linux_async_permitted)
655 (show_maintenance_linux_async_permitted): Remove.
656 (sigchld_handler, linux_nat_is_async_p, linux_nat_can_async_p)
657 (get_pending_events, linux_nat_async): Use target_async_permitted.
658 (linux_nat_set_async_mode): Remove, moving the only used bits
659 into...
660 (linux_nat_setup_async): This.
661 (_initialize_linux_nat): Do not register 'maint set linux-async'.
662 Use linux_nat_setup_async.
663 * remote.c (remote_async_permitted, remote_async_permitted_set)
664 (set_maintenance_remote_async_permitted)
665 (show_maintenance_remote_async_permitted): Remove.
666 (remote_open_1, remote_terminal_inferior, remote_can_async_p)
667 (remote_is_async_p): Use target_async_permitted.
668 (_initialize_remote): Don't register 'main set remote-async'.
669 * mi/mi-cmds.c (mi_cmds): Register -list-target-features.
670 * mi/mi-cmds.h (mi_cmd_list_target_features): New.
671 * mi/mi-main.c (mi_cmd_list_target_features): New.
672
073120b9
VP
6732008-08-19 Vladimir Prus <[email protected]>
674
675 * target.c (maybe_kill_then_attach)
676 (maybe_kill_then_create_inferior): Remove.
677 (update_current_target): Do not default to_attach,
678 to_create_inferiour, to_is_async_p.
679
690cc4eb 6802008-08-19 Paul N. Hilfinger <[email protected]>
bfb8797a
PH
681
682 Changes for supporting boolean types in debugging data.
690cc4eb
PH
683 * ada-lang.c (discrete_type_high_bound,discrete_type_low_bound): Change
684 API to return LONGEST values rather than struct values.
685 (ada_evaluate_subexp): Change to use new API of discrete_type_low_bound
686 and discrete_type_high_bound.
687 (to_fixed_range_type): Create a range type in cases where
688 argument is base type and its limits are representable as ints.
689 (ada_is_modular_type): Correct so that base type must be integral.
690 * ada-lex.l (TRUEKEYWORD,FALSEKEYWORD): Make 'true' and 'false'
691 keywords when they appear alone, since we are phasing out
bfb8797a 692 direct representation of these identifiers in debugging data.
690cc4eb
PH
693 * ada-exp.y: Define 'true' and 'false' as primaries.
694 (type_boolean): New function.
695 (type_int,type_long,type_long_long,type_floattype_double)
696 (type_long_double): Remove uses of current_gdbarch for consistency
697 with type_boolean.
698 (write_int): Change comment to indicate that it might write boolean
699 constant as well.
700 * ada-typeprint.c (ada_print_type): Print '(false, true)' for boolean
701 type, since will no longer be represented as enumerated type in
702 debugging data.
703 * ada-valprint.c (print_optional_low_bound): Handle boolean case
704 as well.
bfb8797a
PH
705 * NEWS: Note support boolean types.
706
39540081
PA
7072008-08-18 Pedro Alves <[email protected]>
708
709 * bsd-uthread.c (bsd_uthread_close): New.
710 (bsd_uthread_deactivate): Don't cleanup here, just unpush the
711 target.
712 (bsd_uthread_solib_loaded): Fix typo.
713 (bsd_uthread_target): Register bsd_uthread_close.
714
87ab71f0
PA
7152008-08-18 Pedro Alves <[email protected]>
716
717 * corelow.c (core_open): Assume there was no upper layer left
718 behind from a previous inferior.
719 * target.c (pop_all_targets): Rename to ...
720 (pop_all_targets_above): ... this. Add a target stratum
721 parameter. Use it instead of hardcoding the dummy_stratum.
722 (pop_all_targets): New, defer to pop_all_targets_above.
723 (target_preopen): Use pop_all_targets_above.
724 * target.h (pop_all_targets_above): Declare.
725
5231c1fd
PA
7262008-08-18 Pedro Alves <[email protected]>
727
728 * gdbthread.h (thread_change_ptid): Declare.
729 * infrun.c (infrun_thread_ptid_changed): New.
730 (_initialize_infrun): Attach infrun_thread_ptid_changed to the
731 thread_ptid_changed observer.
732 * regcache.c (regcache_thread_ptid_changed): New.
733 (_initialize_regcache): Attach regcache_thread_ptid_changed to the
734 thread_ptid_changed observer.
735 * thread.c (thread_change_ptid): New.
736
f98dfd4b
TT
7372008-08-18 Tom Tromey <[email protected]>
738
739 * symfile.c (reread_symbols): Update.
740 * solib-sunos.c (allocate_rt_common_objfile): Update.
741 * objfiles.c (allocate_objfile): Update.
742 * objfiles.h (struct objfile) <md, mmfd, deprecated_obj_private>:
743 Remove.
744
d87ecdfb
TT
7452008-08-18 Tom Tromey <[email protected]>
746
747 * gdbtypes.c (copy_type_recursive): Allocate 'stored' on objfile's
748 obstack.
749
46a9b8ed
DJ
7502008-08-18 Daniel Jacobowitz <[email protected]>
751
752 * rs6000-tdep.c (struct rs6000_framedata): Add gpr_mask, used_bl,
753 lr_register.
754 (rs6000_in_function_epilogue_p): Check for bctr.
755 (skip_prologue): Initialize lr_register. Set lr_reg to a register
756 number. Set gpr_mask and used_bl. Continue scanning while some
757 expected registers are not saved. Set lr_register if LR is not
758 stored.
759 (rs6000_frame_cache): Handle gpr_mask and lr_register.
760
44feb3ce
TT
7612008-08-17 Tom Tromey <[email protected]>
762
763 PR gdb/1535:
764 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): New macros.
765 (ep_find_event_name_end): Remove.
766 (catch_fork_temporary, catch_vfork_temporary,
767 catch_fork_permanent, catch_vfork_permanent): New constants.
768 (catch_vfork, catch_fork): Remove.
769 (catch_fork_command_1): Add 'command' argument. Remove
770 'fork_kind' and 'tempflag'. Handle NULL 'arg'. Update switch for
771 all cases.
772 (catch_exec_command_1): Add 'command' argument; remove
773 'tempflag'. Handle NULL 'arg'.
774 (catch_load_command_1): Likewise.
775 (catch_unload_command_1): Likewise.
776 (catch_ada_exception_command): Likewise.
777 (catch_assert_command): Likewise.
778 (catch_catch_command): New function.
779 (catch_throw_command): Likewise.
780 (catch_command_1): Remove.
781 (catch_command): Just call error.
782 (tcatch_command): Likewise.
783 (catch_cmdlist): New global.
784 (tcatch_cmdlist): Likewise.
785 (add_catch_command): New function.
786 (_initialize_breakpoint): Create "catch" and "tcatch" as prefix
787 commands. Create all catch sub-commands.
788
0d6431e2
PA
7892008-08-17 Pedro Alves <[email protected]>
790
791 * gdbthread.h: Add comments.
792 * stack.c (get_selected_block): Return 0 on an exited thread.
793 * top.c (execute_command): Check for is_stopped, not !is_running.
794 * event-top.c (command_handler): Likewise.
795
8931f526
PA
7962008-08-16 Pedro Alves <[email protected]>
797
798 * mi/mi-main.c (mi_cmd_exec_next, mi_cmd_exec_next_instruction)
799 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
800 (mi_cmd_exec_finish): Remove "return".
801
aa76d38d
PA
8022008-08-16 Pedro Alves <[email protected]>
803
804 * target.h (pop_all_targets): Declare.
805 * target.c (pop_all_targets): New.
806 * top.c (quit_target): Pop all targets instead of just closing the
807 current.
808
311a4e6b
TJB
8092008-08-16 Vladimir Prus <[email protected]>
810 Thiago Jung Bauermann <[email protected]>
811
812 * cli-script.c (read_next_line): Add parse_commands argument.
813 (recurse_read_control_structure): Adapt to new read_next_line
814 signature.
815 (read_command_lines): Add parse_commands argument.
816 (define_command): Adapt to new read_command_lines signature.
817 (document_command): Likewise.
818 * breakpoint.c (commands_command): Likewise.
819 * defs.h (read_command_lines): Adjust function prototype.
820
24209737
PH
8212008-08-16 Paul N. Hilfinger <[email protected]>
822
823 * ada-lang.c (pos_atr): Account for the possibility that the
824 argument may be a reference.
825
9f1d5432
PH
8262008-08-16 Paul N. Hilfinger <[email protected]>
827
828 * xcoffread.c (scan_xcoff_symtab): Do not include global symbols
829 ('F' format) for @FIX names generated by the loader, retaining only
830 the minimal symbols (and no partial symbol tables) for these names.
831 Fixes warning messages about symbols that are found in partial
832 symbol tables, but not full symbol tables.
833
83c265ab
PA
8342008-08-16 Pedro Alves <[email protected]>
835
836 * infrun.c (fetch_inferior_event): Only call normal_stop if not
837 stopping quietly.
838
604c2f83
LM
8392008-08-15 Luis Machado <[email protected]>
840
841 * rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c".
842 Include "features/rs6000/powerpc-vsx64.c".
843 (ppc_supply_vsxregset): New function.
844 (ppc_collect_vsxregset): New function.
845 (IS_VSX_PSEUDOREG): New macro.
846 (IS_EFP_PSEUDOREG): New macro.
847 (vsx_register_p): New function.
848 (ppc_vsx_support_p): New function.
849 (rs6000_builtin_type_vec128): New function.
850 (rs6000_register_name): Hide upper halves of vs0~vs31. Return
851 correct names for VSX registers and EFPR registers.
852 (rs6000_pseudo_register_type): Return correct types for VSX
853 and EFPR registers.
854 (rs6000_pseudo_register_reggroup_p): Return correct group for
855 VSX and EFPR registers.
856 (ppc_pseudo_register_read): Rename to dfp_pseudo_register_read.
857 (ppc_pseudo_register_write): Rename to dfp_pseudo_register_write.
858 (vsx_pseudo_register_read): New function.
859 (vsx_pseudo_register_write): New function.
860 (efpr_pseudo_register_read): New function.
861 (efpr_pseudo_register_write): New function.
862 (rs6000_pseudo_register_read): Call new VSX and EFPR read functions.
863 (rs6000_pseudo_register_write): Call new VSX and EFPR write functions.
864 (rs6000_gdbarch_init): Declare have_vsx.
865 Initialize new upper half VSX registers.
866 Initialize VSX-related and EFPR-related pseudo-registers variables.
867 Adjust the number of pseudo registers accordingly.
868
869 * ppc-linux-nat.c: Define PTRACE_GETVSXREGS, PTRACE_SETVSXREGS
870 and SIZEOF_VSRREGS.
871 (gdb_vsxregset_t): New type.
872 (have_ptrace_getsetvsxregs): New variable.
873 (fetch_vsx_register): New function.
874 (fetch_register): Handle VSX registers.
875 (fetch_vsx_registers): New function.
876 (fetch_ppc_registers): Handle VSX registers.
877 (store_ppc_registers): Handle VSX registers.
878 (store_vsx_register): New function.
879 (store_register): Handle VSX registers.
880 (store_vsx_registers): New function.
881 (ppc_linux_read_description): Handle VSX-enabled inferiors.
882 (gdb_vsxregset_t): New type.
883 (supply_vsxregset): New function.
884 (fill_vsxregset): New function.
885
886 * ppc-tdep.h (vsx_register_p): New prototype.
887 (vsx_support_p): New prototype.
888 (ppc_vsr0_regnum): New variable.
889 (ppc_vsr0_upper_regnum): Likewise.
890 (ppc_efpr0_regnum): Likewise.
891 (ppc_builtin_type_vec128): New type.
892 (ppc_num_vsrs): New constant.
893 (ppc_num_vshrs): New constant.
894 (ppc_num_efprs): Likewise.
895 Define POWERPC_VEC_VSX PPC_VSR0_UPPER_REGNUM and PPC_VSR31_UPPER_REGNUM.
896 (ppc_supply_vsxregset): New prototype.
897 (ppc_collect_vsxregset): New prototype.
898
899 * ppc-linux-tdep.c: Include "features/rs6000/powerpc-vsx32l.c"
900 Include "features/rs6000/powerpc-vsx64l.c".
901 (_initialize_ppc_linux_tdep): Initialize VSX-enabled targets.
902 (ppc_linux_regset_sections): Add new ".reg-ppc-vsx" field.
903 (ppc32_linux_vsxregset): New 32-bit VSX-enabled regset.
904 (ppc_linux_regset_from_core_section): Handle VSX core section.
905 (ppc_linux_core_read_description): Support VSX-enabled core files.
906
907 * ppc-linux-tdep.h: Declare *tdesc_powerpc_vsx32l
908 Declare tdesc_powerpc_vsx64l
909
910 * corelow.c (get_core_register_section): Support VSX-enabled
911 core files.
912
913 * features/rs6000/power-vsx.xml: New VSX descriptions.
914 * features/rs6000/powerpc-vsx32.xml: New file.
915 * features/rs6000/powerpc-vsx32l.xml: New file.
916 * features/rs6000/powerpc-vsx64.xml: New file.
917 * features/rs6000/powerpc-vsx64l.xml: New file.
918 * features/rs6000/powerpc-vsx32.c: New file (generated).
919 * features/rs6000/powerpc-vsx32l.c: New file (generated).
920 * features/rs6000/powerpc-vsx64.c: New file (generated).
921 * features/rs6000/powerpc-vsx64l.c: New file (generated).
922 * features/Makefile: Updated with new descriptions.
923 * regformats/rs6000/powerpc-vsx32l.dat: New file (generated).
924 * regformats/rs6000/powerpc-vsx64l.dat: New file (generated).
925
dde7c0a9
VP
9262008-08-15 Vladimir Prus <[email protected]>
927
928 * ia64-linux.nat (_initialize_ia64_linux_nat): Don't
929 call linux_target twice.
930
ebd67d87
AR
9312008-08-14 Aleksandar Ristovski <[email protected]>
932
933 * nto-tdep.c (lm_info): Updated struct lm_info definition from
934 solib-svr4.c
935 (LM_ADDR): Use l_addr if available; if not, use link map and set
936 l_addr.
937
886a217c
TT
9382008-08-14 Tom Tromey <[email protected]>
939
940 * macrocmd.c (macro_define_command): Check for NULL argument.
941 (macro_undef_command): Likewise.
942
3d488bfc
PA
9432008-08-14 Pedro Alves <[email protected]>
944
945 * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call.
946
33e5cbd6
PA
9472008-08-13 Pedro Alves <[email protected]>
948
949 * breakpoint.c (always_inserted_auto, always_inserted_on)
950 (always_inserted_off, always_inserted_enums): New.
951 (always_inserted_mode): Change type to char* and point to
952 always_inserted_auto.
953 (show_always_inserted_mode): In auto mode, also show the current
954 effect of the option.
955 (breakpoints_always_inserted_mode): Adjust for the new auto mode.
956 (_initialize_breakpoint): Make the "set breakpoints
957 always-inserted" command an enum command. Extend help to describe
958 the auto mode.
959
8fbde58b
UW
9602008-08-13 Ulrich Weigand <[email protected]>
961
962 * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
963 query valid) bit. Ignore bits outside the condition field.
964 (info_spu_proxydma_command): Ignore bits outside the field.
965
11fa8e43
MS
9662008-08-12 Michael Snyder <[email protected]>
967
968 * MAINTAINERS: Update my email address.
969
fcb09a75
UW
9702008-08-12 Ulrich Weigand <[email protected]>
971
972 * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP.
973
a6f3e723
SL
9742008-08-12 Pedro Alves <[email protected]>
975
976 Add no-ack mode to the remote protocol --- optionally stop ACKing
977 packets and responses when we have a reliable communication
978 medium.
979
980 Based on Apple's GDB, by Jason Molenda <[email protected]>
981
982 * remote.c (struct remote_state): Add noack_mode field.
983 (PACKET_QStartNoAckMode): New.
984 (remote_start_remote): Don't any outstanding packet here.
985 (remote_open_1): Clear noack_mode. Ack any outstanding packet
986 here. Activate noack mode if requested.
987 (remote_protocol_features): Add QStartNoAckMode.
988 (remote_open_1):
989 (putpkt_binary): Don't send ack in noack mode.
990 (read_frame): Don't recompute the checksum in noack mode.
991 (getpkt_sane): Skip sending ack if in noack mode.
992 (_initialize_remote): Add set/show remote noack mode.
993 * NEWS: Note the new features.
994
8ab3d180
KB
9952008-08-11 Kevin Buettner <[email protected]>
996
997 * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK):
998 New macros.
999 (rs6000_skip_main_prologue): New function.
1000 (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue.
1001
63a61bf6
SL
10022008-08-11 Sandra Loosemore <[email protected]>
1003
1004 * MAINTAINERS (Write After Approval): Add self.
1005
9d4fde75
SS
10062008-08-11 Stan Shebs <[email protected]>
1007
1008 ARM BE8 support.
1009 * disasm.c (gdb_disassemble_info): Set endian_code.
1010 * gdbarch.sh (gdbarch_info): New field byte_order_for_code.
1011 * gdbarch.h, gdbarch.c: Regenerate.
1012 * arch-utils.c (initialize_current_architecture): Set the
1013 default byte_order_for_code.
1014 (gdbarch_info_init): Ditto.
1015 (gdbarch_info_fill): Ditto.
1016 * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros.
1017 (thumb_analyze_prologue): Swap halfword if code endianness is
1018 different from general endianness.
1019 (arm_skip_prologue): Similarly.
1020 (arm_scan_prologue): Ditto.
1021 (thumb_get_next_pc): Ditto.
1022 (arm_get_next_pc): Ditto.
1023 (arm_gdbarch_init): Set byte_order_for_code from BE8 flag,
1024 choose correct endianness for breakpoints.
1025
6c613132
PA
10262008-08-10 Pedro Alves <[email protected]>
1027
1028 * bsd-kvm.c: Include "gdbthread.h".
1029 (bsd_kvm_ptid): New.
1030 (bsd_kvm_open): Add a main thread.
1031 (bsd_kvm_close): Delete it.
1032 (bsd_kvm_thread_alive): New.
1033 (bsd_kvm_pid_to_str): New.
1034 (bsd_kvm_add_target): Register bsd_kvm_thread_alive and
1035 bsd_kvm_pid_to_str.
1036 (bsd_kvm_add_target): Initialize bsd_kvm_ptid.
1037
6eb7ee03
PA
10382008-08-09 Pedro Alves <[email protected]>
1039
1040 * buildsym.c (start_subfile): Properly cast sentinel in concat
1041 call.
1042 * cp-name-parser.y: Include "config.h".
1043 * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in
1044 concat call.
1045 * gdb_select.h: Include sys/time.h if sys/select.h is not
1046 available.
1047
444c3224
PA
10482008-08-09 Pedro Alves <[email protected]>
1049
1050 * go32-nat.c: Include "gdbthread.h".
1051 (go32_stop, go32_kill_inferior): Delete the main thread.
1052 (go32_create_inferior): Add it.
1053 (go32_thread_alive, go32_pid_to_str): New.
1054 (init_go32_ops): Register go32_thread_alive and go32_pid_to_str.
1055
9d0b3624
PA
10562008-08-09 Pedro Alves <[email protected]>
1057
1058 * go32-nat.c (fetch_register, store_register): Pass the regcache
1059 gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p.
1060 (go32_xfer_memory): Change type of myaddr parameter to gdb_byte.
1061 (struct seg_descr, struct seg_descr): pack the whole struct
1062 instead of each member individually.
1063
509238d6
AS
10642008-08-09 Andreas Schwab <[email protected]>
1065
1066 * python/python.c (_initialize_python): Use unabbreviated commands
1067 in prefix name.
1068
c068b4e8
DJ
10692008-08-09 Daniel Jacobowitz <[email protected]>
1070
1071 * Makefile.in (stamp-h): Also create .deps.
1072
21374e5f
TT
10732008-08-09 Tom Tromey <[email protected]>
1074
1075 * Makefile.in (generated_files): Add GNULIB_H.
1076
7be67755
DA
10772008-08-09 John David Anglin <[email protected]>
1078
1079 * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set
1080 DT_HP_DEBUG_PRIVATE. Add warning if DT_HP_DEBUG_PRIVATE is not set.
1081 Revise comment.
1082 (pa64_current_sos): Remove map private warning warning.
1083 * solib-som.c: Include string.h and sys/utsname.h.
1084 (get_hpux_major_release): New function.
1085 (som_solib_create_inferior_hook): Read dynamic linker header. Warn
1086 about shared library private mapping on HP-UX 11 and later. Only force
1087 private mapping of shared libraries on HP-UX 10 and earlier.
1088 (link_map_start): Delete warning.
1089
e0c62198
L
10902008-08-09 Xuepeng Guo <[email protected]>
1091 H.J. Lu <[email protected]>
1092 Mark Kettenis <[email protected]>
1093
1094 * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg.
1095 (amd64_init_frame_cache): Initialize saved_sp_reg.
1096 (amd64_analyze_stack_align): New.
1097 (amd64_analyze_prologue): Call it.
1098 (amd64_frame_cache): Use saved_sp_reg if it is invalid. Don't set
1099 %rip to 8 when halfway aligning the stack.
1100
1101 * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to
1102 AMD64_R14_REGNUM.
1103
1104 * i386-tdep.c (i386_frame_cache): Remove stack_align. Add
1105 saved_sp_reg.
1106 (i386_alloc_frame_cache): Remove stack_align. Initialize
1107 saved_sp_reg to -1.
1108 (i386_analyze_stack_align): Rewrite.
1109 (i386_frame_cache): Use saved_sp_reg if it is valid.
1110
b9db4ced
UW
11112008-08-09 Ulrich Weigand <[email protected]>
1112
1113 * target.c: Include "solib.h".
1114 (target_pre_inferior): Call no_shared_libraries.
1115 * infcmd.c (run_command_1): Do not call objfile_purge_solibs
1116 or clear_solib.
1117 (attach_command): Do not call clear_solib.
1118
3979a37f
MK
11192008-08-09 Mark Kettenis <[email protected]>
1120
1121 * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
1122 the %eip register.
1123
2b26d9fa
TT
11242008-08-08 Tom Tromey <[email protected]>
1125
1126 * Makefile.in (python.o): Remove dependencies. Use COMPILE and
1127 POSTCOMPILE.
1128 (python-utils.o): Likewise.
1129
f1648876
AS
11302008-08-08 Andreas Schwab <[email protected]>
1131
1132 * corefile.c (_initialize_core): Remove spurious paren from set
1133 gnutarget doc string.
1134
b7622095
LM
11352008-08-08 Luis Machado <[email protected]>
1136
1137 * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h".
f1648876 1138 Define PPC_FEATURE_BOOKE.
b7622095
LM
1139 (ppc_linux_get_hwcap): New function.
1140 (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440
1141 4-bytes alignment restrictions.
1142 (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific
1143 positioning of the read/write flags.
1144 (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440
1145 4-bytes alignment.
1146
2dc38344
PA
11472008-08-08 Pedro Alves <[email protected]>
1148
1149 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
1150
1151 * win32-nat.c (win32_add_thread): Change thread argument type to
1152 ptid_t. Adjust.
1153 (win32_add_thread): Adjust.
1154 (win32_delete_thread): Change thread argument type to ptid_t.
1155 Adjust.
1156 (win32_fetch_inferior_registers, win32_store_inferior_registers)
1157 (win32_resume, get_win32_debug_event, get_win32_debug_event)
1158 (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust.
1159 (init_win32_ops): Put to_magic last.
1160 (win32_win32_thread_alive): Adjust.
1161
4d6c6261
PA
11622008-08-08 Pedro Alves <[email protected]>
1163
1164 * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New.
1165 (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str.
1166
e5ef4d75
PA
11672008-08-08 Pedro Alves <[email protected]>
1168
1169 * remote-m32r-sdi.c: Include "gdbthread.h".
1170 (remote_m32r_ptid): New.
1171 (m32r_close): Delete the main thread.
1172 (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the
1173 main thread.
1174 (m32r_kill, m32r_load, sdireset_command): Delete the main thread.
1175 (_initialize_remote_m32r): Initialize remote_m32r_ptid.
1176
a417dc56
RW
11772008-08-07 Tom Tromey <[email protected]>
1178 Ralf Wildenhues <[email protected]>
1179
1180 * aclocal.m4, configure: Rebuild.
1181 * configure.in: Call ZW_CREATE_DEPDIR,
1182 ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
1183 (MAKE, GMAKE): New substs.
1184 * acinclude.m4: Include depstand.m4.
1185 * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
1186 COMPILE, POSTCOMPILE, depcomp): New variables.
1187 Remove all _h variables.
1188 Remove many .o targets.
1189 ($(srcdir)/copying.c): avoid backslash-newline after comment
1190 sign (@maintainer_mode_true@).
1191 (HFILES_NO_SRCDIR): Regenerate.
1192 (generated_files): New variable.
1193 (all_gdbtk_cflags): Likewise.
1194 (.c.o): Rewrote.
1195 (init.o, version.o, copying.o): Remove.
1196 (distclean): Remove DEPDIR.
1197 (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
1198 printcmd.o, procfs.o, v850ice.o): Rewrite.
1199 (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
1200 cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
1201 (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
1202 gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
1203 gdbtk-wrapper.o): Likewise.
1204 (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
1205 mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
1206 mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
1207 mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
1208 tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
1209 tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
1210 tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
1211 tui-wingeneral.o, tui-winsource.o): Likewise.
1212 (all_object_files): New variable.
1213 ($(all_object_files)): New target.
1214 Include dependency files, when using GNU Make.
1215
12ab8a60
UW
12162008-08-07 Ulrich Weigand <[email protected]>
1217
1218 * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with
1219 the valid bit set. Ensure display order respects partial
1220 order defined by dependency bits.
1221
6536cc32
DA
12222008-08-06 John David Anglin <[email protected]>
1223
1224 * solib-pa64.c (read_dld_descriptor): Return zero if load map is not
1225 setup.
1226
f73a15e4
MK
12272008-08-06 Mark Kettenis <[email protected]>
1228
1229 * i386obsd-nat.c (i386obsd_supply_pcb): Adjust for changes in
1230 OpenBSD 4.3.
1231
d57a3c85
TJB
12322008-08-06 Vladimir Prus <[email protected]>
1233 Tom Tromey <[email protected]>
1234 Thiago Jung Bauermann <[email protected]>
1235 Doug Evans <[email protected]>
1236
1237 * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS,
1238 SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS,
1239 PYTHON_CFLAGS): New.
1240 (python_h, python_internal_h): New.
1241 (cli-script.o): Depend on python.h
1242 (python.o, python-utils.o): New.
1243 * cli/cli-script.c (print_command_lines): Handle python_control.
1244 (execute_control_command): Handle python_control.
1245 (execute_control_command_untraced): New function.
1246 (while_command): Call execute_control_command_untraced.
1247 (if_command): Likewise.
1248 (get_command_line): Remove static attribute.
1249 (read_next_line): Handle "python".
1250 (recurse_read_control_structure): Handle python_control.
1251 (read_command_lines): Handle python_control.
1252 Include python.h.
1253 * cli/cli-script.h (get_command_line): Add prototype.
1254 (execute_control_command_untraced): Likewise.
1255 * configure.ac: Add --with-python.
1256 * defs.h (enum command_control_type) <python_control>: New
1257 constant.
1258 * python/python-internal.h: New file.
1259 * python/python.c: New file.
1260 * python/python.h: New file.
1261 * python/python-utils.c: New file.
1262 * NEWS: Mention Python scripting support and its new commands.
1263
5141027d
UW
12642008-08-06 Ulrich Weigand <[email protected]>
1265
1266 * spu-tdep.c (spu_gdbarch_init): Call set_gdbarch_frame_red_zone_size.
1267
353cfe88
PM
12682008-08-06 Phil Muldoon <[email protected]>
1269
f1648876 1270 * MAINTAINERS (Write After Approval): Add self.
353cfe88 1271
d6b74ac4
PM
12722008-08-06 Phil Muldoon <[email protected]>
1273
1274 * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled.
1275 (insert_breakpoint_locations): Likewise.
1276
ef0d312a
MS
12772008-08-05 Phil Muldoon <[email protected]>
1278
1279 * breakpoint.c (create_longjmp_breakpoint): Remove unused struct
1280 breakpoint.
1281 (set_longjmp_breakpoint): Likewise.
1282
fb6d93b2
UW
12832008-08-04 John David Anglin <[email protected]>
1284
1285 PR build/2490
1286 * solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are
1287 defined.
1288
e6ad058a
TT
12892008-08-05 Tom Tromey <[email protected]>
1290
1291 * bcache.c (deprecated_bcache_added): Initialize obstack.
1292 (bcache_xmalloc): Don't initialize obstack.
1293 (bcache_xfree): Conditionally free obstack.
1294 (bcache_memory_used): Update.
1295
11d31d94
TT
12962008-08-05 Tom Tromey <[email protected]>
1297
1298 * symfile.c (add_psymbol_to_bcache): Return a const pointer. Use
1299 bcache_full.
1300 (append_psymbol_to_list): Accept a const pointer.
1301 (add_psymbol_to_list): Fix const correctness.
1302 * bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove.
1303 (bcache_full): Declare.
1304 * bcache.c (bcache_data, deprecated_bcache): Remove.
1305 (bcache): Use bcache_full.
1306 (bcache_full): Rename from deprecated_bcache_added. Change return
1307 type.
1308
5be973eb
SS
13092008-08-04 Stan Shebs <[email protected]>
1310
1311 * solib-svr4.c (BKPT_AT_SYMBOL): Remove, always defined.
1312 (bkpt_names): Remove SOLIB_BKPT_NAME, never defined.
1313 (enable_break): Remove test of BKPT_AT_SYMBOL.
1314
5062cc19
KS
13152008-08-02 Keith Seitz <[email protected]>
1316
1317 * acinclude.m4: Include ../config/tcl.m4 to pick up
1318 standard Tcl configury bits.
1319 Remove all Tcl, Tk, Itcl, Itk, etc definitions.
1320 * configure.ac: Don't check if ../itcl exists when building
1321 gdbtk. It could be installed.
1322 Rewrite gdbtk configury to allow for using system-supplied
f1648876 1323 Tcl and Tk. Gdbtk no longer requires build-time access to
5062cc19
KS
1324 itcl and itk.
1325 * Makefile.in: Remove everything related to itcl and itk.
1326 Rewrite the Tcl bits for gdbtk to correspond to rewrite of
1327 configure.ac.
1328 Remove v850ice.o build rule.
1329 (ALL_TCL_CFLAGS): New convenience defintion. Change all
1330 gdbtk sources to use it.
1331 * configure: Regenerate.
f1648876 1332
6d76a53d
SS
13332008-07-31 Stan Shebs <[email protected]>
1334
1335 * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE.
1336
ed7c5e43
SS
13372008-07-30 Stan Shebs <[email protected]>
1338
1339 * objfiles.c (TARGET_KEEP_SECTION): Remove.
1340 (add_to_objfile_sections): Remove use.
1341
22ad7fee
TT
13422008-07-29 Tom Tromey <[email protected]>
1343
1344 * cli/cli-decode.c (lookup_cmd_1): Use memcpy.
1345 (lookup_cmd_composition): Likewise.
1346
d5529a84
TT
13472008-07-29 Tom Tromey <[email protected]>
1348
1349 * cli/cli-cmds.c (edit_command): Remove unused variables. Delete
1350 dead code. Fix indentation.
1351
938f4ca8
SS
13522008-07-29 Stan Shebs <[email protected]>
1353
1354 * main.c (captured_main): Remove long-unused #if 0 blocks.
1355
7f4b89d1
TT
13562008-07-28 Tom Tromey <[email protected]>
1357
1358 * annotate.h (deprecated_annotate_starting_hook): Remove.
1359 (deprecated_annotate_stopped_hook): Remove.
1360 (deprecated_annotate_exited_hook): Remove.
1361 * Makefile.in (annotate.o): Depend on observer_h.
1362 * top.c (deprecated_delete_breakpoint_hook): Remove.
1363 (deprecated_create_breakpoint_hook): Likewise.
1364 (deprecated_modify_breakpoint_hook): Likewise.
1365 * interps.c (clear_interpreter_hooks): Update for removed hooks.
1366 * breakpoint.c (mention): Don't call removed hook.
1367 (delete_breakpoint): Likewise.
1368 (disable_breakpoint): Likewise.
1369 (do_enable_breakpoint): Likewise.
1370 * annotate.c: Include observer.h.
1371 (breakpoint_changed): Change type of argument.
1372 (_initialize_annotate): Register observers.
1373 (deprecated_annotate_starting_hook): Remove.
1374 (deprecated_annotate_stopped_hook): Remove.
1375 (deprecated_annotate_exited_hook): Remove.
1376 (annotate_starting): Update for hook removal.
1377 (annotate_stopped): Likewise.
1378 (annotate_exited): Likewise.
1379 * defs.h (deprecated_delete_breakpoint_hook): Remove.
1380 (deprecated_create_breakpoint_hook): Likewise.
1381 (deprecated_modify_breakpoint_hook): Likewise.
1382
8641e682
TT
13832008-07-28 Tom Tromey <[email protected]>
1384
1385 * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.
1386
064ef605
DJ
13872008-07-27 Daniel Jacobowitz <[email protected]>
1388
1389 * configure.ac: Check for the GNU/Linux ptrace signature.
1390 * configure: Regenerated.
1391
57380f4e
DJ
13922008-07-27 Daniel Jacobowitz <[email protected]>
1393
1394 * linux-nat.c (resume_callback): Add more debugging output.
1395 (linux_nat_has_pending_sigint): New function, based on
1396 linux_nat_has_pending.
1397 (set_ignore_sigint, maybe_clear_ignore_sigint): New functions.
1398 (stop_wait_callback): Remove flush_mask handling. Honor
1399 ignore_sigint. Call maybe_clear_ignore_sigint. Pass NULL
1400 to recursive calls.
1401 (linux_nat_has_pending, flush_callback): Remove.
1402 (linux_nat_filter_event): Check for ignore_sigint.
1403 (linux_nat_wait): Remove flush_mask support and call to
1404 flush_callback. Use set_ignore_sigint and maybe_clear_ignore_sigint.
1405 * linux-nat.h (struct lwp_info): Add ignore_sigint field.
1406
e09490f1
DJ
14072008-07-27 Daniel Jacobowitz <[email protected]>
1408
1409 * linux-nat.c (count_events_callback, select_event_lwp_callback): Only
1410 report events from resumed threads.
1411
e38d4e1a
DJ
14122008-07-27 Daniel Jacobowitz <[email protected]>
1413
1414 * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function.
1415 (mips_linux_init_abi): Set tdep->syscall_next_pc.
1416 * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to
1417 mips-tdep.h.
1418 (mips32_next_pc): Handle the syscall instruction.
1419 * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New,
1420 from mips-tdep.c. Add syscall_next_pc to gdbarch_tdep.
1421
fa8de41e
TT
14222008-07-26 Tom Tromey <[email protected]>
1423
1424 PR gdb/1158:
1425 * valops.c (value_struct_elt): Treat function-valued field as a
1426 static method.
1427
ccb3ac8a
TT
14282008-07-26 Tom Tromey <[email protected]>
1429
1430 PR gdb/1136:
1431 * macroexp.c (get_punctuator) <punctuators>: Rearrange to put
1432 longer tokens first.
1433
d72314c6
VP
14342008-07-26 Vladimir Prus <[email protected]>
1435
1436 Kill cmd_async_ok.
f1648876
AS
1437 * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok)
1438 (get_cmd_async_ok): Remove.
1439 * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove.
1440 * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok.
1441 * infcmd.c (_initialize_infcmd): Likewise.
1442 * thread.c (_initialize_thread): Likewise.
d72314c6 1443
5b68030f
JM
14442008-07-25 Joseph Myers <[email protected]>
1445
1446 * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing
1447 128-bit long doubles in even-odd pairs of FPRs. Do not
1448 right-align float arguments for big-endian.
1449 (mips_n32n64_return_value): Apply return value convention for
1450 structs containing one or two floating-point values to soft-float
1451 as well as hard-float. Handle 128-bit long doubles in such
1452 structs.
1453 (mips_o32_push_dummy_call): Only skip one integer register for a
1454 float argument passed in an FPR.
1455
383f836e
TT
14562008-07-25 Tom Tromey <[email protected]>
1457
1458 * tui/tui-hooks.c: Include observer.h.
1459 (tui_event_default, tui_old_event_hooks, tui_event_hooks):
1460 Remove.
1461 (tui_bp_created_observer, tui_bp_deleted_observer,
1462 tui_bp_modified_observer): New globals.
1463 (tui_install_hooks): Use observers, not events.
1464 (tui_remove_hooks): Likewise.
1465 * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h.
1466 (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New
1467 globals.
1468 (breakpoint_notify): Check mi_can_breakpoint_notify.
1469 (breakpoint_hooks): Remove.
1470 (mi_cmd_break_insert): Attach observers. Don't use events.
1471 * tracepoint.c: Include observer.h, not gdb-events.h.
1472 (tracepoint_operation, trace_pass_command): Notify observer.
1473 * interps.c: Don't include gdb-events.h.
1474 (clear_interpreter_hooks): Don't call clear_gdb_event_hooks.
1475 * gdbarch.c: Rebuild.
1476 * gdbarch.sh: Emit include for observer.h, not gdb-events.h.
1477 (deprecated_current_gdbarch_select_hack): Notify observer.
1478 * breakpoint.h: Don't include gdb-events.h.
1479 * breakpoint.c: Don't include gdb-events.h.
1480 (condition_command): Notify observer.
1481 (commands_command): Likewise.
1482 (commands_from_control_command): Likewise.
1483 (mention, delete_breakpoint, set_ignore_count): Likewise.
1484 (disable_breakpoint, do_enable_breakpoint): Likewise.
1485 * Makefile.in (gdb_events_h): Remove.
1486 (breakpoint_h): Update.
1487 (COMMON_OBS): Remove gdb-events.o.
1488 (gdb-events.o): Remove.
1489 (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o,
1490 gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update.
1491 * gdb-events.c: Remove.
1492 * gdb-events.h: Remove.
1493 * gdb-events.sh: Remove.
1494
60e569b9
PA
14952008-07-24 Pedro Alves <[email protected]>
1496
1497 * remote.c (remote_threads_extra_info): Don't query the remote
1498 server about info on the internally added main thread.
1499
a6a7f2a5
AR
15002008-07-24 Aleksandar Ristovski <[email protected]>
1501
1502 * nto-procfs.c (procfs_attach): Populate initial thread list.
1503 (procfs_wait): Return new pid, built from the inferior status.
1504
e63e4db2
TJB
15052008-07-23 Thiago Jung Bauermann <[email protected]>
1506
1507 * configure.ac (CONFIG_INITS): Delete long obsoleted variable.
1508 * configure: Regenerate.
1509
14ef7606
AR
15102008-07-23 Aleksandar Ristovski <[email protected]>
1511
1512 * nto-procfs.c (procfs_xfer_memory): Changed signature.
1513 (procfs_resume): Workaround for dereferencing type-punned pointer
1514 warning.
f1648876 1515 * nto-tdep.c (nto_parse_redirection): Change signature to be const
14ef7606
AR
1516 correct.
1517 * nto-tdep.h (nto_parse_redirection): Likewise.
1518
cfd8ab24
SS
15192008-07-21 Stan Shebs <[email protected]>
1520
1521 Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.
1522 * gdbarch.sh: Adjust comment to refer to
1523 in_solib_dynsym_resolve_code().
1524 * gdbarch.h, gdbarch.c: Update.
1525 * solib-osf.c: Ditto.
1526 * infrun.c: Ditto.
1527 (handle_inferior_event): Use in_solib_dynsym_resolve_code
1528 unconditionally.
1529 * config/mips/nm-irix5.h: Remove undef of
1530 IN_SOLIB_DYNSYM_RESOLVE_CODE.
1531
781b42b0
TT
15322008-07-21 Tom Tromey <[email protected]>
1533
1534 * symfile.c (reread_symbols): Don't pass argument to observer.
1535 * exec.c (exec_file_attach): Don't pass argument to observer.
1536 * ada-lang.c (ada_executable_changed_observer): Remove argument.
1537 * symtab.c (symtab_observer_executable_changed): Remove argument.
1538 * observer.sh: Handle functions with no arguments.
1539
a366c65a 15402008-07-20 Sergei Poselenov <[email protected]>
f1648876 1541 Chris Demetriou <[email protected]>
a366c65a
CD
1542
1543 * elfread.c (elf_symfile_segments): Fix the check that each loadable
1544 section fits within an ELF segment to handle ELF segments that hit
1545 the end of the address space.
1546
073d253f
CD
15472008-07-20 Chris Demetriou <[email protected]>
1548
1549 * MAINTAINERS (Write After Approval): Add self.
1550
d7d9f01e
TT
15512008-07-18 Tom Tromey <[email protected]>
1552
1553 PR gdb/855:
1554 * NEWS: Add entry for macro commands.
1555 * Makefile.in (macrocmd.o): Add gdb_string.h.
1556 * macroscope.h (user_macro_scope): Declare.
1557 (default_macro_scope): Update documentation.
1558 (macro_user_macros): Declare.
1559 * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup.
1560 Use user_macro_scope.
1561 (null_macro_lookup): Remove.
1562 * macrotab.h (macro_callback_fn): Declare.
1563 (macro_for_each): Likewise.
1564 (macro_allow_redefinitions): Likewise.
1565 * macrotab.c (foreach_macro): New function
1566 (macro_for_each): Likewise.
1567 (struct macro_table) <redef_ok>: New field.
1568 (macro_allow_redefinitions): New function.
1569 (new_macro_table): Update.
1570 (macro_define_function): Likewise.
1571 (macro_define_object): Likewise.
1572 * macroscope.c (user_macro_scope): New function.
1573 (default_macro_scope): Use it.
1574 (macro_user_macros): New global.
1575 (standard_macro_lookup): Look in macro_user_macros.
1576 (_initialize_macroscope): New function.
1577 * macroexp.h (macro_is_whitespace, macro_is_digit,
1578 macro_is_identifier_nondigit): Declare.
1579 * macroexp.c (macro_is_whitespace): Rename. No longer static.
1580 (macro_is_digit): Likewise.
1581 (macro_is_identifier_nondigit): Likewise.
1582 (get_identifier): Update.
1583 (get_pp_number): Likewise.
1584 (get_token): Likewise.
1585 * macrocmd.c (skip_ws): New function.
1586 (extract_identifier): Likewise.
1587 (free_macro_definition_ptr): Likewise.
1588 (user_macros): Remove.
1589 (macro_define_command): Implement.
1590 (_initialize_macrocmd): Update.
1591 (macro_undef_command): Implement.
1592 (print_one_macro): New function.
1593 (macro_list_command): Implement.
1594
0f72fb1c
JM
15952008-07-18 Joseph Myers <[email protected]>
1596
1597 * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl
1598 in BFD ELF check.
1599 * configure: Regenerate.
1600
7c6467a4
PP
16012008-07-17 Paul Pluzhnikov <[email protected]>
1602
1603 * auxv.c (fprint_target_auxv): Stop at AT_NULL.
1604
680b56ce
AS
16052008-07-15 Andreas Schwab <[email protected]>
1606
1607 * valops.c (value_cast_pointers): Follow typedefs when checking
1608 result of coercion.
1609
7f0df278
DJ
16102008-07-15 Daniel Jacobowitz <[email protected]>
1611
1612 * block.c (block_function): Renamed to ...
1613 (block_linkage_function): ... this. All callers changed.
1614 * block.h (block_function): Renamed to ...
1615 (block_linkage_function): ... this.
1616
ba2c6aec
DJ
16172008-07-15 Daniel Jacobowitz <[email protected]>
1618
1619 * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned.
1620
d56907c1
DJ
16212008-07-15 Daniel Jacobowitz <[email protected]>
1622
1623 * frame.c (frame_sp_unwind): Delete.
1624 (get_frame_sp): Do not use it.
1625 * frame.h (frame_sp_unwind): Delete prototype.
1626
f92aeb88
DJ
16272008-07-15 Daniel Jacobowitz <[email protected]>
1628
1629 * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc.
1630
ad1193e7
DJ
16312008-07-15 Daniel Jacobowitz <[email protected]>
1632
1633 * dwarf2-frame.c (dwarf2_frame_cache): Update comment.
1634 * frame.c (frame_unwind_address_in_block): Delete.
1635 (get_frame_address_in_block): Do not use it. Check the type
1636 of the next frame first.
1637 (frame_cleanup_after_sniffer): Update comment.
1638 * frame.h (frame_unwind_address_in_block): Delete prototype.
1639 * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment.
1640
ef02daa9
DJ
16412008-07-15 Daniel Jacobowitz <[email protected]>
1642
1643 * frame.c (frame_func_unwind): Delete.
1644 (get_frame_func): Do not use it.
1645 * frame.h (frame_func_unwind): Delete prototype.
1646 * hppa-tdep.c (hppa_frame_cache): Update comment.
1647 * rs6000-tdep.c (rs6000_frame_cache): Update comment.
1648
96e32df8
SS
16492008-07-14 Stan Shebs <[email protected]>
1650
1651 * remote-sim.c (init_gdbsim_ops): Remove
1652 TARGET_REDEFINE_DEFAULT_OPS.
1653
ab8650a3
DJ
16542008-07-15 Daniel Jacobowitz <[email protected]>
1655
1656 * findvar.c (read_var_value): Remove unused variable.
1657
8c90c137
LM
16582008-07-15 Luis Machado <[email protected]>
1659
1660 * infrun.c (handle_inferior_event): Tag threads as stopped
1661 before inserting breakpoints.
1662
4098af0f
HZ
16632008-07-15 Hui Zhu <[email protected]>
1664
1665 * MAINTAINERS: Added myself to section Write After Approval.
1666
7093c834
PP
16672008-07-14 Paul Pluzhnikov <[email protected]>
1668
1669 PR gdb/2477
1670 * cp-abi.c (value_virtual_fn_field): Handle invalid pointers.
680b56ce 1671
56514771
PA
16722008-07-14 Pedro Alves <[email protected]>
1673
1674 * i386-dicos-tdep.c (i386_dicos_frame_align): Delete.
1675 (i386_dicos_push_dummy_code): New.
1676 (i386_dicos_init_abi): Don't register i386_dicos_frame_align.
1677 Register i386_dicos_push_dummy_code.
1678
74ed0bb4
MD
16792008-07-14 Markus Deuling <[email protected]>
1680
1681 * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter.
1682 (mips_n32n64_push_dummy_call, mips_o64_return_value)
1683 (mips_eabi_push_dummy_call): Update call to fp_register_arg_p.
1684
1685 (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch.
1686 (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command)
1687 (mips_n32n64_fp_arg_chunk_p): Update caller.
1688
1689 (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter.
1690 (mips_n32n64_push_dummy_call): Update caller.
1691
1692 (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace
1693 current_gdbarch.
1694 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1695 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller.
1696
1697
1698 (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace
1699 current_gdbarch.
1700 (mips_eabi_push_dummy_call, mips_o32_push_dummy_call)
1701 (mips_o64_push_dummy_call): Update caller.
1702
1703 (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch.
1704 (fp_register_arg_p, mips_dump_tdep): Update caller.
1705
1706 (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch.
1707 (mips16_scan_prologue, mips32_scan_prologue): Update caller.
1708
1709 (reset_saved_regs): Make static. Add gdbarch as parameter. Replace
1710 current_gdbarch.
1711 (mips32_scan_prologue): Update caller.
1712
1713 (heuristic_proc_start): Add gdbarch as parameter. Replace
1714 current_gdbarch.
1715 (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller.
1716
1717 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
1718 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
1719 the current architecture. Update call to getregs_supplies.
1720 (getregs_supplies): Add gdbarch as parameter and replace
1721 current_gdbarch.
1722
1723 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to
1724 get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and
1725 NBSD_MIPS_JB_ELEMENT_SIZE.
1726 (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and
1727 replace current_gdbarch.
1728
1729 * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace
1730 current_gdbarch.
1731 (mips_fetch_registers, mips_store_registers): Update call
1732 to mips_map_regno.
1733 (mips_load): Use get_regcache_arch to get at the current_architecture
1734 and replace current_gdbarch.
1735
0c501536
PA
17362008-07-13 Pedro Alves <[email protected]>
1737
1738 * thread.c (restore_selected_frame): On fail to restore, select
1739 the innermost frame, and don't crash when warning the user.
1740
db009c8a
JB
17412008-07-13 Hui Zhu <[email protected]>
1742
1743 * symtab.c (expand_line_sal): Fix a memory leak.
1744
0ffe5012
PA
17452008-07-13 Pedro Alves <[email protected]>
1746
1747 * utils.c (struct continuation): Define as inheriting struct
1748 cleanup.
1749 (add_continuation, do_all_continuations)
1750 (discard_all_continuations, add_intermediate_continuation)
1751 (do_all_intermediate_continuations)
1752 (discard_all_intermediate_continuations): Adjust.
1753
dbba8251
VP
17542008-07-13 Vladimir Prus <[email protected]>
1755
1756 Skip varobj in running threads.
680b56ce
AS
1757 * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's
1758 thread is not stopped, skip the varobj.
1759 * Makefile.in: Update dependencies.
dbba8251 1760
e3d6cd5f
VP
17612008-07-13 Vladimir Prus <[email protected]>
1762
1763 Enable all commands while inferiour is running
680b56ce
AS
1764 * mi/mi-main.c (mi_cmd_execute): Don't check if
1765 inferiour is executing.
e3d6cd5f 1766
b10a37b1
VP
17672008-07-13 Vladimir Prus <[email protected]>
1768
1769 Allow all CLI command even if target is executing.
680b56ce
AS
1770 * gdb/top.c (execute_command_1): Don't check if the inferiour
1771 is running.
b10a37b1 1772
ea069267
VP
17732008-07-13 Vladimir Prus <[email protected]>
1774
1775 * mi/mi-main.c (mi_cmd_execute): Remove unused variable.
1776 Fix printing of frame, when frame is wrong.
1777
cdc9523a
UW
17782008-07-12 Ulrich Weigand <[email protected]>
1779
1780 * spu-tdep.c (spu_frame_unwind_cache): Do not error if
1781 backchain is unreadable.
1782
d5b25491
UW
17832008-07-12 Ulrich Weigand <[email protected]>
1784
1785 * spu-linux-nat.c: Include "gdbthread.h".
1786 (spu_child_post_startup_inferior): Register main thread.
1787 (spu_child_post_attach): Likewise.
1788 * Makefile.in (spu-linux-nat.o): Update dependencies.
1789
604ead4a
PA
17902008-07-12 Pedro Alves <[email protected]>
1791
1792 Rewrite continuations internals on top of cleanups and plug
1793 continuation arguments leaks.
1794
1795 * defs.h (struct continuation): Make it opaque.
1796 (add_continuation, add_intermediate_continuation): Drop the int
1797 argument of the continuation hook argument. Add
1798 continuation_free_args argument.
1799 (do_all_continuations, do_all_intermediate_continuations): Drop
1800 the error_p argument.
1801
1802 * utils.c (add_continuation): Drop the int argument of the
1803 continuation hook argument. Add continuation_free_args argument.
1804 Reimplement on top of cleanups.
1805 (do_all_continuations): Drop error argument. Reimplement on top
1806 of cleanups.
1807 (discard_all_continuations): Reimplement on top of cleanups.
1808 (add_intermediate_continuation): Drop the int argument of the
1809 continuation hook argument. Add continuation_free_args argument.
1810 Reimplement on top of cleanups.
1811 (do_all_intermediate_continuations): Drop error argument.
1812 Reimplement on top of cleanups.
1813 (discard_all_intermediate_continuations): Reimplement on top of
1814 cleanups.
1815
1816 * breakpoint.c (until_break_command_continuation): Drop error
1817 argument. Add xfree as continuation argument deleter.
1818
1819 * inf-loop.c (inferior_event_handler): On error, discard all
1820 continuations. Adjust to new do_all_intermediate_continuations
1821 and do_all_continuations interfaces.
1822
1823 * infcmd.c (step_1_continuation): Drop error_p argument. Adjust.
1824 Pass xfree as continuation argument deleter.
1825 (finish_command_continuation): Drop error_p argument. Adjust.
1826 (finish_command_continuation_free_arg): New.
1827 (finish_command): Pass finish_command_continuation_free_arg as
1828 continuation argument deleter. Adjust to new do_all_continuations
1829 interfaces.
1830 (attach_command_continuation): Drop error_p argument.
1831 (attach_command_continuation_free_args): New.
1832 (attach_command): Pass attach_command_continuation_free_args as
1833 continuation argument deleter.
1834
1835 * interps.c (interp_set): Adjust to new do_all_continuations
1836 interfaces.
1837
1838 * event-top.c (stdin_event_handler): In error, also discard the
1839 intermediate continuations.
1840
bfec99b2
PA
18412008-07-12 Pedro Alves <[email protected]>
1842
1843 Replace struct continuation_args by void* and per command structs.
1844
1845 * top.c (execute_command): Remove unused arg1 and arg2 locals.
1846
1847 * breakpoint.c (struct until_break_command_continuation_args):
1848 New.
1849 (until_break_command_continuation): Take a void* instead of a
1850 continuations_arg. Adjust.
1851 (until_break_command): Adjust to use struct
1852 until_break_command_continuation_args instead of struct
1853 continuation_arg.
1854
1855 * infcmd.c (struct step_1_continuation_args): New.
1856 (step_1_continuation): Take a void* instead of a
1857 continuations_arg. Adjust to use struct step_1_continuation_args.
1858 (step_once): Adjust to use struct step_1_continuation_args.
1859
1860 (struct finish_command_continuation_args): New.
1861 (finish_command_continuation): Take a void* instead of a
1862 continuations_arg. Adjust to use struct
1863 finish_command_continuation_args.
1864 (finish_command): Adjust to use struct
1865 finish_command_continuation_args.
1866 (struct attach_command_continuation_args): New.
1867 (attach_command_continuation): Take a void* instead of a
1868 continuations_arg. Adjust to use struct
1869 attach_command_continuation_args.
1870 (attach_command): Adjust to use struct
1871 attach_command_continuation_args.
1872
1873 * defs.h (struct continuation_arg): Delete.
1874 (struct continuation): Replace the struct continuation_arg*
1875 parameter of continuation_hook by a void*. Replace "arg_list"
1876 member by a new "args" member with void* type.
1877 (add_continuation, add_intermediate_continuation): Replace struct
1878 continuation_arg type usages by void* usages.
1879
1880 * utils.c (add_continuation, do_all_continuations)
1881 (add_intermediate_continuation)
1882 (do_all_intermediate_continuations): Replace struct
1883 continuation_arg type usages by void* usages. Pass "args" instead
1884 of "arg_list".
1885
2afb61aa
PA
18862008-07-12 Pedro Alves <[email protected]>
1887
1888 * infrun.c (struct thread_stepping_state): Delete sal member.
1889 (init_thread_stepping_state): Add local sal. Use it instead of
1890 tss->sal.
1891 (handle_inferior_event): New local stop_pc_sal. Use it instead of
1892 tss->sal.
1893 (step_into_function): Add local stop_func_sal. Use it instead of
1894 tss->sal.
1895
77ebaa5a
VP
18962008-07-12 Vladimir Prus <[email protected]>
1897
1898 Implement -exec-continue/-exec-interrupt --all.
680b56ce
AS
1899 * infcmd.c (continue_1): New, extracted from
1900 (continue_command): ...here.
1901 (interrupt_target_1): New, extracted from
1902 (interrupt_target_command): ...here.
1903 * inferior.h (continue_1, interrupt_target_1): New.
1904 * mi/mi-main.c (mi_cmd_exec_continue)
1905 (mi_cmd_exec_interrupt): Handle --all.
77ebaa5a 1906
1e92afda
VP
19072008-07-12 Vladimir Prus <[email protected]>
1908
1909 Implement --thread and --frame.
1910 * gdbthread.h (find_thread_id): Declare.
680b56ce
AS
1911 * thread.c (find_thread_id): Make non-static.
1912 * mi/mi-main.c (mi_cmd_execute): Switch to the right
1913 thread and frame, if necessary.
1914 * mi/mi-parse.c (mi_parse): Handle --thread and --frame.
1915 * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
1e92afda 1916
d56b7306
VP
19172008-07-12 Vladimir Prus <[email protected]>
1918
1919 * infrun.c (resume): Discard cleanups on early exit path.
1920
b1a268e5
VP
19212008-07-12 Vladimir Prus <[email protected]>
1922
680b56ce 1923 * infrun.c (normal_stop): For MI, report which threads
b1a268e5
VP
1924 were stopped.
1925
90139f7d
VP
19262008-07-12 Vladimir Prus <[email protected]>
1927
1928 Report thread state in -thread-info output.
680b56ce 1929 * thread.c (print_thread_info): Add new field "state".
90139f7d 1930
a0d21d28
PA
19312008-07-11 Pedro Alves <[email protected]>
1932
1933 * infrun.c (handle_inferior_event): Also ignore a
1934 TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP.
1935
14032a66
TT
19362008-07-11 Tom Tromey <[email protected]>
1937
1938 * completer.c (complete_line_internal): New function, from
1939 complete_line. Add 'for_help' parameter.
1940 (complete_line): Use it.
1941 (command_completer): Move later. Rewrite.
1942
65fc9b77
PA
19432008-07-11 Pedro Alves <[email protected]>
1944
1945 * thread.c (thread_apply_command): Move making the cleanup out of
1946 the loop.
1947
4f8d22e3
PA
19482008-07-11 Pedro Alves <[email protected]>
1949
1950 Exited threads.
1951
1952 * thread.c (enum thread_state): New.
1953 (thread_state main_thread_running): Delete, in favor of...
1954 (thread_state main_thread_state): ... this. Update throughout.
1955 (clear_thread_inferior_resources): New, split from free_thread.
1956 (free_thread): Call clear_thread_inferior_resources.
1957 (init_thread_list): Set main thread to stopped state.
1958 (add_thread_silent): Take care of PTID reuses.
1959 (delete_thread): If deleting inferior_ptid or a thread with
1960 refcount > 0, mark it as exited, but still keep it in the list.
1961 Only notify of thread exits, if we haven't done so yet.
1962 (iterate_over_threads): Make it safe to delete threads while
1963 iterating over them.
1964 (do_captured_list_thread_ids): Don't account for exited threads.
1965 (thread_alive): Check for the THREAD_EXITED state, and don't set
1966 ptid to -1 on exited threads.
1967 (set_running): Update to account for extra possible states.
1968 (is_thread_state): New.
1969 (is_stopped, is_exited): New.
1970 (is_running): Implement in terms of is_thread_state.
1971 (any_running): Update.
1972 (print_thread_info): Update. Account for exited threads. Don't
1973 warn about missed frame restoring here, its done in the cleanup.
1974 (switch_to_thread): Don't read from a thread that has gone.
1975 (restore_current_thread): In non-stop mode, do a full context
1976 switch.
1977 (restore_selected_frame): Add a frame_level argument. Rewrite.
1978 (struct current_thread_cleanup): Add selected_frame_level and
1979 was_stopped members.
1980 (do_restore_current_thread_cleanup): Check if thread was stopped
1981 and still is, and if the target has registers, stack and memory
1982 before restoring the selected frame. Don't delete the cleanup
1983 argument here.
1984 (restore_current_thread_cleanup_dtor): New.
1985 (make_cleanup_restore_current_thread): Remove all arguments.
1986 Rewrite.
1987 (thread_apply_all_command): Update. Prune threads.
1988 (thread_apply_command): Update.
1989 (thread_command): Account for currently selected exited thread.
1990 (do_captured_thread_select): Check for a running thread. Prune
1991 threads.
1992 (_initialize_thread): Make "info threads", "thread", "thread
1993 apply", and "thread apply all" appliable without a selected thread.
1994 * gdbthread.h (struct thread_info): Replace running_ by state_.
1995 Add refcount.
1996 (is_exited, is_stopped): Declare.
1997 (make_cleanup_restore_current_thread): Remove all arguments.
1998 * infrun.c: Include "event-top.h".
1999 (fetch_inferior_event): In non-stop mode, restore selected thread
2000 and frame after handling the event and running breakpoint
2001 commands. Display GDB prompt if needed.
2002 (normal_stop): In non-stop mode, don't print thread switching
2003 notice.
2004 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
2005 (get_cmd_no_selected_thread_ok): New.
2006 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New.
2007 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
2008 Declare.
2009 * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as
2010 no-selected-thread ok.
2011 * top.c (execute_command): Check for non no-selected-thread-ok
2012 commands.
2013 * linux-nat.c (struct saved_ptids, threads_to_delete)
2014 (record_dead_thread, prune_lwps): Delete.
2015 (exit_lwp): Unconditionally delete thread.
2016 (linux_nat_resume): Remove prune_lwps call.
2017 * infcmd.c (proceed_thread_callback): Check if !is_stopped instead
2018 of is_running. Adjust to make_cleanup_restore_current_thread
2019 interface change.
2020 * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the
2021 selected thread has exited.
2022 * inf-loop.c (inferior_event_handler): Don't display the prompt
2023 here.
2024 * varobj.c (c_value_of_root): Update.
2025 * defs.h (make_cleanup_dtor): Declare.
2026 * utils.c (make_cleanup_dtor): New.
2027
2028 * Makefile.in (infrun.o): Depend on $(event_top_h).
2029
8cae4b3f
PA
20302008-07-11 Pedro Alves <[email protected]>
2031
2032 Add "continue -a" and "interrupt -a" options for non-stop mode.
2033
2034 * infcmd.c (proceed_thread_callback, do_context_switch_to): New.
2035 (continue_command): Add "-a" option.
2036 (interrupt_target_command): Add "-a" option.
2037 (_initialize_infcmd): Add extend help of continue and interrupt
2038 command to mention the new "-a" option. Mark "continue" async ok.
2039
bf250677
DE
20402008-07-10 Doug Evans <[email protected]>
2041
2042 Add "set print symbol-loading on|off".
2043 * NEWS: Document new option.
2044 * symfile.h (print_symbol_loading): Declare.
2045 * symfile.c (print_symbol_loading): New global.
2046 (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols
2047 from ..." if print_symbol_loading.
2048 (_initialize_symfile): Add set/show print symbol-loading.
2049 * solib.c (solib_read_symbols): Only print "Loaded symbols for ..."
2050 if print_symbol_loading.
2051
4c28f408
PA
20522008-07-10 Pedro Alves <[email protected]>
2053
2054 Non-stop linux native.
2055
2056 * linux-nat.c (linux_test_for_tracefork): Block events while we're
2057 here.
2058 (get_pending_status): Implement non-stop mode.
2059 (linux_nat_detach): Stop threads before detaching.
2060 (linux_nat_resume): In non-stop mode, always resume only a single
2061 PTID.
2062 (linux_handle_extended_wait): On a clone event, in non-stop mode,
2063 add new lwp to GDB's thread table, and mark as running, executing
2064 and stopped appropriately.
2065 (linux_nat_filter_event): Don't assume there are other running
2066 threads when a thread exits.
2067 (linux_nat_wait): Mark the main thread as running and executing.
2068 In non-stop mode, don't stop all lwps.
2069 (linux_nat_kill): Stop lwps before killing them.
2070 (linux_nat_thread_alive): Use signal 0 to detect if a thread is
2071 alive.
2072 (send_sigint_callback): New.
2073 (linux_nat_stop): New.
2074 (linux_nat_add_target): Set to_stop to linux_nat_stop.
2075
2076 * linux-nat.h (thread_db_attach_lwp): Declare.
2077
2078 * linux-thread-db.c (thread_get_info_callback): Check for new
2079 threads if we have none.
2080 (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the
2081 stopped lwp. Check for new threads if we have none.
2082 (thread_db_attach_lwp): New.
2083 (thread_db_init): Set proc_handle.pid to inferior_ptid.
2084 (check_event): Set proc_handle.pid to the stopped lwp.
2085 (thread_db_find_new_threads): Set proc_handle.pid to any stopped
2086 lwp available, bail out if there is none.
2087
2088 * linux-fork.c (linux_fork_killall): Use SIGKILL instead of
2089 PTRACE_KILL.
2090
0aef6ba2
KB
20912008-07-10 Kevin Buettner <[email protected]>
2092
a4fafde3
KB
2093 * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
2094 `current_pc' from CORE_ADDR to ULONGEST.
2095
0aef6ba2
KB
2096 * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
2097 gdbsim_stop().
2098
10568435
JK
20992008-07-10 Jan Kratochvil <[email protected]>
2100
2101 * NEWS (New commands): Mention "set disable-randomization".
2102 * configure.ac: Add check for HAVE_PERSONALITY and
2103 HAVE_DECL_ADDR_NO_RANDOMIZE.
2104 * configure, config.in: Regenerate.
2105 * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
2106 [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
2107 ADDR_NO_RANDOMIZE.
2108 (disable_randomization, show_disable_randomization)
2109 (set_disable_randomization): New.
2110 (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
2111 PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the
2112 variable DISABLE_RANDOMIZATION.
2113 (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
2114 DISABLE_RANDOMIZATION.
2115
f9c72d52
PA
21162008-07-09 Pedro Alves <[email protected]>
2117
2118 Adjust all targets to new target_stop interface.
2119
2120 * gnu-nat.c (gnu_stop): Add ptid argument.
2121 * go32-nat.c (go32_stop): Add ptid argument.
2122 (go32_create_inferior): Pass inferior_ptid to go32_stop.
2123 * hpux-thread.c (hpux_thread_stop): Add ptid argument.
2124 * monitor.c (monitor_stop): Add ptid argument.
2125 (monitor_open): Pass inferior_ptid to monitor_stop.
2126 (monitor_interrupt): Pass inferior_ptid to target_stop.
2127 (monitor_stop): Add ptid argument.
2128 * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
2129 (procfs_create_inferior): Add ptid argument.
2130 * procfs.c (procfs_stop): Add ptid argument.
2131 * remote-m32r-sdi.c (m32r_stop): Add ptid argument.
2132 * remote-sim.c (gdbsim_stop): Add ptid argument.
2133 * sol-thread.c (sol_thread_stop): Add ptid argument.
2134 * win32-nat.c (win32_stop): Add ptid argument.
2135
94cc34af
PA
21362008-07-09 Pedro Alves <[email protected]>
2137
2138 Non-stop inferior control.
2139
2140 * infrun.c (resume): In non-stop mode, always resume just one
2141 thread.
2142 (proceed): Don't call prepare_to_proceed in non-stop mode.
2143 (fetch_inferior_event): In non-stop mode, switch context before
2144 handling the event.
2145 (error_is_running, ensure_not_running): New.
2146 (handle_inferior_event): In non-stop mode: Mark only the event
2147 thread as stopped. Require that the target module manages adding
2148 threads to the thread list. Assert that there isn't a
2149 deferred_step_ptid set. Don't switch to infwait_thread_hop_state.
2150 (normal_stop): Only mark not-running if inferior hasn't exited.
2151 In non-stop mode, only mark the event thread.
2152
2153 * thread.c:Include "cli/cli-decode.h".
2154 (print_thread_info): Don't read from a running thread.
2155 Output "(running)" if thread is running.
2156 (switch_to_thread): Don't read stop_pc if thread is executing.
2157 (do_restore_current_thread_cleanup): Don't write to a running
2158 thread.
2159 (thread_apply_all_command): Don't read from a running thread. In
2160 non-stop mode, do a full context-switch instead of just switching
2161 threads.
2162 (thread_apply_command): In non-stop mode, do a full context-switch
2163 instead of just switching threads.
2164 (do_captured_thread_select): Likewise. Inform user if selected
2165 thread is running.
2166 (_initialize_thread): Mark "info threads" and "thread" and
2167 async_ok.
2168
2169 * inf-loop.c (inferior_event_handler): In non-stop mode, don't
2170 unregister the target from the event loop.
2171
2172 * infcmd.c (continue_command, step_1, jump_command)
2173 (signal_command): Ensure the selected thread isn't running.
2174 (interrupt_target_command): In non-stop mode, interrupt only the
2175 selected thread.
2176
2177 * inferior.h (error_is_running, ensure_not_running): Declare.
2178
2179 * target.h (struct target_ops): Add ptid argument to the to_stop
2180 member.
2181 (target_stop): Add ptid_t argument.
2182
2183 * target.c (update_current_target): Add ptid argument to to_stop's
2184 type.
2185 (debug_to_stop): Add ptid_t argument.
2186 (debug_to_rcmd): Set to_stop_ptid.
2187
2188 * remote.c (remote_stop): Add ptid_t argument.
2189 (async_remote_interrupt): Add inferior_ptid to target_stop.
2190 * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
2191
2192 * Makefile.in (thread.o): Depend on $(cli_decode_h).
2193
59f0d5d9
PA
21942008-07-09 Pedro Alves <[email protected]>
2195
2196 Don't rely on ecs->wait_for_more.
2197
2198 * infrun.c (proceed): Clear the stepping state, set
2199 previous_inferior_ptid and clear infwait state.
2200 (wait_for_inferior): Don't clear the stepping state, set
2201 previous_inferior_ptid, or clear the infwait state here.
2202 (fetch_inferior_event): Don't clear the stepping state, set
2203 previous_inferior_ptid, or clear the infwait state here. Don't
2204 condition on wait_for_more.
2205
0d1e5fa7
PA
22062008-07-09 Pedro Alves <[email protected]>
2207
2208 Refactor infrun a bit.
2209
2210 * infrun.c (currently_stepping): Take a struct
2211 thread_stepping_state instead of an execution_control_state.
2212 (struct thread_stepping_state): New, split from
2213 execution_control_state.
2214 (gtss, tss): New globals.
2215 (proceed): Clear the stepping state, set previous_inferior_ptid
2216 and clear infwait state.
2217 (init_wait_for_inferior): Clear the stepping state,
2218 previous_inferior_ptid and infwait state.
2219 (waiton_ptid, infwait_state): New, split from
2220 execution_control_state.
2221 (struct execution_control_state): Members that persist through
2222 events moved out to either struct thred_stepping_state or made
2223 global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
2224 (wait_for_inferior, fetch_inferior_event): Use local
2225 execution_control_state. Update to execution_control_state split.
2226 (init_execution_control_state): Adjust.
2227 (init_thread_stepping_state): New, extracted from
2228 init_execution_control_state.
2229 (context_switch): Take a ptid instead of an
2230 execution_control_state.
2231 (context_switch_to): Adjust.
2232 (adjust_pc_after_break): Adjust.
2233 (init_infwait_state): New.
2234 (handle_inferior_event): Adjust.
2235
a474d7c2
PA
22362008-07-09 Pedro Alves <[email protected]>
2237 Vladimir Prus <[email protected]>
2238
2239 Per-thread commands.
2240
2241 * gdbthread.h: Remove unneeded forward declarations.
2242 Include "inferior.h".
2243 (struct thread_info): Add continuations,
2244 intermediate_continuations, proceed_to_finish, step_over_calls,
2245 stop_step, step_multi and stop_signal members.
2246 (save_infrun_state): Add continuations,
2247 intermediate_continuations, proceed_to_finish, step_over_calls,
2248 stop_step, step_multi, stop_signal and stop_bpstat parameters.
2249 (load_infrun_state): Add continuations,
2250 intermediate_continuations, proceed_to_finish, step_over_calls,
2251 stop_step, step_multi, stop_signal and stop_bpstat parameters.
2252
2253 * thread.c (load_infrun_state): In non-stop mode, load
2254 continuations, intermediate_continuations, proceed_to_finish,
2255 step_over_calls, stop_step, step_multi and stop_signal.
2256 (save_infrun_state): Store continuations,
2257 intermediate_continuations, proceed_to_finish, step_over_calls,
2258 stop_step, step_multi, stop_signal and stop_bpstat.
2259 (save_infrun_state): Store continuations,
2260 intermediate_continuations, proceed_to_finish, step_over_calls,
2261 stop_step, step_multi, stop_signal and stop_bpstat.
2262 (free_thread): Clear The thread's stop_bpstat.
2263
2264 * inferior.h (context_switch_to): Declare.
2265
2266 * infrun.c (ecss): New global.
2267 (context_switch): Context switch continuations,
2268 intermediate_continuations, proceed_to_finish, step_over_calls,
2269 stop_step, step_multi, stop_signal and stop_bpstat.
2270 (wait_for_inferior): Use global ecss.
2271 (async_ecss, async_ecs): Delete.
2272 (fetch_inferior_event): Use global ecss.
2273 (context_switch_to): New.
2274
2275 * top.c (execute_command): In non-stop, only check if the current
2276 thread is running, in all-stop, check if there's any thread
2277 running.
2278
2279 * breakpoint.c (bpstat_remove_breakpoint): New.
2280 (bpstat_remove_breakpoint_callback): New.
2281 (delete_breakpoint): Clear the stop_bpstats of all threads.
2282
2283 * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
2284 current thread is running, in all-stop, check if there's any
2285 thread running.
2286
2287 * Makefile.in (gdbthread_h): Depend on $(inferior_h).
2288
ad52ddc6
PA
22892008-07-09 Pedro Alves <[email protected]>
2290
2291 Add non_stop global.
2292
2293 * inferior.h (non_stop): Declare.
2294 * infrun.c (non_stop, non_stop_1): New.
2295 (set_non_stop, show_non_stop): New.
2296 (_initialize_infrun): Add "set/show non-stop" command.
2297
3a3e9ee3
PA
22982008-07-09 Pedro Alves <[email protected]>
2299
2300 Adjust fork/vfork/exec to pass ptids around.
2301
2302 * target.h (struct target_waitstatus): Store related_pid as a ptid.
2303 (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
2304 Take a ptid_t.
2305 * breakpoint.h (struct breakpoint): Change forked_inferior_pid
2306 type to ptid.
2307 * breakpoint.c (print_it_typical, bpstat_check_location)
2308 (print_one_breakpoint_location, set_raw_breakpoint_without_location)
2309 (create_fork_vfork_event_catchpoint): Adjust.
2310 * infrun.c (fork_event): Change parent_pid and child_pid types to
2311 ptid.
2312 (follow_exec, inferior_has_forked, inferior_has_vforked)
2313 (inferior_has_execd): Take a ptid_t and don't trim it.
2314 * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
2315 * linux-nat.c (linux_child_follow_fork): Adjust.
2316 * inf-ptrace.c (inf_ptrace_wait): Adjust.
2317 * inf-ttrace.c (inf_ttrace_wait): Adjust.
2318 * win32-nat.c (get_win32_debug_event): Don't set related_pid.
2319
8ea051c5
PA
23202008-07-09 Pedro Alves <[email protected]>
2321
2322 Add "executing" property to threads.
2323
2324 * inferior.h (target_executing): Delete.
2325 * gdbthread.h (struct thread_info): Add executing_ field.
2326 (set_executing, is_executing): New.
2327 * thread.c (main_thread_executing): New.
2328 (init_thread_list): Clear it and also main_thread_running.
2329 (is_running): Return false if target has no execution.
2330 (any_running, is_executing, set_executing): New.
2331
2332 * top.c: Include "gdbthread.h".
2333 (target_executing): Delete.
2334 (execute_command): Replace target_executing check by any_running.
2335 * event-top.c: Include "gdbthread.h".
2336 (display_gdb_prompt, command_handler): Replace target_executing by
2337 is_running.
2338 * inf-loop.c: Include "gdbthread.h". Don't mark as not executing
2339 here. Replace target_executing by is_running.
2340 * infrun.c (handle_inferior_event): Mark all threads as
2341 not-executing.
2342 * linux-nat.c (linux_nat_resume): Don't mark thread as executing
2343 here.
2344 * stack.c (get_selected_block): Return null if inferior is
2345 executing.
2346 * target.c (target_resume): Mark resumed ptid as executing.
2347 * breakpoint.c (until_break_command): Replace target_executing
2348 check by is_executing.
2349 * remote.c (remote_async_resume): Don't mark inferior as executing
2350 here.
2351 * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
2352 by any_running.
680b56ce 2353
8ea051c5
PA
2354 * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
2355 (mi_execute_async_cli_command): Replace target_executing by
2356 is_running.
2357
2358 * frame.c (get_current_frame): Error out if the current thread is
2359 executing.
2360 (has_stack_frames): New.
2361 (get_selected_frame, deprecated_safe_get_selected_frame): Check
2362 has_stack_frames.
680b56ce 2363
8ea051c5
PA
2364 * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
2365 $(gdbthread_h).
2366
4487aabf
PA
23672008-07-09 Pedro Alves <[email protected]>
2368
2369 * symfile.c (load_command): Reopen the exec file and reread
2370 symbols before anything else.
2371
9de2bdd7
PA
23722008-07-09 Pedro Alves <[email protected]>
2373
2374 * remote-sim.c: Include gdbthread.h.
2375 (remote_sim_ptid): New global.
2376 (gdbsim_create_inferior): Silently add the main task to GDB's
2377 thread list.
2378 (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
2379 task from GDB's thread list.
2380 (gdbsim_resume): Adjust to use remote_sim_ptid.
2381 (gdbsim_thread_alive, gdbsim_pid_to_str): New.
2382 (init_gdbsim_ops): Register gdbsim_thread_alive and
2383 gdbsim_pid_to_str.
2384 (_initialize_remote_sim): Initialize remote_sim_ptid.
2385 * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
2386
5e0b29c1
PA
23872008-07-09 Pedro Alves <[email protected]>
2388
2389 * monitor (monitor_ptid): New global.
2390 (monitor_open): Silently add the main task to GDB's thread list.
2391 (monitor_close, monitor_mourn_inferior): Silently delete the main
2392 task from GDB's thread list.
2393 (monitor_thread_alive, monitor_pid_to_str): New.
2394 (init_base_monitor_ops): Register monitor_thread_alive and
2395 monitor_pid_to_str.
2396 (_initialize_remote_monitors): Initialize monitor_ptid.
2397
2398 * gdbthread.h (delete_thread_silent): Declare.
2399 * thread.c (delete_thread): Rename to ...
2400 (delete_thread_1): ... this. Add "silent" parameter. If silent,
2401 don't do exit notifications.
2402 (delete_thread, delete_thread_silent): New, as wrappers to
2403 delete_thread_1.
2404
b60e7edf
PA
24052008-07-08 Pedro Alves <[email protected]>
2406
2407 * breakpoint.c (update_global_location_list): Add boolean
2408 "should_insert" argument. Only insert locations if caller told it
2409 too.
2410 (update_global_location_list_nothrow): Add boolean "should_insert"
2411 argument. Pass it to update_global_location_list.
2412 (insert_breakpoints, create_longjmp_breakpoint)
2413 (create_overlay_event_breakpoint, enable_overlay_breakpoints)
2414 (create_thread_event_breakpoint, create_solib_event_breakpoint)
2415 (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
2416 (enable_watchpoints_after_interactive_call_stop)
2417 (set_momentary_breakpoint, create_breakpoints)
2418 (break_command_really, watch_command_1)
2419 (create_ada_exception_breakpoint, update_breakpoint_locations)
2420 (do_enable_breakpoint, enable_command): Pass true to
2421 update_global_location_list.
2422 (bpstat_stop_status, disable_overlay_breakpoints)
2423 (disable_watchpoints_before_interactive_call_start)
2424 (delete_breakpoint, disable_breakpoint, disable_command): Pass
2425 false to update_global_location_list.
2426 (update_breakpoints_after_exec): Don't temporarily disable
2427 always-inserted mode.
2428
25b22b0a
PA
24292008-07-08 Pedro Alves <[email protected]>
2430
2431 * breakpoint.c (mark_breakpoints_out): Make public.
2432 (update_breakpoints_after_exec): Don't call mark_breakpoints_out
2433 here. Update comment.
2434 * breakpoint.h (mark_breakpoints_out): Declare.
2435
2436 * linux-nat.c (linux_handle_extended_wait): On
2437 TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
2438 * inf-ttrace.c (inf_ttrace_wait): Likewise.
2439
cce9b6bf
PA
24402008-07-08 Pedro Alves <[email protected]>
2441
2442 * infrun.c (follow_exec): Reset shared libraries before adding the
2443 main exec file.
2444
3c3185ac
JK
24452008-07-07 Jan Kratochvil <[email protected]>
2446
2447 * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
2448
42f0bc8e
PA
24492008-07-07 Pedro Alves <[email protected]>
2450
2451 * i386-dicos-tdep.c: Include "inferior.h".
2452 (i386_dicos_frame_align): New.
2453 (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call
2454 dummy location ON_STACK.
2455 * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
2456
b7292df3
JB
24572008-07-07 Joel Brobecker <[email protected]>
2458
2459 * gstdint.h: New file.
2460
bb599c81
VP
24612008-07-05 Vladimir Prus <[email protected]>
2462
2463 * mi/mi-interp.c (mi_on_resume): Don't try to report
2464 resumed thread it the thread list is empty.
2465
7f6a6314
PM
24662008-07-05 Pierre Muller <[email protected]>
2467
2468 * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
2469 completer for set to filename_completer.
680b56ce 2470
7f6a6314
PM
2471 NEWS: Mention it.
2472
711eabed
VP
24732008-07-04 Vladimir Prus <[email protected]>
2474
2475 Implement -target-attach.
680b56ce 2476 * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
711eabed 2477
db3b9a10
MS
24782008-06-21 Hui Zhu <[email protected]>
2479
2480 * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
2481
dc177b7a
PA
24822008-07-03 Pedro Alves <[email protected]>
2483
2484 * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
2485 * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
2486
2487 * target.h (struct target_ops): Add to_attach_no_wait member.
2488 (target_attach_no_wait): New.
2489 * target.c (update_current_target): Inherit to_attach_no_wait.
2490
2491 * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
2492 target_attach_no_wait runtime check.
2493
2494 * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
2495 * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
2496 win32_ops.
2497
caac8896
PA
24982008-07-03 Pedro Alves <[email protected]>
2499
2500 * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
2501 on debug_displaced being set.
2502
0d254d6f
DJ
25032008-06-30 Daniel Jacobowitz <[email protected]>
2504
2505 * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
2506 directly instead of get_frame_id.
2507
f74c6cad
LM
25082008-06-30 Luis Machado <[email protected]>
2509
2510 * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
2511 (deal_with_atomic_sequence): Update BC masks.
2512 (rs6000_gdbarch_init): Init displaced stepping infra-structure.
2513 Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
2514
395f2fc2
DJ
25152008-06-30 Daniel Jacobowitz <[email protected]>
2516
2517 * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
2518 register, not the previous frame's.
2519
8340a3fb
LM
25202008-06-30 Luis Machado <[email protected]>
2521
2522 * source.c (select_source_symtab): Make sure we skip namespace
2523 symtabs when showing cpp source code.
2524
cfefc99a
HPN
25252008-06-30 Hans-Peter Nilsson <[email protected]>
2526
2527 * MAINTAINERS (Authorized committers): Fix my email address.
2528
1b98914a
VP
25292008-06-28 Vladimir Prus <[email protected]>
2530
2531 * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
2532 -target-download and -target-select via CLI, so that
2533 the quoting rules are the same as they were (unfortunately)
2534 in all prior gdb releases.
2535 * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
2536 (mi_cmd_target_download, mi_cmd_target_select): Remove.
2537 * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
2538 (mi_cmd_target_download, mi_cmd_target_select): Remove.
2539 (mi_cmd_execute): Set current_token even for commands
2540 routed via CLI.
2541
94afd7a6
UW
25422008-06-28 Ulrich Weigand <[email protected]>
2543
2544 * alphafbsd-tdep.c: Update for unwinder changes.
2545 * alpha-linux-tdep.c: Likewise.
2546 * alphanbsd-tdep.c: Likewise.
2547 * alphaobsd-tdep.c: Likewise.
2548 * avr-tdep.c: Likewise.
2549 * cris-tdep.c: Likewise.
2550 * frv-linux-tdep.c: Likewise.
2551 * frv-tdep.c: Likewise.
2552 * h8300-tdep.c: Likewise.
2553 * hppa-linux-tdep.c: Likewise.
2554 * iq2000-tdep.c: Likewise.
2555 * m32c-tdep.c: Likewise.
2556 * m32r-linux-tdep.c: Likewise.
2557 * m32r-tdep.c: Likewise.
2558 * m68hc11-tdep.c: Likewise.
2559 * mep-tdep.c: Likewise.
2560 * mn10300-tdep.c: Likewise.
2561 * mt-tdep.c: Likewise.
2562 * score-tdep.c: Likewise.
2563 * sh64-tdep.c: Likewise.
2564 * sh-tdep.c: Likewise.
2565 * sparc64fbsd-tdep.c: Likewise.
2566 * sparc64nbsd-tdep.c: Likewise.
2567 * sparc64obsd-tdep.c: Likewise.
2568 * v850-tdep.c: Likewise.
2569 * vaxobsd-tdep.c: Likewise.
2570 * vax-tdep.c: Likewise.
2571 * xstormy16-tdep.c: Likewise.
2572
e111d6c9
VP
25732008-06-28 Vladimir Prus <[email protected]>
2574
2575 * mi/mi-main.c (enum captured_mi_execute_command_actions)
2576 (captured_mi_execute_command_args): Remove.
2577 (captured_mi_execute_command): Cast the closure to mi_parse
2578 pointer, not to captured_mi_execute_command_args, and don't
2579 set the action field thereof.
2580 (mi_execute_command): Pass struct mi_parse, not
2581 captured_mi_execute_command_args to captured_mi_execute_command.
2582 (mi_execute_command): Remove (dead) code for suppressing
2583 printing prompt.
2584
84e46146
PA
25852008-06-28 Pedro Alves <[email protected]>
2586
2587 * linux-nat.c (enum sigchld_state): New.
2588 (linux_nat_async_events_state): Renamed from
2589 linux_nat_async_events_enabled.
2590 (linux_nat_event_pipe_push, my_waitpid): Adjust.
2591 (sigchld_default_action): New.
2592 (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
2593 unconditionally.
2594 (linux_nat_create_inferior): Set events state to sigchld_default
2595 state.
2596 (linux_nat_resume): Adjust.
2597 (linux_nat_wait): Call linux_nat_async_events unconditionally.
2598 (sigchld_handler): Adjust.
2599 (linux_nat_async_mask): Don't set SIGCHLD actions here.
2600 (get_pending_events): Adjust.
2601 (linux_nat_async_events): Rewrite to handle enum sigchld_state
2602 instead of a boolean.
2603 (linux_nat_async): Adjust.
2604 (_initialize_linux_nat): Capture default SIGCHLD action into
2605 sigchld_default_action.
2606
20874c92
VP
26072008-06-28 Vladimir Prus <[email protected]>
2608
680b56ce
AS
2609 * breakpoint.c (moribund_locations): New.
2610 (bpstat_stop_status): Process moribund locations.
2611 (update_global_location_list): Add removed
2612 locations to moribund_locations.
2613 (breakpoint_retire_moribund): New.
2614 * breakpoint.h (struct bp_location): New field
2615 events_till_retirement.
2616 (breakpoint_retire_moribund): Declare.
2617 * thread.c (thread_count): New.
2618 * infrun.c (handle_inferior_event): Call
2619 breakpoint_retire_moribund.
2620 * gdbthread.h (thread_count): Declare.
20874c92 2621
cd0b43b1
JM
26222008-06-27 Joseph Myers <[email protected]>
2623
2624 * dfp.c (decimal_convert): Call match_endianness before and after
2625 conversion.
2626
7c0f6dcc
JL
26272008-06-27 Jonathan Larmour <[email protected]>
2628
2629 * remote.c (remote_insert_breakpoint): Ensure that if Z0
2630 unsupported and we fall back to memory_insert_breakpoint, we
2631 use the unmodified requested address.
2632
01c66ae6
JB
26332008-06-27 Joel Brobecker <[email protected]>
2634
2635 * dwarf2read.c (read_attribute_value): Issue a complaint when
2636 adjusting size attribute values of 0xffffffff as zero.
2637
7ccc1c74
JM
26382008-06-27 Joseph Myers <[email protected]>
2639
2640 * i386-tdep.c (i386_16_byte_align_p): New.
2641 (i386_push_dummy_call): Determine stack space required for
2642 arguments going forwards allowing for 16-byte alignment, then push
2643 arguments going forwards.
2644
c0a2216e
PA
26452008-06-27 Pedro Alves <[email protected]>
2646
2647 * infrun.c (start_remote): Don't clear thread list here.
2648 * monitor.c (monitor_open): Include "gdbthread.h". Clear thread
2649 list here.
2650 * remote.c (record_currthread): Upgrade the main thread and its
2651 entry in the thread list if this is the first time we hear about
2652 threads.
2653 (remote_thread_alive): Consider magic_null_ptid or a ptid without
2654 a tid member always alive.
2655 (remote_find_new_threads): Don't update the main thread here.
2656 (remote_start_remote): Clear thread list here. Always add the
2657 main thread.
2658 (extended_remote_attach_1): Add the main thread here.
2659 (extended_remote_mourn_1): Re-add the main thread here.
2660 (extended_remote_create_inferior_1): Add a main thread.
2661
2662 * Makefile.in (monitor.o): Depend on $(gdbthread_h).
2663
87b0e16e 26642008-06-27 Pedro Alves <[email protected]>
79d7f229
PA
2665
2666 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
2667
2668 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
2669 globals.
2670 (general_thread, continue_thread): Change type to ptid_t.
2671 (record_currthread): Take a ptid_t parameter instead of an
2672 integer.
2673 (MAGIC_NULL_PID): Delete.
2674 (set_thread): Take a ptid_t parameter and adjust.
2675 (set_general_thread, set_continue_thread): New.
2676 (remote_thread_alive, remote_newthread_step)
2677 (remote_current_thread, remote_find_new_threads)
2678 (remote_threads_info, remote_start_remote, remote_vcont_resume)
2679 (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
2680 (threadalive_test, remote_pid_to_str)
2681 (remote_get_thread_local_address): Adjust.
2682 (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
2683 and any_thread_ptid.
2684
3ca64bd3
JK
26852008-06-26 Jan Kratochvil <[email protected]>
2686
2687 * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
2688 * configure: Regenerated.
2689
28e94949
JB
26902008-06-26 Joel Brobecker <[email protected]>
2691
2692 * dwarf2read.c (read_attribute_value): Treat size attribute
2693 values of 0xffffffff as if the attribute value was zero.
2694
8a77dff3
VP
26952008-06-26 Vladimir Prus <[email protected]>
2696
2697 * linux-nat.c: Add description of overall logic.
2698
d5af19ba
DJ
26992008-06-26 Daniel Jacobowitz <[email protected]>
2700
2701 * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
2702 (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
2703 all dependencies on $(gdb_stdint_h).
2704 (distclean): Do not delete gdb_stdint.h.
2705 * acinclude.m4: Do not use stdint.m4.
2706 * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
2707 uintptr_t, and gdb_stdint.h.
2708 * defs.h: Include <stdint.h>.
2709 * gdb_thread_db.h: Assume stdint.h is already included.
2710 * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
2711 rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
2712 include gdb_stdint.h.
2713 * configure, config.in: Regenerate.
2714
00fbcec4
JM
27152008-06-26 Joseph Myers <[email protected]>
2716
2717 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
2718 decimal floating-point values in GPRs for soft-float.
2719 (do_ppc_sysv_return_value): Handle returning decimal
2720 floating-point values in GPRs for soft-float.
2721
d5086790
VP
27222008-06-26 Vladimir Prus <[email protected]>
2723
2724 * target.c (target_read_until_error): New.
680b56ce
AS
2725 * target.h (target_read_until_error): Declare.
2726 * mi/mi-main.c (mi_cmd_data_read_memory): Use
2727 target_read_until_error.
d5086790 2728
fe9441f6
JK
27292008-06-25 Jan Kratochvil <[email protected]>
2730
2731 Fix a memory leak found by Hui Zhu <[email protected]>.
2732 * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
2733 after the DECFLOAT detection to fix a memory leak. Remove the
2734 redundant NUM initialization. Protect the DECFLOAT detection memory
2735 access before the P block. Restore the P memory content for the
2736 DECFLOAT detection.
2737
ce8f13f8
VP
27382008-06-25 Vladimir Prus <[email protected]>
2739
2740 Kill the return value for all MI command functions.
2741 * mi/mi-cmds.h (enum mi_cmd_result): Remove.
2742 (mi_cmd_argv_ftype): Change return type to void.
2743
2744 * mi/mi-main.c: Adjust all function that implement
2745 MI commands to return nothing.
2746 (struct captured_mi_execute_command_actions):
2747 Remove the rc field.
2748 (mi_cmd_execute): Return nothing.
2749 (mi_execute_async_cli_command): Return nothing.
2750 (mi_cmd_exec_interrupt): Don't print ^done here.
2751 (mi_cmd_target_select): Don't print ^connected here.
2752 (captured_mi_execute_command): Don't check for MI_CMD_DONE.
2753 Special-case -target-select and output ^connected, not ^done.
2754
2755 * mi/mi-cmd-break.c: Adjust.
2756 * mi/mi-cmd-disas.c: Adjust.
2757 * mi/mi-cmd-env.c: Adjust.
2758 * mi/mi-cmd-file.c: Adjust.
2759 * mi/mi-cmd-stack.c: Adjust.
2760 * mi/mi-cmd-target.c: Adjust.
2761 * mi/mi-cmd-var.c: Adjust.
2762 * mi/mi-interp.c: Adjust.
2763 * mi/mi-symbol-cmds.c: Adjust.
2764
a2840c35
VP
27652008-06-25 Vladimir Prus <[email protected]>
2766
2767 Emit ^running via observer.
2768 * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
680b56ce
AS
2769 ^running here.
2770 (mi_on_resume): Print ^running if not previously output.
2771 * mi/mi-main.c (running_result_record_printed): New.
2772 (captured_mi_execute_command): Reset
2773 running_result_record_printed. Use running_result_record_printed
2774 to decide if we should skip ^done.
2775 (mi_execute_async_cli_command): Don't print ^running here.
2776 * mi/mi-main.h (current_token, running_result_record_printed):
2777 Declare.
a2840c35 2778
1f41b062
MS
27792008-06-24 Michael Snyder <[email protected]>
2780
2781 * infrun.c (_initialize_infrun): White space and typo fix.
2782
eff8332b
CF
27832008-06-23 Christopher Faylor <[email protected]>
2784
2785 * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
2786 (do_initial_win32_stuff): Fix problem with inability to set breakpoints
2787 when first loading DLL with "dll" command.
2788
e50ce6de 27892008-06-19 Pierre Muller <[email protected]>
114374a0
PM
2790
2791 * gnu-nat.c (proc_string): Use capital T for "Thread".
680b56ce 2792
e50ce6de 27932008-06-19 Pierre Muller <[email protected]>
17526a8c
PM
2794
2795 * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
680b56ce 2796
59ddf1e7
JB
27972008-06-18 Joel Brobecker <[email protected]>
2798
680b56ce
AS
2799 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
2800 the target cannot run.
59ddf1e7
JB
2801
28022008-06-18 Joel Brobecker <[email protected]>
ea8eedbe
JB
2803
2804 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
2805 we're attaching to a running process.
2806
e50ce6de 28072008-06-18 Pierre Muller <[email protected]>
7488902c
PM
2808
2809 * win32-nat.c (handle_load_dll): Give dll name and load address
2810 if debug_events is on.
2811 (handle_unload_dll): Likewise.
2812
8f6a8e84
VP
28132008-06-14 Vladimir Prus <[email protected]>
2814
2815 Don't suppress *running when doing finish.
680b56ce
AS
2816 * infcall.c (call_function_by_hand): Set both
2817 suppress_resume_observer and suppress_stop_observer.
2818 * infcmd.c (suppress_run_stop_observers): Split into...
2819 (suppress_resume_observer, suppress_stop_observer): ...those.
2820 (finish_command_continuation): Clear suppress_stop_observer.
2821 (finish_command): Set suppress_stop_observer.
2822 * inferior.h (suppress_run_stop_observers): Split into...
2823 (suppress_resume_observer, suppress_stop_observer): ...those.
2824 * infrun.c (normal_stop): Check for suppress_stop_observer.
2825 * thread.c (set_running): Check for suppress_resume_observer.
8f6a8e84 2826
4309257c
PM
28272008-06-12 Pedro Alves <[email protected]>
2828 Pierre Muller <[email protected]>
2829
2830 * gdbarch.sh (gdbarch_skip_main_prologue): New.
2831 * gdbarch.h, gdbarch.c: Regenerate.
2832 * i386-tdep.h (i386_skip_main_prologue): Declare.
2833 * i386-tdep.c (i386_skip_main_prologue): New.
680b56ce 2834 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
4309257c
PM
2835 i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
2836 * symtab.c (find_function_start_sal): When pc points at the "main"
2837 function, call gdbarch_skip_main_prologue.
2838
a4e2ee12
DJ
28392008-06-11 Daniel Jacobowitz <[email protected]>
2840
2841 * value.c (value_primitive_field): Fetch lazy register values.
2842
060871df
PA
28432008-06-11 Pedro Alves <[email protected]>
2844
2845 * NEWS: Mention support removal of undocumented S AA p PID stop
2846 reply packet.
2847
2848 * remote.c (remote_wait): Remove undocumented S AA p PID support.
2849
336de56d
SS
28502008-06-10 Stan Shebs <[email protected]>
2851
2852 * MAINTAINERS: Update my affiliation and address.
2853
7949220d
AS
28542008-06-10 Andreas Schwab <[email protected]>
2855
2856 * top.c (print_gdb_version): Don't print final newline.
2857
e1ac3328
VP
28582008-06-10 Vladimir Prus <[email protected]>
2859
2860 Implement *running.
680b56ce
AS
2861 * Makefile.in: Update dependencies.
2862 * gdbthread.h (struct thread_info): New field
2863 running_.
2864 (set_running, is_running): New.
2865 * thread.c (set_running, is_running): New.
2866 * inferior.h (suppress_normal_stop_observer): Rename to...
2867 (suppress_run_stop_observers): ..this.
2868 * infcmd.c (suppress_normal_stop_observer): Rename to...
2869 (suppress_run_stop_observers): ..this.
2870 (finish_command_continuation, finish_command): Adjust.
2871 * infcall.c (call_function_by_hand): Adjust.
2872 * infrun.c (normal_stop): Call set_running.
2873 * target.c (target_resume): New. Call set_running.
2874 * target.h (target_resume): Convert from macro to
2875 a function.
2876
2877 * mi/mi-interp.c (mi_on_resume): New.
2878 (mi_interpreter_init): Register mi_on_resume.
e1ac3328 2879
f7f9a841
VP
28802008-06-10 Vladimir Prus <[email protected]>
2881
2882 Use observers to report stop events in MI.
680b56ce
AS
2883 * mi/mi-interp.c (mi_on_normal_stop): New.
2884 (mi_interpreter_init): Register mi_on_normal_stop.
2885 (mi_interpreter_exec_continuation): Remove.
2886 (mi_cmd_interpreter_exec): Don't register the above.
2887 * mi/mi-main.c (captured_mi_execute_command): Don't care
2888 about sync_execution.
2889 (mi_execute_async_cli_command): Don't install continuation. Don't
2890 print *stopped.
2891 (mi_exec_async_cli_cmd_continuation): Remove.
f7f9a841 2892
f5871ec0
VP
28932008-06-10 Vladimir Prus <[email protected]>
2894
2895 Suppress normal stop observer when it's problematic.
680b56ce
AS
2896 * inferior.h (suppress_normal_stop_observer): New.
2897 * infcall.c (call_function_by_hand): Disable stop events when
2898 doing function calls.
2899 * infmcd.c (suppress_normal_stop_observer): New.
2900 (finish_command_continuation): Call normal_stop observer
2901 explicitly.
2902 (finish_command): Disable stop events inside proceed.
2903 * infrun.c (normal_stop): Don't call normal stop observer if
2904 suppressed of if multi-step is in progress.
f5871ec0 2905
3d3191a6
VP
29062008-06-10 Vladimir Prus <[email protected]>
2907
2908 Remove stale code.
680b56ce
AS
2909 * infrun.c (finish_command): Don't pass cleanup
2910 to continuation.
2911 (finish_command_continuation): Don't grab cleanup from
2912 the passed data, as we don't use, and cannot, use it anyway.
3d3191a6 2913
0b080f59
VP
29142008-06-10 Vladimir Prus <[email protected]>
2915
2916 Introduce common cleanup for restoring integers.
680b56ce
AS
2917 * defs.h (make_cleanup_restore_integer): New declaration.
2918 (struct cleanup): New field free_arg.
2919 (make_my_cleanup_2): New.
2920 * utils.c (restore_integer_closure, restore_integer)
2921 (make_cleanup_restore_integer): New.
2922 (make_my_cleanup): Initialize the free_arg field and
2923 renamed to make_my_cleanup_2.
2924 (do_my_cleanups): Call free_arg.
2925 (discard_cleanups): Call free_arg.
2926 * breakpoint.c (restore_always_inserted_mode): Remove.
2927 (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
0b080f59 2928
b4f62b57
DE
29292008-06-09 Doug Evans <[email protected]>
2930
2931 * remote.c (remote_wait): Include beginning of malformed packet
2932 in error output.
2933
37cd5d19
TT
29342008-06-09 Tom Tromey <[email protected]>
2935
2936 * completer.c (complete_line): Don't special-case
2937 expression_completer.
2938 (expression_completer): Only pass last word to
2939 location_completer.
2940 * c-exp.y (yylex): Check 'token', not 'operator'.
2941
3526781e
DJ
29422008-06-09 Daniel Jacobowitz <[email protected]>
2943
2944 * configure.ac (build_warnings): Add -Wno-format for mingw.
2945 * configure: Regenerated.
2946
d001be7a
DJ
29472008-06-07 Daniel Jacobowitz <[email protected]>
2948
2949 * NEWS: Make indentation consistent. Move exec tracing entry out
2950 of remote packet list.
2951
65d12d83
TT
29522008-06-06 Tom Tromey <[email protected]>
2953
2954 * value.h (evaluate_subexpression_type, extract_field_op):
2955 Declare.
2956 * printcmd.c (_initialize_printcmd): Use expression_completer for
2957 'p', 'inspect', 'call'.
2958 * parser-defs.h (parse_field_expression): Declare.
2959 * parse.c: Include exceptions.h.
2960 (in_parse_field, expout_last_struct): New globals.
2961 (mark_struct_expression): New function.
2962 (prefixify_expression): Return int.
2963 (prefixify_subexp): Return int. Use expout_last_struct.
2964 (parse_exp_1): Update.
2965 (parse_exp_in_context): Add 'out_subexp' argument. Handle
2966 in_parse_field.
2967 (parse_field_expression): New function.
2968 * expression.h (parse_field_expression): Declare.
2969 (in_parse_field): Likewise.
2970 * eval.c (evaluate_subexpression_type): New function.
2971 (extract_field_op): Likewise.
2972 * completer.h (expression_completer): Declare.
2973 * completer.c (expression_completer): New function.
2974 (count_struct_fields, add_struct_fields): New functions.
2975 * c-exp.y (yyparse): Redefine.
2976 (COMPLETE): New token.
2977 (exp): New productions.
2978 (saw_name_at_eof, last_was_structop): New globals.
2979 (yylex): Return COMPLETE when needed. Recognize in_parse_field.
2980 (c_parse): New function.
2981 * breakpoint.c (_initialize_breakpoint): Use expression_completer
2982 for watch, awatch, and rwatch.
2983 * Makefile.in (parse.o): Depend on exceptions_h.
2984
fed27633
PP
29852008-06-06 Paul Pluzhnikov <[email protected]>
2986
2987 PR gdb/1147
2988 * gdb/valopts.c (find_overload_match): Handle references
2989 to pointers.
2990
aced2898
PH
29912008-06-06 Paul N. Hilfinger <[email protected]>
2992
2993 * ada-lang.c (ada_value_assign): Correct big-endian case to take into
2994 account the bitsize of the 'from' operand.
2995
a2b87ed1
PA
29962008-06-06 Pedro Alves <[email protected]>
2997
2998 * annotate.h (annotate_thread_changed): Declare.
2999
3d6d0b9d
NR
30002008-06-06 Nick Roberts <[email protected]>
3001
3002 * annotate.c (annotate_thread_changed): New function.
3003 * thread.c (thread_command) : Use it.
3004 * infrun.c (normal_stop): Use it.
3005
c16158bc 30062008-06-05 Vladimir Prus <[email protected]>
680b56ce
AS
3007 Nathan Sidwell <[email protected]>
3008 Joseph Myers <[email protected]>
c16158bc
JM
3009
3010 * acinclude.m4: Include ../config/acx.m4.
3011 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
3012 * configure, config.in: Regenerate.
3013 * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
3014 address.
3015 * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
3016
75c99385
PA
30172008-06-05 Pedro Alves <[email protected]>
3018
3019 Replace 'target async' by 'maintenance set remote-async' and
3020 'target remote' combination.
3021
3022 * remote.c (remote_async_wait): Merge into remote_wait, and
3023 remove.
3024 (remote_async_permitted, remote_async_permitted_set): New
3025 variables.
3026 (set_maintenance_remote_async_permitted)
3027 (show_maintenance_remote_async_permitted): New functions.
3028 (remote_async_ops, extended_async_remote_ops): Delete.
3029 (remote_async_open, extended_remote_async_open): Delete.
3030 (remote_open_1): Drop async_p parameter. Update callers. Replace
3031 async_p with remote_async_permitted checks.
3032 (extended_async_remote_attach): Delete.
3033 (remote_resume, remote_async_resume): Merge and leave remote_resume.
3034 (remote_async_terminal_inferior): Rename to...
3035 (remote_terminal_inferior): ... this, and add
3036 remote_async_termitted check.
3037 (remote_async_terminal_ours): Rename to...
3038 (remote_terminal_ours): ... this, and add remote_async_termitted
3039 check.
3040 (remote_wait, remote_async_wait): Merge and leave remote_wait
3041 only.
3042 (remote_kill, remote_async_kill): Merge and leave remote_kill
3043 only.
3044 (remote_async_mourn, extended_async_remote_mourn): Delete.
3045 (extended_remote_create_inferior_1): Drop async_p parameter.
3046 Update callers. Always use extended_remote_ops.
3047 (extended_remote_async_create_inferior): Delete.
3048 (remote_return_zero): Delete.
3049 (init_remote_ops): Register remote_can_async_p, remote_async,
3050 remote_async_mask, remote_terminal_inferior and
3051 remote_terminal_ours.
3052 (remote_can_async_p, remote_is_async_p): Check for
3053 remote_async_permitted.
3054 (init_remote_async_ops, init_extended_async_remote_ops): Remove.
3055 (set_remote_cmd): Don't add async and extended-async targets.
3056 (_initialize_remote): Add set/show remote-async maintenance
3057 commands.
3058
cf30943b
PA
30592008-06-05 Pedro Alves <[email protected]>
3060
3061 * remote.c (kill_kludge): Delete.
3062 (remote_wait, remote_async_wait): Don't set it.
3063 (remote_kill, remote_async_kill): Don't do anything with it.
3064
49fd4a42
PA
30652008-06-05 Pedro Alves <[email protected]>
3066
3067 * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
3068
2e618c13
AR
30692008-06-05 Aleksandar Ristovski <[email protected]>
3070
3071 * bcache.c (bcache_data): Call deprecated_bcache_added function.
680b56ce
AS
3072 (deprecated_bcache_added): New function name. Body of function
3073 bcache_data is used here with the addition of 'added' argument.
2e618c13
AR
3074 * bcache.h (deprecated_bcache_added): New function.
3075 * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
3076 work from add_psymbol_to_list - initialises partial symbol and stashes
3077 it in objfile's cache.
680b56ce 3078 (append_psymbol_to_list): New helper function, takes other part of
2e618c13 3079 work from add_psymbol_to_list - adds partial symbol to the given list.
680b56ce 3080 (add_psymbol_to_list): Call helper functions instead of doing work
2e618c13
AR
3081 here. If adding to global list, do not duplicate partial symbols in the
3082 partial symtab.
3083
c0b37c48
AR
30842008-06-05 Aleksandar Ristovski <[email protected]>
3085
3086 * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
3087 'exception caught|thrown' message.
3088
1e3a102a
JK
30892008-06-05 Jan Kratochvil <[email protected]>
3090
3091 * Makefile.in: Update dependencies.
3092 * dwarf2expr.c: New include "gdb_assert.h".
3093 (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
3094 (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
3095 (execute_stack_op): Error out on too large RECURSION_DEPTH.
3096 Increase/decrease RECURSION_DEPTH around the function.
3097
8d385431
DJ
30982008-06-05 Daniel Jacobowitz <[email protected]>
3099
3100 * remote.c (get_offsets): Handle a single segment.
3101 * symfile.c (symfile_map_offsets_to_segments): Allow more bases
3102 than segments.
3103
93a57060
DJ
31042008-06-03 Daniel Jacobowitz <[email protected]>
3105
3106 * solib-svr4.c (struct lm_info): Add lm_addr.
3107 (main_lm_addr): New.
3108 (svr4_default_sos): Set lm_addr.
3109 (svr4_current_sos): Set lm_addr and main_lm_addr.
3110 (svr4_fetch_objfile_link_map): Rewrite.
3111 (svr4_clear_solib): Clear main_lm_addr.
3112
609ba780 31132008-06-03 Michael Snyder <[email protected]>
680b56ce 3114 Joseph Myers <[email protected]>
609ba780
JM
3115
3116 * mips-tdep.c (mips_eabi_return_value): Replace stub that always
3117 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
3118
c95f5026
JB
31192008-06-02 Roman Zippel <[email protected]>
3120
3121 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
3122
e4d8bc08
JB
31232008-06-02 Roman Zippel <[email protected]>
3124
3125 * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
3126
40adab56
JB
31272008-06-01 Joel Brobecker <[email protected]>
3128
3129 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
3130 treat pointers in data space as function descriptors if the
3131 target address is also in the data space.
3132
bfd66dd9
JB
31332008-05-30 Joel Brobecker <[email protected]>
3134
3135 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
3136 the trad-frame register value for the SP register.
3137
7ea566be
MK
31382008-05-29 Mark Kettenis <[email protected]>
3139
3140 * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
3141
fcac911a
JB
31422008-05-28 Joel Brobecker <[email protected]>
3143
3144 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
3145 that identifies function descriptors outside of the .opd section.
3146
ade92717
AR
31472008-05-28 Aleksandar Ristovski <[email protected]>
3148
3149 * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
680b56ce 3150 temporary catchpoints. In MI add missing fields 'reason', 'disp',
ade92717
AR
3151 'bkptno'.
3152 (print_mention_exception_catchpoint): Add 'Temporary' for temporary
3153 catchpoints.
3154 (handle_gnu_v3_exceptions): Use tempflag.
3155
f7f9ae2c
VP
31562008-05-28 Vladimir Prus <[email protected]>
3157
3158 Refactor varobj_update interface.
680b56ce
AS
3159 * varobj.c (varobj_update): Report changes as vector. Also
3160 return not just a list of varobj, but a list of special structures
3161 that tell what exactly has changed.
3162 * varobj.h (enum varobj_update_error): Rename to
3163 varobj_scope_status.
3164 (struct varobj_update_result_t): New.
3165 (varobj_update): Adjust prototype.
3166 * mi/mi-cmd-var.c: Adjust for changes.
f7f9ae2c 3167
ea56f9c2
VP
31682008-05-28 Vladimir Prus <[email protected]>
3169
3170 * varobj.c (varobj_update): Fix comment typo.
3171 Fix indentation.
3172
c7efd0b9
JB
31732008-05-26 Joel Brobecker <[email protected]>
3174
3175 Set the symtab field of symbols read from ECOFF debugging entries.
3176 * mdebugread.c (add_symbol): Add new parameter symtab.
3177 (parse_symbol): Update calls to add_symbol throughout.
3178
2a2d4dc3
AS
31792008-05-27 Andreas Schwab <[email protected]>
3180
3181 * symtab.h (enum address_class): Remove LOC_REGPARM and
3182 LOC_COMPUTED_ARG.
3183 (struct symbol): Add is_argument.
3184 (SYMBOL_IS_ARGUMENT): Define.
3185
3186 * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
3187 * buildsym.c (finish_block): Likewise.
3188 * stack.c (print_frame_args, print_block_frame_locals)
3189 (print_frame_arg_vars): Likewise.
3190 * symtab.c (lookup_block_symbol): Likewise.
3191 * tracepoint.c (add_local_symbols): Likewise.
3192 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
3193
3194 * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
3195 * dwarf2read.c (new_symbol): Likewise.
3196 * mdebugread.c (parse_symbol): Likewise.
3197 * stabsread.c (define_symbol): Likewise.
3198
3199 * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
3200 and LOC_COMPUTED_ARG.
3201 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
3202 * ax-gdb.c (gen_var_ref): Likewise.
3203 * eval.c (evaluate_subexp_for_address): Likewise.
3204 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
3205 * m2-exp.y (yylex): Likewise.
3206 * printcmd.c (address_info): Likewise.
3207 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
3208 * tracepoint.c (collect_symbol, scope_info): Likewise.
3209
17ea7499
CES
32102008-05-24 Carlos Eduardo Seo <[email protected]>
3211
3212 * gdbarch.sh: Added new gdbarch struct
3213 core_regset_sections.
3214 * gdbarch.c: Refreshed.
3215 * gdbarch.h: Refreshed.
3216 * regset.h (core_regset_section): Declared.
3217 * linux-nat.c (linux_nat_do_thread_registers): Added
3218 support for the new gdbarch struct core_regset_sections.
3219 * utils.c (host_address_to_string): New function.
3220 * defs.h (host_address_to_string): New prototype.
3221 * i386-linux-tdep.c (i386_regset_rections): New register
3222 sections list for i386.
3223 (i386_linux_init_abi): Initialized new gdbarch struct
3224 core_regset_sections.
3225 * Makefile.in: Updated to reflect dependency changes.
3226 * ppc-linux-tdep.c (ppc_regset_sections): Register
3227 sections list for ppc.
3228 (ppc_linux_init_abi): Initialized new gdbarch struct
3229 core_regset_sections
3230
c4fc331b
AS
32312008-05-24 Andreas Schwab <[email protected]>
3232
3233 * linespec.c (decode_objc): Save current language around call to
3234 get_selected_block.
3235
e936309c
JB
32362008-05-23 Joel Brobecker <[email protected]>
3237
3238 * valprint.h (get_array_bounds): Renames get_array_low_bound.
3239 * valprint.c (get_array_bounds): Renames get_array_low_bound.
3240 Return the proper bound value if the array index type is an
3241 enumerated type. Compute the high bound if requested.
3242 (val_print_array_elements): Handle the case when the array
3243 element has a null size.
3244 * ada-valprint.c (print_optional_low_bound): Add handling
3245 for empty arrays or arrays of zero-size elements.
3246 (ada_val_print_array): New function, extracted out from
3247 ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
3248 handle empty arrays and arrays of zero-size elements.
3249 (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
3250 code by call to ada_val_print_array.
3251 (ada_value_print): Remove handling of null array. The handling
3252 was incomplete and is now better handled by ada_val_print_array.
3253
50ee7535
MD
32542008-05-23 Markus Deuling <[email protected]>
3255
3256 * annotate.c (annotate_source, annotate_frame_begin): Replace
3257 deprecated_print_address_numeric with paddress.
3258 * cli/cli-cmds.c (list_command, edit_command): Likewise.
3259 * tui/tui-stack.c (tui_make_status_line): Likewise.
3260
3261 * defs.h (deprecated_print_address_numeric): Remove.
3262 * printcmd.c (deprecated_print_address_numeric): Remove.
3263 * maint.c (maint_print_section_info): Fix comment.
3264
d44e8473
MD
32652008-05-23 Markus Deuling <[email protected]>
3266
3267 * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
3268 print_binary_chars, print_char_chars): Add byte_order parameter and
3269 replace gdbarch_byte_order.
3270 (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
3271 expressions and remove them. Remove unused TWO_TO_FOURTH.
3272 (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
3273 endianness. Update call to print_hex_chars.
3274 * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
3275 print_binary_chars, print_char_chars): Add byte_order parameter.
3276 * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
3277 get at the endianness. Update print_*_char calls to use byte_order.
3278
10f4ecb8
UW
32792008-05-22 Ulrich Weigand <[email protected]>
3280
3281 * symtab.h (struct symbol): Make "aux_value" member a void pointer
3282 instead of a union.
3283 (SYMBOL_LOCATION_BATON): Update.
3284
c3b22bd0
UW
32852008-05-22 Ulrich Weigand <[email protected]>
3286
3287 * symtab.h (enum address_class): Remove LOC_BASEREG and
3288 LOC_BASEREG_ARG.
3289 (struct symbol): Remove "basereg" member of "aux_value" union.
3290 (SYMBOL_BASEREG): Remove.
3291
3292 * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
3293 or LOC_BASEREG_ARG.
3294 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
3295 (ada_add_block_symbols): Likewise.
3296 * ax-gdb.c (gen_var_ref): Likewise.
3297 * buildsym.c (finish_block): Likewise.
3298 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
3299 * m2-exp.y (yylex): Likewise.
3300 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
3301 * printcmd.c (address_info): Likewise.
3302 * stack.c (print_frame_args, print_block_frame_locals): Likewise.
3303 (print_frame_arg_vars): Likewise.
3304 * symmisc.c (print_symbol): Likewise.
3305 * symtab.c (lookup_block_symbol): Likewise.
3306 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
3307 (scope_info): Likewise.
3308
aa59ba6b
UW
33092008-05-22 Ulrich Weigand <[email protected]>
3310
3311 * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
3312
3313 * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
3314 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
3315 (ada_add_block_symbols): Likewise.
3316 * ax-gdb.c (gen_var_ref): Likewise.
3317 * buildsyms.c (finish_block): Likewise.
3318 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
3319 * m2-exp.y (yylex): Likewise.
3320 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
3321 * printcmd.c (address_info): Likewise.
3322 * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
3323 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
3324 * symtab.c (lookup_block_symbol): Likewise.
3325 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
3326 (scope_info): Likewise.
3327
0bb4e8c4
UW
33282008-05-22 Ulrich Weigand <[email protected]>
3329
3330 * symtab.h (enum address_class): Remove LOC_INDIRECT and
3331 LOC_HP_THREAD_LOCAL_STATIC.
3332
3333 * findvar.c (symbol_read_needs_frame, read_var_value): Do not
3334 handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
3335 (read_var_value): Likewise.
3336 * buildsym.c (finish_block): Likewise.
3337 * objfiles.c (objfile_relocate): Likewise.
3338 * printcmd.c (address_info): Likewise.
3339 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
3340 * tracepoint.c (scope_info): Likewise.
3341
9f61f19b
MG
33422008-05-21 Markus Deuling <[email protected]>
3343 Maxim Grigoriev <[email protected]>
3344
3345 * xtensa-tdep.c (xtensa_read_register): Remove.
3346 (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
3347 argument litbase to call0_frame_cache().
3348 (call0_track_op, call0_analyze_prologue)
3349 (call0_frame_cache): Use extra argument litbase.
3350
0e479716
JB
33512008-05-21 Joel Brobecker <[email protected]>
3352
3353 * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
3354
214be669
UW
33552008-05-21 Ulrich Weigand <[email protected]>
3356
3357 * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
3358
0cd9ab92
UW
33592008-05-21 Ulrich Weigand <[email protected]>
3360
3361 * alpha-mdebug-tdep.c: Include "trad-frame.h".
3362 (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
3363 struct trad_frame_saved_reg *.
3364 (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
3365 trad_frame_alloc_saved_regs. Update accesses. Record previous
3366 value of SP as being vfp.
3367 (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
3368 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
3369
f52cb1b8
MD
33702008-05-21 Markus Deuling <[email protected]>
3371
3372 * score-tdep.c (score_print_insn): Get the current endianess from
3373 disassemble_info instead of gdbarch_byte_order.
3374
8fa75a5d
PA
33752008-05-21 Pedro Alves <[email protected]>
3376
3377 * frame.c (get_prev_frame_1): Build frame id before setting
3378 this_frame->prev_p, not after.
3379
e8e48118
NR
33802008-05-21 Nick Roberts <[email protected]>
3381
3382 * annotate.c (annotate_new_thread): New function for new-thread
3383 annotation.
3384 * annotate.h: (annotate_new_thread): New extern.
3385 * thread.c (add_thread_with_info): Use it.
3386 * Makefile.in (thread.o): Add dependency on annotate.h.
3387
c57918b2
JB
33882008-05-20 Joel Brobecker <[email protected]>
3389
3390 * win32-nat.c (win32_wait): Block the control-c event while
3391 waiting for a debug event.
3392
6c9353d3
PA
33932008-05-19 Pedro Alves <[email protected]>
3394
3395 * symtab.h (lookup_symbol_in_language): Update comment.
3396 * symtab.c (lookup_symbol_aux_block): Update comment.
3397 * ada-lang.c (ada_lookup_symbol_list): Update comment.
3398
2570f2b7
UW
33992008-05-19 Ulrich Weigand <[email protected]>
3400
3401 * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
3402 (lookup_symbol): Likewise.
3403 * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
3404 (lookup_symbol): Likewise.
3405 (search_symbols): Update.
3406
3407 * linespec.c (find_methods, collect_methods): Update.
3408 (add_matching_methods, add_constructors): Update.
3409 (decode_compound, decode_dollar, decode_variable): Update.
3410 (lookup_prefix_sym): Update.
3411
3412 (symbol_found): Remove SYM_SYMTAB parameter.
3413 Use SYMBOL_SYMTAB (sym) instead.
3414
3415 * gdbtypes.c (lookup_typename): Update.
3416 (lookup_struct, lookup_union, lookup_enum): Update.
3417 (lookup_template_type): Update.
3418 (check_typedef): Update.
3419 * language.c (lang_bool_type): Update.
3420 * mdebugread.c (parse_procedure): Update.
3421 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3422 * parse.c (write_dollar_variable): Update.
3423 * printcmd.c (address_info): Update.
3424 * source.c (select_source_symtab): Update.
3425 * stack.c (print_frame_args, print_frame_arg_vars): Update.
3426 * valops.c (find_function_in_inferior): Update.
3427 (value_struct_elt_for_reference): Update.
3428 * value.c (value_static_field, value_fn_field): Update.
3429
3430 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3431 * arm-tdep.c (arm_skip_prologue): Update.
3432 * mt-tdep.c (mt_skip_prologue): Update.
3433 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
3434
3435 * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
3436 * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
3437 (add_defn_to_vec): Likewise.
3438 (ada_add_block_symbols): Likewise.
3439 (lookup_cached_symbol, cache_symbol): Likewise.
3440 (standard_lookup): Update.
3441 (ada_lookup_symbol_list): Update.
3442
3443 * c-valprint.c (c_val_print): Update.
3444 * cp-support.c (cp_lookup_rtti_type): Update.
3445 * jv-lang.c (java_lookup_class, get_java_object_type): Update.
3446 * objc-lang.c (lookup_struct_typedef, find_imps): Update.
3447 * p-valprint.c (pascal_val_print): Update.
3448 * scm-lang.c (scm_lookup_name): Update.
3449
3450 * c-exp.y: Update.
3451 * f-exp.y: Update.
3452 * jv-exp.y: Update.
3453 * m2-exp.y: Update.
3454 * objc-exp.y: Update.
3455 * p-exp.y: Update.
3456
21b556f4
UW
34572008-05-19 Ulrich Weigand <[email protected]>
3458
3459 * language.h (struct language_defn): Remove SYMTAB parameter from
3460 la_lookup_symbol_nonlocal callback function pointer.
3461
3462 * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
3463 (ada_lookup_encoded_symbol): Likewise.
3464 * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
3465 Always call fixup_symbol_section.
3466 (ada_lookup_symbol): Remove SYMTAB parameter.
3467 (ada_lookup_symbol_nonlocal): Likewise.
3468 * ada-exp.y (write_object_renaming): Update.
3469 (find_primitive_type): Likewise.
3470
3471 * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
3472 (cp_lookup_symbol_namespace): Likewise.
3473 * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
3474 (lookup_symbol_file): Likewise.
3475 (lookup_possible_namespace_symbol): Likewise.
3476 (cp_lookup_symbol_nonlocal): Likewise.
3477 (cp_lookup_symbol_namespace): Likewise.
3478 (cp_lookup_nested_type): Update.
3479
3480 * scm-valprint.c (scm_inferior_print): Update.
3481 * valops.c (value_maybe_namespace_elt): Update.
3482
3483 * solist.h (struct target_so_ops): Remove SYMTAB parameter from
3484 lookup_lib_global_symbol callback function pointer.
3485 (solib_global_lookup): Remove SYMTAB parameter.
3486 * solib.c (solib_global_lookup): Remove SYMTAB parameter.
3487 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
3488
3489 * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
3490 (lookup_symbol_static): Likewise.
3491 (lookup_symbol_global): Likewise.
3492 (lookup_symbol_aux_block): Likewise.
3493 (lookup_global_symbol_from_objfile): Likewise.
3494 * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
3495 (lookup_symbol_aux_local): Likewise.
3496 (lookup_symbol_aux_block): Likewise.
3497 (lookup_symbol_aux_symtabs): Likewise.
3498 (lookup_symbol_aux_psymtabs): Likewise.
3499 (lookup_global_symbol_from_objfile): Likewise.
3500 (basic_lookup_symbol_nonlocal): Likewise.
3501 (lookup_symbol_static): Likewise.
3502 (lookup_symbol_global): Likewise.
3503
3504 (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
3505
39237dd1
PA
35062008-05-17 Pedro Alves <[email protected]>
3507
3508 * remote.c (init_extended_remote_ops): Fix typo.
3509
7c0d47a5
PA
35102008-05-16 Pedro Alves <[email protected]>
3511
3512 * NEWS: Mention new DICOS x86 target configuration.
3513
907fc202
UW
35142008-05-16 Pedro Alves <[email protected]>
3515 Ulrich Weigand <[email protected]>
3516
3517 * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
3518 * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
3519
3520 * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
3521 use it instead of ginfo->value.address. Look up minimal symbol by
3522 address and name. Assume OBJFILE is non-NULL.
3523 (fixup_symbol_section): Ensure we always have an objfile to look
3524 into. Extract and pass to fixup_section the symbol's address that
3525 will match the minimal symbol's address.
3526 (fixup_psymbol_section): Likewise.
3527
3528 (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
3529 overlays and the addrmap returned the wrong section.
3530
3531 * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
3532 calling fixup_symbol_section.
3533
42848c96
UW
35342008-05-16 Ulrich Weigand <[email protected]>
3535
3536 * minsyms.c: Include "target.h".
3537 (find_solib_trampoline_target): Handle minimal symbols pointing
3538 to function descriptors as well.
3539 * Makefile.in (minsyms.o): Update dependencies.
3540
3541 * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
3542 (ppc64_standard_linkage1): ... this. Fix optional instructions.
3543 (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
3544 (PPC64_STANDARD_LINKAGE1_LEN): ... this.
3545 (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
3546 (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
3547 (ppc64_standard_linkage_target): Rename to ...
3548 (ppc64_standard_linkage1_target): ... this.
3549 (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
3550 (ppc64_skip_trampoline_code): Support three variants of standard
3551 linkage stubs. Call find_solib_trampoline_target to handle
3552 glink stubs.
3553
74d1f063
UW
35542008-05-16 Ulrich Weigand <[email protected]>
3555
3556 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
3557 ppc64_sysv_abi_adjust_breakpoint_address.
3558 * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
3559 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
3560
8526f328
UW
35612008-05-16 Ulrich Weigand <[email protected]>
3562
3563 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
3564 (ppc_linux_init_abi): Install find_solib_trampoline_target instead
3565 of ppc_linux_skip_trampoline_code.
3566
ba2b1c56
DJ
35672008-05-15 Daniel Jacobowitz <[email protected]>
3568
3569 * gdbarch.sh: Delete dwarf_reg_to_regnum.
3570 * gdbarch.c, gdbarch.h: Regenerated.
3571 * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
3572 hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
3573 s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
3574
4fdebdd0
PA
35752008-05-15 Pedro Alves <[email protected]>
3576
3577 * linux-nat.c (trap_ptid): Delete.
3578 (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
3579 Adjust.
3580 * linux-thread-db.c (thread_db_wait): Adjust.
3581
bc882aa9
JB
35822008-05-15 Joel Brobecker <[email protected]>
3583
3584 * linespec.c (decode_line_1): Fix a couple of comments.
3585
83b94be5
AM
35862008-05-15 Alan Modra <[email protected]>
3587
3588 * dbxread.c: Formatting.
3589 (INTERNALIZE_SYMBOL): Init n_other.
3590 (set_namestring): Take pointer to nlist arg rather than struct
3591 copy. Update all callers.
3592
87669130
AS
35932008-05-15 Andreas Schwab <[email protected]>
3594
3595 * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
3596 (dwarf2read.o): Add $(addrmap_h).
3597
00d5f93a
UW
35982008-05-14 Ulrich Weigand <[email protected]>
3599
3600 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
3601 (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
3602 to handle ppc32 PLT entries.
3603 (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
3604 only on ppc64.
3605
2eaf8d2a
DJ
36062008-05-14 Daniel Jacobowitz <[email protected]>
3607
3608 * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
3609 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
3610 lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
3611 (lookup_minimal_symbol_by_pc_section): Use
3612 lookup_minimal_symbol_by_pc_section_1.
3613 (lookup_solib_trampoline_symbol_by_pc): Likewise.
3614
20c62566
JB
36152008-05-13 Joel Brobecker <[email protected]>
3616
3617 * findcmd.c: Add #include "gdb_stdint.h".
3618 * Makefile.in (findcmd.o): Update dependencies.
3619
87a7da84
DM
36202008-05-11 David S. Miller <[email protected]>
3621
de0c3d9d
DM
3622 * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
3623 long double size override, Linux does use 128-bit now.
3624
e8467b5a
DM
3625 * sparc-linux-tdep.c (PSR_SYSCALL): Define.
3626 (sparc_linux_write_pc): New function.
3627 (sparc32_linux_init_abi): Register it.
3628 * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
3629 (sparc64_linux_write_pc): New function.
3630 (sparc64_linux_init_abi): Register it.
3631
87a7da84
DM
3632 * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
3633 dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
3634
8a4c2d24
UW
36352008-05-11 Ulrich Weigand <[email protected]>
3636
3637 * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
3638 and info.tdep_info before calling gdbarch_init_osabi.
3639
003f3813
JB
36402008-05-09 Joel Brobecker <[email protected]>
3641
3642 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
3643 the type of the right hand side of the assignment to the type
3644 of the left hand side if the left hand side is a convenience
3645 variable.
3646
7ae0e2a2
UW
36472008-05-09 Ulrich Weigand <[email protected]>
3648
3649 * NEWS: Mention gdbserver bi-arch capability.
3650
08388c79
DE
36512008-05-09 Doug Evans <[email protected]>
3652
3653 New "find" command.
3654 * NEWS: Document find command and qSearch:memory packet.
3655 * Makefile.in (SFILES): Add findcmd.c.
3656 (COMMON_OBJS): Add findcmd.o.
3657 (findcmd.o): New rule.
3658 * findcmd.c: New file.
3659 * target.h (target_ops): New member to_search_memory.
3660 (simple_search_memory): Declare.
3661 (target_search_memory): Declare.
3662 * target.c (simple_search_memory): New fn.
3663 (target_search_memory): New fn.
3664 * remote.c (PACKET_qSearch_memory): New packet kind.
3665 (remote_search_memory): New fn.
3666 (init_remote_ops): Init to_search_memory.
3667 (init_extended_remote_ops): Ditto.
3668 (_initialize_remote): Add qSearch:memory packet config command.
3669
11c68c47
EZ
36702008-05-09 Eli Zaretskii <[email protected]>
3671
3672 * thread.c (_initialize_thread): Don't use commas and periods in
3673 first line of doc string of "set/show print thread-events".
3674
6834c9bb
JB
36752008-05-08 Joel Brobecker <[email protected]>
3676
3677 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
3678 Update for unwinder changes.
3679
86c31399
JB
36802008-05-08 Joel Brobecker <[email protected]>
3681
3682 * frame.c (get_frame_base_address, get_frame_locals_address)
3683 (get_frame_args_address): Pass the correct frame when calling
3684 frame_base_find_by_frame.
3685
96ef3384
UW
36862008-05-08 Ulrich Weigand <[email protected]>
3687
3688 * remote.c (extended_remote_attach_1): Call target_find_description.
3689
45280a52
DJ
36902008-05-08 Daniel Jacobowitz <[email protected]>
3691
3692 * remote.c (extended_remote_create_inferior_1): Clean up
3693 before marking the target running.
3694
227e86ad
JB
36952008-05-08 Joel Brobecker <[email protected]>
3696
3697 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
3698 changes.
3699
236369e7
JB
37002008-05-07 Joel Brobecker <[email protected]>
3701
3702 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
3703 sparc64-sol2-tdep.c: Update for unwinder changes.
3704
de237128
DJ
37052008-05-07 Daniel Jacobowitz <[email protected]>
3706
3707 * cp-support.c (mangled_name_to_comp): Initialize storage.
3708 (unqualified_name_from_comp): Likewise.
3709
4fff2411
JZ
37102008-05-07 Jie Zhang <[email protected]>
3711
3712 * remote.c (remote_insert_breakpoint): Call get_remote_state
3713 after gdbarch_breakpoint_from_pc is called.
3714 (remote_insert_hw_breakpoint): Likewise.
3715
d8ca156b
JB
37162008-05-06 Joel Brobecker <[email protected]>
3717
3718 * valprint.c (val_print): Add new language parameter and use it
3719 instead of using the current_language. Update calls to val_print
3720 throughout.
3721 (common_val_print): Add new langauge parameter and pass it to
3722 val_print.
3723 * value.h (struct language_defn): Add opaque declaration.
3724 (val_print, common_val_print): Update declarations.
3725 * stack.c (print_frame_args): Update call to common_val_print
3726 using the appropriate language.
3727 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
3728 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
3729 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
3730 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
3731 #include "language.h" if necessary.
3732 Update calls to val_print and common_val_print.
3733 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
3734 Update dependencies.
3735
b1e6fd19
JB
37362008-05-06 Joel Brobecker <[email protected]>
3737
3738 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
3739 pointing inside a non-executable section as function descriptors.
3740
02b19d84
PA
37412008-05-06 Pedro Alves <[email protected]>
3742
3743 * inf-loop.c (inferior_event_handler): Run all continuations and
3744 print any language change before running the breakpoint commands.
3745
15c1e57f
JB
37462008-05-06 Joel Brobecker <[email protected]>
3747
3748 * frame-unwind.c (frame_unwind_got_bytes): New function.
3749 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
3750 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
3751 for unwinder changes.
3752
d14508fe
DE
37532008-05-05 Doug Evans <[email protected]>
3754
3755 * NEWS: Mention new /m modifier for disassemble command.
3756 * cli/cli-cmds.c (print_disassembly): New function.
3757 (disassemble_current_function): New function
3758 (disassemble_command): Recognize /m modifier, print mixed
3759 source+assembly.
3760 (init_cli_cmds): Update disassemble help text.
3761
5142f611
MG
37622008-05-05 Maxim Grigoriev <[email protected]>
3763
3764 * xtensa-tdep.c: Update for unwinder changes.
3765
f36bf22c
AS
37662008-05-05 Andreas Schwab <[email protected]>
3767
3768 Update m68k port for unwinder changes.
3769 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
3770 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
3771 (m68k_frame_unwind): Use default_frame_sniffer.
3772 (m68k_frame_sniffer): Remove.
3773 (m68k_frame_base_address): Expect this_frame.
3774 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
3775 this_frame.
3776 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
3777 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
3778 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
3779 parameter instead of pc value.
3780 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
3781 Expect this_frame.
3782 (m68k_linux_sigtramp_frame_this_id)
3783 (m68k_linux_sigtramp_frame_prev_register)
3784 (m68k_linux_sigtramp_frame_sniffer): Update signature.
3785 (m68k_linux_sigtramp_frame_unwind): Use
3786 m68k_linux_sigtramp_frame_sniffer.
3787 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
3788
3789 * m68klinux-nat.c (store_register): Fix typo.
3790
b3dc826b
PA
37912008-05-05 Pedro Alves <[email protected]>
3792
3793 * infcmd.c (step_1): Put thread id on the stack to avoid possible
3794 NULL dereferencing.
3795
6528a9ea
LM
37962008-05-05 Luis Machado <[email protected]>
3797
3798 * symfile.c (reread_symbols): Update objfile's entry point.
3799
5eeb2539
AR
38002008-05-05 Aleksandar Ristovski <[email protected]>
3801 Joel Brobecker <[email protected]>
1f906a60 3802
5eeb2539
AR
3803 * ada-lang.c: Update throughout to use symbol_matches_domain
3804 instead of matching the symbol domain explictly.
3805 * dwarf2read.c (add_partial_symbol): Do not add new psym for
f36bf22c 3806 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
5eeb2539 3807 class as typedefs. See lookup_partial_symbol function.
f36bf22c 3808 (new_symbol): Similar to add_partial_symbol, do not create
5eeb2539
AR
3809 symbol for the typedef. See lookup_block_symbol.
3810 * symtab.c (symbol_matches_domain): New function, takes care
3811 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
3812 (lookup_partial_symbol): Use symbol_matches_domain to see if the
3813 found psym domain matches the given domain.
3814 (lookup_block_symbol): Likewise.
3815
e2b7ddea
VP
38162008-05-05 Vladimir Prus <[email protected]>
3817
680b56ce
AS
3818 * top.c (command_line_handler_continuation): Remove.
3819 (execute_command): Do not install the above.
e2b7ddea 3820
fcfb8b02
VP
38212008-05-05 Vladimir Prus <[email protected]>
3822
3823 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
3824 and catch all exceptions from it.
3825 * top.c (command_line_handler_continuation): Don't
3826 call bpstat_do_action here.
3827
f792889a
DJ
38282008-05-04 Daniel Jacobowitz <[email protected]>
3829
3830 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
3831 (struct die_info): Remove type.
3832 (read_type_die, read_typedef, read_base_type, read_subrange_type)
3833 (read_structure_type, read_enumeration_type, read_array_type)
3834 (read_tag_pointer_type, read_tag_ptr_to_member_type)
3835 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
3836 (read_tag_string_type, read_subroutine_type, read_set_type)
3837 (read_unspecified_type): Delete prototypes. Remove check for
3838 already-loaded type. Return the new type.
3839 (set_die_type): Return the new type.
3840 (reset_die_and_siblings_types): Delete.
3841 (load_comp_unit, load_full_comp_unit): Set type_hash.
3842 (process_queue): Remove call to reset_die_and_siblings_types.
3843 (process_die): Do not read most types here. Use read_type_die
3844 for others.
3845 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
3846 (quirk_gcc_member_function_pointer): Return the new type.
3847 (process_structure_scope, process_enumeration_scope): Use
3848 get_die_type and read the DIE's type.
3849 (read_full_die): Do not initialize die->type.
3850 (tag_type_to_type): Use read_type_die.
3851 (read_type_die): Check for already defined types. Return the
3852 type.
3853 (determine_prefix): Use get_die_type.
3854 (set_die_type): Return the type.
3855 (get_die_type): Take a CU argument. Check for no type_hash.
3856
e7030f15
DJ
38572008-05-04 Daniel Jacobowitz <[email protected]>
3858
3859 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
3860 locals.
3861
611c83ae
PA
38622008-05-04 Pedro Alves <[email protected]>
3863
3864 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
3865 and bp_longjmp_resume breakpoints.
3866 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
3867 meaningful.
3868 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
3869 breakpoints. Create bp_longjmp breakpoints as momentary
3870 breakpoints.
3871 (enable_longjmp_breakpoint): Delete.
3872 (set_longjmp_breakpoint): New.
3873 (disable_longjmp_breakpoint): Delete.
3874 (delete_longjmp_breakpoint): New.
3875 (set_longjmp_resume_breakpoint): Delete.
3876 (set_momentary_breakpoint_at_pc): New.
3877 (breakpoint_re_set_one): Don't delete bp_longjmp and
3878 bp_longjmp_resume breakpoints.
3879 (breakpoint_re_set): Don't create longjmp and longjmp-resume
3880 breakpoints.
3881
3882 * infrun.c (step_resume_breakpoint): Add comment.
3883 (struct execution_control_state): Delete handling_longjmp member.
3884 (init_execution_control_state). Don't clear handling_longjmp.
3885 (context_switch): Don't context switch handling_longjmp.
3886 (handle_inferior_event): If handling a bp_longjmp breakpoint,
3887 create a bp_longjmp_resume breakpoint, and set it as current
3888 step_resume_breakpoint, then step over the longjmp breakpoint. If
3889 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
3890 breakpoint, delete the longjmp-resume breakpoint, and stop
3891 stepping.
3892 (currently_stepping): Remove handling_longjmp from expression.
3893 (insert_step_resume_breakpoint_at_sal): Update comment.
3894 (insert_longjmp_resume_breakpoint): New.
3895
3896 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
3897 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
3898 declarations.
3899 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
3900 (set_longjmp_resume_breakpoint): Delete declaration.
3901
3902 * gdbthread.h (save_infrun_state): Remove handling_longjmp
3903 parameter.
3904 (load_infrun_state): Delete *handling_longjmp parameter.
3905 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
3906 Update body.
3907 (load_infrun_state): Delete *handling_longjmp parameter. Update
3908 body.
3909
3910 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
3911 (delete_longjmp_breakpoint_cleanup): New.
3912 (step_1): Call set_longjmp_breakpoint instead of
3913 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
3914 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
3915 (step_1_continuation): Pass thread id in the continuation args to
3916 step_once.
3917 (step_once): Add thread parameter. Pass thread id the the
3918 continuation.
3919
85cbf3d3
JK
39202008-05-04 Jan Kratochvil <[email protected]>
3921
3922 Set CU BASE_ADDRESS already from partial DIEs.
3923 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
3924 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
3925 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
3926 from these variables if it was still unset.
3927
ff013f42
JK
3928 * Makefile.in: Update dependencies.
3929 * dwarf2read.c: Include "addrmap.h"
3930 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
3931 (dwarf2_ranges_read): New prototype.
3932 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
3933 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
3934 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
3935 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
3936 comment for it. Add the found ranges to RANGES_PST. New variable
3937 BASEADDR, initialize it the common way.
3938 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
3939 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
3940 HAS_RANGES_OFFSET for the later processing.
3941 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
3942 * symtab.c: Include "addrmap.h"
3943 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
3944 Move the psymtab locator into ...
3945 (find_pc_sect_psymtab_closer): ... a new function.
3946
a7f1256d
UW
39472008-05-04 Ulrich Weigand <[email protected]>
3948
3949 * arch-utils.c (gdbarch_update_p): Use default values for
3950 info.abfd and info.target_desc if they are NULL.
3951 (gdbarch_from_bfd): Remove assertion.
3952 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
3953 using the current target description.
3954 (gdbarch_info_fill): Do not use default values for info->abfd
3955 and info->target_desc.
3956
b2de52bb
JK
39572008-05-04 Jan Kratochvil <[email protected]>
3958
3959 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
3960
515630c5
UW
39612008-05-04 Ulrich Weigand <[email protected]>
3962
3963 * inferior.h (read_pc_pid, write_pc_pid): Remove.
3964 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
3965
3966 * regcache.c (read_pc_pid): Remove, replace by ...
3967 (regcache_read_pc): ... this function.
3968 (write_pc_pid): Remove, replace by ...
3969 (regcache_write_pc): ... this function.
3970 (read_pc, write_pc): Update.
3971
3972 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
3973 write_pc_pid by regcache_read_pc and regcache_write_pc.
3974 (displaced_step_fixup): Likewise.
3975 (resume): Likewise. Use regcache arch instead of current_gdbarch.
3976 (prepare_to_proceed): Likewise.
3977 (proceed): Likewise.
3978 (adjust_pc_after_break): Likewise.
3979 (handle_inferior_event): Likewise.
3980
3981 * linux-nat.c (cancel_breakpoint): Likewise.
3982 * linux-thread-db.c (check_event): Likewise.
3983 * aix-thread.c (aix_thread_wait): Likewise.
3984 * tracepoint.c (trace_dump_command): Likewise.
3985
ebd3bcc1
JK
39862008-05-04 Jan Kratochvil <[email protected]>
3987
3988 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
3989 SYMBOL_LOCATION_BATON.
3990
c47ffbe3
VP
39912008-05-04 Vladimir Prus <[email protected]>
3992
f78bff48
VP
3993 * target.h (struct target_ops): New field to_auxv_parse.
3994 * auxv.c (default_auxv_parse): New, renamed from previous
3995 target_auxv_parse.
3996 (target_auxv_parse): Try to call target method. Fallback to
3997 default_auxv_parse if not found.
3998 * procfs.c (procfs_auxv_parse): New.
3999 (init_procfs_ops): On Solaris, in 64-bit mode, install
4000 procfs_auxv_parse.
c47ffbe3 4001
35076fa0
AN
40022008-05-03 Adam Nemet <[email protected]>
4003
4004 * symfile.c (add_symbol_file_command): Use paddress rather than
4005 hex_string to print the address.
4006
5b197912
UW
40072008-05-03 Ulrich Weigand <[email protected]>
4008
4009 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
4010 return the null frame ID to terminate the backtrace.
4011
4a7622d1
UW
40122008-05-03 Ulrich Weigand <[email protected]>
4013
4014 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
4015 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
4016 (SIG_FRAME_PC_OFFSET): Likewise.
4017 (SIG_FRAME_LR_OFFSET): Likewise.
4018 (SIG_FRAME_FP_OFFSET): Likewise.
4019 (rs6000_push_dummy_call): Likewise.
4020 (rs6000_return_value): Likewise.
4021 (rs6000_convert_from_func_ptr_addr): Likewise.
4022 (branch_dest, rs6000_software_single_step): Likewise.
4023 (deal_with_atomic_sequence): Rename to ...
4024 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
4025 Do not call branch_dest; inline required parts of that function.
4026 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
4027 with SYMBOL_LINKAGE_NAME.
4028 (struct reg, regsize): Delete.
4029 (read_memory_addr): Delete; inline into callers.
4030 (rs6000_skip_prologue): Move after skip_prologue.
4031 (skip_prologue): Remove prototype.
4032 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
4033 initialization as if this variable were true. Do not install
4034 ppc64_sysv_abi_adjust_breakpoint_address.
4035
4036 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
4037 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
4038 and "breakpoint.h".
4039 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
4040 (SIG_FRAME_PC_OFFSET): Likewise.
4041 (SIG_FRAME_LR_OFFSET): Likewise.
4042 (SIG_FRAME_FP_OFFSET): Likewise.
4043 (rs6000_push_dummy_call): Likewise.
4044 (rs6000_return_value): Likewise.
4045 (rs6000_convert_from_func_ptr_addr): Likewise.
4046 (branch_dest, rs6000_software_single_step): Likewise. Replace
4047 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
4048 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
4049 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
4050 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
4051 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
4052
4053 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
4054 (AIX_TEXT_SEGMENT_BASE): New macro.
4055 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
4056 by AIX_TEXT_SEGMENT_BASE.
4057
4058 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
4059 (struct gdbarch_tdep): Remove text_segment_base member.
4060 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
4061 ppc64_sysv_abi_adjust_breakpoint_address.
4062
4063 * Makefile.in (rs6000-tdep.o): Update dependencies.
4064 (rs6000-aix-tdep.o): Likewise.
4065
938f5214
TJB
40662008-05-03 Luis Machado <[email protected]>
4067 Thiago Jung Bauermann <[email protected]>
4068
4069 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
4070 * doublest.c (convert_typed_floating): Fix typo in comment.
4071 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
4072 * frame-unwind.h (frame_sniffer_ftype): Likewise.
4073 * frame.c (frame_unwind_address_in_block): Likewise.
4074 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
4075 * symtab.h (struct symbol): Likewise.
4076 * tramp-frame.h (struct trad_frame_cache): Likewise.
4077 * value.c (allocate_repeat_value): Likewise.
4078
0b02b92d
UW
40792008-05-03 Ulrich Weigand <[email protected]>
4080
4081 * infrun.c (handle_inferior_event): Do not insert breakpoints at
4082 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
4083
d705c43c
PA
40842008-05-03 Pedro Alves <[email protected]>
4085
4086 * parse.c (parse_exp_in_context): Don't override
4087 expression_context_pc if get_selected_block returned a valid
4088 block.
4089
d6350901
DJ
40902008-05-03 Daniel Jacobowitz <[email protected]>
4091
4092 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
4093 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
4094 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
4095 Delete.
4096 * c-typeprint.c (c_type_print_base): Delete handling of template
4097 instantiations.
4098 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
4099 (METHOD_PTR_TO_VOFFSET): Delete.
4100 * defs.h (QUIT_FIXME): Delete.
4101 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
4102 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
4103 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
4104 ninstantiations, and instantiations.
4105 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
4106 (TYPE_FN_FIELD_INLINED): Delete.
4107 * srec.h (SREC_BINARY): Delete.
4108 * symtab.c (symbol_init_demangled_name): Delete.
4109 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
4110 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
4111 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
4112 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
4113 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
4114 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
4115 * target.h (enum thread_control_capabilities): Delete tc_switch.
4116 (target_can_switch_threads): Delete.
4117
30510692
DJ
41182008-05-03 Daniel Jacobowitz <[email protected]>
4119
4120 * Makefile.in (objfiles.o): Update.
4121 * exec.c (exec_set_section_address): Support p->addr != 0.
4122 * objfiles.c (objfile_relocate): Update exec_ops section
4123 addresses.
4124 * symfile.c (place_section): Move exec_set_section_address call...
4125 (default_symfile_offsets): ...to here.
4126
7284e1be
UW
41272008-05-03 Ulrich Weigand <[email protected]>
4128
4129 * Makefile.in (ppc_linux_tdep_h): New macro.
4130 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
4131 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
4132 (powerpc_e500l_c): Likewise.
4133 (ppc-linux-nat.o): Update dependencies.
4134 (ppc-linux-tdep.o): Update dependencies.
4135 (rs6000-tdep.o): Update dependencies.
4136
4137 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
4138 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
4139 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
4140 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
4141 (tdesc_powerpc_e500): Remove.
4142
4143 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
4144 and "features/rs6000/powerpc-altivec64.c".
4145 (ppc_supply_reg, ppc_collect_reg): Make global.
4146 (variants): Use tdesc_powerpc_32 for "powerpc" and
4147 tdesc_powerpc_altivec64 for "powerpc64".
4148 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
4149
4150 * ppc-linux-tdep.h: New file.
4151
4152 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
4153 Include "features/rs6000/powerpc-32l.c".
4154 Include "features/rs6000/powerpc-altivec32l.c".
4155 Include "features/rs6000/powerpc-64l.c".
4156 Include "features/rs6000/powerpc-altivec64l.c".
4157 Include "features/rs6000/powerpc-e500l.c".
4158 (ppc_linux_supply_gregset): New function.
4159 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
4160 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
4161 (ppc64_linux_gregset): Likewise.
4162 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
4163 (ppc_linux_trap_reg_p): New function.
4164 (ppc_linux_write_pc): New function.
4165 (ppc_linux_core_read_description): New function.
4166 (ppc_linux_init_abi): Install ppc_linux_write_pc and
4167 ppc_linux_core_read_description. Install orig_r3 and trap
4168 registers if present in the target description.
4169 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
4170
4171 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
4172 (PT_ORIG_R3, PT_TRAP): Define if necessary.
4173 (ppc_register_u_addr): Handle orig_r3 and trap registers.
4174 (fetch_ppc_registers): Likewise.
4175 (store_ppc_registers): Likewise.
4176 (store_register): Likewise.
4177 (ppc_linux_read_description): Check whether AltiVec is supported.
4178 Check whether inferior is 32-bit or 64-bit. Return the appropriate
4179 Linux target description.
4180
4181 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
4182 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
4183 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
4184 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
4185 rs6000/powerpc-e500. Update -expedite variables accordingly.
4186
4187 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
4188 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
4189 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
4190 * features/rs6000/powerpc-e500.c: Regenerate.
4191 * features/rs6000/powerpc-32.c: Regenerate.
4192 * features/rs6000/powerpc-64.c: Regenerate.
4193
4194 * features/rs6000/power-linux.xml: New file.
4195 * features/rs6000/power64-linux.xml: New file.
4196 * features/rs6000/powerpc-32l.xml: New file.
4197 * features/rs6000/powerpc-altivec32l.xml: New file.
4198 * features/rs6000/powerpc-64l.xml: New file.
4199 * features/rs6000/powerpc-altivec64l.xml: New file.
4200 * features/rs6000/powerpc-e500l.xml: New file.
4201 * features/rs6000/powerpc-32l.c: New (generated) file.
4202 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
4203 * features/rs6000/powerpc-64l.c: New (generated) file.
4204 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
4205 * features/rs6000/powerpc-e500l.xml: New (generated) file.
4206
4207 * regformats/reg-ppc.dat: Remove.
4208 * regformats/reg-ppc64.dat: Remove.
4209 * regformats/rs6000/powerpc-32.dat: Remove.
4210 * regformats/rs6000/powerpc-64.dat: Remove.
4211 * regformats/rs6000/powerpc-e500.dat: Remove.
4212 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
4213 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
4214 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
4215 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
4216 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
4217
063bfe2e
VP
42182008-05-03 Pedro Alves <[email protected]>
4219
4220 * thread.c (delete_thread): Call observer_notify_thread_exit.
680b56ce
AS
4221 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
4222 thread_exit observer.
4223 (mi_thread_exit): New.
063bfe2e 4224
f132ba9d
TJB
42252008-05-03 Thiago Jung Bauermann <[email protected]>
4226
4227 * breakpoint.c (create_exception_catchpoint): Remove prototype
4228 for already deleted function.
4229 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
4230 * frame.h (show_stack_frame): Remove prototype.
4231 * stack.c (show_stack_frame): Remove empty, unused function.
4232 * source.c (symtab_to_fullname, print_source_lines): Small fix
4233 in comment.
4234 * value.c (show_values): Update comments to mention "show values"
4235 command instead of "info history".
4236
bccdca4a
UW
42372008-05-02 Ulrich Weigand <[email protected]>
4238
4239 * linespec.c: Include "target.h".
4240 (minsym_found): Handle minimal symbols pointing to function
4241 descriptors. Use find_function_start_pc.
4242 * minsyms.c (msymbol_objfile): New function.
4243 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
4244 to function descriptors.
4245 * symtab.c (fixup_section): Only use minimal symbol at the same
4246 address to determine section of a symbol.
4247 (find_function_start_pc): New function.
4248 (find_function_start_sal): Use it.
4249 * symtab.h (msymbol_objfile): Add prototype.
4250 (find_function_start_pc): Likewise.
4251 * value.c: Include "objfiles.h".
4252 (value_fn_field): Handle minimal symbols pointing to function
680b56ce 4253 descriptors.
bccdca4a
UW
4254 * Makefile.in (linespec.o): Update dependencies.
4255 (value.o): Likewise.
4256
de4d072f
JB
42572008-05-02 Joel Brobecker <[email protected]>
4258
4259 * ada-lang.c (unwrap_value): Handle the case where the "F" field
4260 inside a PAD type is a bitfield.
4261
93d4208d
UW
42622008-05-02 Ulrich Weigand <[email protected]>
4263
4264 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
4265 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
4266 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
4267 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
4268 Allow typedefs when checking for function pointer arguments.
4269 Right-align small structs passed on the stack.
4270 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
4271 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
4272 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
4273
60c5725c
DJ
42742008-05-02 Daniel Jacobowitz <[email protected]>
4275
4276 * Makefile.in (arm-tdep.o): Update.
4277 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
4278 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
4279 (arm_pc_is_thumb): Use mapping symbols.
4280 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
4281 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
4282 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
4283 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
4284 * gdbarch.sh: Add record_special_symbol.
4285 * gdbarch.c, gdbarch.h: Regenerated.
4286 * objfiles.c (struct objfile_data): Add cleanup member.
4287 (register_objfile_data_with_cleanup): New function, from
4288 register_objfile_data.
4289 (register_objfile_data): Use it.
4290 (objfile_free_data): Call clear_objfile_data.
4291 (clear_objfile_data): Call cleanup functions.
4292 * objfiles.h (register_objfile_data_with_cleanup): Declare.
4293
574dffa2
DJ
42942008-05-02 Daniel Jacobowitz <[email protected]>
4295
4296 * objfiles.c (init_entry_point_info): Handle shared libraries.
4297
2c404490
DJ
42982008-05-02 Daniel Jacobowitz <[email protected]>
4299
4300 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
4301 lowest_pc.
4302
237fc4c9
PA
43032008-05-02 Jim Blandy <[email protected]>
4304 Pedro Alves <[email protected]>
4305
4306 Implement displaced stepping.
4307
4308 * gdbarch.sh (max_insn_length): New 'variable'.
4309 (displaced_step_copy, displaced_step_fixup)
4310 (displaced_step_free_closure, displaced_step_location): New
4311 functions.
4312 (struct displaced_step_closure): Add forward declaration.
4313 * gdbarch.c, gdbarch.h: Regenerated.
4314
4315 * arch-utils.c: #include "objfiles.h".
4316 (simple_displaced_step_copy_insn)
4317 (simple_displaced_step_free_closure)
4318 (displaced_step_at_entry_point): New functions.
4319 * arch-utils.h (simple_displaced_step_copy_insn)
4320 (simple_displaced_step_free_closure)
4321 (displaced_step_at_entry_point): New prototypes.
4322
4323 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
4324 (I386_MAX_MATCHED_INSN_LEN): ... this.
4325 (i386_absolute_jmp_p, i386_absolute_call_p)
4326 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
4327 (i386_displaced_step_fixup): New functions.
4328 (struct i386_insn, i386_match_insn): Update.
4329 (i386_gdbarch_init): Set gdbarch_max_insn_length.
4330 * i386-tdep.h (I386_MAX_INSN_LEN): New.
4331 (i386_displaced_step_fixup): New prototype.
4332 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
4333 Register gdbarch_displaced_step_copy,
4334 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
4335 and gdbarch_displaced_step_location functions.
4336
4337 * infrun.c (debug_displaced): New variable.
4338 (show_debug_displaced): New function.
4339 (struct displaced_step_request): New struct.
4340 (displaced_step_request_queue, displaced_step_ptid)
4341 (displaced_step_gdbarch, displaced_step_closure)
4342 (displaced_step_original, displaced_step_copy)
4343 (displaced_step_saved_copy, can_use_displaced_stepping): New
4344 variables.
4345 (show_can_use_displaced_stepping, use_displaced_stepping)
4346 (displaced_step_clear, cleanup_displaced_step_closure)
4347 (displaced_step_dump_bytes, displaced_step_prepare)
4348 (displaced_step_clear_cleanup, write_memory_ptid)
4349 (displaced_step_fixup): New functions.
4350 (resume): Call displaced_step_prepare.
4351 (proceed): Call read_pc once, and remember the value. If using
4352 displaced stepping, don't remove breakpoints.
4353 (handle_inferior_event): Call displaced_step_fixup. Add some
4354 debugging output. When we try to step over a breakpoint, but get
4355 a signal to deliver to the thread instead, ensure the step-resume
4356 breakpoint is actually inserted. If a thread hop is needed, and
4357 displaced stepping is enabled, don't remove breakpoints.
4358 (init_wait_for_inferior): Call displaced_step_clear.
4359 (_initialize_infrun): Add "set debug displaced" command. Add
4360 "maint set can-use-displaced-stepping" command. Clear
4361 displaced_step_ptid.
4362 * inferior.h (debug_displaced): Declare variable.
4363 (displaced_step_dump_bytes): Declare function.
4364
4365 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
4366 dependencies.
4367
0428b8f5
DJ
43682008-05-02 Daniel Jacobowitz <[email protected]>
4369
4370 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
4371 (arm_force_mode_string, arm_show_fallback_mode)
4372 (arm_show_force_mode): New.
4373 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
4374 arm_frame_is_thumb.
4375 (_initialize_arm_tdep): Add "set arm fallback-mode"
4376 and "set arm force-mode".
4377 * NEWS: Document new commands.
4378
d01a8610
AS
43792008-05-02 Andrew Stubbs <[email protected]>
4380
4381 * main.h (batch_silent): Declare.
4382 * event-top.c: Include main.h.
4383 (gdb_setup_readline): Remove extern batch_silent declaration.
4384 * infrun.c (normal_stop): Don't print source location when running in
4385 --batch-silent mode.
4386 * Makefile.in (event-top.o): Add main.h dependency.
4387
5009afc5
AS
43882008-05-02 Andreas Schwab <[email protected]>
4389
4390 * target.h (struct target_ops): Add
4391 to_watchpoint_addr_within_range.
4392 (target_watchpoint_addr_within_range): New function.
4393 * target.c (update_current_target): Inherit
4394 to_watchpoint_addr_within_range, defaulting to
4395 default_watchpoint_addr_within_range.
4396 (default_watchpoint_addr_within_range): New function.
4397 (debug_to_watchpoint_addr_within_range): New function.
4398 (setup_target_debug): Set to_watchpoint_addr_within_range.
4399 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
4400 New function.
4401 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
4402 * breakpoint.c (watchpoints_triggered): Use
4403 target_watchpoint_addr_within_range.
4404
a15c5c83
PA
44052008-05-01 Pedro Alves <[email protected]>
4406
4407 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
4408 (i[34567]86-*-dicos*, x86_64-*-dicos*):
4409 Set gdb_osabi to GDB_OSABI_DICOS.
4410
4411 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
4412 * osabi.c (gdb_osabi_name): Add "DICOS".
4413
4414 * i386-dicos-tdep.c: New file.
4415
4416 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
4417 (ALLDEPFILES): Add i386-dicos-tdep.c.
4418 (i386-dicos-tdep.o): New rule.
4419
728c8f58
PA
44202008-05-01 Pedro Alves <[email protected]>
4421
4422 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
4423 and register the fork's PTID as a thread.
4424
604133b5
AR
44252008-05-01 Aleksandar Ristovski <[email protected]>
4426
4427 PR gdb/1665
4428 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
4429 assign its value to the breakpoint created.
4430 (create_breakpoints): Add breakpoint_ops argument and pass it
4431 to create_breakpoint call.
4432 (break_command_really): Add breakpoint_ops argument and pass/assign
4433 appropriately.
4434 (break_command_1): Pass NULL as ops argument.
4435 (set_breakpoint): Pass NULL as ops argument.
4436 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
4437 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
4438 catch and throw catchpoints.
5009afc5 4439
1f906a60 44402008-05-01 Aleksandar Ristovski <[email protected]>
1cded358
AR
4441
4442 PR gdb/2343
4443 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
4444 translate signal numeric value from the target to GDB's enum
4445 target_signal.
4446 * gdbarch.c, gdbarch.h: Regenerated.
4447 * gdbarch.sh: Added two new functions target_signal_from_host and
4448 target_signal_to_host.
680b56ce 4449 * target.h (default_target_signal_from_host,
1cded358
AR
4450 default_target_signal_to_host): New functions - declarations.
4451 * signals/signals.c (struct gdbarch): New declaration.
4452 (default_target_signal_to_host, default_target_signal_from_host): New
4453 functions.
4454
ed5e9466
DJ
44552008-05-01 Daniel Jacobowitz <[email protected]>
4456 Pedro Alves <[email protected]>
4457
4458 Based on work by Jan Kratochvil <[email protected]> and Jeff
4459 Johnston <[email protected]>.
4460
4461 * NEWS: Mention attach to stopped process fix.
4462 * infcmd.c (detach_command, disconnect_command): Discard the thread
4463 list.
4464 * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
4465 attaching. Use signal_stop_state.
4466 (signal_stop_state): Check stop_soon.
4467 * linux-nat.c (kill_lwp): Declare earlier.
4468 (pid_is_stopped, linux_nat_post_attach_wait): New.
4469 (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update
4470 comments.
4471 (linux_nat_attach): Use linux_nat_post_attach_wait.
4472 (detach_callback, linux_nat_detach): Improve handling for signalled
4473 processes.
4474 (linux_nat_pid_to_str): Always print out the LWP ID if it differs
4475 from the process ID.
4476 * Makefile.in (infcmd.o): Update.
4477
b39cc962
DJ
44782008-05-01 Daniel Jacobowitz <[email protected]>
4479
4480 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
4481 * arm-tdep.c (arm_frame_is_thumb): New.
4482 (arm_pc_is_thumb): Clarify comment.
4483 (thumb_analyze_prologue): Remove PC special case.
4484 (thumb_scan_prologue): Take a block_addr argument. Use it for
4485 find_pc_partial_function. Remove unused variables.
4486 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
4487 for find_pc_partial_function. Remove PC special case.
4488 (arm_prologue_prev_register): Add special handling for PC and CPSR.
4489 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
4490 (arm_get_next_pc): Use arm_frame_is_thumb.
4491 (arm_write_pc): Use CPSR_T instead of 0x20.
4492 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
4493 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
4494 (CPSR_T): Define.
4495 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
4496 DWARF2_FRAME_REG_FN.
4497 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
4498 DWARF2_FRAME_REG_FN.
4499 (struct dwarf2_frame_state_reg): Add FN to loc union.
4500
944f08ab
JB
45012008-05-01 Nick Roberts <[email protected]>
4502
4503 * exec.c (print_section_info): Add missing '\n'.
4504
cfc01461
VP
45052008-05-01 Vladimir Prus <[email protected]>
4506
4507 * thread.c (add_thread): Move observer call to ...
680b56ce 4508 (add_thread_silent): ... here.
cfc01461 4509
1af5d7ce
UW
45102008-04-30 Ulrich Weigand <[email protected]>
4511
4512 * rs6000-tdep.c: Update for unwinder changes.
4513 * ppcobsd-tdep.c: Likewise.
4514
f089c433
UW
45152008-04-30 Ulrich Weigand <[email protected]>
4516
4517 * s390-tdep.c: Update for unwinder changes.
4518
8d998b8f
UW
45192008-04-30 Ulrich Weigand <[email protected]>
4520
4521 * spu-tdep.c: Update for unwinder changes.
4522
5366653e
DJ
45232008-04-30 Daniel Jacobowitz <[email protected]>
4524
4525 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
4526 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
4527 sparc64-linux-tdep.c: Update for unwinder changes.
4528
b8a22b94
DJ
45292008-04-30 Daniel Jacobowitz <[email protected]>
4530
4531 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
4532 for unwinder changes.
4533 * mips-tdep.c: Likewise.
4534 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
4535 raw one.
4536
a262aec2
DJ
45372008-04-30 Daniel Jacobowitz <[email protected]>
4538
4539 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
4540 unwinder changes.
4541
10458914
DJ
45422008-04-30 Daniel Jacobowitz <[email protected]>
4543
4544 Update i386 and amd64 ports for unwinder changes.
4545
4546 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
4547 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
4548 (amd64_frame_unwind): Use default_frame_sniffer.
4549 (amd64_frame_sniffer): Delete.
4550 (amd64_sigtramp_frame_cache): Expect this_frame.
4551 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
4552 (amd64_sigtramp_frame_sniffer): Update signature.
4553 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
4554 (amd64_frame_base_address): Expect this_frame.
4555 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
4556 this_frame.
4557 (amd64_init_abi): Use set_gdbarch_dummy_id and
4558 frame_unwind_append_unwinder.
4559 * i386-tdep.c (i386_frame_cache): Expect this_frame.
4560 (i386_frame_this_id, i386_frame_prev_register): Update signature.
4561 (i386_frame_unwind): Use default_frame_sniffer.
4562 (i386_frame_sniffer): Delete.
4563 (i386_sigtramp_frame_cache): Expect this_frame.
4564 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
4565 (i386_sigtramp_frame_sniffer): Update signature.
4566 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
4567 (i386_frame_base_address): Update signature.
4568 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
4569 (i386_push_dummy_call): Update comment.
4570 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
4571 Expect this_frame.
4572 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
4573 and frame_unwind_append_unwinder.
4574 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
4575 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
4576 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
4577 i386nbsd-tdep.c: Update for unwinder changes.
4578
25492ce3
DJ
45792008-04-30 Daniel Jacobowitz <[email protected]>
4580
4581 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
4582 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
4583 this_frame.
4584 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
4585 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
4586 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
4587 signature.
4588 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
4589 this_frame.
4590 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
4591 Update signature.
4592 * tramp-frame.h (struct tramp_frame): Update signature of init.
4593 * Makefile.in (trad-frame.o): Update.
4594
4a4e5149
DJ
45952008-04-30 Daniel Jacobowitz <[email protected]>
4596
4597 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
4598 (execute_stack_op): Put this_frame in the baton.
4599 (execute_cfa_program): Take this_frame.
4600 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
4601 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
4602 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
4603 (dwarf2_frame_this_id): Adjust to work on this_frame.
4604 (dwarf2_signal_frame_this_id): Delete.
4605 (dwarf2_frame_prev_register): Update signature. Use new frame
4606 unwind methods.
4607 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
4608 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
4609 dwarf2_frame_sniffer.
4610 (dwarf2_append_unwinders): New.
4611 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
4612 this_frame.
4613 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
4614 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
4615 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
4616 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
4617 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
4618 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
4619 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
4620 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
4621 (dwarf2_append_unwinders): Declare.
4622 (dwarf2_frame_base_sniffer): Update declaration.
4623 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
4624 this_frame.
4625
669fac23
DJ
46262008-04-30 Daniel Jacobowitz <[email protected]>
4627
4628 Convert frame unwinders to use the current frame and
4629 "struct value".
4630
4631 * frame.c (frame_debug): Make global.
4632 (get_frame_id): Pass this frame to unwinder routines.
4633 (frame_pc_unwind): Remove unused unwind->prev_pc support.
4634 (do_frame_register_read): Do not discard the return value of
4635 frame_register_read.
4636 (frame_register_unwind): Remove debug messages. Use
4637 frame_unwind_register_value.
4638 (frame_unwind_register_value, get_frame_register_value): New
4639 functions.
4640 (create_new_frame, get_frame_base_address, get_frame_locals_address)
4641 (get_frame_args_address, get_frame_type): Pass this frame to
4642 unwinder routines.
4643 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
4644 functions.
4645 * frame.h: Update comments.
4646 (frame_debug, frame_unwind_register_value, get_frame_register_value)
4647 (frame_prepare_for_sniffer): Declare.
4648 * frame-unwind.h: Update comments and parameter names.
4649 (default_frame_sniffer): Declare.
4650 (frame_prev_register_ftype): Return a struct value *.
4651 (struct frame_unwind): Remove prev_pc member.
4652 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
4653 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
4654 (frame_unwind_got_register, frame_unwind_got_memory)
4655 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
4656 * frame-base.h: Update comments and parameter names.
4657 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
4658 if necessary. Add debugging output.
4659 * sentinel-frame.c (sentinel_frame_prev_register)
4660 (sentinel_frame_this_id): Update for new signature.
4661 (sentinel_frame_prev_pc): Delete.
4662 (sentinel_frame_unwinder): Remove prev_pc.
4663 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
4664 prev_pc.
4665 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
4666 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
4667 (frame_unwind_append_sniffer): Delete.
4668 (frame_unwind_append_unwinder): New function.
4669 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
4670 from unwinders. Use frame_prepare_for_sniffer.
4671 (default_frame_sniffer, frame_unwind_got_optimized)
4672 (frame_unwind_got_register, frame_unwind_got_memory)
4673 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
4674 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
4675 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
4676 signature.
4677 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
4678 * gdbarch.c, gdbarch.c: Regenerated.
4679 * frame-base.c (default_frame_base_address)
4680 (default_frame_locals_address, default_frame_args_address): Update
4681 for new signature.
4682 (frame_base_find_by_frame): Pass this frame to unwinder routines.
4683 * infcall.c (call_function_by_hand): Update comments.
4684 * Makefile.in (frame-unwind.o): Update dependencies.
4685
9214ee5f
DJ
46862008-04-30 Daniel Jacobowitz <[email protected]>
4687
4688 * ada-lang.c (ada_value_primitive_packed_val): Only check
4689 value_lazy for memory lvals.
4690 * findvar.c (value_of_register_lazy): New function.
4691 (locate_var_value): Only check value_lazy for memory lvals.
4692 * valarith.c (value_subscripted_rvalue): Likewise.
4693 * valops.c (value_fetch_lazy): Handle both memory and register
4694 lvals.
4695 (search_struct_field, value_slice): Only check value_lazy for memory
4696 lvals.
4697 * value.c (struct value): Update comment for lazy.
4698 (value_primitive_field): Only check value_lazy for memory lvals.
4699 * value.h (value_lazy): Update comment.
4700 (value_of_register_lazy): Declare.
4701
939643d7
DJ
47022008-04-30 Daniel Jacobowitz <[email protected]>
4703
4704 * corefile.c (reopen_exec_file): Close any open files.
4705
1de34ab7
JB
47062008-04-29 Joel Brobecker <[email protected]>
4707
4708 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
4709 show_memory_breakpoints to 1 while reading the instruction bundle.
4710
ea42b34a
JB
47112008-04-29 Joel Brobecker <[email protected]>
4712
4713 * gdbarch.sh: Document the return_value method. Explain that
4714 the FUNCTYPE parameter might be NULL.
4715 * gdbarch.h: Regenerated.
4716 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
4717 type when calling using_struct_return, as this is unnecessary
4718 on this target.
4719
a0fe373c
JB
47202008-04-28 Joel Brobecker <[email protected]>
4721
4722 * terminal.h (create_tty_session): Fix return type.
4723
c6446539
VP
47242008-04-26 Vladimir Prus <[email protected]>
4725
4726 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
4727
2f069f6f
JB
47282008-04-26 Joel Brobecker <[email protected]>
4729
4730 * breakpoint.c (condition_command, commands_from_control_command)
4731 (break_command_really): Minor reformatting.
4732
93b5768b
PA
47332008-04-25 Pedro Alves <[email protected]>
4734
4735 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
4736
436675d3
PA
47372008-04-25 Pedro Alves <[email protected]>
4738
4739 * amd64-tdep.c (amd64_get_longjmp_target): New.
4740 (amd64_init_abi): Register amd64_get_longjmp_target as
4741 gdbarch_get_longjmp_target callback.
4742 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
4743
78b6a731
PA
47442008-04-25 Pedro Alves <[email protected]>
4745
4746 * breakpoint.h (enum bpstat_what_main_action): Delete
4747 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
4748
4749 * breakpoint.c (clrs): Delete.
4750 (bpstat_what): Update table.
4751
4752 * infrun.c (handle_inferior_event): Remove
4753 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
4754
9e22b03a
VP
47552008-04-24 Vladimir Prus <[email protected]>
4756
4757 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
4758 Adjust all prototypes using mi_cmd_args_ftype to use
4759 mi_cmd_argv_ftype.
4760 (struct mi_cmd): Remove the args_func field.
4761 * mi/mi-cmds.c: Don't provide value for the args_func field.
4762 * mi/mi-main.c (mi_execute_async_cli_command)
4763 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
4764 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
4765 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
4766 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
4767 (mi_cmd_target_download): Adjust.
4768 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
4769 (mi_cmd_execute): Do not check for args_func.
4770 (mi_execute_async_cli_command): Adjust.
4771 * mi/mi-parse.c: Don't check for args_func.
4772
721c02de 47732008-04-24 Vladimir Prus <[email protected]>
18a18393 4774
680b56ce
AS
4775 * breakpoint.c (bpstat_check_location)
4776 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
4777 New, extracted from bpstat_stop_status.
4778 (bpstat_stop_status): Use the above.
18a18393
VP
4779
47802008-04-24 Vladimir Prus <[email protected]>
4781
680b56ce
AS
4782 * mi/mi-main.c (last_async_command): Rename to current_token.
4783 (previous_async_command): Remove.
4784 (mi_cmd_gdb_exit): Adjust.
4785 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
4786 (mi_cmd_target_select): Adjust.
4787 (mi_cmd_execute): Don't set previous_async_command. Free token
4788 here even in async mode.
4789 (mi_execute_async_cli_command): Adjust.
4790 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
4791 token.
4792 (mi_load_progress): Adjust.
721c02de 4793
f13468d9
VP
47942008-04-24 Vladimir Prus <[email protected]>
4795
680b56ce
AS
4796 * infcmd.c (step_1_continuation): Always disable longjmp
4797 breakpoint if we're not going to do another step.
f13468d9 4798
f107f563
VP
47992008-04-24 Vladimir Prus <[email protected]>
4800
4801 exec_cleanup murder.
4802 * breakpoint.c (until_break_command_continuation): Add
4803 the 'error' parameter. Directly delete the breakoint as
4804 opposed to running cleanups.
4805 (until_break_command): Install continuation only
4806 after starting the target. Don't use exec cleanups,
4807 use ordinary cleanups. Discard cleanups is successfully
4808 started the target in async mode.
4809 (make_cleanup_delete_breakpoint): Remove.
4810 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
4811 declaration.
4812 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
4813 declarations.
4814 (struct continations): Add the 'error' parameter to the
4815 continuation_hook field.
4816 (add_continuation, do_all_continuations)
4817 (add_intermediate_continuation)
4818 (do_all_intermediate_continuations): Add the 'error' parameter.
4819 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
4820 * inf-loop.c (inferior_event_handler): Instead of calling
4821 discard_all_continuations, use do_all_continuations with 1 as
4822 'error' parameter. Pass 0 as 'error' parameter in existing uses
4823 of discard_all_continuations.
4824 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
4825 cleanups.
4826 (step_once): Install continuation only after resuming the target.
4827 (step_1_continuation): Disable longjmp breakpoint on error.
4828 (finish_command_continuation): Add the error parameter. Delete
4829 the finish breakpoint directly, do not use cleanups.
4830 (finish_command): Do not use exec_cleanups. Always setup
4831 continuation. For sync case, immediately run them.
4832 (attach_command_continuation): Add the error parameter.
4833 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
4834 remove step_resume_breakpoint -- adjust delete it directly.
4835 * interps.c (interp_set): Adjust call to do_all_continations.
4836 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
4837 do exec cleanups.
4838 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
4839 cleanups.
4840 (mi_cmd_execute): Do not use exec_cleanup.
4841 (mi_execute_async_cli_command): Simplify the string concatenation
4842 logic. Do no use exec cleanup.
4843 (mi_exec_async_cli_cmd_continuation): New parameter error.
4844 Free last_async_command.
4845 * top.c (command_line_handler_continuation): New parameter error.
4846 * utils.c (exec_cleanup_chain, make_exec_cleanup)
4847 (do_exec_cleanups): Remove.
4848 (add_continuation, do_all_continations)
4849 (add_intermediate_continuation)
4850 (do_all_intermediate_continuations): New parameter error.
4851
74960c60
VP
48522008-04-24 Vladimir Prus <[email protected]>
4853
4854 * breakpoint.h (bp_location_p): New typedef.
4855 Register a vector of bp_location_p.
4856 * breakpoint.c (always_inserted_mode)
4857 (show_always_inserted_mode): New.
4858 (unlink_locations_from_global_list): Remove.
4859 (update_global_location_list)
4860 (update_global_location_list_nothrow): New.
4861 (update_watchpoint): Don't free locations.
4862 (should_insert_location): New.
4863 (insert_bp_location): Use should_insert_location.
4864 (insert_breakpoint_locations): Copied from
4865 insert_breakpoints.
4866 (insert_breakpoint): Use insert_breakpoint_locations.
4867 (bpstat_stop_status): Call update_global_location_list
4868 when disabling breakpoint.
4869 (allocate_bp_location): Don't add to bp_location_chain.
4870 (set_raw_breakpoint)
4871 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
4872 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
4873 (enable_overlay_breakpoints, disable_overlay_breakpoints)
4874 (set_longjmp_resume_breakpoint)
4875 (enable_watchpoints_after_interactive_call_stop)
4876 (disable_watchpoints_before_interactive_call_start)
4877 (create_internal_breakpoint)
4878 (create_fork_vfork_event_catchpoint)
4879 (create_exec_event_catchpoint, set_momentary_breakpoint)
4880 (create_breakpoints, break_command_1, watch_command_1)
4881 (create_exception_catchpoint)
4882 (handle_gnu_v3_exceptions)
4883 (disable_breakpoint, breakpoint_re_set_one)
4884 (create_thread_event_breakpoint, create_solib_event_breakpoint)
4885 (create_ada_exception_breakpoint): : Don't call check_duplicates.
4886 Call update_global_location_list.
4887 (delete_breakpoint): Don't remove locations and don't
4888 try to reinsert them. Call update_global_location_list.
4889 (update_breakpoint_locations): Likewise.
4890 (restore_always_inserted_mode): New.
4891 (update_breakpoints_after_exec): Temporary disable
4892 always inserted mode.
4893 * Makefile.in: Update dependencies.
4894
4895 * infrun.c (proceed): Remove breakpoints while stepping
4896 over breakpoint.
4897 (handle_inferior_event): Don't remove or insert
4898 breakpoints.
4899 * linux-fork.c (checkpoint_command): Remove breakpoints
4900 before fork and insert after.
4901 (linux_fork_context): Remove breakpoints before switch
4902 and insert after.
4903 * target.c (target_disconnect, target_detach): Remove
4904 breakpoints from target.
4905
680b56ce 4906
d24317b4
VP
49072008-04-24 Vladimir Prus <[email protected]>
4908
4909 * breakpoint.c (print_one_breakpoint_location): In MI
4910 mode, report the location string the breakpoint was
4911 originally created with.
4912
ee967b5f
MG
49132008-04-23 Maxim Grigoriev <[email protected]>
4914
4915 * Makefile.in (xtensa-tdep.o): Update dependencies.
4916 * configure.tgt (xtensa*): Update dependencies.
4917 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
4918 Local variable areg renamed to arreg.
4919 (areg_number): New function.
4920 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
4921 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
4922 replaced by arreg_number.
4923 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
4924 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
4925 (xtensa_scan_prologue): New function.
4926 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
4927 when ENTRY instraction hasn't been executed yet. Get the frame pointer
4928 value based on prologue analysis. Fix the bugs preventing WS and
4929 AR4-AR7/A11 registers from getting right values for intermediate frames,
4930 whose registers have been already spilled.
4931 (xtensa_frame_prev_register): Fix WS register value. Use are_number
4932 and arreg_number appropriately.
4933 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
4934 svr4_ilp32_fetch_link_map_offsets.
4935
09d71d23
AS
49362008-04-23 Andrew Stubbs <[email protected]>
4937
4938 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
4939 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
4940
fdc59709
PB
49412008-04-23 Paolo Bonzini <[email protected]>
4942
680b56ce
AS
4943 * acinclude.m4: Add override.m4.
4944 * configure: Regenerate.
fdc59709 4945
0bcd0149
JK
49462008-04-22 Jan Kratochvil <[email protected]>
4947
4948 * ada-lang.c (get_selections): Variable PROMPT made non-const and
4949 initialized with a trailing space now. Use PROMPT_ARG of
4950 COMMAND_LINE_INPUT instead of printing it ourselves.
4951
88d8a8e0
JB
49522008-04-22 Joel Brobecker <[email protected]>
4953
4954 * NEWS: Document support for 64-bit core file.
4955
c055b101
CV
49562008-04-22 Corinna Vinschen <[email protected]>
4957
4958 * NEWS: Add information on calling convention and new SH CLI options.
4959
4960 * sh-tdep.c (sh_cc_gcc): New static string.
4961 (sh_cc_renesas): Ditto.
4962 (sh_cc_enum): New static string array.
4963 (sh_active_calling_convention): New static string pointer denoting
4964 active user chosen ABI.
4965 (sh_is_renesas_calling_convention): New function to return function
4966 specific ABI, or user choice if necessary.
4967 (sh_use_struct_convention): Rename first argument and turn around its
4968 meaning. Check for renesas ABI and return accordingly.
4969 (sh_use_struct_convention_nofpu): New function.
4970 (sh_next_flt_argreg): Get function type as third parameter. Check
4971 for renesas ABI and choose floating registers accordingly.
4972 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
4973 struct return slot accordingly.
4974 (sh_push_dummy_call_nofpu): Ditto.
4975 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
4976 Evaluate ABI and give to sh_use_struct_convention_nofpu.
4977 (sh_return_value_fpu): Evaluate ABI and give to
4978 sh_use_struct_convention.
4979 (show_sh_command): New function.
4980 (set_sh_command): Ditto.
4981 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
4982 CLI command.
4983
4984 * gdbarch.sh (return_value): Add func_type argument.
4985 * gdbarch.c: Regenerate.
4986 * gdbarch.h: Ditto.
4987 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
4988 val_type so as not to collide with value_type function. Call
4989 using_struct_return with additional function type argument.
4990 * infcall.c (call_function_by_hand): Call using_struct_return and
4991 gdbarch_return_value with additional function type argument.
4992 * infcmd.c (print_return_value): Take addition func_type argument.
4993 Call gdbarch_return_value with additional function type argument.
4994 (finish_command_continuation): Call print_return_value with additional
4995 function type argument.
4996 (finish_command): Ditto.
4997 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
4998 additional function type argument.
4999 * stack.c (return_command): Call using_struct_return and
5000 gdbarch_return_value with additional function type argument.
5001 * value.c (using_struct_return): Take additional function type argument.
5002 * value.h (using_struct_return): Accommodate declaration.
5003 * alpha-tdep.c (alpha_return_value): Add func_type argument.
5004 * amd64-tdep.c (amd64_return_value): Ditto.
5005 * arm-tdep.c (arm_return_value): Ditto.
5006 * avr-tdep.c (avr_return_value): Ditto.
5007 * cris-tdep.c (cris_return_value): Ditto.
5008 * frv-tdep.c (frv_return_value): Ditto.
5009 * h8300-tdep.c (h8300_return_value): Ditto.
5010 (h8300h_return_value): Ditto.
5011 * hppa-tdep.c (hppa32_return_value): Ditto.
5012 (hppa64_return_value): Ditto.
5013 * i386-tdep.c (i386_return_value): Ditto.
5014 * ia64-tdep.c (ia64_return_value): Ditto.
5015 * iq2000-tdep.c (iq2000_return_value): Ditto.
5016 * m32c-tdep.c (m32c_return_value): Ditto.
5017 * m32r-tdep.c (m32r_return_value): Ditto.
5018 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
5019 * m68k-tdep.c (m68k_return_value): Ditto.
5020 (m68k_svr4_return_value): Ditto.
5021 * m88k-tdep.c (m88k_return_value): Ditto.
5022 * mep-tdep.c (mep_return_value): Ditto.
5023 * mips-tdep.c (mips_eabi_return_value): Ditto.
5024 (mips_n32n64_return_value): Ditto.
5025 (mips_o32_return_value): Ditto.
5026 (mips_o64_return_value): Ditto.
5027 * mn10300-tdep.c (mn10300_return_value): Ditto.
5028 * mt-tdep.c (mt_return_value): Ditto.
5029 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
5030 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
5031 (ppc_sysv_abi_broken_return_value): Ditto.
5032 (ppc64_sysv_abi_return_value): Ditto.
5033 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
5034 (ppc_sysv_abi_broken_return_value): Ditto.
5035 (ppc64_sysv_abi_return_value): Ditto.
5036 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
5037 * rs6000-tdep.c (rs6000_return_value): Ditto.
5038 * s390-tdep.c (s390_return_value): Ditto.
5039 * score-tdep.c (score_return_value): Ditto.
5040 * sh-tdep.c (sh_return_value_nofpu): Ditto.
5041 (sh_return_value_fpu): Ditto.
5042 * sh64-tdep.c (sh64_return_value): Ditto.
5043 * sparc-tdep.c (sparc32_return_value): Ditto.
5044 * sparc64-tdep.c (sparc64_return_value): Ditto.
5045 * spu-tdep.c (spu_return_value): Ditto.
5046 * v850-tdep.c (v850_return_value): Ditto.
5047 * vax-tdep.c (vax_return_value): Ditto.
5048 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
5049 * xtensa-tdep.c (xtensa_return_value): Ditto.
5050
5051 * gdbtypes.h (struct type): Add calling_convention member.
5052 * dwarf2read.c (read_subroutine_type): Add calling convention read
5053 from DW_AT_calling_convention attribute to function type.
5054
9eec4d1e
MD
50552008-04-22 Markus Deuling <[email protected]>
5056
5057 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
5058 multi_f77_subscript to support values from registers.
5059 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
5060 * value.h (value_subscripted_rvalue): Add prototype.
5061
5062 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
5063 Fix output.
5064 * f-valprint.c (f_val_print): Likewise.
5065
ef72380d
CS
50662008-04-21 Craig Silverstein <[email protected]>
5067
5068 * dwarf2read.c (zlib_decompress_section): Define abfd in the
5069 !HAVE_ZLIB_H case.
5070
ff8e85c3
PA
50712008-04-21 Pedro Alves <[email protected]>
5072
5073 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
5074 section is not a code section.
5075
31fffb02
CS
50762008-04-19 Craig Silverstein <[email protected]>
5077
5078 * NEWS: Add information on compressed debug sections.
5079
8e91f023
VP
50802008-04-19 Vladimir Prus <[email protected]>
5081
5082 * mi/mi-cmd-var.c (varobj_update_one): Print new
5083 value for variable objects that changed type.
5084
603ba1de
VP
50852008-04-19 Vladimir Prus <[email protected]>
5086
5087 * varobj.c (varobj_invalidate): Don't touch floating
5088 varobjs.
5089
7fc830e2
MK
50902008-04-19 Mark Kettenis <[email protected]>
5091
5092 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
5093 (multiple_symbols_cancel): Remove extra const.
5094 * symtab.h: Likewise.
5095
bcbf8b68
NR
50962008-04-19 Nick Roberts <[email protected]>
5097
5098 * interps.c (top_level_interpreter): Rename static variable...
5099 (top_level_interpreter_ptr): ...to this.
5100 (top_level_interpreter): New function.
5101
5102 * interps.h: New extern for top_level_interpreter.
5103
5104 * linespec.c: Include interps.h and mi/mi-cmds.h.
5105 (decode_line_2): When using MI, always set all breakpoints in menu.
5106
5107 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
5108
31fffb02 51092008-04-18 Craig Silverstein <[email protected]>
233a11ab
CS
5110
5111 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
5112 * config.in, configure: Regenerate.
5113 * dwarf2read.c: Include zlib.h if present.
5114 Modified *_SECTION macros.
5115 (section_is_p): New.
5116 (dwarf2_locate_sections): Use section_is_p instead of strcmp
5117 (dwarf2_resize_section): New.
5118 to determine whether a given section has a given name.
5119 (zlib_decompress_section): New.
5120 (dwarf2_read_section): Read the compressed section if present
5121 in the binary.
5122 * MAINTAINERS: Added myself to section Write After Approval.
bcbf8b68 5123
a03b3a97
TJB
51242008-04-18 Thiago Jung Bauermann <[email protected]>
5125
5126 * defs.h (exec_set_section_offsets): Remove prototype.
5127 * exec.c (exec_set_section_offsets): Remove function.
5128
9e386756
JB
51292008-04-18 Joel Brobecker <[email protected]>
5130
5131 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
5132 in the search for the matching symbol.
5133
2ec93238
MK
51342008-04-17 Marc Khouzam <[email protected]>
5135
5136 * breakpoint.c (update_watchpoint): Always reparse
5137 condition.
5138
e9bbd7c5
JB
51392008-04-17 Joel Brobecker <[email protected]>
5140
5141 * breakpoint.c (print_one_breakpoint_location): Make sure to print
5142 the breakpoint address only once.
5143
475bbd17
JB
51442008-04-17 Dennis Roberts <[email protected]>
5145
5146 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
5147 rather than a hard-coded architecture, for xcoff executables.
5148
86991504
DE
51492008-04-17 Doug Evans <[email protected]>
5150
4584e32e
DE
5151 * buildsym.c (watch_main_source_file_lossage): New fn.
5152 (end_symtab): Call it.
5153
86991504
DE
5154 * source.c (find_and_open_source): Add some comments clarifying
5155 handling of FULLNAME argument. Make static. Remove pointless
5156 xstrdup/xfree.
5157
0a320680
PA
51582008-04-17 Pedro Alves <[email protected]>
5159
5160 * inf-loop.c (inferior_event_handler): Also run the intermediate
5161 continuations in the INF_EXEC_COMPLETE case.
5162
700b53b1
TT
51632008-04-16 Tom Tromey <[email protected]>
5164
5165 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
5166 (set_cmd_async_ok, get_cmd_async_ok): Declare.
5167 * cli/cli-decode.c (set_cmd_async_ok): New function.
5168 (get_cmd_async_ok): New function.
5169 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
5170 "show" as async-ok.
5171 * top.c (execute_command): Use get_cmd_async_ok.
5172 * infcmd.c: Include cli/cli-decode.h.
5173 (_initialize_infcmd): Mark "interrupt" as async-ok.
5174 * Makefile.in (infcmd.o): Depend on cli_decode_h.
5175
dacec2a8
DJ
51762008-04-16 Daniel Jacobowitz <[email protected]>
5177
5178 PR gdb/2445
5179 * exec.c: Correct "arch-utils.h" include.
5180
1f906a60 51812008-04-15 Aleksandar Ristovski <[email protected]>
2cec12e5
AR
5182
5183 PR gdb/2424
5184 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
5185 to allow printing to 'see' real reason of stop. This fixes PR 2424.
5186 * breakpoint.c (bpdisp_texst): New function. The function takes over
5187 the role of bpstats static array in print_one_breakpoint_location.
5188 (print_it_typical): Print "Temporary breakpoint" instead
5189 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
5190 protocols, print disp field.
5191 (print_one_breakpoint_location): Removed bpdisps static definition.
5192 Call new bpstat_text function to get value for 'disp' field.
5193 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
5194
4d7b71aa
DJ
51952008-04-15 Daniel Jacobowitz <[email protected]>
5196
5197 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
5198 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
5199 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
5200 * gnulib/Makefile.in: Regenerate.
5201
aa11fd3f
DJ
52022008-04-14 Daniel Jacobowitz <[email protected]>
5203
5204 * Makefile.in (GNULIB_H): New. Trigger all-lib.
5205 (defs_h): Use $(GNULIB_H).
5206 (all-lib): Depend on gnulib/Makefile.
5207 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
5208 * config.in, gnulib/Makefile.in: Regenerated.
5209
e28b3332
DJ
52102008-04-14 Daniel Jacobowitz <[email protected]>
5211
5212 * Makefile.in (LIBGNU, INCGNU): Define.
5213 (INTERNAL_CFLAGS_BASE): Add INCGNU.
5214 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
5215 (CLEANDIRS): New.
5216 ($(LIBGNU), all-lib): New rules.
5217 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
5218 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
5219 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
5220 * gnulib: New directory, from gnulib-tool.
5221 * configure, aclocal.m4: Regenerated.
5222
e3bc4218
DJ
52232008-04-14 Daniel Jacobowitz <[email protected]>
5224
5225 * linux-thread-db.c (have_threads_callback): Check thread->private.
5226
fcacd99f
VP
52272008-04-13 Nick Roberts <[email protected]>
5228 Vladimir Prus <[email protected]>
5229
5230 Fix @-varobjs.
680b56ce
AS
5231 * varobj.c (value_of_root): Update the expression for
5232 floating varobjs.
5233 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
5234 report that.
fcacd99f 5235
de051565
MK
52362008-04-09 Marc Khouzam <[email protected]>
5237
5238 * mi/mi-cmd-var.c: Include "mi-getopt.h".
5239 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
5240 (mi_cmd_var_set_format): Use new mi_parse_format.
5241 (mi_cmd_var_evaluate_expression): Support for -f option to specify
5242 format.
5243 * Makefile.in (mi-cmd-var.o): Update dependencies.
5244
5245 * varobj.h (varobj_get_formatted_value): Declare.
5246 * varobj.c (my_value_of_variable): Added format parameter.
5247 (cplus_value_of_variable): Likewise.
5248 (java_value_of_variable): Likewise.
5249 (c_value_of_variable): Likewise. Evaluate expression based
5250 on format parameter.
5251 (struct language_specific): Add format parameter to function member
5252 *value_of_variable.
5253 (varobj_get_formatted_value): New.
5254 (varobj_get_value): Added format parameter to method call.
680b56ce 5255
56953f80
JB
52562008-04-08 Joel Brobecker <[email protected]>
5257
5258 * stabsread.c (cleanup_undefined_types_noname): Manually set the
5259 instance flags of the undefined type before calling replace_type.
5260
e4e33b9e
VP
52612008-04-08 Vladimir Prus <[email protected]>
5262
5263 * target.h (enum strata): Remove the download_stratum.
680b56ce 5264
92b5c263
DE
52652008-04-07 Doug Evans <[email protected]>
5266
5267 * buildsym.h (last_source_file): Add dwarf info to comment.
5268 (last_source_start_addr): Ditto.
5269
effa26a9
PA
52702008-04-07 Pedro Alves <[email protected]>
5271
5272 * alphanbsd-tdep.c: Include "target.h".
5273 * mn10300-tdep.c: Include "target.h".
5274 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
5275
2b2d9e11
VP
52762008-04-06 Vladimir Prus <[email protected]>
5277
5278 Fix breakpoint condition that use member variables.
680b56ce
AS
5279 * valops.c (check_field): Remove.
5280 (check_field_in): Rename to check_field.
5281 (value_of_this): Use la_name_of_this.
5282 * value.h (check_field): Adjust prototype.
5283
5284 * language.h (la_value_of_this): Rename to la_name_of_this.
5285 * language.c (unknown_language_defn): Specify "this" for
5286 name_of_this.
5287 (auto_language_defn): Likewise.
5288 (local_language_defn): Likewise.
5289 * ada-lang.c (ada_language_defn): Adjust comment.
5290 * c-lang.c (c_language_defn): Adjust comment.
5291 (cplus_language_defn): Specify "this" for name_of_this.
5292 (asm_language_defn): Adjust comment.
5293 (minimal_language_defn): Adjust comment.
5294 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
5295 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
5296 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
5297 * objc-lang.c (objc_language_defn): Specify "self" for
5298 name_of_this.
5299 * p-lang.c (pascal_language_defn): Specify "this" for
5300 name_of_this.
5301 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
5302
5303 * symtab.c (lookup_symbol_aux): Lookup "this" in the
5304 proper scope, and check for field in type of "this", without
5305 trying to create a value.
2b2d9e11 5306
a13e061a
PA
53072008-04-04 Pedro Alves <[email protected]>
5308
5309 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
5310 (mi_error_message): Delete declaration.
5311 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
5312 returning MI_CMD_ERROR.
5313 * mi/mi-main.c (mi_error_message): Delete.
5314 (mi_cmd_exec_interrupt):
5315 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
5316 (mi_cmd_thread_info): Call error instead of returning
5317 MI_CMD_ERROR.
5318 (mi_cmd_data_list_register_values): Call error instead of
5319 returning MI_CMD_ERROR. Adapt to new get_register interface.
5320 (get_register): Change return typo to void. Call error instead of
5321 returning MI_CMD_ERROR.
5322 (mi_cmd_data_write_register_values): Call error instead of
5323 returning MI_CMD_ERROR.
5324 (mi_cmd_list_features): Return MI_CMD_DONE.
5325 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
5326 (mi_execute_command): Always print exceptions with -error.
5327
aad4b048
JB
53282008-04-04 Joel Brobecker <[email protected]>
5329
5330 * NEWS: Mention new commands set/show multiple-symbols.
5331
717d2f5a
JB
53322008-04-03 Joel Brobecker <[email protected]>
5333
5334 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
5335 (multiple_symbols_cancel): New constants.
5336 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
5337 (multiple_symbols_select_mode): New function.
5338 (_initialize_symtab): Add new set/show multiple-symbols commands.
5339 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
5340 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
5341 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
5342 setting.
5343 * linespec.c (decode_line_2): Likewise.
5344
f73634e5
DE
53452008-04-03 Doug Evans <[email protected]>
5346
5347 * symtab.h (enum free_code): Delete free_contents, unused.
5348 * symmisc.c (free_symtab_block): Delete.
5349 (free_symtab, case free_code): Delete.
5350
1f906a60 53512008-04-01 Aleksandar Ristovski <[email protected]>
6af87b03
AR
5352
5353 * valops.c (value_cast_structs): New function. Cast related
680b56ce 5354 STRUCT types up/down and return cast value. The body of this
6af87b03
AR
5355 function comes mostly from value_cast_pointers.
5356 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
5357 to value_cast_structs. Now value_cast_pointers needs only create
5358 appropriate reference after using value_cast_structs for actual
5359 casting.
5360 (value_cast): Handle references.
5361
61ad90e1
MK
53622008-04-01 Marc Khouzam <[email protected]>
5363
5364 * MAINTAINERS: Added myself to section Write After Approval.
5365
b7d038ae
DJ
53662008-03-30 Daniel Jacobowitz <[email protected]>
5367
5368 * ia64-tdep.c (examine_prologue): Correct array access.
5369
1f906a60 53702008-03-28 Aleksandar Ristovski <[email protected]>
c836824f
AR
5371
5372 * cp-support.c (first_component_command): Return if no arguments.
5373
df3ac606
CD
53742008-03-28 Carlos O'Donell <[email protected]>
5375
5376 * ser-mingw.c (ser_windows_open): Open requested name.
5377
ca933485
AR
53782008-03-28 Aleksandar Ristovski <[email protected]>
5379
5380 * MAINTAINERS: Added myself.
5381
5f667f2d
PA
53822008-03-28 Pedro Alves <[email protected]>
5383
5384 * target.c (find_default_run_target): Allow a NULL `do_mesg'
5385 parameter. If it is NULL, don't call error.
5386 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
5387 `do_mesg' parameter to find_default_run_target. If no target was
5388 found, return 0.
5389
e741f4d4
DJ
53902008-03-28 Daniel Jacobowitz <[email protected]>
5391
5392 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
5393 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
5394 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
5395 Delete.
5396 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
5397
f66d8205 53982008-03-27 Joel Brobecker <[email protected]>
5399
5400 GDB 6.8 released.
5401
221c031f
UW
54022008-03-27 Ulrich Weigand <[email protected]>
5403
5404 * features/Makefile (%.dat): Set xmltarget to the base filename
5405 of the XML source, without subdirectory.
5406 * regformats/rs6000/powerpc-32.dat: Regenerate.
5407 * regformats/rs6000/powerpc-64.dat: Regenerate.
5408 * regformats/rs6000/powerpc-e500.dat: Regenerate.
5409
40c58d95
MD
54102008-03-27 Markus Deuling <[email protected]>
5411
5412 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
5413 objfile arch.
5414
bb1ec7d2
NR
54152008-03-27 Nick Roberts <[email protected]>
5416
5417 * mi/mi-main.c (enum captured_mi_execute_command_actions):
5418 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
5419
5e2b427d
UW
54202008-03-26 Ulrich Weigand <[email protected]>
5421
5422 * objfiles.h (struct objfile): New GDBARCH member.
5423 (get_objfile_arch): Add prototype.
5424 * objfiles.c: Include "arch-utils.h".
5425 (allocate_objfile): Look up gdbarch associated with bfd.
5426 (get_objfile_arch): New function.
5427 * Makefile (objfiles.o): Update dependencies.
5428
5429 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
5430 by objfile arch.
5431 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
5432 by frame arch.
5433 (locexpr_describe_location): Replace current_gdbarch by
5434 objfile arch.
5435 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
5436 (dwarf2_add_field): Likewise.
5437 (read_tag_pointer_type): Likewise.
5438 (read_base_type): Likewise.
5439 (new_symbol): Likewise.
5440
5441 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
5442 (decode_base_type, decode_function_type): Likewise.
5443 (coff_read_struct_type, coff_read_enum_type): Likewise.
5444 (coff_symtab_read): Replace current_gdbarch by objfile arch.
5445 (decode_base_type): Likewise.
5446 (coff_read_enum_type): Likewise.
5447 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
5448 (coff_read_enum_type): Likewise.
5449
5450 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
5451 (end_psymtab): Likewise.
5452 (process_one_symbol): Likewise.
5453
5454 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
5455 (parse_procedure): Likewise.
5456 (parse_partial_symbols): Likewise.
5457
5458 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
5459
5460 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
5461 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
5462 built-in types.
5463 (read_range_type): Replace current_gdbarch by objfile arch. Replace
5464 static range_index_type by built-in type.
5465 (read_one_struct_field): Replace current_gdbarch by objfile arch.
5466 (read_enum_type): Likewise.
5467
5468 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
5469 objfile arch.
5470
5a413362
VP
54712008-03-26 Vladimir Prus <[email protected]>
5472
5473 * varobj.h (varobj_floating_p): Declare.
5474 * varobj.c (varobj_floating_p): New.
5475 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
5476 '@' as the name, update all floating varobjs.
5477
a5defcdc
VP
54782008-03-26 Vladimir Prus <[email protected]>
5479
5480 * varobj.c (struct varobj_root): Rename use_selected_frame to
5481 floating, and clarify the meaning.
5482 (varobj_create, varobj_update, new_root_variable): Adjust.
5483 (value_of_root): Don't use type_changed as in variable,
5484 adjust comment.
5485 (c_value_of_root): Adjust.
5a413362 5486
403fe197
PA
54872008-03-25 Pedro Alves <[email protected]>
5488
5489 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
5490 gdb's thread list.
5491 (linux_nat_wait): Add main lwp to gdb's thread list.
5492 * linux-thread-db.c (find_new_threads_callback): Also attach to
5493 already listed threads which thread_db didn't know about yet.
5494
710151dd
PA
54952008-03-25 Pedro Alves <[email protected]>
5496
5497 * linux-nat.c (drain_queued_events): Fix comment typo.
5498 (linux_nat_attach): In async mode, don't rely on storing a pending
5499 status. Instead place the wait status on the pipe.
5500 (linux_nat_resume): Remove unreacheable shortcut code in async
5501 mode.
5502 (stop_wait_callback): In async mode, don't store pending status.
5503 Instead, cancel breakpoints or resend the signal appropriatelly.
5504 (cancel_breakpoint): New, refactored from
5505 cancel_breakpoints_callback.
5506 (cancel_breakpoints_callback): Call cancel_breakpoint.
5507 (pipe_to_local_event_queue): Remove special token processing.
5508 (linux_nat_wait): Issue an internal error if a pending status is
5509 found in async mode.
5510
807bddf3
DJ
55112008-03-24 Daniel Jacobowitz <[email protected]>
5512
5513 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
5514
c5b48eac
VP
55152008-03-24 Nick Roberts <[email protected]>
5516 Vladimir Prus <[email protected]>
5517
680b56ce
AS
5518 * varobj.c (struct varobj_root): New component thread_id.
5519 (varobj_get_thread_id, check_scope): New functions.
5520 (c_value_of_root): Use check_scope. Switch to the
c5b48eac
VP
5521 proper thread if necessary.
5522
680b56ce 5523 * varobj.h (varobj_get_thread_id): New extern.
c5b48eac 5524
680b56ce 5525 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
c5b48eac 5526
12f4afab
DJ
55272008-03-23 Daniel Jacobowitz <[email protected]>
5528
5529 PR gdb/544
5530 * top.c: Revert 2008-03-21 changes.
5531
6208b47d
VP
55322008-03-23 Vladimir Prus <[email protected]>
5533
5534 * thread.c (make_cleanup_restore_current_thread): Make it
5535 globally visible.
5536 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
5537 * varobj.c (varobj_update): Don't save/restore frame.
5538 (c_value_of_root): Save/restore thread and frame here,
5539 using make_cleanup_restore_current_thread.
5540 * Makefile.in: Update dependecies.
5541
44a67aa7
VP
55422008-03-23 Vladimir Prus <[email protected]>
5543
680b56ce
AS
5544 * varobj.c (struct varobj_root): Clarify
5545 comment on the frame field.
5546 (varobj_create): Don't set frame if we have no
5547 block.
44a67aa7 5548
b562a0cb
DJ
55492008-03-21 Daniel Jacobowitz <[email protected]>
5550
5551 PR gdb/544
5552 Suggested by Jan Kratochvil:
5553 * top.c (gdb_rl_operate_and_get_next_completion): Call
5554 rl_redisplay_function.
5555 (gdb_rl_redisplay): New.
5556 (init_main): Set rl_redisplay_function.
5557
ed1bd5f5
JB
55582008-03-21 Thomas Mittelstaedt <[email protected]> (tiny change)
5559
5560 * aix-thread.c (pdc_read_regs): Fix compiler warning.
5561 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
5562 (store_regs_kernel_thread): Likewise.
5563
b84876c2
PA
55642008-03-21 Pedro Alves <[email protected]>
5565
5566 Linux native async support.
5567
5568 * target.h (struct target_ops): Delete to_async_mask_value and add
5569 to_async_mask.
5570 (target_is_async_p, target_async): Formatting.
5571 (target_async_mask_value): Delete.
5572 (target_async_mask): Delete function declaration, and add new
5573 target macro with the same name.
5574
5575 * target.c (update_current_target): Replace to_async_mask_value by
5576 to_async_mask. Default to_async_mask to return_one.
5577 (target_async_mask): Delete.
5578 (find_default_can_async_p, find_default_is_async_p): New.
5579 (init_dummy_target): register find_default_can_async_p and
5580 find_default_is_async_p on the dummy target.
5581
5582 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
5583 (debug_linux_nat_async): New global.
5584 (show_debug_linux_nat_async): New function.
5585 (linux_nat_async_enabled, linux_nat_async_mask_value)
5586 (linux_nat_event_pipe, linux_nat_num_queued_events)
5587 (linux_nat_async_events_enabled): New globals.
5588 (struct waitpid_result): New struct.
5589 (waitpid_queue): New global.
5590 (queued_waitpid, push_waitpid, drain_queued_events): New.
5591 (my_waitpid): Call queued_waitpid.
5592 (linux_child_follow_fork): Disable async events during the call.
5593 (blocked_mask): Delete.
5594 (sync_sigchld_action, async_sigchld_action): New globals.
5595 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
5596 async mode, block events during the call.
5597 (linux_nat_create_inferior): New.
5598 (linux_nat_attach): In sync mode, restore the mask states. In
5599 async mode, wake the event loop immediatelly.
5600 (detach_callback): Drain all queued events of the lwp we're
5601 detaching from.
5602 (linux_nat_detach): Block async mode, and drain events of the main
5603 process.
5604 (linux_nat_resume): If in async mode, mask async events during the
5605 call. If short circuiting, force event loop to wake up. If
5606 resuming, set target_executing, and register target events in the
5607 event loop.
5608 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
5609 (linux_nat_wait): In async mode, block events during the call.
5610 Only enable/disable passing SIGINT to the inferior in sync mode.
5611 Get events from local waitpid queue. If no interesting events was
5612 found, return to events loop. Reregister target events in the
5613 event loop on exit. In sync mode, no need to reblock SIGCHLD.
5614 (linux_nat_kill): Disable events on entry.
5615 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
5616 here. Detach async mode from the event loop if there are no more
5617 forks available, otherwise leave it on.
5618 (sigchld_handler): Assure this is called only in sync mode.
5619 (linux_async_permitted, linux_async_permitted_1): New globals.
5620 (set_maintenance_linux_async_permitted)
5621 (show_maintenance_linux_async_permitted): New functions.
5622 (linux_nat_is_async_p, linux_nat_can_async_p)
5623 (linux_nat_async_mask): New.
5624 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
5625 (get_pending_events, async_sigchld_handler): New.
5626 (linux_nat_async_events): New.
5627 (async_terminal_is_ours): New global.
5628 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
5629 (async_client_callback, async_client_context): New.
5630 (linux_nat_async_file_handler, linux_nat_async)
5631 (linux_nat_disable_async, linux_nat_enable_async): New.
5632 (linux_nat_add_target): Register linux_nat_create_inferior,
5633 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
5634 linux_nat_async_mask, linux_nat_terminal_inferior and
5635 linux_nat_terminal_ours.
5636 (_initialize_linux_nat): Remove local action variable, and update
5637 code that used it to use sync_sigchld_action. Add new
5638 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
5639 set/show command in the maintenance class. Add new "linux-async"
5640 maintenance set/show command. Block SIGCHLD by default. Setup
5641 async_sichld_action, and sync_sigchld_action. Install the default
5642 async mode.
5643 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
5644 the cancel signals.
5645
5646 * linux-thread-db.c (re_check_for_thread_db): New.
5647 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
5648 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
5649 (thread_db_async_mask): New.
5650 (init_thread_db_ops): Register thread_db_can_async_p,
5651 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
5652
5653 * remote.c (remote_async_mask_value): New.
5654 (remote_return_zero): New.
5655 (init_remote_ops): Register remote_return_zero as callbacks of
5656 to_can_async_p and to_is_async_p.
5657 (remote_can_async_p, remote_is_async_p, remote_async): Update to
5658 use remote_async_mask_value.
5659 (remote_async_mask): New.
5660 (init_remote_async_ops): Remove to_async_mask_value setting and
5661 register remote_async_mask as to_async_mask callback in
5662 remote_async_ops.
5663
5664 * Makefile.in (linux-nat.o): Update.
5665
17faa917
DJ
56662008-03-21 Daniel Jacobowitz <[email protected]>
5667
5668 * gdbthread.h (add_thread_with_info): New.
5669 * linux-thread-db.c: Add some documentation.
5670 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
5671 (struct private_thread_info): Remove th_valid and ti_valid.
5672 Replace ti with tid.
5673 (thread_get_info_callback): Do not add TID to the new ptid. Do
5674 not cache th or ti.
5675 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
5676 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
5677 new PTID.
5678 (attach_thread): Handle an already-existing thread. Use
5679 add_thread_with_info. Cache the th and tid.
5680 (detach_thread): Verify that private was set. Remove verbose
5681 argument and printing. Update caller.
5682 (thread_db_detach): Do not adjust inferior_ptid.
5683 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
5684 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
5685 (thread_db_wait): Do not use lwp_from_thread.
5686 (thread_db_pid_to_str): Use the cached TID.
5687 (thread_db_extra_thread_info): Check that private is set.
5688 (same_ptid_callback): Delete.
5689 (thread_db_get_thread_local_address): Do not use it or check
5690 is_thread. Check that private is set. Assume that the thread
5691 handle is already cached.
5692 (init_thread_db_ops): Remove to_resume and to_kill.
5693 * thread.c (add_thread_with_info): New.
5694 (add_thread): Use it.
5695 * linux-nat.c (find_thread_from_lwp): Delete.
5696 (exit_lwp): Do not use it. Check print_thread_events. Print before
5697 deleting the thread.
5698 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
5699 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
5700 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
5701 printf_unfiltered for thread exits.
5702 * procfs.c (procfs_wait): Likewise.
5703
6214f497
DJ
57042008-03-21 Chris Demetriou <[email protected]>
5705
5706 * symtab.c (rbreak_command): Quote symbol name before passing
5707 it to break_command.
5708
63092375
DJ
57092008-03-21 Daniel Jacobowitz <[email protected]>
5710
5711 * eval.c (evaluate_subexp_for_address): Clarify error message.
5712 Use value_must_coerce_to_target.
5713 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
5714 * valops.c (value_assign): Call value_coerce_to_target when
5715 assigning to anything but internalvars. Leave GDB-side arrays
5716 as arrays when assigning to internalvars.
5717 (value_must_coerce_to_target, value_coerce_to_target): New.
5718 (value_coerce_array, value_addr): Call value_coerce_to_target.
5719 (value_array): Create the array in GDB's memory instead of
5720 the inferior's.
5721 * value.h (value_must_coerce_to_target, value_coerce_to_target):
5722 Declare.
5723
b21991b0
DJ
57242008-03-21 Daniel Jacobowitz <[email protected]>
5725
5726 * top.c (quit_confirm): Warn that we will kill the program.
5727
49a834f9
PA
57282008-03-19 Pedro Alves <[email protected]>
5729
5730 * inflow.c (terminal_ours_1): Guard access to
5731 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
5732
ae0d2f24
UW
57332008-03-18 Ulrich Weigand <[email protected]>
5734 Jim Blandy <[email protected]>
5735 Daniel Jacobowitz <[email protected]>
5736
5737 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
5738 (dwarf2_read_address): Update prototype.
5739
5740 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
5741 (signed_address_type): Likewise.
5742 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
5743 (execute_stack_op): Update calls to unsigned_address_type,
5744 signed_address_type and dwarf2_read_address. Fix implementation
5745 of DW_OP_deref_size.
5746
5747 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
5748 (dwarf2_per_cu_addr_size): Likewise.
5749 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
5750 (struct dwarf2_loclist_baton): Likewise.
5751
5752 * dwarf2loc.c (find_location_expression): Update calls to
5753 dwarf2_read_address. Use dwarf2_per_cu_objfile and
5754 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
5755 (locexpr_describe_location): Likewise.
5756 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
5757 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
5758 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
5759 to dwarf2_per_cu_addr_size (per_cu).
5760 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
5761 (loclist_read_variable): Likewise.
5762 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
5763
5764 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
5765 instead of baton->objfile.
5766 (dwarf2_per_cu_obfile): New function.
5767 (dwarf2_per_cu_addr_size): Likewise.
5768
5769 * dwarf2-frame.c (struct comp_unit): Move higher.
5770 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
5771 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
5772 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
5773 parameter by using fde->eh_frame_p. Use read_encoded_value
5774 to implement DW_CFA_set_loc.
5775 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
5776 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
5777 execute_stack_op and execute_cfa_program.
5778 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
5779 (size_of_encoded_value): Remove.
5780 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
5781 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
5782 (add_cie): Set cie->unit backlink.
5783 (decode_frame_entry_1): Set cie->addr_size. Update calls to
5784 read_encoded_value.
5785 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
5786
1c8201d1
MD
57872008-03-17 Markus Deuling <[email protected]>
5788
5789 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
5790 gdbarch_bfd_arch_info.
5791
46bba1ef
JB
57922008-03-17 Joel Brobecker <[email protected]>
5793
5794 * aix-thread.c (pdc_read_regs): Minor reformatting.
5795
0bcd3e20
VP
57962008-03-17 Vladimir Prus <[email protected]>
5797
5798 * thread.c (print_thread_info): Don't insist
5799 on having current thread if there are no
5800 threads at all.
5801
9356cf8d
PA
58022008-03-17 Pedro Alves <[email protected]>
5803
5804 * infcmd.c (attach_command_post_wait)
5805 (attach_command_continuation): New.
5806 (attach_command): Support background async execution, and async
5807 execution in synchronous mode.
5808
5c3ce3f7
DJ
58092008-03-17 Daniel Jacobowitz <[email protected]>
5810
5811 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
5812 * symmisc.c (dump_symtab_1): Likewise.
5813 * wrapper.c (gdb_value_struct_elt): Likewise.
5814
fa2c6a57
PA
58152008-03-17 Pedro Alves <[email protected]>
5816
5817 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
5818
02f3fc28
PA
58192008-03-17 Pedro Alves <[email protected]>
5820
5821 * linux-nat.c (linux_nat_filter_event): New, refactored from
5822 linux_nat_wait.
5823 (linux_nat_wait): Call linux_nat_filter_event.
5824
2f77b315
UW
58252008-03-17 Ulrich Weigand <[email protected]>
5826
5827 * top.c (execute_command): Fix uninitialized variable error.
5828
f01be29b
NH
58292008-03-16 Nick Hudson <[email protected]>
5830
680b56ce
AS
5831 * Makefile.in (amd64nbsd-nat.o): New dependency.
5832 * amd64nbsd-nat.c: Include "nbsd-nat.h".
5833 (_initialize_amd64nbsd_nat): Update target vector to use
5834 nbsd_pid_to_exec_file.
5835 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
f01be29b 5836
6cf32704
VP
58372008-03-15 Vladimir Prus <[email protected]>
5838
5839 Remove ignoring leading exec events code.
680b56ce
AS
5840 * fork-child.c (startup_inferior): Do not set
5841 inferior_ignoring_leading_exec_events.
5842 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
5843 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
5844 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
5845 (handle_inferior_event): Remove code for ignoring leading exec
5846 events.
5847 * target.c (update_current_target): Do not inherit, or default,
5848 to_reported_exec_events_per_exec_call.
5849 (debug_to_reported_exec_events_per_exec_call): Remove.
5850 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
5851 * target.h (target_reported_exec_events_per_exec_call): Remove.
5852 (struct target): Remove the to_reported_exec_events_per_exec_call
5853 field.
6cf32704 5854
8e8901c5
VP
58552008-03-15 Vladimir Prus <[email protected]>
5856
5857 Implement -thread-info.
680b56ce 5858 * gdbthread.h (print_thread_info): Declare.
8e8901c5 5859
680b56ce
AS
5860 * thread.c (print_thread_info): New, extracted
5861 from info_threads_command and adjusted to
5862 work for CLI and MI.
5863 (info_threads_command): Use print_thread_info.
8e8901c5
VP
5864 * Makefile.in: Update dependencies.
5865
680b56ce
AS
5866 * mi/mi-cmds.c (mi_cmds): Specify a handler
5867 for -thread-info.
5868 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
5869 * mi/mi-main.c (mi_cmd_thread_info): New.
5870 (mi_cmd_list_features): Include 'thread-info'.
8e8901c5 5871
7d1e6fb8
KB
58722008-03-14 Kevin Buettner <[email protected]>
5873
5874 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
5875 to decide whether to match instruction patterns using "sw" and "sd".
5876
89113898
PA
58772008-03-14 Pedro Alves <[email protected]>
5878
5879 * infcmd.c (jump_command): Postpone disabling stdin until after
5880 the possible query.
5881
64a0ac84
PA
58822008-03-14 Pedro Alves <[email protected]>
5883
5884 * inflow.c (gdb_getpgrp): New.
5885 (gdb_has_a_terminal): Use get_getpgrp.
5886 (terminal_ours_1): If attach_flag is set, don't refetch
5887 inferior_process_group.
5888
1fddbabb
PA
58892008-03-14 Pedro Alves <[email protected]>
5890
5891 * features/library-list.dtd: Allow "section" elements as children
5892 of "library". Add "section" element and describe its attributes.
5893
5894 * solib-target.c (struct lm_info): Add section_bases member.
5895 (library_list_start_segment): Error out if seen a section element.
5896 (library_list_start_section): New.
5897 (library_list_end_library): New.
5898 (solib_target_free_library_list): Free section_bases.
5899 (section_attributes): New.
5900 (library_children): Make "segment" optional. Add "section" child.
5901 (library_list_children): Register library_list_end_library.
5902 (solib_target_relocate_section_addresses): Handle section bases.
5903
5904 * NEWS: Mention new qXfer:libraries:read section offsets support.
5905
712af3be
VP
59062008-03-14 Vladimir Prus <[email protected]>
5907
5908 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
5909 (make_exec_error_cleanup): Remove declarations.
5910 * utils.c (exec_error_cleanup_chain): Remove.
5911 (do_exec_error_cleanups, discard_exec_error_cleanups)
5912 (make_exec_error_cleanup): Remove.
5913 * event-loop.c (start_event_loop): Adjust call to
5914 async_enable_stdin.
5915 * event-top.c (async_enable_stdin): Remove the paramater dummy.
5916 (async_disable_stdin): Don't register async_enable_stdin via
5917 cleanup.
5918 * inf-loop.c (inferior_event_handler): Don't
5919 call do_exec_error_cleanups. Call async_enable_stdin instead.
5920 * event-loop.c (start_event_loop): Adjust call to
5921 async_enable_stdin.
5922 * tui/tui-interp.c (tui_command_loop): Adjust call to
5923 async_enable_stdin.
5924
32c1e744
VP
59252008-03-14 Vladimir Prus <[email protected]>
5926
5927 Async mode fixes.
680b56ce
AS
5928 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
5929 * breakpoint.c (bpstat_do_actions): In async mode,
5930 don't jump to top expecting stop_bpstat to be already
5931 updated.
5932 * event-loop.c (start_event_loop): Call async_enable_stdin
5933 on exception.
5934 * event-top.c (async_enable_stdin): Do nothing if sync_execution
5935 is not set.
5936 (command_handler): Do not setup continuation here.
5937 (command_line_handler_continuation): Move to...
5938 * top.c (command_line_handler_continuation): ... here.
5939 (execute_command): In async mode, register continuation.
5940 Don't check frame's language in running in async mode.
5941 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
5942 * inf-loop.c (complete_execution): Inline into...
5943 (inferior_event_handler): ... here. Clear target_executing before
5944 doing any cleanups. Don't try to show prompt if the target was
5945 resumed.
5946 * infcmd.c (signal_command): Add support for async mode.
5947 (finish_command): Only add continuation if the target was
5948 successfully resumed.
5949 * remote.c (init_async_opts): Register to_get_thread_local_address
5950 handler.
5951 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
5952 with sync_execution.
5953 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
5954 on exception.
32c1e744 5955
c04ea773
DJ
59562008-03-14 Daniel Jacobowitz <[email protected]>
5957
5958 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
5959 * exec.c (exec_bfd_mtime): Define.
5960 (exec_close): Clear it.
5961 (exec_file_attach): Set it.
5962 * gdbcore.h (exec_bfd_mtime): Declare.
5963 * source.c (find_source_lines): Do not use bfd_get_mtime.
5964
952dc227
VP
59652008-03-14 Vladimir Prus <[email protected]>
5966
5967 * top.c (simplified_command_loop): Remove.
5968
4cf46804
VP
59692008-03-14 Vladimir Prus <[email protected]>
5970
5971 Remove unused remote.c hooks.
680b56ce
AS
5972 * remote.c (deprecated_target_resume_hook)
5973 (deprecated_target_wait_loop_hook): Remove.
5974 (remote_resume): Do not call deprecated_target_resume_hook.
5975 (remote_wait): Do not call deprecated_target_wait_loop_hook.
5976 (remote_async_wait): Likewise.
4cf46804 5977
683f2885
VP
59782008-03-14 Vladimir Prus <[email protected]>
5979
5980 Implement MI notification for new threads.
680b56ce
AS
5981 * doc/observer.texi (new_thread): Document.
5982 * observer.sh: Forward declare struct thread_info.
5983 * thread.c (add_thread): Notify observer.
5984
5985 * interps.h (interp_init_ftype): New parameter
5986 top_level.
5987 (interp_set): Likewise.
5988 (top_level_interpreter_data): Declare.
5989 * interps.c (interp_set): New parameter top_level.
5990 Pass it to interpreter's init function. Remember
5991 top level interpreter.
5992 (interpreter_exec_cmd): Adjust.
5993 (top_level_interpreter_data): New.
5994 * main.c (captured_main): Pass 1 for top_level
5995 parameter of interp_set.
683f2885 5996 * cli/cli-interp.c (cli_interpreter_init): New
680b56ce
AS
5997 parameter top_level.
5998 * tui/tui-interp.c (tui_init): New parameter top_level.
683f2885 5999
680b56ce
AS
6000 * mi/mi-interp.c (mi_new_thread): New.
6001 (mi_interpreter_init): If top level, register
6002 observer for new threads.
683f2885 6003
680b56ce 6004 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
683f2885 6005
ff9b3928
PA
60062008-03-14 Pedro Alves <[email protected]>
6007
6008 * top.c (execute_command): Disable break and stop
6009 commands in async mode.
6010
b18392ef
PA
60112008-03-14 Pedro Alves <[email protected]>
6012
6013 revert:
6014 2008-03-14 Pedro Alves <[email protected]>
6015 * inf-loop.c (inferior_event_handler): Don't include remote.h.
6016 Call target_stop in the INF_QUIT_REQ case.
6017 * Makefile.in (inf-loop.o): Update.
6018
0aca9f07
PA
60192008-03-14 Pedro Alves <[email protected]>
6020
6021 * inf-loop.c (inferior_event_handler): Don't include remote.h.
6022 Call target_stop in the INF_QUIT_REQ case.
6023 * Makefile.in (inf-loop.o): Update.
6024
0b4e556c
PA
60252008-03-14 Pedro Alves <[email protected]>
6026
6027 * top.c (execute_command): Enable break, info and interrupt
6028 commands in async mode.
6029
8defab1a
DJ
60302008-03-13 Vladimir Prus <[email protected]>
6031 Daniel Jacobowitz <[email protected]>
6032
6033 * breakpoint.h (breakpoint_restore_shadows): New
6034 declaration.
6035 * breakpoint.c (breakpoint_restore_shadows): New.
6036 (read_memory_nobpt): Delete.
6037 * gdbcore.h (read_memory_nobpt): Delete declaration.
6038 * target.c (memory_xfer_partial): Call
6039 breakpoint_restore_shadows.
6040 (restore_show_memory_breakpoints)
6041 (make_show_memory_beakpoints_cleanup): New.
6042 (show_memory_breakpoints): New.
6043 * target.h (make_show_memory_beakpoints_cleanup): Declare.
6044 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
6045 Make sure we see memory breakpoints when checking if
6046 breakpoint is still there.
6047 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
6048 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
6049 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
6050 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
6051
fd532e2e
PA
60522008-03-12 Pedro Alves <[email protected]>
6053
6054 * thread.c (add_thread): Use printf_unfiltered to print.
6055
f749779f 60562008-03-12 Joel Brobecker <[email protected]>
965b60ee
JB
6057
6058 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
6059 that is true only on x86-solaris and x86_64-solaris.
6060 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
6061 with proc_get_LDT_entry.
6062
60632008-03-12 Thiago Jung Bauermann <[email protected]>
83116857
TJB
6064
6065 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
6066 * config.in, configure: Regenerate.
6067 * fork-child.c (fork_inferior): Call create_tty_session.
6068 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
6069 (create_tty_session): New function.
6070 * terminal.h: Declare create_tty_session.
6071
4fbb74a6
AM
60722008-03-12 Alan Modra <[email protected]>
6073
6074 PR 5900
6075 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
6076 * mipsread.c: Include elf/internal.h.
6077 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
6078 to internal range.
6079
20a6ec49
MD
60802008-03-11 Markus Deuling <[email protected]>
6081
6082 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
6083 to get at the current architecture and at the target specific vector.
6084 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
6085 remove define of I387_ST0_REGNUM.
6086
6087 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
6088
6089 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
6090 get at the current architecture
6091 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
6092 parameter.
6093
6094 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
6095 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
6096
6097 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
6098 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
6099 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
6100
6101 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
6102 at the target specific vector.
6103
6104 (i386_get_longjmp_target): Use get_frame_arch to get at the current
6105 architecture. Use gdbarch_tdep to get at the target specific vector.
6106
6107 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
6108 update caller. Use gdbarch_tdep to get at the target specific vector.
6109
6110 (i386_register_to_value: Use get_frame_arch to get at the current
6111 architecture.
6112
6113 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
6114 parameter.
6115
6116 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
6117 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
6118 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
6119 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
6120
6121 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
6122 undef's.
6123
6124 (i387_convert_register_p, i387_register_to_value,
6125 i387_value_to_register): Update call for i386_fp_regnum_p.
6126
6127 * i387-tdep.h: Remove comment.
6128 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
6129 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
6130 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
6131 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
6132 I387_MXCSR_REGNUM): Add target specific vector as parameter.
6133
ccd213ac
DJ
61342008-03-10 Daniel Jacobowitz <[email protected]>
6135
6136 * Makefile.in (fork-child.o): Update.
6137 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
6138 argument. Gather all gdbserver features together.
6139 * fork-child.c (exec_wrapper): New variable.
6140 (fork_inferior): Use it.
6141 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
6142 (unset_exec_wrapper_command, _initialize_fork_child): New.
6143
61442008-03-10 Hidetaka Takano <[email protected]>
80618b99
MS
6145
6146 * source.c (directory_command): Modify the determination of
6147 condition of terminal "from_tty".
6148
22566fbd
DJ
61492008-03-10 Matt Rice <[email protected]>
6150
6151 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
6152
9971ac47
UW
61532008-03-10 Hidetaka Takano <[email protected]>
6154
6155 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
6156 of the data passing to strtoulst function.
6157 (info_spu_signal_command): Likewise.
6158
835670cf
VP
61592008-03-08 Vladimir Prus <[email protected]>
6160
6161 * mi/mi-interp.c (mi_command_loop): Remove
6162 commented-out code.
680b56ce 6163
be86555c
JB
61642008-03-07 Joel Brobecker <[email protected]>
6165
6166 * remote.c (extended_remote_attach_1): Make local variable pid an int
6167 instead of a pid_t.
6168
4d7b2d5b
JB
61692008-03-07 Joel Brobecker <[email protected]>
6170
6171 * solib-svr4.c (svr4_same_1): New function, originally extracted
6172 from svr4_same and expanded to handle the sparc64 case.
6173 (svr4_same): Move up and reimplement using svr4_same_1.
6174 (enable_break): Use svr4_same_1 to do shared library name comparisons.
6175
61fed90e
RR
61762008-03-07 Ramana Radhakrishnan <[email protected]>
6177
6178 * MAINTAINERS: Move self to Paper trail.
6179
b803fb0f
DJ
61802008-03-05 Daniel Jacobowitz <[email protected]>
6181
6182 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
6183 * event-loop.c (call_async_signal_handler): New.
6184 * event-loop.h (call_async_signal_handler)
6185 (gdb_call_async_signal_handler): Declare.
6186 (mark_async_signal_handler): Add comments.
6187 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
6188 * mingw-hdep.c (sigint_event, sigint_handler): New.
6189 (gdb_select): Use them. Wait for the readline signal handler
6190 to finish.
6191 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
6192 * posix-hdep.c (gdb_call_async_signal_handler): New function.
6193 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
6194 New.
6195 (remote_fileio_ctrl_c_signal_handler): Use
6196 gdb_call_async_signal_handler.
6197 (initialize_remote_fileio): Initialize sigint_fileio_token.
6198 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
6199 not initialize tokens here.
6200 (handle_remote_sigint_twice): Likewise. Reinstall
6201 handle_remote_sigint.
6202 (async_remote_interrupt_twice): Just call interrupt_query.
6203 (cleanup_sigint_signal_handler): Do not delete tokens.
6204 (remote_interrupt, remote_interrupt_twice): Use
6205 gdb_call_async_signal_handler.
6206 (interrupt_query): Reinstall the default signal handler.
6207 (_initialize_remote): Initialize tokens here.
6208
8f4d54ed
JB
62092008-03-04 Joel Brobecker <[email protected]>
6210
6211 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
6212 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
6213 Change the type of the lr register to code_ptr.
6214 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
6215 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
6216 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
6217 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
6218 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
6219 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
6220 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
6221
95ece428
JW
62222008-03-03 James E. Wilson <[email protected]>
6223
6224 * MAINTAINERS: Update my email address.
6225
686a5eed
KS
62262008-03-03 Keith Seitz <[email protected]>
6227
6228 From Dave Murphy <[email protected]>:
6229 * configure.ac: Set tcl configdir to win under mingw.
6230 * configure: Regenerate.
6231
fa4727a6
DJ
62322008-03-03 Daniel Jacobowitz <[email protected]>
6233
6234 * breakpoint.c (fetch_watchpoint_value): New function.
6235 (update_watchpoint): Set and clear val_valid. Use
6236 fetch_watchpoint_value. Handle unreadable values on the
6237 value chain. Correct check for user-requested array watchpoints.
6238 (breakpoint_init_inferior): Clear val_valid.
6239 (watchpoint_value_print): New function.
6240 (print_it_typical): Use it. Do not free or clear old_val. Print
6241 watchpoints even if old_val == NULL.
6242 (watchpoint_check): Use fetch_watchpoint_value. Check for values
6243 becoming readable or unreadable.
6244 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
6245 (do_enable_watchpoint): Likewise.
6246 * breakpoint.h (struct breakpoint): Update comment for val. Add
6247 val_valid.
6248 * NEWS: Mention watchpoints on inaccessible memory.
6249
c03374d5
DJ
62502007-02-29 Daniel Jacobowitz <[email protected]>
6251
6252 * Makefile.in (i386-nat.o): Update.
6253 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
6254 i386_use_watchpoints.
6255 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
6256 i386_use_watchpoints.
6257 * i386-nat.c (i386_stopped_data_address): Take two arguments.
6258 (i386_stopped_by_watchpoint): Update call.
6259 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
6260 * config/i386/nm-i386.h: Conditionalize definitions on
6261 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
6262 (i386_use_watchpoints): Declare.
6263 (i386_stopped_data_address): Update.
6264 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
6265 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
6266
c24d7425 62672008-02-29 Joel Brobecker <[email protected]>
6268
6269 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
6270 * version.in: Bump version to 6.8.50.20080229-cvs.
6271
a7dfd010
MD
62722008-02-28 Markus Deuling <[email protected]>
6273
6274 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
6275 properly.
6276
258c00cc
TT
62772008-02-28 Tom Tromey <[email protected]>
6278
6279 * infcmd.c (notice_args_read): Print result of get_inferior_args.
6280
8edfe269
DJ
62812008-02-28 Daniel Jacobowitz <[email protected]>
6282
6283 * infcmd.c (kill_if_already_running): Make static. Use
6284 target_require_runnable.
6285 * target.c (target_require_runnable): New.
6286 * target.h (target_require_runnable): Declare.
6287
0d6ba1b1
DJ
62882008-02-28 Daniel Jacobowitz <[email protected]>
6289
6290 * frame.c (reinit_frame_cache): Only annotate if frames were
6291 previously valid.
6292
6fe305f7
UW
62932008-02-28 Ulrich Weigand <[email protected]>
6294
6295 * regformats/reg-ppc.dat: Rename "ps" to "msr".
6296 * regformats/reg-ppc64.dat: Likewise.
6297
9b4b61c8
UW
62982008-02-28 Ulrich Weigand <[email protected]>
6299
6300 * features/Makefile (%.dat): Emit xmltarget statement.
6301
6302 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
6303 Generate code to set gdbserver_xmltarget in init_registers_${name}.
6304
6305 * regformats/arm-with-iwmmxt.dat: Regenerate.
6306 * regformats/mips64-linux.dat: Regenerate.
6307 * regformats/mips-linux.dat: Regenerate.
6308 * regformats/rs6000/powerpc-32.dat: Regenerate.
6309 * regformats/rs6000/powerpc-64.dat: Regenerate.
6310 * regformats/rs6000/powerpc-e500.dat: Regenerate.
6311
6312 * regformats/reg-arm.dat: Add xmlarch statement.
6313 * regformats/reg-i386.dat: Likewise.
6314 * regformats/reg-i386-linux.dat: Likewise.
6315 * regformats/reg-x86-64-linux.dat: Likewise.
6316 * regformats/reg-spu.dat: Likewise.
6317
20b4711e
DJ
63182008-02-27 Daniel Jacobowitz <[email protected]>
6319
6320 * remote.c (remote_wait, remote_async_wait): Stop if we receive
6321 an error.
6322
1843f87b
DJ
63232008-02-27 Daniel Jacobowitz <[email protected]>
6324
6325 * utils.c (debug_timestamp): New.
6326 (vfprintf_unfiltered): Print timestamps if requested.
6327 (show_debug_timestamp): New.
6328 (initialize_utils): Register "set debug timestamp".
6329 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
6330
6a048695
JB
63312008-02-27 Joel Brobecker <[email protected]>
6332
6333 * breakpoint.c (skip_prologue_sal): New function.
6334 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
6335 computed from a line number.
6336
0b998f49
JB
63372008-02-27 Joel Brobecker <[email protected]>
6338
6339 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
6340 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
6341 Set PC register type to "code_ptr".
6342 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
6343 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
6344 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
6345 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
6346 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
6347 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
6348 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
6349 Regenerate.
6350
d05b4ac3
UW
63512008-02-27 Ulrich Weigand <[email protected]>
6352
6353 * regformats/regdat.sh: Rename init_registers function in
6354 generated file to init_registers_${name}.
6355
6356 * regformats/reg-crisv32.dat: Set "name" to crisv32.
6357 * regformats/reg-ppc64.dat: Set "name" to ppc64.
6358 * regformats/reg-s390x.dat: Set "name" to s390x.
6359
a5d9d57d
DJ
63602008-02-26 Greg Law <[email protected]>
6361
6362 * regcache.c (registers_changed): Call reinit_frame_cache.
6363
e25c958c
DJ
63642008-02-26 Daniel Jacobowitz <[email protected]>
6365
6366 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
6367 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
6368 and svr4_fetch_objfile_link_map.
6369 * Makefile.in (sh-linux-tdep.o): Update.
6370
5daa78cc
TJB
63712008-02-26 Thiago Jung Bauermann <[email protected]>
6372
6373 * amd64-tdep.c (amd64_classify): Add support for decimal float
6374 types.
6375 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
6376 use the struct return convention.
6377
54e52265
VP
63782008-02-26 Nick Roberts <[email protected]>
6379
6380 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
6381 to old format. Discard breakpoint address if shared library is
6382 unloaded.
6383 (breakpoint_1): Adjust formatting of table header accordingly.
6384
d8f2712d
VP
63852008-02-25 Vladimir Prus <[email protected]>
6386
6387 * remote.c (remote_get_threadlist): If the response
6388 is empty, don't try to parse it.
6389
05ce04a4
VP
63902008-02-23 Vladimir Prus <[email protected]>
6391
6392 Unbreak 'target async'.
680b56ce
AS
6393 * serial.c (serial_async): Set the
6394 handler function before enabling async
6395 mode.
05ce04a4 6396
b36ec657
DJ
63972008-02-22 Daniel Jacobowitz <[email protected]>
6398
6399 * solib-svr4.c (enable_break): Convert r_brk to a code address.
6400
df7df359
PA
64012008-02-21 Pedro Alves <[email protected]>
6402
6403 * remote.c (extended_remote_attach_1): Set attach_flag.
6404 (extended_remote_create_inferior_1): Clear attach_flag.
6405
7cd25cfc
DJ
64062008-02-20 Daniel Jacobowitz <[email protected]>
6407
6408 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
6409 r_brk_offset.
6410 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
6411 * solib-svr4.c (solib_svr4_r_brk): New.
6412 (open_symbol_file_object, svr4_current_sos): Always check the
6413 debug base.
6414 (svr4_fetch_objfile_link_map): Do not set debug_base.
6415 (enable_break): Use r_brk if it is set.
6416 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
6417 (svr4_lp64_fetch_link_map_offsets): Likewise.
6418 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
6419
07ea644b
MD
64202008-02-20 Markus Deuling <[email protected]>
6421 Mark Kettenis <[email protected]>
6422
6423 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
6424 trad_frame_saved_reg.
680b56ce 6425 (trad-frame.h): New include.
07ea644b
MD
6426
6427 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
680b56ce 6428 instead of frame_obstack_zalloc.
07ea644b
MD
6429 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
6430
680b56ce 6431 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
07ea644b 6432
40887e1a
MD
64332008-02-20 Markus Deuling <[email protected]>
6434
6435 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
6436 from disassemble_info instead of gdbarch_byte_order.
6437
6438 * mips-tdep.c (gdb_print_insn_mips): Likewise.
6439 * arm-tdep.c (gdb_print_insn_arm): Likewise.
6440
ae4b2284
MD
64412008-02-20 Markus Deuling <[email protected]>
6442
6443 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
6444 gdbarch as parameter.
6445
6446 * gdbarch.{c,h}: Regenerate.
6447
6448 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
6449 parameter.
6450 * mem-break.c (default_memory_insert_breakpoint)
6451 (default_memory_remove_breakpoint): Likewise.
6452 * target.h (default_memory_remove_breakpoint)
6453 (default_memory_insert_breakpoint): Likewise.
6454
6455 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
6456 parameter. Replace current_gdbarch by gdbarch.
6457 * m32r-tdep.c (m32r_memory_insert_breakpoint)
6458 (m32r_memory_remove_breakpoint): Likewise.
6459
d9bf65d5
DJ
64602008-02-19 Daniel Jacobowitz <[email protected]>
6461
6462 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
6463
b93b6ca7
JB
64642008-02-19 Joel Brobecker <[email protected]>
6465
6466 * NEWS: Add entry describing Add support improvements.
6467
4ed226fe
MD
64682008-02-18 Markus Deuling <[email protected]>
6469
6470 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
6471 M68K_FP0_REGNUM.
6472
caaa79ad
MD
64732008-02-18 Markus Deuling <[email protected]>
6474
6475 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
6476 register_offset_hack anymore.
6477
6478 * regcache.{c,h} (register_offset_hack): Remove.
6479
e38c262f
MD
64802008-02-18 Markus Deuling <[email protected]>
6481
6482 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
6483
6484 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
6485 current_gdbarch by gdbarch.
6486 (hppa64_hpux_find_global_pointer): Likewise.
6487 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
6488 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
6489 find_global_pointer.
6490
6491 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
6492 parameter.
6493 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
6494
6495 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
6496 of gdbarch_num_regs.
6497
6498 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
680b56ce 6499 replace current_gdbarch by gdbarch.
e38c262f
MD
6500 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
6501
206988c4
MD
65022008-02-18 Markus Deuling <[email protected]>
6503
6504 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
6505 and replace current_gdbarch by gdbarch.
6506
6507 (store_register): Update call for exec_one_dummy_insn.
6508 (fetch_register, store_register): Update call of regmap.
6509
6510 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
6511 parameter and replace current_gdbarch by gdbarch.
680b56ce 6512
206988c4
MD
6513 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
6514 the current architecture. Update call for getregs_supplies and
6515 getfpregs_supplies.
6516 (ppcnbsd_fetch_inferior_registers): Likewise.
6517
680b56ce 6518 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
206988c4
MD
6519 replace current_gdbarch by gdbarch.
6520 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
6521 get_regcache_arch to get at the current architecture. Update call for
6522 getfpregs_supplies.
6523
f642be6b
MD
65242008-02-18 Markus Deuling <[email protected]>
6525
6526 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
680b56ce 6527 variables.
f642be6b 6528
b1f2bf01
MD
65292008-02-15 Markus Deuling <[email protected]>
6530
6531 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
6532
ee163bf5
VP
65332008-02-14 Vladimir Prus <[email protected]>
6534
6535 * NEWS: Mention pending breakpints in MI.
680b56ce 6536
f6fbcbf9
MD
65372008-02-14 Markus Deuling <[email protected]>
6538
6539 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
6540
36af4ef6
MD
65412008-02-13 Markus Deuling <[email protected]>
6542
6543 Add script to build and test GDB using enable-targets=all.
6544
6545 * gdb_buildall.sh: New file.
6546
94a0e877
MG
65472008-02-11 Maxim Grigoriev <[email protected]>
6548
6549 * NEWS (New native configurations): Xtensa GNU/Linux.
6550 (New targets): Xtensa GNU/Linux.
6551 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
6552 xtensa-linux-tdep.o
6553 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
6554 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
6555 * configure.tgt (xtensa*-*-linux*): New entry.
6556 * xtensa-config.c (xtensa_tdep): New variable.
6557 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
6558 (rmap): Change format based on new macro XTREG.
6559 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
6560 * xtensa-linux-nat.c: New.
6561 * xtensa-linux-tdep.c: New.
6562 * xtensa-xtregs.c: New.
6563 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
6564 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
6565 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
6566 (xtensa_register_t): New field coprocessor.
6567 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
6568 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
6569 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
6570 Update to handle privileged registers.
6571 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
6572 (xtensa_push_dummy_call): Set windowstart register correctly.
6573 (call0_analyze_prologue): Initialize xtensa_default_isa.
6574 (xtensa_derive_tdep): New.
6575 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
6576 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
6577 Call xtensa_derive_tdep().
6578 * config/xtensa/linux.mh: New.
6579 * regformats/reg-xtensa.dat: New.
6580
b7ee1b0a 65812008-02-09 Aleksandar Ristovski <[email protected]> (tiny change)
f90c07ac
EZ
6582
6583 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
6584 (filenames.h): New include.
6585 * Makefile.in (corelow.o): Add dependency for filenames.h.
6586
8da2a1df
DJ
65872008-02-08 Doug Evans <[email protected]>
6588
6589 * source.c (find_and_open_source): Always rewrite absolute filenames.
6590
776592bf
DE
65912008-02-07 Doug Evans <[email protected]>
6592
6593 * breakpoint.c: #include "hashtab.h".
6594 (ambiguous_names_p): New fn.
6595 (update_breakpoint_locations): When restoring bp enable status, don't
6596 compare function names if any functions have same name.
6597 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
6598
d6565258
JB
65992008-02-07 Joel Brobecker <[email protected]>
6600
6601 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
6602 instead of just a VEC*. Update use of SV.
6603 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
6604
6d53d0af
JB
66052007-02-07 Joel Brobecker <[email protected]>
6606
6607 * NEWS: Put all new commands since gdb-6.7 together.
6608
2ba95b9b
JB
66092007-02-07 Joel Brobecker <[email protected]>
6610
6611 * ada-lang.c: #include "vec.h".
6612 (struct string_vector, new_string_vector, string_vector_append):
6613 Delete.
6614 (char_ptr): New typedef.
6615 (DEF_VEC_P (char_ptr)): New VEC type.
6616 (symbol_completion_add): Update profile to take the new VEC type
6617 instead of the old string_vector structure. Update code accordingly.
6618 (ada_make_symbol_completion_list): Use the new VEC type instead of
6619 the old string_vector structure, and update the code accordingly.
6620 * Makefile.in (ada-lang.o): Add dependency on vec.h.
6621
4ae0885a
PM
66222008-02-06 Pierre Muller <[email protected]>
6623
6624 * p-exp.y: Set current_type in missing places.
6625 (leftdiv_is_integer): New static variable.
6626 Typecast right operand of BINOP_DIV to long_double if both operands
6627 are integers.
6628
06b1d59c
MR
66292008-02-06 Maciej W. Rozycki <[email protected]>
6630
6631 * remote-mips.c (set_breakpoint): Rename to...
6632 (mips_set_breakpoint): ... this.
6633 (clear_breakpoint): Rename to...
6634 (mips_clear_breakpoint): ... this.
6635 (common_breakpoint): Rename to...
6636 (mips_common_breakpoint): ... this.
6637 (check_lsi_error): Rename to...
6638 (mips_check_lsi_error): ... this.
6639
41d27058
JB
66402007-02-05 Joel Brobecker <[email protected]>
6641
6642 * language.h (struct language_defn): Add new field
6643 la_make_symbol_completion_list.
6644 * symtab.c (default_make_symbol_completion_list): Renames
6645 make_symbol_completion_list.
6646 (make_symbol_completion_list): New function.
6647 * symtab.h (default_make_symbol_completion_list): Add declaration.
6648 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
6649 (auto_language, local_language): Likewise.
6650 * objc-lang.c (objc_language_defn): Likewise.
6651 * scm-lang.c (scm_language_defn): Likewise.
6652 * m2-lang.c (m2_language_defn): Likewise.
6653 * f-lang.c (f_language_defn): Likewise.
6654 * jv-lang.c (java_language_defn): Likewise.
6655 * p-lang.c (pascal_language_defn): Likewise.
6656 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
6657 (minimal_language_defn): Likewise.
6658 * ada-lang.c (struct string_vector): New structure.
6659 (new_string_vector, string_vector_append, ada_unqualified_name)
6660 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
6661 (ada_make_symbol_completion_list): New functions.
6662 (ada_language_defn): Set la_make_symbol_completion_list.
6663 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
6664 this function is static.
6665
ee3a2f01
KB
66662008-02-05 Kevin Buettner <[email protected]>
6667
6668 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
6669 to account for call site optimizations.
6670
d844e34b
JB
66712008-02-05 Andrzej Zaborowski <[email protected]>
6672
6673 * tracepoint.c (read_actions): Handle end-of-text indicator
6674 in action list properly. (Committed by Jim Blandy)
6675
02e4669d
JB
66762008-02-05 Jim Blandy <[email protected]>
6677
6678 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
6679 pseudoregister, not an internal error.
85ecb32b 6680 Reported by: Andrzej Zaborowski
02e4669d 6681
c39c8256
VP
66822008-02-04 Vladimir Prus <[email protected]>
6683
6684 * varobj.c (c_value_of_variable): Use xstrdup.
6685
ae7d22a6
VP
66862008-02-04 Vladimir Prus <[email protected]>
6687
6688 Update stored rendition of varobj value when format changes.
6689 * varobj.c (varobj_set_display_format): Recomputed
680b56ce
AS
6690 print_value.
6691 (c_value_of_variable): Return print_value.
ae7d22a6 6692
81fe8080
DE
66932008-02-03 Doug Evans <[email protected]>
6694
301f0ecf
DE
6695 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
6696 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
6697 * valops.c (value_one): New function.
6698 * value.h (value_one): Declare.
6699
6700 Fix argument promotion for binary arithmetic ops for C.
6701 * valarith.c (unop_result_type): New fn.
6702 (binop_result_type): New fn.
6703 (value_binop): Move result type computation to binop_result_type.
6704 (value_pos, value_neg, value_complement): Move result type
6705 computation to unop_result_type.
6706
81fe8080
DE
6707 PR 2384
6708 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
6709 Return basetype, fieldno if found. All callers updated.
6710 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
6711 objfile.
6712 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
6713 * symfile.h (fill_in_vptr_fieldno): Delete.
6714
41808ebe
DE
67152008-02-02 Doug Evans <[email protected]>
6716
f8597ac3
DE
6717 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
6718
41808ebe
DE
6719 * typeprint.c (*): Whitespace cleanup.
6720
f964a756
MK
67212008-02-02 Mark Kettenis <[email protected]>
6722 Luis Machado <[email protected]>
680b56ce 6723 Thiago Jung Bauermann <[email protected]>
f964a756
MK
6724
6725 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
6726 don't fit into registerson the stack the way GCC does.
6727
b06ead72
JB
67282008-02-01 Joel Brobecker <[email protected]>
6729
6730 * symtab.c (symbol_set_names): Do not add an entry in the demangling
6731 hash table for Ada symbols. Just store the linkage name as is,
6732 and leave the demangled_name as NULL.
6733
2cfa0c8d
JB
67342007-02-01 Joel Brobecker <[email protected]>
6735
6736 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
6737 in the global scope.
6738 (new_symbol): Likewise.
6739
98deb0da 67402008-02-01 Vladimir Prus <[email protected]>
680b56ce
AS
6741
6742 * breakpoint.c (break_command_1): Return void.
6743 (break_command_really): Return void. Rethrow
6744 exceptions instead of returning.
6745 (gdb_breakpoint): Remove the error_message parameter.
6746 Return void. Rename to set_breakpoint.
6747 * gdb.h (gdb_breakpoint): Rename and move to...
98deb0da 6748 * breakpoint.h (set_breakpoint): ...here.
680b56ce
AS
6749 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
6750 event hooks even if exception is thrown. Adjust to
6751 gdb_breakpoint interface changes.
6752
98deb0da 6753
ce0451ad
TJB
67542008-02-01 Thiago Jung Bauermann <[email protected]>
6755
6756 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
6757 float in both first and second word in the doubleword, to support
6758 old and new ABIs.
6759
723a2275
VP
67602008-02-01 Vladimir Prus <[email protected]>
6761
6762 Properly rethrow exception. This fixes errors
6763 about non-existent functions for -break-insert.
680b56ce
AS
6764 * breakpoint.c (break_command_really): Use throw_exception
6765 for rethrowing. If rethrowing, don't print the exception.
723a2275 6766
d64a946d
TJB
67672008-01-31 Thiago Jung Bauermann <[email protected]>
6768
6769 * NEWS: Mention Decimal Floating Point support.
6770
02b156f5
JB
67712008-01-31 Joel Brobecker <[email protected]>
6772
6773 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
6774 value type to builtin_type_void_func_ptr.
6775
a16b8bcd
UW
67762008-01-31 Andreas Krebbel <[email protected]>
6777
6778 * s390-tdep.c (is_float_singleton, is_float_like,
6779 alignment_of, s390_return_value): Make checks for
6780 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
6781
f949c649
TJB
67822008-01-31 Luis Machado <[email protected]>
6783 Thiago Jung Bauermann <[email protected]>
6784
6785 * infcmd.c (default_print_registers_info): Also print hex
6786 raw contents for TYPE_CODE_DECFLOAT registers.
6787 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
6788 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
6789 (rs6000_register_name): Add support for DFP pseudo-registers.
6790 (rs6000_pseudo_register_type): Likewise.
6791 rs6000_pseudo_register_reggroup_p): Likewise.
6792 (ppc_pseudo_register_read): New function.
6793 (ppc_pseudo_register_write): Likewise.
6794 (rs6000_pseudo_register_read): Likewise.
6795 (rs6000_pseudo_register_write): Likewise.
6796 (e500_pseudo_register_read): Move checks to
6797 rs6000_pseudo_register_read.
6798 (e500_pseudo_register_write): Move checks to
6799 rs6000_pseudo_register_write.
6800 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
6801 rs6000_pseudo_register_read and rs6000_pseudo_register_write
6802 in gdbarch if SPE or DFP is available. Adjust gdbarch's
6803 num_pseudo_regs to account for DFP pseudo regs.
6804
5a9e69ba
TJB
68052008-01-31 Thiago Jung Bauermann <[email protected]>
6806
6807 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
6808 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
6809 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
6810 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
6811 e500_pseudo_register_read, e500_pseudo_register_write): Use
6812 IS_SPE_PSEUDOREG macro.
6813 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
6814 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
6815 Remove initialization of tdep->ppc_ev31_regnum.
6816
4e885b20
JB
68172008-01-08 Paul Hilfinger <[email protected]>
6818
6819 * printcmd.c (print_formatted): Handle references as for unformatted
6820 prints.
6821
80f064a2
JB
68222008-01-30 Joel Brobecker <[email protected]>
6823
6824 * eval.c (evaluate_subexp_standard): Add handling of user
6825 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
6826
9b3442ee
PM
68272008-01-30 Pierre Muller <[email protected]>
6828
6829 * eval.c (evaluate_subexp_standard): Support
6830 BINOP_INTDIV opcode.
6831
d118ef87
PH
68322008-01-30 Paul N. Hilfinger <[email protected]>
6833
6834 * valarith.c (value_binop): Add floating-point BINOP_MIN and
6835 BINOP_MAX cases.
6836 For BINOP_EXP, use length and signedness of left operand only for
6837 result, as for shifts.
6838 For integral operands to BINOP_EXP, use new integer_pow and
6839 uinteger_pow functions so as to get full range of results.
6840 (integer_pow): New function.
6841 (uinteger_pow): New function.
6842
d56d46f5
VP
68432008-01-30 Vladimir Prus <[email protected]>
6844
6845 Use vector for varobj_list_children interface.
680b56ce
AS
6846 * gdb/varobj.c (varobj_list_children): Return vector
6847 of varobjs.
6848 * gdb/varobj.h (varobj_list_children): Adjust
6849 prototype.
6850 (varobj_p): Declare. Declare vector thereof.
6851 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
6852 for varobj_list_children change.
d56d46f5
VP
6853 * Makefile.in (varobj_h): Update dependencies.
6854
1300a2f4
TJB
68552008-01-30 Thiago Jung Bauermann <[email protected]>
6856
6857 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
6858 TYPE_CODE_DECFLOAT arguments.
6859 (ppc64_sysv_abi_push_dummy_call) Likewise.
6860 (get_decimal_float_return_value): New function.
6861 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
6862 values by calling get_decimal_float_return_value.
6863 (ppc64_sysv_abi_return_value): Likewise.
6864
95ef687d
NR
68652008-01-30 Nick Roberts <[email protected]>
6866
6867 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
6868 for preprocessor macro information. Formatting changes.
6869
2d717e4f
DJ
68702008-01-29 Daniel Jacobowitz <[email protected]>
6871
6872 * remote.c (struct remote_state): Add cached_wait_status.
6873 (remote_exec_file): New variable.
6874 (PACKET_vAttach, PACKET_vRun): New constants.
6875 (extended_remote_restart): Do not query for status.
6876 (struct start_remote_args): New.
6877 (remote_start_remote): Take it as a second argument. Check
6878 whether the target is running. Issue an error for non-running
6879 non-extended targets. Cache the wait status. Set inferior_ptid
6880 here.
6881 (remote_open_1): Prompt to disconnect non-running targets. Make
6882 sure the target is marked running. Do not set inferior_ptid here.
6883 Update call to remote_start_remote. Do not call remote_check_symbols
6884 if the target is not running.
6885 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
6886 argument. Handle a non-running target.
6887 (remote_detach): Use it.
6888 (extended_remote_detach): New.
6889 (remote_disconnect): Fix typo. Use remoute_mourn_1.
6890 (extended_remote_attach_1, extended_remote_attach)
6891 (extended_async_remote_attach): New.
6892 (remote_vcont_resume): Remove unused variable.
6893 (remote_wait, remote_async_wait): Use any cached wait status.
6894 (putpkt_binary, getpkt): Clear any cached wait status.
6895 (extended_remoute_mourn_1): New.
6896 (extended_remote_mourn): Use it.
6897 (extended_async_remote_mourn, extended_remote_run): New.
6898 (extended_remote_create_inferior_1): New.
6899 (extended_remote_create_inferior): Use it.
6900 (extended_remote_async_create_inferior): Likewise.
6901 (remote_xfer_partial): Skip for non-executing targets.
6902 (init_extended_remote_ops): Set to_detach and to_attach.
6903 (init_extended_async_remote_ops): Likewise. Use
6904 extended_async_remote_mourn.
6905 (_initialize_remote): Register vAttach, vRun, and
6906 set remote exec-file.
6907 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
6908
e85a822c
DJ
69092008-01-29 Daniel Jacobowitz <[email protected]>
6910
6911 * Makefile.in (symfile.o): Update.
6912 * NEWS: Mention exec tracing support.
6913 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
6914 exec events.
6915 * infcmd.c (kill_if_already_running, detach_command)
6916 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
6917 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
6918 (follow_exec): Do not check may_follow_exec. Do not mourn and push
6919 targets. Apply the sysroot path to the loaded executable. Use
6920 no_shared_libraries.
6921 * linux-nat.c (linux_child_follow_fork): Print fork following
6922 messages if verbose.
6923 (kill_wait_callback): Kill again before waiting a second time.
6924 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
6925 no_shared_libraries.
6926
9db13498
JB
69272008-01-29 Joel Brobecker <[email protected]>
6928
6929 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
6930
b4d5ed91
JB
69312008-01-29 Joel Brobecker <[email protected]>
6932
6933 * nto-tdep.h: Remove #include "defs.h".
6934 * nto-tdep.c: Add #include "defs.h".
6935 * Makefile.in (nto_tdep_h): Update dependencies.
6936 (nto-tdep.o): Likewise.
6937
107313f7 69382008-01-29 Joel Brobecker <[email protected]>
ae123ec6
JB
6939
6940 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
6941 and use it.
6942 (proceed, start_remote): Update call to wait_for_inferior.
6943 * inferior.h (wait_for_inferior): Update declaration.
6944 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
6945 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
6946 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
6947 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
6948
3f4178d6
DJ
69492008-01-29 Aleksandar Ristovski <[email protected]>
6950
680b56ce 6951 * varobj (adjust_value_for_child_access): Added checking for
3f4178d6
DJ
6952 returned value from gdb_value_ind.
6953 (c_describe_child): Likewise.
6954 (cplus_describe_child): Fixed a typo.
6955
5eeba8d4
JB
69562008-01-29 Jim Blandy <[email protected]>
6957
6958 * MAINTAINERS: Update my info.
6959
a5606eee
VP
69602008-01-29 Vladimir Prus <[email protected]>
6961
6962 Use multiple locations for hardware watchpoints.
6963 This eliminates the need to traverse value chain, doing
6964 various checks, in three different places.
6965
680b56ce
AS
6966 * breakpoint.h (struct bp_location): New fields
6967 lengths and watchpoint_type.
6968 (struct breakpoint): Remove the val_chain field.
6969 * breakpoint.c (is_hardware_watchpoint): New.
6970 (free_valchain): Remove.
6971 (update_watchpoint): New.
6972 (insert_bp_location): For hardware watchpoint, just
6973 directly insert it.
6974 (insert_breakpoints): Call update_watchpoint_locations
6975 on all watchpoints. If we have failed to insert
6976 any location of a hardware watchpoint, remove all inserted
6977 locations.
6978 (remove_breakpoint): For hardware watchpoints, directly
6979 remove location.
6980 (watchpoints_triggered): Iterate over locations.
6981 (bpstat_stop_status): Use only first location of
6982 a resource watchpoint.
6983 (delete_breakpoint): Don't call free_valchain.
6984 (print_one_breakpoint): Don't print all
6985 locations for watchpoints.
6986 (breakpoint_re_set_one): Use update_watchpoint for
6987 watchpoints.
a5606eee 6988
0b3de036
VP
69892008-01-29 Vladimir Prus <[email protected]>
6990
6991 Don't reset watchpoint block on solib load.
6992
680b56ce
AS
6993 * breakpoint.c (insert_bp_location): For watchpoints,
6994 recompute condition.
6995 (breakpoint_re_set_one): Instead of recomputing value
6996 and condition for watchpoints, just reset value and
6997 let insert_breakpoints/insert_bp_location recompute it.
6998 Don't do anything about disabled watchpoint.
0b3de036 6999
c3940723
PM
70002008-01-29 Pierre Muller <[email protected]>
7001
7002 * valarith.c (value_binop): Handle unsigned integer
7003 division by zero.
7004
83845630
KB
70052008-01-28 Kevin Buettner <[email protected]>
7006
7007 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
7008 instruction pattern that appears frequently in position
7009 independent code. Fix bug in code which looks for "fmov" and
7010 backtracks if no "fmov" is found.
7011
9ce5d3bb
DE
70122008-01-28 Doug Evans <[email protected]>
7013
7014 * dbxread.c (read_dbx_symtab): Fix indentation.
131fe1bb
DE
7015 Reformat comments to 80 columns.
7016 Move local var def closer to only use.
9ce5d3bb 7017
c78d192c
DJ
70182008-01-28 Daniel Jacobowitz <[email protected]>
7019
7020 * fork-child.c (SHELL_FILE): Remove #ifndef.
7021 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
7022
e11481da
PM
70232008-01-25 Pierre Muller <[email protected]>
7024
7025 * i386-tdep.c (i386_skip_noop): New function.
7026 (i386_analyze_prologue): Call i386_skip_noop function.
7027
244e85c8
MS
70282008-01-24 Michael Snyder <[email protected]>
7029
7030 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
7031 * win32-nat.c (win32_xfer_partial): Ditto.
7032 * target.c (default_xfer_partial): Minor whitespace adjustment.
7033
dd6be234
PA
70342008-01-24 Pedro Alves <[email protected]>
7035
7036 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
7037 strip bit 1 even if pc doesn't point to thumb code.
7038
9fa2223d
DJ
70392008-01-23 Daniel Jacobowitz <[email protected]>
7040
7041 * remote.c (remote_wait): Handle SIGINT between packets.
7042 (remote_async_wait): Likewise.
7043
93815fbf
VP
70442008-01-23 Vladimir Prus <[email protected]>
7045 Chris Demetriou <[email protected]>
7046
680b56ce
AS
7047 * thread.c (add_thread_silent): Renamed
7048 from add_thread.
7049 (print_thread_events): New variable definition.
7050 (show_print_thread_events): New function.
7051 (_initialize_thread): Add "set print thread-events" and
7052 "show print thread-events" commands.
7053 (add_thread): Announce new thread.
7054 * gdbthread.h (add_thread_silent): Declare.
7055 (print_thread_events): New variable declaration.
7056 * inf-ttrace.c (inf_ttrace_wait): Don't
7057 inform about new thread, as add_thread is always
7058 called too, and will take care of that.
7059 * infrun.c (handle_inferior_event): Likewise.
7060 * procfs.c (procfs_wait): Likewise.
7061 * remote.c (remote_currthread): Likewise.
7062 * sol-thread.c (sol_thread_wait): Likewise.
7063 * win32-nat.c (get_win32_debug_event): Likewise.
7064 * linux-thread-db.c (attach_thread): Likewise.
7065 Remove the verbose parameter.
7066 (check_event): Make detach_thread be verbose
7067 only if print_thread_events is set.
7068 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
7069 about new thread. This is called only from
7070 linux-thread-db.c:attach_thread, which will take care.
7071 Remove the verbose parameter.
7072 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
93815fbf 7073
b4d7c9a6
NR
70742008-01-23 Nick Roberts <[email protected]>
7075
7076 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
7077
60c46647
VP
70782008-01-22 Vladimir Prus <[email protected]>
7079
7080 * breakpoint.c (break_command_really): New parameter
7081 ignore_count.
7082 (break_command_1): Pass 0 as
7083 ignore_count to break_command_really.
7084 (gdb_breakpoint): Pass ignore_count to
7085 break_command_really.
7086
e84605cd
KB
70872008-01-21 Kevin Buettner <[email protected]>
7088
7089 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
7090 sigcontext struct via pointer.
7091 (struct sigframe comment): Update to show new field `psc'.
7092
9d9cd7ac
VP
70932008-01-21 Vladimir Prus <[email protected]>
7094
7095 * infrun.c (handle_inferior_event): If
7096 we failed to remove breakpoints, error,
7097 don't try to increment PC by hand.
7098
af5ca30d
NH
70992008-01-18 Nick Hudson <[email protected]>
7100
7101 Add NetBSD/hppa target and host support.
7102
7103 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
7104 (hppabsd_gregset): Move to ...
7105 (hppabsd_regset_from_core_section): Rename
7106 hppaobsd_regset_from_core_section and move to ...
7107 (hppabsd_find_global_pointer): Update comment.
7108 (hppabsd_init_abi): Make global. Do not register
7109 hppabsd_regset_from_core_section.
7110 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
7111 move to ...
7112 (_initialize_hppabsd_tdep): Move to ...
7113 * hppaobsd-tdep.c: ... here. New file.
7114 * hppnbsd-tdep.c: New file.
7115 * hppnbsd-nat.c: New file.
680b56ce 7116 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
af5ca30d 7117 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
680b56ce
AS
7118 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
7119 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
af5ca30d
NH
7120 * configure.host (hppa*-*-netbsd*): New entry.
7121 * configure.tgt (hppa*-*-netbsd*): New entry.
7122 (hppa*-*-openbsd*): Update.
7123 * NEWS (New native configuration): Mention NetBSD/hppa.
7124 (New targets): Mention NetBSD/hppa.
7125
32c9a795
MD
71262008-01-18 Markus Deuling <[email protected]>
7127
7128 * gdbarch.sh (function_list): Add new property bits_big_endian to
7129 gdbarch structure.
7130 * gdbarch.{c,h}: Regenerate.
7131
7132 * value.c (struct value): Replace BITS_BIG_ENDIAN by
7133 gdbarch_bits_big_endian (comment).
7134 (unpack_field_as_long, modify_field): Likewise.
7135 * value.h: Likewise (comment).
7136 * valops.c (value_slice): Likewise.
7137 * valarith.c (value_subscript, value_bit_index): Likewise.
7138 * gdbtypes.h (field): Likewise (comment).
7139 * eval.c (evaluate_subexp_standard): Likewise.
7140 * dwarf2read.c (dwarf2_add_field): Likewise.
7141 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
7142 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
680b56ce 7143
32c9a795
MD
7144 * defs.h (BITS_BIG_ENDIAN): Remove.
7145
1e5e79d0
MD
71462008-01-18 Markus Deuling <[email protected]>
7147
7148 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
7149 function calls.
7150 * m2-exp.y (yylex): Likewise.
7151 * objc-exp.y (yylex): Likewise.
7152
7153 * defs.h (DEPRECATED_STREQN): Remove.
7154
fabda5a7
L
71552008-01-17 H.J. Lu <[email protected]>
7156
7157 * MAINTAINERS: Update my email address.
7158
92726479
JB
71592008-01-17 Jim Blandy <[email protected]>
7160
7161 * README: Mention gdbserver/README.
7162
ef80d18e
PM
71632008-01-17 Pierre Muller <[email protected]>
7164
7165 * valarith.c (value_binop): Handle BINOP_INTDIV
7166 for unsigned and signed integers.
7167
1de90795
UW
71682008-01-17 Ulrich Weigand <[email protected]>
7169
7170 * s390-tdep.c (s390_gdbarch_init): Set default long double
7171 type to 128-bit IEEE quad.
7172
c70bd6f3
JB
71732008-01-17 Joel Brobecker <[email protected]>
7174
7175 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
7176
ba759613
MK
71772008-01-16 Mark Kettenis <[email protected]>
7178
77d49ac6
MK
7179 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
7180
ba759613
MK
7181 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
7182 * value.c: All callers changed.
7183
7ecb6532
MD
71842008-01-16 Markus Deuling <[email protected]>
7185
7186 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
7187 DEPRECATED_STREQ by its expression.
7188 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
7189 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
7190 (scan_xcoff_symtab): Likewise.
7191 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
7192 * f-lang.c (find_common_for_function): Likewise.
7193 * objc-exp.y (parse_number): Likewise.
7194
7195 * defs.h (DEPRECATED_STREQ): Remove.
7196
d15cf01c
MD
71972008-01-16 Markus Deuling <[email protected]>
7198
7199 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
7200 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
7201 get_frame_arch to get at the current_architecture. Update AM33_MODE
7202 call.
7203 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
7204 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
7205 architecture.
7206 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
7207
f8028488
MD
72082008-01-16 Markus Deuling <[email protected]>
7209
680b56ce 7210 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
f8028488
MD
7211 parameter.
7212 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
7213
7214 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
7215 current_gdbarch by gdbarch. Update caller.
7216
7217 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
7218 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
7219 the current architecture. Update calls of
7220 amd64_native_gregset_supplies_p.
7221 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
7222 (amd64bsd_store_inferior_registers): Likewise.
7223
e101270f
MD
72242008-01-16 Markus Deuling <[email protected]>
7225
7226 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
7227 Replace current_gdbarch by gdbarch. Update caller.
7228
063e58ba
MD
72292008-01-16 Markus Deuling <[email protected]>
7230
7231 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
7232 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
7233 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
7234 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
7235 (stabsect_build_psymtabs): Fix indentation.
7236
662fb31b
MS
72372008-01-15 Michael Snyder <[email protected]>
7238
7239 * corelow.c (core_xfer_partial): Comment, cut/paste error.
7240
c1766e7d
PM
72412008-01-14 Pierre Muller <[email protected]>
7242
7243 * win32-nat.c (win32_create_inferior): Restore code calling
7244 CloseHandle on ProcessInformation structure.
7245
5ed10e6e
NH
72462008-01-13 Nick Hudson <[email protected]>
7247
7248 * configure.ac: Check for void * as 3 argument of ptrace.
7249 * configure: regenerate.
7250
be8626e0
MD
72512008-01-11 Markus Deuling <[email protected]>
7252
7253 * alpha-tdep.c (alpha_heuristic_proc_start)
7254 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
7255 current_gdbarch by gdbarch.
7256
7257 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
680b56ce 7258 current architecture by frame_info. Update alpha_heuristic_proc_start
be8626e0
MD
7259 call.
7260
7261 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
7262 get_frame_arch to get at the current architecture by frame_info. Update
7263 alpha_sigtramp_register_address call.
7264
7265 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
7266 current_gdbarch by gdbarch. Update caller.
7267 (convert_to_extended, convert_from_extended): Add endianess parameter
7268 for comparison. Update caller.
7269 (arm_extract_return_value, arm_store_return_value): Use
7270 get_regcache_arch to get at the current architecture.
7271
7272 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
7273 current_gdbarch by gdbarch. Update caller.
7274 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
7275 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
7276
7277 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
680b56ce 7278 gdbarch as parameter. Update caller.
be8626e0
MD
7279 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
7280 current_gdbarch by gdbarch. Update caller.
7281
680b56ce 7282 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
be8626e0
MD
7283 update caller. Replace current_gdbarch by gdbarch.
7284
7285 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
7286 the current architecture. Replace current_gdbarch by gdbarch.
7287 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
7288 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
7289 expression. Add gdbarch as parameter and replace current_gdbarch with
7290 it. Update caller.
7291 (M6811_TDEP): Remove.
7292 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
7293 architecture.
680b56ce 7294 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
be8626e0
MD
7295 current_gdbarch by gdbarch. Update caller.
7296
7297 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
7298 update caller.
7299 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
7300 by gdbarch.
7301
7302 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
7303 caller. Relace current_gdbarch by gdbarch.
7304 (altivec_register_p, spe_register_p): Likewise.
7305 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
7306 parameter.
7307 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
7308 altivec_register_p and spe_register_p.
7309
680b56ce 7310 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
be8626e0
MD
7311 caller. Replace current_gdbarch by gdbarch.
7312 (score_analyze_prologue): use get_frame_arch to get at the current
680b56ce 7313 architecture.
be8626e0
MD
7314
7315 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
7316 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
7317 current_gdbarch by gdbarch. Update caller.
7318 (sparc_frame_cache): Use get_frame_arch to get at the current
7319 architecture.
7320 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
7321 sparc_analyze_prologue.
7322
7323 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
7324 parameter.
7325
ed49a04f
MD
73262008-01-11 Markus Deuling <[email protected]>
7327
7328 * exec.c: #include "arch-utils.h"
7329 (print_section_info): Use gdbarch_from_bfd to get at the
7330 current architecture. Replace current_gdbarch. Fix indention. Replace
7331 deprecated_print_address_numeric by paddress.
7332 * Makefile.in (exec.o) Add dependency to arch-utils.h.
7333
680b56ce 7334 * valprint.c (val_print_string): Replace
ed49a04f
MD
7335 deprecated_print_address_numeric.
7336 * tracepoint.c (trace_mention, scope_info): Likewise.
7337 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
7338 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
7339 (maintenance_check_symtabs): Likewise.
7340 * symfile.c (list_overlays_command): Likewise.
7341 * stack.c (frame_info, print_block_frame_labels): Likewise.
7342 * printcmd.c (print_address, print_address_demangle)
7343 (address_info): Likewise.
7344 * corefile.c (memory_error): Likewise.
7345 * infcmd.c (jump_command): Likewise.
7346 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
7347 (mention, delete_breakpoint): Likewise.
7348 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
7349 * dwarf2read.c (dump_die): Likewise.
7350 * ada-valprint.c (ada_val_print_1): Likewise.
7351 * f-valprint.c (f_val_print): Likewise.
680b56ce 7352 * linux-fork.c (info_forks_command): Likewise.
ed49a04f
MD
7353 * m32r-com.c (m32r_load_section, m32r_load)
7354 (m32r_upload_command): Likewise.
7355
7356 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
7357
6093d2eb
MD
73582008-01-11 Markus Deuling <[email protected]>
7359
7360 * gdbarch.sh (skip_prologue): Add gdbarch
7361 as parameter.
7362 * gdbarch.{c,h}: Regenerate.
7363
7364 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
7365 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7366 * avr-tdep.c (avr_skip_prologue): Likewise.
7367 * cris-tdep.c (cris_skip_prologue): Likewise.
7368 * frv-tdep.c (frv_skip_prologue): Likewise.
7369 * h8300-tdep.c (h8300_skip_prologue): Likewise.
7370 * hppa-tdep.c (hppa_skip_prologue): Likewise.
7371 * i386-tdep.c (i386_skip_prologue): Likewise.
7372 * ia64-tdep.c (ia64_skip_prologue): Likewise.
7373 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
7374 * m32r-tdep.c (m32r_skip_prologue): Likewise.
7375 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
7376 * m68k-tdep.c (m68k_skip_prologue): Likewise.
7377 * m88k-tdep.c (m88k_skip_prologue): Likewise.
7378 * mep-tdep.c (mep_skip_prologue): Likewise.
7379 * mips-tdep.c (mips_skip_prologue): Likewise.
7380 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
7381 * mt-tdep.c (mt_skip_prologue): Likewise.
7382 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
7383 * score-tdep.c (score_skip_prologue): Likewise.
7384 * sh64-tdep.c (sh64_skip_prologue): Likewise.
7385 * sh-tdep.c (sh_skip_prologue): Likewise.
7386 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
7387 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
7388 * spu-tdep.c (spu_skip_prologue): Likewise.
7389 * v850-tdep.c (v850_skip_prologue): Likewise.
7390 * vax-tdep.c (vax_skip_prologue): Likewise.
7391 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
7392 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
7393
7394 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
7395 current_gdbarch by gdbarch.
7396 * m32c-tdep.c (m32c_skip_prologue): Likewise.
7397 * s390-tdep.c (s390_skip_prologue): Likewise.
7398
72f5cf0e
DE
73992008-01-10 Doug Evans <[email protected]>
7400
7401 * defs.h (struct continuation_arg): Fix typo in comment.
7402 * target.c (target_translate_tls_address): Fix comment spelling error.
7403
689e4e2d
TJB
74042008-01-09 Thiago Jung Bauermann <[email protected]>
7405
7406 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
7407 (DOUBLEST_SCAN_FORMAT): Likewise.
7408 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
7409 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
7410 * c-exp.y (parse_number): Likewise.
7411 * jv-exp.y (parse_number): Likewise.
7412 * objc-exp.y (parse_number): Likewise.
7413 * p-exp.y (parse_number): Likewise.
7414
ab0d6e0d
JB
74152008-01-09 Joel Brobecker <[email protected]>
7416
7417 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
7418 (check_typedef): Likewise.
7419
0aea4bf3
LM
74202008-01-09 Luis Machado <[email protected]>
7421
7422 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
7423 seen_double_big_d, treat the new H, D, and DD modifiers as length
7424 modifiers.
7425
137033e9
JB
74262008-01-08 Joel Brobecker <[email protected]>
7427
7428 * dwarf2read.c (read_enumeration_type): Add comment.
7429
dda297ec
TJB
74302008-01-08 Thiago Jung Bauermann <[email protected]>
7431
7432 * config.in: Regenerate.
7433
a93c0eb6
JB
74342008-01-08 Joel Brobecker <[email protected]>
7435
7436 * ada-lang.c (ada_convert_actual): Renames convert_actual.
7437 Make non-static.
7438 (ada_convert_actuals): Delete.
7439 * ada-lang.h (ada_convert_actual): Add declaration.
7440 (ada_convert_actuals): Remove declaration.
7441 * infcall.c: #include "ada-lang.h".
7442 (value_arg_coerce): Add new parameter sp. Update function
7443 documetnation. Add handling of Ada function call parameters.
7444 * Makefile.in (infcall.o): Update dependencies.
7445
a84a8a0d
JB
74462008-01-08 Paul Hilfinger <[email protected]>
7447
7448 * ada-lang.c (ensure_lval): Fix value lval kind.
7449 (convert_actual): Add handling for arguments passed by reference.
7450
d7f98cce
DE
74512008-01-08 Doug Evans <[email protected]>
7452
7453 * dbxread.c (read_dbx_symtab): Fix indentation.
7454
4ef30785
TJB
74552008-01-07 Thiago Jung Bauermann <[email protected]>
7456
7457 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
7458 (valarith.o): Depend on dfp.h.
7459 (valops.o): Likewise.
7460 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
7461 (set_decnumber_context): New function.
7462 (decimal_check_errors): Likewise.
7463 (decimal_from_number): Likewise.
7464 (decimal_to_number): Likewise.
7465 (decimal_from_string): Use set_decnumber_context and
7466 decimal_check_errors.
7467 (decimal_from_integral): New function.
7468 (decimal_from_floating): Likewise.
7469 (decimal_to_double): Likewise.
7470 (promote_decimal): Likewise.
7471 (decimal_binop): Likewise.
7472 (decimal_is_zero): Likewise.
7473 (decimal_compare): Likewise.
7474 (decimal_convert): Likewise.
7475 * dfp.h (decimal_from_integral): New prototype.
7476 (decimal_from_floating): Likewise.
7477 (decimal_to_double): Likewise.
7478 (decimal_binop): Likewise.
7479 (decimal_is_zero): Likewise.
7480 (decimal_compare): Likewise.
7481 (decimal_convert): Likewise.
7482 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
7483 call to value_from_decfloat.
7484 * valarith.c: Include dfp.h.
7485 (value_args_as_decimal): New function.
7486 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
7487 (value_logical_not): Likewise.
7488 (value_equal): Likewise.
7489 (value_less): Likewise.
7490 (value_pos): Likewise.
7491 (value_neg): Formatting fix.
7492 * valops.c: Include dfp.h.
7493 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
7494 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
7495 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
7496 (value_from_decfloat): Remove expect_type argument.
7497 * value.h (value_from_decfloat): Update prototype.
7498
a7c02bc8
VP
74992008-01-07 Vladimir Prus <[email protected]>
7500
7501 Ignore change in name of dynamic linker during
7502 execution on Solaris. This also unbreaks pending breakpoints.
7503
7504 * solist.h (struct target_so_ops): New field same.
680b56ce
AS
7505 * solib-svr4.c (svr4_same): New.
7506 (_initialize_svr4_solib): Register svr4_same.
7507 * solib.c (update_solib_list): Use ops->same, if available.
a7c02bc8 7508
610dd7f9
CF
75092008-01-06 Christopher Faylor <[email protected]>
7510
7511 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
7512 when using MS-DOS paths.
7513
7a404eba
PA
75142008-01-05 Pedro Alves <[email protected]>
7515
7516 * NEWS: Mention --pid and --core command line behaviour changes.
7517
a4d9b460
PA
75182008-01-05 Pedro Alves <[email protected]>
7519
7520 * main.c (captured_main): Remove 'count' varible and the
7521 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
7522 --pid options were issued simultaneously. If an explicit pid
7523 option was passed, don't fallback to core file. Detect extra
7524 arguments better in the presence of explicit pid or core
7525 arguments.
7526
0c281816
JB
75272008-01-05 Joel Brobecker <[email protected]>
7528
7529 * ada-lang.c (ada_which_variant_applies): Correctly compute
7530 the value of the discriminant when the variant record is packed.
7531
babe1480
JB
75322008-01-04 Joel Brobecker <[email protected]>
7533
7534 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
7535 that are used to differentiate homonyms.
7536
727e3d2e
JB
75372008-01-04 Jerome Guitton <[email protected]>
7538
7539 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
7540 when the type is an anonymous pointer type.
7541 (ada_check_typedef): Avoid a seg fault when the type is null.
7542 * ada-typeprint.c (print_array_type): Add support for pointer
7543 to packed arrays.
7544
bb28a9dc
JB
75452008-01-04 Paul N. Hilfinger <[email protected]>
7546
680b56ce 7547 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
bb28a9dc 7548
6799def4
JB
75492008-01-04 Joel Brobecker <[email protected]>
7550
7551 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
7552 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
7553
d3353bbd
JB
75542008-01-04 Joel Brobecker <[email protected]>
7555
7556 * ada-exp.y (chop_separator): New function.
7557 (write_selectors): Rewrite to re-use chop_separator.
7558 (ada_nget_field_index, get_symbol_field_type): New functions.
7559 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
7560 expressions.
7561
82cf6c60
TJB
75622008-01-03 Thiago Jung Bauermann <[email protected]>
7563
7564 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
7565 of SYMBOL_VALUE when working with function symbols.
7566
b3dbf008
JB
75672008-01-03 Joel Brobecker <[email protected]>
7568
7569 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
7570 expressions. These expressions do not need to be rewriten.
7571
02eb380e
JB
75722008-01-03 Joel Brobecker <[email protected]>
7573
7574 * dwarf2read.c (read_enumeration_type): Flag type as stub if
7575 the given die is a declaration.
7576
abb68b3e
JB
75772008-01-03 Joel Brobecker <[email protected]>
7578
7579 * ada-lang.c (ada_array_bound_from_type): Make non-static.
7580 Handle properly the case when the index type is an enumerated type.
7581 Do not return the subtype of the bounds type, just return the
7582 bounds type directly - this is not needed and is more consistent
7583 with what we do for arrays when no XA parallel type exists.
7584
f192137b
JB
75852008-01-03 Joel Brobecker <[email protected]>
7586
7587 * ada-lang.c (static_unwrap_type): Add forward declaration.
7588 (template_to_static_fixed_type): Fields of dynamic types sometimes
7589 also need to be unwrapped. Take this into account.
7590 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
7591 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
7592 * ada-typeprint.c (ada_print_type): Get the typename from
680b56ce 7593 the original type, not the base type.
f192137b 7594
1ed6ede0
JB
75952008-01-03 Jerome Guitton <[email protected]>
7596
7597 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
680b56ce 7598 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
1ed6ede0
JB
7599 Update calls to ada_to_fixed_type.
7600 (ada_template_to_fixed_record_type_1): Ditto, but without looking
7601 for the tag.
7602 (ada_to_fixed_type): Add check_tag parameter; do not look for
7603 tag if null. When looking for a tag, use a fixed record type.
7604 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
7605 * ada-valprint.c (printable_val_type, ada_value_print): Update
7606 calls to ada_to_fixed_type.
7607
542a88d0
LM
76082008-01-03 Luis Machado <[email protected]>
7609
680b56ce 7610 * doublest.c (convert_floatformat_to_doublest): Call
542a88d0
LM
7611 floatformat_to_doublest instead of floatformat_to_double and use
7612 DOUBLEST variables.
7613 (convert_doublest_to_floatformat): Call floatformat_from_doublest
7614 instead of floatformat_from_double and use DOUBLEST variables.
7615
dc2bbab2
NH
76162008-01-03 Nick Hudson <[email protected]>
7617
7618 * MAINTAINERS (Write After Approval): Add self.
7619
8b60591b
JB
76202008-01-03 Joel Brobecker <[email protected]>
7621
7622 * symfile.c (set_initial_language): Make non-static.
7623 * symfile.h (set_initial_language): Add declaration.
7624 * language.c: #include "symfile.h".
7625 (set_language): Call set_initial_language if the frame language
7626 could not be determined.
7627
ceef53c1
JB
76282008-01-03 Paul N. Hilfinger <[email protected]>
7629
7630 * eval.c (evaluate_subexp_for_address): Provide frame address to
7631 locate_var_value only if it will be needed.
7632
ef29ce1a
JK
76332008-01-02 Jan Kratochvil <[email protected]>
7634
7635 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
7636
0a07e705
JB
76372008-01-02 Joel Brobecker <[email protected]>
7638
7639 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
7640 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
7641 This is needed to make sure that any other treatment applied
7642 to the resulting value does not fail for spurious reason,
7643 such as trying to take the address of this value.
7644
f58b38bf
JB
76452008-01-02 Joel Brobecker <[email protected]>
7646
7647 * ada-lang.c (ada_value_equal): Dereference reference types when
7648 comparing arrays.
680b56ce 7649
9b254dd1
DJ
76502008-01-01 Daniel Jacobowitz <[email protected]>
7651
7652 Updated copyright notices for most files.
7653
33605d39
CF
76542008-01-01 Christopher Faylor <[email protected]>
7655
7656 * win32-nat.c (psapi_module_handle): Remove static.
7657 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
7658 return first module found if base_address is zero. Don't initialize
7659 psapi function pointers here. Convert to cygwin paths when
7660 appropriate.
7661 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
7662 executable name. Use get_module_name when that fails or when
7663 !__CYGWIN__.
7664 (_initialize_psapi): New function. Initialize psapi stuff before it is
7665 needed or issue a warning if it is not found. Move psapi_module_handle
7666 here.
7667
29480c32
JB
76682008-01-01 Joel Brobecker <[email protected]>
7669
7670 * ada-lang.c (ada_remove_trailing_digits): New function.
7671 (ada_remove_po_subprogram_suffix): New function.
7672 (ada_decode): Improve. Move the description of the algorithm
7673 directly inside the code, instead of in the function global
7674 description.
7675
969a1360
JB
76762008-01-01 Joel Brobecker <[email protected]>
7677
7678 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
7679 and always print the dereferenced value.
7680
b7789565
JB
76812008-01-01 Joel Brobecker <[email protected]>
7682
7683 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
7684 of the case where the first argument is a reference.
7685 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
7686
73fb9985
JB
76872008-01-01 Joel Brobecker <[email protected]>
7688
7689 Implement support for Ada interface types.
7690
7691 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
7692 (ada_is_ignored_field): Ignore fields that are a dispatch table
7693 of a tagged type.
7694
636265b6
JB
76952008-01-01 Joel Brobecker <[email protected]>
7696
7697 * top.c (print_gdb_version): Update copyright year.
7698
9d200a2e 76992008-01-01 Joel Brobecker <[email protected]>
b7589f7d 7700
9d200a2e
JB
7701 * ChangeLog-2007: New ChangeLog rotation.
7702 * ChangeLog: Reset for 2008.
7703 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
7704 ChangeLog-2007.
b7589f7d 7705
9d200a2e 7706For older changes see ChangeLog-2007.
c906108c
SS
7707\f
7708Local Variables:
7709mode: change-log
7710left-margin: 8
7711fill-column: 74
7712version-control: never
57da7796 7713coding: utf-8
c906108c 7714End:
This page took 2.859753 seconds and 4 git commands to generate.