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