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