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