1 2008-11-17 Vladimir Prus <vladimir@codesourcery.com>
3 Implement =thread-selected notification.
5 * mi/mi-common.h (struct mi_interp): New, moved from ...
6 * mi/mi-interp.c: ...here.
7 * mi/mi-main.c (mi_execute_command): If the thread changed
8 as result of command, report that.
10 2008-11-17 Vladimir Prus <vladimir@codesourcery.com>
12 Implement continue/interrupt of thread groups.
14 * mi/mi-main.c (proceed_thread_callback): New.
15 (mi_cmd_exec_continue): If --thread-group is specified, resume all
16 threads in that group.
17 (interrupt_thread_callback): New.
18 (mi_cmd_exec_interrupt): If --thread-group is specified, interrupt
19 all threads in that group.
21 2008-11-17 Vladimir Prus <vladimir@codesourcery.com>
23 Implement '-target-detach pid'.
25 * infcmd.c (detach_command): Make nonstatic.
26 * inferior.h (detach_command): Declare.
27 * mi/mi-cmds.c (mi_cmds): Don't route -target-detach via CLI.
28 * mi/mi-cmds.h (mi_cmd_target_detach): Declare.
29 * mi/mi-main.c (find_thread_of_process, mi_cmd_target_detach): New.
31 2008-11-17 Vladimir Prus <vladimir@codesourcery.com>
33 Include group-id in thread-created notification.
35 * mi/mi-interp.c (mi_new_thread, mi_thread_exit): Include
36 group id in the output.
38 2008-11-17 Vladimir Prus <vladimir@codesourcery.com>
40 Notification for attach/detach.
42 * inferior.c: Call the process observers.
43 * mi/mi-interp.c (mi_new_inferior, mi_inferior_exit): New.
44 (mi_interpreter_init): Register the above.
46 2008-11-17 Vladimir Prus <vladimir@codesourcery.com>
48 Implement -list-thread-groups.
50 * thread.c (print_thread_info): New parameter pid, to print
51 threads of specific process.
52 * gdbthread.h (print_thread_info): New parameter pid.
53 * mi/mi-cmds.c (mi_cmds): Register -list-thread-groups.
54 * mi/mi-cmds.h (mi_cmd_list_thread_groups): New.
55 * mi/mi-main.c (mi_cmd_thread_info): Adjust.
56 (print_one_process, mi_cmd_list_thread_groups): New.
58 2008-11-16 Joel Brobecker <brobecker@adacore.com>
60 Remove some unused macros related to the old load/unload catchpoints.
62 * breakpoint.c (SOLIB_LOADED_LIBRARY_PATHNAME)
63 (SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_CREATE_CATCH_LOAD_HOOK)
64 (SOLIB_CREATE_CATCH_UNLOAD_HOOK): Delete. No longer used.
66 2008-11-16 Joel Brobecker <brobecker@adacore.com>
68 Remove support for catch load and catch unload commands.
70 * breakpoint.h (enum bptype): Remove bp_catch_load and bp_catch_unload.
71 (struct breakpoint): Remove fields dll_pathname and
72 triggered_dll_pathname.
73 (bpstat_get_triggered_catchpoints, ep_is_shlib_catchpoint): Delete.
74 * breakpoint.c (ep_is_catchpoint): Remove handling of
75 bp_catch_load and bp_catch_unload.
76 (print_it_typical, bpstat_check_location, bpstat_what)
77 (print_one_breakpoint_location, print_one_breakpoint_location)
78 (user_settable_breakpoint, allocate_bp_location)
79 (set_raw_breakpoint_without_location, mention, delete_breakpoint,
80 (breakpoint_re_set_one, disable_command, enable_command): Likewise.
81 (ep_is_shlib_catchpoint, bpstat_get_triggered_catchpoints)
82 (catch_load_command_1, catch_unload_command_1): Delete.
83 (_initialize_breakpoint): Remove the "catch load" and "catch unload"
85 * infrun.c (handle_inferior_event): Remove the handling of
86 load/unload catchpoint events.
88 2008-11-15 Joel Brobecker <brobecker@adacore.com>
90 From Jerome Guitton <guitton@adacore.com>
91 * dwarf2read.c (dwarf2_debug_line_missing_end_sequence_complaint):
93 (dwarf_decode_lines): Detect null file numbers. Detect the end of
94 the line program sequence when no end sequence is emitted.
96 2008-11-15 Joel Brobecker <brobecker@adacore.com>
98 * ada-lang.c (ada_evaluate_subexp): Improve handling of integer
101 2008-11-15 Daniel Jacobowitz <dan@codesourcery.com>
103 * NEWS: Mention sparc64-linux-gnu gdbserver support.
105 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
107 * configure.tgt (sparc64-*-linux*): Added gdbserver support.
108 * regformats/reg-sparc64.dat: New file.
110 2008-11-14 Tom Tromey <tromey@redhat.com>
113 * mi/mi-main.c (get_register): Use get_formatted_print_options.
115 2008-11-13 Joel Brobecker <brobecker@adacore.com>
117 * printcmd.c: define PRINTF_HAS_LONG_LONG only if not yet defined.
119 2008-11-13 Ulrich Weigand <uweigand@de.ibm.com>
121 * auxv.c (fprint_target_auxv): Handle AT_BASE_PLATFORM and
122 AT_EXECFN. Re-sort AT_SECURE.
124 2008-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
126 * monitor.c (monitor_insert_breakpoint): Remove unused variable `bp'.
128 2008-11-13 Joel Brobecker <brobecker@adacore.com>
130 * ia64-tdep.c: Remove commented out #define.
132 2008-11-12 Joel Brobecker <brobecker@adacore.com>
134 From Joel Sherrill <joel.sherrill@oarcorp.com>
135 * remote-sim.c (gdbsim_mourn_inferior): Use "target" parameter
136 instead of the "gdbsim_ops" global.
138 2008-11-11 Doug Evans <dje@google.com>
140 * infcall.c (call_function_by_hand): Handle inferior exit.
142 2008-11-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
144 * remote-sim.c (gdbsim_create_inferior, gdbsim_mourn_inferior): Add
145 missing struct target_ops argument.
147 2008-11-11 Joel Sherrill <joel.sherrilL@oarcorp.com>
149 * MAINTAINERS: Add myself for write after approval privileges.
151 2008-11-10 Tom Tromey <tromey@redhat.com>
153 * gdbtypes.c (copy_type_recursive): Clear new fields.
155 2008-11-10 Tom Tromey <tromey@redhat.com>
157 * cli/cli-cmds.c (source_script): Clean up full_pathname. Run
158 cleanups on early return.
160 2008-11-09 Vladimir Prus <vladimir@codesourcery.com>
162 Kill pthread_ops_hack
164 * target.h (struct target_ops): Make to_attach, to_detach,
165 to_create_inferior and to_mourn_inferior accept a pointer
166 to struct target_ops.
167 (target_attach, target_create_inferior, target_create_inferior):
168 Convert from macros to function. Find the right target to
170 (find_default_attach, find_default_create_inferior): New parameter
172 * corefile.c (core_file_command): Pass target to to_detach.
173 * corelow.c (core_detach): Add 'ops' parameter.
174 * fork-child.c (fork_inferior): Return the pid. Allow
175 init_trace_fun to be NULL.
176 * inf-ptrace (ptrace_ops_hack): Remove.
177 (inf_ptrace_him): Remove, moving all logic into....
178 (inf_ptrace_create_inferior): ... here. Push the target
180 (inf_ptrace_mourn_inferior, inf_ptrace_attach, inf_ptrace_detach):
181 Push/pop target passed as parameter, no ptrace_ops_hack.
182 (inf_ptrace_target): Don't remember result.
183 * inferior.h (fork_inferior): Adjust prototype.
184 * linux-nat.c (linux_nat_create_inferior, linux_nat_attach)
185 (linux_nat_detach, linux_nat_mourn_inferior): New parameter ops.
186 Pass it to linux_ops target.
187 * linux-thread-db.c (thread_db_detach, thread_db_mourn_inferior):
188 New parameter ops. Pass it to the target beneath.
189 * remote.c (remote_mourn, extended_remote_mourn, remote_detach)
190 (extended_remote_create_inferior): New parameter ops. Pass it
192 * target.c (debug_to_attach, debug_to_detach)
193 (debug_to_mourn_inferior): New parameter ops.
194 (target_create_inferior): New.
195 (update_current_target): Do not inherit to_attach, to_detach,
196 to_create_inferiour, to_mourn_inferior. Do not default
197 to_detach and to_mourn_inferior.
198 (target_detach): Find the right target to use.
199 (target_mourn_inferior): New.
200 (find_default_attach, find_default_create_inferior): New parameter
201 ops. Pass the found target when calling its method.
202 (init_dummy_target): Provide fallback definition of to_detach.
203 (target_attach): New.
204 (debug_to_attach, debug_to_detach, debug_to_create_inferior)
205 (debug_to_mourn_inferiour): New parameter ops.
206 * aix-thread.c: Adjust.
207 * bsd-uthread.c: Adjust.
209 * go32-nat.c: Adjust.
210 * hpux-thread.c: Adjust.
211 * inf-ttrace.c: Ajust.
213 * nto-procfs.c: Adjust.
215 * remote-m32r-sdi.c: Adjust.
216 * remote-mips.c: Adjust.
217 * remote-sim.c: Adjust.
218 * rs6000-nat.c: Adjust.
219 * sol-thread.c: Adjust.
220 * win32-nat.c: Adjust.
221 * dec-thread.c: Adjust.
223 2008-11-09 Vladimir Prus <vladimir@codesourcery.com>
225 * thread.c (print_thread_info): Eliminate now useless checks
228 2008-11-06 Pedro Alves <pedro@codesourcery.com>
230 * i386-dicos-tdep.c (i386_dicos_init_abi): Set decr_pc_after_break
233 2008-11-05 Pedro Alves <pedro@codesourcery.com>
235 * remote.c (notice_new_inferiors): Add a new inferior only when
236 we're going to add a new thread.
238 2008-11-05 Pedro Alves <pedro@codesourcery.com>
240 * defs.h (add_inferior_continuation)
241 (do_all_inferior_continuations)
242 (discard_all_inferior_continuations): Declare.
243 * utils.c (add_inferior_continuation)
244 (do_all_inferior_continuations)
245 (discard_all_inferior_continuations): New.
246 * inferior.h (struct inferior) <continuations>: New field.
247 * inferior.c (free_inferior): Discard all the inferior
249 * inf-loop.c (inferior_event_handler): Do all current inferior
251 * infcmd.c (attach_command): Register an inferior continuation
252 instead of a thread continuation.
253 * infrun.c (handle_inferior_event): If stop_soon is
254 STOP_QUIETLY_NO_SIGSTOP, also expect a TARGET_SIGNAL_0.
256 2008-11-04 Pedro Alves <pedro@codesourcery.com>
258 * inf-loop.c (inferior_event_handler): On INF_ERROR and
259 INF_REG_EVENT throwing, don't call target_async or pop_target.
260 Call pop_all_targets_above.
261 * remote.c (remote_close): Call remote_terminal_ours. Don't call
262 signal or target_async.
264 2008-11-04 Daniel Jacobowitz <dan@codesourcery.com>
266 * eval.c (evaluate_subexp_standard): Assert that there is at
267 least one array dimension.
269 2008-11-03 Vladimir Prus <vladimir@codesourcery.com>
271 Make attach_command exception-safe
272 * infcmd.c (attach_command): Call async_enable_stdin
273 if exception is thrown.
275 2008-11-03 Pedro Alves <pedro@codesourcery.com>
277 * gdbarch.sh (has_global_solist): Mention global breakpoints.
278 * gdbarch.h: Regenerate.
280 2008-11-03 Pedro Alves <pedro@codesourcery.com>
282 * remote.c (remote_start_remote): If the solib list is global,
283 fetch libraries and insert breakpoints after connecting.
284 * infcmd.c (post_create_inferior): If the solist is shared between
285 inferiors, no need to refetch it on every new inferior.
286 (detach_command): If the shared library list is shared between
287 inferiors, then don't clear it on every inferior detach.
288 * gdbarch.sh (has_global_solist): New.
289 * i386-dicos-tdep.c (i386_dicos_init_abi): Set
290 gdbarch_has_global_solist.
291 * target.c (target_pre_inferior): If the shared library list is
292 shared between inferiors, then don't clear it here, neither
293 invalidate the memory regions or clear the target description.
294 (target_detach): If the shared library list is shared between
295 inferiors, then don't remove breakpoints from the target here.
296 (target_disconnect): Comment.
297 * solib.c (update_solib_list): Check for null_ptid.
298 * breakpoint.c (insert_breakpoints, update_global_location_list):
299 If the shared library list is shared between inferiors, insert
300 breakpoints even if there's no execution.
301 (breakpoint_init_inferior): If the shared library list is shared
302 between inferiors, don't delete breakpoints or mark them
305 * gdbarch.c, gdbarch.h: Regenerate.
307 2008-10-31 Pedro Alves <pedro@codesourcery.com>
309 * inferior.h (inferior_ignoring_leading_exec_events): Delete
312 2008-10-31 Pedro Alves <pedro@codesourcery.com>
314 * inferior.h (write_inferior_status_register): Delete.
315 * infrun.c (write_inferior_status_register): Delete.
317 2008-10-30 Tom Tromey <tromey@redhat.com>
319 * value.c (coerce_array): Use check_typedef.
321 2008-10-30 Tom Tromey <tromey@redhat.com>
323 * cli/cli-logging.c (handle_redirections): Make a cleanup.
324 * reggroups.c (maintenance_print_reggroups): Make a cleanup.
325 * regcache.c (regcache_print): Make a cleanup.
326 * maint.c (maintenance_print_architecture): Make a cleanup.
327 * dummy-frame.c (maintenance_print_dummy_frames): Make a cleanup.
329 2008-10-30 Tom Tromey <tromey@redhat.com>
331 * utils.c (make_cleanup_close): Use make_cleanup_dtor.
332 (do_close_cleanup): Don't free 'fd'.
334 2008-10-30 Tom Tromey <tromey@redhat.com>
336 * source.c (symtab_to_fullname): Test 'r >= 0'.
337 (psymtab_to_fullname): Likewise.
338 (get_filename_and_charpos): Make a cleanup.
339 (forward_search_command): Likewise.
340 (reverse_search_command): Likewise.
341 * exec.c (exec_file_attach): Close scratch_chan on failure.
342 * nto-procfs.c (procfs_open): Make a cleanup.
343 (procfs_pidlist): Likewise.
344 (do_closedir_cleanup): New function.
346 2008-10-30 Andreas Schwab <schwab@suse.de>
348 * infcmd.c (construct_inferior_arguments): Handle newlines
351 2008-10-30 Joel Brobecker <brobecker@adacore.com>
353 * breakpoint.h (enum bptype): Delete bp_catch_exec.
354 * breakpoint.c (insert_catchpoint): Remove handling for
355 bp_catch_exec breakpoint kinds.
356 (insert_bp_location, update_breakpoints_after_exec, remove_breakpoint)
357 (ep_is_catchpoint, print_it_typical, bpstat_check_location),
358 (bpstat_check_location, bpstat_what, print_one_breakpoint_location)
359 (print_one_breakpoint_location, user_settable_breakpoint)
360 (breakpoint_address_is_meaningful, adjust_breakpoint_address)
361 (allocate_bp_location, mention, breakpoint_re_set_one)
362 (disable_command, enable_command): Likewise.
363 (create_exec_event_catchpoint): Delete.
364 (insert_catch_exec, remove_catch_exec, breakpoint_hit_catch_exec)
365 (print_it_catch_exec, print_one_catch_exec, print_mention_catch_exec):
367 (catch_exec_breakpoint_ops): New static global.
368 (catch_exec_command_1): Use create_catchpoint instead of
369 create_exec_event_catchpoint to create the exec catchpoint.
371 2008-10-28 Tom Tromey <tromey@redhat.com>
373 * Makefile.in (SUBDIR_CLI_OBS): Don't mention cli-utils.o.
374 (SUBDIR_CLI_DEPS): Don't mention cli-utils.c.
375 (HFILES_NO_SRCDIR): Don't mention cli-utils.h.
376 (cli-utils.o): Remove.
377 * cli/cli-utils.c: Remove.
378 * cli/cli-utils.h: Remove.
380 2008-10-28 Tom Tromey <tromey@redhat.com>
382 * varobj.c (value_get_print_value): Include valprint.h.
383 (value_get_print_value): Use get_formatted_print_options.
384 * value.h (struct value_print_options): Declare.
385 (value_print, val_print, common_val_print, val_print_string):
387 * value.c: Include valprint.h.
388 (show_values): Use get_user_print_options.
389 (show_convenience): Likewise.
390 * valprint.h (prettyprint_arrays, prettyprint_structs): Don't
392 (struct value_print_options): New type.
393 (vtblprint, unionprint, addressprint, objectprint, print_max,
394 inspect_it, repeat_count_threshold, output_format,
395 stop_print_at_null): Don't declare.
396 (user_print_options, get_user_print_options,
397 get_raw_print_options, get_formatted_print_options): Declare.
398 (print_array_indexes_p): Don't declare.
399 (maybe_print_array_index, val_print_array_elements): Update.
400 * valprint.c (print_max): Remove.
401 (user_print_options): New global.
402 (get_user_print_options, get_raw_print_options,
403 get_formatted_print_options): New functions.
404 (print_array_indexes, repeat_count_threshold, stop_print_at_null,
405 prettyprint_structs, prettyprint_arrays, unionprint,
406 addressprint): Remove.
407 (val_print): Remove format, deref_ref, pretty arguments; add
409 (common_val_print): Likewise.
410 (print_array_indexes_p): Remove.
411 (maybe_print_array_index): Remove format, pretty arguments; add
413 (val_print_array_elements): Remove format, deref_ref, pretty
414 arguments; add options. Update.
415 (val_print_string): Add options argument. Update.
416 (_initialize_valprint): Use user_print_options.
417 (output_format): Remove.
418 (set_output_radix_1): Use user_print_options.
419 * typeprint.c: Include valprint.h.
420 (objectprint): Don't declare.
421 (whatis_exp): Use get_user_print_options.
422 * tui/tui-regs.c: Include valprint.h.
423 (tui_register_format): Use get_formatted_print_options.
424 * tracepoint.c: Include valprint.h.
425 (addressprint): Don't declare.
426 (trace_mention): Use get_user_print_options.
427 (tracepoints_info): Likewise.
428 * stack.c (print_frame_args): Use get_raw_print_options.
429 (print_frame_info): Use get_user_print_options.
430 (print_frame): Likewise.
431 * sh64-tdep.c: Include valprint.h
432 (sh64_do_register): Use get_formatted_print_options.
433 * scm-valprint.c (scm_inferior_print): Remove format, deref_ref,
434 pretty arguments; add options.
435 (scm_scmlist_print): Likewise. Update.
436 (scm_scmval_print): Likewise.
437 (scm_val_print): Likewise.
438 (scm_value_print): Remove format, pretty arguments; add options.
440 * scm-lang.h (scm_value_print, scm_val_print, scm_scmval_print):
442 * scm-lang.c (scm_printstr): Add options argument.
443 * python/python-value.c: Include valprint.h.
444 (valpy_str): Use get_user_print_options.
445 * printcmd.c: Include valprint.h.
446 (addressprint): Don't declare.
447 (inspect_it): Remove.
448 (print_formatted): Remove format option; add options. Update.
449 (print_scalar_formatted): Likewise.
450 (print_address_demangle): Use get_user_print_options.
451 (do_examine): Use get_formatted_print_options.
452 (print_command_1): Likewise.
453 (output_command): Use get_formatted_print_options.
454 (do_one_display): Likewise.
455 (print_variable_value): Use get_user_print_options.
456 * p-valprint.c (pascal_val_print): Remove format, deref_ref,
457 pretty arguments; add options. Update.
458 (pascal_value_print): Remove format, pretty arguments; add
460 (vtblprint, objectprint): Don't declare.
461 (pascal_static_field_print): Remove.
462 (pascal_object_print_value_fields): Remove format, pretty
463 arguments; add options. Update.
464 (pascal_object_print_static_field): Likewise.
465 (_initialize_pascal_valprint): Use user_print_options. Update.
466 * p-lang.h (pascal_val_print, pascal_value_print,
467 pascal_printstr, pascal_object_print_value_fields): Update.
468 (vtblprint, static_field_print): Don't declare.
469 * p-lang.c (pascal_printstr): Add options argument. Update.
470 * objc-lang.c (objc_printstr): Add options argument. Update.
471 * mt-tdep.c: Include valprint.h.
472 (mt_registers_info): Use get_raw_print_options.
473 * mips-tdep.c: Include valprint.h.
474 (mips_print_fp_register): Use get_formatted_print_options.
475 (mips_print_register): Likewise.
476 * mi/mi-main.c: Include valprint.h.
477 (get_register): Use get_user_print_options.
478 (mi_cmd_data_evaluate_expression): Likewise.
479 (mi_cmd_data_read_memory): Use get_formatted_print_options.
480 * mi/mi-cmd-stack.c: Include valprint.h.
481 (list_args_or_locals): Use get_raw_print_options.
482 * m2-valprint.c (print_function_pointer_address): Add addressprint
484 (m2_print_long_set): Remove format, pretty arguments.
485 (m2_print_unbounded_array): Remove format, deref_ref, pretty
486 arguments; add options. Update.
487 (print_unpacked_pointer): Remove format argument; add options.
489 (print_variable_at_address): Remove format, deref_ref, pretty
490 arguments; add options. Update.
491 (m2_print_array_contents): Likewise.
492 (m2_val_print): Likewise.
493 * m2-lang.h (m2_val_print): Update.
494 * m2-lang.c (m2_printstr): Add options argument. Update.
495 * language.h (struct value_print_options): Declare.
496 (struct language_defn) <la_printstr>: Add options argument.
497 <la_val_print>: Remove format, deref_ref, pretty argument; add
499 <la_value_print>: Remove format, pretty arguments; add options.
500 <la_print_array_index>: Likewise.
501 (LA_VAL_PRINT, LA_VALUE_PRINT, LA_PRINT_STRING,
502 LA_PRINT_ARRAY_INDEX): Update.
503 (default_print_array_index): Update.
504 * language.c (default_print_array_index): Remove format, pretty
505 arguments; add options. Update.
506 (unk_lang_printstr): Add options argument.
507 (unk_lang_val_print): Remove format, deref_ref, pretty arguments;
509 (unk_lang_value_print): Remove format, pretty arguments; add
511 * jv-valprint.c (java_value_print): Remove format, pretty
512 arguments; add options. Update.
513 (java_print_value_fields): Likewise.
514 (java_val_print): Remove format, deref_ref, pretty arguments; add
516 * jv-lang.h (java_val_print, java_value_print): Declare.
517 * infcmd.c: Include valprint.h.
518 (print_return_value): Use get_raw_print_options.
519 (default_print_registers_info): Use get_user_print_options,
520 get_formatted_print_options.
521 (registers_info): Use get_formatted_print_options.
522 * gdbtypes.h (struct value_print_options): Declare.
523 (print_scalar_formatted): Update.
524 * f-valprint.c (f77_print_array_1): Remove format, deref_ref,
525 pretty arguments; add options. Update.
526 (f77_print_array): Likewise.
527 (f_val_print): Likewise.
528 * f-lang.h (f_val_print): Update.
529 * f-lang.c (f_printstr): Add options argument. Update.
530 (c_value_print): Update declaration.
531 * expprint.c: Include valprint.h.
532 (print_subexp_standard): Use get_raw_print_options,
533 get_user_print_options.
534 * eval.c: Include valprint.h.
535 (objectprint): Don't declare.
536 (evaluate_subexp_standard): Use get_user_print_options.
537 * cp-valprint.c (vtblprint, objectprint, static_field_print):
539 (cp_print_value_fields): Remove format, pretty arguments; add
541 (cp_print_value): Likewise.
542 (cp_print_static_field): Likewise.
543 (_initialize_cp_valprint): Use user_print_options. Update.
544 * c-valprint.c (print_function_pointer_address): Add addressprint
546 (c_val_print): Remove format, deref_ref, pretty arguments; add
548 (c_value_print): Add options argument. Update.
549 * c-lang.h (c_val_print, c_value_print, c_printstr): Update.
550 (vtblprint, static_field_print): Don't declare.
551 (cp_print_value_fields): Update.
552 * c-lang.c (c_printstr): Add options argument. Update.
553 * breakpoint.c: Include valprint.h.
554 (addressprint): Don't declare.
555 (watchpoint_value_print): Use get_user_print_options.
556 (print_one_breakpoint_location): Likewise.
557 (breakpoint_1, print_it_catch_fork, print_it_catch_vfork, mention,
558 print_exception_catchpoint): Likewise.
559 * auxv.c (fprint_target_auxv): Don't declare addressprint. Use
560 get_user_print_options.
561 * ada-valprint.c (struct ada_val_print_args): Remove format,
562 deref_ref, and pretty; add options.
563 (print_optional_low_bound): Add options argument.
564 (val_print_packed_array_elements): Remove format and pretty
565 arguments; add options. Update.
566 (printstr): Add options argument. Update.
567 (ada_printstr): Likewise.
568 (ada_val_print): Remove format, deref_ref, pretty arguments; add
569 options argument. Update.
570 (ada_val_print_stub): Update.
571 (ada_val_print_array): Remove format, deref_ref, pretty arguments;
573 (ada_val_print_1): Likewise.
574 (print_variant_part): Likewise.
575 (ada_value_print): Remove format, pretty arguments; add options.
577 (print_record): Likewise.
578 (print_field_values): Likewise.
579 * ada-lang.h (ada_val_print, ada_value_print, ada_printstr):
581 * ada-lang.c (ada_print_array_index): Add options argument; remove
582 format and pretty arguments.
583 (print_one_exception): Use get_user_print_options.
585 2008-10-28 Tom Tromey <tromey@redhat.com>
587 * cli/cli-script.c (do_fclose_cleanup): Remove.
588 (script_from_file): Use make_cleanup_fclose.
589 * xml-tdesc.c (do_cleanup_fclose): Remove.
590 (fetch_xml_from_file): Use make_cleanup_fclose.
591 * tracepoint.c (tracepoint_save_command): Use
592 make_cleanup_fclose. Always free pathname.
593 * source.c (print_source_lines_base): Use make_cleanup_fclose.
594 * remote.c (fclose_cleanup): Remove.
595 (remote_file_put): Use make_cleanup_fclose.
596 (remote_file_get): Likewise.
597 * linux-nat.c (linux_nat_find_memory_regions): Use
599 (linux_nat_info_proc_cmd): Likewise.
600 (linux_proc_pending_signals): Likewise.
601 * fbsd-nat.c (fbsd_find_memory_regions): Use make_cleanup_fclose.
603 * cli/cli-dump.c (do_fclose_cleanup): Remove.
604 (make_cleanup_fclose): Remove.
605 * defs.h (make_cleanup_fclose): Declare.
606 * utils.c (do_fclose_cleanup): New function.
607 (make_cleanup_fclose): Likewise.
609 2008-10-27 Pedro Alves <pedro@codesourcery.com>
611 * inflow.c (kill_command): If the target claims there is still
612 execution, don't clear the thread list.
614 2008-10-27 Pedro Alves <pedro@codesourcery.com>
616 * cp-name-parser.y: Include defs.h instead of config.h.
617 (parse_escape): Rename to ...
618 (cp_parse_escape): ... this.
620 (xfree) [TEST_CPNAMES]: New.
622 2008-10-27 Pedro Alves <pedro@codesourcery.com>
624 * CONTRIBUTE: Mention autoconf 2.59 and configure.ac instead of
625 2.13 and configure.in.
627 2008-10-27 Pedro Alves <pedro@codesourcery.com>
629 * target.h (struct target_ops) <to_supports_multi_process>: New
631 (target_supports_multi_process): New define.
632 * target.c (update_current_target): Inherit and de_fault
633 to_supports_multi_process.
634 * infcmd.c (attach_command): Allow attaching to multiple processes
635 if the target supports it.
636 (detach_command): If the target claims there is still execution,
637 don't clear the thread list.
638 * remote.c (remote_supports_multi_process): New.
639 (init_remote_ops): Register remote_supports_multi_process.
641 2008-10-27 Pedro Alves <pedro@codesourcery.com>
643 * Makefile.in (.y.c, .l.c): sed free to xfree.
645 2008-10-27 Pedro Alves <pedro@codesourcery.com>
647 * Makefile.in (INSTALLED_LIBS, CLIBS): Remove reference to
649 (CDEPS): Remove reference to $(TM_CDEPS).
651 2008-10-26 Michael Snyder <msnyder@vmware.com>
653 * infrun.c (handle_inferior_event): Handle dynamic symbol
654 resolution in reverse.
656 2008-10-25 Joel Brobecker <brobecker@adacore.com>
658 * infrun.c: Minor comment reformatting.
660 2008-10-25 Pedro Alves <pedro@codesourcery.com>
662 * ada-exp.y (write_object_renaming): Use malloc instead of
664 * p-exp.y (pop_current_type): Use free instead of xfree.
666 2008-10-24 Pedro Alves <pedro@codesourcery.com>
668 * fork-child.c (startup_inferior): Only set threads not-executing
669 after getting all the pending execs. On TARGET_WAITKIND_IGNORE,
670 keep waiting, don't resume. On all other cases but
671 TARGET_WAITKIND_SIGNALLED and TARGET_WAITKIND_EXITED, switch to
674 2008-10-24 Pedro Alves <pedro@codesourcery.com>
676 Remote non-stop mode support.
678 * remote.c (pending_stop_reply): New.
679 (struct remote_state) <non_stop_aware, support_vCont_t>: New
681 (remote_async_inferior_event_token)
682 (remote_async_get_pending_events_token): New.
683 (notice_new_inferiors): New, abstracted out from record_currthread.
684 (record_currthread): Call it.
685 (remote_threads_info): Default threads to running in non-stop
686 mode. In non-stop mode, only qfThreadInfo is supported.
687 (remote_close): Discard all pending stop_replies. Close the event
689 (set_stop_requested_callback): New.
690 (remote_start_remote): Implement non-stop mode startup. In
691 all-stop, don't clear the thread list here.
692 (remote_non_stop_feature): New.
693 (remote_protocol_features): Add a "QNonStop" feature.
694 (remote_open_1): Clear cached_wait_status and non_stop_aware.
695 Clear the thread list here.
696 (remote_detach_1): Discard pending stop replies of the process we
698 (extended_remote_attach_1): Implement non-stop mode.
699 (remote_vcont_probe): Recognize `vCont;t'.
700 (remote_vcont_resume): Implement non-stop mode.
701 (remote_resume): Don't set waiting_for_stop_reply in non-stop
703 (remote_stop_ns): New.
704 (remote_stop): Rename to ...
705 (remote_stop_as): ... this. If we have a cached wait status,
706 don't bother interrupting the remote.
707 (remote_stop): Reimplement as wrapper around remote_stop_as and
709 (interrupt_query): Don't query in async mode.
710 (struct cached_reg, cahed_reg_t): New.
711 (struct stop_reply): New.
712 (stop_reply_queue): New.
713 (stop_reply_xmalloc, stop_reply_xfree)
714 (discard_pending_stop_replies, do_stop_reply_xfree)
715 (queued_stop_reply, push_stop_reply, peek_stop_reply)
716 (remote_parse_stop_reply, remote_get_pending_stop_replies)
717 (process_stop_reply): New.
718 (remote_wait_ns): New.
719 (remote_wait_as): Use remote_parse_stop_reply. Invalidate the
720 notion of current general thread is a process exit was reported.
721 (remote_wait): Call remote_wait_ns in non-stop mode.
722 (handle_notification): New.
723 (putpkt_binary): Handle notifications. Don't care for
724 waiting_for_stop_reply in non-stop mode.
725 (getpkt_sane): Rename to ...
726 (getpkt_or_notif_sane_1): ... this. Add `expecting_notif'
727 argument. Handle it. Handle notifications.
728 (getpkt_sane): Reimplement as wrapper around getpkt_or_notif_sane_1.
729 (getpkt_or_notif_sane): New.
730 (select_new_thread_callback): Check for exited state instead of
731 comparing the ptid against minus_one_ptid.
732 (extended_remote_create_inferior_1): Query the remote about the
734 (remote_supports_non_stop): New.
735 (init_remote_ops): Register it.
736 (remote_async_inferior_event_handler): New.
737 (remote_async_get_pending_events_handler): New.
739 * infcmd.c (proceed_thread_callback): Comment.
740 (proceed_after_attach_callback, proceed_after_attach): New.
741 (attach_command_post_wait): In background attach, resume all
742 threads, but only if they are unsignalled, and not explicitly
743 stopped. In foreground attach, in non-stop mode, make sure to
744 stop all threads of the just attached to process.
745 (attach_command): In non-stop mode: If doing a background attach,
746 stop at least one thread. If a foreground attach, stop all
749 2008-10-24 Pedro Alves <pedro@codesourcery.com>
751 * event-loop.h: Mention async_event_handlers.
752 (async_event_handler): Forward declare.
753 (async_event_handler_func): New typedef.
754 (create_async_event_handler, delete_async_event_handler)
755 (mark_async_event_handler): Declare.
756 * event-loop.c (event_data): New.
757 (event_handler_func): Take an event_data instead of an integer.
758 (struct gdb_event): Replace the integer file descriptor by a
760 (async_event_handler): New.
761 (async_handler_ready): Delete.
762 (async_event_handler_list): New.
764 (create_file_event): Use it.
765 (process_event): Adjust.
766 (gdb_do_one_event): Poll from the event sources in round-robin
767 fashion across calls. Be sure to consult all sources before
769 (handle_file_event): Take an event_data instead of an integer.
771 (gdb_wait_for_event): Add `block' argument. Handle it.
772 (mark_async_signal_handler): Remove unneeded cast.
773 (invoke_async_signal_handler): Rename to ...
774 (invoke_async_signal_handlres): ... this. Return true if any was
776 (check_async_ready): Delete
777 (create_async_event_handler): New.
778 (mark_async_event_handler): New.
779 (struct async_event_handler_data): New.
780 (invoke_async_event_handler): New.
781 (check_async_event_handlers): New.
782 (delete_async_event_handler): New.
783 (handle_timer_event): Adjust.
785 2008-10-24 Doug Evans <dje@google.com>
787 * dwarf2read.c (typename_concat): Don't segv if prefix or suffix
788 is NULL. Simplify obs == NULL case.
790 2008-10-24 Hui Zhu <teawater@gmail.com>
791 Pedro Alves <pedro@codesourcery.com>
793 * infrun.c (can_use_displaced_stepping): Change type to
795 (can_use_displaced_stepping_auto): New string.
796 (can_use_displaced_stepping_on): New string.
797 (can_use_displaced_stepping_off): New string.
798 (can_use_displaced_stepping_enum): New array.
799 (show_can_use_displaced_stepping): In auto mode, also show
800 the current effect of the option.
801 (use_displaced_stepping): Return non-zero if displaced
802 stepping is auto, and can be used with GDBARCH, and in
803 non-stop mode. Return non-zero if displaced stepping is on,
804 and can be used with GDBARCH. Return zero otherwise.
805 (_initialize_infrun): Make the "set displaced-stepping"
806 command an enum command. Change its class to class_run.
807 Place it in the top level set list. Extend help to describe
810 2008-10-23 Pedro Alves <pedro@codesourcery.com>
812 * defs.h: Mention ptid_is_pid.
813 * inferior.h (ptid_is_pid): Declare.
814 * gdbthread.h (struct thread_info) <stop_requested>: New field.
815 (set_stop_requested): Declare.
816 * infcmd.c (interrupt_target_1): Call set_stop_requested.
817 * infrun.c (clear_proceed_status): Clear stop_requested.
818 (infrun_thread_stop_requested_callback,
819 infrun_thread_stop_requested): New.
820 (handle_inferior_event): If a TARGET_SIGNAL_TRAP is reported on a
821 thread that had an explicit stop request, pretend we got a
822 TARGET_SIGNAL_0. Always stop if the thread had an explicit stop
824 (print_stop_reason): In the SIGNAL_RECEIVED case, if we're not
825 outputting to MI, and we got a TARGET_SIGNAL_0, print "# Stopped",
826 instead of mentioning signal 0.
828 * thread.c (set_stop_requested): New.
830 * linux-nat.c (queued_waitpid): Rename to ...
831 (queued_waitpid_1): ... this. Add `peek' argument. Handle it.
832 (queued_waitpid): New, as wrapper to queued_waitpid_1.
833 (push_waitpid): Push the SIGTRAP to the local event queue, to the
835 (send_sigint_callback): Delete.
836 (linux_nat_stop_lwp): New.
837 (linux_nat_stop): Use it.
839 2008-10-23 Paul Pluzhnikov <ppluzhnikov@google.com>
841 * python/python-value (valpy_getitem): Fix heap corruption.
843 2008-10-23 Aleksandar Ristovski <aristovski@qnx.com>
845 * nto-procfs.c (do_attach): Form proper ptid including pid and tid.
846 (procfs_create_inferior): Fetch list of threads.
848 2008-10-23 Aleksandar Ristovski <aristovski@qnx.com>
850 * nto-procfs.c (procfs_files_info): Fix a typo.
851 (procfs_create_inferior): Make attach_flag per-inferior.
853 2008-10-23 Tom Tromey <tromey@redhat.com>
855 * python/python-value.c (value_to_value_object): Initialize
857 (valpy_new): Likewise.
859 2008-10-23 Jan Kratochvil <jan.kratochvil@redhat.com>
860 Joel Brobecker <brobecker@adacore.com>
862 * ada-tasks.c (task_states, long_task_states): Use constant N_()
863 initializer. Define the strings as const.
864 (short_task_info, info_task): Translate the strings above.
866 2008-10-22 Joel Brobecker <brobecker@adacore.com>
868 * NEWS: Add entry for new feature (Ada tasking support).
870 2008-10-22 Joel Brobecker <brobecker@adacore.com>
872 * configure.ac: On alpha-osf, error out if enable_tui is set to
873 "yes", and set enable_tui to "no" if previously set to "auto".
874 Check for waddstr only if TUI support was requested. Move the
875 part of the configure script that updates various Makefile
876 variables up, together with the check for waddstr.
877 * configure: Regenerate.
879 2008-10-22 Joel brobecker <brobecker@adacore.com>
881 * gdbtypes.c (copy_type): New function.
882 * gdbtypes.h (copy_type): Add declaration.
883 * ada-lang.c (ada_to_fixed_type_1): If there is a parallel XVZ
884 variable, then use it.
886 2008-10-22 Joel Brobecker <brobecker@adacore.com>
888 * target.h (struct target_ops): Add new field to_get_ada_task_ptid.
889 (target_get_ada_task_ptid): New macro.
890 * target.c (default_get_ada_task_ptid): New function.
891 (update_current_target): Inherit field default_get_ada_task_ptid.
892 (update_current_target): Make default_get_ada_task_ptid the default
893 value for field to_get_ada_task_ptid.
894 * ada-lang.h (struct task_control_block): Delete. Never used.
895 (struct task_ptid, task_ptid_t, struct task_entry, task_list):
897 (struct ada_task_info): New.
898 (ada_task_is_alive, ada_find_printable_frame)
899 (ada_task_list_iterator_ftype, iterate_over_live_ada_tasks): Add
901 (ada_build_task_list): Update prototype.
902 (init_task_list, ada_is_exception_breakpoint): Remove prototypes.
903 * ada-lang.c (ada_find_printable_frame): Make non-static.
904 * ada-tasks.c: New file.
905 * Makefile.in (SFILES): Add ada-tasks.c.
906 (COMMON_OBS): Add ada-tasks.o.
907 * linux-thread-db.c (thread_db_find_thread_from_tid)
908 (thread_db_get_ada_task_ptid): New functions.
909 (init_thread_db_ops): Set thread_db_ops.to_get_ada_task_ptid.
911 2008-10-22 Tom Tromey <tromey@redhat.com>
914 * c-exp.y (string_exp): New production.
917 2008-10-21 Jan Kratochvil <jan.kratochvil@redhat.com>
919 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): Update TYPE_FIELD_STATIC
922 2008-10-20 Joel Brobecker <brobecker@adacore.com>
924 * NEWS: Add entry mentioning thread-support on Tru64
926 2008-10-19 Joel Brobecker <brobecker@adacore.com>
928 * dec-thread.c: New file.
929 * config/alpha/alpha-osf3.mh (NATDEPFILES): Add dec-thread.o.
932 2008-10-19 Hui Zhu <teawater@gmail.com>
934 * infrun.c (handle_inferior_event): Set "stop_pc" when
935 TARGET_WAITKIND_NO_HISTORY.
937 2008-10-19 Pedro Alves <pedro@codesourcery.com>
939 * python/python-value.c (value_object_methods)
940 (value_object_as_number, value_object_as_mapping): Move to bottom
942 (valpy_dealloc, valpy_new, valpy_length, valpy_getitem)
943 (valpy_setitem, valpy_str, valpy_add, valpy_subtract)
944 (valpy_multiply, valpy_divide, valpy_remainder, valpy_power)
945 (valpy_negative, valpy_positive, valpy_absolute, valpy_nonzero)
946 (valpy_richcompare, valpy_dereference): Don't forward-declare.
947 (valpy_length) [HAVE_LIBPYTHON2_4]: Change return type to `int'.
949 2008-10-18 Pedro Alves <pedro@codesourcery.com>
951 * infrun.c (adjust_pc_after_break): Do nothing if executing in
954 2008-10-17 Pedro Alves <pedro@codesourcery.com>
956 * infcmd.c (GO_USAGE): Delete.
957 (go_command): Adjust.
959 2008-10-17 Michael Snyder <msnyder@vmware.com>
960 Target interface for reverse debugging.
961 * target.h (enum target_waitkind):
962 Add new wait event, TARGET_WAITKIND_NO_HISTORY.
963 (struct target_ops): New method to_can_execute_reverse.
964 (target_can_execute_reverse): New macro.
965 * target.c (update_current_target): Inherit to_can_execute_reverse.
967 Remote interface for reverse debugging.
968 * remote.c (remote_can_execute_reverse): New target method.
969 (remote_resume): Check for reverse exec direction, and send
970 appropriate command to target.
971 (remote_wait_as): Check target response for NO_HISTORY status.
972 Also check for empty reply (target doesn't understand "bs" or "bc).
973 (remote_vcont_resume): Jump out if attempting reverse execution.
975 Event handling interface for reverse debugging.
976 * infrun.c (execution_direction): New state variable.
977 (enum inferior_stop_reason): Add NO_HISTORY reason.
978 (handle_inferior_event): Handle TARGET_WAITKIND_NO_HISTORY.
979 Handle stepping over a function call in reverse.
980 Handle stepping thru a line range in reverse.
981 Handle setting a step-resume breakpoint in reverse.
982 Handle stepping into a function in reverse.
983 Handle stepping between line ranges in reverse.
984 (print_stop_reason): Print reason for NO_HISTORY.
985 (step_into_function): Rename to handle_step_into_function.
986 (handle_step_into_function_backward): New function.
987 (set_exec_direction_func, show_exec_direction_func): New funcs.
988 (proceed): No need to singlestep over a breakpoint
989 when resuming in reverse.
991 * inferior.h (enum exec_direction_kind): New enum.
992 (execution_direction): Export new execution state variable.
994 * breakpoint.c (make_breakpoint_silent): New function.
995 * breakpoint.h (make_breakpoint_silent): Export.
996 * infcmd.c (finish_command): Check for reverse exec direction.
997 (finish_backward): New function, handle finish cmd in reverse.
999 User interface for reverse execution.
1000 * Makefile.in (reverse.c): New file.
1001 * reverse.c: New file. User interface for reverse execution.
1003 2008-10-17 Pedro Alves <pedro@codesourcery.com>
1005 * remote.c (record_currthread): Add inferior before child threads.
1006 (remote_threads_info): Check for exited threads. Mention
1009 2008-10-16 Joel Brobecker <brobecker@adacore.com>
1011 * breakpoint.h (enum bptype): New enum bp_catchpoint.
1012 Delete bp_catch_fork and bp_catch_vfork.
1013 (struct breakpoint_ops): Add new methods "insert", "remove"
1014 and "breakpoint_hit".
1015 * breakpoint.c (create_fork_vfork_event_catchpoint)
1016 (create_fork_event_catchpoint, create_vfork_event_catchpoint): Remove.
1017 (insert_catchpoint): Remove handling of bp_catch_fork and
1018 bp_catch_vfork catchpoints, and handle them as bp_catchpoint
1019 catchpoints instead.
1020 (insert_bp_location, update_breakpoints_after_exec)
1021 (remove_breakpoint, bpstat_check_location, bpstat_what)
1022 (allocate_bp_location): Likewise.
1023 (print_it_typical, print_one_breakpoint_location, mention): Remove
1024 handling of bp_catch_fork and bp_catch_vfork breakpoints.
1025 (ep_is_catchpoint, user_settable_breakpoint)
1026 (breakpoint_address_is_meaningful, adjust_breakpoint_address)
1027 (breakpoint_re_set_one, disable_command, enable_command):
1028 Remove use of bp_catch_fork and bp_catch_vfork. Add handling of
1029 bp_catchpoint breakpoints.
1030 (insert_catch_fork, remove_catch_fork, breakpoint_hit_catch_fork)
1031 (print_it_catch_fork, print_one_catch_fork, print_mention_catch_fork):
1033 (catch_fork_breakpoint_ops): New static constant.
1034 (insert_catch_vfork, remove_catch_vfork, breakpoint_hit_catch_vfork)
1035 (print_it_catch_vfork, print_one_catch_vfork)
1036 (print_mention_catch_vfork): New functions.
1037 (catch_vfork_breakpoint_ops): New static constant.
1038 (create_catchpoint, create_fork_vfork_event_catchpoint): New functions.
1039 (catch_fork_command_1): Use create_fork_vfork_event_catchpoint
1040 to create the fork and vfork catchpoints.
1041 (gnu_v3_exception_catchpoint_ops): Set new breakpoint_ops fields.
1042 * ada-lang.c (catch_exception_breakpoint_ops): Set new breakpoint_ops
1044 (catch_exception_unhandled_breakpoint_ops): Likewise.
1045 (catch_assert_breakpoint_ops): Likewise.
1047 2008-10-16 Pedro Alves <pedro@codesourcery.com>
1049 * remote.c (set_general_process): New.
1050 (remote_check_symbols): Use it.
1052 2008-10-16 Pedro Alves <pedro@codesourcery.com>
1054 * remote.c (push_remote_target): Delete.
1055 * target.h (push_remote_target): Delete declaration.
1057 2008-10-15 Pedro Alves <pedro@codesourcery.com>
1059 * remote.c (remote_close): Unregister remote_desc from the event
1060 loop. Always restore the SIGINT handler. Discard all inferiors
1062 (remote_detach_1, remote_disconnect): Don't unregister the file
1063 descriptor from the event loop here.
1064 (interrupt_query, readchar, getpkt_sane): Pop the target instead
1065 of morning the current inferior.
1066 (remote_kill): Don't unregister the file descriptor from the event
1068 (remote_mourn_1): Don't discard inferiors here.
1070 2008-10-15 Pedro Alves <pedro@codesourcery.com>
1072 * breakpoint.c (breakpoint_init_inferior): Clean up the moribund
1074 (moribund_breakpoint_here_p): Record the moribund
1075 location in the moribund_locations vector.
1076 * breakpoint.h (moribund_breakpoint_here_p): Declare.
1077 (displaced_step_fixup): Check if the breakpoint the thread was
1078 trying to step over has been removed since having been placed in
1079 the displaced stepping queue.
1080 (adjust_pc_after_break): In non-stop mode, check for a moribund
1081 breakpoint at the stop pc.
1082 (handle_inferior_event): Don't retire moribund breakpoints on
1083 TARGET_WAITKIND_IGNORE.
1085 2008-10-15 Pedro Alves <pedro@codesourcery.com>
1087 * infrun.c (displaced_step_prepare): Switch thread temporarily
1089 (displaced_step_fixup): Make sure target_resume sees ptid as
1090 inferior_ptid. Add debug output.
1092 2008-10-14 Pedro Alves <pedro@codesourcery.com>
1096 * breakpoint.c (show_breakpoint_hit_counts): Delete.
1097 (print_one_breakpoint_location): Adjust.
1098 (breakpoint_clear_ignore_counts): Delete.
1099 * breakpoint.h (breakpoint_clear_ignore_counts): Remove
1101 * target.c (generic_mourn_inferior): Don't clear ignore
1102 counts (never reached).
1104 2008-10-10 Doug Evans <dje@google.com>
1106 * dwarf2read.c (comp_unit_head): Use unsigned int consistently
1107 for dwarf section offsets and sizes.
1109 (dwarf2_per_cu_data): Ditto.
1110 (create_all_comp_units): Change offset to unsigned int.
1111 (load_full_comp_unit,find_partial_die_in_comp_unit,find_partial_die,
1112 dwarf2_find_containing_comp_unit,dwarf2_find_comp_unit): Ditto.
1114 * dwarf2read.c (read_initial_length): Delete cu_header arg.
1115 All callers updated.
1116 (read_checked_initial_length_and_offset): New function.
1117 (read_offset_1): New function.
1118 (read_offset): Call it.
1119 (dwarf_decode_line_header): Call read_checked_initial_length_and_offset
1120 instead of read_initial_length. Call read_offset_1 instead of
1123 * dwarf2read.c (dwarf2_get_ref_die_offset): Remove unused arg `cu'.
1124 All callers updated.
1126 * dwarf2read.c (dwarf_attr_name): Unconditionally support all
1127 DW_AT_MIPS_* except DW_AT_MIPS_fde which collides with
1128 DW_AT_HP_block_index.
1130 2008-10-10 Pedro Alves <pedro@codesourcery.com>
1132 * remote.c (remote_start_remote): Always tell the stub if we're in
1135 2008-10-09 Pedro Alves <pedro@codesourcery.com>
1137 * remote.c (remote_wait): Rename to...
1138 (remote_wait_as): ... this. Don't loop here. If the remote
1139 didn't stop, return TARGET_WAITKIND_IGNORE.
1140 (remote_wait): New, reimplemented on top of remote_wait_as.
1142 2008-10-09 Thomas Schwinge <tschwinge@gnu.org>
1144 * Makefile.in (gnu-nat.o): Revert the 2008-09-10 change, as the problem
1147 * reply_mig_hack.awk: Use the `BAD_TYPECHECK' macro.
1149 * MAINTAINERS (Write After Approval): Add myself.
1151 2008-10-09 Pedro Alves <pedro@codesourcery.com>
1153 Make it compile without warnings.
1155 * procfs.c (create_procinfo): Initialize `parent'.
1156 (dead_procinfo): Pass a constant string as format to error.
1157 (procfs_address_to_host_pointer): Add cast to gdb_type *.
1158 (procfs_find_LDT_entry): Adjust format string to long int
1160 (procfs_xfer_partial): Adjust prototype. Add gdb_byte* cast.
1161 (procfs_xfer_memory): Adjust prototype.
1162 (info_mappings_callback, info_proc_mappings): Adjust to not pass a
1163 variable as printf_filtered format.
1164 (procfs_make_note_section): Change type of auxv local to gdb_byte.
1165 * Makefile.in: Remove special rule.
1167 2008-10-09 Pedro Alves <pedro@codesourcery.com>
1168 Daniel Jacobowitz <dan@codesourcery.com>
1170 * remote.c (remote_open_1): Move acknowledging any pending ack,
1171 querying supported features, activating noack mode, finding the
1172 target description, enabling extended remote, and checking remote
1173 symbols from here ...
1174 (remote_start_remote): ... to here.
1175 (remote_open_1): Don't pop the target if it is already gone.
1176 * target.c (unpush_target): Check for the dummy target.
1178 2008-10-09 Pedro Alves <pedro@codesourcery.com>
1180 * ser-mingw.c: Include "command.h".
1181 (pipe_windows_open): Declare locals at the beginning of the scope.
1183 2008-10-08 Pedro Alves <pedro@codesourcery.com>
1185 * remote.c (struct remote_state) <waiting_for_stop_reply>: New
1187 (remote_open_1): Clear waiting_for_stop_reply.
1188 (remote_resume): Set waiting_for_stop_reply.
1189 (remote_wait): Clear or set waiting_for_stop_reply accordingly.
1190 (putpkt_binary): If we're in async mode and waiting for a stop
1191 reply, bail out with an error.
1192 (extended_remote_mourn_1): Clear waiting_for_stop_reply.
1194 2008-10-08 Pedro Alves <pedro@codesourcery.com>
1196 * remote.c (remote_get_thread_info): If the remote doesn't support
1197 the query, bail out.
1199 2008-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1201 Convert static_kind into loc_kind enum.
1202 * gdbtypes.h (enum field_loc_kind): New.
1203 (union field_location): New field dwarf_block.
1204 (struct field): Rename static_kind as loc_kind.
1205 (FIELD_STATIC_KIND): Rename to ...
1206 (FIELD_LOC_KIND): ... here.
1207 (TYPE_FIELD_STATIC_KIND): Rename to ...
1208 (TYPE_FIELD_LOC_KIND): ... here and use there now new FIELD_LOC_KIND.
1209 (TYPE_FIELD_STATIC_HAS_ADDR): Remove.
1210 (TYPE_FIELD_STATIC): Remove.
1211 (TYPE_FIELD_BITPOS): Reformat.
1212 (SET_FIELD_BITPOS): New.
1213 (FIELD_PHYSADDR): Rename to ...
1214 (FIELD_STATIC_PHYSADDR): ... here.
1215 (TYPE_FIELD_STATIC_PHYSADDR): Follow the FIELD_PHYSADDR rename.
1216 (SET_FIELD_PHYSADDR): Use new FIELD_LOC_KIND.
1217 (FIELD_PHYSNAME): Rename to ...
1218 (FIELD_STATIC_PHYSNAME): ... here.
1219 (TYPE_FIELD_STATIC_PHYSNAME): Follow the FIELD_PHYSNAME rename.
1220 (SET_FIELD_PHYSNAME): Use new FIELD_LOC_KIND.
1221 (FIELD_DWARF_BLOCK, TYPE_FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK): New.
1222 (field_is_static): New declaration.
1223 * gdbtypes.c (field_is_static): New function.
1224 (copy_type_recursive): Update throughout.
1225 * amd64-tdep.c, c-typeprint.c, coffread.c, cp-valprint.c, dwarf2read.c,
1226 eval.c, jv-typeprint.c, jv-valprint.c, mdebugread.c, p-typeprint.c,
1227 p-valprint.c, valops.c, value.c, varobj.c: Update throughout.
1229 2008-10-07 Thomas Schwinge <tschwinge@gnu.org>
1230 Pedro Alves <pedro@codesourcery.com>
1232 * gnu-nat.h: Rename `current_inferior' to `gnu_current_inf' to
1233 avoid a name collision.
1234 * gnu-nat.c: Likewise.
1235 * i386gnu-nat.c: Likewise.
1237 2008-10-07 Joel Brobecker <brobecker@adacore.com>
1239 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Add handling
1240 of arguments that are references.
1242 2008-10-06 Doug Evans <dje@google.com>
1244 * dwarf2read.c (dwarf2_die_debug): New static global.
1245 (dump_die_shallow): Renamed from dump_die, New args f, indent.
1246 Print to specified file, indented by the specified amount.
1247 (dump_die_for_error): New fn. Point all existing callers of
1249 (dump_die_die_1,dump_die): New fns, replaces ...
1250 (dump_die_list): ... deleted.
1251 (read_die_and_children_1): Old contents of read_die_and_children
1253 (read_die_and_children): Rewrite.
1254 (read_die_and_siblings): Call read_die_and_children_1 instead of
1255 read_die_and_children.
1256 (_initialize_dwarf2_read): New option "debug dwarf2-die".
1257 * gdbinit.in (pdie): New macro.
1259 * dwarf2read.c (offset_in_cu_p): New function.
1260 (find_partial_die,follow_die_ref): Use it.
1262 * symmisc.c (maintenance_info_symtabs): Watch for ^c.
1263 (maintenance_info_psymtabs): Ditto.
1265 2008-10-05 Michael Snyder <msnyder@vmware.com>
1267 * infrun.c (handle_inferior_event): Fix typo in comment.
1269 2008-10-04 Vladimir Prus <vladimir@codesourcery.com>
1271 * mi/mi-interp.c (mi_on_resume): Flush raw_stdout.
1273 2008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com>
1276 * gdbtypes.c (get_vptr_fieldno): baseclass and basetype may have
1277 different lifetimes.
1279 2008-10-03 Joel Brobecker <brobecker@adacore.com>
1281 * solib-osf.c: Include "solib.h".
1283 2008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com>
1285 * utils.c, defs.h (gdb_buildargv): New fn. Wrap buildargv
1286 and check for out-of-memory condition.
1287 * exec.c (exec_file_command): Call it.
1288 * infrun.c (handle_command, xdb_handle_command): Likewise.
1289 * interps.c (interpreter_exec_cmd): Likewise.
1290 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
1291 * procfs.c (info_proc_cmd): Likewise.
1292 * remote-mips.c (common_open): Likewise.
1293 * remote-sim.c (gdbsim_kill, gdbsim_create_inferior)
1294 (gdbsim_open): Likewise.
1295 * remote.c (extended_remote_run, remote_put_command)
1296 (remote_get_command, remote_delete_command): Likewise.
1297 * ser-mingw.c (pipe_windows_open): Likesise.
1298 * source.c (add_path, show_substitute_path_command)
1299 (unset_substitute_path_command, set_substitute_path_command):
1301 * stack.c (backtrace_command): Likewise.
1302 * symfile.c (symbol_file_command, generic_load)
1303 (add_symbol_file_command): Likesise.
1304 * symmisc.c (maintenance_print_symbols, maintenance_print_psymbols)
1305 (maintenance_print_msymbols): Likewise.
1307 2008-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1309 Replace TYPE_ARRAY_{UPPER,LOWER}_BOUND_TYPE by a bit if {un,}defined.
1310 * c-typeprint.c (c_type_print_varspec_suffix), m2-typeprint.c
1311 (m2_array), p-typeprint.c (pascal_type_print_varspec_prefix),
1312 valops.c (value_cast), varobj.c (c_number_of_children): Replace
1313 TYPE_ARRAY_UPPER_BOUND_TYPE compared to BOUND_CANNOT_BE_DETERMINED by
1314 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1315 * parse.c (follow_types): Use TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1316 * f-valprint.c (f77_get_dynamic_upperbound): Replace with ...
1317 (f77_get_upperbound): ... this function handling now only
1318 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1319 (f77_get_dynamic_lowerbound): Replace with ...
1320 (f77_get_lowerbound): ... this function handling now only
1321 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED.
1322 (f77_get_dynamic_length_of_aggregate, f77_create_arrayprint_offset_tbl):
1323 Update their callers.
1324 * eval.c (evaluate_subexp_standard): Update their callers.
1325 * f-lang.h (f77_get_dynamic_upperbound, f77_get_upperbound)
1326 (f77_get_dynamic_lowerbound, f77_get_lowerbound): Update their
1328 (BOUND_FETCH_OK, BOUND_FETCH_ERROR): Remove.
1329 * f-typeprint.c (f_type_print_varspec_suffix, f_type_print_base): Remove
1330 the lower_bound_was_default variable. Update the
1331 f77_get_dynamic_upperbound, f77_get_upperbound and
1332 TYPE_ARRAY_UPPER_BOUND_TYPE calls.
1333 * gdbtypes.c (print_bound_type): Remove the function.
1334 (recursive_dump_type): Remove its calls printing UPPER_BOUND_TYPE and
1336 * gdbtypes.h (enum array_bound_type): Remove.
1337 (struct main_type): Remove the fields upper_bound_type and
1338 lower_bound_type. Comment the new overload of the field artificial.
1339 (TYPE_ARRAY_UPPER_BOUND_TYPE): Replace by ...
1340 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): ... this macro.
1341 (TYPE_ARRAY_LOWER_BOUND_TYPE): Replace by ...
1342 (TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): ... this macro.
1344 2008-10-02 Tom Tromey <tromey@redhat.com>
1346 * Makefile.in (HFILES_NO_SRCDIR): Remove gdb-events.h, gstdint.h.
1348 2008-10-02 Daniel Jacobowitz <dan@codesourcery.com>
1350 * mips-linux-tdep.c (mips_linux_in_dynsym_resolve_code): Update
1352 (mips_linux_skip_resolver): Also use glibc_skip_solib_resolver.
1353 (mips_linux_init_abi): Do not override skip_trampoline_code.
1354 * configure.tgt (mips*-*-linux*): Add glibc-tdep.o.
1355 * mips-tdep.c (mips32_scan_prologue): Stop scanning at branches.
1356 (mips_stub_frame_sniffer): Use the stub frame sniffer for PIC stubs.
1357 (mips_skip_mips16_trampoline_code): Rename from
1358 mips_skip_trampoline_code.
1359 (mips_skip_pic_trampoline_code, mips_skip_trampoline_code): New.
1360 * infrun.c (handle_inferior_event): Do not pass zero to
1361 in_solib_dynsym_resolve_code.
1363 2008-10-02 Pierre Muller <muller@ics.u-strasbg.fr>
1364 Pedro Alves <pedro@codesourcery.com>
1366 * win32-nat.c (do_initial_win32_stuff): Set inferior_ptid.
1369 2008-10-01 Tom Tromey <tromey@redhat.com>
1371 * symtab.c (search_symbols): Update.
1372 * symtab.h (domain_enum_tag) <METHODS_DOMAIN>: Remove.
1374 2008-10-01 Tom Tromey <tromey@redhat.com>
1376 * symfile.c (syms_from_objfile): Update.
1377 (reread_symbols): Update.
1378 * objfiles.h (OBJF_SYMS): Remove.
1379 (OBJF_REORDERED): Renumber.
1380 (OBJF_SHARED): Likewise.
1381 (OBJF_READNOW): Likewise.
1382 (OBJF_USERLOADED): Likewise.
1384 2008-10-01 Tom Tromey <tromey@redhat.com>
1386 * symtab.c (find_pc_sect_psymtab): Use MSYMBOL_TYPE.
1387 (find_pc_sect_symtab): Likewise.
1388 * symmisc.c (dump_msymbols): Use MSYMBOL_TYPE.
1389 * solib-som.c (som_solib_desire_dynamic_linker_symbols): Use
1390 MSYMBOL_TYPE, not SYMBOL_TYPE.
1391 * parse.c (write_exp_msymbol): Use MSYMBOL_TYPE.
1392 * objc-lang.c (find_methods): Use MSYMBOL_TYPE.
1393 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Use
1395 * m2-exp.y (yylex): Use SYMBOL_CLASS.
1397 2008-10-01 Tom Tromey <tromey@redhat.com>
1399 * xcoffread.c (RECORD_MINIMAL_SYMBOL): Update.
1400 (scan_xcoff_symtab): Update.
1401 * mdebugread.c (record_minimal_symbol): Update.
1402 (parse_partial_symbols): Update.
1403 * elfread.c (record_minimal_symbol): Update.
1404 * dbxread.c (record_minimal_symbol): Update.
1405 * coffread.c (record_minimal_symbol): Update.
1406 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Redefine.
1407 (sh64_elf_make_msymbol_special): Update.
1408 * mips-tdep.c (mips_elf_make_msymbol_special): Use
1409 MSYMBOL_TARGET_FLAG_1.
1410 (mips_elf_make_msymbol_special): Likewise.
1411 (msymbol_is_special): Likewise.
1412 * minsyms.c (prim_record_minimal_symbol_and_info): Update.
1413 (install_minimal_symbols): Likewise.
1414 (prim_record_minimal_symbol): Update.
1415 (prim_record_minimal_symbol_and_info): Remove 'info' argument.
1416 * m68hc11-tdep.c (MSYMBOL_SET_RTC): Redefine.
1417 (MSYMBOL_SET_RTI): Redefine.
1418 (MSYMBOL_IS_RTC): Redefine.
1419 (MSYMBOL_IS_RTI): Redefine.
1420 * arm-tdep.c (MSYMBOL_SET_SPECIAL): Redefine.
1421 (MSYMBOL_IS_SPECIAL): Redefine.
1422 * symtab.h (struct minimal_symbol) <info>: Remove.
1423 <target_flag_1, target_flag_2>: New fields.
1424 (MSYMBOL_INFO): Remove.
1425 (MSYMBOL_TARGET_FLAG_1): New macro.
1426 (MSYMBOL_TARGET_FLAG_2): Likewise.
1427 (prim_record_minimal_symbol_and_info): Update.
1429 2008-09-30 Joel Brobecker <brobecker@adacore.com>
1431 * ada-lang.c (is_digits_suffix): Delete unused function.
1433 2008-09-30 Paul Hilfinger <hilfinger@adacore.com>
1435 * ada-lang.c (ada_modulus): Correct to avoid sign problem with
1438 2008-09-30 Paul Hilfinger <hilfinger@adacore.com>
1440 * ada-lang.c (ada_lookup_struct_elt_type): Handle case of a "naked"
1442 (empty_record): Use INIT_CPLUS_SPECIFIC, since this field is not
1443 supposed to be null. Fixes debugger segfaults.
1444 (is_unchecked_variant): New function.
1445 (to_fixed_variant_branch_type): Modify to leave unchecked unions
1447 (ada_template_to_fixed_record_type_1): Fix comment.
1449 2008-09-30 Joel Brobecker <brobecker@adacore.com>
1451 * ada-lang.c (standard_exc): New static constant.
1452 (ada_exception_catchpoint_cond_string): Add special handling
1453 for the predefined exceptions.
1455 2008-09-30 Joel Brobecker <brobecker@adacore.com>
1457 * ada-lang.c (ADA_RETAIN_DOTS): Delete this dead macro. Update
1458 the code accordingly.
1460 2008-09-30 Joel Brobecker <brobecker@adacore.com>
1462 * ada-lang.c (ada_evaluate_subexp) [UNOP_IND]: Remove strange
1463 treatment of expect_type. Return the correct type when dereferencing
1466 2008-09-30 Tom Tromey <tromey@redhat.com>
1469 * symtab.c (struct add_macro_name_data): New struct.
1470 (add_macro_name): New function.
1471 (default_make_symbol_completion_list): Complete macro names.
1472 * scm-lang.c (scm_language_defn): Update.
1473 * p-lang.c (pascal_language_defn): Update.
1474 * objc-lang.c (objc_language_defn): Update.
1475 * macrotab.h (macro_callback_fn): Add user_data argument.
1476 (macro_for_each): Likewise.
1477 (macro_for_each_in_scope): Declare.
1478 * macrotab.c: (struct macro_for_each_data): New struct.
1479 (foreach_macro): Use it.
1480 (macro_for_each): Likewise.
1481 (foreach_macro_in_scope): New function.
1482 (macro_for_each_in_scope): Likewise.
1483 * macrocmd.c (print_one_macro): Add argument.
1484 (macro_list_command): Pass NULL to macro_for_each.
1485 * m2-lang.c (m2_language_defn): Update.
1486 * language.h (struct language_defn) <la_macro_expansion>: New
1488 (macro_expansion): New enum.
1489 * language.c (unknown_language_defn): Update. Fix order of
1491 (auto_language_defn): Likewise.
1492 (local_language_defn): Update.
1493 * jv-lang.c (java_language_defn): Update.
1494 * f-lang.c (f_language_defn): Update.
1495 * c-lang.c (c_language_defn): Update.
1496 (cplus_language_defn): Likewise.
1497 (asm_language_defn): Likewise.
1498 (minimal_language_defn): Likewise.
1499 * ada-lang.c (ada_language_defn): Update.
1501 2008-09-30 Joel Brobecker <brobecker@adacore.com>
1503 * dwarf2read.c (dwarf2_get_subprogram_pc_bounds): New function.
1504 (get_scope_pc_bounds): Use it.
1506 2008-09-27 Tom Tromey <tromey@redhat.com>
1509 * macrocmd.c (extract_identifier): Add is_parameter argument.
1510 (macro_define_command): Update.
1511 (macro_undef_command): Likewise.
1512 * macroexp.c (stringify): New function.
1513 (find_parameter): Likewise.
1514 (gather_arguments): Add nargs argument. Handle varargs.
1515 (substitute_args): Add is_varargs and va_arg_name arguments.
1516 Handle varargs, splicing, stringification. Use find_parameter.
1517 (expand): Handle varargs.
1519 2008-09-27 Tom Tromey <tromey@redhat.com>
1521 * scm-lang.c (scm_language_defn): Update.
1522 * p-typeprint.c (pascal_print_typedef): New function.
1523 * p-lang.h: (pascal_print_typedef): Declare.
1524 * p-lang.c (pascal_language_defn): Update.
1525 * objc-lang.c (objc_language_defn): Update.
1526 * m2-typeprint.c (m2_print_typedef): New function.
1527 * m2-lang.h (m2_print_typedef): Declare.
1528 * m2-lang.c (m2_language_defn): Update.
1529 * language.h (_LANG_c, _LANG_m2, _LANG_fortran, _LANG_pascal):
1531 (struct language_defn) <la_print_typedef>: New field.
1532 (default_print_typedef): Declare.
1533 (LA_PRINT_TYPEDEF): New define.
1534 * language.c (unknown_language_defn): Update.
1535 (auto_language_defn): Update.
1536 (local_language_defn): Update.
1537 * jv-lang.c (java_language_defn): Update.
1538 * f-lang.c (f_language_defn): Update.
1539 * c-typeprint.c (c_print_typedef): New function.
1540 * c-lang.h (c_print_typedef): Declare.
1541 * c-lang.c (c_language_defn): Update.
1542 (cplus_language_defn): Update.
1543 (asm_language_defn): Update.
1544 (minimal_language_defn): Update.
1545 * ada-lang.c (ada_language_defn): Update.
1546 * typeprint.c (default_print_typedef): New function.
1548 2008-09-27 Tom Tromey <tromey@redhat.com>
1550 * jv-exp.y (insert_exp): Define using ISO syntax.
1551 (copy_exp): Likewise.
1552 (push_expression_name): Likewise.
1553 (push_fieldnames): Likewise.
1554 (java_type_from_name): Likewise.
1555 (yyerror): Likewise.
1557 (parse_number): Likewise.
1559 2008-09-26 Joel Brobecker <brobecker@adacore.com>
1561 * MAINTAINERS (GLOBAL MAINTAINERS): Add Pedro Alves.
1563 2008-09-25 Stephan Springl <springl-gdb@bfw-online.de> (tiny change)
1565 * stack.c (print_frame_args): Fix typos in comments.
1567 2008-09-25 Sérgio Durigan Júnior <sergiodj@linux.vnet.ibm.com>
1569 * linux-nat.c (get_pending_status): Fix argument to WIFSTOPPED.
1571 2008-09-24 Vladimir Prus <vladimir@codesourcery.com>
1573 * remote-sim.c (gdbsim_create_inferior): Fix missing parenthesis.
1575 2008-09-24 Andreas Schwab <schwab@suse.de>
1577 * frame.c (get_frame_register_bytes): Take pseudo registers into
1578 account. Avoid excessive function calls.
1580 2008-09-23 Doug Evans <dje@google.com>
1582 * dcache.c (state_chars): New static global.
1583 (ENTRY_INVALID,ENTRY_VALID): Renamed from ENTRY_BAD,ENTRY_OK.
1585 (dcache_info): Print cache state as mnemonically useful letters instead
1588 * dwarf2read.c (comp_unit_head): Reorganize for better packing.
1590 2008-09-22 Tom Tromey <tromey@redhat.com>
1592 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't use
1595 2008-09-22 Pedro Alves <pedro@codesourcery.com>
1597 * infrun.c (follow_exec): Don't do a generic mourn. Instead
1598 inline the required bits.
1599 * breakpoint.h (enum inf_context): Add inf_execd.
1601 2008-09-22 Pedro Alves <pedro@codesourcery.com>
1603 * infrun.c (handle_inferior_event): In the follow exec case,
1604 context-switch before doing anything else.
1606 2008-09-22 Pedro Alves <pedro@codesourcery.com>
1608 * top.c (any_thread_of, kill_or_detach): New functions.
1609 (quit_target): Iterate over all inferiors, killing or detaching
1612 2008-09-22 Pedro Alves <pedro@codesourcery.com>
1614 Remove the attach_flag global, and make it per-inferior.
1616 * inferior.h (attach_flag): Delete.
1617 (inferior_process): Declare.
1618 * solib.c (update_solib_list): Adjust.
1619 * gnu-nat.c (gnu_create_inferior, gnu_attach): Adjust.
1620 * inf-ptrace.c (inf_ptrace_detach): Adjust.
1621 (inf_ptrace_files_info): Get it from the current inferior.
1622 * inf-ttrace.c (inf_ttrace_attach): Adjust.
1623 (inf_ttrace_files_info): Get it from the current
1625 * inflow.c (terminal_inferior, terminal_ours_1, set_sigint_trap)
1626 (clear_sigint_trap): Get it from the current process.
1627 * remote.c (extended_remote_attach_1)
1628 (extended_remote_create_inferior_1): Adjust.
1629 * top.c (quit_confirm, quit_target): Get it from the current inferior.
1630 * procfs.c (do_detach): Adjust.
1631 (procfs_wait): Get it from the event inferior.
1632 (procfs_files_info): Get it from the current inferior.
1633 * nto-procfs.c (procfs_files_info): Likewise.
1634 (procfs_attach): Adjust. Set the attach_flag here.
1635 (do_attach): Don't set it here.
1636 (procfs_detach): Don't clear it.
1637 (procfs_mourn_inferior): Don't clear it.
1638 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1639 * target.c (attach_flag): Delete.
1640 (generic_mourn_inferior): Don't clear it.
1641 * win32-nat.c (get_win32_debug_event): Get it from the event
1643 (do_initial_win32_stuff): Add attaching argument. Set attach_flag
1644 in the inferior accordingly.
1645 (win32_attach): Don't set the attach_flag here. Pass 1 to
1646 do_intial_win32_stuff.
1647 (win32_files_info): Get it from the current inferior.
1648 (win32_create_inferior): Dont clear attach_flag here. Pass 0 to
1649 do_intial_win32_stuff.
1651 2008-09-22 Pedro Alves <pedro@codesourcery.com>
1653 Make the stop_soon global be per-inferior instead.
1655 * infcmd.c (attach_command_post_wait): Adjust.
1656 (attach_command): Likewise.
1658 * inferior.h (stop_soon): Delete.
1659 (struct inferior): Add stop_soon member.
1661 * infrun.c (stop_soon): Delete.
1662 (clear_proceed_status, start_remote)
1663 (fetch_inferior_event, handle_inferior_event): Adjust.
1664 (signal_stop_state): Don't check stop_soon here. Check in callers
1666 (save_inferior_status, restore_inferior_status): Adjust.
1668 * linux-nat.c (linux_nat_resume, linux_nat_wait): Always pass
1669 signals to common code if starting up the inferior.
1671 * inferior.h (struct inferior_info): Added stop_soon member.
1672 * inferior.c (add_inferior) Clear stop_soon.
1674 * mips-tdep.c (heuristic_proc_start): Adjust.
1675 * nto-procfs.c (procfs_create_inferior): Adjust.
1676 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
1677 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1678 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
1679 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
1681 * win32-nat.c (do_initial_win32_stuff): Adjust.
1683 * alpha-tdep.c (alpha_heuristic_proc_start): Adjust.
1685 2008-09-22 Pedro Alves <pedro@codesourcery.com>
1687 Implement remote multi-process extensions.
1689 * remote.c (struct remote_state): Add extended and
1690 multi_process_aware fields.
1691 (remote_multi_process_p): New.
1692 (PACKET_vKill): New.
1693 (record_currthread): Use thread_change_ptid. Notice new
1695 (set_thread, remote_thread_alive): Use write_ptid.
1696 (write_ptid, read_ptid): New.
1697 (remote_current_thread, remote_threads_extra_info): Use them.
1698 (remote_threads_info): Likewise. Detect new inferiors.
1699 (remote_start_remote): Add inferior to inferior list.
1700 (remote_multi_process_feature): New.
1701 (remote_protocol_features): Add "multiprocess" feature.
1702 (remote_query_supported): Pass "multiprocess+" as supported
1704 (remote_open_1): Clear multi_process_aware. Set extended
1706 (remote_detach_1): Detach current process. Use extended packet
1707 format for extended-remote multi-process. Detach process from the
1708 inferior list. Only mourn after printing output.
1709 (extended_remote_attach_1): Add process to the inferior list.
1710 (remote_vcont_resume): Use write_ptid to pass the thread ids.
1711 (remote_wait): Use read_ptid. Implement the extended
1712 multi-process extension format of the 'W' and 'X' reply packets.
1713 Remove exited inferiors from inferior list.
1714 (remote_xfer_memory): Set general thread.
1715 (remote_vkill): New.
1716 (extended_remote_kill): New.
1717 (remote_mourn_1): Discard all inferiors.
1718 (select_new_thread_callback): New.
1719 (extended_remote_mourn_1): If there are more processes to debug,
1720 switch to a thread in another process, and don't pop the target.
1721 (extended_remote_create_inferior_1): Add the new process to the
1723 (remote_stopped_by_watchpoint): Indenting.
1724 (remote_xfer_partial): Set the general thread.
1725 (remote_pid_to_str): If the remote is multi-process aware, print
1726 the process id as well as the thread id.
1727 (remote_get_thread_local_address): Use write_ptid.
1728 (init_extended_remote_ops): Register extended_remote_kill.
1729 (_initialize_remote): Register new packets. Change
1730 magic_null_ptid's, not_sent_ptid's and any_thread_ptid's pid
1733 * thread.c (thread_change_ptid): Also account for the inferior pid
1736 * inferior.h (discard_all_inferiors): Declare.
1737 * inferior.c (discard_all_inferiors): New.
1739 2008-09-22 Pedro Alves <pedro@codesourcery.com>
1741 * gnu-nat.c (gnu_attach): Add process to inferiors table.
1742 (gnu_detach): Remove it.
1743 * go32-nat.c (go32_create_inferior): Add process to gdb's inferior
1745 * inf-ptrace.c (inf_ptrace_follow_fork): Delete and add inferiors
1746 to inferior table accordingly.
1747 (inf_ptrace_attach): Add new process to inferior table.
1748 (inf_ptrace_detach): Remove it.
1749 * inf-ttrace.c (inf_ttrace_follow_fork): Delete and add inferiors
1750 to inferior table accordingly.
1751 (inf_ttrace_attach): Add process to inferior table.
1752 (inf_ttrace_detach): Remove it.
1753 * linux-fork.c (init_fork_list): Delete any left over inferior.
1754 (linux_fork_mourn_inferior, detach_fork_command): Also delete
1755 processes from inferior list.
1756 * monitor.c (monitor_open): Add process to inferior list.
1757 (monitor_close): Remove it.
1758 * nto-procfs.c (procfs_attach): Add process to inferior list.
1759 Find threads after pushing the target.
1760 (procfs_detach): Remove process from inferior list.
1761 (procfs_create_inferior): Add process to inferior list.
1762 * procfs.c (procfs_detach): Remove process from inferior list.
1763 (do_attach): Add process to inferior list.
1764 * remote-sim.c (sim_create_inferior): Add process to inferior list.
1765 (gdbsim_close): Remove it.
1766 * target.c (generic_mourn_inferior): If inferior_ptid is not
1767 null_ptid, remove the corresponding inferior from inferior list.
1768 * win32-nat.c (do_initial_win32_stuff): Add process to inferior list.
1769 (win32_detach): Remove it.
1770 * linux-nat.c (linux_child_follow_fork): Delete and add inferiors
1771 to inferior list accordingly.
1772 * fork-child.c (fork_inferior): Add process to inferior list.
1773 * corelow.c (CORELOW_PID): Define.
1774 (core_close): Remove core from inferior list.
1775 (core_open): Add it.
1777 2008-09-22 Pedro Alves <pedro@codesourcery.com>
1779 * inferior.h: Forward declare struct ui_out.
1780 Forward declare struct private_inferior.
1781 (struct inferior): New.
1782 (init_inferior_list, add_inferior, add_inferior_silent)
1783 (delete_inferior, delete_inferior_silent, detach_inferior)
1784 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
1785 (valid_inferior_id, find_inferior_pid): New functions.
1786 (inferior_callback_func): New typedef.
1787 (iterate_over_inferiors, print_inferior, have_inferiors)
1788 (current_inferior): New functions.
1789 * inferior.c: New file.
1791 * Makefile.in (SFILES): Add inferior.c.
1792 (COMMON_OBS): Add inferior.o.
1794 2008-09-22 Jonathan Larmour <jifl@eCosCentric.com>
1796 * arm-tdep.c (arm_skip_prologue): Call skip_prologue_using_sal
1797 instead of determining symbol and line info directly.
1798 * MAINTAINERS: Update my email address.
1800 2008-09-22 Daniel Jacobowitz <dan@codesourcery.com>
1802 * symtab.c (skip_prologue_using_sal): Treat two consecutive lines
1803 at the same address as a prologue marker. Do not skip an entire
1806 2008-09-22 Andrew Stubbs <ams@codesourcery.com>
1808 * frame.c (get_frame_register_bytes): Comment improvments.
1810 2008-09-22 Pedro Alves <pedro@codesourcery.com>
1812 * linux-nat.c (linux_nat_wait): Only use set_ignore_sigint in
1815 2008-09-19 Andrew Stubbs <ams@codesourcery.com>
1817 * MAINTAINERS: Update my email address.
1819 2008-09-19 Andrew Stubbs <ams@codesourcery.com>
1821 * frame.c (get_frame_register_bytes): Detect bad debug info.
1823 2008-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1825 Fix a crash on uninitialized ECS->EVENT_THREAD for a newly found thread.
1826 * infrun.c (wait_for_inferior): Move this ECS->EVENT_THREAD
1828 (fetch_inferior_event): ... and this ECS->EVENT_THREAD initialization
1830 (handle_inferior_event): ... here after the add_thread call together
1831 with the local adjust_pc_after_break and reinit_frame_cache calls.
1833 2008-09-16 David Daney <ddaney@avtrex.com>
1835 * breakpoint.c (bpstat_stop_status): Clear breakpoint_at for
1836 all hardware bpstats.
1838 2008-09-16 Joel Brobecker <brobecker@adacore.com>
1840 * gstdint.h: Delete.
1842 2008-09-15 Mark Kettenis <kettenis@gnu.org>
1844 * infcall.c (generic_push_dummy_code): Remove.
1845 (push_dummy_code): Unconditionally call gdbarch_push_dummy_code.
1847 2008-09-15 Doug Evans <dje@google.com>
1849 * dwarf2read.c (struct abbrev_info): Make members name, form 16 bits.
1850 (struct attribute): Ditto.
1852 2008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1854 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Record
1855 HPPA_IPSW_REGNUM and HPPA_SAR_REGNUM values.
1857 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Remove surrounding
1858 "#if 0" "#endif". Fix mapping of DWARF DBX registers to GDB registers.
1859 Correct arguments and improve comments.
1860 (hppa_linux_init_abi): Call set_gdbarch_dwarf2_reg_to_regnum. Delete
1862 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Fix check for floating
1863 point DBX register, change error to warning, and improve comments.
1865 2008-09-14 Doug Evans <dje@google.com>
1867 * dwarf2read.c (struct die_info): Make members tag, num_attrs 16 bits.
1869 2008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1871 * hppa-linux-tdep.c (hppa_linux_supply_fpregset): Correct iteration.
1873 2008-09-13 Joel Brobecker <brobecker@adacore.com>
1875 * defs.h (GCC_GENERATED_STDINT_H): Define.
1877 2008-09-13 Tom Tromey <tromey@redhat.com>
1879 * varobj.c (varobj_set_display_format): Use xfree.
1880 * tracepoint.c (stringify_collection_list): Use xfree.
1881 * remote-fileio.c (remote_fileio_reset): Use xfree.
1882 * mipsread.c (read_alphacoff_dynamic_symtab): Use xfree.
1883 * dfp.c (decimal_from_floating): Use xfree, xstrprintf. Don't use
1885 * cp-support.c (mangled_name_to_comp): Use xfree.
1887 2008-09-13 Joel Brobecker <brobecker@adacore.com>
1889 * ada-lang.c (remove_extra_symbols): Remove stub symbols if
1890 the associated complete symbol is also in the list.
1891 (ada_add_local_symbols, ada_add_non_local_symbols): New functions,
1892 extracted out from ada_lookup_symbol_list.
1893 (ada_lookup_symbol_list): Use them. Remove the search through
1894 the minimal symbols.
1896 2008-09-13 Joel Brobecker <brobecker@adacore.com>
1898 * dwarf2read.c (add_partial_subprogram): New procedure.
1899 (scan_partial_symbols): Use it.
1900 (load_partial_dies): Read in children of subprogram and lexical
1901 blocks for Ada compilation units.
1903 2008-09-13 Tom Tromey <tromey@redhat.com>
1905 * symfile.c (build_id_verify): Free 'found'.
1906 (find_separate_debug_file): Use xfree, not free.
1908 2008-09-12 Doug Evans <dje@google.com>
1910 * corefile.c (write_memory): Remove unnecessary copying.
1912 * sol-thread.c (_initialize_sol_thread): Add FIXME regarding
1913 order of _initialize_* fns.
1915 * dwarf2read.c (comp_unit_head): Rename first_die_ptr to
1916 first_die_offset. All uses updated.
1917 Delete unused members cu_head_ptr, next.
1918 Move members base_known, base_address to ...
1919 (dwarf2_cu) ... here. All uses updated.
1921 2008-09-12 Pedro Alves <pedro@codesourcery.com>
1923 * Makefile.in (generated_files): Add $(NAT_GENERATED_FILES).
1924 * config/i386/i386gnu.mh (NAT_GENERATED_FILES): New.
1926 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1928 * fork-child.c (startup_inferior): Use target_wait and target_resume
1929 directly instead of calling wait_for_inferior / resume.
1931 * infcmd.c (kill_if_already_running): Do not call no_shared_libraries
1932 or init_wait_for_inferior.
1933 (run_command_1): Call init_wait_for_inferior.
1935 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1937 * gdbtypes.h (builtin_type_void_data_ptr, builtin_type_void_func_ptr,
1938 builtin_type_CORE_ADDR, builtin_type_char, builtin_type_short,
1939 builtin_type_int, builtin_type_long, builtin_type_signed_char,
1940 builtin_type_unsigned_char, builtin_type_unsigned_short,
1941 builtin_type_unsigned_int, builtin_type_unsigned_long,
1942 builtin_type_float, builtin_type_double, builtin_type_long_double,
1943 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
1944 builtin_type_bool, builtin_type_long_long,
1945 builtin_type_unsigned_long_long): Remove macros.
1947 (builtin_type_f_character, builtin_type_f_integer,
1948 builtin_type_f_integer_s2, builtin_type_f_logical,
1949 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
1950 builtin_type_f_real, builtin_type_f_real_s8, builtin_type_f_real_s16,
1951 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
1952 builtin_type_f_complex_s32): Likewise.
1954 (builtin_type_m2_char, builtin_type_m2_int, builtin_type_m2_card,
1955 builtin_type_m2_real, builtin_type_m2_bool): Likewise.
1957 (struct builtin_f_type, builtin_f_type): Move to f-lang.h.
1958 (struct builtin_m2_type, builtin_m2_type): Move to m2-lang.h.
1960 * f-lang.h (struct builtin_f_type, builtin_f_type): Move here.
1961 * m2-lang.h (struct builtin_m2_type, builtin_m2_type): Move here.
1963 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1965 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use builtin types of
1966 target_gdbarch instead of builtin_type_void_data_ptr.
1967 (LM_DYNAMIC_FROM_LINK_MAP, LM_NEXT, LM_NAME,
1968 IGNORE_FIRST_LINK_MAP_ENTRY, scan_dyntag, elf_locate_base,
1969 solib_svr4_r_map, solib_svr4_r_brk, solib_svr4_r_ldsomap,
1970 open_symbol_file_object): Likewise.
1971 * nto-tdep.c (LM_ADDR): Likewise.
1973 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1975 * bsd-uthread.c (bsd_uthread_read_memory_address): New function.
1976 (bsd_uthread_fetch_registers, bsd_uthread_store_registers,
1977 bsd_uthread_wait, bsd_uthread_find_new_threads): Use it.
1979 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1981 * procfs.c (procfs_address_to_host_pointer): Use target_gdbarch
1982 and its associated types to perform pointer conversion.
1983 (procfs_can_use_hw_breakpoint): Likewise.
1984 (procfs_auxv_parse): Remove unused variable.
1986 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1988 * auxv.c (default_auxv_parse): Use gdbarch_ptr_bit (target_gdbarch)
1989 instead of builtin_type_void_data_ptr.
1990 * target.c (default_region_ok_for_hw_watchpoint): Likewise.
1992 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1994 * expprint.c (print_subexp_standard): Compare against builtin type
1995 associated with exp->gdbarch instead of builtin_type_char.
1997 * f-valprint.c (f_val_print): Use extract_unsigned_integer to
1998 extract values of arbitrary logical type. Handle arbitrary
2001 * printcmd.c (float_type_from_length): New function.
2002 (print_scalar_formatted, printf_command): Use it.
2004 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2006 * valops.c: Include "objfiles.h" and "symtab.h".
2007 (find_function_in_inferior): New argument OBJF_P. Use it to return
2008 objfile where function is defined. Use per-objfile arch types
2009 instead of builtin_type_ to define default return type.
2011 * linux-fork.c (checkpoint_command): Update calls. Use per-objfile
2012 architecture to define inferior call argument types.
2013 * gcore.c (derive_heap_segment): Likewise.
2014 * objc-lang.c (value_nsstring): Likewise.
2015 * scm-lang.c (scm_lookup_name): Likewise.
2016 * scm-valprint.c (scm_inferior_print): Likewise.
2017 * valops.c (value_allocate_space_in_inferior): Likewise.
2019 * eval.c (evaluate_subexp_standard): Update calls.
2020 * objc-lang.c (lookup_objc_class, print_object_command): Likewise.
2022 * linux-fork.c: Include "objfiles.h".
2023 * scm-lang.c: Include "objfiles.h".
2024 * scm-valprint.c: Include "objfiles.h".
2026 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2028 * gdbarch.sh (name_of_malloc): Remove.
2029 * gdbarch.c, gdbarch.h: Re-generate.
2030 * valops.c (value_allocate_space_in_inferior): Do not call
2031 gdbarch_name_of_malloc.
2033 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2035 * valarith.c (value_x_unop): Use builtin_type_int8 as type for
2036 UNOP_POSTINCREMENT/UNOP_POSTDECREMENT constant 0 argument.
2037 (value_bit_index): Use extract_unsigned_integer
2038 instead of unpack_long to read single byte.
2040 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2042 * infcall.c (value_arg_coerce): Add GDBARCH parameter. Use its
2043 associates types instead of builtin_type_ macros.
2044 (find_function_addr): Leave output VALUE_TYPE NULL if unknown.
2045 (call_function_by_hand): Use per-architecture "int" type as
2046 fall-back if find_function_addr returns NULL VALUE_TYPE.
2047 Update call to value_arg_coerce.
2049 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2051 * cp-abi.h (cplus_method_ptr_size): Add TO_TYPE parameter.
2052 (cplus_make_method_ptr): Add TYPE parameter.
2053 * cp-abi.c (cplus_method_ptr_size): Add TO_TYPE parameter. Pass it
2054 on to current_cp_abi.method_ptr_size callback.
2055 (cplus_make_method_ptr): Add TYPE parameter. Pass it on to
2056 current_cp_abi.make_method_ptr callback.
2058 * gdbtypes.c (lookup_methodptr_type): Pass target type
2059 argument to cplus_method_ptr_size.
2060 * valops.c (value_cast): Pass type argument to cplus_make_method_ptr.
2061 (value_struct_elt_for_reference): Likewise.
2063 * gnu-v3-abi.c (get_class_arch): New function.
2064 (vtable_address_point_offset): Add GDBARCH parameter. Use it
2065 instead of current_gdbarch. Update all callers.
2066 (gnuv3_get_vtable): Likewise.
2067 (gnuv3_get_virtual_fn): Likewise.
2068 (gnuv3_decode_method_ptr): Likewise.
2069 (gnuv3_rtti_type): Call get_class_arch to determine architecture.
2070 Use it instead of current_gdbarch.
2071 (gnuv3_virtual_fn_field): Likewise.
2072 (gnuv3_baseclass_offset): Likewise.
2073 (gnuv3_print_method_ptr): Likewise.
2074 (gnuv3_method_ptr_to_value): Likewise.
2075 (gnuv3_method_ptr_size): Add TYPE parameter. Use it to determine
2076 class architecture. Use architecture types instead of builtin types.
2077 (gnuv3_make_method_ptr): Likewise.
2079 * cp-valprint.c (cp_print_class_member): Expect pointer type
2080 instead of class type. Use its length when extracting value.
2081 * c-valprint.c (c_val_print): Update call to cp_print_class_member.
2083 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2085 * stack.c (return_command): Use frame architecture to determine
2086 default integer return type.
2088 * f-valprint.c (f77_get_dynamic_lowerbound): Use frame architecture
2089 to determine pointer types.
2090 (f77_get_dynamic_upperbound): Likewise.
2092 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Remove.
2093 (resolve_msgsend): Use architecture of current frame to determine
2094 pointer types. Inline OBJC_FETCH_POINTER_ARGUMENT.
2095 (resolve_msgsend_stret, resolve_msgsend_super,
2096 resolve_msgsend_super_stret): Likewise.
2098 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2100 * alpha-tdep.c (alpha_register_type): Use builtin_type (gdbarch)
2101 instead of builtin_type_ macros.
2102 * amd64-tdep.c (amd64_register_type): Likewise.
2103 (amd64_get_longjmp_target): Likewise.
2104 * arm-tdep.c (arm_register_type): Likewise.
2105 * avr-tdep.c (avr_register_type): Likewise.
2106 * cris-tdep.c (cris_register_type, crisv32_register_type): Likewise.
2107 * frv-tdep.c (frv_register_type): Likewise.
2108 * h8300-tdep.c (h8300_register_type): Likewise.
2109 * hppa-tdep.c (hppa32_convert_from_func_ptr_addr,
2110 hppa_skip_trampoline_code): Likewise.
2111 * i386-tdep.c (i386_register_type): Likewise.
2112 (i386_unwind_pc, i386_sse_type): Likewise.
2113 * ia64-tdep.c (ia64_register_type): Likewise.
2114 * m32r-tdep.c (m32r_register_type): Likewise.
2115 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
2116 * m88k-tdep.c (m88k_register_type): Likewise.
2117 * mep-tdep.c (mep_register_type): Likewise.
2118 * mips-tdep.c (mips_pseudo_register_type): Likewise.
2119 * mn10300-tdep.c (mn10300_register_type): Likewise.
2120 * mt-tdep.c (mt_copro_register_type): Likewise.
2121 * rs6000-tdep.c (rs6000_builtin_type_vec64): Likewise.
2122 (rs6000_convert_register_p, rs6000_register_to_value,
2123 rs6000_value_to_register): Likewise.
2124 * s390-tdep.c (s390_register_type): Likewise.
2125 * sh64-tdep.c (sh64_register_type): Likewise.
2126 (sh64_build_float_register_type, sh64_do_fp_register): Likewise.
2127 * sh-tdep.c (sh_sh2a_register_type, sh_sh3e_register_type,
2128 sh_sh4_build_float_register_type, sh_sh4_register_type,
2129 sh_default_register_type): Likewise.
2130 * sparc64-tdep.c (sparc64_register_type): Likewise.
2131 * sparc-tdep.c (sparc32_register_type): Likewise.
2132 * spu-tdep.c (spu_builtin_type_vec128, spu_register_type): Likewise.
2133 * v850-tdep.c (v850_register_type): Likewise.
2134 * vax-tdep.c (vax_register_type): Likewise.
2135 * xtensa-tdep.c (xtensa_register_type, xtensa_unwind_pc,
2136 xtensa_push_dummy_call): Likewise.
2138 * std-regs.c (value_of_builtin_frame_fp_reg,
2139 value_of_builtin_frame_pc_reg): Likewise.
2140 * target-descriptions.c (tdesc_register_type): Likewise.
2142 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2144 * ada-lang.c (ada_coerce_to_simple_array_type): Use builtin_type_int32
2145 instead of builtin_type_int as default unspecified integral type.
2146 (ada_index_type, ada_array_bound_from_type, ada_variant_discrim_type,
2147 assign_component, to_fixed_range_type): Likewise.
2148 * ada-typeprint.c (print_range, print_range_bound,
2149 print_range_type_named): Likewise.
2150 * ada-valprint.c (print_optional_low_bound, ada_val_print_1): Likewise.
2151 * eval.c (evaluate_subexp_standard): Likewise.
2152 * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
2153 * gnu-v3-abi.c (gnuv3_get_virtual_fn, gnuv3_baseclass_offset,
2154 build_gdb_vtable_type): Likewise.
2155 * jv-lang.c (java_array_type): Likewise.
2156 * m2-typeprint.c (m2_print_bounds, m2_is_long_set_of_type): Likewise.
2157 * m2-valprint.c (m2_print_long_set): Likewise.
2158 * parse.c (follow_types): Likewise.
2159 * p-typeprint.c (pascal_type_print_base): Likewise.
2160 * valops.c (value_one, value_array, value_string,
2161 value_bitstring): Likewise.
2162 * value.c (allocate_repeat_value, value_from_string): Likewise.
2163 * varobj.c (c_describe_child): Likewise.
2164 * mt-tdep.c (mt_register_type): Likewise.
2165 * sh-tdep.c (sh_sh4_build_float_register_type): Likewise.
2166 * sh64-tdep.c (sh64_build_float_register_type): Likewise.
2168 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2170 * defs.h (struct gdbarch): Add forward declaration.
2171 (set_next_address): Add GDBARCH argument.
2172 * printcmd.c (set_next_address): Use it to find pointer type.
2173 * breakpoint.c (breakpoint_1): Update call.
2174 * source.c (line_info): Likewise.
2175 * findcmd.c (find_command): Use current_gdbarch to find pointer type.
2177 * breakpoint.c (set_breakpoint_count): Use platform-neutral
2178 types for internal variable values.
2179 * infrun.c (handle_inferior_event): Likewise.
2180 * source.c (forward_search_command, reverse_search_command): Likewise.
2181 * tracepoint.c (set_tracepoint_count, set_traceframe_num,
2182 set_tracepoint_num, set_traceframe_context): Likewise.
2184 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2186 * gdbtypes.h (struct builtin_type): Remove builtin_true_char
2187 and builtin_true_unsigned_char.
2188 (builtin_type_true_char): Remove macro, add extern declaration.
2189 (builtin_type_true_unsigned_char): Add extern declaration.
2190 * gdbtypes.c (builtin_type_true_char): New global variable.
2191 (builtin_type_true_unsigned_char): Likewise.
2192 (_initialize_gdbtypes): Initialize them.
2193 (gdbtypes_post_init): Do not initialize builtin_true_char
2194 and builtin_true_unsigned_char members of struct builtin_type.
2196 * printcmd.c (print_scalar_formatted): Do not use builtin_type;
2197 use builtin_type_true_unsigned_char instead.
2199 * ada-valprint.c (ada_val_print_1): Use builtin_type_true_char
2200 instead of builtin_type_char for internal string.
2202 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2204 * gdbtypes.h (builtin_type_void): Remove macro, add declaration.
2205 (builtin_type_f_void): Remove macro.
2206 * gdbtypes.c (builtin_type_void): New global variable.
2207 (_initialize_gdbtypes): Initialize it.
2209 * gnu-v3-abi.c (build_gdb_vtable_type): Do not call
2210 lookup_pointer_type or lookup_function_type on builtin_type_void.
2211 * printcmd.c (set_next_address): Likewise.
2212 * objc-lang.c (value_nsstring): Likewise.
2213 * mt-tdep.c (mt_copro_register_type): Likewise.
2214 * xtensa-tdep.c (xtensa_register_type): Likewise.
2216 * symfile.c (syms_from_objfile): Remove special handling
2217 of builtin_type_void and builtin_type_char.
2219 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2221 * eval.c (evaluate_subexp_standard): Use exp->gdbarch types instead
2222 of builtin_type_ macros when handling OP_OBJC_ operations.
2223 * objc-lang.c (print_object_command): Likewise.
2225 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2227 * ada-valprint.c: Include "objfiles.h".
2228 (ada_val_print_1): Use the gdbarch associated with the objfile whether
2229 a System.Address type is defined to retrieve the proper pointer type
2232 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2234 * ada-lang.c (value_pos_atr): Add TYPE argument. Use it as
2235 result type instead of builtin_type_int.
2236 (value_subscript_packed): Use pos_atr instead of value_pos_atr.
2237 (ada_value_subscript): Update call to value_pos_atr.
2238 (ada_value_ptr_subscript): Likewise.
2239 (ada_evaluate_subexp): Likewise.
2241 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2243 * ada-lang.c (cast_to_fixed): Do not cast to builtin_type_double.
2244 (cast_from_fixed_to_double): Rename to ...
2245 (cast_from_fixed): ... this. Add TYPE parameter. Use it instead
2246 of builtin_type_double.
2247 (ada_value_cast): Use cast_from_fixed instead of casting result
2248 of cast_from_fixed_to_double.
2249 (ada_evaluate_subexp): Update calls to cast_from_fixed_to_double.
2251 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2253 * valops.c (value_ind): No longer allow dereferencing an
2255 * eval.c (evaluate_subexp_standard): Handle deferencing an
2257 * ada-lang.c (ada_evaluate_subexp): Likewise.
2259 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2261 * ada-valprint.c (ada_val_print_1): When implicitly dereferencing
2262 a reference type, pass the reference type directly to unpack_pointer.
2263 * c-valprint.c (c_val_print): Likewise.
2264 * f-valprint.c (f_val_print): Likewise.
2265 * m2-valprint.c (print_variable_at_address, m2_val_print): Likewise.
2266 * p-valprint.c (pascal_val_print): Likewise.
2268 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2270 * eval.c (evaluate_subexp_standard): Use builtin_type_int8
2271 to construct the EVAL_SKIP dummy return value.
2272 * ada-lang.c (ada_evaluate_subexp): Likewise.
2273 * jv-lang.c (evaluate_subexp_java): Likewise.
2274 * m2-lang.c (evaluate_subexp_modula2): Likewise.
2275 * scm-lang.c (evaluate_exp): Likewise.
2277 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2279 * value.h (coerce_enum, coerce_number): Remove prototypes.
2280 * value.c (coerce_enum, coerce_number): Remove.
2281 * valarith.c (value_x_binop): Do not call coerce_enum.
2282 (value_x_unop): Likewise.
2283 (value_logical_not): Call coerce_array instead of coerce_number.
2285 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2287 * ax-gdb.c: Include "language.h".
2288 (gen_frame_args_address): Add GDBARCH parameter; use it
2289 instead of current_gdbarch.
2290 (gen_frame_locals_address): Likewise.
2291 (gen_var_ref): Add GDBARCH parameter. Update calls to
2292 gen_frame_args_address and gen_frame_locals_address. Use
2293 pointer type from gdbarch.
2294 (gen_usual_unary): Add EXP parameter. Use integer type
2296 (gen_usual_arithmetic): Likewise.
2297 (gen_integral_promotions): Likewise.
2298 (gen_add, gen_sub): Remove.
2299 (gen_ptradd, gen_ptrsub, gen_ptrdiff): New functions.
2300 (gen_logical_not): Use passed-in boolean result type
2301 instead of builtin_type_int.
2302 (gen_complement): Do not call gen_usual_unary or
2303 gen_integral_promotions.
2304 (gen_struct_ref): Call require_rvalue instead of gen_usual_unary.
2305 (gen_repeat): Add EXP parameter. Update call to gen_expr.
2306 Use builtin_type_int32 as internal range type.
2307 (gen_sizeof): Add EXP and SIZE_TYPE parameters. Use SIZE_TYPE
2308 as result type. Update call to gen_expr.
2309 (gen_expr): Add EXP parameter. Update calls to gen_expr,
2310 gen_repeat, gen_var_ref, gen_usual_unary, gen_usual_arithmetic,
2311 and gen_integral_promotions. Call gen_ptradd, gen_ptrsub,
2312 gen_ptrdiff, or gen_binop instead of gen_add or gen_sub.
2313 Use exp->gdbarch instead of current_gdbarch.
2314 Call language_bool_type to determine result type of UNOP_LOGICAL_NOT.
2316 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2318 * eval.c (evaluate_subexp_standard): Add calls to binop_promote
2319 and unop_promote before calling value_binop et. al.
2320 * ada-lang.c (ada_evaluate_subexp): Add calls to binop_promote
2321 and unop_promote before calling value_binop et. al.
2323 * valarith.c (value_binop): Do not call binop_promote or unop_promote.
2324 (value_pos): Do not call unop_promote.
2325 (value_neg, value_complement): Likewise.
2327 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2329 * value.h (unop_promote, binop_promote): Add prototypes.
2330 * eval.c (unop_promote, binop_promote): New functions.
2331 * valarith.c (unop_result_type, binop_result_type): Remove.
2332 (value_binop): Call binop_promote or unop_promote.
2333 Inline remaining parts of binop_result_type. Remove special
2334 code to truncate integer values for unsigned operations.
2335 (value_pos): Call unop_promote. Inline remaining parts of
2337 (value_neg, value_complement): Likewise.
2339 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2341 * value.h (value_add, value_sub): Remove.
2342 (value_ptradd, value_ptrsub, value_ptrdiff): Add prototypes.
2343 * valarith.c (value_add, value_sub): Remove.
2344 (value_ptradd, value_ptrsub, value_ptrdiff): New functions.
2345 (find_size_for_pointer_math): Add assertion. Update comment.
2346 (value_binop): Update comment.
2348 * eval.c (ptrmath_type_p): New function.
2349 (evaluate_subexp_standard): Replace value_add and value_sub
2350 by value_ptradd, value_ptrsub, value_ptrdiff or value_binop.
2351 Use builtin_type_uint8 instead of builtin_type_char to hold
2352 the increment for BINOP_{PRE,POST}{IN,DE}CREMENT operations.
2353 * valarith.c (value_subscript): Replace value_add by
2354 value_ptradd. Replace value_sub by value_binop.
2355 * ada-lang.c (ada_value_ptr_subscript): Likewise.
2356 (ada_tag_name_2): Replace value_add by value_ptradd.
2357 (ada_evaluate_subexp): Replace value_add and value_sub by
2359 * m2-lang.c (evaluate_subexp_modula2): Replace value_add
2361 * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
2362 * gnu-v3-abi.c (gnuv3_method_ptr_to_value): Likewise.
2364 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2366 * eval.c (evaluate_subexp_for_sizeof): Use builtin_int type of
2367 the expression architecture instead of builtin_type_int as the
2370 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2372 * expression.h (enum exp_opcode): Document OP_COMPLEX to take
2373 a type parameter as expression element.
2374 * eval.c (evaluate_subexp_standard) [OP_COMPLEX]: Retrieve result
2375 type as expression element.
2376 * f-exp.y: Pass in type when buildin OP_COMPLEX expression.
2377 * parse.c (operator_length_standard): Update length of OP_COMPLEX.
2379 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2381 * language.h (struct language_arch_info): New members
2382 bool_type_default and bool_type_symbol.
2383 (lang_bool_type): Remove prototype.
2384 (LA_BOOL_TYPE): Remove macro.
2385 (language_bool_type): Add prototype.
2386 * language.c (lang_bool_type): Remove.
2387 (language_bool_type): New function.
2389 * value.h (value_in): Change return value to int.
2390 * value.c (value_in): Return int instead of struct value *.
2392 * eval.c (evaluate_subexp_standard): Call language_bool_type instead
2393 of using LA_BOOL_TYPE. Update call to value_in.
2394 * ada-lang.c (ada_evaluate_subexp): Call language_bool_type instead
2395 of using LA_BOOL_TYPE or builtin_type_int for boolean values.
2397 * language.c (unknown_language_arch_info): Set bool_type_default member
2398 of struct language_arch_info.
2399 * ada-lang.c (ada_language_arch_info): Set bool_type_symbol and
2400 bool_type_default members of struct language_arch_info.
2401 * c-lang.c (c_language_arch_info): Set bool_type_default member
2402 of struct language_arch_info.
2403 (cplus_language_arch_info): Set bool_type_symbol and bool_type_default
2404 members of struct language_arch_info.
2405 * f-lang.c (f_language_arch_info): Set bool_type_symbol and
2406 bool_type_default members of struct language_arch_info.
2407 * jv-lang.c (java_language_arch_info): Set bool_type_symbol and
2408 bool_type_default members of struct language_arch_info.
2409 * m2-lang.c (m2_language_arch_info): Set bool_type_symbol and
2410 bool_type_default members of struct language_arch_info.
2411 * p-lang.c (p_language_arch_info): Set bool_type_symbol and
2412 bool_type_default members of struct language_arch_info.
2414 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2416 * jv-lang.c (enum java_primitive_types): New type.
2417 (java_language_arch_info): New function.
2418 (java_language): Use it instead of c_language_arch_info.
2420 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2422 * value.h (value_bitstring_subscript): New prototype.
2423 * valarith.h (value_bitstring_subscript): New function.
2424 (value_subscript): No longer handle TYPE_CODE_BITSTRING.
2425 * eval.c (evaluate_subexp_standard): Call value_bitstring_subscript
2426 instead of value_subscript to handle TYPE_CODE_BITSTRING.
2428 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2430 * expression.h (struct expression): New member GDBARCH.
2431 * parse.c (parse_exp_in_context): Initialize it.
2432 * parser-def.h (parse_gdbarch, parse_language): New macros.
2434 * ada-exp.y (parse_type): New macro.
2435 Replace builtin_type_ macros by using parse_type.
2436 Replace current_language by parse_language.
2437 * ada-lex.l (processInt): Replace current_gdbarch by parse_gdbarch.
2438 Replace builtin_type_ macros.
2440 * c-exp.y (parse_type): New macro.
2441 Replace builtin_type_ macros by using parse_type.
2442 (parse_number): Replace current_gdbarch by parse_gdbarch.
2443 (yylex): Replace current_language by parse_language.
2445 * f-exp.y (parse_type, parse_f_type): New macros.
2446 Replace builtin_type_ macros by using parse_{f_,}type.
2447 (parse_number): Replace current_gdbarch by parse_gdbarch.
2448 (yylex): Replace current_language by parse_language.
2450 * jv-exp.y (parse_type): New macro.
2451 (parse_number): Replace builtin_type_ macros by using parse_type.
2453 * m2-exp.y (parse_type, parse_m2_type): New macros.
2454 Replace builtin_type_ macros by using parse_{m2_,}type.
2456 * objc-exp.y (parse_type): New macro.
2457 Replace builtin_type_ macros by using parse_type.
2458 (parse_number): Replace current_gdbarch by parse_gdbarch.
2459 (yylex): Replace current_language by parse_language.
2461 * p-exp.y (parse_type): New macro.
2462 Replace builtin_type_ macros by using parse_type.
2463 (parse_number): Replace current_gdbarch by parse_gdbarch.
2464 (yylex): Replace current_language by parse_language.
2466 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2468 * parser-defs.h (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE
2469 and DATA_SYMBOL_TYPE arguments.
2470 * parse.c (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE and
2471 DATA_SYMBOL_TYPE arguments. Replace use of builtin_type_CORE_ADDR.
2472 (write_dollar_variable): Update call.
2474 * ada-exp.y (write_var_or_type): Update call.
2475 * c-exp.y: Likewise.
2476 * f-exp.y: Likewise.
2477 * jv-exp.y: Likewise.
2478 * m2-exp.y: Likewise.
2479 * objc-exp.y: Likewise.
2480 * p-exp.y: Likewise.
2482 2008-09-10 Joel Brobecker <brobecker@adacore.com>
2484 * ada-lang.c (ada_parent_type): Add handling of the case where
2485 the _parent field is a pointer and/or has a parallel XVS type.
2486 (ada_evaluate_subexp) [OP_VAR_VALUE]: When doing an
2487 EVAL_AVOID_SIDE_EFFECTS evaluation of a tagged type, return
2488 the type of the tag instead of doing forcing an EVAL_NORMAL
2489 expression evaluation.
2491 2008-09-10 Paul N. Hilfinger <hilfinger@adacore.com>
2492 Joel Brobecker <brobecker@adacore.com>
2494 * ada-lang.c (is_digits_suffix): New function.
2495 (is_dot_digits_suffix): Remove.
2496 (ada_lookup_symbol_list): Remove digits suffix from minimal symbols
2497 before looking up in symbol table, and do not use wild matches on them.
2498 (wild_match): Reimplement for speed and to allow matching of operator
2500 (is_valid_name_for_wild_match): Return zero for names that do not
2501 follow the GNAT encoding.
2503 (is_name_suffix): Fix typo in comment.
2504 (to_record_with_fixed_variant_part): Ditto.
2506 2008-09-10 Pedro Alves <pedro@codesourcery.com>
2508 * Makefile.in (gnu-nat.o): New rule.
2510 2008-09-10 Joel Brobecker <brobecker@adacore.com>
2512 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Use
2513 archecture-neutral builtin_type_int32 instead of builtin_type_int.
2515 2008-09-10 Joel Brobecker <brobecker@adacore.com>
2517 * ada-lang.c (ada_evaluate_subexp) [BINOP_ADD, BINOP_SUB]:
2518 Add special handling for pointer types.
2520 2008-09-10 Pedro Alves <pedro@codesourcery.com>
2522 * inf-ttrace.c (inf_ttrace_follow_fork): Declare locals at the
2524 (inf_ttrace_resume, inf_ttrace_wait): Typos.
2526 2008-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2528 * ada-lang.c (ada_array_length): Use builtin_type_int32 instead
2529 of builtin_type_int.
2530 (ada_evaluate_subexp) [UNOP_IN_RANGE]: Use operand range type
2531 instead of builtin_type_int.
2533 2008-09-09 Pedro Alves <pedro@codesourcery.com>
2535 * infrun.c (normal_stop): Run hook-stop last.
2537 2008-09-09 Pedro Alves <pedro@codesourcery.com>
2539 * gnu-nat.c (gnu_pid_to_exec_file): Delete.
2540 (init_gnu_ops): Don't register it.
2542 2008-09-09 Pedro Alves <pedro@codesourcery.com>
2544 * gnu-nat.c (gnu_attach): Push target before fetching the list of
2547 2008-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2549 * valops.c (value_cast_structs): Return NULL for failure.
2550 (value_cast): Handle NULL from value_cast_structs.
2551 (value_fetch_lazy): Call check_typedef. Remove unused variable.
2553 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2555 * inferior.h (context_switch_to): Delete.
2556 * infrun.c (context_switch): Don't save and load infrun state.
2557 (context_switch_to): Delete.
2559 * infcmd.c (proceed_thread_callback): Replace context_switch_to
2560 calls by switch_to_thread calls.
2562 * gdbthread.h (save_infrun_state, load_infrun_state): Delete.
2563 * thread.c (main_thread_state, main_thread_executing): Delete.
2564 (inferior_thread): Delete references to them.
2565 (add_thread_silent): Fix case where we're adding a thread with the
2566 same ptid as an exited thread. Remove references to
2568 (load_infrun_state, save_infrun_state): Delete.
2569 (thread_alive, is_thread_state, any_running, is_executing)
2570 (set_executing): Remove the special handling for targets that
2571 don't register any thread.
2572 (restore_current_thread, thread_apply_all_command)
2573 (do_captured_thread_select): Unconditionally call
2576 * mi/mi-main.c (mi_cmd_execute): Check for exited threads.
2577 Call switch_to_thread instead of context_switch_to.
2579 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2581 Remove global continuations in favour of a per-thread
2584 * gdbthread.h (struct thread_info): Add comments around
2585 continuations and intermediate_continuations.
2586 (save_infrun_state, load_infrun_state): Delete continuations and
2587 intermediate_continuations arguments.
2588 * infrun.c (context_switch): Don't context-switch the continuations.
2589 * thread.c (clear_thread_inferior_resources): Discard all
2590 continuations of the thread we're clearing.
2591 (save_infrun_state, load_infrun_state): Delete continuations and
2592 intermediate_continuations arguments, and the code referencing
2594 * utils.c: Include "gdbthread.h".
2595 (cmd_continuation, intermediate_continuation): Delete.
2596 (add_continuation): Add thread_info* argument. Install the
2598 (restore_thread_cleanup): New.
2599 (do_all_continuations_ptid, do_all_continuations_thread_callback):
2601 (do_all_continuations): Reimplement.
2602 (discard_all_continuations_thread_callback,
2603 discard_all_continuations_thread): New.
2604 (discard_all_continuations): Reimplement.
2605 (add_intermediate_continuation): Add thread_info* argument.
2606 Install the continuation on it.
2607 (do_all_intermediate_continuations_thread_callback)
2608 (do_all_intermediate_continuations_thread): New.
2609 (do_all_intermediate_continuations): Reimplement.
2610 (discard_all_intermediate_continuations_thread_callback): New.
2611 (discard_all_intermediate_continuations_thread): New.
2612 (discard_all_intermediate_continuations): Reimplement.
2614 * breakpoint.c (until_break_command): Install the continuation on
2617 * defs.h (cmd_continuation, intermediate_continuation): Delete.
2618 (struct thread_info): Forward declare.
2619 (add_continuation, add_intermediate_continuation): Add
2620 thread_info* argument.
2621 (do_all_continuations_thread, discard_all_continuations_thread)
2622 (do_all_intermediate_continuations_thread)
2623 (discard_all_intermediate_continuations_thread): Declare.
2624 * inf-loop.c (inferior_event_handler): In non-stop only run
2625 continuations on the thread that stopped. In all-stop, run
2626 continuations on all threads.
2627 * infcmd.c (step_once, finish_command): Adjust.
2629 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2631 Remove the global stop_step in favour of a per-thread
2634 * inferior.h (stop_step): Delete.
2636 * gdbthread.h (struct thread_info): Add comments to stop_step.
2637 (save_infrun_state, load_infrun_state): Remove stop_step argument.
2638 * thread.c (load_infrun_state, save_infrun_state): Remove
2639 stop_step argument, and references to it.
2641 * infrun.c (clear_proceed_status): Clear stop_step.
2642 (fetch_inferior_event): Adjust.
2643 (context_switch): Don't context-switch stop_step.
2644 (handle_inferior_event): Adjust.
2645 (normal_stop): Adjust.
2646 (save_inferior_status, restore_inferior_status): Adjust.
2648 * infcmd.c (stop_step): Delete.
2649 (step_1, step_1_continuation, step_once, until_next_command):
2652 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2654 Remove the global step_multi in favour of a per-thread
2657 * inferior.h (step_multi): Delete.
2658 * gdbthread.h (struct thread_info): Add comments around
2660 (save_infrun_state, load_infrun_state): Remove step_multi
2662 * thread.c (load_infrun_state, save_infrun_state): Remove
2663 step_multi argument, and references to it.
2664 * infcmd.c (step_multi): Delete.
2666 (step_1_continuation, until_next_command): Adjust.
2667 * infrun.c (fetch_inferior_event): Adjust.
2668 (context_switch): Don't context-switch step_multi.
2669 (print_stop_reason, normal_stop): Adjust.
2671 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2673 Remove the global stop_signal in favour of a per-thread
2676 * inferior.h (stop_signal): Delete.
2677 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
2678 stop_signal argument.
2679 * thread.c (load_infrun_state, save_infrun_state): Remove
2680 stop_signal argument. Don't reference it.
2682 * infcmd.c (stop_signal): Delete.
2683 (program_info): Adjust.
2684 * infrun.c (resume): Clear stop_signal.
2685 (proceed): Adjust. Pass the last stop_signal to the thread we're
2687 (context_switch): Don't context-switch stop_signal.
2688 (handle_inferior_event, keep_going): Adjust.
2689 (save_inferior_status, restore_inferior_status): Adjust.
2691 * fbsd-nat.c: Include "gdbthread.h".
2692 (find_signalled_thread, find_stop_signal): New.
2693 (fbsd_make_corefile_notes): Use it.
2694 * fork-child.c (startup_inferior): Adjust.
2696 * linux-nat.c (get_pending_status): Adjust.
2697 (linux_nat_do_thread_registers): Adjust.
2698 (find_signalled_thread, find_stop_signal): New.
2699 (linux_nat_do_thread_registers): Add stop_signal parameter.
2700 (struct linux_nat_corefile_thread_data): Add stop_signal member.
2701 (linux_nat_corefile_thread_callback): Pass stop_signal.
2702 (linux_nat_do_registers): Delete.
2703 (linux_nat_make_corefile_notes): Use find_stop_signal. Assume
2704 there's always a thread.
2706 * procfs.c (find_signalled_thread, find_stop_signal): New.
2707 (find_stop_signal): New.
2708 (procfs_do_thread_registers): Add stop_signal parameter.
2709 (struct procfs_corefile_thread_data): Add stop_signal member.
2710 (procfs_corefile_thread_callback): Pass args->stop_signal.
2711 (procfs_make_note_section): Find the last stop_signal.
2713 * solib-irix.c: Include gdbthread.h.
2714 (irix_solib_create_inferior_hook): Adjust.
2715 * solib-osf.c: Include gdbthread.h.
2716 (osf_solib_create_inferior_hook): Adjust.
2717 * solib-sunos.c: Include gdbthread.h.
2718 (sunos_solib_create_inferior_hook): Adjust.
2719 * solib-svr4.c: Include gdbthread.h.
2720 (svr4_solib_create_inferior_hook): Adjust.
2722 * win32-nat.c (do_initial_win32_stuff): Adjust.
2724 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2726 * gdbthread.h (struct thread_info): Add comments around
2728 (save_infrun_state, load_infrun_state): Remove proceed_to_finish
2730 * thread.c (load_infrun_state, save_infrun_state): Delete
2731 proceed_to_finish argument and references to it.
2733 * infcall.c (call_function_by_hand): Adjust.
2734 * infcmd.c (finish_command): Adjust.
2735 * infrun.c (proceed_to_finish): Delete.
2736 (clear_proceed_status): Adjust.
2737 (context_switch): Don't context-switch proceed_to_finish.
2738 (normal_stop, save_inferior_status, restore_inferior_status):
2741 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2743 * inferior.h (stop_bpstat): Delete.
2745 * breakpoint.h (bpstat_do_actions): Remove bpstat* argument.
2747 * breakpoint.c (bpstat_do_actions): Rename to ...
2748 (bpstat_do_actions_1): ... this. Make static. Change return type
2749 to int. Return true if a breakpoint proceeded.
2750 (bpstat_do_actions): New, as wrapper around bpstat_do_actions_1.
2751 (delete_breakpoint): Don't reference the global stop_bpstat; it's
2754 * gdbthread.h (struct thread_info): Add stop_bpstat.
2755 (save_infrun_state, load_infrun_state): Remove stop_bpstat
2757 * thread.c (load_infrun_state, save_infrun_state): Remove
2758 stop_bpstat argument, and the code referencing it.
2760 * infcall.c: Include "gdbthread.h".
2761 (call_function_by_hand): Adjust.
2762 * exceptions.c: Include "gdbthread.h".
2763 (throw_exception): Adjust.
2764 * infcmd.c (stop_bpstat): Delete.
2765 (continue_command): In all-stop, set the ignore count on the
2766 thread that reported the stop. In non-stop, set it on the current
2768 (finish_command_continuation): Adjust.
2769 (program_info): Adjust.
2770 * infrun.c (clear_proceed_status): Adjust.
2771 (context_switch): Don't context-switch stop_bpstat.
2772 (handle_inferior_event): Adjust.
2773 (normal_stop): Adjust.
2774 (save_inferior_status, restore_inferior_status): Adjust.
2776 * inf-loop.c (inferior_event_handler): Remove parameter to
2777 bpstat_do_actions call.
2778 * top.c (command_loop): Remove parameter to bpstat_do_actions
2779 call. Call it unconditionally.
2780 * event-top.c (command_handler): Ditto.
2781 * python/python.c (execute_gdb_command): Ditto.
2783 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2785 * inferior.h (step_over_calls): Delete.
2787 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
2788 step_over_calls argument.
2789 * thread.c (save_infrun_state, load_infrun_state): Remove
2790 step_over_calls argument. Adjust.
2792 * infcmd.c (step_over_calls): Delete.
2794 * infrun.c (clear_proceed_status): Adjust.
2795 (context_switch): Don't context-switch step_over_calls.
2796 (handle_inferior_event, save_inferior_status)
2797 (restore_inferior_status): Adjust.
2799 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2801 Remove context switching in favour of accessing thread_info fields
2804 * infrun.c (stepping_over_breakpoint, step_resume_breakpoint):
2806 (struct thread_stepping_state): Delete.
2807 (gtss, tss): Delete.
2808 (follow_inferior_reset_breakpoints, follow_exec)
2809 (resume, clear_proceed_status): Adjust.
2811 (proceed, start_remote, init_wait_for_inferior): Adjust.
2812 (struct execution_control_state): Add event_thread member.
2813 (delete_step_resume_breakpoint_callback)
2814 (delete_step_thread_step_resume_breakpoint)
2815 (delete_step_thread_step_resume_breakpoint_cleanup)
2816 (delete_step_thread_step_resume_breakpoint): New.
2817 (wait_for_inferior, init_execution_control_state): Use
2818 delete_step_thread_step_resume_breakpoint_cleanup.
2819 (wait_for_inferior): Set the event_thread.
2820 (fetch_inferior_event): Ditto. Delete the step-resume breakpoint
2821 with delete_step_thread_step_resume_breakpoint.
2822 (init_thread_stepping_state): Change parameter type to
2823 thread_info. Adjust.
2824 (context_switch): Don't context switch prev_pc,
2825 stepping_over_breakpoint, step_resume_breakpoint,
2826 step_range_start, step_range_end, step_frame_id,
2827 tss->stepping_over_breakpoint,
2828 tss->stepping_through_solib_after_catch,
2829 tss->stepping_through_solib_catchpoints, tss->current_line, or
2830 tss->current_symtab.
2831 (adjust_pc_after_break, handle_inferior_event)
2832 (currently_stepping, step_into_function)
2833 (insert_step_resume_breakpoint_at_sal)
2834 (insert_longjmp_resume_breakpoint, keep_going): Adjust.
2835 (clear_stepping_state): New.
2836 (normal_stop): Adjust.
2837 (save_inferior_status, restore_inferior_status): Adjust.
2839 * gdbthread.h (struct thread_info): Comments describing the
2840 members moved here. Add step_after_step_resume_breakpoint.
2841 (delete_step_resume_breakpoint): Add thread_info argument.
2842 (save_infrun_state, load_infrun_state): Remove prev_pc,
2843 trap_expected, step_resume_breakpoint, step_range_start,
2844 step_range_end, step_frame_id, another_trap,
2845 stepping_through_solib_after_catch,
2846 stepping_through_solib_catchpoints, current_line and
2847 current_symtab function arguments.
2848 (inferior_thread): Declare.
2850 * thread.c (inferior_thread): New.
2851 (delete_step_resume_breakpoint): Add a thread_info parameter and
2853 (load_infrun_state, save_infrun_state): Remove prev_pc,
2854 trap_expected, step_resume_breakpoint, step_range_start,
2855 step_range_end, step_frame_id, stepping_over_breakpoint,
2856 stepping_through_solib_after_catch,
2857 stepping_through_solib_catchpoints, current_line and
2858 current_symtab args. Remove code referencing them.
2860 * infcmd.c (step_range_start, step_range_end, step_frame_id):
2862 (step_1, step_once, until_next_command): Adjust.
2864 * inferior.h (step_range_start, step_range_end, step_frame_id):
2867 * linux-nat.c (linux_child_follow_fork): If following the child,
2868 move the step state to it. Adjust.
2869 * inf-ptrace.c (inf_ptrace_follow_fork): Ditto.
2870 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2872 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2874 * bsd-uthread.c (bsd_uthread_find_new_threads): Claim the main
2877 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2879 * corelow.c (add_to_thread_list): If this is the first time we
2880 hear about thread info, update inferior_ptid.
2881 (core_open): Clear the thread list and set inferior_ptid before
2882 acknowledging a new inferior. Find threads before fetching
2883 register info. Give an upper target layer a chance to find and
2884 claim new threads. Print core generation and stop signal info
2885 after finding new threads.
2886 (get_core_register_section): Look at the lwp member of
2887 inferior_ptid for detecting if we have threads info, instead of
2889 (core_pid_to_str): New.
2890 (init_core_ops): Register core_pid_to_str.
2892 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2894 * spu-linux-nat.c (spu_child_post_startup_inferior)
2895 (spu_child_post_attach): Don't add the main thread here.
2897 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2899 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
2901 * gnu-nat.c (inf_validate_procs): If this is the first time we're
2902 seeing a thread id, extend the main thread's ptid. If we still
2903 have pending execs, don't be verbose about new threads.
2904 (gnu_wait, gnu_resume, gnu_attach, gnu_thread_alive)
2905 (gnu_pid_to_str, cur_thread, sig_thread_cmd): Adjust.
2906 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers):
2909 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2911 * procfs.c (to_attach): Create a procinfo for the current lwp.
2912 Add it to gdb's thread list.
2913 (procfs_fetch_registers, procfs_store_registers): Assume there's
2915 (procfs_wait): Don't add the main thread here.
2916 (procfs_init_inferior): Create a procinfo for the main lwp here.
2917 Change main thread's ptid with thread_change_ptid.
2918 (procfs_notice_thread): Check for exited threads.
2919 (procfs_corefile_thread_callback): Remove check for the main
2921 (procfs_make_note_section): Assume there is always a thread.
2923 * sol-thread.c (sol_thread_attach): Clear sol_thread_active before
2924 attaching. Change the main thread ptid with thread_change_ptid.
2925 (sol_thread_detach): Clear sol_thread_active.
2926 (sol_thread_wait): Check for exited threads.
2927 (sol_thread_create_inferior): Clear sol_thread_active before
2928 creating a new inferior. Change the main thread ptid with
2930 (sol_thread_mourn_inferior): Clear sol_thread_active.
2931 (sol_find_new_threads_callback): Check for exited threads.
2933 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2935 * inf-ttrace.c (inf_ttrace_wait): On TTEVT_LWP_CREATE and
2936 LWP_TERMINATE, resume the caller thread. On TTEVT_LWP_CREATE,
2937 TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE, don't stop the whole
2938 process, and return TARGET_WAITKIND_IGNORE.
2940 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2942 * inf-ttrace.c: Include <signal.h>
2943 (inf_ttrace_delete_dead_threads_callback): New.
2944 (inf_ttrace_resume_lwp): New.
2945 (inf_ttrace_resume_callback, inf_ttrace_resume): Rewrite. Don't
2946 delete dying threads until they are really dead.
2947 (inf_ttrace_wait): After stopping the whole process, delete any
2948 dying thread that is really dead by now.
2949 (inf_ttrace_thread_alive): Return 1.
2950 (inf_ttrace_extra_thread_info): New.
2951 (inf_ttrace_target): Register inf_ttrace_extra_thread_info.
2953 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2955 * inf-ttrace.c (inf_ttrace_follow_fork): Register the main thread
2957 (inf_ttrace_attach): Add the main thread.
2958 (inf_ttrace_resume_callback): Check for exited threads. Adjust
2959 for always a thread.
2960 (inf_ttrace_wait): Decorate the main thread's ptid with lwp info
2961 using thread_change_ptid, and set its private data. Don't add the
2963 (inf_ttrace_pid_to_str): Adjust.
2965 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2967 * bsd-uthread.c (bsd_uthread_wait): Decorate the main thread with
2968 thread_change_ptid. Check for exited threads.
2969 (bsd_uthread_find_new_threads): Check for exited threads.
2971 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2973 * inf-ptrace.c: Include "gdbthread.h".
2974 (inf_ptrace_attach): Add the main thread here.
2975 * linux-nat.c (linux_nat_attach): Don't add the main thread here.
2976 Decorate the main thread id with the lwp id.
2978 2008-09-08 Pedro Alves <pedro@codesourcery.com>
2980 * linux-nat.c (linux_nat_wait): Update inferior_ptid's ptid with
2981 thread_change_ptid. Don't add or mark the main thread as running
2983 * fork-child.c (fork_inferior): Add the main thread here.
2985 2008-09-08 Jerome Guitton <guitton@adacore.com>
2987 * rs6000-tdep.c (rs6000_fetch_instruction)
2988 (rs6000_skip_stack_check): New functions.
2989 (skip_prologue): Skip stack check sequence.
2991 2008-09-08 David Daney <ddaney@avtrex.com>
2993 * dummy-frame.h (frame.h): Include it.
2994 (struct frame_id): Remove declaration.
2996 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2998 * spu-tdep.c (spu_push_dummy_code): New function.
2999 (spu_gdbarch_init): Install it.
3001 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3003 * gdbarch.sh (gdbarch_dump): Use core_addr_to_string_nz
3004 instead of paddr_nz.
3005 * gdbarch.c: Regenerate.
3007 * target.c (target_xfer_partial, debug_print_register): Use
3008 core_addr_to_string_nz instead of paddr_nz.
3010 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3012 * rs6000-tdep.c (rs6000_gdbarch_init): Setup displaced stepping
3013 *before* calling gdbarch_init_osabi.
3014 (rs6000_aix_init_osabi): Disable displaced stepping.
3016 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3018 * target.c (update_current_target): Do not inherit to_open
3020 (pop_target): Call target_close on target_stack instead
3022 (pop_all_targets_above): Likewise.
3024 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3026 * gnu-v3-abi.c (gnuv3_decode_method_ptr): New function.
3027 (gnuv3_print_method_ptr): Use it.
3028 (gnuv3_method_ptr_to_value): Likewise.
3030 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3032 * nto-tdep.h (struct nto_target_ops): Add gdbarch parameter to
3033 register_area callback function.
3034 * i386-nto-tdep.c (i386nto_register_area): Add gdbarch parameter.
3035 Use it instead of current_gdbarch.
3036 * nto-procfs.c (procfs_store_registers): Update call.
3038 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3040 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Use
3041 regcache architecture instead of current_gdbarch.
3043 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3045 * mep-tdep.c (struct mep_prologue): Add gdbarch member.
3046 (check_for_saved): Use it instead of current_gdbarch.
3047 (is_arg_spill): Add gdbarch paramter. Use it instead
3049 (mep_analyze_prologue): Add gdbarch parameter. Pass it
3050 to is_arg_spill and check_for_saved.
3051 (mep_skip_prologue, mep_analyze_frame_prologue): Update calls.
3053 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3055 * hppa-tdep.c (internalize_unwinds): Use objfile architecture
3056 instead of current_gdbarch.
3058 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3060 * m68k-tdep.h (m68kbsd_fpreg_offset): Add gdbarch parameter.
3061 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Add gdbarch paramter.
3062 Use it instead of current_gdbarch.
3063 (m68kbsd_supply_fpregset): Update call.
3064 * m68kbsd-nat.c (m68kbsd_supply_fpregset): Likewise.
3065 (m68kbsd_collect_fpregset): Likewise.
3067 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3069 * cris-tdep.c (cris_version, cris_mode): Remove.
3070 (crisv32_single_step_through_delay): Use tdep->cris_mode.
3071 (cris_breakpoint_from_pc): Likewise.
3072 (cris_frame_unwind_cache): Use tdep->cris_version.
3073 (crisv32_scan_prologue): Likewise.
3074 (cris_spec_reg_applicable): Add gdbarch argument.
3075 Use tdep->cris_version.
3076 (cris_register_size, cris_special_register_name): Update calls.
3077 (cris_special_register_name): Add gdbarch argument.
3078 (cris_register_name, crisv32_register_name): Update calls.
3080 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3082 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Use info->arch
3083 instead of current_gdbarch.
3085 * sh64-tdep.c (gdb_print_insn_sh64): Remove.
3086 (sh64_gdbarch_init): Install print_insn_sh64 directly.
3087 * sh-tdep.c (gdb_print_insn_sh): Remove.
3088 (sh_gdbarch_init): Install print_insn_sh directly.
3090 * mips-tdep.c (gdb_print_insn_mips): Do not check mips_abi
3091 from current_gdbarch.
3092 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): New functions.
3093 (mips_gdbarch_init): Install them instead of gdb_print_insn_mips
3094 depending on mips_abi.
3096 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3098 * gdbarch.sh (addr_bits_remove): Change type to 'm'.
3099 (smash_text_address): Likewise.
3100 * gdbarch.c, gdbarch.h: Regenerate.
3102 * arch-utils.c (core_addr_identity): Add gdbarch parameter.
3103 * arch-utils.h (core_addr_identity): Likewise.
3104 * arm-tdep.c (arm_addr_bits_remove): Likewise.
3105 (arm_smash_text_address): Likewise.
3106 * hppa-tdep.c (hppa_smash_text_address): Likewise.
3107 * m88k-tdep.c (m88k_addr_bits_remove): Likewise.
3108 * s390-tdep.c (s390_addr_bits_remove): Likewise.
3110 * mips-tdep.c (mips_addr_bits_remove): Add gdbarch parameter.
3111 Use it instead of current_gdbarch.
3113 * arm-tdep.c (arm_prologue_prev_register, arm_unwind_pc,
3114 arm_dwarf2_prev_register): Update calls.
3115 * m88k-tdep.c (m88k_unwind_pc): Update call.
3117 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3119 * dwarf2expr.h (dwarf2_read_address): Add gdbarch argument.
3120 * dwarf2expr.c (dwarf2_read_address): Add gdbarch argument.
3121 Call gdbarch_integer_to_address directly instead of converting
3122 to value and back. Update comment.
3123 (execute_stack_op): Update call site.
3124 * dwarf2loc.c (find_location_expression): Likewise.
3125 (locexpr_describe_location): Update
3127 * dwarf2expr.h (struct dwarf_expr_context): Add gdbarch member.
3128 * dwarf2-frame.c (execute_stack_op): Initialize ctx->gdbarch.
3129 * dwarf2loc. (dwarf2_evaluate_loc_desc): Likewise.
3130 (dwarf2_loc_desc_needs_frame): Likewise.
3132 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3134 * breakpoint.h (struct bp_location): Change type of section
3135 member to "struct obj_section *".
3136 * tracepoint.h (struct tracepoint): Likewise.
3137 * symtab.h (struct general_symbol_info): Replace bfd_section
3138 member with obj_section.
3139 (struct symtab_and_line): Change type of section member to
3140 "struct obj_section *".
3141 (SYMBOL_BFD_SECTION): Remove macro, replace by ...
3142 (SYMBOL_OBJ_SECTION): ... this.
3144 * minsym.c (prim_record_minimal_symbol_and_info): Record symbol
3145 section as obj_section instead of bfd_section.
3147 * ada-lang.c (ada_decode_symbol): Use gsymbol->obj_section
3148 directly instead of looking of obj_section from bfd_section.
3150 * objfiles.h (find_pc_sect_section): Remove.
3151 * objfiles.c (find_pc_sect_section): Remove.
3152 (find_pc_section): Inline find_pc_sect_section code.
3154 * symfile.h (find_pc_overlay): Return struct obj_section *.
3155 (find_pc_mapped_section): Likewise.
3156 (section_is_overlay, section_is_mapped): Change type of section
3157 argument to struct obj_section *.
3158 (pc_in_mapped_range, pc_in_unmapped_range): Likewise.
3159 (overlay_mapped_address, overlay_unmapped_address): Likewise.
3160 (symbol_overlayed_address): Likewise.
3161 * symtab.h (symbol_overlayed_address): Likewise.
3162 * symfile.c (overlay_is_mapped): Remove.
3163 (section_is_mapped): Inline overlay_is_mapped code. Update.
3164 (overlay_invalidate_all): Update.
3165 (section_is_overlay): Change section argument to type
3166 "struct obj_section *". Use bfd_ methods.
3167 (pc_in_unmapped_range): Likewise. Handle relocated sections.
3168 (pc_in_mapped_range): Likewise. Handle relocated sections.
3169 (sections_overlap): Likewise.
3170 (overlay_unmapped_address): Likewise.
3171 (overlay_mapped_address): Likewise.
3172 (symbol_overlayed_address): Likewise.
3173 (find_pc_overlay): Return struct obj_section *.
3174 (find_pc_mapped_section): Likewise.
3175 (list_overlays_command): Update.
3176 (map_overlay_command, unmap_overlay_command): Update.
3177 (simple_overlay_update): Update.
3179 * block.h (blockvector_for_pc_sect): Change section argument
3180 to type "struct obj_section *".
3181 (block_for_pc_sect): Likewise.
3182 * block.c (blockvector_for_pc_sect): Change section argument
3183 to type "struct obj_section *".
3184 (block_for_pc_sect): Likewise.
3185 * symtab.h (find_pc_sect_function, find_pc_sect_psymtab,
3186 find_pc_sect_symtab, find_pc_sect_psymbol, find_pc_sect_line,
3187 lookup_minimal_symbol_by_pc_section, find_function_start_pc): Likewise.
3188 (matching_bfd_sections): Rename to ...
3189 (matching_obj_sections): ... this. Update argument types.
3190 * blockframe.c (find_pc_sect_function): Likewise.
3191 * breakpoint.c (describe_other_breakpoints): Likewise.
3192 (breakpoint_has_pc, check_duplicates_for): Likewise.
3193 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
3194 (lookup_minimal_symbol_by_pc_section): Likewise.
3195 * symtab.c (find_pc_sect_psymtab_closer): Likewise.
3196 (find_pc_sect_psymtab, find_pc_sect_psymbol, find_pc_sect_symtab,
3197 find_pc_sect_line, find_function_start_pc): Likewise.
3198 (matching_bfd_sections): Rename to ...
3199 (matching_obj_sections): ... this. Update argument types.
3201 * blockframe.c (find_pc_partial_function): Update to section
3202 type changes. No longer call find_pc_sect_section.
3203 (cache_pc_function_section): Change to type "struct obj_section *".
3204 * breakpoint.c (resolve_sal_pc): Update to section type changes.
3205 * exec.c (xfer_memory): Likewise.
3206 * findvar.c (read_var_value): Likewise.
3207 * infcmd.c (jump_command): Likewise.
3208 * linespec.c (minsym_found): Likewise.
3209 * maint.c (maintenance_translate_address): Likewise.
3210 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
3211 (lookup_solib_trampoline_symbol_by_pc): Likewise.
3212 * parse.c (write_exp_msymbol): Likewise.
3213 * printcmd.c (build_address_symbolic): Likewise.
3214 (address_info, sym_info): Likewise.
3215 * symmisc.c (dump_msymbols, print_symbol): Likewise.
3216 * symtab.c (fixup_section): Likewise.
3217 (fixup_symbol_section, fixup_psymbol_section): Likewise.
3218 (find_pc_line, find_function_start_sal): Likewise.
3219 * target.c (memory_xfer_partial): Likewise.
3220 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline): Likewise.
3221 * spu-tdep.c (spu_overlay_update): Likewise.
3223 2008-09-04 Doug Evans <dje@google.com>
3225 * defs.h (plongest,pulongest): Renamed from paddr_u,paddr_d.
3226 Change argument of pulongest from CORE_ADDR to ULONGEST.
3227 All callers updated.
3228 * utils.c (plongest): Renamed from paddr_d.
3229 (pulongest): Renamed from paddr_u, change arg type to ULONGEST.
3230 * remote-mips.c (send_srec): Use paddr_nz instead of paddr_u in
3231 `CORE_ADDR addr' arg of error message.
3233 2008-09-03 Angela Marie Thomas <angela@releasedominatrix.com>
3235 * ser-tcp.c (ser_tcp_send_break): New function.
3236 (_initialize_ser_tcp): Use ser_tcp_send_break.
3237 * ser-tcp.h (ser_tcp_send_break): New prototype.
3239 2008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
3241 * spu-tdep.c (spu_push_dummy_call): Update all stack pointer slots
3242 when allocating stack frame for inferior call.
3244 2008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
3246 * spu-tdep.c (spu_frame_unwind_cache): Do not attempt to unwind
3247 SP or return address if we failed to find a valid frame.
3249 2008-09-03 Aleksandar Ristovski <aristovski@qnx.com>
3251 * breakpoint.c (breakpoint_init_inferior): Mark as not inserted only
3252 non-permanent breakpoints.
3253 (bpstat_stop_status): Change enable_state to bp_disabled only for
3254 non-permanent breakpoints.
3255 (bp_loc_is_permanent): New function.
3256 (create_breakpoint): Check if the location points to a permanent
3257 breakpoint and if it does, make breakpoint permanent.
3258 (update_breakpoint_locations): Make sure new locations of permanent
3259 breakpoints are properly initialized.
3260 * i386-tdep.c (i386_skip_permanent_breakpoint): New function.
3261 (i386_gdbarch_init): Set gdbarch_skip_permanent_breakpoint.
3263 2008-09-02 Pedro Alves <pedro@codesourcery.com>
3265 * breakpoint.c (insert_breakpoints, update_global_location_list):
3266 Check breakpoints_always_inserted_mode instead of
3267 always_inserted_mode directly.
3269 2008-09-02 Andreas Schwab <schwab@suse.de>
3271 * ia64-tdep.c (ia64_get_dyn_info_list): Use obj_section_addr.
3273 2008-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3275 Stay compatible after the GCC PR fortran/29635 fix.
3276 * dwarf2read.c (process_die <DW_TAG_imported_module>)
3277 (process_die <DW_TAG_imported_module>): Do not assert anything about
3278 these unsupported tags.
3280 2008-08-29 Tom Tromey <tromey@redhat.com>
3282 * maint.c (_initialize_maint_cmds): Fix typo.
3284 2008-08-29 Tom Tromey <tromey@redhat.com>
3286 * dwarf2read.c (dwarf2_build_psymtabs_hard): Copy dirname on
3289 2008-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3291 * remote.c: Include "gdb_stat.h".
3293 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3295 * dummy-frame.h (dummy_frame_pop): Add prototype.
3296 * dummy-frame.c: Include "observer.h".
3297 (dummy_frame_push): Do not check for stale frames.
3298 (dummy_frame_pop): New function.
3299 (cleanup_dummy_frames): New function.
3300 (_initialize_dummy_frame): Install it as inferior_created observer.
3302 * frame.h (struct frame_id): Update comments.
3303 (frame_id_inner): Remove prototype.
3304 * frame.c (frame_id_inner): Make static. Add comments.
3305 (frame_find_by_id): Update frame_id_inner safety net check to avoid
3306 false positives for targets using non-contiguous stack ranges.
3307 (get_prev_frame_1): Update frame_id_inner safety net check.
3308 (frame_pop): Call dummy_frame_pop when popping a dummy frame.
3310 * stack.c (return_command): Directly pop the selected frame.
3311 * infrun.c (handle_inferior_event): Remove dead code.
3312 * i386-tdep.c (i386_push_dummy_call): Update comment.
3314 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3316 * breakpoint.c (remove_breakpoint): Do not fail if unable to remove
3317 breakpoint from shared library.
3319 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3321 * solib-svr4.c (read_program_header): New function.
3322 (scan_dyntag_auxv): New function.
3323 (elf_locate_base): Use it if scan_dyntag fails.
3324 (find_program_interpreter): New function.
3325 (enable_break): Use it instead of .interp section.
3327 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3329 * remote.h (remote_filename_p, remote_bfd_open): Add prototypes.
3330 * remote.c (remote_bfd_iovec_open, remote_bfd_iovec_close,
3331 remote_bfd_iovec_pread, remote_bfd_iovec_stat, remote_filename_p,
3332 remote_bfd_open): New functions.
3333 (remote_hostio_send_command): Fail safely if remote connection
3336 * solist.h (solib_open): Remove prototype.
3337 (solib_bfd_open): Add prototype.
3338 * solib.c: Include "remote.h".
3339 (solib_open): Remove, replace by ...
3340 (solib_bfd_open): ... this new function. Handle remote BFDs.
3341 (solib_map_sections): Replace solib_open by solib_bfd_open.
3342 * solib-frv.c: Include "exceptions.h".
3343 (enable_break2): Replace solib_open by solib_bfd_open.
3344 * solib-svr4.c: Include "exceptions.h".
3345 (enable_break): Replace solib_open by solib_bfd_open.
3347 * symfile.c: Include "remote.h".
3348 (build_id_verify): Handle remote BFDs.
3349 (separate_debug_file_exists): Use BFD to access file. Handle
3351 (symfile_bfd_open): Handle remote BFDs.
3352 (reread_symbols): Handle remote BFDs.
3354 * NEWS: Mention "remote:" argument prefix to "set sysroot".
3356 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3358 * gdbarch.sh (target_gdbarch): New global variable.
3359 (deprecated_current_gdbarch_select_hack): Set it.
3360 * gdbarch.c, gdbarch.h: Regenerate.
3362 * arch-utils.c (gdbarch_update_p): Use target_gdbarch instead
3364 * target-descriptions.c (target_find_description): Likewise.
3365 * arm-tdep.c (arm_update_current_architecture): Likewise.
3366 (show_fp_model, arm_show_abi, arm_show_fallback_mode,
3367 arm_show_force_mode): Likewise.
3368 * mips-tdep.c (show_mask_address, show_mipsfpu_command,
3369 show_mips_abi): Likewise.
3370 * mep-tdep.c (me_module_register_set, current_me_module): Likewise.
3372 * target.c (target_translate_tls_address): Use target_gdbarch
3373 instead of current_gdbarch.
3374 * remote.c (struct packet_reg): Likewise.
3375 (get_remote_arch_state, packet_reg_from_regnum,
3376 packet_reg_from_pnum, remote_check_symbols, remote_wait,
3377 remote_address_masked, remote_insert_breakpoint,
3378 remote_insert_hw_breakpoint, remote_read_description): Likewise.
3379 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
3380 * remote-mips.c (mips_open, mips_common_breakpoint): Likewise.
3381 * cris-tdep.c (cris_can_use_hardware_watchpoint): Likewise.
3383 * solib.c (solib_open, solib_map_sections, solib_read_symbols,
3384 solib_add, info_sharedlibrary_command, solib_address,
3385 solib_create_inferior_hook, in_solib_dynsym_resolve_code,
3386 solib_global_lookup): Likewise.
3387 * solib-frv.c (enable_break2, frv_relocate_main_executable): Likewise.
3388 * solib-irix.c (irix_current_sos, irix_open_symbol_file_object):
3390 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
3391 * solib-svr4.c (exec_entry_point, enable_break, svr4_free_so,
3392 set_solib_svr4_fetch_link_map_offsets, svr4_fetch_link_map_offsets):
3394 * nto-tdep.c (nto_find_and_open_solib, nto_init_solib_absolute_prefix,
3395 nto_truncate_ptr): Likewise.
3396 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Likewise.
3398 2008-08-26 Luis Machado <luisgpm@br.ibm.com>
3400 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections) New structure.
3401 (ppc_linux_vmx_regset_sections): New structure.
3402 (ppc_linux_fp_regset_sections): New structure.
3403 (ppc_linux_init_abi): Select core-file regset based on target
3406 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3408 * target.c (debug_print_register): Use regcache_raw_collect
3409 instead of regcache_cooked_read. Only handle raw registers.
3411 2008-08-25 Pedro Alves <pedro@codesourcery.com>
3413 * cp-name-parser.y: Include config.h before system headers.
3415 2008-08-25 Ulrich Weigand <uweigand@de.ibm.com>
3417 * m88k-tdep.c: Update for unwinder changes.
3419 2008-08-24 Tom Tromey <tromey@redhat.com>
3421 * s390-tdep.c (s390_address_class_type_flags): Use
3422 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1.
3423 (s390_address_class_type_flags_to_name): Likewise.
3424 (s390_address_class_name_to_type_flags): Likewise.
3426 2008-08-24 Tom Tromey <tromey@redhat.com>
3428 * rs6000-tdep.c (rs6000_builtin_type_vec128): Don't use
3430 * features/rs6000/powerpc-vsx32l.c
3431 (initialize_tdesc_powerpc_vsx32l): Update.
3432 * features/rs6000/powerpc-vsx32.c
3433 (initialize_tdesc_powerpc_vsx32): Update.
3434 * features/rs6000/powerpc-vsx64.c
3435 (initialize_tdesc_powerpc_vsx64): Update.
3436 * features/rs6000/powerpc-vsx64l.c
3437 (initialize_tdesc_powerpc_vsx64l): Update.
3438 * target-descriptions.c (maint_print_c_tdesc_cmd): Emit
3439 TYPE_VECTOR, not TYPE_FLAGS.
3441 2008-08-24 Tom Tromey <tromey@redhat.com>
3443 * xml-tdesc.c (tdesc_end_union): Update.
3444 * stabsread.c (define_symbol): Update.
3445 (read_type): Update.
3446 (read_struct_type): Update.
3447 (read_enum_type): Update.
3448 * spu-tdep.c (spu_builtin_type_vec128): Update.
3449 * sh-tdep.c (sh_push_dummy_call_fpu): Update.
3450 (sh_push_dummy_call_nofpu): Update.
3451 * mdebugread.c (parse_symbol): Update.
3452 (parse_symbol): Update.
3453 (parse_symbol): Update.
3454 (upgrade_type): Update.
3455 * jv-lang.c (java_lookup_class): Update.
3456 * iq2000-tdep.c (iq2000_pointer_to_address): Update.
3457 * i386-tdep.c (i386_mmx_type): Update.
3458 (i386_sse_type): Update.
3459 * gdbtypes.h (enum type_flag_value): New enum.
3460 (enum type_instance_flag_value): New enum.
3461 (TYPE_FLAG_UNSIGNED, TYPE_FLAG_NOSIGN, TYPE_FLAG_STUB,
3462 TYPE_FLAG_TARGET_STUB, TYPE_FLAG_STATIC, TYPE_FLAG_PROTOTYPED,
3463 TYPE_FLAG_INCOMPLETE, TYPE_FLAG_VARARGS, TYPE_FLAG_VECTOR,
3464 TYPE_FLAG_FIXED_INSTANCE, TYPE_FLAG_STUB_SUPPORTED,
3465 TYPE_FLAG_NOTTEXT): Now enum constants.
3466 (TYPE_FLAG_CONST, TYPE_FLAG_VOLATILE, TYPE_FLAG_CODE_SPACE,
3467 TYPE_FLAG_DATA_SPACE, TYPE_FLAG_ADDRESS_CLASS_1,
3468 TYPE_FLAG_ADDRESS_CLASS_2): Remove.
3469 (TYPE_INSTANCE_FLAG_CONST, TYPE_INSTANCE_FLAG_VOLATILE,
3470 TYPE_INSTANCE_FLAG_CODE_SPACE, TYPE_INSTANCE_FLAG_DATA_SPACE,
3471 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1,
3472 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_2): New constants.
3473 (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB, TYPE_TARGET_STUB,
3474 TYPE_STATIC, TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_VARARGS,
3475 TYPE_VECTOR, TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED,
3476 TYPE_NOTTEXT): Update.
3477 (TYPE_FLAG_ADDRESS_CLASS_ALL): Remove.
3478 (TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL): New define.
3479 (TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE,
3480 TYPE_ADDRESS_CLASS_1, TYPE_ADDRESS_CLASS_2,
3481 TYPE_ADDRESS_CLASS_ALL): Update.
3482 (struct main_type) <flags>: Remove.
3483 <flag_unsigned, flag_nosign, flag_stub, flag_target_stub,
3484 flag_static, flag_prototyped, flag_incomplete, flag_varargs,
3485 flag_vector, flag_stub_supported, flag_nottext,
3486 flag_fixed_instance>: New fields.
3487 <nfields, vptr_fieldno>: Move earlier.
3488 (TYPE_FLAGS): Remove.
3489 * gdbtypes.c (make_pointer_type): Update.
3490 (address_space_name_to_int): Update.
3491 (address_space_int_to_name): Update.
3492 (make_type_with_address_space): Update.
3493 (make_cv_type): Update.
3494 (create_range_type): Update.
3495 (get_discrete_bounds): Update.
3496 (create_set_type): Update.
3497 (make_vector_type): Update.
3498 (smash_to_method_type): Update.
3499 (check_typedef): Update.
3500 (check_stub_method): Update.
3501 (init_type): Individually assign flag fields.
3502 (recursive_dump_type): Don't print entire TYPE_FLAGS field. Do
3503 print TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED, and TYPE_NOTTEXT.
3504 (copy_type_recursive): Copy the entire main type. Don't use
3506 * features/rs6000/powerpc-altivec64l.c
3507 (initialize_tdesc_powerpc_altivec64l): Update.
3508 * features/rs6000/powerpc-altivec64.c
3509 (initialize_tdesc_powerpc_altivec64): Update.
3510 * features/rs6000/powerpc-altivec32l.c
3511 (initialize_tdesc_powerpc_altivec32l): Update.
3512 * features/rs6000/powerpc-altivec32.c
3513 (initialize_tdesc_powerpc_altivec32): Update.
3514 * features/rs6000/powerpc-7400.c (initialize_tdesc_powerpc_7400):
3516 * features/arm-with-iwmmxt.c (initialize_tdesc_arm_with_iwmmxt):
3518 * dwarf2read.c (read_structure_type): Update.
3519 (read_enumeration_type): Likewise.
3520 (process_enumeration_scope): Likewise.
3521 (read_tag_pointer_type): Likewise.
3522 (read_subroutine_type): Likewise.
3523 (read_subroutine_type): Likewise.
3524 (read_base_type): Likewise.
3525 * coffread.c (coff_read_enum_type): Update.
3526 * ada-valprint.c (adjust_type_signedness): Update.
3527 * ada-typeprint.c (print_record_field_types): Update.
3528 * ada-lang.c (packed_array_type): Update.
3529 (empty_record): Don't reset TYPE_FLAGS.
3530 (ada_template_to_fixed_record_type_1): Update.
3531 (ada_template_to_fixed_record_type_1): Likewise.
3532 (template_to_static_fixed_type): Likewise.
3533 (to_record_with_fixed_variant_part): Likewise.
3534 (to_fixed_record_type): Likewise.
3535 (to_fixed_array_type): Likewise.
3536 (to_static_fixed_type): Likewise.
3538 2008-08-23 Jim Blandy <jimb@redhat.com>
3541 * symmisc.c (print_symbol_bcache_statistics): Include statistics
3542 for the macro bcache.
3544 2008-08-23 Tom Tromey <tromey@redhat.com>
3546 * macrotab.h (struct macro_definition) <kind>: Shrink to one bit.
3547 (argc): Now 31 bits.
3549 2008-08-22 Tom Tromey <tromey@redhat.com>
3551 * NEWS: Move macro entries back under "New commands".
3553 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
3555 * breakpoint.c (create_overlay_event_breakpoint): Rename to ...
3556 (create_overlay_event_breakpoint_1): ... this. Add OBJFILE parameter.
3557 (create_overlay_event_breakpoint): Loop over all objfiles to install
3558 multiple instances of the overlay event breakpoint if present.
3560 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
3562 * spu-tdep.c (spu_overlay_new_objfile): Only consider SPU objfiles.
3563 (info_spu_event_command): Command only supported on SPU architecture.
3564 (info_spu_signal_command): Likewise.
3565 (info_spu_mailbox_command): Likewise.
3566 (info_spu_dma_command): Likewise.
3567 (info_spu_proxydma_command): Likewise.
3569 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
3571 * infrun.c (adjust_pc_after_break): Do not call get_thread_regcache
3572 if the thread has already exited.
3574 2008-08-22 Pedro Alves <pedro@codesourcery.com>
3576 * infrun.c (proceed): Move back setting previous_inferior_ptid
3578 (wait_for_inferior): ... to here.
3579 (fetch_inferior_event): ... and here.
3581 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
3583 * gdbarch.sh: Include "regcache.h" into gdbarch.c.
3584 (deprecated_current_gdbarch_select_hack): Call registers_changed
3585 instead of reinit_frame_cache.
3586 * gdbarch.c: Regenerate.
3588 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
3590 * elfread.c (elf_symtab_read): Do not relocate thread-local symbols.
3592 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3594 * xcoffread.c (SYMNAME_ALLOC): Correct syntax.
3596 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
3598 * findvar.c (locate_var_value): Do not call get_frame_arch
3599 with a NULL frame argument.
3601 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
3603 * frame.h (frame_map_regnum_to_name): Remove prototype.
3604 (frame_map_name_to_regnum): Remove prototype.
3605 * frame.c (frame_map_regnum_to_name): Remove.
3606 (frame_map_name_to_regnum): Remove.
3607 (frame_unwind_register_value): Use user_reg_map_regnum_to_name
3608 instead of frame_map_regnum_to_name.
3609 * ax-gdb.c: Include "user-regs.h".
3610 (gen_expr): Use user_reg_map_name_to_regnum instead of
3611 frame_map_name_to_regnum.
3612 * eval.c: Include "user-regs.h".
3613 (evaluate_subexp_standard): Use user_reg_map_name_to_regnum
3614 instead of frame_map_name_to_regnum.
3615 * infcmd.c (registers_info): Likewise.
3616 * parse.c: Include "user-regs.h".
3617 (write_dollar_variable): Use user_reg_map_name_to_regnum
3618 instead of frame_map_name_to_regnum.
3619 * tracepoint.c: Include "user-regs.h".
3620 (encode_actions): Use user_reg_map_name_to_regnum
3621 instead of frame_map_name_to_regnum.
3622 * valops.c: Include "user-regs.h".
3623 (value_fetch_lazy): Use user_reg_map_regnum_to_name instead
3624 of frame_map_regnum_to_name.
3626 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
3628 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Read
3629 and manually relocate .opd contents from BFD instead of reading
3630 them from target memory.
3632 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3634 * dwarf2read.c (processing_current_prefix): Delete static
3636 (process_full_comp_unit): Do not set processing_current_prefix.
3637 (dwarf2_full_name): New function.
3638 (read_func_scope): Do not set processing_current_prefix. Use
3640 (read_structure_type): Do not set processing_current_prefix. Remove
3641 unused inner cleanup.
3642 (process_structure_scope): Do not set processing_current_prefix.
3643 (read_enumeration_type): Use dwarf2_full_name.
3644 (determine_class_name): Return a const char *. Put the result
3645 on the objfile obstack. Use dwarf2_full_name.
3646 (read_namespace_type): New function.
3647 (read_namespace): Do not create the type here. Use
3649 (read_typedef): Use dwarf2_full_name. Do not pass the name
3651 (read_base_type): Do not pass the name to init_type. Handle
3653 (read_unspecified_type): Do not pass the name to init_type.
3654 (new_symbol): Use dwarf2_full_name instead of
3655 processing_current_prefix.
3656 (read_type_die): Do not set processing_current_prefix. Handle
3658 (determine_prefix): Handle specifications. Return the result
3659 on the objfile obstack. Handle unions correctly.
3661 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3663 * buildsym.c (add_symbol_to_list): Do not call
3664 cp_scan_for_anonymous_namespaces here.
3665 (finish_block): Do not call cp_set_block_scope here.
3666 * cp-namespace.c (processing_has_namespace_info)
3667 (processing_current_prefix): Delete.
3668 (cp_initialize_namespace): Do not initialize
3669 processing_has_namespace_info.
3670 (cp_scan_for_anonymous_namespaces): Use SYMBOL_DEMANGLED_NAME. Do
3671 not check processing_has_namespace_info.
3672 (cp_set_block_scope): Take prefix and namespace info flag as
3673 arguments. Honor namespaces regardless of a demangled name.
3674 * cp-support.h (processing_has_namespace_info)
3675 (processing_current_prefix): Delete declarations.
3676 (cp_set_block_scope): Update prototype.
3677 * dwarf2read.c (processing_has_namespace_info)
3678 (processing_current_prefix): New static variables.
3679 (read_file_scope): Initialize processing_has_namespace_info.
3680 (read_func_scope): Call cp_set_block_scope for C++.
3681 (new_symbol): Call cp_scan_for_anonymous_namespaces for C++.
3682 * symtab.c (symbol_demangled_name): Accept a const argument.
3683 * symtab.h (symbol_demangled_name): Update prototype.
3685 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3687 * ax-gdb.c (gen_var_ref): Use SYMBOL_LINKAGE_NAME.
3688 * blockframe.c (find_pc_partial_function): Likewise.
3689 * buildsym.c (find_symbol_in_list): Likewise.
3690 * c-valprint.c (c_val_print): Likewise.
3691 * coffread.c (patch_opaque_types, process_coff_symbol): Likewise.
3692 (coff_read_enum_type): Likewise. Use SYMBOL_SET_LINKAGE_NAME.
3693 * cp-support.c (cp_remove_params): Renamed from remove_params and
3695 (overload_list_add_symbol): Update call to remove_params.
3696 * cp-support.h (cp_remove_params): Declare.
3697 * dwarf2read.c (process_enumeration_scope): Use SYMBOL_LINKAGE_NAME.
3698 (dwarf2_const_value): Use SYMBOL_PRINT_NAME.
3699 * expprint.c (dump_subexp_body_standard): Likewise.
3700 * f-valprint.c (info_common_command, there_is_a_visible_common_named):
3701 Use SYMBOL_LINKAGE_NAME to find symbols and SYMBOL_PRINT_NAME
3703 * findvar.c (read_var_value): Use SYMBOL_LINKAGE_NAME.
3704 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
3705 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
3706 (hppa_hpux_skip_trampoline_code): Use SYMBOL_LINKAGE_NAME to find
3707 symbols and SYMBOL_PRINT_NAME for messages.
3708 * jv-lang.c (add_class_symbol): Use SYMBOL_SET_LINKAGE_NAME.
3709 * linespec.c (decode_line_2): Use SYMBOL_LINKAGE_NAME.
3710 * mdebugread.c (parse_symbol): Use SYMBOL_LINKAGE_NAME and
3711 SYMBOL_SET_LINKAGE_NAME.
3712 (mylookup_symbol): Use SYMBOL_LINKAGE_NAME.
3713 * minsyms.c (add_minsym_to_demangled_hash_table): Use
3715 (lookup_minimal_symbol): Use SYMBOL_LINKAGE_NAME or
3716 SYMBOL_MATCHES_SEARCH_NAME, depending on the pass.
3717 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Use SYMBOL_LINKAGE_NAME.
3718 * printcmd.c (build_address_symbolic): Use SYMBOL_LINKAGE_NAME.
3719 (address_info): Use SYMBOL_PRINT_NAME for messages and
3720 SYMBOL_LINKAGE_NAME for lookups.
3721 * sol-thread.c (info_cb): Use SYMBOL_PRINT_NAME for messages.
3722 * stabsread.c (patch_block_stabs, define_symbol)
3723 (read_type, read_enum_type, common_block_end)
3724 (cleanup_undefined_types_1, scan_file_globals): Use
3725 SYMBOL_LINKAGE_NAME, SYMBOL_SET_LINKAGE_NAME, ALL_OBJFILE_MSYMBOLS,
3726 and SYMBOL_PRINT_NAME.
3727 * stack.c (print_frame_args): Use SYMBOL_LINKAGE_NAME.
3728 (print_frame, frame_info): Use SYMBOL_PRINT_NAME for output. Use
3729 cp_remove_params instead of cplus_demangle.
3730 (print_block_frame_labels, print_frame_arg_vars): Use
3731 SYMBOL_LINKAGE_NAME.
3732 * symmisc.c (dump_msymbols): Use ALL_OBJFILE_MSYMBOLS and
3733 SYMBOL_LINKAGE_NAME.
3734 (dump_symtab_1, print_symbol, print_partial_symbols)
3735 (maintenance_check_symtabs): Use SYMBOL_LINKAGE_NAME.
3736 * symtab.h (DEPRECATED_SYMBOL_NAME): Delete.
3737 (SYMBOL_SET_LINKAGE_NAME): New.
3738 (SYMBOL_SET_NAMES): Add a comment.
3739 * tracepoint.c (set_traceframe_context, validate_actionline)
3740 (collect_symbol, scope_info): Use SYMBOL_LINKAGE_NAME for
3741 lookups and SYMBOL_PRINT_NAME for output.
3742 * typeprint.c (typedef_print): Use SYMBOL_LINKAGE_NAME.
3743 * xcoffread.c (process_xcoff_symbol): Use SYMBOL_SET_LINKAGE_NAME.
3745 2008-08-21 Pedro Alves <pedro@codesourcery.com>
3747 * arm-tdep.c (arm_pc_is_thumb): Use obj_section_addr.
3748 * hppa-hpux-tdep.c (hppa_hpux_find_dummy_bpaddr): Likewise.
3749 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Use
3750 obj_section_addr and obj_section_endaddr.
3751 * hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Likewise.
3752 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
3753 * ia64-tdep.c (ia64_find_global_pointer): Likewise.
3754 (find_extant_func_descr): Likewise.
3755 * solib-frv.c (frv_relocate_main_executable): Use
3757 * xstormy16-tdep.c (xstormy16_find_jmp_table_entry): Use
3758 obj_section_addr and obj_section_endaddr.
3760 2008-08-21 Paul N. Hilfinger <hilfinger@adacore.com>
3762 * NEWS: Amplify last entry on boolean types in Ada.
3764 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3766 * dwarf2read.c (die_specification, dwarf2_extension, follow_die_ref):
3767 Make the dwarf2_cu * parameter output as well as input. Update it if
3768 we follow a reference to another CU.
3769 (read_func_scope, determine_class_name, namespace_name, dwarf2_attr)
3770 (die_type, die_containing_type): Update calls to changed functions.
3771 Use the returned CU along with the returned DIE.
3772 (read_namespace): Use dwarf2_attr instead of dwarf2_extension.
3774 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3776 * dwarf2read.c (queue_comp_unit): Take an objfile argument. Read
3778 (process_queue): Do not read in the DIEs here.
3779 (psymtab_to_symtab_1): Update call to queue_comp_unit.
3780 (read_full_die): Do not call queue_comp_unit from here.
3781 (maybe_queue_comp_unit): New function.
3782 (follow_die_ref): Use it.
3784 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3786 * dwarf2read.c (struct attribute): Move earlier.
3787 (struct die_info): Change attrs to a trailing array.
3788 (dwarf_alloc_die): Take the number of attributes. Allocate space
3790 (read_full_die): Update call to dwarf_alloc_die. Do not manually
3791 allocate attributes.
3793 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3795 * dwarf2read.c (REF_HASH_SIZE): Delete.
3796 (struct dwarf2_cu): Replace die_ref_table with die_hash.
3797 (struct die_info): Remove next_ref.
3798 (store_in_ref_table): Remove offset argument. Rewrite to use
3799 htab_find_slot_with_hash.
3800 (die_hash, die_eq): New.
3801 (read_comp_unit): Allocate the die_hash.
3802 (read_die_and_children): Update call to store_die_ref.
3803 (follow_die_ref): Rewrite to use htab_find_with_hash.
3805 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3807 * dwarf2read.c (free_die_list, copy_die): Delete.
3808 (dwarf_alloc_die): Take a CU argument. Allocate the new DIE
3810 (read_full_die): Update call to dwarf_alloc_die. Allocate
3811 attributes on the CU obstack.
3812 (free_one_comp_unit): Do not call free_die_list.
3814 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3816 * dwarf2read.c (read_die_and_children): Ignore NULL DIEs.
3817 (read_die_and_siblings): Likewise. Do not add padding DIEs to the
3819 (read_full_die): Do not allocate DIEs for abbrev 0.
3820 (follow_die_ref): Correct error message.
3822 2008-08-20 Pedro Alves <pedro@codesourcery.com>
3824 * linespec.c (symtab_from_filename): Also throw NOT_FOUND_ERROR if
3825 there are no symbols loaded, instead of throwing a generic error.
3826 (decode_variable): Likewise.
3828 2008-08-20 Pedro Alves <pedro@codesourcery.com>
3830 * objfiles.h (struct obj_section): Remove addr and endaddr fields.
3831 (obj_section_offset, obj_section_addr, obj_section_endaddr): New
3833 * objfiles.c (add_to_objfile_sections): Don't set addr, endaddr
3834 and offset. Use size_t instead of unsigned long.
3835 (build_objfile_section_table): Use size_t instead of unsigned
3837 (objfile_relocate): Don't relocate s->addr and s->endaddr, they're
3839 (find_pc_sect_section): Use obj_section_addr and
3840 obj_section_endaddr.
3841 * symfile.c (symfile.c): Remove code that maps sections
3842 offsets in "addr" to the object's sections.
3843 * blockframe.c (find_pc_partial_function): Use obj_section_endaddr.
3844 * gcore.c (gcore_create_callback): Use obj_section_addr and
3845 obj_section_endaddr.
3846 * maint.c (print_objfile_section_info): Likewise.
3847 * printcmd.c (sym_info): Use obj_section_addr and
3848 obj_section_endaddr.
3849 * symtab.c (fixup_section): Likewise.
3851 2008-08-20 Mark Kettenis <kettenis@gnu.org>
3853 * sparc-tdep.c: Make some comments catch up with reality.
3855 2008-08-20 Vladimir Prus <vladimir@codesourcery.com>
3857 * NEWS: Mention 'set target-async'
3859 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
3861 * infrun.c (resume): If the thread is placed to the deferred step
3862 queue, mark it as running.
3864 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
3866 Make sure target supports non-stop.
3867 * infcmd.c (run_command_1, attach_command): If non-stop mode
3868 is requested, verify the target supports it.
3869 * linux-nat.c (linux_nat_supports_non_stop): New.
3870 (linux_nat_add_target): Register the above.
3871 * target.c (find_default_supports_non_stop)
3872 (target_supports_non_stop): New.
3873 (init_dummy_target): Register find_default_supports_non_stop.
3874 * target.h (struct target_ops): New field to_supports_non_stop.
3875 (target_supports_non_stop): New.
3877 2008-08-19 Pedro Alves <pedro@codesourcery.com>
3878 Vladimir Prus <vladimir@codesourcery.com>
3880 * target.c (target_async_permitted, target_async_permitted_1)
3881 (set_maintenance_target_async_permitted)
3882 (show_maintenance_target_async_permitted): New.
3883 (initialize_targets): Register 'set target-async'.
3884 * target.h (target_async_permitted): Declare.
3885 * linux-nat.c (linux_nat_async_enabled)
3886 (linux_nat_async_permitted, set_maintenance_linux_async_permitted)
3887 (show_maintenance_linux_async_permitted): Remove.
3888 (sigchld_handler, linux_nat_is_async_p, linux_nat_can_async_p)
3889 (get_pending_events, linux_nat_async): Use target_async_permitted.
3890 (linux_nat_set_async_mode): Remove, moving the only used bits
3892 (linux_nat_setup_async): This.
3893 (_initialize_linux_nat): Do not register 'maint set linux-async'.
3894 Use linux_nat_setup_async.
3895 * remote.c (remote_async_permitted, remote_async_permitted_set)
3896 (set_maintenance_remote_async_permitted)
3897 (show_maintenance_remote_async_permitted): Remove.
3898 (remote_open_1, remote_terminal_inferior, remote_can_async_p)
3899 (remote_is_async_p): Use target_async_permitted.
3900 (_initialize_remote): Don't register 'main set remote-async'.
3901 * mi/mi-cmds.c (mi_cmds): Register -list-target-features.
3902 * mi/mi-cmds.h (mi_cmd_list_target_features): New.
3903 * mi/mi-main.c (mi_cmd_list_target_features): New.
3905 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
3907 * target.c (maybe_kill_then_attach)
3908 (maybe_kill_then_create_inferior): Remove.
3909 (update_current_target): Do not default to_attach,
3910 to_create_inferiour, to_is_async_p.
3912 2008-08-19 Paul N. Hilfinger <hilfinger@adacore.com>
3914 Changes for supporting boolean types in debugging data.
3915 * ada-lang.c (discrete_type_high_bound,discrete_type_low_bound): Change
3916 API to return LONGEST values rather than struct values.
3917 (ada_evaluate_subexp): Change to use new API of discrete_type_low_bound
3918 and discrete_type_high_bound.
3919 (to_fixed_range_type): Create a range type in cases where
3920 argument is base type and its limits are representable as ints.
3921 (ada_is_modular_type): Correct so that base type must be integral.
3922 * ada-lex.l (TRUEKEYWORD,FALSEKEYWORD): Make 'true' and 'false'
3923 keywords when they appear alone, since we are phasing out
3924 direct representation of these identifiers in debugging data.
3925 * ada-exp.y: Define 'true' and 'false' as primaries.
3926 (type_boolean): New function.
3927 (type_int,type_long,type_long_long,type_floattype_double)
3928 (type_long_double): Remove uses of current_gdbarch for consistency
3930 (write_int): Change comment to indicate that it might write boolean
3932 * ada-typeprint.c (ada_print_type): Print '(false, true)' for boolean
3933 type, since will no longer be represented as enumerated type in
3935 * ada-valprint.c (print_optional_low_bound): Handle boolean case
3937 * NEWS: Note support boolean types.
3939 2008-08-18 Pedro Alves <pedro@codesourcery.com>
3941 * bsd-uthread.c (bsd_uthread_close): New.
3942 (bsd_uthread_deactivate): Don't cleanup here, just unpush the
3944 (bsd_uthread_solib_loaded): Fix typo.
3945 (bsd_uthread_target): Register bsd_uthread_close.
3947 2008-08-18 Pedro Alves <pedro@codesourcery.com>
3949 * corelow.c (core_open): Assume there was no upper layer left
3950 behind from a previous inferior.
3951 * target.c (pop_all_targets): Rename to ...
3952 (pop_all_targets_above): ... this. Add a target stratum
3953 parameter. Use it instead of hardcoding the dummy_stratum.
3954 (pop_all_targets): New, defer to pop_all_targets_above.
3955 (target_preopen): Use pop_all_targets_above.
3956 * target.h (pop_all_targets_above): Declare.
3958 2008-08-18 Pedro Alves <pedro@codesourcery.com>
3960 * gdbthread.h (thread_change_ptid): Declare.
3961 * infrun.c (infrun_thread_ptid_changed): New.
3962 (_initialize_infrun): Attach infrun_thread_ptid_changed to the
3963 thread_ptid_changed observer.
3964 * regcache.c (regcache_thread_ptid_changed): New.
3965 (_initialize_regcache): Attach regcache_thread_ptid_changed to the
3966 thread_ptid_changed observer.
3967 * thread.c (thread_change_ptid): New.
3969 2008-08-18 Tom Tromey <tromey@redhat.com>
3971 * symfile.c (reread_symbols): Update.
3972 * solib-sunos.c (allocate_rt_common_objfile): Update.
3973 * objfiles.c (allocate_objfile): Update.
3974 * objfiles.h (struct objfile) <md, mmfd, deprecated_obj_private>:
3977 2008-08-18 Tom Tromey <tromey@redhat.com>
3979 * gdbtypes.c (copy_type_recursive): Allocate 'stored' on objfile's
3982 2008-08-18 Daniel Jacobowitz <dan@codesourcery.com>
3984 * rs6000-tdep.c (struct rs6000_framedata): Add gpr_mask, used_bl,
3986 (rs6000_in_function_epilogue_p): Check for bctr.
3987 (skip_prologue): Initialize lr_register. Set lr_reg to a register
3988 number. Set gpr_mask and used_bl. Continue scanning while some
3989 expected registers are not saved. Set lr_register if LR is not
3991 (rs6000_frame_cache): Handle gpr_mask and lr_register.
3993 2008-08-17 Tom Tromey <tromey@redhat.com>
3996 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): New macros.
3997 (ep_find_event_name_end): Remove.
3998 (catch_fork_temporary, catch_vfork_temporary,
3999 catch_fork_permanent, catch_vfork_permanent): New constants.
4000 (catch_vfork, catch_fork): Remove.
4001 (catch_fork_command_1): Add 'command' argument. Remove
4002 'fork_kind' and 'tempflag'. Handle NULL 'arg'. Update switch for
4004 (catch_exec_command_1): Add 'command' argument; remove
4005 'tempflag'. Handle NULL 'arg'.
4006 (catch_load_command_1): Likewise.
4007 (catch_unload_command_1): Likewise.
4008 (catch_ada_exception_command): Likewise.
4009 (catch_assert_command): Likewise.
4010 (catch_catch_command): New function.
4011 (catch_throw_command): Likewise.
4012 (catch_command_1): Remove.
4013 (catch_command): Just call error.
4014 (tcatch_command): Likewise.
4015 (catch_cmdlist): New global.
4016 (tcatch_cmdlist): Likewise.
4017 (add_catch_command): New function.
4018 (_initialize_breakpoint): Create "catch" and "tcatch" as prefix
4019 commands. Create all catch sub-commands.
4021 2008-08-17 Pedro Alves <pedro@codesourcery.com>
4023 * gdbthread.h: Add comments.
4024 * stack.c (get_selected_block): Return 0 on an exited thread.
4025 * top.c (execute_command): Check for is_stopped, not !is_running.
4026 * event-top.c (command_handler): Likewise.
4028 2008-08-16 Pedro Alves <pedro@codesourcery.com>
4030 * mi/mi-main.c (mi_cmd_exec_next, mi_cmd_exec_next_instruction)
4031 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
4032 (mi_cmd_exec_finish): Remove "return".
4034 2008-08-16 Pedro Alves <pedro@codesourcery.com>
4036 * target.h (pop_all_targets): Declare.
4037 * target.c (pop_all_targets): New.
4038 * top.c (quit_target): Pop all targets instead of just closing the
4041 2008-08-16 Vladimir Prus <vladimir@codesourcery.com>
4042 Thiago Jung Bauermann <bauerman@br.ibm.com>
4044 * cli-script.c (read_next_line): Add parse_commands argument.
4045 (recurse_read_control_structure): Adapt to new read_next_line
4047 (read_command_lines): Add parse_commands argument.
4048 (define_command): Adapt to new read_command_lines signature.
4049 (document_command): Likewise.
4050 * breakpoint.c (commands_command): Likewise.
4051 * defs.h (read_command_lines): Adjust function prototype.
4053 2008-08-16 Paul N. Hilfinger <hilfinger@adacore.com>
4055 * ada-lang.c (pos_atr): Account for the possibility that the
4056 argument may be a reference.
4058 2008-08-16 Paul N. Hilfinger <hilfingr@adacore.com>
4060 * xcoffread.c (scan_xcoff_symtab): Do not include global symbols
4061 ('F' format) for @FIX names generated by the loader, retaining only
4062 the minimal symbols (and no partial symbol tables) for these names.
4063 Fixes warning messages about symbols that are found in partial
4064 symbol tables, but not full symbol tables.
4066 2008-08-16 Pedro Alves <pedro@codesourcery.com>
4068 * infrun.c (fetch_inferior_event): Only call normal_stop if not
4071 2008-08-15 Luis Machado <luisgpm@br.ibm.com>
4073 * rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c".
4074 Include "features/rs6000/powerpc-vsx64.c".
4075 (ppc_supply_vsxregset): New function.
4076 (ppc_collect_vsxregset): New function.
4077 (IS_VSX_PSEUDOREG): New macro.
4078 (IS_EFP_PSEUDOREG): New macro.
4079 (vsx_register_p): New function.
4080 (ppc_vsx_support_p): New function.
4081 (rs6000_builtin_type_vec128): New function.
4082 (rs6000_register_name): Hide upper halves of vs0~vs31. Return
4083 correct names for VSX registers and EFPR registers.
4084 (rs6000_pseudo_register_type): Return correct types for VSX
4086 (rs6000_pseudo_register_reggroup_p): Return correct group for
4087 VSX and EFPR registers.
4088 (ppc_pseudo_register_read): Rename to dfp_pseudo_register_read.
4089 (ppc_pseudo_register_write): Rename to dfp_pseudo_register_write.
4090 (vsx_pseudo_register_read): New function.
4091 (vsx_pseudo_register_write): New function.
4092 (efpr_pseudo_register_read): New function.
4093 (efpr_pseudo_register_write): New function.
4094 (rs6000_pseudo_register_read): Call new VSX and EFPR read functions.
4095 (rs6000_pseudo_register_write): Call new VSX and EFPR write functions.
4096 (rs6000_gdbarch_init): Declare have_vsx.
4097 Initialize new upper half VSX registers.
4098 Initialize VSX-related and EFPR-related pseudo-registers variables.
4099 Adjust the number of pseudo registers accordingly.
4101 * ppc-linux-nat.c: Define PTRACE_GETVSXREGS, PTRACE_SETVSXREGS
4103 (gdb_vsxregset_t): New type.
4104 (have_ptrace_getsetvsxregs): New variable.
4105 (fetch_vsx_register): New function.
4106 (fetch_register): Handle VSX registers.
4107 (fetch_vsx_registers): New function.
4108 (fetch_ppc_registers): Handle VSX registers.
4109 (store_ppc_registers): Handle VSX registers.
4110 (store_vsx_register): New function.
4111 (store_register): Handle VSX registers.
4112 (store_vsx_registers): New function.
4113 (ppc_linux_read_description): Handle VSX-enabled inferiors.
4114 (gdb_vsxregset_t): New type.
4115 (supply_vsxregset): New function.
4116 (fill_vsxregset): New function.
4118 * ppc-tdep.h (vsx_register_p): New prototype.
4119 (vsx_support_p): New prototype.
4120 (ppc_vsr0_regnum): New variable.
4121 (ppc_vsr0_upper_regnum): Likewise.
4122 (ppc_efpr0_regnum): Likewise.
4123 (ppc_builtin_type_vec128): New type.
4124 (ppc_num_vsrs): New constant.
4125 (ppc_num_vshrs): New constant.
4126 (ppc_num_efprs): Likewise.
4127 Define POWERPC_VEC_VSX PPC_VSR0_UPPER_REGNUM and PPC_VSR31_UPPER_REGNUM.
4128 (ppc_supply_vsxregset): New prototype.
4129 (ppc_collect_vsxregset): New prototype.
4131 * ppc-linux-tdep.c: Include "features/rs6000/powerpc-vsx32l.c"
4132 Include "features/rs6000/powerpc-vsx64l.c".
4133 (_initialize_ppc_linux_tdep): Initialize VSX-enabled targets.
4134 (ppc_linux_regset_sections): Add new ".reg-ppc-vsx" field.
4135 (ppc32_linux_vsxregset): New 32-bit VSX-enabled regset.
4136 (ppc_linux_regset_from_core_section): Handle VSX core section.
4137 (ppc_linux_core_read_description): Support VSX-enabled core files.
4139 * ppc-linux-tdep.h: Declare *tdesc_powerpc_vsx32l
4140 Declare tdesc_powerpc_vsx64l
4142 * corelow.c (get_core_register_section): Support VSX-enabled
4145 * features/rs6000/power-vsx.xml: New VSX descriptions.
4146 * features/rs6000/powerpc-vsx32.xml: New file.
4147 * features/rs6000/powerpc-vsx32l.xml: New file.
4148 * features/rs6000/powerpc-vsx64.xml: New file.
4149 * features/rs6000/powerpc-vsx64l.xml: New file.
4150 * features/rs6000/powerpc-vsx32.c: New file (generated).
4151 * features/rs6000/powerpc-vsx32l.c: New file (generated).
4152 * features/rs6000/powerpc-vsx64.c: New file (generated).
4153 * features/rs6000/powerpc-vsx64l.c: New file (generated).
4154 * features/Makefile: Updated with new descriptions.
4155 * regformats/rs6000/powerpc-vsx32l.dat: New file (generated).
4156 * regformats/rs6000/powerpc-vsx64l.dat: New file (generated).
4158 2008-08-15 Vladimir Prus <vladimir@codesourcery.com>
4160 * ia64-linux.nat (_initialize_ia64_linux_nat): Don't
4161 call linux_target twice.
4163 2008-08-14 Aleksandar Ristovski <aristovski@qnx.com>
4165 * nto-tdep.c (lm_info): Updated struct lm_info definition from
4167 (LM_ADDR): Use l_addr if available; if not, use link map and set
4170 2008-08-14 Tom Tromey <tromey@redhat.com>
4172 * macrocmd.c (macro_define_command): Check for NULL argument.
4173 (macro_undef_command): Likewise.
4175 2008-08-14 Pedro Alves <pedro@codesourcery.com>
4177 * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call.
4179 2008-08-13 Pedro Alves <pedro@codesourcery.com>
4181 * breakpoint.c (always_inserted_auto, always_inserted_on)
4182 (always_inserted_off, always_inserted_enums): New.
4183 (always_inserted_mode): Change type to char* and point to
4184 always_inserted_auto.
4185 (show_always_inserted_mode): In auto mode, also show the current
4186 effect of the option.
4187 (breakpoints_always_inserted_mode): Adjust for the new auto mode.
4188 (_initialize_breakpoint): Make the "set breakpoints
4189 always-inserted" command an enum command. Extend help to describe
4192 2008-08-13 Ulrich Weigand <uweigand@de.ibm.com>
4194 * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
4195 query valid) bit. Ignore bits outside the condition field.
4196 (info_spu_proxydma_command): Ignore bits outside the field.
4198 2008-08-12 Michael Snyder <msnyder@vmware.com>
4200 * MAINTAINERS: Update my email address.
4202 2008-08-12 Ulrich Weigand <uweigand@de.ibm.com>
4204 * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP.
4206 2008-08-12 Pedro Alves <pedro@codesourcery.com>
4208 Add no-ack mode to the remote protocol --- optionally stop ACKing
4209 packets and responses when we have a reliable communication
4212 Based on Apple's GDB, by Jason Molenda <jmolenda@apple.com>
4214 * remote.c (struct remote_state): Add noack_mode field.
4215 (PACKET_QStartNoAckMode): New.
4216 (remote_start_remote): Don't any outstanding packet here.
4217 (remote_open_1): Clear noack_mode. Ack any outstanding packet
4218 here. Activate noack mode if requested.
4219 (remote_protocol_features): Add QStartNoAckMode.
4221 (putpkt_binary): Don't send ack in noack mode.
4222 (read_frame): Don't recompute the checksum in noack mode.
4223 (getpkt_sane): Skip sending ack if in noack mode.
4224 (_initialize_remote): Add set/show remote noack mode.
4225 * NEWS: Note the new features.
4227 2008-08-11 Kevin Buettner <kevinb@redhat.com>
4229 * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK):
4231 (rs6000_skip_main_prologue): New function.
4232 (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue.
4234 2008-08-11 Sandra Loosemore <sandra@codesourcery.com>
4236 * MAINTAINERS (Write After Approval): Add self.
4238 2008-08-11 Stan Shebs <stan@codesourcery.com>
4241 * disasm.c (gdb_disassemble_info): Set endian_code.
4242 * gdbarch.sh (gdbarch_info): New field byte_order_for_code.
4243 * gdbarch.h, gdbarch.c: Regenerate.
4244 * arch-utils.c (initialize_current_architecture): Set the
4245 default byte_order_for_code.
4246 (gdbarch_info_init): Ditto.
4247 (gdbarch_info_fill): Ditto.
4248 * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros.
4249 (thumb_analyze_prologue): Swap halfword if code endianness is
4250 different from general endianness.
4251 (arm_skip_prologue): Similarly.
4252 (arm_scan_prologue): Ditto.
4253 (thumb_get_next_pc): Ditto.
4254 (arm_get_next_pc): Ditto.
4255 (arm_gdbarch_init): Set byte_order_for_code from BE8 flag,
4256 choose correct endianness for breakpoints.
4258 2008-08-10 Pedro Alves <pedro@codesourcery.com>
4260 * bsd-kvm.c: Include "gdbthread.h".
4261 (bsd_kvm_ptid): New.
4262 (bsd_kvm_open): Add a main thread.
4263 (bsd_kvm_close): Delete it.
4264 (bsd_kvm_thread_alive): New.
4265 (bsd_kvm_pid_to_str): New.
4266 (bsd_kvm_add_target): Register bsd_kvm_thread_alive and
4268 (bsd_kvm_add_target): Initialize bsd_kvm_ptid.
4270 2008-08-09 Pedro Alves <pedro@codesourcery.com>
4272 * buildsym.c (start_subfile): Properly cast sentinel in concat
4274 * cp-name-parser.y: Include "config.h".
4275 * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in
4277 * gdb_select.h: Include sys/time.h if sys/select.h is not
4280 2008-08-09 Pedro Alves <pedro@codesourcery.com>
4282 * go32-nat.c: Include "gdbthread.h".
4283 (go32_stop, go32_kill_inferior): Delete the main thread.
4284 (go32_create_inferior): Add it.
4285 (go32_thread_alive, go32_pid_to_str): New.
4286 (init_go32_ops): Register go32_thread_alive and go32_pid_to_str.
4288 2008-08-09 Pedro Alves <pedro@codesourcery.com>
4290 * go32-nat.c (fetch_register, store_register): Pass the regcache
4291 gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p.
4292 (go32_xfer_memory): Change type of myaddr parameter to gdb_byte.
4293 (struct seg_descr, struct seg_descr): pack the whole struct
4294 instead of each member individually.
4296 2008-08-09 Andreas Schwab <schwab@suse.de>
4298 * python/python.c (_initialize_python): Use unabbreviated commands
4301 2008-08-09 Daniel Jacobowitz <dan@codesourcery.com>
4303 * Makefile.in (stamp-h): Also create .deps.
4305 2008-08-09 Tom Tromey <tromey@redhat.com>
4307 * Makefile.in (generated_files): Add GNULIB_H.
4309 2008-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4311 * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set
4312 DT_HP_DEBUG_PRIVATE. Add warning if DT_HP_DEBUG_PRIVATE is not set.
4314 (pa64_current_sos): Remove map private warning warning.
4315 * solib-som.c: Include string.h and sys/utsname.h.
4316 (get_hpux_major_release): New function.
4317 (som_solib_create_inferior_hook): Read dynamic linker header. Warn
4318 about shared library private mapping on HP-UX 11 and later. Only force
4319 private mapping of shared libraries on HP-UX 10 and earlier.
4320 (link_map_start): Delete warning.
4322 2008-08-09 Xuepeng Guo <xuepeng.guo@intel.com>
4323 H.J. Lu <hongjiu.lu@intel.com>
4324 Mark Kettenis <kettenis@gnu.org>
4326 * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg.
4327 (amd64_init_frame_cache): Initialize saved_sp_reg.
4328 (amd64_analyze_stack_align): New.
4329 (amd64_analyze_prologue): Call it.
4330 (amd64_frame_cache): Use saved_sp_reg if it is invalid. Don't set
4331 %rip to 8 when halfway aligning the stack.
4333 * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to
4336 * i386-tdep.c (i386_frame_cache): Remove stack_align. Add
4338 (i386_alloc_frame_cache): Remove stack_align. Initialize
4340 (i386_analyze_stack_align): Rewrite.
4341 (i386_frame_cache): Use saved_sp_reg if it is valid.
4343 2008-08-09 Ulrich Weigand <uweigand@de.ibm.com>
4345 * target.c: Include "solib.h".
4346 (target_pre_inferior): Call no_shared_libraries.
4347 * infcmd.c (run_command_1): Do not call objfile_purge_solibs
4349 (attach_command): Do not call clear_solib.
4351 2008-08-09 Mark Kettenis <kettenis@gnu.org>
4353 * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
4356 2008-08-08 Tom Tromey <tromey@redhat.com>
4358 * Makefile.in (python.o): Remove dependencies. Use COMPILE and
4360 (python-utils.o): Likewise.
4362 2008-08-08 Andreas Schwab <schwab@suse.de>
4364 * corefile.c (_initialize_core): Remove spurious paren from set
4365 gnutarget doc string.
4367 2008-08-08 Luis Machado <luisgpm@br.ibm.com>
4369 * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h".
4370 Define PPC_FEATURE_BOOKE.
4371 (ppc_linux_get_hwcap): New function.
4372 (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440
4373 4-bytes alignment restrictions.
4374 (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific
4375 positioning of the read/write flags.
4376 (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440
4379 2008-08-08 Pedro Alves <pedro@codesourcery.com>
4381 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
4383 * win32-nat.c (win32_add_thread): Change thread argument type to
4385 (win32_add_thread): Adjust.
4386 (win32_delete_thread): Change thread argument type to ptid_t.
4388 (win32_fetch_inferior_registers, win32_store_inferior_registers)
4389 (win32_resume, get_win32_debug_event, get_win32_debug_event)
4390 (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust.
4391 (init_win32_ops): Put to_magic last.
4392 (win32_win32_thread_alive): Adjust.
4394 2008-08-08 Pedro Alves <pedro@codesourcery.com>
4396 * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New.
4397 (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str.
4399 2008-08-08 Pedro Alves <pedro@codesourcery.com>
4401 * remote-m32r-sdi.c: Include "gdbthread.h".
4402 (remote_m32r_ptid): New.
4403 (m32r_close): Delete the main thread.
4404 (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the
4406 (m32r_kill, m32r_load, sdireset_command): Delete the main thread.
4407 (_initialize_remote_m32r): Initialize remote_m32r_ptid.
4409 2008-08-07 Tom Tromey <tromey@redhat.com>
4410 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4412 * aclocal.m4, configure: Rebuild.
4413 * configure.in: Call ZW_CREATE_DEPDIR,
4414 ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
4415 (MAKE, GMAKE): New substs.
4416 * acinclude.m4: Include depstand.m4.
4417 * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
4418 COMPILE, POSTCOMPILE, depcomp): New variables.
4419 Remove all _h variables.
4420 Remove many .o targets.
4421 ($(srcdir)/copying.c): avoid backslash-newline after comment
4422 sign (@maintainer_mode_true@).
4423 (HFILES_NO_SRCDIR): Regenerate.
4424 (generated_files): New variable.
4425 (all_gdbtk_cflags): Likewise.
4427 (init.o, version.o, copying.o): Remove.
4428 (distclean): Remove DEPDIR.
4429 (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
4430 printcmd.o, procfs.o, v850ice.o): Rewrite.
4431 (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
4432 cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
4433 (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
4434 gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
4435 gdbtk-wrapper.o): Likewise.
4436 (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
4437 mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
4438 mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
4439 mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
4440 tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
4441 tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
4442 tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
4443 tui-wingeneral.o, tui-winsource.o): Likewise.
4444 (all_object_files): New variable.
4445 ($(all_object_files)): New target.
4446 Include dependency files, when using GNU Make.
4448 2008-08-07 Ulrich Weigand <uweigand@de.ibm.com>
4450 * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with
4451 the valid bit set. Ensure display order respects partial
4452 order defined by dependency bits.
4454 2008-08-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4456 * solib-pa64.c (read_dld_descriptor): Return zero if load map is not
4459 2008-08-06 Mark Kettenis <kettenis@gnu.org>
4461 * i386obsd-nat.c (i386obsd_supply_pcb): Adjust for changes in
4464 2008-08-06 Vladimir Prus <vladimir@codesourcery.com>
4465 Tom Tromey <tromey@redhat.com>
4466 Thiago Jung Bauermann <bauerman@br.ibm.com>
4467 Doug Evans <dje@google.com>
4469 * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS,
4470 SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS,
4471 PYTHON_CFLAGS): New.
4472 (python_h, python_internal_h): New.
4473 (cli-script.o): Depend on python.h
4474 (python.o, python-utils.o): New.
4475 * cli/cli-script.c (print_command_lines): Handle python_control.
4476 (execute_control_command): Handle python_control.
4477 (execute_control_command_untraced): New function.
4478 (while_command): Call execute_control_command_untraced.
4479 (if_command): Likewise.
4480 (get_command_line): Remove static attribute.
4481 (read_next_line): Handle "python".
4482 (recurse_read_control_structure): Handle python_control.
4483 (read_command_lines): Handle python_control.
4485 * cli/cli-script.h (get_command_line): Add prototype.
4486 (execute_control_command_untraced): Likewise.
4487 * configure.ac: Add --with-python.
4488 * defs.h (enum command_control_type) <python_control>: New
4490 * python/python-internal.h: New file.
4491 * python/python.c: New file.
4492 * python/python.h: New file.
4493 * python/python-utils.c: New file.
4494 * NEWS: Mention Python scripting support and its new commands.
4496 2008-08-06 Ulrich Weigand <uweigand@de.ibm.com>
4498 * spu-tdep.c (spu_gdbarch_init): Call set_gdbarch_frame_red_zone_size.
4500 2008-08-06 Phil Muldoon <pmuldoon@redhat.com>
4502 * MAINTAINERS (Write After Approval): Add self.
4504 2008-08-06 Phil Muldoon <pmuldoon@redhat.com>
4506 * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled.
4507 (insert_breakpoint_locations): Likewise.
4509 2008-08-05 Phil Muldoon <pmuldoon@redhat.com>
4511 * breakpoint.c (create_longjmp_breakpoint): Remove unused struct
4513 (set_longjmp_breakpoint): Likewise.
4515 2008-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4518 * solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are
4521 2008-08-05 Tom Tromey <tromey@redhat.com>
4523 * bcache.c (deprecated_bcache_added): Initialize obstack.
4524 (bcache_xmalloc): Don't initialize obstack.
4525 (bcache_xfree): Conditionally free obstack.
4526 (bcache_memory_used): Update.
4528 2008-08-05 Tom Tromey <tromey@redhat.com>
4530 * symfile.c (add_psymbol_to_bcache): Return a const pointer. Use
4532 (append_psymbol_to_list): Accept a const pointer.
4533 (add_psymbol_to_list): Fix const correctness.
4534 * bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove.
4535 (bcache_full): Declare.
4536 * bcache.c (bcache_data, deprecated_bcache): Remove.
4537 (bcache): Use bcache_full.
4538 (bcache_full): Rename from deprecated_bcache_added. Change return
4541 2008-08-04 Stan Shebs <stan@codesourcery.com>
4543 * solib-svr4.c (BKPT_AT_SYMBOL): Remove, always defined.
4544 (bkpt_names): Remove SOLIB_BKPT_NAME, never defined.
4545 (enable_break): Remove test of BKPT_AT_SYMBOL.
4547 2008-08-02 Keith Seitz <keiths@redhat.com>
4549 * acinclude.m4: Include ../config/tcl.m4 to pick up
4550 standard Tcl configury bits.
4551 Remove all Tcl, Tk, Itcl, Itk, etc definitions.
4552 * configure.ac: Don't check if ../itcl exists when building
4553 gdbtk. It could be installed.
4554 Rewrite gdbtk configury to allow for using system-supplied
4555 Tcl and Tk. Gdbtk no longer requires build-time access to
4557 * Makefile.in: Remove everything related to itcl and itk.
4558 Rewrite the Tcl bits for gdbtk to correspond to rewrite of
4560 Remove v850ice.o build rule.
4561 (ALL_TCL_CFLAGS): New convenience defintion. Change all
4562 gdbtk sources to use it.
4563 * configure: Regenerate.
4565 2008-07-31 Stan Shebs <stan@codesourcery.com>
4567 * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE.
4569 2008-07-30 Stan Shebs <stan@codesourcery.com>
4571 * objfiles.c (TARGET_KEEP_SECTION): Remove.
4572 (add_to_objfile_sections): Remove use.
4574 2008-07-29 Tom Tromey <tromey@redhat.com>
4576 * cli/cli-decode.c (lookup_cmd_1): Use memcpy.
4577 (lookup_cmd_composition): Likewise.
4579 2008-07-29 Tom Tromey <tromey@redhat.com>
4581 * cli/cli-cmds.c (edit_command): Remove unused variables. Delete
4582 dead code. Fix indentation.
4584 2008-07-29 Stan Shebs <stan@codesourcery.com>
4586 * main.c (captured_main): Remove long-unused #if 0 blocks.
4588 2008-07-28 Tom Tromey <tromey@redhat.com>
4590 * annotate.h (deprecated_annotate_starting_hook): Remove.
4591 (deprecated_annotate_stopped_hook): Remove.
4592 (deprecated_annotate_exited_hook): Remove.
4593 * Makefile.in (annotate.o): Depend on observer_h.
4594 * top.c (deprecated_delete_breakpoint_hook): Remove.
4595 (deprecated_create_breakpoint_hook): Likewise.
4596 (deprecated_modify_breakpoint_hook): Likewise.
4597 * interps.c (clear_interpreter_hooks): Update for removed hooks.
4598 * breakpoint.c (mention): Don't call removed hook.
4599 (delete_breakpoint): Likewise.
4600 (disable_breakpoint): Likewise.
4601 (do_enable_breakpoint): Likewise.
4602 * annotate.c: Include observer.h.
4603 (breakpoint_changed): Change type of argument.
4604 (_initialize_annotate): Register observers.
4605 (deprecated_annotate_starting_hook): Remove.
4606 (deprecated_annotate_stopped_hook): Remove.
4607 (deprecated_annotate_exited_hook): Remove.
4608 (annotate_starting): Update for hook removal.
4609 (annotate_stopped): Likewise.
4610 (annotate_exited): Likewise.
4611 * defs.h (deprecated_delete_breakpoint_hook): Remove.
4612 (deprecated_create_breakpoint_hook): Likewise.
4613 (deprecated_modify_breakpoint_hook): Likewise.
4615 2008-07-28 Tom Tromey <tromey@redhat.com>
4617 * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.
4619 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
4621 * configure.ac: Check for the GNU/Linux ptrace signature.
4622 * configure: Regenerated.
4624 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
4626 * linux-nat.c (resume_callback): Add more debugging output.
4627 (linux_nat_has_pending_sigint): New function, based on
4628 linux_nat_has_pending.
4629 (set_ignore_sigint, maybe_clear_ignore_sigint): New functions.
4630 (stop_wait_callback): Remove flush_mask handling. Honor
4631 ignore_sigint. Call maybe_clear_ignore_sigint. Pass NULL
4633 (linux_nat_has_pending, flush_callback): Remove.
4634 (linux_nat_filter_event): Check for ignore_sigint.
4635 (linux_nat_wait): Remove flush_mask support and call to
4636 flush_callback. Use set_ignore_sigint and maybe_clear_ignore_sigint.
4637 * linux-nat.h (struct lwp_info): Add ignore_sigint field.
4639 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
4641 * linux-nat.c (count_events_callback, select_event_lwp_callback): Only
4642 report events from resumed threads.
4644 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
4646 * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function.
4647 (mips_linux_init_abi): Set tdep->syscall_next_pc.
4648 * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to
4650 (mips32_next_pc): Handle the syscall instruction.
4651 * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New,
4652 from mips-tdep.c. Add syscall_next_pc to gdbarch_tdep.
4654 2008-07-26 Tom Tromey <tromey@redhat.com>
4657 * valops.c (value_struct_elt): Treat function-valued field as a
4660 2008-07-26 Tom Tromey <tromey@redhat.com>
4663 * macroexp.c (get_punctuator) <punctuators>: Rearrange to put
4664 longer tokens first.
4666 2008-07-26 Vladimir Prus <vladimir@codesourcery.com>
4669 * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok)
4670 (get_cmd_async_ok): Remove.
4671 * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove.
4672 * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok.
4673 * infcmd.c (_initialize_infcmd): Likewise.
4674 * thread.c (_initialize_thread): Likewise.
4676 2008-07-25 Joseph Myers <joseph@codesourcery.com>
4678 * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing
4679 128-bit long doubles in even-odd pairs of FPRs. Do not
4680 right-align float arguments for big-endian.
4681 (mips_n32n64_return_value): Apply return value convention for
4682 structs containing one or two floating-point values to soft-float
4683 as well as hard-float. Handle 128-bit long doubles in such
4685 (mips_o32_push_dummy_call): Only skip one integer register for a
4686 float argument passed in an FPR.
4688 2008-07-25 Tom Tromey <tromey@redhat.com>
4690 * tui/tui-hooks.c: Include observer.h.
4691 (tui_event_default, tui_old_event_hooks, tui_event_hooks):
4693 (tui_bp_created_observer, tui_bp_deleted_observer,
4694 tui_bp_modified_observer): New globals.
4695 (tui_install_hooks): Use observers, not events.
4696 (tui_remove_hooks): Likewise.
4697 * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h.
4698 (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New
4700 (breakpoint_notify): Check mi_can_breakpoint_notify.
4701 (breakpoint_hooks): Remove.
4702 (mi_cmd_break_insert): Attach observers. Don't use events.
4703 * tracepoint.c: Include observer.h, not gdb-events.h.
4704 (tracepoint_operation, trace_pass_command): Notify observer.
4705 * interps.c: Don't include gdb-events.h.
4706 (clear_interpreter_hooks): Don't call clear_gdb_event_hooks.
4707 * gdbarch.c: Rebuild.
4708 * gdbarch.sh: Emit include for observer.h, not gdb-events.h.
4709 (deprecated_current_gdbarch_select_hack): Notify observer.
4710 * breakpoint.h: Don't include gdb-events.h.
4711 * breakpoint.c: Don't include gdb-events.h.
4712 (condition_command): Notify observer.
4713 (commands_command): Likewise.
4714 (commands_from_control_command): Likewise.
4715 (mention, delete_breakpoint, set_ignore_count): Likewise.
4716 (disable_breakpoint, do_enable_breakpoint): Likewise.
4717 * Makefile.in (gdb_events_h): Remove.
4718 (breakpoint_h): Update.
4719 (COMMON_OBS): Remove gdb-events.o.
4720 (gdb-events.o): Remove.
4721 (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o,
4722 gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update.
4723 * gdb-events.c: Remove.
4724 * gdb-events.h: Remove.
4725 * gdb-events.sh: Remove.
4727 2008-07-24 Pedro Alves <pedro@codesourcery.com>
4729 * remote.c (remote_threads_extra_info): Don't query the remote
4730 server about info on the internally added main thread.
4732 2008-07-24 Aleksandar Ristovski <aristovski@qnx.com>
4734 * nto-procfs.c (procfs_attach): Populate initial thread list.
4735 (procfs_wait): Return new pid, built from the inferior status.
4737 2008-07-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
4739 * configure.ac (CONFIG_INITS): Delete long obsoleted variable.
4740 * configure: Regenerate.
4742 2008-07-23 Aleksandar Ristovski <aristovski@qnx.com>
4744 * nto-procfs.c (procfs_xfer_memory): Changed signature.
4745 (procfs_resume): Workaround for dereferencing type-punned pointer
4747 * nto-tdep.c (nto_parse_redirection): Change signature to be const
4749 * nto-tdep.h (nto_parse_redirection): Likewise.
4751 2008-07-21 Stan Shebs <stan@codesourcery.com>
4753 Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.
4754 * gdbarch.sh: Adjust comment to refer to
4755 in_solib_dynsym_resolve_code().
4756 * gdbarch.h, gdbarch.c: Update.
4757 * solib-osf.c: Ditto.
4759 (handle_inferior_event): Use in_solib_dynsym_resolve_code
4761 * config/mips/nm-irix5.h: Remove undef of
4762 IN_SOLIB_DYNSYM_RESOLVE_CODE.
4764 2008-07-21 Tom Tromey <tromey@redhat.com>
4766 * symfile.c (reread_symbols): Don't pass argument to observer.
4767 * exec.c (exec_file_attach): Don't pass argument to observer.
4768 * ada-lang.c (ada_executable_changed_observer): Remove argument.
4769 * symtab.c (symtab_observer_executable_changed): Remove argument.
4770 * observer.sh: Handle functions with no arguments.
4772 2008-07-20 Sergei Poselenov <sposelenov@emcraft.com>
4773 Chris Demetriou <cgd@google.com>
4775 * elfread.c (elf_symfile_segments): Fix the check that each loadable
4776 section fits within an ELF segment to handle ELF segments that hit
4777 the end of the address space.
4779 2008-07-20 Chris Demetriou <cgd@google.com>
4781 * MAINTAINERS (Write After Approval): Add self.
4783 2008-07-18 Tom Tromey <tromey@redhat.com>
4786 * NEWS: Add entry for macro commands.
4787 * Makefile.in (macrocmd.o): Add gdb_string.h.
4788 * macroscope.h (user_macro_scope): Declare.
4789 (default_macro_scope): Update documentation.
4790 (macro_user_macros): Declare.
4791 * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup.
4792 Use user_macro_scope.
4793 (null_macro_lookup): Remove.
4794 * macrotab.h (macro_callback_fn): Declare.
4795 (macro_for_each): Likewise.
4796 (macro_allow_redefinitions): Likewise.
4797 * macrotab.c (foreach_macro): New function
4798 (macro_for_each): Likewise.
4799 (struct macro_table) <redef_ok>: New field.
4800 (macro_allow_redefinitions): New function.
4801 (new_macro_table): Update.
4802 (macro_define_function): Likewise.
4803 (macro_define_object): Likewise.
4804 * macroscope.c (user_macro_scope): New function.
4805 (default_macro_scope): Use it.
4806 (macro_user_macros): New global.
4807 (standard_macro_lookup): Look in macro_user_macros.
4808 (_initialize_macroscope): New function.
4809 * macroexp.h (macro_is_whitespace, macro_is_digit,
4810 macro_is_identifier_nondigit): Declare.
4811 * macroexp.c (macro_is_whitespace): Rename. No longer static.
4812 (macro_is_digit): Likewise.
4813 (macro_is_identifier_nondigit): Likewise.
4814 (get_identifier): Update.
4815 (get_pp_number): Likewise.
4816 (get_token): Likewise.
4817 * macrocmd.c (skip_ws): New function.
4818 (extract_identifier): Likewise.
4819 (free_macro_definition_ptr): Likewise.
4820 (user_macros): Remove.
4821 (macro_define_command): Implement.
4822 (_initialize_macrocmd): Update.
4823 (macro_undef_command): Implement.
4824 (print_one_macro): New function.
4825 (macro_list_command): Implement.
4827 2008-07-18 Joseph Myers <joseph@codesourcery.com>
4829 * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl
4831 * configure: Regenerate.
4833 2008-07-17 Paul Pluzhnikov <ppluzhnikov@google.com>
4835 * auxv.c (fprint_target_auxv): Stop at AT_NULL.
4837 2008-07-15 Andreas Schwab <schwab@suse.de>
4839 * valops.c (value_cast_pointers): Follow typedefs when checking
4842 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4844 * block.c (block_function): Renamed to ...
4845 (block_linkage_function): ... this. All callers changed.
4846 * block.h (block_function): Renamed to ...
4847 (block_linkage_function): ... this.
4849 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4851 * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned.
4853 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4855 * frame.c (frame_sp_unwind): Delete.
4856 (get_frame_sp): Do not use it.
4857 * frame.h (frame_sp_unwind): Delete prototype.
4859 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4861 * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc.
4863 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4865 * dwarf2-frame.c (dwarf2_frame_cache): Update comment.
4866 * frame.c (frame_unwind_address_in_block): Delete.
4867 (get_frame_address_in_block): Do not use it. Check the type
4868 of the next frame first.
4869 (frame_cleanup_after_sniffer): Update comment.
4870 * frame.h (frame_unwind_address_in_block): Delete prototype.
4871 * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment.
4873 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4875 * frame.c (frame_func_unwind): Delete.
4876 (get_frame_func): Do not use it.
4877 * frame.h (frame_func_unwind): Delete prototype.
4878 * hppa-tdep.c (hppa_frame_cache): Update comment.
4879 * rs6000-tdep.c (rs6000_frame_cache): Update comment.
4881 2008-07-14 Stan Shebs <stan@codesourcery.com>
4883 * remote-sim.c (init_gdbsim_ops): Remove
4884 TARGET_REDEFINE_DEFAULT_OPS.
4886 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4888 * findvar.c (read_var_value): Remove unused variable.
4890 2008-07-15 Luis Machado <luisgpm@br.ibm.com>
4892 * infrun.c (handle_inferior_event): Tag threads as stopped
4893 before inserting breakpoints.
4895 2008-07-15 Hui Zhu <teawater@gmail.com>
4897 * MAINTAINERS: Added myself to section Write After Approval.
4899 2008-07-14 Paul Pluzhnikov <ppluzhnikov@google.com>
4902 * cp-abi.c (value_virtual_fn_field): Handle invalid pointers.
4904 2008-07-14 Pedro Alves <pedro@codesourcery.com>
4906 * i386-dicos-tdep.c (i386_dicos_frame_align): Delete.
4907 (i386_dicos_push_dummy_code): New.
4908 (i386_dicos_init_abi): Don't register i386_dicos_frame_align.
4909 Register i386_dicos_push_dummy_code.
4911 2008-07-14 Markus Deuling <deuling@de.ibm.com>
4913 * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter.
4914 (mips_n32n64_push_dummy_call, mips_o64_return_value)
4915 (mips_eabi_push_dummy_call): Update call to fp_register_arg_p.
4917 (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch.
4918 (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command)
4919 (mips_n32n64_fp_arg_chunk_p): Update caller.
4921 (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter.
4922 (mips_n32n64_push_dummy_call): Update caller.
4924 (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace
4926 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4927 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller.
4930 (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace
4932 (mips_eabi_push_dummy_call, mips_o32_push_dummy_call)
4933 (mips_o64_push_dummy_call): Update caller.
4935 (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch.
4936 (fp_register_arg_p, mips_dump_tdep): Update caller.
4938 (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch.
4939 (mips16_scan_prologue, mips32_scan_prologue): Update caller.
4941 (reset_saved_regs): Make static. Add gdbarch as parameter. Replace
4943 (mips32_scan_prologue): Update caller.
4945 (heuristic_proc_start): Add gdbarch as parameter. Replace
4947 (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller.
4949 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
4950 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
4951 the current architecture. Update call to getregs_supplies.
4952 (getregs_supplies): Add gdbarch as parameter and replace
4955 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to
4956 get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and
4957 NBSD_MIPS_JB_ELEMENT_SIZE.
4958 (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and
4959 replace current_gdbarch.
4961 * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace
4963 (mips_fetch_registers, mips_store_registers): Update call
4965 (mips_load): Use get_regcache_arch to get at the current_architecture
4966 and replace current_gdbarch.
4968 2008-07-13 Pedro Alves <pedro@codesourcery.com>
4970 * thread.c (restore_selected_frame): On fail to restore, select
4971 the innermost frame, and don't crash when warning the user.
4973 2008-07-13 Hui Zhu <teawater@gmail.com>
4975 * symtab.c (expand_line_sal): Fix a memory leak.
4977 2008-07-13 Pedro Alves <pedro@codesourcery.com>
4979 * utils.c (struct continuation): Define as inheriting struct
4981 (add_continuation, do_all_continuations)
4982 (discard_all_continuations, add_intermediate_continuation)
4983 (do_all_intermediate_continuations)
4984 (discard_all_intermediate_continuations): Adjust.
4986 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
4988 Skip varobj in running threads.
4989 * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's
4990 thread is not stopped, skip the varobj.
4991 * Makefile.in: Update dependencies.
4993 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
4995 Enable all commands while inferiour is running
4996 * mi/mi-main.c (mi_cmd_execute): Don't check if
4997 inferiour is executing.
4999 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5001 Allow all CLI command even if target is executing.
5002 * gdb/top.c (execute_command_1): Don't check if the inferiour
5005 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5007 * mi/mi-main.c (mi_cmd_execute): Remove unused variable.
5008 Fix printing of frame, when frame is wrong.
5010 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
5012 * spu-tdep.c (spu_frame_unwind_cache): Do not error if
5013 backchain is unreadable.
5015 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
5017 * spu-linux-nat.c: Include "gdbthread.h".
5018 (spu_child_post_startup_inferior): Register main thread.
5019 (spu_child_post_attach): Likewise.
5020 * Makefile.in (spu-linux-nat.o): Update dependencies.
5022 2008-07-12 Pedro Alves <pedro@codesourcery.com>
5024 Rewrite continuations internals on top of cleanups and plug
5025 continuation arguments leaks.
5027 * defs.h (struct continuation): Make it opaque.
5028 (add_continuation, add_intermediate_continuation): Drop the int
5029 argument of the continuation hook argument. Add
5030 continuation_free_args argument.
5031 (do_all_continuations, do_all_intermediate_continuations): Drop
5032 the error_p argument.
5034 * utils.c (add_continuation): Drop the int argument of the
5035 continuation hook argument. Add continuation_free_args argument.
5036 Reimplement on top of cleanups.
5037 (do_all_continuations): Drop error argument. Reimplement on top
5039 (discard_all_continuations): Reimplement on top of cleanups.
5040 (add_intermediate_continuation): Drop the int argument of the
5041 continuation hook argument. Add continuation_free_args argument.
5042 Reimplement on top of cleanups.
5043 (do_all_intermediate_continuations): Drop error argument.
5044 Reimplement on top of cleanups.
5045 (discard_all_intermediate_continuations): Reimplement on top of
5048 * breakpoint.c (until_break_command_continuation): Drop error
5049 argument. Add xfree as continuation argument deleter.
5051 * inf-loop.c (inferior_event_handler): On error, discard all
5052 continuations. Adjust to new do_all_intermediate_continuations
5053 and do_all_continuations interfaces.
5055 * infcmd.c (step_1_continuation): Drop error_p argument. Adjust.
5056 Pass xfree as continuation argument deleter.
5057 (finish_command_continuation): Drop error_p argument. Adjust.
5058 (finish_command_continuation_free_arg): New.
5059 (finish_command): Pass finish_command_continuation_free_arg as
5060 continuation argument deleter. Adjust to new do_all_continuations
5062 (attach_command_continuation): Drop error_p argument.
5063 (attach_command_continuation_free_args): New.
5064 (attach_command): Pass attach_command_continuation_free_args as
5065 continuation argument deleter.
5067 * interps.c (interp_set): Adjust to new do_all_continuations
5070 * event-top.c (stdin_event_handler): In error, also discard the
5071 intermediate continuations.
5073 2008-07-12 Pedro Alves <pedro@codesourcery.com>
5075 Replace struct continuation_args by void* and per command structs.
5077 * top.c (execute_command): Remove unused arg1 and arg2 locals.
5079 * breakpoint.c (struct until_break_command_continuation_args):
5081 (until_break_command_continuation): Take a void* instead of a
5082 continuations_arg. Adjust.
5083 (until_break_command): Adjust to use struct
5084 until_break_command_continuation_args instead of struct
5087 * infcmd.c (struct step_1_continuation_args): New.
5088 (step_1_continuation): Take a void* instead of a
5089 continuations_arg. Adjust to use struct step_1_continuation_args.
5090 (step_once): Adjust to use struct step_1_continuation_args.
5092 (struct finish_command_continuation_args): New.
5093 (finish_command_continuation): Take a void* instead of a
5094 continuations_arg. Adjust to use struct
5095 finish_command_continuation_args.
5096 (finish_command): Adjust to use struct
5097 finish_command_continuation_args.
5098 (struct attach_command_continuation_args): New.
5099 (attach_command_continuation): Take a void* instead of a
5100 continuations_arg. Adjust to use struct
5101 attach_command_continuation_args.
5102 (attach_command): Adjust to use struct
5103 attach_command_continuation_args.
5105 * defs.h (struct continuation_arg): Delete.
5106 (struct continuation): Replace the struct continuation_arg*
5107 parameter of continuation_hook by a void*. Replace "arg_list"
5108 member by a new "args" member with void* type.
5109 (add_continuation, add_intermediate_continuation): Replace struct
5110 continuation_arg type usages by void* usages.
5112 * utils.c (add_continuation, do_all_continuations)
5113 (add_intermediate_continuation)
5114 (do_all_intermediate_continuations): Replace struct
5115 continuation_arg type usages by void* usages. Pass "args" instead
5118 2008-07-12 Pedro Alves <pedro@codesourcery.com>
5120 * infrun.c (struct thread_stepping_state): Delete sal member.
5121 (init_thread_stepping_state): Add local sal. Use it instead of
5123 (handle_inferior_event): New local stop_pc_sal. Use it instead of
5125 (step_into_function): Add local stop_func_sal. Use it instead of
5128 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5130 Implement -exec-continue/-exec-interrupt --all.
5131 * infcmd.c (continue_1): New, extracted from
5132 (continue_command): ...here.
5133 (interrupt_target_1): New, extracted from
5134 (interrupt_target_command): ...here.
5135 * inferior.h (continue_1, interrupt_target_1): New.
5136 * mi/mi-main.c (mi_cmd_exec_continue)
5137 (mi_cmd_exec_interrupt): Handle --all.
5139 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5141 Implement --thread and --frame.
5142 * gdbthread.h (find_thread_id): Declare.
5143 * thread.c (find_thread_id): Make non-static.
5144 * mi/mi-main.c (mi_cmd_execute): Switch to the right
5145 thread and frame, if necessary.
5146 * mi/mi-parse.c (mi_parse): Handle --thread and --frame.
5147 * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
5149 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5151 * infrun.c (resume): Discard cleanups on early exit path.
5153 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5155 * infrun.c (normal_stop): For MI, report which threads
5158 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5160 Report thread state in -thread-info output.
5161 * thread.c (print_thread_info): Add new field "state".
5163 2008-07-11 Pedro Alves <pedro@codesourcery.com>
5165 * infrun.c (handle_inferior_event): Also ignore a
5166 TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP.
5168 2008-07-11 Tom Tromey <tromey@redhat.com>
5170 * completer.c (complete_line_internal): New function, from
5171 complete_line. Add 'for_help' parameter.
5172 (complete_line): Use it.
5173 (command_completer): Move later. Rewrite.
5175 2008-07-11 Pedro Alves <pedro@codesourcery.com>
5177 * thread.c (thread_apply_command): Move making the cleanup out of
5180 2008-07-11 Pedro Alves <pedro@codesourcery.com>
5184 * thread.c (enum thread_state): New.
5185 (thread_state main_thread_running): Delete, in favor of...
5186 (thread_state main_thread_state): ... this. Update throughout.
5187 (clear_thread_inferior_resources): New, split from free_thread.
5188 (free_thread): Call clear_thread_inferior_resources.
5189 (init_thread_list): Set main thread to stopped state.
5190 (add_thread_silent): Take care of PTID reuses.
5191 (delete_thread): If deleting inferior_ptid or a thread with
5192 refcount > 0, mark it as exited, but still keep it in the list.
5193 Only notify of thread exits, if we haven't done so yet.
5194 (iterate_over_threads): Make it safe to delete threads while
5195 iterating over them.
5196 (do_captured_list_thread_ids): Don't account for exited threads.
5197 (thread_alive): Check for the THREAD_EXITED state, and don't set
5198 ptid to -1 on exited threads.
5199 (set_running): Update to account for extra possible states.
5200 (is_thread_state): New.
5201 (is_stopped, is_exited): New.
5202 (is_running): Implement in terms of is_thread_state.
5203 (any_running): Update.
5204 (print_thread_info): Update. Account for exited threads. Don't
5205 warn about missed frame restoring here, its done in the cleanup.
5206 (switch_to_thread): Don't read from a thread that has gone.
5207 (restore_current_thread): In non-stop mode, do a full context
5209 (restore_selected_frame): Add a frame_level argument. Rewrite.
5210 (struct current_thread_cleanup): Add selected_frame_level and
5211 was_stopped members.
5212 (do_restore_current_thread_cleanup): Check if thread was stopped
5213 and still is, and if the target has registers, stack and memory
5214 before restoring the selected frame. Don't delete the cleanup
5216 (restore_current_thread_cleanup_dtor): New.
5217 (make_cleanup_restore_current_thread): Remove all arguments.
5219 (thread_apply_all_command): Update. Prune threads.
5220 (thread_apply_command): Update.
5221 (thread_command): Account for currently selected exited thread.
5222 (do_captured_thread_select): Check for a running thread. Prune
5224 (_initialize_thread): Make "info threads", "thread", "thread
5225 apply", and "thread apply all" appliable without a selected thread.
5226 * gdbthread.h (struct thread_info): Replace running_ by state_.
5228 (is_exited, is_stopped): Declare.
5229 (make_cleanup_restore_current_thread): Remove all arguments.
5230 * infrun.c: Include "event-top.h".
5231 (fetch_inferior_event): In non-stop mode, restore selected thread
5232 and frame after handling the event and running breakpoint
5233 commands. Display GDB prompt if needed.
5234 (normal_stop): In non-stop mode, don't print thread switching
5236 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
5237 (get_cmd_no_selected_thread_ok): New.
5238 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New.
5239 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
5241 * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as
5242 no-selected-thread ok.
5243 * top.c (execute_command): Check for non no-selected-thread-ok
5245 * linux-nat.c (struct saved_ptids, threads_to_delete)
5246 (record_dead_thread, prune_lwps): Delete.
5247 (exit_lwp): Unconditionally delete thread.
5248 (linux_nat_resume): Remove prune_lwps call.
5249 * infcmd.c (proceed_thread_callback): Check if !is_stopped instead
5250 of is_running. Adjust to make_cleanup_restore_current_thread
5252 * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the
5253 selected thread has exited.
5254 * inf-loop.c (inferior_event_handler): Don't display the prompt
5256 * varobj.c (c_value_of_root): Update.
5257 * defs.h (make_cleanup_dtor): Declare.
5258 * utils.c (make_cleanup_dtor): New.
5260 * Makefile.in (infrun.o): Depend on $(event_top_h).
5262 2008-07-11 Pedro Alves <pedro@codesourcery.com>
5264 Add "continue -a" and "interrupt -a" options for non-stop mode.
5266 * infcmd.c (proceed_thread_callback, do_context_switch_to): New.
5267 (continue_command): Add "-a" option.
5268 (interrupt_target_command): Add "-a" option.
5269 (_initialize_infcmd): Add extend help of continue and interrupt
5270 command to mention the new "-a" option. Mark "continue" async ok.
5272 2008-07-10 Doug Evans <dje@google.com>
5274 Add "set print symbol-loading on|off".
5275 * NEWS: Document new option.
5276 * symfile.h (print_symbol_loading): Declare.
5277 * symfile.c (print_symbol_loading): New global.
5278 (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols
5279 from ..." if print_symbol_loading.
5280 (_initialize_symfile): Add set/show print symbol-loading.
5281 * solib.c (solib_read_symbols): Only print "Loaded symbols for ..."
5282 if print_symbol_loading.
5284 2008-07-10 Pedro Alves <pedro@codesourcery.com>
5286 Non-stop linux native.
5288 * linux-nat.c (linux_test_for_tracefork): Block events while we're
5290 (get_pending_status): Implement non-stop mode.
5291 (linux_nat_detach): Stop threads before detaching.
5292 (linux_nat_resume): In non-stop mode, always resume only a single
5294 (linux_handle_extended_wait): On a clone event, in non-stop mode,
5295 add new lwp to GDB's thread table, and mark as running, executing
5296 and stopped appropriately.
5297 (linux_nat_filter_event): Don't assume there are other running
5298 threads when a thread exits.
5299 (linux_nat_wait): Mark the main thread as running and executing.
5300 In non-stop mode, don't stop all lwps.
5301 (linux_nat_kill): Stop lwps before killing them.
5302 (linux_nat_thread_alive): Use signal 0 to detect if a thread is
5304 (send_sigint_callback): New.
5305 (linux_nat_stop): New.
5306 (linux_nat_add_target): Set to_stop to linux_nat_stop.
5308 * linux-nat.h (thread_db_attach_lwp): Declare.
5310 * linux-thread-db.c (thread_get_info_callback): Check for new
5311 threads if we have none.
5312 (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the
5313 stopped lwp. Check for new threads if we have none.
5314 (thread_db_attach_lwp): New.
5315 (thread_db_init): Set proc_handle.pid to inferior_ptid.
5316 (check_event): Set proc_handle.pid to the stopped lwp.
5317 (thread_db_find_new_threads): Set proc_handle.pid to any stopped
5318 lwp available, bail out if there is none.
5320 * linux-fork.c (linux_fork_killall): Use SIGKILL instead of
5323 2008-07-10 Kevin Buettner <kevinb@redhat.com>
5325 * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
5326 `current_pc' from CORE_ADDR to ULONGEST.
5328 * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
5331 2008-07-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5333 * NEWS (New commands): Mention "set disable-randomization".
5334 * configure.ac: Add check for HAVE_PERSONALITY and
5335 HAVE_DECL_ADDR_NO_RANDOMIZE.
5336 * configure, config.in: Regenerate.
5337 * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
5338 [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
5340 (disable_randomization, show_disable_randomization)
5341 (set_disable_randomization): New.
5342 (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
5343 PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the
5344 variable DISABLE_RANDOMIZATION.
5345 (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
5346 DISABLE_RANDOMIZATION.
5348 2008-07-09 Pedro Alves <pedro@codesourcery.com>
5350 Adjust all targets to new target_stop interface.
5352 * gnu-nat.c (gnu_stop): Add ptid argument.
5353 * go32-nat.c (go32_stop): Add ptid argument.
5354 (go32_create_inferior): Pass inferior_ptid to go32_stop.
5355 * hpux-thread.c (hpux_thread_stop): Add ptid argument.
5356 * monitor.c (monitor_stop): Add ptid argument.
5357 (monitor_open): Pass inferior_ptid to monitor_stop.
5358 (monitor_interrupt): Pass inferior_ptid to target_stop.
5359 (monitor_stop): Add ptid argument.
5360 * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
5361 (procfs_create_inferior): Add ptid argument.
5362 * procfs.c (procfs_stop): Add ptid argument.
5363 * remote-m32r-sdi.c (m32r_stop): Add ptid argument.
5364 * remote-sim.c (gdbsim_stop): Add ptid argument.
5365 * sol-thread.c (sol_thread_stop): Add ptid argument.
5366 * win32-nat.c (win32_stop): Add ptid argument.
5368 2008-07-09 Pedro Alves <pedro@codesourcery.com>
5370 Non-stop inferior control.
5372 * infrun.c (resume): In non-stop mode, always resume just one
5374 (proceed): Don't call prepare_to_proceed in non-stop mode.
5375 (fetch_inferior_event): In non-stop mode, switch context before
5377 (error_is_running, ensure_not_running): New.
5378 (handle_inferior_event): In non-stop mode: Mark only the event
5379 thread as stopped. Require that the target module manages adding
5380 threads to the thread list. Assert that there isn't a
5381 deferred_step_ptid set. Don't switch to infwait_thread_hop_state.
5382 (normal_stop): Only mark not-running if inferior hasn't exited.
5383 In non-stop mode, only mark the event thread.
5385 * thread.c:Include "cli/cli-decode.h".
5386 (print_thread_info): Don't read from a running thread.
5387 Output "(running)" if thread is running.
5388 (switch_to_thread): Don't read stop_pc if thread is executing.
5389 (do_restore_current_thread_cleanup): Don't write to a running
5391 (thread_apply_all_command): Don't read from a running thread. In
5392 non-stop mode, do a full context-switch instead of just switching
5394 (thread_apply_command): In non-stop mode, do a full context-switch
5395 instead of just switching threads.
5396 (do_captured_thread_select): Likewise. Inform user if selected
5398 (_initialize_thread): Mark "info threads" and "thread" and
5401 * inf-loop.c (inferior_event_handler): In non-stop mode, don't
5402 unregister the target from the event loop.
5404 * infcmd.c (continue_command, step_1, jump_command)
5405 (signal_command): Ensure the selected thread isn't running.
5406 (interrupt_target_command): In non-stop mode, interrupt only the
5409 * inferior.h (error_is_running, ensure_not_running): Declare.
5411 * target.h (struct target_ops): Add ptid argument to the to_stop
5413 (target_stop): Add ptid_t argument.
5415 * target.c (update_current_target): Add ptid argument to to_stop's
5417 (debug_to_stop): Add ptid_t argument.
5418 (debug_to_rcmd): Set to_stop_ptid.
5420 * remote.c (remote_stop): Add ptid_t argument.
5421 (async_remote_interrupt): Add inferior_ptid to target_stop.
5422 * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
5424 * Makefile.in (thread.o): Depend on $(cli_decode_h).
5426 2008-07-09 Pedro Alves <pedro@codesourcery.com>
5428 Don't rely on ecs->wait_for_more.
5430 * infrun.c (proceed): Clear the stepping state, set
5431 previous_inferior_ptid and clear infwait state.
5432 (wait_for_inferior): Don't clear the stepping state, set
5433 previous_inferior_ptid, or clear the infwait state here.
5434 (fetch_inferior_event): Don't clear the stepping state, set
5435 previous_inferior_ptid, or clear the infwait state here. Don't
5436 condition on wait_for_more.
5438 2008-07-09 Pedro Alves <pedro@codesourcery.com>
5440 Refactor infrun a bit.
5442 * infrun.c (currently_stepping): Take a struct
5443 thread_stepping_state instead of an execution_control_state.
5444 (struct thread_stepping_state): New, split from
5445 execution_control_state.
5446 (gtss, tss): New globals.
5447 (proceed): Clear the stepping state, set previous_inferior_ptid
5448 and clear infwait state.
5449 (init_wait_for_inferior): Clear the stepping state,
5450 previous_inferior_ptid and infwait state.
5451 (waiton_ptid, infwait_state): New, split from
5452 execution_control_state.
5453 (struct execution_control_state): Members that persist through
5454 events moved out to either struct thred_stepping_state or made
5455 global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
5456 (wait_for_inferior, fetch_inferior_event): Use local
5457 execution_control_state. Update to execution_control_state split.
5458 (init_execution_control_state): Adjust.
5459 (init_thread_stepping_state): New, extracted from
5460 init_execution_control_state.
5461 (context_switch): Take a ptid instead of an
5462 execution_control_state.
5463 (context_switch_to): Adjust.
5464 (adjust_pc_after_break): Adjust.
5465 (init_infwait_state): New.
5466 (handle_inferior_event): Adjust.
5468 2008-07-09 Pedro Alves <pedro@codesourcery.com>
5469 Vladimir Prus <vladimir@codesourcery.com>
5471 Per-thread commands.
5473 * gdbthread.h: Remove unneeded forward declarations.
5474 Include "inferior.h".
5475 (struct thread_info): Add continuations,
5476 intermediate_continuations, proceed_to_finish, step_over_calls,
5477 stop_step, step_multi and stop_signal members.
5478 (save_infrun_state): Add continuations,
5479 intermediate_continuations, proceed_to_finish, step_over_calls,
5480 stop_step, step_multi, stop_signal and stop_bpstat parameters.
5481 (load_infrun_state): Add continuations,
5482 intermediate_continuations, proceed_to_finish, step_over_calls,
5483 stop_step, step_multi, stop_signal and stop_bpstat parameters.
5485 * thread.c (load_infrun_state): In non-stop mode, load
5486 continuations, intermediate_continuations, proceed_to_finish,
5487 step_over_calls, stop_step, step_multi and stop_signal.
5488 (save_infrun_state): Store continuations,
5489 intermediate_continuations, proceed_to_finish, step_over_calls,
5490 stop_step, step_multi, stop_signal and stop_bpstat.
5491 (save_infrun_state): Store continuations,
5492 intermediate_continuations, proceed_to_finish, step_over_calls,
5493 stop_step, step_multi, stop_signal and stop_bpstat.
5494 (free_thread): Clear The thread's stop_bpstat.
5496 * inferior.h (context_switch_to): Declare.
5498 * infrun.c (ecss): New global.
5499 (context_switch): Context switch continuations,
5500 intermediate_continuations, proceed_to_finish, step_over_calls,
5501 stop_step, step_multi, stop_signal and stop_bpstat.
5502 (wait_for_inferior): Use global ecss.
5503 (async_ecss, async_ecs): Delete.
5504 (fetch_inferior_event): Use global ecss.
5505 (context_switch_to): New.
5507 * top.c (execute_command): In non-stop, only check if the current
5508 thread is running, in all-stop, check if there's any thread
5511 * breakpoint.c (bpstat_remove_breakpoint): New.
5512 (bpstat_remove_breakpoint_callback): New.
5513 (delete_breakpoint): Clear the stop_bpstats of all threads.
5515 * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
5516 current thread is running, in all-stop, check if there's any
5519 * Makefile.in (gdbthread_h): Depend on $(inferior_h).
5521 2008-07-09 Pedro Alves <pedro@codesourcery.com>
5523 Add non_stop global.
5525 * inferior.h (non_stop): Declare.
5526 * infrun.c (non_stop, non_stop_1): New.
5527 (set_non_stop, show_non_stop): New.
5528 (_initialize_infrun): Add "set/show non-stop" command.
5530 2008-07-09 Pedro Alves <pedro@codesourcery.com>
5532 Adjust fork/vfork/exec to pass ptids around.
5534 * target.h (struct target_waitstatus): Store related_pid as a ptid.
5535 (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
5537 * breakpoint.h (struct breakpoint): Change forked_inferior_pid
5539 * breakpoint.c (print_it_typical, bpstat_check_location)
5540 (print_one_breakpoint_location, set_raw_breakpoint_without_location)
5541 (create_fork_vfork_event_catchpoint): Adjust.
5542 * infrun.c (fork_event): Change parent_pid and child_pid types to
5544 (follow_exec, inferior_has_forked, inferior_has_vforked)
5545 (inferior_has_execd): Take a ptid_t and don't trim it.
5546 * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
5547 * linux-nat.c (linux_child_follow_fork): Adjust.
5548 * inf-ptrace.c (inf_ptrace_wait): Adjust.
5549 * inf-ttrace.c (inf_ttrace_wait): Adjust.
5550 * win32-nat.c (get_win32_debug_event): Don't set related_pid.
5552 2008-07-09 Pedro Alves <pedro@codesourcery.com>
5554 Add "executing" property to threads.
5556 * inferior.h (target_executing): Delete.
5557 * gdbthread.h (struct thread_info): Add executing_ field.
5558 (set_executing, is_executing): New.
5559 * thread.c (main_thread_executing): New.
5560 (init_thread_list): Clear it and also main_thread_running.
5561 (is_running): Return false if target has no execution.
5562 (any_running, is_executing, set_executing): New.
5564 * top.c: Include "gdbthread.h".
5565 (target_executing): Delete.
5566 (execute_command): Replace target_executing check by any_running.
5567 * event-top.c: Include "gdbthread.h".
5568 (display_gdb_prompt, command_handler): Replace target_executing by
5570 * inf-loop.c: Include "gdbthread.h". Don't mark as not executing
5571 here. Replace target_executing by is_running.
5572 * infrun.c (handle_inferior_event): Mark all threads as
5574 * linux-nat.c (linux_nat_resume): Don't mark thread as executing
5576 * stack.c (get_selected_block): Return null if inferior is
5578 * target.c (target_resume): Mark resumed ptid as executing.
5579 * breakpoint.c (until_break_command): Replace target_executing
5580 check by is_executing.
5581 * remote.c (remote_async_resume): Don't mark inferior as executing
5583 * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
5586 * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
5587 (mi_execute_async_cli_command): Replace target_executing by
5590 * frame.c (get_current_frame): Error out if the current thread is
5592 (has_stack_frames): New.
5593 (get_selected_frame, deprecated_safe_get_selected_frame): Check
5596 * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
5599 2008-07-09 Pedro Alves <pedro@codesourcery.com>
5601 * symfile.c (load_command): Reopen the exec file and reread
5602 symbols before anything else.
5604 2008-07-09 Pedro Alves <pedro@codesourcery.com>
5606 * remote-sim.c: Include gdbthread.h.
5607 (remote_sim_ptid): New global.
5608 (gdbsim_create_inferior): Silently add the main task to GDB's
5610 (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
5611 task from GDB's thread list.
5612 (gdbsim_resume): Adjust to use remote_sim_ptid.
5613 (gdbsim_thread_alive, gdbsim_pid_to_str): New.
5614 (init_gdbsim_ops): Register gdbsim_thread_alive and
5616 (_initialize_remote_sim): Initialize remote_sim_ptid.
5617 * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
5619 2008-07-09 Pedro Alves <pedro@codesourcery.com>
5621 * monitor (monitor_ptid): New global.
5622 (monitor_open): Silently add the main task to GDB's thread list.
5623 (monitor_close, monitor_mourn_inferior): Silently delete the main
5624 task from GDB's thread list.
5625 (monitor_thread_alive, monitor_pid_to_str): New.
5626 (init_base_monitor_ops): Register monitor_thread_alive and
5628 (_initialize_remote_monitors): Initialize monitor_ptid.
5630 * gdbthread.h (delete_thread_silent): Declare.
5631 * thread.c (delete_thread): Rename to ...
5632 (delete_thread_1): ... this. Add "silent" parameter. If silent,
5633 don't do exit notifications.
5634 (delete_thread, delete_thread_silent): New, as wrappers to
5637 2008-07-08 Pedro Alves <pedro@codesourcery.com>
5639 * breakpoint.c (update_global_location_list): Add boolean
5640 "should_insert" argument. Only insert locations if caller told it
5642 (update_global_location_list_nothrow): Add boolean "should_insert"
5643 argument. Pass it to update_global_location_list.
5644 (insert_breakpoints, create_longjmp_breakpoint)
5645 (create_overlay_event_breakpoint, enable_overlay_breakpoints)
5646 (create_thread_event_breakpoint, create_solib_event_breakpoint)
5647 (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
5648 (enable_watchpoints_after_interactive_call_stop)
5649 (set_momentary_breakpoint, create_breakpoints)
5650 (break_command_really, watch_command_1)
5651 (create_ada_exception_breakpoint, update_breakpoint_locations)
5652 (do_enable_breakpoint, enable_command): Pass true to
5653 update_global_location_list.
5654 (bpstat_stop_status, disable_overlay_breakpoints)
5655 (disable_watchpoints_before_interactive_call_start)
5656 (delete_breakpoint, disable_breakpoint, disable_command): Pass
5657 false to update_global_location_list.
5658 (update_breakpoints_after_exec): Don't temporarily disable
5659 always-inserted mode.
5661 2008-07-08 Pedro Alves <pedro@codesourcery.com>
5663 * breakpoint.c (mark_breakpoints_out): Make public.
5664 (update_breakpoints_after_exec): Don't call mark_breakpoints_out
5665 here. Update comment.
5666 * breakpoint.h (mark_breakpoints_out): Declare.
5668 * linux-nat.c (linux_handle_extended_wait): On
5669 TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
5670 * inf-ttrace.c (inf_ttrace_wait): Likewise.
5672 2008-07-08 Pedro Alves <pedro@codesourcery.com>
5674 * infrun.c (follow_exec): Reset shared libraries before adding the
5677 2008-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5679 * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
5681 2008-07-07 Pedro Alves <pedro@codesourcery.com>
5683 * i386-dicos-tdep.c: Include "inferior.h".
5684 (i386_dicos_frame_align): New.
5685 (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call
5686 dummy location ON_STACK.
5687 * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
5689 2008-07-07 Joel Brobecker <brobecker@adacore.com>
5691 * gstdint.h: New file.
5693 2008-07-05 Vladimir Prus <vladimir@codesourcery.com>
5695 * mi/mi-interp.c (mi_on_resume): Don't try to report
5696 resumed thread it the thread list is empty.
5698 2008-07-05 Pierre Muller <muller@ics.u-strasbg.fr>
5700 * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
5701 completer for set to filename_completer.
5705 2008-07-04 Vladimir Prus <vladimir@codesourcery.com>
5707 Implement -target-attach.
5708 * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
5710 2008-06-21 Hui Zhu <teawater@gmail.com>
5712 * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
5714 2008-07-03 Pedro Alves <pedro@codesourcery.com>
5716 * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
5717 * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
5719 * target.h (struct target_ops): Add to_attach_no_wait member.
5720 (target_attach_no_wait): New.
5721 * target.c (update_current_target): Inherit to_attach_no_wait.
5723 * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
5724 target_attach_no_wait runtime check.
5726 * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
5727 * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
5730 2008-07-03 Pedro Alves <pedro@codesourcery.com>
5732 * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
5733 on debug_displaced being set.
5735 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
5737 * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
5738 directly instead of get_frame_id.
5740 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
5742 * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
5743 (deal_with_atomic_sequence): Update BC masks.
5744 (rs6000_gdbarch_init): Init displaced stepping infra-structure.
5745 Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
5747 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
5749 * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
5750 register, not the previous frame's.
5752 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
5754 * source.c (select_source_symtab): Make sure we skip namespace
5755 symtabs when showing cpp source code.
5757 2008-06-30 Hans-Peter Nilsson <hp@axis.com>
5759 * MAINTAINERS (Authorized committers): Fix my email address.
5761 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
5763 * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
5764 -target-download and -target-select via CLI, so that
5765 the quoting rules are the same as they were (unfortunately)
5766 in all prior gdb releases.
5767 * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
5768 (mi_cmd_target_download, mi_cmd_target_select): Remove.
5769 * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
5770 (mi_cmd_target_download, mi_cmd_target_select): Remove.
5771 (mi_cmd_execute): Set current_token even for commands
5774 2008-06-28 Ulrich Weigand <uweigand@de.ibm.com>
5776 * alphafbsd-tdep.c: Update for unwinder changes.
5777 * alpha-linux-tdep.c: Likewise.
5778 * alphanbsd-tdep.c: Likewise.
5779 * alphaobsd-tdep.c: Likewise.
5780 * avr-tdep.c: Likewise.
5781 * cris-tdep.c: Likewise.
5782 * frv-linux-tdep.c: Likewise.
5783 * frv-tdep.c: Likewise.
5784 * h8300-tdep.c: Likewise.
5785 * hppa-linux-tdep.c: Likewise.
5786 * iq2000-tdep.c: Likewise.
5787 * m32c-tdep.c: Likewise.
5788 * m32r-linux-tdep.c: Likewise.
5789 * m32r-tdep.c: Likewise.
5790 * m68hc11-tdep.c: Likewise.
5791 * mep-tdep.c: Likewise.
5792 * mn10300-tdep.c: Likewise.
5793 * mt-tdep.c: Likewise.
5794 * score-tdep.c: Likewise.
5795 * sh64-tdep.c: Likewise.
5796 * sh-tdep.c: Likewise.
5797 * sparc64fbsd-tdep.c: Likewise.
5798 * sparc64nbsd-tdep.c: Likewise.
5799 * sparc64obsd-tdep.c: Likewise.
5800 * v850-tdep.c: Likewise.
5801 * vaxobsd-tdep.c: Likewise.
5802 * vax-tdep.c: Likewise.
5803 * xstormy16-tdep.c: Likewise.
5805 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
5807 * mi/mi-main.c (enum captured_mi_execute_command_actions)
5808 (captured_mi_execute_command_args): Remove.
5809 (captured_mi_execute_command): Cast the closure to mi_parse
5810 pointer, not to captured_mi_execute_command_args, and don't
5811 set the action field thereof.
5812 (mi_execute_command): Pass struct mi_parse, not
5813 captured_mi_execute_command_args to captured_mi_execute_command.
5814 (mi_execute_command): Remove (dead) code for suppressing
5817 2008-06-28 Pedro Alves <pedro@codesourcery.com>
5819 * linux-nat.c (enum sigchld_state): New.
5820 (linux_nat_async_events_state): Renamed from
5821 linux_nat_async_events_enabled.
5822 (linux_nat_event_pipe_push, my_waitpid): Adjust.
5823 (sigchld_default_action): New.
5824 (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
5826 (linux_nat_create_inferior): Set events state to sigchld_default
5828 (linux_nat_resume): Adjust.
5829 (linux_nat_wait): Call linux_nat_async_events unconditionally.
5830 (sigchld_handler): Adjust.
5831 (linux_nat_async_mask): Don't set SIGCHLD actions here.
5832 (get_pending_events): Adjust.
5833 (linux_nat_async_events): Rewrite to handle enum sigchld_state
5834 instead of a boolean.
5835 (linux_nat_async): Adjust.
5836 (_initialize_linux_nat): Capture default SIGCHLD action into
5837 sigchld_default_action.
5839 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
5841 * breakpoint.c (moribund_locations): New.
5842 (bpstat_stop_status): Process moribund locations.
5843 (update_global_location_list): Add removed
5844 locations to moribund_locations.
5845 (breakpoint_retire_moribund): New.
5846 * breakpoint.h (struct bp_location): New field
5847 events_till_retirement.
5848 (breakpoint_retire_moribund): Declare.
5849 * thread.c (thread_count): New.
5850 * infrun.c (handle_inferior_event): Call
5851 breakpoint_retire_moribund.
5852 * gdbthread.h (thread_count): Declare.
5854 2008-06-27 Joseph Myers <joseph@codesourcery.com>
5856 * dfp.c (decimal_convert): Call match_endianness before and after
5859 2008-06-27 Jonathan Larmour <jifl@eCosCentric.com>
5861 * remote.c (remote_insert_breakpoint): Ensure that if Z0
5862 unsupported and we fall back to memory_insert_breakpoint, we
5863 use the unmodified requested address.
5865 2008-06-27 Joel Brobecker <brobecker@adacore.com>
5867 * dwarf2read.c (read_attribute_value): Issue a complaint when
5868 adjusting size attribute values of 0xffffffff as zero.
5870 2008-06-27 Joseph Myers <joseph@codesourcery.com>
5872 * i386-tdep.c (i386_16_byte_align_p): New.
5873 (i386_push_dummy_call): Determine stack space required for
5874 arguments going forwards allowing for 16-byte alignment, then push
5875 arguments going forwards.
5877 2008-06-27 Pedro Alves <pedro@codesourcery.com>
5879 * infrun.c (start_remote): Don't clear thread list here.
5880 * monitor.c (monitor_open): Include "gdbthread.h". Clear thread
5882 * remote.c (record_currthread): Upgrade the main thread and its
5883 entry in the thread list if this is the first time we hear about
5885 (remote_thread_alive): Consider magic_null_ptid or a ptid without
5886 a tid member always alive.
5887 (remote_find_new_threads): Don't update the main thread here.
5888 (remote_start_remote): Clear thread list here. Always add the
5890 (extended_remote_attach_1): Add the main thread here.
5891 (extended_remote_mourn_1): Re-add the main thread here.
5892 (extended_remote_create_inferior_1): Add a main thread.
5894 * Makefile.in (monitor.o): Depend on $(gdbthread_h).
5896 2008-06-27 Pedro Alves <pedro@codesourcery.com>
5898 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
5900 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
5902 (general_thread, continue_thread): Change type to ptid_t.
5903 (record_currthread): Take a ptid_t parameter instead of an
5905 (MAGIC_NULL_PID): Delete.
5906 (set_thread): Take a ptid_t parameter and adjust.
5907 (set_general_thread, set_continue_thread): New.
5908 (remote_thread_alive, remote_newthread_step)
5909 (remote_current_thread, remote_find_new_threads)
5910 (remote_threads_info, remote_start_remote, remote_vcont_resume)
5911 (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
5912 (threadalive_test, remote_pid_to_str)
5913 (remote_get_thread_local_address): Adjust.
5914 (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
5915 and any_thread_ptid.
5917 2008-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5919 * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
5920 * configure: Regenerated.
5922 2008-06-26 Joel Brobecker <brobecker@adacore.com>
5924 * dwarf2read.c (read_attribute_value): Treat size attribute
5925 values of 0xffffffff as if the attribute value was zero.
5927 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
5929 * linux-nat.c: Add description of overall logic.
5931 2008-06-26 Daniel Jacobowitz <dan@codesourcery.com>
5933 * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
5934 (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
5935 all dependencies on $(gdb_stdint_h).
5936 (distclean): Do not delete gdb_stdint.h.
5937 * acinclude.m4: Do not use stdint.m4.
5938 * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
5939 uintptr_t, and gdb_stdint.h.
5940 * defs.h: Include <stdint.h>.
5941 * gdb_thread_db.h: Assume stdint.h is already included.
5942 * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
5943 rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
5944 include gdb_stdint.h.
5945 * configure, config.in: Regenerate.
5947 2008-06-26 Joseph Myers <joseph@codesourcery.com>
5949 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
5950 decimal floating-point values in GPRs for soft-float.
5951 (do_ppc_sysv_return_value): Handle returning decimal
5952 floating-point values in GPRs for soft-float.
5954 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
5956 * target.c (target_read_until_error): New.
5957 * target.h (target_read_until_error): Declare.
5958 * mi/mi-main.c (mi_cmd_data_read_memory): Use
5959 target_read_until_error.
5961 2008-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5963 Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
5964 * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
5965 after the DECFLOAT detection to fix a memory leak. Remove the
5966 redundant NUM initialization. Protect the DECFLOAT detection memory
5967 access before the P block. Restore the P memory content for the
5970 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
5972 Kill the return value for all MI command functions.
5973 * mi/mi-cmds.h (enum mi_cmd_result): Remove.
5974 (mi_cmd_argv_ftype): Change return type to void.
5976 * mi/mi-main.c: Adjust all function that implement
5977 MI commands to return nothing.
5978 (struct captured_mi_execute_command_actions):
5979 Remove the rc field.
5980 (mi_cmd_execute): Return nothing.
5981 (mi_execute_async_cli_command): Return nothing.
5982 (mi_cmd_exec_interrupt): Don't print ^done here.
5983 (mi_cmd_target_select): Don't print ^connected here.
5984 (captured_mi_execute_command): Don't check for MI_CMD_DONE.
5985 Special-case -target-select and output ^connected, not ^done.
5987 * mi/mi-cmd-break.c: Adjust.
5988 * mi/mi-cmd-disas.c: Adjust.
5989 * mi/mi-cmd-env.c: Adjust.
5990 * mi/mi-cmd-file.c: Adjust.
5991 * mi/mi-cmd-stack.c: Adjust.
5992 * mi/mi-cmd-target.c: Adjust.
5993 * mi/mi-cmd-var.c: Adjust.
5994 * mi/mi-interp.c: Adjust.
5995 * mi/mi-symbol-cmds.c: Adjust.
5997 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
5999 Emit ^running via observer.
6000 * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
6002 (mi_on_resume): Print ^running if not previously output.
6003 * mi/mi-main.c (running_result_record_printed): New.
6004 (captured_mi_execute_command): Reset
6005 running_result_record_printed. Use running_result_record_printed
6006 to decide if we should skip ^done.
6007 (mi_execute_async_cli_command): Don't print ^running here.
6008 * mi/mi-main.h (current_token, running_result_record_printed):
6011 2008-06-24 Michael Snyder <msnyder@specifix.com>
6013 * infrun.c (_initialize_infrun): White space and typo fix.
6015 2008-06-23 Christopher Faylor <me.gdb.changelog@cgf.cx>
6017 * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
6018 (do_initial_win32_stuff): Fix problem with inability to set breakpoints
6019 when first loading DLL with "dll" command.
6021 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6023 * gnu-nat.c (proc_string): Use capital T for "Thread".
6025 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6027 * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
6029 2008-06-18 Joel Brobecker <brobecker@adacore.com>
6031 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
6032 the target cannot run.
6034 2008-06-18 Joel Brobecker <brobecker@adacore.com>
6036 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
6037 we're attaching to a running process.
6039 2008-06-18 Pierre Muller <muller@ics.u-strasbg.fr>
6041 * win32-nat.c (handle_load_dll): Give dll name and load address
6042 if debug_events is on.
6043 (handle_unload_dll): Likewise.
6045 2008-06-14 Vladimir Prus <vladimir@codesourcery.com>
6047 Don't suppress *running when doing finish.
6048 * infcall.c (call_function_by_hand): Set both
6049 suppress_resume_observer and suppress_stop_observer.
6050 * infcmd.c (suppress_run_stop_observers): Split into...
6051 (suppress_resume_observer, suppress_stop_observer): ...those.
6052 (finish_command_continuation): Clear suppress_stop_observer.
6053 (finish_command): Set suppress_stop_observer.
6054 * inferior.h (suppress_run_stop_observers): Split into...
6055 (suppress_resume_observer, suppress_stop_observer): ...those.
6056 * infrun.c (normal_stop): Check for suppress_stop_observer.
6057 * thread.c (set_running): Check for suppress_resume_observer.
6059 2008-06-12 Pedro Alves <pedro_alves@portugalmail.pt>
6060 Pierre Muller <muller@ics.u-strasbg.fr>
6062 * gdbarch.sh (gdbarch_skip_main_prologue): New.
6063 * gdbarch.h, gdbarch.c: Regenerate.
6064 * i386-tdep.h (i386_skip_main_prologue): Declare.
6065 * i386-tdep.c (i386_skip_main_prologue): New.
6066 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
6067 i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
6068 * symtab.c (find_function_start_sal): When pc points at the "main"
6069 function, call gdbarch_skip_main_prologue.
6071 2008-06-11 Daniel Jacobowitz <dan@codesourcery.com>
6073 * value.c (value_primitive_field): Fetch lazy register values.
6075 2008-06-11 Pedro Alves <pedro@codesourcery.com>
6077 * NEWS: Mention support removal of undocumented S AA p PID stop
6080 * remote.c (remote_wait): Remove undocumented S AA p PID support.
6082 2008-06-10 Stan Shebs <stan@codesourcery.com>
6084 * MAINTAINERS: Update my affiliation and address.
6086 2008-06-10 Andreas Schwab <schwab@suse.de>
6088 * top.c (print_gdb_version): Don't print final newline.
6090 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6093 * Makefile.in: Update dependencies.
6094 * gdbthread.h (struct thread_info): New field
6096 (set_running, is_running): New.
6097 * thread.c (set_running, is_running): New.
6098 * inferior.h (suppress_normal_stop_observer): Rename to...
6099 (suppress_run_stop_observers): ..this.
6100 * infcmd.c (suppress_normal_stop_observer): Rename to...
6101 (suppress_run_stop_observers): ..this.
6102 (finish_command_continuation, finish_command): Adjust.
6103 * infcall.c (call_function_by_hand): Adjust.
6104 * infrun.c (normal_stop): Call set_running.
6105 * target.c (target_resume): New. Call set_running.
6106 * target.h (target_resume): Convert from macro to
6109 * mi/mi-interp.c (mi_on_resume): New.
6110 (mi_interpreter_init): Register mi_on_resume.
6112 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6114 Use observers to report stop events in MI.
6115 * mi/mi-interp.c (mi_on_normal_stop): New.
6116 (mi_interpreter_init): Register mi_on_normal_stop.
6117 (mi_interpreter_exec_continuation): Remove.
6118 (mi_cmd_interpreter_exec): Don't register the above.
6119 * mi/mi-main.c (captured_mi_execute_command): Don't care
6120 about sync_execution.
6121 (mi_execute_async_cli_command): Don't install continuation. Don't
6123 (mi_exec_async_cli_cmd_continuation): Remove.
6125 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6127 Suppress normal stop observer when it's problematic.
6128 * inferior.h (suppress_normal_stop_observer): New.
6129 * infcall.c (call_function_by_hand): Disable stop events when
6130 doing function calls.
6131 * infmcd.c (suppress_normal_stop_observer): New.
6132 (finish_command_continuation): Call normal_stop observer
6134 (finish_command): Disable stop events inside proceed.
6135 * infrun.c (normal_stop): Don't call normal stop observer if
6136 suppressed of if multi-step is in progress.
6138 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6141 * infrun.c (finish_command): Don't pass cleanup
6143 (finish_command_continuation): Don't grab cleanup from
6144 the passed data, as we don't use, and cannot, use it anyway.
6146 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6148 Introduce common cleanup for restoring integers.
6149 * defs.h (make_cleanup_restore_integer): New declaration.
6150 (struct cleanup): New field free_arg.
6151 (make_my_cleanup_2): New.
6152 * utils.c (restore_integer_closure, restore_integer)
6153 (make_cleanup_restore_integer): New.
6154 (make_my_cleanup): Initialize the free_arg field and
6155 renamed to make_my_cleanup_2.
6156 (do_my_cleanups): Call free_arg.
6157 (discard_cleanups): Call free_arg.
6158 * breakpoint.c (restore_always_inserted_mode): Remove.
6159 (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
6161 2008-06-09 Doug Evans <dje@google.com>
6163 * remote.c (remote_wait): Include beginning of malformed packet
6166 2008-06-09 Tom Tromey <tromey@redhat.com>
6168 * completer.c (complete_line): Don't special-case
6169 expression_completer.
6170 (expression_completer): Only pass last word to
6172 * c-exp.y (yylex): Check 'token', not 'operator'.
6174 2008-06-09 Daniel Jacobowitz <dan@codesourcery.com>
6176 * configure.ac (build_warnings): Add -Wno-format for mingw.
6177 * configure: Regenerated.
6179 2008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
6181 * NEWS: Make indentation consistent. Move exec tracing entry out
6182 of remote packet list.
6184 2008-06-06 Tom Tromey <tromey@redhat.com>
6186 * value.h (evaluate_subexpression_type, extract_field_op):
6188 * printcmd.c (_initialize_printcmd): Use expression_completer for
6189 'p', 'inspect', 'call'.
6190 * parser-defs.h (parse_field_expression): Declare.
6191 * parse.c: Include exceptions.h.
6192 (in_parse_field, expout_last_struct): New globals.
6193 (mark_struct_expression): New function.
6194 (prefixify_expression): Return int.
6195 (prefixify_subexp): Return int. Use expout_last_struct.
6196 (parse_exp_1): Update.
6197 (parse_exp_in_context): Add 'out_subexp' argument. Handle
6199 (parse_field_expression): New function.
6200 * expression.h (parse_field_expression): Declare.
6201 (in_parse_field): Likewise.
6202 * eval.c (evaluate_subexpression_type): New function.
6203 (extract_field_op): Likewise.
6204 * completer.h (expression_completer): Declare.
6205 * completer.c (expression_completer): New function.
6206 (count_struct_fields, add_struct_fields): New functions.
6207 * c-exp.y (yyparse): Redefine.
6208 (COMPLETE): New token.
6209 (exp): New productions.
6210 (saw_name_at_eof, last_was_structop): New globals.
6211 (yylex): Return COMPLETE when needed. Recognize in_parse_field.
6212 (c_parse): New function.
6213 * breakpoint.c (_initialize_breakpoint): Use expression_completer
6214 for watch, awatch, and rwatch.
6215 * Makefile.in (parse.o): Depend on exceptions_h.
6217 2008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
6220 * gdb/valopts.c (find_overload_match): Handle references
6223 2008-06-06 Paul N. Hilfinger <hilfinger@adacore.com>
6225 * ada-lang.c (ada_value_assign): Correct big-endian case to take into
6226 account the bitsize of the 'from' operand.
6228 2008-06-06 Pedro Alves <pedro@codesourcery.com>
6230 * annotate.h (annotate_thread_changed): Declare.
6232 2008-06-06 Nick Roberts <nickrob@snap.net.nz>
6234 * annotate.c (annotate_thread_changed): New function.
6235 * thread.c (thread_command) : Use it.
6236 * infrun.c (normal_stop): Use it.
6238 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
6239 Nathan Sidwell <nathan@codesourcery.com>
6240 Joseph Myers <joseph@codesourcery.com>
6242 * acinclude.m4: Include ../config/acx.m4.
6243 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
6244 * configure, config.in: Regenerate.
6245 * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
6247 * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
6249 2008-06-05 Pedro Alves <pedro@codesourcery.com>
6251 Replace 'target async' by 'maintenance set remote-async' and
6252 'target remote' combination.
6254 * remote.c (remote_async_wait): Merge into remote_wait, and
6256 (remote_async_permitted, remote_async_permitted_set): New
6258 (set_maintenance_remote_async_permitted)
6259 (show_maintenance_remote_async_permitted): New functions.
6260 (remote_async_ops, extended_async_remote_ops): Delete.
6261 (remote_async_open, extended_remote_async_open): Delete.
6262 (remote_open_1): Drop async_p parameter. Update callers. Replace
6263 async_p with remote_async_permitted checks.
6264 (extended_async_remote_attach): Delete.
6265 (remote_resume, remote_async_resume): Merge and leave remote_resume.
6266 (remote_async_terminal_inferior): Rename to...
6267 (remote_terminal_inferior): ... this, and add
6268 remote_async_termitted check.
6269 (remote_async_terminal_ours): Rename to...
6270 (remote_terminal_ours): ... this, and add remote_async_termitted
6272 (remote_wait, remote_async_wait): Merge and leave remote_wait
6274 (remote_kill, remote_async_kill): Merge and leave remote_kill
6276 (remote_async_mourn, extended_async_remote_mourn): Delete.
6277 (extended_remote_create_inferior_1): Drop async_p parameter.
6278 Update callers. Always use extended_remote_ops.
6279 (extended_remote_async_create_inferior): Delete.
6280 (remote_return_zero): Delete.
6281 (init_remote_ops): Register remote_can_async_p, remote_async,
6282 remote_async_mask, remote_terminal_inferior and
6283 remote_terminal_ours.
6284 (remote_can_async_p, remote_is_async_p): Check for
6285 remote_async_permitted.
6286 (init_remote_async_ops, init_extended_async_remote_ops): Remove.
6287 (set_remote_cmd): Don't add async and extended-async targets.
6288 (_initialize_remote): Add set/show remote-async maintenance
6291 2008-06-05 Pedro Alves <pedro@codesourcery.com>
6293 * remote.c (kill_kludge): Delete.
6294 (remote_wait, remote_async_wait): Don't set it.
6295 (remote_kill, remote_async_kill): Don't do anything with it.
6297 2008-06-05 Pedro Alves <pedro@codesourcery.com>
6299 * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
6301 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
6303 * bcache.c (bcache_data): Call deprecated_bcache_added function.
6304 (deprecated_bcache_added): New function name. Body of function
6305 bcache_data is used here with the addition of 'added' argument.
6306 * bcache.h (deprecated_bcache_added): New function.
6307 * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
6308 work from add_psymbol_to_list - initialises partial symbol and stashes
6309 it in objfile's cache.
6310 (append_psymbol_to_list): New helper function, takes other part of
6311 work from add_psymbol_to_list - adds partial symbol to the given list.
6312 (add_psymbol_to_list): Call helper functions instead of doing work
6313 here. If adding to global list, do not duplicate partial symbols in the
6316 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
6318 * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
6319 'exception caught|thrown' message.
6321 2008-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6323 * Makefile.in: Update dependencies.
6324 * dwarf2expr.c: New include "gdb_assert.h".
6325 (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
6326 (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
6327 (execute_stack_op): Error out on too large RECURSION_DEPTH.
6328 Increase/decrease RECURSION_DEPTH around the function.
6330 2008-06-05 Daniel Jacobowitz <dan@codesourcery.com>
6332 * remote.c (get_offsets): Handle a single segment.
6333 * symfile.c (symfile_map_offsets_to_segments): Allow more bases
6336 2008-06-03 Daniel Jacobowitz <dan@codesourcery.com>
6338 * solib-svr4.c (struct lm_info): Add lm_addr.
6339 (main_lm_addr): New.
6340 (svr4_default_sos): Set lm_addr.
6341 (svr4_current_sos): Set lm_addr and main_lm_addr.
6342 (svr4_fetch_objfile_link_map): Rewrite.
6343 (svr4_clear_solib): Clear main_lm_addr.
6345 2008-06-03 Michael Snyder <msnyder@redhat.com>
6346 Joseph Myers <joseph@codesourcery.com>
6348 * mips-tdep.c (mips_eabi_return_value): Replace stub that always
6349 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
6351 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
6353 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
6355 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
6357 * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
6359 2008-06-01 Joel Brobecker <brobecker@adacore.com>
6361 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
6362 treat pointers in data space as function descriptors if the
6363 target address is also in the data space.
6365 2008-05-30 Joel Brobecker <brobecker@adacore.com>
6367 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
6368 the trad-frame register value for the SP register.
6370 2008-05-29 Mark Kettenis <kettenis@gnu.org>
6372 * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
6374 2008-05-28 Joel Brobecker <brobecker@adacore.com>
6376 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
6377 that identifies function descriptors outside of the .opd section.
6379 2008-05-28 Aleksandar Ristovski <aristovski@qnx.com>
6381 * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
6382 temporary catchpoints. In MI add missing fields 'reason', 'disp',
6384 (print_mention_exception_catchpoint): Add 'Temporary' for temporary
6386 (handle_gnu_v3_exceptions): Use tempflag.
6388 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
6390 Refactor varobj_update interface.
6391 * varobj.c (varobj_update): Report changes as vector. Also
6392 return not just a list of varobj, but a list of special structures
6393 that tell what exactly has changed.
6394 * varobj.h (enum varobj_update_error): Rename to
6395 varobj_scope_status.
6396 (struct varobj_update_result_t): New.
6397 (varobj_update): Adjust prototype.
6398 * mi/mi-cmd-var.c: Adjust for changes.
6400 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
6402 * varobj.c (varobj_update): Fix comment typo.
6405 2008-05-26 Joel Brobecker <brobecker@adacore.com>
6407 Set the symtab field of symbols read from ECOFF debugging entries.
6408 * mdebugread.c (add_symbol): Add new parameter symtab.
6409 (parse_symbol): Update calls to add_symbol throughout.
6411 2008-05-27 Andreas Schwab <schwab@suse.de>
6413 * symtab.h (enum address_class): Remove LOC_REGPARM and
6415 (struct symbol): Add is_argument.
6416 (SYMBOL_IS_ARGUMENT): Define.
6418 * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
6419 * buildsym.c (finish_block): Likewise.
6420 * stack.c (print_frame_args, print_block_frame_locals)
6421 (print_frame_arg_vars): Likewise.
6422 * symtab.c (lookup_block_symbol): Likewise.
6423 * tracepoint.c (add_local_symbols): Likewise.
6424 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
6426 * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
6427 * dwarf2read.c (new_symbol): Likewise.
6428 * mdebugread.c (parse_symbol): Likewise.
6429 * stabsread.c (define_symbol): Likewise.
6431 * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
6432 and LOC_COMPUTED_ARG.
6433 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
6434 * ax-gdb.c (gen_var_ref): Likewise.
6435 * eval.c (evaluate_subexp_for_address): Likewise.
6436 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
6437 * m2-exp.y (yylex): Likewise.
6438 * printcmd.c (address_info): Likewise.
6439 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
6440 * tracepoint.c (collect_symbol, scope_info): Likewise.
6442 2008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
6444 * gdbarch.sh: Added new gdbarch struct
6445 core_regset_sections.
6446 * gdbarch.c: Refreshed.
6447 * gdbarch.h: Refreshed.
6448 * regset.h (core_regset_section): Declared.
6449 * linux-nat.c (linux_nat_do_thread_registers): Added
6450 support for the new gdbarch struct core_regset_sections.
6451 * utils.c (host_address_to_string): New function.
6452 * defs.h (host_address_to_string): New prototype.
6453 * i386-linux-tdep.c (i386_regset_rections): New register
6454 sections list for i386.
6455 (i386_linux_init_abi): Initialized new gdbarch struct
6456 core_regset_sections.
6457 * Makefile.in: Updated to reflect dependency changes.
6458 * ppc-linux-tdep.c (ppc_regset_sections): Register
6459 sections list for ppc.
6460 (ppc_linux_init_abi): Initialized new gdbarch struct
6461 core_regset_sections
6463 2008-05-24 Andreas Schwab <schwab@suse.de>
6465 * linespec.c (decode_objc): Save current language around call to
6468 2008-05-23 Joel Brobecker <brobecker@adacore.com>
6470 * valprint.h (get_array_bounds): Renames get_array_low_bound.
6471 * valprint.c (get_array_bounds): Renames get_array_low_bound.
6472 Return the proper bound value if the array index type is an
6473 enumerated type. Compute the high bound if requested.
6474 (val_print_array_elements): Handle the case when the array
6475 element has a null size.
6476 * ada-valprint.c (print_optional_low_bound): Add handling
6477 for empty arrays or arrays of zero-size elements.
6478 (ada_val_print_array): New function, extracted out from
6479 ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
6480 handle empty arrays and arrays of zero-size elements.
6481 (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
6482 code by call to ada_val_print_array.
6483 (ada_value_print): Remove handling of null array. The handling
6484 was incomplete and is now better handled by ada_val_print_array.
6486 2008-05-23 Markus Deuling <deuling@de.ibm.com>
6488 * annotate.c (annotate_source, annotate_frame_begin): Replace
6489 deprecated_print_address_numeric with paddress.
6490 * cli/cli-cmds.c (list_command, edit_command): Likewise.
6491 * tui/tui-stack.c (tui_make_status_line): Likewise.
6493 * defs.h (deprecated_print_address_numeric): Remove.
6494 * printcmd.c (deprecated_print_address_numeric): Remove.
6495 * maint.c (maint_print_section_info): Fix comment.
6497 2008-05-23 Markus Deuling <deuling@de.ibm.com>
6499 * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
6500 print_binary_chars, print_char_chars): Add byte_order parameter and
6501 replace gdbarch_byte_order.
6502 (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
6503 expressions and remove them. Remove unused TWO_TO_FOURTH.
6504 (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
6505 endianness. Update call to print_hex_chars.
6506 * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
6507 print_binary_chars, print_char_chars): Add byte_order parameter.
6508 * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
6509 get at the endianness. Update print_*_char calls to use byte_order.
6511 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
6513 * symtab.h (struct symbol): Make "aux_value" member a void pointer
6515 (SYMBOL_LOCATION_BATON): Update.
6517 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
6519 * symtab.h (enum address_class): Remove LOC_BASEREG and
6521 (struct symbol): Remove "basereg" member of "aux_value" union.
6522 (SYMBOL_BASEREG): Remove.
6524 * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
6526 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
6527 (ada_add_block_symbols): Likewise.
6528 * ax-gdb.c (gen_var_ref): Likewise.
6529 * buildsym.c (finish_block): Likewise.
6530 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
6531 * m2-exp.y (yylex): Likewise.
6532 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
6533 * printcmd.c (address_info): Likewise.
6534 * stack.c (print_frame_args, print_block_frame_locals): Likewise.
6535 (print_frame_arg_vars): Likewise.
6536 * symmisc.c (print_symbol): Likewise.
6537 * symtab.c (lookup_block_symbol): Likewise.
6538 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
6539 (scope_info): Likewise.
6541 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
6543 * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
6545 * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
6546 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
6547 (ada_add_block_symbols): Likewise.
6548 * ax-gdb.c (gen_var_ref): Likewise.
6549 * buildsyms.c (finish_block): Likewise.
6550 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
6551 * m2-exp.y (yylex): Likewise.
6552 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
6553 * printcmd.c (address_info): Likewise.
6554 * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
6555 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
6556 * symtab.c (lookup_block_symbol): Likewise.
6557 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
6558 (scope_info): Likewise.
6560 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
6562 * symtab.h (enum address_class): Remove LOC_INDIRECT and
6563 LOC_HP_THREAD_LOCAL_STATIC.
6565 * findvar.c (symbol_read_needs_frame, read_var_value): Do not
6566 handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
6567 (read_var_value): Likewise.
6568 * buildsym.c (finish_block): Likewise.
6569 * objfiles.c (objfile_relocate): Likewise.
6570 * printcmd.c (address_info): Likewise.
6571 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
6572 * tracepoint.c (scope_info): Likewise.
6574 2008-05-21 Markus Deuling <deuling@de.ibm.com>
6575 Maxim Grigoriev <maxim2405@gmail.com>
6577 * xtensa-tdep.c (xtensa_read_register): Remove.
6578 (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
6579 argument litbase to call0_frame_cache().
6580 (call0_track_op, call0_analyze_prologue)
6581 (call0_frame_cache): Use extra argument litbase.
6583 2008-05-21 Joel Brobecker <brobecker@adacore.com>
6585 * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
6587 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6589 * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
6591 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6593 * alpha-mdebug-tdep.c: Include "trad-frame.h".
6594 (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
6595 struct trad_frame_saved_reg *.
6596 (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
6597 trad_frame_alloc_saved_regs. Update accesses. Record previous
6598 value of SP as being vfp.
6599 (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
6600 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
6602 2008-05-21 Markus Deuling <deuling@de.ibm.com>
6604 * score-tdep.c (score_print_insn): Get the current endianess from
6605 disassemble_info instead of gdbarch_byte_order.
6607 2008-05-21 Pedro Alves <pedro@codesourcery.com>
6609 * frame.c (get_prev_frame_1): Build frame id before setting
6610 this_frame->prev_p, not after.
6612 2008-05-21 Nick Roberts <nickrob@snap.net.nz>
6614 * annotate.c (annotate_new_thread): New function for new-thread
6616 * annotate.h: (annotate_new_thread): New extern.
6617 * thread.c (add_thread_with_info): Use it.
6618 * Makefile.in (thread.o): Add dependency on annotate.h.
6620 2008-05-20 Joel Brobecker <brobecker@adacore.com>
6622 * win32-nat.c (win32_wait): Block the control-c event while
6623 waiting for a debug event.
6625 2008-05-19 Pedro Alves <pedro@codesourcery.com>
6627 * symtab.h (lookup_symbol_in_language): Update comment.
6628 * symtab.c (lookup_symbol_aux_block): Update comment.
6629 * ada-lang.c (ada_lookup_symbol_list): Update comment.
6631 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
6633 * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
6634 (lookup_symbol): Likewise.
6635 * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
6636 (lookup_symbol): Likewise.
6637 (search_symbols): Update.
6639 * linespec.c (find_methods, collect_methods): Update.
6640 (add_matching_methods, add_constructors): Update.
6641 (decode_compound, decode_dollar, decode_variable): Update.
6642 (lookup_prefix_sym): Update.
6644 (symbol_found): Remove SYM_SYMTAB parameter.
6645 Use SYMBOL_SYMTAB (sym) instead.
6647 * gdbtypes.c (lookup_typename): Update.
6648 (lookup_struct, lookup_union, lookup_enum): Update.
6649 (lookup_template_type): Update.
6650 (check_typedef): Update.
6651 * language.c (lang_bool_type): Update.
6652 * mdebugread.c (parse_procedure): Update.
6653 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6654 * parse.c (write_dollar_variable): Update.
6655 * printcmd.c (address_info): Update.
6656 * source.c (select_source_symtab): Update.
6657 * stack.c (print_frame_args, print_frame_arg_vars): Update.
6658 * valops.c (find_function_in_inferior): Update.
6659 (value_struct_elt_for_reference): Update.
6660 * value.c (value_static_field, value_fn_field): Update.
6662 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6663 * arm-tdep.c (arm_skip_prologue): Update.
6664 * mt-tdep.c (mt_skip_prologue): Update.
6665 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
6667 * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
6668 * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
6669 (add_defn_to_vec): Likewise.
6670 (ada_add_block_symbols): Likewise.
6671 (lookup_cached_symbol, cache_symbol): Likewise.
6672 (standard_lookup): Update.
6673 (ada_lookup_symbol_list): Update.
6675 * c-valprint.c (c_val_print): Update.
6676 * cp-support.c (cp_lookup_rtti_type): Update.
6677 * jv-lang.c (java_lookup_class, get_java_object_type): Update.
6678 * objc-lang.c (lookup_struct_typedef, find_imps): Update.
6679 * p-valprint.c (pascal_val_print): Update.
6680 * scm-lang.c (scm_lookup_name): Update.
6686 * objc-exp.y: Update.
6689 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
6691 * language.h (struct language_defn): Remove SYMTAB parameter from
6692 la_lookup_symbol_nonlocal callback function pointer.
6694 * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
6695 (ada_lookup_encoded_symbol): Likewise.
6696 * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
6697 Always call fixup_symbol_section.
6698 (ada_lookup_symbol): Remove SYMTAB parameter.
6699 (ada_lookup_symbol_nonlocal): Likewise.
6700 * ada-exp.y (write_object_renaming): Update.
6701 (find_primitive_type): Likewise.
6703 * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
6704 (cp_lookup_symbol_namespace): Likewise.
6705 * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
6706 (lookup_symbol_file): Likewise.
6707 (lookup_possible_namespace_symbol): Likewise.
6708 (cp_lookup_symbol_nonlocal): Likewise.
6709 (cp_lookup_symbol_namespace): Likewise.
6710 (cp_lookup_nested_type): Update.
6712 * scm-valprint.c (scm_inferior_print): Update.
6713 * valops.c (value_maybe_namespace_elt): Update.
6715 * solist.h (struct target_so_ops): Remove SYMTAB parameter from
6716 lookup_lib_global_symbol callback function pointer.
6717 (solib_global_lookup): Remove SYMTAB parameter.
6718 * solib.c (solib_global_lookup): Remove SYMTAB parameter.
6719 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
6721 * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
6722 (lookup_symbol_static): Likewise.
6723 (lookup_symbol_global): Likewise.
6724 (lookup_symbol_aux_block): Likewise.
6725 (lookup_global_symbol_from_objfile): Likewise.
6726 * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
6727 (lookup_symbol_aux_local): Likewise.
6728 (lookup_symbol_aux_block): Likewise.
6729 (lookup_symbol_aux_symtabs): Likewise.
6730 (lookup_symbol_aux_psymtabs): Likewise.
6731 (lookup_global_symbol_from_objfile): Likewise.
6732 (basic_lookup_symbol_nonlocal): Likewise.
6733 (lookup_symbol_static): Likewise.
6734 (lookup_symbol_global): Likewise.
6736 (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
6738 2008-05-17 Pedro Alves <pedro@codesourcery.com>
6740 * remote.c (init_extended_remote_ops): Fix typo.
6742 2008-05-16 Pedro Alves <pedro@codesourcery.com>
6744 * NEWS: Mention new DICOS x86 target configuration.
6746 2008-05-16 Pedro Alves <pedro@codesourcery.com>
6747 Ulrich Weigand <uweigand@de.ibm.com>
6749 * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
6750 * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
6752 * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
6753 use it instead of ginfo->value.address. Look up minimal symbol by
6754 address and name. Assume OBJFILE is non-NULL.
6755 (fixup_symbol_section): Ensure we always have an objfile to look
6756 into. Extract and pass to fixup_section the symbol's address that
6757 will match the minimal symbol's address.
6758 (fixup_psymbol_section): Likewise.
6760 (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
6761 overlays and the addrmap returned the wrong section.
6763 * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
6764 calling fixup_symbol_section.
6766 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6768 * minsyms.c: Include "target.h".
6769 (find_solib_trampoline_target): Handle minimal symbols pointing
6770 to function descriptors as well.
6771 * Makefile.in (minsyms.o): Update dependencies.
6773 * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
6774 (ppc64_standard_linkage1): ... this. Fix optional instructions.
6775 (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
6776 (PPC64_STANDARD_LINKAGE1_LEN): ... this.
6777 (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
6778 (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
6779 (ppc64_standard_linkage_target): Rename to ...
6780 (ppc64_standard_linkage1_target): ... this.
6781 (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
6782 (ppc64_skip_trampoline_code): Support three variants of standard
6783 linkage stubs. Call find_solib_trampoline_target to handle
6786 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6788 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
6789 ppc64_sysv_abi_adjust_breakpoint_address.
6790 * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
6791 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
6793 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6795 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
6796 (ppc_linux_init_abi): Install find_solib_trampoline_target instead
6797 of ppc_linux_skip_trampoline_code.
6799 2008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
6801 * gdbarch.sh: Delete dwarf_reg_to_regnum.
6802 * gdbarch.c, gdbarch.h: Regenerated.
6803 * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
6804 hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
6805 s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
6807 2008-05-15 Pedro Alves <pedro@codesourcery.com>
6809 * linux-nat.c (trap_ptid): Delete.
6810 (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
6812 * linux-thread-db.c (thread_db_wait): Adjust.
6814 2008-05-15 Joel Brobecker <brobecker@adacore.com>
6816 * linespec.c (decode_line_1): Fix a couple of comments.
6818 2008-05-15 Alan Modra <amodra@bigpond.net.au>
6820 * dbxread.c: Formatting.
6821 (INTERNALIZE_SYMBOL): Init n_other.
6822 (set_namestring): Take pointer to nlist arg rather than struct
6823 copy. Update all callers.
6825 2008-05-15 Andreas Schwab <schwab@suse.de>
6827 * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
6828 (dwarf2read.o): Add $(addrmap_h).
6830 2008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6832 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
6833 (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
6834 to handle ppc32 PLT entries.
6835 (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
6838 2008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6840 * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
6841 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
6842 lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
6843 (lookup_minimal_symbol_by_pc_section): Use
6844 lookup_minimal_symbol_by_pc_section_1.
6845 (lookup_solib_trampoline_symbol_by_pc): Likewise.
6847 2008-05-13 Joel Brobecker <brobecker@adacore.com>
6849 * findcmd.c: Add #include "gdb_stdint.h".
6850 * Makefile.in (findcmd.o): Update dependencies.
6852 2008-05-11 David S. Miller <davem@davemloft.net>
6854 * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
6855 long double size override, Linux does use 128-bit now.
6857 * sparc-linux-tdep.c (PSR_SYSCALL): Define.
6858 (sparc_linux_write_pc): New function.
6859 (sparc32_linux_init_abi): Register it.
6860 * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
6861 (sparc64_linux_write_pc): New function.
6862 (sparc64_linux_init_abi): Register it.
6864 * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
6865 dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
6867 2008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6869 * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
6870 and info.tdep_info before calling gdbarch_init_osabi.
6872 2008-05-09 Joel Brobecker <brobecker@adacore.com>
6874 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
6875 the type of the right hand side of the assignment to the type
6876 of the left hand side if the left hand side is a convenience
6879 2008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
6881 * NEWS: Mention gdbserver bi-arch capability.
6883 2008-05-09 Doug Evans <dje@google.com>
6886 * NEWS: Document find command and qSearch:memory packet.
6887 * Makefile.in (SFILES): Add findcmd.c.
6888 (COMMON_OBJS): Add findcmd.o.
6889 (findcmd.o): New rule.
6890 * findcmd.c: New file.
6891 * target.h (target_ops): New member to_search_memory.
6892 (simple_search_memory): Declare.
6893 (target_search_memory): Declare.
6894 * target.c (simple_search_memory): New fn.
6895 (target_search_memory): New fn.
6896 * remote.c (PACKET_qSearch_memory): New packet kind.
6897 (remote_search_memory): New fn.
6898 (init_remote_ops): Init to_search_memory.
6899 (init_extended_remote_ops): Ditto.
6900 (_initialize_remote): Add qSearch:memory packet config command.
6902 2008-05-09 Eli Zaretskii <eliz@gnu.org>
6904 * thread.c (_initialize_thread): Don't use commas and periods in
6905 first line of doc string of "set/show print thread-events".
6907 2008-05-08 Joel Brobecker <brobecker@adacore.com>
6909 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
6910 Update for unwinder changes.
6912 2008-05-08 Joel Brobecker <brobecker@adacore.com>
6914 * frame.c (get_frame_base_address, get_frame_locals_address)
6915 (get_frame_args_address): Pass the correct frame when calling
6916 frame_base_find_by_frame.
6918 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6920 * remote.c (extended_remote_attach_1): Call target_find_description.
6922 2008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
6924 * remote.c (extended_remote_create_inferior_1): Clean up
6925 before marking the target running.
6927 2008-05-08 Joel Brobecker <brobecker@adacore.com>
6929 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
6932 2008-05-07 Joel Brobecker <brobecker@adacore.com>
6934 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
6935 sparc64-sol2-tdep.c: Update for unwinder changes.
6937 2008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
6939 * cp-support.c (mangled_name_to_comp): Initialize storage.
6940 (unqualified_name_from_comp): Likewise.
6942 2008-05-07 Jie Zhang <jie.zhang@analog.com>
6944 * remote.c (remote_insert_breakpoint): Call get_remote_state
6945 after gdbarch_breakpoint_from_pc is called.
6946 (remote_insert_hw_breakpoint): Likewise.
6948 2008-05-06 Joel Brobecker <brobecker@adacore.com>
6950 * valprint.c (val_print): Add new language parameter and use it
6951 instead of using the current_language. Update calls to val_print
6953 (common_val_print): Add new langauge parameter and pass it to
6955 * value.h (struct language_defn): Add opaque declaration.
6956 (val_print, common_val_print): Update declarations.
6957 * stack.c (print_frame_args): Update call to common_val_print
6958 using the appropriate language.
6959 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
6960 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
6961 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
6962 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
6963 #include "language.h" if necessary.
6964 Update calls to val_print and common_val_print.
6965 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
6966 Update dependencies.
6968 2008-05-06 Joel Brobecker <brobecker@adacore.com>
6970 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
6971 pointing inside a non-executable section as function descriptors.
6973 2008-05-06 Pedro Alves <pedro@codesourcery.com>
6975 * inf-loop.c (inferior_event_handler): Run all continuations and
6976 print any language change before running the breakpoint commands.
6978 2008-05-06 Joel Brobecker <brobecker@adacore.com>
6980 * frame-unwind.c (frame_unwind_got_bytes): New function.
6981 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
6982 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
6983 for unwinder changes.
6985 2008-05-05 Doug Evans <dje@google.com>
6987 * NEWS: Mention new /m modifier for disassemble command.
6988 * cli/cli-cmds.c (print_disassembly): New function.
6989 (disassemble_current_function): New function
6990 (disassemble_command): Recognize /m modifier, print mixed
6992 (init_cli_cmds): Update disassemble help text.
6994 2008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
6996 * xtensa-tdep.c: Update for unwinder changes.
6998 2008-05-05 Andreas Schwab <schwab@suse.de>
7000 Update m68k port for unwinder changes.
7001 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
7002 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
7003 (m68k_frame_unwind): Use default_frame_sniffer.
7004 (m68k_frame_sniffer): Remove.
7005 (m68k_frame_base_address): Expect this_frame.
7006 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
7008 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
7009 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
7010 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
7011 parameter instead of pc value.
7012 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
7014 (m68k_linux_sigtramp_frame_this_id)
7015 (m68k_linux_sigtramp_frame_prev_register)
7016 (m68k_linux_sigtramp_frame_sniffer): Update signature.
7017 (m68k_linux_sigtramp_frame_unwind): Use
7018 m68k_linux_sigtramp_frame_sniffer.
7019 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
7021 * m68klinux-nat.c (store_register): Fix typo.
7023 2008-05-05 Pedro Alves <pedro@codesourcery.com>
7025 * infcmd.c (step_1): Put thread id on the stack to avoid possible
7028 2008-05-05 Luis Machado <luisgpm@br.ibm.com>
7030 * symfile.c (reread_symbols): Update objfile's entry point.
7032 2008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
7033 Joel Brobecker <brobecker@adacore.com>
7035 * ada-lang.c: Update throughout to use symbol_matches_domain
7036 instead of matching the symbol domain explictly.
7037 * dwarf2read.c (add_partial_symbol): Do not add new psym for
7038 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
7039 class as typedefs. See lookup_partial_symbol function.
7040 (new_symbol): Similar to add_partial_symbol, do not create
7041 symbol for the typedef. See lookup_block_symbol.
7042 * symtab.c (symbol_matches_domain): New function, takes care
7043 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
7044 (lookup_partial_symbol): Use symbol_matches_domain to see if the
7045 found psym domain matches the given domain.
7046 (lookup_block_symbol): Likewise.
7048 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
7050 * top.c (command_line_handler_continuation): Remove.
7051 (execute_command): Do not install the above.
7053 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
7055 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
7056 and catch all exceptions from it.
7057 * top.c (command_line_handler_continuation): Don't
7058 call bpstat_do_action here.
7060 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
7062 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
7063 (struct die_info): Remove type.
7064 (read_type_die, read_typedef, read_base_type, read_subrange_type)
7065 (read_structure_type, read_enumeration_type, read_array_type)
7066 (read_tag_pointer_type, read_tag_ptr_to_member_type)
7067 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
7068 (read_tag_string_type, read_subroutine_type, read_set_type)
7069 (read_unspecified_type): Delete prototypes. Remove check for
7070 already-loaded type. Return the new type.
7071 (set_die_type): Return the new type.
7072 (reset_die_and_siblings_types): Delete.
7073 (load_comp_unit, load_full_comp_unit): Set type_hash.
7074 (process_queue): Remove call to reset_die_and_siblings_types.
7075 (process_die): Do not read most types here. Use read_type_die
7077 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
7078 (quirk_gcc_member_function_pointer): Return the new type.
7079 (process_structure_scope, process_enumeration_scope): Use
7080 get_die_type and read the DIE's type.
7081 (read_full_die): Do not initialize die->type.
7082 (tag_type_to_type): Use read_type_die.
7083 (read_type_die): Check for already defined types. Return the
7085 (determine_prefix): Use get_die_type.
7086 (set_die_type): Return the type.
7087 (get_die_type): Take a CU argument. Check for no type_hash.
7089 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
7091 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
7094 2008-05-04 Pedro Alves <pedro@codesourcery.com>
7096 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
7097 and bp_longjmp_resume breakpoints.
7098 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
7100 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
7101 breakpoints. Create bp_longjmp breakpoints as momentary
7103 (enable_longjmp_breakpoint): Delete.
7104 (set_longjmp_breakpoint): New.
7105 (disable_longjmp_breakpoint): Delete.
7106 (delete_longjmp_breakpoint): New.
7107 (set_longjmp_resume_breakpoint): Delete.
7108 (set_momentary_breakpoint_at_pc): New.
7109 (breakpoint_re_set_one): Don't delete bp_longjmp and
7110 bp_longjmp_resume breakpoints.
7111 (breakpoint_re_set): Don't create longjmp and longjmp-resume
7114 * infrun.c (step_resume_breakpoint): Add comment.
7115 (struct execution_control_state): Delete handling_longjmp member.
7116 (init_execution_control_state). Don't clear handling_longjmp.
7117 (context_switch): Don't context switch handling_longjmp.
7118 (handle_inferior_event): If handling a bp_longjmp breakpoint,
7119 create a bp_longjmp_resume breakpoint, and set it as current
7120 step_resume_breakpoint, then step over the longjmp breakpoint. If
7121 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
7122 breakpoint, delete the longjmp-resume breakpoint, and stop
7124 (currently_stepping): Remove handling_longjmp from expression.
7125 (insert_step_resume_breakpoint_at_sal): Update comment.
7126 (insert_longjmp_resume_breakpoint): New.
7128 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
7129 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
7131 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
7132 (set_longjmp_resume_breakpoint): Delete declaration.
7134 * gdbthread.h (save_infrun_state): Remove handling_longjmp
7136 (load_infrun_state): Delete *handling_longjmp parameter.
7137 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
7139 (load_infrun_state): Delete *handling_longjmp parameter. Update
7142 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
7143 (delete_longjmp_breakpoint_cleanup): New.
7144 (step_1): Call set_longjmp_breakpoint instead of
7145 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
7146 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
7147 (step_1_continuation): Pass thread id in the continuation args to
7149 (step_once): Add thread parameter. Pass thread id the the
7152 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7154 Set CU BASE_ADDRESS already from partial DIEs.
7155 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
7156 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
7157 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
7158 from these variables if it was still unset.
7160 * Makefile.in: Update dependencies.
7161 * dwarf2read.c: Include "addrmap.h"
7162 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
7163 (dwarf2_ranges_read): New prototype.
7164 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
7165 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
7166 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
7167 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
7168 comment for it. Add the found ranges to RANGES_PST. New variable
7169 BASEADDR, initialize it the common way.
7170 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
7171 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
7172 HAS_RANGES_OFFSET for the later processing.
7173 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
7174 * symtab.c: Include "addrmap.h"
7175 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
7176 Move the psymtab locator into ...
7177 (find_pc_sect_psymtab_closer): ... a new function.
7179 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7181 * arch-utils.c (gdbarch_update_p): Use default values for
7182 info.abfd and info.target_desc if they are NULL.
7183 (gdbarch_from_bfd): Remove assertion.
7184 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
7185 using the current target description.
7186 (gdbarch_info_fill): Do not use default values for info->abfd
7187 and info->target_desc.
7189 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7191 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
7193 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7195 * inferior.h (read_pc_pid, write_pc_pid): Remove.
7196 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
7198 * regcache.c (read_pc_pid): Remove, replace by ...
7199 (regcache_read_pc): ... this function.
7200 (write_pc_pid): Remove, replace by ...
7201 (regcache_write_pc): ... this function.
7202 (read_pc, write_pc): Update.
7204 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
7205 write_pc_pid by regcache_read_pc and regcache_write_pc.
7206 (displaced_step_fixup): Likewise.
7207 (resume): Likewise. Use regcache arch instead of current_gdbarch.
7208 (prepare_to_proceed): Likewise.
7209 (proceed): Likewise.
7210 (adjust_pc_after_break): Likewise.
7211 (handle_inferior_event): Likewise.
7213 * linux-nat.c (cancel_breakpoint): Likewise.
7214 * linux-thread-db.c (check_event): Likewise.
7215 * aix-thread.c (aix_thread_wait): Likewise.
7216 * tracepoint.c (trace_dump_command): Likewise.
7218 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7220 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
7221 SYMBOL_LOCATION_BATON.
7223 2008-05-04 Vladimir Prus <vladimir@codesourcery.com>
7225 * target.h (struct target_ops): New field to_auxv_parse.
7226 * auxv.c (default_auxv_parse): New, renamed from previous
7228 (target_auxv_parse): Try to call target method. Fallback to
7229 default_auxv_parse if not found.
7230 * procfs.c (procfs_auxv_parse): New.
7231 (init_procfs_ops): On Solaris, in 64-bit mode, install
7234 2008-05-03 Adam Nemet <anemet@caviumnetworks.com>
7236 * symfile.c (add_symbol_file_command): Use paddress rather than
7237 hex_string to print the address.
7239 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7241 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
7242 return the null frame ID to terminate the backtrace.
7244 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7246 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
7247 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
7248 (SIG_FRAME_PC_OFFSET): Likewise.
7249 (SIG_FRAME_LR_OFFSET): Likewise.
7250 (SIG_FRAME_FP_OFFSET): Likewise.
7251 (rs6000_push_dummy_call): Likewise.
7252 (rs6000_return_value): Likewise.
7253 (rs6000_convert_from_func_ptr_addr): Likewise.
7254 (branch_dest, rs6000_software_single_step): Likewise.
7255 (deal_with_atomic_sequence): Rename to ...
7256 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
7257 Do not call branch_dest; inline required parts of that function.
7258 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
7259 with SYMBOL_LINKAGE_NAME.
7260 (struct reg, regsize): Delete.
7261 (read_memory_addr): Delete; inline into callers.
7262 (rs6000_skip_prologue): Move after skip_prologue.
7263 (skip_prologue): Remove prototype.
7264 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
7265 initialization as if this variable were true. Do not install
7266 ppc64_sysv_abi_adjust_breakpoint_address.
7268 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
7269 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
7271 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
7272 (SIG_FRAME_PC_OFFSET): Likewise.
7273 (SIG_FRAME_LR_OFFSET): Likewise.
7274 (SIG_FRAME_FP_OFFSET): Likewise.
7275 (rs6000_push_dummy_call): Likewise.
7276 (rs6000_return_value): Likewise.
7277 (rs6000_convert_from_func_ptr_addr): Likewise.
7278 (branch_dest, rs6000_software_single_step): Likewise. Replace
7279 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
7280 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
7281 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
7282 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
7283 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
7285 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
7286 (AIX_TEXT_SEGMENT_BASE): New macro.
7287 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
7288 by AIX_TEXT_SEGMENT_BASE.
7290 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
7291 (struct gdbarch_tdep): Remove text_segment_base member.
7292 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
7293 ppc64_sysv_abi_adjust_breakpoint_address.
7295 * Makefile.in (rs6000-tdep.o): Update dependencies.
7296 (rs6000-aix-tdep.o): Likewise.
7298 2008-05-03 Luis Machado <luisgpm@br.ibm.com>
7299 Thiago Jung Bauermann <bauerman@br.ibm.com>
7301 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
7302 * doublest.c (convert_typed_floating): Fix typo in comment.
7303 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
7304 * frame-unwind.h (frame_sniffer_ftype): Likewise.
7305 * frame.c (frame_unwind_address_in_block): Likewise.
7306 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
7307 * symtab.h (struct symbol): Likewise.
7308 * tramp-frame.h (struct trad_frame_cache): Likewise.
7309 * value.c (allocate_repeat_value): Likewise.
7311 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7313 * infrun.c (handle_inferior_event): Do not insert breakpoints at
7314 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
7316 2008-05-03 Pedro Alves <pedro@codesourcery.com>
7318 * parse.c (parse_exp_in_context): Don't override
7319 expression_context_pc if get_selected_block returned a valid
7322 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
7324 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
7325 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
7326 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
7328 * c-typeprint.c (c_type_print_base): Delete handling of template
7330 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
7331 (METHOD_PTR_TO_VOFFSET): Delete.
7332 * defs.h (QUIT_FIXME): Delete.
7333 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
7334 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
7335 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
7336 ninstantiations, and instantiations.
7337 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
7338 (TYPE_FN_FIELD_INLINED): Delete.
7339 * srec.h (SREC_BINARY): Delete.
7340 * symtab.c (symbol_init_demangled_name): Delete.
7341 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
7342 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
7343 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
7344 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
7345 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
7346 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
7347 * target.h (enum thread_control_capabilities): Delete tc_switch.
7348 (target_can_switch_threads): Delete.
7350 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
7352 * Makefile.in (objfiles.o): Update.
7353 * exec.c (exec_set_section_address): Support p->addr != 0.
7354 * objfiles.c (objfile_relocate): Update exec_ops section
7356 * symfile.c (place_section): Move exec_set_section_address call...
7357 (default_symfile_offsets): ...to here.
7359 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7361 * Makefile.in (ppc_linux_tdep_h): New macro.
7362 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
7363 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
7364 (powerpc_e500l_c): Likewise.
7365 (ppc-linux-nat.o): Update dependencies.
7366 (ppc-linux-tdep.o): Update dependencies.
7367 (rs6000-tdep.o): Update dependencies.
7369 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
7370 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
7371 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
7372 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
7373 (tdesc_powerpc_e500): Remove.
7375 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
7376 and "features/rs6000/powerpc-altivec64.c".
7377 (ppc_supply_reg, ppc_collect_reg): Make global.
7378 (variants): Use tdesc_powerpc_32 for "powerpc" and
7379 tdesc_powerpc_altivec64 for "powerpc64".
7380 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
7382 * ppc-linux-tdep.h: New file.
7384 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
7385 Include "features/rs6000/powerpc-32l.c".
7386 Include "features/rs6000/powerpc-altivec32l.c".
7387 Include "features/rs6000/powerpc-64l.c".
7388 Include "features/rs6000/powerpc-altivec64l.c".
7389 Include "features/rs6000/powerpc-e500l.c".
7390 (ppc_linux_supply_gregset): New function.
7391 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
7392 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
7393 (ppc64_linux_gregset): Likewise.
7394 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
7395 (ppc_linux_trap_reg_p): New function.
7396 (ppc_linux_write_pc): New function.
7397 (ppc_linux_core_read_description): New function.
7398 (ppc_linux_init_abi): Install ppc_linux_write_pc and
7399 ppc_linux_core_read_description. Install orig_r3 and trap
7400 registers if present in the target description.
7401 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
7403 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
7404 (PT_ORIG_R3, PT_TRAP): Define if necessary.
7405 (ppc_register_u_addr): Handle orig_r3 and trap registers.
7406 (fetch_ppc_registers): Likewise.
7407 (store_ppc_registers): Likewise.
7408 (store_register): Likewise.
7409 (ppc_linux_read_description): Check whether AltiVec is supported.
7410 Check whether inferior is 32-bit or 64-bit. Return the appropriate
7411 Linux target description.
7413 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
7414 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
7415 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
7416 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
7417 rs6000/powerpc-e500. Update -expedite variables accordingly.
7419 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
7420 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
7421 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
7422 * features/rs6000/powerpc-e500.c: Regenerate.
7423 * features/rs6000/powerpc-32.c: Regenerate.
7424 * features/rs6000/powerpc-64.c: Regenerate.
7426 * features/rs6000/power-linux.xml: New file.
7427 * features/rs6000/power64-linux.xml: New file.
7428 * features/rs6000/powerpc-32l.xml: New file.
7429 * features/rs6000/powerpc-altivec32l.xml: New file.
7430 * features/rs6000/powerpc-64l.xml: New file.
7431 * features/rs6000/powerpc-altivec64l.xml: New file.
7432 * features/rs6000/powerpc-e500l.xml: New file.
7433 * features/rs6000/powerpc-32l.c: New (generated) file.
7434 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
7435 * features/rs6000/powerpc-64l.c: New (generated) file.
7436 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
7437 * features/rs6000/powerpc-e500l.xml: New (generated) file.
7439 * regformats/reg-ppc.dat: Remove.
7440 * regformats/reg-ppc64.dat: Remove.
7441 * regformats/rs6000/powerpc-32.dat: Remove.
7442 * regformats/rs6000/powerpc-64.dat: Remove.
7443 * regformats/rs6000/powerpc-e500.dat: Remove.
7444 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
7445 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
7446 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
7447 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
7448 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
7450 2008-05-03 Pedro Alves <pedro@codesourcery.com>
7452 * thread.c (delete_thread): Call observer_notify_thread_exit.
7453 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
7454 thread_exit observer.
7455 (mi_thread_exit): New.
7457 2008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
7459 * breakpoint.c (create_exception_catchpoint): Remove prototype
7460 for already deleted function.
7461 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
7462 * frame.h (show_stack_frame): Remove prototype.
7463 * stack.c (show_stack_frame): Remove empty, unused function.
7464 * source.c (symtab_to_fullname, print_source_lines): Small fix
7466 * value.c (show_values): Update comments to mention "show values"
7467 command instead of "info history".
7469 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
7471 * linespec.c: Include "target.h".
7472 (minsym_found): Handle minimal symbols pointing to function
7473 descriptors. Use find_function_start_pc.
7474 * minsyms.c (msymbol_objfile): New function.
7475 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
7476 to function descriptors.
7477 * symtab.c (fixup_section): Only use minimal symbol at the same
7478 address to determine section of a symbol.
7479 (find_function_start_pc): New function.
7480 (find_function_start_sal): Use it.
7481 * symtab.h (msymbol_objfile): Add prototype.
7482 (find_function_start_pc): Likewise.
7483 * value.c: Include "objfiles.h".
7484 (value_fn_field): Handle minimal symbols pointing to function
7486 * Makefile.in (linespec.o): Update dependencies.
7487 (value.o): Likewise.
7489 2008-05-02 Joel Brobecker <brobecker@adacore.com>
7491 * ada-lang.c (unwrap_value): Handle the case where the "F" field
7492 inside a PAD type is a bitfield.
7494 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
7496 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
7497 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
7498 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
7499 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
7500 Allow typedefs when checking for function pointer arguments.
7501 Right-align small structs passed on the stack.
7502 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
7503 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
7504 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
7506 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
7508 * Makefile.in (arm-tdep.o): Update.
7509 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
7510 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
7511 (arm_pc_is_thumb): Use mapping symbols.
7512 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
7513 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
7514 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
7515 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
7516 * gdbarch.sh: Add record_special_symbol.
7517 * gdbarch.c, gdbarch.h: Regenerated.
7518 * objfiles.c (struct objfile_data): Add cleanup member.
7519 (register_objfile_data_with_cleanup): New function, from
7520 register_objfile_data.
7521 (register_objfile_data): Use it.
7522 (objfile_free_data): Call clear_objfile_data.
7523 (clear_objfile_data): Call cleanup functions.
7524 * objfiles.h (register_objfile_data_with_cleanup): Declare.
7526 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
7528 * objfiles.c (init_entry_point_info): Handle shared libraries.
7530 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
7532 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
7535 2008-05-02 Jim Blandy <jimb@codesourcery.com>
7536 Pedro Alves <pedro@codesourcery.com>
7538 Implement displaced stepping.
7540 * gdbarch.sh (max_insn_length): New 'variable'.
7541 (displaced_step_copy, displaced_step_fixup)
7542 (displaced_step_free_closure, displaced_step_location): New
7544 (struct displaced_step_closure): Add forward declaration.
7545 * gdbarch.c, gdbarch.h: Regenerated.
7547 * arch-utils.c: #include "objfiles.h".
7548 (simple_displaced_step_copy_insn)
7549 (simple_displaced_step_free_closure)
7550 (displaced_step_at_entry_point): New functions.
7551 * arch-utils.h (simple_displaced_step_copy_insn)
7552 (simple_displaced_step_free_closure)
7553 (displaced_step_at_entry_point): New prototypes.
7555 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
7556 (I386_MAX_MATCHED_INSN_LEN): ... this.
7557 (i386_absolute_jmp_p, i386_absolute_call_p)
7558 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
7559 (i386_displaced_step_fixup): New functions.
7560 (struct i386_insn, i386_match_insn): Update.
7561 (i386_gdbarch_init): Set gdbarch_max_insn_length.
7562 * i386-tdep.h (I386_MAX_INSN_LEN): New.
7563 (i386_displaced_step_fixup): New prototype.
7564 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
7565 Register gdbarch_displaced_step_copy,
7566 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
7567 and gdbarch_displaced_step_location functions.
7569 * infrun.c (debug_displaced): New variable.
7570 (show_debug_displaced): New function.
7571 (struct displaced_step_request): New struct.
7572 (displaced_step_request_queue, displaced_step_ptid)
7573 (displaced_step_gdbarch, displaced_step_closure)
7574 (displaced_step_original, displaced_step_copy)
7575 (displaced_step_saved_copy, can_use_displaced_stepping): New
7577 (show_can_use_displaced_stepping, use_displaced_stepping)
7578 (displaced_step_clear, cleanup_displaced_step_closure)
7579 (displaced_step_dump_bytes, displaced_step_prepare)
7580 (displaced_step_clear_cleanup, write_memory_ptid)
7581 (displaced_step_fixup): New functions.
7582 (resume): Call displaced_step_prepare.
7583 (proceed): Call read_pc once, and remember the value. If using
7584 displaced stepping, don't remove breakpoints.
7585 (handle_inferior_event): Call displaced_step_fixup. Add some
7586 debugging output. When we try to step over a breakpoint, but get
7587 a signal to deliver to the thread instead, ensure the step-resume
7588 breakpoint is actually inserted. If a thread hop is needed, and
7589 displaced stepping is enabled, don't remove breakpoints.
7590 (init_wait_for_inferior): Call displaced_step_clear.
7591 (_initialize_infrun): Add "set debug displaced" command. Add
7592 "maint set can-use-displaced-stepping" command. Clear
7593 displaced_step_ptid.
7594 * inferior.h (debug_displaced): Declare variable.
7595 (displaced_step_dump_bytes): Declare function.
7597 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
7600 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
7602 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
7603 (arm_force_mode_string, arm_show_fallback_mode)
7604 (arm_show_force_mode): New.
7605 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
7607 (_initialize_arm_tdep): Add "set arm fallback-mode"
7608 and "set arm force-mode".
7609 * NEWS: Document new commands.
7611 2008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
7613 * main.h (batch_silent): Declare.
7614 * event-top.c: Include main.h.
7615 (gdb_setup_readline): Remove extern batch_silent declaration.
7616 * infrun.c (normal_stop): Don't print source location when running in
7617 --batch-silent mode.
7618 * Makefile.in (event-top.o): Add main.h dependency.
7620 2008-05-02 Andreas Schwab <schwab@suse.de>
7622 * target.h (struct target_ops): Add
7623 to_watchpoint_addr_within_range.
7624 (target_watchpoint_addr_within_range): New function.
7625 * target.c (update_current_target): Inherit
7626 to_watchpoint_addr_within_range, defaulting to
7627 default_watchpoint_addr_within_range.
7628 (default_watchpoint_addr_within_range): New function.
7629 (debug_to_watchpoint_addr_within_range): New function.
7630 (setup_target_debug): Set to_watchpoint_addr_within_range.
7631 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
7633 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
7634 * breakpoint.c (watchpoints_triggered): Use
7635 target_watchpoint_addr_within_range.
7637 2008-05-01 Pedro Alves <pedro@codesourcery.com>
7639 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
7640 (i[34567]86-*-dicos*, x86_64-*-dicos*):
7641 Set gdb_osabi to GDB_OSABI_DICOS.
7643 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
7644 * osabi.c (gdb_osabi_name): Add "DICOS".
7646 * i386-dicos-tdep.c: New file.
7648 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
7649 (ALLDEPFILES): Add i386-dicos-tdep.c.
7650 (i386-dicos-tdep.o): New rule.
7652 2008-05-01 Pedro Alves <pedro@codesourcery.com>
7654 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
7655 and register the fork's PTID as a thread.
7657 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
7660 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
7661 assign its value to the breakpoint created.
7662 (create_breakpoints): Add breakpoint_ops argument and pass it
7663 to create_breakpoint call.
7664 (break_command_really): Add breakpoint_ops argument and pass/assign
7666 (break_command_1): Pass NULL as ops argument.
7667 (set_breakpoint): Pass NULL as ops argument.
7668 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
7669 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
7670 catch and throw catchpoints.
7672 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
7675 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
7676 translate signal numeric value from the target to GDB's enum
7678 * gdbarch.c, gdbarch.h: Regenerated.
7679 * gdbarch.sh: Added two new functions target_signal_from_host and
7680 target_signal_to_host.
7681 * target.h (default_target_signal_from_host,
7682 default_target_signal_to_host): New functions - declarations.
7683 * signals/signals.c (struct gdbarch): New declaration.
7684 (default_target_signal_to_host, default_target_signal_from_host): New
7687 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
7688 Pedro Alves <pedro@codesourcery.com>
7690 Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff
7691 Johnston <jjohnstn@redhat.com>.
7693 * NEWS: Mention attach to stopped process fix.
7694 * infcmd.c (detach_command, disconnect_command): Discard the thread
7696 * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
7697 attaching. Use signal_stop_state.
7698 (signal_stop_state): Check stop_soon.
7699 * linux-nat.c (kill_lwp): Declare earlier.
7700 (pid_is_stopped, linux_nat_post_attach_wait): New.
7701 (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update
7703 (linux_nat_attach): Use linux_nat_post_attach_wait.
7704 (detach_callback, linux_nat_detach): Improve handling for signalled
7706 (linux_nat_pid_to_str): Always print out the LWP ID if it differs
7707 from the process ID.
7708 * Makefile.in (infcmd.o): Update.
7710 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
7712 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
7713 * arm-tdep.c (arm_frame_is_thumb): New.
7714 (arm_pc_is_thumb): Clarify comment.
7715 (thumb_analyze_prologue): Remove PC special case.
7716 (thumb_scan_prologue): Take a block_addr argument. Use it for
7717 find_pc_partial_function. Remove unused variables.
7718 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
7719 for find_pc_partial_function. Remove PC special case.
7720 (arm_prologue_prev_register): Add special handling for PC and CPSR.
7721 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
7722 (arm_get_next_pc): Use arm_frame_is_thumb.
7723 (arm_write_pc): Use CPSR_T instead of 0x20.
7724 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
7725 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
7727 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
7728 DWARF2_FRAME_REG_FN.
7729 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
7730 DWARF2_FRAME_REG_FN.
7731 (struct dwarf2_frame_state_reg): Add FN to loc union.
7733 2008-05-01 Nick Roberts <nickrob@snap.net.nz>
7735 * exec.c (print_section_info): Add missing '\n'.
7737 2008-05-01 Vladimir Prus <vladimir@codesourcery.com>
7739 * thread.c (add_thread): Move observer call to ...
7740 (add_thread_silent): ... here.
7742 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
7744 * rs6000-tdep.c: Update for unwinder changes.
7745 * ppcobsd-tdep.c: Likewise.
7747 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
7749 * s390-tdep.c: Update for unwinder changes.
7751 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
7753 * spu-tdep.c: Update for unwinder changes.
7755 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7757 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
7758 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
7759 sparc64-linux-tdep.c: Update for unwinder changes.
7761 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7763 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
7764 for unwinder changes.
7765 * mips-tdep.c: Likewise.
7766 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
7769 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7771 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
7774 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7776 Update i386 and amd64 ports for unwinder changes.
7778 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
7779 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
7780 (amd64_frame_unwind): Use default_frame_sniffer.
7781 (amd64_frame_sniffer): Delete.
7782 (amd64_sigtramp_frame_cache): Expect this_frame.
7783 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
7784 (amd64_sigtramp_frame_sniffer): Update signature.
7785 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
7786 (amd64_frame_base_address): Expect this_frame.
7787 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
7789 (amd64_init_abi): Use set_gdbarch_dummy_id and
7790 frame_unwind_append_unwinder.
7791 * i386-tdep.c (i386_frame_cache): Expect this_frame.
7792 (i386_frame_this_id, i386_frame_prev_register): Update signature.
7793 (i386_frame_unwind): Use default_frame_sniffer.
7794 (i386_frame_sniffer): Delete.
7795 (i386_sigtramp_frame_cache): Expect this_frame.
7796 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
7797 (i386_sigtramp_frame_sniffer): Update signature.
7798 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
7799 (i386_frame_base_address): Update signature.
7800 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
7801 (i386_push_dummy_call): Update comment.
7802 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
7804 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
7805 and frame_unwind_append_unwinder.
7806 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
7807 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
7808 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
7809 i386nbsd-tdep.c: Update for unwinder changes.
7811 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7813 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
7814 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
7816 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
7817 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
7818 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
7820 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
7822 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
7824 * tramp-frame.h (struct tramp_frame): Update signature of init.
7825 * Makefile.in (trad-frame.o): Update.
7827 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7829 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
7830 (execute_stack_op): Put this_frame in the baton.
7831 (execute_cfa_program): Take this_frame.
7832 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
7833 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
7834 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
7835 (dwarf2_frame_this_id): Adjust to work on this_frame.
7836 (dwarf2_signal_frame_this_id): Delete.
7837 (dwarf2_frame_prev_register): Update signature. Use new frame
7839 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
7840 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
7841 dwarf2_frame_sniffer.
7842 (dwarf2_append_unwinders): New.
7843 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
7845 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
7846 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
7847 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
7848 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
7849 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
7850 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
7851 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
7852 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
7853 (dwarf2_append_unwinders): Declare.
7854 (dwarf2_frame_base_sniffer): Update declaration.
7855 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
7858 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7860 Convert frame unwinders to use the current frame and
7863 * frame.c (frame_debug): Make global.
7864 (get_frame_id): Pass this frame to unwinder routines.
7865 (frame_pc_unwind): Remove unused unwind->prev_pc support.
7866 (do_frame_register_read): Do not discard the return value of
7867 frame_register_read.
7868 (frame_register_unwind): Remove debug messages. Use
7869 frame_unwind_register_value.
7870 (frame_unwind_register_value, get_frame_register_value): New
7872 (create_new_frame, get_frame_base_address, get_frame_locals_address)
7873 (get_frame_args_address, get_frame_type): Pass this frame to
7875 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
7877 * frame.h: Update comments.
7878 (frame_debug, frame_unwind_register_value, get_frame_register_value)
7879 (frame_prepare_for_sniffer): Declare.
7880 * frame-unwind.h: Update comments and parameter names.
7881 (default_frame_sniffer): Declare.
7882 (frame_prev_register_ftype): Return a struct value *.
7883 (struct frame_unwind): Remove prev_pc member.
7884 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
7885 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
7886 (frame_unwind_got_register, frame_unwind_got_memory)
7887 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
7888 * frame-base.h: Update comments and parameter names.
7889 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
7890 if necessary. Add debugging output.
7891 * sentinel-frame.c (sentinel_frame_prev_register)
7892 (sentinel_frame_this_id): Update for new signature.
7893 (sentinel_frame_prev_pc): Delete.
7894 (sentinel_frame_unwinder): Remove prev_pc.
7895 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
7897 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
7898 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
7899 (frame_unwind_append_sniffer): Delete.
7900 (frame_unwind_append_unwinder): New function.
7901 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
7902 from unwinders. Use frame_prepare_for_sniffer.
7903 (default_frame_sniffer, frame_unwind_got_optimized)
7904 (frame_unwind_got_register, frame_unwind_got_memory)
7905 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
7906 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
7907 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
7909 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
7910 * gdbarch.c, gdbarch.c: Regenerated.
7911 * frame-base.c (default_frame_base_address)
7912 (default_frame_locals_address, default_frame_args_address): Update
7914 (frame_base_find_by_frame): Pass this frame to unwinder routines.
7915 * infcall.c (call_function_by_hand): Update comments.
7916 * Makefile.in (frame-unwind.o): Update dependencies.
7918 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7920 * ada-lang.c (ada_value_primitive_packed_val): Only check
7921 value_lazy for memory lvals.
7922 * findvar.c (value_of_register_lazy): New function.
7923 (locate_var_value): Only check value_lazy for memory lvals.
7924 * valarith.c (value_subscripted_rvalue): Likewise.
7925 * valops.c (value_fetch_lazy): Handle both memory and register
7927 (search_struct_field, value_slice): Only check value_lazy for memory
7929 * value.c (struct value): Update comment for lazy.
7930 (value_primitive_field): Only check value_lazy for memory lvals.
7931 * value.h (value_lazy): Update comment.
7932 (value_of_register_lazy): Declare.
7934 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7936 * corefile.c (reopen_exec_file): Close any open files.
7938 2008-04-29 Joel Brobecker <brobecker@adacore.com>
7940 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
7941 show_memory_breakpoints to 1 while reading the instruction bundle.
7943 2008-04-29 Joel Brobecker <brobecker@adacore.com>
7945 * gdbarch.sh: Document the return_value method. Explain that
7946 the FUNCTYPE parameter might be NULL.
7947 * gdbarch.h: Regenerated.
7948 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
7949 type when calling using_struct_return, as this is unnecessary
7952 2008-04-28 Joel Brobecker <brobecker@adacore.com>
7954 * terminal.h (create_tty_session): Fix return type.
7956 2008-04-26 Vladimir Prus <vladimir@codesourcery.com>
7958 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
7960 2008-04-26 Joel Brobecker <brobecker@adacore.com>
7962 * breakpoint.c (condition_command, commands_from_control_command)
7963 (break_command_really): Minor reformatting.
7965 2008-04-25 Pedro Alves <pedro@codesourcery.com>
7967 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
7969 2008-04-25 Pedro Alves <pedro@codesourcery.com>
7971 * amd64-tdep.c (amd64_get_longjmp_target): New.
7972 (amd64_init_abi): Register amd64_get_longjmp_target as
7973 gdbarch_get_longjmp_target callback.
7974 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
7976 2008-04-25 Pedro Alves <pedro@codesourcery.com>
7978 * breakpoint.h (enum bpstat_what_main_action): Delete
7979 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
7981 * breakpoint.c (clrs): Delete.
7982 (bpstat_what): Update table.
7984 * infrun.c (handle_inferior_event): Remove
7985 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
7987 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
7989 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
7990 Adjust all prototypes using mi_cmd_args_ftype to use
7992 (struct mi_cmd): Remove the args_func field.
7993 * mi/mi-cmds.c: Don't provide value for the args_func field.
7994 * mi/mi-main.c (mi_execute_async_cli_command)
7995 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
7996 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
7997 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
7998 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
7999 (mi_cmd_target_download): Adjust.
8000 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
8001 (mi_cmd_execute): Do not check for args_func.
8002 (mi_execute_async_cli_command): Adjust.
8003 * mi/mi-parse.c: Don't check for args_func.
8005 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8007 * breakpoint.c (bpstat_check_location)
8008 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
8009 New, extracted from bpstat_stop_status.
8010 (bpstat_stop_status): Use the above.
8012 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8014 * mi/mi-main.c (last_async_command): Rename to current_token.
8015 (previous_async_command): Remove.
8016 (mi_cmd_gdb_exit): Adjust.
8017 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
8018 (mi_cmd_target_select): Adjust.
8019 (mi_cmd_execute): Don't set previous_async_command. Free token
8020 here even in async mode.
8021 (mi_execute_async_cli_command): Adjust.
8022 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
8024 (mi_load_progress): Adjust.
8026 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8028 * infcmd.c (step_1_continuation): Always disable longjmp
8029 breakpoint if we're not going to do another step.
8031 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8033 exec_cleanup murder.
8034 * breakpoint.c (until_break_command_continuation): Add
8035 the 'error' parameter. Directly delete the breakoint as
8036 opposed to running cleanups.
8037 (until_break_command): Install continuation only
8038 after starting the target. Don't use exec cleanups,
8039 use ordinary cleanups. Discard cleanups is successfully
8040 started the target in async mode.
8041 (make_cleanup_delete_breakpoint): Remove.
8042 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
8044 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
8046 (struct continations): Add the 'error' parameter to the
8047 continuation_hook field.
8048 (add_continuation, do_all_continuations)
8049 (add_intermediate_continuation)
8050 (do_all_intermediate_continuations): Add the 'error' parameter.
8051 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
8052 * inf-loop.c (inferior_event_handler): Instead of calling
8053 discard_all_continuations, use do_all_continuations with 1 as
8054 'error' parameter. Pass 0 as 'error' parameter in existing uses
8055 of discard_all_continuations.
8056 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
8058 (step_once): Install continuation only after resuming the target.
8059 (step_1_continuation): Disable longjmp breakpoint on error.
8060 (finish_command_continuation): Add the error parameter. Delete
8061 the finish breakpoint directly, do not use cleanups.
8062 (finish_command): Do not use exec_cleanups. Always setup
8063 continuation. For sync case, immediately run them.
8064 (attach_command_continuation): Add the error parameter.
8065 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
8066 remove step_resume_breakpoint -- adjust delete it directly.
8067 * interps.c (interp_set): Adjust call to do_all_continations.
8068 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
8070 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
8072 (mi_cmd_execute): Do not use exec_cleanup.
8073 (mi_execute_async_cli_command): Simplify the string concatenation
8074 logic. Do no use exec cleanup.
8075 (mi_exec_async_cli_cmd_continuation): New parameter error.
8076 Free last_async_command.
8077 * top.c (command_line_handler_continuation): New parameter error.
8078 * utils.c (exec_cleanup_chain, make_exec_cleanup)
8079 (do_exec_cleanups): Remove.
8080 (add_continuation, do_all_continations)
8081 (add_intermediate_continuation)
8082 (do_all_intermediate_continuations): New parameter error.
8084 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8086 * breakpoint.h (bp_location_p): New typedef.
8087 Register a vector of bp_location_p.
8088 * breakpoint.c (always_inserted_mode)
8089 (show_always_inserted_mode): New.
8090 (unlink_locations_from_global_list): Remove.
8091 (update_global_location_list)
8092 (update_global_location_list_nothrow): New.
8093 (update_watchpoint): Don't free locations.
8094 (should_insert_location): New.
8095 (insert_bp_location): Use should_insert_location.
8096 (insert_breakpoint_locations): Copied from
8098 (insert_breakpoint): Use insert_breakpoint_locations.
8099 (bpstat_stop_status): Call update_global_location_list
8100 when disabling breakpoint.
8101 (allocate_bp_location): Don't add to bp_location_chain.
8102 (set_raw_breakpoint)
8103 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
8104 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
8105 (enable_overlay_breakpoints, disable_overlay_breakpoints)
8106 (set_longjmp_resume_breakpoint)
8107 (enable_watchpoints_after_interactive_call_stop)
8108 (disable_watchpoints_before_interactive_call_start)
8109 (create_internal_breakpoint)
8110 (create_fork_vfork_event_catchpoint)
8111 (create_exec_event_catchpoint, set_momentary_breakpoint)
8112 (create_breakpoints, break_command_1, watch_command_1)
8113 (create_exception_catchpoint)
8114 (handle_gnu_v3_exceptions)
8115 (disable_breakpoint, breakpoint_re_set_one)
8116 (create_thread_event_breakpoint, create_solib_event_breakpoint)
8117 (create_ada_exception_breakpoint): : Don't call check_duplicates.
8118 Call update_global_location_list.
8119 (delete_breakpoint): Don't remove locations and don't
8120 try to reinsert them. Call update_global_location_list.
8121 (update_breakpoint_locations): Likewise.
8122 (restore_always_inserted_mode): New.
8123 (update_breakpoints_after_exec): Temporary disable
8124 always inserted mode.
8125 * Makefile.in: Update dependencies.
8127 * infrun.c (proceed): Remove breakpoints while stepping
8129 (handle_inferior_event): Don't remove or insert
8131 * linux-fork.c (checkpoint_command): Remove breakpoints
8132 before fork and insert after.
8133 (linux_fork_context): Remove breakpoints before switch
8135 * target.c (target_disconnect, target_detach): Remove
8136 breakpoints from target.
8139 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8141 * breakpoint.c (print_one_breakpoint_location): In MI
8142 mode, report the location string the breakpoint was
8143 originally created with.
8145 2008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
8147 * Makefile.in (xtensa-tdep.o): Update dependencies.
8148 * configure.tgt (xtensa*): Update dependencies.
8149 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
8150 Local variable areg renamed to arreg.
8151 (areg_number): New function.
8152 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
8153 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
8154 replaced by arreg_number.
8155 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
8156 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
8157 (xtensa_scan_prologue): New function.
8158 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
8159 when ENTRY instraction hasn't been executed yet. Get the frame pointer
8160 value based on prologue analysis. Fix the bugs preventing WS and
8161 AR4-AR7/A11 registers from getting right values for intermediate frames,
8162 whose registers have been already spilled.
8163 (xtensa_frame_prev_register): Fix WS register value. Use are_number
8164 and arreg_number appropriately.
8165 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
8166 svr4_ilp32_fetch_link_map_offsets.
8168 2008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
8170 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
8171 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
8173 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
8175 * acinclude.m4: Add override.m4.
8176 * configure: Regenerate.
8178 2008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8180 * ada-lang.c (get_selections): Variable PROMPT made non-const and
8181 initialized with a trailing space now. Use PROMPT_ARG of
8182 COMMAND_LINE_INPUT instead of printing it ourselves.
8184 2008-04-22 Joel Brobecker <brobecker@adacore.com>
8186 * NEWS: Document support for 64-bit core file.
8188 2008-04-22 Corinna Vinschen <vinschen@redhat.com>
8190 * NEWS: Add information on calling convention and new SH CLI options.
8192 * sh-tdep.c (sh_cc_gcc): New static string.
8193 (sh_cc_renesas): Ditto.
8194 (sh_cc_enum): New static string array.
8195 (sh_active_calling_convention): New static string pointer denoting
8196 active user chosen ABI.
8197 (sh_is_renesas_calling_convention): New function to return function
8198 specific ABI, or user choice if necessary.
8199 (sh_use_struct_convention): Rename first argument and turn around its
8200 meaning. Check for renesas ABI and return accordingly.
8201 (sh_use_struct_convention_nofpu): New function.
8202 (sh_next_flt_argreg): Get function type as third parameter. Check
8203 for renesas ABI and choose floating registers accordingly.
8204 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
8205 struct return slot accordingly.
8206 (sh_push_dummy_call_nofpu): Ditto.
8207 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
8208 Evaluate ABI and give to sh_use_struct_convention_nofpu.
8209 (sh_return_value_fpu): Evaluate ABI and give to
8210 sh_use_struct_convention.
8211 (show_sh_command): New function.
8212 (set_sh_command): Ditto.
8213 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
8216 * gdbarch.sh (return_value): Add func_type argument.
8217 * gdbarch.c: Regenerate.
8219 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
8220 val_type so as not to collide with value_type function. Call
8221 using_struct_return with additional function type argument.
8222 * infcall.c (call_function_by_hand): Call using_struct_return and
8223 gdbarch_return_value with additional function type argument.
8224 * infcmd.c (print_return_value): Take addition func_type argument.
8225 Call gdbarch_return_value with additional function type argument.
8226 (finish_command_continuation): Call print_return_value with additional
8227 function type argument.
8228 (finish_command): Ditto.
8229 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
8230 additional function type argument.
8231 * stack.c (return_command): Call using_struct_return and
8232 gdbarch_return_value with additional function type argument.
8233 * value.c (using_struct_return): Take additional function type argument.
8234 * value.h (using_struct_return): Accommodate declaration.
8235 * alpha-tdep.c (alpha_return_value): Add func_type argument.
8236 * amd64-tdep.c (amd64_return_value): Ditto.
8237 * arm-tdep.c (arm_return_value): Ditto.
8238 * avr-tdep.c (avr_return_value): Ditto.
8239 * cris-tdep.c (cris_return_value): Ditto.
8240 * frv-tdep.c (frv_return_value): Ditto.
8241 * h8300-tdep.c (h8300_return_value): Ditto.
8242 (h8300h_return_value): Ditto.
8243 * hppa-tdep.c (hppa32_return_value): Ditto.
8244 (hppa64_return_value): Ditto.
8245 * i386-tdep.c (i386_return_value): Ditto.
8246 * ia64-tdep.c (ia64_return_value): Ditto.
8247 * iq2000-tdep.c (iq2000_return_value): Ditto.
8248 * m32c-tdep.c (m32c_return_value): Ditto.
8249 * m32r-tdep.c (m32r_return_value): Ditto.
8250 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
8251 * m68k-tdep.c (m68k_return_value): Ditto.
8252 (m68k_svr4_return_value): Ditto.
8253 * m88k-tdep.c (m88k_return_value): Ditto.
8254 * mep-tdep.c (mep_return_value): Ditto.
8255 * mips-tdep.c (mips_eabi_return_value): Ditto.
8256 (mips_n32n64_return_value): Ditto.
8257 (mips_o32_return_value): Ditto.
8258 (mips_o64_return_value): Ditto.
8259 * mn10300-tdep.c (mn10300_return_value): Ditto.
8260 * mt-tdep.c (mt_return_value): Ditto.
8261 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
8262 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
8263 (ppc_sysv_abi_broken_return_value): Ditto.
8264 (ppc64_sysv_abi_return_value): Ditto.
8265 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
8266 (ppc_sysv_abi_broken_return_value): Ditto.
8267 (ppc64_sysv_abi_return_value): Ditto.
8268 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
8269 * rs6000-tdep.c (rs6000_return_value): Ditto.
8270 * s390-tdep.c (s390_return_value): Ditto.
8271 * score-tdep.c (score_return_value): Ditto.
8272 * sh-tdep.c (sh_return_value_nofpu): Ditto.
8273 (sh_return_value_fpu): Ditto.
8274 * sh64-tdep.c (sh64_return_value): Ditto.
8275 * sparc-tdep.c (sparc32_return_value): Ditto.
8276 * sparc64-tdep.c (sparc64_return_value): Ditto.
8277 * spu-tdep.c (spu_return_value): Ditto.
8278 * v850-tdep.c (v850_return_value): Ditto.
8279 * vax-tdep.c (vax_return_value): Ditto.
8280 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
8281 * xtensa-tdep.c (xtensa_return_value): Ditto.
8283 * gdbtypes.h (struct type): Add calling_convention member.
8284 * dwarf2read.c (read_subroutine_type): Add calling convention read
8285 from DW_AT_calling_convention attribute to function type.
8287 2008-04-22 Markus Deuling <deuling@de.ibm.com>
8289 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
8290 multi_f77_subscript to support values from registers.
8291 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
8292 * value.h (value_subscripted_rvalue): Add prototype.
8294 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
8296 * f-valprint.c (f_val_print): Likewise.
8298 2008-04-21 Craig Silverstein <csilvers@google.com>
8300 * dwarf2read.c (zlib_decompress_section): Define abfd in the
8303 2008-04-21 Pedro Alves <pedro@codesourcery.com>
8305 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
8306 section is not a code section.
8308 2008-04-19 Craig Silverstein <csilvers@google.com>
8310 * NEWS: Add information on compressed debug sections.
8312 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
8314 * mi/mi-cmd-var.c (varobj_update_one): Print new
8315 value for variable objects that changed type.
8317 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
8319 * varobj.c (varobj_invalidate): Don't touch floating
8322 2008-04-19 Mark Kettenis <kettenis@gnu.org>
8324 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
8325 (multiple_symbols_cancel): Remove extra const.
8326 * symtab.h: Likewise.
8328 2008-04-19 Nick Roberts <nickrob@snap.net.nz>
8330 * interps.c (top_level_interpreter): Rename static variable...
8331 (top_level_interpreter_ptr): ...to this.
8332 (top_level_interpreter): New function.
8334 * interps.h: New extern for top_level_interpreter.
8336 * linespec.c: Include interps.h and mi/mi-cmds.h.
8337 (decode_line_2): When using MI, always set all breakpoints in menu.
8339 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
8341 2008-04-18 Craig Silverstein <csilvers@google.com>
8343 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
8344 * config.in, configure: Regenerate.
8345 * dwarf2read.c: Include zlib.h if present.
8346 Modified *_SECTION macros.
8347 (section_is_p): New.
8348 (dwarf2_locate_sections): Use section_is_p instead of strcmp
8349 (dwarf2_resize_section): New.
8350 to determine whether a given section has a given name.
8351 (zlib_decompress_section): New.
8352 (dwarf2_read_section): Read the compressed section if present
8354 * MAINTAINERS: Added myself to section Write After Approval.
8356 2008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
8358 * defs.h (exec_set_section_offsets): Remove prototype.
8359 * exec.c (exec_set_section_offsets): Remove function.
8361 2008-04-18 Joel Brobecker <brobecker@adacore.com>
8363 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
8364 in the search for the matching symbol.
8366 2008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
8368 * breakpoint.c (update_watchpoint): Always reparse
8371 2008-04-17 Joel Brobecker <brobecker@adacore.com>
8373 * breakpoint.c (print_one_breakpoint_location): Make sure to print
8374 the breakpoint address only once.
8376 2008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
8378 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
8379 rather than a hard-coded architecture, for xcoff executables.
8381 2008-04-17 Doug Evans <dje@google.com>
8383 * buildsym.c (watch_main_source_file_lossage): New fn.
8384 (end_symtab): Call it.
8386 * source.c (find_and_open_source): Add some comments clarifying
8387 handling of FULLNAME argument. Make static. Remove pointless
8390 2008-04-17 Pedro Alves <pedro@codesourcery.com>
8392 * inf-loop.c (inferior_event_handler): Also run the intermediate
8393 continuations in the INF_EXEC_COMPLETE case.
8395 2008-04-16 Tom Tromey <tromey@redhat.com>
8397 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
8398 (set_cmd_async_ok, get_cmd_async_ok): Declare.
8399 * cli/cli-decode.c (set_cmd_async_ok): New function.
8400 (get_cmd_async_ok): New function.
8401 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
8403 * top.c (execute_command): Use get_cmd_async_ok.
8404 * infcmd.c: Include cli/cli-decode.h.
8405 (_initialize_infcmd): Mark "interrupt" as async-ok.
8406 * Makefile.in (infcmd.o): Depend on cli_decode_h.
8408 2008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
8411 * exec.c: Correct "arch-utils.h" include.
8413 2008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
8416 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
8417 to allow printing to 'see' real reason of stop. This fixes PR 2424.
8418 * breakpoint.c (bpdisp_texst): New function. The function takes over
8419 the role of bpstats static array in print_one_breakpoint_location.
8420 (print_it_typical): Print "Temporary breakpoint" instead
8421 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
8422 protocols, print disp field.
8423 (print_one_breakpoint_location): Removed bpdisps static definition.
8424 Call new bpstat_text function to get value for 'disp' field.
8425 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
8427 2008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
8429 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
8430 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
8431 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
8432 * gnulib/Makefile.in: Regenerate.
8434 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
8436 * Makefile.in (GNULIB_H): New. Trigger all-lib.
8437 (defs_h): Use $(GNULIB_H).
8438 (all-lib): Depend on gnulib/Makefile.
8439 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
8440 * config.in, gnulib/Makefile.in: Regenerated.
8442 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
8444 * Makefile.in (LIBGNU, INCGNU): Define.
8445 (INTERNAL_CFLAGS_BASE): Add INCGNU.
8446 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
8448 ($(LIBGNU), all-lib): New rules.
8449 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
8450 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
8451 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
8452 * gnulib: New directory, from gnulib-tool.
8453 * configure, aclocal.m4: Regenerated.
8455 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
8457 * linux-thread-db.c (have_threads_callback): Check thread->private.
8459 2008-04-13 Nick Roberts <nickrob@snap.net.nz>
8460 Vladimir Prus <vladimir@codesourcery.com>
8463 * varobj.c (value_of_root): Update the expression for
8465 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
8468 2008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
8470 * mi/mi-cmd-var.c: Include "mi-getopt.h".
8471 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
8472 (mi_cmd_var_set_format): Use new mi_parse_format.
8473 (mi_cmd_var_evaluate_expression): Support for -f option to specify
8475 * Makefile.in (mi-cmd-var.o): Update dependencies.
8477 * varobj.h (varobj_get_formatted_value): Declare.
8478 * varobj.c (my_value_of_variable): Added format parameter.
8479 (cplus_value_of_variable): Likewise.
8480 (java_value_of_variable): Likewise.
8481 (c_value_of_variable): Likewise. Evaluate expression based
8482 on format parameter.
8483 (struct language_specific): Add format parameter to function member
8485 (varobj_get_formatted_value): New.
8486 (varobj_get_value): Added format parameter to method call.
8488 2008-04-08 Joel Brobecker <brobecker@adacore.com>
8490 * stabsread.c (cleanup_undefined_types_noname): Manually set the
8491 instance flags of the undefined type before calling replace_type.
8493 2008-04-08 Vladimir Prus <vladimir@codesourcery.com>
8495 * target.h (enum strata): Remove the download_stratum.
8497 2008-04-07 Doug Evans <dje@google.com>
8499 * buildsym.h (last_source_file): Add dwarf info to comment.
8500 (last_source_start_addr): Ditto.
8502 2008-04-07 Pedro Alves <pedro@codesourcery.com>
8504 * alphanbsd-tdep.c: Include "target.h".
8505 * mn10300-tdep.c: Include "target.h".
8506 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
8508 2008-04-06 Vladimir Prus <vladimir@codesourcery.com>
8510 Fix breakpoint condition that use member variables.
8511 * valops.c (check_field): Remove.
8512 (check_field_in): Rename to check_field.
8513 (value_of_this): Use la_name_of_this.
8514 * value.h (check_field): Adjust prototype.
8516 * language.h (la_value_of_this): Rename to la_name_of_this.
8517 * language.c (unknown_language_defn): Specify "this" for
8519 (auto_language_defn): Likewise.
8520 (local_language_defn): Likewise.
8521 * ada-lang.c (ada_language_defn): Adjust comment.
8522 * c-lang.c (c_language_defn): Adjust comment.
8523 (cplus_language_defn): Specify "this" for name_of_this.
8524 (asm_language_defn): Adjust comment.
8525 (minimal_language_defn): Adjust comment.
8526 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
8527 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
8528 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
8529 * objc-lang.c (objc_language_defn): Specify "self" for
8531 * p-lang.c (pascal_language_defn): Specify "this" for
8533 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
8535 * symtab.c (lookup_symbol_aux): Lookup "this" in the
8536 proper scope, and check for field in type of "this", without
8537 trying to create a value.
8539 2008-04-04 Pedro Alves <pedro@codesourcery.com>
8541 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
8542 (mi_error_message): Delete declaration.
8543 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
8544 returning MI_CMD_ERROR.
8545 * mi/mi-main.c (mi_error_message): Delete.
8546 (mi_cmd_exec_interrupt):
8547 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
8548 (mi_cmd_thread_info): Call error instead of returning
8550 (mi_cmd_data_list_register_values): Call error instead of
8551 returning MI_CMD_ERROR. Adapt to new get_register interface.
8552 (get_register): Change return typo to void. Call error instead of
8553 returning MI_CMD_ERROR.
8554 (mi_cmd_data_write_register_values): Call error instead of
8555 returning MI_CMD_ERROR.
8556 (mi_cmd_list_features): Return MI_CMD_DONE.
8557 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
8558 (mi_execute_command): Always print exceptions with -error.
8560 2008-04-04 Joel Brobecker <brobecker@adacore.com>
8562 * NEWS: Mention new commands set/show multiple-symbols.
8564 2008-04-03 Joel Brobecker <brobecker@adacore.com>
8566 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
8567 (multiple_symbols_cancel): New constants.
8568 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
8569 (multiple_symbols_select_mode): New function.
8570 (_initialize_symtab): Add new set/show multiple-symbols commands.
8571 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
8572 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
8573 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
8575 * linespec.c (decode_line_2): Likewise.
8577 2008-04-03 Doug Evans <dje@sebabeach.org>
8579 * symtab.h (enum free_code): Delete free_contents, unused.
8580 * symmisc.c (free_symtab_block): Delete.
8581 (free_symtab, case free_code): Delete.
8583 2008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8585 * valops.c (value_cast_structs): New function. Cast related
8586 STRUCT types up/down and return cast value. The body of this
8587 function comes mostly from value_cast_pointers.
8588 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
8589 to value_cast_structs. Now value_cast_pointers needs only create
8590 appropriate reference after using value_cast_structs for actual
8592 (value_cast): Handle references.
8594 2008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
8596 * MAINTAINERS: Added myself to section Write After Approval.
8598 2008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8600 * ia64-tdep.c (examine_prologue): Correct array access.
8602 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
8604 * cp-support.c (first_component_command): Return if no arguments.
8606 2008-03-28 Carlos O'Donell <carlos@codesourcery.com>
8608 * ser-mingw.c (ser_windows_open): Open requested name.
8610 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
8612 * MAINTAINERS: Added myself.
8614 2008-03-28 Pedro Alves <pedro@codesourcery.com>
8616 * target.c (find_default_run_target): Allow a NULL `do_mesg'
8617 parameter. If it is NULL, don't call error.
8618 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
8619 `do_mesg' parameter to find_default_run_target. If no target was
8622 2008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
8624 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
8625 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
8626 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
8628 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
8630 2008-03-27 Joel Brobecker <brobecker@adacore.com>
8634 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8636 * features/Makefile (%.dat): Set xmltarget to the base filename
8637 of the XML source, without subdirectory.
8638 * regformats/rs6000/powerpc-32.dat: Regenerate.
8639 * regformats/rs6000/powerpc-64.dat: Regenerate.
8640 * regformats/rs6000/powerpc-e500.dat: Regenerate.
8642 2008-03-27 Markus Deuling <deuling@de.ibm.com>
8644 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
8647 2008-03-27 Nick Roberts <nickrob@snap.net.nz>
8649 * mi/mi-main.c (enum captured_mi_execute_command_actions):
8650 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
8652 2008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8654 * objfiles.h (struct objfile): New GDBARCH member.
8655 (get_objfile_arch): Add prototype.
8656 * objfiles.c: Include "arch-utils.h".
8657 (allocate_objfile): Look up gdbarch associated with bfd.
8658 (get_objfile_arch): New function.
8659 * Makefile (objfiles.o): Update dependencies.
8661 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
8663 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
8665 (locexpr_describe_location): Replace current_gdbarch by
8667 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
8668 (dwarf2_add_field): Likewise.
8669 (read_tag_pointer_type): Likewise.
8670 (read_base_type): Likewise.
8671 (new_symbol): Likewise.
8673 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
8674 (decode_base_type, decode_function_type): Likewise.
8675 (coff_read_struct_type, coff_read_enum_type): Likewise.
8676 (coff_symtab_read): Replace current_gdbarch by objfile arch.
8677 (decode_base_type): Likewise.
8678 (coff_read_enum_type): Likewise.
8679 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
8680 (coff_read_enum_type): Likewise.
8682 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
8683 (end_psymtab): Likewise.
8684 (process_one_symbol): Likewise.
8686 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
8687 (parse_procedure): Likewise.
8688 (parse_partial_symbols): Likewise.
8690 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
8692 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
8693 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
8695 (read_range_type): Replace current_gdbarch by objfile arch. Replace
8696 static range_index_type by built-in type.
8697 (read_one_struct_field): Replace current_gdbarch by objfile arch.
8698 (read_enum_type): Likewise.
8700 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
8703 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
8705 * varobj.h (varobj_floating_p): Declare.
8706 * varobj.c (varobj_floating_p): New.
8707 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
8708 '@' as the name, update all floating varobjs.
8710 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
8712 * varobj.c (struct varobj_root): Rename use_selected_frame to
8713 floating, and clarify the meaning.
8714 (varobj_create, varobj_update, new_root_variable): Adjust.
8715 (value_of_root): Don't use type_changed as in variable,
8717 (c_value_of_root): Adjust.
8719 2008-03-25 Pedro Alves <pedro@codesourcery.com>
8721 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
8723 (linux_nat_wait): Add main lwp to gdb's thread list.
8724 * linux-thread-db.c (find_new_threads_callback): Also attach to
8725 already listed threads which thread_db didn't know about yet.
8727 2008-03-25 Pedro Alves <pedro@codesourcery.com>
8729 * linux-nat.c (drain_queued_events): Fix comment typo.
8730 (linux_nat_attach): In async mode, don't rely on storing a pending
8731 status. Instead place the wait status on the pipe.
8732 (linux_nat_resume): Remove unreacheable shortcut code in async
8734 (stop_wait_callback): In async mode, don't store pending status.
8735 Instead, cancel breakpoints or resend the signal appropriatelly.
8736 (cancel_breakpoint): New, refactored from
8737 cancel_breakpoints_callback.
8738 (cancel_breakpoints_callback): Call cancel_breakpoint.
8739 (pipe_to_local_event_queue): Remove special token processing.
8740 (linux_nat_wait): Issue an internal error if a pending status is
8741 found in async mode.
8743 2008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8745 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
8747 2008-03-24 Nick Roberts <nickrob@snap.net.nz>
8748 Vladimir Prus <vladimir@codesourcery.com>
8750 * varobj.c (struct varobj_root): New component thread_id.
8751 (varobj_get_thread_id, check_scope): New functions.
8752 (c_value_of_root): Use check_scope. Switch to the
8753 proper thread if necessary.
8755 * varobj.h (varobj_get_thread_id): New extern.
8757 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
8759 2008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
8762 * top.c: Revert 2008-03-21 changes.
8764 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
8766 * thread.c (make_cleanup_restore_current_thread): Make it
8768 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8769 * varobj.c (varobj_update): Don't save/restore frame.
8770 (c_value_of_root): Save/restore thread and frame here,
8771 using make_cleanup_restore_current_thread.
8772 * Makefile.in: Update dependecies.
8774 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
8776 * varobj.c (struct varobj_root): Clarify
8777 comment on the frame field.
8778 (varobj_create): Don't set frame if we have no
8781 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8784 Suggested by Jan Kratochvil:
8785 * top.c (gdb_rl_operate_and_get_next_completion): Call
8786 rl_redisplay_function.
8787 (gdb_rl_redisplay): New.
8788 (init_main): Set rl_redisplay_function.
8790 2008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
8792 * aix-thread.c (pdc_read_regs): Fix compiler warning.
8793 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
8794 (store_regs_kernel_thread): Likewise.
8796 2008-03-21 Pedro Alves <pedro@codesourcery.com>
8798 Linux native async support.
8800 * target.h (struct target_ops): Delete to_async_mask_value and add
8802 (target_is_async_p, target_async): Formatting.
8803 (target_async_mask_value): Delete.
8804 (target_async_mask): Delete function declaration, and add new
8805 target macro with the same name.
8807 * target.c (update_current_target): Replace to_async_mask_value by
8808 to_async_mask. Default to_async_mask to return_one.
8809 (target_async_mask): Delete.
8810 (find_default_can_async_p, find_default_is_async_p): New.
8811 (init_dummy_target): register find_default_can_async_p and
8812 find_default_is_async_p on the dummy target.
8814 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
8815 (debug_linux_nat_async): New global.
8816 (show_debug_linux_nat_async): New function.
8817 (linux_nat_async_enabled, linux_nat_async_mask_value)
8818 (linux_nat_event_pipe, linux_nat_num_queued_events)
8819 (linux_nat_async_events_enabled): New globals.
8820 (struct waitpid_result): New struct.
8821 (waitpid_queue): New global.
8822 (queued_waitpid, push_waitpid, drain_queued_events): New.
8823 (my_waitpid): Call queued_waitpid.
8824 (linux_child_follow_fork): Disable async events during the call.
8825 (blocked_mask): Delete.
8826 (sync_sigchld_action, async_sigchld_action): New globals.
8827 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
8828 async mode, block events during the call.
8829 (linux_nat_create_inferior): New.
8830 (linux_nat_attach): In sync mode, restore the mask states. In
8831 async mode, wake the event loop immediatelly.
8832 (detach_callback): Drain all queued events of the lwp we're
8834 (linux_nat_detach): Block async mode, and drain events of the main
8836 (linux_nat_resume): If in async mode, mask async events during the
8837 call. If short circuiting, force event loop to wake up. If
8838 resuming, set target_executing, and register target events in the
8840 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
8841 (linux_nat_wait): In async mode, block events during the call.
8842 Only enable/disable passing SIGINT to the inferior in sync mode.
8843 Get events from local waitpid queue. If no interesting events was
8844 found, return to events loop. Reregister target events in the
8845 event loop on exit. In sync mode, no need to reblock SIGCHLD.
8846 (linux_nat_kill): Disable events on entry.
8847 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
8848 here. Detach async mode from the event loop if there are no more
8849 forks available, otherwise leave it on.
8850 (sigchld_handler): Assure this is called only in sync mode.
8851 (linux_async_permitted, linux_async_permitted_1): New globals.
8852 (set_maintenance_linux_async_permitted)
8853 (show_maintenance_linux_async_permitted): New functions.
8854 (linux_nat_is_async_p, linux_nat_can_async_p)
8855 (linux_nat_async_mask): New.
8856 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
8857 (get_pending_events, async_sigchld_handler): New.
8858 (linux_nat_async_events): New.
8859 (async_terminal_is_ours): New global.
8860 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
8861 (async_client_callback, async_client_context): New.
8862 (linux_nat_async_file_handler, linux_nat_async)
8863 (linux_nat_disable_async, linux_nat_enable_async): New.
8864 (linux_nat_add_target): Register linux_nat_create_inferior,
8865 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
8866 linux_nat_async_mask, linux_nat_terminal_inferior and
8867 linux_nat_terminal_ours.
8868 (_initialize_linux_nat): Remove local action variable, and update
8869 code that used it to use sync_sigchld_action. Add new
8870 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
8871 set/show command in the maintenance class. Add new "linux-async"
8872 maintenance set/show command. Block SIGCHLD by default. Setup
8873 async_sichld_action, and sync_sigchld_action. Install the default
8875 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
8878 * linux-thread-db.c (re_check_for_thread_db): New.
8879 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
8880 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
8881 (thread_db_async_mask): New.
8882 (init_thread_db_ops): Register thread_db_can_async_p,
8883 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
8885 * remote.c (remote_async_mask_value): New.
8886 (remote_return_zero): New.
8887 (init_remote_ops): Register remote_return_zero as callbacks of
8888 to_can_async_p and to_is_async_p.
8889 (remote_can_async_p, remote_is_async_p, remote_async): Update to
8890 use remote_async_mask_value.
8891 (remote_async_mask): New.
8892 (init_remote_async_ops): Remove to_async_mask_value setting and
8893 register remote_async_mask as to_async_mask callback in
8896 * Makefile.in (linux-nat.o): Update.
8898 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8900 * gdbthread.h (add_thread_with_info): New.
8901 * linux-thread-db.c: Add some documentation.
8902 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
8903 (struct private_thread_info): Remove th_valid and ti_valid.
8904 Replace ti with tid.
8905 (thread_get_info_callback): Do not add TID to the new ptid. Do
8907 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
8908 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
8910 (attach_thread): Handle an already-existing thread. Use
8911 add_thread_with_info. Cache the th and tid.
8912 (detach_thread): Verify that private was set. Remove verbose
8913 argument and printing. Update caller.
8914 (thread_db_detach): Do not adjust inferior_ptid.
8915 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
8916 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
8917 (thread_db_wait): Do not use lwp_from_thread.
8918 (thread_db_pid_to_str): Use the cached TID.
8919 (thread_db_extra_thread_info): Check that private is set.
8920 (same_ptid_callback): Delete.
8921 (thread_db_get_thread_local_address): Do not use it or check
8922 is_thread. Check that private is set. Assume that the thread
8923 handle is already cached.
8924 (init_thread_db_ops): Remove to_resume and to_kill.
8925 * thread.c (add_thread_with_info): New.
8926 (add_thread): Use it.
8927 * linux-nat.c (find_thread_from_lwp): Delete.
8928 (exit_lwp): Do not use it. Check print_thread_events. Print before
8929 deleting the thread.
8930 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
8931 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
8932 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
8933 printf_unfiltered for thread exits.
8934 * procfs.c (procfs_wait): Likewise.
8936 2008-03-21 Chris Demetriou <cgd@google.com>
8938 * symtab.c (rbreak_command): Quote symbol name before passing
8939 it to break_command.
8941 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8943 * eval.c (evaluate_subexp_for_address): Clarify error message.
8944 Use value_must_coerce_to_target.
8945 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
8946 * valops.c (value_assign): Call value_coerce_to_target when
8947 assigning to anything but internalvars. Leave GDB-side arrays
8948 as arrays when assigning to internalvars.
8949 (value_must_coerce_to_target, value_coerce_to_target): New.
8950 (value_coerce_array, value_addr): Call value_coerce_to_target.
8951 (value_array): Create the array in GDB's memory instead of
8953 * value.h (value_must_coerce_to_target, value_coerce_to_target):
8956 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8958 * top.c (quit_confirm): Warn that we will kill the program.
8960 2008-03-19 Pedro Alves <pedro@codesourcery.com>
8962 * inflow.c (terminal_ours_1): Guard access to
8963 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
8965 2008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
8966 Jim Blandy <jimb@codesourcery.com>
8967 Daniel Jacobowitz <drow@false.org>
8969 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
8970 (dwarf2_read_address): Update prototype.
8972 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
8973 (signed_address_type): Likewise.
8974 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
8975 (execute_stack_op): Update calls to unsigned_address_type,
8976 signed_address_type and dwarf2_read_address. Fix implementation
8977 of DW_OP_deref_size.
8979 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
8980 (dwarf2_per_cu_addr_size): Likewise.
8981 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
8982 (struct dwarf2_loclist_baton): Likewise.
8984 * dwarf2loc.c (find_location_expression): Update calls to
8985 dwarf2_read_address. Use dwarf2_per_cu_objfile and
8986 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
8987 (locexpr_describe_location): Likewise.
8988 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
8989 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
8990 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
8991 to dwarf2_per_cu_addr_size (per_cu).
8992 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
8993 (loclist_read_variable): Likewise.
8994 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
8996 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
8997 instead of baton->objfile.
8998 (dwarf2_per_cu_obfile): New function.
8999 (dwarf2_per_cu_addr_size): Likewise.
9001 * dwarf2-frame.c (struct comp_unit): Move higher.
9002 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
9003 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
9004 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
9005 parameter by using fde->eh_frame_p. Use read_encoded_value
9006 to implement DW_CFA_set_loc.
9007 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
9008 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
9009 execute_stack_op and execute_cfa_program.
9010 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
9011 (size_of_encoded_value): Remove.
9012 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
9013 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
9014 (add_cie): Set cie->unit backlink.
9015 (decode_frame_entry_1): Set cie->addr_size. Update calls to
9017 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
9019 2008-03-17 Markus Deuling <deuling@de.ibm.com>
9021 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
9022 gdbarch_bfd_arch_info.
9024 2008-03-17 Joel Brobecker <brobecker@adacore.com>
9026 * aix-thread.c (pdc_read_regs): Minor reformatting.
9028 2008-03-17 Vladimir Prus <vladimir@codesourcery.com>
9030 * thread.c (print_thread_info): Don't insist
9031 on having current thread if there are no
9034 2008-03-17 Pedro Alves <pedro@codesourcery.com>
9036 * infcmd.c (attach_command_post_wait)
9037 (attach_command_continuation): New.
9038 (attach_command): Support background async execution, and async
9039 execution in synchronous mode.
9041 2008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
9043 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
9044 * symmisc.c (dump_symtab_1): Likewise.
9045 * wrapper.c (gdb_value_struct_elt): Likewise.
9047 2008-03-17 Pedro Alves <pedro@codesourcery.com>
9049 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
9051 2008-03-17 Pedro Alves <pedro@codesourcery.com>
9053 * linux-nat.c (linux_nat_filter_event): New, refactored from
9055 (linux_nat_wait): Call linux_nat_filter_event.
9057 2008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
9059 * top.c (execute_command): Fix uninitialized variable error.
9061 2008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
9063 * Makefile.in (amd64nbsd-nat.o): New dependency.
9064 * amd64nbsd-nat.c: Include "nbsd-nat.h".
9065 (_initialize_amd64nbsd_nat): Update target vector to use
9066 nbsd_pid_to_exec_file.
9067 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
9069 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
9071 Remove ignoring leading exec events code.
9072 * fork-child.c (startup_inferior): Do not set
9073 inferior_ignoring_leading_exec_events.
9074 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
9075 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
9076 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
9077 (handle_inferior_event): Remove code for ignoring leading exec
9079 * target.c (update_current_target): Do not inherit, or default,
9080 to_reported_exec_events_per_exec_call.
9081 (debug_to_reported_exec_events_per_exec_call): Remove.
9082 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
9083 * target.h (target_reported_exec_events_per_exec_call): Remove.
9084 (struct target): Remove the to_reported_exec_events_per_exec_call
9087 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
9089 Implement -thread-info.
9090 * gdbthread.h (print_thread_info): Declare.
9092 * thread.c (print_thread_info): New, extracted
9093 from info_threads_command and adjusted to
9094 work for CLI and MI.
9095 (info_threads_command): Use print_thread_info.
9096 * Makefile.in: Update dependencies.
9098 * mi/mi-cmds.c (mi_cmds): Specify a handler
9100 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
9101 * mi/mi-main.c (mi_cmd_thread_info): New.
9102 (mi_cmd_list_features): Include 'thread-info'.
9104 2008-03-14 Kevin Buettner <kevinb@redhat.com>
9106 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
9107 to decide whether to match instruction patterns using "sw" and "sd".
9109 2008-03-14 Pedro Alves <pedro@codesourcery.com>
9111 * infcmd.c (jump_command): Postpone disabling stdin until after
9114 2008-03-14 Pedro Alves <pedro@codesourcery.com>
9116 * inflow.c (gdb_getpgrp): New.
9117 (gdb_has_a_terminal): Use get_getpgrp.
9118 (terminal_ours_1): If attach_flag is set, don't refetch
9119 inferior_process_group.
9121 2008-03-14 Pedro Alves <pedro@codesourcery.com>
9123 * features/library-list.dtd: Allow "section" elements as children
9124 of "library". Add "section" element and describe its attributes.
9126 * solib-target.c (struct lm_info): Add section_bases member.
9127 (library_list_start_segment): Error out if seen a section element.
9128 (library_list_start_section): New.
9129 (library_list_end_library): New.
9130 (solib_target_free_library_list): Free section_bases.
9131 (section_attributes): New.
9132 (library_children): Make "segment" optional. Add "section" child.
9133 (library_list_children): Register library_list_end_library.
9134 (solib_target_relocate_section_addresses): Handle section bases.
9136 * NEWS: Mention new qXfer:libraries:read section offsets support.
9138 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9140 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
9141 (make_exec_error_cleanup): Remove declarations.
9142 * utils.c (exec_error_cleanup_chain): Remove.
9143 (do_exec_error_cleanups, discard_exec_error_cleanups)
9144 (make_exec_error_cleanup): Remove.
9145 * event-loop.c (start_event_loop): Adjust call to
9147 * event-top.c (async_enable_stdin): Remove the paramater dummy.
9148 (async_disable_stdin): Don't register async_enable_stdin via
9150 * inf-loop.c (inferior_event_handler): Don't
9151 call do_exec_error_cleanups. Call async_enable_stdin instead.
9152 * event-loop.c (start_event_loop): Adjust call to
9154 * tui/tui-interp.c (tui_command_loop): Adjust call to
9157 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9160 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
9161 * breakpoint.c (bpstat_do_actions): In async mode,
9162 don't jump to top expecting stop_bpstat to be already
9164 * event-loop.c (start_event_loop): Call async_enable_stdin
9166 * event-top.c (async_enable_stdin): Do nothing if sync_execution
9168 (command_handler): Do not setup continuation here.
9169 (command_line_handler_continuation): Move to...
9170 * top.c (command_line_handler_continuation): ... here.
9171 (execute_command): In async mode, register continuation.
9172 Don't check frame's language in running in async mode.
9173 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
9174 * inf-loop.c (complete_execution): Inline into...
9175 (inferior_event_handler): ... here. Clear target_executing before
9176 doing any cleanups. Don't try to show prompt if the target was
9178 * infcmd.c (signal_command): Add support for async mode.
9179 (finish_command): Only add continuation if the target was
9180 successfully resumed.
9181 * remote.c (init_async_opts): Register to_get_thread_local_address
9183 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
9184 with sync_execution.
9185 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
9188 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
9190 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
9191 * exec.c (exec_bfd_mtime): Define.
9192 (exec_close): Clear it.
9193 (exec_file_attach): Set it.
9194 * gdbcore.h (exec_bfd_mtime): Declare.
9195 * source.c (find_source_lines): Do not use bfd_get_mtime.
9197 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9199 * top.c (simplified_command_loop): Remove.
9201 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9203 Remove unused remote.c hooks.
9204 * remote.c (deprecated_target_resume_hook)
9205 (deprecated_target_wait_loop_hook): Remove.
9206 (remote_resume): Do not call deprecated_target_resume_hook.
9207 (remote_wait): Do not call deprecated_target_wait_loop_hook.
9208 (remote_async_wait): Likewise.
9210 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9212 Implement MI notification for new threads.
9213 * doc/observer.texi (new_thread): Document.
9214 * observer.sh: Forward declare struct thread_info.
9215 * thread.c (add_thread): Notify observer.
9217 * interps.h (interp_init_ftype): New parameter
9219 (interp_set): Likewise.
9220 (top_level_interpreter_data): Declare.
9221 * interps.c (interp_set): New parameter top_level.
9222 Pass it to interpreter's init function. Remember
9223 top level interpreter.
9224 (interpreter_exec_cmd): Adjust.
9225 (top_level_interpreter_data): New.
9226 * main.c (captured_main): Pass 1 for top_level
9227 parameter of interp_set.
9228 * cli/cli-interp.c (cli_interpreter_init): New
9229 parameter top_level.
9230 * tui/tui-interp.c (tui_init): New parameter top_level.
9232 * mi/mi-interp.c (mi_new_thread): New.
9233 (mi_interpreter_init): If top level, register
9234 observer for new threads.
9236 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
9238 2008-03-14 Pedro Alves <pedro@codesourcery.com>
9240 * top.c (execute_command): Disable break and stop
9241 commands in async mode.
9243 2008-03-14 Pedro Alves <pedro@codesourcery.com>
9246 2008-03-14 Pedro Alves <pedro@codesourcery.com>
9247 * inf-loop.c (inferior_event_handler): Don't include remote.h.
9248 Call target_stop in the INF_QUIT_REQ case.
9249 * Makefile.in (inf-loop.o): Update.
9251 2008-03-14 Pedro Alves <pedro@codesourcery.com>
9253 * inf-loop.c (inferior_event_handler): Don't include remote.h.
9254 Call target_stop in the INF_QUIT_REQ case.
9255 * Makefile.in (inf-loop.o): Update.
9257 2008-03-14 Pedro Alves <pedro@codesourcery.com>
9259 * top.c (execute_command): Enable break, info and interrupt
9260 commands in async mode.
9262 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
9263 Daniel Jacobowitz <dan@codesourcery.com>
9265 * breakpoint.h (breakpoint_restore_shadows): New
9267 * breakpoint.c (breakpoint_restore_shadows): New.
9268 (read_memory_nobpt): Delete.
9269 * gdbcore.h (read_memory_nobpt): Delete declaration.
9270 * target.c (memory_xfer_partial): Call
9271 breakpoint_restore_shadows.
9272 (restore_show_memory_breakpoints)
9273 (make_show_memory_breakpoints_cleanup): New.
9274 (show_memory_breakpoints): New.
9275 * target.h (make_show_memory_breakpoints_cleanup): Declare.
9276 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
9277 Make sure we see memory breakpoints when checking if
9278 breakpoint is still there.
9279 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
9280 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
9281 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
9282 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
9284 2008-03-12 Pedro Alves <pedro@codesourcery.com>
9286 * thread.c (add_thread): Use printf_unfiltered to print.
9288 2008-03-12 Joel Brobecker <brobecker@gnat.com>
9290 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
9291 that is true only on x86-solaris and x86_64-solaris.
9292 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
9293 with proc_get_LDT_entry.
9295 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
9297 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
9298 * config.in, configure: Regenerate.
9299 * fork-child.c (fork_inferior): Call create_tty_session.
9300 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
9301 (create_tty_session): New function.
9302 * terminal.h: Declare create_tty_session.
9304 2008-03-12 Alan Modra <amodra@bigpond.net.au>
9307 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
9308 * mipsread.c: Include elf/internal.h.
9309 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
9312 2008-03-11 Markus Deuling <deuling@de.ibm.com>
9314 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
9315 to get at the current architecture and at the target specific vector.
9316 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
9317 remove define of I387_ST0_REGNUM.
9319 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
9321 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
9322 get at the current architecture
9323 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
9326 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
9327 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
9329 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
9330 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
9331 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
9333 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
9334 at the target specific vector.
9336 (i386_get_longjmp_target): Use get_frame_arch to get at the current
9337 architecture. Use gdbarch_tdep to get at the target specific vector.
9339 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
9340 update caller. Use gdbarch_tdep to get at the target specific vector.
9342 (i386_register_to_value: Use get_frame_arch to get at the current
9345 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
9348 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
9349 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
9350 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
9351 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
9353 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
9356 (i387_convert_register_p, i387_register_to_value,
9357 i387_value_to_register): Update call for i386_fp_regnum_p.
9359 * i387-tdep.h: Remove comment.
9360 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
9361 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
9362 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
9363 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
9364 I387_MXCSR_REGNUM): Add target specific vector as parameter.
9366 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
9368 * Makefile.in (fork-child.o): Update.
9369 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
9370 argument. Gather all gdbserver features together.
9371 * fork-child.c (exec_wrapper): New variable.
9372 (fork_inferior): Use it.
9373 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
9374 (unset_exec_wrapper_command, _initialize_fork_child): New.
9376 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
9378 * source.c (directory_command): Modify the determination of
9379 condition of terminal "from_tty".
9381 2008-03-10 Matt Rice <ratmice@gmail.com>
9383 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
9385 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
9387 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
9388 of the data passing to strtoulst function.
9389 (info_spu_signal_command): Likewise.
9391 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
9393 * mi/mi-interp.c (mi_command_loop): Remove
9396 2008-03-07 Joel Brobecker <brobecker@adacore.com>
9398 * remote.c (extended_remote_attach_1): Make local variable pid an int
9401 2008-03-07 Joel Brobecker <brobecker@adacore.com>
9403 * solib-svr4.c (svr4_same_1): New function, originally extracted
9404 from svr4_same and expanded to handle the sparc64 case.
9405 (svr4_same): Move up and reimplement using svr4_same_1.
9406 (enable_break): Use svr4_same_1 to do shared library name comparisons.
9408 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
9410 * MAINTAINERS: Move self to Paper trail.
9412 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
9414 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
9415 * event-loop.c (call_async_signal_handler): New.
9416 * event-loop.h (call_async_signal_handler)
9417 (gdb_call_async_signal_handler): Declare.
9418 (mark_async_signal_handler): Add comments.
9419 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
9420 * mingw-hdep.c (sigint_event, sigint_handler): New.
9421 (gdb_select): Use them. Wait for the readline signal handler
9423 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
9424 * posix-hdep.c (gdb_call_async_signal_handler): New function.
9425 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
9427 (remote_fileio_ctrl_c_signal_handler): Use
9428 gdb_call_async_signal_handler.
9429 (initialize_remote_fileio): Initialize sigint_fileio_token.
9430 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
9431 not initialize tokens here.
9432 (handle_remote_sigint_twice): Likewise. Reinstall
9433 handle_remote_sigint.
9434 (async_remote_interrupt_twice): Just call interrupt_query.
9435 (cleanup_sigint_signal_handler): Do not delete tokens.
9436 (remote_interrupt, remote_interrupt_twice): Use
9437 gdb_call_async_signal_handler.
9438 (interrupt_query): Reinstall the default signal handler.
9439 (_initialize_remote): Initialize tokens here.
9441 2008-03-04 Joel Brobecker <brobecker@adacore.com>
9443 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
9444 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
9445 Change the type of the lr register to code_ptr.
9446 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
9447 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
9448 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
9449 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
9450 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
9451 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
9452 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
9454 2008-03-03 James E. Wilson <wilson@tuliptree.org>
9456 * MAINTAINERS: Update my email address.
9458 2008-03-03 Keith Seitz <keiths@redhat.com>
9460 From Dave Murphy <davem@devkitpro.org>:
9461 * configure.ac: Set tcl configdir to win under mingw.
9462 * configure: Regenerate.
9464 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
9466 * breakpoint.c (fetch_watchpoint_value): New function.
9467 (update_watchpoint): Set and clear val_valid. Use
9468 fetch_watchpoint_value. Handle unreadable values on the
9469 value chain. Correct check for user-requested array watchpoints.
9470 (breakpoint_init_inferior): Clear val_valid.
9471 (watchpoint_value_print): New function.
9472 (print_it_typical): Use it. Do not free or clear old_val. Print
9473 watchpoints even if old_val == NULL.
9474 (watchpoint_check): Use fetch_watchpoint_value. Check for values
9475 becoming readable or unreadable.
9476 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
9477 (do_enable_watchpoint): Likewise.
9478 * breakpoint.h (struct breakpoint): Update comment for val. Add
9480 * NEWS: Mention watchpoints on inaccessible memory.
9482 2008-02-29 Daniel Jacobowitz <dan@codesourcery.com>
9484 * Makefile.in (i386-nat.o): Update.
9485 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
9486 i386_use_watchpoints.
9487 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
9488 i386_use_watchpoints.
9489 * i386-nat.c (i386_stopped_data_address): Take two arguments.
9490 (i386_stopped_by_watchpoint): Update call.
9491 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
9492 * config/i386/nm-i386.h: Conditionalize definitions on
9493 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
9494 (i386_use_watchpoints): Declare.
9495 (i386_stopped_data_address): Update.
9496 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
9497 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
9499 2008-02-29 Joel Brobecker <brobecker@adacore.com>
9501 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
9502 * version.in: Bump version to 6.8.50.20080229-cvs.
9504 2008-02-28 Markus Deuling <deuling@de.ibm.com>
9506 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
9509 2008-02-28 Tom Tromey <tromey@redhat.com>
9511 * infcmd.c (notice_args_read): Print result of get_inferior_args.
9513 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
9515 * infcmd.c (kill_if_already_running): Make static. Use
9516 target_require_runnable.
9517 * target.c (target_require_runnable): New.
9518 * target.h (target_require_runnable): Declare.
9520 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
9522 * frame.c (reinit_frame_cache): Only annotate if frames were
9525 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9527 * regformats/reg-ppc.dat: Rename "ps" to "msr".
9528 * regformats/reg-ppc64.dat: Likewise.
9530 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9532 * features/Makefile (%.dat): Emit xmltarget statement.
9534 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
9535 Generate code to set gdbserver_xmltarget in init_registers_${name}.
9537 * regformats/arm-with-iwmmxt.dat: Regenerate.
9538 * regformats/mips64-linux.dat: Regenerate.
9539 * regformats/mips-linux.dat: Regenerate.
9540 * regformats/rs6000/powerpc-32.dat: Regenerate.
9541 * regformats/rs6000/powerpc-64.dat: Regenerate.
9542 * regformats/rs6000/powerpc-e500.dat: Regenerate.
9544 * regformats/reg-arm.dat: Add xmlarch statement.
9545 * regformats/reg-i386.dat: Likewise.
9546 * regformats/reg-i386-linux.dat: Likewise.
9547 * regformats/reg-x86-64-linux.dat: Likewise.
9548 * regformats/reg-spu.dat: Likewise.
9550 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
9552 * remote.c (remote_wait, remote_async_wait): Stop if we receive
9555 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
9557 * utils.c (debug_timestamp): New.
9558 (vfprintf_unfiltered): Print timestamps if requested.
9559 (show_debug_timestamp): New.
9560 (initialize_utils): Register "set debug timestamp".
9561 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
9563 2008-02-27 Joel Brobecker <brobecker@adacore.com>
9565 * breakpoint.c (skip_prologue_sal): New function.
9566 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
9567 computed from a line number.
9569 2008-02-27 Joel Brobecker <brobecker@adacore.com>
9571 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
9572 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
9573 Set PC register type to "code_ptr".
9574 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
9575 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
9576 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
9577 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
9578 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
9579 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
9580 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
9583 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
9585 * regformats/regdat.sh: Rename init_registers function in
9586 generated file to init_registers_${name}.
9588 * regformats/reg-crisv32.dat: Set "name" to crisv32.
9589 * regformats/reg-ppc64.dat: Set "name" to ppc64.
9590 * regformats/reg-s390x.dat: Set "name" to s390x.
9592 2008-02-26 Greg Law <glaw@undo-software.com>
9594 * regcache.c (registers_changed): Call reinit_frame_cache.
9596 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9598 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
9599 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
9600 and svr4_fetch_objfile_link_map.
9601 * Makefile.in (sh-linux-tdep.o): Update.
9603 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
9605 * amd64-tdep.c (amd64_classify): Add support for decimal float
9607 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
9608 use the struct return convention.
9610 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
9612 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
9613 to old format. Discard breakpoint address if shared library is
9615 (breakpoint_1): Adjust formatting of table header accordingly.
9617 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
9619 * remote.c (remote_get_threadlist): If the response
9620 is empty, don't try to parse it.
9622 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
9624 Unbreak 'target async'.
9625 * serial.c (serial_async): Set the
9626 handler function before enabling async
9629 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
9631 * solib-svr4.c (enable_break): Convert r_brk to a code address.
9633 2008-02-21 Pedro Alves <pedro@codesourcery.com>
9635 * remote.c (extended_remote_attach_1): Set attach_flag.
9636 (extended_remote_create_inferior_1): Clear attach_flag.
9638 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
9640 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
9642 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
9643 * solib-svr4.c (solib_svr4_r_brk): New.
9644 (open_symbol_file_object, svr4_current_sos): Always check the
9646 (svr4_fetch_objfile_link_map): Do not set debug_base.
9647 (enable_break): Use r_brk if it is set.
9648 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
9649 (svr4_lp64_fetch_link_map_offsets): Likewise.
9650 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
9652 2008-02-20 Markus Deuling <deuling@de.ibm.com>
9653 Mark Kettenis <kettenis@gnu.org>
9655 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
9656 trad_frame_saved_reg.
9657 (trad-frame.h): New include.
9659 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
9660 instead of frame_obstack_zalloc.
9661 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
9663 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
9665 2008-02-20 Markus Deuling <deuling@de.ibm.com>
9667 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
9668 from disassemble_info instead of gdbarch_byte_order.
9670 * mips-tdep.c (gdb_print_insn_mips): Likewise.
9671 * arm-tdep.c (gdb_print_insn_arm): Likewise.
9673 2008-02-20 Markus Deuling <deuling@de.ibm.com>
9675 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
9676 gdbarch as parameter.
9678 * gdbarch.{c,h}: Regenerate.
9680 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
9682 * mem-break.c (default_memory_insert_breakpoint)
9683 (default_memory_remove_breakpoint): Likewise.
9684 * target.h (default_memory_remove_breakpoint)
9685 (default_memory_insert_breakpoint): Likewise.
9687 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
9688 parameter. Replace current_gdbarch by gdbarch.
9689 * m32r-tdep.c (m32r_memory_insert_breakpoint)
9690 (m32r_memory_remove_breakpoint): Likewise.
9692 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
9694 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
9696 2008-02-19 Joel Brobecker <brobecker@adacore.com>
9698 * NEWS: Add entry describing Add support improvements.
9700 2008-02-18 Markus Deuling <deuling@de.ibm.com>
9702 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
9705 2008-02-18 Markus Deuling <deuling@de.ibm.com>
9707 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
9708 register_offset_hack anymore.
9710 * regcache.{c,h} (register_offset_hack): Remove.
9712 2008-02-18 Markus Deuling <deuling@de.ibm.com>
9714 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
9716 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
9717 current_gdbarch by gdbarch.
9718 (hppa64_hpux_find_global_pointer): Likewise.
9719 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
9720 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
9721 find_global_pointer.
9723 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
9725 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
9727 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
9728 of gdbarch_num_regs.
9730 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
9731 replace current_gdbarch by gdbarch.
9732 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
9734 2008-02-18 Markus Deuling <deuling@de.ibm.com>
9736 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
9737 and replace current_gdbarch by gdbarch.
9739 (store_register): Update call for exec_one_dummy_insn.
9740 (fetch_register, store_register): Update call of regmap.
9742 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
9743 parameter and replace current_gdbarch by gdbarch.
9745 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
9746 the current architecture. Update call for getregs_supplies and
9748 (ppcnbsd_fetch_inferior_registers): Likewise.
9750 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
9751 replace current_gdbarch by gdbarch.
9752 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
9753 get_regcache_arch to get at the current architecture. Update call for
9756 2008-02-18 Markus Deuling <deuling@de.ibm.com>
9758 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
9761 2008-02-15 Markus Deuling <deuling@de.ibm.com>
9763 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
9765 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
9767 * NEWS: Mention pending breakpints in MI.
9769 2008-02-14 Markus Deuling <deuling@de.ibm.com>
9771 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
9773 2008-02-13 Markus Deuling <deuling@de.ibm.com>
9775 Add script to build and test GDB using enable-targets=all.
9777 * gdb_buildall.sh: New file.
9779 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
9781 * NEWS (New native configurations): Xtensa GNU/Linux.
9782 (New targets): Xtensa GNU/Linux.
9783 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
9785 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
9786 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
9787 * configure.tgt (xtensa*-*-linux*): New entry.
9788 * xtensa-config.c (xtensa_tdep): New variable.
9789 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
9790 (rmap): Change format based on new macro XTREG.
9791 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
9792 * xtensa-linux-nat.c: New.
9793 * xtensa-linux-tdep.c: New.
9794 * xtensa-xtregs.c: New.
9795 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
9796 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
9797 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
9798 (xtensa_register_t): New field coprocessor.
9799 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
9800 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
9801 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
9802 Update to handle privileged registers.
9803 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
9804 (xtensa_push_dummy_call): Set windowstart register correctly.
9805 (call0_analyze_prologue): Initialize xtensa_default_isa.
9806 (xtensa_derive_tdep): New.
9807 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
9808 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
9809 Call xtensa_derive_tdep().
9810 * config/xtensa/linux.mh: New.
9811 * regformats/reg-xtensa.dat: New.
9813 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
9815 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
9816 (filenames.h): New include.
9817 * Makefile.in (corelow.o): Add dependency for filenames.h.
9819 2008-02-08 Doug Evans <dje@google.com>
9821 * source.c (find_and_open_source): Always rewrite absolute filenames.
9823 2008-02-07 Doug Evans <dje@google.com>
9825 * breakpoint.c: #include "hashtab.h".
9826 (ambiguous_names_p): New fn.
9827 (update_breakpoint_locations): When restoring bp enable status, don't
9828 compare function names if any functions have same name.
9829 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
9831 2008-02-07 Joel Brobecker <brobecker@adacore.com>
9833 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
9834 instead of just a VEC*. Update use of SV.
9835 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
9837 2007-02-07 Joel Brobecker <brobecker@adacore.com>
9839 * NEWS: Put all new commands since gdb-6.7 together.
9841 2007-02-07 Joel Brobecker <brobecker@adacore.com>
9843 * ada-lang.c: #include "vec.h".
9844 (struct string_vector, new_string_vector, string_vector_append):
9846 (char_ptr): New typedef.
9847 (DEF_VEC_P (char_ptr)): New VEC type.
9848 (symbol_completion_add): Update profile to take the new VEC type
9849 instead of the old string_vector structure. Update code accordingly.
9850 (ada_make_symbol_completion_list): Use the new VEC type instead of
9851 the old string_vector structure, and update the code accordingly.
9852 * Makefile.in (ada-lang.o): Add dependency on vec.h.
9854 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9856 * p-exp.y: Set current_type in missing places.
9857 (leftdiv_is_integer): New static variable.
9858 Typecast right operand of BINOP_DIV to long_double if both operands
9861 2008-02-06 Maciej W. Rozycki <macro@mips.com>
9863 * remote-mips.c (set_breakpoint): Rename to...
9864 (mips_set_breakpoint): ... this.
9865 (clear_breakpoint): Rename to...
9866 (mips_clear_breakpoint): ... this.
9867 (common_breakpoint): Rename to...
9868 (mips_common_breakpoint): ... this.
9869 (check_lsi_error): Rename to...
9870 (mips_check_lsi_error): ... this.
9872 2007-02-05 Joel Brobecker <brobecker@adacore.com>
9874 * language.h (struct language_defn): Add new field
9875 la_make_symbol_completion_list.
9876 * symtab.c (default_make_symbol_completion_list): Renames
9877 make_symbol_completion_list.
9878 (make_symbol_completion_list): New function.
9879 * symtab.h (default_make_symbol_completion_list): Add declaration.
9880 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
9881 (auto_language, local_language): Likewise.
9882 * objc-lang.c (objc_language_defn): Likewise.
9883 * scm-lang.c (scm_language_defn): Likewise.
9884 * m2-lang.c (m2_language_defn): Likewise.
9885 * f-lang.c (f_language_defn): Likewise.
9886 * jv-lang.c (java_language_defn): Likewise.
9887 * p-lang.c (pascal_language_defn): Likewise.
9888 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
9889 (minimal_language_defn): Likewise.
9890 * ada-lang.c (struct string_vector): New structure.
9891 (new_string_vector, string_vector_append, ada_unqualified_name)
9892 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
9893 (ada_make_symbol_completion_list): New functions.
9894 (ada_language_defn): Set la_make_symbol_completion_list.
9895 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
9896 this function is static.
9898 2008-02-05 Kevin Buettner <kevinb@redhat.com>
9900 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
9901 to account for call site optimizations.
9903 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
9905 * tracepoint.c (read_actions): Handle end-of-text indicator
9906 in action list properly. (Committed by Jim Blandy)
9908 2008-02-05 Jim Blandy <jimb@red-bean.com>
9910 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
9911 pseudoregister, not an internal error.
9912 Reported by: Andrzej Zaborowski
9914 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
9916 * varobj.c (c_value_of_variable): Use xstrdup.
9918 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
9920 Update stored rendition of varobj value when format changes.
9921 * varobj.c (varobj_set_display_format): Recomputed
9923 (c_value_of_variable): Return print_value.
9925 2008-02-03 Doug Evans <dje@google.com>
9927 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
9928 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
9929 * valops.c (value_one): New function.
9930 * value.h (value_one): Declare.
9932 Fix argument promotion for binary arithmetic ops for C.
9933 * valarith.c (unop_result_type): New fn.
9934 (binop_result_type): New fn.
9935 (value_binop): Move result type computation to binop_result_type.
9936 (value_pos, value_neg, value_complement): Move result type
9937 computation to unop_result_type.
9940 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
9941 Return basetype, fieldno if found. All callers updated.
9942 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
9944 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
9945 * symfile.h (fill_in_vptr_fieldno): Delete.
9947 2008-02-02 Doug Evans <dje@google.com>
9949 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
9951 * typeprint.c (*): Whitespace cleanup.
9953 2008-02-02 Mark Kettenis <kettenis@gnu.org>
9954 Luis Machado <luisgpm@br.ibm.com>
9955 Thiago Jung Bauermann <bauerman@br.ibm.com>
9957 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
9958 don't fit into registerson the stack the way GCC does.
9960 2008-02-01 Joel Brobecker <brobecker@adacore.com>
9962 * symtab.c (symbol_set_names): Do not add an entry in the demangling
9963 hash table for Ada symbols. Just store the linkage name as is,
9964 and leave the demangled_name as NULL.
9966 2007-02-01 Joel Brobecker <brobecker@adacore.com>
9968 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
9969 in the global scope.
9970 (new_symbol): Likewise.
9972 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
9974 * breakpoint.c (break_command_1): Return void.
9975 (break_command_really): Return void. Rethrow
9976 exceptions instead of returning.
9977 (gdb_breakpoint): Remove the error_message parameter.
9978 Return void. Rename to set_breakpoint.
9979 * gdb.h (gdb_breakpoint): Rename and move to...
9980 * breakpoint.h (set_breakpoint): ...here.
9981 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
9982 event hooks even if exception is thrown. Adjust to
9983 gdb_breakpoint interface changes.
9986 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
9988 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
9989 float in both first and second word in the doubleword, to support
9992 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
9994 Properly rethrow exception. This fixes errors
9995 about non-existent functions for -break-insert.
9996 * breakpoint.c (break_command_really): Use throw_exception
9997 for rethrowing. If rethrowing, don't print the exception.
9999 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
10001 * NEWS: Mention Decimal Floating Point support.
10003 2008-01-31 Joel Brobecker <brobecker@adacore.com>
10005 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
10006 value type to builtin_type_void_func_ptr.
10008 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
10010 * s390-tdep.c (is_float_singleton, is_float_like,
10011 alignment_of, s390_return_value): Make checks for
10012 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
10014 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
10015 Thiago Jung Bauermann <bauerman@br.ibm.com>
10017 * infcmd.c (default_print_registers_info): Also print hex
10018 raw contents for TYPE_CODE_DECFLOAT registers.
10019 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
10020 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
10021 (rs6000_register_name): Add support for DFP pseudo-registers.
10022 (rs6000_pseudo_register_type): Likewise.
10023 rs6000_pseudo_register_reggroup_p): Likewise.
10024 (ppc_pseudo_register_read): New function.
10025 (ppc_pseudo_register_write): Likewise.
10026 (rs6000_pseudo_register_read): Likewise.
10027 (rs6000_pseudo_register_write): Likewise.
10028 (e500_pseudo_register_read): Move checks to
10029 rs6000_pseudo_register_read.
10030 (e500_pseudo_register_write): Move checks to
10031 rs6000_pseudo_register_write.
10032 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
10033 rs6000_pseudo_register_read and rs6000_pseudo_register_write
10034 in gdbarch if SPE or DFP is available. Adjust gdbarch's
10035 num_pseudo_regs to account for DFP pseudo regs.
10037 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
10039 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
10040 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
10041 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
10042 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
10043 e500_pseudo_register_read, e500_pseudo_register_write): Use
10044 IS_SPE_PSEUDOREG macro.
10045 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
10046 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
10047 Remove initialization of tdep->ppc_ev31_regnum.
10049 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
10051 * printcmd.c (print_formatted): Handle references as for unformatted
10054 2008-01-30 Joel Brobecker <brobecker@adacore.com>
10056 * eval.c (evaluate_subexp_standard): Add handling of user
10057 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
10059 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
10061 * eval.c (evaluate_subexp_standard): Support
10062 BINOP_INTDIV opcode.
10064 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
10066 * valarith.c (value_binop): Add floating-point BINOP_MIN and
10068 For BINOP_EXP, use length and signedness of left operand only for
10069 result, as for shifts.
10070 For integral operands to BINOP_EXP, use new integer_pow and
10071 uinteger_pow functions so as to get full range of results.
10072 (integer_pow): New function.
10073 (uinteger_pow): New function.
10075 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
10077 Use vector for varobj_list_children interface.
10078 * gdb/varobj.c (varobj_list_children): Return vector
10080 * gdb/varobj.h (varobj_list_children): Adjust
10082 (varobj_p): Declare. Declare vector thereof.
10083 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
10084 for varobj_list_children change.
10085 * Makefile.in (varobj_h): Update dependencies.
10087 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
10089 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
10090 TYPE_CODE_DECFLOAT arguments.
10091 (ppc64_sysv_abi_push_dummy_call) Likewise.
10092 (get_decimal_float_return_value): New function.
10093 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
10094 values by calling get_decimal_float_return_value.
10095 (ppc64_sysv_abi_return_value): Likewise.
10097 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
10099 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
10100 for preprocessor macro information. Formatting changes.
10102 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10104 * remote.c (struct remote_state): Add cached_wait_status.
10105 (remote_exec_file): New variable.
10106 (PACKET_vAttach, PACKET_vRun): New constants.
10107 (extended_remote_restart): Do not query for status.
10108 (struct start_remote_args): New.
10109 (remote_start_remote): Take it as a second argument. Check
10110 whether the target is running. Issue an error for non-running
10111 non-extended targets. Cache the wait status. Set inferior_ptid
10113 (remote_open_1): Prompt to disconnect non-running targets. Make
10114 sure the target is marked running. Do not set inferior_ptid here.
10115 Update call to remote_start_remote. Do not call remote_check_symbols
10116 if the target is not running.
10117 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
10118 argument. Handle a non-running target.
10119 (remote_detach): Use it.
10120 (extended_remote_detach): New.
10121 (remote_disconnect): Fix typo. Use remoute_mourn_1.
10122 (extended_remote_attach_1, extended_remote_attach)
10123 (extended_async_remote_attach): New.
10124 (remote_vcont_resume): Remove unused variable.
10125 (remote_wait, remote_async_wait): Use any cached wait status.
10126 (putpkt_binary, getpkt): Clear any cached wait status.
10127 (extended_remoute_mourn_1): New.
10128 (extended_remote_mourn): Use it.
10129 (extended_async_remote_mourn, extended_remote_run): New.
10130 (extended_remote_create_inferior_1): New.
10131 (extended_remote_create_inferior): Use it.
10132 (extended_remote_async_create_inferior): Likewise.
10133 (remote_xfer_partial): Skip for non-executing targets.
10134 (init_extended_remote_ops): Set to_detach and to_attach.
10135 (init_extended_async_remote_ops): Likewise. Use
10136 extended_async_remote_mourn.
10137 (_initialize_remote): Register vAttach, vRun, and
10138 set remote exec-file.
10139 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
10141 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10143 * Makefile.in (symfile.o): Update.
10144 * NEWS: Mention exec tracing support.
10145 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
10147 * infcmd.c (kill_if_already_running, detach_command)
10148 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
10149 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
10150 (follow_exec): Do not check may_follow_exec. Do not mourn and push
10151 targets. Apply the sysroot path to the loaded executable. Use
10152 no_shared_libraries.
10153 * linux-nat.c (linux_child_follow_fork): Print fork following
10154 messages if verbose.
10155 (kill_wait_callback): Kill again before waiting a second time.
10156 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
10157 no_shared_libraries.
10159 2008-01-29 Joel Brobecker <brobecker@adacore.com>
10161 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
10163 2008-01-29 Joel Brobecker <brobecker@adacore.com>
10165 * nto-tdep.h: Remove #include "defs.h".
10166 * nto-tdep.c: Add #include "defs.h".
10167 * Makefile.in (nto_tdep_h): Update dependencies.
10168 (nto-tdep.o): Likewise.
10170 2008-01-29 Joel Brobecker <brobecker@adacore.com>
10172 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
10174 (proceed, start_remote): Update call to wait_for_inferior.
10175 * inferior.h (wait_for_inferior): Update declaration.
10176 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
10177 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
10178 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
10179 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
10181 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
10183 * varobj (adjust_value_for_child_access): Added checking for
10184 returned value from gdb_value_ind.
10185 (c_describe_child): Likewise.
10186 (cplus_describe_child): Fixed a typo.
10188 2008-01-29 Jim Blandy <jimb@red-bean.com>
10190 * MAINTAINERS: Update my info.
10192 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
10194 Use multiple locations for hardware watchpoints.
10195 This eliminates the need to traverse value chain, doing
10196 various checks, in three different places.
10198 * breakpoint.h (struct bp_location): New fields
10199 lengths and watchpoint_type.
10200 (struct breakpoint): Remove the val_chain field.
10201 * breakpoint.c (is_hardware_watchpoint): New.
10202 (free_valchain): Remove.
10203 (update_watchpoint): New.
10204 (insert_bp_location): For hardware watchpoint, just
10205 directly insert it.
10206 (insert_breakpoints): Call update_watchpoint_locations
10207 on all watchpoints. If we have failed to insert
10208 any location of a hardware watchpoint, remove all inserted
10210 (remove_breakpoint): For hardware watchpoints, directly
10212 (watchpoints_triggered): Iterate over locations.
10213 (bpstat_stop_status): Use only first location of
10214 a resource watchpoint.
10215 (delete_breakpoint): Don't call free_valchain.
10216 (print_one_breakpoint): Don't print all
10217 locations for watchpoints.
10218 (breakpoint_re_set_one): Use update_watchpoint for
10221 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
10223 Don't reset watchpoint block on solib load.
10225 * breakpoint.c (insert_bp_location): For watchpoints,
10226 recompute condition.
10227 (breakpoint_re_set_one): Instead of recomputing value
10228 and condition for watchpoints, just reset value and
10229 let insert_breakpoints/insert_bp_location recompute it.
10230 Don't do anything about disabled watchpoint.
10232 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
10234 * valarith.c (value_binop): Handle unsigned integer
10237 2008-01-28 Kevin Buettner <kevinb@redhat.com>
10239 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
10240 instruction pattern that appears frequently in position
10241 independent code. Fix bug in code which looks for "fmov" and
10242 backtracks if no "fmov" is found.
10244 2008-01-28 Doug Evans <dje@google.com>
10246 * dbxread.c (read_dbx_symtab): Fix indentation.
10247 Reformat comments to 80 columns.
10248 Move local var def closer to only use.
10250 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
10252 * fork-child.c (SHELL_FILE): Remove #ifndef.
10253 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
10255 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
10257 * i386-tdep.c (i386_skip_noop): New function.
10258 (i386_analyze_prologue): Call i386_skip_noop function.
10260 2008-01-24 Michael Snyder <msnyder@specifix.com>
10262 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
10263 * win32-nat.c (win32_xfer_partial): Ditto.
10264 * target.c (default_xfer_partial): Minor whitespace adjustment.
10266 2008-01-24 Pedro Alves <pedro@codesourcery.com>
10268 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
10269 strip bit 1 even if pc doesn't point to thumb code.
10271 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
10273 * remote.c (remote_wait): Handle SIGINT between packets.
10274 (remote_async_wait): Likewise.
10276 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
10277 Chris Demetriou <cgd@google.com>
10279 * thread.c (add_thread_silent): Renamed
10281 (print_thread_events): New variable definition.
10282 (show_print_thread_events): New function.
10283 (_initialize_thread): Add "set print thread-events" and
10284 "show print thread-events" commands.
10285 (add_thread): Announce new thread.
10286 * gdbthread.h (add_thread_silent): Declare.
10287 (print_thread_events): New variable declaration.
10288 * inf-ttrace.c (inf_ttrace_wait): Don't
10289 inform about new thread, as add_thread is always
10290 called too, and will take care of that.
10291 * infrun.c (handle_inferior_event): Likewise.
10292 * procfs.c (procfs_wait): Likewise.
10293 * remote.c (remote_currthread): Likewise.
10294 * sol-thread.c (sol_thread_wait): Likewise.
10295 * win32-nat.c (get_win32_debug_event): Likewise.
10296 * linux-thread-db.c (attach_thread): Likewise.
10297 Remove the verbose parameter.
10298 (check_event): Make detach_thread be verbose
10299 only if print_thread_events is set.
10300 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
10301 about new thread. This is called only from
10302 linux-thread-db.c:attach_thread, which will take care.
10303 Remove the verbose parameter.
10304 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
10306 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
10308 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
10310 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
10312 * breakpoint.c (break_command_really): New parameter
10314 (break_command_1): Pass 0 as
10315 ignore_count to break_command_really.
10316 (gdb_breakpoint): Pass ignore_count to
10317 break_command_really.
10319 2008-01-21 Kevin Buettner <kevinb@redhat.com>
10321 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
10322 sigcontext struct via pointer.
10323 (struct sigframe comment): Update to show new field `psc'.
10325 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
10327 * infrun.c (handle_inferior_event): If
10328 we failed to remove breakpoints, error,
10329 don't try to increment PC by hand.
10331 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
10333 Add NetBSD/hppa target and host support.
10335 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
10336 (hppabsd_gregset): Move to ...
10337 (hppabsd_regset_from_core_section): Rename
10338 hppaobsd_regset_from_core_section and move to ...
10339 (hppabsd_find_global_pointer): Update comment.
10340 (hppabsd_init_abi): Make global. Do not register
10341 hppabsd_regset_from_core_section.
10342 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
10344 (_initialize_hppabsd_tdep): Move to ...
10345 * hppaobsd-tdep.c: ... here. New file.
10346 * hppnbsd-tdep.c: New file.
10347 * hppnbsd-nat.c: New file.
10348 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
10349 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
10350 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
10351 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
10352 * configure.host (hppa*-*-netbsd*): New entry.
10353 * configure.tgt (hppa*-*-netbsd*): New entry.
10354 (hppa*-*-openbsd*): Update.
10355 * NEWS (New native configuration): Mention NetBSD/hppa.
10356 (New targets): Mention NetBSD/hppa.
10358 2008-01-18 Markus Deuling <deuling@de.ibm.com>
10360 * gdbarch.sh (function_list): Add new property bits_big_endian to
10362 * gdbarch.{c,h}: Regenerate.
10364 * value.c (struct value): Replace BITS_BIG_ENDIAN by
10365 gdbarch_bits_big_endian (comment).
10366 (unpack_field_as_long, modify_field): Likewise.
10367 * value.h: Likewise (comment).
10368 * valops.c (value_slice): Likewise.
10369 * valarith.c (value_subscript, value_bit_index): Likewise.
10370 * gdbtypes.h (field): Likewise (comment).
10371 * eval.c (evaluate_subexp_standard): Likewise.
10372 * dwarf2read.c (dwarf2_add_field): Likewise.
10373 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
10374 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
10376 * defs.h (BITS_BIG_ENDIAN): Remove.
10378 2008-01-18 Markus Deuling <deuling@de.ibm.com>
10380 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
10382 * m2-exp.y (yylex): Likewise.
10383 * objc-exp.y (yylex): Likewise.
10385 * defs.h (DEPRECATED_STREQN): Remove.
10387 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
10389 * MAINTAINERS: Update my email address.
10391 2008-01-17 Jim Blandy <jimb@codesourcery.com>
10393 * README: Mention gdbserver/README.
10395 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10397 * valarith.c (value_binop): Handle BINOP_INTDIV
10398 for unsigned and signed integers.
10400 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
10402 * s390-tdep.c (s390_gdbarch_init): Set default long double
10403 type to 128-bit IEEE quad.
10405 2008-01-17 Joel Brobecker <brobecker@adacore.com>
10407 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
10409 2008-01-16 Mark Kettenis <kettenis@gnu.org>
10411 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
10413 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
10414 * value.c: All callers changed.
10416 2008-01-16 Markus Deuling <deuling@de.ibm.com>
10418 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
10419 DEPRECATED_STREQ by its expression.
10420 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
10421 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
10422 (scan_xcoff_symtab): Likewise.
10423 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
10424 * f-lang.c (find_common_for_function): Likewise.
10425 * objc-exp.y (parse_number): Likewise.
10427 * defs.h (DEPRECATED_STREQ): Remove.
10429 2008-01-16 Markus Deuling <deuling@de.ibm.com>
10431 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
10432 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
10433 get_frame_arch to get at the current_architecture. Update AM33_MODE
10435 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
10436 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
10438 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
10440 2008-01-16 Markus Deuling <deuling@de.ibm.com>
10442 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
10444 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
10446 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
10447 current_gdbarch by gdbarch. Update caller.
10449 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
10450 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
10451 the current architecture. Update calls of
10452 amd64_native_gregset_supplies_p.
10453 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
10454 (amd64bsd_store_inferior_registers): Likewise.
10456 2008-01-16 Markus Deuling <deuling@de.ibm.com>
10458 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
10459 Replace current_gdbarch by gdbarch. Update caller.
10461 2008-01-16 Markus Deuling <deuling@de.ibm.com>
10463 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
10464 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
10465 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
10466 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
10467 (stabsect_build_psymtabs): Fix indentation.
10469 2008-01-15 Michael Snyder <msnyder@specifix.com>
10471 * corelow.c (core_xfer_partial): Comment, cut/paste error.
10473 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10475 * win32-nat.c (win32_create_inferior): Restore code calling
10476 CloseHandle on ProcessInformation structure.
10478 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
10480 * configure.ac: Check for void * as 3 argument of ptrace.
10481 * configure: regenerate.
10483 2008-01-11 Markus Deuling <deuling@de.ibm.com>
10485 * alpha-tdep.c (alpha_heuristic_proc_start)
10486 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
10487 current_gdbarch by gdbarch.
10489 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
10490 current architecture by frame_info. Update alpha_heuristic_proc_start
10493 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
10494 get_frame_arch to get at the current architecture by frame_info. Update
10495 alpha_sigtramp_register_address call.
10497 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
10498 current_gdbarch by gdbarch. Update caller.
10499 (convert_to_extended, convert_from_extended): Add endianess parameter
10500 for comparison. Update caller.
10501 (arm_extract_return_value, arm_store_return_value): Use
10502 get_regcache_arch to get at the current architecture.
10504 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
10505 current_gdbarch by gdbarch. Update caller.
10506 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
10507 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
10509 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
10510 gdbarch as parameter. Update caller.
10511 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
10512 current_gdbarch by gdbarch. Update caller.
10514 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
10515 update caller. Replace current_gdbarch by gdbarch.
10517 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
10518 the current architecture. Replace current_gdbarch by gdbarch.
10519 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
10520 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
10521 expression. Add gdbarch as parameter and replace current_gdbarch with
10523 (M6811_TDEP): Remove.
10524 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
10526 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
10527 current_gdbarch by gdbarch. Update caller.
10529 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
10531 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
10534 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
10535 caller. Relace current_gdbarch by gdbarch.
10536 (altivec_register_p, spe_register_p): Likewise.
10537 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
10539 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
10540 altivec_register_p and spe_register_p.
10542 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
10543 caller. Replace current_gdbarch by gdbarch.
10544 (score_analyze_prologue): use get_frame_arch to get at the current
10547 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
10548 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
10549 current_gdbarch by gdbarch. Update caller.
10550 (sparc_frame_cache): Use get_frame_arch to get at the current
10552 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
10553 sparc_analyze_prologue.
10555 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
10558 2008-01-11 Markus Deuling <deuling@de.ibm.com>
10560 * exec.c: #include "arch-utils.h"
10561 (print_section_info): Use gdbarch_from_bfd to get at the
10562 current architecture. Replace current_gdbarch. Fix indention. Replace
10563 deprecated_print_address_numeric by paddress.
10564 * Makefile.in (exec.o) Add dependency to arch-utils.h.
10566 * valprint.c (val_print_string): Replace
10567 deprecated_print_address_numeric.
10568 * tracepoint.c (trace_mention, scope_info): Likewise.
10569 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
10570 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
10571 (maintenance_check_symtabs): Likewise.
10572 * symfile.c (list_overlays_command): Likewise.
10573 * stack.c (frame_info, print_block_frame_labels): Likewise.
10574 * printcmd.c (print_address, print_address_demangle)
10575 (address_info): Likewise.
10576 * corefile.c (memory_error): Likewise.
10577 * infcmd.c (jump_command): Likewise.
10578 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
10579 (mention, delete_breakpoint): Likewise.
10580 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
10581 * dwarf2read.c (dump_die): Likewise.
10582 * ada-valprint.c (ada_val_print_1): Likewise.
10583 * f-valprint.c (f_val_print): Likewise.
10584 * linux-fork.c (info_forks_command): Likewise.
10585 * m32r-com.c (m32r_load_section, m32r_load)
10586 (m32r_upload_command): Likewise.
10588 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
10590 2008-01-11 Markus Deuling <deuling@de.ibm.com>
10592 * gdbarch.sh (skip_prologue): Add gdbarch
10594 * gdbarch.{c,h}: Regenerate.
10596 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
10597 * amd64-tdep.c (amd64_skip_prologue): Likewise.
10598 * avr-tdep.c (avr_skip_prologue): Likewise.
10599 * cris-tdep.c (cris_skip_prologue): Likewise.
10600 * frv-tdep.c (frv_skip_prologue): Likewise.
10601 * h8300-tdep.c (h8300_skip_prologue): Likewise.
10602 * hppa-tdep.c (hppa_skip_prologue): Likewise.
10603 * i386-tdep.c (i386_skip_prologue): Likewise.
10604 * ia64-tdep.c (ia64_skip_prologue): Likewise.
10605 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
10606 * m32r-tdep.c (m32r_skip_prologue): Likewise.
10607 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
10608 * m68k-tdep.c (m68k_skip_prologue): Likewise.
10609 * m88k-tdep.c (m88k_skip_prologue): Likewise.
10610 * mep-tdep.c (mep_skip_prologue): Likewise.
10611 * mips-tdep.c (mips_skip_prologue): Likewise.
10612 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
10613 * mt-tdep.c (mt_skip_prologue): Likewise.
10614 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
10615 * score-tdep.c (score_skip_prologue): Likewise.
10616 * sh64-tdep.c (sh64_skip_prologue): Likewise.
10617 * sh-tdep.c (sh_skip_prologue): Likewise.
10618 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
10619 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
10620 * spu-tdep.c (spu_skip_prologue): Likewise.
10621 * v850-tdep.c (v850_skip_prologue): Likewise.
10622 * vax-tdep.c (vax_skip_prologue): Likewise.
10623 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
10624 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
10626 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
10627 current_gdbarch by gdbarch.
10628 * m32c-tdep.c (m32c_skip_prologue): Likewise.
10629 * s390-tdep.c (s390_skip_prologue): Likewise.
10631 2008-01-10 Doug Evans <dje@google.com>
10633 * defs.h (struct continuation_arg): Fix typo in comment.
10634 * target.c (target_translate_tls_address): Fix comment spelling error.
10636 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
10638 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
10639 (DOUBLEST_SCAN_FORMAT): Likewise.
10640 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
10641 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
10642 * c-exp.y (parse_number): Likewise.
10643 * jv-exp.y (parse_number): Likewise.
10644 * objc-exp.y (parse_number): Likewise.
10645 * p-exp.y (parse_number): Likewise.
10647 2008-01-09 Joel Brobecker <brobecker@adacore.com>
10649 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
10650 (check_typedef): Likewise.
10652 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
10654 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
10655 seen_double_big_d, treat the new H, D, and DD modifiers as length
10658 2008-01-08 Joel Brobecker <brobecker@adacore.com>
10660 * dwarf2read.c (read_enumeration_type): Add comment.
10662 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
10664 * config.in: Regenerate.
10666 2008-01-08 Joel Brobecker <brobecker@adacore.com>
10668 * ada-lang.c (ada_convert_actual): Renames convert_actual.
10670 (ada_convert_actuals): Delete.
10671 * ada-lang.h (ada_convert_actual): Add declaration.
10672 (ada_convert_actuals): Remove declaration.
10673 * infcall.c: #include "ada-lang.h".
10674 (value_arg_coerce): Add new parameter sp. Update function
10675 documetnation. Add handling of Ada function call parameters.
10676 * Makefile.in (infcall.o): Update dependencies.
10678 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
10680 * ada-lang.c (ensure_lval): Fix value lval kind.
10681 (convert_actual): Add handling for arguments passed by reference.
10683 2008-01-08 Doug Evans <dje@google.com>
10685 * dbxread.c (read_dbx_symtab): Fix indentation.
10687 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10689 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
10690 (valarith.o): Depend on dfp.h.
10691 (valops.o): Likewise.
10692 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
10693 (set_decnumber_context): New function.
10694 (decimal_check_errors): Likewise.
10695 (decimal_from_number): Likewise.
10696 (decimal_to_number): Likewise.
10697 (decimal_from_string): Use set_decnumber_context and
10698 decimal_check_errors.
10699 (decimal_from_integral): New function.
10700 (decimal_from_floating): Likewise.
10701 (decimal_to_double): Likewise.
10702 (promote_decimal): Likewise.
10703 (decimal_binop): Likewise.
10704 (decimal_is_zero): Likewise.
10705 (decimal_compare): Likewise.
10706 (decimal_convert): Likewise.
10707 * dfp.h (decimal_from_integral): New prototype.
10708 (decimal_from_floating): Likewise.
10709 (decimal_to_double): Likewise.
10710 (decimal_binop): Likewise.
10711 (decimal_is_zero): Likewise.
10712 (decimal_compare): Likewise.
10713 (decimal_convert): Likewise.
10714 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
10715 call to value_from_decfloat.
10716 * valarith.c: Include dfp.h.
10717 (value_args_as_decimal): New function.
10718 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
10719 (value_logical_not): Likewise.
10720 (value_equal): Likewise.
10721 (value_less): Likewise.
10722 (value_pos): Likewise.
10723 (value_neg): Formatting fix.
10724 * valops.c: Include dfp.h.
10725 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
10726 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
10727 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
10728 (value_from_decfloat): Remove expect_type argument.
10729 * value.h (value_from_decfloat): Update prototype.
10731 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
10733 Ignore change in name of dynamic linker during
10734 execution on Solaris. This also unbreaks pending breakpoints.
10736 * solist.h (struct target_so_ops): New field same.
10737 * solib-svr4.c (svr4_same): New.
10738 (_initialize_svr4_solib): Register svr4_same.
10739 * solib.c (update_solib_list): Use ops->same, if available.
10741 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
10743 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
10744 when using MS-DOS paths.
10746 2008-01-05 Pedro Alves <pedro@codesourcery.com>
10748 * NEWS: Mention --pid and --core command line behaviour changes.
10750 2008-01-05 Pedro Alves <pedro@codesourcery.com>
10752 * main.c (captured_main): Remove 'count' varible and the
10753 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
10754 --pid options were issued simultaneously. If an explicit pid
10755 option was passed, don't fallback to core file. Detect extra
10756 arguments better in the presence of explicit pid or core
10759 2008-01-05 Joel Brobecker <brobecker@adacore.com>
10761 * ada-lang.c (ada_which_variant_applies): Correctly compute
10762 the value of the discriminant when the variant record is packed.
10764 2008-01-04 Joel Brobecker <brobecker@adacore.com>
10766 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
10767 that are used to differentiate homonyms.
10769 2008-01-04 Jerome Guitton <guitton@adacore.com>
10771 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
10772 when the type is an anonymous pointer type.
10773 (ada_check_typedef): Avoid a seg fault when the type is null.
10774 * ada-typeprint.c (print_array_type): Add support for pointer
10777 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
10779 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
10781 2008-01-04 Joel Brobecker <brobecker@adacore.com>
10783 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
10784 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
10786 2008-01-04 Joel Brobecker <brobecker@adacore.com>
10788 * ada-exp.y (chop_separator): New function.
10789 (write_selectors): Rewrite to re-use chop_separator.
10790 (ada_nget_field_index, get_symbol_field_type): New functions.
10791 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
10794 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
10796 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
10797 of SYMBOL_VALUE when working with function symbols.
10799 2008-01-03 Joel Brobecker <brobecker@adacore.com>
10801 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
10802 expressions. These expressions do not need to be rewriten.
10804 2008-01-03 Joel Brobecker <brobecker@adacore.com>
10806 * dwarf2read.c (read_enumeration_type): Flag type as stub if
10807 the given die is a declaration.
10809 2008-01-03 Joel Brobecker <brobecker@adacore.com>
10811 * ada-lang.c (ada_array_bound_from_type): Make non-static.
10812 Handle properly the case when the index type is an enumerated type.
10813 Do not return the subtype of the bounds type, just return the
10814 bounds type directly - this is not needed and is more consistent
10815 with what we do for arrays when no XA parallel type exists.
10817 2008-01-03 Joel Brobecker <brobecker@adacore.com>
10819 * ada-lang.c (static_unwrap_type): Add forward declaration.
10820 (template_to_static_fixed_type): Fields of dynamic types sometimes
10821 also need to be unwrapped. Take this into account.
10822 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
10823 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
10824 * ada-typeprint.c (ada_print_type): Get the typename from
10825 the original type, not the base type.
10827 2008-01-03 Jerome Guitton <guitton@adacore.com>
10829 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
10830 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
10831 Update calls to ada_to_fixed_type.
10832 (ada_template_to_fixed_record_type_1): Ditto, but without looking
10834 (ada_to_fixed_type): Add check_tag parameter; do not look for
10835 tag if null. When looking for a tag, use a fixed record type.
10836 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
10837 * ada-valprint.c (printable_val_type, ada_value_print): Update
10838 calls to ada_to_fixed_type.
10840 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
10842 * doublest.c (convert_floatformat_to_doublest): Call
10843 floatformat_to_doublest instead of floatformat_to_double and use
10844 DOUBLEST variables.
10845 (convert_doublest_to_floatformat): Call floatformat_from_doublest
10846 instead of floatformat_from_double and use DOUBLEST variables.
10848 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
10850 * MAINTAINERS (Write After Approval): Add self.
10852 2008-01-03 Joel Brobecker <brobecker@adacore.com>
10854 * symfile.c (set_initial_language): Make non-static.
10855 * symfile.h (set_initial_language): Add declaration.
10856 * language.c: #include "symfile.h".
10857 (set_language): Call set_initial_language if the frame language
10858 could not be determined.
10860 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
10862 * eval.c (evaluate_subexp_for_address): Provide frame address to
10863 locate_var_value only if it will be needed.
10865 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10867 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
10869 2008-01-02 Joel Brobecker <brobecker@adacore.com>
10871 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
10872 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
10873 This is needed to make sure that any other treatment applied
10874 to the resulting value does not fail for spurious reason,
10875 such as trying to take the address of this value.
10877 2008-01-02 Joel Brobecker <brobecker@adacore.com>
10879 * ada-lang.c (ada_value_equal): Dereference reference types when
10882 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
10884 Updated copyright notices for most files.
10886 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
10888 * win32-nat.c (psapi_module_handle): Remove static.
10889 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
10890 return first module found if base_address is zero. Don't initialize
10891 psapi function pointers here. Convert to cygwin paths when
10893 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
10894 executable name. Use get_module_name when that fails or when
10896 (_initialize_psapi): New function. Initialize psapi stuff before it is
10897 needed or issue a warning if it is not found. Move psapi_module_handle
10900 2008-01-01 Joel Brobecker <brobecker@adacore.com>
10902 * ada-lang.c (ada_remove_trailing_digits): New function.
10903 (ada_remove_po_subprogram_suffix): New function.
10904 (ada_decode): Improve. Move the description of the algorithm
10905 directly inside the code, instead of in the function global
10908 2008-01-01 Joel Brobecker <brobecker@adacore.com>
10910 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
10911 and always print the dereferenced value.
10913 2008-01-01 Joel Brobecker <brobecker@adacore.com>
10915 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
10916 of the case where the first argument is a reference.
10917 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
10919 2008-01-01 Joel Brobecker <brobecker@adacore.com>
10921 Implement support for Ada interface types.
10923 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
10924 (ada_is_ignored_field): Ignore fields that are a dispatch table
10927 2008-01-01 Joel Brobecker <brobecker@adacore.com>
10929 * top.c (print_gdb_version): Update copyright year.
10931 2008-01-01 Joel Brobecker <brobecker@adacore.com>
10933 * ChangeLog-2007: New ChangeLog rotation.
10934 * ChangeLog: Reset for 2008.
10935 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
10938 For older changes see ChangeLog-2007.
10944 version-control: never