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