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