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