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