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