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