1 2007-11-21 Nick Roberts <nickrob@snap.net.nz>
3 * varobj.c (c_variable_editable, cplus_variable_editable)
4 (java_variable_editable, variable_editable): Delete.
5 (varobj_editable_p): Replace above functions with one language
6 independent function. Check for an lvalue.
7 (varobj_get_attributes, varobj_set_value): Use varobj_editable_p.
8 (struct language_specific): Delete variable_editable field.
10 * mi-cmd-var.c (mi_cmd_var_assign): Simplify.
12 * varobj.h: Add extern for varobj_editable_p.
14 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
16 Remove unused breakpoint fields.
17 * breakpoint.h (struct breakpoint): Remove
18 from_tty and flag fields.
19 * breakpoint.c (break_command_1): Don't set
20 from_tty and flag field set of breakpoint.
21 (create_ada_exception_breakpoint): Don't set
24 2007-11-20 David Ung <davidu@mips.com>
25 Maciej W. Rozycki <macro@mips.com>
27 * mips-tdep.c (mips16_scan_prologue): Handle the MIPS16e SAVE
30 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
32 * infrun.c (resume): Clarify logic that
33 decides if a single thread must be resumed. Add
36 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
38 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
41 2007-11-19 Markus Deuling <deuling@de.ibm.com>
43 * gdbarch.sh (register_sim_regno): Add gdbarch as parameter.
44 * gdbarch.{c,h}: Regenerate.
46 * arch-utils.h (legacy_register_sim_regno): Add gdbarch as parameter.
47 * score-tdep.c (score_register_sim_regno): Likewise.
48 * sim-regno.h (one2one_register_sim_regno): Likewise.
50 * arch-utils.c (legacy_register_sim_regno): Add gdbarch as parameter.
51 Replace current_gdbarch by gdbarch.
52 * sh-tdep.c (sh_sh2a_register_sim_regno)
53 (sh_dsp_register_sim_regno): Likewise.
54 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
55 * mips-tdep.c (mips_register_sim_regno): Likewise.
56 * m32c-tdep.c (m32c_register_sim_regno): Likewise.
57 * frv-tdep.c (frv_register_sim_regno): Likewise.
58 * arm-tdep.c (arm_register_sim_regno): Likewise.
59 * remote-sim.c (one2one_register_sim_regno): Likewise.
61 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
63 * configure.ac (--enable-targets): New configure option.
64 Collect gdb_target_obs of multiple targets into TARGET_OBS.
65 Call configure.tgt multiple times, using $targ as operand.
66 * configure.tgt: Operate on $targ instead of $target.
67 * configure: Regenerate.
68 * Makefile.in (ALL_TARGET_OBS): Define.
70 * NEWS: Mention --enable-targets option.
72 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
74 * mips-tdep.c (show_mipsfpu_command): Do not crash if called when
75 current architecture is not MIPS.
77 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
79 * cli/cli-setshow.c (do_setshow_command): Use dynamically sized buffer
80 to construct error message if no argument was supplied.
82 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
84 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Remove.
85 (i386nbsd_aout_regset_from_core_section): Likewise.
86 (i386nbsd_aout_init_abi): Likewise.
87 (_initialize_i386nbsd_tdep): Do not register i386nbsd_aout_init_abi.
89 * vaxnbsd-tdep.c (vaxnbsd_aout_init_abi): Remove.
90 (_initialize_vaxnbsd_tdep): Do not register vaxnbsd_aout_init_abi.
92 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
94 * amd64fsdb-tdep.c (amd64fbsd_sigtramp_start_addr): Use ULL suffix.
95 (amd64fbsd_sigtramp_end_addr): Likewise.
97 * iq2000-tdep.c (iq2000_pointer_to_address): Fix argument type.
98 (iq2000_address_to_pointer): Likewise.
99 (iq2000_frame_prev_register): Likewise.
100 (iq2000_extract_return_value): Use regcache_cooked_read_unsigned
101 instead of regcache_cooked_read into CORE_ADDR variable.
102 (iq2000_return_value): Fix argument types.
104 * m32r-rom.c (m32r_load_section): Fix printf argument type.
105 (m32r_load): Likewise.
107 * m68kbsd-tdep.c: Include "gdbtypes.h".
108 * Makefile.in: Update dependencies.
110 * mn10300-tdep.c (mn10300_frame_unwind_cache): Fix aliasing violation.
112 * nto-tdep.c (LM_ADDR): Do not refer to no-longer-existing
113 lmo->l_addr_size element.
115 * remote-m32r-sdi.c (m32r_xfer_memory): Use paddr to print address.
116 (m32r_insert_breakpoint): Likewise.
117 (m32r_remove_breakpoint): Likewise.
118 (m32r_insert_watchpoint): Likewise.
119 (m32r_remove_watchpoint): Likewise.
120 (m32r_load): Fix printf argument type.
122 * xtensa-tdep.c (xtensa_regset_from_core_section): Fix printf
124 (xtensa_frame_this_id): Do not cast pointers to "int" for output.
125 (xtensa_frame_prev_register): Likewise.
126 (xtensa_push_dummy_call): Likewise.
128 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
130 * config/alpha/alpha-linux.mt: Remove file.
131 * config/alpha/alpha.mt: Remove file.
132 * config/alpha/alpha-osf1.mt: Remove file.
133 * config/alpha/fbsd.mt: Remove file.
134 * config/alpha/nbsd.mt: Remove file.
135 * config/alpha/obsd.mt: Remove file.
136 * config/arm/embed.mt: Remove file.
137 * config/arm/linux.mt: Remove file.
138 * config/arm/nbsd.mt: Remove file.
139 * config/arm/obsd.mt: Remove file.
140 * config/arm/wince.mt: Remove file.
141 * config/avr/avr.mt: Remove file.
142 * config/cris/cris.mt: Remove file.
143 * config/frv/frv.mt: Remove file.
144 * config/h8300/h8300.mt: Remove file.
145 * config/i386/cygwin.mt: Remove file.
146 * config/i386/fbsd64.mt: Remove file.
147 * config/i386/fbsd.mt: Remove file.
148 * config/i386/i386gnu.mt: Remove file.
149 * config/i386/i386.mt: Remove file.
150 * config/i386/i386sol2.mt: Remove file.
151 * config/i386/linux64.mt: Remove file.
152 * config/i386/linux.mt: Remove file.
153 * config/i386/mingw.mt: Remove file.
154 * config/i386/nbsd64.mt: Remove file.
155 * config/i386/nbsd.mt: Remove file.
156 * config/i386/nto.mt: Remove file.
157 * config/i386/obsd64.mt: Remove file.
158 * config/i386/obsd.mt: Remove file.
159 * config/i386/sol2-64.mt: Remove file.
160 * config/ia64/ia64.mt: Remove file.
161 * config/ia64/linux.mt: Remove file.
162 * config/iq2000/iq2000.mt: Remove file.
163 * config/m32c/m32c.mt: Remove file.
164 * config/m32r/linux.mt: Remove file.
165 * config/m32r/m32r.mt: Remove file.
166 * config/m68hc11/m68hc11.mt: Remove file.
167 * config/m68k/linux.mt: Remove file.
168 * config/m68k/monitor.mt: Remove file.
169 * config/m68k/nbsd.mt: Remove file.
170 * config/m68k/obsd.mt: Remove file.
171 * config/m88k/obsd.mt: Remove file.
172 * config/mep/mep.mt: Remove file.
173 * config/mips/embed.mt: Remove file.
174 * config/mips/irix5.mt: Remove file.
175 * config/mips/irix6.mt: Remove file.
176 * config/mips/linux.mt: Remove file.
177 * config/mips/nbsd.mt: Remove file.
178 * config/mips/obsd64.mt: Remove file.
179 * config/mn10300/linux.mt: Remove file.
180 * config/mn10300/mn10300.mt: Remove file.
181 * config/mt/mt.mt: Remove file.
182 * config/pa/hppahpux.mt: Remove file.
183 * config/pa/hppa.mt: Remove file.
184 * config/pa/linux.mt: Remove file.
185 * config/pa/obsd.mt: Remove file.
186 * config/powerpc/aix.mt: Remove file.
187 * config/powerpc/linux.mt: Remove file.
188 * config/powerpc/nbsd.mt: Remove file.
189 * config/powerpc/obsd.mt: Remove file.
190 * config/powerpc/ppc-eabi.mt: Remove file.
191 * config/s390/s390.mt: Remove file.
192 * config/score/embed.mt: Remove file.
193 * config/sh/embed.mt: Remove file.
194 * config/sh/linux.mt: Remove file.
195 * config/sh/nbsd.mt: Remove file.
196 * config/sh/obsd.mt: Remove file.
197 * config/sh/sh64.mt: Remove file.
198 * config/sparc/embed.mt: Remove file.
199 * config/sparc/fbsd.mt: Remove file.
200 * config/sparc/linux64.mt: Remove file.
201 * config/sparc/linux.mt: Remove file.
202 * config/sparc/nbsd64.mt: Remove file.
203 * config/sparc/nbsd.mt: Remove file.
204 * config/sparc/obsd64.mt: Remove file.
205 * config/sparc/obsd.mt: Remove file.
206 * config/sparc/sol2-64.mt: Remove file.
207 * config/sparc/sol2.mt: Remove file.
208 * config/sparc/sparc64.mt: Remove file.
209 * config/sparc/sparc.mt: Remove file.
210 * config/spu/spu.mt: Remove file.
211 * config/v850/v850.mt: Remove file.
212 * config/vax/nbsd.mt: Remove file.
213 * config/vax/obsd.mt: Remove file.
214 * config/vax/vax.mt: Remove file.
215 * config/xstormy16/xstormy16.mt: Remove file.
216 * config/xtensa/xtensa.mt: Remove file.
218 * configure.tgt (gdb_target_cpu): Remove. Do not set anywhere.
219 (gdb_target): Likewise.
220 (gdb_target_obs): Document. Set for every target to contents
221 of TDEPFILES in former .mt makefile fragment.
223 * configure.ac (TARGET_OBS): Define.
224 (target_makefile_frag, gdb_target_cpu): Do not define.
225 * configure: Regenerate.
227 * Makefile.in (MT_FLAGS): Remove.
228 (GLOBAL_CFLAGS): Update.
229 (TARGET_OBS): Substitute from configure.
230 (DEPFILES): Remove TDEPFILES, add TARGET_OBS.
231 (@target_makefile_frag@): Remove.
233 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
235 * config/arm/embed.mt (SIM_OBS, SIM): Remove.
236 * config/avr/avr.mt (SIM_OBS, SIM): Remove.
237 * config/frv/frv.mt (SIM_OBS, SIM): Remove.
238 * config/h8300/h8300.mt (SIM_OBS, SIM): Remove.
239 * config/iq2000/iq2000.mt (SIM_OBS, SIM): Remove.
240 * config/m32c/m32c.mt (SIM_OBS, SIM): Remove.
241 * config/m32r/linux.mt (SIM_OBS, SIM): Remove.
242 * config/m32r/m32r.mt (SIM_OBS, SIM): Remove.
243 * config/m68hc11/m68hc11.mt (SIM_OBS, SIM): Remove.
244 * config/mips/embed.mt (SIM_OBS, SIM): Remove.
245 * config/mips/linux.mt (SIM_OBS, SIM): Remove.
246 * config/mips/nbsd.mt (SIM_OBS, SIM): Remove.
247 * config/mn10300/mn10300.mt (SIM_OBS, SIM): Remove.
248 * config/powerpc/linux.mt (SIM_OBS, SIM): Remove.
249 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Remove.
250 * config/powerpc/ppc-sim.mt: Remove file.
251 * config/sh/embed.mt (SIM_OBS, SIM): Remove.
252 * config/sh/linux.mt (SIM_OBS, SIM): Remove.
253 * config/sh/nbsd.mt (SIM_OBS, SIM): Remove.
254 * config/sh/sh64.mt (SIM_OBS, SIM): Remove.
255 * config/sparc/embed.mt (SIM_OBS, SIM): Remove.
256 * config/v850/v850.mt (SIM_OBS, SIM): Remove.
257 * config/xstormy16/xstormy16.mt (SIM_OBS, SIM): Remove.
259 * configure.tgt (gdb_sim): Document variable.
260 (arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*): Set it.
263 (h8300-*-*): Likewise.
264 (iq2000-*-*): Likewise.
265 (m32c-*-*): Likewise.
266 (m32r*-*-linux*): Likewise.
267 (m32r*-*-*): Likewise.
268 (m68hc11*-*-*|m6811*-*-*): Likewise.
269 (mips*-*-*): Likewise.
270 (mips*-*-linux*): Likewise.
271 (mips*-*-netbsd* | mips*-*-knetbsd*-gnu): Likewise.
272 (mn10300-*-*): Likewise.
273 (powerpc-*-linux* | powerpc64-*-linux*): Likewise.
274 (powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu): Likewise.
275 (powerpc*-*-*): Use ppc-eabi target. Conditionally set gdb_sim.
277 (sh-*-linux*): Likewise.
278 (sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu): Likewise.
279 (sh64-*-elf*): Likewise.
280 (sparc-*-rtems*): Likewise.
281 (v850*-*-elf): Likewise.
282 (xstormy16-*-*): Likewise.
284 * configure.ac (IGNORE_SIM, IGNORE_SIM_OBS): Do not set.
285 (SIM, SIM_OBS): Set depending on ${ignore_sim} and ${gdb_sim}.
286 * configure: Regenerate.
287 * Makefile.in (SIM, SIM_OBS): Substitute from configure.
288 (@IGNORE_SIM@, @IGNORE_SIM_OBS@): Remove.
290 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
292 * configure.tgt (gdb_osabi, build_gdbserver): Comment variables.
293 (arm*-*-*): Do not set obsolete build_rdi_share variable.
295 (*-*-freebsd* | *-*-kfreebsd*-gnu): Remove generic case, replace by ...
296 (alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
297 (i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
298 (sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu): ... specific cases.
299 (x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu): Re-sort.
301 (xscale-*-*): Merge into arm*-*-* case.
302 (fido-*-elf*): Merge into m68*-*-elf* case.
303 (m68*-*-aout*, m68*-*-coff*, m68*-*-elf*, m68*-*-rtems*,
304 m68*-*-uclinux*): Merge cases.
305 (powerpc-*-linux*, powerpc64-*-linux*): Merge cases.
306 (sh-*-coff*, sh-*-elf*): Merge into sh* case.
308 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
310 * configure.tgt: Reformat main case statement.
312 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
314 * configure.ac (hostfile, targetfile): Remove.
315 (GDB_XM_FILE, GDB_TM_FILE): Do not define.
316 (xm_h, tm_h): Likewise.
317 (DEPRECATED_TM_FILE, XM_FILE): Do not substitute into Makefile.
318 * configure, config.in: Regenerate.
320 * Makefile.in (xm_h, tm_h): Remove. Update dependencies.
321 (TAGS): Do not consider DEPRECATED_TM_FILE or XM_FILE.
322 (clean, local-maintainer-clean): Do not remove xm.h or tm.h.
323 * defs.h: Do not include "xm.h" or "tm.h".
325 * gdbarch.sh (verify_gdbarch): Do not dump GDB_XM_FILE or GDB_TM_FILE.
326 * gdbarch.c: Regenerate.
328 * config/score/embed.mt: Remove obsolete comment.
330 2007-11-16 Markus Deuling <deuling@de.ibm.com>
332 * gdbarch.sh (cannot_fetch_register, cannot_store_register): Add gdbarch
334 * gdbarch.{c,h}: Regenerate.
336 * alpha-tdep.c (alpha_cannot_fetch_register)
337 (alpha_cannot_store_register): Add gdbarch as parameter. Replace
338 current_gdbarch by gdbarch.
339 * cris-tdep.c (cris_cannot_fetch_register, cris_cannot_store_register)
340 (crisv32_cannot_fetch_register)
341 (crisv32_cannot_store_register): Likewise.
342 * arch-utils.c (cannot_register_not): Likewise.
343 * arch-utils.h (cannot_register_not): Likewise.
344 * hppa-tdep.c (hppa32_cannot_store_register)
345 (hppa32_cannot_store_register, hppa64_cannot_store_register)
346 (hppa64_cannot_fetch_register): Likewise.
347 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
348 (mipsnbsd_cannot_store_register): Likewise.
350 2007-11-16 Markus Deuling <deuling@de.ibm.com>
352 * m32r-rom.c (m32r_supply_register): Use get_regcache_arch to get at
353 the current architecture by regcache.
354 * ppcnbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
355 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
356 (fetch_register, supply_vrregset, fetch_ppc_registers)
357 (store_altivec_register, store_spe_register, store_register)
358 (fill_vrregset, store_ppc_registers): Likewise.
359 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
360 * win32-nat.c (do_win32_fetch_inferior_registers)
361 (do_win32_store_inferior_registers): Likewise.
362 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
363 * remote-m32r-sdi.c (m32r_fetch_registers)
364 (m32r_store_registers): Likewise.
365 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
367 * trad-frame.c (trad_frame_alloc_saved_regs): Replace current_gdbarch by
369 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
370 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
371 (do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call)
372 (ppc64_sysv_abi_return_value): Likewise.
373 * m32c-tdep.c (m32c_register_reggroup_p): Likewise.
374 * m2-lang.c (build_m2_types): Likewise.
375 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache
376 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
377 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
378 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
380 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Use get_frame_arch to
381 get at the current architecture by frame_info.
382 * gcore.c (derive_stack_segment): Likewise.
384 * shnbsd-nat.c (GETREGS_SUPPLIES): Add gdbarch parameter.
385 (shnbsd_fetch_inferior_registers, shnbsd_store_inferior_registers): Add
386 gdbarch to GETREGS_SUPPLIES call.
388 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
390 * elfread.c (ST_REGULAR, ST_DYNAMIC, ST_SYNTHETIC): New defines.
391 (elf_symtab_read): Rename DYNAMIC argument to TYPE. Do not access
392 ELF-private symbol data when processing synthetic symbols. Use
393 udata.p to get at size of ppc64 synthetic 'dot' symbols.
394 (elf_symfile_read): Pass TYPE argument to elf_symtab_read.
396 2007-11-15 Doug Evans <dje@google.com>
398 * buildsym.h (subfiles): Move ...
399 * buildsym.c (subfiles): ... to here and make static.
401 * symmisc.c (maintenance_info_symtabs): Print linetable info.
403 2007-11-15 Markus Deuling <deuling@de.ibm.com>
405 * mipsnbsd-tdep.h (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove
407 2007-11-15 Markus Deuling <deuling@de.ibm.com>
409 * arm-tdep.c (arm_prologue_this_id): Replace LOWEST_PC by its
410 expression and use get_frame_arch to replace current_gdbarch by frame's
412 * arm-tdep.h (LOWEST_PC): Remove
414 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
416 Apply const qualifier to some users of bp_location.
417 * breakpoint.h (struct bpstats): Make
418 the breakpoint_at field point at const bp_location.
419 * breakpoint.c (bpstat_alloc): Accept const
421 (breakpoint_here_p, breakpoint_inserted_here_p)
422 (software_breakpoint_inserted_here_p)
423 (breakpoint_thread_match, bpstat_stop_status)
424 (read_memory_nobpt, bpstat_have_active_hw_watchpoints): Use
425 const bp_location for iteration.
426 (print_it_typical, print_bp_stop_message): Use
427 const bp_location variable.
429 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
431 Make mark_breakpoints_out static.
432 * breakpoint.h (mark_breakpoints_out): Remove
434 * breakpoint.c (mark_breakpoints_out): Make static.
436 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
438 Prevent clear_command from directly modifying breakpoint list.
439 * Makefile.in (breakpoint_h): Update dependency.
440 * breakpoint.c (clear_command): Do not remove
441 breakpoints from breakpoint_chain. Collect breakpoints
442 to delete in a vector.
443 * breakpoint.h (breakpoint_p): New typedef for pointer to
444 breakpoint. Register vector of breakpoint_p.
446 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
448 Remove 'run_cleanup'.
449 * defs.h (do_run_cleanups, make_run_cleanup): Remove
451 * infcmd.c (run_command_1): Call clear_solib instead
453 * jv-lang.c (java_rerun_cleanup): Remove, for lack of
455 * solib.c (solib_cleanup_queued, do_clear_solib): Remove.
456 (update_solib_lib): Don't setup run cleanup.
457 (no_shared_libraries): Call clear_solib, not do_clear_solib.
458 * utils.c (run_cleanup_chain, make_run_cleanup)
459 (do_run_cleanups): Remove.
461 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
463 Remove CLEAR_SOLIB use.
464 * corelow.c (core_close): Don't check for CLEAR_SOLIB.
465 * infcmd.c (attach_command): Likewise.
467 2007-11-14 Doug Evans <dje@google.com>
469 * buildsym.c (start_subfile,start_symtab): Doc fixes.
471 2007-11-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
473 * tui/tui-data.c (tui_prev_win): Guard against NULL.
475 2007-11-12 Markus Deuling <deuling@de.ibm.com>
477 * gdbarch.sh (gdbarch_alloc): Replace current_gdbarch by gdbarch. Remove
479 (verify_gdbarch, gdbarch_dump): Likewise.
480 (do_read): Update comment.
481 (addr_bit, bfd_arch_info, target_desc, long_long_bit, floatformat)
482 (ptr_bit, name_of_malloc): Replace current_gdbarch by gdbarch.
483 * gdbarch.{c,h}: Regenerate.
485 2007-11-12 Markus Deuling <deuling@de.ibm.com>
487 * xtensa-tdep.c (ARG_1ST): Replace ARGS_FIRST_REG by its expression.
488 (ARGS_FIRST_REG): Remove.
489 (areg_numer): New function.
490 (xtensa_pseudo_register_read, xtensa_frame_prev_register)
491 (xtensa_extract_return_value, xtensa_store_return_value)
492 (xtensa_frame_cache): Replace AREG_NUMBER by areg_number.
493 (AREG_NUMBER): Remove.
494 (XTENSA_IS_ENTRY, ARG_NOF, ARG_1ST): Add gdbarch as parameter.
495 (xtensa_frame_cache): Update use of XTENSA_IS_ENTRY.
496 (xtensa_push_dummy_call): Update use of ARG_NOF.
497 (extract_call_winsize): Add gdbarch as parameter. Replace
498 current_gdbarch by gdbarch.
499 (xtensa_extract_return_value, xtensa_store_return_value): Update call
500 of extract_call_winsize.
502 2007-11-10 Joel Brobecker <brobecker@adacore.com>
504 * NEWS: Add entry for new set/show print frame-args command.
506 2007-11-09 Kevin Buettner <kevinb@redhat.com>
508 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add missing
509 register number to map. Adjust warning check and error/warning
510 return value code to match expectations of this function's callers.
512 2007-11-09 Joel Brobecker <brobecker@adacore.com>
514 * stack.c (print_this_frame_argument_p): Handle arguments passed
515 by reference properly.
517 2007-11-09 Joel Brobecker <brobecker@adacore.com>
519 * stack.c (print_frame_arguments_choices): New static global.
520 (print_frame_arguments): Likewise.
521 (print_this_frame_argument_p): New function.
522 (print_frame_args): Print the argument value only when appropriate.
523 (_initialize_task): Add new "set/show print frame-arguments" command.
525 2007-11-09 Luis Machado <luisgpm@br.ibm.com>
527 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move
528 saved_dabr_value assignment to the correct position.
530 2007-11-09 Markus Deuling <deuling@de.ibm.com>
532 * arch-utils.c (generic_convert_register_p): Add gdbarch as parameter.
533 * arch-utils.h (generic_convert_register_p): Likewise.
535 2007-11-09 Markus Deuling <deuling@de.ibm.com>
537 * gdbarch.sh (convert_register_p): Add gdbarch as parameter.
538 * ia64-tdep.c (ia64_convert_register_p): Likewise.
539 * i387-tdep.c (i387_convert_register_p): Likewise.
540 * i387-tdep.h (i387_convert_register_p): Likewise.
541 * alpha-tdep.c (alpha_convert_register_p): Likewise.
542 * gdbarch.{c,h}: Regenerate.
544 * rs6000-tdep.c (rs6000_convert_register_p): Add gdbarch as parameter.
545 Replace current_gdbarch by gdbarch.
546 * mips-tdep.c (mips_convert_register_p): Likewise.
547 * m68k-tdep.c (m68k_convert_register_p): Likewise.
548 * i386-tdep.c (i386_convert_register_p): Likewise.
550 2007-11-08 Aleksandar Ristovski <aristovski@qnx.com>
552 * gdb_string.h: Include <strings.h>.
554 2007-11-08 Vladimir Prus <vladimir@codesourcery.com>
556 * breakpoint.c (break_command_1): Remove
557 pending_bp parameter.
558 (create_breakpoint): Likewise.
559 (create_breakpoints): Likewise. Adjust call to
561 (break_command_1): Likewise. Adjust call to
563 (do_captured_breakpoint): Adjust call to
565 (break_command, tbreak_command, hbreak_command)
566 (stopin_command, stopat_command): Adjust call
569 2007-11-07 Joseph Myers <joseph@codesourcery.com>
570 Daniel Jacobowitz <dan@codesourcery.com>
572 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Right-align
573 struct values smaller than one doubleword; left-align those
574 larger. Pass structs containing a single floating-point value in
577 2007-11-07 Joseph Myers <joseph@codesourcery.com>
578 Daniel Jacobowitz <dan@codesourcery.com>
580 * gdbtypes.c (floatformats_ibm_long_double): New.
581 * gdbtypes.h (floatformats_ibm_long_double): Declare.
582 * ia64-tdep.c (floatformat_ia64_ext): Update for addition of
584 * mips-tdep.c (n32n64_floatformat_always_valid,
585 floatformat_n32n64_long_double_big, floatformats_n32n64_long):
587 (mips_gdbarch_init): Use floatformats_ibm_long_double instead of
588 floatformats_n32n64_long.
589 * ppc-linux-tdep.c (ppc_linux_init_abi): Use 128-bit IBM long
591 * doublest.c (convert_floatformat_to_doublest,
592 convert_doublest_to_floatformat): Handle split floating-point
594 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle IBM long
596 (ppc64_sysv_abi_push_dummy_call): Likewise.
597 (do_ppc_sysv_return_value): Handle IBM long double return.
599 2007-11-07 Vladimir Prus <vladimir@codesourcery.com>
601 Fix crash when a variable object being deleted
602 has any of its children deleted previously.
604 * varobj.c (delete_variable_1): Don't recurse
605 into deleted children.
607 2007-11-07 Markus Deuling <deuling@de.ibm.com>
609 * gdbarch.sh (legacy_virtual_frame_pointer): Add gdbarch parameter.
610 * gdbarch.{c,h}: Regenerate.
611 * arch-utils.c (legacy_virtual_frame_pointer): Add gdbarch parameter.
612 Replace current_gdbarch by gdbarch.
613 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
614 * mips-tdep.c (mips_virtual_frame_pointer): Likewise.
615 * spu-tdep.c (spu_virtual_frame_pointer): Likewise.
617 2007-11-07 Markus Deuling <deuling@de.ibm.com>
619 * shnbsd-tdep.c (shnbsd_supply_gregset, shnbsd_collect_gregset): Use
620 get_regcache_arch to get at the current architecture by regcache.
621 * xstormy16-tdep.c (xstormy16_frame_prev_register): Use get_frame_arch
622 to get at the current architecture by frame_info.
623 * fbsd-nat.c (fbsd_make_corefile_notes): Use get_regcache_arch to get
624 at the current architecture by regcache.
625 * gnu-v3-abi.c (gnuv3_skip_trampoline): Use get_frame_arch to get at
626 the current architecture by frame_info.
627 (build_gdb_vtable_type): Replace current_gdbarch by gdbarch.
628 * aix-thread.c (special_register_p): Add gdbarch as parameter.
629 (fetch_regs_kernel_thread, store_regs_kernel_thread): Add gdbarch to
630 caller of special_register_p.
632 2007-11-07 Markus Deuling <deuling@de.ibm.com>
634 * infcall.c (call_function_by_hand): Use get_frame_arch to get at the
635 current architecture by frame_info.
637 2007-11-07 Markus Deuling <deuling@de.ibm.com>
639 * xtensa-tdep.h (SIZEOF_GREGSET, XTENSA_ELF_NGREG) Remove.
641 2007-11-07 Markus Deuling <deuling@de.ibm.com>
643 * s390-nat.c (supply_gregset, fill_gregset): Use get_regcache_arch to
644 get at the current architecture by regcache.
645 (SUBOFF): Add gdbarch to macro definition.
647 2007-11-07 Markus Deuling <deuling@de.ibm.com>
649 * gdbarch.sh (breakpoint_from_pc): Add gdbarch parameter.
650 * gdbarch.{c,h}: Regenerate.
652 * xtensa-tdep.c (xtensa_breakpoint_from_pc): Add gdbarch parameter.
653 Replace current_gdbarch by gdbarch.
654 * sh-tdep.c (sh_breakpoint_from_pc): Likewise.
655 * sh64-tdep.c (sh64_breakpoint_from_pc): Likewise.
656 * score-tdep.c (score_breakpoint_from_pc): Likewise.
657 * mips-tdep.c (mips_breakpoint_from_pc): Likewise.
658 * m32r-tdep.c (m32r_breakpoint_from_pc): Likewise.
659 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
660 * arm-tdep.c (arm_breakpoint_from_pc): Likewise.
662 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Add gdbarch
664 * vax-tdep.c (vax_breakpoint_from_pc): Likewise.
665 * v850-tdep.c (v850_breakpoint_from_pc): Likewise.
666 * spu-tdep.c (spu_breakpoint_from_pc): Likewise.
667 * sparc-tdep.c (sparc_breakpoint_from_pc): Likewise.
668 * s390-tdep.c (s390_breakpoint_from_pc): Likewise.
669 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Likewise.
670 * mt-tdep.c (mt_breakpoint_from_pc): Likewise.
671 * mep-tdep.c (mep_breakpoint_from_pc): Likewise.
672 * m88k-tdep.c (m88k_breakpoint_from_pc): Likewise.
673 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Likewise.
674 * m32c-tdep.c (m32c_breakpoint_from_pc): Likewise.
675 * ia64-tdep.c (ia64_breakpoint_from_pc): Likewise.
676 * i386-tdep.c (i386_breakpoint_from_pc): Likewise.
677 * hppa-tdep.c (hppa_breakpoint_from_pc): Likewise.
678 * h8300-tdep.c (h8300_breakpoint_from_pc): Likewise.
679 * frv-tdep.c (frv_breakpoint_from_pc): Likewise.
680 * cris-tdep.c (cris_breakpoint_from_pc): Likewise.
681 * avr-tdep.c (avr_breakpoint_from_pc): Likewise.
682 * alpha-tdep.c (alpha_breakpoint_from_pc): Likewise.
683 * m68k-tdep.c (m68k_local_breakpoint_from_pc): Likewise.
685 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Add gdbarch parameter.
686 Replace current_gdbarch by gdbarch.
687 (rs6000_software_single_step): Use get_frame_arch to get at the
688 current architecture by frame_info. Add gdbarch to
689 rs6000_breakpoint_from_pc call.
691 2007-11-07 Markus Deuling <deuling@de.ibm.com>
693 * frv-tdep.c (frv_register_name, frv_check_watch_resources): Replace
694 macro CURRENT_VARIANT by its expression.
695 (CURRENT_VARIANT): Remove.
696 (frv_check_watch_resources): Add gdbarch parameter.
698 2007-11-07 Markus Deuling <deuling@de.ibm.com>
700 * MAINTAINERS (Write After Approval): Add self.
702 2007-11-05 Ulrich Weigand <uweigand@de.ibm.com>
704 * features/rs6000/power-core.xml: Use uint32 as register type.
705 * features/rs6000/power64-core.xml: Use uint64/uint32 as register type.
706 * features/rs6000/powerpc-32.c: Regenerate.
707 * features/rs6000/powerpc-403.c: Regenerate.
708 * features/rs6000/powerpc-403gc.c: Regenerate.
709 * features/rs6000/powerpc-505.c: Regenerate.
710 * features/rs6000/powerpc-602.c: Regenerate.
711 * features/rs6000/powerpc-603.c: Regenerate.
712 * features/rs6000/powerpc-604.c: Regenerate.
713 * features/rs6000/powerpc-64.c: Regenerate.
714 * features/rs6000/powerpc-7400.c: Regenerate.
715 * features/rs6000/powerpc-750.c: Regenerate.
716 * features/rs6000/powerpc-860.c: Regenerate.
717 * features/rs6000/powerpc-e500.c: Regenerate.
719 2007-11-05 Joel Brobecker <brobecker@adacore.com>
721 * breakpoint.c (set_raw_breakpoint_without_location): Make static.
723 2007-11-05 Joel Brobecker <brobecker@adacore.com>
725 * breakpoint.h (create_solib_load_event_breakpoint)
726 (create_solib_unload_event_breakpoint)
727 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
728 (create_exec_event_catchpoint): Delete declaration.
729 * breakpoint.c (create_solib_load_event_breakpoint)
730 (solib_load_unload_1, create_solib_unload_event_breakpoint): Delete.
731 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
732 (create_exec_event_catchpoint): Make static.
734 2007-11-05 Joel Brobecker <brobecker@adacore.com>
736 * breakpoint.h (set_breakpoint_sal): Remove declaration.
737 * breakpoint.c (set_breakpoint_sal): Delete.
739 2007-11-05 Joel Brobecker <brobecker@adacore.com>
741 * buildsym.c (finish_block): Remove "#if 1"/"#endif" brackets.
742 (make_blockvector): Likewise. Remove FIXME comment.
744 2007-11-05 Luis Machado <luisgpm@br.ibm.com>
746 * printcmd.c: (printf_command): Add support for new DFP
747 modifiers %H, %D and %DD.
748 * configure.ac: Add check for DECFLOAT printf support.
749 * configure: Regenerated.
751 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
753 * gdbtypes.h (struct cplus_struct_type): Remove runtime_ptr member.
754 (TYPE_RUNTIME_PTR, TYPE_VTABLE, TYPE_HAS_VTABLE,
755 TYPE_PRIMARY_BASE, TYPE_VIRTUAL_BASE_LIST): Remove macros.
756 (HP_ACC_VFUNC_START, HP_ACC_VBASE_START, HP_ACC_TYPEINFO_OFFSET,
757 HP_ACC_TOP_OFFSET_OFFSET): Likewise.
758 (has_vtable, primary_base_class, virtual_base_list_length,
759 virtual_base_list_length_skip_primaries, virtual_base_index,
760 virtual_base_index_skip_primaries, class_index_in_primary_list,
761 count_virtual_fns): Remove prototypes.
762 * gdbtypes.c (has_vtable, primary_base_class, current_vbase_list,
763 virtual_base_list_aux, virtual_base_list, virtual_base_list_length,
764 virtual_base_list_length_skip_primaries, virtual_base_index,
765 virtual_base_index_skip_primaries, class_index_in_primary_list,
766 count_virtual_fns): Remove.
768 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Remove.
769 (hpacc_vtbl_ptr_name, hpacc_vtbl_ptr_type_name): Remove.
770 (cp_print_value_fields): Remove support for HP aCC vtables.
771 (cp_print_value): Likewise.
772 * c-typeprint.c (c_type_print_base): Likewise.
774 * value.h (find_rt_vbase_offset): Remove prototype.
775 * valops.c (find_rt_vbase_offset): Remove.
776 (search_struct_method): Remove support for HP aCC vtables.
777 (find_method_list): Likewise.
779 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
781 * language.h (struct language_defn): Remove la_builtin_type_vector
782 and string_char_type members.
783 * language.c (language_string_char_type): No longer consult
784 la->string_char_type.
785 (language_lookup_primitive_type_by_name): No longer consult
786 current_language->la_builtin_type_vector.
788 * language.c (unknown_language_defn, auto_language_defn,
789 local_language_defn): Adapt initializer.
790 * ada-lang.c (ada_language_defn): Likewise.
791 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn,
792 minimal_language_defn): Likewise.
793 * f-lang.c (f_language_defn): Likewise.
794 * jv-lang.c (java_language_defn): Likewise.
795 * m2-lang.c (m2_language_defn): Likewise.
796 * objc-lang.c (objc_language_defn): Likewise.
797 * p-lang.c (pascal_language_defn): Likewise.
798 * scm-lang.c (scm_language_defn): Likewise.
800 2007-11-02 Markus Deuling <deuling@de.ibm.com>
802 * frame.c (frame_id_inner): Add gdbarch parameter. Replace
803 current_gdbarch by gdbarch.
804 (frame_find_by_id, get_prev_frame_1): Use get_frame_arch to get at the
805 current architecture by frame_info.
806 * frame.h (frame_id_inner): Add gdbarch parameter.
807 * stack.c (return_command): Use get_frame_arch to get at the current
808 architecture by frame_info. Update call of frame_id_inner.
809 * infrun.c (handle_inferior_event): Likewise.
810 * dummy-frame.c (dummy_frame_push): Use get_regcache_arch to get at the
811 current architecture by regcache. Update call of frame_id_inner.
813 2007-11-02 Markus Deuling <deuling@de.ibm.com>
815 * gdbarch.sh (register_name): Add gdbarch parameter.
816 * gdbarch.{c,h}: Regenerate.
818 * target-descriptions.c (tdesc_register_name): Add gdbarch parameter.
819 (tdesc_register_name): Replace current_gdbarch by gdbarch.
820 * target-descriptions.h (tdesc_register_name): Add gdbarch parameter.
822 * xstormy16-tdep.c (xstormy16_register_name): Add gdbarch parameter.
823 * vax-tdep.c (vax_register_name): Add gdbarch parameter.
824 * spu-tdep.c (spu_register_name): Add gdbarch parameter.
825 * s390-tdep.c (s390_register_name): Add gdbarch parameter.
826 * mt-tdep.c (mt_register_name): Add gdbarch parameter.
827 (mt_registers_info): Replace current_gdbarch by gdbarch.
828 (mt_register_reggroup_p): Add gdbarch to mt_register_name call.
829 * mips-tdep.c (mips_register_name): Add gdbarch parameter. Replace
830 current_gdbarch by gdbarch.
831 (mips_register_name): Add gdbarch to tdesc_register_name call.
832 * mep-tdep.c (mep_register_name): Add gdbarch parameter. Replace
833 current_gdbarch by gdbarch.
834 (mep_register_reggroup_p): Add gdbarch to mep_register_name call.
835 * m32c-tdep.c (m32c_register_name): Add gdbarch parameter. Replace
836 current_gdbarch by gdbarch.
837 * m88k-tdep.c (m88k_register_name): Add gdbarch parameter.
838 * m68k-tdep.c (m68k_register_name): Add gdbarch parameter.
839 * m32r-tdep.c (m32r_register_name): Add gdbarch parameter.
840 (m32r_frame_unwind_cache): Use get_frame_arch to get at the current
841 architecture by frame_info.
842 * iq2000-tdep.c (iq2000_register_name): Add gdbarch parameter.
843 * ia64-tdep.c (ia64_register_name): Add gdbarch parameter.
844 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Add gdbarch
846 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
847 (h8300sx_register_name): Add gdbarch parameter.
848 * cris-tdep.c (cris_register_name, crisv32_register_name): Add
849 gdbarch parameter. Replace current_gdbarch by gdbarch.
850 (cris_gdbarch_init): Replace current_gdbarch by gdbarch (comment).
851 * avr-tdep.c (avr_register_name): Add gdbarch parameter.
852 * arm-tdep.c (arm_register_name): Add gdbarch paramete
853 * amd64-tdep.c (amd64_register_name): Add gdbarch parameter. Update
855 * amd64-tdep.h (amd64_register_name): Add gdbarch parameter.
856 * amd64-linux-tdep.c (amd64_linux_register_name): Add gdbarch parameter.
857 * alpha-tdep.c (alpha_register_name): Add gdbarch parameter.
858 (alpha_cannot_fetch_register, alpha_cannot_store_register): Update call
859 of alpha_register_name.
860 * frv-tdep.c (frv_register_name): Add gdbarch parameter.
861 * i386-tdep.c (i386_register_name): Add gdbarch parameter. Replace
862 current_gdbarch by gdbarch.
863 (i386_register_type): Replace ?current_gdbarch by gdbarch.
864 * i386-tdep.h (i386_register_name): Add gdbarch parameter.
865 * i386-linux-tdep.c (i386_linux_register_name): Add gdbarch parameter.
867 * m68hc11-tdep.c (m68hc11_register_name): Add gdbarch parameter.
868 (m68hc11_register_reggroup_p): Add gdbarch to call of
869 m68hc11_register_name.
870 * mn10300-tdep.c (mn10300_generic_register_name, am33_register_name)
871 (am33_2_register_name): Add gdbarch parameter.
872 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
873 architecture by frame_info.
874 (mn10300_dump_tdep): Replace current_gdbarch by gdbarch.
875 * rs6000-tdep.c (rs6000_register_name): Add gdbarch parameter. Replace
876 current_gdbarch by gdbarch.
877 * score-tdep.c (score_register_name): Add gdbarch parameter.
878 (score_return_value, score_push_dummy_call): Replace current_gdbarch
880 * sh64-tdep.c (sh64_register_name): Add gdbarch parameter.
881 (sh64_compact_reg_base_num, sh64_register_convert_to_virtual)
882 (sh64_register_convert_to_raw, sh64_fv_reg_base_num)
883 (sh64_dr_reg_base_num, sh64_fpp_reg_base_num): Add gdbarch parameter
884 and update caller. Replace current_gdbarch by gdbarch.
885 (sh64_extract_return_value, sh64_store_return_value): Use
886 get_regcache_arch to get at the current architecture by regcache.
887 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
888 (sh_sh3e_register_name, sh_sh2e_register_name, sh_sh2a_register_name)
889 (sh_sh2a_nofpu_register_name, sh_sh_dsp_register_name)
890 (sh_sh3_dsp_register_name, sh_sh4_register_name)
891 (sh_sh4_nofpu_register_name, sh_sh4al_dsp_register_name): Add gdbarch
893 (fv_reg_base_num, dr_reg_base_num, sh_justify_value_in_reg)
894 (sh_next_flt_argreg): Add gdbarch parameter and update caller. Replace
895 current_gdbarch by gdbarch.
896 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Use
897 get_regcache_arch to get at the current architecture by regcache.
898 * sparc-tdep.c (sparc32_register_name): Add gdbarch parameter.
899 * sparc64-tdep.c (sparc64_register_name): Add gdbarch parameter.
900 * v850-tdep.c (v850_register_name, v850e_register_name): Add gdbarch
902 (v850_unwind_sp, v850_unwind_pc): Replace current_gdbarch by gdbarch.
903 * xtensa-tdep.c (xtensa_register_name): Add gdbarch parameter. Replace
904 current_gdbarch by gdbarch.
905 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
906 (xtensa_frame_prev_register): Add gdbarch parameter to
907 xtensa_register_name call.
909 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
911 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
912 find_solib_trampoline_target if PC is not in .plt section.
914 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
916 * elfread.c (elf_symtab_read): When constructing a solib trampoline
917 minimal symbol from an undefined dynamic symbol, use proper section.
919 2007-10-31 Markus Deuling <deuling@de.ibm.com>
921 * arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
922 to get at the current architecture by regcache.
924 2007-10-30 Markus Deuling <deuling@de.ibm.com>
926 * libunwind-frame.c (libunwind_frame_sniffer)
927 libunwind_frame_prev_register, libunwind_sigtramp_frame_sniffer)
928 (libunwind_frame_cache): Use get_frame_arch to get at the current
929 architecture by frame_info.
930 (libunwind_get_reg_special): Replace current_gdbarch by gdbarch.
932 2007-10-30 Markus Deuling <deuling@de.ibm.com>
934 * iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get
935 at the current architecture by frame_info.
937 2007-10-30 Markus Deuling <deuling@de.ibm.com>
939 * inf-child.c (inf_child_fetch_inferior_registers): Use
940 get_regcache_arch to get at the current architecture by regcache.
942 2007-10-30 Markus Deuling <deuling@de.ibm.com>
944 * inf-ptrace.c (inf_ptrace_fetch_registers)
945 (inf_ptrace_fetch_register, inf_ptrace_store_register)
946 (inf_ptrace_store_registers): Use get_regcache_arch to get at the
947 current architecture by regcache.
949 2007-10-30 Markus Deuling <deuling@de.ibm.com>
951 * hpux-thread.c (hpux_thread_fetch_registers)
952 (hpux_thread_store_registers): Use get_regcache_arch to get at the
953 current architecture by regcache.
955 2007-10-30 Markus Deuling <deuling@de.ibm.com>
957 * hppa-tdep.c (hppa_frame_cache): Use get_frame_arch to get at the
958 current architecture by frame_info.
960 2007-10-30 Markus Deuling <deuling@de.ibm.com>
962 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
963 (go32_store_registers): Use get_regcache_arch to get at the current
964 architecture by regcache.
966 2007-10-30 Markus Deuling <deuling@de.ibm.com>
968 * gdbtypes.c (gdbtypes_post_init): Replace current_gdbarch by gdbarch.
970 2007-10-30 Markus Deuling <deuling@de.ibm.com>
972 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Use get_frame_arch
973 to get at the current architecture by frame_info.
975 2007-10-30 Markus Deuling <deuling@de.ibm.com>
977 * f-lang.c (build_fortran_types): Replace current_gdbarch by gdbarch.
979 2007-10-30 Markus Deuling <deuling@de.ibm.com>
981 * core-regset.c (fetch_core_registers): Use get_regcache_arch to get at
982 the current architecture by regcache.
984 2007-10-30 Markus Deuling <deuling@de.ibm.com>
986 * corelow.c (get_core_registers): Use get_regcache_arch to get at the
987 current architecture by regcache.
989 2007-10-30 Markus Deuling <deuling@de.ibm.com>
991 * bsd-uthread.c (bsd_uthread_fetch_registers)
992 (bsd_uthread_store_registers): Use get_regcache_arch to get at the
993 current architecture by regcache.
995 2007-10-30 Markus Deuling <deuling@de.ibm.com>
997 * avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
998 get_frame_arch to get at the current architecture by frame_info.
1000 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1002 * arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
1004 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1006 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
1007 (store_regs): Use get_regcache_arch to get at the current architecture
1010 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1012 * arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
1013 to get at the current architecture by regcache.
1015 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1017 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
1018 (alphabsd_store_inferior_registers): Use get_regcache_arch to get at
1019 the current architecture by regcache.
1021 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1023 * ada-lang.c (ada_language_arch_info): Replace current_gdbarch by
1026 2007-10-30 Daniel Jacobowitz <dan@codesourcery.com>
1028 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Check the selected
1029 soft float and vector ABIs. Support the generic vector ABI for
1031 (do_ppc_sysv_return_value): Likewise. Correct argument types and
1033 (ppc64_sysv_abi_push_dummy_call): Assert that floating point is
1035 * ppc-tdep.h (enum powerpc_vector_abi): New.
1036 (struct gdbarch_tdep): Add soft_float and vector_abi.
1037 * rs6000-tdep.c (setpowerpccmdlist, showpowerpccmdlist)
1038 (powerpc_soft_float_global, powerpc_vector_strings)
1039 (powerpc_vector_abi_global, powerpc_vector_abi_string): New.
1040 (rs6000_gdbarch_init): Check for soft-float and vector ABI markings.
1041 (set_powerpc_command, show_powerpc_command, powerpc_set_soft_float)
1042 (powerpc_set_vector_abi): New.
1043 (_initialize_rs6000_tdep): Register "set powerpc" and "show powerpc"
1045 * Makefile.in (elf_ppc_h): New.
1046 (rs6000-tdep.o): Update.
1048 2007-10-29 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1050 * ppc-linux-tdep.c (ppc32_linux_reg_offsets): Corrected
1051 swapped offsets and VRSAVE offset.
1052 (ppc64_linux_reg_offsets): Corrected swapped offsets.
1053 (ppc32_linux_vrregset): Added.
1054 (ppc_linux_regset_from_core_section): Added support for
1055 .reg-ppc-vmx section.
1056 * ppc-tdep.h (ppc_altivec_support_p): Declare.
1057 (ppc_supply_vrregset): Declare.
1058 (ppc_collect_vrregset): Declare.
1059 * rs6000-tdep.c (ppc_altivec_support_p): Added.
1060 (ppc_supply_vrregset): Added.
1061 (ppc_collect_vrregset): Added.
1062 * corelow.c (get_core_registers): Added support for
1063 .reg-ppc-vmx section.
1065 2007-10-29 Joel Brobecker <brobecker@adacore.com>
1069 2007-10-26 Jim Blandy <jimb@codesourcery.com>
1071 * ax-gdb.h (expr_to_address_and_size): Delete declaration for
1074 * tracepoint.c (tracepoint_operation): Report the deletion event
1075 after we have unlinked the tracepoint from the list, and use the
1076 proper tracepoint number.
1078 * ax-gdb.c (expr_to_agent): Delete unused function.
1079 (expr_to_address_and_size): Delete #if 0'd function.
1080 * ax-gdb.h (expr_to_agent): Delete declaration.
1082 * ax-gdb.c (gen_cast): Remove redundant assignment to
1083 value->type. Doc fix.
1085 * ax-general.c (gen_traced_pop, gen_int_literal)
1086 (gen_usual_arithmetic): Check for typedefs.
1088 2007-10-26 Joel Brobecker <brobecker@adacore.com>
1090 * parse.c (prefixify_expression): Minor reformatting.
1092 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1094 * version.in: Use dot instead of dash.
1096 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1098 * linux-thread-db.c (check_for_thread_db): Only print if info_verbose.
1100 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1102 * memory-map.c (parse_memory_map): Don't use an empty struct
1105 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1107 * signals/signals.c (signals): Update pointer to enum
1108 target_signal declaration.
1110 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1111 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1112 Jim Blandy <jimb@codesourcery.com>
1114 * dwarf2read.c (read_partial_die): check the value
1115 of DW_AT_calling_convention in Fortran programs.
1117 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1118 Thiago Jung Bauermann <bauerman@br.ibm.com>
1120 * c-exp.y (YYSTYPE): Add typed_val_decfloat for decimal
1121 floating point in YYSTYPE union.
1122 (DECFLOAT) Add token and expression element handling code.
1123 (parse_number): Parse DFP constants, which end with suffix 'df',
1124 'dd' or 'dl'. Return DECFLOAT.
1125 * eval.c (evaluate_subexp_standard): Call value_from_decfloat to
1127 * expression.h (enum exp_opcode): Add an opcode (OP_DECFLOAT)
1129 (union exp_element): Add decfloatconst to represent DFP
1130 elements, which is 16 bytes by default.
1131 * parse.c (write_exp_elt_decfloatcst): New function to write a
1132 decimal float const into the expression.
1133 (operator_length_standard): Set operator length for OP_DECFLOAT
1135 * parser-defs.h (write_exp_elt_decfloatcst): Prototype.
1136 * valarith.c (value_neg): Add code to handle the negation
1137 operation of DFP values.
1138 * value.c (value_from_decfloat): New function to get the value
1139 from a decimal floating point.
1140 * value.h (value_from_decfloat): Prototype.
1142 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1143 Thiago Jung Bauermann <bauerman@br.ibm.com>
1145 * c-lang.c (c_create_fundamental_type): Create fundamental
1147 * c-typeprint.c (c_type_print_varspec_prefix): Add
1148 TYPE_CODE_DECFLOAT to no prefix needed case.
1149 (c_type_print_varspec_suffix): Add TYPE_CODE_DECFLOAT to no
1151 * c-valprint.c (c_val_print): Call print_decimal_floating to
1153 * dwarf2read.c (read_base_type): Read DW_ATE_decimal_float
1154 attribute code and return TYPE_CODE_DECFLOAT.
1155 (dwarf_base_type): Set dwarf2_fundamental_type for DFP values.
1156 * gdbtypes.c (gdbtypes_post_init): Initialize builtin_decfloat,
1157 builtin_decdouble and builtin_declong.
1158 * gdbtypes.h (enum type_code): Add TYPE_CODE_DECFLOAT as a
1160 (FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT): New
1161 types, for decimal floating point.
1162 (FT_NUM_MEMBERS): Increment, new types added.
1163 (struct builtin_type): Add builtin_decfloat, builtin_decdouble
1164 and builtin_declong.
1165 * valprint.c (print_decimal_floating): New function to print DFP
1167 * value.h (print_decimal_floating): Prototype.
1169 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1170 Thiago Jung Bauermann <bauerman@br.ibm.com>
1172 * Makefile.in (LIBDECNUMBER_DIR, LIBDECNUMBER, LIBDECNUMBER_SRC
1173 LIBDECNUMBER_CFLAGS): New macros for libdecnumber.
1174 (INTERNAL_CFLAGS_BASE): Add LIBDECNUMBER_CFLAGS in.
1175 (INSTALLED_LIBS): Add -ldecnumber in.
1176 (CLIBS): Add LIBDECNUMBER in.
1177 (decimal128_h, decimal64_h, decimal32_h): New macros for decimal
1179 (dfp_h): New macros for decimal floating point.
1180 (dfp.o): New target.
1181 (COMMON_OBS): Add dfp.o in.
1182 (c-exp.o): Add dfp_h as dependency.
1183 (valprint.o): Add dfp_h as dependency.
1184 (value.o): Add dfp_h as dependency.
1185 * dfp.h: New header file for decimal floating point support in
1187 * dfp.c: New source file for decimal floating point support in
1188 GDB. Implement decimal_from_string and decimal_to_string based
1189 on libdecnumber API.
1190 * configure.ac: Add AC_C_BIGENDIAN test.
1191 * config.in, configure: Regenerate.
1193 2007-10-25 David Ung <davidu@mips.com>
1194 Maciej W. Rozycki <macro@mips.com>
1197 * infcmd.c (registers_info): Check for a user register before
1198 calling target's gdbarch_print_registers_info(). If found to be
1199 so, extract the implicit value of user register and call
1200 print_scalar_formatted().
1201 * Makefile.in: (infcmd.o): Add $(user_regs_h).
1203 2007-10-25 Joel Brobecker <brobecker@adacore.com>
1205 * NEWS: Document status of hppa64-hpux support.
1207 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1209 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1210 set_solib_ops to install SVR4 operations.
1211 (_initialize_svr4_solib): Do not set current_target_so_ops.
1213 * config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
1214 * config/i386/i386gnu.mt (TDEPFILES): ... to here.
1216 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1218 * solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1219 (solib_svr4_init): Initialize fetch_link_map_offsets to NULL.
1220 * solib-svr4.h (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1221 * solib-legacy.c: Remove file.
1223 * config/alpha/alpha-linux.mt (TDEPFILES): Remove solib-legacy.o.
1224 * config/arm/linux.mt (TDEPFILES): Likewise.
1225 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1226 * config/ia64/linux.mt (TDEPFILES): Likewise.
1227 * config/m32r/linux.mt (TDEPFILES): Likewise.
1228 * config/powerpc/linux.mt (TDEPFILES): Likewise.
1229 * config/s390/s390.mt (TDEPFILES): Likewise.
1231 * alpha-linux-tdep.c (alpha_linux_init_abi): Call
1232 set_solib_svr4_fetch_link_map_offsets.
1233 * i386gnu-tdep.c (i386gnu_init_abi): Likewise.
1234 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
1236 * i386gnu-tdep.c: Include "solib-svr4.h".
1237 * Makefile.in: Update dependencies.
1239 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1241 * i386-nto-tdep.c: Include "solib.h".
1242 (i386nto_init_abi): Use set_solib_ops instead of overwriting
1243 current_target_so_ops members.
1244 * solist.h (TARGET_SO_RELOCATE_SECTION_ADDRESSES): Remove.
1245 (TARGET_SO_FIND_AND_OPEN_SOLIB): Remove.
1246 (TARGET_SO_IN_DYNSYM_RESOLVE_CODE): Remove.
1247 * Makefile.in: Update dependencies.
1249 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1251 * arm-wince-tdep.c: Include "solib.h" and "solib-target.h".
1252 (arm_wince_init_abi): Call set_solib_ops.
1253 * i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
1254 (i386_cygwin_init_abi): Call set_solib_ops.
1255 * solib-target.c: Include "solib-target.h".
1256 (solib_target_so_ops): Make global.
1257 (_initialize_solib_target): Do not set current_target_so_ops.
1258 * solib-target.h: New file.
1259 * Makefile.in: Update dependencies.
1261 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1263 * mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
1264 (mips_irix_init_abi): Call set_solib_ops.
1265 * solib-irix.c: Include "solib.h" and "solib-irix.h".
1266 (irix_so_ops): Make global.
1267 (_initialize_irix_solib): Do not set current_target_so_ops.
1268 * solib-irix.h: New file.
1269 * Makefile.in: Update dependencies.
1271 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1273 * configure.tgt: Remove hppa*64*-*-hpux11* special case.
1274 * config/pa/hppa64.mt: Delete file.
1275 * config/pa/hppahpux.mt (MT_CFLAGS): Remove.
1276 (TDEPFILES): Move somread.o to ...
1277 * config/pa/hpux.mh (NATDEPFILES): ... here.
1279 * configure.ac: Add check for elf_hp.h header.
1280 Search libdl and libxpdl for dlgetmodinfo.
1281 * config.in, configure: Regenerate.
1282 * solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
1283 instead of #ifndef PA_SOM_ONLY. Include "solib.h".
1284 (pa64_solib_select): Take gdbarch instead of tdep argument. Call
1285 set_solib_ops instead of modifying current_target_so_ops.
1286 * solib-pa64.h (pa64_solib_select): Update prototype.
1287 * solib-som.c: Remove include of "som.h". Include "solib.h".
1288 (som_solib_select): Take gdbarch instead of tdep argument. Call
1289 set_solib_ops instead of modifying current_target_so_ops.
1290 * solib-som.h (som_solib_select): Update prototype.
1291 * hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
1292 of tdep to som_solib_select call.
1293 (hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
1294 pa64_solib_select call.
1295 * Makefile.in: Update dependencies.
1297 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1299 * frv-tdep.c: Include "solib.h".
1300 (frv_gdbarch_init): Call set_solib_ops.
1301 * frv-tdep.h (struct target_so_ops): Add forward reference.
1302 (frv_so_ops): Add extern declaration.
1303 * solib-frv.c (frv_so_ops): Make global.
1304 (_initialize_frv_solib): Do not set current_target_so_ops.
1305 * Makefile.in: Update dependencies.
1307 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1309 * solib.c (solib_global_lookup): Use solib_ops instead of global
1310 current_target_so_ops.
1312 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1314 * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
1315 * config/frv-tm-frv.h: Delete file.
1317 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
1319 * NEWS: Mention gdbserver support for non-libthread_db operation.
1321 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
1323 * amd64-tdep.c (amd64_convert_register_p): Delete.
1324 (amd64_init_abi): Use i387_convert_register_p.
1325 * alpha-tdep.c (alpha_convert_register_p): Return zero for
1327 (alpha_register_to_value, alpha_value_to_register): Do not handle
1329 * i386-tdep.c (i386_convert_register_p): Use i387_convert_register_p.
1330 * i387-tdep.c (i387_convert_register_p): New.
1331 (i387_register_to_value, i387_value_to_register): Update comments.
1332 * i387-tdep.h (i387_convert_register_p): Declare.
1333 * ia64-tdep.c (ia64_convert_register_p): Return zero for
1334 builtin_type_ia64_ext.
1335 (ia64_gdbarch_init): Do not initialize builtin_type_ia64_ext here.
1336 (_initialize_ia64_tdep): Initialize builtin_type_ia64_ext here.
1337 * m68k-tdep.c (m68k_convert_register_p): Return zero for
1338 builtin_type_m68881_ext.
1339 (m68k_register_to_value, m68k_value_to_register): Update comments.
1341 2007-10-24 Nathan Sidwell <nathan@codesourcery.com>
1343 * target-memory.c (claim_memory): Propagate baton for split memory
1346 2007-10-24 Pedro Alves <pedro_alves@portugalmail.pt>
1349 * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
1352 2007-10-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1354 * symtab.c (find_line_symtab): scan through psymtabs
1355 when exact_match is zero.
1357 2007-10-23 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
1359 * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
1360 (deal_with_atomic_sequence): New.
1361 (mips_software_single_step): Use it.
1363 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
1366 * configure.ac: Modify $LIBINTL before the BFD check.
1367 * configure: Regenerated.
1369 2007-10-23 Joel Brobecker <brobecker@adacore.com>
1371 * buildsym.c (free_pending_blocks): Remove commented-out code.
1372 (make_blockvector): Likewise. Re-use free_pending_blocks.
1373 (end_symtab): Remove commented-out code.
1375 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1377 * top.c (command_loop): Fix output for shrinkage.
1379 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1381 * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
1382 (exp): Remove and document function-like casts.
1384 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1386 * cp-support.c: Include "safe-ctype.h".
1387 (cp_already_canonical): New function.
1388 (cp_canonicalize_string): Use it. Return NULL for already canonical
1390 (mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
1391 (cp_func_name, remove_params): Likewise.
1392 (cp_find_first_component_aux): Use ISSPACE.
1393 * cp-support.h (cp_demangled_name_to_comp): Correct comment. Remove
1395 * cp-name-parser.y (ALLOC_CHUNK): Define.
1396 (struct demangle_info): Add PREV and NEXT. Increase the size of
1398 (d_grab): Convert to a function.
1399 (allocate_info): Rewrite.
1400 (cp_demangled_name_to_comp): Remove MEMORY argument. Do not use
1401 strlen. Update call to allocate_info. Do not free it on failure.
1402 (main): Update calls to cp_demangled_name_to_comp.
1403 * Makefile.in (cp-support.o): Update.
1405 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1407 * std-regs.c (value_of_builtin_frame_fp_reg)
1408 value_of_builtin_frame_pc_reg, value_of_builtin_frame_sp_reg)
1409 value_of_builtin_frame_ps_reg): Use get_frame_arch to get at the
1410 current architecture by frame_info.
1412 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1414 * reggroups.c (default_register_reggroup_p): Replace current_gdbarch
1417 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1419 * infcmd.c (default_print_registers_info, print_return_value)
1420 (print_vector_info, print_float_info): Replace current_gdbarch by
1422 (registers_info): Use get_frame_arch to get at the current
1423 architecture by frame_info.
1425 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1427 * i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
1428 get_regcache_arch to get at the current architecture by regcache.
1430 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1432 * target.c (debug_print_register): Use get_regcache_arch to get at the
1433 current architecture by regcache.
1435 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
1437 * dwarf2read.c (read_file_scope): Add a comment.
1438 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_type)
1439 (read_enumeration_type, process_enumeration_scope, read_array_type)
1440 (read_typedef, read_base_type, read_subrange_type)
1441 (read_unspecified_type): Use dwarf2_name.
1443 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
1445 * coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
1446 * dwarf2read.c (dwarf2_free_objfile): New.
1447 * elfread.c (elf_symfile_finish): Call dwarf2_free_objfile.
1448 * symfile.h (dwarf2_free_objfile): Declare.
1450 2007-10-21 Joel Brobecker <brobecker@adacore.com>
1452 * hppa-hpux-nat.c (hppa_hpux_store_register): Add missing semi-colon.
1454 2007-10-21 Luis Machado <luisgpm@br.ibm.com>
1456 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
1457 * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
1458 default dwarf2_frame_set_init_reg function.
1460 2007-10-21 Pedro Alves <pedro_alves@portugalmail.pt>
1462 * NEWS: Mention native MinGW configuration.
1464 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1466 * gdbarch.sh: Remove "macro" column of input table. Remove handling
1467 of "macro" column throughout the file. Remove (empty) "macro" entry
1468 of all gdbarch functions.
1470 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1472 * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
1473 * gdbarch.c, gdbarch.h: Regenerate.
1474 * dbxread.c (find_stab_function_addr): Define unconditionally.
1475 (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
1476 instead of SOFUN_ADDRESS_MAYBE_MISSING.
1477 (end_psymtab): Likewise.
1478 (process_one_symbol): Likewise.
1479 * mdebugread.c (parse_partial_symbols): Likewise.
1481 * symtab.h (struct minimal_symbol): Always define "filename" member.
1482 * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
1483 * minsyms.c (lookup_minimal_symbol): Likewise.
1484 * symmisc.c (dump_msymbols): Likewise.
1486 * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
1487 * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
1488 * config/i386/tm-i386sol2.h: Remove file.
1489 * config/i386/tm-linux.h: Remove file.
1490 * i386-linux-tdep.c (i386_linux_init_abi): Add call to
1491 set_gdbarch_sofun_address_maybe_missing.
1492 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
1494 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
1495 * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
1496 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
1497 * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
1498 * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
1499 * config/powerpc/tm-ppc-eabi.h: Remove file.
1500 * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
1501 set_gdbarch_sofun_address_maybe_missing.
1503 * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
1504 * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
1505 * config/sparc/tm-sol2.h: Remove file.
1506 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
1507 set_gdbarch_sofun_address_maybe_missing.
1508 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
1510 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1512 * gdbarch.sh (static_transform_name): New gdbarch callback.
1513 * gdbarch.c, gdbarch.h: Regenerate.
1514 * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
1515 instead of STATIC_TRANSFORM_NAME.
1516 * mdebugread.c (parse_partial_symbols): Likewise.
1517 * stabsread.c (define_symbol): Likewise.
1518 * xcoffread.c (scan_xcoff_symtab): Likewise.
1520 * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
1521 (IS_STATIC_TRANSFORM_NAME): Remove.
1522 * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
1523 * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
1524 (i386_sol2_init_abi): Install it.
1526 * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
1527 (IS_STATIC_TRANSFORM_NAME): Remove.
1528 * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
1529 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
1530 (sparc32_sol2_init_abi): Install it.
1531 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
1532 * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
1534 2007-10-18 Daniel Jacobowitz <dan@codesourcery.com>
1536 * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
1537 (mips_n32n64_return_value, mips_o32_return_value)
1538 (mips_o64_return_value): Update calls to mips_xfer_register.
1540 2007-10-17 Daniel Jacobowitz <dan@codesourcery.com>
1542 * frame.c (frame_unwind_unsigned_register): Delete.
1543 (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
1544 * frame.h (frame_unwind_unsigned_register): Delete prototype.
1546 * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
1547 avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
1548 mt-tdep.c: Replace frame_unwind_unsigned_register with
1549 frame_unwind_register_unsigned.
1551 2007-10-16 Pedro Alves <pedro_alves@portugalmail.pt>
1553 * config/i386/mingw.mh, config/i386/mingw.mt: New files.
1554 * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
1555 * win32-nat.c: Only include cygwin.h on Cygwin host. Don't
1557 (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
1558 if not building on Cygwin.
1559 (win32_make_so, handle_output_debug_string, handle_exception)
1560 (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
1561 (win32_attach): Only fallback to Cygwin pids if building on
1563 (win32_pid_to_exec_file): Disable Cygwin specific code, if not
1565 (win32_create_inferior): Disable starting the inferior through a
1566 shell, environment var processing and tty handling if not building
1568 (cygwin_pid_to_str): Rename to ...
1569 (win32_pid_to_str): ... this.
1570 (init_win32_ops): Update use of win32_pid_to_str. Disable "shell"
1571 and "cygwin-exceptions" commands if not building on Cygwin.
1573 2007-10-16 Gaius Mulley <gaius@glam.ac.uk>
1575 * doc/gdb.texinfo: Add TSIZE definition, removed
1576 statement about unbounded arrays being unimplemented.
1577 * m2-valprint.c (m2_print_array_contents): New function.
1578 (m2_print_unbounded_array): New function.
1579 (m2_print_array_contents): New function.
1580 * m2-typeprint.c (m2_unbounded_array): New function.
1581 (m2_is_unbounded_array): New function.
1582 (m2_print_type): Test for unbounded array when walking
1584 * m2-lang.h: Added extern m2_is_unbounded_array.
1585 * m2-lang.c (evaluate_subexp_modula2): New function.
1586 (exp_descriptor_modula2): New structure.
1587 (m2_language_defn): Use exp_descriptor_modula2.
1588 * m2-exp.y: Added TSIZE and binary subscript.
1590 2007-10-16 Daniel Jacobowitz <dan@codesourcery.com>
1592 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
1595 2007-10-16 Kevin Buettner <kevinb@redhat.com>
1597 * m32r-tdep.c (decode_prologue): Sign extend offset for
1599 (m32r_frame_unwind_cache): Likewise.
1601 2007-10-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
1603 * rs6000-tdep.c (skip_prologue): Restore comment with
1604 function description to its proper place.
1606 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1608 * NEWS: Mention gdbserver PowerPC improvements.
1610 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1612 * features/Makefile (WHICH): Add PowerPC register definitions.
1613 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
1614 (rs6000/powerpc-64-expedite): New macros.
1615 ($(outdir)/%.dat): Handle subdirectories.
1616 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
1617 regformats/rs6000/powerpc-e500.dat: New generated files.
1619 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1621 * ppc-linux-nat.c (ppc_linux_read_description): New.
1622 (_initialize_ppc_linux_nat): Set to_read_description.
1623 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
1625 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1627 * NEWS: Document target described register support for PowerPC.
1628 * ppc-tdep.h: Remove ppc_spr constants.
1629 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
1630 ppc_builtin_type_vec128 members.
1631 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
1632 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
1633 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
1634 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
1635 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
1636 * rs6000-tdep.c: Include preparsed descriptions.
1637 (init_sim_regno_table): Do not iterate over pseudo registers.
1638 Look up segment registers by name. Use sim_spr_register_name
1640 (rs6000_register_sim_regno): Call init_sim_regno_table here.
1641 (rs6000_builtin_type_vec128): Delete.
1642 (rs6000_register_name): Only handle SPE pseudo registers and upper
1643 halves. Call tdesc_register_name for everything else.
1644 (rs6000_register_type): Delete. Replace with...
1645 (rs6000_pseudo_register_type): ...this new function. Only handle
1646 SPE pseudo registers.
1647 (rs6000_register_reggroup_p): Delete. Replace with...
1648 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
1649 handle SPE pseudo registers.
1650 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
1652 (rs6000_register_to_value, rs6000_value_to_register): Remove check
1654 (e500_register_reggroup_p): Delete.
1655 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
1656 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
1657 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
1658 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
1659 (registers_powerpc, registers_403, registers_403GC, registers_505)
1660 (registers_860, registers_601, registers_602, registers_603)
1661 (registers_604, registers_750, registers_7400, registers_e500): Delete
1663 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
1665 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
1666 (variants): Delete outdated comment. Use standard target descriptions
1667 instead of "struct reg" arrays.
1668 (init_variants): Delete.
1669 (rs6000_gdbarch_init): Do not guess word size from the BFD
1670 architecture if we have a target description. Select a variant
1671 before creating a new architecture. Use the variant's target
1672 description if the target did not define a register layout.
1673 Validate target-supplied registers. Reject mismatches. Use
1674 fixed register numbers and new constants instead of magic
1675 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
1676 (_initialize_rs6000_tdep): Initialize the preparsed target
1678 * target-descriptions.c (tdesc_predefined_types): Add int128 and
1680 (tdesc_find_register_early): New function.
1681 (tdesc_numbered_register): Use it.
1682 (tdesc_register_size): New function.
1683 (tdesc_use_registers): Take a target_desc argument. Do not use
1684 gdbarch_target_desc.
1685 * target-descriptions.h (tdesc_use_registers): Update prototype
1687 (tdesc_register_size): New prototype.
1688 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
1689 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
1690 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
1691 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
1692 (rs6000-tdep.o): Update.
1693 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
1694 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
1695 * mips-tdep.c (mips_gdbarch_init): Likewise.
1697 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1699 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
1700 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
1701 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
1702 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
1703 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
1704 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
1705 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
1708 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1710 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
1711 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
1712 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
1713 feature descriptions for standard PowerPC register sets.
1715 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
1716 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
1717 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
1718 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
1719 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
1720 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
1721 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
1722 target descriptions for PowerPC processors.
1724 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1726 * target-descriptions.c (tdesc_predefined_types): New.
1727 (tdesc_named_type): Use it.
1728 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
1729 (_intialize_target_descriptions): Register "maint print c-tdesc".
1730 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
1731 (cfiles, %.c): New rules.
1732 * features/arm-with-iwmmxt.c, features/mips-linux.c,
1733 features/mips64-linux.c: New generated files.
1735 * arm-linux-nat.c: Include preparsed description instead of
1737 (super_xfer_partial, arm_linux_xfer_partial): Remove.
1738 (arm_linux_read_description): New function.
1739 (_initialize_arm_linux_nat): Set to_read_description instead of
1740 to_xfer_partial. Initialize preparsed description.
1741 * config/arm/linux.mh (TDEP_XML): Delete.
1742 * mips-linux-nat.c: Include preparsed descriptions instead of
1744 (super_xfer_partial, mips_linux_xfer_partial): Remove.
1745 (mips_linux_read_description): New function.
1746 (_initialize_mips_linux_nat): Set to_read_description instead of
1747 to_xfer_partial. Initialize preparsed description.
1748 * config/mips/linux.mh (TDEP_XML): Delete.
1749 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
1750 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
1751 (mips64_linux_c): New macros.
1752 (arm-linux-nat.o, mips-linux-nat.o): Update.
1754 2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
1756 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
1757 Replace xasprintf by xstrprintf.
1758 symfile-mem.c (add_vsyscall_page): Ditto.
1760 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1762 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
1763 replacing use of global current_gdbarch.
1764 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
1765 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
1767 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
1768 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
1769 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
1770 (ia64_sigtramp_frame_cache): Update caller.
1772 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1774 * gdbarch.sh (deprecated_use_struct_convention): Remove.
1775 (extract_return_value, store_return_value): Remove.
1776 (return_value): Remove default implementation.
1777 * gdbarch.c, gdbarch.h: Regenerate.
1779 * stack.c (return_command): Remove compatibility hack.
1780 * arch-utils.c (legacy_return_value): Remove.
1781 * arch-utils.h (legacy_return_value): Likewise.
1783 * arch-utils.c (always_use_struct_convention): Remove.
1784 * arch-utils.h (always_use_struct_convention): Likewise.
1785 * value.c (generic_use_struct_convention): Remove.
1786 * defs.h (generic_use_struct_convention): Likewise.
1788 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1790 * avr-tdep.c (avr_return_value): New function.
1791 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
1792 set_gdbarch_extract_return_value.
1794 * fvr-tdep.c (frv_return_value): New function.
1795 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
1796 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
1797 and set_gdbarch_deprecated_use_struct_convention.
1799 * ia64-tdep.c (ia64_use_struct_convention): Make static.
1800 Add check for structure, union, or array types.
1801 (ia64_extract_return_value): Make static.
1802 (ia64_store_return_value): Make static. Support multi-word values.
1803 (ia64_return_value): New function.
1804 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
1805 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
1806 and set_gdbarch_deprecated_use_struct_convention.
1808 2007-10-12 Joel Brobecker <brobecker@adacore.com>
1810 * solib-target.c (solib_target_parse_libraries)
1811 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
1813 2007-10-12 Jim Blandy <jimb@codesourcery.com>
1815 * serial.h (struct serial_ops): Document read_prim to return zero
1817 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
1818 read_prim returns zero, not SERIAL_TIMEOUT.
1820 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1822 * alpha-mdebug-tdep.c: Include "gdb_string.h".
1823 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
1824 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
1825 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
1827 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
1828 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
1829 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
1830 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
1831 * config/alpha/tm-alpha.h: Remove file.
1833 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1835 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
1836 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
1838 * config/pa/tm-hppa.h: Delete file.
1839 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
1840 * config/pa/hppahpux.mt: Likewise.
1841 * config/pa/hppa.mt: Likewise.
1842 * config/pa/linux.mt: Likewise.
1843 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
1845 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1847 * config/arm/nm-nbsdaout.h: Remove file.
1848 * config/nm-nbsdaout.h: Likewise.
1849 * config/nm-nbsd.h: Likewise.
1851 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1853 * block.h (struct block): Remove "gcc_compile_flag" member.
1854 (BLOCK_GCC_COMPILED): Remove.
1855 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
1856 * buildsym.c (finish_block): Do not set it.
1857 * symmisc.c (dump_symtab_1): Do not dump it.
1859 * value.h (using_struct_return): Remove "gcc_p" argument.
1860 * value.c (using_struct_return): Likewise.
1861 * eval.c (evaluate_subexp_standard): Adapt callers.
1862 * infcall.c (call_function_by_hand): Likewise.
1863 * stack.c (return_command): Likewise.
1864 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
1866 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
1867 * gdbarch.c, gdbarch.h: Regenerate.
1868 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
1869 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
1870 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
1871 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
1872 (push_dummy_code, call_function_by_hand): Adapt callers.
1874 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1876 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
1877 (finish_command_continuation, finish_command): Adapt callers.
1879 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1881 * infcall.c (call_function_by_hand): Remove special handling
1882 for HP aCC compiled code.
1884 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1886 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
1887 reference. Fix endianness bugs.
1888 (cris_reg_struct_has_address): Remove.
1889 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
1890 and set_gdbarch_deprecated_use_struct_convention calls.
1892 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
1893 * gdbarch.c, gdbarch.h: Regenerate.
1894 * infcall.c (call_function_by_hand): Remove handling of
1895 deprecated_reg_struct_has_addr.
1897 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
1898 Kazu Hirata <kazu@codesourcery.com>
1900 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
1901 checking watchpoint resources.
1903 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
1905 * memattr.c (inaccessible_by_default): Change the initial
1908 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
1911 * coffread.c (read_one_sym): Check for read errors.
1913 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
1915 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
1916 instead of "Linux 2.6.19" in comment.
1917 (linux_xfer_partial): Use "GNU/Linux target" instead of
1918 "Linux target" in comment.
1919 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
1920 (m68k_linux_get_sigtramp_info): Likewise.
1922 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
1924 * MAINTAINERS (language support): List Joel and Paul as
1927 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
1929 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
1931 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
1932 not set DEPRECATED_TM_FILE.
1933 * config/arm/tm-arm.h: Delete file.
1935 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
1937 * MAINTAINERS (Write After Approval): Add self.
1939 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
1941 * buildsym.c (record_line): Remove empty lines followed by
1942 end-of-sequence markers.
1944 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
1946 * configure.tgt: Recognize fido-*-elf.
1948 2007-10-10 Joel Brobecker <brobecker@adacore.com>
1952 2007-10-10 Markus Deuling <deuling@de.ibm.com>
1954 * stack.c (print_frame_args, frame_info, return_command): Use
1955 get_regcache_arch or get_frame_arch to get at the current architecture
1956 by regcache or by frame, respectively.
1958 2007-10-10 Markus Deuling <deuling@de.ibm.com>
1960 * rs6000-nat.c (fetch_register, store_register)
1961 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
1962 get_regcache_arch to get at the current architecture by regcache.
1964 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
1965 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
1966 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
1967 current_gdbarch by gdbarch.
1968 (rs6000_skip_trampoline_code, rs6000_register_to_value)
1969 (rs6000_value_to_register): Use get_frame_arch to get at the current
1970 architecture by frame_info.
1972 2007-10-10 Markus Deuling <deuling@de.ibm.com>
1974 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
1975 get_regcache_arch to get at the current architecture by regcache.
1977 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1978 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
1979 get_regcache_arch to get at the current architecture by regcache.
1981 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
1982 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1983 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
1984 current architecture by regcache.
1986 2007-10-10 Markus Deuling <deuling@de.ibm.com>
1988 * remote-mips.c (mips_wait, mips_fetch_registers)
1989 (mips_store_registers): Use get_regcache_arch to get at the
1990 current architecture by regcache.
1992 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
1993 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
1994 get at the current architecture by regcache.
1995 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
1996 architecture by frame_info.
1998 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
1999 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
2000 the current architecture by regcache.
2002 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2003 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
2004 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
2005 current architecture by frame_info.
2006 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
2007 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
2008 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
2009 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
2010 get at the current architecture by regcache.
2012 * mips-linux-nat.c (mips_linux_register_addr)
2013 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
2014 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
2015 (mips64_linux_regsets_fetch_registers)
2016 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
2017 the current architecture by regcache.
2019 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
2020 get at the current architecture by frame_info.
2022 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2024 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
2025 current architecture by regcache.
2026 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
2027 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
2028 (mips_stub_frame_cache, mips_read_fp_register_single)
2029 (mips_read_fp_register_double, mips_print_fp_register)
2030 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
2031 at the current architecture by frame_info.
2032 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
2033 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
2034 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
2035 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
2036 (mips_o32_push_dummy_call, mips_o32_return_value)
2037 (mips_o64_push_dummy_call, mips_o64_return_value)
2038 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
2041 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2043 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
2044 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
2045 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
2046 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
2047 (xtensa_register_write_masked, xtensa_register_read_masked)
2048 (xtensa_supply_gregset, xtensa_store_return_value)
2049 (xtensa_extract_return_value): Use get_regcache_arch to get at the
2050 current architecture by regcache.
2051 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
2052 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
2053 architecture by frame_info.
2055 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2057 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
2058 (thumb_analyze_prologue): Move pv_area_store_would_trash call
2059 out of loop. Do not set cache->frameoffset.
2060 (arm_scan_prologue): Use prologue-value mechanism. Do not set
2061 frameoffset. Simplify framesize.
2062 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
2064 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
2066 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2068 * target.c (update_current_target): Call setup_target_debug.
2069 (push_target): Do not call it here.
2071 2007-10-09 Michael Snyder <msnyder@specifix.com>
2073 * MAINTAINERS: Update my email address.
2075 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2077 * xtensa-tdep.c: Replace following current-gdbarch based macros by
2079 (xtensa_pseudo_register_read)
2080 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
2081 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
2082 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
2083 (xtensa_pseudo_register_read)
2084 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
2085 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
2086 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
2087 (xtensa_frame_prev_register): NUM_AREGS.
2088 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
2089 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
2090 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
2091 (xtensa_supply_gregset, xtensa_frame_cache)
2092 (xtensa_frame_prev_register): WS_REGNUM.
2093 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
2094 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
2095 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
2096 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2097 (xtensa_register_reggroup_p): REGMAP.
2098 (call0_track_op): LITBASE_REGNUM.
2099 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
2100 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
2101 (xtensa_frame_prev_register, AREG_NUMBER)
2102 (xtensa_register_type): AR_BASE.
2103 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
2104 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
2105 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2106 (xtensa_frame_cache, xtensa_frame_prev_register)
2107 (xtensa_extract_return_value, xtensa_store_return_value)
2108 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
2109 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
2110 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
2111 (xtensa_frame_prev_register, xtensa_push_dummy_call)
2112 (call0_frame_cache): A1_REGNUM.
2113 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
2114 (xtensa_push_dummy_call): A4_REGNUM.
2115 (ARGS_FIRST_REG): A6_REGNUM.
2116 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2117 (xtensa_frame_prev_register): A15_REGNUM.
2118 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
2119 them in the appropriate source file:
2120 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
2121 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
2122 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
2123 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
2124 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
2125 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
2126 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
2127 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
2128 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
2129 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
2130 A13_REGNUM, A14_REGNUM, A15_REGNUM.
2132 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2134 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
2135 the current architecture by frame_info.
2136 (h8300_frame_prev_register
2137 (h8300_print_register): Replace current_gdbarch by gdbarch.
2138 (h8300_print_registers_info, h8300_register_type)
2139 (h8300_register_type): Likewise.
2141 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2143 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
2144 the current architecture by regcache.
2145 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
2146 (i386_linux_fetch_inferior_registers)
2147 (i386_linux_store_inferior_registers): Likewise.
2148 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
2149 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
2150 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2151 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
2152 (i386_extract_return_value, i386_store_return_value): Likewise.
2153 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
2154 the current architecture by frame_info.
2155 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
2156 (i386_register_to_value, i386_value_to_register): Likewise.
2158 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2160 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
2161 the current architecture by regcache.
2162 (monitor_store_register, monitor_store_registers): Likewise.
2164 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2166 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
2167 the current architecture by regcache.
2169 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2171 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
2174 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2176 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
2177 architecture by frame.
2178 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
2179 (inside_main_func, frame_sp_unwind): Likewise.
2181 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
2183 * solib-svr4.c (enable_break): Add the dynamic linker also if
2186 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2188 * MAINTAINERS (Write After Approval): Add self.
2190 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2192 * stabsread.c (read_huge_number): Initialize local variable to 0.
2194 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
2196 * p-lang.h (pascal_main_name): Add declaration.
2197 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
2198 (GPC_MAIN_PROGRAM_NAME_2): New constants.
2199 (pascal_main_name): New function.
2200 * symtab.c: Include p-lang.h.
2201 (find_main_name): Add call to pascal_main_name.
2202 * Makefile.in (symtab.o): Add dependency on p-lang.h.
2204 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2206 * stabsread.c (read_huge_number): Fix handling of octal
2207 representation when the bit width is known.
2208 (read_range_type): Record unsigned integral types with their size,
2209 when the type size is known.
2211 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
2213 * MAINTAINERS (Write After Approval): Add self.
2215 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2217 * breakpoint.c (print_one_breakpoint_location): ARI fix:
2218 Replace asprintf by xstrprintf.
2220 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2222 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
2223 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
2225 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2227 * linux-fork.c: Move "gdb_wait.h" include back to the position of
2228 <sys/wait.h> include before last commit.
2230 2007-10-08 Maciej W. Rozycki <macro@mips.com>
2232 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
2234 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2236 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
2237 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
2238 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
2239 (store_regs_user_thread, store_regs_kernel_thread): Use
2240 get_regcache_arch or get_frame_arch to get at the current architecture
2241 by regcache or by frame, respectively.
2243 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2245 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
2246 (sh64_pseudo_register_read, sh64_pseudo_register_write)
2247 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
2248 (sh64_print_register, sh64_media_print_registers_info)
2249 (sh64_compact_print_registers_info, sh64_unwind_sp)
2250 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
2251 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
2252 (sh64_frame_prev_register): Use FRAME to recognize current
2255 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2257 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2258 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2259 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
2260 current_gdbarch by gdbarch.
2261 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
2262 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2263 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
2264 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
2265 recognize current architecture.
2267 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2269 * remote.c (init_remote_state, fetch_register_using_p)
2270 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
2271 (store_register_using_P, store_registers_using_G)
2272 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
2273 get at the current architecture by regcache or by frame, respectively.
2275 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2277 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
2278 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
2279 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
2280 get_regcache_arch or get_frame_arch to get at the current architecture
2281 by regcache or by frame, respectively.
2282 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2283 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
2284 (store_register, old_store_inferior_registers, supply_gregset)
2285 (supply_fpregset, fill_fpregset): Likewise.
2286 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
2287 Replace current_gdbarch by gdbarch.
2289 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2291 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
2292 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
2293 get_frame_arch to get at the current architecture by regcache or by
2294 frame, respectively.
2296 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2298 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
2299 Replace current_gdbarch by gdbarch.
2300 * ia64-tdep.c (ia64_frame_prev_register
2301 (ia64_sigtramp_frame_prev_register)
2302 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
2303 get_frame_arch to get at the current architecture by regcache or by
2304 frame, respectively.
2305 * ia64-linux-nat.c (ia64_linux_fetch_register)
2306 (ia64_linux_fetch_registers, ia64_linux_store_register)
2307 (ia64_linux_store_registers): Likewise.
2309 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2311 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
2312 current_gdbarch by gdbarch.
2313 * hppa-linux-nat.c (fetch_register, store_register)
2314 (hppa_linux_fetch_inferior_registers)
2315 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
2316 get_frame_arch to get at the current architecture by regcache or by
2317 frame, respectively.
2318 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
2319 (hppa_hpux_unwind_adjust_stub): Likewise.
2320 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
2321 (hppa_hpux_fetch_inferior_registers)
2322 (hppa_hpux_store_inferior_registers): Likewise.
2324 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2326 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
2327 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
2328 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
2329 or get_frame_arch to get at the current architecture by regcache or by
2330 frame, respectively.
2331 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
2332 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
2333 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
2334 current_gdbarch by gdbarch.
2336 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2338 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
2339 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
2340 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
2341 get at the current architecture by regcache or by·frame, respectively.
2342 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
2345 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2347 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
2348 Use get_regcache_arch or get_frame_arch to get at the current
2349 architecture by regcache or by frame, respectively.
2350 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2351 * amd64-nat.c (amd64_supply_native_gregset)
2352 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
2354 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2356 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
2358 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2359 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
2360 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
2361 get_frame_arch to get at the current architecture by regcache or by
2362 frame, respectively.
2363 * alpha-nat.c (fetch_osf_core_registers): Likewise.
2365 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2367 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
2368 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
2369 current_gdbarch by gdbarch.
2370 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
2372 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2374 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
2375 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
2376 * regcache.c (regcache_raw_write): Use get_regcache_arch or
2377 get_frame_arch to get at the current architecture by regcache or by
2378 frame, respectively.
2380 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2382 * findvar.c (value_of_register, locate_var_value): Use
2383 get_regcache_arch or get_frame_arch to get at the current architecture
2384 by regcache or by frame, respectively.
2385 * findvar.c (default_value_from_register, value_from_register): Replace
2386 current_gdbarch by gdbarch.
2388 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2390 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
2392 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2394 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
2395 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
2397 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
2399 * remote.c (get_offsets): Only call free_symfile_segment_data if
2402 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
2404 * objc-exp.y: ARI fix: remove 4 PARAMS.
2406 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
2408 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
2409 news. Mention XML support for M68K in GDB 6.7.
2411 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
2413 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
2415 (init_vector_type): Use builtin_type_int32.
2417 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
2419 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
2420 size to enable bi-arch generate-core-file support.
2422 2007-10-02 Markus Deuling <deuling@de.ibm.com>
2424 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
2426 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2428 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
2430 * tui/tui-win.c (tui_initialize_win): New function for
2431 initializing tui's SIGWINCH signal handler.
2432 * tui/tui-win.h (tui_initialize_win): Declare.
2434 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
2436 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
2437 pointer to uintptr_t before casting to CORE_ADDR.
2439 2007-10-02 Markus Deuling <deuling@de.ibm.com>
2441 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
2443 2007-10-02 Mark Mitchell <mark@codesourcery.com>
2445 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
2446 * ser-mingw.c (enum select_thread_state): New type.
2447 (struct ser_console_state): Add have_started and thread_state.
2448 (select_thread_wait): New function.
2449 (thread_fn_type): New type.
2450 (create_select_thread): New function.
2451 (destroy_select_thread): Likewise.
2452 (start_select_thread): Likewise.
2453 (stop_select_thread): Likewise.
2454 (console_select_thread): Use new functions.
2455 (pipe_select_thread): Likewise.
2456 (file_select_thread): Likewise.
2457 (ser_console_wait_handle): Likewise.
2458 (ser_console_done_wait_handle): Likewise.
2459 (ser_console_close): Likewise.
2460 (free_pipe_state): Likewise.
2461 (pipe_wait_handle): Likewise.
2462 (pipe_done_wait_handle): Likewise.
2463 (struct net_windows_state): Derive from ser_console_state.
2464 (net_windows_select_thread): Use new functions.
2465 (net_windows_wait_handle): Likewise.
2466 (net_windows_done_wait_handle): Likewise.
2467 (net_windows_close): Likewise.
2469 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
2471 * inflow.c (terminal_ours_1): Remove useless line.
2473 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
2475 * mips-tdep.c (mips_read_fp_register_double): Correct check for
2477 (mips_print_fp_register): Correct check for even FP registers.
2478 (mips_virtual_frame_pointer): New function.
2479 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
2481 2007-09-30 Mike Frysinger <vapier@gentoo.org>
2483 * value.h (lookup_only_internalvar): New prototype.
2484 (create_internalvar): Likewise.
2485 * value.c (lookup_only_internalvar): New function.
2486 (create_internalvar): Likewise.
2487 (lookup_internalvar): Use new lookup_only_internalvar and
2488 create_internalvar functions.
2489 * parse.c (write_dollar_variable): Look up $ symbols in internal
2490 table first rather than last.
2492 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
2494 * linux-nat.c (linux_nat_new_thread): New variable.
2495 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
2496 linux_nat_switch_fork.
2497 (lwp_list): Make public.
2498 (add_lwp): Call linux_nat_new_thread.
2499 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
2501 (resume_callback): Clear lp->siginfo. Remove unused variable.
2502 (linux_nat_resume): Assert that the LWP list is already initialized.
2504 (save_siginfo): New.
2505 (stop_wait_callback, linux_nat_wait): Call it.
2506 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
2507 * linux-nat.h (struct lwp_info): Add siginfo.
2508 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
2511 * amd64-linux-nat.c (amd64_linux_dr): New.
2512 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
2513 (amd64_linux_dr_set): Take a PTID argument.
2514 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
2515 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
2516 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
2517 (amd64_linux_new_thread): New.
2518 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
2519 * i386-linux-nat.c (i386_linux_dr): New.
2520 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
2521 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
2522 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
2523 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
2524 (i386_linux_new_thread): New.
2525 (i386_linux_resume): Remove unnecessary PID check.
2526 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
2527 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
2528 (fetch_debug_register, fetch_debug_register_pair): Delete.
2529 (debug_registers): New.
2530 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
2531 ALL_LWPS and debug_registers.
2532 (ia64_linux_new_thread): New.
2533 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
2534 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
2535 * ppc-linux-nat.c (last_stopped_data_address): Delete.
2536 (saved_dabr_value): New.
2537 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
2539 (ppc_linux_new_thread): New.
2540 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
2541 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
2542 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
2543 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
2545 (s390_fix_watch_points): Take a PTID argument.
2546 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
2547 (_initialize_s390_nat): Call linux_nat_set_new_thread.
2549 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
2550 Jeff Johnston <jjohnstn@redhat.com>
2552 * breakpoint.c (watchpoints_triggered): New.
2553 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
2554 Check watchpoint_triggered instead. Combine handling for software
2555 and hardware watchpoints. Do not use target_stopped_data_address
2556 here. Always check a watchpoint if its scope breakpoint triggers.
2557 Do not stop for thread or overlay events. Improve check for
2558 triggered watchpoints without a value change.
2559 (watch_command_1): Insert the scope breakpoint first. Link the
2560 scope breakpoint to the watchpoint.
2561 * breakpoint.h (enum watchpoint_triggered): New.
2562 (struct breakpoint): Add watchpoint_triggered.
2563 (bpstat_stop_status): Update prototype.
2564 (watchpoints_triggered): Declare.
2565 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
2566 (stepped_after_stopped_by_watchpoint): Delete.
2567 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
2568 local. Handle infwait_step_watch_state. Update calls to
2569 bpstat_stop_status. Use watchpoints_triggered to check
2571 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
2572 (remote_stopped_data_address): Do not check it.
2574 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
2576 * configure.ac: Add $LIBINTL when testing libbfd.
2577 * configure: Regenerated.
2579 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
2581 * NEW: Mention pending breakpoint changes and
2582 support for breakpoints at multiple locations.
2584 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
2586 * arm-linux-tdep.c (arm_linux_software_single_step): New.
2587 (arm_linux_init_abi): Use it.
2588 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
2589 condition correctly.
2590 * arm-tdep.h (arm_get_next_pc): Declare.
2591 * Makefile.in (arm-linux-tdep.o): Update.
2593 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
2595 * varobj.c (install_new_value): Don't
2596 call value_get_print_value when a value is
2597 lazy. Update the print_value member in a
2600 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
2602 * breakpoint.c (create_breakpoint): Set
2603 condition on each location, not on the first
2604 location of breakpoint.
2606 2007-09-26 Jim Blandy <jimb@codesourcery.com>
2608 * remote.c (getpkt_sane): Fix error message. No animals were
2609 harmed in the making of this debugger.
2611 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2613 * p-typeprint.c: Fix 11 ARI reported problems.
2614 (pascal_print_type): Fix 4 operator at end of line.
2615 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
2616 using strncmp function.
2617 (pascal_type_print_base): Fix 2 operator at end of line.
2618 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
2619 using strncmp function.
2622 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2624 * Fix PR pascal/2231
2625 dwarf2read.c (read_subroutine_type):
2626 All pascal functions are prototyped.
2628 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2630 * Fix PR pascal/2283
2631 p-valprint.c (pascal_val_print): correct current language check.
2632 Also print array of char as strings.
2635 2007-09-26 David Ung <davidu@mips.com>
2636 Maciej W. Rozycki <macro@mips.com>
2638 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
2640 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
2642 * p-exp.y: Fix 12 ARI reported problems.
2643 (name_not_typename): Fix 2 operator at end of line issues.
2644 (yylex): Fix 3 operator at end of line issues.
2645 Replace 7 DEPRECATED_STREQ macros using strcmp function.
2647 2007-09-25 David Ung <davidu@mips.com>
2648 Maciej W. Rozycki <macro@mips.com>
2650 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
2651 rules return composite types in registers as appropriate.
2653 2007-09-24 Jim Blandy <jimb@codesourcery.com>
2655 * symfile.h (struct symfile_segment_data): Doc fixes.
2656 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
2657 Assert that we were passed some loaded segment addresses,
2658 and that sections' segment numbers are valid.
2659 Simplify offset calculation.
2660 * remote.c (get_offsets): Clarify selection of relocate-by-segment
2661 strategy, and set num_segments correctly. Delete redundant
2662 assignments to do_sections.
2664 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
2666 * frame.c (get_prev_frame_1): Also check for PC in the same register.
2668 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
2670 * breakpoint.c (remove_sal): New.
2671 (expand_line_sal_maybe): New.
2672 (create_breakpoints): Call expand_line_sal_maybe.
2673 (clear_command): Add comment.
2674 (breakpoint_re_set_one): Call expand_line_sal_maybe.
2675 * linespec.c (decode_indirect): Set explicit_pc to 1.
2676 (decode_all_digits): Set explicit_line to 1.
2677 (append_expanded_sal): New.
2678 (expand_line_sal): New.
2679 * linespec.h (expand_line_sal): Declare.
2680 * symtab.c (init_sal): Initialize explicit_pc
2682 * symtab.h (struct symtab_and_line): New fields
2683 explicit_pc and explicit_line.
2685 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
2687 * infcall.c (call_function_by_hand): Handle language-specific
2688 pass and return by reference.
2690 * cp-abi.c (cp_pass_by_reference): New.
2691 * cp-abi.h (cp_pass_by_reference): Declare.
2692 (struct cp_abi_ops): Add pass_by_reference.
2693 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
2694 (init_gnuv3_ops): Set pass_by_reference.
2696 * language.c (language_pass_by_reference): New.
2697 (default_pass_by_reference): New.
2698 (unknown_language_defn, auto_language_defn, local_language_defn): Add
2699 default_pass_by_reference.
2700 * langauge.h (struct language_defn): Add la_pass_by_reference.
2701 (language_pass_by_reference, default_pass_by_reference): Declare.
2702 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
2703 * c-lang.c (c_language_defn, asm_language_defn)
2704 (minimal_language_defn): Likewise.
2705 (cplus_language_defn): Add cp_pass_by_reference.
2706 * f-lang.c (f_language_defn): Add default_pass_by_reference.
2707 * jv-lang.c (java_language_defn): Likewise.
2708 * m2-lang.c (m2_language_defn): Likewise.
2709 * objc-lang.c (objc_language_defn): Likewise.
2710 * p-lang.c (pascal_language_defn): Likewise.
2711 * scm-lang.c (scm_language_defn): Likewise
2713 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
2715 Allow a code breakpoint to have several locations
2717 * breakpoint.h (enum enable_state): Remove the
2718 bp_shlib_disabled enumerator.
2719 (struct bp_location): New members shlib_disabled,
2720 global_next, enabled and function_name.
2721 Rename pending to condition_not_parsed.
2723 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
2724 (ALL_BP_LOCATIONS_SAFE): Likewise.
2725 (breakpoint_enabled): Don't check for pending.
2726 (condition_command): Free and update all locations of
2728 (insert_bp_location): Adjust.
2729 (software_breakpoint_inserted_here_p): Don't care
2730 if breakpoint is enabled, as soon as it's inserted.
2731 (print_it_typical): Print bpstat's location, not
2732 bpstat's breakpoint's location.
2733 (bpstat_stop_status): Iterate over all locations, not
2735 (print_breakpoint_location): New.
2736 (print_one_breakpoint): Renamed to
2737 (print_one_breakpoint_location): ...this. Take
2738 parameters to describe which location is being
2739 printed. Modify code to properly print header
2740 for several locations and individual locations.
2741 (print_one_breakpoint): Print all locations.
2742 (breakpoint_has_pc): New.
2743 (describe_other_breakpoints): Use the above.
2744 (check_duplicates): Renamed to...
2745 (check_duplicates_for): .. this.
2746 (check_duplicates): Use check_duplicates_for.
2747 (allocate_bp_location): Adjust.
2748 (set_raw_breakpoint_without_location): New,
2749 extracted from set_raw_breakpoint.
2750 (set_breakpoint_location_function): New.
2751 (set_raw_breakpoint): Use
2752 set_raw_breakpoint_without_location.
2753 (make_breakpoint_permanent): Mark all locations
2755 (disable_breakpoints_in_shlibs): Iterate over
2757 (disable_breakpoints_in_unloaded_shlib): Likewise.
2758 (re_enable_breakpoints_in_shlibs): Likewise.
2759 (mention): Say "pending" when breakpoint has
2760 zero locations. If breakpoint has more than one
2762 (add_location_to_breakpoint): New.
2763 (create_breakpoint): Accept symtabs_and_lines, not
2764 symtab_and_line. Pass extra sals to
2765 add_location_to_breakpoint.
2766 (create_breakpoints): Pass symtabs_and_lines to
2768 (break_command_1): Make pending breakpoints
2769 have zero locations.
2770 (do_captured_breakpoint): Remove wrong allocation.
2771 (clear_command): Iterate over all locations.
2772 (unlink_locations_from_global_list): Renamed
2773 from unlink_location_from_global_list. Remove
2775 (delete_breakpoint): Remove all locations.
2776 Iterate over all locations when deciding which
2777 other location to re-enable.
2778 (all_locations_are_pending): New.
2779 (update_breakpoint_locations): Renamed from
2780 update_breakpoint_location. Try to match old
2781 and new locations using names of containing
2783 (breakpoint_re_set_one): Adjust.
2784 (find_location_by_number): New.
2785 (disable_command): Allow disabling individual location.
2786 (enable_command): Allow enabling individual location.
2787 * breakpoint.c: Adjust all uses of breakpoint's
2788 enable state to for bp_shlib_disabled change.
2790 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
2792 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
2793 (resolve_pending_breakpoint): Remove.
2794 (re_enable_breakpoints_in_shlibs): Remove.
2795 (unlink_locations_from_global_list): New.
2796 (update_breakpoint_locations): New.
2797 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
2798 Use parse_condition and update_breakpoint_location to
2799 reset breakpoint. Ignore 'symbol not found' error from
2801 (breakpoint_re_set): Don't emit newline before the
2802 reason why breakpoint is not reset.
2803 (do_enable_breakpoint): Don't specially process pending
2805 (free_bp_location): New.
2806 (break_command_1): For pending breakpoints, initialize
2807 all fields of a sal with zeroes.
2808 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
2809 * infcmd.c (post_create_inferior): Don't call
2810 re_enable_breakpoints_in_shlibs.
2811 * infrun.c (handle_inferior_event): Likewise.
2812 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2813 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2814 * win32-nat.c (get_win32_debug_event): Likewise.
2816 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
2818 * breakpoint.c (create_breakpoint): Split from
2819 create_breakpoints, implementing most of its logic.
2820 Take just a single sal, single address string and
2821 single condition. Do not take parsed condition at
2823 (create_breakpoints): Just call create_breakpoint
2825 (find_condition_and_thread): New.
2826 (break_command_1): Use find_condition_and_thread.
2827 Do not keep parsed conditions.
2828 (do_captured_breakpoint): Don't convert
2829 condition string to struct expression.
2831 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
2833 * breakpoint.h (struct breakpoint): Move the cond
2835 (struct bp_location): Here.
2836 * breakpoint.c (condition_command, bpstat_stop_status)
2837 (print_one_breakpoint, allocate_bp_location)
2838 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
2839 (create_exec_event_catchpoint, create_breakpoints)
2840 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
2841 (create_ada_exception_breakpoint, set_breakpoint_sal)
2842 (delete_breakpoint, breakpoint_re_set_one): Adjust.
2843 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
2845 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
2847 Associate bp_stat with bp_location, not breakpoint.
2848 * breakpoint.h (breakpoint_at): Change type
2850 * breakpoint.c (bpstat_alloc): Take bp_location,
2852 (bpstat_find_breakpoint): Look at bpstat's location's
2853 owner, not at bpstat->breakpoint_at.
2854 (bpstat_find_step_resume_breakpoint): Likewise.
2855 (bpstat_num): Likewise.
2856 (print_it_typical): Likewise.
2857 (print_bp_stop_message): Likewise.
2858 (watchpoint_check): Likewise.
2859 (bpstat_what): Likewise.
2860 (bpstat_get_triggered_catchpoints): Likewise.
2861 (breakpoint_auto_delete): Likewise.
2862 (delete_breakpoint): Likewise.
2863 (bpstat_stop_status): Pass location, not breakpoint,
2864 to bpstat_alloc. Look at bpstat's location's
2865 owner, not at bpstat->breakpoint_at.
2867 2007-09-21 Jim Blandy <jimb@codesourcery.com>
2869 * macrotab.h (new_macro_table): Document that removing information
2870 from an obstack/bcache-managed macro table leaks memory.
2871 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
2872 that data is never freed in obstack/bcache-managed macro tables,
2873 just leak the storage.
2874 (macro_undef): If we're undefining a macro at exactly the same
2875 source location that we defined it, simply remove the definition
2878 2007-09-21 Joel Brobecker <brobecker@adacore.com>
2880 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
2881 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
2882 Adjust the struct sym_fns object accordingly by setting
2883 the new field to NULL.
2884 * xcoffread.c (aix_process_linenos): Make static.
2885 (xcoff_sym_fns): Set new field to aix_process_linenos.
2886 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
2887 by call to new the new sym_fns sym_read_linetable function.
2888 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
2889 * config/rs6000/tm-rs6000.h: Delete.
2891 2007-09-21 David Ung <davidu@mips.com>
2892 Maciej W. Rozycki <macro@mips.com>
2894 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
2895 rules do not treat composite types specially.
2897 2007-09-20 Maciej W. Rozycki <macro@mips.com>
2899 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
2900 (mips16_in_function_epilogue_p): Likewise.
2901 (mips_in_function_epilogue_p): Likewise.
2902 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
2904 2007-09-19 Joel Brobecker <brobecker@adacore.com>
2906 * configure.ac: Add check for "etext".
2907 * configure, config.in: Regenerate.
2908 * maint.c (TEXTEND): Only define if either _etext or etext
2910 Disable the profiling functionality if TEXTEND is not defined.
2912 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
2914 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
2915 address register. Correct the call to frame_id_build.
2916 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
2919 2007-09-18 Joel Brobecker <brobecker@adacore.com>
2921 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
2922 the linetable past the function end.
2924 2007-09-18 James E. Wilson <wilson@specifix.com>
2926 * MAINTAINERS: Update my email address.
2928 2007-09-18 Jerome Guitton <guitton@adacore.com>
2930 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
2931 (inf_ttrace_delete_dying_threads_callback): New function.
2932 (inf_ttrace_resume): After resuming the execution, iterate over
2933 the dying threads to delete them for the thread list.
2934 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
2935 mark the corresponding thread as dying instead of removing it
2936 from the thread list.
2937 (inf_ttrace_thread_alive): return 0 for dying threads.
2939 2007-09-17 Joel Brobecker <brobecker@adacore.com>
2941 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
2942 that return_frame is not null.
2944 2007-09-17 Joel Brobecker <brobecker@adacore.com>
2946 * solib-svr4.c: Add include of "auxv.h".
2947 (enable_break): Use the AT_BASE auxiliary entry if available.
2948 * Makefile.in (solib-svr4.o): Update dependencies.
2950 2007-09-17 Joel Brobecker <brobecker@adacore.com>
2952 * NEWS: Create a new section for the next release branch.
2953 Rename the section of the current branch, now that it has
2956 2007-09-17 Jerome Guitton <guitton@adacore.com>
2958 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
2959 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
2961 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
2963 * mi/mi-cmds.c (mi_cmds): Register -list-features.
2964 * mi/mi-cmds.h (mi_cmd_list_features): New.
2965 * mi/mi-main.c (mi_cmd_list_features): New.
2967 2007-09-11 Joel Brobecker <brobecker@adacore.com>
2969 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
2970 * version.in: Bump version to 6.7.50-20070911-cvs.
2972 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
2974 * thread.c (free_thread): Do not delete the step resume breakpoint
2977 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
2979 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
2980 * corelow.c (core_read_description): New.
2981 (init_core_ops): Set to_read_description.
2982 * gdbarch.sh: Add gdbarch_core_read_description.
2983 * mips-linux-tdep.c (mips_linux_core_read_description): New.
2984 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
2985 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
2986 (mips_register_g_packet_guesses): Use them.
2987 (_initialize_mips_tdep): Initialize them.
2988 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
2989 * gdbarch.h, gdbarch.c: Regenerated.
2991 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2993 * infrun.c (stepping_past_breakpoint): New global variable.
2994 (stepping_past_breakpoint_ptid): Likewise.
2995 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
2996 Only switch threads if we need to single-step over a breakpoint hit
2997 in the previously selected thread. If stepping, remember previous
2998 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
2999 switch_to_thread instead of copying its contents.
3000 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
3001 prepare_to_proceed returns true.
3002 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
3003 (context_switch): Call switch_to_thread.
3004 (handle_inferior_event): Switch back to previous thread if requested
3005 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
3006 * gdbthread.h (switch_to_thread): Add prototype.
3007 * thread.c (switch_to_thread): Make global.
3009 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
3011 * p-valprint.c: Fix 7 ARI reported problems.
3012 (pascal_val_print): Fix one operator at end of line issue.
3013 Use paddress function to remove use of
3014 deprecated_print_address_numeric function (2 times).
3015 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
3016 (pascal_value_print): Fix 3 operator at end of line issues.
3018 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
3021 * arm-tdep.c (arm_in_call_stub): Delete.
3022 (arm_skip_stub): Handle from_arm and from_thumb stubs.
3024 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
3026 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
3029 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3030 Jim Blandy <jimb@codesourcery.com>
3032 * NEWS: Update description of string changes. Mention print/s.
3033 * c-valprint.c (textual_element_type): New.
3034 (c_val_print): Use it. Do not skip address printing for pointers
3035 with a string format.
3036 (c_value_print): Doc update.
3037 * dwarf2read.c (read_array_type): Use make_vector_type.
3038 * gdbtypes.c (make_vector_type): New.
3039 (init_vector_type): Use it.
3040 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
3041 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
3042 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
3043 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
3044 (make_vector_type): New.
3045 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
3046 Call the language print routine for string format.
3047 (print_scalar_formatted): Call val_print for string format. Handle
3048 unsigned original types for char format.
3049 (validate_format): Do not reject string format.
3050 * stabsread.c (read_type): Use make_vector_type.
3051 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
3053 2007-09-04 Michael Snyder <msnyder@access-company.com>
3055 * expprint.c (print_subexp_standard): Check strchr for null.
3056 * Makefile.in (expprint.o): Depend on gdb_assert.h.
3058 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
3060 * stabsread.c (patch_block_status): Guard against null.
3061 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
3063 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3065 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
3066 in internal error message.
3068 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3069 Daniel Jacobowitz <dan@codesourcery.com>
3071 * infcmd.c (post_create_inferior): Update comment.
3072 (run_command_1): Always call post_create_inferior with 0 as
3075 * i386-cygwin-tdep.h: New.
3076 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
3077 (win32_xfer_shared_library): Make it extern.
3079 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
3081 (win32_so_ops): Delete.
3082 (get_relocated_section_addrs): Delete.
3083 (solib_symbols_add): Delete.
3084 (register_loaded_dll): Delete.
3085 (win32_make_so): New.
3086 (handle_load_dll): Use win32_make_so.
3087 (win32_free_so): Free the passed in so.
3088 (win32_relocate_section_addresses): Delete.
3089 (win32_solib_create_inferior_hook): Delete.
3090 (handle_unload_dll): Don't add PE offset here. Free so with
3091 win32_free_so instead of free_so.
3092 (win32_special_symbol_handling): Delete.
3093 (get_win32_debug_event): Remove unneeded calls. Set state to
3094 TARGET_WAITKIND_LOADED on a dll unload.
3095 (do_initial_win32_stuff): Clear cygwin_load_start and
3097 (map_code_section_args): Delete.
3098 (dll_code_sections_add): Delete.
3099 (core_section_load_dll_symbols): Delete.
3100 (win32_xfer_shared_libraries): New.
3101 (win32_current_sos): Delete.
3102 (win32_xfer_partial): New.
3103 (open_symbol_file_object): Delete.
3104 (in_dynsym_resolve_code): Delete.
3105 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
3106 of win32_ops. Remove win32_so_ops settings. Don't set
3107 current_target_so_ops here.
3109 * Makefile.in (i386_cygwin_tdep_h): New variable.
3110 (i386-cygwin-tdep.o): Update dependencies.
3111 (win32-nat.o): Update dependencies.
3113 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3114 Daniel Jacobowitz <dan@codesourcery.com>
3116 * gdbarch.sh (core_xfer_shared_libraries): New.
3118 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3120 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
3122 * xml-support.c (gdb_xml_parse): Debug output tweaks.
3123 (xml_escape_text): New.
3124 * xml-support.h (xml_escape_text): Declare.
3126 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
3127 * config/i386/cygwin.mt (TDEPFILES): ... here.
3129 * win32-nat.c: (fetch_elf_core_registers): Delete.
3130 (win32_elf_core_fn): Delete.
3131 (_initialize_core_win32): Delete.
3133 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
3134 "xml-support.h" and "gdbcore.h".
3135 (i386_win32_gregset_reg_offset): New.
3136 (I386_WIN32_SIZEOF_GREGSET): New.
3137 (i386_win32_regset_from_core_section): New.
3138 (win32_xfer_shared_library): New.
3139 (struct cpms_data): New.
3140 (core_process_module_section): New.
3141 (win32_core_xfer_shared_libraries): New.
3142 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
3143 gregset_num_regs, sizeof_gregset members of tdep. Register
3144 regset_from_core_section and core_xfer_shared_libraries callbacks.
3146 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
3147 * gdbarch.h, gdbarch.c: Regenerate.
3149 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3151 * corelow.c (core_xfer_partial): Pass writebuf to
3152 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
3154 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
3156 * arm-tdep.h (arm_skip_stub): Declare.
3157 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
3159 (arm_pe_skip_trampoline_code): New function.
3160 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
3161 gdbarch_skip_trampoline_code callback.
3162 * Makefile.in (arm-wince-tdep.o): Update dependencies.
3164 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3166 * MAINTAINERS: Move Fred Fish to Past Maintainers.
3168 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3170 * configure.ac: Add --with-expat.
3171 * configure: Regenerated.
3173 2007-09-03 Andreas Schwab <schwab@suse.de>
3175 * configure.ac: Accept --with-system-readline.
3176 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
3177 * configure: Regenerate.
3178 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
3180 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
3182 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
3183 Daniel Jacobowitz <dan@codesourcery.com>
3185 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
3187 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3189 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
3191 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
3193 * top.c (print_gdb_version): Update for GPL version 3.
3195 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3197 * NEWS: Mention the build-id .debug files verification.
3199 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3201 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
3203 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3205 * Makefile.in (symfile.o): Update dependencies.
3206 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
3207 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
3208 (struct build_id): New structure.
3209 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
3210 (find_separate_debug_file): New variable BUILD_ID.
3211 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
3213 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3215 * varobj.c (struct varobj): Fix comment
3216 for the type member not to lie when it can be
3219 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3221 Implement -var-info-path-expression.
3223 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
3225 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
3226 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
3227 * varobj.c (struct varobj): New field 'path_expr'.
3228 (c_path_expr_of_child, cplus_path_expr_of_child)
3229 (java_path_expr_of_child): New.
3230 (struct language_specific): New field path_expr_of_child.
3231 (varobj_create): Initialize the path_expr field.
3232 (varobj_get_path_expr): New.
3233 (new_variable): Initialize the path_expr field.
3234 (free_variable): Free the path_expr field.
3235 (adjust_value_for_children_access): New parameter
3237 (c_number_of_children): Adjust.
3238 (c_describe_child): New parameter CFULL_EXPRESSION.
3239 Compute full expression.
3240 (c_value_of_child, c_type_of_child): Adjust.
3241 (cplus_number_of_children): Adjust.
3242 (cplus_describe_child): New parameter CFULL_EXPRESSION.
3243 Compute full expression.
3244 (cplus_name_of_child, cplus_value_of_child)
3245 (cplus_type_of_child): Adjust.
3246 * varobj.h (varobj_get_path_expr): Declare.
3248 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3250 * mi/mi-cmd-var.c (print_varobj): If a varobj
3251 type is NULL, don't try to print it.
3253 2007-08-30 Alan Modra <amodra@bigpond.net.au>
3255 * ppc-linux-nat.c (right_fill_reg): Delete.
3256 (supply_gregset): Use ppc_supply_gregset.
3257 (supply_fpregset): Use ppc_supply_fpregset.
3258 (fill_gregset): Use ppc_collect_gregset.
3259 (fill_fpregset): Use ppc_collect_fpregset.
3260 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
3261 (right_supply_register, ppc_linux_supply_gregset): Delete.
3262 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
3263 (ppc_linux_supply_fpregset): Delete.
3264 (ppc_linux_collect_gregset): New function.
3265 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
3266 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
3267 ppc_linux_supply_gregset, and ppc_collect_gregset.
3268 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
3269 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
3270 (ppc_linux_regset_from_core_section): Update.
3271 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
3272 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
3273 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
3274 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
3275 (ppcobsd_collect_gregset): Likewise.
3276 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
3277 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
3278 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
3279 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
3280 (rs6000_aix64_reg_offsets): Likewise.
3281 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
3282 ppc_floating_point_unit_p.
3283 (rs6000_aix_collect_regset): Similarly.
3284 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
3285 when regsize is larger than regcache register size.
3286 (ppc_collect_reg): Similarly zero pad when regsize is larger than
3287 regcache register size.
3288 (ppc_greg_offset): New function, split out from..
3289 (ppc_supply_gregset): ..here. Separate code handling all regs from
3290 single reg case. Correct xer offset.
3291 (ppc_fpreg_offset): New function, split out from..
3292 (ppc_supply_fpregset): ..here. Separate code handling all regs from
3294 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
3295 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
3296 a fp unit, instead return if no fp.
3298 2007-08-29 Jim Blandy <jimb@codesourcery.com>
3300 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
3301 this code has not been compiled for two years.
3303 2007-08-29 Michael Snyder <msnyder@access-company.com>
3305 * event-top.c (gdb_readline2): Return after EOF.
3307 2007-08-29 Joel Brobecker <brobecker@adacore.com>
3309 * symtab.c: Remove a function that has been commented out 3 years ago.
3311 2007-08-29 Randolph Chung <tausq@debian.org>
3313 * hppa-tdep.c (hppa32_cannot_fetch_register)
3314 (hppa64_cannot_fetch_register): New functions.
3315 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
3316 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
3318 2007-08-28 Michael Snyder <msnyder@access-company.com>
3320 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
3321 check for null before calling check_typedef.
3323 * NEWS: Mention Coverity bug fixes.
3325 2007-08-27 Markus Deuling <deuling@de.ibm.com>
3327 * spu-tdep.c (spu_pointer_to_address): New function.
3328 (spu_integer_to_address): Likewise.
3329 (spu_gdbarch_init): Add spu_pointer_to_address and
3330 spu_integer_to_address to gdbarch.
3332 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
3334 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
3336 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3338 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
3339 that contains the GDB license.
3340 * copying.awk: Adjust to the GPLv3 wording.
3341 * copying.c: Regenerate.
3343 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3345 * copying.awk: Protoization, and i18n markup.
3347 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3349 * config/djgpp/djconfig.sh: Switch license to GPLv3.
3350 * copyright.sh: Likewise.
3351 * gdb-events.sh: Likewise.
3352 * gdb_gcore.sh: Likewise.
3353 * gdb_mbuild.sh: Likewise.
3354 * gdbarch.sh: Likewise.
3355 * observer.sh: Likewise.
3356 * features/feature_to_c.sh: Likewise.
3357 * regformats/regdat.sh: Likewise.
3359 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3361 Switch the license of all .c files to GPLv3.
3362 Switch the license of all .h files to GPLv3.
3363 Switch the license of all .cc files to GPLv3.
3365 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3367 * configure.ac: Switch license to GPLv3.
3369 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3371 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
3372 determine the file's FPU type.
3374 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3376 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
3377 (mips_n32n64_push_dummy_call): Always increment float_argreg along
3378 with argreg. Use mips_n32n64_fp_arg_chunk_p.
3380 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3382 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
3384 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
3385 (elf_lookup_lib_symbol): Fix formatting.
3387 2007-08-21 Michael Snyder <msnyder@access-company.com>
3389 * dbxread.c (read_dbx_symtab): Guard null deref.
3392 * valops.c (find_overload_match): Guard against NULL.
3394 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3396 * MAINTAINERS (Patch Champions): Remove self.
3398 2007-08-21 Chris Smith <chris.smith@st.com>
3400 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
3403 2007-08-18 Michael Snyder <msnyder@access-company.com>
3405 * stabsread.c (dbx_lookup_type): Memory leak.
3407 * event-loop.c (delete_async_signal_handler): Move pointer null
3408 test to before pointer dereference.
3410 * ui-out.c (append_header_to_list): Possible cut and paste error.
3412 * MAINTAINERS: white space tweak.
3414 2007-08-17 Michael Snyder <msnyder@access-company.com>
3416 * stack.c (print_frame): Memory leak.
3418 * completer.c (filename_completer): Avoid memory leak.
3419 Remove unnecessary nested block.
3421 * c-exp.y (parse_number): Memory leak.
3423 * completer.c (location_completer): Must free 'fn_list', except
3424 in the one case where it is returned (as 'list').
3426 * varobj.c (value_of_root): Memory leak.
3428 * gdbtypes.h (virtual_base_list): Remove export decl.
3429 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
3430 (virtual_base_index): Memory leak.
3431 (virtual_base_index_skip_primaries): Ditto.
3433 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
3435 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
3436 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
3437 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
3438 (xtensa_read_register): New function.
3439 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
3440 (xtensa_insn_kind): New types.
3441 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
3442 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
3443 (xtensa_verify_config, xtensa_pseudo_register_read)
3444 (xtensa_pseudo_register_write, xtensa_extract_return_value)
3445 (xtensa_store_return_value)
3446 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
3447 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
3448 (xtensa_frame_this_id, xtensa_frame_prev_register)
3449 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
3450 (call0_frame_cache, call0_frame_get_reg_at_entry)
3451 (call0_classify_opcode, call0_track_op)
3452 (call0_analyze_prologue, call0_frame_cache): New functions.
3454 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
3456 * breakpoint.c (bpstat_free): New.
3457 (bpstat_clear): Use bpstat_free.
3458 (delete_breakpoint): Document why we cannot
3459 remove bpstats from stop_bpstat.
3460 * breakpoint.h (bpstat_free): Declare.
3462 2007-08-16 Michael Snyder <msnyder@access-company.com>
3464 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
3466 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
3467 Joel Brobecker <brobecker@adacore.com>
3469 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
3471 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
3472 Joel Brobecker <brobecker@adacore.com>
3474 * ada-lang.c (possible_user_operator_p): Alternative fix to last
3475 checkin guarding against NULL.
3477 2007-08-14 Michael Snyder <msnyder@access-company.com>
3479 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
3480 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
3481 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
3482 go at beginning of new line.
3484 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
3485 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
3486 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
3487 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
3488 tui-winsource.h, tui.c, tui.h: Function declarations and
3489 definitions, wrap long lines.
3491 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
3492 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
3493 Reformat block comments to GNU standard.
3495 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
3496 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
3497 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
3498 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
3499 tui.c, tui.h: Comment reformatting to coding standard (capitals,
3500 spaces after periods, etc).
3502 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
3503 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
3504 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
3505 tui-winsource.h: Whitespace changes, fix pointer declarations
3508 2007-08-14 Joel Brobecker <brobecker@adacore.com>
3509 Michael Snyder <msnyder@access-company.com>
3511 * ada-lang.c (field_alignment): Guard against NULL.
3513 2007-08-14 Joel Brobecker <brobecker@adacore.com>
3515 * MAINTAINERS (Global Maintainers): Add self.
3517 2007-08-14 Michael Snyder <msnyder@access-company.com>
3519 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
3521 * ada-lang.c (possible_user_operator_p): Guard against NULL.
3523 * varobj.c (cplus_describe_child): Guard against null.
3524 Use "NULL" instead of "0" to initialize pointers.
3526 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
3528 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
3529 to match any gdbarch with matching OSABI. Set default ABI and FPU
3530 after running the OSABI handler.
3532 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
3534 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
3535 * config/i386/linux.mt (TDEPFILES): ...to here.
3537 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
3539 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
3540 the 'silent' parameter and code to implement that.
3541 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
3543 * win32-nat.c: Adjust.
3546 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
3548 * breakpoint.c (update_breakpoints_after_exec): Don't
3549 set address to zero.
3551 2007-08-13 Michael Snyder <msnyder@access-company.com>
3553 * valops.c: Whitespace clean-up.
3555 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
3557 * event-top.c (command_line_handler): Memory leak.
3559 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
3560 No need to make copy.
3562 * source.c (find_source_lines): Require symtab 's'.
3564 2007-08-11 Michael Snyder <msnyder@access-company.com>
3566 * completer.c: Spelling fix in comments.
3568 2007-08-10 Michael Snyder <msnyder@access-company.com>
3570 * gdbtypes.c: Coding standard cleanup.
3571 * gdbtypes.c: Comment/whitespace cleanup.
3573 * stabsread.c (read_huge_number): Attempt to compute value before
3574 values that it depends on.
3576 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
3577 (decode_objc): Use "NULL" instead of 0.
3578 (find_method): Ditto.
3579 (decode_all_digits): Ditto.
3580 (decode_dollar): Ditto.
3582 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
3584 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
3586 * solib-svr4.c (enable_break): Don't free tmp_pathname until
3589 * completer.c: Comment/whitespace cleanup.
3591 2007-08-10 Joel Brobecker <brobecker@adacore.com>
3593 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
3595 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
3597 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
3598 allocated file descriptors.
3600 2007-08-10 Joel Brobecker <brobecker@adacore.com>
3602 * Makefile.in: Minor cleanup throughout; add some missing variables,
3603 add some missing rules, remove some rules that are no longer needed,
3604 and fix the dependencies in several rules.
3606 2007-08-10 Ludovic Courtès <ludo@gnu.org>
3608 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
3609 (scm_lang_h, scm_tags_h): New.
3610 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
3611 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
3612 * defs.h (enum language): Add `language_scm'.
3614 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
3617 2007-08-09 Ludovic Courtès <ludo@gnu.org>
3619 * MAINTAINERS (Write After Approval): Add myself.
3621 2007-08-09 Michael Snyder <msnyder@access-company.com>
3623 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
3625 2007-08-09 Joel Brobecker <brobecker@adacore.com>
3627 * solib-som.c (som_relocate_section_addresses): Stop saving
3628 the $CODE$ section in the so_list structure.
3630 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
3632 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
3633 (xtensa_register_group_t): Add entries for coprocessors.
3634 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
3635 (xtensa_add_reggroups): Likewise.
3636 (xtensa_register_reggroup_p): Likewise.
3637 (xtensa_coprocessor_register_group): New function.
3640 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3642 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
3644 2007-08-08 Michael Snyder <msnyder@access-company.com>
3646 * target.c (target_read_string): Guard against null.
3648 * varobj.c (value_of_root): Move alloc after return to avoid leak.
3650 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
3651 (tui_set_layout_for_display_command): Mem leak.
3653 * top.c (command_line_input): Memory leak.
3655 * solib-svr4.c (open_symbol_file_object): Memory leak.
3656 (svr4_current_sos): Ditto.
3657 (enable_break): Ditto.
3659 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
3661 * dwarf2read.c (add_partial_symbol): Memory leak.
3663 2007-08-06 Michael Snyder <msnyder@access-company.com>
3665 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
3667 2007-08-05 Jim Blandy <jimb@codesourcery.com>
3669 * macroexp.c (init_buffer): Remove testing code that overrides the
3670 caller's length guess.
3671 (gather_arguments): Use a larger initial size, now that the vector
3672 growth code has been exercised.
3674 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
3676 * solib-target.c (solib_target_relocate_section_addresses): Add
3677 orig_delta to addr_high.
3679 2007-08-04 Michael Snyder <msnyder@access-company.com>
3681 * remote-fileio.c (remote_fileio_func_write): Memory leak.
3683 * breakpoint.c (print_one_breakpoint): Off by one error.
3685 * tracepoint.c (add_register): Off by one error.
3686 (stringify_collection_list): Free malloc buffer.
3688 2007-08-03 Michael Snyder <msnyder@access-company.com>
3690 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
3691 stop memory leak, straighten out cleanups.
3693 * jv-lang.c (java_link_class_type): Guard against NULL.
3695 2007-08-02 Michael Snyder <msnyder@access-company.com>
3697 * gdbtypes.c (create_set_type): Test should only be done within
3698 the preceeding if block. Otherwise, variable is uninitialized.
3700 * gdbtypes.c (check_typedef): Guard NULL.
3702 2007-08-01 Michael Snyder <msnyder@access-company.com>
3704 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
3705 avoid dereference in lookup_cmd_1.
3707 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
3708 clean up long lines.
3709 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
3710 (tui_alloc_win_info): Ditto.
3711 (tui_add_content_elements): Ditto.
3712 * tui/tui-file.c (tui_file_magic): Ditto.
3714 2007-07-31 Michael Snyder <msnyder@access-company.com>
3716 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
3717 True and false paths are mutually exclusive.
3719 * event-top.c (command_line_handler): Add pedantic return.
3721 * f-valprint.c (info_common_command): Bail out to prevent null
3722 pointer deref. Break up a long line.
3724 * exec.c (xfer_memory): Remove redundant condition from 'if'.
3726 * symfile.c (reread_separate_symbols): Free xmalloced memory.
3728 * printcmd.c (build_address_symbolic): Remove dead code and dead
3731 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
3733 * linespec.c (minsym_found): Advance to the next line if possible.
3735 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
3737 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
3738 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
3739 solib-svr4.o, and add solib-target.o
3741 2007-07-27 Michael Snyder <msnyder@access-company.com>
3743 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
3745 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
3747 * MAINTAINERS (Write After Approval): Add myself.
3749 2007-07-26 Maciej W. Rozycki <macro@mips.com>
3751 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
3754 2007-07-25 Maciej W. Rozycki <macro@mips.com>
3756 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
3758 2007-07-24 Michael Snyder <msnyder@access-company.com>
3760 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
3761 'buffer' must cover both branches that call strcmp (Coverity).
3763 * stack.c (print_frame_args): Check return value of lookup_symbol.
3765 * ax-gdb.c (find_field): Guard against null ptr.
3767 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
3769 * regformats/reg-spu.dat: Fix order of npc, id registers.
3771 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
3773 * target.c (memory_xfer_partial): Accesses to unmapped overlay
3774 sections should always go to the executable file.
3776 2004-07-20 Chris Dearman <chris@mips.com>
3778 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
3779 prologue instructions.
3781 2007-07-20 Maciej W. Rozycki <macro@mips.com>
3783 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
3786 2007-07-20 Chris Dearman <chris@mips.com>
3787 Maciej W. Rozycki <macro@mips.com>
3789 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
3792 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
3793 Daniel Jacobowitz <dan@codesourcery.com>
3795 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
3796 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
3798 * NEWS: Mention gdbserver DLL support.
3800 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
3802 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
3804 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
3806 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
3809 2007-07-13 Kevin Buettner <kevinb@redhat.com>
3811 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
3814 2007-07-12 Kevin Buettner <kevinb@redhat.com>
3816 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
3817 (mep_analyze_prologue): Add case for BRA instruction.
3819 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
3821 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
3823 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
3825 * breakpoint.c: Include "top.h".
3826 (breakpoint_1): Don't set convenience variable $_ if server prefix
3828 (_initialize_breakpoint): Describe this behaviour in command help.
3830 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
3832 * solib-target.c (library_list_start_segment): Cast address to
3835 2007-07-06 Mark Kettenis <kettenis@gnu.org>
3837 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
3838 for terminated processes.
3840 2007-07-05 Michael Snyder <msnyder@access-company.com>
3842 * event-top.c (cli_command_loop): Prompt string can (and should)
3843 be freed after call to readline (Coverity). Also move local var
3844 declarations into block where they are used.
3846 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
3847 should) be freed after call to readline (Coverity). Also move
3848 local var declarations into block where they are used.
3850 2007-07-03 Andreas Schwab <schwab@suse.de>
3852 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
3855 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
3856 Thiago Bauermann <bauerman@br.ibm.com>
3857 Joseph S. Myers <joseph@codesourcery.com>
3858 Daniel Jacobowitz <dan@codesourcery.com>
3860 * remote.c (remote_check_symbols): Use
3861 gdbarch_convert_from_func_ptr_addr.
3862 * infcall.c (find_function_addr): Handle function descriptors
3863 without debugging information.
3864 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
3865 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
3866 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
3867 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
3868 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
3869 allow SEC_CODE and SEC_DATA.
3870 (enable_break): Update calls. Pass current_target to solib_add.
3871 Use gdbarch_convert_from_func_ptr_addr.
3873 2007-07-03 Ilko Iliev <iliev@ronetix.at>
3874 Daniel Jacobowitz <dan@codesourcery.com>
3876 * symfile.c (print_transfer_performance): Avoid integer overflow.
3879 2007-07-03 Markus Deuling <deuling@de.ibm.com>
3881 * cp-namespace.c (lookup_symbol_file): Add block to
3882 lookup_symbol_global call.
3883 * Makefile.in (solist_h): Add dependency on symtab header.
3884 (symtab.o): Add dependency on solist header.
3885 * solib.c (solib_global_lookup): New function.
3886 * solib-svr4.c (scan_dyntag): Likewise.
3887 (elf_locate_base): Call helper routine scan_dyntag.
3888 (elf_lookup_lib_symbol): New function.
3889 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
3890 * solist.h (symtab.h): New include.
3891 (struct target_so_ops): New member lookup_lib_global_symbol.
3892 (solib_global_lookup): New prototype.
3893 * symtab.c: New include solist.h.
3894 (lookup_objfile_from_block): New function.
3895 (lookup_global_symbol_from_objfile): New function.
3896 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
3897 (lookup_symbol_global): Call library-specific lookup procedure.
3898 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
3900 * NEWS: Document framework.
3902 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
3904 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
3907 * cli/cli-script.c (build_command_line): Update NULL check.
3909 2007-07-02 Michael Snyder <msnyder@access-company.com>
3911 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
3913 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
3915 * Makefile.in (XMLFILES): Add library-list.dtd.
3916 (ALLDEPFILES): Add solib-target.o.
3917 (solib-target.o): New rule.
3918 * remote.c (PACKET_qXfer_libraries): New constant.
3919 (remote_protocol_features): Add qXfer:libraries:read.
3920 (remote_wait): Recognize library stop replies.
3921 (remote_async_wait): Likewise. Fix typo.
3922 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3923 (init_remote_async_ops): Fix typo.
3924 (_initialize_remote): Register "set remote library-info-packet".
3925 * solib-som.c (som_current_sos): Set addr_low and addr_high.
3926 * solib-target.c: New file.
3927 * solib.c (solib_map_sections): Use addr_low and addr_high instead
3929 (info_sharedlibrary_command): Likewise.
3930 (solib_add_library, solib_remove_library): New.
3931 * solist.h (struct so_list): Replace textsection with addr_low and
3933 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
3934 * NEWS: Describe new qXfer:libraries:read and shared library
3936 * features/library-list.dtd: New.
3938 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
3940 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
3941 (start_remote): Use STOP_QUIETLY_REMOTE.
3942 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
3943 support on a SOLIB_ADD definition. Update breakpoints_inserted.
3944 Update to match shared library event breakpoint support. Only
3945 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
3946 (normal_stop): Handle TARGET_WAITKIND_LOADED.
3947 * fork-child.c (startup_inferior): Do not set
3948 inferior_ignoring_startup_exec_events
3949 * inferior.h (inferior_ignoring_startup_exec_events): Delete
3951 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
3953 2007-07-02 Markus Deuling <deuling@de.ibm.com>
3955 * breakpoint.c (insert_bp_location): Remove dead code
3956 (DISABLE_UNSETTABLE_BREAK).
3957 (disable_breakpoints_in_shlibs)
3958 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
3960 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
3962 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
3963 Call insert_bp_location.
3965 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
3967 * core-regset.c (fetch_core_registers): Work around gcc 3.4
3970 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
3972 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
3975 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
3977 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
3978 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
3979 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
3980 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
3981 to display_gdb_prompt.
3983 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
3986 * target.c (memory_xfer_partial): Do not continue past targets with
3989 2007-06-30 Andreas Schwab <schwab@suse.de>
3991 * m68k-tdep.c (m68k_ps_type): New.
3992 (m68k_init_types): New.
3993 (m68k_register_type): Use m68k_ps_type for PS register.
3994 (_initialize_m68k_tdep): Call m68k_init_types.
3996 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
3997 from the generic m68k arch.
3999 2007-06-28 Michael Snyder <msnyder@access-company.com>
4001 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
4004 * linux-thread-db.c (thread_db_get_thread_local_address): Add
4005 gdb_assert before using return value of find_thread_pid (Coverity).
4007 * source.c (unset_substitute_path_command): Plug leak (Coverity).
4009 * cli/cli-script.c (build_command_line): Add null pointer guard
4012 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
4014 * linux-thread-db.c (thread_db_attach): Delete.
4015 (thread_db_detach): Typo fix. Call target_mourn_inferior
4016 instead of fixing up proc_handle.
4017 (have_threads_callback, have_threads): New functions.
4018 (thread_db_wait): Remove dead proc_handle.pid check. Only
4019 translate PTIDs if we have registered threads. Check for new
4020 threads if we have none.
4021 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
4022 (find_new_threads_callback): Only enable event reporting if TID == 0.
4023 (same_ptid_callback): New.
4024 (thread_db_get_thread_local_address): Check for new threads.
4025 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
4026 or to_post_startup_inferior.
4028 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4030 * infrun.c (adjust_pc_after_break): Do not assume software single-step
4031 is always active if SOFTWARE_SINGLE_STEP_P is true.
4032 (resume): Use gdbarch_software_single_step[_p] instead of
4033 SOFTWARE_SINGLE_STEP[_P].
4034 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
4036 * gdbarch.sh (software_single_step): Remove target macro.
4037 * gdbarch.h, gdbarch.c: Regenerate.
4039 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4041 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
4042 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
4043 (struct gdbarch_swap, struct gdbarch_swap_registration,
4044 struct gdbarch_swap_registry, gdbarch_swap_registry,
4045 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
4046 current_gdbarch_swap_in_hack): Remove.
4047 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
4048 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
4049 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
4050 (deprecated_current_gdbarch_select_hack): Likewise.
4051 * gdbarch.h, gdbarch.c: Regenerate.
4053 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4055 * infrun.c (clear_proceed_status): Clean up stop_registers.
4056 (normal_stop): Allocate regcache for stop_registers.
4057 (struct inferior_status): Remove stop_registers member.
4058 (save_inferior_status): Do not save stop_registers.
4059 (restore_inferior_status): Do not restore stop_registers.
4060 (discard_inferior_status): Do not discard stop_registers.
4061 (build_infrun): Remove.
4062 (_initialize_infrun): Do not swap stop_registers.
4064 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4066 * remote.c (remote_address_masked): If remote_address_size is zero,
4067 default to target address size.
4068 (build_remote_gdbarch_data): Remove.
4069 (_initialize_remote): Do not swap remote_address_size.
4071 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4073 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
4074 builtin_type_char, builtin_type_short, builtin_type_int,
4075 builtin_type_long, builtin_type_signed_char,
4076 builtin_type_unsigned_char, builtin_type_unsigned_short,
4077 builtin_type_unsigned_int, builtin_type_unsigned_long,
4078 builtin_type_float, builtin_type_double, builtin_type_long_double,
4079 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4080 builtin_type_bool, builtin_type_long_long,
4081 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4082 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
4083 variable declaration with compatibility macro.
4084 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
4085 builtin_type_char, builtin_type_short, builtin_type_int,
4086 builtin_type_long, builtin_type_signed_char,
4087 builtin_type_unsigned_char, builtin_type_unsigned_short,
4088 builtin_type_unsigned_int, builtin_type_unsigned_long,
4089 builtin_type_float, builtin_type_double, builtin_type_long_double,
4090 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4091 builtin_type_bool, builtin_type_long_long,
4092 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4093 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
4094 (build_gdbtypes): Remove.
4095 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
4096 opaque-type-resolution command here. Do not call
4097 deprecated_register_gdbarch_swap.
4099 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4101 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
4102 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
4103 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
4105 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
4106 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
4107 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
4108 (build_parse): Remove.
4109 (_initialize_parse): Do not call build_parse. Do not register
4110 msym_ types for gdbarch-swapping.
4112 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
4113 instead of creating private type.
4115 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
4116 (_initialize_xcoffread): Do not initialized them.
4117 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
4119 * mdebugread.c (nodebug_func_symbol_type): Remove.
4120 (nodebug_var_symbol_type): Remove.
4121 (_initialize_mdebugread): Do not initialize them.
4122 (parse_symbol): Use builtin nodebug_ type instead of them.
4123 (parse_procedure): Likewise.
4125 2007-06-21 Chris Dearman <chris@mips.com>
4127 * printcmd.c (do_one_display): If display/i, start with an initial
4128 line feed to avoid bad layout if there is a branch delay slot.
4130 2007-06-21 Nigel Stephens <nigel@mips.com>
4131 Maciej W. Rozycki <macro@mips.com>
4133 * disasm.c (gdb_print_insn): Return the number of branch delay
4134 slot instructions too.
4135 * disasm.h (gdb_print_insn): Update prototype.
4136 * printcmd.c (branch_delay_insns): New variable to record the
4137 number of delay slot instructions after disassembling a branch.
4138 (print_formatted): Record the number of branch delay slot
4140 (do_examine): When disassembling, if the last instruction
4141 disassembled has any branch delay slots, then bump the count so
4142 that they get disassembled too.
4143 * tui/tui-disasm.c (tui_disassemble): Update the call to
4145 * NEWS: Document the new behaviour.
4147 2007-06-21 Andreas Schwab <schwab@suse.de>
4149 * regcache.c (write_pc_pid): Restore missing else.
4151 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
4153 * regcache.c (regcache_print): Use get_current_regcache ()
4154 instead of current_regcache.
4156 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
4159 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
4160 instead of bfd_make_section_anyway.
4161 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
4162 when clearing SEC_LOAD.
4164 2007-06-19 Joseph Myers <joseph@codesourcery.com>
4166 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
4167 registers for big-endian.
4169 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4171 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
4172 * disasm.c (dump_insns, gdb_print_insn): Likewise.
4173 * gdbarch.c, gdbarch.h: Regenerate.
4175 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4177 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
4178 gdbarch_believe_pcc_promotion.
4179 * stabsread.c (define_symbol): Likewise.
4180 Remove unnecessary definition.
4181 * coffread.c (process_coff_symbol): Remove unnecessary code.
4182 * gdbarch.c, gdbarch.h: Regenerate.
4184 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
4186 * configure.ac: Do not use ${objdir}.
4187 * configure: Regenerated.
4189 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
4191 * gdbarch.sh (deprecated_register_size): Remove.
4192 * gdbarch.h, gdbarch.c: Regenerate.
4194 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
4195 by INT_REGISTER_SIZE.
4196 (thumb_get_next_pc, arm_return_in_memory): Likewise.
4197 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
4198 * ia64-tdep.c (ia64_gdbarch_init): Do not call
4199 set_gdbarch_deprecated_register_size.
4201 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4203 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
4204 gdbarch_deprecated_fp_regnum.
4205 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
4206 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
4207 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4208 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
4210 * gdbarch.c, gdbarch.h: Regenerate.
4212 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4214 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
4215 gdbarch_extract_return_value.
4216 * value.c (generic_use_struct_convention): Likewise (comment).
4217 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
4218 * arch-utils.c (legacy_return_value): Likewise.
4219 * arch-utils.h (legacy_return_value): Likewise (comment).
4220 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
4221 gdbarch_store_return_value.
4222 * stack.c (return_command): Likewise (comment).
4223 * arch-utils.h (legacy_return_value): Likewise (comment).
4224 * arch-utils.c (legacy_return_value): Likewise.
4225 * gdbarch.c, gdbarch.h: Regenerate.
4227 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4229 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
4230 gdbarch_deprecated_use_struct_convention.
4231 * arch-utils.c (legacy_return_value): Likewise.
4232 * gdbarch.c, gdbarch.h: Regenerate.
4234 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4236 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
4237 gdbarch_deprecated_function_start_offset.
4238 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
4239 * linespec.c (minsym_found): Likewise.
4240 * infrun.c (handle_inferior_event): Likewise.
4241 * infcall.c (find_function_addr): Likewise.
4242 * cli/cli-cmds.c (disassemble_command): Likewise.
4243 * gdbarch.c, gdbarch.h: Regenerate.
4245 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4247 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
4248 gdbarch_deprecated_reg_struct_has_addr.
4249 * infcall.c (call_function_by_hand): Likewise.
4250 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
4251 * gdbarch_deprecated_reg_struct_has_addr_p.
4252 * infcall.c (call_function_by_hand): Likewise.
4253 * gdbarch.c, gdbarch.h: Regenerate.
4255 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4257 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4258 * sh-tdep.c (sh_extract_struct_value_address): Remove.
4259 (sh_gdbarch_init): Remove
4260 set_gdbarch_deprecated_extract_struct_value_address.
4261 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
4262 (sh64_gdbarch_init): Remove
4263 set_gdbarch_deprecated_extract_struct_value_address.
4264 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
4265 (ia64_gdbarch_init): Remove
4266 set_gdbarch_deprecated_extract_struct_value_address.
4267 * frv-tdep.c (frv_extract_struct_value_address): Remove.
4268 (frv_gdbarch_init): Remove
4269 set_gdbarch_deprecated_extract_struct_value_address.
4270 * gdbarch.c, gdbarch.h: Regenerate.
4272 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4274 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
4275 * v850-tdep.c (v850_unwind_sp): Likewise.
4276 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
4277 * stack.c (frame_info): Likewise.
4278 * stabsread.c (define_symbol): Likewise.
4279 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
4280 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
4281 (sh_unwind_sp): Likewise.
4282 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
4283 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
4284 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
4285 (rs6000_frame_cache): Likewise.
4286 * rs6000-nat.c (store_register): Likewise.
4287 * remote-mips.c (mips_wait): Likewise.
4288 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4289 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4290 (ppc64_sysv_abi_push_dummy_call): Likewise.
4291 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4292 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4293 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4294 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4295 * m32r-rom.c (m32r_supply_register): Likewise.
4296 * frame.c (frame_sp_unwind): Likewise.
4297 * mips-tdep.c (mips_insn16_frame_cache)
4298 (mips_insn32_frame_cache): Likewise (comment).
4299 * m68klinux-nat.c (supply_gregset): Likewise.
4300 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
4301 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
4302 * i386-tdep.c (i386_get_longjmp_target): Likewise.
4303 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4304 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
4305 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
4306 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
4307 (cris_register_type, crisv32_register_type)
4308 (cris_dwarf2_frame_init_reg): Likewise.
4309 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4310 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
4311 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
4312 * libunwind-frame.c (libunwind_frame_cache): Likewise.
4314 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
4315 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
4316 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
4317 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
4318 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
4319 * v850-tdep.c (v850_unwind_pc): Likewise.
4320 * stack.c (frame_info): Likewise.
4321 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
4322 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
4323 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
4324 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
4325 (sh_dsp_show_regs): Likewise.
4326 * shnbsd-tdep.c (shnbsd_supply_gregset)
4327 (shnbsd_collect_gregset): Likewise.
4328 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
4329 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
4330 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
4331 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4332 (6000_register_reggroup_p, rs6000_unwind_pc)
4333 (rs6000_frame_cache): Likewise.
4334 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
4335 (rs6000_store_inferior_registers): Likewise.
4336 * remote-mips.c (mips_wait, mips_load): Likewise.
4337 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4338 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4339 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4340 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4341 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
4342 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4343 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
4344 (store_ppc_registers, fill_gregset): Likewise.
4345 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
4346 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
4347 * mipsnbsd-nat.c (getregs_supplies): Likewise.
4348 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
4349 * m68klinux-nat.c (supply_gregset): Likewise.
4350 * irix5-nat.c (fill_gregset): Likewise.
4351 * i386-tdep.c (i386_unwind_pc): Likewise.
4352 * i386-linux-nat.c (i386_linux_resume): Likewise.
4353 * frame.c (get_prev_frame_1): Likewise.
4354 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4355 * dbug-rom.c (dbug_supply_register): Likewise.
4356 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
4357 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
4358 (cris_register_type, crisv32_register_type, crisv32_register_name)
4359 (cris_dwarf2_frame_init_reg, find_step_target)
4360 (cris_software_single_step, cris_supply_gregset)
4361 (cris_regnums): Likewise.
4362 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4363 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4364 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
4365 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
4366 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
4368 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
4369 * dbug-rom.c (dbug_supply_register): Likewise.
4370 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
4371 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
4372 * win32-nat.c (win32_resume): Likewise.
4373 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
4374 * m68k-tdep.c (m68k_register_type): Likewise.
4375 * m68klinux-nat.c (supply_gregset): Likewise.
4377 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
4378 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
4379 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
4380 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
4381 (fv_reg_base_num, dr_reg_base_num): Likewise.
4382 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
4383 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
4384 (sh64_extract_return_value, sh64_store_return_value)
4385 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
4386 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
4387 * procfs.c (procfs_fetch_registers, procfs_store_registers)
4388 (invalidate_cache): Likewise.
4389 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4390 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
4391 (mipsnbsd_fill_fpreg): Likewise.
4392 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
4393 (mipsnbsd_store_inferior_registers): Likewise.
4394 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
4395 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
4396 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
4397 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
4398 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
4399 (fill_fpregset): Likewise.
4400 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
4401 * i386-tdep.h (struct_return): Likewise (comment).
4402 * i386-nto-tdep.c (i386nto_register_area): Likewise.
4403 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
4404 (go32_store_registers): Likewise.
4405 * alpha-tdep.c (alpha_next_pc): Likewise.
4406 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4407 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
4408 (alphabsd_store_inferior_registers): Likewise.
4409 * core-regset.c (fetch_core_registers): Likewise.
4410 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
4412 * gdbarch.c, gdbarch.h: Regenerate.
4414 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
4416 * coffread.c (coff_sym_fns): Add default_symfile_segments.
4417 * dbxread.c (start_psymtab): Check HAVE_ELF.
4418 (aout_sym_fns): Likewise.
4419 * elfread.c (elf_symfile_segments): New.
4420 (elf_sym_fns): Add elf_symfile_segments.
4421 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
4422 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
4423 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
4424 * somread.c (som_sym_fns): Use default_symfile_segments.
4425 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
4426 (init_objfile_sect_indices): Call symfile_find_segment_sections.
4427 (default_symfile_segments): New function.
4428 (syms_from_objfile): Update call to find_sym_fns.
4429 (symfile_get_segment_data, free_symfile_segment_data): New.
4430 (symfile_map_offsets_to_segments): New.
4431 (symfile_find_segment_sections): New.
4432 * symfile.h (struct symfile_segment_data): New.
4433 (struct sym_fns): Add sym_segments.
4434 (default_symfile_segments, symfile_get_segment_data)
4435 (free_symfile_segment_data): New prototypes.
4436 (symfile_map_offsets_to_segments): Likewise.
4437 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
4438 * Makefile.in (COMMON_OBS): Remove elfread.o.
4439 (elf_internal_h): New.
4440 (elfread.o): Update.
4441 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
4443 * config.in, configure: Regenerated.
4444 * NEWS: Mention qOffsets changes.
4446 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4448 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
4449 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
4450 Replace global variable declaration with compatibility macro.
4451 (struct builtin_m2_type): New data type.
4452 (builtin_m2_type): Add prototype.
4453 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
4454 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
4455 Remove global variables.
4456 (m2_language_arch_info): Use builtin_m2_type instead of variables.
4457 (build_m2_types): New function.
4458 (m2_type_data): New variable.
4459 (builtin_m2_type): New function.
4460 (_initialize_m2_language): Do not build data types. Register
4461 m2_type_data per-gdbarch data.
4463 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4465 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
4466 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
4467 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
4468 builtin_type_f_real_s8, builtin_type_f_real_s16,
4469 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
4470 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
4471 variable declaration with compatibility macro.
4472 (struct builtin_f_type): New data type.
4473 (builtin_f_type): Add prototype.
4474 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
4475 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
4476 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
4477 builtin_type_f_real_s8, builtin_type_f_real_s16,
4478 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
4479 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
4480 (f_language_arch_info): Use builtin_f_type instead of variables.
4481 (build_fortran_types): Build builtin_f_type structure instead of
4482 setting global type variables.
4483 (f_type_data): New variable.
4484 (builtin_f_type): New function.
4485 (_initialize_f_language): Do not call build_fortran_types. Do not
4486 swap global type variables. Register f_type_data per-gdbarch data.
4488 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4490 * f-lang.c (_initialize_f_language): Do not initialize or
4491 swap builtin_type_string.
4493 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4495 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
4496 value_of_builtin_frame_reg): Remove.
4497 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
4498 inactive call to value_of_builtin_frame_reg.
4500 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4502 * gdbarch.sh (bfd_vma_bit): Remove.
4503 * gdbarch.c, gdbarch.h: Regenerate.
4505 * gdbtypes.h (builtin_bfd_vma_type): Remove.
4506 * gdbtypes.h (builtin_bfd_vma_type): Remove.
4507 (build_gdbtypes): Do not initialize it.
4508 (_initialize_gdbtypes): Do not swap it.
4510 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4512 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
4513 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
4514 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
4515 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
4516 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
4517 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
4518 builtin_type_vec64, builtin_type_vec128): Remove.
4519 (init_simd_type): Remove.
4520 (init_vector_type): Make global.
4521 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
4522 (build_gdbtypes): Do not build vector types.
4523 (_initialize_gdbtypes): Do not swap vector types.
4524 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
4525 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
4526 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
4527 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
4528 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
4529 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
4530 builtin_type_vec64, builtin_type_vec128): Remove declarations.
4531 (init_vector_type): Add prototype.
4533 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
4534 i386_sse_type members.
4535 (i386_mmx_type, i386_sse_type): Change from variables to functions.
4536 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
4537 (i386_init_types): Do not build vector types.
4538 (i386_mmx_type, i386_sse_type): New functions.
4539 (i386_register_type): Call them instead of using global variables.
4540 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
4541 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
4542 of using global variable.
4544 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
4545 and ppc_builtin_type_vec128 members.
4546 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
4547 (rs6000_builtin_type_vec128): Likewise.
4548 (rs6000_register_type): Call them instead of using builtin_type_vec64
4549 and builtin_type_vec128.
4550 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
4552 * spu-tdep.c (struct gdbarch_tdep): New data type.
4553 (spu_builtin_type_vec128): Remove variable.
4554 (spu_builtin_type_vec128): New function.
4555 (spu_register_type): Call it instead of using global variable.
4556 (spu_gdbarch_init): Allocate tdep structure.
4557 (spu_init_vector_type): Remove function.
4558 (_initialize_spu_tdep): Do not call it.
4560 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4562 * amd64-tdep.c (struct amd64_register_info): Remove.
4563 (amd64_register_info): Remove.
4564 (amd64_register_names): New static variable.
4565 (AMD64_NUM_REGS): Use amd64_register_names instead of
4566 amd64_register_info.
4567 (amd64_register_name): Likewise.
4568 (amd64_register_type): Do not refer to amd64_register_info.
4570 * s390-tdep.c (struct s390_register_info): Remove.
4571 (s390_register_info): Remove.
4572 (s390_register_name): Do not refer to s390_register_info.
4573 (s390_register_type): Likewise.
4575 * sparc64-tdep.c (struct sparc64_register_info): Remove.
4576 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
4577 (sparc64_register_names, sparc64_pseudo_register_names): New.
4578 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
4579 sparc64_register_names and sparc64_pseudo_register_names instead of
4580 sparc64_register_info and sparc64_pseudo_register_info.
4581 (sparc64_register_name): Likewise.
4582 (sparc64_register_type): Do not refer to sparc64_register_info
4583 and sparc64_pseudo_register_info.
4585 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4587 * c-lang.c (cplus_builtin_types): Remove.
4588 (enum cplus_primitive_types): New data type.
4589 (cplus_language_arch_info): New function.
4590 (cplus_language_defn): Set la_language_arch_info member. Do not set
4591 la_builtin_type_vector and string_char_type members.
4593 * f-lang.c (f_builtin_types): Remove.
4594 (enum f_primitive_types): New data type.
4595 (f_language_arch_info): New function.
4596 (f_language_de): Set la_language_arch_info member. Do not set
4597 la_builtin_type_vector and string_char_type members.
4599 * m2-lang.c (m2_builtin_types): Remove.
4600 (enum m2_primitive_types): New data type.
4601 (m2_language_arch_info): New function.
4602 (m2_language_defn): Set la_language_arch_info member. Do not set
4603 la_builtin_type_vector and string_char_type members.
4605 * objc-lang.c (objc_builtin_types): Remove.
4606 (objc_language): Set la_language_arch_info member. Do not set
4607 la_builtin_type_vector and string_char_type members.
4609 * p-lang.c (pascal_builtin_types): Remove.
4610 (enum pascal_primitive_types): New data type.
4611 (pascal_language_arch_info): New function.
4612 (pascal_language_defn): Set la_language_arch_info member. Do not set
4613 la_builtin_type_vector and string_char_type members.
4615 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4617 * regcache.c (struct regcache): Add ptid_t member.
4618 (regcache_xmalloc): Initialize it.
4619 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
4620 (regcache_dup): Likewise.
4621 (regcache_dup_no_passthrough): Likewise.
4622 (current_regcache): Make static.
4623 (registers_ptid): Remove variable.
4624 (get_thread_regcache): New function.
4625 (get_current_regcache): New function.
4626 (registers_changed): Implement by freeing current regcache.
4627 (regcache_raw_read): Do not refer to current_regcache. Set
4628 inferior_ptid to regcache->ptid while calling target routines.
4629 (regcache_raw_write): Likewise.
4630 (regcache_raw_supply): Do not refer to current_regcache.
4631 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
4632 (write_pc_pid): Likewise.
4633 (build_regcache): Remove.
4634 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
4635 or deprecated_register_gdbarch_swap. Do not initialize
4637 * regcache.h (get_current_regcache): Add prototype.
4638 (get_thread_regcache): Likewise.
4639 (current_regcache): Remove declaration.
4641 * corelow.c (core_open): Replace current_regcache by
4642 get_current_regcache ().
4643 * frame.c (frame_pop): Likewise.
4644 (put_frame_register): Likewise.
4645 (get_current_frame, create_new_frame): Likewise.
4646 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
4647 * stack.c (return_command): Likewise.
4648 * infcall.c (call_function_by_hand): Likewise.
4649 * infrun.c (resume): Likewise.
4650 (save_inferior_status, restore_inferior_status): Likewise.
4651 * linux-fork.c (fork_load_infrun_state): Likewise.
4652 (fork_save_infrun_state): Likewise.
4653 * win32-nat.c (win32_resume): Likewise.
4654 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
4655 * monitor.c (monitor_wait): Likewise.
4656 * remote.c (remote_wait): Likewise.
4657 * remote-mips.c (mips_wait): Likewise.
4659 * bsd-kvm.c (bsd_kvm_open): Likewise
4660 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
4661 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
4662 * i386-linux-nat.c (i386_linux_resume): Likewise.
4663 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
4664 (ia64_linux_stopped_data_address): Likewise.
4666 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
4667 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
4668 * mep-tdep.c (current_me_module, current_options): Likewise.
4669 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
4671 * linux-nat.c (linux_nat_do_thread_registers): Use thread
4672 regcache instead of current_regcache. Call target_fetch_registers.
4673 (linux_nat_corefile_thread_callback): Update call site.
4674 (linux_nat_do_registers): Likewise.
4675 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
4676 of current_regcache.
4677 (procfs_make_note_section): Likewise.
4678 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
4679 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
4680 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
4681 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
4683 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4685 * regcache.c (read_register, read_register_pid): Remove.
4686 (write_register, write_register_pid): Likewise.
4687 * regcache.h (read_register, read_register_pid): Remove prototype.
4688 (write_register, write_register_pid): Likewise.
4690 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4692 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
4693 (write_pc): Likewise. Remove default implementation, add predicate.
4694 * gdbarch.c, gdbarch.h: Regenerate.
4695 * regcache.c (read_pc_pid): Use current regcache instead of calling
4697 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
4699 (generic_target_write_pc): Remove.
4700 * inferior.h (generic_target_write_pc): Remove.
4701 * frv-tdep.c (frv_gdbarch_init): Do not install it.
4702 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
4703 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4704 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
4705 * sh-tdep.c (sh_gdbarch_init): Likewise.
4706 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
4708 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
4709 argument. Use REGCACHE instead of calling read_register_pid.
4710 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
4711 * hppa-tdep.c (hppa_read_pc): Likewise.
4712 * hppa-tdep.h (hppa_read_pc): Likewise.
4713 * ia64-tdep.c (ia64_read_pc): Likewise.
4714 * m32r-tdep.c (m32r_read_pc): Likewise.
4715 * mep-tdep.c (mep_read_pc): Likewise.
4716 * mn10300-tdep.c (mn10300_read_pc): Likewise.
4717 * spu-tdep.c (spu_read_pc): Likewise.
4719 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
4720 argument. Use REGCACHE instead of calling write_register_pid.
4721 * avr-tdep.c (avr_write_pc): Likewise.
4722 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
4723 * hppa-tdep.c (hppa_write_pc): Likewise.
4724 * hppa-tdep.h (hppa_write_pc): Likewise.
4725 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
4726 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
4727 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
4728 * ia64-tdep.c (ia64_write_pc): Likewise.
4729 * ia64-tdep.h (ia64_write_pc): Likewise.
4730 * m32r-tdep.c (m32r_write_pc): Likewise.
4731 * m88k-tdep.c (m88k_write_pc): Likewise.
4732 * mep-tdep.c (mep_write_pc): Likewise.
4733 * mips-tdep.c (mips_write_pc): Likewise.
4734 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
4735 * mn10300-tdep.c (mn10300_write_pc): Likewise.
4736 * sparc-tdep.c (sparc_write_pc): Likewise.
4737 * spu-tdep.c (spu_write_pc): Likewise.
4739 * mips-tdep.c (read_signed_register): Remove.
4740 (read_signed_register_pid): Likewise.
4741 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
4742 Use REGCACHE instead of calling read_signed_register_pid.
4744 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4746 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
4747 * gdbarch.c, gdbarch.h: Regenerate.
4748 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
4749 (push_dummy_code): Likewise. Pass it to callee.
4750 (call_function_by_hand): Pass current regcache to push_dummy_code.
4752 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
4753 argument. Use it instead of current_regcache.
4755 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
4756 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
4758 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4760 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
4761 * gdbarch.c, gdbarch.h: Regenerate.
4762 * infrun.c (handle_inferior_event): Pass current frame to
4763 gdbarch_get_longjmp_target.
4765 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
4766 Read registers from FRAME instead of using read_register.
4767 Use get_frame_arch instead of current_gdbarch.
4768 * arm-tdep.c (arm_get_longjmp_target): Likewise.
4769 * i386-tdep.c (i386_get_longjmp_target): Likewise.
4770 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
4771 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
4772 (mips64_linux_get_longjmp_target): Likewise.
4773 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
4775 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4777 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
4778 * gdbarch.c, gdbarch.h: Regenerate.
4779 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
4780 * arch-utils.h (generic_skip_trampoline_code): Likewise.
4781 * infrun.c (handle_inferior_event): Pass current frame to
4782 gdbarch_skip_trampoline_code and skip_language_trampoline.
4784 * language.c (unk_lang_trampoline): Add FRAME argument.
4785 (skip_language_trampoline): Add FRAME argument. Pass it to
4786 skip_trampoline callback.
4787 * language.h: Add forward declaration of struct frame_info.
4788 (struct language_defn): Add FRAME argument to skip_trampoline.
4789 (skip_language_trampoline): Add FRAME argument.
4790 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
4791 to skip_trampoline callback.
4792 * cp-abi.h: Add forward declaration of struct frame_info.
4793 (cplus_skip_trampoline): Add FRAME argument.
4794 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
4795 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
4796 to gdbarch_skip_trampoline_code.
4797 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
4798 to gdbarch_skip_trampoline_code.
4800 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
4801 * symtab.h (find_solib_trampoline_target): Likewise.
4802 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
4803 find_solib_trampoline_target.
4805 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
4806 from FRAME instead of calling read_register.
4808 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
4809 argument. Read registers from FRAME instead of using read_register.
4810 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
4811 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
4813 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
4816 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
4818 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
4819 registers from FRAME instead of using read_signed_register.
4821 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
4823 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
4824 instead of using read_register.
4825 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
4826 ppc64_standard_linkage_target.
4827 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
4828 Pass it to find_solib_trampoline_target. Read registers from FRAME
4829 instead of using read_register.
4831 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
4834 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4836 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
4838 * gdbarch.c, gdbarch.h: Regenerate.
4839 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
4841 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
4842 registers from FRAME instead of using read_register.
4843 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
4844 to alpha_next_pc. Use get_frame_pc instead of read_pc.
4845 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
4848 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
4849 from FRAME instead of using read_register.
4850 (thumb_get_next_pc): Likewise.
4851 (arm_get_next_pc): Likewise.
4852 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
4853 to arm_get_next_pc. Use get_frame_pc instead of read_register.
4854 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
4857 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
4858 from FRAME instead of using read_register.
4859 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
4860 to find_step_target.
4862 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
4863 from FRAME instead of using read_register / read_signed_register.
4864 (extended_mips16_next_pc): Likewise.
4865 (mips16_next_pc): Likewise.
4866 (mips_next_pc): Likewise.
4867 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
4868 to mips_next_pc. Use get_frame_pc instead of read_pc.
4869 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
4872 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
4873 of current frame. Read registers from FRAME.
4874 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
4875 branch_dest. Use get_frame_pc instead of read_pc.
4876 (rs6000_software_single_step): Likewise.
4877 (bl_to_blrl_insn_p): Do not call branch_dest.
4878 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
4881 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
4882 Read registers from FRAME instead of current regcache.
4883 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
4884 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
4885 * sparc-tdep.c (sparc_address_from_register): Remove.
4886 (sparc_analyze_control_transfer): Pass FRAME argument instead of
4887 GDBARCH. Pass FRAME to step_trap callback.
4888 (sparc_step_trap): Add FRAME argument.
4889 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
4890 to sparc_analyze_control_transfer. Read registers from FRAME instead
4891 of calling sparc_address_from_register.
4892 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
4894 (sparc_address_from_register): Remove prototype.
4895 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
4896 (sparcnbsd_step_trap): Add FRAME argument.
4898 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
4899 by FRAME. Read registers from FRAME instead of REGCACHE.
4901 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4903 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
4904 instead of calling read_register.
4906 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
4907 calling write_register.
4909 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
4910 calling write_register.
4912 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
4913 instead of calling read_register.
4914 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
4915 instead of calling read_register and write_register.
4917 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
4918 instead of current_regcache.
4920 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
4921 of calling write_register.
4922 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
4923 parameter instead of current_regcache.
4925 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
4926 instead of calling read_register.
4927 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
4928 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
4929 (mips_n32n64_push_dummy_call): Likewise.
4930 (mips_o32_push_dummy_call): Likewise.
4931 (mips_o64_push_dummy_call): Likewise.
4933 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
4934 parameter instead of current_regcache.
4936 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
4937 Use it instead of read_register and write_register.
4938 (xtensa_register_read_masked): Likewise.
4939 (xtensa_pseudo_register_read): Update call.
4940 (xtensa_pseudo_register_write): Likewise.
4941 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
4942 instead of calling read_register.
4943 (xtensa_push_dummy_call): Update comment.
4945 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4947 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
4948 by frame_unwind_register_signed calls.
4949 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
4950 frame allocations when called with NULL NEXT_FRAME parameter.
4951 (read_next_frame_reg): Remove.
4953 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
4954 instead of reading the FPSCR register.
4955 (sh_frame_cache): Pass unwound FPSCR register value to
4956 sh_analyze_prologue.
4957 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
4959 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
4960 instead of reading the CTBP register.
4961 (v850_frame_cache): Pass unwound CTBP register value to
4962 v850_analyze_prologue.
4964 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4966 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
4967 * sh-tdep.c (sh_show_regs): Likewise.
4968 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
4969 (sh_generic_show_regs): Add FRAME parameter. Use register
4970 values from that frame instead of calling read_register.
4971 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
4972 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
4973 sh_dsp_show_regs): Likewise.
4974 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
4975 sh64_show_regs): Likewise.
4977 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4979 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
4980 current regcache instead of calling read_register.
4982 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4984 * mep-tdep.c (current_me_module): Read from current regcache
4985 instead of calling read_register.
4986 (current_options): Likewise.
4988 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4990 * cris-tdep.c (cris_stopped_data_address): Read register values
4991 from current frame instead of calling read_register.
4992 * frv-tdep.c (frv_stopped_data_address): Likewise.
4994 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4996 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
4997 instead of write_register (PC_REGNUM, ...).
4999 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5001 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
5002 explaining why the PC adjustment code is necessary.
5004 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
5006 * m68k-tdep.h (enum m68k_flavour): New.
5007 (struct gdbarch_tdep): New fields
5008 float_return, flavour and fpregs_present.
5009 * m68k-tdep.c (m68k_register_type): Use
5010 fpregs_present and conditionalize floating
5011 registers type on flavour.
5012 (m68k_register_names): New.
5013 (m68k_register_name): Use the above.
5014 (m68k_convert_register_p): Consult fpregs_present.
5015 (m68k_register_to_value, m68k_value_to_register):
5016 Use register_type to obtain the type of floating
5018 (m68k_svr4_extract_return_value): Check tdep->float_return.
5019 Use register_type to get the type of floating
5021 (m68k_svr4_store_return_value): Likewise.
5022 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
5023 (m68k_analyze_register_saves): Likewise.
5024 (m68k_gdbarch_init): Extract infromation
5025 from XML description, if present. Guess coldfire by
5026 looking at the file, if present. Conditionalize
5027 setting of long double format. Set decr_pc_after_break
5028 to 2 on coldfire and fido. Enable XML-driven
5029 register description.
5030 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
5031 size of tdep->fpreg_type, as opposed to hardcoded value.
5032 * Makefile.in (m68k-tdep.o): Update dependencies.
5034 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5036 * NEWS: Mention "info spu" commands and qXfer:spu:read and
5037 qXfer:spu:write remote packet types.
5039 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5041 * xml-tdesc.c (tdesc_start_target): New.
5042 (target_attributes): New.
5043 (tdesc_elements): Use it.
5044 * features/gdb-target.dtd: Add #FIXED version attribute for
5047 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
5049 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
5051 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
5053 * fork-child.c (fork_inferior): Update comment.
5055 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5057 * features/Makefile: Generate regformats for mips-linux and
5059 * features/sort-regs.xsl: Correct typo.
5060 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
5061 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
5064 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5066 * config/mips/linux.mh (TDEP_XML): New.
5067 * features/mips-linux.xml, features/mips64-linux.xml: New files.
5068 * mips-linux-nat.c (mips_linux_register_addr): Handle
5069 MIPS_RESTART_REGNUM.
5070 (mips64_linux_register_addr): Likewise.
5071 (super_xfer_partial, mips_linux_xfer_partial): New.
5072 (_initialize_mips_linux_nat): Add them to the target_ops.
5073 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
5074 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
5075 (mips_linux_o32_sigframe_init)
5076 (mips_linux_n32n64_sigframe_init): Likewise.
5077 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
5078 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
5079 "org.gnu.gdb.mips.linux" feature.
5080 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
5081 (mips_linux_restart_reg_p): New prototype.
5082 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
5083 initialization routine.
5084 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
5086 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5088 * Makefile.in (mips-tdep.o): Update.
5089 * mips-tdep.c (struct register_alias, mips_o32_aliases)
5090 (mips_n32_n64_aliases, mips_register_aliases): New.
5091 (mips_register_name): Call tdesc_register_name.
5092 (mips_tdesc_register_reggroup_p): New.
5093 (mips_pseudo_register_type, value_of_mips_user_reg): New.
5094 (mips_gdbarch_init): Add target-described register support.
5095 Register aliases for register names.
5096 * target-descriptions.c (tdesc_register_name): Make global.
5097 (tdesc_register_in_reggroup_p): New function, broken out from
5098 tdesc_register_reggroup_p.
5099 (tdesc_register_reggroup_p): Use it.
5100 * target-descriptions.h (tdesc_register_name)
5101 (tdesc_register_in_reggroup_p): New prototypes.
5102 * NEWS: Correct formatting. Mention MIPS register support.
5103 * features/mips-cp0.xml, features/mips-fpu.xml,
5104 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
5105 features/mips64-cpu.xml: New files.
5107 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5109 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
5110 * valops.c (value_cast): Likewise.
5111 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
5112 * ui-out.c (ui_out_field_core_addr): Likewise.
5113 * tracepoint.c (tracepoints_info): Likewise.
5114 * symtab.c (print_msymbol_info): Likewise.
5115 * solib-irix.c (irix_current_sos)
5116 (irix_open_symbol_file_object): Likewise.
5117 * remote.c (build_remote_gdbarch_data): Likewise.
5118 * prologue-value.c (make_pv_area): Likewise.
5119 * procfs.c (info_mappings_callback): Likewise.
5120 * printcmd.c (print_scalar_formatted)
5121 (deprecated_print_address_numeric): Likewise.
5122 * memattr.c (mem_info_command): Likewise.
5123 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
5124 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
5125 * exec.c (print_section_info): Likewise.
5126 * dwarf2read.c (read_subrange_type): Likewise.
5127 * dwarf2loc.c (find_location_expression): Likewise.
5128 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
5129 (signed_address_type, execute_stack_op): Likewise.
5130 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
5131 * gdbarch.c, gdbarch.h: Regenerate.
5133 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5135 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
5136 * arch-utils.c (show_architecture): Likewise.
5137 * remote-mips.c (mips_open): Likewise
5138 * nto-tdep.c (nto_find_and_open_solib)
5139 (nto_init_solib_absolute_prefix): Likewise.
5140 * nto-procfs (procfs_open): Likewise.
5141 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
5142 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
5143 * gdbarch.c, gdbarch.h: Regenerate.
5145 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5147 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
5148 * gdbtypes.c (build_flt): Likewise.
5149 * gdbarch.c, gdbarch.h: Regenerate.
5151 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5153 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
5154 gdbarch_breakpoint_from_pc.
5155 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
5156 * remote.c (remote_insert_breakpoint)
5157 (remote_insert_hw_breakpoint): Likewise.
5158 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
5159 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
5160 * breakpoint.h (bp_target_info): Likewise (comment).
5161 * breakpoint.c (read_memory_nobpt): Likewise.
5162 * mem-break.c (default_memory_insert_breakpoint): Likewise.
5163 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
5164 * gdbarch.c, gdbarch.h: Regenerate.
5166 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5168 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
5169 * solib-svr4.c (svr4_truncate_ptr): Likewise.
5170 * solib-pa64.c (read_dynamic_info): Likewise.
5171 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
5172 * solib.c (info_sharedlibrary_command): Likewise.
5173 * s390-nat.c (SUBOFF): Likewise.
5174 * p-valprint.c (pascal_val_print): Likewise.
5175 * procfs.c (info_proc_mappings): Likewise.
5176 * printcmd.c (decode_format): Likewise.
5177 * nto-tdep.c (nto_truncate_ptr): Likewise.
5178 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5179 (mips64_linux_get_longjmp_target): Likewise.
5180 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5181 * jv-valprint.c (java_value_print): Likewise.
5182 * jv-lang.c (get_java_object_header_size): Likewise.
5183 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5184 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5185 (hppa_hpux_unwind_adjust_stub): Likewise.
5186 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5187 * gdbtypes.c (make_pointer_type, make_reference_type)
5188 (smash_to_memberptr_type): Likewise.
5189 * gdbarch.c, gdbarch.h: Regenerate.
5191 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5193 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
5194 (print_gp_register_row): Stop before printing a register bigger
5195 than the ABI register size.
5196 (mips_print_registers_info): Update call to mips_print_register.
5198 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5200 * expression.h (enum exp_opcode): Document a register name for
5202 * parse.c (write_dollar_variable): Write the register name for
5204 (operator_length_standard): Expect the register name following
5206 * ada-lang.c (resolve_subexp): Likewise.
5207 * ax-gdb.c (gen_expr): Likewise.
5208 * eval.c (evaluate_subexp_standard): Likewise.
5209 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5211 * tracepoint.c (encode_actions): Likewise.
5213 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5215 * utils.c (set_screen_size): Use INT_MAX for default columns.
5217 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
5219 * remote.c (remote_protocol_features): Add qXfer:spu:read and
5220 qXfer:spu:write packet types.
5222 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5224 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
5225 * gdbarch.c, gdbarch.h: Regenerate.
5227 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5229 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
5230 gdbarch_stab_reg_to_regnum.
5231 * stabsread.c (define_symbol): Likewise.
5232 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
5233 gdbarch_ecoff_reg_to_regnum.
5234 * mdebugread.c (parse_symbol): Likewise.
5235 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
5236 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
5237 gdbarch_dwarf_reg_to_regnum.
5238 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
5239 * coffread.c (process_coff_symbol): Likewise.
5240 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
5241 gdbarch_dwarf2_reg_to_regnum.
5242 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
5243 (locexpr_describe_location): Likewise.
5244 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
5245 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
5246 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
5247 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
5248 * gdbarch.c, gdbarch.h: Regenerate.
5250 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5252 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
5253 gdbarch_smash_text_address.
5254 * somread.c (som_symtab_read): Likewise.
5255 * elfread.c (record_minimal_symbol): Likewise.
5256 * dbxread.c (process_one_symbol): Likewise.
5257 * coffread.c (coff_symtab_read): Likewise.
5258 * gdbarch.c, gdbarch.h: Regenerate.
5260 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5262 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
5263 * findvar.c (value_from_register): Likewise.
5264 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
5265 * valops.c (value_assign): Likewise.
5266 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
5267 gdbarch_convert_register_p.
5268 * findvar.c (value_from_register): Likewise.
5269 * valops.c (value_assign): Likewise.
5270 * gdbarch.c, gdbarch.h: Regenerate.
5272 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5274 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
5275 gdbarch_register_sim_regno.
5276 * sim-regno.h (sim_regno): Likewise (comment).
5277 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
5278 * gdbarch.c, gdbarch.h: Regenerate.
5280 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5282 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
5283 gdbarch_virtual_frame_pointer.
5284 * tracepoint.c (encode_actions): Likewise.
5285 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
5286 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
5287 * gdbarch.c, gdbarch.h: Regenerate.
5289 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5291 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
5292 * p-lang.c (pascal_create_fundamental_type): Likewise.
5293 * objc-lang.c (objc_create_fundamental_type): Likewise.
5294 * mdebugread.c (_initialize_mdebugread): Likewise.
5295 * m2-lang.c (m2_create_fundamental_type)
5296 (_initialize_m2_language): Likewise.
5297 * gdbtypes.c (build_gdbtypes): Likewise.
5298 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5299 * doublest.c (floatformat_from_length): Likewise.
5300 * c-lang.c (c_create_fundamental_type): Likewise.
5301 * ada-lang.c (ada_create_fundamental_type)
5302 (ada_language_arch_info): Likewise.
5303 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
5304 * value.c (unpack_double): Likewise (comment).
5305 * gdbtypes.c (build_gdbtypes): Likewise.
5306 * doublest.c (floatformat_from_length): Likewise.
5307 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
5308 * valarith.c (value_binop): Likewise.
5309 * p-lang.c (pascal_create_fundamental_type): Likewise.
5310 * objc-lang.c (objc_create_fundamental_type): Likewise.
5311 * mdebugread.c (_initialize_mdebugread): Likewise.
5312 * m2-lang.c (m2_create_fundamental_type): Likewise.
5313 * gdbtypes.c (build_gdbtypes): Likewise.
5314 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5315 * doublest.c (floatformat_from_length): Likewise.
5316 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
5317 * c-lang.c (c_create_fundamental_type): Likewise.
5318 * ada-lex.l (processReal): Likewise.
5319 * ada-lang.c (ada_create_fundamental_type)
5320 (ada_language_arch_info): Likewise.
5321 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
5322 * value.c (unpack_double): Likewise (comment).
5323 * gdbtypes.c (build_gdbtypes): Likewise.
5324 * doublest.c (floatformat_from_length): Likewise.
5325 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
5326 gdbarch_long_double_bit.
5327 * p-lang.c (pascal_create_fundamental_type): Likewise.
5328 * objc-lang.c (objc_create_fundamental_type): Likewise.
5329 * m2-lang.c (m2_create_fundamental_type): Likewise.
5330 * gdbtypes.c (build_gdbtypes): Likewise.
5331 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5332 * doublest.c (floatformat_from_length): Likewise.
5333 * c-lang.c (c_create_fundamental_type): Likewise.
5334 * ada-lex.l (processReal): Likewise.
5335 * ada-lang.c (ada_create_fundamental_type)
5336 (ada_language_arch_info): Likewise.
5337 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
5338 gdbarch_long_double_format.
5339 * gdbtypes.c (build_gdbtypes): Likewise.
5340 * doublest.c (floatformat_from_length): Likewise.
5341 * gdbarch.c, gdbarch.h: Regenerate.
5343 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5345 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
5346 * ada-lang.c (ada_create_fundamental_type)
5347 (ada_language_arch_info): Likewise.
5348 * c-lang.c (c_create_fundamental_type): Likewise.
5349 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5350 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5351 * m2-lang.c (m2_create_fundamental_type): Likewise.
5352 * objc-lang.c (objc_create_fundamental_type): Likewise.
5353 * p-lang.c (pascal_create_fundamental_type): Likewise.
5354 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
5355 * c-exp.y (parse_number): Likewise.
5356 * objc-exp.y (parse_number): Likewise.
5357 * ada-lex.l (processInt): Likewise.
5358 * f-exp.y (parse_number): Likewise.
5359 * p-exp.y (parse_number): Likewise.
5360 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
5361 (gdbtypes_post_init, build_gdbtypes): Likewise.
5362 * p-lang.c (pascal_create_fundamental_type): Likewise.
5363 * parse.c (build_parse): Likewise.
5364 * xcoffread.c (_initialize_xcoffread): Likewise.
5365 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
5366 (read_range_type): Likewise.
5367 * objc-lang.c (objc_create_fundamental_type): Likewise.
5368 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
5369 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
5370 (m2_create_fundamental_type): Likewise.
5371 * c-lang.c (c_create_fundamental_type): Likewise.
5372 * coffread.c (coff_read_enum_type): Likewise.
5373 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
5374 * dwarf2read.c (new_symbol): Likewise.
5375 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
5376 * c-exp.y (parse_number): Likewise.
5377 * objc-exp.y (parse_number): Likewise.
5378 * ada-lex.l (processInt): Likewise.
5379 * f-exp.y (parse_number): Likewise.
5380 * p-exp.y (parse_number): Likewise.
5381 * valarith.c (value_binop): Likewise.
5382 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
5383 * ada-lang.c (ada_create_fundamental_type)
5384 (ada_language_arch_info): Likewise.
5385 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5386 * symfile.c (TARGET_LONG_BYTES): Likewise.
5387 * p-lang.c (pascal_create_fundamental_type): Likewise.
5388 * objc-lang.c (objc_create_fundamental_type): Likewise.
5389 * m2-lang.c (m2_create_fundamental_type): Likewise.
5390 * f-lang.c (f_create_fundamental_type): Likewise.
5391 * c-lang.c (c_create_fundamental_type): Likewise.
5392 * coffread.c (decode_base_type): Likewise.
5393 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
5394 * c-exp.y (parse_number): Likewise.
5395 * objc-exp.y (parse_number): Likewise.
5396 * p-exp.y (parse_number): Likewise.
5397 * ada-lang.c (ada_create_fundamental_type)
5398 (ada_language_arch_info): Likewise.
5399 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
5400 * stabsread.c (read_range_type): Likewise.
5401 * p-lang.c (pascal_create_fundamental_type): Likewise.
5402 * objc-lang.c (objc_create_fundamental_type): Likewise.
5403 * m2-lang.c (m2_create_fundamental_type): Likewise.
5404 * f-lang.c (f_create_fundamental_type): Likewise.
5405 * c-lang.c (c_create_fundamental_type): Likewise.
5406 * gdbarch.c, gdbarch.h: Regenerate.
5408 2007-06-12 Andreas Schwab <schwab@suse.de>
5410 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
5411 (struct frame_unwind): Add dealloc_cache.
5412 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
5414 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
5415 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
5416 (libunwind_frame_unwind): Set dealloc_cache.
5417 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
5419 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5420 Markus Deuling <deuling@de.ibm.com>
5422 * remote.c (remote_write_qxfer): New function.
5423 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
5424 (remote_read_qxfer): Do not cache empty objects.
5425 (_initialize_remote): Add PACKET_qXfer_spu_read and
5426 PACKET_qXfer_spu_write.
5428 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5430 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
5431 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
5433 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
5434 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
5435 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
5436 * spu-tdep.c (infospucmdlist): New variable.
5437 (spu_register_name): Handle additional pseudo registers.
5438 (spu_register_type): Likewise.
5439 (spu_pseudo_register_read): Likewise.
5440 (spu_pseudo_register_write): Likewise.
5441 (spu_pseudo_register_read_spu): New function.
5442 (spu_pseudo_register_write_spu): Likewise.
5443 (info_spu_event_command): New function.
5444 (info_spu_signal_command): Likewise.
5445 (info_spu_mailbox_list): Likewise.
5446 (info_spu_mailbox_command): Likewise.
5447 (spu_mfc_get_bitfield): Likewise.
5448 (info_spu_dma_cmdlist): Likewise.
5449 (info_spu_dma_command): Likewise.
5450 (info_spu_proxydma_command): Likewise.
5451 (info_spu_command): Likewise.
5452 (_initialize_spu_tdep): Install "info spu" commands.
5454 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5456 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
5457 accessing non-seekable spufs files.
5459 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5461 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
5462 gdbarch_skip_trampoline_code.
5463 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
5464 * objc-lang.c (objc_skip_trampoline)
5465 (objc_submethod_helper_data): Likewise.
5466 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
5467 * infrun.c (handle_inferior_event): Likewise.
5468 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
5469 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
5470 gdbarch_in_solib_return_trampoline.
5471 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
5472 * infrun.c (handle_inferior_event): Likewise.
5473 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
5474 * gdbarch.c, gdbarch.h: Regenerate.
5476 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5478 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
5479 * symtab.c (find_function_start_sal, in_prologue): Likewise.
5480 * linespec.c (minsym_found): Likewise.
5481 * infrun.c (step_into_function): Likewise.
5482 * gdbarch.c, gdbarch.h: Regenerate.
5484 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5486 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
5487 * valops.c (value_allocate_space_in_inferior): Likewise.
5488 * gdbarch.c, gdbarch.h: Regenerate.
5490 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5492 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
5493 gdbarch_memory_insert_breakpoint.
5494 * mem-break.c (memory_insert_breakpoint): Likewise.
5495 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
5496 gdbarch_memory_remove_breakpoint.
5497 * mem-break.c (memory_remove_breakpoint): Likewise.
5498 * gdbarch.c, gdbarch.h: Regenerate.
5500 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5502 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
5503 gdbarch_fetch_tls_load_module_address.
5504 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
5505 gdbarch_fetch_tls_load_module_address_p.
5506 * gdbarch.c, gdbarch.h: Regenerate.
5508 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5510 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
5511 gdbarch_decr_pc_after_break.
5512 * tracepoint.c (trace_dump_command): Likewise.
5513 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
5514 * linux-thread-db.c (check_event): Likewise.
5515 * linux-nat.c (cancel_breakpoints_callback): Likewise.
5516 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
5517 * frame.h: Likewise (comment).
5518 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
5519 * aix-thread.c (aix_thread_wait): Likewise.
5520 * gdbarch.c, gdbarch.h: Regenerate.
5522 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5524 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
5525 gdbarch_address_class_type_flags.
5526 * dwarf2read.c (read_tag_pointer_type): Likewise.
5527 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
5528 gdbarch_address_class_type_flags_p.
5529 * dwarf2read.c (read_tag_pointer_type): Likewise.
5530 * gdbarch.c, gdbarch.h: Regenerate.
5532 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5534 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
5535 * value.c (value_as_address): Likewise (comment).
5536 * remote-mips.c (common_breakpoint): Likewise.
5537 * regcache.c (read_pc_pid): Likewise.
5538 * printcmd.c (do_one_display): Likewise.
5539 * monitor.c (monitor_write_memory, monitor_read_memory)
5540 (monitor_insert_breakpoint): Likewise.
5541 * mips-tdep.c (heuristic_proc_start): Likewise.
5542 * infrun.c (insert_step_resume_breakpoint_at_frame)
5543 (insert_step_resume_breakpoint_at_caller): Likewise.
5544 * buildsym.c (record_line): Likewise.
5545 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
5546 (arm_get_next_pc): Likewise.
5547 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
5548 (store_regs): Likewise.
5549 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
5550 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
5551 * gdbarch.c, gdbarch.h: Regenerate.
5553 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5555 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
5556 * tracepoint.c (scope_info): Likewise.
5557 * target.c (debug_print_register): Likewise.
5558 * stack.c (frame_info): Likewise.
5559 * sh-tdep.c (sh_register_reggroup_p): Likewise.
5560 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
5561 (sh64_media_print_registers_info)
5562 (sh64_compact_print_registers_info): Likewise.
5563 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
5564 * remote-sim.c (gdbsim_fetch_register): Likewise.
5565 * remote.c (packet_reg): Likewise (comment).
5566 * reggroups.c (default_register_reggroup_p): Likewise.
5567 * regcache.c (regcache_dump): Likewise.
5568 * printcmd.c (address_info): Likewise.
5569 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
5570 * mt-dep.c (mt_registers_info): Likewise.
5571 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
5572 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
5573 (mips_read_fp_register_double, mips_print_fp_register)
5574 (mips_print_register, print_gp_register_row, mips_print_registers_info)
5575 (mips_register_sim_regno): Likewise.
5576 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
5577 * inf-ptrace.c (inf_ptrace_fetch_register)
5578 (inf_ptrace_store_register): Likewise.
5579 * infcmd.c (default_print_registers_info): Likewise.
5580 * ia64-linux-nat.c (ia64_linux_fetch_register)
5581 (ia64_linux_store_register): Likewise.
5582 * i386-linux-nat.c (fetch_register, store_register): Likewise.
5583 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
5584 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
5585 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
5586 (hppa_hpux_store_register): Likewise.
5587 * findvar.c (locate_var_value): Likewise.
5588 * dwarf2loc.c (locexpr_describe_location): Likewise.
5589 * dwarf2-frame.c (execute_cfa_program): Likewise.
5590 * arm-tdep.c (arm_push_dummy_call): Likewise.
5591 * arch-utils.c (legacy_register_sim_regno): Likewise.
5592 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
5593 * alpha-nat.c (fetch_osf_core_registers): Likewise.
5594 * mi/mi-main.c (mi_cmd_data_list_register_names)
5595 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
5596 (mi_cmd_data_write_register_values): Likewise.
5597 * gdbarch.c, gdbarch.h: Regenerate.
5599 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
5601 * target-memory.c (blocks_to_erase): Correct off-by-one error.
5603 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
5605 * remote.c (process_g_packet): Don't check size.
5606 * gdbarch.sh: Remove register_bytes_ok.
5607 * gdbarch.c: Regenerated.
5608 * gdbarch.h: Regenerated.
5609 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
5610 (m68k_register_bytes_ok): Remove.
5611 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
5613 2007-06-06 Andreas Schwab <schwab@suse.de>
5615 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
5616 (destroy_addr_space_name): Define.
5617 (libunwind_load): Get address of destroy_addr_space function.
5618 (libunwind_frame_cache): Destroy unw_addr_space_t object before
5619 returning unsuccessfully.
5620 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
5622 (libunwind_sigtramp_frame_sniffer): Likewise.
5623 (libunwind_get_reg_special): Likewise.
5625 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5627 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
5628 gdbarch_fetch_pointer_argument.
5629 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
5630 * gdbarch.c, gdbarch.h: Regenerate.
5632 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5634 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
5635 gdbarch_have_nonsteppable_watchpoint.
5636 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
5637 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
5638 gdbarch_cannot_step_breakpoint.
5639 * infrun.c (resume): Likewise.
5640 * gdbarch.c, gdbarch.h: Regenerate.
5642 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5644 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
5645 * stack.c (print_frame_args): Likewise.
5646 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
5647 * stack.c (print_args_stub, frame_info): Likewise.
5648 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
5649 * stack.c (print_args_stub, frame_info): Likewise.
5650 * gdbarch.c, gdbarch.h: Regenerate.
5652 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5654 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
5655 gdbarch_coff_make_msymbol_special.
5656 * coffread.c (coff_symtab_read): Likewise.
5657 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
5658 gdbarch_elf_make_msymbol_special.
5659 * elfread.c (elf_symtab_read): Likewise.
5660 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
5661 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
5662 * gdbarch.c, gdbarch.h: Regenerate.
5664 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5666 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
5667 gdbarch_frame_red_zone_size.
5668 * gdbarch.c, gdbarch.h: Regenerate.
5670 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5672 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
5673 * infcall.c (call_function_by_hand): Likewise.
5674 * gcore.c (derive_stack_segment): Likewise.
5675 * frame.c (frame_id_inner): Likewise.
5676 * arch-utils.c (core_addr_lessthan): Likewise (comment).
5677 * ada-lang.c (ensure_lval): Likewise.
5678 * gdbarch.c, gdbarch.h: Regenerate.
5680 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5682 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
5683 gdbarch_address_to_pointer.
5684 * findvar.c (store_typed_address): Likewise.
5685 * gdbtypes.c (make_pointer_type): Likewise (comment).
5686 * procfs.c (procfs_address_to_host_pointer): Likewise.
5687 * std-regs.c (value_of_builtin_frame_reg): Likewise.
5688 (value_of_builtin_frame_fp_reg): Likewise.
5689 (value_of_builtin_frame_pc_reg): Likewise.
5690 * utils.c (paddress): Likewise (comment).
5691 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
5692 gdbarch_pointer_to_address.
5693 * findvar.c (extract_typed_address): Likewise.
5694 * gdbtypes.c (make_pointer_type): Likewise (comment).
5695 * valops.c (value_cast): Likewise (comment).
5696 * gdbarch.c, gdbarch.h: Regenerate.
5698 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5700 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
5701 * infrun.c (handle_inferior_event): Likewise.
5702 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
5703 gdbarch_get_longjmp_target_p.
5704 * breakpoint.c (breakpoint_re_set): Likewise.
5705 * infrun.c (handle_inferior_event): Likewise.
5706 * gdbarch.c, gdbarch.h: Regenerate.
5708 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
5710 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
5711 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
5712 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
5713 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
5714 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
5715 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
5716 find_stub_with_shl_get, cover_find_stub_with_shl_get,
5717 initialize_hp_cxx_exception_support, child_enable_exception_callback,
5718 current_ex_event, child_get_current_exception_event): Remove.
5719 (hppa_hpux_inferior_created): Remove.
5720 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
5722 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
5723 (deprecated_exception_support_initialized): Remove.
5724 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
5725 (deprecated_exception_support_initialized): Remove.
5726 (breakpoint_init_inferior): Remove handling of non-zero
5727 deprecated_exception_catchpoints_are_fragile.
5729 * symtab.h (deprecated_hp_som_som_object_present): Remove.
5730 * symtab.c (deprecated_hp_som_som_object_present): Remove.
5731 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
5732 deprecated_hp_som_som_object_present.
5733 * eval.c (evaluate_subexp_standard): Likewise.
5734 * valops.c (value_cast): Likewise.
5736 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
5737 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
5738 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
5740 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
5742 * objfiles.h (ImportEntry, ExportEntry): Remove types.
5743 (struct objfile): Remove import_list, import_list_size,
5744 export_list, export_list_size members.
5745 (is_in_import_list): Remove prototype.
5746 * objfiles.c (is_in_import_list): Remove.
5747 * somread.c (init_import_symbols, init_export_symbols): Remove.
5748 (som_symfile_read): Do not call init_import_symbols. Do not
5749 set objfile->export_list and objfile->export_list_size.
5751 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
5753 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
5754 Use the original objfile if necessary.
5756 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
5758 * defs.h (ldirname): New prototype.
5759 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
5761 * utils.c (ldirname): New function.
5762 * xml-tdesc.c (file_read_description_xml): Use ldirname.
5764 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
5766 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
5768 2007-06-01 Joel Brobecker <brobecker@adacore.com>
5770 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
5772 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
5774 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
5776 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
5778 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
5779 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
5780 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
5781 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
5782 (ppc_linux_in_sigtramp, insn_is_sigreturn,
5783 ppc_linux_at_sigtramp_return_path): Remove.
5785 2007-05-31 Markus Deuling <deuling@de.ibm.com>
5787 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
5788 (xtensa_register_write_masked, xtensa_register_read_masked)
5789 (xtensa_extract_return_value, xtensa_store_return_value
5790 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
5791 TARGET_BYTE_ORDER by gdbarch_byte_order.
5792 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
5793 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
5794 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
5795 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
5796 (sh64_push_dummy_call, sh64_extract_return_value)
5797 (sh64_store_return_value, sh64_register_convert_to_virtual)
5798 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
5799 (sh64_pseudo_register_write, sh64_do_fp_register)
5800 (sh64_frame_prev_register): Likewise.
5801 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
5802 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
5803 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
5804 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
5805 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
5806 * ppc-linux-nat.c (store_register): Likewise.
5807 * nto-tdep.c (nto_find_and_open_solib)
5808 (nto_init_solib_absolute_prefix): Likewise.
5809 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
5810 (mips_convert_register_p, mips_eabi_push_dummy_call)
5811 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
5812 (mips_o32_push_dummy_call, mips_o32_return_value)
5813 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
5814 (mips_read_fp_register_single, mips_read_fp_register_double)
5815 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
5816 (mips_breakpoint_from_pc): Likewise.
5817 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
5818 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
5819 (mips_linux_o32_sigframe_init): Likewise.
5820 * m32r-tdep.c (m32r_memory_insert_breakpoint)
5821 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
5822 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
5823 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
5824 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
5825 * coffread.c (process_coff_symbol): Likewise.
5826 * arm-tdep.c (convert_from_extended, convert_to_extended)
5827 (gdb_print_insn_arm): Likewise.
5829 2007-05-31 Markus Deuling <deuling@de.ibm.com>
5831 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
5832 * i386-tdep.c (i386_dbx_reg_to_regnum)
5833 (i386_svr4_reg_to_regnum): Likewise.
5834 * inf-ptrace.c (inf_ptrace_fetch_registers)
5835 (inf_ptrace_store_registers): Likewise.
5836 * corelow.c (get_core_registers): Likewise.
5837 * i386-linux-nat.c (supply_gregset, fill_gregset)
5838 (i386_linux_fetch_inferior_registers)
5839 (i386_linux_store_inferior_registers): Likewise.
5840 * remote.c (init_remote_state,packet_reg_from_regnum)
5841 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
5842 (remote_prepare_to_store,store_registers_using_G)
5843 (remote_store_registers,remote_arch_state): Likewise.
5844 * tracepoint.c (encode_actions): Likewise.
5845 * mi/mi-main.c (mi_cmd_data_list_register_names)
5846 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
5847 (mi_cmd_data_write_register_values): Likewise.
5848 * tui/tui-regs.c (tui_show_register_group)
5849 (tui_show_register_group): Likewise.
5850 * xtensa-tdep.h (FP_ALIAS): Likewise.
5851 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
5852 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
5853 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
5854 * win32-nat.c (do_win32_fetch_inferior_registers)
5855 (do_win32_store_inferior_registers,fetch_elf_core_registers
5856 * user-regs.h: Likewise (comment).
5857 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
5858 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
5859 * target-descriptions.h: Likewise (comment).
5860 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
5861 * target.c (debug_print_register): Likewise.
5862 * stack.c (frame_info): Likewise.
5863 * stabsread.c (define_symbol): Likewise.
5864 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
5865 (sh64_media_print_registers_info)
5866 (sh64_compact_print_registers_info): Likewise.
5867 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
5868 * rs6000-nat.c (fetch_register,store_register): Likewise.
5869 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
5870 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
5871 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
5872 * remote-m32r-sdi.c (m32r_fetch_registers)
5873 (m32r_store_registers): Likewise.
5874 * reggroups.c (default_register_reggroup_p): Likewise.
5875 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
5876 (regcache_restore,regcache_dump): Likewise.
5877 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
5878 * mips-tdep.c (mips_xfer_register,mips_register_name)
5879 (mips_register_reggroup_p,mips_pseudo_register_read)
5880 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
5881 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
5882 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
5883 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
5884 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
5885 (print_gp_register_row,mips_print_registers_info)
5886 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
5887 (mips_register_sim_regno): Likewise.
5888 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
5889 (mips_linux_n32n64_sigframe_init): Likewise.
5890 * mips-linux-nat.c (mips_linux_register_addr)
5891 (mips64_linux_register_addr): Likewise.
5892 * findvar.c (value_of_register): Likewise.
5893 * infcmd.c (default_print_registers_info,registers_info)
5894 (print_vector_info,print_float_info): Likewise.
5895 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
5896 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
5897 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
5898 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
5899 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
5900 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
5901 (ia64_cannot_store_register,ia64_linux_fetch_registers)
5902 (ia64_linux_store_registers): Likewise.
5903 * hpux-thread.c (hpux_thread_fetch_registers)
5904 (hpux_thread_store_registers): Likewise.
5905 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
5906 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
5907 (h8300_register_type): Likewise.
5908 * dwarf2-frame.c (dwarf2_frame_cache)
5909 (dwarf2_frame_state_alloc_regs): Likewise.
5910 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
5911 (cris_cannot_store_register,crisv32_cannot_fetch_register)
5912 (crisv32_cannot_store_register,cris_register_name): Likewise.
5913 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
5914 * arch-utils.c (legacy_register_sim_regno)
5915 (legacy_virtual_frame_pointer): Likewise.
5916 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
5917 * arm-tdep.h: Likewise (comment).
5918 * frv-tdep.c (frv_register_sim_regno): Likewise.
5919 * m68klinux-nat.c (old_fetch_inferior_registers)
5920 (old_store_inferior_registers): Likewise.
5921 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
5922 * irix5-nat.c (fetch_core_registers): Likewise.
5923 * hppa-tdep.c (hppa_frame_cache): Likewise.
5924 * hppa-linux-nat.c (hppa_linux_register_addr)
5925 (hppa_linux_fetch_inferior_registers)
5926 (hppa_linux_store_inferior_registers): Likewise.
5927 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
5928 (hppa_hpux_store_inferior_registers): Likewise.
5929 * amd64-nat.c (amd64_native_gregset_reg_offset)
5930 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
5931 * dbug-rom.c (dbug_regname): Likewise.
5932 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
5933 (HARD_PAGE_REGNUM (comment)): Likewise.
5934 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
5935 * i386-tdep.c (i386_dbx_reg_to_regnum)
5936 (i386_svr4_reg_to_regnum): Likewise.
5937 * mi/mi-main.c (mi_cmd_data_list_register_names)
5938 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
5939 (mi_cmd_data_write_register_values): Likewise.
5940 * gdbarch.c, gdbarch.h: Regenerate.
5941 * tui/tui-regs.c (tui_show_register_group): Likewise.
5942 * xtensa-tdep.h (FP_ALIAS): Likewise.
5943 * user-regs.h: Likewise (comment).
5944 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
5945 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
5946 * target-descriptions.h: Likewise (comment).
5947 * target.c (debug_print_register): Likewise.
5948 * stack.c (frame_info): Likewise.
5949 * stabsread.c (define_symbol): Likewise.
5950 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
5951 (sh64_compact_print_registers_info): Likewise.
5952 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
5953 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
5954 (regcache_restore,regcache_dump): Likewise.
5955 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
5956 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
5957 (mips_stab_reg_to_regnum): Likewise.
5958 * findvar.c (value_of_register): Likewise.
5959 * infcmd.c (default_print_registers_info,registers_info)
5960 (print_vector_info,print_float_info): Likewise.
5961 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
5962 * h8300-tdep.c (h8300_register_type): Likewise.
5963 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
5964 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
5965 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
5966 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
5967 * parse.c: Remove comment.
5968 * gdbarch.c, gdbarch.h: Regenerate
5970 2007-05-31 Markus Deuling <deuling@de.ibm.com>
5972 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
5973 gdbarch_cannot_fetch_register.
5974 * alpha-nat.c (fetch_osf_core_registers): Likewise.
5975 * hppa-linux-nat.c (fetch_register): Likewise.
5976 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
5977 * m68klinux-nat.c (fetch_register): Likewise.
5978 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
5980 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
5981 gdbarch_cannot_store_register.
5982 * hppa-linux-nat.c (store_register): Likewise.
5983 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
5984 * regcache.c (regcache_raw_write): Likewise.
5985 * m68klinux-nat.c (store_register): Likewise.
5986 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
5987 * gdbarch.c, gdbarch.h: Regenerate.
5989 2007-05-31 Markus Deuling <deuling@de.ibm.com>
5991 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
5992 * gdbarch.c, gdbarch.h: Regenerate.
5994 2007-05-31 Markus Deuling <deuling@de.ibm.com>
5996 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
5997 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5998 * gdbarch.c, gdbarch.h: Regenerate.
6000 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6002 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
6003 * ax-gdb.c (gen_bitfield_ref): Likewise.
6004 * mi/mi-main.c (get_register): Likewise.
6005 * findvar.c (default_value_from_register, extract_signed_integer)
6006 (extract_unsigned_integer, extract_long_unsigned_integer)
6007 (store_signed_integer, store_unsigned_integer): Likewise.
6008 * regcache.c (regcache_dump): Likewise.
6009 * value.c (lookup_internalvar, value_of_internalvar)
6010 (set_internalvar): Likewise.
6012 * valprint.c (print_binary_chars, print_octal_chars)
6013 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
6014 * infcmd.c (default_print_registers_info): Likewise.
6015 * arch-utils.c (selected_byte_order, show_endian): Likewise.
6016 * stabsread.c (define_symbol): Likewise.
6017 * doublest.c (floatformat_from_length, floatformat_from_type)
6018 (extract_typed_floating, store_typed_floating): Likewise.
6019 * gdbarch.c, gdbarch.h: Regenerate.
6021 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6023 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
6024 gdbarch_call_dummy_location.
6025 * infcall.c (call_function_by_hand): Likewise.
6026 * inferior.h: Change comment.
6027 * arch-utils.c: Change comment.
6028 * gdbarch.c, gdbarch.h: Regenerate.
6030 2007-05-28 Joel Brobecker <brobecker@adacore.com>
6032 * solib-aix5.c: Delete.
6033 * Makefile.in (solib-aix5.o): Delete rule.
6035 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
6037 * breakpoint.h (enum bpstat_what_main_action): Remove
6038 BPSTAT_WHAT_THROUGH_SIGTRAMP.
6039 * infrun.c (process_event_stop_test): Do not check for it.
6041 2007-05-22 Chris Dearman <chris@mips.com>
6042 Maciej W. Rozycki <macro@mips.com>
6044 * ser-unix.c (show_serial_hwflow): New function.
6045 (hardwire_raw): Add hardware flow control support.
6046 (_initialize_ser_hardwire): Add "set/show remoteflow".
6047 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
6048 * NEWS: Document the new command.
6050 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6052 * config/i386/tm-linux.h (sys_quotactl): Do not define.
6053 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
6054 define for i[[3456]]86-*-linux* native configurations.
6055 * config.in, configure: Regenerate.
6057 2007-05-19 Joel Brobecker <brobecker@adacore.com>
6059 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
6060 a core file. Add comment in the function description.
6062 2007-05-18 Caroline Tice <ctice@apple.com>
6064 * c-valprint.c (c_value_print): If the initialized field of the
6065 value struct is 0, print out "[uninitialized]" before the value.
6066 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
6067 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
6068 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
6069 ctx->initialized appropriately. Verify no location op follows
6071 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
6072 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
6073 set_value_initialized.
6074 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
6075 (decode_locdesc): Add case for DW_OP_GNU_uninit.
6076 * value.c (struct value): New field, initialized.
6077 (allocate_value): Initialize new field.
6078 (set_value_initialized): New function.
6079 (value_initialized): New function.
6080 * value.h (value_initialized): New extern declaration.
6081 (set_value_initialized): Likewise.
6083 2007-05-18 Caroline Tice <ctice@apple.com>
6085 * MAINTAINERS (Write After Approval): Add self.
6087 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6089 * gdbtypes.c (make_reference_type): Preserve the type chain
6090 and set the length of all the variants of the pointer type.
6092 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6094 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
6095 and set the length of all the variants of the pointer type.
6097 2007-05-17 Maciej W. Rozycki <macro@mips.com>
6099 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
6101 (mips_o64_push_dummy_call): Reformat a comment.
6103 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
6105 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
6106 (score_prologue_frame_base_address): Return fp to keep gdb print
6107 local variables correctly when debugging information is stabs.
6109 (score_analyze_prologue): For software watchpoint, fetch all the
6110 instructions from range [startaddr, pc] once and identify them locally
6111 to reduce memory access.
6112 (score_malloc_and_get_memblock, score_free_memblock)
6113 (score_adjust_memblock_ptr): New functions.
6114 (score_fetch_inst): Fetch single instruction or mutiple instructions.
6116 (score_target_can_use_watch, score_stopped_by_watch)
6117 (score_target_insert_watchpoint, score_target_remove_watchpoint)
6118 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
6119 New functions for remote & local hw-watchpoint and hw-breakpoint.
6121 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
6123 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
6124 declarations as well.
6126 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6128 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
6129 * config/arm/tm-embed.h: Delete file.
6131 * arm-tdep.h (arm_software_single_step): Declare.
6132 * arm-tdep.c (arm_software_single_step): Make global.
6133 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
6135 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
6136 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
6137 * armobsd-tdep.c (armobsd_init_abi): ... here ...
6138 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
6140 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
6141 allow defines to be overriden by TM file.
6142 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
6143 change default to {0xbe,0xbe}.
6144 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
6145 arm_obsd_thumb_be_breakpoint): New global variables.
6146 (armobsd_init_abi): Override tdep->thumb_breakpoint and
6147 tdep->thumb_breakpoint_size.
6148 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
6149 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
6150 tdep->thumb_breakpoint_size.
6152 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
6154 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6156 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
6159 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
6160 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
6161 (mips_stack_argsize_string, mips_stack_argsize): Delete.
6162 (mips_abi_regsize): Simplify.
6163 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6164 (mips_n32n64_return_value, mips_o32_push_dummy_call)
6165 (mips_o32_return_value, mips_o64_push_dummy_call)
6166 (mips_o64_return_value): Propogate constant register sizes. Use the
6167 ABI register size instead of mips_stack_argsize.
6168 (mips_dump_tdep): Don't print mips_stack_argsize.
6169 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
6172 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6174 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
6175 * config/mips/tm-linux.h: Delete.
6176 * mips-linux-tdep.c (mips_svr4_so_ops): New.
6177 (mips_linux_in_dynsym_resolve_code): Make static. Use
6178 svr4_in_dynsym_resolve_code.
6179 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
6181 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
6183 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
6184 * Makefile.in (mips-linux-tdep.o): Update.
6185 * solib.c (set_solib_ops): New.
6186 (current_target_so_ops): Update comment.
6187 * solib.h (set_solib_ops): New prototype.
6189 2007-05-16 Chris Dearman <chris@mips.com>
6191 * printcmd.c (do_examine): Fix typos in a comment.
6193 2007-05-16 Richard Sandiford <richard@codesourcery.com>
6195 * configure.ac: Allow sysroots to be relocated under $prefix as
6196 well as $exec_prefix.
6197 * configure: Regenerate.
6199 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6201 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
6202 (offsetof): Do not define.
6203 (find_stub_with_shl_get): Use numerical value 3 instead of
6204 symbolic value TYPE_PROCEDURE.
6206 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6208 * gdb_proc_service.h (paddr_t): Delete typedef.
6209 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
6210 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
6211 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
6212 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
6213 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
6214 * Makefile.in (proc-service.o): Update.
6216 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6218 * Makefile.in (mips-tdep.o): Update.
6219 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
6222 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6224 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
6225 instead of store_typed_address.
6226 * value.c (pack_long): New.
6227 (value_from_longest): Use it.
6228 * value.h (pack_long): New prototype.
6230 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6232 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
6233 DW_EH_PE_signed if appropriate.
6235 2007-05-14 Paul Brook <paul@codesourcery.com>
6236 Daniel Jacobowitz <dan@codesourcery.com>
6238 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
6240 (dwarf_decode_lines): Check for line info without a file.
6242 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6244 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
6247 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6249 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
6251 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
6253 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
6255 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6257 * gdbarch.sh (read_sp): Remove.
6258 * gdbarch.c, gdbarch.h: Regenerate.
6259 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
6261 * avr-tdep.c (avr_read_sp): Remove.
6262 (avr_unwind_sp): New function.
6263 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
6264 * mips-tdep.c (mips_read_sp): Remove.
6265 (mips_unwind_sp): New function.
6266 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
6267 * score-tdep.c (score_read_unsigned_register): Remove.
6268 (score_read_sp): Remove.
6269 (score_unwind_sp): New function.
6270 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
6272 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
6274 * buildsym.c (start_subfile): Handle absolute pathnames
6275 while comparing subfile names.
6277 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6279 * hppa-hpux-tdep.c: Include "regcache.h".
6280 * hppa-linux-tdep.c: Likewise.
6281 * hppa-tdep.c: Include "gdb_stdint.h".
6282 (find_unwind_entry): Cast host pointer to uintptr_t before passing
6284 * Makefile.in: Update dependencies.
6286 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6288 * blockframe.c: Remove obsolete comments.
6289 * alpha-nat.c (fetch_osf_core_registers): Update comment.
6290 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
6291 * hppa-tdep.h (enum hppa_regnum): Likewise.
6292 * mips-tdep.h: Likewise.
6293 * m68hc11-tdep.c: Likewise.
6295 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6297 * inferior.h (read_sp): Remove prototype.
6298 * regcache.c (read_sp): Remove.
6299 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
6300 * infcall.c (call_function_by_hand): Likewise.
6301 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
6303 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6305 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6307 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
6308 instead of read_register and read_register_pid.
6310 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
6311 argument instead of PTID. Use regcache functions instead of
6313 (ia64_linux_insert_watchpoint): Update call.
6314 (ia64_linux_stopped_data_address): Use regcache functions
6315 instead of read_register_pid and write_register_pid.
6317 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6319 * libunwind-frame.h (struct regcache): Add forward declaration.
6320 (libunwind_get_reg_special): Add REGCACHE argument.
6321 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
6322 argument. Pass it to unw_init_remote_p.
6324 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
6325 libunwind_get_reg_special.
6326 (ia64_access_reg): Remove "write" case.
6327 (ia64_access_fpreg): Likewise. Read from next_frame passed
6328 as callback argument instead of from current_regcache.
6329 (ia64_access_rse_reg): Remove "write" case. Read from regcache
6330 passed as callback argument instead of from current_regcache.
6331 (ia64_access_rse_fpreg): New function.
6332 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
6334 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6336 * NEWS: Mention SPU overlay support.
6338 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6340 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
6342 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6344 * breakpoint.c (remove_breakpoint): Do not remove software
6345 breakpoints in unmapped overlay sections.
6347 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6349 * spu-tdep.c: Include "observer.h".
6350 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
6351 (spu_overlay_data): New variable.
6352 (struct spu_overlay_table): New type.
6353 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
6354 spu_overlay_new_objfile): New functions.
6355 (spu_gdbarch_init): Install spu_overlay_update.
6356 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
6357 allocate spu_overlay_data objfile data.
6359 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6361 * gdbarch.sh (overlay_update): New gdbarch function.
6362 (struct obj_section): Add forward declaration.
6363 * gdbarch.c, gdbarch.h: Regenerate.
6365 * symfile.c (simple_overlay_update): Make global.
6366 (target_overlay_update): Remove variable.
6367 (overlay_is_mapped): Call gdbarch_overlay_update instead of
6368 target_overlay_update.
6369 (overlay_load_command): Likewise.
6370 * symfile.h (struct obj_section): Add forward declaration.
6371 (simple_overlay_update): Add prototype.
6373 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
6375 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6377 * observer.sh: Add "struct objfile" forward declaration.
6378 * target.h (deprecated_target_new_objfile_hook): Remove.
6379 * symfile.c (deprecated_target_new_objfile_hook): Remove.
6380 (clear_symtab_users): Call observer_notify_new_objfile.
6381 (symbol_file_add_with_addrs_or_offsets): Likewise.
6382 * rs6000-nat.c: Include "observer.h".
6383 (vmap_ldinfo): Call observer_notify_new_objfile.
6384 (xcoff_relocate_core): Likewise.
6385 * remote.c (remote_new_objfile_chain): Remove.
6386 (remote_new_objfile): Do not call remote_new_objfile_chain.
6387 (_initialize_remote): Use observer_attach_new_objfile.
6388 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
6389 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
6390 (_initialize_tui_hooks): Use observer_attach_new_objfile.
6391 * aix-thread.c: Include "observer.h".
6392 (target_new_objfile_chain): Remove.
6393 (new_objfile): Do not call target_new_objfile_chain.
6394 (_initialize_aix_thread): Use observer_attach_new_objfile.
6395 * hpux-thread.c: Include "observer.h"
6396 (target_new_objfile_chain): Remove.
6397 (hpux_thread_new_objfile): Make static. Do not call
6398 target_new_objfile_chain.
6399 (_initialize_hpux_thread): Use observer_attach_new_objfile.
6400 * linux-thread-db.c: Include "observer.h".
6401 (target_new_objfile_chain): Remove.
6402 (thread_db_new_objfile): Do not call target_new_objfile_chain.
6403 (_initialize_thread_db): Use observer_attach_new_objfile.
6404 * sol-thread.c: Include "observer.h".
6405 (target_new_objfile_chain): Remove.
6406 (sol_thread_new_objfile): Make static. Do not call
6407 target_new_objfile_chain.
6408 (_initialize_sol_thread): Use observer_attach_new_objfile.
6409 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
6410 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
6413 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6415 * gdbarch.sh (remote_translate_xfer_address): Remove.
6416 * gdbarch.h, gdbarch.c: Regenerate.
6417 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
6418 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
6419 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
6420 call gdbarch_remote_translate_xfer_address.
6421 * frv-tdep.c (frv_gdbarch_init): Do not call
6422 set_gdbarch_remote_translate_xfer_address.
6423 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
6424 (ia64_gdbarch_init): Do not install it.
6426 2007-05-11 Bob Wilson <bob.wilson@acm.org>
6428 * NEWS: Mention change in handling the -tui option.
6430 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
6432 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
6435 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6437 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
6438 (breakpoint_inserted_here_p): Call it.
6439 (software_breakpoint_inserted_here_p): Likewise.
6441 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
6443 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
6444 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
6445 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
6446 (inf_ptrace_store_register): Likewise.
6447 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
6448 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
6450 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
6452 * linux-nat.c (linux_trad_target): Adapt parameter list.
6453 * linux-nat.h (linux_trad_target): Likewise.
6455 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
6457 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
6458 (mips_linux_cannot_store_register): Likewise.
6459 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
6460 Return (CORE_ADDR) -1 for registers that cannot be fetched or
6461 stored via ptrace. Use GDBARCH instead of current_gdbarch.
6462 (mips64_linux_register_addr): Likewise.
6463 (mips_linux_register_u_offset): Adapt parameter list. Pass
6464 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
6466 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6467 * config/mips/nm-linux.h: Delete file.
6469 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
6471 * remote.c (remote_detach): Error out if remote can't detach.
6473 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
6475 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
6476 instruction's opcode in the "opcode" variable and declares new
6477 variable "closing_insn".
6479 2007-05-10 Chris Dearman <chris@mips.com>
6480 Maciej W. Rozycki <macro@mips.com>
6482 * cli/cli-setshow.c (do_setshow_command): Remove trailing
6483 whitespace when setting a var_filename.
6485 2007-05-09 Bob Wilson <bob.wilson@acm.org>
6487 * main.c (captured_main): Recognize -tui option and print an error
6488 message when the TUI is not configured.
6490 2007-05-09 Andreas Schwab <schwab@suse.de>
6492 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
6493 set removed members.
6494 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
6496 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6498 * gdbarch.sh (deprecated_store_struct_return): Remove.
6499 * gdbarch.c, gdbarch.h: Regenerate.
6500 * frv-tdep.c (frv_store_struct_return): Remove.
6501 (frv_gdbarch_init): Do not install it.
6503 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6505 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
6506 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
6507 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
6509 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6511 * spu-linux-nat.c: Include "gdb_stdint.h".
6512 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
6513 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
6514 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
6515 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
6516 (spu_child_wait): Mark up string for translation.
6518 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
6519 Luis Machado <luisgpm@br.ibm.com>
6521 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
6522 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
6523 BC_INSTRUCTION): Define.
6524 (deal_with_atomic_sequence): New function.
6525 (rs6000_software_single_step): Call deal_with_atomic_sequence.
6526 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
6527 gdbarch_software_single_step routine.
6529 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
6531 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
6532 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
6533 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
6534 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
6535 spu_child_post_attach, spu_fetch_inferior_registers,
6536 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
6537 memory addresses as ULONGEST, not CORE_ADDR.
6539 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
6541 * gdbarch.sh: Add skip_permanent_breakpoint callback.
6542 * gdbarch.h, gdbarch.c: Regenerate.
6544 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
6545 (resume): Call gdbarch_skip_permanent_breakpoint instead of
6546 SKIP_PERMANENT_BREAKPOINT. Inline default case.
6548 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
6549 Add REGCACHE argument. Use it instead of read/write_register.
6550 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
6552 * config/pa/tm-hppah.h: Delete file.
6553 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
6554 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
6556 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
6558 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
6559 * NEWS: Mention improved C++ thunk support.
6560 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
6561 * cp-abi.c (cplus_skip_trampoline): New.
6562 * cp-abi.h (cplus_skip_trampoline): New prototype.
6563 (struct cp_abi_ops): Add skip_trampoline member.
6564 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
6565 (init_gnuv3_ops): Set skip_trampoline.
6567 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
6569 * rs6000-tdep.c (struct frame_extra_info): Delete.
6571 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
6573 * linux-thread-db.c: Update some FIXME comments.
6574 (thread_db_xfer_partial): Delete.
6575 (init_thread_db_ops): Do not set to_xfer_partial.
6577 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6579 * inftarg.c, infptrace.c: Remove files.
6580 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
6581 (inftarg.o, infptrace.o): Remove rules.
6582 * gdbcore.h (register_addr): Remove prototype.
6583 * inferior.h (kill_inferior, store_inferior_registers,
6584 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
6585 call_ptrace, pre_fork_inferior): Remove prototypes.
6586 * target.h (child_xfer_memory, child_pid_to_exec_file,
6587 child_core_file_to_sym_file, child_post_attach,
6588 child_post_startup_inferior, child_acknowledge_created_inferior,
6589 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
6590 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
6591 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
6592 child_follow_fork, child_reported_exec_events_per_exec_call,
6593 child_has_exited, child_thread_alive): Remove prototypes.
6595 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6597 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
6598 (sparc_store_inferior_registers): Likewise.
6599 * sparc-nat.c (fetch_inferior_registers): Rename to ...
6600 (sparc_fetch_inferior_registers): ... this.
6601 (store_inferior_registers): Rename to ...
6602 (sparc_store_inferior_registers): ... this.
6603 (sparc_target): Update callback names.
6604 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
6605 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
6607 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6609 * linux-nat.c (child_post_attach): Rename to ...
6610 (linux_child_post_attach): ... this. Make static.
6611 (child_follow_fork): Rename to ...
6612 (linux_child_follow_fork): ... this. Make static.
6613 (child_insert_fork_catchpoint): Rename to ...
6614 (linux_child_insert_fork_catchpoint): ... this. Make static.
6615 (child_insert_vfork_catchpoint): Rename to ...
6616 (linux_child_insert_vfork_catchpoint): ... this. Make static.
6617 (child_insert_exec_catchpoint): Rename to ...
6618 (linux_child_insert_exec_catchpoint): ... this. Make static.
6619 (child_pid_to_exec_file): Rename to ...
6620 (linux_child_pid_to_exec_file): ... this. Make static.
6622 (linux_handle_extended_wait): Update call.
6623 (linux_xfer_partial): Update callback routine names.
6625 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6627 * configure.host (alpha*-*-osf[12]*): Remove support.
6628 * NEWS: Mention removed configurations.
6630 * config/alpha/alpha-osf1.mh: Delete file.
6631 * config/alpha/alpha-osf2.mh: Delete file.
6632 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
6634 * config/alpha/nm-osf.h: Delete file.
6635 * config/alpha/nm-osf2.h: Delete file.
6636 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
6637 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
6638 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
6640 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
6641 (register_addr, kernel_u_size): Remove.
6642 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
6644 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6646 * regcache.c (regcache_invalidate): New function.
6647 (register_cached): Remove.
6648 (set_register_cached): Remove.
6649 (deprecated_registers_fetched): Remove.
6650 (registers_changed): Use regcache_invalidate instead
6651 of set_register_cached.
6652 (regcache_raw_read): Update comment.
6654 * regcache.h (regcache_invalidate): Add prototype.
6655 (register_cached): Remove.
6656 (set_register_cached): Remove.
6657 (deprecated_registers_fetched): Remove.
6659 * findvar.c (value_of_register): Do not call register_cached.
6660 * frame.c (frame_register): Likewise.
6661 * tui/tui-regs.c (tui_get_register): Likewise.
6663 * remote.c (fetch_register_using_p): Do not call set_register_cached.
6664 (process_g_packet): Likewise.
6665 (remote_fetch_registers): Likewise.
6666 * remote-sim.c (gdbsim_fetch_register): Likewise.
6667 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
6668 by regcache_invalidate.
6669 (mt_pseudo_register_write): Likewise.
6670 * sh-tdep.c (sh_pseudo_register_write): Likewise.
6672 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
6673 call by loop over regcache_raw_supply (..., NULL).
6675 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6677 * target.h (struct target_ops): Add REGCACHE parameter to
6678 to_prepare_to_store.
6679 (target_prepare_to_store): Likewise.
6680 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
6681 (update_current_target): Adapt prepare_to_store de_fault rule.
6683 * regcache.c (regcache_raw_write): Pass regcache to
6684 target_prepare_to_store.
6686 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
6687 Do not call CHILD_PREPARE_TO_STORE.
6688 * gnu-nat.c (gnu_prepare_to_store): Likewise.
6689 * procfs.c (procfs_prepare_to_store): Likewise.
6691 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
6692 * go32-nat.c (go32_prepare_to_store): Likewise.
6693 * monitor.c (monitor_prepare_to_store): Likewise.
6694 * nto-procfs.c (procfs_prepare_to_store): Likewise.
6695 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
6696 * remote-mips.c (mips_prepare_to_store): Likewise.
6697 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
6698 * win32-nat.c (win32_prepare_to_store): Likewise.
6700 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
6701 Use it instead of current_regcache.
6703 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
6704 parameter. Pass it on to next target.
6705 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
6707 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6709 * target.h (struct regcache): Add forward declaration.
6710 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
6711 and to_store_registers target operations.
6712 (target_fetch_registers, target_store_registers): Update.
6714 * regcache.c (regcache_raw_read): Replace register_cached by
6715 regcache_valid_p. Pass regcache to target_fetch_registers.
6716 (regcache_raw_write): Pass regcache to target_store_registers.
6718 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
6719 store_regs, store_wmmx_regs): Replace register_cached by
6722 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
6723 to target_fetch_registers calls.
6724 * corelow.c (core_open): Likewise.
6725 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
6726 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
6727 ps_lsetfpregs): Likewise.
6728 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
6729 ps_lsetfpregs): Likewise.
6730 * win32-nat.c (win32_resume): Likewise.
6731 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
6732 to target_store_registers call.
6733 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6735 * inferior.h (store_inferior_registers): Update prototype.
6736 (fetch_inferior_registers): Likewise.
6737 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
6738 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
6739 Update function pointer signatures.
6741 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
6742 use it instead of current_regcache, update calls.
6743 (aix_thread_store_registers): Likewise.
6744 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
6745 (alphabsd_store_inferior_registers): Likewise.
6746 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
6747 (amd64bsd_store_inferior_registers): Likewise.
6748 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
6749 (amd64_linux_store_inferior_registers): Likewise.
6750 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
6751 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
6752 fetch_wmmx_regs, store_wmmx_regs): Likewise.
6753 (arm_linux_fetch_inferior_registers): Likewise.
6754 (arm_linux_store_inferior_registers): Likewise.
6755 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
6756 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
6757 (store_register, store_regs, store_fp_register, store_fp_regs,
6758 armnbsd_store_registers): Likewise.
6759 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
6760 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
6761 (bsd_uthread_store_registers): Likewise.
6762 * corelow.c (get_core_registers): Likewise.
6763 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
6764 go32_store_registers): Likewise.
6765 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
6766 (hppabsd_store_registers): Likewise.
6767 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
6768 (hppa_hpux_fetch_inferior_registers): Likewise.
6769 (hppa_hpux_store_register): Likewise.
6770 (hppa_hpux_store_inferior_registers): Likewise.
6771 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
6772 (hppa_linux_fetch_inferior_registers): Likewise.
6773 (hppa_linux_store_inferior_registers): Likewise.
6774 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
6775 (hpux_thread_store_registers): Likewise.
6776 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
6777 (i386bsd_store_inferior_registers): Likewise.
6778 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
6779 gnu_store_registers): Likewise.
6780 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
6781 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
6783 (i386_linux_fetch_inferior_registers): Likewise.
6784 (i386_linux_store_inferior_registers): Likewise.
6785 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
6786 (ia64_linux_fetch_registers): Likewise.
6787 (ia64_linux_store_register): Likewise.
6788 (ia64_linux_store_registers): Likewise.
6789 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
6790 (inf_child_store_inferior_registers): Likewise.
6791 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
6792 (inf_ptrace_fetch_registers): Likewise.
6793 (inf_ptrace_store_register): Likewise.
6794 (inf_ptrace_store_registers): Likewise.
6795 * infptrace.c (fetch_register, store_register): Likewise.
6796 (fetch_inferior_registers, store_inferior_registers): Likewise.
6797 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
6798 (m32r_linux_fetch_inferior_registers): Likewise.
6799 (m32r_linux_store_inferior_registers): Likewise.
6800 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
6801 (m68kbsd_store_inferior_registers): Likewise.
6802 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
6803 store_register, old_store_inferior_registers, fetch_regs, store_regs,
6804 fetch_fpregs, store_fpregs): Likewise.
6805 (m68k_linux_fetch_inferior_registers): Likewise.
6806 (m68k_linux_store_inferior_registers): Likewise.
6807 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
6808 (m88kbsd_store_inferior_registers): Likewise.
6809 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
6810 (mips64obsd_store_inferior_registers): Likewise.
6811 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
6812 (mips64_linux_regsets_store_registers): Likewise.
6813 (mips64_linux_fetch_registers): Likewise.
6814 (mips64_linux_store_registers): Likewise.
6815 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
6816 (mipsnbsd_store_inferior_registers): Likewise.
6817 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
6818 (monitor_fetch_registers, monitor_store_registers): Likewise.
6819 * nto-procfs.c (procfs_fetch_registers): Likewise.
6820 (procfs_store_registers): Likewise.
6821 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
6822 fetch_register, supply_vrregset, fetch_altivec_registers,
6823 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
6824 (store_altivec_register, store_spe_register, store_register,
6825 fill_vrregset, store_altivec_registers, store_ppc_registers,
6826 ppc_linux_store_inferior_registers): Likewise.
6827 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
6828 (ppcnbsd_store_inferior_registers): Likewise.
6829 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
6830 (ppcobsd_store_registers): Likewise.
6831 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
6832 * remote.c (fetch_register_using_p, process_g_packet,
6833 fetch_registers_using_g, remote_fetch_registers): Likewise.
6834 (store_register_using_P, store_registers_using_G,
6835 remote_store_registers): Likewise.
6836 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
6837 m32r_store_register, m32r_store_register): Likewise.
6838 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
6839 * remote-sim.c (gdbsim_fetch_register): Likewise.
6840 (gdbsim_store_register): Likewise.
6841 * rs6000-nat.c (fetch_register, store_register): Likewise.
6842 (rs6000_fetch_inferior_registers): Likewise.
6843 (rs6000_store_inferior_registers): Likewise.
6844 * s390-nat.c (fetch_regs, store_regs): Likewise.
6845 (fetch_fpregs, store_fpregs): Likewise.
6846 (s390_linux_fetch_inferior_registers): Likewise.
6847 (s390_linux_store_inferior_registers): Likewise.
6848 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
6849 (shnbsd_store_inferior_registers): Likewise.
6850 * sol-thread.c (sol_thread_fetch_registers): Likewise.
6851 (sol_thread_store_registers): Likewise.
6852 * sparc-nat.c (fetch_inferior_registers): Likewise.
6853 (store_inferior_registers): Likewise.
6854 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
6855 (spu_store_inferior_registers): Likewise.
6856 * target.c (debug_print_register): Likewise.
6857 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
6858 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
6859 (vaxbsd_store_inferior_registers): Likewise.
6860 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
6861 (win32_fetch_inferior_registers): Likewise.
6862 (win32_store_inferior_registers): Likewise.
6864 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6866 * gdbcore.h (struct regcache): Add forward declaration.
6867 (struct core_fns): Add REGCACHE argument to core_read_registers
6869 * corelow.c (get_core_register_section): Add REGCACHE argument,
6870 use it instead of current_regcache, pass it to core_read_registers
6872 (get_core_registers): Add current_regcache as parameter to
6873 get_core_register_section calls.
6875 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
6876 use it instead of current_regcache.
6877 * armnbsd-nat.c (fetch_core_registers): Likewise.
6878 (fetch_elfcore_registers): Likewise.
6879 * core-regset.c (fetch_core_registers): Likewise.
6880 * cris-tdep.c (fetch_core_registers): Likewise.
6881 * irix5-nat.c (fetch_core_registers): Likewise.
6882 * m68klinux-nat.c (fetch_core_registers): Likewise.
6883 * mips-linux-tdep.c (fetch_core_registers): Likewise.
6884 * win32-nat.c (fetch_elf_core_registers): Likewise.
6886 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6888 * gregset.h (struct regcache): Add forward declaration.
6889 (supply_gregset): Add REGCACHE parameter, make GREGS const.
6890 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
6891 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
6892 (fill_gregset): Add REGCACHE parameter.
6893 (fill_fpregset): Likewise.
6894 (fill_fpxregset): Likewise.
6896 Update all definitions accordingly:
6897 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
6898 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
6899 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
6900 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
6901 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
6902 (supply_gregset): Add REGCACHE parameter, use it instead of
6903 current_regcache. Make GREGSETP parameter const, adapt casts.
6904 (supply_fpregset): Add REGCACHE parameter, use it instead of
6905 current_regcache. Make FPREGSETP parameter const, adapt casts.
6906 (fill_gregset): Add REGCACHE parameter, use it instead of
6908 (fill_fpregset): Likewise.
6910 Update all callers to pass in current_regcache as the new argument:
6911 * core-regset.c: Include "regcache.h".
6912 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
6913 * procfs.c: Include "regcache.h".
6914 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
6915 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
6916 (procfs_do_thread_registers): Likewise.
6917 (procfs_make_note_section): Likewise.
6918 * proc-service.c: Include "regcache.h".
6919 (ps_lgetregs): Update fill_gregset call.
6920 (ps_lsetregs): Update supply_gregset call.
6921 (ps_lgetfpregs): Update fill_fpregset call.
6922 (ps_lsetfpregs): Update supply_fpregset call.
6923 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
6924 supply_fpregset calls.
6925 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
6926 (ps_lgetregs): Update fill_gregset call.
6927 (ps_lsetregs): Update supply_gregset call.
6928 (ps_lgetfpregs): Update fill_fpregset call.
6929 (ps_lsetfpregs): Update supply_fpregset call.
6931 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
6932 fill_fpregset, and fill_fpxregset calls.
6933 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
6934 (store_regs): Update fill_gregset call.
6935 (fetch_fpregs): Update supply_fpregset call.
6936 (store_fpregs): Update fill_fpregset call.
6937 (fetch_fpxregs): Update supply_fpxregset call.
6938 (store_fpxregs): Update fill_fpxregset call.
6939 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
6940 (store_regs): Update fill_gregset call.
6941 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
6942 (store_regs): Update fill_gregset call.
6943 (fetch_fpregs): Update supply_fpregset call.
6944 (store_fpregs): Update fill_fpregset call.
6945 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
6946 * s390-nat.c (fetch_regs): Update supply_gregset call.
6947 (store_regs): Update fill_gregset call.
6948 (fetch_fpregs): Update supply_fpregset call.
6949 (store_fpregs): Update fill_fpregset call.
6951 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
6954 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6956 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
6957 it instead of current_regcache.
6958 (parse_register_dump): Add REGCACHE parameter, pass it to
6959 supply_register callback.
6960 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
6961 parse_register_dump.
6962 (monitor_dump_regs): Add REGCACHE parameter, pass it to
6963 parse_register_dump and dumpregs callback.
6964 (monitor_wait): Pass current_regcache to parse_register_dump and
6966 (monitor_fetch_register): Pass current_regcache to
6967 monitor_supply_register.
6968 (monitor_fetch_registers): Pass current_regcache to
6970 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
6971 supply_register and dumpregs callbacks.
6972 (monitor_supply_register, monitor_dump_reg_block): Update
6974 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
6975 it to monitor_supply_register.
6976 * dink32-rom.c (dink32_supply_register): Likewise.
6977 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
6978 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
6979 instead of current_regcache.
6981 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6983 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
6984 Add REGCACHE parameter. Use it instead of current_regcache.
6985 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
6986 i386nto_supply_gregset and i386nto_supply_fpregset.
6987 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
6988 of current_regcache.
6990 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
6991 nto_supply_ helper functions.
6992 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
6994 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
6996 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
6997 supply_greget, supply_fpregset, supply_altregset, supply_regset,
6998 and regset_fill member function pointers.
6999 (nto_dummy_supply_regset): Adapt prototype.
7001 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7003 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
7004 instead of current_regcache. Make REGS const.
7005 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
7006 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
7008 * shnbsd-nat.c: Include "regcache.h".
7009 (shnbsd_fetch_inferior_registers): Pass current_regcache to
7011 (shnbsd_store_inferior_registers): Pass current_regcache to
7013 * Makefile.in (shbsd-nat.o): Update dependencies.
7015 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7017 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
7018 instead of current_regcache.
7019 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
7020 Make GREGSETP const, remove superfluous casts.
7021 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7022 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
7024 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7025 (supply_64bit_reg): Likewise
7026 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
7027 Make GREGSETP const, adapt casts accordingly.
7028 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7029 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
7031 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7032 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
7034 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
7035 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
7036 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
7038 * mips-linux-nat.c: Include "regcache.h".
7039 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7040 current_regcache to mips{64}_(supply|fill)_ helper routines.
7041 (mips64_linux_regsets_fetch_registers): Likewise.
7042 (mips64_linux_regsets_store_registers): Likewise.
7044 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
7045 REGCACHE argument; replace current_regcache. Make REGS const.
7046 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
7047 replace current_regcache.
7048 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
7049 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
7050 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
7051 mipsnbsd_store_inferior_registers): Pass current_regcache to
7052 mipsnbsd_(supply|fill)_... helper routines.
7054 * Makefile.in (mips-linux-nat.o): Update dependencies.
7056 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7058 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
7059 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
7060 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
7061 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
7062 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
7063 * i386gnu-nat.c (store_fpregs): Likewise.
7064 * i386v4-nat.c (fill_fpregset): Likewise.
7065 * go32-nat.c (store_register, go32_store_registers): Likewise.
7067 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7069 * cris-tdep.c (supply_gregset): Rename to ...
7070 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
7071 instead of current_regcache.
7072 (fetch_core_registers): Update call. Pass current_regcache.
7074 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7076 * arnmnbsd-nat.c (supply_gregset): Rename to ...
7077 (arm_supply_gregset): ... this. Add REGCACHE parameter.
7078 Use it instead of current_regcache.
7079 (supply_fparegset): Rename to ...
7080 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
7081 Use it instead of current_regcache.
7082 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
7083 (fetch_core_registers, fetch_elfcore_registers): Likewise.
7085 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7087 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
7088 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
7089 use it instead of current_regcache.
7090 * alpha-tdep.h (struct regcache): Add forward declaration.
7091 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
7092 alpha_fill_fp_regs): Update prototypes.
7094 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
7095 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
7096 * alpha-linux-nat.c: Include "regcache.h".
7097 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7098 current_regcache to alpha_supply/fill_ routines.
7100 * alphabsd-tdep.c: Include "regcache.h".
7101 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
7102 pass it to alpha_supply_ routines. Make REGS const.
7103 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
7104 pass it to alpha_fill_ routines.
7105 * alphabsd-tdep.h (struct regcache): Add forward declaration.
7106 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
7107 alphabsd_fill_fpreg): Update prototypes.
7109 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7110 fill_fpregset, alphabsd_fetch_inferior_registers,
7111 alphabsd_store_inferior_registers): Pass current_regcache to
7112 alphabsd_supply/fill_ routines.
7114 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
7117 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7119 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
7120 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
7121 instead of current_regcache.
7122 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
7123 REGCACHE parameter, pass it to supply_ routines.
7124 (aix_thread_fetch_registers): Pass current_regcache to
7125 fetch_regs_user_thread and fetch_regs_kernel_thread.
7127 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
7128 Add REGCACHE parameter, use it instead of current_regcache.
7129 Call regcache_valid_p instead of register_cached.
7130 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
7131 Also, pass REGCACHE to fill_ routines.
7132 (aix_thread_store_registers): Pass current_regcache to
7133 store_regs_user_thread and store_regs_kernel_thread.
7135 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7137 * m32r-linux-nat.c (supply_gregset): Do not modify contents
7138 pointed to by GREGSETP.
7140 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7142 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
7143 of regcache_raw_read_signed.
7144 (fill_fpregset): Use regcache_raw_collect instead of
7147 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7149 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
7150 point arguments, test explicitly for use of the EABI32 ABI
7151 instead of inferring this condition from tests on register
7154 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7156 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
7157 prior to allocating its location.
7159 2007-05-02 Maciej W. Rozycki <macro@mips.com>
7161 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
7162 based on mips_abi_regsize() whose result is known in advance.
7163 (mips_o64_push_dummy_call): Likewise.
7165 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
7167 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
7168 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
7170 * mips-linux-nat.c: Include "gregset.h".
7171 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
7172 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
7173 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
7174 fill_fpregset): Move to mips-linux-nat.c.
7176 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
7178 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7180 * regcache.c (deprecated_read_register_gen): Remove, inline ...
7181 (read_register): ... here.
7182 (deprecated_write_register_gen): Remove, inline ...
7183 (write_register): ... here.
7184 * regcache.h (deprecated_read_register_gen): Remove prototype.
7185 (deprecated_write_register_gen): Likewise.
7187 * remote-sim.c (gdbsim_store_register): Replace call to
7188 deprecated_read_register_gen with regcache_cooked_read.
7189 * target.c (debug_print_register): Replace calls to
7190 deprecated_read_register_gen and read_register with
7191 regcache_cooked_read.
7193 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7195 * hpux-thread.c (hpux_thread_store_registers): Use
7196 regcache_raw_collect, not regcache_raw_read.
7197 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
7198 not regcache_raw_write.
7200 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7202 * gdbarch.sh: Remove deprecated_register_byte.
7203 * gdbarch.c, gdbarch.h: Regenerate.
7204 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
7205 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
7207 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
7208 * regcache.c (regcache_valid_p): Allow to query cooked registers in
7209 read-only register caches. Make REGCACHE parameter const.
7210 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
7212 * mi/mi-main.c (old_regs): Remove.
7213 (mi_setup_architecture_data, _initialize_mi_main): Remove.
7214 (register_changed_p): Reimplement to compare two register caches.
7215 (mi_cmd_data_list_changed_registers): Update caller.
7216 * mi/mi-main.h (mi_setup_architecture_data): Remove.
7217 * mi/mi-interp.c (mi_interpreter_init): Do not call
7218 mi_setup_architecture_data.
7220 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7222 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
7223 inline definition at the places the macros are used.
7224 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
7226 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7228 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
7230 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
7231 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
7232 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
7233 (rs6000_aix_regset_from_core_section): New function.
7234 (rs6000_aix_init_osabi): Register it.
7235 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
7236 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
7237 * rs6000-nat.c (CoreRegs): Do not define type.
7238 (fetch_core_registers, rs6000_core_fns): Remove.
7239 (_initialize_core_rs6000): Do not register it. Rename to ...
7240 (_initialize_rs6000_nat): ... this.
7241 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
7243 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7245 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
7246 (dwarf2_read_address): Sign extend return address as required by
7247 target architecture.
7249 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7251 * solib-frv.c (lm_base): Bail out if the main executable has
7254 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7256 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
7257 of FPCR register in fpregset.
7259 2007-04-27 Maciej W. Rozycki <macro@mips.com>
7261 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
7262 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
7264 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7266 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
7267 * rs6000-nat.c (rs6000_wait): New function.
7268 (_initialize_core_rs6000): Install it as to_wait target method.
7269 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
7271 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7273 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
7274 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
7275 * rs6000-nat.c (super_create_inferior): New variable.
7276 (rs6000_create_inferior): Make static. Adapt argument list. Call
7277 original version of create_inferior via super_create_inferior.
7278 (_initialize_core_rs6000): Install to_create_inferior target method.
7280 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7282 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
7283 (aix_thread_xfer_partial): ... this.
7284 (init_aix_thread_ops): Install to_xfer_partial instead
7285 of deprecated_xfer_memory target method.
7287 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
7288 and inftarg.o, add inf-ptrace.o.
7289 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
7290 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
7291 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
7292 (fetch_inferior_registers): Rename to ...
7293 (rs6000_fetch_inferior_registers): ... this. Make static.
7294 (store_inferior_registers): Rename to ...
7295 (rs6000_store_inferior_registers): ... this. Make static.
7296 (read_word, child_xfer_memory): Remove.
7297 (rs6000_xfer_partial): New function.
7298 (kernel_u_size): Remove.
7299 (_initialize_core_rs6000): Add inf_ptrace-based target.
7300 * Makefile.in (rs6000-nat.o): Update dependencies.
7302 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7304 * inf-ptrace.c: Include "gdb_stdint.h".
7305 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
7306 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
7307 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
7308 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
7309 (inf_ptrace_store_register): Likewise.
7310 * Makefile.in (inf-ptrace.o): Update dependencies.
7312 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7314 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
7315 * configure.tgt (rs6000-*-*): Likewise.
7316 * config/rs6000/aix4.mh: Delete file.
7317 * config/rs6000/aix4.mt: Delete file.
7318 * config/rs6000/rs6000.mh: Delete file.
7319 * config/rs6000/rs6000.mt: Delete file.
7321 * config/powerpc/nm-aix.h: Delete file.
7322 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
7324 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7326 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
7327 Remove obsolete part of comment.
7328 (store_regs_user_thread): Use uint32_t temporaries when calling
7330 (store_regs_kernel_thread): Likewise. Add assertion to verify
7331 correct size of struct ptsprs members.
7332 (aix_thread_xfer_memory): Fix type of myaddr.
7333 (aix_thread_extra_thread_info): Fix compiler warning.
7334 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
7335 (fetch_register, store_register): Adapt callers.
7337 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7339 * vec.h (vec_free): Rename to vec_free_. Adapt users.
7341 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7343 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
7345 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
7346 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
7347 (alpha_linux_regset_from_core_section): New function.
7348 (alpha_linux_init_abi): Install it.
7349 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
7350 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
7351 <sys/procfs.h>, and "gregset.h".
7352 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
7353 Move from config/alpha/nm-linux.h.
7354 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
7356 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
7357 * alpha-nat.c: Remove #ifdef __linux__ section.
7358 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
7359 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
7360 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
7361 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
7362 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
7363 (NATDEPFILES): Remove alpha-nat.o.
7364 * config/alpha/nm-linux.h: Delete file.
7365 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
7366 * Makefile.in (alpha-linux-nat.o): Update dependencies.
7367 (alpha-linux-tdep.o): Likewise.
7369 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7371 * mips-linux-nat.c: No longer include "gdbcore.h".
7372 (mips_linux_register_addr): Move from mips-linux-tdep.c.
7373 (mips64_linux_register_addr): Likewise.
7374 (mips_linux_register_u_offset): Call mips_linux_register_addr or
7375 mips64_linux_register_addr instead of register_addr.
7376 * mips-linux-tdep.c (mips_linux_register_addr,
7377 mips64_linux_register_addr): Move to mips-linux-nat.c.
7378 (register_addr): Remove.
7379 (register_addr_data, init_register_addr_data): Remove.
7380 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
7381 (set_mips_linux_register_addr): Remove.
7382 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
7383 * Makefile.in (mips-linux-nat.o): Update dependencies.
7385 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7387 * linux-nat.c (linux_register_u_offset): Remove.
7388 (linux_target_install_ops): New function.
7389 (linux_target): Use it.
7390 (linux_trad_target): New function.
7391 * linux-nat.h (linux_trad_target): Declare.
7393 * alpha-linux-nat.c: Include "gdbcore.h".
7394 (alpha_linux_register_u_offset): New function.
7395 (_initialize_alpha_linux_nat): Use linux_trad_target.
7397 * mips-linux-nat.c: Include "gdbcore.h".
7398 (mips_linux_register_u_offset): New function.
7399 (_initialize_mips_linux_nat): Use linux_trad_target.
7401 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7402 * config/arm/nm-linux.h: Delete file.
7404 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
7405 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
7407 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7408 * config/ia64/nm-linux.h: Delete file.
7410 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7411 * config/m32r/nm-linux.h: Delete file.
7413 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7414 * config/m68k/nm-linux.h: Delete file.
7416 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7417 * config/pa/nm-linux.h: Delete file.
7419 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7420 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
7421 * config/powerpc/nm-linux.h: Delete file.
7423 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
7424 * config/s390/nm-linux.h: Delete file.
7426 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7427 * config/sparc/linux64.mh (NAT_FILE): Likewise.
7428 * config/sparc/nm-linux.h: Delete file.
7430 * Makefile.in (alpha-linux-nat.o): Update dependencies.
7431 (mips-linux-nat.o): Likewise.
7433 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7435 * core-aout.c: Delete file.
7436 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
7437 (core-aout.o): Delete rule.
7438 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
7440 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
7442 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
7443 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
7444 KERNEL_U_ADDR): Remove.
7446 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
7447 (cannot_fetch_register, cannot_store_register): Remove.
7448 (fetch_register): Inline cannot_fetch_register and register_addr.
7449 (store_register): Inline cannot_store_register and register_addr.
7450 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
7451 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
7452 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
7455 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
7456 (fetch_register): Inline register_addr.
7457 (store_register): Inline register_addr.
7458 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
7459 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
7460 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
7462 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
7463 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
7464 REGISTER_U_ADDR): Remove.
7466 * hppa-linux-nat.c (register_addr): Rename to ...
7467 (hppa_linux_register_addr): ... this. Make static.
7468 (fetch_register, store_register): Adapt callers.
7469 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
7471 * ppc-linux-nat.c (kernel_u_size): Remove.
7472 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
7474 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
7475 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
7477 * config/vax/nm-vax.h: Delete file.
7479 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
7481 * MAINTAINERS (Write After Approval): Add myself.
7483 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
7485 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
7486 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
7487 (m68k_linux_sigcontext_reg_offset): Fix typo.
7488 (target_is_uclinux): New.
7489 (m68k_linux_inferior_created): New.
7490 (m68k_linux_get_sigtramp_info): Check for uClinux or
7491 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
7493 (_initialize_m68k_linux_tdep): Register
7494 m68k_linux_inferior_created.
7496 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
7498 * win32-nat.c (win32_detach): Remove delete_command call.
7499 Resume inferior with win32_resume instead of win32_continue.
7501 2007-04-19 Jerome Guitton <guitton@adacore.com>
7503 * ser-mingw.c (fd_is_file): New function.
7504 (file_select_thread): New function.
7505 (ser_console_wait_handle): Add special handling for files.
7507 2007-04-18 Denis Pilat <denis.pilat@st.com>
7509 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
7510 when missing from DW_TAG_subrange_type. Remove the handling of null
7511 return from die_type.
7513 2007-04-18 Maciej W. Rozycki <macro@mips.com>
7515 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
7516 change to rearrange some brackets.
7517 (mips_n32n64_push_dummy_call): Likewise.
7518 (mips_o32_push_dummy_call): Likewise.
7519 (mips_o64_push_dummy_call): Likewise.
7521 2007-04-18 Denis Pilat <denis.pilat@st.com>
7523 * infcmd.c (post_create_inferior): Start with a call to
7524 target_terminal_ours.
7526 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7528 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
7530 (mips_n32n64_push_dummy_call): Likewise. Reformat some
7532 (mips_o32_push_dummy_call): Likewise.
7533 (mips_o64_push_dummy_call): Likewise.
7535 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7537 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
7540 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7542 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
7544 (mips_o32_push_dummy_call): Likewise.
7546 2007-04-17 Andreas Schwab <schwab@suse.de>
7548 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
7549 sal to be bigger than the end of the function.
7551 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7552 Nigel Stephens <nigel@mips.com>
7554 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
7555 argument alignment requirements when calculating stack space
7556 required. When aligning an arg register to eight bytes
7557 boundary, align stack_offset too. Write floating-point
7558 arguments to the appropriate integer register if need go there.
7559 (mips_o64_push_dummy_call): Likewise.
7561 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
7563 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
7564 "sig" arguments, add "regcache" argument.
7565 * gdbarch.c, gdbarch.h: Regenerate.
7567 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
7568 (handle_inferior_event): Call remove_single_step_breakpoints directly
7569 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
7571 * alpha-tdep.c (alpha_software_single_step): Update argument list.
7572 Remove handling of !insert_breakpoints_p case.
7573 * arm-tdep.c (arm_software_single_step): Likewise.
7574 * cris-tdep.c (cris_software_single_step): Likewise.
7575 * mips-tdep.c (mips_software_single_step): Likewise.
7576 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
7577 * sparc-tdep.c (sparc_software_single_step): Likewise.
7578 * spu-tdep.c (spu_software_single_step): Likewise.
7580 * alpha-tdep.h (alpha_software_single_step): Update prototype.
7581 * mips-tdep.h (mips_software_single_step): Likewise.
7582 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
7583 * sparc-tdep.h (sparc_software_single_step): Likewise.
7585 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
7587 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
7588 when removing single-step breakpoints.
7590 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
7592 * varobj.h (varobj_set_frozen): New
7593 (varobj_get_frozen): New.
7594 (varobj_update): New parameter explicit.
7595 * varobj.c (struct varobj): New fields frozen
7597 (varobj_set_frozen, varobj_get_frozen): New.
7598 (install_new_value): Don't fetch values for
7599 frozen variable object, or children thereof. Allow
7600 a frozen variable object to have non-fetched value.
7601 (varobj_update): Allow updating child variables.
7602 Don't traverse frozen children.
7603 (new_variable): Initialize the frozen field.
7604 (c_value_of_variable): Return NULL for frozen
7605 variable without any value yet.
7606 * mi/mi-cmd-var.c (varobj_update_one): New parameter
7608 (mi_cmd_var_create): Output the 'frozen' field,
7609 as soon as testsuite is adjusted to expect that field.
7610 (mi_cmd_var_set_frozen): New.
7611 (mi_cmd_var_update): Pass the 'explicit' parameter to
7613 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
7614 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
7616 2007-04-13 Paul Brook <paul@codesourcery.com>
7618 * target-descriptions.c (tdesc_named_type): Add ieee_single and
7620 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
7622 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7624 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
7625 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
7626 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
7627 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
7628 * Makefile.in: Remove references to deleted files.
7629 * README: Do not mention deleted ROM monitor interfaces.
7630 * defs.h (enum language): Delete language_scm.
7631 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
7632 (dump_subexp_body_standard): Likewise.
7633 * parse.c (operator_length_standard): Likewise.
7634 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
7635 * remote-mips.c: Do not include remote-utils.h.
7636 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
7638 * value.c: Do not include scm-lang.h.
7639 (unpack_long): Delete scm_unpack call.
7640 * config/h8300/h8300.mt, config/mips/embed.mt,
7641 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
7642 config/sh/embed.mt, config/sh/linux.mt: Remove references to
7644 * NEWS: Mention removed files.
7646 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7648 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
7649 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
7651 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7653 * NEWS: Mention removal of HP aCC support.
7655 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7657 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
7658 first entry for static executables.
7659 (breakpoint_addr): Delete unused variable.
7660 (elf_locate_base): Search for _r_debug in static executables.
7661 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
7664 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7666 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
7667 (bpstat_what, print_one_breakpoint, allocate_bp_location)
7668 (mention): Remove bp_through_sigtramp support.
7669 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
7671 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7673 * breakpoint.c (bpstat_what): Give step-resume higher priority than
7676 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7678 * infrun.c: Doc fixes.
7679 (handle_inferior_event): Clarify debug message.
7680 (insert_step_resume_breakpoint_at_sal): Print a debug message.
7682 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
7684 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
7686 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
7688 * config/m68k/tm-monitor.h: Delete file.
7689 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
7690 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
7692 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
7693 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
7695 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
7697 * gdbarch.sh (software_single_step): Change the return type
7698 from void to int and reformatted some comments to <= 80
7700 * gdbarch.c, gdbarch.h: Regenerated.
7701 * alpha-tdep.c (alpha_software_single_step): Likewise.
7702 * alpha-tdep.h (alpha_software_single_step): Likewise.
7703 * arm-tdep.c (arm_software_single_step): Likewise.
7704 * cris-tdep.c (cris_software_single_step): Likewise.
7705 * mips-tdep.c (mips_software_single_step): Likewise.
7706 * mips-tdep.h (mips_software_single_step): Likewise.
7707 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
7708 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
7709 * sparc-tdep.c (sparc_software_single_step): Likewise.
7710 * sparc-tdep.h (sparc_software_single_step): Likewise.
7711 * spu-tdep.c (spu_software_single_step): Likewise.
7712 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
7713 and act accordingly.
7715 2007-04-11 Steve Ellcey <sje@cup.hp.com>
7717 * configure.ac (build_warnings): Add -Wno-char-subscripts.
7718 * configure: Regenerate.
7719 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
7721 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7723 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
7725 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7727 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
7729 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
7730 distinct on the TYPE_STUB_SUPPORTED debug targets.
7731 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
7733 2007-04-11 Joel Brobecker <brobecker@adacore.com>
7735 * sparc-tdep.c (X_RS2): New macro.
7736 (sparc_skip_stack_check): New function.
7737 (sparc_analyze_prologue): Adjust PC past stack probing
7738 sequence if necessary.
7740 2007-04-10 Andreas Schwab <schwab@suse.de>
7742 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
7745 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
7747 * breakpoint.c (gdb_breakpoint_query): Really return an
7749 (gdb_breakpoint): Likewise.
7750 * thread.c (gdb_list_thread_ids): Likewise.
7751 (gdb_thread_select): Likewise.
7752 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
7753 (mi_cmd_thread_list_ids): Remove bogus initialization.
7755 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
7757 * Makefile.in (SFILES): Remove hpacc-abi.c.
7758 (COMMON_OBS): Remove hpacc-abi.o.
7759 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
7760 (hpacc-abi.o, hpread.o): Delete rules.
7761 * somread.c: Delete extern declarations from hpread.c.
7762 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
7763 (som_symfile_finish): Do not call hpread_symfile_finish.
7764 (som_symfile_init): Do not call hpread_symfile_init.
7765 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
7766 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
7767 * hpacc-abi.c, hpread.c: Deleted.
7769 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
7771 * solib-svr4.c (enable_break): Simplify return value.
7772 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
7774 2007-04-10 Andreas Schwab <schwab@suse.de>
7776 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
7777 l_ld_size, l_next_size, l_prev_size, l_name_size.
7779 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
7780 to extract addresses from link map.
7781 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
7782 (LM_NEXT): Likewise.
7783 (LM_NAME): Likewise.
7784 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
7785 (elf_locate_base): Likewise.
7786 (open_symbol_file_object): Likewise.
7787 (svr4_fetch_objfile_link_map): Likewise.
7788 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
7789 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
7791 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
7792 (svr4_lp64_fetch_link_map_offsets): Likewise.
7794 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
7795 removed members. Set l_ld_offset to -1 if not present.
7797 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
7799 Pass stderr of program run with "target remote |"
7801 * serial.c (serial_open): Set error_fd to -1.
7802 * serial.h (struct serial): New field error_fd.
7803 (struct serial_opts): New field avail.
7804 * ser-pipe.c (pipe_open): Create another pair
7805 of sockets. Pass stderr to gdb.
7806 * ser-mingw.c (pipe_windows_open): Pass
7807 PEX_STDERR_TO_PIPE to pex_run. Initialize
7810 (_initialize_ser_windows): Hook pipe_avail.
7811 * ser-base.c (generic_readchar): Check if there's
7812 anything in stderr channel and route that to gdb_stderr.
7814 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
7816 * dbxread.c (read_ofile_symtab): Move current_objfile
7817 clearing to after end_stabs.
7819 2007-04-01 Andreas Schwab <schwab@suse.de>
7821 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
7822 gdbarch instead of current_gdbarch.
7824 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
7826 * varobj.c (varobj_create): Keep varobj value
7827 NULL when evaluating the type.
7829 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
7831 * NEWS: Mention new Windows CE support.
7833 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
7835 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
7836 the obsoletion stanza.
7837 * NEWS: Mention deleted targets.
7839 * config/sh/tm-wince.h: Remove.
7840 * config/sh/wince.mt: Remove.
7841 * config/mips/tm-wince.h: Remove.
7842 * config/mips/wince.mt: Remove.
7845 * wince-stub.c: Remove.
7846 * wince-stub.h: Remove.
7847 * Makefile.in (wince.o): Remove rule.
7848 (wince-stub.o): Likewise.
7850 * mips-tdep.c (mips_next_pc): Make static.
7851 * mips-tdep.h (mips_next_pc): Remove declaration.
7852 * arm-tdep.c (arm_pc_is_thumb): Make static.
7853 (thumb_get_next_pc): Likewise.
7854 (arm_get_next_pc): Likewise.
7855 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
7856 (arm_pc_is_thumb): Likewise.
7857 (thumb_get_next_pc): Likewise.
7858 (arm_get_next_pc): Likewise.
7860 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
7862 * MAINTAINERS: Remove d10v entry.
7863 * Makefile.in (SFILES): Remove dwarfread.c.
7864 (COMMON_OBS): Remove dwarfread.o.
7865 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
7866 (remote-est.o, rom68k-rom.o): Delete.
7867 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
7868 target est, target rom68k, and DWARF 1.
7869 * configure.tgt: Mark d10v as removed.
7870 * dwarf2read.c: Doc update.
7871 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
7873 (elf_locate_sections): Do not set them.
7874 (elf_symfile_read): Do not call dwarf_build_psymtabs.
7875 * symfile.h (dwarf_build_psymtabs): Delete prototype.
7876 * config/m68k/monitor.mt (TDEPFILES): Prune.
7877 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
7878 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
7880 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
7882 * doublest.c (convert_floatformat_to_doublest): Use
7883 floatformat_classify.
7884 (floatformat_is_nan): Rename to...
7885 (floatformat_classify): ...this. Return more information.
7886 * doublest.h (enum float_kind): New.
7887 (floatformat_is_nan): Replace prototype...
7888 (floatformat_classify): ...with this one.
7889 * valprint.c (print_floating): Use floatformat_classify. Handle
7892 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
7894 * README: Mention ISO C library requirement.
7896 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
7898 * Makefile.in (SFILES): Remove nlmread.c.
7899 (COMMON_OBS): Remove nlmread.o.
7900 (nlmread.o): Delete rule.
7901 * README: Delete reference to remote-st.c.
7902 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
7903 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
7905 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
7906 (_initialize_i386_tdep): Do not reference them.
7907 * nlmread.c: Delete file.
7908 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
7909 * target.c: Doc update.
7910 * thread.c: Delete commented include.
7911 * config/alpha/tm-alpha.h: Doc update.
7913 2007-03-30 Chris Dearman <chris@mips.com>
7915 * utils.c (string_to_core_addr): Comment typo.
7917 2007-03-30 Chris Dearman <chris@mips.com>
7919 * mips-tdep.c: Comment typo.
7921 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
7923 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
7924 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
7925 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
7926 * config/powerpc/nm-ppc64-linux.h: Remove file.
7927 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
7928 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
7929 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
7930 * infptrace.c (call_ptrace): Likewise.
7931 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
7932 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
7933 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
7934 (store_register): Likewise.
7936 2007-03-29 Joel Brobecker <brobecker@adacore.com>
7938 * Makefile.in (varobj.o): Add missing dependency.
7940 2007-03-29 Michael Snyder <msnyder@access-company.com>
7942 * MAINTAINERS: Update my email address.
7944 2007-03-29 Joel Brobecker <brobecker@adacore.com>
7946 Add support for exception handling with multiple versions of
7948 * ada-lang.c: Update general comments on how Ada exception catchpoints
7950 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
7951 (__gnat_raise_nodefer_with_msg): Delete.
7952 (ada_unhandled_exception_name_addr_ftype): New type.
7953 (exception_support_info): New type.
7954 (ada_unhandled_exception_name_addr): Add forward declaration.
7955 (ada_unhandled_exception_name_addr_from_raise): Likewise.
7956 (default_exception_support_info): New constant.
7957 (exception_support_info_fallback): Likewise.
7958 (exception_info): New global variable.
7959 (ada_exception_support_info_sniffer): New function.
7960 (ada_executable_changed_observer): Likewise.
7961 (ada_unhandled_exception_name_addr_from_raise): Renamed from
7962 ada_unhandled_exception_name_addr.
7963 (ada_unhandled_exception_name_addr): Reimplement to match the
7964 latest Ada runtime implementation.
7965 (error_breakpoint_runtime_sym_not_found): Delete.
7966 (ada_exception_sym_name): Get the exception sym name from
7967 exception_info rather than hardcoding it.
7968 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
7969 Update error handling.
7970 * Makefile.in (ada-lang.o): Add dependency on observer.h.
7972 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
7974 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
7975 (remote-st.o, uw-thread.o): Delete.
7976 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
7977 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
7978 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
7979 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
7980 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
7981 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
7982 rs6000-*-lynxos* to an obsoletion stanza.
7983 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
7984 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
7985 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
7986 i[34567]86-*-netware*.
7987 * NEWS: Mention deleted targets.
7989 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
7990 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
7991 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
7992 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
7993 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
7994 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
7995 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
7996 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
7997 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
7998 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
7999 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
8000 config/rs6000/tm-rs6000ly.h: Delete files.
8002 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8004 * defs.h (deprecated_registers_changed_hook): Delete declaration.
8005 * interps.c (clear_interpreter_hooks): Do not clear
8006 deprecated_registers_changed_hook.
8007 * regcache.c (registers_changed): Do not call it.
8008 * top.c (deprecated_registers_changed_hook): Do not define it.
8009 * mi/mi-interp.c (mi_command_loop): Do not clear it.
8010 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
8011 (tui_remove_hooks): Do not remove it.
8012 (tui_selected_frame_level_changed_hook): Check for negative level.
8013 Use get_selected_frame.
8014 (tui_registers_changed_hook): Deleted.
8016 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8018 * stabsread.c (add_undefined_type): Add extra parameter.
8019 Now handles nameless types separately.
8020 (struct nat): New type.
8021 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
8022 New static variables.
8023 (read_type): Update calls to add_undefined_type.
8024 (add_undefined_type_noname): New function.
8025 (add_undefined_type_1): Renames from add_undefined_type.
8026 (cleanup_undefined_types_noname): New function.
8027 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
8028 (cleanup_undefined_types): New handles nameless types separately.
8029 (_initialize_stabsread): Initialize our new static constants.
8031 2007-03-29 Denis Pilat <denis.pilat@st.com>
8033 * configure.ac: Test for signal.h.
8034 * configure, config.in: Regenerate.
8036 2007-03-29 Denis Pilat <denis.pilat@st.com>
8038 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
8039 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
8041 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
8043 * arm-wince-tdep.c: New.
8044 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
8045 (MT_CFLAGS): Delete.
8047 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
8048 solib-legacy.o, solib-svr4.o, and remove wince.o.
8049 * configure.tgt (arm*-*-mingw32ce*): Add.
8050 * signals/signals.c [HAVE_SIGNAL_H]: Check.
8051 (do_target_signal_to_host): Silence 'not used' warning.
8052 * config/arm/tm-wince.h: Remove.
8054 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
8056 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
8057 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
8059 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
8060 * config/ia64/tm-linux.h: Remove file.
8061 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
8062 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
8063 legacy_pc_in_sigtramp.
8064 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
8065 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
8066 Remove func_name argument.
8067 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
8069 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
8070 * target.c (update_current_target): Add to_have_steppable_watchpoint.
8071 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
8072 (HAVE_STEPPABLE_WATCHPOINT): Define.
8074 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
8075 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
8076 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
8077 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
8078 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
8079 target_insert_watchpoint, target_remove_watchpoint): Remove.
8080 (FETCH_INFERIOR_REGISTERS): Define.
8081 * ia64-linux-nat.c (ia64_register_addr): Make static.
8082 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
8083 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
8084 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
8085 (ia64_linux_stopped_data_address): Make static. Add target_ops.
8086 (ia64_linux_stopped_by_watchpoint): Make static.
8087 (ia64_linux_can_use_hw_breakpoint): New function.
8088 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
8089 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
8090 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
8092 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
8094 * linespec.c: Include language.h.
8095 (find_methods): Add language parameter. Call
8096 lookup_symbol_in_language. Pass language down.
8097 (add_matching_methods): Likewise. Call
8098 lookup_symbol_in_language.
8099 (add_constructors): Likewise.
8100 (find_method): Pass sym_class to collect_methods.
8101 (collect_methods): Add sym_class parameter. Pass language
8103 * symtab.c (lookup_symbol): Rename to ...
8104 (lookup_symbol_in_language): ... this. Add language
8105 parameter. Use passed language instead of current_language.
8106 (lookup_symbol): New as wrapper around
8107 lookup_symbol_in_language.
8108 (lookup_symbol_aux): Add language parameter. Use passed
8109 language instead of current_language.
8110 (search_symbols): Indent.
8111 * symtab.h (enum language): Forward declare.
8112 (lookup_symbol_in_language): Declare.
8113 (lookup_symbol): Update description.
8114 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
8115 * ada-lang.c (restore_language): Remove.
8116 (lookup_symbol_in_language): Remove.
8118 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
8120 * breakpoint.c (bpstat_num): Add int *num parameter.
8121 * breakpoint.h (bpstat_num): Likewise.
8122 * infcmd.c (continue_command): Adjust to new bpstat_num
8124 (program_info): Likewise.
8126 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8128 * config/sh/tm-sh.h: Remove file.
8129 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
8130 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
8131 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8132 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
8134 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8136 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
8137 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
8138 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
8139 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
8140 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
8141 sequence if target_shortname is "remote".
8143 2007-03-27 Anton Blanchard <anton@samba.org>
8145 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
8146 instead of wordsize when looking for the LR in a stack frame.
8148 2007-03-27 Andreas Schwab <schwab@suse.de>
8149 Daniel Jacobowitz <dan@codesourcery.com>
8151 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
8152 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
8153 argument. Update all callers.
8154 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
8155 (dwarf2_frame_set_eh_frame_regnum): Rename to...
8156 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
8157 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
8158 (dwarf2_frame_set_adjust_regnum): ...this.
8159 (dwarf2_frame_eh_frame_regnum): Delete prototype.
8160 * rs6000-tdep.c: Include "dwarf2-frame.h".
8161 (rs6000_adjust_frame_regnum): Define.
8162 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
8163 Register rs6000_adjust_frame_regnum.
8165 * Makefile.in (rs6000-tdep.o): Update dependencies.
8167 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
8169 * Makefile.in: Add support for a "pdf" target.
8171 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
8173 * amd64-tdep.c (amd64_init_frame_cache): New function.
8174 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
8176 2007-03-26 Nigel Stephens <nigel@mips.com>
8177 Maciej W. Rozycki <macro@mips.com>
8179 * ui-out.c (ui_out_field_core_addr): Truncate address to
8180 TARGET_ADDR_BIT size before printing.
8182 2007-03-22 Nigel Stephens <nigel@mips.com>
8183 Maciej W. Rozycki <macro@mips.com>
8185 * remote-mips.c (mips_xfer_memory): Update prototype.
8187 2007-03-22 Joel Brobecker <brobecker@adacore.com>
8189 * symfile.h: #include "symtab.h"
8191 2007-03-22 Denis Pilat <denis.pilat@st.com>
8193 * utils.c (pagination_on_command, pagination_off_command):
8194 Remove useless prototypes.
8196 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
8199 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
8200 instead of TYPE_NAME for object base class name.
8203 2007-03-19 Kevin Buettner <kevinb@redhat.com>
8205 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
8206 Specify frame type in calls to frame_func_unwind().
8208 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
8210 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
8211 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
8212 (refine_prologue_limit): Delete.
8213 (skip_prologue): Don't call it. Use extract_unsigned_integer.
8214 Assume lim_pc is set. Correct check for incomplete prologues.
8215 Do not skip clobbers of the frame pointer.
8216 * symtab.c (skip_prologue_using_sal): Fail if there is only one
8219 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8221 * frame.c (frame_pop): Check to see whether there's a frame to
8222 which we can pop first.
8224 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8226 * MAINTAINERS (Write After Approval): Add myself.
8228 2007-03-09 Markus Deuling <deuling@de.ibm.com>
8230 * infrun.c (breakpoints_failed): Remove unnecessary variable.
8231 (handle_inferior_event): Remove unnecessary braces.
8232 * breakpoint.c (bpstat_what): Remove wrong comment.
8234 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
8236 * spu-tdep.c (spu_in_function_epilogue_p): New function.
8237 (spu_gdbarch_init): Install it.
8239 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8241 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
8242 object types, not 0.
8244 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8246 * spu-tdep.c (spu_frame_align): New function.
8247 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
8249 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8251 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
8252 (spu_software_single_step): Likewise.
8253 (spu_read_pc, spu_write_pc): New functions.
8254 (spu_gdbarch_init): Install them.
8256 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8258 * cli/cli-dump.c (struct callback_data): load_offset needs to
8259 have signed long type.
8261 2007-03-07 Joel Brobecker <brobecker@adacore.com>
8263 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
8264 Revert the previous change that had some unexpected side-effects
8266 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
8267 function to get the address of the calling instruction.
8269 2007-03-07 Denis Pilat <denis.pilat@st.com>
8271 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
8272 get_selected_frame by deprecated_safe_get_selected_frame.
8274 2007-03-02 Mark Kettenis <kettenis@gnu.org>
8276 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
8277 "gdb_string.h". Don't include "nbsd-tdep.h".
8278 (SIZEOF_STRUCT_REG): Remove.
8279 (SHNBSD_SIZEOF_GREGS): New.
8280 (shnbsd_supply_gregset, shnbsd_collect_gregset)
8281 (shnbsd_regset_from_core_section): New functions.
8282 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
8283 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
8284 shnbsd_supply_gregset, shnbsd_collect_gregset.
8285 (shnbsd_gregset): New variable.
8286 (shnbsd_init_abi): Set regset_from_core_section.
8287 (GDB_OSABI_NETBSD_CORE): New define.
8288 (shnbsd_core_osabi_sniffer): New function.
8289 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
8290 * Makefile.in (shnbsd-tdep.o): Update dependencies.
8291 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
8293 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
8295 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8297 * gdbtypes.c (replace_type): Fix typo that caused us to not update
8298 length of the types referenced by the new type CV ring.
8300 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8302 * frame.c (frame_pop, frame_observer_target_changed): Call
8304 (flush_cached_frames): Rename to reinit_frame_cache and delete
8306 * frame.h (flush_cached_frames): Delete prototype and update comment.
8308 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
8309 reinit_frame_cache instead of flush_cached_frames. Do not call
8310 select_frame after reinit_frame_cache.
8311 * corelow.c (core_open): Likewise.
8312 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
8313 * infrun.c (prepare_to_proceed, context_switch)
8314 (handle_inferior_event): Likewise.
8315 * linux-fork.c (fork_load_infrun_state): Likewise.
8316 * ocd.c (ocd_start_remote): Likewise.
8317 * remote-e7000.c (e7000_start_remote): Likewise.
8318 * remote-mips.c (device): Likewise.
8319 * thread.c (switch_to_thread): Likewise.
8320 * tracepoint.c (finish_tfind_command): Likewise.
8321 * gdbarch.c: Regenerated.
8323 2007-02-28 Jerome Guitton <guitton@adacore.com>
8324 Joel Brobecker <brobecker@adacore.com>
8326 * gdbtypes.c (check_typedef): Do not replace stub type if
8327 the resolved type is not defined in the same objfile.
8329 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8331 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
8333 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8335 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
8336 symbol for Ada units when the symbol is defined using 't' rather
8337 than 'Tt' as symbol descriptor.
8339 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8341 * config/mips/tm-nbsd.h: Delete file.
8342 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8343 * config/sh/tm-nbsd.h: Delete file.
8344 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
8346 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8348 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
8349 unused WRONG_PARAM value since it was recently deleted.
8351 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
8353 * varobj.c (varobj_update): Free temporary vectors.
8355 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8357 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
8358 * config/powerpc/tm-linux.h: Delete file.
8359 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
8360 (PROCESS_LINENUMBER_HOOK): Do not undefine.
8361 (TEXT_SEGMENT_BASE): Do not redefine.
8362 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
8363 from config/rs6000/tm-rs6000.h.
8364 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8365 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
8366 (TEXT_SEGMENT_BASE): Remove.
8367 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
8368 (rs6000_in_solib_return_trampoline): Remove.
8369 (SKIP_TRAMPOLINE_CODE): Remove.
8370 (rs6000_skip_trampoline_code): Remove.
8371 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
8372 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8373 (FP0_REGNUM): Remove.
8374 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
8375 (rs6000_set_host_arch_hook): Remove.
8376 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
8377 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
8378 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
8379 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
8380 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
8381 * rs6000-nat.c: Include "rs6000-tdep.h".
8382 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
8383 (set_host_arch): Rename to ...
8384 (rs6000_create_inferior): ... this. Make public.
8385 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
8386 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
8387 (rs6000_create_inferior): Remove.
8388 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
8389 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
8390 set_gdbarch_in_solib_return_trampoline, and
8391 set_gdbarch_skip_trampoline_code.
8392 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
8393 from config/rs6000/tm-rs6000.h.
8395 2007-02-27 Joel Brobecker <brobecker@adacore.com>
8397 * buildsym.c (record_producer): Do nothing if no producer is provided.
8399 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
8401 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
8402 to check changelist is non-NULL. Call error if the frontend tries
8403 to update a non-root variable.
8405 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
8407 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8409 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
8410 (dwarf2_frame_sniffer): Update.
8411 (dwarf2_signal_frame_this_id): New function.
8412 (dwarf2_signal_frame_unwind): Use it.
8413 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
8414 * frame.c (frame_func_unwind): Add this_type argument.
8415 (get_frame_func): Update.
8416 (frame_unwind_address_in_block): Add this_type argument and check it.
8418 (get_frame_address_in_block): Update.
8419 * frame.h (enum frame_type): Move higher in the file.
8420 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
8423 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
8424 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
8425 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
8426 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
8427 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
8428 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
8429 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
8430 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
8431 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
8432 frame_func_unwind and frame_unwind_address_in_block to specify
8433 the frame type. Use frame_unwind_address_in_block instead of
8434 frame_pc_unwind in sniffers.
8436 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8438 * frame.c (deprecated_selected_frame): Rename to...
8439 (selected_frame): ...this. Make static.
8440 (get_selected_frame, select_frame): Update.
8441 * frame.h (deprected_select_frame): Delete.
8442 (deprecated_safe_get_selected_frame): Update comments.
8444 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
8445 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
8446 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
8447 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
8448 tui/tui.c: Replace references to deprecated_selected_frame.
8450 2007-02-27 Fred Fish <fnf@specifix.com>
8452 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
8453 directly decrement the stack pointer, accumulate their operand into
8454 the stack offset, and mark the function as not being frameless.
8456 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8458 * arch-utils.c (selected_byte_order): New.
8459 * arch-utils.h (selected_byte_order): New prototype.
8460 * remote-sim.c (gdbsim_open): Use selected_byte_order.
8462 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8464 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
8465 (default_symfile_offsets): Check VMA here. Update section VMAs.
8467 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8469 * remote.c (init_remote_state): Add special handling for placeholder
8472 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8474 * Makefile.in (XMLFILES): Include $(TDEP_XML).
8475 (filenames_h): New variable.
8476 (clean): Clean up xml-builtin.c and stamp-xml.
8477 (arm-linux-nat.o): Update.
8478 * config/arm/linux.mh (TDEP_XML): Define.
8479 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
8480 (arm_linux_has_wmmx_registers): New.
8481 (GET_THREAD_ID): Fix typo.
8482 (IWMMXT_REGS_SIZE): Define.
8483 (fetch_wmmx_regs, store_wmmx_regs): New.
8484 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
8485 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
8486 (super_xfer_partial, arm_linux_xfer_partial): New.
8487 (_initialize_arm_linux_nat): Use them.
8488 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
8489 (xml_builtin_xfer_partial): New function.
8490 * xml-support.h (xml_builtin_xfer_partial): New prototype.
8491 * NEWS: Update mention of iWMMXt support.
8493 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8495 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
8496 if there are no FPA registers.
8497 (arm_dwarf_reg_to_regnum): New function.
8498 (arm_register_type, arm_register_name): Return minimal values for
8499 unsupported registers.
8500 (arm_register_sim_regno): Handle iWMMXt registers.
8501 (arm_gdbarch_init): Record missing FPA registers if indicated by
8502 a target description. Recognize iWMMXt registers. Only register
8503 "info float" for FPA. Use ARM_NUM_REGS. Register
8504 arm_dwarf_reg_to_regnum.
8505 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
8507 (struct gdbarch_tdep): Add have_fpa_registers.
8508 * features/xscale-iwmmxt.xml: Update capitalization.
8509 * regformats/arm-with-iwmmxt.dat: Regenerated.
8511 2007-02-24 Kevin Buettner <kevinb@redhat.com>
8513 * NEWS (New targets): Add entry for the Toshiba Media Processor.
8515 2007-02-23 Kevin Buettner <kevinb@redhat.com>
8517 * MAINTAINERS (mep): New target.
8519 2007-02-23 Kevin Buettner <kevinb@redhat.com>
8521 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
8523 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
8524 (mep-tdep.o): New rule.
8525 * configure.tgt (mep-*-*): New target.
8526 * mep-tdep.c: New file.
8527 * config/mep/mep.mt: New file.
8529 2007-02-22 Markus Deuling <deuling@de.ibm.com>
8531 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
8532 BREAKPOINT_HIT and STOP_UNKNOWN.
8534 2007-02-22 Markus Deuling <deuling@de.ibm.com>
8536 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
8538 2007-02-20 Joel Brobecker <brobecker@adacore.com>
8540 * gdb_expat.h (XMLCALL): Define if not already defined.
8542 2007-02-20 Andreas Schwab <schwab@suse.de>
8544 * Makefile.in (symfile.o): Update dependencies.
8546 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
8548 * MAINTAINERS: Disable -Werror for cris simulator. Build
8549 sparc64-solaris2.10 instead of the broken sparc-elf.
8550 * solib-frv.c: Include "solib.h".
8551 * Makefile.in (solib-frv.o): Update.
8552 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
8553 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
8554 (xtensa_frame_this_id, xtensa_frame_prev_register)
8555 (xtensa_push_dummy_call): Use %p.
8557 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8559 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
8560 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
8561 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
8562 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
8563 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
8564 (sparc-linux-tdep.o): Update.
8566 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
8568 * xtensa-tdep.h (xtensa_reg_mask_t): New.
8569 (xtensa_mask_t): Change mask field to be a separate array.
8570 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
8571 (xtensa_pseudo_register_write, xtensa_unwind_pc)
8572 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
8573 (xtensa_breakpoint_from_pc): Remove implicit type casting.
8574 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
8575 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
8576 (mask14, mask15): Rename to
8577 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
8578 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
8579 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
8580 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
8581 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
8582 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
8583 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
8584 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
8585 (xtensa_submask14, xtensa_submask15): New.
8586 (rmap): Follow strict aliasing rules doing static initialization.
8588 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
8590 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
8591 handling from here...
8592 (tdesc_register_type): ...to here.
8593 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
8594 * features/arm-core.xml: Use code_ptr and data_ptr.
8596 2007-02-13 Denis Pilat <denis.pilat@st.com>
8598 * varobj.h (enum varobj_update_error): New enum.
8599 * varobj.c (struct varobj_root): Add is_valid member.
8600 (varobj_get_type): Check for invalid varobj.
8601 (varobj_get_attributes): Likewise.
8602 (variable_editable):Likewise.
8603 (varobj_update): Likewise. Use varobj_update_error.
8604 (new_root_variable): Set root varobj as valid by default.
8605 (varobj_invalidate): New function.
8606 * symfile.c (clear_symtab_users): Use varobj_invalidate.
8607 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
8608 Use varobj_update_error.
8610 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
8613 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
8614 Pascal language marker.
8615 * dwarf2read.c (set_cu_language): Likewise.
8617 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
8619 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
8620 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
8621 instead of target_terminal_init since inferior_ptid isn't set yet.
8623 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
8625 * MAINTAINERS (Write After Approval): Add myself.
8627 2007-02-09 Fred Fish <fnf@specifix.com>
8629 Based on work by Apple Computer, Inc.
8630 * event-top.c (async_request_quit): Call quit() whenever either
8631 quit_flag is set or immediate_quit is set.
8633 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
8635 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
8636 type to a pointer to const struct block.
8637 (ada_lookup_symbol_list): Don't cast away constness when calling
8638 remove_out_of_scope_renamings.
8640 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
8642 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
8643 address of 'filename'; it is always non null.
8645 2007-02-09 Joel Brobecker <brobecker@adacore.com>
8647 * exec.c (add_to_section_table): Do not discard empty sections.
8649 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8651 * features/Makefile, features/arm-with-iwmmxt.xml,
8652 features/gdbserver-regs.xsl, features/number-regs.xsl,
8653 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
8654 * regformats/arm-with-iwmmxt.dat: Generate.
8655 * NEWS: Mention iWMMXt.
8657 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8659 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
8660 (xml-tdesc.o): Update.
8661 * xml-support.c: Add a comment.
8662 (gdb_xml_enums_boolean): New variable.
8663 (gdb_xml_parse_attr_enum): Use strcasecmp.
8664 * xml-support.h (gdb_xml_enums_boolean): Declare.
8665 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
8666 next_regnum, and current_union.
8667 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
8668 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
8669 (field_attributes, union_children, reg_attributes, union_attributes)
8670 (vector_attributes, feature_attributes, feature_children): New.
8671 (target_children): Make static. Add <feature>.
8672 (tdesc_elements): Make static.
8673 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
8674 (struct tdesc_feature, tdesc_feature_p): New types.
8675 (struct target_desc): Add features member.
8676 (struct tdesc_arch_data, tdesc_data): New.
8677 (target_find_description): Clarify error message. Warn about
8678 ignored register descriptions.
8679 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
8680 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
8681 (tdesc_data_cleanup, tdesc_numbered_register)
8682 (tdesc_numbered_register_choices, tdesc_find_register)
8683 (tdesc_register_name, tdesc_register_type)
8684 (tdesc_remote_register_number, tdesc_register_reggroup_p)
8685 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
8686 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
8687 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
8688 (tdesc_create_feature, tdesc_record_type): New.
8689 (free_target_description): Free features.
8690 (_initialize_target_descriptions): Initialize tdesc_data.
8691 * arch-utils.c (default_remote_register_number): New.
8692 * arch-utils.h (default_remote_register_number): New prototype.
8693 * target-descriptions.h (set_tdesc_pseudo_register_name)
8694 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
8695 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
8696 (tdesc_numbered_register, tdesc_numbered_register_choices)
8697 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
8698 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
8699 (tdesc_create_reg): Declare.
8700 * gdbarch.sh (remote_register_number): New entry.
8701 * gdbarch.c, gdbarch.h: Regenerate.
8702 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
8703 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
8705 * arm-tdep.c (arm_register_aliases): New.
8706 (arm_register_name_strings): Rename to...
8707 (arm_register_names): ...this. Make const. Delete the old version.
8708 (current_option, arm_register_byte): Delete.
8709 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
8710 (value_of_arm_user_reg): New.
8711 (arm_gdbarch_init): Verify any described registers. Call
8712 tdesc_use_registers. Don't use arm_register_byte. Create aliases
8713 for standard register names.
8714 (_initialize_arm_tdep): Do not adjust arm_register_names.
8715 * user-regs.c (struct user_reg): Add baton member.
8716 (append_user_reg, user_reg_add_builtin, user_regs_init)
8717 (user_reg_add, value_of_user_reg): Use a baton for user
8719 * std-regs.c: Update.
8720 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
8721 (user_reg_add): Add baton argument.
8722 * NEWS: Mention target description register support.
8723 * features/arm-core.xml, features/arm-fpa.xml: New.
8724 * eval.c (evaluate_subexp_standard): Allow ptype $register
8725 when the program is not running.
8727 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
8729 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
8731 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
8733 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
8734 info->disassembler_options to "any".
8736 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8738 * varobj.c (install_new_value): Only call value_get_print_value
8741 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8743 Reported by timeless@gmail.com:
8744 * gdb/target.c (target_flash_erase): Do not return void value.
8745 (target_flash_done): Likewise.
8746 * gdb/cli/cli-cmds.c (source_command): Likewise.
8748 2007-02-08 Fred Fish <fnf@specifix.com>
8750 Based on work by Apple Computer, Inc.
8751 * event-top.c (handle_sigint): Set quit_flag.
8752 (async_request_quit): Don't set quit_flag. Avoid calling quit()
8753 if quit_flag has already been reset.
8755 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8757 * ser-mingw.c (pipe_windows_close): Move variable initialization back
8760 2007-02-08 Fred Fish <fnf@specifix.com>
8762 * defs.h (request_quit): Remove declaration.
8763 * utils.c (request_quit): Remove definition.
8765 2007-02-08 Joel Brobecker <brobecker@gnat.com>
8766 Jan Kratochvil <jan.kratochvil@redhat.com>
8767 Daniel Jacobowitz <dan@codesourcery.com>
8769 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
8770 (skip_prologue): Allow bl->blrl used by PIC code.
8772 2007-02-08 Mark Kettenis <kettenis@gnu.org>
8773 Daniel Jacobowitz <dan@codesourcery.com>
8775 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
8776 initialize tmp_obstack.
8777 * p-valprint.c (pascal_object_print_value_fields)
8778 (pascal_object_print_value): Likewise.
8780 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8782 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
8784 2007-02-08 Mark Kettenis <kettenis@gnu.org>
8786 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
8787 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
8789 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
8791 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
8793 (tdesc_parse_xml): Cache expanded descriptions.
8795 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
8797 * Makefile.in (XMLFILES): New.
8798 (COMMON_OBS): Add xml-builtin.o.
8799 (xml-builtin.c, stamp-xml): New rules.
8800 (xml-tdesc.o): Update.
8801 * features/feature_to_c.sh: New file.
8802 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
8803 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
8804 (gdb_xml_start_element): Initialize scope after possibly reallocating
8805 scopes. Move cleanup later. Handle the XInclude description
8807 (gdb_xml_end_element): Only parse the body if there is a current element.
8808 Call XML_DefaultCurrent if there is no element.
8809 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
8810 (struct xinclude_parsing_data, xinclude_start_include)
8811 (xinclude_end_include, xml_xinclude_default)
8812 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
8813 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
8814 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
8815 * xml-support.h (xml_fetch_another, xml_process_xincludes)
8816 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
8817 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
8818 XInclude directives. Use the compiled in DTD.
8819 (fetch_xml_from_file): Add baton argument. Treat it as a containing
8820 directory name. Do not warn here.
8821 (file_read_description_xml): Update call. Warn here instead. Pass
8823 (fetch_available_features_from_target): New.
8824 (target_read_description_xml): Use it.
8825 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
8827 * features/xinclude.dtd: New file.
8829 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
8831 * linux-thread-db.c (check_for_thread_db): Return early if we have
8832 no libthread_db support.
8834 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
8836 * mi/mi-parse.h: Include <sys/time.h>.
8838 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
8840 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
8841 instead of print_variable_value to print values.
8843 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
8845 * mi/mi-main.c: Numerous formatting changes.
8846 (mi_cmd_data_write_register_values): Replace clause inadvertantly
8847 removed in my previous change.
8849 2007-02-03 Eli Zaretskii <eliz@gnu.org>
8851 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
8852 Use 1000000L instead of 1000000.
8854 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
8856 Based on work by Apple Computer, Inc.
8858 * configure.ac: Test for sys/resource.h and getrusage.
8859 * configure, config.in: Regenerate.
8861 * mi/mi-main.c: Include <sys/resource.h> if present.
8862 (rusage): Declare if HAVE_GETRUSAGE.
8863 (current_command_ts, do_timings): New static variables.
8864 (timestamp, print_diff_now, print_diff, timeval_diff):
8865 New static timing functions.
8866 (mi_cmd_enable_timings): New function for new MI command.
8867 (captured_mi_execute_command, mi_execute_async_cli_command):
8868 Call timing functions.
8870 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
8873 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
8875 * mi/mi-parse.h: (mi_timestamp): New structure.
8876 (mi_parse): Add mi_timestamp* member.
8878 2007-02-02 Denis Pilat <denis.pilat@st.com>
8880 * thread.c (make_cleanup_restore_current_thread): New function.
8881 (info_threads_command): Use of make_cleanup_restore_current_thread
8882 to restore the current thread and the selected frame.
8883 (restore_selected_frame): New function.
8884 (struct current_thread_cleanup): Add frame_id field.
8885 (do_restore_current_thread_cleanup): Add restoring of the selected
8887 (make_cleanup_restore_current_thread): Likewise.
8888 (thread_apply_all_command): backup the selected frame while
8889 entering the function and restore it at exit.
8890 (thread_apply_command): Likewise.
8892 2007-02-02 Denis Pilat <denis.pilat@st.com>
8894 * MAINTAINERS (Write After Approval): Add myself to the list.
8896 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
8898 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
8899 (m32r_store_register): Ditto.
8901 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
8903 * ser-mingw.c (pipe_windows_open)
8904 (pipe_windows_read, pipe_windows_write): Declare
8905 variables at the top of the function.
8907 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
8909 * doublest.c (floatformat_from_length): Use the right element from
8910 gdbarch floatformats.
8911 (floatformat_from_type, extract_typed_floating)
8912 (store_typed_floating): Likewise.
8913 * doublest.h: Remove declarations for undefined floatformat arrays.
8914 * gdbarch.sh (float_format, double_format, long_double_format): Change
8916 (pformat): Update for pairs.
8917 * gdbarch.c, gdbarch.h: Regenerated.
8918 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
8919 (floatformats_ieee_double_littlebyte_bigword)
8920 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
8921 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
8922 (floatformats_vax_d): New variables.
8923 (builtin_type_ieee_single, builtin_type_ieee_double)
8924 (builtin_type_arm_ext, builtin_type_ia64_spill)
8925 (builtin_type_ia64_quad): Replace arrays with individual types.
8926 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
8927 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
8928 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
8929 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
8930 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
8931 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
8932 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
8933 unused and endian-specific types.
8934 (recursive_dump_type): Update for floatformat pairs.
8935 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
8936 (build_gdbtypes): Use build_flt.
8937 (_initialize_gdbtypes): Update set of initialized types.
8938 * gdbtypes.h: Update declarations to match gdbtypes.c.
8939 (struct main_type): Store a pointer to two floatformats.
8940 * arch-utils.c (default_float_format, default_double_format): Delete.
8941 * arch-utils.h (default_float_format, default_double_format): Delete.
8943 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
8944 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
8945 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
8946 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
8947 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
8949 2007-01-29 Joel Brobecker <brobecker@adacore.com>
8951 * target.c (maintenance_print_target_stack): New function.
8952 (initialize_targets): Add new "maintenance print target-stack"
8955 2007-01-28 Mark Kettenis <kettenis@gnu.org>
8957 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
8959 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
8961 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
8962 (struct dwarf2_loclist_baton): Likewise.
8964 2007-01-27 Eli Zaretskii <eliz@gnu.org>
8966 * cli/cli-script.c: Include breakpoint.h.
8967 (build_command_line): Require arguments only for if and while
8969 (get_command_line, execute_user_command, execute_control_command):
8970 Fix wording of warning messages.
8971 (print_command_lines): Print breakpoint commands.
8972 (execute_control_command): Call commands_from_control_command to
8973 handle the `commands' command inside a body of a flow-control
8975 (read_next_line): Recognize the `commands' command and build a
8976 command line structure for it.
8977 (recurse_read_control_structure, read_command_lines): Handle
8978 `commands' similarly to `if' and `while'.
8980 * breakpoint.c (get_number_trailer): Document the special meaning
8981 of NULL as the first argument PP.
8982 (commands_from_control_command): New function.
8984 * breakpoint.h (commands_from_control_command): Add prototype.
8986 * defs.h (commands_control): New enumerated value for enum
8987 command_control_type.
8989 2007-01-26 Joel Brobecker <brobecker@adacore.com>
8991 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
8992 (ada_exception_sal): Update accordingly.
8994 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8996 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
8997 * NEWS: Describe CHAR array vs. string identifcation rules.
8999 2007-01-25 Paul Brook <paul@codesourcery.com>
9001 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
9003 2007-01-24 Jim Blandy <jimb@codesourcery.com>
9005 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
9006 expression is empty, bother to return the 'optimized out' value we
9007 construct. (Thanks to Carl Burch.)
9009 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9011 * varobj.c (c_value_of_root, c_value_of_child)
9012 (cplus_describe_child): Don't call release_value.
9014 2007-01-24 Thiemo Seufer <ths@mips.com>
9016 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
9019 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9021 Refactor getting children name, value and type access
9023 * varobj.c (get_type_deref): Remove.
9024 (adjust_value_for_child_access): New.
9025 (c_number_of_children): Use the above.
9026 (c_describe_child): Likewise.
9027 (enum accessibility): New.
9028 (match_accessibility): New function.
9029 (cplus_describe_child): New function.
9030 (cplus_name_of_child, cplus_value_of_child)
9031 (cplus_type_of_child): Reimplement in terms
9032 of cplus_describe_child.
9033 (cplus_number_of_children): Use
9034 adjust_value_for_child_access.
9036 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9038 Fix computation of the 'editable' attribute and
9039 value changeability for for references.
9040 * varobj.c (get_value_type): New function.
9041 (c_variable_editable): Use get_value_type.
9042 (varobj_value_is_changeable): Likewise.
9044 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9046 * source.c (find_and_open_source): Try rewriting the source
9047 path inside filename if dirname is NULL.
9049 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9051 * dwarf2read.c (add_partial_symbol): Create an extra partial
9052 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
9053 (new_symbol): Likewise for symbols.
9055 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
9057 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
9059 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
9061 * value.c (value_primitive_field): Copy the full 'location'
9062 contents, instead of assuming that copying ADDRESS will
9063 bring over everything in the union. Remove obsolete comment.
9065 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
9067 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
9068 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
9069 (m32c_m16c_pointer_to_address): Separate code from declarations.
9071 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
9073 * target.c (update_current_target): Correct typo.
9075 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
9077 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
9080 2007-01-11 Andrew Cagney <cagney@redhat.com>
9081 Daniel Jacobowitz <dan@codesourcery.com>
9082 Jan Kratochvil <jan.kratochvil@redhat.com>
9084 * dwarf2-frame.c (execute_cfa_program): New support of
9085 `DW_CFA_GNU_negative_offset_extended'.
9087 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9089 * NEWS: Mention flash support for "load" and new remote packets.
9091 2007-01-21 Markus Deuling <deuling@de.ibm.com>
9093 * breakpoint.c (delete_command): Skip redundant loop iterations.
9095 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9097 * gdbarch.sh (register_type): Update comment.
9098 * gdbarch.h: Regenerated.
9099 * arch-utils.c (generic_register_size): Call register_type.
9100 * ia64-tdep.c (ia64_extract_return_value): Likewise.
9101 * m32c-tdep.c (check_for_saved): Likewise.
9102 * mips-tdep.c (mips_print_register, print_gp_register_row)
9103 (mips_print_registers_info): Likewise.
9104 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
9106 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
9107 (sh64_do_register, sh64_print_register)
9108 (sh64_media_print_registers_info): Likewise.
9109 * tui/tui-regs.c (tui_register_format): Likewise.
9111 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9113 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
9115 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
9116 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
9117 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
9118 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9119 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
9120 (make_symbol_completion_list): Likewise.
9122 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9123 Daniel Jacobowitz <dan@codesourcery.com>
9125 * buildsym.c (end_symtab): Use preallocated symtab if available.
9126 Fill in SYMBOL_SYMTAB.
9127 * buildsym.h (struct subfile): Add symtab member.
9128 * dwarf2read.c (struct dwarf2_cu): Add line_header.
9129 (struct file_entry): Add symtab.
9130 (free_cu_line_header): New function.
9131 (read_file_scope): Use it. Save line_header in the cu. Process
9133 (add_file_name): Initialize new symtab member.
9134 (dwarf_decode_lines): Create symtabs for included files.
9135 (new_symbol): Set SYMBOL_SYMTAB.
9136 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
9137 (search_symbols): Likewise.
9138 * symtab.h (struct symbol): Add symtab member.
9139 (SYMBOL_SYMTAB): Define.
9141 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9143 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
9145 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9147 * arch-utils.c (show_endian): Correct reversed condition.
9149 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9151 * MAINTAINERS (Write After Approval): Add myself.
9153 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
9154 Vladimir Prus <vladimir@codesourcery.com>
9156 Fix 'selected frame' varobjs.
9157 * varobj.c (struct varobj): Remove the error field.
9158 (varobj_set_value): Don't check var->error.
9159 (install_new_value): Don't set var->error.
9160 (varobj_update): Always pass the new value
9161 of the root via install_new_value.
9162 (create_child): Don't set error field.
9163 (new_variable): Likewise.
9164 (c_value_of_root): Always reevaluate the value
9165 of selected frame varobjs in the selected frame.
9166 Don't call reinit_frame_cache.
9168 2007-01-15 Joel Brobecker <brobecker@adacore.com>
9170 * source.c (_initialize_source): Improve the help text of
9171 the substitute-path commands.
9173 2007-01-14 Mark Kettenis <kettenis@gnu.org>
9175 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
9176 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
9177 (frv_skip_prologue): Remove prototypes.
9178 (frv_adjust_breakpoint_address): Renamed from
9179 frv_gdbarch_adjust_breakpoint_address.
9180 (frv_gdbarch_init): Adjust.
9182 2007-01-13 Mark Kettenis <kettenis@gnu.org>
9184 * gdbarch.sh (deprecated_extract_return_value)
9185 (deprecated_store_return_value): Remove.
9186 (extract_return_value, store_return_value): Remove default values.
9187 * gdbarch.c, gdbarch.h: Regenerate.
9188 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
9189 (legacy_store_return_value): Remove.
9190 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
9193 * mi/mi-main.c: Remove obsolete comment.
9195 * regcache.c, regcache.h (deprecated_register_bytes)
9196 (deprecated_read_register_bytes)
9197 (deprecated_write_register_bytes): Remove.
9199 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
9200 Don't forget to move destination pointer.
9202 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9204 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
9206 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
9208 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
9209 past entry function with recent newlib.
9211 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
9213 * gdb.texinfo (GDB/MI Variable Objects): Improve the
9214 introduction. Specify -var-update more exactly.
9216 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
9218 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
9220 2007-01-10 Jim Blandy <jimb@codesourcery.com>
9222 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
9223 the Global Maintainers' invitation to be a global maintainer.
9225 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
9227 * infrun.c (singlestep_pc): New variable.
9228 (resume): Set singlestep_pc.
9229 (context_switch): Add a debugging message. Flush the frame cache.
9230 (handle_inferior_event): Add debugging messages. Handle thread
9231 hops when a software single step has completed. Let context_switch
9232 handle flushing the frame cache.
9234 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9236 * NEWS: Mention target descriptions, "set tdesc filename",
9237 "unset tdesc filename", "show tdesc filename", and
9238 qXfer:features:read.
9239 * arch-utils.c (choose_architecture_for_target): New function.
9240 (gdbarch_info_fill): Call it.
9241 * target-descriptions.c (struct property): Make members non-const.
9242 (struct target_desc): Add arch member.
9243 (target_description_filename): New variable.
9244 (target_find_description): Try via XML first.
9245 (tdesc_architecture): New.
9246 (free_target_description, make_cleanup_free_target_description): New.
9247 (set_tdesc_property): Call xstrdup.
9248 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
9249 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
9250 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
9251 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
9252 * target-descriptions.h (tdesc_architecture)
9253 (make_cleanup_free_target_description, set_tdesc_architecture): New
9255 * Makefile.in (SFILES): Add xml-tdesc.c.
9256 (COMMON_OBS): Add xml-tdesc.o.
9257 (target-descriptions.o): Update.
9258 (xml-tdesc.o): New rule.
9259 * xml-tdesc.c, xml-tdesc.h: New files.
9260 * remote.c (PACKET_qXfer_features): New enum.
9261 (remote_protocol_features): Add qXfer:features:read.
9262 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
9263 (_initialize_remote): Register qXfer:features:read.
9264 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
9265 * features/gdb-target.dtd: New file.
9267 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9269 * copyright.sh: Clarify error.
9271 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9273 * symtab.c (matching_bfd_sections): Fix VMA matching for
9276 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9278 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
9281 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9283 Updated copyright notices for most files.
9285 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9287 * copyright.sh (prunes): Add step-line.inp and step-line.c.
9289 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9291 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
9293 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
9295 * configure, config.in: Regenerate.
9296 * defs.h (debug_file_directory): Declare.
9297 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
9298 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
9299 relocate it if DEBUGDIR_RELOCATABLE.
9300 * symfile.c (debug_file_directory): Make non-static.
9301 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
9302 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
9303 (_initialize_symfile): Don't initialize debug_file_directory here.
9305 2007-01-09 Jim Blandy <jimb@codesourcery.com>
9307 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
9310 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9312 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
9313 frame_unwind_register to recurse.
9314 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
9315 (alpha_heuristic_frame_prev_register): Likewise.
9316 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
9317 * m32c-tdep.c (m32c_prev_register): Likewise.
9318 * frame.c (frame_register_unwind_location): Remove FIXME.
9320 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9321 Eli Zaretskii <eliz@gnu.org>
9323 * copyright.sh: New file.
9325 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9327 * configure.ac: Check for XML_StopParser.
9328 * xml-support.c (gdb_xml_body_text): Check for an error.
9329 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
9330 (gdb_xml_end_element_wrapper): Likewise.
9331 * config.in, configure: Regenerated.
9333 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9335 * varobj.c (install_new_value): Always update print_value.
9336 (value_get_print_value): Immediately return NULL for missing
9339 2007-01-08 Jim Blandy <jimb@codesourcery.com>
9341 * configure.ac: Tighten pattern for extracting value of
9342 DEPRECATED_TM_FILE from the target makefile fragment.
9343 * configure: Regenerated.
9345 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9347 * linux-nat.c (struct simple_pid_list): Add status.
9348 (add_to_pid_list): Record the PID's status.
9349 (linux_record_stopped_pid): Likewise. Make static.
9350 (pull_pid_from_list): Return the saved status.
9351 (linux_nat_handle_extended): Deleted.
9352 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
9353 Make static. Handle non-SIGSTOP for a new thread's first signal.
9354 (flush_callback): Handle unexpected pending signals.
9355 (linux_nat_wait): Update calls to changed functions.
9356 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
9357 Remove prototypes for newly static functions.
9359 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9361 * gdbarch.sh (value_from_register): New gdbarch function.
9362 * gdbarch.c, gdbarch.h: Regenerate.
9363 * findvar.c (default_value_from_register): New function.
9364 (value_from_register): Use gdbarch_value_from_register.
9365 * value.h (default_value_from_register): Declare.
9366 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
9367 spu_value_to_register): Remove.
9368 (spu_value_from_register): New function.
9369 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9370 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9371 Call set_gdbarch_value_from_register.
9372 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
9373 s390_value_to_register): Remove.
9374 (s390_value_from_register): New function.
9375 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9376 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9377 Call set_gdbarch_value_from_register.
9379 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9381 * NEWS: Add "set sysroot" and "show sysroot".
9382 * solib.c (solib_absolute_prefix): Delete. Replace
9383 all uses with gdb_sysroot.
9384 (_initialize_solib): Add "set sysroot" and "show sysroot".
9385 Make "solib-absolute-prefix" an alias to it.
9387 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9389 * frame.c (get_frame_register_bytes): New function.
9390 (put_frame_register_bytes): Likewise.
9391 * frame.h (get_frame_register_bytes): Declare.
9392 (put_frame_register_bytes): Likewise.
9393 * findvar.c (value_from_register): Always construct lval_register
9394 values. Use get_frame_register_bytes.
9395 * valops.c (value_assign): Use get_frame_register_bytes and
9396 put_frame_register_bytes.
9398 2007-01-08 Jim Blandy <jimb@codesourcery.com>
9400 * MAINTAINERS: Update Stan Shebs' email address.
9402 2007-01-07 Joel Brobecker <brobecker@adacore.com>
9404 * ada-lang.c (is_known_support_routine): Improve the implementation.
9406 2007-01-06 Joel Brobecker <brobecker@adacore.com>
9408 * ada-lang.c: Add include of source.h.
9409 (is_known_support_routine): Improve the check verifying that the file
9410 associated to this frame exists.
9411 * Makefile.in (ada-lang.o): Add dependency on source.h.
9413 2007-01-07 Jim Blandy <jimb@codesourcery.com>
9415 * ax-general.c (ax_const_l): Select proper opcode for the given
9418 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
9420 * varobj.c (c_value_of_root): Don't select frame if variable
9421 object is out of scope.
9423 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
9425 * varobj.c (struct varobj): New member print_value.
9426 (install_new_value): Compare last printed value with current one
9427 instead of contents.
9428 (new_variable): Initialize var->print_value to NULL.
9429 (free_variable): Free var->print_value.
9430 (value_get_print_value): New function derived from
9431 c_value_of_variable.
9432 (c_value_of_variable): Use value_get_print_value.
9434 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9436 * i386-tdep.c (i386_analyze_stack_align): Add comment.
9438 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9440 * NEWS: Add entries for new catch commands.
9442 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9444 * dwarf2read.c (partial_die_info): Add field has_byte_size.
9445 (add_partial_symbol): Correct identification of external references.
9446 (process_structure_scope): Likewise.
9447 (read_partial_die): Handle DW_AT_byte_size attribute.
9449 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
9451 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
9453 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
9455 * varobj.c (get_type_deref): Fix variable objects for references to
9458 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9460 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
9463 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9465 * memory-map.c (struct_memory_map_parsing_data): Remove most
9466 members. Make property_name an array.
9467 (free_memory_map_parsing_data, memory_map_start_element)
9468 (memory_map_end_element, memory_map_character_data): Delete.
9469 (memory_map_start_memory, memory_map_end_memory)
9470 (memory_map_start_property, memory_map_end_property): New functions.
9471 (property_attributes, memory_children, memory_type_enum)
9472 (memory_attributes, memory_map_children, memory_map_elements): New.
9473 (parse_memory_map): Rewrite.
9474 * xml-support.c (debug_xml): New.
9475 (xml_get_required_attribute, xml_get_integer_attribute)
9476 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
9478 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
9479 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
9480 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
9481 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
9482 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
9483 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
9484 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
9486 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
9487 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
9488 (enum gdb_xml_element_flag, struct gdb_xml_element)
9489 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
9490 (struct gdb_xml_enum): New.
9491 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
9492 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
9493 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
9494 (xml_get_required_attribute, xml_get_integer_attribute)
9495 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
9496 * Makefile.in (xml_support_h, xml-support.o): Update.
9498 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9500 * Makefile.in (eval.o): Update dependencies.
9501 * eval.c: Include "ui-out.h" and "exceptions.h".
9502 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
9503 Use value_zero if an error occurs when avoiding side effects.
9504 * varobj.c (c_value_of_root): Initialize new_val.
9506 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9508 * varobj.c (varobj_list_children): Stop if the number of children is
9510 (c_number_of_children):
9512 2007-01-04 Mark Kettenis <kettenis@gnu.org>
9514 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
9515 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
9516 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
9517 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
9518 sizeof, instead of hardcoded constants.
9520 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9522 * CONTRIBUTE: Use sourceware.org.
9524 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9526 * buildsym.c (start_subfile): Handle producer.
9527 (record_producer): New function.
9528 * buildsym.h (struct subfile): Include producer.
9529 (record_producer): New prototype.
9530 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
9531 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
9532 armcc_cfa_offsets_reversed.
9533 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
9534 (dwarf2_frame_find_quirks): New function.
9535 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
9536 (decode_frame_entry_1): Record the CIE version. Record the
9537 augmentation. Skip armcc augmentations.
9538 * dwarf2read.c (read_file_scope): Save the producer.
9539 * symtab.h (struct symtab): Rename unused version member to
9542 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9544 * configure.ac (build_warnings): Use -Wall and
9545 -Wdeclaration-after-statement.
9546 * configure: Regenerated.
9548 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
9550 Simplify access to variours properties of child
9551 variable objects in C.
9552 * varobj.c (value_struct_element_index): New function.
9553 (c_describe_child): New function.
9554 (c_name_of_child, c_value_of_child)
9555 (c_type_of_child): Rewrite to use c_describe_child.
9557 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
9560 * varobj.c: Include "vec.h".
9561 (varobj_p): New typedef, declare vector of those.
9562 (struct varobj): Use vector for the 'children' member.
9563 (child_exists): Remove.
9564 (save_child_in_parent): Remove.
9565 (remove_child_from_parent): Remove.
9566 (struct varobj_child): Remove.
9567 (struct vstack): Remove.
9568 (vpush, vpop): Remove.
9569 (varobj_list_children): Adjust to work work vector.
9570 (varobj_update): Likewise. Use vectors for
9571 working stack and result.
9572 (delete_variable_1): Likewise.
9573 * Makefile.in (varobj.o): Update dependencies.
9575 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
9577 Port from Apple's version.
9579 * varobj.c (type_changeable): Rename to...
9580 (varobj_value_is_changeable_p): ...this. Adjust all callers.
9581 (is_root_p): New function. Use it everywhere.
9583 2007-01-04 Jim Blandy <jimb@codesourcery.com>
9585 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
9588 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9590 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
9592 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9594 * hpread.c (hpread_type_lookup): Fix compilation failure.
9596 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
9598 * NEWS: New port to S+core.
9599 * MAINTAINERS (Write After Approval, Responsible Maintainers):
9602 * Makefile.in: Add dependencies for S+core files.
9603 * configure.tgt (score*, score-*-*): Add S+core target.
9604 * config/score/embed.mt: New file.
9605 * score-tdep.c: New file.
9606 * score-tdep.h: New file.
9608 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9610 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
9611 the appropriate type rather than a bogus void type.
9613 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9615 * ada-lang.h (ada_find_printable_frame): Remove.
9616 (ada_exception_catchpoint_p, ada_decode_exception_location)
9617 (ada_decode_assert_location): Add declaration.
9618 * ada-lang.c: Add include of annotate.h and valprint.h.
9619 (exception_catchpoint_kind): New enum.
9620 (function_name_from_pc, is_known_support_routine)
9621 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
9622 (ada_exception_name_addr_1, ada_exception_name_addr)
9623 (print_it_exception, print_one_exception, print_mention_exception)
9624 (print_it_catch_exception, print_one_catch_exception)
9625 (print_mention_catch_exception, catch_exception_breakpoint_ops)
9626 (print_it_catch_exception_unhandled)
9627 (print_one_catch_exception_unhandled)
9628 (print_mention_catch_exception_unhandled, print_it_catch_assert)
9629 (print_one_catch_assert, print_mention_catch_assert)
9630 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
9631 (ada_get_next_arg, catch_ada_exception_command_split)
9632 (ada_exception_sym_name, ada_exception_sym_name)
9633 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
9634 (ada_parse_catchpoint_condition, ada_exception_sal)
9635 (ada_decode_exception_location)
9636 (ada_decode_assert_location): New function.
9637 (catch_exception_unhandled_breakpoint_ops): New global variable.
9638 (catch_assert_breakpoint_ops): New global variable.
9639 * breakpoint.c: Add include of ada-lang.h.
9640 (print_one_breakpoint): Do not print the condition for Ada
9641 exception catchpoints.
9642 (create_ada_exception_breakpoint): New function.
9643 (catch_ada_exception_command, catch_assert_command): New function.
9644 (catch_command_1): Add support for the new "catch exception" and
9645 "catch assert" commands.
9646 (_initialize_breakpoint): Add help description for the new catch
9648 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
9650 (breakpoint.o): Add dependency on ada-lang.h.
9652 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
9654 * coffread.c (cs_to_section): If bfd_section is found, always
9655 return its section index.
9656 (coff_symtab_read): Determine the minimal_symbol_type using the
9659 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9660 Daniel Jacobowitz <dan@codesourcery.com>
9662 * Makefile.in (top.o): Update.
9663 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
9664 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
9665 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
9667 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
9669 2007-01-03 Mark Kettenis <kettenis@gnu.org>
9671 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
9672 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
9674 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
9676 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
9677 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
9678 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
9679 greater than or equal to zero.
9680 * m2-typeprint.c (m2_array): Likewise.
9681 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
9682 * gdbtypes.c (copy_type_recursive): Correct == typo.
9683 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
9684 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
9686 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
9687 (default_macro_scope): Remove unused variable.
9688 * prologue-value.h (pv_area_find_reg): Don't name an argument
9690 * remote-fileio.c (remote_fio_func_map): Add missing braces.
9691 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
9693 (cleanup_sigint_signal_handler): Remove casts.
9694 * valprint.c (val_print): Use a volatile local for the modified
9696 * varobj.c (languages): Remove extra array dimension.
9697 (varobj_create): Correct access to languages array.
9698 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
9700 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
9701 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
9702 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
9703 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
9704 (mi_cmd_data_write_memory): Likewise.
9705 * signals/signals.c (target_signal_to_string): Cast to int before
9707 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
9710 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
9712 * NEWS: Mention pointer to member improvements.
9713 * Makefile.in (gnu-v3-abi.o): Delete special rule.
9714 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
9715 * ada-valprint.c (ada_print_scalar): Update for new type codes.
9716 * c-typeprint.c (c_print_type): Update for new type codes.
9717 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
9718 (c_type_print_base): Likewise.
9719 (c_type_print_args): Rewrite.
9720 * c-valprint.c (c_val_print): Update for new type codes. Remove
9721 support for references to members. Treat methods like functions.
9722 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
9723 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
9724 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
9725 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
9726 (struct cp_abi_ops): Add corresponding members.
9727 * cp-valprint.c (cp_print_class_method): Delete.
9728 (cp_find_class_member): New function.
9729 (cp_print_class_member): Use it. Simplify support for bogus
9731 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
9732 lookup_methodptr_type.
9733 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
9734 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
9735 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
9737 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
9738 references returned by user defined operators.
9739 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
9740 (f_type_print_varspec_suffix): Remove support for member pointers.
9741 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
9743 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
9744 (lookup_methodptr_type): New.
9745 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
9746 (recursive_dump_type): Update for new types.
9747 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
9748 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
9749 (lookup_memberptr_type, lookup_methodptr_type)
9750 (smash_to_memberptr_type): New prototypes.
9751 (smash_to_method_type): Formatting fix.
9752 (lookup_member_type, smash_to_member_type): Delete prototypes.
9753 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
9754 Do not rely on debug information for the vptr or the method's
9755 enclosing type. Handle function descriptors for IA64.
9756 (gnuv3_virtual_fn_field): Rewrite using the new functions.
9757 (gnuv3_find_method_in, gnuv3_print_method_ptr)
9758 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
9759 (gnuv3_method_ptr_to_value): New.
9760 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
9761 * hpread.c (hpread_type_lookup): Update for new types.
9762 * infcall.c (value_arg_coerce): Likewise.
9763 * m2-typeprint.c (m2_print_type): Remove explicit support
9764 for member pointers.
9765 * m2-valprint.c (m2_val_print): Likewise.
9766 * p-typeprint.c (pascal_type_print_varspec_prefix)
9767 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
9768 * p-valprint.c (pascal_val_print): Likewise.
9769 (pascal_object_print_class_method, pascal_object_print_class_member):
9771 * p-lang.h (pascal_object_print_class_method)
9772 (pascal_object_print_class_member): Delete prototypes.
9773 * stabsread.c (read_type): Update for new types.
9774 * typeprint.c (print_type_scalar): Likewise.
9775 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
9776 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
9777 argument. Construct a pointer to member if the address of a
9778 function or data member is requested.
9779 (value_cast_pointers): Don't modify the input value.
9780 (value_cast): Adjust pointer to member handling for new types.
9781 Allow null pointer to member constants. Don't modify the input
9783 (value_ind): Remove pointer to member check. Handle function
9784 descriptors for function pointers.
9785 (value_struct_elt, value_find_oload_method_list, check_field):
9786 Remove pointer to member checks.
9787 * value.c (unpack_long): Allow pointers to data members.
9788 (value_from_longest): Allow member pointers.
9789 * value.h (value_aggregate_elt): Add want_address.
9790 * varobj.c (c_variable_editable): Remove check for members.
9791 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
9792 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
9794 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
9795 * c-lang.h (cp_print_class_method): Delete prototype.
9796 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
9797 * mips-tdep.c (mips_gdbarch_init): Likewise.
9798 * gdbarch.c, gdbarch.h: Regenerated.
9800 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9802 * rs6000-tdep.c (rs6000_use_struct_convention)
9803 (rs6000_extract_return_value, rs6000_store_return_value)
9804 (rs6000_extract_struct_value_address): Remove.
9805 (rs6000_return_value): New function.
9806 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
9807 store_return_value, deprecated_extract_struct_value_address and
9808 deprecated_use_struct_convention. Use rs6000_return_value
9811 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
9813 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
9814 -display-disable, -display-enable, -display-insert and
9817 2007-01-01 Joel Brobecker <brobecker@adacore.com>
9819 * breakpoint.c (remove_breakpoint): Remove dead code.
9821 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
9823 * varobj.c: Include block.h.
9824 (c_value_of_root): Check scope within nested statements.
9826 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9828 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
9829 regcache_cooked_write_signed instead of
9830 deprecated_write_register_bytes.
9832 2007-01-01 Joel Brobecker <brobecker@adacore.com>
9834 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
9836 2007-01-01 Joel Brobecker <brobecker@adacore.com>
9838 Followed the Start of New Year Procedure:
9839 * ChangeLog-2006: New file, containing all the entries for 2006.
9840 * ChangeLog: Removed all 2006 entries, and changed the reference
9841 to the previous ChangeLog to point to ChangeLog 2006.
9842 * top.c (print_gdb_version): Update copyright year.
9844 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9846 * Makefile.in (remote-sds.o): Remove.
9847 * remote-sds.c: Delete.
9849 For older changes see ChangeLog-2006.
9855 version-control: never