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