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