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