1 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
3 * frame.c (frame_unwind_id): Renamed to ...
4 (frame_unwind_caller_id): ... this. All callers updated.
5 (frame_pc_unwind): Renamed to ...
6 (frame_unwind_caller_pc): ... this. All callers updated.
7 * frame.h: Document frame_unwind_caller_WHAT functions.
8 (frame_unwind_id): Renamed to ...
9 (frame_unwind_caller_id): ... this.
10 (frame_pc_unwind): Renamed to ...
11 (frame_unwind_caller_pc): ... this.
12 * hppa-tdep.c (hppa_find_unwind_entry_in_block): Correct comment.
13 * stack.c (parse_frame_specification_1): Do not rely on
16 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
18 * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned.
20 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
22 * frame.c (frame_sp_unwind): Delete.
23 (get_frame_sp): Do not use it.
24 * frame.h (frame_sp_unwind): Delete prototype.
26 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
28 * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc.
30 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
32 * dwarf2-frame.c (dwarf2_frame_cache): Update comment.
33 * frame.c (frame_unwind_address_in_block): Delete.
34 (get_frame_address_in_block): Do not use it. Check the type
35 of the next frame first.
36 (frame_cleanup_after_sniffer): Update comment.
37 * frame.h (frame_unwind_address_in_block): Delete prototype.
38 * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment.
40 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
42 * frame.c (frame_func_unwind): Delete.
43 (get_frame_func): Do not use it.
44 * frame.h (frame_func_unwind): Delete prototype.
45 * hppa-tdep.c (hppa_frame_cache): Update comment.
46 * rs6000-tdep.c (rs6000_frame_cache): Update comment.
48 2008-07-14 Stan Shebs <stan@codesourcery.com>
50 * remote-sim.c (init_gdbsim_ops): Remove
51 TARGET_REDEFINE_DEFAULT_OPS.
53 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
55 * findvar.c (read_var_value): Remove unused variable.
57 2008-07-15 Luis Machado <luisgpm@br.ibm.com>
59 * infrun.c (handle_inferior_event): Tag threads as stopped
60 before inserting breakpoints.
62 2008-07-15 Hui Zhu <teawater@gmail.com>
64 * MAINTAINERS: Added myself to section Write After Approval.
66 2008-07-14 Paul Pluzhnikov <ppluzhnikov@google.com>
69 * cp-abi.c (value_virtual_fn_field): Handle invalid pointers.
71 2008-07-14 Pedro Alves <pedro@codesourcery.com>
73 * i386-dicos-tdep.c (i386_dicos_frame_align): Delete.
74 (i386_dicos_push_dummy_code): New.
75 (i386_dicos_init_abi): Don't register i386_dicos_frame_align.
76 Register i386_dicos_push_dummy_code.
78 2008-07-14 Markus Deuling <deuling@de.ibm.com>
80 * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter.
81 (mips_n32n64_push_dummy_call, mips_o64_return_value)
82 (mips_eabi_push_dummy_call): Update call to fp_register_arg_p.
84 (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch.
85 (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command)
86 (mips_n32n64_fp_arg_chunk_p): Update caller.
88 (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter.
89 (mips_n32n64_push_dummy_call): Update caller.
91 (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace
93 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
94 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller.
97 (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace
99 (mips_eabi_push_dummy_call, mips_o32_push_dummy_call)
100 (mips_o64_push_dummy_call): Update caller.
102 (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch.
103 (fp_register_arg_p, mips_dump_tdep): Update caller.
105 (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch.
106 (mips16_scan_prologue, mips32_scan_prologue): Update caller.
108 (reset_saved_regs): Make static. Add gdbarch as parameter. Replace
110 (mips32_scan_prologue): Update caller.
112 (heuristic_proc_start): Add gdbarch as parameter. Replace
114 (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller.
116 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
117 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
118 the current architecture. Update call to getregs_supplies.
119 (getregs_supplies): Add gdbarch as parameter and replace
122 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to
123 get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and
124 NBSD_MIPS_JB_ELEMENT_SIZE.
125 (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and
126 replace current_gdbarch.
128 * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace
130 (mips_fetch_registers, mips_store_registers): Update call
132 (mips_load): Use get_regcache_arch to get at the current_architecture
133 and replace current_gdbarch.
135 2008-07-13 Pedro Alves <pedro@codesourcery.com>
137 * thread.c (restore_selected_frame): On fail to restore, select
138 the innermost frame, and don't crash when warning the user.
140 2008-07-13 Hui Zhu <teawater@gmail.com>
142 * symtab.c (expand_line_sal): Fix a memory leak.
144 2008-07-13 Pedro Alves <pedro@codesourcery.com>
146 * utils.c (struct continuation): Define as inheriting struct
148 (add_continuation, do_all_continuations)
149 (discard_all_continuations, add_intermediate_continuation)
150 (do_all_intermediate_continuations)
151 (discard_all_intermediate_continuations): Adjust.
153 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
155 Skip varobj in running threads.
156 * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's
157 thread is not stopped, skip the varobj.
158 * Makefile.in: Update dependencies.
160 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
162 Enable all commands while inferiour is running
163 * mi/mi-main.c (mi_cmd_execute): Don't check if
164 inferiour is executing.
166 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
168 Allow all CLI command even if target is executing.
169 * gdb/top.c (execute_command_1): Don't check if the inferiour
172 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
174 * mi/mi-main.c (mi_cmd_execute): Remove unused variable.
175 Fix printing of frame, when frame is wrong.
177 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
179 * spu-tdep.c (spu_frame_unwind_cache): Do not error if
180 backchain is unreadable.
182 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
184 * spu-linux-nat.c: Include "gdbthread.h".
185 (spu_child_post_startup_inferior): Register main thread.
186 (spu_child_post_attach): Likewise.
187 * Makefile.in (spu-linux-nat.o): Update dependencies.
189 2008-07-12 Pedro Alves <pedro@codesourcery.com>
191 Rewrite continuations internals on top of cleanups and plug
192 continuation arguments leaks.
194 * defs.h (struct continuation): Make it opaque.
195 (add_continuation, add_intermediate_continuation): Drop the int
196 argument of the continuation hook argument. Add
197 continuation_free_args argument.
198 (do_all_continuations, do_all_intermediate_continuations): Drop
199 the error_p argument.
201 * utils.c (add_continuation): Drop the int argument of the
202 continuation hook argument. Add continuation_free_args argument.
203 Reimplement on top of cleanups.
204 (do_all_continuations): Drop error argument. Reimplement on top
206 (discard_all_continuations): Reimplement on top of cleanups.
207 (add_intermediate_continuation): Drop the int argument of the
208 continuation hook argument. Add continuation_free_args argument.
209 Reimplement on top of cleanups.
210 (do_all_intermediate_continuations): Drop error argument.
211 Reimplement on top of cleanups.
212 (discard_all_intermediate_continuations): Reimplement on top of
215 * breakpoint.c (until_break_command_continuation): Drop error
216 argument. Add xfree as continuation argument deleter.
218 * inf-loop.c (inferior_event_handler): On error, discard all
219 continuations. Adjust to new do_all_intermediate_continuations
220 and do_all_continuations interfaces.
222 * infcmd.c (step_1_continuation): Drop error_p argument. Adjust.
223 Pass xfree as continuation argument deleter.
224 (finish_command_continuation): Drop error_p argument. Adjust.
225 (finish_command_continuation_free_arg): New.
226 (finish_command): Pass finish_command_continuation_free_arg as
227 continuation argument deleter. Adjust to new do_all_continuations
229 (attach_command_continuation): Drop error_p argument.
230 (attach_command_continuation_free_args): New.
231 (attach_command): Pass attach_command_continuation_free_args as
232 continuation argument deleter.
234 * interps.c (interp_set): Adjust to new do_all_continuations
237 * event-top.c (stdin_event_handler): In error, also discard the
238 intermediate continuations.
240 2008-07-12 Pedro Alves <pedro@codesourcery.com>
242 Replace struct continuation_args by void* and per command structs.
244 * top.c (execute_command): Remove unused arg1 and arg2 locals.
246 * breakpoint.c (struct until_break_command_continuation_args):
248 (until_break_command_continuation): Take a void* instead of a
249 continuations_arg. Adjust.
250 (until_break_command): Adjust to use struct
251 until_break_command_continuation_args instead of struct
254 * infcmd.c (struct step_1_continuation_args): New.
255 (step_1_continuation): Take a void* instead of a
256 continuations_arg. Adjust to use struct step_1_continuation_args.
257 (step_once): Adjust to use struct step_1_continuation_args.
259 (struct finish_command_continuation_args): New.
260 (finish_command_continuation): Take a void* instead of a
261 continuations_arg. Adjust to use struct
262 finish_command_continuation_args.
263 (finish_command): Adjust to use struct
264 finish_command_continuation_args.
265 (struct attach_command_continuation_args): New.
266 (attach_command_continuation): Take a void* instead of a
267 continuations_arg. Adjust to use struct
268 attach_command_continuation_args.
269 (attach_command): Adjust to use struct
270 attach_command_continuation_args.
272 * defs.h (struct continuation_arg): Delete.
273 (struct continuation): Replace the struct continuation_arg*
274 parameter of continuation_hook by a void*. Replace "arg_list"
275 member by a new "args" member with void* type.
276 (add_continuation, add_intermediate_continuation): Replace struct
277 continuation_arg type usages by void* usages.
279 * utils.c (add_continuation, do_all_continuations)
280 (add_intermediate_continuation)
281 (do_all_intermediate_continuations): Replace struct
282 continuation_arg type usages by void* usages. Pass "args" instead
285 2008-07-12 Pedro Alves <pedro@codesourcery.com>
287 * infrun.c (struct thread_stepping_state): Delete sal member.
288 (init_thread_stepping_state): Add local sal. Use it instead of
290 (handle_inferior_event): New local stop_pc_sal. Use it instead of
292 (step_into_function): Add local stop_func_sal. Use it instead of
295 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
297 Implement -exec-continue/-exec-interrupt --all.
298 * infcmd.c (continue_1): New, extracted from
299 (continue_command): ...here.
300 (interrupt_target_1): New, extracted from
301 (interrupt_target_command): ...here.
302 * inferior.h (continue_1, interrupt_target_1): New.
303 * mi/mi-main.c (mi_cmd_exec_continue)
304 (mi_cmd_exec_interrupt): Handle --all.
306 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
308 Implement --thread and --frame.
309 * gdbthread.h (find_thread_id): Declare.
310 * thread.c (find_thread_id): Make non-static.
311 * mi/mi-main.c (mi_cmd_execute): Switch to the right
312 thread and frame, if necessary.
313 * mi/mi-parse.c (mi_parse): Handle --thread and --frame.
314 * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
316 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
318 * infrun.c (resume): Discard cleanups on early exit path.
320 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
322 * infrun.c (normal_stop): For MI, report which threads
325 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
327 Report thread state in -thread-info output.
328 * thread.c (print_thread_info): Add new field "state".
330 2008-07-11 Pedro Alves <pedro@codesourcery.com>
332 * infrun.c (handle_inferior_event): Also ignore a
333 TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP.
335 2008-07-11 Tom Tromey <tromey@redhat.com>
337 * completer.c (complete_line_internal): New function, from
338 complete_line. Add 'for_help' parameter.
339 (complete_line): Use it.
340 (command_completer): Move later. Rewrite.
342 2008-07-11 Pedro Alves <pedro@codesourcery.com>
344 * thread.c (thread_apply_command): Move making the cleanup out of
347 2008-07-11 Pedro Alves <pedro@codesourcery.com>
351 * thread.c (enum thread_state): New.
352 (thread_state main_thread_running): Delete, in favor of...
353 (thread_state main_thread_state): ... this. Update throughout.
354 (clear_thread_inferior_resources): New, split from free_thread.
355 (free_thread): Call clear_thread_inferior_resources.
356 (init_thread_list): Set main thread to stopped state.
357 (add_thread_silent): Take care of PTID reuses.
358 (delete_thread): If deleting inferior_ptid or a thread with
359 refcount > 0, mark it as exited, but still keep it in the list.
360 Only notify of thread exits, if we haven't done so yet.
361 (iterate_over_threads): Make it safe to delete threads while
363 (do_captured_list_thread_ids): Don't account for exited threads.
364 (thread_alive): Check for the THREAD_EXITED state, and don't set
365 ptid to -1 on exited threads.
366 (set_running): Update to account for extra possible states.
367 (is_thread_state): New.
368 (is_stopped, is_exited): New.
369 (is_running): Implement in terms of is_thread_state.
370 (any_running): Update.
371 (print_thread_info): Update. Account for exited threads. Don't
372 warn about missed frame restoring here, its done in the cleanup.
373 (switch_to_thread): Don't read from a thread that has gone.
374 (restore_current_thread): In non-stop mode, do a full context
376 (restore_selected_frame): Add a frame_level argument. Rewrite.
377 (struct current_thread_cleanup): Add selected_frame_level and
379 (do_restore_current_thread_cleanup): Check if thread was stopped
380 and still is, and if the target has registers, stack and memory
381 before restoring the selected frame. Don't delete the cleanup
383 (restore_current_thread_cleanup_dtor): New.
384 (make_cleanup_restore_current_thread): Remove all arguments.
386 (thread_apply_all_command): Update. Prune threads.
387 (thread_apply_command): Update.
388 (thread_command): Account for currently selected exited thread.
389 (do_captured_thread_select): Check for a running thread. Prune
391 (_initialize_thread): Make "info threads", "thread", "thread
392 apply", and "thread apply all" appliable without a selected thread.
393 * gdbthread.h (struct thread_info): Replace running_ by state_.
395 (is_exited, is_stopped): Declare.
396 (make_cleanup_restore_current_thread): Remove all arguments.
397 * infrun.c: Include "event-top.h".
398 (fetch_inferior_event): In non-stop mode, restore selected thread
399 and frame after handling the event and running breakpoint
400 commands. Display GDB prompt if needed.
401 (normal_stop): In non-stop mode, don't print thread switching
403 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
404 (get_cmd_no_selected_thread_ok): New.
405 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New.
406 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
408 * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as
409 no-selected-thread ok.
410 * top.c (execute_command): Check for non no-selected-thread-ok
412 * linux-nat.c (struct saved_ptids, threads_to_delete)
413 (record_dead_thread, prune_lwps): Delete.
414 (exit_lwp): Unconditionally delete thread.
415 (linux_nat_resume): Remove prune_lwps call.
416 * infcmd.c (proceed_thread_callback): Check if !is_stopped instead
417 of is_running. Adjust to make_cleanup_restore_current_thread
419 * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the
420 selected thread has exited.
421 * inf-loop.c (inferior_event_handler): Don't display the prompt
423 * varobj.c (c_value_of_root): Update.
424 * defs.h (make_cleanup_dtor): Declare.
425 * utils.c (make_cleanup_dtor): New.
427 * Makefile.in (infrun.o): Depend on $(event_top_h).
429 2008-07-11 Pedro Alves <pedro@codesourcery.com>
431 Add "continue -a" and "interrupt -a" options for non-stop mode.
433 * infcmd.c (proceed_thread_callback, do_context_switch_to): New.
434 (continue_command): Add "-a" option.
435 (interrupt_target_command): Add "-a" option.
436 (_initialize_infcmd): Add extend help of continue and interrupt
437 command to mention the new "-a" option. Mark "continue" async ok.
439 2008-07-10 Doug Evans <dje@google.com>
441 Add "set print symbol-loading on|off".
442 * NEWS: Document new option.
443 * symfile.h (print_symbol_loading): Declare.
444 * symfile.c (print_symbol_loading): New global.
445 (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols
446 from ..." if print_symbol_loading.
447 (_initialize_symfile): Add set/show print symbol-loading.
448 * solib.c (solib_read_symbols): Only print "Loaded symbols for ..."
449 if print_symbol_loading.
451 2008-07-10 Pedro Alves <pedro@codesourcery.com>
453 Non-stop linux native.
455 * linux-nat.c (linux_test_for_tracefork): Block events while we're
457 (get_pending_status): Implement non-stop mode.
458 (linux_nat_detach): Stop threads before detaching.
459 (linux_nat_resume): In non-stop mode, always resume only a single
461 (linux_handle_extended_wait): On a clone event, in non-stop mode,
462 add new lwp to GDB's thread table, and mark as running, executing
463 and stopped appropriately.
464 (linux_nat_filter_event): Don't assume there are other running
465 threads when a thread exits.
466 (linux_nat_wait): Mark the main thread as running and executing.
467 In non-stop mode, don't stop all lwps.
468 (linux_nat_kill): Stop lwps before killing them.
469 (linux_nat_thread_alive): Use signal 0 to detect if a thread is
471 (send_sigint_callback): New.
472 (linux_nat_stop): New.
473 (linux_nat_add_target): Set to_stop to linux_nat_stop.
475 * linux-nat.h (thread_db_attach_lwp): Declare.
477 * linux-thread-db.c (thread_get_info_callback): Check for new
478 threads if we have none.
479 (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the
480 stopped lwp. Check for new threads if we have none.
481 (thread_db_attach_lwp): New.
482 (thread_db_init): Set proc_handle.pid to inferior_ptid.
483 (check_event): Set proc_handle.pid to the stopped lwp.
484 (thread_db_find_new_threads): Set proc_handle.pid to any stopped
485 lwp available, bail out if there is none.
487 * linux-fork.c (linux_fork_killall): Use SIGKILL instead of
490 2008-07-10 Kevin Buettner <kevinb@redhat.com>
492 * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
493 `current_pc' from CORE_ADDR to ULONGEST.
495 * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
498 2008-07-10 Jan Kratochvil <jan.kratochvil@redhat.com>
500 * NEWS (New commands): Mention "set disable-randomization".
501 * configure.ac: Add check for HAVE_PERSONALITY and
502 HAVE_DECL_ADDR_NO_RANDOMIZE.
503 * configure, config.in: Regenerate.
504 * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
505 [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
507 (disable_randomization, show_disable_randomization)
508 (set_disable_randomization): New.
509 (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
510 PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the
511 variable DISABLE_RANDOMIZATION.
512 (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
513 DISABLE_RANDOMIZATION.
515 2008-07-09 Pedro Alves <pedro@codesourcery.com>
517 Adjust all targets to new target_stop interface.
519 * gnu-nat.c (gnu_stop): Add ptid argument.
520 * go32-nat.c (go32_stop): Add ptid argument.
521 (go32_create_inferior): Pass inferior_ptid to go32_stop.
522 * hpux-thread.c (hpux_thread_stop): Add ptid argument.
523 * monitor.c (monitor_stop): Add ptid argument.
524 (monitor_open): Pass inferior_ptid to monitor_stop.
525 (monitor_interrupt): Pass inferior_ptid to target_stop.
526 (monitor_stop): Add ptid argument.
527 * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
528 (procfs_create_inferior): Add ptid argument.
529 * procfs.c (procfs_stop): Add ptid argument.
530 * remote-m32r-sdi.c (m32r_stop): Add ptid argument.
531 * remote-sim.c (gdbsim_stop): Add ptid argument.
532 * sol-thread.c (sol_thread_stop): Add ptid argument.
533 * win32-nat.c (win32_stop): Add ptid argument.
535 2008-07-09 Pedro Alves <pedro@codesourcery.com>
537 Non-stop inferior control.
539 * infrun.c (resume): In non-stop mode, always resume just one
541 (proceed): Don't call prepare_to_proceed in non-stop mode.
542 (fetch_inferior_event): In non-stop mode, switch context before
544 (error_is_running, ensure_not_running): New.
545 (handle_inferior_event): In non-stop mode: Mark only the event
546 thread as stopped. Require that the target module manages adding
547 threads to the thread list. Assert that there isn't a
548 deferred_step_ptid set. Don't switch to infwait_thread_hop_state.
549 (normal_stop): Only mark not-running if inferior hasn't exited.
550 In non-stop mode, only mark the event thread.
552 * thread.c:Include "cli/cli-decode.h".
553 (print_thread_info): Don't read from a running thread.
554 Output "(running)" if thread is running.
555 (switch_to_thread): Don't read stop_pc if thread is executing.
556 (do_restore_current_thread_cleanup): Don't write to a running
558 (thread_apply_all_command): Don't read from a running thread. In
559 non-stop mode, do a full context-switch instead of just switching
561 (thread_apply_command): In non-stop mode, do a full context-switch
562 instead of just switching threads.
563 (do_captured_thread_select): Likewise. Inform user if selected
565 (_initialize_thread): Mark "info threads" and "thread" and
568 * inf-loop.c (inferior_event_handler): In non-stop mode, don't
569 unregister the target from the event loop.
571 * infcmd.c (continue_command, step_1, jump_command)
572 (signal_command): Ensure the selected thread isn't running.
573 (interrupt_target_command): In non-stop mode, interrupt only the
576 * inferior.h (error_is_running, ensure_not_running): Declare.
578 * target.h (struct target_ops): Add ptid argument to the to_stop
580 (target_stop): Add ptid_t argument.
582 * target.c (update_current_target): Add ptid argument to to_stop's
584 (debug_to_stop): Add ptid_t argument.
585 (debug_to_rcmd): Set to_stop_ptid.
587 * remote.c (remote_stop): Add ptid_t argument.
588 (async_remote_interrupt): Add inferior_ptid to target_stop.
589 * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
591 * Makefile.in (thread.o): Depend on $(cli_decode_h).
593 2008-07-09 Pedro Alves <pedro@codesourcery.com>
595 Don't rely on ecs->wait_for_more.
597 * infrun.c (proceed): Clear the stepping state, set
598 previous_inferior_ptid and clear infwait state.
599 (wait_for_inferior): Don't clear the stepping state, set
600 previous_inferior_ptid, or clear the infwait state here.
601 (fetch_inferior_event): Don't clear the stepping state, set
602 previous_inferior_ptid, or clear the infwait state here. Don't
603 condition on wait_for_more.
605 2008-07-09 Pedro Alves <pedro@codesourcery.com>
607 Refactor infrun a bit.
609 * infrun.c (currently_stepping): Take a struct
610 thread_stepping_state instead of an execution_control_state.
611 (struct thread_stepping_state): New, split from
612 execution_control_state.
613 (gtss, tss): New globals.
614 (proceed): Clear the stepping state, set previous_inferior_ptid
615 and clear infwait state.
616 (init_wait_for_inferior): Clear the stepping state,
617 previous_inferior_ptid and infwait state.
618 (waiton_ptid, infwait_state): New, split from
619 execution_control_state.
620 (struct execution_control_state): Members that persist through
621 events moved out to either struct thred_stepping_state or made
622 global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
623 (wait_for_inferior, fetch_inferior_event): Use local
624 execution_control_state. Update to execution_control_state split.
625 (init_execution_control_state): Adjust.
626 (init_thread_stepping_state): New, extracted from
627 init_execution_control_state.
628 (context_switch): Take a ptid instead of an
629 execution_control_state.
630 (context_switch_to): Adjust.
631 (adjust_pc_after_break): Adjust.
632 (init_infwait_state): New.
633 (handle_inferior_event): Adjust.
635 2008-07-09 Pedro Alves <pedro@codesourcery.com>
636 Vladimir Prus <vladimir@codesourcery.com>
640 * gdbthread.h: Remove unneeded forward declarations.
641 Include "inferior.h".
642 (struct thread_info): Add continuations,
643 intermediate_continuations, proceed_to_finish, step_over_calls,
644 stop_step, step_multi and stop_signal members.
645 (save_infrun_state): Add continuations,
646 intermediate_continuations, proceed_to_finish, step_over_calls,
647 stop_step, step_multi, stop_signal and stop_bpstat parameters.
648 (load_infrun_state): Add continuations,
649 intermediate_continuations, proceed_to_finish, step_over_calls,
650 stop_step, step_multi, stop_signal and stop_bpstat parameters.
652 * thread.c (load_infrun_state): In non-stop mode, load
653 continuations, intermediate_continuations, proceed_to_finish,
654 step_over_calls, stop_step, step_multi and stop_signal.
655 (save_infrun_state): Store continuations,
656 intermediate_continuations, proceed_to_finish, step_over_calls,
657 stop_step, step_multi, stop_signal and stop_bpstat.
658 (save_infrun_state): Store continuations,
659 intermediate_continuations, proceed_to_finish, step_over_calls,
660 stop_step, step_multi, stop_signal and stop_bpstat.
661 (free_thread): Clear The thread's stop_bpstat.
663 * inferior.h (context_switch_to): Declare.
665 * infrun.c (ecss): New global.
666 (context_switch): Context switch continuations,
667 intermediate_continuations, proceed_to_finish, step_over_calls,
668 stop_step, step_multi, stop_signal and stop_bpstat.
669 (wait_for_inferior): Use global ecss.
670 (async_ecss, async_ecs): Delete.
671 (fetch_inferior_event): Use global ecss.
672 (context_switch_to): New.
674 * top.c (execute_command): In non-stop, only check if the current
675 thread is running, in all-stop, check if there's any thread
678 * breakpoint.c (bpstat_remove_breakpoint): New.
679 (bpstat_remove_breakpoint_callback): New.
680 (delete_breakpoint): Clear the stop_bpstats of all threads.
682 * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
683 current thread is running, in all-stop, check if there's any
686 * Makefile.in (gdbthread_h): Depend on $(inferior_h).
688 2008-07-09 Pedro Alves <pedro@codesourcery.com>
692 * inferior.h (non_stop): Declare.
693 * infrun.c (non_stop, non_stop_1): New.
694 (set_non_stop, show_non_stop): New.
695 (_initialize_infrun): Add "set/show non-stop" command.
697 2008-07-09 Pedro Alves <pedro@codesourcery.com>
699 Adjust fork/vfork/exec to pass ptids around.
701 * target.h (struct target_waitstatus): Store related_pid as a ptid.
702 (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
704 * breakpoint.h (struct breakpoint): Change forked_inferior_pid
706 * breakpoint.c (print_it_typical, bpstat_check_location)
707 (print_one_breakpoint_location, set_raw_breakpoint_without_location)
708 (create_fork_vfork_event_catchpoint): Adjust.
709 * infrun.c (fork_event): Change parent_pid and child_pid types to
711 (follow_exec, inferior_has_forked, inferior_has_vforked)
712 (inferior_has_execd): Take a ptid_t and don't trim it.
713 * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
714 * linux-nat.c (linux_child_follow_fork): Adjust.
715 * inf-ptrace.c (inf_ptrace_wait): Adjust.
716 * inf-ttrace.c (inf_ttrace_wait): Adjust.
717 * win32-nat.c (get_win32_debug_event): Don't set related_pid.
719 2008-07-09 Pedro Alves <pedro@codesourcery.com>
721 Add "executing" property to threads.
723 * inferior.h (target_executing): Delete.
724 * gdbthread.h (struct thread_info): Add executing_ field.
725 (set_executing, is_executing): New.
726 * thread.c (main_thread_executing): New.
727 (init_thread_list): Clear it and also main_thread_running.
728 (is_running): Return false if target has no execution.
729 (any_running, is_executing, set_executing): New.
731 * top.c: Include "gdbthread.h".
732 (target_executing): Delete.
733 (execute_command): Replace target_executing check by any_running.
734 * event-top.c: Include "gdbthread.h".
735 (display_gdb_prompt, command_handler): Replace target_executing by
737 * inf-loop.c: Include "gdbthread.h". Don't mark as not executing
738 here. Replace target_executing by is_running.
739 * infrun.c (handle_inferior_event): Mark all threads as
741 * linux-nat.c (linux_nat_resume): Don't mark thread as executing
743 * stack.c (get_selected_block): Return null if inferior is
745 * target.c (target_resume): Mark resumed ptid as executing.
746 * breakpoint.c (until_break_command): Replace target_executing
747 check by is_executing.
748 * remote.c (remote_async_resume): Don't mark inferior as executing
750 * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
753 * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
754 (mi_execute_async_cli_command): Replace target_executing by
757 * frame.c (get_current_frame): Error out if the current thread is
759 (has_stack_frames): New.
760 (get_selected_frame, deprecated_safe_get_selected_frame): Check
763 * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
766 2008-07-09 Pedro Alves <pedro@codesourcery.com>
768 * symfile.c (load_command): Reopen the exec file and reread
769 symbols before anything else.
771 2008-07-09 Pedro Alves <pedro@codesourcery.com>
773 * remote-sim.c: Include gdbthread.h.
774 (remote_sim_ptid): New global.
775 (gdbsim_create_inferior): Silently add the main task to GDB's
777 (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
778 task from GDB's thread list.
779 (gdbsim_resume): Adjust to use remote_sim_ptid.
780 (gdbsim_thread_alive, gdbsim_pid_to_str): New.
781 (init_gdbsim_ops): Register gdbsim_thread_alive and
783 (_initialize_remote_sim): Initialize remote_sim_ptid.
784 * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
786 2008-07-09 Pedro Alves <pedro@codesourcery.com>
788 * monitor (monitor_ptid): New global.
789 (monitor_open): Silently add the main task to GDB's thread list.
790 (monitor_close, monitor_mourn_inferior): Silently delete the main
791 task from GDB's thread list.
792 (monitor_thread_alive, monitor_pid_to_str): New.
793 (init_base_monitor_ops): Register monitor_thread_alive and
795 (_initialize_remote_monitors): Initialize monitor_ptid.
797 * gdbthread.h (delete_thread_silent): Declare.
798 * thread.c (delete_thread): Rename to ...
799 (delete_thread_1): ... this. Add "silent" parameter. If silent,
800 don't do exit notifications.
801 (delete_thread, delete_thread_silent): New, as wrappers to
804 2008-07-08 Pedro Alves <pedro@codesourcery.com>
806 * breakpoint.c (update_global_location_list): Add boolean
807 "should_insert" argument. Only insert locations if caller told it
809 (update_global_location_list_nothrow): Add boolean "should_insert"
810 argument. Pass it to update_global_location_list.
811 (insert_breakpoints, create_longjmp_breakpoint)
812 (create_overlay_event_breakpoint, enable_overlay_breakpoints)
813 (create_thread_event_breakpoint, create_solib_event_breakpoint)
814 (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
815 (enable_watchpoints_after_interactive_call_stop)
816 (set_momentary_breakpoint, create_breakpoints)
817 (break_command_really, watch_command_1)
818 (create_ada_exception_breakpoint, update_breakpoint_locations)
819 (do_enable_breakpoint, enable_command): Pass true to
820 update_global_location_list.
821 (bpstat_stop_status, disable_overlay_breakpoints)
822 (disable_watchpoints_before_interactive_call_start)
823 (delete_breakpoint, disable_breakpoint, disable_command): Pass
824 false to update_global_location_list.
825 (update_breakpoints_after_exec): Don't temporarily disable
826 always-inserted mode.
828 2008-07-08 Pedro Alves <pedro@codesourcery.com>
830 * breakpoint.c (mark_breakpoints_out): Make public.
831 (update_breakpoints_after_exec): Don't call mark_breakpoints_out
832 here. Update comment.
833 * breakpoint.h (mark_breakpoints_out): Declare.
835 * linux-nat.c (linux_handle_extended_wait): On
836 TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
837 * inf-ttrace.c (inf_ttrace_wait): Likewise.
839 2008-07-08 Pedro Alves <pedro@codesourcery.com>
841 * infrun.c (follow_exec): Reset shared libraries before adding the
844 2008-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
846 * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
848 2008-07-07 Pedro Alves <pedro@codesourcery.com>
850 * i386-dicos-tdep.c: Include "inferior.h".
851 (i386_dicos_frame_align): New.
852 (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call
853 dummy location ON_STACK.
854 * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
856 2008-07-07 Joel Brobecker <brobecker@adacore.com>
858 * gstdint.h: New file.
860 2008-07-05 Vladimir Prus <vladimir@codesourcery.com>
862 * mi/mi-interp.c (mi_on_resume): Don't try to report
863 resumed thread it the thread list is empty.
865 2008-07-05 Pierre Muller <muller@ics.u-strasbg.fr>
867 * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
868 completer for set to filename_completer.
872 2008-07-04 Vladimir Prus <vladimir@codesourcery.com>
874 Implement -target-attach.
875 * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
877 2008-06-21 Hui Zhu <teawater@gmail.com>
879 * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
881 2008-07-03 Pedro Alves <pedro@codesourcery.com>
883 * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
884 * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
886 * target.h (struct target_ops): Add to_attach_no_wait member.
887 (target_attach_no_wait): New.
888 * target.c (update_current_target): Inherit to_attach_no_wait.
890 * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
891 target_attach_no_wait runtime check.
893 * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
894 * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
897 2008-07-03 Pedro Alves <pedro@codesourcery.com>
899 * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
900 on debug_displaced being set.
902 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
904 * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
905 directly instead of get_frame_id.
907 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
909 * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
910 (deal_with_atomic_sequence): Update BC masks.
911 (rs6000_gdbarch_init): Init displaced stepping infra-structure.
912 Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
914 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
916 * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
917 register, not the previous frame's.
919 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
921 * source.c (select_source_symtab): Make sure we skip namespace
922 symtabs when showing cpp source code.
924 2008-06-30 Hans-Peter Nilsson <hp@axis.com>
926 * MAINTAINERS (Authorized committers): Fix my email address.
928 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
930 * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
931 -target-download and -target-select via CLI, so that
932 the quoting rules are the same as they were (unfortunately)
933 in all prior gdb releases.
934 * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
935 (mi_cmd_target_download, mi_cmd_target_select): Remove.
936 * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
937 (mi_cmd_target_download, mi_cmd_target_select): Remove.
938 (mi_cmd_execute): Set current_token even for commands
941 2008-06-28 Ulrich Weigand <uweigand@de.ibm.com>
943 * alphafbsd-tdep.c: Update for unwinder changes.
944 * alpha-linux-tdep.c: Likewise.
945 * alphanbsd-tdep.c: Likewise.
946 * alphaobsd-tdep.c: Likewise.
947 * avr-tdep.c: Likewise.
948 * cris-tdep.c: Likewise.
949 * frv-linux-tdep.c: Likewise.
950 * frv-tdep.c: Likewise.
951 * h8300-tdep.c: Likewise.
952 * hppa-linux-tdep.c: Likewise.
953 * iq2000-tdep.c: Likewise.
954 * m32c-tdep.c: Likewise.
955 * m32r-linux-tdep.c: Likewise.
956 * m32r-tdep.c: Likewise.
957 * m68hc11-tdep.c: Likewise.
958 * mep-tdep.c: Likewise.
959 * mn10300-tdep.c: Likewise.
960 * mt-tdep.c: Likewise.
961 * score-tdep.c: Likewise.
962 * sh64-tdep.c: Likewise.
963 * sh-tdep.c: Likewise.
964 * sparc64fbsd-tdep.c: Likewise.
965 * sparc64nbsd-tdep.c: Likewise.
966 * sparc64obsd-tdep.c: Likewise.
967 * v850-tdep.c: Likewise.
968 * vaxobsd-tdep.c: Likewise.
969 * vax-tdep.c: Likewise.
970 * xstormy16-tdep.c: Likewise.
972 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
974 * mi/mi-main.c (enum captured_mi_execute_command_actions)
975 (captured_mi_execute_command_args): Remove.
976 (captured_mi_execute_command): Cast the closure to mi_parse
977 pointer, not to captured_mi_execute_command_args, and don't
978 set the action field thereof.
979 (mi_execute_command): Pass struct mi_parse, not
980 captured_mi_execute_command_args to captured_mi_execute_command.
981 (mi_execute_command): Remove (dead) code for suppressing
984 2008-06-28 Pedro Alves <pedro@codesourcery.com>
986 * linux-nat.c (enum sigchld_state): New.
987 (linux_nat_async_events_state): Renamed from
988 linux_nat_async_events_enabled.
989 (linux_nat_event_pipe_push, my_waitpid): Adjust.
990 (sigchld_default_action): New.
991 (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
993 (linux_nat_create_inferior): Set events state to sigchld_default
995 (linux_nat_resume): Adjust.
996 (linux_nat_wait): Call linux_nat_async_events unconditionally.
997 (sigchld_handler): Adjust.
998 (linux_nat_async_mask): Don't set SIGCHLD actions here.
999 (get_pending_events): Adjust.
1000 (linux_nat_async_events): Rewrite to handle enum sigchld_state
1001 instead of a boolean.
1002 (linux_nat_async): Adjust.
1003 (_initialize_linux_nat): Capture default SIGCHLD action into
1004 sigchld_default_action.
1006 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
1008 * breakpoint.c (moribund_locations): New.
1009 (bpstat_stop_status): Process moribund locations.
1010 (update_global_location_list): Add removed
1011 locations to moribund_locations.
1012 (breakpoint_retire_moribund): New.
1013 * breakpoint.h (struct bp_location): New field
1014 events_till_retirement.
1015 (breakpoint_retire_moribund): Declare.
1016 * thread.c (thread_count): New.
1017 * infrun.c (handle_inferior_event): Call
1018 breakpoint_retire_moribund.
1019 * gdbthread.h (thread_count): Declare.
1021 2008-06-27 Joseph Myers <joseph@codesourcery.com>
1023 * dfp.c (decimal_convert): Call match_endianness before and after
1026 2008-06-27 Jonathan Larmour <jifl@eCosCentric.com>
1028 * remote.c (remote_insert_breakpoint): Ensure that if Z0
1029 unsupported and we fall back to memory_insert_breakpoint, we
1030 use the unmodified requested address.
1032 2008-06-27 Joel Brobecker <brobecker@adacore.com>
1034 * dwarf2read.c (read_attribute_value): Issue a complaint when
1035 adjusting size attribute values of 0xffffffff as zero.
1037 2008-06-27 Joseph Myers <joseph@codesourcery.com>
1039 * i386-tdep.c (i386_16_byte_align_p): New.
1040 (i386_push_dummy_call): Determine stack space required for
1041 arguments going forwards allowing for 16-byte alignment, then push
1042 arguments going forwards.
1044 2008-06-27 Pedro Alves <pedro@codesourcery.com>
1046 * infrun.c (start_remote): Don't clear thread list here.
1047 * monitor.c (monitor_open): Include "gdbthread.h". Clear thread
1049 * remote.c (record_currthread): Upgrade the main thread and its
1050 entry in the thread list if this is the first time we hear about
1052 (remote_thread_alive): Consider magic_null_ptid or a ptid without
1053 a tid member always alive.
1054 (remote_find_new_threads): Don't update the main thread here.
1055 (remote_start_remote): Clear thread list here. Always add the
1057 (extended_remote_attach_1): Add the main thread here.
1058 (extended_remote_mourn_1): Re-add the main thread here.
1059 (extended_remote_create_inferior_1): Add a main thread.
1061 * Makefile.in (monitor.o): Depend on $(gdbthread_h).
1063 2008-06-27 Pedro Alves <pedro@codesourcery.com>
1065 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
1067 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
1069 (general_thread, continue_thread): Change type to ptid_t.
1070 (record_currthread): Take a ptid_t parameter instead of an
1072 (MAGIC_NULL_PID): Delete.
1073 (set_thread): Take a ptid_t parameter and adjust.
1074 (set_general_thread, set_continue_thread): New.
1075 (remote_thread_alive, remote_newthread_step)
1076 (remote_current_thread, remote_find_new_threads)
1077 (remote_threads_info, remote_start_remote, remote_vcont_resume)
1078 (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
1079 (threadalive_test, remote_pid_to_str)
1080 (remote_get_thread_local_address): Adjust.
1081 (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
1082 and any_thread_ptid.
1084 2008-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1086 * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
1087 * configure: Regenerated.
1089 2008-06-26 Joel Brobecker <brobecker@adacore.com>
1091 * dwarf2read.c (read_attribute_value): Treat size attribute
1092 values of 0xffffffff as if the attribute value was zero.
1094 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
1096 * linux-nat.c: Add description of overall logic.
1098 2008-06-26 Daniel Jacobowitz <dan@codesourcery.com>
1100 * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
1101 (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
1102 all dependencies on $(gdb_stdint_h).
1103 (distclean): Do not delete gdb_stdint.h.
1104 * acinclude.m4: Do not use stdint.m4.
1105 * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
1106 uintptr_t, and gdb_stdint.h.
1107 * defs.h: Include <stdint.h>.
1108 * gdb_thread_db.h: Assume stdint.h is already included.
1109 * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
1110 rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
1111 include gdb_stdint.h.
1112 * configure, config.in: Regenerate.
1114 2008-06-26 Joseph Myers <joseph@codesourcery.com>
1116 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
1117 decimal floating-point values in GPRs for soft-float.
1118 (do_ppc_sysv_return_value): Handle returning decimal
1119 floating-point values in GPRs for soft-float.
1121 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
1123 * target.c (target_read_until_error): New.
1124 * target.h (target_read_until_error): Declare.
1125 * mi/mi-main.c (mi_cmd_data_read_memory): Use
1126 target_read_until_error.
1128 2008-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1130 Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
1131 * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
1132 after the DECFLOAT detection to fix a memory leak. Remove the
1133 redundant NUM initialization. Protect the DECFLOAT detection memory
1134 access before the P block. Restore the P memory content for the
1137 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
1139 Kill the return value for all MI command functions.
1140 * mi/mi-cmds.h (enum mi_cmd_result): Remove.
1141 (mi_cmd_argv_ftype): Change return type to void.
1143 * mi/mi-main.c: Adjust all function that implement
1144 MI commands to return nothing.
1145 (struct captured_mi_execute_command_actions):
1146 Remove the rc field.
1147 (mi_cmd_execute): Return nothing.
1148 (mi_execute_async_cli_command): Return nothing.
1149 (mi_cmd_exec_interrupt): Don't print ^done here.
1150 (mi_cmd_target_select): Don't print ^connected here.
1151 (captured_mi_execute_command): Don't check for MI_CMD_DONE.
1152 Special-case -target-select and output ^connected, not ^done.
1154 * mi/mi-cmd-break.c: Adjust.
1155 * mi/mi-cmd-disas.c: Adjust.
1156 * mi/mi-cmd-env.c: Adjust.
1157 * mi/mi-cmd-file.c: Adjust.
1158 * mi/mi-cmd-stack.c: Adjust.
1159 * mi/mi-cmd-target.c: Adjust.
1160 * mi/mi-cmd-var.c: Adjust.
1161 * mi/mi-interp.c: Adjust.
1162 * mi/mi-symbol-cmds.c: Adjust.
1164 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
1166 Emit ^running via observer.
1167 * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
1169 (mi_on_resume): Print ^running if not previously output.
1170 * mi/mi-main.c (running_result_record_printed): New.
1171 (captured_mi_execute_command): Reset
1172 running_result_record_printed. Use running_result_record_printed
1173 to decide if we should skip ^done.
1174 (mi_execute_async_cli_command): Don't print ^running here.
1175 * mi/mi-main.h (current_token, running_result_record_printed):
1178 2008-06-24 Michael Snyder <msnyder@specifix.com>
1180 * infrun.c (_initialize_infrun): White space and typo fix.
1182 2008-06-23 Christopher Faylor <me.gdb.changelog@cgf.cx>
1184 * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
1185 (do_initial_win32_stuff): Fix problem with inability to set breakpoints
1186 when first loading DLL with "dll" command.
1188 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
1190 * gnu-nat.c (proc_string): Use capital T for "Thread".
1192 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
1194 * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
1196 2008-06-18 Joel Brobecker <brobecker@adacore.com>
1198 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
1199 the target cannot run.
1201 2008-06-18 Joel Brobecker <brobecker@adacore.com>
1203 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
1204 we're attaching to a running process.
1206 2008-06-18 Pierre Muller <muller@ics.u-strasbg.fr>
1208 * win32-nat.c (handle_load_dll): Give dll name and load address
1209 if debug_events is on.
1210 (handle_unload_dll): Likewise.
1212 2008-06-14 Vladimir Prus <vladimir@codesourcery.com>
1214 Don't suppress *running when doing finish.
1215 * infcall.c (call_function_by_hand): Set both
1216 suppress_resume_observer and suppress_stop_observer.
1217 * infcmd.c (suppress_run_stop_observers): Split into...
1218 (suppress_resume_observer, suppress_stop_observer): ...those.
1219 (finish_command_continuation): Clear suppress_stop_observer.
1220 (finish_command): Set suppress_stop_observer.
1221 * inferior.h (suppress_run_stop_observers): Split into...
1222 (suppress_resume_observer, suppress_stop_observer): ...those.
1223 * infrun.c (normal_stop): Check for suppress_stop_observer.
1224 * thread.c (set_running): Check for suppress_resume_observer.
1226 2008-06-12 Pedro Alves <pedro_alves@portugalmail.pt>
1227 Pierre Muller <muller@ics.u-strasbg.fr>
1229 * gdbarch.sh (gdbarch_skip_main_prologue): New.
1230 * gdbarch.h, gdbarch.c: Regenerate.
1231 * i386-tdep.h (i386_skip_main_prologue): Declare.
1232 * i386-tdep.c (i386_skip_main_prologue): New.
1233 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
1234 i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
1235 * symtab.c (find_function_start_sal): When pc points at the "main"
1236 function, call gdbarch_skip_main_prologue.
1238 2008-06-11 Daniel Jacobowitz <dan@codesourcery.com>
1240 * value.c (value_primitive_field): Fetch lazy register values.
1242 2008-06-11 Pedro Alves <pedro@codesourcery.com>
1244 * NEWS: Mention support removal of undocumented S AA p PID stop
1247 * remote.c (remote_wait): Remove undocumented S AA p PID support.
1249 2008-06-10 Stan Shebs <stan@codesourcery.com>
1251 * MAINTAINERS: Update my affiliation and address.
1253 2008-06-10 Andreas Schwab <schwab@suse.de>
1255 * top.c (print_gdb_version): Don't print final newline.
1257 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
1260 * Makefile.in: Update dependencies.
1261 * gdbthread.h (struct thread_info): New field
1263 (set_running, is_running): New.
1264 * thread.c (set_running, is_running): New.
1265 * inferior.h (suppress_normal_stop_observer): Rename to...
1266 (suppress_run_stop_observers): ..this.
1267 * infcmd.c (suppress_normal_stop_observer): Rename to...
1268 (suppress_run_stop_observers): ..this.
1269 (finish_command_continuation, finish_command): Adjust.
1270 * infcall.c (call_function_by_hand): Adjust.
1271 * infrun.c (normal_stop): Call set_running.
1272 * target.c (target_resume): New. Call set_running.
1273 * target.h (target_resume): Convert from macro to
1276 * mi/mi-interp.c (mi_on_resume): New.
1277 (mi_interpreter_init): Register mi_on_resume.
1279 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
1281 Use observers to report stop events in MI.
1282 * mi/mi-interp.c (mi_on_normal_stop): New.
1283 (mi_interpreter_init): Register mi_on_normal_stop.
1284 (mi_interpreter_exec_continuation): Remove.
1285 (mi_cmd_interpreter_exec): Don't register the above.
1286 * mi/mi-main.c (captured_mi_execute_command): Don't care
1287 about sync_execution.
1288 (mi_execute_async_cli_command): Don't install continuation. Don't
1290 (mi_exec_async_cli_cmd_continuation): Remove.
1292 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
1294 Suppress normal stop observer when it's problematic.
1295 * inferior.h (suppress_normal_stop_observer): New.
1296 * infcall.c (call_function_by_hand): Disable stop events when
1297 doing function calls.
1298 * infmcd.c (suppress_normal_stop_observer): New.
1299 (finish_command_continuation): Call normal_stop observer
1301 (finish_command): Disable stop events inside proceed.
1302 * infrun.c (normal_stop): Don't call normal stop observer if
1303 suppressed of if multi-step is in progress.
1305 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
1308 * infrun.c (finish_command): Don't pass cleanup
1310 (finish_command_continuation): Don't grab cleanup from
1311 the passed data, as we don't use, and cannot, use it anyway.
1313 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
1315 Introduce common cleanup for restoring integers.
1316 * defs.h (make_cleanup_restore_integer): New declaration.
1317 (struct cleanup): New field free_arg.
1318 (make_my_cleanup_2): New.
1319 * utils.c (restore_integer_closure, restore_integer)
1320 (make_cleanup_restore_integer): New.
1321 (make_my_cleanup): Initialize the free_arg field and
1322 renamed to make_my_cleanup_2.
1323 (do_my_cleanups): Call free_arg.
1324 (discard_cleanups): Call free_arg.
1325 * breakpoint.c (restore_always_inserted_mode): Remove.
1326 (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
1328 2008-06-09 Doug Evans <dje@google.com>
1330 * remote.c (remote_wait): Include beginning of malformed packet
1333 2008-06-09 Tom Tromey <tromey@redhat.com>
1335 * completer.c (complete_line): Don't special-case
1336 expression_completer.
1337 (expression_completer): Only pass last word to
1339 * c-exp.y (yylex): Check 'token', not 'operator'.
1341 2008-06-09 Daniel Jacobowitz <dan@codesourcery.com>
1343 * configure.ac (build_warnings): Add -Wno-format for mingw.
1344 * configure: Regenerated.
1346 2008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
1348 * NEWS: Make indentation consistent. Move exec tracing entry out
1349 of remote packet list.
1351 2008-06-06 Tom Tromey <tromey@redhat.com>
1353 * value.h (evaluate_subexpression_type, extract_field_op):
1355 * printcmd.c (_initialize_printcmd): Use expression_completer for
1356 'p', 'inspect', 'call'.
1357 * parser-defs.h (parse_field_expression): Declare.
1358 * parse.c: Include exceptions.h.
1359 (in_parse_field, expout_last_struct): New globals.
1360 (mark_struct_expression): New function.
1361 (prefixify_expression): Return int.
1362 (prefixify_subexp): Return int. Use expout_last_struct.
1363 (parse_exp_1): Update.
1364 (parse_exp_in_context): Add 'out_subexp' argument. Handle
1366 (parse_field_expression): New function.
1367 * expression.h (parse_field_expression): Declare.
1368 (in_parse_field): Likewise.
1369 * eval.c (evaluate_subexpression_type): New function.
1370 (extract_field_op): Likewise.
1371 * completer.h (expression_completer): Declare.
1372 * completer.c (expression_completer): New function.
1373 (count_struct_fields, add_struct_fields): New functions.
1374 * c-exp.y (yyparse): Redefine.
1375 (COMPLETE): New token.
1376 (exp): New productions.
1377 (saw_name_at_eof, last_was_structop): New globals.
1378 (yylex): Return COMPLETE when needed. Recognize in_parse_field.
1379 (c_parse): New function.
1380 * breakpoint.c (_initialize_breakpoint): Use expression_completer
1381 for watch, awatch, and rwatch.
1382 * Makefile.in (parse.o): Depend on exceptions_h.
1384 2008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
1387 * gdb/valopts.c (find_overload_match): Handle references
1390 2008-06-06 Paul N. Hilfinger <hilfinger@adacore.com>
1392 * ada-lang.c (ada_value_assign): Correct big-endian case to take into
1393 account the bitsize of the 'from' operand.
1395 2008-06-06 Pedro Alves <pedro@codesourcery.com>
1397 * annotate.h (annotate_thread_changed): Declare.
1399 2008-06-06 Nick Roberts <nickrob@snap.net.nz>
1401 * annotate.c (annotate_thread_changed): New function.
1402 * thread.c (thread_command) : Use it.
1403 * infrun.c (normal_stop): Use it.
1405 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
1406 Nathan Sidwell <nathan@codesourcery.com>
1407 Joseph Myers <joseph@codesourcery.com>
1409 * acinclude.m4: Include ../config/acx.m4.
1410 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
1411 * configure, config.in: Regenerate.
1412 * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
1414 * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
1416 2008-06-05 Pedro Alves <pedro@codesourcery.com>
1418 Replace 'target async' by 'maintenance set remote-async' and
1419 'target remote' combination.
1421 * remote.c (remote_async_wait): Merge into remote_wait, and
1423 (remote_async_permitted, remote_async_permitted_set): New
1425 (set_maintenance_remote_async_permitted)
1426 (show_maintenance_remote_async_permitted): New functions.
1427 (remote_async_ops, extended_async_remote_ops): Delete.
1428 (remote_async_open, extended_remote_async_open): Delete.
1429 (remote_open_1): Drop async_p parameter. Update callers. Replace
1430 async_p with remote_async_permitted checks.
1431 (extended_async_remote_attach): Delete.
1432 (remote_resume, remote_async_resume): Merge and leave remote_resume.
1433 (remote_async_terminal_inferior): Rename to...
1434 (remote_terminal_inferior): ... this, and add
1435 remote_async_termitted check.
1436 (remote_async_terminal_ours): Rename to...
1437 (remote_terminal_ours): ... this, and add remote_async_termitted
1439 (remote_wait, remote_async_wait): Merge and leave remote_wait
1441 (remote_kill, remote_async_kill): Merge and leave remote_kill
1443 (remote_async_mourn, extended_async_remote_mourn): Delete.
1444 (extended_remote_create_inferior_1): Drop async_p parameter.
1445 Update callers. Always use extended_remote_ops.
1446 (extended_remote_async_create_inferior): Delete.
1447 (remote_return_zero): Delete.
1448 (init_remote_ops): Register remote_can_async_p, remote_async,
1449 remote_async_mask, remote_terminal_inferior and
1450 remote_terminal_ours.
1451 (remote_can_async_p, remote_is_async_p): Check for
1452 remote_async_permitted.
1453 (init_remote_async_ops, init_extended_async_remote_ops): Remove.
1454 (set_remote_cmd): Don't add async and extended-async targets.
1455 (_initialize_remote): Add set/show remote-async maintenance
1458 2008-06-05 Pedro Alves <pedro@codesourcery.com>
1460 * remote.c (kill_kludge): Delete.
1461 (remote_wait, remote_async_wait): Don't set it.
1462 (remote_kill, remote_async_kill): Don't do anything with it.
1464 2008-06-05 Pedro Alves <pedro@codesourcery.com>
1466 * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
1468 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
1470 * bcache.c (bcache_data): Call deprecated_bcache_added function.
1471 (deprecated_bcache_added): New function name. Body of function
1472 bcache_data is used here with the addition of 'added' argument.
1473 * bcache.h (deprecated_bcache_added): New function.
1474 * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
1475 work from add_psymbol_to_list - initialises partial symbol and stashes
1476 it in objfile's cache.
1477 (append_psymbol_to_list): New helper function, takes other part of
1478 work from add_psymbol_to_list - adds partial symbol to the given list.
1479 (add_psymbol_to_list): Call helper functions instead of doing work
1480 here. If adding to global list, do not duplicate partial symbols in the
1483 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
1485 * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
1486 'exception caught|thrown' message.
1488 2008-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1490 * Makefile.in: Update dependencies.
1491 * dwarf2expr.c: New include "gdb_assert.h".
1492 (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
1493 (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
1494 (execute_stack_op): Error out on too large RECURSION_DEPTH.
1495 Increase/decrease RECURSION_DEPTH around the function.
1497 2008-06-05 Daniel Jacobowitz <dan@codesourcery.com>
1499 * remote.c (get_offsets): Handle a single segment.
1500 * symfile.c (symfile_map_offsets_to_segments): Allow more bases
1503 2008-06-03 Daniel Jacobowitz <dan@codesourcery.com>
1505 * solib-svr4.c (struct lm_info): Add lm_addr.
1506 (main_lm_addr): New.
1507 (svr4_default_sos): Set lm_addr.
1508 (svr4_current_sos): Set lm_addr and main_lm_addr.
1509 (svr4_fetch_objfile_link_map): Rewrite.
1510 (svr4_clear_solib): Clear main_lm_addr.
1512 2008-06-03 Michael Snyder <msnyder@redhat.com>
1513 Joseph Myers <joseph@codesourcery.com>
1515 * mips-tdep.c (mips_eabi_return_value): Replace stub that always
1516 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
1518 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
1520 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
1522 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
1524 * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
1526 2008-06-01 Joel Brobecker <brobecker@adacore.com>
1528 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
1529 treat pointers in data space as function descriptors if the
1530 target address is also in the data space.
1532 2008-05-30 Joel Brobecker <brobecker@adacore.com>
1534 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
1535 the trad-frame register value for the SP register.
1537 2008-05-29 Mark Kettenis <kettenis@gnu.org>
1539 * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
1541 2008-05-28 Joel Brobecker <brobecker@adacore.com>
1543 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
1544 that identifies function descriptors outside of the .opd section.
1546 2008-05-28 Aleksandar Ristovski <aristovski@qnx.com>
1548 * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
1549 temporary catchpoints. In MI add missing fields 'reason', 'disp',
1551 (print_mention_exception_catchpoint): Add 'Temporary' for temporary
1553 (handle_gnu_v3_exceptions): Use tempflag.
1555 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
1557 Refactor varobj_update interface.
1558 * varobj.c (varobj_update): Report changes as vector. Also
1559 return not just a list of varobj, but a list of special structures
1560 that tell what exactly has changed.
1561 * varobj.h (enum varobj_update_error): Rename to
1562 varobj_scope_status.
1563 (struct varobj_update_result_t): New.
1564 (varobj_update): Adjust prototype.
1565 * mi/mi-cmd-var.c: Adjust for changes.
1567 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
1569 * varobj.c (varobj_update): Fix comment typo.
1572 2008-05-26 Joel Brobecker <brobecker@adacore.com>
1574 Set the symtab field of symbols read from ECOFF debugging entries.
1575 * mdebugread.c (add_symbol): Add new parameter symtab.
1576 (parse_symbol): Update calls to add_symbol throughout.
1578 2008-05-27 Andreas Schwab <schwab@suse.de>
1580 * symtab.h (enum address_class): Remove LOC_REGPARM and
1582 (struct symbol): Add is_argument.
1583 (SYMBOL_IS_ARGUMENT): Define.
1585 * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
1586 * buildsym.c (finish_block): Likewise.
1587 * stack.c (print_frame_args, print_block_frame_locals)
1588 (print_frame_arg_vars): Likewise.
1589 * symtab.c (lookup_block_symbol): Likewise.
1590 * tracepoint.c (add_local_symbols): Likewise.
1591 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
1593 * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
1594 * dwarf2read.c (new_symbol): Likewise.
1595 * mdebugread.c (parse_symbol): Likewise.
1596 * stabsread.c (define_symbol): Likewise.
1598 * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
1599 and LOC_COMPUTED_ARG.
1600 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
1601 * ax-gdb.c (gen_var_ref): Likewise.
1602 * eval.c (evaluate_subexp_for_address): Likewise.
1603 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
1604 * m2-exp.y (yylex): Likewise.
1605 * printcmd.c (address_info): Likewise.
1606 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
1607 * tracepoint.c (collect_symbol, scope_info): Likewise.
1609 2008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1611 * gdbarch.sh: Added new gdbarch struct
1612 core_regset_sections.
1613 * gdbarch.c: Refreshed.
1614 * gdbarch.h: Refreshed.
1615 * regset.h (core_regset_section): Declared.
1616 * linux-nat.c (linux_nat_do_thread_registers): Added
1617 support for the new gdbarch struct core_regset_sections.
1618 * utils.c (host_address_to_string): New function.
1619 * defs.h (host_address_to_string): New prototype.
1620 * i386-linux-tdep.c (i386_regset_rections): New register
1621 sections list for i386.
1622 (i386_linux_init_abi): Initialized new gdbarch struct
1623 core_regset_sections.
1624 * Makefile.in: Updated to reflect dependency changes.
1625 * ppc-linux-tdep.c (ppc_regset_sections): Register
1626 sections list for ppc.
1627 (ppc_linux_init_abi): Initialized new gdbarch struct
1628 core_regset_sections
1630 2008-05-24 Andreas Schwab <schwab@suse.de>
1632 * linespec.c (decode_objc): Save current language around call to
1635 2008-05-23 Joel Brobecker <brobecker@adacore.com>
1637 * valprint.h (get_array_bounds): Renames get_array_low_bound.
1638 * valprint.c (get_array_bounds): Renames get_array_low_bound.
1639 Return the proper bound value if the array index type is an
1640 enumerated type. Compute the high bound if requested.
1641 (val_print_array_elements): Handle the case when the array
1642 element has a null size.
1643 * ada-valprint.c (print_optional_low_bound): Add handling
1644 for empty arrays or arrays of zero-size elements.
1645 (ada_val_print_array): New function, extracted out from
1646 ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
1647 handle empty arrays and arrays of zero-size elements.
1648 (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
1649 code by call to ada_val_print_array.
1650 (ada_value_print): Remove handling of null array. The handling
1651 was incomplete and is now better handled by ada_val_print_array.
1653 2008-05-23 Markus Deuling <deuling@de.ibm.com>
1655 * annotate.c (annotate_source, annotate_frame_begin): Replace
1656 deprecated_print_address_numeric with paddress.
1657 * cli/cli-cmds.c (list_command, edit_command): Likewise.
1658 * tui/tui-stack.c (tui_make_status_line): Likewise.
1660 * defs.h (deprecated_print_address_numeric): Remove.
1661 * printcmd.c (deprecated_print_address_numeric): Remove.
1662 * maint.c (maint_print_section_info): Fix comment.
1664 2008-05-23 Markus Deuling <deuling@de.ibm.com>
1666 * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
1667 print_binary_chars, print_char_chars): Add byte_order parameter and
1668 replace gdbarch_byte_order.
1669 (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
1670 expressions and remove them. Remove unused TWO_TO_FOURTH.
1671 (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
1672 endianness. Update call to print_hex_chars.
1673 * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
1674 print_binary_chars, print_char_chars): Add byte_order parameter.
1675 * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
1676 get at the endianness. Update print_*_char calls to use byte_order.
1678 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
1680 * symtab.h (struct symbol): Make "aux_value" member a void pointer
1682 (SYMBOL_LOCATION_BATON): Update.
1684 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
1686 * symtab.h (enum address_class): Remove LOC_BASEREG and
1688 (struct symbol): Remove "basereg" member of "aux_value" union.
1689 (SYMBOL_BASEREG): Remove.
1691 * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
1693 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
1694 (ada_add_block_symbols): Likewise.
1695 * ax-gdb.c (gen_var_ref): Likewise.
1696 * buildsym.c (finish_block): Likewise.
1697 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
1698 * m2-exp.y (yylex): Likewise.
1699 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
1700 * printcmd.c (address_info): Likewise.
1701 * stack.c (print_frame_args, print_block_frame_locals): Likewise.
1702 (print_frame_arg_vars): Likewise.
1703 * symmisc.c (print_symbol): Likewise.
1704 * symtab.c (lookup_block_symbol): Likewise.
1705 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
1706 (scope_info): Likewise.
1708 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
1710 * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
1712 * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
1713 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
1714 (ada_add_block_symbols): Likewise.
1715 * ax-gdb.c (gen_var_ref): Likewise.
1716 * buildsyms.c (finish_block): Likewise.
1717 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
1718 * m2-exp.y (yylex): Likewise.
1719 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
1720 * printcmd.c (address_info): Likewise.
1721 * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
1722 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
1723 * symtab.c (lookup_block_symbol): Likewise.
1724 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
1725 (scope_info): Likewise.
1727 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
1729 * symtab.h (enum address_class): Remove LOC_INDIRECT and
1730 LOC_HP_THREAD_LOCAL_STATIC.
1732 * findvar.c (symbol_read_needs_frame, read_var_value): Do not
1733 handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
1734 (read_var_value): Likewise.
1735 * buildsym.c (finish_block): Likewise.
1736 * objfiles.c (objfile_relocate): Likewise.
1737 * printcmd.c (address_info): Likewise.
1738 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
1739 * tracepoint.c (scope_info): Likewise.
1741 2008-05-21 Markus Deuling <deuling@de.ibm.com>
1742 Maxim Grigoriev <maxim2405@gmail.com>
1744 * xtensa-tdep.c (xtensa_read_register): Remove.
1745 (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
1746 argument litbase to call0_frame_cache().
1747 (call0_track_op, call0_analyze_prologue)
1748 (call0_frame_cache): Use extra argument litbase.
1750 2008-05-21 Joel Brobecker <brobecker@adacore.com>
1752 * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
1754 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
1756 * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
1758 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
1760 * alpha-mdebug-tdep.c: Include "trad-frame.h".
1761 (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
1762 struct trad_frame_saved_reg *.
1763 (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
1764 trad_frame_alloc_saved_regs. Update accesses. Record previous
1765 value of SP as being vfp.
1766 (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
1767 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
1769 2008-05-21 Markus Deuling <deuling@de.ibm.com>
1771 * score-tdep.c (score_print_insn): Get the current endianess from
1772 disassemble_info instead of gdbarch_byte_order.
1774 2008-05-21 Pedro Alves <pedro@codesourcery.com>
1776 * frame.c (get_prev_frame_1): Build frame id before setting
1777 this_frame->prev_p, not after.
1779 2008-05-21 Nick Roberts <nickrob@snap.net.nz>
1781 * annotate.c (annotate_new_thread): New function for new-thread
1783 * annotate.h: (annotate_new_thread): New extern.
1784 * thread.c (add_thread_with_info): Use it.
1785 * Makefile.in (thread.o): Add dependency on annotate.h.
1787 2008-05-20 Joel Brobecker <brobecker@adacore.com>
1789 * win32-nat.c (win32_wait): Block the control-c event while
1790 waiting for a debug event.
1792 2008-05-19 Pedro Alves <pedro@codesourcery.com>
1794 * symtab.h (lookup_symbol_in_language): Update comment.
1795 * symtab.c (lookup_symbol_aux_block): Update comment.
1796 * ada-lang.c (ada_lookup_symbol_list): Update comment.
1798 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
1800 * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
1801 (lookup_symbol): Likewise.
1802 * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
1803 (lookup_symbol): Likewise.
1804 (search_symbols): Update.
1806 * linespec.c (find_methods, collect_methods): Update.
1807 (add_matching_methods, add_constructors): Update.
1808 (decode_compound, decode_dollar, decode_variable): Update.
1809 (lookup_prefix_sym): Update.
1811 (symbol_found): Remove SYM_SYMTAB parameter.
1812 Use SYMBOL_SYMTAB (sym) instead.
1814 * gdbtypes.c (lookup_typename): Update.
1815 (lookup_struct, lookup_union, lookup_enum): Update.
1816 (lookup_template_type): Update.
1817 (check_typedef): Update.
1818 * language.c (lang_bool_type): Update.
1819 * mdebugread.c (parse_procedure): Update.
1820 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1821 * parse.c (write_dollar_variable): Update.
1822 * printcmd.c (address_info): Update.
1823 * source.c (select_source_symtab): Update.
1824 * stack.c (print_frame_args, print_frame_arg_vars): Update.
1825 * valops.c (find_function_in_inferior): Update.
1826 (value_struct_elt_for_reference): Update.
1827 * value.c (value_static_field, value_fn_field): Update.
1829 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1830 * arm-tdep.c (arm_skip_prologue): Update.
1831 * mt-tdep.c (mt_skip_prologue): Update.
1832 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
1834 * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
1835 * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
1836 (add_defn_to_vec): Likewise.
1837 (ada_add_block_symbols): Likewise.
1838 (lookup_cached_symbol, cache_symbol): Likewise.
1839 (standard_lookup): Update.
1840 (ada_lookup_symbol_list): Update.
1842 * c-valprint.c (c_val_print): Update.
1843 * cp-support.c (cp_lookup_rtti_type): Update.
1844 * jv-lang.c (java_lookup_class, get_java_object_type): Update.
1845 * objc-lang.c (lookup_struct_typedef, find_imps): Update.
1846 * p-valprint.c (pascal_val_print): Update.
1847 * scm-lang.c (scm_lookup_name): Update.
1853 * objc-exp.y: Update.
1856 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
1858 * language.h (struct language_defn): Remove SYMTAB parameter from
1859 la_lookup_symbol_nonlocal callback function pointer.
1861 * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
1862 (ada_lookup_encoded_symbol): Likewise.
1863 * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
1864 Always call fixup_symbol_section.
1865 (ada_lookup_symbol): Remove SYMTAB parameter.
1866 (ada_lookup_symbol_nonlocal): Likewise.
1867 * ada-exp.y (write_object_renaming): Update.
1868 (find_primitive_type): Likewise.
1870 * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
1871 (cp_lookup_symbol_namespace): Likewise.
1872 * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
1873 (lookup_symbol_file): Likewise.
1874 (lookup_possible_namespace_symbol): Likewise.
1875 (cp_lookup_symbol_nonlocal): Likewise.
1876 (cp_lookup_symbol_namespace): Likewise.
1877 (cp_lookup_nested_type): Update.
1879 * scm-valprint.c (scm_inferior_print): Update.
1880 * valops.c (value_maybe_namespace_elt): Update.
1882 * solist.h (struct target_so_ops): Remove SYMTAB parameter from
1883 lookup_lib_global_symbol callback function pointer.
1884 (solib_global_lookup): Remove SYMTAB parameter.
1885 * solib.c (solib_global_lookup): Remove SYMTAB parameter.
1886 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
1888 * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
1889 (lookup_symbol_static): Likewise.
1890 (lookup_symbol_global): Likewise.
1891 (lookup_symbol_aux_block): Likewise.
1892 (lookup_global_symbol_from_objfile): Likewise.
1893 * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
1894 (lookup_symbol_aux_local): Likewise.
1895 (lookup_symbol_aux_block): Likewise.
1896 (lookup_symbol_aux_symtabs): Likewise.
1897 (lookup_symbol_aux_psymtabs): Likewise.
1898 (lookup_global_symbol_from_objfile): Likewise.
1899 (basic_lookup_symbol_nonlocal): Likewise.
1900 (lookup_symbol_static): Likewise.
1901 (lookup_symbol_global): Likewise.
1903 (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
1905 2008-05-17 Pedro Alves <pedro@codesourcery.com>
1907 * remote.c (init_extended_remote_ops): Fix typo.
1909 2008-05-16 Pedro Alves <pedro@codesourcery.com>
1911 * NEWS: Mention new DICOS x86 target configuration.
1913 2008-05-16 Pedro Alves <pedro@codesourcery.com>
1914 Ulrich Weigand <uweigand@de.ibm.com>
1916 * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
1917 * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
1919 * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
1920 use it instead of ginfo->value.address. Look up minimal symbol by
1921 address and name. Assume OBJFILE is non-NULL.
1922 (fixup_symbol_section): Ensure we always have an objfile to look
1923 into. Extract and pass to fixup_section the symbol's address that
1924 will match the minimal symbol's address.
1925 (fixup_psymbol_section): Likewise.
1927 (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
1928 overlays and the addrmap returned the wrong section.
1930 * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
1931 calling fixup_symbol_section.
1933 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
1935 * minsyms.c: Include "target.h".
1936 (find_solib_trampoline_target): Handle minimal symbols pointing
1937 to function descriptors as well.
1938 * Makefile.in (minsyms.o): Update dependencies.
1940 * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
1941 (ppc64_standard_linkage1): ... this. Fix optional instructions.
1942 (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
1943 (PPC64_STANDARD_LINKAGE1_LEN): ... this.
1944 (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
1945 (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
1946 (ppc64_standard_linkage_target): Rename to ...
1947 (ppc64_standard_linkage1_target): ... this.
1948 (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
1949 (ppc64_skip_trampoline_code): Support three variants of standard
1950 linkage stubs. Call find_solib_trampoline_target to handle
1953 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
1955 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
1956 ppc64_sysv_abi_adjust_breakpoint_address.
1957 * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
1958 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
1960 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
1962 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
1963 (ppc_linux_init_abi): Install find_solib_trampoline_target instead
1964 of ppc_linux_skip_trampoline_code.
1966 2008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
1968 * gdbarch.sh: Delete dwarf_reg_to_regnum.
1969 * gdbarch.c, gdbarch.h: Regenerated.
1970 * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
1971 hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
1972 s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
1974 2008-05-15 Pedro Alves <pedro@codesourcery.com>
1976 * linux-nat.c (trap_ptid): Delete.
1977 (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
1979 * linux-thread-db.c (thread_db_wait): Adjust.
1981 2008-05-15 Joel Brobecker <brobecker@adacore.com>
1983 * linespec.c (decode_line_1): Fix a couple of comments.
1985 2008-05-15 Alan Modra <amodra@bigpond.net.au>
1987 * dbxread.c: Formatting.
1988 (INTERNALIZE_SYMBOL): Init n_other.
1989 (set_namestring): Take pointer to nlist arg rather than struct
1990 copy. Update all callers.
1992 2008-05-15 Andreas Schwab <schwab@suse.de>
1994 * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
1995 (dwarf2read.o): Add $(addrmap_h).
1997 2008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
1999 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
2000 (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
2001 to handle ppc32 PLT entries.
2002 (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
2005 2008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
2007 * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
2008 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
2009 lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
2010 (lookup_minimal_symbol_by_pc_section): Use
2011 lookup_minimal_symbol_by_pc_section_1.
2012 (lookup_solib_trampoline_symbol_by_pc): Likewise.
2014 2008-05-13 Joel Brobecker <brobecker@adacore.com>
2016 * findcmd.c: Add #include "gdb_stdint.h".
2017 * Makefile.in (findcmd.o): Update dependencies.
2019 2008-05-11 David S. Miller <davem@davemloft.net>
2021 * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
2022 long double size override, Linux does use 128-bit now.
2024 * sparc-linux-tdep.c (PSR_SYSCALL): Define.
2025 (sparc_linux_write_pc): New function.
2026 (sparc32_linux_init_abi): Register it.
2027 * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
2028 (sparc64_linux_write_pc): New function.
2029 (sparc64_linux_init_abi): Register it.
2031 * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
2032 dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
2034 2008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2036 * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
2037 and info.tdep_info before calling gdbarch_init_osabi.
2039 2008-05-09 Joel Brobecker <brobecker@adacore.com>
2041 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
2042 the type of the right hand side of the assignment to the type
2043 of the left hand side if the left hand side is a convenience
2046 2008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
2048 * NEWS: Mention gdbserver bi-arch capability.
2050 2008-05-09 Doug Evans <dje@google.com>
2053 * NEWS: Document find command and qSearch:memory packet.
2054 * Makefile.in (SFILES): Add findcmd.c.
2055 (COMMON_OBJS): Add findcmd.o.
2056 (findcmd.o): New rule.
2057 * findcmd.c: New file.
2058 * target.h (target_ops): New member to_search_memory.
2059 (simple_search_memory): Declare.
2060 (target_search_memory): Declare.
2061 * target.c (simple_search_memory): New fn.
2062 (target_search_memory): New fn.
2063 * remote.c (PACKET_qSearch_memory): New packet kind.
2064 (remote_search_memory): New fn.
2065 (init_remote_ops): Init to_search_memory.
2066 (init_extended_remote_ops): Ditto.
2067 (_initialize_remote): Add qSearch:memory packet config command.
2069 2008-05-09 Eli Zaretskii <eliz@gnu.org>
2071 * thread.c (_initialize_thread): Don't use commas and periods in
2072 first line of doc string of "set/show print thread-events".
2074 2008-05-08 Joel Brobecker <brobecker@adacore.com>
2076 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
2077 Update for unwinder changes.
2079 2008-05-08 Joel Brobecker <brobecker@adacore.com>
2081 * frame.c (get_frame_base_address, get_frame_locals_address)
2082 (get_frame_args_address): Pass the correct frame when calling
2083 frame_base_find_by_frame.
2085 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
2087 * remote.c (extended_remote_attach_1): Call target_find_description.
2089 2008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
2091 * remote.c (extended_remote_create_inferior_1): Clean up
2092 before marking the target running.
2094 2008-05-08 Joel Brobecker <brobecker@adacore.com>
2096 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
2099 2008-05-07 Joel Brobecker <brobecker@adacore.com>
2101 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
2102 sparc64-sol2-tdep.c: Update for unwinder changes.
2104 2008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
2106 * cp-support.c (mangled_name_to_comp): Initialize storage.
2107 (unqualified_name_from_comp): Likewise.
2109 2008-05-07 Jie Zhang <jie.zhang@analog.com>
2111 * remote.c (remote_insert_breakpoint): Call get_remote_state
2112 after gdbarch_breakpoint_from_pc is called.
2113 (remote_insert_hw_breakpoint): Likewise.
2115 2008-05-06 Joel Brobecker <brobecker@adacore.com>
2117 * valprint.c (val_print): Add new language parameter and use it
2118 instead of using the current_language. Update calls to val_print
2120 (common_val_print): Add new langauge parameter and pass it to
2122 * value.h (struct language_defn): Add opaque declaration.
2123 (val_print, common_val_print): Update declarations.
2124 * stack.c (print_frame_args): Update call to common_val_print
2125 using the appropriate language.
2126 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
2127 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
2128 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
2129 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
2130 #include "language.h" if necessary.
2131 Update calls to val_print and common_val_print.
2132 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
2133 Update dependencies.
2135 2008-05-06 Joel Brobecker <brobecker@adacore.com>
2137 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
2138 pointing inside a non-executable section as function descriptors.
2140 2008-05-06 Pedro Alves <pedro@codesourcery.com>
2142 * inf-loop.c (inferior_event_handler): Run all continuations and
2143 print any language change before running the breakpoint commands.
2145 2008-05-06 Joel Brobecker <brobecker@adacore.com>
2147 * frame-unwind.c (frame_unwind_got_bytes): New function.
2148 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
2149 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
2150 for unwinder changes.
2152 2008-05-05 Doug Evans <dje@google.com>
2154 * NEWS: Mention new /m modifier for disassemble command.
2155 * cli/cli-cmds.c (print_disassembly): New function.
2156 (disassemble_current_function): New function
2157 (disassemble_command): Recognize /m modifier, print mixed
2159 (init_cli_cmds): Update disassemble help text.
2161 2008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
2163 * xtensa-tdep.c: Update for unwinder changes.
2165 2008-05-05 Andreas Schwab <schwab@suse.de>
2167 Update m68k port for unwinder changes.
2168 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
2169 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
2170 (m68k_frame_unwind): Use default_frame_sniffer.
2171 (m68k_frame_sniffer): Remove.
2172 (m68k_frame_base_address): Expect this_frame.
2173 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
2175 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
2176 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
2177 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
2178 parameter instead of pc value.
2179 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
2181 (m68k_linux_sigtramp_frame_this_id)
2182 (m68k_linux_sigtramp_frame_prev_register)
2183 (m68k_linux_sigtramp_frame_sniffer): Update signature.
2184 (m68k_linux_sigtramp_frame_unwind): Use
2185 m68k_linux_sigtramp_frame_sniffer.
2186 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
2188 * m68klinux-nat.c (store_register): Fix typo.
2190 2008-05-05 Pedro Alves <pedro@codesourcery.com>
2192 * infcmd.c (step_1): Put thread id on the stack to avoid possible
2195 2008-05-05 Luis Machado <luisgpm@br.ibm.com>
2197 * symfile.c (reread_symbols): Update objfile's entry point.
2199 2008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
2200 Joel Brobecker <brobecker@adacore.com>
2202 * ada-lang.c: Update throughout to use symbol_matches_domain
2203 instead of matching the symbol domain explictly.
2204 * dwarf2read.c (add_partial_symbol): Do not add new psym for
2205 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
2206 class as typedefs. See lookup_partial_symbol function.
2207 (new_symbol): Similar to add_partial_symbol, do not create
2208 symbol for the typedef. See lookup_block_symbol.
2209 * symtab.c (symbol_matches_domain): New function, takes care
2210 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
2211 (lookup_partial_symbol): Use symbol_matches_domain to see if the
2212 found psym domain matches the given domain.
2213 (lookup_block_symbol): Likewise.
2215 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
2217 * top.c (command_line_handler_continuation): Remove.
2218 (execute_command): Do not install the above.
2220 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
2222 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
2223 and catch all exceptions from it.
2224 * top.c (command_line_handler_continuation): Don't
2225 call bpstat_do_action here.
2227 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
2229 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
2230 (struct die_info): Remove type.
2231 (read_type_die, read_typedef, read_base_type, read_subrange_type)
2232 (read_structure_type, read_enumeration_type, read_array_type)
2233 (read_tag_pointer_type, read_tag_ptr_to_member_type)
2234 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
2235 (read_tag_string_type, read_subroutine_type, read_set_type)
2236 (read_unspecified_type): Delete prototypes. Remove check for
2237 already-loaded type. Return the new type.
2238 (set_die_type): Return the new type.
2239 (reset_die_and_siblings_types): Delete.
2240 (load_comp_unit, load_full_comp_unit): Set type_hash.
2241 (process_queue): Remove call to reset_die_and_siblings_types.
2242 (process_die): Do not read most types here. Use read_type_die
2244 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
2245 (quirk_gcc_member_function_pointer): Return the new type.
2246 (process_structure_scope, process_enumeration_scope): Use
2247 get_die_type and read the DIE's type.
2248 (read_full_die): Do not initialize die->type.
2249 (tag_type_to_type): Use read_type_die.
2250 (read_type_die): Check for already defined types. Return the
2252 (determine_prefix): Use get_die_type.
2253 (set_die_type): Return the type.
2254 (get_die_type): Take a CU argument. Check for no type_hash.
2256 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
2258 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
2261 2008-05-04 Pedro Alves <pedro@codesourcery.com>
2263 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
2264 and bp_longjmp_resume breakpoints.
2265 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
2267 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
2268 breakpoints. Create bp_longjmp breakpoints as momentary
2270 (enable_longjmp_breakpoint): Delete.
2271 (set_longjmp_breakpoint): New.
2272 (disable_longjmp_breakpoint): Delete.
2273 (delete_longjmp_breakpoint): New.
2274 (set_longjmp_resume_breakpoint): Delete.
2275 (set_momentary_breakpoint_at_pc): New.
2276 (breakpoint_re_set_one): Don't delete bp_longjmp and
2277 bp_longjmp_resume breakpoints.
2278 (breakpoint_re_set): Don't create longjmp and longjmp-resume
2281 * infrun.c (step_resume_breakpoint): Add comment.
2282 (struct execution_control_state): Delete handling_longjmp member.
2283 (init_execution_control_state). Don't clear handling_longjmp.
2284 (context_switch): Don't context switch handling_longjmp.
2285 (handle_inferior_event): If handling a bp_longjmp breakpoint,
2286 create a bp_longjmp_resume breakpoint, and set it as current
2287 step_resume_breakpoint, then step over the longjmp breakpoint. If
2288 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
2289 breakpoint, delete the longjmp-resume breakpoint, and stop
2291 (currently_stepping): Remove handling_longjmp from expression.
2292 (insert_step_resume_breakpoint_at_sal): Update comment.
2293 (insert_longjmp_resume_breakpoint): New.
2295 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
2296 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
2298 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
2299 (set_longjmp_resume_breakpoint): Delete declaration.
2301 * gdbthread.h (save_infrun_state): Remove handling_longjmp
2303 (load_infrun_state): Delete *handling_longjmp parameter.
2304 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
2306 (load_infrun_state): Delete *handling_longjmp parameter. Update
2309 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
2310 (delete_longjmp_breakpoint_cleanup): New.
2311 (step_1): Call set_longjmp_breakpoint instead of
2312 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
2313 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
2314 (step_1_continuation): Pass thread id in the continuation args to
2316 (step_once): Add thread parameter. Pass thread id the the
2319 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2321 Set CU BASE_ADDRESS already from partial DIEs.
2322 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
2323 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
2324 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
2325 from these variables if it was still unset.
2327 * Makefile.in: Update dependencies.
2328 * dwarf2read.c: Include "addrmap.h"
2329 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
2330 (dwarf2_ranges_read): New prototype.
2331 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
2332 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
2333 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
2334 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
2335 comment for it. Add the found ranges to RANGES_PST. New variable
2336 BASEADDR, initialize it the common way.
2337 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
2338 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
2339 HAS_RANGES_OFFSET for the later processing.
2340 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
2341 * symtab.c: Include "addrmap.h"
2342 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
2343 Move the psymtab locator into ...
2344 (find_pc_sect_psymtab_closer): ... a new function.
2346 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
2348 * arch-utils.c (gdbarch_update_p): Use default values for
2349 info.abfd and info.target_desc if they are NULL.
2350 (gdbarch_from_bfd): Remove assertion.
2351 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
2352 using the current target description.
2353 (gdbarch_info_fill): Do not use default values for info->abfd
2354 and info->target_desc.
2356 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2358 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
2360 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
2362 * inferior.h (read_pc_pid, write_pc_pid): Remove.
2363 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
2365 * regcache.c (read_pc_pid): Remove, replace by ...
2366 (regcache_read_pc): ... this function.
2367 (write_pc_pid): Remove, replace by ...
2368 (regcache_write_pc): ... this function.
2369 (read_pc, write_pc): Update.
2371 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
2372 write_pc_pid by regcache_read_pc and regcache_write_pc.
2373 (displaced_step_fixup): Likewise.
2374 (resume): Likewise. Use regcache arch instead of current_gdbarch.
2375 (prepare_to_proceed): Likewise.
2376 (proceed): Likewise.
2377 (adjust_pc_after_break): Likewise.
2378 (handle_inferior_event): Likewise.
2380 * linux-nat.c (cancel_breakpoint): Likewise.
2381 * linux-thread-db.c (check_event): Likewise.
2382 * aix-thread.c (aix_thread_wait): Likewise.
2383 * tracepoint.c (trace_dump_command): Likewise.
2385 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2387 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
2388 SYMBOL_LOCATION_BATON.
2390 2008-05-04 Vladimir Prus <vladimir@codesourcery.com>
2392 * target.h (struct target_ops): New field to_auxv_parse.
2393 * auxv.c (default_auxv_parse): New, renamed from previous
2395 (target_auxv_parse): Try to call target method. Fallback to
2396 default_auxv_parse if not found.
2397 * procfs.c (procfs_auxv_parse): New.
2398 (init_procfs_ops): On Solaris, in 64-bit mode, install
2401 2008-05-03 Adam Nemet <anemet@caviumnetworks.com>
2403 * symfile.c (add_symbol_file_command): Use paddress rather than
2404 hex_string to print the address.
2406 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
2408 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
2409 return the null frame ID to terminate the backtrace.
2411 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
2413 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
2414 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
2415 (SIG_FRAME_PC_OFFSET): Likewise.
2416 (SIG_FRAME_LR_OFFSET): Likewise.
2417 (SIG_FRAME_FP_OFFSET): Likewise.
2418 (rs6000_push_dummy_call): Likewise.
2419 (rs6000_return_value): Likewise.
2420 (rs6000_convert_from_func_ptr_addr): Likewise.
2421 (branch_dest, rs6000_software_single_step): Likewise.
2422 (deal_with_atomic_sequence): Rename to ...
2423 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
2424 Do not call branch_dest; inline required parts of that function.
2425 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
2426 with SYMBOL_LINKAGE_NAME.
2427 (struct reg, regsize): Delete.
2428 (read_memory_addr): Delete; inline into callers.
2429 (rs6000_skip_prologue): Move after skip_prologue.
2430 (skip_prologue): Remove prototype.
2431 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
2432 initialization as if this variable were true. Do not install
2433 ppc64_sysv_abi_adjust_breakpoint_address.
2435 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
2436 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
2438 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
2439 (SIG_FRAME_PC_OFFSET): Likewise.
2440 (SIG_FRAME_LR_OFFSET): Likewise.
2441 (SIG_FRAME_FP_OFFSET): Likewise.
2442 (rs6000_push_dummy_call): Likewise.
2443 (rs6000_return_value): Likewise.
2444 (rs6000_convert_from_func_ptr_addr): Likewise.
2445 (branch_dest, rs6000_software_single_step): Likewise. Replace
2446 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
2447 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
2448 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
2449 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
2450 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
2452 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
2453 (AIX_TEXT_SEGMENT_BASE): New macro.
2454 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
2455 by AIX_TEXT_SEGMENT_BASE.
2457 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
2458 (struct gdbarch_tdep): Remove text_segment_base member.
2459 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
2460 ppc64_sysv_abi_adjust_breakpoint_address.
2462 * Makefile.in (rs6000-tdep.o): Update dependencies.
2463 (rs6000-aix-tdep.o): Likewise.
2465 2008-05-03 Luis Machado <luisgpm@br.ibm.com>
2466 Thiago Jung Bauermann <bauerman@br.ibm.com>
2468 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
2469 * doublest.c (convert_typed_floating): Fix typo in comment.
2470 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
2471 * frame-unwind.h (frame_sniffer_ftype): Likewise.
2472 * frame.c (frame_unwind_address_in_block): Likewise.
2473 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
2474 * symtab.h (struct symbol): Likewise.
2475 * tramp-frame.h (struct trad_frame_cache): Likewise.
2476 * value.c (allocate_repeat_value): Likewise.
2478 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
2480 * infrun.c (handle_inferior_event): Do not insert breakpoints at
2481 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
2483 2008-05-03 Pedro Alves <pedro@codesourcery.com>
2485 * parse.c (parse_exp_in_context): Don't override
2486 expression_context_pc if get_selected_block returned a valid
2489 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
2491 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
2492 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
2493 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
2495 * c-typeprint.c (c_type_print_base): Delete handling of template
2497 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
2498 (METHOD_PTR_TO_VOFFSET): Delete.
2499 * defs.h (QUIT_FIXME): Delete.
2500 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
2501 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
2502 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
2503 ninstantiations, and instantiations.
2504 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
2505 (TYPE_FN_FIELD_INLINED): Delete.
2506 * srec.h (SREC_BINARY): Delete.
2507 * symtab.c (symbol_init_demangled_name): Delete.
2508 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
2509 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
2510 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
2511 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
2512 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
2513 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
2514 * target.h (enum thread_control_capabilities): Delete tc_switch.
2515 (target_can_switch_threads): Delete.
2517 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
2519 * Makefile.in (objfiles.o): Update.
2520 * exec.c (exec_set_section_address): Support p->addr != 0.
2521 * objfiles.c (objfile_relocate): Update exec_ops section
2523 * symfile.c (place_section): Move exec_set_section_address call...
2524 (default_symfile_offsets): ...to here.
2526 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
2528 * Makefile.in (ppc_linux_tdep_h): New macro.
2529 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
2530 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
2531 (powerpc_e500l_c): Likewise.
2532 (ppc-linux-nat.o): Update dependencies.
2533 (ppc-linux-tdep.o): Update dependencies.
2534 (rs6000-tdep.o): Update dependencies.
2536 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
2537 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
2538 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
2539 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
2540 (tdesc_powerpc_e500): Remove.
2542 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
2543 and "features/rs6000/powerpc-altivec64.c".
2544 (ppc_supply_reg, ppc_collect_reg): Make global.
2545 (variants): Use tdesc_powerpc_32 for "powerpc" and
2546 tdesc_powerpc_altivec64 for "powerpc64".
2547 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
2549 * ppc-linux-tdep.h: New file.
2551 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
2552 Include "features/rs6000/powerpc-32l.c".
2553 Include "features/rs6000/powerpc-altivec32l.c".
2554 Include "features/rs6000/powerpc-64l.c".
2555 Include "features/rs6000/powerpc-altivec64l.c".
2556 Include "features/rs6000/powerpc-e500l.c".
2557 (ppc_linux_supply_gregset): New function.
2558 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
2559 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
2560 (ppc64_linux_gregset): Likewise.
2561 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
2562 (ppc_linux_trap_reg_p): New function.
2563 (ppc_linux_write_pc): New function.
2564 (ppc_linux_core_read_description): New function.
2565 (ppc_linux_init_abi): Install ppc_linux_write_pc and
2566 ppc_linux_core_read_description. Install orig_r3 and trap
2567 registers if present in the target description.
2568 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
2570 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
2571 (PT_ORIG_R3, PT_TRAP): Define if necessary.
2572 (ppc_register_u_addr): Handle orig_r3 and trap registers.
2573 (fetch_ppc_registers): Likewise.
2574 (store_ppc_registers): Likewise.
2575 (store_register): Likewise.
2576 (ppc_linux_read_description): Check whether AltiVec is supported.
2577 Check whether inferior is 32-bit or 64-bit. Return the appropriate
2578 Linux target description.
2580 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
2581 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
2582 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
2583 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
2584 rs6000/powerpc-e500. Update -expedite variables accordingly.
2586 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
2587 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
2588 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
2589 * features/rs6000/powerpc-e500.c: Regenerate.
2590 * features/rs6000/powerpc-32.c: Regenerate.
2591 * features/rs6000/powerpc-64.c: Regenerate.
2593 * features/rs6000/power-linux.xml: New file.
2594 * features/rs6000/power64-linux.xml: New file.
2595 * features/rs6000/powerpc-32l.xml: New file.
2596 * features/rs6000/powerpc-altivec32l.xml: New file.
2597 * features/rs6000/powerpc-64l.xml: New file.
2598 * features/rs6000/powerpc-altivec64l.xml: New file.
2599 * features/rs6000/powerpc-e500l.xml: New file.
2600 * features/rs6000/powerpc-32l.c: New (generated) file.
2601 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
2602 * features/rs6000/powerpc-64l.c: New (generated) file.
2603 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
2604 * features/rs6000/powerpc-e500l.xml: New (generated) file.
2606 * regformats/reg-ppc.dat: Remove.
2607 * regformats/reg-ppc64.dat: Remove.
2608 * regformats/rs6000/powerpc-32.dat: Remove.
2609 * regformats/rs6000/powerpc-64.dat: Remove.
2610 * regformats/rs6000/powerpc-e500.dat: Remove.
2611 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
2612 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
2613 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
2614 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
2615 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
2617 2008-05-03 Pedro Alves <pedro@codesourcery.com>
2619 * thread.c (delete_thread): Call observer_notify_thread_exit.
2620 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
2621 thread_exit observer.
2622 (mi_thread_exit): New.
2624 2008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
2626 * breakpoint.c (create_exception_catchpoint): Remove prototype
2627 for already deleted function.
2628 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
2629 * frame.h (show_stack_frame): Remove prototype.
2630 * stack.c (show_stack_frame): Remove empty, unused function.
2631 * source.c (symtab_to_fullname, print_source_lines): Small fix
2633 * value.c (show_values): Update comments to mention "show values"
2634 command instead of "info history".
2636 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
2638 * linespec.c: Include "target.h".
2639 (minsym_found): Handle minimal symbols pointing to function
2640 descriptors. Use find_function_start_pc.
2641 * minsyms.c (msymbol_objfile): New function.
2642 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
2643 to function descriptors.
2644 * symtab.c (fixup_section): Only use minimal symbol at the same
2645 address to determine section of a symbol.
2646 (find_function_start_pc): New function.
2647 (find_function_start_sal): Use it.
2648 * symtab.h (msymbol_objfile): Add prototype.
2649 (find_function_start_pc): Likewise.
2650 * value.c: Include "objfiles.h".
2651 (value_fn_field): Handle minimal symbols pointing to function
2653 * Makefile.in (linespec.o): Update dependencies.
2654 (value.o): Likewise.
2656 2008-05-02 Joel Brobecker <brobecker@adacore.com>
2658 * ada-lang.c (unwrap_value): Handle the case where the "F" field
2659 inside a PAD type is a bitfield.
2661 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
2663 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
2664 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
2665 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
2666 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
2667 Allow typedefs when checking for function pointer arguments.
2668 Right-align small structs passed on the stack.
2669 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
2670 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
2671 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
2673 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
2675 * Makefile.in (arm-tdep.o): Update.
2676 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
2677 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
2678 (arm_pc_is_thumb): Use mapping symbols.
2679 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
2680 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
2681 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
2682 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
2683 * gdbarch.sh: Add record_special_symbol.
2684 * gdbarch.c, gdbarch.h: Regenerated.
2685 * objfiles.c (struct objfile_data): Add cleanup member.
2686 (register_objfile_data_with_cleanup): New function, from
2687 register_objfile_data.
2688 (register_objfile_data): Use it.
2689 (objfile_free_data): Call clear_objfile_data.
2690 (clear_objfile_data): Call cleanup functions.
2691 * objfiles.h (register_objfile_data_with_cleanup): Declare.
2693 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
2695 * objfiles.c (init_entry_point_info): Handle shared libraries.
2697 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
2699 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
2702 2008-05-02 Jim Blandy <jimb@codesourcery.com>
2703 Pedro Alves <pedro@codesourcery.com>
2705 Implement displaced stepping.
2707 * gdbarch.sh (max_insn_length): New 'variable'.
2708 (displaced_step_copy, displaced_step_fixup)
2709 (displaced_step_free_closure, displaced_step_location): New
2711 (struct displaced_step_closure): Add forward declaration.
2712 * gdbarch.c, gdbarch.h: Regenerated.
2714 * arch-utils.c: #include "objfiles.h".
2715 (simple_displaced_step_copy_insn)
2716 (simple_displaced_step_free_closure)
2717 (displaced_step_at_entry_point): New functions.
2718 * arch-utils.h (simple_displaced_step_copy_insn)
2719 (simple_displaced_step_free_closure)
2720 (displaced_step_at_entry_point): New prototypes.
2722 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
2723 (I386_MAX_MATCHED_INSN_LEN): ... this.
2724 (i386_absolute_jmp_p, i386_absolute_call_p)
2725 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
2726 (i386_displaced_step_fixup): New functions.
2727 (struct i386_insn, i386_match_insn): Update.
2728 (i386_gdbarch_init): Set gdbarch_max_insn_length.
2729 * i386-tdep.h (I386_MAX_INSN_LEN): New.
2730 (i386_displaced_step_fixup): New prototype.
2731 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
2732 Register gdbarch_displaced_step_copy,
2733 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
2734 and gdbarch_displaced_step_location functions.
2736 * infrun.c (debug_displaced): New variable.
2737 (show_debug_displaced): New function.
2738 (struct displaced_step_request): New struct.
2739 (displaced_step_request_queue, displaced_step_ptid)
2740 (displaced_step_gdbarch, displaced_step_closure)
2741 (displaced_step_original, displaced_step_copy)
2742 (displaced_step_saved_copy, can_use_displaced_stepping): New
2744 (show_can_use_displaced_stepping, use_displaced_stepping)
2745 (displaced_step_clear, cleanup_displaced_step_closure)
2746 (displaced_step_dump_bytes, displaced_step_prepare)
2747 (displaced_step_clear_cleanup, write_memory_ptid)
2748 (displaced_step_fixup): New functions.
2749 (resume): Call displaced_step_prepare.
2750 (proceed): Call read_pc once, and remember the value. If using
2751 displaced stepping, don't remove breakpoints.
2752 (handle_inferior_event): Call displaced_step_fixup. Add some
2753 debugging output. When we try to step over a breakpoint, but get
2754 a signal to deliver to the thread instead, ensure the step-resume
2755 breakpoint is actually inserted. If a thread hop is needed, and
2756 displaced stepping is enabled, don't remove breakpoints.
2757 (init_wait_for_inferior): Call displaced_step_clear.
2758 (_initialize_infrun): Add "set debug displaced" command. Add
2759 "maint set can-use-displaced-stepping" command. Clear
2760 displaced_step_ptid.
2761 * inferior.h (debug_displaced): Declare variable.
2762 (displaced_step_dump_bytes): Declare function.
2764 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
2767 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
2769 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
2770 (arm_force_mode_string, arm_show_fallback_mode)
2771 (arm_show_force_mode): New.
2772 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
2774 (_initialize_arm_tdep): Add "set arm fallback-mode"
2775 and "set arm force-mode".
2776 * NEWS: Document new commands.
2778 2008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
2780 * main.h (batch_silent): Declare.
2781 * event-top.c: Include main.h.
2782 (gdb_setup_readline): Remove extern batch_silent declaration.
2783 * infrun.c (normal_stop): Don't print source location when running in
2784 --batch-silent mode.
2785 * Makefile.in (event-top.o): Add main.h dependency.
2787 2008-05-02 Andreas Schwab <schwab@suse.de>
2789 * target.h (struct target_ops): Add
2790 to_watchpoint_addr_within_range.
2791 (target_watchpoint_addr_within_range): New function.
2792 * target.c (update_current_target): Inherit
2793 to_watchpoint_addr_within_range, defaulting to
2794 default_watchpoint_addr_within_range.
2795 (default_watchpoint_addr_within_range): New function.
2796 (debug_to_watchpoint_addr_within_range): New function.
2797 (setup_target_debug): Set to_watchpoint_addr_within_range.
2798 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
2800 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
2801 * breakpoint.c (watchpoints_triggered): Use
2802 target_watchpoint_addr_within_range.
2804 2008-05-01 Pedro Alves <pedro@codesourcery.com>
2806 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
2807 (i[34567]86-*-dicos*, x86_64-*-dicos*):
2808 Set gdb_osabi to GDB_OSABI_DICOS.
2810 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
2811 * osabi.c (gdb_osabi_name): Add "DICOS".
2813 * i386-dicos-tdep.c: New file.
2815 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
2816 (ALLDEPFILES): Add i386-dicos-tdep.c.
2817 (i386-dicos-tdep.o): New rule.
2819 2008-05-01 Pedro Alves <pedro@codesourcery.com>
2821 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
2822 and register the fork's PTID as a thread.
2824 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
2827 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
2828 assign its value to the breakpoint created.
2829 (create_breakpoints): Add breakpoint_ops argument and pass it
2830 to create_breakpoint call.
2831 (break_command_really): Add breakpoint_ops argument and pass/assign
2833 (break_command_1): Pass NULL as ops argument.
2834 (set_breakpoint): Pass NULL as ops argument.
2835 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
2836 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
2837 catch and throw catchpoints.
2839 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
2842 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
2843 translate signal numeric value from the target to GDB's enum
2845 * gdbarch.c, gdbarch.h: Regenerated.
2846 * gdbarch.sh: Added two new functions target_signal_from_host and
2847 target_signal_to_host.
2848 * target.h (default_target_signal_from_host,
2849 default_target_signal_to_host): New functions - declarations.
2850 * signals/signals.c (struct gdbarch): New declaration.
2851 (default_target_signal_to_host, default_target_signal_from_host): New
2854 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
2855 Pedro Alves <pedro@codesourcery.com>
2857 Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff
2858 Johnston <jjohnstn@redhat.com>.
2860 * NEWS: Mention attach to stopped process fix.
2861 * infcmd.c (detach_command, disconnect_command): Discard the thread
2863 * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
2864 attaching. Use signal_stop_state.
2865 (signal_stop_state): Check stop_soon.
2866 * linux-nat.c (kill_lwp): Declare earlier.
2867 (pid_is_stopped, linux_nat_post_attach_wait): New.
2868 (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update
2870 (linux_nat_attach): Use linux_nat_post_attach_wait.
2871 (detach_callback, linux_nat_detach): Improve handling for signalled
2873 (linux_nat_pid_to_str): Always print out the LWP ID if it differs
2874 from the process ID.
2875 * Makefile.in (infcmd.o): Update.
2877 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
2879 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
2880 * arm-tdep.c (arm_frame_is_thumb): New.
2881 (arm_pc_is_thumb): Clarify comment.
2882 (thumb_analyze_prologue): Remove PC special case.
2883 (thumb_scan_prologue): Take a block_addr argument. Use it for
2884 find_pc_partial_function. Remove unused variables.
2885 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
2886 for find_pc_partial_function. Remove PC special case.
2887 (arm_prologue_prev_register): Add special handling for PC and CPSR.
2888 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
2889 (arm_get_next_pc): Use arm_frame_is_thumb.
2890 (arm_write_pc): Use CPSR_T instead of 0x20.
2891 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
2892 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
2894 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
2895 DWARF2_FRAME_REG_FN.
2896 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
2897 DWARF2_FRAME_REG_FN.
2898 (struct dwarf2_frame_state_reg): Add FN to loc union.
2900 2008-05-01 Nick Roberts <nickrob@snap.net.nz>
2902 * exec.c (print_section_info): Add missing '\n'.
2904 2008-05-01 Vladimir Prus <vladimir@codesourcery.com>
2906 * thread.c (add_thread): Move observer call to ...
2907 (add_thread_silent): ... here.
2909 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
2911 * rs6000-tdep.c: Update for unwinder changes.
2912 * ppcobsd-tdep.c: Likewise.
2914 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
2916 * s390-tdep.c: Update for unwinder changes.
2918 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
2920 * spu-tdep.c: Update for unwinder changes.
2922 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2924 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
2925 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
2926 sparc64-linux-tdep.c: Update for unwinder changes.
2928 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2930 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
2931 for unwinder changes.
2932 * mips-tdep.c: Likewise.
2933 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
2936 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2938 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
2941 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2943 Update i386 and amd64 ports for unwinder changes.
2945 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
2946 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
2947 (amd64_frame_unwind): Use default_frame_sniffer.
2948 (amd64_frame_sniffer): Delete.
2949 (amd64_sigtramp_frame_cache): Expect this_frame.
2950 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
2951 (amd64_sigtramp_frame_sniffer): Update signature.
2952 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
2953 (amd64_frame_base_address): Expect this_frame.
2954 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
2956 (amd64_init_abi): Use set_gdbarch_dummy_id and
2957 frame_unwind_append_unwinder.
2958 * i386-tdep.c (i386_frame_cache): Expect this_frame.
2959 (i386_frame_this_id, i386_frame_prev_register): Update signature.
2960 (i386_frame_unwind): Use default_frame_sniffer.
2961 (i386_frame_sniffer): Delete.
2962 (i386_sigtramp_frame_cache): Expect this_frame.
2963 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
2964 (i386_sigtramp_frame_sniffer): Update signature.
2965 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
2966 (i386_frame_base_address): Update signature.
2967 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
2968 (i386_push_dummy_call): Update comment.
2969 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
2971 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
2972 and frame_unwind_append_unwinder.
2973 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
2974 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
2975 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
2976 i386nbsd-tdep.c: Update for unwinder changes.
2978 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2980 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
2981 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
2983 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
2984 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
2985 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
2987 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
2989 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
2991 * tramp-frame.h (struct tramp_frame): Update signature of init.
2992 * Makefile.in (trad-frame.o): Update.
2994 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2996 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
2997 (execute_stack_op): Put this_frame in the baton.
2998 (execute_cfa_program): Take this_frame.
2999 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
3000 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
3001 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
3002 (dwarf2_frame_this_id): Adjust to work on this_frame.
3003 (dwarf2_signal_frame_this_id): Delete.
3004 (dwarf2_frame_prev_register): Update signature. Use new frame
3006 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
3007 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
3008 dwarf2_frame_sniffer.
3009 (dwarf2_append_unwinders): New.
3010 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
3012 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
3013 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
3014 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
3015 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
3016 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
3017 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
3018 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
3019 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
3020 (dwarf2_append_unwinders): Declare.
3021 (dwarf2_frame_base_sniffer): Update declaration.
3022 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
3025 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3027 Convert frame unwinders to use the current frame and
3030 * frame.c (frame_debug): Make global.
3031 (get_frame_id): Pass this frame to unwinder routines.
3032 (frame_pc_unwind): Remove unused unwind->prev_pc support.
3033 (do_frame_register_read): Do not discard the return value of
3034 frame_register_read.
3035 (frame_register_unwind): Remove debug messages. Use
3036 frame_unwind_register_value.
3037 (frame_unwind_register_value, get_frame_register_value): New
3039 (create_new_frame, get_frame_base_address, get_frame_locals_address)
3040 (get_frame_args_address, get_frame_type): Pass this frame to
3042 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
3044 * frame.h: Update comments.
3045 (frame_debug, frame_unwind_register_value, get_frame_register_value)
3046 (frame_prepare_for_sniffer): Declare.
3047 * frame-unwind.h: Update comments and parameter names.
3048 (default_frame_sniffer): Declare.
3049 (frame_prev_register_ftype): Return a struct value *.
3050 (struct frame_unwind): Remove prev_pc member.
3051 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
3052 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
3053 (frame_unwind_got_register, frame_unwind_got_memory)
3054 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
3055 * frame-base.h: Update comments and parameter names.
3056 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
3057 if necessary. Add debugging output.
3058 * sentinel-frame.c (sentinel_frame_prev_register)
3059 (sentinel_frame_this_id): Update for new signature.
3060 (sentinel_frame_prev_pc): Delete.
3061 (sentinel_frame_unwinder): Remove prev_pc.
3062 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
3064 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
3065 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
3066 (frame_unwind_append_sniffer): Delete.
3067 (frame_unwind_append_unwinder): New function.
3068 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
3069 from unwinders. Use frame_prepare_for_sniffer.
3070 (default_frame_sniffer, frame_unwind_got_optimized)
3071 (frame_unwind_got_register, frame_unwind_got_memory)
3072 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
3073 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
3074 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
3076 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
3077 * gdbarch.c, gdbarch.c: Regenerated.
3078 * frame-base.c (default_frame_base_address)
3079 (default_frame_locals_address, default_frame_args_address): Update
3081 (frame_base_find_by_frame): Pass this frame to unwinder routines.
3082 * infcall.c (call_function_by_hand): Update comments.
3083 * Makefile.in (frame-unwind.o): Update dependencies.
3085 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3087 * ada-lang.c (ada_value_primitive_packed_val): Only check
3088 value_lazy for memory lvals.
3089 * findvar.c (value_of_register_lazy): New function.
3090 (locate_var_value): Only check value_lazy for memory lvals.
3091 * valarith.c (value_subscripted_rvalue): Likewise.
3092 * valops.c (value_fetch_lazy): Handle both memory and register
3094 (search_struct_field, value_slice): Only check value_lazy for memory
3096 * value.c (struct value): Update comment for lazy.
3097 (value_primitive_field): Only check value_lazy for memory lvals.
3098 * value.h (value_lazy): Update comment.
3099 (value_of_register_lazy): Declare.
3101 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3103 * corefile.c (reopen_exec_file): Close any open files.
3105 2008-04-29 Joel Brobecker <brobecker@adacore.com>
3107 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
3108 show_memory_breakpoints to 1 while reading the instruction bundle.
3110 2008-04-29 Joel Brobecker <brobecker@adacore.com>
3112 * gdbarch.sh: Document the return_value method. Explain that
3113 the FUNCTYPE parameter might be NULL.
3114 * gdbarch.h: Regenerated.
3115 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
3116 type when calling using_struct_return, as this is unnecessary
3119 2008-04-28 Joel Brobecker <brobecker@adacore.com>
3121 * terminal.h (create_tty_session): Fix return type.
3123 2008-04-26 Vladimir Prus <vladimir@codesourcery.com>
3125 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
3127 2008-04-26 Joel Brobecker <brobecker@adacore.com>
3129 * breakpoint.c (condition_command, commands_from_control_command)
3130 (break_command_really): Minor reformatting.
3132 2008-04-25 Pedro Alves <pedro@codesourcery.com>
3134 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
3136 2008-04-25 Pedro Alves <pedro@codesourcery.com>
3138 * amd64-tdep.c (amd64_get_longjmp_target): New.
3139 (amd64_init_abi): Register amd64_get_longjmp_target as
3140 gdbarch_get_longjmp_target callback.
3141 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
3143 2008-04-25 Pedro Alves <pedro@codesourcery.com>
3145 * breakpoint.h (enum bpstat_what_main_action): Delete
3146 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
3148 * breakpoint.c (clrs): Delete.
3149 (bpstat_what): Update table.
3151 * infrun.c (handle_inferior_event): Remove
3152 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
3154 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3156 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
3157 Adjust all prototypes using mi_cmd_args_ftype to use
3159 (struct mi_cmd): Remove the args_func field.
3160 * mi/mi-cmds.c: Don't provide value for the args_func field.
3161 * mi/mi-main.c (mi_execute_async_cli_command)
3162 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
3163 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
3164 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
3165 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
3166 (mi_cmd_target_download): Adjust.
3167 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
3168 (mi_cmd_execute): Do not check for args_func.
3169 (mi_execute_async_cli_command): Adjust.
3170 * mi/mi-parse.c: Don't check for args_func.
3172 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3174 * breakpoint.c (bpstat_check_location)
3175 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
3176 New, extracted from bpstat_stop_status.
3177 (bpstat_stop_status): Use the above.
3179 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3181 * mi/mi-main.c (last_async_command): Rename to current_token.
3182 (previous_async_command): Remove.
3183 (mi_cmd_gdb_exit): Adjust.
3184 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
3185 (mi_cmd_target_select): Adjust.
3186 (mi_cmd_execute): Don't set previous_async_command. Free token
3187 here even in async mode.
3188 (mi_execute_async_cli_command): Adjust.
3189 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
3191 (mi_load_progress): Adjust.
3193 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3195 * infcmd.c (step_1_continuation): Always disable longjmp
3196 breakpoint if we're not going to do another step.
3198 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3200 exec_cleanup murder.
3201 * breakpoint.c (until_break_command_continuation): Add
3202 the 'error' parameter. Directly delete the breakoint as
3203 opposed to running cleanups.
3204 (until_break_command): Install continuation only
3205 after starting the target. Don't use exec cleanups,
3206 use ordinary cleanups. Discard cleanups is successfully
3207 started the target in async mode.
3208 (make_cleanup_delete_breakpoint): Remove.
3209 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
3211 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
3213 (struct continations): Add the 'error' parameter to the
3214 continuation_hook field.
3215 (add_continuation, do_all_continuations)
3216 (add_intermediate_continuation)
3217 (do_all_intermediate_continuations): Add the 'error' parameter.
3218 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
3219 * inf-loop.c (inferior_event_handler): Instead of calling
3220 discard_all_continuations, use do_all_continuations with 1 as
3221 'error' parameter. Pass 0 as 'error' parameter in existing uses
3222 of discard_all_continuations.
3223 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
3225 (step_once): Install continuation only after resuming the target.
3226 (step_1_continuation): Disable longjmp breakpoint on error.
3227 (finish_command_continuation): Add the error parameter. Delete
3228 the finish breakpoint directly, do not use cleanups.
3229 (finish_command): Do not use exec_cleanups. Always setup
3230 continuation. For sync case, immediately run them.
3231 (attach_command_continuation): Add the error parameter.
3232 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
3233 remove step_resume_breakpoint -- adjust delete it directly.
3234 * interps.c (interp_set): Adjust call to do_all_continations.
3235 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
3237 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
3239 (mi_cmd_execute): Do not use exec_cleanup.
3240 (mi_execute_async_cli_command): Simplify the string concatenation
3241 logic. Do no use exec cleanup.
3242 (mi_exec_async_cli_cmd_continuation): New parameter error.
3243 Free last_async_command.
3244 * top.c (command_line_handler_continuation): New parameter error.
3245 * utils.c (exec_cleanup_chain, make_exec_cleanup)
3246 (do_exec_cleanups): Remove.
3247 (add_continuation, do_all_continations)
3248 (add_intermediate_continuation)
3249 (do_all_intermediate_continuations): New parameter error.
3251 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3253 * breakpoint.h (bp_location_p): New typedef.
3254 Register a vector of bp_location_p.
3255 * breakpoint.c (always_inserted_mode)
3256 (show_always_inserted_mode): New.
3257 (unlink_locations_from_global_list): Remove.
3258 (update_global_location_list)
3259 (update_global_location_list_nothrow): New.
3260 (update_watchpoint): Don't free locations.
3261 (should_insert_location): New.
3262 (insert_bp_location): Use should_insert_location.
3263 (insert_breakpoint_locations): Copied from
3265 (insert_breakpoint): Use insert_breakpoint_locations.
3266 (bpstat_stop_status): Call update_global_location_list
3267 when disabling breakpoint.
3268 (allocate_bp_location): Don't add to bp_location_chain.
3269 (set_raw_breakpoint)
3270 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
3271 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
3272 (enable_overlay_breakpoints, disable_overlay_breakpoints)
3273 (set_longjmp_resume_breakpoint)
3274 (enable_watchpoints_after_interactive_call_stop)
3275 (disable_watchpoints_before_interactive_call_start)
3276 (create_internal_breakpoint)
3277 (create_fork_vfork_event_catchpoint)
3278 (create_exec_event_catchpoint, set_momentary_breakpoint)
3279 (create_breakpoints, break_command_1, watch_command_1)
3280 (create_exception_catchpoint)
3281 (handle_gnu_v3_exceptions)
3282 (disable_breakpoint, breakpoint_re_set_one)
3283 (create_thread_event_breakpoint, create_solib_event_breakpoint)
3284 (create_ada_exception_breakpoint): : Don't call check_duplicates.
3285 Call update_global_location_list.
3286 (delete_breakpoint): Don't remove locations and don't
3287 try to reinsert them. Call update_global_location_list.
3288 (update_breakpoint_locations): Likewise.
3289 (restore_always_inserted_mode): New.
3290 (update_breakpoints_after_exec): Temporary disable
3291 always inserted mode.
3292 * Makefile.in: Update dependencies.
3294 * infrun.c (proceed): Remove breakpoints while stepping
3296 (handle_inferior_event): Don't remove or insert
3298 * linux-fork.c (checkpoint_command): Remove breakpoints
3299 before fork and insert after.
3300 (linux_fork_context): Remove breakpoints before switch
3302 * target.c (target_disconnect, target_detach): Remove
3303 breakpoints from target.
3306 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3308 * breakpoint.c (print_one_breakpoint_location): In MI
3309 mode, report the location string the breakpoint was
3310 originally created with.
3312 2008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
3314 * Makefile.in (xtensa-tdep.o): Update dependencies.
3315 * configure.tgt (xtensa*): Update dependencies.
3316 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
3317 Local variable areg renamed to arreg.
3318 (areg_number): New function.
3319 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
3320 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
3321 replaced by arreg_number.
3322 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
3323 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
3324 (xtensa_scan_prologue): New function.
3325 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
3326 when ENTRY instraction hasn't been executed yet. Get the frame pointer
3327 value based on prologue analysis. Fix the bugs preventing WS and
3328 AR4-AR7/A11 registers from getting right values for intermediate frames,
3329 whose registers have been already spilled.
3330 (xtensa_frame_prev_register): Fix WS register value. Use are_number
3331 and arreg_number appropriately.
3332 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
3333 svr4_ilp32_fetch_link_map_offsets.
3335 2008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
3337 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
3338 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
3340 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
3342 * acinclude.m4: Add override.m4.
3343 * configure: Regenerate.
3345 2008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3347 * ada-lang.c (get_selections): Variable PROMPT made non-const and
3348 initialized with a trailing space now. Use PROMPT_ARG of
3349 COMMAND_LINE_INPUT instead of printing it ourselves.
3351 2008-04-22 Joel Brobecker <brobecker@adacore.com>
3353 * NEWS: Document support for 64-bit core file.
3355 2008-04-22 Corinna Vinschen <vinschen@redhat.com>
3357 * NEWS: Add information on calling convention and new SH CLI options.
3359 * sh-tdep.c (sh_cc_gcc): New static string.
3360 (sh_cc_renesas): Ditto.
3361 (sh_cc_enum): New static string array.
3362 (sh_active_calling_convention): New static string pointer denoting
3363 active user chosen ABI.
3364 (sh_is_renesas_calling_convention): New function to return function
3365 specific ABI, or user choice if necessary.
3366 (sh_use_struct_convention): Rename first argument and turn around its
3367 meaning. Check for renesas ABI and return accordingly.
3368 (sh_use_struct_convention_nofpu): New function.
3369 (sh_next_flt_argreg): Get function type as third parameter. Check
3370 for renesas ABI and choose floating registers accordingly.
3371 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
3372 struct return slot accordingly.
3373 (sh_push_dummy_call_nofpu): Ditto.
3374 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
3375 Evaluate ABI and give to sh_use_struct_convention_nofpu.
3376 (sh_return_value_fpu): Evaluate ABI and give to
3377 sh_use_struct_convention.
3378 (show_sh_command): New function.
3379 (set_sh_command): Ditto.
3380 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
3383 * gdbarch.sh (return_value): Add func_type argument.
3384 * gdbarch.c: Regenerate.
3386 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
3387 val_type so as not to collide with value_type function. Call
3388 using_struct_return with additional function type argument.
3389 * infcall.c (call_function_by_hand): Call using_struct_return and
3390 gdbarch_return_value with additional function type argument.
3391 * infcmd.c (print_return_value): Take addition func_type argument.
3392 Call gdbarch_return_value with additional function type argument.
3393 (finish_command_continuation): Call print_return_value with additional
3394 function type argument.
3395 (finish_command): Ditto.
3396 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
3397 additional function type argument.
3398 * stack.c (return_command): Call using_struct_return and
3399 gdbarch_return_value with additional function type argument.
3400 * value.c (using_struct_return): Take additional function type argument.
3401 * value.h (using_struct_return): Accommodate declaration.
3402 * alpha-tdep.c (alpha_return_value): Add func_type argument.
3403 * amd64-tdep.c (amd64_return_value): Ditto.
3404 * arm-tdep.c (arm_return_value): Ditto.
3405 * avr-tdep.c (avr_return_value): Ditto.
3406 * cris-tdep.c (cris_return_value): Ditto.
3407 * frv-tdep.c (frv_return_value): Ditto.
3408 * h8300-tdep.c (h8300_return_value): Ditto.
3409 (h8300h_return_value): Ditto.
3410 * hppa-tdep.c (hppa32_return_value): Ditto.
3411 (hppa64_return_value): Ditto.
3412 * i386-tdep.c (i386_return_value): Ditto.
3413 * ia64-tdep.c (ia64_return_value): Ditto.
3414 * iq2000-tdep.c (iq2000_return_value): Ditto.
3415 * m32c-tdep.c (m32c_return_value): Ditto.
3416 * m32r-tdep.c (m32r_return_value): Ditto.
3417 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
3418 * m68k-tdep.c (m68k_return_value): Ditto.
3419 (m68k_svr4_return_value): Ditto.
3420 * m88k-tdep.c (m88k_return_value): Ditto.
3421 * mep-tdep.c (mep_return_value): Ditto.
3422 * mips-tdep.c (mips_eabi_return_value): Ditto.
3423 (mips_n32n64_return_value): Ditto.
3424 (mips_o32_return_value): Ditto.
3425 (mips_o64_return_value): Ditto.
3426 * mn10300-tdep.c (mn10300_return_value): Ditto.
3427 * mt-tdep.c (mt_return_value): Ditto.
3428 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
3429 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
3430 (ppc_sysv_abi_broken_return_value): Ditto.
3431 (ppc64_sysv_abi_return_value): Ditto.
3432 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
3433 (ppc_sysv_abi_broken_return_value): Ditto.
3434 (ppc64_sysv_abi_return_value): Ditto.
3435 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
3436 * rs6000-tdep.c (rs6000_return_value): Ditto.
3437 * s390-tdep.c (s390_return_value): Ditto.
3438 * score-tdep.c (score_return_value): Ditto.
3439 * sh-tdep.c (sh_return_value_nofpu): Ditto.
3440 (sh_return_value_fpu): Ditto.
3441 * sh64-tdep.c (sh64_return_value): Ditto.
3442 * sparc-tdep.c (sparc32_return_value): Ditto.
3443 * sparc64-tdep.c (sparc64_return_value): Ditto.
3444 * spu-tdep.c (spu_return_value): Ditto.
3445 * v850-tdep.c (v850_return_value): Ditto.
3446 * vax-tdep.c (vax_return_value): Ditto.
3447 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
3448 * xtensa-tdep.c (xtensa_return_value): Ditto.
3450 * gdbtypes.h (struct type): Add calling_convention member.
3451 * dwarf2read.c (read_subroutine_type): Add calling convention read
3452 from DW_AT_calling_convention attribute to function type.
3454 2008-04-22 Markus Deuling <deuling@de.ibm.com>
3456 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
3457 multi_f77_subscript to support values from registers.
3458 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
3459 * value.h (value_subscripted_rvalue): Add prototype.
3461 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
3463 * f-valprint.c (f_val_print): Likewise.
3465 2008-04-21 Craig Silverstein <csilvers@google.com>
3467 * dwarf2read.c (zlib_decompress_section): Define abfd in the
3470 2008-04-21 Pedro Alves <pedro@codesourcery.com>
3472 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
3473 section is not a code section.
3475 2008-04-19 Craig Silverstein <csilvers@google.com>
3477 * NEWS: Add information on compressed debug sections.
3479 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
3481 * mi/mi-cmd-var.c (varobj_update_one): Print new
3482 value for variable objects that changed type.
3484 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
3486 * varobj.c (varobj_invalidate): Don't touch floating
3489 2008-04-19 Mark Kettenis <kettenis@gnu.org>
3491 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
3492 (multiple_symbols_cancel): Remove extra const.
3493 * symtab.h: Likewise.
3495 2008-04-19 Nick Roberts <nickrob@snap.net.nz>
3497 * interps.c (top_level_interpreter): Rename static variable...
3498 (top_level_interpreter_ptr): ...to this.
3499 (top_level_interpreter): New function.
3501 * interps.h: New extern for top_level_interpreter.
3503 * linespec.c: Include interps.h and mi/mi-cmds.h.
3504 (decode_line_2): When using MI, always set all breakpoints in menu.
3506 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
3508 2008-04-18 Craig Silverstein <csilvers@google.com>
3510 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
3511 * config.in, configure: Regenerate.
3512 * dwarf2read.c: Include zlib.h if present.
3513 Modified *_SECTION macros.
3514 (section_is_p): New.
3515 (dwarf2_locate_sections): Use section_is_p instead of strcmp
3516 (dwarf2_resize_section): New.
3517 to determine whether a given section has a given name.
3518 (zlib_decompress_section): New.
3519 (dwarf2_read_section): Read the compressed section if present
3521 * MAINTAINERS: Added myself to section Write After Approval.
3523 2008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
3525 * defs.h (exec_set_section_offsets): Remove prototype.
3526 * exec.c (exec_set_section_offsets): Remove function.
3528 2008-04-18 Joel Brobecker <brobecker@adacore.com>
3530 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
3531 in the search for the matching symbol.
3533 2008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
3535 * breakpoint.c (update_watchpoint): Always reparse
3538 2008-04-17 Joel Brobecker <brobecker@adacore.com>
3540 * breakpoint.c (print_one_breakpoint_location): Make sure to print
3541 the breakpoint address only once.
3543 2008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
3545 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
3546 rather than a hard-coded architecture, for xcoff executables.
3548 2008-04-17 Doug Evans <dje@google.com>
3550 * buildsym.c (watch_main_source_file_lossage): New fn.
3551 (end_symtab): Call it.
3553 * source.c (find_and_open_source): Add some comments clarifying
3554 handling of FULLNAME argument. Make static. Remove pointless
3557 2008-04-17 Pedro Alves <pedro@codesourcery.com>
3559 * inf-loop.c (inferior_event_handler): Also run the intermediate
3560 continuations in the INF_EXEC_COMPLETE case.
3562 2008-04-16 Tom Tromey <tromey@redhat.com>
3564 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
3565 (set_cmd_async_ok, get_cmd_async_ok): Declare.
3566 * cli/cli-decode.c (set_cmd_async_ok): New function.
3567 (get_cmd_async_ok): New function.
3568 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
3570 * top.c (execute_command): Use get_cmd_async_ok.
3571 * infcmd.c: Include cli/cli-decode.h.
3572 (_initialize_infcmd): Mark "interrupt" as async-ok.
3573 * Makefile.in (infcmd.o): Depend on cli_decode_h.
3575 2008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
3578 * exec.c: Correct "arch-utils.h" include.
3580 2008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
3583 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
3584 to allow printing to 'see' real reason of stop. This fixes PR 2424.
3585 * breakpoint.c (bpdisp_texst): New function. The function takes over
3586 the role of bpstats static array in print_one_breakpoint_location.
3587 (print_it_typical): Print "Temporary breakpoint" instead
3588 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
3589 protocols, print disp field.
3590 (print_one_breakpoint_location): Removed bpdisps static definition.
3591 Call new bpstat_text function to get value for 'disp' field.
3592 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
3594 2008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
3596 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
3597 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
3598 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
3599 * gnulib/Makefile.in: Regenerate.
3601 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3603 * Makefile.in (GNULIB_H): New. Trigger all-lib.
3604 (defs_h): Use $(GNULIB_H).
3605 (all-lib): Depend on gnulib/Makefile.
3606 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
3607 * config.in, gnulib/Makefile.in: Regenerated.
3609 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3611 * Makefile.in (LIBGNU, INCGNU): Define.
3612 (INTERNAL_CFLAGS_BASE): Add INCGNU.
3613 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
3615 ($(LIBGNU), all-lib): New rules.
3616 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
3617 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
3618 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
3619 * gnulib: New directory, from gnulib-tool.
3620 * configure, aclocal.m4: Regenerated.
3622 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3624 * linux-thread-db.c (have_threads_callback): Check thread->private.
3626 2008-04-13 Nick Roberts <nickrob@snap.net.nz>
3627 Vladimir Prus <vladimir@codesourcery.com>
3630 * varobj.c (value_of_root): Update the expression for
3632 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
3635 2008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
3637 * mi/mi-cmd-var.c: Include "mi-getopt.h".
3638 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
3639 (mi_cmd_var_set_format): Use new mi_parse_format.
3640 (mi_cmd_var_evaluate_expression): Support for -f option to specify
3642 * Makefile.in (mi-cmd-var.o): Update dependencies.
3644 * varobj.h (varobj_get_formatted_value): Declare.
3645 * varobj.c (my_value_of_variable): Added format parameter.
3646 (cplus_value_of_variable): Likewise.
3647 (java_value_of_variable): Likewise.
3648 (c_value_of_variable): Likewise. Evaluate expression based
3649 on format parameter.
3650 (struct language_specific): Add format parameter to function member
3652 (varobj_get_formatted_value): New.
3653 (varobj_get_value): Added format parameter to method call.
3655 2008-04-08 Joel Brobecker <brobecker@adacore.com>
3657 * stabsread.c (cleanup_undefined_types_noname): Manually set the
3658 instance flags of the undefined type before calling replace_type.
3660 2008-04-08 Vladimir Prus <vladimir@codesourcery.com>
3662 * target.h (enum strata): Remove the download_stratum.
3664 2008-04-07 Doug Evans <dje@google.com>
3666 * buildsym.h (last_source_file): Add dwarf info to comment.
3667 (last_source_start_addr): Ditto.
3669 2008-04-07 Pedro Alves <pedro@codesourcery.com>
3671 * alphanbsd-tdep.c: Include "target.h".
3672 * mn10300-tdep.c: Include "target.h".
3673 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
3675 2008-04-06 Vladimir Prus <vladimir@codesourcery.com>
3677 Fix breakpoint condition that use member variables.
3678 * valops.c (check_field): Remove.
3679 (check_field_in): Rename to check_field.
3680 (value_of_this): Use la_name_of_this.
3681 * value.h (check_field): Adjust prototype.
3683 * language.h (la_value_of_this): Rename to la_name_of_this.
3684 * language.c (unknown_language_defn): Specify "this" for
3686 (auto_language_defn): Likewise.
3687 (local_language_defn): Likewise.
3688 * ada-lang.c (ada_language_defn): Adjust comment.
3689 * c-lang.c (c_language_defn): Adjust comment.
3690 (cplus_language_defn): Specify "this" for name_of_this.
3691 (asm_language_defn): Adjust comment.
3692 (minimal_language_defn): Adjust comment.
3693 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
3694 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
3695 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
3696 * objc-lang.c (objc_language_defn): Specify "self" for
3698 * p-lang.c (pascal_language_defn): Specify "this" for
3700 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
3702 * symtab.c (lookup_symbol_aux): Lookup "this" in the
3703 proper scope, and check for field in type of "this", without
3704 trying to create a value.
3706 2008-04-04 Pedro Alves <pedro@codesourcery.com>
3708 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
3709 (mi_error_message): Delete declaration.
3710 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
3711 returning MI_CMD_ERROR.
3712 * mi/mi-main.c (mi_error_message): Delete.
3713 (mi_cmd_exec_interrupt):
3714 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
3715 (mi_cmd_thread_info): Call error instead of returning
3717 (mi_cmd_data_list_register_values): Call error instead of
3718 returning MI_CMD_ERROR. Adapt to new get_register interface.
3719 (get_register): Change return typo to void. Call error instead of
3720 returning MI_CMD_ERROR.
3721 (mi_cmd_data_write_register_values): Call error instead of
3722 returning MI_CMD_ERROR.
3723 (mi_cmd_list_features): Return MI_CMD_DONE.
3724 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
3725 (mi_execute_command): Always print exceptions with -error.
3727 2008-04-04 Joel Brobecker <brobecker@adacore.com>
3729 * NEWS: Mention new commands set/show multiple-symbols.
3731 2008-04-03 Joel Brobecker <brobecker@adacore.com>
3733 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
3734 (multiple_symbols_cancel): New constants.
3735 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
3736 (multiple_symbols_select_mode): New function.
3737 (_initialize_symtab): Add new set/show multiple-symbols commands.
3738 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
3739 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
3740 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
3742 * linespec.c (decode_line_2): Likewise.
3744 2008-04-03 Doug Evans <dje@sebabeach.org>
3746 * symtab.h (enum free_code): Delete free_contents, unused.
3747 * symmisc.c (free_symtab_block): Delete.
3748 (free_symtab, case free_code): Delete.
3750 2008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
3752 * valops.c (value_cast_structs): New function. Cast related
3753 STRUCT types up/down and return cast value. The body of this
3754 function comes mostly from value_cast_pointers.
3755 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
3756 to value_cast_structs. Now value_cast_pointers needs only create
3757 appropriate reference after using value_cast_structs for actual
3759 (value_cast): Handle references.
3761 2008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
3763 * MAINTAINERS: Added myself to section Write After Approval.
3765 2008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
3767 * ia64-tdep.c (examine_prologue): Correct array access.
3769 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
3771 * cp-support.c (first_component_command): Return if no arguments.
3773 2008-03-28 Carlos O'Donell <carlos@codesourcery.com>
3775 * ser-mingw.c (ser_windows_open): Open requested name.
3777 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
3779 * MAINTAINERS: Added myself.
3781 2008-03-28 Pedro Alves <pedro@codesourcery.com>
3783 * target.c (find_default_run_target): Allow a NULL `do_mesg'
3784 parameter. If it is NULL, don't call error.
3785 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
3786 `do_mesg' parameter to find_default_run_target. If no target was
3789 2008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
3791 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
3792 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
3793 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
3795 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
3797 2008-03-27 Joel Brobecker <brobecker@adacore.com>
3801 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
3803 * features/Makefile (%.dat): Set xmltarget to the base filename
3804 of the XML source, without subdirectory.
3805 * regformats/rs6000/powerpc-32.dat: Regenerate.
3806 * regformats/rs6000/powerpc-64.dat: Regenerate.
3807 * regformats/rs6000/powerpc-e500.dat: Regenerate.
3809 2008-03-27 Markus Deuling <deuling@de.ibm.com>
3811 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
3814 2008-03-27 Nick Roberts <nickrob@snap.net.nz>
3816 * mi/mi-main.c (enum captured_mi_execute_command_actions):
3817 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
3819 2008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3821 * objfiles.h (struct objfile): New GDBARCH member.
3822 (get_objfile_arch): Add prototype.
3823 * objfiles.c: Include "arch-utils.h".
3824 (allocate_objfile): Look up gdbarch associated with bfd.
3825 (get_objfile_arch): New function.
3826 * Makefile (objfiles.o): Update dependencies.
3828 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
3830 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
3832 (locexpr_describe_location): Replace current_gdbarch by
3834 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
3835 (dwarf2_add_field): Likewise.
3836 (read_tag_pointer_type): Likewise.
3837 (read_base_type): Likewise.
3838 (new_symbol): Likewise.
3840 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
3841 (decode_base_type, decode_function_type): Likewise.
3842 (coff_read_struct_type, coff_read_enum_type): Likewise.
3843 (coff_symtab_read): Replace current_gdbarch by objfile arch.
3844 (decode_base_type): Likewise.
3845 (coff_read_enum_type): Likewise.
3846 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
3847 (coff_read_enum_type): Likewise.
3849 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
3850 (end_psymtab): Likewise.
3851 (process_one_symbol): Likewise.
3853 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
3854 (parse_procedure): Likewise.
3855 (parse_partial_symbols): Likewise.
3857 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
3859 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
3860 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
3862 (read_range_type): Replace current_gdbarch by objfile arch. Replace
3863 static range_index_type by built-in type.
3864 (read_one_struct_field): Replace current_gdbarch by objfile arch.
3865 (read_enum_type): Likewise.
3867 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
3870 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
3872 * varobj.h (varobj_floating_p): Declare.
3873 * varobj.c (varobj_floating_p): New.
3874 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
3875 '@' as the name, update all floating varobjs.
3877 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
3879 * varobj.c (struct varobj_root): Rename use_selected_frame to
3880 floating, and clarify the meaning.
3881 (varobj_create, varobj_update, new_root_variable): Adjust.
3882 (value_of_root): Don't use type_changed as in variable,
3884 (c_value_of_root): Adjust.
3886 2008-03-25 Pedro Alves <pedro@codesourcery.com>
3888 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
3890 (linux_nat_wait): Add main lwp to gdb's thread list.
3891 * linux-thread-db.c (find_new_threads_callback): Also attach to
3892 already listed threads which thread_db didn't know about yet.
3894 2008-03-25 Pedro Alves <pedro@codesourcery.com>
3896 * linux-nat.c (drain_queued_events): Fix comment typo.
3897 (linux_nat_attach): In async mode, don't rely on storing a pending
3898 status. Instead place the wait status on the pipe.
3899 (linux_nat_resume): Remove unreacheable shortcut code in async
3901 (stop_wait_callback): In async mode, don't store pending status.
3902 Instead, cancel breakpoints or resend the signal appropriatelly.
3903 (cancel_breakpoint): New, refactored from
3904 cancel_breakpoints_callback.
3905 (cancel_breakpoints_callback): Call cancel_breakpoint.
3906 (pipe_to_local_event_queue): Remove special token processing.
3907 (linux_nat_wait): Issue an internal error if a pending status is
3908 found in async mode.
3910 2008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
3912 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
3914 2008-03-24 Nick Roberts <nickrob@snap.net.nz>
3915 Vladimir Prus <vladimir@codesourcery.com>
3917 * varobj.c (struct varobj_root): New component thread_id.
3918 (varobj_get_thread_id, check_scope): New functions.
3919 (c_value_of_root): Use check_scope. Switch to the
3920 proper thread if necessary.
3922 * varobj.h (varobj_get_thread_id): New extern.
3924 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
3926 2008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
3929 * top.c: Revert 2008-03-21 changes.
3931 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
3933 * thread.c (make_cleanup_restore_current_thread): Make it
3935 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
3936 * varobj.c (varobj_update): Don't save/restore frame.
3937 (c_value_of_root): Save/restore thread and frame here,
3938 using make_cleanup_restore_current_thread.
3939 * Makefile.in: Update dependecies.
3941 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
3943 * varobj.c (struct varobj_root): Clarify
3944 comment on the frame field.
3945 (varobj_create): Don't set frame if we have no
3948 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
3951 Suggested by Jan Kratochvil:
3952 * top.c (gdb_rl_operate_and_get_next_completion): Call
3953 rl_redisplay_function.
3954 (gdb_rl_redisplay): New.
3955 (init_main): Set rl_redisplay_function.
3957 2008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
3959 * aix-thread.c (pdc_read_regs): Fix compiler warning.
3960 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
3961 (store_regs_kernel_thread): Likewise.
3963 2008-03-21 Pedro Alves <pedro@codesourcery.com>
3965 Linux native async support.
3967 * target.h (struct target_ops): Delete to_async_mask_value and add
3969 (target_is_async_p, target_async): Formatting.
3970 (target_async_mask_value): Delete.
3971 (target_async_mask): Delete function declaration, and add new
3972 target macro with the same name.
3974 * target.c (update_current_target): Replace to_async_mask_value by
3975 to_async_mask. Default to_async_mask to return_one.
3976 (target_async_mask): Delete.
3977 (find_default_can_async_p, find_default_is_async_p): New.
3978 (init_dummy_target): register find_default_can_async_p and
3979 find_default_is_async_p on the dummy target.
3981 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
3982 (debug_linux_nat_async): New global.
3983 (show_debug_linux_nat_async): New function.
3984 (linux_nat_async_enabled, linux_nat_async_mask_value)
3985 (linux_nat_event_pipe, linux_nat_num_queued_events)
3986 (linux_nat_async_events_enabled): New globals.
3987 (struct waitpid_result): New struct.
3988 (waitpid_queue): New global.
3989 (queued_waitpid, push_waitpid, drain_queued_events): New.
3990 (my_waitpid): Call queued_waitpid.
3991 (linux_child_follow_fork): Disable async events during the call.
3992 (blocked_mask): Delete.
3993 (sync_sigchld_action, async_sigchld_action): New globals.
3994 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
3995 async mode, block events during the call.
3996 (linux_nat_create_inferior): New.
3997 (linux_nat_attach): In sync mode, restore the mask states. In
3998 async mode, wake the event loop immediatelly.
3999 (detach_callback): Drain all queued events of the lwp we're
4001 (linux_nat_detach): Block async mode, and drain events of the main
4003 (linux_nat_resume): If in async mode, mask async events during the
4004 call. If short circuiting, force event loop to wake up. If
4005 resuming, set target_executing, and register target events in the
4007 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
4008 (linux_nat_wait): In async mode, block events during the call.
4009 Only enable/disable passing SIGINT to the inferior in sync mode.
4010 Get events from local waitpid queue. If no interesting events was
4011 found, return to events loop. Reregister target events in the
4012 event loop on exit. In sync mode, no need to reblock SIGCHLD.
4013 (linux_nat_kill): Disable events on entry.
4014 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
4015 here. Detach async mode from the event loop if there are no more
4016 forks available, otherwise leave it on.
4017 (sigchld_handler): Assure this is called only in sync mode.
4018 (linux_async_permitted, linux_async_permitted_1): New globals.
4019 (set_maintenance_linux_async_permitted)
4020 (show_maintenance_linux_async_permitted): New functions.
4021 (linux_nat_is_async_p, linux_nat_can_async_p)
4022 (linux_nat_async_mask): New.
4023 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
4024 (get_pending_events, async_sigchld_handler): New.
4025 (linux_nat_async_events): New.
4026 (async_terminal_is_ours): New global.
4027 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
4028 (async_client_callback, async_client_context): New.
4029 (linux_nat_async_file_handler, linux_nat_async)
4030 (linux_nat_disable_async, linux_nat_enable_async): New.
4031 (linux_nat_add_target): Register linux_nat_create_inferior,
4032 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
4033 linux_nat_async_mask, linux_nat_terminal_inferior and
4034 linux_nat_terminal_ours.
4035 (_initialize_linux_nat): Remove local action variable, and update
4036 code that used it to use sync_sigchld_action. Add new
4037 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
4038 set/show command in the maintenance class. Add new "linux-async"
4039 maintenance set/show command. Block SIGCHLD by default. Setup
4040 async_sichld_action, and sync_sigchld_action. Install the default
4042 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
4045 * linux-thread-db.c (re_check_for_thread_db): New.
4046 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
4047 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
4048 (thread_db_async_mask): New.
4049 (init_thread_db_ops): Register thread_db_can_async_p,
4050 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
4052 * remote.c (remote_async_mask_value): New.
4053 (remote_return_zero): New.
4054 (init_remote_ops): Register remote_return_zero as callbacks of
4055 to_can_async_p and to_is_async_p.
4056 (remote_can_async_p, remote_is_async_p, remote_async): Update to
4057 use remote_async_mask_value.
4058 (remote_async_mask): New.
4059 (init_remote_async_ops): Remove to_async_mask_value setting and
4060 register remote_async_mask as to_async_mask callback in
4063 * Makefile.in (linux-nat.o): Update.
4065 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
4067 * gdbthread.h (add_thread_with_info): New.
4068 * linux-thread-db.c: Add some documentation.
4069 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
4070 (struct private_thread_info): Remove th_valid and ti_valid.
4071 Replace ti with tid.
4072 (thread_get_info_callback): Do not add TID to the new ptid. Do
4074 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
4075 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
4077 (attach_thread): Handle an already-existing thread. Use
4078 add_thread_with_info. Cache the th and tid.
4079 (detach_thread): Verify that private was set. Remove verbose
4080 argument and printing. Update caller.
4081 (thread_db_detach): Do not adjust inferior_ptid.
4082 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
4083 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
4084 (thread_db_wait): Do not use lwp_from_thread.
4085 (thread_db_pid_to_str): Use the cached TID.
4086 (thread_db_extra_thread_info): Check that private is set.
4087 (same_ptid_callback): Delete.
4088 (thread_db_get_thread_local_address): Do not use it or check
4089 is_thread. Check that private is set. Assume that the thread
4090 handle is already cached.
4091 (init_thread_db_ops): Remove to_resume and to_kill.
4092 * thread.c (add_thread_with_info): New.
4093 (add_thread): Use it.
4094 * linux-nat.c (find_thread_from_lwp): Delete.
4095 (exit_lwp): Do not use it. Check print_thread_events. Print before
4096 deleting the thread.
4097 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
4098 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
4099 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
4100 printf_unfiltered for thread exits.
4101 * procfs.c (procfs_wait): Likewise.
4103 2008-03-21 Chris Demetriou <cgd@google.com>
4105 * symtab.c (rbreak_command): Quote symbol name before passing
4106 it to break_command.
4108 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
4110 * eval.c (evaluate_subexp_for_address): Clarify error message.
4111 Use value_must_coerce_to_target.
4112 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
4113 * valops.c (value_assign): Call value_coerce_to_target when
4114 assigning to anything but internalvars. Leave GDB-side arrays
4115 as arrays when assigning to internalvars.
4116 (value_must_coerce_to_target, value_coerce_to_target): New.
4117 (value_coerce_array, value_addr): Call value_coerce_to_target.
4118 (value_array): Create the array in GDB's memory instead of
4120 * value.h (value_must_coerce_to_target, value_coerce_to_target):
4123 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
4125 * top.c (quit_confirm): Warn that we will kill the program.
4127 2008-03-19 Pedro Alves <pedro@codesourcery.com>
4129 * inflow.c (terminal_ours_1): Guard access to
4130 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
4132 2008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
4133 Jim Blandy <jimb@codesourcery.com>
4134 Daniel Jacobowitz <drow@false.org>
4136 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
4137 (dwarf2_read_address): Update prototype.
4139 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
4140 (signed_address_type): Likewise.
4141 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
4142 (execute_stack_op): Update calls to unsigned_address_type,
4143 signed_address_type and dwarf2_read_address. Fix implementation
4144 of DW_OP_deref_size.
4146 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
4147 (dwarf2_per_cu_addr_size): Likewise.
4148 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
4149 (struct dwarf2_loclist_baton): Likewise.
4151 * dwarf2loc.c (find_location_expression): Update calls to
4152 dwarf2_read_address. Use dwarf2_per_cu_objfile and
4153 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
4154 (locexpr_describe_location): Likewise.
4155 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
4156 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
4157 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
4158 to dwarf2_per_cu_addr_size (per_cu).
4159 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
4160 (loclist_read_variable): Likewise.
4161 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
4163 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
4164 instead of baton->objfile.
4165 (dwarf2_per_cu_obfile): New function.
4166 (dwarf2_per_cu_addr_size): Likewise.
4168 * dwarf2-frame.c (struct comp_unit): Move higher.
4169 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
4170 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
4171 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
4172 parameter by using fde->eh_frame_p. Use read_encoded_value
4173 to implement DW_CFA_set_loc.
4174 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
4175 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
4176 execute_stack_op and execute_cfa_program.
4177 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
4178 (size_of_encoded_value): Remove.
4179 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
4180 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
4181 (add_cie): Set cie->unit backlink.
4182 (decode_frame_entry_1): Set cie->addr_size. Update calls to
4184 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
4186 2008-03-17 Markus Deuling <deuling@de.ibm.com>
4188 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
4189 gdbarch_bfd_arch_info.
4191 2008-03-17 Joel Brobecker <brobecker@adacore.com>
4193 * aix-thread.c (pdc_read_regs): Minor reformatting.
4195 2008-03-17 Vladimir Prus <vladimir@codesourcery.com>
4197 * thread.c (print_thread_info): Don't insist
4198 on having current thread if there are no
4201 2008-03-17 Pedro Alves <pedro@codesourcery.com>
4203 * infcmd.c (attach_command_post_wait)
4204 (attach_command_continuation): New.
4205 (attach_command): Support background async execution, and async
4206 execution in synchronous mode.
4208 2008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
4210 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
4211 * symmisc.c (dump_symtab_1): Likewise.
4212 * wrapper.c (gdb_value_struct_elt): Likewise.
4214 2008-03-17 Pedro Alves <pedro@codesourcery.com>
4216 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
4218 2008-03-17 Pedro Alves <pedro@codesourcery.com>
4220 * linux-nat.c (linux_nat_filter_event): New, refactored from
4222 (linux_nat_wait): Call linux_nat_filter_event.
4224 2008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
4226 * top.c (execute_command): Fix uninitialized variable error.
4228 2008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
4230 * Makefile.in (amd64nbsd-nat.o): New dependency.
4231 * amd64nbsd-nat.c: Include "nbsd-nat.h".
4232 (_initialize_amd64nbsd_nat): Update target vector to use
4233 nbsd_pid_to_exec_file.
4234 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
4236 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
4238 Remove ignoring leading exec events code.
4239 * fork-child.c (startup_inferior): Do not set
4240 inferior_ignoring_leading_exec_events.
4241 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
4242 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
4243 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
4244 (handle_inferior_event): Remove code for ignoring leading exec
4246 * target.c (update_current_target): Do not inherit, or default,
4247 to_reported_exec_events_per_exec_call.
4248 (debug_to_reported_exec_events_per_exec_call): Remove.
4249 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
4250 * target.h (target_reported_exec_events_per_exec_call): Remove.
4251 (struct target): Remove the to_reported_exec_events_per_exec_call
4254 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
4256 Implement -thread-info.
4257 * gdbthread.h (print_thread_info): Declare.
4259 * thread.c (print_thread_info): New, extracted
4260 from info_threads_command and adjusted to
4261 work for CLI and MI.
4262 (info_threads_command): Use print_thread_info.
4263 * Makefile.in: Update dependencies.
4265 * mi/mi-cmds.c (mi_cmds): Specify a handler
4267 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
4268 * mi/mi-main.c (mi_cmd_thread_info): New.
4269 (mi_cmd_list_features): Include 'thread-info'.
4271 2008-03-14 Kevin Buettner <kevinb@redhat.com>
4273 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
4274 to decide whether to match instruction patterns using "sw" and "sd".
4276 2008-03-14 Pedro Alves <pedro@codesourcery.com>
4278 * infcmd.c (jump_command): Postpone disabling stdin until after
4281 2008-03-14 Pedro Alves <pedro@codesourcery.com>
4283 * inflow.c (gdb_getpgrp): New.
4284 (gdb_has_a_terminal): Use get_getpgrp.
4285 (terminal_ours_1): If attach_flag is set, don't refetch
4286 inferior_process_group.
4288 2008-03-14 Pedro Alves <pedro@codesourcery.com>
4290 * features/library-list.dtd: Allow "section" elements as children
4291 of "library". Add "section" element and describe its attributes.
4293 * solib-target.c (struct lm_info): Add section_bases member.
4294 (library_list_start_segment): Error out if seen a section element.
4295 (library_list_start_section): New.
4296 (library_list_end_library): New.
4297 (solib_target_free_library_list): Free section_bases.
4298 (section_attributes): New.
4299 (library_children): Make "segment" optional. Add "section" child.
4300 (library_list_children): Register library_list_end_library.
4301 (solib_target_relocate_section_addresses): Handle section bases.
4303 * NEWS: Mention new qXfer:libraries:read section offsets support.
4305 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
4307 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
4308 (make_exec_error_cleanup): Remove declarations.
4309 * utils.c (exec_error_cleanup_chain): Remove.
4310 (do_exec_error_cleanups, discard_exec_error_cleanups)
4311 (make_exec_error_cleanup): Remove.
4312 * event-loop.c (start_event_loop): Adjust call to
4314 * event-top.c (async_enable_stdin): Remove the paramater dummy.
4315 (async_disable_stdin): Don't register async_enable_stdin via
4317 * inf-loop.c (inferior_event_handler): Don't
4318 call do_exec_error_cleanups. Call async_enable_stdin instead.
4319 * event-loop.c (start_event_loop): Adjust call to
4321 * tui/tui-interp.c (tui_command_loop): Adjust call to
4324 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
4327 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
4328 * breakpoint.c (bpstat_do_actions): In async mode,
4329 don't jump to top expecting stop_bpstat to be already
4331 * event-loop.c (start_event_loop): Call async_enable_stdin
4333 * event-top.c (async_enable_stdin): Do nothing if sync_execution
4335 (command_handler): Do not setup continuation here.
4336 (command_line_handler_continuation): Move to...
4337 * top.c (command_line_handler_continuation): ... here.
4338 (execute_command): In async mode, register continuation.
4339 Don't check frame's language in running in async mode.
4340 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
4341 * inf-loop.c (complete_execution): Inline into...
4342 (inferior_event_handler): ... here. Clear target_executing before
4343 doing any cleanups. Don't try to show prompt if the target was
4345 * infcmd.c (signal_command): Add support for async mode.
4346 (finish_command): Only add continuation if the target was
4347 successfully resumed.
4348 * remote.c (init_async_opts): Register to_get_thread_local_address
4350 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
4351 with sync_execution.
4352 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
4355 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
4357 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
4358 * exec.c (exec_bfd_mtime): Define.
4359 (exec_close): Clear it.
4360 (exec_file_attach): Set it.
4361 * gdbcore.h (exec_bfd_mtime): Declare.
4362 * source.c (find_source_lines): Do not use bfd_get_mtime.
4364 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
4366 * top.c (simplified_command_loop): Remove.
4368 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
4370 Remove unused remote.c hooks.
4371 * remote.c (deprecated_target_resume_hook)
4372 (deprecated_target_wait_loop_hook): Remove.
4373 (remote_resume): Do not call deprecated_target_resume_hook.
4374 (remote_wait): Do not call deprecated_target_wait_loop_hook.
4375 (remote_async_wait): Likewise.
4377 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
4379 Implement MI notification for new threads.
4380 * doc/observer.texi (new_thread): Document.
4381 * observer.sh: Forward declare struct thread_info.
4382 * thread.c (add_thread): Notify observer.
4384 * interps.h (interp_init_ftype): New parameter
4386 (interp_set): Likewise.
4387 (top_level_interpreter_data): Declare.
4388 * interps.c (interp_set): New parameter top_level.
4389 Pass it to interpreter's init function. Remember
4390 top level interpreter.
4391 (interpreter_exec_cmd): Adjust.
4392 (top_level_interpreter_data): New.
4393 * main.c (captured_main): Pass 1 for top_level
4394 parameter of interp_set.
4395 * cli/cli-interp.c (cli_interpreter_init): New
4396 parameter top_level.
4397 * tui/tui-interp.c (tui_init): New parameter top_level.
4399 * mi/mi-interp.c (mi_new_thread): New.
4400 (mi_interpreter_init): If top level, register
4401 observer for new threads.
4403 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
4405 2008-03-14 Pedro Alves <pedro@codesourcery.com>
4407 * top.c (execute_command): Disable break and stop
4408 commands in async mode.
4410 2008-03-14 Pedro Alves <pedro@codesourcery.com>
4413 2008-03-14 Pedro Alves <pedro@codesourcery.com>
4414 * inf-loop.c (inferior_event_handler): Don't include remote.h.
4415 Call target_stop in the INF_QUIT_REQ case.
4416 * Makefile.in (inf-loop.o): Update.
4418 2008-03-14 Pedro Alves <pedro@codesourcery.com>
4420 * inf-loop.c (inferior_event_handler): Don't include remote.h.
4421 Call target_stop in the INF_QUIT_REQ case.
4422 * Makefile.in (inf-loop.o): Update.
4424 2008-03-14 Pedro Alves <pedro@codesourcery.com>
4426 * top.c (execute_command): Enable break, info and interrupt
4427 commands in async mode.
4429 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
4430 Daniel Jacobowitz <dan@codesourcery.com>
4432 * breakpoint.h (breakpoint_restore_shadows): New
4434 * breakpoint.c (breakpoint_restore_shadows): New.
4435 (read_memory_nobpt): Delete.
4436 * gdbcore.h (read_memory_nobpt): Delete declaration.
4437 * target.c (memory_xfer_partial): Call
4438 breakpoint_restore_shadows.
4439 (restore_show_memory_breakpoints)
4440 (make_show_memory_beakpoints_cleanup): New.
4441 (show_memory_breakpoints): New.
4442 * target.h (make_show_memory_beakpoints_cleanup): Declare.
4443 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
4444 Make sure we see memory breakpoints when checking if
4445 breakpoint is still there.
4446 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
4447 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
4448 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
4449 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
4451 2008-03-12 Pedro Alves <pedro@codesourcery.com>
4453 * thread.c (add_thread): Use printf_unfiltered to print.
4455 2008-03-12 Joel Brobecker <brobecker@gnat.com>
4457 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
4458 that is true only on x86-solaris and x86_64-solaris.
4459 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
4460 with proc_get_LDT_entry.
4462 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
4464 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
4465 * config.in, configure: Regenerate.
4466 * fork-child.c (fork_inferior): Call create_tty_session.
4467 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
4468 (create_tty_session): New function.
4469 * terminal.h: Declare create_tty_session.
4471 2008-03-12 Alan Modra <amodra@bigpond.net.au>
4474 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
4475 * mipsread.c: Include elf/internal.h.
4476 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
4479 2008-03-11 Markus Deuling <deuling@de.ibm.com>
4481 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
4482 to get at the current architecture and at the target specific vector.
4483 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
4484 remove define of I387_ST0_REGNUM.
4486 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
4488 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
4489 get at the current architecture
4490 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
4493 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
4494 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
4496 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
4497 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
4498 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
4500 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
4501 at the target specific vector.
4503 (i386_get_longjmp_target): Use get_frame_arch to get at the current
4504 architecture. Use gdbarch_tdep to get at the target specific vector.
4506 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
4507 update caller. Use gdbarch_tdep to get at the target specific vector.
4509 (i386_register_to_value: Use get_frame_arch to get at the current
4512 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
4515 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
4516 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
4517 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
4518 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
4520 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
4523 (i387_convert_register_p, i387_register_to_value,
4524 i387_value_to_register): Update call for i386_fp_regnum_p.
4526 * i387-tdep.h: Remove comment.
4527 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
4528 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
4529 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
4530 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
4531 I387_MXCSR_REGNUM): Add target specific vector as parameter.
4533 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
4535 * Makefile.in (fork-child.o): Update.
4536 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
4537 argument. Gather all gdbserver features together.
4538 * fork-child.c (exec_wrapper): New variable.
4539 (fork_inferior): Use it.
4540 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
4541 (unset_exec_wrapper_command, _initialize_fork_child): New.
4543 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
4545 * source.c (directory_command): Modify the determination of
4546 condition of terminal "from_tty".
4548 2008-03-10 Matt Rice <ratmice@gmail.com>
4550 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
4552 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
4554 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
4555 of the data passing to strtoulst function.
4556 (info_spu_signal_command): Likewise.
4558 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
4560 * mi/mi-interp.c (mi_command_loop): Remove
4563 2008-03-07 Joel Brobecker <brobecker@adacore.com>
4565 * remote.c (extended_remote_attach_1): Make local variable pid an int
4568 2008-03-07 Joel Brobecker <brobecker@adacore.com>
4570 * solib-svr4.c (svr4_same_1): New function, originally extracted
4571 from svr4_same and expanded to handle the sparc64 case.
4572 (svr4_same): Move up and reimplement using svr4_same_1.
4573 (enable_break): Use svr4_same_1 to do shared library name comparisons.
4575 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
4577 * MAINTAINERS: Move self to Paper trail.
4579 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
4581 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
4582 * event-loop.c (call_async_signal_handler): New.
4583 * event-loop.h (call_async_signal_handler)
4584 (gdb_call_async_signal_handler): Declare.
4585 (mark_async_signal_handler): Add comments.
4586 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
4587 * mingw-hdep.c (sigint_event, sigint_handler): New.
4588 (gdb_select): Use them. Wait for the readline signal handler
4590 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
4591 * posix-hdep.c (gdb_call_async_signal_handler): New function.
4592 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
4594 (remote_fileio_ctrl_c_signal_handler): Use
4595 gdb_call_async_signal_handler.
4596 (initialize_remote_fileio): Initialize sigint_fileio_token.
4597 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
4598 not initialize tokens here.
4599 (handle_remote_sigint_twice): Likewise. Reinstall
4600 handle_remote_sigint.
4601 (async_remote_interrupt_twice): Just call interrupt_query.
4602 (cleanup_sigint_signal_handler): Do not delete tokens.
4603 (remote_interrupt, remote_interrupt_twice): Use
4604 gdb_call_async_signal_handler.
4605 (interrupt_query): Reinstall the default signal handler.
4606 (_initialize_remote): Initialize tokens here.
4608 2008-03-04 Joel Brobecker <brobecker@adacore.com>
4610 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
4611 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
4612 Change the type of the lr register to code_ptr.
4613 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
4614 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
4615 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
4616 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
4617 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
4618 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
4619 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
4621 2008-03-03 James E. Wilson <wilson@tuliptree.org>
4623 * MAINTAINERS: Update my email address.
4625 2008-03-03 Keith Seitz <keiths@redhat.com>
4627 From Dave Murphy <davem@devkitpro.org>:
4628 * configure.ac: Set tcl configdir to win under mingw.
4629 * configure: Regenerate.
4631 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
4633 * breakpoint.c (fetch_watchpoint_value): New function.
4634 (update_watchpoint): Set and clear val_valid. Use
4635 fetch_watchpoint_value. Handle unreadable values on the
4636 value chain. Correct check for user-requested array watchpoints.
4637 (breakpoint_init_inferior): Clear val_valid.
4638 (watchpoint_value_print): New function.
4639 (print_it_typical): Use it. Do not free or clear old_val. Print
4640 watchpoints even if old_val == NULL.
4641 (watchpoint_check): Use fetch_watchpoint_value. Check for values
4642 becoming readable or unreadable.
4643 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
4644 (do_enable_watchpoint): Likewise.
4645 * breakpoint.h (struct breakpoint): Update comment for val. Add
4647 * NEWS: Mention watchpoints on inaccessible memory.
4649 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
4651 * Makefile.in (i386-nat.o): Update.
4652 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
4653 i386_use_watchpoints.
4654 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
4655 i386_use_watchpoints.
4656 * i386-nat.c (i386_stopped_data_address): Take two arguments.
4657 (i386_stopped_by_watchpoint): Update call.
4658 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
4659 * config/i386/nm-i386.h: Conditionalize definitions on
4660 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
4661 (i386_use_watchpoints): Declare.
4662 (i386_stopped_data_address): Update.
4663 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
4664 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
4666 2008-02-29 Joel Brobecker <brobecker@adacore.com>
4668 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
4669 * version.in: Bump version to 6.8.50.20080229-cvs.
4671 2008-02-28 Markus Deuling <deuling@de.ibm.com>
4673 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
4676 2008-02-28 Tom Tromey <tromey@redhat.com>
4678 * infcmd.c (notice_args_read): Print result of get_inferior_args.
4680 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
4682 * infcmd.c (kill_if_already_running): Make static. Use
4683 target_require_runnable.
4684 * target.c (target_require_runnable): New.
4685 * target.h (target_require_runnable): Declare.
4687 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
4689 * frame.c (reinit_frame_cache): Only annotate if frames were
4692 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4694 * regformats/reg-ppc.dat: Rename "ps" to "msr".
4695 * regformats/reg-ppc64.dat: Likewise.
4697 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4699 * features/Makefile (%.dat): Emit xmltarget statement.
4701 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
4702 Generate code to set gdbserver_xmltarget in init_registers_${name}.
4704 * regformats/arm-with-iwmmxt.dat: Regenerate.
4705 * regformats/mips64-linux.dat: Regenerate.
4706 * regformats/mips-linux.dat: Regenerate.
4707 * regformats/rs6000/powerpc-32.dat: Regenerate.
4708 * regformats/rs6000/powerpc-64.dat: Regenerate.
4709 * regformats/rs6000/powerpc-e500.dat: Regenerate.
4711 * regformats/reg-arm.dat: Add xmlarch statement.
4712 * regformats/reg-i386.dat: Likewise.
4713 * regformats/reg-i386-linux.dat: Likewise.
4714 * regformats/reg-x86-64-linux.dat: Likewise.
4715 * regformats/reg-spu.dat: Likewise.
4717 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
4719 * remote.c (remote_wait, remote_async_wait): Stop if we receive
4722 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
4724 * utils.c (debug_timestamp): New.
4725 (vfprintf_unfiltered): Print timestamps if requested.
4726 (show_debug_timestamp): New.
4727 (initialize_utils): Register "set debug timestamp".
4728 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
4730 2008-02-27 Joel Brobecker <brobecker@adacore.com>
4732 * breakpoint.c (skip_prologue_sal): New function.
4733 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
4734 computed from a line number.
4736 2008-02-27 Joel Brobecker <brobecker@adacore.com>
4738 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
4739 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
4740 Set PC register type to "code_ptr".
4741 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
4742 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
4743 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
4744 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
4745 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
4746 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
4747 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
4750 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
4752 * regformats/regdat.sh: Rename init_registers function in
4753 generated file to init_registers_${name}.
4755 * regformats/reg-crisv32.dat: Set "name" to crisv32.
4756 * regformats/reg-ppc64.dat: Set "name" to ppc64.
4757 * regformats/reg-s390x.dat: Set "name" to s390x.
4759 2008-02-26 Greg Law <glaw@undo-software.com>
4761 * regcache.c (registers_changed): Call reinit_frame_cache.
4763 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
4765 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
4766 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
4767 and svr4_fetch_objfile_link_map.
4768 * Makefile.in (sh-linux-tdep.o): Update.
4770 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
4772 * amd64-tdep.c (amd64_classify): Add support for decimal float
4774 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
4775 use the struct return convention.
4777 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
4779 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
4780 to old format. Discard breakpoint address if shared library is
4782 (breakpoint_1): Adjust formatting of table header accordingly.
4784 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
4786 * remote.c (remote_get_threadlist): If the response
4787 is empty, don't try to parse it.
4789 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
4791 Unbreak 'target async'.
4792 * serial.c (serial_async): Set the
4793 handler function before enabling async
4796 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
4798 * solib-svr4.c (enable_break): Convert r_brk to a code address.
4800 2008-02-21 Pedro Alves <pedro@codesourcery.com>
4802 * remote.c (extended_remote_attach_1): Set attach_flag.
4803 (extended_remote_create_inferior_1): Clear attach_flag.
4805 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
4807 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
4809 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
4810 * solib-svr4.c (solib_svr4_r_brk): New.
4811 (open_symbol_file_object, svr4_current_sos): Always check the
4813 (svr4_fetch_objfile_link_map): Do not set debug_base.
4814 (enable_break): Use r_brk if it is set.
4815 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
4816 (svr4_lp64_fetch_link_map_offsets): Likewise.
4817 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
4819 2008-02-20 Markus Deuling <deuling@de.ibm.com>
4820 Mark Kettenis <kettenis@gnu.org>
4822 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
4823 trad_frame_saved_reg.
4824 (trad-frame.h): New include.
4826 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
4827 instead of frame_obstack_zalloc.
4828 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
4830 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
4832 2008-02-20 Markus Deuling <deuling@de.ibm.com>
4834 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
4835 from disassemble_info instead of gdbarch_byte_order.
4837 * mips-tdep.c (gdb_print_insn_mips): Likewise.
4838 * arm-tdep.c (gdb_print_insn_arm): Likewise.
4840 2008-02-20 Markus Deuling <deuling@de.ibm.com>
4842 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
4843 gdbarch as parameter.
4845 * gdbarch.{c,h}: Regenerate.
4847 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
4849 * mem-break.c (default_memory_insert_breakpoint)
4850 (default_memory_remove_breakpoint): Likewise.
4851 * target.h (default_memory_remove_breakpoint)
4852 (default_memory_insert_breakpoint): Likewise.
4854 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
4855 parameter. Replace current_gdbarch by gdbarch.
4856 * m32r-tdep.c (m32r_memory_insert_breakpoint)
4857 (m32r_memory_remove_breakpoint): Likewise.
4859 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
4861 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
4863 2008-02-19 Joel Brobecker <brobecker@adacore.com>
4865 * NEWS: Add entry describing Add support improvements.
4867 2008-02-18 Markus Deuling <deuling@de.ibm.com>
4869 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
4872 2008-02-18 Markus Deuling <deuling@de.ibm.com>
4874 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
4875 register_offset_hack anymore.
4877 * regcache.{c,h} (register_offset_hack): Remove.
4879 2008-02-18 Markus Deuling <deuling@de.ibm.com>
4881 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
4883 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
4884 current_gdbarch by gdbarch.
4885 (hppa64_hpux_find_global_pointer): Likewise.
4886 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
4887 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
4888 find_global_pointer.
4890 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
4892 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4894 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
4895 of gdbarch_num_regs.
4897 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
4898 replace current_gdbarch by gdbarch.
4899 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
4901 2008-02-18 Markus Deuling <deuling@de.ibm.com>
4903 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
4904 and replace current_gdbarch by gdbarch.
4906 (store_register): Update call for exec_one_dummy_insn.
4907 (fetch_register, store_register): Update call of regmap.
4909 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
4910 parameter and replace current_gdbarch by gdbarch.
4912 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
4913 the current architecture. Update call for getregs_supplies and
4915 (ppcnbsd_fetch_inferior_registers): Likewise.
4917 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
4918 replace current_gdbarch by gdbarch.
4919 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
4920 get_regcache_arch to get at the current architecture. Update call for
4923 2008-02-18 Markus Deuling <deuling@de.ibm.com>
4925 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
4928 2008-02-15 Markus Deuling <deuling@de.ibm.com>
4930 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
4932 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
4934 * NEWS: Mention pending breakpints in MI.
4936 2008-02-14 Markus Deuling <deuling@de.ibm.com>
4938 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
4940 2008-02-13 Markus Deuling <deuling@de.ibm.com>
4942 Add script to build and test GDB using enable-targets=all.
4944 * gdb_buildall.sh: New file.
4946 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
4948 * NEWS (New native configurations): Xtensa GNU/Linux.
4949 (New targets): Xtensa GNU/Linux.
4950 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
4952 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
4953 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
4954 * configure.tgt (xtensa*-*-linux*): New entry.
4955 * xtensa-config.c (xtensa_tdep): New variable.
4956 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
4957 (rmap): Change format based on new macro XTREG.
4958 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
4959 * xtensa-linux-nat.c: New.
4960 * xtensa-linux-tdep.c: New.
4961 * xtensa-xtregs.c: New.
4962 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
4963 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
4964 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
4965 (xtensa_register_t): New field coprocessor.
4966 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
4967 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
4968 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
4969 Update to handle privileged registers.
4970 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
4971 (xtensa_push_dummy_call): Set windowstart register correctly.
4972 (call0_analyze_prologue): Initialize xtensa_default_isa.
4973 (xtensa_derive_tdep): New.
4974 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
4975 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
4976 Call xtensa_derive_tdep().
4977 * config/xtensa/linux.mh: New.
4978 * regformats/reg-xtensa.dat: New.
4980 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
4982 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
4983 (filenames.h): New include.
4984 * Makefile.in (corelow.o): Add dependency for filenames.h.
4986 2008-02-08 Doug Evans <dje@google.com>
4988 * source.c (find_and_open_source): Always rewrite absolute filenames.
4990 2008-02-07 Doug Evans <dje@google.com>
4992 * breakpoint.c: #include "hashtab.h".
4993 (ambiguous_names_p): New fn.
4994 (update_breakpoint_locations): When restoring bp enable status, don't
4995 compare function names if any functions have same name.
4996 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
4998 2008-02-07 Joel Brobecker <brobecker@adacore.com>
5000 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
5001 instead of just a VEC*. Update use of SV.
5002 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
5004 2007-02-07 Joel Brobecker <brobecker@adacore.com>
5006 * NEWS: Put all new commands since gdb-6.7 together.
5008 2007-02-07 Joel Brobecker <brobecker@adacore.com>
5010 * ada-lang.c: #include "vec.h".
5011 (struct string_vector, new_string_vector, string_vector_append):
5013 (char_ptr): New typedef.
5014 (DEF_VEC_P (char_ptr)): New VEC type.
5015 (symbol_completion_add): Update profile to take the new VEC type
5016 instead of the old string_vector structure. Update code accordingly.
5017 (ada_make_symbol_completion_list): Use the new VEC type instead of
5018 the old string_vector structure, and update the code accordingly.
5019 * Makefile.in (ada-lang.o): Add dependency on vec.h.
5021 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
5023 * p-exp.y: Set current_type in missing places.
5024 (leftdiv_is_integer): New static variable.
5025 Typecast right operand of BINOP_DIV to long_double if both operands
5028 2008-02-06 Maciej W. Rozycki <macro@mips.com>
5030 * remote-mips.c (set_breakpoint): Rename to...
5031 (mips_set_breakpoint): ... this.
5032 (clear_breakpoint): Rename to...
5033 (mips_clear_breakpoint): ... this.
5034 (common_breakpoint): Rename to...
5035 (mips_common_breakpoint): ... this.
5036 (check_lsi_error): Rename to...
5037 (mips_check_lsi_error): ... this.
5039 2007-02-05 Joel Brobecker <brobecker@adacore.com>
5041 * language.h (struct language_defn): Add new field
5042 la_make_symbol_completion_list.
5043 * symtab.c (default_make_symbol_completion_list): Renames
5044 make_symbol_completion_list.
5045 (make_symbol_completion_list): New function.
5046 * symtab.h (default_make_symbol_completion_list): Add declaration.
5047 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
5048 (auto_language, local_language): Likewise.
5049 * objc-lang.c (objc_language_defn): Likewise.
5050 * scm-lang.c (scm_language_defn): Likewise.
5051 * m2-lang.c (m2_language_defn): Likewise.
5052 * f-lang.c (f_language_defn): Likewise.
5053 * jv-lang.c (java_language_defn): Likewise.
5054 * p-lang.c (pascal_language_defn): Likewise.
5055 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
5056 (minimal_language_defn): Likewise.
5057 * ada-lang.c (struct string_vector): New structure.
5058 (new_string_vector, string_vector_append, ada_unqualified_name)
5059 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
5060 (ada_make_symbol_completion_list): New functions.
5061 (ada_language_defn): Set la_make_symbol_completion_list.
5062 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
5063 this function is static.
5065 2008-02-05 Kevin Buettner <kevinb@redhat.com>
5067 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
5068 to account for call site optimizations.
5070 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
5072 * tracepoint.c (read_actions): Handle end-of-text indicator
5073 in action list properly. (Committed by Jim Blandy)
5075 2008-02-05 Jim Blandy <jimb@red-bean.com>
5077 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
5078 pseudoregister, not an internal error.
5079 Reported by: Andrzej Zaborowski
5081 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
5083 * varobj.c (c_value_of_variable): Use xstrdup.
5085 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
5087 Update stored rendition of varobj value when format changes.
5088 * varobj.c (varobj_set_display_format): Recomputed
5090 (c_value_of_variable): Return print_value.
5092 2008-02-03 Doug Evans <dje@google.com>
5094 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
5095 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
5096 * valops.c (value_one): New function.
5097 * value.h (value_one): Declare.
5099 Fix argument promotion for binary arithmetic ops for C.
5100 * valarith.c (unop_result_type): New fn.
5101 (binop_result_type): New fn.
5102 (value_binop): Move result type computation to binop_result_type.
5103 (value_pos, value_neg, value_complement): Move result type
5104 computation to unop_result_type.
5107 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
5108 Return basetype, fieldno if found. All callers updated.
5109 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
5111 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
5112 * symfile.h (fill_in_vptr_fieldno): Delete.
5114 2008-02-02 Doug Evans <dje@google.com>
5116 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
5118 * typeprint.c (*): Whitespace cleanup.
5120 2008-02-02 Mark Kettenis <kettenis@gnu.org>
5121 Luis Machado <luisgpm@br.ibm.com>
5122 Thiago Jung Bauermann <bauerman@br.ibm.com>
5124 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
5125 don't fit into registerson the stack the way GCC does.
5127 2008-02-01 Joel Brobecker <brobecker@adacore.com>
5129 * symtab.c (symbol_set_names): Do not add an entry in the demangling
5130 hash table for Ada symbols. Just store the linkage name as is,
5131 and leave the demangled_name as NULL.
5133 2007-02-01 Joel Brobecker <brobecker@adacore.com>
5135 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
5136 in the global scope.
5137 (new_symbol): Likewise.
5139 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
5141 * breakpoint.c (break_command_1): Return void.
5142 (break_command_really): Return void. Rethrow
5143 exceptions instead of returning.
5144 (gdb_breakpoint): Remove the error_message parameter.
5145 Return void. Rename to set_breakpoint.
5146 * gdb.h (gdb_breakpoint): Rename and move to...
5147 * breakpoint.h (set_breakpoint): ...here.
5148 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
5149 event hooks even if exception is thrown. Adjust to
5150 gdb_breakpoint interface changes.
5153 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
5155 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
5156 float in both first and second word in the doubleword, to support
5159 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
5161 Properly rethrow exception. This fixes errors
5162 about non-existent functions for -break-insert.
5163 * breakpoint.c (break_command_really): Use throw_exception
5164 for rethrowing. If rethrowing, don't print the exception.
5166 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
5168 * NEWS: Mention Decimal Floating Point support.
5170 2008-01-31 Joel Brobecker <brobecker@adacore.com>
5172 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
5173 value type to builtin_type_void_func_ptr.
5175 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
5177 * s390-tdep.c (is_float_singleton, is_float_like,
5178 alignment_of, s390_return_value): Make checks for
5179 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
5181 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
5182 Thiago Jung Bauermann <bauerman@br.ibm.com>
5184 * infcmd.c (default_print_registers_info): Also print hex
5185 raw contents for TYPE_CODE_DECFLOAT registers.
5186 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
5187 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
5188 (rs6000_register_name): Add support for DFP pseudo-registers.
5189 (rs6000_pseudo_register_type): Likewise.
5190 rs6000_pseudo_register_reggroup_p): Likewise.
5191 (ppc_pseudo_register_read): New function.
5192 (ppc_pseudo_register_write): Likewise.
5193 (rs6000_pseudo_register_read): Likewise.
5194 (rs6000_pseudo_register_write): Likewise.
5195 (e500_pseudo_register_read): Move checks to
5196 rs6000_pseudo_register_read.
5197 (e500_pseudo_register_write): Move checks to
5198 rs6000_pseudo_register_write.
5199 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
5200 rs6000_pseudo_register_read and rs6000_pseudo_register_write
5201 in gdbarch if SPE or DFP is available. Adjust gdbarch's
5202 num_pseudo_regs to account for DFP pseudo regs.
5204 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
5206 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
5207 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
5208 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
5209 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
5210 e500_pseudo_register_read, e500_pseudo_register_write): Use
5211 IS_SPE_PSEUDOREG macro.
5212 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
5213 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
5214 Remove initialization of tdep->ppc_ev31_regnum.
5216 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
5218 * printcmd.c (print_formatted): Handle references as for unformatted
5221 2008-01-30 Joel Brobecker <brobecker@adacore.com>
5223 * eval.c (evaluate_subexp_standard): Add handling of user
5224 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
5226 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
5228 * eval.c (evaluate_subexp_standard): Support
5229 BINOP_INTDIV opcode.
5231 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
5233 * valarith.c (value_binop): Add floating-point BINOP_MIN and
5235 For BINOP_EXP, use length and signedness of left operand only for
5236 result, as for shifts.
5237 For integral operands to BINOP_EXP, use new integer_pow and
5238 uinteger_pow functions so as to get full range of results.
5239 (integer_pow): New function.
5240 (uinteger_pow): New function.
5242 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
5244 Use vector for varobj_list_children interface.
5245 * gdb/varobj.c (varobj_list_children): Return vector
5247 * gdb/varobj.h (varobj_list_children): Adjust
5249 (varobj_p): Declare. Declare vector thereof.
5250 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
5251 for varobj_list_children change.
5252 * Makefile.in (varobj_h): Update dependencies.
5254 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
5256 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
5257 TYPE_CODE_DECFLOAT arguments.
5258 (ppc64_sysv_abi_push_dummy_call) Likewise.
5259 (get_decimal_float_return_value): New function.
5260 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
5261 values by calling get_decimal_float_return_value.
5262 (ppc64_sysv_abi_return_value): Likewise.
5264 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
5266 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
5267 for preprocessor macro information. Formatting changes.
5269 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
5271 * remote.c (struct remote_state): Add cached_wait_status.
5272 (remote_exec_file): New variable.
5273 (PACKET_vAttach, PACKET_vRun): New constants.
5274 (extended_remote_restart): Do not query for status.
5275 (struct start_remote_args): New.
5276 (remote_start_remote): Take it as a second argument. Check
5277 whether the target is running. Issue an error for non-running
5278 non-extended targets. Cache the wait status. Set inferior_ptid
5280 (remote_open_1): Prompt to disconnect non-running targets. Make
5281 sure the target is marked running. Do not set inferior_ptid here.
5282 Update call to remote_start_remote. Do not call remote_check_symbols
5283 if the target is not running.
5284 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
5285 argument. Handle a non-running target.
5286 (remote_detach): Use it.
5287 (extended_remote_detach): New.
5288 (remote_disconnect): Fix typo. Use remoute_mourn_1.
5289 (extended_remote_attach_1, extended_remote_attach)
5290 (extended_async_remote_attach): New.
5291 (remote_vcont_resume): Remove unused variable.
5292 (remote_wait, remote_async_wait): Use any cached wait status.
5293 (putpkt_binary, getpkt): Clear any cached wait status.
5294 (extended_remoute_mourn_1): New.
5295 (extended_remote_mourn): Use it.
5296 (extended_async_remote_mourn, extended_remote_run): New.
5297 (extended_remote_create_inferior_1): New.
5298 (extended_remote_create_inferior): Use it.
5299 (extended_remote_async_create_inferior): Likewise.
5300 (remote_xfer_partial): Skip for non-executing targets.
5301 (init_extended_remote_ops): Set to_detach and to_attach.
5302 (init_extended_async_remote_ops): Likewise. Use
5303 extended_async_remote_mourn.
5304 (_initialize_remote): Register vAttach, vRun, and
5305 set remote exec-file.
5306 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
5308 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
5310 * Makefile.in (symfile.o): Update.
5311 * NEWS: Mention exec tracing support.
5312 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
5314 * infcmd.c (kill_if_already_running, detach_command)
5315 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
5316 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
5317 (follow_exec): Do not check may_follow_exec. Do not mourn and push
5318 targets. Apply the sysroot path to the loaded executable. Use
5319 no_shared_libraries.
5320 * linux-nat.c (linux_child_follow_fork): Print fork following
5321 messages if verbose.
5322 (kill_wait_callback): Kill again before waiting a second time.
5323 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
5324 no_shared_libraries.
5326 2008-01-29 Joel Brobecker <brobecker@adacore.com>
5328 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
5330 2008-01-29 Joel Brobecker <brobecker@adacore.com>
5332 * nto-tdep.h: Remove #include "defs.h".
5333 * nto-tdep.c: Add #include "defs.h".
5334 * Makefile.in (nto_tdep_h): Update dependencies.
5335 (nto-tdep.o): Likewise.
5337 2008-01-29 Joel Brobecker <brobecker@adacore.com>
5339 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
5341 (proceed, start_remote): Update call to wait_for_inferior.
5342 * inferior.h (wait_for_inferior): Update declaration.
5343 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
5344 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
5345 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
5346 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
5348 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
5350 * varobj (adjust_value_for_child_access): Added checking for
5351 returned value from gdb_value_ind.
5352 (c_describe_child): Likewise.
5353 (cplus_describe_child): Fixed a typo.
5355 2008-01-29 Jim Blandy <jimb@red-bean.com>
5357 * MAINTAINERS: Update my info.
5359 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
5361 Use multiple locations for hardware watchpoints.
5362 This eliminates the need to traverse value chain, doing
5363 various checks, in three different places.
5365 * breakpoint.h (struct bp_location): New fields
5366 lengths and watchpoint_type.
5367 (struct breakpoint): Remove the val_chain field.
5368 * breakpoint.c (is_hardware_watchpoint): New.
5369 (free_valchain): Remove.
5370 (update_watchpoint): New.
5371 (insert_bp_location): For hardware watchpoint, just
5373 (insert_breakpoints): Call update_watchpoint_locations
5374 on all watchpoints. If we have failed to insert
5375 any location of a hardware watchpoint, remove all inserted
5377 (remove_breakpoint): For hardware watchpoints, directly
5379 (watchpoints_triggered): Iterate over locations.
5380 (bpstat_stop_status): Use only first location of
5381 a resource watchpoint.
5382 (delete_breakpoint): Don't call free_valchain.
5383 (print_one_breakpoint): Don't print all
5384 locations for watchpoints.
5385 (breakpoint_re_set_one): Use update_watchpoint for
5388 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
5390 Don't reset watchpoint block on solib load.
5392 * breakpoint.c (insert_bp_location): For watchpoints,
5393 recompute condition.
5394 (breakpoint_re_set_one): Instead of recomputing value
5395 and condition for watchpoints, just reset value and
5396 let insert_breakpoints/insert_bp_location recompute it.
5397 Don't do anything about disabled watchpoint.
5399 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
5401 * valarith.c (value_binop): Handle unsigned integer
5404 2008-01-28 Kevin Buettner <kevinb@redhat.com>
5406 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
5407 instruction pattern that appears frequently in position
5408 independent code. Fix bug in code which looks for "fmov" and
5409 backtracks if no "fmov" is found.
5411 2008-01-28 Doug Evans <dje@google.com>
5413 * dbxread.c (read_dbx_symtab): Fix indentation.
5414 Reformat comments to 80 columns.
5415 Move local var def closer to only use.
5417 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
5419 * fork-child.c (SHELL_FILE): Remove #ifndef.
5420 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
5422 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
5424 * i386-tdep.c (i386_skip_noop): New function.
5425 (i386_analyze_prologue): Call i386_skip_noop function.
5427 2008-01-24 Michael Snyder <msnyder@specifix.com>
5429 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
5430 * win32-nat.c (win32_xfer_partial): Ditto.
5431 * target.c (default_xfer_partial): Minor whitespace adjustment.
5433 2008-01-24 Pedro Alves <pedro@codesourcery.com>
5435 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
5436 strip bit 1 even if pc doesn't point to thumb code.
5438 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
5440 * remote.c (remote_wait): Handle SIGINT between packets.
5441 (remote_async_wait): Likewise.
5443 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
5444 Chris Demetriou <cgd@google.com>
5446 * thread.c (add_thread_silent): Renamed
5448 (print_thread_events): New variable definition.
5449 (show_print_thread_events): New function.
5450 (_initialize_thread): Add "set print thread-events" and
5451 "show print thread-events" commands.
5452 (add_thread): Announce new thread.
5453 * gdbthread.h (add_thread_silent): Declare.
5454 (print_thread_events): New variable declaration.
5455 * inf-ttrace.c (inf_ttrace_wait): Don't
5456 inform about new thread, as add_thread is always
5457 called too, and will take care of that.
5458 * infrun.c (handle_inferior_event): Likewise.
5459 * procfs.c (procfs_wait): Likewise.
5460 * remote.c (remote_currthread): Likewise.
5461 * sol-thread.c (sol_thread_wait): Likewise.
5462 * win32-nat.c (get_win32_debug_event): Likewise.
5463 * linux-thread-db.c (attach_thread): Likewise.
5464 Remove the verbose parameter.
5465 (check_event): Make detach_thread be verbose
5466 only if print_thread_events is set.
5467 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
5468 about new thread. This is called only from
5469 linux-thread-db.c:attach_thread, which will take care.
5470 Remove the verbose parameter.
5471 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
5473 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
5475 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
5477 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
5479 * breakpoint.c (break_command_really): New parameter
5481 (break_command_1): Pass 0 as
5482 ignore_count to break_command_really.
5483 (gdb_breakpoint): Pass ignore_count to
5484 break_command_really.
5486 2008-01-21 Kevin Buettner <kevinb@redhat.com>
5488 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
5489 sigcontext struct via pointer.
5490 (struct sigframe comment): Update to show new field `psc'.
5492 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
5494 * infrun.c (handle_inferior_event): If
5495 we failed to remove breakpoints, error,
5496 don't try to increment PC by hand.
5498 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
5500 Add NetBSD/hppa target and host support.
5502 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
5503 (hppabsd_gregset): Move to ...
5504 (hppabsd_regset_from_core_section): Rename
5505 hppaobsd_regset_from_core_section and move to ...
5506 (hppabsd_find_global_pointer): Update comment.
5507 (hppabsd_init_abi): Make global. Do not register
5508 hppabsd_regset_from_core_section.
5509 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
5511 (_initialize_hppabsd_tdep): Move to ...
5512 * hppaobsd-tdep.c: ... here. New file.
5513 * hppnbsd-tdep.c: New file.
5514 * hppnbsd-nat.c: New file.
5515 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
5516 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5517 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
5518 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
5519 * configure.host (hppa*-*-netbsd*): New entry.
5520 * configure.tgt (hppa*-*-netbsd*): New entry.
5521 (hppa*-*-openbsd*): Update.
5522 * NEWS (New native configuration): Mention NetBSD/hppa.
5523 (New targets): Mention NetBSD/hppa.
5525 2008-01-18 Markus Deuling <deuling@de.ibm.com>
5527 * gdbarch.sh (function_list): Add new property bits_big_endian to
5529 * gdbarch.{c,h}: Regenerate.
5531 * value.c (struct value): Replace BITS_BIG_ENDIAN by
5532 gdbarch_bits_big_endian (comment).
5533 (unpack_field_as_long, modify_field): Likewise.
5534 * value.h: Likewise (comment).
5535 * valops.c (value_slice): Likewise.
5536 * valarith.c (value_subscript, value_bit_index): Likewise.
5537 * gdbtypes.h (field): Likewise (comment).
5538 * eval.c (evaluate_subexp_standard): Likewise.
5539 * dwarf2read.c (dwarf2_add_field): Likewise.
5540 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
5541 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
5543 * defs.h (BITS_BIG_ENDIAN): Remove.
5545 2008-01-18 Markus Deuling <deuling@de.ibm.com>
5547 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
5549 * m2-exp.y (yylex): Likewise.
5550 * objc-exp.y (yylex): Likewise.
5552 * defs.h (DEPRECATED_STREQN): Remove.
5554 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
5556 * MAINTAINERS: Update my email address.
5558 2008-01-17 Jim Blandy <jimb@codesourcery.com>
5560 * README: Mention gdbserver/README.
5562 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
5564 * valarith.c (value_binop): Handle BINOP_INTDIV
5565 for unsigned and signed integers.
5567 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
5569 * s390-tdep.c (s390_gdbarch_init): Set default long double
5570 type to 128-bit IEEE quad.
5572 2008-01-17 Joel Brobecker <brobecker@adacore.com>
5574 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
5576 2008-01-16 Mark Kettenis <kettenis@gnu.org>
5578 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
5580 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
5581 * value.c: All callers changed.
5583 2008-01-16 Markus Deuling <deuling@de.ibm.com>
5585 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
5586 DEPRECATED_STREQ by its expression.
5587 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
5588 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
5589 (scan_xcoff_symtab): Likewise.
5590 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
5591 * f-lang.c (find_common_for_function): Likewise.
5592 * objc-exp.y (parse_number): Likewise.
5594 * defs.h (DEPRECATED_STREQ): Remove.
5596 2008-01-16 Markus Deuling <deuling@de.ibm.com>
5598 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
5599 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
5600 get_frame_arch to get at the current_architecture. Update AM33_MODE
5602 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
5603 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
5605 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
5607 2008-01-16 Markus Deuling <deuling@de.ibm.com>
5609 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
5611 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
5613 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
5614 current_gdbarch by gdbarch. Update caller.
5616 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
5617 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
5618 the current architecture. Update calls of
5619 amd64_native_gregset_supplies_p.
5620 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
5621 (amd64bsd_store_inferior_registers): Likewise.
5623 2008-01-16 Markus Deuling <deuling@de.ibm.com>
5625 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
5626 Replace current_gdbarch by gdbarch. Update caller.
5628 2008-01-16 Markus Deuling <deuling@de.ibm.com>
5630 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
5631 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
5632 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
5633 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
5634 (stabsect_build_psymtabs): Fix indentation.
5636 2008-01-15 Michael Snyder <msnyder@specifix.com>
5638 * corelow.c (core_xfer_partial): Comment, cut/paste error.
5640 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
5642 * win32-nat.c (win32_create_inferior): Restore code calling
5643 CloseHandle on ProcessInformation structure.
5645 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
5647 * configure.ac: Check for void * as 3 argument of ptrace.
5648 * configure: regenerate.
5650 2008-01-11 Markus Deuling <deuling@de.ibm.com>
5652 * alpha-tdep.c (alpha_heuristic_proc_start)
5653 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
5654 current_gdbarch by gdbarch.
5656 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
5657 current architecture by frame_info. Update alpha_heuristic_proc_start
5660 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
5661 get_frame_arch to get at the current architecture by frame_info. Update
5662 alpha_sigtramp_register_address call.
5664 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
5665 current_gdbarch by gdbarch. Update caller.
5666 (convert_to_extended, convert_from_extended): Add endianess parameter
5667 for comparison. Update caller.
5668 (arm_extract_return_value, arm_store_return_value): Use
5669 get_regcache_arch to get at the current architecture.
5671 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
5672 current_gdbarch by gdbarch. Update caller.
5673 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
5674 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
5676 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
5677 gdbarch as parameter. Update caller.
5678 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
5679 current_gdbarch by gdbarch. Update caller.
5681 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
5682 update caller. Replace current_gdbarch by gdbarch.
5684 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
5685 the current architecture. Replace current_gdbarch by gdbarch.
5686 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
5687 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
5688 expression. Add gdbarch as parameter and replace current_gdbarch with
5690 (M6811_TDEP): Remove.
5691 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
5693 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
5694 current_gdbarch by gdbarch. Update caller.
5696 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
5698 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
5701 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
5702 caller. Relace current_gdbarch by gdbarch.
5703 (altivec_register_p, spe_register_p): Likewise.
5704 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
5706 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
5707 altivec_register_p and spe_register_p.
5709 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
5710 caller. Replace current_gdbarch by gdbarch.
5711 (score_analyze_prologue): use get_frame_arch to get at the current
5714 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
5715 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
5716 current_gdbarch by gdbarch. Update caller.
5717 (sparc_frame_cache): Use get_frame_arch to get at the current
5719 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
5720 sparc_analyze_prologue.
5722 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
5725 2008-01-11 Markus Deuling <deuling@de.ibm.com>
5727 * exec.c: #include "arch-utils.h"
5728 (print_section_info): Use gdbarch_from_bfd to get at the
5729 current architecture. Replace current_gdbarch. Fix indention. Replace
5730 deprecated_print_address_numeric by paddress.
5731 * Makefile.in (exec.o) Add dependency to arch-utils.h.
5733 * valprint.c (val_print_string): Replace
5734 deprecated_print_address_numeric.
5735 * tracepoint.c (trace_mention, scope_info): Likewise.
5736 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
5737 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
5738 (maintenance_check_symtabs): Likewise.
5739 * symfile.c (list_overlays_command): Likewise.
5740 * stack.c (frame_info, print_block_frame_labels): Likewise.
5741 * printcmd.c (print_address, print_address_demangle)
5742 (address_info): Likewise.
5743 * corefile.c (memory_error): Likewise.
5744 * infcmd.c (jump_command): Likewise.
5745 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
5746 (mention, delete_breakpoint): Likewise.
5747 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
5748 * dwarf2read.c (dump_die): Likewise.
5749 * ada-valprint.c (ada_val_print_1): Likewise.
5750 * f-valprint.c (f_val_print): Likewise.
5751 * linux-fork.c (info_forks_command): Likewise.
5752 * m32r-com.c (m32r_load_section, m32r_load)
5753 (m32r_upload_command): Likewise.
5755 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
5757 2008-01-11 Markus Deuling <deuling@de.ibm.com>
5759 * gdbarch.sh (skip_prologue): Add gdbarch
5761 * gdbarch.{c,h}: Regenerate.
5763 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
5764 * amd64-tdep.c (amd64_skip_prologue): Likewise.
5765 * avr-tdep.c (avr_skip_prologue): Likewise.
5766 * cris-tdep.c (cris_skip_prologue): Likewise.
5767 * frv-tdep.c (frv_skip_prologue): Likewise.
5768 * h8300-tdep.c (h8300_skip_prologue): Likewise.
5769 * hppa-tdep.c (hppa_skip_prologue): Likewise.
5770 * i386-tdep.c (i386_skip_prologue): Likewise.
5771 * ia64-tdep.c (ia64_skip_prologue): Likewise.
5772 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
5773 * m32r-tdep.c (m32r_skip_prologue): Likewise.
5774 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
5775 * m68k-tdep.c (m68k_skip_prologue): Likewise.
5776 * m88k-tdep.c (m88k_skip_prologue): Likewise.
5777 * mep-tdep.c (mep_skip_prologue): Likewise.
5778 * mips-tdep.c (mips_skip_prologue): Likewise.
5779 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
5780 * mt-tdep.c (mt_skip_prologue): Likewise.
5781 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
5782 * score-tdep.c (score_skip_prologue): Likewise.
5783 * sh64-tdep.c (sh64_skip_prologue): Likewise.
5784 * sh-tdep.c (sh_skip_prologue): Likewise.
5785 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
5786 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
5787 * spu-tdep.c (spu_skip_prologue): Likewise.
5788 * v850-tdep.c (v850_skip_prologue): Likewise.
5789 * vax-tdep.c (vax_skip_prologue): Likewise.
5790 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5791 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
5793 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
5794 current_gdbarch by gdbarch.
5795 * m32c-tdep.c (m32c_skip_prologue): Likewise.
5796 * s390-tdep.c (s390_skip_prologue): Likewise.
5798 2008-01-10 Doug Evans <dje@google.com>
5800 * defs.h (struct continuation_arg): Fix typo in comment.
5801 * target.c (target_translate_tls_address): Fix comment spelling error.
5803 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
5805 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
5806 (DOUBLEST_SCAN_FORMAT): Likewise.
5807 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
5808 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
5809 * c-exp.y (parse_number): Likewise.
5810 * jv-exp.y (parse_number): Likewise.
5811 * objc-exp.y (parse_number): Likewise.
5812 * p-exp.y (parse_number): Likewise.
5814 2008-01-09 Joel Brobecker <brobecker@adacore.com>
5816 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
5817 (check_typedef): Likewise.
5819 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
5821 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
5822 seen_double_big_d, treat the new H, D, and DD modifiers as length
5825 2008-01-08 Joel Brobecker <brobecker@adacore.com>
5827 * dwarf2read.c (read_enumeration_type): Add comment.
5829 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
5831 * config.in: Regenerate.
5833 2008-01-08 Joel Brobecker <brobecker@adacore.com>
5835 * ada-lang.c (ada_convert_actual): Renames convert_actual.
5837 (ada_convert_actuals): Delete.
5838 * ada-lang.h (ada_convert_actual): Add declaration.
5839 (ada_convert_actuals): Remove declaration.
5840 * infcall.c: #include "ada-lang.h".
5841 (value_arg_coerce): Add new parameter sp. Update function
5842 documetnation. Add handling of Ada function call parameters.
5843 * Makefile.in (infcall.o): Update dependencies.
5845 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
5847 * ada-lang.c (ensure_lval): Fix value lval kind.
5848 (convert_actual): Add handling for arguments passed by reference.
5850 2008-01-08 Doug Evans <dje@google.com>
5852 * dbxread.c (read_dbx_symtab): Fix indentation.
5854 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
5856 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
5857 (valarith.o): Depend on dfp.h.
5858 (valops.o): Likewise.
5859 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
5860 (set_decnumber_context): New function.
5861 (decimal_check_errors): Likewise.
5862 (decimal_from_number): Likewise.
5863 (decimal_to_number): Likewise.
5864 (decimal_from_string): Use set_decnumber_context and
5865 decimal_check_errors.
5866 (decimal_from_integral): New function.
5867 (decimal_from_floating): Likewise.
5868 (decimal_to_double): Likewise.
5869 (promote_decimal): Likewise.
5870 (decimal_binop): Likewise.
5871 (decimal_is_zero): Likewise.
5872 (decimal_compare): Likewise.
5873 (decimal_convert): Likewise.
5874 * dfp.h (decimal_from_integral): New prototype.
5875 (decimal_from_floating): Likewise.
5876 (decimal_to_double): Likewise.
5877 (decimal_binop): Likewise.
5878 (decimal_is_zero): Likewise.
5879 (decimal_compare): Likewise.
5880 (decimal_convert): Likewise.
5881 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
5882 call to value_from_decfloat.
5883 * valarith.c: Include dfp.h.
5884 (value_args_as_decimal): New function.
5885 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
5886 (value_logical_not): Likewise.
5887 (value_equal): Likewise.
5888 (value_less): Likewise.
5889 (value_pos): Likewise.
5890 (value_neg): Formatting fix.
5891 * valops.c: Include dfp.h.
5892 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
5893 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
5894 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
5895 (value_from_decfloat): Remove expect_type argument.
5896 * value.h (value_from_decfloat): Update prototype.
5898 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
5900 Ignore change in name of dynamic linker during
5901 execution on Solaris. This also unbreaks pending breakpoints.
5903 * solist.h (struct target_so_ops): New field same.
5904 * solib-svr4.c (svr4_same): New.
5905 (_initialize_svr4_solib): Register svr4_same.
5906 * solib.c (update_solib_list): Use ops->same, if available.
5908 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
5910 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
5911 when using MS-DOS paths.
5913 2008-01-05 Pedro Alves <pedro@codesourcery.com>
5915 * NEWS: Mention --pid and --core command line behaviour changes.
5917 2008-01-05 Pedro Alves <pedro@codesourcery.com>
5919 * main.c (captured_main): Remove 'count' varible and the
5920 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
5921 --pid options were issued simultaneously. If an explicit pid
5922 option was passed, don't fallback to core file. Detect extra
5923 arguments better in the presence of explicit pid or core
5926 2008-01-05 Joel Brobecker <brobecker@adacore.com>
5928 * ada-lang.c (ada_which_variant_applies): Correctly compute
5929 the value of the discriminant when the variant record is packed.
5931 2008-01-04 Joel Brobecker <brobecker@adacore.com>
5933 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
5934 that are used to differentiate homonyms.
5936 2008-01-04 Jerome Guitton <guitton@adacore.com>
5938 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
5939 when the type is an anonymous pointer type.
5940 (ada_check_typedef): Avoid a seg fault when the type is null.
5941 * ada-typeprint.c (print_array_type): Add support for pointer
5944 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
5946 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
5948 2008-01-04 Joel Brobecker <brobecker@adacore.com>
5950 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
5951 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
5953 2008-01-04 Joel Brobecker <brobecker@adacore.com>
5955 * ada-exp.y (chop_separator): New function.
5956 (write_selectors): Rewrite to re-use chop_separator.
5957 (ada_nget_field_index, get_symbol_field_type): New functions.
5958 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
5961 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5963 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
5964 of SYMBOL_VALUE when working with function symbols.
5966 2008-01-03 Joel Brobecker <brobecker@adacore.com>
5968 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
5969 expressions. These expressions do not need to be rewriten.
5971 2008-01-03 Joel Brobecker <brobecker@adacore.com>
5973 * dwarf2read.c (read_enumeration_type): Flag type as stub if
5974 the given die is a declaration.
5976 2008-01-03 Joel Brobecker <brobecker@adacore.com>
5978 * ada-lang.c (ada_array_bound_from_type): Make non-static.
5979 Handle properly the case when the index type is an enumerated type.
5980 Do not return the subtype of the bounds type, just return the
5981 bounds type directly - this is not needed and is more consistent
5982 with what we do for arrays when no XA parallel type exists.
5984 2008-01-03 Joel Brobecker <brobecker@adacore.com>
5986 * ada-lang.c (static_unwrap_type): Add forward declaration.
5987 (template_to_static_fixed_type): Fields of dynamic types sometimes
5988 also need to be unwrapped. Take this into account.
5989 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
5990 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
5991 * ada-typeprint.c (ada_print_type): Get the typename from
5992 the original type, not the base type.
5994 2008-01-03 Jerome Guitton <guitton@adacore.com>
5996 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
5997 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
5998 Update calls to ada_to_fixed_type.
5999 (ada_template_to_fixed_record_type_1): Ditto, but without looking
6001 (ada_to_fixed_type): Add check_tag parameter; do not look for
6002 tag if null. When looking for a tag, use a fixed record type.
6003 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
6004 * ada-valprint.c (printable_val_type, ada_value_print): Update
6005 calls to ada_to_fixed_type.
6007 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
6009 * doublest.c (convert_floatformat_to_doublest): Call
6010 floatformat_to_doublest instead of floatformat_to_double and use
6012 (convert_doublest_to_floatformat): Call floatformat_from_doublest
6013 instead of floatformat_from_double and use DOUBLEST variables.
6015 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
6017 * MAINTAINERS (Write After Approval): Add self.
6019 2008-01-03 Joel Brobecker <brobecker@adacore.com>
6021 * symfile.c (set_initial_language): Make non-static.
6022 * symfile.h (set_initial_language): Add declaration.
6023 * language.c: #include "symfile.h".
6024 (set_language): Call set_initial_language if the frame language
6025 could not be determined.
6027 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
6029 * eval.c (evaluate_subexp_for_address): Provide frame address to
6030 locate_var_value only if it will be needed.
6032 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6034 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
6036 2008-01-02 Joel Brobecker <brobecker@adacore.com>
6038 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
6039 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
6040 This is needed to make sure that any other treatment applied
6041 to the resulting value does not fail for spurious reason,
6042 such as trying to take the address of this value.
6044 2008-01-02 Joel Brobecker <brobecker@adacore.com>
6046 * ada-lang.c (ada_value_equal): Dereference reference types when
6049 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
6051 Updated copyright notices for most files.
6053 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
6055 * win32-nat.c (psapi_module_handle): Remove static.
6056 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
6057 return first module found if base_address is zero. Don't initialize
6058 psapi function pointers here. Convert to cygwin paths when
6060 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
6061 executable name. Use get_module_name when that fails or when
6063 (_initialize_psapi): New function. Initialize psapi stuff before it is
6064 needed or issue a warning if it is not found. Move psapi_module_handle
6067 2008-01-01 Joel Brobecker <brobecker@adacore.com>
6069 * ada-lang.c (ada_remove_trailing_digits): New function.
6070 (ada_remove_po_subprogram_suffix): New function.
6071 (ada_decode): Improve. Move the description of the algorithm
6072 directly inside the code, instead of in the function global
6075 2008-01-01 Joel Brobecker <brobecker@adacore.com>
6077 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
6078 and always print the dereferenced value.
6080 2008-01-01 Joel Brobecker <brobecker@adacore.com>
6082 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
6083 of the case where the first argument is a reference.
6084 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
6086 2008-01-01 Joel Brobecker <brobecker@adacore.com>
6088 Implement support for Ada interface types.
6090 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
6091 (ada_is_ignored_field): Ignore fields that are a dispatch table
6094 2008-01-01 Joel Brobecker <brobecker@adacore.com>
6096 * top.c (print_gdb_version): Update copyright year.
6098 2008-01-01 Joel Brobecker <brobecker@adacore.com>
6100 * ChangeLog-2007: New ChangeLog rotation.
6101 * ChangeLog: Reset for 2008.
6102 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
6105 For older changes see ChangeLog-2007.
6111 version-control: never