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