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