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