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