1 2008-10-24 Hui Zhu <teawater@gmail.com>
2 Pedro Alves <pedro@codesourcery.com>
4 * infrun.c (can_use_displaced_stepping): Change type to
6 (can_use_displaced_stepping_auto): New string.
7 (can_use_displaced_stepping_on): New string.
8 (can_use_displaced_stepping_off): New string.
9 (can_use_displaced_stepping_enum): New array.
10 (show_can_use_displaced_stepping): In auto mode, also show
11 the current effect of the option.
12 (use_displaced_stepping): Return non-zero if displaced
13 stepping is auto, and can be used with GDBARCH, and in
14 non-stop mode. Return non-zero if displaced stepping is on,
15 and can be used with GDBARCH. Return zero otherwise.
16 (_initialize_infrun): Make the "set displaced-stepping"
17 command an enum command. Change its class to class_run.
18 Place it in the top level set list. Extend help to describe
21 2008-10-23 Pedro Alves <pedro@codesourcery.com>
23 * defs.h: Mention ptid_is_pid.
24 * inferior.h (ptid_is_pid): Declare.
25 * gdbthread.h (struct thread_info) <stop_requested>: New field.
26 (set_stop_requested): Declare.
27 * infcmd.c (interrupt_target_1): Call set_stop_requested.
28 * infrun.c (clear_proceed_status): Clear stop_requested.
29 (infrun_thread_stop_requested_callback,
30 infrun_thread_stop_requested): New.
31 (handle_inferior_event): If a TARGET_SIGNAL_TRAP is reported on a
32 thread that had an explicit stop request, pretend we got a
33 TARGET_SIGNAL_0. Always stop if the thread had an explicit stop
35 (print_stop_reason): In the SIGNAL_RECEIVED case, if we're not
36 outputting to MI, and we got a TARGET_SIGNAL_0, print "# Stopped",
37 instead of mentioning signal 0.
39 * thread.c (set_stop_requested): New.
41 * linux-nat.c (queued_waitpid): Rename to ...
42 (queued_waitpid_1): ... this. Add `peek' argument. Handle it.
43 (queued_waitpid): New, as wrapper to queued_waitpid_1.
44 (push_waitpid): Push the SIGTRAP to the local event queue, to the
46 (send_sigint_callback): Delete.
47 (linux_nat_stop_lwp): New.
48 (linux_nat_stop): Use it.
50 2008-10-23 Paul Pluzhnikov <ppluzhnikov@google.com>
52 * python/python-value (valpy_getitem): Fix heap corruption.
54 2008-10-23 Aleksandar Ristovski <aristovski@qnx.com>
56 * nto-procfs.c (do_attach): Form proper ptid including pid and tid.
57 (procfs_create_inferior): Fetch list of threads.
59 2008-10-23 Aleksandar Ristovski <aristovski@qnx.com>
61 * nto-procfs.c (procfs_files_info): Fix a typo.
62 (procfs_create_inferior): Make attach_flag per-inferior.
64 2008-10-23 Tom Tromey <tromey@redhat.com>
66 * python/python-value.c (value_to_value_object): Initialize
68 (valpy_new): Likewise.
70 2008-10-23 Jan Kratochvil <jan.kratochvil@redhat.com>
71 Joel Brobecker <brobecker@adacore.com>
73 * ada-tasks.c (task_states, long_task_states): Use constant N_()
74 initializer. Define the strings as const.
75 (short_task_info, info_task): Translate the strings above.
77 2008-10-22 Joel Brobecker <brobecker@adacore.com>
79 * NEWS: Add entry for new feature (Ada tasking support).
81 2008-10-22 Joel Brobecker <brobecker@adacore.com>
83 * configure.ac: On alpha-osf, error out if enable_tui is set to
84 "yes", and set enable_tui to "no" if previously set to "auto".
85 Check for waddstr only if TUI support was requested. Move the
86 part of the configure script that updates various Makefile
87 variables up, together with the check for waddstr.
88 * configure: Regenerate.
90 2008-10-22 Joel brobecker <brobecker@adacore.com>
92 * gdbtypes.c (copy_type): New function.
93 * gdbtypes.h (copy_type): Add declaration.
94 * ada-lang.c (ada_to_fixed_type_1): If there is a parallel XVZ
95 variable, then use it.
97 2008-10-22 Joel Brobecker <brobecker@adacore.com>
99 * target.h (struct target_ops): Add new field to_get_ada_task_ptid.
100 (target_get_ada_task_ptid): New macro.
101 * target.c (default_get_ada_task_ptid): New function.
102 (update_current_target): Inherit field default_get_ada_task_ptid.
103 (update_current_target): Make default_get_ada_task_ptid the default
104 value for field to_get_ada_task_ptid.
105 * ada-lang.h (struct task_control_block): Delete. Never used.
106 (struct task_ptid, task_ptid_t, struct task_entry, task_list):
108 (struct ada_task_info): New.
109 (ada_task_is_alive, ada_find_printable_frame)
110 (ada_task_list_iterator_ftype, iterate_over_live_ada_tasks): Add
112 (ada_build_task_list): Update prototype.
113 (init_task_list, ada_is_exception_breakpoint): Remove prototypes.
114 * ada-lang.c (ada_find_printable_frame): Make non-static.
115 * ada-tasks.c: New file.
116 * Makefile.in (SFILES): Add ada-tasks.c.
117 (COMMON_OBS): Add ada-tasks.o.
118 * linux-thread-db.c (thread_db_find_thread_from_tid)
119 (thread_db_get_ada_task_ptid): New functions.
120 (init_thread_db_ops): Set thread_db_ops.to_get_ada_task_ptid.
122 2008-10-22 Tom Tromey <tromey@redhat.com>
125 * c-exp.y (string_exp): New production.
128 2008-10-21 Jan Kratochvil <jan.kratochvil@redhat.com>
130 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): Update TYPE_FIELD_STATIC
133 2008-10-20 Joel Brobecker <brobecker@adacore.com>
135 * NEWS: Add entry mentioning thread-support on Tru64
137 2008-10-19 Joel Brobecker <brobecker@adacore.com>
139 * dec-thread.c: New file.
140 * config/alpha/alpha-osf3.mh (NATDEPFILES): Add dec-thread.o.
143 2008-10-19 Hui Zhu <teawater@gmail.com>
145 * infrun.c (handle_inferior_event): Set "stop_pc" when
146 TARGET_WAITKIND_NO_HISTORY.
148 2008-10-19 Pedro Alves <pedro@codesourcery.com>
150 * python/python-value.c (value_object_methods)
151 (value_object_as_number, value_object_as_mapping): Move to bottom
153 (valpy_dealloc, valpy_new, valpy_length, valpy_getitem)
154 (valpy_setitem, valpy_str, valpy_add, valpy_subtract)
155 (valpy_multiply, valpy_divide, valpy_remainder, valpy_power)
156 (valpy_negative, valpy_positive, valpy_absolute, valpy_nonzero)
157 (valpy_richcompare, valpy_dereference): Don't forward-declare.
158 (valpy_length) [HAVE_LIBPYTHON2_4]: Change return type to `int'.
160 2008-10-18 Pedro Alves <pedro@codesourcery.com>
162 * infrun.c (adjust_pc_after_break): Do nothing if executing in
165 2008-10-17 Pedro Alves <pedro@codesourcery.com>
167 * infcmd.c (GO_USAGE): Delete.
168 (go_command): Adjust.
170 2008-10-17 Michael Snyder <msnyder@vmware.com>
171 Target interface for reverse debugging.
172 * target.h (enum target_waitkind):
173 Add new wait event, TARGET_WAITKIND_NO_HISTORY.
174 (struct target_ops): New method to_can_execute_reverse.
175 (target_can_execute_reverse): New macro.
176 * target.c (update_current_target): Inherit to_can_execute_reverse.
178 Remote interface for reverse debugging.
179 * remote.c (remote_can_execute_reverse): New target method.
180 (remote_resume): Check for reverse exec direction, and send
181 appropriate command to target.
182 (remote_wait_as): Check target response for NO_HISTORY status.
183 Also check for empty reply (target doesn't understand "bs" or "bc).
184 (remote_vcont_resume): Jump out if attempting reverse execution.
186 Event handling interface for reverse debugging.
187 * infrun.c (execution_direction): New state variable.
188 (enum inferior_stop_reason): Add NO_HISTORY reason.
189 (handle_inferior_event): Handle TARGET_WAITKIND_NO_HISTORY.
190 Handle stepping over a function call in reverse.
191 Handle stepping thru a line range in reverse.
192 Handle setting a step-resume breakpoint in reverse.
193 Handle stepping into a function in reverse.
194 Handle stepping between line ranges in reverse.
195 (print_stop_reason): Print reason for NO_HISTORY.
196 (step_into_function): Rename to handle_step_into_function.
197 (handle_step_into_function_backward): New function.
198 (set_exec_direction_func, show_exec_direction_func): New funcs.
199 (proceed): No need to singlestep over a breakpoint
200 when resuming in reverse.
202 * inferior.h (enum exec_direction_kind): New enum.
203 (execution_direction): Export new execution state variable.
205 * breakpoint.c (make_breakpoint_silent): New function.
206 * breakpoint.h (make_breakpoint_silent): Export.
207 * infcmd.c (finish_command): Check for reverse exec direction.
208 (finish_backward): New function, handle finish cmd in reverse.
210 User interface for reverse execution.
211 * Makefile.in (reverse.c): New file.
212 * reverse.c: New file. User interface for reverse execution.
214 2008-10-17 Pedro Alves <pedro@codesourcery.com>
216 * remote.c (record_currthread): Add inferior before child threads.
217 (remote_threads_info): Check for exited threads. Mention
220 2008-10-16 Joel Brobecker <brobecker@adacore.com>
222 * breakpoint.h (enum bptype): New enum bp_catchpoint.
223 Delete bp_catch_fork and bp_catch_vfork.
224 (struct breakpoint_ops): Add new methods "insert", "remove"
225 and "breakpoint_hit".
226 * breakpoint.c (create_fork_vfork_event_catchpoint)
227 (create_fork_event_catchpoint, create_vfork_event_catchpoint): Remove.
228 (insert_catchpoint): Remove handling of bp_catch_fork and
229 bp_catch_vfork catchpoints, and handle them as bp_catchpoint
231 (insert_bp_location, update_breakpoints_after_exec)
232 (remove_breakpoint, bpstat_check_location, bpstat_what)
233 (allocate_bp_location): Likewise.
234 (print_it_typical, print_one_breakpoint_location, mention): Remove
235 handling of bp_catch_fork and bp_catch_vfork breakpoints.
236 (ep_is_catchpoint, user_settable_breakpoint)
237 (breakpoint_address_is_meaningful, adjust_breakpoint_address)
238 (breakpoint_re_set_one, disable_command, enable_command):
239 Remove use of bp_catch_fork and bp_catch_vfork. Add handling of
240 bp_catchpoint breakpoints.
241 (insert_catch_fork, remove_catch_fork, breakpoint_hit_catch_fork)
242 (print_it_catch_fork, print_one_catch_fork, print_mention_catch_fork):
244 (catch_fork_breakpoint_ops): New static constant.
245 (insert_catch_vfork, remove_catch_vfork, breakpoint_hit_catch_vfork)
246 (print_it_catch_vfork, print_one_catch_vfork)
247 (print_mention_catch_vfork): New functions.
248 (catch_vfork_breakpoint_ops): New static constant.
249 (create_catchpoint, create_fork_vfork_event_catchpoint): New functions.
250 (catch_fork_command_1): Use create_fork_vfork_event_catchpoint
251 to create the fork and vfork catchpoints.
252 (gnu_v3_exception_catchpoint_ops): Set new breakpoint_ops fields.
253 * ada-lang.c (catch_exception_breakpoint_ops): Set new breakpoint_ops
255 (catch_exception_unhandled_breakpoint_ops): Likewise.
256 (catch_assert_breakpoint_ops): Likewise.
258 2008-10-16 Pedro Alves <pedro@codesourcery.com>
260 * remote.c (set_general_process): New.
261 (remote_check_symbols): Use it.
263 2008-10-16 Pedro Alves <pedro@codesourcery.com>
265 * remote.c (push_remote_target): Delete.
266 * target.h (push_remote_target): Delete declaration.
268 2008-10-15 Pedro Alves <pedro@codesourcery.com>
270 * remote.c (remote_close): Unregister remote_desc from the event
271 loop. Always restore the SIGINT handler. Discard all inferiors
273 (remote_detach_1, remote_disconnect): Don't unregister the file
274 descriptor from the event loop here.
275 (interrupt_query, readchar, getpkt_sane): Pop the target instead
276 of morning the current inferior.
277 (remote_kill): Don't unregister the file descriptor from the event
279 (remote_mourn_1): Don't discard inferiors here.
281 2008-10-15 Pedro Alves <pedro@codesourcery.com>
283 * breakpoint.c (breakpoint_init_inferior): Clean up the moribund
285 (moribund_breakpoint_here_p): Record the moribund
286 location in the moribund_locations vector.
287 * breakpoint.h (moribund_breakpoint_here_p): Declare.
288 (displaced_step_fixup): Check if the breakpoint the thread was
289 trying to step over has been removed since having been placed in
290 the displaced stepping queue.
291 (adjust_pc_after_break): In non-stop mode, check for a moribund
292 breakpoint at the stop pc.
293 (handle_inferior_event): Don't retire moribund breakpoints on
294 TARGET_WAITKIND_IGNORE.
296 2008-10-15 Pedro Alves <pedro@codesourcery.com>
298 * infrun.c (displaced_step_prepare): Switch thread temporarily
300 (displaced_step_fixup): Make sure target_resume sees ptid as
301 inferior_ptid. Add debug output.
303 2008-10-14 Pedro Alves <pedro@codesourcery.com>
307 * breakpoint.c (show_breakpoint_hit_counts): Delete.
308 (print_one_breakpoint_location): Adjust.
309 (breakpoint_clear_ignore_counts): Delete.
310 * breakpoint.h (breakpoint_clear_ignore_counts): Remove
312 * target.c (generic_mourn_inferior): Don't clear ignore
313 counts (never reached).
315 2008-10-10 Doug Evans <dje@google.com>
317 * dwarf2read.c (comp_unit_head): Use unsigned int consistently
318 for dwarf section offsets and sizes.
320 (dwarf2_per_cu_data): Ditto.
321 (create_all_comp_units): Change offset to unsigned int.
322 (load_full_comp_unit,find_partial_die_in_comp_unit,find_partial_die,
323 dwarf2_find_containing_comp_unit,dwarf2_find_comp_unit): Ditto.
325 * dwarf2read.c (read_initial_length): Delete cu_header arg.
327 (read_checked_initial_length_and_offset): New function.
328 (read_offset_1): New function.
329 (read_offset): Call it.
330 (dwarf_decode_line_header): Call read_checked_initial_length_and_offset
331 instead of read_initial_length. Call read_offset_1 instead of
334 * dwarf2read.c (dwarf2_get_ref_die_offset): Remove unused arg `cu'.
337 * dwarf2read.c (dwarf_attr_name): Unconditionally support all
338 DW_AT_MIPS_* except DW_AT_MIPS_fde which collides with
339 DW_AT_HP_block_index.
341 2008-10-10 Pedro Alves <pedro@codesourcery.com>
343 * remote.c (remote_start_remote): Always tell the stub if we're in
346 2008-10-09 Pedro Alves <pedro@codesourcery.com>
348 * remote.c (remote_wait): Rename to...
349 (remote_wait_as): ... this. Don't loop here. If the remote
350 didn't stop, return TARGET_WAITKIND_IGNORE.
351 (remote_wait): New, reimplemented on top of remote_wait_as.
353 2008-10-09 Thomas Schwinge <tschwinge@gnu.org>
355 * Makefile.in (gnu-nat.o): Revert the 2008-09-10 change, as the problem
358 * reply_mig_hack.awk: Use the `BAD_TYPECHECK' macro.
360 * MAINTAINERS (Write After Approval): Add myself.
362 2008-10-09 Pedro Alves <pedro@codesourcery.com>
364 Make it compile without warnings.
366 * procfs.c (create_procinfo): Initialize `parent'.
367 (dead_procinfo): Pass a constant string as format to error.
368 (procfs_address_to_host_pointer): Add cast to gdb_type *.
369 (procfs_find_LDT_entry): Adjust format string to long int
371 (procfs_xfer_partial): Adjust prototype. Add gdb_byte* cast.
372 (procfs_xfer_memory): Adjust prototype.
373 (info_mappings_callback, info_proc_mappings): Adjust to not pass a
374 variable as printf_filtered format.
375 (procfs_make_note_section): Change type of auxv local to gdb_byte.
376 * Makefile.in: Remove special rule.
378 2008-10-09 Pedro Alves <pedro@codesourcery.com>
379 Daniel Jacobowitz <dan@codesourcery.com>
381 * remote.c (remote_open_1): Move acknowledging any pending ack,
382 querying supported features, activating noack mode, finding the
383 target description, enabling extended remote, and checking remote
384 symbols from here ...
385 (remote_start_remote): ... to here.
386 (remote_open_1): Don't pop the target if it is already gone.
387 * target.c (unpush_target): Check for the dummy target.
389 2008-10-09 Pedro Alves <pedro@codesourcery.com>
391 * ser-mingw.c: Include "command.h".
392 (pipe_windows_open): Declare locals at the beginning of the scope.
394 2008-10-08 Pedro Alves <pedro@codesourcery.com>
396 * remote.c (struct remote_state) <waiting_for_stop_reply>: New
398 (remote_open_1): Clear waiting_for_stop_reply.
399 (remote_resume): Set waiting_for_stop_reply.
400 (remote_wait): Clear or set waiting_for_stop_reply accordingly.
401 (putpkt_binary): If we're in async mode and waiting for a stop
402 reply, bail out with an error.
403 (extended_remote_mourn_1): Clear waiting_for_stop_reply.
405 2008-10-08 Pedro Alves <pedro@codesourcery.com>
407 * remote.c (remote_get_thread_info): If the remote doesn't support
410 2008-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
412 Convert static_kind into loc_kind enum.
413 * gdbtypes.h (enum field_loc_kind): New.
414 (union field_location): New field dwarf_block.
415 (struct field): Rename static_kind as loc_kind.
416 (FIELD_STATIC_KIND): Rename to ...
417 (FIELD_LOC_KIND): ... here.
418 (TYPE_FIELD_STATIC_KIND): Rename to ...
419 (TYPE_FIELD_LOC_KIND): ... here and use there now new FIELD_LOC_KIND.
420 (TYPE_FIELD_STATIC_HAS_ADDR): Remove.
421 (TYPE_FIELD_STATIC): Remove.
422 (TYPE_FIELD_BITPOS): Reformat.
423 (SET_FIELD_BITPOS): New.
424 (FIELD_PHYSADDR): Rename to ...
425 (FIELD_STATIC_PHYSADDR): ... here.
426 (TYPE_FIELD_STATIC_PHYSADDR): Follow the FIELD_PHYSADDR rename.
427 (SET_FIELD_PHYSADDR): Use new FIELD_LOC_KIND.
428 (FIELD_PHYSNAME): Rename to ...
429 (FIELD_STATIC_PHYSNAME): ... here.
430 (TYPE_FIELD_STATIC_PHYSNAME): Follow the FIELD_PHYSNAME rename.
431 (SET_FIELD_PHYSNAME): Use new FIELD_LOC_KIND.
432 (FIELD_DWARF_BLOCK, TYPE_FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK): New.
433 (field_is_static): New declaration.
434 * gdbtypes.c (field_is_static): New function.
435 (copy_type_recursive): Update throughout.
436 * amd64-tdep.c, c-typeprint.c, coffread.c, cp-valprint.c, dwarf2read.c,
437 eval.c, jv-typeprint.c, jv-valprint.c, mdebugread.c, p-typeprint.c,
438 p-valprint.c, valops.c, value.c, varobj.c: Update throughout.
440 2008-10-07 Thomas Schwinge <tschwinge@gnu.org>
441 Pedro Alves <pedro@codesourcery.com>
443 * gnu-nat.h: Rename `current_inferior' to `gnu_current_inf' to
444 avoid a name collision.
445 * gnu-nat.c: Likewise.
446 * i386gnu-nat.c: Likewise.
448 2008-10-07 Joel Brobecker <brobecker@adacore.com>
450 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Add handling
451 of arguments that are references.
453 2008-10-06 Doug Evans <dje@google.com>
455 * dwarf2read.c (dwarf2_die_debug): New static global.
456 (dump_die_shallow): Renamed from dump_die, New args f, indent.
457 Print to specified file, indented by the specified amount.
458 (dump_die_for_error): New fn. Point all existing callers of
460 (dump_die_die_1,dump_die): New fns, replaces ...
461 (dump_die_list): ... deleted.
462 (read_die_and_children_1): Old contents of read_die_and_children
464 (read_die_and_children): Rewrite.
465 (read_die_and_siblings): Call read_die_and_children_1 instead of
466 read_die_and_children.
467 (_initialize_dwarf2_read): New option "debug dwarf2-die".
468 * gdbinit.in (pdie): New macro.
470 * dwarf2read.c (offset_in_cu_p): New function.
471 (find_partial_die,follow_die_ref): Use it.
473 * symmisc.c (maintenance_info_symtabs): Watch for ^c.
474 (maintenance_info_psymtabs): Ditto.
476 2008-10-05 Michael Snyder <msnyder@vmware.com>
478 * infrun.c (handle_inferior_event): Fix typo in comment.
480 2008-10-04 Vladimir Prus <vladimir@codesourcery.com>
482 * mi/mi-interp.c (mi_on_resume): Flush raw_stdout.
484 2008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com>
487 * gdbtypes.c (get_vptr_fieldno): baseclass and basetype may have
490 2008-10-03 Joel Brobecker <brobecker@adacore.com>
492 * solib-osf.c: Include "solib.h".
494 2008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com>
496 * utils.c, defs.h (gdb_buildargv): New fn. Wrap buildargv
497 and check for out-of-memory condition.
498 * exec.c (exec_file_command): Call it.
499 * infrun.c (handle_command, xdb_handle_command): Likewise.
500 * interps.c (interpreter_exec_cmd): Likewise.
501 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
502 * procfs.c (info_proc_cmd): Likewise.
503 * remote-mips.c (common_open): Likewise.
504 * remote-sim.c (gdbsim_kill, gdbsim_create_inferior)
505 (gdbsim_open): Likewise.
506 * remote.c (extended_remote_run, remote_put_command)
507 (remote_get_command, remote_delete_command): Likewise.
508 * ser-mingw.c (pipe_windows_open): Likesise.
509 * source.c (add_path, show_substitute_path_command)
510 (unset_substitute_path_command, set_substitute_path_command):
512 * stack.c (backtrace_command): Likewise.
513 * symfile.c (symbol_file_command, generic_load)
514 (add_symbol_file_command): Likesise.
515 * symmisc.c (maintenance_print_symbols, maintenance_print_psymbols)
516 (maintenance_print_msymbols): Likewise.
518 2008-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
520 Replace TYPE_ARRAY_{UPPER,LOWER}_BOUND_TYPE by a bit if {un,}defined.
521 * c-typeprint.c (c_type_print_varspec_suffix), m2-typeprint.c
522 (m2_array), p-typeprint.c (pascal_type_print_varspec_prefix),
523 valops.c (value_cast), varobj.c (c_number_of_children): Replace
524 TYPE_ARRAY_UPPER_BOUND_TYPE compared to BOUND_CANNOT_BE_DETERMINED by
525 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
526 * parse.c (follow_types): Use TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
527 * f-valprint.c (f77_get_dynamic_upperbound): Replace with ...
528 (f77_get_upperbound): ... this function handling now only
529 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
530 (f77_get_dynamic_lowerbound): Replace with ...
531 (f77_get_lowerbound): ... this function handling now only
532 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED.
533 (f77_get_dynamic_length_of_aggregate, f77_create_arrayprint_offset_tbl):
534 Update their callers.
535 * eval.c (evaluate_subexp_standard): Update their callers.
536 * f-lang.h (f77_get_dynamic_upperbound, f77_get_upperbound)
537 (f77_get_dynamic_lowerbound, f77_get_lowerbound): Update their
539 (BOUND_FETCH_OK, BOUND_FETCH_ERROR): Remove.
540 * f-typeprint.c (f_type_print_varspec_suffix, f_type_print_base): Remove
541 the lower_bound_was_default variable. Update the
542 f77_get_dynamic_upperbound, f77_get_upperbound and
543 TYPE_ARRAY_UPPER_BOUND_TYPE calls.
544 * gdbtypes.c (print_bound_type): Remove the function.
545 (recursive_dump_type): Remove its calls printing UPPER_BOUND_TYPE and
547 * gdbtypes.h (enum array_bound_type): Remove.
548 (struct main_type): Remove the fields upper_bound_type and
549 lower_bound_type. Comment the new overload of the field artificial.
550 (TYPE_ARRAY_UPPER_BOUND_TYPE): Replace by ...
551 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): ... this macro.
552 (TYPE_ARRAY_LOWER_BOUND_TYPE): Replace by ...
553 (TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): ... this macro.
555 2008-10-02 Tom Tromey <tromey@redhat.com>
557 * Makefile.in (HFILES_NO_SRCDIR): Remove gdb-events.h, gstdint.h.
559 2008-10-02 Daniel Jacobowitz <dan@codesourcery.com>
561 * mips-linux-tdep.c (mips_linux_in_dynsym_resolve_code): Update
563 (mips_linux_skip_resolver): Also use glibc_skip_solib_resolver.
564 (mips_linux_init_abi): Do not override skip_trampoline_code.
565 * configure.tgt (mips*-*-linux*): Add glibc-tdep.o.
566 * mips-tdep.c (mips32_scan_prologue): Stop scanning at branches.
567 (mips_stub_frame_sniffer): Use the stub frame sniffer for PIC stubs.
568 (mips_skip_mips16_trampoline_code): Rename from
569 mips_skip_trampoline_code.
570 (mips_skip_pic_trampoline_code, mips_skip_trampoline_code): New.
571 * infrun.c (handle_inferior_event): Do not pass zero to
572 in_solib_dynsym_resolve_code.
574 2008-10-02 Pierre Muller <muller@ics.u-strasbg.fr>
575 Pedro Alves <pedro@codesourcery.com>
577 * win32-nat.c (do_initial_win32_stuff): Set inferior_ptid.
580 2008-10-01 Tom Tromey <tromey@redhat.com>
582 * symtab.c (search_symbols): Update.
583 * symtab.h (domain_enum_tag) <METHODS_DOMAIN>: Remove.
585 2008-10-01 Tom Tromey <tromey@redhat.com>
587 * symfile.c (syms_from_objfile): Update.
588 (reread_symbols): Update.
589 * objfiles.h (OBJF_SYMS): Remove.
590 (OBJF_REORDERED): Renumber.
591 (OBJF_SHARED): Likewise.
592 (OBJF_READNOW): Likewise.
593 (OBJF_USERLOADED): Likewise.
595 2008-10-01 Tom Tromey <tromey@redhat.com>
597 * symtab.c (find_pc_sect_psymtab): Use MSYMBOL_TYPE.
598 (find_pc_sect_symtab): Likewise.
599 * symmisc.c (dump_msymbols): Use MSYMBOL_TYPE.
600 * solib-som.c (som_solib_desire_dynamic_linker_symbols): Use
601 MSYMBOL_TYPE, not SYMBOL_TYPE.
602 * parse.c (write_exp_msymbol): Use MSYMBOL_TYPE.
603 * objc-lang.c (find_methods): Use MSYMBOL_TYPE.
604 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Use
606 * m2-exp.y (yylex): Use SYMBOL_CLASS.
608 2008-10-01 Tom Tromey <tromey@redhat.com>
610 * xcoffread.c (RECORD_MINIMAL_SYMBOL): Update.
611 (scan_xcoff_symtab): Update.
612 * mdebugread.c (record_minimal_symbol): Update.
613 (parse_partial_symbols): Update.
614 * elfread.c (record_minimal_symbol): Update.
615 * dbxread.c (record_minimal_symbol): Update.
616 * coffread.c (record_minimal_symbol): Update.
617 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Redefine.
618 (sh64_elf_make_msymbol_special): Update.
619 * mips-tdep.c (mips_elf_make_msymbol_special): Use
620 MSYMBOL_TARGET_FLAG_1.
621 (mips_elf_make_msymbol_special): Likewise.
622 (msymbol_is_special): Likewise.
623 * minsyms.c (prim_record_minimal_symbol_and_info): Update.
624 (install_minimal_symbols): Likewise.
625 (prim_record_minimal_symbol): Update.
626 (prim_record_minimal_symbol_and_info): Remove 'info' argument.
627 * m68hc11-tdep.c (MSYMBOL_SET_RTC): Redefine.
628 (MSYMBOL_SET_RTI): Redefine.
629 (MSYMBOL_IS_RTC): Redefine.
630 (MSYMBOL_IS_RTI): Redefine.
631 * arm-tdep.c (MSYMBOL_SET_SPECIAL): Redefine.
632 (MSYMBOL_IS_SPECIAL): Redefine.
633 * symtab.h (struct minimal_symbol) <info>: Remove.
634 <target_flag_1, target_flag_2>: New fields.
635 (MSYMBOL_INFO): Remove.
636 (MSYMBOL_TARGET_FLAG_1): New macro.
637 (MSYMBOL_TARGET_FLAG_2): Likewise.
638 (prim_record_minimal_symbol_and_info): Update.
640 2008-09-30 Joel Brobecker <brobecker@adacore.com>
642 * ada-lang.c (is_digits_suffix): Delete unused function.
644 2008-09-30 Paul Hilfinger <hilfinger@adacore.com>
646 * ada-lang.c (ada_modulus): Correct to avoid sign problem with
649 2008-09-30 Paul Hilfinger <hilfinger@adacore.com>
651 * ada-lang.c (ada_lookup_struct_elt_type): Handle case of a "naked"
653 (empty_record): Use INIT_CPLUS_SPECIFIC, since this field is not
654 supposed to be null. Fixes debugger segfaults.
655 (is_unchecked_variant): New function.
656 (to_fixed_variant_branch_type): Modify to leave unchecked unions
658 (ada_template_to_fixed_record_type_1): Fix comment.
660 2008-09-30 Joel Brobecker <brobecker@adacore.com>
662 * ada-lang.c (standard_exc): New static constant.
663 (ada_exception_catchpoint_cond_string): Add special handling
664 for the predefined exceptions.
666 2008-09-30 Joel Brobecker <brobecker@adacore.com>
668 * ada-lang.c (ADA_RETAIN_DOTS): Delete this dead macro. Update
669 the code accordingly.
671 2008-09-30 Joel Brobecker <brobecker@adacore.com>
673 * ada-lang.c (ada_evaluate_subexp) [UNOP_IND]: Remove strange
674 treatment of expect_type. Return the correct type when dereferencing
677 2008-09-30 Tom Tromey <tromey@redhat.com>
680 * symtab.c (struct add_macro_name_data): New struct.
681 (add_macro_name): New function.
682 (default_make_symbol_completion_list): Complete macro names.
683 * scm-lang.c (scm_language_defn): Update.
684 * p-lang.c (pascal_language_defn): Update.
685 * objc-lang.c (objc_language_defn): Update.
686 * macrotab.h (macro_callback_fn): Add user_data argument.
687 (macro_for_each): Likewise.
688 (macro_for_each_in_scope): Declare.
689 * macrotab.c: (struct macro_for_each_data): New struct.
690 (foreach_macro): Use it.
691 (macro_for_each): Likewise.
692 (foreach_macro_in_scope): New function.
693 (macro_for_each_in_scope): Likewise.
694 * macrocmd.c (print_one_macro): Add argument.
695 (macro_list_command): Pass NULL to macro_for_each.
696 * m2-lang.c (m2_language_defn): Update.
697 * language.h (struct language_defn) <la_macro_expansion>: New
699 (macro_expansion): New enum.
700 * language.c (unknown_language_defn): Update. Fix order of
702 (auto_language_defn): Likewise.
703 (local_language_defn): Update.
704 * jv-lang.c (java_language_defn): Update.
705 * f-lang.c (f_language_defn): Update.
706 * c-lang.c (c_language_defn): Update.
707 (cplus_language_defn): Likewise.
708 (asm_language_defn): Likewise.
709 (minimal_language_defn): Likewise.
710 * ada-lang.c (ada_language_defn): Update.
712 2008-09-30 Joel Brobecker <brobecker@adacore.com>
714 * dwarf2read.c (dwarf2_get_subprogram_pc_bounds): New function.
715 (get_scope_pc_bounds): Use it.
717 2008-09-27 Tom Tromey <tromey@redhat.com>
720 * macrocmd.c (extract_identifier): Add is_parameter argument.
721 (macro_define_command): Update.
722 (macro_undef_command): Likewise.
723 * macroexp.c (stringify): New function.
724 (find_parameter): Likewise.
725 (gather_arguments): Add nargs argument. Handle varargs.
726 (substitute_args): Add is_varargs and va_arg_name arguments.
727 Handle varargs, splicing, stringification. Use find_parameter.
728 (expand): Handle varargs.
730 2008-09-27 Tom Tromey <tromey@redhat.com>
732 * scm-lang.c (scm_language_defn): Update.
733 * p-typeprint.c (pascal_print_typedef): New function.
734 * p-lang.h: (pascal_print_typedef): Declare.
735 * p-lang.c (pascal_language_defn): Update.
736 * objc-lang.c (objc_language_defn): Update.
737 * m2-typeprint.c (m2_print_typedef): New function.
738 * m2-lang.h (m2_print_typedef): Declare.
739 * m2-lang.c (m2_language_defn): Update.
740 * language.h (_LANG_c, _LANG_m2, _LANG_fortran, _LANG_pascal):
742 (struct language_defn) <la_print_typedef>: New field.
743 (default_print_typedef): Declare.
744 (LA_PRINT_TYPEDEF): New define.
745 * language.c (unknown_language_defn): Update.
746 (auto_language_defn): Update.
747 (local_language_defn): Update.
748 * jv-lang.c (java_language_defn): Update.
749 * f-lang.c (f_language_defn): Update.
750 * c-typeprint.c (c_print_typedef): New function.
751 * c-lang.h (c_print_typedef): Declare.
752 * c-lang.c (c_language_defn): Update.
753 (cplus_language_defn): Update.
754 (asm_language_defn): Update.
755 (minimal_language_defn): Update.
756 * ada-lang.c (ada_language_defn): Update.
757 * typeprint.c (default_print_typedef): New function.
759 2008-09-27 Tom Tromey <tromey@redhat.com>
761 * jv-exp.y (insert_exp): Define using ISO syntax.
762 (copy_exp): Likewise.
763 (push_expression_name): Likewise.
764 (push_fieldnames): Likewise.
765 (java_type_from_name): Likewise.
768 (parse_number): Likewise.
770 2008-09-26 Joel Brobecker <brobecker@adacore.com>
772 * MAINTAINERS (GLOBAL MAINTAINERS): Add Pedro Alves.
774 2008-09-25 Stephan Springl <springl-gdb@bfw-online.de> (tiny change)
776 * stack.c (print_frame_args): Fix typos in comments.
778 2008-09-25 Sérgio Durigan Júnior <sergiodj@linux.vnet.ibm.com>
780 * linux-nat.c (get_pending_status): Fix argument to WIFSTOPPED.
782 2008-09-24 Vladimir Prus <vladimir@codesourcery.com>
784 * remote-sim.c (gdbsim_create_inferior): Fix missing parenthesis.
786 2008-09-24 Andreas Schwab <schwab@suse.de>
788 * frame.c (get_frame_register_bytes): Take pseudo registers into
789 account. Avoid excessive function calls.
791 2008-09-23 Doug Evans <dje@google.com>
793 * dcache.c (state_chars): New static global.
794 (ENTRY_INVALID,ENTRY_VALID): Renamed from ENTRY_BAD,ENTRY_OK.
796 (dcache_info): Print cache state as mnemonically useful letters instead
799 * dwarf2read.c (comp_unit_head): Reorganize for better packing.
801 2008-09-22 Tom Tromey <tromey@redhat.com>
803 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't use
806 2008-09-22 Pedro Alves <pedro@codesourcery.com>
808 * infrun.c (follow_exec): Don't do a generic mourn. Instead
809 inline the required bits.
810 * breakpoint.h (enum inf_context): Add inf_execd.
812 2008-09-22 Pedro Alves <pedro@codesourcery.com>
814 * infrun.c (handle_inferior_event): In the follow exec case,
815 context-switch before doing anything else.
817 2008-09-22 Pedro Alves <pedro@codesourcery.com>
819 * top.c (any_thread_of, kill_or_detach): New functions.
820 (quit_target): Iterate over all inferiors, killing or detaching
823 2008-09-22 Pedro Alves <pedro@codesourcery.com>
825 Remove the attach_flag global, and make it per-inferior.
827 * inferior.h (attach_flag): Delete.
828 (inferior_process): Declare.
829 * solib.c (update_solib_list): Adjust.
830 * gnu-nat.c (gnu_create_inferior, gnu_attach): Adjust.
831 * inf-ptrace.c (inf_ptrace_detach): Adjust.
832 (inf_ptrace_files_info): Get it from the current inferior.
833 * inf-ttrace.c (inf_ttrace_attach): Adjust.
834 (inf_ttrace_files_info): Get it from the current
836 * inflow.c (terminal_inferior, terminal_ours_1, set_sigint_trap)
837 (clear_sigint_trap): Get it from the current process.
838 * remote.c (extended_remote_attach_1)
839 (extended_remote_create_inferior_1): Adjust.
840 * top.c (quit_confirm, quit_target): Get it from the current inferior.
841 * procfs.c (do_detach): Adjust.
842 (procfs_wait): Get it from the event inferior.
843 (procfs_files_info): Get it from the current inferior.
844 * nto-procfs.c (procfs_files_info): Likewise.
845 (procfs_attach): Adjust. Set the attach_flag here.
846 (do_attach): Don't set it here.
847 (procfs_detach): Don't clear it.
848 (procfs_mourn_inferior): Don't clear it.
849 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
850 * target.c (attach_flag): Delete.
851 (generic_mourn_inferior): Don't clear it.
852 * win32-nat.c (get_win32_debug_event): Get it from the event
854 (do_initial_win32_stuff): Add attaching argument. Set attach_flag
855 in the inferior accordingly.
856 (win32_attach): Don't set the attach_flag here. Pass 1 to
857 do_intial_win32_stuff.
858 (win32_files_info): Get it from the current inferior.
859 (win32_create_inferior): Dont clear attach_flag here. Pass 0 to
860 do_intial_win32_stuff.
862 2008-09-22 Pedro Alves <pedro@codesourcery.com>
864 Make the stop_soon global be per-inferior instead.
866 * infcmd.c (attach_command_post_wait): Adjust.
867 (attach_command): Likewise.
869 * inferior.h (stop_soon): Delete.
870 (struct inferior): Add stop_soon member.
872 * infrun.c (stop_soon): Delete.
873 (clear_proceed_status, start_remote)
874 (fetch_inferior_event, handle_inferior_event): Adjust.
875 (signal_stop_state): Don't check stop_soon here. Check in callers
877 (save_inferior_status, restore_inferior_status): Adjust.
879 * linux-nat.c (linux_nat_resume, linux_nat_wait): Always pass
880 signals to common code if starting up the inferior.
882 * inferior.h (struct inferior_info): Added stop_soon member.
883 * inferior.c (add_inferior) Clear stop_soon.
885 * mips-tdep.c (heuristic_proc_start): Adjust.
886 * nto-procfs.c (procfs_create_inferior): Adjust.
887 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
888 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
889 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
890 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
892 * win32-nat.c (do_initial_win32_stuff): Adjust.
894 * alpha-tdep.c (alpha_heuristic_proc_start): Adjust.
896 2008-09-22 Pedro Alves <pedro@codesourcery.com>
898 Implement remote multi-process extensions.
900 * remote.c (struct remote_state): Add extended and
901 multi_process_aware fields.
902 (remote_multi_process_p): New.
904 (record_currthread): Use thread_change_ptid. Notice new
906 (set_thread, remote_thread_alive): Use write_ptid.
907 (write_ptid, read_ptid): New.
908 (remote_current_thread, remote_threads_extra_info): Use them.
909 (remote_threads_info): Likewise. Detect new inferiors.
910 (remote_start_remote): Add inferior to inferior list.
911 (remote_multi_process_feature): New.
912 (remote_protocol_features): Add "multiprocess" feature.
913 (remote_query_supported): Pass "multiprocess+" as supported
915 (remote_open_1): Clear multi_process_aware. Set extended
917 (remote_detach_1): Detach current process. Use extended packet
918 format for extended-remote multi-process. Detach process from the
919 inferior list. Only mourn after printing output.
920 (extended_remote_attach_1): Add process to the inferior list.
921 (remote_vcont_resume): Use write_ptid to pass the thread ids.
922 (remote_wait): Use read_ptid. Implement the extended
923 multi-process extension format of the 'W' and 'X' reply packets.
924 Remove exited inferiors from inferior list.
925 (remote_xfer_memory): Set general thread.
927 (extended_remote_kill): New.
928 (remote_mourn_1): Discard all inferiors.
929 (select_new_thread_callback): New.
930 (extended_remote_mourn_1): If there are more processes to debug,
931 switch to a thread in another process, and don't pop the target.
932 (extended_remote_create_inferior_1): Add the new process to the
934 (remote_stopped_by_watchpoint): Indenting.
935 (remote_xfer_partial): Set the general thread.
936 (remote_pid_to_str): If the remote is multi-process aware, print
937 the process id as well as the thread id.
938 (remote_get_thread_local_address): Use write_ptid.
939 (init_extended_remote_ops): Register extended_remote_kill.
940 (_initialize_remote): Register new packets. Change
941 magic_null_ptid's, not_sent_ptid's and any_thread_ptid's pid
944 * thread.c (thread_change_ptid): Also account for the inferior pid
947 * inferior.h (discard_all_inferiors): Declare.
948 * inferior.c (discard_all_inferiors): New.
950 2008-09-22 Pedro Alves <pedro@codesourcery.com>
952 * gnu-nat.c (gnu_attach): Add process to inferiors table.
953 (gnu_detach): Remove it.
954 * go32-nat.c (go32_create_inferior): Add process to gdb's inferior
956 * inf-ptrace.c (inf_ptrace_follow_fork): Delete and add inferiors
957 to inferior table accordingly.
958 (inf_ptrace_attach): Add new process to inferior table.
959 (inf_ptrace_detach): Remove it.
960 * inf-ttrace.c (inf_ttrace_follow_fork): Delete and add inferiors
961 to inferior table accordingly.
962 (inf_ttrace_attach): Add process to inferior table.
963 (inf_ttrace_detach): Remove it.
964 * linux-fork.c (init_fork_list): Delete any left over inferior.
965 (linux_fork_mourn_inferior, detach_fork_command): Also delete
966 processes from inferior list.
967 * monitor.c (monitor_open): Add process to inferior list.
968 (monitor_close): Remove it.
969 * nto-procfs.c (procfs_attach): Add process to inferior list.
970 Find threads after pushing the target.
971 (procfs_detach): Remove process from inferior list.
972 (procfs_create_inferior): Add process to inferior list.
973 * procfs.c (procfs_detach): Remove process from inferior list.
974 (do_attach): Add process to inferior list.
975 * remote-sim.c (sim_create_inferior): Add process to inferior list.
976 (gdbsim_close): Remove it.
977 * target.c (generic_mourn_inferior): If inferior_ptid is not
978 null_ptid, remove the corresponding inferior from inferior list.
979 * win32-nat.c (do_initial_win32_stuff): Add process to inferior list.
980 (win32_detach): Remove it.
981 * linux-nat.c (linux_child_follow_fork): Delete and add inferiors
982 to inferior list accordingly.
983 * fork-child.c (fork_inferior): Add process to inferior list.
984 * corelow.c (CORELOW_PID): Define.
985 (core_close): Remove core from inferior list.
988 2008-09-22 Pedro Alves <pedro@codesourcery.com>
990 * inferior.h: Forward declare struct ui_out.
991 Forward declare struct private_inferior.
992 (struct inferior): New.
993 (init_inferior_list, add_inferior, add_inferior_silent)
994 (delete_inferior, delete_inferior_silent, detach_inferior)
995 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
996 (valid_inferior_id, find_inferior_pid): New functions.
997 (inferior_callback_func): New typedef.
998 (iterate_over_inferiors, print_inferior, have_inferiors)
999 (current_inferior): New functions.
1000 * inferior.c: New file.
1002 * Makefile.in (SFILES): Add inferior.c.
1003 (COMMON_OBS): Add inferior.o.
1005 2008-09-22 Jonathan Larmour <jifl@eCosCentric.com>
1007 * arm-tdep.c (arm_skip_prologue): Call skip_prologue_using_sal
1008 instead of determining symbol and line info directly.
1009 * MAINTAINERS: Update my email address.
1011 2008-09-22 Daniel Jacobowitz <dan@codesourcery.com>
1013 * symtab.c (skip_prologue_using_sal): Treat two consecutive lines
1014 at the same address as a prologue marker. Do not skip an entire
1017 2008-09-22 Andrew Stubbs <ams@codesourcery.com>
1019 * frame.c (get_frame_register_bytes): Comment improvments.
1021 2008-09-22 Pedro Alves <pedro@codesourcery.com>
1023 * linux-nat.c (linux_nat_wait): Only use set_ignore_sigint in
1026 2008-09-19 Andrew Stubbs <ams@codesourcery.com>
1028 * MAINTAINERS: Update my email address.
1030 2008-09-19 Andrew Stubbs <ams@codesourcery.com>
1032 * frame.c (get_frame_register_bytes): Detect bad debug info.
1034 2008-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1036 Fix a crash on uninitialized ECS->EVENT_THREAD for a newly found thread.
1037 * infrun.c (wait_for_inferior): Move this ECS->EVENT_THREAD
1039 (fetch_inferior_event): ... and this ECS->EVENT_THREAD initialization
1041 (handle_inferior_event): ... here after the add_thread call together
1042 with the local adjust_pc_after_break and reinit_frame_cache calls.
1044 2008-09-16 David Daney <ddaney@avtrex.com>
1046 * breakpoint.c (bpstat_stop_status): Clear breakpoint_at for
1047 all hardware bpstats.
1049 2008-09-16 Joel Brobecker <brobecker@adacore.com>
1051 * gstdint.h: Delete.
1053 2008-09-15 Mark Kettenis <kettenis@gnu.org>
1055 * infcall.c (generic_push_dummy_code): Remove.
1056 (push_dummy_code): Unconditionally call gdbarch_push_dummy_code.
1058 2008-09-15 Doug Evans <dje@google.com>
1060 * dwarf2read.c (struct abbrev_info): Make members name, form 16 bits.
1061 (struct attribute): Ditto.
1063 2008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1065 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Record
1066 HPPA_IPSW_REGNUM and HPPA_SAR_REGNUM values.
1068 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Remove surrounding
1069 "#if 0" "#endif". Fix mapping of DWARF DBX registers to GDB registers.
1070 Correct arguments and improve comments.
1071 (hppa_linux_init_abi): Call set_gdbarch_dwarf2_reg_to_regnum. Delete
1073 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Fix check for floating
1074 point DBX register, change error to warning, and improve comments.
1076 2008-09-14 Doug Evans <dje@google.com>
1078 * dwarf2read.c (struct die_info): Make members tag, num_attrs 16 bits.
1080 2008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1082 * hppa-linux-tdep.c (hppa_linux_supply_fpregset): Correct iteration.
1084 2008-09-13 Joel Brobecker <brobecker@adacore.com>
1086 * defs.h (GCC_GENERATED_STDINT_H): Define.
1088 2008-09-13 Tom Tromey <tromey@redhat.com>
1090 * varobj.c (varobj_set_display_format): Use xfree.
1091 * tracepoint.c (stringify_collection_list): Use xfree.
1092 * remote-fileio.c (remote_fileio_reset): Use xfree.
1093 * mipsread.c (read_alphacoff_dynamic_symtab): Use xfree.
1094 * dfp.c (decimal_from_floating): Use xfree, xstrprintf. Don't use
1096 * cp-support.c (mangled_name_to_comp): Use xfree.
1098 2008-09-13 Joel Brobecker <brobecker@adacore.com>
1100 * ada-lang.c (remove_extra_symbols): Remove stub symbols if
1101 the associated complete symbol is also in the list.
1102 (ada_add_local_symbols, ada_add_non_local_symbols): New functions,
1103 extracted out from ada_lookup_symbol_list.
1104 (ada_lookup_symbol_list): Use them. Remove the search through
1105 the minimal symbols.
1107 2008-09-13 Joel Brobecker <brobecker@adacore.com>
1109 * dwarf2read.c (add_partial_subprogram): New procedure.
1110 (scan_partial_symbols): Use it.
1111 (load_partial_dies): Read in children of subprogram and lexical
1112 blocks for Ada compilation units.
1114 2008-09-13 Tom Tromey <tromey@redhat.com>
1116 * symfile.c (build_id_verify): Free 'found'.
1117 (find_separate_debug_file): Use xfree, not free.
1119 2008-09-12 Doug Evans <dje@google.com>
1121 * corefile.c (write_memory): Remove unnecessary copying.
1123 * sol-thread.c (_initialize_sol_thread): Add FIXME regarding
1124 order of _initialize_* fns.
1126 * dwarf2read.c (comp_unit_head): Rename first_die_ptr to
1127 first_die_offset. All uses updated.
1128 Delete unused members cu_head_ptr, next.
1129 Move members base_known, base_address to ...
1130 (dwarf2_cu) ... here. All uses updated.
1132 2008-09-12 Pedro Alves <pedro@codesourcery.com>
1134 * Makefile.in (generated_files): Add $(NAT_GENERATED_FILES).
1135 * config/i386/i386gnu.mh (NAT_GENERATED_FILES): New.
1137 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1139 * fork-child.c (startup_inferior): Use target_wait and target_resume
1140 directly instead of calling wait_for_inferior / resume.
1142 * infcmd.c (kill_if_already_running): Do not call no_shared_libraries
1143 or init_wait_for_inferior.
1144 (run_command_1): Call init_wait_for_inferior.
1146 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1148 * gdbtypes.h (builtin_type_void_data_ptr, builtin_type_void_func_ptr,
1149 builtin_type_CORE_ADDR, builtin_type_char, builtin_type_short,
1150 builtin_type_int, builtin_type_long, builtin_type_signed_char,
1151 builtin_type_unsigned_char, builtin_type_unsigned_short,
1152 builtin_type_unsigned_int, builtin_type_unsigned_long,
1153 builtin_type_float, builtin_type_double, builtin_type_long_double,
1154 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
1155 builtin_type_bool, builtin_type_long_long,
1156 builtin_type_unsigned_long_long): Remove macros.
1158 (builtin_type_f_character, builtin_type_f_integer,
1159 builtin_type_f_integer_s2, builtin_type_f_logical,
1160 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
1161 builtin_type_f_real, builtin_type_f_real_s8, builtin_type_f_real_s16,
1162 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
1163 builtin_type_f_complex_s32): Likewise.
1165 (builtin_type_m2_char, builtin_type_m2_int, builtin_type_m2_card,
1166 builtin_type_m2_real, builtin_type_m2_bool): Likewise.
1168 (struct builtin_f_type, builtin_f_type): Move to f-lang.h.
1169 (struct builtin_m2_type, builtin_m2_type): Move to m2-lang.h.
1171 * f-lang.h (struct builtin_f_type, builtin_f_type): Move here.
1172 * m2-lang.h (struct builtin_m2_type, builtin_m2_type): Move here.
1174 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1176 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use builtin types of
1177 target_gdbarch instead of builtin_type_void_data_ptr.
1178 (LM_DYNAMIC_FROM_LINK_MAP, LM_NEXT, LM_NAME,
1179 IGNORE_FIRST_LINK_MAP_ENTRY, scan_dyntag, elf_locate_base,
1180 solib_svr4_r_map, solib_svr4_r_brk, solib_svr4_r_ldsomap,
1181 open_symbol_file_object): Likewise.
1182 * nto-tdep.c (LM_ADDR): Likewise.
1184 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1186 * bsd-uthread.c (bsd_uthread_read_memory_address): New function.
1187 (bsd_uthread_fetch_registers, bsd_uthread_store_registers,
1188 bsd_uthread_wait, bsd_uthread_find_new_threads): Use it.
1190 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1192 * procfs.c (procfs_address_to_host_pointer): Use target_gdbarch
1193 and its associated types to perform pointer conversion.
1194 (procfs_can_use_hw_breakpoint): Likewise.
1195 (procfs_auxv_parse): Remove unused variable.
1197 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1199 * auxv.c (default_auxv_parse): Use gdbarch_ptr_bit (target_gdbarch)
1200 instead of builtin_type_void_data_ptr.
1201 * target.c (default_region_ok_for_hw_watchpoint): Likewise.
1203 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1205 * expprint.c (print_subexp_standard): Compare against builtin type
1206 associated with exp->gdbarch instead of builtin_type_char.
1208 * f-valprint.c (f_val_print): Use extract_unsigned_integer to
1209 extract values of arbitrary logical type. Handle arbitrary
1212 * printcmd.c (float_type_from_length): New function.
1213 (print_scalar_formatted, printf_command): Use it.
1215 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1217 * valops.c: Include "objfiles.h" and "symtab.h".
1218 (find_function_in_inferior): New argument OBJF_P. Use it to return
1219 objfile where function is defined. Use per-objfile arch types
1220 instead of builtin_type_ to define default return type.
1222 * linux-fork.c (checkpoint_command): Update calls. Use per-objfile
1223 architecture to define inferior call argument types.
1224 * gcore.c (derive_heap_segment): Likewise.
1225 * objc-lang.c (value_nsstring): Likewise.
1226 * scm-lang.c (scm_lookup_name): Likewise.
1227 * scm-valprint.c (scm_inferior_print): Likewise.
1228 * valops.c (value_allocate_space_in_inferior): Likewise.
1230 * eval.c (evaluate_subexp_standard): Update calls.
1231 * objc-lang.c (lookup_objc_class, print_object_command): Likewise.
1233 * linux-fork.c: Include "objfiles.h".
1234 * scm-lang.c: Include "objfiles.h".
1235 * scm-valprint.c: Include "objfiles.h".
1237 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1239 * gdbarch.sh (name_of_malloc): Remove.
1240 * gdbarch.c, gdbarch.h: Re-generate.
1241 * valops.c (value_allocate_space_in_inferior): Do not call
1242 gdbarch_name_of_malloc.
1244 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1246 * valarith.c (value_x_unop): Use builtin_type_int8 as type for
1247 UNOP_POSTINCREMENT/UNOP_POSTDECREMENT constant 0 argument.
1248 (value_bit_index): Use extract_unsigned_integer
1249 instead of unpack_long to read single byte.
1251 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1253 * infcall.c (value_arg_coerce): Add GDBARCH parameter. Use its
1254 associates types instead of builtin_type_ macros.
1255 (find_function_addr): Leave output VALUE_TYPE NULL if unknown.
1256 (call_function_by_hand): Use per-architecture "int" type as
1257 fall-back if find_function_addr returns NULL VALUE_TYPE.
1258 Update call to value_arg_coerce.
1260 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1262 * cp-abi.h (cplus_method_ptr_size): Add TO_TYPE parameter.
1263 (cplus_make_method_ptr): Add TYPE parameter.
1264 * cp-abi.c (cplus_method_ptr_size): Add TO_TYPE parameter. Pass it
1265 on to current_cp_abi.method_ptr_size callback.
1266 (cplus_make_method_ptr): Add TYPE parameter. Pass it on to
1267 current_cp_abi.make_method_ptr callback.
1269 * gdbtypes.c (lookup_methodptr_type): Pass target type
1270 argument to cplus_method_ptr_size.
1271 * valops.c (value_cast): Pass type argument to cplus_make_method_ptr.
1272 (value_struct_elt_for_reference): Likewise.
1274 * gnu-v3-abi.c (get_class_arch): New function.
1275 (vtable_address_point_offset): Add GDBARCH parameter. Use it
1276 instead of current_gdbarch. Update all callers.
1277 (gnuv3_get_vtable): Likewise.
1278 (gnuv3_get_virtual_fn): Likewise.
1279 (gnuv3_decode_method_ptr): Likewise.
1280 (gnuv3_rtti_type): Call get_class_arch to determine architecture.
1281 Use it instead of current_gdbarch.
1282 (gnuv3_virtual_fn_field): Likewise.
1283 (gnuv3_baseclass_offset): Likewise.
1284 (gnuv3_print_method_ptr): Likewise.
1285 (gnuv3_method_ptr_to_value): Likewise.
1286 (gnuv3_method_ptr_size): Add TYPE parameter. Use it to determine
1287 class architecture. Use architecture types instead of builtin types.
1288 (gnuv3_make_method_ptr): Likewise.
1290 * cp-valprint.c (cp_print_class_member): Expect pointer type
1291 instead of class type. Use its length when extracting value.
1292 * c-valprint.c (c_val_print): Update call to cp_print_class_member.
1294 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1296 * stack.c (return_command): Use frame architecture to determine
1297 default integer return type.
1299 * f-valprint.c (f77_get_dynamic_lowerbound): Use frame architecture
1300 to determine pointer types.
1301 (f77_get_dynamic_upperbound): Likewise.
1303 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Remove.
1304 (resolve_msgsend): Use architecture of current frame to determine
1305 pointer types. Inline OBJC_FETCH_POINTER_ARGUMENT.
1306 (resolve_msgsend_stret, resolve_msgsend_super,
1307 resolve_msgsend_super_stret): Likewise.
1309 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1311 * alpha-tdep.c (alpha_register_type): Use builtin_type (gdbarch)
1312 instead of builtin_type_ macros.
1313 * amd64-tdep.c (amd64_register_type): Likewise.
1314 (amd64_get_longjmp_target): Likewise.
1315 * arm-tdep.c (arm_register_type): Likewise.
1316 * avr-tdep.c (avr_register_type): Likewise.
1317 * cris-tdep.c (cris_register_type, crisv32_register_type): Likewise.
1318 * frv-tdep.c (frv_register_type): Likewise.
1319 * h8300-tdep.c (h8300_register_type): Likewise.
1320 * hppa-tdep.c (hppa32_convert_from_func_ptr_addr,
1321 hppa_skip_trampoline_code): Likewise.
1322 * i386-tdep.c (i386_register_type): Likewise.
1323 (i386_unwind_pc, i386_sse_type): Likewise.
1324 * ia64-tdep.c (ia64_register_type): Likewise.
1325 * m32r-tdep.c (m32r_register_type): Likewise.
1326 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
1327 * m88k-tdep.c (m88k_register_type): Likewise.
1328 * mep-tdep.c (mep_register_type): Likewise.
1329 * mips-tdep.c (mips_pseudo_register_type): Likewise.
1330 * mn10300-tdep.c (mn10300_register_type): Likewise.
1331 * mt-tdep.c (mt_copro_register_type): Likewise.
1332 * rs6000-tdep.c (rs6000_builtin_type_vec64): Likewise.
1333 (rs6000_convert_register_p, rs6000_register_to_value,
1334 rs6000_value_to_register): Likewise.
1335 * s390-tdep.c (s390_register_type): Likewise.
1336 * sh64-tdep.c (sh64_register_type): Likewise.
1337 (sh64_build_float_register_type, sh64_do_fp_register): Likewise.
1338 * sh-tdep.c (sh_sh2a_register_type, sh_sh3e_register_type,
1339 sh_sh4_build_float_register_type, sh_sh4_register_type,
1340 sh_default_register_type): Likewise.
1341 * sparc64-tdep.c (sparc64_register_type): Likewise.
1342 * sparc-tdep.c (sparc32_register_type): Likewise.
1343 * spu-tdep.c (spu_builtin_type_vec128, spu_register_type): Likewise.
1344 * v850-tdep.c (v850_register_type): Likewise.
1345 * vax-tdep.c (vax_register_type): Likewise.
1346 * xtensa-tdep.c (xtensa_register_type, xtensa_unwind_pc,
1347 xtensa_push_dummy_call): Likewise.
1349 * std-regs.c (value_of_builtin_frame_fp_reg,
1350 value_of_builtin_frame_pc_reg): Likewise.
1351 * target-descriptions.c (tdesc_register_type): Likewise.
1353 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1355 * ada-lang.c (ada_coerce_to_simple_array_type): Use builtin_type_int32
1356 instead of builtin_type_int as default unspecified integral type.
1357 (ada_index_type, ada_array_bound_from_type, ada_variant_discrim_type,
1358 assign_component, to_fixed_range_type): Likewise.
1359 * ada-typeprint.c (print_range, print_range_bound,
1360 print_range_type_named): Likewise.
1361 * ada-valprint.c (print_optional_low_bound, ada_val_print_1): Likewise.
1362 * eval.c (evaluate_subexp_standard): Likewise.
1363 * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
1364 * gnu-v3-abi.c (gnuv3_get_virtual_fn, gnuv3_baseclass_offset,
1365 build_gdb_vtable_type): Likewise.
1366 * jv-lang.c (java_array_type): Likewise.
1367 * m2-typeprint.c (m2_print_bounds, m2_is_long_set_of_type): Likewise.
1368 * m2-valprint.c (m2_print_long_set): Likewise.
1369 * parse.c (follow_types): Likewise.
1370 * p-typeprint.c (pascal_type_print_base): Likewise.
1371 * valops.c (value_one, value_array, value_string,
1372 value_bitstring): Likewise.
1373 * value.c (allocate_repeat_value, value_from_string): Likewise.
1374 * varobj.c (c_describe_child): Likewise.
1375 * mt-tdep.c (mt_register_type): Likewise.
1376 * sh-tdep.c (sh_sh4_build_float_register_type): Likewise.
1377 * sh64-tdep.c (sh64_build_float_register_type): Likewise.
1379 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1381 * defs.h (struct gdbarch): Add forward declaration.
1382 (set_next_address): Add GDBARCH argument.
1383 * printcmd.c (set_next_address): Use it to find pointer type.
1384 * breakpoint.c (breakpoint_1): Update call.
1385 * source.c (line_info): Likewise.
1386 * findcmd.c (find_command): Use current_gdbarch to find pointer type.
1388 * breakpoint.c (set_breakpoint_count): Use platform-neutral
1389 types for internal variable values.
1390 * infrun.c (handle_inferior_event): Likewise.
1391 * source.c (forward_search_command, reverse_search_command): Likewise.
1392 * tracepoint.c (set_tracepoint_count, set_traceframe_num,
1393 set_tracepoint_num, set_traceframe_context): Likewise.
1395 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1397 * gdbtypes.h (struct builtin_type): Remove builtin_true_char
1398 and builtin_true_unsigned_char.
1399 (builtin_type_true_char): Remove macro, add extern declaration.
1400 (builtin_type_true_unsigned_char): Add extern declaration.
1401 * gdbtypes.c (builtin_type_true_char): New global variable.
1402 (builtin_type_true_unsigned_char): Likewise.
1403 (_initialize_gdbtypes): Initialize them.
1404 (gdbtypes_post_init): Do not initialize builtin_true_char
1405 and builtin_true_unsigned_char members of struct builtin_type.
1407 * printcmd.c (print_scalar_formatted): Do not use builtin_type;
1408 use builtin_type_true_unsigned_char instead.
1410 * ada-valprint.c (ada_val_print_1): Use builtin_type_true_char
1411 instead of builtin_type_char for internal string.
1413 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1415 * gdbtypes.h (builtin_type_void): Remove macro, add declaration.
1416 (builtin_type_f_void): Remove macro.
1417 * gdbtypes.c (builtin_type_void): New global variable.
1418 (_initialize_gdbtypes): Initialize it.
1420 * gnu-v3-abi.c (build_gdb_vtable_type): Do not call
1421 lookup_pointer_type or lookup_function_type on builtin_type_void.
1422 * printcmd.c (set_next_address): Likewise.
1423 * objc-lang.c (value_nsstring): Likewise.
1424 * mt-tdep.c (mt_copro_register_type): Likewise.
1425 * xtensa-tdep.c (xtensa_register_type): Likewise.
1427 * symfile.c (syms_from_objfile): Remove special handling
1428 of builtin_type_void and builtin_type_char.
1430 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1432 * eval.c (evaluate_subexp_standard): Use exp->gdbarch types instead
1433 of builtin_type_ macros when handling OP_OBJC_ operations.
1434 * objc-lang.c (print_object_command): Likewise.
1436 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1438 * ada-valprint.c: Include "objfiles.h".
1439 (ada_val_print_1): Use the gdbarch associated with the objfile whether
1440 a System.Address type is defined to retrieve the proper pointer type
1443 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1445 * ada-lang.c (value_pos_atr): Add TYPE argument. Use it as
1446 result type instead of builtin_type_int.
1447 (value_subscript_packed): Use pos_atr instead of value_pos_atr.
1448 (ada_value_subscript): Update call to value_pos_atr.
1449 (ada_value_ptr_subscript): Likewise.
1450 (ada_evaluate_subexp): Likewise.
1452 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1454 * ada-lang.c (cast_to_fixed): Do not cast to builtin_type_double.
1455 (cast_from_fixed_to_double): Rename to ...
1456 (cast_from_fixed): ... this. Add TYPE parameter. Use it instead
1457 of builtin_type_double.
1458 (ada_value_cast): Use cast_from_fixed instead of casting result
1459 of cast_from_fixed_to_double.
1460 (ada_evaluate_subexp): Update calls to cast_from_fixed_to_double.
1462 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1464 * valops.c (value_ind): No longer allow dereferencing an
1466 * eval.c (evaluate_subexp_standard): Handle deferencing an
1468 * ada-lang.c (ada_evaluate_subexp): Likewise.
1470 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1472 * ada-valprint.c (ada_val_print_1): When implicitly dereferencing
1473 a reference type, pass the reference type directly to unpack_pointer.
1474 * c-valprint.c (c_val_print): Likewise.
1475 * f-valprint.c (f_val_print): Likewise.
1476 * m2-valprint.c (print_variable_at_address, m2_val_print): Likewise.
1477 * p-valprint.c (pascal_val_print): Likewise.
1479 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1481 * eval.c (evaluate_subexp_standard): Use builtin_type_int8
1482 to construct the EVAL_SKIP dummy return value.
1483 * ada-lang.c (ada_evaluate_subexp): Likewise.
1484 * jv-lang.c (evaluate_subexp_java): Likewise.
1485 * m2-lang.c (evaluate_subexp_modula2): Likewise.
1486 * scm-lang.c (evaluate_exp): Likewise.
1488 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1490 * value.h (coerce_enum, coerce_number): Remove prototypes.
1491 * value.c (coerce_enum, coerce_number): Remove.
1492 * valarith.c (value_x_binop): Do not call coerce_enum.
1493 (value_x_unop): Likewise.
1494 (value_logical_not): Call coerce_array instead of coerce_number.
1496 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1498 * ax-gdb.c: Include "language.h".
1499 (gen_frame_args_address): Add GDBARCH parameter; use it
1500 instead of current_gdbarch.
1501 (gen_frame_locals_address): Likewise.
1502 (gen_var_ref): Add GDBARCH parameter. Update calls to
1503 gen_frame_args_address and gen_frame_locals_address. Use
1504 pointer type from gdbarch.
1505 (gen_usual_unary): Add EXP parameter. Use integer type
1507 (gen_usual_arithmetic): Likewise.
1508 (gen_integral_promotions): Likewise.
1509 (gen_add, gen_sub): Remove.
1510 (gen_ptradd, gen_ptrsub, gen_ptrdiff): New functions.
1511 (gen_logical_not): Use passed-in boolean result type
1512 instead of builtin_type_int.
1513 (gen_complement): Do not call gen_usual_unary or
1514 gen_integral_promotions.
1515 (gen_struct_ref): Call require_rvalue instead of gen_usual_unary.
1516 (gen_repeat): Add EXP parameter. Update call to gen_expr.
1517 Use builtin_type_int32 as internal range type.
1518 (gen_sizeof): Add EXP and SIZE_TYPE parameters. Use SIZE_TYPE
1519 as result type. Update call to gen_expr.
1520 (gen_expr): Add EXP parameter. Update calls to gen_expr,
1521 gen_repeat, gen_var_ref, gen_usual_unary, gen_usual_arithmetic,
1522 and gen_integral_promotions. Call gen_ptradd, gen_ptrsub,
1523 gen_ptrdiff, or gen_binop instead of gen_add or gen_sub.
1524 Use exp->gdbarch instead of current_gdbarch.
1525 Call language_bool_type to determine result type of UNOP_LOGICAL_NOT.
1527 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1529 * eval.c (evaluate_subexp_standard): Add calls to binop_promote
1530 and unop_promote before calling value_binop et. al.
1531 * ada-lang.c (ada_evaluate_subexp): Add calls to binop_promote
1532 and unop_promote before calling value_binop et. al.
1534 * valarith.c (value_binop): Do not call binop_promote or unop_promote.
1535 (value_pos): Do not call unop_promote.
1536 (value_neg, value_complement): Likewise.
1538 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1540 * value.h (unop_promote, binop_promote): Add prototypes.
1541 * eval.c (unop_promote, binop_promote): New functions.
1542 * valarith.c (unop_result_type, binop_result_type): Remove.
1543 (value_binop): Call binop_promote or unop_promote.
1544 Inline remaining parts of binop_result_type. Remove special
1545 code to truncate integer values for unsigned operations.
1546 (value_pos): Call unop_promote. Inline remaining parts of
1548 (value_neg, value_complement): Likewise.
1550 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1552 * value.h (value_add, value_sub): Remove.
1553 (value_ptradd, value_ptrsub, value_ptrdiff): Add prototypes.
1554 * valarith.c (value_add, value_sub): Remove.
1555 (value_ptradd, value_ptrsub, value_ptrdiff): New functions.
1556 (find_size_for_pointer_math): Add assertion. Update comment.
1557 (value_binop): Update comment.
1559 * eval.c (ptrmath_type_p): New function.
1560 (evaluate_subexp_standard): Replace value_add and value_sub
1561 by value_ptradd, value_ptrsub, value_ptrdiff or value_binop.
1562 Use builtin_type_uint8 instead of builtin_type_char to hold
1563 the increment for BINOP_{PRE,POST}{IN,DE}CREMENT operations.
1564 * valarith.c (value_subscript): Replace value_add by
1565 value_ptradd. Replace value_sub by value_binop.
1566 * ada-lang.c (ada_value_ptr_subscript): Likewise.
1567 (ada_tag_name_2): Replace value_add by value_ptradd.
1568 (ada_evaluate_subexp): Replace value_add and value_sub by
1570 * m2-lang.c (evaluate_subexp_modula2): Replace value_add
1572 * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
1573 * gnu-v3-abi.c (gnuv3_method_ptr_to_value): Likewise.
1575 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1577 * eval.c (evaluate_subexp_for_sizeof): Use builtin_int type of
1578 the expression architecture instead of builtin_type_int as the
1581 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1583 * expression.h (enum exp_opcode): Document OP_COMPLEX to take
1584 a type parameter as expression element.
1585 * eval.c (evaluate_subexp_standard) [OP_COMPLEX]: Retrieve result
1586 type as expression element.
1587 * f-exp.y: Pass in type when buildin OP_COMPLEX expression.
1588 * parse.c (operator_length_standard): Update length of OP_COMPLEX.
1590 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1592 * language.h (struct language_arch_info): New members
1593 bool_type_default and bool_type_symbol.
1594 (lang_bool_type): Remove prototype.
1595 (LA_BOOL_TYPE): Remove macro.
1596 (language_bool_type): Add prototype.
1597 * language.c (lang_bool_type): Remove.
1598 (language_bool_type): New function.
1600 * value.h (value_in): Change return value to int.
1601 * value.c (value_in): Return int instead of struct value *.
1603 * eval.c (evaluate_subexp_standard): Call language_bool_type instead
1604 of using LA_BOOL_TYPE. Update call to value_in.
1605 * ada-lang.c (ada_evaluate_subexp): Call language_bool_type instead
1606 of using LA_BOOL_TYPE or builtin_type_int for boolean values.
1608 * language.c (unknown_language_arch_info): Set bool_type_default member
1609 of struct language_arch_info.
1610 * ada-lang.c (ada_language_arch_info): Set bool_type_symbol and
1611 bool_type_default members of struct language_arch_info.
1612 * c-lang.c (c_language_arch_info): Set bool_type_default member
1613 of struct language_arch_info.
1614 (cplus_language_arch_info): Set bool_type_symbol and bool_type_default
1615 members of struct language_arch_info.
1616 * f-lang.c (f_language_arch_info): Set bool_type_symbol and
1617 bool_type_default members of struct language_arch_info.
1618 * jv-lang.c (java_language_arch_info): Set bool_type_symbol and
1619 bool_type_default members of struct language_arch_info.
1620 * m2-lang.c (m2_language_arch_info): Set bool_type_symbol and
1621 bool_type_default members of struct language_arch_info.
1622 * p-lang.c (p_language_arch_info): Set bool_type_symbol and
1623 bool_type_default members of struct language_arch_info.
1625 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1627 * jv-lang.c (enum java_primitive_types): New type.
1628 (java_language_arch_info): New function.
1629 (java_language): Use it instead of c_language_arch_info.
1631 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1633 * value.h (value_bitstring_subscript): New prototype.
1634 * valarith.h (value_bitstring_subscript): New function.
1635 (value_subscript): No longer handle TYPE_CODE_BITSTRING.
1636 * eval.c (evaluate_subexp_standard): Call value_bitstring_subscript
1637 instead of value_subscript to handle TYPE_CODE_BITSTRING.
1639 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1641 * expression.h (struct expression): New member GDBARCH.
1642 * parse.c (parse_exp_in_context): Initialize it.
1643 * parser-def.h (parse_gdbarch, parse_language): New macros.
1645 * ada-exp.y (parse_type): New macro.
1646 Replace builtin_type_ macros by using parse_type.
1647 Replace current_language by parse_language.
1648 * ada-lex.l (processInt): Replace current_gdbarch by parse_gdbarch.
1649 Replace builtin_type_ macros.
1651 * c-exp.y (parse_type): New macro.
1652 Replace builtin_type_ macros by using parse_type.
1653 (parse_number): Replace current_gdbarch by parse_gdbarch.
1654 (yylex): Replace current_language by parse_language.
1656 * f-exp.y (parse_type, parse_f_type): New macros.
1657 Replace builtin_type_ macros by using parse_{f_,}type.
1658 (parse_number): Replace current_gdbarch by parse_gdbarch.
1659 (yylex): Replace current_language by parse_language.
1661 * jv-exp.y (parse_type): New macro.
1662 (parse_number): Replace builtin_type_ macros by using parse_type.
1664 * m2-exp.y (parse_type, parse_m2_type): New macros.
1665 Replace builtin_type_ macros by using parse_{m2_,}type.
1667 * objc-exp.y (parse_type): New macro.
1668 Replace builtin_type_ macros by using parse_type.
1669 (parse_number): Replace current_gdbarch by parse_gdbarch.
1670 (yylex): Replace current_language by parse_language.
1672 * p-exp.y (parse_type): New macro.
1673 Replace builtin_type_ macros by using parse_type.
1674 (parse_number): Replace current_gdbarch by parse_gdbarch.
1675 (yylex): Replace current_language by parse_language.
1677 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1679 * parser-defs.h (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE
1680 and DATA_SYMBOL_TYPE arguments.
1681 * parse.c (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE and
1682 DATA_SYMBOL_TYPE arguments. Replace use of builtin_type_CORE_ADDR.
1683 (write_dollar_variable): Update call.
1685 * ada-exp.y (write_var_or_type): Update call.
1686 * c-exp.y: Likewise.
1687 * f-exp.y: Likewise.
1688 * jv-exp.y: Likewise.
1689 * m2-exp.y: Likewise.
1690 * objc-exp.y: Likewise.
1691 * p-exp.y: Likewise.
1693 2008-09-10 Joel Brobecker <brobecker@adacore.com>
1695 * ada-lang.c (ada_parent_type): Add handling of the case where
1696 the _parent field is a pointer and/or has a parallel XVS type.
1697 (ada_evaluate_subexp) [OP_VAR_VALUE]: When doing an
1698 EVAL_AVOID_SIDE_EFFECTS evaluation of a tagged type, return
1699 the type of the tag instead of doing forcing an EVAL_NORMAL
1700 expression evaluation.
1702 2008-09-10 Paul N. Hilfinger <hilfinger@adacore.com>
1703 Joel Brobecker <brobecker@adacore.com>
1705 * ada-lang.c (is_digits_suffix): New function.
1706 (is_dot_digits_suffix): Remove.
1707 (ada_lookup_symbol_list): Remove digits suffix from minimal symbols
1708 before looking up in symbol table, and do not use wild matches on them.
1709 (wild_match): Reimplement for speed and to allow matching of operator
1711 (is_valid_name_for_wild_match): Return zero for names that do not
1712 follow the GNAT encoding.
1714 (is_name_suffix): Fix typo in comment.
1715 (to_record_with_fixed_variant_part): Ditto.
1717 2008-09-10 Pedro Alves <pedro@codesourcery.com>
1719 * Makefile.in (gnu-nat.o): New rule.
1721 2008-09-10 Joel Brobecker <brobecker@adacore.com>
1723 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Use
1724 archecture-neutral builtin_type_int32 instead of builtin_type_int.
1726 2008-09-10 Joel Brobecker <brobecker@adacore.com>
1728 * ada-lang.c (ada_evaluate_subexp) [BINOP_ADD, BINOP_SUB]:
1729 Add special handling for pointer types.
1731 2008-09-10 Pedro Alves <pedro@codesourcery.com>
1733 * inf-ttrace.c (inf_ttrace_follow_fork): Declare locals at the
1735 (inf_ttrace_resume, inf_ttrace_wait): Typos.
1737 2008-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1739 * ada-lang.c (ada_array_length): Use builtin_type_int32 instead
1740 of builtin_type_int.
1741 (ada_evaluate_subexp) [UNOP_IN_RANGE]: Use operand range type
1742 instead of builtin_type_int.
1744 2008-09-09 Pedro Alves <pedro@codesourcery.com>
1746 * infrun.c (normal_stop): Run hook-stop last.
1748 2008-09-09 Pedro Alves <pedro@codesourcery.com>
1750 * gnu-nat.c (gnu_pid_to_exec_file): Delete.
1751 (init_gnu_ops): Don't register it.
1753 2008-09-09 Pedro Alves <pedro@codesourcery.com>
1755 * gnu-nat.c (gnu_attach): Push target before fetching the list of
1758 2008-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1760 * valops.c (value_cast_structs): Return NULL for failure.
1761 (value_cast): Handle NULL from value_cast_structs.
1762 (value_fetch_lazy): Call check_typedef. Remove unused variable.
1764 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1766 * inferior.h (context_switch_to): Delete.
1767 * infrun.c (context_switch): Don't save and load infrun state.
1768 (context_switch_to): Delete.
1770 * infcmd.c (proceed_thread_callback): Replace context_switch_to
1771 calls by switch_to_thread calls.
1773 * gdbthread.h (save_infrun_state, load_infrun_state): Delete.
1774 * thread.c (main_thread_state, main_thread_executing): Delete.
1775 (inferior_thread): Delete references to them.
1776 (add_thread_silent): Fix case where we're adding a thread with the
1777 same ptid as an exited thread. Remove references to
1779 (load_infrun_state, save_infrun_state): Delete.
1780 (thread_alive, is_thread_state, any_running, is_executing)
1781 (set_executing): Remove the special handling for targets that
1782 don't register any thread.
1783 (restore_current_thread, thread_apply_all_command)
1784 (do_captured_thread_select): Unconditionally call
1787 * mi/mi-main.c (mi_cmd_execute): Check for exited threads.
1788 Call switch_to_thread instead of context_switch_to.
1790 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1792 Remove global continuations in favour of a per-thread
1795 * gdbthread.h (struct thread_info): Add comments around
1796 continuations and intermediate_continuations.
1797 (save_infrun_state, load_infrun_state): Delete continuations and
1798 intermediate_continuations arguments.
1799 * infrun.c (context_switch): Don't context-switch the continuations.
1800 * thread.c (clear_thread_inferior_resources): Discard all
1801 continuations of the thread we're clearing.
1802 (save_infrun_state, load_infrun_state): Delete continuations and
1803 intermediate_continuations arguments, and the code referencing
1805 * utils.c: Include "gdbthread.h".
1806 (cmd_continuation, intermediate_continuation): Delete.
1807 (add_continuation): Add thread_info* argument. Install the
1809 (restore_thread_cleanup): New.
1810 (do_all_continuations_ptid, do_all_continuations_thread_callback):
1812 (do_all_continuations): Reimplement.
1813 (discard_all_continuations_thread_callback,
1814 discard_all_continuations_thread): New.
1815 (discard_all_continuations): Reimplement.
1816 (add_intermediate_continuation): Add thread_info* argument.
1817 Install the continuation on it.
1818 (do_all_intermediate_continuations_thread_callback)
1819 (do_all_intermediate_continuations_thread): New.
1820 (do_all_intermediate_continuations): Reimplement.
1821 (discard_all_intermediate_continuations_thread_callback): New.
1822 (discard_all_intermediate_continuations_thread): New.
1823 (discard_all_intermediate_continuations): Reimplement.
1825 * breakpoint.c (until_break_command): Install the continuation on
1828 * defs.h (cmd_continuation, intermediate_continuation): Delete.
1829 (struct thread_info): Forward declare.
1830 (add_continuation, add_intermediate_continuation): Add
1831 thread_info* argument.
1832 (do_all_continuations_thread, discard_all_continuations_thread)
1833 (do_all_intermediate_continuations_thread)
1834 (discard_all_intermediate_continuations_thread): Declare.
1835 * inf-loop.c (inferior_event_handler): In non-stop only run
1836 continuations on the thread that stopped. In all-stop, run
1837 continuations on all threads.
1838 * infcmd.c (step_once, finish_command): Adjust.
1840 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1842 Remove the global stop_step in favour of a per-thread
1845 * inferior.h (stop_step): Delete.
1847 * gdbthread.h (struct thread_info): Add comments to stop_step.
1848 (save_infrun_state, load_infrun_state): Remove stop_step argument.
1849 * thread.c (load_infrun_state, save_infrun_state): Remove
1850 stop_step argument, and references to it.
1852 * infrun.c (clear_proceed_status): Clear stop_step.
1853 (fetch_inferior_event): Adjust.
1854 (context_switch): Don't context-switch stop_step.
1855 (handle_inferior_event): Adjust.
1856 (normal_stop): Adjust.
1857 (save_inferior_status, restore_inferior_status): Adjust.
1859 * infcmd.c (stop_step): Delete.
1860 (step_1, step_1_continuation, step_once, until_next_command):
1863 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1865 Remove the global step_multi in favour of a per-thread
1868 * inferior.h (step_multi): Delete.
1869 * gdbthread.h (struct thread_info): Add comments around
1871 (save_infrun_state, load_infrun_state): Remove step_multi
1873 * thread.c (load_infrun_state, save_infrun_state): Remove
1874 step_multi argument, and references to it.
1875 * infcmd.c (step_multi): Delete.
1877 (step_1_continuation, until_next_command): Adjust.
1878 * infrun.c (fetch_inferior_event): Adjust.
1879 (context_switch): Don't context-switch step_multi.
1880 (print_stop_reason, normal_stop): Adjust.
1882 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1884 Remove the global stop_signal in favour of a per-thread
1887 * inferior.h (stop_signal): Delete.
1888 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
1889 stop_signal argument.
1890 * thread.c (load_infrun_state, save_infrun_state): Remove
1891 stop_signal argument. Don't reference it.
1893 * infcmd.c (stop_signal): Delete.
1894 (program_info): Adjust.
1895 * infrun.c (resume): Clear stop_signal.
1896 (proceed): Adjust. Pass the last stop_signal to the thread we're
1898 (context_switch): Don't context-switch stop_signal.
1899 (handle_inferior_event, keep_going): Adjust.
1900 (save_inferior_status, restore_inferior_status): Adjust.
1902 * fbsd-nat.c: Include "gdbthread.h".
1903 (find_signalled_thread, find_stop_signal): New.
1904 (fbsd_make_corefile_notes): Use it.
1905 * fork-child.c (startup_inferior): Adjust.
1907 * linux-nat.c (get_pending_status): Adjust.
1908 (linux_nat_do_thread_registers): Adjust.
1909 (find_signalled_thread, find_stop_signal): New.
1910 (linux_nat_do_thread_registers): Add stop_signal parameter.
1911 (struct linux_nat_corefile_thread_data): Add stop_signal member.
1912 (linux_nat_corefile_thread_callback): Pass stop_signal.
1913 (linux_nat_do_registers): Delete.
1914 (linux_nat_make_corefile_notes): Use find_stop_signal. Assume
1915 there's always a thread.
1917 * procfs.c (find_signalled_thread, find_stop_signal): New.
1918 (find_stop_signal): New.
1919 (procfs_do_thread_registers): Add stop_signal parameter.
1920 (struct procfs_corefile_thread_data): Add stop_signal member.
1921 (procfs_corefile_thread_callback): Pass args->stop_signal.
1922 (procfs_make_note_section): Find the last stop_signal.
1924 * solib-irix.c: Include gdbthread.h.
1925 (irix_solib_create_inferior_hook): Adjust.
1926 * solib-osf.c: Include gdbthread.h.
1927 (osf_solib_create_inferior_hook): Adjust.
1928 * solib-sunos.c: Include gdbthread.h.
1929 (sunos_solib_create_inferior_hook): Adjust.
1930 * solib-svr4.c: Include gdbthread.h.
1931 (svr4_solib_create_inferior_hook): Adjust.
1933 * win32-nat.c (do_initial_win32_stuff): Adjust.
1935 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1937 * gdbthread.h (struct thread_info): Add comments around
1939 (save_infrun_state, load_infrun_state): Remove proceed_to_finish
1941 * thread.c (load_infrun_state, save_infrun_state): Delete
1942 proceed_to_finish argument and references to it.
1944 * infcall.c (call_function_by_hand): Adjust.
1945 * infcmd.c (finish_command): Adjust.
1946 * infrun.c (proceed_to_finish): Delete.
1947 (clear_proceed_status): Adjust.
1948 (context_switch): Don't context-switch proceed_to_finish.
1949 (normal_stop, save_inferior_status, restore_inferior_status):
1952 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1954 * inferior.h (stop_bpstat): Delete.
1956 * breakpoint.h (bpstat_do_actions): Remove bpstat* argument.
1958 * breakpoint.c (bpstat_do_actions): Rename to ...
1959 (bpstat_do_actions_1): ... this. Make static. Change return type
1960 to int. Return true if a breakpoint proceeded.
1961 (bpstat_do_actions): New, as wrapper around bpstat_do_actions_1.
1962 (delete_breakpoint): Don't reference the global stop_bpstat; it's
1965 * gdbthread.h (struct thread_info): Add stop_bpstat.
1966 (save_infrun_state, load_infrun_state): Remove stop_bpstat
1968 * thread.c (load_infrun_state, save_infrun_state): Remove
1969 stop_bpstat argument, and the code referencing it.
1971 * infcall.c: Include "gdbthread.h".
1972 (call_function_by_hand): Adjust.
1973 * exceptions.c: Include "gdbthread.h".
1974 (throw_exception): Adjust.
1975 * infcmd.c (stop_bpstat): Delete.
1976 (continue_command): In all-stop, set the ignore count on the
1977 thread that reported the stop. In non-stop, set it on the current
1979 (finish_command_continuation): Adjust.
1980 (program_info): Adjust.
1981 * infrun.c (clear_proceed_status): Adjust.
1982 (context_switch): Don't context-switch stop_bpstat.
1983 (handle_inferior_event): Adjust.
1984 (normal_stop): Adjust.
1985 (save_inferior_status, restore_inferior_status): Adjust.
1987 * inf-loop.c (inferior_event_handler): Remove parameter to
1988 bpstat_do_actions call.
1989 * top.c (command_loop): Remove parameter to bpstat_do_actions
1990 call. Call it unconditionally.
1991 * event-top.c (command_handler): Ditto.
1992 * python/python.c (execute_gdb_command): Ditto.
1994 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1996 * inferior.h (step_over_calls): Delete.
1998 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
1999 step_over_calls argument.
2000 * thread.c (save_infrun_state, load_infrun_state): Remove
2001 step_over_calls argument. Adjust.
2003 * infcmd.c (step_over_calls): Delete.
2005 * infrun.c (clear_proceed_status): Adjust.
2006 (context_switch): Don't context-switch step_over_calls.
2007 (handle_inferior_event, save_inferior_status)
2008 (restore_inferior_status): Adjust.
2010 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2012 Remove context switching in favour of accessing thread_info fields
2015 * infrun.c (stepping_over_breakpoint, step_resume_breakpoint):
2017 (struct thread_stepping_state): Delete.
2018 (gtss, tss): Delete.
2019 (follow_inferior_reset_breakpoints, follow_exec)
2020 (resume, clear_proceed_status): Adjust.
2022 (proceed, start_remote, init_wait_for_inferior): Adjust.
2023 (struct execution_control_state): Add event_thread member.
2024 (delete_step_resume_breakpoint_callback)
2025 (delete_step_thread_step_resume_breakpoint)
2026 (delete_step_thread_step_resume_breakpoint_cleanup)
2027 (delete_step_thread_step_resume_breakpoint): New.
2028 (wait_for_inferior, init_execution_control_state): Use
2029 delete_step_thread_step_resume_breakpoint_cleanup.
2030 (wait_for_inferior): Set the event_thread.
2031 (fetch_inferior_event): Ditto. Delete the step-resume breakpoint
2032 with delete_step_thread_step_resume_breakpoint.
2033 (init_thread_stepping_state): Change parameter type to
2034 thread_info. Adjust.
2035 (context_switch): Don't context switch prev_pc,
2036 stepping_over_breakpoint, step_resume_breakpoint,
2037 step_range_start, step_range_end, step_frame_id,
2038 tss->stepping_over_breakpoint,
2039 tss->stepping_through_solib_after_catch,
2040 tss->stepping_through_solib_catchpoints, tss->current_line, or
2041 tss->current_symtab.
2042 (adjust_pc_after_break, handle_inferior_event)
2043 (currently_stepping, step_into_function)
2044 (insert_step_resume_breakpoint_at_sal)
2045 (insert_longjmp_resume_breakpoint, keep_going): Adjust.
2046 (clear_stepping_state): New.
2047 (normal_stop): Adjust.
2048 (save_inferior_status, restore_inferior_status): Adjust.
2050 * gdbthread.h (struct thread_info): Comments describing the
2051 members moved here. Add step_after_step_resume_breakpoint.
2052 (delete_step_resume_breakpoint): Add thread_info argument.
2053 (save_infrun_state, load_infrun_state): Remove prev_pc,
2054 trap_expected, step_resume_breakpoint, step_range_start,
2055 step_range_end, step_frame_id, another_trap,
2056 stepping_through_solib_after_catch,
2057 stepping_through_solib_catchpoints, current_line and
2058 current_symtab function arguments.
2059 (inferior_thread): Declare.
2061 * thread.c (inferior_thread): New.
2062 (delete_step_resume_breakpoint): Add a thread_info parameter and
2064 (load_infrun_state, save_infrun_state): Remove prev_pc,
2065 trap_expected, step_resume_breakpoint, step_range_start,
2066 step_range_end, step_frame_id, stepping_over_breakpoint,
2067 stepping_through_solib_after_catch,
2068 stepping_through_solib_catchpoints, current_line and
2069 current_symtab args. Remove code referencing them.
2071 * infcmd.c (step_range_start, step_range_end, step_frame_id):
2073 (step_1, step_once, until_next_command): Adjust.
2075 * inferior.h (step_range_start, step_range_end, step_frame_id):
2078 * linux-nat.c (linux_child_follow_fork): If following the child,
2079 move the step state to it. Adjust.
2080 * inf-ptrace.c (inf_ptrace_follow_fork): Ditto.
2081 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2083 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2085 * bsd-uthread.c (bsd_uthread_find_new_threads): Claim the main
2088 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2090 * corelow.c (add_to_thread_list): If this is the first time we
2091 hear about thread info, update inferior_ptid.
2092 (core_open): Clear the thread list and set inferior_ptid before
2093 acknowledging a new inferior. Find threads before fetching
2094 register info. Give an upper target layer a chance to find and
2095 claim new threads. Print core generation and stop signal info
2096 after finding new threads.
2097 (get_core_register_section): Look at the lwp member of
2098 inferior_ptid for detecting if we have threads info, instead of
2100 (core_pid_to_str): New.
2101 (init_core_ops): Register core_pid_to_str.
2103 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2105 * spu-linux-nat.c (spu_child_post_startup_inferior)
2106 (spu_child_post_attach): Don't add the main thread here.
2108 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2110 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
2112 * gnu-nat.c (inf_validate_procs): If this is the first time we're
2113 seeing a thread id, extend the main thread's ptid. If we still
2114 have pending execs, don't be verbose about new threads.
2115 (gnu_wait, gnu_resume, gnu_attach, gnu_thread_alive)
2116 (gnu_pid_to_str, cur_thread, sig_thread_cmd): Adjust.
2117 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers):
2120 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2122 * procfs.c (to_attach): Create a procinfo for the current lwp.
2123 Add it to gdb's thread list.
2124 (procfs_fetch_registers, procfs_store_registers): Assume there's
2126 (procfs_wait): Don't add the main thread here.
2127 (procfs_init_inferior): Create a procinfo for the main lwp here.
2128 Change main thread's ptid with thread_change_ptid.
2129 (procfs_notice_thread): Check for exited threads.
2130 (procfs_corefile_thread_callback): Remove check for the main
2132 (procfs_make_note_section): Assume there is always a thread.
2134 * sol-thread.c (sol_thread_attach): Clear sol_thread_active before
2135 attaching. Change the main thread ptid with thread_change_ptid.
2136 (sol_thread_detach): Clear sol_thread_active.
2137 (sol_thread_wait): Check for exited threads.
2138 (sol_thread_create_inferior): Clear sol_thread_active before
2139 creating a new inferior. Change the main thread ptid with
2141 (sol_thread_mourn_inferior): Clear sol_thread_active.
2142 (sol_find_new_threads_callback): Check for exited threads.
2144 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2146 * inf-ttrace.c (inf_ttrace_wait): On TTEVT_LWP_CREATE and
2147 LWP_TERMINATE, resume the caller thread. On TTEVT_LWP_CREATE,
2148 TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE, don't stop the whole
2149 process, and return TARGET_WAITKIND_IGNORE.
2151 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2153 * inf-ttrace.c: Include <signal.h>
2154 (inf_ttrace_delete_dead_threads_callback): New.
2155 (inf_ttrace_resume_lwp): New.
2156 (inf_ttrace_resume_callback, inf_ttrace_resume): Rewrite. Don't
2157 delete dying threads until they are really dead.
2158 (inf_ttrace_wait): After stopping the whole process, delete any
2159 dying thread that is really dead by now.
2160 (inf_ttrace_thread_alive): Return 1.
2161 (inf_ttrace_extra_thread_info): New.
2162 (inf_ttrace_target): Register inf_ttrace_extra_thread_info.
2164 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2166 * inf-ttrace.c (inf_ttrace_follow_fork): Register the main thread
2168 (inf_ttrace_attach): Add the main thread.
2169 (inf_ttrace_resume_callback): Check for exited threads. Adjust
2170 for always a thread.
2171 (inf_ttrace_wait): Decorate the main thread's ptid with lwp info
2172 using thread_change_ptid, and set its private data. Don't add the
2174 (inf_ttrace_pid_to_str): Adjust.
2176 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2178 * bsd-uthread.c (bsd_uthread_wait): Decorate the main thread with
2179 thread_change_ptid. Check for exited threads.
2180 (bsd_uthread_find_new_threads): Check for exited threads.
2182 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2184 * inf-ptrace.c: Include "gdbthread.h".
2185 (inf_ptrace_attach): Add the main thread here.
2186 * linux-nat.c (linux_nat_attach): Don't add the main thread here.
2187 Decorate the main thread id with the lwp id.
2189 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2191 * linux-nat.c (linux_nat_wait): Update inferior_ptid's ptid with
2192 thread_change_ptid. Don't add or mark the main thread as running
2194 * fork-child.c (fork_inferior): Add the main thread here.
2196 2008-09-08 Jerome Guitton <guitton@adacore.com>
2198 * rs6000-tdep.c (rs6000_fetch_instruction)
2199 (rs6000_skip_stack_check): New functions.
2200 (skip_prologue): Skip stack check sequence.
2202 2008-09-08 David Daney <ddaney@avtrex.com>
2204 * dummy-frame.h (frame.h): Include it.
2205 (struct frame_id): Remove declaration.
2207 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2209 * spu-tdep.c (spu_push_dummy_code): New function.
2210 (spu_gdbarch_init): Install it.
2212 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2214 * gdbarch.sh (gdbarch_dump): Use core_addr_to_string_nz
2215 instead of paddr_nz.
2216 * gdbarch.c: Regenerate.
2218 * target.c (target_xfer_partial, debug_print_register): Use
2219 core_addr_to_string_nz instead of paddr_nz.
2221 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2223 * rs6000-tdep.c (rs6000_gdbarch_init): Setup displaced stepping
2224 *before* calling gdbarch_init_osabi.
2225 (rs6000_aix_init_osabi): Disable displaced stepping.
2227 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2229 * target.c (update_current_target): Do not inherit to_open
2231 (pop_target): Call target_close on target_stack instead
2233 (pop_all_targets_above): Likewise.
2235 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2237 * gnu-v3-abi.c (gnuv3_decode_method_ptr): New function.
2238 (gnuv3_print_method_ptr): Use it.
2239 (gnuv3_method_ptr_to_value): Likewise.
2241 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2243 * nto-tdep.h (struct nto_target_ops): Add gdbarch parameter to
2244 register_area callback function.
2245 * i386-nto-tdep.c (i386nto_register_area): Add gdbarch parameter.
2246 Use it instead of current_gdbarch.
2247 * nto-procfs.c (procfs_store_registers): Update call.
2249 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2251 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Use
2252 regcache architecture instead of current_gdbarch.
2254 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2256 * mep-tdep.c (struct mep_prologue): Add gdbarch member.
2257 (check_for_saved): Use it instead of current_gdbarch.
2258 (is_arg_spill): Add gdbarch paramter. Use it instead
2260 (mep_analyze_prologue): Add gdbarch parameter. Pass it
2261 to is_arg_spill and check_for_saved.
2262 (mep_skip_prologue, mep_analyze_frame_prologue): Update calls.
2264 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2266 * hppa-tdep.c (internalize_unwinds): Use objfile architecture
2267 instead of current_gdbarch.
2269 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2271 * m68k-tdep.h (m68kbsd_fpreg_offset): Add gdbarch parameter.
2272 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Add gdbarch paramter.
2273 Use it instead of current_gdbarch.
2274 (m68kbsd_supply_fpregset): Update call.
2275 * m68kbsd-nat.c (m68kbsd_supply_fpregset): Likewise.
2276 (m68kbsd_collect_fpregset): Likewise.
2278 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2280 * cris-tdep.c (cris_version, cris_mode): Remove.
2281 (crisv32_single_step_through_delay): Use tdep->cris_mode.
2282 (cris_breakpoint_from_pc): Likewise.
2283 (cris_frame_unwind_cache): Use tdep->cris_version.
2284 (crisv32_scan_prologue): Likewise.
2285 (cris_spec_reg_applicable): Add gdbarch argument.
2286 Use tdep->cris_version.
2287 (cris_register_size, cris_special_register_name): Update calls.
2288 (cris_special_register_name): Add gdbarch argument.
2289 (cris_register_name, crisv32_register_name): Update calls.
2291 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2293 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Use info->arch
2294 instead of current_gdbarch.
2296 * sh64-tdep.c (gdb_print_insn_sh64): Remove.
2297 (sh64_gdbarch_init): Install print_insn_sh64 directly.
2298 * sh-tdep.c (gdb_print_insn_sh): Remove.
2299 (sh_gdbarch_init): Install print_insn_sh directly.
2301 * mips-tdep.c (gdb_print_insn_mips): Do not check mips_abi
2302 from current_gdbarch.
2303 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): New functions.
2304 (mips_gdbarch_init): Install them instead of gdb_print_insn_mips
2305 depending on mips_abi.
2307 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2309 * gdbarch.sh (addr_bits_remove): Change type to 'm'.
2310 (smash_text_address): Likewise.
2311 * gdbarch.c, gdbarch.h: Regenerate.
2313 * arch-utils.c (core_addr_identity): Add gdbarch parameter.
2314 * arch-utils.h (core_addr_identity): Likewise.
2315 * arm-tdep.c (arm_addr_bits_remove): Likewise.
2316 (arm_smash_text_address): Likewise.
2317 * hppa-tdep.c (hppa_smash_text_address): Likewise.
2318 * m88k-tdep.c (m88k_addr_bits_remove): Likewise.
2319 * s390-tdep.c (s390_addr_bits_remove): Likewise.
2321 * mips-tdep.c (mips_addr_bits_remove): Add gdbarch parameter.
2322 Use it instead of current_gdbarch.
2324 * arm-tdep.c (arm_prologue_prev_register, arm_unwind_pc,
2325 arm_dwarf2_prev_register): Update calls.
2326 * m88k-tdep.c (m88k_unwind_pc): Update call.
2328 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2330 * dwarf2expr.h (dwarf2_read_address): Add gdbarch argument.
2331 * dwarf2expr.c (dwarf2_read_address): Add gdbarch argument.
2332 Call gdbarch_integer_to_address directly instead of converting
2333 to value and back. Update comment.
2334 (execute_stack_op): Update call site.
2335 * dwarf2loc.c (find_location_expression): Likewise.
2336 (locexpr_describe_location): Update
2338 * dwarf2expr.h (struct dwarf_expr_context): Add gdbarch member.
2339 * dwarf2-frame.c (execute_stack_op): Initialize ctx->gdbarch.
2340 * dwarf2loc. (dwarf2_evaluate_loc_desc): Likewise.
2341 (dwarf2_loc_desc_needs_frame): Likewise.
2343 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2345 * breakpoint.h (struct bp_location): Change type of section
2346 member to "struct obj_section *".
2347 * tracepoint.h (struct tracepoint): Likewise.
2348 * symtab.h (struct general_symbol_info): Replace bfd_section
2349 member with obj_section.
2350 (struct symtab_and_line): Change type of section member to
2351 "struct obj_section *".
2352 (SYMBOL_BFD_SECTION): Remove macro, replace by ...
2353 (SYMBOL_OBJ_SECTION): ... this.
2355 * minsym.c (prim_record_minimal_symbol_and_info): Record symbol
2356 section as obj_section instead of bfd_section.
2358 * ada-lang.c (ada_decode_symbol): Use gsymbol->obj_section
2359 directly instead of looking of obj_section from bfd_section.
2361 * objfiles.h (find_pc_sect_section): Remove.
2362 * objfiles.c (find_pc_sect_section): Remove.
2363 (find_pc_section): Inline find_pc_sect_section code.
2365 * symfile.h (find_pc_overlay): Return struct obj_section *.
2366 (find_pc_mapped_section): Likewise.
2367 (section_is_overlay, section_is_mapped): Change type of section
2368 argument to struct obj_section *.
2369 (pc_in_mapped_range, pc_in_unmapped_range): Likewise.
2370 (overlay_mapped_address, overlay_unmapped_address): Likewise.
2371 (symbol_overlayed_address): Likewise.
2372 * symtab.h (symbol_overlayed_address): Likewise.
2373 * symfile.c (overlay_is_mapped): Remove.
2374 (section_is_mapped): Inline overlay_is_mapped code. Update.
2375 (overlay_invalidate_all): Update.
2376 (section_is_overlay): Change section argument to type
2377 "struct obj_section *". Use bfd_ methods.
2378 (pc_in_unmapped_range): Likewise. Handle relocated sections.
2379 (pc_in_mapped_range): Likewise. Handle relocated sections.
2380 (sections_overlap): Likewise.
2381 (overlay_unmapped_address): Likewise.
2382 (overlay_mapped_address): Likewise.
2383 (symbol_overlayed_address): Likewise.
2384 (find_pc_overlay): Return struct obj_section *.
2385 (find_pc_mapped_section): Likewise.
2386 (list_overlays_command): Update.
2387 (map_overlay_command, unmap_overlay_command): Update.
2388 (simple_overlay_update): Update.
2390 * block.h (blockvector_for_pc_sect): Change section argument
2391 to type "struct obj_section *".
2392 (block_for_pc_sect): Likewise.
2393 * block.c (blockvector_for_pc_sect): Change section argument
2394 to type "struct obj_section *".
2395 (block_for_pc_sect): Likewise.
2396 * symtab.h (find_pc_sect_function, find_pc_sect_psymtab,
2397 find_pc_sect_symtab, find_pc_sect_psymbol, find_pc_sect_line,
2398 lookup_minimal_symbol_by_pc_section, find_function_start_pc): Likewise.
2399 (matching_bfd_sections): Rename to ...
2400 (matching_obj_sections): ... this. Update argument types.
2401 * blockframe.c (find_pc_sect_function): Likewise.
2402 * breakpoint.c (describe_other_breakpoints): Likewise.
2403 (breakpoint_has_pc, check_duplicates_for): Likewise.
2404 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
2405 (lookup_minimal_symbol_by_pc_section): Likewise.
2406 * symtab.c (find_pc_sect_psymtab_closer): Likewise.
2407 (find_pc_sect_psymtab, find_pc_sect_psymbol, find_pc_sect_symtab,
2408 find_pc_sect_line, find_function_start_pc): Likewise.
2409 (matching_bfd_sections): Rename to ...
2410 (matching_obj_sections): ... this. Update argument types.
2412 * blockframe.c (find_pc_partial_function): Update to section
2413 type changes. No longer call find_pc_sect_section.
2414 (cache_pc_function_section): Change to type "struct obj_section *".
2415 * breakpoint.c (resolve_sal_pc): Update to section type changes.
2416 * exec.c (xfer_memory): Likewise.
2417 * findvar.c (read_var_value): Likewise.
2418 * infcmd.c (jump_command): Likewise.
2419 * linespec.c (minsym_found): Likewise.
2420 * maint.c (maintenance_translate_address): Likewise.
2421 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
2422 (lookup_solib_trampoline_symbol_by_pc): Likewise.
2423 * parse.c (write_exp_msymbol): Likewise.
2424 * printcmd.c (build_address_symbolic): Likewise.
2425 (address_info, sym_info): Likewise.
2426 * symmisc.c (dump_msymbols, print_symbol): Likewise.
2427 * symtab.c (fixup_section): Likewise.
2428 (fixup_symbol_section, fixup_psymbol_section): Likewise.
2429 (find_pc_line, find_function_start_sal): Likewise.
2430 * target.c (memory_xfer_partial): Likewise.
2431 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline): Likewise.
2432 * spu-tdep.c (spu_overlay_update): Likewise.
2434 2008-09-04 Doug Evans <dje@google.com>
2436 * defs.h (plongest,pulongest): Renamed from paddr_u,paddr_d.
2437 Change argument of pulongest from CORE_ADDR to ULONGEST.
2438 All callers updated.
2439 * utils.c (plongest): Renamed from paddr_d.
2440 (pulongest): Renamed from paddr_u, change arg type to ULONGEST.
2441 * remote-mips.c (send_srec): Use paddr_nz instead of paddr_u in
2442 `CORE_ADDR addr' arg of error message.
2444 2008-09-03 Angela Marie Thomas <angela@releasedominatrix.com>
2446 * ser-tcp.c (ser_tcp_send_break): New function.
2447 (_initialize_ser_tcp): Use ser_tcp_send_break.
2448 * ser-tcp.h (ser_tcp_send_break): New prototype.
2450 2008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
2452 * spu-tdep.c (spu_push_dummy_call): Update all stack pointer slots
2453 when allocating stack frame for inferior call.
2455 2008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
2457 * spu-tdep.c (spu_frame_unwind_cache): Do not attempt to unwind
2458 SP or return address if we failed to find a valid frame.
2460 2008-09-03 Aleksandar Ristovski <aristovski@qnx.com>
2462 * breakpoint.c (breakpoint_init_inferior): Mark as not inserted only
2463 non-permanent breakpoints.
2464 (bpstat_stop_status): Change enable_state to bp_disabled only for
2465 non-permanent breakpoints.
2466 (bp_loc_is_permanent): New function.
2467 (create_breakpoint): Check if the location points to a permanent
2468 breakpoint and if it does, make breakpoint permanent.
2469 (update_breakpoint_locations): Make sure new locations of permanent
2470 breakpoints are properly initialized.
2471 * i386-tdep.c (i386_skip_permanent_breakpoint): New function.
2472 (i386_gdbarch_init): Set gdbarch_skip_permanent_breakpoint.
2474 2008-09-02 Pedro Alves <pedro@codesourcery.com>
2476 * breakpoint.c (insert_breakpoints, update_global_location_list):
2477 Check breakpoints_always_inserted_mode instead of
2478 always_inserted_mode directly.
2480 2008-09-02 Andreas Schwab <schwab@suse.de>
2482 * ia64-tdep.c (ia64_get_dyn_info_list): Use obj_section_addr.
2484 2008-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2486 Stay compatible after the GCC PR fortran/29635 fix.
2487 * dwarf2read.c (process_die <DW_TAG_imported_module>)
2488 (process_die <DW_TAG_imported_module>): Do not assert anything about
2489 these unsupported tags.
2491 2008-08-29 Tom Tromey <tromey@redhat.com>
2493 * maint.c (_initialize_maint_cmds): Fix typo.
2495 2008-08-29 Tom Tromey <tromey@redhat.com>
2497 * dwarf2read.c (dwarf2_build_psymtabs_hard): Copy dirname on
2500 2008-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2502 * remote.c: Include "gdb_stat.h".
2504 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
2506 * dummy-frame.h (dummy_frame_pop): Add prototype.
2507 * dummy-frame.c: Include "observer.h".
2508 (dummy_frame_push): Do not check for stale frames.
2509 (dummy_frame_pop): New function.
2510 (cleanup_dummy_frames): New function.
2511 (_initialize_dummy_frame): Install it as inferior_created observer.
2513 * frame.h (struct frame_id): Update comments.
2514 (frame_id_inner): Remove prototype.
2515 * frame.c (frame_id_inner): Make static. Add comments.
2516 (frame_find_by_id): Update frame_id_inner safety net check to avoid
2517 false positives for targets using non-contiguous stack ranges.
2518 (get_prev_frame_1): Update frame_id_inner safety net check.
2519 (frame_pop): Call dummy_frame_pop when popping a dummy frame.
2521 * stack.c (return_command): Directly pop the selected frame.
2522 * infrun.c (handle_inferior_event): Remove dead code.
2523 * i386-tdep.c (i386_push_dummy_call): Update comment.
2525 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
2527 * breakpoint.c (remove_breakpoint): Do not fail if unable to remove
2528 breakpoint from shared library.
2530 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
2532 * solib-svr4.c (read_program_header): New function.
2533 (scan_dyntag_auxv): New function.
2534 (elf_locate_base): Use it if scan_dyntag fails.
2535 (find_program_interpreter): New function.
2536 (enable_break): Use it instead of .interp section.
2538 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
2540 * remote.h (remote_filename_p, remote_bfd_open): Add prototypes.
2541 * remote.c (remote_bfd_iovec_open, remote_bfd_iovec_close,
2542 remote_bfd_iovec_pread, remote_bfd_iovec_stat, remote_filename_p,
2543 remote_bfd_open): New functions.
2544 (remote_hostio_send_command): Fail safely if remote connection
2547 * solist.h (solib_open): Remove prototype.
2548 (solib_bfd_open): Add prototype.
2549 * solib.c: Include "remote.h".
2550 (solib_open): Remove, replace by ...
2551 (solib_bfd_open): ... this new function. Handle remote BFDs.
2552 (solib_map_sections): Replace solib_open by solib_bfd_open.
2553 * solib-frv.c: Include "exceptions.h".
2554 (enable_break2): Replace solib_open by solib_bfd_open.
2555 * solib-svr4.c: Include "exceptions.h".
2556 (enable_break): Replace solib_open by solib_bfd_open.
2558 * symfile.c: Include "remote.h".
2559 (build_id_verify): Handle remote BFDs.
2560 (separate_debug_file_exists): Use BFD to access file. Handle
2562 (symfile_bfd_open): Handle remote BFDs.
2563 (reread_symbols): Handle remote BFDs.
2565 * NEWS: Mention "remote:" argument prefix to "set sysroot".
2567 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
2569 * gdbarch.sh (target_gdbarch): New global variable.
2570 (deprecated_current_gdbarch_select_hack): Set it.
2571 * gdbarch.c, gdbarch.h: Regenerate.
2573 * arch-utils.c (gdbarch_update_p): Use target_gdbarch instead
2575 * target-descriptions.c (target_find_description): Likewise.
2576 * arm-tdep.c (arm_update_current_architecture): Likewise.
2577 (show_fp_model, arm_show_abi, arm_show_fallback_mode,
2578 arm_show_force_mode): Likewise.
2579 * mips-tdep.c (show_mask_address, show_mipsfpu_command,
2580 show_mips_abi): Likewise.
2581 * mep-tdep.c (me_module_register_set, current_me_module): Likewise.
2583 * target.c (target_translate_tls_address): Use target_gdbarch
2584 instead of current_gdbarch.
2585 * remote.c (struct packet_reg): Likewise.
2586 (get_remote_arch_state, packet_reg_from_regnum,
2587 packet_reg_from_pnum, remote_check_symbols, remote_wait,
2588 remote_address_masked, remote_insert_breakpoint,
2589 remote_insert_hw_breakpoint, remote_read_description): Likewise.
2590 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
2591 * remote-mips.c (mips_open, mips_common_breakpoint): Likewise.
2592 * cris-tdep.c (cris_can_use_hardware_watchpoint): Likewise.
2594 * solib.c (solib_open, solib_map_sections, solib_read_symbols,
2595 solib_add, info_sharedlibrary_command, solib_address,
2596 solib_create_inferior_hook, in_solib_dynsym_resolve_code,
2597 solib_global_lookup): Likewise.
2598 * solib-frv.c (enable_break2, frv_relocate_main_executable): Likewise.
2599 * solib-irix.c (irix_current_sos, irix_open_symbol_file_object):
2601 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
2602 * solib-svr4.c (exec_entry_point, enable_break, svr4_free_so,
2603 set_solib_svr4_fetch_link_map_offsets, svr4_fetch_link_map_offsets):
2605 * nto-tdep.c (nto_find_and_open_solib, nto_init_solib_absolute_prefix,
2606 nto_truncate_ptr): Likewise.
2607 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Likewise.
2609 2008-08-26 Luis Machado <luisgpm@br.ibm.com>
2611 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections) New structure.
2612 (ppc_linux_vmx_regset_sections): New structure.
2613 (ppc_linux_fp_regset_sections): New structure.
2614 (ppc_linux_init_abi): Select core-file regset based on target
2617 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
2619 * target.c (debug_print_register): Use regcache_raw_collect
2620 instead of regcache_cooked_read. Only handle raw registers.
2622 2008-08-25 Pedro Alves <pedro@codesourcery.com>
2624 * cp-name-parser.y: Include config.h before system headers.
2626 2008-08-25 Ulrich Weigand <uweigand@de.ibm.com>
2628 * m88k-tdep.c: Update for unwinder changes.
2630 2008-08-24 Tom Tromey <tromey@redhat.com>
2632 * s390-tdep.c (s390_address_class_type_flags): Use
2633 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1.
2634 (s390_address_class_type_flags_to_name): Likewise.
2635 (s390_address_class_name_to_type_flags): Likewise.
2637 2008-08-24 Tom Tromey <tromey@redhat.com>
2639 * rs6000-tdep.c (rs6000_builtin_type_vec128): Don't use
2641 * features/rs6000/powerpc-vsx32l.c
2642 (initialize_tdesc_powerpc_vsx32l): Update.
2643 * features/rs6000/powerpc-vsx32.c
2644 (initialize_tdesc_powerpc_vsx32): Update.
2645 * features/rs6000/powerpc-vsx64.c
2646 (initialize_tdesc_powerpc_vsx64): Update.
2647 * features/rs6000/powerpc-vsx64l.c
2648 (initialize_tdesc_powerpc_vsx64l): Update.
2649 * target-descriptions.c (maint_print_c_tdesc_cmd): Emit
2650 TYPE_VECTOR, not TYPE_FLAGS.
2652 2008-08-24 Tom Tromey <tromey@redhat.com>
2654 * xml-tdesc.c (tdesc_end_union): Update.
2655 * stabsread.c (define_symbol): Update.
2656 (read_type): Update.
2657 (read_struct_type): Update.
2658 (read_enum_type): Update.
2659 * spu-tdep.c (spu_builtin_type_vec128): Update.
2660 * sh-tdep.c (sh_push_dummy_call_fpu): Update.
2661 (sh_push_dummy_call_nofpu): Update.
2662 * mdebugread.c (parse_symbol): Update.
2663 (parse_symbol): Update.
2664 (parse_symbol): Update.
2665 (upgrade_type): Update.
2666 * jv-lang.c (java_lookup_class): Update.
2667 * iq2000-tdep.c (iq2000_pointer_to_address): Update.
2668 * i386-tdep.c (i386_mmx_type): Update.
2669 (i386_sse_type): Update.
2670 * gdbtypes.h (enum type_flag_value): New enum.
2671 (enum type_instance_flag_value): New enum.
2672 (TYPE_FLAG_UNSIGNED, TYPE_FLAG_NOSIGN, TYPE_FLAG_STUB,
2673 TYPE_FLAG_TARGET_STUB, TYPE_FLAG_STATIC, TYPE_FLAG_PROTOTYPED,
2674 TYPE_FLAG_INCOMPLETE, TYPE_FLAG_VARARGS, TYPE_FLAG_VECTOR,
2675 TYPE_FLAG_FIXED_INSTANCE, TYPE_FLAG_STUB_SUPPORTED,
2676 TYPE_FLAG_NOTTEXT): Now enum constants.
2677 (TYPE_FLAG_CONST, TYPE_FLAG_VOLATILE, TYPE_FLAG_CODE_SPACE,
2678 TYPE_FLAG_DATA_SPACE, TYPE_FLAG_ADDRESS_CLASS_1,
2679 TYPE_FLAG_ADDRESS_CLASS_2): Remove.
2680 (TYPE_INSTANCE_FLAG_CONST, TYPE_INSTANCE_FLAG_VOLATILE,
2681 TYPE_INSTANCE_FLAG_CODE_SPACE, TYPE_INSTANCE_FLAG_DATA_SPACE,
2682 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1,
2683 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_2): New constants.
2684 (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB, TYPE_TARGET_STUB,
2685 TYPE_STATIC, TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_VARARGS,
2686 TYPE_VECTOR, TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED,
2687 TYPE_NOTTEXT): Update.
2688 (TYPE_FLAG_ADDRESS_CLASS_ALL): Remove.
2689 (TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL): New define.
2690 (TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE,
2691 TYPE_ADDRESS_CLASS_1, TYPE_ADDRESS_CLASS_2,
2692 TYPE_ADDRESS_CLASS_ALL): Update.
2693 (struct main_type) <flags>: Remove.
2694 <flag_unsigned, flag_nosign, flag_stub, flag_target_stub,
2695 flag_static, flag_prototyped, flag_incomplete, flag_varargs,
2696 flag_vector, flag_stub_supported, flag_nottext,
2697 flag_fixed_instance>: New fields.
2698 <nfields, vptr_fieldno>: Move earlier.
2699 (TYPE_FLAGS): Remove.
2700 * gdbtypes.c (make_pointer_type): Update.
2701 (address_space_name_to_int): Update.
2702 (address_space_int_to_name): Update.
2703 (make_type_with_address_space): Update.
2704 (make_cv_type): Update.
2705 (create_range_type): Update.
2706 (get_discrete_bounds): Update.
2707 (create_set_type): Update.
2708 (make_vector_type): Update.
2709 (smash_to_method_type): Update.
2710 (check_typedef): Update.
2711 (check_stub_method): Update.
2712 (init_type): Individually assign flag fields.
2713 (recursive_dump_type): Don't print entire TYPE_FLAGS field. Do
2714 print TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED, and TYPE_NOTTEXT.
2715 (copy_type_recursive): Copy the entire main type. Don't use
2717 * features/rs6000/powerpc-altivec64l.c
2718 (initialize_tdesc_powerpc_altivec64l): Update.
2719 * features/rs6000/powerpc-altivec64.c
2720 (initialize_tdesc_powerpc_altivec64): Update.
2721 * features/rs6000/powerpc-altivec32l.c
2722 (initialize_tdesc_powerpc_altivec32l): Update.
2723 * features/rs6000/powerpc-altivec32.c
2724 (initialize_tdesc_powerpc_altivec32): Update.
2725 * features/rs6000/powerpc-7400.c (initialize_tdesc_powerpc_7400):
2727 * features/arm-with-iwmmxt.c (initialize_tdesc_arm_with_iwmmxt):
2729 * dwarf2read.c (read_structure_type): Update.
2730 (read_enumeration_type): Likewise.
2731 (process_enumeration_scope): Likewise.
2732 (read_tag_pointer_type): Likewise.
2733 (read_subroutine_type): Likewise.
2734 (read_subroutine_type): Likewise.
2735 (read_base_type): Likewise.
2736 * coffread.c (coff_read_enum_type): Update.
2737 * ada-valprint.c (adjust_type_signedness): Update.
2738 * ada-typeprint.c (print_record_field_types): Update.
2739 * ada-lang.c (packed_array_type): Update.
2740 (empty_record): Don't reset TYPE_FLAGS.
2741 (ada_template_to_fixed_record_type_1): Update.
2742 (ada_template_to_fixed_record_type_1): Likewise.
2743 (template_to_static_fixed_type): Likewise.
2744 (to_record_with_fixed_variant_part): Likewise.
2745 (to_fixed_record_type): Likewise.
2746 (to_fixed_array_type): Likewise.
2747 (to_static_fixed_type): Likewise.
2749 2008-08-23 Jim Blandy <jimb@redhat.com>
2752 * symmisc.c (print_symbol_bcache_statistics): Include statistics
2753 for the macro bcache.
2755 2008-08-23 Tom Tromey <tromey@redhat.com>
2757 * macrotab.h (struct macro_definition) <kind>: Shrink to one bit.
2758 (argc): Now 31 bits.
2760 2008-08-22 Tom Tromey <tromey@redhat.com>
2762 * NEWS: Move macro entries back under "New commands".
2764 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
2766 * breakpoint.c (create_overlay_event_breakpoint): Rename to ...
2767 (create_overlay_event_breakpoint_1): ... this. Add OBJFILE parameter.
2768 (create_overlay_event_breakpoint): Loop over all objfiles to install
2769 multiple instances of the overlay event breakpoint if present.
2771 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
2773 * spu-tdep.c (spu_overlay_new_objfile): Only consider SPU objfiles.
2774 (info_spu_event_command): Command only supported on SPU architecture.
2775 (info_spu_signal_command): Likewise.
2776 (info_spu_mailbox_command): Likewise.
2777 (info_spu_dma_command): Likewise.
2778 (info_spu_proxydma_command): Likewise.
2780 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
2782 * infrun.c (adjust_pc_after_break): Do not call get_thread_regcache
2783 if the thread has already exited.
2785 2008-08-22 Pedro Alves <pedro@codesourcery.com>
2787 * infrun.c (proceed): Move back setting previous_inferior_ptid
2789 (wait_for_inferior): ... to here.
2790 (fetch_inferior_event): ... and here.
2792 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
2794 * gdbarch.sh: Include "regcache.h" into gdbarch.c.
2795 (deprecated_current_gdbarch_select_hack): Call registers_changed
2796 instead of reinit_frame_cache.
2797 * gdbarch.c: Regenerate.
2799 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
2801 * elfread.c (elf_symtab_read): Do not relocate thread-local symbols.
2803 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
2805 * xcoffread.c (SYMNAME_ALLOC): Correct syntax.
2807 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
2809 * findvar.c (locate_var_value): Do not call get_frame_arch
2810 with a NULL frame argument.
2812 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
2814 * frame.h (frame_map_regnum_to_name): Remove prototype.
2815 (frame_map_name_to_regnum): Remove prototype.
2816 * frame.c (frame_map_regnum_to_name): Remove.
2817 (frame_map_name_to_regnum): Remove.
2818 (frame_unwind_register_value): Use user_reg_map_regnum_to_name
2819 instead of frame_map_regnum_to_name.
2820 * ax-gdb.c: Include "user-regs.h".
2821 (gen_expr): Use user_reg_map_name_to_regnum instead of
2822 frame_map_name_to_regnum.
2823 * eval.c: Include "user-regs.h".
2824 (evaluate_subexp_standard): Use user_reg_map_name_to_regnum
2825 instead of frame_map_name_to_regnum.
2826 * infcmd.c (registers_info): Likewise.
2827 * parse.c: Include "user-regs.h".
2828 (write_dollar_variable): Use user_reg_map_name_to_regnum
2829 instead of frame_map_name_to_regnum.
2830 * tracepoint.c: Include "user-regs.h".
2831 (encode_actions): Use user_reg_map_name_to_regnum
2832 instead of frame_map_name_to_regnum.
2833 * valops.c: Include "user-regs.h".
2834 (value_fetch_lazy): Use user_reg_map_regnum_to_name instead
2835 of frame_map_regnum_to_name.
2837 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
2839 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Read
2840 and manually relocate .opd contents from BFD instead of reading
2841 them from target memory.
2843 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
2845 * dwarf2read.c (processing_current_prefix): Delete static
2847 (process_full_comp_unit): Do not set processing_current_prefix.
2848 (dwarf2_full_name): New function.
2849 (read_func_scope): Do not set processing_current_prefix. Use
2851 (read_structure_type): Do not set processing_current_prefix. Remove
2852 unused inner cleanup.
2853 (process_structure_scope): Do not set processing_current_prefix.
2854 (read_enumeration_type): Use dwarf2_full_name.
2855 (determine_class_name): Return a const char *. Put the result
2856 on the objfile obstack. Use dwarf2_full_name.
2857 (read_namespace_type): New function.
2858 (read_namespace): Do not create the type here. Use
2860 (read_typedef): Use dwarf2_full_name. Do not pass the name
2862 (read_base_type): Do not pass the name to init_type. Handle
2864 (read_unspecified_type): Do not pass the name to init_type.
2865 (new_symbol): Use dwarf2_full_name instead of
2866 processing_current_prefix.
2867 (read_type_die): Do not set processing_current_prefix. Handle
2869 (determine_prefix): Handle specifications. Return the result
2870 on the objfile obstack. Handle unions correctly.
2872 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
2874 * buildsym.c (add_symbol_to_list): Do not call
2875 cp_scan_for_anonymous_namespaces here.
2876 (finish_block): Do not call cp_set_block_scope here.
2877 * cp-namespace.c (processing_has_namespace_info)
2878 (processing_current_prefix): Delete.
2879 (cp_initialize_namespace): Do not initialize
2880 processing_has_namespace_info.
2881 (cp_scan_for_anonymous_namespaces): Use SYMBOL_DEMANGLED_NAME. Do
2882 not check processing_has_namespace_info.
2883 (cp_set_block_scope): Take prefix and namespace info flag as
2884 arguments. Honor namespaces regardless of a demangled name.
2885 * cp-support.h (processing_has_namespace_info)
2886 (processing_current_prefix): Delete declarations.
2887 (cp_set_block_scope): Update prototype.
2888 * dwarf2read.c (processing_has_namespace_info)
2889 (processing_current_prefix): New static variables.
2890 (read_file_scope): Initialize processing_has_namespace_info.
2891 (read_func_scope): Call cp_set_block_scope for C++.
2892 (new_symbol): Call cp_scan_for_anonymous_namespaces for C++.
2893 * symtab.c (symbol_demangled_name): Accept a const argument.
2894 * symtab.h (symbol_demangled_name): Update prototype.
2896 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
2898 * ax-gdb.c (gen_var_ref): Use SYMBOL_LINKAGE_NAME.
2899 * blockframe.c (find_pc_partial_function): Likewise.
2900 * buildsym.c (find_symbol_in_list): Likewise.
2901 * c-valprint.c (c_val_print): Likewise.
2902 * coffread.c (patch_opaque_types, process_coff_symbol): Likewise.
2903 (coff_read_enum_type): Likewise. Use SYMBOL_SET_LINKAGE_NAME.
2904 * cp-support.c (cp_remove_params): Renamed from remove_params and
2906 (overload_list_add_symbol): Update call to remove_params.
2907 * cp-support.h (cp_remove_params): Declare.
2908 * dwarf2read.c (process_enumeration_scope): Use SYMBOL_LINKAGE_NAME.
2909 (dwarf2_const_value): Use SYMBOL_PRINT_NAME.
2910 * expprint.c (dump_subexp_body_standard): Likewise.
2911 * f-valprint.c (info_common_command, there_is_a_visible_common_named):
2912 Use SYMBOL_LINKAGE_NAME to find symbols and SYMBOL_PRINT_NAME
2914 * findvar.c (read_var_value): Use SYMBOL_LINKAGE_NAME.
2915 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
2916 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
2917 (hppa_hpux_skip_trampoline_code): Use SYMBOL_LINKAGE_NAME to find
2918 symbols and SYMBOL_PRINT_NAME for messages.
2919 * jv-lang.c (add_class_symbol): Use SYMBOL_SET_LINKAGE_NAME.
2920 * linespec.c (decode_line_2): Use SYMBOL_LINKAGE_NAME.
2921 * mdebugread.c (parse_symbol): Use SYMBOL_LINKAGE_NAME and
2922 SYMBOL_SET_LINKAGE_NAME.
2923 (mylookup_symbol): Use SYMBOL_LINKAGE_NAME.
2924 * minsyms.c (add_minsym_to_demangled_hash_table): Use
2926 (lookup_minimal_symbol): Use SYMBOL_LINKAGE_NAME or
2927 SYMBOL_MATCHES_SEARCH_NAME, depending on the pass.
2928 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Use SYMBOL_LINKAGE_NAME.
2929 * printcmd.c (build_address_symbolic): Use SYMBOL_LINKAGE_NAME.
2930 (address_info): Use SYMBOL_PRINT_NAME for messages and
2931 SYMBOL_LINKAGE_NAME for lookups.
2932 * sol-thread.c (info_cb): Use SYMBOL_PRINT_NAME for messages.
2933 * stabsread.c (patch_block_stabs, define_symbol)
2934 (read_type, read_enum_type, common_block_end)
2935 (cleanup_undefined_types_1, scan_file_globals): Use
2936 SYMBOL_LINKAGE_NAME, SYMBOL_SET_LINKAGE_NAME, ALL_OBJFILE_MSYMBOLS,
2937 and SYMBOL_PRINT_NAME.
2938 * stack.c (print_frame_args): Use SYMBOL_LINKAGE_NAME.
2939 (print_frame, frame_info): Use SYMBOL_PRINT_NAME for output. Use
2940 cp_remove_params instead of cplus_demangle.
2941 (print_block_frame_labels, print_frame_arg_vars): Use
2942 SYMBOL_LINKAGE_NAME.
2943 * symmisc.c (dump_msymbols): Use ALL_OBJFILE_MSYMBOLS and
2944 SYMBOL_LINKAGE_NAME.
2945 (dump_symtab_1, print_symbol, print_partial_symbols)
2946 (maintenance_check_symtabs): Use SYMBOL_LINKAGE_NAME.
2947 * symtab.h (DEPRECATED_SYMBOL_NAME): Delete.
2948 (SYMBOL_SET_LINKAGE_NAME): New.
2949 (SYMBOL_SET_NAMES): Add a comment.
2950 * tracepoint.c (set_traceframe_context, validate_actionline)
2951 (collect_symbol, scope_info): Use SYMBOL_LINKAGE_NAME for
2952 lookups and SYMBOL_PRINT_NAME for output.
2953 * typeprint.c (typedef_print): Use SYMBOL_LINKAGE_NAME.
2954 * xcoffread.c (process_xcoff_symbol): Use SYMBOL_SET_LINKAGE_NAME.
2956 2008-08-21 Pedro Alves <pedro@codesourcery.com>
2958 * arm-tdep.c (arm_pc_is_thumb): Use obj_section_addr.
2959 * hppa-hpux-tdep.c (hppa_hpux_find_dummy_bpaddr): Likewise.
2960 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Use
2961 obj_section_addr and obj_section_endaddr.
2962 * hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Likewise.
2963 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
2964 * ia64-tdep.c (ia64_find_global_pointer): Likewise.
2965 (find_extant_func_descr): Likewise.
2966 * solib-frv.c (frv_relocate_main_executable): Use
2968 * xstormy16-tdep.c (xstormy16_find_jmp_table_entry): Use
2969 obj_section_addr and obj_section_endaddr.
2971 2008-08-21 Paul N. Hilfinger <hilfinger@adacore.com>
2973 * NEWS: Amplify last entry on boolean types in Ada.
2975 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
2977 * dwarf2read.c (die_specification, dwarf2_extension, follow_die_ref):
2978 Make the dwarf2_cu * parameter output as well as input. Update it if
2979 we follow a reference to another CU.
2980 (read_func_scope, determine_class_name, namespace_name, dwarf2_attr)
2981 (die_type, die_containing_type): Update calls to changed functions.
2982 Use the returned CU along with the returned DIE.
2983 (read_namespace): Use dwarf2_attr instead of dwarf2_extension.
2985 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
2987 * dwarf2read.c (queue_comp_unit): Take an objfile argument. Read
2989 (process_queue): Do not read in the DIEs here.
2990 (psymtab_to_symtab_1): Update call to queue_comp_unit.
2991 (read_full_die): Do not call queue_comp_unit from here.
2992 (maybe_queue_comp_unit): New function.
2993 (follow_die_ref): Use it.
2995 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
2997 * dwarf2read.c (struct attribute): Move earlier.
2998 (struct die_info): Change attrs to a trailing array.
2999 (dwarf_alloc_die): Take the number of attributes. Allocate space
3001 (read_full_die): Update call to dwarf_alloc_die. Do not manually
3002 allocate attributes.
3004 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3006 * dwarf2read.c (REF_HASH_SIZE): Delete.
3007 (struct dwarf2_cu): Replace die_ref_table with die_hash.
3008 (struct die_info): Remove next_ref.
3009 (store_in_ref_table): Remove offset argument. Rewrite to use
3010 htab_find_slot_with_hash.
3011 (die_hash, die_eq): New.
3012 (read_comp_unit): Allocate the die_hash.
3013 (read_die_and_children): Update call to store_die_ref.
3014 (follow_die_ref): Rewrite to use htab_find_with_hash.
3016 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3018 * dwarf2read.c (free_die_list, copy_die): Delete.
3019 (dwarf_alloc_die): Take a CU argument. Allocate the new DIE
3021 (read_full_die): Update call to dwarf_alloc_die. Allocate
3022 attributes on the CU obstack.
3023 (free_one_comp_unit): Do not call free_die_list.
3025 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3027 * dwarf2read.c (read_die_and_children): Ignore NULL DIEs.
3028 (read_die_and_siblings): Likewise. Do not add padding DIEs to the
3030 (read_full_die): Do not allocate DIEs for abbrev 0.
3031 (follow_die_ref): Correct error message.
3033 2008-08-20 Pedro Alves <pedro@codesourcery.com>
3035 * linespec.c (symtab_from_filename): Also throw NOT_FOUND_ERROR if
3036 there are no symbols loaded, instead of throwing a generic error.
3037 (decode_variable): Likewise.
3039 2008-08-20 Pedro Alves <pedro@codesourcery.com>
3041 * objfiles.h (struct obj_section): Remove addr and endaddr fields.
3042 (obj_section_offset, obj_section_addr, obj_section_endaddr): New
3044 * objfiles.c (add_to_objfile_sections): Don't set addr, endaddr
3045 and offset. Use size_t instead of unsigned long.
3046 (build_objfile_section_table): Use size_t instead of unsigned
3048 (objfile_relocate): Don't relocate s->addr and s->endaddr, they're
3050 (find_pc_sect_section): Use obj_section_addr and
3051 obj_section_endaddr.
3052 * symfile.c (symfile.c): Remove code that maps sections
3053 offsets in "addr" to the object's sections.
3054 * blockframe.c (find_pc_partial_function): Use obj_section_endaddr.
3055 * gcore.c (gcore_create_callback): Use obj_section_addr and
3056 obj_section_endaddr.
3057 * maint.c (print_objfile_section_info): Likewise.
3058 * printcmd.c (sym_info): Use obj_section_addr and
3059 obj_section_endaddr.
3060 * symtab.c (fixup_section): Likewise.
3062 2008-08-20 Mark Kettenis <kettenis@gnu.org>
3064 * sparc-tdep.c: Make some comments catch up with reality.
3066 2008-08-20 Vladimir Prus <vladimir@codesourcery.com>
3068 * NEWS: Mention 'set target-async'
3070 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
3072 * infrun.c (resume): If the thread is placed to the deferred step
3073 queue, mark it as running.
3075 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
3077 Make sure target supports non-stop.
3078 * infcmd.c (run_command_1, attach_command): If non-stop mode
3079 is requested, verify the target supports it.
3080 * linux-nat.c (linux_nat_supports_non_stop): New.
3081 (linux_nat_add_target): Register the above.
3082 * target.c (find_default_supports_non_stop)
3083 (target_supports_non_stop): New.
3084 (init_dummy_target): Register find_default_supports_non_stop.
3085 * target.h (struct target_ops): New field to_supports_non_stop.
3086 (target_supports_non_stop): New.
3088 2008-08-19 Pedro Alves <pedro@codesourcery.com>
3089 Vladimir Prus <vladimir@codesourcery.com>
3091 * target.c (target_async_permitted, target_async_permitted_1)
3092 (set_maintenance_target_async_permitted)
3093 (show_maintenance_target_async_permitted): New.
3094 (initialize_targets): Register 'set target-async'.
3095 * target.h (target_async_permitted): Declare.
3096 * linux-nat.c (linux_nat_async_enabled)
3097 (linux_nat_async_permitted, set_maintenance_linux_async_permitted)
3098 (show_maintenance_linux_async_permitted): Remove.
3099 (sigchld_handler, linux_nat_is_async_p, linux_nat_can_async_p)
3100 (get_pending_events, linux_nat_async): Use target_async_permitted.
3101 (linux_nat_set_async_mode): Remove, moving the only used bits
3103 (linux_nat_setup_async): This.
3104 (_initialize_linux_nat): Do not register 'maint set linux-async'.
3105 Use linux_nat_setup_async.
3106 * remote.c (remote_async_permitted, remote_async_permitted_set)
3107 (set_maintenance_remote_async_permitted)
3108 (show_maintenance_remote_async_permitted): Remove.
3109 (remote_open_1, remote_terminal_inferior, remote_can_async_p)
3110 (remote_is_async_p): Use target_async_permitted.
3111 (_initialize_remote): Don't register 'main set remote-async'.
3112 * mi/mi-cmds.c (mi_cmds): Register -list-target-features.
3113 * mi/mi-cmds.h (mi_cmd_list_target_features): New.
3114 * mi/mi-main.c (mi_cmd_list_target_features): New.
3116 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
3118 * target.c (maybe_kill_then_attach)
3119 (maybe_kill_then_create_inferior): Remove.
3120 (update_current_target): Do not default to_attach,
3121 to_create_inferiour, to_is_async_p.
3123 2008-08-19 Paul N. Hilfinger <hilfinger@adacore.com>
3125 Changes for supporting boolean types in debugging data.
3126 * ada-lang.c (discrete_type_high_bound,discrete_type_low_bound): Change
3127 API to return LONGEST values rather than struct values.
3128 (ada_evaluate_subexp): Change to use new API of discrete_type_low_bound
3129 and discrete_type_high_bound.
3130 (to_fixed_range_type): Create a range type in cases where
3131 argument is base type and its limits are representable as ints.
3132 (ada_is_modular_type): Correct so that base type must be integral.
3133 * ada-lex.l (TRUEKEYWORD,FALSEKEYWORD): Make 'true' and 'false'
3134 keywords when they appear alone, since we are phasing out
3135 direct representation of these identifiers in debugging data.
3136 * ada-exp.y: Define 'true' and 'false' as primaries.
3137 (type_boolean): New function.
3138 (type_int,type_long,type_long_long,type_floattype_double)
3139 (type_long_double): Remove uses of current_gdbarch for consistency
3141 (write_int): Change comment to indicate that it might write boolean
3143 * ada-typeprint.c (ada_print_type): Print '(false, true)' for boolean
3144 type, since will no longer be represented as enumerated type in
3146 * ada-valprint.c (print_optional_low_bound): Handle boolean case
3148 * NEWS: Note support boolean types.
3150 2008-08-18 Pedro Alves <pedro@codesourcery.com>
3152 * bsd-uthread.c (bsd_uthread_close): New.
3153 (bsd_uthread_deactivate): Don't cleanup here, just unpush the
3155 (bsd_uthread_solib_loaded): Fix typo.
3156 (bsd_uthread_target): Register bsd_uthread_close.
3158 2008-08-18 Pedro Alves <pedro@codesourcery.com>
3160 * corelow.c (core_open): Assume there was no upper layer left
3161 behind from a previous inferior.
3162 * target.c (pop_all_targets): Rename to ...
3163 (pop_all_targets_above): ... this. Add a target stratum
3164 parameter. Use it instead of hardcoding the dummy_stratum.
3165 (pop_all_targets): New, defer to pop_all_targets_above.
3166 (target_preopen): Use pop_all_targets_above.
3167 * target.h (pop_all_targets_above): Declare.
3169 2008-08-18 Pedro Alves <pedro@codesourcery.com>
3171 * gdbthread.h (thread_change_ptid): Declare.
3172 * infrun.c (infrun_thread_ptid_changed): New.
3173 (_initialize_infrun): Attach infrun_thread_ptid_changed to the
3174 thread_ptid_changed observer.
3175 * regcache.c (regcache_thread_ptid_changed): New.
3176 (_initialize_regcache): Attach regcache_thread_ptid_changed to the
3177 thread_ptid_changed observer.
3178 * thread.c (thread_change_ptid): New.
3180 2008-08-18 Tom Tromey <tromey@redhat.com>
3182 * symfile.c (reread_symbols): Update.
3183 * solib-sunos.c (allocate_rt_common_objfile): Update.
3184 * objfiles.c (allocate_objfile): Update.
3185 * objfiles.h (struct objfile) <md, mmfd, deprecated_obj_private>:
3188 2008-08-18 Tom Tromey <tromey@redhat.com>
3190 * gdbtypes.c (copy_type_recursive): Allocate 'stored' on objfile's
3193 2008-08-18 Daniel Jacobowitz <dan@codesourcery.com>
3195 * rs6000-tdep.c (struct rs6000_framedata): Add gpr_mask, used_bl,
3197 (rs6000_in_function_epilogue_p): Check for bctr.
3198 (skip_prologue): Initialize lr_register. Set lr_reg to a register
3199 number. Set gpr_mask and used_bl. Continue scanning while some
3200 expected registers are not saved. Set lr_register if LR is not
3202 (rs6000_frame_cache): Handle gpr_mask and lr_register.
3204 2008-08-17 Tom Tromey <tromey@redhat.com>
3207 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): New macros.
3208 (ep_find_event_name_end): Remove.
3209 (catch_fork_temporary, catch_vfork_temporary,
3210 catch_fork_permanent, catch_vfork_permanent): New constants.
3211 (catch_vfork, catch_fork): Remove.
3212 (catch_fork_command_1): Add 'command' argument. Remove
3213 'fork_kind' and 'tempflag'. Handle NULL 'arg'. Update switch for
3215 (catch_exec_command_1): Add 'command' argument; remove
3216 'tempflag'. Handle NULL 'arg'.
3217 (catch_load_command_1): Likewise.
3218 (catch_unload_command_1): Likewise.
3219 (catch_ada_exception_command): Likewise.
3220 (catch_assert_command): Likewise.
3221 (catch_catch_command): New function.
3222 (catch_throw_command): Likewise.
3223 (catch_command_1): Remove.
3224 (catch_command): Just call error.
3225 (tcatch_command): Likewise.
3226 (catch_cmdlist): New global.
3227 (tcatch_cmdlist): Likewise.
3228 (add_catch_command): New function.
3229 (_initialize_breakpoint): Create "catch" and "tcatch" as prefix
3230 commands. Create all catch sub-commands.
3232 2008-08-17 Pedro Alves <pedro@codesourcery.com>
3234 * gdbthread.h: Add comments.
3235 * stack.c (get_selected_block): Return 0 on an exited thread.
3236 * top.c (execute_command): Check for is_stopped, not !is_running.
3237 * event-top.c (command_handler): Likewise.
3239 2008-08-16 Pedro Alves <pedro@codesourcery.com>
3241 * mi/mi-main.c (mi_cmd_exec_next, mi_cmd_exec_next_instruction)
3242 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
3243 (mi_cmd_exec_finish): Remove "return".
3245 2008-08-16 Pedro Alves <pedro@codesourcery.com>
3247 * target.h (pop_all_targets): Declare.
3248 * target.c (pop_all_targets): New.
3249 * top.c (quit_target): Pop all targets instead of just closing the
3252 2008-08-16 Vladimir Prus <vladimir@codesourcery.com>
3253 Thiago Jung Bauermann <bauerman@br.ibm.com>
3255 * cli-script.c (read_next_line): Add parse_commands argument.
3256 (recurse_read_control_structure): Adapt to new read_next_line
3258 (read_command_lines): Add parse_commands argument.
3259 (define_command): Adapt to new read_command_lines signature.
3260 (document_command): Likewise.
3261 * breakpoint.c (commands_command): Likewise.
3262 * defs.h (read_command_lines): Adjust function prototype.
3264 2008-08-16 Paul N. Hilfinger <hilfinger@adacore.com>
3266 * ada-lang.c (pos_atr): Account for the possibility that the
3267 argument may be a reference.
3269 2008-08-16 Paul N. Hilfinger <hilfingr@adacore.com>
3271 * xcoffread.c (scan_xcoff_symtab): Do not include global symbols
3272 ('F' format) for @FIX names generated by the loader, retaining only
3273 the minimal symbols (and no partial symbol tables) for these names.
3274 Fixes warning messages about symbols that are found in partial
3275 symbol tables, but not full symbol tables.
3277 2008-08-16 Pedro Alves <pedro@codesourcery.com>
3279 * infrun.c (fetch_inferior_event): Only call normal_stop if not
3282 2008-08-15 Luis Machado <luisgpm@br.ibm.com>
3284 * rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c".
3285 Include "features/rs6000/powerpc-vsx64.c".
3286 (ppc_supply_vsxregset): New function.
3287 (ppc_collect_vsxregset): New function.
3288 (IS_VSX_PSEUDOREG): New macro.
3289 (IS_EFP_PSEUDOREG): New macro.
3290 (vsx_register_p): New function.
3291 (ppc_vsx_support_p): New function.
3292 (rs6000_builtin_type_vec128): New function.
3293 (rs6000_register_name): Hide upper halves of vs0~vs31. Return
3294 correct names for VSX registers and EFPR registers.
3295 (rs6000_pseudo_register_type): Return correct types for VSX
3297 (rs6000_pseudo_register_reggroup_p): Return correct group for
3298 VSX and EFPR registers.
3299 (ppc_pseudo_register_read): Rename to dfp_pseudo_register_read.
3300 (ppc_pseudo_register_write): Rename to dfp_pseudo_register_write.
3301 (vsx_pseudo_register_read): New function.
3302 (vsx_pseudo_register_write): New function.
3303 (efpr_pseudo_register_read): New function.
3304 (efpr_pseudo_register_write): New function.
3305 (rs6000_pseudo_register_read): Call new VSX and EFPR read functions.
3306 (rs6000_pseudo_register_write): Call new VSX and EFPR write functions.
3307 (rs6000_gdbarch_init): Declare have_vsx.
3308 Initialize new upper half VSX registers.
3309 Initialize VSX-related and EFPR-related pseudo-registers variables.
3310 Adjust the number of pseudo registers accordingly.
3312 * ppc-linux-nat.c: Define PTRACE_GETVSXREGS, PTRACE_SETVSXREGS
3314 (gdb_vsxregset_t): New type.
3315 (have_ptrace_getsetvsxregs): New variable.
3316 (fetch_vsx_register): New function.
3317 (fetch_register): Handle VSX registers.
3318 (fetch_vsx_registers): New function.
3319 (fetch_ppc_registers): Handle VSX registers.
3320 (store_ppc_registers): Handle VSX registers.
3321 (store_vsx_register): New function.
3322 (store_register): Handle VSX registers.
3323 (store_vsx_registers): New function.
3324 (ppc_linux_read_description): Handle VSX-enabled inferiors.
3325 (gdb_vsxregset_t): New type.
3326 (supply_vsxregset): New function.
3327 (fill_vsxregset): New function.
3329 * ppc-tdep.h (vsx_register_p): New prototype.
3330 (vsx_support_p): New prototype.
3331 (ppc_vsr0_regnum): New variable.
3332 (ppc_vsr0_upper_regnum): Likewise.
3333 (ppc_efpr0_regnum): Likewise.
3334 (ppc_builtin_type_vec128): New type.
3335 (ppc_num_vsrs): New constant.
3336 (ppc_num_vshrs): New constant.
3337 (ppc_num_efprs): Likewise.
3338 Define POWERPC_VEC_VSX PPC_VSR0_UPPER_REGNUM and PPC_VSR31_UPPER_REGNUM.
3339 (ppc_supply_vsxregset): New prototype.
3340 (ppc_collect_vsxregset): New prototype.
3342 * ppc-linux-tdep.c: Include "features/rs6000/powerpc-vsx32l.c"
3343 Include "features/rs6000/powerpc-vsx64l.c".
3344 (_initialize_ppc_linux_tdep): Initialize VSX-enabled targets.
3345 (ppc_linux_regset_sections): Add new ".reg-ppc-vsx" field.
3346 (ppc32_linux_vsxregset): New 32-bit VSX-enabled regset.
3347 (ppc_linux_regset_from_core_section): Handle VSX core section.
3348 (ppc_linux_core_read_description): Support VSX-enabled core files.
3350 * ppc-linux-tdep.h: Declare *tdesc_powerpc_vsx32l
3351 Declare tdesc_powerpc_vsx64l
3353 * corelow.c (get_core_register_section): Support VSX-enabled
3356 * features/rs6000/power-vsx.xml: New VSX descriptions.
3357 * features/rs6000/powerpc-vsx32.xml: New file.
3358 * features/rs6000/powerpc-vsx32l.xml: New file.
3359 * features/rs6000/powerpc-vsx64.xml: New file.
3360 * features/rs6000/powerpc-vsx64l.xml: New file.
3361 * features/rs6000/powerpc-vsx32.c: New file (generated).
3362 * features/rs6000/powerpc-vsx32l.c: New file (generated).
3363 * features/rs6000/powerpc-vsx64.c: New file (generated).
3364 * features/rs6000/powerpc-vsx64l.c: New file (generated).
3365 * features/Makefile: Updated with new descriptions.
3366 * regformats/rs6000/powerpc-vsx32l.dat: New file (generated).
3367 * regformats/rs6000/powerpc-vsx64l.dat: New file (generated).
3369 2008-08-15 Vladimir Prus <vladimir@codesourcery.com>
3371 * ia64-linux.nat (_initialize_ia64_linux_nat): Don't
3372 call linux_target twice.
3374 2008-08-14 Aleksandar Ristovski <aristovski@qnx.com>
3376 * nto-tdep.c (lm_info): Updated struct lm_info definition from
3378 (LM_ADDR): Use l_addr if available; if not, use link map and set
3381 2008-08-14 Tom Tromey <tromey@redhat.com>
3383 * macrocmd.c (macro_define_command): Check for NULL argument.
3384 (macro_undef_command): Likewise.
3386 2008-08-14 Pedro Alves <pedro@codesourcery.com>
3388 * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call.
3390 2008-08-13 Pedro Alves <pedro@codesourcery.com>
3392 * breakpoint.c (always_inserted_auto, always_inserted_on)
3393 (always_inserted_off, always_inserted_enums): New.
3394 (always_inserted_mode): Change type to char* and point to
3395 always_inserted_auto.
3396 (show_always_inserted_mode): In auto mode, also show the current
3397 effect of the option.
3398 (breakpoints_always_inserted_mode): Adjust for the new auto mode.
3399 (_initialize_breakpoint): Make the "set breakpoints
3400 always-inserted" command an enum command. Extend help to describe
3403 2008-08-13 Ulrich Weigand <uweigand@de.ibm.com>
3405 * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
3406 query valid) bit. Ignore bits outside the condition field.
3407 (info_spu_proxydma_command): Ignore bits outside the field.
3409 2008-08-12 Michael Snyder <msnyder@vmware.com>
3411 * MAINTAINERS: Update my email address.
3413 2008-08-12 Ulrich Weigand <uweigand@de.ibm.com>
3415 * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP.
3417 2008-08-12 Pedro Alves <pedro@codesourcery.com>
3419 Add no-ack mode to the remote protocol --- optionally stop ACKing
3420 packets and responses when we have a reliable communication
3423 Based on Apple's GDB, by Jason Molenda <jmolenda@apple.com>
3425 * remote.c (struct remote_state): Add noack_mode field.
3426 (PACKET_QStartNoAckMode): New.
3427 (remote_start_remote): Don't any outstanding packet here.
3428 (remote_open_1): Clear noack_mode. Ack any outstanding packet
3429 here. Activate noack mode if requested.
3430 (remote_protocol_features): Add QStartNoAckMode.
3432 (putpkt_binary): Don't send ack in noack mode.
3433 (read_frame): Don't recompute the checksum in noack mode.
3434 (getpkt_sane): Skip sending ack if in noack mode.
3435 (_initialize_remote): Add set/show remote noack mode.
3436 * NEWS: Note the new features.
3438 2008-08-11 Kevin Buettner <kevinb@redhat.com>
3440 * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK):
3442 (rs6000_skip_main_prologue): New function.
3443 (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue.
3445 2008-08-11 Sandra Loosemore <sandra@codesourcery.com>
3447 * MAINTAINERS (Write After Approval): Add self.
3449 2008-08-11 Stan Shebs <stan@codesourcery.com>
3452 * disasm.c (gdb_disassemble_info): Set endian_code.
3453 * gdbarch.sh (gdbarch_info): New field byte_order_for_code.
3454 * gdbarch.h, gdbarch.c: Regenerate.
3455 * arch-utils.c (initialize_current_architecture): Set the
3456 default byte_order_for_code.
3457 (gdbarch_info_init): Ditto.
3458 (gdbarch_info_fill): Ditto.
3459 * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros.
3460 (thumb_analyze_prologue): Swap halfword if code endianness is
3461 different from general endianness.
3462 (arm_skip_prologue): Similarly.
3463 (arm_scan_prologue): Ditto.
3464 (thumb_get_next_pc): Ditto.
3465 (arm_get_next_pc): Ditto.
3466 (arm_gdbarch_init): Set byte_order_for_code from BE8 flag,
3467 choose correct endianness for breakpoints.
3469 2008-08-10 Pedro Alves <pedro@codesourcery.com>
3471 * bsd-kvm.c: Include "gdbthread.h".
3472 (bsd_kvm_ptid): New.
3473 (bsd_kvm_open): Add a main thread.
3474 (bsd_kvm_close): Delete it.
3475 (bsd_kvm_thread_alive): New.
3476 (bsd_kvm_pid_to_str): New.
3477 (bsd_kvm_add_target): Register bsd_kvm_thread_alive and
3479 (bsd_kvm_add_target): Initialize bsd_kvm_ptid.
3481 2008-08-09 Pedro Alves <pedro@codesourcery.com>
3483 * buildsym.c (start_subfile): Properly cast sentinel in concat
3485 * cp-name-parser.y: Include "config.h".
3486 * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in
3488 * gdb_select.h: Include sys/time.h if sys/select.h is not
3491 2008-08-09 Pedro Alves <pedro@codesourcery.com>
3493 * go32-nat.c: Include "gdbthread.h".
3494 (go32_stop, go32_kill_inferior): Delete the main thread.
3495 (go32_create_inferior): Add it.
3496 (go32_thread_alive, go32_pid_to_str): New.
3497 (init_go32_ops): Register go32_thread_alive and go32_pid_to_str.
3499 2008-08-09 Pedro Alves <pedro@codesourcery.com>
3501 * go32-nat.c (fetch_register, store_register): Pass the regcache
3502 gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p.
3503 (go32_xfer_memory): Change type of myaddr parameter to gdb_byte.
3504 (struct seg_descr, struct seg_descr): pack the whole struct
3505 instead of each member individually.
3507 2008-08-09 Andreas Schwab <schwab@suse.de>
3509 * python/python.c (_initialize_python): Use unabbreviated commands
3512 2008-08-09 Daniel Jacobowitz <dan@codesourcery.com>
3514 * Makefile.in (stamp-h): Also create .deps.
3516 2008-08-09 Tom Tromey <tromey@redhat.com>
3518 * Makefile.in (generated_files): Add GNULIB_H.
3520 2008-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3522 * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set
3523 DT_HP_DEBUG_PRIVATE. Add warning if DT_HP_DEBUG_PRIVATE is not set.
3525 (pa64_current_sos): Remove map private warning warning.
3526 * solib-som.c: Include string.h and sys/utsname.h.
3527 (get_hpux_major_release): New function.
3528 (som_solib_create_inferior_hook): Read dynamic linker header. Warn
3529 about shared library private mapping on HP-UX 11 and later. Only force
3530 private mapping of shared libraries on HP-UX 10 and earlier.
3531 (link_map_start): Delete warning.
3533 2008-08-09 Xuepeng Guo <xuepeng.guo@intel.com>
3534 H.J. Lu <hongjiu.lu@intel.com>
3535 Mark Kettenis <kettenis@gnu.org>
3537 * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg.
3538 (amd64_init_frame_cache): Initialize saved_sp_reg.
3539 (amd64_analyze_stack_align): New.
3540 (amd64_analyze_prologue): Call it.
3541 (amd64_frame_cache): Use saved_sp_reg if it is invalid. Don't set
3542 %rip to 8 when halfway aligning the stack.
3544 * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to
3547 * i386-tdep.c (i386_frame_cache): Remove stack_align. Add
3549 (i386_alloc_frame_cache): Remove stack_align. Initialize
3551 (i386_analyze_stack_align): Rewrite.
3552 (i386_frame_cache): Use saved_sp_reg if it is valid.
3554 2008-08-09 Ulrich Weigand <uweigand@de.ibm.com>
3556 * target.c: Include "solib.h".
3557 (target_pre_inferior): Call no_shared_libraries.
3558 * infcmd.c (run_command_1): Do not call objfile_purge_solibs
3560 (attach_command): Do not call clear_solib.
3562 2008-08-09 Mark Kettenis <kettenis@gnu.org>
3564 * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
3567 2008-08-08 Tom Tromey <tromey@redhat.com>
3569 * Makefile.in (python.o): Remove dependencies. Use COMPILE and
3571 (python-utils.o): Likewise.
3573 2008-08-08 Andreas Schwab <schwab@suse.de>
3575 * corefile.c (_initialize_core): Remove spurious paren from set
3576 gnutarget doc string.
3578 2008-08-08 Luis Machado <luisgpm@br.ibm.com>
3580 * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h".
3581 Define PPC_FEATURE_BOOKE.
3582 (ppc_linux_get_hwcap): New function.
3583 (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440
3584 4-bytes alignment restrictions.
3585 (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific
3586 positioning of the read/write flags.
3587 (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440
3590 2008-08-08 Pedro Alves <pedro@codesourcery.com>
3592 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
3594 * win32-nat.c (win32_add_thread): Change thread argument type to
3596 (win32_add_thread): Adjust.
3597 (win32_delete_thread): Change thread argument type to ptid_t.
3599 (win32_fetch_inferior_registers, win32_store_inferior_registers)
3600 (win32_resume, get_win32_debug_event, get_win32_debug_event)
3601 (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust.
3602 (init_win32_ops): Put to_magic last.
3603 (win32_win32_thread_alive): Adjust.
3605 2008-08-08 Pedro Alves <pedro@codesourcery.com>
3607 * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New.
3608 (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str.
3610 2008-08-08 Pedro Alves <pedro@codesourcery.com>
3612 * remote-m32r-sdi.c: Include "gdbthread.h".
3613 (remote_m32r_ptid): New.
3614 (m32r_close): Delete the main thread.
3615 (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the
3617 (m32r_kill, m32r_load, sdireset_command): Delete the main thread.
3618 (_initialize_remote_m32r): Initialize remote_m32r_ptid.
3620 2008-08-07 Tom Tromey <tromey@redhat.com>
3621 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3623 * aclocal.m4, configure: Rebuild.
3624 * configure.in: Call ZW_CREATE_DEPDIR,
3625 ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
3626 (MAKE, GMAKE): New substs.
3627 * acinclude.m4: Include depstand.m4.
3628 * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
3629 COMPILE, POSTCOMPILE, depcomp): New variables.
3630 Remove all _h variables.
3631 Remove many .o targets.
3632 ($(srcdir)/copying.c): avoid backslash-newline after comment
3633 sign (@maintainer_mode_true@).
3634 (HFILES_NO_SRCDIR): Regenerate.
3635 (generated_files): New variable.
3636 (all_gdbtk_cflags): Likewise.
3638 (init.o, version.o, copying.o): Remove.
3639 (distclean): Remove DEPDIR.
3640 (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
3641 printcmd.o, procfs.o, v850ice.o): Rewrite.
3642 (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
3643 cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
3644 (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
3645 gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
3646 gdbtk-wrapper.o): Likewise.
3647 (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
3648 mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
3649 mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
3650 mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
3651 tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
3652 tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
3653 tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
3654 tui-wingeneral.o, tui-winsource.o): Likewise.
3655 (all_object_files): New variable.
3656 ($(all_object_files)): New target.
3657 Include dependency files, when using GNU Make.
3659 2008-08-07 Ulrich Weigand <uweigand@de.ibm.com>
3661 * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with
3662 the valid bit set. Ensure display order respects partial
3663 order defined by dependency bits.
3665 2008-08-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3667 * solib-pa64.c (read_dld_descriptor): Return zero if load map is not
3670 2008-08-06 Mark Kettenis <kettenis@gnu.org>
3672 * i386obsd-nat.c (i386obsd_supply_pcb): Adjust for changes in
3675 2008-08-06 Vladimir Prus <vladimir@codesourcery.com>
3676 Tom Tromey <tromey@redhat.com>
3677 Thiago Jung Bauermann <bauerman@br.ibm.com>
3678 Doug Evans <dje@google.com>
3680 * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS,
3681 SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS,
3682 PYTHON_CFLAGS): New.
3683 (python_h, python_internal_h): New.
3684 (cli-script.o): Depend on python.h
3685 (python.o, python-utils.o): New.
3686 * cli/cli-script.c (print_command_lines): Handle python_control.
3687 (execute_control_command): Handle python_control.
3688 (execute_control_command_untraced): New function.
3689 (while_command): Call execute_control_command_untraced.
3690 (if_command): Likewise.
3691 (get_command_line): Remove static attribute.
3692 (read_next_line): Handle "python".
3693 (recurse_read_control_structure): Handle python_control.
3694 (read_command_lines): Handle python_control.
3696 * cli/cli-script.h (get_command_line): Add prototype.
3697 (execute_control_command_untraced): Likewise.
3698 * configure.ac: Add --with-python.
3699 * defs.h (enum command_control_type) <python_control>: New
3701 * python/python-internal.h: New file.
3702 * python/python.c: New file.
3703 * python/python.h: New file.
3704 * python/python-utils.c: New file.
3705 * NEWS: Mention Python scripting support and its new commands.
3707 2008-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3709 * spu-tdep.c (spu_gdbarch_init): Call set_gdbarch_frame_red_zone_size.
3711 2008-08-06 Phil Muldoon <pmuldoon@redhat.com>
3713 * MAINTAINERS (Write After Approval): Add self.
3715 2008-08-06 Phil Muldoon <pmuldoon@redhat.com>
3717 * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled.
3718 (insert_breakpoint_locations): Likewise.
3720 2008-08-05 Phil Muldoon <pmuldoon@redhat.com>
3722 * breakpoint.c (create_longjmp_breakpoint): Remove unused struct
3724 (set_longjmp_breakpoint): Likewise.
3726 2008-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3729 * solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are
3732 2008-08-05 Tom Tromey <tromey@redhat.com>
3734 * bcache.c (deprecated_bcache_added): Initialize obstack.
3735 (bcache_xmalloc): Don't initialize obstack.
3736 (bcache_xfree): Conditionally free obstack.
3737 (bcache_memory_used): Update.
3739 2008-08-05 Tom Tromey <tromey@redhat.com>
3741 * symfile.c (add_psymbol_to_bcache): Return a const pointer. Use
3743 (append_psymbol_to_list): Accept a const pointer.
3744 (add_psymbol_to_list): Fix const correctness.
3745 * bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove.
3746 (bcache_full): Declare.
3747 * bcache.c (bcache_data, deprecated_bcache): Remove.
3748 (bcache): Use bcache_full.
3749 (bcache_full): Rename from deprecated_bcache_added. Change return
3752 2008-08-04 Stan Shebs <stan@codesourcery.com>
3754 * solib-svr4.c (BKPT_AT_SYMBOL): Remove, always defined.
3755 (bkpt_names): Remove SOLIB_BKPT_NAME, never defined.
3756 (enable_break): Remove test of BKPT_AT_SYMBOL.
3758 2008-08-02 Keith Seitz <keiths@redhat.com>
3760 * acinclude.m4: Include ../config/tcl.m4 to pick up
3761 standard Tcl configury bits.
3762 Remove all Tcl, Tk, Itcl, Itk, etc definitions.
3763 * configure.ac: Don't check if ../itcl exists when building
3764 gdbtk. It could be installed.
3765 Rewrite gdbtk configury to allow for using system-supplied
3766 Tcl and Tk. Gdbtk no longer requires build-time access to
3768 * Makefile.in: Remove everything related to itcl and itk.
3769 Rewrite the Tcl bits for gdbtk to correspond to rewrite of
3771 Remove v850ice.o build rule.
3772 (ALL_TCL_CFLAGS): New convenience defintion. Change all
3773 gdbtk sources to use it.
3774 * configure: Regenerate.
3776 2008-07-31 Stan Shebs <stan@codesourcery.com>
3778 * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE.
3780 2008-07-30 Stan Shebs <stan@codesourcery.com>
3782 * objfiles.c (TARGET_KEEP_SECTION): Remove.
3783 (add_to_objfile_sections): Remove use.
3785 2008-07-29 Tom Tromey <tromey@redhat.com>
3787 * cli/cli-decode.c (lookup_cmd_1): Use memcpy.
3788 (lookup_cmd_composition): Likewise.
3790 2008-07-29 Tom Tromey <tromey@redhat.com>
3792 * cli/cli-cmds.c (edit_command): Remove unused variables. Delete
3793 dead code. Fix indentation.
3795 2008-07-29 Stan Shebs <stan@codesourcery.com>
3797 * main.c (captured_main): Remove long-unused #if 0 blocks.
3799 2008-07-28 Tom Tromey <tromey@redhat.com>
3801 * annotate.h (deprecated_annotate_starting_hook): Remove.
3802 (deprecated_annotate_stopped_hook): Remove.
3803 (deprecated_annotate_exited_hook): Remove.
3804 * Makefile.in (annotate.o): Depend on observer_h.
3805 * top.c (deprecated_delete_breakpoint_hook): Remove.
3806 (deprecated_create_breakpoint_hook): Likewise.
3807 (deprecated_modify_breakpoint_hook): Likewise.
3808 * interps.c (clear_interpreter_hooks): Update for removed hooks.
3809 * breakpoint.c (mention): Don't call removed hook.
3810 (delete_breakpoint): Likewise.
3811 (disable_breakpoint): Likewise.
3812 (do_enable_breakpoint): Likewise.
3813 * annotate.c: Include observer.h.
3814 (breakpoint_changed): Change type of argument.
3815 (_initialize_annotate): Register observers.
3816 (deprecated_annotate_starting_hook): Remove.
3817 (deprecated_annotate_stopped_hook): Remove.
3818 (deprecated_annotate_exited_hook): Remove.
3819 (annotate_starting): Update for hook removal.
3820 (annotate_stopped): Likewise.
3821 (annotate_exited): Likewise.
3822 * defs.h (deprecated_delete_breakpoint_hook): Remove.
3823 (deprecated_create_breakpoint_hook): Likewise.
3824 (deprecated_modify_breakpoint_hook): Likewise.
3826 2008-07-28 Tom Tromey <tromey@redhat.com>
3828 * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.
3830 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
3832 * configure.ac: Check for the GNU/Linux ptrace signature.
3833 * configure: Regenerated.
3835 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
3837 * linux-nat.c (resume_callback): Add more debugging output.
3838 (linux_nat_has_pending_sigint): New function, based on
3839 linux_nat_has_pending.
3840 (set_ignore_sigint, maybe_clear_ignore_sigint): New functions.
3841 (stop_wait_callback): Remove flush_mask handling. Honor
3842 ignore_sigint. Call maybe_clear_ignore_sigint. Pass NULL
3844 (linux_nat_has_pending, flush_callback): Remove.
3845 (linux_nat_filter_event): Check for ignore_sigint.
3846 (linux_nat_wait): Remove flush_mask support and call to
3847 flush_callback. Use set_ignore_sigint and maybe_clear_ignore_sigint.
3848 * linux-nat.h (struct lwp_info): Add ignore_sigint field.
3850 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
3852 * linux-nat.c (count_events_callback, select_event_lwp_callback): Only
3853 report events from resumed threads.
3855 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
3857 * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function.
3858 (mips_linux_init_abi): Set tdep->syscall_next_pc.
3859 * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to
3861 (mips32_next_pc): Handle the syscall instruction.
3862 * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New,
3863 from mips-tdep.c. Add syscall_next_pc to gdbarch_tdep.
3865 2008-07-26 Tom Tromey <tromey@redhat.com>
3868 * valops.c (value_struct_elt): Treat function-valued field as a
3871 2008-07-26 Tom Tromey <tromey@redhat.com>
3874 * macroexp.c (get_punctuator) <punctuators>: Rearrange to put
3875 longer tokens first.
3877 2008-07-26 Vladimir Prus <vladimir@codesourcery.com>
3880 * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok)
3881 (get_cmd_async_ok): Remove.
3882 * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove.
3883 * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok.
3884 * infcmd.c (_initialize_infcmd): Likewise.
3885 * thread.c (_initialize_thread): Likewise.
3887 2008-07-25 Joseph Myers <joseph@codesourcery.com>
3889 * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing
3890 128-bit long doubles in even-odd pairs of FPRs. Do not
3891 right-align float arguments for big-endian.
3892 (mips_n32n64_return_value): Apply return value convention for
3893 structs containing one or two floating-point values to soft-float
3894 as well as hard-float. Handle 128-bit long doubles in such
3896 (mips_o32_push_dummy_call): Only skip one integer register for a
3897 float argument passed in an FPR.
3899 2008-07-25 Tom Tromey <tromey@redhat.com>
3901 * tui/tui-hooks.c: Include observer.h.
3902 (tui_event_default, tui_old_event_hooks, tui_event_hooks):
3904 (tui_bp_created_observer, tui_bp_deleted_observer,
3905 tui_bp_modified_observer): New globals.
3906 (tui_install_hooks): Use observers, not events.
3907 (tui_remove_hooks): Likewise.
3908 * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h.
3909 (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New
3911 (breakpoint_notify): Check mi_can_breakpoint_notify.
3912 (breakpoint_hooks): Remove.
3913 (mi_cmd_break_insert): Attach observers. Don't use events.
3914 * tracepoint.c: Include observer.h, not gdb-events.h.
3915 (tracepoint_operation, trace_pass_command): Notify observer.
3916 * interps.c: Don't include gdb-events.h.
3917 (clear_interpreter_hooks): Don't call clear_gdb_event_hooks.
3918 * gdbarch.c: Rebuild.
3919 * gdbarch.sh: Emit include for observer.h, not gdb-events.h.
3920 (deprecated_current_gdbarch_select_hack): Notify observer.
3921 * breakpoint.h: Don't include gdb-events.h.
3922 * breakpoint.c: Don't include gdb-events.h.
3923 (condition_command): Notify observer.
3924 (commands_command): Likewise.
3925 (commands_from_control_command): Likewise.
3926 (mention, delete_breakpoint, set_ignore_count): Likewise.
3927 (disable_breakpoint, do_enable_breakpoint): Likewise.
3928 * Makefile.in (gdb_events_h): Remove.
3929 (breakpoint_h): Update.
3930 (COMMON_OBS): Remove gdb-events.o.
3931 (gdb-events.o): Remove.
3932 (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o,
3933 gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update.
3934 * gdb-events.c: Remove.
3935 * gdb-events.h: Remove.
3936 * gdb-events.sh: Remove.
3938 2008-07-24 Pedro Alves <pedro@codesourcery.com>
3940 * remote.c (remote_threads_extra_info): Don't query the remote
3941 server about info on the internally added main thread.
3943 2008-07-24 Aleksandar Ristovski <aristovski@qnx.com>
3945 * nto-procfs.c (procfs_attach): Populate initial thread list.
3946 (procfs_wait): Return new pid, built from the inferior status.
3948 2008-07-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
3950 * configure.ac (CONFIG_INITS): Delete long obsoleted variable.
3951 * configure: Regenerate.
3953 2008-07-23 Aleksandar Ristovski <aristovski@qnx.com>
3955 * nto-procfs.c (procfs_xfer_memory): Changed signature.
3956 (procfs_resume): Workaround for dereferencing type-punned pointer
3958 * nto-tdep.c (nto_parse_redirection): Change signature to be const
3960 * nto-tdep.h (nto_parse_redirection): Likewise.
3962 2008-07-21 Stan Shebs <stan@codesourcery.com>
3964 Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.
3965 * gdbarch.sh: Adjust comment to refer to
3966 in_solib_dynsym_resolve_code().
3967 * gdbarch.h, gdbarch.c: Update.
3968 * solib-osf.c: Ditto.
3970 (handle_inferior_event): Use in_solib_dynsym_resolve_code
3972 * config/mips/nm-irix5.h: Remove undef of
3973 IN_SOLIB_DYNSYM_RESOLVE_CODE.
3975 2008-07-21 Tom Tromey <tromey@redhat.com>
3977 * symfile.c (reread_symbols): Don't pass argument to observer.
3978 * exec.c (exec_file_attach): Don't pass argument to observer.
3979 * ada-lang.c (ada_executable_changed_observer): Remove argument.
3980 * symtab.c (symtab_observer_executable_changed): Remove argument.
3981 * observer.sh: Handle functions with no arguments.
3983 2008-07-20 Sergei Poselenov <sposelenov@emcraft.com>
3984 Chris Demetriou <cgd@google.com>
3986 * elfread.c (elf_symfile_segments): Fix the check that each loadable
3987 section fits within an ELF segment to handle ELF segments that hit
3988 the end of the address space.
3990 2008-07-20 Chris Demetriou <cgd@google.com>
3992 * MAINTAINERS (Write After Approval): Add self.
3994 2008-07-18 Tom Tromey <tromey@redhat.com>
3997 * NEWS: Add entry for macro commands.
3998 * Makefile.in (macrocmd.o): Add gdb_string.h.
3999 * macroscope.h (user_macro_scope): Declare.
4000 (default_macro_scope): Update documentation.
4001 (macro_user_macros): Declare.
4002 * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup.
4003 Use user_macro_scope.
4004 (null_macro_lookup): Remove.
4005 * macrotab.h (macro_callback_fn): Declare.
4006 (macro_for_each): Likewise.
4007 (macro_allow_redefinitions): Likewise.
4008 * macrotab.c (foreach_macro): New function
4009 (macro_for_each): Likewise.
4010 (struct macro_table) <redef_ok>: New field.
4011 (macro_allow_redefinitions): New function.
4012 (new_macro_table): Update.
4013 (macro_define_function): Likewise.
4014 (macro_define_object): Likewise.
4015 * macroscope.c (user_macro_scope): New function.
4016 (default_macro_scope): Use it.
4017 (macro_user_macros): New global.
4018 (standard_macro_lookup): Look in macro_user_macros.
4019 (_initialize_macroscope): New function.
4020 * macroexp.h (macro_is_whitespace, macro_is_digit,
4021 macro_is_identifier_nondigit): Declare.
4022 * macroexp.c (macro_is_whitespace): Rename. No longer static.
4023 (macro_is_digit): Likewise.
4024 (macro_is_identifier_nondigit): Likewise.
4025 (get_identifier): Update.
4026 (get_pp_number): Likewise.
4027 (get_token): Likewise.
4028 * macrocmd.c (skip_ws): New function.
4029 (extract_identifier): Likewise.
4030 (free_macro_definition_ptr): Likewise.
4031 (user_macros): Remove.
4032 (macro_define_command): Implement.
4033 (_initialize_macrocmd): Update.
4034 (macro_undef_command): Implement.
4035 (print_one_macro): New function.
4036 (macro_list_command): Implement.
4038 2008-07-18 Joseph Myers <joseph@codesourcery.com>
4040 * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl
4042 * configure: Regenerate.
4044 2008-07-17 Paul Pluzhnikov <ppluzhnikov@google.com>
4046 * auxv.c (fprint_target_auxv): Stop at AT_NULL.
4048 2008-07-15 Andreas Schwab <schwab@suse.de>
4050 * valops.c (value_cast_pointers): Follow typedefs when checking
4053 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4055 * block.c (block_function): Renamed to ...
4056 (block_linkage_function): ... this. All callers changed.
4057 * block.h (block_function): Renamed to ...
4058 (block_linkage_function): ... this.
4060 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4062 * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned.
4064 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4066 * frame.c (frame_sp_unwind): Delete.
4067 (get_frame_sp): Do not use it.
4068 * frame.h (frame_sp_unwind): Delete prototype.
4070 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4072 * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc.
4074 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4076 * dwarf2-frame.c (dwarf2_frame_cache): Update comment.
4077 * frame.c (frame_unwind_address_in_block): Delete.
4078 (get_frame_address_in_block): Do not use it. Check the type
4079 of the next frame first.
4080 (frame_cleanup_after_sniffer): Update comment.
4081 * frame.h (frame_unwind_address_in_block): Delete prototype.
4082 * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment.
4084 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4086 * frame.c (frame_func_unwind): Delete.
4087 (get_frame_func): Do not use it.
4088 * frame.h (frame_func_unwind): Delete prototype.
4089 * hppa-tdep.c (hppa_frame_cache): Update comment.
4090 * rs6000-tdep.c (rs6000_frame_cache): Update comment.
4092 2008-07-14 Stan Shebs <stan@codesourcery.com>
4094 * remote-sim.c (init_gdbsim_ops): Remove
4095 TARGET_REDEFINE_DEFAULT_OPS.
4097 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4099 * findvar.c (read_var_value): Remove unused variable.
4101 2008-07-15 Luis Machado <luisgpm@br.ibm.com>
4103 * infrun.c (handle_inferior_event): Tag threads as stopped
4104 before inserting breakpoints.
4106 2008-07-15 Hui Zhu <teawater@gmail.com>
4108 * MAINTAINERS: Added myself to section Write After Approval.
4110 2008-07-14 Paul Pluzhnikov <ppluzhnikov@google.com>
4113 * cp-abi.c (value_virtual_fn_field): Handle invalid pointers.
4115 2008-07-14 Pedro Alves <pedro@codesourcery.com>
4117 * i386-dicos-tdep.c (i386_dicos_frame_align): Delete.
4118 (i386_dicos_push_dummy_code): New.
4119 (i386_dicos_init_abi): Don't register i386_dicos_frame_align.
4120 Register i386_dicos_push_dummy_code.
4122 2008-07-14 Markus Deuling <deuling@de.ibm.com>
4124 * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter.
4125 (mips_n32n64_push_dummy_call, mips_o64_return_value)
4126 (mips_eabi_push_dummy_call): Update call to fp_register_arg_p.
4128 (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch.
4129 (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command)
4130 (mips_n32n64_fp_arg_chunk_p): Update caller.
4132 (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter.
4133 (mips_n32n64_push_dummy_call): Update caller.
4135 (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace
4137 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4138 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller.
4141 (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace
4143 (mips_eabi_push_dummy_call, mips_o32_push_dummy_call)
4144 (mips_o64_push_dummy_call): Update caller.
4146 (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch.
4147 (fp_register_arg_p, mips_dump_tdep): Update caller.
4149 (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch.
4150 (mips16_scan_prologue, mips32_scan_prologue): Update caller.
4152 (reset_saved_regs): Make static. Add gdbarch as parameter. Replace
4154 (mips32_scan_prologue): Update caller.
4156 (heuristic_proc_start): Add gdbarch as parameter. Replace
4158 (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller.
4160 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
4161 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
4162 the current architecture. Update call to getregs_supplies.
4163 (getregs_supplies): Add gdbarch as parameter and replace
4166 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to
4167 get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and
4168 NBSD_MIPS_JB_ELEMENT_SIZE.
4169 (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and
4170 replace current_gdbarch.
4172 * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace
4174 (mips_fetch_registers, mips_store_registers): Update call
4176 (mips_load): Use get_regcache_arch to get at the current_architecture
4177 and replace current_gdbarch.
4179 2008-07-13 Pedro Alves <pedro@codesourcery.com>
4181 * thread.c (restore_selected_frame): On fail to restore, select
4182 the innermost frame, and don't crash when warning the user.
4184 2008-07-13 Hui Zhu <teawater@gmail.com>
4186 * symtab.c (expand_line_sal): Fix a memory leak.
4188 2008-07-13 Pedro Alves <pedro@codesourcery.com>
4190 * utils.c (struct continuation): Define as inheriting struct
4192 (add_continuation, do_all_continuations)
4193 (discard_all_continuations, add_intermediate_continuation)
4194 (do_all_intermediate_continuations)
4195 (discard_all_intermediate_continuations): Adjust.
4197 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
4199 Skip varobj in running threads.
4200 * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's
4201 thread is not stopped, skip the varobj.
4202 * Makefile.in: Update dependencies.
4204 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
4206 Enable all commands while inferiour is running
4207 * mi/mi-main.c (mi_cmd_execute): Don't check if
4208 inferiour is executing.
4210 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
4212 Allow all CLI command even if target is executing.
4213 * gdb/top.c (execute_command_1): Don't check if the inferiour
4216 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
4218 * mi/mi-main.c (mi_cmd_execute): Remove unused variable.
4219 Fix printing of frame, when frame is wrong.
4221 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
4223 * spu-tdep.c (spu_frame_unwind_cache): Do not error if
4224 backchain is unreadable.
4226 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
4228 * spu-linux-nat.c: Include "gdbthread.h".
4229 (spu_child_post_startup_inferior): Register main thread.
4230 (spu_child_post_attach): Likewise.
4231 * Makefile.in (spu-linux-nat.o): Update dependencies.
4233 2008-07-12 Pedro Alves <pedro@codesourcery.com>
4235 Rewrite continuations internals on top of cleanups and plug
4236 continuation arguments leaks.
4238 * defs.h (struct continuation): Make it opaque.
4239 (add_continuation, add_intermediate_continuation): Drop the int
4240 argument of the continuation hook argument. Add
4241 continuation_free_args argument.
4242 (do_all_continuations, do_all_intermediate_continuations): Drop
4243 the error_p argument.
4245 * utils.c (add_continuation): Drop the int argument of the
4246 continuation hook argument. Add continuation_free_args argument.
4247 Reimplement on top of cleanups.
4248 (do_all_continuations): Drop error argument. Reimplement on top
4250 (discard_all_continuations): Reimplement on top of cleanups.
4251 (add_intermediate_continuation): Drop the int argument of the
4252 continuation hook argument. Add continuation_free_args argument.
4253 Reimplement on top of cleanups.
4254 (do_all_intermediate_continuations): Drop error argument.
4255 Reimplement on top of cleanups.
4256 (discard_all_intermediate_continuations): Reimplement on top of
4259 * breakpoint.c (until_break_command_continuation): Drop error
4260 argument. Add xfree as continuation argument deleter.
4262 * inf-loop.c (inferior_event_handler): On error, discard all
4263 continuations. Adjust to new do_all_intermediate_continuations
4264 and do_all_continuations interfaces.
4266 * infcmd.c (step_1_continuation): Drop error_p argument. Adjust.
4267 Pass xfree as continuation argument deleter.
4268 (finish_command_continuation): Drop error_p argument. Adjust.
4269 (finish_command_continuation_free_arg): New.
4270 (finish_command): Pass finish_command_continuation_free_arg as
4271 continuation argument deleter. Adjust to new do_all_continuations
4273 (attach_command_continuation): Drop error_p argument.
4274 (attach_command_continuation_free_args): New.
4275 (attach_command): Pass attach_command_continuation_free_args as
4276 continuation argument deleter.
4278 * interps.c (interp_set): Adjust to new do_all_continuations
4281 * event-top.c (stdin_event_handler): In error, also discard the
4282 intermediate continuations.
4284 2008-07-12 Pedro Alves <pedro@codesourcery.com>
4286 Replace struct continuation_args by void* and per command structs.
4288 * top.c (execute_command): Remove unused arg1 and arg2 locals.
4290 * breakpoint.c (struct until_break_command_continuation_args):
4292 (until_break_command_continuation): Take a void* instead of a
4293 continuations_arg. Adjust.
4294 (until_break_command): Adjust to use struct
4295 until_break_command_continuation_args instead of struct
4298 * infcmd.c (struct step_1_continuation_args): New.
4299 (step_1_continuation): Take a void* instead of a
4300 continuations_arg. Adjust to use struct step_1_continuation_args.
4301 (step_once): Adjust to use struct step_1_continuation_args.
4303 (struct finish_command_continuation_args): New.
4304 (finish_command_continuation): Take a void* instead of a
4305 continuations_arg. Adjust to use struct
4306 finish_command_continuation_args.
4307 (finish_command): Adjust to use struct
4308 finish_command_continuation_args.
4309 (struct attach_command_continuation_args): New.
4310 (attach_command_continuation): Take a void* instead of a
4311 continuations_arg. Adjust to use struct
4312 attach_command_continuation_args.
4313 (attach_command): Adjust to use struct
4314 attach_command_continuation_args.
4316 * defs.h (struct continuation_arg): Delete.
4317 (struct continuation): Replace the struct continuation_arg*
4318 parameter of continuation_hook by a void*. Replace "arg_list"
4319 member by a new "args" member with void* type.
4320 (add_continuation, add_intermediate_continuation): Replace struct
4321 continuation_arg type usages by void* usages.
4323 * utils.c (add_continuation, do_all_continuations)
4324 (add_intermediate_continuation)
4325 (do_all_intermediate_continuations): Replace struct
4326 continuation_arg type usages by void* usages. Pass "args" instead
4329 2008-07-12 Pedro Alves <pedro@codesourcery.com>
4331 * infrun.c (struct thread_stepping_state): Delete sal member.
4332 (init_thread_stepping_state): Add local sal. Use it instead of
4334 (handle_inferior_event): New local stop_pc_sal. Use it instead of
4336 (step_into_function): Add local stop_func_sal. Use it instead of
4339 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
4341 Implement -exec-continue/-exec-interrupt --all.
4342 * infcmd.c (continue_1): New, extracted from
4343 (continue_command): ...here.
4344 (interrupt_target_1): New, extracted from
4345 (interrupt_target_command): ...here.
4346 * inferior.h (continue_1, interrupt_target_1): New.
4347 * mi/mi-main.c (mi_cmd_exec_continue)
4348 (mi_cmd_exec_interrupt): Handle --all.
4350 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
4352 Implement --thread and --frame.
4353 * gdbthread.h (find_thread_id): Declare.
4354 * thread.c (find_thread_id): Make non-static.
4355 * mi/mi-main.c (mi_cmd_execute): Switch to the right
4356 thread and frame, if necessary.
4357 * mi/mi-parse.c (mi_parse): Handle --thread and --frame.
4358 * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
4360 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
4362 * infrun.c (resume): Discard cleanups on early exit path.
4364 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
4366 * infrun.c (normal_stop): For MI, report which threads
4369 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
4371 Report thread state in -thread-info output.
4372 * thread.c (print_thread_info): Add new field "state".
4374 2008-07-11 Pedro Alves <pedro@codesourcery.com>
4376 * infrun.c (handle_inferior_event): Also ignore a
4377 TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP.
4379 2008-07-11 Tom Tromey <tromey@redhat.com>
4381 * completer.c (complete_line_internal): New function, from
4382 complete_line. Add 'for_help' parameter.
4383 (complete_line): Use it.
4384 (command_completer): Move later. Rewrite.
4386 2008-07-11 Pedro Alves <pedro@codesourcery.com>
4388 * thread.c (thread_apply_command): Move making the cleanup out of
4391 2008-07-11 Pedro Alves <pedro@codesourcery.com>
4395 * thread.c (enum thread_state): New.
4396 (thread_state main_thread_running): Delete, in favor of...
4397 (thread_state main_thread_state): ... this. Update throughout.
4398 (clear_thread_inferior_resources): New, split from free_thread.
4399 (free_thread): Call clear_thread_inferior_resources.
4400 (init_thread_list): Set main thread to stopped state.
4401 (add_thread_silent): Take care of PTID reuses.
4402 (delete_thread): If deleting inferior_ptid or a thread with
4403 refcount > 0, mark it as exited, but still keep it in the list.
4404 Only notify of thread exits, if we haven't done so yet.
4405 (iterate_over_threads): Make it safe to delete threads while
4406 iterating over them.
4407 (do_captured_list_thread_ids): Don't account for exited threads.
4408 (thread_alive): Check for the THREAD_EXITED state, and don't set
4409 ptid to -1 on exited threads.
4410 (set_running): Update to account for extra possible states.
4411 (is_thread_state): New.
4412 (is_stopped, is_exited): New.
4413 (is_running): Implement in terms of is_thread_state.
4414 (any_running): Update.
4415 (print_thread_info): Update. Account for exited threads. Don't
4416 warn about missed frame restoring here, its done in the cleanup.
4417 (switch_to_thread): Don't read from a thread that has gone.
4418 (restore_current_thread): In non-stop mode, do a full context
4420 (restore_selected_frame): Add a frame_level argument. Rewrite.
4421 (struct current_thread_cleanup): Add selected_frame_level and
4422 was_stopped members.
4423 (do_restore_current_thread_cleanup): Check if thread was stopped
4424 and still is, and if the target has registers, stack and memory
4425 before restoring the selected frame. Don't delete the cleanup
4427 (restore_current_thread_cleanup_dtor): New.
4428 (make_cleanup_restore_current_thread): Remove all arguments.
4430 (thread_apply_all_command): Update. Prune threads.
4431 (thread_apply_command): Update.
4432 (thread_command): Account for currently selected exited thread.
4433 (do_captured_thread_select): Check for a running thread. Prune
4435 (_initialize_thread): Make "info threads", "thread", "thread
4436 apply", and "thread apply all" appliable without a selected thread.
4437 * gdbthread.h (struct thread_info): Replace running_ by state_.
4439 (is_exited, is_stopped): Declare.
4440 (make_cleanup_restore_current_thread): Remove all arguments.
4441 * infrun.c: Include "event-top.h".
4442 (fetch_inferior_event): In non-stop mode, restore selected thread
4443 and frame after handling the event and running breakpoint
4444 commands. Display GDB prompt if needed.
4445 (normal_stop): In non-stop mode, don't print thread switching
4447 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
4448 (get_cmd_no_selected_thread_ok): New.
4449 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New.
4450 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
4452 * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as
4453 no-selected-thread ok.
4454 * top.c (execute_command): Check for non no-selected-thread-ok
4456 * linux-nat.c (struct saved_ptids, threads_to_delete)
4457 (record_dead_thread, prune_lwps): Delete.
4458 (exit_lwp): Unconditionally delete thread.
4459 (linux_nat_resume): Remove prune_lwps call.
4460 * infcmd.c (proceed_thread_callback): Check if !is_stopped instead
4461 of is_running. Adjust to make_cleanup_restore_current_thread
4463 * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the
4464 selected thread has exited.
4465 * inf-loop.c (inferior_event_handler): Don't display the prompt
4467 * varobj.c (c_value_of_root): Update.
4468 * defs.h (make_cleanup_dtor): Declare.
4469 * utils.c (make_cleanup_dtor): New.
4471 * Makefile.in (infrun.o): Depend on $(event_top_h).
4473 2008-07-11 Pedro Alves <pedro@codesourcery.com>
4475 Add "continue -a" and "interrupt -a" options for non-stop mode.
4477 * infcmd.c (proceed_thread_callback, do_context_switch_to): New.
4478 (continue_command): Add "-a" option.
4479 (interrupt_target_command): Add "-a" option.
4480 (_initialize_infcmd): Add extend help of continue and interrupt
4481 command to mention the new "-a" option. Mark "continue" async ok.
4483 2008-07-10 Doug Evans <dje@google.com>
4485 Add "set print symbol-loading on|off".
4486 * NEWS: Document new option.
4487 * symfile.h (print_symbol_loading): Declare.
4488 * symfile.c (print_symbol_loading): New global.
4489 (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols
4490 from ..." if print_symbol_loading.
4491 (_initialize_symfile): Add set/show print symbol-loading.
4492 * solib.c (solib_read_symbols): Only print "Loaded symbols for ..."
4493 if print_symbol_loading.
4495 2008-07-10 Pedro Alves <pedro@codesourcery.com>
4497 Non-stop linux native.
4499 * linux-nat.c (linux_test_for_tracefork): Block events while we're
4501 (get_pending_status): Implement non-stop mode.
4502 (linux_nat_detach): Stop threads before detaching.
4503 (linux_nat_resume): In non-stop mode, always resume only a single
4505 (linux_handle_extended_wait): On a clone event, in non-stop mode,
4506 add new lwp to GDB's thread table, and mark as running, executing
4507 and stopped appropriately.
4508 (linux_nat_filter_event): Don't assume there are other running
4509 threads when a thread exits.
4510 (linux_nat_wait): Mark the main thread as running and executing.
4511 In non-stop mode, don't stop all lwps.
4512 (linux_nat_kill): Stop lwps before killing them.
4513 (linux_nat_thread_alive): Use signal 0 to detect if a thread is
4515 (send_sigint_callback): New.
4516 (linux_nat_stop): New.
4517 (linux_nat_add_target): Set to_stop to linux_nat_stop.
4519 * linux-nat.h (thread_db_attach_lwp): Declare.
4521 * linux-thread-db.c (thread_get_info_callback): Check for new
4522 threads if we have none.
4523 (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the
4524 stopped lwp. Check for new threads if we have none.
4525 (thread_db_attach_lwp): New.
4526 (thread_db_init): Set proc_handle.pid to inferior_ptid.
4527 (check_event): Set proc_handle.pid to the stopped lwp.
4528 (thread_db_find_new_threads): Set proc_handle.pid to any stopped
4529 lwp available, bail out if there is none.
4531 * linux-fork.c (linux_fork_killall): Use SIGKILL instead of
4534 2008-07-10 Kevin Buettner <kevinb@redhat.com>
4536 * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
4537 `current_pc' from CORE_ADDR to ULONGEST.
4539 * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
4542 2008-07-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4544 * NEWS (New commands): Mention "set disable-randomization".
4545 * configure.ac: Add check for HAVE_PERSONALITY and
4546 HAVE_DECL_ADDR_NO_RANDOMIZE.
4547 * configure, config.in: Regenerate.
4548 * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
4549 [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
4551 (disable_randomization, show_disable_randomization)
4552 (set_disable_randomization): New.
4553 (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
4554 PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the
4555 variable DISABLE_RANDOMIZATION.
4556 (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
4557 DISABLE_RANDOMIZATION.
4559 2008-07-09 Pedro Alves <pedro@codesourcery.com>
4561 Adjust all targets to new target_stop interface.
4563 * gnu-nat.c (gnu_stop): Add ptid argument.
4564 * go32-nat.c (go32_stop): Add ptid argument.
4565 (go32_create_inferior): Pass inferior_ptid to go32_stop.
4566 * hpux-thread.c (hpux_thread_stop): Add ptid argument.
4567 * monitor.c (monitor_stop): Add ptid argument.
4568 (monitor_open): Pass inferior_ptid to monitor_stop.
4569 (monitor_interrupt): Pass inferior_ptid to target_stop.
4570 (monitor_stop): Add ptid argument.
4571 * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
4572 (procfs_create_inferior): Add ptid argument.
4573 * procfs.c (procfs_stop): Add ptid argument.
4574 * remote-m32r-sdi.c (m32r_stop): Add ptid argument.
4575 * remote-sim.c (gdbsim_stop): Add ptid argument.
4576 * sol-thread.c (sol_thread_stop): Add ptid argument.
4577 * win32-nat.c (win32_stop): Add ptid argument.
4579 2008-07-09 Pedro Alves <pedro@codesourcery.com>
4581 Non-stop inferior control.
4583 * infrun.c (resume): In non-stop mode, always resume just one
4585 (proceed): Don't call prepare_to_proceed in non-stop mode.
4586 (fetch_inferior_event): In non-stop mode, switch context before
4588 (error_is_running, ensure_not_running): New.
4589 (handle_inferior_event): In non-stop mode: Mark only the event
4590 thread as stopped. Require that the target module manages adding
4591 threads to the thread list. Assert that there isn't a
4592 deferred_step_ptid set. Don't switch to infwait_thread_hop_state.
4593 (normal_stop): Only mark not-running if inferior hasn't exited.
4594 In non-stop mode, only mark the event thread.
4596 * thread.c:Include "cli/cli-decode.h".
4597 (print_thread_info): Don't read from a running thread.
4598 Output "(running)" if thread is running.
4599 (switch_to_thread): Don't read stop_pc if thread is executing.
4600 (do_restore_current_thread_cleanup): Don't write to a running
4602 (thread_apply_all_command): Don't read from a running thread. In
4603 non-stop mode, do a full context-switch instead of just switching
4605 (thread_apply_command): In non-stop mode, do a full context-switch
4606 instead of just switching threads.
4607 (do_captured_thread_select): Likewise. Inform user if selected
4609 (_initialize_thread): Mark "info threads" and "thread" and
4612 * inf-loop.c (inferior_event_handler): In non-stop mode, don't
4613 unregister the target from the event loop.
4615 * infcmd.c (continue_command, step_1, jump_command)
4616 (signal_command): Ensure the selected thread isn't running.
4617 (interrupt_target_command): In non-stop mode, interrupt only the
4620 * inferior.h (error_is_running, ensure_not_running): Declare.
4622 * target.h (struct target_ops): Add ptid argument to the to_stop
4624 (target_stop): Add ptid_t argument.
4626 * target.c (update_current_target): Add ptid argument to to_stop's
4628 (debug_to_stop): Add ptid_t argument.
4629 (debug_to_rcmd): Set to_stop_ptid.
4631 * remote.c (remote_stop): Add ptid_t argument.
4632 (async_remote_interrupt): Add inferior_ptid to target_stop.
4633 * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
4635 * Makefile.in (thread.o): Depend on $(cli_decode_h).
4637 2008-07-09 Pedro Alves <pedro@codesourcery.com>
4639 Don't rely on ecs->wait_for_more.
4641 * infrun.c (proceed): Clear the stepping state, set
4642 previous_inferior_ptid and clear infwait state.
4643 (wait_for_inferior): Don't clear the stepping state, set
4644 previous_inferior_ptid, or clear the infwait state here.
4645 (fetch_inferior_event): Don't clear the stepping state, set
4646 previous_inferior_ptid, or clear the infwait state here. Don't
4647 condition on wait_for_more.
4649 2008-07-09 Pedro Alves <pedro@codesourcery.com>
4651 Refactor infrun a bit.
4653 * infrun.c (currently_stepping): Take a struct
4654 thread_stepping_state instead of an execution_control_state.
4655 (struct thread_stepping_state): New, split from
4656 execution_control_state.
4657 (gtss, tss): New globals.
4658 (proceed): Clear the stepping state, set previous_inferior_ptid
4659 and clear infwait state.
4660 (init_wait_for_inferior): Clear the stepping state,
4661 previous_inferior_ptid and infwait state.
4662 (waiton_ptid, infwait_state): New, split from
4663 execution_control_state.
4664 (struct execution_control_state): Members that persist through
4665 events moved out to either struct thred_stepping_state or made
4666 global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
4667 (wait_for_inferior, fetch_inferior_event): Use local
4668 execution_control_state. Update to execution_control_state split.
4669 (init_execution_control_state): Adjust.
4670 (init_thread_stepping_state): New, extracted from
4671 init_execution_control_state.
4672 (context_switch): Take a ptid instead of an
4673 execution_control_state.
4674 (context_switch_to): Adjust.
4675 (adjust_pc_after_break): Adjust.
4676 (init_infwait_state): New.
4677 (handle_inferior_event): Adjust.
4679 2008-07-09 Pedro Alves <pedro@codesourcery.com>
4680 Vladimir Prus <vladimir@codesourcery.com>
4682 Per-thread commands.
4684 * gdbthread.h: Remove unneeded forward declarations.
4685 Include "inferior.h".
4686 (struct thread_info): Add continuations,
4687 intermediate_continuations, proceed_to_finish, step_over_calls,
4688 stop_step, step_multi and stop_signal members.
4689 (save_infrun_state): Add continuations,
4690 intermediate_continuations, proceed_to_finish, step_over_calls,
4691 stop_step, step_multi, stop_signal and stop_bpstat parameters.
4692 (load_infrun_state): Add continuations,
4693 intermediate_continuations, proceed_to_finish, step_over_calls,
4694 stop_step, step_multi, stop_signal and stop_bpstat parameters.
4696 * thread.c (load_infrun_state): In non-stop mode, load
4697 continuations, intermediate_continuations, proceed_to_finish,
4698 step_over_calls, stop_step, step_multi and stop_signal.
4699 (save_infrun_state): Store continuations,
4700 intermediate_continuations, proceed_to_finish, step_over_calls,
4701 stop_step, step_multi, stop_signal and stop_bpstat.
4702 (save_infrun_state): Store continuations,
4703 intermediate_continuations, proceed_to_finish, step_over_calls,
4704 stop_step, step_multi, stop_signal and stop_bpstat.
4705 (free_thread): Clear The thread's stop_bpstat.
4707 * inferior.h (context_switch_to): Declare.
4709 * infrun.c (ecss): New global.
4710 (context_switch): Context switch continuations,
4711 intermediate_continuations, proceed_to_finish, step_over_calls,
4712 stop_step, step_multi, stop_signal and stop_bpstat.
4713 (wait_for_inferior): Use global ecss.
4714 (async_ecss, async_ecs): Delete.
4715 (fetch_inferior_event): Use global ecss.
4716 (context_switch_to): New.
4718 * top.c (execute_command): In non-stop, only check if the current
4719 thread is running, in all-stop, check if there's any thread
4722 * breakpoint.c (bpstat_remove_breakpoint): New.
4723 (bpstat_remove_breakpoint_callback): New.
4724 (delete_breakpoint): Clear the stop_bpstats of all threads.
4726 * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
4727 current thread is running, in all-stop, check if there's any
4730 * Makefile.in (gdbthread_h): Depend on $(inferior_h).
4732 2008-07-09 Pedro Alves <pedro@codesourcery.com>
4734 Add non_stop global.
4736 * inferior.h (non_stop): Declare.
4737 * infrun.c (non_stop, non_stop_1): New.
4738 (set_non_stop, show_non_stop): New.
4739 (_initialize_infrun): Add "set/show non-stop" command.
4741 2008-07-09 Pedro Alves <pedro@codesourcery.com>
4743 Adjust fork/vfork/exec to pass ptids around.
4745 * target.h (struct target_waitstatus): Store related_pid as a ptid.
4746 (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
4748 * breakpoint.h (struct breakpoint): Change forked_inferior_pid
4750 * breakpoint.c (print_it_typical, bpstat_check_location)
4751 (print_one_breakpoint_location, set_raw_breakpoint_without_location)
4752 (create_fork_vfork_event_catchpoint): Adjust.
4753 * infrun.c (fork_event): Change parent_pid and child_pid types to
4755 (follow_exec, inferior_has_forked, inferior_has_vforked)
4756 (inferior_has_execd): Take a ptid_t and don't trim it.
4757 * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
4758 * linux-nat.c (linux_child_follow_fork): Adjust.
4759 * inf-ptrace.c (inf_ptrace_wait): Adjust.
4760 * inf-ttrace.c (inf_ttrace_wait): Adjust.
4761 * win32-nat.c (get_win32_debug_event): Don't set related_pid.
4763 2008-07-09 Pedro Alves <pedro@codesourcery.com>
4765 Add "executing" property to threads.
4767 * inferior.h (target_executing): Delete.
4768 * gdbthread.h (struct thread_info): Add executing_ field.
4769 (set_executing, is_executing): New.
4770 * thread.c (main_thread_executing): New.
4771 (init_thread_list): Clear it and also main_thread_running.
4772 (is_running): Return false if target has no execution.
4773 (any_running, is_executing, set_executing): New.
4775 * top.c: Include "gdbthread.h".
4776 (target_executing): Delete.
4777 (execute_command): Replace target_executing check by any_running.
4778 * event-top.c: Include "gdbthread.h".
4779 (display_gdb_prompt, command_handler): Replace target_executing by
4781 * inf-loop.c: Include "gdbthread.h". Don't mark as not executing
4782 here. Replace target_executing by is_running.
4783 * infrun.c (handle_inferior_event): Mark all threads as
4785 * linux-nat.c (linux_nat_resume): Don't mark thread as executing
4787 * stack.c (get_selected_block): Return null if inferior is
4789 * target.c (target_resume): Mark resumed ptid as executing.
4790 * breakpoint.c (until_break_command): Replace target_executing
4791 check by is_executing.
4792 * remote.c (remote_async_resume): Don't mark inferior as executing
4794 * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
4797 * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
4798 (mi_execute_async_cli_command): Replace target_executing by
4801 * frame.c (get_current_frame): Error out if the current thread is
4803 (has_stack_frames): New.
4804 (get_selected_frame, deprecated_safe_get_selected_frame): Check
4807 * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
4810 2008-07-09 Pedro Alves <pedro@codesourcery.com>
4812 * symfile.c (load_command): Reopen the exec file and reread
4813 symbols before anything else.
4815 2008-07-09 Pedro Alves <pedro@codesourcery.com>
4817 * remote-sim.c: Include gdbthread.h.
4818 (remote_sim_ptid): New global.
4819 (gdbsim_create_inferior): Silently add the main task to GDB's
4821 (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
4822 task from GDB's thread list.
4823 (gdbsim_resume): Adjust to use remote_sim_ptid.
4824 (gdbsim_thread_alive, gdbsim_pid_to_str): New.
4825 (init_gdbsim_ops): Register gdbsim_thread_alive and
4827 (_initialize_remote_sim): Initialize remote_sim_ptid.
4828 * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
4830 2008-07-09 Pedro Alves <pedro@codesourcery.com>
4832 * monitor (monitor_ptid): New global.
4833 (monitor_open): Silently add the main task to GDB's thread list.
4834 (monitor_close, monitor_mourn_inferior): Silently delete the main
4835 task from GDB's thread list.
4836 (monitor_thread_alive, monitor_pid_to_str): New.
4837 (init_base_monitor_ops): Register monitor_thread_alive and
4839 (_initialize_remote_monitors): Initialize monitor_ptid.
4841 * gdbthread.h (delete_thread_silent): Declare.
4842 * thread.c (delete_thread): Rename to ...
4843 (delete_thread_1): ... this. Add "silent" parameter. If silent,
4844 don't do exit notifications.
4845 (delete_thread, delete_thread_silent): New, as wrappers to
4848 2008-07-08 Pedro Alves <pedro@codesourcery.com>
4850 * breakpoint.c (update_global_location_list): Add boolean
4851 "should_insert" argument. Only insert locations if caller told it
4853 (update_global_location_list_nothrow): Add boolean "should_insert"
4854 argument. Pass it to update_global_location_list.
4855 (insert_breakpoints, create_longjmp_breakpoint)
4856 (create_overlay_event_breakpoint, enable_overlay_breakpoints)
4857 (create_thread_event_breakpoint, create_solib_event_breakpoint)
4858 (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
4859 (enable_watchpoints_after_interactive_call_stop)
4860 (set_momentary_breakpoint, create_breakpoints)
4861 (break_command_really, watch_command_1)
4862 (create_ada_exception_breakpoint, update_breakpoint_locations)
4863 (do_enable_breakpoint, enable_command): Pass true to
4864 update_global_location_list.
4865 (bpstat_stop_status, disable_overlay_breakpoints)
4866 (disable_watchpoints_before_interactive_call_start)
4867 (delete_breakpoint, disable_breakpoint, disable_command): Pass
4868 false to update_global_location_list.
4869 (update_breakpoints_after_exec): Don't temporarily disable
4870 always-inserted mode.
4872 2008-07-08 Pedro Alves <pedro@codesourcery.com>
4874 * breakpoint.c (mark_breakpoints_out): Make public.
4875 (update_breakpoints_after_exec): Don't call mark_breakpoints_out
4876 here. Update comment.
4877 * breakpoint.h (mark_breakpoints_out): Declare.
4879 * linux-nat.c (linux_handle_extended_wait): On
4880 TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
4881 * inf-ttrace.c (inf_ttrace_wait): Likewise.
4883 2008-07-08 Pedro Alves <pedro@codesourcery.com>
4885 * infrun.c (follow_exec): Reset shared libraries before adding the
4888 2008-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4890 * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
4892 2008-07-07 Pedro Alves <pedro@codesourcery.com>
4894 * i386-dicos-tdep.c: Include "inferior.h".
4895 (i386_dicos_frame_align): New.
4896 (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call
4897 dummy location ON_STACK.
4898 * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
4900 2008-07-07 Joel Brobecker <brobecker@adacore.com>
4902 * gstdint.h: New file.
4904 2008-07-05 Vladimir Prus <vladimir@codesourcery.com>
4906 * mi/mi-interp.c (mi_on_resume): Don't try to report
4907 resumed thread it the thread list is empty.
4909 2008-07-05 Pierre Muller <muller@ics.u-strasbg.fr>
4911 * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
4912 completer for set to filename_completer.
4916 2008-07-04 Vladimir Prus <vladimir@codesourcery.com>
4918 Implement -target-attach.
4919 * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
4921 2008-06-21 Hui Zhu <teawater@gmail.com>
4923 * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
4925 2008-07-03 Pedro Alves <pedro@codesourcery.com>
4927 * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
4928 * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
4930 * target.h (struct target_ops): Add to_attach_no_wait member.
4931 (target_attach_no_wait): New.
4932 * target.c (update_current_target): Inherit to_attach_no_wait.
4934 * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
4935 target_attach_no_wait runtime check.
4937 * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
4938 * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
4941 2008-07-03 Pedro Alves <pedro@codesourcery.com>
4943 * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
4944 on debug_displaced being set.
4946 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
4948 * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
4949 directly instead of get_frame_id.
4951 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
4953 * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
4954 (deal_with_atomic_sequence): Update BC masks.
4955 (rs6000_gdbarch_init): Init displaced stepping infra-structure.
4956 Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
4958 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
4960 * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
4961 register, not the previous frame's.
4963 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
4965 * source.c (select_source_symtab): Make sure we skip namespace
4966 symtabs when showing cpp source code.
4968 2008-06-30 Hans-Peter Nilsson <hp@axis.com>
4970 * MAINTAINERS (Authorized committers): Fix my email address.
4972 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
4974 * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
4975 -target-download and -target-select via CLI, so that
4976 the quoting rules are the same as they were (unfortunately)
4977 in all prior gdb releases.
4978 * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
4979 (mi_cmd_target_download, mi_cmd_target_select): Remove.
4980 * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
4981 (mi_cmd_target_download, mi_cmd_target_select): Remove.
4982 (mi_cmd_execute): Set current_token even for commands
4985 2008-06-28 Ulrich Weigand <uweigand@de.ibm.com>
4987 * alphafbsd-tdep.c: Update for unwinder changes.
4988 * alpha-linux-tdep.c: Likewise.
4989 * alphanbsd-tdep.c: Likewise.
4990 * alphaobsd-tdep.c: Likewise.
4991 * avr-tdep.c: Likewise.
4992 * cris-tdep.c: Likewise.
4993 * frv-linux-tdep.c: Likewise.
4994 * frv-tdep.c: Likewise.
4995 * h8300-tdep.c: Likewise.
4996 * hppa-linux-tdep.c: Likewise.
4997 * iq2000-tdep.c: Likewise.
4998 * m32c-tdep.c: Likewise.
4999 * m32r-linux-tdep.c: Likewise.
5000 * m32r-tdep.c: Likewise.
5001 * m68hc11-tdep.c: Likewise.
5002 * mep-tdep.c: Likewise.
5003 * mn10300-tdep.c: Likewise.
5004 * mt-tdep.c: Likewise.
5005 * score-tdep.c: Likewise.
5006 * sh64-tdep.c: Likewise.
5007 * sh-tdep.c: Likewise.
5008 * sparc64fbsd-tdep.c: Likewise.
5009 * sparc64nbsd-tdep.c: Likewise.
5010 * sparc64obsd-tdep.c: Likewise.
5011 * v850-tdep.c: Likewise.
5012 * vaxobsd-tdep.c: Likewise.
5013 * vax-tdep.c: Likewise.
5014 * xstormy16-tdep.c: Likewise.
5016 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
5018 * mi/mi-main.c (enum captured_mi_execute_command_actions)
5019 (captured_mi_execute_command_args): Remove.
5020 (captured_mi_execute_command): Cast the closure to mi_parse
5021 pointer, not to captured_mi_execute_command_args, and don't
5022 set the action field thereof.
5023 (mi_execute_command): Pass struct mi_parse, not
5024 captured_mi_execute_command_args to captured_mi_execute_command.
5025 (mi_execute_command): Remove (dead) code for suppressing
5028 2008-06-28 Pedro Alves <pedro@codesourcery.com>
5030 * linux-nat.c (enum sigchld_state): New.
5031 (linux_nat_async_events_state): Renamed from
5032 linux_nat_async_events_enabled.
5033 (linux_nat_event_pipe_push, my_waitpid): Adjust.
5034 (sigchld_default_action): New.
5035 (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
5037 (linux_nat_create_inferior): Set events state to sigchld_default
5039 (linux_nat_resume): Adjust.
5040 (linux_nat_wait): Call linux_nat_async_events unconditionally.
5041 (sigchld_handler): Adjust.
5042 (linux_nat_async_mask): Don't set SIGCHLD actions here.
5043 (get_pending_events): Adjust.
5044 (linux_nat_async_events): Rewrite to handle enum sigchld_state
5045 instead of a boolean.
5046 (linux_nat_async): Adjust.
5047 (_initialize_linux_nat): Capture default SIGCHLD action into
5048 sigchld_default_action.
5050 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
5052 * breakpoint.c (moribund_locations): New.
5053 (bpstat_stop_status): Process moribund locations.
5054 (update_global_location_list): Add removed
5055 locations to moribund_locations.
5056 (breakpoint_retire_moribund): New.
5057 * breakpoint.h (struct bp_location): New field
5058 events_till_retirement.
5059 (breakpoint_retire_moribund): Declare.
5060 * thread.c (thread_count): New.
5061 * infrun.c (handle_inferior_event): Call
5062 breakpoint_retire_moribund.
5063 * gdbthread.h (thread_count): Declare.
5065 2008-06-27 Joseph Myers <joseph@codesourcery.com>
5067 * dfp.c (decimal_convert): Call match_endianness before and after
5070 2008-06-27 Jonathan Larmour <jifl@eCosCentric.com>
5072 * remote.c (remote_insert_breakpoint): Ensure that if Z0
5073 unsupported and we fall back to memory_insert_breakpoint, we
5074 use the unmodified requested address.
5076 2008-06-27 Joel Brobecker <brobecker@adacore.com>
5078 * dwarf2read.c (read_attribute_value): Issue a complaint when
5079 adjusting size attribute values of 0xffffffff as zero.
5081 2008-06-27 Joseph Myers <joseph@codesourcery.com>
5083 * i386-tdep.c (i386_16_byte_align_p): New.
5084 (i386_push_dummy_call): Determine stack space required for
5085 arguments going forwards allowing for 16-byte alignment, then push
5086 arguments going forwards.
5088 2008-06-27 Pedro Alves <pedro@codesourcery.com>
5090 * infrun.c (start_remote): Don't clear thread list here.
5091 * monitor.c (monitor_open): Include "gdbthread.h". Clear thread
5093 * remote.c (record_currthread): Upgrade the main thread and its
5094 entry in the thread list if this is the first time we hear about
5096 (remote_thread_alive): Consider magic_null_ptid or a ptid without
5097 a tid member always alive.
5098 (remote_find_new_threads): Don't update the main thread here.
5099 (remote_start_remote): Clear thread list here. Always add the
5101 (extended_remote_attach_1): Add the main thread here.
5102 (extended_remote_mourn_1): Re-add the main thread here.
5103 (extended_remote_create_inferior_1): Add a main thread.
5105 * Makefile.in (monitor.o): Depend on $(gdbthread_h).
5107 2008-06-27 Pedro Alves <pedro@codesourcery.com>
5109 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
5111 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
5113 (general_thread, continue_thread): Change type to ptid_t.
5114 (record_currthread): Take a ptid_t parameter instead of an
5116 (MAGIC_NULL_PID): Delete.
5117 (set_thread): Take a ptid_t parameter and adjust.
5118 (set_general_thread, set_continue_thread): New.
5119 (remote_thread_alive, remote_newthread_step)
5120 (remote_current_thread, remote_find_new_threads)
5121 (remote_threads_info, remote_start_remote, remote_vcont_resume)
5122 (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
5123 (threadalive_test, remote_pid_to_str)
5124 (remote_get_thread_local_address): Adjust.
5125 (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
5126 and any_thread_ptid.
5128 2008-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5130 * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
5131 * configure: Regenerated.
5133 2008-06-26 Joel Brobecker <brobecker@adacore.com>
5135 * dwarf2read.c (read_attribute_value): Treat size attribute
5136 values of 0xffffffff as if the attribute value was zero.
5138 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
5140 * linux-nat.c: Add description of overall logic.
5142 2008-06-26 Daniel Jacobowitz <dan@codesourcery.com>
5144 * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
5145 (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
5146 all dependencies on $(gdb_stdint_h).
5147 (distclean): Do not delete gdb_stdint.h.
5148 * acinclude.m4: Do not use stdint.m4.
5149 * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
5150 uintptr_t, and gdb_stdint.h.
5151 * defs.h: Include <stdint.h>.
5152 * gdb_thread_db.h: Assume stdint.h is already included.
5153 * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
5154 rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
5155 include gdb_stdint.h.
5156 * configure, config.in: Regenerate.
5158 2008-06-26 Joseph Myers <joseph@codesourcery.com>
5160 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
5161 decimal floating-point values in GPRs for soft-float.
5162 (do_ppc_sysv_return_value): Handle returning decimal
5163 floating-point values in GPRs for soft-float.
5165 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
5167 * target.c (target_read_until_error): New.
5168 * target.h (target_read_until_error): Declare.
5169 * mi/mi-main.c (mi_cmd_data_read_memory): Use
5170 target_read_until_error.
5172 2008-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5174 Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
5175 * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
5176 after the DECFLOAT detection to fix a memory leak. Remove the
5177 redundant NUM initialization. Protect the DECFLOAT detection memory
5178 access before the P block. Restore the P memory content for the
5181 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
5183 Kill the return value for all MI command functions.
5184 * mi/mi-cmds.h (enum mi_cmd_result): Remove.
5185 (mi_cmd_argv_ftype): Change return type to void.
5187 * mi/mi-main.c: Adjust all function that implement
5188 MI commands to return nothing.
5189 (struct captured_mi_execute_command_actions):
5190 Remove the rc field.
5191 (mi_cmd_execute): Return nothing.
5192 (mi_execute_async_cli_command): Return nothing.
5193 (mi_cmd_exec_interrupt): Don't print ^done here.
5194 (mi_cmd_target_select): Don't print ^connected here.
5195 (captured_mi_execute_command): Don't check for MI_CMD_DONE.
5196 Special-case -target-select and output ^connected, not ^done.
5198 * mi/mi-cmd-break.c: Adjust.
5199 * mi/mi-cmd-disas.c: Adjust.
5200 * mi/mi-cmd-env.c: Adjust.
5201 * mi/mi-cmd-file.c: Adjust.
5202 * mi/mi-cmd-stack.c: Adjust.
5203 * mi/mi-cmd-target.c: Adjust.
5204 * mi/mi-cmd-var.c: Adjust.
5205 * mi/mi-interp.c: Adjust.
5206 * mi/mi-symbol-cmds.c: Adjust.
5208 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
5210 Emit ^running via observer.
5211 * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
5213 (mi_on_resume): Print ^running if not previously output.
5214 * mi/mi-main.c (running_result_record_printed): New.
5215 (captured_mi_execute_command): Reset
5216 running_result_record_printed. Use running_result_record_printed
5217 to decide if we should skip ^done.
5218 (mi_execute_async_cli_command): Don't print ^running here.
5219 * mi/mi-main.h (current_token, running_result_record_printed):
5222 2008-06-24 Michael Snyder <msnyder@specifix.com>
5224 * infrun.c (_initialize_infrun): White space and typo fix.
5226 2008-06-23 Christopher Faylor <me.gdb.changelog@cgf.cx>
5228 * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
5229 (do_initial_win32_stuff): Fix problem with inability to set breakpoints
5230 when first loading DLL with "dll" command.
5232 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
5234 * gnu-nat.c (proc_string): Use capital T for "Thread".
5236 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
5238 * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
5240 2008-06-18 Joel Brobecker <brobecker@adacore.com>
5242 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
5243 the target cannot run.
5245 2008-06-18 Joel Brobecker <brobecker@adacore.com>
5247 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
5248 we're attaching to a running process.
5250 2008-06-18 Pierre Muller <muller@ics.u-strasbg.fr>
5252 * win32-nat.c (handle_load_dll): Give dll name and load address
5253 if debug_events is on.
5254 (handle_unload_dll): Likewise.
5256 2008-06-14 Vladimir Prus <vladimir@codesourcery.com>
5258 Don't suppress *running when doing finish.
5259 * infcall.c (call_function_by_hand): Set both
5260 suppress_resume_observer and suppress_stop_observer.
5261 * infcmd.c (suppress_run_stop_observers): Split into...
5262 (suppress_resume_observer, suppress_stop_observer): ...those.
5263 (finish_command_continuation): Clear suppress_stop_observer.
5264 (finish_command): Set suppress_stop_observer.
5265 * inferior.h (suppress_run_stop_observers): Split into...
5266 (suppress_resume_observer, suppress_stop_observer): ...those.
5267 * infrun.c (normal_stop): Check for suppress_stop_observer.
5268 * thread.c (set_running): Check for suppress_resume_observer.
5270 2008-06-12 Pedro Alves <pedro_alves@portugalmail.pt>
5271 Pierre Muller <muller@ics.u-strasbg.fr>
5273 * gdbarch.sh (gdbarch_skip_main_prologue): New.
5274 * gdbarch.h, gdbarch.c: Regenerate.
5275 * i386-tdep.h (i386_skip_main_prologue): Declare.
5276 * i386-tdep.c (i386_skip_main_prologue): New.
5277 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
5278 i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
5279 * symtab.c (find_function_start_sal): When pc points at the "main"
5280 function, call gdbarch_skip_main_prologue.
5282 2008-06-11 Daniel Jacobowitz <dan@codesourcery.com>
5284 * value.c (value_primitive_field): Fetch lazy register values.
5286 2008-06-11 Pedro Alves <pedro@codesourcery.com>
5288 * NEWS: Mention support removal of undocumented S AA p PID stop
5291 * remote.c (remote_wait): Remove undocumented S AA p PID support.
5293 2008-06-10 Stan Shebs <stan@codesourcery.com>
5295 * MAINTAINERS: Update my affiliation and address.
5297 2008-06-10 Andreas Schwab <schwab@suse.de>
5299 * top.c (print_gdb_version): Don't print final newline.
5301 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
5304 * Makefile.in: Update dependencies.
5305 * gdbthread.h (struct thread_info): New field
5307 (set_running, is_running): New.
5308 * thread.c (set_running, is_running): New.
5309 * inferior.h (suppress_normal_stop_observer): Rename to...
5310 (suppress_run_stop_observers): ..this.
5311 * infcmd.c (suppress_normal_stop_observer): Rename to...
5312 (suppress_run_stop_observers): ..this.
5313 (finish_command_continuation, finish_command): Adjust.
5314 * infcall.c (call_function_by_hand): Adjust.
5315 * infrun.c (normal_stop): Call set_running.
5316 * target.c (target_resume): New. Call set_running.
5317 * target.h (target_resume): Convert from macro to
5320 * mi/mi-interp.c (mi_on_resume): New.
5321 (mi_interpreter_init): Register mi_on_resume.
5323 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
5325 Use observers to report stop events in MI.
5326 * mi/mi-interp.c (mi_on_normal_stop): New.
5327 (mi_interpreter_init): Register mi_on_normal_stop.
5328 (mi_interpreter_exec_continuation): Remove.
5329 (mi_cmd_interpreter_exec): Don't register the above.
5330 * mi/mi-main.c (captured_mi_execute_command): Don't care
5331 about sync_execution.
5332 (mi_execute_async_cli_command): Don't install continuation. Don't
5334 (mi_exec_async_cli_cmd_continuation): Remove.
5336 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
5338 Suppress normal stop observer when it's problematic.
5339 * inferior.h (suppress_normal_stop_observer): New.
5340 * infcall.c (call_function_by_hand): Disable stop events when
5341 doing function calls.
5342 * infmcd.c (suppress_normal_stop_observer): New.
5343 (finish_command_continuation): Call normal_stop observer
5345 (finish_command): Disable stop events inside proceed.
5346 * infrun.c (normal_stop): Don't call normal stop observer if
5347 suppressed of if multi-step is in progress.
5349 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
5352 * infrun.c (finish_command): Don't pass cleanup
5354 (finish_command_continuation): Don't grab cleanup from
5355 the passed data, as we don't use, and cannot, use it anyway.
5357 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
5359 Introduce common cleanup for restoring integers.
5360 * defs.h (make_cleanup_restore_integer): New declaration.
5361 (struct cleanup): New field free_arg.
5362 (make_my_cleanup_2): New.
5363 * utils.c (restore_integer_closure, restore_integer)
5364 (make_cleanup_restore_integer): New.
5365 (make_my_cleanup): Initialize the free_arg field and
5366 renamed to make_my_cleanup_2.
5367 (do_my_cleanups): Call free_arg.
5368 (discard_cleanups): Call free_arg.
5369 * breakpoint.c (restore_always_inserted_mode): Remove.
5370 (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
5372 2008-06-09 Doug Evans <dje@google.com>
5374 * remote.c (remote_wait): Include beginning of malformed packet
5377 2008-06-09 Tom Tromey <tromey@redhat.com>
5379 * completer.c (complete_line): Don't special-case
5380 expression_completer.
5381 (expression_completer): Only pass last word to
5383 * c-exp.y (yylex): Check 'token', not 'operator'.
5385 2008-06-09 Daniel Jacobowitz <dan@codesourcery.com>
5387 * configure.ac (build_warnings): Add -Wno-format for mingw.
5388 * configure: Regenerated.
5390 2008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
5392 * NEWS: Make indentation consistent. Move exec tracing entry out
5393 of remote packet list.
5395 2008-06-06 Tom Tromey <tromey@redhat.com>
5397 * value.h (evaluate_subexpression_type, extract_field_op):
5399 * printcmd.c (_initialize_printcmd): Use expression_completer for
5400 'p', 'inspect', 'call'.
5401 * parser-defs.h (parse_field_expression): Declare.
5402 * parse.c: Include exceptions.h.
5403 (in_parse_field, expout_last_struct): New globals.
5404 (mark_struct_expression): New function.
5405 (prefixify_expression): Return int.
5406 (prefixify_subexp): Return int. Use expout_last_struct.
5407 (parse_exp_1): Update.
5408 (parse_exp_in_context): Add 'out_subexp' argument. Handle
5410 (parse_field_expression): New function.
5411 * expression.h (parse_field_expression): Declare.
5412 (in_parse_field): Likewise.
5413 * eval.c (evaluate_subexpression_type): New function.
5414 (extract_field_op): Likewise.
5415 * completer.h (expression_completer): Declare.
5416 * completer.c (expression_completer): New function.
5417 (count_struct_fields, add_struct_fields): New functions.
5418 * c-exp.y (yyparse): Redefine.
5419 (COMPLETE): New token.
5420 (exp): New productions.
5421 (saw_name_at_eof, last_was_structop): New globals.
5422 (yylex): Return COMPLETE when needed. Recognize in_parse_field.
5423 (c_parse): New function.
5424 * breakpoint.c (_initialize_breakpoint): Use expression_completer
5425 for watch, awatch, and rwatch.
5426 * Makefile.in (parse.o): Depend on exceptions_h.
5428 2008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5431 * gdb/valopts.c (find_overload_match): Handle references
5434 2008-06-06 Paul N. Hilfinger <hilfinger@adacore.com>
5436 * ada-lang.c (ada_value_assign): Correct big-endian case to take into
5437 account the bitsize of the 'from' operand.
5439 2008-06-06 Pedro Alves <pedro@codesourcery.com>
5441 * annotate.h (annotate_thread_changed): Declare.
5443 2008-06-06 Nick Roberts <nickrob@snap.net.nz>
5445 * annotate.c (annotate_thread_changed): New function.
5446 * thread.c (thread_command) : Use it.
5447 * infrun.c (normal_stop): Use it.
5449 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
5450 Nathan Sidwell <nathan@codesourcery.com>
5451 Joseph Myers <joseph@codesourcery.com>
5453 * acinclude.m4: Include ../config/acx.m4.
5454 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
5455 * configure, config.in: Regenerate.
5456 * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
5458 * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
5460 2008-06-05 Pedro Alves <pedro@codesourcery.com>
5462 Replace 'target async' by 'maintenance set remote-async' and
5463 'target remote' combination.
5465 * remote.c (remote_async_wait): Merge into remote_wait, and
5467 (remote_async_permitted, remote_async_permitted_set): New
5469 (set_maintenance_remote_async_permitted)
5470 (show_maintenance_remote_async_permitted): New functions.
5471 (remote_async_ops, extended_async_remote_ops): Delete.
5472 (remote_async_open, extended_remote_async_open): Delete.
5473 (remote_open_1): Drop async_p parameter. Update callers. Replace
5474 async_p with remote_async_permitted checks.
5475 (extended_async_remote_attach): Delete.
5476 (remote_resume, remote_async_resume): Merge and leave remote_resume.
5477 (remote_async_terminal_inferior): Rename to...
5478 (remote_terminal_inferior): ... this, and add
5479 remote_async_termitted check.
5480 (remote_async_terminal_ours): Rename to...
5481 (remote_terminal_ours): ... this, and add remote_async_termitted
5483 (remote_wait, remote_async_wait): Merge and leave remote_wait
5485 (remote_kill, remote_async_kill): Merge and leave remote_kill
5487 (remote_async_mourn, extended_async_remote_mourn): Delete.
5488 (extended_remote_create_inferior_1): Drop async_p parameter.
5489 Update callers. Always use extended_remote_ops.
5490 (extended_remote_async_create_inferior): Delete.
5491 (remote_return_zero): Delete.
5492 (init_remote_ops): Register remote_can_async_p, remote_async,
5493 remote_async_mask, remote_terminal_inferior and
5494 remote_terminal_ours.
5495 (remote_can_async_p, remote_is_async_p): Check for
5496 remote_async_permitted.
5497 (init_remote_async_ops, init_extended_async_remote_ops): Remove.
5498 (set_remote_cmd): Don't add async and extended-async targets.
5499 (_initialize_remote): Add set/show remote-async maintenance
5502 2008-06-05 Pedro Alves <pedro@codesourcery.com>
5504 * remote.c (kill_kludge): Delete.
5505 (remote_wait, remote_async_wait): Don't set it.
5506 (remote_kill, remote_async_kill): Don't do anything with it.
5508 2008-06-05 Pedro Alves <pedro@codesourcery.com>
5510 * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
5512 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
5514 * bcache.c (bcache_data): Call deprecated_bcache_added function.
5515 (deprecated_bcache_added): New function name. Body of function
5516 bcache_data is used here with the addition of 'added' argument.
5517 * bcache.h (deprecated_bcache_added): New function.
5518 * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
5519 work from add_psymbol_to_list - initialises partial symbol and stashes
5520 it in objfile's cache.
5521 (append_psymbol_to_list): New helper function, takes other part of
5522 work from add_psymbol_to_list - adds partial symbol to the given list.
5523 (add_psymbol_to_list): Call helper functions instead of doing work
5524 here. If adding to global list, do not duplicate partial symbols in the
5527 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
5529 * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
5530 'exception caught|thrown' message.
5532 2008-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5534 * Makefile.in: Update dependencies.
5535 * dwarf2expr.c: New include "gdb_assert.h".
5536 (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
5537 (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
5538 (execute_stack_op): Error out on too large RECURSION_DEPTH.
5539 Increase/decrease RECURSION_DEPTH around the function.
5541 2008-06-05 Daniel Jacobowitz <dan@codesourcery.com>
5543 * remote.c (get_offsets): Handle a single segment.
5544 * symfile.c (symfile_map_offsets_to_segments): Allow more bases
5547 2008-06-03 Daniel Jacobowitz <dan@codesourcery.com>
5549 * solib-svr4.c (struct lm_info): Add lm_addr.
5550 (main_lm_addr): New.
5551 (svr4_default_sos): Set lm_addr.
5552 (svr4_current_sos): Set lm_addr and main_lm_addr.
5553 (svr4_fetch_objfile_link_map): Rewrite.
5554 (svr4_clear_solib): Clear main_lm_addr.
5556 2008-06-03 Michael Snyder <msnyder@redhat.com>
5557 Joseph Myers <joseph@codesourcery.com>
5559 * mips-tdep.c (mips_eabi_return_value): Replace stub that always
5560 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
5562 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
5564 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
5566 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
5568 * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
5570 2008-06-01 Joel Brobecker <brobecker@adacore.com>
5572 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
5573 treat pointers in data space as function descriptors if the
5574 target address is also in the data space.
5576 2008-05-30 Joel Brobecker <brobecker@adacore.com>
5578 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
5579 the trad-frame register value for the SP register.
5581 2008-05-29 Mark Kettenis <kettenis@gnu.org>
5583 * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
5585 2008-05-28 Joel Brobecker <brobecker@adacore.com>
5587 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
5588 that identifies function descriptors outside of the .opd section.
5590 2008-05-28 Aleksandar Ristovski <aristovski@qnx.com>
5592 * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
5593 temporary catchpoints. In MI add missing fields 'reason', 'disp',
5595 (print_mention_exception_catchpoint): Add 'Temporary' for temporary
5597 (handle_gnu_v3_exceptions): Use tempflag.
5599 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
5601 Refactor varobj_update interface.
5602 * varobj.c (varobj_update): Report changes as vector. Also
5603 return not just a list of varobj, but a list of special structures
5604 that tell what exactly has changed.
5605 * varobj.h (enum varobj_update_error): Rename to
5606 varobj_scope_status.
5607 (struct varobj_update_result_t): New.
5608 (varobj_update): Adjust prototype.
5609 * mi/mi-cmd-var.c: Adjust for changes.
5611 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
5613 * varobj.c (varobj_update): Fix comment typo.
5616 2008-05-26 Joel Brobecker <brobecker@adacore.com>
5618 Set the symtab field of symbols read from ECOFF debugging entries.
5619 * mdebugread.c (add_symbol): Add new parameter symtab.
5620 (parse_symbol): Update calls to add_symbol throughout.
5622 2008-05-27 Andreas Schwab <schwab@suse.de>
5624 * symtab.h (enum address_class): Remove LOC_REGPARM and
5626 (struct symbol): Add is_argument.
5627 (SYMBOL_IS_ARGUMENT): Define.
5629 * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
5630 * buildsym.c (finish_block): Likewise.
5631 * stack.c (print_frame_args, print_block_frame_locals)
5632 (print_frame_arg_vars): Likewise.
5633 * symtab.c (lookup_block_symbol): Likewise.
5634 * tracepoint.c (add_local_symbols): Likewise.
5635 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5637 * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
5638 * dwarf2read.c (new_symbol): Likewise.
5639 * mdebugread.c (parse_symbol): Likewise.
5640 * stabsread.c (define_symbol): Likewise.
5642 * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
5643 and LOC_COMPUTED_ARG.
5644 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
5645 * ax-gdb.c (gen_var_ref): Likewise.
5646 * eval.c (evaluate_subexp_for_address): Likewise.
5647 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
5648 * m2-exp.y (yylex): Likewise.
5649 * printcmd.c (address_info): Likewise.
5650 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
5651 * tracepoint.c (collect_symbol, scope_info): Likewise.
5653 2008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
5655 * gdbarch.sh: Added new gdbarch struct
5656 core_regset_sections.
5657 * gdbarch.c: Refreshed.
5658 * gdbarch.h: Refreshed.
5659 * regset.h (core_regset_section): Declared.
5660 * linux-nat.c (linux_nat_do_thread_registers): Added
5661 support for the new gdbarch struct core_regset_sections.
5662 * utils.c (host_address_to_string): New function.
5663 * defs.h (host_address_to_string): New prototype.
5664 * i386-linux-tdep.c (i386_regset_rections): New register
5665 sections list for i386.
5666 (i386_linux_init_abi): Initialized new gdbarch struct
5667 core_regset_sections.
5668 * Makefile.in: Updated to reflect dependency changes.
5669 * ppc-linux-tdep.c (ppc_regset_sections): Register
5670 sections list for ppc.
5671 (ppc_linux_init_abi): Initialized new gdbarch struct
5672 core_regset_sections
5674 2008-05-24 Andreas Schwab <schwab@suse.de>
5676 * linespec.c (decode_objc): Save current language around call to
5679 2008-05-23 Joel Brobecker <brobecker@adacore.com>
5681 * valprint.h (get_array_bounds): Renames get_array_low_bound.
5682 * valprint.c (get_array_bounds): Renames get_array_low_bound.
5683 Return the proper bound value if the array index type is an
5684 enumerated type. Compute the high bound if requested.
5685 (val_print_array_elements): Handle the case when the array
5686 element has a null size.
5687 * ada-valprint.c (print_optional_low_bound): Add handling
5688 for empty arrays or arrays of zero-size elements.
5689 (ada_val_print_array): New function, extracted out from
5690 ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
5691 handle empty arrays and arrays of zero-size elements.
5692 (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
5693 code by call to ada_val_print_array.
5694 (ada_value_print): Remove handling of null array. The handling
5695 was incomplete and is now better handled by ada_val_print_array.
5697 2008-05-23 Markus Deuling <deuling@de.ibm.com>
5699 * annotate.c (annotate_source, annotate_frame_begin): Replace
5700 deprecated_print_address_numeric with paddress.
5701 * cli/cli-cmds.c (list_command, edit_command): Likewise.
5702 * tui/tui-stack.c (tui_make_status_line): Likewise.
5704 * defs.h (deprecated_print_address_numeric): Remove.
5705 * printcmd.c (deprecated_print_address_numeric): Remove.
5706 * maint.c (maint_print_section_info): Fix comment.
5708 2008-05-23 Markus Deuling <deuling@de.ibm.com>
5710 * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
5711 print_binary_chars, print_char_chars): Add byte_order parameter and
5712 replace gdbarch_byte_order.
5713 (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
5714 expressions and remove them. Remove unused TWO_TO_FOURTH.
5715 (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
5716 endianness. Update call to print_hex_chars.
5717 * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
5718 print_binary_chars, print_char_chars): Add byte_order parameter.
5719 * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
5720 get at the endianness. Update print_*_char calls to use byte_order.
5722 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
5724 * symtab.h (struct symbol): Make "aux_value" member a void pointer
5726 (SYMBOL_LOCATION_BATON): Update.
5728 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
5730 * symtab.h (enum address_class): Remove LOC_BASEREG and
5732 (struct symbol): Remove "basereg" member of "aux_value" union.
5733 (SYMBOL_BASEREG): Remove.
5735 * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
5737 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
5738 (ada_add_block_symbols): Likewise.
5739 * ax-gdb.c (gen_var_ref): Likewise.
5740 * buildsym.c (finish_block): Likewise.
5741 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
5742 * m2-exp.y (yylex): Likewise.
5743 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5744 * printcmd.c (address_info): Likewise.
5745 * stack.c (print_frame_args, print_block_frame_locals): Likewise.
5746 (print_frame_arg_vars): Likewise.
5747 * symmisc.c (print_symbol): Likewise.
5748 * symtab.c (lookup_block_symbol): Likewise.
5749 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
5750 (scope_info): Likewise.
5752 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
5754 * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
5756 * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
5757 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
5758 (ada_add_block_symbols): Likewise.
5759 * ax-gdb.c (gen_var_ref): Likewise.
5760 * buildsyms.c (finish_block): Likewise.
5761 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
5762 * m2-exp.y (yylex): Likewise.
5763 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5764 * printcmd.c (address_info): Likewise.
5765 * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
5766 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
5767 * symtab.c (lookup_block_symbol): Likewise.
5768 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
5769 (scope_info): Likewise.
5771 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
5773 * symtab.h (enum address_class): Remove LOC_INDIRECT and
5774 LOC_HP_THREAD_LOCAL_STATIC.
5776 * findvar.c (symbol_read_needs_frame, read_var_value): Do not
5777 handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
5778 (read_var_value): Likewise.
5779 * buildsym.c (finish_block): Likewise.
5780 * objfiles.c (objfile_relocate): Likewise.
5781 * printcmd.c (address_info): Likewise.
5782 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
5783 * tracepoint.c (scope_info): Likewise.
5785 2008-05-21 Markus Deuling <deuling@de.ibm.com>
5786 Maxim Grigoriev <maxim2405@gmail.com>
5788 * xtensa-tdep.c (xtensa_read_register): Remove.
5789 (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
5790 argument litbase to call0_frame_cache().
5791 (call0_track_op, call0_analyze_prologue)
5792 (call0_frame_cache): Use extra argument litbase.
5794 2008-05-21 Joel Brobecker <brobecker@adacore.com>
5796 * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
5798 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
5800 * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
5802 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
5804 * alpha-mdebug-tdep.c: Include "trad-frame.h".
5805 (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
5806 struct trad_frame_saved_reg *.
5807 (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
5808 trad_frame_alloc_saved_regs. Update accesses. Record previous
5809 value of SP as being vfp.
5810 (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
5811 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
5813 2008-05-21 Markus Deuling <deuling@de.ibm.com>
5815 * score-tdep.c (score_print_insn): Get the current endianess from
5816 disassemble_info instead of gdbarch_byte_order.
5818 2008-05-21 Pedro Alves <pedro@codesourcery.com>
5820 * frame.c (get_prev_frame_1): Build frame id before setting
5821 this_frame->prev_p, not after.
5823 2008-05-21 Nick Roberts <nickrob@snap.net.nz>
5825 * annotate.c (annotate_new_thread): New function for new-thread
5827 * annotate.h: (annotate_new_thread): New extern.
5828 * thread.c (add_thread_with_info): Use it.
5829 * Makefile.in (thread.o): Add dependency on annotate.h.
5831 2008-05-20 Joel Brobecker <brobecker@adacore.com>
5833 * win32-nat.c (win32_wait): Block the control-c event while
5834 waiting for a debug event.
5836 2008-05-19 Pedro Alves <pedro@codesourcery.com>
5838 * symtab.h (lookup_symbol_in_language): Update comment.
5839 * symtab.c (lookup_symbol_aux_block): Update comment.
5840 * ada-lang.c (ada_lookup_symbol_list): Update comment.
5842 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
5844 * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
5845 (lookup_symbol): Likewise.
5846 * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
5847 (lookup_symbol): Likewise.
5848 (search_symbols): Update.
5850 * linespec.c (find_methods, collect_methods): Update.
5851 (add_matching_methods, add_constructors): Update.
5852 (decode_compound, decode_dollar, decode_variable): Update.
5853 (lookup_prefix_sym): Update.
5855 (symbol_found): Remove SYM_SYMTAB parameter.
5856 Use SYMBOL_SYMTAB (sym) instead.
5858 * gdbtypes.c (lookup_typename): Update.
5859 (lookup_struct, lookup_union, lookup_enum): Update.
5860 (lookup_template_type): Update.
5861 (check_typedef): Update.
5862 * language.c (lang_bool_type): Update.
5863 * mdebugread.c (parse_procedure): Update.
5864 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5865 * parse.c (write_dollar_variable): Update.
5866 * printcmd.c (address_info): Update.
5867 * source.c (select_source_symtab): Update.
5868 * stack.c (print_frame_args, print_frame_arg_vars): Update.
5869 * valops.c (find_function_in_inferior): Update.
5870 (value_struct_elt_for_reference): Update.
5871 * value.c (value_static_field, value_fn_field): Update.
5873 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5874 * arm-tdep.c (arm_skip_prologue): Update.
5875 * mt-tdep.c (mt_skip_prologue): Update.
5876 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
5878 * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
5879 * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
5880 (add_defn_to_vec): Likewise.
5881 (ada_add_block_symbols): Likewise.
5882 (lookup_cached_symbol, cache_symbol): Likewise.
5883 (standard_lookup): Update.
5884 (ada_lookup_symbol_list): Update.
5886 * c-valprint.c (c_val_print): Update.
5887 * cp-support.c (cp_lookup_rtti_type): Update.
5888 * jv-lang.c (java_lookup_class, get_java_object_type): Update.
5889 * objc-lang.c (lookup_struct_typedef, find_imps): Update.
5890 * p-valprint.c (pascal_val_print): Update.
5891 * scm-lang.c (scm_lookup_name): Update.
5897 * objc-exp.y: Update.
5900 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
5902 * language.h (struct language_defn): Remove SYMTAB parameter from
5903 la_lookup_symbol_nonlocal callback function pointer.
5905 * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
5906 (ada_lookup_encoded_symbol): Likewise.
5907 * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
5908 Always call fixup_symbol_section.
5909 (ada_lookup_symbol): Remove SYMTAB parameter.
5910 (ada_lookup_symbol_nonlocal): Likewise.
5911 * ada-exp.y (write_object_renaming): Update.
5912 (find_primitive_type): Likewise.
5914 * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
5915 (cp_lookup_symbol_namespace): Likewise.
5916 * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
5917 (lookup_symbol_file): Likewise.
5918 (lookup_possible_namespace_symbol): Likewise.
5919 (cp_lookup_symbol_nonlocal): Likewise.
5920 (cp_lookup_symbol_namespace): Likewise.
5921 (cp_lookup_nested_type): Update.
5923 * scm-valprint.c (scm_inferior_print): Update.
5924 * valops.c (value_maybe_namespace_elt): Update.
5926 * solist.h (struct target_so_ops): Remove SYMTAB parameter from
5927 lookup_lib_global_symbol callback function pointer.
5928 (solib_global_lookup): Remove SYMTAB parameter.
5929 * solib.c (solib_global_lookup): Remove SYMTAB parameter.
5930 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5932 * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
5933 (lookup_symbol_static): Likewise.
5934 (lookup_symbol_global): Likewise.
5935 (lookup_symbol_aux_block): Likewise.
5936 (lookup_global_symbol_from_objfile): Likewise.
5937 * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
5938 (lookup_symbol_aux_local): Likewise.
5939 (lookup_symbol_aux_block): Likewise.
5940 (lookup_symbol_aux_symtabs): Likewise.
5941 (lookup_symbol_aux_psymtabs): Likewise.
5942 (lookup_global_symbol_from_objfile): Likewise.
5943 (basic_lookup_symbol_nonlocal): Likewise.
5944 (lookup_symbol_static): Likewise.
5945 (lookup_symbol_global): Likewise.
5947 (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
5949 2008-05-17 Pedro Alves <pedro@codesourcery.com>
5951 * remote.c (init_extended_remote_ops): Fix typo.
5953 2008-05-16 Pedro Alves <pedro@codesourcery.com>
5955 * NEWS: Mention new DICOS x86 target configuration.
5957 2008-05-16 Pedro Alves <pedro@codesourcery.com>
5958 Ulrich Weigand <uweigand@de.ibm.com>
5960 * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
5961 * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
5963 * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
5964 use it instead of ginfo->value.address. Look up minimal symbol by
5965 address and name. Assume OBJFILE is non-NULL.
5966 (fixup_symbol_section): Ensure we always have an objfile to look
5967 into. Extract and pass to fixup_section the symbol's address that
5968 will match the minimal symbol's address.
5969 (fixup_psymbol_section): Likewise.
5971 (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
5972 overlays and the addrmap returned the wrong section.
5974 * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
5975 calling fixup_symbol_section.
5977 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
5979 * minsyms.c: Include "target.h".
5980 (find_solib_trampoline_target): Handle minimal symbols pointing
5981 to function descriptors as well.
5982 * Makefile.in (minsyms.o): Update dependencies.
5984 * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
5985 (ppc64_standard_linkage1): ... this. Fix optional instructions.
5986 (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
5987 (PPC64_STANDARD_LINKAGE1_LEN): ... this.
5988 (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
5989 (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
5990 (ppc64_standard_linkage_target): Rename to ...
5991 (ppc64_standard_linkage1_target): ... this.
5992 (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
5993 (ppc64_skip_trampoline_code): Support three variants of standard
5994 linkage stubs. Call find_solib_trampoline_target to handle
5997 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
5999 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
6000 ppc64_sysv_abi_adjust_breakpoint_address.
6001 * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
6002 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
6004 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6006 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
6007 (ppc_linux_init_abi): Install find_solib_trampoline_target instead
6008 of ppc_linux_skip_trampoline_code.
6010 2008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
6012 * gdbarch.sh: Delete dwarf_reg_to_regnum.
6013 * gdbarch.c, gdbarch.h: Regenerated.
6014 * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
6015 hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
6016 s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
6018 2008-05-15 Pedro Alves <pedro@codesourcery.com>
6020 * linux-nat.c (trap_ptid): Delete.
6021 (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
6023 * linux-thread-db.c (thread_db_wait): Adjust.
6025 2008-05-15 Joel Brobecker <brobecker@adacore.com>
6027 * linespec.c (decode_line_1): Fix a couple of comments.
6029 2008-05-15 Alan Modra <amodra@bigpond.net.au>
6031 * dbxread.c: Formatting.
6032 (INTERNALIZE_SYMBOL): Init n_other.
6033 (set_namestring): Take pointer to nlist arg rather than struct
6034 copy. Update all callers.
6036 2008-05-15 Andreas Schwab <schwab@suse.de>
6038 * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
6039 (dwarf2read.o): Add $(addrmap_h).
6041 2008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6043 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
6044 (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
6045 to handle ppc32 PLT entries.
6046 (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
6049 2008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6051 * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
6052 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
6053 lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
6054 (lookup_minimal_symbol_by_pc_section): Use
6055 lookup_minimal_symbol_by_pc_section_1.
6056 (lookup_solib_trampoline_symbol_by_pc): Likewise.
6058 2008-05-13 Joel Brobecker <brobecker@adacore.com>
6060 * findcmd.c: Add #include "gdb_stdint.h".
6061 * Makefile.in (findcmd.o): Update dependencies.
6063 2008-05-11 David S. Miller <davem@davemloft.net>
6065 * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
6066 long double size override, Linux does use 128-bit now.
6068 * sparc-linux-tdep.c (PSR_SYSCALL): Define.
6069 (sparc_linux_write_pc): New function.
6070 (sparc32_linux_init_abi): Register it.
6071 * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
6072 (sparc64_linux_write_pc): New function.
6073 (sparc64_linux_init_abi): Register it.
6075 * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
6076 dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
6078 2008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6080 * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
6081 and info.tdep_info before calling gdbarch_init_osabi.
6083 2008-05-09 Joel Brobecker <brobecker@adacore.com>
6085 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
6086 the type of the right hand side of the assignment to the type
6087 of the left hand side if the left hand side is a convenience
6090 2008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
6092 * NEWS: Mention gdbserver bi-arch capability.
6094 2008-05-09 Doug Evans <dje@google.com>
6097 * NEWS: Document find command and qSearch:memory packet.
6098 * Makefile.in (SFILES): Add findcmd.c.
6099 (COMMON_OBJS): Add findcmd.o.
6100 (findcmd.o): New rule.
6101 * findcmd.c: New file.
6102 * target.h (target_ops): New member to_search_memory.
6103 (simple_search_memory): Declare.
6104 (target_search_memory): Declare.
6105 * target.c (simple_search_memory): New fn.
6106 (target_search_memory): New fn.
6107 * remote.c (PACKET_qSearch_memory): New packet kind.
6108 (remote_search_memory): New fn.
6109 (init_remote_ops): Init to_search_memory.
6110 (init_extended_remote_ops): Ditto.
6111 (_initialize_remote): Add qSearch:memory packet config command.
6113 2008-05-09 Eli Zaretskii <eliz@gnu.org>
6115 * thread.c (_initialize_thread): Don't use commas and periods in
6116 first line of doc string of "set/show print thread-events".
6118 2008-05-08 Joel Brobecker <brobecker@adacore.com>
6120 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
6121 Update for unwinder changes.
6123 2008-05-08 Joel Brobecker <brobecker@adacore.com>
6125 * frame.c (get_frame_base_address, get_frame_locals_address)
6126 (get_frame_args_address): Pass the correct frame when calling
6127 frame_base_find_by_frame.
6129 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6131 * remote.c (extended_remote_attach_1): Call target_find_description.
6133 2008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
6135 * remote.c (extended_remote_create_inferior_1): Clean up
6136 before marking the target running.
6138 2008-05-08 Joel Brobecker <brobecker@adacore.com>
6140 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
6143 2008-05-07 Joel Brobecker <brobecker@adacore.com>
6145 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
6146 sparc64-sol2-tdep.c: Update for unwinder changes.
6148 2008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
6150 * cp-support.c (mangled_name_to_comp): Initialize storage.
6151 (unqualified_name_from_comp): Likewise.
6153 2008-05-07 Jie Zhang <jie.zhang@analog.com>
6155 * remote.c (remote_insert_breakpoint): Call get_remote_state
6156 after gdbarch_breakpoint_from_pc is called.
6157 (remote_insert_hw_breakpoint): Likewise.
6159 2008-05-06 Joel Brobecker <brobecker@adacore.com>
6161 * valprint.c (val_print): Add new language parameter and use it
6162 instead of using the current_language. Update calls to val_print
6164 (common_val_print): Add new langauge parameter and pass it to
6166 * value.h (struct language_defn): Add opaque declaration.
6167 (val_print, common_val_print): Update declarations.
6168 * stack.c (print_frame_args): Update call to common_val_print
6169 using the appropriate language.
6170 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
6171 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
6172 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
6173 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
6174 #include "language.h" if necessary.
6175 Update calls to val_print and common_val_print.
6176 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
6177 Update dependencies.
6179 2008-05-06 Joel Brobecker <brobecker@adacore.com>
6181 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
6182 pointing inside a non-executable section as function descriptors.
6184 2008-05-06 Pedro Alves <pedro@codesourcery.com>
6186 * inf-loop.c (inferior_event_handler): Run all continuations and
6187 print any language change before running the breakpoint commands.
6189 2008-05-06 Joel Brobecker <brobecker@adacore.com>
6191 * frame-unwind.c (frame_unwind_got_bytes): New function.
6192 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
6193 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
6194 for unwinder changes.
6196 2008-05-05 Doug Evans <dje@google.com>
6198 * NEWS: Mention new /m modifier for disassemble command.
6199 * cli/cli-cmds.c (print_disassembly): New function.
6200 (disassemble_current_function): New function
6201 (disassemble_command): Recognize /m modifier, print mixed
6203 (init_cli_cmds): Update disassemble help text.
6205 2008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
6207 * xtensa-tdep.c: Update for unwinder changes.
6209 2008-05-05 Andreas Schwab <schwab@suse.de>
6211 Update m68k port for unwinder changes.
6212 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
6213 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
6214 (m68k_frame_unwind): Use default_frame_sniffer.
6215 (m68k_frame_sniffer): Remove.
6216 (m68k_frame_base_address): Expect this_frame.
6217 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
6219 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
6220 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
6221 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
6222 parameter instead of pc value.
6223 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
6225 (m68k_linux_sigtramp_frame_this_id)
6226 (m68k_linux_sigtramp_frame_prev_register)
6227 (m68k_linux_sigtramp_frame_sniffer): Update signature.
6228 (m68k_linux_sigtramp_frame_unwind): Use
6229 m68k_linux_sigtramp_frame_sniffer.
6230 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
6232 * m68klinux-nat.c (store_register): Fix typo.
6234 2008-05-05 Pedro Alves <pedro@codesourcery.com>
6236 * infcmd.c (step_1): Put thread id on the stack to avoid possible
6239 2008-05-05 Luis Machado <luisgpm@br.ibm.com>
6241 * symfile.c (reread_symbols): Update objfile's entry point.
6243 2008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
6244 Joel Brobecker <brobecker@adacore.com>
6246 * ada-lang.c: Update throughout to use symbol_matches_domain
6247 instead of matching the symbol domain explictly.
6248 * dwarf2read.c (add_partial_symbol): Do not add new psym for
6249 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
6250 class as typedefs. See lookup_partial_symbol function.
6251 (new_symbol): Similar to add_partial_symbol, do not create
6252 symbol for the typedef. See lookup_block_symbol.
6253 * symtab.c (symbol_matches_domain): New function, takes care
6254 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
6255 (lookup_partial_symbol): Use symbol_matches_domain to see if the
6256 found psym domain matches the given domain.
6257 (lookup_block_symbol): Likewise.
6259 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
6261 * top.c (command_line_handler_continuation): Remove.
6262 (execute_command): Do not install the above.
6264 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
6266 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
6267 and catch all exceptions from it.
6268 * top.c (command_line_handler_continuation): Don't
6269 call bpstat_do_action here.
6271 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
6273 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
6274 (struct die_info): Remove type.
6275 (read_type_die, read_typedef, read_base_type, read_subrange_type)
6276 (read_structure_type, read_enumeration_type, read_array_type)
6277 (read_tag_pointer_type, read_tag_ptr_to_member_type)
6278 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
6279 (read_tag_string_type, read_subroutine_type, read_set_type)
6280 (read_unspecified_type): Delete prototypes. Remove check for
6281 already-loaded type. Return the new type.
6282 (set_die_type): Return the new type.
6283 (reset_die_and_siblings_types): Delete.
6284 (load_comp_unit, load_full_comp_unit): Set type_hash.
6285 (process_queue): Remove call to reset_die_and_siblings_types.
6286 (process_die): Do not read most types here. Use read_type_die
6288 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
6289 (quirk_gcc_member_function_pointer): Return the new type.
6290 (process_structure_scope, process_enumeration_scope): Use
6291 get_die_type and read the DIE's type.
6292 (read_full_die): Do not initialize die->type.
6293 (tag_type_to_type): Use read_type_die.
6294 (read_type_die): Check for already defined types. Return the
6296 (determine_prefix): Use get_die_type.
6297 (set_die_type): Return the type.
6298 (get_die_type): Take a CU argument. Check for no type_hash.
6300 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
6302 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
6305 2008-05-04 Pedro Alves <pedro@codesourcery.com>
6307 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
6308 and bp_longjmp_resume breakpoints.
6309 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
6311 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
6312 breakpoints. Create bp_longjmp breakpoints as momentary
6314 (enable_longjmp_breakpoint): Delete.
6315 (set_longjmp_breakpoint): New.
6316 (disable_longjmp_breakpoint): Delete.
6317 (delete_longjmp_breakpoint): New.
6318 (set_longjmp_resume_breakpoint): Delete.
6319 (set_momentary_breakpoint_at_pc): New.
6320 (breakpoint_re_set_one): Don't delete bp_longjmp and
6321 bp_longjmp_resume breakpoints.
6322 (breakpoint_re_set): Don't create longjmp and longjmp-resume
6325 * infrun.c (step_resume_breakpoint): Add comment.
6326 (struct execution_control_state): Delete handling_longjmp member.
6327 (init_execution_control_state). Don't clear handling_longjmp.
6328 (context_switch): Don't context switch handling_longjmp.
6329 (handle_inferior_event): If handling a bp_longjmp breakpoint,
6330 create a bp_longjmp_resume breakpoint, and set it as current
6331 step_resume_breakpoint, then step over the longjmp breakpoint. If
6332 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
6333 breakpoint, delete the longjmp-resume breakpoint, and stop
6335 (currently_stepping): Remove handling_longjmp from expression.
6336 (insert_step_resume_breakpoint_at_sal): Update comment.
6337 (insert_longjmp_resume_breakpoint): New.
6339 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
6340 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
6342 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
6343 (set_longjmp_resume_breakpoint): Delete declaration.
6345 * gdbthread.h (save_infrun_state): Remove handling_longjmp
6347 (load_infrun_state): Delete *handling_longjmp parameter.
6348 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
6350 (load_infrun_state): Delete *handling_longjmp parameter. Update
6353 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
6354 (delete_longjmp_breakpoint_cleanup): New.
6355 (step_1): Call set_longjmp_breakpoint instead of
6356 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
6357 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
6358 (step_1_continuation): Pass thread id in the continuation args to
6360 (step_once): Add thread parameter. Pass thread id the the
6363 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6365 Set CU BASE_ADDRESS already from partial DIEs.
6366 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
6367 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
6368 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
6369 from these variables if it was still unset.
6371 * Makefile.in: Update dependencies.
6372 * dwarf2read.c: Include "addrmap.h"
6373 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
6374 (dwarf2_ranges_read): New prototype.
6375 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
6376 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
6377 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
6378 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
6379 comment for it. Add the found ranges to RANGES_PST. New variable
6380 BASEADDR, initialize it the common way.
6381 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
6382 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
6383 HAS_RANGES_OFFSET for the later processing.
6384 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
6385 * symtab.c: Include "addrmap.h"
6386 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
6387 Move the psymtab locator into ...
6388 (find_pc_sect_psymtab_closer): ... a new function.
6390 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
6392 * arch-utils.c (gdbarch_update_p): Use default values for
6393 info.abfd and info.target_desc if they are NULL.
6394 (gdbarch_from_bfd): Remove assertion.
6395 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
6396 using the current target description.
6397 (gdbarch_info_fill): Do not use default values for info->abfd
6398 and info->target_desc.
6400 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6402 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
6404 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
6406 * inferior.h (read_pc_pid, write_pc_pid): Remove.
6407 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
6409 * regcache.c (read_pc_pid): Remove, replace by ...
6410 (regcache_read_pc): ... this function.
6411 (write_pc_pid): Remove, replace by ...
6412 (regcache_write_pc): ... this function.
6413 (read_pc, write_pc): Update.
6415 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
6416 write_pc_pid by regcache_read_pc and regcache_write_pc.
6417 (displaced_step_fixup): Likewise.
6418 (resume): Likewise. Use regcache arch instead of current_gdbarch.
6419 (prepare_to_proceed): Likewise.
6420 (proceed): Likewise.
6421 (adjust_pc_after_break): Likewise.
6422 (handle_inferior_event): Likewise.
6424 * linux-nat.c (cancel_breakpoint): Likewise.
6425 * linux-thread-db.c (check_event): Likewise.
6426 * aix-thread.c (aix_thread_wait): Likewise.
6427 * tracepoint.c (trace_dump_command): Likewise.
6429 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6431 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
6432 SYMBOL_LOCATION_BATON.
6434 2008-05-04 Vladimir Prus <vladimir@codesourcery.com>
6436 * target.h (struct target_ops): New field to_auxv_parse.
6437 * auxv.c (default_auxv_parse): New, renamed from previous
6439 (target_auxv_parse): Try to call target method. Fallback to
6440 default_auxv_parse if not found.
6441 * procfs.c (procfs_auxv_parse): New.
6442 (init_procfs_ops): On Solaris, in 64-bit mode, install
6445 2008-05-03 Adam Nemet <anemet@caviumnetworks.com>
6447 * symfile.c (add_symbol_file_command): Use paddress rather than
6448 hex_string to print the address.
6450 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
6452 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
6453 return the null frame ID to terminate the backtrace.
6455 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
6457 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
6458 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
6459 (SIG_FRAME_PC_OFFSET): Likewise.
6460 (SIG_FRAME_LR_OFFSET): Likewise.
6461 (SIG_FRAME_FP_OFFSET): Likewise.
6462 (rs6000_push_dummy_call): Likewise.
6463 (rs6000_return_value): Likewise.
6464 (rs6000_convert_from_func_ptr_addr): Likewise.
6465 (branch_dest, rs6000_software_single_step): Likewise.
6466 (deal_with_atomic_sequence): Rename to ...
6467 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
6468 Do not call branch_dest; inline required parts of that function.
6469 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
6470 with SYMBOL_LINKAGE_NAME.
6471 (struct reg, regsize): Delete.
6472 (read_memory_addr): Delete; inline into callers.
6473 (rs6000_skip_prologue): Move after skip_prologue.
6474 (skip_prologue): Remove prototype.
6475 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
6476 initialization as if this variable were true. Do not install
6477 ppc64_sysv_abi_adjust_breakpoint_address.
6479 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
6480 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
6482 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
6483 (SIG_FRAME_PC_OFFSET): Likewise.
6484 (SIG_FRAME_LR_OFFSET): Likewise.
6485 (SIG_FRAME_FP_OFFSET): Likewise.
6486 (rs6000_push_dummy_call): Likewise.
6487 (rs6000_return_value): Likewise.
6488 (rs6000_convert_from_func_ptr_addr): Likewise.
6489 (branch_dest, rs6000_software_single_step): Likewise. Replace
6490 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
6491 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
6492 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
6493 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
6494 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
6496 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
6497 (AIX_TEXT_SEGMENT_BASE): New macro.
6498 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
6499 by AIX_TEXT_SEGMENT_BASE.
6501 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
6502 (struct gdbarch_tdep): Remove text_segment_base member.
6503 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
6504 ppc64_sysv_abi_adjust_breakpoint_address.
6506 * Makefile.in (rs6000-tdep.o): Update dependencies.
6507 (rs6000-aix-tdep.o): Likewise.
6509 2008-05-03 Luis Machado <luisgpm@br.ibm.com>
6510 Thiago Jung Bauermann <bauerman@br.ibm.com>
6512 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
6513 * doublest.c (convert_typed_floating): Fix typo in comment.
6514 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6515 * frame-unwind.h (frame_sniffer_ftype): Likewise.
6516 * frame.c (frame_unwind_address_in_block): Likewise.
6517 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
6518 * symtab.h (struct symbol): Likewise.
6519 * tramp-frame.h (struct trad_frame_cache): Likewise.
6520 * value.c (allocate_repeat_value): Likewise.
6522 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
6524 * infrun.c (handle_inferior_event): Do not insert breakpoints at
6525 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
6527 2008-05-03 Pedro Alves <pedro@codesourcery.com>
6529 * parse.c (parse_exp_in_context): Don't override
6530 expression_context_pc if get_selected_block returned a valid
6533 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
6535 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
6536 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
6537 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
6539 * c-typeprint.c (c_type_print_base): Delete handling of template
6541 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
6542 (METHOD_PTR_TO_VOFFSET): Delete.
6543 * defs.h (QUIT_FIXME): Delete.
6544 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
6545 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
6546 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
6547 ninstantiations, and instantiations.
6548 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
6549 (TYPE_FN_FIELD_INLINED): Delete.
6550 * srec.h (SREC_BINARY): Delete.
6551 * symtab.c (symbol_init_demangled_name): Delete.
6552 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
6553 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
6554 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
6555 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
6556 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
6557 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
6558 * target.h (enum thread_control_capabilities): Delete tc_switch.
6559 (target_can_switch_threads): Delete.
6561 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
6563 * Makefile.in (objfiles.o): Update.
6564 * exec.c (exec_set_section_address): Support p->addr != 0.
6565 * objfiles.c (objfile_relocate): Update exec_ops section
6567 * symfile.c (place_section): Move exec_set_section_address call...
6568 (default_symfile_offsets): ...to here.
6570 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
6572 * Makefile.in (ppc_linux_tdep_h): New macro.
6573 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
6574 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
6575 (powerpc_e500l_c): Likewise.
6576 (ppc-linux-nat.o): Update dependencies.
6577 (ppc-linux-tdep.o): Update dependencies.
6578 (rs6000-tdep.o): Update dependencies.
6580 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
6581 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
6582 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
6583 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
6584 (tdesc_powerpc_e500): Remove.
6586 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
6587 and "features/rs6000/powerpc-altivec64.c".
6588 (ppc_supply_reg, ppc_collect_reg): Make global.
6589 (variants): Use tdesc_powerpc_32 for "powerpc" and
6590 tdesc_powerpc_altivec64 for "powerpc64".
6591 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
6593 * ppc-linux-tdep.h: New file.
6595 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
6596 Include "features/rs6000/powerpc-32l.c".
6597 Include "features/rs6000/powerpc-altivec32l.c".
6598 Include "features/rs6000/powerpc-64l.c".
6599 Include "features/rs6000/powerpc-altivec64l.c".
6600 Include "features/rs6000/powerpc-e500l.c".
6601 (ppc_linux_supply_gregset): New function.
6602 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
6603 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
6604 (ppc64_linux_gregset): Likewise.
6605 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
6606 (ppc_linux_trap_reg_p): New function.
6607 (ppc_linux_write_pc): New function.
6608 (ppc_linux_core_read_description): New function.
6609 (ppc_linux_init_abi): Install ppc_linux_write_pc and
6610 ppc_linux_core_read_description. Install orig_r3 and trap
6611 registers if present in the target description.
6612 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
6614 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
6615 (PT_ORIG_R3, PT_TRAP): Define if necessary.
6616 (ppc_register_u_addr): Handle orig_r3 and trap registers.
6617 (fetch_ppc_registers): Likewise.
6618 (store_ppc_registers): Likewise.
6619 (store_register): Likewise.
6620 (ppc_linux_read_description): Check whether AltiVec is supported.
6621 Check whether inferior is 32-bit or 64-bit. Return the appropriate
6622 Linux target description.
6624 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
6625 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
6626 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
6627 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
6628 rs6000/powerpc-e500. Update -expedite variables accordingly.
6630 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
6631 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
6632 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
6633 * features/rs6000/powerpc-e500.c: Regenerate.
6634 * features/rs6000/powerpc-32.c: Regenerate.
6635 * features/rs6000/powerpc-64.c: Regenerate.
6637 * features/rs6000/power-linux.xml: New file.
6638 * features/rs6000/power64-linux.xml: New file.
6639 * features/rs6000/powerpc-32l.xml: New file.
6640 * features/rs6000/powerpc-altivec32l.xml: New file.
6641 * features/rs6000/powerpc-64l.xml: New file.
6642 * features/rs6000/powerpc-altivec64l.xml: New file.
6643 * features/rs6000/powerpc-e500l.xml: New file.
6644 * features/rs6000/powerpc-32l.c: New (generated) file.
6645 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
6646 * features/rs6000/powerpc-64l.c: New (generated) file.
6647 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
6648 * features/rs6000/powerpc-e500l.xml: New (generated) file.
6650 * regformats/reg-ppc.dat: Remove.
6651 * regformats/reg-ppc64.dat: Remove.
6652 * regformats/rs6000/powerpc-32.dat: Remove.
6653 * regformats/rs6000/powerpc-64.dat: Remove.
6654 * regformats/rs6000/powerpc-e500.dat: Remove.
6655 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
6656 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
6657 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
6658 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
6659 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
6661 2008-05-03 Pedro Alves <pedro@codesourcery.com>
6663 * thread.c (delete_thread): Call observer_notify_thread_exit.
6664 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
6665 thread_exit observer.
6666 (mi_thread_exit): New.
6668 2008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6670 * breakpoint.c (create_exception_catchpoint): Remove prototype
6671 for already deleted function.
6672 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
6673 * frame.h (show_stack_frame): Remove prototype.
6674 * stack.c (show_stack_frame): Remove empty, unused function.
6675 * source.c (symtab_to_fullname, print_source_lines): Small fix
6677 * value.c (show_values): Update comments to mention "show values"
6678 command instead of "info history".
6680 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
6682 * linespec.c: Include "target.h".
6683 (minsym_found): Handle minimal symbols pointing to function
6684 descriptors. Use find_function_start_pc.
6685 * minsyms.c (msymbol_objfile): New function.
6686 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
6687 to function descriptors.
6688 * symtab.c (fixup_section): Only use minimal symbol at the same
6689 address to determine section of a symbol.
6690 (find_function_start_pc): New function.
6691 (find_function_start_sal): Use it.
6692 * symtab.h (msymbol_objfile): Add prototype.
6693 (find_function_start_pc): Likewise.
6694 * value.c: Include "objfiles.h".
6695 (value_fn_field): Handle minimal symbols pointing to function
6697 * Makefile.in (linespec.o): Update dependencies.
6698 (value.o): Likewise.
6700 2008-05-02 Joel Brobecker <brobecker@adacore.com>
6702 * ada-lang.c (unwrap_value): Handle the case where the "F" field
6703 inside a PAD type is a bitfield.
6705 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
6707 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
6708 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
6709 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
6710 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
6711 Allow typedefs when checking for function pointer arguments.
6712 Right-align small structs passed on the stack.
6713 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
6714 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
6715 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
6717 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
6719 * Makefile.in (arm-tdep.o): Update.
6720 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
6721 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
6722 (arm_pc_is_thumb): Use mapping symbols.
6723 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
6724 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
6725 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
6726 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
6727 * gdbarch.sh: Add record_special_symbol.
6728 * gdbarch.c, gdbarch.h: Regenerated.
6729 * objfiles.c (struct objfile_data): Add cleanup member.
6730 (register_objfile_data_with_cleanup): New function, from
6731 register_objfile_data.
6732 (register_objfile_data): Use it.
6733 (objfile_free_data): Call clear_objfile_data.
6734 (clear_objfile_data): Call cleanup functions.
6735 * objfiles.h (register_objfile_data_with_cleanup): Declare.
6737 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
6739 * objfiles.c (init_entry_point_info): Handle shared libraries.
6741 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
6743 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
6746 2008-05-02 Jim Blandy <jimb@codesourcery.com>
6747 Pedro Alves <pedro@codesourcery.com>
6749 Implement displaced stepping.
6751 * gdbarch.sh (max_insn_length): New 'variable'.
6752 (displaced_step_copy, displaced_step_fixup)
6753 (displaced_step_free_closure, displaced_step_location): New
6755 (struct displaced_step_closure): Add forward declaration.
6756 * gdbarch.c, gdbarch.h: Regenerated.
6758 * arch-utils.c: #include "objfiles.h".
6759 (simple_displaced_step_copy_insn)
6760 (simple_displaced_step_free_closure)
6761 (displaced_step_at_entry_point): New functions.
6762 * arch-utils.h (simple_displaced_step_copy_insn)
6763 (simple_displaced_step_free_closure)
6764 (displaced_step_at_entry_point): New prototypes.
6766 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
6767 (I386_MAX_MATCHED_INSN_LEN): ... this.
6768 (i386_absolute_jmp_p, i386_absolute_call_p)
6769 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
6770 (i386_displaced_step_fixup): New functions.
6771 (struct i386_insn, i386_match_insn): Update.
6772 (i386_gdbarch_init): Set gdbarch_max_insn_length.
6773 * i386-tdep.h (I386_MAX_INSN_LEN): New.
6774 (i386_displaced_step_fixup): New prototype.
6775 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
6776 Register gdbarch_displaced_step_copy,
6777 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
6778 and gdbarch_displaced_step_location functions.
6780 * infrun.c (debug_displaced): New variable.
6781 (show_debug_displaced): New function.
6782 (struct displaced_step_request): New struct.
6783 (displaced_step_request_queue, displaced_step_ptid)
6784 (displaced_step_gdbarch, displaced_step_closure)
6785 (displaced_step_original, displaced_step_copy)
6786 (displaced_step_saved_copy, can_use_displaced_stepping): New
6788 (show_can_use_displaced_stepping, use_displaced_stepping)
6789 (displaced_step_clear, cleanup_displaced_step_closure)
6790 (displaced_step_dump_bytes, displaced_step_prepare)
6791 (displaced_step_clear_cleanup, write_memory_ptid)
6792 (displaced_step_fixup): New functions.
6793 (resume): Call displaced_step_prepare.
6794 (proceed): Call read_pc once, and remember the value. If using
6795 displaced stepping, don't remove breakpoints.
6796 (handle_inferior_event): Call displaced_step_fixup. Add some
6797 debugging output. When we try to step over a breakpoint, but get
6798 a signal to deliver to the thread instead, ensure the step-resume
6799 breakpoint is actually inserted. If a thread hop is needed, and
6800 displaced stepping is enabled, don't remove breakpoints.
6801 (init_wait_for_inferior): Call displaced_step_clear.
6802 (_initialize_infrun): Add "set debug displaced" command. Add
6803 "maint set can-use-displaced-stepping" command. Clear
6804 displaced_step_ptid.
6805 * inferior.h (debug_displaced): Declare variable.
6806 (displaced_step_dump_bytes): Declare function.
6808 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
6811 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
6813 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
6814 (arm_force_mode_string, arm_show_fallback_mode)
6815 (arm_show_force_mode): New.
6816 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
6818 (_initialize_arm_tdep): Add "set arm fallback-mode"
6819 and "set arm force-mode".
6820 * NEWS: Document new commands.
6822 2008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
6824 * main.h (batch_silent): Declare.
6825 * event-top.c: Include main.h.
6826 (gdb_setup_readline): Remove extern batch_silent declaration.
6827 * infrun.c (normal_stop): Don't print source location when running in
6828 --batch-silent mode.
6829 * Makefile.in (event-top.o): Add main.h dependency.
6831 2008-05-02 Andreas Schwab <schwab@suse.de>
6833 * target.h (struct target_ops): Add
6834 to_watchpoint_addr_within_range.
6835 (target_watchpoint_addr_within_range): New function.
6836 * target.c (update_current_target): Inherit
6837 to_watchpoint_addr_within_range, defaulting to
6838 default_watchpoint_addr_within_range.
6839 (default_watchpoint_addr_within_range): New function.
6840 (debug_to_watchpoint_addr_within_range): New function.
6841 (setup_target_debug): Set to_watchpoint_addr_within_range.
6842 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
6844 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
6845 * breakpoint.c (watchpoints_triggered): Use
6846 target_watchpoint_addr_within_range.
6848 2008-05-01 Pedro Alves <pedro@codesourcery.com>
6850 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
6851 (i[34567]86-*-dicos*, x86_64-*-dicos*):
6852 Set gdb_osabi to GDB_OSABI_DICOS.
6854 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
6855 * osabi.c (gdb_osabi_name): Add "DICOS".
6857 * i386-dicos-tdep.c: New file.
6859 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
6860 (ALLDEPFILES): Add i386-dicos-tdep.c.
6861 (i386-dicos-tdep.o): New rule.
6863 2008-05-01 Pedro Alves <pedro@codesourcery.com>
6865 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
6866 and register the fork's PTID as a thread.
6868 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
6871 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
6872 assign its value to the breakpoint created.
6873 (create_breakpoints): Add breakpoint_ops argument and pass it
6874 to create_breakpoint call.
6875 (break_command_really): Add breakpoint_ops argument and pass/assign
6877 (break_command_1): Pass NULL as ops argument.
6878 (set_breakpoint): Pass NULL as ops argument.
6879 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
6880 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
6881 catch and throw catchpoints.
6883 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
6886 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
6887 translate signal numeric value from the target to GDB's enum
6889 * gdbarch.c, gdbarch.h: Regenerated.
6890 * gdbarch.sh: Added two new functions target_signal_from_host and
6891 target_signal_to_host.
6892 * target.h (default_target_signal_from_host,
6893 default_target_signal_to_host): New functions - declarations.
6894 * signals/signals.c (struct gdbarch): New declaration.
6895 (default_target_signal_to_host, default_target_signal_from_host): New
6898 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
6899 Pedro Alves <pedro@codesourcery.com>
6901 Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff
6902 Johnston <jjohnstn@redhat.com>.
6904 * NEWS: Mention attach to stopped process fix.
6905 * infcmd.c (detach_command, disconnect_command): Discard the thread
6907 * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
6908 attaching. Use signal_stop_state.
6909 (signal_stop_state): Check stop_soon.
6910 * linux-nat.c (kill_lwp): Declare earlier.
6911 (pid_is_stopped, linux_nat_post_attach_wait): New.
6912 (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update
6914 (linux_nat_attach): Use linux_nat_post_attach_wait.
6915 (detach_callback, linux_nat_detach): Improve handling for signalled
6917 (linux_nat_pid_to_str): Always print out the LWP ID if it differs
6918 from the process ID.
6919 * Makefile.in (infcmd.o): Update.
6921 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
6923 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
6924 * arm-tdep.c (arm_frame_is_thumb): New.
6925 (arm_pc_is_thumb): Clarify comment.
6926 (thumb_analyze_prologue): Remove PC special case.
6927 (thumb_scan_prologue): Take a block_addr argument. Use it for
6928 find_pc_partial_function. Remove unused variables.
6929 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
6930 for find_pc_partial_function. Remove PC special case.
6931 (arm_prologue_prev_register): Add special handling for PC and CPSR.
6932 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
6933 (arm_get_next_pc): Use arm_frame_is_thumb.
6934 (arm_write_pc): Use CPSR_T instead of 0x20.
6935 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
6936 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
6938 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
6939 DWARF2_FRAME_REG_FN.
6940 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
6941 DWARF2_FRAME_REG_FN.
6942 (struct dwarf2_frame_state_reg): Add FN to loc union.
6944 2008-05-01 Nick Roberts <nickrob@snap.net.nz>
6946 * exec.c (print_section_info): Add missing '\n'.
6948 2008-05-01 Vladimir Prus <vladimir@codesourcery.com>
6950 * thread.c (add_thread): Move observer call to ...
6951 (add_thread_silent): ... here.
6953 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
6955 * rs6000-tdep.c: Update for unwinder changes.
6956 * ppcobsd-tdep.c: Likewise.
6958 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
6960 * s390-tdep.c: Update for unwinder changes.
6962 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
6964 * spu-tdep.c: Update for unwinder changes.
6966 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
6968 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
6969 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
6970 sparc64-linux-tdep.c: Update for unwinder changes.
6972 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
6974 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
6975 for unwinder changes.
6976 * mips-tdep.c: Likewise.
6977 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
6980 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
6982 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
6985 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
6987 Update i386 and amd64 ports for unwinder changes.
6989 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
6990 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
6991 (amd64_frame_unwind): Use default_frame_sniffer.
6992 (amd64_frame_sniffer): Delete.
6993 (amd64_sigtramp_frame_cache): Expect this_frame.
6994 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
6995 (amd64_sigtramp_frame_sniffer): Update signature.
6996 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
6997 (amd64_frame_base_address): Expect this_frame.
6998 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
7000 (amd64_init_abi): Use set_gdbarch_dummy_id and
7001 frame_unwind_append_unwinder.
7002 * i386-tdep.c (i386_frame_cache): Expect this_frame.
7003 (i386_frame_this_id, i386_frame_prev_register): Update signature.
7004 (i386_frame_unwind): Use default_frame_sniffer.
7005 (i386_frame_sniffer): Delete.
7006 (i386_sigtramp_frame_cache): Expect this_frame.
7007 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
7008 (i386_sigtramp_frame_sniffer): Update signature.
7009 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
7010 (i386_frame_base_address): Update signature.
7011 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
7012 (i386_push_dummy_call): Update comment.
7013 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
7015 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
7016 and frame_unwind_append_unwinder.
7017 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
7018 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
7019 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
7020 i386nbsd-tdep.c: Update for unwinder changes.
7022 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7024 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
7025 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
7027 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
7028 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
7029 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
7031 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
7033 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
7035 * tramp-frame.h (struct tramp_frame): Update signature of init.
7036 * Makefile.in (trad-frame.o): Update.
7038 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7040 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
7041 (execute_stack_op): Put this_frame in the baton.
7042 (execute_cfa_program): Take this_frame.
7043 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
7044 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
7045 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
7046 (dwarf2_frame_this_id): Adjust to work on this_frame.
7047 (dwarf2_signal_frame_this_id): Delete.
7048 (dwarf2_frame_prev_register): Update signature. Use new frame
7050 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
7051 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
7052 dwarf2_frame_sniffer.
7053 (dwarf2_append_unwinders): New.
7054 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
7056 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
7057 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
7058 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
7059 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
7060 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
7061 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
7062 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
7063 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
7064 (dwarf2_append_unwinders): Declare.
7065 (dwarf2_frame_base_sniffer): Update declaration.
7066 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
7069 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7071 Convert frame unwinders to use the current frame and
7074 * frame.c (frame_debug): Make global.
7075 (get_frame_id): Pass this frame to unwinder routines.
7076 (frame_pc_unwind): Remove unused unwind->prev_pc support.
7077 (do_frame_register_read): Do not discard the return value of
7078 frame_register_read.
7079 (frame_register_unwind): Remove debug messages. Use
7080 frame_unwind_register_value.
7081 (frame_unwind_register_value, get_frame_register_value): New
7083 (create_new_frame, get_frame_base_address, get_frame_locals_address)
7084 (get_frame_args_address, get_frame_type): Pass this frame to
7086 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
7088 * frame.h: Update comments.
7089 (frame_debug, frame_unwind_register_value, get_frame_register_value)
7090 (frame_prepare_for_sniffer): Declare.
7091 * frame-unwind.h: Update comments and parameter names.
7092 (default_frame_sniffer): Declare.
7093 (frame_prev_register_ftype): Return a struct value *.
7094 (struct frame_unwind): Remove prev_pc member.
7095 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
7096 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
7097 (frame_unwind_got_register, frame_unwind_got_memory)
7098 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
7099 * frame-base.h: Update comments and parameter names.
7100 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
7101 if necessary. Add debugging output.
7102 * sentinel-frame.c (sentinel_frame_prev_register)
7103 (sentinel_frame_this_id): Update for new signature.
7104 (sentinel_frame_prev_pc): Delete.
7105 (sentinel_frame_unwinder): Remove prev_pc.
7106 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
7108 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
7109 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
7110 (frame_unwind_append_sniffer): Delete.
7111 (frame_unwind_append_unwinder): New function.
7112 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
7113 from unwinders. Use frame_prepare_for_sniffer.
7114 (default_frame_sniffer, frame_unwind_got_optimized)
7115 (frame_unwind_got_register, frame_unwind_got_memory)
7116 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
7117 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
7118 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
7120 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
7121 * gdbarch.c, gdbarch.c: Regenerated.
7122 * frame-base.c (default_frame_base_address)
7123 (default_frame_locals_address, default_frame_args_address): Update
7125 (frame_base_find_by_frame): Pass this frame to unwinder routines.
7126 * infcall.c (call_function_by_hand): Update comments.
7127 * Makefile.in (frame-unwind.o): Update dependencies.
7129 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7131 * ada-lang.c (ada_value_primitive_packed_val): Only check
7132 value_lazy for memory lvals.
7133 * findvar.c (value_of_register_lazy): New function.
7134 (locate_var_value): Only check value_lazy for memory lvals.
7135 * valarith.c (value_subscripted_rvalue): Likewise.
7136 * valops.c (value_fetch_lazy): Handle both memory and register
7138 (search_struct_field, value_slice): Only check value_lazy for memory
7140 * value.c (struct value): Update comment for lazy.
7141 (value_primitive_field): Only check value_lazy for memory lvals.
7142 * value.h (value_lazy): Update comment.
7143 (value_of_register_lazy): Declare.
7145 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7147 * corefile.c (reopen_exec_file): Close any open files.
7149 2008-04-29 Joel Brobecker <brobecker@adacore.com>
7151 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
7152 show_memory_breakpoints to 1 while reading the instruction bundle.
7154 2008-04-29 Joel Brobecker <brobecker@adacore.com>
7156 * gdbarch.sh: Document the return_value method. Explain that
7157 the FUNCTYPE parameter might be NULL.
7158 * gdbarch.h: Regenerated.
7159 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
7160 type when calling using_struct_return, as this is unnecessary
7163 2008-04-28 Joel Brobecker <brobecker@adacore.com>
7165 * terminal.h (create_tty_session): Fix return type.
7167 2008-04-26 Vladimir Prus <vladimir@codesourcery.com>
7169 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
7171 2008-04-26 Joel Brobecker <brobecker@adacore.com>
7173 * breakpoint.c (condition_command, commands_from_control_command)
7174 (break_command_really): Minor reformatting.
7176 2008-04-25 Pedro Alves <pedro@codesourcery.com>
7178 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
7180 2008-04-25 Pedro Alves <pedro@codesourcery.com>
7182 * amd64-tdep.c (amd64_get_longjmp_target): New.
7183 (amd64_init_abi): Register amd64_get_longjmp_target as
7184 gdbarch_get_longjmp_target callback.
7185 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
7187 2008-04-25 Pedro Alves <pedro@codesourcery.com>
7189 * breakpoint.h (enum bpstat_what_main_action): Delete
7190 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
7192 * breakpoint.c (clrs): Delete.
7193 (bpstat_what): Update table.
7195 * infrun.c (handle_inferior_event): Remove
7196 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
7198 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
7200 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
7201 Adjust all prototypes using mi_cmd_args_ftype to use
7203 (struct mi_cmd): Remove the args_func field.
7204 * mi/mi-cmds.c: Don't provide value for the args_func field.
7205 * mi/mi-main.c (mi_execute_async_cli_command)
7206 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
7207 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
7208 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
7209 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
7210 (mi_cmd_target_download): Adjust.
7211 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
7212 (mi_cmd_execute): Do not check for args_func.
7213 (mi_execute_async_cli_command): Adjust.
7214 * mi/mi-parse.c: Don't check for args_func.
7216 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
7218 * breakpoint.c (bpstat_check_location)
7219 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
7220 New, extracted from bpstat_stop_status.
7221 (bpstat_stop_status): Use the above.
7223 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
7225 * mi/mi-main.c (last_async_command): Rename to current_token.
7226 (previous_async_command): Remove.
7227 (mi_cmd_gdb_exit): Adjust.
7228 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
7229 (mi_cmd_target_select): Adjust.
7230 (mi_cmd_execute): Don't set previous_async_command. Free token
7231 here even in async mode.
7232 (mi_execute_async_cli_command): Adjust.
7233 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
7235 (mi_load_progress): Adjust.
7237 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
7239 * infcmd.c (step_1_continuation): Always disable longjmp
7240 breakpoint if we're not going to do another step.
7242 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
7244 exec_cleanup murder.
7245 * breakpoint.c (until_break_command_continuation): Add
7246 the 'error' parameter. Directly delete the breakoint as
7247 opposed to running cleanups.
7248 (until_break_command): Install continuation only
7249 after starting the target. Don't use exec cleanups,
7250 use ordinary cleanups. Discard cleanups is successfully
7251 started the target in async mode.
7252 (make_cleanup_delete_breakpoint): Remove.
7253 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
7255 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
7257 (struct continations): Add the 'error' parameter to the
7258 continuation_hook field.
7259 (add_continuation, do_all_continuations)
7260 (add_intermediate_continuation)
7261 (do_all_intermediate_continuations): Add the 'error' parameter.
7262 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
7263 * inf-loop.c (inferior_event_handler): Instead of calling
7264 discard_all_continuations, use do_all_continuations with 1 as
7265 'error' parameter. Pass 0 as 'error' parameter in existing uses
7266 of discard_all_continuations.
7267 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
7269 (step_once): Install continuation only after resuming the target.
7270 (step_1_continuation): Disable longjmp breakpoint on error.
7271 (finish_command_continuation): Add the error parameter. Delete
7272 the finish breakpoint directly, do not use cleanups.
7273 (finish_command): Do not use exec_cleanups. Always setup
7274 continuation. For sync case, immediately run them.
7275 (attach_command_continuation): Add the error parameter.
7276 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
7277 remove step_resume_breakpoint -- adjust delete it directly.
7278 * interps.c (interp_set): Adjust call to do_all_continations.
7279 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
7281 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
7283 (mi_cmd_execute): Do not use exec_cleanup.
7284 (mi_execute_async_cli_command): Simplify the string concatenation
7285 logic. Do no use exec cleanup.
7286 (mi_exec_async_cli_cmd_continuation): New parameter error.
7287 Free last_async_command.
7288 * top.c (command_line_handler_continuation): New parameter error.
7289 * utils.c (exec_cleanup_chain, make_exec_cleanup)
7290 (do_exec_cleanups): Remove.
7291 (add_continuation, do_all_continations)
7292 (add_intermediate_continuation)
7293 (do_all_intermediate_continuations): New parameter error.
7295 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
7297 * breakpoint.h (bp_location_p): New typedef.
7298 Register a vector of bp_location_p.
7299 * breakpoint.c (always_inserted_mode)
7300 (show_always_inserted_mode): New.
7301 (unlink_locations_from_global_list): Remove.
7302 (update_global_location_list)
7303 (update_global_location_list_nothrow): New.
7304 (update_watchpoint): Don't free locations.
7305 (should_insert_location): New.
7306 (insert_bp_location): Use should_insert_location.
7307 (insert_breakpoint_locations): Copied from
7309 (insert_breakpoint): Use insert_breakpoint_locations.
7310 (bpstat_stop_status): Call update_global_location_list
7311 when disabling breakpoint.
7312 (allocate_bp_location): Don't add to bp_location_chain.
7313 (set_raw_breakpoint)
7314 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
7315 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
7316 (enable_overlay_breakpoints, disable_overlay_breakpoints)
7317 (set_longjmp_resume_breakpoint)
7318 (enable_watchpoints_after_interactive_call_stop)
7319 (disable_watchpoints_before_interactive_call_start)
7320 (create_internal_breakpoint)
7321 (create_fork_vfork_event_catchpoint)
7322 (create_exec_event_catchpoint, set_momentary_breakpoint)
7323 (create_breakpoints, break_command_1, watch_command_1)
7324 (create_exception_catchpoint)
7325 (handle_gnu_v3_exceptions)
7326 (disable_breakpoint, breakpoint_re_set_one)
7327 (create_thread_event_breakpoint, create_solib_event_breakpoint)
7328 (create_ada_exception_breakpoint): : Don't call check_duplicates.
7329 Call update_global_location_list.
7330 (delete_breakpoint): Don't remove locations and don't
7331 try to reinsert them. Call update_global_location_list.
7332 (update_breakpoint_locations): Likewise.
7333 (restore_always_inserted_mode): New.
7334 (update_breakpoints_after_exec): Temporary disable
7335 always inserted mode.
7336 * Makefile.in: Update dependencies.
7338 * infrun.c (proceed): Remove breakpoints while stepping
7340 (handle_inferior_event): Don't remove or insert
7342 * linux-fork.c (checkpoint_command): Remove breakpoints
7343 before fork and insert after.
7344 (linux_fork_context): Remove breakpoints before switch
7346 * target.c (target_disconnect, target_detach): Remove
7347 breakpoints from target.
7350 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
7352 * breakpoint.c (print_one_breakpoint_location): In MI
7353 mode, report the location string the breakpoint was
7354 originally created with.
7356 2008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
7358 * Makefile.in (xtensa-tdep.o): Update dependencies.
7359 * configure.tgt (xtensa*): Update dependencies.
7360 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
7361 Local variable areg renamed to arreg.
7362 (areg_number): New function.
7363 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
7364 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
7365 replaced by arreg_number.
7366 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
7367 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
7368 (xtensa_scan_prologue): New function.
7369 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
7370 when ENTRY instraction hasn't been executed yet. Get the frame pointer
7371 value based on prologue analysis. Fix the bugs preventing WS and
7372 AR4-AR7/A11 registers from getting right values for intermediate frames,
7373 whose registers have been already spilled.
7374 (xtensa_frame_prev_register): Fix WS register value. Use are_number
7375 and arreg_number appropriately.
7376 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
7377 svr4_ilp32_fetch_link_map_offsets.
7379 2008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
7381 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
7382 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
7384 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
7386 * acinclude.m4: Add override.m4.
7387 * configure: Regenerate.
7389 2008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7391 * ada-lang.c (get_selections): Variable PROMPT made non-const and
7392 initialized with a trailing space now. Use PROMPT_ARG of
7393 COMMAND_LINE_INPUT instead of printing it ourselves.
7395 2008-04-22 Joel Brobecker <brobecker@adacore.com>
7397 * NEWS: Document support for 64-bit core file.
7399 2008-04-22 Corinna Vinschen <vinschen@redhat.com>
7401 * NEWS: Add information on calling convention and new SH CLI options.
7403 * sh-tdep.c (sh_cc_gcc): New static string.
7404 (sh_cc_renesas): Ditto.
7405 (sh_cc_enum): New static string array.
7406 (sh_active_calling_convention): New static string pointer denoting
7407 active user chosen ABI.
7408 (sh_is_renesas_calling_convention): New function to return function
7409 specific ABI, or user choice if necessary.
7410 (sh_use_struct_convention): Rename first argument and turn around its
7411 meaning. Check for renesas ABI and return accordingly.
7412 (sh_use_struct_convention_nofpu): New function.
7413 (sh_next_flt_argreg): Get function type as third parameter. Check
7414 for renesas ABI and choose floating registers accordingly.
7415 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
7416 struct return slot accordingly.
7417 (sh_push_dummy_call_nofpu): Ditto.
7418 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
7419 Evaluate ABI and give to sh_use_struct_convention_nofpu.
7420 (sh_return_value_fpu): Evaluate ABI and give to
7421 sh_use_struct_convention.
7422 (show_sh_command): New function.
7423 (set_sh_command): Ditto.
7424 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
7427 * gdbarch.sh (return_value): Add func_type argument.
7428 * gdbarch.c: Regenerate.
7430 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
7431 val_type so as not to collide with value_type function. Call
7432 using_struct_return with additional function type argument.
7433 * infcall.c (call_function_by_hand): Call using_struct_return and
7434 gdbarch_return_value with additional function type argument.
7435 * infcmd.c (print_return_value): Take addition func_type argument.
7436 Call gdbarch_return_value with additional function type argument.
7437 (finish_command_continuation): Call print_return_value with additional
7438 function type argument.
7439 (finish_command): Ditto.
7440 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
7441 additional function type argument.
7442 * stack.c (return_command): Call using_struct_return and
7443 gdbarch_return_value with additional function type argument.
7444 * value.c (using_struct_return): Take additional function type argument.
7445 * value.h (using_struct_return): Accommodate declaration.
7446 * alpha-tdep.c (alpha_return_value): Add func_type argument.
7447 * amd64-tdep.c (amd64_return_value): Ditto.
7448 * arm-tdep.c (arm_return_value): Ditto.
7449 * avr-tdep.c (avr_return_value): Ditto.
7450 * cris-tdep.c (cris_return_value): Ditto.
7451 * frv-tdep.c (frv_return_value): Ditto.
7452 * h8300-tdep.c (h8300_return_value): Ditto.
7453 (h8300h_return_value): Ditto.
7454 * hppa-tdep.c (hppa32_return_value): Ditto.
7455 (hppa64_return_value): Ditto.
7456 * i386-tdep.c (i386_return_value): Ditto.
7457 * ia64-tdep.c (ia64_return_value): Ditto.
7458 * iq2000-tdep.c (iq2000_return_value): Ditto.
7459 * m32c-tdep.c (m32c_return_value): Ditto.
7460 * m32r-tdep.c (m32r_return_value): Ditto.
7461 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
7462 * m68k-tdep.c (m68k_return_value): Ditto.
7463 (m68k_svr4_return_value): Ditto.
7464 * m88k-tdep.c (m88k_return_value): Ditto.
7465 * mep-tdep.c (mep_return_value): Ditto.
7466 * mips-tdep.c (mips_eabi_return_value): Ditto.
7467 (mips_n32n64_return_value): Ditto.
7468 (mips_o32_return_value): Ditto.
7469 (mips_o64_return_value): Ditto.
7470 * mn10300-tdep.c (mn10300_return_value): Ditto.
7471 * mt-tdep.c (mt_return_value): Ditto.
7472 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
7473 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
7474 (ppc_sysv_abi_broken_return_value): Ditto.
7475 (ppc64_sysv_abi_return_value): Ditto.
7476 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
7477 (ppc_sysv_abi_broken_return_value): Ditto.
7478 (ppc64_sysv_abi_return_value): Ditto.
7479 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
7480 * rs6000-tdep.c (rs6000_return_value): Ditto.
7481 * s390-tdep.c (s390_return_value): Ditto.
7482 * score-tdep.c (score_return_value): Ditto.
7483 * sh-tdep.c (sh_return_value_nofpu): Ditto.
7484 (sh_return_value_fpu): Ditto.
7485 * sh64-tdep.c (sh64_return_value): Ditto.
7486 * sparc-tdep.c (sparc32_return_value): Ditto.
7487 * sparc64-tdep.c (sparc64_return_value): Ditto.
7488 * spu-tdep.c (spu_return_value): Ditto.
7489 * v850-tdep.c (v850_return_value): Ditto.
7490 * vax-tdep.c (vax_return_value): Ditto.
7491 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
7492 * xtensa-tdep.c (xtensa_return_value): Ditto.
7494 * gdbtypes.h (struct type): Add calling_convention member.
7495 * dwarf2read.c (read_subroutine_type): Add calling convention read
7496 from DW_AT_calling_convention attribute to function type.
7498 2008-04-22 Markus Deuling <deuling@de.ibm.com>
7500 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
7501 multi_f77_subscript to support values from registers.
7502 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
7503 * value.h (value_subscripted_rvalue): Add prototype.
7505 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
7507 * f-valprint.c (f_val_print): Likewise.
7509 2008-04-21 Craig Silverstein <csilvers@google.com>
7511 * dwarf2read.c (zlib_decompress_section): Define abfd in the
7514 2008-04-21 Pedro Alves <pedro@codesourcery.com>
7516 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
7517 section is not a code section.
7519 2008-04-19 Craig Silverstein <csilvers@google.com>
7521 * NEWS: Add information on compressed debug sections.
7523 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
7525 * mi/mi-cmd-var.c (varobj_update_one): Print new
7526 value for variable objects that changed type.
7528 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
7530 * varobj.c (varobj_invalidate): Don't touch floating
7533 2008-04-19 Mark Kettenis <kettenis@gnu.org>
7535 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
7536 (multiple_symbols_cancel): Remove extra const.
7537 * symtab.h: Likewise.
7539 2008-04-19 Nick Roberts <nickrob@snap.net.nz>
7541 * interps.c (top_level_interpreter): Rename static variable...
7542 (top_level_interpreter_ptr): ...to this.
7543 (top_level_interpreter): New function.
7545 * interps.h: New extern for top_level_interpreter.
7547 * linespec.c: Include interps.h and mi/mi-cmds.h.
7548 (decode_line_2): When using MI, always set all breakpoints in menu.
7550 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
7552 2008-04-18 Craig Silverstein <csilvers@google.com>
7554 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
7555 * config.in, configure: Regenerate.
7556 * dwarf2read.c: Include zlib.h if present.
7557 Modified *_SECTION macros.
7558 (section_is_p): New.
7559 (dwarf2_locate_sections): Use section_is_p instead of strcmp
7560 (dwarf2_resize_section): New.
7561 to determine whether a given section has a given name.
7562 (zlib_decompress_section): New.
7563 (dwarf2_read_section): Read the compressed section if present
7565 * MAINTAINERS: Added myself to section Write After Approval.
7567 2008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
7569 * defs.h (exec_set_section_offsets): Remove prototype.
7570 * exec.c (exec_set_section_offsets): Remove function.
7572 2008-04-18 Joel Brobecker <brobecker@adacore.com>
7574 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
7575 in the search for the matching symbol.
7577 2008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
7579 * breakpoint.c (update_watchpoint): Always reparse
7582 2008-04-17 Joel Brobecker <brobecker@adacore.com>
7584 * breakpoint.c (print_one_breakpoint_location): Make sure to print
7585 the breakpoint address only once.
7587 2008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
7589 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
7590 rather than a hard-coded architecture, for xcoff executables.
7592 2008-04-17 Doug Evans <dje@google.com>
7594 * buildsym.c (watch_main_source_file_lossage): New fn.
7595 (end_symtab): Call it.
7597 * source.c (find_and_open_source): Add some comments clarifying
7598 handling of FULLNAME argument. Make static. Remove pointless
7601 2008-04-17 Pedro Alves <pedro@codesourcery.com>
7603 * inf-loop.c (inferior_event_handler): Also run the intermediate
7604 continuations in the INF_EXEC_COMPLETE case.
7606 2008-04-16 Tom Tromey <tromey@redhat.com>
7608 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
7609 (set_cmd_async_ok, get_cmd_async_ok): Declare.
7610 * cli/cli-decode.c (set_cmd_async_ok): New function.
7611 (get_cmd_async_ok): New function.
7612 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
7614 * top.c (execute_command): Use get_cmd_async_ok.
7615 * infcmd.c: Include cli/cli-decode.h.
7616 (_initialize_infcmd): Mark "interrupt" as async-ok.
7617 * Makefile.in (infcmd.o): Depend on cli_decode_h.
7619 2008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
7622 * exec.c: Correct "arch-utils.h" include.
7624 2008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
7627 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
7628 to allow printing to 'see' real reason of stop. This fixes PR 2424.
7629 * breakpoint.c (bpdisp_texst): New function. The function takes over
7630 the role of bpstats static array in print_one_breakpoint_location.
7631 (print_it_typical): Print "Temporary breakpoint" instead
7632 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
7633 protocols, print disp field.
7634 (print_one_breakpoint_location): Removed bpdisps static definition.
7635 Call new bpstat_text function to get value for 'disp' field.
7636 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
7638 2008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
7640 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
7641 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
7642 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
7643 * gnulib/Makefile.in: Regenerate.
7645 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7647 * Makefile.in (GNULIB_H): New. Trigger all-lib.
7648 (defs_h): Use $(GNULIB_H).
7649 (all-lib): Depend on gnulib/Makefile.
7650 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
7651 * config.in, gnulib/Makefile.in: Regenerated.
7653 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7655 * Makefile.in (LIBGNU, INCGNU): Define.
7656 (INTERNAL_CFLAGS_BASE): Add INCGNU.
7657 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
7659 ($(LIBGNU), all-lib): New rules.
7660 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
7661 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
7662 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
7663 * gnulib: New directory, from gnulib-tool.
7664 * configure, aclocal.m4: Regenerated.
7666 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7668 * linux-thread-db.c (have_threads_callback): Check thread->private.
7670 2008-04-13 Nick Roberts <nickrob@snap.net.nz>
7671 Vladimir Prus <vladimir@codesourcery.com>
7674 * varobj.c (value_of_root): Update the expression for
7676 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
7679 2008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
7681 * mi/mi-cmd-var.c: Include "mi-getopt.h".
7682 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
7683 (mi_cmd_var_set_format): Use new mi_parse_format.
7684 (mi_cmd_var_evaluate_expression): Support for -f option to specify
7686 * Makefile.in (mi-cmd-var.o): Update dependencies.
7688 * varobj.h (varobj_get_formatted_value): Declare.
7689 * varobj.c (my_value_of_variable): Added format parameter.
7690 (cplus_value_of_variable): Likewise.
7691 (java_value_of_variable): Likewise.
7692 (c_value_of_variable): Likewise. Evaluate expression based
7693 on format parameter.
7694 (struct language_specific): Add format parameter to function member
7696 (varobj_get_formatted_value): New.
7697 (varobj_get_value): Added format parameter to method call.
7699 2008-04-08 Joel Brobecker <brobecker@adacore.com>
7701 * stabsread.c (cleanup_undefined_types_noname): Manually set the
7702 instance flags of the undefined type before calling replace_type.
7704 2008-04-08 Vladimir Prus <vladimir@codesourcery.com>
7706 * target.h (enum strata): Remove the download_stratum.
7708 2008-04-07 Doug Evans <dje@google.com>
7710 * buildsym.h (last_source_file): Add dwarf info to comment.
7711 (last_source_start_addr): Ditto.
7713 2008-04-07 Pedro Alves <pedro@codesourcery.com>
7715 * alphanbsd-tdep.c: Include "target.h".
7716 * mn10300-tdep.c: Include "target.h".
7717 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
7719 2008-04-06 Vladimir Prus <vladimir@codesourcery.com>
7721 Fix breakpoint condition that use member variables.
7722 * valops.c (check_field): Remove.
7723 (check_field_in): Rename to check_field.
7724 (value_of_this): Use la_name_of_this.
7725 * value.h (check_field): Adjust prototype.
7727 * language.h (la_value_of_this): Rename to la_name_of_this.
7728 * language.c (unknown_language_defn): Specify "this" for
7730 (auto_language_defn): Likewise.
7731 (local_language_defn): Likewise.
7732 * ada-lang.c (ada_language_defn): Adjust comment.
7733 * c-lang.c (c_language_defn): Adjust comment.
7734 (cplus_language_defn): Specify "this" for name_of_this.
7735 (asm_language_defn): Adjust comment.
7736 (minimal_language_defn): Adjust comment.
7737 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
7738 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
7739 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
7740 * objc-lang.c (objc_language_defn): Specify "self" for
7742 * p-lang.c (pascal_language_defn): Specify "this" for
7744 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
7746 * symtab.c (lookup_symbol_aux): Lookup "this" in the
7747 proper scope, and check for field in type of "this", without
7748 trying to create a value.
7750 2008-04-04 Pedro Alves <pedro@codesourcery.com>
7752 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
7753 (mi_error_message): Delete declaration.
7754 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
7755 returning MI_CMD_ERROR.
7756 * mi/mi-main.c (mi_error_message): Delete.
7757 (mi_cmd_exec_interrupt):
7758 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
7759 (mi_cmd_thread_info): Call error instead of returning
7761 (mi_cmd_data_list_register_values): Call error instead of
7762 returning MI_CMD_ERROR. Adapt to new get_register interface.
7763 (get_register): Change return typo to void. Call error instead of
7764 returning MI_CMD_ERROR.
7765 (mi_cmd_data_write_register_values): Call error instead of
7766 returning MI_CMD_ERROR.
7767 (mi_cmd_list_features): Return MI_CMD_DONE.
7768 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
7769 (mi_execute_command): Always print exceptions with -error.
7771 2008-04-04 Joel Brobecker <brobecker@adacore.com>
7773 * NEWS: Mention new commands set/show multiple-symbols.
7775 2008-04-03 Joel Brobecker <brobecker@adacore.com>
7777 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
7778 (multiple_symbols_cancel): New constants.
7779 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
7780 (multiple_symbols_select_mode): New function.
7781 (_initialize_symtab): Add new set/show multiple-symbols commands.
7782 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
7783 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
7784 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
7786 * linespec.c (decode_line_2): Likewise.
7788 2008-04-03 Doug Evans <dje@sebabeach.org>
7790 * symtab.h (enum free_code): Delete free_contents, unused.
7791 * symmisc.c (free_symtab_block): Delete.
7792 (free_symtab, case free_code): Delete.
7794 2008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
7796 * valops.c (value_cast_structs): New function. Cast related
7797 STRUCT types up/down and return cast value. The body of this
7798 function comes mostly from value_cast_pointers.
7799 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
7800 to value_cast_structs. Now value_cast_pointers needs only create
7801 appropriate reference after using value_cast_structs for actual
7803 (value_cast): Handle references.
7805 2008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
7807 * MAINTAINERS: Added myself to section Write After Approval.
7809 2008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
7811 * ia64-tdep.c (examine_prologue): Correct array access.
7813 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
7815 * cp-support.c (first_component_command): Return if no arguments.
7817 2008-03-28 Carlos O'Donell <carlos@codesourcery.com>
7819 * ser-mingw.c (ser_windows_open): Open requested name.
7821 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
7823 * MAINTAINERS: Added myself.
7825 2008-03-28 Pedro Alves <pedro@codesourcery.com>
7827 * target.c (find_default_run_target): Allow a NULL `do_mesg'
7828 parameter. If it is NULL, don't call error.
7829 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
7830 `do_mesg' parameter to find_default_run_target. If no target was
7833 2008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
7835 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
7836 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
7837 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
7839 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
7841 2008-03-27 Joel Brobecker <brobecker@adacore.com>
7845 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
7847 * features/Makefile (%.dat): Set xmltarget to the base filename
7848 of the XML source, without subdirectory.
7849 * regformats/rs6000/powerpc-32.dat: Regenerate.
7850 * regformats/rs6000/powerpc-64.dat: Regenerate.
7851 * regformats/rs6000/powerpc-e500.dat: Regenerate.
7853 2008-03-27 Markus Deuling <deuling@de.ibm.com>
7855 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
7858 2008-03-27 Nick Roberts <nickrob@snap.net.nz>
7860 * mi/mi-main.c (enum captured_mi_execute_command_actions):
7861 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
7863 2008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7865 * objfiles.h (struct objfile): New GDBARCH member.
7866 (get_objfile_arch): Add prototype.
7867 * objfiles.c: Include "arch-utils.h".
7868 (allocate_objfile): Look up gdbarch associated with bfd.
7869 (get_objfile_arch): New function.
7870 * Makefile (objfiles.o): Update dependencies.
7872 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
7874 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
7876 (locexpr_describe_location): Replace current_gdbarch by
7878 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
7879 (dwarf2_add_field): Likewise.
7880 (read_tag_pointer_type): Likewise.
7881 (read_base_type): Likewise.
7882 (new_symbol): Likewise.
7884 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
7885 (decode_base_type, decode_function_type): Likewise.
7886 (coff_read_struct_type, coff_read_enum_type): Likewise.
7887 (coff_symtab_read): Replace current_gdbarch by objfile arch.
7888 (decode_base_type): Likewise.
7889 (coff_read_enum_type): Likewise.
7890 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
7891 (coff_read_enum_type): Likewise.
7893 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
7894 (end_psymtab): Likewise.
7895 (process_one_symbol): Likewise.
7897 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
7898 (parse_procedure): Likewise.
7899 (parse_partial_symbols): Likewise.
7901 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
7903 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
7904 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
7906 (read_range_type): Replace current_gdbarch by objfile arch. Replace
7907 static range_index_type by built-in type.
7908 (read_one_struct_field): Replace current_gdbarch by objfile arch.
7909 (read_enum_type): Likewise.
7911 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
7914 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
7916 * varobj.h (varobj_floating_p): Declare.
7917 * varobj.c (varobj_floating_p): New.
7918 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
7919 '@' as the name, update all floating varobjs.
7921 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
7923 * varobj.c (struct varobj_root): Rename use_selected_frame to
7924 floating, and clarify the meaning.
7925 (varobj_create, varobj_update, new_root_variable): Adjust.
7926 (value_of_root): Don't use type_changed as in variable,
7928 (c_value_of_root): Adjust.
7930 2008-03-25 Pedro Alves <pedro@codesourcery.com>
7932 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
7934 (linux_nat_wait): Add main lwp to gdb's thread list.
7935 * linux-thread-db.c (find_new_threads_callback): Also attach to
7936 already listed threads which thread_db didn't know about yet.
7938 2008-03-25 Pedro Alves <pedro@codesourcery.com>
7940 * linux-nat.c (drain_queued_events): Fix comment typo.
7941 (linux_nat_attach): In async mode, don't rely on storing a pending
7942 status. Instead place the wait status on the pipe.
7943 (linux_nat_resume): Remove unreacheable shortcut code in async
7945 (stop_wait_callback): In async mode, don't store pending status.
7946 Instead, cancel breakpoints or resend the signal appropriatelly.
7947 (cancel_breakpoint): New, refactored from
7948 cancel_breakpoints_callback.
7949 (cancel_breakpoints_callback): Call cancel_breakpoint.
7950 (pipe_to_local_event_queue): Remove special token processing.
7951 (linux_nat_wait): Issue an internal error if a pending status is
7952 found in async mode.
7954 2008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
7956 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
7958 2008-03-24 Nick Roberts <nickrob@snap.net.nz>
7959 Vladimir Prus <vladimir@codesourcery.com>
7961 * varobj.c (struct varobj_root): New component thread_id.
7962 (varobj_get_thread_id, check_scope): New functions.
7963 (c_value_of_root): Use check_scope. Switch to the
7964 proper thread if necessary.
7966 * varobj.h (varobj_get_thread_id): New extern.
7968 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
7970 2008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
7973 * top.c: Revert 2008-03-21 changes.
7975 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
7977 * thread.c (make_cleanup_restore_current_thread): Make it
7979 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7980 * varobj.c (varobj_update): Don't save/restore frame.
7981 (c_value_of_root): Save/restore thread and frame here,
7982 using make_cleanup_restore_current_thread.
7983 * Makefile.in: Update dependecies.
7985 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
7987 * varobj.c (struct varobj_root): Clarify
7988 comment on the frame field.
7989 (varobj_create): Don't set frame if we have no
7992 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
7995 Suggested by Jan Kratochvil:
7996 * top.c (gdb_rl_operate_and_get_next_completion): Call
7997 rl_redisplay_function.
7998 (gdb_rl_redisplay): New.
7999 (init_main): Set rl_redisplay_function.
8001 2008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
8003 * aix-thread.c (pdc_read_regs): Fix compiler warning.
8004 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
8005 (store_regs_kernel_thread): Likewise.
8007 2008-03-21 Pedro Alves <pedro@codesourcery.com>
8009 Linux native async support.
8011 * target.h (struct target_ops): Delete to_async_mask_value and add
8013 (target_is_async_p, target_async): Formatting.
8014 (target_async_mask_value): Delete.
8015 (target_async_mask): Delete function declaration, and add new
8016 target macro with the same name.
8018 * target.c (update_current_target): Replace to_async_mask_value by
8019 to_async_mask. Default to_async_mask to return_one.
8020 (target_async_mask): Delete.
8021 (find_default_can_async_p, find_default_is_async_p): New.
8022 (init_dummy_target): register find_default_can_async_p and
8023 find_default_is_async_p on the dummy target.
8025 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
8026 (debug_linux_nat_async): New global.
8027 (show_debug_linux_nat_async): New function.
8028 (linux_nat_async_enabled, linux_nat_async_mask_value)
8029 (linux_nat_event_pipe, linux_nat_num_queued_events)
8030 (linux_nat_async_events_enabled): New globals.
8031 (struct waitpid_result): New struct.
8032 (waitpid_queue): New global.
8033 (queued_waitpid, push_waitpid, drain_queued_events): New.
8034 (my_waitpid): Call queued_waitpid.
8035 (linux_child_follow_fork): Disable async events during the call.
8036 (blocked_mask): Delete.
8037 (sync_sigchld_action, async_sigchld_action): New globals.
8038 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
8039 async mode, block events during the call.
8040 (linux_nat_create_inferior): New.
8041 (linux_nat_attach): In sync mode, restore the mask states. In
8042 async mode, wake the event loop immediatelly.
8043 (detach_callback): Drain all queued events of the lwp we're
8045 (linux_nat_detach): Block async mode, and drain events of the main
8047 (linux_nat_resume): If in async mode, mask async events during the
8048 call. If short circuiting, force event loop to wake up. If
8049 resuming, set target_executing, and register target events in the
8051 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
8052 (linux_nat_wait): In async mode, block events during the call.
8053 Only enable/disable passing SIGINT to the inferior in sync mode.
8054 Get events from local waitpid queue. If no interesting events was
8055 found, return to events loop. Reregister target events in the
8056 event loop on exit. In sync mode, no need to reblock SIGCHLD.
8057 (linux_nat_kill): Disable events on entry.
8058 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
8059 here. Detach async mode from the event loop if there are no more
8060 forks available, otherwise leave it on.
8061 (sigchld_handler): Assure this is called only in sync mode.
8062 (linux_async_permitted, linux_async_permitted_1): New globals.
8063 (set_maintenance_linux_async_permitted)
8064 (show_maintenance_linux_async_permitted): New functions.
8065 (linux_nat_is_async_p, linux_nat_can_async_p)
8066 (linux_nat_async_mask): New.
8067 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
8068 (get_pending_events, async_sigchld_handler): New.
8069 (linux_nat_async_events): New.
8070 (async_terminal_is_ours): New global.
8071 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
8072 (async_client_callback, async_client_context): New.
8073 (linux_nat_async_file_handler, linux_nat_async)
8074 (linux_nat_disable_async, linux_nat_enable_async): New.
8075 (linux_nat_add_target): Register linux_nat_create_inferior,
8076 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
8077 linux_nat_async_mask, linux_nat_terminal_inferior and
8078 linux_nat_terminal_ours.
8079 (_initialize_linux_nat): Remove local action variable, and update
8080 code that used it to use sync_sigchld_action. Add new
8081 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
8082 set/show command in the maintenance class. Add new "linux-async"
8083 maintenance set/show command. Block SIGCHLD by default. Setup
8084 async_sichld_action, and sync_sigchld_action. Install the default
8086 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
8089 * linux-thread-db.c (re_check_for_thread_db): New.
8090 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
8091 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
8092 (thread_db_async_mask): New.
8093 (init_thread_db_ops): Register thread_db_can_async_p,
8094 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
8096 * remote.c (remote_async_mask_value): New.
8097 (remote_return_zero): New.
8098 (init_remote_ops): Register remote_return_zero as callbacks of
8099 to_can_async_p and to_is_async_p.
8100 (remote_can_async_p, remote_is_async_p, remote_async): Update to
8101 use remote_async_mask_value.
8102 (remote_async_mask): New.
8103 (init_remote_async_ops): Remove to_async_mask_value setting and
8104 register remote_async_mask as to_async_mask callback in
8107 * Makefile.in (linux-nat.o): Update.
8109 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8111 * gdbthread.h (add_thread_with_info): New.
8112 * linux-thread-db.c: Add some documentation.
8113 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
8114 (struct private_thread_info): Remove th_valid and ti_valid.
8115 Replace ti with tid.
8116 (thread_get_info_callback): Do not add TID to the new ptid. Do
8118 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
8119 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
8121 (attach_thread): Handle an already-existing thread. Use
8122 add_thread_with_info. Cache the th and tid.
8123 (detach_thread): Verify that private was set. Remove verbose
8124 argument and printing. Update caller.
8125 (thread_db_detach): Do not adjust inferior_ptid.
8126 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
8127 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
8128 (thread_db_wait): Do not use lwp_from_thread.
8129 (thread_db_pid_to_str): Use the cached TID.
8130 (thread_db_extra_thread_info): Check that private is set.
8131 (same_ptid_callback): Delete.
8132 (thread_db_get_thread_local_address): Do not use it or check
8133 is_thread. Check that private is set. Assume that the thread
8134 handle is already cached.
8135 (init_thread_db_ops): Remove to_resume and to_kill.
8136 * thread.c (add_thread_with_info): New.
8137 (add_thread): Use it.
8138 * linux-nat.c (find_thread_from_lwp): Delete.
8139 (exit_lwp): Do not use it. Check print_thread_events. Print before
8140 deleting the thread.
8141 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
8142 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
8143 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
8144 printf_unfiltered for thread exits.
8145 * procfs.c (procfs_wait): Likewise.
8147 2008-03-21 Chris Demetriou <cgd@google.com>
8149 * symtab.c (rbreak_command): Quote symbol name before passing
8150 it to break_command.
8152 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8154 * eval.c (evaluate_subexp_for_address): Clarify error message.
8155 Use value_must_coerce_to_target.
8156 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
8157 * valops.c (value_assign): Call value_coerce_to_target when
8158 assigning to anything but internalvars. Leave GDB-side arrays
8159 as arrays when assigning to internalvars.
8160 (value_must_coerce_to_target, value_coerce_to_target): New.
8161 (value_coerce_array, value_addr): Call value_coerce_to_target.
8162 (value_array): Create the array in GDB's memory instead of
8164 * value.h (value_must_coerce_to_target, value_coerce_to_target):
8167 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8169 * top.c (quit_confirm): Warn that we will kill the program.
8171 2008-03-19 Pedro Alves <pedro@codesourcery.com>
8173 * inflow.c (terminal_ours_1): Guard access to
8174 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
8176 2008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
8177 Jim Blandy <jimb@codesourcery.com>
8178 Daniel Jacobowitz <drow@false.org>
8180 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
8181 (dwarf2_read_address): Update prototype.
8183 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
8184 (signed_address_type): Likewise.
8185 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
8186 (execute_stack_op): Update calls to unsigned_address_type,
8187 signed_address_type and dwarf2_read_address. Fix implementation
8188 of DW_OP_deref_size.
8190 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
8191 (dwarf2_per_cu_addr_size): Likewise.
8192 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
8193 (struct dwarf2_loclist_baton): Likewise.
8195 * dwarf2loc.c (find_location_expression): Update calls to
8196 dwarf2_read_address. Use dwarf2_per_cu_objfile and
8197 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
8198 (locexpr_describe_location): Likewise.
8199 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
8200 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
8201 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
8202 to dwarf2_per_cu_addr_size (per_cu).
8203 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
8204 (loclist_read_variable): Likewise.
8205 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
8207 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
8208 instead of baton->objfile.
8209 (dwarf2_per_cu_obfile): New function.
8210 (dwarf2_per_cu_addr_size): Likewise.
8212 * dwarf2-frame.c (struct comp_unit): Move higher.
8213 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
8214 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
8215 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
8216 parameter by using fde->eh_frame_p. Use read_encoded_value
8217 to implement DW_CFA_set_loc.
8218 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
8219 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
8220 execute_stack_op and execute_cfa_program.
8221 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
8222 (size_of_encoded_value): Remove.
8223 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
8224 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
8225 (add_cie): Set cie->unit backlink.
8226 (decode_frame_entry_1): Set cie->addr_size. Update calls to
8228 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
8230 2008-03-17 Markus Deuling <deuling@de.ibm.com>
8232 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
8233 gdbarch_bfd_arch_info.
8235 2008-03-17 Joel Brobecker <brobecker@adacore.com>
8237 * aix-thread.c (pdc_read_regs): Minor reformatting.
8239 2008-03-17 Vladimir Prus <vladimir@codesourcery.com>
8241 * thread.c (print_thread_info): Don't insist
8242 on having current thread if there are no
8245 2008-03-17 Pedro Alves <pedro@codesourcery.com>
8247 * infcmd.c (attach_command_post_wait)
8248 (attach_command_continuation): New.
8249 (attach_command): Support background async execution, and async
8250 execution in synchronous mode.
8252 2008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
8254 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
8255 * symmisc.c (dump_symtab_1): Likewise.
8256 * wrapper.c (gdb_value_struct_elt): Likewise.
8258 2008-03-17 Pedro Alves <pedro@codesourcery.com>
8260 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
8262 2008-03-17 Pedro Alves <pedro@codesourcery.com>
8264 * linux-nat.c (linux_nat_filter_event): New, refactored from
8266 (linux_nat_wait): Call linux_nat_filter_event.
8268 2008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
8270 * top.c (execute_command): Fix uninitialized variable error.
8272 2008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
8274 * Makefile.in (amd64nbsd-nat.o): New dependency.
8275 * amd64nbsd-nat.c: Include "nbsd-nat.h".
8276 (_initialize_amd64nbsd_nat): Update target vector to use
8277 nbsd_pid_to_exec_file.
8278 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
8280 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
8282 Remove ignoring leading exec events code.
8283 * fork-child.c (startup_inferior): Do not set
8284 inferior_ignoring_leading_exec_events.
8285 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
8286 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
8287 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
8288 (handle_inferior_event): Remove code for ignoring leading exec
8290 * target.c (update_current_target): Do not inherit, or default,
8291 to_reported_exec_events_per_exec_call.
8292 (debug_to_reported_exec_events_per_exec_call): Remove.
8293 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
8294 * target.h (target_reported_exec_events_per_exec_call): Remove.
8295 (struct target): Remove the to_reported_exec_events_per_exec_call
8298 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
8300 Implement -thread-info.
8301 * gdbthread.h (print_thread_info): Declare.
8303 * thread.c (print_thread_info): New, extracted
8304 from info_threads_command and adjusted to
8305 work for CLI and MI.
8306 (info_threads_command): Use print_thread_info.
8307 * Makefile.in: Update dependencies.
8309 * mi/mi-cmds.c (mi_cmds): Specify a handler
8311 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
8312 * mi/mi-main.c (mi_cmd_thread_info): New.
8313 (mi_cmd_list_features): Include 'thread-info'.
8315 2008-03-14 Kevin Buettner <kevinb@redhat.com>
8317 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
8318 to decide whether to match instruction patterns using "sw" and "sd".
8320 2008-03-14 Pedro Alves <pedro@codesourcery.com>
8322 * infcmd.c (jump_command): Postpone disabling stdin until after
8325 2008-03-14 Pedro Alves <pedro@codesourcery.com>
8327 * inflow.c (gdb_getpgrp): New.
8328 (gdb_has_a_terminal): Use get_getpgrp.
8329 (terminal_ours_1): If attach_flag is set, don't refetch
8330 inferior_process_group.
8332 2008-03-14 Pedro Alves <pedro@codesourcery.com>
8334 * features/library-list.dtd: Allow "section" elements as children
8335 of "library". Add "section" element and describe its attributes.
8337 * solib-target.c (struct lm_info): Add section_bases member.
8338 (library_list_start_segment): Error out if seen a section element.
8339 (library_list_start_section): New.
8340 (library_list_end_library): New.
8341 (solib_target_free_library_list): Free section_bases.
8342 (section_attributes): New.
8343 (library_children): Make "segment" optional. Add "section" child.
8344 (library_list_children): Register library_list_end_library.
8345 (solib_target_relocate_section_addresses): Handle section bases.
8347 * NEWS: Mention new qXfer:libraries:read section offsets support.
8349 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
8351 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
8352 (make_exec_error_cleanup): Remove declarations.
8353 * utils.c (exec_error_cleanup_chain): Remove.
8354 (do_exec_error_cleanups, discard_exec_error_cleanups)
8355 (make_exec_error_cleanup): Remove.
8356 * event-loop.c (start_event_loop): Adjust call to
8358 * event-top.c (async_enable_stdin): Remove the paramater dummy.
8359 (async_disable_stdin): Don't register async_enable_stdin via
8361 * inf-loop.c (inferior_event_handler): Don't
8362 call do_exec_error_cleanups. Call async_enable_stdin instead.
8363 * event-loop.c (start_event_loop): Adjust call to
8365 * tui/tui-interp.c (tui_command_loop): Adjust call to
8368 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
8371 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
8372 * breakpoint.c (bpstat_do_actions): In async mode,
8373 don't jump to top expecting stop_bpstat to be already
8375 * event-loop.c (start_event_loop): Call async_enable_stdin
8377 * event-top.c (async_enable_stdin): Do nothing if sync_execution
8379 (command_handler): Do not setup continuation here.
8380 (command_line_handler_continuation): Move to...
8381 * top.c (command_line_handler_continuation): ... here.
8382 (execute_command): In async mode, register continuation.
8383 Don't check frame's language in running in async mode.
8384 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
8385 * inf-loop.c (complete_execution): Inline into...
8386 (inferior_event_handler): ... here. Clear target_executing before
8387 doing any cleanups. Don't try to show prompt if the target was
8389 * infcmd.c (signal_command): Add support for async mode.
8390 (finish_command): Only add continuation if the target was
8391 successfully resumed.
8392 * remote.c (init_async_opts): Register to_get_thread_local_address
8394 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
8395 with sync_execution.
8396 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
8399 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8401 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
8402 * exec.c (exec_bfd_mtime): Define.
8403 (exec_close): Clear it.
8404 (exec_file_attach): Set it.
8405 * gdbcore.h (exec_bfd_mtime): Declare.
8406 * source.c (find_source_lines): Do not use bfd_get_mtime.
8408 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
8410 * top.c (simplified_command_loop): Remove.
8412 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
8414 Remove unused remote.c hooks.
8415 * remote.c (deprecated_target_resume_hook)
8416 (deprecated_target_wait_loop_hook): Remove.
8417 (remote_resume): Do not call deprecated_target_resume_hook.
8418 (remote_wait): Do not call deprecated_target_wait_loop_hook.
8419 (remote_async_wait): Likewise.
8421 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
8423 Implement MI notification for new threads.
8424 * doc/observer.texi (new_thread): Document.
8425 * observer.sh: Forward declare struct thread_info.
8426 * thread.c (add_thread): Notify observer.
8428 * interps.h (interp_init_ftype): New parameter
8430 (interp_set): Likewise.
8431 (top_level_interpreter_data): Declare.
8432 * interps.c (interp_set): New parameter top_level.
8433 Pass it to interpreter's init function. Remember
8434 top level interpreter.
8435 (interpreter_exec_cmd): Adjust.
8436 (top_level_interpreter_data): New.
8437 * main.c (captured_main): Pass 1 for top_level
8438 parameter of interp_set.
8439 * cli/cli-interp.c (cli_interpreter_init): New
8440 parameter top_level.
8441 * tui/tui-interp.c (tui_init): New parameter top_level.
8443 * mi/mi-interp.c (mi_new_thread): New.
8444 (mi_interpreter_init): If top level, register
8445 observer for new threads.
8447 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
8449 2008-03-14 Pedro Alves <pedro@codesourcery.com>
8451 * top.c (execute_command): Disable break and stop
8452 commands in async mode.
8454 2008-03-14 Pedro Alves <pedro@codesourcery.com>
8457 2008-03-14 Pedro Alves <pedro@codesourcery.com>
8458 * inf-loop.c (inferior_event_handler): Don't include remote.h.
8459 Call target_stop in the INF_QUIT_REQ case.
8460 * Makefile.in (inf-loop.o): Update.
8462 2008-03-14 Pedro Alves <pedro@codesourcery.com>
8464 * inf-loop.c (inferior_event_handler): Don't include remote.h.
8465 Call target_stop in the INF_QUIT_REQ case.
8466 * Makefile.in (inf-loop.o): Update.
8468 2008-03-14 Pedro Alves <pedro@codesourcery.com>
8470 * top.c (execute_command): Enable break, info and interrupt
8471 commands in async mode.
8473 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
8474 Daniel Jacobowitz <dan@codesourcery.com>
8476 * breakpoint.h (breakpoint_restore_shadows): New
8478 * breakpoint.c (breakpoint_restore_shadows): New.
8479 (read_memory_nobpt): Delete.
8480 * gdbcore.h (read_memory_nobpt): Delete declaration.
8481 * target.c (memory_xfer_partial): Call
8482 breakpoint_restore_shadows.
8483 (restore_show_memory_breakpoints)
8484 (make_show_memory_beakpoints_cleanup): New.
8485 (show_memory_breakpoints): New.
8486 * target.h (make_show_memory_beakpoints_cleanup): Declare.
8487 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
8488 Make sure we see memory breakpoints when checking if
8489 breakpoint is still there.
8490 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
8491 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
8492 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
8493 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
8495 2008-03-12 Pedro Alves <pedro@codesourcery.com>
8497 * thread.c (add_thread): Use printf_unfiltered to print.
8499 2008-03-12 Joel Brobecker <brobecker@gnat.com>
8501 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
8502 that is true only on x86-solaris and x86_64-solaris.
8503 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
8504 with proc_get_LDT_entry.
8506 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
8508 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
8509 * config.in, configure: Regenerate.
8510 * fork-child.c (fork_inferior): Call create_tty_session.
8511 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
8512 (create_tty_session): New function.
8513 * terminal.h: Declare create_tty_session.
8515 2008-03-12 Alan Modra <amodra@bigpond.net.au>
8518 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
8519 * mipsread.c: Include elf/internal.h.
8520 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
8523 2008-03-11 Markus Deuling <deuling@de.ibm.com>
8525 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
8526 to get at the current architecture and at the target specific vector.
8527 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
8528 remove define of I387_ST0_REGNUM.
8530 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
8532 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
8533 get at the current architecture
8534 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
8537 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
8538 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
8540 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
8541 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
8542 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
8544 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
8545 at the target specific vector.
8547 (i386_get_longjmp_target): Use get_frame_arch to get at the current
8548 architecture. Use gdbarch_tdep to get at the target specific vector.
8550 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
8551 update caller. Use gdbarch_tdep to get at the target specific vector.
8553 (i386_register_to_value: Use get_frame_arch to get at the current
8556 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
8559 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
8560 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
8561 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
8562 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
8564 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
8567 (i387_convert_register_p, i387_register_to_value,
8568 i387_value_to_register): Update call for i386_fp_regnum_p.
8570 * i387-tdep.h: Remove comment.
8571 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
8572 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
8573 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
8574 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
8575 I387_MXCSR_REGNUM): Add target specific vector as parameter.
8577 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
8579 * Makefile.in (fork-child.o): Update.
8580 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
8581 argument. Gather all gdbserver features together.
8582 * fork-child.c (exec_wrapper): New variable.
8583 (fork_inferior): Use it.
8584 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
8585 (unset_exec_wrapper_command, _initialize_fork_child): New.
8587 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
8589 * source.c (directory_command): Modify the determination of
8590 condition of terminal "from_tty".
8592 2008-03-10 Matt Rice <ratmice@gmail.com>
8594 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
8596 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
8598 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
8599 of the data passing to strtoulst function.
8600 (info_spu_signal_command): Likewise.
8602 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
8604 * mi/mi-interp.c (mi_command_loop): Remove
8607 2008-03-07 Joel Brobecker <brobecker@adacore.com>
8609 * remote.c (extended_remote_attach_1): Make local variable pid an int
8612 2008-03-07 Joel Brobecker <brobecker@adacore.com>
8614 * solib-svr4.c (svr4_same_1): New function, originally extracted
8615 from svr4_same and expanded to handle the sparc64 case.
8616 (svr4_same): Move up and reimplement using svr4_same_1.
8617 (enable_break): Use svr4_same_1 to do shared library name comparisons.
8619 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
8621 * MAINTAINERS: Move self to Paper trail.
8623 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
8625 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
8626 * event-loop.c (call_async_signal_handler): New.
8627 * event-loop.h (call_async_signal_handler)
8628 (gdb_call_async_signal_handler): Declare.
8629 (mark_async_signal_handler): Add comments.
8630 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
8631 * mingw-hdep.c (sigint_event, sigint_handler): New.
8632 (gdb_select): Use them. Wait for the readline signal handler
8634 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
8635 * posix-hdep.c (gdb_call_async_signal_handler): New function.
8636 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
8638 (remote_fileio_ctrl_c_signal_handler): Use
8639 gdb_call_async_signal_handler.
8640 (initialize_remote_fileio): Initialize sigint_fileio_token.
8641 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
8642 not initialize tokens here.
8643 (handle_remote_sigint_twice): Likewise. Reinstall
8644 handle_remote_sigint.
8645 (async_remote_interrupt_twice): Just call interrupt_query.
8646 (cleanup_sigint_signal_handler): Do not delete tokens.
8647 (remote_interrupt, remote_interrupt_twice): Use
8648 gdb_call_async_signal_handler.
8649 (interrupt_query): Reinstall the default signal handler.
8650 (_initialize_remote): Initialize tokens here.
8652 2008-03-04 Joel Brobecker <brobecker@adacore.com>
8654 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
8655 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
8656 Change the type of the lr register to code_ptr.
8657 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
8658 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
8659 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
8660 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
8661 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
8662 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
8663 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
8665 2008-03-03 James E. Wilson <wilson@tuliptree.org>
8667 * MAINTAINERS: Update my email address.
8669 2008-03-03 Keith Seitz <keiths@redhat.com>
8671 From Dave Murphy <davem@devkitpro.org>:
8672 * configure.ac: Set tcl configdir to win under mingw.
8673 * configure: Regenerate.
8675 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
8677 * breakpoint.c (fetch_watchpoint_value): New function.
8678 (update_watchpoint): Set and clear val_valid. Use
8679 fetch_watchpoint_value. Handle unreadable values on the
8680 value chain. Correct check for user-requested array watchpoints.
8681 (breakpoint_init_inferior): Clear val_valid.
8682 (watchpoint_value_print): New function.
8683 (print_it_typical): Use it. Do not free or clear old_val. Print
8684 watchpoints even if old_val == NULL.
8685 (watchpoint_check): Use fetch_watchpoint_value. Check for values
8686 becoming readable or unreadable.
8687 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
8688 (do_enable_watchpoint): Likewise.
8689 * breakpoint.h (struct breakpoint): Update comment for val. Add
8691 * NEWS: Mention watchpoints on inaccessible memory.
8693 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
8695 * Makefile.in (i386-nat.o): Update.
8696 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
8697 i386_use_watchpoints.
8698 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
8699 i386_use_watchpoints.
8700 * i386-nat.c (i386_stopped_data_address): Take two arguments.
8701 (i386_stopped_by_watchpoint): Update call.
8702 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
8703 * config/i386/nm-i386.h: Conditionalize definitions on
8704 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
8705 (i386_use_watchpoints): Declare.
8706 (i386_stopped_data_address): Update.
8707 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
8708 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
8710 2008-02-29 Joel Brobecker <brobecker@adacore.com>
8712 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
8713 * version.in: Bump version to 6.8.50.20080229-cvs.
8715 2008-02-28 Markus Deuling <deuling@de.ibm.com>
8717 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
8720 2008-02-28 Tom Tromey <tromey@redhat.com>
8722 * infcmd.c (notice_args_read): Print result of get_inferior_args.
8724 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8726 * infcmd.c (kill_if_already_running): Make static. Use
8727 target_require_runnable.
8728 * target.c (target_require_runnable): New.
8729 * target.h (target_require_runnable): Declare.
8731 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8733 * frame.c (reinit_frame_cache): Only annotate if frames were
8736 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8738 * regformats/reg-ppc.dat: Rename "ps" to "msr".
8739 * regformats/reg-ppc64.dat: Likewise.
8741 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8743 * features/Makefile (%.dat): Emit xmltarget statement.
8745 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
8746 Generate code to set gdbserver_xmltarget in init_registers_${name}.
8748 * regformats/arm-with-iwmmxt.dat: Regenerate.
8749 * regformats/mips64-linux.dat: Regenerate.
8750 * regformats/mips-linux.dat: Regenerate.
8751 * regformats/rs6000/powerpc-32.dat: Regenerate.
8752 * regformats/rs6000/powerpc-64.dat: Regenerate.
8753 * regformats/rs6000/powerpc-e500.dat: Regenerate.
8755 * regformats/reg-arm.dat: Add xmlarch statement.
8756 * regformats/reg-i386.dat: Likewise.
8757 * regformats/reg-i386-linux.dat: Likewise.
8758 * regformats/reg-x86-64-linux.dat: Likewise.
8759 * regformats/reg-spu.dat: Likewise.
8761 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8763 * remote.c (remote_wait, remote_async_wait): Stop if we receive
8766 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8768 * utils.c (debug_timestamp): New.
8769 (vfprintf_unfiltered): Print timestamps if requested.
8770 (show_debug_timestamp): New.
8771 (initialize_utils): Register "set debug timestamp".
8772 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
8774 2008-02-27 Joel Brobecker <brobecker@adacore.com>
8776 * breakpoint.c (skip_prologue_sal): New function.
8777 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
8778 computed from a line number.
8780 2008-02-27 Joel Brobecker <brobecker@adacore.com>
8782 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
8783 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
8784 Set PC register type to "code_ptr".
8785 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
8786 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
8787 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
8788 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
8789 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
8790 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
8791 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
8794 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
8796 * regformats/regdat.sh: Rename init_registers function in
8797 generated file to init_registers_${name}.
8799 * regformats/reg-crisv32.dat: Set "name" to crisv32.
8800 * regformats/reg-ppc64.dat: Set "name" to ppc64.
8801 * regformats/reg-s390x.dat: Set "name" to s390x.
8803 2008-02-26 Greg Law <glaw@undo-software.com>
8805 * regcache.c (registers_changed): Call reinit_frame_cache.
8807 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8809 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
8810 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
8811 and svr4_fetch_objfile_link_map.
8812 * Makefile.in (sh-linux-tdep.o): Update.
8814 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
8816 * amd64-tdep.c (amd64_classify): Add support for decimal float
8818 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
8819 use the struct return convention.
8821 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
8823 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
8824 to old format. Discard breakpoint address if shared library is
8826 (breakpoint_1): Adjust formatting of table header accordingly.
8828 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
8830 * remote.c (remote_get_threadlist): If the response
8831 is empty, don't try to parse it.
8833 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
8835 Unbreak 'target async'.
8836 * serial.c (serial_async): Set the
8837 handler function before enabling async
8840 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
8842 * solib-svr4.c (enable_break): Convert r_brk to a code address.
8844 2008-02-21 Pedro Alves <pedro@codesourcery.com>
8846 * remote.c (extended_remote_attach_1): Set attach_flag.
8847 (extended_remote_create_inferior_1): Clear attach_flag.
8849 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
8851 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
8853 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
8854 * solib-svr4.c (solib_svr4_r_brk): New.
8855 (open_symbol_file_object, svr4_current_sos): Always check the
8857 (svr4_fetch_objfile_link_map): Do not set debug_base.
8858 (enable_break): Use r_brk if it is set.
8859 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
8860 (svr4_lp64_fetch_link_map_offsets): Likewise.
8861 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
8863 2008-02-20 Markus Deuling <deuling@de.ibm.com>
8864 Mark Kettenis <kettenis@gnu.org>
8866 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
8867 trad_frame_saved_reg.
8868 (trad-frame.h): New include.
8870 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
8871 instead of frame_obstack_zalloc.
8872 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
8874 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
8876 2008-02-20 Markus Deuling <deuling@de.ibm.com>
8878 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
8879 from disassemble_info instead of gdbarch_byte_order.
8881 * mips-tdep.c (gdb_print_insn_mips): Likewise.
8882 * arm-tdep.c (gdb_print_insn_arm): Likewise.
8884 2008-02-20 Markus Deuling <deuling@de.ibm.com>
8886 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
8887 gdbarch as parameter.
8889 * gdbarch.{c,h}: Regenerate.
8891 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
8893 * mem-break.c (default_memory_insert_breakpoint)
8894 (default_memory_remove_breakpoint): Likewise.
8895 * target.h (default_memory_remove_breakpoint)
8896 (default_memory_insert_breakpoint): Likewise.
8898 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
8899 parameter. Replace current_gdbarch by gdbarch.
8900 * m32r-tdep.c (m32r_memory_insert_breakpoint)
8901 (m32r_memory_remove_breakpoint): Likewise.
8903 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
8905 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
8907 2008-02-19 Joel Brobecker <brobecker@adacore.com>
8909 * NEWS: Add entry describing Add support improvements.
8911 2008-02-18 Markus Deuling <deuling@de.ibm.com>
8913 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
8916 2008-02-18 Markus Deuling <deuling@de.ibm.com>
8918 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
8919 register_offset_hack anymore.
8921 * regcache.{c,h} (register_offset_hack): Remove.
8923 2008-02-18 Markus Deuling <deuling@de.ibm.com>
8925 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
8927 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
8928 current_gdbarch by gdbarch.
8929 (hppa64_hpux_find_global_pointer): Likewise.
8930 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
8931 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
8932 find_global_pointer.
8934 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
8936 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
8938 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
8939 of gdbarch_num_regs.
8941 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
8942 replace current_gdbarch by gdbarch.
8943 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
8945 2008-02-18 Markus Deuling <deuling@de.ibm.com>
8947 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
8948 and replace current_gdbarch by gdbarch.
8950 (store_register): Update call for exec_one_dummy_insn.
8951 (fetch_register, store_register): Update call of regmap.
8953 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
8954 parameter and replace current_gdbarch by gdbarch.
8956 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
8957 the current architecture. Update call for getregs_supplies and
8959 (ppcnbsd_fetch_inferior_registers): Likewise.
8961 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
8962 replace current_gdbarch by gdbarch.
8963 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
8964 get_regcache_arch to get at the current architecture. Update call for
8967 2008-02-18 Markus Deuling <deuling@de.ibm.com>
8969 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
8972 2008-02-15 Markus Deuling <deuling@de.ibm.com>
8974 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
8976 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
8978 * NEWS: Mention pending breakpints in MI.
8980 2008-02-14 Markus Deuling <deuling@de.ibm.com>
8982 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
8984 2008-02-13 Markus Deuling <deuling@de.ibm.com>
8986 Add script to build and test GDB using enable-targets=all.
8988 * gdb_buildall.sh: New file.
8990 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
8992 * NEWS (New native configurations): Xtensa GNU/Linux.
8993 (New targets): Xtensa GNU/Linux.
8994 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
8996 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
8997 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
8998 * configure.tgt (xtensa*-*-linux*): New entry.
8999 * xtensa-config.c (xtensa_tdep): New variable.
9000 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
9001 (rmap): Change format based on new macro XTREG.
9002 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
9003 * xtensa-linux-nat.c: New.
9004 * xtensa-linux-tdep.c: New.
9005 * xtensa-xtregs.c: New.
9006 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
9007 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
9008 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
9009 (xtensa_register_t): New field coprocessor.
9010 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
9011 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
9012 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
9013 Update to handle privileged registers.
9014 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
9015 (xtensa_push_dummy_call): Set windowstart register correctly.
9016 (call0_analyze_prologue): Initialize xtensa_default_isa.
9017 (xtensa_derive_tdep): New.
9018 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
9019 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
9020 Call xtensa_derive_tdep().
9021 * config/xtensa/linux.mh: New.
9022 * regformats/reg-xtensa.dat: New.
9024 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
9026 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
9027 (filenames.h): New include.
9028 * Makefile.in (corelow.o): Add dependency for filenames.h.
9030 2008-02-08 Doug Evans <dje@google.com>
9032 * source.c (find_and_open_source): Always rewrite absolute filenames.
9034 2008-02-07 Doug Evans <dje@google.com>
9036 * breakpoint.c: #include "hashtab.h".
9037 (ambiguous_names_p): New fn.
9038 (update_breakpoint_locations): When restoring bp enable status, don't
9039 compare function names if any functions have same name.
9040 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
9042 2008-02-07 Joel Brobecker <brobecker@adacore.com>
9044 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
9045 instead of just a VEC*. Update use of SV.
9046 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
9048 2007-02-07 Joel Brobecker <brobecker@adacore.com>
9050 * NEWS: Put all new commands since gdb-6.7 together.
9052 2007-02-07 Joel Brobecker <brobecker@adacore.com>
9054 * ada-lang.c: #include "vec.h".
9055 (struct string_vector, new_string_vector, string_vector_append):
9057 (char_ptr): New typedef.
9058 (DEF_VEC_P (char_ptr)): New VEC type.
9059 (symbol_completion_add): Update profile to take the new VEC type
9060 instead of the old string_vector structure. Update code accordingly.
9061 (ada_make_symbol_completion_list): Use the new VEC type instead of
9062 the old string_vector structure, and update the code accordingly.
9063 * Makefile.in (ada-lang.o): Add dependency on vec.h.
9065 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9067 * p-exp.y: Set current_type in missing places.
9068 (leftdiv_is_integer): New static variable.
9069 Typecast right operand of BINOP_DIV to long_double if both operands
9072 2008-02-06 Maciej W. Rozycki <macro@mips.com>
9074 * remote-mips.c (set_breakpoint): Rename to...
9075 (mips_set_breakpoint): ... this.
9076 (clear_breakpoint): Rename to...
9077 (mips_clear_breakpoint): ... this.
9078 (common_breakpoint): Rename to...
9079 (mips_common_breakpoint): ... this.
9080 (check_lsi_error): Rename to...
9081 (mips_check_lsi_error): ... this.
9083 2007-02-05 Joel Brobecker <brobecker@adacore.com>
9085 * language.h (struct language_defn): Add new field
9086 la_make_symbol_completion_list.
9087 * symtab.c (default_make_symbol_completion_list): Renames
9088 make_symbol_completion_list.
9089 (make_symbol_completion_list): New function.
9090 * symtab.h (default_make_symbol_completion_list): Add declaration.
9091 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
9092 (auto_language, local_language): Likewise.
9093 * objc-lang.c (objc_language_defn): Likewise.
9094 * scm-lang.c (scm_language_defn): Likewise.
9095 * m2-lang.c (m2_language_defn): Likewise.
9096 * f-lang.c (f_language_defn): Likewise.
9097 * jv-lang.c (java_language_defn): Likewise.
9098 * p-lang.c (pascal_language_defn): Likewise.
9099 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
9100 (minimal_language_defn): Likewise.
9101 * ada-lang.c (struct string_vector): New structure.
9102 (new_string_vector, string_vector_append, ada_unqualified_name)
9103 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
9104 (ada_make_symbol_completion_list): New functions.
9105 (ada_language_defn): Set la_make_symbol_completion_list.
9106 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
9107 this function is static.
9109 2008-02-05 Kevin Buettner <kevinb@redhat.com>
9111 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
9112 to account for call site optimizations.
9114 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
9116 * tracepoint.c (read_actions): Handle end-of-text indicator
9117 in action list properly. (Committed by Jim Blandy)
9119 2008-02-05 Jim Blandy <jimb@red-bean.com>
9121 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
9122 pseudoregister, not an internal error.
9123 Reported by: Andrzej Zaborowski
9125 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
9127 * varobj.c (c_value_of_variable): Use xstrdup.
9129 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
9131 Update stored rendition of varobj value when format changes.
9132 * varobj.c (varobj_set_display_format): Recomputed
9134 (c_value_of_variable): Return print_value.
9136 2008-02-03 Doug Evans <dje@google.com>
9138 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
9139 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
9140 * valops.c (value_one): New function.
9141 * value.h (value_one): Declare.
9143 Fix argument promotion for binary arithmetic ops for C.
9144 * valarith.c (unop_result_type): New fn.
9145 (binop_result_type): New fn.
9146 (value_binop): Move result type computation to binop_result_type.
9147 (value_pos, value_neg, value_complement): Move result type
9148 computation to unop_result_type.
9151 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
9152 Return basetype, fieldno if found. All callers updated.
9153 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
9155 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
9156 * symfile.h (fill_in_vptr_fieldno): Delete.
9158 2008-02-02 Doug Evans <dje@google.com>
9160 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
9162 * typeprint.c (*): Whitespace cleanup.
9164 2008-02-02 Mark Kettenis <kettenis@gnu.org>
9165 Luis Machado <luisgpm@br.ibm.com>
9166 Thiago Jung Bauermann <bauerman@br.ibm.com>
9168 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
9169 don't fit into registerson the stack the way GCC does.
9171 2008-02-01 Joel Brobecker <brobecker@adacore.com>
9173 * symtab.c (symbol_set_names): Do not add an entry in the demangling
9174 hash table for Ada symbols. Just store the linkage name as is,
9175 and leave the demangled_name as NULL.
9177 2007-02-01 Joel Brobecker <brobecker@adacore.com>
9179 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
9180 in the global scope.
9181 (new_symbol): Likewise.
9183 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
9185 * breakpoint.c (break_command_1): Return void.
9186 (break_command_really): Return void. Rethrow
9187 exceptions instead of returning.
9188 (gdb_breakpoint): Remove the error_message parameter.
9189 Return void. Rename to set_breakpoint.
9190 * gdb.h (gdb_breakpoint): Rename and move to...
9191 * breakpoint.h (set_breakpoint): ...here.
9192 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
9193 event hooks even if exception is thrown. Adjust to
9194 gdb_breakpoint interface changes.
9197 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
9199 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
9200 float in both first and second word in the doubleword, to support
9203 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
9205 Properly rethrow exception. This fixes errors
9206 about non-existent functions for -break-insert.
9207 * breakpoint.c (break_command_really): Use throw_exception
9208 for rethrowing. If rethrowing, don't print the exception.
9210 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
9212 * NEWS: Mention Decimal Floating Point support.
9214 2008-01-31 Joel Brobecker <brobecker@adacore.com>
9216 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
9217 value type to builtin_type_void_func_ptr.
9219 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
9221 * s390-tdep.c (is_float_singleton, is_float_like,
9222 alignment_of, s390_return_value): Make checks for
9223 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
9225 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
9226 Thiago Jung Bauermann <bauerman@br.ibm.com>
9228 * infcmd.c (default_print_registers_info): Also print hex
9229 raw contents for TYPE_CODE_DECFLOAT registers.
9230 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
9231 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
9232 (rs6000_register_name): Add support for DFP pseudo-registers.
9233 (rs6000_pseudo_register_type): Likewise.
9234 rs6000_pseudo_register_reggroup_p): Likewise.
9235 (ppc_pseudo_register_read): New function.
9236 (ppc_pseudo_register_write): Likewise.
9237 (rs6000_pseudo_register_read): Likewise.
9238 (rs6000_pseudo_register_write): Likewise.
9239 (e500_pseudo_register_read): Move checks to
9240 rs6000_pseudo_register_read.
9241 (e500_pseudo_register_write): Move checks to
9242 rs6000_pseudo_register_write.
9243 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
9244 rs6000_pseudo_register_read and rs6000_pseudo_register_write
9245 in gdbarch if SPE or DFP is available. Adjust gdbarch's
9246 num_pseudo_regs to account for DFP pseudo regs.
9248 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
9250 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
9251 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
9252 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
9253 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
9254 e500_pseudo_register_read, e500_pseudo_register_write): Use
9255 IS_SPE_PSEUDOREG macro.
9256 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
9257 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
9258 Remove initialization of tdep->ppc_ev31_regnum.
9260 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
9262 * printcmd.c (print_formatted): Handle references as for unformatted
9265 2008-01-30 Joel Brobecker <brobecker@adacore.com>
9267 * eval.c (evaluate_subexp_standard): Add handling of user
9268 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
9270 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
9272 * eval.c (evaluate_subexp_standard): Support
9273 BINOP_INTDIV opcode.
9275 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
9277 * valarith.c (value_binop): Add floating-point BINOP_MIN and
9279 For BINOP_EXP, use length and signedness of left operand only for
9280 result, as for shifts.
9281 For integral operands to BINOP_EXP, use new integer_pow and
9282 uinteger_pow functions so as to get full range of results.
9283 (integer_pow): New function.
9284 (uinteger_pow): New function.
9286 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
9288 Use vector for varobj_list_children interface.
9289 * gdb/varobj.c (varobj_list_children): Return vector
9291 * gdb/varobj.h (varobj_list_children): Adjust
9293 (varobj_p): Declare. Declare vector thereof.
9294 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
9295 for varobj_list_children change.
9296 * Makefile.in (varobj_h): Update dependencies.
9298 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
9300 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
9301 TYPE_CODE_DECFLOAT arguments.
9302 (ppc64_sysv_abi_push_dummy_call) Likewise.
9303 (get_decimal_float_return_value): New function.
9304 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
9305 values by calling get_decimal_float_return_value.
9306 (ppc64_sysv_abi_return_value): Likewise.
9308 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
9310 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
9311 for preprocessor macro information. Formatting changes.
9313 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9315 * remote.c (struct remote_state): Add cached_wait_status.
9316 (remote_exec_file): New variable.
9317 (PACKET_vAttach, PACKET_vRun): New constants.
9318 (extended_remote_restart): Do not query for status.
9319 (struct start_remote_args): New.
9320 (remote_start_remote): Take it as a second argument. Check
9321 whether the target is running. Issue an error for non-running
9322 non-extended targets. Cache the wait status. Set inferior_ptid
9324 (remote_open_1): Prompt to disconnect non-running targets. Make
9325 sure the target is marked running. Do not set inferior_ptid here.
9326 Update call to remote_start_remote. Do not call remote_check_symbols
9327 if the target is not running.
9328 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
9329 argument. Handle a non-running target.
9330 (remote_detach): Use it.
9331 (extended_remote_detach): New.
9332 (remote_disconnect): Fix typo. Use remoute_mourn_1.
9333 (extended_remote_attach_1, extended_remote_attach)
9334 (extended_async_remote_attach): New.
9335 (remote_vcont_resume): Remove unused variable.
9336 (remote_wait, remote_async_wait): Use any cached wait status.
9337 (putpkt_binary, getpkt): Clear any cached wait status.
9338 (extended_remoute_mourn_1): New.
9339 (extended_remote_mourn): Use it.
9340 (extended_async_remote_mourn, extended_remote_run): New.
9341 (extended_remote_create_inferior_1): New.
9342 (extended_remote_create_inferior): Use it.
9343 (extended_remote_async_create_inferior): Likewise.
9344 (remote_xfer_partial): Skip for non-executing targets.
9345 (init_extended_remote_ops): Set to_detach and to_attach.
9346 (init_extended_async_remote_ops): Likewise. Use
9347 extended_async_remote_mourn.
9348 (_initialize_remote): Register vAttach, vRun, and
9349 set remote exec-file.
9350 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
9352 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9354 * Makefile.in (symfile.o): Update.
9355 * NEWS: Mention exec tracing support.
9356 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
9358 * infcmd.c (kill_if_already_running, detach_command)
9359 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
9360 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
9361 (follow_exec): Do not check may_follow_exec. Do not mourn and push
9362 targets. Apply the sysroot path to the loaded executable. Use
9363 no_shared_libraries.
9364 * linux-nat.c (linux_child_follow_fork): Print fork following
9365 messages if verbose.
9366 (kill_wait_callback): Kill again before waiting a second time.
9367 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
9368 no_shared_libraries.
9370 2008-01-29 Joel Brobecker <brobecker@adacore.com>
9372 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
9374 2008-01-29 Joel Brobecker <brobecker@adacore.com>
9376 * nto-tdep.h: Remove #include "defs.h".
9377 * nto-tdep.c: Add #include "defs.h".
9378 * Makefile.in (nto_tdep_h): Update dependencies.
9379 (nto-tdep.o): Likewise.
9381 2008-01-29 Joel Brobecker <brobecker@adacore.com>
9383 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
9385 (proceed, start_remote): Update call to wait_for_inferior.
9386 * inferior.h (wait_for_inferior): Update declaration.
9387 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
9388 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
9389 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
9390 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
9392 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
9394 * varobj (adjust_value_for_child_access): Added checking for
9395 returned value from gdb_value_ind.
9396 (c_describe_child): Likewise.
9397 (cplus_describe_child): Fixed a typo.
9399 2008-01-29 Jim Blandy <jimb@red-bean.com>
9401 * MAINTAINERS: Update my info.
9403 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
9405 Use multiple locations for hardware watchpoints.
9406 This eliminates the need to traverse value chain, doing
9407 various checks, in three different places.
9409 * breakpoint.h (struct bp_location): New fields
9410 lengths and watchpoint_type.
9411 (struct breakpoint): Remove the val_chain field.
9412 * breakpoint.c (is_hardware_watchpoint): New.
9413 (free_valchain): Remove.
9414 (update_watchpoint): New.
9415 (insert_bp_location): For hardware watchpoint, just
9417 (insert_breakpoints): Call update_watchpoint_locations
9418 on all watchpoints. If we have failed to insert
9419 any location of a hardware watchpoint, remove all inserted
9421 (remove_breakpoint): For hardware watchpoints, directly
9423 (watchpoints_triggered): Iterate over locations.
9424 (bpstat_stop_status): Use only first location of
9425 a resource watchpoint.
9426 (delete_breakpoint): Don't call free_valchain.
9427 (print_one_breakpoint): Don't print all
9428 locations for watchpoints.
9429 (breakpoint_re_set_one): Use update_watchpoint for
9432 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
9434 Don't reset watchpoint block on solib load.
9436 * breakpoint.c (insert_bp_location): For watchpoints,
9437 recompute condition.
9438 (breakpoint_re_set_one): Instead of recomputing value
9439 and condition for watchpoints, just reset value and
9440 let insert_breakpoints/insert_bp_location recompute it.
9441 Don't do anything about disabled watchpoint.
9443 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
9445 * valarith.c (value_binop): Handle unsigned integer
9448 2008-01-28 Kevin Buettner <kevinb@redhat.com>
9450 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
9451 instruction pattern that appears frequently in position
9452 independent code. Fix bug in code which looks for "fmov" and
9453 backtracks if no "fmov" is found.
9455 2008-01-28 Doug Evans <dje@google.com>
9457 * dbxread.c (read_dbx_symtab): Fix indentation.
9458 Reformat comments to 80 columns.
9459 Move local var def closer to only use.
9461 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
9463 * fork-child.c (SHELL_FILE): Remove #ifndef.
9464 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
9466 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
9468 * i386-tdep.c (i386_skip_noop): New function.
9469 (i386_analyze_prologue): Call i386_skip_noop function.
9471 2008-01-24 Michael Snyder <msnyder@specifix.com>
9473 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
9474 * win32-nat.c (win32_xfer_partial): Ditto.
9475 * target.c (default_xfer_partial): Minor whitespace adjustment.
9477 2008-01-24 Pedro Alves <pedro@codesourcery.com>
9479 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
9480 strip bit 1 even if pc doesn't point to thumb code.
9482 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
9484 * remote.c (remote_wait): Handle SIGINT between packets.
9485 (remote_async_wait): Likewise.
9487 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
9488 Chris Demetriou <cgd@google.com>
9490 * thread.c (add_thread_silent): Renamed
9492 (print_thread_events): New variable definition.
9493 (show_print_thread_events): New function.
9494 (_initialize_thread): Add "set print thread-events" and
9495 "show print thread-events" commands.
9496 (add_thread): Announce new thread.
9497 * gdbthread.h (add_thread_silent): Declare.
9498 (print_thread_events): New variable declaration.
9499 * inf-ttrace.c (inf_ttrace_wait): Don't
9500 inform about new thread, as add_thread is always
9501 called too, and will take care of that.
9502 * infrun.c (handle_inferior_event): Likewise.
9503 * procfs.c (procfs_wait): Likewise.
9504 * remote.c (remote_currthread): Likewise.
9505 * sol-thread.c (sol_thread_wait): Likewise.
9506 * win32-nat.c (get_win32_debug_event): Likewise.
9507 * linux-thread-db.c (attach_thread): Likewise.
9508 Remove the verbose parameter.
9509 (check_event): Make detach_thread be verbose
9510 only if print_thread_events is set.
9511 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
9512 about new thread. This is called only from
9513 linux-thread-db.c:attach_thread, which will take care.
9514 Remove the verbose parameter.
9515 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
9517 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
9519 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
9521 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
9523 * breakpoint.c (break_command_really): New parameter
9525 (break_command_1): Pass 0 as
9526 ignore_count to break_command_really.
9527 (gdb_breakpoint): Pass ignore_count to
9528 break_command_really.
9530 2008-01-21 Kevin Buettner <kevinb@redhat.com>
9532 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
9533 sigcontext struct via pointer.
9534 (struct sigframe comment): Update to show new field `psc'.
9536 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
9538 * infrun.c (handle_inferior_event): If
9539 we failed to remove breakpoints, error,
9540 don't try to increment PC by hand.
9542 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
9544 Add NetBSD/hppa target and host support.
9546 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
9547 (hppabsd_gregset): Move to ...
9548 (hppabsd_regset_from_core_section): Rename
9549 hppaobsd_regset_from_core_section and move to ...
9550 (hppabsd_find_global_pointer): Update comment.
9551 (hppabsd_init_abi): Make global. Do not register
9552 hppabsd_regset_from_core_section.
9553 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
9555 (_initialize_hppabsd_tdep): Move to ...
9556 * hppaobsd-tdep.c: ... here. New file.
9557 * hppnbsd-tdep.c: New file.
9558 * hppnbsd-nat.c: New file.
9559 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
9560 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
9561 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
9562 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
9563 * configure.host (hppa*-*-netbsd*): New entry.
9564 * configure.tgt (hppa*-*-netbsd*): New entry.
9565 (hppa*-*-openbsd*): Update.
9566 * NEWS (New native configuration): Mention NetBSD/hppa.
9567 (New targets): Mention NetBSD/hppa.
9569 2008-01-18 Markus Deuling <deuling@de.ibm.com>
9571 * gdbarch.sh (function_list): Add new property bits_big_endian to
9573 * gdbarch.{c,h}: Regenerate.
9575 * value.c (struct value): Replace BITS_BIG_ENDIAN by
9576 gdbarch_bits_big_endian (comment).
9577 (unpack_field_as_long, modify_field): Likewise.
9578 * value.h: Likewise (comment).
9579 * valops.c (value_slice): Likewise.
9580 * valarith.c (value_subscript, value_bit_index): Likewise.
9581 * gdbtypes.h (field): Likewise (comment).
9582 * eval.c (evaluate_subexp_standard): Likewise.
9583 * dwarf2read.c (dwarf2_add_field): Likewise.
9584 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
9585 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
9587 * defs.h (BITS_BIG_ENDIAN): Remove.
9589 2008-01-18 Markus Deuling <deuling@de.ibm.com>
9591 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
9593 * m2-exp.y (yylex): Likewise.
9594 * objc-exp.y (yylex): Likewise.
9596 * defs.h (DEPRECATED_STREQN): Remove.
9598 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
9600 * MAINTAINERS: Update my email address.
9602 2008-01-17 Jim Blandy <jimb@codesourcery.com>
9604 * README: Mention gdbserver/README.
9606 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
9608 * valarith.c (value_binop): Handle BINOP_INTDIV
9609 for unsigned and signed integers.
9611 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
9613 * s390-tdep.c (s390_gdbarch_init): Set default long double
9614 type to 128-bit IEEE quad.
9616 2008-01-17 Joel Brobecker <brobecker@adacore.com>
9618 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
9620 2008-01-16 Mark Kettenis <kettenis@gnu.org>
9622 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
9624 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
9625 * value.c: All callers changed.
9627 2008-01-16 Markus Deuling <deuling@de.ibm.com>
9629 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
9630 DEPRECATED_STREQ by its expression.
9631 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
9632 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
9633 (scan_xcoff_symtab): Likewise.
9634 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
9635 * f-lang.c (find_common_for_function): Likewise.
9636 * objc-exp.y (parse_number): Likewise.
9638 * defs.h (DEPRECATED_STREQ): Remove.
9640 2008-01-16 Markus Deuling <deuling@de.ibm.com>
9642 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
9643 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
9644 get_frame_arch to get at the current_architecture. Update AM33_MODE
9646 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
9647 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
9649 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
9651 2008-01-16 Markus Deuling <deuling@de.ibm.com>
9653 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
9655 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
9657 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
9658 current_gdbarch by gdbarch. Update caller.
9660 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
9661 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
9662 the current architecture. Update calls of
9663 amd64_native_gregset_supplies_p.
9664 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
9665 (amd64bsd_store_inferior_registers): Likewise.
9667 2008-01-16 Markus Deuling <deuling@de.ibm.com>
9669 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
9670 Replace current_gdbarch by gdbarch. Update caller.
9672 2008-01-16 Markus Deuling <deuling@de.ibm.com>
9674 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
9675 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
9676 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
9677 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
9678 (stabsect_build_psymtabs): Fix indentation.
9680 2008-01-15 Michael Snyder <msnyder@specifix.com>
9682 * corelow.c (core_xfer_partial): Comment, cut/paste error.
9684 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
9686 * win32-nat.c (win32_create_inferior): Restore code calling
9687 CloseHandle on ProcessInformation structure.
9689 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
9691 * configure.ac: Check for void * as 3 argument of ptrace.
9692 * configure: regenerate.
9694 2008-01-11 Markus Deuling <deuling@de.ibm.com>
9696 * alpha-tdep.c (alpha_heuristic_proc_start)
9697 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
9698 current_gdbarch by gdbarch.
9700 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
9701 current architecture by frame_info. Update alpha_heuristic_proc_start
9704 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
9705 get_frame_arch to get at the current architecture by frame_info. Update
9706 alpha_sigtramp_register_address call.
9708 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
9709 current_gdbarch by gdbarch. Update caller.
9710 (convert_to_extended, convert_from_extended): Add endianess parameter
9711 for comparison. Update caller.
9712 (arm_extract_return_value, arm_store_return_value): Use
9713 get_regcache_arch to get at the current architecture.
9715 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
9716 current_gdbarch by gdbarch. Update caller.
9717 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
9718 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
9720 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
9721 gdbarch as parameter. Update caller.
9722 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
9723 current_gdbarch by gdbarch. Update caller.
9725 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
9726 update caller. Replace current_gdbarch by gdbarch.
9728 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
9729 the current architecture. Replace current_gdbarch by gdbarch.
9730 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
9731 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
9732 expression. Add gdbarch as parameter and replace current_gdbarch with
9734 (M6811_TDEP): Remove.
9735 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
9737 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
9738 current_gdbarch by gdbarch. Update caller.
9740 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
9742 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
9745 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
9746 caller. Relace current_gdbarch by gdbarch.
9747 (altivec_register_p, spe_register_p): Likewise.
9748 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
9750 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
9751 altivec_register_p and spe_register_p.
9753 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
9754 caller. Replace current_gdbarch by gdbarch.
9755 (score_analyze_prologue): use get_frame_arch to get at the current
9758 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
9759 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
9760 current_gdbarch by gdbarch. Update caller.
9761 (sparc_frame_cache): Use get_frame_arch to get at the current
9763 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
9764 sparc_analyze_prologue.
9766 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
9769 2008-01-11 Markus Deuling <deuling@de.ibm.com>
9771 * exec.c: #include "arch-utils.h"
9772 (print_section_info): Use gdbarch_from_bfd to get at the
9773 current architecture. Replace current_gdbarch. Fix indention. Replace
9774 deprecated_print_address_numeric by paddress.
9775 * Makefile.in (exec.o) Add dependency to arch-utils.h.
9777 * valprint.c (val_print_string): Replace
9778 deprecated_print_address_numeric.
9779 * tracepoint.c (trace_mention, scope_info): Likewise.
9780 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
9781 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
9782 (maintenance_check_symtabs): Likewise.
9783 * symfile.c (list_overlays_command): Likewise.
9784 * stack.c (frame_info, print_block_frame_labels): Likewise.
9785 * printcmd.c (print_address, print_address_demangle)
9786 (address_info): Likewise.
9787 * corefile.c (memory_error): Likewise.
9788 * infcmd.c (jump_command): Likewise.
9789 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
9790 (mention, delete_breakpoint): Likewise.
9791 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
9792 * dwarf2read.c (dump_die): Likewise.
9793 * ada-valprint.c (ada_val_print_1): Likewise.
9794 * f-valprint.c (f_val_print): Likewise.
9795 * linux-fork.c (info_forks_command): Likewise.
9796 * m32r-com.c (m32r_load_section, m32r_load)
9797 (m32r_upload_command): Likewise.
9799 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
9801 2008-01-11 Markus Deuling <deuling@de.ibm.com>
9803 * gdbarch.sh (skip_prologue): Add gdbarch
9805 * gdbarch.{c,h}: Regenerate.
9807 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
9808 * amd64-tdep.c (amd64_skip_prologue): Likewise.
9809 * avr-tdep.c (avr_skip_prologue): Likewise.
9810 * cris-tdep.c (cris_skip_prologue): Likewise.
9811 * frv-tdep.c (frv_skip_prologue): Likewise.
9812 * h8300-tdep.c (h8300_skip_prologue): Likewise.
9813 * hppa-tdep.c (hppa_skip_prologue): Likewise.
9814 * i386-tdep.c (i386_skip_prologue): Likewise.
9815 * ia64-tdep.c (ia64_skip_prologue): Likewise.
9816 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
9817 * m32r-tdep.c (m32r_skip_prologue): Likewise.
9818 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
9819 * m68k-tdep.c (m68k_skip_prologue): Likewise.
9820 * m88k-tdep.c (m88k_skip_prologue): Likewise.
9821 * mep-tdep.c (mep_skip_prologue): Likewise.
9822 * mips-tdep.c (mips_skip_prologue): Likewise.
9823 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
9824 * mt-tdep.c (mt_skip_prologue): Likewise.
9825 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
9826 * score-tdep.c (score_skip_prologue): Likewise.
9827 * sh64-tdep.c (sh64_skip_prologue): Likewise.
9828 * sh-tdep.c (sh_skip_prologue): Likewise.
9829 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
9830 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
9831 * spu-tdep.c (spu_skip_prologue): Likewise.
9832 * v850-tdep.c (v850_skip_prologue): Likewise.
9833 * vax-tdep.c (vax_skip_prologue): Likewise.
9834 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
9835 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
9837 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
9838 current_gdbarch by gdbarch.
9839 * m32c-tdep.c (m32c_skip_prologue): Likewise.
9840 * s390-tdep.c (s390_skip_prologue): Likewise.
9842 2008-01-10 Doug Evans <dje@google.com>
9844 * defs.h (struct continuation_arg): Fix typo in comment.
9845 * target.c (target_translate_tls_address): Fix comment spelling error.
9847 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
9849 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
9850 (DOUBLEST_SCAN_FORMAT): Likewise.
9851 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
9852 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
9853 * c-exp.y (parse_number): Likewise.
9854 * jv-exp.y (parse_number): Likewise.
9855 * objc-exp.y (parse_number): Likewise.
9856 * p-exp.y (parse_number): Likewise.
9858 2008-01-09 Joel Brobecker <brobecker@adacore.com>
9860 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
9861 (check_typedef): Likewise.
9863 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
9865 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
9866 seen_double_big_d, treat the new H, D, and DD modifiers as length
9869 2008-01-08 Joel Brobecker <brobecker@adacore.com>
9871 * dwarf2read.c (read_enumeration_type): Add comment.
9873 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
9875 * config.in: Regenerate.
9877 2008-01-08 Joel Brobecker <brobecker@adacore.com>
9879 * ada-lang.c (ada_convert_actual): Renames convert_actual.
9881 (ada_convert_actuals): Delete.
9882 * ada-lang.h (ada_convert_actual): Add declaration.
9883 (ada_convert_actuals): Remove declaration.
9884 * infcall.c: #include "ada-lang.h".
9885 (value_arg_coerce): Add new parameter sp. Update function
9886 documetnation. Add handling of Ada function call parameters.
9887 * Makefile.in (infcall.o): Update dependencies.
9889 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
9891 * ada-lang.c (ensure_lval): Fix value lval kind.
9892 (convert_actual): Add handling for arguments passed by reference.
9894 2008-01-08 Doug Evans <dje@google.com>
9896 * dbxread.c (read_dbx_symtab): Fix indentation.
9898 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9900 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
9901 (valarith.o): Depend on dfp.h.
9902 (valops.o): Likewise.
9903 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
9904 (set_decnumber_context): New function.
9905 (decimal_check_errors): Likewise.
9906 (decimal_from_number): Likewise.
9907 (decimal_to_number): Likewise.
9908 (decimal_from_string): Use set_decnumber_context and
9909 decimal_check_errors.
9910 (decimal_from_integral): New function.
9911 (decimal_from_floating): Likewise.
9912 (decimal_to_double): Likewise.
9913 (promote_decimal): Likewise.
9914 (decimal_binop): Likewise.
9915 (decimal_is_zero): Likewise.
9916 (decimal_compare): Likewise.
9917 (decimal_convert): Likewise.
9918 * dfp.h (decimal_from_integral): New prototype.
9919 (decimal_from_floating): Likewise.
9920 (decimal_to_double): Likewise.
9921 (decimal_binop): Likewise.
9922 (decimal_is_zero): Likewise.
9923 (decimal_compare): Likewise.
9924 (decimal_convert): Likewise.
9925 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
9926 call to value_from_decfloat.
9927 * valarith.c: Include dfp.h.
9928 (value_args_as_decimal): New function.
9929 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
9930 (value_logical_not): Likewise.
9931 (value_equal): Likewise.
9932 (value_less): Likewise.
9933 (value_pos): Likewise.
9934 (value_neg): Formatting fix.
9935 * valops.c: Include dfp.h.
9936 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
9937 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
9938 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
9939 (value_from_decfloat): Remove expect_type argument.
9940 * value.h (value_from_decfloat): Update prototype.
9942 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
9944 Ignore change in name of dynamic linker during
9945 execution on Solaris. This also unbreaks pending breakpoints.
9947 * solist.h (struct target_so_ops): New field same.
9948 * solib-svr4.c (svr4_same): New.
9949 (_initialize_svr4_solib): Register svr4_same.
9950 * solib.c (update_solib_list): Use ops->same, if available.
9952 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
9954 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
9955 when using MS-DOS paths.
9957 2008-01-05 Pedro Alves <pedro@codesourcery.com>
9959 * NEWS: Mention --pid and --core command line behaviour changes.
9961 2008-01-05 Pedro Alves <pedro@codesourcery.com>
9963 * main.c (captured_main): Remove 'count' varible and the
9964 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
9965 --pid options were issued simultaneously. If an explicit pid
9966 option was passed, don't fallback to core file. Detect extra
9967 arguments better in the presence of explicit pid or core
9970 2008-01-05 Joel Brobecker <brobecker@adacore.com>
9972 * ada-lang.c (ada_which_variant_applies): Correctly compute
9973 the value of the discriminant when the variant record is packed.
9975 2008-01-04 Joel Brobecker <brobecker@adacore.com>
9977 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
9978 that are used to differentiate homonyms.
9980 2008-01-04 Jerome Guitton <guitton@adacore.com>
9982 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
9983 when the type is an anonymous pointer type.
9984 (ada_check_typedef): Avoid a seg fault when the type is null.
9985 * ada-typeprint.c (print_array_type): Add support for pointer
9988 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
9990 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
9992 2008-01-04 Joel Brobecker <brobecker@adacore.com>
9994 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
9995 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
9997 2008-01-04 Joel Brobecker <brobecker@adacore.com>
9999 * ada-exp.y (chop_separator): New function.
10000 (write_selectors): Rewrite to re-use chop_separator.
10001 (ada_nget_field_index, get_symbol_field_type): New functions.
10002 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
10005 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
10007 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
10008 of SYMBOL_VALUE when working with function symbols.
10010 2008-01-03 Joel Brobecker <brobecker@adacore.com>
10012 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
10013 expressions. These expressions do not need to be rewriten.
10015 2008-01-03 Joel Brobecker <brobecker@adacore.com>
10017 * dwarf2read.c (read_enumeration_type): Flag type as stub if
10018 the given die is a declaration.
10020 2008-01-03 Joel Brobecker <brobecker@adacore.com>
10022 * ada-lang.c (ada_array_bound_from_type): Make non-static.
10023 Handle properly the case when the index type is an enumerated type.
10024 Do not return the subtype of the bounds type, just return the
10025 bounds type directly - this is not needed and is more consistent
10026 with what we do for arrays when no XA parallel type exists.
10028 2008-01-03 Joel Brobecker <brobecker@adacore.com>
10030 * ada-lang.c (static_unwrap_type): Add forward declaration.
10031 (template_to_static_fixed_type): Fields of dynamic types sometimes
10032 also need to be unwrapped. Take this into account.
10033 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
10034 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
10035 * ada-typeprint.c (ada_print_type): Get the typename from
10036 the original type, not the base type.
10038 2008-01-03 Jerome Guitton <guitton@adacore.com>
10040 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
10041 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
10042 Update calls to ada_to_fixed_type.
10043 (ada_template_to_fixed_record_type_1): Ditto, but without looking
10045 (ada_to_fixed_type): Add check_tag parameter; do not look for
10046 tag if null. When looking for a tag, use a fixed record type.
10047 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
10048 * ada-valprint.c (printable_val_type, ada_value_print): Update
10049 calls to ada_to_fixed_type.
10051 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
10053 * doublest.c (convert_floatformat_to_doublest): Call
10054 floatformat_to_doublest instead of floatformat_to_double and use
10055 DOUBLEST variables.
10056 (convert_doublest_to_floatformat): Call floatformat_from_doublest
10057 instead of floatformat_from_double and use DOUBLEST variables.
10059 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
10061 * MAINTAINERS (Write After Approval): Add self.
10063 2008-01-03 Joel Brobecker <brobecker@adacore.com>
10065 * symfile.c (set_initial_language): Make non-static.
10066 * symfile.h (set_initial_language): Add declaration.
10067 * language.c: #include "symfile.h".
10068 (set_language): Call set_initial_language if the frame language
10069 could not be determined.
10071 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
10073 * eval.c (evaluate_subexp_for_address): Provide frame address to
10074 locate_var_value only if it will be needed.
10076 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10078 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
10080 2008-01-02 Joel Brobecker <brobecker@adacore.com>
10082 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
10083 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
10084 This is needed to make sure that any other treatment applied
10085 to the resulting value does not fail for spurious reason,
10086 such as trying to take the address of this value.
10088 2008-01-02 Joel Brobecker <brobecker@adacore.com>
10090 * ada-lang.c (ada_value_equal): Dereference reference types when
10093 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
10095 Updated copyright notices for most files.
10097 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
10099 * win32-nat.c (psapi_module_handle): Remove static.
10100 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
10101 return first module found if base_address is zero. Don't initialize
10102 psapi function pointers here. Convert to cygwin paths when
10104 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
10105 executable name. Use get_module_name when that fails or when
10107 (_initialize_psapi): New function. Initialize psapi stuff before it is
10108 needed or issue a warning if it is not found. Move psapi_module_handle
10111 2008-01-01 Joel Brobecker <brobecker@adacore.com>
10113 * ada-lang.c (ada_remove_trailing_digits): New function.
10114 (ada_remove_po_subprogram_suffix): New function.
10115 (ada_decode): Improve. Move the description of the algorithm
10116 directly inside the code, instead of in the function global
10119 2008-01-01 Joel Brobecker <brobecker@adacore.com>
10121 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
10122 and always print the dereferenced value.
10124 2008-01-01 Joel Brobecker <brobecker@adacore.com>
10126 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
10127 of the case where the first argument is a reference.
10128 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
10130 2008-01-01 Joel Brobecker <brobecker@adacore.com>
10132 Implement support for Ada interface types.
10134 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
10135 (ada_is_ignored_field): Ignore fields that are a dispatch table
10138 2008-01-01 Joel Brobecker <brobecker@adacore.com>
10140 * top.c (print_gdb_version): Update copyright year.
10142 2008-01-01 Joel Brobecker <brobecker@adacore.com>
10144 * ChangeLog-2007: New ChangeLog rotation.
10145 * ChangeLog: Reset for 2008.
10146 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
10149 For older changes see ChangeLog-2007.
10155 version-control: never