1 2008-10-28 Tom Tromey <tromey@redhat.com>
3 * cli/cli-script.c (do_fclose_cleanup): Remove.
4 (script_from_file): Use make_cleanup_fclose.
5 * xml-tdesc.c (do_cleanup_fclose): Remove.
6 (fetch_xml_from_file): Use make_cleanup_fclose.
7 * tracepoint.c (tracepoint_save_command): Use
8 make_cleanup_fclose. Always free pathname.
9 * source.c (print_source_lines_base): Use make_cleanup_fclose.
10 * remote.c (fclose_cleanup): Remove.
11 (remote_file_put): Use make_cleanup_fclose.
12 (remote_file_get): Likewise.
13 * linux-nat.c (linux_nat_find_memory_regions): Use
15 (linux_nat_info_proc_cmd): Likewise.
16 (linux_proc_pending_signals): Likewise.
17 * fbsd-nat.c (fbsd_find_memory_regions): Use make_cleanup_fclose.
19 * cli/cli-dump.c (do_fclose_cleanup): Remove.
20 (make_cleanup_fclose): Remove.
21 * defs.h (make_cleanup_fclose): Declare.
22 * utils.c (do_fclose_cleanup): New function.
23 (make_cleanup_fclose): Likewise.
25 2008-10-27 Pedro Alves <pedro@codesourcery.com>
27 * inflow.c (kill_command): If the target claims there is still
28 execution, don't clear the thread list.
30 2008-10-27 Pedro Alves <pedro@codesourcery.com>
32 * cp-name-parser.y: Include defs.h instead of config.h.
33 (parse_escape): Rename to ...
34 (cp_parse_escape): ... this.
36 (xfree) [TEST_CPNAMES]: New.
38 2008-10-27 Pedro Alves <pedro@codesourcery.com>
40 * CONTRIBUTE: Mention autoconf 2.59 and configure.ac instead of
41 2.13 and configure.in.
43 2008-10-27 Pedro Alves <pedro@codesourcery.com>
45 * target.h (struct target_ops) <to_supports_multi_process>: New
47 (target_supports_multi_process): New define.
48 * target.c (update_current_target): Inherit and de_fault
49 to_supports_multi_process.
50 * infcmd.c (attach_command): Allow attaching to multiple processes
51 if the target supports it.
52 (detach_command): If the target claims there is still execution,
53 don't clear the thread list.
54 * remote.c (remote_supports_multi_process): New.
55 (init_remote_ops): Register remote_supports_multi_process.
57 2008-10-27 Pedro Alves <pedro@codesourcery.com>
59 * Makefile.in (.y.c, .l.c): sed free to xfree.
61 2008-10-27 Pedro Alves <pedro@codesourcery.com>
63 * Makefile.in (INSTALLED_LIBS, CLIBS): Remove reference to
65 (CDEPS): Remove reference to $(TM_CDEPS).
67 2008-10-26 Michael Snyder <msnyder@vmware.com>
69 * infrun.c (handle_inferior_event): Handle dynamic symbol
70 resolution in reverse.
72 2008-10-25 Joel Brobecker <brobecker@adacore.com>
74 * infrun.c: Minor comment reformatting.
76 2008-10-25 Pedro Alves <pedro@codesourcery.com>
78 * ada-exp.y (write_object_renaming): Use malloc instead of
80 * p-exp.y (pop_current_type): Use free instead of xfree.
82 2008-10-24 Pedro Alves <pedro@codesourcery.com>
84 * fork-child.c (startup_inferior): Only set threads not-executing
85 after getting all the pending execs. On TARGET_WAITKIND_IGNORE,
86 keep waiting, don't resume. On all other cases but
87 TARGET_WAITKIND_SIGNALLED and TARGET_WAITKIND_EXITED, switch to
90 2008-10-24 Pedro Alves <pedro@codesourcery.com>
92 Remote non-stop mode support.
94 * remote.c (pending_stop_reply): New.
95 (struct remote_state) <non_stop_aware, support_vCont_t>: New
97 (remote_async_inferior_event_token)
98 (remote_async_get_pending_events_token): New.
99 (notice_new_inferiors): New, abstracted out from record_currthread.
100 (record_currthread): Call it.
101 (remote_threads_info): Default threads to running in non-stop
102 mode. In non-stop mode, only qfThreadInfo is supported.
103 (remote_close): Discard all pending stop_replies. Close the event
105 (set_stop_requested_callback): New.
106 (remote_start_remote): Implement non-stop mode startup. In
107 all-stop, don't clear the thread list here.
108 (remote_non_stop_feature): New.
109 (remote_protocol_features): Add a "QNonStop" feature.
110 (remote_open_1): Clear cached_wait_status and non_stop_aware.
111 Clear the thread list here.
112 (remote_detach_1): Discard pending stop replies of the process we
114 (extended_remote_attach_1): Implement non-stop mode.
115 (remote_vcont_probe): Recognize `vCont;t'.
116 (remote_vcont_resume): Implement non-stop mode.
117 (remote_resume): Don't set waiting_for_stop_reply in non-stop
119 (remote_stop_ns): New.
120 (remote_stop): Rename to ...
121 (remote_stop_as): ... this. If we have a cached wait status,
122 don't bother interrupting the remote.
123 (remote_stop): Reimplement as wrapper around remote_stop_as and
125 (interrupt_query): Don't query in async mode.
126 (struct cached_reg, cahed_reg_t): New.
127 (struct stop_reply): New.
128 (stop_reply_queue): New.
129 (stop_reply_xmalloc, stop_reply_xfree)
130 (discard_pending_stop_replies, do_stop_reply_xfree)
131 (queued_stop_reply, push_stop_reply, peek_stop_reply)
132 (remote_parse_stop_reply, remote_get_pending_stop_replies)
133 (process_stop_reply): New.
134 (remote_wait_ns): New.
135 (remote_wait_as): Use remote_parse_stop_reply. Invalidate the
136 notion of current general thread is a process exit was reported.
137 (remote_wait): Call remote_wait_ns in non-stop mode.
138 (handle_notification): New.
139 (putpkt_binary): Handle notifications. Don't care for
140 waiting_for_stop_reply in non-stop mode.
141 (getpkt_sane): Rename to ...
142 (getpkt_or_notif_sane_1): ... this. Add `expecting_notif'
143 argument. Handle it. Handle notifications.
144 (getpkt_sane): Reimplement as wrapper around getpkt_or_notif_sane_1.
145 (getpkt_or_notif_sane): New.
146 (select_new_thread_callback): Check for exited state instead of
147 comparing the ptid against minus_one_ptid.
148 (extended_remote_create_inferior_1): Query the remote about the
150 (remote_supports_non_stop): New.
151 (init_remote_ops): Register it.
152 (remote_async_inferior_event_handler): New.
153 (remote_async_get_pending_events_handler): New.
155 * infcmd.c (proceed_thread_callback): Comment.
156 (proceed_after_attach_callback, proceed_after_attach): New.
157 (attach_command_post_wait): In background attach, resume all
158 threads, but only if they are unsignalled, and not explicitly
159 stopped. In foreground attach, in non-stop mode, make sure to
160 stop all threads of the just attached to process.
161 (attach_command): In non-stop mode: If doing a background attach,
162 stop at least one thread. If a foreground attach, stop all
165 2008-10-24 Pedro Alves <pedro@codesourcery.com>
167 * event-loop.h: Mention async_event_handlers.
168 (async_event_handler): Forward declare.
169 (async_event_handler_func): New typedef.
170 (create_async_event_handler, delete_async_event_handler)
171 (mark_async_event_handler): Declare.
172 * event-loop.c (event_data): New.
173 (event_handler_func): Take an event_data instead of an integer.
174 (struct gdb_event): Replace the integer file descriptor by a
176 (async_event_handler): New.
177 (async_handler_ready): Delete.
178 (async_event_handler_list): New.
180 (create_file_event): Use it.
181 (process_event): Adjust.
182 (gdb_do_one_event): Poll from the event sources in round-robin
183 fashion across calls. Be sure to consult all sources before
185 (handle_file_event): Take an event_data instead of an integer.
187 (gdb_wait_for_event): Add `block' argument. Handle it.
188 (mark_async_signal_handler): Remove unneeded cast.
189 (invoke_async_signal_handler): Rename to ...
190 (invoke_async_signal_handlres): ... this. Return true if any was
192 (check_async_ready): Delete
193 (create_async_event_handler): New.
194 (mark_async_event_handler): New.
195 (struct async_event_handler_data): New.
196 (invoke_async_event_handler): New.
197 (check_async_event_handlers): New.
198 (delete_async_event_handler): New.
199 (handle_timer_event): Adjust.
201 2008-10-24 Doug Evans <dje@google.com>
203 * dwarf2read.c (typename_concat): Don't segv if prefix or suffix
204 is NULL. Simplify obs == NULL case.
206 2008-10-24 Hui Zhu <teawater@gmail.com>
207 Pedro Alves <pedro@codesourcery.com>
209 * infrun.c (can_use_displaced_stepping): Change type to
211 (can_use_displaced_stepping_auto): New string.
212 (can_use_displaced_stepping_on): New string.
213 (can_use_displaced_stepping_off): New string.
214 (can_use_displaced_stepping_enum): New array.
215 (show_can_use_displaced_stepping): In auto mode, also show
216 the current effect of the option.
217 (use_displaced_stepping): Return non-zero if displaced
218 stepping is auto, and can be used with GDBARCH, and in
219 non-stop mode. Return non-zero if displaced stepping is on,
220 and can be used with GDBARCH. Return zero otherwise.
221 (_initialize_infrun): Make the "set displaced-stepping"
222 command an enum command. Change its class to class_run.
223 Place it in the top level set list. Extend help to describe
226 2008-10-23 Pedro Alves <pedro@codesourcery.com>
228 * defs.h: Mention ptid_is_pid.
229 * inferior.h (ptid_is_pid): Declare.
230 * gdbthread.h (struct thread_info) <stop_requested>: New field.
231 (set_stop_requested): Declare.
232 * infcmd.c (interrupt_target_1): Call set_stop_requested.
233 * infrun.c (clear_proceed_status): Clear stop_requested.
234 (infrun_thread_stop_requested_callback,
235 infrun_thread_stop_requested): New.
236 (handle_inferior_event): If a TARGET_SIGNAL_TRAP is reported on a
237 thread that had an explicit stop request, pretend we got a
238 TARGET_SIGNAL_0. Always stop if the thread had an explicit stop
240 (print_stop_reason): In the SIGNAL_RECEIVED case, if we're not
241 outputting to MI, and we got a TARGET_SIGNAL_0, print "# Stopped",
242 instead of mentioning signal 0.
244 * thread.c (set_stop_requested): New.
246 * linux-nat.c (queued_waitpid): Rename to ...
247 (queued_waitpid_1): ... this. Add `peek' argument. Handle it.
248 (queued_waitpid): New, as wrapper to queued_waitpid_1.
249 (push_waitpid): Push the SIGTRAP to the local event queue, to the
251 (send_sigint_callback): Delete.
252 (linux_nat_stop_lwp): New.
253 (linux_nat_stop): Use it.
255 2008-10-23 Paul Pluzhnikov <ppluzhnikov@google.com>
257 * python/python-value (valpy_getitem): Fix heap corruption.
259 2008-10-23 Aleksandar Ristovski <aristovski@qnx.com>
261 * nto-procfs.c (do_attach): Form proper ptid including pid and tid.
262 (procfs_create_inferior): Fetch list of threads.
264 2008-10-23 Aleksandar Ristovski <aristovski@qnx.com>
266 * nto-procfs.c (procfs_files_info): Fix a typo.
267 (procfs_create_inferior): Make attach_flag per-inferior.
269 2008-10-23 Tom Tromey <tromey@redhat.com>
271 * python/python-value.c (value_to_value_object): Initialize
273 (valpy_new): Likewise.
275 2008-10-23 Jan Kratochvil <jan.kratochvil@redhat.com>
276 Joel Brobecker <brobecker@adacore.com>
278 * ada-tasks.c (task_states, long_task_states): Use constant N_()
279 initializer. Define the strings as const.
280 (short_task_info, info_task): Translate the strings above.
282 2008-10-22 Joel Brobecker <brobecker@adacore.com>
284 * NEWS: Add entry for new feature (Ada tasking support).
286 2008-10-22 Joel Brobecker <brobecker@adacore.com>
288 * configure.ac: On alpha-osf, error out if enable_tui is set to
289 "yes", and set enable_tui to "no" if previously set to "auto".
290 Check for waddstr only if TUI support was requested. Move the
291 part of the configure script that updates various Makefile
292 variables up, together with the check for waddstr.
293 * configure: Regenerate.
295 2008-10-22 Joel brobecker <brobecker@adacore.com>
297 * gdbtypes.c (copy_type): New function.
298 * gdbtypes.h (copy_type): Add declaration.
299 * ada-lang.c (ada_to_fixed_type_1): If there is a parallel XVZ
300 variable, then use it.
302 2008-10-22 Joel Brobecker <brobecker@adacore.com>
304 * target.h (struct target_ops): Add new field to_get_ada_task_ptid.
305 (target_get_ada_task_ptid): New macro.
306 * target.c (default_get_ada_task_ptid): New function.
307 (update_current_target): Inherit field default_get_ada_task_ptid.
308 (update_current_target): Make default_get_ada_task_ptid the default
309 value for field to_get_ada_task_ptid.
310 * ada-lang.h (struct task_control_block): Delete. Never used.
311 (struct task_ptid, task_ptid_t, struct task_entry, task_list):
313 (struct ada_task_info): New.
314 (ada_task_is_alive, ada_find_printable_frame)
315 (ada_task_list_iterator_ftype, iterate_over_live_ada_tasks): Add
317 (ada_build_task_list): Update prototype.
318 (init_task_list, ada_is_exception_breakpoint): Remove prototypes.
319 * ada-lang.c (ada_find_printable_frame): Make non-static.
320 * ada-tasks.c: New file.
321 * Makefile.in (SFILES): Add ada-tasks.c.
322 (COMMON_OBS): Add ada-tasks.o.
323 * linux-thread-db.c (thread_db_find_thread_from_tid)
324 (thread_db_get_ada_task_ptid): New functions.
325 (init_thread_db_ops): Set thread_db_ops.to_get_ada_task_ptid.
327 2008-10-22 Tom Tromey <tromey@redhat.com>
330 * c-exp.y (string_exp): New production.
333 2008-10-21 Jan Kratochvil <jan.kratochvil@redhat.com>
335 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): Update TYPE_FIELD_STATIC
338 2008-10-20 Joel Brobecker <brobecker@adacore.com>
340 * NEWS: Add entry mentioning thread-support on Tru64
342 2008-10-19 Joel Brobecker <brobecker@adacore.com>
344 * dec-thread.c: New file.
345 * config/alpha/alpha-osf3.mh (NATDEPFILES): Add dec-thread.o.
348 2008-10-19 Hui Zhu <teawater@gmail.com>
350 * infrun.c (handle_inferior_event): Set "stop_pc" when
351 TARGET_WAITKIND_NO_HISTORY.
353 2008-10-19 Pedro Alves <pedro@codesourcery.com>
355 * python/python-value.c (value_object_methods)
356 (value_object_as_number, value_object_as_mapping): Move to bottom
358 (valpy_dealloc, valpy_new, valpy_length, valpy_getitem)
359 (valpy_setitem, valpy_str, valpy_add, valpy_subtract)
360 (valpy_multiply, valpy_divide, valpy_remainder, valpy_power)
361 (valpy_negative, valpy_positive, valpy_absolute, valpy_nonzero)
362 (valpy_richcompare, valpy_dereference): Don't forward-declare.
363 (valpy_length) [HAVE_LIBPYTHON2_4]: Change return type to `int'.
365 2008-10-18 Pedro Alves <pedro@codesourcery.com>
367 * infrun.c (adjust_pc_after_break): Do nothing if executing in
370 2008-10-17 Pedro Alves <pedro@codesourcery.com>
372 * infcmd.c (GO_USAGE): Delete.
373 (go_command): Adjust.
375 2008-10-17 Michael Snyder <msnyder@vmware.com>
376 Target interface for reverse debugging.
377 * target.h (enum target_waitkind):
378 Add new wait event, TARGET_WAITKIND_NO_HISTORY.
379 (struct target_ops): New method to_can_execute_reverse.
380 (target_can_execute_reverse): New macro.
381 * target.c (update_current_target): Inherit to_can_execute_reverse.
383 Remote interface for reverse debugging.
384 * remote.c (remote_can_execute_reverse): New target method.
385 (remote_resume): Check for reverse exec direction, and send
386 appropriate command to target.
387 (remote_wait_as): Check target response for NO_HISTORY status.
388 Also check for empty reply (target doesn't understand "bs" or "bc).
389 (remote_vcont_resume): Jump out if attempting reverse execution.
391 Event handling interface for reverse debugging.
392 * infrun.c (execution_direction): New state variable.
393 (enum inferior_stop_reason): Add NO_HISTORY reason.
394 (handle_inferior_event): Handle TARGET_WAITKIND_NO_HISTORY.
395 Handle stepping over a function call in reverse.
396 Handle stepping thru a line range in reverse.
397 Handle setting a step-resume breakpoint in reverse.
398 Handle stepping into a function in reverse.
399 Handle stepping between line ranges in reverse.
400 (print_stop_reason): Print reason for NO_HISTORY.
401 (step_into_function): Rename to handle_step_into_function.
402 (handle_step_into_function_backward): New function.
403 (set_exec_direction_func, show_exec_direction_func): New funcs.
404 (proceed): No need to singlestep over a breakpoint
405 when resuming in reverse.
407 * inferior.h (enum exec_direction_kind): New enum.
408 (execution_direction): Export new execution state variable.
410 * breakpoint.c (make_breakpoint_silent): New function.
411 * breakpoint.h (make_breakpoint_silent): Export.
412 * infcmd.c (finish_command): Check for reverse exec direction.
413 (finish_backward): New function, handle finish cmd in reverse.
415 User interface for reverse execution.
416 * Makefile.in (reverse.c): New file.
417 * reverse.c: New file. User interface for reverse execution.
419 2008-10-17 Pedro Alves <pedro@codesourcery.com>
421 * remote.c (record_currthread): Add inferior before child threads.
422 (remote_threads_info): Check for exited threads. Mention
425 2008-10-16 Joel Brobecker <brobecker@adacore.com>
427 * breakpoint.h (enum bptype): New enum bp_catchpoint.
428 Delete bp_catch_fork and bp_catch_vfork.
429 (struct breakpoint_ops): Add new methods "insert", "remove"
430 and "breakpoint_hit".
431 * breakpoint.c (create_fork_vfork_event_catchpoint)
432 (create_fork_event_catchpoint, create_vfork_event_catchpoint): Remove.
433 (insert_catchpoint): Remove handling of bp_catch_fork and
434 bp_catch_vfork catchpoints, and handle them as bp_catchpoint
436 (insert_bp_location, update_breakpoints_after_exec)
437 (remove_breakpoint, bpstat_check_location, bpstat_what)
438 (allocate_bp_location): Likewise.
439 (print_it_typical, print_one_breakpoint_location, mention): Remove
440 handling of bp_catch_fork and bp_catch_vfork breakpoints.
441 (ep_is_catchpoint, user_settable_breakpoint)
442 (breakpoint_address_is_meaningful, adjust_breakpoint_address)
443 (breakpoint_re_set_one, disable_command, enable_command):
444 Remove use of bp_catch_fork and bp_catch_vfork. Add handling of
445 bp_catchpoint breakpoints.
446 (insert_catch_fork, remove_catch_fork, breakpoint_hit_catch_fork)
447 (print_it_catch_fork, print_one_catch_fork, print_mention_catch_fork):
449 (catch_fork_breakpoint_ops): New static constant.
450 (insert_catch_vfork, remove_catch_vfork, breakpoint_hit_catch_vfork)
451 (print_it_catch_vfork, print_one_catch_vfork)
452 (print_mention_catch_vfork): New functions.
453 (catch_vfork_breakpoint_ops): New static constant.
454 (create_catchpoint, create_fork_vfork_event_catchpoint): New functions.
455 (catch_fork_command_1): Use create_fork_vfork_event_catchpoint
456 to create the fork and vfork catchpoints.
457 (gnu_v3_exception_catchpoint_ops): Set new breakpoint_ops fields.
458 * ada-lang.c (catch_exception_breakpoint_ops): Set new breakpoint_ops
460 (catch_exception_unhandled_breakpoint_ops): Likewise.
461 (catch_assert_breakpoint_ops): Likewise.
463 2008-10-16 Pedro Alves <pedro@codesourcery.com>
465 * remote.c (set_general_process): New.
466 (remote_check_symbols): Use it.
468 2008-10-16 Pedro Alves <pedro@codesourcery.com>
470 * remote.c (push_remote_target): Delete.
471 * target.h (push_remote_target): Delete declaration.
473 2008-10-15 Pedro Alves <pedro@codesourcery.com>
475 * remote.c (remote_close): Unregister remote_desc from the event
476 loop. Always restore the SIGINT handler. Discard all inferiors
478 (remote_detach_1, remote_disconnect): Don't unregister the file
479 descriptor from the event loop here.
480 (interrupt_query, readchar, getpkt_sane): Pop the target instead
481 of morning the current inferior.
482 (remote_kill): Don't unregister the file descriptor from the event
484 (remote_mourn_1): Don't discard inferiors here.
486 2008-10-15 Pedro Alves <pedro@codesourcery.com>
488 * breakpoint.c (breakpoint_init_inferior): Clean up the moribund
490 (moribund_breakpoint_here_p): Record the moribund
491 location in the moribund_locations vector.
492 * breakpoint.h (moribund_breakpoint_here_p): Declare.
493 (displaced_step_fixup): Check if the breakpoint the thread was
494 trying to step over has been removed since having been placed in
495 the displaced stepping queue.
496 (adjust_pc_after_break): In non-stop mode, check for a moribund
497 breakpoint at the stop pc.
498 (handle_inferior_event): Don't retire moribund breakpoints on
499 TARGET_WAITKIND_IGNORE.
501 2008-10-15 Pedro Alves <pedro@codesourcery.com>
503 * infrun.c (displaced_step_prepare): Switch thread temporarily
505 (displaced_step_fixup): Make sure target_resume sees ptid as
506 inferior_ptid. Add debug output.
508 2008-10-14 Pedro Alves <pedro@codesourcery.com>
512 * breakpoint.c (show_breakpoint_hit_counts): Delete.
513 (print_one_breakpoint_location): Adjust.
514 (breakpoint_clear_ignore_counts): Delete.
515 * breakpoint.h (breakpoint_clear_ignore_counts): Remove
517 * target.c (generic_mourn_inferior): Don't clear ignore
518 counts (never reached).
520 2008-10-10 Doug Evans <dje@google.com>
522 * dwarf2read.c (comp_unit_head): Use unsigned int consistently
523 for dwarf section offsets and sizes.
525 (dwarf2_per_cu_data): Ditto.
526 (create_all_comp_units): Change offset to unsigned int.
527 (load_full_comp_unit,find_partial_die_in_comp_unit,find_partial_die,
528 dwarf2_find_containing_comp_unit,dwarf2_find_comp_unit): Ditto.
530 * dwarf2read.c (read_initial_length): Delete cu_header arg.
532 (read_checked_initial_length_and_offset): New function.
533 (read_offset_1): New function.
534 (read_offset): Call it.
535 (dwarf_decode_line_header): Call read_checked_initial_length_and_offset
536 instead of read_initial_length. Call read_offset_1 instead of
539 * dwarf2read.c (dwarf2_get_ref_die_offset): Remove unused arg `cu'.
542 * dwarf2read.c (dwarf_attr_name): Unconditionally support all
543 DW_AT_MIPS_* except DW_AT_MIPS_fde which collides with
544 DW_AT_HP_block_index.
546 2008-10-10 Pedro Alves <pedro@codesourcery.com>
548 * remote.c (remote_start_remote): Always tell the stub if we're in
551 2008-10-09 Pedro Alves <pedro@codesourcery.com>
553 * remote.c (remote_wait): Rename to...
554 (remote_wait_as): ... this. Don't loop here. If the remote
555 didn't stop, return TARGET_WAITKIND_IGNORE.
556 (remote_wait): New, reimplemented on top of remote_wait_as.
558 2008-10-09 Thomas Schwinge <tschwinge@gnu.org>
560 * Makefile.in (gnu-nat.o): Revert the 2008-09-10 change, as the problem
563 * reply_mig_hack.awk: Use the `BAD_TYPECHECK' macro.
565 * MAINTAINERS (Write After Approval): Add myself.
567 2008-10-09 Pedro Alves <pedro@codesourcery.com>
569 Make it compile without warnings.
571 * procfs.c (create_procinfo): Initialize `parent'.
572 (dead_procinfo): Pass a constant string as format to error.
573 (procfs_address_to_host_pointer): Add cast to gdb_type *.
574 (procfs_find_LDT_entry): Adjust format string to long int
576 (procfs_xfer_partial): Adjust prototype. Add gdb_byte* cast.
577 (procfs_xfer_memory): Adjust prototype.
578 (info_mappings_callback, info_proc_mappings): Adjust to not pass a
579 variable as printf_filtered format.
580 (procfs_make_note_section): Change type of auxv local to gdb_byte.
581 * Makefile.in: Remove special rule.
583 2008-10-09 Pedro Alves <pedro@codesourcery.com>
584 Daniel Jacobowitz <dan@codesourcery.com>
586 * remote.c (remote_open_1): Move acknowledging any pending ack,
587 querying supported features, activating noack mode, finding the
588 target description, enabling extended remote, and checking remote
589 symbols from here ...
590 (remote_start_remote): ... to here.
591 (remote_open_1): Don't pop the target if it is already gone.
592 * target.c (unpush_target): Check for the dummy target.
594 2008-10-09 Pedro Alves <pedro@codesourcery.com>
596 * ser-mingw.c: Include "command.h".
597 (pipe_windows_open): Declare locals at the beginning of the scope.
599 2008-10-08 Pedro Alves <pedro@codesourcery.com>
601 * remote.c (struct remote_state) <waiting_for_stop_reply>: New
603 (remote_open_1): Clear waiting_for_stop_reply.
604 (remote_resume): Set waiting_for_stop_reply.
605 (remote_wait): Clear or set waiting_for_stop_reply accordingly.
606 (putpkt_binary): If we're in async mode and waiting for a stop
607 reply, bail out with an error.
608 (extended_remote_mourn_1): Clear waiting_for_stop_reply.
610 2008-10-08 Pedro Alves <pedro@codesourcery.com>
612 * remote.c (remote_get_thread_info): If the remote doesn't support
615 2008-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
617 Convert static_kind into loc_kind enum.
618 * gdbtypes.h (enum field_loc_kind): New.
619 (union field_location): New field dwarf_block.
620 (struct field): Rename static_kind as loc_kind.
621 (FIELD_STATIC_KIND): Rename to ...
622 (FIELD_LOC_KIND): ... here.
623 (TYPE_FIELD_STATIC_KIND): Rename to ...
624 (TYPE_FIELD_LOC_KIND): ... here and use there now new FIELD_LOC_KIND.
625 (TYPE_FIELD_STATIC_HAS_ADDR): Remove.
626 (TYPE_FIELD_STATIC): Remove.
627 (TYPE_FIELD_BITPOS): Reformat.
628 (SET_FIELD_BITPOS): New.
629 (FIELD_PHYSADDR): Rename to ...
630 (FIELD_STATIC_PHYSADDR): ... here.
631 (TYPE_FIELD_STATIC_PHYSADDR): Follow the FIELD_PHYSADDR rename.
632 (SET_FIELD_PHYSADDR): Use new FIELD_LOC_KIND.
633 (FIELD_PHYSNAME): Rename to ...
634 (FIELD_STATIC_PHYSNAME): ... here.
635 (TYPE_FIELD_STATIC_PHYSNAME): Follow the FIELD_PHYSNAME rename.
636 (SET_FIELD_PHYSNAME): Use new FIELD_LOC_KIND.
637 (FIELD_DWARF_BLOCK, TYPE_FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK): New.
638 (field_is_static): New declaration.
639 * gdbtypes.c (field_is_static): New function.
640 (copy_type_recursive): Update throughout.
641 * amd64-tdep.c, c-typeprint.c, coffread.c, cp-valprint.c, dwarf2read.c,
642 eval.c, jv-typeprint.c, jv-valprint.c, mdebugread.c, p-typeprint.c,
643 p-valprint.c, valops.c, value.c, varobj.c: Update throughout.
645 2008-10-07 Thomas Schwinge <tschwinge@gnu.org>
646 Pedro Alves <pedro@codesourcery.com>
648 * gnu-nat.h: Rename `current_inferior' to `gnu_current_inf' to
649 avoid a name collision.
650 * gnu-nat.c: Likewise.
651 * i386gnu-nat.c: Likewise.
653 2008-10-07 Joel Brobecker <brobecker@adacore.com>
655 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Add handling
656 of arguments that are references.
658 2008-10-06 Doug Evans <dje@google.com>
660 * dwarf2read.c (dwarf2_die_debug): New static global.
661 (dump_die_shallow): Renamed from dump_die, New args f, indent.
662 Print to specified file, indented by the specified amount.
663 (dump_die_for_error): New fn. Point all existing callers of
665 (dump_die_die_1,dump_die): New fns, replaces ...
666 (dump_die_list): ... deleted.
667 (read_die_and_children_1): Old contents of read_die_and_children
669 (read_die_and_children): Rewrite.
670 (read_die_and_siblings): Call read_die_and_children_1 instead of
671 read_die_and_children.
672 (_initialize_dwarf2_read): New option "debug dwarf2-die".
673 * gdbinit.in (pdie): New macro.
675 * dwarf2read.c (offset_in_cu_p): New function.
676 (find_partial_die,follow_die_ref): Use it.
678 * symmisc.c (maintenance_info_symtabs): Watch for ^c.
679 (maintenance_info_psymtabs): Ditto.
681 2008-10-05 Michael Snyder <msnyder@vmware.com>
683 * infrun.c (handle_inferior_event): Fix typo in comment.
685 2008-10-04 Vladimir Prus <vladimir@codesourcery.com>
687 * mi/mi-interp.c (mi_on_resume): Flush raw_stdout.
689 2008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com>
692 * gdbtypes.c (get_vptr_fieldno): baseclass and basetype may have
695 2008-10-03 Joel Brobecker <brobecker@adacore.com>
697 * solib-osf.c: Include "solib.h".
699 2008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com>
701 * utils.c, defs.h (gdb_buildargv): New fn. Wrap buildargv
702 and check for out-of-memory condition.
703 * exec.c (exec_file_command): Call it.
704 * infrun.c (handle_command, xdb_handle_command): Likewise.
705 * interps.c (interpreter_exec_cmd): Likewise.
706 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
707 * procfs.c (info_proc_cmd): Likewise.
708 * remote-mips.c (common_open): Likewise.
709 * remote-sim.c (gdbsim_kill, gdbsim_create_inferior)
710 (gdbsim_open): Likewise.
711 * remote.c (extended_remote_run, remote_put_command)
712 (remote_get_command, remote_delete_command): Likewise.
713 * ser-mingw.c (pipe_windows_open): Likesise.
714 * source.c (add_path, show_substitute_path_command)
715 (unset_substitute_path_command, set_substitute_path_command):
717 * stack.c (backtrace_command): Likewise.
718 * symfile.c (symbol_file_command, generic_load)
719 (add_symbol_file_command): Likesise.
720 * symmisc.c (maintenance_print_symbols, maintenance_print_psymbols)
721 (maintenance_print_msymbols): Likewise.
723 2008-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
725 Replace TYPE_ARRAY_{UPPER,LOWER}_BOUND_TYPE by a bit if {un,}defined.
726 * c-typeprint.c (c_type_print_varspec_suffix), m2-typeprint.c
727 (m2_array), p-typeprint.c (pascal_type_print_varspec_prefix),
728 valops.c (value_cast), varobj.c (c_number_of_children): Replace
729 TYPE_ARRAY_UPPER_BOUND_TYPE compared to BOUND_CANNOT_BE_DETERMINED by
730 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
731 * parse.c (follow_types): Use TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
732 * f-valprint.c (f77_get_dynamic_upperbound): Replace with ...
733 (f77_get_upperbound): ... this function handling now only
734 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
735 (f77_get_dynamic_lowerbound): Replace with ...
736 (f77_get_lowerbound): ... this function handling now only
737 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED.
738 (f77_get_dynamic_length_of_aggregate, f77_create_arrayprint_offset_tbl):
739 Update their callers.
740 * eval.c (evaluate_subexp_standard): Update their callers.
741 * f-lang.h (f77_get_dynamic_upperbound, f77_get_upperbound)
742 (f77_get_dynamic_lowerbound, f77_get_lowerbound): Update their
744 (BOUND_FETCH_OK, BOUND_FETCH_ERROR): Remove.
745 * f-typeprint.c (f_type_print_varspec_suffix, f_type_print_base): Remove
746 the lower_bound_was_default variable. Update the
747 f77_get_dynamic_upperbound, f77_get_upperbound and
748 TYPE_ARRAY_UPPER_BOUND_TYPE calls.
749 * gdbtypes.c (print_bound_type): Remove the function.
750 (recursive_dump_type): Remove its calls printing UPPER_BOUND_TYPE and
752 * gdbtypes.h (enum array_bound_type): Remove.
753 (struct main_type): Remove the fields upper_bound_type and
754 lower_bound_type. Comment the new overload of the field artificial.
755 (TYPE_ARRAY_UPPER_BOUND_TYPE): Replace by ...
756 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): ... this macro.
757 (TYPE_ARRAY_LOWER_BOUND_TYPE): Replace by ...
758 (TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): ... this macro.
760 2008-10-02 Tom Tromey <tromey@redhat.com>
762 * Makefile.in (HFILES_NO_SRCDIR): Remove gdb-events.h, gstdint.h.
764 2008-10-02 Daniel Jacobowitz <dan@codesourcery.com>
766 * mips-linux-tdep.c (mips_linux_in_dynsym_resolve_code): Update
768 (mips_linux_skip_resolver): Also use glibc_skip_solib_resolver.
769 (mips_linux_init_abi): Do not override skip_trampoline_code.
770 * configure.tgt (mips*-*-linux*): Add glibc-tdep.o.
771 * mips-tdep.c (mips32_scan_prologue): Stop scanning at branches.
772 (mips_stub_frame_sniffer): Use the stub frame sniffer for PIC stubs.
773 (mips_skip_mips16_trampoline_code): Rename from
774 mips_skip_trampoline_code.
775 (mips_skip_pic_trampoline_code, mips_skip_trampoline_code): New.
776 * infrun.c (handle_inferior_event): Do not pass zero to
777 in_solib_dynsym_resolve_code.
779 2008-10-02 Pierre Muller <muller@ics.u-strasbg.fr>
780 Pedro Alves <pedro@codesourcery.com>
782 * win32-nat.c (do_initial_win32_stuff): Set inferior_ptid.
785 2008-10-01 Tom Tromey <tromey@redhat.com>
787 * symtab.c (search_symbols): Update.
788 * symtab.h (domain_enum_tag) <METHODS_DOMAIN>: Remove.
790 2008-10-01 Tom Tromey <tromey@redhat.com>
792 * symfile.c (syms_from_objfile): Update.
793 (reread_symbols): Update.
794 * objfiles.h (OBJF_SYMS): Remove.
795 (OBJF_REORDERED): Renumber.
796 (OBJF_SHARED): Likewise.
797 (OBJF_READNOW): Likewise.
798 (OBJF_USERLOADED): Likewise.
800 2008-10-01 Tom Tromey <tromey@redhat.com>
802 * symtab.c (find_pc_sect_psymtab): Use MSYMBOL_TYPE.
803 (find_pc_sect_symtab): Likewise.
804 * symmisc.c (dump_msymbols): Use MSYMBOL_TYPE.
805 * solib-som.c (som_solib_desire_dynamic_linker_symbols): Use
806 MSYMBOL_TYPE, not SYMBOL_TYPE.
807 * parse.c (write_exp_msymbol): Use MSYMBOL_TYPE.
808 * objc-lang.c (find_methods): Use MSYMBOL_TYPE.
809 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Use
811 * m2-exp.y (yylex): Use SYMBOL_CLASS.
813 2008-10-01 Tom Tromey <tromey@redhat.com>
815 * xcoffread.c (RECORD_MINIMAL_SYMBOL): Update.
816 (scan_xcoff_symtab): Update.
817 * mdebugread.c (record_minimal_symbol): Update.
818 (parse_partial_symbols): Update.
819 * elfread.c (record_minimal_symbol): Update.
820 * dbxread.c (record_minimal_symbol): Update.
821 * coffread.c (record_minimal_symbol): Update.
822 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Redefine.
823 (sh64_elf_make_msymbol_special): Update.
824 * mips-tdep.c (mips_elf_make_msymbol_special): Use
825 MSYMBOL_TARGET_FLAG_1.
826 (mips_elf_make_msymbol_special): Likewise.
827 (msymbol_is_special): Likewise.
828 * minsyms.c (prim_record_minimal_symbol_and_info): Update.
829 (install_minimal_symbols): Likewise.
830 (prim_record_minimal_symbol): Update.
831 (prim_record_minimal_symbol_and_info): Remove 'info' argument.
832 * m68hc11-tdep.c (MSYMBOL_SET_RTC): Redefine.
833 (MSYMBOL_SET_RTI): Redefine.
834 (MSYMBOL_IS_RTC): Redefine.
835 (MSYMBOL_IS_RTI): Redefine.
836 * arm-tdep.c (MSYMBOL_SET_SPECIAL): Redefine.
837 (MSYMBOL_IS_SPECIAL): Redefine.
838 * symtab.h (struct minimal_symbol) <info>: Remove.
839 <target_flag_1, target_flag_2>: New fields.
840 (MSYMBOL_INFO): Remove.
841 (MSYMBOL_TARGET_FLAG_1): New macro.
842 (MSYMBOL_TARGET_FLAG_2): Likewise.
843 (prim_record_minimal_symbol_and_info): Update.
845 2008-09-30 Joel Brobecker <brobecker@adacore.com>
847 * ada-lang.c (is_digits_suffix): Delete unused function.
849 2008-09-30 Paul Hilfinger <hilfinger@adacore.com>
851 * ada-lang.c (ada_modulus): Correct to avoid sign problem with
854 2008-09-30 Paul Hilfinger <hilfinger@adacore.com>
856 * ada-lang.c (ada_lookup_struct_elt_type): Handle case of a "naked"
858 (empty_record): Use INIT_CPLUS_SPECIFIC, since this field is not
859 supposed to be null. Fixes debugger segfaults.
860 (is_unchecked_variant): New function.
861 (to_fixed_variant_branch_type): Modify to leave unchecked unions
863 (ada_template_to_fixed_record_type_1): Fix comment.
865 2008-09-30 Joel Brobecker <brobecker@adacore.com>
867 * ada-lang.c (standard_exc): New static constant.
868 (ada_exception_catchpoint_cond_string): Add special handling
869 for the predefined exceptions.
871 2008-09-30 Joel Brobecker <brobecker@adacore.com>
873 * ada-lang.c (ADA_RETAIN_DOTS): Delete this dead macro. Update
874 the code accordingly.
876 2008-09-30 Joel Brobecker <brobecker@adacore.com>
878 * ada-lang.c (ada_evaluate_subexp) [UNOP_IND]: Remove strange
879 treatment of expect_type. Return the correct type when dereferencing
882 2008-09-30 Tom Tromey <tromey@redhat.com>
885 * symtab.c (struct add_macro_name_data): New struct.
886 (add_macro_name): New function.
887 (default_make_symbol_completion_list): Complete macro names.
888 * scm-lang.c (scm_language_defn): Update.
889 * p-lang.c (pascal_language_defn): Update.
890 * objc-lang.c (objc_language_defn): Update.
891 * macrotab.h (macro_callback_fn): Add user_data argument.
892 (macro_for_each): Likewise.
893 (macro_for_each_in_scope): Declare.
894 * macrotab.c: (struct macro_for_each_data): New struct.
895 (foreach_macro): Use it.
896 (macro_for_each): Likewise.
897 (foreach_macro_in_scope): New function.
898 (macro_for_each_in_scope): Likewise.
899 * macrocmd.c (print_one_macro): Add argument.
900 (macro_list_command): Pass NULL to macro_for_each.
901 * m2-lang.c (m2_language_defn): Update.
902 * language.h (struct language_defn) <la_macro_expansion>: New
904 (macro_expansion): New enum.
905 * language.c (unknown_language_defn): Update. Fix order of
907 (auto_language_defn): Likewise.
908 (local_language_defn): Update.
909 * jv-lang.c (java_language_defn): Update.
910 * f-lang.c (f_language_defn): Update.
911 * c-lang.c (c_language_defn): Update.
912 (cplus_language_defn): Likewise.
913 (asm_language_defn): Likewise.
914 (minimal_language_defn): Likewise.
915 * ada-lang.c (ada_language_defn): Update.
917 2008-09-30 Joel Brobecker <brobecker@adacore.com>
919 * dwarf2read.c (dwarf2_get_subprogram_pc_bounds): New function.
920 (get_scope_pc_bounds): Use it.
922 2008-09-27 Tom Tromey <tromey@redhat.com>
925 * macrocmd.c (extract_identifier): Add is_parameter argument.
926 (macro_define_command): Update.
927 (macro_undef_command): Likewise.
928 * macroexp.c (stringify): New function.
929 (find_parameter): Likewise.
930 (gather_arguments): Add nargs argument. Handle varargs.
931 (substitute_args): Add is_varargs and va_arg_name arguments.
932 Handle varargs, splicing, stringification. Use find_parameter.
933 (expand): Handle varargs.
935 2008-09-27 Tom Tromey <tromey@redhat.com>
937 * scm-lang.c (scm_language_defn): Update.
938 * p-typeprint.c (pascal_print_typedef): New function.
939 * p-lang.h: (pascal_print_typedef): Declare.
940 * p-lang.c (pascal_language_defn): Update.
941 * objc-lang.c (objc_language_defn): Update.
942 * m2-typeprint.c (m2_print_typedef): New function.
943 * m2-lang.h (m2_print_typedef): Declare.
944 * m2-lang.c (m2_language_defn): Update.
945 * language.h (_LANG_c, _LANG_m2, _LANG_fortran, _LANG_pascal):
947 (struct language_defn) <la_print_typedef>: New field.
948 (default_print_typedef): Declare.
949 (LA_PRINT_TYPEDEF): New define.
950 * language.c (unknown_language_defn): Update.
951 (auto_language_defn): Update.
952 (local_language_defn): Update.
953 * jv-lang.c (java_language_defn): Update.
954 * f-lang.c (f_language_defn): Update.
955 * c-typeprint.c (c_print_typedef): New function.
956 * c-lang.h (c_print_typedef): Declare.
957 * c-lang.c (c_language_defn): Update.
958 (cplus_language_defn): Update.
959 (asm_language_defn): Update.
960 (minimal_language_defn): Update.
961 * ada-lang.c (ada_language_defn): Update.
962 * typeprint.c (default_print_typedef): New function.
964 2008-09-27 Tom Tromey <tromey@redhat.com>
966 * jv-exp.y (insert_exp): Define using ISO syntax.
967 (copy_exp): Likewise.
968 (push_expression_name): Likewise.
969 (push_fieldnames): Likewise.
970 (java_type_from_name): Likewise.
973 (parse_number): Likewise.
975 2008-09-26 Joel Brobecker <brobecker@adacore.com>
977 * MAINTAINERS (GLOBAL MAINTAINERS): Add Pedro Alves.
979 2008-09-25 Stephan Springl <springl-gdb@bfw-online.de> (tiny change)
981 * stack.c (print_frame_args): Fix typos in comments.
983 2008-09-25 Sérgio Durigan Júnior <sergiodj@linux.vnet.ibm.com>
985 * linux-nat.c (get_pending_status): Fix argument to WIFSTOPPED.
987 2008-09-24 Vladimir Prus <vladimir@codesourcery.com>
989 * remote-sim.c (gdbsim_create_inferior): Fix missing parenthesis.
991 2008-09-24 Andreas Schwab <schwab@suse.de>
993 * frame.c (get_frame_register_bytes): Take pseudo registers into
994 account. Avoid excessive function calls.
996 2008-09-23 Doug Evans <dje@google.com>
998 * dcache.c (state_chars): New static global.
999 (ENTRY_INVALID,ENTRY_VALID): Renamed from ENTRY_BAD,ENTRY_OK.
1001 (dcache_info): Print cache state as mnemonically useful letters instead
1004 * dwarf2read.c (comp_unit_head): Reorganize for better packing.
1006 2008-09-22 Tom Tromey <tromey@redhat.com>
1008 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't use
1011 2008-09-22 Pedro Alves <pedro@codesourcery.com>
1013 * infrun.c (follow_exec): Don't do a generic mourn. Instead
1014 inline the required bits.
1015 * breakpoint.h (enum inf_context): Add inf_execd.
1017 2008-09-22 Pedro Alves <pedro@codesourcery.com>
1019 * infrun.c (handle_inferior_event): In the follow exec case,
1020 context-switch before doing anything else.
1022 2008-09-22 Pedro Alves <pedro@codesourcery.com>
1024 * top.c (any_thread_of, kill_or_detach): New functions.
1025 (quit_target): Iterate over all inferiors, killing or detaching
1028 2008-09-22 Pedro Alves <pedro@codesourcery.com>
1030 Remove the attach_flag global, and make it per-inferior.
1032 * inferior.h (attach_flag): Delete.
1033 (inferior_process): Declare.
1034 * solib.c (update_solib_list): Adjust.
1035 * gnu-nat.c (gnu_create_inferior, gnu_attach): Adjust.
1036 * inf-ptrace.c (inf_ptrace_detach): Adjust.
1037 (inf_ptrace_files_info): Get it from the current inferior.
1038 * inf-ttrace.c (inf_ttrace_attach): Adjust.
1039 (inf_ttrace_files_info): Get it from the current
1041 * inflow.c (terminal_inferior, terminal_ours_1, set_sigint_trap)
1042 (clear_sigint_trap): Get it from the current process.
1043 * remote.c (extended_remote_attach_1)
1044 (extended_remote_create_inferior_1): Adjust.
1045 * top.c (quit_confirm, quit_target): Get it from the current inferior.
1046 * procfs.c (do_detach): Adjust.
1047 (procfs_wait): Get it from the event inferior.
1048 (procfs_files_info): Get it from the current inferior.
1049 * nto-procfs.c (procfs_files_info): Likewise.
1050 (procfs_attach): Adjust. Set the attach_flag here.
1051 (do_attach): Don't set it here.
1052 (procfs_detach): Don't clear it.
1053 (procfs_mourn_inferior): Don't clear it.
1054 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1055 * target.c (attach_flag): Delete.
1056 (generic_mourn_inferior): Don't clear it.
1057 * win32-nat.c (get_win32_debug_event): Get it from the event
1059 (do_initial_win32_stuff): Add attaching argument. Set attach_flag
1060 in the inferior accordingly.
1061 (win32_attach): Don't set the attach_flag here. Pass 1 to
1062 do_intial_win32_stuff.
1063 (win32_files_info): Get it from the current inferior.
1064 (win32_create_inferior): Dont clear attach_flag here. Pass 0 to
1065 do_intial_win32_stuff.
1067 2008-09-22 Pedro Alves <pedro@codesourcery.com>
1069 Make the stop_soon global be per-inferior instead.
1071 * infcmd.c (attach_command_post_wait): Adjust.
1072 (attach_command): Likewise.
1074 * inferior.h (stop_soon): Delete.
1075 (struct inferior): Add stop_soon member.
1077 * infrun.c (stop_soon): Delete.
1078 (clear_proceed_status, start_remote)
1079 (fetch_inferior_event, handle_inferior_event): Adjust.
1080 (signal_stop_state): Don't check stop_soon here. Check in callers
1082 (save_inferior_status, restore_inferior_status): Adjust.
1084 * linux-nat.c (linux_nat_resume, linux_nat_wait): Always pass
1085 signals to common code if starting up the inferior.
1087 * inferior.h (struct inferior_info): Added stop_soon member.
1088 * inferior.c (add_inferior) Clear stop_soon.
1090 * mips-tdep.c (heuristic_proc_start): Adjust.
1091 * nto-procfs.c (procfs_create_inferior): Adjust.
1092 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
1093 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1094 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
1095 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
1097 * win32-nat.c (do_initial_win32_stuff): Adjust.
1099 * alpha-tdep.c (alpha_heuristic_proc_start): Adjust.
1101 2008-09-22 Pedro Alves <pedro@codesourcery.com>
1103 Implement remote multi-process extensions.
1105 * remote.c (struct remote_state): Add extended and
1106 multi_process_aware fields.
1107 (remote_multi_process_p): New.
1108 (PACKET_vKill): New.
1109 (record_currthread): Use thread_change_ptid. Notice new
1111 (set_thread, remote_thread_alive): Use write_ptid.
1112 (write_ptid, read_ptid): New.
1113 (remote_current_thread, remote_threads_extra_info): Use them.
1114 (remote_threads_info): Likewise. Detect new inferiors.
1115 (remote_start_remote): Add inferior to inferior list.
1116 (remote_multi_process_feature): New.
1117 (remote_protocol_features): Add "multiprocess" feature.
1118 (remote_query_supported): Pass "multiprocess+" as supported
1120 (remote_open_1): Clear multi_process_aware. Set extended
1122 (remote_detach_1): Detach current process. Use extended packet
1123 format for extended-remote multi-process. Detach process from the
1124 inferior list. Only mourn after printing output.
1125 (extended_remote_attach_1): Add process to the inferior list.
1126 (remote_vcont_resume): Use write_ptid to pass the thread ids.
1127 (remote_wait): Use read_ptid. Implement the extended
1128 multi-process extension format of the 'W' and 'X' reply packets.
1129 Remove exited inferiors from inferior list.
1130 (remote_xfer_memory): Set general thread.
1131 (remote_vkill): New.
1132 (extended_remote_kill): New.
1133 (remote_mourn_1): Discard all inferiors.
1134 (select_new_thread_callback): New.
1135 (extended_remote_mourn_1): If there are more processes to debug,
1136 switch to a thread in another process, and don't pop the target.
1137 (extended_remote_create_inferior_1): Add the new process to the
1139 (remote_stopped_by_watchpoint): Indenting.
1140 (remote_xfer_partial): Set the general thread.
1141 (remote_pid_to_str): If the remote is multi-process aware, print
1142 the process id as well as the thread id.
1143 (remote_get_thread_local_address): Use write_ptid.
1144 (init_extended_remote_ops): Register extended_remote_kill.
1145 (_initialize_remote): Register new packets. Change
1146 magic_null_ptid's, not_sent_ptid's and any_thread_ptid's pid
1149 * thread.c (thread_change_ptid): Also account for the inferior pid
1152 * inferior.h (discard_all_inferiors): Declare.
1153 * inferior.c (discard_all_inferiors): New.
1155 2008-09-22 Pedro Alves <pedro@codesourcery.com>
1157 * gnu-nat.c (gnu_attach): Add process to inferiors table.
1158 (gnu_detach): Remove it.
1159 * go32-nat.c (go32_create_inferior): Add process to gdb's inferior
1161 * inf-ptrace.c (inf_ptrace_follow_fork): Delete and add inferiors
1162 to inferior table accordingly.
1163 (inf_ptrace_attach): Add new process to inferior table.
1164 (inf_ptrace_detach): Remove it.
1165 * inf-ttrace.c (inf_ttrace_follow_fork): Delete and add inferiors
1166 to inferior table accordingly.
1167 (inf_ttrace_attach): Add process to inferior table.
1168 (inf_ttrace_detach): Remove it.
1169 * linux-fork.c (init_fork_list): Delete any left over inferior.
1170 (linux_fork_mourn_inferior, detach_fork_command): Also delete
1171 processes from inferior list.
1172 * monitor.c (monitor_open): Add process to inferior list.
1173 (monitor_close): Remove it.
1174 * nto-procfs.c (procfs_attach): Add process to inferior list.
1175 Find threads after pushing the target.
1176 (procfs_detach): Remove process from inferior list.
1177 (procfs_create_inferior): Add process to inferior list.
1178 * procfs.c (procfs_detach): Remove process from inferior list.
1179 (do_attach): Add process to inferior list.
1180 * remote-sim.c (sim_create_inferior): Add process to inferior list.
1181 (gdbsim_close): Remove it.
1182 * target.c (generic_mourn_inferior): If inferior_ptid is not
1183 null_ptid, remove the corresponding inferior from inferior list.
1184 * win32-nat.c (do_initial_win32_stuff): Add process to inferior list.
1185 (win32_detach): Remove it.
1186 * linux-nat.c (linux_child_follow_fork): Delete and add inferiors
1187 to inferior list accordingly.
1188 * fork-child.c (fork_inferior): Add process to inferior list.
1189 * corelow.c (CORELOW_PID): Define.
1190 (core_close): Remove core from inferior list.
1191 (core_open): Add it.
1193 2008-09-22 Pedro Alves <pedro@codesourcery.com>
1195 * inferior.h: Forward declare struct ui_out.
1196 Forward declare struct private_inferior.
1197 (struct inferior): New.
1198 (init_inferior_list, add_inferior, add_inferior_silent)
1199 (delete_inferior, delete_inferior_silent, detach_inferior)
1200 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
1201 (valid_inferior_id, find_inferior_pid): New functions.
1202 (inferior_callback_func): New typedef.
1203 (iterate_over_inferiors, print_inferior, have_inferiors)
1204 (current_inferior): New functions.
1205 * inferior.c: New file.
1207 * Makefile.in (SFILES): Add inferior.c.
1208 (COMMON_OBS): Add inferior.o.
1210 2008-09-22 Jonathan Larmour <jifl@eCosCentric.com>
1212 * arm-tdep.c (arm_skip_prologue): Call skip_prologue_using_sal
1213 instead of determining symbol and line info directly.
1214 * MAINTAINERS: Update my email address.
1216 2008-09-22 Daniel Jacobowitz <dan@codesourcery.com>
1218 * symtab.c (skip_prologue_using_sal): Treat two consecutive lines
1219 at the same address as a prologue marker. Do not skip an entire
1222 2008-09-22 Andrew Stubbs <ams@codesourcery.com>
1224 * frame.c (get_frame_register_bytes): Comment improvments.
1226 2008-09-22 Pedro Alves <pedro@codesourcery.com>
1228 * linux-nat.c (linux_nat_wait): Only use set_ignore_sigint in
1231 2008-09-19 Andrew Stubbs <ams@codesourcery.com>
1233 * MAINTAINERS: Update my email address.
1235 2008-09-19 Andrew Stubbs <ams@codesourcery.com>
1237 * frame.c (get_frame_register_bytes): Detect bad debug info.
1239 2008-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1241 Fix a crash on uninitialized ECS->EVENT_THREAD for a newly found thread.
1242 * infrun.c (wait_for_inferior): Move this ECS->EVENT_THREAD
1244 (fetch_inferior_event): ... and this ECS->EVENT_THREAD initialization
1246 (handle_inferior_event): ... here after the add_thread call together
1247 with the local adjust_pc_after_break and reinit_frame_cache calls.
1249 2008-09-16 David Daney <ddaney@avtrex.com>
1251 * breakpoint.c (bpstat_stop_status): Clear breakpoint_at for
1252 all hardware bpstats.
1254 2008-09-16 Joel Brobecker <brobecker@adacore.com>
1256 * gstdint.h: Delete.
1258 2008-09-15 Mark Kettenis <kettenis@gnu.org>
1260 * infcall.c (generic_push_dummy_code): Remove.
1261 (push_dummy_code): Unconditionally call gdbarch_push_dummy_code.
1263 2008-09-15 Doug Evans <dje@google.com>
1265 * dwarf2read.c (struct abbrev_info): Make members name, form 16 bits.
1266 (struct attribute): Ditto.
1268 2008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1270 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Record
1271 HPPA_IPSW_REGNUM and HPPA_SAR_REGNUM values.
1273 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Remove surrounding
1274 "#if 0" "#endif". Fix mapping of DWARF DBX registers to GDB registers.
1275 Correct arguments and improve comments.
1276 (hppa_linux_init_abi): Call set_gdbarch_dwarf2_reg_to_regnum. Delete
1278 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Fix check for floating
1279 point DBX register, change error to warning, and improve comments.
1281 2008-09-14 Doug Evans <dje@google.com>
1283 * dwarf2read.c (struct die_info): Make members tag, num_attrs 16 bits.
1285 2008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1287 * hppa-linux-tdep.c (hppa_linux_supply_fpregset): Correct iteration.
1289 2008-09-13 Joel Brobecker <brobecker@adacore.com>
1291 * defs.h (GCC_GENERATED_STDINT_H): Define.
1293 2008-09-13 Tom Tromey <tromey@redhat.com>
1295 * varobj.c (varobj_set_display_format): Use xfree.
1296 * tracepoint.c (stringify_collection_list): Use xfree.
1297 * remote-fileio.c (remote_fileio_reset): Use xfree.
1298 * mipsread.c (read_alphacoff_dynamic_symtab): Use xfree.
1299 * dfp.c (decimal_from_floating): Use xfree, xstrprintf. Don't use
1301 * cp-support.c (mangled_name_to_comp): Use xfree.
1303 2008-09-13 Joel Brobecker <brobecker@adacore.com>
1305 * ada-lang.c (remove_extra_symbols): Remove stub symbols if
1306 the associated complete symbol is also in the list.
1307 (ada_add_local_symbols, ada_add_non_local_symbols): New functions,
1308 extracted out from ada_lookup_symbol_list.
1309 (ada_lookup_symbol_list): Use them. Remove the search through
1310 the minimal symbols.
1312 2008-09-13 Joel Brobecker <brobecker@adacore.com>
1314 * dwarf2read.c (add_partial_subprogram): New procedure.
1315 (scan_partial_symbols): Use it.
1316 (load_partial_dies): Read in children of subprogram and lexical
1317 blocks for Ada compilation units.
1319 2008-09-13 Tom Tromey <tromey@redhat.com>
1321 * symfile.c (build_id_verify): Free 'found'.
1322 (find_separate_debug_file): Use xfree, not free.
1324 2008-09-12 Doug Evans <dje@google.com>
1326 * corefile.c (write_memory): Remove unnecessary copying.
1328 * sol-thread.c (_initialize_sol_thread): Add FIXME regarding
1329 order of _initialize_* fns.
1331 * dwarf2read.c (comp_unit_head): Rename first_die_ptr to
1332 first_die_offset. All uses updated.
1333 Delete unused members cu_head_ptr, next.
1334 Move members base_known, base_address to ...
1335 (dwarf2_cu) ... here. All uses updated.
1337 2008-09-12 Pedro Alves <pedro@codesourcery.com>
1339 * Makefile.in (generated_files): Add $(NAT_GENERATED_FILES).
1340 * config/i386/i386gnu.mh (NAT_GENERATED_FILES): New.
1342 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1344 * fork-child.c (startup_inferior): Use target_wait and target_resume
1345 directly instead of calling wait_for_inferior / resume.
1347 * infcmd.c (kill_if_already_running): Do not call no_shared_libraries
1348 or init_wait_for_inferior.
1349 (run_command_1): Call init_wait_for_inferior.
1351 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1353 * gdbtypes.h (builtin_type_void_data_ptr, builtin_type_void_func_ptr,
1354 builtin_type_CORE_ADDR, builtin_type_char, builtin_type_short,
1355 builtin_type_int, builtin_type_long, builtin_type_signed_char,
1356 builtin_type_unsigned_char, builtin_type_unsigned_short,
1357 builtin_type_unsigned_int, builtin_type_unsigned_long,
1358 builtin_type_float, builtin_type_double, builtin_type_long_double,
1359 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
1360 builtin_type_bool, builtin_type_long_long,
1361 builtin_type_unsigned_long_long): Remove macros.
1363 (builtin_type_f_character, builtin_type_f_integer,
1364 builtin_type_f_integer_s2, builtin_type_f_logical,
1365 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
1366 builtin_type_f_real, builtin_type_f_real_s8, builtin_type_f_real_s16,
1367 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
1368 builtin_type_f_complex_s32): Likewise.
1370 (builtin_type_m2_char, builtin_type_m2_int, builtin_type_m2_card,
1371 builtin_type_m2_real, builtin_type_m2_bool): Likewise.
1373 (struct builtin_f_type, builtin_f_type): Move to f-lang.h.
1374 (struct builtin_m2_type, builtin_m2_type): Move to m2-lang.h.
1376 * f-lang.h (struct builtin_f_type, builtin_f_type): Move here.
1377 * m2-lang.h (struct builtin_m2_type, builtin_m2_type): Move here.
1379 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1381 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use builtin types of
1382 target_gdbarch instead of builtin_type_void_data_ptr.
1383 (LM_DYNAMIC_FROM_LINK_MAP, LM_NEXT, LM_NAME,
1384 IGNORE_FIRST_LINK_MAP_ENTRY, scan_dyntag, elf_locate_base,
1385 solib_svr4_r_map, solib_svr4_r_brk, solib_svr4_r_ldsomap,
1386 open_symbol_file_object): Likewise.
1387 * nto-tdep.c (LM_ADDR): Likewise.
1389 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1391 * bsd-uthread.c (bsd_uthread_read_memory_address): New function.
1392 (bsd_uthread_fetch_registers, bsd_uthread_store_registers,
1393 bsd_uthread_wait, bsd_uthread_find_new_threads): Use it.
1395 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1397 * procfs.c (procfs_address_to_host_pointer): Use target_gdbarch
1398 and its associated types to perform pointer conversion.
1399 (procfs_can_use_hw_breakpoint): Likewise.
1400 (procfs_auxv_parse): Remove unused variable.
1402 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1404 * auxv.c (default_auxv_parse): Use gdbarch_ptr_bit (target_gdbarch)
1405 instead of builtin_type_void_data_ptr.
1406 * target.c (default_region_ok_for_hw_watchpoint): Likewise.
1408 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1410 * expprint.c (print_subexp_standard): Compare against builtin type
1411 associated with exp->gdbarch instead of builtin_type_char.
1413 * f-valprint.c (f_val_print): Use extract_unsigned_integer to
1414 extract values of arbitrary logical type. Handle arbitrary
1417 * printcmd.c (float_type_from_length): New function.
1418 (print_scalar_formatted, printf_command): Use it.
1420 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1422 * valops.c: Include "objfiles.h" and "symtab.h".
1423 (find_function_in_inferior): New argument OBJF_P. Use it to return
1424 objfile where function is defined. Use per-objfile arch types
1425 instead of builtin_type_ to define default return type.
1427 * linux-fork.c (checkpoint_command): Update calls. Use per-objfile
1428 architecture to define inferior call argument types.
1429 * gcore.c (derive_heap_segment): Likewise.
1430 * objc-lang.c (value_nsstring): Likewise.
1431 * scm-lang.c (scm_lookup_name): Likewise.
1432 * scm-valprint.c (scm_inferior_print): Likewise.
1433 * valops.c (value_allocate_space_in_inferior): Likewise.
1435 * eval.c (evaluate_subexp_standard): Update calls.
1436 * objc-lang.c (lookup_objc_class, print_object_command): Likewise.
1438 * linux-fork.c: Include "objfiles.h".
1439 * scm-lang.c: Include "objfiles.h".
1440 * scm-valprint.c: Include "objfiles.h".
1442 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1444 * gdbarch.sh (name_of_malloc): Remove.
1445 * gdbarch.c, gdbarch.h: Re-generate.
1446 * valops.c (value_allocate_space_in_inferior): Do not call
1447 gdbarch_name_of_malloc.
1449 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1451 * valarith.c (value_x_unop): Use builtin_type_int8 as type for
1452 UNOP_POSTINCREMENT/UNOP_POSTDECREMENT constant 0 argument.
1453 (value_bit_index): Use extract_unsigned_integer
1454 instead of unpack_long to read single byte.
1456 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1458 * infcall.c (value_arg_coerce): Add GDBARCH parameter. Use its
1459 associates types instead of builtin_type_ macros.
1460 (find_function_addr): Leave output VALUE_TYPE NULL if unknown.
1461 (call_function_by_hand): Use per-architecture "int" type as
1462 fall-back if find_function_addr returns NULL VALUE_TYPE.
1463 Update call to value_arg_coerce.
1465 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1467 * cp-abi.h (cplus_method_ptr_size): Add TO_TYPE parameter.
1468 (cplus_make_method_ptr): Add TYPE parameter.
1469 * cp-abi.c (cplus_method_ptr_size): Add TO_TYPE parameter. Pass it
1470 on to current_cp_abi.method_ptr_size callback.
1471 (cplus_make_method_ptr): Add TYPE parameter. Pass it on to
1472 current_cp_abi.make_method_ptr callback.
1474 * gdbtypes.c (lookup_methodptr_type): Pass target type
1475 argument to cplus_method_ptr_size.
1476 * valops.c (value_cast): Pass type argument to cplus_make_method_ptr.
1477 (value_struct_elt_for_reference): Likewise.
1479 * gnu-v3-abi.c (get_class_arch): New function.
1480 (vtable_address_point_offset): Add GDBARCH parameter. Use it
1481 instead of current_gdbarch. Update all callers.
1482 (gnuv3_get_vtable): Likewise.
1483 (gnuv3_get_virtual_fn): Likewise.
1484 (gnuv3_decode_method_ptr): Likewise.
1485 (gnuv3_rtti_type): Call get_class_arch to determine architecture.
1486 Use it instead of current_gdbarch.
1487 (gnuv3_virtual_fn_field): Likewise.
1488 (gnuv3_baseclass_offset): Likewise.
1489 (gnuv3_print_method_ptr): Likewise.
1490 (gnuv3_method_ptr_to_value): Likewise.
1491 (gnuv3_method_ptr_size): Add TYPE parameter. Use it to determine
1492 class architecture. Use architecture types instead of builtin types.
1493 (gnuv3_make_method_ptr): Likewise.
1495 * cp-valprint.c (cp_print_class_member): Expect pointer type
1496 instead of class type. Use its length when extracting value.
1497 * c-valprint.c (c_val_print): Update call to cp_print_class_member.
1499 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1501 * stack.c (return_command): Use frame architecture to determine
1502 default integer return type.
1504 * f-valprint.c (f77_get_dynamic_lowerbound): Use frame architecture
1505 to determine pointer types.
1506 (f77_get_dynamic_upperbound): Likewise.
1508 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Remove.
1509 (resolve_msgsend): Use architecture of current frame to determine
1510 pointer types. Inline OBJC_FETCH_POINTER_ARGUMENT.
1511 (resolve_msgsend_stret, resolve_msgsend_super,
1512 resolve_msgsend_super_stret): Likewise.
1514 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1516 * alpha-tdep.c (alpha_register_type): Use builtin_type (gdbarch)
1517 instead of builtin_type_ macros.
1518 * amd64-tdep.c (amd64_register_type): Likewise.
1519 (amd64_get_longjmp_target): Likewise.
1520 * arm-tdep.c (arm_register_type): Likewise.
1521 * avr-tdep.c (avr_register_type): Likewise.
1522 * cris-tdep.c (cris_register_type, crisv32_register_type): Likewise.
1523 * frv-tdep.c (frv_register_type): Likewise.
1524 * h8300-tdep.c (h8300_register_type): Likewise.
1525 * hppa-tdep.c (hppa32_convert_from_func_ptr_addr,
1526 hppa_skip_trampoline_code): Likewise.
1527 * i386-tdep.c (i386_register_type): Likewise.
1528 (i386_unwind_pc, i386_sse_type): Likewise.
1529 * ia64-tdep.c (ia64_register_type): Likewise.
1530 * m32r-tdep.c (m32r_register_type): Likewise.
1531 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
1532 * m88k-tdep.c (m88k_register_type): Likewise.
1533 * mep-tdep.c (mep_register_type): Likewise.
1534 * mips-tdep.c (mips_pseudo_register_type): Likewise.
1535 * mn10300-tdep.c (mn10300_register_type): Likewise.
1536 * mt-tdep.c (mt_copro_register_type): Likewise.
1537 * rs6000-tdep.c (rs6000_builtin_type_vec64): Likewise.
1538 (rs6000_convert_register_p, rs6000_register_to_value,
1539 rs6000_value_to_register): Likewise.
1540 * s390-tdep.c (s390_register_type): Likewise.
1541 * sh64-tdep.c (sh64_register_type): Likewise.
1542 (sh64_build_float_register_type, sh64_do_fp_register): Likewise.
1543 * sh-tdep.c (sh_sh2a_register_type, sh_sh3e_register_type,
1544 sh_sh4_build_float_register_type, sh_sh4_register_type,
1545 sh_default_register_type): Likewise.
1546 * sparc64-tdep.c (sparc64_register_type): Likewise.
1547 * sparc-tdep.c (sparc32_register_type): Likewise.
1548 * spu-tdep.c (spu_builtin_type_vec128, spu_register_type): Likewise.
1549 * v850-tdep.c (v850_register_type): Likewise.
1550 * vax-tdep.c (vax_register_type): Likewise.
1551 * xtensa-tdep.c (xtensa_register_type, xtensa_unwind_pc,
1552 xtensa_push_dummy_call): Likewise.
1554 * std-regs.c (value_of_builtin_frame_fp_reg,
1555 value_of_builtin_frame_pc_reg): Likewise.
1556 * target-descriptions.c (tdesc_register_type): Likewise.
1558 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1560 * ada-lang.c (ada_coerce_to_simple_array_type): Use builtin_type_int32
1561 instead of builtin_type_int as default unspecified integral type.
1562 (ada_index_type, ada_array_bound_from_type, ada_variant_discrim_type,
1563 assign_component, to_fixed_range_type): Likewise.
1564 * ada-typeprint.c (print_range, print_range_bound,
1565 print_range_type_named): Likewise.
1566 * ada-valprint.c (print_optional_low_bound, ada_val_print_1): Likewise.
1567 * eval.c (evaluate_subexp_standard): Likewise.
1568 * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
1569 * gnu-v3-abi.c (gnuv3_get_virtual_fn, gnuv3_baseclass_offset,
1570 build_gdb_vtable_type): Likewise.
1571 * jv-lang.c (java_array_type): Likewise.
1572 * m2-typeprint.c (m2_print_bounds, m2_is_long_set_of_type): Likewise.
1573 * m2-valprint.c (m2_print_long_set): Likewise.
1574 * parse.c (follow_types): Likewise.
1575 * p-typeprint.c (pascal_type_print_base): Likewise.
1576 * valops.c (value_one, value_array, value_string,
1577 value_bitstring): Likewise.
1578 * value.c (allocate_repeat_value, value_from_string): Likewise.
1579 * varobj.c (c_describe_child): Likewise.
1580 * mt-tdep.c (mt_register_type): Likewise.
1581 * sh-tdep.c (sh_sh4_build_float_register_type): Likewise.
1582 * sh64-tdep.c (sh64_build_float_register_type): Likewise.
1584 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1586 * defs.h (struct gdbarch): Add forward declaration.
1587 (set_next_address): Add GDBARCH argument.
1588 * printcmd.c (set_next_address): Use it to find pointer type.
1589 * breakpoint.c (breakpoint_1): Update call.
1590 * source.c (line_info): Likewise.
1591 * findcmd.c (find_command): Use current_gdbarch to find pointer type.
1593 * breakpoint.c (set_breakpoint_count): Use platform-neutral
1594 types for internal variable values.
1595 * infrun.c (handle_inferior_event): Likewise.
1596 * source.c (forward_search_command, reverse_search_command): Likewise.
1597 * tracepoint.c (set_tracepoint_count, set_traceframe_num,
1598 set_tracepoint_num, set_traceframe_context): Likewise.
1600 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1602 * gdbtypes.h (struct builtin_type): Remove builtin_true_char
1603 and builtin_true_unsigned_char.
1604 (builtin_type_true_char): Remove macro, add extern declaration.
1605 (builtin_type_true_unsigned_char): Add extern declaration.
1606 * gdbtypes.c (builtin_type_true_char): New global variable.
1607 (builtin_type_true_unsigned_char): Likewise.
1608 (_initialize_gdbtypes): Initialize them.
1609 (gdbtypes_post_init): Do not initialize builtin_true_char
1610 and builtin_true_unsigned_char members of struct builtin_type.
1612 * printcmd.c (print_scalar_formatted): Do not use builtin_type;
1613 use builtin_type_true_unsigned_char instead.
1615 * ada-valprint.c (ada_val_print_1): Use builtin_type_true_char
1616 instead of builtin_type_char for internal string.
1618 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1620 * gdbtypes.h (builtin_type_void): Remove macro, add declaration.
1621 (builtin_type_f_void): Remove macro.
1622 * gdbtypes.c (builtin_type_void): New global variable.
1623 (_initialize_gdbtypes): Initialize it.
1625 * gnu-v3-abi.c (build_gdb_vtable_type): Do not call
1626 lookup_pointer_type or lookup_function_type on builtin_type_void.
1627 * printcmd.c (set_next_address): Likewise.
1628 * objc-lang.c (value_nsstring): Likewise.
1629 * mt-tdep.c (mt_copro_register_type): Likewise.
1630 * xtensa-tdep.c (xtensa_register_type): Likewise.
1632 * symfile.c (syms_from_objfile): Remove special handling
1633 of builtin_type_void and builtin_type_char.
1635 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1637 * eval.c (evaluate_subexp_standard): Use exp->gdbarch types instead
1638 of builtin_type_ macros when handling OP_OBJC_ operations.
1639 * objc-lang.c (print_object_command): Likewise.
1641 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1643 * ada-valprint.c: Include "objfiles.h".
1644 (ada_val_print_1): Use the gdbarch associated with the objfile whether
1645 a System.Address type is defined to retrieve the proper pointer type
1648 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1650 * ada-lang.c (value_pos_atr): Add TYPE argument. Use it as
1651 result type instead of builtin_type_int.
1652 (value_subscript_packed): Use pos_atr instead of value_pos_atr.
1653 (ada_value_subscript): Update call to value_pos_atr.
1654 (ada_value_ptr_subscript): Likewise.
1655 (ada_evaluate_subexp): Likewise.
1657 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1659 * ada-lang.c (cast_to_fixed): Do not cast to builtin_type_double.
1660 (cast_from_fixed_to_double): Rename to ...
1661 (cast_from_fixed): ... this. Add TYPE parameter. Use it instead
1662 of builtin_type_double.
1663 (ada_value_cast): Use cast_from_fixed instead of casting result
1664 of cast_from_fixed_to_double.
1665 (ada_evaluate_subexp): Update calls to cast_from_fixed_to_double.
1667 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1669 * valops.c (value_ind): No longer allow dereferencing an
1671 * eval.c (evaluate_subexp_standard): Handle deferencing an
1673 * ada-lang.c (ada_evaluate_subexp): Likewise.
1675 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1677 * ada-valprint.c (ada_val_print_1): When implicitly dereferencing
1678 a reference type, pass the reference type directly to unpack_pointer.
1679 * c-valprint.c (c_val_print): Likewise.
1680 * f-valprint.c (f_val_print): Likewise.
1681 * m2-valprint.c (print_variable_at_address, m2_val_print): Likewise.
1682 * p-valprint.c (pascal_val_print): Likewise.
1684 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1686 * eval.c (evaluate_subexp_standard): Use builtin_type_int8
1687 to construct the EVAL_SKIP dummy return value.
1688 * ada-lang.c (ada_evaluate_subexp): Likewise.
1689 * jv-lang.c (evaluate_subexp_java): Likewise.
1690 * m2-lang.c (evaluate_subexp_modula2): Likewise.
1691 * scm-lang.c (evaluate_exp): Likewise.
1693 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1695 * value.h (coerce_enum, coerce_number): Remove prototypes.
1696 * value.c (coerce_enum, coerce_number): Remove.
1697 * valarith.c (value_x_binop): Do not call coerce_enum.
1698 (value_x_unop): Likewise.
1699 (value_logical_not): Call coerce_array instead of coerce_number.
1701 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1703 * ax-gdb.c: Include "language.h".
1704 (gen_frame_args_address): Add GDBARCH parameter; use it
1705 instead of current_gdbarch.
1706 (gen_frame_locals_address): Likewise.
1707 (gen_var_ref): Add GDBARCH parameter. Update calls to
1708 gen_frame_args_address and gen_frame_locals_address. Use
1709 pointer type from gdbarch.
1710 (gen_usual_unary): Add EXP parameter. Use integer type
1712 (gen_usual_arithmetic): Likewise.
1713 (gen_integral_promotions): Likewise.
1714 (gen_add, gen_sub): Remove.
1715 (gen_ptradd, gen_ptrsub, gen_ptrdiff): New functions.
1716 (gen_logical_not): Use passed-in boolean result type
1717 instead of builtin_type_int.
1718 (gen_complement): Do not call gen_usual_unary or
1719 gen_integral_promotions.
1720 (gen_struct_ref): Call require_rvalue instead of gen_usual_unary.
1721 (gen_repeat): Add EXP parameter. Update call to gen_expr.
1722 Use builtin_type_int32 as internal range type.
1723 (gen_sizeof): Add EXP and SIZE_TYPE parameters. Use SIZE_TYPE
1724 as result type. Update call to gen_expr.
1725 (gen_expr): Add EXP parameter. Update calls to gen_expr,
1726 gen_repeat, gen_var_ref, gen_usual_unary, gen_usual_arithmetic,
1727 and gen_integral_promotions. Call gen_ptradd, gen_ptrsub,
1728 gen_ptrdiff, or gen_binop instead of gen_add or gen_sub.
1729 Use exp->gdbarch instead of current_gdbarch.
1730 Call language_bool_type to determine result type of UNOP_LOGICAL_NOT.
1732 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1734 * eval.c (evaluate_subexp_standard): Add calls to binop_promote
1735 and unop_promote before calling value_binop et. al.
1736 * ada-lang.c (ada_evaluate_subexp): Add calls to binop_promote
1737 and unop_promote before calling value_binop et. al.
1739 * valarith.c (value_binop): Do not call binop_promote or unop_promote.
1740 (value_pos): Do not call unop_promote.
1741 (value_neg, value_complement): Likewise.
1743 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1745 * value.h (unop_promote, binop_promote): Add prototypes.
1746 * eval.c (unop_promote, binop_promote): New functions.
1747 * valarith.c (unop_result_type, binop_result_type): Remove.
1748 (value_binop): Call binop_promote or unop_promote.
1749 Inline remaining parts of binop_result_type. Remove special
1750 code to truncate integer values for unsigned operations.
1751 (value_pos): Call unop_promote. Inline remaining parts of
1753 (value_neg, value_complement): Likewise.
1755 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1757 * value.h (value_add, value_sub): Remove.
1758 (value_ptradd, value_ptrsub, value_ptrdiff): Add prototypes.
1759 * valarith.c (value_add, value_sub): Remove.
1760 (value_ptradd, value_ptrsub, value_ptrdiff): New functions.
1761 (find_size_for_pointer_math): Add assertion. Update comment.
1762 (value_binop): Update comment.
1764 * eval.c (ptrmath_type_p): New function.
1765 (evaluate_subexp_standard): Replace value_add and value_sub
1766 by value_ptradd, value_ptrsub, value_ptrdiff or value_binop.
1767 Use builtin_type_uint8 instead of builtin_type_char to hold
1768 the increment for BINOP_{PRE,POST}{IN,DE}CREMENT operations.
1769 * valarith.c (value_subscript): Replace value_add by
1770 value_ptradd. Replace value_sub by value_binop.
1771 * ada-lang.c (ada_value_ptr_subscript): Likewise.
1772 (ada_tag_name_2): Replace value_add by value_ptradd.
1773 (ada_evaluate_subexp): Replace value_add and value_sub by
1775 * m2-lang.c (evaluate_subexp_modula2): Replace value_add
1777 * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
1778 * gnu-v3-abi.c (gnuv3_method_ptr_to_value): Likewise.
1780 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1782 * eval.c (evaluate_subexp_for_sizeof): Use builtin_int type of
1783 the expression architecture instead of builtin_type_int as the
1786 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1788 * expression.h (enum exp_opcode): Document OP_COMPLEX to take
1789 a type parameter as expression element.
1790 * eval.c (evaluate_subexp_standard) [OP_COMPLEX]: Retrieve result
1791 type as expression element.
1792 * f-exp.y: Pass in type when buildin OP_COMPLEX expression.
1793 * parse.c (operator_length_standard): Update length of OP_COMPLEX.
1795 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1797 * language.h (struct language_arch_info): New members
1798 bool_type_default and bool_type_symbol.
1799 (lang_bool_type): Remove prototype.
1800 (LA_BOOL_TYPE): Remove macro.
1801 (language_bool_type): Add prototype.
1802 * language.c (lang_bool_type): Remove.
1803 (language_bool_type): New function.
1805 * value.h (value_in): Change return value to int.
1806 * value.c (value_in): Return int instead of struct value *.
1808 * eval.c (evaluate_subexp_standard): Call language_bool_type instead
1809 of using LA_BOOL_TYPE. Update call to value_in.
1810 * ada-lang.c (ada_evaluate_subexp): Call language_bool_type instead
1811 of using LA_BOOL_TYPE or builtin_type_int for boolean values.
1813 * language.c (unknown_language_arch_info): Set bool_type_default member
1814 of struct language_arch_info.
1815 * ada-lang.c (ada_language_arch_info): Set bool_type_symbol and
1816 bool_type_default members of struct language_arch_info.
1817 * c-lang.c (c_language_arch_info): Set bool_type_default member
1818 of struct language_arch_info.
1819 (cplus_language_arch_info): Set bool_type_symbol and bool_type_default
1820 members of struct language_arch_info.
1821 * f-lang.c (f_language_arch_info): Set bool_type_symbol and
1822 bool_type_default members of struct language_arch_info.
1823 * jv-lang.c (java_language_arch_info): Set bool_type_symbol and
1824 bool_type_default members of struct language_arch_info.
1825 * m2-lang.c (m2_language_arch_info): Set bool_type_symbol and
1826 bool_type_default members of struct language_arch_info.
1827 * p-lang.c (p_language_arch_info): Set bool_type_symbol and
1828 bool_type_default members of struct language_arch_info.
1830 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1832 * jv-lang.c (enum java_primitive_types): New type.
1833 (java_language_arch_info): New function.
1834 (java_language): Use it instead of c_language_arch_info.
1836 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1838 * value.h (value_bitstring_subscript): New prototype.
1839 * valarith.h (value_bitstring_subscript): New function.
1840 (value_subscript): No longer handle TYPE_CODE_BITSTRING.
1841 * eval.c (evaluate_subexp_standard): Call value_bitstring_subscript
1842 instead of value_subscript to handle TYPE_CODE_BITSTRING.
1844 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1846 * expression.h (struct expression): New member GDBARCH.
1847 * parse.c (parse_exp_in_context): Initialize it.
1848 * parser-def.h (parse_gdbarch, parse_language): New macros.
1850 * ada-exp.y (parse_type): New macro.
1851 Replace builtin_type_ macros by using parse_type.
1852 Replace current_language by parse_language.
1853 * ada-lex.l (processInt): Replace current_gdbarch by parse_gdbarch.
1854 Replace builtin_type_ macros.
1856 * c-exp.y (parse_type): New macro.
1857 Replace builtin_type_ macros by using parse_type.
1858 (parse_number): Replace current_gdbarch by parse_gdbarch.
1859 (yylex): Replace current_language by parse_language.
1861 * f-exp.y (parse_type, parse_f_type): New macros.
1862 Replace builtin_type_ macros by using parse_{f_,}type.
1863 (parse_number): Replace current_gdbarch by parse_gdbarch.
1864 (yylex): Replace current_language by parse_language.
1866 * jv-exp.y (parse_type): New macro.
1867 (parse_number): Replace builtin_type_ macros by using parse_type.
1869 * m2-exp.y (parse_type, parse_m2_type): New macros.
1870 Replace builtin_type_ macros by using parse_{m2_,}type.
1872 * objc-exp.y (parse_type): New macro.
1873 Replace builtin_type_ macros by using parse_type.
1874 (parse_number): Replace current_gdbarch by parse_gdbarch.
1875 (yylex): Replace current_language by parse_language.
1877 * p-exp.y (parse_type): New macro.
1878 Replace builtin_type_ macros by using parse_type.
1879 (parse_number): Replace current_gdbarch by parse_gdbarch.
1880 (yylex): Replace current_language by parse_language.
1882 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1884 * parser-defs.h (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE
1885 and DATA_SYMBOL_TYPE arguments.
1886 * parse.c (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE and
1887 DATA_SYMBOL_TYPE arguments. Replace use of builtin_type_CORE_ADDR.
1888 (write_dollar_variable): Update call.
1890 * ada-exp.y (write_var_or_type): Update call.
1891 * c-exp.y: Likewise.
1892 * f-exp.y: Likewise.
1893 * jv-exp.y: Likewise.
1894 * m2-exp.y: Likewise.
1895 * objc-exp.y: Likewise.
1896 * p-exp.y: Likewise.
1898 2008-09-10 Joel Brobecker <brobecker@adacore.com>
1900 * ada-lang.c (ada_parent_type): Add handling of the case where
1901 the _parent field is a pointer and/or has a parallel XVS type.
1902 (ada_evaluate_subexp) [OP_VAR_VALUE]: When doing an
1903 EVAL_AVOID_SIDE_EFFECTS evaluation of a tagged type, return
1904 the type of the tag instead of doing forcing an EVAL_NORMAL
1905 expression evaluation.
1907 2008-09-10 Paul N. Hilfinger <hilfinger@adacore.com>
1908 Joel Brobecker <brobecker@adacore.com>
1910 * ada-lang.c (is_digits_suffix): New function.
1911 (is_dot_digits_suffix): Remove.
1912 (ada_lookup_symbol_list): Remove digits suffix from minimal symbols
1913 before looking up in symbol table, and do not use wild matches on them.
1914 (wild_match): Reimplement for speed and to allow matching of operator
1916 (is_valid_name_for_wild_match): Return zero for names that do not
1917 follow the GNAT encoding.
1919 (is_name_suffix): Fix typo in comment.
1920 (to_record_with_fixed_variant_part): Ditto.
1922 2008-09-10 Pedro Alves <pedro@codesourcery.com>
1924 * Makefile.in (gnu-nat.o): New rule.
1926 2008-09-10 Joel Brobecker <brobecker@adacore.com>
1928 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Use
1929 archecture-neutral builtin_type_int32 instead of builtin_type_int.
1931 2008-09-10 Joel Brobecker <brobecker@adacore.com>
1933 * ada-lang.c (ada_evaluate_subexp) [BINOP_ADD, BINOP_SUB]:
1934 Add special handling for pointer types.
1936 2008-09-10 Pedro Alves <pedro@codesourcery.com>
1938 * inf-ttrace.c (inf_ttrace_follow_fork): Declare locals at the
1940 (inf_ttrace_resume, inf_ttrace_wait): Typos.
1942 2008-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1944 * ada-lang.c (ada_array_length): Use builtin_type_int32 instead
1945 of builtin_type_int.
1946 (ada_evaluate_subexp) [UNOP_IN_RANGE]: Use operand range type
1947 instead of builtin_type_int.
1949 2008-09-09 Pedro Alves <pedro@codesourcery.com>
1951 * infrun.c (normal_stop): Run hook-stop last.
1953 2008-09-09 Pedro Alves <pedro@codesourcery.com>
1955 * gnu-nat.c (gnu_pid_to_exec_file): Delete.
1956 (init_gnu_ops): Don't register it.
1958 2008-09-09 Pedro Alves <pedro@codesourcery.com>
1960 * gnu-nat.c (gnu_attach): Push target before fetching the list of
1963 2008-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1965 * valops.c (value_cast_structs): Return NULL for failure.
1966 (value_cast): Handle NULL from value_cast_structs.
1967 (value_fetch_lazy): Call check_typedef. Remove unused variable.
1969 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1971 * inferior.h (context_switch_to): Delete.
1972 * infrun.c (context_switch): Don't save and load infrun state.
1973 (context_switch_to): Delete.
1975 * infcmd.c (proceed_thread_callback): Replace context_switch_to
1976 calls by switch_to_thread calls.
1978 * gdbthread.h (save_infrun_state, load_infrun_state): Delete.
1979 * thread.c (main_thread_state, main_thread_executing): Delete.
1980 (inferior_thread): Delete references to them.
1981 (add_thread_silent): Fix case where we're adding a thread with the
1982 same ptid as an exited thread. Remove references to
1984 (load_infrun_state, save_infrun_state): Delete.
1985 (thread_alive, is_thread_state, any_running, is_executing)
1986 (set_executing): Remove the special handling for targets that
1987 don't register any thread.
1988 (restore_current_thread, thread_apply_all_command)
1989 (do_captured_thread_select): Unconditionally call
1992 * mi/mi-main.c (mi_cmd_execute): Check for exited threads.
1993 Call switch_to_thread instead of context_switch_to.
1995 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1997 Remove global continuations in favour of a per-thread
2000 * gdbthread.h (struct thread_info): Add comments around
2001 continuations and intermediate_continuations.
2002 (save_infrun_state, load_infrun_state): Delete continuations and
2003 intermediate_continuations arguments.
2004 * infrun.c (context_switch): Don't context-switch the continuations.
2005 * thread.c (clear_thread_inferior_resources): Discard all
2006 continuations of the thread we're clearing.
2007 (save_infrun_state, load_infrun_state): Delete continuations and
2008 intermediate_continuations arguments, and the code referencing
2010 * utils.c: Include "gdbthread.h".
2011 (cmd_continuation, intermediate_continuation): Delete.
2012 (add_continuation): Add thread_info* argument. Install the
2014 (restore_thread_cleanup): New.
2015 (do_all_continuations_ptid, do_all_continuations_thread_callback):
2017 (do_all_continuations): Reimplement.
2018 (discard_all_continuations_thread_callback,
2019 discard_all_continuations_thread): New.
2020 (discard_all_continuations): Reimplement.
2021 (add_intermediate_continuation): Add thread_info* argument.
2022 Install the continuation on it.
2023 (do_all_intermediate_continuations_thread_callback)
2024 (do_all_intermediate_continuations_thread): New.
2025 (do_all_intermediate_continuations): Reimplement.
2026 (discard_all_intermediate_continuations_thread_callback): New.
2027 (discard_all_intermediate_continuations_thread): New.
2028 (discard_all_intermediate_continuations): Reimplement.
2030 * breakpoint.c (until_break_command): Install the continuation on
2033 * defs.h (cmd_continuation, intermediate_continuation): Delete.
2034 (struct thread_info): Forward declare.
2035 (add_continuation, add_intermediate_continuation): Add
2036 thread_info* argument.
2037 (do_all_continuations_thread, discard_all_continuations_thread)
2038 (do_all_intermediate_continuations_thread)
2039 (discard_all_intermediate_continuations_thread): Declare.
2040 * inf-loop.c (inferior_event_handler): In non-stop only run
2041 continuations on the thread that stopped. In all-stop, run
2042 continuations on all threads.
2043 * infcmd.c (step_once, finish_command): Adjust.
2045 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2047 Remove the global stop_step in favour of a per-thread
2050 * inferior.h (stop_step): Delete.
2052 * gdbthread.h (struct thread_info): Add comments to stop_step.
2053 (save_infrun_state, load_infrun_state): Remove stop_step argument.
2054 * thread.c (load_infrun_state, save_infrun_state): Remove
2055 stop_step argument, and references to it.
2057 * infrun.c (clear_proceed_status): Clear stop_step.
2058 (fetch_inferior_event): Adjust.
2059 (context_switch): Don't context-switch stop_step.
2060 (handle_inferior_event): Adjust.
2061 (normal_stop): Adjust.
2062 (save_inferior_status, restore_inferior_status): Adjust.
2064 * infcmd.c (stop_step): Delete.
2065 (step_1, step_1_continuation, step_once, until_next_command):
2068 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2070 Remove the global step_multi in favour of a per-thread
2073 * inferior.h (step_multi): Delete.
2074 * gdbthread.h (struct thread_info): Add comments around
2076 (save_infrun_state, load_infrun_state): Remove step_multi
2078 * thread.c (load_infrun_state, save_infrun_state): Remove
2079 step_multi argument, and references to it.
2080 * infcmd.c (step_multi): Delete.
2082 (step_1_continuation, until_next_command): Adjust.
2083 * infrun.c (fetch_inferior_event): Adjust.
2084 (context_switch): Don't context-switch step_multi.
2085 (print_stop_reason, normal_stop): Adjust.
2087 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2089 Remove the global stop_signal in favour of a per-thread
2092 * inferior.h (stop_signal): Delete.
2093 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
2094 stop_signal argument.
2095 * thread.c (load_infrun_state, save_infrun_state): Remove
2096 stop_signal argument. Don't reference it.
2098 * infcmd.c (stop_signal): Delete.
2099 (program_info): Adjust.
2100 * infrun.c (resume): Clear stop_signal.
2101 (proceed): Adjust. Pass the last stop_signal to the thread we're
2103 (context_switch): Don't context-switch stop_signal.
2104 (handle_inferior_event, keep_going): Adjust.
2105 (save_inferior_status, restore_inferior_status): Adjust.
2107 * fbsd-nat.c: Include "gdbthread.h".
2108 (find_signalled_thread, find_stop_signal): New.
2109 (fbsd_make_corefile_notes): Use it.
2110 * fork-child.c (startup_inferior): Adjust.
2112 * linux-nat.c (get_pending_status): Adjust.
2113 (linux_nat_do_thread_registers): Adjust.
2114 (find_signalled_thread, find_stop_signal): New.
2115 (linux_nat_do_thread_registers): Add stop_signal parameter.
2116 (struct linux_nat_corefile_thread_data): Add stop_signal member.
2117 (linux_nat_corefile_thread_callback): Pass stop_signal.
2118 (linux_nat_do_registers): Delete.
2119 (linux_nat_make_corefile_notes): Use find_stop_signal. Assume
2120 there's always a thread.
2122 * procfs.c (find_signalled_thread, find_stop_signal): New.
2123 (find_stop_signal): New.
2124 (procfs_do_thread_registers): Add stop_signal parameter.
2125 (struct procfs_corefile_thread_data): Add stop_signal member.
2126 (procfs_corefile_thread_callback): Pass args->stop_signal.
2127 (procfs_make_note_section): Find the last stop_signal.
2129 * solib-irix.c: Include gdbthread.h.
2130 (irix_solib_create_inferior_hook): Adjust.
2131 * solib-osf.c: Include gdbthread.h.
2132 (osf_solib_create_inferior_hook): Adjust.
2133 * solib-sunos.c: Include gdbthread.h.
2134 (sunos_solib_create_inferior_hook): Adjust.
2135 * solib-svr4.c: Include gdbthread.h.
2136 (svr4_solib_create_inferior_hook): Adjust.
2138 * win32-nat.c (do_initial_win32_stuff): Adjust.
2140 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2142 * gdbthread.h (struct thread_info): Add comments around
2144 (save_infrun_state, load_infrun_state): Remove proceed_to_finish
2146 * thread.c (load_infrun_state, save_infrun_state): Delete
2147 proceed_to_finish argument and references to it.
2149 * infcall.c (call_function_by_hand): Adjust.
2150 * infcmd.c (finish_command): Adjust.
2151 * infrun.c (proceed_to_finish): Delete.
2152 (clear_proceed_status): Adjust.
2153 (context_switch): Don't context-switch proceed_to_finish.
2154 (normal_stop, save_inferior_status, restore_inferior_status):
2157 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2159 * inferior.h (stop_bpstat): Delete.
2161 * breakpoint.h (bpstat_do_actions): Remove bpstat* argument.
2163 * breakpoint.c (bpstat_do_actions): Rename to ...
2164 (bpstat_do_actions_1): ... this. Make static. Change return type
2165 to int. Return true if a breakpoint proceeded.
2166 (bpstat_do_actions): New, as wrapper around bpstat_do_actions_1.
2167 (delete_breakpoint): Don't reference the global stop_bpstat; it's
2170 * gdbthread.h (struct thread_info): Add stop_bpstat.
2171 (save_infrun_state, load_infrun_state): Remove stop_bpstat
2173 * thread.c (load_infrun_state, save_infrun_state): Remove
2174 stop_bpstat argument, and the code referencing it.
2176 * infcall.c: Include "gdbthread.h".
2177 (call_function_by_hand): Adjust.
2178 * exceptions.c: Include "gdbthread.h".
2179 (throw_exception): Adjust.
2180 * infcmd.c (stop_bpstat): Delete.
2181 (continue_command): In all-stop, set the ignore count on the
2182 thread that reported the stop. In non-stop, set it on the current
2184 (finish_command_continuation): Adjust.
2185 (program_info): Adjust.
2186 * infrun.c (clear_proceed_status): Adjust.
2187 (context_switch): Don't context-switch stop_bpstat.
2188 (handle_inferior_event): Adjust.
2189 (normal_stop): Adjust.
2190 (save_inferior_status, restore_inferior_status): Adjust.
2192 * inf-loop.c (inferior_event_handler): Remove parameter to
2193 bpstat_do_actions call.
2194 * top.c (command_loop): Remove parameter to bpstat_do_actions
2195 call. Call it unconditionally.
2196 * event-top.c (command_handler): Ditto.
2197 * python/python.c (execute_gdb_command): Ditto.
2199 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2201 * inferior.h (step_over_calls): Delete.
2203 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
2204 step_over_calls argument.
2205 * thread.c (save_infrun_state, load_infrun_state): Remove
2206 step_over_calls argument. Adjust.
2208 * infcmd.c (step_over_calls): Delete.
2210 * infrun.c (clear_proceed_status): Adjust.
2211 (context_switch): Don't context-switch step_over_calls.
2212 (handle_inferior_event, save_inferior_status)
2213 (restore_inferior_status): Adjust.
2215 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2217 Remove context switching in favour of accessing thread_info fields
2220 * infrun.c (stepping_over_breakpoint, step_resume_breakpoint):
2222 (struct thread_stepping_state): Delete.
2223 (gtss, tss): Delete.
2224 (follow_inferior_reset_breakpoints, follow_exec)
2225 (resume, clear_proceed_status): Adjust.
2227 (proceed, start_remote, init_wait_for_inferior): Adjust.
2228 (struct execution_control_state): Add event_thread member.
2229 (delete_step_resume_breakpoint_callback)
2230 (delete_step_thread_step_resume_breakpoint)
2231 (delete_step_thread_step_resume_breakpoint_cleanup)
2232 (delete_step_thread_step_resume_breakpoint): New.
2233 (wait_for_inferior, init_execution_control_state): Use
2234 delete_step_thread_step_resume_breakpoint_cleanup.
2235 (wait_for_inferior): Set the event_thread.
2236 (fetch_inferior_event): Ditto. Delete the step-resume breakpoint
2237 with delete_step_thread_step_resume_breakpoint.
2238 (init_thread_stepping_state): Change parameter type to
2239 thread_info. Adjust.
2240 (context_switch): Don't context switch prev_pc,
2241 stepping_over_breakpoint, step_resume_breakpoint,
2242 step_range_start, step_range_end, step_frame_id,
2243 tss->stepping_over_breakpoint,
2244 tss->stepping_through_solib_after_catch,
2245 tss->stepping_through_solib_catchpoints, tss->current_line, or
2246 tss->current_symtab.
2247 (adjust_pc_after_break, handle_inferior_event)
2248 (currently_stepping, step_into_function)
2249 (insert_step_resume_breakpoint_at_sal)
2250 (insert_longjmp_resume_breakpoint, keep_going): Adjust.
2251 (clear_stepping_state): New.
2252 (normal_stop): Adjust.
2253 (save_inferior_status, restore_inferior_status): Adjust.
2255 * gdbthread.h (struct thread_info): Comments describing the
2256 members moved here. Add step_after_step_resume_breakpoint.
2257 (delete_step_resume_breakpoint): Add thread_info argument.
2258 (save_infrun_state, load_infrun_state): Remove prev_pc,
2259 trap_expected, step_resume_breakpoint, step_range_start,
2260 step_range_end, step_frame_id, another_trap,
2261 stepping_through_solib_after_catch,
2262 stepping_through_solib_catchpoints, current_line and
2263 current_symtab function arguments.
2264 (inferior_thread): Declare.
2266 * thread.c (inferior_thread): New.
2267 (delete_step_resume_breakpoint): Add a thread_info parameter and
2269 (load_infrun_state, save_infrun_state): Remove prev_pc,
2270 trap_expected, step_resume_breakpoint, step_range_start,
2271 step_range_end, step_frame_id, stepping_over_breakpoint,
2272 stepping_through_solib_after_catch,
2273 stepping_through_solib_catchpoints, current_line and
2274 current_symtab args. Remove code referencing them.
2276 * infcmd.c (step_range_start, step_range_end, step_frame_id):
2278 (step_1, step_once, until_next_command): Adjust.
2280 * inferior.h (step_range_start, step_range_end, step_frame_id):
2283 * linux-nat.c (linux_child_follow_fork): If following the child,
2284 move the step state to it. Adjust.
2285 * inf-ptrace.c (inf_ptrace_follow_fork): Ditto.
2286 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2288 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2290 * bsd-uthread.c (bsd_uthread_find_new_threads): Claim the main
2293 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2295 * corelow.c (add_to_thread_list): If this is the first time we
2296 hear about thread info, update inferior_ptid.
2297 (core_open): Clear the thread list and set inferior_ptid before
2298 acknowledging a new inferior. Find threads before fetching
2299 register info. Give an upper target layer a chance to find and
2300 claim new threads. Print core generation and stop signal info
2301 after finding new threads.
2302 (get_core_register_section): Look at the lwp member of
2303 inferior_ptid for detecting if we have threads info, instead of
2305 (core_pid_to_str): New.
2306 (init_core_ops): Register core_pid_to_str.
2308 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2310 * spu-linux-nat.c (spu_child_post_startup_inferior)
2311 (spu_child_post_attach): Don't add the main thread here.
2313 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2315 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
2317 * gnu-nat.c (inf_validate_procs): If this is the first time we're
2318 seeing a thread id, extend the main thread's ptid. If we still
2319 have pending execs, don't be verbose about new threads.
2320 (gnu_wait, gnu_resume, gnu_attach, gnu_thread_alive)
2321 (gnu_pid_to_str, cur_thread, sig_thread_cmd): Adjust.
2322 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers):
2325 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2327 * procfs.c (to_attach): Create a procinfo for the current lwp.
2328 Add it to gdb's thread list.
2329 (procfs_fetch_registers, procfs_store_registers): Assume there's
2331 (procfs_wait): Don't add the main thread here.
2332 (procfs_init_inferior): Create a procinfo for the main lwp here.
2333 Change main thread's ptid with thread_change_ptid.
2334 (procfs_notice_thread): Check for exited threads.
2335 (procfs_corefile_thread_callback): Remove check for the main
2337 (procfs_make_note_section): Assume there is always a thread.
2339 * sol-thread.c (sol_thread_attach): Clear sol_thread_active before
2340 attaching. Change the main thread ptid with thread_change_ptid.
2341 (sol_thread_detach): Clear sol_thread_active.
2342 (sol_thread_wait): Check for exited threads.
2343 (sol_thread_create_inferior): Clear sol_thread_active before
2344 creating a new inferior. Change the main thread ptid with
2346 (sol_thread_mourn_inferior): Clear sol_thread_active.
2347 (sol_find_new_threads_callback): Check for exited threads.
2349 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2351 * inf-ttrace.c (inf_ttrace_wait): On TTEVT_LWP_CREATE and
2352 LWP_TERMINATE, resume the caller thread. On TTEVT_LWP_CREATE,
2353 TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE, don't stop the whole
2354 process, and return TARGET_WAITKIND_IGNORE.
2356 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2358 * inf-ttrace.c: Include <signal.h>
2359 (inf_ttrace_delete_dead_threads_callback): New.
2360 (inf_ttrace_resume_lwp): New.
2361 (inf_ttrace_resume_callback, inf_ttrace_resume): Rewrite. Don't
2362 delete dying threads until they are really dead.
2363 (inf_ttrace_wait): After stopping the whole process, delete any
2364 dying thread that is really dead by now.
2365 (inf_ttrace_thread_alive): Return 1.
2366 (inf_ttrace_extra_thread_info): New.
2367 (inf_ttrace_target): Register inf_ttrace_extra_thread_info.
2369 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2371 * inf-ttrace.c (inf_ttrace_follow_fork): Register the main thread
2373 (inf_ttrace_attach): Add the main thread.
2374 (inf_ttrace_resume_callback): Check for exited threads. Adjust
2375 for always a thread.
2376 (inf_ttrace_wait): Decorate the main thread's ptid with lwp info
2377 using thread_change_ptid, and set its private data. Don't add the
2379 (inf_ttrace_pid_to_str): Adjust.
2381 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2383 * bsd-uthread.c (bsd_uthread_wait): Decorate the main thread with
2384 thread_change_ptid. Check for exited threads.
2385 (bsd_uthread_find_new_threads): Check for exited threads.
2387 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2389 * inf-ptrace.c: Include "gdbthread.h".
2390 (inf_ptrace_attach): Add the main thread here.
2391 * linux-nat.c (linux_nat_attach): Don't add the main thread here.
2392 Decorate the main thread id with the lwp id.
2394 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2396 * linux-nat.c (linux_nat_wait): Update inferior_ptid's ptid with
2397 thread_change_ptid. Don't add or mark the main thread as running
2399 * fork-child.c (fork_inferior): Add the main thread here.
2401 2008-09-08 Jerome Guitton <guitton@adacore.com>
2403 * rs6000-tdep.c (rs6000_fetch_instruction)
2404 (rs6000_skip_stack_check): New functions.
2405 (skip_prologue): Skip stack check sequence.
2407 2008-09-08 David Daney <ddaney@avtrex.com>
2409 * dummy-frame.h (frame.h): Include it.
2410 (struct frame_id): Remove declaration.
2412 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2414 * spu-tdep.c (spu_push_dummy_code): New function.
2415 (spu_gdbarch_init): Install it.
2417 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2419 * gdbarch.sh (gdbarch_dump): Use core_addr_to_string_nz
2420 instead of paddr_nz.
2421 * gdbarch.c: Regenerate.
2423 * target.c (target_xfer_partial, debug_print_register): Use
2424 core_addr_to_string_nz instead of paddr_nz.
2426 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2428 * rs6000-tdep.c (rs6000_gdbarch_init): Setup displaced stepping
2429 *before* calling gdbarch_init_osabi.
2430 (rs6000_aix_init_osabi): Disable displaced stepping.
2432 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2434 * target.c (update_current_target): Do not inherit to_open
2436 (pop_target): Call target_close on target_stack instead
2438 (pop_all_targets_above): Likewise.
2440 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2442 * gnu-v3-abi.c (gnuv3_decode_method_ptr): New function.
2443 (gnuv3_print_method_ptr): Use it.
2444 (gnuv3_method_ptr_to_value): Likewise.
2446 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2448 * nto-tdep.h (struct nto_target_ops): Add gdbarch parameter to
2449 register_area callback function.
2450 * i386-nto-tdep.c (i386nto_register_area): Add gdbarch parameter.
2451 Use it instead of current_gdbarch.
2452 * nto-procfs.c (procfs_store_registers): Update call.
2454 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2456 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Use
2457 regcache architecture instead of current_gdbarch.
2459 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2461 * mep-tdep.c (struct mep_prologue): Add gdbarch member.
2462 (check_for_saved): Use it instead of current_gdbarch.
2463 (is_arg_spill): Add gdbarch paramter. Use it instead
2465 (mep_analyze_prologue): Add gdbarch parameter. Pass it
2466 to is_arg_spill and check_for_saved.
2467 (mep_skip_prologue, mep_analyze_frame_prologue): Update calls.
2469 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2471 * hppa-tdep.c (internalize_unwinds): Use objfile architecture
2472 instead of current_gdbarch.
2474 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2476 * m68k-tdep.h (m68kbsd_fpreg_offset): Add gdbarch parameter.
2477 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Add gdbarch paramter.
2478 Use it instead of current_gdbarch.
2479 (m68kbsd_supply_fpregset): Update call.
2480 * m68kbsd-nat.c (m68kbsd_supply_fpregset): Likewise.
2481 (m68kbsd_collect_fpregset): Likewise.
2483 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2485 * cris-tdep.c (cris_version, cris_mode): Remove.
2486 (crisv32_single_step_through_delay): Use tdep->cris_mode.
2487 (cris_breakpoint_from_pc): Likewise.
2488 (cris_frame_unwind_cache): Use tdep->cris_version.
2489 (crisv32_scan_prologue): Likewise.
2490 (cris_spec_reg_applicable): Add gdbarch argument.
2491 Use tdep->cris_version.
2492 (cris_register_size, cris_special_register_name): Update calls.
2493 (cris_special_register_name): Add gdbarch argument.
2494 (cris_register_name, crisv32_register_name): Update calls.
2496 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2498 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Use info->arch
2499 instead of current_gdbarch.
2501 * sh64-tdep.c (gdb_print_insn_sh64): Remove.
2502 (sh64_gdbarch_init): Install print_insn_sh64 directly.
2503 * sh-tdep.c (gdb_print_insn_sh): Remove.
2504 (sh_gdbarch_init): Install print_insn_sh directly.
2506 * mips-tdep.c (gdb_print_insn_mips): Do not check mips_abi
2507 from current_gdbarch.
2508 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): New functions.
2509 (mips_gdbarch_init): Install them instead of gdb_print_insn_mips
2510 depending on mips_abi.
2512 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2514 * gdbarch.sh (addr_bits_remove): Change type to 'm'.
2515 (smash_text_address): Likewise.
2516 * gdbarch.c, gdbarch.h: Regenerate.
2518 * arch-utils.c (core_addr_identity): Add gdbarch parameter.
2519 * arch-utils.h (core_addr_identity): Likewise.
2520 * arm-tdep.c (arm_addr_bits_remove): Likewise.
2521 (arm_smash_text_address): Likewise.
2522 * hppa-tdep.c (hppa_smash_text_address): Likewise.
2523 * m88k-tdep.c (m88k_addr_bits_remove): Likewise.
2524 * s390-tdep.c (s390_addr_bits_remove): Likewise.
2526 * mips-tdep.c (mips_addr_bits_remove): Add gdbarch parameter.
2527 Use it instead of current_gdbarch.
2529 * arm-tdep.c (arm_prologue_prev_register, arm_unwind_pc,
2530 arm_dwarf2_prev_register): Update calls.
2531 * m88k-tdep.c (m88k_unwind_pc): Update call.
2533 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2535 * dwarf2expr.h (dwarf2_read_address): Add gdbarch argument.
2536 * dwarf2expr.c (dwarf2_read_address): Add gdbarch argument.
2537 Call gdbarch_integer_to_address directly instead of converting
2538 to value and back. Update comment.
2539 (execute_stack_op): Update call site.
2540 * dwarf2loc.c (find_location_expression): Likewise.
2541 (locexpr_describe_location): Update
2543 * dwarf2expr.h (struct dwarf_expr_context): Add gdbarch member.
2544 * dwarf2-frame.c (execute_stack_op): Initialize ctx->gdbarch.
2545 * dwarf2loc. (dwarf2_evaluate_loc_desc): Likewise.
2546 (dwarf2_loc_desc_needs_frame): Likewise.
2548 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2550 * breakpoint.h (struct bp_location): Change type of section
2551 member to "struct obj_section *".
2552 * tracepoint.h (struct tracepoint): Likewise.
2553 * symtab.h (struct general_symbol_info): Replace bfd_section
2554 member with obj_section.
2555 (struct symtab_and_line): Change type of section member to
2556 "struct obj_section *".
2557 (SYMBOL_BFD_SECTION): Remove macro, replace by ...
2558 (SYMBOL_OBJ_SECTION): ... this.
2560 * minsym.c (prim_record_minimal_symbol_and_info): Record symbol
2561 section as obj_section instead of bfd_section.
2563 * ada-lang.c (ada_decode_symbol): Use gsymbol->obj_section
2564 directly instead of looking of obj_section from bfd_section.
2566 * objfiles.h (find_pc_sect_section): Remove.
2567 * objfiles.c (find_pc_sect_section): Remove.
2568 (find_pc_section): Inline find_pc_sect_section code.
2570 * symfile.h (find_pc_overlay): Return struct obj_section *.
2571 (find_pc_mapped_section): Likewise.
2572 (section_is_overlay, section_is_mapped): Change type of section
2573 argument to struct obj_section *.
2574 (pc_in_mapped_range, pc_in_unmapped_range): Likewise.
2575 (overlay_mapped_address, overlay_unmapped_address): Likewise.
2576 (symbol_overlayed_address): Likewise.
2577 * symtab.h (symbol_overlayed_address): Likewise.
2578 * symfile.c (overlay_is_mapped): Remove.
2579 (section_is_mapped): Inline overlay_is_mapped code. Update.
2580 (overlay_invalidate_all): Update.
2581 (section_is_overlay): Change section argument to type
2582 "struct obj_section *". Use bfd_ methods.
2583 (pc_in_unmapped_range): Likewise. Handle relocated sections.
2584 (pc_in_mapped_range): Likewise. Handle relocated sections.
2585 (sections_overlap): Likewise.
2586 (overlay_unmapped_address): Likewise.
2587 (overlay_mapped_address): Likewise.
2588 (symbol_overlayed_address): Likewise.
2589 (find_pc_overlay): Return struct obj_section *.
2590 (find_pc_mapped_section): Likewise.
2591 (list_overlays_command): Update.
2592 (map_overlay_command, unmap_overlay_command): Update.
2593 (simple_overlay_update): Update.
2595 * block.h (blockvector_for_pc_sect): Change section argument
2596 to type "struct obj_section *".
2597 (block_for_pc_sect): Likewise.
2598 * block.c (blockvector_for_pc_sect): Change section argument
2599 to type "struct obj_section *".
2600 (block_for_pc_sect): Likewise.
2601 * symtab.h (find_pc_sect_function, find_pc_sect_psymtab,
2602 find_pc_sect_symtab, find_pc_sect_psymbol, find_pc_sect_line,
2603 lookup_minimal_symbol_by_pc_section, find_function_start_pc): Likewise.
2604 (matching_bfd_sections): Rename to ...
2605 (matching_obj_sections): ... this. Update argument types.
2606 * blockframe.c (find_pc_sect_function): Likewise.
2607 * breakpoint.c (describe_other_breakpoints): Likewise.
2608 (breakpoint_has_pc, check_duplicates_for): Likewise.
2609 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
2610 (lookup_minimal_symbol_by_pc_section): Likewise.
2611 * symtab.c (find_pc_sect_psymtab_closer): Likewise.
2612 (find_pc_sect_psymtab, find_pc_sect_psymbol, find_pc_sect_symtab,
2613 find_pc_sect_line, find_function_start_pc): Likewise.
2614 (matching_bfd_sections): Rename to ...
2615 (matching_obj_sections): ... this. Update argument types.
2617 * blockframe.c (find_pc_partial_function): Update to section
2618 type changes. No longer call find_pc_sect_section.
2619 (cache_pc_function_section): Change to type "struct obj_section *".
2620 * breakpoint.c (resolve_sal_pc): Update to section type changes.
2621 * exec.c (xfer_memory): Likewise.
2622 * findvar.c (read_var_value): Likewise.
2623 * infcmd.c (jump_command): Likewise.
2624 * linespec.c (minsym_found): Likewise.
2625 * maint.c (maintenance_translate_address): Likewise.
2626 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
2627 (lookup_solib_trampoline_symbol_by_pc): Likewise.
2628 * parse.c (write_exp_msymbol): Likewise.
2629 * printcmd.c (build_address_symbolic): Likewise.
2630 (address_info, sym_info): Likewise.
2631 * symmisc.c (dump_msymbols, print_symbol): Likewise.
2632 * symtab.c (fixup_section): Likewise.
2633 (fixup_symbol_section, fixup_psymbol_section): Likewise.
2634 (find_pc_line, find_function_start_sal): Likewise.
2635 * target.c (memory_xfer_partial): Likewise.
2636 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline): Likewise.
2637 * spu-tdep.c (spu_overlay_update): Likewise.
2639 2008-09-04 Doug Evans <dje@google.com>
2641 * defs.h (plongest,pulongest): Renamed from paddr_u,paddr_d.
2642 Change argument of pulongest from CORE_ADDR to ULONGEST.
2643 All callers updated.
2644 * utils.c (plongest): Renamed from paddr_d.
2645 (pulongest): Renamed from paddr_u, change arg type to ULONGEST.
2646 * remote-mips.c (send_srec): Use paddr_nz instead of paddr_u in
2647 `CORE_ADDR addr' arg of error message.
2649 2008-09-03 Angela Marie Thomas <angela@releasedominatrix.com>
2651 * ser-tcp.c (ser_tcp_send_break): New function.
2652 (_initialize_ser_tcp): Use ser_tcp_send_break.
2653 * ser-tcp.h (ser_tcp_send_break): New prototype.
2655 2008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
2657 * spu-tdep.c (spu_push_dummy_call): Update all stack pointer slots
2658 when allocating stack frame for inferior call.
2660 2008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
2662 * spu-tdep.c (spu_frame_unwind_cache): Do not attempt to unwind
2663 SP or return address if we failed to find a valid frame.
2665 2008-09-03 Aleksandar Ristovski <aristovski@qnx.com>
2667 * breakpoint.c (breakpoint_init_inferior): Mark as not inserted only
2668 non-permanent breakpoints.
2669 (bpstat_stop_status): Change enable_state to bp_disabled only for
2670 non-permanent breakpoints.
2671 (bp_loc_is_permanent): New function.
2672 (create_breakpoint): Check if the location points to a permanent
2673 breakpoint and if it does, make breakpoint permanent.
2674 (update_breakpoint_locations): Make sure new locations of permanent
2675 breakpoints are properly initialized.
2676 * i386-tdep.c (i386_skip_permanent_breakpoint): New function.
2677 (i386_gdbarch_init): Set gdbarch_skip_permanent_breakpoint.
2679 2008-09-02 Pedro Alves <pedro@codesourcery.com>
2681 * breakpoint.c (insert_breakpoints, update_global_location_list):
2682 Check breakpoints_always_inserted_mode instead of
2683 always_inserted_mode directly.
2685 2008-09-02 Andreas Schwab <schwab@suse.de>
2687 * ia64-tdep.c (ia64_get_dyn_info_list): Use obj_section_addr.
2689 2008-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2691 Stay compatible after the GCC PR fortran/29635 fix.
2692 * dwarf2read.c (process_die <DW_TAG_imported_module>)
2693 (process_die <DW_TAG_imported_module>): Do not assert anything about
2694 these unsupported tags.
2696 2008-08-29 Tom Tromey <tromey@redhat.com>
2698 * maint.c (_initialize_maint_cmds): Fix typo.
2700 2008-08-29 Tom Tromey <tromey@redhat.com>
2702 * dwarf2read.c (dwarf2_build_psymtabs_hard): Copy dirname on
2705 2008-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2707 * remote.c: Include "gdb_stat.h".
2709 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
2711 * dummy-frame.h (dummy_frame_pop): Add prototype.
2712 * dummy-frame.c: Include "observer.h".
2713 (dummy_frame_push): Do not check for stale frames.
2714 (dummy_frame_pop): New function.
2715 (cleanup_dummy_frames): New function.
2716 (_initialize_dummy_frame): Install it as inferior_created observer.
2718 * frame.h (struct frame_id): Update comments.
2719 (frame_id_inner): Remove prototype.
2720 * frame.c (frame_id_inner): Make static. Add comments.
2721 (frame_find_by_id): Update frame_id_inner safety net check to avoid
2722 false positives for targets using non-contiguous stack ranges.
2723 (get_prev_frame_1): Update frame_id_inner safety net check.
2724 (frame_pop): Call dummy_frame_pop when popping a dummy frame.
2726 * stack.c (return_command): Directly pop the selected frame.
2727 * infrun.c (handle_inferior_event): Remove dead code.
2728 * i386-tdep.c (i386_push_dummy_call): Update comment.
2730 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
2732 * breakpoint.c (remove_breakpoint): Do not fail if unable to remove
2733 breakpoint from shared library.
2735 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
2737 * solib-svr4.c (read_program_header): New function.
2738 (scan_dyntag_auxv): New function.
2739 (elf_locate_base): Use it if scan_dyntag fails.
2740 (find_program_interpreter): New function.
2741 (enable_break): Use it instead of .interp section.
2743 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
2745 * remote.h (remote_filename_p, remote_bfd_open): Add prototypes.
2746 * remote.c (remote_bfd_iovec_open, remote_bfd_iovec_close,
2747 remote_bfd_iovec_pread, remote_bfd_iovec_stat, remote_filename_p,
2748 remote_bfd_open): New functions.
2749 (remote_hostio_send_command): Fail safely if remote connection
2752 * solist.h (solib_open): Remove prototype.
2753 (solib_bfd_open): Add prototype.
2754 * solib.c: Include "remote.h".
2755 (solib_open): Remove, replace by ...
2756 (solib_bfd_open): ... this new function. Handle remote BFDs.
2757 (solib_map_sections): Replace solib_open by solib_bfd_open.
2758 * solib-frv.c: Include "exceptions.h".
2759 (enable_break2): Replace solib_open by solib_bfd_open.
2760 * solib-svr4.c: Include "exceptions.h".
2761 (enable_break): Replace solib_open by solib_bfd_open.
2763 * symfile.c: Include "remote.h".
2764 (build_id_verify): Handle remote BFDs.
2765 (separate_debug_file_exists): Use BFD to access file. Handle
2767 (symfile_bfd_open): Handle remote BFDs.
2768 (reread_symbols): Handle remote BFDs.
2770 * NEWS: Mention "remote:" argument prefix to "set sysroot".
2772 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
2774 * gdbarch.sh (target_gdbarch): New global variable.
2775 (deprecated_current_gdbarch_select_hack): Set it.
2776 * gdbarch.c, gdbarch.h: Regenerate.
2778 * arch-utils.c (gdbarch_update_p): Use target_gdbarch instead
2780 * target-descriptions.c (target_find_description): Likewise.
2781 * arm-tdep.c (arm_update_current_architecture): Likewise.
2782 (show_fp_model, arm_show_abi, arm_show_fallback_mode,
2783 arm_show_force_mode): Likewise.
2784 * mips-tdep.c (show_mask_address, show_mipsfpu_command,
2785 show_mips_abi): Likewise.
2786 * mep-tdep.c (me_module_register_set, current_me_module): Likewise.
2788 * target.c (target_translate_tls_address): Use target_gdbarch
2789 instead of current_gdbarch.
2790 * remote.c (struct packet_reg): Likewise.
2791 (get_remote_arch_state, packet_reg_from_regnum,
2792 packet_reg_from_pnum, remote_check_symbols, remote_wait,
2793 remote_address_masked, remote_insert_breakpoint,
2794 remote_insert_hw_breakpoint, remote_read_description): Likewise.
2795 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
2796 * remote-mips.c (mips_open, mips_common_breakpoint): Likewise.
2797 * cris-tdep.c (cris_can_use_hardware_watchpoint): Likewise.
2799 * solib.c (solib_open, solib_map_sections, solib_read_symbols,
2800 solib_add, info_sharedlibrary_command, solib_address,
2801 solib_create_inferior_hook, in_solib_dynsym_resolve_code,
2802 solib_global_lookup): Likewise.
2803 * solib-frv.c (enable_break2, frv_relocate_main_executable): Likewise.
2804 * solib-irix.c (irix_current_sos, irix_open_symbol_file_object):
2806 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
2807 * solib-svr4.c (exec_entry_point, enable_break, svr4_free_so,
2808 set_solib_svr4_fetch_link_map_offsets, svr4_fetch_link_map_offsets):
2810 * nto-tdep.c (nto_find_and_open_solib, nto_init_solib_absolute_prefix,
2811 nto_truncate_ptr): Likewise.
2812 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Likewise.
2814 2008-08-26 Luis Machado <luisgpm@br.ibm.com>
2816 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections) New structure.
2817 (ppc_linux_vmx_regset_sections): New structure.
2818 (ppc_linux_fp_regset_sections): New structure.
2819 (ppc_linux_init_abi): Select core-file regset based on target
2822 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
2824 * target.c (debug_print_register): Use regcache_raw_collect
2825 instead of regcache_cooked_read. Only handle raw registers.
2827 2008-08-25 Pedro Alves <pedro@codesourcery.com>
2829 * cp-name-parser.y: Include config.h before system headers.
2831 2008-08-25 Ulrich Weigand <uweigand@de.ibm.com>
2833 * m88k-tdep.c: Update for unwinder changes.
2835 2008-08-24 Tom Tromey <tromey@redhat.com>
2837 * s390-tdep.c (s390_address_class_type_flags): Use
2838 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1.
2839 (s390_address_class_type_flags_to_name): Likewise.
2840 (s390_address_class_name_to_type_flags): Likewise.
2842 2008-08-24 Tom Tromey <tromey@redhat.com>
2844 * rs6000-tdep.c (rs6000_builtin_type_vec128): Don't use
2846 * features/rs6000/powerpc-vsx32l.c
2847 (initialize_tdesc_powerpc_vsx32l): Update.
2848 * features/rs6000/powerpc-vsx32.c
2849 (initialize_tdesc_powerpc_vsx32): Update.
2850 * features/rs6000/powerpc-vsx64.c
2851 (initialize_tdesc_powerpc_vsx64): Update.
2852 * features/rs6000/powerpc-vsx64l.c
2853 (initialize_tdesc_powerpc_vsx64l): Update.
2854 * target-descriptions.c (maint_print_c_tdesc_cmd): Emit
2855 TYPE_VECTOR, not TYPE_FLAGS.
2857 2008-08-24 Tom Tromey <tromey@redhat.com>
2859 * xml-tdesc.c (tdesc_end_union): Update.
2860 * stabsread.c (define_symbol): Update.
2861 (read_type): Update.
2862 (read_struct_type): Update.
2863 (read_enum_type): Update.
2864 * spu-tdep.c (spu_builtin_type_vec128): Update.
2865 * sh-tdep.c (sh_push_dummy_call_fpu): Update.
2866 (sh_push_dummy_call_nofpu): Update.
2867 * mdebugread.c (parse_symbol): Update.
2868 (parse_symbol): Update.
2869 (parse_symbol): Update.
2870 (upgrade_type): Update.
2871 * jv-lang.c (java_lookup_class): Update.
2872 * iq2000-tdep.c (iq2000_pointer_to_address): Update.
2873 * i386-tdep.c (i386_mmx_type): Update.
2874 (i386_sse_type): Update.
2875 * gdbtypes.h (enum type_flag_value): New enum.
2876 (enum type_instance_flag_value): New enum.
2877 (TYPE_FLAG_UNSIGNED, TYPE_FLAG_NOSIGN, TYPE_FLAG_STUB,
2878 TYPE_FLAG_TARGET_STUB, TYPE_FLAG_STATIC, TYPE_FLAG_PROTOTYPED,
2879 TYPE_FLAG_INCOMPLETE, TYPE_FLAG_VARARGS, TYPE_FLAG_VECTOR,
2880 TYPE_FLAG_FIXED_INSTANCE, TYPE_FLAG_STUB_SUPPORTED,
2881 TYPE_FLAG_NOTTEXT): Now enum constants.
2882 (TYPE_FLAG_CONST, TYPE_FLAG_VOLATILE, TYPE_FLAG_CODE_SPACE,
2883 TYPE_FLAG_DATA_SPACE, TYPE_FLAG_ADDRESS_CLASS_1,
2884 TYPE_FLAG_ADDRESS_CLASS_2): Remove.
2885 (TYPE_INSTANCE_FLAG_CONST, TYPE_INSTANCE_FLAG_VOLATILE,
2886 TYPE_INSTANCE_FLAG_CODE_SPACE, TYPE_INSTANCE_FLAG_DATA_SPACE,
2887 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1,
2888 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_2): New constants.
2889 (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB, TYPE_TARGET_STUB,
2890 TYPE_STATIC, TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_VARARGS,
2891 TYPE_VECTOR, TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED,
2892 TYPE_NOTTEXT): Update.
2893 (TYPE_FLAG_ADDRESS_CLASS_ALL): Remove.
2894 (TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL): New define.
2895 (TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE,
2896 TYPE_ADDRESS_CLASS_1, TYPE_ADDRESS_CLASS_2,
2897 TYPE_ADDRESS_CLASS_ALL): Update.
2898 (struct main_type) <flags>: Remove.
2899 <flag_unsigned, flag_nosign, flag_stub, flag_target_stub,
2900 flag_static, flag_prototyped, flag_incomplete, flag_varargs,
2901 flag_vector, flag_stub_supported, flag_nottext,
2902 flag_fixed_instance>: New fields.
2903 <nfields, vptr_fieldno>: Move earlier.
2904 (TYPE_FLAGS): Remove.
2905 * gdbtypes.c (make_pointer_type): Update.
2906 (address_space_name_to_int): Update.
2907 (address_space_int_to_name): Update.
2908 (make_type_with_address_space): Update.
2909 (make_cv_type): Update.
2910 (create_range_type): Update.
2911 (get_discrete_bounds): Update.
2912 (create_set_type): Update.
2913 (make_vector_type): Update.
2914 (smash_to_method_type): Update.
2915 (check_typedef): Update.
2916 (check_stub_method): Update.
2917 (init_type): Individually assign flag fields.
2918 (recursive_dump_type): Don't print entire TYPE_FLAGS field. Do
2919 print TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED, and TYPE_NOTTEXT.
2920 (copy_type_recursive): Copy the entire main type. Don't use
2922 * features/rs6000/powerpc-altivec64l.c
2923 (initialize_tdesc_powerpc_altivec64l): Update.
2924 * features/rs6000/powerpc-altivec64.c
2925 (initialize_tdesc_powerpc_altivec64): Update.
2926 * features/rs6000/powerpc-altivec32l.c
2927 (initialize_tdesc_powerpc_altivec32l): Update.
2928 * features/rs6000/powerpc-altivec32.c
2929 (initialize_tdesc_powerpc_altivec32): Update.
2930 * features/rs6000/powerpc-7400.c (initialize_tdesc_powerpc_7400):
2932 * features/arm-with-iwmmxt.c (initialize_tdesc_arm_with_iwmmxt):
2934 * dwarf2read.c (read_structure_type): Update.
2935 (read_enumeration_type): Likewise.
2936 (process_enumeration_scope): Likewise.
2937 (read_tag_pointer_type): Likewise.
2938 (read_subroutine_type): Likewise.
2939 (read_subroutine_type): Likewise.
2940 (read_base_type): Likewise.
2941 * coffread.c (coff_read_enum_type): Update.
2942 * ada-valprint.c (adjust_type_signedness): Update.
2943 * ada-typeprint.c (print_record_field_types): Update.
2944 * ada-lang.c (packed_array_type): Update.
2945 (empty_record): Don't reset TYPE_FLAGS.
2946 (ada_template_to_fixed_record_type_1): Update.
2947 (ada_template_to_fixed_record_type_1): Likewise.
2948 (template_to_static_fixed_type): Likewise.
2949 (to_record_with_fixed_variant_part): Likewise.
2950 (to_fixed_record_type): Likewise.
2951 (to_fixed_array_type): Likewise.
2952 (to_static_fixed_type): Likewise.
2954 2008-08-23 Jim Blandy <jimb@redhat.com>
2957 * symmisc.c (print_symbol_bcache_statistics): Include statistics
2958 for the macro bcache.
2960 2008-08-23 Tom Tromey <tromey@redhat.com>
2962 * macrotab.h (struct macro_definition) <kind>: Shrink to one bit.
2963 (argc): Now 31 bits.
2965 2008-08-22 Tom Tromey <tromey@redhat.com>
2967 * NEWS: Move macro entries back under "New commands".
2969 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
2971 * breakpoint.c (create_overlay_event_breakpoint): Rename to ...
2972 (create_overlay_event_breakpoint_1): ... this. Add OBJFILE parameter.
2973 (create_overlay_event_breakpoint): Loop over all objfiles to install
2974 multiple instances of the overlay event breakpoint if present.
2976 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
2978 * spu-tdep.c (spu_overlay_new_objfile): Only consider SPU objfiles.
2979 (info_spu_event_command): Command only supported on SPU architecture.
2980 (info_spu_signal_command): Likewise.
2981 (info_spu_mailbox_command): Likewise.
2982 (info_spu_dma_command): Likewise.
2983 (info_spu_proxydma_command): Likewise.
2985 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
2987 * infrun.c (adjust_pc_after_break): Do not call get_thread_regcache
2988 if the thread has already exited.
2990 2008-08-22 Pedro Alves <pedro@codesourcery.com>
2992 * infrun.c (proceed): Move back setting previous_inferior_ptid
2994 (wait_for_inferior): ... to here.
2995 (fetch_inferior_event): ... and here.
2997 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
2999 * gdbarch.sh: Include "regcache.h" into gdbarch.c.
3000 (deprecated_current_gdbarch_select_hack): Call registers_changed
3001 instead of reinit_frame_cache.
3002 * gdbarch.c: Regenerate.
3004 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
3006 * elfread.c (elf_symtab_read): Do not relocate thread-local symbols.
3008 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3010 * xcoffread.c (SYMNAME_ALLOC): Correct syntax.
3012 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
3014 * findvar.c (locate_var_value): Do not call get_frame_arch
3015 with a NULL frame argument.
3017 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
3019 * frame.h (frame_map_regnum_to_name): Remove prototype.
3020 (frame_map_name_to_regnum): Remove prototype.
3021 * frame.c (frame_map_regnum_to_name): Remove.
3022 (frame_map_name_to_regnum): Remove.
3023 (frame_unwind_register_value): Use user_reg_map_regnum_to_name
3024 instead of frame_map_regnum_to_name.
3025 * ax-gdb.c: Include "user-regs.h".
3026 (gen_expr): Use user_reg_map_name_to_regnum instead of
3027 frame_map_name_to_regnum.
3028 * eval.c: Include "user-regs.h".
3029 (evaluate_subexp_standard): Use user_reg_map_name_to_regnum
3030 instead of frame_map_name_to_regnum.
3031 * infcmd.c (registers_info): Likewise.
3032 * parse.c: Include "user-regs.h".
3033 (write_dollar_variable): Use user_reg_map_name_to_regnum
3034 instead of frame_map_name_to_regnum.
3035 * tracepoint.c: Include "user-regs.h".
3036 (encode_actions): Use user_reg_map_name_to_regnum
3037 instead of frame_map_name_to_regnum.
3038 * valops.c: Include "user-regs.h".
3039 (value_fetch_lazy): Use user_reg_map_regnum_to_name instead
3040 of frame_map_regnum_to_name.
3042 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
3044 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Read
3045 and manually relocate .opd contents from BFD instead of reading
3046 them from target memory.
3048 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3050 * dwarf2read.c (processing_current_prefix): Delete static
3052 (process_full_comp_unit): Do not set processing_current_prefix.
3053 (dwarf2_full_name): New function.
3054 (read_func_scope): Do not set processing_current_prefix. Use
3056 (read_structure_type): Do not set processing_current_prefix. Remove
3057 unused inner cleanup.
3058 (process_structure_scope): Do not set processing_current_prefix.
3059 (read_enumeration_type): Use dwarf2_full_name.
3060 (determine_class_name): Return a const char *. Put the result
3061 on the objfile obstack. Use dwarf2_full_name.
3062 (read_namespace_type): New function.
3063 (read_namespace): Do not create the type here. Use
3065 (read_typedef): Use dwarf2_full_name. Do not pass the name
3067 (read_base_type): Do not pass the name to init_type. Handle
3069 (read_unspecified_type): Do not pass the name to init_type.
3070 (new_symbol): Use dwarf2_full_name instead of
3071 processing_current_prefix.
3072 (read_type_die): Do not set processing_current_prefix. Handle
3074 (determine_prefix): Handle specifications. Return the result
3075 on the objfile obstack. Handle unions correctly.
3077 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3079 * buildsym.c (add_symbol_to_list): Do not call
3080 cp_scan_for_anonymous_namespaces here.
3081 (finish_block): Do not call cp_set_block_scope here.
3082 * cp-namespace.c (processing_has_namespace_info)
3083 (processing_current_prefix): Delete.
3084 (cp_initialize_namespace): Do not initialize
3085 processing_has_namespace_info.
3086 (cp_scan_for_anonymous_namespaces): Use SYMBOL_DEMANGLED_NAME. Do
3087 not check processing_has_namespace_info.
3088 (cp_set_block_scope): Take prefix and namespace info flag as
3089 arguments. Honor namespaces regardless of a demangled name.
3090 * cp-support.h (processing_has_namespace_info)
3091 (processing_current_prefix): Delete declarations.
3092 (cp_set_block_scope): Update prototype.
3093 * dwarf2read.c (processing_has_namespace_info)
3094 (processing_current_prefix): New static variables.
3095 (read_file_scope): Initialize processing_has_namespace_info.
3096 (read_func_scope): Call cp_set_block_scope for C++.
3097 (new_symbol): Call cp_scan_for_anonymous_namespaces for C++.
3098 * symtab.c (symbol_demangled_name): Accept a const argument.
3099 * symtab.h (symbol_demangled_name): Update prototype.
3101 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3103 * ax-gdb.c (gen_var_ref): Use SYMBOL_LINKAGE_NAME.
3104 * blockframe.c (find_pc_partial_function): Likewise.
3105 * buildsym.c (find_symbol_in_list): Likewise.
3106 * c-valprint.c (c_val_print): Likewise.
3107 * coffread.c (patch_opaque_types, process_coff_symbol): Likewise.
3108 (coff_read_enum_type): Likewise. Use SYMBOL_SET_LINKAGE_NAME.
3109 * cp-support.c (cp_remove_params): Renamed from remove_params and
3111 (overload_list_add_symbol): Update call to remove_params.
3112 * cp-support.h (cp_remove_params): Declare.
3113 * dwarf2read.c (process_enumeration_scope): Use SYMBOL_LINKAGE_NAME.
3114 (dwarf2_const_value): Use SYMBOL_PRINT_NAME.
3115 * expprint.c (dump_subexp_body_standard): Likewise.
3116 * f-valprint.c (info_common_command, there_is_a_visible_common_named):
3117 Use SYMBOL_LINKAGE_NAME to find symbols and SYMBOL_PRINT_NAME
3119 * findvar.c (read_var_value): Use SYMBOL_LINKAGE_NAME.
3120 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
3121 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
3122 (hppa_hpux_skip_trampoline_code): Use SYMBOL_LINKAGE_NAME to find
3123 symbols and SYMBOL_PRINT_NAME for messages.
3124 * jv-lang.c (add_class_symbol): Use SYMBOL_SET_LINKAGE_NAME.
3125 * linespec.c (decode_line_2): Use SYMBOL_LINKAGE_NAME.
3126 * mdebugread.c (parse_symbol): Use SYMBOL_LINKAGE_NAME and
3127 SYMBOL_SET_LINKAGE_NAME.
3128 (mylookup_symbol): Use SYMBOL_LINKAGE_NAME.
3129 * minsyms.c (add_minsym_to_demangled_hash_table): Use
3131 (lookup_minimal_symbol): Use SYMBOL_LINKAGE_NAME or
3132 SYMBOL_MATCHES_SEARCH_NAME, depending on the pass.
3133 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Use SYMBOL_LINKAGE_NAME.
3134 * printcmd.c (build_address_symbolic): Use SYMBOL_LINKAGE_NAME.
3135 (address_info): Use SYMBOL_PRINT_NAME for messages and
3136 SYMBOL_LINKAGE_NAME for lookups.
3137 * sol-thread.c (info_cb): Use SYMBOL_PRINT_NAME for messages.
3138 * stabsread.c (patch_block_stabs, define_symbol)
3139 (read_type, read_enum_type, common_block_end)
3140 (cleanup_undefined_types_1, scan_file_globals): Use
3141 SYMBOL_LINKAGE_NAME, SYMBOL_SET_LINKAGE_NAME, ALL_OBJFILE_MSYMBOLS,
3142 and SYMBOL_PRINT_NAME.
3143 * stack.c (print_frame_args): Use SYMBOL_LINKAGE_NAME.
3144 (print_frame, frame_info): Use SYMBOL_PRINT_NAME for output. Use
3145 cp_remove_params instead of cplus_demangle.
3146 (print_block_frame_labels, print_frame_arg_vars): Use
3147 SYMBOL_LINKAGE_NAME.
3148 * symmisc.c (dump_msymbols): Use ALL_OBJFILE_MSYMBOLS and
3149 SYMBOL_LINKAGE_NAME.
3150 (dump_symtab_1, print_symbol, print_partial_symbols)
3151 (maintenance_check_symtabs): Use SYMBOL_LINKAGE_NAME.
3152 * symtab.h (DEPRECATED_SYMBOL_NAME): Delete.
3153 (SYMBOL_SET_LINKAGE_NAME): New.
3154 (SYMBOL_SET_NAMES): Add a comment.
3155 * tracepoint.c (set_traceframe_context, validate_actionline)
3156 (collect_symbol, scope_info): Use SYMBOL_LINKAGE_NAME for
3157 lookups and SYMBOL_PRINT_NAME for output.
3158 * typeprint.c (typedef_print): Use SYMBOL_LINKAGE_NAME.
3159 * xcoffread.c (process_xcoff_symbol): Use SYMBOL_SET_LINKAGE_NAME.
3161 2008-08-21 Pedro Alves <pedro@codesourcery.com>
3163 * arm-tdep.c (arm_pc_is_thumb): Use obj_section_addr.
3164 * hppa-hpux-tdep.c (hppa_hpux_find_dummy_bpaddr): Likewise.
3165 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Use
3166 obj_section_addr and obj_section_endaddr.
3167 * hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Likewise.
3168 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
3169 * ia64-tdep.c (ia64_find_global_pointer): Likewise.
3170 (find_extant_func_descr): Likewise.
3171 * solib-frv.c (frv_relocate_main_executable): Use
3173 * xstormy16-tdep.c (xstormy16_find_jmp_table_entry): Use
3174 obj_section_addr and obj_section_endaddr.
3176 2008-08-21 Paul N. Hilfinger <hilfinger@adacore.com>
3178 * NEWS: Amplify last entry on boolean types in Ada.
3180 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3182 * dwarf2read.c (die_specification, dwarf2_extension, follow_die_ref):
3183 Make the dwarf2_cu * parameter output as well as input. Update it if
3184 we follow a reference to another CU.
3185 (read_func_scope, determine_class_name, namespace_name, dwarf2_attr)
3186 (die_type, die_containing_type): Update calls to changed functions.
3187 Use the returned CU along with the returned DIE.
3188 (read_namespace): Use dwarf2_attr instead of dwarf2_extension.
3190 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3192 * dwarf2read.c (queue_comp_unit): Take an objfile argument. Read
3194 (process_queue): Do not read in the DIEs here.
3195 (psymtab_to_symtab_1): Update call to queue_comp_unit.
3196 (read_full_die): Do not call queue_comp_unit from here.
3197 (maybe_queue_comp_unit): New function.
3198 (follow_die_ref): Use it.
3200 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3202 * dwarf2read.c (struct attribute): Move earlier.
3203 (struct die_info): Change attrs to a trailing array.
3204 (dwarf_alloc_die): Take the number of attributes. Allocate space
3206 (read_full_die): Update call to dwarf_alloc_die. Do not manually
3207 allocate attributes.
3209 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3211 * dwarf2read.c (REF_HASH_SIZE): Delete.
3212 (struct dwarf2_cu): Replace die_ref_table with die_hash.
3213 (struct die_info): Remove next_ref.
3214 (store_in_ref_table): Remove offset argument. Rewrite to use
3215 htab_find_slot_with_hash.
3216 (die_hash, die_eq): New.
3217 (read_comp_unit): Allocate the die_hash.
3218 (read_die_and_children): Update call to store_die_ref.
3219 (follow_die_ref): Rewrite to use htab_find_with_hash.
3221 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3223 * dwarf2read.c (free_die_list, copy_die): Delete.
3224 (dwarf_alloc_die): Take a CU argument. Allocate the new DIE
3226 (read_full_die): Update call to dwarf_alloc_die. Allocate
3227 attributes on the CU obstack.
3228 (free_one_comp_unit): Do not call free_die_list.
3230 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3232 * dwarf2read.c (read_die_and_children): Ignore NULL DIEs.
3233 (read_die_and_siblings): Likewise. Do not add padding DIEs to the
3235 (read_full_die): Do not allocate DIEs for abbrev 0.
3236 (follow_die_ref): Correct error message.
3238 2008-08-20 Pedro Alves <pedro@codesourcery.com>
3240 * linespec.c (symtab_from_filename): Also throw NOT_FOUND_ERROR if
3241 there are no symbols loaded, instead of throwing a generic error.
3242 (decode_variable): Likewise.
3244 2008-08-20 Pedro Alves <pedro@codesourcery.com>
3246 * objfiles.h (struct obj_section): Remove addr and endaddr fields.
3247 (obj_section_offset, obj_section_addr, obj_section_endaddr): New
3249 * objfiles.c (add_to_objfile_sections): Don't set addr, endaddr
3250 and offset. Use size_t instead of unsigned long.
3251 (build_objfile_section_table): Use size_t instead of unsigned
3253 (objfile_relocate): Don't relocate s->addr and s->endaddr, they're
3255 (find_pc_sect_section): Use obj_section_addr and
3256 obj_section_endaddr.
3257 * symfile.c (symfile.c): Remove code that maps sections
3258 offsets in "addr" to the object's sections.
3259 * blockframe.c (find_pc_partial_function): Use obj_section_endaddr.
3260 * gcore.c (gcore_create_callback): Use obj_section_addr and
3261 obj_section_endaddr.
3262 * maint.c (print_objfile_section_info): Likewise.
3263 * printcmd.c (sym_info): Use obj_section_addr and
3264 obj_section_endaddr.
3265 * symtab.c (fixup_section): Likewise.
3267 2008-08-20 Mark Kettenis <kettenis@gnu.org>
3269 * sparc-tdep.c: Make some comments catch up with reality.
3271 2008-08-20 Vladimir Prus <vladimir@codesourcery.com>
3273 * NEWS: Mention 'set target-async'
3275 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
3277 * infrun.c (resume): If the thread is placed to the deferred step
3278 queue, mark it as running.
3280 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
3282 Make sure target supports non-stop.
3283 * infcmd.c (run_command_1, attach_command): If non-stop mode
3284 is requested, verify the target supports it.
3285 * linux-nat.c (linux_nat_supports_non_stop): New.
3286 (linux_nat_add_target): Register the above.
3287 * target.c (find_default_supports_non_stop)
3288 (target_supports_non_stop): New.
3289 (init_dummy_target): Register find_default_supports_non_stop.
3290 * target.h (struct target_ops): New field to_supports_non_stop.
3291 (target_supports_non_stop): New.
3293 2008-08-19 Pedro Alves <pedro@codesourcery.com>
3294 Vladimir Prus <vladimir@codesourcery.com>
3296 * target.c (target_async_permitted, target_async_permitted_1)
3297 (set_maintenance_target_async_permitted)
3298 (show_maintenance_target_async_permitted): New.
3299 (initialize_targets): Register 'set target-async'.
3300 * target.h (target_async_permitted): Declare.
3301 * linux-nat.c (linux_nat_async_enabled)
3302 (linux_nat_async_permitted, set_maintenance_linux_async_permitted)
3303 (show_maintenance_linux_async_permitted): Remove.
3304 (sigchld_handler, linux_nat_is_async_p, linux_nat_can_async_p)
3305 (get_pending_events, linux_nat_async): Use target_async_permitted.
3306 (linux_nat_set_async_mode): Remove, moving the only used bits
3308 (linux_nat_setup_async): This.
3309 (_initialize_linux_nat): Do not register 'maint set linux-async'.
3310 Use linux_nat_setup_async.
3311 * remote.c (remote_async_permitted, remote_async_permitted_set)
3312 (set_maintenance_remote_async_permitted)
3313 (show_maintenance_remote_async_permitted): Remove.
3314 (remote_open_1, remote_terminal_inferior, remote_can_async_p)
3315 (remote_is_async_p): Use target_async_permitted.
3316 (_initialize_remote): Don't register 'main set remote-async'.
3317 * mi/mi-cmds.c (mi_cmds): Register -list-target-features.
3318 * mi/mi-cmds.h (mi_cmd_list_target_features): New.
3319 * mi/mi-main.c (mi_cmd_list_target_features): New.
3321 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
3323 * target.c (maybe_kill_then_attach)
3324 (maybe_kill_then_create_inferior): Remove.
3325 (update_current_target): Do not default to_attach,
3326 to_create_inferiour, to_is_async_p.
3328 2008-08-19 Paul N. Hilfinger <hilfinger@adacore.com>
3330 Changes for supporting boolean types in debugging data.
3331 * ada-lang.c (discrete_type_high_bound,discrete_type_low_bound): Change
3332 API to return LONGEST values rather than struct values.
3333 (ada_evaluate_subexp): Change to use new API of discrete_type_low_bound
3334 and discrete_type_high_bound.
3335 (to_fixed_range_type): Create a range type in cases where
3336 argument is base type and its limits are representable as ints.
3337 (ada_is_modular_type): Correct so that base type must be integral.
3338 * ada-lex.l (TRUEKEYWORD,FALSEKEYWORD): Make 'true' and 'false'
3339 keywords when they appear alone, since we are phasing out
3340 direct representation of these identifiers in debugging data.
3341 * ada-exp.y: Define 'true' and 'false' as primaries.
3342 (type_boolean): New function.
3343 (type_int,type_long,type_long_long,type_floattype_double)
3344 (type_long_double): Remove uses of current_gdbarch for consistency
3346 (write_int): Change comment to indicate that it might write boolean
3348 * ada-typeprint.c (ada_print_type): Print '(false, true)' for boolean
3349 type, since will no longer be represented as enumerated type in
3351 * ada-valprint.c (print_optional_low_bound): Handle boolean case
3353 * NEWS: Note support boolean types.
3355 2008-08-18 Pedro Alves <pedro@codesourcery.com>
3357 * bsd-uthread.c (bsd_uthread_close): New.
3358 (bsd_uthread_deactivate): Don't cleanup here, just unpush the
3360 (bsd_uthread_solib_loaded): Fix typo.
3361 (bsd_uthread_target): Register bsd_uthread_close.
3363 2008-08-18 Pedro Alves <pedro@codesourcery.com>
3365 * corelow.c (core_open): Assume there was no upper layer left
3366 behind from a previous inferior.
3367 * target.c (pop_all_targets): Rename to ...
3368 (pop_all_targets_above): ... this. Add a target stratum
3369 parameter. Use it instead of hardcoding the dummy_stratum.
3370 (pop_all_targets): New, defer to pop_all_targets_above.
3371 (target_preopen): Use pop_all_targets_above.
3372 * target.h (pop_all_targets_above): Declare.
3374 2008-08-18 Pedro Alves <pedro@codesourcery.com>
3376 * gdbthread.h (thread_change_ptid): Declare.
3377 * infrun.c (infrun_thread_ptid_changed): New.
3378 (_initialize_infrun): Attach infrun_thread_ptid_changed to the
3379 thread_ptid_changed observer.
3380 * regcache.c (regcache_thread_ptid_changed): New.
3381 (_initialize_regcache): Attach regcache_thread_ptid_changed to the
3382 thread_ptid_changed observer.
3383 * thread.c (thread_change_ptid): New.
3385 2008-08-18 Tom Tromey <tromey@redhat.com>
3387 * symfile.c (reread_symbols): Update.
3388 * solib-sunos.c (allocate_rt_common_objfile): Update.
3389 * objfiles.c (allocate_objfile): Update.
3390 * objfiles.h (struct objfile) <md, mmfd, deprecated_obj_private>:
3393 2008-08-18 Tom Tromey <tromey@redhat.com>
3395 * gdbtypes.c (copy_type_recursive): Allocate 'stored' on objfile's
3398 2008-08-18 Daniel Jacobowitz <dan@codesourcery.com>
3400 * rs6000-tdep.c (struct rs6000_framedata): Add gpr_mask, used_bl,
3402 (rs6000_in_function_epilogue_p): Check for bctr.
3403 (skip_prologue): Initialize lr_register. Set lr_reg to a register
3404 number. Set gpr_mask and used_bl. Continue scanning while some
3405 expected registers are not saved. Set lr_register if LR is not
3407 (rs6000_frame_cache): Handle gpr_mask and lr_register.
3409 2008-08-17 Tom Tromey <tromey@redhat.com>
3412 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): New macros.
3413 (ep_find_event_name_end): Remove.
3414 (catch_fork_temporary, catch_vfork_temporary,
3415 catch_fork_permanent, catch_vfork_permanent): New constants.
3416 (catch_vfork, catch_fork): Remove.
3417 (catch_fork_command_1): Add 'command' argument. Remove
3418 'fork_kind' and 'tempflag'. Handle NULL 'arg'. Update switch for
3420 (catch_exec_command_1): Add 'command' argument; remove
3421 'tempflag'. Handle NULL 'arg'.
3422 (catch_load_command_1): Likewise.
3423 (catch_unload_command_1): Likewise.
3424 (catch_ada_exception_command): Likewise.
3425 (catch_assert_command): Likewise.
3426 (catch_catch_command): New function.
3427 (catch_throw_command): Likewise.
3428 (catch_command_1): Remove.
3429 (catch_command): Just call error.
3430 (tcatch_command): Likewise.
3431 (catch_cmdlist): New global.
3432 (tcatch_cmdlist): Likewise.
3433 (add_catch_command): New function.
3434 (_initialize_breakpoint): Create "catch" and "tcatch" as prefix
3435 commands. Create all catch sub-commands.
3437 2008-08-17 Pedro Alves <pedro@codesourcery.com>
3439 * gdbthread.h: Add comments.
3440 * stack.c (get_selected_block): Return 0 on an exited thread.
3441 * top.c (execute_command): Check for is_stopped, not !is_running.
3442 * event-top.c (command_handler): Likewise.
3444 2008-08-16 Pedro Alves <pedro@codesourcery.com>
3446 * mi/mi-main.c (mi_cmd_exec_next, mi_cmd_exec_next_instruction)
3447 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
3448 (mi_cmd_exec_finish): Remove "return".
3450 2008-08-16 Pedro Alves <pedro@codesourcery.com>
3452 * target.h (pop_all_targets): Declare.
3453 * target.c (pop_all_targets): New.
3454 * top.c (quit_target): Pop all targets instead of just closing the
3457 2008-08-16 Vladimir Prus <vladimir@codesourcery.com>
3458 Thiago Jung Bauermann <bauerman@br.ibm.com>
3460 * cli-script.c (read_next_line): Add parse_commands argument.
3461 (recurse_read_control_structure): Adapt to new read_next_line
3463 (read_command_lines): Add parse_commands argument.
3464 (define_command): Adapt to new read_command_lines signature.
3465 (document_command): Likewise.
3466 * breakpoint.c (commands_command): Likewise.
3467 * defs.h (read_command_lines): Adjust function prototype.
3469 2008-08-16 Paul N. Hilfinger <hilfinger@adacore.com>
3471 * ada-lang.c (pos_atr): Account for the possibility that the
3472 argument may be a reference.
3474 2008-08-16 Paul N. Hilfinger <hilfingr@adacore.com>
3476 * xcoffread.c (scan_xcoff_symtab): Do not include global symbols
3477 ('F' format) for @FIX names generated by the loader, retaining only
3478 the minimal symbols (and no partial symbol tables) for these names.
3479 Fixes warning messages about symbols that are found in partial
3480 symbol tables, but not full symbol tables.
3482 2008-08-16 Pedro Alves <pedro@codesourcery.com>
3484 * infrun.c (fetch_inferior_event): Only call normal_stop if not
3487 2008-08-15 Luis Machado <luisgpm@br.ibm.com>
3489 * rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c".
3490 Include "features/rs6000/powerpc-vsx64.c".
3491 (ppc_supply_vsxregset): New function.
3492 (ppc_collect_vsxregset): New function.
3493 (IS_VSX_PSEUDOREG): New macro.
3494 (IS_EFP_PSEUDOREG): New macro.
3495 (vsx_register_p): New function.
3496 (ppc_vsx_support_p): New function.
3497 (rs6000_builtin_type_vec128): New function.
3498 (rs6000_register_name): Hide upper halves of vs0~vs31. Return
3499 correct names for VSX registers and EFPR registers.
3500 (rs6000_pseudo_register_type): Return correct types for VSX
3502 (rs6000_pseudo_register_reggroup_p): Return correct group for
3503 VSX and EFPR registers.
3504 (ppc_pseudo_register_read): Rename to dfp_pseudo_register_read.
3505 (ppc_pseudo_register_write): Rename to dfp_pseudo_register_write.
3506 (vsx_pseudo_register_read): New function.
3507 (vsx_pseudo_register_write): New function.
3508 (efpr_pseudo_register_read): New function.
3509 (efpr_pseudo_register_write): New function.
3510 (rs6000_pseudo_register_read): Call new VSX and EFPR read functions.
3511 (rs6000_pseudo_register_write): Call new VSX and EFPR write functions.
3512 (rs6000_gdbarch_init): Declare have_vsx.
3513 Initialize new upper half VSX registers.
3514 Initialize VSX-related and EFPR-related pseudo-registers variables.
3515 Adjust the number of pseudo registers accordingly.
3517 * ppc-linux-nat.c: Define PTRACE_GETVSXREGS, PTRACE_SETVSXREGS
3519 (gdb_vsxregset_t): New type.
3520 (have_ptrace_getsetvsxregs): New variable.
3521 (fetch_vsx_register): New function.
3522 (fetch_register): Handle VSX registers.
3523 (fetch_vsx_registers): New function.
3524 (fetch_ppc_registers): Handle VSX registers.
3525 (store_ppc_registers): Handle VSX registers.
3526 (store_vsx_register): New function.
3527 (store_register): Handle VSX registers.
3528 (store_vsx_registers): New function.
3529 (ppc_linux_read_description): Handle VSX-enabled inferiors.
3530 (gdb_vsxregset_t): New type.
3531 (supply_vsxregset): New function.
3532 (fill_vsxregset): New function.
3534 * ppc-tdep.h (vsx_register_p): New prototype.
3535 (vsx_support_p): New prototype.
3536 (ppc_vsr0_regnum): New variable.
3537 (ppc_vsr0_upper_regnum): Likewise.
3538 (ppc_efpr0_regnum): Likewise.
3539 (ppc_builtin_type_vec128): New type.
3540 (ppc_num_vsrs): New constant.
3541 (ppc_num_vshrs): New constant.
3542 (ppc_num_efprs): Likewise.
3543 Define POWERPC_VEC_VSX PPC_VSR0_UPPER_REGNUM and PPC_VSR31_UPPER_REGNUM.
3544 (ppc_supply_vsxregset): New prototype.
3545 (ppc_collect_vsxregset): New prototype.
3547 * ppc-linux-tdep.c: Include "features/rs6000/powerpc-vsx32l.c"
3548 Include "features/rs6000/powerpc-vsx64l.c".
3549 (_initialize_ppc_linux_tdep): Initialize VSX-enabled targets.
3550 (ppc_linux_regset_sections): Add new ".reg-ppc-vsx" field.
3551 (ppc32_linux_vsxregset): New 32-bit VSX-enabled regset.
3552 (ppc_linux_regset_from_core_section): Handle VSX core section.
3553 (ppc_linux_core_read_description): Support VSX-enabled core files.
3555 * ppc-linux-tdep.h: Declare *tdesc_powerpc_vsx32l
3556 Declare tdesc_powerpc_vsx64l
3558 * corelow.c (get_core_register_section): Support VSX-enabled
3561 * features/rs6000/power-vsx.xml: New VSX descriptions.
3562 * features/rs6000/powerpc-vsx32.xml: New file.
3563 * features/rs6000/powerpc-vsx32l.xml: New file.
3564 * features/rs6000/powerpc-vsx64.xml: New file.
3565 * features/rs6000/powerpc-vsx64l.xml: New file.
3566 * features/rs6000/powerpc-vsx32.c: New file (generated).
3567 * features/rs6000/powerpc-vsx32l.c: New file (generated).
3568 * features/rs6000/powerpc-vsx64.c: New file (generated).
3569 * features/rs6000/powerpc-vsx64l.c: New file (generated).
3570 * features/Makefile: Updated with new descriptions.
3571 * regformats/rs6000/powerpc-vsx32l.dat: New file (generated).
3572 * regformats/rs6000/powerpc-vsx64l.dat: New file (generated).
3574 2008-08-15 Vladimir Prus <vladimir@codesourcery.com>
3576 * ia64-linux.nat (_initialize_ia64_linux_nat): Don't
3577 call linux_target twice.
3579 2008-08-14 Aleksandar Ristovski <aristovski@qnx.com>
3581 * nto-tdep.c (lm_info): Updated struct lm_info definition from
3583 (LM_ADDR): Use l_addr if available; if not, use link map and set
3586 2008-08-14 Tom Tromey <tromey@redhat.com>
3588 * macrocmd.c (macro_define_command): Check for NULL argument.
3589 (macro_undef_command): Likewise.
3591 2008-08-14 Pedro Alves <pedro@codesourcery.com>
3593 * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call.
3595 2008-08-13 Pedro Alves <pedro@codesourcery.com>
3597 * breakpoint.c (always_inserted_auto, always_inserted_on)
3598 (always_inserted_off, always_inserted_enums): New.
3599 (always_inserted_mode): Change type to char* and point to
3600 always_inserted_auto.
3601 (show_always_inserted_mode): In auto mode, also show the current
3602 effect of the option.
3603 (breakpoints_always_inserted_mode): Adjust for the new auto mode.
3604 (_initialize_breakpoint): Make the "set breakpoints
3605 always-inserted" command an enum command. Extend help to describe
3608 2008-08-13 Ulrich Weigand <uweigand@de.ibm.com>
3610 * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
3611 query valid) bit. Ignore bits outside the condition field.
3612 (info_spu_proxydma_command): Ignore bits outside the field.
3614 2008-08-12 Michael Snyder <msnyder@vmware.com>
3616 * MAINTAINERS: Update my email address.
3618 2008-08-12 Ulrich Weigand <uweigand@de.ibm.com>
3620 * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP.
3622 2008-08-12 Pedro Alves <pedro@codesourcery.com>
3624 Add no-ack mode to the remote protocol --- optionally stop ACKing
3625 packets and responses when we have a reliable communication
3628 Based on Apple's GDB, by Jason Molenda <jmolenda@apple.com>
3630 * remote.c (struct remote_state): Add noack_mode field.
3631 (PACKET_QStartNoAckMode): New.
3632 (remote_start_remote): Don't any outstanding packet here.
3633 (remote_open_1): Clear noack_mode. Ack any outstanding packet
3634 here. Activate noack mode if requested.
3635 (remote_protocol_features): Add QStartNoAckMode.
3637 (putpkt_binary): Don't send ack in noack mode.
3638 (read_frame): Don't recompute the checksum in noack mode.
3639 (getpkt_sane): Skip sending ack if in noack mode.
3640 (_initialize_remote): Add set/show remote noack mode.
3641 * NEWS: Note the new features.
3643 2008-08-11 Kevin Buettner <kevinb@redhat.com>
3645 * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK):
3647 (rs6000_skip_main_prologue): New function.
3648 (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue.
3650 2008-08-11 Sandra Loosemore <sandra@codesourcery.com>
3652 * MAINTAINERS (Write After Approval): Add self.
3654 2008-08-11 Stan Shebs <stan@codesourcery.com>
3657 * disasm.c (gdb_disassemble_info): Set endian_code.
3658 * gdbarch.sh (gdbarch_info): New field byte_order_for_code.
3659 * gdbarch.h, gdbarch.c: Regenerate.
3660 * arch-utils.c (initialize_current_architecture): Set the
3661 default byte_order_for_code.
3662 (gdbarch_info_init): Ditto.
3663 (gdbarch_info_fill): Ditto.
3664 * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros.
3665 (thumb_analyze_prologue): Swap halfword if code endianness is
3666 different from general endianness.
3667 (arm_skip_prologue): Similarly.
3668 (arm_scan_prologue): Ditto.
3669 (thumb_get_next_pc): Ditto.
3670 (arm_get_next_pc): Ditto.
3671 (arm_gdbarch_init): Set byte_order_for_code from BE8 flag,
3672 choose correct endianness for breakpoints.
3674 2008-08-10 Pedro Alves <pedro@codesourcery.com>
3676 * bsd-kvm.c: Include "gdbthread.h".
3677 (bsd_kvm_ptid): New.
3678 (bsd_kvm_open): Add a main thread.
3679 (bsd_kvm_close): Delete it.
3680 (bsd_kvm_thread_alive): New.
3681 (bsd_kvm_pid_to_str): New.
3682 (bsd_kvm_add_target): Register bsd_kvm_thread_alive and
3684 (bsd_kvm_add_target): Initialize bsd_kvm_ptid.
3686 2008-08-09 Pedro Alves <pedro@codesourcery.com>
3688 * buildsym.c (start_subfile): Properly cast sentinel in concat
3690 * cp-name-parser.y: Include "config.h".
3691 * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in
3693 * gdb_select.h: Include sys/time.h if sys/select.h is not
3696 2008-08-09 Pedro Alves <pedro@codesourcery.com>
3698 * go32-nat.c: Include "gdbthread.h".
3699 (go32_stop, go32_kill_inferior): Delete the main thread.
3700 (go32_create_inferior): Add it.
3701 (go32_thread_alive, go32_pid_to_str): New.
3702 (init_go32_ops): Register go32_thread_alive and go32_pid_to_str.
3704 2008-08-09 Pedro Alves <pedro@codesourcery.com>
3706 * go32-nat.c (fetch_register, store_register): Pass the regcache
3707 gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p.
3708 (go32_xfer_memory): Change type of myaddr parameter to gdb_byte.
3709 (struct seg_descr, struct seg_descr): pack the whole struct
3710 instead of each member individually.
3712 2008-08-09 Andreas Schwab <schwab@suse.de>
3714 * python/python.c (_initialize_python): Use unabbreviated commands
3717 2008-08-09 Daniel Jacobowitz <dan@codesourcery.com>
3719 * Makefile.in (stamp-h): Also create .deps.
3721 2008-08-09 Tom Tromey <tromey@redhat.com>
3723 * Makefile.in (generated_files): Add GNULIB_H.
3725 2008-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3727 * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set
3728 DT_HP_DEBUG_PRIVATE. Add warning if DT_HP_DEBUG_PRIVATE is not set.
3730 (pa64_current_sos): Remove map private warning warning.
3731 * solib-som.c: Include string.h and sys/utsname.h.
3732 (get_hpux_major_release): New function.
3733 (som_solib_create_inferior_hook): Read dynamic linker header. Warn
3734 about shared library private mapping on HP-UX 11 and later. Only force
3735 private mapping of shared libraries on HP-UX 10 and earlier.
3736 (link_map_start): Delete warning.
3738 2008-08-09 Xuepeng Guo <xuepeng.guo@intel.com>
3739 H.J. Lu <hongjiu.lu@intel.com>
3740 Mark Kettenis <kettenis@gnu.org>
3742 * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg.
3743 (amd64_init_frame_cache): Initialize saved_sp_reg.
3744 (amd64_analyze_stack_align): New.
3745 (amd64_analyze_prologue): Call it.
3746 (amd64_frame_cache): Use saved_sp_reg if it is invalid. Don't set
3747 %rip to 8 when halfway aligning the stack.
3749 * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to
3752 * i386-tdep.c (i386_frame_cache): Remove stack_align. Add
3754 (i386_alloc_frame_cache): Remove stack_align. Initialize
3756 (i386_analyze_stack_align): Rewrite.
3757 (i386_frame_cache): Use saved_sp_reg if it is valid.
3759 2008-08-09 Ulrich Weigand <uweigand@de.ibm.com>
3761 * target.c: Include "solib.h".
3762 (target_pre_inferior): Call no_shared_libraries.
3763 * infcmd.c (run_command_1): Do not call objfile_purge_solibs
3765 (attach_command): Do not call clear_solib.
3767 2008-08-09 Mark Kettenis <kettenis@gnu.org>
3769 * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
3772 2008-08-08 Tom Tromey <tromey@redhat.com>
3774 * Makefile.in (python.o): Remove dependencies. Use COMPILE and
3776 (python-utils.o): Likewise.
3778 2008-08-08 Andreas Schwab <schwab@suse.de>
3780 * corefile.c (_initialize_core): Remove spurious paren from set
3781 gnutarget doc string.
3783 2008-08-08 Luis Machado <luisgpm@br.ibm.com>
3785 * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h".
3786 Define PPC_FEATURE_BOOKE.
3787 (ppc_linux_get_hwcap): New function.
3788 (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440
3789 4-bytes alignment restrictions.
3790 (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific
3791 positioning of the read/write flags.
3792 (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440
3795 2008-08-08 Pedro Alves <pedro@codesourcery.com>
3797 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
3799 * win32-nat.c (win32_add_thread): Change thread argument type to
3801 (win32_add_thread): Adjust.
3802 (win32_delete_thread): Change thread argument type to ptid_t.
3804 (win32_fetch_inferior_registers, win32_store_inferior_registers)
3805 (win32_resume, get_win32_debug_event, get_win32_debug_event)
3806 (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust.
3807 (init_win32_ops): Put to_magic last.
3808 (win32_win32_thread_alive): Adjust.
3810 2008-08-08 Pedro Alves <pedro@codesourcery.com>
3812 * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New.
3813 (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str.
3815 2008-08-08 Pedro Alves <pedro@codesourcery.com>
3817 * remote-m32r-sdi.c: Include "gdbthread.h".
3818 (remote_m32r_ptid): New.
3819 (m32r_close): Delete the main thread.
3820 (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the
3822 (m32r_kill, m32r_load, sdireset_command): Delete the main thread.
3823 (_initialize_remote_m32r): Initialize remote_m32r_ptid.
3825 2008-08-07 Tom Tromey <tromey@redhat.com>
3826 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3828 * aclocal.m4, configure: Rebuild.
3829 * configure.in: Call ZW_CREATE_DEPDIR,
3830 ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
3831 (MAKE, GMAKE): New substs.
3832 * acinclude.m4: Include depstand.m4.
3833 * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
3834 COMPILE, POSTCOMPILE, depcomp): New variables.
3835 Remove all _h variables.
3836 Remove many .o targets.
3837 ($(srcdir)/copying.c): avoid backslash-newline after comment
3838 sign (@maintainer_mode_true@).
3839 (HFILES_NO_SRCDIR): Regenerate.
3840 (generated_files): New variable.
3841 (all_gdbtk_cflags): Likewise.
3843 (init.o, version.o, copying.o): Remove.
3844 (distclean): Remove DEPDIR.
3845 (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
3846 printcmd.o, procfs.o, v850ice.o): Rewrite.
3847 (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
3848 cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
3849 (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
3850 gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
3851 gdbtk-wrapper.o): Likewise.
3852 (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
3853 mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
3854 mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
3855 mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
3856 tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
3857 tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
3858 tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
3859 tui-wingeneral.o, tui-winsource.o): Likewise.
3860 (all_object_files): New variable.
3861 ($(all_object_files)): New target.
3862 Include dependency files, when using GNU Make.
3864 2008-08-07 Ulrich Weigand <uweigand@de.ibm.com>
3866 * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with
3867 the valid bit set. Ensure display order respects partial
3868 order defined by dependency bits.
3870 2008-08-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3872 * solib-pa64.c (read_dld_descriptor): Return zero if load map is not
3875 2008-08-06 Mark Kettenis <kettenis@gnu.org>
3877 * i386obsd-nat.c (i386obsd_supply_pcb): Adjust for changes in
3880 2008-08-06 Vladimir Prus <vladimir@codesourcery.com>
3881 Tom Tromey <tromey@redhat.com>
3882 Thiago Jung Bauermann <bauerman@br.ibm.com>
3883 Doug Evans <dje@google.com>
3885 * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS,
3886 SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS,
3887 PYTHON_CFLAGS): New.
3888 (python_h, python_internal_h): New.
3889 (cli-script.o): Depend on python.h
3890 (python.o, python-utils.o): New.
3891 * cli/cli-script.c (print_command_lines): Handle python_control.
3892 (execute_control_command): Handle python_control.
3893 (execute_control_command_untraced): New function.
3894 (while_command): Call execute_control_command_untraced.
3895 (if_command): Likewise.
3896 (get_command_line): Remove static attribute.
3897 (read_next_line): Handle "python".
3898 (recurse_read_control_structure): Handle python_control.
3899 (read_command_lines): Handle python_control.
3901 * cli/cli-script.h (get_command_line): Add prototype.
3902 (execute_control_command_untraced): Likewise.
3903 * configure.ac: Add --with-python.
3904 * defs.h (enum command_control_type) <python_control>: New
3906 * python/python-internal.h: New file.
3907 * python/python.c: New file.
3908 * python/python.h: New file.
3909 * python/python-utils.c: New file.
3910 * NEWS: Mention Python scripting support and its new commands.
3912 2008-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3914 * spu-tdep.c (spu_gdbarch_init): Call set_gdbarch_frame_red_zone_size.
3916 2008-08-06 Phil Muldoon <pmuldoon@redhat.com>
3918 * MAINTAINERS (Write After Approval): Add self.
3920 2008-08-06 Phil Muldoon <pmuldoon@redhat.com>
3922 * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled.
3923 (insert_breakpoint_locations): Likewise.
3925 2008-08-05 Phil Muldoon <pmuldoon@redhat.com>
3927 * breakpoint.c (create_longjmp_breakpoint): Remove unused struct
3929 (set_longjmp_breakpoint): Likewise.
3931 2008-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3934 * solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are
3937 2008-08-05 Tom Tromey <tromey@redhat.com>
3939 * bcache.c (deprecated_bcache_added): Initialize obstack.
3940 (bcache_xmalloc): Don't initialize obstack.
3941 (bcache_xfree): Conditionally free obstack.
3942 (bcache_memory_used): Update.
3944 2008-08-05 Tom Tromey <tromey@redhat.com>
3946 * symfile.c (add_psymbol_to_bcache): Return a const pointer. Use
3948 (append_psymbol_to_list): Accept a const pointer.
3949 (add_psymbol_to_list): Fix const correctness.
3950 * bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove.
3951 (bcache_full): Declare.
3952 * bcache.c (bcache_data, deprecated_bcache): Remove.
3953 (bcache): Use bcache_full.
3954 (bcache_full): Rename from deprecated_bcache_added. Change return
3957 2008-08-04 Stan Shebs <stan@codesourcery.com>
3959 * solib-svr4.c (BKPT_AT_SYMBOL): Remove, always defined.
3960 (bkpt_names): Remove SOLIB_BKPT_NAME, never defined.
3961 (enable_break): Remove test of BKPT_AT_SYMBOL.
3963 2008-08-02 Keith Seitz <keiths@redhat.com>
3965 * acinclude.m4: Include ../config/tcl.m4 to pick up
3966 standard Tcl configury bits.
3967 Remove all Tcl, Tk, Itcl, Itk, etc definitions.
3968 * configure.ac: Don't check if ../itcl exists when building
3969 gdbtk. It could be installed.
3970 Rewrite gdbtk configury to allow for using system-supplied
3971 Tcl and Tk. Gdbtk no longer requires build-time access to
3973 * Makefile.in: Remove everything related to itcl and itk.
3974 Rewrite the Tcl bits for gdbtk to correspond to rewrite of
3976 Remove v850ice.o build rule.
3977 (ALL_TCL_CFLAGS): New convenience defintion. Change all
3978 gdbtk sources to use it.
3979 * configure: Regenerate.
3981 2008-07-31 Stan Shebs <stan@codesourcery.com>
3983 * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE.
3985 2008-07-30 Stan Shebs <stan@codesourcery.com>
3987 * objfiles.c (TARGET_KEEP_SECTION): Remove.
3988 (add_to_objfile_sections): Remove use.
3990 2008-07-29 Tom Tromey <tromey@redhat.com>
3992 * cli/cli-decode.c (lookup_cmd_1): Use memcpy.
3993 (lookup_cmd_composition): Likewise.
3995 2008-07-29 Tom Tromey <tromey@redhat.com>
3997 * cli/cli-cmds.c (edit_command): Remove unused variables. Delete
3998 dead code. Fix indentation.
4000 2008-07-29 Stan Shebs <stan@codesourcery.com>
4002 * main.c (captured_main): Remove long-unused #if 0 blocks.
4004 2008-07-28 Tom Tromey <tromey@redhat.com>
4006 * annotate.h (deprecated_annotate_starting_hook): Remove.
4007 (deprecated_annotate_stopped_hook): Remove.
4008 (deprecated_annotate_exited_hook): Remove.
4009 * Makefile.in (annotate.o): Depend on observer_h.
4010 * top.c (deprecated_delete_breakpoint_hook): Remove.
4011 (deprecated_create_breakpoint_hook): Likewise.
4012 (deprecated_modify_breakpoint_hook): Likewise.
4013 * interps.c (clear_interpreter_hooks): Update for removed hooks.
4014 * breakpoint.c (mention): Don't call removed hook.
4015 (delete_breakpoint): Likewise.
4016 (disable_breakpoint): Likewise.
4017 (do_enable_breakpoint): Likewise.
4018 * annotate.c: Include observer.h.
4019 (breakpoint_changed): Change type of argument.
4020 (_initialize_annotate): Register observers.
4021 (deprecated_annotate_starting_hook): Remove.
4022 (deprecated_annotate_stopped_hook): Remove.
4023 (deprecated_annotate_exited_hook): Remove.
4024 (annotate_starting): Update for hook removal.
4025 (annotate_stopped): Likewise.
4026 (annotate_exited): Likewise.
4027 * defs.h (deprecated_delete_breakpoint_hook): Remove.
4028 (deprecated_create_breakpoint_hook): Likewise.
4029 (deprecated_modify_breakpoint_hook): Likewise.
4031 2008-07-28 Tom Tromey <tromey@redhat.com>
4033 * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.
4035 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
4037 * configure.ac: Check for the GNU/Linux ptrace signature.
4038 * configure: Regenerated.
4040 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
4042 * linux-nat.c (resume_callback): Add more debugging output.
4043 (linux_nat_has_pending_sigint): New function, based on
4044 linux_nat_has_pending.
4045 (set_ignore_sigint, maybe_clear_ignore_sigint): New functions.
4046 (stop_wait_callback): Remove flush_mask handling. Honor
4047 ignore_sigint. Call maybe_clear_ignore_sigint. Pass NULL
4049 (linux_nat_has_pending, flush_callback): Remove.
4050 (linux_nat_filter_event): Check for ignore_sigint.
4051 (linux_nat_wait): Remove flush_mask support and call to
4052 flush_callback. Use set_ignore_sigint and maybe_clear_ignore_sigint.
4053 * linux-nat.h (struct lwp_info): Add ignore_sigint field.
4055 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
4057 * linux-nat.c (count_events_callback, select_event_lwp_callback): Only
4058 report events from resumed threads.
4060 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
4062 * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function.
4063 (mips_linux_init_abi): Set tdep->syscall_next_pc.
4064 * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to
4066 (mips32_next_pc): Handle the syscall instruction.
4067 * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New,
4068 from mips-tdep.c. Add syscall_next_pc to gdbarch_tdep.
4070 2008-07-26 Tom Tromey <tromey@redhat.com>
4073 * valops.c (value_struct_elt): Treat function-valued field as a
4076 2008-07-26 Tom Tromey <tromey@redhat.com>
4079 * macroexp.c (get_punctuator) <punctuators>: Rearrange to put
4080 longer tokens first.
4082 2008-07-26 Vladimir Prus <vladimir@codesourcery.com>
4085 * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok)
4086 (get_cmd_async_ok): Remove.
4087 * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove.
4088 * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok.
4089 * infcmd.c (_initialize_infcmd): Likewise.
4090 * thread.c (_initialize_thread): Likewise.
4092 2008-07-25 Joseph Myers <joseph@codesourcery.com>
4094 * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing
4095 128-bit long doubles in even-odd pairs of FPRs. Do not
4096 right-align float arguments for big-endian.
4097 (mips_n32n64_return_value): Apply return value convention for
4098 structs containing one or two floating-point values to soft-float
4099 as well as hard-float. Handle 128-bit long doubles in such
4101 (mips_o32_push_dummy_call): Only skip one integer register for a
4102 float argument passed in an FPR.
4104 2008-07-25 Tom Tromey <tromey@redhat.com>
4106 * tui/tui-hooks.c: Include observer.h.
4107 (tui_event_default, tui_old_event_hooks, tui_event_hooks):
4109 (tui_bp_created_observer, tui_bp_deleted_observer,
4110 tui_bp_modified_observer): New globals.
4111 (tui_install_hooks): Use observers, not events.
4112 (tui_remove_hooks): Likewise.
4113 * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h.
4114 (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New
4116 (breakpoint_notify): Check mi_can_breakpoint_notify.
4117 (breakpoint_hooks): Remove.
4118 (mi_cmd_break_insert): Attach observers. Don't use events.
4119 * tracepoint.c: Include observer.h, not gdb-events.h.
4120 (tracepoint_operation, trace_pass_command): Notify observer.
4121 * interps.c: Don't include gdb-events.h.
4122 (clear_interpreter_hooks): Don't call clear_gdb_event_hooks.
4123 * gdbarch.c: Rebuild.
4124 * gdbarch.sh: Emit include for observer.h, not gdb-events.h.
4125 (deprecated_current_gdbarch_select_hack): Notify observer.
4126 * breakpoint.h: Don't include gdb-events.h.
4127 * breakpoint.c: Don't include gdb-events.h.
4128 (condition_command): Notify observer.
4129 (commands_command): Likewise.
4130 (commands_from_control_command): Likewise.
4131 (mention, delete_breakpoint, set_ignore_count): Likewise.
4132 (disable_breakpoint, do_enable_breakpoint): Likewise.
4133 * Makefile.in (gdb_events_h): Remove.
4134 (breakpoint_h): Update.
4135 (COMMON_OBS): Remove gdb-events.o.
4136 (gdb-events.o): Remove.
4137 (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o,
4138 gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update.
4139 * gdb-events.c: Remove.
4140 * gdb-events.h: Remove.
4141 * gdb-events.sh: Remove.
4143 2008-07-24 Pedro Alves <pedro@codesourcery.com>
4145 * remote.c (remote_threads_extra_info): Don't query the remote
4146 server about info on the internally added main thread.
4148 2008-07-24 Aleksandar Ristovski <aristovski@qnx.com>
4150 * nto-procfs.c (procfs_attach): Populate initial thread list.
4151 (procfs_wait): Return new pid, built from the inferior status.
4153 2008-07-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
4155 * configure.ac (CONFIG_INITS): Delete long obsoleted variable.
4156 * configure: Regenerate.
4158 2008-07-23 Aleksandar Ristovski <aristovski@qnx.com>
4160 * nto-procfs.c (procfs_xfer_memory): Changed signature.
4161 (procfs_resume): Workaround for dereferencing type-punned pointer
4163 * nto-tdep.c (nto_parse_redirection): Change signature to be const
4165 * nto-tdep.h (nto_parse_redirection): Likewise.
4167 2008-07-21 Stan Shebs <stan@codesourcery.com>
4169 Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.
4170 * gdbarch.sh: Adjust comment to refer to
4171 in_solib_dynsym_resolve_code().
4172 * gdbarch.h, gdbarch.c: Update.
4173 * solib-osf.c: Ditto.
4175 (handle_inferior_event): Use in_solib_dynsym_resolve_code
4177 * config/mips/nm-irix5.h: Remove undef of
4178 IN_SOLIB_DYNSYM_RESOLVE_CODE.
4180 2008-07-21 Tom Tromey <tromey@redhat.com>
4182 * symfile.c (reread_symbols): Don't pass argument to observer.
4183 * exec.c (exec_file_attach): Don't pass argument to observer.
4184 * ada-lang.c (ada_executable_changed_observer): Remove argument.
4185 * symtab.c (symtab_observer_executable_changed): Remove argument.
4186 * observer.sh: Handle functions with no arguments.
4188 2008-07-20 Sergei Poselenov <sposelenov@emcraft.com>
4189 Chris Demetriou <cgd@google.com>
4191 * elfread.c (elf_symfile_segments): Fix the check that each loadable
4192 section fits within an ELF segment to handle ELF segments that hit
4193 the end of the address space.
4195 2008-07-20 Chris Demetriou <cgd@google.com>
4197 * MAINTAINERS (Write After Approval): Add self.
4199 2008-07-18 Tom Tromey <tromey@redhat.com>
4202 * NEWS: Add entry for macro commands.
4203 * Makefile.in (macrocmd.o): Add gdb_string.h.
4204 * macroscope.h (user_macro_scope): Declare.
4205 (default_macro_scope): Update documentation.
4206 (macro_user_macros): Declare.
4207 * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup.
4208 Use user_macro_scope.
4209 (null_macro_lookup): Remove.
4210 * macrotab.h (macro_callback_fn): Declare.
4211 (macro_for_each): Likewise.
4212 (macro_allow_redefinitions): Likewise.
4213 * macrotab.c (foreach_macro): New function
4214 (macro_for_each): Likewise.
4215 (struct macro_table) <redef_ok>: New field.
4216 (macro_allow_redefinitions): New function.
4217 (new_macro_table): Update.
4218 (macro_define_function): Likewise.
4219 (macro_define_object): Likewise.
4220 * macroscope.c (user_macro_scope): New function.
4221 (default_macro_scope): Use it.
4222 (macro_user_macros): New global.
4223 (standard_macro_lookup): Look in macro_user_macros.
4224 (_initialize_macroscope): New function.
4225 * macroexp.h (macro_is_whitespace, macro_is_digit,
4226 macro_is_identifier_nondigit): Declare.
4227 * macroexp.c (macro_is_whitespace): Rename. No longer static.
4228 (macro_is_digit): Likewise.
4229 (macro_is_identifier_nondigit): Likewise.
4230 (get_identifier): Update.
4231 (get_pp_number): Likewise.
4232 (get_token): Likewise.
4233 * macrocmd.c (skip_ws): New function.
4234 (extract_identifier): Likewise.
4235 (free_macro_definition_ptr): Likewise.
4236 (user_macros): Remove.
4237 (macro_define_command): Implement.
4238 (_initialize_macrocmd): Update.
4239 (macro_undef_command): Implement.
4240 (print_one_macro): New function.
4241 (macro_list_command): Implement.
4243 2008-07-18 Joseph Myers <joseph@codesourcery.com>
4245 * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl
4247 * configure: Regenerate.
4249 2008-07-17 Paul Pluzhnikov <ppluzhnikov@google.com>
4251 * auxv.c (fprint_target_auxv): Stop at AT_NULL.
4253 2008-07-15 Andreas Schwab <schwab@suse.de>
4255 * valops.c (value_cast_pointers): Follow typedefs when checking
4258 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4260 * block.c (block_function): Renamed to ...
4261 (block_linkage_function): ... this. All callers changed.
4262 * block.h (block_function): Renamed to ...
4263 (block_linkage_function): ... this.
4265 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4267 * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned.
4269 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4271 * frame.c (frame_sp_unwind): Delete.
4272 (get_frame_sp): Do not use it.
4273 * frame.h (frame_sp_unwind): Delete prototype.
4275 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4277 * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc.
4279 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4281 * dwarf2-frame.c (dwarf2_frame_cache): Update comment.
4282 * frame.c (frame_unwind_address_in_block): Delete.
4283 (get_frame_address_in_block): Do not use it. Check the type
4284 of the next frame first.
4285 (frame_cleanup_after_sniffer): Update comment.
4286 * frame.h (frame_unwind_address_in_block): Delete prototype.
4287 * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment.
4289 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4291 * frame.c (frame_func_unwind): Delete.
4292 (get_frame_func): Do not use it.
4293 * frame.h (frame_func_unwind): Delete prototype.
4294 * hppa-tdep.c (hppa_frame_cache): Update comment.
4295 * rs6000-tdep.c (rs6000_frame_cache): Update comment.
4297 2008-07-14 Stan Shebs <stan@codesourcery.com>
4299 * remote-sim.c (init_gdbsim_ops): Remove
4300 TARGET_REDEFINE_DEFAULT_OPS.
4302 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4304 * findvar.c (read_var_value): Remove unused variable.
4306 2008-07-15 Luis Machado <luisgpm@br.ibm.com>
4308 * infrun.c (handle_inferior_event): Tag threads as stopped
4309 before inserting breakpoints.
4311 2008-07-15 Hui Zhu <teawater@gmail.com>
4313 * MAINTAINERS: Added myself to section Write After Approval.
4315 2008-07-14 Paul Pluzhnikov <ppluzhnikov@google.com>
4318 * cp-abi.c (value_virtual_fn_field): Handle invalid pointers.
4320 2008-07-14 Pedro Alves <pedro@codesourcery.com>
4322 * i386-dicos-tdep.c (i386_dicos_frame_align): Delete.
4323 (i386_dicos_push_dummy_code): New.
4324 (i386_dicos_init_abi): Don't register i386_dicos_frame_align.
4325 Register i386_dicos_push_dummy_code.
4327 2008-07-14 Markus Deuling <deuling@de.ibm.com>
4329 * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter.
4330 (mips_n32n64_push_dummy_call, mips_o64_return_value)
4331 (mips_eabi_push_dummy_call): Update call to fp_register_arg_p.
4333 (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch.
4334 (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command)
4335 (mips_n32n64_fp_arg_chunk_p): Update caller.
4337 (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter.
4338 (mips_n32n64_push_dummy_call): Update caller.
4340 (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace
4342 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4343 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller.
4346 (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace
4348 (mips_eabi_push_dummy_call, mips_o32_push_dummy_call)
4349 (mips_o64_push_dummy_call): Update caller.
4351 (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch.
4352 (fp_register_arg_p, mips_dump_tdep): Update caller.
4354 (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch.
4355 (mips16_scan_prologue, mips32_scan_prologue): Update caller.
4357 (reset_saved_regs): Make static. Add gdbarch as parameter. Replace
4359 (mips32_scan_prologue): Update caller.
4361 (heuristic_proc_start): Add gdbarch as parameter. Replace
4363 (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller.
4365 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
4366 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
4367 the current architecture. Update call to getregs_supplies.
4368 (getregs_supplies): Add gdbarch as parameter and replace
4371 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to
4372 get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and
4373 NBSD_MIPS_JB_ELEMENT_SIZE.
4374 (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and
4375 replace current_gdbarch.
4377 * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace
4379 (mips_fetch_registers, mips_store_registers): Update call
4381 (mips_load): Use get_regcache_arch to get at the current_architecture
4382 and replace current_gdbarch.
4384 2008-07-13 Pedro Alves <pedro@codesourcery.com>
4386 * thread.c (restore_selected_frame): On fail to restore, select
4387 the innermost frame, and don't crash when warning the user.
4389 2008-07-13 Hui Zhu <teawater@gmail.com>
4391 * symtab.c (expand_line_sal): Fix a memory leak.
4393 2008-07-13 Pedro Alves <pedro@codesourcery.com>
4395 * utils.c (struct continuation): Define as inheriting struct
4397 (add_continuation, do_all_continuations)
4398 (discard_all_continuations, add_intermediate_continuation)
4399 (do_all_intermediate_continuations)
4400 (discard_all_intermediate_continuations): Adjust.
4402 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
4404 Skip varobj in running threads.
4405 * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's
4406 thread is not stopped, skip the varobj.
4407 * Makefile.in: Update dependencies.
4409 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
4411 Enable all commands while inferiour is running
4412 * mi/mi-main.c (mi_cmd_execute): Don't check if
4413 inferiour is executing.
4415 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
4417 Allow all CLI command even if target is executing.
4418 * gdb/top.c (execute_command_1): Don't check if the inferiour
4421 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
4423 * mi/mi-main.c (mi_cmd_execute): Remove unused variable.
4424 Fix printing of frame, when frame is wrong.
4426 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
4428 * spu-tdep.c (spu_frame_unwind_cache): Do not error if
4429 backchain is unreadable.
4431 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
4433 * spu-linux-nat.c: Include "gdbthread.h".
4434 (spu_child_post_startup_inferior): Register main thread.
4435 (spu_child_post_attach): Likewise.
4436 * Makefile.in (spu-linux-nat.o): Update dependencies.
4438 2008-07-12 Pedro Alves <pedro@codesourcery.com>
4440 Rewrite continuations internals on top of cleanups and plug
4441 continuation arguments leaks.
4443 * defs.h (struct continuation): Make it opaque.
4444 (add_continuation, add_intermediate_continuation): Drop the int
4445 argument of the continuation hook argument. Add
4446 continuation_free_args argument.
4447 (do_all_continuations, do_all_intermediate_continuations): Drop
4448 the error_p argument.
4450 * utils.c (add_continuation): Drop the int argument of the
4451 continuation hook argument. Add continuation_free_args argument.
4452 Reimplement on top of cleanups.
4453 (do_all_continuations): Drop error argument. Reimplement on top
4455 (discard_all_continuations): Reimplement on top of cleanups.
4456 (add_intermediate_continuation): Drop the int argument of the
4457 continuation hook argument. Add continuation_free_args argument.
4458 Reimplement on top of cleanups.
4459 (do_all_intermediate_continuations): Drop error argument.
4460 Reimplement on top of cleanups.
4461 (discard_all_intermediate_continuations): Reimplement on top of
4464 * breakpoint.c (until_break_command_continuation): Drop error
4465 argument. Add xfree as continuation argument deleter.
4467 * inf-loop.c (inferior_event_handler): On error, discard all
4468 continuations. Adjust to new do_all_intermediate_continuations
4469 and do_all_continuations interfaces.
4471 * infcmd.c (step_1_continuation): Drop error_p argument. Adjust.
4472 Pass xfree as continuation argument deleter.
4473 (finish_command_continuation): Drop error_p argument. Adjust.
4474 (finish_command_continuation_free_arg): New.
4475 (finish_command): Pass finish_command_continuation_free_arg as
4476 continuation argument deleter. Adjust to new do_all_continuations
4478 (attach_command_continuation): Drop error_p argument.
4479 (attach_command_continuation_free_args): New.
4480 (attach_command): Pass attach_command_continuation_free_args as
4481 continuation argument deleter.
4483 * interps.c (interp_set): Adjust to new do_all_continuations
4486 * event-top.c (stdin_event_handler): In error, also discard the
4487 intermediate continuations.
4489 2008-07-12 Pedro Alves <pedro@codesourcery.com>
4491 Replace struct continuation_args by void* and per command structs.
4493 * top.c (execute_command): Remove unused arg1 and arg2 locals.
4495 * breakpoint.c (struct until_break_command_continuation_args):
4497 (until_break_command_continuation): Take a void* instead of a
4498 continuations_arg. Adjust.
4499 (until_break_command): Adjust to use struct
4500 until_break_command_continuation_args instead of struct
4503 * infcmd.c (struct step_1_continuation_args): New.
4504 (step_1_continuation): Take a void* instead of a
4505 continuations_arg. Adjust to use struct step_1_continuation_args.
4506 (step_once): Adjust to use struct step_1_continuation_args.
4508 (struct finish_command_continuation_args): New.
4509 (finish_command_continuation): Take a void* instead of a
4510 continuations_arg. Adjust to use struct
4511 finish_command_continuation_args.
4512 (finish_command): Adjust to use struct
4513 finish_command_continuation_args.
4514 (struct attach_command_continuation_args): New.
4515 (attach_command_continuation): Take a void* instead of a
4516 continuations_arg. Adjust to use struct
4517 attach_command_continuation_args.
4518 (attach_command): Adjust to use struct
4519 attach_command_continuation_args.
4521 * defs.h (struct continuation_arg): Delete.
4522 (struct continuation): Replace the struct continuation_arg*
4523 parameter of continuation_hook by a void*. Replace "arg_list"
4524 member by a new "args" member with void* type.
4525 (add_continuation, add_intermediate_continuation): Replace struct
4526 continuation_arg type usages by void* usages.
4528 * utils.c (add_continuation, do_all_continuations)
4529 (add_intermediate_continuation)
4530 (do_all_intermediate_continuations): Replace struct
4531 continuation_arg type usages by void* usages. Pass "args" instead
4534 2008-07-12 Pedro Alves <pedro@codesourcery.com>
4536 * infrun.c (struct thread_stepping_state): Delete sal member.
4537 (init_thread_stepping_state): Add local sal. Use it instead of
4539 (handle_inferior_event): New local stop_pc_sal. Use it instead of
4541 (step_into_function): Add local stop_func_sal. Use it instead of
4544 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
4546 Implement -exec-continue/-exec-interrupt --all.
4547 * infcmd.c (continue_1): New, extracted from
4548 (continue_command): ...here.
4549 (interrupt_target_1): New, extracted from
4550 (interrupt_target_command): ...here.
4551 * inferior.h (continue_1, interrupt_target_1): New.
4552 * mi/mi-main.c (mi_cmd_exec_continue)
4553 (mi_cmd_exec_interrupt): Handle --all.
4555 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
4557 Implement --thread and --frame.
4558 * gdbthread.h (find_thread_id): Declare.
4559 * thread.c (find_thread_id): Make non-static.
4560 * mi/mi-main.c (mi_cmd_execute): Switch to the right
4561 thread and frame, if necessary.
4562 * mi/mi-parse.c (mi_parse): Handle --thread and --frame.
4563 * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
4565 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
4567 * infrun.c (resume): Discard cleanups on early exit path.
4569 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
4571 * infrun.c (normal_stop): For MI, report which threads
4574 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
4576 Report thread state in -thread-info output.
4577 * thread.c (print_thread_info): Add new field "state".
4579 2008-07-11 Pedro Alves <pedro@codesourcery.com>
4581 * infrun.c (handle_inferior_event): Also ignore a
4582 TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP.
4584 2008-07-11 Tom Tromey <tromey@redhat.com>
4586 * completer.c (complete_line_internal): New function, from
4587 complete_line. Add 'for_help' parameter.
4588 (complete_line): Use it.
4589 (command_completer): Move later. Rewrite.
4591 2008-07-11 Pedro Alves <pedro@codesourcery.com>
4593 * thread.c (thread_apply_command): Move making the cleanup out of
4596 2008-07-11 Pedro Alves <pedro@codesourcery.com>
4600 * thread.c (enum thread_state): New.
4601 (thread_state main_thread_running): Delete, in favor of...
4602 (thread_state main_thread_state): ... this. Update throughout.
4603 (clear_thread_inferior_resources): New, split from free_thread.
4604 (free_thread): Call clear_thread_inferior_resources.
4605 (init_thread_list): Set main thread to stopped state.
4606 (add_thread_silent): Take care of PTID reuses.
4607 (delete_thread): If deleting inferior_ptid or a thread with
4608 refcount > 0, mark it as exited, but still keep it in the list.
4609 Only notify of thread exits, if we haven't done so yet.
4610 (iterate_over_threads): Make it safe to delete threads while
4611 iterating over them.
4612 (do_captured_list_thread_ids): Don't account for exited threads.
4613 (thread_alive): Check for the THREAD_EXITED state, and don't set
4614 ptid to -1 on exited threads.
4615 (set_running): Update to account for extra possible states.
4616 (is_thread_state): New.
4617 (is_stopped, is_exited): New.
4618 (is_running): Implement in terms of is_thread_state.
4619 (any_running): Update.
4620 (print_thread_info): Update. Account for exited threads. Don't
4621 warn about missed frame restoring here, its done in the cleanup.
4622 (switch_to_thread): Don't read from a thread that has gone.
4623 (restore_current_thread): In non-stop mode, do a full context
4625 (restore_selected_frame): Add a frame_level argument. Rewrite.
4626 (struct current_thread_cleanup): Add selected_frame_level and
4627 was_stopped members.
4628 (do_restore_current_thread_cleanup): Check if thread was stopped
4629 and still is, and if the target has registers, stack and memory
4630 before restoring the selected frame. Don't delete the cleanup
4632 (restore_current_thread_cleanup_dtor): New.
4633 (make_cleanup_restore_current_thread): Remove all arguments.
4635 (thread_apply_all_command): Update. Prune threads.
4636 (thread_apply_command): Update.
4637 (thread_command): Account for currently selected exited thread.
4638 (do_captured_thread_select): Check for a running thread. Prune
4640 (_initialize_thread): Make "info threads", "thread", "thread
4641 apply", and "thread apply all" appliable without a selected thread.
4642 * gdbthread.h (struct thread_info): Replace running_ by state_.
4644 (is_exited, is_stopped): Declare.
4645 (make_cleanup_restore_current_thread): Remove all arguments.
4646 * infrun.c: Include "event-top.h".
4647 (fetch_inferior_event): In non-stop mode, restore selected thread
4648 and frame after handling the event and running breakpoint
4649 commands. Display GDB prompt if needed.
4650 (normal_stop): In non-stop mode, don't print thread switching
4652 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
4653 (get_cmd_no_selected_thread_ok): New.
4654 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New.
4655 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
4657 * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as
4658 no-selected-thread ok.
4659 * top.c (execute_command): Check for non no-selected-thread-ok
4661 * linux-nat.c (struct saved_ptids, threads_to_delete)
4662 (record_dead_thread, prune_lwps): Delete.
4663 (exit_lwp): Unconditionally delete thread.
4664 (linux_nat_resume): Remove prune_lwps call.
4665 * infcmd.c (proceed_thread_callback): Check if !is_stopped instead
4666 of is_running. Adjust to make_cleanup_restore_current_thread
4668 * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the
4669 selected thread has exited.
4670 * inf-loop.c (inferior_event_handler): Don't display the prompt
4672 * varobj.c (c_value_of_root): Update.
4673 * defs.h (make_cleanup_dtor): Declare.
4674 * utils.c (make_cleanup_dtor): New.
4676 * Makefile.in (infrun.o): Depend on $(event_top_h).
4678 2008-07-11 Pedro Alves <pedro@codesourcery.com>
4680 Add "continue -a" and "interrupt -a" options for non-stop mode.
4682 * infcmd.c (proceed_thread_callback, do_context_switch_to): New.
4683 (continue_command): Add "-a" option.
4684 (interrupt_target_command): Add "-a" option.
4685 (_initialize_infcmd): Add extend help of continue and interrupt
4686 command to mention the new "-a" option. Mark "continue" async ok.
4688 2008-07-10 Doug Evans <dje@google.com>
4690 Add "set print symbol-loading on|off".
4691 * NEWS: Document new option.
4692 * symfile.h (print_symbol_loading): Declare.
4693 * symfile.c (print_symbol_loading): New global.
4694 (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols
4695 from ..." if print_symbol_loading.
4696 (_initialize_symfile): Add set/show print symbol-loading.
4697 * solib.c (solib_read_symbols): Only print "Loaded symbols for ..."
4698 if print_symbol_loading.
4700 2008-07-10 Pedro Alves <pedro@codesourcery.com>
4702 Non-stop linux native.
4704 * linux-nat.c (linux_test_for_tracefork): Block events while we're
4706 (get_pending_status): Implement non-stop mode.
4707 (linux_nat_detach): Stop threads before detaching.
4708 (linux_nat_resume): In non-stop mode, always resume only a single
4710 (linux_handle_extended_wait): On a clone event, in non-stop mode,
4711 add new lwp to GDB's thread table, and mark as running, executing
4712 and stopped appropriately.
4713 (linux_nat_filter_event): Don't assume there are other running
4714 threads when a thread exits.
4715 (linux_nat_wait): Mark the main thread as running and executing.
4716 In non-stop mode, don't stop all lwps.
4717 (linux_nat_kill): Stop lwps before killing them.
4718 (linux_nat_thread_alive): Use signal 0 to detect if a thread is
4720 (send_sigint_callback): New.
4721 (linux_nat_stop): New.
4722 (linux_nat_add_target): Set to_stop to linux_nat_stop.
4724 * linux-nat.h (thread_db_attach_lwp): Declare.
4726 * linux-thread-db.c (thread_get_info_callback): Check for new
4727 threads if we have none.
4728 (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the
4729 stopped lwp. Check for new threads if we have none.
4730 (thread_db_attach_lwp): New.
4731 (thread_db_init): Set proc_handle.pid to inferior_ptid.
4732 (check_event): Set proc_handle.pid to the stopped lwp.
4733 (thread_db_find_new_threads): Set proc_handle.pid to any stopped
4734 lwp available, bail out if there is none.
4736 * linux-fork.c (linux_fork_killall): Use SIGKILL instead of
4739 2008-07-10 Kevin Buettner <kevinb@redhat.com>
4741 * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
4742 `current_pc' from CORE_ADDR to ULONGEST.
4744 * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
4747 2008-07-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4749 * NEWS (New commands): Mention "set disable-randomization".
4750 * configure.ac: Add check for HAVE_PERSONALITY and
4751 HAVE_DECL_ADDR_NO_RANDOMIZE.
4752 * configure, config.in: Regenerate.
4753 * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
4754 [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
4756 (disable_randomization, show_disable_randomization)
4757 (set_disable_randomization): New.
4758 (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
4759 PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the
4760 variable DISABLE_RANDOMIZATION.
4761 (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
4762 DISABLE_RANDOMIZATION.
4764 2008-07-09 Pedro Alves <pedro@codesourcery.com>
4766 Adjust all targets to new target_stop interface.
4768 * gnu-nat.c (gnu_stop): Add ptid argument.
4769 * go32-nat.c (go32_stop): Add ptid argument.
4770 (go32_create_inferior): Pass inferior_ptid to go32_stop.
4771 * hpux-thread.c (hpux_thread_stop): Add ptid argument.
4772 * monitor.c (monitor_stop): Add ptid argument.
4773 (monitor_open): Pass inferior_ptid to monitor_stop.
4774 (monitor_interrupt): Pass inferior_ptid to target_stop.
4775 (monitor_stop): Add ptid argument.
4776 * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
4777 (procfs_create_inferior): Add ptid argument.
4778 * procfs.c (procfs_stop): Add ptid argument.
4779 * remote-m32r-sdi.c (m32r_stop): Add ptid argument.
4780 * remote-sim.c (gdbsim_stop): Add ptid argument.
4781 * sol-thread.c (sol_thread_stop): Add ptid argument.
4782 * win32-nat.c (win32_stop): Add ptid argument.
4784 2008-07-09 Pedro Alves <pedro@codesourcery.com>
4786 Non-stop inferior control.
4788 * infrun.c (resume): In non-stop mode, always resume just one
4790 (proceed): Don't call prepare_to_proceed in non-stop mode.
4791 (fetch_inferior_event): In non-stop mode, switch context before
4793 (error_is_running, ensure_not_running): New.
4794 (handle_inferior_event): In non-stop mode: Mark only the event
4795 thread as stopped. Require that the target module manages adding
4796 threads to the thread list. Assert that there isn't a
4797 deferred_step_ptid set. Don't switch to infwait_thread_hop_state.
4798 (normal_stop): Only mark not-running if inferior hasn't exited.
4799 In non-stop mode, only mark the event thread.
4801 * thread.c:Include "cli/cli-decode.h".
4802 (print_thread_info): Don't read from a running thread.
4803 Output "(running)" if thread is running.
4804 (switch_to_thread): Don't read stop_pc if thread is executing.
4805 (do_restore_current_thread_cleanup): Don't write to a running
4807 (thread_apply_all_command): Don't read from a running thread. In
4808 non-stop mode, do a full context-switch instead of just switching
4810 (thread_apply_command): In non-stop mode, do a full context-switch
4811 instead of just switching threads.
4812 (do_captured_thread_select): Likewise. Inform user if selected
4814 (_initialize_thread): Mark "info threads" and "thread" and
4817 * inf-loop.c (inferior_event_handler): In non-stop mode, don't
4818 unregister the target from the event loop.
4820 * infcmd.c (continue_command, step_1, jump_command)
4821 (signal_command): Ensure the selected thread isn't running.
4822 (interrupt_target_command): In non-stop mode, interrupt only the
4825 * inferior.h (error_is_running, ensure_not_running): Declare.
4827 * target.h (struct target_ops): Add ptid argument to the to_stop
4829 (target_stop): Add ptid_t argument.
4831 * target.c (update_current_target): Add ptid argument to to_stop's
4833 (debug_to_stop): Add ptid_t argument.
4834 (debug_to_rcmd): Set to_stop_ptid.
4836 * remote.c (remote_stop): Add ptid_t argument.
4837 (async_remote_interrupt): Add inferior_ptid to target_stop.
4838 * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
4840 * Makefile.in (thread.o): Depend on $(cli_decode_h).
4842 2008-07-09 Pedro Alves <pedro@codesourcery.com>
4844 Don't rely on ecs->wait_for_more.
4846 * infrun.c (proceed): Clear the stepping state, set
4847 previous_inferior_ptid and clear infwait state.
4848 (wait_for_inferior): Don't clear the stepping state, set
4849 previous_inferior_ptid, or clear the infwait state here.
4850 (fetch_inferior_event): Don't clear the stepping state, set
4851 previous_inferior_ptid, or clear the infwait state here. Don't
4852 condition on wait_for_more.
4854 2008-07-09 Pedro Alves <pedro@codesourcery.com>
4856 Refactor infrun a bit.
4858 * infrun.c (currently_stepping): Take a struct
4859 thread_stepping_state instead of an execution_control_state.
4860 (struct thread_stepping_state): New, split from
4861 execution_control_state.
4862 (gtss, tss): New globals.
4863 (proceed): Clear the stepping state, set previous_inferior_ptid
4864 and clear infwait state.
4865 (init_wait_for_inferior): Clear the stepping state,
4866 previous_inferior_ptid and infwait state.
4867 (waiton_ptid, infwait_state): New, split from
4868 execution_control_state.
4869 (struct execution_control_state): Members that persist through
4870 events moved out to either struct thred_stepping_state or made
4871 global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
4872 (wait_for_inferior, fetch_inferior_event): Use local
4873 execution_control_state. Update to execution_control_state split.
4874 (init_execution_control_state): Adjust.
4875 (init_thread_stepping_state): New, extracted from
4876 init_execution_control_state.
4877 (context_switch): Take a ptid instead of an
4878 execution_control_state.
4879 (context_switch_to): Adjust.
4880 (adjust_pc_after_break): Adjust.
4881 (init_infwait_state): New.
4882 (handle_inferior_event): Adjust.
4884 2008-07-09 Pedro Alves <pedro@codesourcery.com>
4885 Vladimir Prus <vladimir@codesourcery.com>
4887 Per-thread commands.
4889 * gdbthread.h: Remove unneeded forward declarations.
4890 Include "inferior.h".
4891 (struct thread_info): Add continuations,
4892 intermediate_continuations, proceed_to_finish, step_over_calls,
4893 stop_step, step_multi and stop_signal members.
4894 (save_infrun_state): Add continuations,
4895 intermediate_continuations, proceed_to_finish, step_over_calls,
4896 stop_step, step_multi, stop_signal and stop_bpstat parameters.
4897 (load_infrun_state): Add continuations,
4898 intermediate_continuations, proceed_to_finish, step_over_calls,
4899 stop_step, step_multi, stop_signal and stop_bpstat parameters.
4901 * thread.c (load_infrun_state): In non-stop mode, load
4902 continuations, intermediate_continuations, proceed_to_finish,
4903 step_over_calls, stop_step, step_multi and stop_signal.
4904 (save_infrun_state): Store continuations,
4905 intermediate_continuations, proceed_to_finish, step_over_calls,
4906 stop_step, step_multi, stop_signal and stop_bpstat.
4907 (save_infrun_state): Store continuations,
4908 intermediate_continuations, proceed_to_finish, step_over_calls,
4909 stop_step, step_multi, stop_signal and stop_bpstat.
4910 (free_thread): Clear The thread's stop_bpstat.
4912 * inferior.h (context_switch_to): Declare.
4914 * infrun.c (ecss): New global.
4915 (context_switch): Context switch continuations,
4916 intermediate_continuations, proceed_to_finish, step_over_calls,
4917 stop_step, step_multi, stop_signal and stop_bpstat.
4918 (wait_for_inferior): Use global ecss.
4919 (async_ecss, async_ecs): Delete.
4920 (fetch_inferior_event): Use global ecss.
4921 (context_switch_to): New.
4923 * top.c (execute_command): In non-stop, only check if the current
4924 thread is running, in all-stop, check if there's any thread
4927 * breakpoint.c (bpstat_remove_breakpoint): New.
4928 (bpstat_remove_breakpoint_callback): New.
4929 (delete_breakpoint): Clear the stop_bpstats of all threads.
4931 * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
4932 current thread is running, in all-stop, check if there's any
4935 * Makefile.in (gdbthread_h): Depend on $(inferior_h).
4937 2008-07-09 Pedro Alves <pedro@codesourcery.com>
4939 Add non_stop global.
4941 * inferior.h (non_stop): Declare.
4942 * infrun.c (non_stop, non_stop_1): New.
4943 (set_non_stop, show_non_stop): New.
4944 (_initialize_infrun): Add "set/show non-stop" command.
4946 2008-07-09 Pedro Alves <pedro@codesourcery.com>
4948 Adjust fork/vfork/exec to pass ptids around.
4950 * target.h (struct target_waitstatus): Store related_pid as a ptid.
4951 (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
4953 * breakpoint.h (struct breakpoint): Change forked_inferior_pid
4955 * breakpoint.c (print_it_typical, bpstat_check_location)
4956 (print_one_breakpoint_location, set_raw_breakpoint_without_location)
4957 (create_fork_vfork_event_catchpoint): Adjust.
4958 * infrun.c (fork_event): Change parent_pid and child_pid types to
4960 (follow_exec, inferior_has_forked, inferior_has_vforked)
4961 (inferior_has_execd): Take a ptid_t and don't trim it.
4962 * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
4963 * linux-nat.c (linux_child_follow_fork): Adjust.
4964 * inf-ptrace.c (inf_ptrace_wait): Adjust.
4965 * inf-ttrace.c (inf_ttrace_wait): Adjust.
4966 * win32-nat.c (get_win32_debug_event): Don't set related_pid.
4968 2008-07-09 Pedro Alves <pedro@codesourcery.com>
4970 Add "executing" property to threads.
4972 * inferior.h (target_executing): Delete.
4973 * gdbthread.h (struct thread_info): Add executing_ field.
4974 (set_executing, is_executing): New.
4975 * thread.c (main_thread_executing): New.
4976 (init_thread_list): Clear it and also main_thread_running.
4977 (is_running): Return false if target has no execution.
4978 (any_running, is_executing, set_executing): New.
4980 * top.c: Include "gdbthread.h".
4981 (target_executing): Delete.
4982 (execute_command): Replace target_executing check by any_running.
4983 * event-top.c: Include "gdbthread.h".
4984 (display_gdb_prompt, command_handler): Replace target_executing by
4986 * inf-loop.c: Include "gdbthread.h". Don't mark as not executing
4987 here. Replace target_executing by is_running.
4988 * infrun.c (handle_inferior_event): Mark all threads as
4990 * linux-nat.c (linux_nat_resume): Don't mark thread as executing
4992 * stack.c (get_selected_block): Return null if inferior is
4994 * target.c (target_resume): Mark resumed ptid as executing.
4995 * breakpoint.c (until_break_command): Replace target_executing
4996 check by is_executing.
4997 * remote.c (remote_async_resume): Don't mark inferior as executing
4999 * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
5002 * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
5003 (mi_execute_async_cli_command): Replace target_executing by
5006 * frame.c (get_current_frame): Error out if the current thread is
5008 (has_stack_frames): New.
5009 (get_selected_frame, deprecated_safe_get_selected_frame): Check
5012 * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
5015 2008-07-09 Pedro Alves <pedro@codesourcery.com>
5017 * symfile.c (load_command): Reopen the exec file and reread
5018 symbols before anything else.
5020 2008-07-09 Pedro Alves <pedro@codesourcery.com>
5022 * remote-sim.c: Include gdbthread.h.
5023 (remote_sim_ptid): New global.
5024 (gdbsim_create_inferior): Silently add the main task to GDB's
5026 (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
5027 task from GDB's thread list.
5028 (gdbsim_resume): Adjust to use remote_sim_ptid.
5029 (gdbsim_thread_alive, gdbsim_pid_to_str): New.
5030 (init_gdbsim_ops): Register gdbsim_thread_alive and
5032 (_initialize_remote_sim): Initialize remote_sim_ptid.
5033 * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
5035 2008-07-09 Pedro Alves <pedro@codesourcery.com>
5037 * monitor (monitor_ptid): New global.
5038 (monitor_open): Silently add the main task to GDB's thread list.
5039 (monitor_close, monitor_mourn_inferior): Silently delete the main
5040 task from GDB's thread list.
5041 (monitor_thread_alive, monitor_pid_to_str): New.
5042 (init_base_monitor_ops): Register monitor_thread_alive and
5044 (_initialize_remote_monitors): Initialize monitor_ptid.
5046 * gdbthread.h (delete_thread_silent): Declare.
5047 * thread.c (delete_thread): Rename to ...
5048 (delete_thread_1): ... this. Add "silent" parameter. If silent,
5049 don't do exit notifications.
5050 (delete_thread, delete_thread_silent): New, as wrappers to
5053 2008-07-08 Pedro Alves <pedro@codesourcery.com>
5055 * breakpoint.c (update_global_location_list): Add boolean
5056 "should_insert" argument. Only insert locations if caller told it
5058 (update_global_location_list_nothrow): Add boolean "should_insert"
5059 argument. Pass it to update_global_location_list.
5060 (insert_breakpoints, create_longjmp_breakpoint)
5061 (create_overlay_event_breakpoint, enable_overlay_breakpoints)
5062 (create_thread_event_breakpoint, create_solib_event_breakpoint)
5063 (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
5064 (enable_watchpoints_after_interactive_call_stop)
5065 (set_momentary_breakpoint, create_breakpoints)
5066 (break_command_really, watch_command_1)
5067 (create_ada_exception_breakpoint, update_breakpoint_locations)
5068 (do_enable_breakpoint, enable_command): Pass true to
5069 update_global_location_list.
5070 (bpstat_stop_status, disable_overlay_breakpoints)
5071 (disable_watchpoints_before_interactive_call_start)
5072 (delete_breakpoint, disable_breakpoint, disable_command): Pass
5073 false to update_global_location_list.
5074 (update_breakpoints_after_exec): Don't temporarily disable
5075 always-inserted mode.
5077 2008-07-08 Pedro Alves <pedro@codesourcery.com>
5079 * breakpoint.c (mark_breakpoints_out): Make public.
5080 (update_breakpoints_after_exec): Don't call mark_breakpoints_out
5081 here. Update comment.
5082 * breakpoint.h (mark_breakpoints_out): Declare.
5084 * linux-nat.c (linux_handle_extended_wait): On
5085 TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
5086 * inf-ttrace.c (inf_ttrace_wait): Likewise.
5088 2008-07-08 Pedro Alves <pedro@codesourcery.com>
5090 * infrun.c (follow_exec): Reset shared libraries before adding the
5093 2008-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5095 * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
5097 2008-07-07 Pedro Alves <pedro@codesourcery.com>
5099 * i386-dicos-tdep.c: Include "inferior.h".
5100 (i386_dicos_frame_align): New.
5101 (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call
5102 dummy location ON_STACK.
5103 * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
5105 2008-07-07 Joel Brobecker <brobecker@adacore.com>
5107 * gstdint.h: New file.
5109 2008-07-05 Vladimir Prus <vladimir@codesourcery.com>
5111 * mi/mi-interp.c (mi_on_resume): Don't try to report
5112 resumed thread it the thread list is empty.
5114 2008-07-05 Pierre Muller <muller@ics.u-strasbg.fr>
5116 * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
5117 completer for set to filename_completer.
5121 2008-07-04 Vladimir Prus <vladimir@codesourcery.com>
5123 Implement -target-attach.
5124 * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
5126 2008-06-21 Hui Zhu <teawater@gmail.com>
5128 * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
5130 2008-07-03 Pedro Alves <pedro@codesourcery.com>
5132 * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
5133 * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
5135 * target.h (struct target_ops): Add to_attach_no_wait member.
5136 (target_attach_no_wait): New.
5137 * target.c (update_current_target): Inherit to_attach_no_wait.
5139 * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
5140 target_attach_no_wait runtime check.
5142 * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
5143 * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
5146 2008-07-03 Pedro Alves <pedro@codesourcery.com>
5148 * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
5149 on debug_displaced being set.
5151 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
5153 * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
5154 directly instead of get_frame_id.
5156 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
5158 * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
5159 (deal_with_atomic_sequence): Update BC masks.
5160 (rs6000_gdbarch_init): Init displaced stepping infra-structure.
5161 Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
5163 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
5165 * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
5166 register, not the previous frame's.
5168 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
5170 * source.c (select_source_symtab): Make sure we skip namespace
5171 symtabs when showing cpp source code.
5173 2008-06-30 Hans-Peter Nilsson <hp@axis.com>
5175 * MAINTAINERS (Authorized committers): Fix my email address.
5177 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
5179 * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
5180 -target-download and -target-select via CLI, so that
5181 the quoting rules are the same as they were (unfortunately)
5182 in all prior gdb releases.
5183 * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
5184 (mi_cmd_target_download, mi_cmd_target_select): Remove.
5185 * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
5186 (mi_cmd_target_download, mi_cmd_target_select): Remove.
5187 (mi_cmd_execute): Set current_token even for commands
5190 2008-06-28 Ulrich Weigand <uweigand@de.ibm.com>
5192 * alphafbsd-tdep.c: Update for unwinder changes.
5193 * alpha-linux-tdep.c: Likewise.
5194 * alphanbsd-tdep.c: Likewise.
5195 * alphaobsd-tdep.c: Likewise.
5196 * avr-tdep.c: Likewise.
5197 * cris-tdep.c: Likewise.
5198 * frv-linux-tdep.c: Likewise.
5199 * frv-tdep.c: Likewise.
5200 * h8300-tdep.c: Likewise.
5201 * hppa-linux-tdep.c: Likewise.
5202 * iq2000-tdep.c: Likewise.
5203 * m32c-tdep.c: Likewise.
5204 * m32r-linux-tdep.c: Likewise.
5205 * m32r-tdep.c: Likewise.
5206 * m68hc11-tdep.c: Likewise.
5207 * mep-tdep.c: Likewise.
5208 * mn10300-tdep.c: Likewise.
5209 * mt-tdep.c: Likewise.
5210 * score-tdep.c: Likewise.
5211 * sh64-tdep.c: Likewise.
5212 * sh-tdep.c: Likewise.
5213 * sparc64fbsd-tdep.c: Likewise.
5214 * sparc64nbsd-tdep.c: Likewise.
5215 * sparc64obsd-tdep.c: Likewise.
5216 * v850-tdep.c: Likewise.
5217 * vaxobsd-tdep.c: Likewise.
5218 * vax-tdep.c: Likewise.
5219 * xstormy16-tdep.c: Likewise.
5221 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
5223 * mi/mi-main.c (enum captured_mi_execute_command_actions)
5224 (captured_mi_execute_command_args): Remove.
5225 (captured_mi_execute_command): Cast the closure to mi_parse
5226 pointer, not to captured_mi_execute_command_args, and don't
5227 set the action field thereof.
5228 (mi_execute_command): Pass struct mi_parse, not
5229 captured_mi_execute_command_args to captured_mi_execute_command.
5230 (mi_execute_command): Remove (dead) code for suppressing
5233 2008-06-28 Pedro Alves <pedro@codesourcery.com>
5235 * linux-nat.c (enum sigchld_state): New.
5236 (linux_nat_async_events_state): Renamed from
5237 linux_nat_async_events_enabled.
5238 (linux_nat_event_pipe_push, my_waitpid): Adjust.
5239 (sigchld_default_action): New.
5240 (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
5242 (linux_nat_create_inferior): Set events state to sigchld_default
5244 (linux_nat_resume): Adjust.
5245 (linux_nat_wait): Call linux_nat_async_events unconditionally.
5246 (sigchld_handler): Adjust.
5247 (linux_nat_async_mask): Don't set SIGCHLD actions here.
5248 (get_pending_events): Adjust.
5249 (linux_nat_async_events): Rewrite to handle enum sigchld_state
5250 instead of a boolean.
5251 (linux_nat_async): Adjust.
5252 (_initialize_linux_nat): Capture default SIGCHLD action into
5253 sigchld_default_action.
5255 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
5257 * breakpoint.c (moribund_locations): New.
5258 (bpstat_stop_status): Process moribund locations.
5259 (update_global_location_list): Add removed
5260 locations to moribund_locations.
5261 (breakpoint_retire_moribund): New.
5262 * breakpoint.h (struct bp_location): New field
5263 events_till_retirement.
5264 (breakpoint_retire_moribund): Declare.
5265 * thread.c (thread_count): New.
5266 * infrun.c (handle_inferior_event): Call
5267 breakpoint_retire_moribund.
5268 * gdbthread.h (thread_count): Declare.
5270 2008-06-27 Joseph Myers <joseph@codesourcery.com>
5272 * dfp.c (decimal_convert): Call match_endianness before and after
5275 2008-06-27 Jonathan Larmour <jifl@eCosCentric.com>
5277 * remote.c (remote_insert_breakpoint): Ensure that if Z0
5278 unsupported and we fall back to memory_insert_breakpoint, we
5279 use the unmodified requested address.
5281 2008-06-27 Joel Brobecker <brobecker@adacore.com>
5283 * dwarf2read.c (read_attribute_value): Issue a complaint when
5284 adjusting size attribute values of 0xffffffff as zero.
5286 2008-06-27 Joseph Myers <joseph@codesourcery.com>
5288 * i386-tdep.c (i386_16_byte_align_p): New.
5289 (i386_push_dummy_call): Determine stack space required for
5290 arguments going forwards allowing for 16-byte alignment, then push
5291 arguments going forwards.
5293 2008-06-27 Pedro Alves <pedro@codesourcery.com>
5295 * infrun.c (start_remote): Don't clear thread list here.
5296 * monitor.c (monitor_open): Include "gdbthread.h". Clear thread
5298 * remote.c (record_currthread): Upgrade the main thread and its
5299 entry in the thread list if this is the first time we hear about
5301 (remote_thread_alive): Consider magic_null_ptid or a ptid without
5302 a tid member always alive.
5303 (remote_find_new_threads): Don't update the main thread here.
5304 (remote_start_remote): Clear thread list here. Always add the
5306 (extended_remote_attach_1): Add the main thread here.
5307 (extended_remote_mourn_1): Re-add the main thread here.
5308 (extended_remote_create_inferior_1): Add a main thread.
5310 * Makefile.in (monitor.o): Depend on $(gdbthread_h).
5312 2008-06-27 Pedro Alves <pedro@codesourcery.com>
5314 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
5316 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
5318 (general_thread, continue_thread): Change type to ptid_t.
5319 (record_currthread): Take a ptid_t parameter instead of an
5321 (MAGIC_NULL_PID): Delete.
5322 (set_thread): Take a ptid_t parameter and adjust.
5323 (set_general_thread, set_continue_thread): New.
5324 (remote_thread_alive, remote_newthread_step)
5325 (remote_current_thread, remote_find_new_threads)
5326 (remote_threads_info, remote_start_remote, remote_vcont_resume)
5327 (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
5328 (threadalive_test, remote_pid_to_str)
5329 (remote_get_thread_local_address): Adjust.
5330 (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
5331 and any_thread_ptid.
5333 2008-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5335 * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
5336 * configure: Regenerated.
5338 2008-06-26 Joel Brobecker <brobecker@adacore.com>
5340 * dwarf2read.c (read_attribute_value): Treat size attribute
5341 values of 0xffffffff as if the attribute value was zero.
5343 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
5345 * linux-nat.c: Add description of overall logic.
5347 2008-06-26 Daniel Jacobowitz <dan@codesourcery.com>
5349 * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
5350 (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
5351 all dependencies on $(gdb_stdint_h).
5352 (distclean): Do not delete gdb_stdint.h.
5353 * acinclude.m4: Do not use stdint.m4.
5354 * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
5355 uintptr_t, and gdb_stdint.h.
5356 * defs.h: Include <stdint.h>.
5357 * gdb_thread_db.h: Assume stdint.h is already included.
5358 * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
5359 rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
5360 include gdb_stdint.h.
5361 * configure, config.in: Regenerate.
5363 2008-06-26 Joseph Myers <joseph@codesourcery.com>
5365 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
5366 decimal floating-point values in GPRs for soft-float.
5367 (do_ppc_sysv_return_value): Handle returning decimal
5368 floating-point values in GPRs for soft-float.
5370 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
5372 * target.c (target_read_until_error): New.
5373 * target.h (target_read_until_error): Declare.
5374 * mi/mi-main.c (mi_cmd_data_read_memory): Use
5375 target_read_until_error.
5377 2008-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5379 Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
5380 * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
5381 after the DECFLOAT detection to fix a memory leak. Remove the
5382 redundant NUM initialization. Protect the DECFLOAT detection memory
5383 access before the P block. Restore the P memory content for the
5386 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
5388 Kill the return value for all MI command functions.
5389 * mi/mi-cmds.h (enum mi_cmd_result): Remove.
5390 (mi_cmd_argv_ftype): Change return type to void.
5392 * mi/mi-main.c: Adjust all function that implement
5393 MI commands to return nothing.
5394 (struct captured_mi_execute_command_actions):
5395 Remove the rc field.
5396 (mi_cmd_execute): Return nothing.
5397 (mi_execute_async_cli_command): Return nothing.
5398 (mi_cmd_exec_interrupt): Don't print ^done here.
5399 (mi_cmd_target_select): Don't print ^connected here.
5400 (captured_mi_execute_command): Don't check for MI_CMD_DONE.
5401 Special-case -target-select and output ^connected, not ^done.
5403 * mi/mi-cmd-break.c: Adjust.
5404 * mi/mi-cmd-disas.c: Adjust.
5405 * mi/mi-cmd-env.c: Adjust.
5406 * mi/mi-cmd-file.c: Adjust.
5407 * mi/mi-cmd-stack.c: Adjust.
5408 * mi/mi-cmd-target.c: Adjust.
5409 * mi/mi-cmd-var.c: Adjust.
5410 * mi/mi-interp.c: Adjust.
5411 * mi/mi-symbol-cmds.c: Adjust.
5413 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
5415 Emit ^running via observer.
5416 * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
5418 (mi_on_resume): Print ^running if not previously output.
5419 * mi/mi-main.c (running_result_record_printed): New.
5420 (captured_mi_execute_command): Reset
5421 running_result_record_printed. Use running_result_record_printed
5422 to decide if we should skip ^done.
5423 (mi_execute_async_cli_command): Don't print ^running here.
5424 * mi/mi-main.h (current_token, running_result_record_printed):
5427 2008-06-24 Michael Snyder <msnyder@specifix.com>
5429 * infrun.c (_initialize_infrun): White space and typo fix.
5431 2008-06-23 Christopher Faylor <me.gdb.changelog@cgf.cx>
5433 * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
5434 (do_initial_win32_stuff): Fix problem with inability to set breakpoints
5435 when first loading DLL with "dll" command.
5437 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
5439 * gnu-nat.c (proc_string): Use capital T for "Thread".
5441 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
5443 * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
5445 2008-06-18 Joel Brobecker <brobecker@adacore.com>
5447 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
5448 the target cannot run.
5450 2008-06-18 Joel Brobecker <brobecker@adacore.com>
5452 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
5453 we're attaching to a running process.
5455 2008-06-18 Pierre Muller <muller@ics.u-strasbg.fr>
5457 * win32-nat.c (handle_load_dll): Give dll name and load address
5458 if debug_events is on.
5459 (handle_unload_dll): Likewise.
5461 2008-06-14 Vladimir Prus <vladimir@codesourcery.com>
5463 Don't suppress *running when doing finish.
5464 * infcall.c (call_function_by_hand): Set both
5465 suppress_resume_observer and suppress_stop_observer.
5466 * infcmd.c (suppress_run_stop_observers): Split into...
5467 (suppress_resume_observer, suppress_stop_observer): ...those.
5468 (finish_command_continuation): Clear suppress_stop_observer.
5469 (finish_command): Set suppress_stop_observer.
5470 * inferior.h (suppress_run_stop_observers): Split into...
5471 (suppress_resume_observer, suppress_stop_observer): ...those.
5472 * infrun.c (normal_stop): Check for suppress_stop_observer.
5473 * thread.c (set_running): Check for suppress_resume_observer.
5475 2008-06-12 Pedro Alves <pedro_alves@portugalmail.pt>
5476 Pierre Muller <muller@ics.u-strasbg.fr>
5478 * gdbarch.sh (gdbarch_skip_main_prologue): New.
5479 * gdbarch.h, gdbarch.c: Regenerate.
5480 * i386-tdep.h (i386_skip_main_prologue): Declare.
5481 * i386-tdep.c (i386_skip_main_prologue): New.
5482 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
5483 i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
5484 * symtab.c (find_function_start_sal): When pc points at the "main"
5485 function, call gdbarch_skip_main_prologue.
5487 2008-06-11 Daniel Jacobowitz <dan@codesourcery.com>
5489 * value.c (value_primitive_field): Fetch lazy register values.
5491 2008-06-11 Pedro Alves <pedro@codesourcery.com>
5493 * NEWS: Mention support removal of undocumented S AA p PID stop
5496 * remote.c (remote_wait): Remove undocumented S AA p PID support.
5498 2008-06-10 Stan Shebs <stan@codesourcery.com>
5500 * MAINTAINERS: Update my affiliation and address.
5502 2008-06-10 Andreas Schwab <schwab@suse.de>
5504 * top.c (print_gdb_version): Don't print final newline.
5506 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
5509 * Makefile.in: Update dependencies.
5510 * gdbthread.h (struct thread_info): New field
5512 (set_running, is_running): New.
5513 * thread.c (set_running, is_running): New.
5514 * inferior.h (suppress_normal_stop_observer): Rename to...
5515 (suppress_run_stop_observers): ..this.
5516 * infcmd.c (suppress_normal_stop_observer): Rename to...
5517 (suppress_run_stop_observers): ..this.
5518 (finish_command_continuation, finish_command): Adjust.
5519 * infcall.c (call_function_by_hand): Adjust.
5520 * infrun.c (normal_stop): Call set_running.
5521 * target.c (target_resume): New. Call set_running.
5522 * target.h (target_resume): Convert from macro to
5525 * mi/mi-interp.c (mi_on_resume): New.
5526 (mi_interpreter_init): Register mi_on_resume.
5528 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
5530 Use observers to report stop events in MI.
5531 * mi/mi-interp.c (mi_on_normal_stop): New.
5532 (mi_interpreter_init): Register mi_on_normal_stop.
5533 (mi_interpreter_exec_continuation): Remove.
5534 (mi_cmd_interpreter_exec): Don't register the above.
5535 * mi/mi-main.c (captured_mi_execute_command): Don't care
5536 about sync_execution.
5537 (mi_execute_async_cli_command): Don't install continuation. Don't
5539 (mi_exec_async_cli_cmd_continuation): Remove.
5541 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
5543 Suppress normal stop observer when it's problematic.
5544 * inferior.h (suppress_normal_stop_observer): New.
5545 * infcall.c (call_function_by_hand): Disable stop events when
5546 doing function calls.
5547 * infmcd.c (suppress_normal_stop_observer): New.
5548 (finish_command_continuation): Call normal_stop observer
5550 (finish_command): Disable stop events inside proceed.
5551 * infrun.c (normal_stop): Don't call normal stop observer if
5552 suppressed of if multi-step is in progress.
5554 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
5557 * infrun.c (finish_command): Don't pass cleanup
5559 (finish_command_continuation): Don't grab cleanup from
5560 the passed data, as we don't use, and cannot, use it anyway.
5562 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
5564 Introduce common cleanup for restoring integers.
5565 * defs.h (make_cleanup_restore_integer): New declaration.
5566 (struct cleanup): New field free_arg.
5567 (make_my_cleanup_2): New.
5568 * utils.c (restore_integer_closure, restore_integer)
5569 (make_cleanup_restore_integer): New.
5570 (make_my_cleanup): Initialize the free_arg field and
5571 renamed to make_my_cleanup_2.
5572 (do_my_cleanups): Call free_arg.
5573 (discard_cleanups): Call free_arg.
5574 * breakpoint.c (restore_always_inserted_mode): Remove.
5575 (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
5577 2008-06-09 Doug Evans <dje@google.com>
5579 * remote.c (remote_wait): Include beginning of malformed packet
5582 2008-06-09 Tom Tromey <tromey@redhat.com>
5584 * completer.c (complete_line): Don't special-case
5585 expression_completer.
5586 (expression_completer): Only pass last word to
5588 * c-exp.y (yylex): Check 'token', not 'operator'.
5590 2008-06-09 Daniel Jacobowitz <dan@codesourcery.com>
5592 * configure.ac (build_warnings): Add -Wno-format for mingw.
5593 * configure: Regenerated.
5595 2008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
5597 * NEWS: Make indentation consistent. Move exec tracing entry out
5598 of remote packet list.
5600 2008-06-06 Tom Tromey <tromey@redhat.com>
5602 * value.h (evaluate_subexpression_type, extract_field_op):
5604 * printcmd.c (_initialize_printcmd): Use expression_completer for
5605 'p', 'inspect', 'call'.
5606 * parser-defs.h (parse_field_expression): Declare.
5607 * parse.c: Include exceptions.h.
5608 (in_parse_field, expout_last_struct): New globals.
5609 (mark_struct_expression): New function.
5610 (prefixify_expression): Return int.
5611 (prefixify_subexp): Return int. Use expout_last_struct.
5612 (parse_exp_1): Update.
5613 (parse_exp_in_context): Add 'out_subexp' argument. Handle
5615 (parse_field_expression): New function.
5616 * expression.h (parse_field_expression): Declare.
5617 (in_parse_field): Likewise.
5618 * eval.c (evaluate_subexpression_type): New function.
5619 (extract_field_op): Likewise.
5620 * completer.h (expression_completer): Declare.
5621 * completer.c (expression_completer): New function.
5622 (count_struct_fields, add_struct_fields): New functions.
5623 * c-exp.y (yyparse): Redefine.
5624 (COMPLETE): New token.
5625 (exp): New productions.
5626 (saw_name_at_eof, last_was_structop): New globals.
5627 (yylex): Return COMPLETE when needed. Recognize in_parse_field.
5628 (c_parse): New function.
5629 * breakpoint.c (_initialize_breakpoint): Use expression_completer
5630 for watch, awatch, and rwatch.
5631 * Makefile.in (parse.o): Depend on exceptions_h.
5633 2008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5636 * gdb/valopts.c (find_overload_match): Handle references
5639 2008-06-06 Paul N. Hilfinger <hilfinger@adacore.com>
5641 * ada-lang.c (ada_value_assign): Correct big-endian case to take into
5642 account the bitsize of the 'from' operand.
5644 2008-06-06 Pedro Alves <pedro@codesourcery.com>
5646 * annotate.h (annotate_thread_changed): Declare.
5648 2008-06-06 Nick Roberts <nickrob@snap.net.nz>
5650 * annotate.c (annotate_thread_changed): New function.
5651 * thread.c (thread_command) : Use it.
5652 * infrun.c (normal_stop): Use it.
5654 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
5655 Nathan Sidwell <nathan@codesourcery.com>
5656 Joseph Myers <joseph@codesourcery.com>
5658 * acinclude.m4: Include ../config/acx.m4.
5659 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
5660 * configure, config.in: Regenerate.
5661 * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
5663 * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
5665 2008-06-05 Pedro Alves <pedro@codesourcery.com>
5667 Replace 'target async' by 'maintenance set remote-async' and
5668 'target remote' combination.
5670 * remote.c (remote_async_wait): Merge into remote_wait, and
5672 (remote_async_permitted, remote_async_permitted_set): New
5674 (set_maintenance_remote_async_permitted)
5675 (show_maintenance_remote_async_permitted): New functions.
5676 (remote_async_ops, extended_async_remote_ops): Delete.
5677 (remote_async_open, extended_remote_async_open): Delete.
5678 (remote_open_1): Drop async_p parameter. Update callers. Replace
5679 async_p with remote_async_permitted checks.
5680 (extended_async_remote_attach): Delete.
5681 (remote_resume, remote_async_resume): Merge and leave remote_resume.
5682 (remote_async_terminal_inferior): Rename to...
5683 (remote_terminal_inferior): ... this, and add
5684 remote_async_termitted check.
5685 (remote_async_terminal_ours): Rename to...
5686 (remote_terminal_ours): ... this, and add remote_async_termitted
5688 (remote_wait, remote_async_wait): Merge and leave remote_wait
5690 (remote_kill, remote_async_kill): Merge and leave remote_kill
5692 (remote_async_mourn, extended_async_remote_mourn): Delete.
5693 (extended_remote_create_inferior_1): Drop async_p parameter.
5694 Update callers. Always use extended_remote_ops.
5695 (extended_remote_async_create_inferior): Delete.
5696 (remote_return_zero): Delete.
5697 (init_remote_ops): Register remote_can_async_p, remote_async,
5698 remote_async_mask, remote_terminal_inferior and
5699 remote_terminal_ours.
5700 (remote_can_async_p, remote_is_async_p): Check for
5701 remote_async_permitted.
5702 (init_remote_async_ops, init_extended_async_remote_ops): Remove.
5703 (set_remote_cmd): Don't add async and extended-async targets.
5704 (_initialize_remote): Add set/show remote-async maintenance
5707 2008-06-05 Pedro Alves <pedro@codesourcery.com>
5709 * remote.c (kill_kludge): Delete.
5710 (remote_wait, remote_async_wait): Don't set it.
5711 (remote_kill, remote_async_kill): Don't do anything with it.
5713 2008-06-05 Pedro Alves <pedro@codesourcery.com>
5715 * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
5717 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
5719 * bcache.c (bcache_data): Call deprecated_bcache_added function.
5720 (deprecated_bcache_added): New function name. Body of function
5721 bcache_data is used here with the addition of 'added' argument.
5722 * bcache.h (deprecated_bcache_added): New function.
5723 * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
5724 work from add_psymbol_to_list - initialises partial symbol and stashes
5725 it in objfile's cache.
5726 (append_psymbol_to_list): New helper function, takes other part of
5727 work from add_psymbol_to_list - adds partial symbol to the given list.
5728 (add_psymbol_to_list): Call helper functions instead of doing work
5729 here. If adding to global list, do not duplicate partial symbols in the
5732 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
5734 * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
5735 'exception caught|thrown' message.
5737 2008-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5739 * Makefile.in: Update dependencies.
5740 * dwarf2expr.c: New include "gdb_assert.h".
5741 (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
5742 (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
5743 (execute_stack_op): Error out on too large RECURSION_DEPTH.
5744 Increase/decrease RECURSION_DEPTH around the function.
5746 2008-06-05 Daniel Jacobowitz <dan@codesourcery.com>
5748 * remote.c (get_offsets): Handle a single segment.
5749 * symfile.c (symfile_map_offsets_to_segments): Allow more bases
5752 2008-06-03 Daniel Jacobowitz <dan@codesourcery.com>
5754 * solib-svr4.c (struct lm_info): Add lm_addr.
5755 (main_lm_addr): New.
5756 (svr4_default_sos): Set lm_addr.
5757 (svr4_current_sos): Set lm_addr and main_lm_addr.
5758 (svr4_fetch_objfile_link_map): Rewrite.
5759 (svr4_clear_solib): Clear main_lm_addr.
5761 2008-06-03 Michael Snyder <msnyder@redhat.com>
5762 Joseph Myers <joseph@codesourcery.com>
5764 * mips-tdep.c (mips_eabi_return_value): Replace stub that always
5765 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
5767 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
5769 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
5771 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
5773 * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
5775 2008-06-01 Joel Brobecker <brobecker@adacore.com>
5777 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
5778 treat pointers in data space as function descriptors if the
5779 target address is also in the data space.
5781 2008-05-30 Joel Brobecker <brobecker@adacore.com>
5783 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
5784 the trad-frame register value for the SP register.
5786 2008-05-29 Mark Kettenis <kettenis@gnu.org>
5788 * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
5790 2008-05-28 Joel Brobecker <brobecker@adacore.com>
5792 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
5793 that identifies function descriptors outside of the .opd section.
5795 2008-05-28 Aleksandar Ristovski <aristovski@qnx.com>
5797 * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
5798 temporary catchpoints. In MI add missing fields 'reason', 'disp',
5800 (print_mention_exception_catchpoint): Add 'Temporary' for temporary
5802 (handle_gnu_v3_exceptions): Use tempflag.
5804 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
5806 Refactor varobj_update interface.
5807 * varobj.c (varobj_update): Report changes as vector. Also
5808 return not just a list of varobj, but a list of special structures
5809 that tell what exactly has changed.
5810 * varobj.h (enum varobj_update_error): Rename to
5811 varobj_scope_status.
5812 (struct varobj_update_result_t): New.
5813 (varobj_update): Adjust prototype.
5814 * mi/mi-cmd-var.c: Adjust for changes.
5816 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
5818 * varobj.c (varobj_update): Fix comment typo.
5821 2008-05-26 Joel Brobecker <brobecker@adacore.com>
5823 Set the symtab field of symbols read from ECOFF debugging entries.
5824 * mdebugread.c (add_symbol): Add new parameter symtab.
5825 (parse_symbol): Update calls to add_symbol throughout.
5827 2008-05-27 Andreas Schwab <schwab@suse.de>
5829 * symtab.h (enum address_class): Remove LOC_REGPARM and
5831 (struct symbol): Add is_argument.
5832 (SYMBOL_IS_ARGUMENT): Define.
5834 * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
5835 * buildsym.c (finish_block): Likewise.
5836 * stack.c (print_frame_args, print_block_frame_locals)
5837 (print_frame_arg_vars): Likewise.
5838 * symtab.c (lookup_block_symbol): Likewise.
5839 * tracepoint.c (add_local_symbols): Likewise.
5840 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5842 * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
5843 * dwarf2read.c (new_symbol): Likewise.
5844 * mdebugread.c (parse_symbol): Likewise.
5845 * stabsread.c (define_symbol): Likewise.
5847 * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
5848 and LOC_COMPUTED_ARG.
5849 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
5850 * ax-gdb.c (gen_var_ref): Likewise.
5851 * eval.c (evaluate_subexp_for_address): Likewise.
5852 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
5853 * m2-exp.y (yylex): Likewise.
5854 * printcmd.c (address_info): Likewise.
5855 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
5856 * tracepoint.c (collect_symbol, scope_info): Likewise.
5858 2008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
5860 * gdbarch.sh: Added new gdbarch struct
5861 core_regset_sections.
5862 * gdbarch.c: Refreshed.
5863 * gdbarch.h: Refreshed.
5864 * regset.h (core_regset_section): Declared.
5865 * linux-nat.c (linux_nat_do_thread_registers): Added
5866 support for the new gdbarch struct core_regset_sections.
5867 * utils.c (host_address_to_string): New function.
5868 * defs.h (host_address_to_string): New prototype.
5869 * i386-linux-tdep.c (i386_regset_rections): New register
5870 sections list for i386.
5871 (i386_linux_init_abi): Initialized new gdbarch struct
5872 core_regset_sections.
5873 * Makefile.in: Updated to reflect dependency changes.
5874 * ppc-linux-tdep.c (ppc_regset_sections): Register
5875 sections list for ppc.
5876 (ppc_linux_init_abi): Initialized new gdbarch struct
5877 core_regset_sections
5879 2008-05-24 Andreas Schwab <schwab@suse.de>
5881 * linespec.c (decode_objc): Save current language around call to
5884 2008-05-23 Joel Brobecker <brobecker@adacore.com>
5886 * valprint.h (get_array_bounds): Renames get_array_low_bound.
5887 * valprint.c (get_array_bounds): Renames get_array_low_bound.
5888 Return the proper bound value if the array index type is an
5889 enumerated type. Compute the high bound if requested.
5890 (val_print_array_elements): Handle the case when the array
5891 element has a null size.
5892 * ada-valprint.c (print_optional_low_bound): Add handling
5893 for empty arrays or arrays of zero-size elements.
5894 (ada_val_print_array): New function, extracted out from
5895 ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
5896 handle empty arrays and arrays of zero-size elements.
5897 (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
5898 code by call to ada_val_print_array.
5899 (ada_value_print): Remove handling of null array. The handling
5900 was incomplete and is now better handled by ada_val_print_array.
5902 2008-05-23 Markus Deuling <deuling@de.ibm.com>
5904 * annotate.c (annotate_source, annotate_frame_begin): Replace
5905 deprecated_print_address_numeric with paddress.
5906 * cli/cli-cmds.c (list_command, edit_command): Likewise.
5907 * tui/tui-stack.c (tui_make_status_line): Likewise.
5909 * defs.h (deprecated_print_address_numeric): Remove.
5910 * printcmd.c (deprecated_print_address_numeric): Remove.
5911 * maint.c (maint_print_section_info): Fix comment.
5913 2008-05-23 Markus Deuling <deuling@de.ibm.com>
5915 * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
5916 print_binary_chars, print_char_chars): Add byte_order parameter and
5917 replace gdbarch_byte_order.
5918 (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
5919 expressions and remove them. Remove unused TWO_TO_FOURTH.
5920 (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
5921 endianness. Update call to print_hex_chars.
5922 * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
5923 print_binary_chars, print_char_chars): Add byte_order parameter.
5924 * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
5925 get at the endianness. Update print_*_char calls to use byte_order.
5927 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
5929 * symtab.h (struct symbol): Make "aux_value" member a void pointer
5931 (SYMBOL_LOCATION_BATON): Update.
5933 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
5935 * symtab.h (enum address_class): Remove LOC_BASEREG and
5937 (struct symbol): Remove "basereg" member of "aux_value" union.
5938 (SYMBOL_BASEREG): Remove.
5940 * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
5942 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
5943 (ada_add_block_symbols): Likewise.
5944 * ax-gdb.c (gen_var_ref): Likewise.
5945 * buildsym.c (finish_block): Likewise.
5946 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
5947 * m2-exp.y (yylex): Likewise.
5948 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5949 * printcmd.c (address_info): Likewise.
5950 * stack.c (print_frame_args, print_block_frame_locals): Likewise.
5951 (print_frame_arg_vars): Likewise.
5952 * symmisc.c (print_symbol): Likewise.
5953 * symtab.c (lookup_block_symbol): Likewise.
5954 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
5955 (scope_info): Likewise.
5957 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
5959 * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
5961 * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
5962 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
5963 (ada_add_block_symbols): Likewise.
5964 * ax-gdb.c (gen_var_ref): Likewise.
5965 * buildsyms.c (finish_block): Likewise.
5966 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
5967 * m2-exp.y (yylex): Likewise.
5968 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5969 * printcmd.c (address_info): Likewise.
5970 * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
5971 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
5972 * symtab.c (lookup_block_symbol): Likewise.
5973 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
5974 (scope_info): Likewise.
5976 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
5978 * symtab.h (enum address_class): Remove LOC_INDIRECT and
5979 LOC_HP_THREAD_LOCAL_STATIC.
5981 * findvar.c (symbol_read_needs_frame, read_var_value): Do not
5982 handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
5983 (read_var_value): Likewise.
5984 * buildsym.c (finish_block): Likewise.
5985 * objfiles.c (objfile_relocate): Likewise.
5986 * printcmd.c (address_info): Likewise.
5987 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
5988 * tracepoint.c (scope_info): Likewise.
5990 2008-05-21 Markus Deuling <deuling@de.ibm.com>
5991 Maxim Grigoriev <maxim2405@gmail.com>
5993 * xtensa-tdep.c (xtensa_read_register): Remove.
5994 (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
5995 argument litbase to call0_frame_cache().
5996 (call0_track_op, call0_analyze_prologue)
5997 (call0_frame_cache): Use extra argument litbase.
5999 2008-05-21 Joel Brobecker <brobecker@adacore.com>
6001 * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
6003 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6005 * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
6007 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6009 * alpha-mdebug-tdep.c: Include "trad-frame.h".
6010 (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
6011 struct trad_frame_saved_reg *.
6012 (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
6013 trad_frame_alloc_saved_regs. Update accesses. Record previous
6014 value of SP as being vfp.
6015 (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
6016 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
6018 2008-05-21 Markus Deuling <deuling@de.ibm.com>
6020 * score-tdep.c (score_print_insn): Get the current endianess from
6021 disassemble_info instead of gdbarch_byte_order.
6023 2008-05-21 Pedro Alves <pedro@codesourcery.com>
6025 * frame.c (get_prev_frame_1): Build frame id before setting
6026 this_frame->prev_p, not after.
6028 2008-05-21 Nick Roberts <nickrob@snap.net.nz>
6030 * annotate.c (annotate_new_thread): New function for new-thread
6032 * annotate.h: (annotate_new_thread): New extern.
6033 * thread.c (add_thread_with_info): Use it.
6034 * Makefile.in (thread.o): Add dependency on annotate.h.
6036 2008-05-20 Joel Brobecker <brobecker@adacore.com>
6038 * win32-nat.c (win32_wait): Block the control-c event while
6039 waiting for a debug event.
6041 2008-05-19 Pedro Alves <pedro@codesourcery.com>
6043 * symtab.h (lookup_symbol_in_language): Update comment.
6044 * symtab.c (lookup_symbol_aux_block): Update comment.
6045 * ada-lang.c (ada_lookup_symbol_list): Update comment.
6047 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
6049 * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
6050 (lookup_symbol): Likewise.
6051 * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
6052 (lookup_symbol): Likewise.
6053 (search_symbols): Update.
6055 * linespec.c (find_methods, collect_methods): Update.
6056 (add_matching_methods, add_constructors): Update.
6057 (decode_compound, decode_dollar, decode_variable): Update.
6058 (lookup_prefix_sym): Update.
6060 (symbol_found): Remove SYM_SYMTAB parameter.
6061 Use SYMBOL_SYMTAB (sym) instead.
6063 * gdbtypes.c (lookup_typename): Update.
6064 (lookup_struct, lookup_union, lookup_enum): Update.
6065 (lookup_template_type): Update.
6066 (check_typedef): Update.
6067 * language.c (lang_bool_type): Update.
6068 * mdebugread.c (parse_procedure): Update.
6069 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6070 * parse.c (write_dollar_variable): Update.
6071 * printcmd.c (address_info): Update.
6072 * source.c (select_source_symtab): Update.
6073 * stack.c (print_frame_args, print_frame_arg_vars): Update.
6074 * valops.c (find_function_in_inferior): Update.
6075 (value_struct_elt_for_reference): Update.
6076 * value.c (value_static_field, value_fn_field): Update.
6078 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6079 * arm-tdep.c (arm_skip_prologue): Update.
6080 * mt-tdep.c (mt_skip_prologue): Update.
6081 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
6083 * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
6084 * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
6085 (add_defn_to_vec): Likewise.
6086 (ada_add_block_symbols): Likewise.
6087 (lookup_cached_symbol, cache_symbol): Likewise.
6088 (standard_lookup): Update.
6089 (ada_lookup_symbol_list): Update.
6091 * c-valprint.c (c_val_print): Update.
6092 * cp-support.c (cp_lookup_rtti_type): Update.
6093 * jv-lang.c (java_lookup_class, get_java_object_type): Update.
6094 * objc-lang.c (lookup_struct_typedef, find_imps): Update.
6095 * p-valprint.c (pascal_val_print): Update.
6096 * scm-lang.c (scm_lookup_name): Update.
6102 * objc-exp.y: Update.
6105 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
6107 * language.h (struct language_defn): Remove SYMTAB parameter from
6108 la_lookup_symbol_nonlocal callback function pointer.
6110 * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
6111 (ada_lookup_encoded_symbol): Likewise.
6112 * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
6113 Always call fixup_symbol_section.
6114 (ada_lookup_symbol): Remove SYMTAB parameter.
6115 (ada_lookup_symbol_nonlocal): Likewise.
6116 * ada-exp.y (write_object_renaming): Update.
6117 (find_primitive_type): Likewise.
6119 * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
6120 (cp_lookup_symbol_namespace): Likewise.
6121 * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
6122 (lookup_symbol_file): Likewise.
6123 (lookup_possible_namespace_symbol): Likewise.
6124 (cp_lookup_symbol_nonlocal): Likewise.
6125 (cp_lookup_symbol_namespace): Likewise.
6126 (cp_lookup_nested_type): Update.
6128 * scm-valprint.c (scm_inferior_print): Update.
6129 * valops.c (value_maybe_namespace_elt): Update.
6131 * solist.h (struct target_so_ops): Remove SYMTAB parameter from
6132 lookup_lib_global_symbol callback function pointer.
6133 (solib_global_lookup): Remove SYMTAB parameter.
6134 * solib.c (solib_global_lookup): Remove SYMTAB parameter.
6135 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
6137 * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
6138 (lookup_symbol_static): Likewise.
6139 (lookup_symbol_global): Likewise.
6140 (lookup_symbol_aux_block): Likewise.
6141 (lookup_global_symbol_from_objfile): Likewise.
6142 * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
6143 (lookup_symbol_aux_local): Likewise.
6144 (lookup_symbol_aux_block): Likewise.
6145 (lookup_symbol_aux_symtabs): Likewise.
6146 (lookup_symbol_aux_psymtabs): Likewise.
6147 (lookup_global_symbol_from_objfile): Likewise.
6148 (basic_lookup_symbol_nonlocal): Likewise.
6149 (lookup_symbol_static): Likewise.
6150 (lookup_symbol_global): Likewise.
6152 (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
6154 2008-05-17 Pedro Alves <pedro@codesourcery.com>
6156 * remote.c (init_extended_remote_ops): Fix typo.
6158 2008-05-16 Pedro Alves <pedro@codesourcery.com>
6160 * NEWS: Mention new DICOS x86 target configuration.
6162 2008-05-16 Pedro Alves <pedro@codesourcery.com>
6163 Ulrich Weigand <uweigand@de.ibm.com>
6165 * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
6166 * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
6168 * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
6169 use it instead of ginfo->value.address. Look up minimal symbol by
6170 address and name. Assume OBJFILE is non-NULL.
6171 (fixup_symbol_section): Ensure we always have an objfile to look
6172 into. Extract and pass to fixup_section the symbol's address that
6173 will match the minimal symbol's address.
6174 (fixup_psymbol_section): Likewise.
6176 (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
6177 overlays and the addrmap returned the wrong section.
6179 * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
6180 calling fixup_symbol_section.
6182 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6184 * minsyms.c: Include "target.h".
6185 (find_solib_trampoline_target): Handle minimal symbols pointing
6186 to function descriptors as well.
6187 * Makefile.in (minsyms.o): Update dependencies.
6189 * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
6190 (ppc64_standard_linkage1): ... this. Fix optional instructions.
6191 (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
6192 (PPC64_STANDARD_LINKAGE1_LEN): ... this.
6193 (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
6194 (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
6195 (ppc64_standard_linkage_target): Rename to ...
6196 (ppc64_standard_linkage1_target): ... this.
6197 (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
6198 (ppc64_skip_trampoline_code): Support three variants of standard
6199 linkage stubs. Call find_solib_trampoline_target to handle
6202 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6204 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
6205 ppc64_sysv_abi_adjust_breakpoint_address.
6206 * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
6207 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
6209 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6211 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
6212 (ppc_linux_init_abi): Install find_solib_trampoline_target instead
6213 of ppc_linux_skip_trampoline_code.
6215 2008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
6217 * gdbarch.sh: Delete dwarf_reg_to_regnum.
6218 * gdbarch.c, gdbarch.h: Regenerated.
6219 * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
6220 hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
6221 s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
6223 2008-05-15 Pedro Alves <pedro@codesourcery.com>
6225 * linux-nat.c (trap_ptid): Delete.
6226 (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
6228 * linux-thread-db.c (thread_db_wait): Adjust.
6230 2008-05-15 Joel Brobecker <brobecker@adacore.com>
6232 * linespec.c (decode_line_1): Fix a couple of comments.
6234 2008-05-15 Alan Modra <amodra@bigpond.net.au>
6236 * dbxread.c: Formatting.
6237 (INTERNALIZE_SYMBOL): Init n_other.
6238 (set_namestring): Take pointer to nlist arg rather than struct
6239 copy. Update all callers.
6241 2008-05-15 Andreas Schwab <schwab@suse.de>
6243 * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
6244 (dwarf2read.o): Add $(addrmap_h).
6246 2008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6248 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
6249 (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
6250 to handle ppc32 PLT entries.
6251 (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
6254 2008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6256 * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
6257 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
6258 lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
6259 (lookup_minimal_symbol_by_pc_section): Use
6260 lookup_minimal_symbol_by_pc_section_1.
6261 (lookup_solib_trampoline_symbol_by_pc): Likewise.
6263 2008-05-13 Joel Brobecker <brobecker@adacore.com>
6265 * findcmd.c: Add #include "gdb_stdint.h".
6266 * Makefile.in (findcmd.o): Update dependencies.
6268 2008-05-11 David S. Miller <davem@davemloft.net>
6270 * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
6271 long double size override, Linux does use 128-bit now.
6273 * sparc-linux-tdep.c (PSR_SYSCALL): Define.
6274 (sparc_linux_write_pc): New function.
6275 (sparc32_linux_init_abi): Register it.
6276 * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
6277 (sparc64_linux_write_pc): New function.
6278 (sparc64_linux_init_abi): Register it.
6280 * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
6281 dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
6283 2008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6285 * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
6286 and info.tdep_info before calling gdbarch_init_osabi.
6288 2008-05-09 Joel Brobecker <brobecker@adacore.com>
6290 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
6291 the type of the right hand side of the assignment to the type
6292 of the left hand side if the left hand side is a convenience
6295 2008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
6297 * NEWS: Mention gdbserver bi-arch capability.
6299 2008-05-09 Doug Evans <dje@google.com>
6302 * NEWS: Document find command and qSearch:memory packet.
6303 * Makefile.in (SFILES): Add findcmd.c.
6304 (COMMON_OBJS): Add findcmd.o.
6305 (findcmd.o): New rule.
6306 * findcmd.c: New file.
6307 * target.h (target_ops): New member to_search_memory.
6308 (simple_search_memory): Declare.
6309 (target_search_memory): Declare.
6310 * target.c (simple_search_memory): New fn.
6311 (target_search_memory): New fn.
6312 * remote.c (PACKET_qSearch_memory): New packet kind.
6313 (remote_search_memory): New fn.
6314 (init_remote_ops): Init to_search_memory.
6315 (init_extended_remote_ops): Ditto.
6316 (_initialize_remote): Add qSearch:memory packet config command.
6318 2008-05-09 Eli Zaretskii <eliz@gnu.org>
6320 * thread.c (_initialize_thread): Don't use commas and periods in
6321 first line of doc string of "set/show print thread-events".
6323 2008-05-08 Joel Brobecker <brobecker@adacore.com>
6325 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
6326 Update for unwinder changes.
6328 2008-05-08 Joel Brobecker <brobecker@adacore.com>
6330 * frame.c (get_frame_base_address, get_frame_locals_address)
6331 (get_frame_args_address): Pass the correct frame when calling
6332 frame_base_find_by_frame.
6334 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6336 * remote.c (extended_remote_attach_1): Call target_find_description.
6338 2008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
6340 * remote.c (extended_remote_create_inferior_1): Clean up
6341 before marking the target running.
6343 2008-05-08 Joel Brobecker <brobecker@adacore.com>
6345 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
6348 2008-05-07 Joel Brobecker <brobecker@adacore.com>
6350 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
6351 sparc64-sol2-tdep.c: Update for unwinder changes.
6353 2008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
6355 * cp-support.c (mangled_name_to_comp): Initialize storage.
6356 (unqualified_name_from_comp): Likewise.
6358 2008-05-07 Jie Zhang <jie.zhang@analog.com>
6360 * remote.c (remote_insert_breakpoint): Call get_remote_state
6361 after gdbarch_breakpoint_from_pc is called.
6362 (remote_insert_hw_breakpoint): Likewise.
6364 2008-05-06 Joel Brobecker <brobecker@adacore.com>
6366 * valprint.c (val_print): Add new language parameter and use it
6367 instead of using the current_language. Update calls to val_print
6369 (common_val_print): Add new langauge parameter and pass it to
6371 * value.h (struct language_defn): Add opaque declaration.
6372 (val_print, common_val_print): Update declarations.
6373 * stack.c (print_frame_args): Update call to common_val_print
6374 using the appropriate language.
6375 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
6376 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
6377 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
6378 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
6379 #include "language.h" if necessary.
6380 Update calls to val_print and common_val_print.
6381 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
6382 Update dependencies.
6384 2008-05-06 Joel Brobecker <brobecker@adacore.com>
6386 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
6387 pointing inside a non-executable section as function descriptors.
6389 2008-05-06 Pedro Alves <pedro@codesourcery.com>
6391 * inf-loop.c (inferior_event_handler): Run all continuations and
6392 print any language change before running the breakpoint commands.
6394 2008-05-06 Joel Brobecker <brobecker@adacore.com>
6396 * frame-unwind.c (frame_unwind_got_bytes): New function.
6397 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
6398 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
6399 for unwinder changes.
6401 2008-05-05 Doug Evans <dje@google.com>
6403 * NEWS: Mention new /m modifier for disassemble command.
6404 * cli/cli-cmds.c (print_disassembly): New function.
6405 (disassemble_current_function): New function
6406 (disassemble_command): Recognize /m modifier, print mixed
6408 (init_cli_cmds): Update disassemble help text.
6410 2008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
6412 * xtensa-tdep.c: Update for unwinder changes.
6414 2008-05-05 Andreas Schwab <schwab@suse.de>
6416 Update m68k port for unwinder changes.
6417 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
6418 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
6419 (m68k_frame_unwind): Use default_frame_sniffer.
6420 (m68k_frame_sniffer): Remove.
6421 (m68k_frame_base_address): Expect this_frame.
6422 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
6424 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
6425 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
6426 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
6427 parameter instead of pc value.
6428 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
6430 (m68k_linux_sigtramp_frame_this_id)
6431 (m68k_linux_sigtramp_frame_prev_register)
6432 (m68k_linux_sigtramp_frame_sniffer): Update signature.
6433 (m68k_linux_sigtramp_frame_unwind): Use
6434 m68k_linux_sigtramp_frame_sniffer.
6435 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
6437 * m68klinux-nat.c (store_register): Fix typo.
6439 2008-05-05 Pedro Alves <pedro@codesourcery.com>
6441 * infcmd.c (step_1): Put thread id on the stack to avoid possible
6444 2008-05-05 Luis Machado <luisgpm@br.ibm.com>
6446 * symfile.c (reread_symbols): Update objfile's entry point.
6448 2008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
6449 Joel Brobecker <brobecker@adacore.com>
6451 * ada-lang.c: Update throughout to use symbol_matches_domain
6452 instead of matching the symbol domain explictly.
6453 * dwarf2read.c (add_partial_symbol): Do not add new psym for
6454 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
6455 class as typedefs. See lookup_partial_symbol function.
6456 (new_symbol): Similar to add_partial_symbol, do not create
6457 symbol for the typedef. See lookup_block_symbol.
6458 * symtab.c (symbol_matches_domain): New function, takes care
6459 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
6460 (lookup_partial_symbol): Use symbol_matches_domain to see if the
6461 found psym domain matches the given domain.
6462 (lookup_block_symbol): Likewise.
6464 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
6466 * top.c (command_line_handler_continuation): Remove.
6467 (execute_command): Do not install the above.
6469 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
6471 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
6472 and catch all exceptions from it.
6473 * top.c (command_line_handler_continuation): Don't
6474 call bpstat_do_action here.
6476 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
6478 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
6479 (struct die_info): Remove type.
6480 (read_type_die, read_typedef, read_base_type, read_subrange_type)
6481 (read_structure_type, read_enumeration_type, read_array_type)
6482 (read_tag_pointer_type, read_tag_ptr_to_member_type)
6483 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
6484 (read_tag_string_type, read_subroutine_type, read_set_type)
6485 (read_unspecified_type): Delete prototypes. Remove check for
6486 already-loaded type. Return the new type.
6487 (set_die_type): Return the new type.
6488 (reset_die_and_siblings_types): Delete.
6489 (load_comp_unit, load_full_comp_unit): Set type_hash.
6490 (process_queue): Remove call to reset_die_and_siblings_types.
6491 (process_die): Do not read most types here. Use read_type_die
6493 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
6494 (quirk_gcc_member_function_pointer): Return the new type.
6495 (process_structure_scope, process_enumeration_scope): Use
6496 get_die_type and read the DIE's type.
6497 (read_full_die): Do not initialize die->type.
6498 (tag_type_to_type): Use read_type_die.
6499 (read_type_die): Check for already defined types. Return the
6501 (determine_prefix): Use get_die_type.
6502 (set_die_type): Return the type.
6503 (get_die_type): Take a CU argument. Check for no type_hash.
6505 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
6507 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
6510 2008-05-04 Pedro Alves <pedro@codesourcery.com>
6512 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
6513 and bp_longjmp_resume breakpoints.
6514 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
6516 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
6517 breakpoints. Create bp_longjmp breakpoints as momentary
6519 (enable_longjmp_breakpoint): Delete.
6520 (set_longjmp_breakpoint): New.
6521 (disable_longjmp_breakpoint): Delete.
6522 (delete_longjmp_breakpoint): New.
6523 (set_longjmp_resume_breakpoint): Delete.
6524 (set_momentary_breakpoint_at_pc): New.
6525 (breakpoint_re_set_one): Don't delete bp_longjmp and
6526 bp_longjmp_resume breakpoints.
6527 (breakpoint_re_set): Don't create longjmp and longjmp-resume
6530 * infrun.c (step_resume_breakpoint): Add comment.
6531 (struct execution_control_state): Delete handling_longjmp member.
6532 (init_execution_control_state). Don't clear handling_longjmp.
6533 (context_switch): Don't context switch handling_longjmp.
6534 (handle_inferior_event): If handling a bp_longjmp breakpoint,
6535 create a bp_longjmp_resume breakpoint, and set it as current
6536 step_resume_breakpoint, then step over the longjmp breakpoint. If
6537 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
6538 breakpoint, delete the longjmp-resume breakpoint, and stop
6540 (currently_stepping): Remove handling_longjmp from expression.
6541 (insert_step_resume_breakpoint_at_sal): Update comment.
6542 (insert_longjmp_resume_breakpoint): New.
6544 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
6545 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
6547 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
6548 (set_longjmp_resume_breakpoint): Delete declaration.
6550 * gdbthread.h (save_infrun_state): Remove handling_longjmp
6552 (load_infrun_state): Delete *handling_longjmp parameter.
6553 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
6555 (load_infrun_state): Delete *handling_longjmp parameter. Update
6558 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
6559 (delete_longjmp_breakpoint_cleanup): New.
6560 (step_1): Call set_longjmp_breakpoint instead of
6561 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
6562 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
6563 (step_1_continuation): Pass thread id in the continuation args to
6565 (step_once): Add thread parameter. Pass thread id the the
6568 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6570 Set CU BASE_ADDRESS already from partial DIEs.
6571 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
6572 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
6573 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
6574 from these variables if it was still unset.
6576 * Makefile.in: Update dependencies.
6577 * dwarf2read.c: Include "addrmap.h"
6578 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
6579 (dwarf2_ranges_read): New prototype.
6580 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
6581 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
6582 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
6583 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
6584 comment for it. Add the found ranges to RANGES_PST. New variable
6585 BASEADDR, initialize it the common way.
6586 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
6587 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
6588 HAS_RANGES_OFFSET for the later processing.
6589 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
6590 * symtab.c: Include "addrmap.h"
6591 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
6592 Move the psymtab locator into ...
6593 (find_pc_sect_psymtab_closer): ... a new function.
6595 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
6597 * arch-utils.c (gdbarch_update_p): Use default values for
6598 info.abfd and info.target_desc if they are NULL.
6599 (gdbarch_from_bfd): Remove assertion.
6600 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
6601 using the current target description.
6602 (gdbarch_info_fill): Do not use default values for info->abfd
6603 and info->target_desc.
6605 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6607 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
6609 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
6611 * inferior.h (read_pc_pid, write_pc_pid): Remove.
6612 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
6614 * regcache.c (read_pc_pid): Remove, replace by ...
6615 (regcache_read_pc): ... this function.
6616 (write_pc_pid): Remove, replace by ...
6617 (regcache_write_pc): ... this function.
6618 (read_pc, write_pc): Update.
6620 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
6621 write_pc_pid by regcache_read_pc and regcache_write_pc.
6622 (displaced_step_fixup): Likewise.
6623 (resume): Likewise. Use regcache arch instead of current_gdbarch.
6624 (prepare_to_proceed): Likewise.
6625 (proceed): Likewise.
6626 (adjust_pc_after_break): Likewise.
6627 (handle_inferior_event): Likewise.
6629 * linux-nat.c (cancel_breakpoint): Likewise.
6630 * linux-thread-db.c (check_event): Likewise.
6631 * aix-thread.c (aix_thread_wait): Likewise.
6632 * tracepoint.c (trace_dump_command): Likewise.
6634 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6636 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
6637 SYMBOL_LOCATION_BATON.
6639 2008-05-04 Vladimir Prus <vladimir@codesourcery.com>
6641 * target.h (struct target_ops): New field to_auxv_parse.
6642 * auxv.c (default_auxv_parse): New, renamed from previous
6644 (target_auxv_parse): Try to call target method. Fallback to
6645 default_auxv_parse if not found.
6646 * procfs.c (procfs_auxv_parse): New.
6647 (init_procfs_ops): On Solaris, in 64-bit mode, install
6650 2008-05-03 Adam Nemet <anemet@caviumnetworks.com>
6652 * symfile.c (add_symbol_file_command): Use paddress rather than
6653 hex_string to print the address.
6655 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
6657 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
6658 return the null frame ID to terminate the backtrace.
6660 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
6662 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
6663 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
6664 (SIG_FRAME_PC_OFFSET): Likewise.
6665 (SIG_FRAME_LR_OFFSET): Likewise.
6666 (SIG_FRAME_FP_OFFSET): Likewise.
6667 (rs6000_push_dummy_call): Likewise.
6668 (rs6000_return_value): Likewise.
6669 (rs6000_convert_from_func_ptr_addr): Likewise.
6670 (branch_dest, rs6000_software_single_step): Likewise.
6671 (deal_with_atomic_sequence): Rename to ...
6672 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
6673 Do not call branch_dest; inline required parts of that function.
6674 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
6675 with SYMBOL_LINKAGE_NAME.
6676 (struct reg, regsize): Delete.
6677 (read_memory_addr): Delete; inline into callers.
6678 (rs6000_skip_prologue): Move after skip_prologue.
6679 (skip_prologue): Remove prototype.
6680 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
6681 initialization as if this variable were true. Do not install
6682 ppc64_sysv_abi_adjust_breakpoint_address.
6684 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
6685 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
6687 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
6688 (SIG_FRAME_PC_OFFSET): Likewise.
6689 (SIG_FRAME_LR_OFFSET): Likewise.
6690 (SIG_FRAME_FP_OFFSET): Likewise.
6691 (rs6000_push_dummy_call): Likewise.
6692 (rs6000_return_value): Likewise.
6693 (rs6000_convert_from_func_ptr_addr): Likewise.
6694 (branch_dest, rs6000_software_single_step): Likewise. Replace
6695 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
6696 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
6697 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
6698 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
6699 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
6701 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
6702 (AIX_TEXT_SEGMENT_BASE): New macro.
6703 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
6704 by AIX_TEXT_SEGMENT_BASE.
6706 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
6707 (struct gdbarch_tdep): Remove text_segment_base member.
6708 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
6709 ppc64_sysv_abi_adjust_breakpoint_address.
6711 * Makefile.in (rs6000-tdep.o): Update dependencies.
6712 (rs6000-aix-tdep.o): Likewise.
6714 2008-05-03 Luis Machado <luisgpm@br.ibm.com>
6715 Thiago Jung Bauermann <bauerman@br.ibm.com>
6717 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
6718 * doublest.c (convert_typed_floating): Fix typo in comment.
6719 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6720 * frame-unwind.h (frame_sniffer_ftype): Likewise.
6721 * frame.c (frame_unwind_address_in_block): Likewise.
6722 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
6723 * symtab.h (struct symbol): Likewise.
6724 * tramp-frame.h (struct trad_frame_cache): Likewise.
6725 * value.c (allocate_repeat_value): Likewise.
6727 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
6729 * infrun.c (handle_inferior_event): Do not insert breakpoints at
6730 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
6732 2008-05-03 Pedro Alves <pedro@codesourcery.com>
6734 * parse.c (parse_exp_in_context): Don't override
6735 expression_context_pc if get_selected_block returned a valid
6738 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
6740 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
6741 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
6742 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
6744 * c-typeprint.c (c_type_print_base): Delete handling of template
6746 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
6747 (METHOD_PTR_TO_VOFFSET): Delete.
6748 * defs.h (QUIT_FIXME): Delete.
6749 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
6750 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
6751 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
6752 ninstantiations, and instantiations.
6753 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
6754 (TYPE_FN_FIELD_INLINED): Delete.
6755 * srec.h (SREC_BINARY): Delete.
6756 * symtab.c (symbol_init_demangled_name): Delete.
6757 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
6758 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
6759 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
6760 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
6761 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
6762 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
6763 * target.h (enum thread_control_capabilities): Delete tc_switch.
6764 (target_can_switch_threads): Delete.
6766 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
6768 * Makefile.in (objfiles.o): Update.
6769 * exec.c (exec_set_section_address): Support p->addr != 0.
6770 * objfiles.c (objfile_relocate): Update exec_ops section
6772 * symfile.c (place_section): Move exec_set_section_address call...
6773 (default_symfile_offsets): ...to here.
6775 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
6777 * Makefile.in (ppc_linux_tdep_h): New macro.
6778 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
6779 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
6780 (powerpc_e500l_c): Likewise.
6781 (ppc-linux-nat.o): Update dependencies.
6782 (ppc-linux-tdep.o): Update dependencies.
6783 (rs6000-tdep.o): Update dependencies.
6785 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
6786 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
6787 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
6788 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
6789 (tdesc_powerpc_e500): Remove.
6791 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
6792 and "features/rs6000/powerpc-altivec64.c".
6793 (ppc_supply_reg, ppc_collect_reg): Make global.
6794 (variants): Use tdesc_powerpc_32 for "powerpc" and
6795 tdesc_powerpc_altivec64 for "powerpc64".
6796 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
6798 * ppc-linux-tdep.h: New file.
6800 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
6801 Include "features/rs6000/powerpc-32l.c".
6802 Include "features/rs6000/powerpc-altivec32l.c".
6803 Include "features/rs6000/powerpc-64l.c".
6804 Include "features/rs6000/powerpc-altivec64l.c".
6805 Include "features/rs6000/powerpc-e500l.c".
6806 (ppc_linux_supply_gregset): New function.
6807 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
6808 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
6809 (ppc64_linux_gregset): Likewise.
6810 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
6811 (ppc_linux_trap_reg_p): New function.
6812 (ppc_linux_write_pc): New function.
6813 (ppc_linux_core_read_description): New function.
6814 (ppc_linux_init_abi): Install ppc_linux_write_pc and
6815 ppc_linux_core_read_description. Install orig_r3 and trap
6816 registers if present in the target description.
6817 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
6819 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
6820 (PT_ORIG_R3, PT_TRAP): Define if necessary.
6821 (ppc_register_u_addr): Handle orig_r3 and trap registers.
6822 (fetch_ppc_registers): Likewise.
6823 (store_ppc_registers): Likewise.
6824 (store_register): Likewise.
6825 (ppc_linux_read_description): Check whether AltiVec is supported.
6826 Check whether inferior is 32-bit or 64-bit. Return the appropriate
6827 Linux target description.
6829 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
6830 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
6831 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
6832 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
6833 rs6000/powerpc-e500. Update -expedite variables accordingly.
6835 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
6836 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
6837 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
6838 * features/rs6000/powerpc-e500.c: Regenerate.
6839 * features/rs6000/powerpc-32.c: Regenerate.
6840 * features/rs6000/powerpc-64.c: Regenerate.
6842 * features/rs6000/power-linux.xml: New file.
6843 * features/rs6000/power64-linux.xml: New file.
6844 * features/rs6000/powerpc-32l.xml: New file.
6845 * features/rs6000/powerpc-altivec32l.xml: New file.
6846 * features/rs6000/powerpc-64l.xml: New file.
6847 * features/rs6000/powerpc-altivec64l.xml: New file.
6848 * features/rs6000/powerpc-e500l.xml: New file.
6849 * features/rs6000/powerpc-32l.c: New (generated) file.
6850 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
6851 * features/rs6000/powerpc-64l.c: New (generated) file.
6852 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
6853 * features/rs6000/powerpc-e500l.xml: New (generated) file.
6855 * regformats/reg-ppc.dat: Remove.
6856 * regformats/reg-ppc64.dat: Remove.
6857 * regformats/rs6000/powerpc-32.dat: Remove.
6858 * regformats/rs6000/powerpc-64.dat: Remove.
6859 * regformats/rs6000/powerpc-e500.dat: Remove.
6860 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
6861 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
6862 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
6863 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
6864 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
6866 2008-05-03 Pedro Alves <pedro@codesourcery.com>
6868 * thread.c (delete_thread): Call observer_notify_thread_exit.
6869 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
6870 thread_exit observer.
6871 (mi_thread_exit): New.
6873 2008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6875 * breakpoint.c (create_exception_catchpoint): Remove prototype
6876 for already deleted function.
6877 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
6878 * frame.h (show_stack_frame): Remove prototype.
6879 * stack.c (show_stack_frame): Remove empty, unused function.
6880 * source.c (symtab_to_fullname, print_source_lines): Small fix
6882 * value.c (show_values): Update comments to mention "show values"
6883 command instead of "info history".
6885 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
6887 * linespec.c: Include "target.h".
6888 (minsym_found): Handle minimal symbols pointing to function
6889 descriptors. Use find_function_start_pc.
6890 * minsyms.c (msymbol_objfile): New function.
6891 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
6892 to function descriptors.
6893 * symtab.c (fixup_section): Only use minimal symbol at the same
6894 address to determine section of a symbol.
6895 (find_function_start_pc): New function.
6896 (find_function_start_sal): Use it.
6897 * symtab.h (msymbol_objfile): Add prototype.
6898 (find_function_start_pc): Likewise.
6899 * value.c: Include "objfiles.h".
6900 (value_fn_field): Handle minimal symbols pointing to function
6902 * Makefile.in (linespec.o): Update dependencies.
6903 (value.o): Likewise.
6905 2008-05-02 Joel Brobecker <brobecker@adacore.com>
6907 * ada-lang.c (unwrap_value): Handle the case where the "F" field
6908 inside a PAD type is a bitfield.
6910 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
6912 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
6913 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
6914 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
6915 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
6916 Allow typedefs when checking for function pointer arguments.
6917 Right-align small structs passed on the stack.
6918 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
6919 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
6920 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
6922 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
6924 * Makefile.in (arm-tdep.o): Update.
6925 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
6926 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
6927 (arm_pc_is_thumb): Use mapping symbols.
6928 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
6929 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
6930 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
6931 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
6932 * gdbarch.sh: Add record_special_symbol.
6933 * gdbarch.c, gdbarch.h: Regenerated.
6934 * objfiles.c (struct objfile_data): Add cleanup member.
6935 (register_objfile_data_with_cleanup): New function, from
6936 register_objfile_data.
6937 (register_objfile_data): Use it.
6938 (objfile_free_data): Call clear_objfile_data.
6939 (clear_objfile_data): Call cleanup functions.
6940 * objfiles.h (register_objfile_data_with_cleanup): Declare.
6942 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
6944 * objfiles.c (init_entry_point_info): Handle shared libraries.
6946 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
6948 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
6951 2008-05-02 Jim Blandy <jimb@codesourcery.com>
6952 Pedro Alves <pedro@codesourcery.com>
6954 Implement displaced stepping.
6956 * gdbarch.sh (max_insn_length): New 'variable'.
6957 (displaced_step_copy, displaced_step_fixup)
6958 (displaced_step_free_closure, displaced_step_location): New
6960 (struct displaced_step_closure): Add forward declaration.
6961 * gdbarch.c, gdbarch.h: Regenerated.
6963 * arch-utils.c: #include "objfiles.h".
6964 (simple_displaced_step_copy_insn)
6965 (simple_displaced_step_free_closure)
6966 (displaced_step_at_entry_point): New functions.
6967 * arch-utils.h (simple_displaced_step_copy_insn)
6968 (simple_displaced_step_free_closure)
6969 (displaced_step_at_entry_point): New prototypes.
6971 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
6972 (I386_MAX_MATCHED_INSN_LEN): ... this.
6973 (i386_absolute_jmp_p, i386_absolute_call_p)
6974 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
6975 (i386_displaced_step_fixup): New functions.
6976 (struct i386_insn, i386_match_insn): Update.
6977 (i386_gdbarch_init): Set gdbarch_max_insn_length.
6978 * i386-tdep.h (I386_MAX_INSN_LEN): New.
6979 (i386_displaced_step_fixup): New prototype.
6980 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
6981 Register gdbarch_displaced_step_copy,
6982 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
6983 and gdbarch_displaced_step_location functions.
6985 * infrun.c (debug_displaced): New variable.
6986 (show_debug_displaced): New function.
6987 (struct displaced_step_request): New struct.
6988 (displaced_step_request_queue, displaced_step_ptid)
6989 (displaced_step_gdbarch, displaced_step_closure)
6990 (displaced_step_original, displaced_step_copy)
6991 (displaced_step_saved_copy, can_use_displaced_stepping): New
6993 (show_can_use_displaced_stepping, use_displaced_stepping)
6994 (displaced_step_clear, cleanup_displaced_step_closure)
6995 (displaced_step_dump_bytes, displaced_step_prepare)
6996 (displaced_step_clear_cleanup, write_memory_ptid)
6997 (displaced_step_fixup): New functions.
6998 (resume): Call displaced_step_prepare.
6999 (proceed): Call read_pc once, and remember the value. If using
7000 displaced stepping, don't remove breakpoints.
7001 (handle_inferior_event): Call displaced_step_fixup. Add some
7002 debugging output. When we try to step over a breakpoint, but get
7003 a signal to deliver to the thread instead, ensure the step-resume
7004 breakpoint is actually inserted. If a thread hop is needed, and
7005 displaced stepping is enabled, don't remove breakpoints.
7006 (init_wait_for_inferior): Call displaced_step_clear.
7007 (_initialize_infrun): Add "set debug displaced" command. Add
7008 "maint set can-use-displaced-stepping" command. Clear
7009 displaced_step_ptid.
7010 * inferior.h (debug_displaced): Declare variable.
7011 (displaced_step_dump_bytes): Declare function.
7013 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
7016 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
7018 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
7019 (arm_force_mode_string, arm_show_fallback_mode)
7020 (arm_show_force_mode): New.
7021 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
7023 (_initialize_arm_tdep): Add "set arm fallback-mode"
7024 and "set arm force-mode".
7025 * NEWS: Document new commands.
7027 2008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
7029 * main.h (batch_silent): Declare.
7030 * event-top.c: Include main.h.
7031 (gdb_setup_readline): Remove extern batch_silent declaration.
7032 * infrun.c (normal_stop): Don't print source location when running in
7033 --batch-silent mode.
7034 * Makefile.in (event-top.o): Add main.h dependency.
7036 2008-05-02 Andreas Schwab <schwab@suse.de>
7038 * target.h (struct target_ops): Add
7039 to_watchpoint_addr_within_range.
7040 (target_watchpoint_addr_within_range): New function.
7041 * target.c (update_current_target): Inherit
7042 to_watchpoint_addr_within_range, defaulting to
7043 default_watchpoint_addr_within_range.
7044 (default_watchpoint_addr_within_range): New function.
7045 (debug_to_watchpoint_addr_within_range): New function.
7046 (setup_target_debug): Set to_watchpoint_addr_within_range.
7047 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
7049 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
7050 * breakpoint.c (watchpoints_triggered): Use
7051 target_watchpoint_addr_within_range.
7053 2008-05-01 Pedro Alves <pedro@codesourcery.com>
7055 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
7056 (i[34567]86-*-dicos*, x86_64-*-dicos*):
7057 Set gdb_osabi to GDB_OSABI_DICOS.
7059 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
7060 * osabi.c (gdb_osabi_name): Add "DICOS".
7062 * i386-dicos-tdep.c: New file.
7064 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
7065 (ALLDEPFILES): Add i386-dicos-tdep.c.
7066 (i386-dicos-tdep.o): New rule.
7068 2008-05-01 Pedro Alves <pedro@codesourcery.com>
7070 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
7071 and register the fork's PTID as a thread.
7073 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
7076 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
7077 assign its value to the breakpoint created.
7078 (create_breakpoints): Add breakpoint_ops argument and pass it
7079 to create_breakpoint call.
7080 (break_command_really): Add breakpoint_ops argument and pass/assign
7082 (break_command_1): Pass NULL as ops argument.
7083 (set_breakpoint): Pass NULL as ops argument.
7084 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
7085 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
7086 catch and throw catchpoints.
7088 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
7091 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
7092 translate signal numeric value from the target to GDB's enum
7094 * gdbarch.c, gdbarch.h: Regenerated.
7095 * gdbarch.sh: Added two new functions target_signal_from_host and
7096 target_signal_to_host.
7097 * target.h (default_target_signal_from_host,
7098 default_target_signal_to_host): New functions - declarations.
7099 * signals/signals.c (struct gdbarch): New declaration.
7100 (default_target_signal_to_host, default_target_signal_from_host): New
7103 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
7104 Pedro Alves <pedro@codesourcery.com>
7106 Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff
7107 Johnston <jjohnstn@redhat.com>.
7109 * NEWS: Mention attach to stopped process fix.
7110 * infcmd.c (detach_command, disconnect_command): Discard the thread
7112 * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
7113 attaching. Use signal_stop_state.
7114 (signal_stop_state): Check stop_soon.
7115 * linux-nat.c (kill_lwp): Declare earlier.
7116 (pid_is_stopped, linux_nat_post_attach_wait): New.
7117 (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update
7119 (linux_nat_attach): Use linux_nat_post_attach_wait.
7120 (detach_callback, linux_nat_detach): Improve handling for signalled
7122 (linux_nat_pid_to_str): Always print out the LWP ID if it differs
7123 from the process ID.
7124 * Makefile.in (infcmd.o): Update.
7126 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
7128 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
7129 * arm-tdep.c (arm_frame_is_thumb): New.
7130 (arm_pc_is_thumb): Clarify comment.
7131 (thumb_analyze_prologue): Remove PC special case.
7132 (thumb_scan_prologue): Take a block_addr argument. Use it for
7133 find_pc_partial_function. Remove unused variables.
7134 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
7135 for find_pc_partial_function. Remove PC special case.
7136 (arm_prologue_prev_register): Add special handling for PC and CPSR.
7137 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
7138 (arm_get_next_pc): Use arm_frame_is_thumb.
7139 (arm_write_pc): Use CPSR_T instead of 0x20.
7140 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
7141 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
7143 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
7144 DWARF2_FRAME_REG_FN.
7145 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
7146 DWARF2_FRAME_REG_FN.
7147 (struct dwarf2_frame_state_reg): Add FN to loc union.
7149 2008-05-01 Nick Roberts <nickrob@snap.net.nz>
7151 * exec.c (print_section_info): Add missing '\n'.
7153 2008-05-01 Vladimir Prus <vladimir@codesourcery.com>
7155 * thread.c (add_thread): Move observer call to ...
7156 (add_thread_silent): ... here.
7158 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
7160 * rs6000-tdep.c: Update for unwinder changes.
7161 * ppcobsd-tdep.c: Likewise.
7163 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
7165 * s390-tdep.c: Update for unwinder changes.
7167 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
7169 * spu-tdep.c: Update for unwinder changes.
7171 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7173 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
7174 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
7175 sparc64-linux-tdep.c: Update for unwinder changes.
7177 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7179 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
7180 for unwinder changes.
7181 * mips-tdep.c: Likewise.
7182 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
7185 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7187 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
7190 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7192 Update i386 and amd64 ports for unwinder changes.
7194 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
7195 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
7196 (amd64_frame_unwind): Use default_frame_sniffer.
7197 (amd64_frame_sniffer): Delete.
7198 (amd64_sigtramp_frame_cache): Expect this_frame.
7199 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
7200 (amd64_sigtramp_frame_sniffer): Update signature.
7201 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
7202 (amd64_frame_base_address): Expect this_frame.
7203 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
7205 (amd64_init_abi): Use set_gdbarch_dummy_id and
7206 frame_unwind_append_unwinder.
7207 * i386-tdep.c (i386_frame_cache): Expect this_frame.
7208 (i386_frame_this_id, i386_frame_prev_register): Update signature.
7209 (i386_frame_unwind): Use default_frame_sniffer.
7210 (i386_frame_sniffer): Delete.
7211 (i386_sigtramp_frame_cache): Expect this_frame.
7212 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
7213 (i386_sigtramp_frame_sniffer): Update signature.
7214 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
7215 (i386_frame_base_address): Update signature.
7216 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
7217 (i386_push_dummy_call): Update comment.
7218 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
7220 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
7221 and frame_unwind_append_unwinder.
7222 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
7223 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
7224 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
7225 i386nbsd-tdep.c: Update for unwinder changes.
7227 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7229 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
7230 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
7232 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
7233 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
7234 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
7236 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
7238 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
7240 * tramp-frame.h (struct tramp_frame): Update signature of init.
7241 * Makefile.in (trad-frame.o): Update.
7243 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7245 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
7246 (execute_stack_op): Put this_frame in the baton.
7247 (execute_cfa_program): Take this_frame.
7248 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
7249 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
7250 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
7251 (dwarf2_frame_this_id): Adjust to work on this_frame.
7252 (dwarf2_signal_frame_this_id): Delete.
7253 (dwarf2_frame_prev_register): Update signature. Use new frame
7255 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
7256 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
7257 dwarf2_frame_sniffer.
7258 (dwarf2_append_unwinders): New.
7259 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
7261 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
7262 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
7263 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
7264 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
7265 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
7266 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
7267 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
7268 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
7269 (dwarf2_append_unwinders): Declare.
7270 (dwarf2_frame_base_sniffer): Update declaration.
7271 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
7274 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7276 Convert frame unwinders to use the current frame and
7279 * frame.c (frame_debug): Make global.
7280 (get_frame_id): Pass this frame to unwinder routines.
7281 (frame_pc_unwind): Remove unused unwind->prev_pc support.
7282 (do_frame_register_read): Do not discard the return value of
7283 frame_register_read.
7284 (frame_register_unwind): Remove debug messages. Use
7285 frame_unwind_register_value.
7286 (frame_unwind_register_value, get_frame_register_value): New
7288 (create_new_frame, get_frame_base_address, get_frame_locals_address)
7289 (get_frame_args_address, get_frame_type): Pass this frame to
7291 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
7293 * frame.h: Update comments.
7294 (frame_debug, frame_unwind_register_value, get_frame_register_value)
7295 (frame_prepare_for_sniffer): Declare.
7296 * frame-unwind.h: Update comments and parameter names.
7297 (default_frame_sniffer): Declare.
7298 (frame_prev_register_ftype): Return a struct value *.
7299 (struct frame_unwind): Remove prev_pc member.
7300 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
7301 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
7302 (frame_unwind_got_register, frame_unwind_got_memory)
7303 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
7304 * frame-base.h: Update comments and parameter names.
7305 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
7306 if necessary. Add debugging output.
7307 * sentinel-frame.c (sentinel_frame_prev_register)
7308 (sentinel_frame_this_id): Update for new signature.
7309 (sentinel_frame_prev_pc): Delete.
7310 (sentinel_frame_unwinder): Remove prev_pc.
7311 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
7313 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
7314 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
7315 (frame_unwind_append_sniffer): Delete.
7316 (frame_unwind_append_unwinder): New function.
7317 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
7318 from unwinders. Use frame_prepare_for_sniffer.
7319 (default_frame_sniffer, frame_unwind_got_optimized)
7320 (frame_unwind_got_register, frame_unwind_got_memory)
7321 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
7322 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
7323 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
7325 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
7326 * gdbarch.c, gdbarch.c: Regenerated.
7327 * frame-base.c (default_frame_base_address)
7328 (default_frame_locals_address, default_frame_args_address): Update
7330 (frame_base_find_by_frame): Pass this frame to unwinder routines.
7331 * infcall.c (call_function_by_hand): Update comments.
7332 * Makefile.in (frame-unwind.o): Update dependencies.
7334 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7336 * ada-lang.c (ada_value_primitive_packed_val): Only check
7337 value_lazy for memory lvals.
7338 * findvar.c (value_of_register_lazy): New function.
7339 (locate_var_value): Only check value_lazy for memory lvals.
7340 * valarith.c (value_subscripted_rvalue): Likewise.
7341 * valops.c (value_fetch_lazy): Handle both memory and register
7343 (search_struct_field, value_slice): Only check value_lazy for memory
7345 * value.c (struct value): Update comment for lazy.
7346 (value_primitive_field): Only check value_lazy for memory lvals.
7347 * value.h (value_lazy): Update comment.
7348 (value_of_register_lazy): Declare.
7350 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7352 * corefile.c (reopen_exec_file): Close any open files.
7354 2008-04-29 Joel Brobecker <brobecker@adacore.com>
7356 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
7357 show_memory_breakpoints to 1 while reading the instruction bundle.
7359 2008-04-29 Joel Brobecker <brobecker@adacore.com>
7361 * gdbarch.sh: Document the return_value method. Explain that
7362 the FUNCTYPE parameter might be NULL.
7363 * gdbarch.h: Regenerated.
7364 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
7365 type when calling using_struct_return, as this is unnecessary
7368 2008-04-28 Joel Brobecker <brobecker@adacore.com>
7370 * terminal.h (create_tty_session): Fix return type.
7372 2008-04-26 Vladimir Prus <vladimir@codesourcery.com>
7374 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
7376 2008-04-26 Joel Brobecker <brobecker@adacore.com>
7378 * breakpoint.c (condition_command, commands_from_control_command)
7379 (break_command_really): Minor reformatting.
7381 2008-04-25 Pedro Alves <pedro@codesourcery.com>
7383 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
7385 2008-04-25 Pedro Alves <pedro@codesourcery.com>
7387 * amd64-tdep.c (amd64_get_longjmp_target): New.
7388 (amd64_init_abi): Register amd64_get_longjmp_target as
7389 gdbarch_get_longjmp_target callback.
7390 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
7392 2008-04-25 Pedro Alves <pedro@codesourcery.com>
7394 * breakpoint.h (enum bpstat_what_main_action): Delete
7395 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
7397 * breakpoint.c (clrs): Delete.
7398 (bpstat_what): Update table.
7400 * infrun.c (handle_inferior_event): Remove
7401 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
7403 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
7405 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
7406 Adjust all prototypes using mi_cmd_args_ftype to use
7408 (struct mi_cmd): Remove the args_func field.
7409 * mi/mi-cmds.c: Don't provide value for the args_func field.
7410 * mi/mi-main.c (mi_execute_async_cli_command)
7411 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
7412 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
7413 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
7414 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
7415 (mi_cmd_target_download): Adjust.
7416 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
7417 (mi_cmd_execute): Do not check for args_func.
7418 (mi_execute_async_cli_command): Adjust.
7419 * mi/mi-parse.c: Don't check for args_func.
7421 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
7423 * breakpoint.c (bpstat_check_location)
7424 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
7425 New, extracted from bpstat_stop_status.
7426 (bpstat_stop_status): Use the above.
7428 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
7430 * mi/mi-main.c (last_async_command): Rename to current_token.
7431 (previous_async_command): Remove.
7432 (mi_cmd_gdb_exit): Adjust.
7433 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
7434 (mi_cmd_target_select): Adjust.
7435 (mi_cmd_execute): Don't set previous_async_command. Free token
7436 here even in async mode.
7437 (mi_execute_async_cli_command): Adjust.
7438 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
7440 (mi_load_progress): Adjust.
7442 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
7444 * infcmd.c (step_1_continuation): Always disable longjmp
7445 breakpoint if we're not going to do another step.
7447 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
7449 exec_cleanup murder.
7450 * breakpoint.c (until_break_command_continuation): Add
7451 the 'error' parameter. Directly delete the breakoint as
7452 opposed to running cleanups.
7453 (until_break_command): Install continuation only
7454 after starting the target. Don't use exec cleanups,
7455 use ordinary cleanups. Discard cleanups is successfully
7456 started the target in async mode.
7457 (make_cleanup_delete_breakpoint): Remove.
7458 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
7460 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
7462 (struct continations): Add the 'error' parameter to the
7463 continuation_hook field.
7464 (add_continuation, do_all_continuations)
7465 (add_intermediate_continuation)
7466 (do_all_intermediate_continuations): Add the 'error' parameter.
7467 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
7468 * inf-loop.c (inferior_event_handler): Instead of calling
7469 discard_all_continuations, use do_all_continuations with 1 as
7470 'error' parameter. Pass 0 as 'error' parameter in existing uses
7471 of discard_all_continuations.
7472 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
7474 (step_once): Install continuation only after resuming the target.
7475 (step_1_continuation): Disable longjmp breakpoint on error.
7476 (finish_command_continuation): Add the error parameter. Delete
7477 the finish breakpoint directly, do not use cleanups.
7478 (finish_command): Do not use exec_cleanups. Always setup
7479 continuation. For sync case, immediately run them.
7480 (attach_command_continuation): Add the error parameter.
7481 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
7482 remove step_resume_breakpoint -- adjust delete it directly.
7483 * interps.c (interp_set): Adjust call to do_all_continations.
7484 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
7486 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
7488 (mi_cmd_execute): Do not use exec_cleanup.
7489 (mi_execute_async_cli_command): Simplify the string concatenation
7490 logic. Do no use exec cleanup.
7491 (mi_exec_async_cli_cmd_continuation): New parameter error.
7492 Free last_async_command.
7493 * top.c (command_line_handler_continuation): New parameter error.
7494 * utils.c (exec_cleanup_chain, make_exec_cleanup)
7495 (do_exec_cleanups): Remove.
7496 (add_continuation, do_all_continations)
7497 (add_intermediate_continuation)
7498 (do_all_intermediate_continuations): New parameter error.
7500 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
7502 * breakpoint.h (bp_location_p): New typedef.
7503 Register a vector of bp_location_p.
7504 * breakpoint.c (always_inserted_mode)
7505 (show_always_inserted_mode): New.
7506 (unlink_locations_from_global_list): Remove.
7507 (update_global_location_list)
7508 (update_global_location_list_nothrow): New.
7509 (update_watchpoint): Don't free locations.
7510 (should_insert_location): New.
7511 (insert_bp_location): Use should_insert_location.
7512 (insert_breakpoint_locations): Copied from
7514 (insert_breakpoint): Use insert_breakpoint_locations.
7515 (bpstat_stop_status): Call update_global_location_list
7516 when disabling breakpoint.
7517 (allocate_bp_location): Don't add to bp_location_chain.
7518 (set_raw_breakpoint)
7519 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
7520 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
7521 (enable_overlay_breakpoints, disable_overlay_breakpoints)
7522 (set_longjmp_resume_breakpoint)
7523 (enable_watchpoints_after_interactive_call_stop)
7524 (disable_watchpoints_before_interactive_call_start)
7525 (create_internal_breakpoint)
7526 (create_fork_vfork_event_catchpoint)
7527 (create_exec_event_catchpoint, set_momentary_breakpoint)
7528 (create_breakpoints, break_command_1, watch_command_1)
7529 (create_exception_catchpoint)
7530 (handle_gnu_v3_exceptions)
7531 (disable_breakpoint, breakpoint_re_set_one)
7532 (create_thread_event_breakpoint, create_solib_event_breakpoint)
7533 (create_ada_exception_breakpoint): : Don't call check_duplicates.
7534 Call update_global_location_list.
7535 (delete_breakpoint): Don't remove locations and don't
7536 try to reinsert them. Call update_global_location_list.
7537 (update_breakpoint_locations): Likewise.
7538 (restore_always_inserted_mode): New.
7539 (update_breakpoints_after_exec): Temporary disable
7540 always inserted mode.
7541 * Makefile.in: Update dependencies.
7543 * infrun.c (proceed): Remove breakpoints while stepping
7545 (handle_inferior_event): Don't remove or insert
7547 * linux-fork.c (checkpoint_command): Remove breakpoints
7548 before fork and insert after.
7549 (linux_fork_context): Remove breakpoints before switch
7551 * target.c (target_disconnect, target_detach): Remove
7552 breakpoints from target.
7555 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
7557 * breakpoint.c (print_one_breakpoint_location): In MI
7558 mode, report the location string the breakpoint was
7559 originally created with.
7561 2008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
7563 * Makefile.in (xtensa-tdep.o): Update dependencies.
7564 * configure.tgt (xtensa*): Update dependencies.
7565 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
7566 Local variable areg renamed to arreg.
7567 (areg_number): New function.
7568 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
7569 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
7570 replaced by arreg_number.
7571 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
7572 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
7573 (xtensa_scan_prologue): New function.
7574 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
7575 when ENTRY instraction hasn't been executed yet. Get the frame pointer
7576 value based on prologue analysis. Fix the bugs preventing WS and
7577 AR4-AR7/A11 registers from getting right values for intermediate frames,
7578 whose registers have been already spilled.
7579 (xtensa_frame_prev_register): Fix WS register value. Use are_number
7580 and arreg_number appropriately.
7581 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
7582 svr4_ilp32_fetch_link_map_offsets.
7584 2008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
7586 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
7587 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
7589 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
7591 * acinclude.m4: Add override.m4.
7592 * configure: Regenerate.
7594 2008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7596 * ada-lang.c (get_selections): Variable PROMPT made non-const and
7597 initialized with a trailing space now. Use PROMPT_ARG of
7598 COMMAND_LINE_INPUT instead of printing it ourselves.
7600 2008-04-22 Joel Brobecker <brobecker@adacore.com>
7602 * NEWS: Document support for 64-bit core file.
7604 2008-04-22 Corinna Vinschen <vinschen@redhat.com>
7606 * NEWS: Add information on calling convention and new SH CLI options.
7608 * sh-tdep.c (sh_cc_gcc): New static string.
7609 (sh_cc_renesas): Ditto.
7610 (sh_cc_enum): New static string array.
7611 (sh_active_calling_convention): New static string pointer denoting
7612 active user chosen ABI.
7613 (sh_is_renesas_calling_convention): New function to return function
7614 specific ABI, or user choice if necessary.
7615 (sh_use_struct_convention): Rename first argument and turn around its
7616 meaning. Check for renesas ABI and return accordingly.
7617 (sh_use_struct_convention_nofpu): New function.
7618 (sh_next_flt_argreg): Get function type as third parameter. Check
7619 for renesas ABI and choose floating registers accordingly.
7620 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
7621 struct return slot accordingly.
7622 (sh_push_dummy_call_nofpu): Ditto.
7623 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
7624 Evaluate ABI and give to sh_use_struct_convention_nofpu.
7625 (sh_return_value_fpu): Evaluate ABI and give to
7626 sh_use_struct_convention.
7627 (show_sh_command): New function.
7628 (set_sh_command): Ditto.
7629 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
7632 * gdbarch.sh (return_value): Add func_type argument.
7633 * gdbarch.c: Regenerate.
7635 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
7636 val_type so as not to collide with value_type function. Call
7637 using_struct_return with additional function type argument.
7638 * infcall.c (call_function_by_hand): Call using_struct_return and
7639 gdbarch_return_value with additional function type argument.
7640 * infcmd.c (print_return_value): Take addition func_type argument.
7641 Call gdbarch_return_value with additional function type argument.
7642 (finish_command_continuation): Call print_return_value with additional
7643 function type argument.
7644 (finish_command): Ditto.
7645 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
7646 additional function type argument.
7647 * stack.c (return_command): Call using_struct_return and
7648 gdbarch_return_value with additional function type argument.
7649 * value.c (using_struct_return): Take additional function type argument.
7650 * value.h (using_struct_return): Accommodate declaration.
7651 * alpha-tdep.c (alpha_return_value): Add func_type argument.
7652 * amd64-tdep.c (amd64_return_value): Ditto.
7653 * arm-tdep.c (arm_return_value): Ditto.
7654 * avr-tdep.c (avr_return_value): Ditto.
7655 * cris-tdep.c (cris_return_value): Ditto.
7656 * frv-tdep.c (frv_return_value): Ditto.
7657 * h8300-tdep.c (h8300_return_value): Ditto.
7658 (h8300h_return_value): Ditto.
7659 * hppa-tdep.c (hppa32_return_value): Ditto.
7660 (hppa64_return_value): Ditto.
7661 * i386-tdep.c (i386_return_value): Ditto.
7662 * ia64-tdep.c (ia64_return_value): Ditto.
7663 * iq2000-tdep.c (iq2000_return_value): Ditto.
7664 * m32c-tdep.c (m32c_return_value): Ditto.
7665 * m32r-tdep.c (m32r_return_value): Ditto.
7666 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
7667 * m68k-tdep.c (m68k_return_value): Ditto.
7668 (m68k_svr4_return_value): Ditto.
7669 * m88k-tdep.c (m88k_return_value): Ditto.
7670 * mep-tdep.c (mep_return_value): Ditto.
7671 * mips-tdep.c (mips_eabi_return_value): Ditto.
7672 (mips_n32n64_return_value): Ditto.
7673 (mips_o32_return_value): Ditto.
7674 (mips_o64_return_value): Ditto.
7675 * mn10300-tdep.c (mn10300_return_value): Ditto.
7676 * mt-tdep.c (mt_return_value): Ditto.
7677 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
7678 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
7679 (ppc_sysv_abi_broken_return_value): Ditto.
7680 (ppc64_sysv_abi_return_value): Ditto.
7681 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
7682 (ppc_sysv_abi_broken_return_value): Ditto.
7683 (ppc64_sysv_abi_return_value): Ditto.
7684 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
7685 * rs6000-tdep.c (rs6000_return_value): Ditto.
7686 * s390-tdep.c (s390_return_value): Ditto.
7687 * score-tdep.c (score_return_value): Ditto.
7688 * sh-tdep.c (sh_return_value_nofpu): Ditto.
7689 (sh_return_value_fpu): Ditto.
7690 * sh64-tdep.c (sh64_return_value): Ditto.
7691 * sparc-tdep.c (sparc32_return_value): Ditto.
7692 * sparc64-tdep.c (sparc64_return_value): Ditto.
7693 * spu-tdep.c (spu_return_value): Ditto.
7694 * v850-tdep.c (v850_return_value): Ditto.
7695 * vax-tdep.c (vax_return_value): Ditto.
7696 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
7697 * xtensa-tdep.c (xtensa_return_value): Ditto.
7699 * gdbtypes.h (struct type): Add calling_convention member.
7700 * dwarf2read.c (read_subroutine_type): Add calling convention read
7701 from DW_AT_calling_convention attribute to function type.
7703 2008-04-22 Markus Deuling <deuling@de.ibm.com>
7705 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
7706 multi_f77_subscript to support values from registers.
7707 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
7708 * value.h (value_subscripted_rvalue): Add prototype.
7710 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
7712 * f-valprint.c (f_val_print): Likewise.
7714 2008-04-21 Craig Silverstein <csilvers@google.com>
7716 * dwarf2read.c (zlib_decompress_section): Define abfd in the
7719 2008-04-21 Pedro Alves <pedro@codesourcery.com>
7721 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
7722 section is not a code section.
7724 2008-04-19 Craig Silverstein <csilvers@google.com>
7726 * NEWS: Add information on compressed debug sections.
7728 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
7730 * mi/mi-cmd-var.c (varobj_update_one): Print new
7731 value for variable objects that changed type.
7733 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
7735 * varobj.c (varobj_invalidate): Don't touch floating
7738 2008-04-19 Mark Kettenis <kettenis@gnu.org>
7740 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
7741 (multiple_symbols_cancel): Remove extra const.
7742 * symtab.h: Likewise.
7744 2008-04-19 Nick Roberts <nickrob@snap.net.nz>
7746 * interps.c (top_level_interpreter): Rename static variable...
7747 (top_level_interpreter_ptr): ...to this.
7748 (top_level_interpreter): New function.
7750 * interps.h: New extern for top_level_interpreter.
7752 * linespec.c: Include interps.h and mi/mi-cmds.h.
7753 (decode_line_2): When using MI, always set all breakpoints in menu.
7755 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
7757 2008-04-18 Craig Silverstein <csilvers@google.com>
7759 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
7760 * config.in, configure: Regenerate.
7761 * dwarf2read.c: Include zlib.h if present.
7762 Modified *_SECTION macros.
7763 (section_is_p): New.
7764 (dwarf2_locate_sections): Use section_is_p instead of strcmp
7765 (dwarf2_resize_section): New.
7766 to determine whether a given section has a given name.
7767 (zlib_decompress_section): New.
7768 (dwarf2_read_section): Read the compressed section if present
7770 * MAINTAINERS: Added myself to section Write After Approval.
7772 2008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
7774 * defs.h (exec_set_section_offsets): Remove prototype.
7775 * exec.c (exec_set_section_offsets): Remove function.
7777 2008-04-18 Joel Brobecker <brobecker@adacore.com>
7779 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
7780 in the search for the matching symbol.
7782 2008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
7784 * breakpoint.c (update_watchpoint): Always reparse
7787 2008-04-17 Joel Brobecker <brobecker@adacore.com>
7789 * breakpoint.c (print_one_breakpoint_location): Make sure to print
7790 the breakpoint address only once.
7792 2008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
7794 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
7795 rather than a hard-coded architecture, for xcoff executables.
7797 2008-04-17 Doug Evans <dje@google.com>
7799 * buildsym.c (watch_main_source_file_lossage): New fn.
7800 (end_symtab): Call it.
7802 * source.c (find_and_open_source): Add some comments clarifying
7803 handling of FULLNAME argument. Make static. Remove pointless
7806 2008-04-17 Pedro Alves <pedro@codesourcery.com>
7808 * inf-loop.c (inferior_event_handler): Also run the intermediate
7809 continuations in the INF_EXEC_COMPLETE case.
7811 2008-04-16 Tom Tromey <tromey@redhat.com>
7813 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
7814 (set_cmd_async_ok, get_cmd_async_ok): Declare.
7815 * cli/cli-decode.c (set_cmd_async_ok): New function.
7816 (get_cmd_async_ok): New function.
7817 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
7819 * top.c (execute_command): Use get_cmd_async_ok.
7820 * infcmd.c: Include cli/cli-decode.h.
7821 (_initialize_infcmd): Mark "interrupt" as async-ok.
7822 * Makefile.in (infcmd.o): Depend on cli_decode_h.
7824 2008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
7827 * exec.c: Correct "arch-utils.h" include.
7829 2008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
7832 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
7833 to allow printing to 'see' real reason of stop. This fixes PR 2424.
7834 * breakpoint.c (bpdisp_texst): New function. The function takes over
7835 the role of bpstats static array in print_one_breakpoint_location.
7836 (print_it_typical): Print "Temporary breakpoint" instead
7837 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
7838 protocols, print disp field.
7839 (print_one_breakpoint_location): Removed bpdisps static definition.
7840 Call new bpstat_text function to get value for 'disp' field.
7841 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
7843 2008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
7845 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
7846 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
7847 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
7848 * gnulib/Makefile.in: Regenerate.
7850 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7852 * Makefile.in (GNULIB_H): New. Trigger all-lib.
7853 (defs_h): Use $(GNULIB_H).
7854 (all-lib): Depend on gnulib/Makefile.
7855 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
7856 * config.in, gnulib/Makefile.in: Regenerated.
7858 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7860 * Makefile.in (LIBGNU, INCGNU): Define.
7861 (INTERNAL_CFLAGS_BASE): Add INCGNU.
7862 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
7864 ($(LIBGNU), all-lib): New rules.
7865 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
7866 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
7867 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
7868 * gnulib: New directory, from gnulib-tool.
7869 * configure, aclocal.m4: Regenerated.
7871 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7873 * linux-thread-db.c (have_threads_callback): Check thread->private.
7875 2008-04-13 Nick Roberts <nickrob@snap.net.nz>
7876 Vladimir Prus <vladimir@codesourcery.com>
7879 * varobj.c (value_of_root): Update the expression for
7881 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
7884 2008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
7886 * mi/mi-cmd-var.c: Include "mi-getopt.h".
7887 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
7888 (mi_cmd_var_set_format): Use new mi_parse_format.
7889 (mi_cmd_var_evaluate_expression): Support for -f option to specify
7891 * Makefile.in (mi-cmd-var.o): Update dependencies.
7893 * varobj.h (varobj_get_formatted_value): Declare.
7894 * varobj.c (my_value_of_variable): Added format parameter.
7895 (cplus_value_of_variable): Likewise.
7896 (java_value_of_variable): Likewise.
7897 (c_value_of_variable): Likewise. Evaluate expression based
7898 on format parameter.
7899 (struct language_specific): Add format parameter to function member
7901 (varobj_get_formatted_value): New.
7902 (varobj_get_value): Added format parameter to method call.
7904 2008-04-08 Joel Brobecker <brobecker@adacore.com>
7906 * stabsread.c (cleanup_undefined_types_noname): Manually set the
7907 instance flags of the undefined type before calling replace_type.
7909 2008-04-08 Vladimir Prus <vladimir@codesourcery.com>
7911 * target.h (enum strata): Remove the download_stratum.
7913 2008-04-07 Doug Evans <dje@google.com>
7915 * buildsym.h (last_source_file): Add dwarf info to comment.
7916 (last_source_start_addr): Ditto.
7918 2008-04-07 Pedro Alves <pedro@codesourcery.com>
7920 * alphanbsd-tdep.c: Include "target.h".
7921 * mn10300-tdep.c: Include "target.h".
7922 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
7924 2008-04-06 Vladimir Prus <vladimir@codesourcery.com>
7926 Fix breakpoint condition that use member variables.
7927 * valops.c (check_field): Remove.
7928 (check_field_in): Rename to check_field.
7929 (value_of_this): Use la_name_of_this.
7930 * value.h (check_field): Adjust prototype.
7932 * language.h (la_value_of_this): Rename to la_name_of_this.
7933 * language.c (unknown_language_defn): Specify "this" for
7935 (auto_language_defn): Likewise.
7936 (local_language_defn): Likewise.
7937 * ada-lang.c (ada_language_defn): Adjust comment.
7938 * c-lang.c (c_language_defn): Adjust comment.
7939 (cplus_language_defn): Specify "this" for name_of_this.
7940 (asm_language_defn): Adjust comment.
7941 (minimal_language_defn): Adjust comment.
7942 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
7943 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
7944 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
7945 * objc-lang.c (objc_language_defn): Specify "self" for
7947 * p-lang.c (pascal_language_defn): Specify "this" for
7949 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
7951 * symtab.c (lookup_symbol_aux): Lookup "this" in the
7952 proper scope, and check for field in type of "this", without
7953 trying to create a value.
7955 2008-04-04 Pedro Alves <pedro@codesourcery.com>
7957 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
7958 (mi_error_message): Delete declaration.
7959 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
7960 returning MI_CMD_ERROR.
7961 * mi/mi-main.c (mi_error_message): Delete.
7962 (mi_cmd_exec_interrupt):
7963 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
7964 (mi_cmd_thread_info): Call error instead of returning
7966 (mi_cmd_data_list_register_values): Call error instead of
7967 returning MI_CMD_ERROR. Adapt to new get_register interface.
7968 (get_register): Change return typo to void. Call error instead of
7969 returning MI_CMD_ERROR.
7970 (mi_cmd_data_write_register_values): Call error instead of
7971 returning MI_CMD_ERROR.
7972 (mi_cmd_list_features): Return MI_CMD_DONE.
7973 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
7974 (mi_execute_command): Always print exceptions with -error.
7976 2008-04-04 Joel Brobecker <brobecker@adacore.com>
7978 * NEWS: Mention new commands set/show multiple-symbols.
7980 2008-04-03 Joel Brobecker <brobecker@adacore.com>
7982 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
7983 (multiple_symbols_cancel): New constants.
7984 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
7985 (multiple_symbols_select_mode): New function.
7986 (_initialize_symtab): Add new set/show multiple-symbols commands.
7987 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
7988 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
7989 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
7991 * linespec.c (decode_line_2): Likewise.
7993 2008-04-03 Doug Evans <dje@sebabeach.org>
7995 * symtab.h (enum free_code): Delete free_contents, unused.
7996 * symmisc.c (free_symtab_block): Delete.
7997 (free_symtab, case free_code): Delete.
7999 2008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8001 * valops.c (value_cast_structs): New function. Cast related
8002 STRUCT types up/down and return cast value. The body of this
8003 function comes mostly from value_cast_pointers.
8004 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
8005 to value_cast_structs. Now value_cast_pointers needs only create
8006 appropriate reference after using value_cast_structs for actual
8008 (value_cast): Handle references.
8010 2008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
8012 * MAINTAINERS: Added myself to section Write After Approval.
8014 2008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8016 * ia64-tdep.c (examine_prologue): Correct array access.
8018 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
8020 * cp-support.c (first_component_command): Return if no arguments.
8022 2008-03-28 Carlos O'Donell <carlos@codesourcery.com>
8024 * ser-mingw.c (ser_windows_open): Open requested name.
8026 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
8028 * MAINTAINERS: Added myself.
8030 2008-03-28 Pedro Alves <pedro@codesourcery.com>
8032 * target.c (find_default_run_target): Allow a NULL `do_mesg'
8033 parameter. If it is NULL, don't call error.
8034 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
8035 `do_mesg' parameter to find_default_run_target. If no target was
8038 2008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
8040 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
8041 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
8042 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
8044 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
8046 2008-03-27 Joel Brobecker <brobecker@adacore.com>
8050 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8052 * features/Makefile (%.dat): Set xmltarget to the base filename
8053 of the XML source, without subdirectory.
8054 * regformats/rs6000/powerpc-32.dat: Regenerate.
8055 * regformats/rs6000/powerpc-64.dat: Regenerate.
8056 * regformats/rs6000/powerpc-e500.dat: Regenerate.
8058 2008-03-27 Markus Deuling <deuling@de.ibm.com>
8060 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
8063 2008-03-27 Nick Roberts <nickrob@snap.net.nz>
8065 * mi/mi-main.c (enum captured_mi_execute_command_actions):
8066 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
8068 2008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8070 * objfiles.h (struct objfile): New GDBARCH member.
8071 (get_objfile_arch): Add prototype.
8072 * objfiles.c: Include "arch-utils.h".
8073 (allocate_objfile): Look up gdbarch associated with bfd.
8074 (get_objfile_arch): New function.
8075 * Makefile (objfiles.o): Update dependencies.
8077 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
8079 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
8081 (locexpr_describe_location): Replace current_gdbarch by
8083 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
8084 (dwarf2_add_field): Likewise.
8085 (read_tag_pointer_type): Likewise.
8086 (read_base_type): Likewise.
8087 (new_symbol): Likewise.
8089 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
8090 (decode_base_type, decode_function_type): Likewise.
8091 (coff_read_struct_type, coff_read_enum_type): Likewise.
8092 (coff_symtab_read): Replace current_gdbarch by objfile arch.
8093 (decode_base_type): Likewise.
8094 (coff_read_enum_type): Likewise.
8095 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
8096 (coff_read_enum_type): Likewise.
8098 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
8099 (end_psymtab): Likewise.
8100 (process_one_symbol): Likewise.
8102 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
8103 (parse_procedure): Likewise.
8104 (parse_partial_symbols): Likewise.
8106 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
8108 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
8109 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
8111 (read_range_type): Replace current_gdbarch by objfile arch. Replace
8112 static range_index_type by built-in type.
8113 (read_one_struct_field): Replace current_gdbarch by objfile arch.
8114 (read_enum_type): Likewise.
8116 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
8119 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
8121 * varobj.h (varobj_floating_p): Declare.
8122 * varobj.c (varobj_floating_p): New.
8123 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
8124 '@' as the name, update all floating varobjs.
8126 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
8128 * varobj.c (struct varobj_root): Rename use_selected_frame to
8129 floating, and clarify the meaning.
8130 (varobj_create, varobj_update, new_root_variable): Adjust.
8131 (value_of_root): Don't use type_changed as in variable,
8133 (c_value_of_root): Adjust.
8135 2008-03-25 Pedro Alves <pedro@codesourcery.com>
8137 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
8139 (linux_nat_wait): Add main lwp to gdb's thread list.
8140 * linux-thread-db.c (find_new_threads_callback): Also attach to
8141 already listed threads which thread_db didn't know about yet.
8143 2008-03-25 Pedro Alves <pedro@codesourcery.com>
8145 * linux-nat.c (drain_queued_events): Fix comment typo.
8146 (linux_nat_attach): In async mode, don't rely on storing a pending
8147 status. Instead place the wait status on the pipe.
8148 (linux_nat_resume): Remove unreacheable shortcut code in async
8150 (stop_wait_callback): In async mode, don't store pending status.
8151 Instead, cancel breakpoints or resend the signal appropriatelly.
8152 (cancel_breakpoint): New, refactored from
8153 cancel_breakpoints_callback.
8154 (cancel_breakpoints_callback): Call cancel_breakpoint.
8155 (pipe_to_local_event_queue): Remove special token processing.
8156 (linux_nat_wait): Issue an internal error if a pending status is
8157 found in async mode.
8159 2008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8161 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
8163 2008-03-24 Nick Roberts <nickrob@snap.net.nz>
8164 Vladimir Prus <vladimir@codesourcery.com>
8166 * varobj.c (struct varobj_root): New component thread_id.
8167 (varobj_get_thread_id, check_scope): New functions.
8168 (c_value_of_root): Use check_scope. Switch to the
8169 proper thread if necessary.
8171 * varobj.h (varobj_get_thread_id): New extern.
8173 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
8175 2008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
8178 * top.c: Revert 2008-03-21 changes.
8180 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
8182 * thread.c (make_cleanup_restore_current_thread): Make it
8184 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8185 * varobj.c (varobj_update): Don't save/restore frame.
8186 (c_value_of_root): Save/restore thread and frame here,
8187 using make_cleanup_restore_current_thread.
8188 * Makefile.in: Update dependecies.
8190 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
8192 * varobj.c (struct varobj_root): Clarify
8193 comment on the frame field.
8194 (varobj_create): Don't set frame if we have no
8197 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8200 Suggested by Jan Kratochvil:
8201 * top.c (gdb_rl_operate_and_get_next_completion): Call
8202 rl_redisplay_function.
8203 (gdb_rl_redisplay): New.
8204 (init_main): Set rl_redisplay_function.
8206 2008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
8208 * aix-thread.c (pdc_read_regs): Fix compiler warning.
8209 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
8210 (store_regs_kernel_thread): Likewise.
8212 2008-03-21 Pedro Alves <pedro@codesourcery.com>
8214 Linux native async support.
8216 * target.h (struct target_ops): Delete to_async_mask_value and add
8218 (target_is_async_p, target_async): Formatting.
8219 (target_async_mask_value): Delete.
8220 (target_async_mask): Delete function declaration, and add new
8221 target macro with the same name.
8223 * target.c (update_current_target): Replace to_async_mask_value by
8224 to_async_mask. Default to_async_mask to return_one.
8225 (target_async_mask): Delete.
8226 (find_default_can_async_p, find_default_is_async_p): New.
8227 (init_dummy_target): register find_default_can_async_p and
8228 find_default_is_async_p on the dummy target.
8230 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
8231 (debug_linux_nat_async): New global.
8232 (show_debug_linux_nat_async): New function.
8233 (linux_nat_async_enabled, linux_nat_async_mask_value)
8234 (linux_nat_event_pipe, linux_nat_num_queued_events)
8235 (linux_nat_async_events_enabled): New globals.
8236 (struct waitpid_result): New struct.
8237 (waitpid_queue): New global.
8238 (queued_waitpid, push_waitpid, drain_queued_events): New.
8239 (my_waitpid): Call queued_waitpid.
8240 (linux_child_follow_fork): Disable async events during the call.
8241 (blocked_mask): Delete.
8242 (sync_sigchld_action, async_sigchld_action): New globals.
8243 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
8244 async mode, block events during the call.
8245 (linux_nat_create_inferior): New.
8246 (linux_nat_attach): In sync mode, restore the mask states. In
8247 async mode, wake the event loop immediatelly.
8248 (detach_callback): Drain all queued events of the lwp we're
8250 (linux_nat_detach): Block async mode, and drain events of the main
8252 (linux_nat_resume): If in async mode, mask async events during the
8253 call. If short circuiting, force event loop to wake up. If
8254 resuming, set target_executing, and register target events in the
8256 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
8257 (linux_nat_wait): In async mode, block events during the call.
8258 Only enable/disable passing SIGINT to the inferior in sync mode.
8259 Get events from local waitpid queue. If no interesting events was
8260 found, return to events loop. Reregister target events in the
8261 event loop on exit. In sync mode, no need to reblock SIGCHLD.
8262 (linux_nat_kill): Disable events on entry.
8263 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
8264 here. Detach async mode from the event loop if there are no more
8265 forks available, otherwise leave it on.
8266 (sigchld_handler): Assure this is called only in sync mode.
8267 (linux_async_permitted, linux_async_permitted_1): New globals.
8268 (set_maintenance_linux_async_permitted)
8269 (show_maintenance_linux_async_permitted): New functions.
8270 (linux_nat_is_async_p, linux_nat_can_async_p)
8271 (linux_nat_async_mask): New.
8272 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
8273 (get_pending_events, async_sigchld_handler): New.
8274 (linux_nat_async_events): New.
8275 (async_terminal_is_ours): New global.
8276 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
8277 (async_client_callback, async_client_context): New.
8278 (linux_nat_async_file_handler, linux_nat_async)
8279 (linux_nat_disable_async, linux_nat_enable_async): New.
8280 (linux_nat_add_target): Register linux_nat_create_inferior,
8281 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
8282 linux_nat_async_mask, linux_nat_terminal_inferior and
8283 linux_nat_terminal_ours.
8284 (_initialize_linux_nat): Remove local action variable, and update
8285 code that used it to use sync_sigchld_action. Add new
8286 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
8287 set/show command in the maintenance class. Add new "linux-async"
8288 maintenance set/show command. Block SIGCHLD by default. Setup
8289 async_sichld_action, and sync_sigchld_action. Install the default
8291 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
8294 * linux-thread-db.c (re_check_for_thread_db): New.
8295 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
8296 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
8297 (thread_db_async_mask): New.
8298 (init_thread_db_ops): Register thread_db_can_async_p,
8299 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
8301 * remote.c (remote_async_mask_value): New.
8302 (remote_return_zero): New.
8303 (init_remote_ops): Register remote_return_zero as callbacks of
8304 to_can_async_p and to_is_async_p.
8305 (remote_can_async_p, remote_is_async_p, remote_async): Update to
8306 use remote_async_mask_value.
8307 (remote_async_mask): New.
8308 (init_remote_async_ops): Remove to_async_mask_value setting and
8309 register remote_async_mask as to_async_mask callback in
8312 * Makefile.in (linux-nat.o): Update.
8314 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8316 * gdbthread.h (add_thread_with_info): New.
8317 * linux-thread-db.c: Add some documentation.
8318 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
8319 (struct private_thread_info): Remove th_valid and ti_valid.
8320 Replace ti with tid.
8321 (thread_get_info_callback): Do not add TID to the new ptid. Do
8323 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
8324 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
8326 (attach_thread): Handle an already-existing thread. Use
8327 add_thread_with_info. Cache the th and tid.
8328 (detach_thread): Verify that private was set. Remove verbose
8329 argument and printing. Update caller.
8330 (thread_db_detach): Do not adjust inferior_ptid.
8331 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
8332 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
8333 (thread_db_wait): Do not use lwp_from_thread.
8334 (thread_db_pid_to_str): Use the cached TID.
8335 (thread_db_extra_thread_info): Check that private is set.
8336 (same_ptid_callback): Delete.
8337 (thread_db_get_thread_local_address): Do not use it or check
8338 is_thread. Check that private is set. Assume that the thread
8339 handle is already cached.
8340 (init_thread_db_ops): Remove to_resume and to_kill.
8341 * thread.c (add_thread_with_info): New.
8342 (add_thread): Use it.
8343 * linux-nat.c (find_thread_from_lwp): Delete.
8344 (exit_lwp): Do not use it. Check print_thread_events. Print before
8345 deleting the thread.
8346 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
8347 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
8348 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
8349 printf_unfiltered for thread exits.
8350 * procfs.c (procfs_wait): Likewise.
8352 2008-03-21 Chris Demetriou <cgd@google.com>
8354 * symtab.c (rbreak_command): Quote symbol name before passing
8355 it to break_command.
8357 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8359 * eval.c (evaluate_subexp_for_address): Clarify error message.
8360 Use value_must_coerce_to_target.
8361 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
8362 * valops.c (value_assign): Call value_coerce_to_target when
8363 assigning to anything but internalvars. Leave GDB-side arrays
8364 as arrays when assigning to internalvars.
8365 (value_must_coerce_to_target, value_coerce_to_target): New.
8366 (value_coerce_array, value_addr): Call value_coerce_to_target.
8367 (value_array): Create the array in GDB's memory instead of
8369 * value.h (value_must_coerce_to_target, value_coerce_to_target):
8372 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8374 * top.c (quit_confirm): Warn that we will kill the program.
8376 2008-03-19 Pedro Alves <pedro@codesourcery.com>
8378 * inflow.c (terminal_ours_1): Guard access to
8379 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
8381 2008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
8382 Jim Blandy <jimb@codesourcery.com>
8383 Daniel Jacobowitz <drow@false.org>
8385 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
8386 (dwarf2_read_address): Update prototype.
8388 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
8389 (signed_address_type): Likewise.
8390 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
8391 (execute_stack_op): Update calls to unsigned_address_type,
8392 signed_address_type and dwarf2_read_address. Fix implementation
8393 of DW_OP_deref_size.
8395 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
8396 (dwarf2_per_cu_addr_size): Likewise.
8397 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
8398 (struct dwarf2_loclist_baton): Likewise.
8400 * dwarf2loc.c (find_location_expression): Update calls to
8401 dwarf2_read_address. Use dwarf2_per_cu_objfile and
8402 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
8403 (locexpr_describe_location): Likewise.
8404 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
8405 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
8406 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
8407 to dwarf2_per_cu_addr_size (per_cu).
8408 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
8409 (loclist_read_variable): Likewise.
8410 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
8412 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
8413 instead of baton->objfile.
8414 (dwarf2_per_cu_obfile): New function.
8415 (dwarf2_per_cu_addr_size): Likewise.
8417 * dwarf2-frame.c (struct comp_unit): Move higher.
8418 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
8419 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
8420 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
8421 parameter by using fde->eh_frame_p. Use read_encoded_value
8422 to implement DW_CFA_set_loc.
8423 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
8424 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
8425 execute_stack_op and execute_cfa_program.
8426 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
8427 (size_of_encoded_value): Remove.
8428 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
8429 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
8430 (add_cie): Set cie->unit backlink.
8431 (decode_frame_entry_1): Set cie->addr_size. Update calls to
8433 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
8435 2008-03-17 Markus Deuling <deuling@de.ibm.com>
8437 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
8438 gdbarch_bfd_arch_info.
8440 2008-03-17 Joel Brobecker <brobecker@adacore.com>
8442 * aix-thread.c (pdc_read_regs): Minor reformatting.
8444 2008-03-17 Vladimir Prus <vladimir@codesourcery.com>
8446 * thread.c (print_thread_info): Don't insist
8447 on having current thread if there are no
8450 2008-03-17 Pedro Alves <pedro@codesourcery.com>
8452 * infcmd.c (attach_command_post_wait)
8453 (attach_command_continuation): New.
8454 (attach_command): Support background async execution, and async
8455 execution in synchronous mode.
8457 2008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
8459 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
8460 * symmisc.c (dump_symtab_1): Likewise.
8461 * wrapper.c (gdb_value_struct_elt): Likewise.
8463 2008-03-17 Pedro Alves <pedro@codesourcery.com>
8465 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
8467 2008-03-17 Pedro Alves <pedro@codesourcery.com>
8469 * linux-nat.c (linux_nat_filter_event): New, refactored from
8471 (linux_nat_wait): Call linux_nat_filter_event.
8473 2008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
8475 * top.c (execute_command): Fix uninitialized variable error.
8477 2008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
8479 * Makefile.in (amd64nbsd-nat.o): New dependency.
8480 * amd64nbsd-nat.c: Include "nbsd-nat.h".
8481 (_initialize_amd64nbsd_nat): Update target vector to use
8482 nbsd_pid_to_exec_file.
8483 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
8485 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
8487 Remove ignoring leading exec events code.
8488 * fork-child.c (startup_inferior): Do not set
8489 inferior_ignoring_leading_exec_events.
8490 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
8491 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
8492 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
8493 (handle_inferior_event): Remove code for ignoring leading exec
8495 * target.c (update_current_target): Do not inherit, or default,
8496 to_reported_exec_events_per_exec_call.
8497 (debug_to_reported_exec_events_per_exec_call): Remove.
8498 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
8499 * target.h (target_reported_exec_events_per_exec_call): Remove.
8500 (struct target): Remove the to_reported_exec_events_per_exec_call
8503 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
8505 Implement -thread-info.
8506 * gdbthread.h (print_thread_info): Declare.
8508 * thread.c (print_thread_info): New, extracted
8509 from info_threads_command and adjusted to
8510 work for CLI and MI.
8511 (info_threads_command): Use print_thread_info.
8512 * Makefile.in: Update dependencies.
8514 * mi/mi-cmds.c (mi_cmds): Specify a handler
8516 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
8517 * mi/mi-main.c (mi_cmd_thread_info): New.
8518 (mi_cmd_list_features): Include 'thread-info'.
8520 2008-03-14 Kevin Buettner <kevinb@redhat.com>
8522 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
8523 to decide whether to match instruction patterns using "sw" and "sd".
8525 2008-03-14 Pedro Alves <pedro@codesourcery.com>
8527 * infcmd.c (jump_command): Postpone disabling stdin until after
8530 2008-03-14 Pedro Alves <pedro@codesourcery.com>
8532 * inflow.c (gdb_getpgrp): New.
8533 (gdb_has_a_terminal): Use get_getpgrp.
8534 (terminal_ours_1): If attach_flag is set, don't refetch
8535 inferior_process_group.
8537 2008-03-14 Pedro Alves <pedro@codesourcery.com>
8539 * features/library-list.dtd: Allow "section" elements as children
8540 of "library". Add "section" element and describe its attributes.
8542 * solib-target.c (struct lm_info): Add section_bases member.
8543 (library_list_start_segment): Error out if seen a section element.
8544 (library_list_start_section): New.
8545 (library_list_end_library): New.
8546 (solib_target_free_library_list): Free section_bases.
8547 (section_attributes): New.
8548 (library_children): Make "segment" optional. Add "section" child.
8549 (library_list_children): Register library_list_end_library.
8550 (solib_target_relocate_section_addresses): Handle section bases.
8552 * NEWS: Mention new qXfer:libraries:read section offsets support.
8554 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
8556 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
8557 (make_exec_error_cleanup): Remove declarations.
8558 * utils.c (exec_error_cleanup_chain): Remove.
8559 (do_exec_error_cleanups, discard_exec_error_cleanups)
8560 (make_exec_error_cleanup): Remove.
8561 * event-loop.c (start_event_loop): Adjust call to
8563 * event-top.c (async_enable_stdin): Remove the paramater dummy.
8564 (async_disable_stdin): Don't register async_enable_stdin via
8566 * inf-loop.c (inferior_event_handler): Don't
8567 call do_exec_error_cleanups. Call async_enable_stdin instead.
8568 * event-loop.c (start_event_loop): Adjust call to
8570 * tui/tui-interp.c (tui_command_loop): Adjust call to
8573 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
8576 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
8577 * breakpoint.c (bpstat_do_actions): In async mode,
8578 don't jump to top expecting stop_bpstat to be already
8580 * event-loop.c (start_event_loop): Call async_enable_stdin
8582 * event-top.c (async_enable_stdin): Do nothing if sync_execution
8584 (command_handler): Do not setup continuation here.
8585 (command_line_handler_continuation): Move to...
8586 * top.c (command_line_handler_continuation): ... here.
8587 (execute_command): In async mode, register continuation.
8588 Don't check frame's language in running in async mode.
8589 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
8590 * inf-loop.c (complete_execution): Inline into...
8591 (inferior_event_handler): ... here. Clear target_executing before
8592 doing any cleanups. Don't try to show prompt if the target was
8594 * infcmd.c (signal_command): Add support for async mode.
8595 (finish_command): Only add continuation if the target was
8596 successfully resumed.
8597 * remote.c (init_async_opts): Register to_get_thread_local_address
8599 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
8600 with sync_execution.
8601 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
8604 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8606 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
8607 * exec.c (exec_bfd_mtime): Define.
8608 (exec_close): Clear it.
8609 (exec_file_attach): Set it.
8610 * gdbcore.h (exec_bfd_mtime): Declare.
8611 * source.c (find_source_lines): Do not use bfd_get_mtime.
8613 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
8615 * top.c (simplified_command_loop): Remove.
8617 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
8619 Remove unused remote.c hooks.
8620 * remote.c (deprecated_target_resume_hook)
8621 (deprecated_target_wait_loop_hook): Remove.
8622 (remote_resume): Do not call deprecated_target_resume_hook.
8623 (remote_wait): Do not call deprecated_target_wait_loop_hook.
8624 (remote_async_wait): Likewise.
8626 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
8628 Implement MI notification for new threads.
8629 * doc/observer.texi (new_thread): Document.
8630 * observer.sh: Forward declare struct thread_info.
8631 * thread.c (add_thread): Notify observer.
8633 * interps.h (interp_init_ftype): New parameter
8635 (interp_set): Likewise.
8636 (top_level_interpreter_data): Declare.
8637 * interps.c (interp_set): New parameter top_level.
8638 Pass it to interpreter's init function. Remember
8639 top level interpreter.
8640 (interpreter_exec_cmd): Adjust.
8641 (top_level_interpreter_data): New.
8642 * main.c (captured_main): Pass 1 for top_level
8643 parameter of interp_set.
8644 * cli/cli-interp.c (cli_interpreter_init): New
8645 parameter top_level.
8646 * tui/tui-interp.c (tui_init): New parameter top_level.
8648 * mi/mi-interp.c (mi_new_thread): New.
8649 (mi_interpreter_init): If top level, register
8650 observer for new threads.
8652 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
8654 2008-03-14 Pedro Alves <pedro@codesourcery.com>
8656 * top.c (execute_command): Disable break and stop
8657 commands in async mode.
8659 2008-03-14 Pedro Alves <pedro@codesourcery.com>
8662 2008-03-14 Pedro Alves <pedro@codesourcery.com>
8663 * inf-loop.c (inferior_event_handler): Don't include remote.h.
8664 Call target_stop in the INF_QUIT_REQ case.
8665 * Makefile.in (inf-loop.o): Update.
8667 2008-03-14 Pedro Alves <pedro@codesourcery.com>
8669 * inf-loop.c (inferior_event_handler): Don't include remote.h.
8670 Call target_stop in the INF_QUIT_REQ case.
8671 * Makefile.in (inf-loop.o): Update.
8673 2008-03-14 Pedro Alves <pedro@codesourcery.com>
8675 * top.c (execute_command): Enable break, info and interrupt
8676 commands in async mode.
8678 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
8679 Daniel Jacobowitz <dan@codesourcery.com>
8681 * breakpoint.h (breakpoint_restore_shadows): New
8683 * breakpoint.c (breakpoint_restore_shadows): New.
8684 (read_memory_nobpt): Delete.
8685 * gdbcore.h (read_memory_nobpt): Delete declaration.
8686 * target.c (memory_xfer_partial): Call
8687 breakpoint_restore_shadows.
8688 (restore_show_memory_breakpoints)
8689 (make_show_memory_breakpoints_cleanup): New.
8690 (show_memory_breakpoints): New.
8691 * target.h (make_show_memory_breakpoints_cleanup): Declare.
8692 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
8693 Make sure we see memory breakpoints when checking if
8694 breakpoint is still there.
8695 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
8696 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
8697 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
8698 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
8700 2008-03-12 Pedro Alves <pedro@codesourcery.com>
8702 * thread.c (add_thread): Use printf_unfiltered to print.
8704 2008-03-12 Joel Brobecker <brobecker@gnat.com>
8706 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
8707 that is true only on x86-solaris and x86_64-solaris.
8708 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
8709 with proc_get_LDT_entry.
8711 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
8713 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
8714 * config.in, configure: Regenerate.
8715 * fork-child.c (fork_inferior): Call create_tty_session.
8716 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
8717 (create_tty_session): New function.
8718 * terminal.h: Declare create_tty_session.
8720 2008-03-12 Alan Modra <amodra@bigpond.net.au>
8723 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
8724 * mipsread.c: Include elf/internal.h.
8725 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
8728 2008-03-11 Markus Deuling <deuling@de.ibm.com>
8730 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
8731 to get at the current architecture and at the target specific vector.
8732 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
8733 remove define of I387_ST0_REGNUM.
8735 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
8737 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
8738 get at the current architecture
8739 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
8742 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
8743 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
8745 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
8746 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
8747 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
8749 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
8750 at the target specific vector.
8752 (i386_get_longjmp_target): Use get_frame_arch to get at the current
8753 architecture. Use gdbarch_tdep to get at the target specific vector.
8755 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
8756 update caller. Use gdbarch_tdep to get at the target specific vector.
8758 (i386_register_to_value: Use get_frame_arch to get at the current
8761 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
8764 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
8765 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
8766 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
8767 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
8769 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
8772 (i387_convert_register_p, i387_register_to_value,
8773 i387_value_to_register): Update call for i386_fp_regnum_p.
8775 * i387-tdep.h: Remove comment.
8776 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
8777 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
8778 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
8779 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
8780 I387_MXCSR_REGNUM): Add target specific vector as parameter.
8782 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
8784 * Makefile.in (fork-child.o): Update.
8785 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
8786 argument. Gather all gdbserver features together.
8787 * fork-child.c (exec_wrapper): New variable.
8788 (fork_inferior): Use it.
8789 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
8790 (unset_exec_wrapper_command, _initialize_fork_child): New.
8792 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
8794 * source.c (directory_command): Modify the determination of
8795 condition of terminal "from_tty".
8797 2008-03-10 Matt Rice <ratmice@gmail.com>
8799 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
8801 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
8803 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
8804 of the data passing to strtoulst function.
8805 (info_spu_signal_command): Likewise.
8807 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
8809 * mi/mi-interp.c (mi_command_loop): Remove
8812 2008-03-07 Joel Brobecker <brobecker@adacore.com>
8814 * remote.c (extended_remote_attach_1): Make local variable pid an int
8817 2008-03-07 Joel Brobecker <brobecker@adacore.com>
8819 * solib-svr4.c (svr4_same_1): New function, originally extracted
8820 from svr4_same and expanded to handle the sparc64 case.
8821 (svr4_same): Move up and reimplement using svr4_same_1.
8822 (enable_break): Use svr4_same_1 to do shared library name comparisons.
8824 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
8826 * MAINTAINERS: Move self to Paper trail.
8828 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
8830 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
8831 * event-loop.c (call_async_signal_handler): New.
8832 * event-loop.h (call_async_signal_handler)
8833 (gdb_call_async_signal_handler): Declare.
8834 (mark_async_signal_handler): Add comments.
8835 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
8836 * mingw-hdep.c (sigint_event, sigint_handler): New.
8837 (gdb_select): Use them. Wait for the readline signal handler
8839 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
8840 * posix-hdep.c (gdb_call_async_signal_handler): New function.
8841 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
8843 (remote_fileio_ctrl_c_signal_handler): Use
8844 gdb_call_async_signal_handler.
8845 (initialize_remote_fileio): Initialize sigint_fileio_token.
8846 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
8847 not initialize tokens here.
8848 (handle_remote_sigint_twice): Likewise. Reinstall
8849 handle_remote_sigint.
8850 (async_remote_interrupt_twice): Just call interrupt_query.
8851 (cleanup_sigint_signal_handler): Do not delete tokens.
8852 (remote_interrupt, remote_interrupt_twice): Use
8853 gdb_call_async_signal_handler.
8854 (interrupt_query): Reinstall the default signal handler.
8855 (_initialize_remote): Initialize tokens here.
8857 2008-03-04 Joel Brobecker <brobecker@adacore.com>
8859 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
8860 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
8861 Change the type of the lr register to code_ptr.
8862 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
8863 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
8864 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
8865 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
8866 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
8867 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
8868 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
8870 2008-03-03 James E. Wilson <wilson@tuliptree.org>
8872 * MAINTAINERS: Update my email address.
8874 2008-03-03 Keith Seitz <keiths@redhat.com>
8876 From Dave Murphy <davem@devkitpro.org>:
8877 * configure.ac: Set tcl configdir to win under mingw.
8878 * configure: Regenerate.
8880 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
8882 * breakpoint.c (fetch_watchpoint_value): New function.
8883 (update_watchpoint): Set and clear val_valid. Use
8884 fetch_watchpoint_value. Handle unreadable values on the
8885 value chain. Correct check for user-requested array watchpoints.
8886 (breakpoint_init_inferior): Clear val_valid.
8887 (watchpoint_value_print): New function.
8888 (print_it_typical): Use it. Do not free or clear old_val. Print
8889 watchpoints even if old_val == NULL.
8890 (watchpoint_check): Use fetch_watchpoint_value. Check for values
8891 becoming readable or unreadable.
8892 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
8893 (do_enable_watchpoint): Likewise.
8894 * breakpoint.h (struct breakpoint): Update comment for val. Add
8896 * NEWS: Mention watchpoints on inaccessible memory.
8898 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
8900 * Makefile.in (i386-nat.o): Update.
8901 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
8902 i386_use_watchpoints.
8903 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
8904 i386_use_watchpoints.
8905 * i386-nat.c (i386_stopped_data_address): Take two arguments.
8906 (i386_stopped_by_watchpoint): Update call.
8907 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
8908 * config/i386/nm-i386.h: Conditionalize definitions on
8909 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
8910 (i386_use_watchpoints): Declare.
8911 (i386_stopped_data_address): Update.
8912 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
8913 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
8915 2008-02-29 Joel Brobecker <brobecker@adacore.com>
8917 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
8918 * version.in: Bump version to 6.8.50.20080229-cvs.
8920 2008-02-28 Markus Deuling <deuling@de.ibm.com>
8922 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
8925 2008-02-28 Tom Tromey <tromey@redhat.com>
8927 * infcmd.c (notice_args_read): Print result of get_inferior_args.
8929 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8931 * infcmd.c (kill_if_already_running): Make static. Use
8932 target_require_runnable.
8933 * target.c (target_require_runnable): New.
8934 * target.h (target_require_runnable): Declare.
8936 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8938 * frame.c (reinit_frame_cache): Only annotate if frames were
8941 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8943 * regformats/reg-ppc.dat: Rename "ps" to "msr".
8944 * regformats/reg-ppc64.dat: Likewise.
8946 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8948 * features/Makefile (%.dat): Emit xmltarget statement.
8950 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
8951 Generate code to set gdbserver_xmltarget in init_registers_${name}.
8953 * regformats/arm-with-iwmmxt.dat: Regenerate.
8954 * regformats/mips64-linux.dat: Regenerate.
8955 * regformats/mips-linux.dat: Regenerate.
8956 * regformats/rs6000/powerpc-32.dat: Regenerate.
8957 * regformats/rs6000/powerpc-64.dat: Regenerate.
8958 * regformats/rs6000/powerpc-e500.dat: Regenerate.
8960 * regformats/reg-arm.dat: Add xmlarch statement.
8961 * regformats/reg-i386.dat: Likewise.
8962 * regformats/reg-i386-linux.dat: Likewise.
8963 * regformats/reg-x86-64-linux.dat: Likewise.
8964 * regformats/reg-spu.dat: Likewise.
8966 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8968 * remote.c (remote_wait, remote_async_wait): Stop if we receive
8971 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8973 * utils.c (debug_timestamp): New.
8974 (vfprintf_unfiltered): Print timestamps if requested.
8975 (show_debug_timestamp): New.
8976 (initialize_utils): Register "set debug timestamp".
8977 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
8979 2008-02-27 Joel Brobecker <brobecker@adacore.com>
8981 * breakpoint.c (skip_prologue_sal): New function.
8982 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
8983 computed from a line number.
8985 2008-02-27 Joel Brobecker <brobecker@adacore.com>
8987 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
8988 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
8989 Set PC register type to "code_ptr".
8990 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
8991 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
8992 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
8993 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
8994 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
8995 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
8996 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
8999 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
9001 * regformats/regdat.sh: Rename init_registers function in
9002 generated file to init_registers_${name}.
9004 * regformats/reg-crisv32.dat: Set "name" to crisv32.
9005 * regformats/reg-ppc64.dat: Set "name" to ppc64.
9006 * regformats/reg-s390x.dat: Set "name" to s390x.
9008 2008-02-26 Greg Law <glaw@undo-software.com>
9010 * regcache.c (registers_changed): Call reinit_frame_cache.
9012 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9014 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
9015 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
9016 and svr4_fetch_objfile_link_map.
9017 * Makefile.in (sh-linux-tdep.o): Update.
9019 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
9021 * amd64-tdep.c (amd64_classify): Add support for decimal float
9023 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
9024 use the struct return convention.
9026 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
9028 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
9029 to old format. Discard breakpoint address if shared library is
9031 (breakpoint_1): Adjust formatting of table header accordingly.
9033 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
9035 * remote.c (remote_get_threadlist): If the response
9036 is empty, don't try to parse it.
9038 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
9040 Unbreak 'target async'.
9041 * serial.c (serial_async): Set the
9042 handler function before enabling async
9045 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
9047 * solib-svr4.c (enable_break): Convert r_brk to a code address.
9049 2008-02-21 Pedro Alves <pedro@codesourcery.com>
9051 * remote.c (extended_remote_attach_1): Set attach_flag.
9052 (extended_remote_create_inferior_1): Clear attach_flag.
9054 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
9056 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
9058 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
9059 * solib-svr4.c (solib_svr4_r_brk): New.
9060 (open_symbol_file_object, svr4_current_sos): Always check the
9062 (svr4_fetch_objfile_link_map): Do not set debug_base.
9063 (enable_break): Use r_brk if it is set.
9064 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
9065 (svr4_lp64_fetch_link_map_offsets): Likewise.
9066 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
9068 2008-02-20 Markus Deuling <deuling@de.ibm.com>
9069 Mark Kettenis <kettenis@gnu.org>
9071 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
9072 trad_frame_saved_reg.
9073 (trad-frame.h): New include.
9075 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
9076 instead of frame_obstack_zalloc.
9077 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
9079 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
9081 2008-02-20 Markus Deuling <deuling@de.ibm.com>
9083 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
9084 from disassemble_info instead of gdbarch_byte_order.
9086 * mips-tdep.c (gdb_print_insn_mips): Likewise.
9087 * arm-tdep.c (gdb_print_insn_arm): Likewise.
9089 2008-02-20 Markus Deuling <deuling@de.ibm.com>
9091 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
9092 gdbarch as parameter.
9094 * gdbarch.{c,h}: Regenerate.
9096 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
9098 * mem-break.c (default_memory_insert_breakpoint)
9099 (default_memory_remove_breakpoint): Likewise.
9100 * target.h (default_memory_remove_breakpoint)
9101 (default_memory_insert_breakpoint): Likewise.
9103 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
9104 parameter. Replace current_gdbarch by gdbarch.
9105 * m32r-tdep.c (m32r_memory_insert_breakpoint)
9106 (m32r_memory_remove_breakpoint): Likewise.
9108 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
9110 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
9112 2008-02-19 Joel Brobecker <brobecker@adacore.com>
9114 * NEWS: Add entry describing Add support improvements.
9116 2008-02-18 Markus Deuling <deuling@de.ibm.com>
9118 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
9121 2008-02-18 Markus Deuling <deuling@de.ibm.com>
9123 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
9124 register_offset_hack anymore.
9126 * regcache.{c,h} (register_offset_hack): Remove.
9128 2008-02-18 Markus Deuling <deuling@de.ibm.com>
9130 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
9132 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
9133 current_gdbarch by gdbarch.
9134 (hppa64_hpux_find_global_pointer): Likewise.
9135 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
9136 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
9137 find_global_pointer.
9139 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
9141 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
9143 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
9144 of gdbarch_num_regs.
9146 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
9147 replace current_gdbarch by gdbarch.
9148 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
9150 2008-02-18 Markus Deuling <deuling@de.ibm.com>
9152 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
9153 and replace current_gdbarch by gdbarch.
9155 (store_register): Update call for exec_one_dummy_insn.
9156 (fetch_register, store_register): Update call of regmap.
9158 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
9159 parameter and replace current_gdbarch by gdbarch.
9161 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
9162 the current architecture. Update call for getregs_supplies and
9164 (ppcnbsd_fetch_inferior_registers): Likewise.
9166 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
9167 replace current_gdbarch by gdbarch.
9168 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
9169 get_regcache_arch to get at the current architecture. Update call for
9172 2008-02-18 Markus Deuling <deuling@de.ibm.com>
9174 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
9177 2008-02-15 Markus Deuling <deuling@de.ibm.com>
9179 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
9181 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
9183 * NEWS: Mention pending breakpints in MI.
9185 2008-02-14 Markus Deuling <deuling@de.ibm.com>
9187 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
9189 2008-02-13 Markus Deuling <deuling@de.ibm.com>
9191 Add script to build and test GDB using enable-targets=all.
9193 * gdb_buildall.sh: New file.
9195 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
9197 * NEWS (New native configurations): Xtensa GNU/Linux.
9198 (New targets): Xtensa GNU/Linux.
9199 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
9201 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
9202 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
9203 * configure.tgt (xtensa*-*-linux*): New entry.
9204 * xtensa-config.c (xtensa_tdep): New variable.
9205 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
9206 (rmap): Change format based on new macro XTREG.
9207 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
9208 * xtensa-linux-nat.c: New.
9209 * xtensa-linux-tdep.c: New.
9210 * xtensa-xtregs.c: New.
9211 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
9212 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
9213 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
9214 (xtensa_register_t): New field coprocessor.
9215 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
9216 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
9217 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
9218 Update to handle privileged registers.
9219 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
9220 (xtensa_push_dummy_call): Set windowstart register correctly.
9221 (call0_analyze_prologue): Initialize xtensa_default_isa.
9222 (xtensa_derive_tdep): New.
9223 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
9224 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
9225 Call xtensa_derive_tdep().
9226 * config/xtensa/linux.mh: New.
9227 * regformats/reg-xtensa.dat: New.
9229 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
9231 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
9232 (filenames.h): New include.
9233 * Makefile.in (corelow.o): Add dependency for filenames.h.
9235 2008-02-08 Doug Evans <dje@google.com>
9237 * source.c (find_and_open_source): Always rewrite absolute filenames.
9239 2008-02-07 Doug Evans <dje@google.com>
9241 * breakpoint.c: #include "hashtab.h".
9242 (ambiguous_names_p): New fn.
9243 (update_breakpoint_locations): When restoring bp enable status, don't
9244 compare function names if any functions have same name.
9245 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
9247 2008-02-07 Joel Brobecker <brobecker@adacore.com>
9249 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
9250 instead of just a VEC*. Update use of SV.
9251 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
9253 2007-02-07 Joel Brobecker <brobecker@adacore.com>
9255 * NEWS: Put all new commands since gdb-6.7 together.
9257 2007-02-07 Joel Brobecker <brobecker@adacore.com>
9259 * ada-lang.c: #include "vec.h".
9260 (struct string_vector, new_string_vector, string_vector_append):
9262 (char_ptr): New typedef.
9263 (DEF_VEC_P (char_ptr)): New VEC type.
9264 (symbol_completion_add): Update profile to take the new VEC type
9265 instead of the old string_vector structure. Update code accordingly.
9266 (ada_make_symbol_completion_list): Use the new VEC type instead of
9267 the old string_vector structure, and update the code accordingly.
9268 * Makefile.in (ada-lang.o): Add dependency on vec.h.
9270 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9272 * p-exp.y: Set current_type in missing places.
9273 (leftdiv_is_integer): New static variable.
9274 Typecast right operand of BINOP_DIV to long_double if both operands
9277 2008-02-06 Maciej W. Rozycki <macro@mips.com>
9279 * remote-mips.c (set_breakpoint): Rename to...
9280 (mips_set_breakpoint): ... this.
9281 (clear_breakpoint): Rename to...
9282 (mips_clear_breakpoint): ... this.
9283 (common_breakpoint): Rename to...
9284 (mips_common_breakpoint): ... this.
9285 (check_lsi_error): Rename to...
9286 (mips_check_lsi_error): ... this.
9288 2007-02-05 Joel Brobecker <brobecker@adacore.com>
9290 * language.h (struct language_defn): Add new field
9291 la_make_symbol_completion_list.
9292 * symtab.c (default_make_symbol_completion_list): Renames
9293 make_symbol_completion_list.
9294 (make_symbol_completion_list): New function.
9295 * symtab.h (default_make_symbol_completion_list): Add declaration.
9296 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
9297 (auto_language, local_language): Likewise.
9298 * objc-lang.c (objc_language_defn): Likewise.
9299 * scm-lang.c (scm_language_defn): Likewise.
9300 * m2-lang.c (m2_language_defn): Likewise.
9301 * f-lang.c (f_language_defn): Likewise.
9302 * jv-lang.c (java_language_defn): Likewise.
9303 * p-lang.c (pascal_language_defn): Likewise.
9304 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
9305 (minimal_language_defn): Likewise.
9306 * ada-lang.c (struct string_vector): New structure.
9307 (new_string_vector, string_vector_append, ada_unqualified_name)
9308 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
9309 (ada_make_symbol_completion_list): New functions.
9310 (ada_language_defn): Set la_make_symbol_completion_list.
9311 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
9312 this function is static.
9314 2008-02-05 Kevin Buettner <kevinb@redhat.com>
9316 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
9317 to account for call site optimizations.
9319 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
9321 * tracepoint.c (read_actions): Handle end-of-text indicator
9322 in action list properly. (Committed by Jim Blandy)
9324 2008-02-05 Jim Blandy <jimb@red-bean.com>
9326 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
9327 pseudoregister, not an internal error.
9328 Reported by: Andrzej Zaborowski
9330 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
9332 * varobj.c (c_value_of_variable): Use xstrdup.
9334 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
9336 Update stored rendition of varobj value when format changes.
9337 * varobj.c (varobj_set_display_format): Recomputed
9339 (c_value_of_variable): Return print_value.
9341 2008-02-03 Doug Evans <dje@google.com>
9343 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
9344 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
9345 * valops.c (value_one): New function.
9346 * value.h (value_one): Declare.
9348 Fix argument promotion for binary arithmetic ops for C.
9349 * valarith.c (unop_result_type): New fn.
9350 (binop_result_type): New fn.
9351 (value_binop): Move result type computation to binop_result_type.
9352 (value_pos, value_neg, value_complement): Move result type
9353 computation to unop_result_type.
9356 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
9357 Return basetype, fieldno if found. All callers updated.
9358 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
9360 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
9361 * symfile.h (fill_in_vptr_fieldno): Delete.
9363 2008-02-02 Doug Evans <dje@google.com>
9365 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
9367 * typeprint.c (*): Whitespace cleanup.
9369 2008-02-02 Mark Kettenis <kettenis@gnu.org>
9370 Luis Machado <luisgpm@br.ibm.com>
9371 Thiago Jung Bauermann <bauerman@br.ibm.com>
9373 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
9374 don't fit into registerson the stack the way GCC does.
9376 2008-02-01 Joel Brobecker <brobecker@adacore.com>
9378 * symtab.c (symbol_set_names): Do not add an entry in the demangling
9379 hash table for Ada symbols. Just store the linkage name as is,
9380 and leave the demangled_name as NULL.
9382 2007-02-01 Joel Brobecker <brobecker@adacore.com>
9384 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
9385 in the global scope.
9386 (new_symbol): Likewise.
9388 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
9390 * breakpoint.c (break_command_1): Return void.
9391 (break_command_really): Return void. Rethrow
9392 exceptions instead of returning.
9393 (gdb_breakpoint): Remove the error_message parameter.
9394 Return void. Rename to set_breakpoint.
9395 * gdb.h (gdb_breakpoint): Rename and move to...
9396 * breakpoint.h (set_breakpoint): ...here.
9397 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
9398 event hooks even if exception is thrown. Adjust to
9399 gdb_breakpoint interface changes.
9402 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
9404 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
9405 float in both first and second word in the doubleword, to support
9408 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
9410 Properly rethrow exception. This fixes errors
9411 about non-existent functions for -break-insert.
9412 * breakpoint.c (break_command_really): Use throw_exception
9413 for rethrowing. If rethrowing, don't print the exception.
9415 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
9417 * NEWS: Mention Decimal Floating Point support.
9419 2008-01-31 Joel Brobecker <brobecker@adacore.com>
9421 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
9422 value type to builtin_type_void_func_ptr.
9424 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
9426 * s390-tdep.c (is_float_singleton, is_float_like,
9427 alignment_of, s390_return_value): Make checks for
9428 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
9430 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
9431 Thiago Jung Bauermann <bauerman@br.ibm.com>
9433 * infcmd.c (default_print_registers_info): Also print hex
9434 raw contents for TYPE_CODE_DECFLOAT registers.
9435 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
9436 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
9437 (rs6000_register_name): Add support for DFP pseudo-registers.
9438 (rs6000_pseudo_register_type): Likewise.
9439 rs6000_pseudo_register_reggroup_p): Likewise.
9440 (ppc_pseudo_register_read): New function.
9441 (ppc_pseudo_register_write): Likewise.
9442 (rs6000_pseudo_register_read): Likewise.
9443 (rs6000_pseudo_register_write): Likewise.
9444 (e500_pseudo_register_read): Move checks to
9445 rs6000_pseudo_register_read.
9446 (e500_pseudo_register_write): Move checks to
9447 rs6000_pseudo_register_write.
9448 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
9449 rs6000_pseudo_register_read and rs6000_pseudo_register_write
9450 in gdbarch if SPE or DFP is available. Adjust gdbarch's
9451 num_pseudo_regs to account for DFP pseudo regs.
9453 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
9455 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
9456 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
9457 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
9458 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
9459 e500_pseudo_register_read, e500_pseudo_register_write): Use
9460 IS_SPE_PSEUDOREG macro.
9461 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
9462 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
9463 Remove initialization of tdep->ppc_ev31_regnum.
9465 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
9467 * printcmd.c (print_formatted): Handle references as for unformatted
9470 2008-01-30 Joel Brobecker <brobecker@adacore.com>
9472 * eval.c (evaluate_subexp_standard): Add handling of user
9473 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
9475 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
9477 * eval.c (evaluate_subexp_standard): Support
9478 BINOP_INTDIV opcode.
9480 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
9482 * valarith.c (value_binop): Add floating-point BINOP_MIN and
9484 For BINOP_EXP, use length and signedness of left operand only for
9485 result, as for shifts.
9486 For integral operands to BINOP_EXP, use new integer_pow and
9487 uinteger_pow functions so as to get full range of results.
9488 (integer_pow): New function.
9489 (uinteger_pow): New function.
9491 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
9493 Use vector for varobj_list_children interface.
9494 * gdb/varobj.c (varobj_list_children): Return vector
9496 * gdb/varobj.h (varobj_list_children): Adjust
9498 (varobj_p): Declare. Declare vector thereof.
9499 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
9500 for varobj_list_children change.
9501 * Makefile.in (varobj_h): Update dependencies.
9503 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
9505 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
9506 TYPE_CODE_DECFLOAT arguments.
9507 (ppc64_sysv_abi_push_dummy_call) Likewise.
9508 (get_decimal_float_return_value): New function.
9509 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
9510 values by calling get_decimal_float_return_value.
9511 (ppc64_sysv_abi_return_value): Likewise.
9513 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
9515 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
9516 for preprocessor macro information. Formatting changes.
9518 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9520 * remote.c (struct remote_state): Add cached_wait_status.
9521 (remote_exec_file): New variable.
9522 (PACKET_vAttach, PACKET_vRun): New constants.
9523 (extended_remote_restart): Do not query for status.
9524 (struct start_remote_args): New.
9525 (remote_start_remote): Take it as a second argument. Check
9526 whether the target is running. Issue an error for non-running
9527 non-extended targets. Cache the wait status. Set inferior_ptid
9529 (remote_open_1): Prompt to disconnect non-running targets. Make
9530 sure the target is marked running. Do not set inferior_ptid here.
9531 Update call to remote_start_remote. Do not call remote_check_symbols
9532 if the target is not running.
9533 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
9534 argument. Handle a non-running target.
9535 (remote_detach): Use it.
9536 (extended_remote_detach): New.
9537 (remote_disconnect): Fix typo. Use remoute_mourn_1.
9538 (extended_remote_attach_1, extended_remote_attach)
9539 (extended_async_remote_attach): New.
9540 (remote_vcont_resume): Remove unused variable.
9541 (remote_wait, remote_async_wait): Use any cached wait status.
9542 (putpkt_binary, getpkt): Clear any cached wait status.
9543 (extended_remoute_mourn_1): New.
9544 (extended_remote_mourn): Use it.
9545 (extended_async_remote_mourn, extended_remote_run): New.
9546 (extended_remote_create_inferior_1): New.
9547 (extended_remote_create_inferior): Use it.
9548 (extended_remote_async_create_inferior): Likewise.
9549 (remote_xfer_partial): Skip for non-executing targets.
9550 (init_extended_remote_ops): Set to_detach and to_attach.
9551 (init_extended_async_remote_ops): Likewise. Use
9552 extended_async_remote_mourn.
9553 (_initialize_remote): Register vAttach, vRun, and
9554 set remote exec-file.
9555 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
9557 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9559 * Makefile.in (symfile.o): Update.
9560 * NEWS: Mention exec tracing support.
9561 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
9563 * infcmd.c (kill_if_already_running, detach_command)
9564 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
9565 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
9566 (follow_exec): Do not check may_follow_exec. Do not mourn and push
9567 targets. Apply the sysroot path to the loaded executable. Use
9568 no_shared_libraries.
9569 * linux-nat.c (linux_child_follow_fork): Print fork following
9570 messages if verbose.
9571 (kill_wait_callback): Kill again before waiting a second time.
9572 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
9573 no_shared_libraries.
9575 2008-01-29 Joel Brobecker <brobecker@adacore.com>
9577 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
9579 2008-01-29 Joel Brobecker <brobecker@adacore.com>
9581 * nto-tdep.h: Remove #include "defs.h".
9582 * nto-tdep.c: Add #include "defs.h".
9583 * Makefile.in (nto_tdep_h): Update dependencies.
9584 (nto-tdep.o): Likewise.
9586 2008-01-29 Joel Brobecker <brobecker@adacore.com>
9588 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
9590 (proceed, start_remote): Update call to wait_for_inferior.
9591 * inferior.h (wait_for_inferior): Update declaration.
9592 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
9593 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
9594 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
9595 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
9597 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
9599 * varobj (adjust_value_for_child_access): Added checking for
9600 returned value from gdb_value_ind.
9601 (c_describe_child): Likewise.
9602 (cplus_describe_child): Fixed a typo.
9604 2008-01-29 Jim Blandy <jimb@red-bean.com>
9606 * MAINTAINERS: Update my info.
9608 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
9610 Use multiple locations for hardware watchpoints.
9611 This eliminates the need to traverse value chain, doing
9612 various checks, in three different places.
9614 * breakpoint.h (struct bp_location): New fields
9615 lengths and watchpoint_type.
9616 (struct breakpoint): Remove the val_chain field.
9617 * breakpoint.c (is_hardware_watchpoint): New.
9618 (free_valchain): Remove.
9619 (update_watchpoint): New.
9620 (insert_bp_location): For hardware watchpoint, just
9622 (insert_breakpoints): Call update_watchpoint_locations
9623 on all watchpoints. If we have failed to insert
9624 any location of a hardware watchpoint, remove all inserted
9626 (remove_breakpoint): For hardware watchpoints, directly
9628 (watchpoints_triggered): Iterate over locations.
9629 (bpstat_stop_status): Use only first location of
9630 a resource watchpoint.
9631 (delete_breakpoint): Don't call free_valchain.
9632 (print_one_breakpoint): Don't print all
9633 locations for watchpoints.
9634 (breakpoint_re_set_one): Use update_watchpoint for
9637 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
9639 Don't reset watchpoint block on solib load.
9641 * breakpoint.c (insert_bp_location): For watchpoints,
9642 recompute condition.
9643 (breakpoint_re_set_one): Instead of recomputing value
9644 and condition for watchpoints, just reset value and
9645 let insert_breakpoints/insert_bp_location recompute it.
9646 Don't do anything about disabled watchpoint.
9648 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
9650 * valarith.c (value_binop): Handle unsigned integer
9653 2008-01-28 Kevin Buettner <kevinb@redhat.com>
9655 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
9656 instruction pattern that appears frequently in position
9657 independent code. Fix bug in code which looks for "fmov" and
9658 backtracks if no "fmov" is found.
9660 2008-01-28 Doug Evans <dje@google.com>
9662 * dbxread.c (read_dbx_symtab): Fix indentation.
9663 Reformat comments to 80 columns.
9664 Move local var def closer to only use.
9666 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
9668 * fork-child.c (SHELL_FILE): Remove #ifndef.
9669 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
9671 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
9673 * i386-tdep.c (i386_skip_noop): New function.
9674 (i386_analyze_prologue): Call i386_skip_noop function.
9676 2008-01-24 Michael Snyder <msnyder@specifix.com>
9678 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
9679 * win32-nat.c (win32_xfer_partial): Ditto.
9680 * target.c (default_xfer_partial): Minor whitespace adjustment.
9682 2008-01-24 Pedro Alves <pedro@codesourcery.com>
9684 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
9685 strip bit 1 even if pc doesn't point to thumb code.
9687 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
9689 * remote.c (remote_wait): Handle SIGINT between packets.
9690 (remote_async_wait): Likewise.
9692 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
9693 Chris Demetriou <cgd@google.com>
9695 * thread.c (add_thread_silent): Renamed
9697 (print_thread_events): New variable definition.
9698 (show_print_thread_events): New function.
9699 (_initialize_thread): Add "set print thread-events" and
9700 "show print thread-events" commands.
9701 (add_thread): Announce new thread.
9702 * gdbthread.h (add_thread_silent): Declare.
9703 (print_thread_events): New variable declaration.
9704 * inf-ttrace.c (inf_ttrace_wait): Don't
9705 inform about new thread, as add_thread is always
9706 called too, and will take care of that.
9707 * infrun.c (handle_inferior_event): Likewise.
9708 * procfs.c (procfs_wait): Likewise.
9709 * remote.c (remote_currthread): Likewise.
9710 * sol-thread.c (sol_thread_wait): Likewise.
9711 * win32-nat.c (get_win32_debug_event): Likewise.
9712 * linux-thread-db.c (attach_thread): Likewise.
9713 Remove the verbose parameter.
9714 (check_event): Make detach_thread be verbose
9715 only if print_thread_events is set.
9716 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
9717 about new thread. This is called only from
9718 linux-thread-db.c:attach_thread, which will take care.
9719 Remove the verbose parameter.
9720 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
9722 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
9724 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
9726 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
9728 * breakpoint.c (break_command_really): New parameter
9730 (break_command_1): Pass 0 as
9731 ignore_count to break_command_really.
9732 (gdb_breakpoint): Pass ignore_count to
9733 break_command_really.
9735 2008-01-21 Kevin Buettner <kevinb@redhat.com>
9737 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
9738 sigcontext struct via pointer.
9739 (struct sigframe comment): Update to show new field `psc'.
9741 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
9743 * infrun.c (handle_inferior_event): If
9744 we failed to remove breakpoints, error,
9745 don't try to increment PC by hand.
9747 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
9749 Add NetBSD/hppa target and host support.
9751 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
9752 (hppabsd_gregset): Move to ...
9753 (hppabsd_regset_from_core_section): Rename
9754 hppaobsd_regset_from_core_section and move to ...
9755 (hppabsd_find_global_pointer): Update comment.
9756 (hppabsd_init_abi): Make global. Do not register
9757 hppabsd_regset_from_core_section.
9758 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
9760 (_initialize_hppabsd_tdep): Move to ...
9761 * hppaobsd-tdep.c: ... here. New file.
9762 * hppnbsd-tdep.c: New file.
9763 * hppnbsd-nat.c: New file.
9764 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
9765 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
9766 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
9767 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
9768 * configure.host (hppa*-*-netbsd*): New entry.
9769 * configure.tgt (hppa*-*-netbsd*): New entry.
9770 (hppa*-*-openbsd*): Update.
9771 * NEWS (New native configuration): Mention NetBSD/hppa.
9772 (New targets): Mention NetBSD/hppa.
9774 2008-01-18 Markus Deuling <deuling@de.ibm.com>
9776 * gdbarch.sh (function_list): Add new property bits_big_endian to
9778 * gdbarch.{c,h}: Regenerate.
9780 * value.c (struct value): Replace BITS_BIG_ENDIAN by
9781 gdbarch_bits_big_endian (comment).
9782 (unpack_field_as_long, modify_field): Likewise.
9783 * value.h: Likewise (comment).
9784 * valops.c (value_slice): Likewise.
9785 * valarith.c (value_subscript, value_bit_index): Likewise.
9786 * gdbtypes.h (field): Likewise (comment).
9787 * eval.c (evaluate_subexp_standard): Likewise.
9788 * dwarf2read.c (dwarf2_add_field): Likewise.
9789 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
9790 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
9792 * defs.h (BITS_BIG_ENDIAN): Remove.
9794 2008-01-18 Markus Deuling <deuling@de.ibm.com>
9796 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
9798 * m2-exp.y (yylex): Likewise.
9799 * objc-exp.y (yylex): Likewise.
9801 * defs.h (DEPRECATED_STREQN): Remove.
9803 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
9805 * MAINTAINERS: Update my email address.
9807 2008-01-17 Jim Blandy <jimb@codesourcery.com>
9809 * README: Mention gdbserver/README.
9811 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
9813 * valarith.c (value_binop): Handle BINOP_INTDIV
9814 for unsigned and signed integers.
9816 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
9818 * s390-tdep.c (s390_gdbarch_init): Set default long double
9819 type to 128-bit IEEE quad.
9821 2008-01-17 Joel Brobecker <brobecker@adacore.com>
9823 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
9825 2008-01-16 Mark Kettenis <kettenis@gnu.org>
9827 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
9829 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
9830 * value.c: All callers changed.
9832 2008-01-16 Markus Deuling <deuling@de.ibm.com>
9834 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
9835 DEPRECATED_STREQ by its expression.
9836 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
9837 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
9838 (scan_xcoff_symtab): Likewise.
9839 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
9840 * f-lang.c (find_common_for_function): Likewise.
9841 * objc-exp.y (parse_number): Likewise.
9843 * defs.h (DEPRECATED_STREQ): Remove.
9845 2008-01-16 Markus Deuling <deuling@de.ibm.com>
9847 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
9848 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
9849 get_frame_arch to get at the current_architecture. Update AM33_MODE
9851 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
9852 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
9854 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
9856 2008-01-16 Markus Deuling <deuling@de.ibm.com>
9858 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
9860 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
9862 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
9863 current_gdbarch by gdbarch. Update caller.
9865 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
9866 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
9867 the current architecture. Update calls of
9868 amd64_native_gregset_supplies_p.
9869 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
9870 (amd64bsd_store_inferior_registers): Likewise.
9872 2008-01-16 Markus Deuling <deuling@de.ibm.com>
9874 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
9875 Replace current_gdbarch by gdbarch. Update caller.
9877 2008-01-16 Markus Deuling <deuling@de.ibm.com>
9879 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
9880 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
9881 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
9882 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
9883 (stabsect_build_psymtabs): Fix indentation.
9885 2008-01-15 Michael Snyder <msnyder@specifix.com>
9887 * corelow.c (core_xfer_partial): Comment, cut/paste error.
9889 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
9891 * win32-nat.c (win32_create_inferior): Restore code calling
9892 CloseHandle on ProcessInformation structure.
9894 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
9896 * configure.ac: Check for void * as 3 argument of ptrace.
9897 * configure: regenerate.
9899 2008-01-11 Markus Deuling <deuling@de.ibm.com>
9901 * alpha-tdep.c (alpha_heuristic_proc_start)
9902 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
9903 current_gdbarch by gdbarch.
9905 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
9906 current architecture by frame_info. Update alpha_heuristic_proc_start
9909 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
9910 get_frame_arch to get at the current architecture by frame_info. Update
9911 alpha_sigtramp_register_address call.
9913 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
9914 current_gdbarch by gdbarch. Update caller.
9915 (convert_to_extended, convert_from_extended): Add endianess parameter
9916 for comparison. Update caller.
9917 (arm_extract_return_value, arm_store_return_value): Use
9918 get_regcache_arch to get at the current architecture.
9920 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
9921 current_gdbarch by gdbarch. Update caller.
9922 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
9923 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
9925 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
9926 gdbarch as parameter. Update caller.
9927 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
9928 current_gdbarch by gdbarch. Update caller.
9930 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
9931 update caller. Replace current_gdbarch by gdbarch.
9933 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
9934 the current architecture. Replace current_gdbarch by gdbarch.
9935 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
9936 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
9937 expression. Add gdbarch as parameter and replace current_gdbarch with
9939 (M6811_TDEP): Remove.
9940 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
9942 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
9943 current_gdbarch by gdbarch. Update caller.
9945 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
9947 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
9950 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
9951 caller. Relace current_gdbarch by gdbarch.
9952 (altivec_register_p, spe_register_p): Likewise.
9953 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
9955 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
9956 altivec_register_p and spe_register_p.
9958 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
9959 caller. Replace current_gdbarch by gdbarch.
9960 (score_analyze_prologue): use get_frame_arch to get at the current
9963 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
9964 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
9965 current_gdbarch by gdbarch. Update caller.
9966 (sparc_frame_cache): Use get_frame_arch to get at the current
9968 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
9969 sparc_analyze_prologue.
9971 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
9974 2008-01-11 Markus Deuling <deuling@de.ibm.com>
9976 * exec.c: #include "arch-utils.h"
9977 (print_section_info): Use gdbarch_from_bfd to get at the
9978 current architecture. Replace current_gdbarch. Fix indention. Replace
9979 deprecated_print_address_numeric by paddress.
9980 * Makefile.in (exec.o) Add dependency to arch-utils.h.
9982 * valprint.c (val_print_string): Replace
9983 deprecated_print_address_numeric.
9984 * tracepoint.c (trace_mention, scope_info): Likewise.
9985 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
9986 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
9987 (maintenance_check_symtabs): Likewise.
9988 * symfile.c (list_overlays_command): Likewise.
9989 * stack.c (frame_info, print_block_frame_labels): Likewise.
9990 * printcmd.c (print_address, print_address_demangle)
9991 (address_info): Likewise.
9992 * corefile.c (memory_error): Likewise.
9993 * infcmd.c (jump_command): Likewise.
9994 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
9995 (mention, delete_breakpoint): Likewise.
9996 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
9997 * dwarf2read.c (dump_die): Likewise.
9998 * ada-valprint.c (ada_val_print_1): Likewise.
9999 * f-valprint.c (f_val_print): Likewise.
10000 * linux-fork.c (info_forks_command): Likewise.
10001 * m32r-com.c (m32r_load_section, m32r_load)
10002 (m32r_upload_command): Likewise.
10004 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
10006 2008-01-11 Markus Deuling <deuling@de.ibm.com>
10008 * gdbarch.sh (skip_prologue): Add gdbarch
10010 * gdbarch.{c,h}: Regenerate.
10012 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
10013 * amd64-tdep.c (amd64_skip_prologue): Likewise.
10014 * avr-tdep.c (avr_skip_prologue): Likewise.
10015 * cris-tdep.c (cris_skip_prologue): Likewise.
10016 * frv-tdep.c (frv_skip_prologue): Likewise.
10017 * h8300-tdep.c (h8300_skip_prologue): Likewise.
10018 * hppa-tdep.c (hppa_skip_prologue): Likewise.
10019 * i386-tdep.c (i386_skip_prologue): Likewise.
10020 * ia64-tdep.c (ia64_skip_prologue): Likewise.
10021 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
10022 * m32r-tdep.c (m32r_skip_prologue): Likewise.
10023 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
10024 * m68k-tdep.c (m68k_skip_prologue): Likewise.
10025 * m88k-tdep.c (m88k_skip_prologue): Likewise.
10026 * mep-tdep.c (mep_skip_prologue): Likewise.
10027 * mips-tdep.c (mips_skip_prologue): Likewise.
10028 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
10029 * mt-tdep.c (mt_skip_prologue): Likewise.
10030 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
10031 * score-tdep.c (score_skip_prologue): Likewise.
10032 * sh64-tdep.c (sh64_skip_prologue): Likewise.
10033 * sh-tdep.c (sh_skip_prologue): Likewise.
10034 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
10035 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
10036 * spu-tdep.c (spu_skip_prologue): Likewise.
10037 * v850-tdep.c (v850_skip_prologue): Likewise.
10038 * vax-tdep.c (vax_skip_prologue): Likewise.
10039 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
10040 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
10042 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
10043 current_gdbarch by gdbarch.
10044 * m32c-tdep.c (m32c_skip_prologue): Likewise.
10045 * s390-tdep.c (s390_skip_prologue): Likewise.
10047 2008-01-10 Doug Evans <dje@google.com>
10049 * defs.h (struct continuation_arg): Fix typo in comment.
10050 * target.c (target_translate_tls_address): Fix comment spelling error.
10052 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
10054 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
10055 (DOUBLEST_SCAN_FORMAT): Likewise.
10056 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
10057 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
10058 * c-exp.y (parse_number): Likewise.
10059 * jv-exp.y (parse_number): Likewise.
10060 * objc-exp.y (parse_number): Likewise.
10061 * p-exp.y (parse_number): Likewise.
10063 2008-01-09 Joel Brobecker <brobecker@adacore.com>
10065 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
10066 (check_typedef): Likewise.
10068 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
10070 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
10071 seen_double_big_d, treat the new H, D, and DD modifiers as length
10074 2008-01-08 Joel Brobecker <brobecker@adacore.com>
10076 * dwarf2read.c (read_enumeration_type): Add comment.
10078 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
10080 * config.in: Regenerate.
10082 2008-01-08 Joel Brobecker <brobecker@adacore.com>
10084 * ada-lang.c (ada_convert_actual): Renames convert_actual.
10086 (ada_convert_actuals): Delete.
10087 * ada-lang.h (ada_convert_actual): Add declaration.
10088 (ada_convert_actuals): Remove declaration.
10089 * infcall.c: #include "ada-lang.h".
10090 (value_arg_coerce): Add new parameter sp. Update function
10091 documetnation. Add handling of Ada function call parameters.
10092 * Makefile.in (infcall.o): Update dependencies.
10094 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
10096 * ada-lang.c (ensure_lval): Fix value lval kind.
10097 (convert_actual): Add handling for arguments passed by reference.
10099 2008-01-08 Doug Evans <dje@google.com>
10101 * dbxread.c (read_dbx_symtab): Fix indentation.
10103 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10105 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
10106 (valarith.o): Depend on dfp.h.
10107 (valops.o): Likewise.
10108 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
10109 (set_decnumber_context): New function.
10110 (decimal_check_errors): Likewise.
10111 (decimal_from_number): Likewise.
10112 (decimal_to_number): Likewise.
10113 (decimal_from_string): Use set_decnumber_context and
10114 decimal_check_errors.
10115 (decimal_from_integral): New function.
10116 (decimal_from_floating): Likewise.
10117 (decimal_to_double): Likewise.
10118 (promote_decimal): Likewise.
10119 (decimal_binop): Likewise.
10120 (decimal_is_zero): Likewise.
10121 (decimal_compare): Likewise.
10122 (decimal_convert): Likewise.
10123 * dfp.h (decimal_from_integral): New prototype.
10124 (decimal_from_floating): Likewise.
10125 (decimal_to_double): Likewise.
10126 (decimal_binop): Likewise.
10127 (decimal_is_zero): Likewise.
10128 (decimal_compare): Likewise.
10129 (decimal_convert): Likewise.
10130 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
10131 call to value_from_decfloat.
10132 * valarith.c: Include dfp.h.
10133 (value_args_as_decimal): New function.
10134 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
10135 (value_logical_not): Likewise.
10136 (value_equal): Likewise.
10137 (value_less): Likewise.
10138 (value_pos): Likewise.
10139 (value_neg): Formatting fix.
10140 * valops.c: Include dfp.h.
10141 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
10142 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
10143 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
10144 (value_from_decfloat): Remove expect_type argument.
10145 * value.h (value_from_decfloat): Update prototype.
10147 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
10149 Ignore change in name of dynamic linker during
10150 execution on Solaris. This also unbreaks pending breakpoints.
10152 * solist.h (struct target_so_ops): New field same.
10153 * solib-svr4.c (svr4_same): New.
10154 (_initialize_svr4_solib): Register svr4_same.
10155 * solib.c (update_solib_list): Use ops->same, if available.
10157 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
10159 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
10160 when using MS-DOS paths.
10162 2008-01-05 Pedro Alves <pedro@codesourcery.com>
10164 * NEWS: Mention --pid and --core command line behaviour changes.
10166 2008-01-05 Pedro Alves <pedro@codesourcery.com>
10168 * main.c (captured_main): Remove 'count' varible and the
10169 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
10170 --pid options were issued simultaneously. If an explicit pid
10171 option was passed, don't fallback to core file. Detect extra
10172 arguments better in the presence of explicit pid or core
10175 2008-01-05 Joel Brobecker <brobecker@adacore.com>
10177 * ada-lang.c (ada_which_variant_applies): Correctly compute
10178 the value of the discriminant when the variant record is packed.
10180 2008-01-04 Joel Brobecker <brobecker@adacore.com>
10182 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
10183 that are used to differentiate homonyms.
10185 2008-01-04 Jerome Guitton <guitton@adacore.com>
10187 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
10188 when the type is an anonymous pointer type.
10189 (ada_check_typedef): Avoid a seg fault when the type is null.
10190 * ada-typeprint.c (print_array_type): Add support for pointer
10193 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
10195 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
10197 2008-01-04 Joel Brobecker <brobecker@adacore.com>
10199 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
10200 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
10202 2008-01-04 Joel Brobecker <brobecker@adacore.com>
10204 * ada-exp.y (chop_separator): New function.
10205 (write_selectors): Rewrite to re-use chop_separator.
10206 (ada_nget_field_index, get_symbol_field_type): New functions.
10207 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
10210 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
10212 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
10213 of SYMBOL_VALUE when working with function symbols.
10215 2008-01-03 Joel Brobecker <brobecker@adacore.com>
10217 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
10218 expressions. These expressions do not need to be rewriten.
10220 2008-01-03 Joel Brobecker <brobecker@adacore.com>
10222 * dwarf2read.c (read_enumeration_type): Flag type as stub if
10223 the given die is a declaration.
10225 2008-01-03 Joel Brobecker <brobecker@adacore.com>
10227 * ada-lang.c (ada_array_bound_from_type): Make non-static.
10228 Handle properly the case when the index type is an enumerated type.
10229 Do not return the subtype of the bounds type, just return the
10230 bounds type directly - this is not needed and is more consistent
10231 with what we do for arrays when no XA parallel type exists.
10233 2008-01-03 Joel Brobecker <brobecker@adacore.com>
10235 * ada-lang.c (static_unwrap_type): Add forward declaration.
10236 (template_to_static_fixed_type): Fields of dynamic types sometimes
10237 also need to be unwrapped. Take this into account.
10238 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
10239 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
10240 * ada-typeprint.c (ada_print_type): Get the typename from
10241 the original type, not the base type.
10243 2008-01-03 Jerome Guitton <guitton@adacore.com>
10245 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
10246 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
10247 Update calls to ada_to_fixed_type.
10248 (ada_template_to_fixed_record_type_1): Ditto, but without looking
10250 (ada_to_fixed_type): Add check_tag parameter; do not look for
10251 tag if null. When looking for a tag, use a fixed record type.
10252 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
10253 * ada-valprint.c (printable_val_type, ada_value_print): Update
10254 calls to ada_to_fixed_type.
10256 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
10258 * doublest.c (convert_floatformat_to_doublest): Call
10259 floatformat_to_doublest instead of floatformat_to_double and use
10260 DOUBLEST variables.
10261 (convert_doublest_to_floatformat): Call floatformat_from_doublest
10262 instead of floatformat_from_double and use DOUBLEST variables.
10264 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
10266 * MAINTAINERS (Write After Approval): Add self.
10268 2008-01-03 Joel Brobecker <brobecker@adacore.com>
10270 * symfile.c (set_initial_language): Make non-static.
10271 * symfile.h (set_initial_language): Add declaration.
10272 * language.c: #include "symfile.h".
10273 (set_language): Call set_initial_language if the frame language
10274 could not be determined.
10276 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
10278 * eval.c (evaluate_subexp_for_address): Provide frame address to
10279 locate_var_value only if it will be needed.
10281 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10283 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
10285 2008-01-02 Joel Brobecker <brobecker@adacore.com>
10287 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
10288 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
10289 This is needed to make sure that any other treatment applied
10290 to the resulting value does not fail for spurious reason,
10291 such as trying to take the address of this value.
10293 2008-01-02 Joel Brobecker <brobecker@adacore.com>
10295 * ada-lang.c (ada_value_equal): Dereference reference types when
10298 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
10300 Updated copyright notices for most files.
10302 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
10304 * win32-nat.c (psapi_module_handle): Remove static.
10305 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
10306 return first module found if base_address is zero. Don't initialize
10307 psapi function pointers here. Convert to cygwin paths when
10309 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
10310 executable name. Use get_module_name when that fails or when
10312 (_initialize_psapi): New function. Initialize psapi stuff before it is
10313 needed or issue a warning if it is not found. Move psapi_module_handle
10316 2008-01-01 Joel Brobecker <brobecker@adacore.com>
10318 * ada-lang.c (ada_remove_trailing_digits): New function.
10319 (ada_remove_po_subprogram_suffix): New function.
10320 (ada_decode): Improve. Move the description of the algorithm
10321 directly inside the code, instead of in the function global
10324 2008-01-01 Joel Brobecker <brobecker@adacore.com>
10326 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
10327 and always print the dereferenced value.
10329 2008-01-01 Joel Brobecker <brobecker@adacore.com>
10331 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
10332 of the case where the first argument is a reference.
10333 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
10335 2008-01-01 Joel Brobecker <brobecker@adacore.com>
10337 Implement support for Ada interface types.
10339 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
10340 (ada_is_ignored_field): Ignore fields that are a dispatch table
10343 2008-01-01 Joel Brobecker <brobecker@adacore.com>
10345 * top.c (print_gdb_version): Update copyright year.
10347 2008-01-01 Joel Brobecker <brobecker@adacore.com>
10349 * ChangeLog-2007: New ChangeLog rotation.
10350 * ChangeLog: Reset for 2008.
10351 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
10354 For older changes see ChangeLog-2007.
10360 version-control: never