1 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
3 * Makefile.in (objfiles.o): Update.
4 * exec.c (exec_set_section_address): Support p->addr != 0.
5 * objfiles.c (objfile_relocate): Update exec_ops section
7 * symfile.c (place_section): Move exec_set_section_address call...
8 (default_symfile_offsets): ...to here.
10 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
12 * Makefile.in (ppc_linux_tdep_h): New macro.
13 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
14 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
15 (powerpc_e500l_c): Likewise.
16 (ppc-linux-nat.o): Update dependencies.
17 (ppc-linux-tdep.o): Update dependencies.
18 (rs6000-tdep.o): Update dependencies.
20 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
21 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
22 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
23 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
24 (tdesc_powerpc_e500): Remove.
26 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
27 and "features/rs6000/powerpc-altivec64.c".
28 (ppc_supply_reg, ppc_collect_reg): Make global.
29 (variants): Use tdesc_powerpc_32 for "powerpc" and
30 tdesc_powerpc_altivec64 for "powerpc64".
31 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
33 * ppc-linux-tdep.h: New file.
35 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
36 Include "features/rs6000/powerpc-32l.c".
37 Include "features/rs6000/powerpc-altivec32l.c".
38 Include "features/rs6000/powerpc-64l.c".
39 Include "features/rs6000/powerpc-altivec64l.c".
40 Include "features/rs6000/powerpc-e500l.c".
41 (ppc_linux_supply_gregset): New function.
42 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
43 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
44 (ppc64_linux_gregset): Likewise.
45 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
46 (ppc_linux_trap_reg_p): New function.
47 (ppc_linux_write_pc): New function.
48 (ppc_linux_core_read_description): New function.
49 (ppc_linux_init_abi): Install ppc_linux_write_pc and
50 ppc_linux_core_read_description. Install orig_r3 and trap
51 registers if present in the target description.
52 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
54 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
55 (PT_ORIG_R3, PT_TRAP): Define if necessary.
56 (ppc_register_u_addr): Handle orig_r3 and trap registers.
57 (fetch_ppc_registers): Likewise.
58 (store_ppc_registers): Likewise.
59 (store_register): Likewise.
60 (ppc_linux_read_description): Check whether AltiVec is supported.
61 Check whether inferior is 32-bit or 64-bit. Return the appropriate
62 Linux target description.
64 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
65 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
66 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
67 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
68 rs6000/powerpc-e500. Update -expedite variables accordingly.
70 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
71 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
72 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
73 * features/rs6000/powerpc-e500.c: Regenerate.
74 * features/rs6000/powerpc-32.c: Regenerate.
75 * features/rs6000/powerpc-64.c: Regenerate.
77 * features/rs6000/power-linux.xml: New file.
78 * features/rs6000/power64-linux.xml: New file.
79 * features/rs6000/powerpc-32l.xml: New file.
80 * features/rs6000/powerpc-altivec32l.xml: New file.
81 * features/rs6000/powerpc-64l.xml: New file.
82 * features/rs6000/powerpc-altivec64l.xml: New file.
83 * features/rs6000/powerpc-e500l.xml: New file.
84 * features/rs6000/powerpc-32l.c: New (generated) file.
85 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
86 * features/rs6000/powerpc-64l.c: New (generated) file.
87 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
88 * features/rs6000/powerpc-e500l.xml: New (generated) file.
90 * regformats/reg-ppc.dat: Remove.
91 * regformats/reg-ppc64.dat: Remove.
92 * regformats/rs6000/powerpc-32.dat: Remove.
93 * regformats/rs6000/powerpc-64.dat: Remove.
94 * regformats/rs6000/powerpc-e500.dat: Remove.
95 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
96 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
97 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
98 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
99 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
101 2008-05-03 Pedro Alves <pedro@codesourcery.com>
103 * thread.c (delete_thread): Call observer_notify_thread_exit.
104 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
105 thread_exit observer.
106 (mi_thread_exit): New.
108 2008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
110 * breakpoint.c (create_exception_catchpoint): Remove prototype
111 for already deleted function.
112 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
113 * frame.h (show_stack_frame): Remove prototype.
114 * stack.c (show_stack_frame): Remove empty, unused function.
115 * source.c (symtab_to_fullname, print_source_lines): Small fix
117 * value.c (show_values): Update comments to mention "show values"
118 command instead of "info history".
120 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
122 * linespec.c: Include "target.h".
123 (minsym_found): Handle minimal symbols pointing to function
124 descriptors. Use find_function_start_pc.
125 * minsyms.c (msymbol_objfile): New function.
126 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
127 to function descriptors.
128 * symtab.c (fixup_section): Only use minimal symbol at the same
129 address to determine section of a symbol.
130 (find_function_start_pc): New function.
131 (find_function_start_sal): Use it.
132 * symtab.h (msymbol_objfile): Add prototype.
133 (find_function_start_pc): Likewise.
134 * value.c: Include "objfiles.h".
135 (value_fn_field): Handle minimal symbols pointing to function
137 * Makefile.in (linespec.o): Update dependencies.
140 2008-05-02 Joel Brobecker <brobecker@adacore.com>
142 * ada-lang.c (unwrap_value): Handle the case where the "F" field
143 inside a PAD type is a bitfield.
145 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
147 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
148 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
149 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
150 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
151 Allow typedefs when checking for function pointer arguments.
152 Right-align small structs passed on the stack.
153 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
154 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
155 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
157 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
159 * Makefile.in (arm-tdep.o): Update.
160 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
161 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
162 (arm_pc_is_thumb): Use mapping symbols.
163 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
164 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
165 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
166 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
167 * gdbarch.sh: Add record_special_symbol.
168 * gdbarch.c, gdbarch.h: Regenerated.
169 * objfiles.c (struct objfile_data): Add cleanup member.
170 (register_objfile_data_with_cleanup): New function, from
171 register_objfile_data.
172 (register_objfile_data): Use it.
173 (objfile_free_data): Call clear_objfile_data.
174 (clear_objfile_data): Call cleanup functions.
175 * objfiles.h (register_objfile_data_with_cleanup): Declare.
177 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
179 * objfiles.c (init_entry_point_info): Handle shared libraries.
181 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
183 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
186 2008-05-02 Jim Blandy <jimb@codesourcery.com>
187 Pedro Alves <pedro@codesourcery.com>
189 Implement displaced stepping.
191 * gdbarch.sh (max_insn_length): New 'variable'.
192 (displaced_step_copy, displaced_step_fixup)
193 (displaced_step_free_closure, displaced_step_location): New
195 (struct displaced_step_closure): Add forward declaration.
196 * gdbarch.c, gdbarch.h: Regenerated.
198 * arch-utils.c: #include "objfiles.h".
199 (simple_displaced_step_copy_insn)
200 (simple_displaced_step_free_closure)
201 (displaced_step_at_entry_point): New functions.
202 * arch-utils.h (simple_displaced_step_copy_insn)
203 (simple_displaced_step_free_closure)
204 (displaced_step_at_entry_point): New prototypes.
206 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
207 (I386_MAX_MATCHED_INSN_LEN): ... this.
208 (i386_absolute_jmp_p, i386_absolute_call_p)
209 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
210 (i386_displaced_step_fixup): New functions.
211 (struct i386_insn, i386_match_insn): Update.
212 (i386_gdbarch_init): Set gdbarch_max_insn_length.
213 * i386-tdep.h (I386_MAX_INSN_LEN): New.
214 (i386_displaced_step_fixup): New prototype.
215 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
216 Register gdbarch_displaced_step_copy,
217 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
218 and gdbarch_displaced_step_location functions.
220 * infrun.c (debug_displaced): New variable.
221 (show_debug_displaced): New function.
222 (struct displaced_step_request): New struct.
223 (displaced_step_request_queue, displaced_step_ptid)
224 (displaced_step_gdbarch, displaced_step_closure)
225 (displaced_step_original, displaced_step_copy)
226 (displaced_step_saved_copy, can_use_displaced_stepping): New
228 (show_can_use_displaced_stepping, use_displaced_stepping)
229 (displaced_step_clear, cleanup_displaced_step_closure)
230 (displaced_step_dump_bytes, displaced_step_prepare)
231 (displaced_step_clear_cleanup, write_memory_ptid)
232 (displaced_step_fixup): New functions.
233 (resume): Call displaced_step_prepare.
234 (proceed): Call read_pc once, and remember the value. If using
235 displaced stepping, don't remove breakpoints.
236 (handle_inferior_event): Call displaced_step_fixup. Add some
237 debugging output. When we try to step over a breakpoint, but get
238 a signal to deliver to the thread instead, ensure the step-resume
239 breakpoint is actually inserted. If a thread hop is needed, and
240 displaced stepping is enabled, don't remove breakpoints.
241 (init_wait_for_inferior): Call displaced_step_clear.
242 (_initialize_infrun): Add "set debug displaced" command. Add
243 "maint set can-use-displaced-stepping" command. Clear
245 * inferior.h (debug_displaced): Declare variable.
246 (displaced_step_dump_bytes): Declare function.
248 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
251 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
253 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
254 (arm_force_mode_string, arm_show_fallback_mode)
255 (arm_show_force_mode): New.
256 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
258 (_initialize_arm_tdep): Add "set arm fallback-mode"
259 and "set arm force-mode".
260 * NEWS: Document new commands.
262 2008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
264 * main.h (batch_silent): Declare.
265 * event-top.c: Include main.h.
266 (gdb_setup_readline): Remove extern batch_silent declaration.
267 * infrun.c (normal_stop): Don't print source location when running in
269 * Makefile.in (event-top.o): Add main.h dependency.
271 2008-05-02 Andreas Schwab <schwab@suse.de>
273 * target.h (struct target_ops): Add
274 to_watchpoint_addr_within_range.
275 (target_watchpoint_addr_within_range): New function.
276 * target.c (update_current_target): Inherit
277 to_watchpoint_addr_within_range, defaulting to
278 default_watchpoint_addr_within_range.
279 (default_watchpoint_addr_within_range): New function.
280 (debug_to_watchpoint_addr_within_range): New function.
281 (setup_target_debug): Set to_watchpoint_addr_within_range.
282 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
284 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
285 * breakpoint.c (watchpoints_triggered): Use
286 target_watchpoint_addr_within_range.
288 2008-05-01 Pedro Alves <pedro@codesourcery.com>
290 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
291 (i[34567]86-*-dicos*, x86_64-*-dicos*):
292 Set gdb_osabi to GDB_OSABI_DICOS.
294 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
295 * osabi.c (gdb_osabi_name): Add "DICOS".
297 * i386-dicos-tdep.c: New file.
299 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
300 (ALLDEPFILES): Add i386-dicos-tdep.c.
301 (i386-dicos-tdep.o): New rule.
303 2008-05-01 Pedro Alves <pedro@codesourcery.com>
305 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
306 and register the fork's PTID as a thread.
308 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
311 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
312 assign its value to the breakpoint created.
313 (create_breakpoints): Add breakpoint_ops argument and pass it
314 to create_breakpoint call.
315 (break_command_really): Add breakpoint_ops argument and pass/assign
317 (break_command_1): Pass NULL as ops argument.
318 (set_breakpoint): Pass NULL as ops argument.
319 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
320 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
321 catch and throw catchpoints.
323 2008-05-01 Aleksandar Riswtovski <aristovski@qnx.com>
326 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
327 translate signal numeric value from the target to GDB's enum
329 * gdbarch.c, gdbarch.h: Regenerated.
330 * gdbarch.sh: Added two new functions target_signal_from_host and
331 target_signal_to_host.
332 * target.h (default_target_signal_from_host,
333 default_target_signal_to_host): New functions - declarations.
334 * signals/signals.c (struct gdbarch): New declaration.
335 (default_target_signal_to_host, default_target_signal_from_host): New
338 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
340 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
341 * arm-tdep.c (arm_frame_is_thumb): New.
342 (arm_pc_is_thumb): Clarify comment.
343 (thumb_analyze_prologue): Remove PC special case.
344 (thumb_scan_prologue): Take a block_addr argument. Use it for
345 find_pc_partial_function. Remove unused variables.
346 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
347 for find_pc_partial_function. Remove PC special case.
348 (arm_prologue_prev_register): Add special handling for PC and CPSR.
349 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
350 (arm_get_next_pc): Use arm_frame_is_thumb.
351 (arm_write_pc): Use CPSR_T instead of 0x20.
352 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
353 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
355 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
357 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
359 (struct dwarf2_frame_state_reg): Add FN to loc union.
361 2008-05-01 Nick Roberts <nickrob@snap.net.nz>
363 * exec.c (print_section_info): Add missing '\n'.
365 2008-05-01 Vladimir Prus <vladimir@codesourcery.com>
367 * thread.c (add_thread): Move observer call to ...
368 (add_thread_silent): ... here.
370 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
372 * rs6000-tdep.c: Update for unwinder changes.
373 * ppcobsd-tdep.c: Likewise.
375 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
377 * s390-tdep.c: Update for unwinder changes.
379 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
381 * spu-tdep.c: Update for unwinder changes.
383 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
385 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
386 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
387 sparc64-linux-tdep.c: Update for unwinder changes.
389 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
391 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
392 for unwinder changes.
393 * mips-tdep.c: Likewise.
394 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
397 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
399 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
402 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
404 Update i386 and amd64 ports for unwinder changes.
406 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
407 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
408 (amd64_frame_unwind): Use default_frame_sniffer.
409 (amd64_frame_sniffer): Delete.
410 (amd64_sigtramp_frame_cache): Expect this_frame.
411 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
412 (amd64_sigtramp_frame_sniffer): Update signature.
413 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
414 (amd64_frame_base_address): Expect this_frame.
415 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
417 (amd64_init_abi): Use set_gdbarch_dummy_id and
418 frame_unwind_append_unwinder.
419 * i386-tdep.c (i386_frame_cache): Expect this_frame.
420 (i386_frame_this_id, i386_frame_prev_register): Update signature.
421 (i386_frame_unwind): Use default_frame_sniffer.
422 (i386_frame_sniffer): Delete.
423 (i386_sigtramp_frame_cache): Expect this_frame.
424 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
425 (i386_sigtramp_frame_sniffer): Update signature.
426 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
427 (i386_frame_base_address): Update signature.
428 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
429 (i386_push_dummy_call): Update comment.
430 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
432 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
433 and frame_unwind_append_unwinder.
434 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
435 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
436 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
437 i386nbsd-tdep.c: Update for unwinder changes.
439 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
441 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
442 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
444 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
445 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
446 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
448 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
450 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
452 * tramp-frame.h (struct tramp_frame): Update signature of init.
453 * Makefile.in (trad-frame.o): Update.
455 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
457 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
458 (execute_stack_op): Put this_frame in the baton.
459 (execute_cfa_program): Take this_frame.
460 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
461 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
462 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
463 (dwarf2_frame_this_id): Adjust to work on this_frame.
464 (dwarf2_signal_frame_this_id): Delete.
465 (dwarf2_frame_prev_register): Update signature. Use new frame
467 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
468 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
469 dwarf2_frame_sniffer.
470 (dwarf2_append_unwinders): New.
471 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
473 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
474 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
475 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
476 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
477 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
478 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
479 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
480 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
481 (dwarf2_append_unwinders): Declare.
482 (dwarf2_frame_base_sniffer): Update declaration.
483 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
486 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
488 Convert frame unwinders to use the current frame and
491 * frame.c (frame_debug): Make global.
492 (get_frame_id): Pass this frame to unwinder routines.
493 (frame_pc_unwind): Remove unused unwind->prev_pc support.
494 (do_frame_register_read): Do not discard the return value of
496 (frame_register_unwind): Remove debug messages. Use
497 frame_unwind_register_value.
498 (frame_unwind_register_value, get_frame_register_value): New
500 (create_new_frame, get_frame_base_address, get_frame_locals_address)
501 (get_frame_args_address, get_frame_type): Pass this frame to
503 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
505 * frame.h: Update comments.
506 (frame_debug, frame_unwind_register_value, get_frame_register_value)
507 (frame_prepare_for_sniffer): Declare.
508 * frame-unwind.h: Update comments and parameter names.
509 (default_frame_sniffer): Declare.
510 (frame_prev_register_ftype): Return a struct value *.
511 (struct frame_unwind): Remove prev_pc member.
512 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
513 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
514 (frame_unwind_got_register, frame_unwind_got_memory)
515 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
516 * frame-base.h: Update comments and parameter names.
517 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
518 if necessary. Add debugging output.
519 * sentinel-frame.c (sentinel_frame_prev_register)
520 (sentinel_frame_this_id): Update for new signature.
521 (sentinel_frame_prev_pc): Delete.
522 (sentinel_frame_unwinder): Remove prev_pc.
523 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
525 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
526 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
527 (frame_unwind_append_sniffer): Delete.
528 (frame_unwind_append_unwinder): New function.
529 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
530 from unwinders. Use frame_prepare_for_sniffer.
531 (default_frame_sniffer, frame_unwind_got_optimized)
532 (frame_unwind_got_register, frame_unwind_got_memory)
533 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
534 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
535 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
537 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
538 * gdbarch.c, gdbarch.c: Regenerated.
539 * frame-base.c (default_frame_base_address)
540 (default_frame_locals_address, default_frame_args_address): Update
542 (frame_base_find_by_frame): Pass this frame to unwinder routines.
543 * infcall.c (call_function_by_hand): Update comments.
544 * Makefile.in (frame-unwind.o): Update dependencies.
546 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
548 * ada-lang.c (ada_value_primitive_packed_val): Only check
549 value_lazy for memory lvals.
550 * findvar.c (value_of_register_lazy): New function.
551 (locate_var_value): Only check value_lazy for memory lvals.
552 * valarith.c (value_subscripted_rvalue): Likewise.
553 * valops.c (value_fetch_lazy): Handle both memory and register
555 (search_struct_field, value_slice): Only check value_lazy for memory
557 * value.c (struct value): Update comment for lazy.
558 (value_primitive_field): Only check value_lazy for memory lvals.
559 * value.h (value_lazy): Update comment.
560 (value_of_register_lazy): Declare.
562 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
564 * corefile.c (reopen_exec_file): Close any open files.
566 2008-04-29 Joel Brobecker <brobecker@adacore.com>
568 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
569 show_memory_breakpoints to 1 while reading the instruction bundle.
571 2008-04-29 Joel Brobecker <brobecker@adacore.com>
573 * gdbarch.sh: Document the return_value method. Explain that
574 the FUNCTYPE parameter might be NULL.
575 * gdbarch.h: Regenerated.
576 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
577 type when calling using_struct_return, as this is unnecessary
580 2008-04-28 Joel Brobecker <brobecker@adacore.com>
582 * terminal.h (create_tty_session): Fix return type.
584 2008-04-26 Vladimir Prus <vladimir@codesourcery.com>
586 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
588 2008-04-26 Joel Brobecker <brobecker@adacore.com>
590 * breakpoint.c (condition_command, commands_from_control_command)
591 (break_command_really): Minor reformatting.
593 2008-04-25 Pedro Alves <pedro@codesourcery.com>
595 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
597 2008-04-25 Pedro Alves <pedro@codesourcery.com>
599 * amd64-tdep.c (amd64_get_longjmp_target): New.
600 (amd64_init_abi): Register amd64_get_longjmp_target as
601 gdbarch_get_longjmp_target callback.
602 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
604 2008-04-25 Pedro Alves <pedro@codesourcery.com>
606 * breakpoint.h (enum bpstat_what_main_action): Delete
607 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
609 * breakpoint.c (clrs): Delete.
610 (bpstat_what): Update table.
612 * infrun.c (handle_inferior_event): Remove
613 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
615 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
617 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
618 Adjust all prototypes using mi_cmd_args_ftype to use
620 (struct mi_cmd): Remove the args_func field.
621 * mi/mi-cmds.c: Don't provide value for the args_func field.
622 * mi/mi-main.c (mi_execute_async_cli_command)
623 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
624 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
625 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
626 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
627 (mi_cmd_target_download): Adjust.
628 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
629 (mi_cmd_execute): Do not check for args_func.
630 (mi_execute_async_cli_command): Adjust.
631 * mi/mi-parse.c: Don't check for args_func.
633 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
635 * breakpoint.c (bpstat_check_location)
636 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
637 New, extracted from bpstat_stop_status.
638 (bpstat_stop_status): Use the above.
640 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
642 * mi/mi-main.c (last_async_command): Rename to current_token.
643 (previous_async_command): Remove.
644 (mi_cmd_gdb_exit): Adjust.
645 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
646 (mi_cmd_target_select): Adjust.
647 (mi_cmd_execute): Don't set previous_async_command. Free token
648 here even in async mode.
649 (mi_execute_async_cli_command): Adjust.
650 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
652 (mi_load_progress): Adjust.
654 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
656 * infcmd.c (step_1_continuation): Always disable longjmp
657 breakpoint if we're not going to do another step.
659 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
662 * breakpoint.c (until_break_command_continuation): Add
663 the 'error' parameter. Directly delete the breakoint as
664 opposed to running cleanups.
665 (until_break_command): Install continuation only
666 after starting the target. Don't use exec cleanups,
667 use ordinary cleanups. Discard cleanups is successfully
668 started the target in async mode.
669 (make_cleanup_delete_breakpoint): Remove.
670 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
672 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
674 (struct continations): Add the 'error' parameter to the
675 continuation_hook field.
676 (add_continuation, do_all_continuations)
677 (add_intermediate_continuation)
678 (do_all_intermediate_continuations): Add the 'error' parameter.
679 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
680 * inf-loop.c (inferior_event_handler): Instead of calling
681 discard_all_continuations, use do_all_continuations with 1 as
682 'error' parameter. Pass 0 as 'error' parameter in existing uses
683 of discard_all_continuations.
684 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
686 (step_once): Install continuation only after resuming the target.
687 (step_1_continuation): Disable longjmp breakpoint on error.
688 (finish_command_continuation): Add the error parameter. Delete
689 the finish breakpoint directly, do not use cleanups.
690 (finish_command): Do not use exec_cleanups. Always setup
691 continuation. For sync case, immediately run them.
692 (attach_command_continuation): Add the error parameter.
693 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
694 remove step_resume_breakpoint -- adjust delete it directly.
695 * interps.c (interp_set): Adjust call to do_all_continations.
696 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
698 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
700 (mi_cmd_execute): Do not use exec_cleanup.
701 (mi_execute_async_cli_command): Simplify the string concatenation
702 logic. Do no use exec cleanup.
703 (mi_exec_async_cli_cmd_continuation): New parameter error.
704 Free last_async_command.
705 * top.c (command_line_handler_continuation): New parameter error.
706 * utils.c (exec_cleanup_chain, make_exec_cleanup)
707 (do_exec_cleanups): Remove.
708 (add_continuation, do_all_continations)
709 (add_intermediate_continuation)
710 (do_all_intermediate_continuations): New parameter error.
712 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
714 * breakpoint.h (bp_location_p): New typedef.
715 Register a vector of bp_location_p.
716 * breakpoint.c (always_inserted_mode)
717 (show_always_inserted_mode): New.
718 (unlink_locations_from_global_list): Remove.
719 (update_global_location_list)
720 (update_global_location_list_nothrow): New.
721 (update_watchpoint): Don't free locations.
722 (should_insert_location): New.
723 (insert_bp_location): Use should_insert_location.
724 (insert_breakpoint_locations): Copied from
726 (insert_breakpoint): Use insert_breakpoint_locations.
727 (bpstat_stop_status): Call update_global_location_list
728 when disabling breakpoint.
729 (allocate_bp_location): Don't add to bp_location_chain.
731 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
732 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
733 (enable_overlay_breakpoints, disable_overlay_breakpoints)
734 (set_longjmp_resume_breakpoint)
735 (enable_watchpoints_after_interactive_call_stop)
736 (disable_watchpoints_before_interactive_call_start)
737 (create_internal_breakpoint)
738 (create_fork_vfork_event_catchpoint)
739 (create_exec_event_catchpoint, set_momentary_breakpoint)
740 (create_breakpoints, break_command_1, watch_command_1)
741 (create_exception_catchpoint)
742 (handle_gnu_v3_exceptions)
743 (disable_breakpoint, breakpoint_re_set_one)
744 (create_thread_event_breakpoint, create_solib_event_breakpoint)
745 (create_ada_exception_breakpoint): : Don't call check_duplicates.
746 Call update_global_location_list.
747 (delete_breakpoint): Don't remove locations and don't
748 try to reinsert them. Call update_global_location_list.
749 (update_breakpoint_locations): Likewise.
750 (restore_always_inserted_mode): New.
751 (update_breakpoints_after_exec): Temporary disable
752 always inserted mode.
753 * Makefile.in: Update dependencies.
755 * infrun.c (proceed): Remove breakpoints while stepping
757 (handle_inferior_event): Don't remove or insert
759 * linux-fork.c (checkpoint_command): Remove breakpoints
760 before fork and insert after.
761 (linux_fork_context): Remove breakpoints before switch
763 * target.c (target_disconnect, target_detach): Remove
764 breakpoints from target.
767 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
769 * breakpoint.c (print_one_breakpoint_location): In MI
770 mode, report the location string the breakpoint was
771 originally created with.
773 2008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
775 * Makefile.in (xtensa-tdep.o): Update dependencies.
776 * configure.tgt (xtensa*): Update dependencies.
777 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
778 Local variable areg renamed to arreg.
779 (areg_number): New function.
780 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
781 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
782 replaced by arreg_number.
783 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
784 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
785 (xtensa_scan_prologue): New function.
786 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
787 when ENTRY instraction hasn't been executed yet. Get the frame pointer
788 value based on prologue analysis. Fix the bugs preventing WS and
789 AR4-AR7/A11 registers from getting right values for intermediate frames,
790 whose registers have been already spilled.
791 (xtensa_frame_prev_register): Fix WS register value. Use are_number
792 and arreg_number appropriately.
793 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
794 svr4_ilp32_fetch_link_map_offsets.
796 2008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
798 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
799 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
801 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
803 * acinclude.m4: Add override.m4.
804 * configure: Regenerate.
806 2008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
808 * ada-lang.c (get_selections): Variable PROMPT made non-const and
809 initialized with a trailing space now. Use PROMPT_ARG of
810 COMMAND_LINE_INPUT instead of printing it ourselves.
812 2008-04-22 Joel Brobecker <brobecker@adacore.com>
814 * NEWS: Document support for 64-bit core file.
816 2008-04-22 Corinna Vinschen <vinschen@redhat.com>
818 * NEWS: Add information on calling convention and new SH CLI options.
820 * sh-tdep.c (sh_cc_gcc): New static string.
821 (sh_cc_renesas): Ditto.
822 (sh_cc_enum): New static string array.
823 (sh_active_calling_convention): New static string pointer denoting
824 active user chosen ABI.
825 (sh_is_renesas_calling_convention): New function to return function
826 specific ABI, or user choice if necessary.
827 (sh_use_struct_convention): Rename first argument and turn around its
828 meaning. Check for renesas ABI and return accordingly.
829 (sh_use_struct_convention_nofpu): New function.
830 (sh_next_flt_argreg): Get function type as third parameter. Check
831 for renesas ABI and choose floating registers accordingly.
832 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
833 struct return slot accordingly.
834 (sh_push_dummy_call_nofpu): Ditto.
835 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
836 Evaluate ABI and give to sh_use_struct_convention_nofpu.
837 (sh_return_value_fpu): Evaluate ABI and give to
838 sh_use_struct_convention.
839 (show_sh_command): New function.
840 (set_sh_command): Ditto.
841 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
844 * gdbarch.sh (return_value): Add func_type argument.
845 * gdbarch.c: Regenerate.
847 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
848 val_type so as not to collide with value_type function. Call
849 using_struct_return with additional function type argument.
850 * infcall.c (call_function_by_hand): Call using_struct_return and
851 gdbarch_return_value with additional function type argument.
852 * infcmd.c (print_return_value): Take addition func_type argument.
853 Call gdbarch_return_value with additional function type argument.
854 (finish_command_continuation): Call print_return_value with additional
855 function type argument.
856 (finish_command): Ditto.
857 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
858 additional function type argument.
859 * stack.c (return_command): Call using_struct_return and
860 gdbarch_return_value with additional function type argument.
861 * value.c (using_struct_return): Take additional function type argument.
862 * value.h (using_struct_return): Accommodate declaration.
863 * alpha-tdep.c (alpha_return_value): Add func_type argument.
864 * amd64-tdep.c (amd64_return_value): Ditto.
865 * arm-tdep.c (arm_return_value): Ditto.
866 * avr-tdep.c (avr_return_value): Ditto.
867 * cris-tdep.c (cris_return_value): Ditto.
868 * frv-tdep.c (frv_return_value): Ditto.
869 * h8300-tdep.c (h8300_return_value): Ditto.
870 (h8300h_return_value): Ditto.
871 * hppa-tdep.c (hppa32_return_value): Ditto.
872 (hppa64_return_value): Ditto.
873 * i386-tdep.c (i386_return_value): Ditto.
874 * ia64-tdep.c (ia64_return_value): Ditto.
875 * iq2000-tdep.c (iq2000_return_value): Ditto.
876 * m32c-tdep.c (m32c_return_value): Ditto.
877 * m32r-tdep.c (m32r_return_value): Ditto.
878 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
879 * m68k-tdep.c (m68k_return_value): Ditto.
880 (m68k_svr4_return_value): Ditto.
881 * m88k-tdep.c (m88k_return_value): Ditto.
882 * mep-tdep.c (mep_return_value): Ditto.
883 * mips-tdep.c (mips_eabi_return_value): Ditto.
884 (mips_n32n64_return_value): Ditto.
885 (mips_o32_return_value): Ditto.
886 (mips_o64_return_value): Ditto.
887 * mn10300-tdep.c (mn10300_return_value): Ditto.
888 * mt-tdep.c (mt_return_value): Ditto.
889 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
890 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
891 (ppc_sysv_abi_broken_return_value): Ditto.
892 (ppc64_sysv_abi_return_value): Ditto.
893 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
894 (ppc_sysv_abi_broken_return_value): Ditto.
895 (ppc64_sysv_abi_return_value): Ditto.
896 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
897 * rs6000-tdep.c (rs6000_return_value): Ditto.
898 * s390-tdep.c (s390_return_value): Ditto.
899 * score-tdep.c (score_return_value): Ditto.
900 * sh-tdep.c (sh_return_value_nofpu): Ditto.
901 (sh_return_value_fpu): Ditto.
902 * sh64-tdep.c (sh64_return_value): Ditto.
903 * sparc-tdep.c (sparc32_return_value): Ditto.
904 * sparc64-tdep.c (sparc64_return_value): Ditto.
905 * spu-tdep.c (spu_return_value): Ditto.
906 * v850-tdep.c (v850_return_value): Ditto.
907 * vax-tdep.c (vax_return_value): Ditto.
908 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
909 * xtensa-tdep.c (xtensa_return_value): Ditto.
911 * gdbtypes.h (struct type): Add calling_convention member.
912 * dwarf2read.c (read_subroutine_type): Add calling convention read
913 from DW_AT_calling_convention attribute to function type.
915 2008-04-22 Markus Deuling <deuling@de.ibm.com>
917 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
918 multi_f77_subscript to support values from registers.
919 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
920 * value.h (value_subscripted_rvalue): Add prototype.
922 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
924 * f-valprint.c (f_val_print): Likewise.
926 2008-04-21 Craig Silverstein <csilvers@google.com>
928 * dwarf2read.c (zlib_decompress_section): Define abfd in the
931 2008-04-21 Pedro Alves <pedro@codesourcery.com>
933 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
934 section is not a code section.
936 2008-04-19 Craig Silverstein <csilvers@google.com>
938 * NEWS: Add information on compressed debug sections.
940 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
942 * mi/mi-cmd-var.c (varobj_update_one): Print new
943 value for variable objects that changed type.
945 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
947 * varobj.c (varobj_invalidate): Don't touch floating
950 2008-04-19 Mark Kettenis <kettenis@gnu.org>
952 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
953 (multiple_symbols_cancel): Remove extra const.
954 * symtab.h: Likewise.
956 2008-04-19 Nick Roberts <nickrob@snap.net.nz>
958 * interps.c (top_level_interpreter): Rename static variable...
959 (top_level_interpreter_ptr): ...to this.
960 (top_level_interpreter): New function.
962 * interps.h: New extern for top_level_interpreter.
964 * linespec.c: Include interps.h and mi/mi-cmds.h.
965 (decode_line_2): When using MI, always set all breakpoints in menu.
967 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
969 2008-04-18 Craig Silverstein <csilvers@google.com>
971 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
972 * config.in, configure: Regenerate.
973 * dwarf2read.c: Include zlib.h if present.
974 Modified *_SECTION macros.
976 (dwarf2_locate_sections): Use section_is_p instead of strcmp
977 (dwarf2_resize_section): New.
978 to determine whether a given section has a given name.
979 (zlib_decompress_section): New.
980 (dwarf2_read_section): Read the compressed section if present
982 * MAINTAINERS: Added myself to section Write After Approval.
984 2008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
986 * defs.h (exec_set_section_offsets): Remove prototype.
987 * exec.c (exec_set_section_offsets): Remove function.
989 2008-04-18 Joel Brobecker <brobecker@adacore.com>
991 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
992 in the search for the matching symbol.
994 2008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
996 * breakpoint.c (update_watchpoint): Always reparse
999 2008-04-17 Joel Brobecker <brobecker@adacore.com>
1001 * breakpoint.c (print_one_breakpoint_location): Make sure to print
1002 the breakpoint address only once.
1004 2008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
1006 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
1007 rather than a hard-coded architecture, for xcoff executables.
1009 2008-04-17 Doug Evans <dje@google.com>
1011 * buildsym.c (watch_main_source_file_lossage): New fn.
1012 (end_symtab): Call it.
1014 * source.c (find_and_open_source): Add some comments clarifying
1015 handling of FULLNAME argument. Make static. Remove pointless
1018 2008-04-17 Pedro Alves <pedro@codesourcery.com>
1020 * inf-loop.c (inferior_event_handler): Also run the intermediate
1021 continuations in the INF_EXEC_COMPLETE case.
1023 2008-04-16 Tom Tromey <tromey@redhat.com>
1025 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
1026 (set_cmd_async_ok, get_cmd_async_ok): Declare.
1027 * cli/cli-decode.c (set_cmd_async_ok): New function.
1028 (get_cmd_async_ok): New function.
1029 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
1031 * top.c (execute_command): Use get_cmd_async_ok.
1032 * infcmd.c: Include cli/cli-decode.h.
1033 (_initialize_infcmd): Mark "interrupt" as async-ok.
1034 * Makefile.in (infcmd.o): Depend on cli_decode_h.
1036 2008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
1039 * exec.c: Correct "arch-utils.h" include.
1041 2008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
1044 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
1045 to allow printing to 'see' real reason of stop. This fixes PR 2424.
1046 * breakpoint.c (bpdisp_texst): New function. The function takes over
1047 the role of bpstats static array in print_one_breakpoint_location.
1048 (print_it_typical): Print "Temporary breakpoint" instead
1049 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
1050 protocols, print disp field.
1051 (print_one_breakpoint_location): Removed bpdisps static definition.
1052 Call new bpstat_text function to get value for 'disp' field.
1053 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
1055 2008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
1057 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
1058 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
1059 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
1060 * gnulib/Makefile.in: Regenerate.
1062 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
1064 * Makefile.in (GNULIB_H): New. Trigger all-lib.
1065 (defs_h): Use $(GNULIB_H).
1066 (all-lib): Depend on gnulib/Makefile.
1067 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
1068 * config.in, gnulib/Makefile.in: Regenerated.
1070 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
1072 * Makefile.in (LIBGNU, INCGNU): Define.
1073 (INTERNAL_CFLAGS_BASE): Add INCGNU.
1074 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
1076 ($(LIBGNU), all-lib): New rules.
1077 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
1078 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
1079 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
1080 * gnulib: New directory, from gnulib-tool.
1081 * configure, aclocal.m4: Regenerated.
1083 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
1085 * linux-thread-db.c (have_threads_callback): Check thread->private.
1087 2008-04-13 Nick Roberts <nickrob@snap.net.nz>
1088 Vladimir Prus <vladimir@codesourcery.com>
1091 * varobj.c (value_of_root): Update the expression for
1093 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
1096 2008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
1098 * mi/mi-cmd-var.c: Include "mi-getopt.h".
1099 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
1100 (mi_cmd_var_set_format): Use new mi_parse_format.
1101 (mi_cmd_var_evaluate_expression): Support for -f option to specify
1103 * Makefile.in (mi-cmd-var.o): Update dependencies.
1105 * varobj.h (varobj_get_formatted_value): Declare.
1106 * varobj.c (my_value_of_variable): Added format parameter.
1107 (cplus_value_of_variable): Likewise.
1108 (java_value_of_variable): Likewise.
1109 (c_value_of_variable): Likewise. Evaluate expression based
1110 on format parameter.
1111 (struct language_specific): Add format parameter to function member
1113 (varobj_get_formatted_value): New.
1114 (varobj_get_value): Added format parameter to method call.
1116 2008-04-08 Joel Brobecker <brobecker@adacore.com>
1118 * stabsread.c (cleanup_undefined_types_noname): Manually set the
1119 instance flags of the undefined type before calling replace_type.
1121 2008-04-08 Vladimir Prus <vladimir@codesourcery.com>
1123 * target.h (enum strata): Remove the download_stratum.
1125 2008-04-07 Doug Evans <dje@google.com>
1127 * buildsym.h (last_source_file): Add dwarf info to comment.
1128 (last_source_start_addr): Ditto.
1130 2008-04-07 Pedro Alves <pedro@codesourcery.com>
1132 * alphanbsd-tdep.c: Include "target.h".
1133 * mn10300-tdep.c: Include "target.h".
1134 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
1136 2008-04-06 Vladimir Prus <vladimir@codesourcery.com>
1138 Fix breakpoint condition that use member variables.
1139 * valops.c (check_field): Remove.
1140 (check_field_in): Rename to check_field.
1141 (value_of_this): Use la_name_of_this.
1142 * value.h (check_field): Adjust prototype.
1144 * language.h (la_value_of_this): Rename to la_name_of_this.
1145 * language.c (unknown_language_defn): Specify "this" for
1147 (auto_language_defn): Likewise.
1148 (local_language_defn): Likewise.
1149 * ada-lang.c (ada_language_defn): Adjust comment.
1150 * c-lang.c (c_language_defn): Adjust comment.
1151 (cplus_language_defn): Specify "this" for name_of_this.
1152 (asm_language_defn): Adjust comment.
1153 (minimal_language_defn): Adjust comment.
1154 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
1155 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
1156 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
1157 * objc-lang.c (objc_language_defn): Specify "self" for
1159 * p-lang.c (pascal_language_defn): Specify "this" for
1161 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
1163 * symtab.c (lookup_symbol_aux): Lookup "this" in the
1164 proper scope, and check for field in type of "this", without
1165 trying to create a value.
1167 2008-04-04 Pedro Alves <pedro@codesourcery.com>
1169 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
1170 (mi_error_message): Delete declaration.
1171 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
1172 returning MI_CMD_ERROR.
1173 * mi/mi-main.c (mi_error_message): Delete.
1174 (mi_cmd_exec_interrupt):
1175 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
1176 (mi_cmd_thread_info): Call error instead of returning
1178 (mi_cmd_data_list_register_values): Call error instead of
1179 returning MI_CMD_ERROR. Adapt to new get_register interface.
1180 (get_register): Change return typo to void. Call error instead of
1181 returning MI_CMD_ERROR.
1182 (mi_cmd_data_write_register_values): Call error instead of
1183 returning MI_CMD_ERROR.
1184 (mi_cmd_list_features): Return MI_CMD_DONE.
1185 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
1186 (mi_execute_command): Always print exceptions with -error.
1188 2008-04-04 Joel Brobecker <brobecker@adacore.com>
1190 * NEWS: Mention new commands set/show multiple-symbols.
1192 2008-04-03 Joel Brobecker <brobecker@adacore.com>
1194 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
1195 (multiple_symbols_cancel): New constants.
1196 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
1197 (multiple_symbols_select_mode): New function.
1198 (_initialize_symtab): Add new set/show multiple-symbols commands.
1199 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
1200 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
1201 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
1203 * linespec.c (decode_line_2): Likewise.
1205 2008-04-03 Doug Evans <dje@sebabeach.org>
1207 * symtab.h (enum free_code): Delete free_contents, unused.
1208 * symmisc.c (free_symtab_block): Delete.
1209 (free_symtab, case free_code): Delete.
1211 2008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
1213 * valops.c (value_cast_structs): New function. Cast related
1214 STRUCT types up/down and return cast value. The body of this
1215 function comes mostly from value_cast_pointers.
1216 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
1217 to value_cast_structs. Now value_cast_pointers needs only create
1218 appropriate reference after using value_cast_structs for actual
1220 (value_cast): Handle references.
1222 2008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
1224 * MAINTAINERS: Added myself to section Write After Approval.
1226 2008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
1228 * ia64-tdep.c (examine_prologue): Correct array access.
1230 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
1232 * cp-support.c (first_component_command): Return if no arguments.
1234 2008-03-28 Carlos O'Donell <carlos@codesourcery.com>
1236 * ser-mingw.c (ser_windows_open): Open requested name.
1238 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
1240 * MAINTAINERS: Added myself.
1242 2008-03-28 Pedro Alves <pedro@codesourcery.com>
1244 * target.c (find_default_run_target): Allow a NULL `do_mesg'
1245 parameter. If it is NULL, don't call error.
1246 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
1247 `do_mesg' parameter to find_default_run_target. If no target was
1250 2008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
1252 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
1253 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
1254 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
1256 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
1258 2008-03-27 Joel Brobecker <brobecker@adacore.com>
1262 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
1264 * features/Makefile (%.dat): Set xmltarget to the base filename
1265 of the XML source, without subdirectory.
1266 * regformats/rs6000/powerpc-32.dat: Regenerate.
1267 * regformats/rs6000/powerpc-64.dat: Regenerate.
1268 * regformats/rs6000/powerpc-e500.dat: Regenerate.
1270 2008-03-27 Markus Deuling <deuling@de.ibm.com>
1272 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
1275 2008-03-27 Nick Roberts <nickrob@snap.net.nz>
1277 * mi/mi-main.c (enum captured_mi_execute_command_actions):
1278 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
1280 2008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
1282 * objfiles.h (struct objfile): New GDBARCH member.
1283 (get_objfile_arch): Add prototype.
1284 * objfiles.c: Include "arch-utils.h".
1285 (allocate_objfile): Look up gdbarch associated with bfd.
1286 (get_objfile_arch): New function.
1287 * Makefile (objfiles.o): Update dependencies.
1289 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
1291 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
1293 (locexpr_describe_location): Replace current_gdbarch by
1295 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
1296 (dwarf2_add_field): Likewise.
1297 (read_tag_pointer_type): Likewise.
1298 (read_base_type): Likewise.
1299 (new_symbol): Likewise.
1301 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
1302 (decode_base_type, decode_function_type): Likewise.
1303 (coff_read_struct_type, coff_read_enum_type): Likewise.
1304 (coff_symtab_read): Replace current_gdbarch by objfile arch.
1305 (decode_base_type): Likewise.
1306 (coff_read_enum_type): Likewise.
1307 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
1308 (coff_read_enum_type): Likewise.
1310 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
1311 (end_psymtab): Likewise.
1312 (process_one_symbol): Likewise.
1314 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
1315 (parse_procedure): Likewise.
1316 (parse_partial_symbols): Likewise.
1318 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
1320 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
1321 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
1323 (read_range_type): Replace current_gdbarch by objfile arch. Replace
1324 static range_index_type by built-in type.
1325 (read_one_struct_field): Replace current_gdbarch by objfile arch.
1326 (read_enum_type): Likewise.
1328 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
1331 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
1333 * varobj.h (varobj_floating_p): Declare.
1334 * varobj.c (varobj_floating_p): New.
1335 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
1336 '@' as the name, update all floating varobjs.
1338 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
1340 * varobj.c (struct varobj_root): Rename use_selected_frame to
1341 floating, and clarify the meaning.
1342 (varobj_create, varobj_update, new_root_variable): Adjust.
1343 (value_of_root): Don't use type_changed as in variable,
1345 (c_value_of_root): Adjust.
1347 2008-03-25 Pedro Alves <pedro@codesourcery.com>
1349 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
1351 (linux_nat_wait): Add main lwp to gdb's thread list.
1352 * linux-thread-db.c (find_new_threads_callback): Also attach to
1353 already listed threads which thread_db didn't know about yet.
1355 2008-03-25 Pedro Alves <pedro@codesourcery.com>
1357 * linux-nat.c (drain_queued_events): Fix comment typo.
1358 (linux_nat_attach): In async mode, don't rely on storing a pending
1359 status. Instead place the wait status on the pipe.
1360 (linux_nat_resume): Remove unreacheable shortcut code in async
1362 (stop_wait_callback): In async mode, don't store pending status.
1363 Instead, cancel breakpoints or resend the signal appropriatelly.
1364 (cancel_breakpoint): New, refactored from
1365 cancel_breakpoints_callback.
1366 (cancel_breakpoints_callback): Call cancel_breakpoint.
1367 (pipe_to_local_event_queue): Remove special token processing.
1368 (linux_nat_wait): Issue an internal error if a pending status is
1369 found in async mode.
1371 2008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
1373 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
1375 2008-03-24 Nick Roberts <nickrob@snap.net.nz>
1376 Vladimir Prus <vladimir@codesourcery.com>
1378 * varobj.c (struct varobj_root): New component thread_id.
1379 (varobj_get_thread_id, check_scope): New functions.
1380 (c_value_of_root): Use check_scope. Switch to the
1381 proper thread if necessary.
1383 * varobj.h (varobj_get_thread_id): New extern.
1385 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
1387 2008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
1390 * top.c: Revert 2008-03-21 changes.
1392 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
1394 * thread.c (make_cleanup_restore_current_thread): Make it
1396 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
1397 * varobj.c (varobj_update): Don't save/restore frame.
1398 (c_value_of_root): Save/restore thread and frame here,
1399 using make_cleanup_restore_current_thread.
1400 * Makefile.in: Update dependecies.
1402 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
1404 * varobj.c (struct varobj_root): Clarify
1405 comment on the frame field.
1406 (varobj_create): Don't set frame if we have no
1409 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
1412 Suggested by Jan Kratochvil:
1413 * top.c (gdb_rl_operate_and_get_next_completion): Call
1414 rl_redisplay_function.
1415 (gdb_rl_redisplay): New.
1416 (init_main): Set rl_redisplay_function.
1418 2008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
1420 * aix-thread.c (pdc_read_regs): Fix compiler warning.
1421 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
1422 (store_regs_kernel_thread): Likewise.
1424 2008-03-21 Pedro Alves <pedro@codesourcery.com>
1426 Linux native async support.
1428 * target.h (struct target_ops): Delete to_async_mask_value and add
1430 (target_is_async_p, target_async): Formatting.
1431 (target_async_mask_value): Delete.
1432 (target_async_mask): Delete function declaration, and add new
1433 target macro with the same name.
1435 * target.c (update_current_target): Replace to_async_mask_value by
1436 to_async_mask. Default to_async_mask to return_one.
1437 (target_async_mask): Delete.
1438 (find_default_can_async_p, find_default_is_async_p): New.
1439 (init_dummy_target): register find_default_can_async_p and
1440 find_default_is_async_p on the dummy target.
1442 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
1443 (debug_linux_nat_async): New global.
1444 (show_debug_linux_nat_async): New function.
1445 (linux_nat_async_enabled, linux_nat_async_mask_value)
1446 (linux_nat_event_pipe, linux_nat_num_queued_events)
1447 (linux_nat_async_events_enabled): New globals.
1448 (struct waitpid_result): New struct.
1449 (waitpid_queue): New global.
1450 (queued_waitpid, push_waitpid, drain_queued_events): New.
1451 (my_waitpid): Call queued_waitpid.
1452 (linux_child_follow_fork): Disable async events during the call.
1453 (blocked_mask): Delete.
1454 (sync_sigchld_action, async_sigchld_action): New globals.
1455 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
1456 async mode, block events during the call.
1457 (linux_nat_create_inferior): New.
1458 (linux_nat_attach): In sync mode, restore the mask states. In
1459 async mode, wake the event loop immediatelly.
1460 (detach_callback): Drain all queued events of the lwp we're
1462 (linux_nat_detach): Block async mode, and drain events of the main
1464 (linux_nat_resume): If in async mode, mask async events during the
1465 call. If short circuiting, force event loop to wake up. If
1466 resuming, set target_executing, and register target events in the
1468 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
1469 (linux_nat_wait): In async mode, block events during the call.
1470 Only enable/disable passing SIGINT to the inferior in sync mode.
1471 Get events from local waitpid queue. If no interesting events was
1472 found, return to events loop. Reregister target events in the
1473 event loop on exit. In sync mode, no need to reblock SIGCHLD.
1474 (linux_nat_kill): Disable events on entry.
1475 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
1476 here. Detach async mode from the event loop if there are no more
1477 forks available, otherwise leave it on.
1478 (sigchld_handler): Assure this is called only in sync mode.
1479 (linux_async_permitted, linux_async_permitted_1): New globals.
1480 (set_maintenance_linux_async_permitted)
1481 (show_maintenance_linux_async_permitted): New functions.
1482 (linux_nat_is_async_p, linux_nat_can_async_p)
1483 (linux_nat_async_mask): New.
1484 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
1485 (get_pending_events, async_sigchld_handler): New.
1486 (linux_nat_async_events): New.
1487 (async_terminal_is_ours): New global.
1488 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
1489 (async_client_callback, async_client_context): New.
1490 (linux_nat_async_file_handler, linux_nat_async)
1491 (linux_nat_disable_async, linux_nat_enable_async): New.
1492 (linux_nat_add_target): Register linux_nat_create_inferior,
1493 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
1494 linux_nat_async_mask, linux_nat_terminal_inferior and
1495 linux_nat_terminal_ours.
1496 (_initialize_linux_nat): Remove local action variable, and update
1497 code that used it to use sync_sigchld_action. Add new
1498 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
1499 set/show command in the maintenance class. Add new "linux-async"
1500 maintenance set/show command. Block SIGCHLD by default. Setup
1501 async_sichld_action, and sync_sigchld_action. Install the default
1503 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
1506 * linux-thread-db.c (re_check_for_thread_db): New.
1507 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
1508 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
1509 (thread_db_async_mask): New.
1510 (init_thread_db_ops): Register thread_db_can_async_p,
1511 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
1513 * remote.c (remote_async_mask_value): New.
1514 (remote_return_zero): New.
1515 (init_remote_ops): Register remote_return_zero as callbacks of
1516 to_can_async_p and to_is_async_p.
1517 (remote_can_async_p, remote_is_async_p, remote_async): Update to
1518 use remote_async_mask_value.
1519 (remote_async_mask): New.
1520 (init_remote_async_ops): Remove to_async_mask_value setting and
1521 register remote_async_mask as to_async_mask callback in
1524 * Makefile.in (linux-nat.o): Update.
1526 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
1528 * gdbthread.h (add_thread_with_info): New.
1529 * linux-thread-db.c: Add some documentation.
1530 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
1531 (struct private_thread_info): Remove th_valid and ti_valid.
1532 Replace ti with tid.
1533 (thread_get_info_callback): Do not add TID to the new ptid. Do
1535 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
1536 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
1538 (attach_thread): Handle an already-existing thread. Use
1539 add_thread_with_info. Cache the th and tid.
1540 (detach_thread): Verify that private was set. Remove verbose
1541 argument and printing. Update caller.
1542 (thread_db_detach): Do not adjust inferior_ptid.
1543 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
1544 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
1545 (thread_db_wait): Do not use lwp_from_thread.
1546 (thread_db_pid_to_str): Use the cached TID.
1547 (thread_db_extra_thread_info): Check that private is set.
1548 (same_ptid_callback): Delete.
1549 (thread_db_get_thread_local_address): Do not use it or check
1550 is_thread. Check that private is set. Assume that the thread
1551 handle is already cached.
1552 (init_thread_db_ops): Remove to_resume and to_kill.
1553 * thread.c (add_thread_with_info): New.
1554 (add_thread): Use it.
1555 * linux-nat.c (find_thread_from_lwp): Delete.
1556 (exit_lwp): Do not use it. Check print_thread_events. Print before
1557 deleting the thread.
1558 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
1559 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
1560 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
1561 printf_unfiltered for thread exits.
1562 * procfs.c (procfs_wait): Likewise.
1564 2008-03-21 Chris Demetriou <cgd@google.com>
1566 * symtab.c (rbreak_command): Quote symbol name before passing
1567 it to break_command.
1569 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
1571 * eval.c (evaluate_subexp_for_address): Clarify error message.
1572 Use value_must_coerce_to_target.
1573 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
1574 * valops.c (value_assign): Call value_coerce_to_target when
1575 assigning to anything but internalvars. Leave GDB-side arrays
1576 as arrays when assigning to internalvars.
1577 (value_must_coerce_to_target, value_coerce_to_target): New.
1578 (value_coerce_array, value_addr): Call value_coerce_to_target.
1579 (value_array): Create the array in GDB's memory instead of
1581 * value.h (value_must_coerce_to_target, value_coerce_to_target):
1584 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
1586 * top.c (quit_confirm): Warn that we will kill the program.
1588 2008-03-19 Pedro Alves <pedro@codesourcery.com>
1590 * inflow.c (terminal_ours_1): Guard access to
1591 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
1593 2008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
1594 Jim Blandy <jimb@codesourcery.com>
1595 Daniel Jacobowitz <drow@false.org>
1597 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
1598 (dwarf2_read_address): Update prototype.
1600 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
1601 (signed_address_type): Likewise.
1602 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
1603 (execute_stack_op): Update calls to unsigned_address_type,
1604 signed_address_type and dwarf2_read_address. Fix implementation
1605 of DW_OP_deref_size.
1607 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
1608 (dwarf2_per_cu_addr_size): Likewise.
1609 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
1610 (struct dwarf2_loclist_baton): Likewise.
1612 * dwarf2loc.c (find_location_expression): Update calls to
1613 dwarf2_read_address. Use dwarf2_per_cu_objfile and
1614 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
1615 (locexpr_describe_location): Likewise.
1616 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
1617 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
1618 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
1619 to dwarf2_per_cu_addr_size (per_cu).
1620 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
1621 (loclist_read_variable): Likewise.
1622 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
1624 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
1625 instead of baton->objfile.
1626 (dwarf2_per_cu_obfile): New function.
1627 (dwarf2_per_cu_addr_size): Likewise.
1629 * dwarf2-frame.c (struct comp_unit): Move higher.
1630 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
1631 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
1632 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
1633 parameter by using fde->eh_frame_p. Use read_encoded_value
1634 to implement DW_CFA_set_loc.
1635 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
1636 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
1637 execute_stack_op and execute_cfa_program.
1638 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
1639 (size_of_encoded_value): Remove.
1640 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
1641 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
1642 (add_cie): Set cie->unit backlink.
1643 (decode_frame_entry_1): Set cie->addr_size. Update calls to
1645 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
1647 2008-03-17 Markus Deuling <deuling@de.ibm.com>
1649 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
1650 gdbarch_bfd_arch_info.
1652 2008-03-17 Joel Brobecker <brobecker@adacore.com>
1654 * aix-thread.c (pdc_read_regs): Minor reformatting.
1656 2008-03-17 Vladimir Prus <vladimir@codesourcery.com>
1658 * thread.c (print_thread_info): Don't insist
1659 on having current thread if there are no
1662 2008-03-17 Pedro Alves <pedro@codesourcery.com>
1664 * infcmd.c (attach_command_post_wait)
1665 (attach_command_continuation): New.
1666 (attach_command): Support background async execution, and async
1667 execution in synchronous mode.
1669 2008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
1671 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
1672 * symmisc.c (dump_symtab_1): Likewise.
1673 * wrapper.c (gdb_value_struct_elt): Likewise.
1675 2008-03-17 Pedro Alves <pedro@codesourcery.com>
1677 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
1679 2008-03-17 Pedro Alves <pedro@codesourcery.com>
1681 * linux-nat.c (linux_nat_filter_event): New, refactored from
1683 (linux_nat_wait): Call linux_nat_filter_event.
1685 2008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
1687 * top.c (execute_command): Fix uninitialized variable error.
1689 2008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
1691 * Makefile.in (amd64nbsd-nat.o): New dependency.
1692 * amd64nbsd-nat.c: Include "nbsd-nat.h".
1693 (_initialize_amd64nbsd_nat): Update target vector to use
1694 nbsd_pid_to_exec_file.
1695 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
1697 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
1699 Remove ignoring leading exec events code.
1700 * fork-child.c (startup_inferior): Do not set
1701 inferior_ignoring_leading_exec_events.
1702 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
1703 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
1704 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
1705 (handle_inferior_event): Remove code for ignoring leading exec
1707 * target.c (update_current_target): Do not inherit, or default,
1708 to_reported_exec_events_per_exec_call.
1709 (debug_to_reported_exec_events_per_exec_call): Remove.
1710 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
1711 * target.h (target_reported_exec_events_per_exec_call): Remove.
1712 (struct target): Remove the to_reported_exec_events_per_exec_call
1715 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
1717 Implement -thread-info.
1718 * gdbthread.h (print_thread_info): Declare.
1720 * thread.c (print_thread_info): New, extracted
1721 from info_threads_command and adjusted to
1722 work for CLI and MI.
1723 (info_threads_command): Use print_thread_info.
1724 * Makefile.in: Update dependencies.
1726 * mi/mi-cmds.c (mi_cmds): Specify a handler
1728 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
1729 * mi/mi-main.c (mi_cmd_thread_info): New.
1730 (mi_cmd_list_features): Include 'thread-info'.
1732 2008-03-14 Kevin Buettner <kevinb@redhat.com>
1734 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
1735 to decide whether to match instruction patterns using "sw" and "sd".
1737 2008-03-14 Pedro Alves <pedro@codesourcery.com>
1739 * infcmd.c (jump_command): Postpone disabling stdin until after
1742 2008-03-14 Pedro Alves <pedro@codesourcery.com>
1744 * inflow.c (gdb_getpgrp): New.
1745 (gdb_has_a_terminal): Use get_getpgrp.
1746 (terminal_ours_1): If attach_flag is set, don't refetch
1747 inferior_process_group.
1749 2008-03-14 Pedro Alves <pedro@codesourcery.com>
1751 * features/library-list.dtd: Allow "section" elements as children
1752 of "library". Add "section" element and describe its attributes.
1754 * solib-target.c (struct lm_info): Add section_bases member.
1755 (library_list_start_segment): Error out if seen a section element.
1756 (library_list_start_section): New.
1757 (library_list_end_library): New.
1758 (solib_target_free_library_list): Free section_bases.
1759 (section_attributes): New.
1760 (library_children): Make "segment" optional. Add "section" child.
1761 (library_list_children): Register library_list_end_library.
1762 (solib_target_relocate_section_addresses): Handle section bases.
1764 * NEWS: Mention new qXfer:libraries:read section offsets support.
1766 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
1768 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
1769 (make_exec_error_cleanup): Remove declarations.
1770 * utils.c (exec_error_cleanup_chain): Remove.
1771 (do_exec_error_cleanups, discard_exec_error_cleanups)
1772 (make_exec_error_cleanup): Remove.
1773 * event-loop.c (start_event_loop): Adjust call to
1775 * event-top.c (async_enable_stdin): Remove the paramater dummy.
1776 (async_disable_stdin): Don't register async_enable_stdin via
1778 * inf-loop.c (inferior_event_handler): Don't
1779 call do_exec_error_cleanups. Call async_enable_stdin instead.
1780 * event-loop.c (start_event_loop): Adjust call to
1782 * tui/tui-interp.c (tui_command_loop): Adjust call to
1785 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
1788 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
1789 * breakpoint.c (bpstat_do_actions): In async mode,
1790 don't jump to top expecting stop_bpstat to be already
1792 * event-loop.c (start_event_loop): Call async_enable_stdin
1794 * event-top.c (async_enable_stdin): Do nothing if sync_execution
1796 (command_handler): Do not setup continuation here.
1797 (command_line_handler_continuation): Move to...
1798 * top.c (command_line_handler_continuation): ... here.
1799 (execute_command): In async mode, register continuation.
1800 Don't check frame's language in running in async mode.
1801 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
1802 * inf-loop.c (complete_execution): Inline into...
1803 (inferior_event_handler): ... here. Clear target_executing before
1804 doing any cleanups. Don't try to show prompt if the target was
1806 * infcmd.c (signal_command): Add support for async mode.
1807 (finish_command): Only add continuation if the target was
1808 successfully resumed.
1809 * remote.c (init_async_opts): Register to_get_thread_local_address
1811 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
1812 with sync_execution.
1813 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
1816 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
1818 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
1819 * exec.c (exec_bfd_mtime): Define.
1820 (exec_close): Clear it.
1821 (exec_file_attach): Set it.
1822 * gdbcore.h (exec_bfd_mtime): Declare.
1823 * source.c (find_source_lines): Do not use bfd_get_mtime.
1825 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
1827 * top.c (simplified_command_loop): Remove.
1829 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
1831 Remove unused remote.c hooks.
1832 * remote.c (deprecated_target_resume_hook)
1833 (deprecated_target_wait_loop_hook): Remove.
1834 (remote_resume): Do not call deprecated_target_resume_hook.
1835 (remote_wait): Do not call deprecated_target_wait_loop_hook.
1836 (remote_async_wait): Likewise.
1838 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
1840 Implement MI notification for new threads.
1841 * doc/observer.texi (new_thread): Document.
1842 * observer.sh: Forward declare struct thread_info.
1843 * thread.c (add_thread): Notify observer.
1845 * interps.h (interp_init_ftype): New parameter
1847 (interp_set): Likewise.
1848 (top_level_interpreter_data): Declare.
1849 * interps.c (interp_set): New parameter top_level.
1850 Pass it to interpreter's init function. Remember
1851 top level interpreter.
1852 (interpreter_exec_cmd): Adjust.
1853 (top_level_interpreter_data): New.
1854 * main.c (captured_main): Pass 1 for top_level
1855 parameter of interp_set.
1856 * cli/cli-interp.c (cli_interpreter_init): New
1857 parameter top_level.
1858 * tui/tui-interp.c (tui_init): New parameter top_level.
1860 * mi/mi-interp.c (mi_new_thread): New.
1861 (mi_interpreter_init): If top level, register
1862 observer for new threads.
1864 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
1866 2008-03-14 Pedro Alves <pedro@codesourcery.com>
1868 * top.c (execute_command): Disable break and stop
1869 commands in async mode.
1871 2008-03-14 Pedro Alves <pedro@codesourcery.com>
1874 2008-03-14 Pedro Alves <pedro@codesourcery.com>
1875 * inf-loop.c (inferior_event_handler): Don't include remote.h.
1876 Call target_stop in the INF_QUIT_REQ case.
1877 * Makefile.in (inf-loop.o): Update.
1879 2008-03-14 Pedro Alves <pedro@codesourcery.com>
1881 * inf-loop.c (inferior_event_handler): Don't include remote.h.
1882 Call target_stop in the INF_QUIT_REQ case.
1883 * Makefile.in (inf-loop.o): Update.
1885 2008-03-14 Pedro Alves <pedro@codesourcery.com>
1887 * top.c (execute_command): Enable break, info and interrupt
1888 commands in async mode.
1890 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
1891 Daniel Jacobowitz <dan@codesourcery.com>
1893 * breakpoint.h (breakpoint_restore_shadows): New
1895 * breakpoint.c (breakpoint_restore_shadows): New.
1896 (read_memory_nobpt): Delete.
1897 * gdbcore.h (read_memory_nobpt): Delete declaration.
1898 * target.c (memory_xfer_partial): Call
1899 breakpoint_restore_shadows.
1900 (restore_show_memory_breakpoints)
1901 (make_show_memory_beakpoints_cleanup): New.
1902 (show_memory_breakpoints): New.
1903 * target.h (make_show_memory_beakpoints_cleanup): Declare.
1904 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
1905 Make sure we see memory breakpoints when checking if
1906 breakpoint is still there.
1907 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
1908 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
1909 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
1910 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
1912 2008-03-12 Pedro Alves <pedro@codesourcery.com>
1914 * thread.c (add_thread): Use printf_unfiltered to print.
1916 2008-03-12 Joel Brobecker <brobecker@gnat.com>
1918 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
1919 that is true only on x86-solaris and x86_64-solaris.
1920 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
1921 with proc_get_LDT_entry.
1923 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
1925 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
1926 * config.in, configure: Regenerate.
1927 * fork-child.c (fork_inferior): Call create_tty_session.
1928 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
1929 (create_tty_session): New function.
1930 * terminal.h: Declare create_tty_session.
1932 2008-03-12 Alan Modra <amodra@bigpond.net.au>
1935 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
1936 * mipsread.c: Include elf/internal.h.
1937 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
1940 2008-03-11 Markus Deuling <deuling@de.ibm.com>
1942 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
1943 to get at the current architecture and at the target specific vector.
1944 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
1945 remove define of I387_ST0_REGNUM.
1947 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
1949 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
1950 get at the current architecture
1951 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
1954 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
1955 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
1957 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
1958 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
1959 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
1961 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
1962 at the target specific vector.
1964 (i386_get_longjmp_target): Use get_frame_arch to get at the current
1965 architecture. Use gdbarch_tdep to get at the target specific vector.
1967 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
1968 update caller. Use gdbarch_tdep to get at the target specific vector.
1970 (i386_register_to_value: Use get_frame_arch to get at the current
1973 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
1976 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
1977 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
1978 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
1979 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
1981 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
1984 (i387_convert_register_p, i387_register_to_value,
1985 i387_value_to_register): Update call for i386_fp_regnum_p.
1987 * i387-tdep.h: Remove comment.
1988 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
1989 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
1990 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
1991 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
1992 I387_MXCSR_REGNUM): Add target specific vector as parameter.
1994 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
1996 * Makefile.in (fork-child.o): Update.
1997 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
1998 argument. Gather all gdbserver features together.
1999 * fork-child.c (exec_wrapper): New variable.
2000 (fork_inferior): Use it.
2001 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
2002 (unset_exec_wrapper_command, _initialize_fork_child): New.
2004 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
2006 * source.c (directory_command): Modify the determination of
2007 condition of terminal "from_tty".
2009 2008-03-10 Matt Rice <ratmice@gmail.com>
2011 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
2013 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
2015 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
2016 of the data passing to strtoulst function.
2017 (info_spu_signal_command): Likewise.
2019 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
2021 * mi/mi-interp.c (mi_command_loop): Remove
2024 2008-03-07 Joel Brobecker <brobecker@adacore.com>
2026 * remote.c (extended_remote_attach_1): Make local variable pid an int
2029 2008-03-07 Joel Brobecker <brobecker@adacore.com>
2031 * solib-svr4.c (svr4_same_1): New function, originally extracted
2032 from svr4_same and expanded to handle the sparc64 case.
2033 (svr4_same): Move up and reimplement using svr4_same_1.
2034 (enable_break): Use svr4_same_1 to do shared library name comparisons.
2036 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
2038 * MAINTAINERS: Move self to Paper trail.
2040 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
2042 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
2043 * event-loop.c (call_async_signal_handler): New.
2044 * event-loop.h (call_async_signal_handler)
2045 (gdb_call_async_signal_handler): Declare.
2046 (mark_async_signal_handler): Add comments.
2047 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
2048 * mingw-hdep.c (sigint_event, sigint_handler): New.
2049 (gdb_select): Use them. Wait for the readline signal handler
2051 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
2052 * posix-hdep.c (gdb_call_async_signal_handler): New function.
2053 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
2055 (remote_fileio_ctrl_c_signal_handler): Use
2056 gdb_call_async_signal_handler.
2057 (initialize_remote_fileio): Initialize sigint_fileio_token.
2058 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
2059 not initialize tokens here.
2060 (handle_remote_sigint_twice): Likewise. Reinstall
2061 handle_remote_sigint.
2062 (async_remote_interrupt_twice): Just call interrupt_query.
2063 (cleanup_sigint_signal_handler): Do not delete tokens.
2064 (remote_interrupt, remote_interrupt_twice): Use
2065 gdb_call_async_signal_handler.
2066 (interrupt_query): Reinstall the default signal handler.
2067 (_initialize_remote): Initialize tokens here.
2069 2008-03-04 Joel Brobecker <brobecker@adacore.com>
2071 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
2072 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
2073 Change the type of the lr register to code_ptr.
2074 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2075 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2076 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2077 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2078 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2079 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2080 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
2082 2008-03-03 James E. Wilson <wilson@tuliptree.org>
2084 * MAINTAINERS: Update my email address.
2086 2008-03-03 Keith Seitz <keiths@redhat.com>
2088 From Dave Murphy <davem@devkitpro.org>:
2089 * configure.ac: Set tcl configdir to win under mingw.
2090 * configure: Regenerate.
2092 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
2094 * breakpoint.c (fetch_watchpoint_value): New function.
2095 (update_watchpoint): Set and clear val_valid. Use
2096 fetch_watchpoint_value. Handle unreadable values on the
2097 value chain. Correct check for user-requested array watchpoints.
2098 (breakpoint_init_inferior): Clear val_valid.
2099 (watchpoint_value_print): New function.
2100 (print_it_typical): Use it. Do not free or clear old_val. Print
2101 watchpoints even if old_val == NULL.
2102 (watchpoint_check): Use fetch_watchpoint_value. Check for values
2103 becoming readable or unreadable.
2104 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
2105 (do_enable_watchpoint): Likewise.
2106 * breakpoint.h (struct breakpoint): Update comment for val. Add
2108 * NEWS: Mention watchpoints on inaccessible memory.
2110 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
2112 * Makefile.in (i386-nat.o): Update.
2113 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
2114 i386_use_watchpoints.
2115 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
2116 i386_use_watchpoints.
2117 * i386-nat.c (i386_stopped_data_address): Take two arguments.
2118 (i386_stopped_by_watchpoint): Update call.
2119 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
2120 * config/i386/nm-i386.h: Conditionalize definitions on
2121 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
2122 (i386_use_watchpoints): Declare.
2123 (i386_stopped_data_address): Update.
2124 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
2125 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
2127 2008-02-29 Joel Brobecker <brobecker@adacore.com>
2129 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
2130 * version.in: Bump version to 6.8.50.20080229-cvs.
2132 2008-02-28 Markus Deuling <deuling@de.ibm.com>
2134 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
2137 2008-02-28 Tom Tromey <tromey@redhat.com>
2139 * infcmd.c (notice_args_read): Print result of get_inferior_args.
2141 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
2143 * infcmd.c (kill_if_already_running): Make static. Use
2144 target_require_runnable.
2145 * target.c (target_require_runnable): New.
2146 * target.h (target_require_runnable): Declare.
2148 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
2150 * frame.c (reinit_frame_cache): Only annotate if frames were
2153 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2155 * regformats/reg-ppc.dat: Rename "ps" to "msr".
2156 * regformats/reg-ppc64.dat: Likewise.
2158 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2160 * features/Makefile (%.dat): Emit xmltarget statement.
2162 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
2163 Generate code to set gdbserver_xmltarget in init_registers_${name}.
2165 * regformats/arm-with-iwmmxt.dat: Regenerate.
2166 * regformats/mips64-linux.dat: Regenerate.
2167 * regformats/mips-linux.dat: Regenerate.
2168 * regformats/rs6000/powerpc-32.dat: Regenerate.
2169 * regformats/rs6000/powerpc-64.dat: Regenerate.
2170 * regformats/rs6000/powerpc-e500.dat: Regenerate.
2172 * regformats/reg-arm.dat: Add xmlarch statement.
2173 * regformats/reg-i386.dat: Likewise.
2174 * regformats/reg-i386-linux.dat: Likewise.
2175 * regformats/reg-x86-64-linux.dat: Likewise.
2176 * regformats/reg-spu.dat: Likewise.
2178 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
2180 * remote.c (remote_wait, remote_async_wait): Stop if we receive
2183 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
2185 * utils.c (debug_timestamp): New.
2186 (vfprintf_unfiltered): Print timestamps if requested.
2187 (show_debug_timestamp): New.
2188 (initialize_utils): Register "set debug timestamp".
2189 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
2191 2008-02-27 Joel Brobecker <brobecker@adacore.com>
2193 * breakpoint.c (skip_prologue_sal): New function.
2194 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
2195 computed from a line number.
2197 2008-02-27 Joel Brobecker <brobecker@adacore.com>
2199 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
2200 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
2201 Set PC register type to "code_ptr".
2202 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2203 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2204 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2205 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2206 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2207 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2208 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
2211 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
2213 * regformats/regdat.sh: Rename init_registers function in
2214 generated file to init_registers_${name}.
2216 * regformats/reg-crisv32.dat: Set "name" to crisv32.
2217 * regformats/reg-ppc64.dat: Set "name" to ppc64.
2218 * regformats/reg-s390x.dat: Set "name" to s390x.
2220 2008-02-26 Greg Law <glaw@undo-software.com>
2222 * regcache.c (registers_changed): Call reinit_frame_cache.
2224 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
2226 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
2227 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
2228 and svr4_fetch_objfile_link_map.
2229 * Makefile.in (sh-linux-tdep.o): Update.
2231 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
2233 * amd64-tdep.c (amd64_classify): Add support for decimal float
2235 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
2236 use the struct return convention.
2238 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
2240 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
2241 to old format. Discard breakpoint address if shared library is
2243 (breakpoint_1): Adjust formatting of table header accordingly.
2245 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
2247 * remote.c (remote_get_threadlist): If the response
2248 is empty, don't try to parse it.
2250 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
2252 Unbreak 'target async'.
2253 * serial.c (serial_async): Set the
2254 handler function before enabling async
2257 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
2259 * solib-svr4.c (enable_break): Convert r_brk to a code address.
2261 2008-02-21 Pedro Alves <pedro@codesourcery.com>
2263 * remote.c (extended_remote_attach_1): Set attach_flag.
2264 (extended_remote_create_inferior_1): Clear attach_flag.
2266 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
2268 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
2270 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
2271 * solib-svr4.c (solib_svr4_r_brk): New.
2272 (open_symbol_file_object, svr4_current_sos): Always check the
2274 (svr4_fetch_objfile_link_map): Do not set debug_base.
2275 (enable_break): Use r_brk if it is set.
2276 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
2277 (svr4_lp64_fetch_link_map_offsets): Likewise.
2278 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
2280 2008-02-20 Markus Deuling <deuling@de.ibm.com>
2281 Mark Kettenis <kettenis@gnu.org>
2283 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
2284 trad_frame_saved_reg.
2285 (trad-frame.h): New include.
2287 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
2288 instead of frame_obstack_zalloc.
2289 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
2291 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
2293 2008-02-20 Markus Deuling <deuling@de.ibm.com>
2295 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
2296 from disassemble_info instead of gdbarch_byte_order.
2298 * mips-tdep.c (gdb_print_insn_mips): Likewise.
2299 * arm-tdep.c (gdb_print_insn_arm): Likewise.
2301 2008-02-20 Markus Deuling <deuling@de.ibm.com>
2303 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
2304 gdbarch as parameter.
2306 * gdbarch.{c,h}: Regenerate.
2308 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
2310 * mem-break.c (default_memory_insert_breakpoint)
2311 (default_memory_remove_breakpoint): Likewise.
2312 * target.h (default_memory_remove_breakpoint)
2313 (default_memory_insert_breakpoint): Likewise.
2315 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
2316 parameter. Replace current_gdbarch by gdbarch.
2317 * m32r-tdep.c (m32r_memory_insert_breakpoint)
2318 (m32r_memory_remove_breakpoint): Likewise.
2320 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
2322 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
2324 2008-02-19 Joel Brobecker <brobecker@adacore.com>
2326 * NEWS: Add entry describing Add support improvements.
2328 2008-02-18 Markus Deuling <deuling@de.ibm.com>
2330 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
2333 2008-02-18 Markus Deuling <deuling@de.ibm.com>
2335 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
2336 register_offset_hack anymore.
2338 * regcache.{c,h} (register_offset_hack): Remove.
2340 2008-02-18 Markus Deuling <deuling@de.ibm.com>
2342 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
2344 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
2345 current_gdbarch by gdbarch.
2346 (hppa64_hpux_find_global_pointer): Likewise.
2347 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
2348 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
2349 find_global_pointer.
2351 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
2353 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
2355 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
2356 of gdbarch_num_regs.
2358 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
2359 replace current_gdbarch by gdbarch.
2360 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
2362 2008-02-18 Markus Deuling <deuling@de.ibm.com>
2364 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
2365 and replace current_gdbarch by gdbarch.
2367 (store_register): Update call for exec_one_dummy_insn.
2368 (fetch_register, store_register): Update call of regmap.
2370 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
2371 parameter and replace current_gdbarch by gdbarch.
2373 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
2374 the current architecture. Update call for getregs_supplies and
2376 (ppcnbsd_fetch_inferior_registers): Likewise.
2378 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
2379 replace current_gdbarch by gdbarch.
2380 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
2381 get_regcache_arch to get at the current architecture. Update call for
2384 2008-02-18 Markus Deuling <deuling@de.ibm.com>
2386 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
2389 2008-02-15 Markus Deuling <deuling@de.ibm.com>
2391 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
2393 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
2395 * NEWS: Mention pending breakpints in MI.
2397 2008-02-14 Markus Deuling <deuling@de.ibm.com>
2399 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
2401 2008-02-13 Markus Deuling <deuling@de.ibm.com>
2403 Add script to build and test GDB using enable-targets=all.
2405 * gdb_buildall.sh: New file.
2407 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
2409 * NEWS (New native configurations): Xtensa GNU/Linux.
2410 (New targets): Xtensa GNU/Linux.
2411 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
2413 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
2414 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
2415 * configure.tgt (xtensa*-*-linux*): New entry.
2416 * xtensa-config.c (xtensa_tdep): New variable.
2417 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
2418 (rmap): Change format based on new macro XTREG.
2419 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
2420 * xtensa-linux-nat.c: New.
2421 * xtensa-linux-tdep.c: New.
2422 * xtensa-xtregs.c: New.
2423 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
2424 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
2425 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
2426 (xtensa_register_t): New field coprocessor.
2427 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
2428 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
2429 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
2430 Update to handle privileged registers.
2431 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
2432 (xtensa_push_dummy_call): Set windowstart register correctly.
2433 (call0_analyze_prologue): Initialize xtensa_default_isa.
2434 (xtensa_derive_tdep): New.
2435 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
2436 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
2437 Call xtensa_derive_tdep().
2438 * config/xtensa/linux.mh: New.
2439 * regformats/reg-xtensa.dat: New.
2441 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
2443 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
2444 (filenames.h): New include.
2445 * Makefile.in (corelow.o): Add dependency for filenames.h.
2447 2008-02-08 Doug Evans <dje@google.com>
2449 * source.c (find_and_open_source): Always rewrite absolute filenames.
2451 2008-02-07 Doug Evans <dje@google.com>
2453 * breakpoint.c: #include "hashtab.h".
2454 (ambiguous_names_p): New fn.
2455 (update_breakpoint_locations): When restoring bp enable status, don't
2456 compare function names if any functions have same name.
2457 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
2459 2008-02-07 Joel Brobecker <brobecker@adacore.com>
2461 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
2462 instead of just a VEC*. Update use of SV.
2463 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
2465 2007-02-07 Joel Brobecker <brobecker@adacore.com>
2467 * NEWS: Put all new commands since gdb-6.7 together.
2469 2007-02-07 Joel Brobecker <brobecker@adacore.com>
2471 * ada-lang.c: #include "vec.h".
2472 (struct string_vector, new_string_vector, string_vector_append):
2474 (char_ptr): New typedef.
2475 (DEF_VEC_P (char_ptr)): New VEC type.
2476 (symbol_completion_add): Update profile to take the new VEC type
2477 instead of the old string_vector structure. Update code accordingly.
2478 (ada_make_symbol_completion_list): Use the new VEC type instead of
2479 the old string_vector structure, and update the code accordingly.
2480 * Makefile.in (ada-lang.o): Add dependency on vec.h.
2482 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
2484 * p-exp.y: Set current_type in missing places.
2485 (leftdiv_is_integer): New static variable.
2486 Typecast right operand of BINOP_DIV to long_double if both operands
2489 2008-02-06 Maciej W. Rozycki <macro@mips.com>
2491 * remote-mips.c (set_breakpoint): Rename to...
2492 (mips_set_breakpoint): ... this.
2493 (clear_breakpoint): Rename to...
2494 (mips_clear_breakpoint): ... this.
2495 (common_breakpoint): Rename to...
2496 (mips_common_breakpoint): ... this.
2497 (check_lsi_error): Rename to...
2498 (mips_check_lsi_error): ... this.
2500 2007-02-05 Joel Brobecker <brobecker@adacore.com>
2502 * language.h (struct language_defn): Add new field
2503 la_make_symbol_completion_list.
2504 * symtab.c (default_make_symbol_completion_list): Renames
2505 make_symbol_completion_list.
2506 (make_symbol_completion_list): New function.
2507 * symtab.h (default_make_symbol_completion_list): Add declaration.
2508 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
2509 (auto_language, local_language): Likewise.
2510 * objc-lang.c (objc_language_defn): Likewise.
2511 * scm-lang.c (scm_language_defn): Likewise.
2512 * m2-lang.c (m2_language_defn): Likewise.
2513 * f-lang.c (f_language_defn): Likewise.
2514 * jv-lang.c (java_language_defn): Likewise.
2515 * p-lang.c (pascal_language_defn): Likewise.
2516 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
2517 (minimal_language_defn): Likewise.
2518 * ada-lang.c (struct string_vector): New structure.
2519 (new_string_vector, string_vector_append, ada_unqualified_name)
2520 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
2521 (ada_make_symbol_completion_list): New functions.
2522 (ada_language_defn): Set la_make_symbol_completion_list.
2523 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
2524 this function is static.
2526 2008-02-05 Kevin Buettner <kevinb@redhat.com>
2528 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
2529 to account for call site optimizations.
2531 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
2533 * tracepoint.c (read_actions): Handle end-of-text indicator
2534 in action list properly. (Committed by Jim Blandy)
2536 2008-02-05 Jim Blandy <jimb@red-bean.com>
2538 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
2539 pseudoregister, not an internal error.
2540 Reported by: Andrzej Zaborowski
2542 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
2544 * varobj.c (c_value_of_variable): Use xstrdup.
2546 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
2548 Update stored rendition of varobj value when format changes.
2549 * varobj.c (varobj_set_display_format): Recomputed
2551 (c_value_of_variable): Return print_value.
2553 2008-02-03 Doug Evans <dje@google.com>
2555 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
2556 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
2557 * valops.c (value_one): New function.
2558 * value.h (value_one): Declare.
2560 Fix argument promotion for binary arithmetic ops for C.
2561 * valarith.c (unop_result_type): New fn.
2562 (binop_result_type): New fn.
2563 (value_binop): Move result type computation to binop_result_type.
2564 (value_pos, value_neg, value_complement): Move result type
2565 computation to unop_result_type.
2568 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
2569 Return basetype, fieldno if found. All callers updated.
2570 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
2572 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
2573 * symfile.h (fill_in_vptr_fieldno): Delete.
2575 2008-02-02 Doug Evans <dje@google.com>
2577 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
2579 * typeprint.c (*): Whitespace cleanup.
2581 2008-02-02 Mark Kettenis <kettenis@gnu.org>
2582 Luis Machado <luisgpm@br.ibm.com>
2583 Thiago Jung Bauermann <bauerman@br.ibm.com>
2585 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
2586 don't fit into registerson the stack the way GCC does.
2588 2008-02-01 Joel Brobecker <brobecker@adacore.com>
2590 * symtab.c (symbol_set_names): Do not add an entry in the demangling
2591 hash table for Ada symbols. Just store the linkage name as is,
2592 and leave the demangled_name as NULL.
2594 2007-02-01 Joel Brobecker <brobecker@adacore.com>
2596 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
2597 in the global scope.
2598 (new_symbol): Likewise.
2600 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
2602 * breakpoint.c (break_command_1): Return void.
2603 (break_command_really): Return void. Rethrow
2604 exceptions instead of returning.
2605 (gdb_breakpoint): Remove the error_message parameter.
2606 Return void. Rename to set_breakpoint.
2607 * gdb.h (gdb_breakpoint): Rename and move to...
2608 * breakpoint.h (set_breakpoint): ...here.
2609 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
2610 event hooks even if exception is thrown. Adjust to
2611 gdb_breakpoint interface changes.
2614 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
2616 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
2617 float in both first and second word in the doubleword, to support
2620 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
2622 Properly rethrow exception. This fixes errors
2623 about non-existent functions for -break-insert.
2624 * breakpoint.c (break_command_really): Use throw_exception
2625 for rethrowing. If rethrowing, don't print the exception.
2627 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2629 * NEWS: Mention Decimal Floating Point support.
2631 2008-01-31 Joel Brobecker <brobecker@adacore.com>
2633 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
2634 value type to builtin_type_void_func_ptr.
2636 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
2638 * s390-tdep.c (is_float_singleton, is_float_like,
2639 alignment_of, s390_return_value): Make checks for
2640 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
2642 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
2643 Thiago Jung Bauermann <bauerman@br.ibm.com>
2645 * infcmd.c (default_print_registers_info): Also print hex
2646 raw contents for TYPE_CODE_DECFLOAT registers.
2647 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
2648 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
2649 (rs6000_register_name): Add support for DFP pseudo-registers.
2650 (rs6000_pseudo_register_type): Likewise.
2651 rs6000_pseudo_register_reggroup_p): Likewise.
2652 (ppc_pseudo_register_read): New function.
2653 (ppc_pseudo_register_write): Likewise.
2654 (rs6000_pseudo_register_read): Likewise.
2655 (rs6000_pseudo_register_write): Likewise.
2656 (e500_pseudo_register_read): Move checks to
2657 rs6000_pseudo_register_read.
2658 (e500_pseudo_register_write): Move checks to
2659 rs6000_pseudo_register_write.
2660 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
2661 rs6000_pseudo_register_read and rs6000_pseudo_register_write
2662 in gdbarch if SPE or DFP is available. Adjust gdbarch's
2663 num_pseudo_regs to account for DFP pseudo regs.
2665 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2667 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
2668 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
2669 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
2670 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
2671 e500_pseudo_register_read, e500_pseudo_register_write): Use
2672 IS_SPE_PSEUDOREG macro.
2673 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
2674 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
2675 Remove initialization of tdep->ppc_ev31_regnum.
2677 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
2679 * printcmd.c (print_formatted): Handle references as for unformatted
2682 2008-01-30 Joel Brobecker <brobecker@adacore.com>
2684 * eval.c (evaluate_subexp_standard): Add handling of user
2685 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
2687 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
2689 * eval.c (evaluate_subexp_standard): Support
2690 BINOP_INTDIV opcode.
2692 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
2694 * valarith.c (value_binop): Add floating-point BINOP_MIN and
2696 For BINOP_EXP, use length and signedness of left operand only for
2697 result, as for shifts.
2698 For integral operands to BINOP_EXP, use new integer_pow and
2699 uinteger_pow functions so as to get full range of results.
2700 (integer_pow): New function.
2701 (uinteger_pow): New function.
2703 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
2705 Use vector for varobj_list_children interface.
2706 * gdb/varobj.c (varobj_list_children): Return vector
2708 * gdb/varobj.h (varobj_list_children): Adjust
2710 (varobj_p): Declare. Declare vector thereof.
2711 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
2712 for varobj_list_children change.
2713 * Makefile.in (varobj_h): Update dependencies.
2715 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
2717 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
2718 TYPE_CODE_DECFLOAT arguments.
2719 (ppc64_sysv_abi_push_dummy_call) Likewise.
2720 (get_decimal_float_return_value): New function.
2721 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
2722 values by calling get_decimal_float_return_value.
2723 (ppc64_sysv_abi_return_value): Likewise.
2725 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
2727 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
2728 for preprocessor macro information. Formatting changes.
2730 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
2732 * remote.c (struct remote_state): Add cached_wait_status.
2733 (remote_exec_file): New variable.
2734 (PACKET_vAttach, PACKET_vRun): New constants.
2735 (extended_remote_restart): Do not query for status.
2736 (struct start_remote_args): New.
2737 (remote_start_remote): Take it as a second argument. Check
2738 whether the target is running. Issue an error for non-running
2739 non-extended targets. Cache the wait status. Set inferior_ptid
2741 (remote_open_1): Prompt to disconnect non-running targets. Make
2742 sure the target is marked running. Do not set inferior_ptid here.
2743 Update call to remote_start_remote. Do not call remote_check_symbols
2744 if the target is not running.
2745 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
2746 argument. Handle a non-running target.
2747 (remote_detach): Use it.
2748 (extended_remote_detach): New.
2749 (remote_disconnect): Fix typo. Use remoute_mourn_1.
2750 (extended_remote_attach_1, extended_remote_attach)
2751 (extended_async_remote_attach): New.
2752 (remote_vcont_resume): Remove unused variable.
2753 (remote_wait, remote_async_wait): Use any cached wait status.
2754 (putpkt_binary, getpkt): Clear any cached wait status.
2755 (extended_remoute_mourn_1): New.
2756 (extended_remote_mourn): Use it.
2757 (extended_async_remote_mourn, extended_remote_run): New.
2758 (extended_remote_create_inferior_1): New.
2759 (extended_remote_create_inferior): Use it.
2760 (extended_remote_async_create_inferior): Likewise.
2761 (remote_xfer_partial): Skip for non-executing targets.
2762 (init_extended_remote_ops): Set to_detach and to_attach.
2763 (init_extended_async_remote_ops): Likewise. Use
2764 extended_async_remote_mourn.
2765 (_initialize_remote): Register vAttach, vRun, and
2766 set remote exec-file.
2767 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
2769 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
2771 * Makefile.in (symfile.o): Update.
2772 * NEWS: Mention exec tracing support.
2773 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
2775 * infcmd.c (kill_if_already_running, detach_command)
2776 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
2777 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
2778 (follow_exec): Do not check may_follow_exec. Do not mourn and push
2779 targets. Apply the sysroot path to the loaded executable. Use
2780 no_shared_libraries.
2781 * linux-nat.c (linux_child_follow_fork): Print fork following
2782 messages if verbose.
2783 (kill_wait_callback): Kill again before waiting a second time.
2784 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
2785 no_shared_libraries.
2787 2008-01-29 Joel Brobecker <brobecker@adacore.com>
2789 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
2791 2008-01-29 Joel Brobecker <brobecker@adacore.com>
2793 * nto-tdep.h: Remove #include "defs.h".
2794 * nto-tdep.c: Add #include "defs.h".
2795 * Makefile.in (nto_tdep_h): Update dependencies.
2796 (nto-tdep.o): Likewise.
2798 2008-01-29 Joel Brobecker <brobecker@adacore.com>
2800 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
2802 (proceed, start_remote): Update call to wait_for_inferior.
2803 * inferior.h (wait_for_inferior): Update declaration.
2804 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
2805 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
2806 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
2807 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
2809 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
2811 * varobj (adjust_value_for_child_access): Added checking for
2812 returned value from gdb_value_ind.
2813 (c_describe_child): Likewise.
2814 (cplus_describe_child): Fixed a typo.
2816 2008-01-29 Jim Blandy <jimb@red-bean.com>
2818 * MAINTAINERS: Update my info.
2820 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
2822 Use multiple locations for hardware watchpoints.
2823 This eliminates the need to traverse value chain, doing
2824 various checks, in three different places.
2826 * breakpoint.h (struct bp_location): New fields
2827 lengths and watchpoint_type.
2828 (struct breakpoint): Remove the val_chain field.
2829 * breakpoint.c (is_hardware_watchpoint): New.
2830 (free_valchain): Remove.
2831 (update_watchpoint): New.
2832 (insert_bp_location): For hardware watchpoint, just
2834 (insert_breakpoints): Call update_watchpoint_locations
2835 on all watchpoints. If we have failed to insert
2836 any location of a hardware watchpoint, remove all inserted
2838 (remove_breakpoint): For hardware watchpoints, directly
2840 (watchpoints_triggered): Iterate over locations.
2841 (bpstat_stop_status): Use only first location of
2842 a resource watchpoint.
2843 (delete_breakpoint): Don't call free_valchain.
2844 (print_one_breakpoint): Don't print all
2845 locations for watchpoints.
2846 (breakpoint_re_set_one): Use update_watchpoint for
2849 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
2851 Don't reset watchpoint block on solib load.
2853 * breakpoint.c (insert_bp_location): For watchpoints,
2854 recompute condition.
2855 (breakpoint_re_set_one): Instead of recomputing value
2856 and condition for watchpoints, just reset value and
2857 let insert_breakpoints/insert_bp_location recompute it.
2858 Don't do anything about disabled watchpoint.
2860 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
2862 * valarith.c (value_binop): Handle unsigned integer
2865 2008-01-28 Kevin Buettner <kevinb@redhat.com>
2867 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
2868 instruction pattern that appears frequently in position
2869 independent code. Fix bug in code which looks for "fmov" and
2870 backtracks if no "fmov" is found.
2872 2008-01-28 Doug Evans <dje@google.com>
2874 * dbxread.c (read_dbx_symtab): Fix indentation.
2875 Reformat comments to 80 columns.
2876 Move local var def closer to only use.
2878 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
2880 * fork-child.c (SHELL_FILE): Remove #ifndef.
2881 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
2883 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
2885 * i386-tdep.c (i386_skip_noop): New function.
2886 (i386_analyze_prologue): Call i386_skip_noop function.
2888 2008-01-24 Michael Snyder <msnyder@specifix.com>
2890 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
2891 * win32-nat.c (win32_xfer_partial): Ditto.
2892 * target.c (default_xfer_partial): Minor whitespace adjustment.
2894 2008-01-24 Pedro Alves <pedro@codesourcery.com>
2896 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
2897 strip bit 1 even if pc doesn't point to thumb code.
2899 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
2901 * remote.c (remote_wait): Handle SIGINT between packets.
2902 (remote_async_wait): Likewise.
2904 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
2905 Chris Demetriou <cgd@google.com>
2907 * thread.c (add_thread_silent): Renamed
2909 (print_thread_events): New variable definition.
2910 (show_print_thread_events): New function.
2911 (_initialize_thread): Add "set print thread-events" and
2912 "show print thread-events" commands.
2913 (add_thread): Announce new thread.
2914 * gdbthread.h (add_thread_silent): Declare.
2915 (print_thread_events): New variable declaration.
2916 * inf-ttrace.c (inf_ttrace_wait): Don't
2917 inform about new thread, as add_thread is always
2918 called too, and will take care of that.
2919 * infrun.c (handle_inferior_event): Likewise.
2920 * procfs.c (procfs_wait): Likewise.
2921 * remote.c (remote_currthread): Likewise.
2922 * sol-thread.c (sol_thread_wait): Likewise.
2923 * win32-nat.c (get_win32_debug_event): Likewise.
2924 * linux-thread-db.c (attach_thread): Likewise.
2925 Remove the verbose parameter.
2926 (check_event): Make detach_thread be verbose
2927 only if print_thread_events is set.
2928 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
2929 about new thread. This is called only from
2930 linux-thread-db.c:attach_thread, which will take care.
2931 Remove the verbose parameter.
2932 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
2934 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
2936 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
2938 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
2940 * breakpoint.c (break_command_really): New parameter
2942 (break_command_1): Pass 0 as
2943 ignore_count to break_command_really.
2944 (gdb_breakpoint): Pass ignore_count to
2945 break_command_really.
2947 2008-01-21 Kevin Buettner <kevinb@redhat.com>
2949 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
2950 sigcontext struct via pointer.
2951 (struct sigframe comment): Update to show new field `psc'.
2953 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
2955 * infrun.c (handle_inferior_event): If
2956 we failed to remove breakpoints, error,
2957 don't try to increment PC by hand.
2959 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
2961 Add NetBSD/hppa target and host support.
2963 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
2964 (hppabsd_gregset): Move to ...
2965 (hppabsd_regset_from_core_section): Rename
2966 hppaobsd_regset_from_core_section and move to ...
2967 (hppabsd_find_global_pointer): Update comment.
2968 (hppabsd_init_abi): Make global. Do not register
2969 hppabsd_regset_from_core_section.
2970 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
2972 (_initialize_hppabsd_tdep): Move to ...
2973 * hppaobsd-tdep.c: ... here. New file.
2974 * hppnbsd-tdep.c: New file.
2975 * hppnbsd-nat.c: New file.
2976 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
2977 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
2978 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
2979 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
2980 * configure.host (hppa*-*-netbsd*): New entry.
2981 * configure.tgt (hppa*-*-netbsd*): New entry.
2982 (hppa*-*-openbsd*): Update.
2983 * NEWS (New native configuration): Mention NetBSD/hppa.
2984 (New targets): Mention NetBSD/hppa.
2986 2008-01-18 Markus Deuling <deuling@de.ibm.com>
2988 * gdbarch.sh (function_list): Add new property bits_big_endian to
2990 * gdbarch.{c,h}: Regenerate.
2992 * value.c (struct value): Replace BITS_BIG_ENDIAN by
2993 gdbarch_bits_big_endian (comment).
2994 (unpack_field_as_long, modify_field): Likewise.
2995 * value.h: Likewise (comment).
2996 * valops.c (value_slice): Likewise.
2997 * valarith.c (value_subscript, value_bit_index): Likewise.
2998 * gdbtypes.h (field): Likewise (comment).
2999 * eval.c (evaluate_subexp_standard): Likewise.
3000 * dwarf2read.c (dwarf2_add_field): Likewise.
3001 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
3002 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
3004 * defs.h (BITS_BIG_ENDIAN): Remove.
3006 2008-01-18 Markus Deuling <deuling@de.ibm.com>
3008 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
3010 * m2-exp.y (yylex): Likewise.
3011 * objc-exp.y (yylex): Likewise.
3013 * defs.h (DEPRECATED_STREQN): Remove.
3015 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
3017 * MAINTAINERS: Update my email address.
3019 2008-01-17 Jim Blandy <jimb@codesourcery.com>
3021 * README: Mention gdbserver/README.
3023 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
3025 * valarith.c (value_binop): Handle BINOP_INTDIV
3026 for unsigned and signed integers.
3028 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
3030 * s390-tdep.c (s390_gdbarch_init): Set default long double
3031 type to 128-bit IEEE quad.
3033 2008-01-17 Joel Brobecker <brobecker@adacore.com>
3035 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
3037 2008-01-16 Mark Kettenis <kettenis@gnu.org>
3039 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
3041 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
3042 * value.c: All callers changed.
3044 2008-01-16 Markus Deuling <deuling@de.ibm.com>
3046 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
3047 DEPRECATED_STREQ by its expression.
3048 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
3049 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
3050 (scan_xcoff_symtab): Likewise.
3051 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
3052 * f-lang.c (find_common_for_function): Likewise.
3053 * objc-exp.y (parse_number): Likewise.
3055 * defs.h (DEPRECATED_STREQ): Remove.
3057 2008-01-16 Markus Deuling <deuling@de.ibm.com>
3059 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
3060 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
3061 get_frame_arch to get at the current_architecture. Update AM33_MODE
3063 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
3064 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
3066 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
3068 2008-01-16 Markus Deuling <deuling@de.ibm.com>
3070 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
3072 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
3074 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
3075 current_gdbarch by gdbarch. Update caller.
3077 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
3078 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
3079 the current architecture. Update calls of
3080 amd64_native_gregset_supplies_p.
3081 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
3082 (amd64bsd_store_inferior_registers): Likewise.
3084 2008-01-16 Markus Deuling <deuling@de.ibm.com>
3086 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
3087 Replace current_gdbarch by gdbarch. Update caller.
3089 2008-01-16 Markus Deuling <deuling@de.ibm.com>
3091 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
3092 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
3093 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
3094 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
3095 (stabsect_build_psymtabs): Fix indentation.
3097 2008-01-15 Michael Snyder <msnyder@specifix.com>
3099 * corelow.c (core_xfer_partial): Comment, cut/paste error.
3101 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
3103 * win32-nat.c (win32_create_inferior): Restore code calling
3104 CloseHandle on ProcessInformation structure.
3106 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
3108 * configure.ac: Check for void * as 3 argument of ptrace.
3109 * configure: regenerate.
3111 2008-01-11 Markus Deuling <deuling@de.ibm.com>
3113 * alpha-tdep.c (alpha_heuristic_proc_start)
3114 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
3115 current_gdbarch by gdbarch.
3117 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
3118 current architecture by frame_info. Update alpha_heuristic_proc_start
3121 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
3122 get_frame_arch to get at the current architecture by frame_info. Update
3123 alpha_sigtramp_register_address call.
3125 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
3126 current_gdbarch by gdbarch. Update caller.
3127 (convert_to_extended, convert_from_extended): Add endianess parameter
3128 for comparison. Update caller.
3129 (arm_extract_return_value, arm_store_return_value): Use
3130 get_regcache_arch to get at the current architecture.
3132 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
3133 current_gdbarch by gdbarch. Update caller.
3134 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
3135 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
3137 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
3138 gdbarch as parameter. Update caller.
3139 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
3140 current_gdbarch by gdbarch. Update caller.
3142 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
3143 update caller. Replace current_gdbarch by gdbarch.
3145 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
3146 the current architecture. Replace current_gdbarch by gdbarch.
3147 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
3148 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
3149 expression. Add gdbarch as parameter and replace current_gdbarch with
3151 (M6811_TDEP): Remove.
3152 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
3154 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
3155 current_gdbarch by gdbarch. Update caller.
3157 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
3159 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
3162 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
3163 caller. Relace current_gdbarch by gdbarch.
3164 (altivec_register_p, spe_register_p): Likewise.
3165 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
3167 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
3168 altivec_register_p and spe_register_p.
3170 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
3171 caller. Replace current_gdbarch by gdbarch.
3172 (score_analyze_prologue): use get_frame_arch to get at the current
3175 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
3176 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
3177 current_gdbarch by gdbarch. Update caller.
3178 (sparc_frame_cache): Use get_frame_arch to get at the current
3180 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
3181 sparc_analyze_prologue.
3183 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
3186 2008-01-11 Markus Deuling <deuling@de.ibm.com>
3188 * exec.c: #include "arch-utils.h"
3189 (print_section_info): Use gdbarch_from_bfd to get at the
3190 current architecture. Replace current_gdbarch. Fix indention. Replace
3191 deprecated_print_address_numeric by paddress.
3192 * Makefile.in (exec.o) Add dependency to arch-utils.h.
3194 * valprint.c (val_print_string): Replace
3195 deprecated_print_address_numeric.
3196 * tracepoint.c (trace_mention, scope_info): Likewise.
3197 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
3198 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
3199 (maintenance_check_symtabs): Likewise.
3200 * symfile.c (list_overlays_command): Likewise.
3201 * stack.c (frame_info, print_block_frame_labels): Likewise.
3202 * printcmd.c (print_address, print_address_demangle)
3203 (address_info): Likewise.
3204 * corefile.c (memory_error): Likewise.
3205 * infcmd.c (jump_command): Likewise.
3206 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
3207 (mention, delete_breakpoint): Likewise.
3208 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
3209 * dwarf2read.c (dump_die): Likewise.
3210 * ada-valprint.c (ada_val_print_1): Likewise.
3211 * f-valprint.c (f_val_print): Likewise.
3212 * linux-fork.c (info_forks_command): Likewise.
3213 * m32r-com.c (m32r_load_section, m32r_load)
3214 (m32r_upload_command): Likewise.
3216 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
3218 2008-01-11 Markus Deuling <deuling@de.ibm.com>
3220 * gdbarch.sh (skip_prologue): Add gdbarch
3222 * gdbarch.{c,h}: Regenerate.
3224 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
3225 * amd64-tdep.c (amd64_skip_prologue): Likewise.
3226 * avr-tdep.c (avr_skip_prologue): Likewise.
3227 * cris-tdep.c (cris_skip_prologue): Likewise.
3228 * frv-tdep.c (frv_skip_prologue): Likewise.
3229 * h8300-tdep.c (h8300_skip_prologue): Likewise.
3230 * hppa-tdep.c (hppa_skip_prologue): Likewise.
3231 * i386-tdep.c (i386_skip_prologue): Likewise.
3232 * ia64-tdep.c (ia64_skip_prologue): Likewise.
3233 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
3234 * m32r-tdep.c (m32r_skip_prologue): Likewise.
3235 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
3236 * m68k-tdep.c (m68k_skip_prologue): Likewise.
3237 * m88k-tdep.c (m88k_skip_prologue): Likewise.
3238 * mep-tdep.c (mep_skip_prologue): Likewise.
3239 * mips-tdep.c (mips_skip_prologue): Likewise.
3240 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
3241 * mt-tdep.c (mt_skip_prologue): Likewise.
3242 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
3243 * score-tdep.c (score_skip_prologue): Likewise.
3244 * sh64-tdep.c (sh64_skip_prologue): Likewise.
3245 * sh-tdep.c (sh_skip_prologue): Likewise.
3246 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
3247 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
3248 * spu-tdep.c (spu_skip_prologue): Likewise.
3249 * v850-tdep.c (v850_skip_prologue): Likewise.
3250 * vax-tdep.c (vax_skip_prologue): Likewise.
3251 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
3252 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
3254 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
3255 current_gdbarch by gdbarch.
3256 * m32c-tdep.c (m32c_skip_prologue): Likewise.
3257 * s390-tdep.c (s390_skip_prologue): Likewise.
3259 2008-01-10 Doug Evans <dje@google.com>
3261 * defs.h (struct continuation_arg): Fix typo in comment.
3262 * target.c (target_translate_tls_address): Fix comment spelling error.
3264 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
3266 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
3267 (DOUBLEST_SCAN_FORMAT): Likewise.
3268 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
3269 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
3270 * c-exp.y (parse_number): Likewise.
3271 * jv-exp.y (parse_number): Likewise.
3272 * objc-exp.y (parse_number): Likewise.
3273 * p-exp.y (parse_number): Likewise.
3275 2008-01-09 Joel Brobecker <brobecker@adacore.com>
3277 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
3278 (check_typedef): Likewise.
3280 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
3282 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
3283 seen_double_big_d, treat the new H, D, and DD modifiers as length
3286 2008-01-08 Joel Brobecker <brobecker@adacore.com>
3288 * dwarf2read.c (read_enumeration_type): Add comment.
3290 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
3292 * config.in: Regenerate.
3294 2008-01-08 Joel Brobecker <brobecker@adacore.com>
3296 * ada-lang.c (ada_convert_actual): Renames convert_actual.
3298 (ada_convert_actuals): Delete.
3299 * ada-lang.h (ada_convert_actual): Add declaration.
3300 (ada_convert_actuals): Remove declaration.
3301 * infcall.c: #include "ada-lang.h".
3302 (value_arg_coerce): Add new parameter sp. Update function
3303 documetnation. Add handling of Ada function call parameters.
3304 * Makefile.in (infcall.o): Update dependencies.
3306 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
3308 * ada-lang.c (ensure_lval): Fix value lval kind.
3309 (convert_actual): Add handling for arguments passed by reference.
3311 2008-01-08 Doug Evans <dje@google.com>
3313 * dbxread.c (read_dbx_symtab): Fix indentation.
3315 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
3317 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
3318 (valarith.o): Depend on dfp.h.
3319 (valops.o): Likewise.
3320 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
3321 (set_decnumber_context): New function.
3322 (decimal_check_errors): Likewise.
3323 (decimal_from_number): Likewise.
3324 (decimal_to_number): Likewise.
3325 (decimal_from_string): Use set_decnumber_context and
3326 decimal_check_errors.
3327 (decimal_from_integral): New function.
3328 (decimal_from_floating): Likewise.
3329 (decimal_to_double): Likewise.
3330 (promote_decimal): Likewise.
3331 (decimal_binop): Likewise.
3332 (decimal_is_zero): Likewise.
3333 (decimal_compare): Likewise.
3334 (decimal_convert): Likewise.
3335 * dfp.h (decimal_from_integral): New prototype.
3336 (decimal_from_floating): Likewise.
3337 (decimal_to_double): Likewise.
3338 (decimal_binop): Likewise.
3339 (decimal_is_zero): Likewise.
3340 (decimal_compare): Likewise.
3341 (decimal_convert): Likewise.
3342 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
3343 call to value_from_decfloat.
3344 * valarith.c: Include dfp.h.
3345 (value_args_as_decimal): New function.
3346 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
3347 (value_logical_not): Likewise.
3348 (value_equal): Likewise.
3349 (value_less): Likewise.
3350 (value_pos): Likewise.
3351 (value_neg): Formatting fix.
3352 * valops.c: Include dfp.h.
3353 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
3354 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
3355 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
3356 (value_from_decfloat): Remove expect_type argument.
3357 * value.h (value_from_decfloat): Update prototype.
3359 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
3361 Ignore change in name of dynamic linker during
3362 execution on Solaris. This also unbreaks pending breakpoints.
3364 * solist.h (struct target_so_ops): New field same.
3365 * solib-svr4.c (svr4_same): New.
3366 (_initialize_svr4_solib): Register svr4_same.
3367 * solib.c (update_solib_list): Use ops->same, if available.
3369 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
3371 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
3372 when using MS-DOS paths.
3374 2008-01-05 Pedro Alves <pedro@codesourcery.com>
3376 * NEWS: Mention --pid and --core command line behaviour changes.
3378 2008-01-05 Pedro Alves <pedro@codesourcery.com>
3380 * main.c (captured_main): Remove 'count' varible and the
3381 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
3382 --pid options were issued simultaneously. If an explicit pid
3383 option was passed, don't fallback to core file. Detect extra
3384 arguments better in the presence of explicit pid or core
3387 2008-01-05 Joel Brobecker <brobecker@adacore.com>
3389 * ada-lang.c (ada_which_variant_applies): Correctly compute
3390 the value of the discriminant when the variant record is packed.
3392 2008-01-04 Joel Brobecker <brobecker@adacore.com>
3394 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
3395 that are used to differentiate homonyms.
3397 2008-01-04 Jerome Guitton <guitton@adacore.com>
3399 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
3400 when the type is an anonymous pointer type.
3401 (ada_check_typedef): Avoid a seg fault when the type is null.
3402 * ada-typeprint.c (print_array_type): Add support for pointer
3405 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
3407 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
3409 2008-01-04 Joel Brobecker <brobecker@adacore.com>
3411 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
3412 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
3414 2008-01-04 Joel Brobecker <brobecker@adacore.com>
3416 * ada-exp.y (chop_separator): New function.
3417 (write_selectors): Rewrite to re-use chop_separator.
3418 (ada_nget_field_index, get_symbol_field_type): New functions.
3419 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
3422 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3424 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
3425 of SYMBOL_VALUE when working with function symbols.
3427 2008-01-03 Joel Brobecker <brobecker@adacore.com>
3429 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
3430 expressions. These expressions do not need to be rewriten.
3432 2008-01-03 Joel Brobecker <brobecker@adacore.com>
3434 * dwarf2read.c (read_enumeration_type): Flag type as stub if
3435 the given die is a declaration.
3437 2008-01-03 Joel Brobecker <brobecker@adacore.com>
3439 * ada-lang.c (ada_array_bound_from_type): Make non-static.
3440 Handle properly the case when the index type is an enumerated type.
3441 Do not return the subtype of the bounds type, just return the
3442 bounds type directly - this is not needed and is more consistent
3443 with what we do for arrays when no XA parallel type exists.
3445 2008-01-03 Joel Brobecker <brobecker@adacore.com>
3447 * ada-lang.c (static_unwrap_type): Add forward declaration.
3448 (template_to_static_fixed_type): Fields of dynamic types sometimes
3449 also need to be unwrapped. Take this into account.
3450 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
3451 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
3452 * ada-typeprint.c (ada_print_type): Get the typename from
3453 the original type, not the base type.
3455 2008-01-03 Jerome Guitton <guitton@adacore.com>
3457 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
3458 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
3459 Update calls to ada_to_fixed_type.
3460 (ada_template_to_fixed_record_type_1): Ditto, but without looking
3462 (ada_to_fixed_type): Add check_tag parameter; do not look for
3463 tag if null. When looking for a tag, use a fixed record type.
3464 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
3465 * ada-valprint.c (printable_val_type, ada_value_print): Update
3466 calls to ada_to_fixed_type.
3468 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
3470 * doublest.c (convert_floatformat_to_doublest): Call
3471 floatformat_to_doublest instead of floatformat_to_double and use
3473 (convert_doublest_to_floatformat): Call floatformat_from_doublest
3474 instead of floatformat_from_double and use DOUBLEST variables.
3476 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
3478 * MAINTAINERS (Write After Approval): Add self.
3480 2008-01-03 Joel Brobecker <brobecker@adacore.com>
3482 * symfile.c (set_initial_language): Make non-static.
3483 * symfile.h (set_initial_language): Add declaration.
3484 * language.c: #include "symfile.h".
3485 (set_language): Call set_initial_language if the frame language
3486 could not be determined.
3488 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
3490 * eval.c (evaluate_subexp_for_address): Provide frame address to
3491 locate_var_value only if it will be needed.
3493 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3495 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
3497 2008-01-02 Joel Brobecker <brobecker@adacore.com>
3499 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
3500 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
3501 This is needed to make sure that any other treatment applied
3502 to the resulting value does not fail for spurious reason,
3503 such as trying to take the address of this value.
3505 2008-01-02 Joel Brobecker <brobecker@adacore.com>
3507 * ada-lang.c (ada_value_equal): Dereference reference types when
3510 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
3512 Updated copyright notices for most files.
3514 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
3516 * win32-nat.c (psapi_module_handle): Remove static.
3517 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
3518 return first module found if base_address is zero. Don't initialize
3519 psapi function pointers here. Convert to cygwin paths when
3521 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
3522 executable name. Use get_module_name when that fails or when
3524 (_initialize_psapi): New function. Initialize psapi stuff before it is
3525 needed or issue a warning if it is not found. Move psapi_module_handle
3528 2008-01-01 Joel Brobecker <brobecker@adacore.com>
3530 * ada-lang.c (ada_remove_trailing_digits): New function.
3531 (ada_remove_po_subprogram_suffix): New function.
3532 (ada_decode): Improve. Move the description of the algorithm
3533 directly inside the code, instead of in the function global
3536 2008-01-01 Joel Brobecker <brobecker@adacore.com>
3538 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
3539 and always print the dereferenced value.
3541 2008-01-01 Joel Brobecker <brobecker@adacore.com>
3543 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
3544 of the case where the first argument is a reference.
3545 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
3547 2008-01-01 Joel Brobecker <brobecker@adacore.com>
3549 Implement support for Ada interface types.
3551 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
3552 (ada_is_ignored_field): Ignore fields that are a dispatch table
3555 2008-01-01 Joel Brobecker <brobecker@adacore.com>
3557 * top.c (print_gdb_version): Update copyright year.
3559 2008-01-01 Joel Brobecker <brobecker@adacore.com>
3561 * ChangeLog-2007: New ChangeLog rotation.
3562 * ChangeLog: Reset for 2008.
3563 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
3566 For older changes see ChangeLog-2007.
3572 version-control: never