]> Git Repo - binutils.git/blame - gdb/ChangeLog
daily update
[binutils.git] / gdb / ChangeLog
CommitLineData
4a7622d1
UW
12008-05-03 Ulrich Weigand <[email protected]>
2
3 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
4 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
5 (SIG_FRAME_PC_OFFSET): Likewise.
6 (SIG_FRAME_LR_OFFSET): Likewise.
7 (SIG_FRAME_FP_OFFSET): Likewise.
8 (rs6000_push_dummy_call): Likewise.
9 (rs6000_return_value): Likewise.
10 (rs6000_convert_from_func_ptr_addr): Likewise.
11 (branch_dest, rs6000_software_single_step): Likewise.
12 (deal_with_atomic_sequence): Rename to ...
13 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
14 Do not call branch_dest; inline required parts of that function.
15 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
16 with SYMBOL_LINKAGE_NAME.
17 (struct reg, regsize): Delete.
18 (read_memory_addr): Delete; inline into callers.
19 (rs6000_skip_prologue): Move after skip_prologue.
20 (skip_prologue): Remove prototype.
21 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
22 initialization as if this variable were true. Do not install
23 ppc64_sysv_abi_adjust_breakpoint_address.
24
25 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
26 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
27 and "breakpoint.h".
28 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
29 (SIG_FRAME_PC_OFFSET): Likewise.
30 (SIG_FRAME_LR_OFFSET): Likewise.
31 (SIG_FRAME_FP_OFFSET): Likewise.
32 (rs6000_push_dummy_call): Likewise.
33 (rs6000_return_value): Likewise.
34 (rs6000_convert_from_func_ptr_addr): Likewise.
35 (branch_dest, rs6000_software_single_step): Likewise. Replace
36 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
37 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
38 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
39 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
40 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
41
42 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
43 (AIX_TEXT_SEGMENT_BASE): New macro.
44 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
45 by AIX_TEXT_SEGMENT_BASE.
46
47 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
48 (struct gdbarch_tdep): Remove text_segment_base member.
49 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
50 ppc64_sysv_abi_adjust_breakpoint_address.
51
52 * Makefile.in (rs6000-tdep.o): Update dependencies.
53 (rs6000-aix-tdep.o): Likewise.
54
938f5214
TJB
552008-05-03 Luis Machado <[email protected]>
56 Thiago Jung Bauermann <[email protected]>
57
58 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
59 * doublest.c (convert_typed_floating): Fix typo in comment.
60 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
61 * frame-unwind.h (frame_sniffer_ftype): Likewise.
62 * frame.c (frame_unwind_address_in_block): Likewise.
63 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
64 * symtab.h (struct symbol): Likewise.
65 * tramp-frame.h (struct trad_frame_cache): Likewise.
66 * value.c (allocate_repeat_value): Likewise.
67
0b02b92d
UW
682008-05-03 Ulrich Weigand <[email protected]>
69
70 * infrun.c (handle_inferior_event): Do not insert breakpoints at
71 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
72
d705c43c
PA
732008-05-03 Pedro Alves <[email protected]>
74
75 * parse.c (parse_exp_in_context): Don't override
76 expression_context_pc if get_selected_block returned a valid
77 block.
78
d6350901
DJ
792008-05-03 Daniel Jacobowitz <[email protected]>
80
81 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
82 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
83 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
84 Delete.
85 * c-typeprint.c (c_type_print_base): Delete handling of template
86 instantiations.
87 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
88 (METHOD_PTR_TO_VOFFSET): Delete.
89 * defs.h (QUIT_FIXME): Delete.
90 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
91 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
92 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
93 ninstantiations, and instantiations.
94 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
95 (TYPE_FN_FIELD_INLINED): Delete.
96 * srec.h (SREC_BINARY): Delete.
97 * symtab.c (symbol_init_demangled_name): Delete.
98 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
99 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
100 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
101 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
102 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
103 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
104 * target.h (enum thread_control_capabilities): Delete tc_switch.
105 (target_can_switch_threads): Delete.
106
30510692
DJ
1072008-05-03 Daniel Jacobowitz <[email protected]>
108
109 * Makefile.in (objfiles.o): Update.
110 * exec.c (exec_set_section_address): Support p->addr != 0.
111 * objfiles.c (objfile_relocate): Update exec_ops section
112 addresses.
113 * symfile.c (place_section): Move exec_set_section_address call...
114 (default_symfile_offsets): ...to here.
115
7284e1be
UW
1162008-05-03 Ulrich Weigand <[email protected]>
117
118 * Makefile.in (ppc_linux_tdep_h): New macro.
119 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
120 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
121 (powerpc_e500l_c): Likewise.
122 (ppc-linux-nat.o): Update dependencies.
123 (ppc-linux-tdep.o): Update dependencies.
124 (rs6000-tdep.o): Update dependencies.
125
126 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
127 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
128 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
129 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
130 (tdesc_powerpc_e500): Remove.
131
132 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
133 and "features/rs6000/powerpc-altivec64.c".
134 (ppc_supply_reg, ppc_collect_reg): Make global.
135 (variants): Use tdesc_powerpc_32 for "powerpc" and
136 tdesc_powerpc_altivec64 for "powerpc64".
137 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
138
139 * ppc-linux-tdep.h: New file.
140
141 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
142 Include "features/rs6000/powerpc-32l.c".
143 Include "features/rs6000/powerpc-altivec32l.c".
144 Include "features/rs6000/powerpc-64l.c".
145 Include "features/rs6000/powerpc-altivec64l.c".
146 Include "features/rs6000/powerpc-e500l.c".
147 (ppc_linux_supply_gregset): New function.
148 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
149 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
150 (ppc64_linux_gregset): Likewise.
151 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
152 (ppc_linux_trap_reg_p): New function.
153 (ppc_linux_write_pc): New function.
154 (ppc_linux_core_read_description): New function.
155 (ppc_linux_init_abi): Install ppc_linux_write_pc and
156 ppc_linux_core_read_description. Install orig_r3 and trap
157 registers if present in the target description.
158 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
159
160 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
161 (PT_ORIG_R3, PT_TRAP): Define if necessary.
162 (ppc_register_u_addr): Handle orig_r3 and trap registers.
163 (fetch_ppc_registers): Likewise.
164 (store_ppc_registers): Likewise.
165 (store_register): Likewise.
166 (ppc_linux_read_description): Check whether AltiVec is supported.
167 Check whether inferior is 32-bit or 64-bit. Return the appropriate
168 Linux target description.
169
170 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
171 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
172 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
173 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
174 rs6000/powerpc-e500. Update -expedite variables accordingly.
175
176 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
177 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
178 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
179 * features/rs6000/powerpc-e500.c: Regenerate.
180 * features/rs6000/powerpc-32.c: Regenerate.
181 * features/rs6000/powerpc-64.c: Regenerate.
182
183 * features/rs6000/power-linux.xml: New file.
184 * features/rs6000/power64-linux.xml: New file.
185 * features/rs6000/powerpc-32l.xml: New file.
186 * features/rs6000/powerpc-altivec32l.xml: New file.
187 * features/rs6000/powerpc-64l.xml: New file.
188 * features/rs6000/powerpc-altivec64l.xml: New file.
189 * features/rs6000/powerpc-e500l.xml: New file.
190 * features/rs6000/powerpc-32l.c: New (generated) file.
191 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
192 * features/rs6000/powerpc-64l.c: New (generated) file.
193 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
194 * features/rs6000/powerpc-e500l.xml: New (generated) file.
195
196 * regformats/reg-ppc.dat: Remove.
197 * regformats/reg-ppc64.dat: Remove.
198 * regformats/rs6000/powerpc-32.dat: Remove.
199 * regformats/rs6000/powerpc-64.dat: Remove.
200 * regformats/rs6000/powerpc-e500.dat: Remove.
201 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
202 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
203 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
204 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
205 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
206
063bfe2e
VP
2072008-05-03 Pedro Alves <[email protected]>
208
209 * thread.c (delete_thread): Call observer_notify_thread_exit.
210 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
211 thread_exit observer.
212 (mi_thread_exit): New.
213
f132ba9d
TJB
2142008-05-03 Thiago Jung Bauermann <[email protected]>
215
216 * breakpoint.c (create_exception_catchpoint): Remove prototype
217 for already deleted function.
218 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
219 * frame.h (show_stack_frame): Remove prototype.
220 * stack.c (show_stack_frame): Remove empty, unused function.
221 * source.c (symtab_to_fullname, print_source_lines): Small fix
222 in comment.
223 * value.c (show_values): Update comments to mention "show values"
224 command instead of "info history".
225
bccdca4a
UW
2262008-05-02 Ulrich Weigand <[email protected]>
227
228 * linespec.c: Include "target.h".
229 (minsym_found): Handle minimal symbols pointing to function
230 descriptors. Use find_function_start_pc.
231 * minsyms.c (msymbol_objfile): New function.
232 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
233 to function descriptors.
234 * symtab.c (fixup_section): Only use minimal symbol at the same
235 address to determine section of a symbol.
236 (find_function_start_pc): New function.
237 (find_function_start_sal): Use it.
238 * symtab.h (msymbol_objfile): Add prototype.
239 (find_function_start_pc): Likewise.
240 * value.c: Include "objfiles.h".
241 (value_fn_field): Handle minimal symbols pointing to function
242 descriptors.
243 * Makefile.in (linespec.o): Update dependencies.
244 (value.o): Likewise.
245
de4d072f
JB
2462008-05-02 Joel Brobecker <[email protected]>
247
248 * ada-lang.c (unwrap_value): Handle the case where the "F" field
249 inside a PAD type is a bitfield.
250
93d4208d
UW
2512008-05-02 Ulrich Weigand <[email protected]>
252
253 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
254 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
255 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
256 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
257 Allow typedefs when checking for function pointer arguments.
258 Right-align small structs passed on the stack.
259 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
260 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
261 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
262
60c5725c
DJ
2632008-05-02 Daniel Jacobowitz <[email protected]>
264
265 * Makefile.in (arm-tdep.o): Update.
266 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
267 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
268 (arm_pc_is_thumb): Use mapping symbols.
269 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
270 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
271 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
272 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
273 * gdbarch.sh: Add record_special_symbol.
274 * gdbarch.c, gdbarch.h: Regenerated.
275 * objfiles.c (struct objfile_data): Add cleanup member.
276 (register_objfile_data_with_cleanup): New function, from
277 register_objfile_data.
278 (register_objfile_data): Use it.
279 (objfile_free_data): Call clear_objfile_data.
280 (clear_objfile_data): Call cleanup functions.
281 * objfiles.h (register_objfile_data_with_cleanup): Declare.
282
574dffa2
DJ
2832008-05-02 Daniel Jacobowitz <[email protected]>
284
285 * objfiles.c (init_entry_point_info): Handle shared libraries.
286
2c404490
DJ
2872008-05-02 Daniel Jacobowitz <[email protected]>
288
289 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
290 lowest_pc.
291
237fc4c9
PA
2922008-05-02 Jim Blandy <[email protected]>
293 Pedro Alves <[email protected]>
294
295 Implement displaced stepping.
296
297 * gdbarch.sh (max_insn_length): New 'variable'.
298 (displaced_step_copy, displaced_step_fixup)
299 (displaced_step_free_closure, displaced_step_location): New
300 functions.
301 (struct displaced_step_closure): Add forward declaration.
302 * gdbarch.c, gdbarch.h: Regenerated.
303
304 * arch-utils.c: #include "objfiles.h".
305 (simple_displaced_step_copy_insn)
306 (simple_displaced_step_free_closure)
307 (displaced_step_at_entry_point): New functions.
308 * arch-utils.h (simple_displaced_step_copy_insn)
309 (simple_displaced_step_free_closure)
310 (displaced_step_at_entry_point): New prototypes.
311
312 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
313 (I386_MAX_MATCHED_INSN_LEN): ... this.
314 (i386_absolute_jmp_p, i386_absolute_call_p)
315 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
316 (i386_displaced_step_fixup): New functions.
317 (struct i386_insn, i386_match_insn): Update.
318 (i386_gdbarch_init): Set gdbarch_max_insn_length.
319 * i386-tdep.h (I386_MAX_INSN_LEN): New.
320 (i386_displaced_step_fixup): New prototype.
321 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
322 Register gdbarch_displaced_step_copy,
323 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
324 and gdbarch_displaced_step_location functions.
325
326 * infrun.c (debug_displaced): New variable.
327 (show_debug_displaced): New function.
328 (struct displaced_step_request): New struct.
329 (displaced_step_request_queue, displaced_step_ptid)
330 (displaced_step_gdbarch, displaced_step_closure)
331 (displaced_step_original, displaced_step_copy)
332 (displaced_step_saved_copy, can_use_displaced_stepping): New
333 variables.
334 (show_can_use_displaced_stepping, use_displaced_stepping)
335 (displaced_step_clear, cleanup_displaced_step_closure)
336 (displaced_step_dump_bytes, displaced_step_prepare)
337 (displaced_step_clear_cleanup, write_memory_ptid)
338 (displaced_step_fixup): New functions.
339 (resume): Call displaced_step_prepare.
340 (proceed): Call read_pc once, and remember the value. If using
341 displaced stepping, don't remove breakpoints.
342 (handle_inferior_event): Call displaced_step_fixup. Add some
343 debugging output. When we try to step over a breakpoint, but get
344 a signal to deliver to the thread instead, ensure the step-resume
345 breakpoint is actually inserted. If a thread hop is needed, and
346 displaced stepping is enabled, don't remove breakpoints.
347 (init_wait_for_inferior): Call displaced_step_clear.
348 (_initialize_infrun): Add "set debug displaced" command. Add
349 "maint set can-use-displaced-stepping" command. Clear
350 displaced_step_ptid.
351 * inferior.h (debug_displaced): Declare variable.
352 (displaced_step_dump_bytes): Declare function.
353
354 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
355 dependencies.
356
0428b8f5
DJ
3572008-05-02 Daniel Jacobowitz <[email protected]>
358
359 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
360 (arm_force_mode_string, arm_show_fallback_mode)
361 (arm_show_force_mode): New.
362 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
363 arm_frame_is_thumb.
364 (_initialize_arm_tdep): Add "set arm fallback-mode"
365 and "set arm force-mode".
366 * NEWS: Document new commands.
367
d01a8610
AS
3682008-05-02 Andrew Stubbs <[email protected]>
369
370 * main.h (batch_silent): Declare.
371 * event-top.c: Include main.h.
372 (gdb_setup_readline): Remove extern batch_silent declaration.
373 * infrun.c (normal_stop): Don't print source location when running in
374 --batch-silent mode.
375 * Makefile.in (event-top.o): Add main.h dependency.
376
5009afc5
AS
3772008-05-02 Andreas Schwab <[email protected]>
378
379 * target.h (struct target_ops): Add
380 to_watchpoint_addr_within_range.
381 (target_watchpoint_addr_within_range): New function.
382 * target.c (update_current_target): Inherit
383 to_watchpoint_addr_within_range, defaulting to
384 default_watchpoint_addr_within_range.
385 (default_watchpoint_addr_within_range): New function.
386 (debug_to_watchpoint_addr_within_range): New function.
387 (setup_target_debug): Set to_watchpoint_addr_within_range.
388 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
389 New function.
390 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
391 * breakpoint.c (watchpoints_triggered): Use
392 target_watchpoint_addr_within_range.
393
a15c5c83
PA
3942008-05-01 Pedro Alves <[email protected]>
395
396 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
397 (i[34567]86-*-dicos*, x86_64-*-dicos*):
398 Set gdb_osabi to GDB_OSABI_DICOS.
399
400 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
401 * osabi.c (gdb_osabi_name): Add "DICOS".
402
403 * i386-dicos-tdep.c: New file.
404
405 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
406 (ALLDEPFILES): Add i386-dicos-tdep.c.
407 (i386-dicos-tdep.o): New rule.
408
728c8f58
PA
4092008-05-01 Pedro Alves <[email protected]>
410
411 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
412 and register the fork's PTID as a thread.
413
604133b5
AR
4142008-05-01 Aleksandar Ristovski <[email protected]>
415
416 PR gdb/1665
417 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
418 assign its value to the breakpoint created.
419 (create_breakpoints): Add breakpoint_ops argument and pass it
420 to create_breakpoint call.
421 (break_command_really): Add breakpoint_ops argument and pass/assign
422 appropriately.
423 (break_command_1): Pass NULL as ops argument.
424 (set_breakpoint): Pass NULL as ops argument.
425 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
426 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
427 catch and throw catchpoints.
5009afc5 428
1cded358
AR
4292008-05-01 Aleksandar Riswtovski <[email protected]>
430
431 PR gdb/2343
432 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
433 translate signal numeric value from the target to GDB's enum
434 target_signal.
435 * gdbarch.c, gdbarch.h: Regenerated.
436 * gdbarch.sh: Added two new functions target_signal_from_host and
437 target_signal_to_host.
438 * target.h (default_target_signal_from_host,
439 default_target_signal_to_host): New functions - declarations.
440 * signals/signals.c (struct gdbarch): New declaration.
441 (default_target_signal_to_host, default_target_signal_from_host): New
442 functions.
443
b39cc962
DJ
4442008-05-01 Daniel Jacobowitz <[email protected]>
445
446 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
447 * arm-tdep.c (arm_frame_is_thumb): New.
448 (arm_pc_is_thumb): Clarify comment.
449 (thumb_analyze_prologue): Remove PC special case.
450 (thumb_scan_prologue): Take a block_addr argument. Use it for
451 find_pc_partial_function. Remove unused variables.
452 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
453 for find_pc_partial_function. Remove PC special case.
454 (arm_prologue_prev_register): Add special handling for PC and CPSR.
455 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
456 (arm_get_next_pc): Use arm_frame_is_thumb.
457 (arm_write_pc): Use CPSR_T instead of 0x20.
458 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
459 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
460 (CPSR_T): Define.
461 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
462 DWARF2_FRAME_REG_FN.
463 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
464 DWARF2_FRAME_REG_FN.
465 (struct dwarf2_frame_state_reg): Add FN to loc union.
466
944f08ab
JB
4672008-05-01 Nick Roberts <[email protected]>
468
469 * exec.c (print_section_info): Add missing '\n'.
470
cfc01461
VP
4712008-05-01 Vladimir Prus <[email protected]>
472
473 * thread.c (add_thread): Move observer call to ...
474 (add_thread_silent): ... here.
475
1af5d7ce
UW
4762008-04-30 Ulrich Weigand <[email protected]>
477
478 * rs6000-tdep.c: Update for unwinder changes.
479 * ppcobsd-tdep.c: Likewise.
480
f089c433
UW
4812008-04-30 Ulrich Weigand <[email protected]>
482
483 * s390-tdep.c: Update for unwinder changes.
484
8d998b8f
UW
4852008-04-30 Ulrich Weigand <[email protected]>
486
487 * spu-tdep.c: Update for unwinder changes.
488
5366653e
DJ
4892008-04-30 Daniel Jacobowitz <[email protected]>
490
491 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
492 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
493 sparc64-linux-tdep.c: Update for unwinder changes.
494
b8a22b94
DJ
4952008-04-30 Daniel Jacobowitz <[email protected]>
496
497 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
498 for unwinder changes.
499 * mips-tdep.c: Likewise.
500 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
501 raw one.
502
a262aec2
DJ
5032008-04-30 Daniel Jacobowitz <[email protected]>
504
505 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
506 unwinder changes.
507
10458914
DJ
5082008-04-30 Daniel Jacobowitz <[email protected]>
509
510 Update i386 and amd64 ports for unwinder changes.
511
512 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
513 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
514 (amd64_frame_unwind): Use default_frame_sniffer.
515 (amd64_frame_sniffer): Delete.
516 (amd64_sigtramp_frame_cache): Expect this_frame.
517 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
518 (amd64_sigtramp_frame_sniffer): Update signature.
519 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
520 (amd64_frame_base_address): Expect this_frame.
521 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
522 this_frame.
523 (amd64_init_abi): Use set_gdbarch_dummy_id and
524 frame_unwind_append_unwinder.
525 * i386-tdep.c (i386_frame_cache): Expect this_frame.
526 (i386_frame_this_id, i386_frame_prev_register): Update signature.
527 (i386_frame_unwind): Use default_frame_sniffer.
528 (i386_frame_sniffer): Delete.
529 (i386_sigtramp_frame_cache): Expect this_frame.
530 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
531 (i386_sigtramp_frame_sniffer): Update signature.
532 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
533 (i386_frame_base_address): Update signature.
534 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
535 (i386_push_dummy_call): Update comment.
536 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
537 Expect this_frame.
538 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
539 and frame_unwind_append_unwinder.
540 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
541 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
542 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
543 i386nbsd-tdep.c: Update for unwinder changes.
544
25492ce3
DJ
5452008-04-30 Daniel Jacobowitz <[email protected]>
546
547 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
548 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
549 this_frame.
550 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
551 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
552 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
553 signature.
554 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
555 this_frame.
556 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
557 Update signature.
558 * tramp-frame.h (struct tramp_frame): Update signature of init.
559 * Makefile.in (trad-frame.o): Update.
560
4a4e5149
DJ
5612008-04-30 Daniel Jacobowitz <[email protected]>
562
563 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
564 (execute_stack_op): Put this_frame in the baton.
565 (execute_cfa_program): Take this_frame.
566 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
567 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
568 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
569 (dwarf2_frame_this_id): Adjust to work on this_frame.
570 (dwarf2_signal_frame_this_id): Delete.
571 (dwarf2_frame_prev_register): Update signature. Use new frame
572 unwind methods.
573 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
574 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
575 dwarf2_frame_sniffer.
576 (dwarf2_append_unwinders): New.
577 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
578 this_frame.
579 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
580 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
581 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
582 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
583 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
584 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
585 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
586 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
587 (dwarf2_append_unwinders): Declare.
588 (dwarf2_frame_base_sniffer): Update declaration.
589 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
590 this_frame.
591
669fac23
DJ
5922008-04-30 Daniel Jacobowitz <[email protected]>
593
594 Convert frame unwinders to use the current frame and
595 "struct value".
596
597 * frame.c (frame_debug): Make global.
598 (get_frame_id): Pass this frame to unwinder routines.
599 (frame_pc_unwind): Remove unused unwind->prev_pc support.
600 (do_frame_register_read): Do not discard the return value of
601 frame_register_read.
602 (frame_register_unwind): Remove debug messages. Use
603 frame_unwind_register_value.
604 (frame_unwind_register_value, get_frame_register_value): New
605 functions.
606 (create_new_frame, get_frame_base_address, get_frame_locals_address)
607 (get_frame_args_address, get_frame_type): Pass this frame to
608 unwinder routines.
609 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
610 functions.
611 * frame.h: Update comments.
612 (frame_debug, frame_unwind_register_value, get_frame_register_value)
613 (frame_prepare_for_sniffer): Declare.
614 * frame-unwind.h: Update comments and parameter names.
615 (default_frame_sniffer): Declare.
616 (frame_prev_register_ftype): Return a struct value *.
617 (struct frame_unwind): Remove prev_pc member.
618 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
619 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
620 (frame_unwind_got_register, frame_unwind_got_memory)
621 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
622 * frame-base.h: Update comments and parameter names.
623 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
624 if necessary. Add debugging output.
625 * sentinel-frame.c (sentinel_frame_prev_register)
626 (sentinel_frame_this_id): Update for new signature.
627 (sentinel_frame_prev_pc): Delete.
628 (sentinel_frame_unwinder): Remove prev_pc.
629 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
630 prev_pc.
631 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
632 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
633 (frame_unwind_append_sniffer): Delete.
634 (frame_unwind_append_unwinder): New function.
635 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
636 from unwinders. Use frame_prepare_for_sniffer.
637 (default_frame_sniffer, frame_unwind_got_optimized)
638 (frame_unwind_got_register, frame_unwind_got_memory)
639 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
640 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
641 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
642 signature.
643 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
644 * gdbarch.c, gdbarch.c: Regenerated.
645 * frame-base.c (default_frame_base_address)
646 (default_frame_locals_address, default_frame_args_address): Update
647 for new signature.
648 (frame_base_find_by_frame): Pass this frame to unwinder routines.
649 * infcall.c (call_function_by_hand): Update comments.
650 * Makefile.in (frame-unwind.o): Update dependencies.
651
9214ee5f
DJ
6522008-04-30 Daniel Jacobowitz <[email protected]>
653
654 * ada-lang.c (ada_value_primitive_packed_val): Only check
655 value_lazy for memory lvals.
656 * findvar.c (value_of_register_lazy): New function.
657 (locate_var_value): Only check value_lazy for memory lvals.
658 * valarith.c (value_subscripted_rvalue): Likewise.
659 * valops.c (value_fetch_lazy): Handle both memory and register
660 lvals.
661 (search_struct_field, value_slice): Only check value_lazy for memory
662 lvals.
663 * value.c (struct value): Update comment for lazy.
664 (value_primitive_field): Only check value_lazy for memory lvals.
665 * value.h (value_lazy): Update comment.
666 (value_of_register_lazy): Declare.
667
939643d7
DJ
6682008-04-30 Daniel Jacobowitz <[email protected]>
669
670 * corefile.c (reopen_exec_file): Close any open files.
671
1de34ab7
JB
6722008-04-29 Joel Brobecker <[email protected]>
673
674 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
675 show_memory_breakpoints to 1 while reading the instruction bundle.
676
ea42b34a
JB
6772008-04-29 Joel Brobecker <[email protected]>
678
679 * gdbarch.sh: Document the return_value method. Explain that
680 the FUNCTYPE parameter might be NULL.
681 * gdbarch.h: Regenerated.
682 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
683 type when calling using_struct_return, as this is unnecessary
684 on this target.
685
a0fe373c
JB
6862008-04-28 Joel Brobecker <[email protected]>
687
688 * terminal.h (create_tty_session): Fix return type.
689
c6446539
VP
6902008-04-26 Vladimir Prus <[email protected]>
691
692 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
693
2f069f6f
JB
6942008-04-26 Joel Brobecker <[email protected]>
695
696 * breakpoint.c (condition_command, commands_from_control_command)
697 (break_command_really): Minor reformatting.
698
93b5768b
PA
6992008-04-25 Pedro Alves <[email protected]>
700
701 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
702
436675d3
PA
7032008-04-25 Pedro Alves <[email protected]>
704
705 * amd64-tdep.c (amd64_get_longjmp_target): New.
706 (amd64_init_abi): Register amd64_get_longjmp_target as
707 gdbarch_get_longjmp_target callback.
708 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
709
78b6a731
PA
7102008-04-25 Pedro Alves <[email protected]>
711
712 * breakpoint.h (enum bpstat_what_main_action): Delete
713 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
714
715 * breakpoint.c (clrs): Delete.
716 (bpstat_what): Update table.
717
718 * infrun.c (handle_inferior_event): Remove
719 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
720
9e22b03a
VP
7212008-04-24 Vladimir Prus <[email protected]>
722
723 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
724 Adjust all prototypes using mi_cmd_args_ftype to use
725 mi_cmd_argv_ftype.
726 (struct mi_cmd): Remove the args_func field.
727 * mi/mi-cmds.c: Don't provide value for the args_func field.
728 * mi/mi-main.c (mi_execute_async_cli_command)
729 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
730 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
731 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
732 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
733 (mi_cmd_target_download): Adjust.
734 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
735 (mi_cmd_execute): Do not check for args_func.
736 (mi_execute_async_cli_command): Adjust.
737 * mi/mi-parse.c: Don't check for args_func.
738
721c02de 7392008-04-24 Vladimir Prus <[email protected]>
18a18393
VP
740
741 * breakpoint.c (bpstat_check_location)
742 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
743 New, extracted from bpstat_stop_status.
744 (bpstat_stop_status): Use the above.
745
7462008-04-24 Vladimir Prus <[email protected]>
747
721c02de
VP
748 * mi/mi-main.c (last_async_command): Rename to current_token.
749 (previous_async_command): Remove.
750 (mi_cmd_gdb_exit): Adjust.
751 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
752 (mi_cmd_target_select): Adjust.
753 (mi_cmd_execute): Don't set previous_async_command. Free token
754 here even in async mode.
755 (mi_execute_async_cli_command): Adjust.
756 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
757 token.
758 (mi_load_progress): Adjust.
759
f13468d9
VP
7602008-04-24 Vladimir Prus <[email protected]>
761
762 * infcmd.c (step_1_continuation): Always disable longjmp
763 breakpoint if we're not going to do another step.
764
f107f563
VP
7652008-04-24 Vladimir Prus <[email protected]>
766
767 exec_cleanup murder.
768 * breakpoint.c (until_break_command_continuation): Add
769 the 'error' parameter. Directly delete the breakoint as
770 opposed to running cleanups.
771 (until_break_command): Install continuation only
772 after starting the target. Don't use exec cleanups,
773 use ordinary cleanups. Discard cleanups is successfully
774 started the target in async mode.
775 (make_cleanup_delete_breakpoint): Remove.
776 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
777 declaration.
778 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
779 declarations.
780 (struct continations): Add the 'error' parameter to the
781 continuation_hook field.
782 (add_continuation, do_all_continuations)
783 (add_intermediate_continuation)
784 (do_all_intermediate_continuations): Add the 'error' parameter.
785 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
786 * inf-loop.c (inferior_event_handler): Instead of calling
787 discard_all_continuations, use do_all_continuations with 1 as
788 'error' parameter. Pass 0 as 'error' parameter in existing uses
789 of discard_all_continuations.
790 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
791 cleanups.
792 (step_once): Install continuation only after resuming the target.
793 (step_1_continuation): Disable longjmp breakpoint on error.
794 (finish_command_continuation): Add the error parameter. Delete
795 the finish breakpoint directly, do not use cleanups.
796 (finish_command): Do not use exec_cleanups. Always setup
797 continuation. For sync case, immediately run them.
798 (attach_command_continuation): Add the error parameter.
799 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
800 remove step_resume_breakpoint -- adjust delete it directly.
801 * interps.c (interp_set): Adjust call to do_all_continations.
802 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
803 do exec cleanups.
804 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
805 cleanups.
806 (mi_cmd_execute): Do not use exec_cleanup.
807 (mi_execute_async_cli_command): Simplify the string concatenation
808 logic. Do no use exec cleanup.
809 (mi_exec_async_cli_cmd_continuation): New parameter error.
810 Free last_async_command.
811 * top.c (command_line_handler_continuation): New parameter error.
812 * utils.c (exec_cleanup_chain, make_exec_cleanup)
813 (do_exec_cleanups): Remove.
814 (add_continuation, do_all_continations)
815 (add_intermediate_continuation)
816 (do_all_intermediate_continuations): New parameter error.
817
74960c60
VP
8182008-04-24 Vladimir Prus <[email protected]>
819
820 * breakpoint.h (bp_location_p): New typedef.
821 Register a vector of bp_location_p.
822 * breakpoint.c (always_inserted_mode)
823 (show_always_inserted_mode): New.
824 (unlink_locations_from_global_list): Remove.
825 (update_global_location_list)
826 (update_global_location_list_nothrow): New.
827 (update_watchpoint): Don't free locations.
828 (should_insert_location): New.
829 (insert_bp_location): Use should_insert_location.
830 (insert_breakpoint_locations): Copied from
831 insert_breakpoints.
832 (insert_breakpoint): Use insert_breakpoint_locations.
833 (bpstat_stop_status): Call update_global_location_list
834 when disabling breakpoint.
835 (allocate_bp_location): Don't add to bp_location_chain.
836 (set_raw_breakpoint)
837 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
838 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
839 (enable_overlay_breakpoints, disable_overlay_breakpoints)
840 (set_longjmp_resume_breakpoint)
841 (enable_watchpoints_after_interactive_call_stop)
842 (disable_watchpoints_before_interactive_call_start)
843 (create_internal_breakpoint)
844 (create_fork_vfork_event_catchpoint)
845 (create_exec_event_catchpoint, set_momentary_breakpoint)
846 (create_breakpoints, break_command_1, watch_command_1)
847 (create_exception_catchpoint)
848 (handle_gnu_v3_exceptions)
849 (disable_breakpoint, breakpoint_re_set_one)
850 (create_thread_event_breakpoint, create_solib_event_breakpoint)
851 (create_ada_exception_breakpoint): : Don't call check_duplicates.
852 Call update_global_location_list.
853 (delete_breakpoint): Don't remove locations and don't
854 try to reinsert them. Call update_global_location_list.
855 (update_breakpoint_locations): Likewise.
856 (restore_always_inserted_mode): New.
857 (update_breakpoints_after_exec): Temporary disable
858 always inserted mode.
859 * Makefile.in: Update dependencies.
860
861 * infrun.c (proceed): Remove breakpoints while stepping
862 over breakpoint.
863 (handle_inferior_event): Don't remove or insert
864 breakpoints.
865 * linux-fork.c (checkpoint_command): Remove breakpoints
866 before fork and insert after.
867 (linux_fork_context): Remove breakpoints before switch
868 and insert after.
869 * target.c (target_disconnect, target_detach): Remove
870 breakpoints from target.
871
872
d24317b4
VP
8732008-04-24 Vladimir Prus <[email protected]>
874
875 * breakpoint.c (print_one_breakpoint_location): In MI
876 mode, report the location string the breakpoint was
877 originally created with.
878
ee967b5f
MG
8792008-04-23 Maxim Grigoriev <[email protected]>
880
881 * Makefile.in (xtensa-tdep.o): Update dependencies.
882 * configure.tgt (xtensa*): Update dependencies.
883 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
884 Local variable areg renamed to arreg.
885 (areg_number): New function.
886 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
887 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
888 replaced by arreg_number.
889 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
890 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
891 (xtensa_scan_prologue): New function.
892 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
893 when ENTRY instraction hasn't been executed yet. Get the frame pointer
894 value based on prologue analysis. Fix the bugs preventing WS and
895 AR4-AR7/A11 registers from getting right values for intermediate frames,
896 whose registers have been already spilled.
897 (xtensa_frame_prev_register): Fix WS register value. Use are_number
898 and arreg_number appropriately.
899 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
900 svr4_ilp32_fetch_link_map_offsets.
901
09d71d23
AS
9022008-04-23 Andrew Stubbs <[email protected]>
903
904 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
905 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
906
fdc59709
PB
9072008-04-23 Paolo Bonzini <[email protected]>
908
909 * acinclude.m4: Add override.m4.
910 * configure: Regenerate.
911
0bcd0149
JK
9122008-04-22 Jan Kratochvil <[email protected]>
913
914 * ada-lang.c (get_selections): Variable PROMPT made non-const and
915 initialized with a trailing space now. Use PROMPT_ARG of
916 COMMAND_LINE_INPUT instead of printing it ourselves.
917
88d8a8e0
JB
9182008-04-22 Joel Brobecker <[email protected]>
919
920 * NEWS: Document support for 64-bit core file.
921
c055b101
CV
9222008-04-22 Corinna Vinschen <[email protected]>
923
924 * NEWS: Add information on calling convention and new SH CLI options.
925
926 * sh-tdep.c (sh_cc_gcc): New static string.
927 (sh_cc_renesas): Ditto.
928 (sh_cc_enum): New static string array.
929 (sh_active_calling_convention): New static string pointer denoting
930 active user chosen ABI.
931 (sh_is_renesas_calling_convention): New function to return function
932 specific ABI, or user choice if necessary.
933 (sh_use_struct_convention): Rename first argument and turn around its
934 meaning. Check for renesas ABI and return accordingly.
935 (sh_use_struct_convention_nofpu): New function.
936 (sh_next_flt_argreg): Get function type as third parameter. Check
937 for renesas ABI and choose floating registers accordingly.
938 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
939 struct return slot accordingly.
940 (sh_push_dummy_call_nofpu): Ditto.
941 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
942 Evaluate ABI and give to sh_use_struct_convention_nofpu.
943 (sh_return_value_fpu): Evaluate ABI and give to
944 sh_use_struct_convention.
945 (show_sh_command): New function.
946 (set_sh_command): Ditto.
947 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
948 CLI command.
949
950 * gdbarch.sh (return_value): Add func_type argument.
951 * gdbarch.c: Regenerate.
952 * gdbarch.h: Ditto.
953 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
954 val_type so as not to collide with value_type function. Call
955 using_struct_return with additional function type argument.
956 * infcall.c (call_function_by_hand): Call using_struct_return and
957 gdbarch_return_value with additional function type argument.
958 * infcmd.c (print_return_value): Take addition func_type argument.
959 Call gdbarch_return_value with additional function type argument.
960 (finish_command_continuation): Call print_return_value with additional
961 function type argument.
962 (finish_command): Ditto.
963 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
964 additional function type argument.
965 * stack.c (return_command): Call using_struct_return and
966 gdbarch_return_value with additional function type argument.
967 * value.c (using_struct_return): Take additional function type argument.
968 * value.h (using_struct_return): Accommodate declaration.
969 * alpha-tdep.c (alpha_return_value): Add func_type argument.
970 * amd64-tdep.c (amd64_return_value): Ditto.
971 * arm-tdep.c (arm_return_value): Ditto.
972 * avr-tdep.c (avr_return_value): Ditto.
973 * cris-tdep.c (cris_return_value): Ditto.
974 * frv-tdep.c (frv_return_value): Ditto.
975 * h8300-tdep.c (h8300_return_value): Ditto.
976 (h8300h_return_value): Ditto.
977 * hppa-tdep.c (hppa32_return_value): Ditto.
978 (hppa64_return_value): Ditto.
979 * i386-tdep.c (i386_return_value): Ditto.
980 * ia64-tdep.c (ia64_return_value): Ditto.
981 * iq2000-tdep.c (iq2000_return_value): Ditto.
982 * m32c-tdep.c (m32c_return_value): Ditto.
983 * m32r-tdep.c (m32r_return_value): Ditto.
984 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
985 * m68k-tdep.c (m68k_return_value): Ditto.
986 (m68k_svr4_return_value): Ditto.
987 * m88k-tdep.c (m88k_return_value): Ditto.
988 * mep-tdep.c (mep_return_value): Ditto.
989 * mips-tdep.c (mips_eabi_return_value): Ditto.
990 (mips_n32n64_return_value): Ditto.
991 (mips_o32_return_value): Ditto.
992 (mips_o64_return_value): Ditto.
993 * mn10300-tdep.c (mn10300_return_value): Ditto.
994 * mt-tdep.c (mt_return_value): Ditto.
995 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
996 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
997 (ppc_sysv_abi_broken_return_value): Ditto.
998 (ppc64_sysv_abi_return_value): Ditto.
999 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
1000 (ppc_sysv_abi_broken_return_value): Ditto.
1001 (ppc64_sysv_abi_return_value): Ditto.
1002 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
1003 * rs6000-tdep.c (rs6000_return_value): Ditto.
1004 * s390-tdep.c (s390_return_value): Ditto.
1005 * score-tdep.c (score_return_value): Ditto.
1006 * sh-tdep.c (sh_return_value_nofpu): Ditto.
1007 (sh_return_value_fpu): Ditto.
1008 * sh64-tdep.c (sh64_return_value): Ditto.
1009 * sparc-tdep.c (sparc32_return_value): Ditto.
1010 * sparc64-tdep.c (sparc64_return_value): Ditto.
1011 * spu-tdep.c (spu_return_value): Ditto.
1012 * v850-tdep.c (v850_return_value): Ditto.
1013 * vax-tdep.c (vax_return_value): Ditto.
1014 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
1015 * xtensa-tdep.c (xtensa_return_value): Ditto.
1016
1017 * gdbtypes.h (struct type): Add calling_convention member.
1018 * dwarf2read.c (read_subroutine_type): Add calling convention read
1019 from DW_AT_calling_convention attribute to function type.
1020
9eec4d1e
MD
10212008-04-22 Markus Deuling <[email protected]>
1022
1023 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
1024 multi_f77_subscript to support values from registers.
1025 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
1026 * value.h (value_subscripted_rvalue): Add prototype.
1027
1028 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
1029 Fix output.
1030 * f-valprint.c (f_val_print): Likewise.
1031
ef72380d
CS
10322008-04-21 Craig Silverstein <[email protected]>
1033
1034 * dwarf2read.c (zlib_decompress_section): Define abfd in the
1035 !HAVE_ZLIB_H case.
1036
ff8e85c3
PA
10372008-04-21 Pedro Alves <[email protected]>
1038
1039 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
1040 section is not a code section.
1041
31fffb02
CS
10422008-04-19 Craig Silverstein <[email protected]>
1043
1044 * NEWS: Add information on compressed debug sections.
1045
8e91f023
VP
10462008-04-19 Vladimir Prus <[email protected]>
1047
1048 * mi/mi-cmd-var.c (varobj_update_one): Print new
1049 value for variable objects that changed type.
1050
603ba1de
VP
10512008-04-19 Vladimir Prus <[email protected]>
1052
1053 * varobj.c (varobj_invalidate): Don't touch floating
1054 varobjs.
1055
7fc830e2
MK
10562008-04-19 Mark Kettenis <[email protected]>
1057
1058 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
1059 (multiple_symbols_cancel): Remove extra const.
1060 * symtab.h: Likewise.
1061
bcbf8b68
NR
10622008-04-19 Nick Roberts <[email protected]>
1063
1064 * interps.c (top_level_interpreter): Rename static variable...
1065 (top_level_interpreter_ptr): ...to this.
1066 (top_level_interpreter): New function.
1067
1068 * interps.h: New extern for top_level_interpreter.
1069
1070 * linespec.c: Include interps.h and mi/mi-cmds.h.
1071 (decode_line_2): When using MI, always set all breakpoints in menu.
1072
1073 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
1074
31fffb02 10752008-04-18 Craig Silverstein <[email protected]>
233a11ab
CS
1076
1077 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
1078 * config.in, configure: Regenerate.
1079 * dwarf2read.c: Include zlib.h if present.
1080 Modified *_SECTION macros.
1081 (section_is_p): New.
1082 (dwarf2_locate_sections): Use section_is_p instead of strcmp
1083 (dwarf2_resize_section): New.
1084 to determine whether a given section has a given name.
1085 (zlib_decompress_section): New.
1086 (dwarf2_read_section): Read the compressed section if present
1087 in the binary.
1088 * MAINTAINERS: Added myself to section Write After Approval.
bcbf8b68 1089
a03b3a97
TJB
10902008-04-18 Thiago Jung Bauermann <[email protected]>
1091
1092 * defs.h (exec_set_section_offsets): Remove prototype.
1093 * exec.c (exec_set_section_offsets): Remove function.
1094
9e386756
JB
10952008-04-18 Joel Brobecker <[email protected]>
1096
1097 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
1098 in the search for the matching symbol.
1099
2ec93238
MK
11002008-04-17 Marc Khouzam <[email protected]>
1101
1102 * breakpoint.c (update_watchpoint): Always reparse
1103 condition.
1104
e9bbd7c5
JB
11052008-04-17 Joel Brobecker <[email protected]>
1106
1107 * breakpoint.c (print_one_breakpoint_location): Make sure to print
1108 the breakpoint address only once.
1109
475bbd17
JB
11102008-04-17 Dennis Roberts <[email protected]>
1111
1112 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
1113 rather than a hard-coded architecture, for xcoff executables.
1114
86991504
DE
11152008-04-17 Doug Evans <[email protected]>
1116
4584e32e
DE
1117 * buildsym.c (watch_main_source_file_lossage): New fn.
1118 (end_symtab): Call it.
1119
86991504
DE
1120 * source.c (find_and_open_source): Add some comments clarifying
1121 handling of FULLNAME argument. Make static. Remove pointless
1122 xstrdup/xfree.
1123
0a320680
PA
11242008-04-17 Pedro Alves <[email protected]>
1125
1126 * inf-loop.c (inferior_event_handler): Also run the intermediate
1127 continuations in the INF_EXEC_COMPLETE case.
1128
700b53b1
TT
11292008-04-16 Tom Tromey <[email protected]>
1130
1131 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
1132 (set_cmd_async_ok, get_cmd_async_ok): Declare.
1133 * cli/cli-decode.c (set_cmd_async_ok): New function.
1134 (get_cmd_async_ok): New function.
1135 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
1136 "show" as async-ok.
1137 * top.c (execute_command): Use get_cmd_async_ok.
1138 * infcmd.c: Include cli/cli-decode.h.
1139 (_initialize_infcmd): Mark "interrupt" as async-ok.
1140 * Makefile.in (infcmd.o): Depend on cli_decode_h.
1141
dacec2a8
DJ
11422008-04-16 Daniel Jacobowitz <[email protected]>
1143
1144 PR gdb/2445
1145 * exec.c: Correct "arch-utils.h" include.
1146
2cec12e5
AR
11472008-04-15 Aleksandar Ristovski <[email protected]>
1148
1149 PR gdb/2424
1150 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
1151 to allow printing to 'see' real reason of stop. This fixes PR 2424.
1152 * breakpoint.c (bpdisp_texst): New function. The function takes over
1153 the role of bpstats static array in print_one_breakpoint_location.
1154 (print_it_typical): Print "Temporary breakpoint" instead
1155 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
1156 protocols, print disp field.
1157 (print_one_breakpoint_location): Removed bpdisps static definition.
1158 Call new bpstat_text function to get value for 'disp' field.
1159 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
1160
4d7b71aa
DJ
11612008-04-15 Daniel Jacobowitz <[email protected]>
1162
1163 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
1164 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
1165 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
1166 * gnulib/Makefile.in: Regenerate.
1167
aa11fd3f
DJ
11682008-04-14 Daniel Jacobowitz <[email protected]>
1169
1170 * Makefile.in (GNULIB_H): New. Trigger all-lib.
1171 (defs_h): Use $(GNULIB_H).
1172 (all-lib): Depend on gnulib/Makefile.
1173 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
1174 * config.in, gnulib/Makefile.in: Regenerated.
1175
e28b3332
DJ
11762008-04-14 Daniel Jacobowitz <[email protected]>
1177
1178 * Makefile.in (LIBGNU, INCGNU): Define.
1179 (INTERNAL_CFLAGS_BASE): Add INCGNU.
1180 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
1181 (CLEANDIRS): New.
1182 ($(LIBGNU), all-lib): New rules.
1183 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
1184 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
1185 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
1186 * gnulib: New directory, from gnulib-tool.
1187 * configure, aclocal.m4: Regenerated.
1188
e3bc4218
DJ
11892008-04-14 Daniel Jacobowitz <[email protected]>
1190
1191 * linux-thread-db.c (have_threads_callback): Check thread->private.
1192
fcacd99f
VP
11932008-04-13 Nick Roberts <[email protected]>
1194 Vladimir Prus <[email protected]>
1195
1196 Fix @-varobjs.
1197 * varobj.c (value_of_root): Update the expression for
1198 floating varobjs.
1199 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
1200 report that.
1201
de051565
MK
12022008-04-09 Marc Khouzam <[email protected]>
1203
1204 * mi/mi-cmd-var.c: Include "mi-getopt.h".
1205 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
1206 (mi_cmd_var_set_format): Use new mi_parse_format.
1207 (mi_cmd_var_evaluate_expression): Support for -f option to specify
1208 format.
1209 * Makefile.in (mi-cmd-var.o): Update dependencies.
1210
1211 * varobj.h (varobj_get_formatted_value): Declare.
1212 * varobj.c (my_value_of_variable): Added format parameter.
1213 (cplus_value_of_variable): Likewise.
1214 (java_value_of_variable): Likewise.
1215 (c_value_of_variable): Likewise. Evaluate expression based
1216 on format parameter.
1217 (struct language_specific): Add format parameter to function member
1218 *value_of_variable.
1219 (varobj_get_formatted_value): New.
1220 (varobj_get_value): Added format parameter to method call.
1221
56953f80
JB
12222008-04-08 Joel Brobecker <[email protected]>
1223
1224 * stabsread.c (cleanup_undefined_types_noname): Manually set the
1225 instance flags of the undefined type before calling replace_type.
1226
e4e33b9e
VP
12272008-04-08 Vladimir Prus <[email protected]>
1228
1229 * target.h (enum strata): Remove the download_stratum.
1230
92b5c263
DE
12312008-04-07 Doug Evans <[email protected]>
1232
1233 * buildsym.h (last_source_file): Add dwarf info to comment.
1234 (last_source_start_addr): Ditto.
1235
effa26a9
PA
12362008-04-07 Pedro Alves <[email protected]>
1237
1238 * alphanbsd-tdep.c: Include "target.h".
1239 * mn10300-tdep.c: Include "target.h".
1240 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
1241
2b2d9e11
VP
12422008-04-06 Vladimir Prus <[email protected]>
1243
1244 Fix breakpoint condition that use member variables.
1245 * valops.c (check_field): Remove.
1246 (check_field_in): Rename to check_field.
1247 (value_of_this): Use la_name_of_this.
1248 * value.h (check_field): Adjust prototype.
1249
1250 * language.h (la_value_of_this): Rename to la_name_of_this.
1251 * language.c (unknown_language_defn): Specify "this" for
1252 name_of_this.
1253 (auto_language_defn): Likewise.
1254 (local_language_defn): Likewise.
1255 * ada-lang.c (ada_language_defn): Adjust comment.
1256 * c-lang.c (c_language_defn): Adjust comment.
1257 (cplus_language_defn): Specify "this" for name_of_this.
1258 (asm_language_defn): Adjust comment.
1259 (minimal_language_defn): Adjust comment.
1260 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
1261 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
1262 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
1263 * objc-lang.c (objc_language_defn): Specify "self" for
1264 name_of_this.
1265 * p-lang.c (pascal_language_defn): Specify "this" for
1266 name_of_this.
1267 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
1268
1269 * symtab.c (lookup_symbol_aux): Lookup "this" in the
1270 proper scope, and check for field in type of "this", without
1271 trying to create a value.
1272
a13e061a
PA
12732008-04-04 Pedro Alves <[email protected]>
1274
1275 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
1276 (mi_error_message): Delete declaration.
1277 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
1278 returning MI_CMD_ERROR.
1279 * mi/mi-main.c (mi_error_message): Delete.
1280 (mi_cmd_exec_interrupt):
1281 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
1282 (mi_cmd_thread_info): Call error instead of returning
1283 MI_CMD_ERROR.
1284 (mi_cmd_data_list_register_values): Call error instead of
1285 returning MI_CMD_ERROR. Adapt to new get_register interface.
1286 (get_register): Change return typo to void. Call error instead of
1287 returning MI_CMD_ERROR.
1288 (mi_cmd_data_write_register_values): Call error instead of
1289 returning MI_CMD_ERROR.
1290 (mi_cmd_list_features): Return MI_CMD_DONE.
1291 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
1292 (mi_execute_command): Always print exceptions with -error.
1293
aad4b048
JB
12942008-04-04 Joel Brobecker <[email protected]>
1295
1296 * NEWS: Mention new commands set/show multiple-symbols.
1297
717d2f5a
JB
12982008-04-03 Joel Brobecker <[email protected]>
1299
1300 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
1301 (multiple_symbols_cancel): New constants.
1302 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
1303 (multiple_symbols_select_mode): New function.
1304 (_initialize_symtab): Add new set/show multiple-symbols commands.
1305 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
1306 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
1307 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
1308 setting.
1309 * linespec.c (decode_line_2): Likewise.
1310
f73634e5
DE
13112008-04-03 Doug Evans <[email protected]>
1312
1313 * symtab.h (enum free_code): Delete free_contents, unused.
1314 * symmisc.c (free_symtab_block): Delete.
1315 (free_symtab, case free_code): Delete.
1316
6af87b03
AR
13172008-04-01 Aleksandar Ristovski <[email protected]>
1318
1319 * valops.c (value_cast_structs): New function. Cast related
1320 STRUCT types up/down and return cast value. The body of this
1321 function comes mostly from value_cast_pointers.
1322 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
1323 to value_cast_structs. Now value_cast_pointers needs only create
1324 appropriate reference after using value_cast_structs for actual
1325 casting.
1326 (value_cast): Handle references.
1327
61ad90e1
MK
13282008-04-01 Marc Khouzam <[email protected]>
1329
1330 * MAINTAINERS: Added myself to section Write After Approval.
1331
b7d038ae
DJ
13322008-03-30 Daniel Jacobowitz <[email protected]>
1333
1334 * ia64-tdep.c (examine_prologue): Correct array access.
1335
13362008-03-28 Aleksandar Ristovski <[email protected]>
c836824f
AR
1337
1338 * cp-support.c (first_component_command): Return if no arguments.
1339
df3ac606
CD
13402008-03-28 Carlos O'Donell <[email protected]>
1341
1342 * ser-mingw.c (ser_windows_open): Open requested name.
1343
ca933485
AR
13442008-03-28 Aleksandar Ristovski <[email protected]>
1345
1346 * MAINTAINERS: Added myself.
1347
5f667f2d
PA
13482008-03-28 Pedro Alves <[email protected]>
1349
1350 * target.c (find_default_run_target): Allow a NULL `do_mesg'
1351 parameter. If it is NULL, don't call error.
1352 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
1353 `do_mesg' parameter to find_default_run_target. If no target was
1354 found, return 0.
1355
e741f4d4
DJ
13562008-03-28 Daniel Jacobowitz <[email protected]>
1357
1358 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
1359 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
1360 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
1361 Delete.
1362 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
1363
f66d8205 13642008-03-27 Joel Brobecker <[email protected]>
1365
1366 GDB 6.8 released.
1367
221c031f
UW
13682008-03-27 Ulrich Weigand <[email protected]>
1369
1370 * features/Makefile (%.dat): Set xmltarget to the base filename
1371 of the XML source, without subdirectory.
1372 * regformats/rs6000/powerpc-32.dat: Regenerate.
1373 * regformats/rs6000/powerpc-64.dat: Regenerate.
1374 * regformats/rs6000/powerpc-e500.dat: Regenerate.
1375
40c58d95
MD
13762008-03-27 Markus Deuling <[email protected]>
1377
1378 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
1379 objfile arch.
1380
bb1ec7d2
NR
13812008-03-27 Nick Roberts <[email protected]>
1382
1383 * mi/mi-main.c (enum captured_mi_execute_command_actions):
1384 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
1385
5e2b427d
UW
13862008-03-26 Ulrich Weigand <[email protected]>
1387
1388 * objfiles.h (struct objfile): New GDBARCH member.
1389 (get_objfile_arch): Add prototype.
1390 * objfiles.c: Include "arch-utils.h".
1391 (allocate_objfile): Look up gdbarch associated with bfd.
1392 (get_objfile_arch): New function.
1393 * Makefile (objfiles.o): Update dependencies.
1394
1395 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
1396 by objfile arch.
1397 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
1398 by frame arch.
1399 (locexpr_describe_location): Replace current_gdbarch by
1400 objfile arch.
1401 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
1402 (dwarf2_add_field): Likewise.
1403 (read_tag_pointer_type): Likewise.
1404 (read_base_type): Likewise.
1405 (new_symbol): Likewise.
1406
1407 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
1408 (decode_base_type, decode_function_type): Likewise.
1409 (coff_read_struct_type, coff_read_enum_type): Likewise.
1410 (coff_symtab_read): Replace current_gdbarch by objfile arch.
1411 (decode_base_type): Likewise.
1412 (coff_read_enum_type): Likewise.
1413 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
1414 (coff_read_enum_type): Likewise.
1415
1416 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
1417 (end_psymtab): Likewise.
1418 (process_one_symbol): Likewise.
1419
1420 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
1421 (parse_procedure): Likewise.
1422 (parse_partial_symbols): Likewise.
1423
1424 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
1425
1426 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
1427 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
1428 built-in types.
1429 (read_range_type): Replace current_gdbarch by objfile arch. Replace
1430 static range_index_type by built-in type.
1431 (read_one_struct_field): Replace current_gdbarch by objfile arch.
1432 (read_enum_type): Likewise.
1433
1434 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
1435 objfile arch.
1436
5a413362
VP
14372008-03-26 Vladimir Prus <[email protected]>
1438
1439 * varobj.h (varobj_floating_p): Declare.
1440 * varobj.c (varobj_floating_p): New.
1441 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
1442 '@' as the name, update all floating varobjs.
1443
a5defcdc
VP
14442008-03-26 Vladimir Prus <[email protected]>
1445
1446 * varobj.c (struct varobj_root): Rename use_selected_frame to
1447 floating, and clarify the meaning.
1448 (varobj_create, varobj_update, new_root_variable): Adjust.
1449 (value_of_root): Don't use type_changed as in variable,
1450 adjust comment.
1451 (c_value_of_root): Adjust.
5a413362 1452
403fe197
PA
14532008-03-25 Pedro Alves <[email protected]>
1454
1455 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
1456 gdb's thread list.
1457 (linux_nat_wait): Add main lwp to gdb's thread list.
1458 * linux-thread-db.c (find_new_threads_callback): Also attach to
1459 already listed threads which thread_db didn't know about yet.
1460
710151dd
PA
14612008-03-25 Pedro Alves <[email protected]>
1462
1463 * linux-nat.c (drain_queued_events): Fix comment typo.
1464 (linux_nat_attach): In async mode, don't rely on storing a pending
1465 status. Instead place the wait status on the pipe.
1466 (linux_nat_resume): Remove unreacheable shortcut code in async
1467 mode.
1468 (stop_wait_callback): In async mode, don't store pending status.
1469 Instead, cancel breakpoints or resend the signal appropriatelly.
1470 (cancel_breakpoint): New, refactored from
1471 cancel_breakpoints_callback.
1472 (cancel_breakpoints_callback): Call cancel_breakpoint.
1473 (pipe_to_local_event_queue): Remove special token processing.
1474 (linux_nat_wait): Issue an internal error if a pending status is
1475 found in async mode.
1476
807bddf3
DJ
14772008-03-24 Daniel Jacobowitz <[email protected]>
1478
1479 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
1480
c5b48eac
VP
14812008-03-24 Nick Roberts <[email protected]>
1482 Vladimir Prus <[email protected]>
1483
1484 * varobj.c (struct varobj_root): New component thread_id.
1485 (varobj_get_thread_id, check_scope): New functions.
1486 (c_value_of_root): Use check_scope. Switch to the
1487 proper thread if necessary.
1488
1489 * varobj.h (varobj_get_thread_id): New extern.
1490
1491 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
1492
12f4afab
DJ
14932008-03-23 Daniel Jacobowitz <[email protected]>
1494
1495 PR gdb/544
1496 * top.c: Revert 2008-03-21 changes.
1497
6208b47d
VP
14982008-03-23 Vladimir Prus <[email protected]>
1499
1500 * thread.c (make_cleanup_restore_current_thread): Make it
1501 globally visible.
1502 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
1503 * varobj.c (varobj_update): Don't save/restore frame.
1504 (c_value_of_root): Save/restore thread and frame here,
1505 using make_cleanup_restore_current_thread.
1506 * Makefile.in: Update dependecies.
1507
44a67aa7
VP
15082008-03-23 Vladimir Prus <[email protected]>
1509
1510 * varobj.c (struct varobj_root): Clarify
1511 comment on the frame field.
1512 (varobj_create): Don't set frame if we have no
1513 block.
1514
b562a0cb
DJ
15152008-03-21 Daniel Jacobowitz <[email protected]>
1516
1517 PR gdb/544
1518 Suggested by Jan Kratochvil:
1519 * top.c (gdb_rl_operate_and_get_next_completion): Call
1520 rl_redisplay_function.
1521 (gdb_rl_redisplay): New.
1522 (init_main): Set rl_redisplay_function.
1523
ed1bd5f5
JB
15242008-03-21 Thomas Mittelstaedt <[email protected]> (tiny change)
1525
1526 * aix-thread.c (pdc_read_regs): Fix compiler warning.
1527 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
1528 (store_regs_kernel_thread): Likewise.
1529
b84876c2
PA
15302008-03-21 Pedro Alves <[email protected]>
1531
1532 Linux native async support.
1533
1534 * target.h (struct target_ops): Delete to_async_mask_value and add
1535 to_async_mask.
1536 (target_is_async_p, target_async): Formatting.
1537 (target_async_mask_value): Delete.
1538 (target_async_mask): Delete function declaration, and add new
1539 target macro with the same name.
1540
1541 * target.c (update_current_target): Replace to_async_mask_value by
1542 to_async_mask. Default to_async_mask to return_one.
1543 (target_async_mask): Delete.
1544 (find_default_can_async_p, find_default_is_async_p): New.
1545 (init_dummy_target): register find_default_can_async_p and
1546 find_default_is_async_p on the dummy target.
1547
1548 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
1549 (debug_linux_nat_async): New global.
1550 (show_debug_linux_nat_async): New function.
1551 (linux_nat_async_enabled, linux_nat_async_mask_value)
1552 (linux_nat_event_pipe, linux_nat_num_queued_events)
1553 (linux_nat_async_events_enabled): New globals.
1554 (struct waitpid_result): New struct.
1555 (waitpid_queue): New global.
1556 (queued_waitpid, push_waitpid, drain_queued_events): New.
1557 (my_waitpid): Call queued_waitpid.
1558 (linux_child_follow_fork): Disable async events during the call.
1559 (blocked_mask): Delete.
1560 (sync_sigchld_action, async_sigchld_action): New globals.
1561 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
1562 async mode, block events during the call.
1563 (linux_nat_create_inferior): New.
1564 (linux_nat_attach): In sync mode, restore the mask states. In
1565 async mode, wake the event loop immediatelly.
1566 (detach_callback): Drain all queued events of the lwp we're
1567 detaching from.
1568 (linux_nat_detach): Block async mode, and drain events of the main
1569 process.
1570 (linux_nat_resume): If in async mode, mask async events during the
1571 call. If short circuiting, force event loop to wake up. If
1572 resuming, set target_executing, and register target events in the
1573 event loop.
1574 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
1575 (linux_nat_wait): In async mode, block events during the call.
1576 Only enable/disable passing SIGINT to the inferior in sync mode.
1577 Get events from local waitpid queue. If no interesting events was
1578 found, return to events loop. Reregister target events in the
1579 event loop on exit. In sync mode, no need to reblock SIGCHLD.
1580 (linux_nat_kill): Disable events on entry.
1581 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
1582 here. Detach async mode from the event loop if there are no more
1583 forks available, otherwise leave it on.
1584 (sigchld_handler): Assure this is called only in sync mode.
1585 (linux_async_permitted, linux_async_permitted_1): New globals.
1586 (set_maintenance_linux_async_permitted)
1587 (show_maintenance_linux_async_permitted): New functions.
1588 (linux_nat_is_async_p, linux_nat_can_async_p)
1589 (linux_nat_async_mask): New.
1590 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
1591 (get_pending_events, async_sigchld_handler): New.
1592 (linux_nat_async_events): New.
1593 (async_terminal_is_ours): New global.
1594 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
1595 (async_client_callback, async_client_context): New.
1596 (linux_nat_async_file_handler, linux_nat_async)
1597 (linux_nat_disable_async, linux_nat_enable_async): New.
1598 (linux_nat_add_target): Register linux_nat_create_inferior,
1599 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
1600 linux_nat_async_mask, linux_nat_terminal_inferior and
1601 linux_nat_terminal_ours.
1602 (_initialize_linux_nat): Remove local action variable, and update
1603 code that used it to use sync_sigchld_action. Add new
1604 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
1605 set/show command in the maintenance class. Add new "linux-async"
1606 maintenance set/show command. Block SIGCHLD by default. Setup
1607 async_sichld_action, and sync_sigchld_action. Install the default
1608 async mode.
1609 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
1610 the cancel signals.
1611
1612 * linux-thread-db.c (re_check_for_thread_db): New.
1613 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
1614 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
1615 (thread_db_async_mask): New.
1616 (init_thread_db_ops): Register thread_db_can_async_p,
1617 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
1618
1619 * remote.c (remote_async_mask_value): New.
1620 (remote_return_zero): New.
1621 (init_remote_ops): Register remote_return_zero as callbacks of
1622 to_can_async_p and to_is_async_p.
1623 (remote_can_async_p, remote_is_async_p, remote_async): Update to
1624 use remote_async_mask_value.
1625 (remote_async_mask): New.
1626 (init_remote_async_ops): Remove to_async_mask_value setting and
1627 register remote_async_mask as to_async_mask callback in
1628 remote_async_ops.
1629
1630 * Makefile.in (linux-nat.o): Update.
1631
17faa917
DJ
16322008-03-21 Daniel Jacobowitz <[email protected]>
1633
1634 * gdbthread.h (add_thread_with_info): New.
1635 * linux-thread-db.c: Add some documentation.
1636 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
1637 (struct private_thread_info): Remove th_valid and ti_valid.
1638 Replace ti with tid.
1639 (thread_get_info_callback): Do not add TID to the new ptid. Do
1640 not cache th or ti.
1641 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
1642 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
1643 new PTID.
1644 (attach_thread): Handle an already-existing thread. Use
1645 add_thread_with_info. Cache the th and tid.
1646 (detach_thread): Verify that private was set. Remove verbose
1647 argument and printing. Update caller.
1648 (thread_db_detach): Do not adjust inferior_ptid.
1649 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
1650 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
1651 (thread_db_wait): Do not use lwp_from_thread.
1652 (thread_db_pid_to_str): Use the cached TID.
1653 (thread_db_extra_thread_info): Check that private is set.
1654 (same_ptid_callback): Delete.
1655 (thread_db_get_thread_local_address): Do not use it or check
1656 is_thread. Check that private is set. Assume that the thread
1657 handle is already cached.
1658 (init_thread_db_ops): Remove to_resume and to_kill.
1659 * thread.c (add_thread_with_info): New.
1660 (add_thread): Use it.
1661 * linux-nat.c (find_thread_from_lwp): Delete.
1662 (exit_lwp): Do not use it. Check print_thread_events. Print before
1663 deleting the thread.
1664 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
1665 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
1666 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
1667 printf_unfiltered for thread exits.
1668 * procfs.c (procfs_wait): Likewise.
1669
6214f497
DJ
16702008-03-21 Chris Demetriou <[email protected]>
1671
1672 * symtab.c (rbreak_command): Quote symbol name before passing
1673 it to break_command.
1674
63092375
DJ
16752008-03-21 Daniel Jacobowitz <[email protected]>
1676
1677 * eval.c (evaluate_subexp_for_address): Clarify error message.
1678 Use value_must_coerce_to_target.
1679 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
1680 * valops.c (value_assign): Call value_coerce_to_target when
1681 assigning to anything but internalvars. Leave GDB-side arrays
1682 as arrays when assigning to internalvars.
1683 (value_must_coerce_to_target, value_coerce_to_target): New.
1684 (value_coerce_array, value_addr): Call value_coerce_to_target.
1685 (value_array): Create the array in GDB's memory instead of
1686 the inferior's.
1687 * value.h (value_must_coerce_to_target, value_coerce_to_target):
1688 Declare.
1689
b21991b0
DJ
16902008-03-21 Daniel Jacobowitz <[email protected]>
1691
1692 * top.c (quit_confirm): Warn that we will kill the program.
1693
49a834f9
PA
16942008-03-19 Pedro Alves <[email protected]>
1695
1696 * inflow.c (terminal_ours_1): Guard access to
1697 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
1698
ae0d2f24
UW
16992008-03-18 Ulrich Weigand <[email protected]>
1700 Jim Blandy <[email protected]>
1701 Daniel Jacobowitz <[email protected]>
1702
1703 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
1704 (dwarf2_read_address): Update prototype.
1705
1706 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
1707 (signed_address_type): Likewise.
1708 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
1709 (execute_stack_op): Update calls to unsigned_address_type,
1710 signed_address_type and dwarf2_read_address. Fix implementation
1711 of DW_OP_deref_size.
1712
1713 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
1714 (dwarf2_per_cu_addr_size): Likewise.
1715 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
1716 (struct dwarf2_loclist_baton): Likewise.
1717
1718 * dwarf2loc.c (find_location_expression): Update calls to
1719 dwarf2_read_address. Use dwarf2_per_cu_objfile and
1720 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
1721 (locexpr_describe_location): Likewise.
1722 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
1723 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
1724 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
1725 to dwarf2_per_cu_addr_size (per_cu).
1726 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
1727 (loclist_read_variable): Likewise.
1728 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
1729
1730 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
1731 instead of baton->objfile.
1732 (dwarf2_per_cu_obfile): New function.
1733 (dwarf2_per_cu_addr_size): Likewise.
1734
1735 * dwarf2-frame.c (struct comp_unit): Move higher.
1736 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
1737 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
1738 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
1739 parameter by using fde->eh_frame_p. Use read_encoded_value
1740 to implement DW_CFA_set_loc.
1741 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
1742 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
1743 execute_stack_op and execute_cfa_program.
1744 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
1745 (size_of_encoded_value): Remove.
1746 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
1747 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
1748 (add_cie): Set cie->unit backlink.
1749 (decode_frame_entry_1): Set cie->addr_size. Update calls to
1750 read_encoded_value.
1751 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
1752
1c8201d1
MD
17532008-03-17 Markus Deuling <[email protected]>
1754
1755 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
1756 gdbarch_bfd_arch_info.
1757
46bba1ef
JB
17582008-03-17 Joel Brobecker <[email protected]>
1759
1760 * aix-thread.c (pdc_read_regs): Minor reformatting.
1761
0bcd3e20
VP
17622008-03-17 Vladimir Prus <[email protected]>
1763
1764 * thread.c (print_thread_info): Don't insist
1765 on having current thread if there are no
1766 threads at all.
1767
9356cf8d
PA
17682008-03-17 Pedro Alves <[email protected]>
1769
1770 * infcmd.c (attach_command_post_wait)
1771 (attach_command_continuation): New.
1772 (attach_command): Support background async execution, and async
1773 execution in synchronous mode.
1774
5c3ce3f7
DJ
17752008-03-17 Daniel Jacobowitz <[email protected]>
1776
1777 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
1778 * symmisc.c (dump_symtab_1): Likewise.
1779 * wrapper.c (gdb_value_struct_elt): Likewise.
1780
fa2c6a57
PA
17812008-03-17 Pedro Alves <[email protected]>
1782
1783 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
1784
02f3fc28
PA
17852008-03-17 Pedro Alves <[email protected]>
1786
1787 * linux-nat.c (linux_nat_filter_event): New, refactored from
1788 linux_nat_wait.
1789 (linux_nat_wait): Call linux_nat_filter_event.
1790
2f77b315
UW
17912008-03-17 Ulrich Weigand <[email protected]>
1792
1793 * top.c (execute_command): Fix uninitialized variable error.
1794
f01be29b
NH
17952008-03-16 Nick Hudson <[email protected]>
1796
1797 * Makefile.in (amd64nbsd-nat.o): New dependency.
1798 * amd64nbsd-nat.c: Include "nbsd-nat.h".
1799 (_initialize_amd64nbsd_nat): Update target vector to use
1800 nbsd_pid_to_exec_file.
1801 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
1802
6cf32704
VP
18032008-03-15 Vladimir Prus <[email protected]>
1804
1805 Remove ignoring leading exec events code.
1806 * fork-child.c (startup_inferior): Do not set
1807 inferior_ignoring_leading_exec_events.
1808 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
1809 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
1810 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
1811 (handle_inferior_event): Remove code for ignoring leading exec
1812 events.
1813 * target.c (update_current_target): Do not inherit, or default,
1814 to_reported_exec_events_per_exec_call.
1815 (debug_to_reported_exec_events_per_exec_call): Remove.
1816 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
1817 * target.h (target_reported_exec_events_per_exec_call): Remove.
1818 (struct target): Remove the to_reported_exec_events_per_exec_call
1819 field.
1820
8e8901c5
VP
18212008-03-15 Vladimir Prus <[email protected]>
1822
1823 Implement -thread-info.
1824 * gdbthread.h (print_thread_info): Declare.
1825
1826 * thread.c (print_thread_info): New, extracted
1827 from info_threads_command and adjusted to
1828 work for CLI and MI.
1829 (info_threads_command): Use print_thread_info.
1830 * Makefile.in: Update dependencies.
1831
1832 * mi/mi-cmds.c (mi_cmds): Specify a handler
1833 for -thread-info.
1834 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
1835 * mi/mi-main.c (mi_cmd_thread_info): New.
1836 (mi_cmd_list_features): Include 'thread-info'.
1837
7d1e6fb8
KB
18382008-03-14 Kevin Buettner <[email protected]>
1839
1840 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
1841 to decide whether to match instruction patterns using "sw" and "sd".
1842
89113898
PA
18432008-03-14 Pedro Alves <[email protected]>
1844
1845 * infcmd.c (jump_command): Postpone disabling stdin until after
1846 the possible query.
1847
64a0ac84
PA
18482008-03-14 Pedro Alves <[email protected]>
1849
1850 * inflow.c (gdb_getpgrp): New.
1851 (gdb_has_a_terminal): Use get_getpgrp.
1852 (terminal_ours_1): If attach_flag is set, don't refetch
1853 inferior_process_group.
1854
1fddbabb
PA
18552008-03-14 Pedro Alves <[email protected]>
1856
1857 * features/library-list.dtd: Allow "section" elements as children
1858 of "library". Add "section" element and describe its attributes.
1859
1860 * solib-target.c (struct lm_info): Add section_bases member.
1861 (library_list_start_segment): Error out if seen a section element.
1862 (library_list_start_section): New.
1863 (library_list_end_library): New.
1864 (solib_target_free_library_list): Free section_bases.
1865 (section_attributes): New.
1866 (library_children): Make "segment" optional. Add "section" child.
1867 (library_list_children): Register library_list_end_library.
1868 (solib_target_relocate_section_addresses): Handle section bases.
1869
1870 * NEWS: Mention new qXfer:libraries:read section offsets support.
1871
712af3be
VP
18722008-03-14 Vladimir Prus <[email protected]>
1873
1874 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
1875 (make_exec_error_cleanup): Remove declarations.
1876 * utils.c (exec_error_cleanup_chain): Remove.
1877 (do_exec_error_cleanups, discard_exec_error_cleanups)
1878 (make_exec_error_cleanup): Remove.
1879 * event-loop.c (start_event_loop): Adjust call to
1880 async_enable_stdin.
1881 * event-top.c (async_enable_stdin): Remove the paramater dummy.
1882 (async_disable_stdin): Don't register async_enable_stdin via
1883 cleanup.
1884 * inf-loop.c (inferior_event_handler): Don't
1885 call do_exec_error_cleanups. Call async_enable_stdin instead.
1886 * event-loop.c (start_event_loop): Adjust call to
1887 async_enable_stdin.
1888 * tui/tui-interp.c (tui_command_loop): Adjust call to
1889 async_enable_stdin.
1890
32c1e744
VP
18912008-03-14 Vladimir Prus <[email protected]>
1892
1893 Async mode fixes.
1894 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
1895 * breakpoint.c (bpstat_do_actions): In async mode,
1896 don't jump to top expecting stop_bpstat to be already
1897 updated.
1898 * event-loop.c (start_event_loop): Call async_enable_stdin
1899 on exception.
1900 * event-top.c (async_enable_stdin): Do nothing if sync_execution
1901 is not set.
1902 (command_handler): Do not setup continuation here.
1903 (command_line_handler_continuation): Move to...
1904 * top.c (command_line_handler_continuation): ... here.
1905 (execute_command): In async mode, register continuation.
1906 Don't check frame's language in running in async mode.
1907 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
1908 * inf-loop.c (complete_execution): Inline into...
1909 (inferior_event_handler): ... here. Clear target_executing before
1910 doing any cleanups. Don't try to show prompt if the target was
1911 resumed.
1912 * infcmd.c (signal_command): Add support for async mode.
1913 (finish_command): Only add continuation if the target was
1914 successfully resumed.
1915 * remote.c (init_async_opts): Register to_get_thread_local_address
1916 handler.
1917 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
1918 with sync_execution.
1919 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
1920 on exception.
1921
c04ea773
DJ
19222008-03-14 Daniel Jacobowitz <[email protected]>
1923
1924 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
1925 * exec.c (exec_bfd_mtime): Define.
1926 (exec_close): Clear it.
1927 (exec_file_attach): Set it.
1928 * gdbcore.h (exec_bfd_mtime): Declare.
1929 * source.c (find_source_lines): Do not use bfd_get_mtime.
1930
952dc227
VP
19312008-03-14 Vladimir Prus <[email protected]>
1932
1933 * top.c (simplified_command_loop): Remove.
1934
4cf46804
VP
19352008-03-14 Vladimir Prus <[email protected]>
1936
1937 Remove unused remote.c hooks.
1938 * remote.c (deprecated_target_resume_hook)
1939 (deprecated_target_wait_loop_hook): Remove.
1940 (remote_resume): Do not call deprecated_target_resume_hook.
1941 (remote_wait): Do not call deprecated_target_wait_loop_hook.
1942 (remote_async_wait): Likewise.
1943
683f2885
VP
19442008-03-14 Vladimir Prus <[email protected]>
1945
1946 Implement MI notification for new threads.
1947 * doc/observer.texi (new_thread): Document.
1948 * observer.sh: Forward declare struct thread_info.
1949 * thread.c (add_thread): Notify observer.
1950
1951 * interps.h (interp_init_ftype): New parameter
1952 top_level.
1953 (interp_set): Likewise.
1954 (top_level_interpreter_data): Declare.
1955 * interps.c (interp_set): New parameter top_level.
1956 Pass it to interpreter's init function. Remember
1957 top level interpreter.
1958 (interpreter_exec_cmd): Adjust.
1959 (top_level_interpreter_data): New.
1960 * main.c (captured_main): Pass 1 for top_level
1961 parameter of interp_set.
1962 * cli/cli-interp.c (cli_interpreter_init): New
1963 parameter top_level.
1964 * tui/tui-interp.c (tui_init): New parameter top_level.
1965
1966 * mi/mi-interp.c (mi_new_thread): New.
1967 (mi_interpreter_init): If top level, register
1968 observer for new threads.
1969
1970 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
1971
ff9b3928
PA
19722008-03-14 Pedro Alves <[email protected]>
1973
1974 * top.c (execute_command): Disable break and stop
1975 commands in async mode.
1976
b18392ef
PA
19772008-03-14 Pedro Alves <[email protected]>
1978
1979 revert:
1980 2008-03-14 Pedro Alves <[email protected]>
1981 * inf-loop.c (inferior_event_handler): Don't include remote.h.
1982 Call target_stop in the INF_QUIT_REQ case.
1983 * Makefile.in (inf-loop.o): Update.
1984
0aca9f07
PA
19852008-03-14 Pedro Alves <[email protected]>
1986
1987 * inf-loop.c (inferior_event_handler): Don't include remote.h.
1988 Call target_stop in the INF_QUIT_REQ case.
1989 * Makefile.in (inf-loop.o): Update.
1990
0b4e556c
PA
19912008-03-14 Pedro Alves <[email protected]>
1992
1993 * top.c (execute_command): Enable break, info and interrupt
1994 commands in async mode.
1995
8defab1a
DJ
19962008-03-13 Vladimir Prus <[email protected]>
1997 Daniel Jacobowitz <[email protected]>
1998
1999 * breakpoint.h (breakpoint_restore_shadows): New
2000 declaration.
2001 * breakpoint.c (breakpoint_restore_shadows): New.
2002 (read_memory_nobpt): Delete.
2003 * gdbcore.h (read_memory_nobpt): Delete declaration.
2004 * target.c (memory_xfer_partial): Call
2005 breakpoint_restore_shadows.
2006 (restore_show_memory_breakpoints)
2007 (make_show_memory_beakpoints_cleanup): New.
2008 (show_memory_breakpoints): New.
2009 * target.h (make_show_memory_beakpoints_cleanup): Declare.
2010 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
2011 Make sure we see memory breakpoints when checking if
2012 breakpoint is still there.
2013 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
2014 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
2015 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
2016 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
2017
fd532e2e
PA
20182008-03-12 Pedro Alves <[email protected]>
2019
2020 * thread.c (add_thread): Use printf_unfiltered to print.
2021
f749779f 20222008-03-12 Joel Brobecker <[email protected]>
965b60ee
JB
2023
2024 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
2025 that is true only on x86-solaris and x86_64-solaris.
2026 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
2027 with proc_get_LDT_entry.
2028
20292008-03-12 Thiago Jung Bauermann <[email protected]>
83116857
TJB
2030
2031 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
2032 * config.in, configure: Regenerate.
2033 * fork-child.c (fork_inferior): Call create_tty_session.
2034 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
2035 (create_tty_session): New function.
2036 * terminal.h: Declare create_tty_session.
2037
4fbb74a6
AM
20382008-03-12 Alan Modra <[email protected]>
2039
2040 PR 5900
2041 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
2042 * mipsread.c: Include elf/internal.h.
2043 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
2044 to internal range.
2045
20a6ec49
MD
20462008-03-11 Markus Deuling <[email protected]>
2047
2048 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
2049 to get at the current architecture and at the target specific vector.
2050 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
2051 remove define of I387_ST0_REGNUM.
2052
2053 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
2054
2055 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
2056 get at the current architecture
2057 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
2058 parameter.
2059
2060 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
2061 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
2062
2063 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
2064 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
2065 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
2066
2067 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
2068 at the target specific vector.
2069
2070 (i386_get_longjmp_target): Use get_frame_arch to get at the current
2071 architecture. Use gdbarch_tdep to get at the target specific vector.
2072
2073 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
2074 update caller. Use gdbarch_tdep to get at the target specific vector.
2075
2076 (i386_register_to_value: Use get_frame_arch to get at the current
2077 architecture.
2078
2079 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
2080 parameter.
2081
2082 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
2083 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
2084 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
2085 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
2086
2087 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
2088 undef's.
2089
2090 (i387_convert_register_p, i387_register_to_value,
2091 i387_value_to_register): Update call for i386_fp_regnum_p.
2092
2093 * i387-tdep.h: Remove comment.
2094 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
2095 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
2096 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
2097 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
2098 I387_MXCSR_REGNUM): Add target specific vector as parameter.
2099
ccd213ac
DJ
21002008-03-10 Daniel Jacobowitz <[email protected]>
2101
2102 * Makefile.in (fork-child.o): Update.
2103 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
2104 argument. Gather all gdbserver features together.
2105 * fork-child.c (exec_wrapper): New variable.
2106 (fork_inferior): Use it.
2107 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
2108 (unset_exec_wrapper_command, _initialize_fork_child): New.
2109
21102008-03-10 Hidetaka Takano <[email protected]>
80618b99
MS
2111
2112 * source.c (directory_command): Modify the determination of
2113 condition of terminal "from_tty".
2114
22566fbd
DJ
21152008-03-10 Matt Rice <[email protected]>
2116
2117 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
2118
9971ac47
UW
21192008-03-10 Hidetaka Takano <[email protected]>
2120
2121 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
2122 of the data passing to strtoulst function.
2123 (info_spu_signal_command): Likewise.
2124
835670cf
VP
21252008-03-08 Vladimir Prus <[email protected]>
2126
2127 * mi/mi-interp.c (mi_command_loop): Remove
2128 commented-out code.
2129
be86555c
JB
21302008-03-07 Joel Brobecker <[email protected]>
2131
2132 * remote.c (extended_remote_attach_1): Make local variable pid an int
2133 instead of a pid_t.
2134
4d7b2d5b
JB
21352008-03-07 Joel Brobecker <[email protected]>
2136
2137 * solib-svr4.c (svr4_same_1): New function, originally extracted
2138 from svr4_same and expanded to handle the sparc64 case.
2139 (svr4_same): Move up and reimplement using svr4_same_1.
2140 (enable_break): Use svr4_same_1 to do shared library name comparisons.
2141
61fed90e
RR
21422008-03-07 Ramana Radhakrishnan <[email protected]>
2143
2144 * MAINTAINERS: Move self to Paper trail.
2145
b803fb0f
DJ
21462008-03-05 Daniel Jacobowitz <[email protected]>
2147
2148 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
2149 * event-loop.c (call_async_signal_handler): New.
2150 * event-loop.h (call_async_signal_handler)
2151 (gdb_call_async_signal_handler): Declare.
2152 (mark_async_signal_handler): Add comments.
2153 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
2154 * mingw-hdep.c (sigint_event, sigint_handler): New.
2155 (gdb_select): Use them. Wait for the readline signal handler
2156 to finish.
2157 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
2158 * posix-hdep.c (gdb_call_async_signal_handler): New function.
2159 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
2160 New.
2161 (remote_fileio_ctrl_c_signal_handler): Use
2162 gdb_call_async_signal_handler.
2163 (initialize_remote_fileio): Initialize sigint_fileio_token.
2164 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
2165 not initialize tokens here.
2166 (handle_remote_sigint_twice): Likewise. Reinstall
2167 handle_remote_sigint.
2168 (async_remote_interrupt_twice): Just call interrupt_query.
2169 (cleanup_sigint_signal_handler): Do not delete tokens.
2170 (remote_interrupt, remote_interrupt_twice): Use
2171 gdb_call_async_signal_handler.
2172 (interrupt_query): Reinstall the default signal handler.
2173 (_initialize_remote): Initialize tokens here.
2174
8f4d54ed
JB
21752008-03-04 Joel Brobecker <[email protected]>
2176
2177 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
2178 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
2179 Change the type of the lr register to code_ptr.
2180 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2181 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2182 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2183 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2184 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2185 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2186 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
2187
95ece428
JW
21882008-03-03 James E. Wilson <[email protected]>
2189
2190 * MAINTAINERS: Update my email address.
2191
686a5eed
KS
21922008-03-03 Keith Seitz <[email protected]>
2193
2194 From Dave Murphy <[email protected]>:
2195 * configure.ac: Set tcl configdir to win under mingw.
2196 * configure: Regenerate.
2197
fa4727a6
DJ
21982008-03-03 Daniel Jacobowitz <[email protected]>
2199
2200 * breakpoint.c (fetch_watchpoint_value): New function.
2201 (update_watchpoint): Set and clear val_valid. Use
2202 fetch_watchpoint_value. Handle unreadable values on the
2203 value chain. Correct check for user-requested array watchpoints.
2204 (breakpoint_init_inferior): Clear val_valid.
2205 (watchpoint_value_print): New function.
2206 (print_it_typical): Use it. Do not free or clear old_val. Print
2207 watchpoints even if old_val == NULL.
2208 (watchpoint_check): Use fetch_watchpoint_value. Check for values
2209 becoming readable or unreadable.
2210 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
2211 (do_enable_watchpoint): Likewise.
2212 * breakpoint.h (struct breakpoint): Update comment for val. Add
2213 val_valid.
2214 * NEWS: Mention watchpoints on inaccessible memory.
2215
c03374d5
DJ
22162007-02-29 Daniel Jacobowitz <[email protected]>
2217
2218 * Makefile.in (i386-nat.o): Update.
2219 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
2220 i386_use_watchpoints.
2221 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
2222 i386_use_watchpoints.
2223 * i386-nat.c (i386_stopped_data_address): Take two arguments.
2224 (i386_stopped_by_watchpoint): Update call.
2225 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
2226 * config/i386/nm-i386.h: Conditionalize definitions on
2227 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
2228 (i386_use_watchpoints): Declare.
2229 (i386_stopped_data_address): Update.
2230 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
2231 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
2232
c24d7425 22332008-02-29 Joel Brobecker <[email protected]>
2234
2235 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
2236 * version.in: Bump version to 6.8.50.20080229-cvs.
2237
a7dfd010
MD
22382008-02-28 Markus Deuling <[email protected]>
2239
2240 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
2241 properly.
2242
258c00cc
TT
22432008-02-28 Tom Tromey <[email protected]>
2244
2245 * infcmd.c (notice_args_read): Print result of get_inferior_args.
2246
8edfe269
DJ
22472008-02-28 Daniel Jacobowitz <[email protected]>
2248
2249 * infcmd.c (kill_if_already_running): Make static. Use
2250 target_require_runnable.
2251 * target.c (target_require_runnable): New.
2252 * target.h (target_require_runnable): Declare.
2253
0d6ba1b1
DJ
22542008-02-28 Daniel Jacobowitz <[email protected]>
2255
2256 * frame.c (reinit_frame_cache): Only annotate if frames were
2257 previously valid.
2258
6fe305f7
UW
22592008-02-28 Ulrich Weigand <[email protected]>
2260
2261 * regformats/reg-ppc.dat: Rename "ps" to "msr".
2262 * regformats/reg-ppc64.dat: Likewise.
2263
9b4b61c8
UW
22642008-02-28 Ulrich Weigand <[email protected]>
2265
2266 * features/Makefile (%.dat): Emit xmltarget statement.
2267
2268 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
2269 Generate code to set gdbserver_xmltarget in init_registers_${name}.
2270
2271 * regformats/arm-with-iwmmxt.dat: Regenerate.
2272 * regformats/mips64-linux.dat: Regenerate.
2273 * regformats/mips-linux.dat: Regenerate.
2274 * regformats/rs6000/powerpc-32.dat: Regenerate.
2275 * regformats/rs6000/powerpc-64.dat: Regenerate.
2276 * regformats/rs6000/powerpc-e500.dat: Regenerate.
2277
2278 * regformats/reg-arm.dat: Add xmlarch statement.
2279 * regformats/reg-i386.dat: Likewise.
2280 * regformats/reg-i386-linux.dat: Likewise.
2281 * regformats/reg-x86-64-linux.dat: Likewise.
2282 * regformats/reg-spu.dat: Likewise.
2283
20b4711e
DJ
22842008-02-27 Daniel Jacobowitz <[email protected]>
2285
2286 * remote.c (remote_wait, remote_async_wait): Stop if we receive
2287 an error.
2288
1843f87b
DJ
22892008-02-27 Daniel Jacobowitz <[email protected]>
2290
2291 * utils.c (debug_timestamp): New.
2292 (vfprintf_unfiltered): Print timestamps if requested.
2293 (show_debug_timestamp): New.
2294 (initialize_utils): Register "set debug timestamp".
2295 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
2296
6a048695
JB
22972008-02-27 Joel Brobecker <[email protected]>
2298
2299 * breakpoint.c (skip_prologue_sal): New function.
2300 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
2301 computed from a line number.
2302
0b998f49
JB
23032008-02-27 Joel Brobecker <[email protected]>
2304
2305 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
2306 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
2307 Set PC register type to "code_ptr".
2308 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2309 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2310 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2311 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2312 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2313 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2314 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
2315 Regenerate.
2316
d05b4ac3
UW
23172008-02-27 Ulrich Weigand <[email protected]>
2318
2319 * regformats/regdat.sh: Rename init_registers function in
2320 generated file to init_registers_${name}.
2321
2322 * regformats/reg-crisv32.dat: Set "name" to crisv32.
2323 * regformats/reg-ppc64.dat: Set "name" to ppc64.
2324 * regformats/reg-s390x.dat: Set "name" to s390x.
2325
a5d9d57d
DJ
23262008-02-26 Greg Law <[email protected]>
2327
2328 * regcache.c (registers_changed): Call reinit_frame_cache.
2329
e25c958c
DJ
23302008-02-26 Daniel Jacobowitz <[email protected]>
2331
2332 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
2333 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
2334 and svr4_fetch_objfile_link_map.
2335 * Makefile.in (sh-linux-tdep.o): Update.
2336
5daa78cc
TJB
23372008-02-26 Thiago Jung Bauermann <[email protected]>
2338
2339 * amd64-tdep.c (amd64_classify): Add support for decimal float
2340 types.
2341 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
2342 use the struct return convention.
2343
54e52265
VP
23442008-02-26 Nick Roberts <[email protected]>
2345
2346 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
2347 to old format. Discard breakpoint address if shared library is
2348 unloaded.
2349 (breakpoint_1): Adjust formatting of table header accordingly.
2350
d8f2712d
VP
23512008-02-25 Vladimir Prus <[email protected]>
2352
2353 * remote.c (remote_get_threadlist): If the response
2354 is empty, don't try to parse it.
2355
05ce04a4
VP
23562008-02-23 Vladimir Prus <[email protected]>
2357
2358 Unbreak 'target async'.
2359 * serial.c (serial_async): Set the
2360 handler function before enabling async
2361 mode.
2362
b36ec657
DJ
23632008-02-22 Daniel Jacobowitz <[email protected]>
2364
2365 * solib-svr4.c (enable_break): Convert r_brk to a code address.
2366
df7df359
PA
23672008-02-21 Pedro Alves <[email protected]>
2368
2369 * remote.c (extended_remote_attach_1): Set attach_flag.
2370 (extended_remote_create_inferior_1): Clear attach_flag.
2371
7cd25cfc
DJ
23722008-02-20 Daniel Jacobowitz <[email protected]>
2373
2374 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
2375 r_brk_offset.
2376 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
2377 * solib-svr4.c (solib_svr4_r_brk): New.
2378 (open_symbol_file_object, svr4_current_sos): Always check the
2379 debug base.
2380 (svr4_fetch_objfile_link_map): Do not set debug_base.
2381 (enable_break): Use r_brk if it is set.
2382 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
2383 (svr4_lp64_fetch_link_map_offsets): Likewise.
2384 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
2385
07ea644b
MD
23862008-02-20 Markus Deuling <[email protected]>
2387 Mark Kettenis <[email protected]>
2388
2389 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
2390 trad_frame_saved_reg.
2391 (trad-frame.h): New include.
2392
2393 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
2394 instead of frame_obstack_zalloc.
2395 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
2396
2397 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
2398
40887e1a
MD
23992008-02-20 Markus Deuling <[email protected]>
2400
2401 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
2402 from disassemble_info instead of gdbarch_byte_order.
2403
2404 * mips-tdep.c (gdb_print_insn_mips): Likewise.
2405 * arm-tdep.c (gdb_print_insn_arm): Likewise.
2406
ae4b2284
MD
24072008-02-20 Markus Deuling <[email protected]>
2408
2409 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
2410 gdbarch as parameter.
2411
2412 * gdbarch.{c,h}: Regenerate.
2413
2414 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
2415 parameter.
2416 * mem-break.c (default_memory_insert_breakpoint)
2417 (default_memory_remove_breakpoint): Likewise.
2418 * target.h (default_memory_remove_breakpoint)
2419 (default_memory_insert_breakpoint): Likewise.
2420
2421 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
2422 parameter. Replace current_gdbarch by gdbarch.
2423 * m32r-tdep.c (m32r_memory_insert_breakpoint)
2424 (m32r_memory_remove_breakpoint): Likewise.
2425
d9bf65d5
DJ
24262008-02-19 Daniel Jacobowitz <[email protected]>
2427
2428 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
2429
b93b6ca7
JB
24302008-02-19 Joel Brobecker <[email protected]>
2431
2432 * NEWS: Add entry describing Add support improvements.
2433
4ed226fe
MD
24342008-02-18 Markus Deuling <[email protected]>
2435
2436 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
2437 M68K_FP0_REGNUM.
2438
caaa79ad
MD
24392008-02-18 Markus Deuling <[email protected]>
2440
2441 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
2442 register_offset_hack anymore.
2443
2444 * regcache.{c,h} (register_offset_hack): Remove.
2445
e38c262f
MD
24462008-02-18 Markus Deuling <[email protected]>
2447
2448 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
2449
2450 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
2451 current_gdbarch by gdbarch.
2452 (hppa64_hpux_find_global_pointer): Likewise.
2453 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
2454 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
2455 find_global_pointer.
2456
2457 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
2458 parameter.
2459 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
2460
2461 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
2462 of gdbarch_num_regs.
2463
2464 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
2465 replace current_gdbarch by gdbarch.
2466 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
2467
206988c4
MD
24682008-02-18 Markus Deuling <[email protected]>
2469
2470 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
2471 and replace current_gdbarch by gdbarch.
2472
2473 (store_register): Update call for exec_one_dummy_insn.
2474 (fetch_register, store_register): Update call of regmap.
2475
2476 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
2477 parameter and replace current_gdbarch by gdbarch.
2478
2479 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
2480 the current architecture. Update call for getregs_supplies and
2481 getfpregs_supplies.
2482 (ppcnbsd_fetch_inferior_registers): Likewise.
2483
2484 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
2485 replace current_gdbarch by gdbarch.
2486 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
2487 get_regcache_arch to get at the current architecture. Update call for
2488 getfpregs_supplies.
2489
f642be6b
MD
24902008-02-18 Markus Deuling <[email protected]>
2491
2492 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
2493 variables.
2494
b1f2bf01
MD
24952008-02-15 Markus Deuling <[email protected]>
2496
2497 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
2498
ee163bf5
VP
24992008-02-14 Vladimir Prus <[email protected]>
2500
2501 * NEWS: Mention pending breakpints in MI.
2502
f6fbcbf9
MD
25032008-02-14 Markus Deuling <[email protected]>
2504
2505 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
2506
36af4ef6
MD
25072008-02-13 Markus Deuling <[email protected]>
2508
2509 Add script to build and test GDB using enable-targets=all.
2510
2511 * gdb_buildall.sh: New file.
2512
94a0e877
MG
25132008-02-11 Maxim Grigoriev <[email protected]>
2514
2515 * NEWS (New native configurations): Xtensa GNU/Linux.
2516 (New targets): Xtensa GNU/Linux.
2517 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
2518 xtensa-linux-tdep.o
2519 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
2520 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
2521 * configure.tgt (xtensa*-*-linux*): New entry.
2522 * xtensa-config.c (xtensa_tdep): New variable.
2523 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
2524 (rmap): Change format based on new macro XTREG.
2525 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
2526 * xtensa-linux-nat.c: New.
2527 * xtensa-linux-tdep.c: New.
2528 * xtensa-xtregs.c: New.
2529 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
2530 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
2531 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
2532 (xtensa_register_t): New field coprocessor.
2533 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
2534 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
2535 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
2536 Update to handle privileged registers.
2537 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
2538 (xtensa_push_dummy_call): Set windowstart register correctly.
2539 (call0_analyze_prologue): Initialize xtensa_default_isa.
2540 (xtensa_derive_tdep): New.
2541 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
2542 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
2543 Call xtensa_derive_tdep().
2544 * config/xtensa/linux.mh: New.
2545 * regformats/reg-xtensa.dat: New.
2546
b7ee1b0a 25472008-02-09 Aleksandar Ristovski <[email protected]> (tiny change)
f90c07ac
EZ
2548
2549 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
2550 (filenames.h): New include.
2551 * Makefile.in (corelow.o): Add dependency for filenames.h.
2552
8da2a1df
DJ
25532008-02-08 Doug Evans <[email protected]>
2554
2555 * source.c (find_and_open_source): Always rewrite absolute filenames.
2556
776592bf
DE
25572008-02-07 Doug Evans <[email protected]>
2558
2559 * breakpoint.c: #include "hashtab.h".
2560 (ambiguous_names_p): New fn.
2561 (update_breakpoint_locations): When restoring bp enable status, don't
2562 compare function names if any functions have same name.
2563 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
2564
d6565258
JB
25652008-02-07 Joel Brobecker <[email protected]>
2566
2567 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
2568 instead of just a VEC*. Update use of SV.
2569 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
2570
6d53d0af
JB
25712007-02-07 Joel Brobecker <[email protected]>
2572
2573 * NEWS: Put all new commands since gdb-6.7 together.
2574
2ba95b9b
JB
25752007-02-07 Joel Brobecker <[email protected]>
2576
2577 * ada-lang.c: #include "vec.h".
2578 (struct string_vector, new_string_vector, string_vector_append):
2579 Delete.
2580 (char_ptr): New typedef.
2581 (DEF_VEC_P (char_ptr)): New VEC type.
2582 (symbol_completion_add): Update profile to take the new VEC type
2583 instead of the old string_vector structure. Update code accordingly.
2584 (ada_make_symbol_completion_list): Use the new VEC type instead of
2585 the old string_vector structure, and update the code accordingly.
2586 * Makefile.in (ada-lang.o): Add dependency on vec.h.
2587
4ae0885a
PM
25882008-02-06 Pierre Muller <[email protected]>
2589
2590 * p-exp.y: Set current_type in missing places.
2591 (leftdiv_is_integer): New static variable.
2592 Typecast right operand of BINOP_DIV to long_double if both operands
2593 are integers.
2594
06b1d59c
MR
25952008-02-06 Maciej W. Rozycki <[email protected]>
2596
2597 * remote-mips.c (set_breakpoint): Rename to...
2598 (mips_set_breakpoint): ... this.
2599 (clear_breakpoint): Rename to...
2600 (mips_clear_breakpoint): ... this.
2601 (common_breakpoint): Rename to...
2602 (mips_common_breakpoint): ... this.
2603 (check_lsi_error): Rename to...
2604 (mips_check_lsi_error): ... this.
2605
41d27058
JB
26062007-02-05 Joel Brobecker <[email protected]>
2607
2608 * language.h (struct language_defn): Add new field
2609 la_make_symbol_completion_list.
2610 * symtab.c (default_make_symbol_completion_list): Renames
2611 make_symbol_completion_list.
2612 (make_symbol_completion_list): New function.
2613 * symtab.h (default_make_symbol_completion_list): Add declaration.
2614 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
2615 (auto_language, local_language): Likewise.
2616 * objc-lang.c (objc_language_defn): Likewise.
2617 * scm-lang.c (scm_language_defn): Likewise.
2618 * m2-lang.c (m2_language_defn): Likewise.
2619 * f-lang.c (f_language_defn): Likewise.
2620 * jv-lang.c (java_language_defn): Likewise.
2621 * p-lang.c (pascal_language_defn): Likewise.
2622 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
2623 (minimal_language_defn): Likewise.
2624 * ada-lang.c (struct string_vector): New structure.
2625 (new_string_vector, string_vector_append, ada_unqualified_name)
2626 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
2627 (ada_make_symbol_completion_list): New functions.
2628 (ada_language_defn): Set la_make_symbol_completion_list.
2629 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
2630 this function is static.
2631
ee3a2f01
KB
26322008-02-05 Kevin Buettner <[email protected]>
2633
2634 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
2635 to account for call site optimizations.
2636
d844e34b
JB
26372008-02-05 Andrzej Zaborowski <[email protected]>
2638
2639 * tracepoint.c (read_actions): Handle end-of-text indicator
2640 in action list properly. (Committed by Jim Blandy)
2641
02e4669d
JB
26422008-02-05 Jim Blandy <[email protected]>
2643
2644 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
2645 pseudoregister, not an internal error.
85ecb32b 2646 Reported by: Andrzej Zaborowski
02e4669d 2647
c39c8256
VP
26482008-02-04 Vladimir Prus <[email protected]>
2649
2650 * varobj.c (c_value_of_variable): Use xstrdup.
2651
ae7d22a6
VP
26522008-02-04 Vladimir Prus <[email protected]>
2653
2654 Update stored rendition of varobj value when format changes.
2655 * varobj.c (varobj_set_display_format): Recomputed
2656 print_value.
2657 (c_value_of_variable): Return print_value.
2658
81fe8080
DE
26592008-02-03 Doug Evans <[email protected]>
2660
301f0ecf
DE
2661 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
2662 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
2663 * valops.c (value_one): New function.
2664 * value.h (value_one): Declare.
2665
2666 Fix argument promotion for binary arithmetic ops for C.
2667 * valarith.c (unop_result_type): New fn.
2668 (binop_result_type): New fn.
2669 (value_binop): Move result type computation to binop_result_type.
2670 (value_pos, value_neg, value_complement): Move result type
2671 computation to unop_result_type.
2672
81fe8080
DE
2673 PR 2384
2674 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
2675 Return basetype, fieldno if found. All callers updated.
2676 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
2677 objfile.
2678 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
2679 * symfile.h (fill_in_vptr_fieldno): Delete.
2680
41808ebe
DE
26812008-02-02 Doug Evans <[email protected]>
2682
f8597ac3
DE
2683 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
2684
41808ebe
DE
2685 * typeprint.c (*): Whitespace cleanup.
2686
f964a756
MK
26872008-02-02 Mark Kettenis <[email protected]>
2688 Luis Machado <[email protected]>
2689 Thiago Jung Bauermann <[email protected]>
2690
2691 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
2692 don't fit into registerson the stack the way GCC does.
2693
b06ead72
JB
26942008-02-01 Joel Brobecker <[email protected]>
2695
2696 * symtab.c (symbol_set_names): Do not add an entry in the demangling
2697 hash table for Ada symbols. Just store the linkage name as is,
2698 and leave the demangled_name as NULL.
2699
2cfa0c8d
JB
27002007-02-01 Joel Brobecker <[email protected]>
2701
2702 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
2703 in the global scope.
2704 (new_symbol): Likewise.
2705
98deb0da
VP
27062008-02-01 Vladimir Prus <[email protected]>
2707
2708 * breakpoint.c (break_command_1): Return void.
2709 (break_command_really): Return void. Rethrow
2710 exceptions instead of returning.
2711 (gdb_breakpoint): Remove the error_message parameter.
2712 Return void. Rename to set_breakpoint.
2713 * gdb.h (gdb_breakpoint): Rename and move to...
2714 * breakpoint.h (set_breakpoint): ...here.
2715 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
2716 event hooks even if exception is thrown. Adjust to
2717 gdb_breakpoint interface changes.
2718
2719
ce0451ad
TJB
27202008-02-01 Thiago Jung Bauermann <[email protected]>
2721
2722 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
2723 float in both first and second word in the doubleword, to support
2724 old and new ABIs.
2725
723a2275
VP
27262008-02-01 Vladimir Prus <[email protected]>
2727
2728 Properly rethrow exception. This fixes errors
2729 about non-existent functions for -break-insert.
2730 * breakpoint.c (break_command_really): Use throw_exception
2731 for rethrowing. If rethrowing, don't print the exception.
2732
d64a946d
TJB
27332008-01-31 Thiago Jung Bauermann <[email protected]>
2734
2735 * NEWS: Mention Decimal Floating Point support.
2736
02b156f5
JB
27372008-01-31 Joel Brobecker <[email protected]>
2738
2739 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
2740 value type to builtin_type_void_func_ptr.
2741
a16b8bcd
UW
27422008-01-31 Andreas Krebbel <[email protected]>
2743
2744 * s390-tdep.c (is_float_singleton, is_float_like,
2745 alignment_of, s390_return_value): Make checks for
2746 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
2747
f949c649
TJB
27482008-01-31 Luis Machado <[email protected]>
2749 Thiago Jung Bauermann <[email protected]>
2750
2751 * infcmd.c (default_print_registers_info): Also print hex
2752 raw contents for TYPE_CODE_DECFLOAT registers.
2753 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
2754 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
2755 (rs6000_register_name): Add support for DFP pseudo-registers.
2756 (rs6000_pseudo_register_type): Likewise.
2757 rs6000_pseudo_register_reggroup_p): Likewise.
2758 (ppc_pseudo_register_read): New function.
2759 (ppc_pseudo_register_write): Likewise.
2760 (rs6000_pseudo_register_read): Likewise.
2761 (rs6000_pseudo_register_write): Likewise.
2762 (e500_pseudo_register_read): Move checks to
2763 rs6000_pseudo_register_read.
2764 (e500_pseudo_register_write): Move checks to
2765 rs6000_pseudo_register_write.
2766 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
2767 rs6000_pseudo_register_read and rs6000_pseudo_register_write
2768 in gdbarch if SPE or DFP is available. Adjust gdbarch's
2769 num_pseudo_regs to account for DFP pseudo regs.
2770
5a9e69ba
TJB
27712008-01-31 Thiago Jung Bauermann <[email protected]>
2772
2773 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
2774 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
2775 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
2776 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
2777 e500_pseudo_register_read, e500_pseudo_register_write): Use
2778 IS_SPE_PSEUDOREG macro.
2779 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
2780 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
2781 Remove initialization of tdep->ppc_ev31_regnum.
2782
4e885b20
JB
27832008-01-08 Paul Hilfinger <[email protected]>
2784
2785 * printcmd.c (print_formatted): Handle references as for unformatted
2786 prints.
2787
80f064a2
JB
27882008-01-30 Joel Brobecker <[email protected]>
2789
2790 * eval.c (evaluate_subexp_standard): Add handling of user
2791 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
2792
9b3442ee
PM
27932008-01-30 Pierre Muller <[email protected]>
2794
2795 * eval.c (evaluate_subexp_standard): Support
2796 BINOP_INTDIV opcode.
2797
d118ef87
PH
27982008-01-30 Paul N. Hilfinger <[email protected]>
2799
2800 * valarith.c (value_binop): Add floating-point BINOP_MIN and
2801 BINOP_MAX cases.
2802 For BINOP_EXP, use length and signedness of left operand only for
2803 result, as for shifts.
2804 For integral operands to BINOP_EXP, use new integer_pow and
2805 uinteger_pow functions so as to get full range of results.
2806 (integer_pow): New function.
2807 (uinteger_pow): New function.
2808
d56d46f5
VP
28092008-01-30 Vladimir Prus <[email protected]>
2810
2811 Use vector for varobj_list_children interface.
2812 * gdb/varobj.c (varobj_list_children): Return vector
2813 of varobjs.
2814 * gdb/varobj.h (varobj_list_children): Adjust
2815 prototype.
2816 (varobj_p): Declare. Declare vector thereof.
2817 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
2818 for varobj_list_children change.
2819 * Makefile.in (varobj_h): Update dependencies.
2820
1300a2f4
TJB
28212008-01-30 Thiago Jung Bauermann <[email protected]>
2822
2823 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
2824 TYPE_CODE_DECFLOAT arguments.
2825 (ppc64_sysv_abi_push_dummy_call) Likewise.
2826 (get_decimal_float_return_value): New function.
2827 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
2828 values by calling get_decimal_float_return_value.
2829 (ppc64_sysv_abi_return_value): Likewise.
2830
95ef687d
NR
28312008-01-30 Nick Roberts <[email protected]>
2832
2833 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
2834 for preprocessor macro information. Formatting changes.
2835
2d717e4f
DJ
28362008-01-29 Daniel Jacobowitz <[email protected]>
2837
2838 * remote.c (struct remote_state): Add cached_wait_status.
2839 (remote_exec_file): New variable.
2840 (PACKET_vAttach, PACKET_vRun): New constants.
2841 (extended_remote_restart): Do not query for status.
2842 (struct start_remote_args): New.
2843 (remote_start_remote): Take it as a second argument. Check
2844 whether the target is running. Issue an error for non-running
2845 non-extended targets. Cache the wait status. Set inferior_ptid
2846 here.
2847 (remote_open_1): Prompt to disconnect non-running targets. Make
2848 sure the target is marked running. Do not set inferior_ptid here.
2849 Update call to remote_start_remote. Do not call remote_check_symbols
2850 if the target is not running.
2851 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
2852 argument. Handle a non-running target.
2853 (remote_detach): Use it.
2854 (extended_remote_detach): New.
2855 (remote_disconnect): Fix typo. Use remoute_mourn_1.
2856 (extended_remote_attach_1, extended_remote_attach)
2857 (extended_async_remote_attach): New.
2858 (remote_vcont_resume): Remove unused variable.
2859 (remote_wait, remote_async_wait): Use any cached wait status.
2860 (putpkt_binary, getpkt): Clear any cached wait status.
2861 (extended_remoute_mourn_1): New.
2862 (extended_remote_mourn): Use it.
2863 (extended_async_remote_mourn, extended_remote_run): New.
2864 (extended_remote_create_inferior_1): New.
2865 (extended_remote_create_inferior): Use it.
2866 (extended_remote_async_create_inferior): Likewise.
2867 (remote_xfer_partial): Skip for non-executing targets.
2868 (init_extended_remote_ops): Set to_detach and to_attach.
2869 (init_extended_async_remote_ops): Likewise. Use
2870 extended_async_remote_mourn.
2871 (_initialize_remote): Register vAttach, vRun, and
2872 set remote exec-file.
2873 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
2874
e85a822c
DJ
28752008-01-29 Daniel Jacobowitz <[email protected]>
2876
2877 * Makefile.in (symfile.o): Update.
2878 * NEWS: Mention exec tracing support.
2879 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
2880 exec events.
2881 * infcmd.c (kill_if_already_running, detach_command)
2882 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
2883 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
2884 (follow_exec): Do not check may_follow_exec. Do not mourn and push
2885 targets. Apply the sysroot path to the loaded executable. Use
2886 no_shared_libraries.
2887 * linux-nat.c (linux_child_follow_fork): Print fork following
2888 messages if verbose.
2889 (kill_wait_callback): Kill again before waiting a second time.
2890 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
2891 no_shared_libraries.
2892
9db13498
JB
28932008-01-29 Joel Brobecker <[email protected]>
2894
2895 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
2896
b4d5ed91
JB
28972008-01-29 Joel Brobecker <[email protected]>
2898
2899 * nto-tdep.h: Remove #include "defs.h".
2900 * nto-tdep.c: Add #include "defs.h".
2901 * Makefile.in (nto_tdep_h): Update dependencies.
2902 (nto-tdep.o): Likewise.
2903
107313f7 29042008-01-29 Joel Brobecker <[email protected]>
ae123ec6
JB
2905
2906 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
2907 and use it.
2908 (proceed, start_remote): Update call to wait_for_inferior.
2909 * inferior.h (wait_for_inferior): Update declaration.
2910 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
2911 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
2912 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
2913 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
2914
3f4178d6
DJ
29152008-01-29 Aleksandar Ristovski <[email protected]>
2916
2917 * varobj (adjust_value_for_child_access): Added checking for
2918 returned value from gdb_value_ind.
2919 (c_describe_child): Likewise.
2920 (cplus_describe_child): Fixed a typo.
2921
5eeba8d4
JB
29222008-01-29 Jim Blandy <[email protected]>
2923
2924 * MAINTAINERS: Update my info.
2925
a5606eee
VP
29262008-01-29 Vladimir Prus <[email protected]>
2927
2928 Use multiple locations for hardware watchpoints.
2929 This eliminates the need to traverse value chain, doing
2930 various checks, in three different places.
2931
2932 * breakpoint.h (struct bp_location): New fields
2933 lengths and watchpoint_type.
2934 (struct breakpoint): Remove the val_chain field.
2935 * breakpoint.c (is_hardware_watchpoint): New.
2936 (free_valchain): Remove.
2937 (update_watchpoint): New.
2938 (insert_bp_location): For hardware watchpoint, just
2939 directly insert it.
2940 (insert_breakpoints): Call update_watchpoint_locations
2941 on all watchpoints. If we have failed to insert
2942 any location of a hardware watchpoint, remove all inserted
2943 locations.
2944 (remove_breakpoint): For hardware watchpoints, directly
2945 remove location.
2946 (watchpoints_triggered): Iterate over locations.
2947 (bpstat_stop_status): Use only first location of
2948 a resource watchpoint.
2949 (delete_breakpoint): Don't call free_valchain.
2950 (print_one_breakpoint): Don't print all
2951 locations for watchpoints.
2952 (breakpoint_re_set_one): Use update_watchpoint for
2953 watchpoints.
2954
0b3de036
VP
29552008-01-29 Vladimir Prus <[email protected]>
2956
2957 Don't reset watchpoint block on solib load.
2958
2959 * breakpoint.c (insert_bp_location): For watchpoints,
2960 recompute condition.
2961 (breakpoint_re_set_one): Instead of recomputing value
2962 and condition for watchpoints, just reset value and
2963 let insert_breakpoints/insert_bp_location recompute it.
2964 Don't do anything about disabled watchpoint.
2965
c3940723
PM
29662008-01-29 Pierre Muller <[email protected]>
2967
2968 * valarith.c (value_binop): Handle unsigned integer
2969 division by zero.
2970
83845630
KB
29712008-01-28 Kevin Buettner <[email protected]>
2972
2973 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
2974 instruction pattern that appears frequently in position
2975 independent code. Fix bug in code which looks for "fmov" and
2976 backtracks if no "fmov" is found.
2977
9ce5d3bb
DE
29782008-01-28 Doug Evans <[email protected]>
2979
2980 * dbxread.c (read_dbx_symtab): Fix indentation.
131fe1bb
DE
2981 Reformat comments to 80 columns.
2982 Move local var def closer to only use.
9ce5d3bb 2983
c78d192c
DJ
29842008-01-28 Daniel Jacobowitz <[email protected]>
2985
2986 * fork-child.c (SHELL_FILE): Remove #ifndef.
2987 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
2988
e11481da
PM
29892008-01-25 Pierre Muller <[email protected]>
2990
2991 * i386-tdep.c (i386_skip_noop): New function.
2992 (i386_analyze_prologue): Call i386_skip_noop function.
2993
244e85c8
MS
29942008-01-24 Michael Snyder <[email protected]>
2995
2996 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
2997 * win32-nat.c (win32_xfer_partial): Ditto.
2998 * target.c (default_xfer_partial): Minor whitespace adjustment.
2999
dd6be234
PA
30002008-01-24 Pedro Alves <[email protected]>
3001
3002 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
3003 strip bit 1 even if pc doesn't point to thumb code.
3004
9fa2223d
DJ
30052008-01-23 Daniel Jacobowitz <[email protected]>
3006
3007 * remote.c (remote_wait): Handle SIGINT between packets.
3008 (remote_async_wait): Likewise.
3009
93815fbf
VP
30102008-01-23 Vladimir Prus <[email protected]>
3011 Chris Demetriou <[email protected]>
3012
3013 * thread.c (add_thread_silent): Renamed
3014 from add_thread.
3015 (print_thread_events): New variable definition.
3016 (show_print_thread_events): New function.
3017 (_initialize_thread): Add "set print thread-events" and
3018 "show print thread-events" commands.
3019 (add_thread): Announce new thread.
3020 * gdbthread.h (add_thread_silent): Declare.
3021 (print_thread_events): New variable declaration.
3022 * inf-ttrace.c (inf_ttrace_wait): Don't
3023 inform about new thread, as add_thread is always
3024 called too, and will take care of that.
3025 * infrun.c (handle_inferior_event): Likewise.
3026 * procfs.c (procfs_wait): Likewise.
3027 * remote.c (remote_currthread): Likewise.
3028 * sol-thread.c (sol_thread_wait): Likewise.
3029 * win32-nat.c (get_win32_debug_event): Likewise.
3030 * linux-thread-db.c (attach_thread): Likewise.
3031 Remove the verbose parameter.
3032 (check_event): Make detach_thread be verbose
3033 only if print_thread_events is set.
3034 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
3035 about new thread. This is called only from
3036 linux-thread-db.c:attach_thread, which will take care.
3037 Remove the verbose parameter.
3038 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
3039
b4d7c9a6
NR
30402008-01-23 Nick Roberts <[email protected]>
3041
3042 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
3043
60c46647
VP
30442008-01-22 Vladimir Prus <[email protected]>
3045
3046 * breakpoint.c (break_command_really): New parameter
3047 ignore_count.
3048 (break_command_1): Pass 0 as
3049 ignore_count to break_command_really.
3050 (gdb_breakpoint): Pass ignore_count to
3051 break_command_really.
3052
e84605cd
KB
30532008-01-21 Kevin Buettner <[email protected]>
3054
3055 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
3056 sigcontext struct via pointer.
3057 (struct sigframe comment): Update to show new field `psc'.
3058
9d9cd7ac
VP
30592008-01-21 Vladimir Prus <[email protected]>
3060
3061 * infrun.c (handle_inferior_event): If
3062 we failed to remove breakpoints, error,
3063 don't try to increment PC by hand.
3064
af5ca30d
NH
30652008-01-18 Nick Hudson <[email protected]>
3066
3067 Add NetBSD/hppa target and host support.
3068
3069 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
3070 (hppabsd_gregset): Move to ...
3071 (hppabsd_regset_from_core_section): Rename
3072 hppaobsd_regset_from_core_section and move to ...
3073 (hppabsd_find_global_pointer): Update comment.
3074 (hppabsd_init_abi): Make global. Do not register
3075 hppabsd_regset_from_core_section.
3076 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
3077 move to ...
3078 (_initialize_hppabsd_tdep): Move to ...
3079 * hppaobsd-tdep.c: ... here. New file.
3080 * hppnbsd-tdep.c: New file.
3081 * hppnbsd-nat.c: New file.
3082 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
3083 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
3084 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
3085 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
3086 * configure.host (hppa*-*-netbsd*): New entry.
3087 * configure.tgt (hppa*-*-netbsd*): New entry.
3088 (hppa*-*-openbsd*): Update.
3089 * NEWS (New native configuration): Mention NetBSD/hppa.
3090 (New targets): Mention NetBSD/hppa.
3091
32c9a795
MD
30922008-01-18 Markus Deuling <[email protected]>
3093
3094 * gdbarch.sh (function_list): Add new property bits_big_endian to
3095 gdbarch structure.
3096 * gdbarch.{c,h}: Regenerate.
3097
3098 * value.c (struct value): Replace BITS_BIG_ENDIAN by
3099 gdbarch_bits_big_endian (comment).
3100 (unpack_field_as_long, modify_field): Likewise.
3101 * value.h: Likewise (comment).
3102 * valops.c (value_slice): Likewise.
3103 * valarith.c (value_subscript, value_bit_index): Likewise.
3104 * gdbtypes.h (field): Likewise (comment).
3105 * eval.c (evaluate_subexp_standard): Likewise.
3106 * dwarf2read.c (dwarf2_add_field): Likewise.
3107 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
3108 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
3109
3110 * defs.h (BITS_BIG_ENDIAN): Remove.
3111
1e5e79d0
MD
31122008-01-18 Markus Deuling <[email protected]>
3113
3114 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
3115 function calls.
3116 * m2-exp.y (yylex): Likewise.
3117 * objc-exp.y (yylex): Likewise.
3118
3119 * defs.h (DEPRECATED_STREQN): Remove.
3120
fabda5a7
L
31212008-01-17 H.J. Lu <[email protected]>
3122
3123 * MAINTAINERS: Update my email address.
3124
92726479
JB
31252008-01-17 Jim Blandy <[email protected]>
3126
3127 * README: Mention gdbserver/README.
3128
ef80d18e
PM
31292008-01-17 Pierre Muller <[email protected]>
3130
3131 * valarith.c (value_binop): Handle BINOP_INTDIV
3132 for unsigned and signed integers.
3133
1de90795
UW
31342008-01-17 Ulrich Weigand <[email protected]>
3135
3136 * s390-tdep.c (s390_gdbarch_init): Set default long double
3137 type to 128-bit IEEE quad.
3138
c70bd6f3
JB
31392008-01-17 Joel Brobecker <[email protected]>
3140
3141 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
3142
ba759613
MK
31432008-01-16 Mark Kettenis <[email protected]>
3144
77d49ac6
MK
3145 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
3146
ba759613
MK
3147 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
3148 * value.c: All callers changed.
3149
7ecb6532
MD
31502008-01-16 Markus Deuling <[email protected]>
3151
3152 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
3153 DEPRECATED_STREQ by its expression.
3154 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
3155 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
3156 (scan_xcoff_symtab): Likewise.
3157 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
3158 * f-lang.c (find_common_for_function): Likewise.
3159 * objc-exp.y (parse_number): Likewise.
3160
3161 * defs.h (DEPRECATED_STREQ): Remove.
3162
d15cf01c
MD
31632008-01-16 Markus Deuling <[email protected]>
3164
3165 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
3166 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
3167 get_frame_arch to get at the current_architecture. Update AM33_MODE
3168 call.
3169 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
3170 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
3171 architecture.
3172 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
3173
f8028488
MD
31742008-01-16 Markus Deuling <[email protected]>
3175
3176 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
3177 parameter.
3178 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
3179
3180 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
3181 current_gdbarch by gdbarch. Update caller.
3182
3183 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
3184 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
3185 the current architecture. Update calls of
3186 amd64_native_gregset_supplies_p.
3187 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
3188 (amd64bsd_store_inferior_registers): Likewise.
3189
e101270f
MD
31902008-01-16 Markus Deuling <[email protected]>
3191
3192 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
3193 Replace current_gdbarch by gdbarch. Update caller.
3194
063e58ba
MD
31952008-01-16 Markus Deuling <[email protected]>
3196
3197 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
3198 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
3199 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
3200 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
3201 (stabsect_build_psymtabs): Fix indentation.
3202
662fb31b
MS
32032008-01-15 Michael Snyder <[email protected]>
3204
3205 * corelow.c (core_xfer_partial): Comment, cut/paste error.
3206
c1766e7d
PM
32072008-01-14 Pierre Muller <[email protected]>
3208
3209 * win32-nat.c (win32_create_inferior): Restore code calling
3210 CloseHandle on ProcessInformation structure.
3211
5ed10e6e
NH
32122008-01-13 Nick Hudson <[email protected]>
3213
3214 * configure.ac: Check for void * as 3 argument of ptrace.
3215 * configure: regenerate.
3216
be8626e0
MD
32172008-01-11 Markus Deuling <[email protected]>
3218
3219 * alpha-tdep.c (alpha_heuristic_proc_start)
3220 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
3221 current_gdbarch by gdbarch.
3222
3223 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
3224 current architecture by frame_info. Update alpha_heuristic_proc_start
3225 call.
3226
3227 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
3228 get_frame_arch to get at the current architecture by frame_info. Update
3229 alpha_sigtramp_register_address call.
3230
3231 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
3232 current_gdbarch by gdbarch. Update caller.
3233 (convert_to_extended, convert_from_extended): Add endianess parameter
3234 for comparison. Update caller.
3235 (arm_extract_return_value, arm_store_return_value): Use
3236 get_regcache_arch to get at the current architecture.
3237
3238 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
3239 current_gdbarch by gdbarch. Update caller.
3240 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
3241 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
3242
3243 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
3244 gdbarch as parameter. Update caller.
3245 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
3246 current_gdbarch by gdbarch. Update caller.
3247
3248 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
3249 update caller. Replace current_gdbarch by gdbarch.
3250
3251 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
3252 the current architecture. Replace current_gdbarch by gdbarch.
3253 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
3254 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
3255 expression. Add gdbarch as parameter and replace current_gdbarch with
3256 it. Update caller.
3257 (M6811_TDEP): Remove.
3258 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
3259 architecture.
3260 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
3261 current_gdbarch by gdbarch. Update caller.
3262
3263 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
3264 update caller.
3265 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
3266 by gdbarch.
3267
3268 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
3269 caller. Relace current_gdbarch by gdbarch.
3270 (altivec_register_p, spe_register_p): Likewise.
3271 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
3272 parameter.
3273 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
3274 altivec_register_p and spe_register_p.
3275
3276 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
3277 caller. Replace current_gdbarch by gdbarch.
3278 (score_analyze_prologue): use get_frame_arch to get at the current
3279 architecture.
3280
3281 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
3282 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
3283 current_gdbarch by gdbarch. Update caller.
3284 (sparc_frame_cache): Use get_frame_arch to get at the current
3285 architecture.
3286 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
3287 sparc_analyze_prologue.
3288
3289 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
3290 parameter.
3291
ed49a04f
MD
32922008-01-11 Markus Deuling <[email protected]>
3293
3294 * exec.c: #include "arch-utils.h"
3295 (print_section_info): Use gdbarch_from_bfd to get at the
3296 current architecture. Replace current_gdbarch. Fix indention. Replace
3297 deprecated_print_address_numeric by paddress.
3298 * Makefile.in (exec.o) Add dependency to arch-utils.h.
3299
3300 * valprint.c (val_print_string): Replace
3301 deprecated_print_address_numeric.
3302 * tracepoint.c (trace_mention, scope_info): Likewise.
3303 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
3304 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
3305 (maintenance_check_symtabs): Likewise.
3306 * symfile.c (list_overlays_command): Likewise.
3307 * stack.c (frame_info, print_block_frame_labels): Likewise.
3308 * printcmd.c (print_address, print_address_demangle)
3309 (address_info): Likewise.
3310 * corefile.c (memory_error): Likewise.
3311 * infcmd.c (jump_command): Likewise.
3312 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
3313 (mention, delete_breakpoint): Likewise.
3314 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
3315 * dwarf2read.c (dump_die): Likewise.
3316 * ada-valprint.c (ada_val_print_1): Likewise.
3317 * f-valprint.c (f_val_print): Likewise.
3318 * linux-fork.c (info_forks_command): Likewise.
3319 * m32r-com.c (m32r_load_section, m32r_load)
3320 (m32r_upload_command): Likewise.
3321
3322 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
3323
6093d2eb
MD
33242008-01-11 Markus Deuling <[email protected]>
3325
3326 * gdbarch.sh (skip_prologue): Add gdbarch
3327 as parameter.
3328 * gdbarch.{c,h}: Regenerate.
3329
3330 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
3331 * amd64-tdep.c (amd64_skip_prologue): Likewise.
3332 * avr-tdep.c (avr_skip_prologue): Likewise.
3333 * cris-tdep.c (cris_skip_prologue): Likewise.
3334 * frv-tdep.c (frv_skip_prologue): Likewise.
3335 * h8300-tdep.c (h8300_skip_prologue): Likewise.
3336 * hppa-tdep.c (hppa_skip_prologue): Likewise.
3337 * i386-tdep.c (i386_skip_prologue): Likewise.
3338 * ia64-tdep.c (ia64_skip_prologue): Likewise.
3339 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
3340 * m32r-tdep.c (m32r_skip_prologue): Likewise.
3341 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
3342 * m68k-tdep.c (m68k_skip_prologue): Likewise.
3343 * m88k-tdep.c (m88k_skip_prologue): Likewise.
3344 * mep-tdep.c (mep_skip_prologue): Likewise.
3345 * mips-tdep.c (mips_skip_prologue): Likewise.
3346 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
3347 * mt-tdep.c (mt_skip_prologue): Likewise.
3348 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
3349 * score-tdep.c (score_skip_prologue): Likewise.
3350 * sh64-tdep.c (sh64_skip_prologue): Likewise.
3351 * sh-tdep.c (sh_skip_prologue): Likewise.
3352 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
3353 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
3354 * spu-tdep.c (spu_skip_prologue): Likewise.
3355 * v850-tdep.c (v850_skip_prologue): Likewise.
3356 * vax-tdep.c (vax_skip_prologue): Likewise.
3357 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
3358 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
3359
3360 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
3361 current_gdbarch by gdbarch.
3362 * m32c-tdep.c (m32c_skip_prologue): Likewise.
3363 * s390-tdep.c (s390_skip_prologue): Likewise.
3364
72f5cf0e
DE
33652008-01-10 Doug Evans <[email protected]>
3366
3367 * defs.h (struct continuation_arg): Fix typo in comment.
3368 * target.c (target_translate_tls_address): Fix comment spelling error.
3369
689e4e2d
TJB
33702008-01-09 Thiago Jung Bauermann <[email protected]>
3371
3372 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
3373 (DOUBLEST_SCAN_FORMAT): Likewise.
3374 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
3375 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
3376 * c-exp.y (parse_number): Likewise.
3377 * jv-exp.y (parse_number): Likewise.
3378 * objc-exp.y (parse_number): Likewise.
3379 * p-exp.y (parse_number): Likewise.
3380
ab0d6e0d
JB
33812008-01-09 Joel Brobecker <[email protected]>
3382
3383 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
3384 (check_typedef): Likewise.
3385
0aea4bf3
LM
33862008-01-09 Luis Machado <[email protected]>
3387
3388 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
3389 seen_double_big_d, treat the new H, D, and DD modifiers as length
3390 modifiers.
3391
137033e9
JB
33922008-01-08 Joel Brobecker <[email protected]>
3393
3394 * dwarf2read.c (read_enumeration_type): Add comment.
3395
dda297ec
TJB
33962008-01-08 Thiago Jung Bauermann <[email protected]>
3397
3398 * config.in: Regenerate.
3399
a93c0eb6
JB
34002008-01-08 Joel Brobecker <[email protected]>
3401
3402 * ada-lang.c (ada_convert_actual): Renames convert_actual.
3403 Make non-static.
3404 (ada_convert_actuals): Delete.
3405 * ada-lang.h (ada_convert_actual): Add declaration.
3406 (ada_convert_actuals): Remove declaration.
3407 * infcall.c: #include "ada-lang.h".
3408 (value_arg_coerce): Add new parameter sp. Update function
3409 documetnation. Add handling of Ada function call parameters.
3410 * Makefile.in (infcall.o): Update dependencies.
3411
a84a8a0d
JB
34122008-01-08 Paul Hilfinger <[email protected]>
3413
3414 * ada-lang.c (ensure_lval): Fix value lval kind.
3415 (convert_actual): Add handling for arguments passed by reference.
3416
d7f98cce
DE
34172008-01-08 Doug Evans <[email protected]>
3418
3419 * dbxread.c (read_dbx_symtab): Fix indentation.
3420
4ef30785
TJB
34212008-01-07 Thiago Jung Bauermann <[email protected]>
3422
3423 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
3424 (valarith.o): Depend on dfp.h.
3425 (valops.o): Likewise.
3426 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
3427 (set_decnumber_context): New function.
3428 (decimal_check_errors): Likewise.
3429 (decimal_from_number): Likewise.
3430 (decimal_to_number): Likewise.
3431 (decimal_from_string): Use set_decnumber_context and
3432 decimal_check_errors.
3433 (decimal_from_integral): New function.
3434 (decimal_from_floating): Likewise.
3435 (decimal_to_double): Likewise.
3436 (promote_decimal): Likewise.
3437 (decimal_binop): Likewise.
3438 (decimal_is_zero): Likewise.
3439 (decimal_compare): Likewise.
3440 (decimal_convert): Likewise.
3441 * dfp.h (decimal_from_integral): New prototype.
3442 (decimal_from_floating): Likewise.
3443 (decimal_to_double): Likewise.
3444 (decimal_binop): Likewise.
3445 (decimal_is_zero): Likewise.
3446 (decimal_compare): Likewise.
3447 (decimal_convert): Likewise.
3448 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
3449 call to value_from_decfloat.
3450 * valarith.c: Include dfp.h.
3451 (value_args_as_decimal): New function.
3452 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
3453 (value_logical_not): Likewise.
3454 (value_equal): Likewise.
3455 (value_less): Likewise.
3456 (value_pos): Likewise.
3457 (value_neg): Formatting fix.
3458 * valops.c: Include dfp.h.
3459 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
3460 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
3461 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
3462 (value_from_decfloat): Remove expect_type argument.
3463 * value.h (value_from_decfloat): Update prototype.
3464
a7c02bc8
VP
34652008-01-07 Vladimir Prus <[email protected]>
3466
3467 Ignore change in name of dynamic linker during
3468 execution on Solaris. This also unbreaks pending breakpoints.
3469
3470 * solist.h (struct target_so_ops): New field same.
3471 * solib-svr4.c (svr4_same): New.
3472 (_initialize_svr4_solib): Register svr4_same.
3473 * solib.c (update_solib_list): Use ops->same, if available.
3474
610dd7f9
CF
34752008-01-06 Christopher Faylor <[email protected]>
3476
3477 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
3478 when using MS-DOS paths.
3479
7a404eba
PA
34802008-01-05 Pedro Alves <[email protected]>
3481
3482 * NEWS: Mention --pid and --core command line behaviour changes.
3483
a4d9b460
PA
34842008-01-05 Pedro Alves <[email protected]>
3485
3486 * main.c (captured_main): Remove 'count' varible and the
3487 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
3488 --pid options were issued simultaneously. If an explicit pid
3489 option was passed, don't fallback to core file. Detect extra
3490 arguments better in the presence of explicit pid or core
3491 arguments.
3492
0c281816
JB
34932008-01-05 Joel Brobecker <[email protected]>
3494
3495 * ada-lang.c (ada_which_variant_applies): Correctly compute
3496 the value of the discriminant when the variant record is packed.
3497
babe1480
JB
34982008-01-04 Joel Brobecker <[email protected]>
3499
3500 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
3501 that are used to differentiate homonyms.
3502
727e3d2e
JB
35032008-01-04 Jerome Guitton <[email protected]>
3504
3505 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
3506 when the type is an anonymous pointer type.
3507 (ada_check_typedef): Avoid a seg fault when the type is null.
3508 * ada-typeprint.c (print_array_type): Add support for pointer
3509 to packed arrays.
3510
bb28a9dc
JB
35112008-01-04 Paul N. Hilfinger <[email protected]>
3512
3513 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
3514
6799def4
JB
35152008-01-04 Joel Brobecker <[email protected]>
3516
3517 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
3518 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
3519
d3353bbd
JB
35202008-01-04 Joel Brobecker <[email protected]>
3521
3522 * ada-exp.y (chop_separator): New function.
3523 (write_selectors): Rewrite to re-use chop_separator.
3524 (ada_nget_field_index, get_symbol_field_type): New functions.
3525 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
3526 expressions.
3527
82cf6c60
TJB
35282008-01-03 Thiago Jung Bauermann <[email protected]>
3529
3530 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
3531 of SYMBOL_VALUE when working with function symbols.
3532
b3dbf008
JB
35332008-01-03 Joel Brobecker <[email protected]>
3534
3535 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
3536 expressions. These expressions do not need to be rewriten.
3537
02eb380e
JB
35382008-01-03 Joel Brobecker <[email protected]>
3539
3540 * dwarf2read.c (read_enumeration_type): Flag type as stub if
3541 the given die is a declaration.
3542
abb68b3e
JB
35432008-01-03 Joel Brobecker <[email protected]>
3544
3545 * ada-lang.c (ada_array_bound_from_type): Make non-static.
3546 Handle properly the case when the index type is an enumerated type.
3547 Do not return the subtype of the bounds type, just return the
3548 bounds type directly - this is not needed and is more consistent
3549 with what we do for arrays when no XA parallel type exists.
3550
f192137b
JB
35512008-01-03 Joel Brobecker <[email protected]>
3552
3553 * ada-lang.c (static_unwrap_type): Add forward declaration.
3554 (template_to_static_fixed_type): Fields of dynamic types sometimes
3555 also need to be unwrapped. Take this into account.
3556 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
3557 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
3558 * ada-typeprint.c (ada_print_type): Get the typename from
3559 the original type, not the base type.
3560
1ed6ede0
JB
35612008-01-03 Jerome Guitton <[email protected]>
3562
3563 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
3564 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
3565 Update calls to ada_to_fixed_type.
3566 (ada_template_to_fixed_record_type_1): Ditto, but without looking
3567 for the tag.
3568 (ada_to_fixed_type): Add check_tag parameter; do not look for
3569 tag if null. When looking for a tag, use a fixed record type.
3570 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
3571 * ada-valprint.c (printable_val_type, ada_value_print): Update
3572 calls to ada_to_fixed_type.
3573
542a88d0
LM
35742008-01-03 Luis Machado <[email protected]>
3575
3576 * doublest.c (convert_floatformat_to_doublest): Call
3577 floatformat_to_doublest instead of floatformat_to_double and use
3578 DOUBLEST variables.
3579 (convert_doublest_to_floatformat): Call floatformat_from_doublest
3580 instead of floatformat_from_double and use DOUBLEST variables.
3581
dc2bbab2
NH
35822008-01-03 Nick Hudson <[email protected]>
3583
3584 * MAINTAINERS (Write After Approval): Add self.
3585
8b60591b
JB
35862008-01-03 Joel Brobecker <[email protected]>
3587
3588 * symfile.c (set_initial_language): Make non-static.
3589 * symfile.h (set_initial_language): Add declaration.
3590 * language.c: #include "symfile.h".
3591 (set_language): Call set_initial_language if the frame language
3592 could not be determined.
3593
ceef53c1
JB
35942008-01-03 Paul N. Hilfinger <[email protected]>
3595
3596 * eval.c (evaluate_subexp_for_address): Provide frame address to
3597 locate_var_value only if it will be needed.
3598
ef29ce1a
JK
35992008-01-02 Jan Kratochvil <[email protected]>
3600
3601 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
3602
0a07e705
JB
36032008-01-02 Joel Brobecker <[email protected]>
3604
3605 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
3606 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
3607 This is needed to make sure that any other treatment applied
3608 to the resulting value does not fail for spurious reason,
3609 such as trying to take the address of this value.
3610
f58b38bf
JB
36112008-01-02 Joel Brobecker <[email protected]>
3612
3613 * ada-lang.c (ada_value_equal): Dereference reference types when
3614 comparing arrays.
3615
9b254dd1
DJ
36162008-01-01 Daniel Jacobowitz <[email protected]>
3617
3618 Updated copyright notices for most files.
3619
33605d39
CF
36202008-01-01 Christopher Faylor <[email protected]>
3621
3622 * win32-nat.c (psapi_module_handle): Remove static.
3623 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
3624 return first module found if base_address is zero. Don't initialize
3625 psapi function pointers here. Convert to cygwin paths when
3626 appropriate.
3627 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
3628 executable name. Use get_module_name when that fails or when
3629 !__CYGWIN__.
3630 (_initialize_psapi): New function. Initialize psapi stuff before it is
3631 needed or issue a warning if it is not found. Move psapi_module_handle
3632 here.
3633
29480c32
JB
36342008-01-01 Joel Brobecker <[email protected]>
3635
3636 * ada-lang.c (ada_remove_trailing_digits): New function.
3637 (ada_remove_po_subprogram_suffix): New function.
3638 (ada_decode): Improve. Move the description of the algorithm
3639 directly inside the code, instead of in the function global
3640 description.
3641
969a1360
JB
36422008-01-01 Joel Brobecker <[email protected]>
3643
3644 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
3645 and always print the dereferenced value.
3646
b7789565
JB
36472008-01-01 Joel Brobecker <[email protected]>
3648
3649 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
3650 of the case where the first argument is a reference.
3651 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
3652
73fb9985
JB
36532008-01-01 Joel Brobecker <[email protected]>
3654
3655 Implement support for Ada interface types.
3656
3657 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
3658 (ada_is_ignored_field): Ignore fields that are a dispatch table
3659 of a tagged type.
3660
636265b6
JB
36612008-01-01 Joel Brobecker <[email protected]>
3662
3663 * top.c (print_gdb_version): Update copyright year.
3664
9d200a2e 36652008-01-01 Joel Brobecker <[email protected]>
b7589f7d 3666
9d200a2e
JB
3667 * ChangeLog-2007: New ChangeLog rotation.
3668 * ChangeLog: Reset for 2008.
3669 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
3670 ChangeLog-2007.
b7589f7d 3671
9d200a2e 3672For older changes see ChangeLog-2007.
c906108c
SS
3673\f
3674Local Variables:
3675mode: change-log
3676left-margin: 8
3677fill-column: 74
3678version-control: never
57da7796 3679coding: utf-8
c906108c 3680End:
This page took 2.335206 seconds and 4 git commands to generate.