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