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