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