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