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