*** empty log message ***
[binutils-gdb.git] / gdb / ChangeLog
1 2008-05-21 Nick Roberts <nickrob@snap.net.nz>
2
3 * annotate.c (annotate_new_thread): New function for new-thread
4 annotation.
5 * annotate.h: (annotate_new_thread): New extern.
6 * thread.c (add_thread_with_info): Use it.
7 * Makefile.in (thread.o): Add dependency on annotate.h.
8
9 2008-05-20 Joel Brobecker <brobecker@adacore.com>
10
11 * win32-nat.c (win32_wait): Block the control-c event while
12 waiting for a debug event.
13
14 2008-05-19 Pedro Alves <pedro@codesourcery.com>
15
16 * symtab.h (lookup_symbol_in_language): Update comment.
17 * symtab.c (lookup_symbol_aux_block): Update comment.
18 * ada-lang.c (ada_lookup_symbol_list): Update comment.
19
20 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
21
22 * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
23 (lookup_symbol): Likewise.
24 * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
25 (lookup_symbol): Likewise.
26 (search_symbols): Update.
27
28 * linespec.c (find_methods, collect_methods): Update.
29 (add_matching_methods, add_constructors): Update.
30 (decode_compound, decode_dollar, decode_variable): Update.
31 (lookup_prefix_sym): Update.
32
33 (symbol_found): Remove SYM_SYMTAB parameter.
34 Use SYMBOL_SYMTAB (sym) instead.
35
36 * gdbtypes.c (lookup_typename): Update.
37 (lookup_struct, lookup_union, lookup_enum): Update.
38 (lookup_template_type): Update.
39 (check_typedef): Update.
40 * language.c (lang_bool_type): Update.
41 * mdebugread.c (parse_procedure): Update.
42 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
43 * parse.c (write_dollar_variable): Update.
44 * printcmd.c (address_info): Update.
45 * source.c (select_source_symtab): Update.
46 * stack.c (print_frame_args, print_frame_arg_vars): Update.
47 * valops.c (find_function_in_inferior): Update.
48 (value_struct_elt_for_reference): Update.
49 * value.c (value_static_field, value_fn_field): Update.
50
51 * alpha-mdebug-tdep.c (find_proc_desc): Update.
52 * arm-tdep.c (arm_skip_prologue): Update.
53 * mt-tdep.c (mt_skip_prologue): Update.
54 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
55
56 * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
57 * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
58 (add_defn_to_vec): Likewise.
59 (ada_add_block_symbols): Likewise.
60 (lookup_cached_symbol, cache_symbol): Likewise.
61 (standard_lookup): Update.
62 (ada_lookup_symbol_list): Update.
63
64 * c-valprint.c (c_val_print): Update.
65 * cp-support.c (cp_lookup_rtti_type): Update.
66 * jv-lang.c (java_lookup_class, get_java_object_type): Update.
67 * objc-lang.c (lookup_struct_typedef, find_imps): Update.
68 * p-valprint.c (pascal_val_print): Update.
69 * scm-lang.c (scm_lookup_name): Update.
70
71 * c-exp.y: Update.
72 * f-exp.y: Update.
73 * jv-exp.y: Update.
74 * m2-exp.y: Update.
75 * objc-exp.y: Update.
76 * p-exp.y: Update.
77
78 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
79
80 * language.h (struct language_defn): Remove SYMTAB parameter from
81 la_lookup_symbol_nonlocal callback function pointer.
82
83 * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
84 (ada_lookup_encoded_symbol): Likewise.
85 * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
86 Always call fixup_symbol_section.
87 (ada_lookup_symbol): Remove SYMTAB parameter.
88 (ada_lookup_symbol_nonlocal): Likewise.
89 * ada-exp.y (write_object_renaming): Update.
90 (find_primitive_type): Likewise.
91
92 * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
93 (cp_lookup_symbol_namespace): Likewise.
94 * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
95 (lookup_symbol_file): Likewise.
96 (lookup_possible_namespace_symbol): Likewise.
97 (cp_lookup_symbol_nonlocal): Likewise.
98 (cp_lookup_symbol_namespace): Likewise.
99 (cp_lookup_nested_type): Update.
100
101 * scm-valprint.c (scm_inferior_print): Update.
102 * valops.c (value_maybe_namespace_elt): Update.
103
104 * solist.h (struct target_so_ops): Remove SYMTAB parameter from
105 lookup_lib_global_symbol callback function pointer.
106 (solib_global_lookup): Remove SYMTAB parameter.
107 * solib.c (solib_global_lookup): Remove SYMTAB parameter.
108 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
109
110 * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
111 (lookup_symbol_static): Likewise.
112 (lookup_symbol_global): Likewise.
113 (lookup_symbol_aux_block): Likewise.
114 (lookup_global_symbol_from_objfile): Likewise.
115 * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
116 (lookup_symbol_aux_local): Likewise.
117 (lookup_symbol_aux_block): Likewise.
118 (lookup_symbol_aux_symtabs): Likewise.
119 (lookup_symbol_aux_psymtabs): Likewise.
120 (lookup_global_symbol_from_objfile): Likewise.
121 (basic_lookup_symbol_nonlocal): Likewise.
122 (lookup_symbol_static): Likewise.
123 (lookup_symbol_global): Likewise.
124
125 (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
126
127 2008-05-17 Pedro Alves <pedro@codesourcery.com>
128
129 * remote.c (init_extended_remote_ops): Fix typo.
130
131 2008-05-16 Pedro Alves <pedro@codesourcery.com>
132
133 * NEWS: Mention new DICOS x86 target configuration.
134
135 2008-05-16 Pedro Alves <pedro@codesourcery.com>
136 Ulrich Weigand <uweigand@de.ibm.com>
137
138 * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
139 * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
140
141 * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
142 use it instead of ginfo->value.address. Look up minimal symbol by
143 address and name. Assume OBJFILE is non-NULL.
144 (fixup_symbol_section): Ensure we always have an objfile to look
145 into. Extract and pass to fixup_section the symbol's address that
146 will match the minimal symbol's address.
147 (fixup_psymbol_section): Likewise.
148
149 (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
150 overlays and the addrmap returned the wrong section.
151
152 * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
153 calling fixup_symbol_section.
154
155 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
156
157 * minsyms.c: Include "target.h".
158 (find_solib_trampoline_target): Handle minimal symbols pointing
159 to function descriptors as well.
160 * Makefile.in (minsyms.o): Update dependencies.
161
162 * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
163 (ppc64_standard_linkage1): ... this. Fix optional instructions.
164 (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
165 (PPC64_STANDARD_LINKAGE1_LEN): ... this.
166 (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
167 (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
168 (ppc64_standard_linkage_target): Rename to ...
169 (ppc64_standard_linkage1_target): ... this.
170 (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
171 (ppc64_skip_trampoline_code): Support three variants of standard
172 linkage stubs. Call find_solib_trampoline_target to handle
173 glink stubs.
174
175 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
176
177 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
178 ppc64_sysv_abi_adjust_breakpoint_address.
179 * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
180 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
181
182 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
183
184 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
185 (ppc_linux_init_abi): Install find_solib_trampoline_target instead
186 of ppc_linux_skip_trampoline_code.
187
188 2008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
189
190 * gdbarch.sh: Delete dwarf_reg_to_regnum.
191 * gdbarch.c, gdbarch.h: Regenerated.
192 * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
193 hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
194 s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
195
196 2008-05-15 Pedro Alves <pedro@codesourcery.com>
197
198 * linux-nat.c (trap_ptid): Delete.
199 (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
200 Adjust.
201 * linux-thread-db.c (thread_db_wait): Adjust.
202
203 2008-05-15 Joel Brobecker <brobecker@adacore.com>
204
205 * linespec.c (decode_line_1): Fix a couple of comments.
206
207 2008-05-15 Alan Modra <amodra@bigpond.net.au>
208
209 * dbxread.c: Formatting.
210 (INTERNALIZE_SYMBOL): Init n_other.
211 (set_namestring): Take pointer to nlist arg rather than struct
212 copy. Update all callers.
213
214 2008-05-15 Andreas Schwab <schwab@suse.de>
215
216 * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
217 (dwarf2read.o): Add $(addrmap_h).
218
219 2008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
220
221 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
222 (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
223 to handle ppc32 PLT entries.
224 (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
225 only on ppc64.
226
227 2008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
228
229 * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
230 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
231 lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
232 (lookup_minimal_symbol_by_pc_section): Use
233 lookup_minimal_symbol_by_pc_section_1.
234 (lookup_solib_trampoline_symbol_by_pc): Likewise.
235
236 2008-05-13 Joel Brobecker <brobecker@adacore.com>
237
238 * findcmd.c: Add #include "gdb_stdint.h".
239 * Makefile.in (findcmd.o): Update dependencies.
240
241 2008-05-11 David S. Miller <davem@davemloft.net>
242
243 * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
244 long double size override, Linux does use 128-bit now.
245
246 * sparc-linux-tdep.c (PSR_SYSCALL): Define.
247 (sparc_linux_write_pc): New function.
248 (sparc32_linux_init_abi): Register it.
249 * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
250 (sparc64_linux_write_pc): New function.
251 (sparc64_linux_init_abi): Register it.
252
253 * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
254 dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
255
256 2008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
257
258 * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
259 and info.tdep_info before calling gdbarch_init_osabi.
260
261 2008-05-09 Joel Brobecker <brobecker@adacore.com>
262
263 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
264 the type of the right hand side of the assignment to the type
265 of the left hand side if the left hand side is a convenience
266 variable.
267
268 2008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
269
270 * NEWS: Mention gdbserver bi-arch capability.
271
272 2008-05-09 Doug Evans <dje@google.com>
273
274 New "find" command.
275 * NEWS: Document find command and qSearch:memory packet.
276 * Makefile.in (SFILES): Add findcmd.c.
277 (COMMON_OBJS): Add findcmd.o.
278 (findcmd.o): New rule.
279 * findcmd.c: New file.
280 * target.h (target_ops): New member to_search_memory.
281 (simple_search_memory): Declare.
282 (target_search_memory): Declare.
283 * target.c (simple_search_memory): New fn.
284 (target_search_memory): New fn.
285 * remote.c (PACKET_qSearch_memory): New packet kind.
286 (remote_search_memory): New fn.
287 (init_remote_ops): Init to_search_memory.
288 (init_extended_remote_ops): Ditto.
289 (_initialize_remote): Add qSearch:memory packet config command.
290
291 2008-05-09 Eli Zaretskii <eliz@gnu.org>
292
293 * thread.c (_initialize_thread): Don't use commas and periods in
294 first line of doc string of "set/show print thread-events".
295
296 2008-05-08 Joel Brobecker <brobecker@adacore.com>
297
298 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
299 Update for unwinder changes.
300
301 2008-05-08 Joel Brobecker <brobecker@adacore.com>
302
303 * frame.c (get_frame_base_address, get_frame_locals_address)
304 (get_frame_args_address): Pass the correct frame when calling
305 frame_base_find_by_frame.
306
307 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
308
309 * remote.c (extended_remote_attach_1): Call target_find_description.
310
311 2008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
312
313 * remote.c (extended_remote_create_inferior_1): Clean up
314 before marking the target running.
315
316 2008-05-08 Joel Brobecker <brobecker@adacore.com>
317
318 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
319 changes.
320
321 2008-05-07 Joel Brobecker <brobecker@adacore.com>
322
323 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
324 sparc64-sol2-tdep.c: Update for unwinder changes.
325
326 2008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
327
328 * cp-support.c (mangled_name_to_comp): Initialize storage.
329 (unqualified_name_from_comp): Likewise.
330
331 2008-05-07 Jie Zhang <jie.zhang@analog.com>
332
333 * remote.c (remote_insert_breakpoint): Call get_remote_state
334 after gdbarch_breakpoint_from_pc is called.
335 (remote_insert_hw_breakpoint): Likewise.
336
337 2008-05-06 Joel Brobecker <brobecker@adacore.com>
338
339 * valprint.c (val_print): Add new language parameter and use it
340 instead of using the current_language. Update calls to val_print
341 throughout.
342 (common_val_print): Add new langauge parameter and pass it to
343 val_print.
344 * value.h (struct language_defn): Add opaque declaration.
345 (val_print, common_val_print): Update declarations.
346 * stack.c (print_frame_args): Update call to common_val_print
347 using the appropriate language.
348 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
349 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
350 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
351 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
352 #include "language.h" if necessary.
353 Update calls to val_print and common_val_print.
354 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
355 Update dependencies.
356
357 2008-05-06 Joel Brobecker <brobecker@adacore.com>
358
359 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
360 pointing inside a non-executable section as function descriptors.
361
362 2008-05-06 Pedro Alves <pedro@codesourcery.com>
363
364 * inf-loop.c (inferior_event_handler): Run all continuations and
365 print any language change before running the breakpoint commands.
366
367 2008-05-06 Joel Brobecker <brobecker@adacore.com>
368
369 * frame-unwind.c (frame_unwind_got_bytes): New function.
370 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
371 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
372 for unwinder changes.
373
374 2008-05-05 Doug Evans <dje@google.com>
375
376 * NEWS: Mention new /m modifier for disassemble command.
377 * cli/cli-cmds.c (print_disassembly): New function.
378 (disassemble_current_function): New function
379 (disassemble_command): Recognize /m modifier, print mixed
380 source+assembly.
381 (init_cli_cmds): Update disassemble help text.
382
383 2008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
384
385 * xtensa-tdep.c: Update for unwinder changes.
386
387 2008-05-05 Andreas Schwab <schwab@suse.de>
388
389 Update m68k port for unwinder changes.
390 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
391 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
392 (m68k_frame_unwind): Use default_frame_sniffer.
393 (m68k_frame_sniffer): Remove.
394 (m68k_frame_base_address): Expect this_frame.
395 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
396 this_frame.
397 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
398 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
399 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
400 parameter instead of pc value.
401 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
402 Expect this_frame.
403 (m68k_linux_sigtramp_frame_this_id)
404 (m68k_linux_sigtramp_frame_prev_register)
405 (m68k_linux_sigtramp_frame_sniffer): Update signature.
406 (m68k_linux_sigtramp_frame_unwind): Use
407 m68k_linux_sigtramp_frame_sniffer.
408 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
409
410 * m68klinux-nat.c (store_register): Fix typo.
411
412 2008-05-05 Pedro Alves <pedro@codesourcery.com>
413
414 * infcmd.c (step_1): Put thread id on the stack to avoid possible
415 NULL dereferencing.
416
417 2008-05-05 Luis Machado <luisgpm@br.ibm.com>
418
419 * symfile.c (reread_symbols): Update objfile's entry point.
420
421 2008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
422 Joel Brobecker <brobecker@adacore.com>
423
424 * ada-lang.c: Update throughout to use symbol_matches_domain
425 instead of matching the symbol domain explictly.
426 * dwarf2read.c (add_partial_symbol): Do not add new psym for
427 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
428 class as typedefs. See lookup_partial_symbol function.
429 (new_symbol): Similar to add_partial_symbol, do not create
430 symbol for the typedef. See lookup_block_symbol.
431 * symtab.c (symbol_matches_domain): New function, takes care
432 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
433 (lookup_partial_symbol): Use symbol_matches_domain to see if the
434 found psym domain matches the given domain.
435 (lookup_block_symbol): Likewise.
436
437 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
438
439 * top.c (command_line_handler_continuation): Remove.
440 (execute_command): Do not install the above.
441
442 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
443
444 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
445 and catch all exceptions from it.
446 * top.c (command_line_handler_continuation): Don't
447 call bpstat_do_action here.
448
449 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
450
451 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
452 (struct die_info): Remove type.
453 (read_type_die, read_typedef, read_base_type, read_subrange_type)
454 (read_structure_type, read_enumeration_type, read_array_type)
455 (read_tag_pointer_type, read_tag_ptr_to_member_type)
456 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
457 (read_tag_string_type, read_subroutine_type, read_set_type)
458 (read_unspecified_type): Delete prototypes. Remove check for
459 already-loaded type. Return the new type.
460 (set_die_type): Return the new type.
461 (reset_die_and_siblings_types): Delete.
462 (load_comp_unit, load_full_comp_unit): Set type_hash.
463 (process_queue): Remove call to reset_die_and_siblings_types.
464 (process_die): Do not read most types here. Use read_type_die
465 for others.
466 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
467 (quirk_gcc_member_function_pointer): Return the new type.
468 (process_structure_scope, process_enumeration_scope): Use
469 get_die_type and read the DIE's type.
470 (read_full_die): Do not initialize die->type.
471 (tag_type_to_type): Use read_type_die.
472 (read_type_die): Check for already defined types. Return the
473 type.
474 (determine_prefix): Use get_die_type.
475 (set_die_type): Return the type.
476 (get_die_type): Take a CU argument. Check for no type_hash.
477
478 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
479
480 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
481 locals.
482
483 2008-05-04 Pedro Alves <pedro@codesourcery.com>
484
485 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
486 and bp_longjmp_resume breakpoints.
487 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
488 meaningful.
489 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
490 breakpoints. Create bp_longjmp breakpoints as momentary
491 breakpoints.
492 (enable_longjmp_breakpoint): Delete.
493 (set_longjmp_breakpoint): New.
494 (disable_longjmp_breakpoint): Delete.
495 (delete_longjmp_breakpoint): New.
496 (set_longjmp_resume_breakpoint): Delete.
497 (set_momentary_breakpoint_at_pc): New.
498 (breakpoint_re_set_one): Don't delete bp_longjmp and
499 bp_longjmp_resume breakpoints.
500 (breakpoint_re_set): Don't create longjmp and longjmp-resume
501 breakpoints.
502
503 * infrun.c (step_resume_breakpoint): Add comment.
504 (struct execution_control_state): Delete handling_longjmp member.
505 (init_execution_control_state). Don't clear handling_longjmp.
506 (context_switch): Don't context switch handling_longjmp.
507 (handle_inferior_event): If handling a bp_longjmp breakpoint,
508 create a bp_longjmp_resume breakpoint, and set it as current
509 step_resume_breakpoint, then step over the longjmp breakpoint. If
510 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
511 breakpoint, delete the longjmp-resume breakpoint, and stop
512 stepping.
513 (currently_stepping): Remove handling_longjmp from expression.
514 (insert_step_resume_breakpoint_at_sal): Update comment.
515 (insert_longjmp_resume_breakpoint): New.
516
517 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
518 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
519 declarations.
520 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
521 (set_longjmp_resume_breakpoint): Delete declaration.
522
523 * gdbthread.h (save_infrun_state): Remove handling_longjmp
524 parameter.
525 (load_infrun_state): Delete *handling_longjmp parameter.
526 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
527 Update body.
528 (load_infrun_state): Delete *handling_longjmp parameter. Update
529 body.
530
531 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
532 (delete_longjmp_breakpoint_cleanup): New.
533 (step_1): Call set_longjmp_breakpoint instead of
534 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
535 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
536 (step_1_continuation): Pass thread id in the continuation args to
537 step_once.
538 (step_once): Add thread parameter. Pass thread id the the
539 continuation.
540
541 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
542
543 Set CU BASE_ADDRESS already from partial DIEs.
544 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
545 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
546 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
547 from these variables if it was still unset.
548
549 * Makefile.in: Update dependencies.
550 * dwarf2read.c: Include "addrmap.h"
551 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
552 (dwarf2_ranges_read): New prototype.
553 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
554 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
555 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
556 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
557 comment for it. Add the found ranges to RANGES_PST. New variable
558 BASEADDR, initialize it the common way.
559 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
560 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
561 HAS_RANGES_OFFSET for the later processing.
562 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
563 * symtab.c: Include "addrmap.h"
564 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
565 Move the psymtab locator into ...
566 (find_pc_sect_psymtab_closer): ... a new function.
567
568 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
569
570 * arch-utils.c (gdbarch_update_p): Use default values for
571 info.abfd and info.target_desc if they are NULL.
572 (gdbarch_from_bfd): Remove assertion.
573 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
574 using the current target description.
575 (gdbarch_info_fill): Do not use default values for info->abfd
576 and info->target_desc.
577
578 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
579
580 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
581
582 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
583
584 * inferior.h (read_pc_pid, write_pc_pid): Remove.
585 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
586
587 * regcache.c (read_pc_pid): Remove, replace by ...
588 (regcache_read_pc): ... this function.
589 (write_pc_pid): Remove, replace by ...
590 (regcache_write_pc): ... this function.
591 (read_pc, write_pc): Update.
592
593 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
594 write_pc_pid by regcache_read_pc and regcache_write_pc.
595 (displaced_step_fixup): Likewise.
596 (resume): Likewise. Use regcache arch instead of current_gdbarch.
597 (prepare_to_proceed): Likewise.
598 (proceed): Likewise.
599 (adjust_pc_after_break): Likewise.
600 (handle_inferior_event): Likewise.
601
602 * linux-nat.c (cancel_breakpoint): Likewise.
603 * linux-thread-db.c (check_event): Likewise.
604 * aix-thread.c (aix_thread_wait): Likewise.
605 * tracepoint.c (trace_dump_command): Likewise.
606
607 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
608
609 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
610 SYMBOL_LOCATION_BATON.
611
612 2008-05-04 Vladimir Prus <vladimir@codesourcery.com>
613
614 * target.h (struct target_ops): New field to_auxv_parse.
615 * auxv.c (default_auxv_parse): New, renamed from previous
616 target_auxv_parse.
617 (target_auxv_parse): Try to call target method. Fallback to
618 default_auxv_parse if not found.
619 * procfs.c (procfs_auxv_parse): New.
620 (init_procfs_ops): On Solaris, in 64-bit mode, install
621 procfs_auxv_parse.
622
623 2008-05-03 Adam Nemet <anemet@caviumnetworks.com>
624
625 * symfile.c (add_symbol_file_command): Use paddress rather than
626 hex_string to print the address.
627
628 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
629
630 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
631 return the null frame ID to terminate the backtrace.
632
633 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
634
635 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
636 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
637 (SIG_FRAME_PC_OFFSET): Likewise.
638 (SIG_FRAME_LR_OFFSET): Likewise.
639 (SIG_FRAME_FP_OFFSET): Likewise.
640 (rs6000_push_dummy_call): Likewise.
641 (rs6000_return_value): Likewise.
642 (rs6000_convert_from_func_ptr_addr): Likewise.
643 (branch_dest, rs6000_software_single_step): Likewise.
644 (deal_with_atomic_sequence): Rename to ...
645 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
646 Do not call branch_dest; inline required parts of that function.
647 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
648 with SYMBOL_LINKAGE_NAME.
649 (struct reg, regsize): Delete.
650 (read_memory_addr): Delete; inline into callers.
651 (rs6000_skip_prologue): Move after skip_prologue.
652 (skip_prologue): Remove prototype.
653 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
654 initialization as if this variable were true. Do not install
655 ppc64_sysv_abi_adjust_breakpoint_address.
656
657 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
658 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
659 and "breakpoint.h".
660 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
661 (SIG_FRAME_PC_OFFSET): Likewise.
662 (SIG_FRAME_LR_OFFSET): Likewise.
663 (SIG_FRAME_FP_OFFSET): Likewise.
664 (rs6000_push_dummy_call): Likewise.
665 (rs6000_return_value): Likewise.
666 (rs6000_convert_from_func_ptr_addr): Likewise.
667 (branch_dest, rs6000_software_single_step): Likewise. Replace
668 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
669 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
670 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
671 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
672 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
673
674 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
675 (AIX_TEXT_SEGMENT_BASE): New macro.
676 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
677 by AIX_TEXT_SEGMENT_BASE.
678
679 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
680 (struct gdbarch_tdep): Remove text_segment_base member.
681 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
682 ppc64_sysv_abi_adjust_breakpoint_address.
683
684 * Makefile.in (rs6000-tdep.o): Update dependencies.
685 (rs6000-aix-tdep.o): Likewise.
686
687 2008-05-03 Luis Machado <luisgpm@br.ibm.com>
688 Thiago Jung Bauermann <bauerman@br.ibm.com>
689
690 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
691 * doublest.c (convert_typed_floating): Fix typo in comment.
692 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
693 * frame-unwind.h (frame_sniffer_ftype): Likewise.
694 * frame.c (frame_unwind_address_in_block): Likewise.
695 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
696 * symtab.h (struct symbol): Likewise.
697 * tramp-frame.h (struct trad_frame_cache): Likewise.
698 * value.c (allocate_repeat_value): Likewise.
699
700 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
701
702 * infrun.c (handle_inferior_event): Do not insert breakpoints at
703 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
704
705 2008-05-03 Pedro Alves <pedro@codesourcery.com>
706
707 * parse.c (parse_exp_in_context): Don't override
708 expression_context_pc if get_selected_block returned a valid
709 block.
710
711 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
712
713 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
714 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
715 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
716 Delete.
717 * c-typeprint.c (c_type_print_base): Delete handling of template
718 instantiations.
719 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
720 (METHOD_PTR_TO_VOFFSET): Delete.
721 * defs.h (QUIT_FIXME): Delete.
722 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
723 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
724 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
725 ninstantiations, and instantiations.
726 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
727 (TYPE_FN_FIELD_INLINED): Delete.
728 * srec.h (SREC_BINARY): Delete.
729 * symtab.c (symbol_init_demangled_name): Delete.
730 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
731 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
732 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
733 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
734 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
735 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
736 * target.h (enum thread_control_capabilities): Delete tc_switch.
737 (target_can_switch_threads): Delete.
738
739 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
740
741 * Makefile.in (objfiles.o): Update.
742 * exec.c (exec_set_section_address): Support p->addr != 0.
743 * objfiles.c (objfile_relocate): Update exec_ops section
744 addresses.
745 * symfile.c (place_section): Move exec_set_section_address call...
746 (default_symfile_offsets): ...to here.
747
748 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
749
750 * Makefile.in (ppc_linux_tdep_h): New macro.
751 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
752 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
753 (powerpc_e500l_c): Likewise.
754 (ppc-linux-nat.o): Update dependencies.
755 (ppc-linux-tdep.o): Update dependencies.
756 (rs6000-tdep.o): Update dependencies.
757
758 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
759 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
760 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
761 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
762 (tdesc_powerpc_e500): Remove.
763
764 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
765 and "features/rs6000/powerpc-altivec64.c".
766 (ppc_supply_reg, ppc_collect_reg): Make global.
767 (variants): Use tdesc_powerpc_32 for "powerpc" and
768 tdesc_powerpc_altivec64 for "powerpc64".
769 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
770
771 * ppc-linux-tdep.h: New file.
772
773 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
774 Include "features/rs6000/powerpc-32l.c".
775 Include "features/rs6000/powerpc-altivec32l.c".
776 Include "features/rs6000/powerpc-64l.c".
777 Include "features/rs6000/powerpc-altivec64l.c".
778 Include "features/rs6000/powerpc-e500l.c".
779 (ppc_linux_supply_gregset): New function.
780 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
781 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
782 (ppc64_linux_gregset): Likewise.
783 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
784 (ppc_linux_trap_reg_p): New function.
785 (ppc_linux_write_pc): New function.
786 (ppc_linux_core_read_description): New function.
787 (ppc_linux_init_abi): Install ppc_linux_write_pc and
788 ppc_linux_core_read_description. Install orig_r3 and trap
789 registers if present in the target description.
790 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
791
792 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
793 (PT_ORIG_R3, PT_TRAP): Define if necessary.
794 (ppc_register_u_addr): Handle orig_r3 and trap registers.
795 (fetch_ppc_registers): Likewise.
796 (store_ppc_registers): Likewise.
797 (store_register): Likewise.
798 (ppc_linux_read_description): Check whether AltiVec is supported.
799 Check whether inferior is 32-bit or 64-bit. Return the appropriate
800 Linux target description.
801
802 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
803 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
804 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
805 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
806 rs6000/powerpc-e500. Update -expedite variables accordingly.
807
808 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
809 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
810 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
811 * features/rs6000/powerpc-e500.c: Regenerate.
812 * features/rs6000/powerpc-32.c: Regenerate.
813 * features/rs6000/powerpc-64.c: Regenerate.
814
815 * features/rs6000/power-linux.xml: New file.
816 * features/rs6000/power64-linux.xml: New file.
817 * features/rs6000/powerpc-32l.xml: New file.
818 * features/rs6000/powerpc-altivec32l.xml: New file.
819 * features/rs6000/powerpc-64l.xml: New file.
820 * features/rs6000/powerpc-altivec64l.xml: New file.
821 * features/rs6000/powerpc-e500l.xml: New file.
822 * features/rs6000/powerpc-32l.c: New (generated) file.
823 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
824 * features/rs6000/powerpc-64l.c: New (generated) file.
825 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
826 * features/rs6000/powerpc-e500l.xml: New (generated) file.
827
828 * regformats/reg-ppc.dat: Remove.
829 * regformats/reg-ppc64.dat: Remove.
830 * regformats/rs6000/powerpc-32.dat: Remove.
831 * regformats/rs6000/powerpc-64.dat: Remove.
832 * regformats/rs6000/powerpc-e500.dat: Remove.
833 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
834 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
835 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
836 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
837 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
838
839 2008-05-03 Pedro Alves <pedro@codesourcery.com>
840
841 * thread.c (delete_thread): Call observer_notify_thread_exit.
842 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
843 thread_exit observer.
844 (mi_thread_exit): New.
845
846 2008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
847
848 * breakpoint.c (create_exception_catchpoint): Remove prototype
849 for already deleted function.
850 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
851 * frame.h (show_stack_frame): Remove prototype.
852 * stack.c (show_stack_frame): Remove empty, unused function.
853 * source.c (symtab_to_fullname, print_source_lines): Small fix
854 in comment.
855 * value.c (show_values): Update comments to mention "show values"
856 command instead of "info history".
857
858 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
859
860 * linespec.c: Include "target.h".
861 (minsym_found): Handle minimal symbols pointing to function
862 descriptors. Use find_function_start_pc.
863 * minsyms.c (msymbol_objfile): New function.
864 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
865 to function descriptors.
866 * symtab.c (fixup_section): Only use minimal symbol at the same
867 address to determine section of a symbol.
868 (find_function_start_pc): New function.
869 (find_function_start_sal): Use it.
870 * symtab.h (msymbol_objfile): Add prototype.
871 (find_function_start_pc): Likewise.
872 * value.c: Include "objfiles.h".
873 (value_fn_field): Handle minimal symbols pointing to function
874 descriptors.
875 * Makefile.in (linespec.o): Update dependencies.
876 (value.o): Likewise.
877
878 2008-05-02 Joel Brobecker <brobecker@adacore.com>
879
880 * ada-lang.c (unwrap_value): Handle the case where the "F" field
881 inside a PAD type is a bitfield.
882
883 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
884
885 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
886 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
887 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
888 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
889 Allow typedefs when checking for function pointer arguments.
890 Right-align small structs passed on the stack.
891 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
892 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
893 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
894
895 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
896
897 * Makefile.in (arm-tdep.o): Update.
898 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
899 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
900 (arm_pc_is_thumb): Use mapping symbols.
901 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
902 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
903 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
904 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
905 * gdbarch.sh: Add record_special_symbol.
906 * gdbarch.c, gdbarch.h: Regenerated.
907 * objfiles.c (struct objfile_data): Add cleanup member.
908 (register_objfile_data_with_cleanup): New function, from
909 register_objfile_data.
910 (register_objfile_data): Use it.
911 (objfile_free_data): Call clear_objfile_data.
912 (clear_objfile_data): Call cleanup functions.
913 * objfiles.h (register_objfile_data_with_cleanup): Declare.
914
915 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
916
917 * objfiles.c (init_entry_point_info): Handle shared libraries.
918
919 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
920
921 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
922 lowest_pc.
923
924 2008-05-02 Jim Blandy <jimb@codesourcery.com>
925 Pedro Alves <pedro@codesourcery.com>
926
927 Implement displaced stepping.
928
929 * gdbarch.sh (max_insn_length): New 'variable'.
930 (displaced_step_copy, displaced_step_fixup)
931 (displaced_step_free_closure, displaced_step_location): New
932 functions.
933 (struct displaced_step_closure): Add forward declaration.
934 * gdbarch.c, gdbarch.h: Regenerated.
935
936 * arch-utils.c: #include "objfiles.h".
937 (simple_displaced_step_copy_insn)
938 (simple_displaced_step_free_closure)
939 (displaced_step_at_entry_point): New functions.
940 * arch-utils.h (simple_displaced_step_copy_insn)
941 (simple_displaced_step_free_closure)
942 (displaced_step_at_entry_point): New prototypes.
943
944 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
945 (I386_MAX_MATCHED_INSN_LEN): ... this.
946 (i386_absolute_jmp_p, i386_absolute_call_p)
947 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
948 (i386_displaced_step_fixup): New functions.
949 (struct i386_insn, i386_match_insn): Update.
950 (i386_gdbarch_init): Set gdbarch_max_insn_length.
951 * i386-tdep.h (I386_MAX_INSN_LEN): New.
952 (i386_displaced_step_fixup): New prototype.
953 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
954 Register gdbarch_displaced_step_copy,
955 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
956 and gdbarch_displaced_step_location functions.
957
958 * infrun.c (debug_displaced): New variable.
959 (show_debug_displaced): New function.
960 (struct displaced_step_request): New struct.
961 (displaced_step_request_queue, displaced_step_ptid)
962 (displaced_step_gdbarch, displaced_step_closure)
963 (displaced_step_original, displaced_step_copy)
964 (displaced_step_saved_copy, can_use_displaced_stepping): New
965 variables.
966 (show_can_use_displaced_stepping, use_displaced_stepping)
967 (displaced_step_clear, cleanup_displaced_step_closure)
968 (displaced_step_dump_bytes, displaced_step_prepare)
969 (displaced_step_clear_cleanup, write_memory_ptid)
970 (displaced_step_fixup): New functions.
971 (resume): Call displaced_step_prepare.
972 (proceed): Call read_pc once, and remember the value. If using
973 displaced stepping, don't remove breakpoints.
974 (handle_inferior_event): Call displaced_step_fixup. Add some
975 debugging output. When we try to step over a breakpoint, but get
976 a signal to deliver to the thread instead, ensure the step-resume
977 breakpoint is actually inserted. If a thread hop is needed, and
978 displaced stepping is enabled, don't remove breakpoints.
979 (init_wait_for_inferior): Call displaced_step_clear.
980 (_initialize_infrun): Add "set debug displaced" command. Add
981 "maint set can-use-displaced-stepping" command. Clear
982 displaced_step_ptid.
983 * inferior.h (debug_displaced): Declare variable.
984 (displaced_step_dump_bytes): Declare function.
985
986 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
987 dependencies.
988
989 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
990
991 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
992 (arm_force_mode_string, arm_show_fallback_mode)
993 (arm_show_force_mode): New.
994 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
995 arm_frame_is_thumb.
996 (_initialize_arm_tdep): Add "set arm fallback-mode"
997 and "set arm force-mode".
998 * NEWS: Document new commands.
999
1000 2008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
1001
1002 * main.h (batch_silent): Declare.
1003 * event-top.c: Include main.h.
1004 (gdb_setup_readline): Remove extern batch_silent declaration.
1005 * infrun.c (normal_stop): Don't print source location when running in
1006 --batch-silent mode.
1007 * Makefile.in (event-top.o): Add main.h dependency.
1008
1009 2008-05-02 Andreas Schwab <schwab@suse.de>
1010
1011 * target.h (struct target_ops): Add
1012 to_watchpoint_addr_within_range.
1013 (target_watchpoint_addr_within_range): New function.
1014 * target.c (update_current_target): Inherit
1015 to_watchpoint_addr_within_range, defaulting to
1016 default_watchpoint_addr_within_range.
1017 (default_watchpoint_addr_within_range): New function.
1018 (debug_to_watchpoint_addr_within_range): New function.
1019 (setup_target_debug): Set to_watchpoint_addr_within_range.
1020 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
1021 New function.
1022 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
1023 * breakpoint.c (watchpoints_triggered): Use
1024 target_watchpoint_addr_within_range.
1025
1026 2008-05-01 Pedro Alves <pedro@codesourcery.com>
1027
1028 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
1029 (i[34567]86-*-dicos*, x86_64-*-dicos*):
1030 Set gdb_osabi to GDB_OSABI_DICOS.
1031
1032 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
1033 * osabi.c (gdb_osabi_name): Add "DICOS".
1034
1035 * i386-dicos-tdep.c: New file.
1036
1037 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
1038 (ALLDEPFILES): Add i386-dicos-tdep.c.
1039 (i386-dicos-tdep.o): New rule.
1040
1041 2008-05-01 Pedro Alves <pedro@codesourcery.com>
1042
1043 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
1044 and register the fork's PTID as a thread.
1045
1046 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
1047
1048 PR gdb/1665
1049 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
1050 assign its value to the breakpoint created.
1051 (create_breakpoints): Add breakpoint_ops argument and pass it
1052 to create_breakpoint call.
1053 (break_command_really): Add breakpoint_ops argument and pass/assign
1054 appropriately.
1055 (break_command_1): Pass NULL as ops argument.
1056 (set_breakpoint): Pass NULL as ops argument.
1057 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
1058 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
1059 catch and throw catchpoints.
1060
1061 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
1062
1063 PR gdb/2343
1064 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
1065 translate signal numeric value from the target to GDB's enum
1066 target_signal.
1067 * gdbarch.c, gdbarch.h: Regenerated.
1068 * gdbarch.sh: Added two new functions target_signal_from_host and
1069 target_signal_to_host.
1070 * target.h (default_target_signal_from_host,
1071 default_target_signal_to_host): New functions - declarations.
1072 * signals/signals.c (struct gdbarch): New declaration.
1073 (default_target_signal_to_host, default_target_signal_from_host): New
1074 functions.
1075
1076 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
1077
1078 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
1079 * arm-tdep.c (arm_frame_is_thumb): New.
1080 (arm_pc_is_thumb): Clarify comment.
1081 (thumb_analyze_prologue): Remove PC special case.
1082 (thumb_scan_prologue): Take a block_addr argument. Use it for
1083 find_pc_partial_function. Remove unused variables.
1084 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
1085 for find_pc_partial_function. Remove PC special case.
1086 (arm_prologue_prev_register): Add special handling for PC and CPSR.
1087 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
1088 (arm_get_next_pc): Use arm_frame_is_thumb.
1089 (arm_write_pc): Use CPSR_T instead of 0x20.
1090 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
1091 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
1092 (CPSR_T): Define.
1093 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
1094 DWARF2_FRAME_REG_FN.
1095 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
1096 DWARF2_FRAME_REG_FN.
1097 (struct dwarf2_frame_state_reg): Add FN to loc union.
1098
1099 2008-05-01 Nick Roberts <nickrob@snap.net.nz>
1100
1101 * exec.c (print_section_info): Add missing '\n'.
1102
1103 2008-05-01 Vladimir Prus <vladimir@codesourcery.com>
1104
1105 * thread.c (add_thread): Move observer call to ...
1106 (add_thread_silent): ... here.
1107
1108 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
1109
1110 * rs6000-tdep.c: Update for unwinder changes.
1111 * ppcobsd-tdep.c: Likewise.
1112
1113 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
1114
1115 * s390-tdep.c: Update for unwinder changes.
1116
1117 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
1118
1119 * spu-tdep.c: Update for unwinder changes.
1120
1121 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
1122
1123 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
1124 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
1125 sparc64-linux-tdep.c: Update for unwinder changes.
1126
1127 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
1128
1129 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
1130 for unwinder changes.
1131 * mips-tdep.c: Likewise.
1132 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
1133 raw one.
1134
1135 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
1136
1137 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
1138 unwinder changes.
1139
1140 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
1141
1142 Update i386 and amd64 ports for unwinder changes.
1143
1144 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
1145 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
1146 (amd64_frame_unwind): Use default_frame_sniffer.
1147 (amd64_frame_sniffer): Delete.
1148 (amd64_sigtramp_frame_cache): Expect this_frame.
1149 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
1150 (amd64_sigtramp_frame_sniffer): Update signature.
1151 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
1152 (amd64_frame_base_address): Expect this_frame.
1153 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
1154 this_frame.
1155 (amd64_init_abi): Use set_gdbarch_dummy_id and
1156 frame_unwind_append_unwinder.
1157 * i386-tdep.c (i386_frame_cache): Expect this_frame.
1158 (i386_frame_this_id, i386_frame_prev_register): Update signature.
1159 (i386_frame_unwind): Use default_frame_sniffer.
1160 (i386_frame_sniffer): Delete.
1161 (i386_sigtramp_frame_cache): Expect this_frame.
1162 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
1163 (i386_sigtramp_frame_sniffer): Update signature.
1164 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
1165 (i386_frame_base_address): Update signature.
1166 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
1167 (i386_push_dummy_call): Update comment.
1168 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
1169 Expect this_frame.
1170 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
1171 and frame_unwind_append_unwinder.
1172 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
1173 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
1174 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
1175 i386nbsd-tdep.c: Update for unwinder changes.
1176
1177 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
1178
1179 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
1180 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
1181 this_frame.
1182 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
1183 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
1184 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
1185 signature.
1186 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
1187 this_frame.
1188 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
1189 Update signature.
1190 * tramp-frame.h (struct tramp_frame): Update signature of init.
1191 * Makefile.in (trad-frame.o): Update.
1192
1193 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
1194
1195 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
1196 (execute_stack_op): Put this_frame in the baton.
1197 (execute_cfa_program): Take this_frame.
1198 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
1199 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
1200 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
1201 (dwarf2_frame_this_id): Adjust to work on this_frame.
1202 (dwarf2_signal_frame_this_id): Delete.
1203 (dwarf2_frame_prev_register): Update signature. Use new frame
1204 unwind methods.
1205 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
1206 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
1207 dwarf2_frame_sniffer.
1208 (dwarf2_append_unwinders): New.
1209 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
1210 this_frame.
1211 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
1212 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
1213 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
1214 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
1215 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
1216 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
1217 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
1218 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
1219 (dwarf2_append_unwinders): Declare.
1220 (dwarf2_frame_base_sniffer): Update declaration.
1221 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
1222 this_frame.
1223
1224 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
1225
1226 Convert frame unwinders to use the current frame and
1227 "struct value".
1228
1229 * frame.c (frame_debug): Make global.
1230 (get_frame_id): Pass this frame to unwinder routines.
1231 (frame_pc_unwind): Remove unused unwind->prev_pc support.
1232 (do_frame_register_read): Do not discard the return value of
1233 frame_register_read.
1234 (frame_register_unwind): Remove debug messages. Use
1235 frame_unwind_register_value.
1236 (frame_unwind_register_value, get_frame_register_value): New
1237 functions.
1238 (create_new_frame, get_frame_base_address, get_frame_locals_address)
1239 (get_frame_args_address, get_frame_type): Pass this frame to
1240 unwinder routines.
1241 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
1242 functions.
1243 * frame.h: Update comments.
1244 (frame_debug, frame_unwind_register_value, get_frame_register_value)
1245 (frame_prepare_for_sniffer): Declare.
1246 * frame-unwind.h: Update comments and parameter names.
1247 (default_frame_sniffer): Declare.
1248 (frame_prev_register_ftype): Return a struct value *.
1249 (struct frame_unwind): Remove prev_pc member.
1250 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
1251 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
1252 (frame_unwind_got_register, frame_unwind_got_memory)
1253 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
1254 * frame-base.h: Update comments and parameter names.
1255 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
1256 if necessary. Add debugging output.
1257 * sentinel-frame.c (sentinel_frame_prev_register)
1258 (sentinel_frame_this_id): Update for new signature.
1259 (sentinel_frame_prev_pc): Delete.
1260 (sentinel_frame_unwinder): Remove prev_pc.
1261 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
1262 prev_pc.
1263 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
1264 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
1265 (frame_unwind_append_sniffer): Delete.
1266 (frame_unwind_append_unwinder): New function.
1267 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
1268 from unwinders. Use frame_prepare_for_sniffer.
1269 (default_frame_sniffer, frame_unwind_got_optimized)
1270 (frame_unwind_got_register, frame_unwind_got_memory)
1271 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
1272 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
1273 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
1274 signature.
1275 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
1276 * gdbarch.c, gdbarch.c: Regenerated.
1277 * frame-base.c (default_frame_base_address)
1278 (default_frame_locals_address, default_frame_args_address): Update
1279 for new signature.
1280 (frame_base_find_by_frame): Pass this frame to unwinder routines.
1281 * infcall.c (call_function_by_hand): Update comments.
1282 * Makefile.in (frame-unwind.o): Update dependencies.
1283
1284 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
1285
1286 * ada-lang.c (ada_value_primitive_packed_val): Only check
1287 value_lazy for memory lvals.
1288 * findvar.c (value_of_register_lazy): New function.
1289 (locate_var_value): Only check value_lazy for memory lvals.
1290 * valarith.c (value_subscripted_rvalue): Likewise.
1291 * valops.c (value_fetch_lazy): Handle both memory and register
1292 lvals.
1293 (search_struct_field, value_slice): Only check value_lazy for memory
1294 lvals.
1295 * value.c (struct value): Update comment for lazy.
1296 (value_primitive_field): Only check value_lazy for memory lvals.
1297 * value.h (value_lazy): Update comment.
1298 (value_of_register_lazy): Declare.
1299
1300 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
1301
1302 * corefile.c (reopen_exec_file): Close any open files.
1303
1304 2008-04-29 Joel Brobecker <brobecker@adacore.com>
1305
1306 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
1307 show_memory_breakpoints to 1 while reading the instruction bundle.
1308
1309 2008-04-29 Joel Brobecker <brobecker@adacore.com>
1310
1311 * gdbarch.sh: Document the return_value method. Explain that
1312 the FUNCTYPE parameter might be NULL.
1313 * gdbarch.h: Regenerated.
1314 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
1315 type when calling using_struct_return, as this is unnecessary
1316 on this target.
1317
1318 2008-04-28 Joel Brobecker <brobecker@adacore.com>
1319
1320 * terminal.h (create_tty_session): Fix return type.
1321
1322 2008-04-26 Vladimir Prus <vladimir@codesourcery.com>
1323
1324 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
1325
1326 2008-04-26 Joel Brobecker <brobecker@adacore.com>
1327
1328 * breakpoint.c (condition_command, commands_from_control_command)
1329 (break_command_really): Minor reformatting.
1330
1331 2008-04-25 Pedro Alves <pedro@codesourcery.com>
1332
1333 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
1334
1335 2008-04-25 Pedro Alves <pedro@codesourcery.com>
1336
1337 * amd64-tdep.c (amd64_get_longjmp_target): New.
1338 (amd64_init_abi): Register amd64_get_longjmp_target as
1339 gdbarch_get_longjmp_target callback.
1340 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
1341
1342 2008-04-25 Pedro Alves <pedro@codesourcery.com>
1343
1344 * breakpoint.h (enum bpstat_what_main_action): Delete
1345 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
1346
1347 * breakpoint.c (clrs): Delete.
1348 (bpstat_what): Update table.
1349
1350 * infrun.c (handle_inferior_event): Remove
1351 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
1352
1353 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
1354
1355 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
1356 Adjust all prototypes using mi_cmd_args_ftype to use
1357 mi_cmd_argv_ftype.
1358 (struct mi_cmd): Remove the args_func field.
1359 * mi/mi-cmds.c: Don't provide value for the args_func field.
1360 * mi/mi-main.c (mi_execute_async_cli_command)
1361 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
1362 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
1363 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
1364 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
1365 (mi_cmd_target_download): Adjust.
1366 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
1367 (mi_cmd_execute): Do not check for args_func.
1368 (mi_execute_async_cli_command): Adjust.
1369 * mi/mi-parse.c: Don't check for args_func.
1370
1371 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
1372
1373 * breakpoint.c (bpstat_check_location)
1374 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
1375 New, extracted from bpstat_stop_status.
1376 (bpstat_stop_status): Use the above.
1377
1378 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
1379
1380 * mi/mi-main.c (last_async_command): Rename to current_token.
1381 (previous_async_command): Remove.
1382 (mi_cmd_gdb_exit): Adjust.
1383 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
1384 (mi_cmd_target_select): Adjust.
1385 (mi_cmd_execute): Don't set previous_async_command. Free token
1386 here even in async mode.
1387 (mi_execute_async_cli_command): Adjust.
1388 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
1389 token.
1390 (mi_load_progress): Adjust.
1391
1392 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
1393
1394 * infcmd.c (step_1_continuation): Always disable longjmp
1395 breakpoint if we're not going to do another step.
1396
1397 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
1398
1399 exec_cleanup murder.
1400 * breakpoint.c (until_break_command_continuation): Add
1401 the 'error' parameter. Directly delete the breakoint as
1402 opposed to running cleanups.
1403 (until_break_command): Install continuation only
1404 after starting the target. Don't use exec cleanups,
1405 use ordinary cleanups. Discard cleanups is successfully
1406 started the target in async mode.
1407 (make_cleanup_delete_breakpoint): Remove.
1408 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
1409 declaration.
1410 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
1411 declarations.
1412 (struct continations): Add the 'error' parameter to the
1413 continuation_hook field.
1414 (add_continuation, do_all_continuations)
1415 (add_intermediate_continuation)
1416 (do_all_intermediate_continuations): Add the 'error' parameter.
1417 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
1418 * inf-loop.c (inferior_event_handler): Instead of calling
1419 discard_all_continuations, use do_all_continuations with 1 as
1420 'error' parameter. Pass 0 as 'error' parameter in existing uses
1421 of discard_all_continuations.
1422 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
1423 cleanups.
1424 (step_once): Install continuation only after resuming the target.
1425 (step_1_continuation): Disable longjmp breakpoint on error.
1426 (finish_command_continuation): Add the error parameter. Delete
1427 the finish breakpoint directly, do not use cleanups.
1428 (finish_command): Do not use exec_cleanups. Always setup
1429 continuation. For sync case, immediately run them.
1430 (attach_command_continuation): Add the error parameter.
1431 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
1432 remove step_resume_breakpoint -- adjust delete it directly.
1433 * interps.c (interp_set): Adjust call to do_all_continations.
1434 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
1435 do exec cleanups.
1436 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
1437 cleanups.
1438 (mi_cmd_execute): Do not use exec_cleanup.
1439 (mi_execute_async_cli_command): Simplify the string concatenation
1440 logic. Do no use exec cleanup.
1441 (mi_exec_async_cli_cmd_continuation): New parameter error.
1442 Free last_async_command.
1443 * top.c (command_line_handler_continuation): New parameter error.
1444 * utils.c (exec_cleanup_chain, make_exec_cleanup)
1445 (do_exec_cleanups): Remove.
1446 (add_continuation, do_all_continations)
1447 (add_intermediate_continuation)
1448 (do_all_intermediate_continuations): New parameter error.
1449
1450 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
1451
1452 * breakpoint.h (bp_location_p): New typedef.
1453 Register a vector of bp_location_p.
1454 * breakpoint.c (always_inserted_mode)
1455 (show_always_inserted_mode): New.
1456 (unlink_locations_from_global_list): Remove.
1457 (update_global_location_list)
1458 (update_global_location_list_nothrow): New.
1459 (update_watchpoint): Don't free locations.
1460 (should_insert_location): New.
1461 (insert_bp_location): Use should_insert_location.
1462 (insert_breakpoint_locations): Copied from
1463 insert_breakpoints.
1464 (insert_breakpoint): Use insert_breakpoint_locations.
1465 (bpstat_stop_status): Call update_global_location_list
1466 when disabling breakpoint.
1467 (allocate_bp_location): Don't add to bp_location_chain.
1468 (set_raw_breakpoint)
1469 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
1470 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
1471 (enable_overlay_breakpoints, disable_overlay_breakpoints)
1472 (set_longjmp_resume_breakpoint)
1473 (enable_watchpoints_after_interactive_call_stop)
1474 (disable_watchpoints_before_interactive_call_start)
1475 (create_internal_breakpoint)
1476 (create_fork_vfork_event_catchpoint)
1477 (create_exec_event_catchpoint, set_momentary_breakpoint)
1478 (create_breakpoints, break_command_1, watch_command_1)
1479 (create_exception_catchpoint)
1480 (handle_gnu_v3_exceptions)
1481 (disable_breakpoint, breakpoint_re_set_one)
1482 (create_thread_event_breakpoint, create_solib_event_breakpoint)
1483 (create_ada_exception_breakpoint): : Don't call check_duplicates.
1484 Call update_global_location_list.
1485 (delete_breakpoint): Don't remove locations and don't
1486 try to reinsert them. Call update_global_location_list.
1487 (update_breakpoint_locations): Likewise.
1488 (restore_always_inserted_mode): New.
1489 (update_breakpoints_after_exec): Temporary disable
1490 always inserted mode.
1491 * Makefile.in: Update dependencies.
1492
1493 * infrun.c (proceed): Remove breakpoints while stepping
1494 over breakpoint.
1495 (handle_inferior_event): Don't remove or insert
1496 breakpoints.
1497 * linux-fork.c (checkpoint_command): Remove breakpoints
1498 before fork and insert after.
1499 (linux_fork_context): Remove breakpoints before switch
1500 and insert after.
1501 * target.c (target_disconnect, target_detach): Remove
1502 breakpoints from target.
1503
1504
1505 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
1506
1507 * breakpoint.c (print_one_breakpoint_location): In MI
1508 mode, report the location string the breakpoint was
1509 originally created with.
1510
1511 2008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
1512
1513 * Makefile.in (xtensa-tdep.o): Update dependencies.
1514 * configure.tgt (xtensa*): Update dependencies.
1515 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
1516 Local variable areg renamed to arreg.
1517 (areg_number): New function.
1518 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1519 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
1520 replaced by arreg_number.
1521 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
1522 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
1523 (xtensa_scan_prologue): New function.
1524 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
1525 when ENTRY instraction hasn't been executed yet. Get the frame pointer
1526 value based on prologue analysis. Fix the bugs preventing WS and
1527 AR4-AR7/A11 registers from getting right values for intermediate frames,
1528 whose registers have been already spilled.
1529 (xtensa_frame_prev_register): Fix WS register value. Use are_number
1530 and arreg_number appropriately.
1531 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
1532 svr4_ilp32_fetch_link_map_offsets.
1533
1534 2008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
1535
1536 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
1537 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
1538
1539 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
1540
1541 * acinclude.m4: Add override.m4.
1542 * configure: Regenerate.
1543
1544 2008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1545
1546 * ada-lang.c (get_selections): Variable PROMPT made non-const and
1547 initialized with a trailing space now. Use PROMPT_ARG of
1548 COMMAND_LINE_INPUT instead of printing it ourselves.
1549
1550 2008-04-22 Joel Brobecker <brobecker@adacore.com>
1551
1552 * NEWS: Document support for 64-bit core file.
1553
1554 2008-04-22 Corinna Vinschen <vinschen@redhat.com>
1555
1556 * NEWS: Add information on calling convention and new SH CLI options.
1557
1558 * sh-tdep.c (sh_cc_gcc): New static string.
1559 (sh_cc_renesas): Ditto.
1560 (sh_cc_enum): New static string array.
1561 (sh_active_calling_convention): New static string pointer denoting
1562 active user chosen ABI.
1563 (sh_is_renesas_calling_convention): New function to return function
1564 specific ABI, or user choice if necessary.
1565 (sh_use_struct_convention): Rename first argument and turn around its
1566 meaning. Check for renesas ABI and return accordingly.
1567 (sh_use_struct_convention_nofpu): New function.
1568 (sh_next_flt_argreg): Get function type as third parameter. Check
1569 for renesas ABI and choose floating registers accordingly.
1570 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
1571 struct return slot accordingly.
1572 (sh_push_dummy_call_nofpu): Ditto.
1573 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
1574 Evaluate ABI and give to sh_use_struct_convention_nofpu.
1575 (sh_return_value_fpu): Evaluate ABI and give to
1576 sh_use_struct_convention.
1577 (show_sh_command): New function.
1578 (set_sh_command): Ditto.
1579 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
1580 CLI command.
1581
1582 * gdbarch.sh (return_value): Add func_type argument.
1583 * gdbarch.c: Regenerate.
1584 * gdbarch.h: Ditto.
1585 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
1586 val_type so as not to collide with value_type function. Call
1587 using_struct_return with additional function type argument.
1588 * infcall.c (call_function_by_hand): Call using_struct_return and
1589 gdbarch_return_value with additional function type argument.
1590 * infcmd.c (print_return_value): Take addition func_type argument.
1591 Call gdbarch_return_value with additional function type argument.
1592 (finish_command_continuation): Call print_return_value with additional
1593 function type argument.
1594 (finish_command): Ditto.
1595 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
1596 additional function type argument.
1597 * stack.c (return_command): Call using_struct_return and
1598 gdbarch_return_value with additional function type argument.
1599 * value.c (using_struct_return): Take additional function type argument.
1600 * value.h (using_struct_return): Accommodate declaration.
1601 * alpha-tdep.c (alpha_return_value): Add func_type argument.
1602 * amd64-tdep.c (amd64_return_value): Ditto.
1603 * arm-tdep.c (arm_return_value): Ditto.
1604 * avr-tdep.c (avr_return_value): Ditto.
1605 * cris-tdep.c (cris_return_value): Ditto.
1606 * frv-tdep.c (frv_return_value): Ditto.
1607 * h8300-tdep.c (h8300_return_value): Ditto.
1608 (h8300h_return_value): Ditto.
1609 * hppa-tdep.c (hppa32_return_value): Ditto.
1610 (hppa64_return_value): Ditto.
1611 * i386-tdep.c (i386_return_value): Ditto.
1612 * ia64-tdep.c (ia64_return_value): Ditto.
1613 * iq2000-tdep.c (iq2000_return_value): Ditto.
1614 * m32c-tdep.c (m32c_return_value): Ditto.
1615 * m32r-tdep.c (m32r_return_value): Ditto.
1616 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
1617 * m68k-tdep.c (m68k_return_value): Ditto.
1618 (m68k_svr4_return_value): Ditto.
1619 * m88k-tdep.c (m88k_return_value): Ditto.
1620 * mep-tdep.c (mep_return_value): Ditto.
1621 * mips-tdep.c (mips_eabi_return_value): Ditto.
1622 (mips_n32n64_return_value): Ditto.
1623 (mips_o32_return_value): Ditto.
1624 (mips_o64_return_value): Ditto.
1625 * mn10300-tdep.c (mn10300_return_value): Ditto.
1626 * mt-tdep.c (mt_return_value): Ditto.
1627 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
1628 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
1629 (ppc_sysv_abi_broken_return_value): Ditto.
1630 (ppc64_sysv_abi_return_value): Ditto.
1631 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
1632 (ppc_sysv_abi_broken_return_value): Ditto.
1633 (ppc64_sysv_abi_return_value): Ditto.
1634 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
1635 * rs6000-tdep.c (rs6000_return_value): Ditto.
1636 * s390-tdep.c (s390_return_value): Ditto.
1637 * score-tdep.c (score_return_value): Ditto.
1638 * sh-tdep.c (sh_return_value_nofpu): Ditto.
1639 (sh_return_value_fpu): Ditto.
1640 * sh64-tdep.c (sh64_return_value): Ditto.
1641 * sparc-tdep.c (sparc32_return_value): Ditto.
1642 * sparc64-tdep.c (sparc64_return_value): Ditto.
1643 * spu-tdep.c (spu_return_value): Ditto.
1644 * v850-tdep.c (v850_return_value): Ditto.
1645 * vax-tdep.c (vax_return_value): Ditto.
1646 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
1647 * xtensa-tdep.c (xtensa_return_value): Ditto.
1648
1649 * gdbtypes.h (struct type): Add calling_convention member.
1650 * dwarf2read.c (read_subroutine_type): Add calling convention read
1651 from DW_AT_calling_convention attribute to function type.
1652
1653 2008-04-22 Markus Deuling <deuling@de.ibm.com>
1654
1655 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
1656 multi_f77_subscript to support values from registers.
1657 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
1658 * value.h (value_subscripted_rvalue): Add prototype.
1659
1660 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
1661 Fix output.
1662 * f-valprint.c (f_val_print): Likewise.
1663
1664 2008-04-21 Craig Silverstein <csilvers@google.com>
1665
1666 * dwarf2read.c (zlib_decompress_section): Define abfd in the
1667 !HAVE_ZLIB_H case.
1668
1669 2008-04-21 Pedro Alves <pedro@codesourcery.com>
1670
1671 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
1672 section is not a code section.
1673
1674 2008-04-19 Craig Silverstein <csilvers@google.com>
1675
1676 * NEWS: Add information on compressed debug sections.
1677
1678 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
1679
1680 * mi/mi-cmd-var.c (varobj_update_one): Print new
1681 value for variable objects that changed type.
1682
1683 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
1684
1685 * varobj.c (varobj_invalidate): Don't touch floating
1686 varobjs.
1687
1688 2008-04-19 Mark Kettenis <kettenis@gnu.org>
1689
1690 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
1691 (multiple_symbols_cancel): Remove extra const.
1692 * symtab.h: Likewise.
1693
1694 2008-04-19 Nick Roberts <nickrob@snap.net.nz>
1695
1696 * interps.c (top_level_interpreter): Rename static variable...
1697 (top_level_interpreter_ptr): ...to this.
1698 (top_level_interpreter): New function.
1699
1700 * interps.h: New extern for top_level_interpreter.
1701
1702 * linespec.c: Include interps.h and mi/mi-cmds.h.
1703 (decode_line_2): When using MI, always set all breakpoints in menu.
1704
1705 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
1706
1707 2008-04-18 Craig Silverstein <csilvers@google.com>
1708
1709 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
1710 * config.in, configure: Regenerate.
1711 * dwarf2read.c: Include zlib.h if present.
1712 Modified *_SECTION macros.
1713 (section_is_p): New.
1714 (dwarf2_locate_sections): Use section_is_p instead of strcmp
1715 (dwarf2_resize_section): New.
1716 to determine whether a given section has a given name.
1717 (zlib_decompress_section): New.
1718 (dwarf2_read_section): Read the compressed section if present
1719 in the binary.
1720 * MAINTAINERS: Added myself to section Write After Approval.
1721
1722 2008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
1723
1724 * defs.h (exec_set_section_offsets): Remove prototype.
1725 * exec.c (exec_set_section_offsets): Remove function.
1726
1727 2008-04-18 Joel Brobecker <brobecker@adacore.com>
1728
1729 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
1730 in the search for the matching symbol.
1731
1732 2008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
1733
1734 * breakpoint.c (update_watchpoint): Always reparse
1735 condition.
1736
1737 2008-04-17 Joel Brobecker <brobecker@adacore.com>
1738
1739 * breakpoint.c (print_one_breakpoint_location): Make sure to print
1740 the breakpoint address only once.
1741
1742 2008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
1743
1744 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
1745 rather than a hard-coded architecture, for xcoff executables.
1746
1747 2008-04-17 Doug Evans <dje@google.com>
1748
1749 * buildsym.c (watch_main_source_file_lossage): New fn.
1750 (end_symtab): Call it.
1751
1752 * source.c (find_and_open_source): Add some comments clarifying
1753 handling of FULLNAME argument. Make static. Remove pointless
1754 xstrdup/xfree.
1755
1756 2008-04-17 Pedro Alves <pedro@codesourcery.com>
1757
1758 * inf-loop.c (inferior_event_handler): Also run the intermediate
1759 continuations in the INF_EXEC_COMPLETE case.
1760
1761 2008-04-16 Tom Tromey <tromey@redhat.com>
1762
1763 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
1764 (set_cmd_async_ok, get_cmd_async_ok): Declare.
1765 * cli/cli-decode.c (set_cmd_async_ok): New function.
1766 (get_cmd_async_ok): New function.
1767 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
1768 "show" as async-ok.
1769 * top.c (execute_command): Use get_cmd_async_ok.
1770 * infcmd.c: Include cli/cli-decode.h.
1771 (_initialize_infcmd): Mark "interrupt" as async-ok.
1772 * Makefile.in (infcmd.o): Depend on cli_decode_h.
1773
1774 2008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
1775
1776 PR gdb/2445
1777 * exec.c: Correct "arch-utils.h" include.
1778
1779 2008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
1780
1781 PR gdb/2424
1782 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
1783 to allow printing to 'see' real reason of stop. This fixes PR 2424.
1784 * breakpoint.c (bpdisp_texst): New function. The function takes over
1785 the role of bpstats static array in print_one_breakpoint_location.
1786 (print_it_typical): Print "Temporary breakpoint" instead
1787 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
1788 protocols, print disp field.
1789 (print_one_breakpoint_location): Removed bpdisps static definition.
1790 Call new bpstat_text function to get value for 'disp' field.
1791 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
1792
1793 2008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
1794
1795 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
1796 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
1797 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
1798 * gnulib/Makefile.in: Regenerate.
1799
1800 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
1801
1802 * Makefile.in (GNULIB_H): New. Trigger all-lib.
1803 (defs_h): Use $(GNULIB_H).
1804 (all-lib): Depend on gnulib/Makefile.
1805 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
1806 * config.in, gnulib/Makefile.in: Regenerated.
1807
1808 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
1809
1810 * Makefile.in (LIBGNU, INCGNU): Define.
1811 (INTERNAL_CFLAGS_BASE): Add INCGNU.
1812 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
1813 (CLEANDIRS): New.
1814 ($(LIBGNU), all-lib): New rules.
1815 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
1816 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
1817 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
1818 * gnulib: New directory, from gnulib-tool.
1819 * configure, aclocal.m4: Regenerated.
1820
1821 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
1822
1823 * linux-thread-db.c (have_threads_callback): Check thread->private.
1824
1825 2008-04-13 Nick Roberts <nickrob@snap.net.nz>
1826 Vladimir Prus <vladimir@codesourcery.com>
1827
1828 Fix @-varobjs.
1829 * varobj.c (value_of_root): Update the expression for
1830 floating varobjs.
1831 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
1832 report that.
1833
1834 2008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
1835
1836 * mi/mi-cmd-var.c: Include "mi-getopt.h".
1837 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
1838 (mi_cmd_var_set_format): Use new mi_parse_format.
1839 (mi_cmd_var_evaluate_expression): Support for -f option to specify
1840 format.
1841 * Makefile.in (mi-cmd-var.o): Update dependencies.
1842
1843 * varobj.h (varobj_get_formatted_value): Declare.
1844 * varobj.c (my_value_of_variable): Added format parameter.
1845 (cplus_value_of_variable): Likewise.
1846 (java_value_of_variable): Likewise.
1847 (c_value_of_variable): Likewise. Evaluate expression based
1848 on format parameter.
1849 (struct language_specific): Add format parameter to function member
1850 *value_of_variable.
1851 (varobj_get_formatted_value): New.
1852 (varobj_get_value): Added format parameter to method call.
1853
1854 2008-04-08 Joel Brobecker <brobecker@adacore.com>
1855
1856 * stabsread.c (cleanup_undefined_types_noname): Manually set the
1857 instance flags of the undefined type before calling replace_type.
1858
1859 2008-04-08 Vladimir Prus <vladimir@codesourcery.com>
1860
1861 * target.h (enum strata): Remove the download_stratum.
1862
1863 2008-04-07 Doug Evans <dje@google.com>
1864
1865 * buildsym.h (last_source_file): Add dwarf info to comment.
1866 (last_source_start_addr): Ditto.
1867
1868 2008-04-07 Pedro Alves <pedro@codesourcery.com>
1869
1870 * alphanbsd-tdep.c: Include "target.h".
1871 * mn10300-tdep.c: Include "target.h".
1872 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
1873
1874 2008-04-06 Vladimir Prus <vladimir@codesourcery.com>
1875
1876 Fix breakpoint condition that use member variables.
1877 * valops.c (check_field): Remove.
1878 (check_field_in): Rename to check_field.
1879 (value_of_this): Use la_name_of_this.
1880 * value.h (check_field): Adjust prototype.
1881
1882 * language.h (la_value_of_this): Rename to la_name_of_this.
1883 * language.c (unknown_language_defn): Specify "this" for
1884 name_of_this.
1885 (auto_language_defn): Likewise.
1886 (local_language_defn): Likewise.
1887 * ada-lang.c (ada_language_defn): Adjust comment.
1888 * c-lang.c (c_language_defn): Adjust comment.
1889 (cplus_language_defn): Specify "this" for name_of_this.
1890 (asm_language_defn): Adjust comment.
1891 (minimal_language_defn): Adjust comment.
1892 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
1893 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
1894 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
1895 * objc-lang.c (objc_language_defn): Specify "self" for
1896 name_of_this.
1897 * p-lang.c (pascal_language_defn): Specify "this" for
1898 name_of_this.
1899 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
1900
1901 * symtab.c (lookup_symbol_aux): Lookup "this" in the
1902 proper scope, and check for field in type of "this", without
1903 trying to create a value.
1904
1905 2008-04-04 Pedro Alves <pedro@codesourcery.com>
1906
1907 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
1908 (mi_error_message): Delete declaration.
1909 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
1910 returning MI_CMD_ERROR.
1911 * mi/mi-main.c (mi_error_message): Delete.
1912 (mi_cmd_exec_interrupt):
1913 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
1914 (mi_cmd_thread_info): Call error instead of returning
1915 MI_CMD_ERROR.
1916 (mi_cmd_data_list_register_values): Call error instead of
1917 returning MI_CMD_ERROR. Adapt to new get_register interface.
1918 (get_register): Change return typo to void. Call error instead of
1919 returning MI_CMD_ERROR.
1920 (mi_cmd_data_write_register_values): Call error instead of
1921 returning MI_CMD_ERROR.
1922 (mi_cmd_list_features): Return MI_CMD_DONE.
1923 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
1924 (mi_execute_command): Always print exceptions with -error.
1925
1926 2008-04-04 Joel Brobecker <brobecker@adacore.com>
1927
1928 * NEWS: Mention new commands set/show multiple-symbols.
1929
1930 2008-04-03 Joel Brobecker <brobecker@adacore.com>
1931
1932 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
1933 (multiple_symbols_cancel): New constants.
1934 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
1935 (multiple_symbols_select_mode): New function.
1936 (_initialize_symtab): Add new set/show multiple-symbols commands.
1937 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
1938 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
1939 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
1940 setting.
1941 * linespec.c (decode_line_2): Likewise.
1942
1943 2008-04-03 Doug Evans <dje@sebabeach.org>
1944
1945 * symtab.h (enum free_code): Delete free_contents, unused.
1946 * symmisc.c (free_symtab_block): Delete.
1947 (free_symtab, case free_code): Delete.
1948
1949 2008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
1950
1951 * valops.c (value_cast_structs): New function. Cast related
1952 STRUCT types up/down and return cast value. The body of this
1953 function comes mostly from value_cast_pointers.
1954 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
1955 to value_cast_structs. Now value_cast_pointers needs only create
1956 appropriate reference after using value_cast_structs for actual
1957 casting.
1958 (value_cast): Handle references.
1959
1960 2008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
1961
1962 * MAINTAINERS: Added myself to section Write After Approval.
1963
1964 2008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
1965
1966 * ia64-tdep.c (examine_prologue): Correct array access.
1967
1968 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
1969
1970 * cp-support.c (first_component_command): Return if no arguments.
1971
1972 2008-03-28 Carlos O'Donell <carlos@codesourcery.com>
1973
1974 * ser-mingw.c (ser_windows_open): Open requested name.
1975
1976 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
1977
1978 * MAINTAINERS: Added myself.
1979
1980 2008-03-28 Pedro Alves <pedro@codesourcery.com>
1981
1982 * target.c (find_default_run_target): Allow a NULL `do_mesg'
1983 parameter. If it is NULL, don't call error.
1984 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
1985 `do_mesg' parameter to find_default_run_target. If no target was
1986 found, return 0.
1987
1988 2008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
1989
1990 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
1991 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
1992 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
1993 Delete.
1994 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
1995
1996 2008-03-27 Joel Brobecker <brobecker@adacore.com>
1997
1998 GDB 6.8 released.
1999
2000 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
2001
2002 * features/Makefile (%.dat): Set xmltarget to the base filename
2003 of the XML source, without subdirectory.
2004 * regformats/rs6000/powerpc-32.dat: Regenerate.
2005 * regformats/rs6000/powerpc-64.dat: Regenerate.
2006 * regformats/rs6000/powerpc-e500.dat: Regenerate.
2007
2008 2008-03-27 Markus Deuling <deuling@de.ibm.com>
2009
2010 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
2011 objfile arch.
2012
2013 2008-03-27 Nick Roberts <nickrob@snap.net.nz>
2014
2015 * mi/mi-main.c (enum captured_mi_execute_command_actions):
2016 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
2017
2018 2008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
2019
2020 * objfiles.h (struct objfile): New GDBARCH member.
2021 (get_objfile_arch): Add prototype.
2022 * objfiles.c: Include "arch-utils.h".
2023 (allocate_objfile): Look up gdbarch associated with bfd.
2024 (get_objfile_arch): New function.
2025 * Makefile (objfiles.o): Update dependencies.
2026
2027 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
2028 by objfile arch.
2029 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
2030 by frame arch.
2031 (locexpr_describe_location): Replace current_gdbarch by
2032 objfile arch.
2033 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
2034 (dwarf2_add_field): Likewise.
2035 (read_tag_pointer_type): Likewise.
2036 (read_base_type): Likewise.
2037 (new_symbol): Likewise.
2038
2039 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
2040 (decode_base_type, decode_function_type): Likewise.
2041 (coff_read_struct_type, coff_read_enum_type): Likewise.
2042 (coff_symtab_read): Replace current_gdbarch by objfile arch.
2043 (decode_base_type): Likewise.
2044 (coff_read_enum_type): Likewise.
2045 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
2046 (coff_read_enum_type): Likewise.
2047
2048 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
2049 (end_psymtab): Likewise.
2050 (process_one_symbol): Likewise.
2051
2052 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
2053 (parse_procedure): Likewise.
2054 (parse_partial_symbols): Likewise.
2055
2056 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
2057
2058 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
2059 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
2060 built-in types.
2061 (read_range_type): Replace current_gdbarch by objfile arch. Replace
2062 static range_index_type by built-in type.
2063 (read_one_struct_field): Replace current_gdbarch by objfile arch.
2064 (read_enum_type): Likewise.
2065
2066 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
2067 objfile arch.
2068
2069 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
2070
2071 * varobj.h (varobj_floating_p): Declare.
2072 * varobj.c (varobj_floating_p): New.
2073 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
2074 '@' as the name, update all floating varobjs.
2075
2076 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
2077
2078 * varobj.c (struct varobj_root): Rename use_selected_frame to
2079 floating, and clarify the meaning.
2080 (varobj_create, varobj_update, new_root_variable): Adjust.
2081 (value_of_root): Don't use type_changed as in variable,
2082 adjust comment.
2083 (c_value_of_root): Adjust.
2084
2085 2008-03-25 Pedro Alves <pedro@codesourcery.com>
2086
2087 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
2088 gdb's thread list.
2089 (linux_nat_wait): Add main lwp to gdb's thread list.
2090 * linux-thread-db.c (find_new_threads_callback): Also attach to
2091 already listed threads which thread_db didn't know about yet.
2092
2093 2008-03-25 Pedro Alves <pedro@codesourcery.com>
2094
2095 * linux-nat.c (drain_queued_events): Fix comment typo.
2096 (linux_nat_attach): In async mode, don't rely on storing a pending
2097 status. Instead place the wait status on the pipe.
2098 (linux_nat_resume): Remove unreacheable shortcut code in async
2099 mode.
2100 (stop_wait_callback): In async mode, don't store pending status.
2101 Instead, cancel breakpoints or resend the signal appropriatelly.
2102 (cancel_breakpoint): New, refactored from
2103 cancel_breakpoints_callback.
2104 (cancel_breakpoints_callback): Call cancel_breakpoint.
2105 (pipe_to_local_event_queue): Remove special token processing.
2106 (linux_nat_wait): Issue an internal error if a pending status is
2107 found in async mode.
2108
2109 2008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
2110
2111 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
2112
2113 2008-03-24 Nick Roberts <nickrob@snap.net.nz>
2114 Vladimir Prus <vladimir@codesourcery.com>
2115
2116 * varobj.c (struct varobj_root): New component thread_id.
2117 (varobj_get_thread_id, check_scope): New functions.
2118 (c_value_of_root): Use check_scope. Switch to the
2119 proper thread if necessary.
2120
2121 * varobj.h (varobj_get_thread_id): New extern.
2122
2123 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
2124
2125 2008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
2126
2127 PR gdb/544
2128 * top.c: Revert 2008-03-21 changes.
2129
2130 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
2131
2132 * thread.c (make_cleanup_restore_current_thread): Make it
2133 globally visible.
2134 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
2135 * varobj.c (varobj_update): Don't save/restore frame.
2136 (c_value_of_root): Save/restore thread and frame here,
2137 using make_cleanup_restore_current_thread.
2138 * Makefile.in: Update dependecies.
2139
2140 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
2141
2142 * varobj.c (struct varobj_root): Clarify
2143 comment on the frame field.
2144 (varobj_create): Don't set frame if we have no
2145 block.
2146
2147 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
2148
2149 PR gdb/544
2150 Suggested by Jan Kratochvil:
2151 * top.c (gdb_rl_operate_and_get_next_completion): Call
2152 rl_redisplay_function.
2153 (gdb_rl_redisplay): New.
2154 (init_main): Set rl_redisplay_function.
2155
2156 2008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
2157
2158 * aix-thread.c (pdc_read_regs): Fix compiler warning.
2159 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
2160 (store_regs_kernel_thread): Likewise.
2161
2162 2008-03-21 Pedro Alves <pedro@codesourcery.com>
2163
2164 Linux native async support.
2165
2166 * target.h (struct target_ops): Delete to_async_mask_value and add
2167 to_async_mask.
2168 (target_is_async_p, target_async): Formatting.
2169 (target_async_mask_value): Delete.
2170 (target_async_mask): Delete function declaration, and add new
2171 target macro with the same name.
2172
2173 * target.c (update_current_target): Replace to_async_mask_value by
2174 to_async_mask. Default to_async_mask to return_one.
2175 (target_async_mask): Delete.
2176 (find_default_can_async_p, find_default_is_async_p): New.
2177 (init_dummy_target): register find_default_can_async_p and
2178 find_default_is_async_p on the dummy target.
2179
2180 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
2181 (debug_linux_nat_async): New global.
2182 (show_debug_linux_nat_async): New function.
2183 (linux_nat_async_enabled, linux_nat_async_mask_value)
2184 (linux_nat_event_pipe, linux_nat_num_queued_events)
2185 (linux_nat_async_events_enabled): New globals.
2186 (struct waitpid_result): New struct.
2187 (waitpid_queue): New global.
2188 (queued_waitpid, push_waitpid, drain_queued_events): New.
2189 (my_waitpid): Call queued_waitpid.
2190 (linux_child_follow_fork): Disable async events during the call.
2191 (blocked_mask): Delete.
2192 (sync_sigchld_action, async_sigchld_action): New globals.
2193 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
2194 async mode, block events during the call.
2195 (linux_nat_create_inferior): New.
2196 (linux_nat_attach): In sync mode, restore the mask states. In
2197 async mode, wake the event loop immediatelly.
2198 (detach_callback): Drain all queued events of the lwp we're
2199 detaching from.
2200 (linux_nat_detach): Block async mode, and drain events of the main
2201 process.
2202 (linux_nat_resume): If in async mode, mask async events during the
2203 call. If short circuiting, force event loop to wake up. If
2204 resuming, set target_executing, and register target events in the
2205 event loop.
2206 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
2207 (linux_nat_wait): In async mode, block events during the call.
2208 Only enable/disable passing SIGINT to the inferior in sync mode.
2209 Get events from local waitpid queue. If no interesting events was
2210 found, return to events loop. Reregister target events in the
2211 event loop on exit. In sync mode, no need to reblock SIGCHLD.
2212 (linux_nat_kill): Disable events on entry.
2213 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
2214 here. Detach async mode from the event loop if there are no more
2215 forks available, otherwise leave it on.
2216 (sigchld_handler): Assure this is called only in sync mode.
2217 (linux_async_permitted, linux_async_permitted_1): New globals.
2218 (set_maintenance_linux_async_permitted)
2219 (show_maintenance_linux_async_permitted): New functions.
2220 (linux_nat_is_async_p, linux_nat_can_async_p)
2221 (linux_nat_async_mask): New.
2222 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
2223 (get_pending_events, async_sigchld_handler): New.
2224 (linux_nat_async_events): New.
2225 (async_terminal_is_ours): New global.
2226 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
2227 (async_client_callback, async_client_context): New.
2228 (linux_nat_async_file_handler, linux_nat_async)
2229 (linux_nat_disable_async, linux_nat_enable_async): New.
2230 (linux_nat_add_target): Register linux_nat_create_inferior,
2231 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
2232 linux_nat_async_mask, linux_nat_terminal_inferior and
2233 linux_nat_terminal_ours.
2234 (_initialize_linux_nat): Remove local action variable, and update
2235 code that used it to use sync_sigchld_action. Add new
2236 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
2237 set/show command in the maintenance class. Add new "linux-async"
2238 maintenance set/show command. Block SIGCHLD by default. Setup
2239 async_sichld_action, and sync_sigchld_action. Install the default
2240 async mode.
2241 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
2242 the cancel signals.
2243
2244 * linux-thread-db.c (re_check_for_thread_db): New.
2245 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
2246 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
2247 (thread_db_async_mask): New.
2248 (init_thread_db_ops): Register thread_db_can_async_p,
2249 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
2250
2251 * remote.c (remote_async_mask_value): New.
2252 (remote_return_zero): New.
2253 (init_remote_ops): Register remote_return_zero as callbacks of
2254 to_can_async_p and to_is_async_p.
2255 (remote_can_async_p, remote_is_async_p, remote_async): Update to
2256 use remote_async_mask_value.
2257 (remote_async_mask): New.
2258 (init_remote_async_ops): Remove to_async_mask_value setting and
2259 register remote_async_mask as to_async_mask callback in
2260 remote_async_ops.
2261
2262 * Makefile.in (linux-nat.o): Update.
2263
2264 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
2265
2266 * gdbthread.h (add_thread_with_info): New.
2267 * linux-thread-db.c: Add some documentation.
2268 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
2269 (struct private_thread_info): Remove th_valid and ti_valid.
2270 Replace ti with tid.
2271 (thread_get_info_callback): Do not add TID to the new ptid. Do
2272 not cache th or ti.
2273 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
2274 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
2275 new PTID.
2276 (attach_thread): Handle an already-existing thread. Use
2277 add_thread_with_info. Cache the th and tid.
2278 (detach_thread): Verify that private was set. Remove verbose
2279 argument and printing. Update caller.
2280 (thread_db_detach): Do not adjust inferior_ptid.
2281 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
2282 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
2283 (thread_db_wait): Do not use lwp_from_thread.
2284 (thread_db_pid_to_str): Use the cached TID.
2285 (thread_db_extra_thread_info): Check that private is set.
2286 (same_ptid_callback): Delete.
2287 (thread_db_get_thread_local_address): Do not use it or check
2288 is_thread. Check that private is set. Assume that the thread
2289 handle is already cached.
2290 (init_thread_db_ops): Remove to_resume and to_kill.
2291 * thread.c (add_thread_with_info): New.
2292 (add_thread): Use it.
2293 * linux-nat.c (find_thread_from_lwp): Delete.
2294 (exit_lwp): Do not use it. Check print_thread_events. Print before
2295 deleting the thread.
2296 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
2297 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
2298 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
2299 printf_unfiltered for thread exits.
2300 * procfs.c (procfs_wait): Likewise.
2301
2302 2008-03-21 Chris Demetriou <cgd@google.com>
2303
2304 * symtab.c (rbreak_command): Quote symbol name before passing
2305 it to break_command.
2306
2307 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
2308
2309 * eval.c (evaluate_subexp_for_address): Clarify error message.
2310 Use value_must_coerce_to_target.
2311 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
2312 * valops.c (value_assign): Call value_coerce_to_target when
2313 assigning to anything but internalvars. Leave GDB-side arrays
2314 as arrays when assigning to internalvars.
2315 (value_must_coerce_to_target, value_coerce_to_target): New.
2316 (value_coerce_array, value_addr): Call value_coerce_to_target.
2317 (value_array): Create the array in GDB's memory instead of
2318 the inferior's.
2319 * value.h (value_must_coerce_to_target, value_coerce_to_target):
2320 Declare.
2321
2322 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
2323
2324 * top.c (quit_confirm): Warn that we will kill the program.
2325
2326 2008-03-19 Pedro Alves <pedro@codesourcery.com>
2327
2328 * inflow.c (terminal_ours_1): Guard access to
2329 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
2330
2331 2008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
2332 Jim Blandy <jimb@codesourcery.com>
2333 Daniel Jacobowitz <drow@false.org>
2334
2335 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
2336 (dwarf2_read_address): Update prototype.
2337
2338 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
2339 (signed_address_type): Likewise.
2340 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
2341 (execute_stack_op): Update calls to unsigned_address_type,
2342 signed_address_type and dwarf2_read_address. Fix implementation
2343 of DW_OP_deref_size.
2344
2345 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
2346 (dwarf2_per_cu_addr_size): Likewise.
2347 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
2348 (struct dwarf2_loclist_baton): Likewise.
2349
2350 * dwarf2loc.c (find_location_expression): Update calls to
2351 dwarf2_read_address. Use dwarf2_per_cu_objfile and
2352 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
2353 (locexpr_describe_location): Likewise.
2354 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
2355 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
2356 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
2357 to dwarf2_per_cu_addr_size (per_cu).
2358 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
2359 (loclist_read_variable): Likewise.
2360 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
2361
2362 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
2363 instead of baton->objfile.
2364 (dwarf2_per_cu_obfile): New function.
2365 (dwarf2_per_cu_addr_size): Likewise.
2366
2367 * dwarf2-frame.c (struct comp_unit): Move higher.
2368 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
2369 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
2370 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
2371 parameter by using fde->eh_frame_p. Use read_encoded_value
2372 to implement DW_CFA_set_loc.
2373 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
2374 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
2375 execute_stack_op and execute_cfa_program.
2376 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
2377 (size_of_encoded_value): Remove.
2378 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
2379 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
2380 (add_cie): Set cie->unit backlink.
2381 (decode_frame_entry_1): Set cie->addr_size. Update calls to
2382 read_encoded_value.
2383 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
2384
2385 2008-03-17 Markus Deuling <deuling@de.ibm.com>
2386
2387 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
2388 gdbarch_bfd_arch_info.
2389
2390 2008-03-17 Joel Brobecker <brobecker@adacore.com>
2391
2392 * aix-thread.c (pdc_read_regs): Minor reformatting.
2393
2394 2008-03-17 Vladimir Prus <vladimir@codesourcery.com>
2395
2396 * thread.c (print_thread_info): Don't insist
2397 on having current thread if there are no
2398 threads at all.
2399
2400 2008-03-17 Pedro Alves <pedro@codesourcery.com>
2401
2402 * infcmd.c (attach_command_post_wait)
2403 (attach_command_continuation): New.
2404 (attach_command): Support background async execution, and async
2405 execution in synchronous mode.
2406
2407 2008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
2408
2409 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
2410 * symmisc.c (dump_symtab_1): Likewise.
2411 * wrapper.c (gdb_value_struct_elt): Likewise.
2412
2413 2008-03-17 Pedro Alves <pedro@codesourcery.com>
2414
2415 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
2416
2417 2008-03-17 Pedro Alves <pedro@codesourcery.com>
2418
2419 * linux-nat.c (linux_nat_filter_event): New, refactored from
2420 linux_nat_wait.
2421 (linux_nat_wait): Call linux_nat_filter_event.
2422
2423 2008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
2424
2425 * top.c (execute_command): Fix uninitialized variable error.
2426
2427 2008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
2428
2429 * Makefile.in (amd64nbsd-nat.o): New dependency.
2430 * amd64nbsd-nat.c: Include "nbsd-nat.h".
2431 (_initialize_amd64nbsd_nat): Update target vector to use
2432 nbsd_pid_to_exec_file.
2433 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
2434
2435 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
2436
2437 Remove ignoring leading exec events code.
2438 * fork-child.c (startup_inferior): Do not set
2439 inferior_ignoring_leading_exec_events.
2440 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
2441 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
2442 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
2443 (handle_inferior_event): Remove code for ignoring leading exec
2444 events.
2445 * target.c (update_current_target): Do not inherit, or default,
2446 to_reported_exec_events_per_exec_call.
2447 (debug_to_reported_exec_events_per_exec_call): Remove.
2448 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
2449 * target.h (target_reported_exec_events_per_exec_call): Remove.
2450 (struct target): Remove the to_reported_exec_events_per_exec_call
2451 field.
2452
2453 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
2454
2455 Implement -thread-info.
2456 * gdbthread.h (print_thread_info): Declare.
2457
2458 * thread.c (print_thread_info): New, extracted
2459 from info_threads_command and adjusted to
2460 work for CLI and MI.
2461 (info_threads_command): Use print_thread_info.
2462 * Makefile.in: Update dependencies.
2463
2464 * mi/mi-cmds.c (mi_cmds): Specify a handler
2465 for -thread-info.
2466 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
2467 * mi/mi-main.c (mi_cmd_thread_info): New.
2468 (mi_cmd_list_features): Include 'thread-info'.
2469
2470 2008-03-14 Kevin Buettner <kevinb@redhat.com>
2471
2472 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
2473 to decide whether to match instruction patterns using "sw" and "sd".
2474
2475 2008-03-14 Pedro Alves <pedro@codesourcery.com>
2476
2477 * infcmd.c (jump_command): Postpone disabling stdin until after
2478 the possible query.
2479
2480 2008-03-14 Pedro Alves <pedro@codesourcery.com>
2481
2482 * inflow.c (gdb_getpgrp): New.
2483 (gdb_has_a_terminal): Use get_getpgrp.
2484 (terminal_ours_1): If attach_flag is set, don't refetch
2485 inferior_process_group.
2486
2487 2008-03-14 Pedro Alves <pedro@codesourcery.com>
2488
2489 * features/library-list.dtd: Allow "section" elements as children
2490 of "library". Add "section" element and describe its attributes.
2491
2492 * solib-target.c (struct lm_info): Add section_bases member.
2493 (library_list_start_segment): Error out if seen a section element.
2494 (library_list_start_section): New.
2495 (library_list_end_library): New.
2496 (solib_target_free_library_list): Free section_bases.
2497 (section_attributes): New.
2498 (library_children): Make "segment" optional. Add "section" child.
2499 (library_list_children): Register library_list_end_library.
2500 (solib_target_relocate_section_addresses): Handle section bases.
2501
2502 * NEWS: Mention new qXfer:libraries:read section offsets support.
2503
2504 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
2505
2506 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
2507 (make_exec_error_cleanup): Remove declarations.
2508 * utils.c (exec_error_cleanup_chain): Remove.
2509 (do_exec_error_cleanups, discard_exec_error_cleanups)
2510 (make_exec_error_cleanup): Remove.
2511 * event-loop.c (start_event_loop): Adjust call to
2512 async_enable_stdin.
2513 * event-top.c (async_enable_stdin): Remove the paramater dummy.
2514 (async_disable_stdin): Don't register async_enable_stdin via
2515 cleanup.
2516 * inf-loop.c (inferior_event_handler): Don't
2517 call do_exec_error_cleanups. Call async_enable_stdin instead.
2518 * event-loop.c (start_event_loop): Adjust call to
2519 async_enable_stdin.
2520 * tui/tui-interp.c (tui_command_loop): Adjust call to
2521 async_enable_stdin.
2522
2523 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
2524
2525 Async mode fixes.
2526 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
2527 * breakpoint.c (bpstat_do_actions): In async mode,
2528 don't jump to top expecting stop_bpstat to be already
2529 updated.
2530 * event-loop.c (start_event_loop): Call async_enable_stdin
2531 on exception.
2532 * event-top.c (async_enable_stdin): Do nothing if sync_execution
2533 is not set.
2534 (command_handler): Do not setup continuation here.
2535 (command_line_handler_continuation): Move to...
2536 * top.c (command_line_handler_continuation): ... here.
2537 (execute_command): In async mode, register continuation.
2538 Don't check frame's language in running in async mode.
2539 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
2540 * inf-loop.c (complete_execution): Inline into...
2541 (inferior_event_handler): ... here. Clear target_executing before
2542 doing any cleanups. Don't try to show prompt if the target was
2543 resumed.
2544 * infcmd.c (signal_command): Add support for async mode.
2545 (finish_command): Only add continuation if the target was
2546 successfully resumed.
2547 * remote.c (init_async_opts): Register to_get_thread_local_address
2548 handler.
2549 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
2550 with sync_execution.
2551 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
2552 on exception.
2553
2554 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
2555
2556 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
2557 * exec.c (exec_bfd_mtime): Define.
2558 (exec_close): Clear it.
2559 (exec_file_attach): Set it.
2560 * gdbcore.h (exec_bfd_mtime): Declare.
2561 * source.c (find_source_lines): Do not use bfd_get_mtime.
2562
2563 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
2564
2565 * top.c (simplified_command_loop): Remove.
2566
2567 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
2568
2569 Remove unused remote.c hooks.
2570 * remote.c (deprecated_target_resume_hook)
2571 (deprecated_target_wait_loop_hook): Remove.
2572 (remote_resume): Do not call deprecated_target_resume_hook.
2573 (remote_wait): Do not call deprecated_target_wait_loop_hook.
2574 (remote_async_wait): Likewise.
2575
2576 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
2577
2578 Implement MI notification for new threads.
2579 * doc/observer.texi (new_thread): Document.
2580 * observer.sh: Forward declare struct thread_info.
2581 * thread.c (add_thread): Notify observer.
2582
2583 * interps.h (interp_init_ftype): New parameter
2584 top_level.
2585 (interp_set): Likewise.
2586 (top_level_interpreter_data): Declare.
2587 * interps.c (interp_set): New parameter top_level.
2588 Pass it to interpreter's init function. Remember
2589 top level interpreter.
2590 (interpreter_exec_cmd): Adjust.
2591 (top_level_interpreter_data): New.
2592 * main.c (captured_main): Pass 1 for top_level
2593 parameter of interp_set.
2594 * cli/cli-interp.c (cli_interpreter_init): New
2595 parameter top_level.
2596 * tui/tui-interp.c (tui_init): New parameter top_level.
2597
2598 * mi/mi-interp.c (mi_new_thread): New.
2599 (mi_interpreter_init): If top level, register
2600 observer for new threads.
2601
2602 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
2603
2604 2008-03-14 Pedro Alves <pedro@codesourcery.com>
2605
2606 * top.c (execute_command): Disable break and stop
2607 commands in async mode.
2608
2609 2008-03-14 Pedro Alves <pedro@codesourcery.com>
2610
2611 revert:
2612 2008-03-14 Pedro Alves <pedro@codesourcery.com>
2613 * inf-loop.c (inferior_event_handler): Don't include remote.h.
2614 Call target_stop in the INF_QUIT_REQ case.
2615 * Makefile.in (inf-loop.o): Update.
2616
2617 2008-03-14 Pedro Alves <pedro@codesourcery.com>
2618
2619 * inf-loop.c (inferior_event_handler): Don't include remote.h.
2620 Call target_stop in the INF_QUIT_REQ case.
2621 * Makefile.in (inf-loop.o): Update.
2622
2623 2008-03-14 Pedro Alves <pedro@codesourcery.com>
2624
2625 * top.c (execute_command): Enable break, info and interrupt
2626 commands in async mode.
2627
2628 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
2629 Daniel Jacobowitz <dan@codesourcery.com>
2630
2631 * breakpoint.h (breakpoint_restore_shadows): New
2632 declaration.
2633 * breakpoint.c (breakpoint_restore_shadows): New.
2634 (read_memory_nobpt): Delete.
2635 * gdbcore.h (read_memory_nobpt): Delete declaration.
2636 * target.c (memory_xfer_partial): Call
2637 breakpoint_restore_shadows.
2638 (restore_show_memory_breakpoints)
2639 (make_show_memory_beakpoints_cleanup): New.
2640 (show_memory_breakpoints): New.
2641 * target.h (make_show_memory_beakpoints_cleanup): Declare.
2642 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
2643 Make sure we see memory breakpoints when checking if
2644 breakpoint is still there.
2645 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
2646 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
2647 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
2648 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
2649
2650 2008-03-12 Pedro Alves <pedro@codesourcery.com>
2651
2652 * thread.c (add_thread): Use printf_unfiltered to print.
2653
2654 2008-03-12 Joel Brobecker <brobecker@gnat.com>
2655
2656 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
2657 that is true only on x86-solaris and x86_64-solaris.
2658 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
2659 with proc_get_LDT_entry.
2660
2661 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
2662
2663 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
2664 * config.in, configure: Regenerate.
2665 * fork-child.c (fork_inferior): Call create_tty_session.
2666 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
2667 (create_tty_session): New function.
2668 * terminal.h: Declare create_tty_session.
2669
2670 2008-03-12 Alan Modra <amodra@bigpond.net.au>
2671
2672 PR 5900
2673 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
2674 * mipsread.c: Include elf/internal.h.
2675 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
2676 to internal range.
2677
2678 2008-03-11 Markus Deuling <deuling@de.ibm.com>
2679
2680 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
2681 to get at the current architecture and at the target specific vector.
2682 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
2683 remove define of I387_ST0_REGNUM.
2684
2685 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
2686
2687 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
2688 get at the current architecture
2689 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
2690 parameter.
2691
2692 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
2693 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
2694
2695 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
2696 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
2697 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
2698
2699 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
2700 at the target specific vector.
2701
2702 (i386_get_longjmp_target): Use get_frame_arch to get at the current
2703 architecture. Use gdbarch_tdep to get at the target specific vector.
2704
2705 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
2706 update caller. Use gdbarch_tdep to get at the target specific vector.
2707
2708 (i386_register_to_value: Use get_frame_arch to get at the current
2709 architecture.
2710
2711 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
2712 parameter.
2713
2714 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
2715 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
2716 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
2717 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
2718
2719 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
2720 undef's.
2721
2722 (i387_convert_register_p, i387_register_to_value,
2723 i387_value_to_register): Update call for i386_fp_regnum_p.
2724
2725 * i387-tdep.h: Remove comment.
2726 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
2727 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
2728 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
2729 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
2730 I387_MXCSR_REGNUM): Add target specific vector as parameter.
2731
2732 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
2733
2734 * Makefile.in (fork-child.o): Update.
2735 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
2736 argument. Gather all gdbserver features together.
2737 * fork-child.c (exec_wrapper): New variable.
2738 (fork_inferior): Use it.
2739 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
2740 (unset_exec_wrapper_command, _initialize_fork_child): New.
2741
2742 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
2743
2744 * source.c (directory_command): Modify the determination of
2745 condition of terminal "from_tty".
2746
2747 2008-03-10 Matt Rice <ratmice@gmail.com>
2748
2749 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
2750
2751 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
2752
2753 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
2754 of the data passing to strtoulst function.
2755 (info_spu_signal_command): Likewise.
2756
2757 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
2758
2759 * mi/mi-interp.c (mi_command_loop): Remove
2760 commented-out code.
2761
2762 2008-03-07 Joel Brobecker <brobecker@adacore.com>
2763
2764 * remote.c (extended_remote_attach_1): Make local variable pid an int
2765 instead of a pid_t.
2766
2767 2008-03-07 Joel Brobecker <brobecker@adacore.com>
2768
2769 * solib-svr4.c (svr4_same_1): New function, originally extracted
2770 from svr4_same and expanded to handle the sparc64 case.
2771 (svr4_same): Move up and reimplement using svr4_same_1.
2772 (enable_break): Use svr4_same_1 to do shared library name comparisons.
2773
2774 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
2775
2776 * MAINTAINERS: Move self to Paper trail.
2777
2778 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
2779
2780 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
2781 * event-loop.c (call_async_signal_handler): New.
2782 * event-loop.h (call_async_signal_handler)
2783 (gdb_call_async_signal_handler): Declare.
2784 (mark_async_signal_handler): Add comments.
2785 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
2786 * mingw-hdep.c (sigint_event, sigint_handler): New.
2787 (gdb_select): Use them. Wait for the readline signal handler
2788 to finish.
2789 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
2790 * posix-hdep.c (gdb_call_async_signal_handler): New function.
2791 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
2792 New.
2793 (remote_fileio_ctrl_c_signal_handler): Use
2794 gdb_call_async_signal_handler.
2795 (initialize_remote_fileio): Initialize sigint_fileio_token.
2796 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
2797 not initialize tokens here.
2798 (handle_remote_sigint_twice): Likewise. Reinstall
2799 handle_remote_sigint.
2800 (async_remote_interrupt_twice): Just call interrupt_query.
2801 (cleanup_sigint_signal_handler): Do not delete tokens.
2802 (remote_interrupt, remote_interrupt_twice): Use
2803 gdb_call_async_signal_handler.
2804 (interrupt_query): Reinstall the default signal handler.
2805 (_initialize_remote): Initialize tokens here.
2806
2807 2008-03-04 Joel Brobecker <brobecker@adacore.com>
2808
2809 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
2810 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
2811 Change the type of the lr register to code_ptr.
2812 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2813 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2814 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2815 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2816 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2817 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2818 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
2819
2820 2008-03-03 James E. Wilson <wilson@tuliptree.org>
2821
2822 * MAINTAINERS: Update my email address.
2823
2824 2008-03-03 Keith Seitz <keiths@redhat.com>
2825
2826 From Dave Murphy <davem@devkitpro.org>:
2827 * configure.ac: Set tcl configdir to win under mingw.
2828 * configure: Regenerate.
2829
2830 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
2831
2832 * breakpoint.c (fetch_watchpoint_value): New function.
2833 (update_watchpoint): Set and clear val_valid. Use
2834 fetch_watchpoint_value. Handle unreadable values on the
2835 value chain. Correct check for user-requested array watchpoints.
2836 (breakpoint_init_inferior): Clear val_valid.
2837 (watchpoint_value_print): New function.
2838 (print_it_typical): Use it. Do not free or clear old_val. Print
2839 watchpoints even if old_val == NULL.
2840 (watchpoint_check): Use fetch_watchpoint_value. Check for values
2841 becoming readable or unreadable.
2842 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
2843 (do_enable_watchpoint): Likewise.
2844 * breakpoint.h (struct breakpoint): Update comment for val. Add
2845 val_valid.
2846 * NEWS: Mention watchpoints on inaccessible memory.
2847
2848 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
2849
2850 * Makefile.in (i386-nat.o): Update.
2851 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
2852 i386_use_watchpoints.
2853 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
2854 i386_use_watchpoints.
2855 * i386-nat.c (i386_stopped_data_address): Take two arguments.
2856 (i386_stopped_by_watchpoint): Update call.
2857 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
2858 * config/i386/nm-i386.h: Conditionalize definitions on
2859 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
2860 (i386_use_watchpoints): Declare.
2861 (i386_stopped_data_address): Update.
2862 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
2863 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
2864
2865 2008-02-29 Joel Brobecker <brobecker@adacore.com>
2866
2867 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
2868 * version.in: Bump version to 6.8.50.20080229-cvs.
2869
2870 2008-02-28 Markus Deuling <deuling@de.ibm.com>
2871
2872 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
2873 properly.
2874
2875 2008-02-28 Tom Tromey <tromey@redhat.com>
2876
2877 * infcmd.c (notice_args_read): Print result of get_inferior_args.
2878
2879 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
2880
2881 * infcmd.c (kill_if_already_running): Make static. Use
2882 target_require_runnable.
2883 * target.c (target_require_runnable): New.
2884 * target.h (target_require_runnable): Declare.
2885
2886 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
2887
2888 * frame.c (reinit_frame_cache): Only annotate if frames were
2889 previously valid.
2890
2891 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2892
2893 * regformats/reg-ppc.dat: Rename "ps" to "msr".
2894 * regformats/reg-ppc64.dat: Likewise.
2895
2896 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2897
2898 * features/Makefile (%.dat): Emit xmltarget statement.
2899
2900 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
2901 Generate code to set gdbserver_xmltarget in init_registers_${name}.
2902
2903 * regformats/arm-with-iwmmxt.dat: Regenerate.
2904 * regformats/mips64-linux.dat: Regenerate.
2905 * regformats/mips-linux.dat: Regenerate.
2906 * regformats/rs6000/powerpc-32.dat: Regenerate.
2907 * regformats/rs6000/powerpc-64.dat: Regenerate.
2908 * regformats/rs6000/powerpc-e500.dat: Regenerate.
2909
2910 * regformats/reg-arm.dat: Add xmlarch statement.
2911 * regformats/reg-i386.dat: Likewise.
2912 * regformats/reg-i386-linux.dat: Likewise.
2913 * regformats/reg-x86-64-linux.dat: Likewise.
2914 * regformats/reg-spu.dat: Likewise.
2915
2916 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
2917
2918 * remote.c (remote_wait, remote_async_wait): Stop if we receive
2919 an error.
2920
2921 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
2922
2923 * utils.c (debug_timestamp): New.
2924 (vfprintf_unfiltered): Print timestamps if requested.
2925 (show_debug_timestamp): New.
2926 (initialize_utils): Register "set debug timestamp".
2927 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
2928
2929 2008-02-27 Joel Brobecker <brobecker@adacore.com>
2930
2931 * breakpoint.c (skip_prologue_sal): New function.
2932 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
2933 computed from a line number.
2934
2935 2008-02-27 Joel Brobecker <brobecker@adacore.com>
2936
2937 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
2938 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
2939 Set PC register type to "code_ptr".
2940 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2941 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2942 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2943 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2944 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2945 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2946 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
2947 Regenerate.
2948
2949 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
2950
2951 * regformats/regdat.sh: Rename init_registers function in
2952 generated file to init_registers_${name}.
2953
2954 * regformats/reg-crisv32.dat: Set "name" to crisv32.
2955 * regformats/reg-ppc64.dat: Set "name" to ppc64.
2956 * regformats/reg-s390x.dat: Set "name" to s390x.
2957
2958 2008-02-26 Greg Law <glaw@undo-software.com>
2959
2960 * regcache.c (registers_changed): Call reinit_frame_cache.
2961
2962 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
2963
2964 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
2965 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
2966 and svr4_fetch_objfile_link_map.
2967 * Makefile.in (sh-linux-tdep.o): Update.
2968
2969 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
2970
2971 * amd64-tdep.c (amd64_classify): Add support for decimal float
2972 types.
2973 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
2974 use the struct return convention.
2975
2976 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
2977
2978 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
2979 to old format. Discard breakpoint address if shared library is
2980 unloaded.
2981 (breakpoint_1): Adjust formatting of table header accordingly.
2982
2983 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
2984
2985 * remote.c (remote_get_threadlist): If the response
2986 is empty, don't try to parse it.
2987
2988 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
2989
2990 Unbreak 'target async'.
2991 * serial.c (serial_async): Set the
2992 handler function before enabling async
2993 mode.
2994
2995 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
2996
2997 * solib-svr4.c (enable_break): Convert r_brk to a code address.
2998
2999 2008-02-21 Pedro Alves <pedro@codesourcery.com>
3000
3001 * remote.c (extended_remote_attach_1): Set attach_flag.
3002 (extended_remote_create_inferior_1): Clear attach_flag.
3003
3004 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
3005
3006 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
3007 r_brk_offset.
3008 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
3009 * solib-svr4.c (solib_svr4_r_brk): New.
3010 (open_symbol_file_object, svr4_current_sos): Always check the
3011 debug base.
3012 (svr4_fetch_objfile_link_map): Do not set debug_base.
3013 (enable_break): Use r_brk if it is set.
3014 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
3015 (svr4_lp64_fetch_link_map_offsets): Likewise.
3016 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
3017
3018 2008-02-20 Markus Deuling <deuling@de.ibm.com>
3019 Mark Kettenis <kettenis@gnu.org>
3020
3021 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
3022 trad_frame_saved_reg.
3023 (trad-frame.h): New include.
3024
3025 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
3026 instead of frame_obstack_zalloc.
3027 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
3028
3029 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
3030
3031 2008-02-20 Markus Deuling <deuling@de.ibm.com>
3032
3033 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
3034 from disassemble_info instead of gdbarch_byte_order.
3035
3036 * mips-tdep.c (gdb_print_insn_mips): Likewise.
3037 * arm-tdep.c (gdb_print_insn_arm): Likewise.
3038
3039 2008-02-20 Markus Deuling <deuling@de.ibm.com>
3040
3041 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
3042 gdbarch as parameter.
3043
3044 * gdbarch.{c,h}: Regenerate.
3045
3046 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
3047 parameter.
3048 * mem-break.c (default_memory_insert_breakpoint)
3049 (default_memory_remove_breakpoint): Likewise.
3050 * target.h (default_memory_remove_breakpoint)
3051 (default_memory_insert_breakpoint): Likewise.
3052
3053 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
3054 parameter. Replace current_gdbarch by gdbarch.
3055 * m32r-tdep.c (m32r_memory_insert_breakpoint)
3056 (m32r_memory_remove_breakpoint): Likewise.
3057
3058 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
3059
3060 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
3061
3062 2008-02-19 Joel Brobecker <brobecker@adacore.com>
3063
3064 * NEWS: Add entry describing Add support improvements.
3065
3066 2008-02-18 Markus Deuling <deuling@de.ibm.com>
3067
3068 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
3069 M68K_FP0_REGNUM.
3070
3071 2008-02-18 Markus Deuling <deuling@de.ibm.com>
3072
3073 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
3074 register_offset_hack anymore.
3075
3076 * regcache.{c,h} (register_offset_hack): Remove.
3077
3078 2008-02-18 Markus Deuling <deuling@de.ibm.com>
3079
3080 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
3081
3082 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
3083 current_gdbarch by gdbarch.
3084 (hppa64_hpux_find_global_pointer): Likewise.
3085 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
3086 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
3087 find_global_pointer.
3088
3089 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
3090 parameter.
3091 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
3092
3093 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
3094 of gdbarch_num_regs.
3095
3096 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
3097 replace current_gdbarch by gdbarch.
3098 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
3099
3100 2008-02-18 Markus Deuling <deuling@de.ibm.com>
3101
3102 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
3103 and replace current_gdbarch by gdbarch.
3104
3105 (store_register): Update call for exec_one_dummy_insn.
3106 (fetch_register, store_register): Update call of regmap.
3107
3108 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
3109 parameter and replace current_gdbarch by gdbarch.
3110
3111 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
3112 the current architecture. Update call for getregs_supplies and
3113 getfpregs_supplies.
3114 (ppcnbsd_fetch_inferior_registers): Likewise.
3115
3116 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
3117 replace current_gdbarch by gdbarch.
3118 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
3119 get_regcache_arch to get at the current architecture. Update call for
3120 getfpregs_supplies.
3121
3122 2008-02-18 Markus Deuling <deuling@de.ibm.com>
3123
3124 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
3125 variables.
3126
3127 2008-02-15 Markus Deuling <deuling@de.ibm.com>
3128
3129 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
3130
3131 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
3132
3133 * NEWS: Mention pending breakpints in MI.
3134
3135 2008-02-14 Markus Deuling <deuling@de.ibm.com>
3136
3137 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
3138
3139 2008-02-13 Markus Deuling <deuling@de.ibm.com>
3140
3141 Add script to build and test GDB using enable-targets=all.
3142
3143 * gdb_buildall.sh: New file.
3144
3145 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
3146
3147 * NEWS (New native configurations): Xtensa GNU/Linux.
3148 (New targets): Xtensa GNU/Linux.
3149 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
3150 xtensa-linux-tdep.o
3151 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
3152 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
3153 * configure.tgt (xtensa*-*-linux*): New entry.
3154 * xtensa-config.c (xtensa_tdep): New variable.
3155 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
3156 (rmap): Change format based on new macro XTREG.
3157 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
3158 * xtensa-linux-nat.c: New.
3159 * xtensa-linux-tdep.c: New.
3160 * xtensa-xtregs.c: New.
3161 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
3162 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
3163 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
3164 (xtensa_register_t): New field coprocessor.
3165 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
3166 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
3167 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
3168 Update to handle privileged registers.
3169 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
3170 (xtensa_push_dummy_call): Set windowstart register correctly.
3171 (call0_analyze_prologue): Initialize xtensa_default_isa.
3172 (xtensa_derive_tdep): New.
3173 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
3174 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
3175 Call xtensa_derive_tdep().
3176 * config/xtensa/linux.mh: New.
3177 * regformats/reg-xtensa.dat: New.
3178
3179 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
3180
3181 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
3182 (filenames.h): New include.
3183 * Makefile.in (corelow.o): Add dependency for filenames.h.
3184
3185 2008-02-08 Doug Evans <dje@google.com>
3186
3187 * source.c (find_and_open_source): Always rewrite absolute filenames.
3188
3189 2008-02-07 Doug Evans <dje@google.com>
3190
3191 * breakpoint.c: #include "hashtab.h".
3192 (ambiguous_names_p): New fn.
3193 (update_breakpoint_locations): When restoring bp enable status, don't
3194 compare function names if any functions have same name.
3195 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
3196
3197 2008-02-07 Joel Brobecker <brobecker@adacore.com>
3198
3199 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
3200 instead of just a VEC*. Update use of SV.
3201 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
3202
3203 2007-02-07 Joel Brobecker <brobecker@adacore.com>
3204
3205 * NEWS: Put all new commands since gdb-6.7 together.
3206
3207 2007-02-07 Joel Brobecker <brobecker@adacore.com>
3208
3209 * ada-lang.c: #include "vec.h".
3210 (struct string_vector, new_string_vector, string_vector_append):
3211 Delete.
3212 (char_ptr): New typedef.
3213 (DEF_VEC_P (char_ptr)): New VEC type.
3214 (symbol_completion_add): Update profile to take the new VEC type
3215 instead of the old string_vector structure. Update code accordingly.
3216 (ada_make_symbol_completion_list): Use the new VEC type instead of
3217 the old string_vector structure, and update the code accordingly.
3218 * Makefile.in (ada-lang.o): Add dependency on vec.h.
3219
3220 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
3221
3222 * p-exp.y: Set current_type in missing places.
3223 (leftdiv_is_integer): New static variable.
3224 Typecast right operand of BINOP_DIV to long_double if both operands
3225 are integers.
3226
3227 2008-02-06 Maciej W. Rozycki <macro@mips.com>
3228
3229 * remote-mips.c (set_breakpoint): Rename to...
3230 (mips_set_breakpoint): ... this.
3231 (clear_breakpoint): Rename to...
3232 (mips_clear_breakpoint): ... this.
3233 (common_breakpoint): Rename to...
3234 (mips_common_breakpoint): ... this.
3235 (check_lsi_error): Rename to...
3236 (mips_check_lsi_error): ... this.
3237
3238 2007-02-05 Joel Brobecker <brobecker@adacore.com>
3239
3240 * language.h (struct language_defn): Add new field
3241 la_make_symbol_completion_list.
3242 * symtab.c (default_make_symbol_completion_list): Renames
3243 make_symbol_completion_list.
3244 (make_symbol_completion_list): New function.
3245 * symtab.h (default_make_symbol_completion_list): Add declaration.
3246 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
3247 (auto_language, local_language): Likewise.
3248 * objc-lang.c (objc_language_defn): Likewise.
3249 * scm-lang.c (scm_language_defn): Likewise.
3250 * m2-lang.c (m2_language_defn): Likewise.
3251 * f-lang.c (f_language_defn): Likewise.
3252 * jv-lang.c (java_language_defn): Likewise.
3253 * p-lang.c (pascal_language_defn): Likewise.
3254 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
3255 (minimal_language_defn): Likewise.
3256 * ada-lang.c (struct string_vector): New structure.
3257 (new_string_vector, string_vector_append, ada_unqualified_name)
3258 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
3259 (ada_make_symbol_completion_list): New functions.
3260 (ada_language_defn): Set la_make_symbol_completion_list.
3261 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
3262 this function is static.
3263
3264 2008-02-05 Kevin Buettner <kevinb@redhat.com>
3265
3266 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
3267 to account for call site optimizations.
3268
3269 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
3270
3271 * tracepoint.c (read_actions): Handle end-of-text indicator
3272 in action list properly. (Committed by Jim Blandy)
3273
3274 2008-02-05 Jim Blandy <jimb@red-bean.com>
3275
3276 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
3277 pseudoregister, not an internal error.
3278 Reported by: Andrzej Zaborowski
3279
3280 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
3281
3282 * varobj.c (c_value_of_variable): Use xstrdup.
3283
3284 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
3285
3286 Update stored rendition of varobj value when format changes.
3287 * varobj.c (varobj_set_display_format): Recomputed
3288 print_value.
3289 (c_value_of_variable): Return print_value.
3290
3291 2008-02-03 Doug Evans <dje@google.com>
3292
3293 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
3294 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
3295 * valops.c (value_one): New function.
3296 * value.h (value_one): Declare.
3297
3298 Fix argument promotion for binary arithmetic ops for C.
3299 * valarith.c (unop_result_type): New fn.
3300 (binop_result_type): New fn.
3301 (value_binop): Move result type computation to binop_result_type.
3302 (value_pos, value_neg, value_complement): Move result type
3303 computation to unop_result_type.
3304
3305 PR 2384
3306 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
3307 Return basetype, fieldno if found. All callers updated.
3308 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
3309 objfile.
3310 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
3311 * symfile.h (fill_in_vptr_fieldno): Delete.
3312
3313 2008-02-02 Doug Evans <dje@google.com>
3314
3315 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
3316
3317 * typeprint.c (*): Whitespace cleanup.
3318
3319 2008-02-02 Mark Kettenis <kettenis@gnu.org>
3320 Luis Machado <luisgpm@br.ibm.com>
3321 Thiago Jung Bauermann <bauerman@br.ibm.com>
3322
3323 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
3324 don't fit into registerson the stack the way GCC does.
3325
3326 2008-02-01 Joel Brobecker <brobecker@adacore.com>
3327
3328 * symtab.c (symbol_set_names): Do not add an entry in the demangling
3329 hash table for Ada symbols. Just store the linkage name as is,
3330 and leave the demangled_name as NULL.
3331
3332 2007-02-01 Joel Brobecker <brobecker@adacore.com>
3333
3334 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
3335 in the global scope.
3336 (new_symbol): Likewise.
3337
3338 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
3339
3340 * breakpoint.c (break_command_1): Return void.
3341 (break_command_really): Return void. Rethrow
3342 exceptions instead of returning.
3343 (gdb_breakpoint): Remove the error_message parameter.
3344 Return void. Rename to set_breakpoint.
3345 * gdb.h (gdb_breakpoint): Rename and move to...
3346 * breakpoint.h (set_breakpoint): ...here.
3347 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
3348 event hooks even if exception is thrown. Adjust to
3349 gdb_breakpoint interface changes.
3350
3351
3352 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3353
3354 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
3355 float in both first and second word in the doubleword, to support
3356 old and new ABIs.
3357
3358 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
3359
3360 Properly rethrow exception. This fixes errors
3361 about non-existent functions for -break-insert.
3362 * breakpoint.c (break_command_really): Use throw_exception
3363 for rethrowing. If rethrowing, don't print the exception.
3364
3365 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3366
3367 * NEWS: Mention Decimal Floating Point support.
3368
3369 2008-01-31 Joel Brobecker <brobecker@adacore.com>
3370
3371 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
3372 value type to builtin_type_void_func_ptr.
3373
3374 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
3375
3376 * s390-tdep.c (is_float_singleton, is_float_like,
3377 alignment_of, s390_return_value): Make checks for
3378 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
3379
3380 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
3381 Thiago Jung Bauermann <bauerman@br.ibm.com>
3382
3383 * infcmd.c (default_print_registers_info): Also print hex
3384 raw contents for TYPE_CODE_DECFLOAT registers.
3385 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
3386 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
3387 (rs6000_register_name): Add support for DFP pseudo-registers.
3388 (rs6000_pseudo_register_type): Likewise.
3389 rs6000_pseudo_register_reggroup_p): Likewise.
3390 (ppc_pseudo_register_read): New function.
3391 (ppc_pseudo_register_write): Likewise.
3392 (rs6000_pseudo_register_read): Likewise.
3393 (rs6000_pseudo_register_write): Likewise.
3394 (e500_pseudo_register_read): Move checks to
3395 rs6000_pseudo_register_read.
3396 (e500_pseudo_register_write): Move checks to
3397 rs6000_pseudo_register_write.
3398 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
3399 rs6000_pseudo_register_read and rs6000_pseudo_register_write
3400 in gdbarch if SPE or DFP is available. Adjust gdbarch's
3401 num_pseudo_regs to account for DFP pseudo regs.
3402
3403 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3404
3405 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
3406 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
3407 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
3408 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
3409 e500_pseudo_register_read, e500_pseudo_register_write): Use
3410 IS_SPE_PSEUDOREG macro.
3411 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
3412 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
3413 Remove initialization of tdep->ppc_ev31_regnum.
3414
3415 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
3416
3417 * printcmd.c (print_formatted): Handle references as for unformatted
3418 prints.
3419
3420 2008-01-30 Joel Brobecker <brobecker@adacore.com>
3421
3422 * eval.c (evaluate_subexp_standard): Add handling of user
3423 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
3424
3425 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
3426
3427 * eval.c (evaluate_subexp_standard): Support
3428 BINOP_INTDIV opcode.
3429
3430 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
3431
3432 * valarith.c (value_binop): Add floating-point BINOP_MIN and
3433 BINOP_MAX cases.
3434 For BINOP_EXP, use length and signedness of left operand only for
3435 result, as for shifts.
3436 For integral operands to BINOP_EXP, use new integer_pow and
3437 uinteger_pow functions so as to get full range of results.
3438 (integer_pow): New function.
3439 (uinteger_pow): New function.
3440
3441 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
3442
3443 Use vector for varobj_list_children interface.
3444 * gdb/varobj.c (varobj_list_children): Return vector
3445 of varobjs.
3446 * gdb/varobj.h (varobj_list_children): Adjust
3447 prototype.
3448 (varobj_p): Declare. Declare vector thereof.
3449 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
3450 for varobj_list_children change.
3451 * Makefile.in (varobj_h): Update dependencies.
3452
3453 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
3454
3455 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
3456 TYPE_CODE_DECFLOAT arguments.
3457 (ppc64_sysv_abi_push_dummy_call) Likewise.
3458 (get_decimal_float_return_value): New function.
3459 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
3460 values by calling get_decimal_float_return_value.
3461 (ppc64_sysv_abi_return_value): Likewise.
3462
3463 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
3464
3465 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
3466 for preprocessor macro information. Formatting changes.
3467
3468 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
3469
3470 * remote.c (struct remote_state): Add cached_wait_status.
3471 (remote_exec_file): New variable.
3472 (PACKET_vAttach, PACKET_vRun): New constants.
3473 (extended_remote_restart): Do not query for status.
3474 (struct start_remote_args): New.
3475 (remote_start_remote): Take it as a second argument. Check
3476 whether the target is running. Issue an error for non-running
3477 non-extended targets. Cache the wait status. Set inferior_ptid
3478 here.
3479 (remote_open_1): Prompt to disconnect non-running targets. Make
3480 sure the target is marked running. Do not set inferior_ptid here.
3481 Update call to remote_start_remote. Do not call remote_check_symbols
3482 if the target is not running.
3483 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
3484 argument. Handle a non-running target.
3485 (remote_detach): Use it.
3486 (extended_remote_detach): New.
3487 (remote_disconnect): Fix typo. Use remoute_mourn_1.
3488 (extended_remote_attach_1, extended_remote_attach)
3489 (extended_async_remote_attach): New.
3490 (remote_vcont_resume): Remove unused variable.
3491 (remote_wait, remote_async_wait): Use any cached wait status.
3492 (putpkt_binary, getpkt): Clear any cached wait status.
3493 (extended_remoute_mourn_1): New.
3494 (extended_remote_mourn): Use it.
3495 (extended_async_remote_mourn, extended_remote_run): New.
3496 (extended_remote_create_inferior_1): New.
3497 (extended_remote_create_inferior): Use it.
3498 (extended_remote_async_create_inferior): Likewise.
3499 (remote_xfer_partial): Skip for non-executing targets.
3500 (init_extended_remote_ops): Set to_detach and to_attach.
3501 (init_extended_async_remote_ops): Likewise. Use
3502 extended_async_remote_mourn.
3503 (_initialize_remote): Register vAttach, vRun, and
3504 set remote exec-file.
3505 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
3506
3507 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
3508
3509 * Makefile.in (symfile.o): Update.
3510 * NEWS: Mention exec tracing support.
3511 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
3512 exec events.
3513 * infcmd.c (kill_if_already_running, detach_command)
3514 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
3515 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
3516 (follow_exec): Do not check may_follow_exec. Do not mourn and push
3517 targets. Apply the sysroot path to the loaded executable. Use
3518 no_shared_libraries.
3519 * linux-nat.c (linux_child_follow_fork): Print fork following
3520 messages if verbose.
3521 (kill_wait_callback): Kill again before waiting a second time.
3522 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
3523 no_shared_libraries.
3524
3525 2008-01-29 Joel Brobecker <brobecker@adacore.com>
3526
3527 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
3528
3529 2008-01-29 Joel Brobecker <brobecker@adacore.com>
3530
3531 * nto-tdep.h: Remove #include "defs.h".
3532 * nto-tdep.c: Add #include "defs.h".
3533 * Makefile.in (nto_tdep_h): Update dependencies.
3534 (nto-tdep.o): Likewise.
3535
3536 2008-01-29 Joel Brobecker <brobecker@adacore.com>
3537
3538 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
3539 and use it.
3540 (proceed, start_remote): Update call to wait_for_inferior.
3541 * inferior.h (wait_for_inferior): Update declaration.
3542 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
3543 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
3544 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
3545 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
3546
3547 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
3548
3549 * varobj (adjust_value_for_child_access): Added checking for
3550 returned value from gdb_value_ind.
3551 (c_describe_child): Likewise.
3552 (cplus_describe_child): Fixed a typo.
3553
3554 2008-01-29 Jim Blandy <jimb@red-bean.com>
3555
3556 * MAINTAINERS: Update my info.
3557
3558 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
3559
3560 Use multiple locations for hardware watchpoints.
3561 This eliminates the need to traverse value chain, doing
3562 various checks, in three different places.
3563
3564 * breakpoint.h (struct bp_location): New fields
3565 lengths and watchpoint_type.
3566 (struct breakpoint): Remove the val_chain field.
3567 * breakpoint.c (is_hardware_watchpoint): New.
3568 (free_valchain): Remove.
3569 (update_watchpoint): New.
3570 (insert_bp_location): For hardware watchpoint, just
3571 directly insert it.
3572 (insert_breakpoints): Call update_watchpoint_locations
3573 on all watchpoints. If we have failed to insert
3574 any location of a hardware watchpoint, remove all inserted
3575 locations.
3576 (remove_breakpoint): For hardware watchpoints, directly
3577 remove location.
3578 (watchpoints_triggered): Iterate over locations.
3579 (bpstat_stop_status): Use only first location of
3580 a resource watchpoint.
3581 (delete_breakpoint): Don't call free_valchain.
3582 (print_one_breakpoint): Don't print all
3583 locations for watchpoints.
3584 (breakpoint_re_set_one): Use update_watchpoint for
3585 watchpoints.
3586
3587 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
3588
3589 Don't reset watchpoint block on solib load.
3590
3591 * breakpoint.c (insert_bp_location): For watchpoints,
3592 recompute condition.
3593 (breakpoint_re_set_one): Instead of recomputing value
3594 and condition for watchpoints, just reset value and
3595 let insert_breakpoints/insert_bp_location recompute it.
3596 Don't do anything about disabled watchpoint.
3597
3598 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
3599
3600 * valarith.c (value_binop): Handle unsigned integer
3601 division by zero.
3602
3603 2008-01-28 Kevin Buettner <kevinb@redhat.com>
3604
3605 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
3606 instruction pattern that appears frequently in position
3607 independent code. Fix bug in code which looks for "fmov" and
3608 backtracks if no "fmov" is found.
3609
3610 2008-01-28 Doug Evans <dje@google.com>
3611
3612 * dbxread.c (read_dbx_symtab): Fix indentation.
3613 Reformat comments to 80 columns.
3614 Move local var def closer to only use.
3615
3616 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
3617
3618 * fork-child.c (SHELL_FILE): Remove #ifndef.
3619 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
3620
3621 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
3622
3623 * i386-tdep.c (i386_skip_noop): New function.
3624 (i386_analyze_prologue): Call i386_skip_noop function.
3625
3626 2008-01-24 Michael Snyder <msnyder@specifix.com>
3627
3628 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
3629 * win32-nat.c (win32_xfer_partial): Ditto.
3630 * target.c (default_xfer_partial): Minor whitespace adjustment.
3631
3632 2008-01-24 Pedro Alves <pedro@codesourcery.com>
3633
3634 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
3635 strip bit 1 even if pc doesn't point to thumb code.
3636
3637 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
3638
3639 * remote.c (remote_wait): Handle SIGINT between packets.
3640 (remote_async_wait): Likewise.
3641
3642 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
3643 Chris Demetriou <cgd@google.com>
3644
3645 * thread.c (add_thread_silent): Renamed
3646 from add_thread.
3647 (print_thread_events): New variable definition.
3648 (show_print_thread_events): New function.
3649 (_initialize_thread): Add "set print thread-events" and
3650 "show print thread-events" commands.
3651 (add_thread): Announce new thread.
3652 * gdbthread.h (add_thread_silent): Declare.
3653 (print_thread_events): New variable declaration.
3654 * inf-ttrace.c (inf_ttrace_wait): Don't
3655 inform about new thread, as add_thread is always
3656 called too, and will take care of that.
3657 * infrun.c (handle_inferior_event): Likewise.
3658 * procfs.c (procfs_wait): Likewise.
3659 * remote.c (remote_currthread): Likewise.
3660 * sol-thread.c (sol_thread_wait): Likewise.
3661 * win32-nat.c (get_win32_debug_event): Likewise.
3662 * linux-thread-db.c (attach_thread): Likewise.
3663 Remove the verbose parameter.
3664 (check_event): Make detach_thread be verbose
3665 only if print_thread_events is set.
3666 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
3667 about new thread. This is called only from
3668 linux-thread-db.c:attach_thread, which will take care.
3669 Remove the verbose parameter.
3670 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
3671
3672 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
3673
3674 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
3675
3676 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
3677
3678 * breakpoint.c (break_command_really): New parameter
3679 ignore_count.
3680 (break_command_1): Pass 0 as
3681 ignore_count to break_command_really.
3682 (gdb_breakpoint): Pass ignore_count to
3683 break_command_really.
3684
3685 2008-01-21 Kevin Buettner <kevinb@redhat.com>
3686
3687 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
3688 sigcontext struct via pointer.
3689 (struct sigframe comment): Update to show new field `psc'.
3690
3691 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
3692
3693 * infrun.c (handle_inferior_event): If
3694 we failed to remove breakpoints, error,
3695 don't try to increment PC by hand.
3696
3697 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
3698
3699 Add NetBSD/hppa target and host support.
3700
3701 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
3702 (hppabsd_gregset): Move to ...
3703 (hppabsd_regset_from_core_section): Rename
3704 hppaobsd_regset_from_core_section and move to ...
3705 (hppabsd_find_global_pointer): Update comment.
3706 (hppabsd_init_abi): Make global. Do not register
3707 hppabsd_regset_from_core_section.
3708 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
3709 move to ...
3710 (_initialize_hppabsd_tdep): Move to ...
3711 * hppaobsd-tdep.c: ... here. New file.
3712 * hppnbsd-tdep.c: New file.
3713 * hppnbsd-nat.c: New file.
3714 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
3715 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
3716 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
3717 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
3718 * configure.host (hppa*-*-netbsd*): New entry.
3719 * configure.tgt (hppa*-*-netbsd*): New entry.
3720 (hppa*-*-openbsd*): Update.
3721 * NEWS (New native configuration): Mention NetBSD/hppa.
3722 (New targets): Mention NetBSD/hppa.
3723
3724 2008-01-18 Markus Deuling <deuling@de.ibm.com>
3725
3726 * gdbarch.sh (function_list): Add new property bits_big_endian to
3727 gdbarch structure.
3728 * gdbarch.{c,h}: Regenerate.
3729
3730 * value.c (struct value): Replace BITS_BIG_ENDIAN by
3731 gdbarch_bits_big_endian (comment).
3732 (unpack_field_as_long, modify_field): Likewise.
3733 * value.h: Likewise (comment).
3734 * valops.c (value_slice): Likewise.
3735 * valarith.c (value_subscript, value_bit_index): Likewise.
3736 * gdbtypes.h (field): Likewise (comment).
3737 * eval.c (evaluate_subexp_standard): Likewise.
3738 * dwarf2read.c (dwarf2_add_field): Likewise.
3739 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
3740 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
3741
3742 * defs.h (BITS_BIG_ENDIAN): Remove.
3743
3744 2008-01-18 Markus Deuling <deuling@de.ibm.com>
3745
3746 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
3747 function calls.
3748 * m2-exp.y (yylex): Likewise.
3749 * objc-exp.y (yylex): Likewise.
3750
3751 * defs.h (DEPRECATED_STREQN): Remove.
3752
3753 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
3754
3755 * MAINTAINERS: Update my email address.
3756
3757 2008-01-17 Jim Blandy <jimb@codesourcery.com>
3758
3759 * README: Mention gdbserver/README.
3760
3761 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
3762
3763 * valarith.c (value_binop): Handle BINOP_INTDIV
3764 for unsigned and signed integers.
3765
3766 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
3767
3768 * s390-tdep.c (s390_gdbarch_init): Set default long double
3769 type to 128-bit IEEE quad.
3770
3771 2008-01-17 Joel Brobecker <brobecker@adacore.com>
3772
3773 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
3774
3775 2008-01-16 Mark Kettenis <kettenis@gnu.org>
3776
3777 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
3778
3779 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
3780 * value.c: All callers changed.
3781
3782 2008-01-16 Markus Deuling <deuling@de.ibm.com>
3783
3784 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
3785 DEPRECATED_STREQ by its expression.
3786 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
3787 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
3788 (scan_xcoff_symtab): Likewise.
3789 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
3790 * f-lang.c (find_common_for_function): Likewise.
3791 * objc-exp.y (parse_number): Likewise.
3792
3793 * defs.h (DEPRECATED_STREQ): Remove.
3794
3795 2008-01-16 Markus Deuling <deuling@de.ibm.com>
3796
3797 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
3798 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
3799 get_frame_arch to get at the current_architecture. Update AM33_MODE
3800 call.
3801 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
3802 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
3803 architecture.
3804 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
3805
3806 2008-01-16 Markus Deuling <deuling@de.ibm.com>
3807
3808 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
3809 parameter.
3810 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
3811
3812 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
3813 current_gdbarch by gdbarch. Update caller.
3814
3815 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
3816 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
3817 the current architecture. Update calls of
3818 amd64_native_gregset_supplies_p.
3819 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
3820 (amd64bsd_store_inferior_registers): Likewise.
3821
3822 2008-01-16 Markus Deuling <deuling@de.ibm.com>
3823
3824 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
3825 Replace current_gdbarch by gdbarch. Update caller.
3826
3827 2008-01-16 Markus Deuling <deuling@de.ibm.com>
3828
3829 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
3830 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
3831 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
3832 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
3833 (stabsect_build_psymtabs): Fix indentation.
3834
3835 2008-01-15 Michael Snyder <msnyder@specifix.com>
3836
3837 * corelow.c (core_xfer_partial): Comment, cut/paste error.
3838
3839 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
3840
3841 * win32-nat.c (win32_create_inferior): Restore code calling
3842 CloseHandle on ProcessInformation structure.
3843
3844 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
3845
3846 * configure.ac: Check for void * as 3 argument of ptrace.
3847 * configure: regenerate.
3848
3849 2008-01-11 Markus Deuling <deuling@de.ibm.com>
3850
3851 * alpha-tdep.c (alpha_heuristic_proc_start)
3852 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
3853 current_gdbarch by gdbarch.
3854
3855 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
3856 current architecture by frame_info. Update alpha_heuristic_proc_start
3857 call.
3858
3859 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
3860 get_frame_arch to get at the current architecture by frame_info. Update
3861 alpha_sigtramp_register_address call.
3862
3863 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
3864 current_gdbarch by gdbarch. Update caller.
3865 (convert_to_extended, convert_from_extended): Add endianess parameter
3866 for comparison. Update caller.
3867 (arm_extract_return_value, arm_store_return_value): Use
3868 get_regcache_arch to get at the current architecture.
3869
3870 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
3871 current_gdbarch by gdbarch. Update caller.
3872 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
3873 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
3874
3875 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
3876 gdbarch as parameter. Update caller.
3877 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
3878 current_gdbarch by gdbarch. Update caller.
3879
3880 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
3881 update caller. Replace current_gdbarch by gdbarch.
3882
3883 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
3884 the current architecture. Replace current_gdbarch by gdbarch.
3885 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
3886 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
3887 expression. Add gdbarch as parameter and replace current_gdbarch with
3888 it. Update caller.
3889 (M6811_TDEP): Remove.
3890 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
3891 architecture.
3892 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
3893 current_gdbarch by gdbarch. Update caller.
3894
3895 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
3896 update caller.
3897 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
3898 by gdbarch.
3899
3900 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
3901 caller. Relace current_gdbarch by gdbarch.
3902 (altivec_register_p, spe_register_p): Likewise.
3903 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
3904 parameter.
3905 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
3906 altivec_register_p and spe_register_p.
3907
3908 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
3909 caller. Replace current_gdbarch by gdbarch.
3910 (score_analyze_prologue): use get_frame_arch to get at the current
3911 architecture.
3912
3913 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
3914 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
3915 current_gdbarch by gdbarch. Update caller.
3916 (sparc_frame_cache): Use get_frame_arch to get at the current
3917 architecture.
3918 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
3919 sparc_analyze_prologue.
3920
3921 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
3922 parameter.
3923
3924 2008-01-11 Markus Deuling <deuling@de.ibm.com>
3925
3926 * exec.c: #include "arch-utils.h"
3927 (print_section_info): Use gdbarch_from_bfd to get at the
3928 current architecture. Replace current_gdbarch. Fix indention. Replace
3929 deprecated_print_address_numeric by paddress.
3930 * Makefile.in (exec.o) Add dependency to arch-utils.h.
3931
3932 * valprint.c (val_print_string): Replace
3933 deprecated_print_address_numeric.
3934 * tracepoint.c (trace_mention, scope_info): Likewise.
3935 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
3936 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
3937 (maintenance_check_symtabs): Likewise.
3938 * symfile.c (list_overlays_command): Likewise.
3939 * stack.c (frame_info, print_block_frame_labels): Likewise.
3940 * printcmd.c (print_address, print_address_demangle)
3941 (address_info): Likewise.
3942 * corefile.c (memory_error): Likewise.
3943 * infcmd.c (jump_command): Likewise.
3944 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
3945 (mention, delete_breakpoint): Likewise.
3946 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
3947 * dwarf2read.c (dump_die): Likewise.
3948 * ada-valprint.c (ada_val_print_1): Likewise.
3949 * f-valprint.c (f_val_print): Likewise.
3950 * linux-fork.c (info_forks_command): Likewise.
3951 * m32r-com.c (m32r_load_section, m32r_load)
3952 (m32r_upload_command): Likewise.
3953
3954 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
3955
3956 2008-01-11 Markus Deuling <deuling@de.ibm.com>
3957
3958 * gdbarch.sh (skip_prologue): Add gdbarch
3959 as parameter.
3960 * gdbarch.{c,h}: Regenerate.
3961
3962 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
3963 * amd64-tdep.c (amd64_skip_prologue): Likewise.
3964 * avr-tdep.c (avr_skip_prologue): Likewise.
3965 * cris-tdep.c (cris_skip_prologue): Likewise.
3966 * frv-tdep.c (frv_skip_prologue): Likewise.
3967 * h8300-tdep.c (h8300_skip_prologue): Likewise.
3968 * hppa-tdep.c (hppa_skip_prologue): Likewise.
3969 * i386-tdep.c (i386_skip_prologue): Likewise.
3970 * ia64-tdep.c (ia64_skip_prologue): Likewise.
3971 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
3972 * m32r-tdep.c (m32r_skip_prologue): Likewise.
3973 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
3974 * m68k-tdep.c (m68k_skip_prologue): Likewise.
3975 * m88k-tdep.c (m88k_skip_prologue): Likewise.
3976 * mep-tdep.c (mep_skip_prologue): Likewise.
3977 * mips-tdep.c (mips_skip_prologue): Likewise.
3978 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
3979 * mt-tdep.c (mt_skip_prologue): Likewise.
3980 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
3981 * score-tdep.c (score_skip_prologue): Likewise.
3982 * sh64-tdep.c (sh64_skip_prologue): Likewise.
3983 * sh-tdep.c (sh_skip_prologue): Likewise.
3984 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
3985 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
3986 * spu-tdep.c (spu_skip_prologue): Likewise.
3987 * v850-tdep.c (v850_skip_prologue): Likewise.
3988 * vax-tdep.c (vax_skip_prologue): Likewise.
3989 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
3990 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
3991
3992 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
3993 current_gdbarch by gdbarch.
3994 * m32c-tdep.c (m32c_skip_prologue): Likewise.
3995 * s390-tdep.c (s390_skip_prologue): Likewise.
3996
3997 2008-01-10 Doug Evans <dje@google.com>
3998
3999 * defs.h (struct continuation_arg): Fix typo in comment.
4000 * target.c (target_translate_tls_address): Fix comment spelling error.
4001
4002 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
4003
4004 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
4005 (DOUBLEST_SCAN_FORMAT): Likewise.
4006 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
4007 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
4008 * c-exp.y (parse_number): Likewise.
4009 * jv-exp.y (parse_number): Likewise.
4010 * objc-exp.y (parse_number): Likewise.
4011 * p-exp.y (parse_number): Likewise.
4012
4013 2008-01-09 Joel Brobecker <brobecker@adacore.com>
4014
4015 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
4016 (check_typedef): Likewise.
4017
4018 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
4019
4020 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
4021 seen_double_big_d, treat the new H, D, and DD modifiers as length
4022 modifiers.
4023
4024 2008-01-08 Joel Brobecker <brobecker@adacore.com>
4025
4026 * dwarf2read.c (read_enumeration_type): Add comment.
4027
4028 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
4029
4030 * config.in: Regenerate.
4031
4032 2008-01-08 Joel Brobecker <brobecker@adacore.com>
4033
4034 * ada-lang.c (ada_convert_actual): Renames convert_actual.
4035 Make non-static.
4036 (ada_convert_actuals): Delete.
4037 * ada-lang.h (ada_convert_actual): Add declaration.
4038 (ada_convert_actuals): Remove declaration.
4039 * infcall.c: #include "ada-lang.h".
4040 (value_arg_coerce): Add new parameter sp. Update function
4041 documetnation. Add handling of Ada function call parameters.
4042 * Makefile.in (infcall.o): Update dependencies.
4043
4044 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
4045
4046 * ada-lang.c (ensure_lval): Fix value lval kind.
4047 (convert_actual): Add handling for arguments passed by reference.
4048
4049 2008-01-08 Doug Evans <dje@google.com>
4050
4051 * dbxread.c (read_dbx_symtab): Fix indentation.
4052
4053 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
4054
4055 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
4056 (valarith.o): Depend on dfp.h.
4057 (valops.o): Likewise.
4058 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
4059 (set_decnumber_context): New function.
4060 (decimal_check_errors): Likewise.
4061 (decimal_from_number): Likewise.
4062 (decimal_to_number): Likewise.
4063 (decimal_from_string): Use set_decnumber_context and
4064 decimal_check_errors.
4065 (decimal_from_integral): New function.
4066 (decimal_from_floating): Likewise.
4067 (decimal_to_double): Likewise.
4068 (promote_decimal): Likewise.
4069 (decimal_binop): Likewise.
4070 (decimal_is_zero): Likewise.
4071 (decimal_compare): Likewise.
4072 (decimal_convert): Likewise.
4073 * dfp.h (decimal_from_integral): New prototype.
4074 (decimal_from_floating): Likewise.
4075 (decimal_to_double): Likewise.
4076 (decimal_binop): Likewise.
4077 (decimal_is_zero): Likewise.
4078 (decimal_compare): Likewise.
4079 (decimal_convert): Likewise.
4080 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
4081 call to value_from_decfloat.
4082 * valarith.c: Include dfp.h.
4083 (value_args_as_decimal): New function.
4084 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
4085 (value_logical_not): Likewise.
4086 (value_equal): Likewise.
4087 (value_less): Likewise.
4088 (value_pos): Likewise.
4089 (value_neg): Formatting fix.
4090 * valops.c: Include dfp.h.
4091 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
4092 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
4093 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
4094 (value_from_decfloat): Remove expect_type argument.
4095 * value.h (value_from_decfloat): Update prototype.
4096
4097 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
4098
4099 Ignore change in name of dynamic linker during
4100 execution on Solaris. This also unbreaks pending breakpoints.
4101
4102 * solist.h (struct target_so_ops): New field same.
4103 * solib-svr4.c (svr4_same): New.
4104 (_initialize_svr4_solib): Register svr4_same.
4105 * solib.c (update_solib_list): Use ops->same, if available.
4106
4107 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
4108
4109 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
4110 when using MS-DOS paths.
4111
4112 2008-01-05 Pedro Alves <pedro@codesourcery.com>
4113
4114 * NEWS: Mention --pid and --core command line behaviour changes.
4115
4116 2008-01-05 Pedro Alves <pedro@codesourcery.com>
4117
4118 * main.c (captured_main): Remove 'count' varible and the
4119 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
4120 --pid options were issued simultaneously. If an explicit pid
4121 option was passed, don't fallback to core file. Detect extra
4122 arguments better in the presence of explicit pid or core
4123 arguments.
4124
4125 2008-01-05 Joel Brobecker <brobecker@adacore.com>
4126
4127 * ada-lang.c (ada_which_variant_applies): Correctly compute
4128 the value of the discriminant when the variant record is packed.
4129
4130 2008-01-04 Joel Brobecker <brobecker@adacore.com>
4131
4132 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
4133 that are used to differentiate homonyms.
4134
4135 2008-01-04 Jerome Guitton <guitton@adacore.com>
4136
4137 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
4138 when the type is an anonymous pointer type.
4139 (ada_check_typedef): Avoid a seg fault when the type is null.
4140 * ada-typeprint.c (print_array_type): Add support for pointer
4141 to packed arrays.
4142
4143 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
4144
4145 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
4146
4147 2008-01-04 Joel Brobecker <brobecker@adacore.com>
4148
4149 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
4150 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
4151
4152 2008-01-04 Joel Brobecker <brobecker@adacore.com>
4153
4154 * ada-exp.y (chop_separator): New function.
4155 (write_selectors): Rewrite to re-use chop_separator.
4156 (ada_nget_field_index, get_symbol_field_type): New functions.
4157 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
4158 expressions.
4159
4160 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
4161
4162 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
4163 of SYMBOL_VALUE when working with function symbols.
4164
4165 2008-01-03 Joel Brobecker <brobecker@adacore.com>
4166
4167 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
4168 expressions. These expressions do not need to be rewriten.
4169
4170 2008-01-03 Joel Brobecker <brobecker@adacore.com>
4171
4172 * dwarf2read.c (read_enumeration_type): Flag type as stub if
4173 the given die is a declaration.
4174
4175 2008-01-03 Joel Brobecker <brobecker@adacore.com>
4176
4177 * ada-lang.c (ada_array_bound_from_type): Make non-static.
4178 Handle properly the case when the index type is an enumerated type.
4179 Do not return the subtype of the bounds type, just return the
4180 bounds type directly - this is not needed and is more consistent
4181 with what we do for arrays when no XA parallel type exists.
4182
4183 2008-01-03 Joel Brobecker <brobecker@adacore.com>
4184
4185 * ada-lang.c (static_unwrap_type): Add forward declaration.
4186 (template_to_static_fixed_type): Fields of dynamic types sometimes
4187 also need to be unwrapped. Take this into account.
4188 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
4189 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
4190 * ada-typeprint.c (ada_print_type): Get the typename from
4191 the original type, not the base type.
4192
4193 2008-01-03 Jerome Guitton <guitton@adacore.com>
4194
4195 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
4196 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
4197 Update calls to ada_to_fixed_type.
4198 (ada_template_to_fixed_record_type_1): Ditto, but without looking
4199 for the tag.
4200 (ada_to_fixed_type): Add check_tag parameter; do not look for
4201 tag if null. When looking for a tag, use a fixed record type.
4202 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
4203 * ada-valprint.c (printable_val_type, ada_value_print): Update
4204 calls to ada_to_fixed_type.
4205
4206 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
4207
4208 * doublest.c (convert_floatformat_to_doublest): Call
4209 floatformat_to_doublest instead of floatformat_to_double and use
4210 DOUBLEST variables.
4211 (convert_doublest_to_floatformat): Call floatformat_from_doublest
4212 instead of floatformat_from_double and use DOUBLEST variables.
4213
4214 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
4215
4216 * MAINTAINERS (Write After Approval): Add self.
4217
4218 2008-01-03 Joel Brobecker <brobecker@adacore.com>
4219
4220 * symfile.c (set_initial_language): Make non-static.
4221 * symfile.h (set_initial_language): Add declaration.
4222 * language.c: #include "symfile.h".
4223 (set_language): Call set_initial_language if the frame language
4224 could not be determined.
4225
4226 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
4227
4228 * eval.c (evaluate_subexp_for_address): Provide frame address to
4229 locate_var_value only if it will be needed.
4230
4231 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4232
4233 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
4234
4235 2008-01-02 Joel Brobecker <brobecker@adacore.com>
4236
4237 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
4238 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
4239 This is needed to make sure that any other treatment applied
4240 to the resulting value does not fail for spurious reason,
4241 such as trying to take the address of this value.
4242
4243 2008-01-02 Joel Brobecker <brobecker@adacore.com>
4244
4245 * ada-lang.c (ada_value_equal): Dereference reference types when
4246 comparing arrays.
4247
4248 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
4249
4250 Updated copyright notices for most files.
4251
4252 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
4253
4254 * win32-nat.c (psapi_module_handle): Remove static.
4255 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
4256 return first module found if base_address is zero. Don't initialize
4257 psapi function pointers here. Convert to cygwin paths when
4258 appropriate.
4259 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
4260 executable name. Use get_module_name when that fails or when
4261 !__CYGWIN__.
4262 (_initialize_psapi): New function. Initialize psapi stuff before it is
4263 needed or issue a warning if it is not found. Move psapi_module_handle
4264 here.
4265
4266 2008-01-01 Joel Brobecker <brobecker@adacore.com>
4267
4268 * ada-lang.c (ada_remove_trailing_digits): New function.
4269 (ada_remove_po_subprogram_suffix): New function.
4270 (ada_decode): Improve. Move the description of the algorithm
4271 directly inside the code, instead of in the function global
4272 description.
4273
4274 2008-01-01 Joel Brobecker <brobecker@adacore.com>
4275
4276 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
4277 and always print the dereferenced value.
4278
4279 2008-01-01 Joel Brobecker <brobecker@adacore.com>
4280
4281 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
4282 of the case where the first argument is a reference.
4283 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
4284
4285 2008-01-01 Joel Brobecker <brobecker@adacore.com>
4286
4287 Implement support for Ada interface types.
4288
4289 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
4290 (ada_is_ignored_field): Ignore fields that are a dispatch table
4291 of a tagged type.
4292
4293 2008-01-01 Joel Brobecker <brobecker@adacore.com>
4294
4295 * top.c (print_gdb_version): Update copyright year.
4296
4297 2008-01-01 Joel Brobecker <brobecker@adacore.com>
4298
4299 * ChangeLog-2007: New ChangeLog rotation.
4300 * ChangeLog: Reset for 2008.
4301 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
4302 ChangeLog-2007.
4303
4304 For older changes see ChangeLog-2007.
4305 \f
4306 Local Variables:
4307 mode: change-log
4308 left-margin: 8
4309 fill-column: 74
4310 version-control: never
4311 coding: utf-8
4312 End: