2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
[external/binutils.git] / gdb / ChangeLog
1 2007-10-09  Pedro Alves  <pedro_alves@portugalmail.pt>
2
3         * stabsread.c (read_huge_number): Fix handling of octal
4         representation when the bit width is known.
5         (read_range_type): Record unsigned integral types with their size,
6         when the type size is known.
7
8 2007-10-08  Thiago Jung Bauermann  <bauerman@br.ibm.com>
9
10         * MAINTAINERS (Write After Approval): Add self.
11
12 2007-10-08  Pierre Muller  <muller@ics.u-strasbg.fr>
13
14         * breakpoint.c (print_one_breakpoint_location): ARI fix: 
15         Replace asprintf by xstrprintf.
16
17 2007-10-08  Pierre Muller  <muller@ics.u-strasbg.fr>
18
19         * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
20         Makefile.in (linux-fork.o): Add gdb_dirent.h dependency. 
21
22 2007-10-08  Pierre Muller  <muller@ics.u-strasbg.fr>
23
24         * linux-fork.c: Move "gdb_wait.h" include back to the position of
25         <sys/wait.h> include before last commit.
26
27 2007-10-08  Maciej W. Rozycki  <macro@mips.com>
28
29         * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
30
31 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
32
33         * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
34         (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
35         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
36         (store_regs_user_thread, store_regs_kernel_thread): Use
37         get_regcache_arch or get_frame_arch to get at the current architecture
38         by regcache or by frame, respectively.
39
40 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
41
42         * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
43         (sh64_pseudo_register_read, sh64_pseudo_register_write)
44         (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
45         (sh64_print_register, sh64_media_print_registers_info)
46         (sh64_compact_print_registers_info, sh64_unwind_sp)
47         (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
48         (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
49         (sh64_frame_prev_register): Use FRAME to recognize current
50         architecture.
51
52 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
53
54         * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
55         (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
56         (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
57         current_gdbarch by gdbarch.
58         (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
59         (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
60         (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
61         (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
62         recognize current architecture.
63
64 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
65
66         * remote.c (init_remote_state, fetch_register_using_p)
67         (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
68         (store_register_using_P, store_registers_using_G)
69         (remote_store_registers): Use get_regcache_arch or get_frame_arch to
70         get at the current architecture by regcache or by frame, respectively.
71
72 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
73
74         * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
75         (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
76         (m68k_frame_prev_register, m68k_get_longjmp_target): Use
77         get_regcache_arch or get_frame_arch to get at the current architecture
78         by regcache or by frame, respectively.
79         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
80         * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
81         (store_register, old_store_inferior_registers, supply_gregset)
82         (supply_fpregset, fill_fpregset): Likewise.
83         * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
84         Replace current_gdbarch by gdbarch.
85
86 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
87
88         * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
89         (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
90         get_frame_arch to get at the current architecture by regcache or by
91         frame, respectively.
92
93 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
94
95         * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
96         Replace current_gdbarch by gdbarch.
97         * ia64-tdep.c (ia64_frame_prev_register
98         (ia64_sigtramp_frame_prev_register)
99         (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
100         get_frame_arch to get at the current architecture by regcache or by
101         frame, respectively.
102         * ia64-linux-nat.c (ia64_linux_fetch_register)
103         (ia64_linux_fetch_registers, ia64_linux_store_register)
104         (ia64_linux_store_registers): Likewise.
105
106 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
107
108         * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
109         current_gdbarch by gdbarch.
110         * hppa-linux-nat.c (fetch_register, store_register)
111         (hppa_linux_fetch_inferior_registers)
112         (hppa_linux_store_inferior_registers): Use get_regcache_arch or
113         get_frame_arch to get at the current architecture by regcache or by
114         frame, respectively.
115         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
116         (hppa_hpux_unwind_adjust_stub): Likewise.
117         * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
118         (hppa_hpux_fetch_inferior_registers)
119         (hppa_hpux_store_inferior_registers): Likewise.
120
121 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
122
123         * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
124         (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
125         (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
126         or get_frame_arch to get at the current architecture by regcache or by
127         frame, respectively.
128         * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
129         (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
130         (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
131         current_gdbarch by gdbarch.
132
133 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
134
135         * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
136         (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
137         (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
138         get at the current architecture by regcache or by·frame, respectively.
139         (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
140         gdbarch.
141
142 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
143
144         * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
145         Use get_regcache_arch or get_frame_arch to get at the current
146         architecture by regcache or by frame, respectively.
147         * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
148         * amd64-nat.c (amd64_supply_native_gregset)
149         (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
150
151 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
152
153         * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
154         gdbarch.
155         * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
156         (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
157         (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
158         get_frame_arch to get at the current architecture by regcache or by 
159         frame, respectively.
160         * alpha-nat.c (fetch_osf_core_registers): Likewise.
161
162 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
163
164         * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
165         (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
166         current_gdbarch by gdbarch.
167         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
168
169 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
170
171         * regcache.c (init_regcache_descr, register_type, read_pc_pid)
172         (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
173         * regcache.c (regcache_raw_write): Use get_regcache_arch or
174         get_frame_arch to get at the current architecture by regcache or by
175         frame, respectively.
176
177 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
178
179         * findvar.c (value_of_register, locate_var_value): Use
180         get_regcache_arch or get_frame_arch to get at the current architecture
181         by regcache or by frame, respectively.
182         * findvar.c (default_value_from_register, value_from_register): Replace
183         current_gdbarch by gdbarch.
184
185 2007-10-08  Pierre Muller  <muller@ics.u-strasbg.fr>
186
187         * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
188
189 2007-10-08  Pierre Muller  <muller@ics.u-strasbg.fr>
190
191         * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
192         Makefile.in (linux-fork.o): Add gdb_wait.h dependency. 
193
194 2007-10-05  Daniel Jacobowitz  <dan@codesourcery.com>
195
196         * remote.c (get_offsets): Only call free_symfile_segment_data if
197         data was allocated.
198
199 2007-10-03  Pierre Muller  <muller@ics.u-strasbg.fr>
200
201         * objc-exp.y: ARI fix: remove 4 PARAMS. 
202
203 2007-10-03  Daniel Jacobowitz  <dan@codesourcery.com>
204
205         * NEWS: Use uniform spacing.  Correct version number for GDB 6.7
206         news.  Mention XML support for M68K in GDB 6.7.
207
208 2007-10-03  Daniel Jacobowitz  <dan@codesourcery.com>
209
210         * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
211         bounds.
212         (init_vector_type): Use builtin_type_int32.
213
214 2007-10-02  Ulrich Weigand  <uweigand@de.ibm.com>
215
216         * s390-tdep.c (s390_regset_from_core_section): Allow excess section
217         size to enable bi-arch generate-core-file support.
218
219 2007-10-02  Markus Deuling  <deuling@de.ibm.com>
220
221         * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
222
223 2007-10-02  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
224
225         * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
226         signal handler.
227         * tui/tui-win.c (tui_initialize_win): New function for
228         initializing tui's SIGWINCH signal handler.
229         * tui/tui-win.h (tui_initialize_win): Declare.
230
231 2007-10-02  Ulrich Weigand  <uweigand@de.ibm.com>
232
233         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
234         pointer to uintptr_t before casting to CORE_ADDR.
235
236 2007-10-02  Markus Deuling  <deuling@de.ibm.com>
237
238         * linux-nat.c (PTRACE_GETSIGINFO): Add define.
239
240 2007-10-02  Mark Mitchell  <mark@codesourcery.com>
241
242         * mingw-hdep.c (gdb_select): Stop helper threads before returning.
243         * ser-mingw.c (enum select_thread_state): New type.
244         (struct ser_console_state): Add have_started and thread_state.
245         (select_thread_wait): New function.
246         (thread_fn_type): New type.
247         (create_select_thread): New function.
248         (destroy_select_thread): Likewise.
249         (start_select_thread): Likewise.
250         (stop_select_thread): Likewise.
251         (console_select_thread): Use new functions.
252         (pipe_select_thread): Likewise.
253         (file_select_thread): Likewise.
254         (ser_console_wait_handle): Likewise.
255         (ser_console_done_wait_handle): Likewise.
256         (ser_console_close): Likewise.
257         (free_pipe_state): Likewise.
258         (pipe_wait_handle): Likewise.
259         (pipe_done_wait_handle): Likewise.
260         (struct net_windows_state): Derive from ser_console_state.
261         (net_windows_select_thread): Use new functions.
262         (net_windows_wait_handle): Likewise.
263         (net_windows_done_wait_handle): Likewise.
264         (net_windows_close): Likewise.
265
266 2007-10-02  Daniel Jacobowitz  <dan@codesourcery.com>
267
268         * inflow.c (terminal_ours_1): Remove useless line.
269
270 2007-10-02  Daniel Jacobowitz  <dan@codesourcery.com>
271
272         * mips-tdep.c (mips_read_fp_register_double): Correct check for
273         odd FP registers.
274         (mips_print_fp_register): Correct check for even FP registers.
275         (mips_virtual_frame_pointer): New function.
276         (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
277
278 2007-09-30  Mike Frysinger  <vapier@gentoo.org>
279
280         * value.h (lookup_only_internalvar): New prototype.
281         (create_internalvar): Likewise.
282         * value.c (lookup_only_internalvar): New function.
283         (create_internalvar): Likewise.
284         (lookup_internalvar): Use new lookup_only_internalvar and
285         create_internalvar functions.
286         * parse.c (write_dollar_variable): Look up $ symbols in internal
287         table first rather than last.
288
289 2007-09-30  Daniel Jacobowitz  <dan@codesourcery.com>
290
291         * linux-nat.c (linux_nat_new_thread): New variable.
292         (linux_child_follow_fork): Set inferior_ptid to include LWP ID.  Use
293         linux_nat_switch_fork.
294         (lwp_list): Make public.
295         (add_lwp): Call linux_nat_new_thread.
296         (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
297         the new thread.
298         (resume_callback): Clear lp->siginfo.  Remove unused variable.
299         (linux_nat_resume): Assert that the LWP list is already initialized.
300         Clear lp->siginfo.
301         (save_siginfo): New.
302         (stop_wait_callback, linux_nat_wait): Call it.
303         (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
304         * linux-nat.h (struct lwp_info): Add siginfo.
305         (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
306         (ALL_LWPS): Define.
307
308         * amd64-linux-nat.c (amd64_linux_dr): New.
309         (amd64_linux_dr_get): Take a PTID argument.  Correct typo.
310         (amd64_linux_dr_set): Take a PTID argument.
311         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
312         (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
313         (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
314         (amd64_linux_new_thread): New.
315         (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
316         * i386-linux-nat.c (i386_linux_dr): New.
317         (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
318         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
319         (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
320         (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
321         (i386_linux_new_thread): New.
322         (i386_linux_resume): Remove unnecessary PID check.
323         (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
324         * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
325         (fetch_debug_register, fetch_debug_register_pair): Delete.
326         (debug_registers): New.
327         (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
328         ALL_LWPS and debug_registers.
329         (ia64_linux_new_thread): New.
330         (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
331         (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
332         * ppc-linux-nat.c (last_stopped_data_address): Delete.
333         (saved_dabr_value): New.
334         (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
335         ALL_LWPS.
336         (ppc_linux_new_thread): New.
337         (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
338         (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
339         (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
340         * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
341         after reading it.
342         (s390_fix_watch_points): Take a PTID argument.
343         (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
344         (_initialize_s390_nat): Call linux_nat_set_new_thread.
345
346 2007-09-30  Daniel Jacobowitz  <dan@codesourcery.com>
347             Jeff Johnston  <jjohnstn@redhat.com>
348
349         * breakpoint.c (watchpoints_triggered): New.
350         (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
351         Check watchpoint_triggered instead.  Combine handling for software
352         and hardware watchpoints.  Do not use target_stopped_data_address
353         here.  Always check a watchpoint if its scope breakpoint triggers.
354         Do not stop for thread or overlay events.  Improve check for
355         triggered watchpoints without a value change.
356         (watch_command_1): Insert the scope breakpoint first.  Link the
357         scope breakpoint to the watchpoint.
358         * breakpoint.h (enum watchpoint_triggered): New.
359         (struct breakpoint): Add watchpoint_triggered.
360         (bpstat_stop_status): Update prototype.
361         (watchpoints_triggered): Declare.
362         * infrun.c (enum infwait_status): Add infwait_step_watch_state.
363         (stepped_after_stopped_by_watchpoint): Delete.
364         (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
365         local.  Handle infwait_step_watch_state.  Update calls to
366         bpstat_stop_status.  Use watchpoints_triggered to check
367         watchpoints.
368         * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
369         (remote_stopped_data_address): Do not check it.
370
371 2007-09-29  Daniel Jacobowitz  <dan@codesourcery.com>
372
373         * configure.ac: Add $LIBINTL when testing libbfd.
374         * configure: Regenerated.
375
376 2007-09-28  Vladimir Prus  <vladimir@codesourcery.com>
377
378         * NEW: Mention pending breakpoint changes and
379         support for breakpoints at multiple locations.
380         
381 2007-09-27  Daniel Jacobowitz  <dan@codesourcery.com>
382
383         * arm-linux-tdep.c (arm_linux_software_single_step): New.
384         (arm_linux_init_abi): Use it.
385         * arm-tdep.c (arm_get_next_pc): Make global.  Handle all-ones
386         condition correctly.
387         * arm-tdep.h (arm_get_next_pc): Declare.
388         * Makefile.in (arm-linux-tdep.o): Update.
389
390 2007-09-26  Vladimir Prus  <vladimir@codesourcery.com>
391
392         * varobj.c (install_new_value): Don't
393         call value_get_print_value when a value is
394         lazy.  Update the print_value member in a
395         single place.
396
397 2007-09-26  Vladimir Prus  <vladimir@codesourcery.com>
398
399         * breakpoint.c (create_breakpoint): Set
400         condition on each location, not on the first
401         location of breakpoint.
402         
403 2007-09-26  Jim Blandy  <jimb@codesourcery.com>
404
405         * remote.c (getpkt_sane): Fix error message.  No animals were
406         harmed in the making of this debugger.
407
408 2007-09-26  Pierre Muller  <muller@ics.u-strasbg.fr>
409
410         * p-typeprint.c: Fix 11 ARI reported problems.
411         (pascal_print_type): Fix 4 operator at end of line.
412         (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros 
413         using strncmp function.
414         (pascal_type_print_base): Fix 2 operator at end of line.
415         (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros 
416         using strncmp function.
417
418
419 2007-09-26  Pierre Muller  <muller@ics.u-strasbg.fr>
420
421         * Fix PR pascal/2231
422         dwarf2read.c (read_subroutine_type): 
423         All pascal functions are prototyped. 
424
425 2007-09-26  Pierre Muller  <muller@ics.u-strasbg.fr>
426
427         * Fix PR pascal/2283
428         p-valprint.c (pascal_val_print): correct current language check.
429         Also print array of char as strings.
430
431
432 2007-09-26  David Ung  <davidu@mips.com>
433             Maciej W. Rozycki  <macro@mips.com>
434
435         * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
436
437 2007-09-25  Pierre Muller  <muller@ics.u-strasbg.fr>
438
439         * p-exp.y: Fix 12 ARI reported problems.
440         (name_not_typename): Fix 2 operator at end of line issues.
441         (yylex): Fix 3 operator at end of line issues.
442         Replace 7 DEPRECATED_STREQ macros using strcmp function.
443
444 2007-09-25  David Ung  <davidu@mips.com>
445             Maciej W. Rozycki  <macro@mips.com>
446
447         * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
448         rules return composite types in registers as appropriate.
449
450 2007-09-24  Jim Blandy  <jimb@codesourcery.com>
451
452         * symfile.h (struct symfile_segment_data): Doc fixes.
453         * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
454         Assert that we were passed some loaded segment addresses,
455         and that sections' segment numbers are valid.
456         Simplify offset calculation.
457         * remote.c (get_offsets): Clarify selection of relocate-by-segment
458         strategy, and set num_segments correctly.  Delete redundant
459         assignments to do_sections.
460
461 2007-09-24  Daniel Jacobowitz  <dan@codesourcery.com>
462
463         * frame.c (get_prev_frame_1): Also check for PC in the same register.
464
465 2007-09-24  Vladimir Prus  <vladimir@codesourcery.com>
466         
467         * breakpoint.c (remove_sal): New.
468         (expand_line_sal_maybe): New.
469         (create_breakpoints): Call expand_line_sal_maybe.
470         (clear_command): Add comment.
471         (breakpoint_re_set_one): Call expand_line_sal_maybe.
472         * linespec.c (decode_indirect): Set explicit_pc to 1.
473         (decode_all_digits): Set explicit_line to 1.
474         (append_expanded_sal): New.
475         (expand_line_sal): New.
476         * linespec.h (expand_line_sal): Declare.
477         * symtab.c (init_sal): Initialize explicit_pc 
478         and explicit_line.
479         * symtab.h (struct symtab_and_line): New fields
480         explicit_pc and explicit_line.  
481
482 2007-09-23  Daniel Jacobowitz  <dan@codesourcery.com>
483
484         * infcall.c (call_function_by_hand): Handle language-specific
485         pass and return by reference.
486
487         * cp-abi.c (cp_pass_by_reference): New.
488         * cp-abi.h (cp_pass_by_reference): Declare.
489         (struct cp_abi_ops): Add pass_by_reference.
490         * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
491         (init_gnuv3_ops): Set pass_by_reference.
492
493         * language.c (language_pass_by_reference): New.
494         (default_pass_by_reference): New.
495         (unknown_language_defn, auto_language_defn, local_language_defn): Add
496         default_pass_by_reference.
497         * langauge.h (struct language_defn): Add la_pass_by_reference.
498         (language_pass_by_reference, default_pass_by_reference): Declare.
499         * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
500         * c-lang.c (c_language_defn, asm_language_defn)
501         (minimal_language_defn): Likewise.
502         (cplus_language_defn): Add cp_pass_by_reference.
503         * f-lang.c (f_language_defn): Add default_pass_by_reference.
504         * jv-lang.c (java_language_defn): Likewise.
505         * m2-lang.c (m2_language_defn): Likewise.
506         * objc-lang.c (objc_language_defn): Likewise.
507         * p-lang.c (pascal_language_defn): Likewise.
508         * scm-lang.c (scm_language_defn): Likewise
509
510 2007-09-23  Vladimir Prus  <vladimir@codesourcery.com>
511
512         Allow a code breakpoint to have several locations
513         associated with it.
514         * breakpoint.h (enum enable_state): Remove the
515         bp_shlib_disabled enumerator. 
516         (struct bp_location): New members shlib_disabled,
517         global_next, enabled and function_name.
518         Rename pending to condition_not_parsed.
519
520         * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
521         (ALL_BP_LOCATIONS_SAFE): Likewise.
522         (breakpoint_enabled): Don't check for pending.
523         (condition_command): Free and update all locations of
524         a breakpoint.
525         (insert_bp_location): Adjust.
526         (software_breakpoint_inserted_here_p): Don't care
527         if breakpoint is enabled, as soon as it's inserted.
528         (print_it_typical): Print bpstat's location, not
529         bpstat's breakpoint's location.
530         (bpstat_stop_status): Iterate over all locations, not
531         all breakpoints.
532         (print_breakpoint_location): New.
533         (print_one_breakpoint): Renamed to
534         (print_one_breakpoint_location): ...this. Take
535         parameters to describe which location is being
536         printed. Modify code to properly print header
537         for several locations and individual locations.
538         (print_one_breakpoint): Print all locations.
539         (breakpoint_has_pc): New.
540         (describe_other_breakpoints): Use the above.
541         (check_duplicates): Renamed to...
542         (check_duplicates_for): .. this.
543         (check_duplicates): Use check_duplicates_for.
544         (allocate_bp_location): Adjust.
545         (set_raw_breakpoint_without_location): New,
546         extracted from set_raw_breakpoint.
547         (set_breakpoint_location_function): New.
548         (set_raw_breakpoint): Use 
549         set_raw_breakpoint_without_location.
550         (make_breakpoint_permanent): Mark all locations
551         as inserted.
552         (disable_breakpoints_in_shlibs): Iterate over
553         locations.
554         (disable_breakpoints_in_unloaded_shlib): Likewise.
555         (re_enable_breakpoints_in_shlibs): Likewise.
556         (mention): Say "pending" when breakpoint has
557         zero locations.  If breakpoint has more than one
558         location, say so.
559         (add_location_to_breakpoint): New.
560         (create_breakpoint): Accept symtabs_and_lines, not
561         symtab_and_line. Pass extra sals to 
562         add_location_to_breakpoint.
563         (create_breakpoints): Pass symtabs_and_lines to
564         create_breakpoints.
565         (break_command_1): Make pending breakpoints
566         have zero locations.
567         (do_captured_breakpoint): Remove wrong allocation.
568         (clear_command): Iterate over all locations.
569         (unlink_locations_from_global_list): Renamed
570         from unlink_location_from_global_list. Remove
571         all locations.
572         (delete_breakpoint): Remove all locations.
573         Iterate over all locations when deciding which
574         other location to re-enable.
575         (all_locations_are_pending): New.
576         (update_breakpoint_locations): Renamed from
577         update_breakpoint_location. Try to match old
578         and new locations using names of containing
579         functions.
580         (breakpoint_re_set_one): Adjust.
581         (find_location_by_number): New.
582         (disable_command): Allow disabling individual location.
583         (enable_command): Allow enabling individual location.
584         * breakpoint.c: Adjust all uses of breakpoint's
585         enable state to for bp_shlib_disabled change.
586         
587 2007-09-22  Vladimir Prus  <vladimir@codesourcery.com>
588
589         * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
590         (resolve_pending_breakpoint): Remove.
591         (re_enable_breakpoints_in_shlibs): Remove.
592         (unlink_locations_from_global_list): New.
593         (update_breakpoint_locations): New.
594         (breakpoint_re_set_one): Don't bail out on pending breakpoints.
595         Use parse_condition and update_breakpoint_location to
596         reset breakpoint.  Ignore 'symbol not found' error from
597         decode_line_1.
598         (breakpoint_re_set): Don't emit newline before the
599         reason why breakpoint is not reset.
600         (do_enable_breakpoint): Don't specially process pending
601         breakpoints.
602         (free_bp_location): New.
603         (break_command_1): For pending breakpoints, initialize
604         all fields of a sal with zeroes.
605         * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
606         * infcmd.c (post_create_inferior): Don't call
607         re_enable_breakpoints_in_shlibs.
608         * infrun.c (handle_inferior_event): Likewise.
609         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
610         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
611         * win32-nat.c (get_win32_debug_event): Likewise.
612         
613 2007-09-22  Vladimir Prus  <vladimir@codesourcery.com>
614
615         * breakpoint.c (create_breakpoint): Split from
616         create_breakpoints, implementing most of its logic.
617         Take just a single sal, single address string and
618         single condition.  Do not take parsed condition at
619         all.
620         (create_breakpoints): Just call create_breakpoint
621         for each sal.
622         (find_condition_and_thread): New.
623         (break_command_1): Use find_condition_and_thread.
624         Do not keep parsed conditions.
625         (do_captured_breakpoint): Don't convert
626         condition string to struct expression.
627         
628 2007-09-22  Vladimir Prus  <vladimir@codesourcery.com>
629
630         * breakpoint.h (struct breakpoint): Move the cond 
631         field to...
632         (struct bp_location): Here.
633         * breakpoint.c (condition_command, bpstat_stop_status)
634         (print_one_breakpoint, allocate_bp_location)
635         (solib_load_unload_1, create_fork_vfork_event_catchpoint)
636         (create_exec_event_catchpoint, create_breakpoints)
637         (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
638         (create_ada_exception_breakpoint, set_breakpoint_sal)
639         (delete_breakpoint, breakpoint_re_set_one): Adjust.
640         * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
641         
642 2007-09-22  Vladimir Prus  <vladimir@codesourcery.com>
643
644         Associate bp_stat with bp_location, not breakpoint.
645         * breakpoint.h (breakpoint_at): Change type
646         to bp_location*.
647         * breakpoint.c (bpstat_alloc): Take bp_location,
648         not breakpoint.
649         (bpstat_find_breakpoint): Look at bpstat's location's
650         owner, not at bpstat->breakpoint_at.
651         (bpstat_find_step_resume_breakpoint): Likewise.
652         (bpstat_num): Likewise.
653         (print_it_typical): Likewise.
654         (print_bp_stop_message): Likewise.
655         (watchpoint_check): Likewise.
656         (bpstat_what): Likewise.
657         (bpstat_get_triggered_catchpoints): Likewise.
658         (breakpoint_auto_delete): Likewise.
659         (delete_breakpoint): Likewise.  
660         (bpstat_stop_status): Pass location, not breakpoint,
661         to bpstat_alloc.  Look at bpstat's location's
662         owner, not at bpstat->breakpoint_at.
663
664 2007-09-21  Jim Blandy  <jimb@codesourcery.com>
665
666         * macrotab.h (new_macro_table): Document that removing information
667         from an obstack/bcache-managed macro table leaks memory.
668         * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
669         that data is never freed in obstack/bcache-managed macro tables,
670         just leak the storage.
671         (macro_undef): If we're undefining a macro at exactly the same
672         source location that we defined it, simply remove the definition
673         altogether.
674
675 2007-09-21  Joel Brobecker  <brobecker@adacore.com>
676
677         * symfile.h (struct sym_fns): Add new field sym_read_linetable.
678         * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
679         Adjust the struct sym_fns object accordingly by setting
680         the new field to NULL.
681         * xcoffread.c (aix_process_linenos): Make static.
682         (xcoff_sym_fns): Set new field to aix_process_linenos.
683         * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
684         by call to new the new sym_fns sym_read_linetable function.
685         * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
686         * config/rs6000/tm-rs6000.h: Delete.
687
688 2007-09-21  David Ung  <davidu@mips.com>
689             Maciej W. Rozycki  <macro@mips.com>
690
691         * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
692         rules do not treat composite types specially.
693
694 2007-09-20  Maciej W. Rozycki  <macro@mips.com>
695
696         * mips-tdep.c (mips32_in_function_epilogue_p): New function.
697         (mips16_in_function_epilogue_p): Likewise.
698         (mips_in_function_epilogue_p): Likewise.
699         (mips_gdbarch_init): Register mips_in_function_epilogue_p().
700
701 2007-09-19  Joel Brobecker  <brobecker@adacore.com>
702
703         * configure.ac: Add check for "etext".
704         * configure, config.in: Regenerate.
705         * maint.c (TEXTEND): Only define if either _etext or etext
706         are available.
707         Disable the profiling functionality if TEXTEND is not defined.
708
709 2007-09-19  Daniel Jacobowitz  <dan@codesourcery.com>
710
711         * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
712         address register.  Correct the call to frame_id_build.
713         (mips_stub_frame_sniffer): Use the stub unwinder when the PC
714         is invalid.
715
716 2007-09-18  Joel Brobecker  <brobecker@adacore.com>
717
718         * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
719         the linetable past the function end.
720
721 2007-09-18  James E. Wilson  <wilson@specifix.com>
722
723         * MAINTAINERS: Update my email address.
724
725 2007-09-18  Jerome Guitton  <guitton@adacore.com>
726
727         * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
728         (inf_ttrace_delete_dying_threads_callback): New function.
729         (inf_ttrace_resume): After resuming the execution, iterate over
730         the dying threads to delete them for the thread list.
731         (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
732         mark the corresponding thread as dying instead of removing it
733         from the thread list.
734         (inf_ttrace_thread_alive): return 0 for dying threads.
735
736 2007-09-17  Joel Brobecker  <brobecker@adacore.com>
737
738         * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
739         that return_frame is not null.
740
741 2007-09-17  Joel Brobecker  <brobecker@adacore.com>
742
743         * solib-svr4.c: Add include of "auxv.h".
744         (enable_break): Use the AT_BASE auxiliary entry if available.
745         * Makefile.in (solib-svr4.o): Update dependencies.
746
747 2007-09-17  Joel Brobecker  <brobecker@adacore.com>
748
749         * NEWS: Create a new section for the next release branch.
750         Rename the section of the current branch, now that it has
751         been cut.
752
753 2007-09-17  Jerome Guitton  <guitton@adacore.com>
754
755         * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
756         * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
757
758 2007-09-16  Vladimir Prus  <vladimir@codesourcery.com>
759
760         * mi/mi-cmds.c (mi_cmds): Register -list-features.
761         * mi/mi-cmds.h (mi_cmd_list_features): New.
762         * mi/mi-main.c (mi_cmd_list_features): New.
763         
764 2007-09-11  Joel Brobecker  <brobecker@adacore.com>
765
766         GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
767         * version.in: Bump version to 6.7.50-20070911-cvs.
768
769 2007-09-10  Daniel Jacobowitz  <dan@codesourcery.com>
770
771         * thread.c (free_thread): Do not delete the step resume breakpoint
772         right away.
773
774 2007-09-10  Daniel Jacobowitz  <dan@codesourcery.com>
775
776         * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
777         * corelow.c (core_read_description): New.
778         (init_core_ops): Set to_read_description.
779         * gdbarch.sh: Add gdbarch_core_read_description.
780         * mips-linux-tdep.c (mips_linux_core_read_description): New.
781         (mips_linux_init_abi): Call set_gdbarch_core_read_description.
782         * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
783         (mips_register_g_packet_guesses): Use them.
784         (_initialize_mips_tdep): Initialize them.
785         * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
786         * gdbarch.h, gdbarch.c: Regenerated.
787
788 2007-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
789
790         * infrun.c (stepping_past_breakpoint): New global variable.
791         (stepping_past_breakpoint_ptid): Likewise.
792         (prepare_to_proceed): Add STEP parameter.  Do not check for Ctrl-C.
793         Only switch threads if we need to single-step over a breakpoint hit
794         in the previously selected thread.  If stepping, remember previous
795         thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID].  Call
796         switch_to_thread instead of copying its contents.
797         (proceed): Pass STEP to prepare_to_proceed.  Always set ONEPROC if
798         prepare_to_proceed returns true.
799         (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
800         (context_switch): Call switch_to_thread.
801         (handle_inferior_event): Switch back to previous thread if requested
802         in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
803         * gdbthread.h (switch_to_thread): Add prototype.
804         * thread.c (switch_to_thread): Make global.
805
806 2007-09-07  Pierre Muller  <muller@ics.u-strasbg.fr>
807
808          * p-valprint.c: Fix 7 ARI reported problems.
809          (pascal_val_print): Fix one operator at end of line issue.
810          Use paddress function to remove use of
811          deprecated_print_address_numeric function (2 times).
812          Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
813          (pascal_value_print): Fix 3 operator at end of line issues.
814
815 2007-09-07  Daniel Jacobowitz  <dan@codesourcery.com>
816
817         PR gdb/2103
818         * arm-tdep.c (arm_in_call_stub): Delete.
819         (arm_skip_stub): Handle from_arm and from_thumb stubs.
820
821 2007-09-06  Daniel Jacobowitz  <dan@codesourcery.com>
822
823         * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
824         types.
825
826 2007-09-04  Daniel Jacobowitz  <dan@codesourcery.com>
827             Jim Blandy  <jimb@codesourcery.com>
828
829         * NEWS: Update description of string changes.  Mention print/s.
830         * c-valprint.c (textual_element_type): New.
831         (c_val_print): Use it.  Do not skip address printing for pointers
832         with a string format.
833         (c_value_print): Doc update.
834         * dwarf2read.c (read_array_type): Use make_vector_type.
835         * gdbtypes.c (make_vector_type): New.
836         (init_vector_type): Use it.
837         (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
838         (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
839         * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
840         (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
841         (make_vector_type): New.
842         * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
843         Call the language print routine for string format.
844         (print_scalar_formatted): Call val_print for string format.  Handle
845         unsigned original types for char format.
846         (validate_format): Do not reject string format.
847         * stabsread.c (read_type): Use make_vector_type.
848         * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
849
850 2007-09-04  Michael Snyder  <msnyder@access-company.com>
851
852         * expprint.c (print_subexp_standard): Check strchr for null.
853         * Makefile.in (expprint.o): Depend on gdb_assert.h.
854
855         * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
856
857         * stabsread.c (patch_block_status): Guard against null.
858         * Makefile.in (stabsread.o): Depend on gdb_assert.h.
859
860 2007-09-04  Daniel Jacobowitz  <dan@codesourcery.com>
861
862         * printcmd.c (printf_command): Handle ptr_arg.  Correct typo
863         in internal error message.
864
865 2007-09-04  Pedro Alves  <pedro_alves@portugalmail.pt>
866             Daniel Jacobowitz  <dan@codesourcery.com>
867
868         * infcmd.c (post_create_inferior): Update comment.
869         (run_command_1): Always call post_create_inferior with 0 as
870         from_tty.
871
872         * i386-cygwin-tdep.h: New.
873         * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
874         (win32_xfer_shared_library): Make it extern.
875
876         * win32-nat.c: Include gdb_obstack.h and xml-support.h and
877         i386-cygwin-tdep.h.
878         (win32_so_ops): Delete.
879         (get_relocated_section_addrs): Delete.
880         (solib_symbols_add): Delete.
881         (register_loaded_dll): Delete.
882         (win32_make_so): New.
883         (handle_load_dll): Use win32_make_so.
884         (win32_free_so): Free the passed in so.
885         (win32_relocate_section_addresses): Delete.
886         (win32_solib_create_inferior_hook): Delete.
887         (handle_unload_dll): Don't add PE offset here.  Free so with
888         win32_free_so instead of free_so.
889         (win32_special_symbol_handling): Delete.
890         (get_win32_debug_event): Remove unneeded calls.  Set state to
891         TARGET_WAITKIND_LOADED on a dll unload.
892         (do_initial_win32_stuff): Clear cygwin_load_start and
893         cygwin_load_end.
894         (map_code_section_args): Delete.
895         (dll_code_sections_add): Delete.
896         (core_section_load_dll_symbols): Delete.
897         (win32_xfer_shared_libraries): New.
898         (win32_current_sos): Delete.
899         (win32_xfer_partial): New.
900         (open_symbol_file_object): Delete.
901         (in_dynsym_resolve_code): Delete.
902         (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
903         of win32_ops.  Remove win32_so_ops settings.  Don't set
904         current_target_so_ops here.
905
906         * Makefile.in (i386_cygwin_tdep_h): New variable.
907         (i386-cygwin-tdep.o): Update dependencies.
908         (win32-nat.o): Update dependencies.
909
910 2007-09-04  Pedro Alves  <pedro_alves@portugalmail.pt>
911             Daniel Jacobowitz  <dan@codesourcery.com>
912
913         * gdbarch.sh (core_xfer_shared_libraries): New.
914
915         * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
916
917         * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
918
919         * xml-support.c (gdb_xml_parse): Debug output tweaks.
920         (xml_escape_text): New.
921         * xml-support.h (xml_escape_text): Declare.
922
923         * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
924         * config/i386/cygwin.mt (TDEPFILES): ... here.
925
926         * win32-nat.c: (fetch_elf_core_registers): Delete.
927         (win32_elf_core_fn): Delete.
928         (_initialize_core_win32): Delete.
929
930         * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
931         "xml-support.h" and "gdbcore.h".
932         (i386_win32_gregset_reg_offset): New.
933         (I386_WIN32_SIZEOF_GREGSET): New.
934         (i386_win32_regset_from_core_section): New.
935         (win32_xfer_shared_library): New.
936         (struct cpms_data): New.
937         (core_process_module_section): New.
938         (win32_core_xfer_shared_libraries): New.
939         (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
940         gregset_num_regs, sizeof_gregset members of tdep.  Register
941         regset_from_core_section and core_xfer_shared_libraries callbacks.
942
943         * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
944         * gdbarch.h, gdbarch.c: Regenerate.
945
946 2007-09-03  Daniel Jacobowitz  <dan@codesourcery.com>
947
948         * corelow.c (core_xfer_partial): Pass writebuf to
949         deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
950
951 2007-09-03  Pedro Alves  <pedro_alves@portugalmail.pt>
952
953         * arm-tdep.h (arm_skip_stub): Declare.
954         * arm-wince-tdep.c: Don't include "solib-svr4.h".  Include
955         "gdbcore.h".
956         (arm_pe_skip_trampoline_code): New function.
957         (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
958         gdbarch_skip_trampoline_code callback.
959         * Makefile.in (arm-wince-tdep.o): Update dependencies.
960
961 2007-09-03  Daniel Jacobowitz  <dan@codesourcery.com>
962
963         * MAINTAINERS: Move Fred Fish to Past Maintainers.
964
965 2007-09-03  Daniel Jacobowitz  <dan@codesourcery.com>
966
967         * configure.ac: Add --with-expat.
968         * configure: Regenerated.
969
970 2007-09-03  Andreas Schwab  <schwab@suse.de>
971
972         * configure.ac: Accept --with-system-readline.
973         (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
974         * configure: Regenerate.
975         * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
976         substituted values.
977         (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
978
979 2007-09-03  Maxim Grigoriev  <maxim2405@gmail.com>
980             Daniel Jacobowitz  <dan@codesourcery.com>
981
982         * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
983
984 2007-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
985
986         * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
987
988 2007-09-02  Daniel Jacobowitz  <dan@codesourcery.com>
989
990         * top.c (print_gdb_version): Update for GPL version 3.
991
992 2007-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
993
994         * NEWS: Mention the build-id .debug files verification.
995
996 2007-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
997
998         * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
999
1000 2007-09-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
1001
1002         * Makefile.in (symfile.o): Update dependencies.
1003         * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
1004         DEBUGFILE variable.  FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
1005         (struct build_id): New structure.
1006         (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
1007         (find_separate_debug_file): New variable BUILD_ID.
1008         Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
1009
1010 2007-08-31  Vladimir Prus  <vladimir@codesourcery.com>
1011
1012         * varobj.c (struct varobj): Fix comment
1013         for the type member not to lie when it can be 
1014         NULL.
1015         
1016 2007-08-31  Vladimir Prus  <vladimir@codesourcery.com>
1017
1018         Implement -var-info-path-expression.
1019
1020         * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
1021         Declare.
1022         * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
1023         * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
1024         * varobj.c (struct varobj): New field 'path_expr'.
1025         (c_path_expr_of_child, cplus_path_expr_of_child)
1026         (java_path_expr_of_child): New.
1027         (struct language_specific): New field path_expr_of_child.
1028         (varobj_create): Initialize the path_expr field.
1029         (varobj_get_path_expr): New.
1030         (new_variable): Initialize the path_expr field.
1031         (free_variable): Free the path_expr field.
1032         (adjust_value_for_children_access): New parameter
1033         WAS_TYPE.
1034         (c_number_of_children): Adjust.
1035         (c_describe_child): New parameter CFULL_EXPRESSION.
1036         Compute full expression.
1037         (c_value_of_child, c_type_of_child): Adjust.
1038         (cplus_number_of_children): Adjust.
1039         (cplus_describe_child): New parameter CFULL_EXPRESSION.
1040         Compute full expression.
1041         (cplus_name_of_child, cplus_value_of_child)
1042         (cplus_type_of_child): Adjust.
1043         * varobj.h (varobj_get_path_expr): Declare.
1044
1045 2007-08-31  Vladimir Prus  <vladimir@codesourcery.com>
1046
1047         * mi/mi-cmd-var.c (print_varobj): If a varobj
1048         type is NULL, don't try to print it.
1049         
1050 2007-08-30  Alan Modra  <amodra@bigpond.net.au>
1051
1052         * ppc-linux-nat.c (right_fill_reg): Delete.
1053         (supply_gregset): Use ppc_supply_gregset.
1054         (supply_fpregset): Use ppc_supply_fpregset.
1055         (fill_gregset): Use ppc_collect_gregset.
1056         (fill_fpregset): Use ppc_collect_fpregset.
1057         * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
1058         (right_supply_register, ppc_linux_supply_gregset): Delete.
1059         (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
1060         (ppc_linux_supply_fpregset): Delete.
1061         (ppc_linux_collect_gregset): New function.
1062         (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
1063         (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
1064         ppc_linux_supply_gregset, and ppc_collect_gregset.
1065         (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
1066         (ppc_linux_gregset, ppc_linux_fpregset): New functions.
1067         (ppc_linux_regset_from_core_section): Update.
1068         * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
1069         (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
1070         (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
1071         * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
1072         (ppcobsd_collect_gregset): Likewise.
1073         (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
1074         * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
1075         * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
1076         * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
1077         (rs6000_aix64_reg_offsets): Likewise.
1078         (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
1079         ppc_floating_point_unit_p.
1080         (rs6000_aix_collect_regset): Similarly.
1081         * rs6000-tdep.c (ppc_supply_reg): Add regsize param.  Adjust offset
1082         when regsize is larger than regcache register size.
1083         (ppc_collect_reg): Similarly zero pad when regsize is larger than
1084         regcache register size.
1085         (ppc_greg_offset): New function, split out from..
1086         (ppc_supply_gregset): ..here.  Separate code handling all regs from
1087         single reg case.  Correct xer offset.
1088         (ppc_fpreg_offset): New function, split out from..
1089         (ppc_supply_fpregset): ..here.  Separate code handling all regs from
1090         single reg case.
1091         (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
1092         (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
1093         a fp unit, instead return if no fp.
1094
1095 2007-08-29  Jim Blandy  <jimb@codesourcery.com>
1096
1097         * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
1098         this code has not been compiled for two years.
1099
1100 2007-08-29  Michael Snyder  <msnyder@access-company.com>
1101
1102         * event-top.c (gdb_readline2): Return after EOF.
1103
1104 2007-08-29  Joel Brobecker  <brobecker@adacore.com>
1105
1106         * symtab.c: Remove a function that has been commented out 3 years ago.
1107
1108 2007-08-29  Randolph Chung  <tausq@debian.org>
1109
1110         * hppa-tdep.c (hppa32_cannot_fetch_register)
1111         (hppa64_cannot_fetch_register): New functions.
1112         (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
1113         * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
1114
1115 2007-08-28  Michael Snyder  <msnyder@access-company.com>
1116
1117         * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to 
1118         check for null before calling check_typedef.
1119
1120         * NEWS: Mention Coverity bug fixes.
1121
1122 2007-08-27  Markus Deuling  <deuling@de.ibm.com>
1123
1124         * spu-tdep.c (spu_pointer_to_address): New function.
1125         (spu_integer_to_address): Likewise.
1126         (spu_gdbarch_init): Add spu_pointer_to_address and 
1127         spu_integer_to_address to gdbarch.
1128
1129 2007-08-26  Pedro Alves  <pedro_alves@portugalmail.pt>
1130
1131         * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
1132
1133 2007-08-23  Joel Brobecker  <brobecker@adacore.com>
1134
1135         * Makefile.in (copying.c): Use the top-level COPYING3 as the file
1136         that contains the GDB license.
1137         * copying.awk: Adjust to the GPLv3 wording.
1138         * copying.c: Regenerate.
1139
1140 2007-08-23  Joel Brobecker  <brobecker@adacore.com>
1141
1142         * copying.awk: Protoization, and i18n markup.
1143
1144 2007-08-23  Joel Brobecker  <brobecker@adacore.com>
1145
1146         * config/djgpp/djconfig.sh: Switch license to GPLv3.
1147         * copyright.sh: Likewise.
1148         * gdb-events.sh: Likewise.
1149         * gdb_gcore.sh: Likewise.
1150         * gdb_mbuild.sh: Likewise.
1151         * gdbarch.sh: Likewise.
1152         * observer.sh: Likewise.
1153         * features/feature_to_c.sh: Likewise.
1154         * regformats/regdat.sh: Likewise.
1155
1156 2007-08-23  Joel Brobecker  <brobecker@adacore.com>
1157
1158         Switch the license of all .c files to GPLv3.
1159         Switch the license of all .h files to GPLv3.
1160         Switch the license of all .cc files to GPLv3.
1161
1162 2007-08-23  Joel Brobecker  <brobecker@adacore.com>
1163
1164         * configure.ac: Switch license to GPLv3.
1165
1166 2007-08-22  Daniel Jacobowitz  <dan@codesourcery.com>
1167
1168         * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
1169         determine the file's FPU type.
1170
1171 2007-08-22  Daniel Jacobowitz  <dan@codesourcery.com>
1172
1173         * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
1174         (mips_n32n64_push_dummy_call): Always increment float_argreg along
1175         with argreg.  Use mips_n32n64_fp_arg_chunk_p.
1176
1177 2007-08-22  Daniel Jacobowitz  <dan@codesourcery.com>
1178
1179         * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
1180         Fix formatting.
1181         (elf_locate_base): Look for DT_MIPS_RLD_MAP first.  Expand comments.
1182         (elf_lookup_lib_symbol): Fix formatting.
1183
1184 2007-08-21  Michael Snyder  <msnyder@access-company.com>
1185
1186         * dbxread.c (read_dbx_symtab): Guard null deref.
1187         Break up long line.
1188
1189         * valops.c (find_overload_match): Guard against NULL.
1190
1191 2007-08-21  Daniel Jacobowitz  <dan@codesourcery.com>
1192
1193         * MAINTAINERS (Patch Champions): Remove self.
1194
1195 2007-08-21  Chris Smith  <chris.smith@st.com>
1196
1197         * cli/cli-script.c (read_command_lines): Call dont_repeat for each
1198         line.
1199
1200 2007-08-18  Michael Snyder  <msnyder@access-company.com>
1201
1202         * stabsread.c (dbx_lookup_type): Memory leak.
1203
1204         * event-loop.c (delete_async_signal_handler): Move pointer null
1205         test to before pointer dereference.
1206
1207         * ui-out.c (append_header_to_list): Possible cut and paste error.
1208
1209         * MAINTAINERS: white space tweak.
1210
1211 2007-08-17  Michael Snyder  <msnyder@access-company.com>
1212
1213         * stack.c (print_frame): Memory leak.
1214
1215         * completer.c (filename_completer): Avoid memory leak.
1216         Remove unnecessary nested block.
1217
1218         * c-exp.y (parse_number): Memory leak.
1219
1220         * completer.c (location_completer): Must free 'fn_list', except 
1221         in the one case where it is returned (as 'list').
1222
1223         * varobj.c (value_of_root): Memory leak.
1224
1225         * gdbtypes.h (virtual_base_list): Remove export decl.
1226         * gdbtypes.c (virtual_base_list): Make static.  Not called outside.
1227         (virtual_base_index): Memory leak.
1228         (virtual_base_index_skip_primaries): Ditto.
1229
1230 2007-08-17  Maxim Grigoriev  <maxim2405@gmail.com>
1231
1232         * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
1233         (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
1234         (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
1235         (xtensa_read_register): New function.
1236         (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
1237         (xtensa_insn_kind): New types.
1238         (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
1239         (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
1240         (xtensa_verify_config, xtensa_pseudo_register_read)
1241         (xtensa_pseudo_register_write, xtensa_extract_return_value)
1242         (xtensa_store_return_value)
1243         (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
1244         (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
1245         (xtensa_frame_this_id, xtensa_frame_prev_register)
1246         (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
1247         (call0_frame_cache, call0_frame_get_reg_at_entry)
1248         (call0_classify_opcode, call0_track_op)
1249         (call0_analyze_prologue, call0_frame_cache): New functions.
1250
1251 2007-08-17  Vladimir Prus  <vladimir@codesourcery.com>
1252
1253         * breakpoint.c (bpstat_free): New.
1254         (bpstat_clear): Use bpstat_free.
1255         (delete_breakpoint): Document why we cannot
1256         remove bpstats from stop_bpstat.
1257         * breakpoint.h (bpstat_free): Declare.
1258                 
1259 2007-08-16  Michael Snyder  <msnyder@access-company.com>
1260
1261         * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
1262
1263 2007-08-15  Paul Hilfinger  <hilfinger@adacore.com>
1264             Joel Brobecker  <brobecker@adacore.com>
1265
1266         * ada-lang.c (resolve_subexp): Correct arity of binary operators.
1267
1268 2007-08-15  Paul Hilfinger  <hilfinger@adacore.com>
1269             Joel Brobecker  <brobecker@adacore.com>
1270
1271         * ada-lang.c (possible_user_operator_p): Alternative fix to last
1272         checkin guarding against NULL.
1273
1274 2007-08-14  Michael Snyder  <msnyder@access-company.com>
1275
1276         * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
1277         tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
1278         tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
1279         go at beginning of new line.
1280
1281         * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
1282         tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
1283         tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
1284         tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
1285         tui-winsource.h, tui.c, tui.h: Function declarations and 
1286         definitions, wrap long lines.
1287
1288         * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
1289         tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
1290         Reformat block comments to GNU standard.
1291
1292         * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
1293         tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
1294         tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
1295         tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
1296         tui.c, tui.h: Comment reformatting to coding standard (capitals, 
1297         spaces after periods, etc).     
1298
1299         * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
1300         tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
1301         tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
1302         tui-winsource.h: Whitespace changes, fix pointer declarations
1303         to be consistant.
1304
1305 2007-08-14  Joel Brobecker  <brobecker@adacore.com>
1306             Michael Snyder  <msnyder@access-company.com>
1307
1308         * ada-lang.c (field_alignment): Guard against NULL.
1309
1310 2007-08-14  Joel Brobecker  <brobecker@adacore.com>
1311
1312         * MAINTAINERS (Global Maintainers): Add self.
1313
1314 2007-08-14  Michael Snyder  <msnyder@access-company.com>
1315
1316         * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
1317
1318         * ada-lang.c (possible_user_operator_p): Guard against NULL.
1319
1320         * varobj.c (cplus_describe_child): Guard against null.
1321         Use "NULL" instead of "0" to initialize pointers.
1322
1323 2007-08-14  Daniel Jacobowitz  <dan@codesourcery.com>
1324
1325         * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
1326         to match any gdbarch with matching OSABI.  Set default ABI and FPU
1327         after running the OSABI handler.
1328
1329 2007-08-14  Daniel Jacobowitz  <dan@codesourcery.com>
1330
1331         * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
1332         * config/i386/linux.mt (TDEPFILES): ...to here.
1333
1334 2007-08-14  Vladimir Prus  <vladimir@codesourcery.com>
1335
1336         * breakpoint.c (disable_breakpoints_in_shlibs): Remove
1337         the 'silent' parameter and code to implement that.
1338         * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
1339         prototype.
1340         * win32-nat.c: Adjust.
1341         * solib.c: Adjust.
1342         
1343 2007-08-14  Vladimir Prus  <vladimir@codesourcery.com>
1344
1345         * breakpoint.c (update_breakpoints_after_exec): Don't
1346         set address to zero.
1347
1348 2007-08-13  Michael Snyder  <msnyder@access-company.com>
1349
1350         * valops.c: Whitespace clean-up.
1351
1352         * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
1353
1354         * event-top.c (command_line_handler): Memory leak.
1355
1356         * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
1357         No need to make copy.
1358
1359         * source.c (find_source_lines): Require symtab 's'.
1360
1361 2007-08-11  Michael Snyder  <msnyder@access-company.com>
1362
1363         * completer.c: Spelling fix in comments.
1364
1365 2007-08-10  Michael Snyder  <msnyder@access-company.com>
1366
1367         * gdbtypes.c: Coding standard cleanup.
1368         * gdbtypes.c: Comment/whitespace cleanup.
1369
1370         * stabsread.c (read_huge_number): Attempt to compute value before
1371         values that it depends on.
1372
1373         * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
1374         (decode_objc): Use "NULL" instead of 0.
1375         (find_method): Ditto.
1376         (decode_all_digits): Ditto.
1377         (decode_dollar): Ditto.
1378
1379         * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
1380
1381         * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
1382
1383         * solib-svr4.c (enable_break): Don't free tmp_pathname until
1384         after closing bfd.
1385
1386         * completer.c: Comment/whitespace cleanup.
1387
1388 2007-08-10  Joel Brobecker  <brobecker@adacore.com>
1389
1390         * Makefile.in (i386nbsd-nat.o): Add missing dependency.
1391
1392 2007-08-10  Maxim Grigoriev  <maxim2405@gmail.com>
1393
1394         * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
1395         allocated file descriptors.
1396
1397 2007-08-10  Joel Brobecker  <brobecker@adacore.com>
1398
1399         * Makefile.in: Minor cleanup throughout; add some missing variables,
1400         add some missing rules, remove some rules that are no longer needed,
1401         and fix the dependencies in several rules.
1402
1403 2007-08-10  Ludovic Courtès  <ludo@gnu.org>
1404
1405         * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
1406         (scm_lang_h, scm_tags_h): New.
1407         (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
1408         (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
1409         * defs.h (enum language): Add `language_scm'.
1410
1411         * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
1412         opening.
1413
1414 2007-08-09  Ludovic Courtès  <ludo@gnu.org>
1415
1416         * MAINTAINERS (Write After Approval): Add myself.
1417
1418 2007-08-09  Michael Snyder  <msnyder@access-company.com>
1419
1420         * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
1421
1422 2007-08-09  Joel Brobecker  <brobecker@adacore.com>
1423
1424         * solib-som.c (som_relocate_section_addresses): Stop saving
1425         the $CODE$ section in the so_list structure.
1426
1427 2007-08-08  Maxim Grigoriev  <maxim2405@gmail.com>
1428
1429         * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
1430         (xtensa_register_group_t): Add entries for coprocessors.
1431         * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
1432         (xtensa_add_reggroups): Likewise.
1433         (xtensa_register_reggroup_p): Likewise.
1434         (xtensa_coprocessor_register_group): New function.
1435         (xtensa_cp): New.
1436
1437 2007-08-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
1438
1439         * serial.c (serial_open): Fix the OPEN parameter macro expansion.
1440
1441 2007-08-08  Michael Snyder  <msnyder@access-company.com>
1442
1443         * target.c (target_read_string): Guard against null.
1444
1445         * varobj.c (value_of_root): Move alloc after return to avoid leak.
1446
1447         * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
1448         (tui_set_layout_for_display_command): Mem leak.
1449
1450         * top.c (command_line_input): Memory leak.
1451
1452         * solib-svr4.c (open_symbol_file_object): Memory leak.
1453         (svr4_current_sos): Ditto.
1454         (enable_break): Ditto.
1455
1456         * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
1457
1458         * dwarf2read.c (add_partial_symbol): Memory leak.
1459
1460 2007-08-06  Michael Snyder  <msnyder@access-company.com>
1461
1462         * ada-lang.c (desc_bounds): Comparison of function address to NULL.
1463
1464 2007-08-05  Jim Blandy  <jimb@codesourcery.com>
1465
1466         * macroexp.c (init_buffer): Remove testing code that overrides the
1467         caller's length guess.
1468         (gather_arguments): Use a larger initial size, now that the vector
1469         growth code has been exercised.
1470
1471 2007-08-05  Pedro Alves  <pedro_alves@portugalmail.pt>
1472
1473         * solib-target.c (solib_target_relocate_section_addresses): Add
1474         orig_delta to addr_high.
1475
1476 2007-08-04  Michael Snyder  <msnyder@access-company.com>
1477
1478         * remote-fileio.c (remote_fileio_func_write): Memory leak.
1479
1480         * breakpoint.c (print_one_breakpoint): Off by one error.
1481
1482         * tracepoint.c (add_register): Off by one error.
1483         (stringify_collection_list): Free malloc buffer.
1484
1485 2007-08-03  Michael Snyder  <msnyder@access-company.com>
1486
1487         * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
1488         stop memory leak, straighten out cleanups.
1489
1490         * jv-lang.c (java_link_class_type): Guard against NULL.
1491
1492 2007-08-02  Michael Snyder  <msnyder@access-company.com>
1493
1494         * gdbtypes.c (create_set_type): Test should only be done within
1495         the preceeding if block.  Otherwise, variable is uninitialized.
1496
1497         * gdbtypes.c (check_typedef): Guard NULL.
1498
1499 2007-08-01  Michael Snyder  <msnyder@access-company.com>
1500
1501         * cli/cli-decode.c (lookup_cmd): Check for null earlier, to 
1502         avoid dereference in lookup_cmd_1.
1503
1504         * tui/tui-data.c (tui_alloc_content): Move assign out of if, 
1505         clean up long lines.
1506         (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
1507         (tui_alloc_win_info): Ditto.
1508         (tui_add_content_elements): Ditto.
1509         * tui/tui-file.c (tui_file_magic): Ditto.
1510
1511 2007-07-31  Michael Snyder  <msnyder@access-company.com>
1512
1513         * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
1514         True and false paths are mutually exclusive.
1515
1516         * event-top.c (command_line_handler): Add pedantic return.
1517
1518         * f-valprint.c (info_common_command): Bail out to prevent null
1519         pointer deref.  Break up a long line.
1520
1521         * exec.c (xfer_memory): Remove redundant condition from 'if'.
1522
1523         * symfile.c (reread_separate_symbols): Free xmalloced memory.
1524
1525         * printcmd.c (build_address_symbolic): Remove dead code and dead 
1526         variable.
1527
1528 2007-07-31  Daniel Jacobowitz  <dan@codesourcery.com>
1529
1530         * linespec.c (minsym_found): Advance to the next line if possible.
1531
1532 2007-07-31  Pedro Alves  <pedro_alves@portugalmail.pt>
1533
1534         * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
1535         * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
1536         solib-svr4.o, and add solib-target.o
1537
1538 2007-07-27  Michael Snyder  <msnyder@access-company.com>
1539
1540         * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
1541
1542 2007-07-26  Maciej W. Rozycki  <macro@linux-mips.org>
1543
1544         * MAINTAINERS (Write After Approval): Add myself.
1545
1546 2007-07-26  Maciej W. Rozycki  <macro@mips.com>
1547
1548         * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
1549         for include files.
1550
1551 2007-07-25  Maciej W. Rozycki  <macro@mips.com>
1552
1553         * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
1554
1555 2007-07-24  Michael Snyder  <msnyder@access-company.com>
1556
1557         * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
1558         'buffer' must cover both branches that call strcmp (Coverity).
1559
1560         * stack.c (print_frame_args): Check return value of lookup_symbol.
1561
1562         * ax-gdb.c (find_field): Guard against null ptr.
1563
1564 2007-07-24  Ulrich Weigand  <uweigand@de.ibm.com>
1565
1566         * regformats/reg-spu.dat: Fix order of npc, id registers.
1567
1568 2007-07-24  Ulrich Weigand  <uweigand@de.ibm.com>
1569
1570         * target.c (memory_xfer_partial): Accesses to unmapped overlay
1571         sections should always go to the executable file.
1572
1573 2004-07-20  Chris Dearman  <chris@mips.com>
1574
1575         * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
1576         prologue instructions.
1577
1578 2007-07-20  Maciej W. Rozycki  <macro@mips.com>
1579
1580         * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
1581         a direct test.
1582
1583 2007-07-20  Chris Dearman  <chris@mips.com>
1584             Maciej W. Rozycki  <macro@mips.com>
1585
1586         * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
1587         description.
1588
1589 2007-07-17  Pedro Alves  <pedro_alves@portugalmail.pt>
1590             Daniel Jacobowitz  <dan@codesourcery.com>
1591
1592         * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
1593         * coff-pe-read.c (read_pe_exported_syms): Delete verbose
1594         printf.
1595         * NEWS: Mention gdbserver DLL support.
1596
1597 2007-07-17  Daniel Jacobowitz  <dan@codesourcery.com>
1598
1599         * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
1600
1601 2007-07-16  H.J. Lu  <hongjiu.lu@intel.com>
1602
1603         * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
1604         warning bug.
1605
1606 2007-07-13  Kevin Buettner  <kevinb@redhat.com>
1607
1608         * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
1609         instruction case.
1610
1611 2007-07-12  Kevin Buettner  <kevinb@redhat.com>
1612
1613         * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
1614         (mep_analyze_prologue): Add case for BRA instruction.
1615
1616 2007-07-12  Ulrich Weigand  <uweigand@de.ibm.com>
1617
1618         * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
1619
1620 2007-07-10  Nick Roberts  <nickrob@snap.net.nz>
1621
1622         * breakpoint.c: Include "top.h".
1623         (breakpoint_1): Don't set convenience variable $_ if server prefix
1624         is used.
1625         (_initialize_breakpoint): Describe this behaviour in command help.
1626
1627 2007-07-08  Pedro Alves  <pedro_alves@portugalmail.pt>
1628
1629         * solib-target.c (library_list_start_segment): Cast address to
1630         CORE_ADDR.
1631
1632 2007-07-06  Mark Kettenis  <kettenis@gnu.org>
1633
1634         * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
1635         for terminated processes.
1636
1637 2007-07-05  Michael Snyder  <msnyder@access-company.com>
1638
1639         * event-top.c (cli_command_loop): Prompt string can (and should)
1640         be freed after call to readline (Coverity).  Also move local var
1641         declarations into block where they are used.
1642
1643         * tui/tui-interp.c (tui_command_loop): Prompt string can (and
1644         should) be freed after call to readline (Coverity).  Also move
1645         local var declarations into block where they are used.
1646
1647 2007-07-03  Andreas Schwab  <schwab@suse.de>
1648
1649         * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
1650         /proc/../stat.
1651
1652 2007-07-03  Paul Gilliam  <pgilliam@us.ibm.com>
1653             Thiago Bauermann  <bauerman@br.ibm.com>
1654             Joseph S. Myers  <joseph@codesourcery.com>
1655             Daniel Jacobowitz  <dan@codesourcery.com>
1656
1657         * remote.c (remote_check_symbols): Use
1658         gdbarch_convert_from_func_ptr_addr.
1659         * infcall.c (find_function_addr): Handle function descriptors
1660         without debugging information.
1661         * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
1662         from ppc64_linux_convert_from_func_ptr_addr.  Handle -msecure-plt.
1663         (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
1664         * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
1665         (bfd_lookup_symbol): Do not take a SECT_FLAGS argument.  Always
1666         allow SEC_CODE and SEC_DATA.
1667         (enable_break): Update calls.  Pass current_target to solib_add.
1668         Use gdbarch_convert_from_func_ptr_addr.
1669
1670 2007-07-03  Ilko Iliev  <iliev@ronetix.at>
1671             Daniel Jacobowitz  <dan@codesourcery.com>
1672
1673         * symfile.c (print_transfer_performance): Avoid integer overflow.
1674         Use larger units.
1675
1676 2007-07-03  Markus Deuling  <deuling@de.ibm.com>
1677
1678         * cp-namespace.c (lookup_symbol_file): Add block to
1679         lookup_symbol_global call.
1680         * Makefile.in (solist_h): Add dependency on symtab header.
1681         (symtab.o): Add dependency on solist header.
1682         * solib.c (solib_global_lookup): New function.
1683         * solib-svr4.c (scan_dyntag): Likewise.
1684         (elf_locate_base): Call helper routine scan_dyntag.
1685         (elf_lookup_lib_symbol): New function.
1686         (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
1687         * solist.h (symtab.h): New include.
1688         (struct target_so_ops): New member lookup_lib_global_symbol.
1689         (solib_global_lookup): New prototype.
1690         * symtab.c: New include solist.h.
1691         (lookup_objfile_from_block): New function.
1692         (lookup_global_symbol_from_objfile): New function.
1693         (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
1694         (lookup_symbol_global): Call library-specific lookup procedure.
1695         * symtab.h (lookup_global_symbol_from_objfile): New prototype.
1696
1697         * NEWS: Document framework.
1698
1699 2007-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
1700
1701         * target-descriptions.c (tdesc_create_reg): Do not set reg->type
1702         to NULL.
1703
1704         * cli/cli-script.c (build_command_line): Update NULL check.
1705
1706 2007-07-02  Michael Snyder  <msnyder@access-company.com>
1707
1708         * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
1709
1710 2007-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
1711
1712         * Makefile.in (XMLFILES): Add library-list.dtd.
1713         (ALLDEPFILES): Add solib-target.o.
1714         (solib-target.o): New rule.
1715         * remote.c (PACKET_qXfer_libraries): New constant.
1716         (remote_protocol_features): Add qXfer:libraries:read.
1717         (remote_wait): Recognize library stop replies.
1718         (remote_async_wait): Likewise.  Fix typo.
1719         (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
1720         (init_remote_async_ops): Fix typo.
1721         (_initialize_remote): Register "set remote library-info-packet".
1722         * solib-som.c (som_current_sos): Set addr_low and addr_high.
1723         * solib-target.c: New file.
1724         * solib.c (solib_map_sections): Use addr_low and addr_high instead
1725         of textsection.
1726         (info_sharedlibrary_command): Likewise.
1727         (solib_add_library, solib_remove_library): New.
1728         * solist.h (struct so_list): Replace textsection with addr_low and
1729         addr_high.
1730         * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
1731         * NEWS: Describe new qXfer:libraries:read and shared library
1732         event support.
1733         * features/library-list.dtd: New.
1734
1735 2007-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
1736
1737         * infrun.c (inferior_ignoring_startup_exec_events): Delete.
1738         (start_remote): Use STOP_QUIETLY_REMOTE.
1739         (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
1740         support on a SOLIB_ADD definition.  Update breakpoints_inserted.
1741         Update to match shared library event breakpoint support.  Only
1742         resume if appropriate.  Handle STOP_QUIETLY_REMOTE.
1743         (normal_stop): Handle TARGET_WAITKIND_LOADED.
1744         * fork-child.c (startup_inferior): Do not set
1745         inferior_ignoring_startup_exec_events
1746         * inferior.h (inferior_ignoring_startup_exec_events): Delete
1747         declaration.
1748         (enum stop_kind): Improve documentation.  Add STOP_QUIETLY_REMOTE.
1749
1750 2007-07-02  Markus Deuling  <deuling@de.ibm.com>
1751
1752         * breakpoint.c (insert_bp_location): Remove dead code
1753         (DISABLE_UNSETTABLE_BREAK).
1754         (disable_breakpoints_in_shlibs)
1755         (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
1756
1757 2007-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
1758
1759         * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
1760         Call insert_bp_location.
1761
1762 2007-07-01  H.J. Lu  <hongjiu.lu@intel.com>
1763
1764         * core-regset.c (fetch_core_registers): Work around gcc 3.4
1765         alias warning bug.
1766
1767 2007-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
1768
1769         * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
1770         objfiles.
1771
1772 2007-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
1773
1774         * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
1775         (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
1776         (gdb_readline_wrapper_cleanup): Do not reset the prompt.
1777         (gdb_readline_wrapper): Do not save the prompt.  Pass our prompt
1778         to display_gdb_prompt.
1779
1780 2007-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
1781
1782         PR symtab/2161
1783         * target.c (memory_xfer_partial): Do not continue past targets with
1784         all memory.
1785
1786 2007-06-30  Andreas Schwab  <schwab@suse.de>
1787
1788         * m68k-tdep.c (m68k_ps_type): New.
1789         (m68k_init_types): New.
1790         (m68k_register_type): Use m68k_ps_type for PS register.
1791         (_initialize_m68k_tdep): Call m68k_init_types.
1792
1793         * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
1794         from the generic m68k arch.
1795
1796 2007-06-28  Michael Snyder  <msnyder@access-company.com>
1797
1798         * m2-typeprint.c (m2_print_type): Move pointer ref after null test
1799         (Coverity).
1800
1801         * linux-thread-db.c (thread_db_get_thread_local_address): Add
1802         gdb_assert before using return value of find_thread_pid (Coverity).
1803
1804         * source.c (unset_substitute_path_command): Plug leak (Coverity).
1805
1806         * cli/cli-script.c (build_command_line): Add null pointer guard 
1807         (Coverity).
1808         
1809 2007-06-27  Daniel Jacobowitz  <dan@codesourcery.com>
1810
1811         * linux-thread-db.c (thread_db_attach): Delete.
1812         (thread_db_detach): Typo fix.  Call target_mourn_inferior
1813         instead of fixing up proc_handle.
1814         (have_threads_callback, have_threads): New functions.
1815         (thread_db_wait): Remove dead proc_handle.pid check.  Only
1816         translate PTIDs if we have registered threads.  Check for new
1817         threads if we have none.
1818         (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
1819         (find_new_threads_callback): Only enable event reporting if TID == 0.
1820         (same_ptid_callback): New.
1821         (thread_db_get_thread_local_address): Check for new threads.
1822         (init_thread_db_ops): Don't set to_attach, to_create_inferior,
1823         or to_post_startup_inferior.
1824
1825 2007-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
1826
1827         * infrun.c (adjust_pc_after_break): Do not assume software single-step
1828         is always active if SOFTWARE_SINGLE_STEP_P is true.
1829         (resume): Use gdbarch_software_single_step[_p] instead of
1830         SOFTWARE_SINGLE_STEP[_P].
1831         (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
1832
1833         * gdbarch.sh (software_single_step): Remove target macro.
1834         * gdbarch.h, gdbarch.c: Regenerate.
1835
1836 2007-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
1837
1838         * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
1839         DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
1840         (struct gdbarch_swap, struct gdbarch_swap_registration, 
1841         struct gdbarch_swap_registry, gdbarch_swap_registry,
1842         current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
1843         current_gdbarch_swap_in_hack): Remove.
1844         (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
1845         (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
1846         and current_gdbarch_swap_out_hack, update current_gdbarch directly.
1847         (deprecated_current_gdbarch_select_hack): Likewise.
1848         * gdbarch.h, gdbarch.c: Regenerate.
1849
1850 2007-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
1851
1852         * infrun.c (clear_proceed_status): Clean up stop_registers.
1853         (normal_stop): Allocate regcache for stop_registers.
1854         (struct inferior_status): Remove stop_registers member.
1855         (save_inferior_status): Do not save stop_registers.
1856         (restore_inferior_status): Do not restore stop_registers.
1857         (discard_inferior_status): Do not discard stop_registers.
1858         (build_infrun): Remove.
1859         (_initialize_infrun): Do not swap stop_registers.
1860
1861 2007-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
1862
1863         * remote.c (remote_address_masked): If remote_address_size is zero,
1864         default to target address size.
1865         (build_remote_gdbarch_data): Remove.
1866         (_initialize_remote): Do not swap remote_address_size.
1867
1868 2007-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
1869
1870         * gdbtypes.h (builtin_type_true_char, builtin_type_void,
1871         builtin_type_char, builtin_type_short, builtin_type_int,
1872         builtin_type_long, builtin_type_signed_char,
1873         builtin_type_unsigned_char, builtin_type_unsigned_short,
1874         builtin_type_unsigned_int, builtin_type_unsigned_long,
1875         builtin_type_float, builtin_type_double, builtin_type_long_double,
1876         builtin_type_complex, builtin_type_double_complex, builtin_type_string,
1877         builtin_type_bool, builtin_type_long_long,
1878         builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
1879         builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
1880         variable declaration with compatibility macro.
1881         * gdbtypes.c (builtin_type_true_char, builtin_type_void,
1882         builtin_type_char, builtin_type_short, builtin_type_int,
1883         builtin_type_long, builtin_type_signed_char,
1884         builtin_type_unsigned_char, builtin_type_unsigned_short,
1885         builtin_type_unsigned_int, builtin_type_unsigned_long,
1886         builtin_type_float, builtin_type_double, builtin_type_long_double,
1887         builtin_type_complex, builtin_type_double_complex, builtin_type_string,
1888         builtin_type_bool, builtin_type_long_long,
1889         builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
1890         builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
1891         (build_gdbtypes): Remove.
1892         (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
1893         opaque-type-resolution command here.   Do not call 
1894         deprecated_register_gdbarch_swap.
1895
1896 2007-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
1897
1898         * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
1899         nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
1900         * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
1901
1902         * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
1903         (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
1904         (write_exp_msymbol): Use builtin nodebug_ types instead of them.
1905         (build_parse): Remove.
1906         (_initialize_parse): Do not call build_parse.  Do not register
1907         msym_ types for gdbarch-swapping.
1908
1909         * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
1910         instead of creating private type.
1911
1912         * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
1913         (_initialize_xcoffread): Do not initialized them.
1914         (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
1915
1916         * mdebugread.c (nodebug_func_symbol_type): Remove.
1917         (nodebug_var_symbol_type): Remove.
1918         (_initialize_mdebugread): Do not initialize them.
1919         (parse_symbol): Use builtin nodebug_ type instead of them.
1920         (parse_procedure): Likewise.
1921
1922 2007-06-21  Chris Dearman  <chris@mips.com>
1923
1924         * printcmd.c (do_one_display): If display/i, start with an initial
1925         line feed to avoid bad layout if there is a branch delay slot.
1926
1927 2007-06-21  Nigel Stephens  <nigel@mips.com>
1928             Maciej W. Rozycki  <macro@mips.com>
1929
1930         * disasm.c (gdb_print_insn): Return the number of branch delay
1931         slot instructions too.
1932         * disasm.h (gdb_print_insn): Update prototype.
1933         * printcmd.c (branch_delay_insns): New variable to record the
1934         number of delay slot instructions after disassembling a branch.
1935         (print_formatted): Record the number of branch delay slot
1936         instructions.
1937         (do_examine): When disassembling, if the last instruction
1938         disassembled has any branch delay slots, then bump the count so
1939         that they get disassembled too.
1940         * tui/tui-disasm.c (tui_disassemble): Update the call to
1941         gdb_print_insn().
1942         * NEWS: Document the new behaviour.
1943
1944 2007-06-21  Andreas Schwab  <schwab@suse.de>
1945
1946         * regcache.c (write_pc_pid): Restore missing else.
1947
1948 2007-06-20  Ulrich Weigand  <uweigand@de.ibm.com>
1949
1950         * regcache.c (regcache_print): Use get_current_regcache ()
1951         instead of current_regcache.
1952
1953 2007-06-20  H.J. Lu  <hongjiu.lu@intel.com>
1954
1955         PR 4606
1956         * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
1957         instead of bfd_make_section_anyway.
1958         (gcore_create_callback): Likewise.  Also set SEC_NEVER_LOAD
1959         when clearing SEC_LOAD.
1960
1961 2007-06-19  Joseph Myers  <joseph@codesourcery.com>
1962
1963         * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
1964         registers for big-endian.
1965
1966 2007-06-19  Markus Deuling  <deuling@de.ibm.com>
1967
1968         * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
1969         * disasm.c (dump_insns, gdb_print_insn): Likewise.
1970         * gdbarch.c, gdbarch.h: Regenerate.
1971
1972 2007-06-19  Markus Deuling  <deuling@de.ibm.com>
1973
1974         * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
1975         gdbarch_believe_pcc_promotion.
1976         * stabsread.c (define_symbol): Likewise.
1977         Remove unnecessary definition.
1978         * coffread.c (process_coff_symbol): Remove unnecessary code.
1979         * gdbarch.c, gdbarch.h: Regenerate.
1980
1981 2007-06-19  Daniel Jacobowitz  <dan@codesourcery.com>
1982
1983         * configure.ac: Do not use ${objdir}.
1984         * configure: Regenerated.
1985
1986 2007-06-18  Ulrich Weigand  <uweigand@de.ibm.com>
1987
1988         * gdbarch.sh (deprecated_register_size): Remove.
1989         * gdbarch.h, gdbarch.c: Regenerate.
1990
1991         * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
1992         by INT_REGISTER_SIZE.
1993         (thumb_get_next_pc, arm_return_in_memory): Likewise.
1994         (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
1995         * ia64-tdep.c (ia64_gdbarch_init): Do not call
1996         set_gdbarch_deprecated_register_size.
1997
1998 2007-06-18  Markus Deuling  <deuling@de.ibm.com>
1999
2000         * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
2001         gdbarch_deprecated_fp_regnum.
2002         * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2003         * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
2004         * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2005         * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
2006         (comment).
2007         * gdbarch.c, gdbarch.h: Regenerate.
2008
2009 2007-06-18  Markus Deuling  <deuling@de.ibm.com>
2010
2011         * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
2012         gdbarch_extract_return_value.
2013         * value.c (generic_use_struct_convention): Likewise (comment).
2014         * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
2015         * arch-utils.c (legacy_return_value): Likewise.
2016         * arch-utils.h (legacy_return_value): Likewise (comment).
2017         * gdbarch.sh (STORE_RETURN_VALUE): Replace by
2018         gdbarch_store_return_value.
2019         * stack.c (return_command): Likewise (comment).
2020         * arch-utils.h (legacy_return_value): Likewise (comment).
2021         * arch-utils.c (legacy_return_value): Likewise.
2022         * gdbarch.c, gdbarch.h: Regenerate.
2023
2024 2007-06-18  Markus Deuling  <deuling@de.ibm.com>
2025
2026         * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
2027         gdbarch_deprecated_use_struct_convention.
2028         * arch-utils.c (legacy_return_value): Likewise.
2029         * gdbarch.c, gdbarch.h: Regenerate.
2030
2031 2007-06-18  Markus Deuling  <deuling@de.ibm.com>
2032
2033         * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
2034         gdbarch_deprecated_function_start_offset.
2035         * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
2036         * linespec.c (minsym_found): Likewise.
2037         * infrun.c (handle_inferior_event): Likewise.
2038         * infcall.c (find_function_addr): Likewise.
2039         * cli/cli-cmds.c (disassemble_command): Likewise.
2040         * gdbarch.c, gdbarch.h: Regenerate.
2041
2042 2007-06-18  Markus Deuling  <deuling@de.ibm.com>
2043
2044         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
2045         gdbarch_deprecated_reg_struct_has_addr.
2046         * infcall.c (call_function_by_hand): Likewise.
2047         (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
2048         * gdbarch_deprecated_reg_struct_has_addr_p.
2049         * infcall.c (call_function_by_hand): Likewise.
2050         * gdbarch.c, gdbarch.h: Regenerate.
2051
2052 2007-06-18  Markus Deuling  <deuling@de.ibm.com>
2053
2054         * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2055         * sh-tdep.c (sh_extract_struct_value_address): Remove.
2056         (sh_gdbarch_init): Remove
2057         set_gdbarch_deprecated_extract_struct_value_address.
2058         * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
2059         (sh64_gdbarch_init): Remove
2060         set_gdbarch_deprecated_extract_struct_value_address.
2061         * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
2062         (ia64_gdbarch_init): Remove
2063         set_gdbarch_deprecated_extract_struct_value_address.
2064         * frv-tdep.c (frv_extract_struct_value_address): Remove.
2065         (frv_gdbarch_init): Remove
2066         set_gdbarch_deprecated_extract_struct_value_address.
2067         * gdbarch.c, gdbarch.h: Regenerate.
2068
2069 2007-06-18  Markus Deuling  <deuling@de.ibm.com>
2070
2071         * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
2072         * v850-tdep.c (v850_unwind_sp): Likewise.
2073         * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
2074         * stack.c (frame_info): Likewise.
2075         * stabsread.c (define_symbol): Likewise.
2076         * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2077         (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
2078         (sh_unwind_sp): Likewise.
2079         * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
2080         (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
2081         * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
2082         (rs6000_frame_cache): Likewise.
2083         * rs6000-nat.c (store_register): Likewise.
2084         * remote-mips.c (mips_wait): Likewise.
2085         * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2086         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2087         (ppc64_sysv_abi_push_dummy_call): Likewise.
2088         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2089         * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2090         * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2091         * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2092         * m32r-rom.c (m32r_supply_register): Likewise.
2093         * frame.c (frame_sp_unwind): Likewise.
2094         * mips-tdep.c (mips_insn16_frame_cache)
2095         (mips_insn32_frame_cache): Likewise (comment).
2096         * m68klinux-nat.c (supply_gregset): Likewise.
2097         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2098         * ia64-tdep.c (ia64_frame_prev_register): Likewise.
2099         * i386-tdep.c (i386_get_longjmp_target): Likewise.
2100         * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2101         * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
2102         (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
2103         (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
2104         (cris_register_type, crisv32_register_type)
2105         (cris_dwarf2_frame_init_reg): Likewise.
2106         * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2107         * amd64-tdep.c (amd64_frame_prev_register): Likewise.
2108         * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2109         * libunwind-frame.c (libunwind_frame_cache): Likewise.
2110
2111         * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
2112         * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
2113         * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
2114         (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
2115         (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
2116         * v850-tdep.c (v850_unwind_pc): Likewise.
2117         * stack.c (frame_info): Likewise.
2118         * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
2119         (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
2120         (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
2121         (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
2122         (sh_dsp_show_regs): Likewise.
2123         * shnbsd-tdep.c (shnbsd_supply_gregset)
2124         (shnbsd_collect_gregset): Likewise.
2125         * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
2126         * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
2127         (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
2128         * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
2129         (6000_register_reggroup_p, rs6000_unwind_pc)
2130         (rs6000_frame_cache): Likewise.
2131         * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
2132         (rs6000_store_inferior_registers): Likewise.
2133         * remote-mips.c (mips_wait, mips_load): Likewise.
2134         * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2135         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2136         * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2137         * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2138         * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
2139         * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2140         * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
2141         (store_ppc_registers, fill_gregset): Likewise.
2142         * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
2143         * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
2144         * mipsnbsd-nat.c (getregs_supplies): Likewise.
2145         * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
2146         * m68klinux-nat.c (supply_gregset): Likewise.
2147         * irix5-nat.c (fill_gregset): Likewise.
2148         * i386-tdep.c (i386_unwind_pc): Likewise.
2149         * i386-linux-nat.c (i386_linux_resume): Likewise.
2150         * frame.c (get_prev_frame_1): Likewise.
2151         * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2152         * dbug-rom.c (dbug_supply_register): Likewise.
2153         * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
2154         (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
2155         (cris_register_type, crisv32_register_type, crisv32_register_name)
2156         (cris_dwarf2_frame_init_reg, find_step_target)
2157         (cris_software_single_step, cris_supply_gregset)
2158         (cris_regnums): Likewise.
2159         * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2160         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2161         (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
2162         * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
2163         * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2164
2165         * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
2166         * dbug-rom.c (dbug_supply_register): Likewise.
2167         * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
2168         (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
2169         * win32-nat.c (win32_resume): Likewise.
2170         * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
2171         * m68k-tdep.c (m68k_register_type): Likewise.
2172         * m68klinux-nat.c (supply_gregset): Likewise.
2173
2174         * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
2175         * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
2176         (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
2177         (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2178         (fv_reg_base_num, dr_reg_base_num): Likewise.
2179         * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
2180         (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
2181         (sh64_extract_return_value, sh64_store_return_value)
2182         (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
2183         (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
2184         * procfs.c (procfs_fetch_registers, procfs_store_registers)
2185         (invalidate_cache): Likewise.
2186         * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2187         * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
2188         (mipsnbsd_fill_fpreg): Likewise.
2189         * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2190         (mipsnbsd_store_inferior_registers): Likewise.
2191         * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
2192         (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
2193         * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
2194         * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
2195         * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
2196         (fill_fpregset): Likewise.
2197         * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
2198         * i386-tdep.h (struct_return): Likewise (comment).
2199         * i386-nto-tdep.c (i386nto_register_area): Likewise.
2200         * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
2201         (go32_store_registers): Likewise.
2202         * alpha-tdep.c (alpha_next_pc): Likewise.
2203         * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2204         * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
2205         (alphabsd_store_inferior_registers): Likewise.
2206         * core-regset.c (fetch_core_registers): Likewise.
2207         * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2208
2209         * gdbarch.c, gdbarch.h: Regenerate.
2210
2211 2007-06-18  Daniel Jacobowitz  <dan@codesourcery.com>
2212
2213         * coffread.c (coff_sym_fns): Add default_symfile_segments.
2214         * dbxread.c (start_psymtab): Check HAVE_ELF.
2215         (aout_sym_fns): Likewise.
2216         * elfread.c (elf_symfile_segments): New.
2217         (elf_sym_fns): Add elf_symfile_segments.
2218         * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
2219         * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
2220         Skip if there is no symfile_objfile.  Handle TextSeg and DataSeg.
2221         * somread.c (som_sym_fns): Use default_symfile_segments.
2222         * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
2223         (init_objfile_sect_indices): Call symfile_find_segment_sections.
2224         (default_symfile_segments): New function.
2225         (syms_from_objfile): Update call to find_sym_fns.
2226         (symfile_get_segment_data, free_symfile_segment_data): New.
2227         (symfile_map_offsets_to_segments): New.
2228         (symfile_find_segment_sections): New.
2229         * symfile.h (struct symfile_segment_data): New.
2230         (struct sym_fns): Add sym_segments.
2231         (default_symfile_segments, symfile_get_segment_data)
2232         (free_symfile_segment_data): New prototypes.
2233         (symfile_map_offsets_to_segments): Likewise.
2234         * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
2235         * Makefile.in (COMMON_OBS): Remove elfread.o.
2236         (elf_internal_h): New.
2237         (elfread.o): Update.
2238         * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
2239         compiled.
2240         * config.in, configure: Regenerated.
2241         * NEWS: Mention qOffsets changes.
2242
2243 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
2244
2245         * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
2246         builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2247         Replace global variable declaration with compatibility macro.
2248         (struct builtin_m2_type): New data type.
2249         (builtin_m2_type): Add prototype.
2250         * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
2251         builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2252         Remove global variables.
2253         (m2_language_arch_info): Use builtin_m2_type instead of variables.
2254         (build_m2_types): New function.
2255         (m2_type_data): New variable.
2256         (builtin_m2_type): New function.
2257         (_initialize_m2_language): Do not build data types.  Register
2258         m2_type_data per-gdbarch data.
2259
2260 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
2261
2262         * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
2263         builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2264         builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2265         builtin_type_f_real_s8, builtin_type_f_real_s16,
2266         builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2267         builtin_type_f_complex_s32, builtin_type_f_void): Replace global
2268         variable declaration with compatibility macro.
2269         (struct builtin_f_type): New data type.
2270         (builtin_f_type): Add prototype.
2271         * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
2272         builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2273         builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2274         builtin_type_f_real_s8, builtin_type_f_real_s16,
2275         builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2276         builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
2277         (f_language_arch_info): Use builtin_f_type instead of variables.
2278         (build_fortran_types): Build builtin_f_type structure instead of
2279         setting global type variables.
2280         (f_type_data): New variable.
2281         (builtin_f_type): New function.
2282         (_initialize_f_language): Do not call build_fortran_types.  Do not
2283         swap global type variables.  Register f_type_data per-gdbarch data.
2284
2285 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
2286
2287         * f-lang.c (_initialize_f_language): Do not initialize or
2288         swap builtin_type_string.
2289
2290 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
2291
2292         * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
2293         value_of_builtin_frame_reg): Remove.
2294         (_initialize_frame_reg): Do not swap builtin_type_frame_reg.  Remove
2295         inactive call to value_of_builtin_frame_reg.
2296
2297 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
2298
2299         * gdbarch.sh (bfd_vma_bit): Remove.
2300         * gdbarch.c, gdbarch.h: Regenerate.
2301
2302         * gdbtypes.h (builtin_bfd_vma_type): Remove.
2303         * gdbtypes.h (builtin_bfd_vma_type): Remove.
2304         (build_gdbtypes): Do not initialize it.
2305         (_initialize_gdbtypes): Do not swap it.
2306
2307 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
2308
2309         * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float, 
2310         builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2311         builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2312         builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2313         builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi, 
2314         builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2315         builtin_type_vec64, builtin_type_vec128): Remove.
2316         (init_simd_type): Remove.
2317         (init_vector_type): Make global.
2318         (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
2319         (build_gdbtypes): Do not build vector types.
2320         (_initialize_gdbtypes): Do not swap vector types.
2321         * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float, 
2322         builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2323         builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2324         builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2325         builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi, 
2326         builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2327         builtin_type_vec64, builtin_type_vec128): Remove declarations.
2328         (init_vector_type): Add prototype.
2329
2330         * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
2331         i386_sse_type members.
2332         (i386_mmx_type, i386_sse_type): Change from variables to functions.
2333         * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
2334         (i386_init_types): Do not build vector types.
2335         (i386_mmx_type, i386_sse_type): New functions.
2336         (i386_register_type): Call them instead of using global variables.
2337         (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
2338         * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
2339         of using global variable.
2340
2341         * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
2342         and ppc_builtin_type_vec128 members.
2343         * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
2344         (rs6000_builtin_type_vec128): Likewise.
2345         (rs6000_register_type): Call them instead of using builtin_type_vec64
2346         and builtin_type_vec128.
2347         (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
2348
2349         * spu-tdep.c (struct gdbarch_tdep): New data type.
2350         (spu_builtin_type_vec128): Remove variable.
2351         (spu_builtin_type_vec128): New function.
2352         (spu_register_type): Call it instead of using global variable.
2353         (spu_gdbarch_init): Allocate tdep structure.
2354         (spu_init_vector_type): Remove function.
2355         (_initialize_spu_tdep): Do not call it.
2356
2357 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
2358
2359         * amd64-tdep.c (struct amd64_register_info): Remove.
2360         (amd64_register_info): Remove.
2361         (amd64_register_names): New static variable.
2362         (AMD64_NUM_REGS): Use amd64_register_names instead of
2363         amd64_register_info.
2364         (amd64_register_name): Likewise.
2365         (amd64_register_type): Do not refer to amd64_register_info.
2366
2367         * s390-tdep.c (struct s390_register_info): Remove.
2368         (s390_register_info): Remove.
2369         (s390_register_name): Do not refer to s390_register_info.
2370         (s390_register_type): Likewise.
2371
2372         * sparc64-tdep.c (struct sparc64_register_info): Remove.
2373         (sparc64_register_info, sparc64_pseudo_register_info): Remove.
2374         (sparc64_register_names, sparc64_pseudo_register_names): New.
2375         (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
2376         sparc64_register_names and sparc64_pseudo_register_names instead of
2377         sparc64_register_info and sparc64_pseudo_register_info.
2378         (sparc64_register_name): Likewise.
2379         (sparc64_register_type): Do not refer to sparc64_register_info
2380         and sparc64_pseudo_register_info.
2381
2382 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
2383
2384         * c-lang.c (cplus_builtin_types): Remove.
2385         (enum cplus_primitive_types): New data type.
2386         (cplus_language_arch_info): New function.
2387         (cplus_language_defn): Set la_language_arch_info member.  Do not set
2388         la_builtin_type_vector and string_char_type members.
2389
2390         * f-lang.c (f_builtin_types): Remove.
2391         (enum f_primitive_types): New data type.
2392         (f_language_arch_info): New function.
2393         (f_language_de): Set la_language_arch_info member.  Do not set
2394         la_builtin_type_vector and string_char_type members.
2395
2396         * m2-lang.c (m2_builtin_types): Remove.
2397         (enum m2_primitive_types): New data type.
2398         (m2_language_arch_info): New function.
2399         (m2_language_defn): Set la_language_arch_info member.  Do not set
2400         la_builtin_type_vector and string_char_type members.
2401
2402         * objc-lang.c (objc_builtin_types): Remove.
2403         (objc_language): Set la_language_arch_info member.  Do not set
2404         la_builtin_type_vector and string_char_type members.
2405
2406         * p-lang.c (pascal_builtin_types): Remove.
2407         (enum pascal_primitive_types): New data type.
2408         (pascal_language_arch_info): New function.
2409         (pascal_language_defn): Set la_language_arch_info member.  Do not set
2410         la_builtin_type_vector and string_char_type members.
2411
2412 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
2413
2414         * regcache.c (struct regcache): Add ptid_t member.
2415         (regcache_xmalloc): Initialize it.
2416         (regcache_cpy_no_passthrough): Do not refer to current_regcache.
2417         (regcache_dup): Likewise.
2418         (regcache_dup_no_passthrough): Likewise.
2419         (current_regcache): Make static.
2420         (registers_ptid): Remove variable.
2421         (get_thread_regcache): New function.
2422         (get_current_regcache): New function.
2423         (registers_changed): Implement by freeing current regcache.
2424         (regcache_raw_read): Do not refer to current_regcache.  Set 
2425         inferior_ptid to regcache->ptid while calling target routines.
2426         (regcache_raw_write): Likewise.
2427         (regcache_raw_supply): Do not refer to current_regcache.
2428         (read_pc_pid): Use thread regcache.  Do not modify inferior_ptid.
2429         (write_pc_pid): Likewise.
2430         (build_regcache): Remove.
2431         (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
2432         or deprecated_register_gdbarch_swap.  Do not initialize
2433         registers_ptid.
2434         * regcache.h (get_current_regcache): Add prototype.
2435         (get_thread_regcache): Likewise.
2436         (current_regcache): Remove declaration.
2437
2438         * corelow.c (core_open): Replace current_regcache by
2439         get_current_regcache ().
2440         * frame.c (frame_pop): Likewise.
2441         (put_frame_register): Likewise.
2442         (get_current_frame, create_new_frame): Likewise.
2443         * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
2444         * stack.c (return_command): Likewise.
2445         * infcall.c (call_function_by_hand): Likewise.
2446         * infrun.c (resume): Likewise.
2447         (save_inferior_status, restore_inferior_status): Likewise.
2448         * linux-fork.c (fork_load_infrun_state): Likewise.
2449         (fork_save_infrun_state): Likewise.
2450         * win32-nat.c (win32_resume): Likewise.
2451         * i386fbsd-nat.c (i386fbsd_resume): Likewise.
2452         * monitor.c (monitor_wait): Likewise.
2453         * remote.c (remote_wait): Likewise.
2454         * remote-mips.c (mips_wait): Likewise.
2455
2456         * bsd-kvm.c (bsd_kvm_open): Likewise
2457         (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
2458         * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
2459         * i386-linux-nat.c (i386_linux_resume): Likewise.
2460         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
2461         (ia64_linux_stopped_data_address): Likewise.
2462
2463         * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
2464         * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
2465         * mep-tdep.c (current_me_module, current_options): Likewise.
2466         * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
2467
2468         * linux-nat.c (linux_nat_do_thread_registers): Use thread
2469         regcache instead of current_regcache.  Call target_fetch_registers.
2470         (linux_nat_corefile_thread_callback): Update call site.
2471         (linux_nat_do_registers): Likewise.
2472         * procfs.c (procfs_do_thread_registers): Use thread regcache instead
2473         of current_regcache.
2474         (procfs_make_note_section): Likewise.
2475         * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
2476         (ps_lgetfpregs, ps_lsetfpregs): Likewise.
2477         * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
2478         (ps_lgetfpregs, ps_lsetfpregs): Likewise.
2479
2480 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
2481
2482         * regcache.c (read_register, read_register_pid): Remove.
2483         (write_register, write_register_pid): Likewise.
2484         * regcache.h (read_register, read_register_pid): Remove prototype.
2485         (write_register, write_register_pid): Likewise.
2486
2487 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
2488
2489         * gdbarch.sh (read_pc): Add REGCACHE argument.  Remove PTID argument.
2490         (write_pc): Likewise.  Remove default implementation, add predicate.
2491         * gdbarch.c, gdbarch.h: Regenerate.
2492         * regcache.c (read_pc_pid): Use current regcache instead of calling
2493         read_register_pid.
2494         (write_pc_pid): Check gdbarch_write_pc predicate, implement default
2495         case inline.
2496         (generic_target_write_pc): Remove.
2497         * inferior.h (generic_target_write_pc): Remove.
2498         * frv-tdep.c (frv_gdbarch_init): Do not install it.
2499         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2500         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2501         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
2502         * sh-tdep.c (sh_gdbarch_init): Likewise.
2503         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
2504
2505         * avr-tdep.c (avr_read_pc): Add REGCACHE argument.  Remove PTID
2506         argument.  Use REGCACHE instead of calling read_register_pid.
2507         * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
2508         * hppa-tdep.c (hppa_read_pc): Likewise.
2509         * hppa-tdep.h (hppa_read_pc): Likewise.
2510         * ia64-tdep.c (ia64_read_pc): Likewise.
2511         * m32r-tdep.c (m32r_read_pc): Likewise.
2512         * mep-tdep.c (mep_read_pc): Likewise.
2513         * mn10300-tdep.c (mn10300_read_pc): Likewise.
2514         * spu-tdep.c (spu_read_pc): Likewise.
2515
2516         * arm-tdep.c (arm_write_pc): Add REGCACHE argument.  Remove PTID
2517         argument.  Use REGCACHE instead of calling write_register_pid.
2518         * avr-tdep.c (avr_write_pc): Likewise.
2519         * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
2520         * hppa-tdep.c (hppa_write_pc): Likewise.
2521         * hppa-tdep.h (hppa_write_pc): Likewise.
2522         * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
2523         * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
2524         * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
2525         * ia64-tdep.c (ia64_write_pc): Likewise.
2526         * ia64-tdep.h (ia64_write_pc): Likewise.
2527         * m32r-tdep.c (m32r_write_pc): Likewise.
2528         * m88k-tdep.c (m88k_write_pc): Likewise.
2529         * mep-tdep.c (mep_write_pc): Likewise.
2530         * mips-tdep.c (mips_write_pc): Likewise.
2531         * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2532         * mn10300-tdep.c (mn10300_write_pc): Likewise.
2533         * sparc-tdep.c (sparc_write_pc): Likewise.
2534         * spu-tdep.c (spu_write_pc): Likewise.
2535
2536         * mips-tdep.c (read_signed_register): Remove.
2537         (read_signed_register_pid): Likewise.
2538         (mips_read_pc): Add REGCACHE argument.  Remove PTID argument.
2539         Use REGCACHE instead of calling read_signed_register_pid.
2540
2541 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
2542
2543         * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
2544         * gdbarch.c, gdbarch.h: Regenerate.
2545         * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
2546         (push_dummy_code): Likewise.  Pass it to callee.
2547         (call_function_by_hand): Pass current regcache to push_dummy_code.
2548
2549         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
2550         argument.  Use it instead of current_regcache.
2551
2552         * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
2553         * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2554
2555 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
2556
2557         * gdbarch.sh (get_longjmp_target): Add FRAME argument.
2558         * gdbarch.c, gdbarch.h: Regenerate.
2559         * infrun.c (handle_inferior_event): Pass current frame to
2560         gdbarch_get_longjmp_target.
2561
2562         * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
2563         Read registers from FRAME instead of using read_register.
2564         Use get_frame_arch instead of current_gdbarch.
2565         * arm-tdep.c (arm_get_longjmp_target): Likewise.
2566         * i386-tdep.c (i386_get_longjmp_target): Likewise.
2567         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2568         * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
2569         (mips64_linux_get_longjmp_target): Likewise.
2570         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2571
2572 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
2573
2574         * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
2575         * gdbarch.c, gdbarch.h: Regenerate.
2576         * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
2577         * arch-utils.h (generic_skip_trampoline_code): Likewise.
2578         * infrun.c (handle_inferior_event): Pass current frame to
2579         gdbarch_skip_trampoline_code and skip_language_trampoline.
2580
2581         * language.c (unk_lang_trampoline): Add FRAME argument.
2582         (skip_language_trampoline): Add FRAME argument.  Pass it to
2583         skip_trampoline callback.
2584         * language.h: Add forward declaration of struct frame_info.
2585         (struct language_defn): Add FRAME argument to skip_trampoline.
2586         (skip_language_trampoline): Add FRAME argument.
2587         * cp-abi.c (cplus_skip_trampoline): Add FRAME argument.  Pass it
2588         to skip_trampoline callback.
2589         * cp-abi.h: Add forward declaration of struct frame_info.
2590         (cplus_skip_trampoline): Add FRAME argument.
2591         (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
2592         * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument.  Pass it
2593         to gdbarch_skip_trampoline_code.
2594         * objc-lang.c (objc_skip_trampoline): Add FRAME argument.  Pass it
2595         to gdbarch_skip_trampoline_code.
2596
2597         * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
2598         * symtab.h (find_solib_trampoline_target): Likewise.
2599         * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
2600         find_solib_trampoline_target.
2601
2602         * arm-tdep.c (arm_skip_stub): Add FRAME argument.  Read registers
2603         from FRAME instead of calling read_register.
2604
2605         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
2606         argument.  Read registers from FRAME instead of using read_register.
2607         * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
2608         * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
2609
2610         * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
2611         argument.
2612
2613         * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
2614
2615         * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument.  Read
2616         registers from FRAME instead of using read_signed_register.
2617
2618         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
2619         argument.
2620         (ppc64_standard_linkage_target): Likewise.  Read registers from FRAME
2621         instead of using read_register.
2622         (ppc64_skip_trampoline_code): Add FRAME argument.  Pass it to
2623         ppc64_standard_linkage_target.
2624         * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
2625         Pass it to find_solib_trampoline_target.  Read registers from FRAME
2626         instead of using read_register.
2627
2628         * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
2629         argument.
2630
2631 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
2632
2633         * gdbarch.sh (software_single_step): Replace REGCACHE argument by
2634         FRAME argument.
2635         * gdbarch.c, gdbarch.h: Regenerate.
2636         * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
2637
2638         * alpha-tdep.c (alpha_next_pc): Add FRAME argument.  Retrieve
2639         registers from FRAME instead of using read_register.
2640         (alpha_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
2641         to alpha_next_pc.  Use get_frame_pc instead of read_pc.
2642         * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
2643         argument by FRAME.
2644
2645         * arm-tdep.c (shifted_reg_val): Add FRAME argument.  Read registers
2646         from FRAME instead of using read_register.
2647         (thumb_get_next_pc): Likewise.
2648         (arm_get_next_pc): Likewise.
2649         (arm_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
2650         to arm_get_next_pc.  Use get_frame_pc instead of read_register.
2651         * arm-tdep.h (arm_software_single_step): Replace REGCACHE
2652         argument by FRAME.
2653
2654         * cris-tdep.c (find_step_target): Add FRAME argument.  Read registers
2655         from FRAME instead of using read_register.
2656         (cris_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
2657         to find_step_target.
2658
2659         * mips-tdep.c (mips32_next_pc): Add FRAME argument.  Read registers
2660         from FRAME instead of using read_register / read_signed_register.
2661         (extended_mips16_next_pc): Likewise.
2662         (mips16_next_pc): Likewise.
2663         (mips_next_pc): Likewise.
2664         (mips_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
2665         to mips_next_pc.  Use get_frame_pc instead of read_pc.
2666         * mips-tdep.h (mips_software_single_step): Replace REGCACHE
2667         argument by FRAME.
2668
2669         * rs6000-tdep.c (branch_dest): Add FRAME argument.  Use it instead
2670         of current frame.  Read registers from FRAME.
2671         (deal_with_atomic_sequence): Add FRAME argument.  Pass it to
2672         branch_dest.  Use get_frame_pc instead of read_pc.
2673         (rs6000_software_single_step): Likewise.
2674         (bl_to_blrl_insn_p): Do not call branch_dest.
2675         * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
2676         argument by FRAME.
2677
2678         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
2679         Read registers from FRAME instead of current regcache.
2680         * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
2681         * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
2682         * sparc-tdep.c (sparc_address_from_register): Remove.
2683         (sparc_analyze_control_transfer): Pass FRAME argument instead of
2684         GDBARCH.  Pass FRAME to step_trap callback.
2685         (sparc_step_trap): Add FRAME argument.
2686         (space_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
2687         to sparc_analyze_control_transfer.  Read registers from FRAME instead
2688         of calling sparc_address_from_register.
2689         * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
2690         step_trap callback.
2691         (sparc_address_from_register): Remove prototype.
2692         (sparc_software_single_step): Replace REGCACHE argument by FRAME.
2693         (sparcnbsd_step_trap): Add FRAME argument.
2694
2695         * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
2696         by FRAME.  Read registers from FRAME instead of REGCACHE.
2697
2698 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
2699
2700         * arm-tdep.c (arm_print_float_info): Use register value from FRAME
2701         instead of calling read_register.
2702
2703         * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
2704         calling write_register.
2705
2706         * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
2707         calling write_register.
2708
2709         * ia64-tdep.c (find_func_descr): Add REGCACHE parameter.  Use it
2710         instead of calling read_register.
2711         (ia64_push_dummy_call): Update call to find_func_descr.  Use REGCACHE
2712         instead of calling read_register and write_register.
2713
2714         * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
2715         instead of current_regcache.
2716
2717         * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
2718         of calling write_register.
2719         * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
2720         parameter instead of current_regcache.
2721
2722         * mips-tdep.c (mips2_fp_compat): Add FRAME parameter.  Use it 
2723         instead of calling read_register.
2724         (mips_read_fp_register_double, mips_print_fp_register): Update calls.
2725         (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
2726         (mips_n32n64_push_dummy_call): Likewise.
2727         (mips_o32_push_dummy_call): Likewise.
2728         (mips_o64_push_dummy_call): Likewise.
2729
2730         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
2731         parameter instead of current_regcache.
2732
2733         * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
2734         Use it instead of read_register and write_register.
2735         (xtensa_register_read_masked): Likewise.
2736         (xtensa_pseudo_register_read): Update call.
2737         (xtensa_pseudo_register_write): Likewise.
2738         (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
2739         instead of calling read_register.
2740         (xtensa_push_dummy_call): Update comment.
2741
2742 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
2743
2744         * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
2745         by frame_unwind_register_signed calls.
2746         (mips32_scan_prologue): Likewise.  Skip analysis of alloca stack
2747         frame allocations when called with NULL NEXT_FRAME parameter.
2748         (read_next_frame_reg): Remove.
2749
2750         * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter.  Use it
2751         instead of reading the FPSCR register.
2752         (sh_frame_cache): Pass unwound FPSCR register value to
2753         sh_analyze_prologue.
2754         (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
2755
2756         * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter.  Use it
2757         instead of reading the CTBP register.
2758         (v850_frame_cache): Pass unwound CTBP register value to
2759         v850_analyze_prologue.
2760
2761 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
2762
2763         * sh-tdep.h (sh_show_regs): Add FRAME parameter.
2764         * sh-tdep.c (sh_show_regs): Likewise.
2765         (sh_show_regs_command): Pass current frame to sh_show_regs routine.
2766         (sh_generic_show_regs): Add FRAME parameter.  Use register
2767         values from that frame instead of calling read_register.
2768         (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
2769         sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
2770         sh_dsp_show_regs): Likewise.
2771         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
2772         sh64_show_regs): Likewise.
2773
2774 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
2775
2776         * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
2777         current regcache instead of calling read_register.
2778
2779 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
2780
2781         * mep-tdep.c (current_me_module): Read from current regcache
2782         instead of calling read_register.
2783         (current_options): Likewise.
2784
2785 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
2786
2787         * cris-tdep.c (cris_stopped_data_address): Read register values
2788         from current frame instead of calling read_register.
2789         * frv-tdep.c (frv_stopped_data_address): Likewise.
2790
2791 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
2792
2793         * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
2794         instead of write_register (PC_REGNUM, ...).
2795
2796 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
2797
2798         * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
2799         explaining why the PC adjustment code is necessary.
2800
2801 2007-06-15  Vladimir Prus  <vladimir@codesourcery.com>
2802
2803         * m68k-tdep.h (enum m68k_flavour): New. 
2804         (struct gdbarch_tdep): New fields
2805         float_return, flavour and fpregs_present.
2806         * m68k-tdep.c (m68k_register_type): Use
2807         fpregs_present and conditionalize floating
2808         registers type on flavour.
2809         (m68k_register_names): New.
2810         (m68k_register_name): Use the above.
2811         (m68k_convert_register_p): Consult fpregs_present.
2812         (m68k_register_to_value, m68k_value_to_register):
2813         Use register_type to obtain the type of floating
2814         point registers.
2815         (m68k_svr4_extract_return_value): Check tdep->float_return.
2816         Use register_type to get the type of floating
2817         point regiters.
2818         (m68k_svr4_store_return_value): Likewise.
2819         (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
2820         (m68k_analyze_register_saves): Likewise.
2821         (m68k_gdbarch_init): Extract infromation
2822         from XML description, if present.  Guess coldfire by
2823         looking at the file, if present. Conditionalize
2824         setting of long double format.  Set decr_pc_after_break
2825         to 2 on coldfire and fido.  Enable XML-driven
2826         register description.
2827         * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
2828         size of tdep->fpreg_type, as opposed to hardcoded value.
2829         * Makefile.in (m68k-tdep.o): Update dependencies.
2830         
2831 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
2832
2833         * NEWS: Mention "info spu" commands and qXfer:spu:read and
2834         qXfer:spu:write remote packet types.
2835
2836 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
2837
2838         * xml-tdesc.c (tdesc_start_target): New.
2839         (target_attributes): New.
2840         (tdesc_elements): Use it.
2841         * features/gdb-target.dtd: Add #FIXED version attribute for
2842         <target>.
2843
2844 2007-06-13  Arthur Huillet  <arthur.huillet@free.fr>
2845
2846         * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
2847
2848 2007-06-13  Claudio Fontana <claudio.fontana@gmail.com>
2849
2850         * fork-child.c (fork_inferior): Update comment.
2851
2852 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
2853
2854         * features/Makefile: Generate regformats for mips-linux and
2855         mips64-linux.
2856         * features/sort-regs.xsl: Correct typo.
2857         * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
2858         * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
2859         files.
2860
2861 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
2862
2863         * config/mips/linux.mh (TDEP_XML): New.
2864         * features/mips-linux.xml, features/mips64-linux.xml: New files.
2865         * mips-linux-nat.c (mips_linux_register_addr): Handle
2866         MIPS_RESTART_REGNUM.
2867         (mips64_linux_register_addr): Likewise.
2868         (super_xfer_partial, mips_linux_xfer_partial): New.
2869         (_initialize_mips_linux_nat): Add them to the target_ops.
2870         * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
2871         (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
2872         (mips_linux_o32_sigframe_init)
2873         (mips_linux_n32n64_sigframe_init): Likewise.
2874         (mips_linux_write_pc, mips_linux_restart_reg_p): New.
2875         (mips_linux_init_abi): Use mips_linux_write_pc.  Check for the
2876         "org.gnu.gdb.mips.linux" feature.
2877         * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
2878         (mips_linux_restart_reg_p): New prototype.
2879         * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
2880         initialization routine.
2881         * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
2882
2883 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
2884
2885         * Makefile.in (mips-tdep.o): Update.
2886         * mips-tdep.c (struct register_alias, mips_o32_aliases)
2887         (mips_n32_n64_aliases, mips_register_aliases): New.
2888         (mips_register_name): Call tdesc_register_name.
2889         (mips_tdesc_register_reggroup_p): New.
2890         (mips_pseudo_register_type, value_of_mips_user_reg): New.
2891         (mips_gdbarch_init): Add target-described register support.
2892         Register aliases for register names.
2893         * target-descriptions.c (tdesc_register_name): Make global.
2894         (tdesc_register_in_reggroup_p): New function, broken out from
2895         tdesc_register_reggroup_p.
2896         (tdesc_register_reggroup_p): Use it.
2897         * target-descriptions.h (tdesc_register_name)
2898         (tdesc_register_in_reggroup_p): New prototypes.
2899         * NEWS: Correct formatting.  Mention MIPS register support.
2900         * features/mips-cp0.xml, features/mips-fpu.xml,
2901         features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
2902         features/mips64-cpu.xml: New files.
2903
2904 2007-06-13  Markus Deuling  <deuling@de.ibm.com>
2905
2906         * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
2907         * valops.c (value_cast): Likewise.
2908         * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
2909         * ui-out.c (ui_out_field_core_addr): Likewise.
2910         * tracepoint.c (tracepoints_info): Likewise.
2911         * symtab.c (print_msymbol_info): Likewise.
2912         * solib-irix.c (irix_current_sos)
2913         (irix_open_symbol_file_object): Likewise.
2914         * remote.c (build_remote_gdbarch_data): Likewise.
2915         * prologue-value.c (make_pv_area): Likewise.
2916         * procfs.c (info_mappings_callback): Likewise.
2917         * printcmd.c (print_scalar_formatted)
2918         (deprecated_print_address_numeric): Likewise.
2919         * memattr.c (mem_info_command): Likewise.
2920         * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
2921         * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
2922         * exec.c (print_section_info): Likewise.
2923         * dwarf2read.c (read_subrange_type): Likewise.
2924         * dwarf2loc.c (find_location_expression): Likewise.
2925         * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
2926         (signed_address_type, execute_stack_op): Likewise.
2927         * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
2928         * gdbarch.c, gdbarch.h: Regenerate.
2929
2930 2007-06-13  Markus Deuling  <deuling@de.ibm.com>
2931
2932         * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
2933         * arch-utils.c (show_architecture): Likewise.
2934         * remote-mips.c (mips_open): Likewise
2935         * nto-tdep.c (nto_find_and_open_solib)
2936         (nto_init_solib_absolute_prefix): Likewise.
2937         * nto-procfs (procfs_open): Likewise.
2938         * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
2939         * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
2940         * gdbarch.c, gdbarch.h: Regenerate.
2941
2942 2007-06-13  Markus Deuling  <deuling@de.ibm.com>
2943
2944         * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
2945         * gdbtypes.c (build_flt): Likewise.
2946         * gdbarch.c, gdbarch.h: Regenerate.
2947
2948 2007-06-13  Markus Deuling  <deuling@de.ibm.com>
2949
2950         * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
2951         gdbarch_breakpoint_from_pc.
2952         * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
2953         * remote.c (remote_insert_breakpoint)
2954         (remote_insert_hw_breakpoint): Likewise.
2955         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2956         * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
2957         * breakpoint.h (bp_target_info): Likewise (comment).
2958         * breakpoint.c (read_memory_nobpt): Likewise.
2959         * mem-break.c (default_memory_insert_breakpoint): Likewise.
2960         (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
2961         * gdbarch.c, gdbarch.h: Regenerate.
2962
2963 2007-06-13  Markus Deuling  <deuling@de.ibm.com>
2964
2965         * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
2966         * solib-svr4.c (svr4_truncate_ptr): Likewise.
2967         * solib-pa64.c (read_dynamic_info): Likewise.
2968         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
2969         * solib.c (info_sharedlibrary_command): Likewise.
2970         * s390-nat.c (SUBOFF): Likewise.
2971         * p-valprint.c (pascal_val_print): Likewise.
2972         * procfs.c (info_proc_mappings): Likewise.
2973         * printcmd.c (decode_format): Likewise.
2974         * nto-tdep.c (nto_truncate_ptr): Likewise.
2975         * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2976         (mips64_linux_get_longjmp_target): Likewise.
2977         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2978         * jv-valprint.c (java_value_print): Likewise.
2979         * jv-lang.c (get_java_object_header_size): Likewise.
2980         * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
2981         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
2982         (hppa_hpux_unwind_adjust_stub): Likewise.
2983         * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2984         * gdbtypes.c (make_pointer_type, make_reference_type)
2985         (smash_to_memberptr_type): Likewise.
2986         * gdbarch.c, gdbarch.h: Regenerate.
2987
2988 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
2989
2990         * mips-tdep.c (mips_print_register): Remove unused ALL argument.
2991         (print_gp_register_row): Stop before printing a register bigger
2992         than the ABI register size.
2993         (mips_print_registers_info): Update call to mips_print_register.
2994
2995 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
2996
2997         * expression.h (enum exp_opcode): Document a register name for
2998         OP_REGISTER.
2999         * parse.c (write_dollar_variable): Write the register name for
3000         OP_REGISTER.
3001         (operator_length_standard): Expect the register name following
3002         OP_REGISTER.
3003         * ada-lang.c (resolve_subexp): Likewise.
3004         * ax-gdb.c (gen_expr): Likewise.
3005         * eval.c (evaluate_subexp_standard): Likewise.
3006         * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3007         Likewise.
3008         * tracepoint.c (encode_actions): Likewise.
3009
3010 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
3011
3012         * utils.c (set_screen_size): Use INT_MAX for default columns.
3013
3014 2007-06-13  Ulrich Weigand  <uweigand@de.ibm.com>
3015
3016         * remote.c (remote_protocol_features): Add qXfer:spu:read and
3017         qXfer:spu:write packet types.
3018
3019 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
3020
3021         * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
3022         * gdbarch.c, gdbarch.h: Regenerate.
3023
3024 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
3025
3026         * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
3027         gdbarch_stab_reg_to_regnum.
3028         * stabsread.c (define_symbol): Likewise.
3029         * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
3030         gdbarch_ecoff_reg_to_regnum.
3031         * mdebugread.c (parse_symbol): Likewise.
3032         * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
3033         * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
3034         gdbarch_dwarf_reg_to_regnum.
3035         * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
3036         * coffread.c (process_coff_symbol): Likewise.
3037         * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
3038         gdbarch_dwarf2_reg_to_regnum.
3039         * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
3040         (locexpr_describe_location): Likewise.
3041         * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
3042         (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
3043         * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
3044         * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
3045         * gdbarch.c, gdbarch.h: Regenerate.
3046
3047 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
3048
3049         * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
3050         gdbarch_smash_text_address.
3051         * somread.c (som_symtab_read): Likewise.
3052         * elfread.c (record_minimal_symbol): Likewise.
3053         * dbxread.c (process_one_symbol): Likewise.
3054         * coffread.c (coff_symtab_read): Likewise.
3055         * gdbarch.c, gdbarch.h: Regenerate.
3056
3057 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
3058
3059         * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
3060         * findvar.c (value_from_register): Likewise.
3061         * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
3062         * valops.c (value_assign): Likewise.
3063         * gdbarch.sh (CONVERT_REGISTER_P): Replace by
3064         gdbarch_convert_register_p.
3065         * findvar.c (value_from_register): Likewise.
3066         * valops.c (value_assign): Likewise.
3067         * gdbarch.c, gdbarch.h: Regenerate.
3068
3069 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
3070
3071         * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
3072         gdbarch_register_sim_regno.
3073         * sim-regno.h (sim_regno): Likewise (comment).
3074         * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
3075         * gdbarch.c, gdbarch.h: Regenerate.
3076
3077 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
3078
3079         * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
3080         gdbarch_virtual_frame_pointer.
3081         * tracepoint.c (encode_actions): Likewise.
3082         * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
3083         * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
3084         * gdbarch.c, gdbarch.h: Regenerate.
3085
3086 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
3087
3088         * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
3089         * p-lang.c (pascal_create_fundamental_type): Likewise.
3090         * objc-lang.c (objc_create_fundamental_type): Likewise.
3091         * mdebugread.c (_initialize_mdebugread): Likewise.
3092         * m2-lang.c (m2_create_fundamental_type)
3093         (_initialize_m2_language): Likewise.
3094         * gdbtypes.c (build_gdbtypes): Likewise.
3095         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3096         * doublest.c (floatformat_from_length): Likewise.
3097         * c-lang.c (c_create_fundamental_type): Likewise.
3098         * ada-lang.c (ada_create_fundamental_type)
3099         (ada_language_arch_info): Likewise.
3100         * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
3101         * value.c (unpack_double): Likewise (comment).
3102         * gdbtypes.c (build_gdbtypes): Likewise.
3103         * doublest.c (floatformat_from_length): Likewise.
3104         * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
3105         * valarith.c (value_binop): Likewise.
3106         * p-lang.c (pascal_create_fundamental_type): Likewise.
3107         * objc-lang.c (objc_create_fundamental_type): Likewise.
3108         * mdebugread.c (_initialize_mdebugread): Likewise.
3109         * m2-lang.c (m2_create_fundamental_type): Likewise.
3110         * gdbtypes.c (build_gdbtypes): Likewise.
3111         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3112         * doublest.c (floatformat_from_length): Likewise.
3113         * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
3114         * c-lang.c (c_create_fundamental_type): Likewise.
3115         * ada-lex.l (processReal): Likewise.
3116         * ada-lang.c (ada_create_fundamental_type)
3117         (ada_language_arch_info): Likewise.
3118         * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
3119         * value.c (unpack_double): Likewise (comment).
3120         * gdbtypes.c (build_gdbtypes): Likewise.
3121         * doublest.c (floatformat_from_length): Likewise.
3122         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
3123         gdbarch_long_double_bit.
3124         * p-lang.c (pascal_create_fundamental_type): Likewise.
3125         * objc-lang.c (objc_create_fundamental_type): Likewise.
3126         * m2-lang.c (m2_create_fundamental_type): Likewise.
3127         * gdbtypes.c (build_gdbtypes): Likewise.
3128         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3129         * doublest.c (floatformat_from_length): Likewise.
3130         * c-lang.c (c_create_fundamental_type): Likewise.
3131         * ada-lex.l (processReal): Likewise.
3132         * ada-lang.c (ada_create_fundamental_type)
3133         (ada_language_arch_info): Likewise.
3134         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
3135         gdbarch_long_double_format.
3136         * gdbtypes.c (build_gdbtypes): Likewise.
3137         * doublest.c (floatformat_from_length): Likewise.
3138         * gdbarch.c, gdbarch.h: Regenerate.
3139
3140 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
3141
3142         * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
3143         * ada-lang.c (ada_create_fundamental_type)
3144         (ada_language_arch_info): Likewise.
3145         * c-lang.c (c_create_fundamental_type): Likewise.
3146         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3147         * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3148         * m2-lang.c (m2_create_fundamental_type): Likewise.
3149         * objc-lang.c (objc_create_fundamental_type): Likewise.
3150         * p-lang.c (pascal_create_fundamental_type): Likewise.
3151         * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
3152         * c-exp.y (parse_number): Likewise.
3153         * objc-exp.y (parse_number): Likewise.
3154         * ada-lex.l (processInt): Likewise.
3155         * f-exp.y (parse_number): Likewise.
3156         * p-exp.y (parse_number): Likewise.
3157         * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
3158         (gdbtypes_post_init, build_gdbtypes): Likewise.
3159         * p-lang.c (pascal_create_fundamental_type): Likewise.
3160         * parse.c (build_parse): Likewise.
3161         * xcoffread.c (_initialize_xcoffread): Likewise.
3162         * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
3163         (read_range_type): Likewise.
3164         * objc-lang.c (objc_create_fundamental_type): Likewise.
3165         * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
3166         * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
3167         (m2_create_fundamental_type): Likewise.
3168         * c-lang.c (c_create_fundamental_type): Likewise.
3169         * coffread.c (coff_read_enum_type): Likewise.
3170         * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
3171         * dwarf2read.c (new_symbol): Likewise.
3172         * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
3173         * c-exp.y (parse_number): Likewise.
3174         * objc-exp.y (parse_number): Likewise.
3175         * ada-lex.l (processInt): Likewise.
3176         * f-exp.y (parse_number): Likewise.
3177         * p-exp.y (parse_number): Likewise.
3178         * valarith.c (value_binop): Likewise.
3179         * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
3180         * ada-lang.c (ada_create_fundamental_type)
3181         (ada_language_arch_info): Likewise.
3182         * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3183         * symfile.c (TARGET_LONG_BYTES): Likewise.
3184         * p-lang.c (pascal_create_fundamental_type): Likewise.
3185         * objc-lang.c (objc_create_fundamental_type): Likewise.
3186         * m2-lang.c (m2_create_fundamental_type): Likewise.
3187         * f-lang.c (f_create_fundamental_type): Likewise.
3188         * c-lang.c (c_create_fundamental_type): Likewise.
3189         * coffread.c (decode_base_type): Likewise.
3190         * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
3191         * c-exp.y (parse_number): Likewise.
3192         * objc-exp.y (parse_number): Likewise.
3193         * p-exp.y (parse_number): Likewise.
3194         * ada-lang.c (ada_create_fundamental_type)
3195         (ada_language_arch_info): Likewise.
3196         * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
3197         * stabsread.c (read_range_type): Likewise.
3198         * p-lang.c (pascal_create_fundamental_type): Likewise.
3199         * objc-lang.c (objc_create_fundamental_type): Likewise.
3200         * m2-lang.c (m2_create_fundamental_type): Likewise.
3201         * f-lang.c (f_create_fundamental_type): Likewise.
3202         * c-lang.c (c_create_fundamental_type): Likewise.
3203         * gdbarch.c, gdbarch.h: Regenerate.
3204
3205 2007-06-12  Andreas Schwab  <schwab@suse.de>
3206
3207         * frame-unwind.h (frame_dealloc_cache_ftype): Define.
3208         (struct frame_unwind): Add dealloc_cache.
3209         * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
3210
3211         * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
3212         * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
3213         (libunwind_frame_unwind): Set dealloc_cache.
3214         * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
3215
3216 2007-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
3217             Markus Deuling  <deuling@de.ibm.com>
3218
3219         * remote.c (remote_write_qxfer): New function.
3220         (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
3221         (remote_read_qxfer): Do not cache empty objects.
3222         (_initialize_remote): Add PACKET_qXfer_spu_read and
3223         PACKET_qXfer_spu_write.
3224
3225 2007-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
3226
3227         * target.h (enum target_object): Add TARGET_OBJECT_SPU.
3228         * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
3229
3230         * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
3231         (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
3232         SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
3233         * spu-tdep.c (infospucmdlist): New variable.
3234         (spu_register_name): Handle additional pseudo registers.
3235         (spu_register_type): Likewise.
3236         (spu_pseudo_register_read): Likewise.
3237         (spu_pseudo_register_write): Likewise.
3238         (spu_pseudo_register_read_spu): New function.
3239         (spu_pseudo_register_write_spu): Likewise.
3240         (info_spu_event_command): New function.
3241         (info_spu_signal_command): Likewise.
3242         (info_spu_mailbox_list): Likewise.
3243         (info_spu_mailbox_command): Likewise.
3244         (spu_mfc_get_bitfield): Likewise.
3245         (info_spu_dma_cmdlist): Likewise.
3246         (info_spu_dma_command): Likewise.
3247         (info_spu_proxydma_command): Likewise.
3248         (info_spu_command): Likewise.
3249         (_initialize_spu_tdep): Install "info spu" commands.
3250
3251 2007-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
3252
3253         * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
3254         accessing non-seekable spufs files.
3255
3256 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
3257
3258         * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
3259         gdbarch_skip_trampoline_code.
3260         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3261         * objc-lang.c (objc_skip_trampoline)
3262         (objc_submethod_helper_data): Likewise.
3263         * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
3264         * infrun.c (handle_inferior_event): Likewise.
3265         * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
3266         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
3267         gdbarch_in_solib_return_trampoline.
3268         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3269         * infrun.c (handle_inferior_event): Likewise.
3270         * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
3271         * gdbarch.c, gdbarch.h: Regenerate.
3272
3273 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
3274
3275         * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
3276         * symtab.c (find_function_start_sal, in_prologue): Likewise.
3277         * linespec.c (minsym_found): Likewise.
3278         * infrun.c (step_into_function): Likewise.
3279         * gdbarch.c, gdbarch.h: Regenerate.
3280
3281 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
3282
3283         * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
3284         * valops.c (value_allocate_space_in_inferior): Likewise.
3285         * gdbarch.c, gdbarch.h: Regenerate.
3286
3287 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
3288
3289         * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
3290         gdbarch_memory_insert_breakpoint.
3291         * mem-break.c (memory_insert_breakpoint): Likewise.
3292         * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
3293         gdbarch_memory_remove_breakpoint.
3294         * mem-break.c (memory_remove_breakpoint): Likewise.
3295         * gdbarch.c, gdbarch.h: Regenerate.
3296
3297 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
3298
3299         * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
3300         gdbarch_fetch_tls_load_module_address.
3301         * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
3302         gdbarch_fetch_tls_load_module_address_p.
3303         * gdbarch.c, gdbarch.h: Regenerate.
3304
3305 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
3306
3307         * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
3308         gdbarch_decr_pc_after_break.
3309         * tracepoint.c (trace_dump_command): Likewise.
3310         * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
3311         * linux-thread-db.c (check_event): Likewise.
3312         * linux-nat.c (cancel_breakpoints_callback): Likewise.
3313         * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
3314         * frame.h: Likewise (comment).
3315         * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
3316         * aix-thread.c (aix_thread_wait): Likewise.
3317         * gdbarch.c, gdbarch.h: Regenerate.
3318
3319 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
3320
3321         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
3322         gdbarch_address_class_type_flags.
3323         * dwarf2read.c (read_tag_pointer_type): Likewise.
3324         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
3325         gdbarch_address_class_type_flags_p.
3326         * dwarf2read.c (read_tag_pointer_type): Likewise.
3327         * gdbarch.c, gdbarch.h: Regenerate.
3328
3329 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
3330
3331         * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
3332         * value.c (value_as_address): Likewise (comment).
3333         * remote-mips.c (common_breakpoint): Likewise.
3334         * regcache.c (read_pc_pid): Likewise.
3335         * printcmd.c (do_one_display): Likewise.
3336         * monitor.c (monitor_write_memory, monitor_read_memory)
3337         (monitor_insert_breakpoint): Likewise.
3338         * mips-tdep.c (heuristic_proc_start): Likewise.
3339         * infrun.c (insert_step_resume_breakpoint_at_frame)
3340         (insert_step_resume_breakpoint_at_caller): Likewise.
3341         * buildsym.c (record_line): Likewise.
3342         * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
3343         (arm_get_next_pc): Likewise.
3344         * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
3345         (store_regs): Likewise.
3346         * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
3347         * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
3348         * gdbarch.c, gdbarch.h: Regenerate.
3349
3350 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
3351
3352         * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
3353         * tracepoint.c (scope_info): Likewise.
3354         * target.c (debug_print_register): Likewise.
3355         * stack.c (frame_info): Likewise.
3356         * sh-tdep.c (sh_register_reggroup_p): Likewise.
3357         * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
3358         (sh64_media_print_registers_info)
3359         (sh64_compact_print_registers_info): Likewise.
3360         * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
3361         * remote-sim.c (gdbsim_fetch_register): Likewise.
3362         * remote.c (packet_reg): Likewise (comment).
3363         * reggroups.c (default_register_reggroup_p): Likewise.
3364         * regcache.c (regcache_dump): Likewise.
3365         * printcmd.c (address_info): Likewise.
3366         * ppc-linux-nat.c (fetch_register, store_register): Likewise.
3367         * mt-dep.c (mt_registers_info): Likewise.
3368         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
3369         * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
3370         (mips_read_fp_register_double, mips_print_fp_register)
3371         (mips_print_register, print_gp_register_row, mips_print_registers_info)
3372         (mips_register_sim_regno): Likewise.
3373         * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
3374         * inf-ptrace.c (inf_ptrace_fetch_register)
3375         (inf_ptrace_store_register): Likewise.
3376         * infcmd.c (default_print_registers_info): Likewise.
3377         * ia64-linux-nat.c (ia64_linux_fetch_register)
3378         (ia64_linux_store_register): Likewise.
3379         * i386-linux-nat.c (fetch_register, store_register): Likewise.
3380         * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
3381         * hppa-linux-nat.c (fetch_register, store_register): Likewise.
3382         * hppa-hpux-nat.c (hppa_hpux_fetch_register)
3383         (hppa_hpux_store_register): Likewise.
3384         * findvar.c (locate_var_value): Likewise.
3385         * dwarf2loc.c (locexpr_describe_location): Likewise.
3386         * dwarf2-frame.c (execute_cfa_program): Likewise.
3387         * arm-tdep.c (arm_push_dummy_call): Likewise.
3388         * arch-utils.c (legacy_register_sim_regno): Likewise.
3389         * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
3390         * alpha-nat.c (fetch_osf_core_registers): Likewise.
3391         * mi/mi-main.c (mi_cmd_data_list_register_names)
3392         (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
3393         (mi_cmd_data_write_register_values): Likewise.
3394         * gdbarch.c, gdbarch.h: Regenerate.
3395
3396 2007-06-07  Daniel Jacobowitz  <dan@codesourcery.com>
3397
3398         * target-memory.c (blocks_to_erase): Correct off-by-one error.
3399
3400 2007-06-06  Vladimir Prus  <vladimir@codesourcery.com>
3401         
3402         * remote.c (process_g_packet): Don't check size.
3403         * gdbarch.sh: Remove register_bytes_ok.
3404         * gdbarch.c: Regenerated.
3405         * gdbarch.h: Regenerated.
3406         * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
3407         (m68k_register_bytes_ok): Remove.
3408         (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
3409         
3410 2007-06-06  Andreas Schwab  <schwab@suse.de>
3411
3412         * libunwind-frame.c (unw_destroy_addr_space_p): Define.
3413         (destroy_addr_space_name): Define.
3414         (libunwind_load): Get address of destroy_addr_space function.
3415         (libunwind_frame_cache): Destroy unw_addr_space_t object before
3416         returning unsuccessfully.
3417         (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
3418         returning.
3419         (libunwind_sigtramp_frame_sniffer): Likewise.
3420         (libunwind_get_reg_special): Likewise.
3421
3422 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
3423
3424         * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
3425         gdbarch_fetch_pointer_argument.
3426         * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
3427         * gdbarch.c, gdbarch.h: Regenerate.
3428
3429 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
3430
3431         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
3432         gdbarch_have_nonsteppable_watchpoint.
3433         * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
3434         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
3435         gdbarch_cannot_step_breakpoint.
3436         * infrun.c (resume): Likewise.
3437         * gdbarch.c, gdbarch.h: Regenerate.
3438
3439 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
3440
3441         * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
3442         * stack.c (print_frame_args): Likewise.
3443         * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
3444         * stack.c (print_args_stub, frame_info): Likewise.
3445         * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
3446         * stack.c (print_args_stub, frame_info): Likewise.
3447         * gdbarch.c, gdbarch.h: Regenerate.
3448
3449 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
3450
3451         * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
3452         gdbarch_coff_make_msymbol_special.
3453         * coffread.c (coff_symtab_read): Likewise.
3454         * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
3455         gdbarch_elf_make_msymbol_special.
3456         * elfread.c (elf_symtab_read): Likewise.
3457         * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
3458         * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
3459         * gdbarch.c, gdbarch.h: Regenerate.
3460
3461 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
3462
3463         * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
3464         gdbarch_frame_red_zone_size.
3465         * gdbarch.c, gdbarch.h: Regenerate.
3466
3467 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
3468
3469         * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
3470         * infcall.c (call_function_by_hand): Likewise.
3471         * gcore.c (derive_stack_segment): Likewise.
3472         * frame.c (frame_id_inner): Likewise.
3473         * arch-utils.c (core_addr_lessthan): Likewise (comment).
3474         * ada-lang.c (ensure_lval): Likewise.
3475         * gdbarch.c, gdbarch.h: Regenerate.
3476
3477 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
3478
3479         * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
3480         gdbarch_address_to_pointer.
3481         * findvar.c (store_typed_address): Likewise.
3482         * gdbtypes.c (make_pointer_type): Likewise (comment).
3483         * procfs.c (procfs_address_to_host_pointer): Likewise.
3484         * std-regs.c (value_of_builtin_frame_reg): Likewise.
3485         (value_of_builtin_frame_fp_reg): Likewise.
3486         (value_of_builtin_frame_pc_reg): Likewise.
3487         * utils.c (paddress): Likewise (comment).
3488         * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
3489         gdbarch_pointer_to_address.
3490         * findvar.c (extract_typed_address): Likewise.
3491         * gdbtypes.c (make_pointer_type): Likewise (comment).
3492         * valops.c (value_cast): Likewise (comment).
3493         * gdbarch.c, gdbarch.h: Regenerate.
3494
3495 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
3496
3497         * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
3498         * infrun.c (handle_inferior_event): Likewise.
3499         * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
3500         gdbarch_get_longjmp_target_p.
3501         * breakpoint.c (breakpoint_re_set): Likewise.
3502         * infrun.c (handle_inferior_event): Likewise.
3503         * gdbarch.c, gdbarch.h: Regenerate.
3504
3505 2007-06-06  Ulrich Weigand  <uweigand@de.ibm.com>
3506
3507         * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
3508         HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
3509         HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
3510         hp_cxx_exception_support, hp_cxx_exception_support_initialized,
3511         eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
3512         eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
3513         find_stub_with_shl_get, cover_find_stub_with_shl_get,
3514         initialize_hp_cxx_exception_support, child_enable_exception_callback,
3515         current_ex_event, child_get_current_exception_event): Remove.
3516         (hppa_hpux_inferior_created): Remove.
3517         (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
3518
3519         * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
3520         (deprecated_exception_support_initialized): Remove.
3521         * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
3522         (deprecated_exception_support_initialized): Remove.
3523         (breakpoint_init_inferior): Remove handling of non-zero
3524         deprecated_exception_catchpoints_are_fragile.
3525
3526         * symtab.h (deprecated_hp_som_som_object_present): Remove.
3527         * symtab.c (deprecated_hp_som_som_object_present): Remove.
3528         * c-typeprint.c (c_type_print_base): Remove handling of non-zero
3529         deprecated_hp_som_som_object_present.
3530         * eval.c (evaluate_subexp_standard): Likewise.
3531         * valops.c (value_cast): Likewise.
3532
3533         * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
3534         * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
3535         * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
3536
3537 2007-06-06  Ulrich Weigand  <uweigand@de.ibm.com>
3538
3539         * objfiles.h (ImportEntry, ExportEntry): Remove types.
3540         (struct objfile): Remove import_list, import_list_size,
3541         export_list, export_list_size members.
3542         (is_in_import_list): Remove prototype.
3543         * objfiles.c (is_in_import_list): Remove.
3544         * somread.c (init_import_symbols, init_export_symbols): Remove.
3545         (som_symfile_read): Do not call init_import_symbols.  Do not
3546         set objfile->export_list and objfile->export_list_size.
3547
3548 2007-06-05  Daniel Jacobowitz  <dan@codesourcery.com>
3549
3550         * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
3551         Use the original objfile if necessary.
3552
3553 2007-06-04  Daniel Jacobowitz  <dan@codesourcery.com>
3554
3555         * defs.h (ldirname): New prototype.
3556         * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
3557         missing.
3558         * utils.c (ldirname): New function.
3559         * xml-tdesc.c (file_read_description_xml): Use ldirname.
3560
3561 2007-06-01  Ulrich Weigand  <uweigand@de.ibm.com>
3562
3563         * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
3564
3565 2007-06-01  Joel Brobecker  <brobecker@adacore.com>
3566
3567         * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
3568
3569 2007-06-01  Ulrich Weigand  <uweigand@de.ibm.com>
3570
3571         * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
3572
3573 2007-06-01  Ulrich Weigand  <uweigand@de.ibm.com>
3574
3575         * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
3576         INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
3577         (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
3578         PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
3579         (ppc_linux_in_sigtramp, insn_is_sigreturn,
3580         ppc_linux_at_sigtramp_return_path): Remove.
3581
3582 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
3583
3584         * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
3585         (xtensa_register_write_masked, xtensa_register_read_masked)
3586         (xtensa_extract_return_value, xtensa_store_return_value
3587         (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace 
3588         TARGET_BYTE_ORDER by gdbarch_byte_order.
3589         * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
3590         (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
3591         (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
3592         * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
3593         (sh64_push_dummy_call, sh64_extract_return_value)
3594         (sh64_store_return_value, sh64_register_convert_to_virtual)
3595         (sh64_register_convert_to_raw, sh64_pseudo_register_read)
3596         (sh64_pseudo_register_write, sh64_do_fp_register)
3597         (sh64_frame_prev_register): Likewise.
3598         * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
3599         (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
3600         * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
3601         (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
3602         * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
3603         * ppc-linux-nat.c (store_register): Likewise.
3604         * nto-tdep.c (nto_find_and_open_solib)
3605         (nto_init_solib_absolute_prefix): Likewise.
3606         * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
3607         (mips_convert_register_p, mips_eabi_push_dummy_call)
3608         (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
3609         (mips_o32_push_dummy_call, mips_o32_return_value)
3610         (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
3611         (mips_read_fp_register_single, mips_read_fp_register_double)
3612         (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
3613         (mips_breakpoint_from_pc): Likewise.
3614         * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
3615         * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
3616         (mips_linux_o32_sigframe_init): Likewise.
3617         * m32r-tdep.c (m32r_memory_insert_breakpoint)
3618         (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
3619         * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
3620         (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
3621         * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
3622         * coffread.c (process_coff_symbol): Likewise.
3623         * arm-tdep.c (convert_from_extended, convert_to_extended)
3624         (gdb_print_insn_arm): Likewise.
3625
3626 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
3627
3628         * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
3629         * i386-tdep.c (i386_dbx_reg_to_regnum)
3630         (i386_svr4_reg_to_regnum): Likewise.
3631         * inf-ptrace.c (inf_ptrace_fetch_registers)
3632         (inf_ptrace_store_registers): Likewise.
3633         * corelow.c (get_core_registers): Likewise.
3634         * i386-linux-nat.c (supply_gregset, fill_gregset)
3635         (i386_linux_fetch_inferior_registers)
3636         (i386_linux_store_inferior_registers): Likewise.
3637         * remote.c (init_remote_state,packet_reg_from_regnum)
3638         (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
3639         (remote_prepare_to_store,store_registers_using_G)
3640         (remote_store_registers,remote_arch_state): Likewise.
3641         * tracepoint.c (encode_actions): Likewise.
3642         * mi/mi-main.c (mi_cmd_data_list_register_names)
3643         (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
3644         (mi_cmd_data_write_register_values): Likewise.
3645         * tui/tui-regs.c (tui_show_register_group)
3646         (tui_show_register_group): Likewise.
3647         * xtensa-tdep.h (FP_ALIAS): Likewise.
3648         * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
3649         (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
3650         (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
3651         * win32-nat.c (do_win32_fetch_inferior_registers)
3652         (do_win32_store_inferior_registers,fetch_elf_core_registers
3653         * user-regs.h: Likewise (comment).
3654         * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
3655         * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
3656         * target-descriptions.h: Likewise (comment).
3657         * target-descriptions.c (tdesc_use_registers): Likewise (comment).
3658         * target.c (debug_print_register): Likewise.
3659         * stack.c (frame_info): Likewise.
3660         * stabsread.c (define_symbol): Likewise.
3661         * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
3662         (sh64_media_print_registers_info)
3663         (sh64_compact_print_registers_info): Likewise.
3664         * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
3665         * rs6000-nat.c (fetch_register,store_register): Likewise.
3666         * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
3667         (gdbsim_fetch_register,gdbsim_store_register): Likewise.
3668         * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
3669         * remote-m32r-sdi.c (m32r_fetch_registers)
3670         (m32r_store_registers): Likewise.
3671         * reggroups.c (default_register_reggroup_p): Likewise.
3672         * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
3673         (regcache_restore,regcache_dump): Likewise.
3674         * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
3675         * mips-tdep.c (mips_xfer_register,mips_register_name)
3676         (mips_register_reggroup_p,mips_pseudo_register_read)
3677         (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
3678         (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
3679         (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
3680         (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
3681         (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
3682         (print_gp_register_row,mips_print_registers_info)
3683         (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
3684         (mips_register_sim_regno): Likewise.
3685         * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
3686         (mips_linux_n32n64_sigframe_init): Likewise.
3687         * mips-linux-nat.c (mips_linux_register_addr)
3688         (mips64_linux_register_addr): Likewise.
3689         * findvar.c (value_of_register): Likewise.
3690         * infcmd.c (default_print_registers_info,registers_info)
3691         (print_vector_info,print_float_info): Likewise.
3692         * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
3693         * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
3694         * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
3695         * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
3696         * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3697         * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
3698         (ia64_cannot_store_register,ia64_linux_fetch_registers)
3699         (ia64_linux_store_registers): Likewise.
3700         * hpux-thread.c (hpux_thread_fetch_registers)
3701         (hpux_thread_store_registers): Likewise.
3702         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
3703         (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
3704         (h8300_register_type): Likewise.
3705         * dwarf2-frame.c (dwarf2_frame_cache)
3706         (dwarf2_frame_state_alloc_regs): Likewise.
3707         * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
3708         (cris_cannot_store_register,crisv32_cannot_fetch_register)
3709         (crisv32_cannot_store_register,cris_register_name): Likewise.
3710         * avr-tdep.c (avr_frame_unwind_cache): Likewise.
3711         * arch-utils.c (legacy_register_sim_regno)
3712         (legacy_virtual_frame_pointer): Likewise.
3713         * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
3714         * arm-tdep.h: Likewise (comment).
3715         * frv-tdep.c (frv_register_sim_regno): Likewise.
3716         * m68klinux-nat.c (old_fetch_inferior_registers)
3717         (old_store_inferior_registers): Likewise.
3718         * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
3719         * irix5-nat.c (fetch_core_registers): Likewise.
3720         * hppa-tdep.c (hppa_frame_cache): Likewise.
3721         * hppa-linux-nat.c (hppa_linux_register_addr)
3722         (hppa_linux_fetch_inferior_registers)
3723         (hppa_linux_store_inferior_registers): Likewise.
3724         * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
3725         (hppa_hpux_store_inferior_registers): Likewise.
3726         * amd64-nat.c (amd64_native_gregset_reg_offset)
3727         (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
3728         * dbug-rom.c (dbug_regname): Likewise.
3729         * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
3730         (HARD_PAGE_REGNUM (comment)): Likewise.
3731         * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
3732         * i386-tdep.c (i386_dbx_reg_to_regnum)
3733         (i386_svr4_reg_to_regnum): Likewise.
3734         * mi/mi-main.c (mi_cmd_data_list_register_names)
3735         (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
3736         (mi_cmd_data_write_register_values): Likewise.
3737         * gdbarch.c, gdbarch.h: Regenerate.
3738         * tui/tui-regs.c (tui_show_register_group): Likewise.
3739         * xtensa-tdep.h (FP_ALIAS): Likewise.
3740         * user-regs.h: Likewise (comment).
3741         * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
3742         * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
3743         * target-descriptions.h: Likewise (comment).
3744         * target.c (debug_print_register): Likewise.
3745         * stack.c (frame_info): Likewise.
3746         * stabsread.c (define_symbol): Likewise.
3747         * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
3748         (sh64_compact_print_registers_info): Likewise.
3749         * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
3750         * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
3751         (regcache_restore,regcache_dump): Likewise.
3752         * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
3753         (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
3754         (mips_stab_reg_to_regnum): Likewise.
3755         * findvar.c (value_of_register): Likewise.
3756         * infcmd.c (default_print_registers_info,registers_info)
3757         (print_vector_info,print_float_info): Likewise.
3758         * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
3759         * h8300-tdep.c (h8300_register_type): Likewise.
3760         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3761         * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
3762         * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
3763         (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
3764         * parse.c: Remove comment.
3765         * gdbarch.c, gdbarch.h: Regenerate
3766
3767 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
3768
3769         * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
3770         gdbarch_cannot_fetch_register.
3771         * alpha-nat.c (fetch_osf_core_registers): Likewise.
3772         * hppa-linux-nat.c (fetch_register): Likewise.
3773         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
3774         * m68klinux-nat.c (fetch_register): Likewise.
3775         * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
3776         Likewise.
3777         * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
3778         gdbarch_cannot_store_register.
3779         * hppa-linux-nat.c (store_register): Likewise.
3780         * inf-ptrace.c (inf_ptrace_store_register): Likewise.
3781         * regcache.c (regcache_raw_write): Likewise.
3782         * m68klinux-nat.c (store_register): Likewise.
3783         * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
3784         * gdbarch.c, gdbarch.h: Regenerate.
3785
3786 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
3787
3788         * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
3789         * gdbarch.c, gdbarch.h: Regenerate.
3790
3791 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
3792
3793         * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
3794         * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3795         * gdbarch.c, gdbarch.h: Regenerate.
3796
3797 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
3798
3799         * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
3800         * ax-gdb.c (gen_bitfield_ref): Likewise.
3801         * mi/mi-main.c (get_register): Likewise.
3802         * findvar.c (default_value_from_register, extract_signed_integer)
3803         (extract_unsigned_integer, extract_long_unsigned_integer)
3804         (store_signed_integer, store_unsigned_integer): Likewise.
3805         * regcache.c (regcache_dump): Likewise.
3806         * value.c (lookup_internalvar, value_of_internalvar)
3807         (set_internalvar): Likewise.
3808         * defs.h: Likewise.
3809         * valprint.c (print_binary_chars, print_octal_chars)
3810         (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
3811         * infcmd.c (default_print_registers_info): Likewise.
3812         * arch-utils.c (selected_byte_order, show_endian): Likewise.
3813         * stabsread.c (define_symbol): Likewise.
3814         * doublest.c (floatformat_from_length, floatformat_from_type)
3815         (extract_typed_floating, store_typed_floating): Likewise.
3816         * gdbarch.c, gdbarch.h: Regenerate.
3817
3818 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
3819
3820         * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
3821         gdbarch_call_dummy_location.
3822         * infcall.c (call_function_by_hand): Likewise.
3823         * inferior.h: Change comment.
3824         * arch-utils.c: Change comment.
3825         * gdbarch.c, gdbarch.h: Regenerate.
3826
3827 2007-05-28  Joel Brobecker  <brobecker@adacore.com>
3828
3829         * solib-aix5.c: Delete.
3830         * Makefile.in (solib-aix5.o): Delete rule.
3831
3832 2007-05-23  Daniel Jacobowitz  <dan@codesourcery.com>
3833
3834         * breakpoint.h (enum bpstat_what_main_action): Remove
3835         BPSTAT_WHAT_THROUGH_SIGTRAMP.
3836         * infrun.c (process_event_stop_test): Do not check for it.
3837
3838 2007-05-22  Chris Dearman  <chris@mips.com>
3839             Maciej W. Rozycki  <macro@mips.com>
3840
3841         * ser-unix.c (show_serial_hwflow): New function.
3842         (hardwire_raw): Add hardware flow control support.
3843         (_initialize_ser_hardwire): Add "set/show remoteflow".
3844         * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
3845         * NEWS: Document the new command.
3846
3847 2007-05-21  Ulrich Weigand  <uweigand@de.ibm.com>
3848
3849         * config/i386/tm-linux.h (sys_quotactl): Do not define.
3850         * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
3851         define for i[[3456]]86-*-linux* native configurations.
3852         * config.in, configure: Regenerate.
3853
3854 2007-05-19  Joel Brobecker  <brobecker@adacore.com>
3855
3856         * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
3857         a core file. Add comment in the function description.
3858
3859 2007-05-18  Caroline Tice  <ctice@apple.com>
3860
3861         * c-valprint.c (c_value_print):  If the initialized field of the
3862         value struct is 0, print out "[uninitialized]" before the value.
3863         * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field; 
3864         allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a 
3865         DW_OP_regx op; add case for DW_OP_GNU_uninit and update
3866         ctx->initialized appropriately. Verify no location op follows
3867         DW_OP_GNU_uninit.
3868         * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
3869         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to 
3870         set_value_initialized.
3871         * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
3872         (decode_locdesc): Add case for DW_OP_GNU_uninit.
3873         * value.c (struct value):  New field, initialized.
3874         (allocate_value): Initialize new field.
3875         (set_value_initialized): New function.
3876         (value_initialized): New function.
3877         * value.h (value_initialized): New extern declaration.
3878         (set_value_initialized): Likewise.
3879         
3880 2007-05-18  Caroline Tice  <ctice@apple.com>
3881
3882         * MAINTAINERS (Write After Approval): Add self.
3883         
3884 2007-05-17  Joel Brobecker  <brobecker@adacore.com>
3885
3886         * gdbtypes.c (make_reference_type): Preserve the type chain
3887         and set the length of all the variants of the pointer type.
3888
3889 2007-05-17  Joel Brobecker  <brobecker@adacore.com>
3890
3891         * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
3892         and set the length of all the variants of the pointer type.
3893
3894 2007-05-17  Maciej W. Rozycki  <macro@mips.com>
3895
3896         * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
3897         comment.
3898         (mips_o64_push_dummy_call): Reformat a comment.
3899
3900 2007-05-17  Qinwei  <qinwei@sunnorth.com.cn>
3901
3902         * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
3903         (score_prologue_frame_base_address): Return fp to keep gdb print
3904         local variables correctly when debugging information is stabs.
3905
3906         (score_analyze_prologue): For software watchpoint, fetch all the
3907         instructions from range [startaddr, pc] once and identify them locally
3908         to reduce memory access.
3909         (score_malloc_and_get_memblock, score_free_memblock)
3910         (score_adjust_memblock_ptr): New functions.
3911         (score_fetch_inst): Fetch single instruction or mutiple instructions.
3912
3913         (score_target_can_use_watch, score_stopped_by_watch)
3914         (score_target_insert_watchpoint, score_target_remove_watchpoint)
3915         (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
3916         New functions for remote & local hw-watchpoint and hw-breakpoint.
3917
3918 2007-05-16  Alfred M. Szmidt  <ams@gnu.org>
3919
3920         * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
3921         declarations as well.
3922
3923 2007-05-16  Ulrich Weigand  <uweigand@de.ibm.com>
3924
3925         * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
3926         * config/arm/tm-embed.h: Delete file.
3927
3928         * arm-tdep.h (arm_software_single_step): Declare.
3929         * arm-tdep.c (arm_software_single_step): Make global.
3930         (arm_gdbarch_init): Move set_gdbarch_software_single_step call
3931         from here to ...
3932         * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
3933         * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
3934         * armobsd-tdep.c (armobsd_init_abi): ... here ...
3935         * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
3936
3937         * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
3938         allow defines to be overriden by TM file.
3939         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise.  Also,
3940         change default to {0xbe,0xbe}.
3941         * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
3942         arm_obsd_thumb_be_breakpoint): New global variables.
3943         (armobsd_init_abi): Override tdep->thumb_breakpoint and
3944         tdep->thumb_breakpoint_size.
3945         * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
3946         (arm_wince_init_abi): Override tdep->thumb_breakpoint and 
3947         tdep->thumb_breakpoint_size.
3948
3949         * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
3950
3951 2007-05-16  Daniel Jacobowitz  <dan@codesourcery.com>
3952
3953         * NEWS: Mention removed "set mips stack-arg-size" and "set mips
3954         saved-gpreg-size".
3955
3956         * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
3957         (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
3958         (mips_stack_argsize_string, mips_stack_argsize): Delete.
3959         (mips_abi_regsize): Simplify.
3960         (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3961         (mips_n32n64_return_value, mips_o32_push_dummy_call)
3962         (mips_o32_return_value, mips_o64_push_dummy_call)
3963         (mips_o64_return_value): Propogate constant register sizes.  Use the
3964         ABI register size instead of mips_stack_argsize.
3965         (mips_dump_tdep): Don't print mips_stack_argsize.
3966         (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
3967         settings.
3968
3969 2007-05-16  Daniel Jacobowitz  <dan@codesourcery.com>
3970
3971         * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
3972         * config/mips/tm-linux.h: Delete.
3973         * mips-linux-tdep.c (mips_svr4_so_ops): New.
3974         (mips_linux_in_dynsym_resolve_code): Make static.  Use
3975         svr4_in_dynsym_resolve_code.
3976         (mips_linux_init_abi): Initialize mips_svr4_so_ops.  Call
3977         set_solib_ops.
3978         * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
3979         global.
3980         * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
3981         * Makefile.in (mips-linux-tdep.o): Update.
3982         * solib.c (set_solib_ops): New.
3983         (current_target_so_ops): Update comment.
3984         * solib.h (set_solib_ops): New prototype.
3985
3986 2007-05-16  Chris Dearman  <chris@mips.com>
3987
3988         * printcmd.c (do_examine): Fix typos in a comment.
3989
3990 2007-05-16  Richard Sandiford  <richard@codesourcery.com>
3991
3992         * configure.ac: Allow sysroots to be relocated under $prefix as
3993         well as $exec_prefix.
3994         * configure: Regenerate.
3995
3996 2007-05-14  Ulrich Weigand  <uweigand@de.ibm.com>
3997
3998         * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
3999         (offsetof): Do not define.
4000         (find_stub_with_shl_get): Use numerical value 3 instead of
4001         symbolic value TYPE_PROCEDURE.
4002
4003 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
4004
4005         * gdb_proc_service.h (paddr_t): Delete typedef.
4006         * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
4007         (ps_xfer_memory): Take a psaddr_t.  Use ps_addr_to_core_addr.
4008         (ps_pglobal_lookup): Take a psaddr_t *.  Use core_addr_to_ps_addr.
4009         (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
4010         * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
4011         * Makefile.in (proc-service.o): Update.
4012
4013 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
4014
4015         * Makefile.in (mips-tdep.o): Update.
4016         * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
4017         unwinder.
4018
4019 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
4020
4021         * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
4022         instead of store_typed_address.
4023         * value.c (pack_long): New.
4024         (value_from_longest): Use it.
4025         * value.h (pack_long): New prototype.
4026
4027 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
4028
4029         * dwarf2-frame.c (read_encoded_value): Correct typo.  Use
4030         DW_EH_PE_signed if appropriate.
4031
4032 2007-05-14  Paul Brook  <paul@codesourcery.com>
4033             Daniel Jacobowitz  <dan@codesourcery.com>
4034
4035         * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
4036         function.
4037         (dwarf_decode_lines): Check for line info without a file.
4038
4039 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
4040
4041         * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
4042         as hexadecimal.
4043
4044 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
4045
4046         * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
4047         STRUCTOP_STRUCT.
4048         * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
4049         STRUCTOP_STRUCT.
4050         * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
4051
4052 2007-05-14  Ulrich Weigand  <uweigand@de.ibm.com>
4053
4054         * gdbarch.sh (read_sp): Remove.
4055         * gdbarch.c, gdbarch.h: Regenerate.
4056         * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
4057
4058         * avr-tdep.c (avr_read_sp): Remove.
4059         (avr_unwind_sp): New function.
4060         (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
4061         * mips-tdep.c (mips_read_sp): Remove.
4062         (mips_unwind_sp): New function.
4063         (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
4064         * score-tdep.c (score_read_unsigned_register): Remove.
4065         (score_read_sp): Remove.
4066         (score_unwind_sp): New function.
4067         (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
4068
4069 2007-05-14  Maxim Grigoriev  <maxim2405@gmail.com>
4070
4071         * buildsym.c (start_subfile): Handle absolute pathnames
4072         while comparing subfile names.
4073
4074 2007-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
4075
4076         * hppa-hpux-tdep.c: Include "regcache.h".
4077         * hppa-linux-tdep.c: Likewise.
4078         * hppa-tdep.c: Include "gdb_stdint.h".
4079         (find_unwind_entry): Cast host pointer to uintptr_t before passing
4080         it to paddr_nz.
4081         * Makefile.in: Update dependencies.
4082
4083 2007-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
4084
4085         * blockframe.c: Remove obsolete comments.
4086         * alpha-nat.c (fetch_osf_core_registers): Update comment.
4087         * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
4088         * hppa-tdep.h (enum hppa_regnum): Likewise.
4089         * mips-tdep.h: Likewise.
4090         * m68hc11-tdep.c: Likewise.
4091
4092 2007-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
4093
4094         * inferior.h (read_sp): Remove prototype.
4095         * regcache.c (read_sp): Remove.
4096         * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
4097         * infcall.c (call_function_by_hand): Likewise.
4098         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
4099         of calling read_sp.
4100         * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4101
4102 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
4103
4104         * i386-linux-nat.c (i386_linux_resume): Use regcache functions 
4105         instead of read_register and read_register_pid.
4106
4107         * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE 
4108         argument instead of PTID.  Use regcache functions instead of
4109         read_register_pid.
4110         (ia64_linux_insert_watchpoint): Update call.
4111         (ia64_linux_stopped_data_address): Use regcache functions
4112         instead of read_register_pid and write_register_pid.
4113
4114 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
4115
4116         * libunwind-frame.h (struct regcache): Add forward declaration.
4117         (libunwind_get_reg_special): Add REGCACHE argument.
4118         * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
4119         argument.  Pass it to unw_init_remote_p.
4120
4121         * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
4122         libunwind_get_reg_special.
4123         (ia64_access_reg): Remove "write" case.
4124         (ia64_access_fpreg): Likewise.  Read from next_frame passed
4125         as callback argument instead of from current_regcache.
4126         (ia64_access_rse_reg): Remove "write" case.  Read from regcache
4127         passed as callback argument instead of from current_regcache.
4128         (ia64_access_rse_fpreg): New function.
4129         (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
4130
4131 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
4132
4133         * NEWS: Mention SPU overlay support.
4134
4135 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
4136
4137         * spu-tdep.c (spu_frame_unwind_cache): Add comment.
4138
4139 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
4140
4141         * breakpoint.c (remove_breakpoint): Do not remove software
4142         breakpoints in unmapped overlay sections.
4143
4144 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
4145
4146         * spu-tdep.c: Include "observer.h".
4147         (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
4148         (spu_overlay_data): New variable.
4149         (struct spu_overlay_table): New type.
4150         (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
4151         spu_overlay_new_objfile): New functions.
4152         (spu_gdbarch_init): Install spu_overlay_update.
4153         (_initialize_spu_tdep): Register spu_overlay_new_objfile, 
4154         allocate spu_overlay_data objfile data.
4155
4156 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
4157
4158         * gdbarch.sh (overlay_update): New gdbarch function.
4159         (struct obj_section): Add forward declaration.
4160         * gdbarch.c, gdbarch.h: Regenerate.
4161
4162         * symfile.c (simple_overlay_update): Make global.
4163         (target_overlay_update): Remove variable.
4164         (overlay_is_mapped): Call gdbarch_overlay_update instead of
4165         target_overlay_update.
4166         (overlay_load_command): Likewise.
4167         * symfile.h (struct obj_section): Add forward declaration.
4168         (simple_overlay_update): Add prototype.
4169
4170         * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
4171
4172 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
4173
4174         * observer.sh: Add "struct objfile" forward declaration.
4175         * target.h (deprecated_target_new_objfile_hook): Remove.
4176         * symfile.c (deprecated_target_new_objfile_hook): Remove.
4177         (clear_symtab_users): Call observer_notify_new_objfile.
4178         (symbol_file_add_with_addrs_or_offsets): Likewise.
4179         * rs6000-nat.c: Include "observer.h".
4180         (vmap_ldinfo): Call observer_notify_new_objfile.
4181         (xcoff_relocate_core): Likewise.
4182         * remote.c (remote_new_objfile_chain): Remove.
4183         (remote_new_objfile): Do not call remote_new_objfile_chain.
4184         (_initialize_remote): Use observer_attach_new_objfile.
4185         * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
4186         (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
4187         (_initialize_tui_hooks): Use observer_attach_new_objfile.
4188         * aix-thread.c: Include "observer.h".
4189         (target_new_objfile_chain): Remove.
4190         (new_objfile): Do not call target_new_objfile_chain.
4191         (_initialize_aix_thread): Use observer_attach_new_objfile.
4192         * hpux-thread.c: Include "observer.h"
4193         (target_new_objfile_chain): Remove.
4194         (hpux_thread_new_objfile): Make static.  Do not call
4195         target_new_objfile_chain.
4196         (_initialize_hpux_thread): Use observer_attach_new_objfile.
4197         * linux-thread-db.c: Include "observer.h".
4198         (target_new_objfile_chain): Remove.
4199         (thread_db_new_objfile): Do not call target_new_objfile_chain.
4200         (_initialize_thread_db): Use observer_attach_new_objfile.
4201         * sol-thread.c: Include "observer.h".
4202         (target_new_objfile_chain): Remove.
4203         (sol_thread_new_objfile): Make static.  Do not call
4204         target_new_objfile_chain.
4205         (_initialize_sol_thread): Use observer_attach_new_objfile.
4206         * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
4207         rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
4208         $(observer_h).
4209
4210 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
4211
4212         * gdbarch.sh (remote_translate_xfer_address): Remove.
4213         * gdbarch.h, gdbarch.c: Regenerate.
4214         * arch-utils.c (generic_remote_translate_xfer_address): Remove.
4215         * arch-utils.h (generic_remote_translate_xfer_address): Remove.
4216         * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
4217         call gdbarch_remote_translate_xfer_address.
4218         * frv-tdep.c (frv_gdbarch_init): Do not call
4219         set_gdbarch_remote_translate_xfer_address.
4220         * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
4221         (ia64_gdbarch_init): Do not install it.
4222
4223 2007-05-11  Bob Wilson  <bob.wilson@acm.org>
4224
4225         * NEWS: Mention change in handling the -tui option.
4226
4227 2007-05-11  Daniel Jacobowitz  <dan@codesourcery.com>
4228
4229         * linux-thread-db.c (enable_thread_event_reporting): Fix comment
4230         typo.
4231
4232 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
4233
4234         * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
4235         (breakpoint_inserted_here_p): Call it.
4236         (software_breakpoint_inserted_here_p): Likewise.
4237
4238 2007-05-10  Ulrich Weigand  <uweigand@de.ibm.com>
4239
4240         * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
4241         (inf_ptrace_fetch_register): Add register_u_offset callback parameters
4242         GDBARCH and STORE_P.  Handle callback (CORE_ADDR) -1 return value.
4243         (inf_ptrace_store_register): Likewise.
4244         (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
4245         * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
4246
4247         * vax-nat.c (vax_register_u_offset): Adapt parameter list.
4248
4249         * linux-nat.c (linux_trad_target): Adapt parameter list.
4250         * linux-nat.h (linux_trad_target): Likewise.
4251
4252         * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
4253
4254         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
4255         (mips_linux_cannot_store_register): Likewise.
4256         (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
4257         Return (CORE_ADDR) -1 for registers that cannot be fetched or
4258         stored via ptrace.  Use GDBARCH instead of current_gdbarch.
4259         (mips64_linux_register_addr): Likewise.
4260         (mips_linux_register_u_offset): Adapt parameter list.  Pass
4261         GDBARCH and STORE_P on to mips{64}_linux_register_addr.
4262
4263         * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4264         * config/mips/nm-linux.h: Delete file.
4265
4266 2007-05-10  Pedro Alves  <pedro_alves@portugalmail.pt>
4267
4268         * remote.c (remote_detach): Error out if remote can't detach.
4269
4270 2007-05-10  Luis Machado  <luisgpm@br.ibm.com>
4271
4272         * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
4273         instruction's opcode in the "opcode" variable and declares new
4274         variable "closing_insn".
4275
4276 2007-05-10  Chris Dearman  <chris@mips.com>
4277             Maciej W. Rozycki  <macro@mips.com>
4278
4279         * cli/cli-setshow.c (do_setshow_command): Remove trailing
4280         whitespace when setting a var_filename.
4281
4282 2007-05-09  Bob Wilson  <bob.wilson@acm.org>
4283         
4284         * main.c (captured_main): Recognize -tui option and print an error
4285         message when the TUI is not configured.
4286         
4287 2007-05-09  Andreas Schwab  <schwab@suse.de>
4288
4289         * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
4290         set removed members.
4291         (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
4292
4293 2007-05-08  Ulrich Weigand  <uweigand@de.ibm.com>
4294
4295         * gdbarch.sh (deprecated_store_struct_return): Remove.
4296         * gdbarch.c, gdbarch.h: Regenerate.
4297         * frv-tdep.c (frv_store_struct_return): Remove.
4298         (frv_gdbarch_init): Do not install it.
4299
4300 2007-05-08  Ulrich Weigand  <uweigand@de.ibm.com>
4301
4302         * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
4303         * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
4304         * config/nm-linux.h (USE_PROC_FS): Do not undefine.
4305
4306 2007-05-08  Ulrich Weigand  <uweigand@de.ibm.com>
4307
4308         * spu-linux-nat.c: Include "gdb_stdint.h".
4309         (fetch_ppc_register): Use uint64_t instead of unsigned long long.
4310         (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
4311         (fetch_ppc_memory, store_ppc_memory): Fix coding style.
4312         (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
4313         (spu_child_wait): Mark up string for translation.
4314
4315 2007-05-08  Paul Gilliam  <pgilliam@us.ibm.com>
4316             Luis Machado  <luisgpm@br.ibm.com>
4317
4318         * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
4319         STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
4320         BC_INSTRUCTION): Define.
4321         (deal_with_atomic_sequence): New function.
4322         (rs6000_software_single_step): Call deal_with_atomic_sequence.
4323         (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
4324         gdbarch_software_single_step routine.
4325
4326 2007-05-07  Ulrich Weigand  <uweigand@de.ibm.com>
4327
4328         * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
4329         store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
4330         parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
4331         spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
4332         spu_child_post_attach, spu_fetch_inferior_registers,
4333         spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
4334         memory addresses as ULONGEST, not CORE_ADDR.
4335
4336 2007-05-07  Ulrich Weigand  <uweigand@de.ibm.com>
4337
4338         * gdbarch.sh: Add skip_permanent_breakpoint callback.
4339         * gdbarch.h, gdbarch.c: Regenerate.
4340
4341         * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
4342         (resume): Call gdbarch_skip_permanent_breakpoint instead of
4343         SKIP_PERMANENT_BREAKPOINT.  Inline default case.
4344
4345         * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
4346         Add REGCACHE argument.  Use it instead of read/write_register.
4347         (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
4348
4349         * config/pa/tm-hppah.h: Delete file.
4350         * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
4351         * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
4352
4353 2007-05-07  Daniel Jacobowitz  <dan@codesourcery.com>
4354
4355         * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
4356         * NEWS: Mention improved C++ thunk support.
4357         * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
4358         * cp-abi.c (cplus_skip_trampoline): New.
4359         * cp-abi.h (cplus_skip_trampoline): New prototype.
4360         (struct cp_abi_ops): Add skip_trampoline member.
4361         * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
4362         (init_gnuv3_ops): Set skip_trampoline.
4363
4364 2007-05-06  Daniel Jacobowitz  <dan@codesourcery.com>
4365
4366         * rs6000-tdep.c (struct frame_extra_info): Delete.
4367
4368 2007-05-06  Daniel Jacobowitz  <dan@codesourcery.com>
4369
4370         * linux-thread-db.c: Update some FIXME comments.
4371         (thread_db_xfer_partial): Delete.
4372         (init_thread_db_ops): Do not set to_xfer_partial.
4373
4374 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
4375
4376         * inftarg.c, infptrace.c: Remove files.
4377         * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
4378         (inftarg.o, infptrace.o): Remove rules.
4379         * gdbcore.h (register_addr): Remove prototype.
4380         * inferior.h (kill_inferior, store_inferior_registers,
4381         fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
4382         call_ptrace, pre_fork_inferior): Remove prototypes.
4383         * target.h (child_xfer_memory, child_pid_to_exec_file, 
4384         child_core_file_to_sym_file, child_post_attach,
4385         child_post_startup_inferior, child_acknowledge_created_inferior,
4386         child_insert_fork_catchpoint, child_remove_fork_catchpoint,
4387         child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
4388         child_insert_exec_catchpoint, child_remove_exec_catchpoint,
4389         child_follow_fork, child_reported_exec_events_per_exec_call,
4390         child_has_exited, child_thread_alive): Remove prototypes.
4391
4392 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
4393
4394         * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
4395         (sparc_store_inferior_registers): Likewise.
4396         * sparc-nat.c (fetch_inferior_registers): Rename to ...
4397         (sparc_fetch_inferior_registers): ... this.
4398         (store_inferior_registers): Rename to ...
4399         (sparc_store_inferior_registers): ... this.
4400         (sparc_target): Update callback names.
4401         * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise. 
4402         * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise. 
4403
4404 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
4405
4406         * linux-nat.c (child_post_attach): Rename to ...
4407         (linux_child_post_attach): ... this.  Make static.
4408         (child_follow_fork): Rename to ...
4409         (linux_child_follow_fork): ... this.  Make static.
4410         (child_insert_fork_catchpoint): Rename to ...
4411         (linux_child_insert_fork_catchpoint): ... this.  Make static.
4412         (child_insert_vfork_catchpoint): Rename to ...
4413         (linux_child_insert_vfork_catchpoint): ... this.  Make static.
4414         (child_insert_exec_catchpoint): Rename to ...
4415         (linux_child_insert_exec_catchpoint): ... this.  Make static.
4416         (child_pid_to_exec_file): Rename to ...
4417         (linux_child_pid_to_exec_file): ... this.  Make static.
4418         Add prototype.
4419         (linux_handle_extended_wait): Update call.
4420         (linux_xfer_partial): Update callback routine names.
4421
4422 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
4423
4424         * configure.host (alpha*-*-osf[12]*): Remove support.
4425         * NEWS: Mention removed configurations.
4426
4427         * config/alpha/alpha-osf1.mh: Delete file.
4428         * config/alpha/alpha-osf2.mh: Delete file.
4429         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
4430         and infptrace.o.
4431         * config/alpha/nm-osf.h: Delete file.
4432         * config/alpha/nm-osf2.h: Delete file.
4433         * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
4434         (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
4435         (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
4436
4437         * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
4438         (register_addr, kernel_u_size): Remove.
4439         Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
4440
4441 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
4442
4443         * regcache.c (regcache_invalidate): New function.
4444         (register_cached): Remove.
4445         (set_register_cached): Remove.
4446         (deprecated_registers_fetched): Remove.
4447         (registers_changed): Use regcache_invalidate instead
4448         of set_register_cached.
4449         (regcache_raw_read): Update comment.
4450
4451         * regcache.h (regcache_invalidate): Add prototype.
4452         (register_cached): Remove.
4453         (set_register_cached): Remove.
4454         (deprecated_registers_fetched): Remove.
4455
4456         * findvar.c (value_of_register): Do not call register_cached.
4457         * frame.c (frame_register): Likewise.
4458         * tui/tui-regs.c (tui_get_register): Likewise.
4459
4460         * remote.c (fetch_register_using_p): Do not call set_register_cached.
4461         (process_g_packet): Likewise.
4462         (remote_fetch_registers): Likewise.
4463         * remote-sim.c (gdbsim_fetch_register): Likewise.
4464         * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
4465         by regcache_invalidate.
4466         (mt_pseudo_register_write): Likewise.
4467         * sh-tdep.c (sh_pseudo_register_write): Likewise.
4468
4469         * corelow.c (get_core_registers): Replace deprecated_registers_fetched
4470         call by loop over regcache_raw_supply (..., NULL).
4471
4472 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
4473
4474         * target.h (struct target_ops): Add REGCACHE parameter to
4475         to_prepare_to_store.
4476         (target_prepare_to_store): Likewise.
4477         * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
4478         (update_current_target): Adapt prepare_to_store de_fault rule.
4479
4480         * regcache.c (regcache_raw_write): Pass regcache to
4481         target_prepare_to_store.
4482
4483         * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
4484         Do not call CHILD_PREPARE_TO_STORE.
4485         * gnu-nat.c (gnu_prepare_to_store): Likewise.
4486         * procfs.c (procfs_prepare_to_store): Likewise.
4487
4488         * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
4489         * go32-nat.c (go32_prepare_to_store): Likewise.
4490         * monitor.c (monitor_prepare_to_store): Likewise.
4491         * nto-procfs.c (procfs_prepare_to_store): Likewise.
4492         * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
4493         * remote-mips.c (mips_prepare_to_store): Likewise.
4494         * remote-sim.c (gdbsim_prepare_to_store): Likewise.
4495         * win32-nat.c (win32_prepare_to_store): Likewise.
4496
4497         * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
4498         Use it instead of current_regcache.
4499
4500         * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
4501         parameter.  Pass it on to next target.
4502         * sol-thread.c (sol_thread_prepare_to_store): Likewise.
4503
4504 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
4505
4506         * target.h (struct regcache): Add forward declaration.
4507         (struct target_ops): Add REGCACHE parameter to to_fetch_registers
4508         and to_store_registers target operations.
4509         (target_fetch_registers, target_store_registers): Update.
4510
4511         * regcache.c (regcache_raw_read): Replace register_cached by
4512         regcache_valid_p.  Pass regcache to target_fetch_registers.
4513         (regcache_raw_write): Pass regcache to target_store_registers.
4514
4515         * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
4516         store_regs, store_wmmx_regs): Replace register_cached by
4517         regcache_valid_p.
4518
4519         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
4520         to target_fetch_registers calls.
4521         * corelow.c (core_open): Likewise.
4522         * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
4523         * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
4524         ps_lsetfpregs): Likewise.
4525         * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
4526         ps_lsetfpregs): Likewise.
4527         * win32-nat.c (win32_resume): Likewise.
4528         * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
4529         to target_store_registers call.
4530         * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4531
4532         * inferior.h (store_inferior_registers): Update prototype.
4533         (fetch_inferior_registers): Likewise.
4534         * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
4535         * mips-linux-nat.c (super_fetch_registers, super_store_registers):
4536         Update function pointer signatures.
4537
4538         * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
4539         use it instead of current_regcache, update calls.
4540         (aix_thread_store_registers): Likewise.
4541         * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
4542         (alphabsd_store_inferior_registers): Likewise.
4543         * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
4544         (amd64bsd_store_inferior_registers): Likewise.
4545         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
4546         (amd64_linux_store_inferior_registers): Likewise.
4547         * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
4548         store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
4549         fetch_wmmx_regs, store_wmmx_regs): Likewise.
4550         (arm_linux_fetch_inferior_registers): Likewise.
4551         (arm_linux_store_inferior_registers): Likewise.
4552         * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
4553         fetch_fp_regs, armnbsd_fetch_registers): Likewise.
4554         (store_register, store_regs, store_fp_register, store_fp_regs,
4555         armnbsd_store_registers): Likewise.
4556         * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
4557         * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
4558         (bsd_uthread_store_registers): Likewise.
4559         * corelow.c (get_core_registers): Likewise.
4560         * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
4561         go32_store_registers): Likewise.
4562         * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
4563         (hppabsd_store_registers): Likewise.
4564         * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
4565         (hppa_hpux_fetch_inferior_registers): Likewise.
4566         (hppa_hpux_store_register): Likewise.
4567         (hppa_hpux_store_inferior_registers): Likewise.
4568         * hppa-linux-nat.c (fetch_register, store_register): Likewise.
4569         (hppa_linux_fetch_inferior_registers): Likewise.
4570         (hppa_linux_store_inferior_registers): Likewise.
4571         * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
4572         (hpux_thread_store_registers): Likewise.
4573         * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
4574         (i386bsd_store_inferior_registers): Likewise.
4575         * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
4576         gnu_store_registers): Likewise.
4577         * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
4578         store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
4579         Likewise.
4580         (i386_linux_fetch_inferior_registers): Likewise.
4581         (i386_linux_store_inferior_registers): Likewise.
4582         * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
4583         (ia64_linux_fetch_registers): Likewise.
4584         (ia64_linux_store_register): Likewise.
4585         (ia64_linux_store_registers): Likewise.
4586         * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4587         (inf_child_store_inferior_registers): Likewise.
4588         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
4589         (inf_ptrace_fetch_registers): Likewise.
4590         (inf_ptrace_store_register): Likewise.
4591         (inf_ptrace_store_registers): Likewise.
4592         * infptrace.c (fetch_register, store_register): Likewise.
4593         (fetch_inferior_registers, store_inferior_registers): Likewise.
4594         * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
4595         (m32r_linux_fetch_inferior_registers): Likewise.
4596         (m32r_linux_store_inferior_registers): Likewise.
4597         * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
4598         (m68kbsd_store_inferior_registers): Likewise.
4599         * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
4600         store_register, old_store_inferior_registers, fetch_regs, store_regs,
4601         fetch_fpregs, store_fpregs): Likewise.
4602         (m68k_linux_fetch_inferior_registers): Likewise.
4603         (m68k_linux_store_inferior_registers): Likewise.
4604         * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
4605         (m88kbsd_store_inferior_registers): Likewise.
4606         * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
4607         (mips64obsd_store_inferior_registers): Likewise.
4608         * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
4609         (mips64_linux_regsets_store_registers): Likewise.
4610         (mips64_linux_fetch_registers): Likewise.
4611         (mips64_linux_store_registers): Likewise.
4612         * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
4613         (mipsnbsd_store_inferior_registers): Likewise.
4614         * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
4615         (monitor_fetch_registers, monitor_store_registers): Likewise.
4616         * nto-procfs.c (procfs_fetch_registers): Likewise.
4617         (procfs_store_registers): Likewise.
4618         * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
4619         fetch_register, supply_vrregset, fetch_altivec_registers,
4620         fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
4621         (store_altivec_register, store_spe_register, store_register, 
4622         fill_vrregset, store_altivec_registers, store_ppc_registers,
4623         ppc_linux_store_inferior_registers): Likewise.
4624         * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
4625         (ppcnbsd_store_inferior_registers): Likewise.
4626         * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
4627         (ppcobsd_store_registers): Likewise.
4628         * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4629         * remote.c (fetch_register_using_p, process_g_packet,
4630         fetch_registers_using_g, remote_fetch_registers): Likewise.
4631         (store_register_using_P, store_registers_using_G, 
4632         remote_store_registers): Likewise.
4633         * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
4634         m32r_store_register, m32r_store_register): Likewise.
4635         * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
4636         * remote-sim.c (gdbsim_fetch_register): Likewise.
4637         (gdbsim_store_register): Likewise.
4638         * rs6000-nat.c (fetch_register, store_register): Likewise.
4639         (rs6000_fetch_inferior_registers): Likewise.
4640         (rs6000_store_inferior_registers): Likewise.
4641         * s390-nat.c (fetch_regs, store_regs): Likewise.
4642         (fetch_fpregs, store_fpregs): Likewise.
4643         (s390_linux_fetch_inferior_registers): Likewise.
4644         (s390_linux_store_inferior_registers): Likewise.
4645         * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
4646         (shnbsd_store_inferior_registers): Likewise.
4647         * sol-thread.c (sol_thread_fetch_registers): Likewise.
4648         (sol_thread_store_registers): Likewise.
4649         * sparc-nat.c (fetch_inferior_registers): Likewise.
4650         (store_inferior_registers): Likewise.
4651         * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4652         (spu_store_inferior_registers): Likewise.
4653         * target.c (debug_print_register): Likewise.
4654         (debug_to_fetch_registers, debug_to_store_registers): Likewise.
4655         * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
4656         (vaxbsd_store_inferior_registers): Likewise.
4657         * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
4658         (win32_fetch_inferior_registers): Likewise.
4659         (win32_store_inferior_registers): Likewise.
4660
4661 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
4662
4663         * gdbcore.h (struct regcache): Add forward declaration.
4664         (struct core_fns): Add REGCACHE argument to core_read_registers
4665         callback.
4666         * corelow.c (get_core_register_section): Add REGCACHE argument,
4667         use it instead of current_regcache, pass it to core_read_registers
4668         callback.
4669         (get_core_registers): Add current_regcache as parameter to
4670         get_core_register_section calls.
4671
4672         * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
4673         use it instead of current_regcache.
4674         * armnbsd-nat.c (fetch_core_registers): Likewise.
4675         (fetch_elfcore_registers): Likewise.
4676         * core-regset.c (fetch_core_registers): Likewise.
4677         * cris-tdep.c (fetch_core_registers): Likewise.
4678         * irix5-nat.c (fetch_core_registers): Likewise.
4679         * m68klinux-nat.c (fetch_core_registers): Likewise.
4680         * mips-linux-tdep.c (fetch_core_registers): Likewise.
4681         * win32-nat.c (fetch_elf_core_registers): Likewise.
4682
4683 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
4684
4685         * gregset.h (struct regcache): Add forward declaration.
4686         (supply_gregset): Add REGCACHE parameter, make GREGS const.
4687         (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
4688         (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
4689         (fill_gregset): Add REGCACHE parameter.
4690         (fill_fpregset): Likewise.
4691         (fill_fpxregset): Likewise.
4692
4693         Update all definitions accordingly:
4694         * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
4695         arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
4696         i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c, 
4697         m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
4698         s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c 
4699         (supply_gregset): Add REGCACHE parameter, use it instead of 
4700         current_regcache.  Make GREGSETP parameter const, adapt casts.
4701         (supply_fpregset): Add REGCACHE parameter, use it instead of
4702         current_regcache.  Make FPREGSETP parameter const, adapt casts.
4703         (fill_gregset): Add REGCACHE parameter, use it instead of
4704         current_regcache.
4705         (fill_fpregset): Likewise.
4706
4707         Update all callers to pass in current_regcache as the new argument:
4708         * core-regset.c: Include "regcache.h".
4709         (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
4710         * procfs.c: Include "regcache.h".
4711         (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
4712         (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
4713         (procfs_do_thread_registers): Likewise.
4714         (procfs_make_note_section): Likewise.
4715         * proc-service.c: Include "regcache.h".
4716         (ps_lgetregs): Update fill_gregset call.
4717         (ps_lsetregs): Update supply_gregset call.
4718         (ps_lgetfpregs): Update fill_fpregset call.
4719         (ps_lsetfpregs): Update supply_fpregset call.
4720         * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
4721         supply_fpregset calls.
4722         (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
4723         (ps_lgetregs): Update fill_gregset call.
4724         (ps_lsetregs): Update supply_gregset call.
4725         (ps_lgetfpregs): Update fill_fpregset call.
4726         (ps_lsetfpregs): Update supply_fpregset call.
4727         
4728         * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
4729         fill_fpregset, and fill_fpxregset calls.
4730         * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
4731         (store_regs): Update fill_gregset call.
4732         (fetch_fpregs): Update supply_fpregset call.
4733         (store_fpregs): Update fill_fpregset call.
4734         (fetch_fpxregs): Update supply_fpxregset call.
4735         (store_fpxregs): Update fill_fpxregset call.
4736         * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
4737         (store_regs): Update fill_gregset call.
4738         * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
4739         (store_regs): Update fill_gregset call.
4740         (fetch_fpregs): Update supply_fpregset call.
4741         (store_fpregs): Update fill_fpregset call.
4742         (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
4743         * s390-nat.c (fetch_regs): Update supply_gregset call.
4744         (store_regs): Update fill_gregset call.
4745         (fetch_fpregs): Update supply_fpregset call.
4746         (store_fpregs): Update fill_fpregset call.
4747
4748         * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
4749         dependencies.
4750
4751 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
4752
4753         * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
4754         it instead of current_regcache.
4755         (parse_register_dump): Add REGCACHE parameter, pass it to 
4756         supply_register callback.
4757         (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
4758         parse_register_dump.
4759         (monitor_dump_regs): Add REGCACHE parameter, pass it to
4760         parse_register_dump and dumpregs callback.
4761         (monitor_wait): Pass current_regcache to parse_register_dump and
4762         monitor_dump_regs.
4763         (monitor_fetch_register): Pass current_regcache to
4764         monitor_supply_register.
4765         (monitor_fetch_registers): Pass current_regcache to
4766         monitor_dump_regs.
4767         * monitor.h (struct monitor_ops): Add REGCACHE parameter to
4768         supply_register and dumpregs callbacks.
4769         (monitor_supply_register, monitor_dump_reg_block): Update
4770         prototypes.
4771         * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter.  Pass
4772         it to monitor_supply_register.
4773         * dink32-rom.c (dink32_supply_register): Likewise.
4774         * ppcbug-rom.c (ppcbug_supply_register): Likewise.
4775         * m32r-rom.c (m32r_supply_register): Likewise.  Also, use REGCACHE
4776         instead of current_regcache.
4777
4778 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
4779
4780         * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
4781         Add REGCACHE parameter.  Use it instead of current_regcache.
4782         (i386nto_supply_regset): Add REGCACHE parameter, pass it to
4783         i386nto_supply_gregset and i386nto_supply_fpregset.
4784         (i386nto_regset_fill): Add REGCACHE parameter; use it instead
4785         of current_regcache.
4786
4787         * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
4788         nto_supply_ helper functions.
4789         (procfs_store_registers): Pass current_regcache to nto_regset_fill.
4790
4791         * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
4792
4793         * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
4794         supply_greget, supply_fpregset, supply_altregset, supply_regset,
4795         and regset_fill member function pointers.
4796         (nto_dummy_supply_regset): Adapt prototype.
4797
4798 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
4799
4800         * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
4801         instead of current_regcache.  Make REGS const.
4802         (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
4803         * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
4804         prototypes.
4805         * shnbsd-nat.c: Include "regcache.h".
4806         (shnbsd_fetch_inferior_registers): Pass current_regcache to
4807         shnbsd_supply_reg.
4808         (shnbsd_store_inferior_registers): Pass current_regcache to
4809         shnbsd_fill_reg.
4810         * Makefile.in (shbsd-nat.o): Update dependencies.
4811
4812 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
4813
4814         * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter.  Use it
4815         instead of current_regcache.
4816         (mips_supply_gregset): Likewise.  Pass REGCACHE to supply_32bit_reg.
4817         Make GREGSETP const, remove superfluous casts.
4818         (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
4819         (mips_supply_fpregset): Likewise.  Make FPREGSETP const, remove 
4820         superfluous casts.
4821         (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
4822         (supply_64bit_reg): Likewise
4823         (mips64_supply_gregset): Likewise.  Pass REGCACHE to supply_64bit_reg.
4824         Make GREGSETP const, adapt casts accordingly.
4825         (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
4826         (mips64_supply_fpregset): Likewise.  Make FPREGSET const, adapt
4827         casts accordingly.
4828         (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
4829         (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
4830         helper routines.
4831         * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
4832         mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
4833         mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
4834         Adapt prototypes.
4835         * mips-linux-nat.c: Include "regcache.h".
4836         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
4837         current_regcache to mips{64}_(supply|fill)_ helper routines.
4838         (mips64_linux_regsets_fetch_registers): Likewise.
4839         (mips64_linux_regsets_store_registers): Likewise.
4840
4841         * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
4842         REGCACHE argument; replace current_regcache.  Make REGS const.
4843         (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
4844         replace current_regcache.
4845         * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
4846         mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
4847         * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
4848         mipsnbsd_store_inferior_registers): Pass current_regcache to
4849         mipsnbsd_(supply|fill)_... helper routines.
4850
4851         * Makefile.in (mips-linux-nat.o): Update dependencies.
4852
4853 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
4854
4855         * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
4856         * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
4857         * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
4858         i387_fill_fsave and i387_fill_fxsave calls by inline copies.
4859         * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
4860         * i386gnu-nat.c (store_fpregs): Likewise.
4861         * i386v4-nat.c (fill_fpregset): Likewise.
4862         * go32-nat.c (store_register, go32_store_registers): Likewise.
4863
4864 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
4865
4866         * cris-tdep.c (supply_gregset): Rename to ...
4867         (cris_supply_gregset): ... this.  Add REGCACHE parameter.  Use it
4868         instead of current_regcache.
4869         (fetch_core_registers): Update call.  Pass current_regcache.
4870
4871 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
4872
4873         * arnmnbsd-nat.c (supply_gregset): Rename to ...
4874         (arm_supply_gregset): ... this.  Add REGCACHE parameter.
4875         Use it instead of current_regcache.
4876         (supply_fparegset): Rename to ...
4877         (arm_supply_fparegset): ... this.  Add REGCACHE parameter.
4878         Use it instead of current_regcache.
4879         (fetch_regs, fetch_fp_regs): Update calls.  Pass current_regcache.
4880         (fetch_core_registers, fetch_elfcore_registers): Likewise.
4881
4882 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
4883
4884         * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
4885         alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
4886         use it instead of current_regcache.
4887         * alpha-tdep.h (struct regcache): Add forward declaration.
4888         (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
4889         alpha_fill_fp_regs): Update prototypes.
4890
4891         * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
4892         fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
4893         * alpha-linux-nat.c: Include "regcache.h".
4894         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
4895         current_regcache to alpha_supply/fill_ routines.
4896
4897         * alphabsd-tdep.c: Include "regcache.h".
4898         (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
4899         pass it to alpha_supply_ routines.  Make REGS const.
4900         (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
4901         pass it to alpha_fill_ routines.
4902         * alphabsd-tdep.h (struct regcache): Add forward declaration.
4903         (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
4904         alphabsd_fill_fpreg): Update prototypes.
4905
4906         * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
4907         fill_fpregset, alphabsd_fetch_inferior_registers,
4908         alphabsd_store_inferior_registers): Pass current_regcache to
4909         alphabsd_supply/fill_ routines.
4910
4911         * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
4912         dependencies.
4913
4914 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
4915
4916         * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
4917         supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
4918         instead of current_regcache.
4919         (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
4920         REGCACHE parameter, pass it to supply_ routines.
4921         (aix_thread_fetch_registers): Pass current_regcache to
4922         fetch_regs_user_thread and fetch_regs_kernel_thread.
4923
4924         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
4925         Add REGCACHE parameter, use it instead of current_regcache.
4926         Call regcache_valid_p instead of register_cached.
4927         (store_regs_user_thread, store_regs_kernel_thread): Likewise.
4928         Also, pass REGCACHE to fill_ routines.
4929         (aix_thread_store_registers): Pass current_regcache to
4930         store_regs_user_thread and store_regs_kernel_thread.
4931
4932 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
4933
4934         * m32r-linux-nat.c (supply_gregset): Do not modify contents
4935         pointed to by GREGSETP.
4936
4937 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
4938
4939         * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
4940         of regcache_raw_read_signed.
4941         (fill_fpregset): Use regcache_raw_collect instead of
4942         regcache_raw_read.
4943
4944 2007-05-03  Kevin Buettner  <kevinb@redhat.com>
4945
4946         * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
4947         point arguments, test explicitly for use of the EABI32 ABI
4948         instead of inferring this condition from tests on register
4949         sizes.
4950
4951 2007-05-03  Kevin Buettner  <kevinb@redhat.com>
4952
4953         * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
4954         prior to allocating its location.
4955
4956 2007-05-02  Maciej W. Rozycki  <macro@mips.com>
4957
4958         * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
4959         based on mips_abi_regsize() whose result is known in advance.
4960         (mips_o64_push_dummy_call): Likewise.
4961
4962 2007-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
4963
4964         * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
4965         * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
4966
4967         * mips-linux-nat.c: Include "gregset.h".
4968         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
4969         from mips-linux-tdep.c.  Change parameter type to gdb_gregset_t.
4970         * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
4971         fill_fpregset): Move to mips-linux-nat.c.
4972
4973         * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
4974
4975 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
4976
4977         * regcache.c (deprecated_read_register_gen): Remove, inline ...
4978         (read_register): ... here.
4979         (deprecated_write_register_gen): Remove, inline ...
4980         (write_register): ... here.
4981         * regcache.h (deprecated_read_register_gen): Remove prototype.
4982         (deprecated_write_register_gen): Likewise.
4983
4984         * remote-sim.c (gdbsim_store_register): Replace call to
4985         deprecated_read_register_gen with regcache_cooked_read.
4986         * target.c (debug_print_register): Replace calls to
4987         deprecated_read_register_gen and read_register with
4988         regcache_cooked_read.
4989
4990 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
4991
4992         * hpux-thread.c (hpux_thread_store_registers): Use
4993         regcache_raw_collect, not regcache_raw_read.
4994         * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
4995         not regcache_raw_write.
4996
4997 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
4998
4999         * gdbarch.sh: Remove deprecated_register_byte.
5000         * gdbarch.c, gdbarch.h: Regenerate.
5001         * arch-utils.h (generic_register_size, generic_register_byte): Remove.
5002         * arch-utils.c (generic_register_size, generic_register_byte): Remove.
5003
5004         * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
5005         * regcache.c (regcache_valid_p): Allow to query cooked registers in
5006         read-only register caches.  Make REGCACHE parameter const.
5007         (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
5008
5009         * mi/mi-main.c (old_regs): Remove.
5010         (mi_setup_architecture_data, _initialize_mi_main): Remove.
5011         (register_changed_p): Reimplement to compare two register caches.
5012         (mi_cmd_data_list_changed_registers): Update caller.
5013         * mi/mi-main.h (mi_setup_architecture_data): Remove.
5014         * mi/mi-interp.c (mi_interpreter_init): Do not call
5015         mi_setup_architecture_data.
5016
5017 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
5018
5019         * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
5020         inline definition at the places the macros are used.
5021         * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
5022
5023 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
5024
5025         * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
5026         "gdb_string.h".
5027         (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
5028         (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
5029         (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
5030         (rs6000_aix_regset_from_core_section): New function.
5031         (rs6000_aix_init_osabi): Register it.
5032         (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
5033         sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000. 
5034         * rs6000-nat.c (CoreRegs): Do not define type.
5035         (fetch_core_registers, rs6000_core_fns): Remove.
5036         (_initialize_core_rs6000): Do not register it.  Rename to ...
5037         (_initialize_rs6000_nat): ... this.
5038         * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
5039
5040 2007-04-27  Kevin Buettner  <kevinb@redhat.com>
5041
5042         * dwarf2expr.c (unsigned_address_type): Add forward declaration.
5043         (dwarf2_read_address): Sign extend return address as required by
5044         target architecture.
5045
5046 2007-04-27  Kevin Buettner  <kevinb@redhat.com>
5047
5048         * solib-frv.c (lm_base): Bail out if the main executable has
5049         not been relocated.
5050
5051 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
5052
5053         * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
5054         of FPCR register in fpregset.
5055
5056 2007-04-27  Maciej W. Rozycki  <macro@mips.com>
5057
5058         * Makefile.in (gdbtk-wrapper.o): Update dependencies.
5059         (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
5060
5061 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
5062
5063         * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
5064         * rs6000-nat.c (rs6000_wait): New function.
5065         (_initialize_core_rs6000): Install it as to_wait target method.
5066         * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
5067
5068 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
5069
5070         * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
5071         * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
5072         * rs6000-nat.c (super_create_inferior): New variable.
5073         (rs6000_create_inferior): Make static.  Adapt argument list.  Call
5074         original version of create_inferior via super_create_inferior.
5075         (_initialize_core_rs6000): Install to_create_inferior target method.
5076
5077 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
5078
5079         * aix-thread.c (aix_thread_xfer_memory): Replace by ...
5080         (aix_thread_xfer_partial): ... this.
5081         (init_aix_thread_ops): Install to_xfer_partial instead
5082         of deprecated_xfer_memory target method.
5083
5084         * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
5085         and inftarg.o, add inf-ptrace.o.
5086         * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
5087         CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
5088         * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
5089         (fetch_inferior_registers): Rename to ...
5090         (rs6000_fetch_inferior_registers): ... this.  Make static.
5091         (store_inferior_registers): Rename to ...
5092         (rs6000_store_inferior_registers): ... this.  Make static.
5093         (read_word, child_xfer_memory): Remove.
5094         (rs6000_xfer_partial): New function.
5095         (kernel_u_size): Remove.
5096         (_initialize_core_rs6000): Add inf_ptrace-based target.
5097         * Makefile.in (rs6000-nat.o): Update dependencies.
5098
5099 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
5100
5101         * inf-ptrace.c: Include "gdb_stdint.h".
5102         (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as 
5103         intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
5104         (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
5105         before casting CORE_ADDR to PTRACE_TYPE_ARG3.
5106         (inf_ptrace_store_register): Likewise.
5107         * Makefile.in (inf-ptrace.o): Update dependencies.
5108
5109 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
5110
5111         * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
5112         * configure.tgt (rs6000-*-*): Likewise.
5113         * config/rs6000/aix4.mh: Delete file.
5114         * config/rs6000/aix4.mt: Delete file.
5115         * config/rs6000/rs6000.mh: Delete file.
5116         * config/rs6000/rs6000.mt: Delete file.
5117
5118         * config/powerpc/nm-aix.h: Delete file.
5119         * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
5120
5121 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
5122
5123         * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
5124         Remove obsolete part of comment.
5125         (store_regs_user_thread): Use uint32_t temporaries when calling
5126         fill_sprs32.
5127         (store_regs_kernel_thread): Likewise.  Add assertion to verify
5128         correct size of struct ptsprs members.
5129         (aix_thread_xfer_memory): Fix type of myaddr.
5130         (aix_thread_extra_thread_info): Fix compiler warning.
5131         * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
5132         (fetch_register, store_register): Adapt callers.
5133
5134 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
5135
5136         * vec.h (vec_free): Rename to vec_free_.  Adapt users.
5137
5138 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
5139
5140         * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
5141         and "regcache.h".
5142         (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
5143         (alpha_linux_gregset, alpha_linux_fpregset): New variables.
5144         (alpha_linux_regset_from_core_section): New function.
5145         (alpha_linux_init_abi): Install it.
5146         * alpha-linux-nat.c: Do not include "gdbcore.h".  Include
5147         "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
5148         <sys/procfs.h>, and "gregset.h".
5149         (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
5150         Move from config/alpha/nm-linux.h.
5151         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
5152         from alpha-nat.c.
5153         (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
5154         * alpha-nat.c: Remove #ifdef __linux__ section.
5155         (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
5156         (_initialize_core_alpha): Do not register alpha_elf_core_fns.
5157         (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
5158         (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
5159         * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
5160         (NATDEPFILES): Remove alpha-nat.o.
5161         * config/alpha/nm-linux.h: Delete file.
5162         * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
5163         * Makefile.in (alpha-linux-nat.o): Update dependencies.
5164         (alpha-linux-tdep.o): Likewise.
5165
5166 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
5167
5168         * mips-linux-nat.c: No longer include "gdbcore.h".
5169         (mips_linux_register_addr): Move from mips-linux-tdep.c.
5170         (mips64_linux_register_addr): Likewise.
5171         (mips_linux_register_u_offset): Call mips_linux_register_addr or
5172         mips64_linux_register_addr instead of register_addr.
5173         * mips-linux-tdep.c (mips_linux_register_addr,
5174         mips64_linux_register_addr): Move to mips-linux-nat.c.
5175         (register_addr): Remove.
5176         (register_addr_data, init_register_addr_data): Remove.
5177         (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
5178         (set_mips_linux_register_addr): Remove.
5179         (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
5180         * Makefile.in (mips-linux-nat.o): Update dependencies.
5181
5182 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
5183
5184         * linux-nat.c (linux_register_u_offset): Remove.
5185         (linux_target_install_ops): New function.
5186         (linux_target): Use it.
5187         (linux_trad_target): New function.
5188         * linux-nat.h (linux_trad_target): Declare.
5189
5190         * alpha-linux-nat.c: Include "gdbcore.h".
5191         (alpha_linux_register_u_offset): New function.
5192         (_initialize_alpha_linux_nat): Use linux_trad_target.
5193
5194         * mips-linux-nat.c: Include "gdbcore.h".
5195         (mips_linux_register_u_offset): New function.
5196         (_initialize_mips_linux_nat): Use linux_trad_target.
5197
5198         * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5199         * config/arm/nm-linux.h: Delete file.
5200
5201         * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
5202         * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
5203
5204         * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5205         * config/ia64/nm-linux.h: Delete file.
5206
5207         * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5208         * config/m32r/nm-linux.h: Delete file.
5209
5210         * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5211         * config/m68k/nm-linux.h: Delete file.
5212
5213         * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5214         * config/pa/nm-linux.h: Delete file.
5215
5216         * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5217         * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
5218         * config/powerpc/nm-linux.h: Delete file.
5219
5220         * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
5221         * config/s390/nm-linux.h: Delete file.
5222
5223         * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5224         * config/sparc/linux64.mh (NAT_FILE): Likewise.
5225         * config/sparc/nm-linux.h: Delete file.
5226
5227         * Makefile.in (alpha-linux-nat.o): Update dependencies.
5228         (mips-linux-nat.o): Likewise.
5229
5230 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
5231
5232         * core-aout.c: Delete file.
5233         * Makefile.in (ALLDEPFILES): Remove core-aout.c.
5234         (core-aout.o): Delete rule.
5235         * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
5236
5237         * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
5238
5239         * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
5240         * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
5241         KERNEL_U_ADDR): Remove.
5242
5243         * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
5244         (cannot_fetch_register, cannot_store_register): Remove.
5245         (fetch_register): Inline cannot_fetch_register and register_addr.
5246         (store_register): Inline cannot_store_register and register_addr.
5247         * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
5248         * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5249         REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
5250         Remove.
5251
5252         * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
5253         (fetch_register): Inline register_addr.
5254         (store_register): Inline register_addr.
5255         * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
5256         * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5257         U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
5258
5259         * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
5260         * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
5261         REGISTER_U_ADDR): Remove.
5262
5263         * hppa-linux-nat.c (register_addr): Rename to ...
5264         (hppa_linux_register_addr): ... this.  Make static.
5265         (fetch_register, store_register): Adapt callers.
5266         * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
5267
5268         * ppc-linux-nat.c (kernel_u_size): Remove.
5269         * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
5270
5271         * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
5272         * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
5273         (NAT_FILE): Remove.
5274         * config/vax/nm-vax.h: Delete file.
5275
5276 2007-04-20  Mark Shinwell  <shinwell@codesourcery.com>
5277
5278         * MAINTAINERS (Write After Approval): Add myself.
5279
5280 2007-04-20  Mark Shinwell  <shinwell@codesourcery.com>
5281
5282         * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
5283         * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
5284         (m68k_linux_sigcontext_reg_offset): Fix typo.
5285         (target_is_uclinux): New.
5286         (m68k_linux_inferior_created): New.
5287         (m68k_linux_get_sigtramp_info):  Check for uClinux or
5288         normal Linux.  Use m68k_uclinux_sigcontext_reg_offset for
5289         uClinux.
5290         (_initialize_m68k_linux_tdep): Register
5291         m68k_linux_inferior_created.
5292
5293 2007-04-19  Pedro Alves  <pedro_alves@portugalmail.pt>
5294
5295         * win32-nat.c (win32_detach): Remove delete_command call.
5296         Resume inferior with win32_resume instead of win32_continue.
5297
5298 2007-04-19  Jerome Guitton  <guitton@adacore.com>
5299
5300         * ser-mingw.c (fd_is_file): New function.
5301         (file_select_thread): New function.
5302         (ser_console_wait_handle): Add special handling for files.
5303
5304 2007-04-18  Denis Pilat  <denis.pilat@st.com>
5305
5306         * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
5307         when missing from DW_TAG_subrange_type.  Remove the handling of null
5308         return from die_type.
5309
5310 2007-04-18  Maciej W. Rozycki  <macro@mips.com>
5311
5312         * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
5313         change to rearrange some brackets.
5314         (mips_n32n64_push_dummy_call): Likewise.
5315         (mips_o32_push_dummy_call): Likewise.
5316         (mips_o64_push_dummy_call): Likewise.
5317
5318 2007-04-18  Denis Pilat  <denis.pilat@st.com>
5319
5320         * infcmd.c (post_create_inferior): Start with a call to 
5321         target_terminal_ours.
5322
5323 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
5324
5325         * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
5326         brackets.
5327         (mips_n32n64_push_dummy_call): Likewise.  Reformat some
5328         expressions.
5329         (mips_o32_push_dummy_call): Likewise.
5330         (mips_o64_push_dummy_call): Likewise.
5331
5332 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
5333
5334         * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5335         comment.
5336
5337 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
5338
5339         * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5340         comment.
5341         (mips_o32_push_dummy_call): Likewise.
5342
5343 2007-04-17  Andreas Schwab  <schwab@suse.de>
5344
5345         * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
5346         sal to be bigger than the end of the function.
5347
5348 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
5349             Nigel Stephens  <nigel@mips.com>
5350
5351         * mips-tdep.c (mips_o32_push_dummy_call): Take account of
5352         argument alignment requirements when calculating stack space
5353         required.  When aligning an arg register to eight bytes
5354         boundary, align stack_offset too.  Write floating-point
5355         arguments to the appropriate integer register if need go there.
5356         (mips_o64_push_dummy_call): Likewise.
5357
5358 2007-04-14  Ulrich Weigand  <uweigand@de.ibm.com>
5359
5360         * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
5361         "sig" arguments, add "regcache" argument.
5362         * gdbarch.c, gdbarch.h: Regenerate.
5363
5364         * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
5365         (handle_inferior_event): Call remove_single_step_breakpoints directly
5366         instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
5367
5368         * alpha-tdep.c (alpha_software_single_step): Update argument list.
5369         Remove handling of !insert_breakpoints_p case.
5370         * arm-tdep.c (arm_software_single_step): Likewise.
5371         * cris-tdep.c (cris_software_single_step): Likewise.
5372         * mips-tdep.c (mips_software_single_step): Likewise.
5373         * rs6000-tdep.c (rs6000_software_single_step): Likewise.
5374         * sparc-tdep.c (sparc_software_single_step): Likewise.
5375         * spu-tdep.c (spu_software_single_step): Likewise.
5376
5377         * alpha-tdep.h (alpha_software_single_step): Update prototype.
5378         * mips-tdep.h (mips_software_single_step): Likewise.
5379         * rs6000-tdep.h (rs6000_software_single_step): Likewise.
5380         * sparc-tdep.h (sparc_software_single_step): Likewise.
5381
5382 2007-04-14  Ulrich Weigand  <uweigand@de.ibm.com>
5383
5384         * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
5385         when removing single-step breakpoints.
5386
5387 2007-04-14  Vladimir Prus  <vladimir@codesourcery.com>
5388
5389         * varobj.h (varobj_set_frozen): New
5390         (varobj_get_frozen): New.
5391         (varobj_update): New parameter explicit.
5392         * varobj.c (struct varobj): New fields frozen
5393         and not_fetched.
5394         (varobj_set_frozen, varobj_get_frozen): New.
5395         (install_new_value): Don't fetch values for 
5396         frozen variable object, or children thereof.  Allow
5397         a frozen variable object to have non-fetched value.
5398         (varobj_update): Allow updating child variables.
5399         Don't traverse frozen children.
5400         (new_variable): Initialize the frozen field.
5401         (c_value_of_variable): Return NULL for frozen
5402         variable without any value yet. 
5403         * mi/mi-cmd-var.c (varobj_update_one): New parameter
5404         'explicit'.
5405         (mi_cmd_var_create): Output the 'frozen' field,
5406         as soon as testsuite is adjusted to expect that field.
5407         (mi_cmd_var_set_frozen): New.
5408         (mi_cmd_var_update): Pass the 'explicit' parameter to
5409         varobj_update_one.
5410         * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
5411         * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
5412         
5413 2007-04-13  Paul Brook  <paul@codesourcery.com>
5414
5415         * target-descriptions.c (tdesc_named_type): Add ieee_single and
5416         ieee_double.
5417         * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
5418
5419 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
5420
5421         * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
5422         remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
5423         scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
5424         ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
5425         * Makefile.in: Remove references to deleted files.
5426         * README: Do not mention deleted ROM monitor interfaces.
5427         * defs.h (enum language): Delete language_scm.
5428         * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
5429         (dump_subexp_body_standard): Likewise.
5430         * parse.c (operator_length_standard): Likewise.
5431         * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
5432         * remote-mips.c: Do not include remote-utils.h.
5433         * remote-sim.c: Likewise.  Use remote_debug instead of sr_get_debug
5434         throughout.
5435         * value.c: Do not include scm-lang.h.
5436         (unpack_long): Delete scm_unpack call.
5437         * config/h8300/h8300.mt, config/mips/embed.mt,
5438         config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
5439         config/sh/embed.mt, config/sh/linux.mt: Remove references to
5440         deleted files.
5441         * NEWS: Mention removed files.
5442
5443 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
5444
5445         * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
5446         * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
5447
5448 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
5449
5450         * NEWS: Mention removal of HP aCC support.
5451
5452 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
5453
5454         * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
5455         first entry for static executables.
5456         (breakpoint_addr): Delete unused variable.
5457         (elf_locate_base): Search for _r_debug in static executables.
5458         (enable_break): Do not set breakpoint_addr.  Scan solib_break_names
5459         also.
5460
5461 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
5462
5463         * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
5464         (bpstat_what, print_one_breakpoint, allocate_bp_location)
5465         (mention): Remove bp_through_sigtramp support.
5466         * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
5467
5468 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
5469
5470         * breakpoint.c (bpstat_what): Give step-resume higher priority than
5471         shlib events.
5472
5473 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
5474
5475         * infrun.c: Doc fixes.
5476         (handle_inferior_event): Clarify debug message.
5477         (insert_step_resume_breakpoint_at_sal): Print a debug message.
5478
5479 2007-04-12  Ulrich Weigand  <uweigand@de.ibm.com>
5480
5481         * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
5482
5483 2007-04-12  Ulrich Weigand  <uweigand@de.ibm.com>
5484
5485         * config/m68k/tm-monitor.h: Delete file.
5486         * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
5487         * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
5488         call moved to ...
5489         * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
5490         * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
5491
5492 2007-04-12  Luis Machado  <luisgpm@br.ibm.com>
5493
5494         * gdbarch.sh (software_single_step): Change the return type
5495         from void to int and reformatted some comments to <= 80
5496         columns.
5497         * gdbarch.c, gdbarch.h: Regenerated.
5498         * alpha-tdep.c (alpha_software_single_step): Likewise.
5499         * alpha-tdep.h (alpha_software_single_step): Likewise.
5500         * arm-tdep.c (arm_software_single_step): Likewise.
5501         * cris-tdep.c (cris_software_single_step): Likewise.
5502         * mips-tdep.c (mips_software_single_step): Likewise.
5503         * mips-tdep.h (mips_software_single_step): Likewise.
5504         * rs6000-tdep.c (rs6000_software_single_step): Likewise.
5505         * rs6000-tdep.h (rs6000_software_single_step): Likewise.
5506         * sparc-tdep.c (sparc_software_single_step): Likewise.
5507         * sparc-tdep.h (sparc_software_single_step): Likewise.
5508         * spu-tdep.c (spu_software_single_step): Likewise.
5509         * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
5510         and act accordingly.
5511
5512 2007-04-11  Steve Ellcey  <sje@cup.hp.com>
5513
5514         * configure.ac (build_warnings): Add -Wno-char-subscripts.
5515         * configure: Regenerate.
5516         * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
5517
5518 2007-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5519
5520         * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
5521
5522 2007-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5523
5524         * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
5525         macros.
5526         (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
5527         distinct on the TYPE_STUB_SUPPORTED debug targets.
5528         * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
5529
5530 2007-04-11  Joel Brobecker  <brobecker@adacore.com>
5531
5532         * sparc-tdep.c (X_RS2): New macro.
5533         (sparc_skip_stack_check): New function.
5534         (sparc_analyze_prologue): Adjust PC past stack probing
5535         sequence if necessary.
5536
5537 2007-04-10  Andreas Schwab  <schwab@suse.de>
5538
5539         * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
5540         register.
5541
5542 2007-04-10  Daniel Jacobowitz  <dan@codesourcery.com>
5543
5544         * breakpoint.c (gdb_breakpoint_query): Really return an
5545         enum gdb_rc.
5546         (gdb_breakpoint): Likewise.
5547         * thread.c (gdb_list_thread_ids): Likewise.
5548         (gdb_thread_select): Likewise.
5549         * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
5550         (mi_cmd_thread_list_ids): Remove bogus initialization.
5551
5552 2007-04-10  Daniel Jacobowitz  <dan@codesourcery.com>
5553
5554         * Makefile.in (SFILES): Remove hpacc-abi.c.
5555         (COMMON_OBS): Remove hpacc-abi.o.
5556         (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
5557         (hpacc-abi.o, hpread.o): Delete rules.
5558         * somread.c: Delete extern declarations from hpread.c.
5559         (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
5560         (som_symfile_finish): Do not call hpread_symfile_finish.
5561         (som_symfile_init): Do not call hpread_symfile_init.
5562         * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
5563         * config/pa/hppahpux.mt (TDEPFILES): Likewise.
5564         * hpacc-abi.c, hpread.c: Deleted.
5565
5566 2007-04-10  Daniel Jacobowitz  <dan@codesourcery.com>
5567
5568         * solib-svr4.c (enable_break): Simplify return value.
5569         (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
5570
5571 2007-04-10  Andreas Schwab  <schwab@suse.de>
5572
5573         * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
5574         l_ld_size, l_next_size, l_prev_size, l_name_size.
5575
5576         * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
5577         to extract addresses from link map.
5578         (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
5579         (LM_NEXT): Likewise.
5580         (LM_NAME): Likewise.
5581         (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
5582         (elf_locate_base): Likewise.
5583         (open_symbol_file_object): Likewise.
5584         (svr4_fetch_objfile_link_map): Likewise.
5585         (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
5586         (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
5587         l_ld_size.
5588         (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
5589         (svr4_lp64_fetch_link_map_offsets): Likewise.
5590
5591         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
5592         removed members.  Set l_ld_offset to -1 if not present.
5593
5594 2007-04-08  Vladimir Prus  <vladimir@codesourcery.com>
5595         
5596         Pass stderr of program run with "target remote |"
5597         via gdb_stderr.
5598         * serial.c (serial_open): Set error_fd to -1.
5599         * serial.h (struct serial): New field error_fd.
5600         (struct serial_opts): New field avail.
5601         * ser-pipe.c (pipe_open): Create another pair
5602         of sockets.  Pass stderr to gdb.
5603         * ser-mingw.c (pipe_windows_open): Pass
5604         PEX_STDERR_TO_PIPE to pex_run.  Initialize
5605         sd->error_fd.
5606         (pipe_avail): New.
5607         (_initialize_ser_windows): Hook pipe_avail.
5608         * ser-base.c (generic_readchar): Check if there's
5609         anything in stderr channel and route that to gdb_stderr.
5610
5611 2007-04-03  Pedro Alves  <pedro_alves@portugalmail.pt>
5612
5613         * dbxread.c (read_ofile_symtab): Move current_objfile
5614         clearing to after end_stabs.
5615
5616 2007-04-01  Andreas Schwab  <schwab@suse.de>
5617
5618         * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
5619         gdbarch instead of current_gdbarch.
5620
5621 2007-04-01  Vladimir Prus  <vladimir@codesourcery.com>
5622
5623         * varobj.c (varobj_create): Keep varobj value
5624         NULL when evaluating the type.
5625         
5626 2007-03-31  Pedro Alves  <pedro_alves@portugalmail.pt>
5627
5628         * NEWS: Mention new Windows CE support.
5629
5630 2007-03-30  Pedro Alves  <pedro_alves@portugalmail.pt>
5631
5632         * configure.tgt: Move mips*-*-pe and sh*-*-pe to 
5633         the obsoletion stanza.
5634         * NEWS: Mention deleted targets.
5635
5636         * config/sh/tm-wince.h: Remove.
5637         * config/sh/wince.mt: Remove.
5638         * config/mips/tm-wince.h: Remove.
5639         * config/mips/wince.mt: Remove.
5640
5641         * wince.c: Remove.
5642         * wince-stub.c: Remove.
5643         * wince-stub.h: Remove.
5644         * Makefile.in (wince.o): Remove rule.
5645         (wince-stub.o): Likewise.
5646
5647         * mips-tdep.c (mips_next_pc): Make static.
5648         * mips-tdep.h (mips_next_pc): Remove declaration.
5649         * arm-tdep.c (arm_pc_is_thumb): Make static.
5650         (thumb_get_next_pc): Likewise.
5651         (arm_get_next_pc): Likewise.
5652         * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
5653         (arm_pc_is_thumb): Likewise.
5654         (thumb_get_next_pc): Likewise.
5655         (arm_get_next_pc): Likewise.
5656
5657 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
5658
5659         * MAINTAINERS: Remove d10v entry.
5660         * Makefile.in (SFILES): Remove dwarfread.c.
5661         (COMMON_OBS): Remove dwarfread.o.
5662         (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
5663         (remote-est.o, rom68k-rom.o): Delete.
5664         * NEWS: Mention removal of d10v, target abug, target cpu32bug,
5665         target est, target rom68k, and DWARF 1.
5666         * configure.tgt: Mark d10v as removed.
5667         * dwarf2read.c: Doc update.
5668         * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
5669         and lnsize.
5670         (elf_locate_sections): Do not set them.
5671         (elf_symfile_read): Do not call dwarf_build_psymtabs.
5672         * symfile.h (dwarf_build_psymtabs): Delete prototype.
5673         * config/m68k/monitor.mt (TDEPFILES): Prune.
5674         * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
5675         remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
5676
5677 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
5678
5679         * doublest.c (convert_floatformat_to_doublest): Use
5680         floatformat_classify.
5681         (floatformat_is_nan): Rename to...
5682         (floatformat_classify): ...this.  Return more information.
5683         * doublest.h (enum float_kind): New.
5684         (floatformat_is_nan): Replace prototype...
5685         (floatformat_classify): ...with this one.
5686         * valprint.c (print_floating): Use floatformat_classify.  Handle
5687         infinity.
5688
5689 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
5690
5691         * README: Mention ISO C library requirement.
5692
5693 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
5694
5695         * Makefile.in (SFILES): Remove nlmread.c.
5696         (COMMON_OBS): Remove nlmread.o.
5697         (nlmread.o): Delete rule.
5698         * README: Delete reference to remote-st.c.
5699         * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
5700         * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
5701         GDB_OSABI_LYNXOS.
5702         * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
5703         (_initialize_i386_tdep): Do not reference them.
5704         * nlmread.c: Delete file.
5705         * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
5706         * target.c: Doc update.
5707         * thread.c: Delete commented include.
5708         * config/alpha/tm-alpha.h: Doc update.
5709
5710 2007-03-30  Chris Dearman  <chris@mips.com>
5711
5712         * utils.c (string_to_core_addr): Comment typo.
5713
5714 2007-03-30  Chris Dearman  <chris@mips.com>
5715
5716         * mips-tdep.c: Comment typo.
5717
5718 2007-03-29  Ulrich Weigand  <uweigand@de.ibm.com>
5719
5720         * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
5721         * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
5722         * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
5723         * config/powerpc/nm-ppc64-linux.h: Remove file.
5724         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
5725         * inferior.h (PTRACE_ARG3_TYPE): Do not define.
5726         (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
5727         * infptrace.c (call_ptrace): Likewise.
5728         * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
5729         (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
5730         and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
5731         (store_register): Likewise.
5732
5733 2007-03-29  Joel Brobecker  <brobecker@adacore.com>
5734
5735         * Makefile.in (varobj.o): Add missing dependency.
5736
5737 2007-03-29  Michael Snyder  <msnyder@access-company.com>
5738
5739         * MAINTAINERS: Update my email address.
5740
5741 2007-03-29  Joel Brobecker  <brobecker@adacore.com>
5742
5743         Add support for exception handling with multiple versions of
5744         the Ada runtime:
5745         * ada-lang.c: Update general comments on how Ada exception catchpoints
5746         are implemented.
5747         (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
5748         (__gnat_raise_nodefer_with_msg): Delete.
5749         (ada_unhandled_exception_name_addr_ftype): New type.
5750         (exception_support_info): New type.
5751         (ada_unhandled_exception_name_addr): Add forward declaration.
5752         (ada_unhandled_exception_name_addr_from_raise): Likewise.
5753         (default_exception_support_info): New constant.
5754         (exception_support_info_fallback): Likewise.
5755         (exception_info): New global variable.
5756         (ada_exception_support_info_sniffer): New function.
5757         (ada_executable_changed_observer): Likewise.
5758         (ada_unhandled_exception_name_addr_from_raise): Renamed from
5759         ada_unhandled_exception_name_addr.
5760         (ada_unhandled_exception_name_addr): Reimplement to match the
5761         latest Ada runtime implementation.
5762         (error_breakpoint_runtime_sym_not_found): Delete.
5763         (ada_exception_sym_name): Get the exception sym name from
5764         exception_info rather than hardcoding it.
5765         (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
5766         Update error handling.
5767         * Makefile.in (ada-lang.o): Add dependency on observer.h.
5768
5769 2007-03-29  Daniel Jacobowitz  <dan@codesourcery.com>
5770
5771         * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
5772         (remote-st.o, uw-thread.o): Delete.
5773         (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
5774         * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
5775         i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
5776         i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
5777         i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
5778         i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
5779         rs6000-*-lynxos* to an obsoletion stanza.
5780         * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
5781         i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
5782         and rs6000-*-lynxos* to an obsoletion stanza.  Do not mention
5783         i[34567]86-*-netware*.
5784         * NEWS: Mention deleted targets.
5785
5786         * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
5787         uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
5788         config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
5789         config/i386/i386v4.mh, config/i386/i386v42mp.mh,
5790         config/i386/ncr3000.mh, config/i386/ncr3000.mt,
5791         config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
5792         config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
5793         config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
5794         config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
5795         config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
5796         config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
5797         config/rs6000/tm-rs6000ly.h: Delete files.
5798
5799 2007-03-29  Daniel Jacobowitz  <dan@codesourcery.com>
5800
5801         * defs.h (deprecated_registers_changed_hook): Delete declaration.
5802         * interps.c (clear_interpreter_hooks): Do not clear
5803         deprecated_registers_changed_hook.
5804         * regcache.c (registers_changed): Do not call it.
5805         * top.c (deprecated_registers_changed_hook): Do not define it.
5806         * mi/mi-interp.c (mi_command_loop): Do not clear it.
5807         * tui/tui-hooks.c (tui_install_hooks): Do not install it.
5808         (tui_remove_hooks): Do not remove it.
5809         (tui_selected_frame_level_changed_hook): Check for negative level.
5810         Use get_selected_frame.
5811         (tui_registers_changed_hook): Deleted.
5812
5813 2007-03-29  Joel Brobecker  <brobecker@adacore.com>
5814
5815         * stabsread.c (add_undefined_type): Add extra parameter.
5816         Now handles nameless types separately.
5817         (struct nat): New type.
5818         (noname_undefs, noname_undefs_allocated, noname_undefs_length):
5819         New static variables.
5820         (read_type): Update calls to add_undefined_type.
5821         (add_undefined_type_noname): New function.
5822         (add_undefined_type_1): Renames from add_undefined_type.
5823         (cleanup_undefined_types_noname): New function.
5824         (cleanup_undefined_types_1): Renames cleanup_undefined_types.
5825         (cleanup_undefined_types): New handles nameless types separately.
5826         (_initialize_stabsread): Initialize our new static constants.
5827
5828 2007-03-29  Denis Pilat  <denis.pilat@st.com>
5829
5830         * configure.ac: Test for signal.h.
5831         * configure, config.in: Regenerate.
5832
5833 2007-03-29  Denis Pilat  <denis.pilat@st.com>
5834
5835         * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
5836         * infrun.c (normal_stop): Remove MI specific frame printing treatment.
5837
5838 2007-03-29  Pedro Alves  <pedro_alves@portugalmail.pt>
5839
5840         * arm-wince-tdep.c: New.
5841         * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
5842         (MT_CFLAGS): Delete.
5843         (TM_CLIBS): Delete.
5844         (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
5845         solib-legacy.o, solib-svr4.o, and remove wince.o.
5846         * configure.tgt (arm*-*-mingw32ce*): Add.
5847         * signals/signals.c [HAVE_SIGNAL_H]: Check.
5848         (do_target_signal_to_host): Silence 'not used' warning.
5849         * config/arm/tm-wince.h: Remove.
5850
5851 2007-03-28  Ulrich Weigand  <uweigand@de.ibm.com>
5852
5853         * arch-utils.c (legacy_pc_in_sigtramp): Remove.
5854         * arch-utils.h (legacy_pc_in_sigtramp): Remove.
5855
5856         * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
5857         * config/ia64/tm-linux.h: Remove file.
5858         * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
5859         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
5860         legacy_pc_in_sigtramp.
5861         (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
5862         * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
5863         Remove func_name argument.
5864         (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
5865
5866         * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
5867         * target.c (update_current_target): Add to_have_steppable_watchpoint.
5868         * target.h (struct target_ops):  Add to_have_steppable_watchpoint.
5869         (HAVE_STEPPABLE_WATCHPOINT): Define.
5870
5871         * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
5872         * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
5873         CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
5874         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
5875         STOPPED_BY_WATCHPOINT, target_stopped_data_address,
5876         target_insert_watchpoint, target_remove_watchpoint): Remove.
5877         (FETCH_INFERIOR_REGISTERS): Define.
5878         * ia64-linux-nat.c (ia64_register_addr): Make static.
5879         (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
5880         (ia64_linux_insert_watchpoint): Make static.  Remove ptid_p argument.
5881         (ia64_linux_remove_watchpoint): Likewise.  Add type argument.
5882         (ia64_linux_stopped_data_address): Make static.  Add target_ops.
5883         (ia64_linux_stopped_by_watchpoint): Make static.
5884         (ia64_linux_can_use_hw_breakpoint): New function.
5885         (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
5886         (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
5887         (_initialize_ia64_linux_nat): Install register and watchpoint ops.
5888
5889 2007-03-28  Pedro Alves  <pedro_alves@portugalmail.pt>
5890
5891         * linespec.c: Include language.h.
5892         (find_methods): Add language parameter.  Call
5893         lookup_symbol_in_language.  Pass language down.
5894         (add_matching_methods): Likewise.  Call
5895         lookup_symbol_in_language.
5896         (add_constructors): Likewise.
5897         (find_method): Pass sym_class to collect_methods.
5898         (collect_methods): Add sym_class parameter.  Pass language
5899         down.
5900         * symtab.c (lookup_symbol): Rename to ...
5901         (lookup_symbol_in_language): ... this.  Add language
5902         parameter.  Use passed language instead of current_language.
5903         (lookup_symbol): New as wrapper around
5904         lookup_symbol_in_language.
5905         (lookup_symbol_aux): Add language parameter.  Use passed
5906         language instead of current_language.
5907         (search_symbols): Indent.
5908         * symtab.h (enum language): Forward declare.
5909         (lookup_symbol_in_language): Declare.
5910         (lookup_symbol): Update description.
5911         * ada-lang.h (lookup_symbol_in_language): Remove declaration.
5912         * ada-lang.c (restore_language): Remove.
5913         (lookup_symbol_in_language): Remove.
5914
5915 2007-03-27  Pedro Alves  <pedro_alves@portugalmail.pt>
5916
5917         * breakpoint.c (bpstat_num): Add int *num parameter.
5918         * breakpoint.h (bpstat_num): Likewise.
5919         * infcmd.c (continue_command): Adjust to new bpstat_num
5920         interface.
5921         (program_info): Likewise.
5922
5923 2007-03-27  Ulrich Weigand  <uweigand@de.ibm.com>
5924
5925         * config/sh/tm-sh.h: Remove file.
5926         * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
5927         * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
5928         * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
5929         * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
5930
5931 2007-03-27  Ulrich Weigand  <uweigand@de.ibm.com>
5932
5933         * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
5934         DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
5935         * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
5936         DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
5937         * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
5938         sequence if target_shortname is "remote".
5939
5940 2007-03-27  Anton Blanchard  <anton@samba.org>
5941
5942         * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
5943         instead of wordsize when looking for the LR in a stack frame.
5944
5945 2007-03-27  Andreas Schwab  <schwab@suse.de>
5946             Daniel Jacobowitz  <dan@codesourcery.com>
5947
5948         * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
5949         (dwarf2_frame_adjust_regnum): ...this.  Make static.  Add eh_frame_p
5950         argument.  Update all callers.
5951         (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
5952         (dwarf2_frame_set_eh_frame_regnum): Rename to...
5953         (dwarf2_frame_set_adjust_regnum): ...this.  Update argument type.
5954         * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
5955         (dwarf2_frame_set_adjust_regnum): ...this.
5956         (dwarf2_frame_eh_frame_regnum): Delete prototype.
5957         * rs6000-tdep.c: Include "dwarf2-frame.h".
5958         (rs6000_adjust_frame_regnum): Define.
5959         (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
5960         Register rs6000_adjust_frame_regnum.
5961
5962         * Makefile.in (rs6000-tdep.o): Update dependencies.
5963
5964 2007-03-27  Brooks Moses  <brooks.moses@codesourcery.com>
5965
5966         * Makefile.in: Add support for a "pdf" target.
5967
5968 2007-03-27  Daniel Jacobowitz  <dan@codesourcery.com>
5969
5970         * amd64-tdep.c (amd64_init_frame_cache): New function.
5971         (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
5972
5973 2007-03-26  Nigel Stephens  <nigel@mips.com>
5974             Maciej W. Rozycki  <macro@mips.com>
5975
5976         * ui-out.c (ui_out_field_core_addr): Truncate address to
5977         TARGET_ADDR_BIT size before printing.
5978
5979 2007-03-22  Nigel Stephens  <nigel@mips.com>
5980             Maciej W. Rozycki  <macro@mips.com>
5981
5982         * remote-mips.c (mips_xfer_memory): Update prototype.
5983
5984 2007-03-22  Joel Brobecker  <brobecker@adacore.com>
5985
5986         * symfile.h: #include "symtab.h"
5987
5988 2007-03-22  Denis Pilat  <denis.pilat@st.com>
5989
5990         * utils.c (pagination_on_command, pagination_off_command):
5991         Remove useless prototypes.
5992
5993 2007-03-21  Pierre Muller  <muller@ics.u-strasbg.fr>
5994
5995         Fix PR pascal/2232.
5996         * p-valprint.c (pascal_object_print_value): Use type_name_no_tag 
5997         instead of TYPE_NAME for object base class name.
5998
5999
6000 2007-03-19  Kevin Buettner  <kevinb@redhat.com>
6001
6002         * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
6003         Specify frame type in calls to frame_func_unwind().
6004
6005 2007-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
6006
6007         * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
6008         (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
6009         (refine_prologue_limit): Delete.
6010         (skip_prologue): Don't call it.  Use extract_unsigned_integer.
6011         Assume lim_pc is set.  Correct check for incomplete prologues.
6012         Do not skip clobbers of the frame pointer.
6013         * symtab.c (skip_prologue_using_sal): Fail if there is only one
6014         sal.
6015
6016 2007-03-13  Nathan Froyd  <froydnj@codesourcery.com>
6017
6018         * frame.c (frame_pop): Check to see whether there's a frame to
6019         which we can pop first.
6020
6021 2007-03-13  Nathan Froyd  <froydnj@codesourcery.com>
6022
6023         * MAINTAINERS (Write After Approval): Add myself.
6024
6025 2007-03-09  Markus Deuling  <deuling@de.ibm.com>
6026
6027         * infrun.c (breakpoints_failed): Remove unnecessary variable.
6028         (handle_inferior_event): Remove unnecessary braces.
6029         * breakpoint.c (bpstat_what): Remove wrong comment.
6030
6031 2007-03-09  Ulrich Weigand  <uweigand@de.ibm.com>
6032
6033         * spu-tdep.c (spu_in_function_epilogue_p): New function.
6034         (spu_gdbarch_init): Install it.
6035
6036 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
6037
6038         * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
6039         object types, not 0.
6040
6041 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
6042
6043         * spu-tdep.c (spu_frame_align): New function.
6044         (spu_gdbarch_init): Install it.  Set call dummy location to ON_STACK.
6045
6046 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
6047
6048         * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
6049         (spu_software_single_step): Likewise.
6050         (spu_read_pc, spu_write_pc): New functions.
6051         (spu_gdbarch_init): Install them.
6052
6053 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
6054
6055         * cli/cli-dump.c (struct callback_data): load_offset needs to 
6056         have signed long type.
6057
6058 2007-03-07  Joel Brobecker  <brobecker@adacore.com>
6059
6060         * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
6061         Revert the previous change that had some unexpected side-effects
6062         on mips32.
6063         (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
6064         function to get the address of the calling instruction.
6065
6066 2007-03-07  Denis Pilat  <denis.pilat@st.com>
6067
6068         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
6069         get_selected_frame by deprecated_safe_get_selected_frame.
6070
6071 2007-03-02  Mark Kettenis  <kettenis@gnu.org>
6072
6073         * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
6074         "gdb_string.h".  Don't include "nbsd-tdep.h".
6075         (SIZEOF_STRUCT_REG): Remove.
6076         (SHNBSD_SIZEOF_GREGS): New.
6077         (shnbsd_supply_gregset, shnbsd_collect_gregset)
6078         (shnbsd_regset_from_core_section): New functions.
6079         (fetch_core_registers, fetch_elfcore_registers): Remove functions.
6080         (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
6081         shnbsd_supply_gregset, shnbsd_collect_gregset.
6082         (shnbsd_gregset): New variable.
6083         (shnbsd_init_abi): Set regset_from_core_section.
6084         (GDB_OSABI_NETBSD_CORE): New define.
6085         (shnbsd_core_osabi_sniffer): New function.
6086         (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
6087         * Makefile.in (shnbsd-tdep.o): Update dependencies.
6088         * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
6089         nbsd-tdep.o.
6090         * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
6091
6092 2007-02-28  Joel Brobecker  <brobecker@adacore.com>
6093
6094         * gdbtypes.c (replace_type): Fix typo that caused us to not update
6095         length of the types referenced by the new type CV ring.
6096
6097 2007-02-28  Daniel Jacobowitz  <dan@codesourcery.com>
6098
6099         * frame.c (frame_pop, frame_observer_target_changed): Call
6100         reinit_frame_cache.
6101         (flush_cached_frames): Rename to reinit_frame_cache and delete
6102         old implementation.
6103         * frame.h (flush_cached_frames): Delete prototype and update comment.
6104
6105         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
6106         reinit_frame_cache instead of flush_cached_frames.  Do not call
6107         select_frame after reinit_frame_cache.
6108         * corelow.c (core_open): Likewise.
6109         * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
6110         * infrun.c (prepare_to_proceed, context_switch)
6111         (handle_inferior_event): Likewise.
6112         * linux-fork.c (fork_load_infrun_state): Likewise.
6113         * ocd.c (ocd_start_remote): Likewise.
6114         * remote-e7000.c (e7000_start_remote): Likewise.
6115         * remote-mips.c (device): Likewise.
6116         * thread.c (switch_to_thread): Likewise.
6117         * tracepoint.c (finish_tfind_command): Likewise.
6118         * gdbarch.c: Regenerated.
6119
6120 2007-02-28  Jerome Guitton  <guitton@adacore.com>
6121             Joel Brobecker  <brobecker@adacore.com>
6122
6123         * gdbtypes.c (check_typedef): Do not replace stub type if
6124         the resolved type is not defined in the same objfile.
6125
6126 2007-02-28  Daniel Jacobowitz  <dan@codesourcery.com>
6127
6128         * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
6129
6130 2007-02-28  Joel Brobecker  <brobecker@adacore.com>
6131
6132         * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
6133         symbol for Ada units when the symbol is defined using 't' rather
6134         than 'Tt' as symbol descriptor.
6135
6136 2007-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
6137
6138         * config/mips/tm-nbsd.h: Delete file.
6139         * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6140         * config/sh/tm-nbsd.h: Delete file.
6141         * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
6142
6143 2007-02-28  Joel Brobecker  <brobecker@adacore.com>
6144
6145         * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
6146         unused WRONG_PARAM value since it was recently deleted.
6147
6148 2007-02-28  Vladimir Prus  <vladimir@codesourcery.com>
6149
6150         * varobj.c (varobj_update): Free temporary vectors.
6151
6152 2007-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
6153
6154         * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
6155         * config/powerpc/tm-linux.h: Delete file.
6156         * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
6157         (PROCESS_LINENUMBER_HOOK): Do not undefine.
6158         (TEXT_SEGMENT_BASE): Do not redefine.
6159         * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
6160         from config/rs6000/tm-rs6000.h.
6161         (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6162         * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
6163         (TEXT_SEGMENT_BASE): Remove.
6164         (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
6165         (rs6000_in_solib_return_trampoline): Remove.
6166         (SKIP_TRAMPOLINE_CODE): Remove.
6167         (rs6000_skip_trampoline_code): Remove.
6168         (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
6169         (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6170         (FP0_REGNUM): Remove.
6171         (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
6172         (rs6000_set_host_arch_hook): Remove.
6173         * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
6174         (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
6175         * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
6176         * rs6000-aix-tdep.c: Include "ppc-tdep.h".
6177         (rs6000_aix_init_osabi): Set text_segment_base tdep field.
6178         * rs6000-nat.c: Include "rs6000-tdep.h".
6179         (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
6180         (set_host_arch): Rename to ...
6181         (rs6000_create_inferior): ... this.  Make public.
6182         (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
6183         * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
6184         (rs6000_create_inferior): Remove.
6185         (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
6186         (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
6187         set_gdbarch_in_solib_return_trampoline, and
6188         set_gdbarch_skip_trampoline_code.
6189         * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
6190         from config/rs6000/tm-rs6000.h.
6191
6192 2007-02-27  Joel Brobecker  <brobecker@adacore.com>
6193
6194         * buildsym.c (record_producer): Do nothing if no producer is provided.
6195
6196 2007-02-27  Nick Roberts  <nickrob@snap.net.nz>
6197
6198         * varobj.c (varobj_update): Remove unused local.  Use gdb_assert
6199         to check changelist is non-NULL.  Call error if the frontend tries
6200         to update a non-root variable.
6201
6202         * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
6203
6204 2007-02-27  Daniel Jacobowitz  <dan@codesourcery.com>
6205
6206         * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
6207         (dwarf2_frame_sniffer): Update.
6208         (dwarf2_signal_frame_this_id): New function.
6209         (dwarf2_signal_frame_unwind): Use it.
6210         (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
6211         * frame.c (frame_func_unwind): Add this_type argument.
6212         (get_frame_func): Update.
6213         (frame_unwind_address_in_block): Add this_type argument and check it.
6214         Fix a typo.
6215         (get_frame_address_in_block): Update.
6216         * frame.h (enum frame_type): Move higher in the file.
6217         (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
6218         argument.
6219
6220         * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
6221         arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
6222         hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
6223         libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
6224         m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
6225         mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
6226         score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
6227         sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
6228         xstormy16-tdep.c, xtensa-tdep.c: Update calls to
6229         frame_func_unwind and frame_unwind_address_in_block to specify
6230         the frame type.  Use frame_unwind_address_in_block instead of
6231         frame_pc_unwind in sniffers.
6232
6233 2007-02-27  Daniel Jacobowitz  <dan@codesourcery.com>
6234
6235         * frame.c (deprecated_selected_frame): Rename to...
6236         (selected_frame): ...this.  Make static.
6237         (get_selected_frame, select_frame): Update.
6238         * frame.h (deprected_select_frame): Delete.
6239         (deprecated_safe_get_selected_frame): Update comments.
6240
6241         * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
6242         infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
6243         tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
6244         parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
6245         tui/tui.c: Replace references to deprecated_selected_frame.
6246
6247 2007-02-27  Fred Fish  <fnf@specifix.com>
6248
6249         * rs6000-tdep.c (skip_prologue): Recognize addi instructions that 
6250         directly decrement the stack pointer, accumulate their operand into 
6251         the stack offset, and mark the function as not being frameless.
6252
6253 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
6254
6255         * arch-utils.c (selected_byte_order): New.
6256         * arch-utils.h (selected_byte_order): New prototype.
6257         * remote-sim.c (gdbsim_open): Use selected_byte_order.
6258
6259 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
6260
6261         * symfile.c (place_section): Check SEC_ALLOC.  Do not check VMA.
6262         (default_symfile_offsets): Check VMA here.  Update section VMAs.
6263
6264 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
6265
6266         * remote.c (init_remote_state): Add special handling for placeholder
6267         registers.
6268
6269 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
6270
6271         * Makefile.in (XMLFILES): Include $(TDEP_XML).
6272         (filenames_h): New variable.
6273         (clean): Clean up xml-builtin.c and stamp-xml.
6274         (arm-linux-nat.o): Update.
6275         * config/arm/linux.mh (TDEP_XML): Define.
6276         * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
6277         (arm_linux_has_wmmx_registers): New.
6278         (GET_THREAD_ID): Fix typo.
6279         (IWMMXT_REGS_SIZE): Define.
6280         (fetch_wmmx_regs, store_wmmx_regs): New.
6281         (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
6282         (arm_linux_store_inferior_registers): Use store_wmmx_regs.
6283         (super_xfer_partial, arm_linux_xfer_partial): New.
6284         (_initialize_arm_linux_nat): Use them.
6285         * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
6286         (xml_builtin_xfer_partial): New function.
6287         * xml-support.h (xml_builtin_xfer_partial): New prototype.
6288         * NEWS: Update mention of iWMMXt support.
6289
6290 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
6291
6292         * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
6293         if there are no FPA registers.
6294         (arm_dwarf_reg_to_regnum): New function.
6295         (arm_register_type, arm_register_name): Return minimal values for
6296         unsupported registers.
6297         (arm_register_sim_regno): Handle iWMMXt registers.
6298         (arm_gdbarch_init): Record missing FPA registers if indicated by
6299         a target description.  Recognize iWMMXt registers.  Only register
6300         "info float" for FPA.  Use ARM_NUM_REGS.  Register
6301         arm_dwarf_reg_to_regnum.
6302         * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
6303         constants.
6304         (struct gdbarch_tdep): Add have_fpa_registers.
6305         * features/xscale-iwmmxt.xml: Update capitalization.
6306         * regformats/arm-with-iwmmxt.dat: Regenerated.
6307
6308 2007-02-24  Kevin Buettner  <kevinb@redhat.com>
6309
6310         * NEWS (New targets): Add entry for the Toshiba Media Processor.
6311
6312 2007-02-23  Kevin Buettner  <kevinb@redhat.com>
6313
6314         * MAINTAINERS (mep): New target.
6315
6316 2007-02-23  Kevin Buettner  <kevinb@redhat.com>
6317
6318         From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
6319         Richard Sandiford:
6320         * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
6321         (mep-tdep.o): New rule.
6322         * configure.tgt (mep-*-*): New target.
6323         * mep-tdep.c: New file.
6324         * config/mep/mep.mt: New file.
6325
6326 2007-02-22  Markus Deuling  <deuling@de.ibm.com>
6327
6328         * infrun.c (inferior_stop_reason, print_stop_reason): Remove
6329         BREAKPOINT_HIT and STOP_UNKNOWN.
6330
6331 2007-02-22  Markus Deuling  <deuling@de.ibm.com>
6332
6333         * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT. 
6334
6335 2007-02-20  Joel Brobecker  <brobecker@adacore.com>
6336
6337         * gdb_expat.h (XMLCALL): Define if not already defined.
6338
6339 2007-02-20  Andreas Schwab  <schwab@suse.de>
6340
6341         * Makefile.in (symfile.o): Update dependencies.
6342
6343 2007-02-20  Daniel Jacobowitz  <dan@codesourcery.com>
6344
6345         * MAINTAINERS: Disable -Werror for cris simulator.  Build
6346         sparc64-solaris2.10 instead of the broken sparc-elf.
6347         * solib-frv.c: Include "solib.h".
6348         * Makefile.in (solib-frv.o): Update.
6349         * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
6350         * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
6351         (xtensa_frame_this_id, xtensa_frame_prev_register)
6352         (xtensa_push_dummy_call): Use %p.
6353
6354 2007-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
6355
6356         * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
6357         ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
6358         sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
6359         * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
6360         (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
6361         (sparc-linux-tdep.o): Update.
6362
6363 2007-02-15  Maxim Grigoriev  <maxim2405@gmail.com>
6364
6365         * xtensa-tdep.h (xtensa_reg_mask_t): New.
6366         (xtensa_mask_t): Change mask field to be a separate array.
6367         * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
6368         (xtensa_pseudo_register_write, xtensa_unwind_pc)
6369         (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
6370         (xtensa_breakpoint_from_pc): Remove implicit type casting.
6371         * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
6372         (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
6373         (mask14, mask15): Rename to
6374         (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
6375         (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
6376         (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
6377         (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
6378         (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
6379         (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
6380         (xtensa_submask8, xtensa_submask9, xtensa_submask10)
6381         (xtensa_submask11, xtensa_submask12, xtensa_submask13)
6382         (xtensa_submask14, xtensa_submask15): New.
6383         (rmap): Follow strict aliasing rules doing static initialization.
6384
6385 2007-02-13  Daniel Jacobowitz  <dan@codesourcery.com>
6386
6387         * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
6388         handling from here...
6389         (tdesc_register_type): ...to here.
6390         * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
6391         * features/arm-core.xml: Use code_ptr and data_ptr.
6392
6393 2007-02-13  Denis Pilat  <denis.pilat@st.com>
6394
6395         * varobj.h (enum varobj_update_error): New enum.
6396         * varobj.c (struct varobj_root): Add is_valid member.
6397         (varobj_get_type): Check for invalid varobj.
6398         (varobj_get_attributes): Likewise.
6399         (variable_editable):Likewise.
6400         (varobj_update): Likewise.  Use varobj_update_error.
6401         (new_root_variable): Set root varobj as valid by default.
6402         (varobj_invalidate): New function.
6403         * symfile.c (clear_symtab_users): Use varobj_invalidate.
6404         * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
6405         Use varobj_update_error.
6406
6407 2007-02-12  Pierre Muller  <muller@ics.u-strasbg.fr>
6408
6409         Fix PR pascal/2223.
6410         * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
6411         Pascal language marker.
6412         * dwarf2read.c (set_cu_language): Likewise.
6413
6414 2007-02-12  Corinna Vinschen  <vinschen@redhat.com>
6415
6416         * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
6417         (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
6418         instead of target_terminal_init since inferior_ptid isn't set yet.
6419
6420 2007-02-10  Pedro Alves  <pedro_alves@portugalmail.pt>
6421
6422         * MAINTAINERS (Write After Approval): Add myself.
6423
6424 2007-02-09  Fred Fish  <fnf@specifix.com>
6425
6426         Based on work by Apple Computer, Inc.
6427         * event-top.c (async_request_quit): Call quit() whenever either
6428         quit_flag is set or immediate_quit is set.
6429
6430 2007-02-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6431
6432         * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
6433         type to a pointer to const struct block.
6434         (ada_lookup_symbol_list): Don't cast away constness when calling
6435         remove_out_of_scope_renamings.
6436
6437 2007-02-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6438
6439         * linux-nat.c (linux_nat_find_memory_regions): Don't check the
6440         address of 'filename'; it is always non null.
6441
6442 2007-02-09  Joel Brobecker  <brobecker@adacore.com>
6443
6444         * exec.c (add_to_section_table): Do not discard empty sections.
6445
6446 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
6447
6448         * features/Makefile, features/arm-with-iwmmxt.xml,
6449         features/gdbserver-regs.xsl, features/number-regs.xsl,
6450         features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
6451         * regformats/arm-with-iwmmxt.dat: Generate.
6452         * NEWS: Mention iWMMXt.
6453
6454 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
6455
6456         * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
6457         (xml-tdesc.o): Update.
6458         * xml-support.c: Add a comment.
6459         (gdb_xml_enums_boolean): New variable.
6460         (gdb_xml_parse_attr_enum): Use strcasecmp.
6461         * xml-support.h (gdb_xml_enums_boolean): Declare.
6462         * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
6463         next_regnum, and current_union.
6464         (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
6465         (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
6466         (field_attributes, union_children, reg_attributes, union_attributes)
6467         (vector_attributes, feature_attributes, feature_children): New.
6468         (target_children): Make static.  Add <feature>.
6469         (tdesc_elements): Make static.
6470         * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
6471         (struct tdesc_feature, tdesc_feature_p): New types.
6472         (struct target_desc): Add features member.
6473         (struct tdesc_arch_data, tdesc_data): New.
6474         (target_find_description): Clarify error message.  Warn about
6475         ignored register descriptions.
6476         (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
6477         (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
6478         (tdesc_data_cleanup, tdesc_numbered_register)
6479         (tdesc_numbered_register_choices, tdesc_find_register)
6480         (tdesc_register_name, tdesc_register_type)
6481         (tdesc_remote_register_number, tdesc_register_reggroup_p)
6482         (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
6483         (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
6484         (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
6485         (tdesc_create_feature, tdesc_record_type): New.
6486         (free_target_description): Free features.
6487         (_initialize_target_descriptions): Initialize tdesc_data.
6488         * arch-utils.c (default_remote_register_number): New.
6489         * arch-utils.h (default_remote_register_number): New prototype.
6490         * target-descriptions.h (set_tdesc_pseudo_register_name)
6491         (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
6492         (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
6493         (tdesc_numbered_register, tdesc_numbered_register_choices)
6494         (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
6495         (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
6496         (tdesc_create_reg): Declare.
6497         * gdbarch.sh (remote_register_number): New entry.
6498         * gdbarch.c, gdbarch.h: Regenerate.
6499         * remote.c (init_remote_state): Use gdbarch_remote_register_number.
6500         * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
6501
6502         * arm-tdep.c (arm_register_aliases): New.
6503         (arm_register_name_strings): Rename to...
6504         (arm_register_names): ...this.  Make const.  Delete the old version.
6505         (current_option, arm_register_byte): Delete.
6506         (set_disassembly_style): Simplify.  Do not adjust arm_register_names.
6507         (value_of_arm_user_reg): New.
6508         (arm_gdbarch_init): Verify any described registers.  Call
6509         tdesc_use_registers.  Don't use arm_register_byte.  Create aliases
6510         for standard register names.
6511         (_initialize_arm_tdep): Do not adjust arm_register_names.
6512         * user-regs.c (struct user_reg): Add baton member.
6513         (append_user_reg, user_reg_add_builtin, user_regs_init)
6514         (user_reg_add, value_of_user_reg): Use a baton for user
6515         register functions.
6516         * std-regs.c: Update.
6517         * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
6518         (user_reg_add): Add baton argument.
6519         * NEWS: Mention target description register support.
6520         * features/arm-core.xml, features/arm-fpa.xml: New.
6521         * eval.c (evaluate_subexp_standard): Allow ptype $register
6522         when the program is not running.
6523
6524 2007-02-09  Nick Roberts  <nickrob@snap.net.nz>
6525
6526         * mi/mi-cmd-var.c (mi_cmd_var_create):  Add value field.
6527
6528 2007-02-08  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6529
6530         * rs6000-tdep.c (gdb_print_insn_powerpc): Set
6531         info->disassembler_options to "any".
6532
6533 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
6534
6535         * varobj.c (install_new_value): Only call value_get_print_value
6536         if changeable.
6537
6538 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
6539
6540         Reported by timeless@gmail.com:
6541         * gdb/target.c (target_flash_erase): Do not return void value.
6542         (target_flash_done): Likewise.
6543         * gdb/cli/cli-cmds.c (source_command): Likewise.
6544
6545 2007-02-08  Fred Fish  <fnf@specifix.com>
6546
6547         Based on work by Apple Computer, Inc.
6548         * event-top.c (handle_sigint): Set quit_flag.
6549         (async_request_quit): Don't set quit_flag.  Avoid calling quit()
6550         if quit_flag has already been reset.
6551
6552 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
6553
6554         * ser-mingw.c (pipe_windows_close): Move variable initialization back
6555         up.
6556
6557 2007-02-08  Fred Fish  <fnf@specifix.com>
6558
6559         * defs.h (request_quit): Remove declaration.
6560         * utils.c (request_quit): Remove definition.
6561
6562 2007-02-08  Joel Brobecker  <brobecker@gnat.com>
6563             Jan Kratochvil  <jan.kratochvil@redhat.com>
6564             Daniel Jacobowitz  <dan@codesourcery.com>
6565
6566         * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
6567         (skip_prologue): Allow bl->blrl used by PIC code.
6568
6569 2007-02-08  Mark Kettenis  <kettenis@gnu.org>
6570             Daniel Jacobowitz  <dan@codesourcery.com>
6571
6572         * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
6573         initialize tmp_obstack.
6574         * p-valprint.c (pascal_object_print_value_fields)
6575         (pascal_object_print_value): Likewise.
6576
6577 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
6578
6579         * features/feature_to_c.sh: Use %s to avoid problems with nawk.
6580
6581 2007-02-08  Mark Kettenis  <kettenis@gnu.org>
6582
6583         * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
6584         * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
6585
6586 2007-02-07  Daniel Jacobowitz  <dan@codesourcery.com>
6587
6588         * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
6589         (xml_cache): New.
6590         (tdesc_parse_xml): Cache expanded descriptions.
6591
6592 2007-02-07  Daniel Jacobowitz  <dan@codesourcery.com>
6593
6594         * Makefile.in (XMLFILES): New.
6595         (COMMON_OBS): Add xml-builtin.o.
6596         (xml-builtin.c, stamp-xml): New rules.
6597         (xml-tdesc.o): Update.
6598         * features/feature_to_c.sh: New file.
6599         * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
6600         (struct gdb_xml_parser): Add dtd_name and is_xinclude.
6601         (gdb_xml_start_element): Initialize scope after possibly reallocating
6602         scopes.  Move cleanup later.  Handle the XInclude description
6603         specially.
6604         (gdb_xml_end_element): Only parse the body if there is a current element.
6605         Call XML_DefaultCurrent if there is no element.
6606         (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
6607         (struct xinclude_parsing_data, xinclude_start_include)
6608         (xinclude_end_include, xml_xinclude_default)
6609         (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
6610         (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
6611         (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
6612         * xml-support.h (xml_fetch_another, xml_process_xincludes)
6613         (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
6614         * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument.  Expand
6615         XInclude directives.  Use the compiled in DTD.
6616         (fetch_xml_from_file): Add baton argument.  Treat it as a containing
6617         directory name.  Do not warn here.
6618         (file_read_description_xml): Update call.  Warn here instead.  Pass
6619         a dirname as baton.
6620         (fetch_available_features_from_target): New.
6621         (target_read_description_xml): Use it.
6622         * features/gdb-target.dtd: Add copyright notice.  Use xinclude.dtd
6623         to handle XInclude.
6624         * features/xinclude.dtd: New file.
6625
6626 2007-02-05  Daniel Jacobowitz  <dan@codesourcery.com>
6627
6628         * linux-thread-db.c (check_for_thread_db): Return early if we have
6629         no libthread_db support.
6630
6631 2007-02-05  Daniel Jacobowitz  <dan@codesourcery.com>
6632
6633         * mi/mi-parse.h: Include <sys/time.h>.
6634
6635 2007-02-05  Nick Roberts  <nickrob@snap.net.nz>
6636
6637         * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
6638         instead of print_variable_value to print values.
6639
6640 2007-02-03  Nick Roberts  <nickrob@snap.net.nz>
6641
6642         * mi/mi-main.c: Numerous formatting changes.
6643         (mi_cmd_data_write_register_values): Replace clause inadvertantly
6644         removed in my previous change.
6645
6646 2007-02-03   Eli Zaretskii  <eliz@gnu.org>
6647
6648         * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
6649         Use 1000000L instead of 1000000.
6650
6651 2007-02-03  Nick Roberts  <nickrob@snap.net.nz>
6652
6653             Based on work by Apple Computer, Inc.
6654
6655         * configure.ac: Test for sys/resource.h and getrusage.
6656         * configure, config.in: Regenerate.
6657
6658         * mi/mi-main.c: Include <sys/resource.h> if present.
6659         (rusage): Declare if HAVE_GETRUSAGE.
6660         (current_command_ts, do_timings): New static variables.
6661         (timestamp, print_diff_now, print_diff, timeval_diff):
6662         New static timing functions.
6663         (mi_cmd_enable_timings): New function for new MI command.
6664         (captured_mi_execute_command, mi_execute_async_cli_command): 
6665         Call timing functions.
6666
6667         * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
6668         -enable-timings.
6669
6670         * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
6671
6672         * mi/mi-parse.h: (mi_timestamp): New structure.
6673         (mi_parse): Add mi_timestamp* member.
6674
6675 2007-02-02  Denis Pilat  <denis.pilat@st.com>
6676
6677         * thread.c (make_cleanup_restore_current_thread): New function.
6678         (info_threads_command): Use of make_cleanup_restore_current_thread
6679         to restore the current thread and the selected frame.
6680         (restore_selected_frame): New function.
6681         (struct current_thread_cleanup): Add frame_id field.
6682         (do_restore_current_thread_cleanup): Add restoring of the selected
6683         frame.
6684         (make_cleanup_restore_current_thread): Likewise.
6685         (thread_apply_all_command): backup the selected frame while 
6686         entering the function and restore it at exit.
6687         (thread_apply_command): Likewise.
6688
6689 2007-02-02  Denis Pilat  <denis.pilat@st.com>
6690
6691         * MAINTAINERS (Write After Approval): Add myself to the list.
6692
6693 2007-02-01  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
6694
6695         * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
6696         (m32r_store_register): Ditto.
6697
6698 2007-01-30  Vladimir Prus  <vladimir@codesourcery.com>
6699
6700         * ser-mingw.c (pipe_windows_open)
6701         (pipe_windows_read, pipe_windows_write): Declare
6702         variables at the top of the function.
6703
6704 2007-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
6705
6706         * doublest.c (floatformat_from_length): Use the right element from
6707         gdbarch floatformats.
6708         (floatformat_from_type, extract_typed_floating)
6709         (store_typed_floating): Likewise.
6710         * doublest.h: Remove declarations for undefined floatformat arrays.
6711         * gdbarch.sh (float_format, double_format, long_double_format): Change
6712         to pairs.
6713         (pformat): Update for pairs.
6714         * gdbarch.c, gdbarch.h: Regenerated.
6715         * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
6716         (floatformats_ieee_double_littlebyte_bigword)
6717         (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
6718         (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
6719         (floatformats_vax_d): New variables.
6720         (builtin_type_ieee_single, builtin_type_ieee_double)
6721         (builtin_type_arm_ext, builtin_type_ia64_spill)
6722         (builtin_type_ia64_quad): Replace arrays with individual types.
6723         (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
6724         (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
6725         (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
6726         (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
6727         (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
6728         (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
6729         (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
6730         unused and endian-specific types.
6731         (recursive_dump_type): Update for floatformat pairs.
6732         (build_flt): Move higher.  Handle bit == -1.  Take a floatformat pair.
6733         (build_gdbtypes): Use build_flt.
6734         (_initialize_gdbtypes): Update set of initialized types.
6735         * gdbtypes.h: Update declarations to match gdbtypes.c.
6736         (struct main_type): Store a pointer to two floatformats.
6737         * arch-utils.c (default_float_format, default_double_format): Delete.
6738         * arch-utils.h (default_float_format, default_double_format): Delete.
6739
6740         * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
6741         ia64-tdep.c,  iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
6742         mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
6743         sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
6744         vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
6745
6746 2007-01-29  Joel Brobecker  <brobecker@adacore.com>
6747
6748         * target.c (maintenance_print_target_stack): New function.
6749         (initialize_targets): Add new "maintenance print target-stack"
6750         command.
6751
6752 2007-01-28  Mark Kettenis  <kettenis@gnu.org>
6753
6754         * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
6755
6756 2007-01-27  Daniel Jacobowitz  <dan@codesourcery.com>
6757
6758         * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
6759         (struct dwarf2_loclist_baton): Likewise.
6760
6761 2007-01-27  Eli Zaretskii  <eliz@gnu.org>
6762
6763         * cli/cli-script.c: Include breakpoint.h.
6764         (build_command_line): Require arguments only for if and while
6765         commands.
6766         (get_command_line, execute_user_command, execute_control_command):
6767         Fix wording of warning messages.
6768         (print_command_lines): Print breakpoint commands.
6769         (execute_control_command): Call commands_from_control_command to
6770         handle the `commands' command inside a body of a flow-control
6771         command.
6772         (read_next_line): Recognize the `commands' command and build a
6773         command line structure for it.
6774         (recurse_read_control_structure, read_command_lines): Handle
6775         `commands' similarly to `if' and `while'.
6776
6777         * breakpoint.c (get_number_trailer): Document the special meaning
6778         of NULL as the first argument PP.
6779         (commands_from_control_command): New function.
6780
6781         * breakpoint.h (commands_from_control_command): Add prototype.
6782
6783         * defs.h (commands_control): New enumerated value for enum
6784         command_control_type.
6785
6786 2007-01-26  Joel Brobecker  <brobecker@adacore.com>
6787
6788         * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
6789         (ada_exception_sal): Update accordingly.
6790
6791 2007-01-26  Jan Kratochvil <jan.kratochvil@redhat.com>
6792
6793         * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
6794         * NEWS: Describe CHAR array vs. string identifcation rules.
6795
6796 2007-01-25  Paul Brook  <paul@codesourcery.com>
6797
6798         * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
6799
6800 2007-01-24  Jim Blandy  <jimb@codesourcery.com>
6801
6802         * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
6803         expression is empty, bother to return the 'optimized out' value we
6804         construct.  (Thanks to Carl Burch.)
6805
6806 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
6807
6808         * varobj.c (c_value_of_root, c_value_of_child)
6809         (cplus_describe_child): Don't call release_value.
6810
6811 2007-01-24  Thiemo Seufer  <ths@mips.com>
6812
6813         * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
6814         initialization.
6815
6816 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
6817
6818         Refactor getting children name, value and type access 
6819         for varobjs in C++.
6820         * varobj.c (get_type_deref): Remove.
6821         (adjust_value_for_child_access): New.
6822         (c_number_of_children): Use the above.
6823         (c_describe_child): Likewise.
6824         (enum accessibility): New.
6825         (match_accessibility): New function.
6826         (cplus_describe_child): New function.
6827         (cplus_name_of_child, cplus_value_of_child)
6828         (cplus_type_of_child): Reimplement in terms
6829         of cplus_describe_child.
6830         (cplus_number_of_children): Use 
6831         adjust_value_for_child_access.
6832         
6833 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
6834
6835         Fix computation of the 'editable' attribute and
6836         value changeability for for references.
6837         * varobj.c (get_value_type): New function.
6838         (c_variable_editable): Use get_value_type.
6839         (varobj_value_is_changeable): Likewise.
6840                 
6841 2007-01-24  Joel Brobecker  <brobecker@adacore.com>
6842
6843         * source.c (find_and_open_source): Try rewriting the source
6844         path inside filename if dirname is NULL.
6845
6846 2007-01-24  Joel Brobecker  <brobecker@adacore.com>
6847
6848         * dwarf2read.c (add_partial_symbol): Create an extra partial
6849         symbol in the VAR_DOMAIN for Ada structures, unions or enums.
6850         (new_symbol): Likewise for symbols.
6851
6852 2007-01-24  Nick Roberts  <nickrob@snap.net.nz>
6853
6854         * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
6855
6856 2007-01-23  Vladimir Prus  <vladimir@codesourcery.com>
6857         
6858         * value.c (value_primitive_field): Copy the full 'location' 
6859         contents, instead of assuming that copying ADDRESS will 
6860         bring over everything in the union.  Remove obsolete comment.
6861         
6862 2007-01-23  Masaki Muranaka  <monaka@monami-software.com>
6863
6864         * m32c-tdep.c (make_regs, m32c_analyze_prologue)
6865         (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
6866         (m32c_m16c_pointer_to_address): Separate code from declarations.
6867
6868 2007-01-23  Nick Hudson  <nick.hudson@dsl.pipex.com>
6869
6870         * target.c (update_current_target): Correct typo.
6871
6872 2007-01-22  Masaki Muranaka  <monaka@monami-software.com>
6873
6874         * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
6875         declaration.
6876
6877 2007-01-11  Andrew Cagney  <cagney@redhat.com>
6878             Daniel Jacobowitz  <dan@codesourcery.com>
6879             Jan Kratochvil  <jan.kratochvil@redhat.com>
6880
6881         * dwarf2-frame.c (execute_cfa_program): New support of
6882         `DW_CFA_GNU_negative_offset_extended'.
6883
6884 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
6885
6886         * NEWS: Mention flash support for "load" and new remote packets.
6887
6888 2007-01-21  Markus Deuling  <deuling@de.ibm.com>
6889
6890         * breakpoint.c (delete_command): Skip redundant loop iterations.
6891
6892 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
6893
6894         * gdbarch.sh (register_type): Update comment.
6895         * gdbarch.h: Regenerated.
6896         * arch-utils.c (generic_register_size): Call register_type.
6897         * ia64-tdep.c (ia64_extract_return_value): Likewise.
6898         * m32c-tdep.c (check_for_saved): Likewise.
6899         * mips-tdep.c (mips_print_register, print_gp_register_row)
6900         (mips_print_registers_info): Likewise.
6901         * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
6902         Likewise.
6903         * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
6904         (sh64_do_register, sh64_print_register)
6905         (sh64_media_print_registers_info): Likewise.
6906         * tui/tui-regs.c (tui_register_format): Likewise.
6907
6908 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
6909
6910         * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
6911
6912         * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
6913         (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
6914         * cp-support.c (make_symbol_overload_list_qualified): Likewise.
6915         * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6916         (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
6917         (make_symbol_completion_list): Likewise.
6918
6919 2007-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
6920             Daniel Jacobowitz  <dan@codesourcery.com>
6921
6922         * buildsym.c (end_symtab): Use preallocated symtab if available.
6923         Fill in SYMBOL_SYMTAB.
6924         * buildsym.h (struct subfile): Add symtab member.
6925         * dwarf2read.c (struct dwarf2_cu): Add line_header.
6926         (struct file_entry): Add symtab.
6927         (free_cu_line_header): New function.
6928         (read_file_scope): Use it.  Save line_header in the cu.  Process
6929         lines before DIEs.
6930         (add_file_name): Initialize new symtab member.
6931         (dwarf_decode_lines): Create symtabs for included files.
6932         (new_symbol): Set SYMBOL_SYMTAB.
6933         * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
6934         (search_symbols): Likewise.
6935         * symtab.h (struct symbol): Add symtab member.
6936         (SYMBOL_SYMTAB): Define.
6937
6938 2007-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
6939
6940         * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
6941
6942 2007-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
6943
6944         * arch-utils.c (show_endian): Correct reversed condition.
6945
6946 2007-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
6947
6948         * MAINTAINERS (Write After Approval): Add myself.
6949
6950 2007-01-16  Daniel Jacobowitz  <dan@codesourcery.com>
6951             Vladimir Prus  <vladimir@codesourcery.com>
6952
6953         Fix 'selected frame' varobjs.
6954         * varobj.c (struct varobj): Remove the error field.
6955         (varobj_set_value): Don't check var->error.
6956         (install_new_value): Don't set var->error.
6957         (varobj_update): Always pass the new value
6958         of the root via install_new_value.
6959         (create_child): Don't set error field.
6960         (new_variable): Likewise.
6961         (c_value_of_root): Always reevaluate the value
6962         of selected frame varobjs in the selected frame.
6963         Don't call reinit_frame_cache.
6964
6965 2007-01-15  Joel Brobecker  <brobecker@adacore.com>
6966
6967         * source.c (_initialize_source): Improve the help text of
6968         the substitute-path commands.
6969
6970 2007-01-14  Mark Kettenis  <kettenis@gnu.org>
6971
6972         * frv-tdep.c (frv_gdbarch_init, frv_register_name)
6973         (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
6974         (frv_skip_prologue): Remove prototypes.
6975         (frv_adjust_breakpoint_address): Renamed from
6976         frv_gdbarch_adjust_breakpoint_address.
6977         (frv_gdbarch_init): Adjust.
6978
6979 2007-01-13  Mark Kettenis  <kettenis@gnu.org>
6980
6981         * gdbarch.sh (deprecated_extract_return_value)
6982         (deprecated_store_return_value): Remove.
6983         (extract_return_value, store_return_value): Remove default values.
6984         * gdbarch.c, gdbarch.h: Regenerate.
6985         * arch-utils.c, arch-utils.h (legacy_extract_return_value)
6986         (legacy_store_return_value): Remove.
6987         * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
6988         Remove.
6989
6990         * mi/mi-main.c: Remove obsolete comment.
6991
6992         * regcache.c, regcache.h (deprecated_register_bytes)
6993         (deprecated_read_register_bytes)
6994         (deprecated_write_register_bytes): Remove.
6995
6996         * frame.c (get_frame_register_bytes, put_frame_register_bytes):
6997         Don't forget to move destination pointer.
6998
6999 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
7000
7001         * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
7002
7003 2007-01-11  Ulrich Weigand  <uweigand@de.ibm.com>
7004
7005         * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
7006         past entry function with recent newlib.
7007
7008 2007-01-11  Vladimir Prus  <vladimir@codesourcery.com>
7009
7010         * gdb.texinfo (GDB/MI Variable Objects): Improve the 
7011         introduction.  Specify -var-update more exactly.
7012
7013 2007-01-11  Daniel Jacobowitz  <dan@codesourcery.com>
7014
7015         * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
7016
7017 2007-01-10  Jim Blandy  <jimb@codesourcery.com>
7018
7019         * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
7020         the Global Maintainers' invitation to be a global maintainer.
7021
7022 2007-01-10  Daniel Jacobowitz  <dan@codesourcery.com>
7023
7024         * infrun.c (singlestep_pc): New variable.
7025         (resume): Set singlestep_pc.
7026         (context_switch): Add a debugging message.  Flush the frame cache.
7027         (handle_inferior_event): Add debugging messages.  Handle thread
7028         hops when a software single step has completed.  Let context_switch
7029         handle flushing the frame cache.
7030
7031 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
7032
7033         * NEWS: Mention target descriptions, "set tdesc filename",
7034         "unset tdesc filename", "show tdesc filename", and
7035         qXfer:features:read.
7036         * arch-utils.c (choose_architecture_for_target): New function.
7037         (gdbarch_info_fill): Call it.
7038         * target-descriptions.c (struct property): Make members non-const.
7039         (struct target_desc): Add arch member.
7040         (target_description_filename): New variable.
7041         (target_find_description): Try via XML first.
7042         (tdesc_architecture): New.
7043         (free_target_description, make_cleanup_free_target_description): New.
7044         (set_tdesc_property): Call xstrdup.
7045         (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
7046         (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
7047         (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
7048         (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
7049         * target-descriptions.h (tdesc_architecture)
7050         (make_cleanup_free_target_description, set_tdesc_architecture): New
7051         prototypes.
7052         * Makefile.in (SFILES): Add xml-tdesc.c.
7053         (COMMON_OBS): Add xml-tdesc.o.
7054         (target-descriptions.o): Update.
7055         (xml-tdesc.o): New rule.
7056         * xml-tdesc.c, xml-tdesc.h: New files.
7057         * remote.c (PACKET_qXfer_features): New enum.
7058         (remote_protocol_features): Add qXfer:features:read.
7059         (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
7060         (_initialize_remote): Register qXfer:features:read.
7061         * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
7062         * features/gdb-target.dtd: New file.
7063
7064 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
7065
7066         * copyright.sh: Clarify error.
7067
7068 2007-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
7069
7070         * symtab.c (matching_bfd_sections): Fix VMA matching for
7071         prelinked objects.
7072
7073 2007-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
7074
7075         * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
7076         nested symbols.
7077
7078 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
7079
7080         Updated copyright notices for most files.
7081
7082 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
7083
7084         * copyright.sh (prunes): Add step-line.inp and step-line.c.
7085
7086 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
7087
7088         * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
7089         exec_prefix.
7090         (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
7091         '${prefix}'.
7092         * configure, config.in: Regenerate.
7093         * defs.h (debug_file_directory): Declare.
7094         * main.c (captured_main): Canonicalize gdb_sysroot.  Assume
7095         TARGET_SYSTEM_ROOT is defined.  Initialize debug_file_directory and
7096         relocate it if DEBUGDIR_RELOCATABLE.
7097         * symfile.c (debug_file_directory): Make non-static.
7098         (find_separate_debug_file): Look for debug info for SYSROOT/PATH
7099         in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
7100         (_initialize_symfile): Don't initialize debug_file_directory here.
7101
7102 2007-01-09  Jim Blandy  <jimb@codesourcery.com>
7103
7104         * score-tdep.c (score_push_dummy_call): Don't mix declarations and
7105         statements.
7106
7107 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
7108
7109         * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
7110         frame_unwind_register to recurse.
7111         * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
7112         (alpha_heuristic_frame_prev_register): Likewise.
7113         * h8300-tdep.c (h8300_frame_prev_register): Likewise.
7114         * m32c-tdep.c (m32c_prev_register): Likewise.
7115         * frame.c (frame_register_unwind_location): Remove FIXME.
7116
7117 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
7118             Eli Zaretskii  <eliz@gnu.org>
7119
7120         * copyright.sh: New file.
7121
7122 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
7123
7124         * configure.ac: Check for XML_StopParser.
7125         * xml-support.c (gdb_xml_body_text): Check for an error.
7126         (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
7127         (gdb_xml_end_element_wrapper): Likewise.
7128         * config.in, configure: Regenerated.
7129
7130 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
7131
7132         * varobj.c (install_new_value): Always update print_value.
7133         (value_get_print_value): Immediately return NULL for missing
7134         values.
7135
7136 2007-01-08  Jim Blandy  <jimb@codesourcery.com>
7137
7138         * configure.ac: Tighten pattern for extracting value of
7139         DEPRECATED_TM_FILE from the target makefile fragment.
7140         * configure: Regenerated.
7141
7142 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
7143
7144         * linux-nat.c (struct simple_pid_list): Add status.
7145         (add_to_pid_list): Record the PID's status.
7146         (linux_record_stopped_pid): Likewise.  Make static.
7147         (pull_pid_from_list): Return the saved status.
7148         (linux_nat_handle_extended): Deleted.
7149         (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
7150         Make static.  Handle non-SIGSTOP for a new thread's first signal.
7151         (flush_callback): Handle unexpected pending signals.
7152         (linux_nat_wait): Update calls to changed functions.
7153         * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
7154         Remove prototypes for newly static functions.
7155
7156 2007-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
7157
7158         * gdbarch.sh (value_from_register): New gdbarch function.
7159         * gdbarch.c, gdbarch.h: Regenerate.
7160         * findvar.c (default_value_from_register): New function.
7161         (value_from_register): Use gdbarch_value_from_register.
7162         * value.h (default_value_from_register): Declare.
7163         * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
7164         spu_value_to_register): Remove.
7165         (spu_value_from_register): New function.
7166         (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7167         set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7168         Call set_gdbarch_value_from_register.
7169         * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
7170         s390_value_to_register): Remove.
7171         (s390_value_from_register): New function.
7172         (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7173         set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7174         Call set_gdbarch_value_from_register.
7175
7176 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
7177
7178         * NEWS: Add "set sysroot" and "show sysroot".
7179         * solib.c (solib_absolute_prefix): Delete.  Replace
7180         all uses with gdb_sysroot.
7181         (_initialize_solib): Add "set sysroot" and "show sysroot".
7182         Make "solib-absolute-prefix" an alias to it.
7183
7184 2007-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
7185
7186         * frame.c (get_frame_register_bytes): New function.
7187         (put_frame_register_bytes): Likewise.
7188         * frame.h (get_frame_register_bytes): Declare.
7189         (put_frame_register_bytes): Likewise.
7190         * findvar.c (value_from_register): Always construct lval_register
7191         values.  Use get_frame_register_bytes.
7192         * valops.c (value_assign): Use get_frame_register_bytes and
7193         put_frame_register_bytes.
7194
7195 2007-01-08  Jim Blandy  <jimb@codesourcery.com>
7196
7197         * MAINTAINERS: Update Stan Shebs' email address.
7198
7199 2007-01-07  Joel Brobecker  <brobecker@adacore.com>
7200
7201         * ada-lang.c (is_known_support_routine): Improve the implementation.
7202
7203 2007-01-06  Joel Brobecker  <brobecker@adacore.com>
7204
7205         * ada-lang.c: Add include of source.h.
7206         (is_known_support_routine): Improve the check verifying that the file
7207         associated to this frame exists.
7208         * Makefile.in (ada-lang.o): Add dependency on source.h.
7209
7210 2007-01-07  Jim Blandy  <jimb@codesourcery.com>
7211
7212         * ax-general.c (ax_const_l): Select proper opcode for the given
7213         value.
7214
7215 2007-01-05  Vladimir Prus  <vladimir@codesourcery.com>
7216
7217         * varobj.c (c_value_of_root): Don't select frame if variable
7218         object is out of scope.
7219
7220 2007-01-05  Nick Roberts  <nickrob@snap.net.nz>
7221
7222         * varobj.c (struct varobj): New member print_value.
7223         (install_new_value): Compare last printed value with current one
7224         instead of contents.
7225         (new_variable): Initialize var->print_value to NULL.
7226         (free_variable): Free var->print_value.
7227         (value_get_print_value): New function derived from
7228         c_value_of_variable.
7229         (c_value_of_variable): Use value_get_print_value.
7230
7231 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
7232
7233         * i386-tdep.c (i386_analyze_stack_align): Add comment.
7234
7235 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
7236
7237         * NEWS: Add entries for new catch commands.
7238
7239 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
7240
7241         * dwarf2read.c (partial_die_info): Add field has_byte_size.
7242         (add_partial_symbol): Correct identification of external references.
7243         (process_structure_scope): Likewise.
7244         (read_partial_die): Handle DW_AT_byte_size attribute.
7245
7246 2007-01-05  Daniel Jacobowitz  <dan@codesourcery.com>
7247
7248         * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
7249
7250 2007-01-05  Nick Roberts  <nickrob@snap.net.nz>
7251
7252         * varobj.c (get_type_deref): Fix variable objects for references to
7253         pointers.
7254
7255 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
7256
7257         * symtab.c (find_pc_sect_psymtab): Add comments.  Handle psymtabs
7258         with no symbols.
7259
7260 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
7261
7262         * memory-map.c (struct_memory_map_parsing_data): Remove most
7263         members.  Make property_name an array.
7264         (free_memory_map_parsing_data, memory_map_start_element)
7265         (memory_map_end_element, memory_map_character_data): Delete.
7266         (memory_map_start_memory, memory_map_end_memory)
7267         (memory_map_start_property, memory_map_end_property): New functions.
7268         (property_attributes, memory_children, memory_type_enum)
7269         (memory_attributes, memory_map_children, memory_map_elements): New.
7270         (parse_memory_map): Rewrite.
7271         * xml-support.c (debug_xml): New.
7272         (xml_get_required_attribute, xml_get_integer_attribute)
7273         (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
7274         Delete.
7275         (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
7276         (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
7277         (gdb_xml_start_element, gdb_xml_start_element_wrapper)
7278         (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
7279         (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
7280         (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
7281         (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
7282         New.
7283         * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
7284         (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
7285         (enum gdb_xml_element_flag, struct gdb_xml_element)
7286         (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
7287         (struct gdb_xml_enum): New.
7288         (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
7289         (gdb_xml_error, gdb_xml_parse_attr_ulongest)
7290         (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
7291         (xml_get_required_attribute, xml_get_integer_attribute)
7292         (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
7293         * Makefile.in (xml_support_h, xml-support.o): Update.
7294
7295 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
7296
7297         * Makefile.in (eval.o): Update dependencies.
7298         * eval.c: Include "ui-out.h" and "exceptions.h".
7299         (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
7300         Use value_zero if an error occurs when avoiding side effects.
7301         * varobj.c (c_value_of_root): Initialize new_val.
7302
7303 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
7304
7305         * varobj.c (varobj_list_children): Stop if the number of children is
7306         unknown.
7307         (c_number_of_children):
7308
7309 2007-01-04  Mark Kettenis  <kettenis@gnu.org>
7310
7311         * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
7312         (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
7313         (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
7314         (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
7315         sizeof, instead of hardcoded constants.
7316
7317 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
7318
7319         * CONTRIBUTE: Use sourceware.org.
7320
7321 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
7322
7323         * buildsym.c (start_subfile): Handle producer.
7324         (record_producer): New function.
7325         * buildsym.h (struct subfile): Include producer.
7326         (record_producer): New prototype.
7327         * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
7328         (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
7329         armcc_cfa_offsets_reversed.
7330         (execute_cfa_program): Handle armcc_cfa_offsets_sf.
7331         (dwarf2_frame_find_quirks): New function.
7332         (dwarf2_frame_cache): Call it.  Handle armcc_cfa_offsets_reversed.
7333         (decode_frame_entry_1): Record the CIE version.  Record the
7334         augmentation.  Skip armcc augmentations.
7335         * dwarf2read.c (read_file_scope): Save the producer.
7336         * symtab.h (struct symtab): Rename unused version member to
7337         producer.
7338
7339 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
7340
7341         * configure.ac (build_warnings): Use -Wall and
7342         -Wdeclaration-after-statement.
7343         * configure: Regenerated.
7344
7345 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
7346
7347         Simplify access to variours properties of child
7348         variable objects in C.
7349         * varobj.c (value_struct_element_index): New function.
7350         (c_describe_child): New function.
7351         (c_name_of_child, c_value_of_child)
7352         (c_type_of_child): Rewrite to use c_describe_child.
7353
7354 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
7355
7356         gdb/
7357         * varobj.c: Include "vec.h". 
7358         (varobj_p): New typedef, declare vector of those.
7359         (struct varobj): Use vector for the 'children' member.
7360         (child_exists): Remove.
7361         (save_child_in_parent): Remove.
7362         (remove_child_from_parent): Remove.
7363         (struct varobj_child): Remove.
7364         (struct vstack): Remove.
7365         (vpush, vpop): Remove.
7366         (varobj_list_children): Adjust to work work vector.
7367         (varobj_update): Likewise. Use vectors for
7368         working stack and result.
7369         (delete_variable_1): Likewise.
7370         * Makefile.in (varobj.o): Update dependencies.
7371
7372 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
7373
7374         Port from Apple's version.
7375         gdb/
7376         * varobj.c (type_changeable): Rename to...
7377         (varobj_value_is_changeable_p): ...this. Adjust all callers.
7378         (is_root_p): New function. Use it everywhere.
7379
7380 2007-01-04  Jim Blandy  <jimb@codesourcery.com>
7381
7382         * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
7383         then plain 'fixup'.
7384
7385 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
7386
7387         * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
7388
7389 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
7390
7391         * hpread.c (hpread_type_lookup): Fix compilation failure.
7392
7393 2007-01-04  Qinwei  <qinwei@sunnorth.com.cn>
7394
7395         * NEWS: New port to S+core.
7396         * MAINTAINERS (Write After Approval, Responsible Maintainers):
7397         Add myself.
7398
7399         * Makefile.in: Add dependencies for S+core files.
7400         * configure.tgt (score*, score-*-*): Add S+core target.
7401         * config/score/embed.mt: New file.
7402         * score-tdep.c: New file.
7403         * score-tdep.h: New file.
7404
7405 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
7406
7407         * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
7408         the appropriate type rather than a bogus void type.
7409
7410 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
7411
7412         * ada-lang.h (ada_find_printable_frame): Remove.
7413         (ada_exception_catchpoint_p, ada_decode_exception_location)
7414         (ada_decode_assert_location): Add declaration.
7415         * ada-lang.c: Add include of annotate.h and valprint.h.
7416         (exception_catchpoint_kind): New enum.
7417         (function_name_from_pc, is_known_support_routine)
7418         (ada_find_printable_frame, ada_unhandled_exception_name_addr)
7419         (ada_exception_name_addr_1, ada_exception_name_addr)
7420         (print_it_exception, print_one_exception, print_mention_exception)
7421         (print_it_catch_exception, print_one_catch_exception)
7422         (print_mention_catch_exception, catch_exception_breakpoint_ops)
7423         (print_it_catch_exception_unhandled)
7424         (print_one_catch_exception_unhandled)
7425         (print_mention_catch_exception_unhandled, print_it_catch_assert)
7426         (print_one_catch_assert, print_mention_catch_assert)
7427         (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
7428         (ada_get_next_arg, catch_ada_exception_command_split)
7429         (ada_exception_sym_name, ada_exception_sym_name)
7430         (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
7431         (ada_parse_catchpoint_condition, ada_exception_sal)
7432         (ada_decode_exception_location)
7433         (ada_decode_assert_location): New function.
7434         (catch_exception_unhandled_breakpoint_ops): New global variable.
7435         (catch_assert_breakpoint_ops): New global variable.
7436         * breakpoint.c: Add include of ada-lang.h.
7437         (print_one_breakpoint): Do not print the condition for Ada
7438         exception catchpoints.
7439         (create_ada_exception_breakpoint): New function.
7440         (catch_ada_exception_command, catch_assert_command): New function.
7441         (catch_command_1): Add support for the new "catch exception" and
7442         "catch assert" commands.
7443         (_initialize_breakpoint): Add help description for the new catch
7444         commands.
7445         * Makefile.in (ada-lang.o): Add dependency on annotate.h and
7446         valprint.h.
7447         (breakpoint.o): Add dependency on ada-lang.h.
7448
7449 2007-01-03  Pedro Alves  <pedro_alves@portugalmail.pt>
7450
7451         * coffread.c (cs_to_section): If bfd_section is found, always
7452         return its section index.
7453         (coff_symtab_read): Determine the minimal_symbol_type using the
7454         bfd_section flags.
7455
7456 2007-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7457             Daniel Jacobowitz  <dan@codesourcery.com>
7458
7459         * Makefile.in (top.o): Update.
7460         * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
7461         (saved_after_char_processing_hook, gdb_readline_wrapper_line)
7462         (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
7463         New.
7464         (gdb_readline_wrapper): Rewrite to use asynchronous readline.
7465
7466 2007-01-03  Mark Kettenis  <kettenis@gnu.org>
7467
7468         * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
7469         (arm_linux_init_abi): Don't set deprecated_extract_return_value.
7470
7471 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
7472
7473         * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
7474         * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
7475         * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
7476         greater than or equal to zero.
7477         * m2-typeprint.c (m2_array): Likewise.
7478         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7479         * gdbtypes.c (copy_type_recursive): Correct == typo.
7480         * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
7481         * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
7482         greater than zero.
7483         * macroscope.c (sal_macro_scope): Don't name a local variable "main".
7484         (default_macro_scope): Remove unused variable.
7485         * prologue-value.h (pv_area_find_reg): Don't name an argument
7486         "register".
7487         * remote-fileio.c (remote_fio_func_map): Add missing braces.
7488         * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
7489         type.
7490         (cleanup_sigint_signal_handler): Remove casts.
7491         * valprint.c (val_print): Use a volatile local for the modified
7492         argument.
7493         * varobj.c (languages): Remove extra array dimension.
7494         (varobj_create): Correct access to languages array.
7495         * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
7496         missing braces.
7497         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
7498         * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
7499         * mi/mi-getopt.c (mi_valid_noargs): Likewise.
7500         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
7501         (mi_cmd_data_write_memory): Likewise.
7502         * signals/signals.c (target_signal_to_string): Cast to int before
7503         comparing.
7504         * tui/tui-layout.c (init_and_make_win): Take and return a void *.
7505         Update all callers.
7506
7507 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
7508
7509         * NEWS: Mention pointer to member improvements.
7510         * Makefile.in (gnu-v3-abi.o): Delete special rule.
7511         (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
7512         * ada-valprint.c (ada_print_scalar): Update for new type codes.
7513         * c-typeprint.c (c_print_type): Update for new type codes.
7514         (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
7515         (c_type_print_base): Likewise.
7516         (c_type_print_args): Rewrite.
7517         * c-valprint.c (c_val_print): Update for new type codes.  Remove
7518         support for references to members.  Treat methods like functions.
7519         * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
7520         (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
7521         * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
7522         (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
7523         (struct cp_abi_ops): Add corresponding members.
7524         * cp-valprint.c (cp_print_class_method): Delete.
7525         (cp_find_class_member): New function.
7526         (cp_print_class_member): Use it.  Simplify support for bogus
7527         member pointers.
7528         * dwarf2read.c (quirk_gcc_member_function_pointer): Use
7529         lookup_methodptr_type.
7530         (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
7531         * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
7532         OP_SCOPE.  Update call to value_aggregate_elt.  Rewrite member
7533         pointer support.
7534         (evaluate_subexp_for_address): Handle OP_SCOPE explicitly.  Handle
7535         references returned by user defined operators.
7536         * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
7537         (f_type_print_varspec_suffix): Remove support for member pointers.
7538         * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
7539         and adjusted.
7540         (smash_to_memberptr_type): Likewise, from smash_to_member_type.
7541         (lookup_methodptr_type): New.
7542         (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
7543         (recursive_dump_type): Update for new types.
7544         * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
7545         TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
7546         (lookup_memberptr_type, lookup_methodptr_type)
7547         (smash_to_memberptr_type): New prototypes.
7548         (smash_to_method_type): Formatting fix.
7549         (lookup_member_type, smash_to_member_type): Delete prototypes.
7550         * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
7551         Do not rely on debug information for the vptr or the method's
7552         enclosing type.  Handle function descriptors for IA64.
7553         (gnuv3_virtual_fn_field): Rewrite using the new functions.
7554         (gnuv3_find_method_in, gnuv3_print_method_ptr)
7555         (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
7556         (gnuv3_method_ptr_to_value): New.
7557         (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
7558         * hpread.c (hpread_type_lookup): Update for new types.
7559         * infcall.c (value_arg_coerce): Likewise.
7560         * m2-typeprint.c (m2_print_type): Remove explicit support
7561         for member pointers.
7562         * m2-valprint.c (m2_val_print): Likewise.
7563         * p-typeprint.c (pascal_type_print_varspec_prefix)
7564         (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
7565         * p-valprint.c (pascal_val_print): Likewise.
7566         (pascal_object_print_class_method, pascal_object_print_class_member):
7567         Delete.
7568         * p-lang.h (pascal_object_print_class_method)
7569         (pascal_object_print_class_member): Delete prototypes.
7570         * stabsread.c (read_type): Update for new types.
7571         * typeprint.c (print_type_scalar): Likewise.
7572         * valops.c (value_struct_elt_for_reference, value_namespace_elt)
7573         (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
7574         argument.  Construct a pointer to member if the address of a
7575         function or data member is requested.
7576         (value_cast_pointers): Don't modify the input value.
7577         (value_cast): Adjust pointer to member handling for new types.
7578         Allow null pointer to member constants.  Don't modify the input
7579         value.
7580         (value_ind): Remove pointer to member check.  Handle function
7581         descriptors for function pointers.
7582         (value_struct_elt, value_find_oload_method_list, check_field):
7583         Remove pointer to member checks.
7584         * value.c (unpack_long): Allow pointers to data members.
7585         (value_from_longest): Allow member pointers.
7586         * value.h (value_aggregate_elt): Add want_address.
7587         * varobj.c (c_variable_editable): Remove check for members.
7588         * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
7589         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
7590         in virtual tables.
7591         (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
7592         * c-lang.h (cp_print_class_method): Delete prototype.
7593         * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
7594         * mips-tdep.c (mips_gdbarch_init): Likewise.
7595         * gdbarch.c, gdbarch.h: Regenerated.
7596
7597 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
7598
7599         * rs6000-tdep.c (rs6000_use_struct_convention)
7600         (rs6000_extract_return_value, rs6000_store_return_value)
7601         (rs6000_extract_struct_value_address): Remove.
7602         (rs6000_return_value): New function.
7603         (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
7604         store_return_value, deprecated_extract_struct_value_address and
7605         deprecated_use_struct_convention.  Use rs6000_return_value
7606         instead.
7607
7608 2007-01-02  Nick Roberts  <nickrob@snap.net.nz>
7609
7610         * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
7611         -display-disable, -display-enable, -display-insert and
7612         -display-list.
7613
7614 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
7615
7616         * breakpoint.c (remove_breakpoint): Remove dead code.
7617
7618 2007-01-01  Nick Roberts  <nickrob@snap.net.nz>
7619
7620         * varobj.c: Include block.h.
7621         (c_value_of_root): Check scope within nested statements.
7622
7623 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
7624
7625         * mi/mi-main.c (mi_cmd_data_write_register_values): Use
7626         regcache_cooked_write_signed instead of
7627         deprecated_write_register_bytes.
7628
7629 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
7630
7631         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
7632
7633 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
7634
7635         Followed the Start of New Year Procedure:
7636         * ChangeLog-2006: New file, containing all the entries for 2006.
7637         * ChangeLog: Removed all 2006 entries, and changed the reference
7638         to the previous ChangeLog to point to ChangeLog 2006.
7639         * top.c (print_gdb_version): Update copyright year.
7640
7641 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
7642
7643         * Makefile.in (remote-sds.o): Remove.
7644         * remote-sds.c: Delete.
7645
7646 For older changes see ChangeLog-2006.
7647 \f
7648 Local Variables:
7649 mode: change-log
7650 left-margin: 8
7651 fill-column: 74
7652 version-control: never
7653 coding: utf-8
7654 End: