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