1 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
3 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
4 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
5 (SIG_FRAME_PC_OFFSET): Likewise.
6 (SIG_FRAME_LR_OFFSET): Likewise.
7 (SIG_FRAME_FP_OFFSET): Likewise.
8 (rs6000_push_dummy_call): Likewise.
9 (rs6000_return_value): Likewise.
10 (rs6000_convert_from_func_ptr_addr): Likewise.
11 (branch_dest, rs6000_software_single_step): Likewise.
12 (deal_with_atomic_sequence): Rename to ...
13 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
14 Do not call branch_dest; inline required parts of that function.
15 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
16 with SYMBOL_LINKAGE_NAME.
17 (struct reg, regsize): Delete.
18 (read_memory_addr): Delete; inline into callers.
19 (rs6000_skip_prologue): Move after skip_prologue.
20 (skip_prologue): Remove prototype.
21 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
22 initialization as if this variable were true. Do not install
23 ppc64_sysv_abi_adjust_breakpoint_address.
25 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
26 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
28 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
29 (SIG_FRAME_PC_OFFSET): Likewise.
30 (SIG_FRAME_LR_OFFSET): Likewise.
31 (SIG_FRAME_FP_OFFSET): Likewise.
32 (rs6000_push_dummy_call): Likewise.
33 (rs6000_return_value): Likewise.
34 (rs6000_convert_from_func_ptr_addr): Likewise.
35 (branch_dest, rs6000_software_single_step): Likewise. Replace
36 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
37 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
38 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
39 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
40 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
42 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
43 (AIX_TEXT_SEGMENT_BASE): New macro.
44 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
45 by AIX_TEXT_SEGMENT_BASE.
47 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
48 (struct gdbarch_tdep): Remove text_segment_base member.
49 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
50 ppc64_sysv_abi_adjust_breakpoint_address.
52 * Makefile.in (rs6000-tdep.o): Update dependencies.
53 (rs6000-aix-tdep.o): Likewise.
55 2008-05-03 Luis Machado <luisgpm@br.ibm.com>
56 Thiago Jung Bauermann <bauerman@br.ibm.com>
58 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
59 * doublest.c (convert_typed_floating): Fix typo in comment.
60 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
61 * frame-unwind.h (frame_sniffer_ftype): Likewise.
62 * frame.c (frame_unwind_address_in_block): Likewise.
63 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
64 * symtab.h (struct symbol): Likewise.
65 * tramp-frame.h (struct trad_frame_cache): Likewise.
66 * value.c (allocate_repeat_value): Likewise.
68 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
70 * infrun.c (handle_inferior_event): Do not insert breakpoints at
71 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
73 2008-05-03 Pedro Alves <pedro@codesourcery.com>
75 * parse.c (parse_exp_in_context): Don't override
76 expression_context_pc if get_selected_block returned a valid
79 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
81 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
82 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
83 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
85 * c-typeprint.c (c_type_print_base): Delete handling of template
87 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
88 (METHOD_PTR_TO_VOFFSET): Delete.
89 * defs.h (QUIT_FIXME): Delete.
90 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
91 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
92 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
93 ninstantiations, and instantiations.
94 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
95 (TYPE_FN_FIELD_INLINED): Delete.
96 * srec.h (SREC_BINARY): Delete.
97 * symtab.c (symbol_init_demangled_name): Delete.
98 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
99 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
100 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
101 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
102 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
103 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
104 * target.h (enum thread_control_capabilities): Delete tc_switch.
105 (target_can_switch_threads): Delete.
107 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
109 * Makefile.in (objfiles.o): Update.
110 * exec.c (exec_set_section_address): Support p->addr != 0.
111 * objfiles.c (objfile_relocate): Update exec_ops section
113 * symfile.c (place_section): Move exec_set_section_address call...
114 (default_symfile_offsets): ...to here.
116 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
118 * Makefile.in (ppc_linux_tdep_h): New macro.
119 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
120 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
121 (powerpc_e500l_c): Likewise.
122 (ppc-linux-nat.o): Update dependencies.
123 (ppc-linux-tdep.o): Update dependencies.
124 (rs6000-tdep.o): Update dependencies.
126 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
127 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
128 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
129 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
130 (tdesc_powerpc_e500): Remove.
132 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
133 and "features/rs6000/powerpc-altivec64.c".
134 (ppc_supply_reg, ppc_collect_reg): Make global.
135 (variants): Use tdesc_powerpc_32 for "powerpc" and
136 tdesc_powerpc_altivec64 for "powerpc64".
137 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
139 * ppc-linux-tdep.h: New file.
141 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
142 Include "features/rs6000/powerpc-32l.c".
143 Include "features/rs6000/powerpc-altivec32l.c".
144 Include "features/rs6000/powerpc-64l.c".
145 Include "features/rs6000/powerpc-altivec64l.c".
146 Include "features/rs6000/powerpc-e500l.c".
147 (ppc_linux_supply_gregset): New function.
148 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
149 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
150 (ppc64_linux_gregset): Likewise.
151 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
152 (ppc_linux_trap_reg_p): New function.
153 (ppc_linux_write_pc): New function.
154 (ppc_linux_core_read_description): New function.
155 (ppc_linux_init_abi): Install ppc_linux_write_pc and
156 ppc_linux_core_read_description. Install orig_r3 and trap
157 registers if present in the target description.
158 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
160 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
161 (PT_ORIG_R3, PT_TRAP): Define if necessary.
162 (ppc_register_u_addr): Handle orig_r3 and trap registers.
163 (fetch_ppc_registers): Likewise.
164 (store_ppc_registers): Likewise.
165 (store_register): Likewise.
166 (ppc_linux_read_description): Check whether AltiVec is supported.
167 Check whether inferior is 32-bit or 64-bit. Return the appropriate
168 Linux target description.
170 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
171 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
172 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
173 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
174 rs6000/powerpc-e500. Update -expedite variables accordingly.
176 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
177 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
178 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
179 * features/rs6000/powerpc-e500.c: Regenerate.
180 * features/rs6000/powerpc-32.c: Regenerate.
181 * features/rs6000/powerpc-64.c: Regenerate.
183 * features/rs6000/power-linux.xml: New file.
184 * features/rs6000/power64-linux.xml: New file.
185 * features/rs6000/powerpc-32l.xml: New file.
186 * features/rs6000/powerpc-altivec32l.xml: New file.
187 * features/rs6000/powerpc-64l.xml: New file.
188 * features/rs6000/powerpc-altivec64l.xml: New file.
189 * features/rs6000/powerpc-e500l.xml: New file.
190 * features/rs6000/powerpc-32l.c: New (generated) file.
191 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
192 * features/rs6000/powerpc-64l.c: New (generated) file.
193 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
194 * features/rs6000/powerpc-e500l.xml: New (generated) file.
196 * regformats/reg-ppc.dat: Remove.
197 * regformats/reg-ppc64.dat: Remove.
198 * regformats/rs6000/powerpc-32.dat: Remove.
199 * regformats/rs6000/powerpc-64.dat: Remove.
200 * regformats/rs6000/powerpc-e500.dat: Remove.
201 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
202 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
203 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
204 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
205 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
207 2008-05-03 Pedro Alves <pedro@codesourcery.com>
209 * thread.c (delete_thread): Call observer_notify_thread_exit.
210 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
211 thread_exit observer.
212 (mi_thread_exit): New.
214 2008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
216 * breakpoint.c (create_exception_catchpoint): Remove prototype
217 for already deleted function.
218 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
219 * frame.h (show_stack_frame): Remove prototype.
220 * stack.c (show_stack_frame): Remove empty, unused function.
221 * source.c (symtab_to_fullname, print_source_lines): Small fix
223 * value.c (show_values): Update comments to mention "show values"
224 command instead of "info history".
226 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
228 * linespec.c: Include "target.h".
229 (minsym_found): Handle minimal symbols pointing to function
230 descriptors. Use find_function_start_pc.
231 * minsyms.c (msymbol_objfile): New function.
232 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
233 to function descriptors.
234 * symtab.c (fixup_section): Only use minimal symbol at the same
235 address to determine section of a symbol.
236 (find_function_start_pc): New function.
237 (find_function_start_sal): Use it.
238 * symtab.h (msymbol_objfile): Add prototype.
239 (find_function_start_pc): Likewise.
240 * value.c: Include "objfiles.h".
241 (value_fn_field): Handle minimal symbols pointing to function
243 * Makefile.in (linespec.o): Update dependencies.
246 2008-05-02 Joel Brobecker <brobecker@adacore.com>
248 * ada-lang.c (unwrap_value): Handle the case where the "F" field
249 inside a PAD type is a bitfield.
251 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
253 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
254 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
255 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
256 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
257 Allow typedefs when checking for function pointer arguments.
258 Right-align small structs passed on the stack.
259 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
260 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
261 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
263 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
265 * Makefile.in (arm-tdep.o): Update.
266 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
267 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
268 (arm_pc_is_thumb): Use mapping symbols.
269 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
270 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
271 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
272 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
273 * gdbarch.sh: Add record_special_symbol.
274 * gdbarch.c, gdbarch.h: Regenerated.
275 * objfiles.c (struct objfile_data): Add cleanup member.
276 (register_objfile_data_with_cleanup): New function, from
277 register_objfile_data.
278 (register_objfile_data): Use it.
279 (objfile_free_data): Call clear_objfile_data.
280 (clear_objfile_data): Call cleanup functions.
281 * objfiles.h (register_objfile_data_with_cleanup): Declare.
283 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
285 * objfiles.c (init_entry_point_info): Handle shared libraries.
287 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
289 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
292 2008-05-02 Jim Blandy <jimb@codesourcery.com>
293 Pedro Alves <pedro@codesourcery.com>
295 Implement displaced stepping.
297 * gdbarch.sh (max_insn_length): New 'variable'.
298 (displaced_step_copy, displaced_step_fixup)
299 (displaced_step_free_closure, displaced_step_location): New
301 (struct displaced_step_closure): Add forward declaration.
302 * gdbarch.c, gdbarch.h: Regenerated.
304 * arch-utils.c: #include "objfiles.h".
305 (simple_displaced_step_copy_insn)
306 (simple_displaced_step_free_closure)
307 (displaced_step_at_entry_point): New functions.
308 * arch-utils.h (simple_displaced_step_copy_insn)
309 (simple_displaced_step_free_closure)
310 (displaced_step_at_entry_point): New prototypes.
312 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
313 (I386_MAX_MATCHED_INSN_LEN): ... this.
314 (i386_absolute_jmp_p, i386_absolute_call_p)
315 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
316 (i386_displaced_step_fixup): New functions.
317 (struct i386_insn, i386_match_insn): Update.
318 (i386_gdbarch_init): Set gdbarch_max_insn_length.
319 * i386-tdep.h (I386_MAX_INSN_LEN): New.
320 (i386_displaced_step_fixup): New prototype.
321 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
322 Register gdbarch_displaced_step_copy,
323 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
324 and gdbarch_displaced_step_location functions.
326 * infrun.c (debug_displaced): New variable.
327 (show_debug_displaced): New function.
328 (struct displaced_step_request): New struct.
329 (displaced_step_request_queue, displaced_step_ptid)
330 (displaced_step_gdbarch, displaced_step_closure)
331 (displaced_step_original, displaced_step_copy)
332 (displaced_step_saved_copy, can_use_displaced_stepping): New
334 (show_can_use_displaced_stepping, use_displaced_stepping)
335 (displaced_step_clear, cleanup_displaced_step_closure)
336 (displaced_step_dump_bytes, displaced_step_prepare)
337 (displaced_step_clear_cleanup, write_memory_ptid)
338 (displaced_step_fixup): New functions.
339 (resume): Call displaced_step_prepare.
340 (proceed): Call read_pc once, and remember the value. If using
341 displaced stepping, don't remove breakpoints.
342 (handle_inferior_event): Call displaced_step_fixup. Add some
343 debugging output. When we try to step over a breakpoint, but get
344 a signal to deliver to the thread instead, ensure the step-resume
345 breakpoint is actually inserted. If a thread hop is needed, and
346 displaced stepping is enabled, don't remove breakpoints.
347 (init_wait_for_inferior): Call displaced_step_clear.
348 (_initialize_infrun): Add "set debug displaced" command. Add
349 "maint set can-use-displaced-stepping" command. Clear
351 * inferior.h (debug_displaced): Declare variable.
352 (displaced_step_dump_bytes): Declare function.
354 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
357 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
359 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
360 (arm_force_mode_string, arm_show_fallback_mode)
361 (arm_show_force_mode): New.
362 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
364 (_initialize_arm_tdep): Add "set arm fallback-mode"
365 and "set arm force-mode".
366 * NEWS: Document new commands.
368 2008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
370 * main.h (batch_silent): Declare.
371 * event-top.c: Include main.h.
372 (gdb_setup_readline): Remove extern batch_silent declaration.
373 * infrun.c (normal_stop): Don't print source location when running in
375 * Makefile.in (event-top.o): Add main.h dependency.
377 2008-05-02 Andreas Schwab <schwab@suse.de>
379 * target.h (struct target_ops): Add
380 to_watchpoint_addr_within_range.
381 (target_watchpoint_addr_within_range): New function.
382 * target.c (update_current_target): Inherit
383 to_watchpoint_addr_within_range, defaulting to
384 default_watchpoint_addr_within_range.
385 (default_watchpoint_addr_within_range): New function.
386 (debug_to_watchpoint_addr_within_range): New function.
387 (setup_target_debug): Set to_watchpoint_addr_within_range.
388 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
390 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
391 * breakpoint.c (watchpoints_triggered): Use
392 target_watchpoint_addr_within_range.
394 2008-05-01 Pedro Alves <pedro@codesourcery.com>
396 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
397 (i[34567]86-*-dicos*, x86_64-*-dicos*):
398 Set gdb_osabi to GDB_OSABI_DICOS.
400 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
401 * osabi.c (gdb_osabi_name): Add "DICOS".
403 * i386-dicos-tdep.c: New file.
405 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
406 (ALLDEPFILES): Add i386-dicos-tdep.c.
407 (i386-dicos-tdep.o): New rule.
409 2008-05-01 Pedro Alves <pedro@codesourcery.com>
411 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
412 and register the fork's PTID as a thread.
414 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
417 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
418 assign its value to the breakpoint created.
419 (create_breakpoints): Add breakpoint_ops argument and pass it
420 to create_breakpoint call.
421 (break_command_really): Add breakpoint_ops argument and pass/assign
423 (break_command_1): Pass NULL as ops argument.
424 (set_breakpoint): Pass NULL as ops argument.
425 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
426 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
427 catch and throw catchpoints.
429 2008-05-01 Aleksandar Riswtovski <aristovski@qnx.com>
432 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
433 translate signal numeric value from the target to GDB's enum
435 * gdbarch.c, gdbarch.h: Regenerated.
436 * gdbarch.sh: Added two new functions target_signal_from_host and
437 target_signal_to_host.
438 * target.h (default_target_signal_from_host,
439 default_target_signal_to_host): New functions - declarations.
440 * signals/signals.c (struct gdbarch): New declaration.
441 (default_target_signal_to_host, default_target_signal_from_host): New
444 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
446 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
447 * arm-tdep.c (arm_frame_is_thumb): New.
448 (arm_pc_is_thumb): Clarify comment.
449 (thumb_analyze_prologue): Remove PC special case.
450 (thumb_scan_prologue): Take a block_addr argument. Use it for
451 find_pc_partial_function. Remove unused variables.
452 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
453 for find_pc_partial_function. Remove PC special case.
454 (arm_prologue_prev_register): Add special handling for PC and CPSR.
455 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
456 (arm_get_next_pc): Use arm_frame_is_thumb.
457 (arm_write_pc): Use CPSR_T instead of 0x20.
458 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
459 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
461 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
463 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
465 (struct dwarf2_frame_state_reg): Add FN to loc union.
467 2008-05-01 Nick Roberts <nickrob@snap.net.nz>
469 * exec.c (print_section_info): Add missing '\n'.
471 2008-05-01 Vladimir Prus <vladimir@codesourcery.com>
473 * thread.c (add_thread): Move observer call to ...
474 (add_thread_silent): ... here.
476 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
478 * rs6000-tdep.c: Update for unwinder changes.
479 * ppcobsd-tdep.c: Likewise.
481 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
483 * s390-tdep.c: Update for unwinder changes.
485 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
487 * spu-tdep.c: Update for unwinder changes.
489 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
491 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
492 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
493 sparc64-linux-tdep.c: Update for unwinder changes.
495 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
497 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
498 for unwinder changes.
499 * mips-tdep.c: Likewise.
500 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
503 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
505 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
508 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
510 Update i386 and amd64 ports for unwinder changes.
512 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
513 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
514 (amd64_frame_unwind): Use default_frame_sniffer.
515 (amd64_frame_sniffer): Delete.
516 (amd64_sigtramp_frame_cache): Expect this_frame.
517 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
518 (amd64_sigtramp_frame_sniffer): Update signature.
519 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
520 (amd64_frame_base_address): Expect this_frame.
521 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
523 (amd64_init_abi): Use set_gdbarch_dummy_id and
524 frame_unwind_append_unwinder.
525 * i386-tdep.c (i386_frame_cache): Expect this_frame.
526 (i386_frame_this_id, i386_frame_prev_register): Update signature.
527 (i386_frame_unwind): Use default_frame_sniffer.
528 (i386_frame_sniffer): Delete.
529 (i386_sigtramp_frame_cache): Expect this_frame.
530 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
531 (i386_sigtramp_frame_sniffer): Update signature.
532 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
533 (i386_frame_base_address): Update signature.
534 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
535 (i386_push_dummy_call): Update comment.
536 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
538 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
539 and frame_unwind_append_unwinder.
540 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
541 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
542 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
543 i386nbsd-tdep.c: Update for unwinder changes.
545 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
547 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
548 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
550 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
551 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
552 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
554 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
556 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
558 * tramp-frame.h (struct tramp_frame): Update signature of init.
559 * Makefile.in (trad-frame.o): Update.
561 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
563 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
564 (execute_stack_op): Put this_frame in the baton.
565 (execute_cfa_program): Take this_frame.
566 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
567 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
568 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
569 (dwarf2_frame_this_id): Adjust to work on this_frame.
570 (dwarf2_signal_frame_this_id): Delete.
571 (dwarf2_frame_prev_register): Update signature. Use new frame
573 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
574 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
575 dwarf2_frame_sniffer.
576 (dwarf2_append_unwinders): New.
577 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
579 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
580 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
581 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
582 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
583 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
584 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
585 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
586 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
587 (dwarf2_append_unwinders): Declare.
588 (dwarf2_frame_base_sniffer): Update declaration.
589 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
592 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
594 Convert frame unwinders to use the current frame and
597 * frame.c (frame_debug): Make global.
598 (get_frame_id): Pass this frame to unwinder routines.
599 (frame_pc_unwind): Remove unused unwind->prev_pc support.
600 (do_frame_register_read): Do not discard the return value of
602 (frame_register_unwind): Remove debug messages. Use
603 frame_unwind_register_value.
604 (frame_unwind_register_value, get_frame_register_value): New
606 (create_new_frame, get_frame_base_address, get_frame_locals_address)
607 (get_frame_args_address, get_frame_type): Pass this frame to
609 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
611 * frame.h: Update comments.
612 (frame_debug, frame_unwind_register_value, get_frame_register_value)
613 (frame_prepare_for_sniffer): Declare.
614 * frame-unwind.h: Update comments and parameter names.
615 (default_frame_sniffer): Declare.
616 (frame_prev_register_ftype): Return a struct value *.
617 (struct frame_unwind): Remove prev_pc member.
618 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
619 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
620 (frame_unwind_got_register, frame_unwind_got_memory)
621 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
622 * frame-base.h: Update comments and parameter names.
623 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
624 if necessary. Add debugging output.
625 * sentinel-frame.c (sentinel_frame_prev_register)
626 (sentinel_frame_this_id): Update for new signature.
627 (sentinel_frame_prev_pc): Delete.
628 (sentinel_frame_unwinder): Remove prev_pc.
629 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
631 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
632 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
633 (frame_unwind_append_sniffer): Delete.
634 (frame_unwind_append_unwinder): New function.
635 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
636 from unwinders. Use frame_prepare_for_sniffer.
637 (default_frame_sniffer, frame_unwind_got_optimized)
638 (frame_unwind_got_register, frame_unwind_got_memory)
639 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
640 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
641 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
643 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
644 * gdbarch.c, gdbarch.c: Regenerated.
645 * frame-base.c (default_frame_base_address)
646 (default_frame_locals_address, default_frame_args_address): Update
648 (frame_base_find_by_frame): Pass this frame to unwinder routines.
649 * infcall.c (call_function_by_hand): Update comments.
650 * Makefile.in (frame-unwind.o): Update dependencies.
652 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
654 * ada-lang.c (ada_value_primitive_packed_val): Only check
655 value_lazy for memory lvals.
656 * findvar.c (value_of_register_lazy): New function.
657 (locate_var_value): Only check value_lazy for memory lvals.
658 * valarith.c (value_subscripted_rvalue): Likewise.
659 * valops.c (value_fetch_lazy): Handle both memory and register
661 (search_struct_field, value_slice): Only check value_lazy for memory
663 * value.c (struct value): Update comment for lazy.
664 (value_primitive_field): Only check value_lazy for memory lvals.
665 * value.h (value_lazy): Update comment.
666 (value_of_register_lazy): Declare.
668 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
670 * corefile.c (reopen_exec_file): Close any open files.
672 2008-04-29 Joel Brobecker <brobecker@adacore.com>
674 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
675 show_memory_breakpoints to 1 while reading the instruction bundle.
677 2008-04-29 Joel Brobecker <brobecker@adacore.com>
679 * gdbarch.sh: Document the return_value method. Explain that
680 the FUNCTYPE parameter might be NULL.
681 * gdbarch.h: Regenerated.
682 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
683 type when calling using_struct_return, as this is unnecessary
686 2008-04-28 Joel Brobecker <brobecker@adacore.com>
688 * terminal.h (create_tty_session): Fix return type.
690 2008-04-26 Vladimir Prus <vladimir@codesourcery.com>
692 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
694 2008-04-26 Joel Brobecker <brobecker@adacore.com>
696 * breakpoint.c (condition_command, commands_from_control_command)
697 (break_command_really): Minor reformatting.
699 2008-04-25 Pedro Alves <pedro@codesourcery.com>
701 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
703 2008-04-25 Pedro Alves <pedro@codesourcery.com>
705 * amd64-tdep.c (amd64_get_longjmp_target): New.
706 (amd64_init_abi): Register amd64_get_longjmp_target as
707 gdbarch_get_longjmp_target callback.
708 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
710 2008-04-25 Pedro Alves <pedro@codesourcery.com>
712 * breakpoint.h (enum bpstat_what_main_action): Delete
713 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
715 * breakpoint.c (clrs): Delete.
716 (bpstat_what): Update table.
718 * infrun.c (handle_inferior_event): Remove
719 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
721 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
723 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
724 Adjust all prototypes using mi_cmd_args_ftype to use
726 (struct mi_cmd): Remove the args_func field.
727 * mi/mi-cmds.c: Don't provide value for the args_func field.
728 * mi/mi-main.c (mi_execute_async_cli_command)
729 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
730 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
731 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
732 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
733 (mi_cmd_target_download): Adjust.
734 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
735 (mi_cmd_execute): Do not check for args_func.
736 (mi_execute_async_cli_command): Adjust.
737 * mi/mi-parse.c: Don't check for args_func.
739 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
741 * breakpoint.c (bpstat_check_location)
742 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
743 New, extracted from bpstat_stop_status.
744 (bpstat_stop_status): Use the above.
746 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
748 * mi/mi-main.c (last_async_command): Rename to current_token.
749 (previous_async_command): Remove.
750 (mi_cmd_gdb_exit): Adjust.
751 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
752 (mi_cmd_target_select): Adjust.
753 (mi_cmd_execute): Don't set previous_async_command. Free token
754 here even in async mode.
755 (mi_execute_async_cli_command): Adjust.
756 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
758 (mi_load_progress): Adjust.
760 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
762 * infcmd.c (step_1_continuation): Always disable longjmp
763 breakpoint if we're not going to do another step.
765 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
768 * breakpoint.c (until_break_command_continuation): Add
769 the 'error' parameter. Directly delete the breakoint as
770 opposed to running cleanups.
771 (until_break_command): Install continuation only
772 after starting the target. Don't use exec cleanups,
773 use ordinary cleanups. Discard cleanups is successfully
774 started the target in async mode.
775 (make_cleanup_delete_breakpoint): Remove.
776 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
778 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
780 (struct continations): Add the 'error' parameter to the
781 continuation_hook field.
782 (add_continuation, do_all_continuations)
783 (add_intermediate_continuation)
784 (do_all_intermediate_continuations): Add the 'error' parameter.
785 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
786 * inf-loop.c (inferior_event_handler): Instead of calling
787 discard_all_continuations, use do_all_continuations with 1 as
788 'error' parameter. Pass 0 as 'error' parameter in existing uses
789 of discard_all_continuations.
790 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
792 (step_once): Install continuation only after resuming the target.
793 (step_1_continuation): Disable longjmp breakpoint on error.
794 (finish_command_continuation): Add the error parameter. Delete
795 the finish breakpoint directly, do not use cleanups.
796 (finish_command): Do not use exec_cleanups. Always setup
797 continuation. For sync case, immediately run them.
798 (attach_command_continuation): Add the error parameter.
799 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
800 remove step_resume_breakpoint -- adjust delete it directly.
801 * interps.c (interp_set): Adjust call to do_all_continations.
802 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
804 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
806 (mi_cmd_execute): Do not use exec_cleanup.
807 (mi_execute_async_cli_command): Simplify the string concatenation
808 logic. Do no use exec cleanup.
809 (mi_exec_async_cli_cmd_continuation): New parameter error.
810 Free last_async_command.
811 * top.c (command_line_handler_continuation): New parameter error.
812 * utils.c (exec_cleanup_chain, make_exec_cleanup)
813 (do_exec_cleanups): Remove.
814 (add_continuation, do_all_continations)
815 (add_intermediate_continuation)
816 (do_all_intermediate_continuations): New parameter error.
818 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
820 * breakpoint.h (bp_location_p): New typedef.
821 Register a vector of bp_location_p.
822 * breakpoint.c (always_inserted_mode)
823 (show_always_inserted_mode): New.
824 (unlink_locations_from_global_list): Remove.
825 (update_global_location_list)
826 (update_global_location_list_nothrow): New.
827 (update_watchpoint): Don't free locations.
828 (should_insert_location): New.
829 (insert_bp_location): Use should_insert_location.
830 (insert_breakpoint_locations): Copied from
832 (insert_breakpoint): Use insert_breakpoint_locations.
833 (bpstat_stop_status): Call update_global_location_list
834 when disabling breakpoint.
835 (allocate_bp_location): Don't add to bp_location_chain.
837 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
838 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
839 (enable_overlay_breakpoints, disable_overlay_breakpoints)
840 (set_longjmp_resume_breakpoint)
841 (enable_watchpoints_after_interactive_call_stop)
842 (disable_watchpoints_before_interactive_call_start)
843 (create_internal_breakpoint)
844 (create_fork_vfork_event_catchpoint)
845 (create_exec_event_catchpoint, set_momentary_breakpoint)
846 (create_breakpoints, break_command_1, watch_command_1)
847 (create_exception_catchpoint)
848 (handle_gnu_v3_exceptions)
849 (disable_breakpoint, breakpoint_re_set_one)
850 (create_thread_event_breakpoint, create_solib_event_breakpoint)
851 (create_ada_exception_breakpoint): : Don't call check_duplicates.
852 Call update_global_location_list.
853 (delete_breakpoint): Don't remove locations and don't
854 try to reinsert them. Call update_global_location_list.
855 (update_breakpoint_locations): Likewise.
856 (restore_always_inserted_mode): New.
857 (update_breakpoints_after_exec): Temporary disable
858 always inserted mode.
859 * Makefile.in: Update dependencies.
861 * infrun.c (proceed): Remove breakpoints while stepping
863 (handle_inferior_event): Don't remove or insert
865 * linux-fork.c (checkpoint_command): Remove breakpoints
866 before fork and insert after.
867 (linux_fork_context): Remove breakpoints before switch
869 * target.c (target_disconnect, target_detach): Remove
870 breakpoints from target.
873 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
875 * breakpoint.c (print_one_breakpoint_location): In MI
876 mode, report the location string the breakpoint was
877 originally created with.
879 2008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
881 * Makefile.in (xtensa-tdep.o): Update dependencies.
882 * configure.tgt (xtensa*): Update dependencies.
883 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
884 Local variable areg renamed to arreg.
885 (areg_number): New function.
886 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
887 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
888 replaced by arreg_number.
889 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
890 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
891 (xtensa_scan_prologue): New function.
892 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
893 when ENTRY instraction hasn't been executed yet. Get the frame pointer
894 value based on prologue analysis. Fix the bugs preventing WS and
895 AR4-AR7/A11 registers from getting right values for intermediate frames,
896 whose registers have been already spilled.
897 (xtensa_frame_prev_register): Fix WS register value. Use are_number
898 and arreg_number appropriately.
899 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
900 svr4_ilp32_fetch_link_map_offsets.
902 2008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
904 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
905 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
907 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
909 * acinclude.m4: Add override.m4.
910 * configure: Regenerate.
912 2008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
914 * ada-lang.c (get_selections): Variable PROMPT made non-const and
915 initialized with a trailing space now. Use PROMPT_ARG of
916 COMMAND_LINE_INPUT instead of printing it ourselves.
918 2008-04-22 Joel Brobecker <brobecker@adacore.com>
920 * NEWS: Document support for 64-bit core file.
922 2008-04-22 Corinna Vinschen <vinschen@redhat.com>
924 * NEWS: Add information on calling convention and new SH CLI options.
926 * sh-tdep.c (sh_cc_gcc): New static string.
927 (sh_cc_renesas): Ditto.
928 (sh_cc_enum): New static string array.
929 (sh_active_calling_convention): New static string pointer denoting
930 active user chosen ABI.
931 (sh_is_renesas_calling_convention): New function to return function
932 specific ABI, or user choice if necessary.
933 (sh_use_struct_convention): Rename first argument and turn around its
934 meaning. Check for renesas ABI and return accordingly.
935 (sh_use_struct_convention_nofpu): New function.
936 (sh_next_flt_argreg): Get function type as third parameter. Check
937 for renesas ABI and choose floating registers accordingly.
938 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
939 struct return slot accordingly.
940 (sh_push_dummy_call_nofpu): Ditto.
941 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
942 Evaluate ABI and give to sh_use_struct_convention_nofpu.
943 (sh_return_value_fpu): Evaluate ABI and give to
944 sh_use_struct_convention.
945 (show_sh_command): New function.
946 (set_sh_command): Ditto.
947 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
950 * gdbarch.sh (return_value): Add func_type argument.
951 * gdbarch.c: Regenerate.
953 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
954 val_type so as not to collide with value_type function. Call
955 using_struct_return with additional function type argument.
956 * infcall.c (call_function_by_hand): Call using_struct_return and
957 gdbarch_return_value with additional function type argument.
958 * infcmd.c (print_return_value): Take addition func_type argument.
959 Call gdbarch_return_value with additional function type argument.
960 (finish_command_continuation): Call print_return_value with additional
961 function type argument.
962 (finish_command): Ditto.
963 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
964 additional function type argument.
965 * stack.c (return_command): Call using_struct_return and
966 gdbarch_return_value with additional function type argument.
967 * value.c (using_struct_return): Take additional function type argument.
968 * value.h (using_struct_return): Accommodate declaration.
969 * alpha-tdep.c (alpha_return_value): Add func_type argument.
970 * amd64-tdep.c (amd64_return_value): Ditto.
971 * arm-tdep.c (arm_return_value): Ditto.
972 * avr-tdep.c (avr_return_value): Ditto.
973 * cris-tdep.c (cris_return_value): Ditto.
974 * frv-tdep.c (frv_return_value): Ditto.
975 * h8300-tdep.c (h8300_return_value): Ditto.
976 (h8300h_return_value): Ditto.
977 * hppa-tdep.c (hppa32_return_value): Ditto.
978 (hppa64_return_value): Ditto.
979 * i386-tdep.c (i386_return_value): Ditto.
980 * ia64-tdep.c (ia64_return_value): Ditto.
981 * iq2000-tdep.c (iq2000_return_value): Ditto.
982 * m32c-tdep.c (m32c_return_value): Ditto.
983 * m32r-tdep.c (m32r_return_value): Ditto.
984 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
985 * m68k-tdep.c (m68k_return_value): Ditto.
986 (m68k_svr4_return_value): Ditto.
987 * m88k-tdep.c (m88k_return_value): Ditto.
988 * mep-tdep.c (mep_return_value): Ditto.
989 * mips-tdep.c (mips_eabi_return_value): Ditto.
990 (mips_n32n64_return_value): Ditto.
991 (mips_o32_return_value): Ditto.
992 (mips_o64_return_value): Ditto.
993 * mn10300-tdep.c (mn10300_return_value): Ditto.
994 * mt-tdep.c (mt_return_value): Ditto.
995 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
996 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
997 (ppc_sysv_abi_broken_return_value): Ditto.
998 (ppc64_sysv_abi_return_value): Ditto.
999 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
1000 (ppc_sysv_abi_broken_return_value): Ditto.
1001 (ppc64_sysv_abi_return_value): Ditto.
1002 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
1003 * rs6000-tdep.c (rs6000_return_value): Ditto.
1004 * s390-tdep.c (s390_return_value): Ditto.
1005 * score-tdep.c (score_return_value): Ditto.
1006 * sh-tdep.c (sh_return_value_nofpu): Ditto.
1007 (sh_return_value_fpu): Ditto.
1008 * sh64-tdep.c (sh64_return_value): Ditto.
1009 * sparc-tdep.c (sparc32_return_value): Ditto.
1010 * sparc64-tdep.c (sparc64_return_value): Ditto.
1011 * spu-tdep.c (spu_return_value): Ditto.
1012 * v850-tdep.c (v850_return_value): Ditto.
1013 * vax-tdep.c (vax_return_value): Ditto.
1014 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
1015 * xtensa-tdep.c (xtensa_return_value): Ditto.
1017 * gdbtypes.h (struct type): Add calling_convention member.
1018 * dwarf2read.c (read_subroutine_type): Add calling convention read
1019 from DW_AT_calling_convention attribute to function type.
1021 2008-04-22 Markus Deuling <deuling@de.ibm.com>
1023 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
1024 multi_f77_subscript to support values from registers.
1025 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
1026 * value.h (value_subscripted_rvalue): Add prototype.
1028 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
1030 * f-valprint.c (f_val_print): Likewise.
1032 2008-04-21 Craig Silverstein <csilvers@google.com>
1034 * dwarf2read.c (zlib_decompress_section): Define abfd in the
1037 2008-04-21 Pedro Alves <pedro@codesourcery.com>
1039 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
1040 section is not a code section.
1042 2008-04-19 Craig Silverstein <csilvers@google.com>
1044 * NEWS: Add information on compressed debug sections.
1046 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
1048 * mi/mi-cmd-var.c (varobj_update_one): Print new
1049 value for variable objects that changed type.
1051 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
1053 * varobj.c (varobj_invalidate): Don't touch floating
1056 2008-04-19 Mark Kettenis <kettenis@gnu.org>
1058 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
1059 (multiple_symbols_cancel): Remove extra const.
1060 * symtab.h: Likewise.
1062 2008-04-19 Nick Roberts <nickrob@snap.net.nz>
1064 * interps.c (top_level_interpreter): Rename static variable...
1065 (top_level_interpreter_ptr): ...to this.
1066 (top_level_interpreter): New function.
1068 * interps.h: New extern for top_level_interpreter.
1070 * linespec.c: Include interps.h and mi/mi-cmds.h.
1071 (decode_line_2): When using MI, always set all breakpoints in menu.
1073 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
1075 2008-04-18 Craig Silverstein <csilvers@google.com>
1077 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
1078 * config.in, configure: Regenerate.
1079 * dwarf2read.c: Include zlib.h if present.
1080 Modified *_SECTION macros.
1081 (section_is_p): New.
1082 (dwarf2_locate_sections): Use section_is_p instead of strcmp
1083 (dwarf2_resize_section): New.
1084 to determine whether a given section has a given name.
1085 (zlib_decompress_section): New.
1086 (dwarf2_read_section): Read the compressed section if present
1088 * MAINTAINERS: Added myself to section Write After Approval.
1090 2008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
1092 * defs.h (exec_set_section_offsets): Remove prototype.
1093 * exec.c (exec_set_section_offsets): Remove function.
1095 2008-04-18 Joel Brobecker <brobecker@adacore.com>
1097 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
1098 in the search for the matching symbol.
1100 2008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
1102 * breakpoint.c (update_watchpoint): Always reparse
1105 2008-04-17 Joel Brobecker <brobecker@adacore.com>
1107 * breakpoint.c (print_one_breakpoint_location): Make sure to print
1108 the breakpoint address only once.
1110 2008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
1112 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
1113 rather than a hard-coded architecture, for xcoff executables.
1115 2008-04-17 Doug Evans <dje@google.com>
1117 * buildsym.c (watch_main_source_file_lossage): New fn.
1118 (end_symtab): Call it.
1120 * source.c (find_and_open_source): Add some comments clarifying
1121 handling of FULLNAME argument. Make static. Remove pointless
1124 2008-04-17 Pedro Alves <pedro@codesourcery.com>
1126 * inf-loop.c (inferior_event_handler): Also run the intermediate
1127 continuations in the INF_EXEC_COMPLETE case.
1129 2008-04-16 Tom Tromey <tromey@redhat.com>
1131 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
1132 (set_cmd_async_ok, get_cmd_async_ok): Declare.
1133 * cli/cli-decode.c (set_cmd_async_ok): New function.
1134 (get_cmd_async_ok): New function.
1135 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
1137 * top.c (execute_command): Use get_cmd_async_ok.
1138 * infcmd.c: Include cli/cli-decode.h.
1139 (_initialize_infcmd): Mark "interrupt" as async-ok.
1140 * Makefile.in (infcmd.o): Depend on cli_decode_h.
1142 2008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
1145 * exec.c: Correct "arch-utils.h" include.
1147 2008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
1150 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
1151 to allow printing to 'see' real reason of stop. This fixes PR 2424.
1152 * breakpoint.c (bpdisp_texst): New function. The function takes over
1153 the role of bpstats static array in print_one_breakpoint_location.
1154 (print_it_typical): Print "Temporary breakpoint" instead
1155 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
1156 protocols, print disp field.
1157 (print_one_breakpoint_location): Removed bpdisps static definition.
1158 Call new bpstat_text function to get value for 'disp' field.
1159 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
1161 2008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
1163 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
1164 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
1165 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
1166 * gnulib/Makefile.in: Regenerate.
1168 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
1170 * Makefile.in (GNULIB_H): New. Trigger all-lib.
1171 (defs_h): Use $(GNULIB_H).
1172 (all-lib): Depend on gnulib/Makefile.
1173 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
1174 * config.in, gnulib/Makefile.in: Regenerated.
1176 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
1178 * Makefile.in (LIBGNU, INCGNU): Define.
1179 (INTERNAL_CFLAGS_BASE): Add INCGNU.
1180 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
1182 ($(LIBGNU), all-lib): New rules.
1183 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
1184 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
1185 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
1186 * gnulib: New directory, from gnulib-tool.
1187 * configure, aclocal.m4: Regenerated.
1189 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
1191 * linux-thread-db.c (have_threads_callback): Check thread->private.
1193 2008-04-13 Nick Roberts <nickrob@snap.net.nz>
1194 Vladimir Prus <vladimir@codesourcery.com>
1197 * varobj.c (value_of_root): Update the expression for
1199 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
1202 2008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
1204 * mi/mi-cmd-var.c: Include "mi-getopt.h".
1205 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
1206 (mi_cmd_var_set_format): Use new mi_parse_format.
1207 (mi_cmd_var_evaluate_expression): Support for -f option to specify
1209 * Makefile.in (mi-cmd-var.o): Update dependencies.
1211 * varobj.h (varobj_get_formatted_value): Declare.
1212 * varobj.c (my_value_of_variable): Added format parameter.
1213 (cplus_value_of_variable): Likewise.
1214 (java_value_of_variable): Likewise.
1215 (c_value_of_variable): Likewise. Evaluate expression based
1216 on format parameter.
1217 (struct language_specific): Add format parameter to function member
1219 (varobj_get_formatted_value): New.
1220 (varobj_get_value): Added format parameter to method call.
1222 2008-04-08 Joel Brobecker <brobecker@adacore.com>
1224 * stabsread.c (cleanup_undefined_types_noname): Manually set the
1225 instance flags of the undefined type before calling replace_type.
1227 2008-04-08 Vladimir Prus <vladimir@codesourcery.com>
1229 * target.h (enum strata): Remove the download_stratum.
1231 2008-04-07 Doug Evans <dje@google.com>
1233 * buildsym.h (last_source_file): Add dwarf info to comment.
1234 (last_source_start_addr): Ditto.
1236 2008-04-07 Pedro Alves <pedro@codesourcery.com>
1238 * alphanbsd-tdep.c: Include "target.h".
1239 * mn10300-tdep.c: Include "target.h".
1240 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
1242 2008-04-06 Vladimir Prus <vladimir@codesourcery.com>
1244 Fix breakpoint condition that use member variables.
1245 * valops.c (check_field): Remove.
1246 (check_field_in): Rename to check_field.
1247 (value_of_this): Use la_name_of_this.
1248 * value.h (check_field): Adjust prototype.
1250 * language.h (la_value_of_this): Rename to la_name_of_this.
1251 * language.c (unknown_language_defn): Specify "this" for
1253 (auto_language_defn): Likewise.
1254 (local_language_defn): Likewise.
1255 * ada-lang.c (ada_language_defn): Adjust comment.
1256 * c-lang.c (c_language_defn): Adjust comment.
1257 (cplus_language_defn): Specify "this" for name_of_this.
1258 (asm_language_defn): Adjust comment.
1259 (minimal_language_defn): Adjust comment.
1260 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
1261 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
1262 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
1263 * objc-lang.c (objc_language_defn): Specify "self" for
1265 * p-lang.c (pascal_language_defn): Specify "this" for
1267 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
1269 * symtab.c (lookup_symbol_aux): Lookup "this" in the
1270 proper scope, and check for field in type of "this", without
1271 trying to create a value.
1273 2008-04-04 Pedro Alves <pedro@codesourcery.com>
1275 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
1276 (mi_error_message): Delete declaration.
1277 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
1278 returning MI_CMD_ERROR.
1279 * mi/mi-main.c (mi_error_message): Delete.
1280 (mi_cmd_exec_interrupt):
1281 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
1282 (mi_cmd_thread_info): Call error instead of returning
1284 (mi_cmd_data_list_register_values): Call error instead of
1285 returning MI_CMD_ERROR. Adapt to new get_register interface.
1286 (get_register): Change return typo to void. Call error instead of
1287 returning MI_CMD_ERROR.
1288 (mi_cmd_data_write_register_values): Call error instead of
1289 returning MI_CMD_ERROR.
1290 (mi_cmd_list_features): Return MI_CMD_DONE.
1291 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
1292 (mi_execute_command): Always print exceptions with -error.
1294 2008-04-04 Joel Brobecker <brobecker@adacore.com>
1296 * NEWS: Mention new commands set/show multiple-symbols.
1298 2008-04-03 Joel Brobecker <brobecker@adacore.com>
1300 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
1301 (multiple_symbols_cancel): New constants.
1302 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
1303 (multiple_symbols_select_mode): New function.
1304 (_initialize_symtab): Add new set/show multiple-symbols commands.
1305 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
1306 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
1307 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
1309 * linespec.c (decode_line_2): Likewise.
1311 2008-04-03 Doug Evans <dje@sebabeach.org>
1313 * symtab.h (enum free_code): Delete free_contents, unused.
1314 * symmisc.c (free_symtab_block): Delete.
1315 (free_symtab, case free_code): Delete.
1317 2008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
1319 * valops.c (value_cast_structs): New function. Cast related
1320 STRUCT types up/down and return cast value. The body of this
1321 function comes mostly from value_cast_pointers.
1322 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
1323 to value_cast_structs. Now value_cast_pointers needs only create
1324 appropriate reference after using value_cast_structs for actual
1326 (value_cast): Handle references.
1328 2008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
1330 * MAINTAINERS: Added myself to section Write After Approval.
1332 2008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
1334 * ia64-tdep.c (examine_prologue): Correct array access.
1336 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
1338 * cp-support.c (first_component_command): Return if no arguments.
1340 2008-03-28 Carlos O'Donell <carlos@codesourcery.com>
1342 * ser-mingw.c (ser_windows_open): Open requested name.
1344 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
1346 * MAINTAINERS: Added myself.
1348 2008-03-28 Pedro Alves <pedro@codesourcery.com>
1350 * target.c (find_default_run_target): Allow a NULL `do_mesg'
1351 parameter. If it is NULL, don't call error.
1352 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
1353 `do_mesg' parameter to find_default_run_target. If no target was
1356 2008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
1358 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
1359 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
1360 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
1362 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
1364 2008-03-27 Joel Brobecker <brobecker@adacore.com>
1368 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
1370 * features/Makefile (%.dat): Set xmltarget to the base filename
1371 of the XML source, without subdirectory.
1372 * regformats/rs6000/powerpc-32.dat: Regenerate.
1373 * regformats/rs6000/powerpc-64.dat: Regenerate.
1374 * regformats/rs6000/powerpc-e500.dat: Regenerate.
1376 2008-03-27 Markus Deuling <deuling@de.ibm.com>
1378 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
1381 2008-03-27 Nick Roberts <nickrob@snap.net.nz>
1383 * mi/mi-main.c (enum captured_mi_execute_command_actions):
1384 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
1386 2008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
1388 * objfiles.h (struct objfile): New GDBARCH member.
1389 (get_objfile_arch): Add prototype.
1390 * objfiles.c: Include "arch-utils.h".
1391 (allocate_objfile): Look up gdbarch associated with bfd.
1392 (get_objfile_arch): New function.
1393 * Makefile (objfiles.o): Update dependencies.
1395 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
1397 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
1399 (locexpr_describe_location): Replace current_gdbarch by
1401 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
1402 (dwarf2_add_field): Likewise.
1403 (read_tag_pointer_type): Likewise.
1404 (read_base_type): Likewise.
1405 (new_symbol): Likewise.
1407 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
1408 (decode_base_type, decode_function_type): Likewise.
1409 (coff_read_struct_type, coff_read_enum_type): Likewise.
1410 (coff_symtab_read): Replace current_gdbarch by objfile arch.
1411 (decode_base_type): Likewise.
1412 (coff_read_enum_type): Likewise.
1413 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
1414 (coff_read_enum_type): Likewise.
1416 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
1417 (end_psymtab): Likewise.
1418 (process_one_symbol): Likewise.
1420 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
1421 (parse_procedure): Likewise.
1422 (parse_partial_symbols): Likewise.
1424 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
1426 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
1427 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
1429 (read_range_type): Replace current_gdbarch by objfile arch. Replace
1430 static range_index_type by built-in type.
1431 (read_one_struct_field): Replace current_gdbarch by objfile arch.
1432 (read_enum_type): Likewise.
1434 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
1437 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
1439 * varobj.h (varobj_floating_p): Declare.
1440 * varobj.c (varobj_floating_p): New.
1441 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
1442 '@' as the name, update all floating varobjs.
1444 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
1446 * varobj.c (struct varobj_root): Rename use_selected_frame to
1447 floating, and clarify the meaning.
1448 (varobj_create, varobj_update, new_root_variable): Adjust.
1449 (value_of_root): Don't use type_changed as in variable,
1451 (c_value_of_root): Adjust.
1453 2008-03-25 Pedro Alves <pedro@codesourcery.com>
1455 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
1457 (linux_nat_wait): Add main lwp to gdb's thread list.
1458 * linux-thread-db.c (find_new_threads_callback): Also attach to
1459 already listed threads which thread_db didn't know about yet.
1461 2008-03-25 Pedro Alves <pedro@codesourcery.com>
1463 * linux-nat.c (drain_queued_events): Fix comment typo.
1464 (linux_nat_attach): In async mode, don't rely on storing a pending
1465 status. Instead place the wait status on the pipe.
1466 (linux_nat_resume): Remove unreacheable shortcut code in async
1468 (stop_wait_callback): In async mode, don't store pending status.
1469 Instead, cancel breakpoints or resend the signal appropriatelly.
1470 (cancel_breakpoint): New, refactored from
1471 cancel_breakpoints_callback.
1472 (cancel_breakpoints_callback): Call cancel_breakpoint.
1473 (pipe_to_local_event_queue): Remove special token processing.
1474 (linux_nat_wait): Issue an internal error if a pending status is
1475 found in async mode.
1477 2008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
1479 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
1481 2008-03-24 Nick Roberts <nickrob@snap.net.nz>
1482 Vladimir Prus <vladimir@codesourcery.com>
1484 * varobj.c (struct varobj_root): New component thread_id.
1485 (varobj_get_thread_id, check_scope): New functions.
1486 (c_value_of_root): Use check_scope. Switch to the
1487 proper thread if necessary.
1489 * varobj.h (varobj_get_thread_id): New extern.
1491 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
1493 2008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
1496 * top.c: Revert 2008-03-21 changes.
1498 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
1500 * thread.c (make_cleanup_restore_current_thread): Make it
1502 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
1503 * varobj.c (varobj_update): Don't save/restore frame.
1504 (c_value_of_root): Save/restore thread and frame here,
1505 using make_cleanup_restore_current_thread.
1506 * Makefile.in: Update dependecies.
1508 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
1510 * varobj.c (struct varobj_root): Clarify
1511 comment on the frame field.
1512 (varobj_create): Don't set frame if we have no
1515 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
1518 Suggested by Jan Kratochvil:
1519 * top.c (gdb_rl_operate_and_get_next_completion): Call
1520 rl_redisplay_function.
1521 (gdb_rl_redisplay): New.
1522 (init_main): Set rl_redisplay_function.
1524 2008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
1526 * aix-thread.c (pdc_read_regs): Fix compiler warning.
1527 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
1528 (store_regs_kernel_thread): Likewise.
1530 2008-03-21 Pedro Alves <pedro@codesourcery.com>
1532 Linux native async support.
1534 * target.h (struct target_ops): Delete to_async_mask_value and add
1536 (target_is_async_p, target_async): Formatting.
1537 (target_async_mask_value): Delete.
1538 (target_async_mask): Delete function declaration, and add new
1539 target macro with the same name.
1541 * target.c (update_current_target): Replace to_async_mask_value by
1542 to_async_mask. Default to_async_mask to return_one.
1543 (target_async_mask): Delete.
1544 (find_default_can_async_p, find_default_is_async_p): New.
1545 (init_dummy_target): register find_default_can_async_p and
1546 find_default_is_async_p on the dummy target.
1548 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
1549 (debug_linux_nat_async): New global.
1550 (show_debug_linux_nat_async): New function.
1551 (linux_nat_async_enabled, linux_nat_async_mask_value)
1552 (linux_nat_event_pipe, linux_nat_num_queued_events)
1553 (linux_nat_async_events_enabled): New globals.
1554 (struct waitpid_result): New struct.
1555 (waitpid_queue): New global.
1556 (queued_waitpid, push_waitpid, drain_queued_events): New.
1557 (my_waitpid): Call queued_waitpid.
1558 (linux_child_follow_fork): Disable async events during the call.
1559 (blocked_mask): Delete.
1560 (sync_sigchld_action, async_sigchld_action): New globals.
1561 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
1562 async mode, block events during the call.
1563 (linux_nat_create_inferior): New.
1564 (linux_nat_attach): In sync mode, restore the mask states. In
1565 async mode, wake the event loop immediatelly.
1566 (detach_callback): Drain all queued events of the lwp we're
1568 (linux_nat_detach): Block async mode, and drain events of the main
1570 (linux_nat_resume): If in async mode, mask async events during the
1571 call. If short circuiting, force event loop to wake up. If
1572 resuming, set target_executing, and register target events in the
1574 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
1575 (linux_nat_wait): In async mode, block events during the call.
1576 Only enable/disable passing SIGINT to the inferior in sync mode.
1577 Get events from local waitpid queue. If no interesting events was
1578 found, return to events loop. Reregister target events in the
1579 event loop on exit. In sync mode, no need to reblock SIGCHLD.
1580 (linux_nat_kill): Disable events on entry.
1581 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
1582 here. Detach async mode from the event loop if there are no more
1583 forks available, otherwise leave it on.
1584 (sigchld_handler): Assure this is called only in sync mode.
1585 (linux_async_permitted, linux_async_permitted_1): New globals.
1586 (set_maintenance_linux_async_permitted)
1587 (show_maintenance_linux_async_permitted): New functions.
1588 (linux_nat_is_async_p, linux_nat_can_async_p)
1589 (linux_nat_async_mask): New.
1590 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
1591 (get_pending_events, async_sigchld_handler): New.
1592 (linux_nat_async_events): New.
1593 (async_terminal_is_ours): New global.
1594 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
1595 (async_client_callback, async_client_context): New.
1596 (linux_nat_async_file_handler, linux_nat_async)
1597 (linux_nat_disable_async, linux_nat_enable_async): New.
1598 (linux_nat_add_target): Register linux_nat_create_inferior,
1599 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
1600 linux_nat_async_mask, linux_nat_terminal_inferior and
1601 linux_nat_terminal_ours.
1602 (_initialize_linux_nat): Remove local action variable, and update
1603 code that used it to use sync_sigchld_action. Add new
1604 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
1605 set/show command in the maintenance class. Add new "linux-async"
1606 maintenance set/show command. Block SIGCHLD by default. Setup
1607 async_sichld_action, and sync_sigchld_action. Install the default
1609 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
1612 * linux-thread-db.c (re_check_for_thread_db): New.
1613 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
1614 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
1615 (thread_db_async_mask): New.
1616 (init_thread_db_ops): Register thread_db_can_async_p,
1617 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
1619 * remote.c (remote_async_mask_value): New.
1620 (remote_return_zero): New.
1621 (init_remote_ops): Register remote_return_zero as callbacks of
1622 to_can_async_p and to_is_async_p.
1623 (remote_can_async_p, remote_is_async_p, remote_async): Update to
1624 use remote_async_mask_value.
1625 (remote_async_mask): New.
1626 (init_remote_async_ops): Remove to_async_mask_value setting and
1627 register remote_async_mask as to_async_mask callback in
1630 * Makefile.in (linux-nat.o): Update.
1632 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
1634 * gdbthread.h (add_thread_with_info): New.
1635 * linux-thread-db.c: Add some documentation.
1636 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
1637 (struct private_thread_info): Remove th_valid and ti_valid.
1638 Replace ti with tid.
1639 (thread_get_info_callback): Do not add TID to the new ptid. Do
1641 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
1642 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
1644 (attach_thread): Handle an already-existing thread. Use
1645 add_thread_with_info. Cache the th and tid.
1646 (detach_thread): Verify that private was set. Remove verbose
1647 argument and printing. Update caller.
1648 (thread_db_detach): Do not adjust inferior_ptid.
1649 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
1650 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
1651 (thread_db_wait): Do not use lwp_from_thread.
1652 (thread_db_pid_to_str): Use the cached TID.
1653 (thread_db_extra_thread_info): Check that private is set.
1654 (same_ptid_callback): Delete.
1655 (thread_db_get_thread_local_address): Do not use it or check
1656 is_thread. Check that private is set. Assume that the thread
1657 handle is already cached.
1658 (init_thread_db_ops): Remove to_resume and to_kill.
1659 * thread.c (add_thread_with_info): New.
1660 (add_thread): Use it.
1661 * linux-nat.c (find_thread_from_lwp): Delete.
1662 (exit_lwp): Do not use it. Check print_thread_events. Print before
1663 deleting the thread.
1664 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
1665 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
1666 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
1667 printf_unfiltered for thread exits.
1668 * procfs.c (procfs_wait): Likewise.
1670 2008-03-21 Chris Demetriou <cgd@google.com>
1672 * symtab.c (rbreak_command): Quote symbol name before passing
1673 it to break_command.
1675 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
1677 * eval.c (evaluate_subexp_for_address): Clarify error message.
1678 Use value_must_coerce_to_target.
1679 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
1680 * valops.c (value_assign): Call value_coerce_to_target when
1681 assigning to anything but internalvars. Leave GDB-side arrays
1682 as arrays when assigning to internalvars.
1683 (value_must_coerce_to_target, value_coerce_to_target): New.
1684 (value_coerce_array, value_addr): Call value_coerce_to_target.
1685 (value_array): Create the array in GDB's memory instead of
1687 * value.h (value_must_coerce_to_target, value_coerce_to_target):
1690 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
1692 * top.c (quit_confirm): Warn that we will kill the program.
1694 2008-03-19 Pedro Alves <pedro@codesourcery.com>
1696 * inflow.c (terminal_ours_1): Guard access to
1697 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
1699 2008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
1700 Jim Blandy <jimb@codesourcery.com>
1701 Daniel Jacobowitz <drow@false.org>
1703 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
1704 (dwarf2_read_address): Update prototype.
1706 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
1707 (signed_address_type): Likewise.
1708 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
1709 (execute_stack_op): Update calls to unsigned_address_type,
1710 signed_address_type and dwarf2_read_address. Fix implementation
1711 of DW_OP_deref_size.
1713 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
1714 (dwarf2_per_cu_addr_size): Likewise.
1715 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
1716 (struct dwarf2_loclist_baton): Likewise.
1718 * dwarf2loc.c (find_location_expression): Update calls to
1719 dwarf2_read_address. Use dwarf2_per_cu_objfile and
1720 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
1721 (locexpr_describe_location): Likewise.
1722 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
1723 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
1724 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
1725 to dwarf2_per_cu_addr_size (per_cu).
1726 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
1727 (loclist_read_variable): Likewise.
1728 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
1730 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
1731 instead of baton->objfile.
1732 (dwarf2_per_cu_obfile): New function.
1733 (dwarf2_per_cu_addr_size): Likewise.
1735 * dwarf2-frame.c (struct comp_unit): Move higher.
1736 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
1737 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
1738 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
1739 parameter by using fde->eh_frame_p. Use read_encoded_value
1740 to implement DW_CFA_set_loc.
1741 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
1742 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
1743 execute_stack_op and execute_cfa_program.
1744 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
1745 (size_of_encoded_value): Remove.
1746 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
1747 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
1748 (add_cie): Set cie->unit backlink.
1749 (decode_frame_entry_1): Set cie->addr_size. Update calls to
1751 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
1753 2008-03-17 Markus Deuling <deuling@de.ibm.com>
1755 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
1756 gdbarch_bfd_arch_info.
1758 2008-03-17 Joel Brobecker <brobecker@adacore.com>
1760 * aix-thread.c (pdc_read_regs): Minor reformatting.
1762 2008-03-17 Vladimir Prus <vladimir@codesourcery.com>
1764 * thread.c (print_thread_info): Don't insist
1765 on having current thread if there are no
1768 2008-03-17 Pedro Alves <pedro@codesourcery.com>
1770 * infcmd.c (attach_command_post_wait)
1771 (attach_command_continuation): New.
1772 (attach_command): Support background async execution, and async
1773 execution in synchronous mode.
1775 2008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
1777 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
1778 * symmisc.c (dump_symtab_1): Likewise.
1779 * wrapper.c (gdb_value_struct_elt): Likewise.
1781 2008-03-17 Pedro Alves <pedro@codesourcery.com>
1783 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
1785 2008-03-17 Pedro Alves <pedro@codesourcery.com>
1787 * linux-nat.c (linux_nat_filter_event): New, refactored from
1789 (linux_nat_wait): Call linux_nat_filter_event.
1791 2008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
1793 * top.c (execute_command): Fix uninitialized variable error.
1795 2008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
1797 * Makefile.in (amd64nbsd-nat.o): New dependency.
1798 * amd64nbsd-nat.c: Include "nbsd-nat.h".
1799 (_initialize_amd64nbsd_nat): Update target vector to use
1800 nbsd_pid_to_exec_file.
1801 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
1803 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
1805 Remove ignoring leading exec events code.
1806 * fork-child.c (startup_inferior): Do not set
1807 inferior_ignoring_leading_exec_events.
1808 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
1809 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
1810 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
1811 (handle_inferior_event): Remove code for ignoring leading exec
1813 * target.c (update_current_target): Do not inherit, or default,
1814 to_reported_exec_events_per_exec_call.
1815 (debug_to_reported_exec_events_per_exec_call): Remove.
1816 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
1817 * target.h (target_reported_exec_events_per_exec_call): Remove.
1818 (struct target): Remove the to_reported_exec_events_per_exec_call
1821 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
1823 Implement -thread-info.
1824 * gdbthread.h (print_thread_info): Declare.
1826 * thread.c (print_thread_info): New, extracted
1827 from info_threads_command and adjusted to
1828 work for CLI and MI.
1829 (info_threads_command): Use print_thread_info.
1830 * Makefile.in: Update dependencies.
1832 * mi/mi-cmds.c (mi_cmds): Specify a handler
1834 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
1835 * mi/mi-main.c (mi_cmd_thread_info): New.
1836 (mi_cmd_list_features): Include 'thread-info'.
1838 2008-03-14 Kevin Buettner <kevinb@redhat.com>
1840 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
1841 to decide whether to match instruction patterns using "sw" and "sd".
1843 2008-03-14 Pedro Alves <pedro@codesourcery.com>
1845 * infcmd.c (jump_command): Postpone disabling stdin until after
1848 2008-03-14 Pedro Alves <pedro@codesourcery.com>
1850 * inflow.c (gdb_getpgrp): New.
1851 (gdb_has_a_terminal): Use get_getpgrp.
1852 (terminal_ours_1): If attach_flag is set, don't refetch
1853 inferior_process_group.
1855 2008-03-14 Pedro Alves <pedro@codesourcery.com>
1857 * features/library-list.dtd: Allow "section" elements as children
1858 of "library". Add "section" element and describe its attributes.
1860 * solib-target.c (struct lm_info): Add section_bases member.
1861 (library_list_start_segment): Error out if seen a section element.
1862 (library_list_start_section): New.
1863 (library_list_end_library): New.
1864 (solib_target_free_library_list): Free section_bases.
1865 (section_attributes): New.
1866 (library_children): Make "segment" optional. Add "section" child.
1867 (library_list_children): Register library_list_end_library.
1868 (solib_target_relocate_section_addresses): Handle section bases.
1870 * NEWS: Mention new qXfer:libraries:read section offsets support.
1872 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
1874 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
1875 (make_exec_error_cleanup): Remove declarations.
1876 * utils.c (exec_error_cleanup_chain): Remove.
1877 (do_exec_error_cleanups, discard_exec_error_cleanups)
1878 (make_exec_error_cleanup): Remove.
1879 * event-loop.c (start_event_loop): Adjust call to
1881 * event-top.c (async_enable_stdin): Remove the paramater dummy.
1882 (async_disable_stdin): Don't register async_enable_stdin via
1884 * inf-loop.c (inferior_event_handler): Don't
1885 call do_exec_error_cleanups. Call async_enable_stdin instead.
1886 * event-loop.c (start_event_loop): Adjust call to
1888 * tui/tui-interp.c (tui_command_loop): Adjust call to
1891 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
1894 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
1895 * breakpoint.c (bpstat_do_actions): In async mode,
1896 don't jump to top expecting stop_bpstat to be already
1898 * event-loop.c (start_event_loop): Call async_enable_stdin
1900 * event-top.c (async_enable_stdin): Do nothing if sync_execution
1902 (command_handler): Do not setup continuation here.
1903 (command_line_handler_continuation): Move to...
1904 * top.c (command_line_handler_continuation): ... here.
1905 (execute_command): In async mode, register continuation.
1906 Don't check frame's language in running in async mode.
1907 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
1908 * inf-loop.c (complete_execution): Inline into...
1909 (inferior_event_handler): ... here. Clear target_executing before
1910 doing any cleanups. Don't try to show prompt if the target was
1912 * infcmd.c (signal_command): Add support for async mode.
1913 (finish_command): Only add continuation if the target was
1914 successfully resumed.
1915 * remote.c (init_async_opts): Register to_get_thread_local_address
1917 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
1918 with sync_execution.
1919 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
1922 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
1924 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
1925 * exec.c (exec_bfd_mtime): Define.
1926 (exec_close): Clear it.
1927 (exec_file_attach): Set it.
1928 * gdbcore.h (exec_bfd_mtime): Declare.
1929 * source.c (find_source_lines): Do not use bfd_get_mtime.
1931 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
1933 * top.c (simplified_command_loop): Remove.
1935 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
1937 Remove unused remote.c hooks.
1938 * remote.c (deprecated_target_resume_hook)
1939 (deprecated_target_wait_loop_hook): Remove.
1940 (remote_resume): Do not call deprecated_target_resume_hook.
1941 (remote_wait): Do not call deprecated_target_wait_loop_hook.
1942 (remote_async_wait): Likewise.
1944 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
1946 Implement MI notification for new threads.
1947 * doc/observer.texi (new_thread): Document.
1948 * observer.sh: Forward declare struct thread_info.
1949 * thread.c (add_thread): Notify observer.
1951 * interps.h (interp_init_ftype): New parameter
1953 (interp_set): Likewise.
1954 (top_level_interpreter_data): Declare.
1955 * interps.c (interp_set): New parameter top_level.
1956 Pass it to interpreter's init function. Remember
1957 top level interpreter.
1958 (interpreter_exec_cmd): Adjust.
1959 (top_level_interpreter_data): New.
1960 * main.c (captured_main): Pass 1 for top_level
1961 parameter of interp_set.
1962 * cli/cli-interp.c (cli_interpreter_init): New
1963 parameter top_level.
1964 * tui/tui-interp.c (tui_init): New parameter top_level.
1966 * mi/mi-interp.c (mi_new_thread): New.
1967 (mi_interpreter_init): If top level, register
1968 observer for new threads.
1970 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
1972 2008-03-14 Pedro Alves <pedro@codesourcery.com>
1974 * top.c (execute_command): Disable break and stop
1975 commands in async mode.
1977 2008-03-14 Pedro Alves <pedro@codesourcery.com>
1980 2008-03-14 Pedro Alves <pedro@codesourcery.com>
1981 * inf-loop.c (inferior_event_handler): Don't include remote.h.
1982 Call target_stop in the INF_QUIT_REQ case.
1983 * Makefile.in (inf-loop.o): Update.
1985 2008-03-14 Pedro Alves <pedro@codesourcery.com>
1987 * inf-loop.c (inferior_event_handler): Don't include remote.h.
1988 Call target_stop in the INF_QUIT_REQ case.
1989 * Makefile.in (inf-loop.o): Update.
1991 2008-03-14 Pedro Alves <pedro@codesourcery.com>
1993 * top.c (execute_command): Enable break, info and interrupt
1994 commands in async mode.
1996 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
1997 Daniel Jacobowitz <dan@codesourcery.com>
1999 * breakpoint.h (breakpoint_restore_shadows): New
2001 * breakpoint.c (breakpoint_restore_shadows): New.
2002 (read_memory_nobpt): Delete.
2003 * gdbcore.h (read_memory_nobpt): Delete declaration.
2004 * target.c (memory_xfer_partial): Call
2005 breakpoint_restore_shadows.
2006 (restore_show_memory_breakpoints)
2007 (make_show_memory_beakpoints_cleanup): New.
2008 (show_memory_breakpoints): New.
2009 * target.h (make_show_memory_beakpoints_cleanup): Declare.
2010 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
2011 Make sure we see memory breakpoints when checking if
2012 breakpoint is still there.
2013 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
2014 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
2015 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
2016 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
2018 2008-03-12 Pedro Alves <pedro@codesourcery.com>
2020 * thread.c (add_thread): Use printf_unfiltered to print.
2022 2008-03-12 Joel Brobecker <brobecker@gnat.com>
2024 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
2025 that is true only on x86-solaris and x86_64-solaris.
2026 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
2027 with proc_get_LDT_entry.
2029 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
2031 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
2032 * config.in, configure: Regenerate.
2033 * fork-child.c (fork_inferior): Call create_tty_session.
2034 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
2035 (create_tty_session): New function.
2036 * terminal.h: Declare create_tty_session.
2038 2008-03-12 Alan Modra <amodra@bigpond.net.au>
2041 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
2042 * mipsread.c: Include elf/internal.h.
2043 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
2046 2008-03-11 Markus Deuling <deuling@de.ibm.com>
2048 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
2049 to get at the current architecture and at the target specific vector.
2050 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
2051 remove define of I387_ST0_REGNUM.
2053 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
2055 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
2056 get at the current architecture
2057 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
2060 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
2061 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
2063 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
2064 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
2065 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
2067 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
2068 at the target specific vector.
2070 (i386_get_longjmp_target): Use get_frame_arch to get at the current
2071 architecture. Use gdbarch_tdep to get at the target specific vector.
2073 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
2074 update caller. Use gdbarch_tdep to get at the target specific vector.
2076 (i386_register_to_value: Use get_frame_arch to get at the current
2079 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
2082 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
2083 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
2084 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
2085 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
2087 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
2090 (i387_convert_register_p, i387_register_to_value,
2091 i387_value_to_register): Update call for i386_fp_regnum_p.
2093 * i387-tdep.h: Remove comment.
2094 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
2095 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
2096 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
2097 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
2098 I387_MXCSR_REGNUM): Add target specific vector as parameter.
2100 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
2102 * Makefile.in (fork-child.o): Update.
2103 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
2104 argument. Gather all gdbserver features together.
2105 * fork-child.c (exec_wrapper): New variable.
2106 (fork_inferior): Use it.
2107 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
2108 (unset_exec_wrapper_command, _initialize_fork_child): New.
2110 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
2112 * source.c (directory_command): Modify the determination of
2113 condition of terminal "from_tty".
2115 2008-03-10 Matt Rice <ratmice@gmail.com>
2117 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
2119 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
2121 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
2122 of the data passing to strtoulst function.
2123 (info_spu_signal_command): Likewise.
2125 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
2127 * mi/mi-interp.c (mi_command_loop): Remove
2130 2008-03-07 Joel Brobecker <brobecker@adacore.com>
2132 * remote.c (extended_remote_attach_1): Make local variable pid an int
2135 2008-03-07 Joel Brobecker <brobecker@adacore.com>
2137 * solib-svr4.c (svr4_same_1): New function, originally extracted
2138 from svr4_same and expanded to handle the sparc64 case.
2139 (svr4_same): Move up and reimplement using svr4_same_1.
2140 (enable_break): Use svr4_same_1 to do shared library name comparisons.
2142 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
2144 * MAINTAINERS: Move self to Paper trail.
2146 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
2148 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
2149 * event-loop.c (call_async_signal_handler): New.
2150 * event-loop.h (call_async_signal_handler)
2151 (gdb_call_async_signal_handler): Declare.
2152 (mark_async_signal_handler): Add comments.
2153 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
2154 * mingw-hdep.c (sigint_event, sigint_handler): New.
2155 (gdb_select): Use them. Wait for the readline signal handler
2157 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
2158 * posix-hdep.c (gdb_call_async_signal_handler): New function.
2159 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
2161 (remote_fileio_ctrl_c_signal_handler): Use
2162 gdb_call_async_signal_handler.
2163 (initialize_remote_fileio): Initialize sigint_fileio_token.
2164 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
2165 not initialize tokens here.
2166 (handle_remote_sigint_twice): Likewise. Reinstall
2167 handle_remote_sigint.
2168 (async_remote_interrupt_twice): Just call interrupt_query.
2169 (cleanup_sigint_signal_handler): Do not delete tokens.
2170 (remote_interrupt, remote_interrupt_twice): Use
2171 gdb_call_async_signal_handler.
2172 (interrupt_query): Reinstall the default signal handler.
2173 (_initialize_remote): Initialize tokens here.
2175 2008-03-04 Joel Brobecker <brobecker@adacore.com>
2177 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
2178 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
2179 Change the type of the lr register to code_ptr.
2180 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2181 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2182 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2183 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2184 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2185 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2186 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
2188 2008-03-03 James E. Wilson <wilson@tuliptree.org>
2190 * MAINTAINERS: Update my email address.
2192 2008-03-03 Keith Seitz <keiths@redhat.com>
2194 From Dave Murphy <davem@devkitpro.org>:
2195 * configure.ac: Set tcl configdir to win under mingw.
2196 * configure: Regenerate.
2198 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
2200 * breakpoint.c (fetch_watchpoint_value): New function.
2201 (update_watchpoint): Set and clear val_valid. Use
2202 fetch_watchpoint_value. Handle unreadable values on the
2203 value chain. Correct check for user-requested array watchpoints.
2204 (breakpoint_init_inferior): Clear val_valid.
2205 (watchpoint_value_print): New function.
2206 (print_it_typical): Use it. Do not free or clear old_val. Print
2207 watchpoints even if old_val == NULL.
2208 (watchpoint_check): Use fetch_watchpoint_value. Check for values
2209 becoming readable or unreadable.
2210 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
2211 (do_enable_watchpoint): Likewise.
2212 * breakpoint.h (struct breakpoint): Update comment for val. Add
2214 * NEWS: Mention watchpoints on inaccessible memory.
2216 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
2218 * Makefile.in (i386-nat.o): Update.
2219 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
2220 i386_use_watchpoints.
2221 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
2222 i386_use_watchpoints.
2223 * i386-nat.c (i386_stopped_data_address): Take two arguments.
2224 (i386_stopped_by_watchpoint): Update call.
2225 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
2226 * config/i386/nm-i386.h: Conditionalize definitions on
2227 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
2228 (i386_use_watchpoints): Declare.
2229 (i386_stopped_data_address): Update.
2230 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
2231 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
2233 2008-02-29 Joel Brobecker <brobecker@adacore.com>
2235 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
2236 * version.in: Bump version to 6.8.50.20080229-cvs.
2238 2008-02-28 Markus Deuling <deuling@de.ibm.com>
2240 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
2243 2008-02-28 Tom Tromey <tromey@redhat.com>
2245 * infcmd.c (notice_args_read): Print result of get_inferior_args.
2247 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
2249 * infcmd.c (kill_if_already_running): Make static. Use
2250 target_require_runnable.
2251 * target.c (target_require_runnable): New.
2252 * target.h (target_require_runnable): Declare.
2254 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
2256 * frame.c (reinit_frame_cache): Only annotate if frames were
2259 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2261 * regformats/reg-ppc.dat: Rename "ps" to "msr".
2262 * regformats/reg-ppc64.dat: Likewise.
2264 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2266 * features/Makefile (%.dat): Emit xmltarget statement.
2268 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
2269 Generate code to set gdbserver_xmltarget in init_registers_${name}.
2271 * regformats/arm-with-iwmmxt.dat: Regenerate.
2272 * regformats/mips64-linux.dat: Regenerate.
2273 * regformats/mips-linux.dat: Regenerate.
2274 * regformats/rs6000/powerpc-32.dat: Regenerate.
2275 * regformats/rs6000/powerpc-64.dat: Regenerate.
2276 * regformats/rs6000/powerpc-e500.dat: Regenerate.
2278 * regformats/reg-arm.dat: Add xmlarch statement.
2279 * regformats/reg-i386.dat: Likewise.
2280 * regformats/reg-i386-linux.dat: Likewise.
2281 * regformats/reg-x86-64-linux.dat: Likewise.
2282 * regformats/reg-spu.dat: Likewise.
2284 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
2286 * remote.c (remote_wait, remote_async_wait): Stop if we receive
2289 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
2291 * utils.c (debug_timestamp): New.
2292 (vfprintf_unfiltered): Print timestamps if requested.
2293 (show_debug_timestamp): New.
2294 (initialize_utils): Register "set debug timestamp".
2295 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
2297 2008-02-27 Joel Brobecker <brobecker@adacore.com>
2299 * breakpoint.c (skip_prologue_sal): New function.
2300 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
2301 computed from a line number.
2303 2008-02-27 Joel Brobecker <brobecker@adacore.com>
2305 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
2306 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
2307 Set PC register type to "code_ptr".
2308 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2309 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2310 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2311 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2312 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2313 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2314 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
2317 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
2319 * regformats/regdat.sh: Rename init_registers function in
2320 generated file to init_registers_${name}.
2322 * regformats/reg-crisv32.dat: Set "name" to crisv32.
2323 * regformats/reg-ppc64.dat: Set "name" to ppc64.
2324 * regformats/reg-s390x.dat: Set "name" to s390x.
2326 2008-02-26 Greg Law <glaw@undo-software.com>
2328 * regcache.c (registers_changed): Call reinit_frame_cache.
2330 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
2332 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
2333 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
2334 and svr4_fetch_objfile_link_map.
2335 * Makefile.in (sh-linux-tdep.o): Update.
2337 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
2339 * amd64-tdep.c (amd64_classify): Add support for decimal float
2341 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
2342 use the struct return convention.
2344 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
2346 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
2347 to old format. Discard breakpoint address if shared library is
2349 (breakpoint_1): Adjust formatting of table header accordingly.
2351 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
2353 * remote.c (remote_get_threadlist): If the response
2354 is empty, don't try to parse it.
2356 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
2358 Unbreak 'target async'.
2359 * serial.c (serial_async): Set the
2360 handler function before enabling async
2363 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
2365 * solib-svr4.c (enable_break): Convert r_brk to a code address.
2367 2008-02-21 Pedro Alves <pedro@codesourcery.com>
2369 * remote.c (extended_remote_attach_1): Set attach_flag.
2370 (extended_remote_create_inferior_1): Clear attach_flag.
2372 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
2374 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
2376 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
2377 * solib-svr4.c (solib_svr4_r_brk): New.
2378 (open_symbol_file_object, svr4_current_sos): Always check the
2380 (svr4_fetch_objfile_link_map): Do not set debug_base.
2381 (enable_break): Use r_brk if it is set.
2382 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
2383 (svr4_lp64_fetch_link_map_offsets): Likewise.
2384 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
2386 2008-02-20 Markus Deuling <deuling@de.ibm.com>
2387 Mark Kettenis <kettenis@gnu.org>
2389 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
2390 trad_frame_saved_reg.
2391 (trad-frame.h): New include.
2393 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
2394 instead of frame_obstack_zalloc.
2395 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
2397 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
2399 2008-02-20 Markus Deuling <deuling@de.ibm.com>
2401 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
2402 from disassemble_info instead of gdbarch_byte_order.
2404 * mips-tdep.c (gdb_print_insn_mips): Likewise.
2405 * arm-tdep.c (gdb_print_insn_arm): Likewise.
2407 2008-02-20 Markus Deuling <deuling@de.ibm.com>
2409 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
2410 gdbarch as parameter.
2412 * gdbarch.{c,h}: Regenerate.
2414 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
2416 * mem-break.c (default_memory_insert_breakpoint)
2417 (default_memory_remove_breakpoint): Likewise.
2418 * target.h (default_memory_remove_breakpoint)
2419 (default_memory_insert_breakpoint): Likewise.
2421 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
2422 parameter. Replace current_gdbarch by gdbarch.
2423 * m32r-tdep.c (m32r_memory_insert_breakpoint)
2424 (m32r_memory_remove_breakpoint): Likewise.
2426 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
2428 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
2430 2008-02-19 Joel Brobecker <brobecker@adacore.com>
2432 * NEWS: Add entry describing Add support improvements.
2434 2008-02-18 Markus Deuling <deuling@de.ibm.com>
2436 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
2439 2008-02-18 Markus Deuling <deuling@de.ibm.com>
2441 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
2442 register_offset_hack anymore.
2444 * regcache.{c,h} (register_offset_hack): Remove.
2446 2008-02-18 Markus Deuling <deuling@de.ibm.com>
2448 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
2450 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
2451 current_gdbarch by gdbarch.
2452 (hppa64_hpux_find_global_pointer): Likewise.
2453 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
2454 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
2455 find_global_pointer.
2457 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
2459 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
2461 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
2462 of gdbarch_num_regs.
2464 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
2465 replace current_gdbarch by gdbarch.
2466 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
2468 2008-02-18 Markus Deuling <deuling@de.ibm.com>
2470 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
2471 and replace current_gdbarch by gdbarch.
2473 (store_register): Update call for exec_one_dummy_insn.
2474 (fetch_register, store_register): Update call of regmap.
2476 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
2477 parameter and replace current_gdbarch by gdbarch.
2479 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
2480 the current architecture. Update call for getregs_supplies and
2482 (ppcnbsd_fetch_inferior_registers): Likewise.
2484 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
2485 replace current_gdbarch by gdbarch.
2486 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
2487 get_regcache_arch to get at the current architecture. Update call for
2490 2008-02-18 Markus Deuling <deuling@de.ibm.com>
2492 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
2495 2008-02-15 Markus Deuling <deuling@de.ibm.com>
2497 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
2499 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
2501 * NEWS: Mention pending breakpints in MI.
2503 2008-02-14 Markus Deuling <deuling@de.ibm.com>
2505 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
2507 2008-02-13 Markus Deuling <deuling@de.ibm.com>
2509 Add script to build and test GDB using enable-targets=all.
2511 * gdb_buildall.sh: New file.
2513 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
2515 * NEWS (New native configurations): Xtensa GNU/Linux.
2516 (New targets): Xtensa GNU/Linux.
2517 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
2519 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
2520 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
2521 * configure.tgt (xtensa*-*-linux*): New entry.
2522 * xtensa-config.c (xtensa_tdep): New variable.
2523 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
2524 (rmap): Change format based on new macro XTREG.
2525 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
2526 * xtensa-linux-nat.c: New.
2527 * xtensa-linux-tdep.c: New.
2528 * xtensa-xtregs.c: New.
2529 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
2530 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
2531 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
2532 (xtensa_register_t): New field coprocessor.
2533 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
2534 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
2535 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
2536 Update to handle privileged registers.
2537 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
2538 (xtensa_push_dummy_call): Set windowstart register correctly.
2539 (call0_analyze_prologue): Initialize xtensa_default_isa.
2540 (xtensa_derive_tdep): New.
2541 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
2542 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
2543 Call xtensa_derive_tdep().
2544 * config/xtensa/linux.mh: New.
2545 * regformats/reg-xtensa.dat: New.
2547 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
2549 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
2550 (filenames.h): New include.
2551 * Makefile.in (corelow.o): Add dependency for filenames.h.
2553 2008-02-08 Doug Evans <dje@google.com>
2555 * source.c (find_and_open_source): Always rewrite absolute filenames.
2557 2008-02-07 Doug Evans <dje@google.com>
2559 * breakpoint.c: #include "hashtab.h".
2560 (ambiguous_names_p): New fn.
2561 (update_breakpoint_locations): When restoring bp enable status, don't
2562 compare function names if any functions have same name.
2563 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
2565 2008-02-07 Joel Brobecker <brobecker@adacore.com>
2567 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
2568 instead of just a VEC*. Update use of SV.
2569 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
2571 2007-02-07 Joel Brobecker <brobecker@adacore.com>
2573 * NEWS: Put all new commands since gdb-6.7 together.
2575 2007-02-07 Joel Brobecker <brobecker@adacore.com>
2577 * ada-lang.c: #include "vec.h".
2578 (struct string_vector, new_string_vector, string_vector_append):
2580 (char_ptr): New typedef.
2581 (DEF_VEC_P (char_ptr)): New VEC type.
2582 (symbol_completion_add): Update profile to take the new VEC type
2583 instead of the old string_vector structure. Update code accordingly.
2584 (ada_make_symbol_completion_list): Use the new VEC type instead of
2585 the old string_vector structure, and update the code accordingly.
2586 * Makefile.in (ada-lang.o): Add dependency on vec.h.
2588 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
2590 * p-exp.y: Set current_type in missing places.
2591 (leftdiv_is_integer): New static variable.
2592 Typecast right operand of BINOP_DIV to long_double if both operands
2595 2008-02-06 Maciej W. Rozycki <macro@mips.com>
2597 * remote-mips.c (set_breakpoint): Rename to...
2598 (mips_set_breakpoint): ... this.
2599 (clear_breakpoint): Rename to...
2600 (mips_clear_breakpoint): ... this.
2601 (common_breakpoint): Rename to...
2602 (mips_common_breakpoint): ... this.
2603 (check_lsi_error): Rename to...
2604 (mips_check_lsi_error): ... this.
2606 2007-02-05 Joel Brobecker <brobecker@adacore.com>
2608 * language.h (struct language_defn): Add new field
2609 la_make_symbol_completion_list.
2610 * symtab.c (default_make_symbol_completion_list): Renames
2611 make_symbol_completion_list.
2612 (make_symbol_completion_list): New function.
2613 * symtab.h (default_make_symbol_completion_list): Add declaration.
2614 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
2615 (auto_language, local_language): Likewise.
2616 * objc-lang.c (objc_language_defn): Likewise.
2617 * scm-lang.c (scm_language_defn): Likewise.
2618 * m2-lang.c (m2_language_defn): Likewise.
2619 * f-lang.c (f_language_defn): Likewise.
2620 * jv-lang.c (java_language_defn): Likewise.
2621 * p-lang.c (pascal_language_defn): Likewise.
2622 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
2623 (minimal_language_defn): Likewise.
2624 * ada-lang.c (struct string_vector): New structure.
2625 (new_string_vector, string_vector_append, ada_unqualified_name)
2626 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
2627 (ada_make_symbol_completion_list): New functions.
2628 (ada_language_defn): Set la_make_symbol_completion_list.
2629 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
2630 this function is static.
2632 2008-02-05 Kevin Buettner <kevinb@redhat.com>
2634 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
2635 to account for call site optimizations.
2637 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
2639 * tracepoint.c (read_actions): Handle end-of-text indicator
2640 in action list properly. (Committed by Jim Blandy)
2642 2008-02-05 Jim Blandy <jimb@red-bean.com>
2644 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
2645 pseudoregister, not an internal error.
2646 Reported by: Andrzej Zaborowski
2648 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
2650 * varobj.c (c_value_of_variable): Use xstrdup.
2652 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
2654 Update stored rendition of varobj value when format changes.
2655 * varobj.c (varobj_set_display_format): Recomputed
2657 (c_value_of_variable): Return print_value.
2659 2008-02-03 Doug Evans <dje@google.com>
2661 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
2662 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
2663 * valops.c (value_one): New function.
2664 * value.h (value_one): Declare.
2666 Fix argument promotion for binary arithmetic ops for C.
2667 * valarith.c (unop_result_type): New fn.
2668 (binop_result_type): New fn.
2669 (value_binop): Move result type computation to binop_result_type.
2670 (value_pos, value_neg, value_complement): Move result type
2671 computation to unop_result_type.
2674 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
2675 Return basetype, fieldno if found. All callers updated.
2676 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
2678 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
2679 * symfile.h (fill_in_vptr_fieldno): Delete.
2681 2008-02-02 Doug Evans <dje@google.com>
2683 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
2685 * typeprint.c (*): Whitespace cleanup.
2687 2008-02-02 Mark Kettenis <kettenis@gnu.org>
2688 Luis Machado <luisgpm@br.ibm.com>
2689 Thiago Jung Bauermann <bauerman@br.ibm.com>
2691 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
2692 don't fit into registerson the stack the way GCC does.
2694 2008-02-01 Joel Brobecker <brobecker@adacore.com>
2696 * symtab.c (symbol_set_names): Do not add an entry in the demangling
2697 hash table for Ada symbols. Just store the linkage name as is,
2698 and leave the demangled_name as NULL.
2700 2007-02-01 Joel Brobecker <brobecker@adacore.com>
2702 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
2703 in the global scope.
2704 (new_symbol): Likewise.
2706 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
2708 * breakpoint.c (break_command_1): Return void.
2709 (break_command_really): Return void. Rethrow
2710 exceptions instead of returning.
2711 (gdb_breakpoint): Remove the error_message parameter.
2712 Return void. Rename to set_breakpoint.
2713 * gdb.h (gdb_breakpoint): Rename and move to...
2714 * breakpoint.h (set_breakpoint): ...here.
2715 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
2716 event hooks even if exception is thrown. Adjust to
2717 gdb_breakpoint interface changes.
2720 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
2722 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
2723 float in both first and second word in the doubleword, to support
2726 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
2728 Properly rethrow exception. This fixes errors
2729 about non-existent functions for -break-insert.
2730 * breakpoint.c (break_command_really): Use throw_exception
2731 for rethrowing. If rethrowing, don't print the exception.
2733 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2735 * NEWS: Mention Decimal Floating Point support.
2737 2008-01-31 Joel Brobecker <brobecker@adacore.com>
2739 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
2740 value type to builtin_type_void_func_ptr.
2742 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
2744 * s390-tdep.c (is_float_singleton, is_float_like,
2745 alignment_of, s390_return_value): Make checks for
2746 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
2748 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
2749 Thiago Jung Bauermann <bauerman@br.ibm.com>
2751 * infcmd.c (default_print_registers_info): Also print hex
2752 raw contents for TYPE_CODE_DECFLOAT registers.
2753 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
2754 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
2755 (rs6000_register_name): Add support for DFP pseudo-registers.
2756 (rs6000_pseudo_register_type): Likewise.
2757 rs6000_pseudo_register_reggroup_p): Likewise.
2758 (ppc_pseudo_register_read): New function.
2759 (ppc_pseudo_register_write): Likewise.
2760 (rs6000_pseudo_register_read): Likewise.
2761 (rs6000_pseudo_register_write): Likewise.
2762 (e500_pseudo_register_read): Move checks to
2763 rs6000_pseudo_register_read.
2764 (e500_pseudo_register_write): Move checks to
2765 rs6000_pseudo_register_write.
2766 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
2767 rs6000_pseudo_register_read and rs6000_pseudo_register_write
2768 in gdbarch if SPE or DFP is available. Adjust gdbarch's
2769 num_pseudo_regs to account for DFP pseudo regs.
2771 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2773 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
2774 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
2775 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
2776 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
2777 e500_pseudo_register_read, e500_pseudo_register_write): Use
2778 IS_SPE_PSEUDOREG macro.
2779 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
2780 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
2781 Remove initialization of tdep->ppc_ev31_regnum.
2783 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
2785 * printcmd.c (print_formatted): Handle references as for unformatted
2788 2008-01-30 Joel Brobecker <brobecker@adacore.com>
2790 * eval.c (evaluate_subexp_standard): Add handling of user
2791 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
2793 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
2795 * eval.c (evaluate_subexp_standard): Support
2796 BINOP_INTDIV opcode.
2798 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
2800 * valarith.c (value_binop): Add floating-point BINOP_MIN and
2802 For BINOP_EXP, use length and signedness of left operand only for
2803 result, as for shifts.
2804 For integral operands to BINOP_EXP, use new integer_pow and
2805 uinteger_pow functions so as to get full range of results.
2806 (integer_pow): New function.
2807 (uinteger_pow): New function.
2809 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
2811 Use vector for varobj_list_children interface.
2812 * gdb/varobj.c (varobj_list_children): Return vector
2814 * gdb/varobj.h (varobj_list_children): Adjust
2816 (varobj_p): Declare. Declare vector thereof.
2817 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
2818 for varobj_list_children change.
2819 * Makefile.in (varobj_h): Update dependencies.
2821 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
2823 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
2824 TYPE_CODE_DECFLOAT arguments.
2825 (ppc64_sysv_abi_push_dummy_call) Likewise.
2826 (get_decimal_float_return_value): New function.
2827 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
2828 values by calling get_decimal_float_return_value.
2829 (ppc64_sysv_abi_return_value): Likewise.
2831 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
2833 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
2834 for preprocessor macro information. Formatting changes.
2836 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
2838 * remote.c (struct remote_state): Add cached_wait_status.
2839 (remote_exec_file): New variable.
2840 (PACKET_vAttach, PACKET_vRun): New constants.
2841 (extended_remote_restart): Do not query for status.
2842 (struct start_remote_args): New.
2843 (remote_start_remote): Take it as a second argument. Check
2844 whether the target is running. Issue an error for non-running
2845 non-extended targets. Cache the wait status. Set inferior_ptid
2847 (remote_open_1): Prompt to disconnect non-running targets. Make
2848 sure the target is marked running. Do not set inferior_ptid here.
2849 Update call to remote_start_remote. Do not call remote_check_symbols
2850 if the target is not running.
2851 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
2852 argument. Handle a non-running target.
2853 (remote_detach): Use it.
2854 (extended_remote_detach): New.
2855 (remote_disconnect): Fix typo. Use remoute_mourn_1.
2856 (extended_remote_attach_1, extended_remote_attach)
2857 (extended_async_remote_attach): New.
2858 (remote_vcont_resume): Remove unused variable.
2859 (remote_wait, remote_async_wait): Use any cached wait status.
2860 (putpkt_binary, getpkt): Clear any cached wait status.
2861 (extended_remoute_mourn_1): New.
2862 (extended_remote_mourn): Use it.
2863 (extended_async_remote_mourn, extended_remote_run): New.
2864 (extended_remote_create_inferior_1): New.
2865 (extended_remote_create_inferior): Use it.
2866 (extended_remote_async_create_inferior): Likewise.
2867 (remote_xfer_partial): Skip for non-executing targets.
2868 (init_extended_remote_ops): Set to_detach and to_attach.
2869 (init_extended_async_remote_ops): Likewise. Use
2870 extended_async_remote_mourn.
2871 (_initialize_remote): Register vAttach, vRun, and
2872 set remote exec-file.
2873 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
2875 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
2877 * Makefile.in (symfile.o): Update.
2878 * NEWS: Mention exec tracing support.
2879 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
2881 * infcmd.c (kill_if_already_running, detach_command)
2882 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
2883 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
2884 (follow_exec): Do not check may_follow_exec. Do not mourn and push
2885 targets. Apply the sysroot path to the loaded executable. Use
2886 no_shared_libraries.
2887 * linux-nat.c (linux_child_follow_fork): Print fork following
2888 messages if verbose.
2889 (kill_wait_callback): Kill again before waiting a second time.
2890 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
2891 no_shared_libraries.
2893 2008-01-29 Joel Brobecker <brobecker@adacore.com>
2895 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
2897 2008-01-29 Joel Brobecker <brobecker@adacore.com>
2899 * nto-tdep.h: Remove #include "defs.h".
2900 * nto-tdep.c: Add #include "defs.h".
2901 * Makefile.in (nto_tdep_h): Update dependencies.
2902 (nto-tdep.o): Likewise.
2904 2008-01-29 Joel Brobecker <brobecker@adacore.com>
2906 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
2908 (proceed, start_remote): Update call to wait_for_inferior.
2909 * inferior.h (wait_for_inferior): Update declaration.
2910 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
2911 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
2912 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
2913 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
2915 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
2917 * varobj (adjust_value_for_child_access): Added checking for
2918 returned value from gdb_value_ind.
2919 (c_describe_child): Likewise.
2920 (cplus_describe_child): Fixed a typo.
2922 2008-01-29 Jim Blandy <jimb@red-bean.com>
2924 * MAINTAINERS: Update my info.
2926 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
2928 Use multiple locations for hardware watchpoints.
2929 This eliminates the need to traverse value chain, doing
2930 various checks, in three different places.
2932 * breakpoint.h (struct bp_location): New fields
2933 lengths and watchpoint_type.
2934 (struct breakpoint): Remove the val_chain field.
2935 * breakpoint.c (is_hardware_watchpoint): New.
2936 (free_valchain): Remove.
2937 (update_watchpoint): New.
2938 (insert_bp_location): For hardware watchpoint, just
2940 (insert_breakpoints): Call update_watchpoint_locations
2941 on all watchpoints. If we have failed to insert
2942 any location of a hardware watchpoint, remove all inserted
2944 (remove_breakpoint): For hardware watchpoints, directly
2946 (watchpoints_triggered): Iterate over locations.
2947 (bpstat_stop_status): Use only first location of
2948 a resource watchpoint.
2949 (delete_breakpoint): Don't call free_valchain.
2950 (print_one_breakpoint): Don't print all
2951 locations for watchpoints.
2952 (breakpoint_re_set_one): Use update_watchpoint for
2955 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
2957 Don't reset watchpoint block on solib load.
2959 * breakpoint.c (insert_bp_location): For watchpoints,
2960 recompute condition.
2961 (breakpoint_re_set_one): Instead of recomputing value
2962 and condition for watchpoints, just reset value and
2963 let insert_breakpoints/insert_bp_location recompute it.
2964 Don't do anything about disabled watchpoint.
2966 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
2968 * valarith.c (value_binop): Handle unsigned integer
2971 2008-01-28 Kevin Buettner <kevinb@redhat.com>
2973 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
2974 instruction pattern that appears frequently in position
2975 independent code. Fix bug in code which looks for "fmov" and
2976 backtracks if no "fmov" is found.
2978 2008-01-28 Doug Evans <dje@google.com>
2980 * dbxread.c (read_dbx_symtab): Fix indentation.
2981 Reformat comments to 80 columns.
2982 Move local var def closer to only use.
2984 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
2986 * fork-child.c (SHELL_FILE): Remove #ifndef.
2987 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
2989 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
2991 * i386-tdep.c (i386_skip_noop): New function.
2992 (i386_analyze_prologue): Call i386_skip_noop function.
2994 2008-01-24 Michael Snyder <msnyder@specifix.com>
2996 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
2997 * win32-nat.c (win32_xfer_partial): Ditto.
2998 * target.c (default_xfer_partial): Minor whitespace adjustment.
3000 2008-01-24 Pedro Alves <pedro@codesourcery.com>
3002 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
3003 strip bit 1 even if pc doesn't point to thumb code.
3005 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
3007 * remote.c (remote_wait): Handle SIGINT between packets.
3008 (remote_async_wait): Likewise.
3010 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
3011 Chris Demetriou <cgd@google.com>
3013 * thread.c (add_thread_silent): Renamed
3015 (print_thread_events): New variable definition.
3016 (show_print_thread_events): New function.
3017 (_initialize_thread): Add "set print thread-events" and
3018 "show print thread-events" commands.
3019 (add_thread): Announce new thread.
3020 * gdbthread.h (add_thread_silent): Declare.
3021 (print_thread_events): New variable declaration.
3022 * inf-ttrace.c (inf_ttrace_wait): Don't
3023 inform about new thread, as add_thread is always
3024 called too, and will take care of that.
3025 * infrun.c (handle_inferior_event): Likewise.
3026 * procfs.c (procfs_wait): Likewise.
3027 * remote.c (remote_currthread): Likewise.
3028 * sol-thread.c (sol_thread_wait): Likewise.
3029 * win32-nat.c (get_win32_debug_event): Likewise.
3030 * linux-thread-db.c (attach_thread): Likewise.
3031 Remove the verbose parameter.
3032 (check_event): Make detach_thread be verbose
3033 only if print_thread_events is set.
3034 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
3035 about new thread. This is called only from
3036 linux-thread-db.c:attach_thread, which will take care.
3037 Remove the verbose parameter.
3038 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
3040 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
3042 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
3044 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
3046 * breakpoint.c (break_command_really): New parameter
3048 (break_command_1): Pass 0 as
3049 ignore_count to break_command_really.
3050 (gdb_breakpoint): Pass ignore_count to
3051 break_command_really.
3053 2008-01-21 Kevin Buettner <kevinb@redhat.com>
3055 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
3056 sigcontext struct via pointer.
3057 (struct sigframe comment): Update to show new field `psc'.
3059 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
3061 * infrun.c (handle_inferior_event): If
3062 we failed to remove breakpoints, error,
3063 don't try to increment PC by hand.
3065 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
3067 Add NetBSD/hppa target and host support.
3069 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
3070 (hppabsd_gregset): Move to ...
3071 (hppabsd_regset_from_core_section): Rename
3072 hppaobsd_regset_from_core_section and move to ...
3073 (hppabsd_find_global_pointer): Update comment.
3074 (hppabsd_init_abi): Make global. Do not register
3075 hppabsd_regset_from_core_section.
3076 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
3078 (_initialize_hppabsd_tdep): Move to ...
3079 * hppaobsd-tdep.c: ... here. New file.
3080 * hppnbsd-tdep.c: New file.
3081 * hppnbsd-nat.c: New file.
3082 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
3083 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
3084 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
3085 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
3086 * configure.host (hppa*-*-netbsd*): New entry.
3087 * configure.tgt (hppa*-*-netbsd*): New entry.
3088 (hppa*-*-openbsd*): Update.
3089 * NEWS (New native configuration): Mention NetBSD/hppa.
3090 (New targets): Mention NetBSD/hppa.
3092 2008-01-18 Markus Deuling <deuling@de.ibm.com>
3094 * gdbarch.sh (function_list): Add new property bits_big_endian to
3096 * gdbarch.{c,h}: Regenerate.
3098 * value.c (struct value): Replace BITS_BIG_ENDIAN by
3099 gdbarch_bits_big_endian (comment).
3100 (unpack_field_as_long, modify_field): Likewise.
3101 * value.h: Likewise (comment).
3102 * valops.c (value_slice): Likewise.
3103 * valarith.c (value_subscript, value_bit_index): Likewise.
3104 * gdbtypes.h (field): Likewise (comment).
3105 * eval.c (evaluate_subexp_standard): Likewise.
3106 * dwarf2read.c (dwarf2_add_field): Likewise.
3107 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
3108 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
3110 * defs.h (BITS_BIG_ENDIAN): Remove.
3112 2008-01-18 Markus Deuling <deuling@de.ibm.com>
3114 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
3116 * m2-exp.y (yylex): Likewise.
3117 * objc-exp.y (yylex): Likewise.
3119 * defs.h (DEPRECATED_STREQN): Remove.
3121 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
3123 * MAINTAINERS: Update my email address.
3125 2008-01-17 Jim Blandy <jimb@codesourcery.com>
3127 * README: Mention gdbserver/README.
3129 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
3131 * valarith.c (value_binop): Handle BINOP_INTDIV
3132 for unsigned and signed integers.
3134 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
3136 * s390-tdep.c (s390_gdbarch_init): Set default long double
3137 type to 128-bit IEEE quad.
3139 2008-01-17 Joel Brobecker <brobecker@adacore.com>
3141 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
3143 2008-01-16 Mark Kettenis <kettenis@gnu.org>
3145 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
3147 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
3148 * value.c: All callers changed.
3150 2008-01-16 Markus Deuling <deuling@de.ibm.com>
3152 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
3153 DEPRECATED_STREQ by its expression.
3154 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
3155 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
3156 (scan_xcoff_symtab): Likewise.
3157 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
3158 * f-lang.c (find_common_for_function): Likewise.
3159 * objc-exp.y (parse_number): Likewise.
3161 * defs.h (DEPRECATED_STREQ): Remove.
3163 2008-01-16 Markus Deuling <deuling@de.ibm.com>
3165 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
3166 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
3167 get_frame_arch to get at the current_architecture. Update AM33_MODE
3169 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
3170 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
3172 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
3174 2008-01-16 Markus Deuling <deuling@de.ibm.com>
3176 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
3178 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
3180 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
3181 current_gdbarch by gdbarch. Update caller.
3183 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
3184 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
3185 the current architecture. Update calls of
3186 amd64_native_gregset_supplies_p.
3187 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
3188 (amd64bsd_store_inferior_registers): Likewise.
3190 2008-01-16 Markus Deuling <deuling@de.ibm.com>
3192 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
3193 Replace current_gdbarch by gdbarch. Update caller.
3195 2008-01-16 Markus Deuling <deuling@de.ibm.com>
3197 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
3198 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
3199 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
3200 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
3201 (stabsect_build_psymtabs): Fix indentation.
3203 2008-01-15 Michael Snyder <msnyder@specifix.com>
3205 * corelow.c (core_xfer_partial): Comment, cut/paste error.
3207 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
3209 * win32-nat.c (win32_create_inferior): Restore code calling
3210 CloseHandle on ProcessInformation structure.
3212 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
3214 * configure.ac: Check for void * as 3 argument of ptrace.
3215 * configure: regenerate.
3217 2008-01-11 Markus Deuling <deuling@de.ibm.com>
3219 * alpha-tdep.c (alpha_heuristic_proc_start)
3220 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
3221 current_gdbarch by gdbarch.
3223 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
3224 current architecture by frame_info. Update alpha_heuristic_proc_start
3227 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
3228 get_frame_arch to get at the current architecture by frame_info. Update
3229 alpha_sigtramp_register_address call.
3231 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
3232 current_gdbarch by gdbarch. Update caller.
3233 (convert_to_extended, convert_from_extended): Add endianess parameter
3234 for comparison. Update caller.
3235 (arm_extract_return_value, arm_store_return_value): Use
3236 get_regcache_arch to get at the current architecture.
3238 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
3239 current_gdbarch by gdbarch. Update caller.
3240 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
3241 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
3243 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
3244 gdbarch as parameter. Update caller.
3245 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
3246 current_gdbarch by gdbarch. Update caller.
3248 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
3249 update caller. Replace current_gdbarch by gdbarch.
3251 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
3252 the current architecture. Replace current_gdbarch by gdbarch.
3253 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
3254 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
3255 expression. Add gdbarch as parameter and replace current_gdbarch with
3257 (M6811_TDEP): Remove.
3258 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
3260 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
3261 current_gdbarch by gdbarch. Update caller.
3263 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
3265 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
3268 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
3269 caller. Relace current_gdbarch by gdbarch.
3270 (altivec_register_p, spe_register_p): Likewise.
3271 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
3273 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
3274 altivec_register_p and spe_register_p.
3276 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
3277 caller. Replace current_gdbarch by gdbarch.
3278 (score_analyze_prologue): use get_frame_arch to get at the current
3281 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
3282 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
3283 current_gdbarch by gdbarch. Update caller.
3284 (sparc_frame_cache): Use get_frame_arch to get at the current
3286 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
3287 sparc_analyze_prologue.
3289 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
3292 2008-01-11 Markus Deuling <deuling@de.ibm.com>
3294 * exec.c: #include "arch-utils.h"
3295 (print_section_info): Use gdbarch_from_bfd to get at the
3296 current architecture. Replace current_gdbarch. Fix indention. Replace
3297 deprecated_print_address_numeric by paddress.
3298 * Makefile.in (exec.o) Add dependency to arch-utils.h.
3300 * valprint.c (val_print_string): Replace
3301 deprecated_print_address_numeric.
3302 * tracepoint.c (trace_mention, scope_info): Likewise.
3303 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
3304 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
3305 (maintenance_check_symtabs): Likewise.
3306 * symfile.c (list_overlays_command): Likewise.
3307 * stack.c (frame_info, print_block_frame_labels): Likewise.
3308 * printcmd.c (print_address, print_address_demangle)
3309 (address_info): Likewise.
3310 * corefile.c (memory_error): Likewise.
3311 * infcmd.c (jump_command): Likewise.
3312 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
3313 (mention, delete_breakpoint): Likewise.
3314 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
3315 * dwarf2read.c (dump_die): Likewise.
3316 * ada-valprint.c (ada_val_print_1): Likewise.
3317 * f-valprint.c (f_val_print): Likewise.
3318 * linux-fork.c (info_forks_command): Likewise.
3319 * m32r-com.c (m32r_load_section, m32r_load)
3320 (m32r_upload_command): Likewise.
3322 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
3324 2008-01-11 Markus Deuling <deuling@de.ibm.com>
3326 * gdbarch.sh (skip_prologue): Add gdbarch
3328 * gdbarch.{c,h}: Regenerate.
3330 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
3331 * amd64-tdep.c (amd64_skip_prologue): Likewise.
3332 * avr-tdep.c (avr_skip_prologue): Likewise.
3333 * cris-tdep.c (cris_skip_prologue): Likewise.
3334 * frv-tdep.c (frv_skip_prologue): Likewise.
3335 * h8300-tdep.c (h8300_skip_prologue): Likewise.
3336 * hppa-tdep.c (hppa_skip_prologue): Likewise.
3337 * i386-tdep.c (i386_skip_prologue): Likewise.
3338 * ia64-tdep.c (ia64_skip_prologue): Likewise.
3339 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
3340 * m32r-tdep.c (m32r_skip_prologue): Likewise.
3341 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
3342 * m68k-tdep.c (m68k_skip_prologue): Likewise.
3343 * m88k-tdep.c (m88k_skip_prologue): Likewise.
3344 * mep-tdep.c (mep_skip_prologue): Likewise.
3345 * mips-tdep.c (mips_skip_prologue): Likewise.
3346 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
3347 * mt-tdep.c (mt_skip_prologue): Likewise.
3348 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
3349 * score-tdep.c (score_skip_prologue): Likewise.
3350 * sh64-tdep.c (sh64_skip_prologue): Likewise.
3351 * sh-tdep.c (sh_skip_prologue): Likewise.
3352 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
3353 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
3354 * spu-tdep.c (spu_skip_prologue): Likewise.
3355 * v850-tdep.c (v850_skip_prologue): Likewise.
3356 * vax-tdep.c (vax_skip_prologue): Likewise.
3357 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
3358 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
3360 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
3361 current_gdbarch by gdbarch.
3362 * m32c-tdep.c (m32c_skip_prologue): Likewise.
3363 * s390-tdep.c (s390_skip_prologue): Likewise.
3365 2008-01-10 Doug Evans <dje@google.com>
3367 * defs.h (struct continuation_arg): Fix typo in comment.
3368 * target.c (target_translate_tls_address): Fix comment spelling error.
3370 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
3372 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
3373 (DOUBLEST_SCAN_FORMAT): Likewise.
3374 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
3375 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
3376 * c-exp.y (parse_number): Likewise.
3377 * jv-exp.y (parse_number): Likewise.
3378 * objc-exp.y (parse_number): Likewise.
3379 * p-exp.y (parse_number): Likewise.
3381 2008-01-09 Joel Brobecker <brobecker@adacore.com>
3383 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
3384 (check_typedef): Likewise.
3386 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
3388 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
3389 seen_double_big_d, treat the new H, D, and DD modifiers as length
3392 2008-01-08 Joel Brobecker <brobecker@adacore.com>
3394 * dwarf2read.c (read_enumeration_type): Add comment.
3396 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
3398 * config.in: Regenerate.
3400 2008-01-08 Joel Brobecker <brobecker@adacore.com>
3402 * ada-lang.c (ada_convert_actual): Renames convert_actual.
3404 (ada_convert_actuals): Delete.
3405 * ada-lang.h (ada_convert_actual): Add declaration.
3406 (ada_convert_actuals): Remove declaration.
3407 * infcall.c: #include "ada-lang.h".
3408 (value_arg_coerce): Add new parameter sp. Update function
3409 documetnation. Add handling of Ada function call parameters.
3410 * Makefile.in (infcall.o): Update dependencies.
3412 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
3414 * ada-lang.c (ensure_lval): Fix value lval kind.
3415 (convert_actual): Add handling for arguments passed by reference.
3417 2008-01-08 Doug Evans <dje@google.com>
3419 * dbxread.c (read_dbx_symtab): Fix indentation.
3421 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
3423 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
3424 (valarith.o): Depend on dfp.h.
3425 (valops.o): Likewise.
3426 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
3427 (set_decnumber_context): New function.
3428 (decimal_check_errors): Likewise.
3429 (decimal_from_number): Likewise.
3430 (decimal_to_number): Likewise.
3431 (decimal_from_string): Use set_decnumber_context and
3432 decimal_check_errors.
3433 (decimal_from_integral): New function.
3434 (decimal_from_floating): Likewise.
3435 (decimal_to_double): Likewise.
3436 (promote_decimal): Likewise.
3437 (decimal_binop): Likewise.
3438 (decimal_is_zero): Likewise.
3439 (decimal_compare): Likewise.
3440 (decimal_convert): Likewise.
3441 * dfp.h (decimal_from_integral): New prototype.
3442 (decimal_from_floating): Likewise.
3443 (decimal_to_double): Likewise.
3444 (decimal_binop): Likewise.
3445 (decimal_is_zero): Likewise.
3446 (decimal_compare): Likewise.
3447 (decimal_convert): Likewise.
3448 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
3449 call to value_from_decfloat.
3450 * valarith.c: Include dfp.h.
3451 (value_args_as_decimal): New function.
3452 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
3453 (value_logical_not): Likewise.
3454 (value_equal): Likewise.
3455 (value_less): Likewise.
3456 (value_pos): Likewise.
3457 (value_neg): Formatting fix.
3458 * valops.c: Include dfp.h.
3459 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
3460 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
3461 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
3462 (value_from_decfloat): Remove expect_type argument.
3463 * value.h (value_from_decfloat): Update prototype.
3465 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
3467 Ignore change in name of dynamic linker during
3468 execution on Solaris. This also unbreaks pending breakpoints.
3470 * solist.h (struct target_so_ops): New field same.
3471 * solib-svr4.c (svr4_same): New.
3472 (_initialize_svr4_solib): Register svr4_same.
3473 * solib.c (update_solib_list): Use ops->same, if available.
3475 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
3477 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
3478 when using MS-DOS paths.
3480 2008-01-05 Pedro Alves <pedro@codesourcery.com>
3482 * NEWS: Mention --pid and --core command line behaviour changes.
3484 2008-01-05 Pedro Alves <pedro@codesourcery.com>
3486 * main.c (captured_main): Remove 'count' varible and the
3487 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
3488 --pid options were issued simultaneously. If an explicit pid
3489 option was passed, don't fallback to core file. Detect extra
3490 arguments better in the presence of explicit pid or core
3493 2008-01-05 Joel Brobecker <brobecker@adacore.com>
3495 * ada-lang.c (ada_which_variant_applies): Correctly compute
3496 the value of the discriminant when the variant record is packed.
3498 2008-01-04 Joel Brobecker <brobecker@adacore.com>
3500 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
3501 that are used to differentiate homonyms.
3503 2008-01-04 Jerome Guitton <guitton@adacore.com>
3505 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
3506 when the type is an anonymous pointer type.
3507 (ada_check_typedef): Avoid a seg fault when the type is null.
3508 * ada-typeprint.c (print_array_type): Add support for pointer
3511 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
3513 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
3515 2008-01-04 Joel Brobecker <brobecker@adacore.com>
3517 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
3518 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
3520 2008-01-04 Joel Brobecker <brobecker@adacore.com>
3522 * ada-exp.y (chop_separator): New function.
3523 (write_selectors): Rewrite to re-use chop_separator.
3524 (ada_nget_field_index, get_symbol_field_type): New functions.
3525 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
3528 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3530 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
3531 of SYMBOL_VALUE when working with function symbols.
3533 2008-01-03 Joel Brobecker <brobecker@adacore.com>
3535 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
3536 expressions. These expressions do not need to be rewriten.
3538 2008-01-03 Joel Brobecker <brobecker@adacore.com>
3540 * dwarf2read.c (read_enumeration_type): Flag type as stub if
3541 the given die is a declaration.
3543 2008-01-03 Joel Brobecker <brobecker@adacore.com>
3545 * ada-lang.c (ada_array_bound_from_type): Make non-static.
3546 Handle properly the case when the index type is an enumerated type.
3547 Do not return the subtype of the bounds type, just return the
3548 bounds type directly - this is not needed and is more consistent
3549 with what we do for arrays when no XA parallel type exists.
3551 2008-01-03 Joel Brobecker <brobecker@adacore.com>
3553 * ada-lang.c (static_unwrap_type): Add forward declaration.
3554 (template_to_static_fixed_type): Fields of dynamic types sometimes
3555 also need to be unwrapped. Take this into account.
3556 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
3557 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
3558 * ada-typeprint.c (ada_print_type): Get the typename from
3559 the original type, not the base type.
3561 2008-01-03 Jerome Guitton <guitton@adacore.com>
3563 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
3564 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
3565 Update calls to ada_to_fixed_type.
3566 (ada_template_to_fixed_record_type_1): Ditto, but without looking
3568 (ada_to_fixed_type): Add check_tag parameter; do not look for
3569 tag if null. When looking for a tag, use a fixed record type.
3570 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
3571 * ada-valprint.c (printable_val_type, ada_value_print): Update
3572 calls to ada_to_fixed_type.
3574 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
3576 * doublest.c (convert_floatformat_to_doublest): Call
3577 floatformat_to_doublest instead of floatformat_to_double and use
3579 (convert_doublest_to_floatformat): Call floatformat_from_doublest
3580 instead of floatformat_from_double and use DOUBLEST variables.
3582 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
3584 * MAINTAINERS (Write After Approval): Add self.
3586 2008-01-03 Joel Brobecker <brobecker@adacore.com>
3588 * symfile.c (set_initial_language): Make non-static.
3589 * symfile.h (set_initial_language): Add declaration.
3590 * language.c: #include "symfile.h".
3591 (set_language): Call set_initial_language if the frame language
3592 could not be determined.
3594 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
3596 * eval.c (evaluate_subexp_for_address): Provide frame address to
3597 locate_var_value only if it will be needed.
3599 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3601 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
3603 2008-01-02 Joel Brobecker <brobecker@adacore.com>
3605 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
3606 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
3607 This is needed to make sure that any other treatment applied
3608 to the resulting value does not fail for spurious reason,
3609 such as trying to take the address of this value.
3611 2008-01-02 Joel Brobecker <brobecker@adacore.com>
3613 * ada-lang.c (ada_value_equal): Dereference reference types when
3616 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
3618 Updated copyright notices for most files.
3620 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
3622 * win32-nat.c (psapi_module_handle): Remove static.
3623 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
3624 return first module found if base_address is zero. Don't initialize
3625 psapi function pointers here. Convert to cygwin paths when
3627 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
3628 executable name. Use get_module_name when that fails or when
3630 (_initialize_psapi): New function. Initialize psapi stuff before it is
3631 needed or issue a warning if it is not found. Move psapi_module_handle
3634 2008-01-01 Joel Brobecker <brobecker@adacore.com>
3636 * ada-lang.c (ada_remove_trailing_digits): New function.
3637 (ada_remove_po_subprogram_suffix): New function.
3638 (ada_decode): Improve. Move the description of the algorithm
3639 directly inside the code, instead of in the function global
3642 2008-01-01 Joel Brobecker <brobecker@adacore.com>
3644 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
3645 and always print the dereferenced value.
3647 2008-01-01 Joel Brobecker <brobecker@adacore.com>
3649 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
3650 of the case where the first argument is a reference.
3651 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
3653 2008-01-01 Joel Brobecker <brobecker@adacore.com>
3655 Implement support for Ada interface types.
3657 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
3658 (ada_is_ignored_field): Ignore fields that are a dispatch table
3661 2008-01-01 Joel Brobecker <brobecker@adacore.com>
3663 * top.c (print_gdb_version): Update copyright year.
3665 2008-01-01 Joel Brobecker <brobecker@adacore.com>
3667 * ChangeLog-2007: New ChangeLog rotation.
3668 * ChangeLog: Reset for 2008.
3669 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
3672 For older changes see ChangeLog-2007.
3678 version-control: never