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