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