1 2007-11-27 Ulrich Weigand <uweigand@de.ibm.com>
3 * Makefile.in (ALL_TARGET_OBS): Remove object files that require
4 64-bit CORE_ADDR and BFD support, move them to ...
5 (ALL_64_TARGET_OBS): ... this new variable.
6 * configure.ac: Check for --enable-64-bit-bfd option. Only add
7 64-bit targets with --enable-targets=all if BFD supports 64-bit.
8 * configure: Regenerate.
10 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Do not claim
11 all elf32-i386 executables, only cygwin core files.
13 2007-11-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15 * dwarf2read.c (dwarf2_get_pc_bounds): Moved the `DW_AT_ranges' parsing
16 code with its variables OBJFILE, CU_HEADER and OBFD into ...
17 (dwarf2_ranges_read): ... a new function.
18 (read_partial_die): Implemented the parsing of `DW_AT_ranges'.
20 2007-11-24 Pedro Alves <pedro_alves@portugalmail.pt>
22 * win32-nat.c (DR6_CLEAR_VALUE): New define.
23 (thread_info_struct): Rename suspend_count to suspended, to be
25 (thread_rec): Only suspend the thread if it wasn't suspended by
26 gdb before. Warn if suspending failed.
27 (win32_add_thread): Set Dr6 to DR6_CLEAR_VALUE.
28 (win32_continue): Set Dr6 to DR6_CLEAR_VALUE. Update usage of the
29 `suspended' flag. Do ContinueDebugEvent after resuming the
30 suspended threads, not before. Set threads' contexts before
31 resuming them, not after.
32 (win32_resume): Set Dr6 to DR6_CLEAR_VALUE.
34 2007-11-23 Vladimir Prus <vladimir@codesourcery.com>
36 * breakpoint.c (insert_breakpoints)
37 (insert_bp_location): Remove stale comments.
39 2007-11-23 Maciej W. Rozycki <macro@mips.com>
41 * mips-linux-tdep.h: Fix some formatting.
43 2007-11-21 Markus Deuling <deuling@de.ibm.com>
45 * stack.c (print_args_stub): Use get_frame_arch to get at the current
46 architecture and replace current_gdbarch.
47 (frame_info): Likewise.
49 2007-11-21 Nick Roberts <nickrob@snap.net.nz>
51 * varobj.c (c_variable_editable, cplus_variable_editable)
52 (java_variable_editable, variable_editable): Delete.
53 (varobj_editable_p): Replace above functions with one language
54 independent function. Check for an lvalue.
55 (varobj_get_attributes, varobj_set_value): Use varobj_editable_p.
56 (struct language_specific): Delete variable_editable field.
58 * mi-cmd-var.c (mi_cmd_var_assign): Simplify.
60 * varobj.h: Add extern for varobj_editable_p.
62 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
64 Remove unused breakpoint fields.
65 * breakpoint.h (struct breakpoint): Remove
66 from_tty and flag fields.
67 * breakpoint.c (break_command_1): Don't set
68 from_tty and flag field set of breakpoint.
69 (create_ada_exception_breakpoint): Don't set
72 2007-11-20 David Ung <davidu@mips.com>
73 Maciej W. Rozycki <macro@mips.com>
75 * mips-tdep.c (mips16_scan_prologue): Handle the MIPS16e SAVE
78 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
80 * infrun.c (resume): Clarify logic that
81 decides if a single thread must be resumed. Add
84 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
86 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
89 2007-11-19 Markus Deuling <deuling@de.ibm.com>
91 * gdbarch.sh (register_sim_regno): Add gdbarch as parameter.
92 * gdbarch.{c,h}: Regenerate.
94 * arch-utils.h (legacy_register_sim_regno): Add gdbarch as parameter.
95 * score-tdep.c (score_register_sim_regno): Likewise.
96 * sim-regno.h (one2one_register_sim_regno): Likewise.
98 * arch-utils.c (legacy_register_sim_regno): Add gdbarch as parameter.
99 Replace current_gdbarch by gdbarch.
100 * sh-tdep.c (sh_sh2a_register_sim_regno)
101 (sh_dsp_register_sim_regno): Likewise.
102 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
103 * mips-tdep.c (mips_register_sim_regno): Likewise.
104 * m32c-tdep.c (m32c_register_sim_regno): Likewise.
105 * frv-tdep.c (frv_register_sim_regno): Likewise.
106 * arm-tdep.c (arm_register_sim_regno): Likewise.
107 * remote-sim.c (one2one_register_sim_regno): Likewise.
109 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
111 * configure.ac (--enable-targets): New configure option.
112 Collect gdb_target_obs of multiple targets into TARGET_OBS.
113 Call configure.tgt multiple times, using $targ as operand.
114 * configure.tgt: Operate on $targ instead of $target.
115 * configure: Regenerate.
116 * Makefile.in (ALL_TARGET_OBS): Define.
118 * NEWS: Mention --enable-targets option.
120 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
122 * mips-tdep.c (show_mipsfpu_command): Do not crash if called when
123 current architecture is not MIPS.
125 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
127 * cli/cli-setshow.c (do_setshow_command): Use dynamically sized buffer
128 to construct error message if no argument was supplied.
130 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
132 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Remove.
133 (i386nbsd_aout_regset_from_core_section): Likewise.
134 (i386nbsd_aout_init_abi): Likewise.
135 (_initialize_i386nbsd_tdep): Do not register i386nbsd_aout_init_abi.
137 * vaxnbsd-tdep.c (vaxnbsd_aout_init_abi): Remove.
138 (_initialize_vaxnbsd_tdep): Do not register vaxnbsd_aout_init_abi.
140 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
142 * amd64fsdb-tdep.c (amd64fbsd_sigtramp_start_addr): Use ULL suffix.
143 (amd64fbsd_sigtramp_end_addr): Likewise.
145 * iq2000-tdep.c (iq2000_pointer_to_address): Fix argument type.
146 (iq2000_address_to_pointer): Likewise.
147 (iq2000_frame_prev_register): Likewise.
148 (iq2000_extract_return_value): Use regcache_cooked_read_unsigned
149 instead of regcache_cooked_read into CORE_ADDR variable.
150 (iq2000_return_value): Fix argument types.
152 * m32r-rom.c (m32r_load_section): Fix printf argument type.
153 (m32r_load): Likewise.
155 * m68kbsd-tdep.c: Include "gdbtypes.h".
156 * Makefile.in: Update dependencies.
158 * mn10300-tdep.c (mn10300_frame_unwind_cache): Fix aliasing violation.
160 * nto-tdep.c (LM_ADDR): Do not refer to no-longer-existing
161 lmo->l_addr_size element.
163 * remote-m32r-sdi.c (m32r_xfer_memory): Use paddr to print address.
164 (m32r_insert_breakpoint): Likewise.
165 (m32r_remove_breakpoint): Likewise.
166 (m32r_insert_watchpoint): Likewise.
167 (m32r_remove_watchpoint): Likewise.
168 (m32r_load): Fix printf argument type.
170 * xtensa-tdep.c (xtensa_regset_from_core_section): Fix printf
172 (xtensa_frame_this_id): Do not cast pointers to "int" for output.
173 (xtensa_frame_prev_register): Likewise.
174 (xtensa_push_dummy_call): Likewise.
176 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
178 * config/alpha/alpha-linux.mt: Remove file.
179 * config/alpha/alpha.mt: Remove file.
180 * config/alpha/alpha-osf1.mt: Remove file.
181 * config/alpha/fbsd.mt: Remove file.
182 * config/alpha/nbsd.mt: Remove file.
183 * config/alpha/obsd.mt: Remove file.
184 * config/arm/embed.mt: Remove file.
185 * config/arm/linux.mt: Remove file.
186 * config/arm/nbsd.mt: Remove file.
187 * config/arm/obsd.mt: Remove file.
188 * config/arm/wince.mt: Remove file.
189 * config/avr/avr.mt: Remove file.
190 * config/cris/cris.mt: Remove file.
191 * config/frv/frv.mt: Remove file.
192 * config/h8300/h8300.mt: Remove file.
193 * config/i386/cygwin.mt: Remove file.
194 * config/i386/fbsd64.mt: Remove file.
195 * config/i386/fbsd.mt: Remove file.
196 * config/i386/i386gnu.mt: Remove file.
197 * config/i386/i386.mt: Remove file.
198 * config/i386/i386sol2.mt: Remove file.
199 * config/i386/linux64.mt: Remove file.
200 * config/i386/linux.mt: Remove file.
201 * config/i386/mingw.mt: Remove file.
202 * config/i386/nbsd64.mt: Remove file.
203 * config/i386/nbsd.mt: Remove file.
204 * config/i386/nto.mt: Remove file.
205 * config/i386/obsd64.mt: Remove file.
206 * config/i386/obsd.mt: Remove file.
207 * config/i386/sol2-64.mt: Remove file.
208 * config/ia64/ia64.mt: Remove file.
209 * config/ia64/linux.mt: Remove file.
210 * config/iq2000/iq2000.mt: Remove file.
211 * config/m32c/m32c.mt: Remove file.
212 * config/m32r/linux.mt: Remove file.
213 * config/m32r/m32r.mt: Remove file.
214 * config/m68hc11/m68hc11.mt: Remove file.
215 * config/m68k/linux.mt: Remove file.
216 * config/m68k/monitor.mt: Remove file.
217 * config/m68k/nbsd.mt: Remove file.
218 * config/m68k/obsd.mt: Remove file.
219 * config/m88k/obsd.mt: Remove file.
220 * config/mep/mep.mt: Remove file.
221 * config/mips/embed.mt: Remove file.
222 * config/mips/irix5.mt: Remove file.
223 * config/mips/irix6.mt: Remove file.
224 * config/mips/linux.mt: Remove file.
225 * config/mips/nbsd.mt: Remove file.
226 * config/mips/obsd64.mt: Remove file.
227 * config/mn10300/linux.mt: Remove file.
228 * config/mn10300/mn10300.mt: Remove file.
229 * config/mt/mt.mt: Remove file.
230 * config/pa/hppahpux.mt: Remove file.
231 * config/pa/hppa.mt: Remove file.
232 * config/pa/linux.mt: Remove file.
233 * config/pa/obsd.mt: Remove file.
234 * config/powerpc/aix.mt: Remove file.
235 * config/powerpc/linux.mt: Remove file.
236 * config/powerpc/nbsd.mt: Remove file.
237 * config/powerpc/obsd.mt: Remove file.
238 * config/powerpc/ppc-eabi.mt: Remove file.
239 * config/s390/s390.mt: Remove file.
240 * config/score/embed.mt: Remove file.
241 * config/sh/embed.mt: Remove file.
242 * config/sh/linux.mt: Remove file.
243 * config/sh/nbsd.mt: Remove file.
244 * config/sh/obsd.mt: Remove file.
245 * config/sh/sh64.mt: Remove file.
246 * config/sparc/embed.mt: Remove file.
247 * config/sparc/fbsd.mt: Remove file.
248 * config/sparc/linux64.mt: Remove file.
249 * config/sparc/linux.mt: Remove file.
250 * config/sparc/nbsd64.mt: Remove file.
251 * config/sparc/nbsd.mt: Remove file.
252 * config/sparc/obsd64.mt: Remove file.
253 * config/sparc/obsd.mt: Remove file.
254 * config/sparc/sol2-64.mt: Remove file.
255 * config/sparc/sol2.mt: Remove file.
256 * config/sparc/sparc64.mt: Remove file.
257 * config/sparc/sparc.mt: Remove file.
258 * config/spu/spu.mt: Remove file.
259 * config/v850/v850.mt: Remove file.
260 * config/vax/nbsd.mt: Remove file.
261 * config/vax/obsd.mt: Remove file.
262 * config/vax/vax.mt: Remove file.
263 * config/xstormy16/xstormy16.mt: Remove file.
264 * config/xtensa/xtensa.mt: Remove file.
266 * configure.tgt (gdb_target_cpu): Remove. Do not set anywhere.
267 (gdb_target): Likewise.
268 (gdb_target_obs): Document. Set for every target to contents
269 of TDEPFILES in former .mt makefile fragment.
271 * configure.ac (TARGET_OBS): Define.
272 (target_makefile_frag, gdb_target_cpu): Do not define.
273 * configure: Regenerate.
275 * Makefile.in (MT_FLAGS): Remove.
276 (GLOBAL_CFLAGS): Update.
277 (TARGET_OBS): Substitute from configure.
278 (DEPFILES): Remove TDEPFILES, add TARGET_OBS.
279 (@target_makefile_frag@): Remove.
281 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
283 * config/arm/embed.mt (SIM_OBS, SIM): Remove.
284 * config/avr/avr.mt (SIM_OBS, SIM): Remove.
285 * config/frv/frv.mt (SIM_OBS, SIM): Remove.
286 * config/h8300/h8300.mt (SIM_OBS, SIM): Remove.
287 * config/iq2000/iq2000.mt (SIM_OBS, SIM): Remove.
288 * config/m32c/m32c.mt (SIM_OBS, SIM): Remove.
289 * config/m32r/linux.mt (SIM_OBS, SIM): Remove.
290 * config/m32r/m32r.mt (SIM_OBS, SIM): Remove.
291 * config/m68hc11/m68hc11.mt (SIM_OBS, SIM): Remove.
292 * config/mips/embed.mt (SIM_OBS, SIM): Remove.
293 * config/mips/linux.mt (SIM_OBS, SIM): Remove.
294 * config/mips/nbsd.mt (SIM_OBS, SIM): Remove.
295 * config/mn10300/mn10300.mt (SIM_OBS, SIM): Remove.
296 * config/powerpc/linux.mt (SIM_OBS, SIM): Remove.
297 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Remove.
298 * config/powerpc/ppc-sim.mt: Remove file.
299 * config/sh/embed.mt (SIM_OBS, SIM): Remove.
300 * config/sh/linux.mt (SIM_OBS, SIM): Remove.
301 * config/sh/nbsd.mt (SIM_OBS, SIM): Remove.
302 * config/sh/sh64.mt (SIM_OBS, SIM): Remove.
303 * config/sparc/embed.mt (SIM_OBS, SIM): Remove.
304 * config/v850/v850.mt (SIM_OBS, SIM): Remove.
305 * config/xstormy16/xstormy16.mt (SIM_OBS, SIM): Remove.
307 * configure.tgt (gdb_sim): Document variable.
308 (arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*): Set it.
311 (h8300-*-*): Likewise.
312 (iq2000-*-*): Likewise.
313 (m32c-*-*): Likewise.
314 (m32r*-*-linux*): Likewise.
315 (m32r*-*-*): Likewise.
316 (m68hc11*-*-*|m6811*-*-*): Likewise.
317 (mips*-*-*): Likewise.
318 (mips*-*-linux*): Likewise.
319 (mips*-*-netbsd* | mips*-*-knetbsd*-gnu): Likewise.
320 (mn10300-*-*): Likewise.
321 (powerpc-*-linux* | powerpc64-*-linux*): Likewise.
322 (powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu): Likewise.
323 (powerpc*-*-*): Use ppc-eabi target. Conditionally set gdb_sim.
325 (sh-*-linux*): Likewise.
326 (sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu): Likewise.
327 (sh64-*-elf*): Likewise.
328 (sparc-*-rtems*): Likewise.
329 (v850*-*-elf): Likewise.
330 (xstormy16-*-*): Likewise.
332 * configure.ac (IGNORE_SIM, IGNORE_SIM_OBS): Do not set.
333 (SIM, SIM_OBS): Set depending on ${ignore_sim} and ${gdb_sim}.
334 * configure: Regenerate.
335 * Makefile.in (SIM, SIM_OBS): Substitute from configure.
336 (@IGNORE_SIM@, @IGNORE_SIM_OBS@): Remove.
338 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
340 * configure.tgt (gdb_osabi, build_gdbserver): Comment variables.
341 (arm*-*-*): Do not set obsolete build_rdi_share variable.
343 (*-*-freebsd* | *-*-kfreebsd*-gnu): Remove generic case, replace by ...
344 (alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
345 (i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
346 (sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu): ... specific cases.
347 (x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu): Re-sort.
349 (xscale-*-*): Merge into arm*-*-* case.
350 (fido-*-elf*): Merge into m68*-*-elf* case.
351 (m68*-*-aout*, m68*-*-coff*, m68*-*-elf*, m68*-*-rtems*,
352 m68*-*-uclinux*): Merge cases.
353 (powerpc-*-linux*, powerpc64-*-linux*): Merge cases.
354 (sh-*-coff*, sh-*-elf*): Merge into sh* case.
356 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
358 * configure.tgt: Reformat main case statement.
360 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
362 * configure.ac (hostfile, targetfile): Remove.
363 (GDB_XM_FILE, GDB_TM_FILE): Do not define.
364 (xm_h, tm_h): Likewise.
365 (DEPRECATED_TM_FILE, XM_FILE): Do not substitute into Makefile.
366 * configure, config.in: Regenerate.
368 * Makefile.in (xm_h, tm_h): Remove. Update dependencies.
369 (TAGS): Do not consider DEPRECATED_TM_FILE or XM_FILE.
370 (clean, local-maintainer-clean): Do not remove xm.h or tm.h.
371 * defs.h: Do not include "xm.h" or "tm.h".
373 * gdbarch.sh (verify_gdbarch): Do not dump GDB_XM_FILE or GDB_TM_FILE.
374 * gdbarch.c: Regenerate.
376 * config/score/embed.mt: Remove obsolete comment.
378 2007-11-16 Markus Deuling <deuling@de.ibm.com>
380 * gdbarch.sh (cannot_fetch_register, cannot_store_register): Add gdbarch
382 * gdbarch.{c,h}: Regenerate.
384 * alpha-tdep.c (alpha_cannot_fetch_register)
385 (alpha_cannot_store_register): Add gdbarch as parameter. Replace
386 current_gdbarch by gdbarch.
387 * cris-tdep.c (cris_cannot_fetch_register, cris_cannot_store_register)
388 (crisv32_cannot_fetch_register)
389 (crisv32_cannot_store_register): Likewise.
390 * arch-utils.c (cannot_register_not): Likewise.
391 * arch-utils.h (cannot_register_not): Likewise.
392 * hppa-tdep.c (hppa32_cannot_store_register)
393 (hppa32_cannot_store_register, hppa64_cannot_store_register)
394 (hppa64_cannot_fetch_register): Likewise.
395 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
396 (mipsnbsd_cannot_store_register): Likewise.
398 2007-11-16 Markus Deuling <deuling@de.ibm.com>
400 * m32r-rom.c (m32r_supply_register): Use get_regcache_arch to get at
401 the current architecture by regcache.
402 * ppcnbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
403 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
404 (fetch_register, supply_vrregset, fetch_ppc_registers)
405 (store_altivec_register, store_spe_register, store_register)
406 (fill_vrregset, store_ppc_registers): Likewise.
407 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
408 * win32-nat.c (do_win32_fetch_inferior_registers)
409 (do_win32_store_inferior_registers): Likewise.
410 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
411 * remote-m32r-sdi.c (m32r_fetch_registers)
412 (m32r_store_registers): Likewise.
413 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
415 * trad-frame.c (trad_frame_alloc_saved_regs): Replace current_gdbarch by
417 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
418 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
419 (do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call)
420 (ppc64_sysv_abi_return_value): Likewise.
421 * m32c-tdep.c (m32c_register_reggroup_p): Likewise.
422 * m2-lang.c (build_m2_types): Likewise.
423 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache
424 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
425 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
426 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
428 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Use get_frame_arch to
429 get at the current architecture by frame_info.
430 * gcore.c (derive_stack_segment): Likewise.
432 * shnbsd-nat.c (GETREGS_SUPPLIES): Add gdbarch parameter.
433 (shnbsd_fetch_inferior_registers, shnbsd_store_inferior_registers): Add
434 gdbarch to GETREGS_SUPPLIES call.
436 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
438 * elfread.c (ST_REGULAR, ST_DYNAMIC, ST_SYNTHETIC): New defines.
439 (elf_symtab_read): Rename DYNAMIC argument to TYPE. Do not access
440 ELF-private symbol data when processing synthetic symbols. Use
441 udata.p to get at size of ppc64 synthetic 'dot' symbols.
442 (elf_symfile_read): Pass TYPE argument to elf_symtab_read.
444 2007-11-15 Doug Evans <dje@google.com>
446 * buildsym.h (subfiles): Move ...
447 * buildsym.c (subfiles): ... to here and make static.
449 * symmisc.c (maintenance_info_symtabs): Print linetable info.
451 2007-11-15 Markus Deuling <deuling@de.ibm.com>
453 * mipsnbsd-tdep.h (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove
455 2007-11-15 Markus Deuling <deuling@de.ibm.com>
457 * arm-tdep.c (arm_prologue_this_id): Replace LOWEST_PC by its
458 expression and use get_frame_arch to replace current_gdbarch by frame's
460 * arm-tdep.h (LOWEST_PC): Remove
462 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
464 Apply const qualifier to some users of bp_location.
465 * breakpoint.h (struct bpstats): Make
466 the breakpoint_at field point at const bp_location.
467 * breakpoint.c (bpstat_alloc): Accept const
469 (breakpoint_here_p, breakpoint_inserted_here_p)
470 (software_breakpoint_inserted_here_p)
471 (breakpoint_thread_match, bpstat_stop_status)
472 (read_memory_nobpt, bpstat_have_active_hw_watchpoints): Use
473 const bp_location for iteration.
474 (print_it_typical, print_bp_stop_message): Use
475 const bp_location variable.
477 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
479 Make mark_breakpoints_out static.
480 * breakpoint.h (mark_breakpoints_out): Remove
482 * breakpoint.c (mark_breakpoints_out): Make static.
484 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
486 Prevent clear_command from directly modifying breakpoint list.
487 * Makefile.in (breakpoint_h): Update dependency.
488 * breakpoint.c (clear_command): Do not remove
489 breakpoints from breakpoint_chain. Collect breakpoints
490 to delete in a vector.
491 * breakpoint.h (breakpoint_p): New typedef for pointer to
492 breakpoint. Register vector of breakpoint_p.
494 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
496 Remove 'run_cleanup'.
497 * defs.h (do_run_cleanups, make_run_cleanup): Remove
499 * infcmd.c (run_command_1): Call clear_solib instead
501 * jv-lang.c (java_rerun_cleanup): Remove, for lack of
503 * solib.c (solib_cleanup_queued, do_clear_solib): Remove.
504 (update_solib_lib): Don't setup run cleanup.
505 (no_shared_libraries): Call clear_solib, not do_clear_solib.
506 * utils.c (run_cleanup_chain, make_run_cleanup)
507 (do_run_cleanups): Remove.
509 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
511 Remove CLEAR_SOLIB use.
512 * corelow.c (core_close): Don't check for CLEAR_SOLIB.
513 * infcmd.c (attach_command): Likewise.
515 2007-11-14 Doug Evans <dje@google.com>
517 * buildsym.c (start_subfile,start_symtab): Doc fixes.
519 2007-11-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
521 * tui/tui-data.c (tui_prev_win): Guard against NULL.
523 2007-11-12 Markus Deuling <deuling@de.ibm.com>
525 * gdbarch.sh (gdbarch_alloc): Replace current_gdbarch by gdbarch. Remove
527 (verify_gdbarch, gdbarch_dump): Likewise.
528 (do_read): Update comment.
529 (addr_bit, bfd_arch_info, target_desc, long_long_bit, floatformat)
530 (ptr_bit, name_of_malloc): Replace current_gdbarch by gdbarch.
531 * gdbarch.{c,h}: Regenerate.
533 2007-11-12 Markus Deuling <deuling@de.ibm.com>
535 * xtensa-tdep.c (ARG_1ST): Replace ARGS_FIRST_REG by its expression.
536 (ARGS_FIRST_REG): Remove.
537 (areg_numer): New function.
538 (xtensa_pseudo_register_read, xtensa_frame_prev_register)
539 (xtensa_extract_return_value, xtensa_store_return_value)
540 (xtensa_frame_cache): Replace AREG_NUMBER by areg_number.
541 (AREG_NUMBER): Remove.
542 (XTENSA_IS_ENTRY, ARG_NOF, ARG_1ST): Add gdbarch as parameter.
543 (xtensa_frame_cache): Update use of XTENSA_IS_ENTRY.
544 (xtensa_push_dummy_call): Update use of ARG_NOF.
545 (extract_call_winsize): Add gdbarch as parameter. Replace
546 current_gdbarch by gdbarch.
547 (xtensa_extract_return_value, xtensa_store_return_value): Update call
548 of extract_call_winsize.
550 2007-11-10 Joel Brobecker <brobecker@adacore.com>
552 * NEWS: Add entry for new set/show print frame-args command.
554 2007-11-09 Kevin Buettner <kevinb@redhat.com>
556 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add missing
557 register number to map. Adjust warning check and error/warning
558 return value code to match expectations of this function's callers.
560 2007-11-09 Joel Brobecker <brobecker@adacore.com>
562 * stack.c (print_this_frame_argument_p): Handle arguments passed
563 by reference properly.
565 2007-11-09 Joel Brobecker <brobecker@adacore.com>
567 * stack.c (print_frame_arguments_choices): New static global.
568 (print_frame_arguments): Likewise.
569 (print_this_frame_argument_p): New function.
570 (print_frame_args): Print the argument value only when appropriate.
571 (_initialize_task): Add new "set/show print frame-arguments" command.
573 2007-11-09 Luis Machado <luisgpm@br.ibm.com>
575 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move
576 saved_dabr_value assignment to the correct position.
578 2007-11-09 Markus Deuling <deuling@de.ibm.com>
580 * arch-utils.c (generic_convert_register_p): Add gdbarch as parameter.
581 * arch-utils.h (generic_convert_register_p): Likewise.
583 2007-11-09 Markus Deuling <deuling@de.ibm.com>
585 * gdbarch.sh (convert_register_p): Add gdbarch as parameter.
586 * ia64-tdep.c (ia64_convert_register_p): Likewise.
587 * i387-tdep.c (i387_convert_register_p): Likewise.
588 * i387-tdep.h (i387_convert_register_p): Likewise.
589 * alpha-tdep.c (alpha_convert_register_p): Likewise.
590 * gdbarch.{c,h}: Regenerate.
592 * rs6000-tdep.c (rs6000_convert_register_p): Add gdbarch as parameter.
593 Replace current_gdbarch by gdbarch.
594 * mips-tdep.c (mips_convert_register_p): Likewise.
595 * m68k-tdep.c (m68k_convert_register_p): Likewise.
596 * i386-tdep.c (i386_convert_register_p): Likewise.
598 2007-11-08 Aleksandar Ristovski <aristovski@qnx.com>
600 * gdb_string.h: Include <strings.h>.
602 2007-11-08 Vladimir Prus <vladimir@codesourcery.com>
604 * breakpoint.c (break_command_1): Remove
605 pending_bp parameter.
606 (create_breakpoint): Likewise.
607 (create_breakpoints): Likewise. Adjust call to
609 (break_command_1): Likewise. Adjust call to
611 (do_captured_breakpoint): Adjust call to
613 (break_command, tbreak_command, hbreak_command)
614 (stopin_command, stopat_command): Adjust call
617 2007-11-07 Joseph Myers <joseph@codesourcery.com>
618 Daniel Jacobowitz <dan@codesourcery.com>
620 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Right-align
621 struct values smaller than one doubleword; left-align those
622 larger. Pass structs containing a single floating-point value in
625 2007-11-07 Joseph Myers <joseph@codesourcery.com>
626 Daniel Jacobowitz <dan@codesourcery.com>
628 * gdbtypes.c (floatformats_ibm_long_double): New.
629 * gdbtypes.h (floatformats_ibm_long_double): Declare.
630 * ia64-tdep.c (floatformat_ia64_ext): Update for addition of
632 * mips-tdep.c (n32n64_floatformat_always_valid,
633 floatformat_n32n64_long_double_big, floatformats_n32n64_long):
635 (mips_gdbarch_init): Use floatformats_ibm_long_double instead of
636 floatformats_n32n64_long.
637 * ppc-linux-tdep.c (ppc_linux_init_abi): Use 128-bit IBM long
639 * doublest.c (convert_floatformat_to_doublest,
640 convert_doublest_to_floatformat): Handle split floating-point
642 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle IBM long
644 (ppc64_sysv_abi_push_dummy_call): Likewise.
645 (do_ppc_sysv_return_value): Handle IBM long double return.
647 2007-11-07 Vladimir Prus <vladimir@codesourcery.com>
649 Fix crash when a variable object being deleted
650 has any of its children deleted previously.
652 * varobj.c (delete_variable_1): Don't recurse
653 into deleted children.
655 2007-11-07 Markus Deuling <deuling@de.ibm.com>
657 * gdbarch.sh (legacy_virtual_frame_pointer): Add gdbarch parameter.
658 * gdbarch.{c,h}: Regenerate.
659 * arch-utils.c (legacy_virtual_frame_pointer): Add gdbarch parameter.
660 Replace current_gdbarch by gdbarch.
661 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
662 * mips-tdep.c (mips_virtual_frame_pointer): Likewise.
663 * spu-tdep.c (spu_virtual_frame_pointer): Likewise.
665 2007-11-07 Markus Deuling <deuling@de.ibm.com>
667 * shnbsd-tdep.c (shnbsd_supply_gregset, shnbsd_collect_gregset): Use
668 get_regcache_arch to get at the current architecture by regcache.
669 * xstormy16-tdep.c (xstormy16_frame_prev_register): Use get_frame_arch
670 to get at the current architecture by frame_info.
671 * fbsd-nat.c (fbsd_make_corefile_notes): Use get_regcache_arch to get
672 at the current architecture by regcache.
673 * gnu-v3-abi.c (gnuv3_skip_trampoline): Use get_frame_arch to get at
674 the current architecture by frame_info.
675 (build_gdb_vtable_type): Replace current_gdbarch by gdbarch.
676 * aix-thread.c (special_register_p): Add gdbarch as parameter.
677 (fetch_regs_kernel_thread, store_regs_kernel_thread): Add gdbarch to
678 caller of special_register_p.
680 2007-11-07 Markus Deuling <deuling@de.ibm.com>
682 * infcall.c (call_function_by_hand): Use get_frame_arch to get at the
683 current architecture by frame_info.
685 2007-11-07 Markus Deuling <deuling@de.ibm.com>
687 * xtensa-tdep.h (SIZEOF_GREGSET, XTENSA_ELF_NGREG) Remove.
689 2007-11-07 Markus Deuling <deuling@de.ibm.com>
691 * s390-nat.c (supply_gregset, fill_gregset): Use get_regcache_arch to
692 get at the current architecture by regcache.
693 (SUBOFF): Add gdbarch to macro definition.
695 2007-11-07 Markus Deuling <deuling@de.ibm.com>
697 * gdbarch.sh (breakpoint_from_pc): Add gdbarch parameter.
698 * gdbarch.{c,h}: Regenerate.
700 * xtensa-tdep.c (xtensa_breakpoint_from_pc): Add gdbarch parameter.
701 Replace current_gdbarch by gdbarch.
702 * sh-tdep.c (sh_breakpoint_from_pc): Likewise.
703 * sh64-tdep.c (sh64_breakpoint_from_pc): Likewise.
704 * score-tdep.c (score_breakpoint_from_pc): Likewise.
705 * mips-tdep.c (mips_breakpoint_from_pc): Likewise.
706 * m32r-tdep.c (m32r_breakpoint_from_pc): Likewise.
707 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
708 * arm-tdep.c (arm_breakpoint_from_pc): Likewise.
710 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Add gdbarch
712 * vax-tdep.c (vax_breakpoint_from_pc): Likewise.
713 * v850-tdep.c (v850_breakpoint_from_pc): Likewise.
714 * spu-tdep.c (spu_breakpoint_from_pc): Likewise.
715 * sparc-tdep.c (sparc_breakpoint_from_pc): Likewise.
716 * s390-tdep.c (s390_breakpoint_from_pc): Likewise.
717 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Likewise.
718 * mt-tdep.c (mt_breakpoint_from_pc): Likewise.
719 * mep-tdep.c (mep_breakpoint_from_pc): Likewise.
720 * m88k-tdep.c (m88k_breakpoint_from_pc): Likewise.
721 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Likewise.
722 * m32c-tdep.c (m32c_breakpoint_from_pc): Likewise.
723 * ia64-tdep.c (ia64_breakpoint_from_pc): Likewise.
724 * i386-tdep.c (i386_breakpoint_from_pc): Likewise.
725 * hppa-tdep.c (hppa_breakpoint_from_pc): Likewise.
726 * h8300-tdep.c (h8300_breakpoint_from_pc): Likewise.
727 * frv-tdep.c (frv_breakpoint_from_pc): Likewise.
728 * cris-tdep.c (cris_breakpoint_from_pc): Likewise.
729 * avr-tdep.c (avr_breakpoint_from_pc): Likewise.
730 * alpha-tdep.c (alpha_breakpoint_from_pc): Likewise.
731 * m68k-tdep.c (m68k_local_breakpoint_from_pc): Likewise.
733 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Add gdbarch parameter.
734 Replace current_gdbarch by gdbarch.
735 (rs6000_software_single_step): Use get_frame_arch to get at the
736 current architecture by frame_info. Add gdbarch to
737 rs6000_breakpoint_from_pc call.
739 2007-11-07 Markus Deuling <deuling@de.ibm.com>
741 * frv-tdep.c (frv_register_name, frv_check_watch_resources): Replace
742 macro CURRENT_VARIANT by its expression.
743 (CURRENT_VARIANT): Remove.
744 (frv_check_watch_resources): Add gdbarch parameter.
746 2007-11-07 Markus Deuling <deuling@de.ibm.com>
748 * MAINTAINERS (Write After Approval): Add self.
750 2007-11-05 Ulrich Weigand <uweigand@de.ibm.com>
752 * features/rs6000/power-core.xml: Use uint32 as register type.
753 * features/rs6000/power64-core.xml: Use uint64/uint32 as register type.
754 * features/rs6000/powerpc-32.c: Regenerate.
755 * features/rs6000/powerpc-403.c: Regenerate.
756 * features/rs6000/powerpc-403gc.c: Regenerate.
757 * features/rs6000/powerpc-505.c: Regenerate.
758 * features/rs6000/powerpc-602.c: Regenerate.
759 * features/rs6000/powerpc-603.c: Regenerate.
760 * features/rs6000/powerpc-604.c: Regenerate.
761 * features/rs6000/powerpc-64.c: Regenerate.
762 * features/rs6000/powerpc-7400.c: Regenerate.
763 * features/rs6000/powerpc-750.c: Regenerate.
764 * features/rs6000/powerpc-860.c: Regenerate.
765 * features/rs6000/powerpc-e500.c: Regenerate.
767 2007-11-05 Joel Brobecker <brobecker@adacore.com>
769 * breakpoint.c (set_raw_breakpoint_without_location): Make static.
771 2007-11-05 Joel Brobecker <brobecker@adacore.com>
773 * breakpoint.h (create_solib_load_event_breakpoint)
774 (create_solib_unload_event_breakpoint)
775 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
776 (create_exec_event_catchpoint): Delete declaration.
777 * breakpoint.c (create_solib_load_event_breakpoint)
778 (solib_load_unload_1, create_solib_unload_event_breakpoint): Delete.
779 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
780 (create_exec_event_catchpoint): Make static.
782 2007-11-05 Joel Brobecker <brobecker@adacore.com>
784 * breakpoint.h (set_breakpoint_sal): Remove declaration.
785 * breakpoint.c (set_breakpoint_sal): Delete.
787 2007-11-05 Joel Brobecker <brobecker@adacore.com>
789 * buildsym.c (finish_block): Remove "#if 1"/"#endif" brackets.
790 (make_blockvector): Likewise. Remove FIXME comment.
792 2007-11-05 Luis Machado <luisgpm@br.ibm.com>
794 * printcmd.c: (printf_command): Add support for new DFP
795 modifiers %H, %D and %DD.
796 * configure.ac: Add check for DECFLOAT printf support.
797 * configure: Regenerated.
799 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
801 * gdbtypes.h (struct cplus_struct_type): Remove runtime_ptr member.
802 (TYPE_RUNTIME_PTR, TYPE_VTABLE, TYPE_HAS_VTABLE,
803 TYPE_PRIMARY_BASE, TYPE_VIRTUAL_BASE_LIST): Remove macros.
804 (HP_ACC_VFUNC_START, HP_ACC_VBASE_START, HP_ACC_TYPEINFO_OFFSET,
805 HP_ACC_TOP_OFFSET_OFFSET): Likewise.
806 (has_vtable, primary_base_class, virtual_base_list_length,
807 virtual_base_list_length_skip_primaries, virtual_base_index,
808 virtual_base_index_skip_primaries, class_index_in_primary_list,
809 count_virtual_fns): Remove prototypes.
810 * gdbtypes.c (has_vtable, primary_base_class, current_vbase_list,
811 virtual_base_list_aux, virtual_base_list, virtual_base_list_length,
812 virtual_base_list_length_skip_primaries, virtual_base_index,
813 virtual_base_index_skip_primaries, class_index_in_primary_list,
814 count_virtual_fns): Remove.
816 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Remove.
817 (hpacc_vtbl_ptr_name, hpacc_vtbl_ptr_type_name): Remove.
818 (cp_print_value_fields): Remove support for HP aCC vtables.
819 (cp_print_value): Likewise.
820 * c-typeprint.c (c_type_print_base): Likewise.
822 * value.h (find_rt_vbase_offset): Remove prototype.
823 * valops.c (find_rt_vbase_offset): Remove.
824 (search_struct_method): Remove support for HP aCC vtables.
825 (find_method_list): Likewise.
827 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
829 * language.h (struct language_defn): Remove la_builtin_type_vector
830 and string_char_type members.
831 * language.c (language_string_char_type): No longer consult
832 la->string_char_type.
833 (language_lookup_primitive_type_by_name): No longer consult
834 current_language->la_builtin_type_vector.
836 * language.c (unknown_language_defn, auto_language_defn,
837 local_language_defn): Adapt initializer.
838 * ada-lang.c (ada_language_defn): Likewise.
839 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn,
840 minimal_language_defn): Likewise.
841 * f-lang.c (f_language_defn): Likewise.
842 * jv-lang.c (java_language_defn): Likewise.
843 * m2-lang.c (m2_language_defn): Likewise.
844 * objc-lang.c (objc_language_defn): Likewise.
845 * p-lang.c (pascal_language_defn): Likewise.
846 * scm-lang.c (scm_language_defn): Likewise.
848 2007-11-02 Markus Deuling <deuling@de.ibm.com>
850 * frame.c (frame_id_inner): Add gdbarch parameter. Replace
851 current_gdbarch by gdbarch.
852 (frame_find_by_id, get_prev_frame_1): Use get_frame_arch to get at the
853 current architecture by frame_info.
854 * frame.h (frame_id_inner): Add gdbarch parameter.
855 * stack.c (return_command): Use get_frame_arch to get at the current
856 architecture by frame_info. Update call of frame_id_inner.
857 * infrun.c (handle_inferior_event): Likewise.
858 * dummy-frame.c (dummy_frame_push): Use get_regcache_arch to get at the
859 current architecture by regcache. Update call of frame_id_inner.
861 2007-11-02 Markus Deuling <deuling@de.ibm.com>
863 * gdbarch.sh (register_name): Add gdbarch parameter.
864 * gdbarch.{c,h}: Regenerate.
866 * target-descriptions.c (tdesc_register_name): Add gdbarch parameter.
867 (tdesc_register_name): Replace current_gdbarch by gdbarch.
868 * target-descriptions.h (tdesc_register_name): Add gdbarch parameter.
870 * xstormy16-tdep.c (xstormy16_register_name): Add gdbarch parameter.
871 * vax-tdep.c (vax_register_name): Add gdbarch parameter.
872 * spu-tdep.c (spu_register_name): Add gdbarch parameter.
873 * s390-tdep.c (s390_register_name): Add gdbarch parameter.
874 * mt-tdep.c (mt_register_name): Add gdbarch parameter.
875 (mt_registers_info): Replace current_gdbarch by gdbarch.
876 (mt_register_reggroup_p): Add gdbarch to mt_register_name call.
877 * mips-tdep.c (mips_register_name): Add gdbarch parameter. Replace
878 current_gdbarch by gdbarch.
879 (mips_register_name): Add gdbarch to tdesc_register_name call.
880 * mep-tdep.c (mep_register_name): Add gdbarch parameter. Replace
881 current_gdbarch by gdbarch.
882 (mep_register_reggroup_p): Add gdbarch to mep_register_name call.
883 * m32c-tdep.c (m32c_register_name): Add gdbarch parameter. Replace
884 current_gdbarch by gdbarch.
885 * m88k-tdep.c (m88k_register_name): Add gdbarch parameter.
886 * m68k-tdep.c (m68k_register_name): Add gdbarch parameter.
887 * m32r-tdep.c (m32r_register_name): Add gdbarch parameter.
888 (m32r_frame_unwind_cache): Use get_frame_arch to get at the current
889 architecture by frame_info.
890 * iq2000-tdep.c (iq2000_register_name): Add gdbarch parameter.
891 * ia64-tdep.c (ia64_register_name): Add gdbarch parameter.
892 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Add gdbarch
894 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
895 (h8300sx_register_name): Add gdbarch parameter.
896 * cris-tdep.c (cris_register_name, crisv32_register_name): Add
897 gdbarch parameter. Replace current_gdbarch by gdbarch.
898 (cris_gdbarch_init): Replace current_gdbarch by gdbarch (comment).
899 * avr-tdep.c (avr_register_name): Add gdbarch parameter.
900 * arm-tdep.c (arm_register_name): Add gdbarch paramete
901 * amd64-tdep.c (amd64_register_name): Add gdbarch parameter. Update
903 * amd64-tdep.h (amd64_register_name): Add gdbarch parameter.
904 * amd64-linux-tdep.c (amd64_linux_register_name): Add gdbarch parameter.
905 * alpha-tdep.c (alpha_register_name): Add gdbarch parameter.
906 (alpha_cannot_fetch_register, alpha_cannot_store_register): Update call
907 of alpha_register_name.
908 * frv-tdep.c (frv_register_name): Add gdbarch parameter.
909 * i386-tdep.c (i386_register_name): Add gdbarch parameter. Replace
910 current_gdbarch by gdbarch.
911 (i386_register_type): Replace ?current_gdbarch by gdbarch.
912 * i386-tdep.h (i386_register_name): Add gdbarch parameter.
913 * i386-linux-tdep.c (i386_linux_register_name): Add gdbarch parameter.
915 * m68hc11-tdep.c (m68hc11_register_name): Add gdbarch parameter.
916 (m68hc11_register_reggroup_p): Add gdbarch to call of
917 m68hc11_register_name.
918 * mn10300-tdep.c (mn10300_generic_register_name, am33_register_name)
919 (am33_2_register_name): Add gdbarch parameter.
920 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
921 architecture by frame_info.
922 (mn10300_dump_tdep): Replace current_gdbarch by gdbarch.
923 * rs6000-tdep.c (rs6000_register_name): Add gdbarch parameter. Replace
924 current_gdbarch by gdbarch.
925 * score-tdep.c (score_register_name): Add gdbarch parameter.
926 (score_return_value, score_push_dummy_call): Replace current_gdbarch
928 * sh64-tdep.c (sh64_register_name): Add gdbarch parameter.
929 (sh64_compact_reg_base_num, sh64_register_convert_to_virtual)
930 (sh64_register_convert_to_raw, sh64_fv_reg_base_num)
931 (sh64_dr_reg_base_num, sh64_fpp_reg_base_num): Add gdbarch parameter
932 and update caller. Replace current_gdbarch by gdbarch.
933 (sh64_extract_return_value, sh64_store_return_value): Use
934 get_regcache_arch to get at the current architecture by regcache.
935 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
936 (sh_sh3e_register_name, sh_sh2e_register_name, sh_sh2a_register_name)
937 (sh_sh2a_nofpu_register_name, sh_sh_dsp_register_name)
938 (sh_sh3_dsp_register_name, sh_sh4_register_name)
939 (sh_sh4_nofpu_register_name, sh_sh4al_dsp_register_name): Add gdbarch
941 (fv_reg_base_num, dr_reg_base_num, sh_justify_value_in_reg)
942 (sh_next_flt_argreg): Add gdbarch parameter and update caller. Replace
943 current_gdbarch by gdbarch.
944 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Use
945 get_regcache_arch to get at the current architecture by regcache.
946 * sparc-tdep.c (sparc32_register_name): Add gdbarch parameter.
947 * sparc64-tdep.c (sparc64_register_name): Add gdbarch parameter.
948 * v850-tdep.c (v850_register_name, v850e_register_name): Add gdbarch
950 (v850_unwind_sp, v850_unwind_pc): Replace current_gdbarch by gdbarch.
951 * xtensa-tdep.c (xtensa_register_name): Add gdbarch parameter. Replace
952 current_gdbarch by gdbarch.
953 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
954 (xtensa_frame_prev_register): Add gdbarch parameter to
955 xtensa_register_name call.
957 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
959 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
960 find_solib_trampoline_target if PC is not in .plt section.
962 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
964 * elfread.c (elf_symtab_read): When constructing a solib trampoline
965 minimal symbol from an undefined dynamic symbol, use proper section.
967 2007-10-31 Markus Deuling <deuling@de.ibm.com>
969 * arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
970 to get at the current architecture by regcache.
972 2007-10-30 Markus Deuling <deuling@de.ibm.com>
974 * libunwind-frame.c (libunwind_frame_sniffer)
975 libunwind_frame_prev_register, libunwind_sigtramp_frame_sniffer)
976 (libunwind_frame_cache): Use get_frame_arch to get at the current
977 architecture by frame_info.
978 (libunwind_get_reg_special): Replace current_gdbarch by gdbarch.
980 2007-10-30 Markus Deuling <deuling@de.ibm.com>
982 * iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get
983 at the current architecture by frame_info.
985 2007-10-30 Markus Deuling <deuling@de.ibm.com>
987 * inf-child.c (inf_child_fetch_inferior_registers): Use
988 get_regcache_arch to get at the current architecture by regcache.
990 2007-10-30 Markus Deuling <deuling@de.ibm.com>
992 * inf-ptrace.c (inf_ptrace_fetch_registers)
993 (inf_ptrace_fetch_register, inf_ptrace_store_register)
994 (inf_ptrace_store_registers): Use get_regcache_arch to get at the
995 current architecture by regcache.
997 2007-10-30 Markus Deuling <deuling@de.ibm.com>
999 * hpux-thread.c (hpux_thread_fetch_registers)
1000 (hpux_thread_store_registers): Use get_regcache_arch to get at the
1001 current architecture by regcache.
1003 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1005 * hppa-tdep.c (hppa_frame_cache): Use get_frame_arch to get at the
1006 current architecture by frame_info.
1008 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1010 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
1011 (go32_store_registers): Use get_regcache_arch to get at the current
1012 architecture by regcache.
1014 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1016 * gdbtypes.c (gdbtypes_post_init): Replace current_gdbarch by gdbarch.
1018 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1020 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Use get_frame_arch
1021 to get at the current architecture by frame_info.
1023 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1025 * f-lang.c (build_fortran_types): Replace current_gdbarch by gdbarch.
1027 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1029 * core-regset.c (fetch_core_registers): Use get_regcache_arch to get at
1030 the current architecture by regcache.
1032 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1034 * corelow.c (get_core_registers): Use get_regcache_arch to get at the
1035 current architecture by regcache.
1037 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1039 * bsd-uthread.c (bsd_uthread_fetch_registers)
1040 (bsd_uthread_store_registers): Use get_regcache_arch to get at the
1041 current architecture by regcache.
1043 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1045 * avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
1046 get_frame_arch to get at the current architecture by frame_info.
1048 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1050 * arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
1052 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1054 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
1055 (store_regs): Use get_regcache_arch to get at the current architecture
1058 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1060 * arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
1061 to get at the current architecture by regcache.
1063 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1065 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
1066 (alphabsd_store_inferior_registers): Use get_regcache_arch to get at
1067 the current architecture by regcache.
1069 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1071 * ada-lang.c (ada_language_arch_info): Replace current_gdbarch by
1074 2007-10-30 Daniel Jacobowitz <dan@codesourcery.com>
1076 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Check the selected
1077 soft float and vector ABIs. Support the generic vector ABI for
1079 (do_ppc_sysv_return_value): Likewise. Correct argument types and
1081 (ppc64_sysv_abi_push_dummy_call): Assert that floating point is
1083 * ppc-tdep.h (enum powerpc_vector_abi): New.
1084 (struct gdbarch_tdep): Add soft_float and vector_abi.
1085 * rs6000-tdep.c (setpowerpccmdlist, showpowerpccmdlist)
1086 (powerpc_soft_float_global, powerpc_vector_strings)
1087 (powerpc_vector_abi_global, powerpc_vector_abi_string): New.
1088 (rs6000_gdbarch_init): Check for soft-float and vector ABI markings.
1089 (set_powerpc_command, show_powerpc_command, powerpc_set_soft_float)
1090 (powerpc_set_vector_abi): New.
1091 (_initialize_rs6000_tdep): Register "set powerpc" and "show powerpc"
1093 * Makefile.in (elf_ppc_h): New.
1094 (rs6000-tdep.o): Update.
1096 2007-10-29 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1098 * ppc-linux-tdep.c (ppc32_linux_reg_offsets): Corrected
1099 swapped offsets and VRSAVE offset.
1100 (ppc64_linux_reg_offsets): Corrected swapped offsets.
1101 (ppc32_linux_vrregset): Added.
1102 (ppc_linux_regset_from_core_section): Added support for
1103 .reg-ppc-vmx section.
1104 * ppc-tdep.h (ppc_altivec_support_p): Declare.
1105 (ppc_supply_vrregset): Declare.
1106 (ppc_collect_vrregset): Declare.
1107 * rs6000-tdep.c (ppc_altivec_support_p): Added.
1108 (ppc_supply_vrregset): Added.
1109 (ppc_collect_vrregset): Added.
1110 * corelow.c (get_core_registers): Added support for
1111 .reg-ppc-vmx section.
1113 2007-10-29 Joel Brobecker <brobecker@adacore.com>
1117 2007-10-26 Jim Blandy <jimb@codesourcery.com>
1119 * ax-gdb.h (expr_to_address_and_size): Delete declaration for
1122 * tracepoint.c (tracepoint_operation): Report the deletion event
1123 after we have unlinked the tracepoint from the list, and use the
1124 proper tracepoint number.
1126 * ax-gdb.c (expr_to_agent): Delete unused function.
1127 (expr_to_address_and_size): Delete #if 0'd function.
1128 * ax-gdb.h (expr_to_agent): Delete declaration.
1130 * ax-gdb.c (gen_cast): Remove redundant assignment to
1131 value->type. Doc fix.
1133 * ax-general.c (gen_traced_pop, gen_int_literal)
1134 (gen_usual_arithmetic): Check for typedefs.
1136 2007-10-26 Joel Brobecker <brobecker@adacore.com>
1138 * parse.c (prefixify_expression): Minor reformatting.
1140 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1142 * version.in: Use dot instead of dash.
1144 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1146 * linux-thread-db.c (check_for_thread_db): Only print if info_verbose.
1148 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1150 * memory-map.c (parse_memory_map): Don't use an empty struct
1153 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1155 * signals/signals.c (signals): Update pointer to enum
1156 target_signal declaration.
1158 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1159 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1160 Jim Blandy <jimb@codesourcery.com>
1162 * dwarf2read.c (read_partial_die): check the value
1163 of DW_AT_calling_convention in Fortran programs.
1165 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1166 Thiago Jung Bauermann <bauerman@br.ibm.com>
1168 * c-exp.y (YYSTYPE): Add typed_val_decfloat for decimal
1169 floating point in YYSTYPE union.
1170 (DECFLOAT) Add token and expression element handling code.
1171 (parse_number): Parse DFP constants, which end with suffix 'df',
1172 'dd' or 'dl'. Return DECFLOAT.
1173 * eval.c (evaluate_subexp_standard): Call value_from_decfloat to
1175 * expression.h (enum exp_opcode): Add an opcode (OP_DECFLOAT)
1177 (union exp_element): Add decfloatconst to represent DFP
1178 elements, which is 16 bytes by default.
1179 * parse.c (write_exp_elt_decfloatcst): New function to write a
1180 decimal float const into the expression.
1181 (operator_length_standard): Set operator length for OP_DECFLOAT
1183 * parser-defs.h (write_exp_elt_decfloatcst): Prototype.
1184 * valarith.c (value_neg): Add code to handle the negation
1185 operation of DFP values.
1186 * value.c (value_from_decfloat): New function to get the value
1187 from a decimal floating point.
1188 * value.h (value_from_decfloat): Prototype.
1190 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1191 Thiago Jung Bauermann <bauerman@br.ibm.com>
1193 * c-lang.c (c_create_fundamental_type): Create fundamental
1195 * c-typeprint.c (c_type_print_varspec_prefix): Add
1196 TYPE_CODE_DECFLOAT to no prefix needed case.
1197 (c_type_print_varspec_suffix): Add TYPE_CODE_DECFLOAT to no
1199 * c-valprint.c (c_val_print): Call print_decimal_floating to
1201 * dwarf2read.c (read_base_type): Read DW_ATE_decimal_float
1202 attribute code and return TYPE_CODE_DECFLOAT.
1203 (dwarf_base_type): Set dwarf2_fundamental_type for DFP values.
1204 * gdbtypes.c (gdbtypes_post_init): Initialize builtin_decfloat,
1205 builtin_decdouble and builtin_declong.
1206 * gdbtypes.h (enum type_code): Add TYPE_CODE_DECFLOAT as a
1208 (FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT): New
1209 types, for decimal floating point.
1210 (FT_NUM_MEMBERS): Increment, new types added.
1211 (struct builtin_type): Add builtin_decfloat, builtin_decdouble
1212 and builtin_declong.
1213 * valprint.c (print_decimal_floating): New function to print DFP
1215 * value.h (print_decimal_floating): Prototype.
1217 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1218 Thiago Jung Bauermann <bauerman@br.ibm.com>
1220 * Makefile.in (LIBDECNUMBER_DIR, LIBDECNUMBER, LIBDECNUMBER_SRC
1221 LIBDECNUMBER_CFLAGS): New macros for libdecnumber.
1222 (INTERNAL_CFLAGS_BASE): Add LIBDECNUMBER_CFLAGS in.
1223 (INSTALLED_LIBS): Add -ldecnumber in.
1224 (CLIBS): Add LIBDECNUMBER in.
1225 (decimal128_h, decimal64_h, decimal32_h): New macros for decimal
1227 (dfp_h): New macros for decimal floating point.
1228 (dfp.o): New target.
1229 (COMMON_OBS): Add dfp.o in.
1230 (c-exp.o): Add dfp_h as dependency.
1231 (valprint.o): Add dfp_h as dependency.
1232 (value.o): Add dfp_h as dependency.
1233 * dfp.h: New header file for decimal floating point support in
1235 * dfp.c: New source file for decimal floating point support in
1236 GDB. Implement decimal_from_string and decimal_to_string based
1237 on libdecnumber API.
1238 * configure.ac: Add AC_C_BIGENDIAN test.
1239 * config.in, configure: Regenerate.
1241 2007-10-25 David Ung <davidu@mips.com>
1242 Maciej W. Rozycki <macro@mips.com>
1245 * infcmd.c (registers_info): Check for a user register before
1246 calling target's gdbarch_print_registers_info(). If found to be
1247 so, extract the implicit value of user register and call
1248 print_scalar_formatted().
1249 * Makefile.in: (infcmd.o): Add $(user_regs_h).
1251 2007-10-25 Joel Brobecker <brobecker@adacore.com>
1253 * NEWS: Document status of hppa64-hpux support.
1255 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1257 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1258 set_solib_ops to install SVR4 operations.
1259 (_initialize_svr4_solib): Do not set current_target_so_ops.
1261 * config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
1262 * config/i386/i386gnu.mt (TDEPFILES): ... to here.
1264 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1266 * solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1267 (solib_svr4_init): Initialize fetch_link_map_offsets to NULL.
1268 * solib-svr4.h (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1269 * solib-legacy.c: Remove file.
1271 * config/alpha/alpha-linux.mt (TDEPFILES): Remove solib-legacy.o.
1272 * config/arm/linux.mt (TDEPFILES): Likewise.
1273 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1274 * config/ia64/linux.mt (TDEPFILES): Likewise.
1275 * config/m32r/linux.mt (TDEPFILES): Likewise.
1276 * config/powerpc/linux.mt (TDEPFILES): Likewise.
1277 * config/s390/s390.mt (TDEPFILES): Likewise.
1279 * alpha-linux-tdep.c (alpha_linux_init_abi): Call
1280 set_solib_svr4_fetch_link_map_offsets.
1281 * i386gnu-tdep.c (i386gnu_init_abi): Likewise.
1282 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
1284 * i386gnu-tdep.c: Include "solib-svr4.h".
1285 * Makefile.in: Update dependencies.
1287 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1289 * i386-nto-tdep.c: Include "solib.h".
1290 (i386nto_init_abi): Use set_solib_ops instead of overwriting
1291 current_target_so_ops members.
1292 * solist.h (TARGET_SO_RELOCATE_SECTION_ADDRESSES): Remove.
1293 (TARGET_SO_FIND_AND_OPEN_SOLIB): Remove.
1294 (TARGET_SO_IN_DYNSYM_RESOLVE_CODE): Remove.
1295 * Makefile.in: Update dependencies.
1297 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1299 * arm-wince-tdep.c: Include "solib.h" and "solib-target.h".
1300 (arm_wince_init_abi): Call set_solib_ops.
1301 * i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
1302 (i386_cygwin_init_abi): Call set_solib_ops.
1303 * solib-target.c: Include "solib-target.h".
1304 (solib_target_so_ops): Make global.
1305 (_initialize_solib_target): Do not set current_target_so_ops.
1306 * solib-target.h: New file.
1307 * Makefile.in: Update dependencies.
1309 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1311 * mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
1312 (mips_irix_init_abi): Call set_solib_ops.
1313 * solib-irix.c: Include "solib.h" and "solib-irix.h".
1314 (irix_so_ops): Make global.
1315 (_initialize_irix_solib): Do not set current_target_so_ops.
1316 * solib-irix.h: New file.
1317 * Makefile.in: Update dependencies.
1319 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1321 * configure.tgt: Remove hppa*64*-*-hpux11* special case.
1322 * config/pa/hppa64.mt: Delete file.
1323 * config/pa/hppahpux.mt (MT_CFLAGS): Remove.
1324 (TDEPFILES): Move somread.o to ...
1325 * config/pa/hpux.mh (NATDEPFILES): ... here.
1327 * configure.ac: Add check for elf_hp.h header.
1328 Search libdl and libxpdl for dlgetmodinfo.
1329 * config.in, configure: Regenerate.
1330 * solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
1331 instead of #ifndef PA_SOM_ONLY. Include "solib.h".
1332 (pa64_solib_select): Take gdbarch instead of tdep argument. Call
1333 set_solib_ops instead of modifying current_target_so_ops.
1334 * solib-pa64.h (pa64_solib_select): Update prototype.
1335 * solib-som.c: Remove include of "som.h". Include "solib.h".
1336 (som_solib_select): Take gdbarch instead of tdep argument. Call
1337 set_solib_ops instead of modifying current_target_so_ops.
1338 * solib-som.h (som_solib_select): Update prototype.
1339 * hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
1340 of tdep to som_solib_select call.
1341 (hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
1342 pa64_solib_select call.
1343 * Makefile.in: Update dependencies.
1345 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1347 * frv-tdep.c: Include "solib.h".
1348 (frv_gdbarch_init): Call set_solib_ops.
1349 * frv-tdep.h (struct target_so_ops): Add forward reference.
1350 (frv_so_ops): Add extern declaration.
1351 * solib-frv.c (frv_so_ops): Make global.
1352 (_initialize_frv_solib): Do not set current_target_so_ops.
1353 * Makefile.in: Update dependencies.
1355 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1357 * solib.c (solib_global_lookup): Use solib_ops instead of global
1358 current_target_so_ops.
1360 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1362 * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
1363 * config/frv-tm-frv.h: Delete file.
1365 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
1367 * NEWS: Mention gdbserver support for non-libthread_db operation.
1369 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
1371 * amd64-tdep.c (amd64_convert_register_p): Delete.
1372 (amd64_init_abi): Use i387_convert_register_p.
1373 * alpha-tdep.c (alpha_convert_register_p): Return zero for
1375 (alpha_register_to_value, alpha_value_to_register): Do not handle
1377 * i386-tdep.c (i386_convert_register_p): Use i387_convert_register_p.
1378 * i387-tdep.c (i387_convert_register_p): New.
1379 (i387_register_to_value, i387_value_to_register): Update comments.
1380 * i387-tdep.h (i387_convert_register_p): Declare.
1381 * ia64-tdep.c (ia64_convert_register_p): Return zero for
1382 builtin_type_ia64_ext.
1383 (ia64_gdbarch_init): Do not initialize builtin_type_ia64_ext here.
1384 (_initialize_ia64_tdep): Initialize builtin_type_ia64_ext here.
1385 * m68k-tdep.c (m68k_convert_register_p): Return zero for
1386 builtin_type_m68881_ext.
1387 (m68k_register_to_value, m68k_value_to_register): Update comments.
1389 2007-10-24 Nathan Sidwell <nathan@codesourcery.com>
1391 * target-memory.c (claim_memory): Propagate baton for split memory
1394 2007-10-24 Pedro Alves <pedro_alves@portugalmail.pt>
1397 * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
1400 2007-10-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1402 * symtab.c (find_line_symtab): scan through psymtabs
1403 when exact_match is zero.
1405 2007-10-23 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
1407 * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
1408 (deal_with_atomic_sequence): New.
1409 (mips_software_single_step): Use it.
1411 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
1414 * configure.ac: Modify $LIBINTL before the BFD check.
1415 * configure: Regenerated.
1417 2007-10-23 Joel Brobecker <brobecker@adacore.com>
1419 * buildsym.c (free_pending_blocks): Remove commented-out code.
1420 (make_blockvector): Likewise. Re-use free_pending_blocks.
1421 (end_symtab): Remove commented-out code.
1423 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1425 * top.c (command_loop): Fix output for shrinkage.
1427 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1429 * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
1430 (exp): Remove and document function-like casts.
1432 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1434 * cp-support.c: Include "safe-ctype.h".
1435 (cp_already_canonical): New function.
1436 (cp_canonicalize_string): Use it. Return NULL for already canonical
1438 (mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
1439 (cp_func_name, remove_params): Likewise.
1440 (cp_find_first_component_aux): Use ISSPACE.
1441 * cp-support.h (cp_demangled_name_to_comp): Correct comment. Remove
1443 * cp-name-parser.y (ALLOC_CHUNK): Define.
1444 (struct demangle_info): Add PREV and NEXT. Increase the size of
1446 (d_grab): Convert to a function.
1447 (allocate_info): Rewrite.
1448 (cp_demangled_name_to_comp): Remove MEMORY argument. Do not use
1449 strlen. Update call to allocate_info. Do not free it on failure.
1450 (main): Update calls to cp_demangled_name_to_comp.
1451 * Makefile.in (cp-support.o): Update.
1453 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1455 * std-regs.c (value_of_builtin_frame_fp_reg)
1456 value_of_builtin_frame_pc_reg, value_of_builtin_frame_sp_reg)
1457 value_of_builtin_frame_ps_reg): Use get_frame_arch to get at the
1458 current architecture by frame_info.
1460 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1462 * reggroups.c (default_register_reggroup_p): Replace current_gdbarch
1465 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1467 * infcmd.c (default_print_registers_info, print_return_value)
1468 (print_vector_info, print_float_info): Replace current_gdbarch by
1470 (registers_info): Use get_frame_arch to get at the current
1471 architecture by frame_info.
1473 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1475 * i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
1476 get_regcache_arch to get at the current architecture by regcache.
1478 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1480 * target.c (debug_print_register): Use get_regcache_arch to get at the
1481 current architecture by regcache.
1483 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
1485 * dwarf2read.c (read_file_scope): Add a comment.
1486 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_type)
1487 (read_enumeration_type, process_enumeration_scope, read_array_type)
1488 (read_typedef, read_base_type, read_subrange_type)
1489 (read_unspecified_type): Use dwarf2_name.
1491 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
1493 * coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
1494 * dwarf2read.c (dwarf2_free_objfile): New.
1495 * elfread.c (elf_symfile_finish): Call dwarf2_free_objfile.
1496 * symfile.h (dwarf2_free_objfile): Declare.
1498 2007-10-21 Joel Brobecker <brobecker@adacore.com>
1500 * hppa-hpux-nat.c (hppa_hpux_store_register): Add missing semi-colon.
1502 2007-10-21 Luis Machado <luisgpm@br.ibm.com>
1504 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
1505 * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
1506 default dwarf2_frame_set_init_reg function.
1508 2007-10-21 Pedro Alves <pedro_alves@portugalmail.pt>
1510 * NEWS: Mention native MinGW configuration.
1512 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1514 * gdbarch.sh: Remove "macro" column of input table. Remove handling
1515 of "macro" column throughout the file. Remove (empty) "macro" entry
1516 of all gdbarch functions.
1518 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1520 * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
1521 * gdbarch.c, gdbarch.h: Regenerate.
1522 * dbxread.c (find_stab_function_addr): Define unconditionally.
1523 (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
1524 instead of SOFUN_ADDRESS_MAYBE_MISSING.
1525 (end_psymtab): Likewise.
1526 (process_one_symbol): Likewise.
1527 * mdebugread.c (parse_partial_symbols): Likewise.
1529 * symtab.h (struct minimal_symbol): Always define "filename" member.
1530 * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
1531 * minsyms.c (lookup_minimal_symbol): Likewise.
1532 * symmisc.c (dump_msymbols): Likewise.
1534 * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
1535 * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
1536 * config/i386/tm-i386sol2.h: Remove file.
1537 * config/i386/tm-linux.h: Remove file.
1538 * i386-linux-tdep.c (i386_linux_init_abi): Add call to
1539 set_gdbarch_sofun_address_maybe_missing.
1540 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
1542 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
1543 * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
1544 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
1545 * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
1546 * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
1547 * config/powerpc/tm-ppc-eabi.h: Remove file.
1548 * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
1549 set_gdbarch_sofun_address_maybe_missing.
1551 * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
1552 * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
1553 * config/sparc/tm-sol2.h: Remove file.
1554 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
1555 set_gdbarch_sofun_address_maybe_missing.
1556 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
1558 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1560 * gdbarch.sh (static_transform_name): New gdbarch callback.
1561 * gdbarch.c, gdbarch.h: Regenerate.
1562 * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
1563 instead of STATIC_TRANSFORM_NAME.
1564 * mdebugread.c (parse_partial_symbols): Likewise.
1565 * stabsread.c (define_symbol): Likewise.
1566 * xcoffread.c (scan_xcoff_symtab): Likewise.
1568 * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
1569 (IS_STATIC_TRANSFORM_NAME): Remove.
1570 * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
1571 * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
1572 (i386_sol2_init_abi): Install it.
1574 * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
1575 (IS_STATIC_TRANSFORM_NAME): Remove.
1576 * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
1577 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
1578 (sparc32_sol2_init_abi): Install it.
1579 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
1580 * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
1582 2007-10-18 Daniel Jacobowitz <dan@codesourcery.com>
1584 * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
1585 (mips_n32n64_return_value, mips_o32_return_value)
1586 (mips_o64_return_value): Update calls to mips_xfer_register.
1588 2007-10-17 Daniel Jacobowitz <dan@codesourcery.com>
1590 * frame.c (frame_unwind_unsigned_register): Delete.
1591 (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
1592 * frame.h (frame_unwind_unsigned_register): Delete prototype.
1594 * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
1595 avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
1596 mt-tdep.c: Replace frame_unwind_unsigned_register with
1597 frame_unwind_register_unsigned.
1599 2007-10-16 Pedro Alves <pedro_alves@portugalmail.pt>
1601 * config/i386/mingw.mh, config/i386/mingw.mt: New files.
1602 * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
1603 * win32-nat.c: Only include cygwin.h on Cygwin host. Don't
1605 (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
1606 if not building on Cygwin.
1607 (win32_make_so, handle_output_debug_string, handle_exception)
1608 (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
1609 (win32_attach): Only fallback to Cygwin pids if building on
1611 (win32_pid_to_exec_file): Disable Cygwin specific code, if not
1613 (win32_create_inferior): Disable starting the inferior through a
1614 shell, environment var processing and tty handling if not building
1616 (cygwin_pid_to_str): Rename to ...
1617 (win32_pid_to_str): ... this.
1618 (init_win32_ops): Update use of win32_pid_to_str. Disable "shell"
1619 and "cygwin-exceptions" commands if not building on Cygwin.
1621 2007-10-16 Gaius Mulley <gaius@glam.ac.uk>
1623 * doc/gdb.texinfo: Add TSIZE definition, removed
1624 statement about unbounded arrays being unimplemented.
1625 * m2-valprint.c (m2_print_array_contents): New function.
1626 (m2_print_unbounded_array): New function.
1627 (m2_print_array_contents): New function.
1628 * m2-typeprint.c (m2_unbounded_array): New function.
1629 (m2_is_unbounded_array): New function.
1630 (m2_print_type): Test for unbounded array when walking
1632 * m2-lang.h: Added extern m2_is_unbounded_array.
1633 * m2-lang.c (evaluate_subexp_modula2): New function.
1634 (exp_descriptor_modula2): New structure.
1635 (m2_language_defn): Use exp_descriptor_modula2.
1636 * m2-exp.y: Added TSIZE and binary subscript.
1638 2007-10-16 Daniel Jacobowitz <dan@codesourcery.com>
1640 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
1643 2007-10-16 Kevin Buettner <kevinb@redhat.com>
1645 * m32r-tdep.c (decode_prologue): Sign extend offset for
1647 (m32r_frame_unwind_cache): Likewise.
1649 2007-10-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
1651 * rs6000-tdep.c (skip_prologue): Restore comment with
1652 function description to its proper place.
1654 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1656 * NEWS: Mention gdbserver PowerPC improvements.
1658 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1660 * features/Makefile (WHICH): Add PowerPC register definitions.
1661 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
1662 (rs6000/powerpc-64-expedite): New macros.
1663 ($(outdir)/%.dat): Handle subdirectories.
1664 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
1665 regformats/rs6000/powerpc-e500.dat: New generated files.
1667 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1669 * ppc-linux-nat.c (ppc_linux_read_description): New.
1670 (_initialize_ppc_linux_nat): Set to_read_description.
1671 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
1673 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1675 * NEWS: Document target described register support for PowerPC.
1676 * ppc-tdep.h: Remove ppc_spr constants.
1677 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
1678 ppc_builtin_type_vec128 members.
1679 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
1680 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
1681 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
1682 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
1683 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
1684 * rs6000-tdep.c: Include preparsed descriptions.
1685 (init_sim_regno_table): Do not iterate over pseudo registers.
1686 Look up segment registers by name. Use sim_spr_register_name
1688 (rs6000_register_sim_regno): Call init_sim_regno_table here.
1689 (rs6000_builtin_type_vec128): Delete.
1690 (rs6000_register_name): Only handle SPE pseudo registers and upper
1691 halves. Call tdesc_register_name for everything else.
1692 (rs6000_register_type): Delete. Replace with...
1693 (rs6000_pseudo_register_type): ...this new function. Only handle
1694 SPE pseudo registers.
1695 (rs6000_register_reggroup_p): Delete. Replace with...
1696 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
1697 handle SPE pseudo registers.
1698 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
1700 (rs6000_register_to_value, rs6000_value_to_register): Remove check
1702 (e500_register_reggroup_p): Delete.
1703 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
1704 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
1705 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
1706 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
1707 (registers_powerpc, registers_403, registers_403GC, registers_505)
1708 (registers_860, registers_601, registers_602, registers_603)
1709 (registers_604, registers_750, registers_7400, registers_e500): Delete
1711 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
1713 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
1714 (variants): Delete outdated comment. Use standard target descriptions
1715 instead of "struct reg" arrays.
1716 (init_variants): Delete.
1717 (rs6000_gdbarch_init): Do not guess word size from the BFD
1718 architecture if we have a target description. Select a variant
1719 before creating a new architecture. Use the variant's target
1720 description if the target did not define a register layout.
1721 Validate target-supplied registers. Reject mismatches. Use
1722 fixed register numbers and new constants instead of magic
1723 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
1724 (_initialize_rs6000_tdep): Initialize the preparsed target
1726 * target-descriptions.c (tdesc_predefined_types): Add int128 and
1728 (tdesc_find_register_early): New function.
1729 (tdesc_numbered_register): Use it.
1730 (tdesc_register_size): New function.
1731 (tdesc_use_registers): Take a target_desc argument. Do not use
1732 gdbarch_target_desc.
1733 * target-descriptions.h (tdesc_use_registers): Update prototype
1735 (tdesc_register_size): New prototype.
1736 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
1737 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
1738 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
1739 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
1740 (rs6000-tdep.o): Update.
1741 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
1742 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
1743 * mips-tdep.c (mips_gdbarch_init): Likewise.
1745 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1747 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
1748 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
1749 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
1750 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
1751 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
1752 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
1753 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
1756 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1758 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
1759 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
1760 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
1761 feature descriptions for standard PowerPC register sets.
1763 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
1764 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
1765 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
1766 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
1767 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
1768 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
1769 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
1770 target descriptions for PowerPC processors.
1772 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1774 * target-descriptions.c (tdesc_predefined_types): New.
1775 (tdesc_named_type): Use it.
1776 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
1777 (_intialize_target_descriptions): Register "maint print c-tdesc".
1778 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
1779 (cfiles, %.c): New rules.
1780 * features/arm-with-iwmmxt.c, features/mips-linux.c,
1781 features/mips64-linux.c: New generated files.
1783 * arm-linux-nat.c: Include preparsed description instead of
1785 (super_xfer_partial, arm_linux_xfer_partial): Remove.
1786 (arm_linux_read_description): New function.
1787 (_initialize_arm_linux_nat): Set to_read_description instead of
1788 to_xfer_partial. Initialize preparsed description.
1789 * config/arm/linux.mh (TDEP_XML): Delete.
1790 * mips-linux-nat.c: Include preparsed descriptions instead of
1792 (super_xfer_partial, mips_linux_xfer_partial): Remove.
1793 (mips_linux_read_description): New function.
1794 (_initialize_mips_linux_nat): Set to_read_description instead of
1795 to_xfer_partial. Initialize preparsed description.
1796 * config/mips/linux.mh (TDEP_XML): Delete.
1797 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
1798 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
1799 (mips64_linux_c): New macros.
1800 (arm-linux-nat.o, mips-linux-nat.o): Update.
1802 2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
1804 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
1805 Replace xasprintf by xstrprintf.
1806 symfile-mem.c (add_vsyscall_page): Ditto.
1808 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1810 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
1811 replacing use of global current_gdbarch.
1812 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
1813 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
1815 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
1816 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
1817 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
1818 (ia64_sigtramp_frame_cache): Update caller.
1820 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1822 * gdbarch.sh (deprecated_use_struct_convention): Remove.
1823 (extract_return_value, store_return_value): Remove.
1824 (return_value): Remove default implementation.
1825 * gdbarch.c, gdbarch.h: Regenerate.
1827 * stack.c (return_command): Remove compatibility hack.
1828 * arch-utils.c (legacy_return_value): Remove.
1829 * arch-utils.h (legacy_return_value): Likewise.
1831 * arch-utils.c (always_use_struct_convention): Remove.
1832 * arch-utils.h (always_use_struct_convention): Likewise.
1833 * value.c (generic_use_struct_convention): Remove.
1834 * defs.h (generic_use_struct_convention): Likewise.
1836 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1838 * avr-tdep.c (avr_return_value): New function.
1839 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
1840 set_gdbarch_extract_return_value.
1842 * fvr-tdep.c (frv_return_value): New function.
1843 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
1844 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
1845 and set_gdbarch_deprecated_use_struct_convention.
1847 * ia64-tdep.c (ia64_use_struct_convention): Make static.
1848 Add check for structure, union, or array types.
1849 (ia64_extract_return_value): Make static.
1850 (ia64_store_return_value): Make static. Support multi-word values.
1851 (ia64_return_value): New function.
1852 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
1853 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
1854 and set_gdbarch_deprecated_use_struct_convention.
1856 2007-10-12 Joel Brobecker <brobecker@adacore.com>
1858 * solib-target.c (solib_target_parse_libraries)
1859 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
1861 2007-10-12 Jim Blandy <jimb@codesourcery.com>
1863 * serial.h (struct serial_ops): Document read_prim to return zero
1865 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
1866 read_prim returns zero, not SERIAL_TIMEOUT.
1868 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1870 * alpha-mdebug-tdep.c: Include "gdb_string.h".
1871 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
1872 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
1873 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
1875 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
1876 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
1877 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
1878 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
1879 * config/alpha/tm-alpha.h: Remove file.
1881 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1883 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
1884 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
1886 * config/pa/tm-hppa.h: Delete file.
1887 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
1888 * config/pa/hppahpux.mt: Likewise.
1889 * config/pa/hppa.mt: Likewise.
1890 * config/pa/linux.mt: Likewise.
1891 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
1893 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1895 * config/arm/nm-nbsdaout.h: Remove file.
1896 * config/nm-nbsdaout.h: Likewise.
1897 * config/nm-nbsd.h: Likewise.
1899 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1901 * block.h (struct block): Remove "gcc_compile_flag" member.
1902 (BLOCK_GCC_COMPILED): Remove.
1903 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
1904 * buildsym.c (finish_block): Do not set it.
1905 * symmisc.c (dump_symtab_1): Do not dump it.
1907 * value.h (using_struct_return): Remove "gcc_p" argument.
1908 * value.c (using_struct_return): Likewise.
1909 * eval.c (evaluate_subexp_standard): Adapt callers.
1910 * infcall.c (call_function_by_hand): Likewise.
1911 * stack.c (return_command): Likewise.
1912 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
1914 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
1915 * gdbarch.c, gdbarch.h: Regenerate.
1916 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
1917 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
1918 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
1919 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
1920 (push_dummy_code, call_function_by_hand): Adapt callers.
1922 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1924 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
1925 (finish_command_continuation, finish_command): Adapt callers.
1927 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1929 * infcall.c (call_function_by_hand): Remove special handling
1930 for HP aCC compiled code.
1932 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1934 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
1935 reference. Fix endianness bugs.
1936 (cris_reg_struct_has_address): Remove.
1937 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
1938 and set_gdbarch_deprecated_use_struct_convention calls.
1940 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
1941 * gdbarch.c, gdbarch.h: Regenerate.
1942 * infcall.c (call_function_by_hand): Remove handling of
1943 deprecated_reg_struct_has_addr.
1945 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
1946 Kazu Hirata <kazu@codesourcery.com>
1948 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
1949 checking watchpoint resources.
1951 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
1953 * memattr.c (inaccessible_by_default): Change the initial
1956 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
1959 * coffread.c (read_one_sym): Check for read errors.
1961 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
1963 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
1964 instead of "Linux 2.6.19" in comment.
1965 (linux_xfer_partial): Use "GNU/Linux target" instead of
1966 "Linux target" in comment.
1967 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
1968 (m68k_linux_get_sigtramp_info): Likewise.
1970 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
1972 * MAINTAINERS (language support): List Joel and Paul as
1975 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
1977 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
1979 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
1980 not set DEPRECATED_TM_FILE.
1981 * config/arm/tm-arm.h: Delete file.
1983 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
1985 * MAINTAINERS (Write After Approval): Add self.
1987 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
1989 * buildsym.c (record_line): Remove empty lines followed by
1990 end-of-sequence markers.
1992 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
1994 * configure.tgt: Recognize fido-*-elf.
1996 2007-10-10 Joel Brobecker <brobecker@adacore.com>
2000 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2002 * stack.c (print_frame_args, frame_info, return_command): Use
2003 get_regcache_arch or get_frame_arch to get at the current architecture
2004 by regcache or by frame, respectively.
2006 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2008 * rs6000-nat.c (fetch_register, store_register)
2009 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
2010 get_regcache_arch to get at the current architecture by regcache.
2012 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
2013 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
2014 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
2015 current_gdbarch by gdbarch.
2016 (rs6000_skip_trampoline_code, rs6000_register_to_value)
2017 (rs6000_value_to_register): Use get_frame_arch to get at the current
2018 architecture by frame_info.
2020 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2022 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
2023 get_regcache_arch to get at the current architecture by regcache.
2025 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2026 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
2027 get_regcache_arch to get at the current architecture by regcache.
2029 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
2030 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2031 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
2032 current architecture by regcache.
2034 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2036 * remote-mips.c (mips_wait, mips_fetch_registers)
2037 (mips_store_registers): Use get_regcache_arch to get at the
2038 current architecture by regcache.
2040 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
2041 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
2042 get at the current architecture by regcache.
2043 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
2044 architecture by frame_info.
2046 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2047 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
2048 the current architecture by regcache.
2050 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2051 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
2052 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
2053 current architecture by frame_info.
2054 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
2055 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
2056 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
2057 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
2058 get at the current architecture by regcache.
2060 * mips-linux-nat.c (mips_linux_register_addr)
2061 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
2062 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
2063 (mips64_linux_regsets_fetch_registers)
2064 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
2065 the current architecture by regcache.
2067 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
2068 get at the current architecture by frame_info.
2070 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2072 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
2073 current architecture by regcache.
2074 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
2075 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
2076 (mips_stub_frame_cache, mips_read_fp_register_single)
2077 (mips_read_fp_register_double, mips_print_fp_register)
2078 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
2079 at the current architecture by frame_info.
2080 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
2081 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
2082 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
2083 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
2084 (mips_o32_push_dummy_call, mips_o32_return_value)
2085 (mips_o64_push_dummy_call, mips_o64_return_value)
2086 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
2089 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2091 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
2092 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
2093 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
2094 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
2095 (xtensa_register_write_masked, xtensa_register_read_masked)
2096 (xtensa_supply_gregset, xtensa_store_return_value)
2097 (xtensa_extract_return_value): Use get_regcache_arch to get at the
2098 current architecture by regcache.
2099 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
2100 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
2101 architecture by frame_info.
2103 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2105 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
2106 (thumb_analyze_prologue): Move pv_area_store_would_trash call
2107 out of loop. Do not set cache->frameoffset.
2108 (arm_scan_prologue): Use prologue-value mechanism. Do not set
2109 frameoffset. Simplify framesize.
2110 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
2112 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
2114 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2116 * target.c (update_current_target): Call setup_target_debug.
2117 (push_target): Do not call it here.
2119 2007-10-09 Michael Snyder <msnyder@specifix.com>
2121 * MAINTAINERS: Update my email address.
2123 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2125 * xtensa-tdep.c: Replace following current-gdbarch based macros by
2127 (xtensa_pseudo_register_read)
2128 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
2129 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
2130 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
2131 (xtensa_pseudo_register_read)
2132 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
2133 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
2134 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
2135 (xtensa_frame_prev_register): NUM_AREGS.
2136 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
2137 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
2138 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
2139 (xtensa_supply_gregset, xtensa_frame_cache)
2140 (xtensa_frame_prev_register): WS_REGNUM.
2141 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
2142 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
2143 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
2144 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2145 (xtensa_register_reggroup_p): REGMAP.
2146 (call0_track_op): LITBASE_REGNUM.
2147 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
2148 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
2149 (xtensa_frame_prev_register, AREG_NUMBER)
2150 (xtensa_register_type): AR_BASE.
2151 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
2152 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
2153 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2154 (xtensa_frame_cache, xtensa_frame_prev_register)
2155 (xtensa_extract_return_value, xtensa_store_return_value)
2156 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
2157 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
2158 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
2159 (xtensa_frame_prev_register, xtensa_push_dummy_call)
2160 (call0_frame_cache): A1_REGNUM.
2161 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
2162 (xtensa_push_dummy_call): A4_REGNUM.
2163 (ARGS_FIRST_REG): A6_REGNUM.
2164 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2165 (xtensa_frame_prev_register): A15_REGNUM.
2166 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
2167 them in the appropriate source file:
2168 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
2169 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
2170 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
2171 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
2172 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
2173 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
2174 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
2175 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
2176 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
2177 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
2178 A13_REGNUM, A14_REGNUM, A15_REGNUM.
2180 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2182 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
2183 the current architecture by frame_info.
2184 (h8300_frame_prev_register
2185 (h8300_print_register): Replace current_gdbarch by gdbarch.
2186 (h8300_print_registers_info, h8300_register_type)
2187 (h8300_register_type): Likewise.
2189 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2191 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
2192 the current architecture by regcache.
2193 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
2194 (i386_linux_fetch_inferior_registers)
2195 (i386_linux_store_inferior_registers): Likewise.
2196 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
2197 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
2198 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2199 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
2200 (i386_extract_return_value, i386_store_return_value): Likewise.
2201 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
2202 the current architecture by frame_info.
2203 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
2204 (i386_register_to_value, i386_value_to_register): Likewise.
2206 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2208 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
2209 the current architecture by regcache.
2210 (monitor_store_register, monitor_store_registers): Likewise.
2212 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2214 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
2215 the current architecture by regcache.
2217 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2219 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
2222 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2224 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
2225 architecture by frame.
2226 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
2227 (inside_main_func, frame_sp_unwind): Likewise.
2229 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
2231 * solib-svr4.c (enable_break): Add the dynamic linker also if
2234 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2236 * MAINTAINERS (Write After Approval): Add self.
2238 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2240 * stabsread.c (read_huge_number): Initialize local variable to 0.
2242 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
2244 * p-lang.h (pascal_main_name): Add declaration.
2245 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
2246 (GPC_MAIN_PROGRAM_NAME_2): New constants.
2247 (pascal_main_name): New function.
2248 * symtab.c: Include p-lang.h.
2249 (find_main_name): Add call to pascal_main_name.
2250 * Makefile.in (symtab.o): Add dependency on p-lang.h.
2252 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2254 * stabsread.c (read_huge_number): Fix handling of octal
2255 representation when the bit width is known.
2256 (read_range_type): Record unsigned integral types with their size,
2257 when the type size is known.
2259 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
2261 * MAINTAINERS (Write After Approval): Add self.
2263 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2265 * breakpoint.c (print_one_breakpoint_location): ARI fix:
2266 Replace asprintf by xstrprintf.
2268 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2270 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
2271 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
2273 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2275 * linux-fork.c: Move "gdb_wait.h" include back to the position of
2276 <sys/wait.h> include before last commit.
2278 2007-10-08 Maciej W. Rozycki <macro@mips.com>
2280 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
2282 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2284 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
2285 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
2286 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
2287 (store_regs_user_thread, store_regs_kernel_thread): Use
2288 get_regcache_arch or get_frame_arch to get at the current architecture
2289 by regcache or by frame, respectively.
2291 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2293 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
2294 (sh64_pseudo_register_read, sh64_pseudo_register_write)
2295 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
2296 (sh64_print_register, sh64_media_print_registers_info)
2297 (sh64_compact_print_registers_info, sh64_unwind_sp)
2298 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
2299 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
2300 (sh64_frame_prev_register): Use FRAME to recognize current
2303 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2305 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2306 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2307 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
2308 current_gdbarch by gdbarch.
2309 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
2310 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2311 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
2312 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
2313 recognize current architecture.
2315 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2317 * remote.c (init_remote_state, fetch_register_using_p)
2318 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
2319 (store_register_using_P, store_registers_using_G)
2320 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
2321 get at the current architecture by regcache or by frame, respectively.
2323 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2325 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
2326 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
2327 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
2328 get_regcache_arch or get_frame_arch to get at the current architecture
2329 by regcache or by frame, respectively.
2330 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2331 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
2332 (store_register, old_store_inferior_registers, supply_gregset)
2333 (supply_fpregset, fill_fpregset): Likewise.
2334 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
2335 Replace current_gdbarch by gdbarch.
2337 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2339 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
2340 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
2341 get_frame_arch to get at the current architecture by regcache or by
2342 frame, respectively.
2344 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2346 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
2347 Replace current_gdbarch by gdbarch.
2348 * ia64-tdep.c (ia64_frame_prev_register
2349 (ia64_sigtramp_frame_prev_register)
2350 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
2351 get_frame_arch to get at the current architecture by regcache or by
2352 frame, respectively.
2353 * ia64-linux-nat.c (ia64_linux_fetch_register)
2354 (ia64_linux_fetch_registers, ia64_linux_store_register)
2355 (ia64_linux_store_registers): Likewise.
2357 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2359 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
2360 current_gdbarch by gdbarch.
2361 * hppa-linux-nat.c (fetch_register, store_register)
2362 (hppa_linux_fetch_inferior_registers)
2363 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
2364 get_frame_arch to get at the current architecture by regcache or by
2365 frame, respectively.
2366 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
2367 (hppa_hpux_unwind_adjust_stub): Likewise.
2368 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
2369 (hppa_hpux_fetch_inferior_registers)
2370 (hppa_hpux_store_inferior_registers): Likewise.
2372 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2374 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
2375 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
2376 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
2377 or get_frame_arch to get at the current architecture by regcache or by
2378 frame, respectively.
2379 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
2380 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
2381 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
2382 current_gdbarch by gdbarch.
2384 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2386 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
2387 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
2388 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
2389 get at the current architecture by regcache or by·frame, respectively.
2390 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
2393 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2395 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
2396 Use get_regcache_arch or get_frame_arch to get at the current
2397 architecture by regcache or by frame, respectively.
2398 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2399 * amd64-nat.c (amd64_supply_native_gregset)
2400 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
2402 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2404 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
2406 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2407 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
2408 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
2409 get_frame_arch to get at the current architecture by regcache or by
2410 frame, respectively.
2411 * alpha-nat.c (fetch_osf_core_registers): Likewise.
2413 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2415 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
2416 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
2417 current_gdbarch by gdbarch.
2418 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
2420 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2422 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
2423 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
2424 * regcache.c (regcache_raw_write): Use get_regcache_arch or
2425 get_frame_arch to get at the current architecture by regcache or by
2426 frame, respectively.
2428 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2430 * findvar.c (value_of_register, locate_var_value): Use
2431 get_regcache_arch or get_frame_arch to get at the current architecture
2432 by regcache or by frame, respectively.
2433 * findvar.c (default_value_from_register, value_from_register): Replace
2434 current_gdbarch by gdbarch.
2436 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2438 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
2440 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2442 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
2443 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
2445 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
2447 * remote.c (get_offsets): Only call free_symfile_segment_data if
2450 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
2452 * objc-exp.y: ARI fix: remove 4 PARAMS.
2454 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
2456 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
2457 news. Mention XML support for M68K in GDB 6.7.
2459 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
2461 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
2463 (init_vector_type): Use builtin_type_int32.
2465 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
2467 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
2468 size to enable bi-arch generate-core-file support.
2470 2007-10-02 Markus Deuling <deuling@de.ibm.com>
2472 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
2474 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2476 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
2478 * tui/tui-win.c (tui_initialize_win): New function for
2479 initializing tui's SIGWINCH signal handler.
2480 * tui/tui-win.h (tui_initialize_win): Declare.
2482 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
2484 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
2485 pointer to uintptr_t before casting to CORE_ADDR.
2487 2007-10-02 Markus Deuling <deuling@de.ibm.com>
2489 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
2491 2007-10-02 Mark Mitchell <mark@codesourcery.com>
2493 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
2494 * ser-mingw.c (enum select_thread_state): New type.
2495 (struct ser_console_state): Add have_started and thread_state.
2496 (select_thread_wait): New function.
2497 (thread_fn_type): New type.
2498 (create_select_thread): New function.
2499 (destroy_select_thread): Likewise.
2500 (start_select_thread): Likewise.
2501 (stop_select_thread): Likewise.
2502 (console_select_thread): Use new functions.
2503 (pipe_select_thread): Likewise.
2504 (file_select_thread): Likewise.
2505 (ser_console_wait_handle): Likewise.
2506 (ser_console_done_wait_handle): Likewise.
2507 (ser_console_close): Likewise.
2508 (free_pipe_state): Likewise.
2509 (pipe_wait_handle): Likewise.
2510 (pipe_done_wait_handle): Likewise.
2511 (struct net_windows_state): Derive from ser_console_state.
2512 (net_windows_select_thread): Use new functions.
2513 (net_windows_wait_handle): Likewise.
2514 (net_windows_done_wait_handle): Likewise.
2515 (net_windows_close): Likewise.
2517 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
2519 * inflow.c (terminal_ours_1): Remove useless line.
2521 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
2523 * mips-tdep.c (mips_read_fp_register_double): Correct check for
2525 (mips_print_fp_register): Correct check for even FP registers.
2526 (mips_virtual_frame_pointer): New function.
2527 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
2529 2007-09-30 Mike Frysinger <vapier@gentoo.org>
2531 * value.h (lookup_only_internalvar): New prototype.
2532 (create_internalvar): Likewise.
2533 * value.c (lookup_only_internalvar): New function.
2534 (create_internalvar): Likewise.
2535 (lookup_internalvar): Use new lookup_only_internalvar and
2536 create_internalvar functions.
2537 * parse.c (write_dollar_variable): Look up $ symbols in internal
2538 table first rather than last.
2540 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
2542 * linux-nat.c (linux_nat_new_thread): New variable.
2543 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
2544 linux_nat_switch_fork.
2545 (lwp_list): Make public.
2546 (add_lwp): Call linux_nat_new_thread.
2547 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
2549 (resume_callback): Clear lp->siginfo. Remove unused variable.
2550 (linux_nat_resume): Assert that the LWP list is already initialized.
2552 (save_siginfo): New.
2553 (stop_wait_callback, linux_nat_wait): Call it.
2554 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
2555 * linux-nat.h (struct lwp_info): Add siginfo.
2556 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
2559 * amd64-linux-nat.c (amd64_linux_dr): New.
2560 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
2561 (amd64_linux_dr_set): Take a PTID argument.
2562 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
2563 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
2564 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
2565 (amd64_linux_new_thread): New.
2566 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
2567 * i386-linux-nat.c (i386_linux_dr): New.
2568 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
2569 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
2570 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
2571 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
2572 (i386_linux_new_thread): New.
2573 (i386_linux_resume): Remove unnecessary PID check.
2574 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
2575 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
2576 (fetch_debug_register, fetch_debug_register_pair): Delete.
2577 (debug_registers): New.
2578 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
2579 ALL_LWPS and debug_registers.
2580 (ia64_linux_new_thread): New.
2581 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
2582 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
2583 * ppc-linux-nat.c (last_stopped_data_address): Delete.
2584 (saved_dabr_value): New.
2585 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
2587 (ppc_linux_new_thread): New.
2588 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
2589 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
2590 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
2591 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
2593 (s390_fix_watch_points): Take a PTID argument.
2594 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
2595 (_initialize_s390_nat): Call linux_nat_set_new_thread.
2597 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
2598 Jeff Johnston <jjohnstn@redhat.com>
2600 * breakpoint.c (watchpoints_triggered): New.
2601 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
2602 Check watchpoint_triggered instead. Combine handling for software
2603 and hardware watchpoints. Do not use target_stopped_data_address
2604 here. Always check a watchpoint if its scope breakpoint triggers.
2605 Do not stop for thread or overlay events. Improve check for
2606 triggered watchpoints without a value change.
2607 (watch_command_1): Insert the scope breakpoint first. Link the
2608 scope breakpoint to the watchpoint.
2609 * breakpoint.h (enum watchpoint_triggered): New.
2610 (struct breakpoint): Add watchpoint_triggered.
2611 (bpstat_stop_status): Update prototype.
2612 (watchpoints_triggered): Declare.
2613 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
2614 (stepped_after_stopped_by_watchpoint): Delete.
2615 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
2616 local. Handle infwait_step_watch_state. Update calls to
2617 bpstat_stop_status. Use watchpoints_triggered to check
2619 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
2620 (remote_stopped_data_address): Do not check it.
2622 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
2624 * configure.ac: Add $LIBINTL when testing libbfd.
2625 * configure: Regenerated.
2627 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
2629 * NEW: Mention pending breakpoint changes and
2630 support for breakpoints at multiple locations.
2632 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
2634 * arm-linux-tdep.c (arm_linux_software_single_step): New.
2635 (arm_linux_init_abi): Use it.
2636 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
2637 condition correctly.
2638 * arm-tdep.h (arm_get_next_pc): Declare.
2639 * Makefile.in (arm-linux-tdep.o): Update.
2641 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
2643 * varobj.c (install_new_value): Don't
2644 call value_get_print_value when a value is
2645 lazy. Update the print_value member in a
2648 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
2650 * breakpoint.c (create_breakpoint): Set
2651 condition on each location, not on the first
2652 location of breakpoint.
2654 2007-09-26 Jim Blandy <jimb@codesourcery.com>
2656 * remote.c (getpkt_sane): Fix error message. No animals were
2657 harmed in the making of this debugger.
2659 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2661 * p-typeprint.c: Fix 11 ARI reported problems.
2662 (pascal_print_type): Fix 4 operator at end of line.
2663 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
2664 using strncmp function.
2665 (pascal_type_print_base): Fix 2 operator at end of line.
2666 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
2667 using strncmp function.
2670 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2672 * Fix PR pascal/2231
2673 dwarf2read.c (read_subroutine_type):
2674 All pascal functions are prototyped.
2676 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2678 * Fix PR pascal/2283
2679 p-valprint.c (pascal_val_print): correct current language check.
2680 Also print array of char as strings.
2683 2007-09-26 David Ung <davidu@mips.com>
2684 Maciej W. Rozycki <macro@mips.com>
2686 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
2688 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
2690 * p-exp.y: Fix 12 ARI reported problems.
2691 (name_not_typename): Fix 2 operator at end of line issues.
2692 (yylex): Fix 3 operator at end of line issues.
2693 Replace 7 DEPRECATED_STREQ macros using strcmp function.
2695 2007-09-25 David Ung <davidu@mips.com>
2696 Maciej W. Rozycki <macro@mips.com>
2698 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
2699 rules return composite types in registers as appropriate.
2701 2007-09-24 Jim Blandy <jimb@codesourcery.com>
2703 * symfile.h (struct symfile_segment_data): Doc fixes.
2704 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
2705 Assert that we were passed some loaded segment addresses,
2706 and that sections' segment numbers are valid.
2707 Simplify offset calculation.
2708 * remote.c (get_offsets): Clarify selection of relocate-by-segment
2709 strategy, and set num_segments correctly. Delete redundant
2710 assignments to do_sections.
2712 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
2714 * frame.c (get_prev_frame_1): Also check for PC in the same register.
2716 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
2718 * breakpoint.c (remove_sal): New.
2719 (expand_line_sal_maybe): New.
2720 (create_breakpoints): Call expand_line_sal_maybe.
2721 (clear_command): Add comment.
2722 (breakpoint_re_set_one): Call expand_line_sal_maybe.
2723 * linespec.c (decode_indirect): Set explicit_pc to 1.
2724 (decode_all_digits): Set explicit_line to 1.
2725 (append_expanded_sal): New.
2726 (expand_line_sal): New.
2727 * linespec.h (expand_line_sal): Declare.
2728 * symtab.c (init_sal): Initialize explicit_pc
2730 * symtab.h (struct symtab_and_line): New fields
2731 explicit_pc and explicit_line.
2733 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
2735 * infcall.c (call_function_by_hand): Handle language-specific
2736 pass and return by reference.
2738 * cp-abi.c (cp_pass_by_reference): New.
2739 * cp-abi.h (cp_pass_by_reference): Declare.
2740 (struct cp_abi_ops): Add pass_by_reference.
2741 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
2742 (init_gnuv3_ops): Set pass_by_reference.
2744 * language.c (language_pass_by_reference): New.
2745 (default_pass_by_reference): New.
2746 (unknown_language_defn, auto_language_defn, local_language_defn): Add
2747 default_pass_by_reference.
2748 * langauge.h (struct language_defn): Add la_pass_by_reference.
2749 (language_pass_by_reference, default_pass_by_reference): Declare.
2750 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
2751 * c-lang.c (c_language_defn, asm_language_defn)
2752 (minimal_language_defn): Likewise.
2753 (cplus_language_defn): Add cp_pass_by_reference.
2754 * f-lang.c (f_language_defn): Add default_pass_by_reference.
2755 * jv-lang.c (java_language_defn): Likewise.
2756 * m2-lang.c (m2_language_defn): Likewise.
2757 * objc-lang.c (objc_language_defn): Likewise.
2758 * p-lang.c (pascal_language_defn): Likewise.
2759 * scm-lang.c (scm_language_defn): Likewise
2761 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
2763 Allow a code breakpoint to have several locations
2765 * breakpoint.h (enum enable_state): Remove the
2766 bp_shlib_disabled enumerator.
2767 (struct bp_location): New members shlib_disabled,
2768 global_next, enabled and function_name.
2769 Rename pending to condition_not_parsed.
2771 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
2772 (ALL_BP_LOCATIONS_SAFE): Likewise.
2773 (breakpoint_enabled): Don't check for pending.
2774 (condition_command): Free and update all locations of
2776 (insert_bp_location): Adjust.
2777 (software_breakpoint_inserted_here_p): Don't care
2778 if breakpoint is enabled, as soon as it's inserted.
2779 (print_it_typical): Print bpstat's location, not
2780 bpstat's breakpoint's location.
2781 (bpstat_stop_status): Iterate over all locations, not
2783 (print_breakpoint_location): New.
2784 (print_one_breakpoint): Renamed to
2785 (print_one_breakpoint_location): ...this. Take
2786 parameters to describe which location is being
2787 printed. Modify code to properly print header
2788 for several locations and individual locations.
2789 (print_one_breakpoint): Print all locations.
2790 (breakpoint_has_pc): New.
2791 (describe_other_breakpoints): Use the above.
2792 (check_duplicates): Renamed to...
2793 (check_duplicates_for): .. this.
2794 (check_duplicates): Use check_duplicates_for.
2795 (allocate_bp_location): Adjust.
2796 (set_raw_breakpoint_without_location): New,
2797 extracted from set_raw_breakpoint.
2798 (set_breakpoint_location_function): New.
2799 (set_raw_breakpoint): Use
2800 set_raw_breakpoint_without_location.
2801 (make_breakpoint_permanent): Mark all locations
2803 (disable_breakpoints_in_shlibs): Iterate over
2805 (disable_breakpoints_in_unloaded_shlib): Likewise.
2806 (re_enable_breakpoints_in_shlibs): Likewise.
2807 (mention): Say "pending" when breakpoint has
2808 zero locations. If breakpoint has more than one
2810 (add_location_to_breakpoint): New.
2811 (create_breakpoint): Accept symtabs_and_lines, not
2812 symtab_and_line. Pass extra sals to
2813 add_location_to_breakpoint.
2814 (create_breakpoints): Pass symtabs_and_lines to
2816 (break_command_1): Make pending breakpoints
2817 have zero locations.
2818 (do_captured_breakpoint): Remove wrong allocation.
2819 (clear_command): Iterate over all locations.
2820 (unlink_locations_from_global_list): Renamed
2821 from unlink_location_from_global_list. Remove
2823 (delete_breakpoint): Remove all locations.
2824 Iterate over all locations when deciding which
2825 other location to re-enable.
2826 (all_locations_are_pending): New.
2827 (update_breakpoint_locations): Renamed from
2828 update_breakpoint_location. Try to match old
2829 and new locations using names of containing
2831 (breakpoint_re_set_one): Adjust.
2832 (find_location_by_number): New.
2833 (disable_command): Allow disabling individual location.
2834 (enable_command): Allow enabling individual location.
2835 * breakpoint.c: Adjust all uses of breakpoint's
2836 enable state to for bp_shlib_disabled change.
2838 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
2840 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
2841 (resolve_pending_breakpoint): Remove.
2842 (re_enable_breakpoints_in_shlibs): Remove.
2843 (unlink_locations_from_global_list): New.
2844 (update_breakpoint_locations): New.
2845 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
2846 Use parse_condition and update_breakpoint_location to
2847 reset breakpoint. Ignore 'symbol not found' error from
2849 (breakpoint_re_set): Don't emit newline before the
2850 reason why breakpoint is not reset.
2851 (do_enable_breakpoint): Don't specially process pending
2853 (free_bp_location): New.
2854 (break_command_1): For pending breakpoints, initialize
2855 all fields of a sal with zeroes.
2856 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
2857 * infcmd.c (post_create_inferior): Don't call
2858 re_enable_breakpoints_in_shlibs.
2859 * infrun.c (handle_inferior_event): Likewise.
2860 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2861 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2862 * win32-nat.c (get_win32_debug_event): Likewise.
2864 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
2866 * breakpoint.c (create_breakpoint): Split from
2867 create_breakpoints, implementing most of its logic.
2868 Take just a single sal, single address string and
2869 single condition. Do not take parsed condition at
2871 (create_breakpoints): Just call create_breakpoint
2873 (find_condition_and_thread): New.
2874 (break_command_1): Use find_condition_and_thread.
2875 Do not keep parsed conditions.
2876 (do_captured_breakpoint): Don't convert
2877 condition string to struct expression.
2879 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
2881 * breakpoint.h (struct breakpoint): Move the cond
2883 (struct bp_location): Here.
2884 * breakpoint.c (condition_command, bpstat_stop_status)
2885 (print_one_breakpoint, allocate_bp_location)
2886 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
2887 (create_exec_event_catchpoint, create_breakpoints)
2888 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
2889 (create_ada_exception_breakpoint, set_breakpoint_sal)
2890 (delete_breakpoint, breakpoint_re_set_one): Adjust.
2891 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
2893 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
2895 Associate bp_stat with bp_location, not breakpoint.
2896 * breakpoint.h (breakpoint_at): Change type
2898 * breakpoint.c (bpstat_alloc): Take bp_location,
2900 (bpstat_find_breakpoint): Look at bpstat's location's
2901 owner, not at bpstat->breakpoint_at.
2902 (bpstat_find_step_resume_breakpoint): Likewise.
2903 (bpstat_num): Likewise.
2904 (print_it_typical): Likewise.
2905 (print_bp_stop_message): Likewise.
2906 (watchpoint_check): Likewise.
2907 (bpstat_what): Likewise.
2908 (bpstat_get_triggered_catchpoints): Likewise.
2909 (breakpoint_auto_delete): Likewise.
2910 (delete_breakpoint): Likewise.
2911 (bpstat_stop_status): Pass location, not breakpoint,
2912 to bpstat_alloc. Look at bpstat's location's
2913 owner, not at bpstat->breakpoint_at.
2915 2007-09-21 Jim Blandy <jimb@codesourcery.com>
2917 * macrotab.h (new_macro_table): Document that removing information
2918 from an obstack/bcache-managed macro table leaks memory.
2919 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
2920 that data is never freed in obstack/bcache-managed macro tables,
2921 just leak the storage.
2922 (macro_undef): If we're undefining a macro at exactly the same
2923 source location that we defined it, simply remove the definition
2926 2007-09-21 Joel Brobecker <brobecker@adacore.com>
2928 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
2929 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
2930 Adjust the struct sym_fns object accordingly by setting
2931 the new field to NULL.
2932 * xcoffread.c (aix_process_linenos): Make static.
2933 (xcoff_sym_fns): Set new field to aix_process_linenos.
2934 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
2935 by call to new the new sym_fns sym_read_linetable function.
2936 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
2937 * config/rs6000/tm-rs6000.h: Delete.
2939 2007-09-21 David Ung <davidu@mips.com>
2940 Maciej W. Rozycki <macro@mips.com>
2942 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
2943 rules do not treat composite types specially.
2945 2007-09-20 Maciej W. Rozycki <macro@mips.com>
2947 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
2948 (mips16_in_function_epilogue_p): Likewise.
2949 (mips_in_function_epilogue_p): Likewise.
2950 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
2952 2007-09-19 Joel Brobecker <brobecker@adacore.com>
2954 * configure.ac: Add check for "etext".
2955 * configure, config.in: Regenerate.
2956 * maint.c (TEXTEND): Only define if either _etext or etext
2958 Disable the profiling functionality if TEXTEND is not defined.
2960 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
2962 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
2963 address register. Correct the call to frame_id_build.
2964 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
2967 2007-09-18 Joel Brobecker <brobecker@adacore.com>
2969 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
2970 the linetable past the function end.
2972 2007-09-18 James E. Wilson <wilson@specifix.com>
2974 * MAINTAINERS: Update my email address.
2976 2007-09-18 Jerome Guitton <guitton@adacore.com>
2978 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
2979 (inf_ttrace_delete_dying_threads_callback): New function.
2980 (inf_ttrace_resume): After resuming the execution, iterate over
2981 the dying threads to delete them for the thread list.
2982 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
2983 mark the corresponding thread as dying instead of removing it
2984 from the thread list.
2985 (inf_ttrace_thread_alive): return 0 for dying threads.
2987 2007-09-17 Joel Brobecker <brobecker@adacore.com>
2989 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
2990 that return_frame is not null.
2992 2007-09-17 Joel Brobecker <brobecker@adacore.com>
2994 * solib-svr4.c: Add include of "auxv.h".
2995 (enable_break): Use the AT_BASE auxiliary entry if available.
2996 * Makefile.in (solib-svr4.o): Update dependencies.
2998 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3000 * NEWS: Create a new section for the next release branch.
3001 Rename the section of the current branch, now that it has
3004 2007-09-17 Jerome Guitton <guitton@adacore.com>
3006 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
3007 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
3009 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
3011 * mi/mi-cmds.c (mi_cmds): Register -list-features.
3012 * mi/mi-cmds.h (mi_cmd_list_features): New.
3013 * mi/mi-main.c (mi_cmd_list_features): New.
3015 2007-09-11 Joel Brobecker <brobecker@adacore.com>
3017 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
3018 * version.in: Bump version to 6.7.50-20070911-cvs.
3020 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3022 * thread.c (free_thread): Do not delete the step resume breakpoint
3025 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3027 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
3028 * corelow.c (core_read_description): New.
3029 (init_core_ops): Set to_read_description.
3030 * gdbarch.sh: Add gdbarch_core_read_description.
3031 * mips-linux-tdep.c (mips_linux_core_read_description): New.
3032 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
3033 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
3034 (mips_register_g_packet_guesses): Use them.
3035 (_initialize_mips_tdep): Initialize them.
3036 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
3037 * gdbarch.h, gdbarch.c: Regenerated.
3039 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3041 * infrun.c (stepping_past_breakpoint): New global variable.
3042 (stepping_past_breakpoint_ptid): Likewise.
3043 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
3044 Only switch threads if we need to single-step over a breakpoint hit
3045 in the previously selected thread. If stepping, remember previous
3046 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
3047 switch_to_thread instead of copying its contents.
3048 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
3049 prepare_to_proceed returns true.
3050 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
3051 (context_switch): Call switch_to_thread.
3052 (handle_inferior_event): Switch back to previous thread if requested
3053 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
3054 * gdbthread.h (switch_to_thread): Add prototype.
3055 * thread.c (switch_to_thread): Make global.
3057 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
3059 * p-valprint.c: Fix 7 ARI reported problems.
3060 (pascal_val_print): Fix one operator at end of line issue.
3061 Use paddress function to remove use of
3062 deprecated_print_address_numeric function (2 times).
3063 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
3064 (pascal_value_print): Fix 3 operator at end of line issues.
3066 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
3069 * arm-tdep.c (arm_in_call_stub): Delete.
3070 (arm_skip_stub): Handle from_arm and from_thumb stubs.
3072 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
3074 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
3077 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3078 Jim Blandy <jimb@codesourcery.com>
3080 * NEWS: Update description of string changes. Mention print/s.
3081 * c-valprint.c (textual_element_type): New.
3082 (c_val_print): Use it. Do not skip address printing for pointers
3083 with a string format.
3084 (c_value_print): Doc update.
3085 * dwarf2read.c (read_array_type): Use make_vector_type.
3086 * gdbtypes.c (make_vector_type): New.
3087 (init_vector_type): Use it.
3088 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
3089 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
3090 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
3091 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
3092 (make_vector_type): New.
3093 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
3094 Call the language print routine for string format.
3095 (print_scalar_formatted): Call val_print for string format. Handle
3096 unsigned original types for char format.
3097 (validate_format): Do not reject string format.
3098 * stabsread.c (read_type): Use make_vector_type.
3099 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
3101 2007-09-04 Michael Snyder <msnyder@access-company.com>
3103 * expprint.c (print_subexp_standard): Check strchr for null.
3104 * Makefile.in (expprint.o): Depend on gdb_assert.h.
3106 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
3108 * stabsread.c (patch_block_status): Guard against null.
3109 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
3111 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3113 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
3114 in internal error message.
3116 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3117 Daniel Jacobowitz <dan@codesourcery.com>
3119 * infcmd.c (post_create_inferior): Update comment.
3120 (run_command_1): Always call post_create_inferior with 0 as
3123 * i386-cygwin-tdep.h: New.
3124 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
3125 (win32_xfer_shared_library): Make it extern.
3127 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
3129 (win32_so_ops): Delete.
3130 (get_relocated_section_addrs): Delete.
3131 (solib_symbols_add): Delete.
3132 (register_loaded_dll): Delete.
3133 (win32_make_so): New.
3134 (handle_load_dll): Use win32_make_so.
3135 (win32_free_so): Free the passed in so.
3136 (win32_relocate_section_addresses): Delete.
3137 (win32_solib_create_inferior_hook): Delete.
3138 (handle_unload_dll): Don't add PE offset here. Free so with
3139 win32_free_so instead of free_so.
3140 (win32_special_symbol_handling): Delete.
3141 (get_win32_debug_event): Remove unneeded calls. Set state to
3142 TARGET_WAITKIND_LOADED on a dll unload.
3143 (do_initial_win32_stuff): Clear cygwin_load_start and
3145 (map_code_section_args): Delete.
3146 (dll_code_sections_add): Delete.
3147 (core_section_load_dll_symbols): Delete.
3148 (win32_xfer_shared_libraries): New.
3149 (win32_current_sos): Delete.
3150 (win32_xfer_partial): New.
3151 (open_symbol_file_object): Delete.
3152 (in_dynsym_resolve_code): Delete.
3153 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
3154 of win32_ops. Remove win32_so_ops settings. Don't set
3155 current_target_so_ops here.
3157 * Makefile.in (i386_cygwin_tdep_h): New variable.
3158 (i386-cygwin-tdep.o): Update dependencies.
3159 (win32-nat.o): Update dependencies.
3161 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3162 Daniel Jacobowitz <dan@codesourcery.com>
3164 * gdbarch.sh (core_xfer_shared_libraries): New.
3166 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3168 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
3170 * xml-support.c (gdb_xml_parse): Debug output tweaks.
3171 (xml_escape_text): New.
3172 * xml-support.h (xml_escape_text): Declare.
3174 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
3175 * config/i386/cygwin.mt (TDEPFILES): ... here.
3177 * win32-nat.c: (fetch_elf_core_registers): Delete.
3178 (win32_elf_core_fn): Delete.
3179 (_initialize_core_win32): Delete.
3181 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
3182 "xml-support.h" and "gdbcore.h".
3183 (i386_win32_gregset_reg_offset): New.
3184 (I386_WIN32_SIZEOF_GREGSET): New.
3185 (i386_win32_regset_from_core_section): New.
3186 (win32_xfer_shared_library): New.
3187 (struct cpms_data): New.
3188 (core_process_module_section): New.
3189 (win32_core_xfer_shared_libraries): New.
3190 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
3191 gregset_num_regs, sizeof_gregset members of tdep. Register
3192 regset_from_core_section and core_xfer_shared_libraries callbacks.
3194 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
3195 * gdbarch.h, gdbarch.c: Regenerate.
3197 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3199 * corelow.c (core_xfer_partial): Pass writebuf to
3200 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
3202 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
3204 * arm-tdep.h (arm_skip_stub): Declare.
3205 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
3207 (arm_pe_skip_trampoline_code): New function.
3208 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
3209 gdbarch_skip_trampoline_code callback.
3210 * Makefile.in (arm-wince-tdep.o): Update dependencies.
3212 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3214 * MAINTAINERS: Move Fred Fish to Past Maintainers.
3216 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3218 * configure.ac: Add --with-expat.
3219 * configure: Regenerated.
3221 2007-09-03 Andreas Schwab <schwab@suse.de>
3223 * configure.ac: Accept --with-system-readline.
3224 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
3225 * configure: Regenerate.
3226 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
3228 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
3230 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
3231 Daniel Jacobowitz <dan@codesourcery.com>
3233 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
3235 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3237 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
3239 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
3241 * top.c (print_gdb_version): Update for GPL version 3.
3243 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3245 * NEWS: Mention the build-id .debug files verification.
3247 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3249 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
3251 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3253 * Makefile.in (symfile.o): Update dependencies.
3254 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
3255 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
3256 (struct build_id): New structure.
3257 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
3258 (find_separate_debug_file): New variable BUILD_ID.
3259 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
3261 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3263 * varobj.c (struct varobj): Fix comment
3264 for the type member not to lie when it can be
3267 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3269 Implement -var-info-path-expression.
3271 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
3273 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
3274 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
3275 * varobj.c (struct varobj): New field 'path_expr'.
3276 (c_path_expr_of_child, cplus_path_expr_of_child)
3277 (java_path_expr_of_child): New.
3278 (struct language_specific): New field path_expr_of_child.
3279 (varobj_create): Initialize the path_expr field.
3280 (varobj_get_path_expr): New.
3281 (new_variable): Initialize the path_expr field.
3282 (free_variable): Free the path_expr field.
3283 (adjust_value_for_children_access): New parameter
3285 (c_number_of_children): Adjust.
3286 (c_describe_child): New parameter CFULL_EXPRESSION.
3287 Compute full expression.
3288 (c_value_of_child, c_type_of_child): Adjust.
3289 (cplus_number_of_children): Adjust.
3290 (cplus_describe_child): New parameter CFULL_EXPRESSION.
3291 Compute full expression.
3292 (cplus_name_of_child, cplus_value_of_child)
3293 (cplus_type_of_child): Adjust.
3294 * varobj.h (varobj_get_path_expr): Declare.
3296 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3298 * mi/mi-cmd-var.c (print_varobj): If a varobj
3299 type is NULL, don't try to print it.
3301 2007-08-30 Alan Modra <amodra@bigpond.net.au>
3303 * ppc-linux-nat.c (right_fill_reg): Delete.
3304 (supply_gregset): Use ppc_supply_gregset.
3305 (supply_fpregset): Use ppc_supply_fpregset.
3306 (fill_gregset): Use ppc_collect_gregset.
3307 (fill_fpregset): Use ppc_collect_fpregset.
3308 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
3309 (right_supply_register, ppc_linux_supply_gregset): Delete.
3310 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
3311 (ppc_linux_supply_fpregset): Delete.
3312 (ppc_linux_collect_gregset): New function.
3313 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
3314 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
3315 ppc_linux_supply_gregset, and ppc_collect_gregset.
3316 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
3317 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
3318 (ppc_linux_regset_from_core_section): Update.
3319 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
3320 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
3321 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
3322 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
3323 (ppcobsd_collect_gregset): Likewise.
3324 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
3325 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
3326 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
3327 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
3328 (rs6000_aix64_reg_offsets): Likewise.
3329 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
3330 ppc_floating_point_unit_p.
3331 (rs6000_aix_collect_regset): Similarly.
3332 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
3333 when regsize is larger than regcache register size.
3334 (ppc_collect_reg): Similarly zero pad when regsize is larger than
3335 regcache register size.
3336 (ppc_greg_offset): New function, split out from..
3337 (ppc_supply_gregset): ..here. Separate code handling all regs from
3338 single reg case. Correct xer offset.
3339 (ppc_fpreg_offset): New function, split out from..
3340 (ppc_supply_fpregset): ..here. Separate code handling all regs from
3342 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
3343 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
3344 a fp unit, instead return if no fp.
3346 2007-08-29 Jim Blandy <jimb@codesourcery.com>
3348 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
3349 this code has not been compiled for two years.
3351 2007-08-29 Michael Snyder <msnyder@access-company.com>
3353 * event-top.c (gdb_readline2): Return after EOF.
3355 2007-08-29 Joel Brobecker <brobecker@adacore.com>
3357 * symtab.c: Remove a function that has been commented out 3 years ago.
3359 2007-08-29 Randolph Chung <tausq@debian.org>
3361 * hppa-tdep.c (hppa32_cannot_fetch_register)
3362 (hppa64_cannot_fetch_register): New functions.
3363 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
3364 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
3366 2007-08-28 Michael Snyder <msnyder@access-company.com>
3368 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
3369 check for null before calling check_typedef.
3371 * NEWS: Mention Coverity bug fixes.
3373 2007-08-27 Markus Deuling <deuling@de.ibm.com>
3375 * spu-tdep.c (spu_pointer_to_address): New function.
3376 (spu_integer_to_address): Likewise.
3377 (spu_gdbarch_init): Add spu_pointer_to_address and
3378 spu_integer_to_address to gdbarch.
3380 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
3382 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
3384 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3386 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
3387 that contains the GDB license.
3388 * copying.awk: Adjust to the GPLv3 wording.
3389 * copying.c: Regenerate.
3391 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3393 * copying.awk: Protoization, and i18n markup.
3395 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3397 * config/djgpp/djconfig.sh: Switch license to GPLv3.
3398 * copyright.sh: Likewise.
3399 * gdb-events.sh: Likewise.
3400 * gdb_gcore.sh: Likewise.
3401 * gdb_mbuild.sh: Likewise.
3402 * gdbarch.sh: Likewise.
3403 * observer.sh: Likewise.
3404 * features/feature_to_c.sh: Likewise.
3405 * regformats/regdat.sh: Likewise.
3407 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3409 Switch the license of all .c files to GPLv3.
3410 Switch the license of all .h files to GPLv3.
3411 Switch the license of all .cc files to GPLv3.
3413 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3415 * configure.ac: Switch license to GPLv3.
3417 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3419 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
3420 determine the file's FPU type.
3422 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3424 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
3425 (mips_n32n64_push_dummy_call): Always increment float_argreg along
3426 with argreg. Use mips_n32n64_fp_arg_chunk_p.
3428 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3430 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
3432 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
3433 (elf_lookup_lib_symbol): Fix formatting.
3435 2007-08-21 Michael Snyder <msnyder@access-company.com>
3437 * dbxread.c (read_dbx_symtab): Guard null deref.
3440 * valops.c (find_overload_match): Guard against NULL.
3442 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3444 * MAINTAINERS (Patch Champions): Remove self.
3446 2007-08-21 Chris Smith <chris.smith@st.com>
3448 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
3451 2007-08-18 Michael Snyder <msnyder@access-company.com>
3453 * stabsread.c (dbx_lookup_type): Memory leak.
3455 * event-loop.c (delete_async_signal_handler): Move pointer null
3456 test to before pointer dereference.
3458 * ui-out.c (append_header_to_list): Possible cut and paste error.
3460 * MAINTAINERS: white space tweak.
3462 2007-08-17 Michael Snyder <msnyder@access-company.com>
3464 * stack.c (print_frame): Memory leak.
3466 * completer.c (filename_completer): Avoid memory leak.
3467 Remove unnecessary nested block.
3469 * c-exp.y (parse_number): Memory leak.
3471 * completer.c (location_completer): Must free 'fn_list', except
3472 in the one case where it is returned (as 'list').
3474 * varobj.c (value_of_root): Memory leak.
3476 * gdbtypes.h (virtual_base_list): Remove export decl.
3477 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
3478 (virtual_base_index): Memory leak.
3479 (virtual_base_index_skip_primaries): Ditto.
3481 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
3483 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
3484 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
3485 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
3486 (xtensa_read_register): New function.
3487 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
3488 (xtensa_insn_kind): New types.
3489 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
3490 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
3491 (xtensa_verify_config, xtensa_pseudo_register_read)
3492 (xtensa_pseudo_register_write, xtensa_extract_return_value)
3493 (xtensa_store_return_value)
3494 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
3495 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
3496 (xtensa_frame_this_id, xtensa_frame_prev_register)
3497 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
3498 (call0_frame_cache, call0_frame_get_reg_at_entry)
3499 (call0_classify_opcode, call0_track_op)
3500 (call0_analyze_prologue, call0_frame_cache): New functions.
3502 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
3504 * breakpoint.c (bpstat_free): New.
3505 (bpstat_clear): Use bpstat_free.
3506 (delete_breakpoint): Document why we cannot
3507 remove bpstats from stop_bpstat.
3508 * breakpoint.h (bpstat_free): Declare.
3510 2007-08-16 Michael Snyder <msnyder@access-company.com>
3512 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
3514 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
3515 Joel Brobecker <brobecker@adacore.com>
3517 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
3519 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
3520 Joel Brobecker <brobecker@adacore.com>
3522 * ada-lang.c (possible_user_operator_p): Alternative fix to last
3523 checkin guarding against NULL.
3525 2007-08-14 Michael Snyder <msnyder@access-company.com>
3527 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
3528 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
3529 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
3530 go at beginning of new line.
3532 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
3533 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
3534 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
3535 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
3536 tui-winsource.h, tui.c, tui.h: Function declarations and
3537 definitions, wrap long lines.
3539 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
3540 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
3541 Reformat block comments to GNU standard.
3543 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
3544 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
3545 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
3546 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
3547 tui.c, tui.h: Comment reformatting to coding standard (capitals,
3548 spaces after periods, etc).
3550 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
3551 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
3552 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
3553 tui-winsource.h: Whitespace changes, fix pointer declarations
3556 2007-08-14 Joel Brobecker <brobecker@adacore.com>
3557 Michael Snyder <msnyder@access-company.com>
3559 * ada-lang.c (field_alignment): Guard against NULL.
3561 2007-08-14 Joel Brobecker <brobecker@adacore.com>
3563 * MAINTAINERS (Global Maintainers): Add self.
3565 2007-08-14 Michael Snyder <msnyder@access-company.com>
3567 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
3569 * ada-lang.c (possible_user_operator_p): Guard against NULL.
3571 * varobj.c (cplus_describe_child): Guard against null.
3572 Use "NULL" instead of "0" to initialize pointers.
3574 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
3576 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
3577 to match any gdbarch with matching OSABI. Set default ABI and FPU
3578 after running the OSABI handler.
3580 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
3582 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
3583 * config/i386/linux.mt (TDEPFILES): ...to here.
3585 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
3587 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
3588 the 'silent' parameter and code to implement that.
3589 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
3591 * win32-nat.c: Adjust.
3594 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
3596 * breakpoint.c (update_breakpoints_after_exec): Don't
3597 set address to zero.
3599 2007-08-13 Michael Snyder <msnyder@access-company.com>
3601 * valops.c: Whitespace clean-up.
3603 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
3605 * event-top.c (command_line_handler): Memory leak.
3607 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
3608 No need to make copy.
3610 * source.c (find_source_lines): Require symtab 's'.
3612 2007-08-11 Michael Snyder <msnyder@access-company.com>
3614 * completer.c: Spelling fix in comments.
3616 2007-08-10 Michael Snyder <msnyder@access-company.com>
3618 * gdbtypes.c: Coding standard cleanup.
3619 * gdbtypes.c: Comment/whitespace cleanup.
3621 * stabsread.c (read_huge_number): Attempt to compute value before
3622 values that it depends on.
3624 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
3625 (decode_objc): Use "NULL" instead of 0.
3626 (find_method): Ditto.
3627 (decode_all_digits): Ditto.
3628 (decode_dollar): Ditto.
3630 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
3632 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
3634 * solib-svr4.c (enable_break): Don't free tmp_pathname until
3637 * completer.c: Comment/whitespace cleanup.
3639 2007-08-10 Joel Brobecker <brobecker@adacore.com>
3641 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
3643 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
3645 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
3646 allocated file descriptors.
3648 2007-08-10 Joel Brobecker <brobecker@adacore.com>
3650 * Makefile.in: Minor cleanup throughout; add some missing variables,
3651 add some missing rules, remove some rules that are no longer needed,
3652 and fix the dependencies in several rules.
3654 2007-08-10 Ludovic Courtès <ludo@gnu.org>
3656 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
3657 (scm_lang_h, scm_tags_h): New.
3658 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
3659 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
3660 * defs.h (enum language): Add `language_scm'.
3662 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
3665 2007-08-09 Ludovic Courtès <ludo@gnu.org>
3667 * MAINTAINERS (Write After Approval): Add myself.
3669 2007-08-09 Michael Snyder <msnyder@access-company.com>
3671 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
3673 2007-08-09 Joel Brobecker <brobecker@adacore.com>
3675 * solib-som.c (som_relocate_section_addresses): Stop saving
3676 the $CODE$ section in the so_list structure.
3678 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
3680 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
3681 (xtensa_register_group_t): Add entries for coprocessors.
3682 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
3683 (xtensa_add_reggroups): Likewise.
3684 (xtensa_register_reggroup_p): Likewise.
3685 (xtensa_coprocessor_register_group): New function.
3688 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3690 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
3692 2007-08-08 Michael Snyder <msnyder@access-company.com>
3694 * target.c (target_read_string): Guard against null.
3696 * varobj.c (value_of_root): Move alloc after return to avoid leak.
3698 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
3699 (tui_set_layout_for_display_command): Mem leak.
3701 * top.c (command_line_input): Memory leak.
3703 * solib-svr4.c (open_symbol_file_object): Memory leak.
3704 (svr4_current_sos): Ditto.
3705 (enable_break): Ditto.
3707 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
3709 * dwarf2read.c (add_partial_symbol): Memory leak.
3711 2007-08-06 Michael Snyder <msnyder@access-company.com>
3713 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
3715 2007-08-05 Jim Blandy <jimb@codesourcery.com>
3717 * macroexp.c (init_buffer): Remove testing code that overrides the
3718 caller's length guess.
3719 (gather_arguments): Use a larger initial size, now that the vector
3720 growth code has been exercised.
3722 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
3724 * solib-target.c (solib_target_relocate_section_addresses): Add
3725 orig_delta to addr_high.
3727 2007-08-04 Michael Snyder <msnyder@access-company.com>
3729 * remote-fileio.c (remote_fileio_func_write): Memory leak.
3731 * breakpoint.c (print_one_breakpoint): Off by one error.
3733 * tracepoint.c (add_register): Off by one error.
3734 (stringify_collection_list): Free malloc buffer.
3736 2007-08-03 Michael Snyder <msnyder@access-company.com>
3738 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
3739 stop memory leak, straighten out cleanups.
3741 * jv-lang.c (java_link_class_type): Guard against NULL.
3743 2007-08-02 Michael Snyder <msnyder@access-company.com>
3745 * gdbtypes.c (create_set_type): Test should only be done within
3746 the preceeding if block. Otherwise, variable is uninitialized.
3748 * gdbtypes.c (check_typedef): Guard NULL.
3750 2007-08-01 Michael Snyder <msnyder@access-company.com>
3752 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
3753 avoid dereference in lookup_cmd_1.
3755 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
3756 clean up long lines.
3757 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
3758 (tui_alloc_win_info): Ditto.
3759 (tui_add_content_elements): Ditto.
3760 * tui/tui-file.c (tui_file_magic): Ditto.
3762 2007-07-31 Michael Snyder <msnyder@access-company.com>
3764 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
3765 True and false paths are mutually exclusive.
3767 * event-top.c (command_line_handler): Add pedantic return.
3769 * f-valprint.c (info_common_command): Bail out to prevent null
3770 pointer deref. Break up a long line.
3772 * exec.c (xfer_memory): Remove redundant condition from 'if'.
3774 * symfile.c (reread_separate_symbols): Free xmalloced memory.
3776 * printcmd.c (build_address_symbolic): Remove dead code and dead
3779 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
3781 * linespec.c (minsym_found): Advance to the next line if possible.
3783 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
3785 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
3786 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
3787 solib-svr4.o, and add solib-target.o
3789 2007-07-27 Michael Snyder <msnyder@access-company.com>
3791 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
3793 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
3795 * MAINTAINERS (Write After Approval): Add myself.
3797 2007-07-26 Maciej W. Rozycki <macro@mips.com>
3799 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
3802 2007-07-25 Maciej W. Rozycki <macro@mips.com>
3804 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
3806 2007-07-24 Michael Snyder <msnyder@access-company.com>
3808 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
3809 'buffer' must cover both branches that call strcmp (Coverity).
3811 * stack.c (print_frame_args): Check return value of lookup_symbol.
3813 * ax-gdb.c (find_field): Guard against null ptr.
3815 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
3817 * regformats/reg-spu.dat: Fix order of npc, id registers.
3819 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
3821 * target.c (memory_xfer_partial): Accesses to unmapped overlay
3822 sections should always go to the executable file.
3824 2004-07-20 Chris Dearman <chris@mips.com>
3826 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
3827 prologue instructions.
3829 2007-07-20 Maciej W. Rozycki <macro@mips.com>
3831 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
3834 2007-07-20 Chris Dearman <chris@mips.com>
3835 Maciej W. Rozycki <macro@mips.com>
3837 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
3840 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
3841 Daniel Jacobowitz <dan@codesourcery.com>
3843 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
3844 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
3846 * NEWS: Mention gdbserver DLL support.
3848 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
3850 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
3852 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
3854 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
3857 2007-07-13 Kevin Buettner <kevinb@redhat.com>
3859 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
3862 2007-07-12 Kevin Buettner <kevinb@redhat.com>
3864 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
3865 (mep_analyze_prologue): Add case for BRA instruction.
3867 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
3869 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
3871 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
3873 * breakpoint.c: Include "top.h".
3874 (breakpoint_1): Don't set convenience variable $_ if server prefix
3876 (_initialize_breakpoint): Describe this behaviour in command help.
3878 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
3880 * solib-target.c (library_list_start_segment): Cast address to
3883 2007-07-06 Mark Kettenis <kettenis@gnu.org>
3885 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
3886 for terminated processes.
3888 2007-07-05 Michael Snyder <msnyder@access-company.com>
3890 * event-top.c (cli_command_loop): Prompt string can (and should)
3891 be freed after call to readline (Coverity). Also move local var
3892 declarations into block where they are used.
3894 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
3895 should) be freed after call to readline (Coverity). Also move
3896 local var declarations into block where they are used.
3898 2007-07-03 Andreas Schwab <schwab@suse.de>
3900 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
3903 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
3904 Thiago Bauermann <bauerman@br.ibm.com>
3905 Joseph S. Myers <joseph@codesourcery.com>
3906 Daniel Jacobowitz <dan@codesourcery.com>
3908 * remote.c (remote_check_symbols): Use
3909 gdbarch_convert_from_func_ptr_addr.
3910 * infcall.c (find_function_addr): Handle function descriptors
3911 without debugging information.
3912 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
3913 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
3914 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
3915 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
3916 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
3917 allow SEC_CODE and SEC_DATA.
3918 (enable_break): Update calls. Pass current_target to solib_add.
3919 Use gdbarch_convert_from_func_ptr_addr.
3921 2007-07-03 Ilko Iliev <iliev@ronetix.at>
3922 Daniel Jacobowitz <dan@codesourcery.com>
3924 * symfile.c (print_transfer_performance): Avoid integer overflow.
3927 2007-07-03 Markus Deuling <deuling@de.ibm.com>
3929 * cp-namespace.c (lookup_symbol_file): Add block to
3930 lookup_symbol_global call.
3931 * Makefile.in (solist_h): Add dependency on symtab header.
3932 (symtab.o): Add dependency on solist header.
3933 * solib.c (solib_global_lookup): New function.
3934 * solib-svr4.c (scan_dyntag): Likewise.
3935 (elf_locate_base): Call helper routine scan_dyntag.
3936 (elf_lookup_lib_symbol): New function.
3937 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
3938 * solist.h (symtab.h): New include.
3939 (struct target_so_ops): New member lookup_lib_global_symbol.
3940 (solib_global_lookup): New prototype.
3941 * symtab.c: New include solist.h.
3942 (lookup_objfile_from_block): New function.
3943 (lookup_global_symbol_from_objfile): New function.
3944 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
3945 (lookup_symbol_global): Call library-specific lookup procedure.
3946 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
3948 * NEWS: Document framework.
3950 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
3952 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
3955 * cli/cli-script.c (build_command_line): Update NULL check.
3957 2007-07-02 Michael Snyder <msnyder@access-company.com>
3959 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
3961 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
3963 * Makefile.in (XMLFILES): Add library-list.dtd.
3964 (ALLDEPFILES): Add solib-target.o.
3965 (solib-target.o): New rule.
3966 * remote.c (PACKET_qXfer_libraries): New constant.
3967 (remote_protocol_features): Add qXfer:libraries:read.
3968 (remote_wait): Recognize library stop replies.
3969 (remote_async_wait): Likewise. Fix typo.
3970 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3971 (init_remote_async_ops): Fix typo.
3972 (_initialize_remote): Register "set remote library-info-packet".
3973 * solib-som.c (som_current_sos): Set addr_low and addr_high.
3974 * solib-target.c: New file.
3975 * solib.c (solib_map_sections): Use addr_low and addr_high instead
3977 (info_sharedlibrary_command): Likewise.
3978 (solib_add_library, solib_remove_library): New.
3979 * solist.h (struct so_list): Replace textsection with addr_low and
3981 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
3982 * NEWS: Describe new qXfer:libraries:read and shared library
3984 * features/library-list.dtd: New.
3986 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
3988 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
3989 (start_remote): Use STOP_QUIETLY_REMOTE.
3990 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
3991 support on a SOLIB_ADD definition. Update breakpoints_inserted.
3992 Update to match shared library event breakpoint support. Only
3993 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
3994 (normal_stop): Handle TARGET_WAITKIND_LOADED.
3995 * fork-child.c (startup_inferior): Do not set
3996 inferior_ignoring_startup_exec_events
3997 * inferior.h (inferior_ignoring_startup_exec_events): Delete
3999 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
4001 2007-07-02 Markus Deuling <deuling@de.ibm.com>
4003 * breakpoint.c (insert_bp_location): Remove dead code
4004 (DISABLE_UNSETTABLE_BREAK).
4005 (disable_breakpoints_in_shlibs)
4006 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
4008 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4010 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
4011 Call insert_bp_location.
4013 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
4015 * core-regset.c (fetch_core_registers): Work around gcc 3.4
4018 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4020 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
4023 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4025 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
4026 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
4027 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
4028 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
4029 to display_gdb_prompt.
4031 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4034 * target.c (memory_xfer_partial): Do not continue past targets with
4037 2007-06-30 Andreas Schwab <schwab@suse.de>
4039 * m68k-tdep.c (m68k_ps_type): New.
4040 (m68k_init_types): New.
4041 (m68k_register_type): Use m68k_ps_type for PS register.
4042 (_initialize_m68k_tdep): Call m68k_init_types.
4044 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
4045 from the generic m68k arch.
4047 2007-06-28 Michael Snyder <msnyder@access-company.com>
4049 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
4052 * linux-thread-db.c (thread_db_get_thread_local_address): Add
4053 gdb_assert before using return value of find_thread_pid (Coverity).
4055 * source.c (unset_substitute_path_command): Plug leak (Coverity).
4057 * cli/cli-script.c (build_command_line): Add null pointer guard
4060 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
4062 * linux-thread-db.c (thread_db_attach): Delete.
4063 (thread_db_detach): Typo fix. Call target_mourn_inferior
4064 instead of fixing up proc_handle.
4065 (have_threads_callback, have_threads): New functions.
4066 (thread_db_wait): Remove dead proc_handle.pid check. Only
4067 translate PTIDs if we have registered threads. Check for new
4068 threads if we have none.
4069 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
4070 (find_new_threads_callback): Only enable event reporting if TID == 0.
4071 (same_ptid_callback): New.
4072 (thread_db_get_thread_local_address): Check for new threads.
4073 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
4074 or to_post_startup_inferior.
4076 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4078 * infrun.c (adjust_pc_after_break): Do not assume software single-step
4079 is always active if SOFTWARE_SINGLE_STEP_P is true.
4080 (resume): Use gdbarch_software_single_step[_p] instead of
4081 SOFTWARE_SINGLE_STEP[_P].
4082 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
4084 * gdbarch.sh (software_single_step): Remove target macro.
4085 * gdbarch.h, gdbarch.c: Regenerate.
4087 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4089 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
4090 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
4091 (struct gdbarch_swap, struct gdbarch_swap_registration,
4092 struct gdbarch_swap_registry, gdbarch_swap_registry,
4093 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
4094 current_gdbarch_swap_in_hack): Remove.
4095 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
4096 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
4097 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
4098 (deprecated_current_gdbarch_select_hack): Likewise.
4099 * gdbarch.h, gdbarch.c: Regenerate.
4101 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4103 * infrun.c (clear_proceed_status): Clean up stop_registers.
4104 (normal_stop): Allocate regcache for stop_registers.
4105 (struct inferior_status): Remove stop_registers member.
4106 (save_inferior_status): Do not save stop_registers.
4107 (restore_inferior_status): Do not restore stop_registers.
4108 (discard_inferior_status): Do not discard stop_registers.
4109 (build_infrun): Remove.
4110 (_initialize_infrun): Do not swap stop_registers.
4112 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4114 * remote.c (remote_address_masked): If remote_address_size is zero,
4115 default to target address size.
4116 (build_remote_gdbarch_data): Remove.
4117 (_initialize_remote): Do not swap remote_address_size.
4119 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4121 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
4122 builtin_type_char, builtin_type_short, builtin_type_int,
4123 builtin_type_long, builtin_type_signed_char,
4124 builtin_type_unsigned_char, builtin_type_unsigned_short,
4125 builtin_type_unsigned_int, builtin_type_unsigned_long,
4126 builtin_type_float, builtin_type_double, builtin_type_long_double,
4127 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4128 builtin_type_bool, builtin_type_long_long,
4129 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4130 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
4131 variable declaration with compatibility macro.
4132 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
4133 builtin_type_char, builtin_type_short, builtin_type_int,
4134 builtin_type_long, builtin_type_signed_char,
4135 builtin_type_unsigned_char, builtin_type_unsigned_short,
4136 builtin_type_unsigned_int, builtin_type_unsigned_long,
4137 builtin_type_float, builtin_type_double, builtin_type_long_double,
4138 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4139 builtin_type_bool, builtin_type_long_long,
4140 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4141 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
4142 (build_gdbtypes): Remove.
4143 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
4144 opaque-type-resolution command here. Do not call
4145 deprecated_register_gdbarch_swap.
4147 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4149 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
4150 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
4151 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
4153 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
4154 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
4155 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
4156 (build_parse): Remove.
4157 (_initialize_parse): Do not call build_parse. Do not register
4158 msym_ types for gdbarch-swapping.
4160 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
4161 instead of creating private type.
4163 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
4164 (_initialize_xcoffread): Do not initialized them.
4165 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
4167 * mdebugread.c (nodebug_func_symbol_type): Remove.
4168 (nodebug_var_symbol_type): Remove.
4169 (_initialize_mdebugread): Do not initialize them.
4170 (parse_symbol): Use builtin nodebug_ type instead of them.
4171 (parse_procedure): Likewise.
4173 2007-06-21 Chris Dearman <chris@mips.com>
4175 * printcmd.c (do_one_display): If display/i, start with an initial
4176 line feed to avoid bad layout if there is a branch delay slot.
4178 2007-06-21 Nigel Stephens <nigel@mips.com>
4179 Maciej W. Rozycki <macro@mips.com>
4181 * disasm.c (gdb_print_insn): Return the number of branch delay
4182 slot instructions too.
4183 * disasm.h (gdb_print_insn): Update prototype.
4184 * printcmd.c (branch_delay_insns): New variable to record the
4185 number of delay slot instructions after disassembling a branch.
4186 (print_formatted): Record the number of branch delay slot
4188 (do_examine): When disassembling, if the last instruction
4189 disassembled has any branch delay slots, then bump the count so
4190 that they get disassembled too.
4191 * tui/tui-disasm.c (tui_disassemble): Update the call to
4193 * NEWS: Document the new behaviour.
4195 2007-06-21 Andreas Schwab <schwab@suse.de>
4197 * regcache.c (write_pc_pid): Restore missing else.
4199 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
4201 * regcache.c (regcache_print): Use get_current_regcache ()
4202 instead of current_regcache.
4204 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
4207 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
4208 instead of bfd_make_section_anyway.
4209 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
4210 when clearing SEC_LOAD.
4212 2007-06-19 Joseph Myers <joseph@codesourcery.com>
4214 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
4215 registers for big-endian.
4217 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4219 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
4220 * disasm.c (dump_insns, gdb_print_insn): Likewise.
4221 * gdbarch.c, gdbarch.h: Regenerate.
4223 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4225 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
4226 gdbarch_believe_pcc_promotion.
4227 * stabsread.c (define_symbol): Likewise.
4228 Remove unnecessary definition.
4229 * coffread.c (process_coff_symbol): Remove unnecessary code.
4230 * gdbarch.c, gdbarch.h: Regenerate.
4232 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
4234 * configure.ac: Do not use ${objdir}.
4235 * configure: Regenerated.
4237 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
4239 * gdbarch.sh (deprecated_register_size): Remove.
4240 * gdbarch.h, gdbarch.c: Regenerate.
4242 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
4243 by INT_REGISTER_SIZE.
4244 (thumb_get_next_pc, arm_return_in_memory): Likewise.
4245 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
4246 * ia64-tdep.c (ia64_gdbarch_init): Do not call
4247 set_gdbarch_deprecated_register_size.
4249 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4251 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
4252 gdbarch_deprecated_fp_regnum.
4253 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
4254 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
4255 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4256 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
4258 * gdbarch.c, gdbarch.h: Regenerate.
4260 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4262 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
4263 gdbarch_extract_return_value.
4264 * value.c (generic_use_struct_convention): Likewise (comment).
4265 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
4266 * arch-utils.c (legacy_return_value): Likewise.
4267 * arch-utils.h (legacy_return_value): Likewise (comment).
4268 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
4269 gdbarch_store_return_value.
4270 * stack.c (return_command): Likewise (comment).
4271 * arch-utils.h (legacy_return_value): Likewise (comment).
4272 * arch-utils.c (legacy_return_value): Likewise.
4273 * gdbarch.c, gdbarch.h: Regenerate.
4275 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4277 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
4278 gdbarch_deprecated_use_struct_convention.
4279 * arch-utils.c (legacy_return_value): Likewise.
4280 * gdbarch.c, gdbarch.h: Regenerate.
4282 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4284 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
4285 gdbarch_deprecated_function_start_offset.
4286 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
4287 * linespec.c (minsym_found): Likewise.
4288 * infrun.c (handle_inferior_event): Likewise.
4289 * infcall.c (find_function_addr): Likewise.
4290 * cli/cli-cmds.c (disassemble_command): Likewise.
4291 * gdbarch.c, gdbarch.h: Regenerate.
4293 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4295 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
4296 gdbarch_deprecated_reg_struct_has_addr.
4297 * infcall.c (call_function_by_hand): Likewise.
4298 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
4299 * gdbarch_deprecated_reg_struct_has_addr_p.
4300 * infcall.c (call_function_by_hand): Likewise.
4301 * gdbarch.c, gdbarch.h: Regenerate.
4303 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4305 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4306 * sh-tdep.c (sh_extract_struct_value_address): Remove.
4307 (sh_gdbarch_init): Remove
4308 set_gdbarch_deprecated_extract_struct_value_address.
4309 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
4310 (sh64_gdbarch_init): Remove
4311 set_gdbarch_deprecated_extract_struct_value_address.
4312 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
4313 (ia64_gdbarch_init): Remove
4314 set_gdbarch_deprecated_extract_struct_value_address.
4315 * frv-tdep.c (frv_extract_struct_value_address): Remove.
4316 (frv_gdbarch_init): Remove
4317 set_gdbarch_deprecated_extract_struct_value_address.
4318 * gdbarch.c, gdbarch.h: Regenerate.
4320 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4322 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
4323 * v850-tdep.c (v850_unwind_sp): Likewise.
4324 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
4325 * stack.c (frame_info): Likewise.
4326 * stabsread.c (define_symbol): Likewise.
4327 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
4328 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
4329 (sh_unwind_sp): Likewise.
4330 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
4331 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
4332 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
4333 (rs6000_frame_cache): Likewise.
4334 * rs6000-nat.c (store_register): Likewise.
4335 * remote-mips.c (mips_wait): Likewise.
4336 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4337 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4338 (ppc64_sysv_abi_push_dummy_call): Likewise.
4339 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4340 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4341 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4342 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4343 * m32r-rom.c (m32r_supply_register): Likewise.
4344 * frame.c (frame_sp_unwind): Likewise.
4345 * mips-tdep.c (mips_insn16_frame_cache)
4346 (mips_insn32_frame_cache): Likewise (comment).
4347 * m68klinux-nat.c (supply_gregset): Likewise.
4348 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
4349 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
4350 * i386-tdep.c (i386_get_longjmp_target): Likewise.
4351 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4352 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
4353 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
4354 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
4355 (cris_register_type, crisv32_register_type)
4356 (cris_dwarf2_frame_init_reg): Likewise.
4357 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4358 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
4359 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
4360 * libunwind-frame.c (libunwind_frame_cache): Likewise.
4362 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
4363 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
4364 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
4365 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
4366 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
4367 * v850-tdep.c (v850_unwind_pc): Likewise.
4368 * stack.c (frame_info): Likewise.
4369 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
4370 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
4371 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
4372 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
4373 (sh_dsp_show_regs): Likewise.
4374 * shnbsd-tdep.c (shnbsd_supply_gregset)
4375 (shnbsd_collect_gregset): Likewise.
4376 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
4377 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
4378 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
4379 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4380 (6000_register_reggroup_p, rs6000_unwind_pc)
4381 (rs6000_frame_cache): Likewise.
4382 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
4383 (rs6000_store_inferior_registers): Likewise.
4384 * remote-mips.c (mips_wait, mips_load): Likewise.
4385 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4386 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4387 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4388 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4389 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
4390 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4391 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
4392 (store_ppc_registers, fill_gregset): Likewise.
4393 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
4394 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
4395 * mipsnbsd-nat.c (getregs_supplies): Likewise.
4396 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
4397 * m68klinux-nat.c (supply_gregset): Likewise.
4398 * irix5-nat.c (fill_gregset): Likewise.
4399 * i386-tdep.c (i386_unwind_pc): Likewise.
4400 * i386-linux-nat.c (i386_linux_resume): Likewise.
4401 * frame.c (get_prev_frame_1): Likewise.
4402 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4403 * dbug-rom.c (dbug_supply_register): Likewise.
4404 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
4405 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
4406 (cris_register_type, crisv32_register_type, crisv32_register_name)
4407 (cris_dwarf2_frame_init_reg, find_step_target)
4408 (cris_software_single_step, cris_supply_gregset)
4409 (cris_regnums): Likewise.
4410 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4411 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4412 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
4413 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
4414 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
4416 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
4417 * dbug-rom.c (dbug_supply_register): Likewise.
4418 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
4419 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
4420 * win32-nat.c (win32_resume): Likewise.
4421 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
4422 * m68k-tdep.c (m68k_register_type): Likewise.
4423 * m68klinux-nat.c (supply_gregset): Likewise.
4425 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
4426 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
4427 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
4428 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
4429 (fv_reg_base_num, dr_reg_base_num): Likewise.
4430 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
4431 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
4432 (sh64_extract_return_value, sh64_store_return_value)
4433 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
4434 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
4435 * procfs.c (procfs_fetch_registers, procfs_store_registers)
4436 (invalidate_cache): Likewise.
4437 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4438 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
4439 (mipsnbsd_fill_fpreg): Likewise.
4440 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
4441 (mipsnbsd_store_inferior_registers): Likewise.
4442 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
4443 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
4444 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
4445 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
4446 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
4447 (fill_fpregset): Likewise.
4448 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
4449 * i386-tdep.h (struct_return): Likewise (comment).
4450 * i386-nto-tdep.c (i386nto_register_area): Likewise.
4451 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
4452 (go32_store_registers): Likewise.
4453 * alpha-tdep.c (alpha_next_pc): Likewise.
4454 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4455 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
4456 (alphabsd_store_inferior_registers): Likewise.
4457 * core-regset.c (fetch_core_registers): Likewise.
4458 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
4460 * gdbarch.c, gdbarch.h: Regenerate.
4462 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
4464 * coffread.c (coff_sym_fns): Add default_symfile_segments.
4465 * dbxread.c (start_psymtab): Check HAVE_ELF.
4466 (aout_sym_fns): Likewise.
4467 * elfread.c (elf_symfile_segments): New.
4468 (elf_sym_fns): Add elf_symfile_segments.
4469 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
4470 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
4471 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
4472 * somread.c (som_sym_fns): Use default_symfile_segments.
4473 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
4474 (init_objfile_sect_indices): Call symfile_find_segment_sections.
4475 (default_symfile_segments): New function.
4476 (syms_from_objfile): Update call to find_sym_fns.
4477 (symfile_get_segment_data, free_symfile_segment_data): New.
4478 (symfile_map_offsets_to_segments): New.
4479 (symfile_find_segment_sections): New.
4480 * symfile.h (struct symfile_segment_data): New.
4481 (struct sym_fns): Add sym_segments.
4482 (default_symfile_segments, symfile_get_segment_data)
4483 (free_symfile_segment_data): New prototypes.
4484 (symfile_map_offsets_to_segments): Likewise.
4485 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
4486 * Makefile.in (COMMON_OBS): Remove elfread.o.
4487 (elf_internal_h): New.
4488 (elfread.o): Update.
4489 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
4491 * config.in, configure: Regenerated.
4492 * NEWS: Mention qOffsets changes.
4494 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4496 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
4497 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
4498 Replace global variable declaration with compatibility macro.
4499 (struct builtin_m2_type): New data type.
4500 (builtin_m2_type): Add prototype.
4501 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
4502 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
4503 Remove global variables.
4504 (m2_language_arch_info): Use builtin_m2_type instead of variables.
4505 (build_m2_types): New function.
4506 (m2_type_data): New variable.
4507 (builtin_m2_type): New function.
4508 (_initialize_m2_language): Do not build data types. Register
4509 m2_type_data per-gdbarch data.
4511 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4513 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
4514 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
4515 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
4516 builtin_type_f_real_s8, builtin_type_f_real_s16,
4517 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
4518 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
4519 variable declaration with compatibility macro.
4520 (struct builtin_f_type): New data type.
4521 (builtin_f_type): Add prototype.
4522 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
4523 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
4524 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
4525 builtin_type_f_real_s8, builtin_type_f_real_s16,
4526 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
4527 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
4528 (f_language_arch_info): Use builtin_f_type instead of variables.
4529 (build_fortran_types): Build builtin_f_type structure instead of
4530 setting global type variables.
4531 (f_type_data): New variable.
4532 (builtin_f_type): New function.
4533 (_initialize_f_language): Do not call build_fortran_types. Do not
4534 swap global type variables. Register f_type_data per-gdbarch data.
4536 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4538 * f-lang.c (_initialize_f_language): Do not initialize or
4539 swap builtin_type_string.
4541 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4543 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
4544 value_of_builtin_frame_reg): Remove.
4545 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
4546 inactive call to value_of_builtin_frame_reg.
4548 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4550 * gdbarch.sh (bfd_vma_bit): Remove.
4551 * gdbarch.c, gdbarch.h: Regenerate.
4553 * gdbtypes.h (builtin_bfd_vma_type): Remove.
4554 * gdbtypes.h (builtin_bfd_vma_type): Remove.
4555 (build_gdbtypes): Do not initialize it.
4556 (_initialize_gdbtypes): Do not swap it.
4558 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4560 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
4561 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
4562 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
4563 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
4564 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
4565 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
4566 builtin_type_vec64, builtin_type_vec128): Remove.
4567 (init_simd_type): Remove.
4568 (init_vector_type): Make global.
4569 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
4570 (build_gdbtypes): Do not build vector types.
4571 (_initialize_gdbtypes): Do not swap vector types.
4572 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
4573 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
4574 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
4575 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
4576 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
4577 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
4578 builtin_type_vec64, builtin_type_vec128): Remove declarations.
4579 (init_vector_type): Add prototype.
4581 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
4582 i386_sse_type members.
4583 (i386_mmx_type, i386_sse_type): Change from variables to functions.
4584 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
4585 (i386_init_types): Do not build vector types.
4586 (i386_mmx_type, i386_sse_type): New functions.
4587 (i386_register_type): Call them instead of using global variables.
4588 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
4589 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
4590 of using global variable.
4592 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
4593 and ppc_builtin_type_vec128 members.
4594 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
4595 (rs6000_builtin_type_vec128): Likewise.
4596 (rs6000_register_type): Call them instead of using builtin_type_vec64
4597 and builtin_type_vec128.
4598 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
4600 * spu-tdep.c (struct gdbarch_tdep): New data type.
4601 (spu_builtin_type_vec128): Remove variable.
4602 (spu_builtin_type_vec128): New function.
4603 (spu_register_type): Call it instead of using global variable.
4604 (spu_gdbarch_init): Allocate tdep structure.
4605 (spu_init_vector_type): Remove function.
4606 (_initialize_spu_tdep): Do not call it.
4608 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4610 * amd64-tdep.c (struct amd64_register_info): Remove.
4611 (amd64_register_info): Remove.
4612 (amd64_register_names): New static variable.
4613 (AMD64_NUM_REGS): Use amd64_register_names instead of
4614 amd64_register_info.
4615 (amd64_register_name): Likewise.
4616 (amd64_register_type): Do not refer to amd64_register_info.
4618 * s390-tdep.c (struct s390_register_info): Remove.
4619 (s390_register_info): Remove.
4620 (s390_register_name): Do not refer to s390_register_info.
4621 (s390_register_type): Likewise.
4623 * sparc64-tdep.c (struct sparc64_register_info): Remove.
4624 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
4625 (sparc64_register_names, sparc64_pseudo_register_names): New.
4626 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
4627 sparc64_register_names and sparc64_pseudo_register_names instead of
4628 sparc64_register_info and sparc64_pseudo_register_info.
4629 (sparc64_register_name): Likewise.
4630 (sparc64_register_type): Do not refer to sparc64_register_info
4631 and sparc64_pseudo_register_info.
4633 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4635 * c-lang.c (cplus_builtin_types): Remove.
4636 (enum cplus_primitive_types): New data type.
4637 (cplus_language_arch_info): New function.
4638 (cplus_language_defn): Set la_language_arch_info member. Do not set
4639 la_builtin_type_vector and string_char_type members.
4641 * f-lang.c (f_builtin_types): Remove.
4642 (enum f_primitive_types): New data type.
4643 (f_language_arch_info): New function.
4644 (f_language_de): Set la_language_arch_info member. Do not set
4645 la_builtin_type_vector and string_char_type members.
4647 * m2-lang.c (m2_builtin_types): Remove.
4648 (enum m2_primitive_types): New data type.
4649 (m2_language_arch_info): New function.
4650 (m2_language_defn): Set la_language_arch_info member. Do not set
4651 la_builtin_type_vector and string_char_type members.
4653 * objc-lang.c (objc_builtin_types): Remove.
4654 (objc_language): Set la_language_arch_info member. Do not set
4655 la_builtin_type_vector and string_char_type members.
4657 * p-lang.c (pascal_builtin_types): Remove.
4658 (enum pascal_primitive_types): New data type.
4659 (pascal_language_arch_info): New function.
4660 (pascal_language_defn): Set la_language_arch_info member. Do not set
4661 la_builtin_type_vector and string_char_type members.
4663 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4665 * regcache.c (struct regcache): Add ptid_t member.
4666 (regcache_xmalloc): Initialize it.
4667 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
4668 (regcache_dup): Likewise.
4669 (regcache_dup_no_passthrough): Likewise.
4670 (current_regcache): Make static.
4671 (registers_ptid): Remove variable.
4672 (get_thread_regcache): New function.
4673 (get_current_regcache): New function.
4674 (registers_changed): Implement by freeing current regcache.
4675 (regcache_raw_read): Do not refer to current_regcache. Set
4676 inferior_ptid to regcache->ptid while calling target routines.
4677 (regcache_raw_write): Likewise.
4678 (regcache_raw_supply): Do not refer to current_regcache.
4679 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
4680 (write_pc_pid): Likewise.
4681 (build_regcache): Remove.
4682 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
4683 or deprecated_register_gdbarch_swap. Do not initialize
4685 * regcache.h (get_current_regcache): Add prototype.
4686 (get_thread_regcache): Likewise.
4687 (current_regcache): Remove declaration.
4689 * corelow.c (core_open): Replace current_regcache by
4690 get_current_regcache ().
4691 * frame.c (frame_pop): Likewise.
4692 (put_frame_register): Likewise.
4693 (get_current_frame, create_new_frame): Likewise.
4694 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
4695 * stack.c (return_command): Likewise.
4696 * infcall.c (call_function_by_hand): Likewise.
4697 * infrun.c (resume): Likewise.
4698 (save_inferior_status, restore_inferior_status): Likewise.
4699 * linux-fork.c (fork_load_infrun_state): Likewise.
4700 (fork_save_infrun_state): Likewise.
4701 * win32-nat.c (win32_resume): Likewise.
4702 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
4703 * monitor.c (monitor_wait): Likewise.
4704 * remote.c (remote_wait): Likewise.
4705 * remote-mips.c (mips_wait): Likewise.
4707 * bsd-kvm.c (bsd_kvm_open): Likewise
4708 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
4709 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
4710 * i386-linux-nat.c (i386_linux_resume): Likewise.
4711 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
4712 (ia64_linux_stopped_data_address): Likewise.
4714 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
4715 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
4716 * mep-tdep.c (current_me_module, current_options): Likewise.
4717 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
4719 * linux-nat.c (linux_nat_do_thread_registers): Use thread
4720 regcache instead of current_regcache. Call target_fetch_registers.
4721 (linux_nat_corefile_thread_callback): Update call site.
4722 (linux_nat_do_registers): Likewise.
4723 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
4724 of current_regcache.
4725 (procfs_make_note_section): Likewise.
4726 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
4727 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
4728 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
4729 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
4731 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4733 * regcache.c (read_register, read_register_pid): Remove.
4734 (write_register, write_register_pid): Likewise.
4735 * regcache.h (read_register, read_register_pid): Remove prototype.
4736 (write_register, write_register_pid): Likewise.
4738 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4740 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
4741 (write_pc): Likewise. Remove default implementation, add predicate.
4742 * gdbarch.c, gdbarch.h: Regenerate.
4743 * regcache.c (read_pc_pid): Use current regcache instead of calling
4745 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
4747 (generic_target_write_pc): Remove.
4748 * inferior.h (generic_target_write_pc): Remove.
4749 * frv-tdep.c (frv_gdbarch_init): Do not install it.
4750 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
4751 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4752 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
4753 * sh-tdep.c (sh_gdbarch_init): Likewise.
4754 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
4756 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
4757 argument. Use REGCACHE instead of calling read_register_pid.
4758 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
4759 * hppa-tdep.c (hppa_read_pc): Likewise.
4760 * hppa-tdep.h (hppa_read_pc): Likewise.
4761 * ia64-tdep.c (ia64_read_pc): Likewise.
4762 * m32r-tdep.c (m32r_read_pc): Likewise.
4763 * mep-tdep.c (mep_read_pc): Likewise.
4764 * mn10300-tdep.c (mn10300_read_pc): Likewise.
4765 * spu-tdep.c (spu_read_pc): Likewise.
4767 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
4768 argument. Use REGCACHE instead of calling write_register_pid.
4769 * avr-tdep.c (avr_write_pc): Likewise.
4770 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
4771 * hppa-tdep.c (hppa_write_pc): Likewise.
4772 * hppa-tdep.h (hppa_write_pc): Likewise.
4773 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
4774 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
4775 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
4776 * ia64-tdep.c (ia64_write_pc): Likewise.
4777 * ia64-tdep.h (ia64_write_pc): Likewise.
4778 * m32r-tdep.c (m32r_write_pc): Likewise.
4779 * m88k-tdep.c (m88k_write_pc): Likewise.
4780 * mep-tdep.c (mep_write_pc): Likewise.
4781 * mips-tdep.c (mips_write_pc): Likewise.
4782 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
4783 * mn10300-tdep.c (mn10300_write_pc): Likewise.
4784 * sparc-tdep.c (sparc_write_pc): Likewise.
4785 * spu-tdep.c (spu_write_pc): Likewise.
4787 * mips-tdep.c (read_signed_register): Remove.
4788 (read_signed_register_pid): Likewise.
4789 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
4790 Use REGCACHE instead of calling read_signed_register_pid.
4792 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4794 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
4795 * gdbarch.c, gdbarch.h: Regenerate.
4796 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
4797 (push_dummy_code): Likewise. Pass it to callee.
4798 (call_function_by_hand): Pass current regcache to push_dummy_code.
4800 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
4801 argument. Use it instead of current_regcache.
4803 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
4804 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
4806 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4808 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
4809 * gdbarch.c, gdbarch.h: Regenerate.
4810 * infrun.c (handle_inferior_event): Pass current frame to
4811 gdbarch_get_longjmp_target.
4813 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
4814 Read registers from FRAME instead of using read_register.
4815 Use get_frame_arch instead of current_gdbarch.
4816 * arm-tdep.c (arm_get_longjmp_target): Likewise.
4817 * i386-tdep.c (i386_get_longjmp_target): Likewise.
4818 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
4819 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
4820 (mips64_linux_get_longjmp_target): Likewise.
4821 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
4823 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4825 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
4826 * gdbarch.c, gdbarch.h: Regenerate.
4827 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
4828 * arch-utils.h (generic_skip_trampoline_code): Likewise.
4829 * infrun.c (handle_inferior_event): Pass current frame to
4830 gdbarch_skip_trampoline_code and skip_language_trampoline.
4832 * language.c (unk_lang_trampoline): Add FRAME argument.
4833 (skip_language_trampoline): Add FRAME argument. Pass it to
4834 skip_trampoline callback.
4835 * language.h: Add forward declaration of struct frame_info.
4836 (struct language_defn): Add FRAME argument to skip_trampoline.
4837 (skip_language_trampoline): Add FRAME argument.
4838 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
4839 to skip_trampoline callback.
4840 * cp-abi.h: Add forward declaration of struct frame_info.
4841 (cplus_skip_trampoline): Add FRAME argument.
4842 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
4843 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
4844 to gdbarch_skip_trampoline_code.
4845 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
4846 to gdbarch_skip_trampoline_code.
4848 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
4849 * symtab.h (find_solib_trampoline_target): Likewise.
4850 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
4851 find_solib_trampoline_target.
4853 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
4854 from FRAME instead of calling read_register.
4856 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
4857 argument. Read registers from FRAME instead of using read_register.
4858 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
4859 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
4861 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
4864 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
4866 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
4867 registers from FRAME instead of using read_signed_register.
4869 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
4871 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
4872 instead of using read_register.
4873 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
4874 ppc64_standard_linkage_target.
4875 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
4876 Pass it to find_solib_trampoline_target. Read registers from FRAME
4877 instead of using read_register.
4879 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
4882 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4884 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
4886 * gdbarch.c, gdbarch.h: Regenerate.
4887 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
4889 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
4890 registers from FRAME instead of using read_register.
4891 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
4892 to alpha_next_pc. Use get_frame_pc instead of read_pc.
4893 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
4896 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
4897 from FRAME instead of using read_register.
4898 (thumb_get_next_pc): Likewise.
4899 (arm_get_next_pc): Likewise.
4900 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
4901 to arm_get_next_pc. Use get_frame_pc instead of read_register.
4902 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
4905 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
4906 from FRAME instead of using read_register.
4907 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
4908 to find_step_target.
4910 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
4911 from FRAME instead of using read_register / read_signed_register.
4912 (extended_mips16_next_pc): Likewise.
4913 (mips16_next_pc): Likewise.
4914 (mips_next_pc): Likewise.
4915 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
4916 to mips_next_pc. Use get_frame_pc instead of read_pc.
4917 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
4920 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
4921 of current frame. Read registers from FRAME.
4922 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
4923 branch_dest. Use get_frame_pc instead of read_pc.
4924 (rs6000_software_single_step): Likewise.
4925 (bl_to_blrl_insn_p): Do not call branch_dest.
4926 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
4929 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
4930 Read registers from FRAME instead of current regcache.
4931 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
4932 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
4933 * sparc-tdep.c (sparc_address_from_register): Remove.
4934 (sparc_analyze_control_transfer): Pass FRAME argument instead of
4935 GDBARCH. Pass FRAME to step_trap callback.
4936 (sparc_step_trap): Add FRAME argument.
4937 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
4938 to sparc_analyze_control_transfer. Read registers from FRAME instead
4939 of calling sparc_address_from_register.
4940 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
4942 (sparc_address_from_register): Remove prototype.
4943 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
4944 (sparcnbsd_step_trap): Add FRAME argument.
4946 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
4947 by FRAME. Read registers from FRAME instead of REGCACHE.
4949 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4951 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
4952 instead of calling read_register.
4954 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
4955 calling write_register.
4957 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
4958 calling write_register.
4960 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
4961 instead of calling read_register.
4962 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
4963 instead of calling read_register and write_register.
4965 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
4966 instead of current_regcache.
4968 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
4969 of calling write_register.
4970 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
4971 parameter instead of current_regcache.
4973 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
4974 instead of calling read_register.
4975 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
4976 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
4977 (mips_n32n64_push_dummy_call): Likewise.
4978 (mips_o32_push_dummy_call): Likewise.
4979 (mips_o64_push_dummy_call): Likewise.
4981 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
4982 parameter instead of current_regcache.
4984 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
4985 Use it instead of read_register and write_register.
4986 (xtensa_register_read_masked): Likewise.
4987 (xtensa_pseudo_register_read): Update call.
4988 (xtensa_pseudo_register_write): Likewise.
4989 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
4990 instead of calling read_register.
4991 (xtensa_push_dummy_call): Update comment.
4993 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4995 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
4996 by frame_unwind_register_signed calls.
4997 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
4998 frame allocations when called with NULL NEXT_FRAME parameter.
4999 (read_next_frame_reg): Remove.
5001 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
5002 instead of reading the FPSCR register.
5003 (sh_frame_cache): Pass unwound FPSCR register value to
5004 sh_analyze_prologue.
5005 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
5007 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
5008 instead of reading the CTBP register.
5009 (v850_frame_cache): Pass unwound CTBP register value to
5010 v850_analyze_prologue.
5012 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5014 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
5015 * sh-tdep.c (sh_show_regs): Likewise.
5016 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
5017 (sh_generic_show_regs): Add FRAME parameter. Use register
5018 values from that frame instead of calling read_register.
5019 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
5020 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
5021 sh_dsp_show_regs): Likewise.
5022 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
5023 sh64_show_regs): Likewise.
5025 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5027 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
5028 current regcache instead of calling read_register.
5030 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5032 * mep-tdep.c (current_me_module): Read from current regcache
5033 instead of calling read_register.
5034 (current_options): Likewise.
5036 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5038 * cris-tdep.c (cris_stopped_data_address): Read register values
5039 from current frame instead of calling read_register.
5040 * frv-tdep.c (frv_stopped_data_address): Likewise.
5042 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5044 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
5045 instead of write_register (PC_REGNUM, ...).
5047 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5049 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
5050 explaining why the PC adjustment code is necessary.
5052 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
5054 * m68k-tdep.h (enum m68k_flavour): New.
5055 (struct gdbarch_tdep): New fields
5056 float_return, flavour and fpregs_present.
5057 * m68k-tdep.c (m68k_register_type): Use
5058 fpregs_present and conditionalize floating
5059 registers type on flavour.
5060 (m68k_register_names): New.
5061 (m68k_register_name): Use the above.
5062 (m68k_convert_register_p): Consult fpregs_present.
5063 (m68k_register_to_value, m68k_value_to_register):
5064 Use register_type to obtain the type of floating
5066 (m68k_svr4_extract_return_value): Check tdep->float_return.
5067 Use register_type to get the type of floating
5069 (m68k_svr4_store_return_value): Likewise.
5070 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
5071 (m68k_analyze_register_saves): Likewise.
5072 (m68k_gdbarch_init): Extract infromation
5073 from XML description, if present. Guess coldfire by
5074 looking at the file, if present. Conditionalize
5075 setting of long double format. Set decr_pc_after_break
5076 to 2 on coldfire and fido. Enable XML-driven
5077 register description.
5078 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
5079 size of tdep->fpreg_type, as opposed to hardcoded value.
5080 * Makefile.in (m68k-tdep.o): Update dependencies.
5082 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5084 * NEWS: Mention "info spu" commands and qXfer:spu:read and
5085 qXfer:spu:write remote packet types.
5087 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5089 * xml-tdesc.c (tdesc_start_target): New.
5090 (target_attributes): New.
5091 (tdesc_elements): Use it.
5092 * features/gdb-target.dtd: Add #FIXED version attribute for
5095 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
5097 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
5099 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
5101 * fork-child.c (fork_inferior): Update comment.
5103 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5105 * features/Makefile: Generate regformats for mips-linux and
5107 * features/sort-regs.xsl: Correct typo.
5108 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
5109 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
5112 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5114 * config/mips/linux.mh (TDEP_XML): New.
5115 * features/mips-linux.xml, features/mips64-linux.xml: New files.
5116 * mips-linux-nat.c (mips_linux_register_addr): Handle
5117 MIPS_RESTART_REGNUM.
5118 (mips64_linux_register_addr): Likewise.
5119 (super_xfer_partial, mips_linux_xfer_partial): New.
5120 (_initialize_mips_linux_nat): Add them to the target_ops.
5121 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
5122 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
5123 (mips_linux_o32_sigframe_init)
5124 (mips_linux_n32n64_sigframe_init): Likewise.
5125 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
5126 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
5127 "org.gnu.gdb.mips.linux" feature.
5128 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
5129 (mips_linux_restart_reg_p): New prototype.
5130 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
5131 initialization routine.
5132 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
5134 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5136 * Makefile.in (mips-tdep.o): Update.
5137 * mips-tdep.c (struct register_alias, mips_o32_aliases)
5138 (mips_n32_n64_aliases, mips_register_aliases): New.
5139 (mips_register_name): Call tdesc_register_name.
5140 (mips_tdesc_register_reggroup_p): New.
5141 (mips_pseudo_register_type, value_of_mips_user_reg): New.
5142 (mips_gdbarch_init): Add target-described register support.
5143 Register aliases for register names.
5144 * target-descriptions.c (tdesc_register_name): Make global.
5145 (tdesc_register_in_reggroup_p): New function, broken out from
5146 tdesc_register_reggroup_p.
5147 (tdesc_register_reggroup_p): Use it.
5148 * target-descriptions.h (tdesc_register_name)
5149 (tdesc_register_in_reggroup_p): New prototypes.
5150 * NEWS: Correct formatting. Mention MIPS register support.
5151 * features/mips-cp0.xml, features/mips-fpu.xml,
5152 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
5153 features/mips64-cpu.xml: New files.
5155 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5157 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
5158 * valops.c (value_cast): Likewise.
5159 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
5160 * ui-out.c (ui_out_field_core_addr): Likewise.
5161 * tracepoint.c (tracepoints_info): Likewise.
5162 * symtab.c (print_msymbol_info): Likewise.
5163 * solib-irix.c (irix_current_sos)
5164 (irix_open_symbol_file_object): Likewise.
5165 * remote.c (build_remote_gdbarch_data): Likewise.
5166 * prologue-value.c (make_pv_area): Likewise.
5167 * procfs.c (info_mappings_callback): Likewise.
5168 * printcmd.c (print_scalar_formatted)
5169 (deprecated_print_address_numeric): Likewise.
5170 * memattr.c (mem_info_command): Likewise.
5171 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
5172 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
5173 * exec.c (print_section_info): Likewise.
5174 * dwarf2read.c (read_subrange_type): Likewise.
5175 * dwarf2loc.c (find_location_expression): Likewise.
5176 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
5177 (signed_address_type, execute_stack_op): Likewise.
5178 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
5179 * gdbarch.c, gdbarch.h: Regenerate.
5181 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5183 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
5184 * arch-utils.c (show_architecture): Likewise.
5185 * remote-mips.c (mips_open): Likewise
5186 * nto-tdep.c (nto_find_and_open_solib)
5187 (nto_init_solib_absolute_prefix): Likewise.
5188 * nto-procfs (procfs_open): Likewise.
5189 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
5190 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
5191 * gdbarch.c, gdbarch.h: Regenerate.
5193 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5195 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
5196 * gdbtypes.c (build_flt): Likewise.
5197 * gdbarch.c, gdbarch.h: Regenerate.
5199 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5201 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
5202 gdbarch_breakpoint_from_pc.
5203 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
5204 * remote.c (remote_insert_breakpoint)
5205 (remote_insert_hw_breakpoint): Likewise.
5206 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
5207 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
5208 * breakpoint.h (bp_target_info): Likewise (comment).
5209 * breakpoint.c (read_memory_nobpt): Likewise.
5210 * mem-break.c (default_memory_insert_breakpoint): Likewise.
5211 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
5212 * gdbarch.c, gdbarch.h: Regenerate.
5214 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5216 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
5217 * solib-svr4.c (svr4_truncate_ptr): Likewise.
5218 * solib-pa64.c (read_dynamic_info): Likewise.
5219 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
5220 * solib.c (info_sharedlibrary_command): Likewise.
5221 * s390-nat.c (SUBOFF): Likewise.
5222 * p-valprint.c (pascal_val_print): Likewise.
5223 * procfs.c (info_proc_mappings): Likewise.
5224 * printcmd.c (decode_format): Likewise.
5225 * nto-tdep.c (nto_truncate_ptr): Likewise.
5226 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5227 (mips64_linux_get_longjmp_target): Likewise.
5228 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5229 * jv-valprint.c (java_value_print): Likewise.
5230 * jv-lang.c (get_java_object_header_size): Likewise.
5231 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5232 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5233 (hppa_hpux_unwind_adjust_stub): Likewise.
5234 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5235 * gdbtypes.c (make_pointer_type, make_reference_type)
5236 (smash_to_memberptr_type): Likewise.
5237 * gdbarch.c, gdbarch.h: Regenerate.
5239 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5241 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
5242 (print_gp_register_row): Stop before printing a register bigger
5243 than the ABI register size.
5244 (mips_print_registers_info): Update call to mips_print_register.
5246 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5248 * expression.h (enum exp_opcode): Document a register name for
5250 * parse.c (write_dollar_variable): Write the register name for
5252 (operator_length_standard): Expect the register name following
5254 * ada-lang.c (resolve_subexp): Likewise.
5255 * ax-gdb.c (gen_expr): Likewise.
5256 * eval.c (evaluate_subexp_standard): Likewise.
5257 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5259 * tracepoint.c (encode_actions): Likewise.
5261 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5263 * utils.c (set_screen_size): Use INT_MAX for default columns.
5265 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
5267 * remote.c (remote_protocol_features): Add qXfer:spu:read and
5268 qXfer:spu:write packet types.
5270 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5272 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
5273 * gdbarch.c, gdbarch.h: Regenerate.
5275 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5277 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
5278 gdbarch_stab_reg_to_regnum.
5279 * stabsread.c (define_symbol): Likewise.
5280 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
5281 gdbarch_ecoff_reg_to_regnum.
5282 * mdebugread.c (parse_symbol): Likewise.
5283 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
5284 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
5285 gdbarch_dwarf_reg_to_regnum.
5286 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
5287 * coffread.c (process_coff_symbol): Likewise.
5288 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
5289 gdbarch_dwarf2_reg_to_regnum.
5290 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
5291 (locexpr_describe_location): Likewise.
5292 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
5293 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
5294 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
5295 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
5296 * gdbarch.c, gdbarch.h: Regenerate.
5298 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5300 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
5301 gdbarch_smash_text_address.
5302 * somread.c (som_symtab_read): Likewise.
5303 * elfread.c (record_minimal_symbol): Likewise.
5304 * dbxread.c (process_one_symbol): Likewise.
5305 * coffread.c (coff_symtab_read): Likewise.
5306 * gdbarch.c, gdbarch.h: Regenerate.
5308 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5310 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
5311 * findvar.c (value_from_register): Likewise.
5312 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
5313 * valops.c (value_assign): Likewise.
5314 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
5315 gdbarch_convert_register_p.
5316 * findvar.c (value_from_register): Likewise.
5317 * valops.c (value_assign): Likewise.
5318 * gdbarch.c, gdbarch.h: Regenerate.
5320 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5322 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
5323 gdbarch_register_sim_regno.
5324 * sim-regno.h (sim_regno): Likewise (comment).
5325 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
5326 * gdbarch.c, gdbarch.h: Regenerate.
5328 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5330 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
5331 gdbarch_virtual_frame_pointer.
5332 * tracepoint.c (encode_actions): Likewise.
5333 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
5334 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
5335 * gdbarch.c, gdbarch.h: Regenerate.
5337 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5339 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
5340 * p-lang.c (pascal_create_fundamental_type): Likewise.
5341 * objc-lang.c (objc_create_fundamental_type): Likewise.
5342 * mdebugread.c (_initialize_mdebugread): Likewise.
5343 * m2-lang.c (m2_create_fundamental_type)
5344 (_initialize_m2_language): Likewise.
5345 * gdbtypes.c (build_gdbtypes): Likewise.
5346 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5347 * doublest.c (floatformat_from_length): Likewise.
5348 * c-lang.c (c_create_fundamental_type): Likewise.
5349 * ada-lang.c (ada_create_fundamental_type)
5350 (ada_language_arch_info): Likewise.
5351 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
5352 * value.c (unpack_double): Likewise (comment).
5353 * gdbtypes.c (build_gdbtypes): Likewise.
5354 * doublest.c (floatformat_from_length): Likewise.
5355 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
5356 * valarith.c (value_binop): Likewise.
5357 * p-lang.c (pascal_create_fundamental_type): Likewise.
5358 * objc-lang.c (objc_create_fundamental_type): Likewise.
5359 * mdebugread.c (_initialize_mdebugread): Likewise.
5360 * m2-lang.c (m2_create_fundamental_type): Likewise.
5361 * gdbtypes.c (build_gdbtypes): Likewise.
5362 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5363 * doublest.c (floatformat_from_length): Likewise.
5364 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
5365 * c-lang.c (c_create_fundamental_type): Likewise.
5366 * ada-lex.l (processReal): Likewise.
5367 * ada-lang.c (ada_create_fundamental_type)
5368 (ada_language_arch_info): Likewise.
5369 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
5370 * value.c (unpack_double): Likewise (comment).
5371 * gdbtypes.c (build_gdbtypes): Likewise.
5372 * doublest.c (floatformat_from_length): Likewise.
5373 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
5374 gdbarch_long_double_bit.
5375 * p-lang.c (pascal_create_fundamental_type): Likewise.
5376 * objc-lang.c (objc_create_fundamental_type): Likewise.
5377 * m2-lang.c (m2_create_fundamental_type): Likewise.
5378 * gdbtypes.c (build_gdbtypes): Likewise.
5379 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5380 * doublest.c (floatformat_from_length): Likewise.
5381 * c-lang.c (c_create_fundamental_type): Likewise.
5382 * ada-lex.l (processReal): Likewise.
5383 * ada-lang.c (ada_create_fundamental_type)
5384 (ada_language_arch_info): Likewise.
5385 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
5386 gdbarch_long_double_format.
5387 * gdbtypes.c (build_gdbtypes): Likewise.
5388 * doublest.c (floatformat_from_length): Likewise.
5389 * gdbarch.c, gdbarch.h: Regenerate.
5391 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5393 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
5394 * ada-lang.c (ada_create_fundamental_type)
5395 (ada_language_arch_info): Likewise.
5396 * c-lang.c (c_create_fundamental_type): Likewise.
5397 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5398 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5399 * m2-lang.c (m2_create_fundamental_type): Likewise.
5400 * objc-lang.c (objc_create_fundamental_type): Likewise.
5401 * p-lang.c (pascal_create_fundamental_type): Likewise.
5402 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
5403 * c-exp.y (parse_number): Likewise.
5404 * objc-exp.y (parse_number): Likewise.
5405 * ada-lex.l (processInt): Likewise.
5406 * f-exp.y (parse_number): Likewise.
5407 * p-exp.y (parse_number): Likewise.
5408 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
5409 (gdbtypes_post_init, build_gdbtypes): Likewise.
5410 * p-lang.c (pascal_create_fundamental_type): Likewise.
5411 * parse.c (build_parse): Likewise.
5412 * xcoffread.c (_initialize_xcoffread): Likewise.
5413 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
5414 (read_range_type): Likewise.
5415 * objc-lang.c (objc_create_fundamental_type): Likewise.
5416 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
5417 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
5418 (m2_create_fundamental_type): Likewise.
5419 * c-lang.c (c_create_fundamental_type): Likewise.
5420 * coffread.c (coff_read_enum_type): Likewise.
5421 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
5422 * dwarf2read.c (new_symbol): Likewise.
5423 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
5424 * c-exp.y (parse_number): Likewise.
5425 * objc-exp.y (parse_number): Likewise.
5426 * ada-lex.l (processInt): Likewise.
5427 * f-exp.y (parse_number): Likewise.
5428 * p-exp.y (parse_number): Likewise.
5429 * valarith.c (value_binop): Likewise.
5430 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
5431 * ada-lang.c (ada_create_fundamental_type)
5432 (ada_language_arch_info): Likewise.
5433 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5434 * symfile.c (TARGET_LONG_BYTES): Likewise.
5435 * p-lang.c (pascal_create_fundamental_type): Likewise.
5436 * objc-lang.c (objc_create_fundamental_type): Likewise.
5437 * m2-lang.c (m2_create_fundamental_type): Likewise.
5438 * f-lang.c (f_create_fundamental_type): Likewise.
5439 * c-lang.c (c_create_fundamental_type): Likewise.
5440 * coffread.c (decode_base_type): Likewise.
5441 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
5442 * c-exp.y (parse_number): Likewise.
5443 * objc-exp.y (parse_number): Likewise.
5444 * p-exp.y (parse_number): Likewise.
5445 * ada-lang.c (ada_create_fundamental_type)
5446 (ada_language_arch_info): Likewise.
5447 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
5448 * stabsread.c (read_range_type): Likewise.
5449 * p-lang.c (pascal_create_fundamental_type): Likewise.
5450 * objc-lang.c (objc_create_fundamental_type): Likewise.
5451 * m2-lang.c (m2_create_fundamental_type): Likewise.
5452 * f-lang.c (f_create_fundamental_type): Likewise.
5453 * c-lang.c (c_create_fundamental_type): Likewise.
5454 * gdbarch.c, gdbarch.h: Regenerate.
5456 2007-06-12 Andreas Schwab <schwab@suse.de>
5458 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
5459 (struct frame_unwind): Add dealloc_cache.
5460 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
5462 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
5463 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
5464 (libunwind_frame_unwind): Set dealloc_cache.
5465 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
5467 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5468 Markus Deuling <deuling@de.ibm.com>
5470 * remote.c (remote_write_qxfer): New function.
5471 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
5472 (remote_read_qxfer): Do not cache empty objects.
5473 (_initialize_remote): Add PACKET_qXfer_spu_read and
5474 PACKET_qXfer_spu_write.
5476 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5478 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
5479 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
5481 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
5482 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
5483 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
5484 * spu-tdep.c (infospucmdlist): New variable.
5485 (spu_register_name): Handle additional pseudo registers.
5486 (spu_register_type): Likewise.
5487 (spu_pseudo_register_read): Likewise.
5488 (spu_pseudo_register_write): Likewise.
5489 (spu_pseudo_register_read_spu): New function.
5490 (spu_pseudo_register_write_spu): Likewise.
5491 (info_spu_event_command): New function.
5492 (info_spu_signal_command): Likewise.
5493 (info_spu_mailbox_list): Likewise.
5494 (info_spu_mailbox_command): Likewise.
5495 (spu_mfc_get_bitfield): Likewise.
5496 (info_spu_dma_cmdlist): Likewise.
5497 (info_spu_dma_command): Likewise.
5498 (info_spu_proxydma_command): Likewise.
5499 (info_spu_command): Likewise.
5500 (_initialize_spu_tdep): Install "info spu" commands.
5502 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5504 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
5505 accessing non-seekable spufs files.
5507 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5509 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
5510 gdbarch_skip_trampoline_code.
5511 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
5512 * objc-lang.c (objc_skip_trampoline)
5513 (objc_submethod_helper_data): Likewise.
5514 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
5515 * infrun.c (handle_inferior_event): Likewise.
5516 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
5517 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
5518 gdbarch_in_solib_return_trampoline.
5519 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
5520 * infrun.c (handle_inferior_event): Likewise.
5521 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
5522 * gdbarch.c, gdbarch.h: Regenerate.
5524 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5526 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
5527 * symtab.c (find_function_start_sal, in_prologue): Likewise.
5528 * linespec.c (minsym_found): Likewise.
5529 * infrun.c (step_into_function): Likewise.
5530 * gdbarch.c, gdbarch.h: Regenerate.
5532 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5534 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
5535 * valops.c (value_allocate_space_in_inferior): Likewise.
5536 * gdbarch.c, gdbarch.h: Regenerate.
5538 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5540 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
5541 gdbarch_memory_insert_breakpoint.
5542 * mem-break.c (memory_insert_breakpoint): Likewise.
5543 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
5544 gdbarch_memory_remove_breakpoint.
5545 * mem-break.c (memory_remove_breakpoint): Likewise.
5546 * gdbarch.c, gdbarch.h: Regenerate.
5548 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5550 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
5551 gdbarch_fetch_tls_load_module_address.
5552 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
5553 gdbarch_fetch_tls_load_module_address_p.
5554 * gdbarch.c, gdbarch.h: Regenerate.
5556 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5558 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
5559 gdbarch_decr_pc_after_break.
5560 * tracepoint.c (trace_dump_command): Likewise.
5561 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
5562 * linux-thread-db.c (check_event): Likewise.
5563 * linux-nat.c (cancel_breakpoints_callback): Likewise.
5564 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
5565 * frame.h: Likewise (comment).
5566 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
5567 * aix-thread.c (aix_thread_wait): Likewise.
5568 * gdbarch.c, gdbarch.h: Regenerate.
5570 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5572 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
5573 gdbarch_address_class_type_flags.
5574 * dwarf2read.c (read_tag_pointer_type): Likewise.
5575 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
5576 gdbarch_address_class_type_flags_p.
5577 * dwarf2read.c (read_tag_pointer_type): Likewise.
5578 * gdbarch.c, gdbarch.h: Regenerate.
5580 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5582 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
5583 * value.c (value_as_address): Likewise (comment).
5584 * remote-mips.c (common_breakpoint): Likewise.
5585 * regcache.c (read_pc_pid): Likewise.
5586 * printcmd.c (do_one_display): Likewise.
5587 * monitor.c (monitor_write_memory, monitor_read_memory)
5588 (monitor_insert_breakpoint): Likewise.
5589 * mips-tdep.c (heuristic_proc_start): Likewise.
5590 * infrun.c (insert_step_resume_breakpoint_at_frame)
5591 (insert_step_resume_breakpoint_at_caller): Likewise.
5592 * buildsym.c (record_line): Likewise.
5593 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
5594 (arm_get_next_pc): Likewise.
5595 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
5596 (store_regs): Likewise.
5597 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
5598 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
5599 * gdbarch.c, gdbarch.h: Regenerate.
5601 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5603 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
5604 * tracepoint.c (scope_info): Likewise.
5605 * target.c (debug_print_register): Likewise.
5606 * stack.c (frame_info): Likewise.
5607 * sh-tdep.c (sh_register_reggroup_p): Likewise.
5608 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
5609 (sh64_media_print_registers_info)
5610 (sh64_compact_print_registers_info): Likewise.
5611 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
5612 * remote-sim.c (gdbsim_fetch_register): Likewise.
5613 * remote.c (packet_reg): Likewise (comment).
5614 * reggroups.c (default_register_reggroup_p): Likewise.
5615 * regcache.c (regcache_dump): Likewise.
5616 * printcmd.c (address_info): Likewise.
5617 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
5618 * mt-dep.c (mt_registers_info): Likewise.
5619 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
5620 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
5621 (mips_read_fp_register_double, mips_print_fp_register)
5622 (mips_print_register, print_gp_register_row, mips_print_registers_info)
5623 (mips_register_sim_regno): Likewise.
5624 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
5625 * inf-ptrace.c (inf_ptrace_fetch_register)
5626 (inf_ptrace_store_register): Likewise.
5627 * infcmd.c (default_print_registers_info): Likewise.
5628 * ia64-linux-nat.c (ia64_linux_fetch_register)
5629 (ia64_linux_store_register): Likewise.
5630 * i386-linux-nat.c (fetch_register, store_register): Likewise.
5631 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
5632 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
5633 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
5634 (hppa_hpux_store_register): Likewise.
5635 * findvar.c (locate_var_value): Likewise.
5636 * dwarf2loc.c (locexpr_describe_location): Likewise.
5637 * dwarf2-frame.c (execute_cfa_program): Likewise.
5638 * arm-tdep.c (arm_push_dummy_call): Likewise.
5639 * arch-utils.c (legacy_register_sim_regno): Likewise.
5640 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
5641 * alpha-nat.c (fetch_osf_core_registers): Likewise.
5642 * mi/mi-main.c (mi_cmd_data_list_register_names)
5643 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
5644 (mi_cmd_data_write_register_values): Likewise.
5645 * gdbarch.c, gdbarch.h: Regenerate.
5647 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
5649 * target-memory.c (blocks_to_erase): Correct off-by-one error.
5651 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
5653 * remote.c (process_g_packet): Don't check size.
5654 * gdbarch.sh: Remove register_bytes_ok.
5655 * gdbarch.c: Regenerated.
5656 * gdbarch.h: Regenerated.
5657 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
5658 (m68k_register_bytes_ok): Remove.
5659 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
5661 2007-06-06 Andreas Schwab <schwab@suse.de>
5663 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
5664 (destroy_addr_space_name): Define.
5665 (libunwind_load): Get address of destroy_addr_space function.
5666 (libunwind_frame_cache): Destroy unw_addr_space_t object before
5667 returning unsuccessfully.
5668 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
5670 (libunwind_sigtramp_frame_sniffer): Likewise.
5671 (libunwind_get_reg_special): Likewise.
5673 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5675 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
5676 gdbarch_fetch_pointer_argument.
5677 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
5678 * gdbarch.c, gdbarch.h: Regenerate.
5680 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5682 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
5683 gdbarch_have_nonsteppable_watchpoint.
5684 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
5685 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
5686 gdbarch_cannot_step_breakpoint.
5687 * infrun.c (resume): Likewise.
5688 * gdbarch.c, gdbarch.h: Regenerate.
5690 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5692 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
5693 * stack.c (print_frame_args): Likewise.
5694 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
5695 * stack.c (print_args_stub, frame_info): Likewise.
5696 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
5697 * stack.c (print_args_stub, frame_info): Likewise.
5698 * gdbarch.c, gdbarch.h: Regenerate.
5700 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5702 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
5703 gdbarch_coff_make_msymbol_special.
5704 * coffread.c (coff_symtab_read): Likewise.
5705 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
5706 gdbarch_elf_make_msymbol_special.
5707 * elfread.c (elf_symtab_read): Likewise.
5708 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
5709 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
5710 * gdbarch.c, gdbarch.h: Regenerate.
5712 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5714 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
5715 gdbarch_frame_red_zone_size.
5716 * gdbarch.c, gdbarch.h: Regenerate.
5718 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5720 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
5721 * infcall.c (call_function_by_hand): Likewise.
5722 * gcore.c (derive_stack_segment): Likewise.
5723 * frame.c (frame_id_inner): Likewise.
5724 * arch-utils.c (core_addr_lessthan): Likewise (comment).
5725 * ada-lang.c (ensure_lval): Likewise.
5726 * gdbarch.c, gdbarch.h: Regenerate.
5728 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5730 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
5731 gdbarch_address_to_pointer.
5732 * findvar.c (store_typed_address): Likewise.
5733 * gdbtypes.c (make_pointer_type): Likewise (comment).
5734 * procfs.c (procfs_address_to_host_pointer): Likewise.
5735 * std-regs.c (value_of_builtin_frame_reg): Likewise.
5736 (value_of_builtin_frame_fp_reg): Likewise.
5737 (value_of_builtin_frame_pc_reg): Likewise.
5738 * utils.c (paddress): Likewise (comment).
5739 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
5740 gdbarch_pointer_to_address.
5741 * findvar.c (extract_typed_address): Likewise.
5742 * gdbtypes.c (make_pointer_type): Likewise (comment).
5743 * valops.c (value_cast): Likewise (comment).
5744 * gdbarch.c, gdbarch.h: Regenerate.
5746 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5748 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
5749 * infrun.c (handle_inferior_event): Likewise.
5750 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
5751 gdbarch_get_longjmp_target_p.
5752 * breakpoint.c (breakpoint_re_set): Likewise.
5753 * infrun.c (handle_inferior_event): Likewise.
5754 * gdbarch.c, gdbarch.h: Regenerate.
5756 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
5758 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
5759 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
5760 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
5761 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
5762 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
5763 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
5764 find_stub_with_shl_get, cover_find_stub_with_shl_get,
5765 initialize_hp_cxx_exception_support, child_enable_exception_callback,
5766 current_ex_event, child_get_current_exception_event): Remove.
5767 (hppa_hpux_inferior_created): Remove.
5768 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
5770 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
5771 (deprecated_exception_support_initialized): Remove.
5772 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
5773 (deprecated_exception_support_initialized): Remove.
5774 (breakpoint_init_inferior): Remove handling of non-zero
5775 deprecated_exception_catchpoints_are_fragile.
5777 * symtab.h (deprecated_hp_som_som_object_present): Remove.
5778 * symtab.c (deprecated_hp_som_som_object_present): Remove.
5779 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
5780 deprecated_hp_som_som_object_present.
5781 * eval.c (evaluate_subexp_standard): Likewise.
5782 * valops.c (value_cast): Likewise.
5784 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
5785 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
5786 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
5788 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
5790 * objfiles.h (ImportEntry, ExportEntry): Remove types.
5791 (struct objfile): Remove import_list, import_list_size,
5792 export_list, export_list_size members.
5793 (is_in_import_list): Remove prototype.
5794 * objfiles.c (is_in_import_list): Remove.
5795 * somread.c (init_import_symbols, init_export_symbols): Remove.
5796 (som_symfile_read): Do not call init_import_symbols. Do not
5797 set objfile->export_list and objfile->export_list_size.
5799 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
5801 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
5802 Use the original objfile if necessary.
5804 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
5806 * defs.h (ldirname): New prototype.
5807 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
5809 * utils.c (ldirname): New function.
5810 * xml-tdesc.c (file_read_description_xml): Use ldirname.
5812 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
5814 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
5816 2007-06-01 Joel Brobecker <brobecker@adacore.com>
5818 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
5820 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
5822 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
5824 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
5826 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
5827 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
5828 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
5829 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
5830 (ppc_linux_in_sigtramp, insn_is_sigreturn,
5831 ppc_linux_at_sigtramp_return_path): Remove.
5833 2007-05-31 Markus Deuling <deuling@de.ibm.com>
5835 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
5836 (xtensa_register_write_masked, xtensa_register_read_masked)
5837 (xtensa_extract_return_value, xtensa_store_return_value
5838 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
5839 TARGET_BYTE_ORDER by gdbarch_byte_order.
5840 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
5841 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
5842 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
5843 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
5844 (sh64_push_dummy_call, sh64_extract_return_value)
5845 (sh64_store_return_value, sh64_register_convert_to_virtual)
5846 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
5847 (sh64_pseudo_register_write, sh64_do_fp_register)
5848 (sh64_frame_prev_register): Likewise.
5849 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
5850 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
5851 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
5852 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
5853 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
5854 * ppc-linux-nat.c (store_register): Likewise.
5855 * nto-tdep.c (nto_find_and_open_solib)
5856 (nto_init_solib_absolute_prefix): Likewise.
5857 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
5858 (mips_convert_register_p, mips_eabi_push_dummy_call)
5859 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
5860 (mips_o32_push_dummy_call, mips_o32_return_value)
5861 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
5862 (mips_read_fp_register_single, mips_read_fp_register_double)
5863 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
5864 (mips_breakpoint_from_pc): Likewise.
5865 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
5866 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
5867 (mips_linux_o32_sigframe_init): Likewise.
5868 * m32r-tdep.c (m32r_memory_insert_breakpoint)
5869 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
5870 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
5871 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
5872 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
5873 * coffread.c (process_coff_symbol): Likewise.
5874 * arm-tdep.c (convert_from_extended, convert_to_extended)
5875 (gdb_print_insn_arm): Likewise.
5877 2007-05-31 Markus Deuling <deuling@de.ibm.com>
5879 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
5880 * i386-tdep.c (i386_dbx_reg_to_regnum)
5881 (i386_svr4_reg_to_regnum): Likewise.
5882 * inf-ptrace.c (inf_ptrace_fetch_registers)
5883 (inf_ptrace_store_registers): Likewise.
5884 * corelow.c (get_core_registers): Likewise.
5885 * i386-linux-nat.c (supply_gregset, fill_gregset)
5886 (i386_linux_fetch_inferior_registers)
5887 (i386_linux_store_inferior_registers): Likewise.
5888 * remote.c (init_remote_state,packet_reg_from_regnum)
5889 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
5890 (remote_prepare_to_store,store_registers_using_G)
5891 (remote_store_registers,remote_arch_state): Likewise.
5892 * tracepoint.c (encode_actions): Likewise.
5893 * mi/mi-main.c (mi_cmd_data_list_register_names)
5894 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
5895 (mi_cmd_data_write_register_values): Likewise.
5896 * tui/tui-regs.c (tui_show_register_group)
5897 (tui_show_register_group): Likewise.
5898 * xtensa-tdep.h (FP_ALIAS): Likewise.
5899 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
5900 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
5901 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
5902 * win32-nat.c (do_win32_fetch_inferior_registers)
5903 (do_win32_store_inferior_registers,fetch_elf_core_registers
5904 * user-regs.h: Likewise (comment).
5905 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
5906 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
5907 * target-descriptions.h: Likewise (comment).
5908 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
5909 * target.c (debug_print_register): Likewise.
5910 * stack.c (frame_info): Likewise.
5911 * stabsread.c (define_symbol): Likewise.
5912 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
5913 (sh64_media_print_registers_info)
5914 (sh64_compact_print_registers_info): Likewise.
5915 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
5916 * rs6000-nat.c (fetch_register,store_register): Likewise.
5917 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
5918 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
5919 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
5920 * remote-m32r-sdi.c (m32r_fetch_registers)
5921 (m32r_store_registers): Likewise.
5922 * reggroups.c (default_register_reggroup_p): Likewise.
5923 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
5924 (regcache_restore,regcache_dump): Likewise.
5925 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
5926 * mips-tdep.c (mips_xfer_register,mips_register_name)
5927 (mips_register_reggroup_p,mips_pseudo_register_read)
5928 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
5929 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
5930 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
5931 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
5932 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
5933 (print_gp_register_row,mips_print_registers_info)
5934 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
5935 (mips_register_sim_regno): Likewise.
5936 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
5937 (mips_linux_n32n64_sigframe_init): Likewise.
5938 * mips-linux-nat.c (mips_linux_register_addr)
5939 (mips64_linux_register_addr): Likewise.
5940 * findvar.c (value_of_register): Likewise.
5941 * infcmd.c (default_print_registers_info,registers_info)
5942 (print_vector_info,print_float_info): Likewise.
5943 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
5944 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
5945 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
5946 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
5947 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
5948 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
5949 (ia64_cannot_store_register,ia64_linux_fetch_registers)
5950 (ia64_linux_store_registers): Likewise.
5951 * hpux-thread.c (hpux_thread_fetch_registers)
5952 (hpux_thread_store_registers): Likewise.
5953 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
5954 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
5955 (h8300_register_type): Likewise.
5956 * dwarf2-frame.c (dwarf2_frame_cache)
5957 (dwarf2_frame_state_alloc_regs): Likewise.
5958 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
5959 (cris_cannot_store_register,crisv32_cannot_fetch_register)
5960 (crisv32_cannot_store_register,cris_register_name): Likewise.
5961 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
5962 * arch-utils.c (legacy_register_sim_regno)
5963 (legacy_virtual_frame_pointer): Likewise.
5964 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
5965 * arm-tdep.h: Likewise (comment).
5966 * frv-tdep.c (frv_register_sim_regno): Likewise.
5967 * m68klinux-nat.c (old_fetch_inferior_registers)
5968 (old_store_inferior_registers): Likewise.
5969 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
5970 * irix5-nat.c (fetch_core_registers): Likewise.
5971 * hppa-tdep.c (hppa_frame_cache): Likewise.
5972 * hppa-linux-nat.c (hppa_linux_register_addr)
5973 (hppa_linux_fetch_inferior_registers)
5974 (hppa_linux_store_inferior_registers): Likewise.
5975 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
5976 (hppa_hpux_store_inferior_registers): Likewise.
5977 * amd64-nat.c (amd64_native_gregset_reg_offset)
5978 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
5979 * dbug-rom.c (dbug_regname): Likewise.
5980 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
5981 (HARD_PAGE_REGNUM (comment)): Likewise.
5982 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
5983 * i386-tdep.c (i386_dbx_reg_to_regnum)
5984 (i386_svr4_reg_to_regnum): Likewise.
5985 * mi/mi-main.c (mi_cmd_data_list_register_names)
5986 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
5987 (mi_cmd_data_write_register_values): Likewise.
5988 * gdbarch.c, gdbarch.h: Regenerate.
5989 * tui/tui-regs.c (tui_show_register_group): Likewise.
5990 * xtensa-tdep.h (FP_ALIAS): Likewise.
5991 * user-regs.h: Likewise (comment).
5992 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
5993 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
5994 * target-descriptions.h: Likewise (comment).
5995 * target.c (debug_print_register): Likewise.
5996 * stack.c (frame_info): Likewise.
5997 * stabsread.c (define_symbol): Likewise.
5998 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
5999 (sh64_compact_print_registers_info): Likewise.
6000 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6001 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
6002 (regcache_restore,regcache_dump): Likewise.
6003 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
6004 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6005 (mips_stab_reg_to_regnum): Likewise.
6006 * findvar.c (value_of_register): Likewise.
6007 * infcmd.c (default_print_registers_info,registers_info)
6008 (print_vector_info,print_float_info): Likewise.
6009 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6010 * h8300-tdep.c (h8300_register_type): Likewise.
6011 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6012 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
6013 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
6014 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
6015 * parse.c: Remove comment.
6016 * gdbarch.c, gdbarch.h: Regenerate
6018 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6020 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
6021 gdbarch_cannot_fetch_register.
6022 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6023 * hppa-linux-nat.c (fetch_register): Likewise.
6024 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
6025 * m68klinux-nat.c (fetch_register): Likewise.
6026 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
6028 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
6029 gdbarch_cannot_store_register.
6030 * hppa-linux-nat.c (store_register): Likewise.
6031 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
6032 * regcache.c (regcache_raw_write): Likewise.
6033 * m68klinux-nat.c (store_register): Likewise.
6034 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
6035 * gdbarch.c, gdbarch.h: Regenerate.
6037 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6039 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
6040 * gdbarch.c, gdbarch.h: Regenerate.
6042 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6044 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
6045 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6046 * gdbarch.c, gdbarch.h: Regenerate.
6048 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6050 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
6051 * ax-gdb.c (gen_bitfield_ref): Likewise.
6052 * mi/mi-main.c (get_register): Likewise.
6053 * findvar.c (default_value_from_register, extract_signed_integer)
6054 (extract_unsigned_integer, extract_long_unsigned_integer)
6055 (store_signed_integer, store_unsigned_integer): Likewise.
6056 * regcache.c (regcache_dump): Likewise.
6057 * value.c (lookup_internalvar, value_of_internalvar)
6058 (set_internalvar): Likewise.
6060 * valprint.c (print_binary_chars, print_octal_chars)
6061 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
6062 * infcmd.c (default_print_registers_info): Likewise.
6063 * arch-utils.c (selected_byte_order, show_endian): Likewise.
6064 * stabsread.c (define_symbol): Likewise.
6065 * doublest.c (floatformat_from_length, floatformat_from_type)
6066 (extract_typed_floating, store_typed_floating): Likewise.
6067 * gdbarch.c, gdbarch.h: Regenerate.
6069 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6071 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
6072 gdbarch_call_dummy_location.
6073 * infcall.c (call_function_by_hand): Likewise.
6074 * inferior.h: Change comment.
6075 * arch-utils.c: Change comment.
6076 * gdbarch.c, gdbarch.h: Regenerate.
6078 2007-05-28 Joel Brobecker <brobecker@adacore.com>
6080 * solib-aix5.c: Delete.
6081 * Makefile.in (solib-aix5.o): Delete rule.
6083 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
6085 * breakpoint.h (enum bpstat_what_main_action): Remove
6086 BPSTAT_WHAT_THROUGH_SIGTRAMP.
6087 * infrun.c (process_event_stop_test): Do not check for it.
6089 2007-05-22 Chris Dearman <chris@mips.com>
6090 Maciej W. Rozycki <macro@mips.com>
6092 * ser-unix.c (show_serial_hwflow): New function.
6093 (hardwire_raw): Add hardware flow control support.
6094 (_initialize_ser_hardwire): Add "set/show remoteflow".
6095 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
6096 * NEWS: Document the new command.
6098 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6100 * config/i386/tm-linux.h (sys_quotactl): Do not define.
6101 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
6102 define for i[[3456]]86-*-linux* native configurations.
6103 * config.in, configure: Regenerate.
6105 2007-05-19 Joel Brobecker <brobecker@adacore.com>
6107 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
6108 a core file. Add comment in the function description.
6110 2007-05-18 Caroline Tice <ctice@apple.com>
6112 * c-valprint.c (c_value_print): If the initialized field of the
6113 value struct is 0, print out "[uninitialized]" before the value.
6114 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
6115 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
6116 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
6117 ctx->initialized appropriately. Verify no location op follows
6119 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
6120 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
6121 set_value_initialized.
6122 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
6123 (decode_locdesc): Add case for DW_OP_GNU_uninit.
6124 * value.c (struct value): New field, initialized.
6125 (allocate_value): Initialize new field.
6126 (set_value_initialized): New function.
6127 (value_initialized): New function.
6128 * value.h (value_initialized): New extern declaration.
6129 (set_value_initialized): Likewise.
6131 2007-05-18 Caroline Tice <ctice@apple.com>
6133 * MAINTAINERS (Write After Approval): Add self.
6135 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6137 * gdbtypes.c (make_reference_type): Preserve the type chain
6138 and set the length of all the variants of the pointer type.
6140 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6142 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
6143 and set the length of all the variants of the pointer type.
6145 2007-05-17 Maciej W. Rozycki <macro@mips.com>
6147 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
6149 (mips_o64_push_dummy_call): Reformat a comment.
6151 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
6153 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
6154 (score_prologue_frame_base_address): Return fp to keep gdb print
6155 local variables correctly when debugging information is stabs.
6157 (score_analyze_prologue): For software watchpoint, fetch all the
6158 instructions from range [startaddr, pc] once and identify them locally
6159 to reduce memory access.
6160 (score_malloc_and_get_memblock, score_free_memblock)
6161 (score_adjust_memblock_ptr): New functions.
6162 (score_fetch_inst): Fetch single instruction or mutiple instructions.
6164 (score_target_can_use_watch, score_stopped_by_watch)
6165 (score_target_insert_watchpoint, score_target_remove_watchpoint)
6166 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
6167 New functions for remote & local hw-watchpoint and hw-breakpoint.
6169 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
6171 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
6172 declarations as well.
6174 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6176 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
6177 * config/arm/tm-embed.h: Delete file.
6179 * arm-tdep.h (arm_software_single_step): Declare.
6180 * arm-tdep.c (arm_software_single_step): Make global.
6181 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
6183 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
6184 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
6185 * armobsd-tdep.c (armobsd_init_abi): ... here ...
6186 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
6188 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
6189 allow defines to be overriden by TM file.
6190 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
6191 change default to {0xbe,0xbe}.
6192 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
6193 arm_obsd_thumb_be_breakpoint): New global variables.
6194 (armobsd_init_abi): Override tdep->thumb_breakpoint and
6195 tdep->thumb_breakpoint_size.
6196 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
6197 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
6198 tdep->thumb_breakpoint_size.
6200 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
6202 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6204 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
6207 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
6208 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
6209 (mips_stack_argsize_string, mips_stack_argsize): Delete.
6210 (mips_abi_regsize): Simplify.
6211 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6212 (mips_n32n64_return_value, mips_o32_push_dummy_call)
6213 (mips_o32_return_value, mips_o64_push_dummy_call)
6214 (mips_o64_return_value): Propogate constant register sizes. Use the
6215 ABI register size instead of mips_stack_argsize.
6216 (mips_dump_tdep): Don't print mips_stack_argsize.
6217 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
6220 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6222 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
6223 * config/mips/tm-linux.h: Delete.
6224 * mips-linux-tdep.c (mips_svr4_so_ops): New.
6225 (mips_linux_in_dynsym_resolve_code): Make static. Use
6226 svr4_in_dynsym_resolve_code.
6227 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
6229 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
6231 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
6232 * Makefile.in (mips-linux-tdep.o): Update.
6233 * solib.c (set_solib_ops): New.
6234 (current_target_so_ops): Update comment.
6235 * solib.h (set_solib_ops): New prototype.
6237 2007-05-16 Chris Dearman <chris@mips.com>
6239 * printcmd.c (do_examine): Fix typos in a comment.
6241 2007-05-16 Richard Sandiford <richard@codesourcery.com>
6243 * configure.ac: Allow sysroots to be relocated under $prefix as
6244 well as $exec_prefix.
6245 * configure: Regenerate.
6247 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6249 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
6250 (offsetof): Do not define.
6251 (find_stub_with_shl_get): Use numerical value 3 instead of
6252 symbolic value TYPE_PROCEDURE.
6254 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6256 * gdb_proc_service.h (paddr_t): Delete typedef.
6257 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
6258 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
6259 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
6260 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
6261 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
6262 * Makefile.in (proc-service.o): Update.
6264 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6266 * Makefile.in (mips-tdep.o): Update.
6267 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
6270 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6272 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
6273 instead of store_typed_address.
6274 * value.c (pack_long): New.
6275 (value_from_longest): Use it.
6276 * value.h (pack_long): New prototype.
6278 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6280 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
6281 DW_EH_PE_signed if appropriate.
6283 2007-05-14 Paul Brook <paul@codesourcery.com>
6284 Daniel Jacobowitz <dan@codesourcery.com>
6286 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
6288 (dwarf_decode_lines): Check for line info without a file.
6290 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6292 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
6295 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6297 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
6299 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
6301 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
6303 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6305 * gdbarch.sh (read_sp): Remove.
6306 * gdbarch.c, gdbarch.h: Regenerate.
6307 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
6309 * avr-tdep.c (avr_read_sp): Remove.
6310 (avr_unwind_sp): New function.
6311 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
6312 * mips-tdep.c (mips_read_sp): Remove.
6313 (mips_unwind_sp): New function.
6314 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
6315 * score-tdep.c (score_read_unsigned_register): Remove.
6316 (score_read_sp): Remove.
6317 (score_unwind_sp): New function.
6318 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
6320 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
6322 * buildsym.c (start_subfile): Handle absolute pathnames
6323 while comparing subfile names.
6325 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6327 * hppa-hpux-tdep.c: Include "regcache.h".
6328 * hppa-linux-tdep.c: Likewise.
6329 * hppa-tdep.c: Include "gdb_stdint.h".
6330 (find_unwind_entry): Cast host pointer to uintptr_t before passing
6332 * Makefile.in: Update dependencies.
6334 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6336 * blockframe.c: Remove obsolete comments.
6337 * alpha-nat.c (fetch_osf_core_registers): Update comment.
6338 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
6339 * hppa-tdep.h (enum hppa_regnum): Likewise.
6340 * mips-tdep.h: Likewise.
6341 * m68hc11-tdep.c: Likewise.
6343 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6345 * inferior.h (read_sp): Remove prototype.
6346 * regcache.c (read_sp): Remove.
6347 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
6348 * infcall.c (call_function_by_hand): Likewise.
6349 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
6351 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6353 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6355 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
6356 instead of read_register and read_register_pid.
6358 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
6359 argument instead of PTID. Use regcache functions instead of
6361 (ia64_linux_insert_watchpoint): Update call.
6362 (ia64_linux_stopped_data_address): Use regcache functions
6363 instead of read_register_pid and write_register_pid.
6365 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6367 * libunwind-frame.h (struct regcache): Add forward declaration.
6368 (libunwind_get_reg_special): Add REGCACHE argument.
6369 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
6370 argument. Pass it to unw_init_remote_p.
6372 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
6373 libunwind_get_reg_special.
6374 (ia64_access_reg): Remove "write" case.
6375 (ia64_access_fpreg): Likewise. Read from next_frame passed
6376 as callback argument instead of from current_regcache.
6377 (ia64_access_rse_reg): Remove "write" case. Read from regcache
6378 passed as callback argument instead of from current_regcache.
6379 (ia64_access_rse_fpreg): New function.
6380 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
6382 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6384 * NEWS: Mention SPU overlay support.
6386 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6388 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
6390 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6392 * breakpoint.c (remove_breakpoint): Do not remove software
6393 breakpoints in unmapped overlay sections.
6395 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6397 * spu-tdep.c: Include "observer.h".
6398 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
6399 (spu_overlay_data): New variable.
6400 (struct spu_overlay_table): New type.
6401 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
6402 spu_overlay_new_objfile): New functions.
6403 (spu_gdbarch_init): Install spu_overlay_update.
6404 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
6405 allocate spu_overlay_data objfile data.
6407 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6409 * gdbarch.sh (overlay_update): New gdbarch function.
6410 (struct obj_section): Add forward declaration.
6411 * gdbarch.c, gdbarch.h: Regenerate.
6413 * symfile.c (simple_overlay_update): Make global.
6414 (target_overlay_update): Remove variable.
6415 (overlay_is_mapped): Call gdbarch_overlay_update instead of
6416 target_overlay_update.
6417 (overlay_load_command): Likewise.
6418 * symfile.h (struct obj_section): Add forward declaration.
6419 (simple_overlay_update): Add prototype.
6421 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
6423 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6425 * observer.sh: Add "struct objfile" forward declaration.
6426 * target.h (deprecated_target_new_objfile_hook): Remove.
6427 * symfile.c (deprecated_target_new_objfile_hook): Remove.
6428 (clear_symtab_users): Call observer_notify_new_objfile.
6429 (symbol_file_add_with_addrs_or_offsets): Likewise.
6430 * rs6000-nat.c: Include "observer.h".
6431 (vmap_ldinfo): Call observer_notify_new_objfile.
6432 (xcoff_relocate_core): Likewise.
6433 * remote.c (remote_new_objfile_chain): Remove.
6434 (remote_new_objfile): Do not call remote_new_objfile_chain.
6435 (_initialize_remote): Use observer_attach_new_objfile.
6436 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
6437 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
6438 (_initialize_tui_hooks): Use observer_attach_new_objfile.
6439 * aix-thread.c: Include "observer.h".
6440 (target_new_objfile_chain): Remove.
6441 (new_objfile): Do not call target_new_objfile_chain.
6442 (_initialize_aix_thread): Use observer_attach_new_objfile.
6443 * hpux-thread.c: Include "observer.h"
6444 (target_new_objfile_chain): Remove.
6445 (hpux_thread_new_objfile): Make static. Do not call
6446 target_new_objfile_chain.
6447 (_initialize_hpux_thread): Use observer_attach_new_objfile.
6448 * linux-thread-db.c: Include "observer.h".
6449 (target_new_objfile_chain): Remove.
6450 (thread_db_new_objfile): Do not call target_new_objfile_chain.
6451 (_initialize_thread_db): Use observer_attach_new_objfile.
6452 * sol-thread.c: Include "observer.h".
6453 (target_new_objfile_chain): Remove.
6454 (sol_thread_new_objfile): Make static. Do not call
6455 target_new_objfile_chain.
6456 (_initialize_sol_thread): Use observer_attach_new_objfile.
6457 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
6458 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
6461 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6463 * gdbarch.sh (remote_translate_xfer_address): Remove.
6464 * gdbarch.h, gdbarch.c: Regenerate.
6465 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
6466 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
6467 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
6468 call gdbarch_remote_translate_xfer_address.
6469 * frv-tdep.c (frv_gdbarch_init): Do not call
6470 set_gdbarch_remote_translate_xfer_address.
6471 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
6472 (ia64_gdbarch_init): Do not install it.
6474 2007-05-11 Bob Wilson <bob.wilson@acm.org>
6476 * NEWS: Mention change in handling the -tui option.
6478 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
6480 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
6483 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6485 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
6486 (breakpoint_inserted_here_p): Call it.
6487 (software_breakpoint_inserted_here_p): Likewise.
6489 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
6491 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
6492 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
6493 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
6494 (inf_ptrace_store_register): Likewise.
6495 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
6496 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
6498 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
6500 * linux-nat.c (linux_trad_target): Adapt parameter list.
6501 * linux-nat.h (linux_trad_target): Likewise.
6503 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
6505 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
6506 (mips_linux_cannot_store_register): Likewise.
6507 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
6508 Return (CORE_ADDR) -1 for registers that cannot be fetched or
6509 stored via ptrace. Use GDBARCH instead of current_gdbarch.
6510 (mips64_linux_register_addr): Likewise.
6511 (mips_linux_register_u_offset): Adapt parameter list. Pass
6512 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
6514 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6515 * config/mips/nm-linux.h: Delete file.
6517 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
6519 * remote.c (remote_detach): Error out if remote can't detach.
6521 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
6523 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
6524 instruction's opcode in the "opcode" variable and declares new
6525 variable "closing_insn".
6527 2007-05-10 Chris Dearman <chris@mips.com>
6528 Maciej W. Rozycki <macro@mips.com>
6530 * cli/cli-setshow.c (do_setshow_command): Remove trailing
6531 whitespace when setting a var_filename.
6533 2007-05-09 Bob Wilson <bob.wilson@acm.org>
6535 * main.c (captured_main): Recognize -tui option and print an error
6536 message when the TUI is not configured.
6538 2007-05-09 Andreas Schwab <schwab@suse.de>
6540 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
6541 set removed members.
6542 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
6544 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6546 * gdbarch.sh (deprecated_store_struct_return): Remove.
6547 * gdbarch.c, gdbarch.h: Regenerate.
6548 * frv-tdep.c (frv_store_struct_return): Remove.
6549 (frv_gdbarch_init): Do not install it.
6551 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6553 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
6554 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
6555 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
6557 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6559 * spu-linux-nat.c: Include "gdb_stdint.h".
6560 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
6561 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
6562 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
6563 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
6564 (spu_child_wait): Mark up string for translation.
6566 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
6567 Luis Machado <luisgpm@br.ibm.com>
6569 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
6570 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
6571 BC_INSTRUCTION): Define.
6572 (deal_with_atomic_sequence): New function.
6573 (rs6000_software_single_step): Call deal_with_atomic_sequence.
6574 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
6575 gdbarch_software_single_step routine.
6577 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
6579 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
6580 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
6581 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
6582 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
6583 spu_child_post_attach, spu_fetch_inferior_registers,
6584 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
6585 memory addresses as ULONGEST, not CORE_ADDR.
6587 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
6589 * gdbarch.sh: Add skip_permanent_breakpoint callback.
6590 * gdbarch.h, gdbarch.c: Regenerate.
6592 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
6593 (resume): Call gdbarch_skip_permanent_breakpoint instead of
6594 SKIP_PERMANENT_BREAKPOINT. Inline default case.
6596 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
6597 Add REGCACHE argument. Use it instead of read/write_register.
6598 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
6600 * config/pa/tm-hppah.h: Delete file.
6601 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
6602 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
6604 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
6606 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
6607 * NEWS: Mention improved C++ thunk support.
6608 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
6609 * cp-abi.c (cplus_skip_trampoline): New.
6610 * cp-abi.h (cplus_skip_trampoline): New prototype.
6611 (struct cp_abi_ops): Add skip_trampoline member.
6612 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
6613 (init_gnuv3_ops): Set skip_trampoline.
6615 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
6617 * rs6000-tdep.c (struct frame_extra_info): Delete.
6619 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
6621 * linux-thread-db.c: Update some FIXME comments.
6622 (thread_db_xfer_partial): Delete.
6623 (init_thread_db_ops): Do not set to_xfer_partial.
6625 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6627 * inftarg.c, infptrace.c: Remove files.
6628 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
6629 (inftarg.o, infptrace.o): Remove rules.
6630 * gdbcore.h (register_addr): Remove prototype.
6631 * inferior.h (kill_inferior, store_inferior_registers,
6632 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
6633 call_ptrace, pre_fork_inferior): Remove prototypes.
6634 * target.h (child_xfer_memory, child_pid_to_exec_file,
6635 child_core_file_to_sym_file, child_post_attach,
6636 child_post_startup_inferior, child_acknowledge_created_inferior,
6637 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
6638 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
6639 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
6640 child_follow_fork, child_reported_exec_events_per_exec_call,
6641 child_has_exited, child_thread_alive): Remove prototypes.
6643 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6645 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
6646 (sparc_store_inferior_registers): Likewise.
6647 * sparc-nat.c (fetch_inferior_registers): Rename to ...
6648 (sparc_fetch_inferior_registers): ... this.
6649 (store_inferior_registers): Rename to ...
6650 (sparc_store_inferior_registers): ... this.
6651 (sparc_target): Update callback names.
6652 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
6653 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
6655 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6657 * linux-nat.c (child_post_attach): Rename to ...
6658 (linux_child_post_attach): ... this. Make static.
6659 (child_follow_fork): Rename to ...
6660 (linux_child_follow_fork): ... this. Make static.
6661 (child_insert_fork_catchpoint): Rename to ...
6662 (linux_child_insert_fork_catchpoint): ... this. Make static.
6663 (child_insert_vfork_catchpoint): Rename to ...
6664 (linux_child_insert_vfork_catchpoint): ... this. Make static.
6665 (child_insert_exec_catchpoint): Rename to ...
6666 (linux_child_insert_exec_catchpoint): ... this. Make static.
6667 (child_pid_to_exec_file): Rename to ...
6668 (linux_child_pid_to_exec_file): ... this. Make static.
6670 (linux_handle_extended_wait): Update call.
6671 (linux_xfer_partial): Update callback routine names.
6673 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6675 * configure.host (alpha*-*-osf[12]*): Remove support.
6676 * NEWS: Mention removed configurations.
6678 * config/alpha/alpha-osf1.mh: Delete file.
6679 * config/alpha/alpha-osf2.mh: Delete file.
6680 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
6682 * config/alpha/nm-osf.h: Delete file.
6683 * config/alpha/nm-osf2.h: Delete file.
6684 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
6685 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
6686 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
6688 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
6689 (register_addr, kernel_u_size): Remove.
6690 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
6692 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6694 * regcache.c (regcache_invalidate): New function.
6695 (register_cached): Remove.
6696 (set_register_cached): Remove.
6697 (deprecated_registers_fetched): Remove.
6698 (registers_changed): Use regcache_invalidate instead
6699 of set_register_cached.
6700 (regcache_raw_read): Update comment.
6702 * regcache.h (regcache_invalidate): Add prototype.
6703 (register_cached): Remove.
6704 (set_register_cached): Remove.
6705 (deprecated_registers_fetched): Remove.
6707 * findvar.c (value_of_register): Do not call register_cached.
6708 * frame.c (frame_register): Likewise.
6709 * tui/tui-regs.c (tui_get_register): Likewise.
6711 * remote.c (fetch_register_using_p): Do not call set_register_cached.
6712 (process_g_packet): Likewise.
6713 (remote_fetch_registers): Likewise.
6714 * remote-sim.c (gdbsim_fetch_register): Likewise.
6715 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
6716 by regcache_invalidate.
6717 (mt_pseudo_register_write): Likewise.
6718 * sh-tdep.c (sh_pseudo_register_write): Likewise.
6720 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
6721 call by loop over regcache_raw_supply (..., NULL).
6723 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6725 * target.h (struct target_ops): Add REGCACHE parameter to
6726 to_prepare_to_store.
6727 (target_prepare_to_store): Likewise.
6728 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
6729 (update_current_target): Adapt prepare_to_store de_fault rule.
6731 * regcache.c (regcache_raw_write): Pass regcache to
6732 target_prepare_to_store.
6734 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
6735 Do not call CHILD_PREPARE_TO_STORE.
6736 * gnu-nat.c (gnu_prepare_to_store): Likewise.
6737 * procfs.c (procfs_prepare_to_store): Likewise.
6739 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
6740 * go32-nat.c (go32_prepare_to_store): Likewise.
6741 * monitor.c (monitor_prepare_to_store): Likewise.
6742 * nto-procfs.c (procfs_prepare_to_store): Likewise.
6743 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
6744 * remote-mips.c (mips_prepare_to_store): Likewise.
6745 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
6746 * win32-nat.c (win32_prepare_to_store): Likewise.
6748 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
6749 Use it instead of current_regcache.
6751 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
6752 parameter. Pass it on to next target.
6753 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
6755 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6757 * target.h (struct regcache): Add forward declaration.
6758 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
6759 and to_store_registers target operations.
6760 (target_fetch_registers, target_store_registers): Update.
6762 * regcache.c (regcache_raw_read): Replace register_cached by
6763 regcache_valid_p. Pass regcache to target_fetch_registers.
6764 (regcache_raw_write): Pass regcache to target_store_registers.
6766 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
6767 store_regs, store_wmmx_regs): Replace register_cached by
6770 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
6771 to target_fetch_registers calls.
6772 * corelow.c (core_open): Likewise.
6773 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
6774 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
6775 ps_lsetfpregs): Likewise.
6776 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
6777 ps_lsetfpregs): Likewise.
6778 * win32-nat.c (win32_resume): Likewise.
6779 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
6780 to target_store_registers call.
6781 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6783 * inferior.h (store_inferior_registers): Update prototype.
6784 (fetch_inferior_registers): Likewise.
6785 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
6786 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
6787 Update function pointer signatures.
6789 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
6790 use it instead of current_regcache, update calls.
6791 (aix_thread_store_registers): Likewise.
6792 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
6793 (alphabsd_store_inferior_registers): Likewise.
6794 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
6795 (amd64bsd_store_inferior_registers): Likewise.
6796 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
6797 (amd64_linux_store_inferior_registers): Likewise.
6798 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
6799 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
6800 fetch_wmmx_regs, store_wmmx_regs): Likewise.
6801 (arm_linux_fetch_inferior_registers): Likewise.
6802 (arm_linux_store_inferior_registers): Likewise.
6803 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
6804 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
6805 (store_register, store_regs, store_fp_register, store_fp_regs,
6806 armnbsd_store_registers): Likewise.
6807 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
6808 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
6809 (bsd_uthread_store_registers): Likewise.
6810 * corelow.c (get_core_registers): Likewise.
6811 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
6812 go32_store_registers): Likewise.
6813 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
6814 (hppabsd_store_registers): Likewise.
6815 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
6816 (hppa_hpux_fetch_inferior_registers): Likewise.
6817 (hppa_hpux_store_register): Likewise.
6818 (hppa_hpux_store_inferior_registers): Likewise.
6819 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
6820 (hppa_linux_fetch_inferior_registers): Likewise.
6821 (hppa_linux_store_inferior_registers): Likewise.
6822 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
6823 (hpux_thread_store_registers): Likewise.
6824 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
6825 (i386bsd_store_inferior_registers): Likewise.
6826 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
6827 gnu_store_registers): Likewise.
6828 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
6829 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
6831 (i386_linux_fetch_inferior_registers): Likewise.
6832 (i386_linux_store_inferior_registers): Likewise.
6833 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
6834 (ia64_linux_fetch_registers): Likewise.
6835 (ia64_linux_store_register): Likewise.
6836 (ia64_linux_store_registers): Likewise.
6837 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
6838 (inf_child_store_inferior_registers): Likewise.
6839 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
6840 (inf_ptrace_fetch_registers): Likewise.
6841 (inf_ptrace_store_register): Likewise.
6842 (inf_ptrace_store_registers): Likewise.
6843 * infptrace.c (fetch_register, store_register): Likewise.
6844 (fetch_inferior_registers, store_inferior_registers): Likewise.
6845 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
6846 (m32r_linux_fetch_inferior_registers): Likewise.
6847 (m32r_linux_store_inferior_registers): Likewise.
6848 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
6849 (m68kbsd_store_inferior_registers): Likewise.
6850 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
6851 store_register, old_store_inferior_registers, fetch_regs, store_regs,
6852 fetch_fpregs, store_fpregs): Likewise.
6853 (m68k_linux_fetch_inferior_registers): Likewise.
6854 (m68k_linux_store_inferior_registers): Likewise.
6855 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
6856 (m88kbsd_store_inferior_registers): Likewise.
6857 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
6858 (mips64obsd_store_inferior_registers): Likewise.
6859 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
6860 (mips64_linux_regsets_store_registers): Likewise.
6861 (mips64_linux_fetch_registers): Likewise.
6862 (mips64_linux_store_registers): Likewise.
6863 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
6864 (mipsnbsd_store_inferior_registers): Likewise.
6865 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
6866 (monitor_fetch_registers, monitor_store_registers): Likewise.
6867 * nto-procfs.c (procfs_fetch_registers): Likewise.
6868 (procfs_store_registers): Likewise.
6869 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
6870 fetch_register, supply_vrregset, fetch_altivec_registers,
6871 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
6872 (store_altivec_register, store_spe_register, store_register,
6873 fill_vrregset, store_altivec_registers, store_ppc_registers,
6874 ppc_linux_store_inferior_registers): Likewise.
6875 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
6876 (ppcnbsd_store_inferior_registers): Likewise.
6877 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
6878 (ppcobsd_store_registers): Likewise.
6879 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
6880 * remote.c (fetch_register_using_p, process_g_packet,
6881 fetch_registers_using_g, remote_fetch_registers): Likewise.
6882 (store_register_using_P, store_registers_using_G,
6883 remote_store_registers): Likewise.
6884 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
6885 m32r_store_register, m32r_store_register): Likewise.
6886 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
6887 * remote-sim.c (gdbsim_fetch_register): Likewise.
6888 (gdbsim_store_register): Likewise.
6889 * rs6000-nat.c (fetch_register, store_register): Likewise.
6890 (rs6000_fetch_inferior_registers): Likewise.
6891 (rs6000_store_inferior_registers): Likewise.
6892 * s390-nat.c (fetch_regs, store_regs): Likewise.
6893 (fetch_fpregs, store_fpregs): Likewise.
6894 (s390_linux_fetch_inferior_registers): Likewise.
6895 (s390_linux_store_inferior_registers): Likewise.
6896 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
6897 (shnbsd_store_inferior_registers): Likewise.
6898 * sol-thread.c (sol_thread_fetch_registers): Likewise.
6899 (sol_thread_store_registers): Likewise.
6900 * sparc-nat.c (fetch_inferior_registers): Likewise.
6901 (store_inferior_registers): Likewise.
6902 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
6903 (spu_store_inferior_registers): Likewise.
6904 * target.c (debug_print_register): Likewise.
6905 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
6906 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
6907 (vaxbsd_store_inferior_registers): Likewise.
6908 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
6909 (win32_fetch_inferior_registers): Likewise.
6910 (win32_store_inferior_registers): Likewise.
6912 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6914 * gdbcore.h (struct regcache): Add forward declaration.
6915 (struct core_fns): Add REGCACHE argument to core_read_registers
6917 * corelow.c (get_core_register_section): Add REGCACHE argument,
6918 use it instead of current_regcache, pass it to core_read_registers
6920 (get_core_registers): Add current_regcache as parameter to
6921 get_core_register_section calls.
6923 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
6924 use it instead of current_regcache.
6925 * armnbsd-nat.c (fetch_core_registers): Likewise.
6926 (fetch_elfcore_registers): Likewise.
6927 * core-regset.c (fetch_core_registers): Likewise.
6928 * cris-tdep.c (fetch_core_registers): Likewise.
6929 * irix5-nat.c (fetch_core_registers): Likewise.
6930 * m68klinux-nat.c (fetch_core_registers): Likewise.
6931 * mips-linux-tdep.c (fetch_core_registers): Likewise.
6932 * win32-nat.c (fetch_elf_core_registers): Likewise.
6934 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6936 * gregset.h (struct regcache): Add forward declaration.
6937 (supply_gregset): Add REGCACHE parameter, make GREGS const.
6938 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
6939 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
6940 (fill_gregset): Add REGCACHE parameter.
6941 (fill_fpregset): Likewise.
6942 (fill_fpxregset): Likewise.
6944 Update all definitions accordingly:
6945 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
6946 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
6947 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
6948 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
6949 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
6950 (supply_gregset): Add REGCACHE parameter, use it instead of
6951 current_regcache. Make GREGSETP parameter const, adapt casts.
6952 (supply_fpregset): Add REGCACHE parameter, use it instead of
6953 current_regcache. Make FPREGSETP parameter const, adapt casts.
6954 (fill_gregset): Add REGCACHE parameter, use it instead of
6956 (fill_fpregset): Likewise.
6958 Update all callers to pass in current_regcache as the new argument:
6959 * core-regset.c: Include "regcache.h".
6960 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
6961 * procfs.c: Include "regcache.h".
6962 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
6963 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
6964 (procfs_do_thread_registers): Likewise.
6965 (procfs_make_note_section): Likewise.
6966 * proc-service.c: Include "regcache.h".
6967 (ps_lgetregs): Update fill_gregset call.
6968 (ps_lsetregs): Update supply_gregset call.
6969 (ps_lgetfpregs): Update fill_fpregset call.
6970 (ps_lsetfpregs): Update supply_fpregset call.
6971 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
6972 supply_fpregset calls.
6973 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
6974 (ps_lgetregs): Update fill_gregset call.
6975 (ps_lsetregs): Update supply_gregset call.
6976 (ps_lgetfpregs): Update fill_fpregset call.
6977 (ps_lsetfpregs): Update supply_fpregset call.
6979 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
6980 fill_fpregset, and fill_fpxregset calls.
6981 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
6982 (store_regs): Update fill_gregset call.
6983 (fetch_fpregs): Update supply_fpregset call.
6984 (store_fpregs): Update fill_fpregset call.
6985 (fetch_fpxregs): Update supply_fpxregset call.
6986 (store_fpxregs): Update fill_fpxregset call.
6987 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
6988 (store_regs): Update fill_gregset call.
6989 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
6990 (store_regs): Update fill_gregset call.
6991 (fetch_fpregs): Update supply_fpregset call.
6992 (store_fpregs): Update fill_fpregset call.
6993 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
6994 * s390-nat.c (fetch_regs): Update supply_gregset call.
6995 (store_regs): Update fill_gregset call.
6996 (fetch_fpregs): Update supply_fpregset call.
6997 (store_fpregs): Update fill_fpregset call.
6999 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
7002 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7004 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
7005 it instead of current_regcache.
7006 (parse_register_dump): Add REGCACHE parameter, pass it to
7007 supply_register callback.
7008 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
7009 parse_register_dump.
7010 (monitor_dump_regs): Add REGCACHE parameter, pass it to
7011 parse_register_dump and dumpregs callback.
7012 (monitor_wait): Pass current_regcache to parse_register_dump and
7014 (monitor_fetch_register): Pass current_regcache to
7015 monitor_supply_register.
7016 (monitor_fetch_registers): Pass current_regcache to
7018 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
7019 supply_register and dumpregs callbacks.
7020 (monitor_supply_register, monitor_dump_reg_block): Update
7022 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
7023 it to monitor_supply_register.
7024 * dink32-rom.c (dink32_supply_register): Likewise.
7025 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
7026 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
7027 instead of current_regcache.
7029 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7031 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
7032 Add REGCACHE parameter. Use it instead of current_regcache.
7033 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
7034 i386nto_supply_gregset and i386nto_supply_fpregset.
7035 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
7036 of current_regcache.
7038 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
7039 nto_supply_ helper functions.
7040 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
7042 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
7044 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
7045 supply_greget, supply_fpregset, supply_altregset, supply_regset,
7046 and regset_fill member function pointers.
7047 (nto_dummy_supply_regset): Adapt prototype.
7049 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7051 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
7052 instead of current_regcache. Make REGS const.
7053 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
7054 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
7056 * shnbsd-nat.c: Include "regcache.h".
7057 (shnbsd_fetch_inferior_registers): Pass current_regcache to
7059 (shnbsd_store_inferior_registers): Pass current_regcache to
7061 * Makefile.in (shbsd-nat.o): Update dependencies.
7063 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7065 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
7066 instead of current_regcache.
7067 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
7068 Make GREGSETP const, remove superfluous casts.
7069 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7070 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
7072 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7073 (supply_64bit_reg): Likewise
7074 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
7075 Make GREGSETP const, adapt casts accordingly.
7076 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7077 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
7079 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7080 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
7082 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
7083 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
7084 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
7086 * mips-linux-nat.c: Include "regcache.h".
7087 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7088 current_regcache to mips{64}_(supply|fill)_ helper routines.
7089 (mips64_linux_regsets_fetch_registers): Likewise.
7090 (mips64_linux_regsets_store_registers): Likewise.
7092 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
7093 REGCACHE argument; replace current_regcache. Make REGS const.
7094 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
7095 replace current_regcache.
7096 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
7097 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
7098 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
7099 mipsnbsd_store_inferior_registers): Pass current_regcache to
7100 mipsnbsd_(supply|fill)_... helper routines.
7102 * Makefile.in (mips-linux-nat.o): Update dependencies.
7104 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7106 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
7107 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
7108 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
7109 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
7110 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
7111 * i386gnu-nat.c (store_fpregs): Likewise.
7112 * i386v4-nat.c (fill_fpregset): Likewise.
7113 * go32-nat.c (store_register, go32_store_registers): Likewise.
7115 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7117 * cris-tdep.c (supply_gregset): Rename to ...
7118 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
7119 instead of current_regcache.
7120 (fetch_core_registers): Update call. Pass current_regcache.
7122 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7124 * arnmnbsd-nat.c (supply_gregset): Rename to ...
7125 (arm_supply_gregset): ... this. Add REGCACHE parameter.
7126 Use it instead of current_regcache.
7127 (supply_fparegset): Rename to ...
7128 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
7129 Use it instead of current_regcache.
7130 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
7131 (fetch_core_registers, fetch_elfcore_registers): Likewise.
7133 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7135 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
7136 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
7137 use it instead of current_regcache.
7138 * alpha-tdep.h (struct regcache): Add forward declaration.
7139 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
7140 alpha_fill_fp_regs): Update prototypes.
7142 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
7143 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
7144 * alpha-linux-nat.c: Include "regcache.h".
7145 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7146 current_regcache to alpha_supply/fill_ routines.
7148 * alphabsd-tdep.c: Include "regcache.h".
7149 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
7150 pass it to alpha_supply_ routines. Make REGS const.
7151 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
7152 pass it to alpha_fill_ routines.
7153 * alphabsd-tdep.h (struct regcache): Add forward declaration.
7154 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
7155 alphabsd_fill_fpreg): Update prototypes.
7157 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7158 fill_fpregset, alphabsd_fetch_inferior_registers,
7159 alphabsd_store_inferior_registers): Pass current_regcache to
7160 alphabsd_supply/fill_ routines.
7162 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
7165 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7167 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
7168 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
7169 instead of current_regcache.
7170 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
7171 REGCACHE parameter, pass it to supply_ routines.
7172 (aix_thread_fetch_registers): Pass current_regcache to
7173 fetch_regs_user_thread and fetch_regs_kernel_thread.
7175 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
7176 Add REGCACHE parameter, use it instead of current_regcache.
7177 Call regcache_valid_p instead of register_cached.
7178 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
7179 Also, pass REGCACHE to fill_ routines.
7180 (aix_thread_store_registers): Pass current_regcache to
7181 store_regs_user_thread and store_regs_kernel_thread.
7183 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7185 * m32r-linux-nat.c (supply_gregset): Do not modify contents
7186 pointed to by GREGSETP.
7188 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7190 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
7191 of regcache_raw_read_signed.
7192 (fill_fpregset): Use regcache_raw_collect instead of
7195 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7197 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
7198 point arguments, test explicitly for use of the EABI32 ABI
7199 instead of inferring this condition from tests on register
7202 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7204 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
7205 prior to allocating its location.
7207 2007-05-02 Maciej W. Rozycki <macro@mips.com>
7209 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
7210 based on mips_abi_regsize() whose result is known in advance.
7211 (mips_o64_push_dummy_call): Likewise.
7213 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
7215 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
7216 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
7218 * mips-linux-nat.c: Include "gregset.h".
7219 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
7220 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
7221 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
7222 fill_fpregset): Move to mips-linux-nat.c.
7224 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
7226 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7228 * regcache.c (deprecated_read_register_gen): Remove, inline ...
7229 (read_register): ... here.
7230 (deprecated_write_register_gen): Remove, inline ...
7231 (write_register): ... here.
7232 * regcache.h (deprecated_read_register_gen): Remove prototype.
7233 (deprecated_write_register_gen): Likewise.
7235 * remote-sim.c (gdbsim_store_register): Replace call to
7236 deprecated_read_register_gen with regcache_cooked_read.
7237 * target.c (debug_print_register): Replace calls to
7238 deprecated_read_register_gen and read_register with
7239 regcache_cooked_read.
7241 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7243 * hpux-thread.c (hpux_thread_store_registers): Use
7244 regcache_raw_collect, not regcache_raw_read.
7245 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
7246 not regcache_raw_write.
7248 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7250 * gdbarch.sh: Remove deprecated_register_byte.
7251 * gdbarch.c, gdbarch.h: Regenerate.
7252 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
7253 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
7255 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
7256 * regcache.c (regcache_valid_p): Allow to query cooked registers in
7257 read-only register caches. Make REGCACHE parameter const.
7258 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
7260 * mi/mi-main.c (old_regs): Remove.
7261 (mi_setup_architecture_data, _initialize_mi_main): Remove.
7262 (register_changed_p): Reimplement to compare two register caches.
7263 (mi_cmd_data_list_changed_registers): Update caller.
7264 * mi/mi-main.h (mi_setup_architecture_data): Remove.
7265 * mi/mi-interp.c (mi_interpreter_init): Do not call
7266 mi_setup_architecture_data.
7268 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7270 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
7271 inline definition at the places the macros are used.
7272 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
7274 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7276 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
7278 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
7279 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
7280 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
7281 (rs6000_aix_regset_from_core_section): New function.
7282 (rs6000_aix_init_osabi): Register it.
7283 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
7284 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
7285 * rs6000-nat.c (CoreRegs): Do not define type.
7286 (fetch_core_registers, rs6000_core_fns): Remove.
7287 (_initialize_core_rs6000): Do not register it. Rename to ...
7288 (_initialize_rs6000_nat): ... this.
7289 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
7291 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7293 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
7294 (dwarf2_read_address): Sign extend return address as required by
7295 target architecture.
7297 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7299 * solib-frv.c (lm_base): Bail out if the main executable has
7302 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7304 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
7305 of FPCR register in fpregset.
7307 2007-04-27 Maciej W. Rozycki <macro@mips.com>
7309 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
7310 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
7312 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7314 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
7315 * rs6000-nat.c (rs6000_wait): New function.
7316 (_initialize_core_rs6000): Install it as to_wait target method.
7317 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
7319 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7321 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
7322 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
7323 * rs6000-nat.c (super_create_inferior): New variable.
7324 (rs6000_create_inferior): Make static. Adapt argument list. Call
7325 original version of create_inferior via super_create_inferior.
7326 (_initialize_core_rs6000): Install to_create_inferior target method.
7328 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7330 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
7331 (aix_thread_xfer_partial): ... this.
7332 (init_aix_thread_ops): Install to_xfer_partial instead
7333 of deprecated_xfer_memory target method.
7335 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
7336 and inftarg.o, add inf-ptrace.o.
7337 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
7338 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
7339 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
7340 (fetch_inferior_registers): Rename to ...
7341 (rs6000_fetch_inferior_registers): ... this. Make static.
7342 (store_inferior_registers): Rename to ...
7343 (rs6000_store_inferior_registers): ... this. Make static.
7344 (read_word, child_xfer_memory): Remove.
7345 (rs6000_xfer_partial): New function.
7346 (kernel_u_size): Remove.
7347 (_initialize_core_rs6000): Add inf_ptrace-based target.
7348 * Makefile.in (rs6000-nat.o): Update dependencies.
7350 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7352 * inf-ptrace.c: Include "gdb_stdint.h".
7353 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
7354 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
7355 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
7356 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
7357 (inf_ptrace_store_register): Likewise.
7358 * Makefile.in (inf-ptrace.o): Update dependencies.
7360 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7362 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
7363 * configure.tgt (rs6000-*-*): Likewise.
7364 * config/rs6000/aix4.mh: Delete file.
7365 * config/rs6000/aix4.mt: Delete file.
7366 * config/rs6000/rs6000.mh: Delete file.
7367 * config/rs6000/rs6000.mt: Delete file.
7369 * config/powerpc/nm-aix.h: Delete file.
7370 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
7372 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7374 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
7375 Remove obsolete part of comment.
7376 (store_regs_user_thread): Use uint32_t temporaries when calling
7378 (store_regs_kernel_thread): Likewise. Add assertion to verify
7379 correct size of struct ptsprs members.
7380 (aix_thread_xfer_memory): Fix type of myaddr.
7381 (aix_thread_extra_thread_info): Fix compiler warning.
7382 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
7383 (fetch_register, store_register): Adapt callers.
7385 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7387 * vec.h (vec_free): Rename to vec_free_. Adapt users.
7389 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7391 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
7393 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
7394 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
7395 (alpha_linux_regset_from_core_section): New function.
7396 (alpha_linux_init_abi): Install it.
7397 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
7398 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
7399 <sys/procfs.h>, and "gregset.h".
7400 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
7401 Move from config/alpha/nm-linux.h.
7402 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
7404 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
7405 * alpha-nat.c: Remove #ifdef __linux__ section.
7406 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
7407 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
7408 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
7409 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
7410 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
7411 (NATDEPFILES): Remove alpha-nat.o.
7412 * config/alpha/nm-linux.h: Delete file.
7413 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
7414 * Makefile.in (alpha-linux-nat.o): Update dependencies.
7415 (alpha-linux-tdep.o): Likewise.
7417 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7419 * mips-linux-nat.c: No longer include "gdbcore.h".
7420 (mips_linux_register_addr): Move from mips-linux-tdep.c.
7421 (mips64_linux_register_addr): Likewise.
7422 (mips_linux_register_u_offset): Call mips_linux_register_addr or
7423 mips64_linux_register_addr instead of register_addr.
7424 * mips-linux-tdep.c (mips_linux_register_addr,
7425 mips64_linux_register_addr): Move to mips-linux-nat.c.
7426 (register_addr): Remove.
7427 (register_addr_data, init_register_addr_data): Remove.
7428 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
7429 (set_mips_linux_register_addr): Remove.
7430 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
7431 * Makefile.in (mips-linux-nat.o): Update dependencies.
7433 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7435 * linux-nat.c (linux_register_u_offset): Remove.
7436 (linux_target_install_ops): New function.
7437 (linux_target): Use it.
7438 (linux_trad_target): New function.
7439 * linux-nat.h (linux_trad_target): Declare.
7441 * alpha-linux-nat.c: Include "gdbcore.h".
7442 (alpha_linux_register_u_offset): New function.
7443 (_initialize_alpha_linux_nat): Use linux_trad_target.
7445 * mips-linux-nat.c: Include "gdbcore.h".
7446 (mips_linux_register_u_offset): New function.
7447 (_initialize_mips_linux_nat): Use linux_trad_target.
7449 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7450 * config/arm/nm-linux.h: Delete file.
7452 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
7453 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
7455 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7456 * config/ia64/nm-linux.h: Delete file.
7458 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7459 * config/m32r/nm-linux.h: Delete file.
7461 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7462 * config/m68k/nm-linux.h: Delete file.
7464 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7465 * config/pa/nm-linux.h: Delete file.
7467 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7468 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
7469 * config/powerpc/nm-linux.h: Delete file.
7471 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
7472 * config/s390/nm-linux.h: Delete file.
7474 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7475 * config/sparc/linux64.mh (NAT_FILE): Likewise.
7476 * config/sparc/nm-linux.h: Delete file.
7478 * Makefile.in (alpha-linux-nat.o): Update dependencies.
7479 (mips-linux-nat.o): Likewise.
7481 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7483 * core-aout.c: Delete file.
7484 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
7485 (core-aout.o): Delete rule.
7486 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
7488 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
7490 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
7491 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
7492 KERNEL_U_ADDR): Remove.
7494 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
7495 (cannot_fetch_register, cannot_store_register): Remove.
7496 (fetch_register): Inline cannot_fetch_register and register_addr.
7497 (store_register): Inline cannot_store_register and register_addr.
7498 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
7499 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
7500 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
7503 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
7504 (fetch_register): Inline register_addr.
7505 (store_register): Inline register_addr.
7506 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
7507 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
7508 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
7510 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
7511 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
7512 REGISTER_U_ADDR): Remove.
7514 * hppa-linux-nat.c (register_addr): Rename to ...
7515 (hppa_linux_register_addr): ... this. Make static.
7516 (fetch_register, store_register): Adapt callers.
7517 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
7519 * ppc-linux-nat.c (kernel_u_size): Remove.
7520 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
7522 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
7523 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
7525 * config/vax/nm-vax.h: Delete file.
7527 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
7529 * MAINTAINERS (Write After Approval): Add myself.
7531 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
7533 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
7534 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
7535 (m68k_linux_sigcontext_reg_offset): Fix typo.
7536 (target_is_uclinux): New.
7537 (m68k_linux_inferior_created): New.
7538 (m68k_linux_get_sigtramp_info): Check for uClinux or
7539 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
7541 (_initialize_m68k_linux_tdep): Register
7542 m68k_linux_inferior_created.
7544 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
7546 * win32-nat.c (win32_detach): Remove delete_command call.
7547 Resume inferior with win32_resume instead of win32_continue.
7549 2007-04-19 Jerome Guitton <guitton@adacore.com>
7551 * ser-mingw.c (fd_is_file): New function.
7552 (file_select_thread): New function.
7553 (ser_console_wait_handle): Add special handling for files.
7555 2007-04-18 Denis Pilat <denis.pilat@st.com>
7557 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
7558 when missing from DW_TAG_subrange_type. Remove the handling of null
7559 return from die_type.
7561 2007-04-18 Maciej W. Rozycki <macro@mips.com>
7563 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
7564 change to rearrange some brackets.
7565 (mips_n32n64_push_dummy_call): Likewise.
7566 (mips_o32_push_dummy_call): Likewise.
7567 (mips_o64_push_dummy_call): Likewise.
7569 2007-04-18 Denis Pilat <denis.pilat@st.com>
7571 * infcmd.c (post_create_inferior): Start with a call to
7572 target_terminal_ours.
7574 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7576 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
7578 (mips_n32n64_push_dummy_call): Likewise. Reformat some
7580 (mips_o32_push_dummy_call): Likewise.
7581 (mips_o64_push_dummy_call): Likewise.
7583 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7585 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
7588 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7590 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
7592 (mips_o32_push_dummy_call): Likewise.
7594 2007-04-17 Andreas Schwab <schwab@suse.de>
7596 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
7597 sal to be bigger than the end of the function.
7599 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7600 Nigel Stephens <nigel@mips.com>
7602 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
7603 argument alignment requirements when calculating stack space
7604 required. When aligning an arg register to eight bytes
7605 boundary, align stack_offset too. Write floating-point
7606 arguments to the appropriate integer register if need go there.
7607 (mips_o64_push_dummy_call): Likewise.
7609 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
7611 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
7612 "sig" arguments, add "regcache" argument.
7613 * gdbarch.c, gdbarch.h: Regenerate.
7615 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
7616 (handle_inferior_event): Call remove_single_step_breakpoints directly
7617 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
7619 * alpha-tdep.c (alpha_software_single_step): Update argument list.
7620 Remove handling of !insert_breakpoints_p case.
7621 * arm-tdep.c (arm_software_single_step): Likewise.
7622 * cris-tdep.c (cris_software_single_step): Likewise.
7623 * mips-tdep.c (mips_software_single_step): Likewise.
7624 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
7625 * sparc-tdep.c (sparc_software_single_step): Likewise.
7626 * spu-tdep.c (spu_software_single_step): Likewise.
7628 * alpha-tdep.h (alpha_software_single_step): Update prototype.
7629 * mips-tdep.h (mips_software_single_step): Likewise.
7630 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
7631 * sparc-tdep.h (sparc_software_single_step): Likewise.
7633 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
7635 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
7636 when removing single-step breakpoints.
7638 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
7640 * varobj.h (varobj_set_frozen): New
7641 (varobj_get_frozen): New.
7642 (varobj_update): New parameter explicit.
7643 * varobj.c (struct varobj): New fields frozen
7645 (varobj_set_frozen, varobj_get_frozen): New.
7646 (install_new_value): Don't fetch values for
7647 frozen variable object, or children thereof. Allow
7648 a frozen variable object to have non-fetched value.
7649 (varobj_update): Allow updating child variables.
7650 Don't traverse frozen children.
7651 (new_variable): Initialize the frozen field.
7652 (c_value_of_variable): Return NULL for frozen
7653 variable without any value yet.
7654 * mi/mi-cmd-var.c (varobj_update_one): New parameter
7656 (mi_cmd_var_create): Output the 'frozen' field,
7657 as soon as testsuite is adjusted to expect that field.
7658 (mi_cmd_var_set_frozen): New.
7659 (mi_cmd_var_update): Pass the 'explicit' parameter to
7661 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
7662 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
7664 2007-04-13 Paul Brook <paul@codesourcery.com>
7666 * target-descriptions.c (tdesc_named_type): Add ieee_single and
7668 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
7670 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7672 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
7673 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
7674 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
7675 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
7676 * Makefile.in: Remove references to deleted files.
7677 * README: Do not mention deleted ROM monitor interfaces.
7678 * defs.h (enum language): Delete language_scm.
7679 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
7680 (dump_subexp_body_standard): Likewise.
7681 * parse.c (operator_length_standard): Likewise.
7682 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
7683 * remote-mips.c: Do not include remote-utils.h.
7684 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
7686 * value.c: Do not include scm-lang.h.
7687 (unpack_long): Delete scm_unpack call.
7688 * config/h8300/h8300.mt, config/mips/embed.mt,
7689 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
7690 config/sh/embed.mt, config/sh/linux.mt: Remove references to
7692 * NEWS: Mention removed files.
7694 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7696 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
7697 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
7699 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7701 * NEWS: Mention removal of HP aCC support.
7703 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7705 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
7706 first entry for static executables.
7707 (breakpoint_addr): Delete unused variable.
7708 (elf_locate_base): Search for _r_debug in static executables.
7709 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
7712 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7714 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
7715 (bpstat_what, print_one_breakpoint, allocate_bp_location)
7716 (mention): Remove bp_through_sigtramp support.
7717 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
7719 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7721 * breakpoint.c (bpstat_what): Give step-resume higher priority than
7724 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7726 * infrun.c: Doc fixes.
7727 (handle_inferior_event): Clarify debug message.
7728 (insert_step_resume_breakpoint_at_sal): Print a debug message.
7730 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
7732 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
7734 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
7736 * config/m68k/tm-monitor.h: Delete file.
7737 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
7738 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
7740 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
7741 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
7743 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
7745 * gdbarch.sh (software_single_step): Change the return type
7746 from void to int and reformatted some comments to <= 80
7748 * gdbarch.c, gdbarch.h: Regenerated.
7749 * alpha-tdep.c (alpha_software_single_step): Likewise.
7750 * alpha-tdep.h (alpha_software_single_step): Likewise.
7751 * arm-tdep.c (arm_software_single_step): Likewise.
7752 * cris-tdep.c (cris_software_single_step): Likewise.
7753 * mips-tdep.c (mips_software_single_step): Likewise.
7754 * mips-tdep.h (mips_software_single_step): Likewise.
7755 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
7756 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
7757 * sparc-tdep.c (sparc_software_single_step): Likewise.
7758 * sparc-tdep.h (sparc_software_single_step): Likewise.
7759 * spu-tdep.c (spu_software_single_step): Likewise.
7760 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
7761 and act accordingly.
7763 2007-04-11 Steve Ellcey <sje@cup.hp.com>
7765 * configure.ac (build_warnings): Add -Wno-char-subscripts.
7766 * configure: Regenerate.
7767 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
7769 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7771 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
7773 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7775 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
7777 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
7778 distinct on the TYPE_STUB_SUPPORTED debug targets.
7779 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
7781 2007-04-11 Joel Brobecker <brobecker@adacore.com>
7783 * sparc-tdep.c (X_RS2): New macro.
7784 (sparc_skip_stack_check): New function.
7785 (sparc_analyze_prologue): Adjust PC past stack probing
7786 sequence if necessary.
7788 2007-04-10 Andreas Schwab <schwab@suse.de>
7790 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
7793 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
7795 * breakpoint.c (gdb_breakpoint_query): Really return an
7797 (gdb_breakpoint): Likewise.
7798 * thread.c (gdb_list_thread_ids): Likewise.
7799 (gdb_thread_select): Likewise.
7800 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
7801 (mi_cmd_thread_list_ids): Remove bogus initialization.
7803 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
7805 * Makefile.in (SFILES): Remove hpacc-abi.c.
7806 (COMMON_OBS): Remove hpacc-abi.o.
7807 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
7808 (hpacc-abi.o, hpread.o): Delete rules.
7809 * somread.c: Delete extern declarations from hpread.c.
7810 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
7811 (som_symfile_finish): Do not call hpread_symfile_finish.
7812 (som_symfile_init): Do not call hpread_symfile_init.
7813 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
7814 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
7815 * hpacc-abi.c, hpread.c: Deleted.
7817 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
7819 * solib-svr4.c (enable_break): Simplify return value.
7820 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
7822 2007-04-10 Andreas Schwab <schwab@suse.de>
7824 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
7825 l_ld_size, l_next_size, l_prev_size, l_name_size.
7827 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
7828 to extract addresses from link map.
7829 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
7830 (LM_NEXT): Likewise.
7831 (LM_NAME): Likewise.
7832 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
7833 (elf_locate_base): Likewise.
7834 (open_symbol_file_object): Likewise.
7835 (svr4_fetch_objfile_link_map): Likewise.
7836 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
7837 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
7839 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
7840 (svr4_lp64_fetch_link_map_offsets): Likewise.
7842 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
7843 removed members. Set l_ld_offset to -1 if not present.
7845 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
7847 Pass stderr of program run with "target remote |"
7849 * serial.c (serial_open): Set error_fd to -1.
7850 * serial.h (struct serial): New field error_fd.
7851 (struct serial_opts): New field avail.
7852 * ser-pipe.c (pipe_open): Create another pair
7853 of sockets. Pass stderr to gdb.
7854 * ser-mingw.c (pipe_windows_open): Pass
7855 PEX_STDERR_TO_PIPE to pex_run. Initialize
7858 (_initialize_ser_windows): Hook pipe_avail.
7859 * ser-base.c (generic_readchar): Check if there's
7860 anything in stderr channel and route that to gdb_stderr.
7862 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
7864 * dbxread.c (read_ofile_symtab): Move current_objfile
7865 clearing to after end_stabs.
7867 2007-04-01 Andreas Schwab <schwab@suse.de>
7869 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
7870 gdbarch instead of current_gdbarch.
7872 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
7874 * varobj.c (varobj_create): Keep varobj value
7875 NULL when evaluating the type.
7877 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
7879 * NEWS: Mention new Windows CE support.
7881 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
7883 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
7884 the obsoletion stanza.
7885 * NEWS: Mention deleted targets.
7887 * config/sh/tm-wince.h: Remove.
7888 * config/sh/wince.mt: Remove.
7889 * config/mips/tm-wince.h: Remove.
7890 * config/mips/wince.mt: Remove.
7893 * wince-stub.c: Remove.
7894 * wince-stub.h: Remove.
7895 * Makefile.in (wince.o): Remove rule.
7896 (wince-stub.o): Likewise.
7898 * mips-tdep.c (mips_next_pc): Make static.
7899 * mips-tdep.h (mips_next_pc): Remove declaration.
7900 * arm-tdep.c (arm_pc_is_thumb): Make static.
7901 (thumb_get_next_pc): Likewise.
7902 (arm_get_next_pc): Likewise.
7903 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
7904 (arm_pc_is_thumb): Likewise.
7905 (thumb_get_next_pc): Likewise.
7906 (arm_get_next_pc): Likewise.
7908 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
7910 * MAINTAINERS: Remove d10v entry.
7911 * Makefile.in (SFILES): Remove dwarfread.c.
7912 (COMMON_OBS): Remove dwarfread.o.
7913 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
7914 (remote-est.o, rom68k-rom.o): Delete.
7915 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
7916 target est, target rom68k, and DWARF 1.
7917 * configure.tgt: Mark d10v as removed.
7918 * dwarf2read.c: Doc update.
7919 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
7921 (elf_locate_sections): Do not set them.
7922 (elf_symfile_read): Do not call dwarf_build_psymtabs.
7923 * symfile.h (dwarf_build_psymtabs): Delete prototype.
7924 * config/m68k/monitor.mt (TDEPFILES): Prune.
7925 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
7926 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
7928 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
7930 * doublest.c (convert_floatformat_to_doublest): Use
7931 floatformat_classify.
7932 (floatformat_is_nan): Rename to...
7933 (floatformat_classify): ...this. Return more information.
7934 * doublest.h (enum float_kind): New.
7935 (floatformat_is_nan): Replace prototype...
7936 (floatformat_classify): ...with this one.
7937 * valprint.c (print_floating): Use floatformat_classify. Handle
7940 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
7942 * README: Mention ISO C library requirement.
7944 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
7946 * Makefile.in (SFILES): Remove nlmread.c.
7947 (COMMON_OBS): Remove nlmread.o.
7948 (nlmread.o): Delete rule.
7949 * README: Delete reference to remote-st.c.
7950 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
7951 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
7953 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
7954 (_initialize_i386_tdep): Do not reference them.
7955 * nlmread.c: Delete file.
7956 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
7957 * target.c: Doc update.
7958 * thread.c: Delete commented include.
7959 * config/alpha/tm-alpha.h: Doc update.
7961 2007-03-30 Chris Dearman <chris@mips.com>
7963 * utils.c (string_to_core_addr): Comment typo.
7965 2007-03-30 Chris Dearman <chris@mips.com>
7967 * mips-tdep.c: Comment typo.
7969 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
7971 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
7972 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
7973 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
7974 * config/powerpc/nm-ppc64-linux.h: Remove file.
7975 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
7976 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
7977 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
7978 * infptrace.c (call_ptrace): Likewise.
7979 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
7980 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
7981 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
7982 (store_register): Likewise.
7984 2007-03-29 Joel Brobecker <brobecker@adacore.com>
7986 * Makefile.in (varobj.o): Add missing dependency.
7988 2007-03-29 Michael Snyder <msnyder@access-company.com>
7990 * MAINTAINERS: Update my email address.
7992 2007-03-29 Joel Brobecker <brobecker@adacore.com>
7994 Add support for exception handling with multiple versions of
7996 * ada-lang.c: Update general comments on how Ada exception catchpoints
7998 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
7999 (__gnat_raise_nodefer_with_msg): Delete.
8000 (ada_unhandled_exception_name_addr_ftype): New type.
8001 (exception_support_info): New type.
8002 (ada_unhandled_exception_name_addr): Add forward declaration.
8003 (ada_unhandled_exception_name_addr_from_raise): Likewise.
8004 (default_exception_support_info): New constant.
8005 (exception_support_info_fallback): Likewise.
8006 (exception_info): New global variable.
8007 (ada_exception_support_info_sniffer): New function.
8008 (ada_executable_changed_observer): Likewise.
8009 (ada_unhandled_exception_name_addr_from_raise): Renamed from
8010 ada_unhandled_exception_name_addr.
8011 (ada_unhandled_exception_name_addr): Reimplement to match the
8012 latest Ada runtime implementation.
8013 (error_breakpoint_runtime_sym_not_found): Delete.
8014 (ada_exception_sym_name): Get the exception sym name from
8015 exception_info rather than hardcoding it.
8016 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
8017 Update error handling.
8018 * Makefile.in (ada-lang.o): Add dependency on observer.h.
8020 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8022 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
8023 (remote-st.o, uw-thread.o): Delete.
8024 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
8025 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8026 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
8027 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
8028 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
8029 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
8030 rs6000-*-lynxos* to an obsoletion stanza.
8031 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8032 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
8033 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
8034 i[34567]86-*-netware*.
8035 * NEWS: Mention deleted targets.
8037 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
8038 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
8039 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
8040 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
8041 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
8042 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
8043 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
8044 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
8045 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
8046 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
8047 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
8048 config/rs6000/tm-rs6000ly.h: Delete files.
8050 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8052 * defs.h (deprecated_registers_changed_hook): Delete declaration.
8053 * interps.c (clear_interpreter_hooks): Do not clear
8054 deprecated_registers_changed_hook.
8055 * regcache.c (registers_changed): Do not call it.
8056 * top.c (deprecated_registers_changed_hook): Do not define it.
8057 * mi/mi-interp.c (mi_command_loop): Do not clear it.
8058 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
8059 (tui_remove_hooks): Do not remove it.
8060 (tui_selected_frame_level_changed_hook): Check for negative level.
8061 Use get_selected_frame.
8062 (tui_registers_changed_hook): Deleted.
8064 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8066 * stabsread.c (add_undefined_type): Add extra parameter.
8067 Now handles nameless types separately.
8068 (struct nat): New type.
8069 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
8070 New static variables.
8071 (read_type): Update calls to add_undefined_type.
8072 (add_undefined_type_noname): New function.
8073 (add_undefined_type_1): Renames from add_undefined_type.
8074 (cleanup_undefined_types_noname): New function.
8075 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
8076 (cleanup_undefined_types): New handles nameless types separately.
8077 (_initialize_stabsread): Initialize our new static constants.
8079 2007-03-29 Denis Pilat <denis.pilat@st.com>
8081 * configure.ac: Test for signal.h.
8082 * configure, config.in: Regenerate.
8084 2007-03-29 Denis Pilat <denis.pilat@st.com>
8086 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
8087 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
8089 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
8091 * arm-wince-tdep.c: New.
8092 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
8093 (MT_CFLAGS): Delete.
8095 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
8096 solib-legacy.o, solib-svr4.o, and remove wince.o.
8097 * configure.tgt (arm*-*-mingw32ce*): Add.
8098 * signals/signals.c [HAVE_SIGNAL_H]: Check.
8099 (do_target_signal_to_host): Silence 'not used' warning.
8100 * config/arm/tm-wince.h: Remove.
8102 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
8104 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
8105 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
8107 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
8108 * config/ia64/tm-linux.h: Remove file.
8109 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
8110 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
8111 legacy_pc_in_sigtramp.
8112 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
8113 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
8114 Remove func_name argument.
8115 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
8117 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
8118 * target.c (update_current_target): Add to_have_steppable_watchpoint.
8119 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
8120 (HAVE_STEPPABLE_WATCHPOINT): Define.
8122 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
8123 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
8124 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
8125 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
8126 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
8127 target_insert_watchpoint, target_remove_watchpoint): Remove.
8128 (FETCH_INFERIOR_REGISTERS): Define.
8129 * ia64-linux-nat.c (ia64_register_addr): Make static.
8130 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
8131 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
8132 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
8133 (ia64_linux_stopped_data_address): Make static. Add target_ops.
8134 (ia64_linux_stopped_by_watchpoint): Make static.
8135 (ia64_linux_can_use_hw_breakpoint): New function.
8136 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
8137 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
8138 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
8140 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
8142 * linespec.c: Include language.h.
8143 (find_methods): Add language parameter. Call
8144 lookup_symbol_in_language. Pass language down.
8145 (add_matching_methods): Likewise. Call
8146 lookup_symbol_in_language.
8147 (add_constructors): Likewise.
8148 (find_method): Pass sym_class to collect_methods.
8149 (collect_methods): Add sym_class parameter. Pass language
8151 * symtab.c (lookup_symbol): Rename to ...
8152 (lookup_symbol_in_language): ... this. Add language
8153 parameter. Use passed language instead of current_language.
8154 (lookup_symbol): New as wrapper around
8155 lookup_symbol_in_language.
8156 (lookup_symbol_aux): Add language parameter. Use passed
8157 language instead of current_language.
8158 (search_symbols): Indent.
8159 * symtab.h (enum language): Forward declare.
8160 (lookup_symbol_in_language): Declare.
8161 (lookup_symbol): Update description.
8162 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
8163 * ada-lang.c (restore_language): Remove.
8164 (lookup_symbol_in_language): Remove.
8166 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
8168 * breakpoint.c (bpstat_num): Add int *num parameter.
8169 * breakpoint.h (bpstat_num): Likewise.
8170 * infcmd.c (continue_command): Adjust to new bpstat_num
8172 (program_info): Likewise.
8174 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8176 * config/sh/tm-sh.h: Remove file.
8177 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
8178 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
8179 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8180 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
8182 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8184 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
8185 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
8186 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
8187 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
8188 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
8189 sequence if target_shortname is "remote".
8191 2007-03-27 Anton Blanchard <anton@samba.org>
8193 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
8194 instead of wordsize when looking for the LR in a stack frame.
8196 2007-03-27 Andreas Schwab <schwab@suse.de>
8197 Daniel Jacobowitz <dan@codesourcery.com>
8199 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
8200 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
8201 argument. Update all callers.
8202 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
8203 (dwarf2_frame_set_eh_frame_regnum): Rename to...
8204 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
8205 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
8206 (dwarf2_frame_set_adjust_regnum): ...this.
8207 (dwarf2_frame_eh_frame_regnum): Delete prototype.
8208 * rs6000-tdep.c: Include "dwarf2-frame.h".
8209 (rs6000_adjust_frame_regnum): Define.
8210 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
8211 Register rs6000_adjust_frame_regnum.
8213 * Makefile.in (rs6000-tdep.o): Update dependencies.
8215 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
8217 * Makefile.in: Add support for a "pdf" target.
8219 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
8221 * amd64-tdep.c (amd64_init_frame_cache): New function.
8222 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
8224 2007-03-26 Nigel Stephens <nigel@mips.com>
8225 Maciej W. Rozycki <macro@mips.com>
8227 * ui-out.c (ui_out_field_core_addr): Truncate address to
8228 TARGET_ADDR_BIT size before printing.
8230 2007-03-22 Nigel Stephens <nigel@mips.com>
8231 Maciej W. Rozycki <macro@mips.com>
8233 * remote-mips.c (mips_xfer_memory): Update prototype.
8235 2007-03-22 Joel Brobecker <brobecker@adacore.com>
8237 * symfile.h: #include "symtab.h"
8239 2007-03-22 Denis Pilat <denis.pilat@st.com>
8241 * utils.c (pagination_on_command, pagination_off_command):
8242 Remove useless prototypes.
8244 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
8247 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
8248 instead of TYPE_NAME for object base class name.
8251 2007-03-19 Kevin Buettner <kevinb@redhat.com>
8253 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
8254 Specify frame type in calls to frame_func_unwind().
8256 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
8258 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
8259 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
8260 (refine_prologue_limit): Delete.
8261 (skip_prologue): Don't call it. Use extract_unsigned_integer.
8262 Assume lim_pc is set. Correct check for incomplete prologues.
8263 Do not skip clobbers of the frame pointer.
8264 * symtab.c (skip_prologue_using_sal): Fail if there is only one
8267 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8269 * frame.c (frame_pop): Check to see whether there's a frame to
8270 which we can pop first.
8272 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8274 * MAINTAINERS (Write After Approval): Add myself.
8276 2007-03-09 Markus Deuling <deuling@de.ibm.com>
8278 * infrun.c (breakpoints_failed): Remove unnecessary variable.
8279 (handle_inferior_event): Remove unnecessary braces.
8280 * breakpoint.c (bpstat_what): Remove wrong comment.
8282 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
8284 * spu-tdep.c (spu_in_function_epilogue_p): New function.
8285 (spu_gdbarch_init): Install it.
8287 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8289 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
8290 object types, not 0.
8292 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8294 * spu-tdep.c (spu_frame_align): New function.
8295 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
8297 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8299 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
8300 (spu_software_single_step): Likewise.
8301 (spu_read_pc, spu_write_pc): New functions.
8302 (spu_gdbarch_init): Install them.
8304 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8306 * cli/cli-dump.c (struct callback_data): load_offset needs to
8307 have signed long type.
8309 2007-03-07 Joel Brobecker <brobecker@adacore.com>
8311 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
8312 Revert the previous change that had some unexpected side-effects
8314 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
8315 function to get the address of the calling instruction.
8317 2007-03-07 Denis Pilat <denis.pilat@st.com>
8319 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
8320 get_selected_frame by deprecated_safe_get_selected_frame.
8322 2007-03-02 Mark Kettenis <kettenis@gnu.org>
8324 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
8325 "gdb_string.h". Don't include "nbsd-tdep.h".
8326 (SIZEOF_STRUCT_REG): Remove.
8327 (SHNBSD_SIZEOF_GREGS): New.
8328 (shnbsd_supply_gregset, shnbsd_collect_gregset)
8329 (shnbsd_regset_from_core_section): New functions.
8330 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
8331 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
8332 shnbsd_supply_gregset, shnbsd_collect_gregset.
8333 (shnbsd_gregset): New variable.
8334 (shnbsd_init_abi): Set regset_from_core_section.
8335 (GDB_OSABI_NETBSD_CORE): New define.
8336 (shnbsd_core_osabi_sniffer): New function.
8337 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
8338 * Makefile.in (shnbsd-tdep.o): Update dependencies.
8339 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
8341 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
8343 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8345 * gdbtypes.c (replace_type): Fix typo that caused us to not update
8346 length of the types referenced by the new type CV ring.
8348 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8350 * frame.c (frame_pop, frame_observer_target_changed): Call
8352 (flush_cached_frames): Rename to reinit_frame_cache and delete
8354 * frame.h (flush_cached_frames): Delete prototype and update comment.
8356 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
8357 reinit_frame_cache instead of flush_cached_frames. Do not call
8358 select_frame after reinit_frame_cache.
8359 * corelow.c (core_open): Likewise.
8360 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
8361 * infrun.c (prepare_to_proceed, context_switch)
8362 (handle_inferior_event): Likewise.
8363 * linux-fork.c (fork_load_infrun_state): Likewise.
8364 * ocd.c (ocd_start_remote): Likewise.
8365 * remote-e7000.c (e7000_start_remote): Likewise.
8366 * remote-mips.c (device): Likewise.
8367 * thread.c (switch_to_thread): Likewise.
8368 * tracepoint.c (finish_tfind_command): Likewise.
8369 * gdbarch.c: Regenerated.
8371 2007-02-28 Jerome Guitton <guitton@adacore.com>
8372 Joel Brobecker <brobecker@adacore.com>
8374 * gdbtypes.c (check_typedef): Do not replace stub type if
8375 the resolved type is not defined in the same objfile.
8377 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8379 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
8381 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8383 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
8384 symbol for Ada units when the symbol is defined using 't' rather
8385 than 'Tt' as symbol descriptor.
8387 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8389 * config/mips/tm-nbsd.h: Delete file.
8390 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8391 * config/sh/tm-nbsd.h: Delete file.
8392 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
8394 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8396 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
8397 unused WRONG_PARAM value since it was recently deleted.
8399 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
8401 * varobj.c (varobj_update): Free temporary vectors.
8403 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8405 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
8406 * config/powerpc/tm-linux.h: Delete file.
8407 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
8408 (PROCESS_LINENUMBER_HOOK): Do not undefine.
8409 (TEXT_SEGMENT_BASE): Do not redefine.
8410 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
8411 from config/rs6000/tm-rs6000.h.
8412 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8413 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
8414 (TEXT_SEGMENT_BASE): Remove.
8415 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
8416 (rs6000_in_solib_return_trampoline): Remove.
8417 (SKIP_TRAMPOLINE_CODE): Remove.
8418 (rs6000_skip_trampoline_code): Remove.
8419 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
8420 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8421 (FP0_REGNUM): Remove.
8422 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
8423 (rs6000_set_host_arch_hook): Remove.
8424 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
8425 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
8426 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
8427 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
8428 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
8429 * rs6000-nat.c: Include "rs6000-tdep.h".
8430 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
8431 (set_host_arch): Rename to ...
8432 (rs6000_create_inferior): ... this. Make public.
8433 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
8434 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
8435 (rs6000_create_inferior): Remove.
8436 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
8437 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
8438 set_gdbarch_in_solib_return_trampoline, and
8439 set_gdbarch_skip_trampoline_code.
8440 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
8441 from config/rs6000/tm-rs6000.h.
8443 2007-02-27 Joel Brobecker <brobecker@adacore.com>
8445 * buildsym.c (record_producer): Do nothing if no producer is provided.
8447 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
8449 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
8450 to check changelist is non-NULL. Call error if the frontend tries
8451 to update a non-root variable.
8453 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
8455 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8457 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
8458 (dwarf2_frame_sniffer): Update.
8459 (dwarf2_signal_frame_this_id): New function.
8460 (dwarf2_signal_frame_unwind): Use it.
8461 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
8462 * frame.c (frame_func_unwind): Add this_type argument.
8463 (get_frame_func): Update.
8464 (frame_unwind_address_in_block): Add this_type argument and check it.
8466 (get_frame_address_in_block): Update.
8467 * frame.h (enum frame_type): Move higher in the file.
8468 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
8471 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
8472 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
8473 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
8474 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
8475 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
8476 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
8477 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
8478 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
8479 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
8480 frame_func_unwind and frame_unwind_address_in_block to specify
8481 the frame type. Use frame_unwind_address_in_block instead of
8482 frame_pc_unwind in sniffers.
8484 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8486 * frame.c (deprecated_selected_frame): Rename to...
8487 (selected_frame): ...this. Make static.
8488 (get_selected_frame, select_frame): Update.
8489 * frame.h (deprected_select_frame): Delete.
8490 (deprecated_safe_get_selected_frame): Update comments.
8492 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
8493 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
8494 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
8495 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
8496 tui/tui.c: Replace references to deprecated_selected_frame.
8498 2007-02-27 Fred Fish <fnf@specifix.com>
8500 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
8501 directly decrement the stack pointer, accumulate their operand into
8502 the stack offset, and mark the function as not being frameless.
8504 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8506 * arch-utils.c (selected_byte_order): New.
8507 * arch-utils.h (selected_byte_order): New prototype.
8508 * remote-sim.c (gdbsim_open): Use selected_byte_order.
8510 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8512 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
8513 (default_symfile_offsets): Check VMA here. Update section VMAs.
8515 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8517 * remote.c (init_remote_state): Add special handling for placeholder
8520 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8522 * Makefile.in (XMLFILES): Include $(TDEP_XML).
8523 (filenames_h): New variable.
8524 (clean): Clean up xml-builtin.c and stamp-xml.
8525 (arm-linux-nat.o): Update.
8526 * config/arm/linux.mh (TDEP_XML): Define.
8527 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
8528 (arm_linux_has_wmmx_registers): New.
8529 (GET_THREAD_ID): Fix typo.
8530 (IWMMXT_REGS_SIZE): Define.
8531 (fetch_wmmx_regs, store_wmmx_regs): New.
8532 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
8533 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
8534 (super_xfer_partial, arm_linux_xfer_partial): New.
8535 (_initialize_arm_linux_nat): Use them.
8536 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
8537 (xml_builtin_xfer_partial): New function.
8538 * xml-support.h (xml_builtin_xfer_partial): New prototype.
8539 * NEWS: Update mention of iWMMXt support.
8541 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8543 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
8544 if there are no FPA registers.
8545 (arm_dwarf_reg_to_regnum): New function.
8546 (arm_register_type, arm_register_name): Return minimal values for
8547 unsupported registers.
8548 (arm_register_sim_regno): Handle iWMMXt registers.
8549 (arm_gdbarch_init): Record missing FPA registers if indicated by
8550 a target description. Recognize iWMMXt registers. Only register
8551 "info float" for FPA. Use ARM_NUM_REGS. Register
8552 arm_dwarf_reg_to_regnum.
8553 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
8555 (struct gdbarch_tdep): Add have_fpa_registers.
8556 * features/xscale-iwmmxt.xml: Update capitalization.
8557 * regformats/arm-with-iwmmxt.dat: Regenerated.
8559 2007-02-24 Kevin Buettner <kevinb@redhat.com>
8561 * NEWS (New targets): Add entry for the Toshiba Media Processor.
8563 2007-02-23 Kevin Buettner <kevinb@redhat.com>
8565 * MAINTAINERS (mep): New target.
8567 2007-02-23 Kevin Buettner <kevinb@redhat.com>
8569 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
8571 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
8572 (mep-tdep.o): New rule.
8573 * configure.tgt (mep-*-*): New target.
8574 * mep-tdep.c: New file.
8575 * config/mep/mep.mt: New file.
8577 2007-02-22 Markus Deuling <deuling@de.ibm.com>
8579 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
8580 BREAKPOINT_HIT and STOP_UNKNOWN.
8582 2007-02-22 Markus Deuling <deuling@de.ibm.com>
8584 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
8586 2007-02-20 Joel Brobecker <brobecker@adacore.com>
8588 * gdb_expat.h (XMLCALL): Define if not already defined.
8590 2007-02-20 Andreas Schwab <schwab@suse.de>
8592 * Makefile.in (symfile.o): Update dependencies.
8594 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
8596 * MAINTAINERS: Disable -Werror for cris simulator. Build
8597 sparc64-solaris2.10 instead of the broken sparc-elf.
8598 * solib-frv.c: Include "solib.h".
8599 * Makefile.in (solib-frv.o): Update.
8600 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
8601 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
8602 (xtensa_frame_this_id, xtensa_frame_prev_register)
8603 (xtensa_push_dummy_call): Use %p.
8605 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8607 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
8608 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
8609 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
8610 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
8611 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
8612 (sparc-linux-tdep.o): Update.
8614 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
8616 * xtensa-tdep.h (xtensa_reg_mask_t): New.
8617 (xtensa_mask_t): Change mask field to be a separate array.
8618 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
8619 (xtensa_pseudo_register_write, xtensa_unwind_pc)
8620 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
8621 (xtensa_breakpoint_from_pc): Remove implicit type casting.
8622 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
8623 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
8624 (mask14, mask15): Rename to
8625 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
8626 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
8627 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
8628 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
8629 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
8630 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
8631 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
8632 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
8633 (xtensa_submask14, xtensa_submask15): New.
8634 (rmap): Follow strict aliasing rules doing static initialization.
8636 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
8638 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
8639 handling from here...
8640 (tdesc_register_type): ...to here.
8641 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
8642 * features/arm-core.xml: Use code_ptr and data_ptr.
8644 2007-02-13 Denis Pilat <denis.pilat@st.com>
8646 * varobj.h (enum varobj_update_error): New enum.
8647 * varobj.c (struct varobj_root): Add is_valid member.
8648 (varobj_get_type): Check for invalid varobj.
8649 (varobj_get_attributes): Likewise.
8650 (variable_editable):Likewise.
8651 (varobj_update): Likewise. Use varobj_update_error.
8652 (new_root_variable): Set root varobj as valid by default.
8653 (varobj_invalidate): New function.
8654 * symfile.c (clear_symtab_users): Use varobj_invalidate.
8655 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
8656 Use varobj_update_error.
8658 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
8661 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
8662 Pascal language marker.
8663 * dwarf2read.c (set_cu_language): Likewise.
8665 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
8667 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
8668 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
8669 instead of target_terminal_init since inferior_ptid isn't set yet.
8671 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
8673 * MAINTAINERS (Write After Approval): Add myself.
8675 2007-02-09 Fred Fish <fnf@specifix.com>
8677 Based on work by Apple Computer, Inc.
8678 * event-top.c (async_request_quit): Call quit() whenever either
8679 quit_flag is set or immediate_quit is set.
8681 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
8683 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
8684 type to a pointer to const struct block.
8685 (ada_lookup_symbol_list): Don't cast away constness when calling
8686 remove_out_of_scope_renamings.
8688 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
8690 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
8691 address of 'filename'; it is always non null.
8693 2007-02-09 Joel Brobecker <brobecker@adacore.com>
8695 * exec.c (add_to_section_table): Do not discard empty sections.
8697 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8699 * features/Makefile, features/arm-with-iwmmxt.xml,
8700 features/gdbserver-regs.xsl, features/number-regs.xsl,
8701 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
8702 * regformats/arm-with-iwmmxt.dat: Generate.
8703 * NEWS: Mention iWMMXt.
8705 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8707 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
8708 (xml-tdesc.o): Update.
8709 * xml-support.c: Add a comment.
8710 (gdb_xml_enums_boolean): New variable.
8711 (gdb_xml_parse_attr_enum): Use strcasecmp.
8712 * xml-support.h (gdb_xml_enums_boolean): Declare.
8713 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
8714 next_regnum, and current_union.
8715 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
8716 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
8717 (field_attributes, union_children, reg_attributes, union_attributes)
8718 (vector_attributes, feature_attributes, feature_children): New.
8719 (target_children): Make static. Add <feature>.
8720 (tdesc_elements): Make static.
8721 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
8722 (struct tdesc_feature, tdesc_feature_p): New types.
8723 (struct target_desc): Add features member.
8724 (struct tdesc_arch_data, tdesc_data): New.
8725 (target_find_description): Clarify error message. Warn about
8726 ignored register descriptions.
8727 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
8728 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
8729 (tdesc_data_cleanup, tdesc_numbered_register)
8730 (tdesc_numbered_register_choices, tdesc_find_register)
8731 (tdesc_register_name, tdesc_register_type)
8732 (tdesc_remote_register_number, tdesc_register_reggroup_p)
8733 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
8734 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
8735 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
8736 (tdesc_create_feature, tdesc_record_type): New.
8737 (free_target_description): Free features.
8738 (_initialize_target_descriptions): Initialize tdesc_data.
8739 * arch-utils.c (default_remote_register_number): New.
8740 * arch-utils.h (default_remote_register_number): New prototype.
8741 * target-descriptions.h (set_tdesc_pseudo_register_name)
8742 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
8743 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
8744 (tdesc_numbered_register, tdesc_numbered_register_choices)
8745 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
8746 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
8747 (tdesc_create_reg): Declare.
8748 * gdbarch.sh (remote_register_number): New entry.
8749 * gdbarch.c, gdbarch.h: Regenerate.
8750 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
8751 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
8753 * arm-tdep.c (arm_register_aliases): New.
8754 (arm_register_name_strings): Rename to...
8755 (arm_register_names): ...this. Make const. Delete the old version.
8756 (current_option, arm_register_byte): Delete.
8757 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
8758 (value_of_arm_user_reg): New.
8759 (arm_gdbarch_init): Verify any described registers. Call
8760 tdesc_use_registers. Don't use arm_register_byte. Create aliases
8761 for standard register names.
8762 (_initialize_arm_tdep): Do not adjust arm_register_names.
8763 * user-regs.c (struct user_reg): Add baton member.
8764 (append_user_reg, user_reg_add_builtin, user_regs_init)
8765 (user_reg_add, value_of_user_reg): Use a baton for user
8767 * std-regs.c: Update.
8768 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
8769 (user_reg_add): Add baton argument.
8770 * NEWS: Mention target description register support.
8771 * features/arm-core.xml, features/arm-fpa.xml: New.
8772 * eval.c (evaluate_subexp_standard): Allow ptype $register
8773 when the program is not running.
8775 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
8777 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
8779 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
8781 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
8782 info->disassembler_options to "any".
8784 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8786 * varobj.c (install_new_value): Only call value_get_print_value
8789 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8791 Reported by timeless@gmail.com:
8792 * gdb/target.c (target_flash_erase): Do not return void value.
8793 (target_flash_done): Likewise.
8794 * gdb/cli/cli-cmds.c (source_command): Likewise.
8796 2007-02-08 Fred Fish <fnf@specifix.com>
8798 Based on work by Apple Computer, Inc.
8799 * event-top.c (handle_sigint): Set quit_flag.
8800 (async_request_quit): Don't set quit_flag. Avoid calling quit()
8801 if quit_flag has already been reset.
8803 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8805 * ser-mingw.c (pipe_windows_close): Move variable initialization back
8808 2007-02-08 Fred Fish <fnf@specifix.com>
8810 * defs.h (request_quit): Remove declaration.
8811 * utils.c (request_quit): Remove definition.
8813 2007-02-08 Joel Brobecker <brobecker@gnat.com>
8814 Jan Kratochvil <jan.kratochvil@redhat.com>
8815 Daniel Jacobowitz <dan@codesourcery.com>
8817 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
8818 (skip_prologue): Allow bl->blrl used by PIC code.
8820 2007-02-08 Mark Kettenis <kettenis@gnu.org>
8821 Daniel Jacobowitz <dan@codesourcery.com>
8823 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
8824 initialize tmp_obstack.
8825 * p-valprint.c (pascal_object_print_value_fields)
8826 (pascal_object_print_value): Likewise.
8828 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8830 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
8832 2007-02-08 Mark Kettenis <kettenis@gnu.org>
8834 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
8835 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
8837 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
8839 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
8841 (tdesc_parse_xml): Cache expanded descriptions.
8843 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
8845 * Makefile.in (XMLFILES): New.
8846 (COMMON_OBS): Add xml-builtin.o.
8847 (xml-builtin.c, stamp-xml): New rules.
8848 (xml-tdesc.o): Update.
8849 * features/feature_to_c.sh: New file.
8850 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
8851 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
8852 (gdb_xml_start_element): Initialize scope after possibly reallocating
8853 scopes. Move cleanup later. Handle the XInclude description
8855 (gdb_xml_end_element): Only parse the body if there is a current element.
8856 Call XML_DefaultCurrent if there is no element.
8857 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
8858 (struct xinclude_parsing_data, xinclude_start_include)
8859 (xinclude_end_include, xml_xinclude_default)
8860 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
8861 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
8862 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
8863 * xml-support.h (xml_fetch_another, xml_process_xincludes)
8864 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
8865 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
8866 XInclude directives. Use the compiled in DTD.
8867 (fetch_xml_from_file): Add baton argument. Treat it as a containing
8868 directory name. Do not warn here.
8869 (file_read_description_xml): Update call. Warn here instead. Pass
8871 (fetch_available_features_from_target): New.
8872 (target_read_description_xml): Use it.
8873 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
8875 * features/xinclude.dtd: New file.
8877 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
8879 * linux-thread-db.c (check_for_thread_db): Return early if we have
8880 no libthread_db support.
8882 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
8884 * mi/mi-parse.h: Include <sys/time.h>.
8886 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
8888 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
8889 instead of print_variable_value to print values.
8891 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
8893 * mi/mi-main.c: Numerous formatting changes.
8894 (mi_cmd_data_write_register_values): Replace clause inadvertantly
8895 removed in my previous change.
8897 2007-02-03 Eli Zaretskii <eliz@gnu.org>
8899 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
8900 Use 1000000L instead of 1000000.
8902 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
8904 Based on work by Apple Computer, Inc.
8906 * configure.ac: Test for sys/resource.h and getrusage.
8907 * configure, config.in: Regenerate.
8909 * mi/mi-main.c: Include <sys/resource.h> if present.
8910 (rusage): Declare if HAVE_GETRUSAGE.
8911 (current_command_ts, do_timings): New static variables.
8912 (timestamp, print_diff_now, print_diff, timeval_diff):
8913 New static timing functions.
8914 (mi_cmd_enable_timings): New function for new MI command.
8915 (captured_mi_execute_command, mi_execute_async_cli_command):
8916 Call timing functions.
8918 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
8921 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
8923 * mi/mi-parse.h: (mi_timestamp): New structure.
8924 (mi_parse): Add mi_timestamp* member.
8926 2007-02-02 Denis Pilat <denis.pilat@st.com>
8928 * thread.c (make_cleanup_restore_current_thread): New function.
8929 (info_threads_command): Use of make_cleanup_restore_current_thread
8930 to restore the current thread and the selected frame.
8931 (restore_selected_frame): New function.
8932 (struct current_thread_cleanup): Add frame_id field.
8933 (do_restore_current_thread_cleanup): Add restoring of the selected
8935 (make_cleanup_restore_current_thread): Likewise.
8936 (thread_apply_all_command): backup the selected frame while
8937 entering the function and restore it at exit.
8938 (thread_apply_command): Likewise.
8940 2007-02-02 Denis Pilat <denis.pilat@st.com>
8942 * MAINTAINERS (Write After Approval): Add myself to the list.
8944 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
8946 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
8947 (m32r_store_register): Ditto.
8949 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
8951 * ser-mingw.c (pipe_windows_open)
8952 (pipe_windows_read, pipe_windows_write): Declare
8953 variables at the top of the function.
8955 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
8957 * doublest.c (floatformat_from_length): Use the right element from
8958 gdbarch floatformats.
8959 (floatformat_from_type, extract_typed_floating)
8960 (store_typed_floating): Likewise.
8961 * doublest.h: Remove declarations for undefined floatformat arrays.
8962 * gdbarch.sh (float_format, double_format, long_double_format): Change
8964 (pformat): Update for pairs.
8965 * gdbarch.c, gdbarch.h: Regenerated.
8966 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
8967 (floatformats_ieee_double_littlebyte_bigword)
8968 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
8969 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
8970 (floatformats_vax_d): New variables.
8971 (builtin_type_ieee_single, builtin_type_ieee_double)
8972 (builtin_type_arm_ext, builtin_type_ia64_spill)
8973 (builtin_type_ia64_quad): Replace arrays with individual types.
8974 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
8975 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
8976 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
8977 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
8978 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
8979 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
8980 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
8981 unused and endian-specific types.
8982 (recursive_dump_type): Update for floatformat pairs.
8983 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
8984 (build_gdbtypes): Use build_flt.
8985 (_initialize_gdbtypes): Update set of initialized types.
8986 * gdbtypes.h: Update declarations to match gdbtypes.c.
8987 (struct main_type): Store a pointer to two floatformats.
8988 * arch-utils.c (default_float_format, default_double_format): Delete.
8989 * arch-utils.h (default_float_format, default_double_format): Delete.
8991 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
8992 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
8993 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
8994 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
8995 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
8997 2007-01-29 Joel Brobecker <brobecker@adacore.com>
8999 * target.c (maintenance_print_target_stack): New function.
9000 (initialize_targets): Add new "maintenance print target-stack"
9003 2007-01-28 Mark Kettenis <kettenis@gnu.org>
9005 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
9007 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
9009 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
9010 (struct dwarf2_loclist_baton): Likewise.
9012 2007-01-27 Eli Zaretskii <eliz@gnu.org>
9014 * cli/cli-script.c: Include breakpoint.h.
9015 (build_command_line): Require arguments only for if and while
9017 (get_command_line, execute_user_command, execute_control_command):
9018 Fix wording of warning messages.
9019 (print_command_lines): Print breakpoint commands.
9020 (execute_control_command): Call commands_from_control_command to
9021 handle the `commands' command inside a body of a flow-control
9023 (read_next_line): Recognize the `commands' command and build a
9024 command line structure for it.
9025 (recurse_read_control_structure, read_command_lines): Handle
9026 `commands' similarly to `if' and `while'.
9028 * breakpoint.c (get_number_trailer): Document the special meaning
9029 of NULL as the first argument PP.
9030 (commands_from_control_command): New function.
9032 * breakpoint.h (commands_from_control_command): Add prototype.
9034 * defs.h (commands_control): New enumerated value for enum
9035 command_control_type.
9037 2007-01-26 Joel Brobecker <brobecker@adacore.com>
9039 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
9040 (ada_exception_sal): Update accordingly.
9042 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9044 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
9045 * NEWS: Describe CHAR array vs. string identifcation rules.
9047 2007-01-25 Paul Brook <paul@codesourcery.com>
9049 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
9051 2007-01-24 Jim Blandy <jimb@codesourcery.com>
9053 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
9054 expression is empty, bother to return the 'optimized out' value we
9055 construct. (Thanks to Carl Burch.)
9057 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9059 * varobj.c (c_value_of_root, c_value_of_child)
9060 (cplus_describe_child): Don't call release_value.
9062 2007-01-24 Thiemo Seufer <ths@mips.com>
9064 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
9067 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9069 Refactor getting children name, value and type access
9071 * varobj.c (get_type_deref): Remove.
9072 (adjust_value_for_child_access): New.
9073 (c_number_of_children): Use the above.
9074 (c_describe_child): Likewise.
9075 (enum accessibility): New.
9076 (match_accessibility): New function.
9077 (cplus_describe_child): New function.
9078 (cplus_name_of_child, cplus_value_of_child)
9079 (cplus_type_of_child): Reimplement in terms
9080 of cplus_describe_child.
9081 (cplus_number_of_children): Use
9082 adjust_value_for_child_access.
9084 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9086 Fix computation of the 'editable' attribute and
9087 value changeability for for references.
9088 * varobj.c (get_value_type): New function.
9089 (c_variable_editable): Use get_value_type.
9090 (varobj_value_is_changeable): Likewise.
9092 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9094 * source.c (find_and_open_source): Try rewriting the source
9095 path inside filename if dirname is NULL.
9097 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9099 * dwarf2read.c (add_partial_symbol): Create an extra partial
9100 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
9101 (new_symbol): Likewise for symbols.
9103 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
9105 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
9107 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
9109 * value.c (value_primitive_field): Copy the full 'location'
9110 contents, instead of assuming that copying ADDRESS will
9111 bring over everything in the union. Remove obsolete comment.
9113 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
9115 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
9116 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
9117 (m32c_m16c_pointer_to_address): Separate code from declarations.
9119 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
9121 * target.c (update_current_target): Correct typo.
9123 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
9125 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
9128 2007-01-11 Andrew Cagney <cagney@redhat.com>
9129 Daniel Jacobowitz <dan@codesourcery.com>
9130 Jan Kratochvil <jan.kratochvil@redhat.com>
9132 * dwarf2-frame.c (execute_cfa_program): New support of
9133 `DW_CFA_GNU_negative_offset_extended'.
9135 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9137 * NEWS: Mention flash support for "load" and new remote packets.
9139 2007-01-21 Markus Deuling <deuling@de.ibm.com>
9141 * breakpoint.c (delete_command): Skip redundant loop iterations.
9143 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9145 * gdbarch.sh (register_type): Update comment.
9146 * gdbarch.h: Regenerated.
9147 * arch-utils.c (generic_register_size): Call register_type.
9148 * ia64-tdep.c (ia64_extract_return_value): Likewise.
9149 * m32c-tdep.c (check_for_saved): Likewise.
9150 * mips-tdep.c (mips_print_register, print_gp_register_row)
9151 (mips_print_registers_info): Likewise.
9152 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
9154 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
9155 (sh64_do_register, sh64_print_register)
9156 (sh64_media_print_registers_info): Likewise.
9157 * tui/tui-regs.c (tui_register_format): Likewise.
9159 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9161 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
9163 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
9164 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
9165 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
9166 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9167 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
9168 (make_symbol_completion_list): Likewise.
9170 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9171 Daniel Jacobowitz <dan@codesourcery.com>
9173 * buildsym.c (end_symtab): Use preallocated symtab if available.
9174 Fill in SYMBOL_SYMTAB.
9175 * buildsym.h (struct subfile): Add symtab member.
9176 * dwarf2read.c (struct dwarf2_cu): Add line_header.
9177 (struct file_entry): Add symtab.
9178 (free_cu_line_header): New function.
9179 (read_file_scope): Use it. Save line_header in the cu. Process
9181 (add_file_name): Initialize new symtab member.
9182 (dwarf_decode_lines): Create symtabs for included files.
9183 (new_symbol): Set SYMBOL_SYMTAB.
9184 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
9185 (search_symbols): Likewise.
9186 * symtab.h (struct symbol): Add symtab member.
9187 (SYMBOL_SYMTAB): Define.
9189 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9191 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
9193 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9195 * arch-utils.c (show_endian): Correct reversed condition.
9197 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9199 * MAINTAINERS (Write After Approval): Add myself.
9201 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
9202 Vladimir Prus <vladimir@codesourcery.com>
9204 Fix 'selected frame' varobjs.
9205 * varobj.c (struct varobj): Remove the error field.
9206 (varobj_set_value): Don't check var->error.
9207 (install_new_value): Don't set var->error.
9208 (varobj_update): Always pass the new value
9209 of the root via install_new_value.
9210 (create_child): Don't set error field.
9211 (new_variable): Likewise.
9212 (c_value_of_root): Always reevaluate the value
9213 of selected frame varobjs in the selected frame.
9214 Don't call reinit_frame_cache.
9216 2007-01-15 Joel Brobecker <brobecker@adacore.com>
9218 * source.c (_initialize_source): Improve the help text of
9219 the substitute-path commands.
9221 2007-01-14 Mark Kettenis <kettenis@gnu.org>
9223 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
9224 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
9225 (frv_skip_prologue): Remove prototypes.
9226 (frv_adjust_breakpoint_address): Renamed from
9227 frv_gdbarch_adjust_breakpoint_address.
9228 (frv_gdbarch_init): Adjust.
9230 2007-01-13 Mark Kettenis <kettenis@gnu.org>
9232 * gdbarch.sh (deprecated_extract_return_value)
9233 (deprecated_store_return_value): Remove.
9234 (extract_return_value, store_return_value): Remove default values.
9235 * gdbarch.c, gdbarch.h: Regenerate.
9236 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
9237 (legacy_store_return_value): Remove.
9238 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
9241 * mi/mi-main.c: Remove obsolete comment.
9243 * regcache.c, regcache.h (deprecated_register_bytes)
9244 (deprecated_read_register_bytes)
9245 (deprecated_write_register_bytes): Remove.
9247 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
9248 Don't forget to move destination pointer.
9250 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9252 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
9254 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
9256 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
9257 past entry function with recent newlib.
9259 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
9261 * gdb.texinfo (GDB/MI Variable Objects): Improve the
9262 introduction. Specify -var-update more exactly.
9264 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
9266 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
9268 2007-01-10 Jim Blandy <jimb@codesourcery.com>
9270 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
9271 the Global Maintainers' invitation to be a global maintainer.
9273 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
9275 * infrun.c (singlestep_pc): New variable.
9276 (resume): Set singlestep_pc.
9277 (context_switch): Add a debugging message. Flush the frame cache.
9278 (handle_inferior_event): Add debugging messages. Handle thread
9279 hops when a software single step has completed. Let context_switch
9280 handle flushing the frame cache.
9282 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9284 * NEWS: Mention target descriptions, "set tdesc filename",
9285 "unset tdesc filename", "show tdesc filename", and
9286 qXfer:features:read.
9287 * arch-utils.c (choose_architecture_for_target): New function.
9288 (gdbarch_info_fill): Call it.
9289 * target-descriptions.c (struct property): Make members non-const.
9290 (struct target_desc): Add arch member.
9291 (target_description_filename): New variable.
9292 (target_find_description): Try via XML first.
9293 (tdesc_architecture): New.
9294 (free_target_description, make_cleanup_free_target_description): New.
9295 (set_tdesc_property): Call xstrdup.
9296 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
9297 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
9298 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
9299 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
9300 * target-descriptions.h (tdesc_architecture)
9301 (make_cleanup_free_target_description, set_tdesc_architecture): New
9303 * Makefile.in (SFILES): Add xml-tdesc.c.
9304 (COMMON_OBS): Add xml-tdesc.o.
9305 (target-descriptions.o): Update.
9306 (xml-tdesc.o): New rule.
9307 * xml-tdesc.c, xml-tdesc.h: New files.
9308 * remote.c (PACKET_qXfer_features): New enum.
9309 (remote_protocol_features): Add qXfer:features:read.
9310 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
9311 (_initialize_remote): Register qXfer:features:read.
9312 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
9313 * features/gdb-target.dtd: New file.
9315 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9317 * copyright.sh: Clarify error.
9319 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9321 * symtab.c (matching_bfd_sections): Fix VMA matching for
9324 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9326 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
9329 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9331 Updated copyright notices for most files.
9333 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9335 * copyright.sh (prunes): Add step-line.inp and step-line.c.
9337 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9339 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
9341 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
9343 * configure, config.in: Regenerate.
9344 * defs.h (debug_file_directory): Declare.
9345 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
9346 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
9347 relocate it if DEBUGDIR_RELOCATABLE.
9348 * symfile.c (debug_file_directory): Make non-static.
9349 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
9350 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
9351 (_initialize_symfile): Don't initialize debug_file_directory here.
9353 2007-01-09 Jim Blandy <jimb@codesourcery.com>
9355 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
9358 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9360 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
9361 frame_unwind_register to recurse.
9362 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
9363 (alpha_heuristic_frame_prev_register): Likewise.
9364 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
9365 * m32c-tdep.c (m32c_prev_register): Likewise.
9366 * frame.c (frame_register_unwind_location): Remove FIXME.
9368 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9369 Eli Zaretskii <eliz@gnu.org>
9371 * copyright.sh: New file.
9373 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9375 * configure.ac: Check for XML_StopParser.
9376 * xml-support.c (gdb_xml_body_text): Check for an error.
9377 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
9378 (gdb_xml_end_element_wrapper): Likewise.
9379 * config.in, configure: Regenerated.
9381 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9383 * varobj.c (install_new_value): Always update print_value.
9384 (value_get_print_value): Immediately return NULL for missing
9387 2007-01-08 Jim Blandy <jimb@codesourcery.com>
9389 * configure.ac: Tighten pattern for extracting value of
9390 DEPRECATED_TM_FILE from the target makefile fragment.
9391 * configure: Regenerated.
9393 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9395 * linux-nat.c (struct simple_pid_list): Add status.
9396 (add_to_pid_list): Record the PID's status.
9397 (linux_record_stopped_pid): Likewise. Make static.
9398 (pull_pid_from_list): Return the saved status.
9399 (linux_nat_handle_extended): Deleted.
9400 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
9401 Make static. Handle non-SIGSTOP for a new thread's first signal.
9402 (flush_callback): Handle unexpected pending signals.
9403 (linux_nat_wait): Update calls to changed functions.
9404 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
9405 Remove prototypes for newly static functions.
9407 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9409 * gdbarch.sh (value_from_register): New gdbarch function.
9410 * gdbarch.c, gdbarch.h: Regenerate.
9411 * findvar.c (default_value_from_register): New function.
9412 (value_from_register): Use gdbarch_value_from_register.
9413 * value.h (default_value_from_register): Declare.
9414 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
9415 spu_value_to_register): Remove.
9416 (spu_value_from_register): New function.
9417 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9418 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9419 Call set_gdbarch_value_from_register.
9420 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
9421 s390_value_to_register): Remove.
9422 (s390_value_from_register): New function.
9423 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9424 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9425 Call set_gdbarch_value_from_register.
9427 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9429 * NEWS: Add "set sysroot" and "show sysroot".
9430 * solib.c (solib_absolute_prefix): Delete. Replace
9431 all uses with gdb_sysroot.
9432 (_initialize_solib): Add "set sysroot" and "show sysroot".
9433 Make "solib-absolute-prefix" an alias to it.
9435 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9437 * frame.c (get_frame_register_bytes): New function.
9438 (put_frame_register_bytes): Likewise.
9439 * frame.h (get_frame_register_bytes): Declare.
9440 (put_frame_register_bytes): Likewise.
9441 * findvar.c (value_from_register): Always construct lval_register
9442 values. Use get_frame_register_bytes.
9443 * valops.c (value_assign): Use get_frame_register_bytes and
9444 put_frame_register_bytes.
9446 2007-01-08 Jim Blandy <jimb@codesourcery.com>
9448 * MAINTAINERS: Update Stan Shebs' email address.
9450 2007-01-07 Joel Brobecker <brobecker@adacore.com>
9452 * ada-lang.c (is_known_support_routine): Improve the implementation.
9454 2007-01-06 Joel Brobecker <brobecker@adacore.com>
9456 * ada-lang.c: Add include of source.h.
9457 (is_known_support_routine): Improve the check verifying that the file
9458 associated to this frame exists.
9459 * Makefile.in (ada-lang.o): Add dependency on source.h.
9461 2007-01-07 Jim Blandy <jimb@codesourcery.com>
9463 * ax-general.c (ax_const_l): Select proper opcode for the given
9466 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
9468 * varobj.c (c_value_of_root): Don't select frame if variable
9469 object is out of scope.
9471 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
9473 * varobj.c (struct varobj): New member print_value.
9474 (install_new_value): Compare last printed value with current one
9475 instead of contents.
9476 (new_variable): Initialize var->print_value to NULL.
9477 (free_variable): Free var->print_value.
9478 (value_get_print_value): New function derived from
9479 c_value_of_variable.
9480 (c_value_of_variable): Use value_get_print_value.
9482 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9484 * i386-tdep.c (i386_analyze_stack_align): Add comment.
9486 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9488 * NEWS: Add entries for new catch commands.
9490 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9492 * dwarf2read.c (partial_die_info): Add field has_byte_size.
9493 (add_partial_symbol): Correct identification of external references.
9494 (process_structure_scope): Likewise.
9495 (read_partial_die): Handle DW_AT_byte_size attribute.
9497 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
9499 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
9501 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
9503 * varobj.c (get_type_deref): Fix variable objects for references to
9506 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9508 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
9511 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9513 * memory-map.c (struct_memory_map_parsing_data): Remove most
9514 members. Make property_name an array.
9515 (free_memory_map_parsing_data, memory_map_start_element)
9516 (memory_map_end_element, memory_map_character_data): Delete.
9517 (memory_map_start_memory, memory_map_end_memory)
9518 (memory_map_start_property, memory_map_end_property): New functions.
9519 (property_attributes, memory_children, memory_type_enum)
9520 (memory_attributes, memory_map_children, memory_map_elements): New.
9521 (parse_memory_map): Rewrite.
9522 * xml-support.c (debug_xml): New.
9523 (xml_get_required_attribute, xml_get_integer_attribute)
9524 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
9526 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
9527 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
9528 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
9529 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
9530 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
9531 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
9532 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
9534 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
9535 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
9536 (enum gdb_xml_element_flag, struct gdb_xml_element)
9537 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
9538 (struct gdb_xml_enum): New.
9539 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
9540 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
9541 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
9542 (xml_get_required_attribute, xml_get_integer_attribute)
9543 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
9544 * Makefile.in (xml_support_h, xml-support.o): Update.
9546 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9548 * Makefile.in (eval.o): Update dependencies.
9549 * eval.c: Include "ui-out.h" and "exceptions.h".
9550 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
9551 Use value_zero if an error occurs when avoiding side effects.
9552 * varobj.c (c_value_of_root): Initialize new_val.
9554 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9556 * varobj.c (varobj_list_children): Stop if the number of children is
9558 (c_number_of_children):
9560 2007-01-04 Mark Kettenis <kettenis@gnu.org>
9562 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
9563 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
9564 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
9565 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
9566 sizeof, instead of hardcoded constants.
9568 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9570 * CONTRIBUTE: Use sourceware.org.
9572 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9574 * buildsym.c (start_subfile): Handle producer.
9575 (record_producer): New function.
9576 * buildsym.h (struct subfile): Include producer.
9577 (record_producer): New prototype.
9578 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
9579 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
9580 armcc_cfa_offsets_reversed.
9581 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
9582 (dwarf2_frame_find_quirks): New function.
9583 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
9584 (decode_frame_entry_1): Record the CIE version. Record the
9585 augmentation. Skip armcc augmentations.
9586 * dwarf2read.c (read_file_scope): Save the producer.
9587 * symtab.h (struct symtab): Rename unused version member to
9590 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9592 * configure.ac (build_warnings): Use -Wall and
9593 -Wdeclaration-after-statement.
9594 * configure: Regenerated.
9596 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
9598 Simplify access to variours properties of child
9599 variable objects in C.
9600 * varobj.c (value_struct_element_index): New function.
9601 (c_describe_child): New function.
9602 (c_name_of_child, c_value_of_child)
9603 (c_type_of_child): Rewrite to use c_describe_child.
9605 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
9608 * varobj.c: Include "vec.h".
9609 (varobj_p): New typedef, declare vector of those.
9610 (struct varobj): Use vector for the 'children' member.
9611 (child_exists): Remove.
9612 (save_child_in_parent): Remove.
9613 (remove_child_from_parent): Remove.
9614 (struct varobj_child): Remove.
9615 (struct vstack): Remove.
9616 (vpush, vpop): Remove.
9617 (varobj_list_children): Adjust to work work vector.
9618 (varobj_update): Likewise. Use vectors for
9619 working stack and result.
9620 (delete_variable_1): Likewise.
9621 * Makefile.in (varobj.o): Update dependencies.
9623 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
9625 Port from Apple's version.
9627 * varobj.c (type_changeable): Rename to...
9628 (varobj_value_is_changeable_p): ...this. Adjust all callers.
9629 (is_root_p): New function. Use it everywhere.
9631 2007-01-04 Jim Blandy <jimb@codesourcery.com>
9633 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
9636 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9638 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
9640 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9642 * hpread.c (hpread_type_lookup): Fix compilation failure.
9644 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
9646 * NEWS: New port to S+core.
9647 * MAINTAINERS (Write After Approval, Responsible Maintainers):
9650 * Makefile.in: Add dependencies for S+core files.
9651 * configure.tgt (score*, score-*-*): Add S+core target.
9652 * config/score/embed.mt: New file.
9653 * score-tdep.c: New file.
9654 * score-tdep.h: New file.
9656 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9658 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
9659 the appropriate type rather than a bogus void type.
9661 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9663 * ada-lang.h (ada_find_printable_frame): Remove.
9664 (ada_exception_catchpoint_p, ada_decode_exception_location)
9665 (ada_decode_assert_location): Add declaration.
9666 * ada-lang.c: Add include of annotate.h and valprint.h.
9667 (exception_catchpoint_kind): New enum.
9668 (function_name_from_pc, is_known_support_routine)
9669 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
9670 (ada_exception_name_addr_1, ada_exception_name_addr)
9671 (print_it_exception, print_one_exception, print_mention_exception)
9672 (print_it_catch_exception, print_one_catch_exception)
9673 (print_mention_catch_exception, catch_exception_breakpoint_ops)
9674 (print_it_catch_exception_unhandled)
9675 (print_one_catch_exception_unhandled)
9676 (print_mention_catch_exception_unhandled, print_it_catch_assert)
9677 (print_one_catch_assert, print_mention_catch_assert)
9678 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
9679 (ada_get_next_arg, catch_ada_exception_command_split)
9680 (ada_exception_sym_name, ada_exception_sym_name)
9681 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
9682 (ada_parse_catchpoint_condition, ada_exception_sal)
9683 (ada_decode_exception_location)
9684 (ada_decode_assert_location): New function.
9685 (catch_exception_unhandled_breakpoint_ops): New global variable.
9686 (catch_assert_breakpoint_ops): New global variable.
9687 * breakpoint.c: Add include of ada-lang.h.
9688 (print_one_breakpoint): Do not print the condition for Ada
9689 exception catchpoints.
9690 (create_ada_exception_breakpoint): New function.
9691 (catch_ada_exception_command, catch_assert_command): New function.
9692 (catch_command_1): Add support for the new "catch exception" and
9693 "catch assert" commands.
9694 (_initialize_breakpoint): Add help description for the new catch
9696 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
9698 (breakpoint.o): Add dependency on ada-lang.h.
9700 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
9702 * coffread.c (cs_to_section): If bfd_section is found, always
9703 return its section index.
9704 (coff_symtab_read): Determine the minimal_symbol_type using the
9707 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9708 Daniel Jacobowitz <dan@codesourcery.com>
9710 * Makefile.in (top.o): Update.
9711 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
9712 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
9713 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
9715 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
9717 2007-01-03 Mark Kettenis <kettenis@gnu.org>
9719 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
9720 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
9722 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
9724 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
9725 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
9726 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
9727 greater than or equal to zero.
9728 * m2-typeprint.c (m2_array): Likewise.
9729 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
9730 * gdbtypes.c (copy_type_recursive): Correct == typo.
9731 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
9732 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
9734 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
9735 (default_macro_scope): Remove unused variable.
9736 * prologue-value.h (pv_area_find_reg): Don't name an argument
9738 * remote-fileio.c (remote_fio_func_map): Add missing braces.
9739 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
9741 (cleanup_sigint_signal_handler): Remove casts.
9742 * valprint.c (val_print): Use a volatile local for the modified
9744 * varobj.c (languages): Remove extra array dimension.
9745 (varobj_create): Correct access to languages array.
9746 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
9748 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
9749 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
9750 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
9751 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
9752 (mi_cmd_data_write_memory): Likewise.
9753 * signals/signals.c (target_signal_to_string): Cast to int before
9755 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
9758 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
9760 * NEWS: Mention pointer to member improvements.
9761 * Makefile.in (gnu-v3-abi.o): Delete special rule.
9762 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
9763 * ada-valprint.c (ada_print_scalar): Update for new type codes.
9764 * c-typeprint.c (c_print_type): Update for new type codes.
9765 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
9766 (c_type_print_base): Likewise.
9767 (c_type_print_args): Rewrite.
9768 * c-valprint.c (c_val_print): Update for new type codes. Remove
9769 support for references to members. Treat methods like functions.
9770 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
9771 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
9772 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
9773 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
9774 (struct cp_abi_ops): Add corresponding members.
9775 * cp-valprint.c (cp_print_class_method): Delete.
9776 (cp_find_class_member): New function.
9777 (cp_print_class_member): Use it. Simplify support for bogus
9779 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
9780 lookup_methodptr_type.
9781 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
9782 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
9783 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
9785 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
9786 references returned by user defined operators.
9787 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
9788 (f_type_print_varspec_suffix): Remove support for member pointers.
9789 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
9791 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
9792 (lookup_methodptr_type): New.
9793 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
9794 (recursive_dump_type): Update for new types.
9795 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
9796 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
9797 (lookup_memberptr_type, lookup_methodptr_type)
9798 (smash_to_memberptr_type): New prototypes.
9799 (smash_to_method_type): Formatting fix.
9800 (lookup_member_type, smash_to_member_type): Delete prototypes.
9801 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
9802 Do not rely on debug information for the vptr or the method's
9803 enclosing type. Handle function descriptors for IA64.
9804 (gnuv3_virtual_fn_field): Rewrite using the new functions.
9805 (gnuv3_find_method_in, gnuv3_print_method_ptr)
9806 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
9807 (gnuv3_method_ptr_to_value): New.
9808 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
9809 * hpread.c (hpread_type_lookup): Update for new types.
9810 * infcall.c (value_arg_coerce): Likewise.
9811 * m2-typeprint.c (m2_print_type): Remove explicit support
9812 for member pointers.
9813 * m2-valprint.c (m2_val_print): Likewise.
9814 * p-typeprint.c (pascal_type_print_varspec_prefix)
9815 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
9816 * p-valprint.c (pascal_val_print): Likewise.
9817 (pascal_object_print_class_method, pascal_object_print_class_member):
9819 * p-lang.h (pascal_object_print_class_method)
9820 (pascal_object_print_class_member): Delete prototypes.
9821 * stabsread.c (read_type): Update for new types.
9822 * typeprint.c (print_type_scalar): Likewise.
9823 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
9824 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
9825 argument. Construct a pointer to member if the address of a
9826 function or data member is requested.
9827 (value_cast_pointers): Don't modify the input value.
9828 (value_cast): Adjust pointer to member handling for new types.
9829 Allow null pointer to member constants. Don't modify the input
9831 (value_ind): Remove pointer to member check. Handle function
9832 descriptors for function pointers.
9833 (value_struct_elt, value_find_oload_method_list, check_field):
9834 Remove pointer to member checks.
9835 * value.c (unpack_long): Allow pointers to data members.
9836 (value_from_longest): Allow member pointers.
9837 * value.h (value_aggregate_elt): Add want_address.
9838 * varobj.c (c_variable_editable): Remove check for members.
9839 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
9840 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
9842 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
9843 * c-lang.h (cp_print_class_method): Delete prototype.
9844 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
9845 * mips-tdep.c (mips_gdbarch_init): Likewise.
9846 * gdbarch.c, gdbarch.h: Regenerated.
9848 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9850 * rs6000-tdep.c (rs6000_use_struct_convention)
9851 (rs6000_extract_return_value, rs6000_store_return_value)
9852 (rs6000_extract_struct_value_address): Remove.
9853 (rs6000_return_value): New function.
9854 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
9855 store_return_value, deprecated_extract_struct_value_address and
9856 deprecated_use_struct_convention. Use rs6000_return_value
9859 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
9861 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
9862 -display-disable, -display-enable, -display-insert and
9865 2007-01-01 Joel Brobecker <brobecker@adacore.com>
9867 * breakpoint.c (remove_breakpoint): Remove dead code.
9869 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
9871 * varobj.c: Include block.h.
9872 (c_value_of_root): Check scope within nested statements.
9874 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9876 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
9877 regcache_cooked_write_signed instead of
9878 deprecated_write_register_bytes.
9880 2007-01-01 Joel Brobecker <brobecker@adacore.com>
9882 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
9884 2007-01-01 Joel Brobecker <brobecker@adacore.com>
9886 Followed the Start of New Year Procedure:
9887 * ChangeLog-2006: New file, containing all the entries for 2006.
9888 * ChangeLog: Removed all 2006 entries, and changed the reference
9889 to the previous ChangeLog to point to ChangeLog 2006.
9890 * top.c (print_gdb_version): Update copyright year.
9892 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9894 * Makefile.in (remote-sds.o): Remove.
9895 * remote-sds.c: Delete.
9897 For older changes see ChangeLog-2006.
9903 version-control: never