]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
* gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
2
3 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
4 (write_pc): Likewise. Remove default implementation, add predicate.
5 * gdbarch.c, gdbarch.h: Regenerate.
6 * regcache.c (read_pc_pid): Use current regcache instead of calling
7 read_register_pid.
8 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
9 case inline.
10 (generic_target_write_pc): Remove.
11 * inferior.h (generic_target_write_pc): Remove.
12 * frv-tdep.c (frv_gdbarch_init): Do not install it.
13 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
15 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
16 * sh-tdep.c (sh_gdbarch_init): Likewise.
17 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
18
19 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
20 argument. Use REGCACHE instead of calling read_register_pid.
21 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
22 * hppa-tdep.c (hppa_read_pc): Likewise.
23 * hppa-tdep.h (hppa_read_pc): Likewise.
24 * ia64-tdep.c (ia64_read_pc): Likewise.
25 * m32r-tdep.c (m32r_read_pc): Likewise.
26 * mep-tdep.c (mep_read_pc): Likewise.
27 * mn10300-tdep.c (mn10300_read_pc): Likewise.
28 * spu-tdep.c (spu_read_pc): Likewise.
29
30 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
31 argument. Use REGCACHE instead of calling write_register_pid.
32 * avr-tdep.c (avr_write_pc): Likewise.
33 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
34 * hppa-tdep.c (hppa_write_pc): Likewise.
35 * hppa-tdep.h (hppa_write_pc): Likewise.
36 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
37 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
38 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
39 * ia64-tdep.c (ia64_write_pc): Likewise.
40 * ia64-tdep.h (ia64_write_pc): Likewise.
41 * m32r-tdep.c (m32r_write_pc): Likewise.
42 * m88k-tdep.c (m88k_write_pc): Likewise.
43 * mep-tdep.c (mep_write_pc): Likewise.
44 * mips-tdep.c (mips_write_pc): Likewise.
45 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
46 * mn10300-tdep.c (mn10300_write_pc): Likewise.
47 * sparc-tdep.c (sparc_write_pc): Likewise.
48 * spu-tdep.c (spu_write_pc): Likewise.
49
50 * mips-tdep.c (read_signed_register): Remove.
51 (read_signed_register_pid): Likewise.
52 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
53 Use REGCACHE instead of calling read_signed_register_pid.
54
55 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
56
57 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
58 * gdbarch.c, gdbarch.h: Regenerate.
59 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
60 (push_dummy_code): Likewise. Pass it to callee.
61 (call_function_by_hand): Pass current regcache to push_dummy_code.
62
63 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
64 argument. Use it instead of current_regcache.
65
66 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
67 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
68
69 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
70
71 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
72 * gdbarch.c, gdbarch.h: Regenerate.
73 * infrun.c (handle_inferior_event): Pass current frame to
74 gdbarch_get_longjmp_target.
75
76 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
77 Read registers from FRAME instead of using read_register.
78 Use get_frame_arch instead of current_gdbarch.
79 * arm-tdep.c (arm_get_longjmp_target): Likewise.
80 * i386-tdep.c (i386_get_longjmp_target): Likewise.
81 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
82 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
83 (mips64_linux_get_longjmp_target): Likewise.
84 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
85
86 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
87
88 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
89 * gdbarch.c, gdbarch.h: Regenerate.
90 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
91 * arch-utils.h (generic_skip_trampoline_code): Likewise.
92 * infrun.c (handle_inferior_event): Pass current frame to
93 gdbarch_skip_trampoline_code and skip_language_trampoline.
94
95 * language.c (unk_lang_trampoline): Add FRAME argument.
96 (skip_language_trampoline): Add FRAME argument. Pass it to
97 skip_trampoline callback.
98 * language.h: Add forward declaration of struct frame_info.
99 (struct language_defn): Add FRAME argument to skip_trampoline.
100 (skip_language_trampoline): Add FRAME argument.
101 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
102 to skip_trampoline callback.
103 * cp-abi.h: Add forward declaration of struct frame_info.
104 (cplus_skip_trampoline): Add FRAME argument.
105 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
106 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
107 to gdbarch_skip_trampoline_code.
108 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
109 to gdbarch_skip_trampoline_code.
110
111 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
112 * symtab.h (find_solib_trampoline_target): Likewise.
113 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
114 find_solib_trampoline_target.
115
116 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
117 from FRAME instead of calling read_register.
118
119 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
120 argument. Read registers from FRAME instead of using read_register.
121 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
122 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
123
124 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
125 argument.
126
127 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
128
129 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
130 registers from FRAME instead of using read_signed_register.
131
132 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
133 argument.
134 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
135 instead of using read_register.
136 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
137 ppc64_standard_linkage_target.
138 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
139 Pass it to find_solib_trampoline_target. Read registers from FRAME
140 instead of using read_register.
141
142 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
143 argument.
144
145 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
146
147 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
148 FRAME argument.
149 * gdbarch.c, gdbarch.h: Regenerate.
150 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
151
152 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
153 registers from FRAME instead of using read_register.
154 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
155 to alpha_next_pc. Use get_frame_pc instead of read_pc.
156 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
157 argument by FRAME.
158
159 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
160 from FRAME instead of using read_register.
161 (thumb_get_next_pc): Likewise.
162 (arm_get_next_pc): Likewise.
163 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
164 to arm_get_next_pc. Use get_frame_pc instead of read_register.
165 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
166 argument by FRAME.
167
168 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
169 from FRAME instead of using read_register.
170 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
171 to find_step_target.
172
173 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
174 from FRAME instead of using read_register / read_signed_register.
175 (extended_mips16_next_pc): Likewise.
176 (mips16_next_pc): Likewise.
177 (mips_next_pc): Likewise.
178 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
179 to mips_next_pc. Use get_frame_pc instead of read_pc.
180 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
181 argument by FRAME.
182
183 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
184 of current frame. Read registers from FRAME.
185 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
186 branch_dest. Use get_frame_pc instead of read_pc.
187 (rs6000_software_single_step): Likewise.
188 (bl_to_blrl_insn_p): Do not call branch_dest.
189 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
190 argument by FRAME.
191
192 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
193 Read registers from FRAME instead of current regcache.
194 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
195 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
196 * sparc-tdep.c (sparc_address_from_register): Remove.
197 (sparc_analyze_control_transfer): Pass FRAME argument instead of
198 GDBARCH. Pass FRAME to step_trap callback.
199 (sparc_step_trap): Add FRAME argument.
200 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
201 to sparc_analyze_control_transfer. Read registers from FRAME instead
202 of calling sparc_address_from_register.
203 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
204 step_trap callback.
205 (sparc_address_from_register): Remove prototype.
206 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
207 (sparcnbsd_step_trap): Add FRAME argument.
208
209 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
210 by FRAME. Read registers from FRAME instead of REGCACHE.
211
212 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
213
214 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
215 instead of calling read_register.
216
217 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
218 calling write_register.
219
220 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
221 calling write_register.
222
223 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
224 instead of calling read_register.
225 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
226 instead of calling read_register and write_register.
227
228 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
229 instead of current_regcache.
230
231 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
232 of calling write_register.
233 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
234 parameter instead of current_regcache.
235
236 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
237 instead of calling read_register.
238 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
239 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
240 (mips_n32n64_push_dummy_call): Likewise.
241 (mips_o32_push_dummy_call): Likewise.
242 (mips_o64_push_dummy_call): Likewise.
243
244 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
245 parameter instead of current_regcache.
246
247 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
248 Use it instead of read_register and write_register.
249 (xtensa_register_read_masked): Likewise.
250 (xtensa_pseudo_register_read): Update call.
251 (xtensa_pseudo_register_write): Likewise.
252 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
253 instead of calling read_register.
254 (xtensa_push_dummy_call): Update comment.
255
256 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
257
258 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
259 by frame_unwind_register_signed calls.
260 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
261 frame allocations when called with NULL NEXT_FRAME parameter.
262 (read_next_frame_reg): Remove.
263
264 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
265 instead of reading the FPSCR register.
266 (sh_frame_cache): Pass unwound FPSCR register value to
267 sh_analyze_prologue.
268 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
269
270 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
271 instead of reading the CTBP register.
272 (v850_frame_cache): Pass unwound CTBP register value to
273 v850_analyze_prologue.
274
275 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
276
277 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
278 * sh-tdep.c (sh_show_regs): Likewise.
279 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
280 (sh_generic_show_regs): Add FRAME parameter. Use register
281 values from that frame instead of calling read_register.
282 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
283 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
284 sh_dsp_show_regs): Likewise.
285 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
286 sh64_show_regs): Likewise.
287
288 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
289
290 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
291 current regcache instead of calling read_register.
292
293 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
294
295 * mep-tdep.c (current_me_module): Read from current regcache
296 instead of calling read_register.
297 (current_options): Likewise.
298
299 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
300
301 * cris-tdep.c (cris_stopped_data_address): Read register values
302 from current frame instead of calling read_register.
303 * frv-tdep.c (frv_stopped_data_address): Likewise.
304
305 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
306
307 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
308 instead of write_register (PC_REGNUM, ...).
309
310 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
311
312 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
313 explaining why the PC adjustment code is necessary.
314
315 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
316
317 * m68k-tdep.h (enum m68k_flavour): New.
318 (struct gdbarch_tdep): New fields
319 float_return, flavour and fpregs_present.
320 * m68k-tdep.c (m68k_register_type): Use
321 fpregs_present and conditionalize floating
322 registers type on flavour.
323 (m68k_register_names): New.
324 (m68k_register_name): Use the above.
325 (m68k_convert_register_p): Consult fpregs_present.
326 (m68k_register_to_value, m68k_value_to_register):
327 Use register_type to obtain the type of floating
328 point registers.
329 (m68k_svr4_extract_return_value): Check tdep->float_return.
330 Use register_type to get the type of floating
331 point regiters.
332 (m68k_svr4_store_return_value): Likewise.
333 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
334 (m68k_analyze_register_saves): Likewise.
335 (m68k_gdbarch_init): Extract infromation
336 from XML description, if present. Guess coldfire by
337 looking at the file, if present. Conditionalize
338 setting of long double format. Set decr_pc_after_break
339 to 2 on coldfire and fido. Enable XML-driven
340 register description.
341 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
342 size of tdep->fpreg_type, as opposed to hardcoded value.
343 * Makefile.in (m68k-tdep.o): Update dependencies.
344
345 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
346
347 * NEWS: Mention "info spu" commands and qXfer:spu:read and
348 qXfer:spu:write remote packet types.
349
350 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
351
352 * xml-tdesc.c (tdesc_start_target): New.
353 (target_attributes): New.
354 (tdesc_elements): Use it.
355 * features/gdb-target.dtd: Add #FIXED version attribute for
356 <target>.
357
358 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
359
360 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
361
362 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
363
364 * fork-child.c (fork_inferior): Update comment.
365
366 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
367
368 * features/Makefile: Generate regformats for mips-linux and
369 mips64-linux.
370 * features/sort-regs.xsl: Correct typo.
371 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
372 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
373 files.
374
375 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
376
377 * config/mips/linux.mh (TDEP_XML): New.
378 * features/mips-linux.xml, features/mips64-linux.xml: New files.
379 * mips-linux-nat.c (mips_linux_register_addr): Handle
380 MIPS_RESTART_REGNUM.
381 (mips64_linux_register_addr): Likewise.
382 (super_xfer_partial, mips_linux_xfer_partial): New.
383 (_initialize_mips_linux_nat): Add them to the target_ops.
384 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
385 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
386 (mips_linux_o32_sigframe_init)
387 (mips_linux_n32n64_sigframe_init): Likewise.
388 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
389 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
390 "org.gnu.gdb.mips.linux" feature.
391 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
392 (mips_linux_restart_reg_p): New prototype.
393 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
394 initialization routine.
395 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
396
397 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
398
399 * Makefile.in (mips-tdep.o): Update.
400 * mips-tdep.c (struct register_alias, mips_o32_aliases)
401 (mips_n32_n64_aliases, mips_register_aliases): New.
402 (mips_register_name): Call tdesc_register_name.
403 (mips_tdesc_register_reggroup_p): New.
404 (mips_pseudo_register_type, value_of_mips_user_reg): New.
405 (mips_gdbarch_init): Add target-described register support.
406 Register aliases for register names.
407 * target-descriptions.c (tdesc_register_name): Make global.
408 (tdesc_register_in_reggroup_p): New function, broken out from
409 tdesc_register_reggroup_p.
410 (tdesc_register_reggroup_p): Use it.
411 * target-descriptions.h (tdesc_register_name)
412 (tdesc_register_in_reggroup_p): New prototypes.
413 * NEWS: Correct formatting. Mention MIPS register support.
414 * features/mips-cp0.xml, features/mips-fpu.xml,
415 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
416 features/mips64-cpu.xml: New files.
417
418 2007-06-13 Markus Deuling <deuling@de.ibm.com>
419
420 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
421 * valops.c (value_cast): Likewise.
422 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
423 * ui-out.c (ui_out_field_core_addr): Likewise.
424 * tracepoint.c (tracepoints_info): Likewise.
425 * symtab.c (print_msymbol_info): Likewise.
426 * solib-irix.c (irix_current_sos)
427 (irix_open_symbol_file_object): Likewise.
428 * remote.c (build_remote_gdbarch_data): Likewise.
429 * prologue-value.c (make_pv_area): Likewise.
430 * procfs.c (info_mappings_callback): Likewise.
431 * printcmd.c (print_scalar_formatted)
432 (deprecated_print_address_numeric): Likewise.
433 * memattr.c (mem_info_command): Likewise.
434 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
435 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
436 * exec.c (print_section_info): Likewise.
437 * dwarf2read.c (read_subrange_type): Likewise.
438 * dwarf2loc.c (find_location_expression): Likewise.
439 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
440 (signed_address_type, execute_stack_op): Likewise.
441 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
442 * gdbarch.c, gdbarch.h: Regenerate.
443
444 2007-06-13 Markus Deuling <deuling@de.ibm.com>
445
446 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
447 * arch-utils.c (show_architecture): Likewise.
448 * remote-mips.c (mips_open): Likewise
449 * nto-tdep.c (nto_find_and_open_solib)
450 (nto_init_solib_absolute_prefix): Likewise.
451 * nto-procfs (procfs_open): Likewise.
452 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
453 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
454 * gdbarch.c, gdbarch.h: Regenerate.
455
456 2007-06-13 Markus Deuling <deuling@de.ibm.com>
457
458 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
459 * gdbtypes.c (build_flt): Likewise.
460 * gdbarch.c, gdbarch.h: Regenerate.
461
462 2007-06-13 Markus Deuling <deuling@de.ibm.com>
463
464 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
465 gdbarch_breakpoint_from_pc.
466 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
467 * remote.c (remote_insert_breakpoint)
468 (remote_insert_hw_breakpoint): Likewise.
469 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
470 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
471 * breakpoint.h (bp_target_info): Likewise (comment).
472 * breakpoint.c (read_memory_nobpt): Likewise.
473 * mem-break.c (default_memory_insert_breakpoint): Likewise.
474 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
475 * gdbarch.c, gdbarch.h: Regenerate.
476
477 2007-06-13 Markus Deuling <deuling@de.ibm.com>
478
479 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
480 * solib-svr4.c (svr4_truncate_ptr): Likewise.
481 * solib-pa64.c (read_dynamic_info): Likewise.
482 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
483 * solib.c (info_sharedlibrary_command): Likewise.
484 * s390-nat.c (SUBOFF): Likewise.
485 * p-valprint.c (pascal_val_print): Likewise.
486 * procfs.c (info_proc_mappings): Likewise.
487 * printcmd.c (decode_format): Likewise.
488 * nto-tdep.c (nto_truncate_ptr): Likewise.
489 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
490 (mips64_linux_get_longjmp_target): Likewise.
491 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
492 * jv-valprint.c (java_value_print): Likewise.
493 * jv-lang.c (get_java_object_header_size): Likewise.
494 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
495 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
496 (hppa_hpux_unwind_adjust_stub): Likewise.
497 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
498 * gdbtypes.c (make_pointer_type, make_reference_type)
499 (smash_to_memberptr_type): Likewise.
500 * gdbarch.c, gdbarch.h: Regenerate.
501
502 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
503
504 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
505 (print_gp_register_row): Stop before printing a register bigger
506 than the ABI register size.
507 (mips_print_registers_info): Update call to mips_print_register.
508
509 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
510
511 * expression.h (enum exp_opcode): Document a register name for
512 OP_REGISTER.
513 * parse.c (write_dollar_variable): Write the register name for
514 OP_REGISTER.
515 (operator_length_standard): Expect the register name following
516 OP_REGISTER.
517 * ada-lang.c (resolve_subexp): Likewise.
518 * ax-gdb.c (gen_expr): Likewise.
519 * eval.c (evaluate_subexp_standard): Likewise.
520 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
521 Likewise.
522 * tracepoint.c (encode_actions): Likewise.
523
524 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
525
526 * utils.c (set_screen_size): Use INT_MAX for default columns.
527
528 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
529
530 * remote.c (remote_protocol_features): Add qXfer:spu:read and
531 qXfer:spu:write packet types.
532
533 2007-06-12 Markus Deuling <deuling@de.ibm.com>
534
535 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
536 * gdbarch.c, gdbarch.h: Regenerate.
537
538 2007-06-12 Markus Deuling <deuling@de.ibm.com>
539
540 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
541 gdbarch_stab_reg_to_regnum.
542 * stabsread.c (define_symbol): Likewise.
543 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
544 gdbarch_ecoff_reg_to_regnum.
545 * mdebugread.c (parse_symbol): Likewise.
546 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
547 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
548 gdbarch_dwarf_reg_to_regnum.
549 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
550 * coffread.c (process_coff_symbol): Likewise.
551 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
552 gdbarch_dwarf2_reg_to_regnum.
553 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
554 (locexpr_describe_location): Likewise.
555 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
556 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
557 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
558 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
559 * gdbarch.c, gdbarch.h: Regenerate.
560
561 2007-06-12 Markus Deuling <deuling@de.ibm.com>
562
563 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
564 gdbarch_smash_text_address.
565 * somread.c (som_symtab_read): Likewise.
566 * elfread.c (record_minimal_symbol): Likewise.
567 * dbxread.c (process_one_symbol): Likewise.
568 * coffread.c (coff_symtab_read): Likewise.
569 * gdbarch.c, gdbarch.h: Regenerate.
570
571 2007-06-12 Markus Deuling <deuling@de.ibm.com>
572
573 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
574 * findvar.c (value_from_register): Likewise.
575 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
576 * valops.c (value_assign): Likewise.
577 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
578 gdbarch_convert_register_p.
579 * findvar.c (value_from_register): Likewise.
580 * valops.c (value_assign): Likewise.
581 * gdbarch.c, gdbarch.h: Regenerate.
582
583 2007-06-12 Markus Deuling <deuling@de.ibm.com>
584
585 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
586 gdbarch_register_sim_regno.
587 * sim-regno.h (sim_regno): Likewise (comment).
588 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
589 * gdbarch.c, gdbarch.h: Regenerate.
590
591 2007-06-12 Markus Deuling <deuling@de.ibm.com>
592
593 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
594 gdbarch_virtual_frame_pointer.
595 * tracepoint.c (encode_actions): Likewise.
596 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
597 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
598 * gdbarch.c, gdbarch.h: Regenerate.
599
600 2007-06-12 Markus Deuling <deuling@de.ibm.com>
601
602 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
603 * p-lang.c (pascal_create_fundamental_type): Likewise.
604 * objc-lang.c (objc_create_fundamental_type): Likewise.
605 * mdebugread.c (_initialize_mdebugread): Likewise.
606 * m2-lang.c (m2_create_fundamental_type)
607 (_initialize_m2_language): Likewise.
608 * gdbtypes.c (build_gdbtypes): Likewise.
609 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
610 * doublest.c (floatformat_from_length): Likewise.
611 * c-lang.c (c_create_fundamental_type): Likewise.
612 * ada-lang.c (ada_create_fundamental_type)
613 (ada_language_arch_info): Likewise.
614 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
615 * value.c (unpack_double): Likewise (comment).
616 * gdbtypes.c (build_gdbtypes): Likewise.
617 * doublest.c (floatformat_from_length): Likewise.
618 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
619 * valarith.c (value_binop): Likewise.
620 * p-lang.c (pascal_create_fundamental_type): Likewise.
621 * objc-lang.c (objc_create_fundamental_type): Likewise.
622 * mdebugread.c (_initialize_mdebugread): Likewise.
623 * m2-lang.c (m2_create_fundamental_type): Likewise.
624 * gdbtypes.c (build_gdbtypes): Likewise.
625 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
626 * doublest.c (floatformat_from_length): Likewise.
627 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
628 * c-lang.c (c_create_fundamental_type): Likewise.
629 * ada-lex.l (processReal): Likewise.
630 * ada-lang.c (ada_create_fundamental_type)
631 (ada_language_arch_info): Likewise.
632 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
633 * value.c (unpack_double): Likewise (comment).
634 * gdbtypes.c (build_gdbtypes): Likewise.
635 * doublest.c (floatformat_from_length): Likewise.
636 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
637 gdbarch_long_double_bit.
638 * p-lang.c (pascal_create_fundamental_type): Likewise.
639 * objc-lang.c (objc_create_fundamental_type): Likewise.
640 * m2-lang.c (m2_create_fundamental_type): Likewise.
641 * gdbtypes.c (build_gdbtypes): Likewise.
642 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
643 * doublest.c (floatformat_from_length): Likewise.
644 * c-lang.c (c_create_fundamental_type): Likewise.
645 * ada-lex.l (processReal): Likewise.
646 * ada-lang.c (ada_create_fundamental_type)
647 (ada_language_arch_info): Likewise.
648 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
649 gdbarch_long_double_format.
650 * gdbtypes.c (build_gdbtypes): Likewise.
651 * doublest.c (floatformat_from_length): Likewise.
652 * gdbarch.c, gdbarch.h: Regenerate.
653
654 2007-06-12 Markus Deuling <deuling@de.ibm.com>
655
656 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
657 * ada-lang.c (ada_create_fundamental_type)
658 (ada_language_arch_info): Likewise.
659 * c-lang.c (c_create_fundamental_type): Likewise.
660 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
661 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
662 * m2-lang.c (m2_create_fundamental_type): Likewise.
663 * objc-lang.c (objc_create_fundamental_type): Likewise.
664 * p-lang.c (pascal_create_fundamental_type): Likewise.
665 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
666 * c-exp.y (parse_number): Likewise.
667 * objc-exp.y (parse_number): Likewise.
668 * ada-lex.l (processInt): Likewise.
669 * f-exp.y (parse_number): Likewise.
670 * p-exp.y (parse_number): Likewise.
671 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
672 (gdbtypes_post_init, build_gdbtypes): Likewise.
673 * p-lang.c (pascal_create_fundamental_type): Likewise.
674 * parse.c (build_parse): Likewise.
675 * xcoffread.c (_initialize_xcoffread): Likewise.
676 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
677 (read_range_type): Likewise.
678 * objc-lang.c (objc_create_fundamental_type): Likewise.
679 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
680 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
681 (m2_create_fundamental_type): Likewise.
682 * c-lang.c (c_create_fundamental_type): Likewise.
683 * coffread.c (coff_read_enum_type): Likewise.
684 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
685 * dwarf2read.c (new_symbol): Likewise.
686 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
687 * c-exp.y (parse_number): Likewise.
688 * objc-exp.y (parse_number): Likewise.
689 * ada-lex.l (processInt): Likewise.
690 * f-exp.y (parse_number): Likewise.
691 * p-exp.y (parse_number): Likewise.
692 * valarith.c (value_binop): Likewise.
693 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
694 * ada-lang.c (ada_create_fundamental_type)
695 (ada_language_arch_info): Likewise.
696 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
697 * symfile.c (TARGET_LONG_BYTES): Likewise.
698 * p-lang.c (pascal_create_fundamental_type): Likewise.
699 * objc-lang.c (objc_create_fundamental_type): Likewise.
700 * m2-lang.c (m2_create_fundamental_type): Likewise.
701 * f-lang.c (f_create_fundamental_type): Likewise.
702 * c-lang.c (c_create_fundamental_type): Likewise.
703 * coffread.c (decode_base_type): Likewise.
704 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
705 * c-exp.y (parse_number): Likewise.
706 * objc-exp.y (parse_number): Likewise.
707 * p-exp.y (parse_number): Likewise.
708 * ada-lang.c (ada_create_fundamental_type)
709 (ada_language_arch_info): Likewise.
710 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
711 * stabsread.c (read_range_type): Likewise.
712 * p-lang.c (pascal_create_fundamental_type): Likewise.
713 * objc-lang.c (objc_create_fundamental_type): Likewise.
714 * m2-lang.c (m2_create_fundamental_type): Likewise.
715 * f-lang.c (f_create_fundamental_type): Likewise.
716 * c-lang.c (c_create_fundamental_type): Likewise.
717 * gdbarch.c, gdbarch.h: Regenerate.
718
719 2007-06-12 Andreas Schwab <schwab@suse.de>
720
721 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
722 (struct frame_unwind): Add dealloc_cache.
723 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
724
725 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
726 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
727 (libunwind_frame_unwind): Set dealloc_cache.
728 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
729
730 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
731 Markus Deuling <deuling@de.ibm.com>
732
733 * remote.c (remote_write_qxfer): New function.
734 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
735 (remote_read_qxfer): Do not cache empty objects.
736 (_initialize_remote): Add PACKET_qXfer_spu_read and
737 PACKET_qXfer_spu_write.
738
739 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
740
741 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
742 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
743
744 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
745 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
746 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
747 * spu-tdep.c (infospucmdlist): New variable.
748 (spu_register_name): Handle additional pseudo registers.
749 (spu_register_type): Likewise.
750 (spu_pseudo_register_read): Likewise.
751 (spu_pseudo_register_write): Likewise.
752 (spu_pseudo_register_read_spu): New function.
753 (spu_pseudo_register_write_spu): Likewise.
754 (info_spu_event_command): New function.
755 (info_spu_signal_command): Likewise.
756 (info_spu_mailbox_list): Likewise.
757 (info_spu_mailbox_command): Likewise.
758 (spu_mfc_get_bitfield): Likewise.
759 (info_spu_dma_cmdlist): Likewise.
760 (info_spu_dma_command): Likewise.
761 (info_spu_proxydma_command): Likewise.
762 (info_spu_command): Likewise.
763 (_initialize_spu_tdep): Install "info spu" commands.
764
765 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
766
767 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
768 accessing non-seekable spufs files.
769
770 2007-06-09 Markus Deuling <deuling@de.ibm.com>
771
772 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
773 gdbarch_skip_trampoline_code.
774 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
775 * objc-lang.c (objc_skip_trampoline)
776 (objc_submethod_helper_data): Likewise.
777 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
778 * infrun.c (handle_inferior_event): Likewise.
779 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
780 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
781 gdbarch_in_solib_return_trampoline.
782 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
783 * infrun.c (handle_inferior_event): Likewise.
784 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
785 * gdbarch.c, gdbarch.h: Regenerate.
786
787 2007-06-09 Markus Deuling <deuling@de.ibm.com>
788
789 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
790 * symtab.c (find_function_start_sal, in_prologue): Likewise.
791 * linespec.c (minsym_found): Likewise.
792 * infrun.c (step_into_function): Likewise.
793 * gdbarch.c, gdbarch.h: Regenerate.
794
795 2007-06-09 Markus Deuling <deuling@de.ibm.com>
796
797 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
798 * valops.c (value_allocate_space_in_inferior): Likewise.
799 * gdbarch.c, gdbarch.h: Regenerate.
800
801 2007-06-09 Markus Deuling <deuling@de.ibm.com>
802
803 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
804 gdbarch_memory_insert_breakpoint.
805 * mem-break.c (memory_insert_breakpoint): Likewise.
806 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
807 gdbarch_memory_remove_breakpoint.
808 * mem-break.c (memory_remove_breakpoint): Likewise.
809 * gdbarch.c, gdbarch.h: Regenerate.
810
811 2007-06-09 Markus Deuling <deuling@de.ibm.com>
812
813 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
814 gdbarch_fetch_tls_load_module_address.
815 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
816 gdbarch_fetch_tls_load_module_address_p.
817 * gdbarch.c, gdbarch.h: Regenerate.
818
819 2007-06-09 Markus Deuling <deuling@de.ibm.com>
820
821 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
822 gdbarch_decr_pc_after_break.
823 * tracepoint.c (trace_dump_command): Likewise.
824 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
825 * linux-thread-db.c (check_event): Likewise.
826 * linux-nat.c (cancel_breakpoints_callback): Likewise.
827 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
828 * frame.h: Likewise (comment).
829 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
830 * aix-thread.c (aix_thread_wait): Likewise.
831 * gdbarch.c, gdbarch.h: Regenerate.
832
833 2007-06-09 Markus Deuling <deuling@de.ibm.com>
834
835 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
836 gdbarch_address_class_type_flags.
837 * dwarf2read.c (read_tag_pointer_type): Likewise.
838 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
839 gdbarch_address_class_type_flags_p.
840 * dwarf2read.c (read_tag_pointer_type): Likewise.
841 * gdbarch.c, gdbarch.h: Regenerate.
842
843 2007-06-09 Markus Deuling <deuling@de.ibm.com>
844
845 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
846 * value.c (value_as_address): Likewise (comment).
847 * remote-mips.c (common_breakpoint): Likewise.
848 * regcache.c (read_pc_pid): Likewise.
849 * printcmd.c (do_one_display): Likewise.
850 * monitor.c (monitor_write_memory, monitor_read_memory)
851 (monitor_insert_breakpoint): Likewise.
852 * mips-tdep.c (heuristic_proc_start): Likewise.
853 * infrun.c (insert_step_resume_breakpoint_at_frame)
854 (insert_step_resume_breakpoint_at_caller): Likewise.
855 * buildsym.c (record_line): Likewise.
856 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
857 (arm_get_next_pc): Likewise.
858 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
859 (store_regs): Likewise.
860 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
861 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
862 * gdbarch.c, gdbarch.h: Regenerate.
863
864 2007-06-09 Markus Deuling <deuling@de.ibm.com>
865
866 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
867 * tracepoint.c (scope_info): Likewise.
868 * target.c (debug_print_register): Likewise.
869 * stack.c (frame_info): Likewise.
870 * sh-tdep.c (sh_register_reggroup_p): Likewise.
871 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
872 (sh64_media_print_registers_info)
873 (sh64_compact_print_registers_info): Likewise.
874 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
875 * remote-sim.c (gdbsim_fetch_register): Likewise.
876 * remote.c (packet_reg): Likewise (comment).
877 * reggroups.c (default_register_reggroup_p): Likewise.
878 * regcache.c (regcache_dump): Likewise.
879 * printcmd.c (address_info): Likewise.
880 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
881 * mt-dep.c (mt_registers_info): Likewise.
882 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
883 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
884 (mips_read_fp_register_double, mips_print_fp_register)
885 (mips_print_register, print_gp_register_row, mips_print_registers_info)
886 (mips_register_sim_regno): Likewise.
887 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
888 * inf-ptrace.c (inf_ptrace_fetch_register)
889 (inf_ptrace_store_register): Likewise.
890 * infcmd.c (default_print_registers_info): Likewise.
891 * ia64-linux-nat.c (ia64_linux_fetch_register)
892 (ia64_linux_store_register): Likewise.
893 * i386-linux-nat.c (fetch_register, store_register): Likewise.
894 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
895 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
896 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
897 (hppa_hpux_store_register): Likewise.
898 * findvar.c (locate_var_value): Likewise.
899 * dwarf2loc.c (locexpr_describe_location): Likewise.
900 * dwarf2-frame.c (execute_cfa_program): Likewise.
901 * arm-tdep.c (arm_push_dummy_call): Likewise.
902 * arch-utils.c (legacy_register_sim_regno): Likewise.
903 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
904 * alpha-nat.c (fetch_osf_core_registers): Likewise.
905 * mi/mi-main.c (mi_cmd_data_list_register_names)
906 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
907 (mi_cmd_data_write_register_values): Likewise.
908 * gdbarch.c, gdbarch.h: Regenerate.
909
910 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
911
912 * target-memory.c (blocks_to_erase): Correct off-by-one error.
913
914 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
915
916 * remote.c (process_g_packet): Don't check size.
917 * gdbarch.sh: Remove register_bytes_ok.
918 * gdbarch.c: Regenerated.
919 * gdbarch.h: Regenerated.
920 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
921 (m68k_register_bytes_ok): Remove.
922 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
923
924 2007-06-06 Andreas Schwab <schwab@suse.de>
925
926 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
927 (destroy_addr_space_name): Define.
928 (libunwind_load): Get address of destroy_addr_space function.
929 (libunwind_frame_cache): Destroy unw_addr_space_t object before
930 returning unsuccessfully.
931 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
932 returning.
933 (libunwind_sigtramp_frame_sniffer): Likewise.
934 (libunwind_get_reg_special): Likewise.
935
936 2007-06-06 Markus Deuling <deuling@de.ibm.com>
937
938 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
939 gdbarch_fetch_pointer_argument.
940 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
941 * gdbarch.c, gdbarch.h: Regenerate.
942
943 2007-06-06 Markus Deuling <deuling@de.ibm.com>
944
945 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
946 gdbarch_have_nonsteppable_watchpoint.
947 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
948 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
949 gdbarch_cannot_step_breakpoint.
950 * infrun.c (resume): Likewise.
951 * gdbarch.c, gdbarch.h: Regenerate.
952
953 2007-06-06 Markus Deuling <deuling@de.ibm.com>
954
955 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
956 * stack.c (print_frame_args): Likewise.
957 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
958 * stack.c (print_args_stub, frame_info): Likewise.
959 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
960 * stack.c (print_args_stub, frame_info): Likewise.
961 * gdbarch.c, gdbarch.h: Regenerate.
962
963 2007-06-06 Markus Deuling <deuling@de.ibm.com>
964
965 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
966 gdbarch_coff_make_msymbol_special.
967 * coffread.c (coff_symtab_read): Likewise.
968 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
969 gdbarch_elf_make_msymbol_special.
970 * elfread.c (elf_symtab_read): Likewise.
971 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
972 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
973 * gdbarch.c, gdbarch.h: Regenerate.
974
975 2007-06-06 Markus Deuling <deuling@de.ibm.com>
976
977 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
978 gdbarch_frame_red_zone_size.
979 * gdbarch.c, gdbarch.h: Regenerate.
980
981 2007-06-06 Markus Deuling <deuling@de.ibm.com>
982
983 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
984 * infcall.c (call_function_by_hand): Likewise.
985 * gcore.c (derive_stack_segment): Likewise.
986 * frame.c (frame_id_inner): Likewise.
987 * arch-utils.c (core_addr_lessthan): Likewise (comment).
988 * ada-lang.c (ensure_lval): Likewise.
989 * gdbarch.c, gdbarch.h: Regenerate.
990
991 2007-06-06 Markus Deuling <deuling@de.ibm.com>
992
993 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
994 gdbarch_address_to_pointer.
995 * findvar.c (store_typed_address): Likewise.
996 * gdbtypes.c (make_pointer_type): Likewise (comment).
997 * procfs.c (procfs_address_to_host_pointer): Likewise.
998 * std-regs.c (value_of_builtin_frame_reg): Likewise.
999 (value_of_builtin_frame_fp_reg): Likewise.
1000 (value_of_builtin_frame_pc_reg): Likewise.
1001 * utils.c (paddress): Likewise (comment).
1002 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
1003 gdbarch_pointer_to_address.
1004 * findvar.c (extract_typed_address): Likewise.
1005 * gdbtypes.c (make_pointer_type): Likewise (comment).
1006 * valops.c (value_cast): Likewise (comment).
1007 * gdbarch.c, gdbarch.h: Regenerate.
1008
1009 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1010
1011 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
1012 * infrun.c (handle_inferior_event): Likewise.
1013 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
1014 gdbarch_get_longjmp_target_p.
1015 * breakpoint.c (breakpoint_re_set): Likewise.
1016 * infrun.c (handle_inferior_event): Likewise.
1017 * gdbarch.c, gdbarch.h: Regenerate.
1018
1019 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
1020
1021 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
1022 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
1023 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
1024 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
1025 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
1026 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
1027 find_stub_with_shl_get, cover_find_stub_with_shl_get,
1028 initialize_hp_cxx_exception_support, child_enable_exception_callback,
1029 current_ex_event, child_get_current_exception_event): Remove.
1030 (hppa_hpux_inferior_created): Remove.
1031 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
1032
1033 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
1034 (deprecated_exception_support_initialized): Remove.
1035 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
1036 (deprecated_exception_support_initialized): Remove.
1037 (breakpoint_init_inferior): Remove handling of non-zero
1038 deprecated_exception_catchpoints_are_fragile.
1039
1040 * symtab.h (deprecated_hp_som_som_object_present): Remove.
1041 * symtab.c (deprecated_hp_som_som_object_present): Remove.
1042 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
1043 deprecated_hp_som_som_object_present.
1044 * eval.c (evaluate_subexp_standard): Likewise.
1045 * valops.c (value_cast): Likewise.
1046
1047 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
1048 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
1049 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
1050
1051 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
1052
1053 * objfiles.h (ImportEntry, ExportEntry): Remove types.
1054 (struct objfile): Remove import_list, import_list_size,
1055 export_list, export_list_size members.
1056 (is_in_import_list): Remove prototype.
1057 * objfiles.c (is_in_import_list): Remove.
1058 * somread.c (init_import_symbols, init_export_symbols): Remove.
1059 (som_symfile_read): Do not call init_import_symbols. Do not
1060 set objfile->export_list and objfile->export_list_size.
1061
1062 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
1063
1064 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
1065 Use the original objfile if necessary.
1066
1067 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
1068
1069 * defs.h (ldirname): New prototype.
1070 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
1071 missing.
1072 * utils.c (ldirname): New function.
1073 * xml-tdesc.c (file_read_description_xml): Use ldirname.
1074
1075 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
1076
1077 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
1078
1079 2007-06-01 Joel Brobecker <brobecker@adacore.com>
1080
1081 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
1082
1083 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
1084
1085 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
1086
1087 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
1088
1089 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
1090 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
1091 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
1092 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
1093 (ppc_linux_in_sigtramp, insn_is_sigreturn,
1094 ppc_linux_at_sigtramp_return_path): Remove.
1095
1096 2007-05-31 Markus Deuling <deuling@de.ibm.com>
1097
1098 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
1099 (xtensa_register_write_masked, xtensa_register_read_masked)
1100 (xtensa_extract_return_value, xtensa_store_return_value
1101 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
1102 TARGET_BYTE_ORDER by gdbarch_byte_order.
1103 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
1104 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
1105 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
1106 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
1107 (sh64_push_dummy_call, sh64_extract_return_value)
1108 (sh64_store_return_value, sh64_register_convert_to_virtual)
1109 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
1110 (sh64_pseudo_register_write, sh64_do_fp_register)
1111 (sh64_frame_prev_register): Likewise.
1112 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
1113 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
1114 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
1115 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
1116 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
1117 * ppc-linux-nat.c (store_register): Likewise.
1118 * nto-tdep.c (nto_find_and_open_solib)
1119 (nto_init_solib_absolute_prefix): Likewise.
1120 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
1121 (mips_convert_register_p, mips_eabi_push_dummy_call)
1122 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
1123 (mips_o32_push_dummy_call, mips_o32_return_value)
1124 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
1125 (mips_read_fp_register_single, mips_read_fp_register_double)
1126 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
1127 (mips_breakpoint_from_pc): Likewise.
1128 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
1129 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
1130 (mips_linux_o32_sigframe_init): Likewise.
1131 * m32r-tdep.c (m32r_memory_insert_breakpoint)
1132 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
1133 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
1134 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
1135 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
1136 * coffread.c (process_coff_symbol): Likewise.
1137 * arm-tdep.c (convert_from_extended, convert_to_extended)
1138 (gdb_print_insn_arm): Likewise.
1139
1140 2007-05-31 Markus Deuling <deuling@de.ibm.com>
1141
1142 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
1143 * i386-tdep.c (i386_dbx_reg_to_regnum)
1144 (i386_svr4_reg_to_regnum): Likewise.
1145 * inf-ptrace.c (inf_ptrace_fetch_registers)
1146 (inf_ptrace_store_registers): Likewise.
1147 * corelow.c (get_core_registers): Likewise.
1148 * i386-linux-nat.c (supply_gregset, fill_gregset)
1149 (i386_linux_fetch_inferior_registers)
1150 (i386_linux_store_inferior_registers): Likewise.
1151 * remote.c (init_remote_state,packet_reg_from_regnum)
1152 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
1153 (remote_prepare_to_store,store_registers_using_G)
1154 (remote_store_registers,remote_arch_state): Likewise.
1155 * tracepoint.c (encode_actions): Likewise.
1156 * mi/mi-main.c (mi_cmd_data_list_register_names)
1157 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
1158 (mi_cmd_data_write_register_values): Likewise.
1159 * tui/tui-regs.c (tui_show_register_group)
1160 (tui_show_register_group): Likewise.
1161 * xtensa-tdep.h (FP_ALIAS): Likewise.
1162 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
1163 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
1164 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
1165 * win32-nat.c (do_win32_fetch_inferior_registers)
1166 (do_win32_store_inferior_registers,fetch_elf_core_registers
1167 * user-regs.h: Likewise (comment).
1168 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
1169 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
1170 * target-descriptions.h: Likewise (comment).
1171 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
1172 * target.c (debug_print_register): Likewise.
1173 * stack.c (frame_info): Likewise.
1174 * stabsread.c (define_symbol): Likewise.
1175 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
1176 (sh64_media_print_registers_info)
1177 (sh64_compact_print_registers_info): Likewise.
1178 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
1179 * rs6000-nat.c (fetch_register,store_register): Likewise.
1180 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
1181 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
1182 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
1183 * remote-m32r-sdi.c (m32r_fetch_registers)
1184 (m32r_store_registers): Likewise.
1185 * reggroups.c (default_register_reggroup_p): Likewise.
1186 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
1187 (regcache_restore,regcache_dump): Likewise.
1188 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
1189 * mips-tdep.c (mips_xfer_register,mips_register_name)
1190 (mips_register_reggroup_p,mips_pseudo_register_read)
1191 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
1192 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
1193 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
1194 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
1195 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
1196 (print_gp_register_row,mips_print_registers_info)
1197 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
1198 (mips_register_sim_regno): Likewise.
1199 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1200 (mips_linux_n32n64_sigframe_init): Likewise.
1201 * mips-linux-nat.c (mips_linux_register_addr)
1202 (mips64_linux_register_addr): Likewise.
1203 * findvar.c (value_of_register): Likewise.
1204 * infcmd.c (default_print_registers_info,registers_info)
1205 (print_vector_info,print_float_info): Likewise.
1206 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
1207 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
1208 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
1209 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
1210 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1211 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
1212 (ia64_cannot_store_register,ia64_linux_fetch_registers)
1213 (ia64_linux_store_registers): Likewise.
1214 * hpux-thread.c (hpux_thread_fetch_registers)
1215 (hpux_thread_store_registers): Likewise.
1216 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
1217 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
1218 (h8300_register_type): Likewise.
1219 * dwarf2-frame.c (dwarf2_frame_cache)
1220 (dwarf2_frame_state_alloc_regs): Likewise.
1221 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
1222 (cris_cannot_store_register,crisv32_cannot_fetch_register)
1223 (crisv32_cannot_store_register,cris_register_name): Likewise.
1224 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1225 * arch-utils.c (legacy_register_sim_regno)
1226 (legacy_virtual_frame_pointer): Likewise.
1227 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
1228 * arm-tdep.h: Likewise (comment).
1229 * frv-tdep.c (frv_register_sim_regno): Likewise.
1230 * m68klinux-nat.c (old_fetch_inferior_registers)
1231 (old_store_inferior_registers): Likewise.
1232 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
1233 * irix5-nat.c (fetch_core_registers): Likewise.
1234 * hppa-tdep.c (hppa_frame_cache): Likewise.
1235 * hppa-linux-nat.c (hppa_linux_register_addr)
1236 (hppa_linux_fetch_inferior_registers)
1237 (hppa_linux_store_inferior_registers): Likewise.
1238 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
1239 (hppa_hpux_store_inferior_registers): Likewise.
1240 * amd64-nat.c (amd64_native_gregset_reg_offset)
1241 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
1242 * dbug-rom.c (dbug_regname): Likewise.
1243 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
1244 (HARD_PAGE_REGNUM (comment)): Likewise.
1245 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
1246 * i386-tdep.c (i386_dbx_reg_to_regnum)
1247 (i386_svr4_reg_to_regnum): Likewise.
1248 * mi/mi-main.c (mi_cmd_data_list_register_names)
1249 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
1250 (mi_cmd_data_write_register_values): Likewise.
1251 * gdbarch.c, gdbarch.h: Regenerate.
1252 * tui/tui-regs.c (tui_show_register_group): Likewise.
1253 * xtensa-tdep.h (FP_ALIAS): Likewise.
1254 * user-regs.h: Likewise (comment).
1255 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
1256 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
1257 * target-descriptions.h: Likewise (comment).
1258 * target.c (debug_print_register): Likewise.
1259 * stack.c (frame_info): Likewise.
1260 * stabsread.c (define_symbol): Likewise.
1261 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
1262 (sh64_compact_print_registers_info): Likewise.
1263 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
1264 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
1265 (regcache_restore,regcache_dump): Likewise.
1266 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
1267 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
1268 (mips_stab_reg_to_regnum): Likewise.
1269 * findvar.c (value_of_register): Likewise.
1270 * infcmd.c (default_print_registers_info,registers_info)
1271 (print_vector_info,print_float_info): Likewise.
1272 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
1273 * h8300-tdep.c (h8300_register_type): Likewise.
1274 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
1275 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
1276 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
1277 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
1278 * parse.c: Remove comment.
1279 * gdbarch.c, gdbarch.h: Regenerate
1280
1281 2007-05-31 Markus Deuling <deuling@de.ibm.com>
1282
1283 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
1284 gdbarch_cannot_fetch_register.
1285 * alpha-nat.c (fetch_osf_core_registers): Likewise.
1286 * hppa-linux-nat.c (fetch_register): Likewise.
1287 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1288 * m68klinux-nat.c (fetch_register): Likewise.
1289 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
1290 Likewise.
1291 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
1292 gdbarch_cannot_store_register.
1293 * hppa-linux-nat.c (store_register): Likewise.
1294 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
1295 * regcache.c (regcache_raw_write): Likewise.
1296 * m68klinux-nat.c (store_register): Likewise.
1297 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
1298 * gdbarch.c, gdbarch.h: Regenerate.
1299
1300 2007-05-31 Markus Deuling <deuling@de.ibm.com>
1301
1302 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
1303 * gdbarch.c, gdbarch.h: Regenerate.
1304
1305 2007-05-31 Markus Deuling <deuling@de.ibm.com>
1306
1307 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
1308 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
1309 * gdbarch.c, gdbarch.h: Regenerate.
1310
1311 2007-05-31 Markus Deuling <deuling@de.ibm.com>
1312
1313 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
1314 * ax-gdb.c (gen_bitfield_ref): Likewise.
1315 * mi/mi-main.c (get_register): Likewise.
1316 * findvar.c (default_value_from_register, extract_signed_integer)
1317 (extract_unsigned_integer, extract_long_unsigned_integer)
1318 (store_signed_integer, store_unsigned_integer): Likewise.
1319 * regcache.c (regcache_dump): Likewise.
1320 * value.c (lookup_internalvar, value_of_internalvar)
1321 (set_internalvar): Likewise.
1322 * defs.h: Likewise.
1323 * valprint.c (print_binary_chars, print_octal_chars)
1324 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
1325 * infcmd.c (default_print_registers_info): Likewise.
1326 * arch-utils.c (selected_byte_order, show_endian): Likewise.
1327 * stabsread.c (define_symbol): Likewise.
1328 * doublest.c (floatformat_from_length, floatformat_from_type)
1329 (extract_typed_floating, store_typed_floating): Likewise.
1330 * gdbarch.c, gdbarch.h: Regenerate.
1331
1332 2007-05-31 Markus Deuling <deuling@de.ibm.com>
1333
1334 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
1335 gdbarch_call_dummy_location.
1336 * infcall.c (call_function_by_hand): Likewise.
1337 * inferior.h: Change comment.
1338 * arch-utils.c: Change comment.
1339 * gdbarch.c, gdbarch.h: Regenerate.
1340
1341 2007-05-28 Joel Brobecker <brobecker@adacore.com>
1342
1343 * solib-aix5.c: Delete.
1344 * Makefile.in (solib-aix5.o): Delete rule.
1345
1346 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
1347
1348 * breakpoint.h (enum bpstat_what_main_action): Remove
1349 BPSTAT_WHAT_THROUGH_SIGTRAMP.
1350 * infrun.c (process_event_stop_test): Do not check for it.
1351
1352 2007-05-22 Chris Dearman <chris@mips.com>
1353 Maciej W. Rozycki <macro@mips.com>
1354
1355 * ser-unix.c (show_serial_hwflow): New function.
1356 (hardwire_raw): Add hardware flow control support.
1357 (_initialize_ser_hardwire): Add "set/show remoteflow".
1358 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
1359 * NEWS: Document the new command.
1360
1361 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
1362
1363 * config/i386/tm-linux.h (sys_quotactl): Do not define.
1364 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
1365 define for i[[3456]]86-*-linux* native configurations.
1366 * config.in, configure: Regenerate.
1367
1368 2007-05-19 Joel Brobecker <brobecker@adacore.com>
1369
1370 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
1371 a core file. Add comment in the function description.
1372
1373 2007-05-18 Caroline Tice <ctice@apple.com>
1374
1375 * c-valprint.c (c_value_print): If the initialized field of the
1376 value struct is 0, print out "[uninitialized]" before the value.
1377 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
1378 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
1379 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
1380 ctx->initialized appropriately. Verify no location op follows
1381 DW_OP_GNU_uninit.
1382 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
1383 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
1384 set_value_initialized.
1385 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
1386 (decode_locdesc): Add case for DW_OP_GNU_uninit.
1387 * value.c (struct value): New field, initialized.
1388 (allocate_value): Initialize new field.
1389 (set_value_initialized): New function.
1390 (value_initialized): New function.
1391 * value.h (value_initialized): New extern declaration.
1392 (set_value_initialized): Likewise.
1393
1394 2007-05-18 Caroline Tice <ctice@apple.com>
1395
1396 * MAINTAINERS (Write After Approval): Add self.
1397
1398 2007-05-17 Joel Brobecker <brobecker@adacore.com>
1399
1400 * gdbtypes.c (make_reference_type): Preserve the type chain
1401 and set the length of all the variants of the pointer type.
1402
1403 2007-05-17 Joel Brobecker <brobecker@adacore.com>
1404
1405 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
1406 and set the length of all the variants of the pointer type.
1407
1408 2007-05-17 Maciej W. Rozycki <macro@mips.com>
1409
1410 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
1411 comment.
1412 (mips_o64_push_dummy_call): Reformat a comment.
1413
1414 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
1415
1416 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
1417 (score_prologue_frame_base_address): Return fp to keep gdb print
1418 local variables correctly when debugging information is stabs.
1419
1420 (score_analyze_prologue): For software watchpoint, fetch all the
1421 instructions from range [startaddr, pc] once and identify them locally
1422 to reduce memory access.
1423 (score_malloc_and_get_memblock, score_free_memblock)
1424 (score_adjust_memblock_ptr): New functions.
1425 (score_fetch_inst): Fetch single instruction or mutiple instructions.
1426
1427 (score_target_can_use_watch, score_stopped_by_watch)
1428 (score_target_insert_watchpoint, score_target_remove_watchpoint)
1429 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
1430 New functions for remote & local hw-watchpoint and hw-breakpoint.
1431
1432 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
1433
1434 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
1435 declarations as well.
1436
1437 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
1438
1439 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
1440 * config/arm/tm-embed.h: Delete file.
1441
1442 * arm-tdep.h (arm_software_single_step): Declare.
1443 * arm-tdep.c (arm_software_single_step): Make global.
1444 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
1445 from here to ...
1446 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
1447 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
1448 * armobsd-tdep.c (armobsd_init_abi): ... here ...
1449 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
1450
1451 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
1452 allow defines to be overriden by TM file.
1453 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
1454 change default to {0xbe,0xbe}.
1455 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
1456 arm_obsd_thumb_be_breakpoint): New global variables.
1457 (armobsd_init_abi): Override tdep->thumb_breakpoint and
1458 tdep->thumb_breakpoint_size.
1459 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
1460 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
1461 tdep->thumb_breakpoint_size.
1462
1463 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
1464
1465 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
1466
1467 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
1468 saved-gpreg-size".
1469
1470 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
1471 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
1472 (mips_stack_argsize_string, mips_stack_argsize): Delete.
1473 (mips_abi_regsize): Simplify.
1474 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1475 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1476 (mips_o32_return_value, mips_o64_push_dummy_call)
1477 (mips_o64_return_value): Propogate constant register sizes. Use the
1478 ABI register size instead of mips_stack_argsize.
1479 (mips_dump_tdep): Don't print mips_stack_argsize.
1480 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
1481 settings.
1482
1483 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
1484
1485 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
1486 * config/mips/tm-linux.h: Delete.
1487 * mips-linux-tdep.c (mips_svr4_so_ops): New.
1488 (mips_linux_in_dynsym_resolve_code): Make static. Use
1489 svr4_in_dynsym_resolve_code.
1490 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
1491 set_solib_ops.
1492 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
1493 global.
1494 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
1495 * Makefile.in (mips-linux-tdep.o): Update.
1496 * solib.c (set_solib_ops): New.
1497 (current_target_so_ops): Update comment.
1498 * solib.h (set_solib_ops): New prototype.
1499
1500 2007-05-16 Chris Dearman <chris@mips.com>
1501
1502 * printcmd.c (do_examine): Fix typos in a comment.
1503
1504 2007-05-16 Richard Sandiford <richard@codesourcery.com>
1505
1506 * configure.ac: Allow sysroots to be relocated under $prefix as
1507 well as $exec_prefix.
1508 * configure: Regenerate.
1509
1510 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
1511
1512 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
1513 (offsetof): Do not define.
1514 (find_stub_with_shl_get): Use numerical value 3 instead of
1515 symbolic value TYPE_PROCEDURE.
1516
1517 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
1518
1519 * gdb_proc_service.h (paddr_t): Delete typedef.
1520 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
1521 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
1522 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
1523 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
1524 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
1525 * Makefile.in (proc-service.o): Update.
1526
1527 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
1528
1529 * Makefile.in (mips-tdep.o): Update.
1530 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
1531 unwinder.
1532
1533 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
1534
1535 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
1536 instead of store_typed_address.
1537 * value.c (pack_long): New.
1538 (value_from_longest): Use it.
1539 * value.h (pack_long): New prototype.
1540
1541 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
1542
1543 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
1544 DW_EH_PE_signed if appropriate.
1545
1546 2007-05-14 Paul Brook <paul@codesourcery.com>
1547 Daniel Jacobowitz <dan@codesourcery.com>
1548
1549 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
1550 function.
1551 (dwarf_decode_lines): Check for line info without a file.
1552
1553 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
1554
1555 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
1556 as hexadecimal.
1557
1558 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
1559
1560 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
1561 STRUCTOP_STRUCT.
1562 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
1563 STRUCTOP_STRUCT.
1564 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
1565
1566 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
1567
1568 * gdbarch.sh (read_sp): Remove.
1569 * gdbarch.c, gdbarch.h: Regenerate.
1570 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
1571
1572 * avr-tdep.c (avr_read_sp): Remove.
1573 (avr_unwind_sp): New function.
1574 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
1575 * mips-tdep.c (mips_read_sp): Remove.
1576 (mips_unwind_sp): New function.
1577 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
1578 * score-tdep.c (score_read_unsigned_register): Remove.
1579 (score_read_sp): Remove.
1580 (score_unwind_sp): New function.
1581 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
1582
1583 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
1584
1585 * buildsym.c (start_subfile): Handle absolute pathnames
1586 while comparing subfile names.
1587
1588 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
1589
1590 * hppa-hpux-tdep.c: Include "regcache.h".
1591 * hppa-linux-tdep.c: Likewise.
1592 * hppa-tdep.c: Include "gdb_stdint.h".
1593 (find_unwind_entry): Cast host pointer to uintptr_t before passing
1594 it to paddr_nz.
1595 * Makefile.in: Update dependencies.
1596
1597 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
1598
1599 * blockframe.c: Remove obsolete comments.
1600 * alpha-nat.c (fetch_osf_core_registers): Update comment.
1601 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
1602 * hppa-tdep.h (enum hppa_regnum): Likewise.
1603 * mips-tdep.h: Likewise.
1604 * m68hc11-tdep.c: Likewise.
1605
1606 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
1607
1608 * inferior.h (read_sp): Remove prototype.
1609 * regcache.c (read_sp): Remove.
1610 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
1611 * infcall.c (call_function_by_hand): Likewise.
1612 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
1613 of calling read_sp.
1614 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
1615
1616 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
1617
1618 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
1619 instead of read_register and read_register_pid.
1620
1621 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
1622 argument instead of PTID. Use regcache functions instead of
1623 read_register_pid.
1624 (ia64_linux_insert_watchpoint): Update call.
1625 (ia64_linux_stopped_data_address): Use regcache functions
1626 instead of read_register_pid and write_register_pid.
1627
1628 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
1629
1630 * libunwind-frame.h (struct regcache): Add forward declaration.
1631 (libunwind_get_reg_special): Add REGCACHE argument.
1632 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
1633 argument. Pass it to unw_init_remote_p.
1634
1635 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
1636 libunwind_get_reg_special.
1637 (ia64_access_reg): Remove "write" case.
1638 (ia64_access_fpreg): Likewise. Read from next_frame passed
1639 as callback argument instead of from current_regcache.
1640 (ia64_access_rse_reg): Remove "write" case. Read from regcache
1641 passed as callback argument instead of from current_regcache.
1642 (ia64_access_rse_fpreg): New function.
1643 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
1644
1645 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
1646
1647 * NEWS: Mention SPU overlay support.
1648
1649 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
1650
1651 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
1652
1653 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
1654
1655 * breakpoint.c (remove_breakpoint): Do not remove software
1656 breakpoints in unmapped overlay sections.
1657
1658 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
1659
1660 * spu-tdep.c: Include "observer.h".
1661 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
1662 (spu_overlay_data): New variable.
1663 (struct spu_overlay_table): New type.
1664 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
1665 spu_overlay_new_objfile): New functions.
1666 (spu_gdbarch_init): Install spu_overlay_update.
1667 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
1668 allocate spu_overlay_data objfile data.
1669
1670 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
1671
1672 * gdbarch.sh (overlay_update): New gdbarch function.
1673 (struct obj_section): Add forward declaration.
1674 * gdbarch.c, gdbarch.h: Regenerate.
1675
1676 * symfile.c (simple_overlay_update): Make global.
1677 (target_overlay_update): Remove variable.
1678 (overlay_is_mapped): Call gdbarch_overlay_update instead of
1679 target_overlay_update.
1680 (overlay_load_command): Likewise.
1681 * symfile.h (struct obj_section): Add forward declaration.
1682 (simple_overlay_update): Add prototype.
1683
1684 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
1685
1686 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
1687
1688 * observer.sh: Add "struct objfile" forward declaration.
1689 * target.h (deprecated_target_new_objfile_hook): Remove.
1690 * symfile.c (deprecated_target_new_objfile_hook): Remove.
1691 (clear_symtab_users): Call observer_notify_new_objfile.
1692 (symbol_file_add_with_addrs_or_offsets): Likewise.
1693 * rs6000-nat.c: Include "observer.h".
1694 (vmap_ldinfo): Call observer_notify_new_objfile.
1695 (xcoff_relocate_core): Likewise.
1696 * remote.c (remote_new_objfile_chain): Remove.
1697 (remote_new_objfile): Do not call remote_new_objfile_chain.
1698 (_initialize_remote): Use observer_attach_new_objfile.
1699 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
1700 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
1701 (_initialize_tui_hooks): Use observer_attach_new_objfile.
1702 * aix-thread.c: Include "observer.h".
1703 (target_new_objfile_chain): Remove.
1704 (new_objfile): Do not call target_new_objfile_chain.
1705 (_initialize_aix_thread): Use observer_attach_new_objfile.
1706 * hpux-thread.c: Include "observer.h"
1707 (target_new_objfile_chain): Remove.
1708 (hpux_thread_new_objfile): Make static. Do not call
1709 target_new_objfile_chain.
1710 (_initialize_hpux_thread): Use observer_attach_new_objfile.
1711 * linux-thread-db.c: Include "observer.h".
1712 (target_new_objfile_chain): Remove.
1713 (thread_db_new_objfile): Do not call target_new_objfile_chain.
1714 (_initialize_thread_db): Use observer_attach_new_objfile.
1715 * sol-thread.c: Include "observer.h".
1716 (target_new_objfile_chain): Remove.
1717 (sol_thread_new_objfile): Make static. Do not call
1718 target_new_objfile_chain.
1719 (_initialize_sol_thread): Use observer_attach_new_objfile.
1720 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
1721 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
1722 $(observer_h).
1723
1724 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
1725
1726 * gdbarch.sh (remote_translate_xfer_address): Remove.
1727 * gdbarch.h, gdbarch.c: Regenerate.
1728 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
1729 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
1730 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
1731 call gdbarch_remote_translate_xfer_address.
1732 * frv-tdep.c (frv_gdbarch_init): Do not call
1733 set_gdbarch_remote_translate_xfer_address.
1734 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
1735 (ia64_gdbarch_init): Do not install it.
1736
1737 2007-05-11 Bob Wilson <bob.wilson@acm.org>
1738
1739 * NEWS: Mention change in handling the -tui option.
1740
1741 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
1742
1743 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
1744 typo.
1745
1746 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
1747
1748 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
1749 (breakpoint_inserted_here_p): Call it.
1750 (software_breakpoint_inserted_here_p): Likewise.
1751
1752 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
1753
1754 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
1755 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
1756 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
1757 (inf_ptrace_store_register): Likewise.
1758 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
1759 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
1760
1761 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
1762
1763 * linux-nat.c (linux_trad_target): Adapt parameter list.
1764 * linux-nat.h (linux_trad_target): Likewise.
1765
1766 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
1767
1768 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
1769 (mips_linux_cannot_store_register): Likewise.
1770 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
1771 Return (CORE_ADDR) -1 for registers that cannot be fetched or
1772 stored via ptrace. Use GDBARCH instead of current_gdbarch.
1773 (mips64_linux_register_addr): Likewise.
1774 (mips_linux_register_u_offset): Adapt parameter list. Pass
1775 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
1776
1777 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
1778 * config/mips/nm-linux.h: Delete file.
1779
1780 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
1781
1782 * remote.c (remote_detach): Error out if remote can't detach.
1783
1784 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
1785
1786 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
1787 instruction's opcode in the "opcode" variable and declares new
1788 variable "closing_insn".
1789
1790 2007-05-10 Chris Dearman <chris@mips.com>
1791 Maciej W. Rozycki <macro@mips.com>
1792
1793 * cli/cli-setshow.c (do_setshow_command): Remove trailing
1794 whitespace when setting a var_filename.
1795
1796 2007-05-09 Bob Wilson <bob.wilson@acm.org>
1797
1798 * main.c (captured_main): Recognize -tui option and print an error
1799 message when the TUI is not configured.
1800
1801 2007-05-09 Andreas Schwab <schwab@suse.de>
1802
1803 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
1804 set removed members.
1805 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
1806
1807 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
1808
1809 * gdbarch.sh (deprecated_store_struct_return): Remove.
1810 * gdbarch.c, gdbarch.h: Regenerate.
1811 * frv-tdep.c (frv_store_struct_return): Remove.
1812 (frv_gdbarch_init): Do not install it.
1813
1814 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
1815
1816 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
1817 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
1818 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
1819
1820 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
1821
1822 * spu-linux-nat.c: Include "gdb_stdint.h".
1823 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
1824 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
1825 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
1826 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
1827 (spu_child_wait): Mark up string for translation.
1828
1829 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
1830 Luis Machado <luisgpm@br.ibm.com>
1831
1832 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
1833 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
1834 BC_INSTRUCTION): Define.
1835 (deal_with_atomic_sequence): New function.
1836 (rs6000_software_single_step): Call deal_with_atomic_sequence.
1837 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
1838 gdbarch_software_single_step routine.
1839
1840 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
1841
1842 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
1843 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
1844 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
1845 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
1846 spu_child_post_attach, spu_fetch_inferior_registers,
1847 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
1848 memory addresses as ULONGEST, not CORE_ADDR.
1849
1850 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
1851
1852 * gdbarch.sh: Add skip_permanent_breakpoint callback.
1853 * gdbarch.h, gdbarch.c: Regenerate.
1854
1855 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
1856 (resume): Call gdbarch_skip_permanent_breakpoint instead of
1857 SKIP_PERMANENT_BREAKPOINT. Inline default case.
1858
1859 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
1860 Add REGCACHE argument. Use it instead of read/write_register.
1861 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
1862
1863 * config/pa/tm-hppah.h: Delete file.
1864 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
1865 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
1866
1867 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
1868
1869 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
1870 * NEWS: Mention improved C++ thunk support.
1871 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
1872 * cp-abi.c (cplus_skip_trampoline): New.
1873 * cp-abi.h (cplus_skip_trampoline): New prototype.
1874 (struct cp_abi_ops): Add skip_trampoline member.
1875 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
1876 (init_gnuv3_ops): Set skip_trampoline.
1877
1878 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
1879
1880 * rs6000-tdep.c (struct frame_extra_info): Delete.
1881
1882 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
1883
1884 * linux-thread-db.c: Update some FIXME comments.
1885 (thread_db_xfer_partial): Delete.
1886 (init_thread_db_ops): Do not set to_xfer_partial.
1887
1888 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1889
1890 * inftarg.c, infptrace.c: Remove files.
1891 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
1892 (inftarg.o, infptrace.o): Remove rules.
1893 * gdbcore.h (register_addr): Remove prototype.
1894 * inferior.h (kill_inferior, store_inferior_registers,
1895 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
1896 call_ptrace, pre_fork_inferior): Remove prototypes.
1897 * target.h (child_xfer_memory, child_pid_to_exec_file,
1898 child_core_file_to_sym_file, child_post_attach,
1899 child_post_startup_inferior, child_acknowledge_created_inferior,
1900 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
1901 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
1902 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
1903 child_follow_fork, child_reported_exec_events_per_exec_call,
1904 child_has_exited, child_thread_alive): Remove prototypes.
1905
1906 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1907
1908 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
1909 (sparc_store_inferior_registers): Likewise.
1910 * sparc-nat.c (fetch_inferior_registers): Rename to ...
1911 (sparc_fetch_inferior_registers): ... this.
1912 (store_inferior_registers): Rename to ...
1913 (sparc_store_inferior_registers): ... this.
1914 (sparc_target): Update callback names.
1915 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
1916 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
1917
1918 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1919
1920 * linux-nat.c (child_post_attach): Rename to ...
1921 (linux_child_post_attach): ... this. Make static.
1922 (child_follow_fork): Rename to ...
1923 (linux_child_follow_fork): ... this. Make static.
1924 (child_insert_fork_catchpoint): Rename to ...
1925 (linux_child_insert_fork_catchpoint): ... this. Make static.
1926 (child_insert_vfork_catchpoint): Rename to ...
1927 (linux_child_insert_vfork_catchpoint): ... this. Make static.
1928 (child_insert_exec_catchpoint): Rename to ...
1929 (linux_child_insert_exec_catchpoint): ... this. Make static.
1930 (child_pid_to_exec_file): Rename to ...
1931 (linux_child_pid_to_exec_file): ... this. Make static.
1932 Add prototype.
1933 (linux_handle_extended_wait): Update call.
1934 (linux_xfer_partial): Update callback routine names.
1935
1936 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1937
1938 * configure.host (alpha*-*-osf[12]*): Remove support.
1939 * NEWS: Mention removed configurations.
1940
1941 * config/alpha/alpha-osf1.mh: Delete file.
1942 * config/alpha/alpha-osf2.mh: Delete file.
1943 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
1944 and infptrace.o.
1945 * config/alpha/nm-osf.h: Delete file.
1946 * config/alpha/nm-osf2.h: Delete file.
1947 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
1948 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
1949 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
1950
1951 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
1952 (register_addr, kernel_u_size): Remove.
1953 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
1954
1955 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1956
1957 * regcache.c (regcache_invalidate): New function.
1958 (register_cached): Remove.
1959 (set_register_cached): Remove.
1960 (deprecated_registers_fetched): Remove.
1961 (registers_changed): Use regcache_invalidate instead
1962 of set_register_cached.
1963 (regcache_raw_read): Update comment.
1964
1965 * regcache.h (regcache_invalidate): Add prototype.
1966 (register_cached): Remove.
1967 (set_register_cached): Remove.
1968 (deprecated_registers_fetched): Remove.
1969
1970 * findvar.c (value_of_register): Do not call register_cached.
1971 * frame.c (frame_register): Likewise.
1972 * tui/tui-regs.c (tui_get_register): Likewise.
1973
1974 * remote.c (fetch_register_using_p): Do not call set_register_cached.
1975 (process_g_packet): Likewise.
1976 (remote_fetch_registers): Likewise.
1977 * remote-sim.c (gdbsim_fetch_register): Likewise.
1978 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
1979 by regcache_invalidate.
1980 (mt_pseudo_register_write): Likewise.
1981 * sh-tdep.c (sh_pseudo_register_write): Likewise.
1982
1983 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
1984 call by loop over regcache_raw_supply (..., NULL).
1985
1986 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1987
1988 * target.h (struct target_ops): Add REGCACHE parameter to
1989 to_prepare_to_store.
1990 (target_prepare_to_store): Likewise.
1991 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
1992 (update_current_target): Adapt prepare_to_store de_fault rule.
1993
1994 * regcache.c (regcache_raw_write): Pass regcache to
1995 target_prepare_to_store.
1996
1997 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
1998 Do not call CHILD_PREPARE_TO_STORE.
1999 * gnu-nat.c (gnu_prepare_to_store): Likewise.
2000 * procfs.c (procfs_prepare_to_store): Likewise.
2001
2002 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
2003 * go32-nat.c (go32_prepare_to_store): Likewise.
2004 * monitor.c (monitor_prepare_to_store): Likewise.
2005 * nto-procfs.c (procfs_prepare_to_store): Likewise.
2006 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
2007 * remote-mips.c (mips_prepare_to_store): Likewise.
2008 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
2009 * win32-nat.c (win32_prepare_to_store): Likewise.
2010
2011 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
2012 Use it instead of current_regcache.
2013
2014 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
2015 parameter. Pass it on to next target.
2016 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
2017
2018 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2019
2020 * target.h (struct regcache): Add forward declaration.
2021 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
2022 and to_store_registers target operations.
2023 (target_fetch_registers, target_store_registers): Update.
2024
2025 * regcache.c (regcache_raw_read): Replace register_cached by
2026 regcache_valid_p. Pass regcache to target_fetch_registers.
2027 (regcache_raw_write): Pass regcache to target_store_registers.
2028
2029 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
2030 store_regs, store_wmmx_regs): Replace register_cached by
2031 regcache_valid_p.
2032
2033 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
2034 to target_fetch_registers calls.
2035 * corelow.c (core_open): Likewise.
2036 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
2037 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
2038 ps_lsetfpregs): Likewise.
2039 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
2040 ps_lsetfpregs): Likewise.
2041 * win32-nat.c (win32_resume): Likewise.
2042 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
2043 to target_store_registers call.
2044 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
2045
2046 * inferior.h (store_inferior_registers): Update prototype.
2047 (fetch_inferior_registers): Likewise.
2048 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
2049 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
2050 Update function pointer signatures.
2051
2052 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
2053 use it instead of current_regcache, update calls.
2054 (aix_thread_store_registers): Likewise.
2055 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
2056 (alphabsd_store_inferior_registers): Likewise.
2057 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
2058 (amd64bsd_store_inferior_registers): Likewise.
2059 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
2060 (amd64_linux_store_inferior_registers): Likewise.
2061 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
2062 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
2063 fetch_wmmx_regs, store_wmmx_regs): Likewise.
2064 (arm_linux_fetch_inferior_registers): Likewise.
2065 (arm_linux_store_inferior_registers): Likewise.
2066 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
2067 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
2068 (store_register, store_regs, store_fp_register, store_fp_regs,
2069 armnbsd_store_registers): Likewise.
2070 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
2071 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
2072 (bsd_uthread_store_registers): Likewise.
2073 * corelow.c (get_core_registers): Likewise.
2074 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
2075 go32_store_registers): Likewise.
2076 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
2077 (hppabsd_store_registers): Likewise.
2078 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
2079 (hppa_hpux_fetch_inferior_registers): Likewise.
2080 (hppa_hpux_store_register): Likewise.
2081 (hppa_hpux_store_inferior_registers): Likewise.
2082 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
2083 (hppa_linux_fetch_inferior_registers): Likewise.
2084 (hppa_linux_store_inferior_registers): Likewise.
2085 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
2086 (hpux_thread_store_registers): Likewise.
2087 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
2088 (i386bsd_store_inferior_registers): Likewise.
2089 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
2090 gnu_store_registers): Likewise.
2091 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
2092 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
2093 Likewise.
2094 (i386_linux_fetch_inferior_registers): Likewise.
2095 (i386_linux_store_inferior_registers): Likewise.
2096 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
2097 (ia64_linux_fetch_registers): Likewise.
2098 (ia64_linux_store_register): Likewise.
2099 (ia64_linux_store_registers): Likewise.
2100 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
2101 (inf_child_store_inferior_registers): Likewise.
2102 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2103 (inf_ptrace_fetch_registers): Likewise.
2104 (inf_ptrace_store_register): Likewise.
2105 (inf_ptrace_store_registers): Likewise.
2106 * infptrace.c (fetch_register, store_register): Likewise.
2107 (fetch_inferior_registers, store_inferior_registers): Likewise.
2108 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
2109 (m32r_linux_fetch_inferior_registers): Likewise.
2110 (m32r_linux_store_inferior_registers): Likewise.
2111 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
2112 (m68kbsd_store_inferior_registers): Likewise.
2113 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
2114 store_register, old_store_inferior_registers, fetch_regs, store_regs,
2115 fetch_fpregs, store_fpregs): Likewise.
2116 (m68k_linux_fetch_inferior_registers): Likewise.
2117 (m68k_linux_store_inferior_registers): Likewise.
2118 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
2119 (m88kbsd_store_inferior_registers): Likewise.
2120 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
2121 (mips64obsd_store_inferior_registers): Likewise.
2122 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
2123 (mips64_linux_regsets_store_registers): Likewise.
2124 (mips64_linux_fetch_registers): Likewise.
2125 (mips64_linux_store_registers): Likewise.
2126 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
2127 (mipsnbsd_store_inferior_registers): Likewise.
2128 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
2129 (monitor_fetch_registers, monitor_store_registers): Likewise.
2130 * nto-procfs.c (procfs_fetch_registers): Likewise.
2131 (procfs_store_registers): Likewise.
2132 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
2133 fetch_register, supply_vrregset, fetch_altivec_registers,
2134 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
2135 (store_altivec_register, store_spe_register, store_register,
2136 fill_vrregset, store_altivec_registers, store_ppc_registers,
2137 ppc_linux_store_inferior_registers): Likewise.
2138 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
2139 (ppcnbsd_store_inferior_registers): Likewise.
2140 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
2141 (ppcobsd_store_registers): Likewise.
2142 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2143 * remote.c (fetch_register_using_p, process_g_packet,
2144 fetch_registers_using_g, remote_fetch_registers): Likewise.
2145 (store_register_using_P, store_registers_using_G,
2146 remote_store_registers): Likewise.
2147 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
2148 m32r_store_register, m32r_store_register): Likewise.
2149 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
2150 * remote-sim.c (gdbsim_fetch_register): Likewise.
2151 (gdbsim_store_register): Likewise.
2152 * rs6000-nat.c (fetch_register, store_register): Likewise.
2153 (rs6000_fetch_inferior_registers): Likewise.
2154 (rs6000_store_inferior_registers): Likewise.
2155 * s390-nat.c (fetch_regs, store_regs): Likewise.
2156 (fetch_fpregs, store_fpregs): Likewise.
2157 (s390_linux_fetch_inferior_registers): Likewise.
2158 (s390_linux_store_inferior_registers): Likewise.
2159 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
2160 (shnbsd_store_inferior_registers): Likewise.
2161 * sol-thread.c (sol_thread_fetch_registers): Likewise.
2162 (sol_thread_store_registers): Likewise.
2163 * sparc-nat.c (fetch_inferior_registers): Likewise.
2164 (store_inferior_registers): Likewise.
2165 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
2166 (spu_store_inferior_registers): Likewise.
2167 * target.c (debug_print_register): Likewise.
2168 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
2169 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
2170 (vaxbsd_store_inferior_registers): Likewise.
2171 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
2172 (win32_fetch_inferior_registers): Likewise.
2173 (win32_store_inferior_registers): Likewise.
2174
2175 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2176
2177 * gdbcore.h (struct regcache): Add forward declaration.
2178 (struct core_fns): Add REGCACHE argument to core_read_registers
2179 callback.
2180 * corelow.c (get_core_register_section): Add REGCACHE argument,
2181 use it instead of current_regcache, pass it to core_read_registers
2182 callback.
2183 (get_core_registers): Add current_regcache as parameter to
2184 get_core_register_section calls.
2185
2186 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
2187 use it instead of current_regcache.
2188 * armnbsd-nat.c (fetch_core_registers): Likewise.
2189 (fetch_elfcore_registers): Likewise.
2190 * core-regset.c (fetch_core_registers): Likewise.
2191 * cris-tdep.c (fetch_core_registers): Likewise.
2192 * irix5-nat.c (fetch_core_registers): Likewise.
2193 * m68klinux-nat.c (fetch_core_registers): Likewise.
2194 * mips-linux-tdep.c (fetch_core_registers): Likewise.
2195 * win32-nat.c (fetch_elf_core_registers): Likewise.
2196
2197 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2198
2199 * gregset.h (struct regcache): Add forward declaration.
2200 (supply_gregset): Add REGCACHE parameter, make GREGS const.
2201 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
2202 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
2203 (fill_gregset): Add REGCACHE parameter.
2204 (fill_fpregset): Likewise.
2205 (fill_fpxregset): Likewise.
2206
2207 Update all definitions accordingly:
2208 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
2209 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
2210 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
2211 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
2212 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
2213 (supply_gregset): Add REGCACHE parameter, use it instead of
2214 current_regcache. Make GREGSETP parameter const, adapt casts.
2215 (supply_fpregset): Add REGCACHE parameter, use it instead of
2216 current_regcache. Make FPREGSETP parameter const, adapt casts.
2217 (fill_gregset): Add REGCACHE parameter, use it instead of
2218 current_regcache.
2219 (fill_fpregset): Likewise.
2220
2221 Update all callers to pass in current_regcache as the new argument:
2222 * core-regset.c: Include "regcache.h".
2223 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
2224 * procfs.c: Include "regcache.h".
2225 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
2226 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
2227 (procfs_do_thread_registers): Likewise.
2228 (procfs_make_note_section): Likewise.
2229 * proc-service.c: Include "regcache.h".
2230 (ps_lgetregs): Update fill_gregset call.
2231 (ps_lsetregs): Update supply_gregset call.
2232 (ps_lgetfpregs): Update fill_fpregset call.
2233 (ps_lsetfpregs): Update supply_fpregset call.
2234 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
2235 supply_fpregset calls.
2236 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
2237 (ps_lgetregs): Update fill_gregset call.
2238 (ps_lsetregs): Update supply_gregset call.
2239 (ps_lgetfpregs): Update fill_fpregset call.
2240 (ps_lsetfpregs): Update supply_fpregset call.
2241
2242 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
2243 fill_fpregset, and fill_fpxregset calls.
2244 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
2245 (store_regs): Update fill_gregset call.
2246 (fetch_fpregs): Update supply_fpregset call.
2247 (store_fpregs): Update fill_fpregset call.
2248 (fetch_fpxregs): Update supply_fpxregset call.
2249 (store_fpxregs): Update fill_fpxregset call.
2250 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
2251 (store_regs): Update fill_gregset call.
2252 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
2253 (store_regs): Update fill_gregset call.
2254 (fetch_fpregs): Update supply_fpregset call.
2255 (store_fpregs): Update fill_fpregset call.
2256 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
2257 * s390-nat.c (fetch_regs): Update supply_gregset call.
2258 (store_regs): Update fill_gregset call.
2259 (fetch_fpregs): Update supply_fpregset call.
2260 (store_fpregs): Update fill_fpregset call.
2261
2262 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
2263 dependencies.
2264
2265 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2266
2267 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
2268 it instead of current_regcache.
2269 (parse_register_dump): Add REGCACHE parameter, pass it to
2270 supply_register callback.
2271 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
2272 parse_register_dump.
2273 (monitor_dump_regs): Add REGCACHE parameter, pass it to
2274 parse_register_dump and dumpregs callback.
2275 (monitor_wait): Pass current_regcache to parse_register_dump and
2276 monitor_dump_regs.
2277 (monitor_fetch_register): Pass current_regcache to
2278 monitor_supply_register.
2279 (monitor_fetch_registers): Pass current_regcache to
2280 monitor_dump_regs.
2281 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
2282 supply_register and dumpregs callbacks.
2283 (monitor_supply_register, monitor_dump_reg_block): Update
2284 prototypes.
2285 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
2286 it to monitor_supply_register.
2287 * dink32-rom.c (dink32_supply_register): Likewise.
2288 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
2289 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
2290 instead of current_regcache.
2291
2292 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2293
2294 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
2295 Add REGCACHE parameter. Use it instead of current_regcache.
2296 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
2297 i386nto_supply_gregset and i386nto_supply_fpregset.
2298 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
2299 of current_regcache.
2300
2301 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
2302 nto_supply_ helper functions.
2303 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
2304
2305 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
2306
2307 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
2308 supply_greget, supply_fpregset, supply_altregset, supply_regset,
2309 and regset_fill member function pointers.
2310 (nto_dummy_supply_regset): Adapt prototype.
2311
2312 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2313
2314 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
2315 instead of current_regcache. Make REGS const.
2316 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
2317 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
2318 prototypes.
2319 * shnbsd-nat.c: Include "regcache.h".
2320 (shnbsd_fetch_inferior_registers): Pass current_regcache to
2321 shnbsd_supply_reg.
2322 (shnbsd_store_inferior_registers): Pass current_regcache to
2323 shnbsd_fill_reg.
2324 * Makefile.in (shbsd-nat.o): Update dependencies.
2325
2326 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2327
2328 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
2329 instead of current_regcache.
2330 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
2331 Make GREGSETP const, remove superfluous casts.
2332 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
2333 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
2334 superfluous casts.
2335 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
2336 (supply_64bit_reg): Likewise
2337 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
2338 Make GREGSETP const, adapt casts accordingly.
2339 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
2340 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
2341 casts accordingly.
2342 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
2343 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
2344 helper routines.
2345 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
2346 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
2347 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
2348 Adapt prototypes.
2349 * mips-linux-nat.c: Include "regcache.h".
2350 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
2351 current_regcache to mips{64}_(supply|fill)_ helper routines.
2352 (mips64_linux_regsets_fetch_registers): Likewise.
2353 (mips64_linux_regsets_store_registers): Likewise.
2354
2355 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
2356 REGCACHE argument; replace current_regcache. Make REGS const.
2357 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
2358 replace current_regcache.
2359 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
2360 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
2361 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
2362 mipsnbsd_store_inferior_registers): Pass current_regcache to
2363 mipsnbsd_(supply|fill)_... helper routines.
2364
2365 * Makefile.in (mips-linux-nat.o): Update dependencies.
2366
2367 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2368
2369 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
2370 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
2371 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
2372 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
2373 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
2374 * i386gnu-nat.c (store_fpregs): Likewise.
2375 * i386v4-nat.c (fill_fpregset): Likewise.
2376 * go32-nat.c (store_register, go32_store_registers): Likewise.
2377
2378 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2379
2380 * cris-tdep.c (supply_gregset): Rename to ...
2381 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
2382 instead of current_regcache.
2383 (fetch_core_registers): Update call. Pass current_regcache.
2384
2385 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2386
2387 * arnmnbsd-nat.c (supply_gregset): Rename to ...
2388 (arm_supply_gregset): ... this. Add REGCACHE parameter.
2389 Use it instead of current_regcache.
2390 (supply_fparegset): Rename to ...
2391 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
2392 Use it instead of current_regcache.
2393 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
2394 (fetch_core_registers, fetch_elfcore_registers): Likewise.
2395
2396 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2397
2398 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
2399 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
2400 use it instead of current_regcache.
2401 * alpha-tdep.h (struct regcache): Add forward declaration.
2402 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
2403 alpha_fill_fp_regs): Update prototypes.
2404
2405 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
2406 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
2407 * alpha-linux-nat.c: Include "regcache.h".
2408 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
2409 current_regcache to alpha_supply/fill_ routines.
2410
2411 * alphabsd-tdep.c: Include "regcache.h".
2412 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
2413 pass it to alpha_supply_ routines. Make REGS const.
2414 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
2415 pass it to alpha_fill_ routines.
2416 * alphabsd-tdep.h (struct regcache): Add forward declaration.
2417 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
2418 alphabsd_fill_fpreg): Update prototypes.
2419
2420 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
2421 fill_fpregset, alphabsd_fetch_inferior_registers,
2422 alphabsd_store_inferior_registers): Pass current_regcache to
2423 alphabsd_supply/fill_ routines.
2424
2425 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
2426 dependencies.
2427
2428 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2429
2430 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
2431 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
2432 instead of current_regcache.
2433 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
2434 REGCACHE parameter, pass it to supply_ routines.
2435 (aix_thread_fetch_registers): Pass current_regcache to
2436 fetch_regs_user_thread and fetch_regs_kernel_thread.
2437
2438 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
2439 Add REGCACHE parameter, use it instead of current_regcache.
2440 Call regcache_valid_p instead of register_cached.
2441 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
2442 Also, pass REGCACHE to fill_ routines.
2443 (aix_thread_store_registers): Pass current_regcache to
2444 store_regs_user_thread and store_regs_kernel_thread.
2445
2446 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2447
2448 * m32r-linux-nat.c (supply_gregset): Do not modify contents
2449 pointed to by GREGSETP.
2450
2451 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2452
2453 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
2454 of regcache_raw_read_signed.
2455 (fill_fpregset): Use regcache_raw_collect instead of
2456 regcache_raw_read.
2457
2458 2007-05-03 Kevin Buettner <kevinb@redhat.com>
2459
2460 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
2461 point arguments, test explicitly for use of the EABI32 ABI
2462 instead of inferring this condition from tests on register
2463 sizes.
2464
2465 2007-05-03 Kevin Buettner <kevinb@redhat.com>
2466
2467 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
2468 prior to allocating its location.
2469
2470 2007-05-02 Maciej W. Rozycki <macro@mips.com>
2471
2472 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
2473 based on mips_abi_regsize() whose result is known in advance.
2474 (mips_o64_push_dummy_call): Likewise.
2475
2476 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
2477
2478 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
2479 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
2480
2481 * mips-linux-nat.c: Include "gregset.h".
2482 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
2483 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
2484 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
2485 fill_fpregset): Move to mips-linux-nat.c.
2486
2487 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
2488
2489 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
2490
2491 * regcache.c (deprecated_read_register_gen): Remove, inline ...
2492 (read_register): ... here.
2493 (deprecated_write_register_gen): Remove, inline ...
2494 (write_register): ... here.
2495 * regcache.h (deprecated_read_register_gen): Remove prototype.
2496 (deprecated_write_register_gen): Likewise.
2497
2498 * remote-sim.c (gdbsim_store_register): Replace call to
2499 deprecated_read_register_gen with regcache_cooked_read.
2500 * target.c (debug_print_register): Replace calls to
2501 deprecated_read_register_gen and read_register with
2502 regcache_cooked_read.
2503
2504 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
2505
2506 * hpux-thread.c (hpux_thread_store_registers): Use
2507 regcache_raw_collect, not regcache_raw_read.
2508 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
2509 not regcache_raw_write.
2510
2511 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
2512
2513 * gdbarch.sh: Remove deprecated_register_byte.
2514 * gdbarch.c, gdbarch.h: Regenerate.
2515 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
2516 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
2517
2518 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
2519 * regcache.c (regcache_valid_p): Allow to query cooked registers in
2520 read-only register caches. Make REGCACHE parameter const.
2521 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
2522
2523 * mi/mi-main.c (old_regs): Remove.
2524 (mi_setup_architecture_data, _initialize_mi_main): Remove.
2525 (register_changed_p): Reimplement to compare two register caches.
2526 (mi_cmd_data_list_changed_registers): Update caller.
2527 * mi/mi-main.h (mi_setup_architecture_data): Remove.
2528 * mi/mi-interp.c (mi_interpreter_init): Do not call
2529 mi_setup_architecture_data.
2530
2531 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
2532
2533 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
2534 inline definition at the places the macros are used.
2535 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
2536
2537 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
2538
2539 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
2540 "gdb_string.h".
2541 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
2542 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
2543 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
2544 (rs6000_aix_regset_from_core_section): New function.
2545 (rs6000_aix_init_osabi): Register it.
2546 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
2547 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
2548 * rs6000-nat.c (CoreRegs): Do not define type.
2549 (fetch_core_registers, rs6000_core_fns): Remove.
2550 (_initialize_core_rs6000): Do not register it. Rename to ...
2551 (_initialize_rs6000_nat): ... this.
2552 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
2553
2554 2007-04-27 Kevin Buettner <kevinb@redhat.com>
2555
2556 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
2557 (dwarf2_read_address): Sign extend return address as required by
2558 target architecture.
2559
2560 2007-04-27 Kevin Buettner <kevinb@redhat.com>
2561
2562 * solib-frv.c (lm_base): Bail out if the main executable has
2563 not been relocated.
2564
2565 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
2566
2567 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
2568 of FPCR register in fpregset.
2569
2570 2007-04-27 Maciej W. Rozycki <macro@mips.com>
2571
2572 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
2573 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
2574
2575 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
2576
2577 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
2578 * rs6000-nat.c (rs6000_wait): New function.
2579 (_initialize_core_rs6000): Install it as to_wait target method.
2580 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
2581
2582 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
2583
2584 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
2585 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
2586 * rs6000-nat.c (super_create_inferior): New variable.
2587 (rs6000_create_inferior): Make static. Adapt argument list. Call
2588 original version of create_inferior via super_create_inferior.
2589 (_initialize_core_rs6000): Install to_create_inferior target method.
2590
2591 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
2592
2593 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
2594 (aix_thread_xfer_partial): ... this.
2595 (init_aix_thread_ops): Install to_xfer_partial instead
2596 of deprecated_xfer_memory target method.
2597
2598 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
2599 and inftarg.o, add inf-ptrace.o.
2600 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
2601 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
2602 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
2603 (fetch_inferior_registers): Rename to ...
2604 (rs6000_fetch_inferior_registers): ... this. Make static.
2605 (store_inferior_registers): Rename to ...
2606 (rs6000_store_inferior_registers): ... this. Make static.
2607 (read_word, child_xfer_memory): Remove.
2608 (rs6000_xfer_partial): New function.
2609 (kernel_u_size): Remove.
2610 (_initialize_core_rs6000): Add inf_ptrace-based target.
2611 * Makefile.in (rs6000-nat.o): Update dependencies.
2612
2613 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
2614
2615 * inf-ptrace.c: Include "gdb_stdint.h".
2616 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
2617 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
2618 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
2619 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
2620 (inf_ptrace_store_register): Likewise.
2621 * Makefile.in (inf-ptrace.o): Update dependencies.
2622
2623 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
2624
2625 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
2626 * configure.tgt (rs6000-*-*): Likewise.
2627 * config/rs6000/aix4.mh: Delete file.
2628 * config/rs6000/aix4.mt: Delete file.
2629 * config/rs6000/rs6000.mh: Delete file.
2630 * config/rs6000/rs6000.mt: Delete file.
2631
2632 * config/powerpc/nm-aix.h: Delete file.
2633 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
2634
2635 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
2636
2637 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
2638 Remove obsolete part of comment.
2639 (store_regs_user_thread): Use uint32_t temporaries when calling
2640 fill_sprs32.
2641 (store_regs_kernel_thread): Likewise. Add assertion to verify
2642 correct size of struct ptsprs members.
2643 (aix_thread_xfer_memory): Fix type of myaddr.
2644 (aix_thread_extra_thread_info): Fix compiler warning.
2645 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
2646 (fetch_register, store_register): Adapt callers.
2647
2648 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
2649
2650 * vec.h (vec_free): Rename to vec_free_. Adapt users.
2651
2652 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
2653
2654 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
2655 and "regcache.h".
2656 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
2657 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
2658 (alpha_linux_regset_from_core_section): New function.
2659 (alpha_linux_init_abi): Install it.
2660 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
2661 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
2662 <sys/procfs.h>, and "gregset.h".
2663 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
2664 Move from config/alpha/nm-linux.h.
2665 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
2666 from alpha-nat.c.
2667 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
2668 * alpha-nat.c: Remove #ifdef __linux__ section.
2669 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
2670 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
2671 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
2672 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
2673 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
2674 (NATDEPFILES): Remove alpha-nat.o.
2675 * config/alpha/nm-linux.h: Delete file.
2676 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
2677 * Makefile.in (alpha-linux-nat.o): Update dependencies.
2678 (alpha-linux-tdep.o): Likewise.
2679
2680 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
2681
2682 * mips-linux-nat.c: No longer include "gdbcore.h".
2683 (mips_linux_register_addr): Move from mips-linux-tdep.c.
2684 (mips64_linux_register_addr): Likewise.
2685 (mips_linux_register_u_offset): Call mips_linux_register_addr or
2686 mips64_linux_register_addr instead of register_addr.
2687 * mips-linux-tdep.c (mips_linux_register_addr,
2688 mips64_linux_register_addr): Move to mips-linux-nat.c.
2689 (register_addr): Remove.
2690 (register_addr_data, init_register_addr_data): Remove.
2691 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
2692 (set_mips_linux_register_addr): Remove.
2693 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
2694 * Makefile.in (mips-linux-nat.o): Update dependencies.
2695
2696 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
2697
2698 * linux-nat.c (linux_register_u_offset): Remove.
2699 (linux_target_install_ops): New function.
2700 (linux_target): Use it.
2701 (linux_trad_target): New function.
2702 * linux-nat.h (linux_trad_target): Declare.
2703
2704 * alpha-linux-nat.c: Include "gdbcore.h".
2705 (alpha_linux_register_u_offset): New function.
2706 (_initialize_alpha_linux_nat): Use linux_trad_target.
2707
2708 * mips-linux-nat.c: Include "gdbcore.h".
2709 (mips_linux_register_u_offset): New function.
2710 (_initialize_mips_linux_nat): Use linux_trad_target.
2711
2712 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2713 * config/arm/nm-linux.h: Delete file.
2714
2715 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
2716 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
2717
2718 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2719 * config/ia64/nm-linux.h: Delete file.
2720
2721 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2722 * config/m32r/nm-linux.h: Delete file.
2723
2724 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2725 * config/m68k/nm-linux.h: Delete file.
2726
2727 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2728 * config/pa/nm-linux.h: Delete file.
2729
2730 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2731 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
2732 * config/powerpc/nm-linux.h: Delete file.
2733
2734 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
2735 * config/s390/nm-linux.h: Delete file.
2736
2737 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2738 * config/sparc/linux64.mh (NAT_FILE): Likewise.
2739 * config/sparc/nm-linux.h: Delete file.
2740
2741 * Makefile.in (alpha-linux-nat.o): Update dependencies.
2742 (mips-linux-nat.o): Likewise.
2743
2744 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
2745
2746 * core-aout.c: Delete file.
2747 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
2748 (core-aout.o): Delete rule.
2749 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
2750
2751 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
2752
2753 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
2754 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
2755 KERNEL_U_ADDR): Remove.
2756
2757 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
2758 (cannot_fetch_register, cannot_store_register): Remove.
2759 (fetch_register): Inline cannot_fetch_register and register_addr.
2760 (store_register): Inline cannot_store_register and register_addr.
2761 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
2762 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
2763 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
2764 Remove.
2765
2766 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
2767 (fetch_register): Inline register_addr.
2768 (store_register): Inline register_addr.
2769 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
2770 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
2771 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
2772
2773 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
2774 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
2775 REGISTER_U_ADDR): Remove.
2776
2777 * hppa-linux-nat.c (register_addr): Rename to ...
2778 (hppa_linux_register_addr): ... this. Make static.
2779 (fetch_register, store_register): Adapt callers.
2780 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
2781
2782 * ppc-linux-nat.c (kernel_u_size): Remove.
2783 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
2784
2785 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
2786 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
2787 (NAT_FILE): Remove.
2788 * config/vax/nm-vax.h: Delete file.
2789
2790 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
2791
2792 * MAINTAINERS (Write After Approval): Add myself.
2793
2794 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
2795
2796 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
2797 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
2798 (m68k_linux_sigcontext_reg_offset): Fix typo.
2799 (target_is_uclinux): New.
2800 (m68k_linux_inferior_created): New.
2801 (m68k_linux_get_sigtramp_info): Check for uClinux or
2802 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
2803 uClinux.
2804 (_initialize_m68k_linux_tdep): Register
2805 m68k_linux_inferior_created.
2806
2807 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
2808
2809 * win32-nat.c (win32_detach): Remove delete_command call.
2810 Resume inferior with win32_resume instead of win32_continue.
2811
2812 2007-04-19 Jerome Guitton <guitton@adacore.com>
2813
2814 * ser-mingw.c (fd_is_file): New function.
2815 (file_select_thread): New function.
2816 (ser_console_wait_handle): Add special handling for files.
2817
2818 2007-04-18 Denis Pilat <denis.pilat@st.com>
2819
2820 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
2821 when missing from DW_TAG_subrange_type. Remove the handling of null
2822 return from die_type.
2823
2824 2007-04-18 Maciej W. Rozycki <macro@mips.com>
2825
2826 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
2827 change to rearrange some brackets.
2828 (mips_n32n64_push_dummy_call): Likewise.
2829 (mips_o32_push_dummy_call): Likewise.
2830 (mips_o64_push_dummy_call): Likewise.
2831
2832 2007-04-18 Denis Pilat <denis.pilat@st.com>
2833
2834 * infcmd.c (post_create_inferior): Start with a call to
2835 target_terminal_ours.
2836
2837 2007-04-17 Maciej W. Rozycki <macro@mips.com>
2838
2839 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
2840 brackets.
2841 (mips_n32n64_push_dummy_call): Likewise. Reformat some
2842 expressions.
2843 (mips_o32_push_dummy_call): Likewise.
2844 (mips_o64_push_dummy_call): Likewise.
2845
2846 2007-04-17 Maciej W. Rozycki <macro@mips.com>
2847
2848 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
2849 comment.
2850
2851 2007-04-17 Maciej W. Rozycki <macro@mips.com>
2852
2853 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
2854 comment.
2855 (mips_o32_push_dummy_call): Likewise.
2856
2857 2007-04-17 Andreas Schwab <schwab@suse.de>
2858
2859 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
2860 sal to be bigger than the end of the function.
2861
2862 2007-04-17 Maciej W. Rozycki <macro@mips.com>
2863 Nigel Stephens <nigel@mips.com>
2864
2865 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
2866 argument alignment requirements when calculating stack space
2867 required. When aligning an arg register to eight bytes
2868 boundary, align stack_offset too. Write floating-point
2869 arguments to the appropriate integer register if need go there.
2870 (mips_o64_push_dummy_call): Likewise.
2871
2872 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
2873
2874 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
2875 "sig" arguments, add "regcache" argument.
2876 * gdbarch.c, gdbarch.h: Regenerate.
2877
2878 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
2879 (handle_inferior_event): Call remove_single_step_breakpoints directly
2880 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
2881
2882 * alpha-tdep.c (alpha_software_single_step): Update argument list.
2883 Remove handling of !insert_breakpoints_p case.
2884 * arm-tdep.c (arm_software_single_step): Likewise.
2885 * cris-tdep.c (cris_software_single_step): Likewise.
2886 * mips-tdep.c (mips_software_single_step): Likewise.
2887 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
2888 * sparc-tdep.c (sparc_software_single_step): Likewise.
2889 * spu-tdep.c (spu_software_single_step): Likewise.
2890
2891 * alpha-tdep.h (alpha_software_single_step): Update prototype.
2892 * mips-tdep.h (mips_software_single_step): Likewise.
2893 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
2894 * sparc-tdep.h (sparc_software_single_step): Likewise.
2895
2896 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
2897
2898 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
2899 when removing single-step breakpoints.
2900
2901 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
2902
2903 * varobj.h (varobj_set_frozen): New
2904 (varobj_get_frozen): New.
2905 (varobj_update): New parameter explicit.
2906 * varobj.c (struct varobj): New fields frozen
2907 and not_fetched.
2908 (varobj_set_frozen, varobj_get_frozen): New.
2909 (install_new_value): Don't fetch values for
2910 frozen variable object, or children thereof. Allow
2911 a frozen variable object to have non-fetched value.
2912 (varobj_update): Allow updating child variables.
2913 Don't traverse frozen children.
2914 (new_variable): Initialize the frozen field.
2915 (c_value_of_variable): Return NULL for frozen
2916 variable without any value yet.
2917 * mi/mi-cmd-var.c (varobj_update_one): New parameter
2918 'explicit'.
2919 (mi_cmd_var_create): Output the 'frozen' field,
2920 as soon as testsuite is adjusted to expect that field.
2921 (mi_cmd_var_set_frozen): New.
2922 (mi_cmd_var_update): Pass the 'explicit' parameter to
2923 varobj_update_one.
2924 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
2925 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
2926
2927 2007-04-13 Paul Brook <paul@codesourcery.com>
2928
2929 * target-descriptions.c (tdesc_named_type): Add ieee_single and
2930 ieee_double.
2931 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
2932
2933 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
2934
2935 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
2936 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
2937 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
2938 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
2939 * Makefile.in: Remove references to deleted files.
2940 * README: Do not mention deleted ROM monitor interfaces.
2941 * defs.h (enum language): Delete language_scm.
2942 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
2943 (dump_subexp_body_standard): Likewise.
2944 * parse.c (operator_length_standard): Likewise.
2945 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
2946 * remote-mips.c: Do not include remote-utils.h.
2947 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
2948 throughout.
2949 * value.c: Do not include scm-lang.h.
2950 (unpack_long): Delete scm_unpack call.
2951 * config/h8300/h8300.mt, config/mips/embed.mt,
2952 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
2953 config/sh/embed.mt, config/sh/linux.mt: Remove references to
2954 deleted files.
2955 * NEWS: Mention removed files.
2956
2957 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
2958
2959 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
2960 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
2961
2962 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
2963
2964 * NEWS: Mention removal of HP aCC support.
2965
2966 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
2967
2968 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
2969 first entry for static executables.
2970 (breakpoint_addr): Delete unused variable.
2971 (elf_locate_base): Search for _r_debug in static executables.
2972 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
2973 also.
2974
2975 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
2976
2977 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
2978 (bpstat_what, print_one_breakpoint, allocate_bp_location)
2979 (mention): Remove bp_through_sigtramp support.
2980 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
2981
2982 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
2983
2984 * breakpoint.c (bpstat_what): Give step-resume higher priority than
2985 shlib events.
2986
2987 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
2988
2989 * infrun.c: Doc fixes.
2990 (handle_inferior_event): Clarify debug message.
2991 (insert_step_resume_breakpoint_at_sal): Print a debug message.
2992
2993 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
2994
2995 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
2996
2997 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
2998
2999 * config/m68k/tm-monitor.h: Delete file.
3000 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
3001 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
3002 call moved to ...
3003 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
3004 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
3005
3006 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
3007
3008 * gdbarch.sh (software_single_step): Change the return type
3009 from void to int and reformatted some comments to <= 80
3010 columns.
3011 * gdbarch.c, gdbarch.h: Regenerated.
3012 * alpha-tdep.c (alpha_software_single_step): Likewise.
3013 * alpha-tdep.h (alpha_software_single_step): Likewise.
3014 * arm-tdep.c (arm_software_single_step): Likewise.
3015 * cris-tdep.c (cris_software_single_step): Likewise.
3016 * mips-tdep.c (mips_software_single_step): Likewise.
3017 * mips-tdep.h (mips_software_single_step): Likewise.
3018 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
3019 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
3020 * sparc-tdep.c (sparc_software_single_step): Likewise.
3021 * sparc-tdep.h (sparc_software_single_step): Likewise.
3022 * spu-tdep.c (spu_software_single_step): Likewise.
3023 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
3024 and act accordingly.
3025
3026 2007-04-11 Steve Ellcey <sje@cup.hp.com>
3027
3028 * configure.ac (build_warnings): Add -Wno-char-subscripts.
3029 * configure: Regenerate.
3030 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
3031
3032 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3033
3034 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
3035
3036 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3037
3038 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
3039 macros.
3040 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
3041 distinct on the TYPE_STUB_SUPPORTED debug targets.
3042 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
3043
3044 2007-04-11 Joel Brobecker <brobecker@adacore.com>
3045
3046 * sparc-tdep.c (X_RS2): New macro.
3047 (sparc_skip_stack_check): New function.
3048 (sparc_analyze_prologue): Adjust PC past stack probing
3049 sequence if necessary.
3050
3051 2007-04-10 Andreas Schwab <schwab@suse.de>
3052
3053 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
3054 register.
3055
3056 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
3057
3058 * breakpoint.c (gdb_breakpoint_query): Really return an
3059 enum gdb_rc.
3060 (gdb_breakpoint): Likewise.
3061 * thread.c (gdb_list_thread_ids): Likewise.
3062 (gdb_thread_select): Likewise.
3063 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
3064 (mi_cmd_thread_list_ids): Remove bogus initialization.
3065
3066 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
3067
3068 * Makefile.in (SFILES): Remove hpacc-abi.c.
3069 (COMMON_OBS): Remove hpacc-abi.o.
3070 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
3071 (hpacc-abi.o, hpread.o): Delete rules.
3072 * somread.c: Delete extern declarations from hpread.c.
3073 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
3074 (som_symfile_finish): Do not call hpread_symfile_finish.
3075 (som_symfile_init): Do not call hpread_symfile_init.
3076 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
3077 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
3078 * hpacc-abi.c, hpread.c: Deleted.
3079
3080 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
3081
3082 * solib-svr4.c (enable_break): Simplify return value.
3083 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
3084
3085 2007-04-10 Andreas Schwab <schwab@suse.de>
3086
3087 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
3088 l_ld_size, l_next_size, l_prev_size, l_name_size.
3089
3090 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
3091 to extract addresses from link map.
3092 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
3093 (LM_NEXT): Likewise.
3094 (LM_NAME): Likewise.
3095 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
3096 (elf_locate_base): Likewise.
3097 (open_symbol_file_object): Likewise.
3098 (svr4_fetch_objfile_link_map): Likewise.
3099 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
3100 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
3101 l_ld_size.
3102 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
3103 (svr4_lp64_fetch_link_map_offsets): Likewise.
3104
3105 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
3106 removed members. Set l_ld_offset to -1 if not present.
3107
3108 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
3109
3110 Pass stderr of program run with "target remote |"
3111 via gdb_stderr.
3112 * serial.c (serial_open): Set error_fd to -1.
3113 * serial.h (struct serial): New field error_fd.
3114 (struct serial_opts): New field avail.
3115 * ser-pipe.c (pipe_open): Create another pair
3116 of sockets. Pass stderr to gdb.
3117 * ser-mingw.c (pipe_windows_open): Pass
3118 PEX_STDERR_TO_PIPE to pex_run. Initialize
3119 sd->error_fd.
3120 (pipe_avail): New.
3121 (_initialize_ser_windows): Hook pipe_avail.
3122 * ser-base.c (generic_readchar): Check if there's
3123 anything in stderr channel and route that to gdb_stderr.
3124
3125 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
3126
3127 * dbxread.c (read_ofile_symtab): Move current_objfile
3128 clearing to after end_stabs.
3129
3130 2007-04-01 Andreas Schwab <schwab@suse.de>
3131
3132 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
3133 gdbarch instead of current_gdbarch.
3134
3135 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
3136
3137 * varobj.c (varobj_create): Keep varobj value
3138 NULL when evaluating the type.
3139
3140 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
3141
3142 * NEWS: Mention new Windows CE support.
3143
3144 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
3145
3146 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
3147 the obsoletion stanza.
3148 * NEWS: Mention deleted targets.
3149
3150 * config/sh/tm-wince.h: Remove.
3151 * config/sh/wince.mt: Remove.
3152 * config/mips/tm-wince.h: Remove.
3153 * config/mips/wince.mt: Remove.
3154
3155 * wince.c: Remove.
3156 * wince-stub.c: Remove.
3157 * wince-stub.h: Remove.
3158 * Makefile.in (wince.o): Remove rule.
3159 (wince-stub.o): Likewise.
3160
3161 * mips-tdep.c (mips_next_pc): Make static.
3162 * mips-tdep.h (mips_next_pc): Remove declaration.
3163 * arm-tdep.c (arm_pc_is_thumb): Make static.
3164 (thumb_get_next_pc): Likewise.
3165 (arm_get_next_pc): Likewise.
3166 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
3167 (arm_pc_is_thumb): Likewise.
3168 (thumb_get_next_pc): Likewise.
3169 (arm_get_next_pc): Likewise.
3170
3171 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
3172
3173 * MAINTAINERS: Remove d10v entry.
3174 * Makefile.in (SFILES): Remove dwarfread.c.
3175 (COMMON_OBS): Remove dwarfread.o.
3176 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
3177 (remote-est.o, rom68k-rom.o): Delete.
3178 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
3179 target est, target rom68k, and DWARF 1.
3180 * configure.tgt: Mark d10v as removed.
3181 * dwarf2read.c: Doc update.
3182 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
3183 and lnsize.
3184 (elf_locate_sections): Do not set them.
3185 (elf_symfile_read): Do not call dwarf_build_psymtabs.
3186 * symfile.h (dwarf_build_psymtabs): Delete prototype.
3187 * config/m68k/monitor.mt (TDEPFILES): Prune.
3188 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
3189 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
3190
3191 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
3192
3193 * doublest.c (convert_floatformat_to_doublest): Use
3194 floatformat_classify.
3195 (floatformat_is_nan): Rename to...
3196 (floatformat_classify): ...this. Return more information.
3197 * doublest.h (enum float_kind): New.
3198 (floatformat_is_nan): Replace prototype...
3199 (floatformat_classify): ...with this one.
3200 * valprint.c (print_floating): Use floatformat_classify. Handle
3201 infinity.
3202
3203 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
3204
3205 * README: Mention ISO C library requirement.
3206
3207 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
3208
3209 * Makefile.in (SFILES): Remove nlmread.c.
3210 (COMMON_OBS): Remove nlmread.o.
3211 (nlmread.o): Delete rule.
3212 * README: Delete reference to remote-st.c.
3213 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
3214 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
3215 GDB_OSABI_LYNXOS.
3216 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
3217 (_initialize_i386_tdep): Do not reference them.
3218 * nlmread.c: Delete file.
3219 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
3220 * target.c: Doc update.
3221 * thread.c: Delete commented include.
3222 * config/alpha/tm-alpha.h: Doc update.
3223
3224 2007-03-30 Chris Dearman <chris@mips.com>
3225
3226 * utils.c (string_to_core_addr): Comment typo.
3227
3228 2007-03-30 Chris Dearman <chris@mips.com>
3229
3230 * mips-tdep.c: Comment typo.
3231
3232 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
3233
3234 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
3235 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
3236 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
3237 * config/powerpc/nm-ppc64-linux.h: Remove file.
3238 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
3239 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
3240 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
3241 * infptrace.c (call_ptrace): Likewise.
3242 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
3243 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
3244 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
3245 (store_register): Likewise.
3246
3247 2007-03-29 Joel Brobecker <brobecker@adacore.com>
3248
3249 * Makefile.in (varobj.o): Add missing dependency.
3250
3251 2007-03-29 Michael Snyder <msnyder@access-company.com>
3252
3253 * MAINTAINERS: Update my email address.
3254
3255 2007-03-29 Joel Brobecker <brobecker@adacore.com>
3256
3257 Add support for exception handling with multiple versions of
3258 the Ada runtime:
3259 * ada-lang.c: Update general comments on how Ada exception catchpoints
3260 are implemented.
3261 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
3262 (__gnat_raise_nodefer_with_msg): Delete.
3263 (ada_unhandled_exception_name_addr_ftype): New type.
3264 (exception_support_info): New type.
3265 (ada_unhandled_exception_name_addr): Add forward declaration.
3266 (ada_unhandled_exception_name_addr_from_raise): Likewise.
3267 (default_exception_support_info): New constant.
3268 (exception_support_info_fallback): Likewise.
3269 (exception_info): New global variable.
3270 (ada_exception_support_info_sniffer): New function.
3271 (ada_executable_changed_observer): Likewise.
3272 (ada_unhandled_exception_name_addr_from_raise): Renamed from
3273 ada_unhandled_exception_name_addr.
3274 (ada_unhandled_exception_name_addr): Reimplement to match the
3275 latest Ada runtime implementation.
3276 (error_breakpoint_runtime_sym_not_found): Delete.
3277 (ada_exception_sym_name): Get the exception sym name from
3278 exception_info rather than hardcoding it.
3279 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
3280 Update error handling.
3281 * Makefile.in (ada-lang.o): Add dependency on observer.h.
3282
3283 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
3284
3285 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
3286 (remote-st.o, uw-thread.o): Delete.
3287 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
3288 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
3289 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
3290 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
3291 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
3292 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
3293 rs6000-*-lynxos* to an obsoletion stanza.
3294 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
3295 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
3296 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
3297 i[34567]86-*-netware*.
3298 * NEWS: Mention deleted targets.
3299
3300 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
3301 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
3302 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
3303 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
3304 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
3305 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
3306 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
3307 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
3308 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
3309 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
3310 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
3311 config/rs6000/tm-rs6000ly.h: Delete files.
3312
3313 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
3314
3315 * defs.h (deprecated_registers_changed_hook): Delete declaration.
3316 * interps.c (clear_interpreter_hooks): Do not clear
3317 deprecated_registers_changed_hook.
3318 * regcache.c (registers_changed): Do not call it.
3319 * top.c (deprecated_registers_changed_hook): Do not define it.
3320 * mi/mi-interp.c (mi_command_loop): Do not clear it.
3321 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
3322 (tui_remove_hooks): Do not remove it.
3323 (tui_selected_frame_level_changed_hook): Check for negative level.
3324 Use get_selected_frame.
3325 (tui_registers_changed_hook): Deleted.
3326
3327 2007-03-29 Joel Brobecker <brobecker@adacore.com>
3328
3329 * stabsread.c (add_undefined_type): Add extra parameter.
3330 Now handles nameless types separately.
3331 (struct nat): New type.
3332 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
3333 New static variables.
3334 (read_type): Update calls to add_undefined_type.
3335 (add_undefined_type_noname): New function.
3336 (add_undefined_type_1): Renames from add_undefined_type.
3337 (cleanup_undefined_types_noname): New function.
3338 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
3339 (cleanup_undefined_types): New handles nameless types separately.
3340 (_initialize_stabsread): Initialize our new static constants.
3341
3342 2007-03-29 Denis Pilat <denis.pilat@st.com>
3343
3344 * configure.ac: Test for signal.h.
3345 * configure, config.in: Regenerate.
3346
3347 2007-03-29 Denis Pilat <denis.pilat@st.com>
3348
3349 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
3350 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
3351
3352 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
3353
3354 * arm-wince-tdep.c: New.
3355 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
3356 (MT_CFLAGS): Delete.
3357 (TM_CLIBS): Delete.
3358 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
3359 solib-legacy.o, solib-svr4.o, and remove wince.o.
3360 * configure.tgt (arm*-*-mingw32ce*): Add.
3361 * signals/signals.c [HAVE_SIGNAL_H]: Check.
3362 (do_target_signal_to_host): Silence 'not used' warning.
3363 * config/arm/tm-wince.h: Remove.
3364
3365 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
3366
3367 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
3368 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
3369
3370 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
3371 * config/ia64/tm-linux.h: Remove file.
3372 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
3373 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
3374 legacy_pc_in_sigtramp.
3375 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
3376 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
3377 Remove func_name argument.
3378 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
3379
3380 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
3381 * target.c (update_current_target): Add to_have_steppable_watchpoint.
3382 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
3383 (HAVE_STEPPABLE_WATCHPOINT): Define.
3384
3385 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
3386 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
3387 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
3388 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
3389 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
3390 target_insert_watchpoint, target_remove_watchpoint): Remove.
3391 (FETCH_INFERIOR_REGISTERS): Define.
3392 * ia64-linux-nat.c (ia64_register_addr): Make static.
3393 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
3394 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
3395 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
3396 (ia64_linux_stopped_data_address): Make static. Add target_ops.
3397 (ia64_linux_stopped_by_watchpoint): Make static.
3398 (ia64_linux_can_use_hw_breakpoint): New function.
3399 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
3400 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
3401 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
3402
3403 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
3404
3405 * linespec.c: Include language.h.
3406 (find_methods): Add language parameter. Call
3407 lookup_symbol_in_language. Pass language down.
3408 (add_matching_methods): Likewise. Call
3409 lookup_symbol_in_language.
3410 (add_constructors): Likewise.
3411 (find_method): Pass sym_class to collect_methods.
3412 (collect_methods): Add sym_class parameter. Pass language
3413 down.
3414 * symtab.c (lookup_symbol): Rename to ...
3415 (lookup_symbol_in_language): ... this. Add language
3416 parameter. Use passed language instead of current_language.
3417 (lookup_symbol): New as wrapper around
3418 lookup_symbol_in_language.
3419 (lookup_symbol_aux): Add language parameter. Use passed
3420 language instead of current_language.
3421 (search_symbols): Indent.
3422 * symtab.h (enum language): Forward declare.
3423 (lookup_symbol_in_language): Declare.
3424 (lookup_symbol): Update description.
3425 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
3426 * ada-lang.c (restore_language): Remove.
3427 (lookup_symbol_in_language): Remove.
3428
3429 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
3430
3431 * breakpoint.c (bpstat_num): Add int *num parameter.
3432 * breakpoint.h (bpstat_num): Likewise.
3433 * infcmd.c (continue_command): Adjust to new bpstat_num
3434 interface.
3435 (program_info): Likewise.
3436
3437 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
3438
3439 * config/sh/tm-sh.h: Remove file.
3440 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
3441 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
3442 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
3443 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
3444
3445 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
3446
3447 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
3448 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
3449 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
3450 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
3451 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
3452 sequence if target_shortname is "remote".
3453
3454 2007-03-27 Anton Blanchard <anton@samba.org>
3455
3456 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
3457 instead of wordsize when looking for the LR in a stack frame.
3458
3459 2007-03-27 Andreas Schwab <schwab@suse.de>
3460 Daniel Jacobowitz <dan@codesourcery.com>
3461
3462 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
3463 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
3464 argument. Update all callers.
3465 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
3466 (dwarf2_frame_set_eh_frame_regnum): Rename to...
3467 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
3468 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
3469 (dwarf2_frame_set_adjust_regnum): ...this.
3470 (dwarf2_frame_eh_frame_regnum): Delete prototype.
3471 * rs6000-tdep.c: Include "dwarf2-frame.h".
3472 (rs6000_adjust_frame_regnum): Define.
3473 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
3474 Register rs6000_adjust_frame_regnum.
3475
3476 * Makefile.in (rs6000-tdep.o): Update dependencies.
3477
3478 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
3479
3480 * Makefile.in: Add support for a "pdf" target.
3481
3482 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
3483
3484 * amd64-tdep.c (amd64_init_frame_cache): New function.
3485 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
3486
3487 2007-03-26 Nigel Stephens <nigel@mips.com>
3488 Maciej W. Rozycki <macro@mips.com>
3489
3490 * ui-out.c (ui_out_field_core_addr): Truncate address to
3491 TARGET_ADDR_BIT size before printing.
3492
3493 2007-03-22 Nigel Stephens <nigel@mips.com>
3494 Maciej W. Rozycki <macro@mips.com>
3495
3496 * remote-mips.c (mips_xfer_memory): Update prototype.
3497
3498 2007-03-22 Joel Brobecker <brobecker@adacore.com>
3499
3500 * symfile.h: #include "symtab.h"
3501
3502 2007-03-22 Denis Pilat <denis.pilat@st.com>
3503
3504 * utils.c (pagination_on_command, pagination_off_command):
3505 Remove useless prototypes.
3506
3507 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
3508
3509 Fix PR pascal/2232.
3510 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
3511 instead of TYPE_NAME for object base class name.
3512
3513
3514 2007-03-19 Kevin Buettner <kevinb@redhat.com>
3515
3516 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
3517 Specify frame type in calls to frame_func_unwind().
3518
3519 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
3520
3521 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
3522 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
3523 (refine_prologue_limit): Delete.
3524 (skip_prologue): Don't call it. Use extract_unsigned_integer.
3525 Assume lim_pc is set. Correct check for incomplete prologues.
3526 Do not skip clobbers of the frame pointer.
3527 * symtab.c (skip_prologue_using_sal): Fail if there is only one
3528 sal.
3529
3530 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
3531
3532 * frame.c (frame_pop): Check to see whether there's a frame to
3533 which we can pop first.
3534
3535 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
3536
3537 * MAINTAINERS (Write After Approval): Add myself.
3538
3539 2007-03-09 Markus Deuling <deuling@de.ibm.com>
3540
3541 * infrun.c (breakpoints_failed): Remove unnecessary variable.
3542 (handle_inferior_event): Remove unnecessary braces.
3543 * breakpoint.c (bpstat_what): Remove wrong comment.
3544
3545 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
3546
3547 * spu-tdep.c (spu_in_function_epilogue_p): New function.
3548 (spu_gdbarch_init): Install it.
3549
3550 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
3551
3552 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
3553 object types, not 0.
3554
3555 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
3556
3557 * spu-tdep.c (spu_frame_align): New function.
3558 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
3559
3560 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
3561
3562 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
3563 (spu_software_single_step): Likewise.
3564 (spu_read_pc, spu_write_pc): New functions.
3565 (spu_gdbarch_init): Install them.
3566
3567 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
3568
3569 * cli/cli-dump.c (struct callback_data): load_offset needs to
3570 have signed long type.
3571
3572 2007-03-07 Joel Brobecker <brobecker@adacore.com>
3573
3574 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
3575 Revert the previous change that had some unexpected side-effects
3576 on mips32.
3577 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
3578 function to get the address of the calling instruction.
3579
3580 2007-03-07 Denis Pilat <denis.pilat@st.com>
3581
3582 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
3583 get_selected_frame by deprecated_safe_get_selected_frame.
3584
3585 2007-03-02 Mark Kettenis <kettenis@gnu.org>
3586
3587 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
3588 "gdb_string.h". Don't include "nbsd-tdep.h".
3589 (SIZEOF_STRUCT_REG): Remove.
3590 (SHNBSD_SIZEOF_GREGS): New.
3591 (shnbsd_supply_gregset, shnbsd_collect_gregset)
3592 (shnbsd_regset_from_core_section): New functions.
3593 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
3594 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
3595 shnbsd_supply_gregset, shnbsd_collect_gregset.
3596 (shnbsd_gregset): New variable.
3597 (shnbsd_init_abi): Set regset_from_core_section.
3598 (GDB_OSABI_NETBSD_CORE): New define.
3599 (shnbsd_core_osabi_sniffer): New function.
3600 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
3601 * Makefile.in (shnbsd-tdep.o): Update dependencies.
3602 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
3603 nbsd-tdep.o.
3604 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
3605
3606 2007-02-28 Joel Brobecker <brobecker@adacore.com>
3607
3608 * gdbtypes.c (replace_type): Fix typo that caused us to not update
3609 length of the types referenced by the new type CV ring.
3610
3611 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
3612
3613 * frame.c (frame_pop, frame_observer_target_changed): Call
3614 reinit_frame_cache.
3615 (flush_cached_frames): Rename to reinit_frame_cache and delete
3616 old implementation.
3617 * frame.h (flush_cached_frames): Delete prototype and update comment.
3618
3619 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
3620 reinit_frame_cache instead of flush_cached_frames. Do not call
3621 select_frame after reinit_frame_cache.
3622 * corelow.c (core_open): Likewise.
3623 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
3624 * infrun.c (prepare_to_proceed, context_switch)
3625 (handle_inferior_event): Likewise.
3626 * linux-fork.c (fork_load_infrun_state): Likewise.
3627 * ocd.c (ocd_start_remote): Likewise.
3628 * remote-e7000.c (e7000_start_remote): Likewise.
3629 * remote-mips.c (device): Likewise.
3630 * thread.c (switch_to_thread): Likewise.
3631 * tracepoint.c (finish_tfind_command): Likewise.
3632 * gdbarch.c: Regenerated.
3633
3634 2007-02-28 Jerome Guitton <guitton@adacore.com>
3635 Joel Brobecker <brobecker@adacore.com>
3636
3637 * gdbtypes.c (check_typedef): Do not replace stub type if
3638 the resolved type is not defined in the same objfile.
3639
3640 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
3641
3642 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
3643
3644 2007-02-28 Joel Brobecker <brobecker@adacore.com>
3645
3646 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
3647 symbol for Ada units when the symbol is defined using 't' rather
3648 than 'Tt' as symbol descriptor.
3649
3650 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3651
3652 * config/mips/tm-nbsd.h: Delete file.
3653 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
3654 * config/sh/tm-nbsd.h: Delete file.
3655 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
3656
3657 2007-02-28 Joel Brobecker <brobecker@adacore.com>
3658
3659 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
3660 unused WRONG_PARAM value since it was recently deleted.
3661
3662 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
3663
3664 * varobj.c (varobj_update): Free temporary vectors.
3665
3666 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3667
3668 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
3669 * config/powerpc/tm-linux.h: Delete file.
3670 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
3671 (PROCESS_LINENUMBER_HOOK): Do not undefine.
3672 (TEXT_SEGMENT_BASE): Do not redefine.
3673 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
3674 from config/rs6000/tm-rs6000.h.
3675 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
3676 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
3677 (TEXT_SEGMENT_BASE): Remove.
3678 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
3679 (rs6000_in_solib_return_trampoline): Remove.
3680 (SKIP_TRAMPOLINE_CODE): Remove.
3681 (rs6000_skip_trampoline_code): Remove.
3682 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
3683 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
3684 (FP0_REGNUM): Remove.
3685 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
3686 (rs6000_set_host_arch_hook): Remove.
3687 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
3688 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
3689 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
3690 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
3691 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
3692 * rs6000-nat.c: Include "rs6000-tdep.h".
3693 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
3694 (set_host_arch): Rename to ...
3695 (rs6000_create_inferior): ... this. Make public.
3696 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
3697 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
3698 (rs6000_create_inferior): Remove.
3699 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
3700 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
3701 set_gdbarch_in_solib_return_trampoline, and
3702 set_gdbarch_skip_trampoline_code.
3703 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
3704 from config/rs6000/tm-rs6000.h.
3705
3706 2007-02-27 Joel Brobecker <brobecker@adacore.com>
3707
3708 * buildsym.c (record_producer): Do nothing if no producer is provided.
3709
3710 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
3711
3712 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
3713 to check changelist is non-NULL. Call error if the frontend tries
3714 to update a non-root variable.
3715
3716 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
3717
3718 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
3719
3720 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
3721 (dwarf2_frame_sniffer): Update.
3722 (dwarf2_signal_frame_this_id): New function.
3723 (dwarf2_signal_frame_unwind): Use it.
3724 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
3725 * frame.c (frame_func_unwind): Add this_type argument.
3726 (get_frame_func): Update.
3727 (frame_unwind_address_in_block): Add this_type argument and check it.
3728 Fix a typo.
3729 (get_frame_address_in_block): Update.
3730 * frame.h (enum frame_type): Move higher in the file.
3731 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
3732 argument.
3733
3734 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
3735 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
3736 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
3737 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
3738 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
3739 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
3740 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
3741 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
3742 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
3743 frame_func_unwind and frame_unwind_address_in_block to specify
3744 the frame type. Use frame_unwind_address_in_block instead of
3745 frame_pc_unwind in sniffers.
3746
3747 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
3748
3749 * frame.c (deprecated_selected_frame): Rename to...
3750 (selected_frame): ...this. Make static.
3751 (get_selected_frame, select_frame): Update.
3752 * frame.h (deprected_select_frame): Delete.
3753 (deprecated_safe_get_selected_frame): Update comments.
3754
3755 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
3756 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
3757 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
3758 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
3759 tui/tui.c: Replace references to deprecated_selected_frame.
3760
3761 2007-02-27 Fred Fish <fnf@specifix.com>
3762
3763 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
3764 directly decrement the stack pointer, accumulate their operand into
3765 the stack offset, and mark the function as not being frameless.
3766
3767 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
3768
3769 * arch-utils.c (selected_byte_order): New.
3770 * arch-utils.h (selected_byte_order): New prototype.
3771 * remote-sim.c (gdbsim_open): Use selected_byte_order.
3772
3773 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
3774
3775 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
3776 (default_symfile_offsets): Check VMA here. Update section VMAs.
3777
3778 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
3779
3780 * remote.c (init_remote_state): Add special handling for placeholder
3781 registers.
3782
3783 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
3784
3785 * Makefile.in (XMLFILES): Include $(TDEP_XML).
3786 (filenames_h): New variable.
3787 (clean): Clean up xml-builtin.c and stamp-xml.
3788 (arm-linux-nat.o): Update.
3789 * config/arm/linux.mh (TDEP_XML): Define.
3790 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
3791 (arm_linux_has_wmmx_registers): New.
3792 (GET_THREAD_ID): Fix typo.
3793 (IWMMXT_REGS_SIZE): Define.
3794 (fetch_wmmx_regs, store_wmmx_regs): New.
3795 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
3796 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
3797 (super_xfer_partial, arm_linux_xfer_partial): New.
3798 (_initialize_arm_linux_nat): Use them.
3799 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
3800 (xml_builtin_xfer_partial): New function.
3801 * xml-support.h (xml_builtin_xfer_partial): New prototype.
3802 * NEWS: Update mention of iWMMXt support.
3803
3804 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
3805
3806 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
3807 if there are no FPA registers.
3808 (arm_dwarf_reg_to_regnum): New function.
3809 (arm_register_type, arm_register_name): Return minimal values for
3810 unsupported registers.
3811 (arm_register_sim_regno): Handle iWMMXt registers.
3812 (arm_gdbarch_init): Record missing FPA registers if indicated by
3813 a target description. Recognize iWMMXt registers. Only register
3814 "info float" for FPA. Use ARM_NUM_REGS. Register
3815 arm_dwarf_reg_to_regnum.
3816 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
3817 constants.
3818 (struct gdbarch_tdep): Add have_fpa_registers.
3819 * features/xscale-iwmmxt.xml: Update capitalization.
3820 * regformats/arm-with-iwmmxt.dat: Regenerated.
3821
3822 2007-02-24 Kevin Buettner <kevinb@redhat.com>
3823
3824 * NEWS (New targets): Add entry for the Toshiba Media Processor.
3825
3826 2007-02-23 Kevin Buettner <kevinb@redhat.com>
3827
3828 * MAINTAINERS (mep): New target.
3829
3830 2007-02-23 Kevin Buettner <kevinb@redhat.com>
3831
3832 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
3833 Richard Sandiford:
3834 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
3835 (mep-tdep.o): New rule.
3836 * configure.tgt (mep-*-*): New target.
3837 * mep-tdep.c: New file.
3838 * config/mep/mep.mt: New file.
3839
3840 2007-02-22 Markus Deuling <deuling@de.ibm.com>
3841
3842 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
3843 BREAKPOINT_HIT and STOP_UNKNOWN.
3844
3845 2007-02-22 Markus Deuling <deuling@de.ibm.com>
3846
3847 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
3848
3849 2007-02-20 Joel Brobecker <brobecker@adacore.com>
3850
3851 * gdb_expat.h (XMLCALL): Define if not already defined.
3852
3853 2007-02-20 Andreas Schwab <schwab@suse.de>
3854
3855 * Makefile.in (symfile.o): Update dependencies.
3856
3857 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
3858
3859 * MAINTAINERS: Disable -Werror for cris simulator. Build
3860 sparc64-solaris2.10 instead of the broken sparc-elf.
3861 * solib-frv.c: Include "solib.h".
3862 * Makefile.in (solib-frv.o): Update.
3863 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
3864 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
3865 (xtensa_frame_this_id, xtensa_frame_prev_register)
3866 (xtensa_push_dummy_call): Use %p.
3867
3868 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
3869
3870 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
3871 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
3872 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
3873 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
3874 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
3875 (sparc-linux-tdep.o): Update.
3876
3877 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
3878
3879 * xtensa-tdep.h (xtensa_reg_mask_t): New.
3880 (xtensa_mask_t): Change mask field to be a separate array.
3881 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
3882 (xtensa_pseudo_register_write, xtensa_unwind_pc)
3883 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
3884 (xtensa_breakpoint_from_pc): Remove implicit type casting.
3885 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
3886 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
3887 (mask14, mask15): Rename to
3888 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
3889 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
3890 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
3891 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
3892 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
3893 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
3894 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
3895 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
3896 (xtensa_submask14, xtensa_submask15): New.
3897 (rmap): Follow strict aliasing rules doing static initialization.
3898
3899 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
3900
3901 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
3902 handling from here...
3903 (tdesc_register_type): ...to here.
3904 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
3905 * features/arm-core.xml: Use code_ptr and data_ptr.
3906
3907 2007-02-13 Denis Pilat <denis.pilat@st.com>
3908
3909 * varobj.h (enum varobj_update_error): New enum.
3910 * varobj.c (struct varobj_root): Add is_valid member.
3911 (varobj_get_type): Check for invalid varobj.
3912 (varobj_get_attributes): Likewise.
3913 (variable_editable):Likewise.
3914 (varobj_update): Likewise. Use varobj_update_error.
3915 (new_root_variable): Set root varobj as valid by default.
3916 (varobj_invalidate): New function.
3917 * symfile.c (clear_symtab_users): Use varobj_invalidate.
3918 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
3919 Use varobj_update_error.
3920
3921 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
3922
3923 Fix PR pascal/2223.
3924 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
3925 Pascal language marker.
3926 * dwarf2read.c (set_cu_language): Likewise.
3927
3928 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
3929
3930 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
3931 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
3932 instead of target_terminal_init since inferior_ptid isn't set yet.
3933
3934 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
3935
3936 * MAINTAINERS (Write After Approval): Add myself.
3937
3938 2007-02-09 Fred Fish <fnf@specifix.com>
3939
3940 Based on work by Apple Computer, Inc.
3941 * event-top.c (async_request_quit): Call quit() whenever either
3942 quit_flag is set or immediate_quit is set.
3943
3944 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
3945
3946 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
3947 type to a pointer to const struct block.
3948 (ada_lookup_symbol_list): Don't cast away constness when calling
3949 remove_out_of_scope_renamings.
3950
3951 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
3952
3953 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
3954 address of 'filename'; it is always non null.
3955
3956 2007-02-09 Joel Brobecker <brobecker@adacore.com>
3957
3958 * exec.c (add_to_section_table): Do not discard empty sections.
3959
3960 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
3961
3962 * features/Makefile, features/arm-with-iwmmxt.xml,
3963 features/gdbserver-regs.xsl, features/number-regs.xsl,
3964 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
3965 * regformats/arm-with-iwmmxt.dat: Generate.
3966 * NEWS: Mention iWMMXt.
3967
3968 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
3969
3970 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
3971 (xml-tdesc.o): Update.
3972 * xml-support.c: Add a comment.
3973 (gdb_xml_enums_boolean): New variable.
3974 (gdb_xml_parse_attr_enum): Use strcasecmp.
3975 * xml-support.h (gdb_xml_enums_boolean): Declare.
3976 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
3977 next_regnum, and current_union.
3978 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
3979 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
3980 (field_attributes, union_children, reg_attributes, union_attributes)
3981 (vector_attributes, feature_attributes, feature_children): New.
3982 (target_children): Make static. Add <feature>.
3983 (tdesc_elements): Make static.
3984 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
3985 (struct tdesc_feature, tdesc_feature_p): New types.
3986 (struct target_desc): Add features member.
3987 (struct tdesc_arch_data, tdesc_data): New.
3988 (target_find_description): Clarify error message. Warn about
3989 ignored register descriptions.
3990 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
3991 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
3992 (tdesc_data_cleanup, tdesc_numbered_register)
3993 (tdesc_numbered_register_choices, tdesc_find_register)
3994 (tdesc_register_name, tdesc_register_type)
3995 (tdesc_remote_register_number, tdesc_register_reggroup_p)
3996 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
3997 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
3998 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
3999 (tdesc_create_feature, tdesc_record_type): New.
4000 (free_target_description): Free features.
4001 (_initialize_target_descriptions): Initialize tdesc_data.
4002 * arch-utils.c (default_remote_register_number): New.
4003 * arch-utils.h (default_remote_register_number): New prototype.
4004 * target-descriptions.h (set_tdesc_pseudo_register_name)
4005 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
4006 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
4007 (tdesc_numbered_register, tdesc_numbered_register_choices)
4008 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
4009 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
4010 (tdesc_create_reg): Declare.
4011 * gdbarch.sh (remote_register_number): New entry.
4012 * gdbarch.c, gdbarch.h: Regenerate.
4013 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
4014 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
4015
4016 * arm-tdep.c (arm_register_aliases): New.
4017 (arm_register_name_strings): Rename to...
4018 (arm_register_names): ...this. Make const. Delete the old version.
4019 (current_option, arm_register_byte): Delete.
4020 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
4021 (value_of_arm_user_reg): New.
4022 (arm_gdbarch_init): Verify any described registers. Call
4023 tdesc_use_registers. Don't use arm_register_byte. Create aliases
4024 for standard register names.
4025 (_initialize_arm_tdep): Do not adjust arm_register_names.
4026 * user-regs.c (struct user_reg): Add baton member.
4027 (append_user_reg, user_reg_add_builtin, user_regs_init)
4028 (user_reg_add, value_of_user_reg): Use a baton for user
4029 register functions.
4030 * std-regs.c: Update.
4031 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
4032 (user_reg_add): Add baton argument.
4033 * NEWS: Mention target description register support.
4034 * features/arm-core.xml, features/arm-fpa.xml: New.
4035 * eval.c (evaluate_subexp_standard): Allow ptype $register
4036 when the program is not running.
4037
4038 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
4039
4040 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
4041
4042 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
4043
4044 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
4045 info->disassembler_options to "any".
4046
4047 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
4048
4049 * varobj.c (install_new_value): Only call value_get_print_value
4050 if changeable.
4051
4052 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
4053
4054 Reported by timeless@gmail.com:
4055 * gdb/target.c (target_flash_erase): Do not return void value.
4056 (target_flash_done): Likewise.
4057 * gdb/cli/cli-cmds.c (source_command): Likewise.
4058
4059 2007-02-08 Fred Fish <fnf@specifix.com>
4060
4061 Based on work by Apple Computer, Inc.
4062 * event-top.c (handle_sigint): Set quit_flag.
4063 (async_request_quit): Don't set quit_flag. Avoid calling quit()
4064 if quit_flag has already been reset.
4065
4066 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
4067
4068 * ser-mingw.c (pipe_windows_close): Move variable initialization back
4069 up.
4070
4071 2007-02-08 Fred Fish <fnf@specifix.com>
4072
4073 * defs.h (request_quit): Remove declaration.
4074 * utils.c (request_quit): Remove definition.
4075
4076 2007-02-08 Joel Brobecker <brobecker@gnat.com>
4077 Jan Kratochvil <jan.kratochvil@redhat.com>
4078 Daniel Jacobowitz <dan@codesourcery.com>
4079
4080 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
4081 (skip_prologue): Allow bl->blrl used by PIC code.
4082
4083 2007-02-08 Mark Kettenis <kettenis@gnu.org>
4084 Daniel Jacobowitz <dan@codesourcery.com>
4085
4086 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
4087 initialize tmp_obstack.
4088 * p-valprint.c (pascal_object_print_value_fields)
4089 (pascal_object_print_value): Likewise.
4090
4091 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
4092
4093 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
4094
4095 2007-02-08 Mark Kettenis <kettenis@gnu.org>
4096
4097 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
4098 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
4099
4100 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
4101
4102 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
4103 (xml_cache): New.
4104 (tdesc_parse_xml): Cache expanded descriptions.
4105
4106 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
4107
4108 * Makefile.in (XMLFILES): New.
4109 (COMMON_OBS): Add xml-builtin.o.
4110 (xml-builtin.c, stamp-xml): New rules.
4111 (xml-tdesc.o): Update.
4112 * features/feature_to_c.sh: New file.
4113 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
4114 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
4115 (gdb_xml_start_element): Initialize scope after possibly reallocating
4116 scopes. Move cleanup later. Handle the XInclude description
4117 specially.
4118 (gdb_xml_end_element): Only parse the body if there is a current element.
4119 Call XML_DefaultCurrent if there is no element.
4120 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
4121 (struct xinclude_parsing_data, xinclude_start_include)
4122 (xinclude_end_include, xml_xinclude_default)
4123 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
4124 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
4125 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
4126 * xml-support.h (xml_fetch_another, xml_process_xincludes)
4127 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
4128 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
4129 XInclude directives. Use the compiled in DTD.
4130 (fetch_xml_from_file): Add baton argument. Treat it as a containing
4131 directory name. Do not warn here.
4132 (file_read_description_xml): Update call. Warn here instead. Pass
4133 a dirname as baton.
4134 (fetch_available_features_from_target): New.
4135 (target_read_description_xml): Use it.
4136 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
4137 to handle XInclude.
4138 * features/xinclude.dtd: New file.
4139
4140 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
4141
4142 * linux-thread-db.c (check_for_thread_db): Return early if we have
4143 no libthread_db support.
4144
4145 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
4146
4147 * mi/mi-parse.h: Include <sys/time.h>.
4148
4149 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
4150
4151 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
4152 instead of print_variable_value to print values.
4153
4154 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
4155
4156 * mi/mi-main.c: Numerous formatting changes.
4157 (mi_cmd_data_write_register_values): Replace clause inadvertantly
4158 removed in my previous change.
4159
4160 2007-02-03 Eli Zaretskii <eliz@gnu.org>
4161
4162 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
4163 Use 1000000L instead of 1000000.
4164
4165 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
4166
4167 Based on work by Apple Computer, Inc.
4168
4169 * configure.ac: Test for sys/resource.h and getrusage.
4170 * configure, config.in: Regenerate.
4171
4172 * mi/mi-main.c: Include <sys/resource.h> if present.
4173 (rusage): Declare if HAVE_GETRUSAGE.
4174 (current_command_ts, do_timings): New static variables.
4175 (timestamp, print_diff_now, print_diff, timeval_diff):
4176 New static timing functions.
4177 (mi_cmd_enable_timings): New function for new MI command.
4178 (captured_mi_execute_command, mi_execute_async_cli_command):
4179 Call timing functions.
4180
4181 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
4182 -enable-timings.
4183
4184 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
4185
4186 * mi/mi-parse.h: (mi_timestamp): New structure.
4187 (mi_parse): Add mi_timestamp* member.
4188
4189 2007-02-02 Denis Pilat <denis.pilat@st.com>
4190
4191 * thread.c (make_cleanup_restore_current_thread): New function.
4192 (info_threads_command): Use of make_cleanup_restore_current_thread
4193 to restore the current thread and the selected frame.
4194 (restore_selected_frame): New function.
4195 (struct current_thread_cleanup): Add frame_id field.
4196 (do_restore_current_thread_cleanup): Add restoring of the selected
4197 frame.
4198 (make_cleanup_restore_current_thread): Likewise.
4199 (thread_apply_all_command): backup the selected frame while
4200 entering the function and restore it at exit.
4201 (thread_apply_command): Likewise.
4202
4203 2007-02-02 Denis Pilat <denis.pilat@st.com>
4204
4205 * MAINTAINERS (Write After Approval): Add myself to the list.
4206
4207 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4208
4209 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
4210 (m32r_store_register): Ditto.
4211
4212 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
4213
4214 * ser-mingw.c (pipe_windows_open)
4215 (pipe_windows_read, pipe_windows_write): Declare
4216 variables at the top of the function.
4217
4218 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
4219
4220 * doublest.c (floatformat_from_length): Use the right element from
4221 gdbarch floatformats.
4222 (floatformat_from_type, extract_typed_floating)
4223 (store_typed_floating): Likewise.
4224 * doublest.h: Remove declarations for undefined floatformat arrays.
4225 * gdbarch.sh (float_format, double_format, long_double_format): Change
4226 to pairs.
4227 (pformat): Update for pairs.
4228 * gdbarch.c, gdbarch.h: Regenerated.
4229 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
4230 (floatformats_ieee_double_littlebyte_bigword)
4231 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
4232 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
4233 (floatformats_vax_d): New variables.
4234 (builtin_type_ieee_single, builtin_type_ieee_double)
4235 (builtin_type_arm_ext, builtin_type_ia64_spill)
4236 (builtin_type_ia64_quad): Replace arrays with individual types.
4237 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
4238 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
4239 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
4240 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
4241 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
4242 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
4243 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
4244 unused and endian-specific types.
4245 (recursive_dump_type): Update for floatformat pairs.
4246 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
4247 (build_gdbtypes): Use build_flt.
4248 (_initialize_gdbtypes): Update set of initialized types.
4249 * gdbtypes.h: Update declarations to match gdbtypes.c.
4250 (struct main_type): Store a pointer to two floatformats.
4251 * arch-utils.c (default_float_format, default_double_format): Delete.
4252 * arch-utils.h (default_float_format, default_double_format): Delete.
4253
4254 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
4255 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
4256 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
4257 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
4258 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
4259
4260 2007-01-29 Joel Brobecker <brobecker@adacore.com>
4261
4262 * target.c (maintenance_print_target_stack): New function.
4263 (initialize_targets): Add new "maintenance print target-stack"
4264 command.
4265
4266 2007-01-28 Mark Kettenis <kettenis@gnu.org>
4267
4268 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
4269
4270 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
4271
4272 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
4273 (struct dwarf2_loclist_baton): Likewise.
4274
4275 2007-01-27 Eli Zaretskii <eliz@gnu.org>
4276
4277 * cli/cli-script.c: Include breakpoint.h.
4278 (build_command_line): Require arguments only for if and while
4279 commands.
4280 (get_command_line, execute_user_command, execute_control_command):
4281 Fix wording of warning messages.
4282 (print_command_lines): Print breakpoint commands.
4283 (execute_control_command): Call commands_from_control_command to
4284 handle the `commands' command inside a body of a flow-control
4285 command.
4286 (read_next_line): Recognize the `commands' command and build a
4287 command line structure for it.
4288 (recurse_read_control_structure, read_command_lines): Handle
4289 `commands' similarly to `if' and `while'.
4290
4291 * breakpoint.c (get_number_trailer): Document the special meaning
4292 of NULL as the first argument PP.
4293 (commands_from_control_command): New function.
4294
4295 * breakpoint.h (commands_from_control_command): Add prototype.
4296
4297 * defs.h (commands_control): New enumerated value for enum
4298 command_control_type.
4299
4300 2007-01-26 Joel Brobecker <brobecker@adacore.com>
4301
4302 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
4303 (ada_exception_sal): Update accordingly.
4304
4305 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4306
4307 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
4308 * NEWS: Describe CHAR array vs. string identifcation rules.
4309
4310 2007-01-25 Paul Brook <paul@codesourcery.com>
4311
4312 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
4313
4314 2007-01-24 Jim Blandy <jimb@codesourcery.com>
4315
4316 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
4317 expression is empty, bother to return the 'optimized out' value we
4318 construct. (Thanks to Carl Burch.)
4319
4320 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
4321
4322 * varobj.c (c_value_of_root, c_value_of_child)
4323 (cplus_describe_child): Don't call release_value.
4324
4325 2007-01-24 Thiemo Seufer <ths@mips.com>
4326
4327 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
4328 initialization.
4329
4330 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
4331
4332 Refactor getting children name, value and type access
4333 for varobjs in C++.
4334 * varobj.c (get_type_deref): Remove.
4335 (adjust_value_for_child_access): New.
4336 (c_number_of_children): Use the above.
4337 (c_describe_child): Likewise.
4338 (enum accessibility): New.
4339 (match_accessibility): New function.
4340 (cplus_describe_child): New function.
4341 (cplus_name_of_child, cplus_value_of_child)
4342 (cplus_type_of_child): Reimplement in terms
4343 of cplus_describe_child.
4344 (cplus_number_of_children): Use
4345 adjust_value_for_child_access.
4346
4347 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
4348
4349 Fix computation of the 'editable' attribute and
4350 value changeability for for references.
4351 * varobj.c (get_value_type): New function.
4352 (c_variable_editable): Use get_value_type.
4353 (varobj_value_is_changeable): Likewise.
4354
4355 2007-01-24 Joel Brobecker <brobecker@adacore.com>
4356
4357 * source.c (find_and_open_source): Try rewriting the source
4358 path inside filename if dirname is NULL.
4359
4360 2007-01-24 Joel Brobecker <brobecker@adacore.com>
4361
4362 * dwarf2read.c (add_partial_symbol): Create an extra partial
4363 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
4364 (new_symbol): Likewise for symbols.
4365
4366 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
4367
4368 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
4369
4370 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
4371
4372 * value.c (value_primitive_field): Copy the full 'location'
4373 contents, instead of assuming that copying ADDRESS will
4374 bring over everything in the union. Remove obsolete comment.
4375
4376 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
4377
4378 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
4379 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
4380 (m32c_m16c_pointer_to_address): Separate code from declarations.
4381
4382 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
4383
4384 * target.c (update_current_target): Correct typo.
4385
4386 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
4387
4388 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
4389 declaration.
4390
4391 2007-01-11 Andrew Cagney <cagney@redhat.com>
4392 Daniel Jacobowitz <dan@codesourcery.com>
4393 Jan Kratochvil <jan.kratochvil@redhat.com>
4394
4395 * dwarf2-frame.c (execute_cfa_program): New support of
4396 `DW_CFA_GNU_negative_offset_extended'.
4397
4398 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
4399
4400 * NEWS: Mention flash support for "load" and new remote packets.
4401
4402 2007-01-21 Markus Deuling <deuling@de.ibm.com>
4403
4404 * breakpoint.c (delete_command): Skip redundant loop iterations.
4405
4406 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
4407
4408 * gdbarch.sh (register_type): Update comment.
4409 * gdbarch.h: Regenerated.
4410 * arch-utils.c (generic_register_size): Call register_type.
4411 * ia64-tdep.c (ia64_extract_return_value): Likewise.
4412 * m32c-tdep.c (check_for_saved): Likewise.
4413 * mips-tdep.c (mips_print_register, print_gp_register_row)
4414 (mips_print_registers_info): Likewise.
4415 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
4416 Likewise.
4417 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
4418 (sh64_do_register, sh64_print_register)
4419 (sh64_media_print_registers_info): Likewise.
4420 * tui/tui-regs.c (tui_register_format): Likewise.
4421
4422 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
4423
4424 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
4425
4426 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
4427 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
4428 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
4429 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4430 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
4431 (make_symbol_completion_list): Likewise.
4432
4433 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4434 Daniel Jacobowitz <dan@codesourcery.com>
4435
4436 * buildsym.c (end_symtab): Use preallocated symtab if available.
4437 Fill in SYMBOL_SYMTAB.
4438 * buildsym.h (struct subfile): Add symtab member.
4439 * dwarf2read.c (struct dwarf2_cu): Add line_header.
4440 (struct file_entry): Add symtab.
4441 (free_cu_line_header): New function.
4442 (read_file_scope): Use it. Save line_header in the cu. Process
4443 lines before DIEs.
4444 (add_file_name): Initialize new symtab member.
4445 (dwarf_decode_lines): Create symtabs for included files.
4446 (new_symbol): Set SYMBOL_SYMTAB.
4447 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
4448 (search_symbols): Likewise.
4449 * symtab.h (struct symbol): Add symtab member.
4450 (SYMBOL_SYMTAB): Define.
4451
4452 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
4453
4454 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
4455
4456 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
4457
4458 * arch-utils.c (show_endian): Correct reversed condition.
4459
4460 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4461
4462 * MAINTAINERS (Write After Approval): Add myself.
4463
4464 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
4465 Vladimir Prus <vladimir@codesourcery.com>
4466
4467 Fix 'selected frame' varobjs.
4468 * varobj.c (struct varobj): Remove the error field.
4469 (varobj_set_value): Don't check var->error.
4470 (install_new_value): Don't set var->error.
4471 (varobj_update): Always pass the new value
4472 of the root via install_new_value.
4473 (create_child): Don't set error field.
4474 (new_variable): Likewise.
4475 (c_value_of_root): Always reevaluate the value
4476 of selected frame varobjs in the selected frame.
4477 Don't call reinit_frame_cache.
4478
4479 2007-01-15 Joel Brobecker <brobecker@adacore.com>
4480
4481 * source.c (_initialize_source): Improve the help text of
4482 the substitute-path commands.
4483
4484 2007-01-14 Mark Kettenis <kettenis@gnu.org>
4485
4486 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
4487 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
4488 (frv_skip_prologue): Remove prototypes.
4489 (frv_adjust_breakpoint_address): Renamed from
4490 frv_gdbarch_adjust_breakpoint_address.
4491 (frv_gdbarch_init): Adjust.
4492
4493 2007-01-13 Mark Kettenis <kettenis@gnu.org>
4494
4495 * gdbarch.sh (deprecated_extract_return_value)
4496 (deprecated_store_return_value): Remove.
4497 (extract_return_value, store_return_value): Remove default values.
4498 * gdbarch.c, gdbarch.h: Regenerate.
4499 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
4500 (legacy_store_return_value): Remove.
4501 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
4502 Remove.
4503
4504 * mi/mi-main.c: Remove obsolete comment.
4505
4506 * regcache.c, regcache.h (deprecated_register_bytes)
4507 (deprecated_read_register_bytes)
4508 (deprecated_write_register_bytes): Remove.
4509
4510 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
4511 Don't forget to move destination pointer.
4512
4513 2007-01-01 Mark Kettenis <kettenis@gnu.org>
4514
4515 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
4516
4517 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
4518
4519 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
4520 past entry function with recent newlib.
4521
4522 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
4523
4524 * gdb.texinfo (GDB/MI Variable Objects): Improve the
4525 introduction. Specify -var-update more exactly.
4526
4527 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
4528
4529 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
4530
4531 2007-01-10 Jim Blandy <jimb@codesourcery.com>
4532
4533 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
4534 the Global Maintainers' invitation to be a global maintainer.
4535
4536 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
4537
4538 * infrun.c (singlestep_pc): New variable.
4539 (resume): Set singlestep_pc.
4540 (context_switch): Add a debugging message. Flush the frame cache.
4541 (handle_inferior_event): Add debugging messages. Handle thread
4542 hops when a software single step has completed. Let context_switch
4543 handle flushing the frame cache.
4544
4545 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
4546
4547 * NEWS: Mention target descriptions, "set tdesc filename",
4548 "unset tdesc filename", "show tdesc filename", and
4549 qXfer:features:read.
4550 * arch-utils.c (choose_architecture_for_target): New function.
4551 (gdbarch_info_fill): Call it.
4552 * target-descriptions.c (struct property): Make members non-const.
4553 (struct target_desc): Add arch member.
4554 (target_description_filename): New variable.
4555 (target_find_description): Try via XML first.
4556 (tdesc_architecture): New.
4557 (free_target_description, make_cleanup_free_target_description): New.
4558 (set_tdesc_property): Call xstrdup.
4559 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
4560 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
4561 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
4562 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
4563 * target-descriptions.h (tdesc_architecture)
4564 (make_cleanup_free_target_description, set_tdesc_architecture): New
4565 prototypes.
4566 * Makefile.in (SFILES): Add xml-tdesc.c.
4567 (COMMON_OBS): Add xml-tdesc.o.
4568 (target-descriptions.o): Update.
4569 (xml-tdesc.o): New rule.
4570 * xml-tdesc.c, xml-tdesc.h: New files.
4571 * remote.c (PACKET_qXfer_features): New enum.
4572 (remote_protocol_features): Add qXfer:features:read.
4573 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
4574 (_initialize_remote): Register qXfer:features:read.
4575 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
4576 * features/gdb-target.dtd: New file.
4577
4578 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
4579
4580 * copyright.sh: Clarify error.
4581
4582 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4583
4584 * symtab.c (matching_bfd_sections): Fix VMA matching for
4585 prelinked objects.
4586
4587 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4588
4589 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
4590 nested symbols.
4591
4592 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
4593
4594 Updated copyright notices for most files.
4595
4596 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
4597
4598 * copyright.sh (prunes): Add step-line.inp and step-line.c.
4599
4600 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
4601
4602 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
4603 exec_prefix.
4604 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
4605 '${prefix}'.
4606 * configure, config.in: Regenerate.
4607 * defs.h (debug_file_directory): Declare.
4608 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
4609 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
4610 relocate it if DEBUGDIR_RELOCATABLE.
4611 * symfile.c (debug_file_directory): Make non-static.
4612 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
4613 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
4614 (_initialize_symfile): Don't initialize debug_file_directory here.
4615
4616 2007-01-09 Jim Blandy <jimb@codesourcery.com>
4617
4618 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
4619 statements.
4620
4621 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
4622
4623 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
4624 frame_unwind_register to recurse.
4625 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
4626 (alpha_heuristic_frame_prev_register): Likewise.
4627 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
4628 * m32c-tdep.c (m32c_prev_register): Likewise.
4629 * frame.c (frame_register_unwind_location): Remove FIXME.
4630
4631 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
4632 Eli Zaretskii <eliz@gnu.org>
4633
4634 * copyright.sh: New file.
4635
4636 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
4637
4638 * configure.ac: Check for XML_StopParser.
4639 * xml-support.c (gdb_xml_body_text): Check for an error.
4640 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
4641 (gdb_xml_end_element_wrapper): Likewise.
4642 * config.in, configure: Regenerated.
4643
4644 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
4645
4646 * varobj.c (install_new_value): Always update print_value.
4647 (value_get_print_value): Immediately return NULL for missing
4648 values.
4649
4650 2007-01-08 Jim Blandy <jimb@codesourcery.com>
4651
4652 * configure.ac: Tighten pattern for extracting value of
4653 DEPRECATED_TM_FILE from the target makefile fragment.
4654 * configure: Regenerated.
4655
4656 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
4657
4658 * linux-nat.c (struct simple_pid_list): Add status.
4659 (add_to_pid_list): Record the PID's status.
4660 (linux_record_stopped_pid): Likewise. Make static.
4661 (pull_pid_from_list): Return the saved status.
4662 (linux_nat_handle_extended): Deleted.
4663 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
4664 Make static. Handle non-SIGSTOP for a new thread's first signal.
4665 (flush_callback): Handle unexpected pending signals.
4666 (linux_nat_wait): Update calls to changed functions.
4667 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
4668 Remove prototypes for newly static functions.
4669
4670 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
4671
4672 * gdbarch.sh (value_from_register): New gdbarch function.
4673 * gdbarch.c, gdbarch.h: Regenerate.
4674 * findvar.c (default_value_from_register): New function.
4675 (value_from_register): Use gdbarch_value_from_register.
4676 * value.h (default_value_from_register): Declare.
4677 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
4678 spu_value_to_register): Remove.
4679 (spu_value_from_register): New function.
4680 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
4681 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
4682 Call set_gdbarch_value_from_register.
4683 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
4684 s390_value_to_register): Remove.
4685 (s390_value_from_register): New function.
4686 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
4687 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
4688 Call set_gdbarch_value_from_register.
4689
4690 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
4691
4692 * NEWS: Add "set sysroot" and "show sysroot".
4693 * solib.c (solib_absolute_prefix): Delete. Replace
4694 all uses with gdb_sysroot.
4695 (_initialize_solib): Add "set sysroot" and "show sysroot".
4696 Make "solib-absolute-prefix" an alias to it.
4697
4698 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
4699
4700 * frame.c (get_frame_register_bytes): New function.
4701 (put_frame_register_bytes): Likewise.
4702 * frame.h (get_frame_register_bytes): Declare.
4703 (put_frame_register_bytes): Likewise.
4704 * findvar.c (value_from_register): Always construct lval_register
4705 values. Use get_frame_register_bytes.
4706 * valops.c (value_assign): Use get_frame_register_bytes and
4707 put_frame_register_bytes.
4708
4709 2007-01-08 Jim Blandy <jimb@codesourcery.com>
4710
4711 * MAINTAINERS: Update Stan Shebs' email address.
4712
4713 2007-01-07 Joel Brobecker <brobecker@adacore.com>
4714
4715 * ada-lang.c (is_known_support_routine): Improve the implementation.
4716
4717 2007-01-06 Joel Brobecker <brobecker@adacore.com>
4718
4719 * ada-lang.c: Add include of source.h.
4720 (is_known_support_routine): Improve the check verifying that the file
4721 associated to this frame exists.
4722 * Makefile.in (ada-lang.o): Add dependency on source.h.
4723
4724 2007-01-07 Jim Blandy <jimb@codesourcery.com>
4725
4726 * ax-general.c (ax_const_l): Select proper opcode for the given
4727 value.
4728
4729 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
4730
4731 * varobj.c (c_value_of_root): Don't select frame if variable
4732 object is out of scope.
4733
4734 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
4735
4736 * varobj.c (struct varobj): New member print_value.
4737 (install_new_value): Compare last printed value with current one
4738 instead of contents.
4739 (new_variable): Initialize var->print_value to NULL.
4740 (free_variable): Free var->print_value.
4741 (value_get_print_value): New function derived from
4742 c_value_of_variable.
4743 (c_value_of_variable): Use value_get_print_value.
4744
4745 2007-01-05 Joel Brobecker <brobecker@adacore.com>
4746
4747 * i386-tdep.c (i386_analyze_stack_align): Add comment.
4748
4749 2007-01-05 Joel Brobecker <brobecker@adacore.com>
4750
4751 * NEWS: Add entries for new catch commands.
4752
4753 2007-01-05 Joel Brobecker <brobecker@adacore.com>
4754
4755 * dwarf2read.c (partial_die_info): Add field has_byte_size.
4756 (add_partial_symbol): Correct identification of external references.
4757 (process_structure_scope): Likewise.
4758 (read_partial_die): Handle DW_AT_byte_size attribute.
4759
4760 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
4761
4762 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
4763
4764 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
4765
4766 * varobj.c (get_type_deref): Fix variable objects for references to
4767 pointers.
4768
4769 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
4770
4771 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
4772 with no symbols.
4773
4774 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
4775
4776 * memory-map.c (struct_memory_map_parsing_data): Remove most
4777 members. Make property_name an array.
4778 (free_memory_map_parsing_data, memory_map_start_element)
4779 (memory_map_end_element, memory_map_character_data): Delete.
4780 (memory_map_start_memory, memory_map_end_memory)
4781 (memory_map_start_property, memory_map_end_property): New functions.
4782 (property_attributes, memory_children, memory_type_enum)
4783 (memory_attributes, memory_map_children, memory_map_elements): New.
4784 (parse_memory_map): Rewrite.
4785 * xml-support.c (debug_xml): New.
4786 (xml_get_required_attribute, xml_get_integer_attribute)
4787 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
4788 Delete.
4789 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
4790 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
4791 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
4792 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
4793 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
4794 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
4795 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
4796 New.
4797 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
4798 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
4799 (enum gdb_xml_element_flag, struct gdb_xml_element)
4800 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
4801 (struct gdb_xml_enum): New.
4802 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
4803 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
4804 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
4805 (xml_get_required_attribute, xml_get_integer_attribute)
4806 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
4807 * Makefile.in (xml_support_h, xml-support.o): Update.
4808
4809 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
4810
4811 * Makefile.in (eval.o): Update dependencies.
4812 * eval.c: Include "ui-out.h" and "exceptions.h".
4813 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
4814 Use value_zero if an error occurs when avoiding side effects.
4815 * varobj.c (c_value_of_root): Initialize new_val.
4816
4817 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
4818
4819 * varobj.c (varobj_list_children): Stop if the number of children is
4820 unknown.
4821 (c_number_of_children):
4822
4823 2007-01-04 Mark Kettenis <kettenis@gnu.org>
4824
4825 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
4826 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
4827 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
4828 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
4829 sizeof, instead of hardcoded constants.
4830
4831 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
4832
4833 * CONTRIBUTE: Use sourceware.org.
4834
4835 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
4836
4837 * buildsym.c (start_subfile): Handle producer.
4838 (record_producer): New function.
4839 * buildsym.h (struct subfile): Include producer.
4840 (record_producer): New prototype.
4841 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
4842 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
4843 armcc_cfa_offsets_reversed.
4844 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
4845 (dwarf2_frame_find_quirks): New function.
4846 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
4847 (decode_frame_entry_1): Record the CIE version. Record the
4848 augmentation. Skip armcc augmentations.
4849 * dwarf2read.c (read_file_scope): Save the producer.
4850 * symtab.h (struct symtab): Rename unused version member to
4851 producer.
4852
4853 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
4854
4855 * configure.ac (build_warnings): Use -Wall and
4856 -Wdeclaration-after-statement.
4857 * configure: Regenerated.
4858
4859 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
4860
4861 Simplify access to variours properties of child
4862 variable objects in C.
4863 * varobj.c (value_struct_element_index): New function.
4864 (c_describe_child): New function.
4865 (c_name_of_child, c_value_of_child)
4866 (c_type_of_child): Rewrite to use c_describe_child.
4867
4868 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
4869
4870 gdb/
4871 * varobj.c: Include "vec.h".
4872 (varobj_p): New typedef, declare vector of those.
4873 (struct varobj): Use vector for the 'children' member.
4874 (child_exists): Remove.
4875 (save_child_in_parent): Remove.
4876 (remove_child_from_parent): Remove.
4877 (struct varobj_child): Remove.
4878 (struct vstack): Remove.
4879 (vpush, vpop): Remove.
4880 (varobj_list_children): Adjust to work work vector.
4881 (varobj_update): Likewise. Use vectors for
4882 working stack and result.
4883 (delete_variable_1): Likewise.
4884 * Makefile.in (varobj.o): Update dependencies.
4885
4886 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
4887
4888 Port from Apple's version.
4889 gdb/
4890 * varobj.c (type_changeable): Rename to...
4891 (varobj_value_is_changeable_p): ...this. Adjust all callers.
4892 (is_root_p): New function. Use it everywhere.
4893
4894 2007-01-04 Jim Blandy <jimb@codesourcery.com>
4895
4896 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
4897 then plain 'fixup'.
4898
4899 2007-01-04 Joel Brobecker <brobecker@adacore.com>
4900
4901 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
4902
4903 2007-01-04 Joel Brobecker <brobecker@adacore.com>
4904
4905 * hpread.c (hpread_type_lookup): Fix compilation failure.
4906
4907 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
4908
4909 * NEWS: New port to S+core.
4910 * MAINTAINERS (Write After Approval, Responsible Maintainers):
4911 Add myself.
4912
4913 * Makefile.in: Add dependencies for S+core files.
4914 * configure.tgt (score*, score-*-*): Add S+core target.
4915 * config/score/embed.mt: New file.
4916 * score-tdep.c: New file.
4917 * score-tdep.h: New file.
4918
4919 2007-01-04 Joel Brobecker <brobecker@adacore.com>
4920
4921 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
4922 the appropriate type rather than a bogus void type.
4923
4924 2007-01-04 Joel Brobecker <brobecker@adacore.com>
4925
4926 * ada-lang.h (ada_find_printable_frame): Remove.
4927 (ada_exception_catchpoint_p, ada_decode_exception_location)
4928 (ada_decode_assert_location): Add declaration.
4929 * ada-lang.c: Add include of annotate.h and valprint.h.
4930 (exception_catchpoint_kind): New enum.
4931 (function_name_from_pc, is_known_support_routine)
4932 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
4933 (ada_exception_name_addr_1, ada_exception_name_addr)
4934 (print_it_exception, print_one_exception, print_mention_exception)
4935 (print_it_catch_exception, print_one_catch_exception)
4936 (print_mention_catch_exception, catch_exception_breakpoint_ops)
4937 (print_it_catch_exception_unhandled)
4938 (print_one_catch_exception_unhandled)
4939 (print_mention_catch_exception_unhandled, print_it_catch_assert)
4940 (print_one_catch_assert, print_mention_catch_assert)
4941 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
4942 (ada_get_next_arg, catch_ada_exception_command_split)
4943 (ada_exception_sym_name, ada_exception_sym_name)
4944 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
4945 (ada_parse_catchpoint_condition, ada_exception_sal)
4946 (ada_decode_exception_location)
4947 (ada_decode_assert_location): New function.
4948 (catch_exception_unhandled_breakpoint_ops): New global variable.
4949 (catch_assert_breakpoint_ops): New global variable.
4950 * breakpoint.c: Add include of ada-lang.h.
4951 (print_one_breakpoint): Do not print the condition for Ada
4952 exception catchpoints.
4953 (create_ada_exception_breakpoint): New function.
4954 (catch_ada_exception_command, catch_assert_command): New function.
4955 (catch_command_1): Add support for the new "catch exception" and
4956 "catch assert" commands.
4957 (_initialize_breakpoint): Add help description for the new catch
4958 commands.
4959 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
4960 valprint.h.
4961 (breakpoint.o): Add dependency on ada-lang.h.
4962
4963 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
4964
4965 * coffread.c (cs_to_section): If bfd_section is found, always
4966 return its section index.
4967 (coff_symtab_read): Determine the minimal_symbol_type using the
4968 bfd_section flags.
4969
4970 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4971 Daniel Jacobowitz <dan@codesourcery.com>
4972
4973 * Makefile.in (top.o): Update.
4974 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
4975 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
4976 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
4977 New.
4978 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
4979
4980 2007-01-03 Mark Kettenis <kettenis@gnu.org>
4981
4982 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
4983 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
4984
4985 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
4986
4987 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
4988 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
4989 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
4990 greater than or equal to zero.
4991 * m2-typeprint.c (m2_array): Likewise.
4992 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4993 * gdbtypes.c (copy_type_recursive): Correct == typo.
4994 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
4995 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
4996 greater than zero.
4997 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
4998 (default_macro_scope): Remove unused variable.
4999 * prologue-value.h (pv_area_find_reg): Don't name an argument
5000 "register".
5001 * remote-fileio.c (remote_fio_func_map): Add missing braces.
5002 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
5003 type.
5004 (cleanup_sigint_signal_handler): Remove casts.
5005 * valprint.c (val_print): Use a volatile local for the modified
5006 argument.
5007 * varobj.c (languages): Remove extra array dimension.
5008 (varobj_create): Correct access to languages array.
5009 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
5010 missing braces.
5011 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
5012 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
5013 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
5014 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
5015 (mi_cmd_data_write_memory): Likewise.
5016 * signals/signals.c (target_signal_to_string): Cast to int before
5017 comparing.
5018 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
5019 Update all callers.
5020
5021 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
5022
5023 * NEWS: Mention pointer to member improvements.
5024 * Makefile.in (gnu-v3-abi.o): Delete special rule.
5025 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
5026 * ada-valprint.c (ada_print_scalar): Update for new type codes.
5027 * c-typeprint.c (c_print_type): Update for new type codes.
5028 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
5029 (c_type_print_base): Likewise.
5030 (c_type_print_args): Rewrite.
5031 * c-valprint.c (c_val_print): Update for new type codes. Remove
5032 support for references to members. Treat methods like functions.
5033 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
5034 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
5035 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
5036 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
5037 (struct cp_abi_ops): Add corresponding members.
5038 * cp-valprint.c (cp_print_class_method): Delete.
5039 (cp_find_class_member): New function.
5040 (cp_print_class_member): Use it. Simplify support for bogus
5041 member pointers.
5042 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
5043 lookup_methodptr_type.
5044 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
5045 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
5046 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
5047 pointer support.
5048 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
5049 references returned by user defined operators.
5050 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
5051 (f_type_print_varspec_suffix): Remove support for member pointers.
5052 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
5053 and adjusted.
5054 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
5055 (lookup_methodptr_type): New.
5056 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
5057 (recursive_dump_type): Update for new types.
5058 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
5059 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
5060 (lookup_memberptr_type, lookup_methodptr_type)
5061 (smash_to_memberptr_type): New prototypes.
5062 (smash_to_method_type): Formatting fix.
5063 (lookup_member_type, smash_to_member_type): Delete prototypes.
5064 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
5065 Do not rely on debug information for the vptr or the method's
5066 enclosing type. Handle function descriptors for IA64.
5067 (gnuv3_virtual_fn_field): Rewrite using the new functions.
5068 (gnuv3_find_method_in, gnuv3_print_method_ptr)
5069 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
5070 (gnuv3_method_ptr_to_value): New.
5071 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
5072 * hpread.c (hpread_type_lookup): Update for new types.
5073 * infcall.c (value_arg_coerce): Likewise.
5074 * m2-typeprint.c (m2_print_type): Remove explicit support
5075 for member pointers.
5076 * m2-valprint.c (m2_val_print): Likewise.
5077 * p-typeprint.c (pascal_type_print_varspec_prefix)
5078 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
5079 * p-valprint.c (pascal_val_print): Likewise.
5080 (pascal_object_print_class_method, pascal_object_print_class_member):
5081 Delete.
5082 * p-lang.h (pascal_object_print_class_method)
5083 (pascal_object_print_class_member): Delete prototypes.
5084 * stabsread.c (read_type): Update for new types.
5085 * typeprint.c (print_type_scalar): Likewise.
5086 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
5087 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
5088 argument. Construct a pointer to member if the address of a
5089 function or data member is requested.
5090 (value_cast_pointers): Don't modify the input value.
5091 (value_cast): Adjust pointer to member handling for new types.
5092 Allow null pointer to member constants. Don't modify the input
5093 value.
5094 (value_ind): Remove pointer to member check. Handle function
5095 descriptors for function pointers.
5096 (value_struct_elt, value_find_oload_method_list, check_field):
5097 Remove pointer to member checks.
5098 * value.c (unpack_long): Allow pointers to data members.
5099 (value_from_longest): Allow member pointers.
5100 * value.h (value_aggregate_elt): Add want_address.
5101 * varobj.c (c_variable_editable): Remove check for members.
5102 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
5103 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
5104 in virtual tables.
5105 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
5106 * c-lang.h (cp_print_class_method): Delete prototype.
5107 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
5108 * mips-tdep.c (mips_gdbarch_init): Likewise.
5109 * gdbarch.c, gdbarch.h: Regenerated.
5110
5111 2007-01-01 Mark Kettenis <kettenis@gnu.org>
5112
5113 * rs6000-tdep.c (rs6000_use_struct_convention)
5114 (rs6000_extract_return_value, rs6000_store_return_value)
5115 (rs6000_extract_struct_value_address): Remove.
5116 (rs6000_return_value): New function.
5117 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
5118 store_return_value, deprecated_extract_struct_value_address and
5119 deprecated_use_struct_convention. Use rs6000_return_value
5120 instead.
5121
5122 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
5123
5124 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
5125 -display-disable, -display-enable, -display-insert and
5126 -display-list.
5127
5128 2007-01-01 Joel Brobecker <brobecker@adacore.com>
5129
5130 * breakpoint.c (remove_breakpoint): Remove dead code.
5131
5132 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
5133
5134 * varobj.c: Include block.h.
5135 (c_value_of_root): Check scope within nested statements.
5136
5137 2007-01-01 Mark Kettenis <kettenis@gnu.org>
5138
5139 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
5140 regcache_cooked_write_signed instead of
5141 deprecated_write_register_bytes.
5142
5143 2007-01-01 Joel Brobecker <brobecker@adacore.com>
5144
5145 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
5146
5147 2007-01-01 Joel Brobecker <brobecker@adacore.com>
5148
5149 Followed the Start of New Year Procedure:
5150 * ChangeLog-2006: New file, containing all the entries for 2006.
5151 * ChangeLog: Removed all 2006 entries, and changed the reference
5152 to the previous ChangeLog to point to ChangeLog 2006.
5153 * top.c (print_gdb_version): Update copyright year.
5154
5155 2007-01-01 Mark Kettenis <kettenis@gnu.org>
5156
5157 * Makefile.in (remote-sds.o): Remove.
5158 * remote-sds.c: Delete.
5159
5160 For older changes see ChangeLog-2006.
5161 \f
5162 Local Variables:
5163 mode: change-log
5164 left-margin: 8
5165 fill-column: 74
5166 version-control: never
5167 End: