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