1 2007-11-19 Markus Deuling <deuling@de.ibm.com>
3 * gdbarch.sh (register_sim_regno): Add gdbarch as parameter.
4 * gdbarch.{c,h}: Regenerate.
6 * arch-utils.h (legacy_register_sim_regno): Add gdbarch as parameter.
7 * score-tdep.c (score_register_sim_regno): Likewise.
8 * sim-regno.h (one2one_register_sim_regno): Likewise.
10 * arch-utils.c (legacy_register_sim_regno): Add gdbarch as parameter.
11 Replace current_gdbarch by gdbarch.
12 * sh-tdep.c (sh_sh2a_register_sim_regno)
13 (sh_dsp_register_sim_regno): Likewise.
14 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
15 * mips-tdep.c (mips_register_sim_regno): Likewise.
16 * m32c-tdep.c (m32c_register_sim_regno): Likewise.
17 * frv-tdep.c (frv_register_sim_regno): Likewise.
18 * arm-tdep.c (arm_register_sim_regno): Likewise.
19 * remote-sim.c (one2one_register_sim_regno): Likewise.
21 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
23 * configure.ac (--enable-targets): New configure option.
24 Collect gdb_target_obs of multiple targets into TARGET_OBS.
25 Call configure.tgt multiple times, using $targ as operand.
26 * configure.tgt: Operate on $targ instead of $target.
27 * configure: Regenerate.
28 * Makefile.in (ALL_TARGET_OBS): Define.
30 * NEWS: Mention --enable-targets option.
32 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
34 * mips-tdep.c (show_mipsfpu_command): Do not crash if called when
35 current architecture is not MIPS.
37 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
39 * cli/cli-setshow.c (do_setshow_command): Use dynamically sized buffer
40 to construct error message if no argument was supplied.
42 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
44 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Remove.
45 (i386nbsd_aout_regset_from_core_section): Likewise.
46 (i386nbsd_aout_init_abi): Likewise.
47 (_initialize_i386nbsd_tdep): Do not register i386nbsd_aout_init_abi.
49 * vaxnbsd-tdep.c (vaxnbsd_aout_init_abi): Remove.
50 (_initialize_vaxnbsd_tdep): Do not register vaxnbsd_aout_init_abi.
52 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
54 * amd64fsdb-tdep.c (amd64fbsd_sigtramp_start_addr): Use ULL suffix.
55 (amd64fbsd_sigtramp_end_addr): Likewise.
57 * iq2000-tdep.c (iq2000_pointer_to_address): Fix argument type.
58 (iq2000_address_to_pointer): Likewise.
59 (iq2000_frame_prev_register): Likewise.
60 (iq2000_extract_return_value): Use regcache_cooked_read_unsigned
61 instead of regcache_cooked_read into CORE_ADDR variable.
62 (iq2000_return_value): Fix argument types.
64 * m32r-rom.c (m32r_load_section): Fix printf argument type.
65 (m32r_load): Likewise.
67 * m68kbsd-tdep.c: Include "gdbtypes.h".
68 * Makefile.in: Update dependencies.
70 * mn10300-tdep.c (mn10300_frame_unwind_cache): Fix aliasing violation.
72 * nto-tdep.c (LM_ADDR): Do not refer to no-longer-existing
73 lmo->l_addr_size element.
75 * remote-m32r-sdi.c (m32r_xfer_memory): Use paddr to print address.
76 (m32r_insert_breakpoint): Likewise.
77 (m32r_remove_breakpoint): Likewise.
78 (m32r_insert_watchpoint): Likewise.
79 (m32r_remove_watchpoint): Likewise.
80 (m32r_load): Fix printf argument type.
82 * xtensa-tdep.c (xtensa_regset_from_core_section): Fix printf
84 (xtensa_frame_this_id): Do not cast pointers to "int" for output.
85 (xtensa_frame_prev_register): Likewise.
86 (xtensa_push_dummy_call): Likewise.
88 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
90 * config/alpha/alpha-linux.mt: Remove file.
91 * config/alpha/alpha.mt: Remove file.
92 * config/alpha/alpha-osf1.mt: Remove file.
93 * config/alpha/fbsd.mt: Remove file.
94 * config/alpha/nbsd.mt: Remove file.
95 * config/alpha/obsd.mt: Remove file.
96 * config/arm/embed.mt: Remove file.
97 * config/arm/linux.mt: Remove file.
98 * config/arm/nbsd.mt: Remove file.
99 * config/arm/obsd.mt: Remove file.
100 * config/arm/wince.mt: Remove file.
101 * config/avr/avr.mt: Remove file.
102 * config/cris/cris.mt: Remove file.
103 * config/frv/frv.mt: Remove file.
104 * config/h8300/h8300.mt: Remove file.
105 * config/i386/cygwin.mt: Remove file.
106 * config/i386/fbsd64.mt: Remove file.
107 * config/i386/fbsd.mt: Remove file.
108 * config/i386/i386gnu.mt: Remove file.
109 * config/i386/i386.mt: Remove file.
110 * config/i386/i386sol2.mt: Remove file.
111 * config/i386/linux64.mt: Remove file.
112 * config/i386/linux.mt: Remove file.
113 * config/i386/mingw.mt: Remove file.
114 * config/i386/nbsd64.mt: Remove file.
115 * config/i386/nbsd.mt: Remove file.
116 * config/i386/nto.mt: Remove file.
117 * config/i386/obsd64.mt: Remove file.
118 * config/i386/obsd.mt: Remove file.
119 * config/i386/sol2-64.mt: Remove file.
120 * config/ia64/ia64.mt: Remove file.
121 * config/ia64/linux.mt: Remove file.
122 * config/iq2000/iq2000.mt: Remove file.
123 * config/m32c/m32c.mt: Remove file.
124 * config/m32r/linux.mt: Remove file.
125 * config/m32r/m32r.mt: Remove file.
126 * config/m68hc11/m68hc11.mt: Remove file.
127 * config/m68k/linux.mt: Remove file.
128 * config/m68k/monitor.mt: Remove file.
129 * config/m68k/nbsd.mt: Remove file.
130 * config/m68k/obsd.mt: Remove file.
131 * config/m88k/obsd.mt: Remove file.
132 * config/mep/mep.mt: Remove file.
133 * config/mips/embed.mt: Remove file.
134 * config/mips/irix5.mt: Remove file.
135 * config/mips/irix6.mt: Remove file.
136 * config/mips/linux.mt: Remove file.
137 * config/mips/nbsd.mt: Remove file.
138 * config/mips/obsd64.mt: Remove file.
139 * config/mn10300/linux.mt: Remove file.
140 * config/mn10300/mn10300.mt: Remove file.
141 * config/mt/mt.mt: Remove file.
142 * config/pa/hppahpux.mt: Remove file.
143 * config/pa/hppa.mt: Remove file.
144 * config/pa/linux.mt: Remove file.
145 * config/pa/obsd.mt: Remove file.
146 * config/powerpc/aix.mt: Remove file.
147 * config/powerpc/linux.mt: Remove file.
148 * config/powerpc/nbsd.mt: Remove file.
149 * config/powerpc/obsd.mt: Remove file.
150 * config/powerpc/ppc-eabi.mt: Remove file.
151 * config/s390/s390.mt: Remove file.
152 * config/score/embed.mt: Remove file.
153 * config/sh/embed.mt: Remove file.
154 * config/sh/linux.mt: Remove file.
155 * config/sh/nbsd.mt: Remove file.
156 * config/sh/obsd.mt: Remove file.
157 * config/sh/sh64.mt: Remove file.
158 * config/sparc/embed.mt: Remove file.
159 * config/sparc/fbsd.mt: Remove file.
160 * config/sparc/linux64.mt: Remove file.
161 * config/sparc/linux.mt: Remove file.
162 * config/sparc/nbsd64.mt: Remove file.
163 * config/sparc/nbsd.mt: Remove file.
164 * config/sparc/obsd64.mt: Remove file.
165 * config/sparc/obsd.mt: Remove file.
166 * config/sparc/sol2-64.mt: Remove file.
167 * config/sparc/sol2.mt: Remove file.
168 * config/sparc/sparc64.mt: Remove file.
169 * config/sparc/sparc.mt: Remove file.
170 * config/spu/spu.mt: Remove file.
171 * config/v850/v850.mt: Remove file.
172 * config/vax/nbsd.mt: Remove file.
173 * config/vax/obsd.mt: Remove file.
174 * config/vax/vax.mt: Remove file.
175 * config/xstormy16/xstormy16.mt: Remove file.
176 * config/xtensa/xtensa.mt: Remove file.
178 * configure.tgt (gdb_target_cpu): Remove. Do not set anywhere.
179 (gdb_target): Likewise.
180 (gdb_target_obs): Document. Set for every target to contents
181 of TDEPFILES in former .mt makefile fragment.
183 * configure.ac (TARGET_OBS): Define.
184 (target_makefile_frag, gdb_target_cpu): Do not define.
185 * configure: Regenerate.
187 * Makefile.in (MT_FLAGS): Remove.
188 (GLOBAL_CFLAGS): Update.
189 (TARGET_OBS): Substitute from configure.
190 (DEPFILES): Remove TDEPFILES, add TARGET_OBS.
191 (@target_makefile_frag@): Remove.
193 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
195 * config/arm/embed.mt (SIM_OBS, SIM): Remove.
196 * config/avr/avr.mt (SIM_OBS, SIM): Remove.
197 * config/frv/frv.mt (SIM_OBS, SIM): Remove.
198 * config/h8300/h8300.mt (SIM_OBS, SIM): Remove.
199 * config/iq2000/iq2000.mt (SIM_OBS, SIM): Remove.
200 * config/m32c/m32c.mt (SIM_OBS, SIM): Remove.
201 * config/m32r/linux.mt (SIM_OBS, SIM): Remove.
202 * config/m32r/m32r.mt (SIM_OBS, SIM): Remove.
203 * config/m68hc11/m68hc11.mt (SIM_OBS, SIM): Remove.
204 * config/mips/embed.mt (SIM_OBS, SIM): Remove.
205 * config/mips/linux.mt (SIM_OBS, SIM): Remove.
206 * config/mips/nbsd.mt (SIM_OBS, SIM): Remove.
207 * config/mn10300/mn10300.mt (SIM_OBS, SIM): Remove.
208 * config/powerpc/linux.mt (SIM_OBS, SIM): Remove.
209 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Remove.
210 * config/powerpc/ppc-sim.mt: Remove file.
211 * config/sh/embed.mt (SIM_OBS, SIM): Remove.
212 * config/sh/linux.mt (SIM_OBS, SIM): Remove.
213 * config/sh/nbsd.mt (SIM_OBS, SIM): Remove.
214 * config/sh/sh64.mt (SIM_OBS, SIM): Remove.
215 * config/sparc/embed.mt (SIM_OBS, SIM): Remove.
216 * config/v850/v850.mt (SIM_OBS, SIM): Remove.
217 * config/xstormy16/xstormy16.mt (SIM_OBS, SIM): Remove.
219 * configure.tgt (gdb_sim): Document variable.
220 (arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*): Set it.
223 (h8300-*-*): Likewise.
224 (iq2000-*-*): Likewise.
225 (m32c-*-*): Likewise.
226 (m32r*-*-linux*): Likewise.
227 (m32r*-*-*): Likewise.
228 (m68hc11*-*-*|m6811*-*-*): Likewise.
229 (mips*-*-*): Likewise.
230 (mips*-*-linux*): Likewise.
231 (mips*-*-netbsd* | mips*-*-knetbsd*-gnu): Likewise.
232 (mn10300-*-*): Likewise.
233 (powerpc-*-linux* | powerpc64-*-linux*): Likewise.
234 (powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu): Likewise.
235 (powerpc*-*-*): Use ppc-eabi target. Conditionally set gdb_sim.
237 (sh-*-linux*): Likewise.
238 (sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu): Likewise.
239 (sh64-*-elf*): Likewise.
240 (sparc-*-rtems*): Likewise.
241 (v850*-*-elf): Likewise.
242 (xstormy16-*-*): Likewise.
244 * configure.ac (IGNORE_SIM, IGNORE_SIM_OBS): Do not set.
245 (SIM, SIM_OBS): Set depending on ${ignore_sim} and ${gdb_sim}.
246 * configure: Regenerate.
247 * Makefile.in (SIM, SIM_OBS): Substitute from configure.
248 (@IGNORE_SIM@, @IGNORE_SIM_OBS@): Remove.
250 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
252 * configure.tgt (gdb_osabi, build_gdbserver): Comment variables.
253 (arm*-*-*): Do not set obsolete build_rdi_share variable.
255 (*-*-freebsd* | *-*-kfreebsd*-gnu): Remove generic case, replace by ...
256 (alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
257 (i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
258 (sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu): ... specific cases.
259 (x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu): Re-sort.
261 (xscale-*-*): Merge into arm*-*-* case.
262 (fido-*-elf*): Merge into m68*-*-elf* case.
263 (m68*-*-aout*, m68*-*-coff*, m68*-*-elf*, m68*-*-rtems*,
264 m68*-*-uclinux*): Merge cases.
265 (powerpc-*-linux*, powerpc64-*-linux*): Merge cases.
266 (sh-*-coff*, sh-*-elf*): Merge into sh* case.
268 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
270 * configure.tgt: Reformat main case statement.
272 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
274 * configure.ac (hostfile, targetfile): Remove.
275 (GDB_XM_FILE, GDB_TM_FILE): Do not define.
276 (xm_h, tm_h): Likewise.
277 (DEPRECATED_TM_FILE, XM_FILE): Do not substitute into Makefile.
278 * configure, config.in: Regenerate.
280 * Makefile.in (xm_h, tm_h): Remove. Update dependencies.
281 (TAGS): Do not consider DEPRECATED_TM_FILE or XM_FILE.
282 (clean, local-maintainer-clean): Do not remove xm.h or tm.h.
283 * defs.h: Do not include "xm.h" or "tm.h".
285 * gdbarch.sh (verify_gdbarch): Do not dump GDB_XM_FILE or GDB_TM_FILE.
286 * gdbarch.c: Regenerate.
288 * config/score/embed.mt: Remove obsolete comment.
290 2007-11-16 Markus Deuling <deuling@de.ibm.com>
292 * gdbarch.sh (cannot_fetch_register, cannot_store_register): Add gdbarch
294 * gdbarch.{c,h}: Regenerate.
296 * alpha-tdep.c (alpha_cannot_fetch_register)
297 (alpha_cannot_store_register): Add gdbarch as parameter. Replace
298 current_gdbarch by gdbarch.
299 * cris-tdep.c (cris_cannot_fetch_register, cris_cannot_store_register)
300 (crisv32_cannot_fetch_register)
301 (crisv32_cannot_store_register): Likewise.
302 * arch-utils.c (cannot_register_not): Likewise.
303 * arch-utils.h (cannot_register_not): Likewise.
304 * hppa-tdep.c (hppa32_cannot_store_register)
305 (hppa32_cannot_store_register, hppa64_cannot_store_register)
306 (hppa64_cannot_fetch_register): Likewise.
307 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
308 (mipsnbsd_cannot_store_register): Likewise.
310 2007-11-16 Markus Deuling <deuling@de.ibm.com>
312 * m32r-rom.c (m32r_supply_register): Use get_regcache_arch to get at
313 the current architecture by regcache.
314 * ppcnbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
315 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
316 (fetch_register, supply_vrregset, fetch_ppc_registers)
317 (store_altivec_register, store_spe_register, store_register)
318 (fill_vrregset, store_ppc_registers): Likewise.
319 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
320 * win32-nat.c (do_win32_fetch_inferior_registers)
321 (do_win32_store_inferior_registers): Likewise.
322 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
323 * remote-m32r-sdi.c (m32r_fetch_registers)
324 (m32r_store_registers): Likewise.
325 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
327 * trad-frame.c (trad_frame_alloc_saved_regs): Replace current_gdbarch by
329 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
330 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
331 (do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call)
332 (ppc64_sysv_abi_return_value): Likewise.
333 * m32c-tdep.c (m32c_register_reggroup_p): Likewise.
334 * m2-lang.c (build_m2_types): Likewise.
335 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache
336 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
337 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
338 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
340 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Use get_frame_arch to
341 get at the current architecture by frame_info.
342 * gcore.c (derive_stack_segment): Likewise.
344 * shnbsd-nat.c (GETREGS_SUPPLIES): Add gdbarch parameter.
345 (shnbsd_fetch_inferior_registers, shnbsd_store_inferior_registers): Add
346 gdbarch to GETREGS_SUPPLIES call.
348 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
350 * elfread.c (ST_REGULAR, ST_DYNAMIC, ST_SYNTHETIC): New defines.
351 (elf_symtab_read): Rename DYNAMIC argument to TYPE. Do not access
352 ELF-private symbol data when processing synthetic symbols. Use
353 udata.p to get at size of ppc64 synthetic 'dot' symbols.
354 (elf_symfile_read): Pass TYPE argument to elf_symtab_read.
356 2007-11-15 Doug Evans <dje@google.com>
358 * buildsym.h (subfiles): Move ...
359 * buildsym.c (subfiles): ... to here and make static.
361 * symmisc.c (maintenance_info_symtabs): Print linetable info.
363 2007-11-15 Markus Deuling <deuling@de.ibm.com>
365 * mipsnbsd-tdep.h (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove
367 2007-11-15 Markus Deuling <deuling@de.ibm.com>
369 * arm-tdep.c (arm_prologue_this_id): Replace LOWEST_PC by its
370 expression and use get_frame_arch to replace current_gdbarch by frame's
372 * arm-tdep.h (LOWEST_PC): Remove
374 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
376 Apply const qualifier to some users of bp_location.
377 * breakpoint.h (struct bpstats): Make
378 the breakpoint_at field point at const bp_location.
379 * breakpoint.c (bpstat_alloc): Accept const
381 (breakpoint_here_p, breakpoint_inserted_here_p)
382 (software_breakpoint_inserted_here_p)
383 (breakpoint_thread_match, bpstat_stop_status)
384 (read_memory_nobpt, bpstat_have_active_hw_watchpoints): Use
385 const bp_location for iteration.
386 (print_it_typical, print_bp_stop_message): Use
387 const bp_location variable.
389 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
391 Make mark_breakpoints_out static.
392 * breakpoint.h (mark_breakpoints_out): Remove
394 * breakpoint.c (mark_breakpoints_out): Make static.
396 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
398 Prevent clear_command from directly modifying breakpoint list.
399 * Makefile.in (breakpoint_h): Update dependency.
400 * breakpoint.c (clear_command): Do not remove
401 breakpoints from breakpoint_chain. Collect breakpoints
402 to delete in a vector.
403 * breakpoint.h (breakpoint_p): New typedef for pointer to
404 breakpoint. Register vector of breakpoint_p.
406 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
408 Remove 'run_cleanup'.
409 * defs.h (do_run_cleanups, make_run_cleanup): Remove
411 * infcmd.c (run_command_1): Call clear_solib instead
413 * jv-lang.c (java_rerun_cleanup): Remove, for lack of
415 * solib.c (solib_cleanup_queued, do_clear_solib): Remove.
416 (update_solib_lib): Don't setup run cleanup.
417 (no_shared_libraries): Call clear_solib, not do_clear_solib.
418 * utils.c (run_cleanup_chain, make_run_cleanup)
419 (do_run_cleanups): Remove.
421 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
423 Remove CLEAR_SOLIB use.
424 * corelow.c (core_close): Don't check for CLEAR_SOLIB.
425 * infcmd.c (attach_command): Likewise.
427 2007-11-14 Doug Evans <dje@google.com>
429 * buildsym.c (start_subfile,start_symtab): Doc fixes.
431 2007-11-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
433 * tui/tui-data.c (tui_prev_win): Guard against NULL.
435 2007-11-12 Markus Deuling <deuling@de.ibm.com>
437 * gdbarch.sh (gdbarch_alloc): Replace current_gdbarch by gdbarch. Remove
439 (verify_gdbarch, gdbarch_dump): Likewise.
440 (do_read): Update comment.
441 (addr_bit, bfd_arch_info, target_desc, long_long_bit, floatformat)
442 (ptr_bit, name_of_malloc): Replace current_gdbarch by gdbarch.
443 * gdbarch.{c,h}: Regenerate.
445 2007-11-12 Markus Deuling <deuling@de.ibm.com>
447 * xtensa-tdep.c (ARG_1ST): Replace ARGS_FIRST_REG by its expression.
448 (ARGS_FIRST_REG): Remove.
449 (areg_numer): New function.
450 (xtensa_pseudo_register_read, xtensa_frame_prev_register)
451 (xtensa_extract_return_value, xtensa_store_return_value)
452 (xtensa_frame_cache): Replace AREG_NUMBER by areg_number.
453 (AREG_NUMBER): Remove.
454 (XTENSA_IS_ENTRY, ARG_NOF, ARG_1ST): Add gdbarch as parameter.
455 (xtensa_frame_cache): Update use of XTENSA_IS_ENTRY.
456 (xtensa_push_dummy_call): Update use of ARG_NOF.
457 (extract_call_winsize): Add gdbarch as parameter. Replace
458 current_gdbarch by gdbarch.
459 (xtensa_extract_return_value, xtensa_store_return_value): Update call
460 of extract_call_winsize.
462 2007-11-10 Joel Brobecker <brobecker@adacore.com>
464 * NEWS: Add entry for new set/show print frame-args command.
466 2007-11-09 Kevin Buettner <kevinb@redhat.com>
468 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add missing
469 register number to map. Adjust warning check and error/warning
470 return value code to match expectations of this function's callers.
472 2007-11-09 Joel Brobecker <brobecker@adacore.com>
474 * stack.c (print_this_frame_argument_p): Handle arguments passed
475 by reference properly.
477 2007-11-09 Joel Brobecker <brobecker@adacore.com>
479 * stack.c (print_frame_arguments_choices): New static global.
480 (print_frame_arguments): Likewise.
481 (print_this_frame_argument_p): New function.
482 (print_frame_args): Print the argument value only when appropriate.
483 (_initialize_task): Add new "set/show print frame-arguments" command.
485 2007-11-09 Luis Machado <luisgpm@br.ibm.com>
487 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move
488 saved_dabr_value assignment to the correct position.
490 2007-11-09 Markus Deuling <deuling@de.ibm.com>
492 * arch-utils.c (generic_convert_register_p): Add gdbarch as parameter.
493 * arch-utils.h (generic_convert_register_p): Likewise.
495 2007-11-09 Markus Deuling <deuling@de.ibm.com>
497 * gdbarch.sh (convert_register_p): Add gdbarch as parameter.
498 * ia64-tdep.c (ia64_convert_register_p): Likewise.
499 * i387-tdep.c (i387_convert_register_p): Likewise.
500 * i387-tdep.h (i387_convert_register_p): Likewise.
501 * alpha-tdep.c (alpha_convert_register_p): Likewise.
502 * gdbarch.{c,h}: Regenerate.
504 * rs6000-tdep.c (rs6000_convert_register_p): Add gdbarch as parameter.
505 Replace current_gdbarch by gdbarch.
506 * mips-tdep.c (mips_convert_register_p): Likewise.
507 * m68k-tdep.c (m68k_convert_register_p): Likewise.
508 * i386-tdep.c (i386_convert_register_p): Likewise.
510 2007-11-08 Aleksandar Ristovski <aristovski@qnx.com>
512 * gdb_string.h: Include <strings.h>.
514 2007-11-08 Vladimir Prus <vladimir@codesourcery.com>
516 * breakpoint.c (break_command_1): Remove
517 pending_bp parameter.
518 (create_breakpoint): Likewise.
519 (create_breakpoints): Likewise. Adjust call to
521 (break_command_1): Likewise. Adjust call to
523 (do_captured_breakpoint): Adjust call to
525 (break_command, tbreak_command, hbreak_command)
526 (stopin_command, stopat_command): Adjust call
529 2007-11-07 Joseph Myers <joseph@codesourcery.com>
530 Daniel Jacobowitz <dan@codesourcery.com>
532 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Right-align
533 struct values smaller than one doubleword; left-align those
534 larger. Pass structs containing a single floating-point value in
537 2007-11-07 Joseph Myers <joseph@codesourcery.com>
538 Daniel Jacobowitz <dan@codesourcery.com>
540 * gdbtypes.c (floatformats_ibm_long_double): New.
541 * gdbtypes.h (floatformats_ibm_long_double): Declare.
542 * ia64-tdep.c (floatformat_ia64_ext): Update for addition of
544 * mips-tdep.c (n32n64_floatformat_always_valid,
545 floatformat_n32n64_long_double_big, floatformats_n32n64_long):
547 (mips_gdbarch_init): Use floatformats_ibm_long_double instead of
548 floatformats_n32n64_long.
549 * ppc-linux-tdep.c (ppc_linux_init_abi): Use 128-bit IBM long
551 * doublest.c (convert_floatformat_to_doublest,
552 convert_doublest_to_floatformat): Handle split floating-point
554 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle IBM long
556 (ppc64_sysv_abi_push_dummy_call): Likewise.
557 (do_ppc_sysv_return_value): Handle IBM long double return.
559 2007-11-07 Vladimir Prus <vladimir@codesourcery.com>
561 Fix crash when a variable object being deleted
562 has any of its children deleted previously.
564 * varobj.c (delete_variable_1): Don't recurse
565 into deleted children.
567 2007-11-07 Markus Deuling <deuling@de.ibm.com>
569 * gdbarch.sh (legacy_virtual_frame_pointer): Add gdbarch parameter.
570 * gdbarch.{c,h}: Regenerate.
571 * arch-utils.c (legacy_virtual_frame_pointer): Add gdbarch parameter.
572 Replace current_gdbarch by gdbarch.
573 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
574 * mips-tdep.c (mips_virtual_frame_pointer): Likewise.
575 * spu-tdep.c (spu_virtual_frame_pointer): Likewise.
577 2007-11-07 Markus Deuling <deuling@de.ibm.com>
579 * shnbsd-tdep.c (shnbsd_supply_gregset, shnbsd_collect_gregset): Use
580 get_regcache_arch to get at the current architecture by regcache.
581 * xstormy16-tdep.c (xstormy16_frame_prev_register): Use get_frame_arch
582 to get at the current architecture by frame_info.
583 * fbsd-nat.c (fbsd_make_corefile_notes): Use get_regcache_arch to get
584 at the current architecture by regcache.
585 * gnu-v3-abi.c (gnuv3_skip_trampoline): Use get_frame_arch to get at
586 the current architecture by frame_info.
587 (build_gdb_vtable_type): Replace current_gdbarch by gdbarch.
588 * aix-thread.c (special_register_p): Add gdbarch as parameter.
589 (fetch_regs_kernel_thread, store_regs_kernel_thread): Add gdbarch to
590 caller of special_register_p.
592 2007-11-07 Markus Deuling <deuling@de.ibm.com>
594 * infcall.c (call_function_by_hand): Use get_frame_arch to get at the
595 current architecture by frame_info.
597 2007-11-07 Markus Deuling <deuling@de.ibm.com>
599 * xtensa-tdep.h (SIZEOF_GREGSET, XTENSA_ELF_NGREG) Remove.
601 2007-11-07 Markus Deuling <deuling@de.ibm.com>
603 * s390-nat.c (supply_gregset, fill_gregset): Use get_regcache_arch to
604 get at the current architecture by regcache.
605 (SUBOFF): Add gdbarch to macro definition.
607 2007-11-07 Markus Deuling <deuling@de.ibm.com>
609 * gdbarch.sh (breakpoint_from_pc): Add gdbarch parameter.
610 * gdbarch.{c,h}: Regenerate.
612 * xtensa-tdep.c (xtensa_breakpoint_from_pc): Add gdbarch parameter.
613 Replace current_gdbarch by gdbarch.
614 * sh-tdep.c (sh_breakpoint_from_pc): Likewise.
615 * sh64-tdep.c (sh64_breakpoint_from_pc): Likewise.
616 * score-tdep.c (score_breakpoint_from_pc): Likewise.
617 * mips-tdep.c (mips_breakpoint_from_pc): Likewise.
618 * m32r-tdep.c (m32r_breakpoint_from_pc): Likewise.
619 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
620 * arm-tdep.c (arm_breakpoint_from_pc): Likewise.
622 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Add gdbarch
624 * vax-tdep.c (vax_breakpoint_from_pc): Likewise.
625 * v850-tdep.c (v850_breakpoint_from_pc): Likewise.
626 * spu-tdep.c (spu_breakpoint_from_pc): Likewise.
627 * sparc-tdep.c (sparc_breakpoint_from_pc): Likewise.
628 * s390-tdep.c (s390_breakpoint_from_pc): Likewise.
629 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Likewise.
630 * mt-tdep.c (mt_breakpoint_from_pc): Likewise.
631 * mep-tdep.c (mep_breakpoint_from_pc): Likewise.
632 * m88k-tdep.c (m88k_breakpoint_from_pc): Likewise.
633 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Likewise.
634 * m32c-tdep.c (m32c_breakpoint_from_pc): Likewise.
635 * ia64-tdep.c (ia64_breakpoint_from_pc): Likewise.
636 * i386-tdep.c (i386_breakpoint_from_pc): Likewise.
637 * hppa-tdep.c (hppa_breakpoint_from_pc): Likewise.
638 * h8300-tdep.c (h8300_breakpoint_from_pc): Likewise.
639 * frv-tdep.c (frv_breakpoint_from_pc): Likewise.
640 * cris-tdep.c (cris_breakpoint_from_pc): Likewise.
641 * avr-tdep.c (avr_breakpoint_from_pc): Likewise.
642 * alpha-tdep.c (alpha_breakpoint_from_pc): Likewise.
643 * m68k-tdep.c (m68k_local_breakpoint_from_pc): Likewise.
645 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Add gdbarch parameter.
646 Replace current_gdbarch by gdbarch.
647 (rs6000_software_single_step): Use get_frame_arch to get at the
648 current architecture by frame_info. Add gdbarch to
649 rs6000_breakpoint_from_pc call.
651 2007-11-07 Markus Deuling <deuling@de.ibm.com>
653 * frv-tdep.c (frv_register_name, frv_check_watch_resources): Replace
654 macro CURRENT_VARIANT by its expression.
655 (CURRENT_VARIANT): Remove.
656 (frv_check_watch_resources): Add gdbarch parameter.
658 2007-11-07 Markus Deuling <deuling@de.ibm.com>
660 * MAINTAINERS (Write After Approval): Add self.
662 2007-11-05 Ulrich Weigand <uweigand@de.ibm.com>
664 * features/rs6000/power-core.xml: Use uint32 as register type.
665 * features/rs6000/power64-core.xml: Use uint64/uint32 as register type.
666 * features/rs6000/powerpc-32.c: Regenerate.
667 * features/rs6000/powerpc-403.c: Regenerate.
668 * features/rs6000/powerpc-403gc.c: Regenerate.
669 * features/rs6000/powerpc-505.c: Regenerate.
670 * features/rs6000/powerpc-602.c: Regenerate.
671 * features/rs6000/powerpc-603.c: Regenerate.
672 * features/rs6000/powerpc-604.c: Regenerate.
673 * features/rs6000/powerpc-64.c: Regenerate.
674 * features/rs6000/powerpc-7400.c: Regenerate.
675 * features/rs6000/powerpc-750.c: Regenerate.
676 * features/rs6000/powerpc-860.c: Regenerate.
677 * features/rs6000/powerpc-e500.c: Regenerate.
679 2007-11-05 Joel Brobecker <brobecker@adacore.com>
681 * breakpoint.c (set_raw_breakpoint_without_location): Make static.
683 2007-11-05 Joel Brobecker <brobecker@adacore.com>
685 * breakpoint.h (create_solib_load_event_breakpoint)
686 (create_solib_unload_event_breakpoint)
687 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
688 (create_exec_event_catchpoint): Delete declaration.
689 * breakpoint.c (create_solib_load_event_breakpoint)
690 (solib_load_unload_1, create_solib_unload_event_breakpoint): Delete.
691 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
692 (create_exec_event_catchpoint): Make static.
694 2007-11-05 Joel Brobecker <brobecker@adacore.com>
696 * breakpoint.h (set_breakpoint_sal): Remove declaration.
697 * breakpoint.c (set_breakpoint_sal): Delete.
699 2007-11-05 Joel Brobecker <brobecker@adacore.com>
701 * buildsym.c (finish_block): Remove "#if 1"/"#endif" brackets.
702 (make_blockvector): Likewise. Remove FIXME comment.
704 2007-11-05 Luis Machado <luisgpm@br.ibm.com>
706 * printcmd.c: (printf_command): Add support for new DFP
707 modifiers %H, %D and %DD.
708 * configure.ac: Add check for DECFLOAT printf support.
709 * configure: Regenerated.
711 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
713 * gdbtypes.h (struct cplus_struct_type): Remove runtime_ptr member.
714 (TYPE_RUNTIME_PTR, TYPE_VTABLE, TYPE_HAS_VTABLE,
715 TYPE_PRIMARY_BASE, TYPE_VIRTUAL_BASE_LIST): Remove macros.
716 (HP_ACC_VFUNC_START, HP_ACC_VBASE_START, HP_ACC_TYPEINFO_OFFSET,
717 HP_ACC_TOP_OFFSET_OFFSET): Likewise.
718 (has_vtable, primary_base_class, virtual_base_list_length,
719 virtual_base_list_length_skip_primaries, virtual_base_index,
720 virtual_base_index_skip_primaries, class_index_in_primary_list,
721 count_virtual_fns): Remove prototypes.
722 * gdbtypes.c (has_vtable, primary_base_class, current_vbase_list,
723 virtual_base_list_aux, virtual_base_list, virtual_base_list_length,
724 virtual_base_list_length_skip_primaries, virtual_base_index,
725 virtual_base_index_skip_primaries, class_index_in_primary_list,
726 count_virtual_fns): Remove.
728 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Remove.
729 (hpacc_vtbl_ptr_name, hpacc_vtbl_ptr_type_name): Remove.
730 (cp_print_value_fields): Remove support for HP aCC vtables.
731 (cp_print_value): Likewise.
732 * c-typeprint.c (c_type_print_base): Likewise.
734 * value.h (find_rt_vbase_offset): Remove prototype.
735 * valops.c (find_rt_vbase_offset): Remove.
736 (search_struct_method): Remove support for HP aCC vtables.
737 (find_method_list): Likewise.
739 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
741 * language.h (struct language_defn): Remove la_builtin_type_vector
742 and string_char_type members.
743 * language.c (language_string_char_type): No longer consult
744 la->string_char_type.
745 (language_lookup_primitive_type_by_name): No longer consult
746 current_language->la_builtin_type_vector.
748 * language.c (unknown_language_defn, auto_language_defn,
749 local_language_defn): Adapt initializer.
750 * ada-lang.c (ada_language_defn): Likewise.
751 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn,
752 minimal_language_defn): Likewise.
753 * f-lang.c (f_language_defn): Likewise.
754 * jv-lang.c (java_language_defn): Likewise.
755 * m2-lang.c (m2_language_defn): Likewise.
756 * objc-lang.c (objc_language_defn): Likewise.
757 * p-lang.c (pascal_language_defn): Likewise.
758 * scm-lang.c (scm_language_defn): Likewise.
760 2007-11-02 Markus Deuling <deuling@de.ibm.com>
762 * frame.c (frame_id_inner): Add gdbarch parameter. Replace
763 current_gdbarch by gdbarch.
764 (frame_find_by_id, get_prev_frame_1): Use get_frame_arch to get at the
765 current architecture by frame_info.
766 * frame.h (frame_id_inner): Add gdbarch parameter.
767 * stack.c (return_command): Use get_frame_arch to get at the current
768 architecture by frame_info. Update call of frame_id_inner.
769 * infrun.c (handle_inferior_event): Likewise.
770 * dummy-frame.c (dummy_frame_push): Use get_regcache_arch to get at the
771 current architecture by regcache. Update call of frame_id_inner.
773 2007-11-02 Markus Deuling <deuling@de.ibm.com>
775 * gdbarch.sh (register_name): Add gdbarch parameter.
776 * gdbarch.{c,h}: Regenerate.
778 * target-descriptions.c (tdesc_register_name): Add gdbarch parameter.
779 (tdesc_register_name): Replace current_gdbarch by gdbarch.
780 * target-descriptions.h (tdesc_register_name): Add gdbarch parameter.
782 * xstormy16-tdep.c (xstormy16_register_name): Add gdbarch parameter.
783 * vax-tdep.c (vax_register_name): Add gdbarch parameter.
784 * spu-tdep.c (spu_register_name): Add gdbarch parameter.
785 * s390-tdep.c (s390_register_name): Add gdbarch parameter.
786 * mt-tdep.c (mt_register_name): Add gdbarch parameter.
787 (mt_registers_info): Replace current_gdbarch by gdbarch.
788 (mt_register_reggroup_p): Add gdbarch to mt_register_name call.
789 * mips-tdep.c (mips_register_name): Add gdbarch parameter. Replace
790 current_gdbarch by gdbarch.
791 (mips_register_name): Add gdbarch to tdesc_register_name call.
792 * mep-tdep.c (mep_register_name): Add gdbarch parameter. Replace
793 current_gdbarch by gdbarch.
794 (mep_register_reggroup_p): Add gdbarch to mep_register_name call.
795 * m32c-tdep.c (m32c_register_name): Add gdbarch parameter. Replace
796 current_gdbarch by gdbarch.
797 * m88k-tdep.c (m88k_register_name): Add gdbarch parameter.
798 * m68k-tdep.c (m68k_register_name): Add gdbarch parameter.
799 * m32r-tdep.c (m32r_register_name): Add gdbarch parameter.
800 (m32r_frame_unwind_cache): Use get_frame_arch to get at the current
801 architecture by frame_info.
802 * iq2000-tdep.c (iq2000_register_name): Add gdbarch parameter.
803 * ia64-tdep.c (ia64_register_name): Add gdbarch parameter.
804 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Add gdbarch
806 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
807 (h8300sx_register_name): Add gdbarch parameter.
808 * cris-tdep.c (cris_register_name, crisv32_register_name): Add
809 gdbarch parameter. Replace current_gdbarch by gdbarch.
810 (cris_gdbarch_init): Replace current_gdbarch by gdbarch (comment).
811 * avr-tdep.c (avr_register_name): Add gdbarch parameter.
812 * arm-tdep.c (arm_register_name): Add gdbarch paramete
813 * amd64-tdep.c (amd64_register_name): Add gdbarch parameter. Update
815 * amd64-tdep.h (amd64_register_name): Add gdbarch parameter.
816 * amd64-linux-tdep.c (amd64_linux_register_name): Add gdbarch parameter.
817 * alpha-tdep.c (alpha_register_name): Add gdbarch parameter.
818 (alpha_cannot_fetch_register, alpha_cannot_store_register): Update call
819 of alpha_register_name.
820 * frv-tdep.c (frv_register_name): Add gdbarch parameter.
821 * i386-tdep.c (i386_register_name): Add gdbarch parameter. Replace
822 current_gdbarch by gdbarch.
823 (i386_register_type): Replace ?current_gdbarch by gdbarch.
824 * i386-tdep.h (i386_register_name): Add gdbarch parameter.
825 * i386-linux-tdep.c (i386_linux_register_name): Add gdbarch parameter.
827 * m68hc11-tdep.c (m68hc11_register_name): Add gdbarch parameter.
828 (m68hc11_register_reggroup_p): Add gdbarch to call of
829 m68hc11_register_name.
830 * mn10300-tdep.c (mn10300_generic_register_name, am33_register_name)
831 (am33_2_register_name): Add gdbarch parameter.
832 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
833 architecture by frame_info.
834 (mn10300_dump_tdep): Replace current_gdbarch by gdbarch.
835 * rs6000-tdep.c (rs6000_register_name): Add gdbarch parameter. Replace
836 current_gdbarch by gdbarch.
837 * score-tdep.c (score_register_name): Add gdbarch parameter.
838 (score_return_value, score_push_dummy_call): Replace current_gdbarch
840 * sh64-tdep.c (sh64_register_name): Add gdbarch parameter.
841 (sh64_compact_reg_base_num, sh64_register_convert_to_virtual)
842 (sh64_register_convert_to_raw, sh64_fv_reg_base_num)
843 (sh64_dr_reg_base_num, sh64_fpp_reg_base_num): Add gdbarch parameter
844 and update caller. Replace current_gdbarch by gdbarch.
845 (sh64_extract_return_value, sh64_store_return_value): Use
846 get_regcache_arch to get at the current architecture by regcache.
847 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
848 (sh_sh3e_register_name, sh_sh2e_register_name, sh_sh2a_register_name)
849 (sh_sh2a_nofpu_register_name, sh_sh_dsp_register_name)
850 (sh_sh3_dsp_register_name, sh_sh4_register_name)
851 (sh_sh4_nofpu_register_name, sh_sh4al_dsp_register_name): Add gdbarch
853 (fv_reg_base_num, dr_reg_base_num, sh_justify_value_in_reg)
854 (sh_next_flt_argreg): Add gdbarch parameter and update caller. Replace
855 current_gdbarch by gdbarch.
856 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Use
857 get_regcache_arch to get at the current architecture by regcache.
858 * sparc-tdep.c (sparc32_register_name): Add gdbarch parameter.
859 * sparc64-tdep.c (sparc64_register_name): Add gdbarch parameter.
860 * v850-tdep.c (v850_register_name, v850e_register_name): Add gdbarch
862 (v850_unwind_sp, v850_unwind_pc): Replace current_gdbarch by gdbarch.
863 * xtensa-tdep.c (xtensa_register_name): Add gdbarch parameter. Replace
864 current_gdbarch by gdbarch.
865 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
866 (xtensa_frame_prev_register): Add gdbarch parameter to
867 xtensa_register_name call.
869 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
871 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
872 find_solib_trampoline_target if PC is not in .plt section.
874 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
876 * elfread.c (elf_symtab_read): When constructing a solib trampoline
877 minimal symbol from an undefined dynamic symbol, use proper section.
879 2007-10-31 Markus Deuling <deuling@de.ibm.com>
881 * arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
882 to get at the current architecture by regcache.
884 2007-10-30 Markus Deuling <deuling@de.ibm.com>
886 * libunwind-frame.c (libunwind_frame_sniffer)
887 libunwind_frame_prev_register, libunwind_sigtramp_frame_sniffer)
888 (libunwind_frame_cache): Use get_frame_arch to get at the current
889 architecture by frame_info.
890 (libunwind_get_reg_special): Replace current_gdbarch by gdbarch.
892 2007-10-30 Markus Deuling <deuling@de.ibm.com>
894 * iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get
895 at the current architecture by frame_info.
897 2007-10-30 Markus Deuling <deuling@de.ibm.com>
899 * inf-child.c (inf_child_fetch_inferior_registers): Use
900 get_regcache_arch to get at the current architecture by regcache.
902 2007-10-30 Markus Deuling <deuling@de.ibm.com>
904 * inf-ptrace.c (inf_ptrace_fetch_registers)
905 (inf_ptrace_fetch_register, inf_ptrace_store_register)
906 (inf_ptrace_store_registers): Use get_regcache_arch to get at the
907 current architecture by regcache.
909 2007-10-30 Markus Deuling <deuling@de.ibm.com>
911 * hpux-thread.c (hpux_thread_fetch_registers)
912 (hpux_thread_store_registers): Use get_regcache_arch to get at the
913 current architecture by regcache.
915 2007-10-30 Markus Deuling <deuling@de.ibm.com>
917 * hppa-tdep.c (hppa_frame_cache): Use get_frame_arch to get at the
918 current architecture by frame_info.
920 2007-10-30 Markus Deuling <deuling@de.ibm.com>
922 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
923 (go32_store_registers): Use get_regcache_arch to get at the current
924 architecture by regcache.
926 2007-10-30 Markus Deuling <deuling@de.ibm.com>
928 * gdbtypes.c (gdbtypes_post_init): Replace current_gdbarch by gdbarch.
930 2007-10-30 Markus Deuling <deuling@de.ibm.com>
932 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Use get_frame_arch
933 to get at the current architecture by frame_info.
935 2007-10-30 Markus Deuling <deuling@de.ibm.com>
937 * f-lang.c (build_fortran_types): Replace current_gdbarch by gdbarch.
939 2007-10-30 Markus Deuling <deuling@de.ibm.com>
941 * core-regset.c (fetch_core_registers): Use get_regcache_arch to get at
942 the current architecture by regcache.
944 2007-10-30 Markus Deuling <deuling@de.ibm.com>
946 * corelow.c (get_core_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 * bsd-uthread.c (bsd_uthread_fetch_registers)
952 (bsd_uthread_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 * avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
958 get_frame_arch to get at the current architecture by frame_info.
960 2007-10-30 Markus Deuling <deuling@de.ibm.com>
962 * arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
964 2007-10-30 Markus Deuling <deuling@de.ibm.com>
966 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
967 (store_regs): Use get_regcache_arch to get at the current architecture
970 2007-10-30 Markus Deuling <deuling@de.ibm.com>
972 * arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
973 to get at the current architecture by regcache.
975 2007-10-30 Markus Deuling <deuling@de.ibm.com>
977 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
978 (alphabsd_store_inferior_registers): Use get_regcache_arch to get at
979 the current architecture by regcache.
981 2007-10-30 Markus Deuling <deuling@de.ibm.com>
983 * ada-lang.c (ada_language_arch_info): Replace current_gdbarch by
986 2007-10-30 Daniel Jacobowitz <dan@codesourcery.com>
988 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Check the selected
989 soft float and vector ABIs. Support the generic vector ABI for
991 (do_ppc_sysv_return_value): Likewise. Correct argument types and
993 (ppc64_sysv_abi_push_dummy_call): Assert that floating point is
995 * ppc-tdep.h (enum powerpc_vector_abi): New.
996 (struct gdbarch_tdep): Add soft_float and vector_abi.
997 * rs6000-tdep.c (setpowerpccmdlist, showpowerpccmdlist)
998 (powerpc_soft_float_global, powerpc_vector_strings)
999 (powerpc_vector_abi_global, powerpc_vector_abi_string): New.
1000 (rs6000_gdbarch_init): Check for soft-float and vector ABI markings.
1001 (set_powerpc_command, show_powerpc_command, powerpc_set_soft_float)
1002 (powerpc_set_vector_abi): New.
1003 (_initialize_rs6000_tdep): Register "set powerpc" and "show powerpc"
1005 * Makefile.in (elf_ppc_h): New.
1006 (rs6000-tdep.o): Update.
1008 2007-10-29 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1010 * ppc-linux-tdep.c (ppc32_linux_reg_offsets): Corrected
1011 swapped offsets and VRSAVE offset.
1012 (ppc64_linux_reg_offsets): Corrected swapped offsets.
1013 (ppc32_linux_vrregset): Added.
1014 (ppc_linux_regset_from_core_section): Added support for
1015 .reg-ppc-vmx section.
1016 * ppc-tdep.h (ppc_altivec_support_p): Declare.
1017 (ppc_supply_vrregset): Declare.
1018 (ppc_collect_vrregset): Declare.
1019 * rs6000-tdep.c (ppc_altivec_support_p): Added.
1020 (ppc_supply_vrregset): Added.
1021 (ppc_collect_vrregset): Added.
1022 * corelow.c (get_core_registers): Added support for
1023 .reg-ppc-vmx section.
1025 2007-10-29 Joel Brobecker <brobecker@adacore.com>
1029 2007-10-26 Jim Blandy <jimb@codesourcery.com>
1031 * ax-gdb.h (expr_to_address_and_size): Delete declaration for
1034 * tracepoint.c (tracepoint_operation): Report the deletion event
1035 after we have unlinked the tracepoint from the list, and use the
1036 proper tracepoint number.
1038 * ax-gdb.c (expr_to_agent): Delete unused function.
1039 (expr_to_address_and_size): Delete #if 0'd function.
1040 * ax-gdb.h (expr_to_agent): Delete declaration.
1042 * ax-gdb.c (gen_cast): Remove redundant assignment to
1043 value->type. Doc fix.
1045 * ax-general.c (gen_traced_pop, gen_int_literal)
1046 (gen_usual_arithmetic): Check for typedefs.
1048 2007-10-26 Joel Brobecker <brobecker@adacore.com>
1050 * parse.c (prefixify_expression): Minor reformatting.
1052 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1054 * version.in: Use dot instead of dash.
1056 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1058 * linux-thread-db.c (check_for_thread_db): Only print if info_verbose.
1060 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1062 * memory-map.c (parse_memory_map): Don't use an empty struct
1065 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1067 * signals/signals.c (signals): Update pointer to enum
1068 target_signal declaration.
1070 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1071 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1072 Jim Blandy <jimb@codesourcery.com>
1074 * dwarf2read.c (read_partial_die): check the value
1075 of DW_AT_calling_convention in Fortran programs.
1077 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1078 Thiago Jung Bauermann <bauerman@br.ibm.com>
1080 * c-exp.y (YYSTYPE): Add typed_val_decfloat for decimal
1081 floating point in YYSTYPE union.
1082 (DECFLOAT) Add token and expression element handling code.
1083 (parse_number): Parse DFP constants, which end with suffix 'df',
1084 'dd' or 'dl'. Return DECFLOAT.
1085 * eval.c (evaluate_subexp_standard): Call value_from_decfloat to
1087 * expression.h (enum exp_opcode): Add an opcode (OP_DECFLOAT)
1089 (union exp_element): Add decfloatconst to represent DFP
1090 elements, which is 16 bytes by default.
1091 * parse.c (write_exp_elt_decfloatcst): New function to write a
1092 decimal float const into the expression.
1093 (operator_length_standard): Set operator length for OP_DECFLOAT
1095 * parser-defs.h (write_exp_elt_decfloatcst): Prototype.
1096 * valarith.c (value_neg): Add code to handle the negation
1097 operation of DFP values.
1098 * value.c (value_from_decfloat): New function to get the value
1099 from a decimal floating point.
1100 * value.h (value_from_decfloat): Prototype.
1102 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1103 Thiago Jung Bauermann <bauerman@br.ibm.com>
1105 * c-lang.c (c_create_fundamental_type): Create fundamental
1107 * c-typeprint.c (c_type_print_varspec_prefix): Add
1108 TYPE_CODE_DECFLOAT to no prefix needed case.
1109 (c_type_print_varspec_suffix): Add TYPE_CODE_DECFLOAT to no
1111 * c-valprint.c (c_val_print): Call print_decimal_floating to
1113 * dwarf2read.c (read_base_type): Read DW_ATE_decimal_float
1114 attribute code and return TYPE_CODE_DECFLOAT.
1115 (dwarf_base_type): Set dwarf2_fundamental_type for DFP values.
1116 * gdbtypes.c (gdbtypes_post_init): Initialize builtin_decfloat,
1117 builtin_decdouble and builtin_declong.
1118 * gdbtypes.h (enum type_code): Add TYPE_CODE_DECFLOAT as a
1120 (FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT): New
1121 types, for decimal floating point.
1122 (FT_NUM_MEMBERS): Increment, new types added.
1123 (struct builtin_type): Add builtin_decfloat, builtin_decdouble
1124 and builtin_declong.
1125 * valprint.c (print_decimal_floating): New function to print DFP
1127 * value.h (print_decimal_floating): Prototype.
1129 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1130 Thiago Jung Bauermann <bauerman@br.ibm.com>
1132 * Makefile.in (LIBDECNUMBER_DIR, LIBDECNUMBER, LIBDECNUMBER_SRC
1133 LIBDECNUMBER_CFLAGS): New macros for libdecnumber.
1134 (INTERNAL_CFLAGS_BASE): Add LIBDECNUMBER_CFLAGS in.
1135 (INSTALLED_LIBS): Add -ldecnumber in.
1136 (CLIBS): Add LIBDECNUMBER in.
1137 (decimal128_h, decimal64_h, decimal32_h): New macros for decimal
1139 (dfp_h): New macros for decimal floating point.
1140 (dfp.o): New target.
1141 (COMMON_OBS): Add dfp.o in.
1142 (c-exp.o): Add dfp_h as dependency.
1143 (valprint.o): Add dfp_h as dependency.
1144 (value.o): Add dfp_h as dependency.
1145 * dfp.h: New header file for decimal floating point support in
1147 * dfp.c: New source file for decimal floating point support in
1148 GDB. Implement decimal_from_string and decimal_to_string based
1149 on libdecnumber API.
1150 * configure.ac: Add AC_C_BIGENDIAN test.
1151 * config.in, configure: Regenerate.
1153 2007-10-25 David Ung <davidu@mips.com>
1154 Maciej W. Rozycki <macro@mips.com>
1157 * infcmd.c (registers_info): Check for a user register before
1158 calling target's gdbarch_print_registers_info(). If found to be
1159 so, extract the implicit value of user register and call
1160 print_scalar_formatted().
1161 * Makefile.in: (infcmd.o): Add $(user_regs_h).
1163 2007-10-25 Joel Brobecker <brobecker@adacore.com>
1165 * NEWS: Document status of hppa64-hpux support.
1167 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1169 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1170 set_solib_ops to install SVR4 operations.
1171 (_initialize_svr4_solib): Do not set current_target_so_ops.
1173 * config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
1174 * config/i386/i386gnu.mt (TDEPFILES): ... to here.
1176 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1178 * solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1179 (solib_svr4_init): Initialize fetch_link_map_offsets to NULL.
1180 * solib-svr4.h (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1181 * solib-legacy.c: Remove file.
1183 * config/alpha/alpha-linux.mt (TDEPFILES): Remove solib-legacy.o.
1184 * config/arm/linux.mt (TDEPFILES): Likewise.
1185 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1186 * config/ia64/linux.mt (TDEPFILES): Likewise.
1187 * config/m32r/linux.mt (TDEPFILES): Likewise.
1188 * config/powerpc/linux.mt (TDEPFILES): Likewise.
1189 * config/s390/s390.mt (TDEPFILES): Likewise.
1191 * alpha-linux-tdep.c (alpha_linux_init_abi): Call
1192 set_solib_svr4_fetch_link_map_offsets.
1193 * i386gnu-tdep.c (i386gnu_init_abi): Likewise.
1194 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
1196 * i386gnu-tdep.c: Include "solib-svr4.h".
1197 * Makefile.in: Update dependencies.
1199 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1201 * i386-nto-tdep.c: Include "solib.h".
1202 (i386nto_init_abi): Use set_solib_ops instead of overwriting
1203 current_target_so_ops members.
1204 * solist.h (TARGET_SO_RELOCATE_SECTION_ADDRESSES): Remove.
1205 (TARGET_SO_FIND_AND_OPEN_SOLIB): Remove.
1206 (TARGET_SO_IN_DYNSYM_RESOLVE_CODE): Remove.
1207 * Makefile.in: Update dependencies.
1209 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1211 * arm-wince-tdep.c: Include "solib.h" and "solib-target.h".
1212 (arm_wince_init_abi): Call set_solib_ops.
1213 * i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
1214 (i386_cygwin_init_abi): Call set_solib_ops.
1215 * solib-target.c: Include "solib-target.h".
1216 (solib_target_so_ops): Make global.
1217 (_initialize_solib_target): Do not set current_target_so_ops.
1218 * solib-target.h: New file.
1219 * Makefile.in: Update dependencies.
1221 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1223 * mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
1224 (mips_irix_init_abi): Call set_solib_ops.
1225 * solib-irix.c: Include "solib.h" and "solib-irix.h".
1226 (irix_so_ops): Make global.
1227 (_initialize_irix_solib): Do not set current_target_so_ops.
1228 * solib-irix.h: New file.
1229 * Makefile.in: Update dependencies.
1231 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1233 * configure.tgt: Remove hppa*64*-*-hpux11* special case.
1234 * config/pa/hppa64.mt: Delete file.
1235 * config/pa/hppahpux.mt (MT_CFLAGS): Remove.
1236 (TDEPFILES): Move somread.o to ...
1237 * config/pa/hpux.mh (NATDEPFILES): ... here.
1239 * configure.ac: Add check for elf_hp.h header.
1240 Search libdl and libxpdl for dlgetmodinfo.
1241 * config.in, configure: Regenerate.
1242 * solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
1243 instead of #ifndef PA_SOM_ONLY. Include "solib.h".
1244 (pa64_solib_select): Take gdbarch instead of tdep argument. Call
1245 set_solib_ops instead of modifying current_target_so_ops.
1246 * solib-pa64.h (pa64_solib_select): Update prototype.
1247 * solib-som.c: Remove include of "som.h". Include "solib.h".
1248 (som_solib_select): Take gdbarch instead of tdep argument. Call
1249 set_solib_ops instead of modifying current_target_so_ops.
1250 * solib-som.h (som_solib_select): Update prototype.
1251 * hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
1252 of tdep to som_solib_select call.
1253 (hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
1254 pa64_solib_select call.
1255 * Makefile.in: Update dependencies.
1257 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1259 * frv-tdep.c: Include "solib.h".
1260 (frv_gdbarch_init): Call set_solib_ops.
1261 * frv-tdep.h (struct target_so_ops): Add forward reference.
1262 (frv_so_ops): Add extern declaration.
1263 * solib-frv.c (frv_so_ops): Make global.
1264 (_initialize_frv_solib): Do not set current_target_so_ops.
1265 * Makefile.in: Update dependencies.
1267 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1269 * solib.c (solib_global_lookup): Use solib_ops instead of global
1270 current_target_so_ops.
1272 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1274 * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
1275 * config/frv-tm-frv.h: Delete file.
1277 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
1279 * NEWS: Mention gdbserver support for non-libthread_db operation.
1281 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
1283 * amd64-tdep.c (amd64_convert_register_p): Delete.
1284 (amd64_init_abi): Use i387_convert_register_p.
1285 * alpha-tdep.c (alpha_convert_register_p): Return zero for
1287 (alpha_register_to_value, alpha_value_to_register): Do not handle
1289 * i386-tdep.c (i386_convert_register_p): Use i387_convert_register_p.
1290 * i387-tdep.c (i387_convert_register_p): New.
1291 (i387_register_to_value, i387_value_to_register): Update comments.
1292 * i387-tdep.h (i387_convert_register_p): Declare.
1293 * ia64-tdep.c (ia64_convert_register_p): Return zero for
1294 builtin_type_ia64_ext.
1295 (ia64_gdbarch_init): Do not initialize builtin_type_ia64_ext here.
1296 (_initialize_ia64_tdep): Initialize builtin_type_ia64_ext here.
1297 * m68k-tdep.c (m68k_convert_register_p): Return zero for
1298 builtin_type_m68881_ext.
1299 (m68k_register_to_value, m68k_value_to_register): Update comments.
1301 2007-10-24 Nathan Sidwell <nathan@codesourcery.com>
1303 * target-memory.c (claim_memory): Propagate baton for split memory
1306 2007-10-24 Pedro Alves <pedro_alves@portugalmail.pt>
1309 * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
1312 2007-10-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1314 * symtab.c (find_line_symtab): scan through psymtabs
1315 when exact_match is zero.
1317 2007-10-23 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
1319 * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
1320 (deal_with_atomic_sequence): New.
1321 (mips_software_single_step): Use it.
1323 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
1326 * configure.ac: Modify $LIBINTL before the BFD check.
1327 * configure: Regenerated.
1329 2007-10-23 Joel Brobecker <brobecker@adacore.com>
1331 * buildsym.c (free_pending_blocks): Remove commented-out code.
1332 (make_blockvector): Likewise. Re-use free_pending_blocks.
1333 (end_symtab): Remove commented-out code.
1335 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1337 * top.c (command_loop): Fix output for shrinkage.
1339 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1341 * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
1342 (exp): Remove and document function-like casts.
1344 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1346 * cp-support.c: Include "safe-ctype.h".
1347 (cp_already_canonical): New function.
1348 (cp_canonicalize_string): Use it. Return NULL for already canonical
1350 (mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
1351 (cp_func_name, remove_params): Likewise.
1352 (cp_find_first_component_aux): Use ISSPACE.
1353 * cp-support.h (cp_demangled_name_to_comp): Correct comment. Remove
1355 * cp-name-parser.y (ALLOC_CHUNK): Define.
1356 (struct demangle_info): Add PREV and NEXT. Increase the size of
1358 (d_grab): Convert to a function.
1359 (allocate_info): Rewrite.
1360 (cp_demangled_name_to_comp): Remove MEMORY argument. Do not use
1361 strlen. Update call to allocate_info. Do not free it on failure.
1362 (main): Update calls to cp_demangled_name_to_comp.
1363 * Makefile.in (cp-support.o): Update.
1365 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1367 * std-regs.c (value_of_builtin_frame_fp_reg)
1368 value_of_builtin_frame_pc_reg, value_of_builtin_frame_sp_reg)
1369 value_of_builtin_frame_ps_reg): Use get_frame_arch to get at the
1370 current architecture by frame_info.
1372 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1374 * reggroups.c (default_register_reggroup_p): Replace current_gdbarch
1377 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1379 * infcmd.c (default_print_registers_info, print_return_value)
1380 (print_vector_info, print_float_info): Replace current_gdbarch by
1382 (registers_info): Use get_frame_arch to get at the current
1383 architecture by frame_info.
1385 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1387 * i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
1388 get_regcache_arch to get at the current architecture by regcache.
1390 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1392 * target.c (debug_print_register): Use get_regcache_arch to get at the
1393 current architecture by regcache.
1395 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
1397 * dwarf2read.c (read_file_scope): Add a comment.
1398 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_type)
1399 (read_enumeration_type, process_enumeration_scope, read_array_type)
1400 (read_typedef, read_base_type, read_subrange_type)
1401 (read_unspecified_type): Use dwarf2_name.
1403 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
1405 * coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
1406 * dwarf2read.c (dwarf2_free_objfile): New.
1407 * elfread.c (elf_symfile_finish): Call dwarf2_free_objfile.
1408 * symfile.h (dwarf2_free_objfile): Declare.
1410 2007-10-21 Joel Brobecker <brobecker@adacore.com>
1412 * hppa-hpux-nat.c (hppa_hpux_store_register): Add missing semi-colon.
1414 2007-10-21 Luis Machado <luisgpm@br.ibm.com>
1416 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
1417 * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
1418 default dwarf2_frame_set_init_reg function.
1420 2007-10-21 Pedro Alves <pedro_alves@portugalmail.pt>
1422 * NEWS: Mention native MinGW configuration.
1424 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1426 * gdbarch.sh: Remove "macro" column of input table. Remove handling
1427 of "macro" column throughout the file. Remove (empty) "macro" entry
1428 of all gdbarch functions.
1430 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1432 * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
1433 * gdbarch.c, gdbarch.h: Regenerate.
1434 * dbxread.c (find_stab_function_addr): Define unconditionally.
1435 (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
1436 instead of SOFUN_ADDRESS_MAYBE_MISSING.
1437 (end_psymtab): Likewise.
1438 (process_one_symbol): Likewise.
1439 * mdebugread.c (parse_partial_symbols): Likewise.
1441 * symtab.h (struct minimal_symbol): Always define "filename" member.
1442 * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
1443 * minsyms.c (lookup_minimal_symbol): Likewise.
1444 * symmisc.c (dump_msymbols): Likewise.
1446 * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
1447 * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
1448 * config/i386/tm-i386sol2.h: Remove file.
1449 * config/i386/tm-linux.h: Remove file.
1450 * i386-linux-tdep.c (i386_linux_init_abi): Add call to
1451 set_gdbarch_sofun_address_maybe_missing.
1452 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
1454 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
1455 * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
1456 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
1457 * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
1458 * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
1459 * config/powerpc/tm-ppc-eabi.h: Remove file.
1460 * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
1461 set_gdbarch_sofun_address_maybe_missing.
1463 * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
1464 * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
1465 * config/sparc/tm-sol2.h: Remove file.
1466 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
1467 set_gdbarch_sofun_address_maybe_missing.
1468 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
1470 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1472 * gdbarch.sh (static_transform_name): New gdbarch callback.
1473 * gdbarch.c, gdbarch.h: Regenerate.
1474 * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
1475 instead of STATIC_TRANSFORM_NAME.
1476 * mdebugread.c (parse_partial_symbols): Likewise.
1477 * stabsread.c (define_symbol): Likewise.
1478 * xcoffread.c (scan_xcoff_symtab): Likewise.
1480 * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
1481 (IS_STATIC_TRANSFORM_NAME): Remove.
1482 * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
1483 * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
1484 (i386_sol2_init_abi): Install it.
1486 * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
1487 (IS_STATIC_TRANSFORM_NAME): Remove.
1488 * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
1489 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
1490 (sparc32_sol2_init_abi): Install it.
1491 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
1492 * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
1494 2007-10-18 Daniel Jacobowitz <dan@codesourcery.com>
1496 * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
1497 (mips_n32n64_return_value, mips_o32_return_value)
1498 (mips_o64_return_value): Update calls to mips_xfer_register.
1500 2007-10-17 Daniel Jacobowitz <dan@codesourcery.com>
1502 * frame.c (frame_unwind_unsigned_register): Delete.
1503 (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
1504 * frame.h (frame_unwind_unsigned_register): Delete prototype.
1506 * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
1507 avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
1508 mt-tdep.c: Replace frame_unwind_unsigned_register with
1509 frame_unwind_register_unsigned.
1511 2007-10-16 Pedro Alves <pedro_alves@portugalmail.pt>
1513 * config/i386/mingw.mh, config/i386/mingw.mt: New files.
1514 * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
1515 * win32-nat.c: Only include cygwin.h on Cygwin host. Don't
1517 (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
1518 if not building on Cygwin.
1519 (win32_make_so, handle_output_debug_string, handle_exception)
1520 (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
1521 (win32_attach): Only fallback to Cygwin pids if building on
1523 (win32_pid_to_exec_file): Disable Cygwin specific code, if not
1525 (win32_create_inferior): Disable starting the inferior through a
1526 shell, environment var processing and tty handling if not building
1528 (cygwin_pid_to_str): Rename to ...
1529 (win32_pid_to_str): ... this.
1530 (init_win32_ops): Update use of win32_pid_to_str. Disable "shell"
1531 and "cygwin-exceptions" commands if not building on Cygwin.
1533 2007-10-16 Gaius Mulley <gaius@glam.ac.uk>
1535 * doc/gdb.texinfo: Add TSIZE definition, removed
1536 statement about unbounded arrays being unimplemented.
1537 * m2-valprint.c (m2_print_array_contents): New function.
1538 (m2_print_unbounded_array): New function.
1539 (m2_print_array_contents): New function.
1540 * m2-typeprint.c (m2_unbounded_array): New function.
1541 (m2_is_unbounded_array): New function.
1542 (m2_print_type): Test for unbounded array when walking
1544 * m2-lang.h: Added extern m2_is_unbounded_array.
1545 * m2-lang.c (evaluate_subexp_modula2): New function.
1546 (exp_descriptor_modula2): New structure.
1547 (m2_language_defn): Use exp_descriptor_modula2.
1548 * m2-exp.y: Added TSIZE and binary subscript.
1550 2007-10-16 Daniel Jacobowitz <dan@codesourcery.com>
1552 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
1555 2007-10-16 Kevin Buettner <kevinb@redhat.com>
1557 * m32r-tdep.c (decode_prologue): Sign extend offset for
1559 (m32r_frame_unwind_cache): Likewise.
1561 2007-10-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
1563 * rs6000-tdep.c (skip_prologue): Restore comment with
1564 function description to its proper place.
1566 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1568 * NEWS: Mention gdbserver PowerPC improvements.
1570 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1572 * features/Makefile (WHICH): Add PowerPC register definitions.
1573 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
1574 (rs6000/powerpc-64-expedite): New macros.
1575 ($(outdir)/%.dat): Handle subdirectories.
1576 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
1577 regformats/rs6000/powerpc-e500.dat: New generated files.
1579 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1581 * ppc-linux-nat.c (ppc_linux_read_description): New.
1582 (_initialize_ppc_linux_nat): Set to_read_description.
1583 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
1585 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1587 * NEWS: Document target described register support for PowerPC.
1588 * ppc-tdep.h: Remove ppc_spr constants.
1589 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
1590 ppc_builtin_type_vec128 members.
1591 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
1592 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
1593 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
1594 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
1595 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
1596 * rs6000-tdep.c: Include preparsed descriptions.
1597 (init_sim_regno_table): Do not iterate over pseudo registers.
1598 Look up segment registers by name. Use sim_spr_register_name
1600 (rs6000_register_sim_regno): Call init_sim_regno_table here.
1601 (rs6000_builtin_type_vec128): Delete.
1602 (rs6000_register_name): Only handle SPE pseudo registers and upper
1603 halves. Call tdesc_register_name for everything else.
1604 (rs6000_register_type): Delete. Replace with...
1605 (rs6000_pseudo_register_type): ...this new function. Only handle
1606 SPE pseudo registers.
1607 (rs6000_register_reggroup_p): Delete. Replace with...
1608 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
1609 handle SPE pseudo registers.
1610 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
1612 (rs6000_register_to_value, rs6000_value_to_register): Remove check
1614 (e500_register_reggroup_p): Delete.
1615 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
1616 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
1617 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
1618 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
1619 (registers_powerpc, registers_403, registers_403GC, registers_505)
1620 (registers_860, registers_601, registers_602, registers_603)
1621 (registers_604, registers_750, registers_7400, registers_e500): Delete
1623 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
1625 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
1626 (variants): Delete outdated comment. Use standard target descriptions
1627 instead of "struct reg" arrays.
1628 (init_variants): Delete.
1629 (rs6000_gdbarch_init): Do not guess word size from the BFD
1630 architecture if we have a target description. Select a variant
1631 before creating a new architecture. Use the variant's target
1632 description if the target did not define a register layout.
1633 Validate target-supplied registers. Reject mismatches. Use
1634 fixed register numbers and new constants instead of magic
1635 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
1636 (_initialize_rs6000_tdep): Initialize the preparsed target
1638 * target-descriptions.c (tdesc_predefined_types): Add int128 and
1640 (tdesc_find_register_early): New function.
1641 (tdesc_numbered_register): Use it.
1642 (tdesc_register_size): New function.
1643 (tdesc_use_registers): Take a target_desc argument. Do not use
1644 gdbarch_target_desc.
1645 * target-descriptions.h (tdesc_use_registers): Update prototype
1647 (tdesc_register_size): New prototype.
1648 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
1649 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
1650 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
1651 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
1652 (rs6000-tdep.o): Update.
1653 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
1654 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
1655 * mips-tdep.c (mips_gdbarch_init): Likewise.
1657 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1659 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
1660 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
1661 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
1662 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
1663 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
1664 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
1665 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
1668 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1670 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
1671 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
1672 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
1673 feature descriptions for standard PowerPC register sets.
1675 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
1676 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
1677 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
1678 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
1679 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
1680 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
1681 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
1682 target descriptions for PowerPC processors.
1684 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1686 * target-descriptions.c (tdesc_predefined_types): New.
1687 (tdesc_named_type): Use it.
1688 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
1689 (_intialize_target_descriptions): Register "maint print c-tdesc".
1690 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
1691 (cfiles, %.c): New rules.
1692 * features/arm-with-iwmmxt.c, features/mips-linux.c,
1693 features/mips64-linux.c: New generated files.
1695 * arm-linux-nat.c: Include preparsed description instead of
1697 (super_xfer_partial, arm_linux_xfer_partial): Remove.
1698 (arm_linux_read_description): New function.
1699 (_initialize_arm_linux_nat): Set to_read_description instead of
1700 to_xfer_partial. Initialize preparsed description.
1701 * config/arm/linux.mh (TDEP_XML): Delete.
1702 * mips-linux-nat.c: Include preparsed descriptions instead of
1704 (super_xfer_partial, mips_linux_xfer_partial): Remove.
1705 (mips_linux_read_description): New function.
1706 (_initialize_mips_linux_nat): Set to_read_description instead of
1707 to_xfer_partial. Initialize preparsed description.
1708 * config/mips/linux.mh (TDEP_XML): Delete.
1709 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
1710 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
1711 (mips64_linux_c): New macros.
1712 (arm-linux-nat.o, mips-linux-nat.o): Update.
1714 2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
1716 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
1717 Replace xasprintf by xstrprintf.
1718 symfile-mem.c (add_vsyscall_page): Ditto.
1720 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1722 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
1723 replacing use of global current_gdbarch.
1724 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
1725 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
1727 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
1728 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
1729 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
1730 (ia64_sigtramp_frame_cache): Update caller.
1732 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1734 * gdbarch.sh (deprecated_use_struct_convention): Remove.
1735 (extract_return_value, store_return_value): Remove.
1736 (return_value): Remove default implementation.
1737 * gdbarch.c, gdbarch.h: Regenerate.
1739 * stack.c (return_command): Remove compatibility hack.
1740 * arch-utils.c (legacy_return_value): Remove.
1741 * arch-utils.h (legacy_return_value): Likewise.
1743 * arch-utils.c (always_use_struct_convention): Remove.
1744 * arch-utils.h (always_use_struct_convention): Likewise.
1745 * value.c (generic_use_struct_convention): Remove.
1746 * defs.h (generic_use_struct_convention): Likewise.
1748 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1750 * avr-tdep.c (avr_return_value): New function.
1751 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
1752 set_gdbarch_extract_return_value.
1754 * fvr-tdep.c (frv_return_value): New function.
1755 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
1756 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
1757 and set_gdbarch_deprecated_use_struct_convention.
1759 * ia64-tdep.c (ia64_use_struct_convention): Make static.
1760 Add check for structure, union, or array types.
1761 (ia64_extract_return_value): Make static.
1762 (ia64_store_return_value): Make static. Support multi-word values.
1763 (ia64_return_value): New function.
1764 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
1765 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
1766 and set_gdbarch_deprecated_use_struct_convention.
1768 2007-10-12 Joel Brobecker <brobecker@adacore.com>
1770 * solib-target.c (solib_target_parse_libraries)
1771 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
1773 2007-10-12 Jim Blandy <jimb@codesourcery.com>
1775 * serial.h (struct serial_ops): Document read_prim to return zero
1777 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
1778 read_prim returns zero, not SERIAL_TIMEOUT.
1780 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1782 * alpha-mdebug-tdep.c: Include "gdb_string.h".
1783 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
1784 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
1785 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
1787 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
1788 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
1789 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
1790 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
1791 * config/alpha/tm-alpha.h: Remove file.
1793 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1795 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
1796 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
1798 * config/pa/tm-hppa.h: Delete file.
1799 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
1800 * config/pa/hppahpux.mt: Likewise.
1801 * config/pa/hppa.mt: Likewise.
1802 * config/pa/linux.mt: Likewise.
1803 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
1805 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1807 * config/arm/nm-nbsdaout.h: Remove file.
1808 * config/nm-nbsdaout.h: Likewise.
1809 * config/nm-nbsd.h: Likewise.
1811 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1813 * block.h (struct block): Remove "gcc_compile_flag" member.
1814 (BLOCK_GCC_COMPILED): Remove.
1815 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
1816 * buildsym.c (finish_block): Do not set it.
1817 * symmisc.c (dump_symtab_1): Do not dump it.
1819 * value.h (using_struct_return): Remove "gcc_p" argument.
1820 * value.c (using_struct_return): Likewise.
1821 * eval.c (evaluate_subexp_standard): Adapt callers.
1822 * infcall.c (call_function_by_hand): Likewise.
1823 * stack.c (return_command): Likewise.
1824 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
1826 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
1827 * gdbarch.c, gdbarch.h: Regenerate.
1828 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
1829 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
1830 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
1831 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
1832 (push_dummy_code, call_function_by_hand): Adapt callers.
1834 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1836 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
1837 (finish_command_continuation, finish_command): Adapt callers.
1839 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1841 * infcall.c (call_function_by_hand): Remove special handling
1842 for HP aCC compiled code.
1844 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1846 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
1847 reference. Fix endianness bugs.
1848 (cris_reg_struct_has_address): Remove.
1849 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
1850 and set_gdbarch_deprecated_use_struct_convention calls.
1852 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
1853 * gdbarch.c, gdbarch.h: Regenerate.
1854 * infcall.c (call_function_by_hand): Remove handling of
1855 deprecated_reg_struct_has_addr.
1857 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
1858 Kazu Hirata <kazu@codesourcery.com>
1860 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
1861 checking watchpoint resources.
1863 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
1865 * memattr.c (inaccessible_by_default): Change the initial
1868 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
1871 * coffread.c (read_one_sym): Check for read errors.
1873 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
1875 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
1876 instead of "Linux 2.6.19" in comment.
1877 (linux_xfer_partial): Use "GNU/Linux target" instead of
1878 "Linux target" in comment.
1879 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
1880 (m68k_linux_get_sigtramp_info): Likewise.
1882 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
1884 * MAINTAINERS (language support): List Joel and Paul as
1887 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
1889 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
1891 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
1892 not set DEPRECATED_TM_FILE.
1893 * config/arm/tm-arm.h: Delete file.
1895 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
1897 * MAINTAINERS (Write After Approval): Add self.
1899 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
1901 * buildsym.c (record_line): Remove empty lines followed by
1902 end-of-sequence markers.
1904 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
1906 * configure.tgt: Recognize fido-*-elf.
1908 2007-10-10 Joel Brobecker <brobecker@adacore.com>
1912 2007-10-10 Markus Deuling <deuling@de.ibm.com>
1914 * stack.c (print_frame_args, frame_info, return_command): Use
1915 get_regcache_arch or get_frame_arch to get at the current architecture
1916 by regcache or by frame, respectively.
1918 2007-10-10 Markus Deuling <deuling@de.ibm.com>
1920 * rs6000-nat.c (fetch_register, store_register)
1921 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
1922 get_regcache_arch to get at the current architecture by regcache.
1924 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
1925 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
1926 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
1927 current_gdbarch by gdbarch.
1928 (rs6000_skip_trampoline_code, rs6000_register_to_value)
1929 (rs6000_value_to_register): Use get_frame_arch to get at the current
1930 architecture by frame_info.
1932 2007-10-10 Markus Deuling <deuling@de.ibm.com>
1934 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
1935 get_regcache_arch to get at the current architecture by regcache.
1937 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1938 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
1939 get_regcache_arch to get at the current architecture by regcache.
1941 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
1942 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1943 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
1944 current architecture by regcache.
1946 2007-10-10 Markus Deuling <deuling@de.ibm.com>
1948 * remote-mips.c (mips_wait, mips_fetch_registers)
1949 (mips_store_registers): Use get_regcache_arch to get at the
1950 current architecture by regcache.
1952 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
1953 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
1954 get at the current architecture by regcache.
1955 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
1956 architecture by frame_info.
1958 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
1959 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
1960 the current architecture by regcache.
1962 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
1963 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
1964 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
1965 current architecture by frame_info.
1966 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
1967 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
1968 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
1969 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
1970 get at the current architecture by regcache.
1972 * mips-linux-nat.c (mips_linux_register_addr)
1973 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
1974 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
1975 (mips64_linux_regsets_fetch_registers)
1976 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
1977 the current architecture by regcache.
1979 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
1980 get at the current architecture by frame_info.
1982 2007-10-10 Markus Deuling <deuling@de.ibm.com>
1984 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
1985 current architecture by regcache.
1986 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
1987 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
1988 (mips_stub_frame_cache, mips_read_fp_register_single)
1989 (mips_read_fp_register_double, mips_print_fp_register)
1990 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
1991 at the current architecture by frame_info.
1992 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
1993 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
1994 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
1995 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
1996 (mips_o32_push_dummy_call, mips_o32_return_value)
1997 (mips_o64_push_dummy_call, mips_o64_return_value)
1998 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
2001 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2003 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
2004 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
2005 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
2006 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
2007 (xtensa_register_write_masked, xtensa_register_read_masked)
2008 (xtensa_supply_gregset, xtensa_store_return_value)
2009 (xtensa_extract_return_value): Use get_regcache_arch to get at the
2010 current architecture by regcache.
2011 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
2012 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
2013 architecture by frame_info.
2015 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2017 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
2018 (thumb_analyze_prologue): Move pv_area_store_would_trash call
2019 out of loop. Do not set cache->frameoffset.
2020 (arm_scan_prologue): Use prologue-value mechanism. Do not set
2021 frameoffset. Simplify framesize.
2022 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
2024 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
2026 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2028 * target.c (update_current_target): Call setup_target_debug.
2029 (push_target): Do not call it here.
2031 2007-10-09 Michael Snyder <msnyder@specifix.com>
2033 * MAINTAINERS: Update my email address.
2035 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2037 * xtensa-tdep.c: Replace following current-gdbarch based macros by
2039 (xtensa_pseudo_register_read)
2040 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
2041 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
2042 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
2043 (xtensa_pseudo_register_read)
2044 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
2045 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
2046 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
2047 (xtensa_frame_prev_register): NUM_AREGS.
2048 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
2049 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
2050 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
2051 (xtensa_supply_gregset, xtensa_frame_cache)
2052 (xtensa_frame_prev_register): WS_REGNUM.
2053 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
2054 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
2055 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
2056 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2057 (xtensa_register_reggroup_p): REGMAP.
2058 (call0_track_op): LITBASE_REGNUM.
2059 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
2060 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
2061 (xtensa_frame_prev_register, AREG_NUMBER)
2062 (xtensa_register_type): AR_BASE.
2063 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
2064 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
2065 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2066 (xtensa_frame_cache, xtensa_frame_prev_register)
2067 (xtensa_extract_return_value, xtensa_store_return_value)
2068 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
2069 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
2070 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
2071 (xtensa_frame_prev_register, xtensa_push_dummy_call)
2072 (call0_frame_cache): A1_REGNUM.
2073 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
2074 (xtensa_push_dummy_call): A4_REGNUM.
2075 (ARGS_FIRST_REG): A6_REGNUM.
2076 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2077 (xtensa_frame_prev_register): A15_REGNUM.
2078 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
2079 them in the appropriate source file:
2080 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
2081 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
2082 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
2083 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
2084 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
2085 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
2086 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
2087 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
2088 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
2089 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
2090 A13_REGNUM, A14_REGNUM, A15_REGNUM.
2092 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2094 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
2095 the current architecture by frame_info.
2096 (h8300_frame_prev_register
2097 (h8300_print_register): Replace current_gdbarch by gdbarch.
2098 (h8300_print_registers_info, h8300_register_type)
2099 (h8300_register_type): Likewise.
2101 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2103 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
2104 the current architecture by regcache.
2105 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
2106 (i386_linux_fetch_inferior_registers)
2107 (i386_linux_store_inferior_registers): Likewise.
2108 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
2109 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
2110 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2111 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
2112 (i386_extract_return_value, i386_store_return_value): Likewise.
2113 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
2114 the current architecture by frame_info.
2115 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
2116 (i386_register_to_value, i386_value_to_register): Likewise.
2118 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2120 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
2121 the current architecture by regcache.
2122 (monitor_store_register, monitor_store_registers): Likewise.
2124 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2126 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
2127 the current architecture by regcache.
2129 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2131 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
2134 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2136 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
2137 architecture by frame.
2138 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
2139 (inside_main_func, frame_sp_unwind): Likewise.
2141 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
2143 * solib-svr4.c (enable_break): Add the dynamic linker also if
2146 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2148 * MAINTAINERS (Write After Approval): Add self.
2150 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2152 * stabsread.c (read_huge_number): Initialize local variable to 0.
2154 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
2156 * p-lang.h (pascal_main_name): Add declaration.
2157 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
2158 (GPC_MAIN_PROGRAM_NAME_2): New constants.
2159 (pascal_main_name): New function.
2160 * symtab.c: Include p-lang.h.
2161 (find_main_name): Add call to pascal_main_name.
2162 * Makefile.in (symtab.o): Add dependency on p-lang.h.
2164 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2166 * stabsread.c (read_huge_number): Fix handling of octal
2167 representation when the bit width is known.
2168 (read_range_type): Record unsigned integral types with their size,
2169 when the type size is known.
2171 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
2173 * MAINTAINERS (Write After Approval): Add self.
2175 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2177 * breakpoint.c (print_one_breakpoint_location): ARI fix:
2178 Replace asprintf by xstrprintf.
2180 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2182 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
2183 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
2185 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2187 * linux-fork.c: Move "gdb_wait.h" include back to the position of
2188 <sys/wait.h> include before last commit.
2190 2007-10-08 Maciej W. Rozycki <macro@mips.com>
2192 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
2194 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2196 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
2197 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
2198 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
2199 (store_regs_user_thread, store_regs_kernel_thread): Use
2200 get_regcache_arch or get_frame_arch to get at the current architecture
2201 by regcache or by frame, respectively.
2203 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2205 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
2206 (sh64_pseudo_register_read, sh64_pseudo_register_write)
2207 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
2208 (sh64_print_register, sh64_media_print_registers_info)
2209 (sh64_compact_print_registers_info, sh64_unwind_sp)
2210 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
2211 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
2212 (sh64_frame_prev_register): Use FRAME to recognize current
2215 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2217 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2218 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2219 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
2220 current_gdbarch by gdbarch.
2221 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
2222 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2223 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
2224 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
2225 recognize current architecture.
2227 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2229 * remote.c (init_remote_state, fetch_register_using_p)
2230 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
2231 (store_register_using_P, store_registers_using_G)
2232 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
2233 get at the current architecture by regcache or by frame, respectively.
2235 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2237 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
2238 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
2239 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
2240 get_regcache_arch or get_frame_arch to get at the current architecture
2241 by regcache or by frame, respectively.
2242 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2243 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
2244 (store_register, old_store_inferior_registers, supply_gregset)
2245 (supply_fpregset, fill_fpregset): Likewise.
2246 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
2247 Replace current_gdbarch by gdbarch.
2249 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2251 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
2252 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
2253 get_frame_arch to get at the current architecture by regcache or by
2254 frame, respectively.
2256 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2258 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
2259 Replace current_gdbarch by gdbarch.
2260 * ia64-tdep.c (ia64_frame_prev_register
2261 (ia64_sigtramp_frame_prev_register)
2262 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
2263 get_frame_arch to get at the current architecture by regcache or by
2264 frame, respectively.
2265 * ia64-linux-nat.c (ia64_linux_fetch_register)
2266 (ia64_linux_fetch_registers, ia64_linux_store_register)
2267 (ia64_linux_store_registers): Likewise.
2269 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2271 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
2272 current_gdbarch by gdbarch.
2273 * hppa-linux-nat.c (fetch_register, store_register)
2274 (hppa_linux_fetch_inferior_registers)
2275 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
2276 get_frame_arch to get at the current architecture by regcache or by
2277 frame, respectively.
2278 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
2279 (hppa_hpux_unwind_adjust_stub): Likewise.
2280 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
2281 (hppa_hpux_fetch_inferior_registers)
2282 (hppa_hpux_store_inferior_registers): Likewise.
2284 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2286 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
2287 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
2288 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
2289 or get_frame_arch to get at the current architecture by regcache or by
2290 frame, respectively.
2291 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
2292 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
2293 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
2294 current_gdbarch by gdbarch.
2296 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2298 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
2299 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
2300 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
2301 get at the current architecture by regcache or by·frame, respectively.
2302 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
2305 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2307 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
2308 Use get_regcache_arch or get_frame_arch to get at the current
2309 architecture by regcache or by frame, respectively.
2310 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2311 * amd64-nat.c (amd64_supply_native_gregset)
2312 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
2314 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2316 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
2318 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2319 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
2320 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
2321 get_frame_arch to get at the current architecture by regcache or by
2322 frame, respectively.
2323 * alpha-nat.c (fetch_osf_core_registers): Likewise.
2325 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2327 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
2328 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
2329 current_gdbarch by gdbarch.
2330 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
2332 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2334 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
2335 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
2336 * regcache.c (regcache_raw_write): Use get_regcache_arch or
2337 get_frame_arch to get at the current architecture by regcache or by
2338 frame, respectively.
2340 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2342 * findvar.c (value_of_register, locate_var_value): Use
2343 get_regcache_arch or get_frame_arch to get at the current architecture
2344 by regcache or by frame, respectively.
2345 * findvar.c (default_value_from_register, value_from_register): Replace
2346 current_gdbarch by gdbarch.
2348 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2350 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
2352 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2354 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
2355 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
2357 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
2359 * remote.c (get_offsets): Only call free_symfile_segment_data if
2362 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
2364 * objc-exp.y: ARI fix: remove 4 PARAMS.
2366 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
2368 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
2369 news. Mention XML support for M68K in GDB 6.7.
2371 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
2373 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
2375 (init_vector_type): Use builtin_type_int32.
2377 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
2379 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
2380 size to enable bi-arch generate-core-file support.
2382 2007-10-02 Markus Deuling <deuling@de.ibm.com>
2384 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
2386 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2388 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
2390 * tui/tui-win.c (tui_initialize_win): New function for
2391 initializing tui's SIGWINCH signal handler.
2392 * tui/tui-win.h (tui_initialize_win): Declare.
2394 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
2396 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
2397 pointer to uintptr_t before casting to CORE_ADDR.
2399 2007-10-02 Markus Deuling <deuling@de.ibm.com>
2401 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
2403 2007-10-02 Mark Mitchell <mark@codesourcery.com>
2405 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
2406 * ser-mingw.c (enum select_thread_state): New type.
2407 (struct ser_console_state): Add have_started and thread_state.
2408 (select_thread_wait): New function.
2409 (thread_fn_type): New type.
2410 (create_select_thread): New function.
2411 (destroy_select_thread): Likewise.
2412 (start_select_thread): Likewise.
2413 (stop_select_thread): Likewise.
2414 (console_select_thread): Use new functions.
2415 (pipe_select_thread): Likewise.
2416 (file_select_thread): Likewise.
2417 (ser_console_wait_handle): Likewise.
2418 (ser_console_done_wait_handle): Likewise.
2419 (ser_console_close): Likewise.
2420 (free_pipe_state): Likewise.
2421 (pipe_wait_handle): Likewise.
2422 (pipe_done_wait_handle): Likewise.
2423 (struct net_windows_state): Derive from ser_console_state.
2424 (net_windows_select_thread): Use new functions.
2425 (net_windows_wait_handle): Likewise.
2426 (net_windows_done_wait_handle): Likewise.
2427 (net_windows_close): Likewise.
2429 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
2431 * inflow.c (terminal_ours_1): Remove useless line.
2433 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
2435 * mips-tdep.c (mips_read_fp_register_double): Correct check for
2437 (mips_print_fp_register): Correct check for even FP registers.
2438 (mips_virtual_frame_pointer): New function.
2439 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
2441 2007-09-30 Mike Frysinger <vapier@gentoo.org>
2443 * value.h (lookup_only_internalvar): New prototype.
2444 (create_internalvar): Likewise.
2445 * value.c (lookup_only_internalvar): New function.
2446 (create_internalvar): Likewise.
2447 (lookup_internalvar): Use new lookup_only_internalvar and
2448 create_internalvar functions.
2449 * parse.c (write_dollar_variable): Look up $ symbols in internal
2450 table first rather than last.
2452 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
2454 * linux-nat.c (linux_nat_new_thread): New variable.
2455 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
2456 linux_nat_switch_fork.
2457 (lwp_list): Make public.
2458 (add_lwp): Call linux_nat_new_thread.
2459 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
2461 (resume_callback): Clear lp->siginfo. Remove unused variable.
2462 (linux_nat_resume): Assert that the LWP list is already initialized.
2464 (save_siginfo): New.
2465 (stop_wait_callback, linux_nat_wait): Call it.
2466 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
2467 * linux-nat.h (struct lwp_info): Add siginfo.
2468 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
2471 * amd64-linux-nat.c (amd64_linux_dr): New.
2472 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
2473 (amd64_linux_dr_set): Take a PTID argument.
2474 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
2475 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
2476 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
2477 (amd64_linux_new_thread): New.
2478 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
2479 * i386-linux-nat.c (i386_linux_dr): New.
2480 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
2481 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
2482 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
2483 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
2484 (i386_linux_new_thread): New.
2485 (i386_linux_resume): Remove unnecessary PID check.
2486 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
2487 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
2488 (fetch_debug_register, fetch_debug_register_pair): Delete.
2489 (debug_registers): New.
2490 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
2491 ALL_LWPS and debug_registers.
2492 (ia64_linux_new_thread): New.
2493 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
2494 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
2495 * ppc-linux-nat.c (last_stopped_data_address): Delete.
2496 (saved_dabr_value): New.
2497 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
2499 (ppc_linux_new_thread): New.
2500 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
2501 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
2502 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
2503 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
2505 (s390_fix_watch_points): Take a PTID argument.
2506 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
2507 (_initialize_s390_nat): Call linux_nat_set_new_thread.
2509 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
2510 Jeff Johnston <jjohnstn@redhat.com>
2512 * breakpoint.c (watchpoints_triggered): New.
2513 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
2514 Check watchpoint_triggered instead. Combine handling for software
2515 and hardware watchpoints. Do not use target_stopped_data_address
2516 here. Always check a watchpoint if its scope breakpoint triggers.
2517 Do not stop for thread or overlay events. Improve check for
2518 triggered watchpoints without a value change.
2519 (watch_command_1): Insert the scope breakpoint first. Link the
2520 scope breakpoint to the watchpoint.
2521 * breakpoint.h (enum watchpoint_triggered): New.
2522 (struct breakpoint): Add watchpoint_triggered.
2523 (bpstat_stop_status): Update prototype.
2524 (watchpoints_triggered): Declare.
2525 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
2526 (stepped_after_stopped_by_watchpoint): Delete.
2527 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
2528 local. Handle infwait_step_watch_state. Update calls to
2529 bpstat_stop_status. Use watchpoints_triggered to check
2531 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
2532 (remote_stopped_data_address): Do not check it.
2534 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
2536 * configure.ac: Add $LIBINTL when testing libbfd.
2537 * configure: Regenerated.
2539 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
2541 * NEW: Mention pending breakpoint changes and
2542 support for breakpoints at multiple locations.
2544 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
2546 * arm-linux-tdep.c (arm_linux_software_single_step): New.
2547 (arm_linux_init_abi): Use it.
2548 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
2549 condition correctly.
2550 * arm-tdep.h (arm_get_next_pc): Declare.
2551 * Makefile.in (arm-linux-tdep.o): Update.
2553 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
2555 * varobj.c (install_new_value): Don't
2556 call value_get_print_value when a value is
2557 lazy. Update the print_value member in a
2560 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
2562 * breakpoint.c (create_breakpoint): Set
2563 condition on each location, not on the first
2564 location of breakpoint.
2566 2007-09-26 Jim Blandy <jimb@codesourcery.com>
2568 * remote.c (getpkt_sane): Fix error message. No animals were
2569 harmed in the making of this debugger.
2571 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2573 * p-typeprint.c: Fix 11 ARI reported problems.
2574 (pascal_print_type): Fix 4 operator at end of line.
2575 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
2576 using strncmp function.
2577 (pascal_type_print_base): Fix 2 operator at end of line.
2578 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
2579 using strncmp function.
2582 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2584 * Fix PR pascal/2231
2585 dwarf2read.c (read_subroutine_type):
2586 All pascal functions are prototyped.
2588 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2590 * Fix PR pascal/2283
2591 p-valprint.c (pascal_val_print): correct current language check.
2592 Also print array of char as strings.
2595 2007-09-26 David Ung <davidu@mips.com>
2596 Maciej W. Rozycki <macro@mips.com>
2598 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
2600 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
2602 * p-exp.y: Fix 12 ARI reported problems.
2603 (name_not_typename): Fix 2 operator at end of line issues.
2604 (yylex): Fix 3 operator at end of line issues.
2605 Replace 7 DEPRECATED_STREQ macros using strcmp function.
2607 2007-09-25 David Ung <davidu@mips.com>
2608 Maciej W. Rozycki <macro@mips.com>
2610 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
2611 rules return composite types in registers as appropriate.
2613 2007-09-24 Jim Blandy <jimb@codesourcery.com>
2615 * symfile.h (struct symfile_segment_data): Doc fixes.
2616 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
2617 Assert that we were passed some loaded segment addresses,
2618 and that sections' segment numbers are valid.
2619 Simplify offset calculation.
2620 * remote.c (get_offsets): Clarify selection of relocate-by-segment
2621 strategy, and set num_segments correctly. Delete redundant
2622 assignments to do_sections.
2624 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
2626 * frame.c (get_prev_frame_1): Also check for PC in the same register.
2628 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
2630 * breakpoint.c (remove_sal): New.
2631 (expand_line_sal_maybe): New.
2632 (create_breakpoints): Call expand_line_sal_maybe.
2633 (clear_command): Add comment.
2634 (breakpoint_re_set_one): Call expand_line_sal_maybe.
2635 * linespec.c (decode_indirect): Set explicit_pc to 1.
2636 (decode_all_digits): Set explicit_line to 1.
2637 (append_expanded_sal): New.
2638 (expand_line_sal): New.
2639 * linespec.h (expand_line_sal): Declare.
2640 * symtab.c (init_sal): Initialize explicit_pc
2642 * symtab.h (struct symtab_and_line): New fields
2643 explicit_pc and explicit_line.
2645 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
2647 * infcall.c (call_function_by_hand): Handle language-specific
2648 pass and return by reference.
2650 * cp-abi.c (cp_pass_by_reference): New.
2651 * cp-abi.h (cp_pass_by_reference): Declare.
2652 (struct cp_abi_ops): Add pass_by_reference.
2653 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
2654 (init_gnuv3_ops): Set pass_by_reference.
2656 * language.c (language_pass_by_reference): New.
2657 (default_pass_by_reference): New.
2658 (unknown_language_defn, auto_language_defn, local_language_defn): Add
2659 default_pass_by_reference.
2660 * langauge.h (struct language_defn): Add la_pass_by_reference.
2661 (language_pass_by_reference, default_pass_by_reference): Declare.
2662 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
2663 * c-lang.c (c_language_defn, asm_language_defn)
2664 (minimal_language_defn): Likewise.
2665 (cplus_language_defn): Add cp_pass_by_reference.
2666 * f-lang.c (f_language_defn): Add default_pass_by_reference.
2667 * jv-lang.c (java_language_defn): Likewise.
2668 * m2-lang.c (m2_language_defn): Likewise.
2669 * objc-lang.c (objc_language_defn): Likewise.
2670 * p-lang.c (pascal_language_defn): Likewise.
2671 * scm-lang.c (scm_language_defn): Likewise
2673 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
2675 Allow a code breakpoint to have several locations
2677 * breakpoint.h (enum enable_state): Remove the
2678 bp_shlib_disabled enumerator.
2679 (struct bp_location): New members shlib_disabled,
2680 global_next, enabled and function_name.
2681 Rename pending to condition_not_parsed.
2683 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
2684 (ALL_BP_LOCATIONS_SAFE): Likewise.
2685 (breakpoint_enabled): Don't check for pending.
2686 (condition_command): Free and update all locations of
2688 (insert_bp_location): Adjust.
2689 (software_breakpoint_inserted_here_p): Don't care
2690 if breakpoint is enabled, as soon as it's inserted.
2691 (print_it_typical): Print bpstat's location, not
2692 bpstat's breakpoint's location.
2693 (bpstat_stop_status): Iterate over all locations, not
2695 (print_breakpoint_location): New.
2696 (print_one_breakpoint): Renamed to
2697 (print_one_breakpoint_location): ...this. Take
2698 parameters to describe which location is being
2699 printed. Modify code to properly print header
2700 for several locations and individual locations.
2701 (print_one_breakpoint): Print all locations.
2702 (breakpoint_has_pc): New.
2703 (describe_other_breakpoints): Use the above.
2704 (check_duplicates): Renamed to...
2705 (check_duplicates_for): .. this.
2706 (check_duplicates): Use check_duplicates_for.
2707 (allocate_bp_location): Adjust.
2708 (set_raw_breakpoint_without_location): New,
2709 extracted from set_raw_breakpoint.
2710 (set_breakpoint_location_function): New.
2711 (set_raw_breakpoint): Use
2712 set_raw_breakpoint_without_location.
2713 (make_breakpoint_permanent): Mark all locations
2715 (disable_breakpoints_in_shlibs): Iterate over
2717 (disable_breakpoints_in_unloaded_shlib): Likewise.
2718 (re_enable_breakpoints_in_shlibs): Likewise.
2719 (mention): Say "pending" when breakpoint has
2720 zero locations. If breakpoint has more than one
2722 (add_location_to_breakpoint): New.
2723 (create_breakpoint): Accept symtabs_and_lines, not
2724 symtab_and_line. Pass extra sals to
2725 add_location_to_breakpoint.
2726 (create_breakpoints): Pass symtabs_and_lines to
2728 (break_command_1): Make pending breakpoints
2729 have zero locations.
2730 (do_captured_breakpoint): Remove wrong allocation.
2731 (clear_command): Iterate over all locations.
2732 (unlink_locations_from_global_list): Renamed
2733 from unlink_location_from_global_list. Remove
2735 (delete_breakpoint): Remove all locations.
2736 Iterate over all locations when deciding which
2737 other location to re-enable.
2738 (all_locations_are_pending): New.
2739 (update_breakpoint_locations): Renamed from
2740 update_breakpoint_location. Try to match old
2741 and new locations using names of containing
2743 (breakpoint_re_set_one): Adjust.
2744 (find_location_by_number): New.
2745 (disable_command): Allow disabling individual location.
2746 (enable_command): Allow enabling individual location.
2747 * breakpoint.c: Adjust all uses of breakpoint's
2748 enable state to for bp_shlib_disabled change.
2750 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
2752 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
2753 (resolve_pending_breakpoint): Remove.
2754 (re_enable_breakpoints_in_shlibs): Remove.
2755 (unlink_locations_from_global_list): New.
2756 (update_breakpoint_locations): New.
2757 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
2758 Use parse_condition and update_breakpoint_location to
2759 reset breakpoint. Ignore 'symbol not found' error from
2761 (breakpoint_re_set): Don't emit newline before the
2762 reason why breakpoint is not reset.
2763 (do_enable_breakpoint): Don't specially process pending
2765 (free_bp_location): New.
2766 (break_command_1): For pending breakpoints, initialize
2767 all fields of a sal with zeroes.
2768 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
2769 * infcmd.c (post_create_inferior): Don't call
2770 re_enable_breakpoints_in_shlibs.
2771 * infrun.c (handle_inferior_event): Likewise.
2772 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2773 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2774 * win32-nat.c (get_win32_debug_event): Likewise.
2776 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
2778 * breakpoint.c (create_breakpoint): Split from
2779 create_breakpoints, implementing most of its logic.
2780 Take just a single sal, single address string and
2781 single condition. Do not take parsed condition at
2783 (create_breakpoints): Just call create_breakpoint
2785 (find_condition_and_thread): New.
2786 (break_command_1): Use find_condition_and_thread.
2787 Do not keep parsed conditions.
2788 (do_captured_breakpoint): Don't convert
2789 condition string to struct expression.
2791 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
2793 * breakpoint.h (struct breakpoint): Move the cond
2795 (struct bp_location): Here.
2796 * breakpoint.c (condition_command, bpstat_stop_status)
2797 (print_one_breakpoint, allocate_bp_location)
2798 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
2799 (create_exec_event_catchpoint, create_breakpoints)
2800 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
2801 (create_ada_exception_breakpoint, set_breakpoint_sal)
2802 (delete_breakpoint, breakpoint_re_set_one): Adjust.
2803 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
2805 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
2807 Associate bp_stat with bp_location, not breakpoint.
2808 * breakpoint.h (breakpoint_at): Change type
2810 * breakpoint.c (bpstat_alloc): Take bp_location,
2812 (bpstat_find_breakpoint): Look at bpstat's location's
2813 owner, not at bpstat->breakpoint_at.
2814 (bpstat_find_step_resume_breakpoint): Likewise.
2815 (bpstat_num): Likewise.
2816 (print_it_typical): Likewise.
2817 (print_bp_stop_message): Likewise.
2818 (watchpoint_check): Likewise.
2819 (bpstat_what): Likewise.
2820 (bpstat_get_triggered_catchpoints): Likewise.
2821 (breakpoint_auto_delete): Likewise.
2822 (delete_breakpoint): Likewise.
2823 (bpstat_stop_status): Pass location, not breakpoint,
2824 to bpstat_alloc. Look at bpstat's location's
2825 owner, not at bpstat->breakpoint_at.
2827 2007-09-21 Jim Blandy <jimb@codesourcery.com>
2829 * macrotab.h (new_macro_table): Document that removing information
2830 from an obstack/bcache-managed macro table leaks memory.
2831 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
2832 that data is never freed in obstack/bcache-managed macro tables,
2833 just leak the storage.
2834 (macro_undef): If we're undefining a macro at exactly the same
2835 source location that we defined it, simply remove the definition
2838 2007-09-21 Joel Brobecker <brobecker@adacore.com>
2840 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
2841 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
2842 Adjust the struct sym_fns object accordingly by setting
2843 the new field to NULL.
2844 * xcoffread.c (aix_process_linenos): Make static.
2845 (xcoff_sym_fns): Set new field to aix_process_linenos.
2846 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
2847 by call to new the new sym_fns sym_read_linetable function.
2848 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
2849 * config/rs6000/tm-rs6000.h: Delete.
2851 2007-09-21 David Ung <davidu@mips.com>
2852 Maciej W. Rozycki <macro@mips.com>
2854 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
2855 rules do not treat composite types specially.
2857 2007-09-20 Maciej W. Rozycki <macro@mips.com>
2859 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
2860 (mips16_in_function_epilogue_p): Likewise.
2861 (mips_in_function_epilogue_p): Likewise.
2862 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
2864 2007-09-19 Joel Brobecker <brobecker@adacore.com>
2866 * configure.ac: Add check for "etext".
2867 * configure, config.in: Regenerate.
2868 * maint.c (TEXTEND): Only define if either _etext or etext
2870 Disable the profiling functionality if TEXTEND is not defined.
2872 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
2874 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
2875 address register. Correct the call to frame_id_build.
2876 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
2879 2007-09-18 Joel Brobecker <brobecker@adacore.com>
2881 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
2882 the linetable past the function end.
2884 2007-09-18 James E. Wilson <wilson@specifix.com>
2886 * MAINTAINERS: Update my email address.
2888 2007-09-18 Jerome Guitton <guitton@adacore.com>
2890 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
2891 (inf_ttrace_delete_dying_threads_callback): New function.
2892 (inf_ttrace_resume): After resuming the execution, iterate over
2893 the dying threads to delete them for the thread list.
2894 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
2895 mark the corresponding thread as dying instead of removing it
2896 from the thread list.
2897 (inf_ttrace_thread_alive): return 0 for dying threads.
2899 2007-09-17 Joel Brobecker <brobecker@adacore.com>
2901 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
2902 that return_frame is not null.
2904 2007-09-17 Joel Brobecker <brobecker@adacore.com>
2906 * solib-svr4.c: Add include of "auxv.h".
2907 (enable_break): Use the AT_BASE auxiliary entry if available.
2908 * Makefile.in (solib-svr4.o): Update dependencies.
2910 2007-09-17 Joel Brobecker <brobecker@adacore.com>
2912 * NEWS: Create a new section for the next release branch.
2913 Rename the section of the current branch, now that it has
2916 2007-09-17 Jerome Guitton <guitton@adacore.com>
2918 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
2919 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
2921 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
2923 * mi/mi-cmds.c (mi_cmds): Register -list-features.
2924 * mi/mi-cmds.h (mi_cmd_list_features): New.
2925 * mi/mi-main.c (mi_cmd_list_features): New.
2927 2007-09-11 Joel Brobecker <brobecker@adacore.com>
2929 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
2930 * version.in: Bump version to 6.7.50-20070911-cvs.
2932 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
2934 * thread.c (free_thread): Do not delete the step resume breakpoint
2937 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
2939 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
2940 * corelow.c (core_read_description): New.
2941 (init_core_ops): Set to_read_description.
2942 * gdbarch.sh: Add gdbarch_core_read_description.
2943 * mips-linux-tdep.c (mips_linux_core_read_description): New.
2944 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
2945 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
2946 (mips_register_g_packet_guesses): Use them.
2947 (_initialize_mips_tdep): Initialize them.
2948 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
2949 * gdbarch.h, gdbarch.c: Regenerated.
2951 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2953 * infrun.c (stepping_past_breakpoint): New global variable.
2954 (stepping_past_breakpoint_ptid): Likewise.
2955 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
2956 Only switch threads if we need to single-step over a breakpoint hit
2957 in the previously selected thread. If stepping, remember previous
2958 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
2959 switch_to_thread instead of copying its contents.
2960 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
2961 prepare_to_proceed returns true.
2962 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
2963 (context_switch): Call switch_to_thread.
2964 (handle_inferior_event): Switch back to previous thread if requested
2965 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
2966 * gdbthread.h (switch_to_thread): Add prototype.
2967 * thread.c (switch_to_thread): Make global.
2969 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
2971 * p-valprint.c: Fix 7 ARI reported problems.
2972 (pascal_val_print): Fix one operator at end of line issue.
2973 Use paddress function to remove use of
2974 deprecated_print_address_numeric function (2 times).
2975 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
2976 (pascal_value_print): Fix 3 operator at end of line issues.
2978 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
2981 * arm-tdep.c (arm_in_call_stub): Delete.
2982 (arm_skip_stub): Handle from_arm and from_thumb stubs.
2984 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
2986 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
2989 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
2990 Jim Blandy <jimb@codesourcery.com>
2992 * NEWS: Update description of string changes. Mention print/s.
2993 * c-valprint.c (textual_element_type): New.
2994 (c_val_print): Use it. Do not skip address printing for pointers
2995 with a string format.
2996 (c_value_print): Doc update.
2997 * dwarf2read.c (read_array_type): Use make_vector_type.
2998 * gdbtypes.c (make_vector_type): New.
2999 (init_vector_type): Use it.
3000 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
3001 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
3002 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
3003 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
3004 (make_vector_type): New.
3005 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
3006 Call the language print routine for string format.
3007 (print_scalar_formatted): Call val_print for string format. Handle
3008 unsigned original types for char format.
3009 (validate_format): Do not reject string format.
3010 * stabsread.c (read_type): Use make_vector_type.
3011 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
3013 2007-09-04 Michael Snyder <msnyder@access-company.com>
3015 * expprint.c (print_subexp_standard): Check strchr for null.
3016 * Makefile.in (expprint.o): Depend on gdb_assert.h.
3018 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
3020 * stabsread.c (patch_block_status): Guard against null.
3021 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
3023 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3025 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
3026 in internal error message.
3028 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3029 Daniel Jacobowitz <dan@codesourcery.com>
3031 * infcmd.c (post_create_inferior): Update comment.
3032 (run_command_1): Always call post_create_inferior with 0 as
3035 * i386-cygwin-tdep.h: New.
3036 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
3037 (win32_xfer_shared_library): Make it extern.
3039 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
3041 (win32_so_ops): Delete.
3042 (get_relocated_section_addrs): Delete.
3043 (solib_symbols_add): Delete.
3044 (register_loaded_dll): Delete.
3045 (win32_make_so): New.
3046 (handle_load_dll): Use win32_make_so.
3047 (win32_free_so): Free the passed in so.
3048 (win32_relocate_section_addresses): Delete.
3049 (win32_solib_create_inferior_hook): Delete.
3050 (handle_unload_dll): Don't add PE offset here. Free so with
3051 win32_free_so instead of free_so.
3052 (win32_special_symbol_handling): Delete.
3053 (get_win32_debug_event): Remove unneeded calls. Set state to
3054 TARGET_WAITKIND_LOADED on a dll unload.
3055 (do_initial_win32_stuff): Clear cygwin_load_start and
3057 (map_code_section_args): Delete.
3058 (dll_code_sections_add): Delete.
3059 (core_section_load_dll_symbols): Delete.
3060 (win32_xfer_shared_libraries): New.
3061 (win32_current_sos): Delete.
3062 (win32_xfer_partial): New.
3063 (open_symbol_file_object): Delete.
3064 (in_dynsym_resolve_code): Delete.
3065 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
3066 of win32_ops. Remove win32_so_ops settings. Don't set
3067 current_target_so_ops here.
3069 * Makefile.in (i386_cygwin_tdep_h): New variable.
3070 (i386-cygwin-tdep.o): Update dependencies.
3071 (win32-nat.o): Update dependencies.
3073 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3074 Daniel Jacobowitz <dan@codesourcery.com>
3076 * gdbarch.sh (core_xfer_shared_libraries): New.
3078 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3080 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
3082 * xml-support.c (gdb_xml_parse): Debug output tweaks.
3083 (xml_escape_text): New.
3084 * xml-support.h (xml_escape_text): Declare.
3086 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
3087 * config/i386/cygwin.mt (TDEPFILES): ... here.
3089 * win32-nat.c: (fetch_elf_core_registers): Delete.
3090 (win32_elf_core_fn): Delete.
3091 (_initialize_core_win32): Delete.
3093 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
3094 "xml-support.h" and "gdbcore.h".
3095 (i386_win32_gregset_reg_offset): New.
3096 (I386_WIN32_SIZEOF_GREGSET): New.
3097 (i386_win32_regset_from_core_section): New.
3098 (win32_xfer_shared_library): New.
3099 (struct cpms_data): New.
3100 (core_process_module_section): New.
3101 (win32_core_xfer_shared_libraries): New.
3102 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
3103 gregset_num_regs, sizeof_gregset members of tdep. Register
3104 regset_from_core_section and core_xfer_shared_libraries callbacks.
3106 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
3107 * gdbarch.h, gdbarch.c: Regenerate.
3109 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3111 * corelow.c (core_xfer_partial): Pass writebuf to
3112 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
3114 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
3116 * arm-tdep.h (arm_skip_stub): Declare.
3117 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
3119 (arm_pe_skip_trampoline_code): New function.
3120 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
3121 gdbarch_skip_trampoline_code callback.
3122 * Makefile.in (arm-wince-tdep.o): Update dependencies.
3124 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3126 * MAINTAINERS: Move Fred Fish to Past Maintainers.
3128 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3130 * configure.ac: Add --with-expat.
3131 * configure: Regenerated.
3133 2007-09-03 Andreas Schwab <schwab@suse.de>
3135 * configure.ac: Accept --with-system-readline.
3136 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
3137 * configure: Regenerate.
3138 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
3140 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
3142 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
3143 Daniel Jacobowitz <dan@codesourcery.com>
3145 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
3147 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3149 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
3151 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
3153 * top.c (print_gdb_version): Update for GPL version 3.
3155 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3157 * NEWS: Mention the build-id .debug files verification.
3159 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3161 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
3163 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3165 * Makefile.in (symfile.o): Update dependencies.
3166 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
3167 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
3168 (struct build_id): New structure.
3169 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
3170 (find_separate_debug_file): New variable BUILD_ID.
3171 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
3173 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3175 * varobj.c (struct varobj): Fix comment
3176 for the type member not to lie when it can be
3179 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3181 Implement -var-info-path-expression.
3183 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
3185 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
3186 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
3187 * varobj.c (struct varobj): New field 'path_expr'.
3188 (c_path_expr_of_child, cplus_path_expr_of_child)
3189 (java_path_expr_of_child): New.
3190 (struct language_specific): New field path_expr_of_child.
3191 (varobj_create): Initialize the path_expr field.
3192 (varobj_get_path_expr): New.
3193 (new_variable): Initialize the path_expr field.
3194 (free_variable): Free the path_expr field.
3195 (adjust_value_for_children_access): New parameter
3197 (c_number_of_children): Adjust.
3198 (c_describe_child): New parameter CFULL_EXPRESSION.
3199 Compute full expression.
3200 (c_value_of_child, c_type_of_child): Adjust.
3201 (cplus_number_of_children): Adjust.
3202 (cplus_describe_child): New parameter CFULL_EXPRESSION.
3203 Compute full expression.
3204 (cplus_name_of_child, cplus_value_of_child)
3205 (cplus_type_of_child): Adjust.
3206 * varobj.h (varobj_get_path_expr): Declare.
3208 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3210 * mi/mi-cmd-var.c (print_varobj): If a varobj
3211 type is NULL, don't try to print it.
3213 2007-08-30 Alan Modra <amodra@bigpond.net.au>
3215 * ppc-linux-nat.c (right_fill_reg): Delete.
3216 (supply_gregset): Use ppc_supply_gregset.
3217 (supply_fpregset): Use ppc_supply_fpregset.
3218 (fill_gregset): Use ppc_collect_gregset.
3219 (fill_fpregset): Use ppc_collect_fpregset.
3220 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
3221 (right_supply_register, ppc_linux_supply_gregset): Delete.
3222 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
3223 (ppc_linux_supply_fpregset): Delete.
3224 (ppc_linux_collect_gregset): New function.
3225 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
3226 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
3227 ppc_linux_supply_gregset, and ppc_collect_gregset.
3228 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
3229 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
3230 (ppc_linux_regset_from_core_section): Update.
3231 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
3232 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
3233 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
3234 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
3235 (ppcobsd_collect_gregset): Likewise.
3236 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
3237 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
3238 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
3239 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
3240 (rs6000_aix64_reg_offsets): Likewise.
3241 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
3242 ppc_floating_point_unit_p.
3243 (rs6000_aix_collect_regset): Similarly.
3244 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
3245 when regsize is larger than regcache register size.
3246 (ppc_collect_reg): Similarly zero pad when regsize is larger than
3247 regcache register size.
3248 (ppc_greg_offset): New function, split out from..
3249 (ppc_supply_gregset): ..here. Separate code handling all regs from
3250 single reg case. Correct xer offset.
3251 (ppc_fpreg_offset): New function, split out from..
3252 (ppc_supply_fpregset): ..here. Separate code handling all regs from
3254 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
3255 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
3256 a fp unit, instead return if no fp.
3258 2007-08-29 Jim Blandy <jimb@codesourcery.com>
3260 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
3261 this code has not been compiled for two years.
3263 2007-08-29 Michael Snyder <msnyder@access-company.com>
3265 * event-top.c (gdb_readline2): Return after EOF.
3267 2007-08-29 Joel Brobecker <brobecker@adacore.com>
3269 * symtab.c: Remove a function that has been commented out 3 years ago.
3271 2007-08-29 Randolph Chung <tausq@debian.org>
3273 * hppa-tdep.c (hppa32_cannot_fetch_register)
3274 (hppa64_cannot_fetch_register): New functions.
3275 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
3276 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
3278 2007-08-28 Michael Snyder <msnyder@access-company.com>
3280 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
3281 check for null before calling check_typedef.
3283 * NEWS: Mention Coverity bug fixes.
3285 2007-08-27 Markus Deuling <deuling@de.ibm.com>
3287 * spu-tdep.c (spu_pointer_to_address): New function.
3288 (spu_integer_to_address): Likewise.
3289 (spu_gdbarch_init): Add spu_pointer_to_address and
3290 spu_integer_to_address to gdbarch.
3292 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
3294 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
3296 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3298 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
3299 that contains the GDB license.
3300 * copying.awk: Adjust to the GPLv3 wording.
3301 * copying.c: Regenerate.
3303 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3305 * copying.awk: Protoization, and i18n markup.
3307 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3309 * config/djgpp/djconfig.sh: Switch license to GPLv3.
3310 * copyright.sh: Likewise.
3311 * gdb-events.sh: Likewise.
3312 * gdb_gcore.sh: Likewise.
3313 * gdb_mbuild.sh: Likewise.
3314 * gdbarch.sh: Likewise.
3315 * observer.sh: Likewise.
3316 * features/feature_to_c.sh: Likewise.
3317 * regformats/regdat.sh: Likewise.
3319 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3321 Switch the license of all .c files to GPLv3.
3322 Switch the license of all .h files to GPLv3.
3323 Switch the license of all .cc files to GPLv3.
3325 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3327 * configure.ac: Switch license to GPLv3.
3329 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3331 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
3332 determine the file's FPU type.
3334 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3336 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
3337 (mips_n32n64_push_dummy_call): Always increment float_argreg along
3338 with argreg. Use mips_n32n64_fp_arg_chunk_p.
3340 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3342 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
3344 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
3345 (elf_lookup_lib_symbol): Fix formatting.
3347 2007-08-21 Michael Snyder <msnyder@access-company.com>
3349 * dbxread.c (read_dbx_symtab): Guard null deref.
3352 * valops.c (find_overload_match): Guard against NULL.
3354 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3356 * MAINTAINERS (Patch Champions): Remove self.
3358 2007-08-21 Chris Smith <chris.smith@st.com>
3360 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
3363 2007-08-18 Michael Snyder <msnyder@access-company.com>
3365 * stabsread.c (dbx_lookup_type): Memory leak.
3367 * event-loop.c (delete_async_signal_handler): Move pointer null
3368 test to before pointer dereference.
3370 * ui-out.c (append_header_to_list): Possible cut and paste error.
3372 * MAINTAINERS: white space tweak.
3374 2007-08-17 Michael Snyder <msnyder@access-company.com>
3376 * stack.c (print_frame): Memory leak.
3378 * completer.c (filename_completer): Avoid memory leak.
3379 Remove unnecessary nested block.
3381 * c-exp.y (parse_number): Memory leak.
3383 * completer.c (location_completer): Must free 'fn_list', except
3384 in the one case where it is returned (as 'list').
3386 * varobj.c (value_of_root): Memory leak.
3388 * gdbtypes.h (virtual_base_list): Remove export decl.
3389 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
3390 (virtual_base_index): Memory leak.
3391 (virtual_base_index_skip_primaries): Ditto.
3393 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
3395 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
3396 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
3397 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
3398 (xtensa_read_register): New function.
3399 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
3400 (xtensa_insn_kind): New types.
3401 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
3402 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
3403 (xtensa_verify_config, xtensa_pseudo_register_read)
3404 (xtensa_pseudo_register_write, xtensa_extract_return_value)
3405 (xtensa_store_return_value)
3406 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
3407 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
3408 (xtensa_frame_this_id, xtensa_frame_prev_register)
3409 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
3410 (call0_frame_cache, call0_frame_get_reg_at_entry)
3411 (call0_classify_opcode, call0_track_op)
3412 (call0_analyze_prologue, call0_frame_cache): New functions.
3414 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
3416 * breakpoint.c (bpstat_free): New.
3417 (bpstat_clear): Use bpstat_free.
3418 (delete_breakpoint): Document why we cannot
3419 remove bpstats from stop_bpstat.
3420 * breakpoint.h (bpstat_free): Declare.
3422 2007-08-16 Michael Snyder <msnyder@access-company.com>
3424 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
3426 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
3427 Joel Brobecker <brobecker@adacore.com>
3429 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
3431 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
3432 Joel Brobecker <brobecker@adacore.com>
3434 * ada-lang.c (possible_user_operator_p): Alternative fix to last
3435 checkin guarding against NULL.
3437 2007-08-14 Michael Snyder <msnyder@access-company.com>
3439 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
3440 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
3441 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
3442 go at beginning of new line.
3444 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
3445 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
3446 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
3447 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
3448 tui-winsource.h, tui.c, tui.h: Function declarations and
3449 definitions, wrap long lines.
3451 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
3452 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
3453 Reformat block comments to GNU standard.
3455 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
3456 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
3457 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
3458 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
3459 tui.c, tui.h: Comment reformatting to coding standard (capitals,
3460 spaces after periods, etc).
3462 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
3463 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
3464 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
3465 tui-winsource.h: Whitespace changes, fix pointer declarations
3468 2007-08-14 Joel Brobecker <brobecker@adacore.com>
3469 Michael Snyder <msnyder@access-company.com>
3471 * ada-lang.c (field_alignment): Guard against NULL.
3473 2007-08-14 Joel Brobecker <brobecker@adacore.com>
3475 * MAINTAINERS (Global Maintainers): Add self.
3477 2007-08-14 Michael Snyder <msnyder@access-company.com>
3479 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
3481 * ada-lang.c (possible_user_operator_p): Guard against NULL.
3483 * varobj.c (cplus_describe_child): Guard against null.
3484 Use "NULL" instead of "0" to initialize pointers.
3486 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
3488 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
3489 to match any gdbarch with matching OSABI. Set default ABI and FPU
3490 after running the OSABI handler.
3492 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
3494 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
3495 * config/i386/linux.mt (TDEPFILES): ...to here.
3497 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
3499 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
3500 the 'silent' parameter and code to implement that.
3501 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
3503 * win32-nat.c: Adjust.
3506 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
3508 * breakpoint.c (update_breakpoints_after_exec): Don't
3509 set address to zero.
3511 2007-08-13 Michael Snyder <msnyder@access-company.com>
3513 * valops.c: Whitespace clean-up.
3515 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
3517 * event-top.c (command_line_handler): Memory leak.
3519 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
3520 No need to make copy.
3522 * source.c (find_source_lines): Require symtab 's'.
3524 2007-08-11 Michael Snyder <msnyder@access-company.com>
3526 * completer.c: Spelling fix in comments.
3528 2007-08-10 Michael Snyder <msnyder@access-company.com>
3530 * gdbtypes.c: Coding standard cleanup.
3531 * gdbtypes.c: Comment/whitespace cleanup.
3533 * stabsread.c (read_huge_number): Attempt to compute value before
3534 values that it depends on.
3536 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
3537 (decode_objc): Use "NULL" instead of 0.
3538 (find_method): Ditto.
3539 (decode_all_digits): Ditto.
3540 (decode_dollar): Ditto.
3542 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
3544 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
3546 * solib-svr4.c (enable_break): Don't free tmp_pathname until
3549 * completer.c: Comment/whitespace cleanup.
3551 2007-08-10 Joel Brobecker <brobecker@adacore.com>
3553 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
3555 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
3557 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
3558 allocated file descriptors.
3560 2007-08-10 Joel Brobecker <brobecker@adacore.com>
3562 * Makefile.in: Minor cleanup throughout; add some missing variables,
3563 add some missing rules, remove some rules that are no longer needed,
3564 and fix the dependencies in several rules.
3566 2007-08-10 Ludovic Courtès <ludo@gnu.org>
3568 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
3569 (scm_lang_h, scm_tags_h): New.
3570 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
3571 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
3572 * defs.h (enum language): Add `language_scm'.
3574 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
3577 2007-08-09 Ludovic Courtès <ludo@gnu.org>
3579 * MAINTAINERS (Write After Approval): Add myself.
3581 2007-08-09 Michael Snyder <msnyder@access-company.com>
3583 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
3585 2007-08-09 Joel Brobecker <brobecker@adacore.com>
3587 * solib-som.c (som_relocate_section_addresses): Stop saving
3588 the $CODE$ section in the so_list structure.
3590 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
3592 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
3593 (xtensa_register_group_t): Add entries for coprocessors.
3594 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
3595 (xtensa_add_reggroups): Likewise.
3596 (xtensa_register_reggroup_p): Likewise.
3597 (xtensa_coprocessor_register_group): New function.
3600 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3602 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
3604 2007-08-08 Michael Snyder <msnyder@access-company.com>
3606 * target.c (target_read_string): Guard against null.
3608 * varobj.c (value_of_root): Move alloc after return to avoid leak.
3610 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
3611 (tui_set_layout_for_display_command): Mem leak.
3613 * top.c (command_line_input): Memory leak.
3615 * solib-svr4.c (open_symbol_file_object): Memory leak.
3616 (svr4_current_sos): Ditto.
3617 (enable_break): Ditto.
3619 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
3621 * dwarf2read.c (add_partial_symbol): Memory leak.
3623 2007-08-06 Michael Snyder <msnyder@access-company.com>
3625 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
3627 2007-08-05 Jim Blandy <jimb@codesourcery.com>
3629 * macroexp.c (init_buffer): Remove testing code that overrides the
3630 caller's length guess.
3631 (gather_arguments): Use a larger initial size, now that the vector
3632 growth code has been exercised.
3634 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
3636 * solib-target.c (solib_target_relocate_section_addresses): Add
3637 orig_delta to addr_high.
3639 2007-08-04 Michael Snyder <msnyder@access-company.com>
3641 * remote-fileio.c (remote_fileio_func_write): Memory leak.
3643 * breakpoint.c (print_one_breakpoint): Off by one error.
3645 * tracepoint.c (add_register): Off by one error.
3646 (stringify_collection_list): Free malloc buffer.
3648 2007-08-03 Michael Snyder <msnyder@access-company.com>
3650 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
3651 stop memory leak, straighten out cleanups.
3653 * jv-lang.c (java_link_class_type): Guard against NULL.
3655 2007-08-02 Michael Snyder <msnyder@access-company.com>
3657 * gdbtypes.c (create_set_type): Test should only be done within
3658 the preceeding if block. Otherwise, variable is uninitialized.
3660 * gdbtypes.c (check_typedef): Guard NULL.
3662 2007-08-01 Michael Snyder <msnyder@access-company.com>
3664 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
3665 avoid dereference in lookup_cmd_1.
3667 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
3668 clean up long lines.
3669 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
3670 (tui_alloc_win_info): Ditto.
3671 (tui_add_content_elements): Ditto.
3672 * tui/tui-file.c (tui_file_magic): Ditto.
3674 2007-07-31 Michael Snyder <msnyder@access-company.com>
3676 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
3677 True and false paths are mutually exclusive.
3679 * event-top.c (command_line_handler): Add pedantic return.
3681 * f-valprint.c (info_common_command): Bail out to prevent null
3682 pointer deref. Break up a long line.
3684 * exec.c (xfer_memory): Remove redundant condition from 'if'.
3686 * symfile.c (reread_separate_symbols): Free xmalloced memory.
3688 * printcmd.c (build_address_symbolic): Remove dead code and dead
3691 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
3693 * linespec.c (minsym_found): Advance to the next line if possible.
3695 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
3697 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
3698 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
3699 solib-svr4.o, and add solib-target.o
3701 2007-07-27 Michael Snyder <msnyder@access-company.com>
3703 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
3705 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
3707 * MAINTAINERS (Write After Approval): Add myself.
3709 2007-07-26 Maciej W. Rozycki <macro@mips.com>
3711 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
3714 2007-07-25 Maciej W. Rozycki <macro@mips.com>
3716 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
3718 2007-07-24 Michael Snyder <msnyder@access-company.com>
3720 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
3721 'buffer' must cover both branches that call strcmp (Coverity).
3723 * stack.c (print_frame_args): Check return value of lookup_symbol.
3725 * ax-gdb.c (find_field): Guard against null ptr.
3727 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
3729 * regformats/reg-spu.dat: Fix order of npc, id registers.
3731 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
3733 * target.c (memory_xfer_partial): Accesses to unmapped overlay
3734 sections should always go to the executable file.
3736 2004-07-20 Chris Dearman <chris@mips.com>
3738 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
3739 prologue instructions.
3741 2007-07-20 Maciej W. Rozycki <macro@mips.com>
3743 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
3746 2007-07-20 Chris Dearman <chris@mips.com>
3747 Maciej W. Rozycki <macro@mips.com>
3749 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
3752 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
3753 Daniel Jacobowitz <dan@codesourcery.com>
3755 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
3756 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
3758 * NEWS: Mention gdbserver DLL support.
3760 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
3762 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
3764 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
3766 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
3769 2007-07-13 Kevin Buettner <kevinb@redhat.com>
3771 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
3774 2007-07-12 Kevin Buettner <kevinb@redhat.com>
3776 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
3777 (mep_analyze_prologue): Add case for BRA instruction.
3779 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
3781 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
3783 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
3785 * breakpoint.c: Include "top.h".
3786 (breakpoint_1): Don't set convenience variable $_ if server prefix
3788 (_initialize_breakpoint): Describe this behaviour in command help.
3790 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
3792 * solib-target.c (library_list_start_segment): Cast address to
3795 2007-07-06 Mark Kettenis <kettenis@gnu.org>
3797 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
3798 for terminated processes.
3800 2007-07-05 Michael Snyder <msnyder@access-company.com>
3802 * event-top.c (cli_command_loop): Prompt string can (and should)
3803 be freed after call to readline (Coverity). Also move local var
3804 declarations into block where they are used.
3806 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
3807 should) be freed after call to readline (Coverity). Also move
3808 local var declarations into block where they are used.
3810 2007-07-03 Andreas Schwab <schwab@suse.de>
3812 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
3815 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
3816 Thiago Bauermann <bauerman@br.ibm.com>
3817 Joseph S. Myers <joseph@codesourcery.com>
3818 Daniel Jacobowitz <dan@codesourcery.com>
3820 * remote.c (remote_check_symbols): Use
3821 gdbarch_convert_from_func_ptr_addr.
3822 * infcall.c (find_function_addr): Handle function descriptors
3823 without debugging information.
3824 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
3825 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
3826 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
3827 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
3828 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
3829 allow SEC_CODE and SEC_DATA.
3830 (enable_break): Update calls. Pass current_target to solib_add.
3831 Use gdbarch_convert_from_func_ptr_addr.
3833 2007-07-03 Ilko Iliev <iliev@ronetix.at>
3834 Daniel Jacobowitz <dan@codesourcery.com>
3836 * symfile.c (print_transfer_performance): Avoid integer overflow.
3839 2007-07-03 Markus Deuling <deuling@de.ibm.com>
3841 * cp-namespace.c (lookup_symbol_file): Add block to
3842 lookup_symbol_global call.
3843 * Makefile.in (solist_h): Add dependency on symtab header.
3844 (symtab.o): Add dependency on solist header.
3845 * solib.c (solib_global_lookup): New function.
3846 * solib-svr4.c (scan_dyntag): Likewise.
3847 (elf_locate_base): Call helper routine scan_dyntag.
3848 (elf_lookup_lib_symbol): New function.
3849 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
3850 * solist.h (symtab.h): New include.
3851 (struct target_so_ops): New member lookup_lib_global_symbol.
3852 (solib_global_lookup): New prototype.
3853 * symtab.c: New include solist.h.
3854 (lookup_objfile_from_block): New function.
3855 (lookup_global_symbol_from_objfile): New function.
3856 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
3857 (lookup_symbol_global): Call library-specific lookup procedure.
3858 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
3860 * NEWS: Document framework.
3862 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
3864 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
3867 * cli/cli-script.c (build_command_line): Update NULL check.
3869 2007-07-02 Michael Snyder <msnyder@access-company.com>
3871 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
3873 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
3875 * Makefile.in (XMLFILES): Add library-list.dtd.
3876 (ALLDEPFILES): Add solib-target.o.
3877 (solib-target.o): New rule.
3878 * remote.c (PACKET_qXfer_libraries): New constant.
3879 (remote_protocol_features): Add qXfer:libraries:read.
3880 (remote_wait): Recognize library stop replies.
3881 (remote_async_wait): Likewise. Fix typo.
3882 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3883 (init_remote_async_ops): Fix typo.
3884 (_initialize_remote): Register "set remote library-info-packet".
3885 * solib-som.c (som_current_sos): Set addr_low and addr_high.
3886 * solib-target.c: New file.
3887 * solib.c (solib_map_sections): Use addr_low and addr_high instead
3889 (info_sharedlibrary_command): Likewise.
3890 (solib_add_library, solib_remove_library): New.
3891 * solist.h (struct so_list): Replace textsection with addr_low and
3893 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
3894 * NEWS: Describe new qXfer:libraries:read and shared library
3896 * features/library-list.dtd: New.
3898 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
3900 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
3901 (start_remote): Use STOP_QUIETLY_REMOTE.
3902 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
3903 support on a SOLIB_ADD definition. Update breakpoints_inserted.
3904 Update to match shared library event breakpoint support. Only
3905 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
3906 (normal_stop): Handle TARGET_WAITKIND_LOADED.
3907 * fork-child.c (startup_inferior): Do not set
3908 inferior_ignoring_startup_exec_events
3909 * inferior.h (inferior_ignoring_startup_exec_events): Delete
3911 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
3913 2007-07-02 Markus Deuling <deuling@de.ibm.com>
3915 * breakpoint.c (insert_bp_location): Remove dead code
3916 (DISABLE_UNSETTABLE_BREAK).
3917 (disable_breakpoints_in_shlibs)
3918 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
3920 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
3922 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
3923 Call insert_bp_location.
3925 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
3927 * core-regset.c (fetch_core_registers): Work around gcc 3.4
3930 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
3932 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
3935 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
3937 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
3938 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
3939 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
3940 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
3941 to display_gdb_prompt.
3943 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
3946 * target.c (memory_xfer_partial): Do not continue past targets with
3949 2007-06-30 Andreas Schwab <schwab@suse.de>
3951 * m68k-tdep.c (m68k_ps_type): New.
3952 (m68k_init_types): New.
3953 (m68k_register_type): Use m68k_ps_type for PS register.
3954 (_initialize_m68k_tdep): Call m68k_init_types.
3956 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
3957 from the generic m68k arch.
3959 2007-06-28 Michael Snyder <msnyder@access-company.com>
3961 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
3964 * linux-thread-db.c (thread_db_get_thread_local_address): Add
3965 gdb_assert before using return value of find_thread_pid (Coverity).
3967 * source.c (unset_substitute_path_command): Plug leak (Coverity).
3969 * cli/cli-script.c (build_command_line): Add null pointer guard
3972 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
3974 * linux-thread-db.c (thread_db_attach): Delete.
3975 (thread_db_detach): Typo fix. Call target_mourn_inferior
3976 instead of fixing up proc_handle.
3977 (have_threads_callback, have_threads): New functions.
3978 (thread_db_wait): Remove dead proc_handle.pid check. Only
3979 translate PTIDs if we have registered threads. Check for new
3980 threads if we have none.
3981 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
3982 (find_new_threads_callback): Only enable event reporting if TID == 0.
3983 (same_ptid_callback): New.
3984 (thread_db_get_thread_local_address): Check for new threads.
3985 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
3986 or to_post_startup_inferior.
3988 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
3990 * infrun.c (adjust_pc_after_break): Do not assume software single-step
3991 is always active if SOFTWARE_SINGLE_STEP_P is true.
3992 (resume): Use gdbarch_software_single_step[_p] instead of
3993 SOFTWARE_SINGLE_STEP[_P].
3994 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
3996 * gdbarch.sh (software_single_step): Remove target macro.
3997 * gdbarch.h, gdbarch.c: Regenerate.
3999 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4001 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
4002 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
4003 (struct gdbarch_swap, struct gdbarch_swap_registration,
4004 struct gdbarch_swap_registry, gdbarch_swap_registry,
4005 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
4006 current_gdbarch_swap_in_hack): Remove.
4007 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
4008 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
4009 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
4010 (deprecated_current_gdbarch_select_hack): Likewise.
4011 * gdbarch.h, gdbarch.c: Regenerate.
4013 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4015 * infrun.c (clear_proceed_status): Clean up stop_registers.
4016 (normal_stop): Allocate regcache for stop_registers.
4017 (struct inferior_status): Remove stop_registers member.
4018 (save_inferior_status): Do not save stop_registers.
4019 (restore_inferior_status): Do not restore stop_registers.
4020 (discard_inferior_status): Do not discard stop_registers.
4021 (build_infrun): Remove.
4022 (_initialize_infrun): Do not swap stop_registers.
4024 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4026 * remote.c (remote_address_masked): If remote_address_size is zero,
4027 default to target address size.
4028 (build_remote_gdbarch_data): Remove.
4029 (_initialize_remote): Do not swap remote_address_size.
4031 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4033 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
4034 builtin_type_char, builtin_type_short, builtin_type_int,
4035 builtin_type_long, builtin_type_signed_char,
4036 builtin_type_unsigned_char, builtin_type_unsigned_short,
4037 builtin_type_unsigned_int, builtin_type_unsigned_long,
4038 builtin_type_float, builtin_type_double, builtin_type_long_double,
4039 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4040 builtin_type_bool, builtin_type_long_long,
4041 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4042 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
4043 variable declaration with compatibility macro.
4044 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
4045 builtin_type_char, builtin_type_short, builtin_type_int,
4046 builtin_type_long, builtin_type_signed_char,
4047 builtin_type_unsigned_char, builtin_type_unsigned_short,
4048 builtin_type_unsigned_int, builtin_type_unsigned_long,
4049 builtin_type_float, builtin_type_double, builtin_type_long_double,
4050 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4051 builtin_type_bool, builtin_type_long_long,
4052 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4053 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
4054 (build_gdbtypes): Remove.
4055 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
4056 opaque-type-resolution command here. Do not call
4057 deprecated_register_gdbarch_swap.
4059 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4061 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
4062 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
4063 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
4065 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
4066 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
4067 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
4068 (build_parse): Remove.
4069 (_initialize_parse): Do not call build_parse. Do not register
4070 msym_ types for gdbarch-swapping.
4072 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
4073 instead of creating private type.
4075 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
4076 (_initialize_xcoffread): Do not initialized them.
4077 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
4079 * mdebugread.c (nodebug_func_symbol_type): Remove.
4080 (nodebug_var_symbol_type): Remove.
4081 (_initialize_mdebugread): Do not initialize them.
4082 (parse_symbol): Use builtin nodebug_ type instead of them.
4083 (parse_procedure): Likewise.
4085 2007-06-21 Chris Dearman <chris@mips.com>
4087 * printcmd.c (do_one_display): If display/i, start with an initial
4088 line feed to avoid bad layout if there is a branch delay slot.
4090 2007-06-21 Nigel Stephens <nigel@mips.com>
4091 Maciej W. Rozycki <macro@mips.com>
4093 * disasm.c (gdb_print_insn): Return the number of branch delay
4094 slot instructions too.
4095 * disasm.h (gdb_print_insn): Update prototype.
4096 * printcmd.c (branch_delay_insns): New variable to record the
4097 number of delay slot instructions after disassembling a branch.
4098 (print_formatted): Record the number of branch delay slot
4100 (do_examine): When disassembling, if the last instruction
4101 disassembled has any branch delay slots, then bump the count so
4102 that they get disassembled too.
4103 * tui/tui-disasm.c (tui_disassemble): Update the call to
4105 * NEWS: Document the new behaviour.
4107 2007-06-21 Andreas Schwab <schwab@suse.de>
4109 * regcache.c (write_pc_pid): Restore missing else.
4111 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
4113 * regcache.c (regcache_print): Use get_current_regcache ()
4114 instead of current_regcache.
4116 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
4119 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
4120 instead of bfd_make_section_anyway.
4121 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
4122 when clearing SEC_LOAD.
4124 2007-06-19 Joseph Myers <joseph@codesourcery.com>
4126 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
4127 registers for big-endian.
4129 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4131 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
4132 * disasm.c (dump_insns, gdb_print_insn): Likewise.
4133 * gdbarch.c, gdbarch.h: Regenerate.
4135 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4137 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
4138 gdbarch_believe_pcc_promotion.
4139 * stabsread.c (define_symbol): Likewise.
4140 Remove unnecessary definition.
4141 * coffread.c (process_coff_symbol): Remove unnecessary code.
4142 * gdbarch.c, gdbarch.h: Regenerate.
4144 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
4146 * configure.ac: Do not use ${objdir}.
4147 * configure: Regenerated.
4149 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
4151 * gdbarch.sh (deprecated_register_size): Remove.
4152 * gdbarch.h, gdbarch.c: Regenerate.
4154 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
4155 by INT_REGISTER_SIZE.
4156 (thumb_get_next_pc, arm_return_in_memory): Likewise.
4157 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
4158 * ia64-tdep.c (ia64_gdbarch_init): Do not call
4159 set_gdbarch_deprecated_register_size.
4161 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4163 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
4164 gdbarch_deprecated_fp_regnum.
4165 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
4166 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
4167 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4168 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
4170 * gdbarch.c, gdbarch.h: Regenerate.
4172 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4174 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
4175 gdbarch_extract_return_value.
4176 * value.c (generic_use_struct_convention): Likewise (comment).
4177 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
4178 * arch-utils.c (legacy_return_value): Likewise.
4179 * arch-utils.h (legacy_return_value): Likewise (comment).
4180 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
4181 gdbarch_store_return_value.
4182 * stack.c (return_command): Likewise (comment).
4183 * arch-utils.h (legacy_return_value): Likewise (comment).
4184 * arch-utils.c (legacy_return_value): Likewise.
4185 * gdbarch.c, gdbarch.h: Regenerate.
4187 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4189 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
4190 gdbarch_deprecated_use_struct_convention.
4191 * arch-utils.c (legacy_return_value): Likewise.
4192 * gdbarch.c, gdbarch.h: Regenerate.
4194 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4196 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
4197 gdbarch_deprecated_function_start_offset.
4198 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
4199 * linespec.c (minsym_found): Likewise.
4200 * infrun.c (handle_inferior_event): Likewise.
4201 * infcall.c (find_function_addr): Likewise.
4202 * cli/cli-cmds.c (disassemble_command): Likewise.
4203 * gdbarch.c, gdbarch.h: Regenerate.
4205 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4207 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
4208 gdbarch_deprecated_reg_struct_has_addr.
4209 * infcall.c (call_function_by_hand): Likewise.
4210 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
4211 * gdbarch_deprecated_reg_struct_has_addr_p.
4212 * infcall.c (call_function_by_hand): Likewise.
4213 * gdbarch.c, gdbarch.h: Regenerate.
4215 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4217 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4218 * sh-tdep.c (sh_extract_struct_value_address): Remove.
4219 (sh_gdbarch_init): Remove
4220 set_gdbarch_deprecated_extract_struct_value_address.
4221 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
4222 (sh64_gdbarch_init): Remove
4223 set_gdbarch_deprecated_extract_struct_value_address.
4224 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
4225 (ia64_gdbarch_init): Remove
4226 set_gdbarch_deprecated_extract_struct_value_address.
4227 * frv-tdep.c (frv_extract_struct_value_address): Remove.
4228 (frv_gdbarch_init): Remove
4229 set_gdbarch_deprecated_extract_struct_value_address.
4230 * gdbarch.c, gdbarch.h: Regenerate.
4232 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4234 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
4235 * v850-tdep.c (v850_unwind_sp): Likewise.
4236 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
4237 * stack.c (frame_info): Likewise.
4238 * stabsread.c (define_symbol): Likewise.
4239 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
4240 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
4241 (sh_unwind_sp): Likewise.
4242 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
4243 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
4244 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
4245 (rs6000_frame_cache): Likewise.
4246 * rs6000-nat.c (store_register): Likewise.
4247 * remote-mips.c (mips_wait): Likewise.
4248 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4249 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4250 (ppc64_sysv_abi_push_dummy_call): Likewise.
4251 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4252 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4253 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4254 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4255 * m32r-rom.c (m32r_supply_register): Likewise.
4256 * frame.c (frame_sp_unwind): Likewise.
4257 * mips-tdep.c (mips_insn16_frame_cache)
4258 (mips_insn32_frame_cache): Likewise (comment).
4259 * m68klinux-nat.c (supply_gregset): Likewise.
4260 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
4261 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
4262 * i386-tdep.c (i386_get_longjmp_target): Likewise.
4263 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4264 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
4265 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
4266 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
4267 (cris_register_type, crisv32_register_type)
4268 (cris_dwarf2_frame_init_reg): Likewise.
4269 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4270 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
4271 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
4272 * libunwind-frame.c (libunwind_frame_cache): Likewise.
4274 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
4275 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
4276 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
4277 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
4278 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
4279 * v850-tdep.c (v850_unwind_pc): Likewise.
4280 * stack.c (frame_info): Likewise.
4281 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
4282 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
4283 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
4284 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
4285 (sh_dsp_show_regs): Likewise.
4286 * shnbsd-tdep.c (shnbsd_supply_gregset)
4287 (shnbsd_collect_gregset): Likewise.
4288 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
4289 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
4290 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
4291 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4292 (6000_register_reggroup_p, rs6000_unwind_pc)
4293 (rs6000_frame_cache): Likewise.
4294 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
4295 (rs6000_store_inferior_registers): Likewise.
4296 * remote-mips.c (mips_wait, mips_load): Likewise.
4297 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4298 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4299 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4300 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4301 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
4302 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4303 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
4304 (store_ppc_registers, fill_gregset): Likewise.
4305 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
4306 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
4307 * mipsnbsd-nat.c (getregs_supplies): Likewise.
4308 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
4309 * m68klinux-nat.c (supply_gregset): Likewise.
4310 * irix5-nat.c (fill_gregset): Likewise.
4311 * i386-tdep.c (i386_unwind_pc): Likewise.
4312 * i386-linux-nat.c (i386_linux_resume): Likewise.
4313 * frame.c (get_prev_frame_1): Likewise.
4314 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4315 * dbug-rom.c (dbug_supply_register): Likewise.
4316 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
4317 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
4318 (cris_register_type, crisv32_register_type, crisv32_register_name)
4319 (cris_dwarf2_frame_init_reg, find_step_target)
4320 (cris_software_single_step, cris_supply_gregset)
4321 (cris_regnums): Likewise.
4322 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4323 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4324 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
4325 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
4326 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
4328 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
4329 * dbug-rom.c (dbug_supply_register): Likewise.
4330 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
4331 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
4332 * win32-nat.c (win32_resume): Likewise.
4333 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
4334 * m68k-tdep.c (m68k_register_type): Likewise.
4335 * m68klinux-nat.c (supply_gregset): Likewise.
4337 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
4338 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
4339 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
4340 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
4341 (fv_reg_base_num, dr_reg_base_num): Likewise.
4342 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
4343 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
4344 (sh64_extract_return_value, sh64_store_return_value)
4345 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
4346 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
4347 * procfs.c (procfs_fetch_registers, procfs_store_registers)
4348 (invalidate_cache): Likewise.
4349 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4350 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
4351 (mipsnbsd_fill_fpreg): Likewise.
4352 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
4353 (mipsnbsd_store_inferior_registers): Likewise.
4354 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
4355 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
4356 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
4357 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
4358 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
4359 (fill_fpregset): Likewise.
4360 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
4361 * i386-tdep.h (struct_return): Likewise (comment).
4362 * i386-nto-tdep.c (i386nto_register_area): Likewise.
4363 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
4364 (go32_store_registers): Likewise.
4365 * alpha-tdep.c (alpha_next_pc): Likewise.
4366 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4367 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
4368 (alphabsd_store_inferior_registers): Likewise.
4369 * core-regset.c (fetch_core_registers): Likewise.
4370 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
4372 * gdbarch.c, gdbarch.h: Regenerate.
4374 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
4376 * coffread.c (coff_sym_fns): Add default_symfile_segments.
4377 * dbxread.c (start_psymtab): Check HAVE_ELF.
4378 (aout_sym_fns): Likewise.
4379 * elfread.c (elf_symfile_segments): New.
4380 (elf_sym_fns): Add elf_symfile_segments.
4381 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
4382 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
4383 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
4384 * somread.c (som_sym_fns): Use default_symfile_segments.
4385 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
4386 (init_objfile_sect_indices): Call symfile_find_segment_sections.
4387 (default_symfile_segments): New function.
4388 (syms_from_objfile): Update call to find_sym_fns.
4389 (symfile_get_segment_data, free_symfile_segment_data): New.
4390 (symfile_map_offsets_to_segments): New.
4391 (symfile_find_segment_sections): New.
4392 * symfile.h (struct symfile_segment_data): New.
4393 (struct sym_fns): Add sym_segments.
4394 (default_symfile_segments, symfile_get_segment_data)
4395 (free_symfile_segment_data): New prototypes.
4396 (symfile_map_offsets_to_segments): Likewise.
4397 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
4398 * Makefile.in (COMMON_OBS): Remove elfread.o.
4399 (elf_internal_h): New.
4400 (elfread.o): Update.
4401 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
4403 * config.in, configure: Regenerated.
4404 * NEWS: Mention qOffsets changes.
4406 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4408 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
4409 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
4410 Replace global variable declaration with compatibility macro.
4411 (struct builtin_m2_type): New data type.
4412 (builtin_m2_type): Add prototype.
4413 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
4414 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
4415 Remove global variables.
4416 (m2_language_arch_info): Use builtin_m2_type instead of variables.
4417 (build_m2_types): New function.
4418 (m2_type_data): New variable.
4419 (builtin_m2_type): New function.
4420 (_initialize_m2_language): Do not build data types. Register
4421 m2_type_data per-gdbarch data.
4423 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4425 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
4426 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
4427 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
4428 builtin_type_f_real_s8, builtin_type_f_real_s16,
4429 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
4430 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
4431 variable declaration with compatibility macro.
4432 (struct builtin_f_type): New data type.
4433 (builtin_f_type): Add prototype.
4434 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
4435 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
4436 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
4437 builtin_type_f_real_s8, builtin_type_f_real_s16,
4438 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
4439 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
4440 (f_language_arch_info): Use builtin_f_type instead of variables.
4441 (build_fortran_types): Build builtin_f_type structure instead of
4442 setting global type variables.
4443 (f_type_data): New variable.
4444 (builtin_f_type): New function.
4445 (_initialize_f_language): Do not call build_fortran_types. Do not
4446 swap global type variables. Register f_type_data per-gdbarch data.
4448 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4450 * f-lang.c (_initialize_f_language): Do not initialize or
4451 swap builtin_type_string.
4453 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4455 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
4456 value_of_builtin_frame_reg): Remove.
4457 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
4458 inactive call to value_of_builtin_frame_reg.
4460 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4462 * gdbarch.sh (bfd_vma_bit): Remove.
4463 * gdbarch.c, gdbarch.h: Regenerate.
4465 * gdbtypes.h (builtin_bfd_vma_type): Remove.
4466 * gdbtypes.h (builtin_bfd_vma_type): Remove.
4467 (build_gdbtypes): Do not initialize it.
4468 (_initialize_gdbtypes): Do not swap it.
4470 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4472 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
4473 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
4474 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
4475 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
4476 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
4477 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
4478 builtin_type_vec64, builtin_type_vec128): Remove.
4479 (init_simd_type): Remove.
4480 (init_vector_type): Make global.
4481 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
4482 (build_gdbtypes): Do not build vector types.
4483 (_initialize_gdbtypes): Do not swap vector types.
4484 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
4485 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
4486 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
4487 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
4488 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
4489 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
4490 builtin_type_vec64, builtin_type_vec128): Remove declarations.
4491 (init_vector_type): Add prototype.
4493 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
4494 i386_sse_type members.
4495 (i386_mmx_type, i386_sse_type): Change from variables to functions.
4496 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
4497 (i386_init_types): Do not build vector types.
4498 (i386_mmx_type, i386_sse_type): New functions.
4499 (i386_register_type): Call them instead of using global variables.
4500 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
4501 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
4502 of using global variable.
4504 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
4505 and ppc_builtin_type_vec128 members.
4506 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
4507 (rs6000_builtin_type_vec128): Likewise.
4508 (rs6000_register_type): Call them instead of using builtin_type_vec64
4509 and builtin_type_vec128.
4510 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
4512 * spu-tdep.c (struct gdbarch_tdep): New data type.
4513 (spu_builtin_type_vec128): Remove variable.
4514 (spu_builtin_type_vec128): New function.
4515 (spu_register_type): Call it instead of using global variable.
4516 (spu_gdbarch_init): Allocate tdep structure.
4517 (spu_init_vector_type): Remove function.
4518 (_initialize_spu_tdep): Do not call it.
4520 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4522 * amd64-tdep.c (struct amd64_register_info): Remove.
4523 (amd64_register_info): Remove.
4524 (amd64_register_names): New static variable.
4525 (AMD64_NUM_REGS): Use amd64_register_names instead of
4526 amd64_register_info.
4527 (amd64_register_name): Likewise.
4528 (amd64_register_type): Do not refer to amd64_register_info.
4530 * s390-tdep.c (struct s390_register_info): Remove.
4531 (s390_register_info): Remove.
4532 (s390_register_name): Do not refer to s390_register_info.
4533 (s390_register_type): Likewise.
4535 * sparc64-tdep.c (struct sparc64_register_info): Remove.
4536 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
4537 (sparc64_register_names, sparc64_pseudo_register_names): New.
4538 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
4539 sparc64_register_names and sparc64_pseudo_register_names instead of
4540 sparc64_register_info and sparc64_pseudo_register_info.
4541 (sparc64_register_name): Likewise.
4542 (sparc64_register_type): Do not refer to sparc64_register_info
4543 and sparc64_pseudo_register_info.
4545 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4547 * c-lang.c (cplus_builtin_types): Remove.
4548 (enum cplus_primitive_types): New data type.
4549 (cplus_language_arch_info): New function.
4550 (cplus_language_defn): Set la_language_arch_info member. Do not set
4551 la_builtin_type_vector and string_char_type members.
4553 * f-lang.c (f_builtin_types): Remove.
4554 (enum f_primitive_types): New data type.
4555 (f_language_arch_info): New function.
4556 (f_language_de): Set la_language_arch_info member. Do not set
4557 la_builtin_type_vector and string_char_type members.
4559 * m2-lang.c (m2_builtin_types): Remove.
4560 (enum m2_primitive_types): New data type.
4561 (m2_language_arch_info): New function.
4562 (m2_language_defn): Set la_language_arch_info member. Do not set
4563 la_builtin_type_vector and string_char_type members.
4565 * objc-lang.c (objc_builtin_types): Remove.
4566 (objc_language): Set la_language_arch_info member. Do not set
4567 la_builtin_type_vector and string_char_type members.
4569 * p-lang.c (pascal_builtin_types): Remove.
4570 (enum pascal_primitive_types): New data type.
4571 (pascal_language_arch_info): New function.
4572 (pascal_language_defn): Set la_language_arch_info member. Do not set
4573 la_builtin_type_vector and string_char_type members.
4575 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4577 * regcache.c (struct regcache): Add ptid_t member.
4578 (regcache_xmalloc): Initialize it.
4579 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
4580 (regcache_dup): Likewise.
4581 (regcache_dup_no_passthrough): Likewise.
4582 (current_regcache): Make static.
4583 (registers_ptid): Remove variable.
4584 (get_thread_regcache): New function.
4585 (get_current_regcache): New function.
4586 (registers_changed): Implement by freeing current regcache.
4587 (regcache_raw_read): Do not refer to current_regcache. Set
4588 inferior_ptid to regcache->ptid while calling target routines.
4589 (regcache_raw_write): Likewise.
4590 (regcache_raw_supply): Do not refer to current_regcache.
4591 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
4592 (write_pc_pid): Likewise.
4593 (build_regcache): Remove.
4594 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
4595 or deprecated_register_gdbarch_swap. Do not initialize
4597 * regcache.h (get_current_regcache): Add prototype.
4598 (get_thread_regcache): Likewise.
4599 (current_regcache): Remove declaration.
4601 * corelow.c (core_open): Replace current_regcache by
4602 get_current_regcache ().
4603 * frame.c (frame_pop): Likewise.
4604 (put_frame_register): Likewise.
4605 (get_current_frame, create_new_frame): Likewise.
4606 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
4607 * stack.c (return_command): Likewise.
4608 * infcall.c (call_function_by_hand): Likewise.
4609 * infrun.c (resume): Likewise.
4610 (save_inferior_status, restore_inferior_status): Likewise.
4611 * linux-fork.c (fork_load_infrun_state): Likewise.
4612 (fork_save_infrun_state): Likewise.
4613 * win32-nat.c (win32_resume): Likewise.
4614 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
4615 * monitor.c (monitor_wait): Likewise.
4616 * remote.c (remote_wait): Likewise.
4617 * remote-mips.c (mips_wait): Likewise.
4619 * bsd-kvm.c (bsd_kvm_open): Likewise
4620 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
4621 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
4622 * i386-linux-nat.c (i386_linux_resume): Likewise.
4623 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
4624 (ia64_linux_stopped_data_address): Likewise.
4626 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
4627 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
4628 * mep-tdep.c (current_me_module, current_options): Likewise.
4629 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
4631 * linux-nat.c (linux_nat_do_thread_registers): Use thread
4632 regcache instead of current_regcache. Call target_fetch_registers.
4633 (linux_nat_corefile_thread_callback): Update call site.
4634 (linux_nat_do_registers): Likewise.
4635 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
4636 of current_regcache.
4637 (procfs_make_note_section): Likewise.
4638 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
4639 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
4640 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
4641 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
4643 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4645 * regcache.c (read_register, read_register_pid): Remove.
4646 (write_register, write_register_pid): Likewise.
4647 * regcache.h (read_register, read_register_pid): Remove prototype.
4648 (write_register, write_register_pid): Likewise.
4650 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4652 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
4653 (write_pc): Likewise. Remove default implementation, add predicate.
4654 * gdbarch.c, gdbarch.h: Regenerate.
4655 * regcache.c (read_pc_pid): Use current regcache instead of calling
4657 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
4659 (generic_target_write_pc): Remove.
4660 * inferior.h (generic_target_write_pc): Remove.
4661 * frv-tdep.c (frv_gdbarch_init): Do not install it.
4662 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
4663 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4664 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
4665 * sh-tdep.c (sh_gdbarch_init): Likewise.
4666 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
4668 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
4669 argument. Use REGCACHE instead of calling read_register_pid.
4670 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
4671 * hppa-tdep.c (hppa_read_pc): Likewise.
4672 * hppa-tdep.h (hppa_read_pc): Likewise.
4673 * ia64-tdep.c (ia64_read_pc): Likewise.
4674 * m32r-tdep.c (m32r_read_pc): Likewise.
4675 * mep-tdep.c (mep_read_pc): Likewise.
4676 * mn10300-tdep.c (mn10300_read_pc): Likewise.
4677 * spu-tdep.c (spu_read_pc): Likewise.
4679 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
4680 argument. Use REGCACHE instead of calling write_register_pid.
4681 * avr-tdep.c (avr_write_pc): Likewise.
4682 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
4683 * hppa-tdep.c (hppa_write_pc): Likewise.
4684 * hppa-tdep.h (hppa_write_pc): Likewise.
4685 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
4686 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
4687 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
4688 * ia64-tdep.c (ia64_write_pc): Likewise.
4689 * ia64-tdep.h (ia64_write_pc): Likewise.
4690 * m32r-tdep.c (m32r_write_pc): Likewise.
4691 * m88k-tdep.c (m88k_write_pc): Likewise.
4692 * mep-tdep.c (mep_write_pc): Likewise.
4693 * mips-tdep.c (mips_write_pc): Likewise.
4694 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
4695 * mn10300-tdep.c (mn10300_write_pc): Likewise.
4696 * sparc-tdep.c (sparc_write_pc): Likewise.
4697 * spu-tdep.c (spu_write_pc): Likewise.
4699 * mips-tdep.c (read_signed_register): Remove.
4700 (read_signed_register_pid): Likewise.
4701 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
4702 Use REGCACHE instead of calling read_signed_register_pid.
4704 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4706 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
4707 * gdbarch.c, gdbarch.h: Regenerate.
4708 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
4709 (push_dummy_code): Likewise. Pass it to callee.
4710 (call_function_by_hand): Pass current regcache to push_dummy_code.
4712 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
4713 argument. Use it instead of current_regcache.
4715 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
4716 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
4718 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4720 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
4721 * gdbarch.c, gdbarch.h: Regenerate.
4722 * infrun.c (handle_inferior_event): Pass current frame to
4723 gdbarch_get_longjmp_target.
4725 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
4726 Read registers from FRAME instead of using read_register.
4727 Use get_frame_arch instead of current_gdbarch.
4728 * arm-tdep.c (arm_get_longjmp_target): Likewise.
4729 * i386-tdep.c (i386_get_longjmp_target): Likewise.
4730 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
4731 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
4732 (mips64_linux_get_longjmp_target): Likewise.
4733 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
4735 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4737 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
4738 * gdbarch.c, gdbarch.h: Regenerate.
4739 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
4740 * arch-utils.h (generic_skip_trampoline_code): Likewise.
4741 * infrun.c (handle_inferior_event): Pass current frame to
4742 gdbarch_skip_trampoline_code and skip_language_trampoline.
4744 * language.c (unk_lang_trampoline): Add FRAME argument.
4745 (skip_language_trampoline): Add FRAME argument. Pass it to
4746 skip_trampoline callback.
4747 * language.h: Add forward declaration of struct frame_info.
4748 (struct language_defn): Add FRAME argument to skip_trampoline.
4749 (skip_language_trampoline): Add FRAME argument.
4750 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
4751 to skip_trampoline callback.
4752 * cp-abi.h: Add forward declaration of struct frame_info.
4753 (cplus_skip_trampoline): Add FRAME argument.
4754 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
4755 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
4756 to gdbarch_skip_trampoline_code.
4757 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
4758 to gdbarch_skip_trampoline_code.
4760 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
4761 * symtab.h (find_solib_trampoline_target): Likewise.
4762 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
4763 find_solib_trampoline_target.
4765 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
4766 from FRAME instead of calling read_register.
4768 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
4769 argument. Read registers from FRAME instead of using read_register.
4770 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
4771 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
4773 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
4776 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
4778 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
4779 registers from FRAME instead of using read_signed_register.
4781 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
4783 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
4784 instead of using read_register.
4785 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
4786 ppc64_standard_linkage_target.
4787 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
4788 Pass it to find_solib_trampoline_target. Read registers from FRAME
4789 instead of using read_register.
4791 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
4794 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4796 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
4798 * gdbarch.c, gdbarch.h: Regenerate.
4799 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
4801 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
4802 registers from FRAME instead of using read_register.
4803 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
4804 to alpha_next_pc. Use get_frame_pc instead of read_pc.
4805 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
4808 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
4809 from FRAME instead of using read_register.
4810 (thumb_get_next_pc): Likewise.
4811 (arm_get_next_pc): Likewise.
4812 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
4813 to arm_get_next_pc. Use get_frame_pc instead of read_register.
4814 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
4817 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
4818 from FRAME instead of using read_register.
4819 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
4820 to find_step_target.
4822 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
4823 from FRAME instead of using read_register / read_signed_register.
4824 (extended_mips16_next_pc): Likewise.
4825 (mips16_next_pc): Likewise.
4826 (mips_next_pc): Likewise.
4827 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
4828 to mips_next_pc. Use get_frame_pc instead of read_pc.
4829 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
4832 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
4833 of current frame. Read registers from FRAME.
4834 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
4835 branch_dest. Use get_frame_pc instead of read_pc.
4836 (rs6000_software_single_step): Likewise.
4837 (bl_to_blrl_insn_p): Do not call branch_dest.
4838 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
4841 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
4842 Read registers from FRAME instead of current regcache.
4843 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
4844 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
4845 * sparc-tdep.c (sparc_address_from_register): Remove.
4846 (sparc_analyze_control_transfer): Pass FRAME argument instead of
4847 GDBARCH. Pass FRAME to step_trap callback.
4848 (sparc_step_trap): Add FRAME argument.
4849 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
4850 to sparc_analyze_control_transfer. Read registers from FRAME instead
4851 of calling sparc_address_from_register.
4852 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
4854 (sparc_address_from_register): Remove prototype.
4855 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
4856 (sparcnbsd_step_trap): Add FRAME argument.
4858 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
4859 by FRAME. Read registers from FRAME instead of REGCACHE.
4861 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4863 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
4864 instead of calling read_register.
4866 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
4867 calling write_register.
4869 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
4870 calling write_register.
4872 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
4873 instead of calling read_register.
4874 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
4875 instead of calling read_register and write_register.
4877 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
4878 instead of current_regcache.
4880 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
4881 of calling write_register.
4882 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
4883 parameter instead of current_regcache.
4885 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
4886 instead of calling read_register.
4887 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
4888 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
4889 (mips_n32n64_push_dummy_call): Likewise.
4890 (mips_o32_push_dummy_call): Likewise.
4891 (mips_o64_push_dummy_call): Likewise.
4893 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
4894 parameter instead of current_regcache.
4896 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
4897 Use it instead of read_register and write_register.
4898 (xtensa_register_read_masked): Likewise.
4899 (xtensa_pseudo_register_read): Update call.
4900 (xtensa_pseudo_register_write): Likewise.
4901 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
4902 instead of calling read_register.
4903 (xtensa_push_dummy_call): Update comment.
4905 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4907 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
4908 by frame_unwind_register_signed calls.
4909 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
4910 frame allocations when called with NULL NEXT_FRAME parameter.
4911 (read_next_frame_reg): Remove.
4913 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
4914 instead of reading the FPSCR register.
4915 (sh_frame_cache): Pass unwound FPSCR register value to
4916 sh_analyze_prologue.
4917 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
4919 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
4920 instead of reading the CTBP register.
4921 (v850_frame_cache): Pass unwound CTBP register value to
4922 v850_analyze_prologue.
4924 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4926 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
4927 * sh-tdep.c (sh_show_regs): Likewise.
4928 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
4929 (sh_generic_show_regs): Add FRAME parameter. Use register
4930 values from that frame instead of calling read_register.
4931 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
4932 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
4933 sh_dsp_show_regs): Likewise.
4934 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
4935 sh64_show_regs): Likewise.
4937 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4939 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
4940 current regcache instead of calling read_register.
4942 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4944 * mep-tdep.c (current_me_module): Read from current regcache
4945 instead of calling read_register.
4946 (current_options): Likewise.
4948 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4950 * cris-tdep.c (cris_stopped_data_address): Read register values
4951 from current frame instead of calling read_register.
4952 * frv-tdep.c (frv_stopped_data_address): Likewise.
4954 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4956 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
4957 instead of write_register (PC_REGNUM, ...).
4959 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4961 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
4962 explaining why the PC adjustment code is necessary.
4964 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
4966 * m68k-tdep.h (enum m68k_flavour): New.
4967 (struct gdbarch_tdep): New fields
4968 float_return, flavour and fpregs_present.
4969 * m68k-tdep.c (m68k_register_type): Use
4970 fpregs_present and conditionalize floating
4971 registers type on flavour.
4972 (m68k_register_names): New.
4973 (m68k_register_name): Use the above.
4974 (m68k_convert_register_p): Consult fpregs_present.
4975 (m68k_register_to_value, m68k_value_to_register):
4976 Use register_type to obtain the type of floating
4978 (m68k_svr4_extract_return_value): Check tdep->float_return.
4979 Use register_type to get the type of floating
4981 (m68k_svr4_store_return_value): Likewise.
4982 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
4983 (m68k_analyze_register_saves): Likewise.
4984 (m68k_gdbarch_init): Extract infromation
4985 from XML description, if present. Guess coldfire by
4986 looking at the file, if present. Conditionalize
4987 setting of long double format. Set decr_pc_after_break
4988 to 2 on coldfire and fido. Enable XML-driven
4989 register description.
4990 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
4991 size of tdep->fpreg_type, as opposed to hardcoded value.
4992 * Makefile.in (m68k-tdep.o): Update dependencies.
4994 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4996 * NEWS: Mention "info spu" commands and qXfer:spu:read and
4997 qXfer:spu:write remote packet types.
4999 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5001 * xml-tdesc.c (tdesc_start_target): New.
5002 (target_attributes): New.
5003 (tdesc_elements): Use it.
5004 * features/gdb-target.dtd: Add #FIXED version attribute for
5007 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
5009 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
5011 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
5013 * fork-child.c (fork_inferior): Update comment.
5015 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5017 * features/Makefile: Generate regformats for mips-linux and
5019 * features/sort-regs.xsl: Correct typo.
5020 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
5021 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
5024 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5026 * config/mips/linux.mh (TDEP_XML): New.
5027 * features/mips-linux.xml, features/mips64-linux.xml: New files.
5028 * mips-linux-nat.c (mips_linux_register_addr): Handle
5029 MIPS_RESTART_REGNUM.
5030 (mips64_linux_register_addr): Likewise.
5031 (super_xfer_partial, mips_linux_xfer_partial): New.
5032 (_initialize_mips_linux_nat): Add them to the target_ops.
5033 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
5034 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
5035 (mips_linux_o32_sigframe_init)
5036 (mips_linux_n32n64_sigframe_init): Likewise.
5037 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
5038 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
5039 "org.gnu.gdb.mips.linux" feature.
5040 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
5041 (mips_linux_restart_reg_p): New prototype.
5042 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
5043 initialization routine.
5044 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
5046 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5048 * Makefile.in (mips-tdep.o): Update.
5049 * mips-tdep.c (struct register_alias, mips_o32_aliases)
5050 (mips_n32_n64_aliases, mips_register_aliases): New.
5051 (mips_register_name): Call tdesc_register_name.
5052 (mips_tdesc_register_reggroup_p): New.
5053 (mips_pseudo_register_type, value_of_mips_user_reg): New.
5054 (mips_gdbarch_init): Add target-described register support.
5055 Register aliases for register names.
5056 * target-descriptions.c (tdesc_register_name): Make global.
5057 (tdesc_register_in_reggroup_p): New function, broken out from
5058 tdesc_register_reggroup_p.
5059 (tdesc_register_reggroup_p): Use it.
5060 * target-descriptions.h (tdesc_register_name)
5061 (tdesc_register_in_reggroup_p): New prototypes.
5062 * NEWS: Correct formatting. Mention MIPS register support.
5063 * features/mips-cp0.xml, features/mips-fpu.xml,
5064 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
5065 features/mips64-cpu.xml: New files.
5067 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5069 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
5070 * valops.c (value_cast): Likewise.
5071 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
5072 * ui-out.c (ui_out_field_core_addr): Likewise.
5073 * tracepoint.c (tracepoints_info): Likewise.
5074 * symtab.c (print_msymbol_info): Likewise.
5075 * solib-irix.c (irix_current_sos)
5076 (irix_open_symbol_file_object): Likewise.
5077 * remote.c (build_remote_gdbarch_data): Likewise.
5078 * prologue-value.c (make_pv_area): Likewise.
5079 * procfs.c (info_mappings_callback): Likewise.
5080 * printcmd.c (print_scalar_formatted)
5081 (deprecated_print_address_numeric): Likewise.
5082 * memattr.c (mem_info_command): Likewise.
5083 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
5084 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
5085 * exec.c (print_section_info): Likewise.
5086 * dwarf2read.c (read_subrange_type): Likewise.
5087 * dwarf2loc.c (find_location_expression): Likewise.
5088 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
5089 (signed_address_type, execute_stack_op): Likewise.
5090 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
5091 * gdbarch.c, gdbarch.h: Regenerate.
5093 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5095 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
5096 * arch-utils.c (show_architecture): Likewise.
5097 * remote-mips.c (mips_open): Likewise
5098 * nto-tdep.c (nto_find_and_open_solib)
5099 (nto_init_solib_absolute_prefix): Likewise.
5100 * nto-procfs (procfs_open): Likewise.
5101 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
5102 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
5103 * gdbarch.c, gdbarch.h: Regenerate.
5105 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5107 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
5108 * gdbtypes.c (build_flt): Likewise.
5109 * gdbarch.c, gdbarch.h: Regenerate.
5111 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5113 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
5114 gdbarch_breakpoint_from_pc.
5115 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
5116 * remote.c (remote_insert_breakpoint)
5117 (remote_insert_hw_breakpoint): Likewise.
5118 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
5119 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
5120 * breakpoint.h (bp_target_info): Likewise (comment).
5121 * breakpoint.c (read_memory_nobpt): Likewise.
5122 * mem-break.c (default_memory_insert_breakpoint): Likewise.
5123 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
5124 * gdbarch.c, gdbarch.h: Regenerate.
5126 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5128 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
5129 * solib-svr4.c (svr4_truncate_ptr): Likewise.
5130 * solib-pa64.c (read_dynamic_info): Likewise.
5131 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
5132 * solib.c (info_sharedlibrary_command): Likewise.
5133 * s390-nat.c (SUBOFF): Likewise.
5134 * p-valprint.c (pascal_val_print): Likewise.
5135 * procfs.c (info_proc_mappings): Likewise.
5136 * printcmd.c (decode_format): Likewise.
5137 * nto-tdep.c (nto_truncate_ptr): Likewise.
5138 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5139 (mips64_linux_get_longjmp_target): Likewise.
5140 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5141 * jv-valprint.c (java_value_print): Likewise.
5142 * jv-lang.c (get_java_object_header_size): Likewise.
5143 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5144 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5145 (hppa_hpux_unwind_adjust_stub): Likewise.
5146 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5147 * gdbtypes.c (make_pointer_type, make_reference_type)
5148 (smash_to_memberptr_type): Likewise.
5149 * gdbarch.c, gdbarch.h: Regenerate.
5151 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5153 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
5154 (print_gp_register_row): Stop before printing a register bigger
5155 than the ABI register size.
5156 (mips_print_registers_info): Update call to mips_print_register.
5158 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5160 * expression.h (enum exp_opcode): Document a register name for
5162 * parse.c (write_dollar_variable): Write the register name for
5164 (operator_length_standard): Expect the register name following
5166 * ada-lang.c (resolve_subexp): Likewise.
5167 * ax-gdb.c (gen_expr): Likewise.
5168 * eval.c (evaluate_subexp_standard): Likewise.
5169 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5171 * tracepoint.c (encode_actions): Likewise.
5173 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5175 * utils.c (set_screen_size): Use INT_MAX for default columns.
5177 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
5179 * remote.c (remote_protocol_features): Add qXfer:spu:read and
5180 qXfer:spu:write packet types.
5182 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5184 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
5185 * gdbarch.c, gdbarch.h: Regenerate.
5187 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5189 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
5190 gdbarch_stab_reg_to_regnum.
5191 * stabsread.c (define_symbol): Likewise.
5192 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
5193 gdbarch_ecoff_reg_to_regnum.
5194 * mdebugread.c (parse_symbol): Likewise.
5195 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
5196 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
5197 gdbarch_dwarf_reg_to_regnum.
5198 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
5199 * coffread.c (process_coff_symbol): Likewise.
5200 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
5201 gdbarch_dwarf2_reg_to_regnum.
5202 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
5203 (locexpr_describe_location): Likewise.
5204 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
5205 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
5206 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
5207 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
5208 * gdbarch.c, gdbarch.h: Regenerate.
5210 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5212 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
5213 gdbarch_smash_text_address.
5214 * somread.c (som_symtab_read): Likewise.
5215 * elfread.c (record_minimal_symbol): Likewise.
5216 * dbxread.c (process_one_symbol): Likewise.
5217 * coffread.c (coff_symtab_read): Likewise.
5218 * gdbarch.c, gdbarch.h: Regenerate.
5220 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5222 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
5223 * findvar.c (value_from_register): Likewise.
5224 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
5225 * valops.c (value_assign): Likewise.
5226 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
5227 gdbarch_convert_register_p.
5228 * findvar.c (value_from_register): Likewise.
5229 * valops.c (value_assign): Likewise.
5230 * gdbarch.c, gdbarch.h: Regenerate.
5232 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5234 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
5235 gdbarch_register_sim_regno.
5236 * sim-regno.h (sim_regno): Likewise (comment).
5237 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
5238 * gdbarch.c, gdbarch.h: Regenerate.
5240 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5242 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
5243 gdbarch_virtual_frame_pointer.
5244 * tracepoint.c (encode_actions): Likewise.
5245 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
5246 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
5247 * gdbarch.c, gdbarch.h: Regenerate.
5249 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5251 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
5252 * p-lang.c (pascal_create_fundamental_type): Likewise.
5253 * objc-lang.c (objc_create_fundamental_type): Likewise.
5254 * mdebugread.c (_initialize_mdebugread): Likewise.
5255 * m2-lang.c (m2_create_fundamental_type)
5256 (_initialize_m2_language): Likewise.
5257 * gdbtypes.c (build_gdbtypes): Likewise.
5258 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5259 * doublest.c (floatformat_from_length): Likewise.
5260 * c-lang.c (c_create_fundamental_type): Likewise.
5261 * ada-lang.c (ada_create_fundamental_type)
5262 (ada_language_arch_info): Likewise.
5263 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
5264 * value.c (unpack_double): Likewise (comment).
5265 * gdbtypes.c (build_gdbtypes): Likewise.
5266 * doublest.c (floatformat_from_length): Likewise.
5267 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
5268 * valarith.c (value_binop): Likewise.
5269 * p-lang.c (pascal_create_fundamental_type): Likewise.
5270 * objc-lang.c (objc_create_fundamental_type): Likewise.
5271 * mdebugread.c (_initialize_mdebugread): Likewise.
5272 * m2-lang.c (m2_create_fundamental_type): Likewise.
5273 * gdbtypes.c (build_gdbtypes): Likewise.
5274 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5275 * doublest.c (floatformat_from_length): Likewise.
5276 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
5277 * c-lang.c (c_create_fundamental_type): Likewise.
5278 * ada-lex.l (processReal): Likewise.
5279 * ada-lang.c (ada_create_fundamental_type)
5280 (ada_language_arch_info): Likewise.
5281 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
5282 * value.c (unpack_double): Likewise (comment).
5283 * gdbtypes.c (build_gdbtypes): Likewise.
5284 * doublest.c (floatformat_from_length): Likewise.
5285 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
5286 gdbarch_long_double_bit.
5287 * p-lang.c (pascal_create_fundamental_type): Likewise.
5288 * objc-lang.c (objc_create_fundamental_type): Likewise.
5289 * m2-lang.c (m2_create_fundamental_type): Likewise.
5290 * gdbtypes.c (build_gdbtypes): Likewise.
5291 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5292 * doublest.c (floatformat_from_length): Likewise.
5293 * c-lang.c (c_create_fundamental_type): Likewise.
5294 * ada-lex.l (processReal): Likewise.
5295 * ada-lang.c (ada_create_fundamental_type)
5296 (ada_language_arch_info): Likewise.
5297 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
5298 gdbarch_long_double_format.
5299 * gdbtypes.c (build_gdbtypes): Likewise.
5300 * doublest.c (floatformat_from_length): Likewise.
5301 * gdbarch.c, gdbarch.h: Regenerate.
5303 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5305 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
5306 * ada-lang.c (ada_create_fundamental_type)
5307 (ada_language_arch_info): Likewise.
5308 * c-lang.c (c_create_fundamental_type): Likewise.
5309 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5310 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5311 * m2-lang.c (m2_create_fundamental_type): Likewise.
5312 * objc-lang.c (objc_create_fundamental_type): Likewise.
5313 * p-lang.c (pascal_create_fundamental_type): Likewise.
5314 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
5315 * c-exp.y (parse_number): Likewise.
5316 * objc-exp.y (parse_number): Likewise.
5317 * ada-lex.l (processInt): Likewise.
5318 * f-exp.y (parse_number): Likewise.
5319 * p-exp.y (parse_number): Likewise.
5320 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
5321 (gdbtypes_post_init, build_gdbtypes): Likewise.
5322 * p-lang.c (pascal_create_fundamental_type): Likewise.
5323 * parse.c (build_parse): Likewise.
5324 * xcoffread.c (_initialize_xcoffread): Likewise.
5325 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
5326 (read_range_type): Likewise.
5327 * objc-lang.c (objc_create_fundamental_type): Likewise.
5328 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
5329 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
5330 (m2_create_fundamental_type): Likewise.
5331 * c-lang.c (c_create_fundamental_type): Likewise.
5332 * coffread.c (coff_read_enum_type): Likewise.
5333 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
5334 * dwarf2read.c (new_symbol): Likewise.
5335 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
5336 * c-exp.y (parse_number): Likewise.
5337 * objc-exp.y (parse_number): Likewise.
5338 * ada-lex.l (processInt): Likewise.
5339 * f-exp.y (parse_number): Likewise.
5340 * p-exp.y (parse_number): Likewise.
5341 * valarith.c (value_binop): Likewise.
5342 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
5343 * ada-lang.c (ada_create_fundamental_type)
5344 (ada_language_arch_info): Likewise.
5345 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5346 * symfile.c (TARGET_LONG_BYTES): Likewise.
5347 * p-lang.c (pascal_create_fundamental_type): Likewise.
5348 * objc-lang.c (objc_create_fundamental_type): Likewise.
5349 * m2-lang.c (m2_create_fundamental_type): Likewise.
5350 * f-lang.c (f_create_fundamental_type): Likewise.
5351 * c-lang.c (c_create_fundamental_type): Likewise.
5352 * coffread.c (decode_base_type): Likewise.
5353 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
5354 * c-exp.y (parse_number): Likewise.
5355 * objc-exp.y (parse_number): Likewise.
5356 * p-exp.y (parse_number): Likewise.
5357 * ada-lang.c (ada_create_fundamental_type)
5358 (ada_language_arch_info): Likewise.
5359 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
5360 * stabsread.c (read_range_type): Likewise.
5361 * p-lang.c (pascal_create_fundamental_type): Likewise.
5362 * objc-lang.c (objc_create_fundamental_type): Likewise.
5363 * m2-lang.c (m2_create_fundamental_type): Likewise.
5364 * f-lang.c (f_create_fundamental_type): Likewise.
5365 * c-lang.c (c_create_fundamental_type): Likewise.
5366 * gdbarch.c, gdbarch.h: Regenerate.
5368 2007-06-12 Andreas Schwab <schwab@suse.de>
5370 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
5371 (struct frame_unwind): Add dealloc_cache.
5372 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
5374 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
5375 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
5376 (libunwind_frame_unwind): Set dealloc_cache.
5377 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
5379 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5380 Markus Deuling <deuling@de.ibm.com>
5382 * remote.c (remote_write_qxfer): New function.
5383 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
5384 (remote_read_qxfer): Do not cache empty objects.
5385 (_initialize_remote): Add PACKET_qXfer_spu_read and
5386 PACKET_qXfer_spu_write.
5388 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5390 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
5391 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
5393 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
5394 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
5395 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
5396 * spu-tdep.c (infospucmdlist): New variable.
5397 (spu_register_name): Handle additional pseudo registers.
5398 (spu_register_type): Likewise.
5399 (spu_pseudo_register_read): Likewise.
5400 (spu_pseudo_register_write): Likewise.
5401 (spu_pseudo_register_read_spu): New function.
5402 (spu_pseudo_register_write_spu): Likewise.
5403 (info_spu_event_command): New function.
5404 (info_spu_signal_command): Likewise.
5405 (info_spu_mailbox_list): Likewise.
5406 (info_spu_mailbox_command): Likewise.
5407 (spu_mfc_get_bitfield): Likewise.
5408 (info_spu_dma_cmdlist): Likewise.
5409 (info_spu_dma_command): Likewise.
5410 (info_spu_proxydma_command): Likewise.
5411 (info_spu_command): Likewise.
5412 (_initialize_spu_tdep): Install "info spu" commands.
5414 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5416 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
5417 accessing non-seekable spufs files.
5419 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5421 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
5422 gdbarch_skip_trampoline_code.
5423 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
5424 * objc-lang.c (objc_skip_trampoline)
5425 (objc_submethod_helper_data): Likewise.
5426 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
5427 * infrun.c (handle_inferior_event): Likewise.
5428 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
5429 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
5430 gdbarch_in_solib_return_trampoline.
5431 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
5432 * infrun.c (handle_inferior_event): Likewise.
5433 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
5434 * gdbarch.c, gdbarch.h: Regenerate.
5436 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5438 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
5439 * symtab.c (find_function_start_sal, in_prologue): Likewise.
5440 * linespec.c (minsym_found): Likewise.
5441 * infrun.c (step_into_function): Likewise.
5442 * gdbarch.c, gdbarch.h: Regenerate.
5444 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5446 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
5447 * valops.c (value_allocate_space_in_inferior): Likewise.
5448 * gdbarch.c, gdbarch.h: Regenerate.
5450 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5452 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
5453 gdbarch_memory_insert_breakpoint.
5454 * mem-break.c (memory_insert_breakpoint): Likewise.
5455 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
5456 gdbarch_memory_remove_breakpoint.
5457 * mem-break.c (memory_remove_breakpoint): Likewise.
5458 * gdbarch.c, gdbarch.h: Regenerate.
5460 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5462 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
5463 gdbarch_fetch_tls_load_module_address.
5464 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
5465 gdbarch_fetch_tls_load_module_address_p.
5466 * gdbarch.c, gdbarch.h: Regenerate.
5468 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5470 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
5471 gdbarch_decr_pc_after_break.
5472 * tracepoint.c (trace_dump_command): Likewise.
5473 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
5474 * linux-thread-db.c (check_event): Likewise.
5475 * linux-nat.c (cancel_breakpoints_callback): Likewise.
5476 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
5477 * frame.h: Likewise (comment).
5478 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
5479 * aix-thread.c (aix_thread_wait): Likewise.
5480 * gdbarch.c, gdbarch.h: Regenerate.
5482 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5484 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
5485 gdbarch_address_class_type_flags.
5486 * dwarf2read.c (read_tag_pointer_type): Likewise.
5487 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
5488 gdbarch_address_class_type_flags_p.
5489 * dwarf2read.c (read_tag_pointer_type): Likewise.
5490 * gdbarch.c, gdbarch.h: Regenerate.
5492 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5494 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
5495 * value.c (value_as_address): Likewise (comment).
5496 * remote-mips.c (common_breakpoint): Likewise.
5497 * regcache.c (read_pc_pid): Likewise.
5498 * printcmd.c (do_one_display): Likewise.
5499 * monitor.c (monitor_write_memory, monitor_read_memory)
5500 (monitor_insert_breakpoint): Likewise.
5501 * mips-tdep.c (heuristic_proc_start): Likewise.
5502 * infrun.c (insert_step_resume_breakpoint_at_frame)
5503 (insert_step_resume_breakpoint_at_caller): Likewise.
5504 * buildsym.c (record_line): Likewise.
5505 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
5506 (arm_get_next_pc): Likewise.
5507 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
5508 (store_regs): Likewise.
5509 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
5510 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
5511 * gdbarch.c, gdbarch.h: Regenerate.
5513 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5515 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
5516 * tracepoint.c (scope_info): Likewise.
5517 * target.c (debug_print_register): Likewise.
5518 * stack.c (frame_info): Likewise.
5519 * sh-tdep.c (sh_register_reggroup_p): Likewise.
5520 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
5521 (sh64_media_print_registers_info)
5522 (sh64_compact_print_registers_info): Likewise.
5523 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
5524 * remote-sim.c (gdbsim_fetch_register): Likewise.
5525 * remote.c (packet_reg): Likewise (comment).
5526 * reggroups.c (default_register_reggroup_p): Likewise.
5527 * regcache.c (regcache_dump): Likewise.
5528 * printcmd.c (address_info): Likewise.
5529 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
5530 * mt-dep.c (mt_registers_info): Likewise.
5531 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
5532 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
5533 (mips_read_fp_register_double, mips_print_fp_register)
5534 (mips_print_register, print_gp_register_row, mips_print_registers_info)
5535 (mips_register_sim_regno): Likewise.
5536 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
5537 * inf-ptrace.c (inf_ptrace_fetch_register)
5538 (inf_ptrace_store_register): Likewise.
5539 * infcmd.c (default_print_registers_info): Likewise.
5540 * ia64-linux-nat.c (ia64_linux_fetch_register)
5541 (ia64_linux_store_register): Likewise.
5542 * i386-linux-nat.c (fetch_register, store_register): Likewise.
5543 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
5544 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
5545 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
5546 (hppa_hpux_store_register): Likewise.
5547 * findvar.c (locate_var_value): Likewise.
5548 * dwarf2loc.c (locexpr_describe_location): Likewise.
5549 * dwarf2-frame.c (execute_cfa_program): Likewise.
5550 * arm-tdep.c (arm_push_dummy_call): Likewise.
5551 * arch-utils.c (legacy_register_sim_regno): Likewise.
5552 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
5553 * alpha-nat.c (fetch_osf_core_registers): Likewise.
5554 * mi/mi-main.c (mi_cmd_data_list_register_names)
5555 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
5556 (mi_cmd_data_write_register_values): Likewise.
5557 * gdbarch.c, gdbarch.h: Regenerate.
5559 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
5561 * target-memory.c (blocks_to_erase): Correct off-by-one error.
5563 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
5565 * remote.c (process_g_packet): Don't check size.
5566 * gdbarch.sh: Remove register_bytes_ok.
5567 * gdbarch.c: Regenerated.
5568 * gdbarch.h: Regenerated.
5569 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
5570 (m68k_register_bytes_ok): Remove.
5571 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
5573 2007-06-06 Andreas Schwab <schwab@suse.de>
5575 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
5576 (destroy_addr_space_name): Define.
5577 (libunwind_load): Get address of destroy_addr_space function.
5578 (libunwind_frame_cache): Destroy unw_addr_space_t object before
5579 returning unsuccessfully.
5580 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
5582 (libunwind_sigtramp_frame_sniffer): Likewise.
5583 (libunwind_get_reg_special): Likewise.
5585 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5587 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
5588 gdbarch_fetch_pointer_argument.
5589 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
5590 * gdbarch.c, gdbarch.h: Regenerate.
5592 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5594 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
5595 gdbarch_have_nonsteppable_watchpoint.
5596 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
5597 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
5598 gdbarch_cannot_step_breakpoint.
5599 * infrun.c (resume): Likewise.
5600 * gdbarch.c, gdbarch.h: Regenerate.
5602 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5604 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
5605 * stack.c (print_frame_args): Likewise.
5606 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
5607 * stack.c (print_args_stub, frame_info): Likewise.
5608 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
5609 * stack.c (print_args_stub, frame_info): Likewise.
5610 * gdbarch.c, gdbarch.h: Regenerate.
5612 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5614 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
5615 gdbarch_coff_make_msymbol_special.
5616 * coffread.c (coff_symtab_read): Likewise.
5617 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
5618 gdbarch_elf_make_msymbol_special.
5619 * elfread.c (elf_symtab_read): Likewise.
5620 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
5621 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
5622 * gdbarch.c, gdbarch.h: Regenerate.
5624 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5626 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
5627 gdbarch_frame_red_zone_size.
5628 * gdbarch.c, gdbarch.h: Regenerate.
5630 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5632 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
5633 * infcall.c (call_function_by_hand): Likewise.
5634 * gcore.c (derive_stack_segment): Likewise.
5635 * frame.c (frame_id_inner): Likewise.
5636 * arch-utils.c (core_addr_lessthan): Likewise (comment).
5637 * ada-lang.c (ensure_lval): Likewise.
5638 * gdbarch.c, gdbarch.h: Regenerate.
5640 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5642 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
5643 gdbarch_address_to_pointer.
5644 * findvar.c (store_typed_address): Likewise.
5645 * gdbtypes.c (make_pointer_type): Likewise (comment).
5646 * procfs.c (procfs_address_to_host_pointer): Likewise.
5647 * std-regs.c (value_of_builtin_frame_reg): Likewise.
5648 (value_of_builtin_frame_fp_reg): Likewise.
5649 (value_of_builtin_frame_pc_reg): Likewise.
5650 * utils.c (paddress): Likewise (comment).
5651 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
5652 gdbarch_pointer_to_address.
5653 * findvar.c (extract_typed_address): Likewise.
5654 * gdbtypes.c (make_pointer_type): Likewise (comment).
5655 * valops.c (value_cast): Likewise (comment).
5656 * gdbarch.c, gdbarch.h: Regenerate.
5658 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5660 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
5661 * infrun.c (handle_inferior_event): Likewise.
5662 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
5663 gdbarch_get_longjmp_target_p.
5664 * breakpoint.c (breakpoint_re_set): Likewise.
5665 * infrun.c (handle_inferior_event): Likewise.
5666 * gdbarch.c, gdbarch.h: Regenerate.
5668 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
5670 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
5671 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
5672 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
5673 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
5674 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
5675 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
5676 find_stub_with_shl_get, cover_find_stub_with_shl_get,
5677 initialize_hp_cxx_exception_support, child_enable_exception_callback,
5678 current_ex_event, child_get_current_exception_event): Remove.
5679 (hppa_hpux_inferior_created): Remove.
5680 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
5682 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
5683 (deprecated_exception_support_initialized): Remove.
5684 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
5685 (deprecated_exception_support_initialized): Remove.
5686 (breakpoint_init_inferior): Remove handling of non-zero
5687 deprecated_exception_catchpoints_are_fragile.
5689 * symtab.h (deprecated_hp_som_som_object_present): Remove.
5690 * symtab.c (deprecated_hp_som_som_object_present): Remove.
5691 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
5692 deprecated_hp_som_som_object_present.
5693 * eval.c (evaluate_subexp_standard): Likewise.
5694 * valops.c (value_cast): Likewise.
5696 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
5697 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
5698 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
5700 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
5702 * objfiles.h (ImportEntry, ExportEntry): Remove types.
5703 (struct objfile): Remove import_list, import_list_size,
5704 export_list, export_list_size members.
5705 (is_in_import_list): Remove prototype.
5706 * objfiles.c (is_in_import_list): Remove.
5707 * somread.c (init_import_symbols, init_export_symbols): Remove.
5708 (som_symfile_read): Do not call init_import_symbols. Do not
5709 set objfile->export_list and objfile->export_list_size.
5711 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
5713 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
5714 Use the original objfile if necessary.
5716 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
5718 * defs.h (ldirname): New prototype.
5719 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
5721 * utils.c (ldirname): New function.
5722 * xml-tdesc.c (file_read_description_xml): Use ldirname.
5724 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
5726 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
5728 2007-06-01 Joel Brobecker <brobecker@adacore.com>
5730 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
5732 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
5734 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
5736 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
5738 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
5739 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
5740 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
5741 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
5742 (ppc_linux_in_sigtramp, insn_is_sigreturn,
5743 ppc_linux_at_sigtramp_return_path): Remove.
5745 2007-05-31 Markus Deuling <deuling@de.ibm.com>
5747 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
5748 (xtensa_register_write_masked, xtensa_register_read_masked)
5749 (xtensa_extract_return_value, xtensa_store_return_value
5750 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
5751 TARGET_BYTE_ORDER by gdbarch_byte_order.
5752 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
5753 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
5754 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
5755 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
5756 (sh64_push_dummy_call, sh64_extract_return_value)
5757 (sh64_store_return_value, sh64_register_convert_to_virtual)
5758 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
5759 (sh64_pseudo_register_write, sh64_do_fp_register)
5760 (sh64_frame_prev_register): Likewise.
5761 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
5762 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
5763 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
5764 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
5765 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
5766 * ppc-linux-nat.c (store_register): Likewise.
5767 * nto-tdep.c (nto_find_and_open_solib)
5768 (nto_init_solib_absolute_prefix): Likewise.
5769 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
5770 (mips_convert_register_p, mips_eabi_push_dummy_call)
5771 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
5772 (mips_o32_push_dummy_call, mips_o32_return_value)
5773 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
5774 (mips_read_fp_register_single, mips_read_fp_register_double)
5775 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
5776 (mips_breakpoint_from_pc): Likewise.
5777 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
5778 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
5779 (mips_linux_o32_sigframe_init): Likewise.
5780 * m32r-tdep.c (m32r_memory_insert_breakpoint)
5781 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
5782 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
5783 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
5784 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
5785 * coffread.c (process_coff_symbol): Likewise.
5786 * arm-tdep.c (convert_from_extended, convert_to_extended)
5787 (gdb_print_insn_arm): Likewise.
5789 2007-05-31 Markus Deuling <deuling@de.ibm.com>
5791 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
5792 * i386-tdep.c (i386_dbx_reg_to_regnum)
5793 (i386_svr4_reg_to_regnum): Likewise.
5794 * inf-ptrace.c (inf_ptrace_fetch_registers)
5795 (inf_ptrace_store_registers): Likewise.
5796 * corelow.c (get_core_registers): Likewise.
5797 * i386-linux-nat.c (supply_gregset, fill_gregset)
5798 (i386_linux_fetch_inferior_registers)
5799 (i386_linux_store_inferior_registers): Likewise.
5800 * remote.c (init_remote_state,packet_reg_from_regnum)
5801 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
5802 (remote_prepare_to_store,store_registers_using_G)
5803 (remote_store_registers,remote_arch_state): Likewise.
5804 * tracepoint.c (encode_actions): Likewise.
5805 * mi/mi-main.c (mi_cmd_data_list_register_names)
5806 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
5807 (mi_cmd_data_write_register_values): Likewise.
5808 * tui/tui-regs.c (tui_show_register_group)
5809 (tui_show_register_group): Likewise.
5810 * xtensa-tdep.h (FP_ALIAS): Likewise.
5811 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
5812 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
5813 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
5814 * win32-nat.c (do_win32_fetch_inferior_registers)
5815 (do_win32_store_inferior_registers,fetch_elf_core_registers
5816 * user-regs.h: Likewise (comment).
5817 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
5818 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
5819 * target-descriptions.h: Likewise (comment).
5820 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
5821 * target.c (debug_print_register): Likewise.
5822 * stack.c (frame_info): Likewise.
5823 * stabsread.c (define_symbol): Likewise.
5824 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
5825 (sh64_media_print_registers_info)
5826 (sh64_compact_print_registers_info): Likewise.
5827 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
5828 * rs6000-nat.c (fetch_register,store_register): Likewise.
5829 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
5830 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
5831 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
5832 * remote-m32r-sdi.c (m32r_fetch_registers)
5833 (m32r_store_registers): Likewise.
5834 * reggroups.c (default_register_reggroup_p): Likewise.
5835 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
5836 (regcache_restore,regcache_dump): Likewise.
5837 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
5838 * mips-tdep.c (mips_xfer_register,mips_register_name)
5839 (mips_register_reggroup_p,mips_pseudo_register_read)
5840 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
5841 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
5842 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
5843 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
5844 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
5845 (print_gp_register_row,mips_print_registers_info)
5846 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
5847 (mips_register_sim_regno): Likewise.
5848 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
5849 (mips_linux_n32n64_sigframe_init): Likewise.
5850 * mips-linux-nat.c (mips_linux_register_addr)
5851 (mips64_linux_register_addr): Likewise.
5852 * findvar.c (value_of_register): Likewise.
5853 * infcmd.c (default_print_registers_info,registers_info)
5854 (print_vector_info,print_float_info): Likewise.
5855 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
5856 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
5857 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
5858 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
5859 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
5860 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
5861 (ia64_cannot_store_register,ia64_linux_fetch_registers)
5862 (ia64_linux_store_registers): Likewise.
5863 * hpux-thread.c (hpux_thread_fetch_registers)
5864 (hpux_thread_store_registers): Likewise.
5865 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
5866 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
5867 (h8300_register_type): Likewise.
5868 * dwarf2-frame.c (dwarf2_frame_cache)
5869 (dwarf2_frame_state_alloc_regs): Likewise.
5870 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
5871 (cris_cannot_store_register,crisv32_cannot_fetch_register)
5872 (crisv32_cannot_store_register,cris_register_name): Likewise.
5873 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
5874 * arch-utils.c (legacy_register_sim_regno)
5875 (legacy_virtual_frame_pointer): Likewise.
5876 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
5877 * arm-tdep.h: Likewise (comment).
5878 * frv-tdep.c (frv_register_sim_regno): Likewise.
5879 * m68klinux-nat.c (old_fetch_inferior_registers)
5880 (old_store_inferior_registers): Likewise.
5881 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
5882 * irix5-nat.c (fetch_core_registers): Likewise.
5883 * hppa-tdep.c (hppa_frame_cache): Likewise.
5884 * hppa-linux-nat.c (hppa_linux_register_addr)
5885 (hppa_linux_fetch_inferior_registers)
5886 (hppa_linux_store_inferior_registers): Likewise.
5887 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
5888 (hppa_hpux_store_inferior_registers): Likewise.
5889 * amd64-nat.c (amd64_native_gregset_reg_offset)
5890 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
5891 * dbug-rom.c (dbug_regname): Likewise.
5892 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
5893 (HARD_PAGE_REGNUM (comment)): Likewise.
5894 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
5895 * i386-tdep.c (i386_dbx_reg_to_regnum)
5896 (i386_svr4_reg_to_regnum): Likewise.
5897 * mi/mi-main.c (mi_cmd_data_list_register_names)
5898 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
5899 (mi_cmd_data_write_register_values): Likewise.
5900 * gdbarch.c, gdbarch.h: Regenerate.
5901 * tui/tui-regs.c (tui_show_register_group): Likewise.
5902 * xtensa-tdep.h (FP_ALIAS): Likewise.
5903 * user-regs.h: Likewise (comment).
5904 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
5905 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
5906 * target-descriptions.h: Likewise (comment).
5907 * target.c (debug_print_register): Likewise.
5908 * stack.c (frame_info): Likewise.
5909 * stabsread.c (define_symbol): Likewise.
5910 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
5911 (sh64_compact_print_registers_info): Likewise.
5912 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
5913 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
5914 (regcache_restore,regcache_dump): Likewise.
5915 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
5916 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
5917 (mips_stab_reg_to_regnum): Likewise.
5918 * findvar.c (value_of_register): Likewise.
5919 * infcmd.c (default_print_registers_info,registers_info)
5920 (print_vector_info,print_float_info): Likewise.
5921 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
5922 * h8300-tdep.c (h8300_register_type): Likewise.
5923 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
5924 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
5925 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
5926 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
5927 * parse.c: Remove comment.
5928 * gdbarch.c, gdbarch.h: Regenerate
5930 2007-05-31 Markus Deuling <deuling@de.ibm.com>
5932 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
5933 gdbarch_cannot_fetch_register.
5934 * alpha-nat.c (fetch_osf_core_registers): Likewise.
5935 * hppa-linux-nat.c (fetch_register): Likewise.
5936 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
5937 * m68klinux-nat.c (fetch_register): Likewise.
5938 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
5940 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
5941 gdbarch_cannot_store_register.
5942 * hppa-linux-nat.c (store_register): Likewise.
5943 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
5944 * regcache.c (regcache_raw_write): Likewise.
5945 * m68klinux-nat.c (store_register): Likewise.
5946 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
5947 * gdbarch.c, gdbarch.h: Regenerate.
5949 2007-05-31 Markus Deuling <deuling@de.ibm.com>
5951 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
5952 * gdbarch.c, gdbarch.h: Regenerate.
5954 2007-05-31 Markus Deuling <deuling@de.ibm.com>
5956 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
5957 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5958 * gdbarch.c, gdbarch.h: Regenerate.
5960 2007-05-31 Markus Deuling <deuling@de.ibm.com>
5962 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
5963 * ax-gdb.c (gen_bitfield_ref): Likewise.
5964 * mi/mi-main.c (get_register): Likewise.
5965 * findvar.c (default_value_from_register, extract_signed_integer)
5966 (extract_unsigned_integer, extract_long_unsigned_integer)
5967 (store_signed_integer, store_unsigned_integer): Likewise.
5968 * regcache.c (regcache_dump): Likewise.
5969 * value.c (lookup_internalvar, value_of_internalvar)
5970 (set_internalvar): Likewise.
5972 * valprint.c (print_binary_chars, print_octal_chars)
5973 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
5974 * infcmd.c (default_print_registers_info): Likewise.
5975 * arch-utils.c (selected_byte_order, show_endian): Likewise.
5976 * stabsread.c (define_symbol): Likewise.
5977 * doublest.c (floatformat_from_length, floatformat_from_type)
5978 (extract_typed_floating, store_typed_floating): Likewise.
5979 * gdbarch.c, gdbarch.h: Regenerate.
5981 2007-05-31 Markus Deuling <deuling@de.ibm.com>
5983 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
5984 gdbarch_call_dummy_location.
5985 * infcall.c (call_function_by_hand): Likewise.
5986 * inferior.h: Change comment.
5987 * arch-utils.c: Change comment.
5988 * gdbarch.c, gdbarch.h: Regenerate.
5990 2007-05-28 Joel Brobecker <brobecker@adacore.com>
5992 * solib-aix5.c: Delete.
5993 * Makefile.in (solib-aix5.o): Delete rule.
5995 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
5997 * breakpoint.h (enum bpstat_what_main_action): Remove
5998 BPSTAT_WHAT_THROUGH_SIGTRAMP.
5999 * infrun.c (process_event_stop_test): Do not check for it.
6001 2007-05-22 Chris Dearman <chris@mips.com>
6002 Maciej W. Rozycki <macro@mips.com>
6004 * ser-unix.c (show_serial_hwflow): New function.
6005 (hardwire_raw): Add hardware flow control support.
6006 (_initialize_ser_hardwire): Add "set/show remoteflow".
6007 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
6008 * NEWS: Document the new command.
6010 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6012 * config/i386/tm-linux.h (sys_quotactl): Do not define.
6013 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
6014 define for i[[3456]]86-*-linux* native configurations.
6015 * config.in, configure: Regenerate.
6017 2007-05-19 Joel Brobecker <brobecker@adacore.com>
6019 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
6020 a core file. Add comment in the function description.
6022 2007-05-18 Caroline Tice <ctice@apple.com>
6024 * c-valprint.c (c_value_print): If the initialized field of the
6025 value struct is 0, print out "[uninitialized]" before the value.
6026 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
6027 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
6028 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
6029 ctx->initialized appropriately. Verify no location op follows
6031 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
6032 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
6033 set_value_initialized.
6034 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
6035 (decode_locdesc): Add case for DW_OP_GNU_uninit.
6036 * value.c (struct value): New field, initialized.
6037 (allocate_value): Initialize new field.
6038 (set_value_initialized): New function.
6039 (value_initialized): New function.
6040 * value.h (value_initialized): New extern declaration.
6041 (set_value_initialized): Likewise.
6043 2007-05-18 Caroline Tice <ctice@apple.com>
6045 * MAINTAINERS (Write After Approval): Add self.
6047 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6049 * gdbtypes.c (make_reference_type): Preserve the type chain
6050 and set the length of all the variants of the pointer type.
6052 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6054 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
6055 and set the length of all the variants of the pointer type.
6057 2007-05-17 Maciej W. Rozycki <macro@mips.com>
6059 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
6061 (mips_o64_push_dummy_call): Reformat a comment.
6063 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
6065 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
6066 (score_prologue_frame_base_address): Return fp to keep gdb print
6067 local variables correctly when debugging information is stabs.
6069 (score_analyze_prologue): For software watchpoint, fetch all the
6070 instructions from range [startaddr, pc] once and identify them locally
6071 to reduce memory access.
6072 (score_malloc_and_get_memblock, score_free_memblock)
6073 (score_adjust_memblock_ptr): New functions.
6074 (score_fetch_inst): Fetch single instruction or mutiple instructions.
6076 (score_target_can_use_watch, score_stopped_by_watch)
6077 (score_target_insert_watchpoint, score_target_remove_watchpoint)
6078 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
6079 New functions for remote & local hw-watchpoint and hw-breakpoint.
6081 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
6083 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
6084 declarations as well.
6086 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6088 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
6089 * config/arm/tm-embed.h: Delete file.
6091 * arm-tdep.h (arm_software_single_step): Declare.
6092 * arm-tdep.c (arm_software_single_step): Make global.
6093 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
6095 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
6096 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
6097 * armobsd-tdep.c (armobsd_init_abi): ... here ...
6098 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
6100 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
6101 allow defines to be overriden by TM file.
6102 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
6103 change default to {0xbe,0xbe}.
6104 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
6105 arm_obsd_thumb_be_breakpoint): New global variables.
6106 (armobsd_init_abi): Override tdep->thumb_breakpoint and
6107 tdep->thumb_breakpoint_size.
6108 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
6109 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
6110 tdep->thumb_breakpoint_size.
6112 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
6114 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6116 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
6119 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
6120 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
6121 (mips_stack_argsize_string, mips_stack_argsize): Delete.
6122 (mips_abi_regsize): Simplify.
6123 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6124 (mips_n32n64_return_value, mips_o32_push_dummy_call)
6125 (mips_o32_return_value, mips_o64_push_dummy_call)
6126 (mips_o64_return_value): Propogate constant register sizes. Use the
6127 ABI register size instead of mips_stack_argsize.
6128 (mips_dump_tdep): Don't print mips_stack_argsize.
6129 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
6132 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6134 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
6135 * config/mips/tm-linux.h: Delete.
6136 * mips-linux-tdep.c (mips_svr4_so_ops): New.
6137 (mips_linux_in_dynsym_resolve_code): Make static. Use
6138 svr4_in_dynsym_resolve_code.
6139 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
6141 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
6143 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
6144 * Makefile.in (mips-linux-tdep.o): Update.
6145 * solib.c (set_solib_ops): New.
6146 (current_target_so_ops): Update comment.
6147 * solib.h (set_solib_ops): New prototype.
6149 2007-05-16 Chris Dearman <chris@mips.com>
6151 * printcmd.c (do_examine): Fix typos in a comment.
6153 2007-05-16 Richard Sandiford <richard@codesourcery.com>
6155 * configure.ac: Allow sysroots to be relocated under $prefix as
6156 well as $exec_prefix.
6157 * configure: Regenerate.
6159 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6161 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
6162 (offsetof): Do not define.
6163 (find_stub_with_shl_get): Use numerical value 3 instead of
6164 symbolic value TYPE_PROCEDURE.
6166 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6168 * gdb_proc_service.h (paddr_t): Delete typedef.
6169 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
6170 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
6171 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
6172 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
6173 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
6174 * Makefile.in (proc-service.o): Update.
6176 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6178 * Makefile.in (mips-tdep.o): Update.
6179 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
6182 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6184 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
6185 instead of store_typed_address.
6186 * value.c (pack_long): New.
6187 (value_from_longest): Use it.
6188 * value.h (pack_long): New prototype.
6190 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6192 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
6193 DW_EH_PE_signed if appropriate.
6195 2007-05-14 Paul Brook <paul@codesourcery.com>
6196 Daniel Jacobowitz <dan@codesourcery.com>
6198 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
6200 (dwarf_decode_lines): Check for line info without a file.
6202 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6204 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
6207 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6209 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
6211 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
6213 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
6215 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6217 * gdbarch.sh (read_sp): Remove.
6218 * gdbarch.c, gdbarch.h: Regenerate.
6219 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
6221 * avr-tdep.c (avr_read_sp): Remove.
6222 (avr_unwind_sp): New function.
6223 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
6224 * mips-tdep.c (mips_read_sp): Remove.
6225 (mips_unwind_sp): New function.
6226 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
6227 * score-tdep.c (score_read_unsigned_register): Remove.
6228 (score_read_sp): Remove.
6229 (score_unwind_sp): New function.
6230 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
6232 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
6234 * buildsym.c (start_subfile): Handle absolute pathnames
6235 while comparing subfile names.
6237 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6239 * hppa-hpux-tdep.c: Include "regcache.h".
6240 * hppa-linux-tdep.c: Likewise.
6241 * hppa-tdep.c: Include "gdb_stdint.h".
6242 (find_unwind_entry): Cast host pointer to uintptr_t before passing
6244 * Makefile.in: Update dependencies.
6246 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6248 * blockframe.c: Remove obsolete comments.
6249 * alpha-nat.c (fetch_osf_core_registers): Update comment.
6250 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
6251 * hppa-tdep.h (enum hppa_regnum): Likewise.
6252 * mips-tdep.h: Likewise.
6253 * m68hc11-tdep.c: Likewise.
6255 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6257 * inferior.h (read_sp): Remove prototype.
6258 * regcache.c (read_sp): Remove.
6259 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
6260 * infcall.c (call_function_by_hand): Likewise.
6261 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
6263 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6265 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6267 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
6268 instead of read_register and read_register_pid.
6270 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
6271 argument instead of PTID. Use regcache functions instead of
6273 (ia64_linux_insert_watchpoint): Update call.
6274 (ia64_linux_stopped_data_address): Use regcache functions
6275 instead of read_register_pid and write_register_pid.
6277 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6279 * libunwind-frame.h (struct regcache): Add forward declaration.
6280 (libunwind_get_reg_special): Add REGCACHE argument.
6281 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
6282 argument. Pass it to unw_init_remote_p.
6284 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
6285 libunwind_get_reg_special.
6286 (ia64_access_reg): Remove "write" case.
6287 (ia64_access_fpreg): Likewise. Read from next_frame passed
6288 as callback argument instead of from current_regcache.
6289 (ia64_access_rse_reg): Remove "write" case. Read from regcache
6290 passed as callback argument instead of from current_regcache.
6291 (ia64_access_rse_fpreg): New function.
6292 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
6294 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6296 * NEWS: Mention SPU overlay support.
6298 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6300 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
6302 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6304 * breakpoint.c (remove_breakpoint): Do not remove software
6305 breakpoints in unmapped overlay sections.
6307 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6309 * spu-tdep.c: Include "observer.h".
6310 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
6311 (spu_overlay_data): New variable.
6312 (struct spu_overlay_table): New type.
6313 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
6314 spu_overlay_new_objfile): New functions.
6315 (spu_gdbarch_init): Install spu_overlay_update.
6316 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
6317 allocate spu_overlay_data objfile data.
6319 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6321 * gdbarch.sh (overlay_update): New gdbarch function.
6322 (struct obj_section): Add forward declaration.
6323 * gdbarch.c, gdbarch.h: Regenerate.
6325 * symfile.c (simple_overlay_update): Make global.
6326 (target_overlay_update): Remove variable.
6327 (overlay_is_mapped): Call gdbarch_overlay_update instead of
6328 target_overlay_update.
6329 (overlay_load_command): Likewise.
6330 * symfile.h (struct obj_section): Add forward declaration.
6331 (simple_overlay_update): Add prototype.
6333 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
6335 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6337 * observer.sh: Add "struct objfile" forward declaration.
6338 * target.h (deprecated_target_new_objfile_hook): Remove.
6339 * symfile.c (deprecated_target_new_objfile_hook): Remove.
6340 (clear_symtab_users): Call observer_notify_new_objfile.
6341 (symbol_file_add_with_addrs_or_offsets): Likewise.
6342 * rs6000-nat.c: Include "observer.h".
6343 (vmap_ldinfo): Call observer_notify_new_objfile.
6344 (xcoff_relocate_core): Likewise.
6345 * remote.c (remote_new_objfile_chain): Remove.
6346 (remote_new_objfile): Do not call remote_new_objfile_chain.
6347 (_initialize_remote): Use observer_attach_new_objfile.
6348 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
6349 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
6350 (_initialize_tui_hooks): Use observer_attach_new_objfile.
6351 * aix-thread.c: Include "observer.h".
6352 (target_new_objfile_chain): Remove.
6353 (new_objfile): Do not call target_new_objfile_chain.
6354 (_initialize_aix_thread): Use observer_attach_new_objfile.
6355 * hpux-thread.c: Include "observer.h"
6356 (target_new_objfile_chain): Remove.
6357 (hpux_thread_new_objfile): Make static. Do not call
6358 target_new_objfile_chain.
6359 (_initialize_hpux_thread): Use observer_attach_new_objfile.
6360 * linux-thread-db.c: Include "observer.h".
6361 (target_new_objfile_chain): Remove.
6362 (thread_db_new_objfile): Do not call target_new_objfile_chain.
6363 (_initialize_thread_db): Use observer_attach_new_objfile.
6364 * sol-thread.c: Include "observer.h".
6365 (target_new_objfile_chain): Remove.
6366 (sol_thread_new_objfile): Make static. Do not call
6367 target_new_objfile_chain.
6368 (_initialize_sol_thread): Use observer_attach_new_objfile.
6369 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
6370 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
6373 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6375 * gdbarch.sh (remote_translate_xfer_address): Remove.
6376 * gdbarch.h, gdbarch.c: Regenerate.
6377 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
6378 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
6379 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
6380 call gdbarch_remote_translate_xfer_address.
6381 * frv-tdep.c (frv_gdbarch_init): Do not call
6382 set_gdbarch_remote_translate_xfer_address.
6383 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
6384 (ia64_gdbarch_init): Do not install it.
6386 2007-05-11 Bob Wilson <bob.wilson@acm.org>
6388 * NEWS: Mention change in handling the -tui option.
6390 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
6392 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
6395 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6397 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
6398 (breakpoint_inserted_here_p): Call it.
6399 (software_breakpoint_inserted_here_p): Likewise.
6401 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
6403 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
6404 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
6405 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
6406 (inf_ptrace_store_register): Likewise.
6407 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
6408 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
6410 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
6412 * linux-nat.c (linux_trad_target): Adapt parameter list.
6413 * linux-nat.h (linux_trad_target): Likewise.
6415 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
6417 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
6418 (mips_linux_cannot_store_register): Likewise.
6419 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
6420 Return (CORE_ADDR) -1 for registers that cannot be fetched or
6421 stored via ptrace. Use GDBARCH instead of current_gdbarch.
6422 (mips64_linux_register_addr): Likewise.
6423 (mips_linux_register_u_offset): Adapt parameter list. Pass
6424 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
6426 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6427 * config/mips/nm-linux.h: Delete file.
6429 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
6431 * remote.c (remote_detach): Error out if remote can't detach.
6433 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
6435 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
6436 instruction's opcode in the "opcode" variable and declares new
6437 variable "closing_insn".
6439 2007-05-10 Chris Dearman <chris@mips.com>
6440 Maciej W. Rozycki <macro@mips.com>
6442 * cli/cli-setshow.c (do_setshow_command): Remove trailing
6443 whitespace when setting a var_filename.
6445 2007-05-09 Bob Wilson <bob.wilson@acm.org>
6447 * main.c (captured_main): Recognize -tui option and print an error
6448 message when the TUI is not configured.
6450 2007-05-09 Andreas Schwab <schwab@suse.de>
6452 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
6453 set removed members.
6454 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
6456 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6458 * gdbarch.sh (deprecated_store_struct_return): Remove.
6459 * gdbarch.c, gdbarch.h: Regenerate.
6460 * frv-tdep.c (frv_store_struct_return): Remove.
6461 (frv_gdbarch_init): Do not install it.
6463 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6465 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
6466 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
6467 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
6469 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6471 * spu-linux-nat.c: Include "gdb_stdint.h".
6472 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
6473 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
6474 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
6475 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
6476 (spu_child_wait): Mark up string for translation.
6478 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
6479 Luis Machado <luisgpm@br.ibm.com>
6481 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
6482 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
6483 BC_INSTRUCTION): Define.
6484 (deal_with_atomic_sequence): New function.
6485 (rs6000_software_single_step): Call deal_with_atomic_sequence.
6486 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
6487 gdbarch_software_single_step routine.
6489 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
6491 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
6492 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
6493 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
6494 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
6495 spu_child_post_attach, spu_fetch_inferior_registers,
6496 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
6497 memory addresses as ULONGEST, not CORE_ADDR.
6499 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
6501 * gdbarch.sh: Add skip_permanent_breakpoint callback.
6502 * gdbarch.h, gdbarch.c: Regenerate.
6504 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
6505 (resume): Call gdbarch_skip_permanent_breakpoint instead of
6506 SKIP_PERMANENT_BREAKPOINT. Inline default case.
6508 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
6509 Add REGCACHE argument. Use it instead of read/write_register.
6510 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
6512 * config/pa/tm-hppah.h: Delete file.
6513 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
6514 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
6516 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
6518 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
6519 * NEWS: Mention improved C++ thunk support.
6520 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
6521 * cp-abi.c (cplus_skip_trampoline): New.
6522 * cp-abi.h (cplus_skip_trampoline): New prototype.
6523 (struct cp_abi_ops): Add skip_trampoline member.
6524 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
6525 (init_gnuv3_ops): Set skip_trampoline.
6527 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
6529 * rs6000-tdep.c (struct frame_extra_info): Delete.
6531 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
6533 * linux-thread-db.c: Update some FIXME comments.
6534 (thread_db_xfer_partial): Delete.
6535 (init_thread_db_ops): Do not set to_xfer_partial.
6537 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6539 * inftarg.c, infptrace.c: Remove files.
6540 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
6541 (inftarg.o, infptrace.o): Remove rules.
6542 * gdbcore.h (register_addr): Remove prototype.
6543 * inferior.h (kill_inferior, store_inferior_registers,
6544 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
6545 call_ptrace, pre_fork_inferior): Remove prototypes.
6546 * target.h (child_xfer_memory, child_pid_to_exec_file,
6547 child_core_file_to_sym_file, child_post_attach,
6548 child_post_startup_inferior, child_acknowledge_created_inferior,
6549 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
6550 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
6551 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
6552 child_follow_fork, child_reported_exec_events_per_exec_call,
6553 child_has_exited, child_thread_alive): Remove prototypes.
6555 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6557 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
6558 (sparc_store_inferior_registers): Likewise.
6559 * sparc-nat.c (fetch_inferior_registers): Rename to ...
6560 (sparc_fetch_inferior_registers): ... this.
6561 (store_inferior_registers): Rename to ...
6562 (sparc_store_inferior_registers): ... this.
6563 (sparc_target): Update callback names.
6564 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
6565 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
6567 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6569 * linux-nat.c (child_post_attach): Rename to ...
6570 (linux_child_post_attach): ... this. Make static.
6571 (child_follow_fork): Rename to ...
6572 (linux_child_follow_fork): ... this. Make static.
6573 (child_insert_fork_catchpoint): Rename to ...
6574 (linux_child_insert_fork_catchpoint): ... this. Make static.
6575 (child_insert_vfork_catchpoint): Rename to ...
6576 (linux_child_insert_vfork_catchpoint): ... this. Make static.
6577 (child_insert_exec_catchpoint): Rename to ...
6578 (linux_child_insert_exec_catchpoint): ... this. Make static.
6579 (child_pid_to_exec_file): Rename to ...
6580 (linux_child_pid_to_exec_file): ... this. Make static.
6582 (linux_handle_extended_wait): Update call.
6583 (linux_xfer_partial): Update callback routine names.
6585 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6587 * configure.host (alpha*-*-osf[12]*): Remove support.
6588 * NEWS: Mention removed configurations.
6590 * config/alpha/alpha-osf1.mh: Delete file.
6591 * config/alpha/alpha-osf2.mh: Delete file.
6592 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
6594 * config/alpha/nm-osf.h: Delete file.
6595 * config/alpha/nm-osf2.h: Delete file.
6596 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
6597 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
6598 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
6600 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
6601 (register_addr, kernel_u_size): Remove.
6602 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
6604 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6606 * regcache.c (regcache_invalidate): New function.
6607 (register_cached): Remove.
6608 (set_register_cached): Remove.
6609 (deprecated_registers_fetched): Remove.
6610 (registers_changed): Use regcache_invalidate instead
6611 of set_register_cached.
6612 (regcache_raw_read): Update comment.
6614 * regcache.h (regcache_invalidate): Add prototype.
6615 (register_cached): Remove.
6616 (set_register_cached): Remove.
6617 (deprecated_registers_fetched): Remove.
6619 * findvar.c (value_of_register): Do not call register_cached.
6620 * frame.c (frame_register): Likewise.
6621 * tui/tui-regs.c (tui_get_register): Likewise.
6623 * remote.c (fetch_register_using_p): Do not call set_register_cached.
6624 (process_g_packet): Likewise.
6625 (remote_fetch_registers): Likewise.
6626 * remote-sim.c (gdbsim_fetch_register): Likewise.
6627 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
6628 by regcache_invalidate.
6629 (mt_pseudo_register_write): Likewise.
6630 * sh-tdep.c (sh_pseudo_register_write): Likewise.
6632 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
6633 call by loop over regcache_raw_supply (..., NULL).
6635 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6637 * target.h (struct target_ops): Add REGCACHE parameter to
6638 to_prepare_to_store.
6639 (target_prepare_to_store): Likewise.
6640 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
6641 (update_current_target): Adapt prepare_to_store de_fault rule.
6643 * regcache.c (regcache_raw_write): Pass regcache to
6644 target_prepare_to_store.
6646 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
6647 Do not call CHILD_PREPARE_TO_STORE.
6648 * gnu-nat.c (gnu_prepare_to_store): Likewise.
6649 * procfs.c (procfs_prepare_to_store): Likewise.
6651 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
6652 * go32-nat.c (go32_prepare_to_store): Likewise.
6653 * monitor.c (monitor_prepare_to_store): Likewise.
6654 * nto-procfs.c (procfs_prepare_to_store): Likewise.
6655 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
6656 * remote-mips.c (mips_prepare_to_store): Likewise.
6657 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
6658 * win32-nat.c (win32_prepare_to_store): Likewise.
6660 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
6661 Use it instead of current_regcache.
6663 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
6664 parameter. Pass it on to next target.
6665 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
6667 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6669 * target.h (struct regcache): Add forward declaration.
6670 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
6671 and to_store_registers target operations.
6672 (target_fetch_registers, target_store_registers): Update.
6674 * regcache.c (regcache_raw_read): Replace register_cached by
6675 regcache_valid_p. Pass regcache to target_fetch_registers.
6676 (regcache_raw_write): Pass regcache to target_store_registers.
6678 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
6679 store_regs, store_wmmx_regs): Replace register_cached by
6682 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
6683 to target_fetch_registers calls.
6684 * corelow.c (core_open): Likewise.
6685 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
6686 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
6687 ps_lsetfpregs): Likewise.
6688 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
6689 ps_lsetfpregs): Likewise.
6690 * win32-nat.c (win32_resume): Likewise.
6691 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
6692 to target_store_registers call.
6693 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6695 * inferior.h (store_inferior_registers): Update prototype.
6696 (fetch_inferior_registers): Likewise.
6697 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
6698 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
6699 Update function pointer signatures.
6701 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
6702 use it instead of current_regcache, update calls.
6703 (aix_thread_store_registers): Likewise.
6704 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
6705 (alphabsd_store_inferior_registers): Likewise.
6706 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
6707 (amd64bsd_store_inferior_registers): Likewise.
6708 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
6709 (amd64_linux_store_inferior_registers): Likewise.
6710 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
6711 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
6712 fetch_wmmx_regs, store_wmmx_regs): Likewise.
6713 (arm_linux_fetch_inferior_registers): Likewise.
6714 (arm_linux_store_inferior_registers): Likewise.
6715 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
6716 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
6717 (store_register, store_regs, store_fp_register, store_fp_regs,
6718 armnbsd_store_registers): Likewise.
6719 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
6720 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
6721 (bsd_uthread_store_registers): Likewise.
6722 * corelow.c (get_core_registers): Likewise.
6723 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
6724 go32_store_registers): Likewise.
6725 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
6726 (hppabsd_store_registers): Likewise.
6727 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
6728 (hppa_hpux_fetch_inferior_registers): Likewise.
6729 (hppa_hpux_store_register): Likewise.
6730 (hppa_hpux_store_inferior_registers): Likewise.
6731 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
6732 (hppa_linux_fetch_inferior_registers): Likewise.
6733 (hppa_linux_store_inferior_registers): Likewise.
6734 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
6735 (hpux_thread_store_registers): Likewise.
6736 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
6737 (i386bsd_store_inferior_registers): Likewise.
6738 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
6739 gnu_store_registers): Likewise.
6740 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
6741 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
6743 (i386_linux_fetch_inferior_registers): Likewise.
6744 (i386_linux_store_inferior_registers): Likewise.
6745 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
6746 (ia64_linux_fetch_registers): Likewise.
6747 (ia64_linux_store_register): Likewise.
6748 (ia64_linux_store_registers): Likewise.
6749 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
6750 (inf_child_store_inferior_registers): Likewise.
6751 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
6752 (inf_ptrace_fetch_registers): Likewise.
6753 (inf_ptrace_store_register): Likewise.
6754 (inf_ptrace_store_registers): Likewise.
6755 * infptrace.c (fetch_register, store_register): Likewise.
6756 (fetch_inferior_registers, store_inferior_registers): Likewise.
6757 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
6758 (m32r_linux_fetch_inferior_registers): Likewise.
6759 (m32r_linux_store_inferior_registers): Likewise.
6760 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
6761 (m68kbsd_store_inferior_registers): Likewise.
6762 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
6763 store_register, old_store_inferior_registers, fetch_regs, store_regs,
6764 fetch_fpregs, store_fpregs): Likewise.
6765 (m68k_linux_fetch_inferior_registers): Likewise.
6766 (m68k_linux_store_inferior_registers): Likewise.
6767 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
6768 (m88kbsd_store_inferior_registers): Likewise.
6769 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
6770 (mips64obsd_store_inferior_registers): Likewise.
6771 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
6772 (mips64_linux_regsets_store_registers): Likewise.
6773 (mips64_linux_fetch_registers): Likewise.
6774 (mips64_linux_store_registers): Likewise.
6775 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
6776 (mipsnbsd_store_inferior_registers): Likewise.
6777 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
6778 (monitor_fetch_registers, monitor_store_registers): Likewise.
6779 * nto-procfs.c (procfs_fetch_registers): Likewise.
6780 (procfs_store_registers): Likewise.
6781 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
6782 fetch_register, supply_vrregset, fetch_altivec_registers,
6783 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
6784 (store_altivec_register, store_spe_register, store_register,
6785 fill_vrregset, store_altivec_registers, store_ppc_registers,
6786 ppc_linux_store_inferior_registers): Likewise.
6787 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
6788 (ppcnbsd_store_inferior_registers): Likewise.
6789 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
6790 (ppcobsd_store_registers): Likewise.
6791 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
6792 * remote.c (fetch_register_using_p, process_g_packet,
6793 fetch_registers_using_g, remote_fetch_registers): Likewise.
6794 (store_register_using_P, store_registers_using_G,
6795 remote_store_registers): Likewise.
6796 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
6797 m32r_store_register, m32r_store_register): Likewise.
6798 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
6799 * remote-sim.c (gdbsim_fetch_register): Likewise.
6800 (gdbsim_store_register): Likewise.
6801 * rs6000-nat.c (fetch_register, store_register): Likewise.
6802 (rs6000_fetch_inferior_registers): Likewise.
6803 (rs6000_store_inferior_registers): Likewise.
6804 * s390-nat.c (fetch_regs, store_regs): Likewise.
6805 (fetch_fpregs, store_fpregs): Likewise.
6806 (s390_linux_fetch_inferior_registers): Likewise.
6807 (s390_linux_store_inferior_registers): Likewise.
6808 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
6809 (shnbsd_store_inferior_registers): Likewise.
6810 * sol-thread.c (sol_thread_fetch_registers): Likewise.
6811 (sol_thread_store_registers): Likewise.
6812 * sparc-nat.c (fetch_inferior_registers): Likewise.
6813 (store_inferior_registers): Likewise.
6814 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
6815 (spu_store_inferior_registers): Likewise.
6816 * target.c (debug_print_register): Likewise.
6817 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
6818 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
6819 (vaxbsd_store_inferior_registers): Likewise.
6820 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
6821 (win32_fetch_inferior_registers): Likewise.
6822 (win32_store_inferior_registers): Likewise.
6824 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6826 * gdbcore.h (struct regcache): Add forward declaration.
6827 (struct core_fns): Add REGCACHE argument to core_read_registers
6829 * corelow.c (get_core_register_section): Add REGCACHE argument,
6830 use it instead of current_regcache, pass it to core_read_registers
6832 (get_core_registers): Add current_regcache as parameter to
6833 get_core_register_section calls.
6835 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
6836 use it instead of current_regcache.
6837 * armnbsd-nat.c (fetch_core_registers): Likewise.
6838 (fetch_elfcore_registers): Likewise.
6839 * core-regset.c (fetch_core_registers): Likewise.
6840 * cris-tdep.c (fetch_core_registers): Likewise.
6841 * irix5-nat.c (fetch_core_registers): Likewise.
6842 * m68klinux-nat.c (fetch_core_registers): Likewise.
6843 * mips-linux-tdep.c (fetch_core_registers): Likewise.
6844 * win32-nat.c (fetch_elf_core_registers): Likewise.
6846 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6848 * gregset.h (struct regcache): Add forward declaration.
6849 (supply_gregset): Add REGCACHE parameter, make GREGS const.
6850 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
6851 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
6852 (fill_gregset): Add REGCACHE parameter.
6853 (fill_fpregset): Likewise.
6854 (fill_fpxregset): Likewise.
6856 Update all definitions accordingly:
6857 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
6858 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
6859 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
6860 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
6861 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
6862 (supply_gregset): Add REGCACHE parameter, use it instead of
6863 current_regcache. Make GREGSETP parameter const, adapt casts.
6864 (supply_fpregset): Add REGCACHE parameter, use it instead of
6865 current_regcache. Make FPREGSETP parameter const, adapt casts.
6866 (fill_gregset): Add REGCACHE parameter, use it instead of
6868 (fill_fpregset): Likewise.
6870 Update all callers to pass in current_regcache as the new argument:
6871 * core-regset.c: Include "regcache.h".
6872 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
6873 * procfs.c: Include "regcache.h".
6874 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
6875 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
6876 (procfs_do_thread_registers): Likewise.
6877 (procfs_make_note_section): Likewise.
6878 * proc-service.c: Include "regcache.h".
6879 (ps_lgetregs): Update fill_gregset call.
6880 (ps_lsetregs): Update supply_gregset call.
6881 (ps_lgetfpregs): Update fill_fpregset call.
6882 (ps_lsetfpregs): Update supply_fpregset call.
6883 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
6884 supply_fpregset calls.
6885 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
6886 (ps_lgetregs): Update fill_gregset call.
6887 (ps_lsetregs): Update supply_gregset call.
6888 (ps_lgetfpregs): Update fill_fpregset call.
6889 (ps_lsetfpregs): Update supply_fpregset call.
6891 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
6892 fill_fpregset, and fill_fpxregset calls.
6893 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
6894 (store_regs): Update fill_gregset call.
6895 (fetch_fpregs): Update supply_fpregset call.
6896 (store_fpregs): Update fill_fpregset call.
6897 (fetch_fpxregs): Update supply_fpxregset call.
6898 (store_fpxregs): Update fill_fpxregset call.
6899 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
6900 (store_regs): Update fill_gregset call.
6901 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
6902 (store_regs): Update fill_gregset call.
6903 (fetch_fpregs): Update supply_fpregset call.
6904 (store_fpregs): Update fill_fpregset call.
6905 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
6906 * s390-nat.c (fetch_regs): Update supply_gregset call.
6907 (store_regs): Update fill_gregset call.
6908 (fetch_fpregs): Update supply_fpregset call.
6909 (store_fpregs): Update fill_fpregset call.
6911 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
6914 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6916 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
6917 it instead of current_regcache.
6918 (parse_register_dump): Add REGCACHE parameter, pass it to
6919 supply_register callback.
6920 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
6921 parse_register_dump.
6922 (monitor_dump_regs): Add REGCACHE parameter, pass it to
6923 parse_register_dump and dumpregs callback.
6924 (monitor_wait): Pass current_regcache to parse_register_dump and
6926 (monitor_fetch_register): Pass current_regcache to
6927 monitor_supply_register.
6928 (monitor_fetch_registers): Pass current_regcache to
6930 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
6931 supply_register and dumpregs callbacks.
6932 (monitor_supply_register, monitor_dump_reg_block): Update
6934 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
6935 it to monitor_supply_register.
6936 * dink32-rom.c (dink32_supply_register): Likewise.
6937 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
6938 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
6939 instead of current_regcache.
6941 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6943 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
6944 Add REGCACHE parameter. Use it instead of current_regcache.
6945 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
6946 i386nto_supply_gregset and i386nto_supply_fpregset.
6947 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
6948 of current_regcache.
6950 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
6951 nto_supply_ helper functions.
6952 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
6954 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
6956 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
6957 supply_greget, supply_fpregset, supply_altregset, supply_regset,
6958 and regset_fill member function pointers.
6959 (nto_dummy_supply_regset): Adapt prototype.
6961 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6963 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
6964 instead of current_regcache. Make REGS const.
6965 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
6966 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
6968 * shnbsd-nat.c: Include "regcache.h".
6969 (shnbsd_fetch_inferior_registers): Pass current_regcache to
6971 (shnbsd_store_inferior_registers): Pass current_regcache to
6973 * Makefile.in (shbsd-nat.o): Update dependencies.
6975 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6977 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
6978 instead of current_regcache.
6979 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
6980 Make GREGSETP const, remove superfluous casts.
6981 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
6982 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
6984 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
6985 (supply_64bit_reg): Likewise
6986 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
6987 Make GREGSETP const, adapt casts accordingly.
6988 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
6989 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
6991 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
6992 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
6994 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
6995 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
6996 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
6998 * mips-linux-nat.c: Include "regcache.h".
6999 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7000 current_regcache to mips{64}_(supply|fill)_ helper routines.
7001 (mips64_linux_regsets_fetch_registers): Likewise.
7002 (mips64_linux_regsets_store_registers): Likewise.
7004 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
7005 REGCACHE argument; replace current_regcache. Make REGS const.
7006 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
7007 replace current_regcache.
7008 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
7009 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
7010 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
7011 mipsnbsd_store_inferior_registers): Pass current_regcache to
7012 mipsnbsd_(supply|fill)_... helper routines.
7014 * Makefile.in (mips-linux-nat.o): Update dependencies.
7016 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7018 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
7019 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
7020 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
7021 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
7022 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
7023 * i386gnu-nat.c (store_fpregs): Likewise.
7024 * i386v4-nat.c (fill_fpregset): Likewise.
7025 * go32-nat.c (store_register, go32_store_registers): Likewise.
7027 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7029 * cris-tdep.c (supply_gregset): Rename to ...
7030 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
7031 instead of current_regcache.
7032 (fetch_core_registers): Update call. Pass current_regcache.
7034 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7036 * arnmnbsd-nat.c (supply_gregset): Rename to ...
7037 (arm_supply_gregset): ... this. Add REGCACHE parameter.
7038 Use it instead of current_regcache.
7039 (supply_fparegset): Rename to ...
7040 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
7041 Use it instead of current_regcache.
7042 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
7043 (fetch_core_registers, fetch_elfcore_registers): Likewise.
7045 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7047 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
7048 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
7049 use it instead of current_regcache.
7050 * alpha-tdep.h (struct regcache): Add forward declaration.
7051 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
7052 alpha_fill_fp_regs): Update prototypes.
7054 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
7055 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
7056 * alpha-linux-nat.c: Include "regcache.h".
7057 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7058 current_regcache to alpha_supply/fill_ routines.
7060 * alphabsd-tdep.c: Include "regcache.h".
7061 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
7062 pass it to alpha_supply_ routines. Make REGS const.
7063 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
7064 pass it to alpha_fill_ routines.
7065 * alphabsd-tdep.h (struct regcache): Add forward declaration.
7066 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
7067 alphabsd_fill_fpreg): Update prototypes.
7069 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7070 fill_fpregset, alphabsd_fetch_inferior_registers,
7071 alphabsd_store_inferior_registers): Pass current_regcache to
7072 alphabsd_supply/fill_ routines.
7074 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
7077 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7079 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
7080 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
7081 instead of current_regcache.
7082 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
7083 REGCACHE parameter, pass it to supply_ routines.
7084 (aix_thread_fetch_registers): Pass current_regcache to
7085 fetch_regs_user_thread and fetch_regs_kernel_thread.
7087 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
7088 Add REGCACHE parameter, use it instead of current_regcache.
7089 Call regcache_valid_p instead of register_cached.
7090 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
7091 Also, pass REGCACHE to fill_ routines.
7092 (aix_thread_store_registers): Pass current_regcache to
7093 store_regs_user_thread and store_regs_kernel_thread.
7095 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7097 * m32r-linux-nat.c (supply_gregset): Do not modify contents
7098 pointed to by GREGSETP.
7100 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7102 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
7103 of regcache_raw_read_signed.
7104 (fill_fpregset): Use regcache_raw_collect instead of
7107 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7109 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
7110 point arguments, test explicitly for use of the EABI32 ABI
7111 instead of inferring this condition from tests on register
7114 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7116 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
7117 prior to allocating its location.
7119 2007-05-02 Maciej W. Rozycki <macro@mips.com>
7121 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
7122 based on mips_abi_regsize() whose result is known in advance.
7123 (mips_o64_push_dummy_call): Likewise.
7125 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
7127 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
7128 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
7130 * mips-linux-nat.c: Include "gregset.h".
7131 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
7132 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
7133 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
7134 fill_fpregset): Move to mips-linux-nat.c.
7136 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
7138 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7140 * regcache.c (deprecated_read_register_gen): Remove, inline ...
7141 (read_register): ... here.
7142 (deprecated_write_register_gen): Remove, inline ...
7143 (write_register): ... here.
7144 * regcache.h (deprecated_read_register_gen): Remove prototype.
7145 (deprecated_write_register_gen): Likewise.
7147 * remote-sim.c (gdbsim_store_register): Replace call to
7148 deprecated_read_register_gen with regcache_cooked_read.
7149 * target.c (debug_print_register): Replace calls to
7150 deprecated_read_register_gen and read_register with
7151 regcache_cooked_read.
7153 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7155 * hpux-thread.c (hpux_thread_store_registers): Use
7156 regcache_raw_collect, not regcache_raw_read.
7157 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
7158 not regcache_raw_write.
7160 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7162 * gdbarch.sh: Remove deprecated_register_byte.
7163 * gdbarch.c, gdbarch.h: Regenerate.
7164 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
7165 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
7167 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
7168 * regcache.c (regcache_valid_p): Allow to query cooked registers in
7169 read-only register caches. Make REGCACHE parameter const.
7170 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
7172 * mi/mi-main.c (old_regs): Remove.
7173 (mi_setup_architecture_data, _initialize_mi_main): Remove.
7174 (register_changed_p): Reimplement to compare two register caches.
7175 (mi_cmd_data_list_changed_registers): Update caller.
7176 * mi/mi-main.h (mi_setup_architecture_data): Remove.
7177 * mi/mi-interp.c (mi_interpreter_init): Do not call
7178 mi_setup_architecture_data.
7180 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7182 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
7183 inline definition at the places the macros are used.
7184 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
7186 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7188 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
7190 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
7191 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
7192 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
7193 (rs6000_aix_regset_from_core_section): New function.
7194 (rs6000_aix_init_osabi): Register it.
7195 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
7196 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
7197 * rs6000-nat.c (CoreRegs): Do not define type.
7198 (fetch_core_registers, rs6000_core_fns): Remove.
7199 (_initialize_core_rs6000): Do not register it. Rename to ...
7200 (_initialize_rs6000_nat): ... this.
7201 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
7203 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7205 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
7206 (dwarf2_read_address): Sign extend return address as required by
7207 target architecture.
7209 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7211 * solib-frv.c (lm_base): Bail out if the main executable has
7214 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7216 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
7217 of FPCR register in fpregset.
7219 2007-04-27 Maciej W. Rozycki <macro@mips.com>
7221 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
7222 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
7224 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7226 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
7227 * rs6000-nat.c (rs6000_wait): New function.
7228 (_initialize_core_rs6000): Install it as to_wait target method.
7229 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
7231 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7233 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
7234 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
7235 * rs6000-nat.c (super_create_inferior): New variable.
7236 (rs6000_create_inferior): Make static. Adapt argument list. Call
7237 original version of create_inferior via super_create_inferior.
7238 (_initialize_core_rs6000): Install to_create_inferior target method.
7240 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7242 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
7243 (aix_thread_xfer_partial): ... this.
7244 (init_aix_thread_ops): Install to_xfer_partial instead
7245 of deprecated_xfer_memory target method.
7247 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
7248 and inftarg.o, add inf-ptrace.o.
7249 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
7250 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
7251 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
7252 (fetch_inferior_registers): Rename to ...
7253 (rs6000_fetch_inferior_registers): ... this. Make static.
7254 (store_inferior_registers): Rename to ...
7255 (rs6000_store_inferior_registers): ... this. Make static.
7256 (read_word, child_xfer_memory): Remove.
7257 (rs6000_xfer_partial): New function.
7258 (kernel_u_size): Remove.
7259 (_initialize_core_rs6000): Add inf_ptrace-based target.
7260 * Makefile.in (rs6000-nat.o): Update dependencies.
7262 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7264 * inf-ptrace.c: Include "gdb_stdint.h".
7265 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
7266 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
7267 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
7268 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
7269 (inf_ptrace_store_register): Likewise.
7270 * Makefile.in (inf-ptrace.o): Update dependencies.
7272 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7274 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
7275 * configure.tgt (rs6000-*-*): Likewise.
7276 * config/rs6000/aix4.mh: Delete file.
7277 * config/rs6000/aix4.mt: Delete file.
7278 * config/rs6000/rs6000.mh: Delete file.
7279 * config/rs6000/rs6000.mt: Delete file.
7281 * config/powerpc/nm-aix.h: Delete file.
7282 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
7284 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7286 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
7287 Remove obsolete part of comment.
7288 (store_regs_user_thread): Use uint32_t temporaries when calling
7290 (store_regs_kernel_thread): Likewise. Add assertion to verify
7291 correct size of struct ptsprs members.
7292 (aix_thread_xfer_memory): Fix type of myaddr.
7293 (aix_thread_extra_thread_info): Fix compiler warning.
7294 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
7295 (fetch_register, store_register): Adapt callers.
7297 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7299 * vec.h (vec_free): Rename to vec_free_. Adapt users.
7301 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7303 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
7305 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
7306 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
7307 (alpha_linux_regset_from_core_section): New function.
7308 (alpha_linux_init_abi): Install it.
7309 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
7310 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
7311 <sys/procfs.h>, and "gregset.h".
7312 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
7313 Move from config/alpha/nm-linux.h.
7314 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
7316 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
7317 * alpha-nat.c: Remove #ifdef __linux__ section.
7318 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
7319 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
7320 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
7321 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
7322 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
7323 (NATDEPFILES): Remove alpha-nat.o.
7324 * config/alpha/nm-linux.h: Delete file.
7325 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
7326 * Makefile.in (alpha-linux-nat.o): Update dependencies.
7327 (alpha-linux-tdep.o): Likewise.
7329 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7331 * mips-linux-nat.c: No longer include "gdbcore.h".
7332 (mips_linux_register_addr): Move from mips-linux-tdep.c.
7333 (mips64_linux_register_addr): Likewise.
7334 (mips_linux_register_u_offset): Call mips_linux_register_addr or
7335 mips64_linux_register_addr instead of register_addr.
7336 * mips-linux-tdep.c (mips_linux_register_addr,
7337 mips64_linux_register_addr): Move to mips-linux-nat.c.
7338 (register_addr): Remove.
7339 (register_addr_data, init_register_addr_data): Remove.
7340 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
7341 (set_mips_linux_register_addr): Remove.
7342 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
7343 * Makefile.in (mips-linux-nat.o): Update dependencies.
7345 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7347 * linux-nat.c (linux_register_u_offset): Remove.
7348 (linux_target_install_ops): New function.
7349 (linux_target): Use it.
7350 (linux_trad_target): New function.
7351 * linux-nat.h (linux_trad_target): Declare.
7353 * alpha-linux-nat.c: Include "gdbcore.h".
7354 (alpha_linux_register_u_offset): New function.
7355 (_initialize_alpha_linux_nat): Use linux_trad_target.
7357 * mips-linux-nat.c: Include "gdbcore.h".
7358 (mips_linux_register_u_offset): New function.
7359 (_initialize_mips_linux_nat): Use linux_trad_target.
7361 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7362 * config/arm/nm-linux.h: Delete file.
7364 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
7365 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
7367 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7368 * config/ia64/nm-linux.h: Delete file.
7370 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7371 * config/m32r/nm-linux.h: Delete file.
7373 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7374 * config/m68k/nm-linux.h: Delete file.
7376 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7377 * config/pa/nm-linux.h: Delete file.
7379 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7380 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
7381 * config/powerpc/nm-linux.h: Delete file.
7383 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
7384 * config/s390/nm-linux.h: Delete file.
7386 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7387 * config/sparc/linux64.mh (NAT_FILE): Likewise.
7388 * config/sparc/nm-linux.h: Delete file.
7390 * Makefile.in (alpha-linux-nat.o): Update dependencies.
7391 (mips-linux-nat.o): Likewise.
7393 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7395 * core-aout.c: Delete file.
7396 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
7397 (core-aout.o): Delete rule.
7398 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
7400 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
7402 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
7403 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
7404 KERNEL_U_ADDR): Remove.
7406 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
7407 (cannot_fetch_register, cannot_store_register): Remove.
7408 (fetch_register): Inline cannot_fetch_register and register_addr.
7409 (store_register): Inline cannot_store_register and register_addr.
7410 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
7411 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
7412 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
7415 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
7416 (fetch_register): Inline register_addr.
7417 (store_register): Inline register_addr.
7418 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
7419 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
7420 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
7422 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
7423 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
7424 REGISTER_U_ADDR): Remove.
7426 * hppa-linux-nat.c (register_addr): Rename to ...
7427 (hppa_linux_register_addr): ... this. Make static.
7428 (fetch_register, store_register): Adapt callers.
7429 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
7431 * ppc-linux-nat.c (kernel_u_size): Remove.
7432 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
7434 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
7435 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
7437 * config/vax/nm-vax.h: Delete file.
7439 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
7441 * MAINTAINERS (Write After Approval): Add myself.
7443 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
7445 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
7446 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
7447 (m68k_linux_sigcontext_reg_offset): Fix typo.
7448 (target_is_uclinux): New.
7449 (m68k_linux_inferior_created): New.
7450 (m68k_linux_get_sigtramp_info): Check for uClinux or
7451 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
7453 (_initialize_m68k_linux_tdep): Register
7454 m68k_linux_inferior_created.
7456 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
7458 * win32-nat.c (win32_detach): Remove delete_command call.
7459 Resume inferior with win32_resume instead of win32_continue.
7461 2007-04-19 Jerome Guitton <guitton@adacore.com>
7463 * ser-mingw.c (fd_is_file): New function.
7464 (file_select_thread): New function.
7465 (ser_console_wait_handle): Add special handling for files.
7467 2007-04-18 Denis Pilat <denis.pilat@st.com>
7469 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
7470 when missing from DW_TAG_subrange_type. Remove the handling of null
7471 return from die_type.
7473 2007-04-18 Maciej W. Rozycki <macro@mips.com>
7475 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
7476 change to rearrange some brackets.
7477 (mips_n32n64_push_dummy_call): Likewise.
7478 (mips_o32_push_dummy_call): Likewise.
7479 (mips_o64_push_dummy_call): Likewise.
7481 2007-04-18 Denis Pilat <denis.pilat@st.com>
7483 * infcmd.c (post_create_inferior): Start with a call to
7484 target_terminal_ours.
7486 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7488 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
7490 (mips_n32n64_push_dummy_call): Likewise. Reformat some
7492 (mips_o32_push_dummy_call): Likewise.
7493 (mips_o64_push_dummy_call): Likewise.
7495 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7497 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
7500 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7502 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
7504 (mips_o32_push_dummy_call): Likewise.
7506 2007-04-17 Andreas Schwab <schwab@suse.de>
7508 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
7509 sal to be bigger than the end of the function.
7511 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7512 Nigel Stephens <nigel@mips.com>
7514 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
7515 argument alignment requirements when calculating stack space
7516 required. When aligning an arg register to eight bytes
7517 boundary, align stack_offset too. Write floating-point
7518 arguments to the appropriate integer register if need go there.
7519 (mips_o64_push_dummy_call): Likewise.
7521 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
7523 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
7524 "sig" arguments, add "regcache" argument.
7525 * gdbarch.c, gdbarch.h: Regenerate.
7527 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
7528 (handle_inferior_event): Call remove_single_step_breakpoints directly
7529 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
7531 * alpha-tdep.c (alpha_software_single_step): Update argument list.
7532 Remove handling of !insert_breakpoints_p case.
7533 * arm-tdep.c (arm_software_single_step): Likewise.
7534 * cris-tdep.c (cris_software_single_step): Likewise.
7535 * mips-tdep.c (mips_software_single_step): Likewise.
7536 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
7537 * sparc-tdep.c (sparc_software_single_step): Likewise.
7538 * spu-tdep.c (spu_software_single_step): Likewise.
7540 * alpha-tdep.h (alpha_software_single_step): Update prototype.
7541 * mips-tdep.h (mips_software_single_step): Likewise.
7542 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
7543 * sparc-tdep.h (sparc_software_single_step): Likewise.
7545 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
7547 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
7548 when removing single-step breakpoints.
7550 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
7552 * varobj.h (varobj_set_frozen): New
7553 (varobj_get_frozen): New.
7554 (varobj_update): New parameter explicit.
7555 * varobj.c (struct varobj): New fields frozen
7557 (varobj_set_frozen, varobj_get_frozen): New.
7558 (install_new_value): Don't fetch values for
7559 frozen variable object, or children thereof. Allow
7560 a frozen variable object to have non-fetched value.
7561 (varobj_update): Allow updating child variables.
7562 Don't traverse frozen children.
7563 (new_variable): Initialize the frozen field.
7564 (c_value_of_variable): Return NULL for frozen
7565 variable without any value yet.
7566 * mi/mi-cmd-var.c (varobj_update_one): New parameter
7568 (mi_cmd_var_create): Output the 'frozen' field,
7569 as soon as testsuite is adjusted to expect that field.
7570 (mi_cmd_var_set_frozen): New.
7571 (mi_cmd_var_update): Pass the 'explicit' parameter to
7573 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
7574 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
7576 2007-04-13 Paul Brook <paul@codesourcery.com>
7578 * target-descriptions.c (tdesc_named_type): Add ieee_single and
7580 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
7582 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7584 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
7585 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
7586 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
7587 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
7588 * Makefile.in: Remove references to deleted files.
7589 * README: Do not mention deleted ROM monitor interfaces.
7590 * defs.h (enum language): Delete language_scm.
7591 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
7592 (dump_subexp_body_standard): Likewise.
7593 * parse.c (operator_length_standard): Likewise.
7594 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
7595 * remote-mips.c: Do not include remote-utils.h.
7596 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
7598 * value.c: Do not include scm-lang.h.
7599 (unpack_long): Delete scm_unpack call.
7600 * config/h8300/h8300.mt, config/mips/embed.mt,
7601 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
7602 config/sh/embed.mt, config/sh/linux.mt: Remove references to
7604 * NEWS: Mention removed files.
7606 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7608 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
7609 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
7611 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7613 * NEWS: Mention removal of HP aCC support.
7615 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7617 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
7618 first entry for static executables.
7619 (breakpoint_addr): Delete unused variable.
7620 (elf_locate_base): Search for _r_debug in static executables.
7621 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
7624 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7626 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
7627 (bpstat_what, print_one_breakpoint, allocate_bp_location)
7628 (mention): Remove bp_through_sigtramp support.
7629 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
7631 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7633 * breakpoint.c (bpstat_what): Give step-resume higher priority than
7636 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7638 * infrun.c: Doc fixes.
7639 (handle_inferior_event): Clarify debug message.
7640 (insert_step_resume_breakpoint_at_sal): Print a debug message.
7642 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
7644 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
7646 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
7648 * config/m68k/tm-monitor.h: Delete file.
7649 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
7650 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
7652 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
7653 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
7655 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
7657 * gdbarch.sh (software_single_step): Change the return type
7658 from void to int and reformatted some comments to <= 80
7660 * gdbarch.c, gdbarch.h: Regenerated.
7661 * alpha-tdep.c (alpha_software_single_step): Likewise.
7662 * alpha-tdep.h (alpha_software_single_step): Likewise.
7663 * arm-tdep.c (arm_software_single_step): Likewise.
7664 * cris-tdep.c (cris_software_single_step): Likewise.
7665 * mips-tdep.c (mips_software_single_step): Likewise.
7666 * mips-tdep.h (mips_software_single_step): Likewise.
7667 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
7668 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
7669 * sparc-tdep.c (sparc_software_single_step): Likewise.
7670 * sparc-tdep.h (sparc_software_single_step): Likewise.
7671 * spu-tdep.c (spu_software_single_step): Likewise.
7672 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
7673 and act accordingly.
7675 2007-04-11 Steve Ellcey <sje@cup.hp.com>
7677 * configure.ac (build_warnings): Add -Wno-char-subscripts.
7678 * configure: Regenerate.
7679 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
7681 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7683 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
7685 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7687 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
7689 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
7690 distinct on the TYPE_STUB_SUPPORTED debug targets.
7691 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
7693 2007-04-11 Joel Brobecker <brobecker@adacore.com>
7695 * sparc-tdep.c (X_RS2): New macro.
7696 (sparc_skip_stack_check): New function.
7697 (sparc_analyze_prologue): Adjust PC past stack probing
7698 sequence if necessary.
7700 2007-04-10 Andreas Schwab <schwab@suse.de>
7702 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
7705 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
7707 * breakpoint.c (gdb_breakpoint_query): Really return an
7709 (gdb_breakpoint): Likewise.
7710 * thread.c (gdb_list_thread_ids): Likewise.
7711 (gdb_thread_select): Likewise.
7712 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
7713 (mi_cmd_thread_list_ids): Remove bogus initialization.
7715 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
7717 * Makefile.in (SFILES): Remove hpacc-abi.c.
7718 (COMMON_OBS): Remove hpacc-abi.o.
7719 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
7720 (hpacc-abi.o, hpread.o): Delete rules.
7721 * somread.c: Delete extern declarations from hpread.c.
7722 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
7723 (som_symfile_finish): Do not call hpread_symfile_finish.
7724 (som_symfile_init): Do not call hpread_symfile_init.
7725 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
7726 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
7727 * hpacc-abi.c, hpread.c: Deleted.
7729 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
7731 * solib-svr4.c (enable_break): Simplify return value.
7732 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
7734 2007-04-10 Andreas Schwab <schwab@suse.de>
7736 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
7737 l_ld_size, l_next_size, l_prev_size, l_name_size.
7739 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
7740 to extract addresses from link map.
7741 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
7742 (LM_NEXT): Likewise.
7743 (LM_NAME): Likewise.
7744 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
7745 (elf_locate_base): Likewise.
7746 (open_symbol_file_object): Likewise.
7747 (svr4_fetch_objfile_link_map): Likewise.
7748 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
7749 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
7751 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
7752 (svr4_lp64_fetch_link_map_offsets): Likewise.
7754 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
7755 removed members. Set l_ld_offset to -1 if not present.
7757 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
7759 Pass stderr of program run with "target remote |"
7761 * serial.c (serial_open): Set error_fd to -1.
7762 * serial.h (struct serial): New field error_fd.
7763 (struct serial_opts): New field avail.
7764 * ser-pipe.c (pipe_open): Create another pair
7765 of sockets. Pass stderr to gdb.
7766 * ser-mingw.c (pipe_windows_open): Pass
7767 PEX_STDERR_TO_PIPE to pex_run. Initialize
7770 (_initialize_ser_windows): Hook pipe_avail.
7771 * ser-base.c (generic_readchar): Check if there's
7772 anything in stderr channel and route that to gdb_stderr.
7774 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
7776 * dbxread.c (read_ofile_symtab): Move current_objfile
7777 clearing to after end_stabs.
7779 2007-04-01 Andreas Schwab <schwab@suse.de>
7781 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
7782 gdbarch instead of current_gdbarch.
7784 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
7786 * varobj.c (varobj_create): Keep varobj value
7787 NULL when evaluating the type.
7789 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
7791 * NEWS: Mention new Windows CE support.
7793 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
7795 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
7796 the obsoletion stanza.
7797 * NEWS: Mention deleted targets.
7799 * config/sh/tm-wince.h: Remove.
7800 * config/sh/wince.mt: Remove.
7801 * config/mips/tm-wince.h: Remove.
7802 * config/mips/wince.mt: Remove.
7805 * wince-stub.c: Remove.
7806 * wince-stub.h: Remove.
7807 * Makefile.in (wince.o): Remove rule.
7808 (wince-stub.o): Likewise.
7810 * mips-tdep.c (mips_next_pc): Make static.
7811 * mips-tdep.h (mips_next_pc): Remove declaration.
7812 * arm-tdep.c (arm_pc_is_thumb): Make static.
7813 (thumb_get_next_pc): Likewise.
7814 (arm_get_next_pc): Likewise.
7815 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
7816 (arm_pc_is_thumb): Likewise.
7817 (thumb_get_next_pc): Likewise.
7818 (arm_get_next_pc): Likewise.
7820 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
7822 * MAINTAINERS: Remove d10v entry.
7823 * Makefile.in (SFILES): Remove dwarfread.c.
7824 (COMMON_OBS): Remove dwarfread.o.
7825 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
7826 (remote-est.o, rom68k-rom.o): Delete.
7827 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
7828 target est, target rom68k, and DWARF 1.
7829 * configure.tgt: Mark d10v as removed.
7830 * dwarf2read.c: Doc update.
7831 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
7833 (elf_locate_sections): Do not set them.
7834 (elf_symfile_read): Do not call dwarf_build_psymtabs.
7835 * symfile.h (dwarf_build_psymtabs): Delete prototype.
7836 * config/m68k/monitor.mt (TDEPFILES): Prune.
7837 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
7838 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
7840 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
7842 * doublest.c (convert_floatformat_to_doublest): Use
7843 floatformat_classify.
7844 (floatformat_is_nan): Rename to...
7845 (floatformat_classify): ...this. Return more information.
7846 * doublest.h (enum float_kind): New.
7847 (floatformat_is_nan): Replace prototype...
7848 (floatformat_classify): ...with this one.
7849 * valprint.c (print_floating): Use floatformat_classify. Handle
7852 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
7854 * README: Mention ISO C library requirement.
7856 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
7858 * Makefile.in (SFILES): Remove nlmread.c.
7859 (COMMON_OBS): Remove nlmread.o.
7860 (nlmread.o): Delete rule.
7861 * README: Delete reference to remote-st.c.
7862 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
7863 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
7865 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
7866 (_initialize_i386_tdep): Do not reference them.
7867 * nlmread.c: Delete file.
7868 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
7869 * target.c: Doc update.
7870 * thread.c: Delete commented include.
7871 * config/alpha/tm-alpha.h: Doc update.
7873 2007-03-30 Chris Dearman <chris@mips.com>
7875 * utils.c (string_to_core_addr): Comment typo.
7877 2007-03-30 Chris Dearman <chris@mips.com>
7879 * mips-tdep.c: Comment typo.
7881 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
7883 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
7884 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
7885 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
7886 * config/powerpc/nm-ppc64-linux.h: Remove file.
7887 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
7888 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
7889 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
7890 * infptrace.c (call_ptrace): Likewise.
7891 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
7892 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
7893 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
7894 (store_register): Likewise.
7896 2007-03-29 Joel Brobecker <brobecker@adacore.com>
7898 * Makefile.in (varobj.o): Add missing dependency.
7900 2007-03-29 Michael Snyder <msnyder@access-company.com>
7902 * MAINTAINERS: Update my email address.
7904 2007-03-29 Joel Brobecker <brobecker@adacore.com>
7906 Add support for exception handling with multiple versions of
7908 * ada-lang.c: Update general comments on how Ada exception catchpoints
7910 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
7911 (__gnat_raise_nodefer_with_msg): Delete.
7912 (ada_unhandled_exception_name_addr_ftype): New type.
7913 (exception_support_info): New type.
7914 (ada_unhandled_exception_name_addr): Add forward declaration.
7915 (ada_unhandled_exception_name_addr_from_raise): Likewise.
7916 (default_exception_support_info): New constant.
7917 (exception_support_info_fallback): Likewise.
7918 (exception_info): New global variable.
7919 (ada_exception_support_info_sniffer): New function.
7920 (ada_executable_changed_observer): Likewise.
7921 (ada_unhandled_exception_name_addr_from_raise): Renamed from
7922 ada_unhandled_exception_name_addr.
7923 (ada_unhandled_exception_name_addr): Reimplement to match the
7924 latest Ada runtime implementation.
7925 (error_breakpoint_runtime_sym_not_found): Delete.
7926 (ada_exception_sym_name): Get the exception sym name from
7927 exception_info rather than hardcoding it.
7928 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
7929 Update error handling.
7930 * Makefile.in (ada-lang.o): Add dependency on observer.h.
7932 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
7934 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
7935 (remote-st.o, uw-thread.o): Delete.
7936 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
7937 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
7938 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
7939 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
7940 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
7941 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
7942 rs6000-*-lynxos* to an obsoletion stanza.
7943 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
7944 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
7945 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
7946 i[34567]86-*-netware*.
7947 * NEWS: Mention deleted targets.
7949 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
7950 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
7951 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
7952 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
7953 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
7954 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
7955 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
7956 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
7957 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
7958 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
7959 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
7960 config/rs6000/tm-rs6000ly.h: Delete files.
7962 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
7964 * defs.h (deprecated_registers_changed_hook): Delete declaration.
7965 * interps.c (clear_interpreter_hooks): Do not clear
7966 deprecated_registers_changed_hook.
7967 * regcache.c (registers_changed): Do not call it.
7968 * top.c (deprecated_registers_changed_hook): Do not define it.
7969 * mi/mi-interp.c (mi_command_loop): Do not clear it.
7970 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
7971 (tui_remove_hooks): Do not remove it.
7972 (tui_selected_frame_level_changed_hook): Check for negative level.
7973 Use get_selected_frame.
7974 (tui_registers_changed_hook): Deleted.
7976 2007-03-29 Joel Brobecker <brobecker@adacore.com>
7978 * stabsread.c (add_undefined_type): Add extra parameter.
7979 Now handles nameless types separately.
7980 (struct nat): New type.
7981 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
7982 New static variables.
7983 (read_type): Update calls to add_undefined_type.
7984 (add_undefined_type_noname): New function.
7985 (add_undefined_type_1): Renames from add_undefined_type.
7986 (cleanup_undefined_types_noname): New function.
7987 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
7988 (cleanup_undefined_types): New handles nameless types separately.
7989 (_initialize_stabsread): Initialize our new static constants.
7991 2007-03-29 Denis Pilat <denis.pilat@st.com>
7993 * configure.ac: Test for signal.h.
7994 * configure, config.in: Regenerate.
7996 2007-03-29 Denis Pilat <denis.pilat@st.com>
7998 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
7999 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
8001 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
8003 * arm-wince-tdep.c: New.
8004 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
8005 (MT_CFLAGS): Delete.
8007 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
8008 solib-legacy.o, solib-svr4.o, and remove wince.o.
8009 * configure.tgt (arm*-*-mingw32ce*): Add.
8010 * signals/signals.c [HAVE_SIGNAL_H]: Check.
8011 (do_target_signal_to_host): Silence 'not used' warning.
8012 * config/arm/tm-wince.h: Remove.
8014 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
8016 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
8017 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
8019 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
8020 * config/ia64/tm-linux.h: Remove file.
8021 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
8022 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
8023 legacy_pc_in_sigtramp.
8024 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
8025 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
8026 Remove func_name argument.
8027 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
8029 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
8030 * target.c (update_current_target): Add to_have_steppable_watchpoint.
8031 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
8032 (HAVE_STEPPABLE_WATCHPOINT): Define.
8034 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
8035 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
8036 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
8037 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
8038 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
8039 target_insert_watchpoint, target_remove_watchpoint): Remove.
8040 (FETCH_INFERIOR_REGISTERS): Define.
8041 * ia64-linux-nat.c (ia64_register_addr): Make static.
8042 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
8043 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
8044 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
8045 (ia64_linux_stopped_data_address): Make static. Add target_ops.
8046 (ia64_linux_stopped_by_watchpoint): Make static.
8047 (ia64_linux_can_use_hw_breakpoint): New function.
8048 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
8049 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
8050 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
8052 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
8054 * linespec.c: Include language.h.
8055 (find_methods): Add language parameter. Call
8056 lookup_symbol_in_language. Pass language down.
8057 (add_matching_methods): Likewise. Call
8058 lookup_symbol_in_language.
8059 (add_constructors): Likewise.
8060 (find_method): Pass sym_class to collect_methods.
8061 (collect_methods): Add sym_class parameter. Pass language
8063 * symtab.c (lookup_symbol): Rename to ...
8064 (lookup_symbol_in_language): ... this. Add language
8065 parameter. Use passed language instead of current_language.
8066 (lookup_symbol): New as wrapper around
8067 lookup_symbol_in_language.
8068 (lookup_symbol_aux): Add language parameter. Use passed
8069 language instead of current_language.
8070 (search_symbols): Indent.
8071 * symtab.h (enum language): Forward declare.
8072 (lookup_symbol_in_language): Declare.
8073 (lookup_symbol): Update description.
8074 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
8075 * ada-lang.c (restore_language): Remove.
8076 (lookup_symbol_in_language): Remove.
8078 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
8080 * breakpoint.c (bpstat_num): Add int *num parameter.
8081 * breakpoint.h (bpstat_num): Likewise.
8082 * infcmd.c (continue_command): Adjust to new bpstat_num
8084 (program_info): Likewise.
8086 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8088 * config/sh/tm-sh.h: Remove file.
8089 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
8090 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
8091 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8092 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
8094 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8096 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
8097 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
8098 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
8099 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
8100 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
8101 sequence if target_shortname is "remote".
8103 2007-03-27 Anton Blanchard <anton@samba.org>
8105 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
8106 instead of wordsize when looking for the LR in a stack frame.
8108 2007-03-27 Andreas Schwab <schwab@suse.de>
8109 Daniel Jacobowitz <dan@codesourcery.com>
8111 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
8112 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
8113 argument. Update all callers.
8114 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
8115 (dwarf2_frame_set_eh_frame_regnum): Rename to...
8116 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
8117 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
8118 (dwarf2_frame_set_adjust_regnum): ...this.
8119 (dwarf2_frame_eh_frame_regnum): Delete prototype.
8120 * rs6000-tdep.c: Include "dwarf2-frame.h".
8121 (rs6000_adjust_frame_regnum): Define.
8122 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
8123 Register rs6000_adjust_frame_regnum.
8125 * Makefile.in (rs6000-tdep.o): Update dependencies.
8127 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
8129 * Makefile.in: Add support for a "pdf" target.
8131 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
8133 * amd64-tdep.c (amd64_init_frame_cache): New function.
8134 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
8136 2007-03-26 Nigel Stephens <nigel@mips.com>
8137 Maciej W. Rozycki <macro@mips.com>
8139 * ui-out.c (ui_out_field_core_addr): Truncate address to
8140 TARGET_ADDR_BIT size before printing.
8142 2007-03-22 Nigel Stephens <nigel@mips.com>
8143 Maciej W. Rozycki <macro@mips.com>
8145 * remote-mips.c (mips_xfer_memory): Update prototype.
8147 2007-03-22 Joel Brobecker <brobecker@adacore.com>
8149 * symfile.h: #include "symtab.h"
8151 2007-03-22 Denis Pilat <denis.pilat@st.com>
8153 * utils.c (pagination_on_command, pagination_off_command):
8154 Remove useless prototypes.
8156 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
8159 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
8160 instead of TYPE_NAME for object base class name.
8163 2007-03-19 Kevin Buettner <kevinb@redhat.com>
8165 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
8166 Specify frame type in calls to frame_func_unwind().
8168 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
8170 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
8171 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
8172 (refine_prologue_limit): Delete.
8173 (skip_prologue): Don't call it. Use extract_unsigned_integer.
8174 Assume lim_pc is set. Correct check for incomplete prologues.
8175 Do not skip clobbers of the frame pointer.
8176 * symtab.c (skip_prologue_using_sal): Fail if there is only one
8179 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8181 * frame.c (frame_pop): Check to see whether there's a frame to
8182 which we can pop first.
8184 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8186 * MAINTAINERS (Write After Approval): Add myself.
8188 2007-03-09 Markus Deuling <deuling@de.ibm.com>
8190 * infrun.c (breakpoints_failed): Remove unnecessary variable.
8191 (handle_inferior_event): Remove unnecessary braces.
8192 * breakpoint.c (bpstat_what): Remove wrong comment.
8194 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
8196 * spu-tdep.c (spu_in_function_epilogue_p): New function.
8197 (spu_gdbarch_init): Install it.
8199 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8201 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
8202 object types, not 0.
8204 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8206 * spu-tdep.c (spu_frame_align): New function.
8207 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
8209 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8211 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
8212 (spu_software_single_step): Likewise.
8213 (spu_read_pc, spu_write_pc): New functions.
8214 (spu_gdbarch_init): Install them.
8216 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8218 * cli/cli-dump.c (struct callback_data): load_offset needs to
8219 have signed long type.
8221 2007-03-07 Joel Brobecker <brobecker@adacore.com>
8223 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
8224 Revert the previous change that had some unexpected side-effects
8226 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
8227 function to get the address of the calling instruction.
8229 2007-03-07 Denis Pilat <denis.pilat@st.com>
8231 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
8232 get_selected_frame by deprecated_safe_get_selected_frame.
8234 2007-03-02 Mark Kettenis <kettenis@gnu.org>
8236 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
8237 "gdb_string.h". Don't include "nbsd-tdep.h".
8238 (SIZEOF_STRUCT_REG): Remove.
8239 (SHNBSD_SIZEOF_GREGS): New.
8240 (shnbsd_supply_gregset, shnbsd_collect_gregset)
8241 (shnbsd_regset_from_core_section): New functions.
8242 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
8243 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
8244 shnbsd_supply_gregset, shnbsd_collect_gregset.
8245 (shnbsd_gregset): New variable.
8246 (shnbsd_init_abi): Set regset_from_core_section.
8247 (GDB_OSABI_NETBSD_CORE): New define.
8248 (shnbsd_core_osabi_sniffer): New function.
8249 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
8250 * Makefile.in (shnbsd-tdep.o): Update dependencies.
8251 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
8253 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
8255 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8257 * gdbtypes.c (replace_type): Fix typo that caused us to not update
8258 length of the types referenced by the new type CV ring.
8260 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8262 * frame.c (frame_pop, frame_observer_target_changed): Call
8264 (flush_cached_frames): Rename to reinit_frame_cache and delete
8266 * frame.h (flush_cached_frames): Delete prototype and update comment.
8268 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
8269 reinit_frame_cache instead of flush_cached_frames. Do not call
8270 select_frame after reinit_frame_cache.
8271 * corelow.c (core_open): Likewise.
8272 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
8273 * infrun.c (prepare_to_proceed, context_switch)
8274 (handle_inferior_event): Likewise.
8275 * linux-fork.c (fork_load_infrun_state): Likewise.
8276 * ocd.c (ocd_start_remote): Likewise.
8277 * remote-e7000.c (e7000_start_remote): Likewise.
8278 * remote-mips.c (device): Likewise.
8279 * thread.c (switch_to_thread): Likewise.
8280 * tracepoint.c (finish_tfind_command): Likewise.
8281 * gdbarch.c: Regenerated.
8283 2007-02-28 Jerome Guitton <guitton@adacore.com>
8284 Joel Brobecker <brobecker@adacore.com>
8286 * gdbtypes.c (check_typedef): Do not replace stub type if
8287 the resolved type is not defined in the same objfile.
8289 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8291 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
8293 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8295 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
8296 symbol for Ada units when the symbol is defined using 't' rather
8297 than 'Tt' as symbol descriptor.
8299 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8301 * config/mips/tm-nbsd.h: Delete file.
8302 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8303 * config/sh/tm-nbsd.h: Delete file.
8304 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
8306 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8308 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
8309 unused WRONG_PARAM value since it was recently deleted.
8311 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
8313 * varobj.c (varobj_update): Free temporary vectors.
8315 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8317 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
8318 * config/powerpc/tm-linux.h: Delete file.
8319 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
8320 (PROCESS_LINENUMBER_HOOK): Do not undefine.
8321 (TEXT_SEGMENT_BASE): Do not redefine.
8322 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
8323 from config/rs6000/tm-rs6000.h.
8324 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8325 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
8326 (TEXT_SEGMENT_BASE): Remove.
8327 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
8328 (rs6000_in_solib_return_trampoline): Remove.
8329 (SKIP_TRAMPOLINE_CODE): Remove.
8330 (rs6000_skip_trampoline_code): Remove.
8331 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
8332 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8333 (FP0_REGNUM): Remove.
8334 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
8335 (rs6000_set_host_arch_hook): Remove.
8336 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
8337 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
8338 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
8339 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
8340 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
8341 * rs6000-nat.c: Include "rs6000-tdep.h".
8342 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
8343 (set_host_arch): Rename to ...
8344 (rs6000_create_inferior): ... this. Make public.
8345 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
8346 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
8347 (rs6000_create_inferior): Remove.
8348 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
8349 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
8350 set_gdbarch_in_solib_return_trampoline, and
8351 set_gdbarch_skip_trampoline_code.
8352 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
8353 from config/rs6000/tm-rs6000.h.
8355 2007-02-27 Joel Brobecker <brobecker@adacore.com>
8357 * buildsym.c (record_producer): Do nothing if no producer is provided.
8359 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
8361 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
8362 to check changelist is non-NULL. Call error if the frontend tries
8363 to update a non-root variable.
8365 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
8367 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8369 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
8370 (dwarf2_frame_sniffer): Update.
8371 (dwarf2_signal_frame_this_id): New function.
8372 (dwarf2_signal_frame_unwind): Use it.
8373 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
8374 * frame.c (frame_func_unwind): Add this_type argument.
8375 (get_frame_func): Update.
8376 (frame_unwind_address_in_block): Add this_type argument and check it.
8378 (get_frame_address_in_block): Update.
8379 * frame.h (enum frame_type): Move higher in the file.
8380 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
8383 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
8384 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
8385 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
8386 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
8387 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
8388 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
8389 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
8390 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
8391 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
8392 frame_func_unwind and frame_unwind_address_in_block to specify
8393 the frame type. Use frame_unwind_address_in_block instead of
8394 frame_pc_unwind in sniffers.
8396 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8398 * frame.c (deprecated_selected_frame): Rename to...
8399 (selected_frame): ...this. Make static.
8400 (get_selected_frame, select_frame): Update.
8401 * frame.h (deprected_select_frame): Delete.
8402 (deprecated_safe_get_selected_frame): Update comments.
8404 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
8405 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
8406 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
8407 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
8408 tui/tui.c: Replace references to deprecated_selected_frame.
8410 2007-02-27 Fred Fish <fnf@specifix.com>
8412 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
8413 directly decrement the stack pointer, accumulate their operand into
8414 the stack offset, and mark the function as not being frameless.
8416 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8418 * arch-utils.c (selected_byte_order): New.
8419 * arch-utils.h (selected_byte_order): New prototype.
8420 * remote-sim.c (gdbsim_open): Use selected_byte_order.
8422 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8424 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
8425 (default_symfile_offsets): Check VMA here. Update section VMAs.
8427 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8429 * remote.c (init_remote_state): Add special handling for placeholder
8432 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8434 * Makefile.in (XMLFILES): Include $(TDEP_XML).
8435 (filenames_h): New variable.
8436 (clean): Clean up xml-builtin.c and stamp-xml.
8437 (arm-linux-nat.o): Update.
8438 * config/arm/linux.mh (TDEP_XML): Define.
8439 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
8440 (arm_linux_has_wmmx_registers): New.
8441 (GET_THREAD_ID): Fix typo.
8442 (IWMMXT_REGS_SIZE): Define.
8443 (fetch_wmmx_regs, store_wmmx_regs): New.
8444 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
8445 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
8446 (super_xfer_partial, arm_linux_xfer_partial): New.
8447 (_initialize_arm_linux_nat): Use them.
8448 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
8449 (xml_builtin_xfer_partial): New function.
8450 * xml-support.h (xml_builtin_xfer_partial): New prototype.
8451 * NEWS: Update mention of iWMMXt support.
8453 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8455 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
8456 if there are no FPA registers.
8457 (arm_dwarf_reg_to_regnum): New function.
8458 (arm_register_type, arm_register_name): Return minimal values for
8459 unsupported registers.
8460 (arm_register_sim_regno): Handle iWMMXt registers.
8461 (arm_gdbarch_init): Record missing FPA registers if indicated by
8462 a target description. Recognize iWMMXt registers. Only register
8463 "info float" for FPA. Use ARM_NUM_REGS. Register
8464 arm_dwarf_reg_to_regnum.
8465 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
8467 (struct gdbarch_tdep): Add have_fpa_registers.
8468 * features/xscale-iwmmxt.xml: Update capitalization.
8469 * regformats/arm-with-iwmmxt.dat: Regenerated.
8471 2007-02-24 Kevin Buettner <kevinb@redhat.com>
8473 * NEWS (New targets): Add entry for the Toshiba Media Processor.
8475 2007-02-23 Kevin Buettner <kevinb@redhat.com>
8477 * MAINTAINERS (mep): New target.
8479 2007-02-23 Kevin Buettner <kevinb@redhat.com>
8481 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
8483 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
8484 (mep-tdep.o): New rule.
8485 * configure.tgt (mep-*-*): New target.
8486 * mep-tdep.c: New file.
8487 * config/mep/mep.mt: New file.
8489 2007-02-22 Markus Deuling <deuling@de.ibm.com>
8491 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
8492 BREAKPOINT_HIT and STOP_UNKNOWN.
8494 2007-02-22 Markus Deuling <deuling@de.ibm.com>
8496 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
8498 2007-02-20 Joel Brobecker <brobecker@adacore.com>
8500 * gdb_expat.h (XMLCALL): Define if not already defined.
8502 2007-02-20 Andreas Schwab <schwab@suse.de>
8504 * Makefile.in (symfile.o): Update dependencies.
8506 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
8508 * MAINTAINERS: Disable -Werror for cris simulator. Build
8509 sparc64-solaris2.10 instead of the broken sparc-elf.
8510 * solib-frv.c: Include "solib.h".
8511 * Makefile.in (solib-frv.o): Update.
8512 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
8513 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
8514 (xtensa_frame_this_id, xtensa_frame_prev_register)
8515 (xtensa_push_dummy_call): Use %p.
8517 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8519 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
8520 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
8521 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
8522 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
8523 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
8524 (sparc-linux-tdep.o): Update.
8526 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
8528 * xtensa-tdep.h (xtensa_reg_mask_t): New.
8529 (xtensa_mask_t): Change mask field to be a separate array.
8530 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
8531 (xtensa_pseudo_register_write, xtensa_unwind_pc)
8532 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
8533 (xtensa_breakpoint_from_pc): Remove implicit type casting.
8534 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
8535 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
8536 (mask14, mask15): Rename to
8537 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
8538 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
8539 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
8540 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
8541 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
8542 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
8543 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
8544 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
8545 (xtensa_submask14, xtensa_submask15): New.
8546 (rmap): Follow strict aliasing rules doing static initialization.
8548 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
8550 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
8551 handling from here...
8552 (tdesc_register_type): ...to here.
8553 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
8554 * features/arm-core.xml: Use code_ptr and data_ptr.
8556 2007-02-13 Denis Pilat <denis.pilat@st.com>
8558 * varobj.h (enum varobj_update_error): New enum.
8559 * varobj.c (struct varobj_root): Add is_valid member.
8560 (varobj_get_type): Check for invalid varobj.
8561 (varobj_get_attributes): Likewise.
8562 (variable_editable):Likewise.
8563 (varobj_update): Likewise. Use varobj_update_error.
8564 (new_root_variable): Set root varobj as valid by default.
8565 (varobj_invalidate): New function.
8566 * symfile.c (clear_symtab_users): Use varobj_invalidate.
8567 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
8568 Use varobj_update_error.
8570 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
8573 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
8574 Pascal language marker.
8575 * dwarf2read.c (set_cu_language): Likewise.
8577 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
8579 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
8580 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
8581 instead of target_terminal_init since inferior_ptid isn't set yet.
8583 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
8585 * MAINTAINERS (Write After Approval): Add myself.
8587 2007-02-09 Fred Fish <fnf@specifix.com>
8589 Based on work by Apple Computer, Inc.
8590 * event-top.c (async_request_quit): Call quit() whenever either
8591 quit_flag is set or immediate_quit is set.
8593 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
8595 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
8596 type to a pointer to const struct block.
8597 (ada_lookup_symbol_list): Don't cast away constness when calling
8598 remove_out_of_scope_renamings.
8600 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
8602 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
8603 address of 'filename'; it is always non null.
8605 2007-02-09 Joel Brobecker <brobecker@adacore.com>
8607 * exec.c (add_to_section_table): Do not discard empty sections.
8609 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8611 * features/Makefile, features/arm-with-iwmmxt.xml,
8612 features/gdbserver-regs.xsl, features/number-regs.xsl,
8613 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
8614 * regformats/arm-with-iwmmxt.dat: Generate.
8615 * NEWS: Mention iWMMXt.
8617 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8619 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
8620 (xml-tdesc.o): Update.
8621 * xml-support.c: Add a comment.
8622 (gdb_xml_enums_boolean): New variable.
8623 (gdb_xml_parse_attr_enum): Use strcasecmp.
8624 * xml-support.h (gdb_xml_enums_boolean): Declare.
8625 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
8626 next_regnum, and current_union.
8627 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
8628 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
8629 (field_attributes, union_children, reg_attributes, union_attributes)
8630 (vector_attributes, feature_attributes, feature_children): New.
8631 (target_children): Make static. Add <feature>.
8632 (tdesc_elements): Make static.
8633 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
8634 (struct tdesc_feature, tdesc_feature_p): New types.
8635 (struct target_desc): Add features member.
8636 (struct tdesc_arch_data, tdesc_data): New.
8637 (target_find_description): Clarify error message. Warn about
8638 ignored register descriptions.
8639 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
8640 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
8641 (tdesc_data_cleanup, tdesc_numbered_register)
8642 (tdesc_numbered_register_choices, tdesc_find_register)
8643 (tdesc_register_name, tdesc_register_type)
8644 (tdesc_remote_register_number, tdesc_register_reggroup_p)
8645 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
8646 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
8647 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
8648 (tdesc_create_feature, tdesc_record_type): New.
8649 (free_target_description): Free features.
8650 (_initialize_target_descriptions): Initialize tdesc_data.
8651 * arch-utils.c (default_remote_register_number): New.
8652 * arch-utils.h (default_remote_register_number): New prototype.
8653 * target-descriptions.h (set_tdesc_pseudo_register_name)
8654 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
8655 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
8656 (tdesc_numbered_register, tdesc_numbered_register_choices)
8657 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
8658 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
8659 (tdesc_create_reg): Declare.
8660 * gdbarch.sh (remote_register_number): New entry.
8661 * gdbarch.c, gdbarch.h: Regenerate.
8662 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
8663 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
8665 * arm-tdep.c (arm_register_aliases): New.
8666 (arm_register_name_strings): Rename to...
8667 (arm_register_names): ...this. Make const. Delete the old version.
8668 (current_option, arm_register_byte): Delete.
8669 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
8670 (value_of_arm_user_reg): New.
8671 (arm_gdbarch_init): Verify any described registers. Call
8672 tdesc_use_registers. Don't use arm_register_byte. Create aliases
8673 for standard register names.
8674 (_initialize_arm_tdep): Do not adjust arm_register_names.
8675 * user-regs.c (struct user_reg): Add baton member.
8676 (append_user_reg, user_reg_add_builtin, user_regs_init)
8677 (user_reg_add, value_of_user_reg): Use a baton for user
8679 * std-regs.c: Update.
8680 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
8681 (user_reg_add): Add baton argument.
8682 * NEWS: Mention target description register support.
8683 * features/arm-core.xml, features/arm-fpa.xml: New.
8684 * eval.c (evaluate_subexp_standard): Allow ptype $register
8685 when the program is not running.
8687 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
8689 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
8691 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
8693 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
8694 info->disassembler_options to "any".
8696 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8698 * varobj.c (install_new_value): Only call value_get_print_value
8701 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8703 Reported by timeless@gmail.com:
8704 * gdb/target.c (target_flash_erase): Do not return void value.
8705 (target_flash_done): Likewise.
8706 * gdb/cli/cli-cmds.c (source_command): Likewise.
8708 2007-02-08 Fred Fish <fnf@specifix.com>
8710 Based on work by Apple Computer, Inc.
8711 * event-top.c (handle_sigint): Set quit_flag.
8712 (async_request_quit): Don't set quit_flag. Avoid calling quit()
8713 if quit_flag has already been reset.
8715 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8717 * ser-mingw.c (pipe_windows_close): Move variable initialization back
8720 2007-02-08 Fred Fish <fnf@specifix.com>
8722 * defs.h (request_quit): Remove declaration.
8723 * utils.c (request_quit): Remove definition.
8725 2007-02-08 Joel Brobecker <brobecker@gnat.com>
8726 Jan Kratochvil <jan.kratochvil@redhat.com>
8727 Daniel Jacobowitz <dan@codesourcery.com>
8729 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
8730 (skip_prologue): Allow bl->blrl used by PIC code.
8732 2007-02-08 Mark Kettenis <kettenis@gnu.org>
8733 Daniel Jacobowitz <dan@codesourcery.com>
8735 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
8736 initialize tmp_obstack.
8737 * p-valprint.c (pascal_object_print_value_fields)
8738 (pascal_object_print_value): Likewise.
8740 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8742 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
8744 2007-02-08 Mark Kettenis <kettenis@gnu.org>
8746 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
8747 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
8749 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
8751 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
8753 (tdesc_parse_xml): Cache expanded descriptions.
8755 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
8757 * Makefile.in (XMLFILES): New.
8758 (COMMON_OBS): Add xml-builtin.o.
8759 (xml-builtin.c, stamp-xml): New rules.
8760 (xml-tdesc.o): Update.
8761 * features/feature_to_c.sh: New file.
8762 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
8763 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
8764 (gdb_xml_start_element): Initialize scope after possibly reallocating
8765 scopes. Move cleanup later. Handle the XInclude description
8767 (gdb_xml_end_element): Only parse the body if there is a current element.
8768 Call XML_DefaultCurrent if there is no element.
8769 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
8770 (struct xinclude_parsing_data, xinclude_start_include)
8771 (xinclude_end_include, xml_xinclude_default)
8772 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
8773 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
8774 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
8775 * xml-support.h (xml_fetch_another, xml_process_xincludes)
8776 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
8777 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
8778 XInclude directives. Use the compiled in DTD.
8779 (fetch_xml_from_file): Add baton argument. Treat it as a containing
8780 directory name. Do not warn here.
8781 (file_read_description_xml): Update call. Warn here instead. Pass
8783 (fetch_available_features_from_target): New.
8784 (target_read_description_xml): Use it.
8785 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
8787 * features/xinclude.dtd: New file.
8789 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
8791 * linux-thread-db.c (check_for_thread_db): Return early if we have
8792 no libthread_db support.
8794 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
8796 * mi/mi-parse.h: Include <sys/time.h>.
8798 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
8800 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
8801 instead of print_variable_value to print values.
8803 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
8805 * mi/mi-main.c: Numerous formatting changes.
8806 (mi_cmd_data_write_register_values): Replace clause inadvertantly
8807 removed in my previous change.
8809 2007-02-03 Eli Zaretskii <eliz@gnu.org>
8811 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
8812 Use 1000000L instead of 1000000.
8814 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
8816 Based on work by Apple Computer, Inc.
8818 * configure.ac: Test for sys/resource.h and getrusage.
8819 * configure, config.in: Regenerate.
8821 * mi/mi-main.c: Include <sys/resource.h> if present.
8822 (rusage): Declare if HAVE_GETRUSAGE.
8823 (current_command_ts, do_timings): New static variables.
8824 (timestamp, print_diff_now, print_diff, timeval_diff):
8825 New static timing functions.
8826 (mi_cmd_enable_timings): New function for new MI command.
8827 (captured_mi_execute_command, mi_execute_async_cli_command):
8828 Call timing functions.
8830 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
8833 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
8835 * mi/mi-parse.h: (mi_timestamp): New structure.
8836 (mi_parse): Add mi_timestamp* member.
8838 2007-02-02 Denis Pilat <denis.pilat@st.com>
8840 * thread.c (make_cleanup_restore_current_thread): New function.
8841 (info_threads_command): Use of make_cleanup_restore_current_thread
8842 to restore the current thread and the selected frame.
8843 (restore_selected_frame): New function.
8844 (struct current_thread_cleanup): Add frame_id field.
8845 (do_restore_current_thread_cleanup): Add restoring of the selected
8847 (make_cleanup_restore_current_thread): Likewise.
8848 (thread_apply_all_command): backup the selected frame while
8849 entering the function and restore it at exit.
8850 (thread_apply_command): Likewise.
8852 2007-02-02 Denis Pilat <denis.pilat@st.com>
8854 * MAINTAINERS (Write After Approval): Add myself to the list.
8856 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
8858 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
8859 (m32r_store_register): Ditto.
8861 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
8863 * ser-mingw.c (pipe_windows_open)
8864 (pipe_windows_read, pipe_windows_write): Declare
8865 variables at the top of the function.
8867 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
8869 * doublest.c (floatformat_from_length): Use the right element from
8870 gdbarch floatformats.
8871 (floatformat_from_type, extract_typed_floating)
8872 (store_typed_floating): Likewise.
8873 * doublest.h: Remove declarations for undefined floatformat arrays.
8874 * gdbarch.sh (float_format, double_format, long_double_format): Change
8876 (pformat): Update for pairs.
8877 * gdbarch.c, gdbarch.h: Regenerated.
8878 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
8879 (floatformats_ieee_double_littlebyte_bigword)
8880 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
8881 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
8882 (floatformats_vax_d): New variables.
8883 (builtin_type_ieee_single, builtin_type_ieee_double)
8884 (builtin_type_arm_ext, builtin_type_ia64_spill)
8885 (builtin_type_ia64_quad): Replace arrays with individual types.
8886 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
8887 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
8888 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
8889 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
8890 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
8891 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
8892 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
8893 unused and endian-specific types.
8894 (recursive_dump_type): Update for floatformat pairs.
8895 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
8896 (build_gdbtypes): Use build_flt.
8897 (_initialize_gdbtypes): Update set of initialized types.
8898 * gdbtypes.h: Update declarations to match gdbtypes.c.
8899 (struct main_type): Store a pointer to two floatformats.
8900 * arch-utils.c (default_float_format, default_double_format): Delete.
8901 * arch-utils.h (default_float_format, default_double_format): Delete.
8903 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
8904 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
8905 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
8906 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
8907 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
8909 2007-01-29 Joel Brobecker <brobecker@adacore.com>
8911 * target.c (maintenance_print_target_stack): New function.
8912 (initialize_targets): Add new "maintenance print target-stack"
8915 2007-01-28 Mark Kettenis <kettenis@gnu.org>
8917 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
8919 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
8921 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
8922 (struct dwarf2_loclist_baton): Likewise.
8924 2007-01-27 Eli Zaretskii <eliz@gnu.org>
8926 * cli/cli-script.c: Include breakpoint.h.
8927 (build_command_line): Require arguments only for if and while
8929 (get_command_line, execute_user_command, execute_control_command):
8930 Fix wording of warning messages.
8931 (print_command_lines): Print breakpoint commands.
8932 (execute_control_command): Call commands_from_control_command to
8933 handle the `commands' command inside a body of a flow-control
8935 (read_next_line): Recognize the `commands' command and build a
8936 command line structure for it.
8937 (recurse_read_control_structure, read_command_lines): Handle
8938 `commands' similarly to `if' and `while'.
8940 * breakpoint.c (get_number_trailer): Document the special meaning
8941 of NULL as the first argument PP.
8942 (commands_from_control_command): New function.
8944 * breakpoint.h (commands_from_control_command): Add prototype.
8946 * defs.h (commands_control): New enumerated value for enum
8947 command_control_type.
8949 2007-01-26 Joel Brobecker <brobecker@adacore.com>
8951 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
8952 (ada_exception_sal): Update accordingly.
8954 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8956 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
8957 * NEWS: Describe CHAR array vs. string identifcation rules.
8959 2007-01-25 Paul Brook <paul@codesourcery.com>
8961 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
8963 2007-01-24 Jim Blandy <jimb@codesourcery.com>
8965 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
8966 expression is empty, bother to return the 'optimized out' value we
8967 construct. (Thanks to Carl Burch.)
8969 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
8971 * varobj.c (c_value_of_root, c_value_of_child)
8972 (cplus_describe_child): Don't call release_value.
8974 2007-01-24 Thiemo Seufer <ths@mips.com>
8976 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
8979 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
8981 Refactor getting children name, value and type access
8983 * varobj.c (get_type_deref): Remove.
8984 (adjust_value_for_child_access): New.
8985 (c_number_of_children): Use the above.
8986 (c_describe_child): Likewise.
8987 (enum accessibility): New.
8988 (match_accessibility): New function.
8989 (cplus_describe_child): New function.
8990 (cplus_name_of_child, cplus_value_of_child)
8991 (cplus_type_of_child): Reimplement in terms
8992 of cplus_describe_child.
8993 (cplus_number_of_children): Use
8994 adjust_value_for_child_access.
8996 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
8998 Fix computation of the 'editable' attribute and
8999 value changeability for for references.
9000 * varobj.c (get_value_type): New function.
9001 (c_variable_editable): Use get_value_type.
9002 (varobj_value_is_changeable): Likewise.
9004 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9006 * source.c (find_and_open_source): Try rewriting the source
9007 path inside filename if dirname is NULL.
9009 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9011 * dwarf2read.c (add_partial_symbol): Create an extra partial
9012 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
9013 (new_symbol): Likewise for symbols.
9015 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
9017 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
9019 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
9021 * value.c (value_primitive_field): Copy the full 'location'
9022 contents, instead of assuming that copying ADDRESS will
9023 bring over everything in the union. Remove obsolete comment.
9025 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
9027 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
9028 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
9029 (m32c_m16c_pointer_to_address): Separate code from declarations.
9031 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
9033 * target.c (update_current_target): Correct typo.
9035 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
9037 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
9040 2007-01-11 Andrew Cagney <cagney@redhat.com>
9041 Daniel Jacobowitz <dan@codesourcery.com>
9042 Jan Kratochvil <jan.kratochvil@redhat.com>
9044 * dwarf2-frame.c (execute_cfa_program): New support of
9045 `DW_CFA_GNU_negative_offset_extended'.
9047 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9049 * NEWS: Mention flash support for "load" and new remote packets.
9051 2007-01-21 Markus Deuling <deuling@de.ibm.com>
9053 * breakpoint.c (delete_command): Skip redundant loop iterations.
9055 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9057 * gdbarch.sh (register_type): Update comment.
9058 * gdbarch.h: Regenerated.
9059 * arch-utils.c (generic_register_size): Call register_type.
9060 * ia64-tdep.c (ia64_extract_return_value): Likewise.
9061 * m32c-tdep.c (check_for_saved): Likewise.
9062 * mips-tdep.c (mips_print_register, print_gp_register_row)
9063 (mips_print_registers_info): Likewise.
9064 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
9066 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
9067 (sh64_do_register, sh64_print_register)
9068 (sh64_media_print_registers_info): Likewise.
9069 * tui/tui-regs.c (tui_register_format): Likewise.
9071 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9073 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
9075 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
9076 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
9077 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
9078 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9079 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
9080 (make_symbol_completion_list): Likewise.
9082 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9083 Daniel Jacobowitz <dan@codesourcery.com>
9085 * buildsym.c (end_symtab): Use preallocated symtab if available.
9086 Fill in SYMBOL_SYMTAB.
9087 * buildsym.h (struct subfile): Add symtab member.
9088 * dwarf2read.c (struct dwarf2_cu): Add line_header.
9089 (struct file_entry): Add symtab.
9090 (free_cu_line_header): New function.
9091 (read_file_scope): Use it. Save line_header in the cu. Process
9093 (add_file_name): Initialize new symtab member.
9094 (dwarf_decode_lines): Create symtabs for included files.
9095 (new_symbol): Set SYMBOL_SYMTAB.
9096 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
9097 (search_symbols): Likewise.
9098 * symtab.h (struct symbol): Add symtab member.
9099 (SYMBOL_SYMTAB): Define.
9101 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9103 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
9105 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9107 * arch-utils.c (show_endian): Correct reversed condition.
9109 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9111 * MAINTAINERS (Write After Approval): Add myself.
9113 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
9114 Vladimir Prus <vladimir@codesourcery.com>
9116 Fix 'selected frame' varobjs.
9117 * varobj.c (struct varobj): Remove the error field.
9118 (varobj_set_value): Don't check var->error.
9119 (install_new_value): Don't set var->error.
9120 (varobj_update): Always pass the new value
9121 of the root via install_new_value.
9122 (create_child): Don't set error field.
9123 (new_variable): Likewise.
9124 (c_value_of_root): Always reevaluate the value
9125 of selected frame varobjs in the selected frame.
9126 Don't call reinit_frame_cache.
9128 2007-01-15 Joel Brobecker <brobecker@adacore.com>
9130 * source.c (_initialize_source): Improve the help text of
9131 the substitute-path commands.
9133 2007-01-14 Mark Kettenis <kettenis@gnu.org>
9135 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
9136 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
9137 (frv_skip_prologue): Remove prototypes.
9138 (frv_adjust_breakpoint_address): Renamed from
9139 frv_gdbarch_adjust_breakpoint_address.
9140 (frv_gdbarch_init): Adjust.
9142 2007-01-13 Mark Kettenis <kettenis@gnu.org>
9144 * gdbarch.sh (deprecated_extract_return_value)
9145 (deprecated_store_return_value): Remove.
9146 (extract_return_value, store_return_value): Remove default values.
9147 * gdbarch.c, gdbarch.h: Regenerate.
9148 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
9149 (legacy_store_return_value): Remove.
9150 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
9153 * mi/mi-main.c: Remove obsolete comment.
9155 * regcache.c, regcache.h (deprecated_register_bytes)
9156 (deprecated_read_register_bytes)
9157 (deprecated_write_register_bytes): Remove.
9159 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
9160 Don't forget to move destination pointer.
9162 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9164 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
9166 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
9168 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
9169 past entry function with recent newlib.
9171 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
9173 * gdb.texinfo (GDB/MI Variable Objects): Improve the
9174 introduction. Specify -var-update more exactly.
9176 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
9178 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
9180 2007-01-10 Jim Blandy <jimb@codesourcery.com>
9182 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
9183 the Global Maintainers' invitation to be a global maintainer.
9185 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
9187 * infrun.c (singlestep_pc): New variable.
9188 (resume): Set singlestep_pc.
9189 (context_switch): Add a debugging message. Flush the frame cache.
9190 (handle_inferior_event): Add debugging messages. Handle thread
9191 hops when a software single step has completed. Let context_switch
9192 handle flushing the frame cache.
9194 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9196 * NEWS: Mention target descriptions, "set tdesc filename",
9197 "unset tdesc filename", "show tdesc filename", and
9198 qXfer:features:read.
9199 * arch-utils.c (choose_architecture_for_target): New function.
9200 (gdbarch_info_fill): Call it.
9201 * target-descriptions.c (struct property): Make members non-const.
9202 (struct target_desc): Add arch member.
9203 (target_description_filename): New variable.
9204 (target_find_description): Try via XML first.
9205 (tdesc_architecture): New.
9206 (free_target_description, make_cleanup_free_target_description): New.
9207 (set_tdesc_property): Call xstrdup.
9208 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
9209 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
9210 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
9211 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
9212 * target-descriptions.h (tdesc_architecture)
9213 (make_cleanup_free_target_description, set_tdesc_architecture): New
9215 * Makefile.in (SFILES): Add xml-tdesc.c.
9216 (COMMON_OBS): Add xml-tdesc.o.
9217 (target-descriptions.o): Update.
9218 (xml-tdesc.o): New rule.
9219 * xml-tdesc.c, xml-tdesc.h: New files.
9220 * remote.c (PACKET_qXfer_features): New enum.
9221 (remote_protocol_features): Add qXfer:features:read.
9222 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
9223 (_initialize_remote): Register qXfer:features:read.
9224 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
9225 * features/gdb-target.dtd: New file.
9227 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9229 * copyright.sh: Clarify error.
9231 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9233 * symtab.c (matching_bfd_sections): Fix VMA matching for
9236 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9238 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
9241 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9243 Updated copyright notices for most files.
9245 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9247 * copyright.sh (prunes): Add step-line.inp and step-line.c.
9249 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9251 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
9253 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
9255 * configure, config.in: Regenerate.
9256 * defs.h (debug_file_directory): Declare.
9257 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
9258 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
9259 relocate it if DEBUGDIR_RELOCATABLE.
9260 * symfile.c (debug_file_directory): Make non-static.
9261 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
9262 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
9263 (_initialize_symfile): Don't initialize debug_file_directory here.
9265 2007-01-09 Jim Blandy <jimb@codesourcery.com>
9267 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
9270 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9272 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
9273 frame_unwind_register to recurse.
9274 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
9275 (alpha_heuristic_frame_prev_register): Likewise.
9276 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
9277 * m32c-tdep.c (m32c_prev_register): Likewise.
9278 * frame.c (frame_register_unwind_location): Remove FIXME.
9280 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9281 Eli Zaretskii <eliz@gnu.org>
9283 * copyright.sh: New file.
9285 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9287 * configure.ac: Check for XML_StopParser.
9288 * xml-support.c (gdb_xml_body_text): Check for an error.
9289 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
9290 (gdb_xml_end_element_wrapper): Likewise.
9291 * config.in, configure: Regenerated.
9293 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9295 * varobj.c (install_new_value): Always update print_value.
9296 (value_get_print_value): Immediately return NULL for missing
9299 2007-01-08 Jim Blandy <jimb@codesourcery.com>
9301 * configure.ac: Tighten pattern for extracting value of
9302 DEPRECATED_TM_FILE from the target makefile fragment.
9303 * configure: Regenerated.
9305 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9307 * linux-nat.c (struct simple_pid_list): Add status.
9308 (add_to_pid_list): Record the PID's status.
9309 (linux_record_stopped_pid): Likewise. Make static.
9310 (pull_pid_from_list): Return the saved status.
9311 (linux_nat_handle_extended): Deleted.
9312 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
9313 Make static. Handle non-SIGSTOP for a new thread's first signal.
9314 (flush_callback): Handle unexpected pending signals.
9315 (linux_nat_wait): Update calls to changed functions.
9316 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
9317 Remove prototypes for newly static functions.
9319 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9321 * gdbarch.sh (value_from_register): New gdbarch function.
9322 * gdbarch.c, gdbarch.h: Regenerate.
9323 * findvar.c (default_value_from_register): New function.
9324 (value_from_register): Use gdbarch_value_from_register.
9325 * value.h (default_value_from_register): Declare.
9326 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
9327 spu_value_to_register): Remove.
9328 (spu_value_from_register): New function.
9329 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9330 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9331 Call set_gdbarch_value_from_register.
9332 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
9333 s390_value_to_register): Remove.
9334 (s390_value_from_register): New function.
9335 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9336 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9337 Call set_gdbarch_value_from_register.
9339 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9341 * NEWS: Add "set sysroot" and "show sysroot".
9342 * solib.c (solib_absolute_prefix): Delete. Replace
9343 all uses with gdb_sysroot.
9344 (_initialize_solib): Add "set sysroot" and "show sysroot".
9345 Make "solib-absolute-prefix" an alias to it.
9347 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9349 * frame.c (get_frame_register_bytes): New function.
9350 (put_frame_register_bytes): Likewise.
9351 * frame.h (get_frame_register_bytes): Declare.
9352 (put_frame_register_bytes): Likewise.
9353 * findvar.c (value_from_register): Always construct lval_register
9354 values. Use get_frame_register_bytes.
9355 * valops.c (value_assign): Use get_frame_register_bytes and
9356 put_frame_register_bytes.
9358 2007-01-08 Jim Blandy <jimb@codesourcery.com>
9360 * MAINTAINERS: Update Stan Shebs' email address.
9362 2007-01-07 Joel Brobecker <brobecker@adacore.com>
9364 * ada-lang.c (is_known_support_routine): Improve the implementation.
9366 2007-01-06 Joel Brobecker <brobecker@adacore.com>
9368 * ada-lang.c: Add include of source.h.
9369 (is_known_support_routine): Improve the check verifying that the file
9370 associated to this frame exists.
9371 * Makefile.in (ada-lang.o): Add dependency on source.h.
9373 2007-01-07 Jim Blandy <jimb@codesourcery.com>
9375 * ax-general.c (ax_const_l): Select proper opcode for the given
9378 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
9380 * varobj.c (c_value_of_root): Don't select frame if variable
9381 object is out of scope.
9383 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
9385 * varobj.c (struct varobj): New member print_value.
9386 (install_new_value): Compare last printed value with current one
9387 instead of contents.
9388 (new_variable): Initialize var->print_value to NULL.
9389 (free_variable): Free var->print_value.
9390 (value_get_print_value): New function derived from
9391 c_value_of_variable.
9392 (c_value_of_variable): Use value_get_print_value.
9394 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9396 * i386-tdep.c (i386_analyze_stack_align): Add comment.
9398 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9400 * NEWS: Add entries for new catch commands.
9402 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9404 * dwarf2read.c (partial_die_info): Add field has_byte_size.
9405 (add_partial_symbol): Correct identification of external references.
9406 (process_structure_scope): Likewise.
9407 (read_partial_die): Handle DW_AT_byte_size attribute.
9409 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
9411 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
9413 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
9415 * varobj.c (get_type_deref): Fix variable objects for references to
9418 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9420 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
9423 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9425 * memory-map.c (struct_memory_map_parsing_data): Remove most
9426 members. Make property_name an array.
9427 (free_memory_map_parsing_data, memory_map_start_element)
9428 (memory_map_end_element, memory_map_character_data): Delete.
9429 (memory_map_start_memory, memory_map_end_memory)
9430 (memory_map_start_property, memory_map_end_property): New functions.
9431 (property_attributes, memory_children, memory_type_enum)
9432 (memory_attributes, memory_map_children, memory_map_elements): New.
9433 (parse_memory_map): Rewrite.
9434 * xml-support.c (debug_xml): New.
9435 (xml_get_required_attribute, xml_get_integer_attribute)
9436 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
9438 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
9439 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
9440 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
9441 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
9442 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
9443 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
9444 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
9446 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
9447 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
9448 (enum gdb_xml_element_flag, struct gdb_xml_element)
9449 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
9450 (struct gdb_xml_enum): New.
9451 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
9452 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
9453 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
9454 (xml_get_required_attribute, xml_get_integer_attribute)
9455 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
9456 * Makefile.in (xml_support_h, xml-support.o): Update.
9458 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9460 * Makefile.in (eval.o): Update dependencies.
9461 * eval.c: Include "ui-out.h" and "exceptions.h".
9462 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
9463 Use value_zero if an error occurs when avoiding side effects.
9464 * varobj.c (c_value_of_root): Initialize new_val.
9466 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9468 * varobj.c (varobj_list_children): Stop if the number of children is
9470 (c_number_of_children):
9472 2007-01-04 Mark Kettenis <kettenis@gnu.org>
9474 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
9475 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
9476 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
9477 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
9478 sizeof, instead of hardcoded constants.
9480 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9482 * CONTRIBUTE: Use sourceware.org.
9484 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9486 * buildsym.c (start_subfile): Handle producer.
9487 (record_producer): New function.
9488 * buildsym.h (struct subfile): Include producer.
9489 (record_producer): New prototype.
9490 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
9491 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
9492 armcc_cfa_offsets_reversed.
9493 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
9494 (dwarf2_frame_find_quirks): New function.
9495 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
9496 (decode_frame_entry_1): Record the CIE version. Record the
9497 augmentation. Skip armcc augmentations.
9498 * dwarf2read.c (read_file_scope): Save the producer.
9499 * symtab.h (struct symtab): Rename unused version member to
9502 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9504 * configure.ac (build_warnings): Use -Wall and
9505 -Wdeclaration-after-statement.
9506 * configure: Regenerated.
9508 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
9510 Simplify access to variours properties of child
9511 variable objects in C.
9512 * varobj.c (value_struct_element_index): New function.
9513 (c_describe_child): New function.
9514 (c_name_of_child, c_value_of_child)
9515 (c_type_of_child): Rewrite to use c_describe_child.
9517 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
9520 * varobj.c: Include "vec.h".
9521 (varobj_p): New typedef, declare vector of those.
9522 (struct varobj): Use vector for the 'children' member.
9523 (child_exists): Remove.
9524 (save_child_in_parent): Remove.
9525 (remove_child_from_parent): Remove.
9526 (struct varobj_child): Remove.
9527 (struct vstack): Remove.
9528 (vpush, vpop): Remove.
9529 (varobj_list_children): Adjust to work work vector.
9530 (varobj_update): Likewise. Use vectors for
9531 working stack and result.
9532 (delete_variable_1): Likewise.
9533 * Makefile.in (varobj.o): Update dependencies.
9535 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
9537 Port from Apple's version.
9539 * varobj.c (type_changeable): Rename to...
9540 (varobj_value_is_changeable_p): ...this. Adjust all callers.
9541 (is_root_p): New function. Use it everywhere.
9543 2007-01-04 Jim Blandy <jimb@codesourcery.com>
9545 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
9548 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9550 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
9552 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9554 * hpread.c (hpread_type_lookup): Fix compilation failure.
9556 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
9558 * NEWS: New port to S+core.
9559 * MAINTAINERS (Write After Approval, Responsible Maintainers):
9562 * Makefile.in: Add dependencies for S+core files.
9563 * configure.tgt (score*, score-*-*): Add S+core target.
9564 * config/score/embed.mt: New file.
9565 * score-tdep.c: New file.
9566 * score-tdep.h: New file.
9568 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9570 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
9571 the appropriate type rather than a bogus void type.
9573 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9575 * ada-lang.h (ada_find_printable_frame): Remove.
9576 (ada_exception_catchpoint_p, ada_decode_exception_location)
9577 (ada_decode_assert_location): Add declaration.
9578 * ada-lang.c: Add include of annotate.h and valprint.h.
9579 (exception_catchpoint_kind): New enum.
9580 (function_name_from_pc, is_known_support_routine)
9581 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
9582 (ada_exception_name_addr_1, ada_exception_name_addr)
9583 (print_it_exception, print_one_exception, print_mention_exception)
9584 (print_it_catch_exception, print_one_catch_exception)
9585 (print_mention_catch_exception, catch_exception_breakpoint_ops)
9586 (print_it_catch_exception_unhandled)
9587 (print_one_catch_exception_unhandled)
9588 (print_mention_catch_exception_unhandled, print_it_catch_assert)
9589 (print_one_catch_assert, print_mention_catch_assert)
9590 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
9591 (ada_get_next_arg, catch_ada_exception_command_split)
9592 (ada_exception_sym_name, ada_exception_sym_name)
9593 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
9594 (ada_parse_catchpoint_condition, ada_exception_sal)
9595 (ada_decode_exception_location)
9596 (ada_decode_assert_location): New function.
9597 (catch_exception_unhandled_breakpoint_ops): New global variable.
9598 (catch_assert_breakpoint_ops): New global variable.
9599 * breakpoint.c: Add include of ada-lang.h.
9600 (print_one_breakpoint): Do not print the condition for Ada
9601 exception catchpoints.
9602 (create_ada_exception_breakpoint): New function.
9603 (catch_ada_exception_command, catch_assert_command): New function.
9604 (catch_command_1): Add support for the new "catch exception" and
9605 "catch assert" commands.
9606 (_initialize_breakpoint): Add help description for the new catch
9608 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
9610 (breakpoint.o): Add dependency on ada-lang.h.
9612 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
9614 * coffread.c (cs_to_section): If bfd_section is found, always
9615 return its section index.
9616 (coff_symtab_read): Determine the minimal_symbol_type using the
9619 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9620 Daniel Jacobowitz <dan@codesourcery.com>
9622 * Makefile.in (top.o): Update.
9623 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
9624 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
9625 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
9627 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
9629 2007-01-03 Mark Kettenis <kettenis@gnu.org>
9631 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
9632 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
9634 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
9636 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
9637 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
9638 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
9639 greater than or equal to zero.
9640 * m2-typeprint.c (m2_array): Likewise.
9641 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
9642 * gdbtypes.c (copy_type_recursive): Correct == typo.
9643 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
9644 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
9646 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
9647 (default_macro_scope): Remove unused variable.
9648 * prologue-value.h (pv_area_find_reg): Don't name an argument
9650 * remote-fileio.c (remote_fio_func_map): Add missing braces.
9651 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
9653 (cleanup_sigint_signal_handler): Remove casts.
9654 * valprint.c (val_print): Use a volatile local for the modified
9656 * varobj.c (languages): Remove extra array dimension.
9657 (varobj_create): Correct access to languages array.
9658 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
9660 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
9661 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
9662 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
9663 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
9664 (mi_cmd_data_write_memory): Likewise.
9665 * signals/signals.c (target_signal_to_string): Cast to int before
9667 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
9670 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
9672 * NEWS: Mention pointer to member improvements.
9673 * Makefile.in (gnu-v3-abi.o): Delete special rule.
9674 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
9675 * ada-valprint.c (ada_print_scalar): Update for new type codes.
9676 * c-typeprint.c (c_print_type): Update for new type codes.
9677 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
9678 (c_type_print_base): Likewise.
9679 (c_type_print_args): Rewrite.
9680 * c-valprint.c (c_val_print): Update for new type codes. Remove
9681 support for references to members. Treat methods like functions.
9682 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
9683 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
9684 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
9685 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
9686 (struct cp_abi_ops): Add corresponding members.
9687 * cp-valprint.c (cp_print_class_method): Delete.
9688 (cp_find_class_member): New function.
9689 (cp_print_class_member): Use it. Simplify support for bogus
9691 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
9692 lookup_methodptr_type.
9693 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
9694 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
9695 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
9697 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
9698 references returned by user defined operators.
9699 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
9700 (f_type_print_varspec_suffix): Remove support for member pointers.
9701 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
9703 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
9704 (lookup_methodptr_type): New.
9705 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
9706 (recursive_dump_type): Update for new types.
9707 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
9708 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
9709 (lookup_memberptr_type, lookup_methodptr_type)
9710 (smash_to_memberptr_type): New prototypes.
9711 (smash_to_method_type): Formatting fix.
9712 (lookup_member_type, smash_to_member_type): Delete prototypes.
9713 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
9714 Do not rely on debug information for the vptr or the method's
9715 enclosing type. Handle function descriptors for IA64.
9716 (gnuv3_virtual_fn_field): Rewrite using the new functions.
9717 (gnuv3_find_method_in, gnuv3_print_method_ptr)
9718 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
9719 (gnuv3_method_ptr_to_value): New.
9720 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
9721 * hpread.c (hpread_type_lookup): Update for new types.
9722 * infcall.c (value_arg_coerce): Likewise.
9723 * m2-typeprint.c (m2_print_type): Remove explicit support
9724 for member pointers.
9725 * m2-valprint.c (m2_val_print): Likewise.
9726 * p-typeprint.c (pascal_type_print_varspec_prefix)
9727 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
9728 * p-valprint.c (pascal_val_print): Likewise.
9729 (pascal_object_print_class_method, pascal_object_print_class_member):
9731 * p-lang.h (pascal_object_print_class_method)
9732 (pascal_object_print_class_member): Delete prototypes.
9733 * stabsread.c (read_type): Update for new types.
9734 * typeprint.c (print_type_scalar): Likewise.
9735 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
9736 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
9737 argument. Construct a pointer to member if the address of a
9738 function or data member is requested.
9739 (value_cast_pointers): Don't modify the input value.
9740 (value_cast): Adjust pointer to member handling for new types.
9741 Allow null pointer to member constants. Don't modify the input
9743 (value_ind): Remove pointer to member check. Handle function
9744 descriptors for function pointers.
9745 (value_struct_elt, value_find_oload_method_list, check_field):
9746 Remove pointer to member checks.
9747 * value.c (unpack_long): Allow pointers to data members.
9748 (value_from_longest): Allow member pointers.
9749 * value.h (value_aggregate_elt): Add want_address.
9750 * varobj.c (c_variable_editable): Remove check for members.
9751 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
9752 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
9754 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
9755 * c-lang.h (cp_print_class_method): Delete prototype.
9756 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
9757 * mips-tdep.c (mips_gdbarch_init): Likewise.
9758 * gdbarch.c, gdbarch.h: Regenerated.
9760 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9762 * rs6000-tdep.c (rs6000_use_struct_convention)
9763 (rs6000_extract_return_value, rs6000_store_return_value)
9764 (rs6000_extract_struct_value_address): Remove.
9765 (rs6000_return_value): New function.
9766 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
9767 store_return_value, deprecated_extract_struct_value_address and
9768 deprecated_use_struct_convention. Use rs6000_return_value
9771 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
9773 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
9774 -display-disable, -display-enable, -display-insert and
9777 2007-01-01 Joel Brobecker <brobecker@adacore.com>
9779 * breakpoint.c (remove_breakpoint): Remove dead code.
9781 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
9783 * varobj.c: Include block.h.
9784 (c_value_of_root): Check scope within nested statements.
9786 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9788 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
9789 regcache_cooked_write_signed instead of
9790 deprecated_write_register_bytes.
9792 2007-01-01 Joel Brobecker <brobecker@adacore.com>
9794 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
9796 2007-01-01 Joel Brobecker <brobecker@adacore.com>
9798 Followed the Start of New Year Procedure:
9799 * ChangeLog-2006: New file, containing all the entries for 2006.
9800 * ChangeLog: Removed all 2006 entries, and changed the reference
9801 to the previous ChangeLog to point to ChangeLog 2006.
9802 * top.c (print_gdb_version): Update copyright year.
9804 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9806 * Makefile.in (remote-sds.o): Remove.
9807 * remote-sds.c: Delete.
9809 For older changes see ChangeLog-2006.
9815 version-control: never