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