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