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