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