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