1 2007-12-04 Maciej W. Rozycki <macro@mips.com>
3 * features/mips-cpu.xml: Specify "regnum" for "r0" explicitly.
4 * features/mips64-cpu.xml: Likewise.
5 * features/mips-fpu.xml: Specify "regnum" for "f0" explicitly.
6 * features/mips64-fpu.xml: Likewise.
7 * features/mips-linux.c: Regenerate.
8 * features/mips64-linux.c: Regenerate.
10 2007-12-04 Maciej W. Rozycki <macro@mips.com>
12 * target.h (target_find_new_threads): Fix definition.
14 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
16 * win32-nat.c (win32_resume): Set the trace bit
17 in the thread identified by inferior_ptid.
20 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
22 * win32-nat.c (open_process_used): New static variable.
23 (win32_init_thread_list): Remove call to CloseHandle for thread.
24 (win32_delete_thread): Ditto.
25 (fake_create_process): Set open_process_used if OpenProcess call is
27 (get_win32_debug_event): Do not close process handle.
28 (do_initial_win32_stuff): Set open_process_used to zero.
29 (win32_mourn_inferior): Call CloseHandle for current_process_handle if
30 open_process_used is set.
31 (win32_kill_inferior): Do not close process and main_thread handles.
33 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
35 * remote.c (remote_cmdlist): New variable.
36 (PACKET_vFile_open, PACKET_vFile_pread, PACKET_vFile_pwrite)
37 (PACKET_vFile_close, PACKET_vFile_unlink): New constants.
38 (remote_buffer_add_string, remote_buffer_add_bytes)
39 (remote_buffer_add_int, remote_hostio_parse_result)
40 (remote_hostio_send_command, remote_hostio_open, remote_hostio_pwrite)
41 (remote_hostio_pread, remote_hostio_close, remote_hostio_unlink)
42 (remote_fileio_errno_to_host, remote_hostio_error, fclose_cleanup)
43 (remote_hostio_close_cleanup, remote_file_put, remote_file_get)
44 (remote_file_delete, remote_put_command, remote_get_command)
45 (remote_delete_command, remote_command): New functions.
46 (_initialize_remote): Register new packets and commands.
47 * Makefile.in (gdb_fileio_h): New variable.
49 (SUBDIR_MI_OBS): Add mi-cmd-target.o.
50 (SUBDIR_MI_SRCS): Add mi/mi-cmd-target.c.
51 (mi-cmd-target.o): New rule.
52 * mi/mi-cmd-target.c: New file.
53 * mi/mi-cmds.c (mi_cmds): Add target-file-delete, target-file-get,
55 * mi/mi-cmds.h (mi_cmd_target_file_get, mi_cmd_target_file_put)
56 (mi_cmd_target_file_delete): Declare.
57 * remote.h (remote_file_put, remote_file_get, remote_file_delete):
59 * NEWS: Describe new file transfer support.
61 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
63 * infrun.c (handle_inferior_event): Don't
64 ignore beakpoints if trap_expected is set.
66 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
68 Make insert_breakpoints return void.
69 * breakpoint.h (insert_breakpoints): Change
71 * breakpoint.c (insert_breakpoints): Change
72 return type to void. Rename local return_val
74 * infrun.c (keep_going): Instead of checking
75 return value from insert_breakpoints, catch exception.
77 2007-11-29 Vladimir Prus <vladimir@codesourcery.com>
79 Stop infrun from tracking breakpoint insertion status.
81 The checks of breakpoints_inserted before calling
82 remove_breakpoints are removed, as remove_breakpoint
83 won't touch uninserted breakpoints. In a number of places,
84 we're interested if a breakpoint is inserted at particular
85 PC, and we now use breakpoint_inserted_here_p. In a few
86 places, insert_breakpoints can be called unconditionally,
87 since it won't try to insert already inserted breakpoint.
89 * breakpoint.h (regular_breakpoint_inserted_here_p): New
91 * breakpoint.c (regular_breakpoint_inserted_here_p): New.
92 (breakpoint_inserted_here_p): Use
93 regular_breakpoint_inserted_here_p.
94 * infrun.c (breakpoints_inserted): Remove.
95 (resume): Don't check for breakpoints_inserted before
96 remove_hw_watchpoints. Use breakpoint_inserted_here_p.
97 (proceed, init_wait_for_inferior): Don't set breakpoints_inserted.
98 (handle_inferior_event): Don't use breakpoints_inserted.
99 Use breakpoints_meant_to_be_inserted and
100 breakpoints_inserted_here_p.
101 (insert_step_resume_breakpoint_at_sal, keep_going): Use
102 breakpoints_meant_to_be_inserted. Don't set breakpoints_inserted.
103 (normal_stop): Don't check for breakpoints_inserted. Don't
104 set breakpoints_inserted.
105 (keep_going): Don't check for breakpoints_inserted.
106 (insert_step_resume_breakpoint_at_sal): Don't insert
109 2007-11-28 Jim Blandy <jimb@codesourcery.com>
111 * breakpoint.c (watch_command_1): When the watchpoint isn't local
112 to any frame, initialize watchpoint_frame using null_frame_id, not
115 2007-11-28 Vladimir Prus <vladimir@codesourcery.com>
117 * infrun.c (resume): Set right thread even if
118 stepping over breakpoint using software single step.
120 2007-11-28 Nick Roberts <nickrob@snap.net.nz>
122 * mi/mi-cmd-var.c (print_varobj): Revert change from 2007-08-31.
123 (mi_print_value_p): Guard against type = NULL.
125 2007-11-27 Thiago Jung Bauermann <bauerman@br.ibm.com>
127 * dfp.c (decimal_from_string): Remove superfluous newline from
129 (decimal_to_string): Likewise.
130 * printcmd.c (printf_command): Change string buffer to use
131 MAX_DECIMAL_STRING constant.
132 * value.c (value_from_decfloat): Likewise.
134 2007-11-27 Ulrich Weigand <uweigand@de.ibm.com>
136 * Makefile.in (ALL_TARGET_OBS): Remove object files that require
137 64-bit CORE_ADDR and BFD support, move them to ...
138 (ALL_64_TARGET_OBS): ... this new variable.
139 * configure.ac: Check for --enable-64-bit-bfd option. Only add
140 64-bit targets with --enable-targets=all if BFD supports 64-bit.
141 * configure: Regenerate.
143 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Do not claim
144 all elf32-i386 executables, only cygwin core files.
146 2007-11-25 Jan Kratochvil <jan.kratochvil@redhat.com>
148 * dwarf2read.c (dwarf2_get_pc_bounds): Moved the `DW_AT_ranges' parsing
149 code with its variables OBJFILE, CU_HEADER and OBFD into ...
150 (dwarf2_ranges_read): ... a new function.
151 (read_partial_die): Implemented the parsing of `DW_AT_ranges'.
153 2007-11-24 Pedro Alves <pedro_alves@portugalmail.pt>
155 * win32-nat.c (DR6_CLEAR_VALUE): New define.
156 (thread_info_struct): Rename suspend_count to suspended, to be
158 (thread_rec): Only suspend the thread if it wasn't suspended by
159 gdb before. Warn if suspending failed.
160 (win32_add_thread): Set Dr6 to DR6_CLEAR_VALUE.
161 (win32_continue): Set Dr6 to DR6_CLEAR_VALUE. Update usage of the
162 `suspended' flag. Do ContinueDebugEvent after resuming the
163 suspended threads, not before. Set threads' contexts before
164 resuming them, not after.
165 (win32_resume): Set Dr6 to DR6_CLEAR_VALUE.
167 2007-11-23 Vladimir Prus <vladimir@codesourcery.com>
169 * breakpoint.c (insert_breakpoints)
170 (insert_bp_location): Remove stale comments.
172 2007-11-23 Maciej W. Rozycki <macro@mips.com>
174 * mips-linux-tdep.h: Fix some formatting.
176 2007-11-21 Markus Deuling <deuling@de.ibm.com>
178 * stack.c (print_args_stub): Use get_frame_arch to get at the current
179 architecture and replace current_gdbarch.
180 (frame_info): Likewise.
182 2007-11-21 Nick Roberts <nickrob@snap.net.nz>
184 * varobj.c (c_variable_editable, cplus_variable_editable)
185 (java_variable_editable, variable_editable): Delete.
186 (varobj_editable_p): Replace above functions with one language
187 independent function. Check for an lvalue.
188 (varobj_get_attributes, varobj_set_value): Use varobj_editable_p.
189 (struct language_specific): Delete variable_editable field.
191 * mi-cmd-var.c (mi_cmd_var_assign): Simplify.
193 * varobj.h: Add extern for varobj_editable_p.
195 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
197 Remove unused breakpoint fields.
198 * breakpoint.h (struct breakpoint): Remove
199 from_tty and flag fields.
200 * breakpoint.c (break_command_1): Don't set
201 from_tty and flag field set of breakpoint.
202 (create_ada_exception_breakpoint): Don't set
205 2007-11-20 David Ung <davidu@mips.com>
206 Maciej W. Rozycki <macro@mips.com>
208 * mips-tdep.c (mips16_scan_prologue): Handle the MIPS16e SAVE
211 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
213 * infrun.c (resume): Clarify logic that
214 decides if a single thread must be resumed. Add
217 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
219 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
222 2007-11-19 Markus Deuling <deuling@de.ibm.com>
224 * gdbarch.sh (register_sim_regno): Add gdbarch as parameter.
225 * gdbarch.{c,h}: Regenerate.
227 * arch-utils.h (legacy_register_sim_regno): Add gdbarch as parameter.
228 * score-tdep.c (score_register_sim_regno): Likewise.
229 * sim-regno.h (one2one_register_sim_regno): Likewise.
231 * arch-utils.c (legacy_register_sim_regno): Add gdbarch as parameter.
232 Replace current_gdbarch by gdbarch.
233 * sh-tdep.c (sh_sh2a_register_sim_regno)
234 (sh_dsp_register_sim_regno): Likewise.
235 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
236 * mips-tdep.c (mips_register_sim_regno): Likewise.
237 * m32c-tdep.c (m32c_register_sim_regno): Likewise.
238 * frv-tdep.c (frv_register_sim_regno): Likewise.
239 * arm-tdep.c (arm_register_sim_regno): Likewise.
240 * remote-sim.c (one2one_register_sim_regno): Likewise.
242 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
244 * configure.ac (--enable-targets): New configure option.
245 Collect gdb_target_obs of multiple targets into TARGET_OBS.
246 Call configure.tgt multiple times, using $targ as operand.
247 * configure.tgt: Operate on $targ instead of $target.
248 * configure: Regenerate.
249 * Makefile.in (ALL_TARGET_OBS): Define.
251 * NEWS: Mention --enable-targets option.
253 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
255 * mips-tdep.c (show_mipsfpu_command): Do not crash if called when
256 current architecture is not MIPS.
258 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
260 * cli/cli-setshow.c (do_setshow_command): Use dynamically sized buffer
261 to construct error message if no argument was supplied.
263 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
265 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Remove.
266 (i386nbsd_aout_regset_from_core_section): Likewise.
267 (i386nbsd_aout_init_abi): Likewise.
268 (_initialize_i386nbsd_tdep): Do not register i386nbsd_aout_init_abi.
270 * vaxnbsd-tdep.c (vaxnbsd_aout_init_abi): Remove.
271 (_initialize_vaxnbsd_tdep): Do not register vaxnbsd_aout_init_abi.
273 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
275 * amd64fsdb-tdep.c (amd64fbsd_sigtramp_start_addr): Use ULL suffix.
276 (amd64fbsd_sigtramp_end_addr): Likewise.
278 * iq2000-tdep.c (iq2000_pointer_to_address): Fix argument type.
279 (iq2000_address_to_pointer): Likewise.
280 (iq2000_frame_prev_register): Likewise.
281 (iq2000_extract_return_value): Use regcache_cooked_read_unsigned
282 instead of regcache_cooked_read into CORE_ADDR variable.
283 (iq2000_return_value): Fix argument types.
285 * m32r-rom.c (m32r_load_section): Fix printf argument type.
286 (m32r_load): Likewise.
288 * m68kbsd-tdep.c: Include "gdbtypes.h".
289 * Makefile.in: Update dependencies.
291 * mn10300-tdep.c (mn10300_frame_unwind_cache): Fix aliasing violation.
293 * nto-tdep.c (LM_ADDR): Do not refer to no-longer-existing
294 lmo->l_addr_size element.
296 * remote-m32r-sdi.c (m32r_xfer_memory): Use paddr to print address.
297 (m32r_insert_breakpoint): Likewise.
298 (m32r_remove_breakpoint): Likewise.
299 (m32r_insert_watchpoint): Likewise.
300 (m32r_remove_watchpoint): Likewise.
301 (m32r_load): Fix printf argument type.
303 * xtensa-tdep.c (xtensa_regset_from_core_section): Fix printf
305 (xtensa_frame_this_id): Do not cast pointers to "int" for output.
306 (xtensa_frame_prev_register): Likewise.
307 (xtensa_push_dummy_call): Likewise.
309 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
311 * config/alpha/alpha-linux.mt: Remove file.
312 * config/alpha/alpha.mt: Remove file.
313 * config/alpha/alpha-osf1.mt: Remove file.
314 * config/alpha/fbsd.mt: Remove file.
315 * config/alpha/nbsd.mt: Remove file.
316 * config/alpha/obsd.mt: Remove file.
317 * config/arm/embed.mt: Remove file.
318 * config/arm/linux.mt: Remove file.
319 * config/arm/nbsd.mt: Remove file.
320 * config/arm/obsd.mt: Remove file.
321 * config/arm/wince.mt: Remove file.
322 * config/avr/avr.mt: Remove file.
323 * config/cris/cris.mt: Remove file.
324 * config/frv/frv.mt: Remove file.
325 * config/h8300/h8300.mt: Remove file.
326 * config/i386/cygwin.mt: Remove file.
327 * config/i386/fbsd64.mt: Remove file.
328 * config/i386/fbsd.mt: Remove file.
329 * config/i386/i386gnu.mt: Remove file.
330 * config/i386/i386.mt: Remove file.
331 * config/i386/i386sol2.mt: Remove file.
332 * config/i386/linux64.mt: Remove file.
333 * config/i386/linux.mt: Remove file.
334 * config/i386/mingw.mt: Remove file.
335 * config/i386/nbsd64.mt: Remove file.
336 * config/i386/nbsd.mt: Remove file.
337 * config/i386/nto.mt: Remove file.
338 * config/i386/obsd64.mt: Remove file.
339 * config/i386/obsd.mt: Remove file.
340 * config/i386/sol2-64.mt: Remove file.
341 * config/ia64/ia64.mt: Remove file.
342 * config/ia64/linux.mt: Remove file.
343 * config/iq2000/iq2000.mt: Remove file.
344 * config/m32c/m32c.mt: Remove file.
345 * config/m32r/linux.mt: Remove file.
346 * config/m32r/m32r.mt: Remove file.
347 * config/m68hc11/m68hc11.mt: Remove file.
348 * config/m68k/linux.mt: Remove file.
349 * config/m68k/monitor.mt: Remove file.
350 * config/m68k/nbsd.mt: Remove file.
351 * config/m68k/obsd.mt: Remove file.
352 * config/m88k/obsd.mt: Remove file.
353 * config/mep/mep.mt: Remove file.
354 * config/mips/embed.mt: Remove file.
355 * config/mips/irix5.mt: Remove file.
356 * config/mips/irix6.mt: Remove file.
357 * config/mips/linux.mt: Remove file.
358 * config/mips/nbsd.mt: Remove file.
359 * config/mips/obsd64.mt: Remove file.
360 * config/mn10300/linux.mt: Remove file.
361 * config/mn10300/mn10300.mt: Remove file.
362 * config/mt/mt.mt: Remove file.
363 * config/pa/hppahpux.mt: Remove file.
364 * config/pa/hppa.mt: Remove file.
365 * config/pa/linux.mt: Remove file.
366 * config/pa/obsd.mt: Remove file.
367 * config/powerpc/aix.mt: Remove file.
368 * config/powerpc/linux.mt: Remove file.
369 * config/powerpc/nbsd.mt: Remove file.
370 * config/powerpc/obsd.mt: Remove file.
371 * config/powerpc/ppc-eabi.mt: Remove file.
372 * config/s390/s390.mt: Remove file.
373 * config/score/embed.mt: Remove file.
374 * config/sh/embed.mt: Remove file.
375 * config/sh/linux.mt: Remove file.
376 * config/sh/nbsd.mt: Remove file.
377 * config/sh/obsd.mt: Remove file.
378 * config/sh/sh64.mt: Remove file.
379 * config/sparc/embed.mt: Remove file.
380 * config/sparc/fbsd.mt: Remove file.
381 * config/sparc/linux64.mt: Remove file.
382 * config/sparc/linux.mt: Remove file.
383 * config/sparc/nbsd64.mt: Remove file.
384 * config/sparc/nbsd.mt: Remove file.
385 * config/sparc/obsd64.mt: Remove file.
386 * config/sparc/obsd.mt: Remove file.
387 * config/sparc/sol2-64.mt: Remove file.
388 * config/sparc/sol2.mt: Remove file.
389 * config/sparc/sparc64.mt: Remove file.
390 * config/sparc/sparc.mt: Remove file.
391 * config/spu/spu.mt: Remove file.
392 * config/v850/v850.mt: Remove file.
393 * config/vax/nbsd.mt: Remove file.
394 * config/vax/obsd.mt: Remove file.
395 * config/vax/vax.mt: Remove file.
396 * config/xstormy16/xstormy16.mt: Remove file.
397 * config/xtensa/xtensa.mt: Remove file.
399 * configure.tgt (gdb_target_cpu): Remove. Do not set anywhere.
400 (gdb_target): Likewise.
401 (gdb_target_obs): Document. Set for every target to contents
402 of TDEPFILES in former .mt makefile fragment.
404 * configure.ac (TARGET_OBS): Define.
405 (target_makefile_frag, gdb_target_cpu): Do not define.
406 * configure: Regenerate.
408 * Makefile.in (MT_FLAGS): Remove.
409 (GLOBAL_CFLAGS): Update.
410 (TARGET_OBS): Substitute from configure.
411 (DEPFILES): Remove TDEPFILES, add TARGET_OBS.
412 (@target_makefile_frag@): Remove.
414 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
416 * config/arm/embed.mt (SIM_OBS, SIM): Remove.
417 * config/avr/avr.mt (SIM_OBS, SIM): Remove.
418 * config/frv/frv.mt (SIM_OBS, SIM): Remove.
419 * config/h8300/h8300.mt (SIM_OBS, SIM): Remove.
420 * config/iq2000/iq2000.mt (SIM_OBS, SIM): Remove.
421 * config/m32c/m32c.mt (SIM_OBS, SIM): Remove.
422 * config/m32r/linux.mt (SIM_OBS, SIM): Remove.
423 * config/m32r/m32r.mt (SIM_OBS, SIM): Remove.
424 * config/m68hc11/m68hc11.mt (SIM_OBS, SIM): Remove.
425 * config/mips/embed.mt (SIM_OBS, SIM): Remove.
426 * config/mips/linux.mt (SIM_OBS, SIM): Remove.
427 * config/mips/nbsd.mt (SIM_OBS, SIM): Remove.
428 * config/mn10300/mn10300.mt (SIM_OBS, SIM): Remove.
429 * config/powerpc/linux.mt (SIM_OBS, SIM): Remove.
430 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Remove.
431 * config/powerpc/ppc-sim.mt: Remove file.
432 * config/sh/embed.mt (SIM_OBS, SIM): Remove.
433 * config/sh/linux.mt (SIM_OBS, SIM): Remove.
434 * config/sh/nbsd.mt (SIM_OBS, SIM): Remove.
435 * config/sh/sh64.mt (SIM_OBS, SIM): Remove.
436 * config/sparc/embed.mt (SIM_OBS, SIM): Remove.
437 * config/v850/v850.mt (SIM_OBS, SIM): Remove.
438 * config/xstormy16/xstormy16.mt (SIM_OBS, SIM): Remove.
440 * configure.tgt (gdb_sim): Document variable.
441 (arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*): Set it.
444 (h8300-*-*): Likewise.
445 (iq2000-*-*): Likewise.
446 (m32c-*-*): Likewise.
447 (m32r*-*-linux*): Likewise.
448 (m32r*-*-*): Likewise.
449 (m68hc11*-*-*|m6811*-*-*): Likewise.
450 (mips*-*-*): Likewise.
451 (mips*-*-linux*): Likewise.
452 (mips*-*-netbsd* | mips*-*-knetbsd*-gnu): Likewise.
453 (mn10300-*-*): Likewise.
454 (powerpc-*-linux* | powerpc64-*-linux*): Likewise.
455 (powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu): Likewise.
456 (powerpc*-*-*): Use ppc-eabi target. Conditionally set gdb_sim.
458 (sh-*-linux*): Likewise.
459 (sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu): Likewise.
460 (sh64-*-elf*): Likewise.
461 (sparc-*-rtems*): Likewise.
462 (v850*-*-elf): Likewise.
463 (xstormy16-*-*): Likewise.
465 * configure.ac (IGNORE_SIM, IGNORE_SIM_OBS): Do not set.
466 (SIM, SIM_OBS): Set depending on ${ignore_sim} and ${gdb_sim}.
467 * configure: Regenerate.
468 * Makefile.in (SIM, SIM_OBS): Substitute from configure.
469 (@IGNORE_SIM@, @IGNORE_SIM_OBS@): Remove.
471 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
473 * configure.tgt (gdb_osabi, build_gdbserver): Comment variables.
474 (arm*-*-*): Do not set obsolete build_rdi_share variable.
476 (*-*-freebsd* | *-*-kfreebsd*-gnu): Remove generic case, replace by ...
477 (alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
478 (i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
479 (sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu): ... specific cases.
480 (x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu): Re-sort.
482 (xscale-*-*): Merge into arm*-*-* case.
483 (fido-*-elf*): Merge into m68*-*-elf* case.
484 (m68*-*-aout*, m68*-*-coff*, m68*-*-elf*, m68*-*-rtems*,
485 m68*-*-uclinux*): Merge cases.
486 (powerpc-*-linux*, powerpc64-*-linux*): Merge cases.
487 (sh-*-coff*, sh-*-elf*): Merge into sh* case.
489 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
491 * configure.tgt: Reformat main case statement.
493 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
495 * configure.ac (hostfile, targetfile): Remove.
496 (GDB_XM_FILE, GDB_TM_FILE): Do not define.
497 (xm_h, tm_h): Likewise.
498 (DEPRECATED_TM_FILE, XM_FILE): Do not substitute into Makefile.
499 * configure, config.in: Regenerate.
501 * Makefile.in (xm_h, tm_h): Remove. Update dependencies.
502 (TAGS): Do not consider DEPRECATED_TM_FILE or XM_FILE.
503 (clean, local-maintainer-clean): Do not remove xm.h or tm.h.
504 * defs.h: Do not include "xm.h" or "tm.h".
506 * gdbarch.sh (verify_gdbarch): Do not dump GDB_XM_FILE or GDB_TM_FILE.
507 * gdbarch.c: Regenerate.
509 * config/score/embed.mt: Remove obsolete comment.
511 2007-11-16 Markus Deuling <deuling@de.ibm.com>
513 * gdbarch.sh (cannot_fetch_register, cannot_store_register): Add gdbarch
515 * gdbarch.{c,h}: Regenerate.
517 * alpha-tdep.c (alpha_cannot_fetch_register)
518 (alpha_cannot_store_register): Add gdbarch as parameter. Replace
519 current_gdbarch by gdbarch.
520 * cris-tdep.c (cris_cannot_fetch_register, cris_cannot_store_register)
521 (crisv32_cannot_fetch_register)
522 (crisv32_cannot_store_register): Likewise.
523 * arch-utils.c (cannot_register_not): Likewise.
524 * arch-utils.h (cannot_register_not): Likewise.
525 * hppa-tdep.c (hppa32_cannot_store_register)
526 (hppa32_cannot_store_register, hppa64_cannot_store_register)
527 (hppa64_cannot_fetch_register): Likewise.
528 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
529 (mipsnbsd_cannot_store_register): Likewise.
531 2007-11-16 Markus Deuling <deuling@de.ibm.com>
533 * m32r-rom.c (m32r_supply_register): Use get_regcache_arch to get at
534 the current architecture by regcache.
535 * ppcnbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
536 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
537 (fetch_register, supply_vrregset, fetch_ppc_registers)
538 (store_altivec_register, store_spe_register, store_register)
539 (fill_vrregset, store_ppc_registers): Likewise.
540 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
541 * win32-nat.c (do_win32_fetch_inferior_registers)
542 (do_win32_store_inferior_registers): Likewise.
543 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
544 * remote-m32r-sdi.c (m32r_fetch_registers)
545 (m32r_store_registers): Likewise.
546 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
548 * trad-frame.c (trad_frame_alloc_saved_regs): Replace current_gdbarch by
550 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
551 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
552 (do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call)
553 (ppc64_sysv_abi_return_value): Likewise.
554 * m32c-tdep.c (m32c_register_reggroup_p): Likewise.
555 * m2-lang.c (build_m2_types): Likewise.
556 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache
557 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
558 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
559 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
561 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Use get_frame_arch to
562 get at the current architecture by frame_info.
563 * gcore.c (derive_stack_segment): Likewise.
565 * shnbsd-nat.c (GETREGS_SUPPLIES): Add gdbarch parameter.
566 (shnbsd_fetch_inferior_registers, shnbsd_store_inferior_registers): Add
567 gdbarch to GETREGS_SUPPLIES call.
569 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
571 * elfread.c (ST_REGULAR, ST_DYNAMIC, ST_SYNTHETIC): New defines.
572 (elf_symtab_read): Rename DYNAMIC argument to TYPE. Do not access
573 ELF-private symbol data when processing synthetic symbols. Use
574 udata.p to get at size of ppc64 synthetic 'dot' symbols.
575 (elf_symfile_read): Pass TYPE argument to elf_symtab_read.
577 2007-11-15 Doug Evans <dje@google.com>
579 * buildsym.h (subfiles): Move ...
580 * buildsym.c (subfiles): ... to here and make static.
582 * symmisc.c (maintenance_info_symtabs): Print linetable info.
584 2007-11-15 Markus Deuling <deuling@de.ibm.com>
586 * mipsnbsd-tdep.h (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove
588 2007-11-15 Markus Deuling <deuling@de.ibm.com>
590 * arm-tdep.c (arm_prologue_this_id): Replace LOWEST_PC by its
591 expression and use get_frame_arch to replace current_gdbarch by frame's
593 * arm-tdep.h (LOWEST_PC): Remove
595 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
597 Apply const qualifier to some users of bp_location.
598 * breakpoint.h (struct bpstats): Make
599 the breakpoint_at field point at const bp_location.
600 * breakpoint.c (bpstat_alloc): Accept const
602 (breakpoint_here_p, breakpoint_inserted_here_p)
603 (software_breakpoint_inserted_here_p)
604 (breakpoint_thread_match, bpstat_stop_status)
605 (read_memory_nobpt, bpstat_have_active_hw_watchpoints): Use
606 const bp_location for iteration.
607 (print_it_typical, print_bp_stop_message): Use
608 const bp_location variable.
610 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
612 Make mark_breakpoints_out static.
613 * breakpoint.h (mark_breakpoints_out): Remove
615 * breakpoint.c (mark_breakpoints_out): Make static.
617 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
619 Prevent clear_command from directly modifying breakpoint list.
620 * Makefile.in (breakpoint_h): Update dependency.
621 * breakpoint.c (clear_command): Do not remove
622 breakpoints from breakpoint_chain. Collect breakpoints
623 to delete in a vector.
624 * breakpoint.h (breakpoint_p): New typedef for pointer to
625 breakpoint. Register vector of breakpoint_p.
627 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
629 Remove 'run_cleanup'.
630 * defs.h (do_run_cleanups, make_run_cleanup): Remove
632 * infcmd.c (run_command_1): Call clear_solib instead
634 * jv-lang.c (java_rerun_cleanup): Remove, for lack of
636 * solib.c (solib_cleanup_queued, do_clear_solib): Remove.
637 (update_solib_lib): Don't setup run cleanup.
638 (no_shared_libraries): Call clear_solib, not do_clear_solib.
639 * utils.c (run_cleanup_chain, make_run_cleanup)
640 (do_run_cleanups): Remove.
642 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
644 Remove CLEAR_SOLIB use.
645 * corelow.c (core_close): Don't check for CLEAR_SOLIB.
646 * infcmd.c (attach_command): Likewise.
648 2007-11-14 Doug Evans <dje@google.com>
650 * buildsym.c (start_subfile,start_symtab): Doc fixes.
652 2007-11-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
654 * tui/tui-data.c (tui_prev_win): Guard against NULL.
656 2007-11-12 Markus Deuling <deuling@de.ibm.com>
658 * gdbarch.sh (gdbarch_alloc): Replace current_gdbarch by gdbarch. Remove
660 (verify_gdbarch, gdbarch_dump): Likewise.
661 (do_read): Update comment.
662 (addr_bit, bfd_arch_info, target_desc, long_long_bit, floatformat)
663 (ptr_bit, name_of_malloc): Replace current_gdbarch by gdbarch.
664 * gdbarch.{c,h}: Regenerate.
666 2007-11-12 Markus Deuling <deuling@de.ibm.com>
668 * xtensa-tdep.c (ARG_1ST): Replace ARGS_FIRST_REG by its expression.
669 (ARGS_FIRST_REG): Remove.
670 (areg_numer): New function.
671 (xtensa_pseudo_register_read, xtensa_frame_prev_register)
672 (xtensa_extract_return_value, xtensa_store_return_value)
673 (xtensa_frame_cache): Replace AREG_NUMBER by areg_number.
674 (AREG_NUMBER): Remove.
675 (XTENSA_IS_ENTRY, ARG_NOF, ARG_1ST): Add gdbarch as parameter.
676 (xtensa_frame_cache): Update use of XTENSA_IS_ENTRY.
677 (xtensa_push_dummy_call): Update use of ARG_NOF.
678 (extract_call_winsize): Add gdbarch as parameter. Replace
679 current_gdbarch by gdbarch.
680 (xtensa_extract_return_value, xtensa_store_return_value): Update call
681 of extract_call_winsize.
683 2007-11-10 Joel Brobecker <brobecker@adacore.com>
685 * NEWS: Add entry for new set/show print frame-args command.
687 2007-11-09 Kevin Buettner <kevinb@redhat.com>
689 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add missing
690 register number to map. Adjust warning check and error/warning
691 return value code to match expectations of this function's callers.
693 2007-11-09 Joel Brobecker <brobecker@adacore.com>
695 * stack.c (print_this_frame_argument_p): Handle arguments passed
696 by reference properly.
698 2007-11-09 Joel Brobecker <brobecker@adacore.com>
700 * stack.c (print_frame_arguments_choices): New static global.
701 (print_frame_arguments): Likewise.
702 (print_this_frame_argument_p): New function.
703 (print_frame_args): Print the argument value only when appropriate.
704 (_initialize_task): Add new "set/show print frame-arguments" command.
706 2007-11-09 Luis Machado <luisgpm@br.ibm.com>
708 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move
709 saved_dabr_value assignment to the correct position.
711 2007-11-09 Markus Deuling <deuling@de.ibm.com>
713 * arch-utils.c (generic_convert_register_p): Add gdbarch as parameter.
714 * arch-utils.h (generic_convert_register_p): Likewise.
716 2007-11-09 Markus Deuling <deuling@de.ibm.com>
718 * gdbarch.sh (convert_register_p): Add gdbarch as parameter.
719 * ia64-tdep.c (ia64_convert_register_p): Likewise.
720 * i387-tdep.c (i387_convert_register_p): Likewise.
721 * i387-tdep.h (i387_convert_register_p): Likewise.
722 * alpha-tdep.c (alpha_convert_register_p): Likewise.
723 * gdbarch.{c,h}: Regenerate.
725 * rs6000-tdep.c (rs6000_convert_register_p): Add gdbarch as parameter.
726 Replace current_gdbarch by gdbarch.
727 * mips-tdep.c (mips_convert_register_p): Likewise.
728 * m68k-tdep.c (m68k_convert_register_p): Likewise.
729 * i386-tdep.c (i386_convert_register_p): Likewise.
731 2007-11-08 Aleksandar Ristovski <aristovski@qnx.com>
733 * gdb_string.h: Include <strings.h>.
735 2007-11-08 Vladimir Prus <vladimir@codesourcery.com>
737 * breakpoint.c (break_command_1): Remove
738 pending_bp parameter.
739 (create_breakpoint): Likewise.
740 (create_breakpoints): Likewise. Adjust call to
742 (break_command_1): Likewise. Adjust call to
744 (do_captured_breakpoint): Adjust call to
746 (break_command, tbreak_command, hbreak_command)
747 (stopin_command, stopat_command): Adjust call
750 2007-11-07 Joseph Myers <joseph@codesourcery.com>
751 Daniel Jacobowitz <dan@codesourcery.com>
753 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Right-align
754 struct values smaller than one doubleword; left-align those
755 larger. Pass structs containing a single floating-point value in
758 2007-11-07 Joseph Myers <joseph@codesourcery.com>
759 Daniel Jacobowitz <dan@codesourcery.com>
761 * gdbtypes.c (floatformats_ibm_long_double): New.
762 * gdbtypes.h (floatformats_ibm_long_double): Declare.
763 * ia64-tdep.c (floatformat_ia64_ext): Update for addition of
765 * mips-tdep.c (n32n64_floatformat_always_valid,
766 floatformat_n32n64_long_double_big, floatformats_n32n64_long):
768 (mips_gdbarch_init): Use floatformats_ibm_long_double instead of
769 floatformats_n32n64_long.
770 * ppc-linux-tdep.c (ppc_linux_init_abi): Use 128-bit IBM long
772 * doublest.c (convert_floatformat_to_doublest,
773 convert_doublest_to_floatformat): Handle split floating-point
775 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle IBM long
777 (ppc64_sysv_abi_push_dummy_call): Likewise.
778 (do_ppc_sysv_return_value): Handle IBM long double return.
780 2007-11-07 Vladimir Prus <vladimir@codesourcery.com>
782 Fix crash when a variable object being deleted
783 has any of its children deleted previously.
785 * varobj.c (delete_variable_1): Don't recurse
786 into deleted children.
788 2007-11-07 Markus Deuling <deuling@de.ibm.com>
790 * gdbarch.sh (legacy_virtual_frame_pointer): Add gdbarch parameter.
791 * gdbarch.{c,h}: Regenerate.
792 * arch-utils.c (legacy_virtual_frame_pointer): Add gdbarch parameter.
793 Replace current_gdbarch by gdbarch.
794 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
795 * mips-tdep.c (mips_virtual_frame_pointer): Likewise.
796 * spu-tdep.c (spu_virtual_frame_pointer): Likewise.
798 2007-11-07 Markus Deuling <deuling@de.ibm.com>
800 * shnbsd-tdep.c (shnbsd_supply_gregset, shnbsd_collect_gregset): Use
801 get_regcache_arch to get at the current architecture by regcache.
802 * xstormy16-tdep.c (xstormy16_frame_prev_register): Use get_frame_arch
803 to get at the current architecture by frame_info.
804 * fbsd-nat.c (fbsd_make_corefile_notes): Use get_regcache_arch to get
805 at the current architecture by regcache.
806 * gnu-v3-abi.c (gnuv3_skip_trampoline): Use get_frame_arch to get at
807 the current architecture by frame_info.
808 (build_gdb_vtable_type): Replace current_gdbarch by gdbarch.
809 * aix-thread.c (special_register_p): Add gdbarch as parameter.
810 (fetch_regs_kernel_thread, store_regs_kernel_thread): Add gdbarch to
811 caller of special_register_p.
813 2007-11-07 Markus Deuling <deuling@de.ibm.com>
815 * infcall.c (call_function_by_hand): Use get_frame_arch to get at the
816 current architecture by frame_info.
818 2007-11-07 Markus Deuling <deuling@de.ibm.com>
820 * xtensa-tdep.h (SIZEOF_GREGSET, XTENSA_ELF_NGREG) Remove.
822 2007-11-07 Markus Deuling <deuling@de.ibm.com>
824 * s390-nat.c (supply_gregset, fill_gregset): Use get_regcache_arch to
825 get at the current architecture by regcache.
826 (SUBOFF): Add gdbarch to macro definition.
828 2007-11-07 Markus Deuling <deuling@de.ibm.com>
830 * gdbarch.sh (breakpoint_from_pc): Add gdbarch parameter.
831 * gdbarch.{c,h}: Regenerate.
833 * xtensa-tdep.c (xtensa_breakpoint_from_pc): Add gdbarch parameter.
834 Replace current_gdbarch by gdbarch.
835 * sh-tdep.c (sh_breakpoint_from_pc): Likewise.
836 * sh64-tdep.c (sh64_breakpoint_from_pc): Likewise.
837 * score-tdep.c (score_breakpoint_from_pc): Likewise.
838 * mips-tdep.c (mips_breakpoint_from_pc): Likewise.
839 * m32r-tdep.c (m32r_breakpoint_from_pc): Likewise.
840 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
841 * arm-tdep.c (arm_breakpoint_from_pc): Likewise.
843 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Add gdbarch
845 * vax-tdep.c (vax_breakpoint_from_pc): Likewise.
846 * v850-tdep.c (v850_breakpoint_from_pc): Likewise.
847 * spu-tdep.c (spu_breakpoint_from_pc): Likewise.
848 * sparc-tdep.c (sparc_breakpoint_from_pc): Likewise.
849 * s390-tdep.c (s390_breakpoint_from_pc): Likewise.
850 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Likewise.
851 * mt-tdep.c (mt_breakpoint_from_pc): Likewise.
852 * mep-tdep.c (mep_breakpoint_from_pc): Likewise.
853 * m88k-tdep.c (m88k_breakpoint_from_pc): Likewise.
854 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Likewise.
855 * m32c-tdep.c (m32c_breakpoint_from_pc): Likewise.
856 * ia64-tdep.c (ia64_breakpoint_from_pc): Likewise.
857 * i386-tdep.c (i386_breakpoint_from_pc): Likewise.
858 * hppa-tdep.c (hppa_breakpoint_from_pc): Likewise.
859 * h8300-tdep.c (h8300_breakpoint_from_pc): Likewise.
860 * frv-tdep.c (frv_breakpoint_from_pc): Likewise.
861 * cris-tdep.c (cris_breakpoint_from_pc): Likewise.
862 * avr-tdep.c (avr_breakpoint_from_pc): Likewise.
863 * alpha-tdep.c (alpha_breakpoint_from_pc): Likewise.
864 * m68k-tdep.c (m68k_local_breakpoint_from_pc): Likewise.
866 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Add gdbarch parameter.
867 Replace current_gdbarch by gdbarch.
868 (rs6000_software_single_step): Use get_frame_arch to get at the
869 current architecture by frame_info. Add gdbarch to
870 rs6000_breakpoint_from_pc call.
872 2007-11-07 Markus Deuling <deuling@de.ibm.com>
874 * frv-tdep.c (frv_register_name, frv_check_watch_resources): Replace
875 macro CURRENT_VARIANT by its expression.
876 (CURRENT_VARIANT): Remove.
877 (frv_check_watch_resources): Add gdbarch parameter.
879 2007-11-07 Markus Deuling <deuling@de.ibm.com>
881 * MAINTAINERS (Write After Approval): Add self.
883 2007-11-05 Ulrich Weigand <uweigand@de.ibm.com>
885 * features/rs6000/power-core.xml: Use uint32 as register type.
886 * features/rs6000/power64-core.xml: Use uint64/uint32 as register type.
887 * features/rs6000/powerpc-32.c: Regenerate.
888 * features/rs6000/powerpc-403.c: Regenerate.
889 * features/rs6000/powerpc-403gc.c: Regenerate.
890 * features/rs6000/powerpc-505.c: Regenerate.
891 * features/rs6000/powerpc-602.c: Regenerate.
892 * features/rs6000/powerpc-603.c: Regenerate.
893 * features/rs6000/powerpc-604.c: Regenerate.
894 * features/rs6000/powerpc-64.c: Regenerate.
895 * features/rs6000/powerpc-7400.c: Regenerate.
896 * features/rs6000/powerpc-750.c: Regenerate.
897 * features/rs6000/powerpc-860.c: Regenerate.
898 * features/rs6000/powerpc-e500.c: Regenerate.
900 2007-11-05 Joel Brobecker <brobecker@adacore.com>
902 * breakpoint.c (set_raw_breakpoint_without_location): Make static.
904 2007-11-05 Joel Brobecker <brobecker@adacore.com>
906 * breakpoint.h (create_solib_load_event_breakpoint)
907 (create_solib_unload_event_breakpoint)
908 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
909 (create_exec_event_catchpoint): Delete declaration.
910 * breakpoint.c (create_solib_load_event_breakpoint)
911 (solib_load_unload_1, create_solib_unload_event_breakpoint): Delete.
912 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
913 (create_exec_event_catchpoint): Make static.
915 2007-11-05 Joel Brobecker <brobecker@adacore.com>
917 * breakpoint.h (set_breakpoint_sal): Remove declaration.
918 * breakpoint.c (set_breakpoint_sal): Delete.
920 2007-11-05 Joel Brobecker <brobecker@adacore.com>
922 * buildsym.c (finish_block): Remove "#if 1"/"#endif" brackets.
923 (make_blockvector): Likewise. Remove FIXME comment.
925 2007-11-05 Luis Machado <luisgpm@br.ibm.com>
927 * printcmd.c: (printf_command): Add support for new DFP
928 modifiers %H, %D and %DD.
929 * configure.ac: Add check for DECFLOAT printf support.
930 * configure: Regenerated.
932 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
934 * gdbtypes.h (struct cplus_struct_type): Remove runtime_ptr member.
935 (TYPE_RUNTIME_PTR, TYPE_VTABLE, TYPE_HAS_VTABLE,
936 TYPE_PRIMARY_BASE, TYPE_VIRTUAL_BASE_LIST): Remove macros.
937 (HP_ACC_VFUNC_START, HP_ACC_VBASE_START, HP_ACC_TYPEINFO_OFFSET,
938 HP_ACC_TOP_OFFSET_OFFSET): Likewise.
939 (has_vtable, primary_base_class, virtual_base_list_length,
940 virtual_base_list_length_skip_primaries, virtual_base_index,
941 virtual_base_index_skip_primaries, class_index_in_primary_list,
942 count_virtual_fns): Remove prototypes.
943 * gdbtypes.c (has_vtable, primary_base_class, current_vbase_list,
944 virtual_base_list_aux, virtual_base_list, virtual_base_list_length,
945 virtual_base_list_length_skip_primaries, virtual_base_index,
946 virtual_base_index_skip_primaries, class_index_in_primary_list,
947 count_virtual_fns): Remove.
949 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Remove.
950 (hpacc_vtbl_ptr_name, hpacc_vtbl_ptr_type_name): Remove.
951 (cp_print_value_fields): Remove support for HP aCC vtables.
952 (cp_print_value): Likewise.
953 * c-typeprint.c (c_type_print_base): Likewise.
955 * value.h (find_rt_vbase_offset): Remove prototype.
956 * valops.c (find_rt_vbase_offset): Remove.
957 (search_struct_method): Remove support for HP aCC vtables.
958 (find_method_list): Likewise.
960 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
962 * language.h (struct language_defn): Remove la_builtin_type_vector
963 and string_char_type members.
964 * language.c (language_string_char_type): No longer consult
965 la->string_char_type.
966 (language_lookup_primitive_type_by_name): No longer consult
967 current_language->la_builtin_type_vector.
969 * language.c (unknown_language_defn, auto_language_defn,
970 local_language_defn): Adapt initializer.
971 * ada-lang.c (ada_language_defn): Likewise.
972 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn,
973 minimal_language_defn): Likewise.
974 * f-lang.c (f_language_defn): Likewise.
975 * jv-lang.c (java_language_defn): Likewise.
976 * m2-lang.c (m2_language_defn): Likewise.
977 * objc-lang.c (objc_language_defn): Likewise.
978 * p-lang.c (pascal_language_defn): Likewise.
979 * scm-lang.c (scm_language_defn): Likewise.
981 2007-11-02 Markus Deuling <deuling@de.ibm.com>
983 * frame.c (frame_id_inner): Add gdbarch parameter. Replace
984 current_gdbarch by gdbarch.
985 (frame_find_by_id, get_prev_frame_1): Use get_frame_arch to get at the
986 current architecture by frame_info.
987 * frame.h (frame_id_inner): Add gdbarch parameter.
988 * stack.c (return_command): Use get_frame_arch to get at the current
989 architecture by frame_info. Update call of frame_id_inner.
990 * infrun.c (handle_inferior_event): Likewise.
991 * dummy-frame.c (dummy_frame_push): Use get_regcache_arch to get at the
992 current architecture by regcache. Update call of frame_id_inner.
994 2007-11-02 Markus Deuling <deuling@de.ibm.com>
996 * gdbarch.sh (register_name): Add gdbarch parameter.
997 * gdbarch.{c,h}: Regenerate.
999 * target-descriptions.c (tdesc_register_name): Add gdbarch parameter.
1000 (tdesc_register_name): Replace current_gdbarch by gdbarch.
1001 * target-descriptions.h (tdesc_register_name): Add gdbarch parameter.
1003 * xstormy16-tdep.c (xstormy16_register_name): Add gdbarch parameter.
1004 * vax-tdep.c (vax_register_name): Add gdbarch parameter.
1005 * spu-tdep.c (spu_register_name): Add gdbarch parameter.
1006 * s390-tdep.c (s390_register_name): Add gdbarch parameter.
1007 * mt-tdep.c (mt_register_name): Add gdbarch parameter.
1008 (mt_registers_info): Replace current_gdbarch by gdbarch.
1009 (mt_register_reggroup_p): Add gdbarch to mt_register_name call.
1010 * mips-tdep.c (mips_register_name): Add gdbarch parameter. Replace
1011 current_gdbarch by gdbarch.
1012 (mips_register_name): Add gdbarch to tdesc_register_name call.
1013 * mep-tdep.c (mep_register_name): Add gdbarch parameter. Replace
1014 current_gdbarch by gdbarch.
1015 (mep_register_reggroup_p): Add gdbarch to mep_register_name call.
1016 * m32c-tdep.c (m32c_register_name): Add gdbarch parameter. Replace
1017 current_gdbarch by gdbarch.
1018 * m88k-tdep.c (m88k_register_name): Add gdbarch parameter.
1019 * m68k-tdep.c (m68k_register_name): Add gdbarch parameter.
1020 * m32r-tdep.c (m32r_register_name): Add gdbarch parameter.
1021 (m32r_frame_unwind_cache): Use get_frame_arch to get at the current
1022 architecture by frame_info.
1023 * iq2000-tdep.c (iq2000_register_name): Add gdbarch parameter.
1024 * ia64-tdep.c (ia64_register_name): Add gdbarch parameter.
1025 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Add gdbarch
1027 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
1028 (h8300sx_register_name): Add gdbarch parameter.
1029 * cris-tdep.c (cris_register_name, crisv32_register_name): Add
1030 gdbarch parameter. Replace current_gdbarch by gdbarch.
1031 (cris_gdbarch_init): Replace current_gdbarch by gdbarch (comment).
1032 * avr-tdep.c (avr_register_name): Add gdbarch parameter.
1033 * arm-tdep.c (arm_register_name): Add gdbarch paramete
1034 * amd64-tdep.c (amd64_register_name): Add gdbarch parameter. Update
1036 * amd64-tdep.h (amd64_register_name): Add gdbarch parameter.
1037 * amd64-linux-tdep.c (amd64_linux_register_name): Add gdbarch parameter.
1038 * alpha-tdep.c (alpha_register_name): Add gdbarch parameter.
1039 (alpha_cannot_fetch_register, alpha_cannot_store_register): Update call
1040 of alpha_register_name.
1041 * frv-tdep.c (frv_register_name): Add gdbarch parameter.
1042 * i386-tdep.c (i386_register_name): Add gdbarch parameter. Replace
1043 current_gdbarch by gdbarch.
1044 (i386_register_type): Replace ?current_gdbarch by gdbarch.
1045 * i386-tdep.h (i386_register_name): Add gdbarch parameter.
1046 * i386-linux-tdep.c (i386_linux_register_name): Add gdbarch parameter.
1048 * m68hc11-tdep.c (m68hc11_register_name): Add gdbarch parameter.
1049 (m68hc11_register_reggroup_p): Add gdbarch to call of
1050 m68hc11_register_name.
1051 * mn10300-tdep.c (mn10300_generic_register_name, am33_register_name)
1052 (am33_2_register_name): Add gdbarch parameter.
1053 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1054 architecture by frame_info.
1055 (mn10300_dump_tdep): Replace current_gdbarch by gdbarch.
1056 * rs6000-tdep.c (rs6000_register_name): Add gdbarch parameter. Replace
1057 current_gdbarch by gdbarch.
1058 * score-tdep.c (score_register_name): Add gdbarch parameter.
1059 (score_return_value, score_push_dummy_call): Replace current_gdbarch
1061 * sh64-tdep.c (sh64_register_name): Add gdbarch parameter.
1062 (sh64_compact_reg_base_num, sh64_register_convert_to_virtual)
1063 (sh64_register_convert_to_raw, sh64_fv_reg_base_num)
1064 (sh64_dr_reg_base_num, sh64_fpp_reg_base_num): Add gdbarch parameter
1065 and update caller. Replace current_gdbarch by gdbarch.
1066 (sh64_extract_return_value, sh64_store_return_value): Use
1067 get_regcache_arch to get at the current architecture by regcache.
1068 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
1069 (sh_sh3e_register_name, sh_sh2e_register_name, sh_sh2a_register_name)
1070 (sh_sh2a_nofpu_register_name, sh_sh_dsp_register_name)
1071 (sh_sh3_dsp_register_name, sh_sh4_register_name)
1072 (sh_sh4_nofpu_register_name, sh_sh4al_dsp_register_name): Add gdbarch
1074 (fv_reg_base_num, dr_reg_base_num, sh_justify_value_in_reg)
1075 (sh_next_flt_argreg): Add gdbarch parameter and update caller. Replace
1076 current_gdbarch by gdbarch.
1077 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Use
1078 get_regcache_arch to get at the current architecture by regcache.
1079 * sparc-tdep.c (sparc32_register_name): Add gdbarch parameter.
1080 * sparc64-tdep.c (sparc64_register_name): Add gdbarch parameter.
1081 * v850-tdep.c (v850_register_name, v850e_register_name): Add gdbarch
1083 (v850_unwind_sp, v850_unwind_pc): Replace current_gdbarch by gdbarch.
1084 * xtensa-tdep.c (xtensa_register_name): Add gdbarch parameter. Replace
1085 current_gdbarch by gdbarch.
1086 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1087 (xtensa_frame_prev_register): Add gdbarch parameter to
1088 xtensa_register_name call.
1090 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1092 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
1093 find_solib_trampoline_target if PC is not in .plt section.
1095 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1097 * elfread.c (elf_symtab_read): When constructing a solib trampoline
1098 minimal symbol from an undefined dynamic symbol, use proper section.
1100 2007-10-31 Markus Deuling <deuling@de.ibm.com>
1102 * arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
1103 to get at the current architecture by regcache.
1105 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1107 * libunwind-frame.c (libunwind_frame_sniffer)
1108 libunwind_frame_prev_register, libunwind_sigtramp_frame_sniffer)
1109 (libunwind_frame_cache): Use get_frame_arch to get at the current
1110 architecture by frame_info.
1111 (libunwind_get_reg_special): Replace current_gdbarch by gdbarch.
1113 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1115 * iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get
1116 at the current architecture by frame_info.
1118 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1120 * inf-child.c (inf_child_fetch_inferior_registers): Use
1121 get_regcache_arch to get at the current architecture by regcache.
1123 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1125 * inf-ptrace.c (inf_ptrace_fetch_registers)
1126 (inf_ptrace_fetch_register, inf_ptrace_store_register)
1127 (inf_ptrace_store_registers): Use get_regcache_arch to get at the
1128 current architecture by regcache.
1130 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1132 * hpux-thread.c (hpux_thread_fetch_registers)
1133 (hpux_thread_store_registers): Use get_regcache_arch to get at the
1134 current architecture by regcache.
1136 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1138 * hppa-tdep.c (hppa_frame_cache): Use get_frame_arch to get at the
1139 current architecture by frame_info.
1141 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1143 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
1144 (go32_store_registers): Use get_regcache_arch to get at the current
1145 architecture by regcache.
1147 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1149 * gdbtypes.c (gdbtypes_post_init): Replace current_gdbarch by gdbarch.
1151 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1153 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Use get_frame_arch
1154 to get at the current architecture by frame_info.
1156 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1158 * f-lang.c (build_fortran_types): Replace current_gdbarch by gdbarch.
1160 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1162 * core-regset.c (fetch_core_registers): Use get_regcache_arch to get at
1163 the current architecture by regcache.
1165 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1167 * corelow.c (get_core_registers): Use get_regcache_arch to get at the
1168 current architecture by regcache.
1170 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1172 * bsd-uthread.c (bsd_uthread_fetch_registers)
1173 (bsd_uthread_store_registers): Use get_regcache_arch to get at the
1174 current architecture by regcache.
1176 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1178 * avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
1179 get_frame_arch to get at the current architecture by frame_info.
1181 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1183 * arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
1185 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1187 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
1188 (store_regs): Use get_regcache_arch to get at the current architecture
1191 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1193 * arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
1194 to get at the current architecture by regcache.
1196 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1198 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
1199 (alphabsd_store_inferior_registers): Use get_regcache_arch to get at
1200 the current architecture by regcache.
1202 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1204 * ada-lang.c (ada_language_arch_info): Replace current_gdbarch by
1207 2007-10-30 Daniel Jacobowitz <dan@codesourcery.com>
1209 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Check the selected
1210 soft float and vector ABIs. Support the generic vector ABI for
1212 (do_ppc_sysv_return_value): Likewise. Correct argument types and
1214 (ppc64_sysv_abi_push_dummy_call): Assert that floating point is
1216 * ppc-tdep.h (enum powerpc_vector_abi): New.
1217 (struct gdbarch_tdep): Add soft_float and vector_abi.
1218 * rs6000-tdep.c (setpowerpccmdlist, showpowerpccmdlist)
1219 (powerpc_soft_float_global, powerpc_vector_strings)
1220 (powerpc_vector_abi_global, powerpc_vector_abi_string): New.
1221 (rs6000_gdbarch_init): Check for soft-float and vector ABI markings.
1222 (set_powerpc_command, show_powerpc_command, powerpc_set_soft_float)
1223 (powerpc_set_vector_abi): New.
1224 (_initialize_rs6000_tdep): Register "set powerpc" and "show powerpc"
1226 * Makefile.in (elf_ppc_h): New.
1227 (rs6000-tdep.o): Update.
1229 2007-10-29 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1231 * ppc-linux-tdep.c (ppc32_linux_reg_offsets): Corrected
1232 swapped offsets and VRSAVE offset.
1233 (ppc64_linux_reg_offsets): Corrected swapped offsets.
1234 (ppc32_linux_vrregset): Added.
1235 (ppc_linux_regset_from_core_section): Added support for
1236 .reg-ppc-vmx section.
1237 * ppc-tdep.h (ppc_altivec_support_p): Declare.
1238 (ppc_supply_vrregset): Declare.
1239 (ppc_collect_vrregset): Declare.
1240 * rs6000-tdep.c (ppc_altivec_support_p): Added.
1241 (ppc_supply_vrregset): Added.
1242 (ppc_collect_vrregset): Added.
1243 * corelow.c (get_core_registers): Added support for
1244 .reg-ppc-vmx section.
1246 2007-10-29 Joel Brobecker <brobecker@adacore.com>
1250 2007-10-26 Jim Blandy <jimb@codesourcery.com>
1252 * ax-gdb.h (expr_to_address_and_size): Delete declaration for
1255 * tracepoint.c (tracepoint_operation): Report the deletion event
1256 after we have unlinked the tracepoint from the list, and use the
1257 proper tracepoint number.
1259 * ax-gdb.c (expr_to_agent): Delete unused function.
1260 (expr_to_address_and_size): Delete #if 0'd function.
1261 * ax-gdb.h (expr_to_agent): Delete declaration.
1263 * ax-gdb.c (gen_cast): Remove redundant assignment to
1264 value->type. Doc fix.
1266 * ax-general.c (gen_traced_pop, gen_int_literal)
1267 (gen_usual_arithmetic): Check for typedefs.
1269 2007-10-26 Joel Brobecker <brobecker@adacore.com>
1271 * parse.c (prefixify_expression): Minor reformatting.
1273 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1275 * version.in: Use dot instead of dash.
1277 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1279 * linux-thread-db.c (check_for_thread_db): Only print if info_verbose.
1281 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1283 * memory-map.c (parse_memory_map): Don't use an empty struct
1286 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1288 * signals/signals.c (signals): Update pointer to enum
1289 target_signal declaration.
1291 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1292 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1293 Jim Blandy <jimb@codesourcery.com>
1295 * dwarf2read.c (read_partial_die): check the value
1296 of DW_AT_calling_convention in Fortran programs.
1298 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1299 Thiago Jung Bauermann <bauerman@br.ibm.com>
1301 * c-exp.y (YYSTYPE): Add typed_val_decfloat for decimal
1302 floating point in YYSTYPE union.
1303 (DECFLOAT) Add token and expression element handling code.
1304 (parse_number): Parse DFP constants, which end with suffix 'df',
1305 'dd' or 'dl'. Return DECFLOAT.
1306 * eval.c (evaluate_subexp_standard): Call value_from_decfloat to
1308 * expression.h (enum exp_opcode): Add an opcode (OP_DECFLOAT)
1310 (union exp_element): Add decfloatconst to represent DFP
1311 elements, which is 16 bytes by default.
1312 * parse.c (write_exp_elt_decfloatcst): New function to write a
1313 decimal float const into the expression.
1314 (operator_length_standard): Set operator length for OP_DECFLOAT
1316 * parser-defs.h (write_exp_elt_decfloatcst): Prototype.
1317 * valarith.c (value_neg): Add code to handle the negation
1318 operation of DFP values.
1319 * value.c (value_from_decfloat): New function to get the value
1320 from a decimal floating point.
1321 * value.h (value_from_decfloat): Prototype.
1323 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1324 Thiago Jung Bauermann <bauerman@br.ibm.com>
1326 * c-lang.c (c_create_fundamental_type): Create fundamental
1328 * c-typeprint.c (c_type_print_varspec_prefix): Add
1329 TYPE_CODE_DECFLOAT to no prefix needed case.
1330 (c_type_print_varspec_suffix): Add TYPE_CODE_DECFLOAT to no
1332 * c-valprint.c (c_val_print): Call print_decimal_floating to
1334 * dwarf2read.c (read_base_type): Read DW_ATE_decimal_float
1335 attribute code and return TYPE_CODE_DECFLOAT.
1336 (dwarf_base_type): Set dwarf2_fundamental_type for DFP values.
1337 * gdbtypes.c (gdbtypes_post_init): Initialize builtin_decfloat,
1338 builtin_decdouble and builtin_declong.
1339 * gdbtypes.h (enum type_code): Add TYPE_CODE_DECFLOAT as a
1341 (FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT): New
1342 types, for decimal floating point.
1343 (FT_NUM_MEMBERS): Increment, new types added.
1344 (struct builtin_type): Add builtin_decfloat, builtin_decdouble
1345 and builtin_declong.
1346 * valprint.c (print_decimal_floating): New function to print DFP
1348 * value.h (print_decimal_floating): Prototype.
1350 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1351 Thiago Jung Bauermann <bauerman@br.ibm.com>
1353 * Makefile.in (LIBDECNUMBER_DIR, LIBDECNUMBER, LIBDECNUMBER_SRC
1354 LIBDECNUMBER_CFLAGS): New macros for libdecnumber.
1355 (INTERNAL_CFLAGS_BASE): Add LIBDECNUMBER_CFLAGS in.
1356 (INSTALLED_LIBS): Add -ldecnumber in.
1357 (CLIBS): Add LIBDECNUMBER in.
1358 (decimal128_h, decimal64_h, decimal32_h): New macros for decimal
1360 (dfp_h): New macros for decimal floating point.
1361 (dfp.o): New target.
1362 (COMMON_OBS): Add dfp.o in.
1363 (c-exp.o): Add dfp_h as dependency.
1364 (valprint.o): Add dfp_h as dependency.
1365 (value.o): Add dfp_h as dependency.
1366 * dfp.h: New header file for decimal floating point support in
1368 * dfp.c: New source file for decimal floating point support in
1369 GDB. Implement decimal_from_string and decimal_to_string based
1370 on libdecnumber API.
1371 * configure.ac: Add AC_C_BIGENDIAN test.
1372 * config.in, configure: Regenerate.
1374 2007-10-25 David Ung <davidu@mips.com>
1375 Maciej W. Rozycki <macro@mips.com>
1378 * infcmd.c (registers_info): Check for a user register before
1379 calling target's gdbarch_print_registers_info(). If found to be
1380 so, extract the implicit value of user register and call
1381 print_scalar_formatted().
1382 * Makefile.in: (infcmd.o): Add $(user_regs_h).
1384 2007-10-25 Joel Brobecker <brobecker@adacore.com>
1386 * NEWS: Document status of hppa64-hpux support.
1388 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1390 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1391 set_solib_ops to install SVR4 operations.
1392 (_initialize_svr4_solib): Do not set current_target_so_ops.
1394 * config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
1395 * config/i386/i386gnu.mt (TDEPFILES): ... to here.
1397 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1399 * solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1400 (solib_svr4_init): Initialize fetch_link_map_offsets to NULL.
1401 * solib-svr4.h (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1402 * solib-legacy.c: Remove file.
1404 * config/alpha/alpha-linux.mt (TDEPFILES): Remove solib-legacy.o.
1405 * config/arm/linux.mt (TDEPFILES): Likewise.
1406 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1407 * config/ia64/linux.mt (TDEPFILES): Likewise.
1408 * config/m32r/linux.mt (TDEPFILES): Likewise.
1409 * config/powerpc/linux.mt (TDEPFILES): Likewise.
1410 * config/s390/s390.mt (TDEPFILES): Likewise.
1412 * alpha-linux-tdep.c (alpha_linux_init_abi): Call
1413 set_solib_svr4_fetch_link_map_offsets.
1414 * i386gnu-tdep.c (i386gnu_init_abi): Likewise.
1415 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
1417 * i386gnu-tdep.c: Include "solib-svr4.h".
1418 * Makefile.in: Update dependencies.
1420 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1422 * i386-nto-tdep.c: Include "solib.h".
1423 (i386nto_init_abi): Use set_solib_ops instead of overwriting
1424 current_target_so_ops members.
1425 * solist.h (TARGET_SO_RELOCATE_SECTION_ADDRESSES): Remove.
1426 (TARGET_SO_FIND_AND_OPEN_SOLIB): Remove.
1427 (TARGET_SO_IN_DYNSYM_RESOLVE_CODE): Remove.
1428 * Makefile.in: Update dependencies.
1430 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1432 * arm-wince-tdep.c: Include "solib.h" and "solib-target.h".
1433 (arm_wince_init_abi): Call set_solib_ops.
1434 * i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
1435 (i386_cygwin_init_abi): Call set_solib_ops.
1436 * solib-target.c: Include "solib-target.h".
1437 (solib_target_so_ops): Make global.
1438 (_initialize_solib_target): Do not set current_target_so_ops.
1439 * solib-target.h: New file.
1440 * Makefile.in: Update dependencies.
1442 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1444 * mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
1445 (mips_irix_init_abi): Call set_solib_ops.
1446 * solib-irix.c: Include "solib.h" and "solib-irix.h".
1447 (irix_so_ops): Make global.
1448 (_initialize_irix_solib): Do not set current_target_so_ops.
1449 * solib-irix.h: New file.
1450 * Makefile.in: Update dependencies.
1452 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1454 * configure.tgt: Remove hppa*64*-*-hpux11* special case.
1455 * config/pa/hppa64.mt: Delete file.
1456 * config/pa/hppahpux.mt (MT_CFLAGS): Remove.
1457 (TDEPFILES): Move somread.o to ...
1458 * config/pa/hpux.mh (NATDEPFILES): ... here.
1460 * configure.ac: Add check for elf_hp.h header.
1461 Search libdl and libxpdl for dlgetmodinfo.
1462 * config.in, configure: Regenerate.
1463 * solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
1464 instead of #ifndef PA_SOM_ONLY. Include "solib.h".
1465 (pa64_solib_select): Take gdbarch instead of tdep argument. Call
1466 set_solib_ops instead of modifying current_target_so_ops.
1467 * solib-pa64.h (pa64_solib_select): Update prototype.
1468 * solib-som.c: Remove include of "som.h". Include "solib.h".
1469 (som_solib_select): Take gdbarch instead of tdep argument. Call
1470 set_solib_ops instead of modifying current_target_so_ops.
1471 * solib-som.h (som_solib_select): Update prototype.
1472 * hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
1473 of tdep to som_solib_select call.
1474 (hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
1475 pa64_solib_select call.
1476 * Makefile.in: Update dependencies.
1478 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1480 * frv-tdep.c: Include "solib.h".
1481 (frv_gdbarch_init): Call set_solib_ops.
1482 * frv-tdep.h (struct target_so_ops): Add forward reference.
1483 (frv_so_ops): Add extern declaration.
1484 * solib-frv.c (frv_so_ops): Make global.
1485 (_initialize_frv_solib): Do not set current_target_so_ops.
1486 * Makefile.in: Update dependencies.
1488 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1490 * solib.c (solib_global_lookup): Use solib_ops instead of global
1491 current_target_so_ops.
1493 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1495 * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
1496 * config/frv-tm-frv.h: Delete file.
1498 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
1500 * NEWS: Mention gdbserver support for non-libthread_db operation.
1502 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
1504 * amd64-tdep.c (amd64_convert_register_p): Delete.
1505 (amd64_init_abi): Use i387_convert_register_p.
1506 * alpha-tdep.c (alpha_convert_register_p): Return zero for
1508 (alpha_register_to_value, alpha_value_to_register): Do not handle
1510 * i386-tdep.c (i386_convert_register_p): Use i387_convert_register_p.
1511 * i387-tdep.c (i387_convert_register_p): New.
1512 (i387_register_to_value, i387_value_to_register): Update comments.
1513 * i387-tdep.h (i387_convert_register_p): Declare.
1514 * ia64-tdep.c (ia64_convert_register_p): Return zero for
1515 builtin_type_ia64_ext.
1516 (ia64_gdbarch_init): Do not initialize builtin_type_ia64_ext here.
1517 (_initialize_ia64_tdep): Initialize builtin_type_ia64_ext here.
1518 * m68k-tdep.c (m68k_convert_register_p): Return zero for
1519 builtin_type_m68881_ext.
1520 (m68k_register_to_value, m68k_value_to_register): Update comments.
1522 2007-10-24 Nathan Sidwell <nathan@codesourcery.com>
1524 * target-memory.c (claim_memory): Propagate baton for split memory
1527 2007-10-24 Pedro Alves <pedro_alves@portugalmail.pt>
1530 * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
1533 2007-10-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1535 * symtab.c (find_line_symtab): scan through psymtabs
1536 when exact_match is zero.
1538 2007-10-23 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
1540 * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
1541 (deal_with_atomic_sequence): New.
1542 (mips_software_single_step): Use it.
1544 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
1547 * configure.ac: Modify $LIBINTL before the BFD check.
1548 * configure: Regenerated.
1550 2007-10-23 Joel Brobecker <brobecker@adacore.com>
1552 * buildsym.c (free_pending_blocks): Remove commented-out code.
1553 (make_blockvector): Likewise. Re-use free_pending_blocks.
1554 (end_symtab): Remove commented-out code.
1556 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1558 * top.c (command_loop): Fix output for shrinkage.
1560 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1562 * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
1563 (exp): Remove and document function-like casts.
1565 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1567 * cp-support.c: Include "safe-ctype.h".
1568 (cp_already_canonical): New function.
1569 (cp_canonicalize_string): Use it. Return NULL for already canonical
1571 (mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
1572 (cp_func_name, remove_params): Likewise.
1573 (cp_find_first_component_aux): Use ISSPACE.
1574 * cp-support.h (cp_demangled_name_to_comp): Correct comment. Remove
1576 * cp-name-parser.y (ALLOC_CHUNK): Define.
1577 (struct demangle_info): Add PREV and NEXT. Increase the size of
1579 (d_grab): Convert to a function.
1580 (allocate_info): Rewrite.
1581 (cp_demangled_name_to_comp): Remove MEMORY argument. Do not use
1582 strlen. Update call to allocate_info. Do not free it on failure.
1583 (main): Update calls to cp_demangled_name_to_comp.
1584 * Makefile.in (cp-support.o): Update.
1586 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1588 * std-regs.c (value_of_builtin_frame_fp_reg)
1589 value_of_builtin_frame_pc_reg, value_of_builtin_frame_sp_reg)
1590 value_of_builtin_frame_ps_reg): Use get_frame_arch to get at the
1591 current architecture by frame_info.
1593 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1595 * reggroups.c (default_register_reggroup_p): Replace current_gdbarch
1598 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1600 * infcmd.c (default_print_registers_info, print_return_value)
1601 (print_vector_info, print_float_info): Replace current_gdbarch by
1603 (registers_info): Use get_frame_arch to get at the current
1604 architecture by frame_info.
1606 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1608 * i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
1609 get_regcache_arch to get at the current architecture by regcache.
1611 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1613 * target.c (debug_print_register): Use get_regcache_arch to get at the
1614 current architecture by regcache.
1616 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
1618 * dwarf2read.c (read_file_scope): Add a comment.
1619 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_type)
1620 (read_enumeration_type, process_enumeration_scope, read_array_type)
1621 (read_typedef, read_base_type, read_subrange_type)
1622 (read_unspecified_type): Use dwarf2_name.
1624 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
1626 * coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
1627 * dwarf2read.c (dwarf2_free_objfile): New.
1628 * elfread.c (elf_symfile_finish): Call dwarf2_free_objfile.
1629 * symfile.h (dwarf2_free_objfile): Declare.
1631 2007-10-21 Joel Brobecker <brobecker@adacore.com>
1633 * hppa-hpux-nat.c (hppa_hpux_store_register): Add missing semi-colon.
1635 2007-10-21 Luis Machado <luisgpm@br.ibm.com>
1637 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
1638 * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
1639 default dwarf2_frame_set_init_reg function.
1641 2007-10-21 Pedro Alves <pedro_alves@portugalmail.pt>
1643 * NEWS: Mention native MinGW configuration.
1645 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1647 * gdbarch.sh: Remove "macro" column of input table. Remove handling
1648 of "macro" column throughout the file. Remove (empty) "macro" entry
1649 of all gdbarch functions.
1651 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1653 * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
1654 * gdbarch.c, gdbarch.h: Regenerate.
1655 * dbxread.c (find_stab_function_addr): Define unconditionally.
1656 (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
1657 instead of SOFUN_ADDRESS_MAYBE_MISSING.
1658 (end_psymtab): Likewise.
1659 (process_one_symbol): Likewise.
1660 * mdebugread.c (parse_partial_symbols): Likewise.
1662 * symtab.h (struct minimal_symbol): Always define "filename" member.
1663 * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
1664 * minsyms.c (lookup_minimal_symbol): Likewise.
1665 * symmisc.c (dump_msymbols): Likewise.
1667 * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
1668 * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
1669 * config/i386/tm-i386sol2.h: Remove file.
1670 * config/i386/tm-linux.h: Remove file.
1671 * i386-linux-tdep.c (i386_linux_init_abi): Add call to
1672 set_gdbarch_sofun_address_maybe_missing.
1673 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
1675 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
1676 * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
1677 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
1678 * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
1679 * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
1680 * config/powerpc/tm-ppc-eabi.h: Remove file.
1681 * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
1682 set_gdbarch_sofun_address_maybe_missing.
1684 * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
1685 * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
1686 * config/sparc/tm-sol2.h: Remove file.
1687 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
1688 set_gdbarch_sofun_address_maybe_missing.
1689 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
1691 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1693 * gdbarch.sh (static_transform_name): New gdbarch callback.
1694 * gdbarch.c, gdbarch.h: Regenerate.
1695 * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
1696 instead of STATIC_TRANSFORM_NAME.
1697 * mdebugread.c (parse_partial_symbols): Likewise.
1698 * stabsread.c (define_symbol): Likewise.
1699 * xcoffread.c (scan_xcoff_symtab): Likewise.
1701 * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
1702 (IS_STATIC_TRANSFORM_NAME): Remove.
1703 * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
1704 * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
1705 (i386_sol2_init_abi): Install it.
1707 * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
1708 (IS_STATIC_TRANSFORM_NAME): Remove.
1709 * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
1710 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
1711 (sparc32_sol2_init_abi): Install it.
1712 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
1713 * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
1715 2007-10-18 Daniel Jacobowitz <dan@codesourcery.com>
1717 * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
1718 (mips_n32n64_return_value, mips_o32_return_value)
1719 (mips_o64_return_value): Update calls to mips_xfer_register.
1721 2007-10-17 Daniel Jacobowitz <dan@codesourcery.com>
1723 * frame.c (frame_unwind_unsigned_register): Delete.
1724 (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
1725 * frame.h (frame_unwind_unsigned_register): Delete prototype.
1727 * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
1728 avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
1729 mt-tdep.c: Replace frame_unwind_unsigned_register with
1730 frame_unwind_register_unsigned.
1732 2007-10-16 Pedro Alves <pedro_alves@portugalmail.pt>
1734 * config/i386/mingw.mh, config/i386/mingw.mt: New files.
1735 * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
1736 * win32-nat.c: Only include cygwin.h on Cygwin host. Don't
1738 (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
1739 if not building on Cygwin.
1740 (win32_make_so, handle_output_debug_string, handle_exception)
1741 (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
1742 (win32_attach): Only fallback to Cygwin pids if building on
1744 (win32_pid_to_exec_file): Disable Cygwin specific code, if not
1746 (win32_create_inferior): Disable starting the inferior through a
1747 shell, environment var processing and tty handling if not building
1749 (cygwin_pid_to_str): Rename to ...
1750 (win32_pid_to_str): ... this.
1751 (init_win32_ops): Update use of win32_pid_to_str. Disable "shell"
1752 and "cygwin-exceptions" commands if not building on Cygwin.
1754 2007-10-16 Gaius Mulley <gaius@glam.ac.uk>
1756 * doc/gdb.texinfo: Add TSIZE definition, removed
1757 statement about unbounded arrays being unimplemented.
1758 * m2-valprint.c (m2_print_array_contents): New function.
1759 (m2_print_unbounded_array): New function.
1760 (m2_print_array_contents): New function.
1761 * m2-typeprint.c (m2_unbounded_array): New function.
1762 (m2_is_unbounded_array): New function.
1763 (m2_print_type): Test for unbounded array when walking
1765 * m2-lang.h: Added extern m2_is_unbounded_array.
1766 * m2-lang.c (evaluate_subexp_modula2): New function.
1767 (exp_descriptor_modula2): New structure.
1768 (m2_language_defn): Use exp_descriptor_modula2.
1769 * m2-exp.y: Added TSIZE and binary subscript.
1771 2007-10-16 Daniel Jacobowitz <dan@codesourcery.com>
1773 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
1776 2007-10-16 Kevin Buettner <kevinb@redhat.com>
1778 * m32r-tdep.c (decode_prologue): Sign extend offset for
1780 (m32r_frame_unwind_cache): Likewise.
1782 2007-10-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
1784 * rs6000-tdep.c (skip_prologue): Restore comment with
1785 function description to its proper place.
1787 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1789 * NEWS: Mention gdbserver PowerPC improvements.
1791 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1793 * features/Makefile (WHICH): Add PowerPC register definitions.
1794 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
1795 (rs6000/powerpc-64-expedite): New macros.
1796 ($(outdir)/%.dat): Handle subdirectories.
1797 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
1798 regformats/rs6000/powerpc-e500.dat: New generated files.
1800 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1802 * ppc-linux-nat.c (ppc_linux_read_description): New.
1803 (_initialize_ppc_linux_nat): Set to_read_description.
1804 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
1806 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1808 * NEWS: Document target described register support for PowerPC.
1809 * ppc-tdep.h: Remove ppc_spr constants.
1810 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
1811 ppc_builtin_type_vec128 members.
1812 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
1813 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
1814 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
1815 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
1816 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
1817 * rs6000-tdep.c: Include preparsed descriptions.
1818 (init_sim_regno_table): Do not iterate over pseudo registers.
1819 Look up segment registers by name. Use sim_spr_register_name
1821 (rs6000_register_sim_regno): Call init_sim_regno_table here.
1822 (rs6000_builtin_type_vec128): Delete.
1823 (rs6000_register_name): Only handle SPE pseudo registers and upper
1824 halves. Call tdesc_register_name for everything else.
1825 (rs6000_register_type): Delete. Replace with...
1826 (rs6000_pseudo_register_type): ...this new function. Only handle
1827 SPE pseudo registers.
1828 (rs6000_register_reggroup_p): Delete. Replace with...
1829 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
1830 handle SPE pseudo registers.
1831 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
1833 (rs6000_register_to_value, rs6000_value_to_register): Remove check
1835 (e500_register_reggroup_p): Delete.
1836 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
1837 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
1838 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
1839 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
1840 (registers_powerpc, registers_403, registers_403GC, registers_505)
1841 (registers_860, registers_601, registers_602, registers_603)
1842 (registers_604, registers_750, registers_7400, registers_e500): Delete
1844 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
1846 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
1847 (variants): Delete outdated comment. Use standard target descriptions
1848 instead of "struct reg" arrays.
1849 (init_variants): Delete.
1850 (rs6000_gdbarch_init): Do not guess word size from the BFD
1851 architecture if we have a target description. Select a variant
1852 before creating a new architecture. Use the variant's target
1853 description if the target did not define a register layout.
1854 Validate target-supplied registers. Reject mismatches. Use
1855 fixed register numbers and new constants instead of magic
1856 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
1857 (_initialize_rs6000_tdep): Initialize the preparsed target
1859 * target-descriptions.c (tdesc_predefined_types): Add int128 and
1861 (tdesc_find_register_early): New function.
1862 (tdesc_numbered_register): Use it.
1863 (tdesc_register_size): New function.
1864 (tdesc_use_registers): Take a target_desc argument. Do not use
1865 gdbarch_target_desc.
1866 * target-descriptions.h (tdesc_use_registers): Update prototype
1868 (tdesc_register_size): New prototype.
1869 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
1870 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
1871 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
1872 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
1873 (rs6000-tdep.o): Update.
1874 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
1875 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
1876 * mips-tdep.c (mips_gdbarch_init): Likewise.
1878 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1880 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
1881 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
1882 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
1883 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
1884 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
1885 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
1886 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
1889 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1891 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
1892 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
1893 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
1894 feature descriptions for standard PowerPC register sets.
1896 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
1897 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
1898 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
1899 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
1900 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
1901 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
1902 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
1903 target descriptions for PowerPC processors.
1905 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1907 * target-descriptions.c (tdesc_predefined_types): New.
1908 (tdesc_named_type): Use it.
1909 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
1910 (_intialize_target_descriptions): Register "maint print c-tdesc".
1911 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
1912 (cfiles, %.c): New rules.
1913 * features/arm-with-iwmmxt.c, features/mips-linux.c,
1914 features/mips64-linux.c: New generated files.
1916 * arm-linux-nat.c: Include preparsed description instead of
1918 (super_xfer_partial, arm_linux_xfer_partial): Remove.
1919 (arm_linux_read_description): New function.
1920 (_initialize_arm_linux_nat): Set to_read_description instead of
1921 to_xfer_partial. Initialize preparsed description.
1922 * config/arm/linux.mh (TDEP_XML): Delete.
1923 * mips-linux-nat.c: Include preparsed descriptions instead of
1925 (super_xfer_partial, mips_linux_xfer_partial): Remove.
1926 (mips_linux_read_description): New function.
1927 (_initialize_mips_linux_nat): Set to_read_description instead of
1928 to_xfer_partial. Initialize preparsed description.
1929 * config/mips/linux.mh (TDEP_XML): Delete.
1930 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
1931 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
1932 (mips64_linux_c): New macros.
1933 (arm-linux-nat.o, mips-linux-nat.o): Update.
1935 2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
1937 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
1938 Replace xasprintf by xstrprintf.
1939 symfile-mem.c (add_vsyscall_page): Ditto.
1941 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1943 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
1944 replacing use of global current_gdbarch.
1945 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
1946 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
1948 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
1949 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
1950 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
1951 (ia64_sigtramp_frame_cache): Update caller.
1953 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1955 * gdbarch.sh (deprecated_use_struct_convention): Remove.
1956 (extract_return_value, store_return_value): Remove.
1957 (return_value): Remove default implementation.
1958 * gdbarch.c, gdbarch.h: Regenerate.
1960 * stack.c (return_command): Remove compatibility hack.
1961 * arch-utils.c (legacy_return_value): Remove.
1962 * arch-utils.h (legacy_return_value): Likewise.
1964 * arch-utils.c (always_use_struct_convention): Remove.
1965 * arch-utils.h (always_use_struct_convention): Likewise.
1966 * value.c (generic_use_struct_convention): Remove.
1967 * defs.h (generic_use_struct_convention): Likewise.
1969 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1971 * avr-tdep.c (avr_return_value): New function.
1972 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
1973 set_gdbarch_extract_return_value.
1975 * fvr-tdep.c (frv_return_value): New function.
1976 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
1977 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
1978 and set_gdbarch_deprecated_use_struct_convention.
1980 * ia64-tdep.c (ia64_use_struct_convention): Make static.
1981 Add check for structure, union, or array types.
1982 (ia64_extract_return_value): Make static.
1983 (ia64_store_return_value): Make static. Support multi-word values.
1984 (ia64_return_value): New function.
1985 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
1986 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
1987 and set_gdbarch_deprecated_use_struct_convention.
1989 2007-10-12 Joel Brobecker <brobecker@adacore.com>
1991 * solib-target.c (solib_target_parse_libraries)
1992 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
1994 2007-10-12 Jim Blandy <jimb@codesourcery.com>
1996 * serial.h (struct serial_ops): Document read_prim to return zero
1998 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
1999 read_prim returns zero, not SERIAL_TIMEOUT.
2001 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2003 * alpha-mdebug-tdep.c: Include "gdb_string.h".
2004 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
2005 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
2006 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
2008 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
2009 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
2010 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
2011 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
2012 * config/alpha/tm-alpha.h: Remove file.
2014 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2016 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
2017 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
2019 * config/pa/tm-hppa.h: Delete file.
2020 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
2021 * config/pa/hppahpux.mt: Likewise.
2022 * config/pa/hppa.mt: Likewise.
2023 * config/pa/linux.mt: Likewise.
2024 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
2026 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2028 * config/arm/nm-nbsdaout.h: Remove file.
2029 * config/nm-nbsdaout.h: Likewise.
2030 * config/nm-nbsd.h: Likewise.
2032 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2034 * block.h (struct block): Remove "gcc_compile_flag" member.
2035 (BLOCK_GCC_COMPILED): Remove.
2036 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
2037 * buildsym.c (finish_block): Do not set it.
2038 * symmisc.c (dump_symtab_1): Do not dump it.
2040 * value.h (using_struct_return): Remove "gcc_p" argument.
2041 * value.c (using_struct_return): Likewise.
2042 * eval.c (evaluate_subexp_standard): Adapt callers.
2043 * infcall.c (call_function_by_hand): Likewise.
2044 * stack.c (return_command): Likewise.
2045 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2047 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
2048 * gdbarch.c, gdbarch.h: Regenerate.
2049 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
2050 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
2051 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2052 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
2053 (push_dummy_code, call_function_by_hand): Adapt callers.
2055 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2057 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
2058 (finish_command_continuation, finish_command): Adapt callers.
2060 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2062 * infcall.c (call_function_by_hand): Remove special handling
2063 for HP aCC compiled code.
2065 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2067 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
2068 reference. Fix endianness bugs.
2069 (cris_reg_struct_has_address): Remove.
2070 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
2071 and set_gdbarch_deprecated_use_struct_convention calls.
2073 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
2074 * gdbarch.c, gdbarch.h: Regenerate.
2075 * infcall.c (call_function_by_hand): Remove handling of
2076 deprecated_reg_struct_has_addr.
2078 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2079 Kazu Hirata <kazu@codesourcery.com>
2081 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
2082 checking watchpoint resources.
2084 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2086 * memattr.c (inaccessible_by_default): Change the initial
2089 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2092 * coffread.c (read_one_sym): Check for read errors.
2094 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
2096 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
2097 instead of "Linux 2.6.19" in comment.
2098 (linux_xfer_partial): Use "GNU/Linux target" instead of
2099 "Linux target" in comment.
2100 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
2101 (m68k_linux_get_sigtramp_info): Likewise.
2103 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2105 * MAINTAINERS (language support): List Joel and Paul as
2108 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2110 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
2112 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
2113 not set DEPRECATED_TM_FILE.
2114 * config/arm/tm-arm.h: Delete file.
2116 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
2118 * MAINTAINERS (Write After Approval): Add self.
2120 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2122 * buildsym.c (record_line): Remove empty lines followed by
2123 end-of-sequence markers.
2125 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2127 * configure.tgt: Recognize fido-*-elf.
2129 2007-10-10 Joel Brobecker <brobecker@adacore.com>
2133 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2135 * stack.c (print_frame_args, frame_info, return_command): Use
2136 get_regcache_arch or get_frame_arch to get at the current architecture
2137 by regcache or by frame, respectively.
2139 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2141 * rs6000-nat.c (fetch_register, store_register)
2142 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
2143 get_regcache_arch to get at the current architecture by regcache.
2145 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
2146 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
2147 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
2148 current_gdbarch by gdbarch.
2149 (rs6000_skip_trampoline_code, rs6000_register_to_value)
2150 (rs6000_value_to_register): Use get_frame_arch to get at the current
2151 architecture by frame_info.
2153 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2155 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
2156 get_regcache_arch to get at the current architecture by regcache.
2158 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2159 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
2160 get_regcache_arch to get at the current architecture by regcache.
2162 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
2163 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2164 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
2165 current architecture by regcache.
2167 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2169 * remote-mips.c (mips_wait, mips_fetch_registers)
2170 (mips_store_registers): Use get_regcache_arch to get at the
2171 current architecture by regcache.
2173 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
2174 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
2175 get at the current architecture by regcache.
2176 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
2177 architecture by frame_info.
2179 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2180 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
2181 the current architecture by regcache.
2183 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2184 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
2185 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
2186 current architecture by frame_info.
2187 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
2188 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
2189 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
2190 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
2191 get at the current architecture by regcache.
2193 * mips-linux-nat.c (mips_linux_register_addr)
2194 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
2195 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
2196 (mips64_linux_regsets_fetch_registers)
2197 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
2198 the current architecture by regcache.
2200 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
2201 get at the current architecture by frame_info.
2203 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2205 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
2206 current architecture by regcache.
2207 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
2208 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
2209 (mips_stub_frame_cache, mips_read_fp_register_single)
2210 (mips_read_fp_register_double, mips_print_fp_register)
2211 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
2212 at the current architecture by frame_info.
2213 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
2214 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
2215 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
2216 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
2217 (mips_o32_push_dummy_call, mips_o32_return_value)
2218 (mips_o64_push_dummy_call, mips_o64_return_value)
2219 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
2222 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2224 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
2225 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
2226 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
2227 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
2228 (xtensa_register_write_masked, xtensa_register_read_masked)
2229 (xtensa_supply_gregset, xtensa_store_return_value)
2230 (xtensa_extract_return_value): Use get_regcache_arch to get at the
2231 current architecture by regcache.
2232 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
2233 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
2234 architecture by frame_info.
2236 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2238 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
2239 (thumb_analyze_prologue): Move pv_area_store_would_trash call
2240 out of loop. Do not set cache->frameoffset.
2241 (arm_scan_prologue): Use prologue-value mechanism. Do not set
2242 frameoffset. Simplify framesize.
2243 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
2245 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
2247 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2249 * target.c (update_current_target): Call setup_target_debug.
2250 (push_target): Do not call it here.
2252 2007-10-09 Michael Snyder <msnyder@specifix.com>
2254 * MAINTAINERS: Update my email address.
2256 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2258 * xtensa-tdep.c: Replace following current-gdbarch based macros by
2260 (xtensa_pseudo_register_read)
2261 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
2262 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
2263 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
2264 (xtensa_pseudo_register_read)
2265 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
2266 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
2267 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
2268 (xtensa_frame_prev_register): NUM_AREGS.
2269 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
2270 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
2271 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
2272 (xtensa_supply_gregset, xtensa_frame_cache)
2273 (xtensa_frame_prev_register): WS_REGNUM.
2274 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
2275 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
2276 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
2277 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2278 (xtensa_register_reggroup_p): REGMAP.
2279 (call0_track_op): LITBASE_REGNUM.
2280 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
2281 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
2282 (xtensa_frame_prev_register, AREG_NUMBER)
2283 (xtensa_register_type): AR_BASE.
2284 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
2285 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
2286 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2287 (xtensa_frame_cache, xtensa_frame_prev_register)
2288 (xtensa_extract_return_value, xtensa_store_return_value)
2289 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
2290 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
2291 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
2292 (xtensa_frame_prev_register, xtensa_push_dummy_call)
2293 (call0_frame_cache): A1_REGNUM.
2294 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
2295 (xtensa_push_dummy_call): A4_REGNUM.
2296 (ARGS_FIRST_REG): A6_REGNUM.
2297 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2298 (xtensa_frame_prev_register): A15_REGNUM.
2299 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
2300 them in the appropriate source file:
2301 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
2302 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
2303 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
2304 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
2305 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
2306 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
2307 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
2308 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
2309 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
2310 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
2311 A13_REGNUM, A14_REGNUM, A15_REGNUM.
2313 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2315 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
2316 the current architecture by frame_info.
2317 (h8300_frame_prev_register
2318 (h8300_print_register): Replace current_gdbarch by gdbarch.
2319 (h8300_print_registers_info, h8300_register_type)
2320 (h8300_register_type): Likewise.
2322 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2324 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
2325 the current architecture by regcache.
2326 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
2327 (i386_linux_fetch_inferior_registers)
2328 (i386_linux_store_inferior_registers): Likewise.
2329 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
2330 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
2331 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2332 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
2333 (i386_extract_return_value, i386_store_return_value): Likewise.
2334 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
2335 the current architecture by frame_info.
2336 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
2337 (i386_register_to_value, i386_value_to_register): Likewise.
2339 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2341 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
2342 the current architecture by regcache.
2343 (monitor_store_register, monitor_store_registers): Likewise.
2345 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2347 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
2348 the current architecture by regcache.
2350 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2352 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
2355 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2357 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
2358 architecture by frame.
2359 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
2360 (inside_main_func, frame_sp_unwind): Likewise.
2362 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
2364 * solib-svr4.c (enable_break): Add the dynamic linker also if
2367 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2369 * MAINTAINERS (Write After Approval): Add self.
2371 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2373 * stabsread.c (read_huge_number): Initialize local variable to 0.
2375 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
2377 * p-lang.h (pascal_main_name): Add declaration.
2378 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
2379 (GPC_MAIN_PROGRAM_NAME_2): New constants.
2380 (pascal_main_name): New function.
2381 * symtab.c: Include p-lang.h.
2382 (find_main_name): Add call to pascal_main_name.
2383 * Makefile.in (symtab.o): Add dependency on p-lang.h.
2385 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2387 * stabsread.c (read_huge_number): Fix handling of octal
2388 representation when the bit width is known.
2389 (read_range_type): Record unsigned integral types with their size,
2390 when the type size is known.
2392 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
2394 * MAINTAINERS (Write After Approval): Add self.
2396 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2398 * breakpoint.c (print_one_breakpoint_location): ARI fix:
2399 Replace asprintf by xstrprintf.
2401 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2403 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
2404 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
2406 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2408 * linux-fork.c: Move "gdb_wait.h" include back to the position of
2409 <sys/wait.h> include before last commit.
2411 2007-10-08 Maciej W. Rozycki <macro@mips.com>
2413 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
2415 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2417 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
2418 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
2419 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
2420 (store_regs_user_thread, store_regs_kernel_thread): Use
2421 get_regcache_arch or get_frame_arch to get at the current architecture
2422 by regcache or by frame, respectively.
2424 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2426 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
2427 (sh64_pseudo_register_read, sh64_pseudo_register_write)
2428 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
2429 (sh64_print_register, sh64_media_print_registers_info)
2430 (sh64_compact_print_registers_info, sh64_unwind_sp)
2431 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
2432 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
2433 (sh64_frame_prev_register): Use FRAME to recognize current
2436 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2438 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2439 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2440 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
2441 current_gdbarch by gdbarch.
2442 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
2443 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2444 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
2445 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
2446 recognize current architecture.
2448 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2450 * remote.c (init_remote_state, fetch_register_using_p)
2451 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
2452 (store_register_using_P, store_registers_using_G)
2453 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
2454 get at the current architecture by regcache or by frame, respectively.
2456 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2458 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
2459 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
2460 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
2461 get_regcache_arch or get_frame_arch to get at the current architecture
2462 by regcache or by frame, respectively.
2463 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2464 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
2465 (store_register, old_store_inferior_registers, supply_gregset)
2466 (supply_fpregset, fill_fpregset): Likewise.
2467 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
2468 Replace current_gdbarch by gdbarch.
2470 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2472 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
2473 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
2474 get_frame_arch to get at the current architecture by regcache or by
2475 frame, respectively.
2477 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2479 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
2480 Replace current_gdbarch by gdbarch.
2481 * ia64-tdep.c (ia64_frame_prev_register
2482 (ia64_sigtramp_frame_prev_register)
2483 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
2484 get_frame_arch to get at the current architecture by regcache or by
2485 frame, respectively.
2486 * ia64-linux-nat.c (ia64_linux_fetch_register)
2487 (ia64_linux_fetch_registers, ia64_linux_store_register)
2488 (ia64_linux_store_registers): Likewise.
2490 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2492 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
2493 current_gdbarch by gdbarch.
2494 * hppa-linux-nat.c (fetch_register, store_register)
2495 (hppa_linux_fetch_inferior_registers)
2496 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
2497 get_frame_arch to get at the current architecture by regcache or by
2498 frame, respectively.
2499 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
2500 (hppa_hpux_unwind_adjust_stub): Likewise.
2501 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
2502 (hppa_hpux_fetch_inferior_registers)
2503 (hppa_hpux_store_inferior_registers): Likewise.
2505 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2507 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
2508 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
2509 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
2510 or get_frame_arch to get at the current architecture by regcache or by
2511 frame, respectively.
2512 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
2513 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
2514 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
2515 current_gdbarch by gdbarch.
2517 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2519 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
2520 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
2521 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
2522 get at the current architecture by regcache or by·frame, respectively.
2523 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
2526 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2528 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
2529 Use get_regcache_arch or get_frame_arch to get at the current
2530 architecture by regcache or by frame, respectively.
2531 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2532 * amd64-nat.c (amd64_supply_native_gregset)
2533 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
2535 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2537 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
2539 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2540 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
2541 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
2542 get_frame_arch to get at the current architecture by regcache or by
2543 frame, respectively.
2544 * alpha-nat.c (fetch_osf_core_registers): Likewise.
2546 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2548 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
2549 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
2550 current_gdbarch by gdbarch.
2551 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
2553 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2555 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
2556 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
2557 * regcache.c (regcache_raw_write): Use get_regcache_arch or
2558 get_frame_arch to get at the current architecture by regcache or by
2559 frame, respectively.
2561 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2563 * findvar.c (value_of_register, locate_var_value): Use
2564 get_regcache_arch or get_frame_arch to get at the current architecture
2565 by regcache or by frame, respectively.
2566 * findvar.c (default_value_from_register, value_from_register): Replace
2567 current_gdbarch by gdbarch.
2569 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2571 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
2573 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2575 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
2576 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
2578 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
2580 * remote.c (get_offsets): Only call free_symfile_segment_data if
2583 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
2585 * objc-exp.y: ARI fix: remove 4 PARAMS.
2587 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
2589 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
2590 news. Mention XML support for M68K in GDB 6.7.
2592 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
2594 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
2596 (init_vector_type): Use builtin_type_int32.
2598 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
2600 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
2601 size to enable bi-arch generate-core-file support.
2603 2007-10-02 Markus Deuling <deuling@de.ibm.com>
2605 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
2607 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2609 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
2611 * tui/tui-win.c (tui_initialize_win): New function for
2612 initializing tui's SIGWINCH signal handler.
2613 * tui/tui-win.h (tui_initialize_win): Declare.
2615 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
2617 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
2618 pointer to uintptr_t before casting to CORE_ADDR.
2620 2007-10-02 Markus Deuling <deuling@de.ibm.com>
2622 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
2624 2007-10-02 Mark Mitchell <mark@codesourcery.com>
2626 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
2627 * ser-mingw.c (enum select_thread_state): New type.
2628 (struct ser_console_state): Add have_started and thread_state.
2629 (select_thread_wait): New function.
2630 (thread_fn_type): New type.
2631 (create_select_thread): New function.
2632 (destroy_select_thread): Likewise.
2633 (start_select_thread): Likewise.
2634 (stop_select_thread): Likewise.
2635 (console_select_thread): Use new functions.
2636 (pipe_select_thread): Likewise.
2637 (file_select_thread): Likewise.
2638 (ser_console_wait_handle): Likewise.
2639 (ser_console_done_wait_handle): Likewise.
2640 (ser_console_close): Likewise.
2641 (free_pipe_state): Likewise.
2642 (pipe_wait_handle): Likewise.
2643 (pipe_done_wait_handle): Likewise.
2644 (struct net_windows_state): Derive from ser_console_state.
2645 (net_windows_select_thread): Use new functions.
2646 (net_windows_wait_handle): Likewise.
2647 (net_windows_done_wait_handle): Likewise.
2648 (net_windows_close): Likewise.
2650 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
2652 * inflow.c (terminal_ours_1): Remove useless line.
2654 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
2656 * mips-tdep.c (mips_read_fp_register_double): Correct check for
2658 (mips_print_fp_register): Correct check for even FP registers.
2659 (mips_virtual_frame_pointer): New function.
2660 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
2662 2007-09-30 Mike Frysinger <vapier@gentoo.org>
2664 * value.h (lookup_only_internalvar): New prototype.
2665 (create_internalvar): Likewise.
2666 * value.c (lookup_only_internalvar): New function.
2667 (create_internalvar): Likewise.
2668 (lookup_internalvar): Use new lookup_only_internalvar and
2669 create_internalvar functions.
2670 * parse.c (write_dollar_variable): Look up $ symbols in internal
2671 table first rather than last.
2673 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
2675 * linux-nat.c (linux_nat_new_thread): New variable.
2676 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
2677 linux_nat_switch_fork.
2678 (lwp_list): Make public.
2679 (add_lwp): Call linux_nat_new_thread.
2680 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
2682 (resume_callback): Clear lp->siginfo. Remove unused variable.
2683 (linux_nat_resume): Assert that the LWP list is already initialized.
2685 (save_siginfo): New.
2686 (stop_wait_callback, linux_nat_wait): Call it.
2687 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
2688 * linux-nat.h (struct lwp_info): Add siginfo.
2689 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
2692 * amd64-linux-nat.c (amd64_linux_dr): New.
2693 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
2694 (amd64_linux_dr_set): Take a PTID argument.
2695 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
2696 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
2697 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
2698 (amd64_linux_new_thread): New.
2699 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
2700 * i386-linux-nat.c (i386_linux_dr): New.
2701 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
2702 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
2703 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
2704 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
2705 (i386_linux_new_thread): New.
2706 (i386_linux_resume): Remove unnecessary PID check.
2707 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
2708 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
2709 (fetch_debug_register, fetch_debug_register_pair): Delete.
2710 (debug_registers): New.
2711 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
2712 ALL_LWPS and debug_registers.
2713 (ia64_linux_new_thread): New.
2714 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
2715 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
2716 * ppc-linux-nat.c (last_stopped_data_address): Delete.
2717 (saved_dabr_value): New.
2718 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
2720 (ppc_linux_new_thread): New.
2721 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
2722 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
2723 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
2724 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
2726 (s390_fix_watch_points): Take a PTID argument.
2727 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
2728 (_initialize_s390_nat): Call linux_nat_set_new_thread.
2730 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
2731 Jeff Johnston <jjohnstn@redhat.com>
2733 * breakpoint.c (watchpoints_triggered): New.
2734 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
2735 Check watchpoint_triggered instead. Combine handling for software
2736 and hardware watchpoints. Do not use target_stopped_data_address
2737 here. Always check a watchpoint if its scope breakpoint triggers.
2738 Do not stop for thread or overlay events. Improve check for
2739 triggered watchpoints without a value change.
2740 (watch_command_1): Insert the scope breakpoint first. Link the
2741 scope breakpoint to the watchpoint.
2742 * breakpoint.h (enum watchpoint_triggered): New.
2743 (struct breakpoint): Add watchpoint_triggered.
2744 (bpstat_stop_status): Update prototype.
2745 (watchpoints_triggered): Declare.
2746 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
2747 (stepped_after_stopped_by_watchpoint): Delete.
2748 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
2749 local. Handle infwait_step_watch_state. Update calls to
2750 bpstat_stop_status. Use watchpoints_triggered to check
2752 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
2753 (remote_stopped_data_address): Do not check it.
2755 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
2757 * configure.ac: Add $LIBINTL when testing libbfd.
2758 * configure: Regenerated.
2760 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
2762 * NEW: Mention pending breakpoint changes and
2763 support for breakpoints at multiple locations.
2765 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
2767 * arm-linux-tdep.c (arm_linux_software_single_step): New.
2768 (arm_linux_init_abi): Use it.
2769 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
2770 condition correctly.
2771 * arm-tdep.h (arm_get_next_pc): Declare.
2772 * Makefile.in (arm-linux-tdep.o): Update.
2774 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
2776 * varobj.c (install_new_value): Don't
2777 call value_get_print_value when a value is
2778 lazy. Update the print_value member in a
2781 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
2783 * breakpoint.c (create_breakpoint): Set
2784 condition on each location, not on the first
2785 location of breakpoint.
2787 2007-09-26 Jim Blandy <jimb@codesourcery.com>
2789 * remote.c (getpkt_sane): Fix error message. No animals were
2790 harmed in the making of this debugger.
2792 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2794 * p-typeprint.c: Fix 11 ARI reported problems.
2795 (pascal_print_type): Fix 4 operator at end of line.
2796 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
2797 using strncmp function.
2798 (pascal_type_print_base): Fix 2 operator at end of line.
2799 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
2800 using strncmp function.
2803 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2805 * Fix PR pascal/2231
2806 dwarf2read.c (read_subroutine_type):
2807 All pascal functions are prototyped.
2809 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2811 * Fix PR pascal/2283
2812 p-valprint.c (pascal_val_print): correct current language check.
2813 Also print array of char as strings.
2816 2007-09-26 David Ung <davidu@mips.com>
2817 Maciej W. Rozycki <macro@mips.com>
2819 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
2821 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
2823 * p-exp.y: Fix 12 ARI reported problems.
2824 (name_not_typename): Fix 2 operator at end of line issues.
2825 (yylex): Fix 3 operator at end of line issues.
2826 Replace 7 DEPRECATED_STREQ macros using strcmp function.
2828 2007-09-25 David Ung <davidu@mips.com>
2829 Maciej W. Rozycki <macro@mips.com>
2831 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
2832 rules return composite types in registers as appropriate.
2834 2007-09-24 Jim Blandy <jimb@codesourcery.com>
2836 * symfile.h (struct symfile_segment_data): Doc fixes.
2837 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
2838 Assert that we were passed some loaded segment addresses,
2839 and that sections' segment numbers are valid.
2840 Simplify offset calculation.
2841 * remote.c (get_offsets): Clarify selection of relocate-by-segment
2842 strategy, and set num_segments correctly. Delete redundant
2843 assignments to do_sections.
2845 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
2847 * frame.c (get_prev_frame_1): Also check for PC in the same register.
2849 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
2851 * breakpoint.c (remove_sal): New.
2852 (expand_line_sal_maybe): New.
2853 (create_breakpoints): Call expand_line_sal_maybe.
2854 (clear_command): Add comment.
2855 (breakpoint_re_set_one): Call expand_line_sal_maybe.
2856 * linespec.c (decode_indirect): Set explicit_pc to 1.
2857 (decode_all_digits): Set explicit_line to 1.
2858 (append_expanded_sal): New.
2859 (expand_line_sal): New.
2860 * linespec.h (expand_line_sal): Declare.
2861 * symtab.c (init_sal): Initialize explicit_pc
2863 * symtab.h (struct symtab_and_line): New fields
2864 explicit_pc and explicit_line.
2866 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
2868 * infcall.c (call_function_by_hand): Handle language-specific
2869 pass and return by reference.
2871 * cp-abi.c (cp_pass_by_reference): New.
2872 * cp-abi.h (cp_pass_by_reference): Declare.
2873 (struct cp_abi_ops): Add pass_by_reference.
2874 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
2875 (init_gnuv3_ops): Set pass_by_reference.
2877 * language.c (language_pass_by_reference): New.
2878 (default_pass_by_reference): New.
2879 (unknown_language_defn, auto_language_defn, local_language_defn): Add
2880 default_pass_by_reference.
2881 * langauge.h (struct language_defn): Add la_pass_by_reference.
2882 (language_pass_by_reference, default_pass_by_reference): Declare.
2883 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
2884 * c-lang.c (c_language_defn, asm_language_defn)
2885 (minimal_language_defn): Likewise.
2886 (cplus_language_defn): Add cp_pass_by_reference.
2887 * f-lang.c (f_language_defn): Add default_pass_by_reference.
2888 * jv-lang.c (java_language_defn): Likewise.
2889 * m2-lang.c (m2_language_defn): Likewise.
2890 * objc-lang.c (objc_language_defn): Likewise.
2891 * p-lang.c (pascal_language_defn): Likewise.
2892 * scm-lang.c (scm_language_defn): Likewise
2894 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
2896 Allow a code breakpoint to have several locations
2898 * breakpoint.h (enum enable_state): Remove the
2899 bp_shlib_disabled enumerator.
2900 (struct bp_location): New members shlib_disabled,
2901 global_next, enabled and function_name.
2902 Rename pending to condition_not_parsed.
2904 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
2905 (ALL_BP_LOCATIONS_SAFE): Likewise.
2906 (breakpoint_enabled): Don't check for pending.
2907 (condition_command): Free and update all locations of
2909 (insert_bp_location): Adjust.
2910 (software_breakpoint_inserted_here_p): Don't care
2911 if breakpoint is enabled, as soon as it's inserted.
2912 (print_it_typical): Print bpstat's location, not
2913 bpstat's breakpoint's location.
2914 (bpstat_stop_status): Iterate over all locations, not
2916 (print_breakpoint_location): New.
2917 (print_one_breakpoint): Renamed to
2918 (print_one_breakpoint_location): ...this. Take
2919 parameters to describe which location is being
2920 printed. Modify code to properly print header
2921 for several locations and individual locations.
2922 (print_one_breakpoint): Print all locations.
2923 (breakpoint_has_pc): New.
2924 (describe_other_breakpoints): Use the above.
2925 (check_duplicates): Renamed to...
2926 (check_duplicates_for): .. this.
2927 (check_duplicates): Use check_duplicates_for.
2928 (allocate_bp_location): Adjust.
2929 (set_raw_breakpoint_without_location): New,
2930 extracted from set_raw_breakpoint.
2931 (set_breakpoint_location_function): New.
2932 (set_raw_breakpoint): Use
2933 set_raw_breakpoint_without_location.
2934 (make_breakpoint_permanent): Mark all locations
2936 (disable_breakpoints_in_shlibs): Iterate over
2938 (disable_breakpoints_in_unloaded_shlib): Likewise.
2939 (re_enable_breakpoints_in_shlibs): Likewise.
2940 (mention): Say "pending" when breakpoint has
2941 zero locations. If breakpoint has more than one
2943 (add_location_to_breakpoint): New.
2944 (create_breakpoint): Accept symtabs_and_lines, not
2945 symtab_and_line. Pass extra sals to
2946 add_location_to_breakpoint.
2947 (create_breakpoints): Pass symtabs_and_lines to
2949 (break_command_1): Make pending breakpoints
2950 have zero locations.
2951 (do_captured_breakpoint): Remove wrong allocation.
2952 (clear_command): Iterate over all locations.
2953 (unlink_locations_from_global_list): Renamed
2954 from unlink_location_from_global_list. Remove
2956 (delete_breakpoint): Remove all locations.
2957 Iterate over all locations when deciding which
2958 other location to re-enable.
2959 (all_locations_are_pending): New.
2960 (update_breakpoint_locations): Renamed from
2961 update_breakpoint_location. Try to match old
2962 and new locations using names of containing
2964 (breakpoint_re_set_one): Adjust.
2965 (find_location_by_number): New.
2966 (disable_command): Allow disabling individual location.
2967 (enable_command): Allow enabling individual location.
2968 * breakpoint.c: Adjust all uses of breakpoint's
2969 enable state to for bp_shlib_disabled change.
2971 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
2973 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
2974 (resolve_pending_breakpoint): Remove.
2975 (re_enable_breakpoints_in_shlibs): Remove.
2976 (unlink_locations_from_global_list): New.
2977 (update_breakpoint_locations): New.
2978 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
2979 Use parse_condition and update_breakpoint_location to
2980 reset breakpoint. Ignore 'symbol not found' error from
2982 (breakpoint_re_set): Don't emit newline before the
2983 reason why breakpoint is not reset.
2984 (do_enable_breakpoint): Don't specially process pending
2986 (free_bp_location): New.
2987 (break_command_1): For pending breakpoints, initialize
2988 all fields of a sal with zeroes.
2989 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
2990 * infcmd.c (post_create_inferior): Don't call
2991 re_enable_breakpoints_in_shlibs.
2992 * infrun.c (handle_inferior_event): Likewise.
2993 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2994 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2995 * win32-nat.c (get_win32_debug_event): Likewise.
2997 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
2999 * breakpoint.c (create_breakpoint): Split from
3000 create_breakpoints, implementing most of its logic.
3001 Take just a single sal, single address string and
3002 single condition. Do not take parsed condition at
3004 (create_breakpoints): Just call create_breakpoint
3006 (find_condition_and_thread): New.
3007 (break_command_1): Use find_condition_and_thread.
3008 Do not keep parsed conditions.
3009 (do_captured_breakpoint): Don't convert
3010 condition string to struct expression.
3012 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3014 * breakpoint.h (struct breakpoint): Move the cond
3016 (struct bp_location): Here.
3017 * breakpoint.c (condition_command, bpstat_stop_status)
3018 (print_one_breakpoint, allocate_bp_location)
3019 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
3020 (create_exec_event_catchpoint, create_breakpoints)
3021 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
3022 (create_ada_exception_breakpoint, set_breakpoint_sal)
3023 (delete_breakpoint, breakpoint_re_set_one): Adjust.
3024 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
3026 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3028 Associate bp_stat with bp_location, not breakpoint.
3029 * breakpoint.h (breakpoint_at): Change type
3031 * breakpoint.c (bpstat_alloc): Take bp_location,
3033 (bpstat_find_breakpoint): Look at bpstat's location's
3034 owner, not at bpstat->breakpoint_at.
3035 (bpstat_find_step_resume_breakpoint): Likewise.
3036 (bpstat_num): Likewise.
3037 (print_it_typical): Likewise.
3038 (print_bp_stop_message): Likewise.
3039 (watchpoint_check): Likewise.
3040 (bpstat_what): Likewise.
3041 (bpstat_get_triggered_catchpoints): Likewise.
3042 (breakpoint_auto_delete): Likewise.
3043 (delete_breakpoint): Likewise.
3044 (bpstat_stop_status): Pass location, not breakpoint,
3045 to bpstat_alloc. Look at bpstat's location's
3046 owner, not at bpstat->breakpoint_at.
3048 2007-09-21 Jim Blandy <jimb@codesourcery.com>
3050 * macrotab.h (new_macro_table): Document that removing information
3051 from an obstack/bcache-managed macro table leaks memory.
3052 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
3053 that data is never freed in obstack/bcache-managed macro tables,
3054 just leak the storage.
3055 (macro_undef): If we're undefining a macro at exactly the same
3056 source location that we defined it, simply remove the definition
3059 2007-09-21 Joel Brobecker <brobecker@adacore.com>
3061 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
3062 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
3063 Adjust the struct sym_fns object accordingly by setting
3064 the new field to NULL.
3065 * xcoffread.c (aix_process_linenos): Make static.
3066 (xcoff_sym_fns): Set new field to aix_process_linenos.
3067 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
3068 by call to new the new sym_fns sym_read_linetable function.
3069 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
3070 * config/rs6000/tm-rs6000.h: Delete.
3072 2007-09-21 David Ung <davidu@mips.com>
3073 Maciej W. Rozycki <macro@mips.com>
3075 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
3076 rules do not treat composite types specially.
3078 2007-09-20 Maciej W. Rozycki <macro@mips.com>
3080 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
3081 (mips16_in_function_epilogue_p): Likewise.
3082 (mips_in_function_epilogue_p): Likewise.
3083 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
3085 2007-09-19 Joel Brobecker <brobecker@adacore.com>
3087 * configure.ac: Add check for "etext".
3088 * configure, config.in: Regenerate.
3089 * maint.c (TEXTEND): Only define if either _etext or etext
3091 Disable the profiling functionality if TEXTEND is not defined.
3093 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
3095 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
3096 address register. Correct the call to frame_id_build.
3097 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
3100 2007-09-18 Joel Brobecker <brobecker@adacore.com>
3102 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
3103 the linetable past the function end.
3105 2007-09-18 James E. Wilson <wilson@specifix.com>
3107 * MAINTAINERS: Update my email address.
3109 2007-09-18 Jerome Guitton <guitton@adacore.com>
3111 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
3112 (inf_ttrace_delete_dying_threads_callback): New function.
3113 (inf_ttrace_resume): After resuming the execution, iterate over
3114 the dying threads to delete them for the thread list.
3115 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
3116 mark the corresponding thread as dying instead of removing it
3117 from the thread list.
3118 (inf_ttrace_thread_alive): return 0 for dying threads.
3120 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3122 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
3123 that return_frame is not null.
3125 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3127 * solib-svr4.c: Add include of "auxv.h".
3128 (enable_break): Use the AT_BASE auxiliary entry if available.
3129 * Makefile.in (solib-svr4.o): Update dependencies.
3131 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3133 * NEWS: Create a new section for the next release branch.
3134 Rename the section of the current branch, now that it has
3137 2007-09-17 Jerome Guitton <guitton@adacore.com>
3139 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
3140 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
3142 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
3144 * mi/mi-cmds.c (mi_cmds): Register -list-features.
3145 * mi/mi-cmds.h (mi_cmd_list_features): New.
3146 * mi/mi-main.c (mi_cmd_list_features): New.
3148 2007-09-11 Joel Brobecker <brobecker@adacore.com>
3150 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
3151 * version.in: Bump version to 6.7.50-20070911-cvs.
3153 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3155 * thread.c (free_thread): Do not delete the step resume breakpoint
3158 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3160 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
3161 * corelow.c (core_read_description): New.
3162 (init_core_ops): Set to_read_description.
3163 * gdbarch.sh: Add gdbarch_core_read_description.
3164 * mips-linux-tdep.c (mips_linux_core_read_description): New.
3165 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
3166 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
3167 (mips_register_g_packet_guesses): Use them.
3168 (_initialize_mips_tdep): Initialize them.
3169 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
3170 * gdbarch.h, gdbarch.c: Regenerated.
3172 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3174 * infrun.c (stepping_past_breakpoint): New global variable.
3175 (stepping_past_breakpoint_ptid): Likewise.
3176 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
3177 Only switch threads if we need to single-step over a breakpoint hit
3178 in the previously selected thread. If stepping, remember previous
3179 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
3180 switch_to_thread instead of copying its contents.
3181 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
3182 prepare_to_proceed returns true.
3183 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
3184 (context_switch): Call switch_to_thread.
3185 (handle_inferior_event): Switch back to previous thread if requested
3186 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
3187 * gdbthread.h (switch_to_thread): Add prototype.
3188 * thread.c (switch_to_thread): Make global.
3190 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
3192 * p-valprint.c: Fix 7 ARI reported problems.
3193 (pascal_val_print): Fix one operator at end of line issue.
3194 Use paddress function to remove use of
3195 deprecated_print_address_numeric function (2 times).
3196 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
3197 (pascal_value_print): Fix 3 operator at end of line issues.
3199 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
3202 * arm-tdep.c (arm_in_call_stub): Delete.
3203 (arm_skip_stub): Handle from_arm and from_thumb stubs.
3205 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
3207 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
3210 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3211 Jim Blandy <jimb@codesourcery.com>
3213 * NEWS: Update description of string changes. Mention print/s.
3214 * c-valprint.c (textual_element_type): New.
3215 (c_val_print): Use it. Do not skip address printing for pointers
3216 with a string format.
3217 (c_value_print): Doc update.
3218 * dwarf2read.c (read_array_type): Use make_vector_type.
3219 * gdbtypes.c (make_vector_type): New.
3220 (init_vector_type): Use it.
3221 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
3222 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
3223 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
3224 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
3225 (make_vector_type): New.
3226 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
3227 Call the language print routine for string format.
3228 (print_scalar_formatted): Call val_print for string format. Handle
3229 unsigned original types for char format.
3230 (validate_format): Do not reject string format.
3231 * stabsread.c (read_type): Use make_vector_type.
3232 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
3234 2007-09-04 Michael Snyder <msnyder@access-company.com>
3236 * expprint.c (print_subexp_standard): Check strchr for null.
3237 * Makefile.in (expprint.o): Depend on gdb_assert.h.
3239 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
3241 * stabsread.c (patch_block_status): Guard against null.
3242 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
3244 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3246 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
3247 in internal error message.
3249 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3250 Daniel Jacobowitz <dan@codesourcery.com>
3252 * infcmd.c (post_create_inferior): Update comment.
3253 (run_command_1): Always call post_create_inferior with 0 as
3256 * i386-cygwin-tdep.h: New.
3257 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
3258 (win32_xfer_shared_library): Make it extern.
3260 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
3262 (win32_so_ops): Delete.
3263 (get_relocated_section_addrs): Delete.
3264 (solib_symbols_add): Delete.
3265 (register_loaded_dll): Delete.
3266 (win32_make_so): New.
3267 (handle_load_dll): Use win32_make_so.
3268 (win32_free_so): Free the passed in so.
3269 (win32_relocate_section_addresses): Delete.
3270 (win32_solib_create_inferior_hook): Delete.
3271 (handle_unload_dll): Don't add PE offset here. Free so with
3272 win32_free_so instead of free_so.
3273 (win32_special_symbol_handling): Delete.
3274 (get_win32_debug_event): Remove unneeded calls. Set state to
3275 TARGET_WAITKIND_LOADED on a dll unload.
3276 (do_initial_win32_stuff): Clear cygwin_load_start and
3278 (map_code_section_args): Delete.
3279 (dll_code_sections_add): Delete.
3280 (core_section_load_dll_symbols): Delete.
3281 (win32_xfer_shared_libraries): New.
3282 (win32_current_sos): Delete.
3283 (win32_xfer_partial): New.
3284 (open_symbol_file_object): Delete.
3285 (in_dynsym_resolve_code): Delete.
3286 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
3287 of win32_ops. Remove win32_so_ops settings. Don't set
3288 current_target_so_ops here.
3290 * Makefile.in (i386_cygwin_tdep_h): New variable.
3291 (i386-cygwin-tdep.o): Update dependencies.
3292 (win32-nat.o): Update dependencies.
3294 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3295 Daniel Jacobowitz <dan@codesourcery.com>
3297 * gdbarch.sh (core_xfer_shared_libraries): New.
3299 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3301 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
3303 * xml-support.c (gdb_xml_parse): Debug output tweaks.
3304 (xml_escape_text): New.
3305 * xml-support.h (xml_escape_text): Declare.
3307 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
3308 * config/i386/cygwin.mt (TDEPFILES): ... here.
3310 * win32-nat.c: (fetch_elf_core_registers): Delete.
3311 (win32_elf_core_fn): Delete.
3312 (_initialize_core_win32): Delete.
3314 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
3315 "xml-support.h" and "gdbcore.h".
3316 (i386_win32_gregset_reg_offset): New.
3317 (I386_WIN32_SIZEOF_GREGSET): New.
3318 (i386_win32_regset_from_core_section): New.
3319 (win32_xfer_shared_library): New.
3320 (struct cpms_data): New.
3321 (core_process_module_section): New.
3322 (win32_core_xfer_shared_libraries): New.
3323 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
3324 gregset_num_regs, sizeof_gregset members of tdep. Register
3325 regset_from_core_section and core_xfer_shared_libraries callbacks.
3327 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
3328 * gdbarch.h, gdbarch.c: Regenerate.
3330 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3332 * corelow.c (core_xfer_partial): Pass writebuf to
3333 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
3335 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
3337 * arm-tdep.h (arm_skip_stub): Declare.
3338 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
3340 (arm_pe_skip_trampoline_code): New function.
3341 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
3342 gdbarch_skip_trampoline_code callback.
3343 * Makefile.in (arm-wince-tdep.o): Update dependencies.
3345 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3347 * MAINTAINERS: Move Fred Fish to Past Maintainers.
3349 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3351 * configure.ac: Add --with-expat.
3352 * configure: Regenerated.
3354 2007-09-03 Andreas Schwab <schwab@suse.de>
3356 * configure.ac: Accept --with-system-readline.
3357 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
3358 * configure: Regenerate.
3359 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
3361 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
3363 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
3364 Daniel Jacobowitz <dan@codesourcery.com>
3366 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
3368 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3370 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
3372 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
3374 * top.c (print_gdb_version): Update for GPL version 3.
3376 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3378 * NEWS: Mention the build-id .debug files verification.
3380 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3382 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
3384 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3386 * Makefile.in (symfile.o): Update dependencies.
3387 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
3388 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
3389 (struct build_id): New structure.
3390 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
3391 (find_separate_debug_file): New variable BUILD_ID.
3392 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
3394 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3396 * varobj.c (struct varobj): Fix comment
3397 for the type member not to lie when it can be
3400 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3402 Implement -var-info-path-expression.
3404 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
3406 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
3407 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
3408 * varobj.c (struct varobj): New field 'path_expr'.
3409 (c_path_expr_of_child, cplus_path_expr_of_child)
3410 (java_path_expr_of_child): New.
3411 (struct language_specific): New field path_expr_of_child.
3412 (varobj_create): Initialize the path_expr field.
3413 (varobj_get_path_expr): New.
3414 (new_variable): Initialize the path_expr field.
3415 (free_variable): Free the path_expr field.
3416 (adjust_value_for_children_access): New parameter
3418 (c_number_of_children): Adjust.
3419 (c_describe_child): New parameter CFULL_EXPRESSION.
3420 Compute full expression.
3421 (c_value_of_child, c_type_of_child): Adjust.
3422 (cplus_number_of_children): Adjust.
3423 (cplus_describe_child): New parameter CFULL_EXPRESSION.
3424 Compute full expression.
3425 (cplus_name_of_child, cplus_value_of_child)
3426 (cplus_type_of_child): Adjust.
3427 * varobj.h (varobj_get_path_expr): Declare.
3429 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3431 * mi/mi-cmd-var.c (print_varobj): If a varobj
3432 type is NULL, don't try to print it.
3434 2007-08-30 Alan Modra <amodra@bigpond.net.au>
3436 * ppc-linux-nat.c (right_fill_reg): Delete.
3437 (supply_gregset): Use ppc_supply_gregset.
3438 (supply_fpregset): Use ppc_supply_fpregset.
3439 (fill_gregset): Use ppc_collect_gregset.
3440 (fill_fpregset): Use ppc_collect_fpregset.
3441 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
3442 (right_supply_register, ppc_linux_supply_gregset): Delete.
3443 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
3444 (ppc_linux_supply_fpregset): Delete.
3445 (ppc_linux_collect_gregset): New function.
3446 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
3447 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
3448 ppc_linux_supply_gregset, and ppc_collect_gregset.
3449 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
3450 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
3451 (ppc_linux_regset_from_core_section): Update.
3452 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
3453 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
3454 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
3455 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
3456 (ppcobsd_collect_gregset): Likewise.
3457 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
3458 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
3459 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
3460 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
3461 (rs6000_aix64_reg_offsets): Likewise.
3462 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
3463 ppc_floating_point_unit_p.
3464 (rs6000_aix_collect_regset): Similarly.
3465 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
3466 when regsize is larger than regcache register size.
3467 (ppc_collect_reg): Similarly zero pad when regsize is larger than
3468 regcache register size.
3469 (ppc_greg_offset): New function, split out from..
3470 (ppc_supply_gregset): ..here. Separate code handling all regs from
3471 single reg case. Correct xer offset.
3472 (ppc_fpreg_offset): New function, split out from..
3473 (ppc_supply_fpregset): ..here. Separate code handling all regs from
3475 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
3476 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
3477 a fp unit, instead return if no fp.
3479 2007-08-29 Jim Blandy <jimb@codesourcery.com>
3481 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
3482 this code has not been compiled for two years.
3484 2007-08-29 Michael Snyder <msnyder@access-company.com>
3486 * event-top.c (gdb_readline2): Return after EOF.
3488 2007-08-29 Joel Brobecker <brobecker@adacore.com>
3490 * symtab.c: Remove a function that has been commented out 3 years ago.
3492 2007-08-29 Randolph Chung <tausq@debian.org>
3494 * hppa-tdep.c (hppa32_cannot_fetch_register)
3495 (hppa64_cannot_fetch_register): New functions.
3496 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
3497 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
3499 2007-08-28 Michael Snyder <msnyder@access-company.com>
3501 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
3502 check for null before calling check_typedef.
3504 * NEWS: Mention Coverity bug fixes.
3506 2007-08-27 Markus Deuling <deuling@de.ibm.com>
3508 * spu-tdep.c (spu_pointer_to_address): New function.
3509 (spu_integer_to_address): Likewise.
3510 (spu_gdbarch_init): Add spu_pointer_to_address and
3511 spu_integer_to_address to gdbarch.
3513 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
3515 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
3517 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3519 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
3520 that contains the GDB license.
3521 * copying.awk: Adjust to the GPLv3 wording.
3522 * copying.c: Regenerate.
3524 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3526 * copying.awk: Protoization, and i18n markup.
3528 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3530 * config/djgpp/djconfig.sh: Switch license to GPLv3.
3531 * copyright.sh: Likewise.
3532 * gdb-events.sh: Likewise.
3533 * gdb_gcore.sh: Likewise.
3534 * gdb_mbuild.sh: Likewise.
3535 * gdbarch.sh: Likewise.
3536 * observer.sh: Likewise.
3537 * features/feature_to_c.sh: Likewise.
3538 * regformats/regdat.sh: Likewise.
3540 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3542 Switch the license of all .c files to GPLv3.
3543 Switch the license of all .h files to GPLv3.
3544 Switch the license of all .cc files to GPLv3.
3546 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3548 * configure.ac: Switch license to GPLv3.
3550 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3552 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
3553 determine the file's FPU type.
3555 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3557 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
3558 (mips_n32n64_push_dummy_call): Always increment float_argreg along
3559 with argreg. Use mips_n32n64_fp_arg_chunk_p.
3561 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3563 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
3565 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
3566 (elf_lookup_lib_symbol): Fix formatting.
3568 2007-08-21 Michael Snyder <msnyder@access-company.com>
3570 * dbxread.c (read_dbx_symtab): Guard null deref.
3573 * valops.c (find_overload_match): Guard against NULL.
3575 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3577 * MAINTAINERS (Patch Champions): Remove self.
3579 2007-08-21 Chris Smith <chris.smith@st.com>
3581 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
3584 2007-08-18 Michael Snyder <msnyder@access-company.com>
3586 * stabsread.c (dbx_lookup_type): Memory leak.
3588 * event-loop.c (delete_async_signal_handler): Move pointer null
3589 test to before pointer dereference.
3591 * ui-out.c (append_header_to_list): Possible cut and paste error.
3593 * MAINTAINERS: white space tweak.
3595 2007-08-17 Michael Snyder <msnyder@access-company.com>
3597 * stack.c (print_frame): Memory leak.
3599 * completer.c (filename_completer): Avoid memory leak.
3600 Remove unnecessary nested block.
3602 * c-exp.y (parse_number): Memory leak.
3604 * completer.c (location_completer): Must free 'fn_list', except
3605 in the one case where it is returned (as 'list').
3607 * varobj.c (value_of_root): Memory leak.
3609 * gdbtypes.h (virtual_base_list): Remove export decl.
3610 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
3611 (virtual_base_index): Memory leak.
3612 (virtual_base_index_skip_primaries): Ditto.
3614 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
3616 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
3617 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
3618 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
3619 (xtensa_read_register): New function.
3620 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
3621 (xtensa_insn_kind): New types.
3622 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
3623 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
3624 (xtensa_verify_config, xtensa_pseudo_register_read)
3625 (xtensa_pseudo_register_write, xtensa_extract_return_value)
3626 (xtensa_store_return_value)
3627 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
3628 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
3629 (xtensa_frame_this_id, xtensa_frame_prev_register)
3630 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
3631 (call0_frame_cache, call0_frame_get_reg_at_entry)
3632 (call0_classify_opcode, call0_track_op)
3633 (call0_analyze_prologue, call0_frame_cache): New functions.
3635 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
3637 * breakpoint.c (bpstat_free): New.
3638 (bpstat_clear): Use bpstat_free.
3639 (delete_breakpoint): Document why we cannot
3640 remove bpstats from stop_bpstat.
3641 * breakpoint.h (bpstat_free): Declare.
3643 2007-08-16 Michael Snyder <msnyder@access-company.com>
3645 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
3647 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
3648 Joel Brobecker <brobecker@adacore.com>
3650 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
3652 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
3653 Joel Brobecker <brobecker@adacore.com>
3655 * ada-lang.c (possible_user_operator_p): Alternative fix to last
3656 checkin guarding against NULL.
3658 2007-08-14 Michael Snyder <msnyder@access-company.com>
3660 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
3661 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
3662 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
3663 go at beginning of new line.
3665 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
3666 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
3667 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
3668 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
3669 tui-winsource.h, tui.c, tui.h: Function declarations and
3670 definitions, wrap long lines.
3672 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
3673 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
3674 Reformat block comments to GNU standard.
3676 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
3677 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
3678 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
3679 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
3680 tui.c, tui.h: Comment reformatting to coding standard (capitals,
3681 spaces after periods, etc).
3683 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
3684 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
3685 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
3686 tui-winsource.h: Whitespace changes, fix pointer declarations
3689 2007-08-14 Joel Brobecker <brobecker@adacore.com>
3690 Michael Snyder <msnyder@access-company.com>
3692 * ada-lang.c (field_alignment): Guard against NULL.
3694 2007-08-14 Joel Brobecker <brobecker@adacore.com>
3696 * MAINTAINERS (Global Maintainers): Add self.
3698 2007-08-14 Michael Snyder <msnyder@access-company.com>
3700 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
3702 * ada-lang.c (possible_user_operator_p): Guard against NULL.
3704 * varobj.c (cplus_describe_child): Guard against null.
3705 Use "NULL" instead of "0" to initialize pointers.
3707 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
3709 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
3710 to match any gdbarch with matching OSABI. Set default ABI and FPU
3711 after running the OSABI handler.
3713 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
3715 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
3716 * config/i386/linux.mt (TDEPFILES): ...to here.
3718 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
3720 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
3721 the 'silent' parameter and code to implement that.
3722 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
3724 * win32-nat.c: Adjust.
3727 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
3729 * breakpoint.c (update_breakpoints_after_exec): Don't
3730 set address to zero.
3732 2007-08-13 Michael Snyder <msnyder@access-company.com>
3734 * valops.c: Whitespace clean-up.
3736 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
3738 * event-top.c (command_line_handler): Memory leak.
3740 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
3741 No need to make copy.
3743 * source.c (find_source_lines): Require symtab 's'.
3745 2007-08-11 Michael Snyder <msnyder@access-company.com>
3747 * completer.c: Spelling fix in comments.
3749 2007-08-10 Michael Snyder <msnyder@access-company.com>
3751 * gdbtypes.c: Coding standard cleanup.
3752 * gdbtypes.c: Comment/whitespace cleanup.
3754 * stabsread.c (read_huge_number): Attempt to compute value before
3755 values that it depends on.
3757 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
3758 (decode_objc): Use "NULL" instead of 0.
3759 (find_method): Ditto.
3760 (decode_all_digits): Ditto.
3761 (decode_dollar): Ditto.
3763 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
3765 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
3767 * solib-svr4.c (enable_break): Don't free tmp_pathname until
3770 * completer.c: Comment/whitespace cleanup.
3772 2007-08-10 Joel Brobecker <brobecker@adacore.com>
3774 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
3776 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
3778 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
3779 allocated file descriptors.
3781 2007-08-10 Joel Brobecker <brobecker@adacore.com>
3783 * Makefile.in: Minor cleanup throughout; add some missing variables,
3784 add some missing rules, remove some rules that are no longer needed,
3785 and fix the dependencies in several rules.
3787 2007-08-10 Ludovic Courtès <ludo@gnu.org>
3789 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
3790 (scm_lang_h, scm_tags_h): New.
3791 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
3792 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
3793 * defs.h (enum language): Add `language_scm'.
3795 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
3798 2007-08-09 Ludovic Courtès <ludo@gnu.org>
3800 * MAINTAINERS (Write After Approval): Add myself.
3802 2007-08-09 Michael Snyder <msnyder@access-company.com>
3804 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
3806 2007-08-09 Joel Brobecker <brobecker@adacore.com>
3808 * solib-som.c (som_relocate_section_addresses): Stop saving
3809 the $CODE$ section in the so_list structure.
3811 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
3813 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
3814 (xtensa_register_group_t): Add entries for coprocessors.
3815 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
3816 (xtensa_add_reggroups): Likewise.
3817 (xtensa_register_reggroup_p): Likewise.
3818 (xtensa_coprocessor_register_group): New function.
3821 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3823 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
3825 2007-08-08 Michael Snyder <msnyder@access-company.com>
3827 * target.c (target_read_string): Guard against null.
3829 * varobj.c (value_of_root): Move alloc after return to avoid leak.
3831 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
3832 (tui_set_layout_for_display_command): Mem leak.
3834 * top.c (command_line_input): Memory leak.
3836 * solib-svr4.c (open_symbol_file_object): Memory leak.
3837 (svr4_current_sos): Ditto.
3838 (enable_break): Ditto.
3840 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
3842 * dwarf2read.c (add_partial_symbol): Memory leak.
3844 2007-08-06 Michael Snyder <msnyder@access-company.com>
3846 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
3848 2007-08-05 Jim Blandy <jimb@codesourcery.com>
3850 * macroexp.c (init_buffer): Remove testing code that overrides the
3851 caller's length guess.
3852 (gather_arguments): Use a larger initial size, now that the vector
3853 growth code has been exercised.
3855 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
3857 * solib-target.c (solib_target_relocate_section_addresses): Add
3858 orig_delta to addr_high.
3860 2007-08-04 Michael Snyder <msnyder@access-company.com>
3862 * remote-fileio.c (remote_fileio_func_write): Memory leak.
3864 * breakpoint.c (print_one_breakpoint): Off by one error.
3866 * tracepoint.c (add_register): Off by one error.
3867 (stringify_collection_list): Free malloc buffer.
3869 2007-08-03 Michael Snyder <msnyder@access-company.com>
3871 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
3872 stop memory leak, straighten out cleanups.
3874 * jv-lang.c (java_link_class_type): Guard against NULL.
3876 2007-08-02 Michael Snyder <msnyder@access-company.com>
3878 * gdbtypes.c (create_set_type): Test should only be done within
3879 the preceeding if block. Otherwise, variable is uninitialized.
3881 * gdbtypes.c (check_typedef): Guard NULL.
3883 2007-08-01 Michael Snyder <msnyder@access-company.com>
3885 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
3886 avoid dereference in lookup_cmd_1.
3888 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
3889 clean up long lines.
3890 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
3891 (tui_alloc_win_info): Ditto.
3892 (tui_add_content_elements): Ditto.
3893 * tui/tui-file.c (tui_file_magic): Ditto.
3895 2007-07-31 Michael Snyder <msnyder@access-company.com>
3897 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
3898 True and false paths are mutually exclusive.
3900 * event-top.c (command_line_handler): Add pedantic return.
3902 * f-valprint.c (info_common_command): Bail out to prevent null
3903 pointer deref. Break up a long line.
3905 * exec.c (xfer_memory): Remove redundant condition from 'if'.
3907 * symfile.c (reread_separate_symbols): Free xmalloced memory.
3909 * printcmd.c (build_address_symbolic): Remove dead code and dead
3912 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
3914 * linespec.c (minsym_found): Advance to the next line if possible.
3916 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
3918 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
3919 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
3920 solib-svr4.o, and add solib-target.o
3922 2007-07-27 Michael Snyder <msnyder@access-company.com>
3924 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
3926 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
3928 * MAINTAINERS (Write After Approval): Add myself.
3930 2007-07-26 Maciej W. Rozycki <macro@mips.com>
3932 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
3935 2007-07-25 Maciej W. Rozycki <macro@mips.com>
3937 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
3939 2007-07-24 Michael Snyder <msnyder@access-company.com>
3941 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
3942 'buffer' must cover both branches that call strcmp (Coverity).
3944 * stack.c (print_frame_args): Check return value of lookup_symbol.
3946 * ax-gdb.c (find_field): Guard against null ptr.
3948 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
3950 * regformats/reg-spu.dat: Fix order of npc, id registers.
3952 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
3954 * target.c (memory_xfer_partial): Accesses to unmapped overlay
3955 sections should always go to the executable file.
3957 2004-07-20 Chris Dearman <chris@mips.com>
3959 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
3960 prologue instructions.
3962 2007-07-20 Maciej W. Rozycki <macro@mips.com>
3964 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
3967 2007-07-20 Chris Dearman <chris@mips.com>
3968 Maciej W. Rozycki <macro@mips.com>
3970 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
3973 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
3974 Daniel Jacobowitz <dan@codesourcery.com>
3976 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
3977 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
3979 * NEWS: Mention gdbserver DLL support.
3981 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
3983 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
3985 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
3987 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
3990 2007-07-13 Kevin Buettner <kevinb@redhat.com>
3992 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
3995 2007-07-12 Kevin Buettner <kevinb@redhat.com>
3997 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
3998 (mep_analyze_prologue): Add case for BRA instruction.
4000 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
4002 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
4004 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
4006 * breakpoint.c: Include "top.h".
4007 (breakpoint_1): Don't set convenience variable $_ if server prefix
4009 (_initialize_breakpoint): Describe this behaviour in command help.
4011 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
4013 * solib-target.c (library_list_start_segment): Cast address to
4016 2007-07-06 Mark Kettenis <kettenis@gnu.org>
4018 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
4019 for terminated processes.
4021 2007-07-05 Michael Snyder <msnyder@access-company.com>
4023 * event-top.c (cli_command_loop): Prompt string can (and should)
4024 be freed after call to readline (Coverity). Also move local var
4025 declarations into block where they are used.
4027 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
4028 should) be freed after call to readline (Coverity). Also move
4029 local var declarations into block where they are used.
4031 2007-07-03 Andreas Schwab <schwab@suse.de>
4033 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
4036 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
4037 Thiago Bauermann <bauerman@br.ibm.com>
4038 Joseph S. Myers <joseph@codesourcery.com>
4039 Daniel Jacobowitz <dan@codesourcery.com>
4041 * remote.c (remote_check_symbols): Use
4042 gdbarch_convert_from_func_ptr_addr.
4043 * infcall.c (find_function_addr): Handle function descriptors
4044 without debugging information.
4045 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
4046 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
4047 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
4048 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
4049 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
4050 allow SEC_CODE and SEC_DATA.
4051 (enable_break): Update calls. Pass current_target to solib_add.
4052 Use gdbarch_convert_from_func_ptr_addr.
4054 2007-07-03 Ilko Iliev <iliev@ronetix.at>
4055 Daniel Jacobowitz <dan@codesourcery.com>
4057 * symfile.c (print_transfer_performance): Avoid integer overflow.
4060 2007-07-03 Markus Deuling <deuling@de.ibm.com>
4062 * cp-namespace.c (lookup_symbol_file): Add block to
4063 lookup_symbol_global call.
4064 * Makefile.in (solist_h): Add dependency on symtab header.
4065 (symtab.o): Add dependency on solist header.
4066 * solib.c (solib_global_lookup): New function.
4067 * solib-svr4.c (scan_dyntag): Likewise.
4068 (elf_locate_base): Call helper routine scan_dyntag.
4069 (elf_lookup_lib_symbol): New function.
4070 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
4071 * solist.h (symtab.h): New include.
4072 (struct target_so_ops): New member lookup_lib_global_symbol.
4073 (solib_global_lookup): New prototype.
4074 * symtab.c: New include solist.h.
4075 (lookup_objfile_from_block): New function.
4076 (lookup_global_symbol_from_objfile): New function.
4077 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
4078 (lookup_symbol_global): Call library-specific lookup procedure.
4079 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
4081 * NEWS: Document framework.
4083 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4085 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
4088 * cli/cli-script.c (build_command_line): Update NULL check.
4090 2007-07-02 Michael Snyder <msnyder@access-company.com>
4092 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
4094 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4096 * Makefile.in (XMLFILES): Add library-list.dtd.
4097 (ALLDEPFILES): Add solib-target.o.
4098 (solib-target.o): New rule.
4099 * remote.c (PACKET_qXfer_libraries): New constant.
4100 (remote_protocol_features): Add qXfer:libraries:read.
4101 (remote_wait): Recognize library stop replies.
4102 (remote_async_wait): Likewise. Fix typo.
4103 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
4104 (init_remote_async_ops): Fix typo.
4105 (_initialize_remote): Register "set remote library-info-packet".
4106 * solib-som.c (som_current_sos): Set addr_low and addr_high.
4107 * solib-target.c: New file.
4108 * solib.c (solib_map_sections): Use addr_low and addr_high instead
4110 (info_sharedlibrary_command): Likewise.
4111 (solib_add_library, solib_remove_library): New.
4112 * solist.h (struct so_list): Replace textsection with addr_low and
4114 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
4115 * NEWS: Describe new qXfer:libraries:read and shared library
4117 * features/library-list.dtd: New.
4119 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4121 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
4122 (start_remote): Use STOP_QUIETLY_REMOTE.
4123 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
4124 support on a SOLIB_ADD definition. Update breakpoints_inserted.
4125 Update to match shared library event breakpoint support. Only
4126 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
4127 (normal_stop): Handle TARGET_WAITKIND_LOADED.
4128 * fork-child.c (startup_inferior): Do not set
4129 inferior_ignoring_startup_exec_events
4130 * inferior.h (inferior_ignoring_startup_exec_events): Delete
4132 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
4134 2007-07-02 Markus Deuling <deuling@de.ibm.com>
4136 * breakpoint.c (insert_bp_location): Remove dead code
4137 (DISABLE_UNSETTABLE_BREAK).
4138 (disable_breakpoints_in_shlibs)
4139 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
4141 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4143 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
4144 Call insert_bp_location.
4146 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
4148 * core-regset.c (fetch_core_registers): Work around gcc 3.4
4151 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4153 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
4156 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4158 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
4159 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
4160 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
4161 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
4162 to display_gdb_prompt.
4164 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4167 * target.c (memory_xfer_partial): Do not continue past targets with
4170 2007-06-30 Andreas Schwab <schwab@suse.de>
4172 * m68k-tdep.c (m68k_ps_type): New.
4173 (m68k_init_types): New.
4174 (m68k_register_type): Use m68k_ps_type for PS register.
4175 (_initialize_m68k_tdep): Call m68k_init_types.
4177 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
4178 from the generic m68k arch.
4180 2007-06-28 Michael Snyder <msnyder@access-company.com>
4182 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
4185 * linux-thread-db.c (thread_db_get_thread_local_address): Add
4186 gdb_assert before using return value of find_thread_pid (Coverity).
4188 * source.c (unset_substitute_path_command): Plug leak (Coverity).
4190 * cli/cli-script.c (build_command_line): Add null pointer guard
4193 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
4195 * linux-thread-db.c (thread_db_attach): Delete.
4196 (thread_db_detach): Typo fix. Call target_mourn_inferior
4197 instead of fixing up proc_handle.
4198 (have_threads_callback, have_threads): New functions.
4199 (thread_db_wait): Remove dead proc_handle.pid check. Only
4200 translate PTIDs if we have registered threads. Check for new
4201 threads if we have none.
4202 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
4203 (find_new_threads_callback): Only enable event reporting if TID == 0.
4204 (same_ptid_callback): New.
4205 (thread_db_get_thread_local_address): Check for new threads.
4206 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
4207 or to_post_startup_inferior.
4209 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4211 * infrun.c (adjust_pc_after_break): Do not assume software single-step
4212 is always active if SOFTWARE_SINGLE_STEP_P is true.
4213 (resume): Use gdbarch_software_single_step[_p] instead of
4214 SOFTWARE_SINGLE_STEP[_P].
4215 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
4217 * gdbarch.sh (software_single_step): Remove target macro.
4218 * gdbarch.h, gdbarch.c: Regenerate.
4220 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4222 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
4223 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
4224 (struct gdbarch_swap, struct gdbarch_swap_registration,
4225 struct gdbarch_swap_registry, gdbarch_swap_registry,
4226 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
4227 current_gdbarch_swap_in_hack): Remove.
4228 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
4229 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
4230 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
4231 (deprecated_current_gdbarch_select_hack): Likewise.
4232 * gdbarch.h, gdbarch.c: Regenerate.
4234 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4236 * infrun.c (clear_proceed_status): Clean up stop_registers.
4237 (normal_stop): Allocate regcache for stop_registers.
4238 (struct inferior_status): Remove stop_registers member.
4239 (save_inferior_status): Do not save stop_registers.
4240 (restore_inferior_status): Do not restore stop_registers.
4241 (discard_inferior_status): Do not discard stop_registers.
4242 (build_infrun): Remove.
4243 (_initialize_infrun): Do not swap stop_registers.
4245 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4247 * remote.c (remote_address_masked): If remote_address_size is zero,
4248 default to target address size.
4249 (build_remote_gdbarch_data): Remove.
4250 (_initialize_remote): Do not swap remote_address_size.
4252 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4254 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
4255 builtin_type_char, builtin_type_short, builtin_type_int,
4256 builtin_type_long, builtin_type_signed_char,
4257 builtin_type_unsigned_char, builtin_type_unsigned_short,
4258 builtin_type_unsigned_int, builtin_type_unsigned_long,
4259 builtin_type_float, builtin_type_double, builtin_type_long_double,
4260 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4261 builtin_type_bool, builtin_type_long_long,
4262 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4263 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
4264 variable declaration with compatibility macro.
4265 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
4266 builtin_type_char, builtin_type_short, builtin_type_int,
4267 builtin_type_long, builtin_type_signed_char,
4268 builtin_type_unsigned_char, builtin_type_unsigned_short,
4269 builtin_type_unsigned_int, builtin_type_unsigned_long,
4270 builtin_type_float, builtin_type_double, builtin_type_long_double,
4271 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4272 builtin_type_bool, builtin_type_long_long,
4273 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4274 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
4275 (build_gdbtypes): Remove.
4276 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
4277 opaque-type-resolution command here. Do not call
4278 deprecated_register_gdbarch_swap.
4280 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4282 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
4283 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
4284 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
4286 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
4287 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
4288 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
4289 (build_parse): Remove.
4290 (_initialize_parse): Do not call build_parse. Do not register
4291 msym_ types for gdbarch-swapping.
4293 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
4294 instead of creating private type.
4296 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
4297 (_initialize_xcoffread): Do not initialized them.
4298 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
4300 * mdebugread.c (nodebug_func_symbol_type): Remove.
4301 (nodebug_var_symbol_type): Remove.
4302 (_initialize_mdebugread): Do not initialize them.
4303 (parse_symbol): Use builtin nodebug_ type instead of them.
4304 (parse_procedure): Likewise.
4306 2007-06-21 Chris Dearman <chris@mips.com>
4308 * printcmd.c (do_one_display): If display/i, start with an initial
4309 line feed to avoid bad layout if there is a branch delay slot.
4311 2007-06-21 Nigel Stephens <nigel@mips.com>
4312 Maciej W. Rozycki <macro@mips.com>
4314 * disasm.c (gdb_print_insn): Return the number of branch delay
4315 slot instructions too.
4316 * disasm.h (gdb_print_insn): Update prototype.
4317 * printcmd.c (branch_delay_insns): New variable to record the
4318 number of delay slot instructions after disassembling a branch.
4319 (print_formatted): Record the number of branch delay slot
4321 (do_examine): When disassembling, if the last instruction
4322 disassembled has any branch delay slots, then bump the count so
4323 that they get disassembled too.
4324 * tui/tui-disasm.c (tui_disassemble): Update the call to
4326 * NEWS: Document the new behaviour.
4328 2007-06-21 Andreas Schwab <schwab@suse.de>
4330 * regcache.c (write_pc_pid): Restore missing else.
4332 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
4334 * regcache.c (regcache_print): Use get_current_regcache ()
4335 instead of current_regcache.
4337 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
4340 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
4341 instead of bfd_make_section_anyway.
4342 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
4343 when clearing SEC_LOAD.
4345 2007-06-19 Joseph Myers <joseph@codesourcery.com>
4347 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
4348 registers for big-endian.
4350 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4352 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
4353 * disasm.c (dump_insns, gdb_print_insn): Likewise.
4354 * gdbarch.c, gdbarch.h: Regenerate.
4356 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4358 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
4359 gdbarch_believe_pcc_promotion.
4360 * stabsread.c (define_symbol): Likewise.
4361 Remove unnecessary definition.
4362 * coffread.c (process_coff_symbol): Remove unnecessary code.
4363 * gdbarch.c, gdbarch.h: Regenerate.
4365 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
4367 * configure.ac: Do not use ${objdir}.
4368 * configure: Regenerated.
4370 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
4372 * gdbarch.sh (deprecated_register_size): Remove.
4373 * gdbarch.h, gdbarch.c: Regenerate.
4375 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
4376 by INT_REGISTER_SIZE.
4377 (thumb_get_next_pc, arm_return_in_memory): Likewise.
4378 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
4379 * ia64-tdep.c (ia64_gdbarch_init): Do not call
4380 set_gdbarch_deprecated_register_size.
4382 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4384 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
4385 gdbarch_deprecated_fp_regnum.
4386 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
4387 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
4388 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4389 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
4391 * gdbarch.c, gdbarch.h: Regenerate.
4393 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4395 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
4396 gdbarch_extract_return_value.
4397 * value.c (generic_use_struct_convention): Likewise (comment).
4398 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
4399 * arch-utils.c (legacy_return_value): Likewise.
4400 * arch-utils.h (legacy_return_value): Likewise (comment).
4401 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
4402 gdbarch_store_return_value.
4403 * stack.c (return_command): Likewise (comment).
4404 * arch-utils.h (legacy_return_value): Likewise (comment).
4405 * arch-utils.c (legacy_return_value): Likewise.
4406 * gdbarch.c, gdbarch.h: Regenerate.
4408 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4410 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
4411 gdbarch_deprecated_use_struct_convention.
4412 * arch-utils.c (legacy_return_value): Likewise.
4413 * gdbarch.c, gdbarch.h: Regenerate.
4415 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4417 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
4418 gdbarch_deprecated_function_start_offset.
4419 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
4420 * linespec.c (minsym_found): Likewise.
4421 * infrun.c (handle_inferior_event): Likewise.
4422 * infcall.c (find_function_addr): Likewise.
4423 * cli/cli-cmds.c (disassemble_command): Likewise.
4424 * gdbarch.c, gdbarch.h: Regenerate.
4426 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4428 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
4429 gdbarch_deprecated_reg_struct_has_addr.
4430 * infcall.c (call_function_by_hand): Likewise.
4431 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
4432 * gdbarch_deprecated_reg_struct_has_addr_p.
4433 * infcall.c (call_function_by_hand): Likewise.
4434 * gdbarch.c, gdbarch.h: Regenerate.
4436 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4438 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4439 * sh-tdep.c (sh_extract_struct_value_address): Remove.
4440 (sh_gdbarch_init): Remove
4441 set_gdbarch_deprecated_extract_struct_value_address.
4442 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
4443 (sh64_gdbarch_init): Remove
4444 set_gdbarch_deprecated_extract_struct_value_address.
4445 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
4446 (ia64_gdbarch_init): Remove
4447 set_gdbarch_deprecated_extract_struct_value_address.
4448 * frv-tdep.c (frv_extract_struct_value_address): Remove.
4449 (frv_gdbarch_init): Remove
4450 set_gdbarch_deprecated_extract_struct_value_address.
4451 * gdbarch.c, gdbarch.h: Regenerate.
4453 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4455 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
4456 * v850-tdep.c (v850_unwind_sp): Likewise.
4457 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
4458 * stack.c (frame_info): Likewise.
4459 * stabsread.c (define_symbol): Likewise.
4460 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
4461 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
4462 (sh_unwind_sp): Likewise.
4463 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
4464 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
4465 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
4466 (rs6000_frame_cache): Likewise.
4467 * rs6000-nat.c (store_register): Likewise.
4468 * remote-mips.c (mips_wait): Likewise.
4469 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4470 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4471 (ppc64_sysv_abi_push_dummy_call): Likewise.
4472 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4473 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4474 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4475 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4476 * m32r-rom.c (m32r_supply_register): Likewise.
4477 * frame.c (frame_sp_unwind): Likewise.
4478 * mips-tdep.c (mips_insn16_frame_cache)
4479 (mips_insn32_frame_cache): Likewise (comment).
4480 * m68klinux-nat.c (supply_gregset): Likewise.
4481 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
4482 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
4483 * i386-tdep.c (i386_get_longjmp_target): Likewise.
4484 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4485 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
4486 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
4487 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
4488 (cris_register_type, crisv32_register_type)
4489 (cris_dwarf2_frame_init_reg): Likewise.
4490 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4491 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
4492 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
4493 * libunwind-frame.c (libunwind_frame_cache): Likewise.
4495 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
4496 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
4497 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
4498 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
4499 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
4500 * v850-tdep.c (v850_unwind_pc): Likewise.
4501 * stack.c (frame_info): Likewise.
4502 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
4503 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
4504 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
4505 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
4506 (sh_dsp_show_regs): Likewise.
4507 * shnbsd-tdep.c (shnbsd_supply_gregset)
4508 (shnbsd_collect_gregset): Likewise.
4509 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
4510 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
4511 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
4512 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4513 (6000_register_reggroup_p, rs6000_unwind_pc)
4514 (rs6000_frame_cache): Likewise.
4515 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
4516 (rs6000_store_inferior_registers): Likewise.
4517 * remote-mips.c (mips_wait, mips_load): Likewise.
4518 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4519 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4520 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4521 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4522 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
4523 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4524 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
4525 (store_ppc_registers, fill_gregset): Likewise.
4526 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
4527 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
4528 * mipsnbsd-nat.c (getregs_supplies): Likewise.
4529 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
4530 * m68klinux-nat.c (supply_gregset): Likewise.
4531 * irix5-nat.c (fill_gregset): Likewise.
4532 * i386-tdep.c (i386_unwind_pc): Likewise.
4533 * i386-linux-nat.c (i386_linux_resume): Likewise.
4534 * frame.c (get_prev_frame_1): Likewise.
4535 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4536 * dbug-rom.c (dbug_supply_register): Likewise.
4537 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
4538 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
4539 (cris_register_type, crisv32_register_type, crisv32_register_name)
4540 (cris_dwarf2_frame_init_reg, find_step_target)
4541 (cris_software_single_step, cris_supply_gregset)
4542 (cris_regnums): Likewise.
4543 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4544 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4545 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
4546 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
4547 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
4549 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
4550 * dbug-rom.c (dbug_supply_register): Likewise.
4551 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
4552 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
4553 * win32-nat.c (win32_resume): Likewise.
4554 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
4555 * m68k-tdep.c (m68k_register_type): Likewise.
4556 * m68klinux-nat.c (supply_gregset): Likewise.
4558 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
4559 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
4560 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
4561 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
4562 (fv_reg_base_num, dr_reg_base_num): Likewise.
4563 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
4564 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
4565 (sh64_extract_return_value, sh64_store_return_value)
4566 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
4567 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
4568 * procfs.c (procfs_fetch_registers, procfs_store_registers)
4569 (invalidate_cache): Likewise.
4570 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4571 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
4572 (mipsnbsd_fill_fpreg): Likewise.
4573 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
4574 (mipsnbsd_store_inferior_registers): Likewise.
4575 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
4576 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
4577 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
4578 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
4579 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
4580 (fill_fpregset): Likewise.
4581 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
4582 * i386-tdep.h (struct_return): Likewise (comment).
4583 * i386-nto-tdep.c (i386nto_register_area): Likewise.
4584 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
4585 (go32_store_registers): Likewise.
4586 * alpha-tdep.c (alpha_next_pc): Likewise.
4587 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4588 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
4589 (alphabsd_store_inferior_registers): Likewise.
4590 * core-regset.c (fetch_core_registers): Likewise.
4591 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
4593 * gdbarch.c, gdbarch.h: Regenerate.
4595 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
4597 * coffread.c (coff_sym_fns): Add default_symfile_segments.
4598 * dbxread.c (start_psymtab): Check HAVE_ELF.
4599 (aout_sym_fns): Likewise.
4600 * elfread.c (elf_symfile_segments): New.
4601 (elf_sym_fns): Add elf_symfile_segments.
4602 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
4603 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
4604 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
4605 * somread.c (som_sym_fns): Use default_symfile_segments.
4606 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
4607 (init_objfile_sect_indices): Call symfile_find_segment_sections.
4608 (default_symfile_segments): New function.
4609 (syms_from_objfile): Update call to find_sym_fns.
4610 (symfile_get_segment_data, free_symfile_segment_data): New.
4611 (symfile_map_offsets_to_segments): New.
4612 (symfile_find_segment_sections): New.
4613 * symfile.h (struct symfile_segment_data): New.
4614 (struct sym_fns): Add sym_segments.
4615 (default_symfile_segments, symfile_get_segment_data)
4616 (free_symfile_segment_data): New prototypes.
4617 (symfile_map_offsets_to_segments): Likewise.
4618 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
4619 * Makefile.in (COMMON_OBS): Remove elfread.o.
4620 (elf_internal_h): New.
4621 (elfread.o): Update.
4622 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
4624 * config.in, configure: Regenerated.
4625 * NEWS: Mention qOffsets changes.
4627 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4629 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
4630 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
4631 Replace global variable declaration with compatibility macro.
4632 (struct builtin_m2_type): New data type.
4633 (builtin_m2_type): Add prototype.
4634 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
4635 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
4636 Remove global variables.
4637 (m2_language_arch_info): Use builtin_m2_type instead of variables.
4638 (build_m2_types): New function.
4639 (m2_type_data): New variable.
4640 (builtin_m2_type): New function.
4641 (_initialize_m2_language): Do not build data types. Register
4642 m2_type_data per-gdbarch data.
4644 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4646 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
4647 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
4648 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
4649 builtin_type_f_real_s8, builtin_type_f_real_s16,
4650 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
4651 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
4652 variable declaration with compatibility macro.
4653 (struct builtin_f_type): New data type.
4654 (builtin_f_type): Add prototype.
4655 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
4656 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
4657 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
4658 builtin_type_f_real_s8, builtin_type_f_real_s16,
4659 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
4660 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
4661 (f_language_arch_info): Use builtin_f_type instead of variables.
4662 (build_fortran_types): Build builtin_f_type structure instead of
4663 setting global type variables.
4664 (f_type_data): New variable.
4665 (builtin_f_type): New function.
4666 (_initialize_f_language): Do not call build_fortran_types. Do not
4667 swap global type variables. Register f_type_data per-gdbarch data.
4669 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4671 * f-lang.c (_initialize_f_language): Do not initialize or
4672 swap builtin_type_string.
4674 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4676 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
4677 value_of_builtin_frame_reg): Remove.
4678 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
4679 inactive call to value_of_builtin_frame_reg.
4681 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4683 * gdbarch.sh (bfd_vma_bit): Remove.
4684 * gdbarch.c, gdbarch.h: Regenerate.
4686 * gdbtypes.h (builtin_bfd_vma_type): Remove.
4687 * gdbtypes.h (builtin_bfd_vma_type): Remove.
4688 (build_gdbtypes): Do not initialize it.
4689 (_initialize_gdbtypes): Do not swap it.
4691 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4693 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
4694 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
4695 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
4696 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
4697 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
4698 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
4699 builtin_type_vec64, builtin_type_vec128): Remove.
4700 (init_simd_type): Remove.
4701 (init_vector_type): Make global.
4702 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
4703 (build_gdbtypes): Do not build vector types.
4704 (_initialize_gdbtypes): Do not swap vector types.
4705 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
4706 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
4707 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
4708 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
4709 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
4710 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
4711 builtin_type_vec64, builtin_type_vec128): Remove declarations.
4712 (init_vector_type): Add prototype.
4714 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
4715 i386_sse_type members.
4716 (i386_mmx_type, i386_sse_type): Change from variables to functions.
4717 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
4718 (i386_init_types): Do not build vector types.
4719 (i386_mmx_type, i386_sse_type): New functions.
4720 (i386_register_type): Call them instead of using global variables.
4721 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
4722 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
4723 of using global variable.
4725 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
4726 and ppc_builtin_type_vec128 members.
4727 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
4728 (rs6000_builtin_type_vec128): Likewise.
4729 (rs6000_register_type): Call them instead of using builtin_type_vec64
4730 and builtin_type_vec128.
4731 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
4733 * spu-tdep.c (struct gdbarch_tdep): New data type.
4734 (spu_builtin_type_vec128): Remove variable.
4735 (spu_builtin_type_vec128): New function.
4736 (spu_register_type): Call it instead of using global variable.
4737 (spu_gdbarch_init): Allocate tdep structure.
4738 (spu_init_vector_type): Remove function.
4739 (_initialize_spu_tdep): Do not call it.
4741 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4743 * amd64-tdep.c (struct amd64_register_info): Remove.
4744 (amd64_register_info): Remove.
4745 (amd64_register_names): New static variable.
4746 (AMD64_NUM_REGS): Use amd64_register_names instead of
4747 amd64_register_info.
4748 (amd64_register_name): Likewise.
4749 (amd64_register_type): Do not refer to amd64_register_info.
4751 * s390-tdep.c (struct s390_register_info): Remove.
4752 (s390_register_info): Remove.
4753 (s390_register_name): Do not refer to s390_register_info.
4754 (s390_register_type): Likewise.
4756 * sparc64-tdep.c (struct sparc64_register_info): Remove.
4757 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
4758 (sparc64_register_names, sparc64_pseudo_register_names): New.
4759 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
4760 sparc64_register_names and sparc64_pseudo_register_names instead of
4761 sparc64_register_info and sparc64_pseudo_register_info.
4762 (sparc64_register_name): Likewise.
4763 (sparc64_register_type): Do not refer to sparc64_register_info
4764 and sparc64_pseudo_register_info.
4766 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4768 * c-lang.c (cplus_builtin_types): Remove.
4769 (enum cplus_primitive_types): New data type.
4770 (cplus_language_arch_info): New function.
4771 (cplus_language_defn): Set la_language_arch_info member. Do not set
4772 la_builtin_type_vector and string_char_type members.
4774 * f-lang.c (f_builtin_types): Remove.
4775 (enum f_primitive_types): New data type.
4776 (f_language_arch_info): New function.
4777 (f_language_de): Set la_language_arch_info member. Do not set
4778 la_builtin_type_vector and string_char_type members.
4780 * m2-lang.c (m2_builtin_types): Remove.
4781 (enum m2_primitive_types): New data type.
4782 (m2_language_arch_info): New function.
4783 (m2_language_defn): Set la_language_arch_info member. Do not set
4784 la_builtin_type_vector and string_char_type members.
4786 * objc-lang.c (objc_builtin_types): Remove.
4787 (objc_language): Set la_language_arch_info member. Do not set
4788 la_builtin_type_vector and string_char_type members.
4790 * p-lang.c (pascal_builtin_types): Remove.
4791 (enum pascal_primitive_types): New data type.
4792 (pascal_language_arch_info): New function.
4793 (pascal_language_defn): Set la_language_arch_info member. Do not set
4794 la_builtin_type_vector and string_char_type members.
4796 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4798 * regcache.c (struct regcache): Add ptid_t member.
4799 (regcache_xmalloc): Initialize it.
4800 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
4801 (regcache_dup): Likewise.
4802 (regcache_dup_no_passthrough): Likewise.
4803 (current_regcache): Make static.
4804 (registers_ptid): Remove variable.
4805 (get_thread_regcache): New function.
4806 (get_current_regcache): New function.
4807 (registers_changed): Implement by freeing current regcache.
4808 (regcache_raw_read): Do not refer to current_regcache. Set
4809 inferior_ptid to regcache->ptid while calling target routines.
4810 (regcache_raw_write): Likewise.
4811 (regcache_raw_supply): Do not refer to current_regcache.
4812 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
4813 (write_pc_pid): Likewise.
4814 (build_regcache): Remove.
4815 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
4816 or deprecated_register_gdbarch_swap. Do not initialize
4818 * regcache.h (get_current_regcache): Add prototype.
4819 (get_thread_regcache): Likewise.
4820 (current_regcache): Remove declaration.
4822 * corelow.c (core_open): Replace current_regcache by
4823 get_current_regcache ().
4824 * frame.c (frame_pop): Likewise.
4825 (put_frame_register): Likewise.
4826 (get_current_frame, create_new_frame): Likewise.
4827 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
4828 * stack.c (return_command): Likewise.
4829 * infcall.c (call_function_by_hand): Likewise.
4830 * infrun.c (resume): Likewise.
4831 (save_inferior_status, restore_inferior_status): Likewise.
4832 * linux-fork.c (fork_load_infrun_state): Likewise.
4833 (fork_save_infrun_state): Likewise.
4834 * win32-nat.c (win32_resume): Likewise.
4835 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
4836 * monitor.c (monitor_wait): Likewise.
4837 * remote.c (remote_wait): Likewise.
4838 * remote-mips.c (mips_wait): Likewise.
4840 * bsd-kvm.c (bsd_kvm_open): Likewise
4841 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
4842 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
4843 * i386-linux-nat.c (i386_linux_resume): Likewise.
4844 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
4845 (ia64_linux_stopped_data_address): Likewise.
4847 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
4848 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
4849 * mep-tdep.c (current_me_module, current_options): Likewise.
4850 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
4852 * linux-nat.c (linux_nat_do_thread_registers): Use thread
4853 regcache instead of current_regcache. Call target_fetch_registers.
4854 (linux_nat_corefile_thread_callback): Update call site.
4855 (linux_nat_do_registers): Likewise.
4856 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
4857 of current_regcache.
4858 (procfs_make_note_section): Likewise.
4859 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
4860 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
4861 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
4862 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
4864 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4866 * regcache.c (read_register, read_register_pid): Remove.
4867 (write_register, write_register_pid): Likewise.
4868 * regcache.h (read_register, read_register_pid): Remove prototype.
4869 (write_register, write_register_pid): Likewise.
4871 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4873 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
4874 (write_pc): Likewise. Remove default implementation, add predicate.
4875 * gdbarch.c, gdbarch.h: Regenerate.
4876 * regcache.c (read_pc_pid): Use current regcache instead of calling
4878 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
4880 (generic_target_write_pc): Remove.
4881 * inferior.h (generic_target_write_pc): Remove.
4882 * frv-tdep.c (frv_gdbarch_init): Do not install it.
4883 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
4884 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4885 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
4886 * sh-tdep.c (sh_gdbarch_init): Likewise.
4887 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
4889 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
4890 argument. Use REGCACHE instead of calling read_register_pid.
4891 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
4892 * hppa-tdep.c (hppa_read_pc): Likewise.
4893 * hppa-tdep.h (hppa_read_pc): Likewise.
4894 * ia64-tdep.c (ia64_read_pc): Likewise.
4895 * m32r-tdep.c (m32r_read_pc): Likewise.
4896 * mep-tdep.c (mep_read_pc): Likewise.
4897 * mn10300-tdep.c (mn10300_read_pc): Likewise.
4898 * spu-tdep.c (spu_read_pc): Likewise.
4900 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
4901 argument. Use REGCACHE instead of calling write_register_pid.
4902 * avr-tdep.c (avr_write_pc): Likewise.
4903 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
4904 * hppa-tdep.c (hppa_write_pc): Likewise.
4905 * hppa-tdep.h (hppa_write_pc): Likewise.
4906 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
4907 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
4908 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
4909 * ia64-tdep.c (ia64_write_pc): Likewise.
4910 * ia64-tdep.h (ia64_write_pc): Likewise.
4911 * m32r-tdep.c (m32r_write_pc): Likewise.
4912 * m88k-tdep.c (m88k_write_pc): Likewise.
4913 * mep-tdep.c (mep_write_pc): Likewise.
4914 * mips-tdep.c (mips_write_pc): Likewise.
4915 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
4916 * mn10300-tdep.c (mn10300_write_pc): Likewise.
4917 * sparc-tdep.c (sparc_write_pc): Likewise.
4918 * spu-tdep.c (spu_write_pc): Likewise.
4920 * mips-tdep.c (read_signed_register): Remove.
4921 (read_signed_register_pid): Likewise.
4922 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
4923 Use REGCACHE instead of calling read_signed_register_pid.
4925 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4927 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
4928 * gdbarch.c, gdbarch.h: Regenerate.
4929 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
4930 (push_dummy_code): Likewise. Pass it to callee.
4931 (call_function_by_hand): Pass current regcache to push_dummy_code.
4933 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
4934 argument. Use it instead of current_regcache.
4936 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
4937 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
4939 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4941 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
4942 * gdbarch.c, gdbarch.h: Regenerate.
4943 * infrun.c (handle_inferior_event): Pass current frame to
4944 gdbarch_get_longjmp_target.
4946 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
4947 Read registers from FRAME instead of using read_register.
4948 Use get_frame_arch instead of current_gdbarch.
4949 * arm-tdep.c (arm_get_longjmp_target): Likewise.
4950 * i386-tdep.c (i386_get_longjmp_target): Likewise.
4951 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
4952 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
4953 (mips64_linux_get_longjmp_target): Likewise.
4954 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
4956 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4958 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
4959 * gdbarch.c, gdbarch.h: Regenerate.
4960 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
4961 * arch-utils.h (generic_skip_trampoline_code): Likewise.
4962 * infrun.c (handle_inferior_event): Pass current frame to
4963 gdbarch_skip_trampoline_code and skip_language_trampoline.
4965 * language.c (unk_lang_trampoline): Add FRAME argument.
4966 (skip_language_trampoline): Add FRAME argument. Pass it to
4967 skip_trampoline callback.
4968 * language.h: Add forward declaration of struct frame_info.
4969 (struct language_defn): Add FRAME argument to skip_trampoline.
4970 (skip_language_trampoline): Add FRAME argument.
4971 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
4972 to skip_trampoline callback.
4973 * cp-abi.h: Add forward declaration of struct frame_info.
4974 (cplus_skip_trampoline): Add FRAME argument.
4975 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
4976 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
4977 to gdbarch_skip_trampoline_code.
4978 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
4979 to gdbarch_skip_trampoline_code.
4981 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
4982 * symtab.h (find_solib_trampoline_target): Likewise.
4983 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
4984 find_solib_trampoline_target.
4986 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
4987 from FRAME instead of calling read_register.
4989 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
4990 argument. Read registers from FRAME instead of using read_register.
4991 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
4992 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
4994 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
4997 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
4999 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
5000 registers from FRAME instead of using read_signed_register.
5002 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
5004 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
5005 instead of using read_register.
5006 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
5007 ppc64_standard_linkage_target.
5008 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
5009 Pass it to find_solib_trampoline_target. Read registers from FRAME
5010 instead of using read_register.
5012 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
5015 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5017 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
5019 * gdbarch.c, gdbarch.h: Regenerate.
5020 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
5022 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
5023 registers from FRAME instead of using read_register.
5024 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5025 to alpha_next_pc. Use get_frame_pc instead of read_pc.
5026 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
5029 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
5030 from FRAME instead of using read_register.
5031 (thumb_get_next_pc): Likewise.
5032 (arm_get_next_pc): Likewise.
5033 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5034 to arm_get_next_pc. Use get_frame_pc instead of read_register.
5035 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
5038 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
5039 from FRAME instead of using read_register.
5040 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5041 to find_step_target.
5043 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
5044 from FRAME instead of using read_register / read_signed_register.
5045 (extended_mips16_next_pc): Likewise.
5046 (mips16_next_pc): Likewise.
5047 (mips_next_pc): Likewise.
5048 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5049 to mips_next_pc. Use get_frame_pc instead of read_pc.
5050 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
5053 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
5054 of current frame. Read registers from FRAME.
5055 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
5056 branch_dest. Use get_frame_pc instead of read_pc.
5057 (rs6000_software_single_step): Likewise.
5058 (bl_to_blrl_insn_p): Do not call branch_dest.
5059 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
5062 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
5063 Read registers from FRAME instead of current regcache.
5064 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
5065 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
5066 * sparc-tdep.c (sparc_address_from_register): Remove.
5067 (sparc_analyze_control_transfer): Pass FRAME argument instead of
5068 GDBARCH. Pass FRAME to step_trap callback.
5069 (sparc_step_trap): Add FRAME argument.
5070 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5071 to sparc_analyze_control_transfer. Read registers from FRAME instead
5072 of calling sparc_address_from_register.
5073 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
5075 (sparc_address_from_register): Remove prototype.
5076 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
5077 (sparcnbsd_step_trap): Add FRAME argument.
5079 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
5080 by FRAME. Read registers from FRAME instead of REGCACHE.
5082 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5084 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
5085 instead of calling read_register.
5087 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
5088 calling write_register.
5090 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
5091 calling write_register.
5093 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
5094 instead of calling read_register.
5095 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
5096 instead of calling read_register and write_register.
5098 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
5099 instead of current_regcache.
5101 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
5102 of calling write_register.
5103 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
5104 parameter instead of current_regcache.
5106 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
5107 instead of calling read_register.
5108 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
5109 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
5110 (mips_n32n64_push_dummy_call): Likewise.
5111 (mips_o32_push_dummy_call): Likewise.
5112 (mips_o64_push_dummy_call): Likewise.
5114 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
5115 parameter instead of current_regcache.
5117 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
5118 Use it instead of read_register and write_register.
5119 (xtensa_register_read_masked): Likewise.
5120 (xtensa_pseudo_register_read): Update call.
5121 (xtensa_pseudo_register_write): Likewise.
5122 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
5123 instead of calling read_register.
5124 (xtensa_push_dummy_call): Update comment.
5126 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5128 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
5129 by frame_unwind_register_signed calls.
5130 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
5131 frame allocations when called with NULL NEXT_FRAME parameter.
5132 (read_next_frame_reg): Remove.
5134 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
5135 instead of reading the FPSCR register.
5136 (sh_frame_cache): Pass unwound FPSCR register value to
5137 sh_analyze_prologue.
5138 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
5140 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
5141 instead of reading the CTBP register.
5142 (v850_frame_cache): Pass unwound CTBP register value to
5143 v850_analyze_prologue.
5145 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5147 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
5148 * sh-tdep.c (sh_show_regs): Likewise.
5149 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
5150 (sh_generic_show_regs): Add FRAME parameter. Use register
5151 values from that frame instead of calling read_register.
5152 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
5153 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
5154 sh_dsp_show_regs): Likewise.
5155 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
5156 sh64_show_regs): Likewise.
5158 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5160 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
5161 current regcache instead of calling read_register.
5163 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5165 * mep-tdep.c (current_me_module): Read from current regcache
5166 instead of calling read_register.
5167 (current_options): Likewise.
5169 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5171 * cris-tdep.c (cris_stopped_data_address): Read register values
5172 from current frame instead of calling read_register.
5173 * frv-tdep.c (frv_stopped_data_address): Likewise.
5175 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5177 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
5178 instead of write_register (PC_REGNUM, ...).
5180 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5182 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
5183 explaining why the PC adjustment code is necessary.
5185 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
5187 * m68k-tdep.h (enum m68k_flavour): New.
5188 (struct gdbarch_tdep): New fields
5189 float_return, flavour and fpregs_present.
5190 * m68k-tdep.c (m68k_register_type): Use
5191 fpregs_present and conditionalize floating
5192 registers type on flavour.
5193 (m68k_register_names): New.
5194 (m68k_register_name): Use the above.
5195 (m68k_convert_register_p): Consult fpregs_present.
5196 (m68k_register_to_value, m68k_value_to_register):
5197 Use register_type to obtain the type of floating
5199 (m68k_svr4_extract_return_value): Check tdep->float_return.
5200 Use register_type to get the type of floating
5202 (m68k_svr4_store_return_value): Likewise.
5203 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
5204 (m68k_analyze_register_saves): Likewise.
5205 (m68k_gdbarch_init): Extract infromation
5206 from XML description, if present. Guess coldfire by
5207 looking at the file, if present. Conditionalize
5208 setting of long double format. Set decr_pc_after_break
5209 to 2 on coldfire and fido. Enable XML-driven
5210 register description.
5211 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
5212 size of tdep->fpreg_type, as opposed to hardcoded value.
5213 * Makefile.in (m68k-tdep.o): Update dependencies.
5215 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5217 * NEWS: Mention "info spu" commands and qXfer:spu:read and
5218 qXfer:spu:write remote packet types.
5220 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5222 * xml-tdesc.c (tdesc_start_target): New.
5223 (target_attributes): New.
5224 (tdesc_elements): Use it.
5225 * features/gdb-target.dtd: Add #FIXED version attribute for
5228 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
5230 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
5232 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
5234 * fork-child.c (fork_inferior): Update comment.
5236 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5238 * features/Makefile: Generate regformats for mips-linux and
5240 * features/sort-regs.xsl: Correct typo.
5241 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
5242 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
5245 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5247 * config/mips/linux.mh (TDEP_XML): New.
5248 * features/mips-linux.xml, features/mips64-linux.xml: New files.
5249 * mips-linux-nat.c (mips_linux_register_addr): Handle
5250 MIPS_RESTART_REGNUM.
5251 (mips64_linux_register_addr): Likewise.
5252 (super_xfer_partial, mips_linux_xfer_partial): New.
5253 (_initialize_mips_linux_nat): Add them to the target_ops.
5254 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
5255 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
5256 (mips_linux_o32_sigframe_init)
5257 (mips_linux_n32n64_sigframe_init): Likewise.
5258 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
5259 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
5260 "org.gnu.gdb.mips.linux" feature.
5261 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
5262 (mips_linux_restart_reg_p): New prototype.
5263 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
5264 initialization routine.
5265 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
5267 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5269 * Makefile.in (mips-tdep.o): Update.
5270 * mips-tdep.c (struct register_alias, mips_o32_aliases)
5271 (mips_n32_n64_aliases, mips_register_aliases): New.
5272 (mips_register_name): Call tdesc_register_name.
5273 (mips_tdesc_register_reggroup_p): New.
5274 (mips_pseudo_register_type, value_of_mips_user_reg): New.
5275 (mips_gdbarch_init): Add target-described register support.
5276 Register aliases for register names.
5277 * target-descriptions.c (tdesc_register_name): Make global.
5278 (tdesc_register_in_reggroup_p): New function, broken out from
5279 tdesc_register_reggroup_p.
5280 (tdesc_register_reggroup_p): Use it.
5281 * target-descriptions.h (tdesc_register_name)
5282 (tdesc_register_in_reggroup_p): New prototypes.
5283 * NEWS: Correct formatting. Mention MIPS register support.
5284 * features/mips-cp0.xml, features/mips-fpu.xml,
5285 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
5286 features/mips64-cpu.xml: New files.
5288 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5290 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
5291 * valops.c (value_cast): Likewise.
5292 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
5293 * ui-out.c (ui_out_field_core_addr): Likewise.
5294 * tracepoint.c (tracepoints_info): Likewise.
5295 * symtab.c (print_msymbol_info): Likewise.
5296 * solib-irix.c (irix_current_sos)
5297 (irix_open_symbol_file_object): Likewise.
5298 * remote.c (build_remote_gdbarch_data): Likewise.
5299 * prologue-value.c (make_pv_area): Likewise.
5300 * procfs.c (info_mappings_callback): Likewise.
5301 * printcmd.c (print_scalar_formatted)
5302 (deprecated_print_address_numeric): Likewise.
5303 * memattr.c (mem_info_command): Likewise.
5304 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
5305 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
5306 * exec.c (print_section_info): Likewise.
5307 * dwarf2read.c (read_subrange_type): Likewise.
5308 * dwarf2loc.c (find_location_expression): Likewise.
5309 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
5310 (signed_address_type, execute_stack_op): Likewise.
5311 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
5312 * gdbarch.c, gdbarch.h: Regenerate.
5314 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5316 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
5317 * arch-utils.c (show_architecture): Likewise.
5318 * remote-mips.c (mips_open): Likewise
5319 * nto-tdep.c (nto_find_and_open_solib)
5320 (nto_init_solib_absolute_prefix): Likewise.
5321 * nto-procfs (procfs_open): Likewise.
5322 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
5323 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
5324 * gdbarch.c, gdbarch.h: Regenerate.
5326 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5328 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
5329 * gdbtypes.c (build_flt): Likewise.
5330 * gdbarch.c, gdbarch.h: Regenerate.
5332 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5334 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
5335 gdbarch_breakpoint_from_pc.
5336 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
5337 * remote.c (remote_insert_breakpoint)
5338 (remote_insert_hw_breakpoint): Likewise.
5339 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
5340 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
5341 * breakpoint.h (bp_target_info): Likewise (comment).
5342 * breakpoint.c (read_memory_nobpt): Likewise.
5343 * mem-break.c (default_memory_insert_breakpoint): Likewise.
5344 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
5345 * gdbarch.c, gdbarch.h: Regenerate.
5347 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5349 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
5350 * solib-svr4.c (svr4_truncate_ptr): Likewise.
5351 * solib-pa64.c (read_dynamic_info): Likewise.
5352 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
5353 * solib.c (info_sharedlibrary_command): Likewise.
5354 * s390-nat.c (SUBOFF): Likewise.
5355 * p-valprint.c (pascal_val_print): Likewise.
5356 * procfs.c (info_proc_mappings): Likewise.
5357 * printcmd.c (decode_format): Likewise.
5358 * nto-tdep.c (nto_truncate_ptr): Likewise.
5359 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5360 (mips64_linux_get_longjmp_target): Likewise.
5361 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5362 * jv-valprint.c (java_value_print): Likewise.
5363 * jv-lang.c (get_java_object_header_size): Likewise.
5364 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5365 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5366 (hppa_hpux_unwind_adjust_stub): Likewise.
5367 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5368 * gdbtypes.c (make_pointer_type, make_reference_type)
5369 (smash_to_memberptr_type): Likewise.
5370 * gdbarch.c, gdbarch.h: Regenerate.
5372 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5374 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
5375 (print_gp_register_row): Stop before printing a register bigger
5376 than the ABI register size.
5377 (mips_print_registers_info): Update call to mips_print_register.
5379 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5381 * expression.h (enum exp_opcode): Document a register name for
5383 * parse.c (write_dollar_variable): Write the register name for
5385 (operator_length_standard): Expect the register name following
5387 * ada-lang.c (resolve_subexp): Likewise.
5388 * ax-gdb.c (gen_expr): Likewise.
5389 * eval.c (evaluate_subexp_standard): Likewise.
5390 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5392 * tracepoint.c (encode_actions): Likewise.
5394 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5396 * utils.c (set_screen_size): Use INT_MAX for default columns.
5398 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
5400 * remote.c (remote_protocol_features): Add qXfer:spu:read and
5401 qXfer:spu:write packet types.
5403 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5405 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
5406 * gdbarch.c, gdbarch.h: Regenerate.
5408 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5410 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
5411 gdbarch_stab_reg_to_regnum.
5412 * stabsread.c (define_symbol): Likewise.
5413 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
5414 gdbarch_ecoff_reg_to_regnum.
5415 * mdebugread.c (parse_symbol): Likewise.
5416 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
5417 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
5418 gdbarch_dwarf_reg_to_regnum.
5419 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
5420 * coffread.c (process_coff_symbol): Likewise.
5421 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
5422 gdbarch_dwarf2_reg_to_regnum.
5423 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
5424 (locexpr_describe_location): Likewise.
5425 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
5426 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
5427 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
5428 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
5429 * gdbarch.c, gdbarch.h: Regenerate.
5431 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5433 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
5434 gdbarch_smash_text_address.
5435 * somread.c (som_symtab_read): Likewise.
5436 * elfread.c (record_minimal_symbol): Likewise.
5437 * dbxread.c (process_one_symbol): Likewise.
5438 * coffread.c (coff_symtab_read): Likewise.
5439 * gdbarch.c, gdbarch.h: Regenerate.
5441 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5443 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
5444 * findvar.c (value_from_register): Likewise.
5445 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
5446 * valops.c (value_assign): Likewise.
5447 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
5448 gdbarch_convert_register_p.
5449 * findvar.c (value_from_register): Likewise.
5450 * valops.c (value_assign): Likewise.
5451 * gdbarch.c, gdbarch.h: Regenerate.
5453 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5455 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
5456 gdbarch_register_sim_regno.
5457 * sim-regno.h (sim_regno): Likewise (comment).
5458 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
5459 * gdbarch.c, gdbarch.h: Regenerate.
5461 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5463 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
5464 gdbarch_virtual_frame_pointer.
5465 * tracepoint.c (encode_actions): Likewise.
5466 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
5467 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
5468 * gdbarch.c, gdbarch.h: Regenerate.
5470 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5472 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
5473 * p-lang.c (pascal_create_fundamental_type): Likewise.
5474 * objc-lang.c (objc_create_fundamental_type): Likewise.
5475 * mdebugread.c (_initialize_mdebugread): Likewise.
5476 * m2-lang.c (m2_create_fundamental_type)
5477 (_initialize_m2_language): Likewise.
5478 * gdbtypes.c (build_gdbtypes): Likewise.
5479 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5480 * doublest.c (floatformat_from_length): Likewise.
5481 * c-lang.c (c_create_fundamental_type): Likewise.
5482 * ada-lang.c (ada_create_fundamental_type)
5483 (ada_language_arch_info): Likewise.
5484 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
5485 * value.c (unpack_double): Likewise (comment).
5486 * gdbtypes.c (build_gdbtypes): Likewise.
5487 * doublest.c (floatformat_from_length): Likewise.
5488 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
5489 * valarith.c (value_binop): Likewise.
5490 * p-lang.c (pascal_create_fundamental_type): Likewise.
5491 * objc-lang.c (objc_create_fundamental_type): Likewise.
5492 * mdebugread.c (_initialize_mdebugread): Likewise.
5493 * m2-lang.c (m2_create_fundamental_type): Likewise.
5494 * gdbtypes.c (build_gdbtypes): Likewise.
5495 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5496 * doublest.c (floatformat_from_length): Likewise.
5497 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
5498 * c-lang.c (c_create_fundamental_type): Likewise.
5499 * ada-lex.l (processReal): Likewise.
5500 * ada-lang.c (ada_create_fundamental_type)
5501 (ada_language_arch_info): Likewise.
5502 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
5503 * value.c (unpack_double): Likewise (comment).
5504 * gdbtypes.c (build_gdbtypes): Likewise.
5505 * doublest.c (floatformat_from_length): Likewise.
5506 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
5507 gdbarch_long_double_bit.
5508 * p-lang.c (pascal_create_fundamental_type): Likewise.
5509 * objc-lang.c (objc_create_fundamental_type): Likewise.
5510 * m2-lang.c (m2_create_fundamental_type): Likewise.
5511 * gdbtypes.c (build_gdbtypes): Likewise.
5512 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5513 * doublest.c (floatformat_from_length): Likewise.
5514 * c-lang.c (c_create_fundamental_type): Likewise.
5515 * ada-lex.l (processReal): Likewise.
5516 * ada-lang.c (ada_create_fundamental_type)
5517 (ada_language_arch_info): Likewise.
5518 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
5519 gdbarch_long_double_format.
5520 * gdbtypes.c (build_gdbtypes): Likewise.
5521 * doublest.c (floatformat_from_length): Likewise.
5522 * gdbarch.c, gdbarch.h: Regenerate.
5524 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5526 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
5527 * ada-lang.c (ada_create_fundamental_type)
5528 (ada_language_arch_info): Likewise.
5529 * c-lang.c (c_create_fundamental_type): Likewise.
5530 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5531 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5532 * m2-lang.c (m2_create_fundamental_type): Likewise.
5533 * objc-lang.c (objc_create_fundamental_type): Likewise.
5534 * p-lang.c (pascal_create_fundamental_type): Likewise.
5535 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
5536 * c-exp.y (parse_number): Likewise.
5537 * objc-exp.y (parse_number): Likewise.
5538 * ada-lex.l (processInt): Likewise.
5539 * f-exp.y (parse_number): Likewise.
5540 * p-exp.y (parse_number): Likewise.
5541 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
5542 (gdbtypes_post_init, build_gdbtypes): Likewise.
5543 * p-lang.c (pascal_create_fundamental_type): Likewise.
5544 * parse.c (build_parse): Likewise.
5545 * xcoffread.c (_initialize_xcoffread): Likewise.
5546 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
5547 (read_range_type): Likewise.
5548 * objc-lang.c (objc_create_fundamental_type): Likewise.
5549 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
5550 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
5551 (m2_create_fundamental_type): Likewise.
5552 * c-lang.c (c_create_fundamental_type): Likewise.
5553 * coffread.c (coff_read_enum_type): Likewise.
5554 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
5555 * dwarf2read.c (new_symbol): Likewise.
5556 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
5557 * c-exp.y (parse_number): Likewise.
5558 * objc-exp.y (parse_number): Likewise.
5559 * ada-lex.l (processInt): Likewise.
5560 * f-exp.y (parse_number): Likewise.
5561 * p-exp.y (parse_number): Likewise.
5562 * valarith.c (value_binop): Likewise.
5563 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
5564 * ada-lang.c (ada_create_fundamental_type)
5565 (ada_language_arch_info): Likewise.
5566 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5567 * symfile.c (TARGET_LONG_BYTES): Likewise.
5568 * p-lang.c (pascal_create_fundamental_type): Likewise.
5569 * objc-lang.c (objc_create_fundamental_type): Likewise.
5570 * m2-lang.c (m2_create_fundamental_type): Likewise.
5571 * f-lang.c (f_create_fundamental_type): Likewise.
5572 * c-lang.c (c_create_fundamental_type): Likewise.
5573 * coffread.c (decode_base_type): Likewise.
5574 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
5575 * c-exp.y (parse_number): Likewise.
5576 * objc-exp.y (parse_number): Likewise.
5577 * p-exp.y (parse_number): Likewise.
5578 * ada-lang.c (ada_create_fundamental_type)
5579 (ada_language_arch_info): Likewise.
5580 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
5581 * stabsread.c (read_range_type): Likewise.
5582 * p-lang.c (pascal_create_fundamental_type): Likewise.
5583 * objc-lang.c (objc_create_fundamental_type): Likewise.
5584 * m2-lang.c (m2_create_fundamental_type): Likewise.
5585 * f-lang.c (f_create_fundamental_type): Likewise.
5586 * c-lang.c (c_create_fundamental_type): Likewise.
5587 * gdbarch.c, gdbarch.h: Regenerate.
5589 2007-06-12 Andreas Schwab <schwab@suse.de>
5591 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
5592 (struct frame_unwind): Add dealloc_cache.
5593 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
5595 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
5596 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
5597 (libunwind_frame_unwind): Set dealloc_cache.
5598 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
5600 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5601 Markus Deuling <deuling@de.ibm.com>
5603 * remote.c (remote_write_qxfer): New function.
5604 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
5605 (remote_read_qxfer): Do not cache empty objects.
5606 (_initialize_remote): Add PACKET_qXfer_spu_read and
5607 PACKET_qXfer_spu_write.
5609 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5611 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
5612 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
5614 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
5615 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
5616 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
5617 * spu-tdep.c (infospucmdlist): New variable.
5618 (spu_register_name): Handle additional pseudo registers.
5619 (spu_register_type): Likewise.
5620 (spu_pseudo_register_read): Likewise.
5621 (spu_pseudo_register_write): Likewise.
5622 (spu_pseudo_register_read_spu): New function.
5623 (spu_pseudo_register_write_spu): Likewise.
5624 (info_spu_event_command): New function.
5625 (info_spu_signal_command): Likewise.
5626 (info_spu_mailbox_list): Likewise.
5627 (info_spu_mailbox_command): Likewise.
5628 (spu_mfc_get_bitfield): Likewise.
5629 (info_spu_dma_cmdlist): Likewise.
5630 (info_spu_dma_command): Likewise.
5631 (info_spu_proxydma_command): Likewise.
5632 (info_spu_command): Likewise.
5633 (_initialize_spu_tdep): Install "info spu" commands.
5635 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5637 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
5638 accessing non-seekable spufs files.
5640 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5642 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
5643 gdbarch_skip_trampoline_code.
5644 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
5645 * objc-lang.c (objc_skip_trampoline)
5646 (objc_submethod_helper_data): Likewise.
5647 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
5648 * infrun.c (handle_inferior_event): Likewise.
5649 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
5650 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
5651 gdbarch_in_solib_return_trampoline.
5652 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
5653 * infrun.c (handle_inferior_event): Likewise.
5654 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
5655 * gdbarch.c, gdbarch.h: Regenerate.
5657 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5659 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
5660 * symtab.c (find_function_start_sal, in_prologue): Likewise.
5661 * linespec.c (minsym_found): Likewise.
5662 * infrun.c (step_into_function): Likewise.
5663 * gdbarch.c, gdbarch.h: Regenerate.
5665 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5667 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
5668 * valops.c (value_allocate_space_in_inferior): Likewise.
5669 * gdbarch.c, gdbarch.h: Regenerate.
5671 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5673 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
5674 gdbarch_memory_insert_breakpoint.
5675 * mem-break.c (memory_insert_breakpoint): Likewise.
5676 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
5677 gdbarch_memory_remove_breakpoint.
5678 * mem-break.c (memory_remove_breakpoint): Likewise.
5679 * gdbarch.c, gdbarch.h: Regenerate.
5681 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5683 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
5684 gdbarch_fetch_tls_load_module_address.
5685 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
5686 gdbarch_fetch_tls_load_module_address_p.
5687 * gdbarch.c, gdbarch.h: Regenerate.
5689 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5691 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
5692 gdbarch_decr_pc_after_break.
5693 * tracepoint.c (trace_dump_command): Likewise.
5694 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
5695 * linux-thread-db.c (check_event): Likewise.
5696 * linux-nat.c (cancel_breakpoints_callback): Likewise.
5697 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
5698 * frame.h: Likewise (comment).
5699 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
5700 * aix-thread.c (aix_thread_wait): Likewise.
5701 * gdbarch.c, gdbarch.h: Regenerate.
5703 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5705 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
5706 gdbarch_address_class_type_flags.
5707 * dwarf2read.c (read_tag_pointer_type): Likewise.
5708 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
5709 gdbarch_address_class_type_flags_p.
5710 * dwarf2read.c (read_tag_pointer_type): Likewise.
5711 * gdbarch.c, gdbarch.h: Regenerate.
5713 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5715 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
5716 * value.c (value_as_address): Likewise (comment).
5717 * remote-mips.c (common_breakpoint): Likewise.
5718 * regcache.c (read_pc_pid): Likewise.
5719 * printcmd.c (do_one_display): Likewise.
5720 * monitor.c (monitor_write_memory, monitor_read_memory)
5721 (monitor_insert_breakpoint): Likewise.
5722 * mips-tdep.c (heuristic_proc_start): Likewise.
5723 * infrun.c (insert_step_resume_breakpoint_at_frame)
5724 (insert_step_resume_breakpoint_at_caller): Likewise.
5725 * buildsym.c (record_line): Likewise.
5726 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
5727 (arm_get_next_pc): Likewise.
5728 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
5729 (store_regs): Likewise.
5730 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
5731 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
5732 * gdbarch.c, gdbarch.h: Regenerate.
5734 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5736 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
5737 * tracepoint.c (scope_info): Likewise.
5738 * target.c (debug_print_register): Likewise.
5739 * stack.c (frame_info): Likewise.
5740 * sh-tdep.c (sh_register_reggroup_p): Likewise.
5741 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
5742 (sh64_media_print_registers_info)
5743 (sh64_compact_print_registers_info): Likewise.
5744 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
5745 * remote-sim.c (gdbsim_fetch_register): Likewise.
5746 * remote.c (packet_reg): Likewise (comment).
5747 * reggroups.c (default_register_reggroup_p): Likewise.
5748 * regcache.c (regcache_dump): Likewise.
5749 * printcmd.c (address_info): Likewise.
5750 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
5751 * mt-dep.c (mt_registers_info): Likewise.
5752 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
5753 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
5754 (mips_read_fp_register_double, mips_print_fp_register)
5755 (mips_print_register, print_gp_register_row, mips_print_registers_info)
5756 (mips_register_sim_regno): Likewise.
5757 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
5758 * inf-ptrace.c (inf_ptrace_fetch_register)
5759 (inf_ptrace_store_register): Likewise.
5760 * infcmd.c (default_print_registers_info): Likewise.
5761 * ia64-linux-nat.c (ia64_linux_fetch_register)
5762 (ia64_linux_store_register): Likewise.
5763 * i386-linux-nat.c (fetch_register, store_register): Likewise.
5764 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
5765 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
5766 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
5767 (hppa_hpux_store_register): Likewise.
5768 * findvar.c (locate_var_value): Likewise.
5769 * dwarf2loc.c (locexpr_describe_location): Likewise.
5770 * dwarf2-frame.c (execute_cfa_program): Likewise.
5771 * arm-tdep.c (arm_push_dummy_call): Likewise.
5772 * arch-utils.c (legacy_register_sim_regno): Likewise.
5773 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
5774 * alpha-nat.c (fetch_osf_core_registers): Likewise.
5775 * mi/mi-main.c (mi_cmd_data_list_register_names)
5776 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
5777 (mi_cmd_data_write_register_values): Likewise.
5778 * gdbarch.c, gdbarch.h: Regenerate.
5780 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
5782 * target-memory.c (blocks_to_erase): Correct off-by-one error.
5784 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
5786 * remote.c (process_g_packet): Don't check size.
5787 * gdbarch.sh: Remove register_bytes_ok.
5788 * gdbarch.c: Regenerated.
5789 * gdbarch.h: Regenerated.
5790 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
5791 (m68k_register_bytes_ok): Remove.
5792 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
5794 2007-06-06 Andreas Schwab <schwab@suse.de>
5796 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
5797 (destroy_addr_space_name): Define.
5798 (libunwind_load): Get address of destroy_addr_space function.
5799 (libunwind_frame_cache): Destroy unw_addr_space_t object before
5800 returning unsuccessfully.
5801 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
5803 (libunwind_sigtramp_frame_sniffer): Likewise.
5804 (libunwind_get_reg_special): Likewise.
5806 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5808 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
5809 gdbarch_fetch_pointer_argument.
5810 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
5811 * gdbarch.c, gdbarch.h: Regenerate.
5813 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5815 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
5816 gdbarch_have_nonsteppable_watchpoint.
5817 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
5818 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
5819 gdbarch_cannot_step_breakpoint.
5820 * infrun.c (resume): Likewise.
5821 * gdbarch.c, gdbarch.h: Regenerate.
5823 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5825 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
5826 * stack.c (print_frame_args): Likewise.
5827 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
5828 * stack.c (print_args_stub, frame_info): Likewise.
5829 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
5830 * stack.c (print_args_stub, frame_info): Likewise.
5831 * gdbarch.c, gdbarch.h: Regenerate.
5833 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5835 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
5836 gdbarch_coff_make_msymbol_special.
5837 * coffread.c (coff_symtab_read): Likewise.
5838 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
5839 gdbarch_elf_make_msymbol_special.
5840 * elfread.c (elf_symtab_read): Likewise.
5841 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
5842 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
5843 * gdbarch.c, gdbarch.h: Regenerate.
5845 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5847 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
5848 gdbarch_frame_red_zone_size.
5849 * gdbarch.c, gdbarch.h: Regenerate.
5851 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5853 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
5854 * infcall.c (call_function_by_hand): Likewise.
5855 * gcore.c (derive_stack_segment): Likewise.
5856 * frame.c (frame_id_inner): Likewise.
5857 * arch-utils.c (core_addr_lessthan): Likewise (comment).
5858 * ada-lang.c (ensure_lval): Likewise.
5859 * gdbarch.c, gdbarch.h: Regenerate.
5861 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5863 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
5864 gdbarch_address_to_pointer.
5865 * findvar.c (store_typed_address): Likewise.
5866 * gdbtypes.c (make_pointer_type): Likewise (comment).
5867 * procfs.c (procfs_address_to_host_pointer): Likewise.
5868 * std-regs.c (value_of_builtin_frame_reg): Likewise.
5869 (value_of_builtin_frame_fp_reg): Likewise.
5870 (value_of_builtin_frame_pc_reg): Likewise.
5871 * utils.c (paddress): Likewise (comment).
5872 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
5873 gdbarch_pointer_to_address.
5874 * findvar.c (extract_typed_address): Likewise.
5875 * gdbtypes.c (make_pointer_type): Likewise (comment).
5876 * valops.c (value_cast): Likewise (comment).
5877 * gdbarch.c, gdbarch.h: Regenerate.
5879 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5881 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
5882 * infrun.c (handle_inferior_event): Likewise.
5883 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
5884 gdbarch_get_longjmp_target_p.
5885 * breakpoint.c (breakpoint_re_set): Likewise.
5886 * infrun.c (handle_inferior_event): Likewise.
5887 * gdbarch.c, gdbarch.h: Regenerate.
5889 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
5891 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
5892 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
5893 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
5894 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
5895 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
5896 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
5897 find_stub_with_shl_get, cover_find_stub_with_shl_get,
5898 initialize_hp_cxx_exception_support, child_enable_exception_callback,
5899 current_ex_event, child_get_current_exception_event): Remove.
5900 (hppa_hpux_inferior_created): Remove.
5901 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
5903 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
5904 (deprecated_exception_support_initialized): Remove.
5905 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
5906 (deprecated_exception_support_initialized): Remove.
5907 (breakpoint_init_inferior): Remove handling of non-zero
5908 deprecated_exception_catchpoints_are_fragile.
5910 * symtab.h (deprecated_hp_som_som_object_present): Remove.
5911 * symtab.c (deprecated_hp_som_som_object_present): Remove.
5912 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
5913 deprecated_hp_som_som_object_present.
5914 * eval.c (evaluate_subexp_standard): Likewise.
5915 * valops.c (value_cast): Likewise.
5917 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
5918 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
5919 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
5921 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
5923 * objfiles.h (ImportEntry, ExportEntry): Remove types.
5924 (struct objfile): Remove import_list, import_list_size,
5925 export_list, export_list_size members.
5926 (is_in_import_list): Remove prototype.
5927 * objfiles.c (is_in_import_list): Remove.
5928 * somread.c (init_import_symbols, init_export_symbols): Remove.
5929 (som_symfile_read): Do not call init_import_symbols. Do not
5930 set objfile->export_list and objfile->export_list_size.
5932 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
5934 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
5935 Use the original objfile if necessary.
5937 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
5939 * defs.h (ldirname): New prototype.
5940 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
5942 * utils.c (ldirname): New function.
5943 * xml-tdesc.c (file_read_description_xml): Use ldirname.
5945 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
5947 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
5949 2007-06-01 Joel Brobecker <brobecker@adacore.com>
5951 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
5953 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
5955 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
5957 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
5959 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
5960 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
5961 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
5962 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
5963 (ppc_linux_in_sigtramp, insn_is_sigreturn,
5964 ppc_linux_at_sigtramp_return_path): Remove.
5966 2007-05-31 Markus Deuling <deuling@de.ibm.com>
5968 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
5969 (xtensa_register_write_masked, xtensa_register_read_masked)
5970 (xtensa_extract_return_value, xtensa_store_return_value
5971 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
5972 TARGET_BYTE_ORDER by gdbarch_byte_order.
5973 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
5974 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
5975 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
5976 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
5977 (sh64_push_dummy_call, sh64_extract_return_value)
5978 (sh64_store_return_value, sh64_register_convert_to_virtual)
5979 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
5980 (sh64_pseudo_register_write, sh64_do_fp_register)
5981 (sh64_frame_prev_register): Likewise.
5982 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
5983 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
5984 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
5985 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
5986 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
5987 * ppc-linux-nat.c (store_register): Likewise.
5988 * nto-tdep.c (nto_find_and_open_solib)
5989 (nto_init_solib_absolute_prefix): Likewise.
5990 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
5991 (mips_convert_register_p, mips_eabi_push_dummy_call)
5992 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
5993 (mips_o32_push_dummy_call, mips_o32_return_value)
5994 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
5995 (mips_read_fp_register_single, mips_read_fp_register_double)
5996 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
5997 (mips_breakpoint_from_pc): Likewise.
5998 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
5999 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
6000 (mips_linux_o32_sigframe_init): Likewise.
6001 * m32r-tdep.c (m32r_memory_insert_breakpoint)
6002 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
6003 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
6004 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
6005 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
6006 * coffread.c (process_coff_symbol): Likewise.
6007 * arm-tdep.c (convert_from_extended, convert_to_extended)
6008 (gdb_print_insn_arm): Likewise.
6010 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6012 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
6013 * i386-tdep.c (i386_dbx_reg_to_regnum)
6014 (i386_svr4_reg_to_regnum): Likewise.
6015 * inf-ptrace.c (inf_ptrace_fetch_registers)
6016 (inf_ptrace_store_registers): Likewise.
6017 * corelow.c (get_core_registers): Likewise.
6018 * i386-linux-nat.c (supply_gregset, fill_gregset)
6019 (i386_linux_fetch_inferior_registers)
6020 (i386_linux_store_inferior_registers): Likewise.
6021 * remote.c (init_remote_state,packet_reg_from_regnum)
6022 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
6023 (remote_prepare_to_store,store_registers_using_G)
6024 (remote_store_registers,remote_arch_state): Likewise.
6025 * tracepoint.c (encode_actions): Likewise.
6026 * mi/mi-main.c (mi_cmd_data_list_register_names)
6027 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6028 (mi_cmd_data_write_register_values): Likewise.
6029 * tui/tui-regs.c (tui_show_register_group)
6030 (tui_show_register_group): Likewise.
6031 * xtensa-tdep.h (FP_ALIAS): Likewise.
6032 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
6033 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
6034 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
6035 * win32-nat.c (do_win32_fetch_inferior_registers)
6036 (do_win32_store_inferior_registers,fetch_elf_core_registers
6037 * user-regs.h: Likewise (comment).
6038 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6039 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6040 * target-descriptions.h: Likewise (comment).
6041 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
6042 * target.c (debug_print_register): Likewise.
6043 * stack.c (frame_info): Likewise.
6044 * stabsread.c (define_symbol): Likewise.
6045 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
6046 (sh64_media_print_registers_info)
6047 (sh64_compact_print_registers_info): Likewise.
6048 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6049 * rs6000-nat.c (fetch_register,store_register): Likewise.
6050 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
6051 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
6052 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
6053 * remote-m32r-sdi.c (m32r_fetch_registers)
6054 (m32r_store_registers): Likewise.
6055 * reggroups.c (default_register_reggroup_p): Likewise.
6056 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
6057 (regcache_restore,regcache_dump): Likewise.
6058 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
6059 * mips-tdep.c (mips_xfer_register,mips_register_name)
6060 (mips_register_reggroup_p,mips_pseudo_register_read)
6061 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
6062 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
6063 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
6064 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
6065 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
6066 (print_gp_register_row,mips_print_registers_info)
6067 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6068 (mips_register_sim_regno): Likewise.
6069 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
6070 (mips_linux_n32n64_sigframe_init): Likewise.
6071 * mips-linux-nat.c (mips_linux_register_addr)
6072 (mips64_linux_register_addr): Likewise.
6073 * findvar.c (value_of_register): Likewise.
6074 * infcmd.c (default_print_registers_info,registers_info)
6075 (print_vector_info,print_float_info): Likewise.
6076 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
6077 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
6078 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6079 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
6080 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6081 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
6082 (ia64_cannot_store_register,ia64_linux_fetch_registers)
6083 (ia64_linux_store_registers): Likewise.
6084 * hpux-thread.c (hpux_thread_fetch_registers)
6085 (hpux_thread_store_registers): Likewise.
6086 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
6087 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
6088 (h8300_register_type): Likewise.
6089 * dwarf2-frame.c (dwarf2_frame_cache)
6090 (dwarf2_frame_state_alloc_regs): Likewise.
6091 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
6092 (cris_cannot_store_register,crisv32_cannot_fetch_register)
6093 (crisv32_cannot_store_register,cris_register_name): Likewise.
6094 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
6095 * arch-utils.c (legacy_register_sim_regno)
6096 (legacy_virtual_frame_pointer): Likewise.
6097 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
6098 * arm-tdep.h: Likewise (comment).
6099 * frv-tdep.c (frv_register_sim_regno): Likewise.
6100 * m68klinux-nat.c (old_fetch_inferior_registers)
6101 (old_store_inferior_registers): Likewise.
6102 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
6103 * irix5-nat.c (fetch_core_registers): Likewise.
6104 * hppa-tdep.c (hppa_frame_cache): Likewise.
6105 * hppa-linux-nat.c (hppa_linux_register_addr)
6106 (hppa_linux_fetch_inferior_registers)
6107 (hppa_linux_store_inferior_registers): Likewise.
6108 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
6109 (hppa_hpux_store_inferior_registers): Likewise.
6110 * amd64-nat.c (amd64_native_gregset_reg_offset)
6111 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
6112 * dbug-rom.c (dbug_regname): Likewise.
6113 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
6114 (HARD_PAGE_REGNUM (comment)): Likewise.
6115 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
6116 * i386-tdep.c (i386_dbx_reg_to_regnum)
6117 (i386_svr4_reg_to_regnum): Likewise.
6118 * mi/mi-main.c (mi_cmd_data_list_register_names)
6119 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6120 (mi_cmd_data_write_register_values): Likewise.
6121 * gdbarch.c, gdbarch.h: Regenerate.
6122 * tui/tui-regs.c (tui_show_register_group): Likewise.
6123 * xtensa-tdep.h (FP_ALIAS): Likewise.
6124 * user-regs.h: Likewise (comment).
6125 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6126 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6127 * target-descriptions.h: Likewise (comment).
6128 * target.c (debug_print_register): Likewise.
6129 * stack.c (frame_info): Likewise.
6130 * stabsread.c (define_symbol): Likewise.
6131 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
6132 (sh64_compact_print_registers_info): Likewise.
6133 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6134 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
6135 (regcache_restore,regcache_dump): Likewise.
6136 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
6137 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6138 (mips_stab_reg_to_regnum): Likewise.
6139 * findvar.c (value_of_register): Likewise.
6140 * infcmd.c (default_print_registers_info,registers_info)
6141 (print_vector_info,print_float_info): Likewise.
6142 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6143 * h8300-tdep.c (h8300_register_type): Likewise.
6144 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6145 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
6146 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
6147 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
6148 * parse.c: Remove comment.
6149 * gdbarch.c, gdbarch.h: Regenerate
6151 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6153 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
6154 gdbarch_cannot_fetch_register.
6155 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6156 * hppa-linux-nat.c (fetch_register): Likewise.
6157 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
6158 * m68klinux-nat.c (fetch_register): Likewise.
6159 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
6161 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
6162 gdbarch_cannot_store_register.
6163 * hppa-linux-nat.c (store_register): Likewise.
6164 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
6165 * regcache.c (regcache_raw_write): Likewise.
6166 * m68klinux-nat.c (store_register): Likewise.
6167 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
6168 * gdbarch.c, gdbarch.h: Regenerate.
6170 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6172 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
6173 * gdbarch.c, gdbarch.h: Regenerate.
6175 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6177 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
6178 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6179 * gdbarch.c, gdbarch.h: Regenerate.
6181 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6183 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
6184 * ax-gdb.c (gen_bitfield_ref): Likewise.
6185 * mi/mi-main.c (get_register): Likewise.
6186 * findvar.c (default_value_from_register, extract_signed_integer)
6187 (extract_unsigned_integer, extract_long_unsigned_integer)
6188 (store_signed_integer, store_unsigned_integer): Likewise.
6189 * regcache.c (regcache_dump): Likewise.
6190 * value.c (lookup_internalvar, value_of_internalvar)
6191 (set_internalvar): Likewise.
6193 * valprint.c (print_binary_chars, print_octal_chars)
6194 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
6195 * infcmd.c (default_print_registers_info): Likewise.
6196 * arch-utils.c (selected_byte_order, show_endian): Likewise.
6197 * stabsread.c (define_symbol): Likewise.
6198 * doublest.c (floatformat_from_length, floatformat_from_type)
6199 (extract_typed_floating, store_typed_floating): Likewise.
6200 * gdbarch.c, gdbarch.h: Regenerate.
6202 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6204 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
6205 gdbarch_call_dummy_location.
6206 * infcall.c (call_function_by_hand): Likewise.
6207 * inferior.h: Change comment.
6208 * arch-utils.c: Change comment.
6209 * gdbarch.c, gdbarch.h: Regenerate.
6211 2007-05-28 Joel Brobecker <brobecker@adacore.com>
6213 * solib-aix5.c: Delete.
6214 * Makefile.in (solib-aix5.o): Delete rule.
6216 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
6218 * breakpoint.h (enum bpstat_what_main_action): Remove
6219 BPSTAT_WHAT_THROUGH_SIGTRAMP.
6220 * infrun.c (process_event_stop_test): Do not check for it.
6222 2007-05-22 Chris Dearman <chris@mips.com>
6223 Maciej W. Rozycki <macro@mips.com>
6225 * ser-unix.c (show_serial_hwflow): New function.
6226 (hardwire_raw): Add hardware flow control support.
6227 (_initialize_ser_hardwire): Add "set/show remoteflow".
6228 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
6229 * NEWS: Document the new command.
6231 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6233 * config/i386/tm-linux.h (sys_quotactl): Do not define.
6234 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
6235 define for i[[3456]]86-*-linux* native configurations.
6236 * config.in, configure: Regenerate.
6238 2007-05-19 Joel Brobecker <brobecker@adacore.com>
6240 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
6241 a core file. Add comment in the function description.
6243 2007-05-18 Caroline Tice <ctice@apple.com>
6245 * c-valprint.c (c_value_print): If the initialized field of the
6246 value struct is 0, print out "[uninitialized]" before the value.
6247 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
6248 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
6249 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
6250 ctx->initialized appropriately. Verify no location op follows
6252 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
6253 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
6254 set_value_initialized.
6255 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
6256 (decode_locdesc): Add case for DW_OP_GNU_uninit.
6257 * value.c (struct value): New field, initialized.
6258 (allocate_value): Initialize new field.
6259 (set_value_initialized): New function.
6260 (value_initialized): New function.
6261 * value.h (value_initialized): New extern declaration.
6262 (set_value_initialized): Likewise.
6264 2007-05-18 Caroline Tice <ctice@apple.com>
6266 * MAINTAINERS (Write After Approval): Add self.
6268 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6270 * gdbtypes.c (make_reference_type): Preserve the type chain
6271 and set the length of all the variants of the pointer type.
6273 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6275 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
6276 and set the length of all the variants of the pointer type.
6278 2007-05-17 Maciej W. Rozycki <macro@mips.com>
6280 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
6282 (mips_o64_push_dummy_call): Reformat a comment.
6284 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
6286 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
6287 (score_prologue_frame_base_address): Return fp to keep gdb print
6288 local variables correctly when debugging information is stabs.
6290 (score_analyze_prologue): For software watchpoint, fetch all the
6291 instructions from range [startaddr, pc] once and identify them locally
6292 to reduce memory access.
6293 (score_malloc_and_get_memblock, score_free_memblock)
6294 (score_adjust_memblock_ptr): New functions.
6295 (score_fetch_inst): Fetch single instruction or mutiple instructions.
6297 (score_target_can_use_watch, score_stopped_by_watch)
6298 (score_target_insert_watchpoint, score_target_remove_watchpoint)
6299 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
6300 New functions for remote & local hw-watchpoint and hw-breakpoint.
6302 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
6304 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
6305 declarations as well.
6307 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6309 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
6310 * config/arm/tm-embed.h: Delete file.
6312 * arm-tdep.h (arm_software_single_step): Declare.
6313 * arm-tdep.c (arm_software_single_step): Make global.
6314 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
6316 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
6317 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
6318 * armobsd-tdep.c (armobsd_init_abi): ... here ...
6319 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
6321 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
6322 allow defines to be overriden by TM file.
6323 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
6324 change default to {0xbe,0xbe}.
6325 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
6326 arm_obsd_thumb_be_breakpoint): New global variables.
6327 (armobsd_init_abi): Override tdep->thumb_breakpoint and
6328 tdep->thumb_breakpoint_size.
6329 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
6330 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
6331 tdep->thumb_breakpoint_size.
6333 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
6335 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6337 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
6340 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
6341 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
6342 (mips_stack_argsize_string, mips_stack_argsize): Delete.
6343 (mips_abi_regsize): Simplify.
6344 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6345 (mips_n32n64_return_value, mips_o32_push_dummy_call)
6346 (mips_o32_return_value, mips_o64_push_dummy_call)
6347 (mips_o64_return_value): Propogate constant register sizes. Use the
6348 ABI register size instead of mips_stack_argsize.
6349 (mips_dump_tdep): Don't print mips_stack_argsize.
6350 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
6353 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6355 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
6356 * config/mips/tm-linux.h: Delete.
6357 * mips-linux-tdep.c (mips_svr4_so_ops): New.
6358 (mips_linux_in_dynsym_resolve_code): Make static. Use
6359 svr4_in_dynsym_resolve_code.
6360 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
6362 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
6364 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
6365 * Makefile.in (mips-linux-tdep.o): Update.
6366 * solib.c (set_solib_ops): New.
6367 (current_target_so_ops): Update comment.
6368 * solib.h (set_solib_ops): New prototype.
6370 2007-05-16 Chris Dearman <chris@mips.com>
6372 * printcmd.c (do_examine): Fix typos in a comment.
6374 2007-05-16 Richard Sandiford <richard@codesourcery.com>
6376 * configure.ac: Allow sysroots to be relocated under $prefix as
6377 well as $exec_prefix.
6378 * configure: Regenerate.
6380 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6382 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
6383 (offsetof): Do not define.
6384 (find_stub_with_shl_get): Use numerical value 3 instead of
6385 symbolic value TYPE_PROCEDURE.
6387 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6389 * gdb_proc_service.h (paddr_t): Delete typedef.
6390 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
6391 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
6392 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
6393 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
6394 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
6395 * Makefile.in (proc-service.o): Update.
6397 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6399 * Makefile.in (mips-tdep.o): Update.
6400 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
6403 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6405 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
6406 instead of store_typed_address.
6407 * value.c (pack_long): New.
6408 (value_from_longest): Use it.
6409 * value.h (pack_long): New prototype.
6411 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6413 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
6414 DW_EH_PE_signed if appropriate.
6416 2007-05-14 Paul Brook <paul@codesourcery.com>
6417 Daniel Jacobowitz <dan@codesourcery.com>
6419 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
6421 (dwarf_decode_lines): Check for line info without a file.
6423 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6425 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
6428 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6430 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
6432 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
6434 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
6436 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6438 * gdbarch.sh (read_sp): Remove.
6439 * gdbarch.c, gdbarch.h: Regenerate.
6440 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
6442 * avr-tdep.c (avr_read_sp): Remove.
6443 (avr_unwind_sp): New function.
6444 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
6445 * mips-tdep.c (mips_read_sp): Remove.
6446 (mips_unwind_sp): New function.
6447 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
6448 * score-tdep.c (score_read_unsigned_register): Remove.
6449 (score_read_sp): Remove.
6450 (score_unwind_sp): New function.
6451 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
6453 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
6455 * buildsym.c (start_subfile): Handle absolute pathnames
6456 while comparing subfile names.
6458 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6460 * hppa-hpux-tdep.c: Include "regcache.h".
6461 * hppa-linux-tdep.c: Likewise.
6462 * hppa-tdep.c: Include "gdb_stdint.h".
6463 (find_unwind_entry): Cast host pointer to uintptr_t before passing
6465 * Makefile.in: Update dependencies.
6467 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6469 * blockframe.c: Remove obsolete comments.
6470 * alpha-nat.c (fetch_osf_core_registers): Update comment.
6471 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
6472 * hppa-tdep.h (enum hppa_regnum): Likewise.
6473 * mips-tdep.h: Likewise.
6474 * m68hc11-tdep.c: Likewise.
6476 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6478 * inferior.h (read_sp): Remove prototype.
6479 * regcache.c (read_sp): Remove.
6480 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
6481 * infcall.c (call_function_by_hand): Likewise.
6482 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
6484 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6486 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6488 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
6489 instead of read_register and read_register_pid.
6491 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
6492 argument instead of PTID. Use regcache functions instead of
6494 (ia64_linux_insert_watchpoint): Update call.
6495 (ia64_linux_stopped_data_address): Use regcache functions
6496 instead of read_register_pid and write_register_pid.
6498 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6500 * libunwind-frame.h (struct regcache): Add forward declaration.
6501 (libunwind_get_reg_special): Add REGCACHE argument.
6502 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
6503 argument. Pass it to unw_init_remote_p.
6505 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
6506 libunwind_get_reg_special.
6507 (ia64_access_reg): Remove "write" case.
6508 (ia64_access_fpreg): Likewise. Read from next_frame passed
6509 as callback argument instead of from current_regcache.
6510 (ia64_access_rse_reg): Remove "write" case. Read from regcache
6511 passed as callback argument instead of from current_regcache.
6512 (ia64_access_rse_fpreg): New function.
6513 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
6515 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6517 * NEWS: Mention SPU overlay support.
6519 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6521 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
6523 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6525 * breakpoint.c (remove_breakpoint): Do not remove software
6526 breakpoints in unmapped overlay sections.
6528 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6530 * spu-tdep.c: Include "observer.h".
6531 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
6532 (spu_overlay_data): New variable.
6533 (struct spu_overlay_table): New type.
6534 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
6535 spu_overlay_new_objfile): New functions.
6536 (spu_gdbarch_init): Install spu_overlay_update.
6537 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
6538 allocate spu_overlay_data objfile data.
6540 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6542 * gdbarch.sh (overlay_update): New gdbarch function.
6543 (struct obj_section): Add forward declaration.
6544 * gdbarch.c, gdbarch.h: Regenerate.
6546 * symfile.c (simple_overlay_update): Make global.
6547 (target_overlay_update): Remove variable.
6548 (overlay_is_mapped): Call gdbarch_overlay_update instead of
6549 target_overlay_update.
6550 (overlay_load_command): Likewise.
6551 * symfile.h (struct obj_section): Add forward declaration.
6552 (simple_overlay_update): Add prototype.
6554 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
6556 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6558 * observer.sh: Add "struct objfile" forward declaration.
6559 * target.h (deprecated_target_new_objfile_hook): Remove.
6560 * symfile.c (deprecated_target_new_objfile_hook): Remove.
6561 (clear_symtab_users): Call observer_notify_new_objfile.
6562 (symbol_file_add_with_addrs_or_offsets): Likewise.
6563 * rs6000-nat.c: Include "observer.h".
6564 (vmap_ldinfo): Call observer_notify_new_objfile.
6565 (xcoff_relocate_core): Likewise.
6566 * remote.c (remote_new_objfile_chain): Remove.
6567 (remote_new_objfile): Do not call remote_new_objfile_chain.
6568 (_initialize_remote): Use observer_attach_new_objfile.
6569 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
6570 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
6571 (_initialize_tui_hooks): Use observer_attach_new_objfile.
6572 * aix-thread.c: Include "observer.h".
6573 (target_new_objfile_chain): Remove.
6574 (new_objfile): Do not call target_new_objfile_chain.
6575 (_initialize_aix_thread): Use observer_attach_new_objfile.
6576 * hpux-thread.c: Include "observer.h"
6577 (target_new_objfile_chain): Remove.
6578 (hpux_thread_new_objfile): Make static. Do not call
6579 target_new_objfile_chain.
6580 (_initialize_hpux_thread): Use observer_attach_new_objfile.
6581 * linux-thread-db.c: Include "observer.h".
6582 (target_new_objfile_chain): Remove.
6583 (thread_db_new_objfile): Do not call target_new_objfile_chain.
6584 (_initialize_thread_db): Use observer_attach_new_objfile.
6585 * sol-thread.c: Include "observer.h".
6586 (target_new_objfile_chain): Remove.
6587 (sol_thread_new_objfile): Make static. Do not call
6588 target_new_objfile_chain.
6589 (_initialize_sol_thread): Use observer_attach_new_objfile.
6590 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
6591 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
6594 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6596 * gdbarch.sh (remote_translate_xfer_address): Remove.
6597 * gdbarch.h, gdbarch.c: Regenerate.
6598 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
6599 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
6600 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
6601 call gdbarch_remote_translate_xfer_address.
6602 * frv-tdep.c (frv_gdbarch_init): Do not call
6603 set_gdbarch_remote_translate_xfer_address.
6604 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
6605 (ia64_gdbarch_init): Do not install it.
6607 2007-05-11 Bob Wilson <bob.wilson@acm.org>
6609 * NEWS: Mention change in handling the -tui option.
6611 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
6613 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
6616 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6618 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
6619 (breakpoint_inserted_here_p): Call it.
6620 (software_breakpoint_inserted_here_p): Likewise.
6622 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
6624 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
6625 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
6626 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
6627 (inf_ptrace_store_register): Likewise.
6628 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
6629 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
6631 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
6633 * linux-nat.c (linux_trad_target): Adapt parameter list.
6634 * linux-nat.h (linux_trad_target): Likewise.
6636 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
6638 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
6639 (mips_linux_cannot_store_register): Likewise.
6640 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
6641 Return (CORE_ADDR) -1 for registers that cannot be fetched or
6642 stored via ptrace. Use GDBARCH instead of current_gdbarch.
6643 (mips64_linux_register_addr): Likewise.
6644 (mips_linux_register_u_offset): Adapt parameter list. Pass
6645 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
6647 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6648 * config/mips/nm-linux.h: Delete file.
6650 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
6652 * remote.c (remote_detach): Error out if remote can't detach.
6654 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
6656 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
6657 instruction's opcode in the "opcode" variable and declares new
6658 variable "closing_insn".
6660 2007-05-10 Chris Dearman <chris@mips.com>
6661 Maciej W. Rozycki <macro@mips.com>
6663 * cli/cli-setshow.c (do_setshow_command): Remove trailing
6664 whitespace when setting a var_filename.
6666 2007-05-09 Bob Wilson <bob.wilson@acm.org>
6668 * main.c (captured_main): Recognize -tui option and print an error
6669 message when the TUI is not configured.
6671 2007-05-09 Andreas Schwab <schwab@suse.de>
6673 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
6674 set removed members.
6675 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
6677 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6679 * gdbarch.sh (deprecated_store_struct_return): Remove.
6680 * gdbarch.c, gdbarch.h: Regenerate.
6681 * frv-tdep.c (frv_store_struct_return): Remove.
6682 (frv_gdbarch_init): Do not install it.
6684 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6686 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
6687 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
6688 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
6690 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6692 * spu-linux-nat.c: Include "gdb_stdint.h".
6693 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
6694 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
6695 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
6696 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
6697 (spu_child_wait): Mark up string for translation.
6699 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
6700 Luis Machado <luisgpm@br.ibm.com>
6702 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
6703 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
6704 BC_INSTRUCTION): Define.
6705 (deal_with_atomic_sequence): New function.
6706 (rs6000_software_single_step): Call deal_with_atomic_sequence.
6707 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
6708 gdbarch_software_single_step routine.
6710 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
6712 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
6713 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
6714 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
6715 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
6716 spu_child_post_attach, spu_fetch_inferior_registers,
6717 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
6718 memory addresses as ULONGEST, not CORE_ADDR.
6720 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
6722 * gdbarch.sh: Add skip_permanent_breakpoint callback.
6723 * gdbarch.h, gdbarch.c: Regenerate.
6725 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
6726 (resume): Call gdbarch_skip_permanent_breakpoint instead of
6727 SKIP_PERMANENT_BREAKPOINT. Inline default case.
6729 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
6730 Add REGCACHE argument. Use it instead of read/write_register.
6731 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
6733 * config/pa/tm-hppah.h: Delete file.
6734 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
6735 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
6737 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
6739 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
6740 * NEWS: Mention improved C++ thunk support.
6741 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
6742 * cp-abi.c (cplus_skip_trampoline): New.
6743 * cp-abi.h (cplus_skip_trampoline): New prototype.
6744 (struct cp_abi_ops): Add skip_trampoline member.
6745 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
6746 (init_gnuv3_ops): Set skip_trampoline.
6748 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
6750 * rs6000-tdep.c (struct frame_extra_info): Delete.
6752 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
6754 * linux-thread-db.c: Update some FIXME comments.
6755 (thread_db_xfer_partial): Delete.
6756 (init_thread_db_ops): Do not set to_xfer_partial.
6758 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6760 * inftarg.c, infptrace.c: Remove files.
6761 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
6762 (inftarg.o, infptrace.o): Remove rules.
6763 * gdbcore.h (register_addr): Remove prototype.
6764 * inferior.h (kill_inferior, store_inferior_registers,
6765 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
6766 call_ptrace, pre_fork_inferior): Remove prototypes.
6767 * target.h (child_xfer_memory, child_pid_to_exec_file,
6768 child_core_file_to_sym_file, child_post_attach,
6769 child_post_startup_inferior, child_acknowledge_created_inferior,
6770 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
6771 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
6772 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
6773 child_follow_fork, child_reported_exec_events_per_exec_call,
6774 child_has_exited, child_thread_alive): Remove prototypes.
6776 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6778 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
6779 (sparc_store_inferior_registers): Likewise.
6780 * sparc-nat.c (fetch_inferior_registers): Rename to ...
6781 (sparc_fetch_inferior_registers): ... this.
6782 (store_inferior_registers): Rename to ...
6783 (sparc_store_inferior_registers): ... this.
6784 (sparc_target): Update callback names.
6785 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
6786 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
6788 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6790 * linux-nat.c (child_post_attach): Rename to ...
6791 (linux_child_post_attach): ... this. Make static.
6792 (child_follow_fork): Rename to ...
6793 (linux_child_follow_fork): ... this. Make static.
6794 (child_insert_fork_catchpoint): Rename to ...
6795 (linux_child_insert_fork_catchpoint): ... this. Make static.
6796 (child_insert_vfork_catchpoint): Rename to ...
6797 (linux_child_insert_vfork_catchpoint): ... this. Make static.
6798 (child_insert_exec_catchpoint): Rename to ...
6799 (linux_child_insert_exec_catchpoint): ... this. Make static.
6800 (child_pid_to_exec_file): Rename to ...
6801 (linux_child_pid_to_exec_file): ... this. Make static.
6803 (linux_handle_extended_wait): Update call.
6804 (linux_xfer_partial): Update callback routine names.
6806 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6808 * configure.host (alpha*-*-osf[12]*): Remove support.
6809 * NEWS: Mention removed configurations.
6811 * config/alpha/alpha-osf1.mh: Delete file.
6812 * config/alpha/alpha-osf2.mh: Delete file.
6813 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
6815 * config/alpha/nm-osf.h: Delete file.
6816 * config/alpha/nm-osf2.h: Delete file.
6817 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
6818 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
6819 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
6821 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
6822 (register_addr, kernel_u_size): Remove.
6823 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
6825 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6827 * regcache.c (regcache_invalidate): New function.
6828 (register_cached): Remove.
6829 (set_register_cached): Remove.
6830 (deprecated_registers_fetched): Remove.
6831 (registers_changed): Use regcache_invalidate instead
6832 of set_register_cached.
6833 (regcache_raw_read): Update comment.
6835 * regcache.h (regcache_invalidate): Add prototype.
6836 (register_cached): Remove.
6837 (set_register_cached): Remove.
6838 (deprecated_registers_fetched): Remove.
6840 * findvar.c (value_of_register): Do not call register_cached.
6841 * frame.c (frame_register): Likewise.
6842 * tui/tui-regs.c (tui_get_register): Likewise.
6844 * remote.c (fetch_register_using_p): Do not call set_register_cached.
6845 (process_g_packet): Likewise.
6846 (remote_fetch_registers): Likewise.
6847 * remote-sim.c (gdbsim_fetch_register): Likewise.
6848 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
6849 by regcache_invalidate.
6850 (mt_pseudo_register_write): Likewise.
6851 * sh-tdep.c (sh_pseudo_register_write): Likewise.
6853 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
6854 call by loop over regcache_raw_supply (..., NULL).
6856 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6858 * target.h (struct target_ops): Add REGCACHE parameter to
6859 to_prepare_to_store.
6860 (target_prepare_to_store): Likewise.
6861 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
6862 (update_current_target): Adapt prepare_to_store de_fault rule.
6864 * regcache.c (regcache_raw_write): Pass regcache to
6865 target_prepare_to_store.
6867 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
6868 Do not call CHILD_PREPARE_TO_STORE.
6869 * gnu-nat.c (gnu_prepare_to_store): Likewise.
6870 * procfs.c (procfs_prepare_to_store): Likewise.
6872 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
6873 * go32-nat.c (go32_prepare_to_store): Likewise.
6874 * monitor.c (monitor_prepare_to_store): Likewise.
6875 * nto-procfs.c (procfs_prepare_to_store): Likewise.
6876 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
6877 * remote-mips.c (mips_prepare_to_store): Likewise.
6878 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
6879 * win32-nat.c (win32_prepare_to_store): Likewise.
6881 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
6882 Use it instead of current_regcache.
6884 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
6885 parameter. Pass it on to next target.
6886 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
6888 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6890 * target.h (struct regcache): Add forward declaration.
6891 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
6892 and to_store_registers target operations.
6893 (target_fetch_registers, target_store_registers): Update.
6895 * regcache.c (regcache_raw_read): Replace register_cached by
6896 regcache_valid_p. Pass regcache to target_fetch_registers.
6897 (regcache_raw_write): Pass regcache to target_store_registers.
6899 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
6900 store_regs, store_wmmx_regs): Replace register_cached by
6903 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
6904 to target_fetch_registers calls.
6905 * corelow.c (core_open): Likewise.
6906 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
6907 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
6908 ps_lsetfpregs): Likewise.
6909 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
6910 ps_lsetfpregs): Likewise.
6911 * win32-nat.c (win32_resume): Likewise.
6912 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
6913 to target_store_registers call.
6914 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6916 * inferior.h (store_inferior_registers): Update prototype.
6917 (fetch_inferior_registers): Likewise.
6918 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
6919 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
6920 Update function pointer signatures.
6922 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
6923 use it instead of current_regcache, update calls.
6924 (aix_thread_store_registers): Likewise.
6925 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
6926 (alphabsd_store_inferior_registers): Likewise.
6927 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
6928 (amd64bsd_store_inferior_registers): Likewise.
6929 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
6930 (amd64_linux_store_inferior_registers): Likewise.
6931 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
6932 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
6933 fetch_wmmx_regs, store_wmmx_regs): Likewise.
6934 (arm_linux_fetch_inferior_registers): Likewise.
6935 (arm_linux_store_inferior_registers): Likewise.
6936 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
6937 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
6938 (store_register, store_regs, store_fp_register, store_fp_regs,
6939 armnbsd_store_registers): Likewise.
6940 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
6941 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
6942 (bsd_uthread_store_registers): Likewise.
6943 * corelow.c (get_core_registers): Likewise.
6944 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
6945 go32_store_registers): Likewise.
6946 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
6947 (hppabsd_store_registers): Likewise.
6948 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
6949 (hppa_hpux_fetch_inferior_registers): Likewise.
6950 (hppa_hpux_store_register): Likewise.
6951 (hppa_hpux_store_inferior_registers): Likewise.
6952 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
6953 (hppa_linux_fetch_inferior_registers): Likewise.
6954 (hppa_linux_store_inferior_registers): Likewise.
6955 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
6956 (hpux_thread_store_registers): Likewise.
6957 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
6958 (i386bsd_store_inferior_registers): Likewise.
6959 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
6960 gnu_store_registers): Likewise.
6961 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
6962 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
6964 (i386_linux_fetch_inferior_registers): Likewise.
6965 (i386_linux_store_inferior_registers): Likewise.
6966 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
6967 (ia64_linux_fetch_registers): Likewise.
6968 (ia64_linux_store_register): Likewise.
6969 (ia64_linux_store_registers): Likewise.
6970 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
6971 (inf_child_store_inferior_registers): Likewise.
6972 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
6973 (inf_ptrace_fetch_registers): Likewise.
6974 (inf_ptrace_store_register): Likewise.
6975 (inf_ptrace_store_registers): Likewise.
6976 * infptrace.c (fetch_register, store_register): Likewise.
6977 (fetch_inferior_registers, store_inferior_registers): Likewise.
6978 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
6979 (m32r_linux_fetch_inferior_registers): Likewise.
6980 (m32r_linux_store_inferior_registers): Likewise.
6981 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
6982 (m68kbsd_store_inferior_registers): Likewise.
6983 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
6984 store_register, old_store_inferior_registers, fetch_regs, store_regs,
6985 fetch_fpregs, store_fpregs): Likewise.
6986 (m68k_linux_fetch_inferior_registers): Likewise.
6987 (m68k_linux_store_inferior_registers): Likewise.
6988 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
6989 (m88kbsd_store_inferior_registers): Likewise.
6990 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
6991 (mips64obsd_store_inferior_registers): Likewise.
6992 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
6993 (mips64_linux_regsets_store_registers): Likewise.
6994 (mips64_linux_fetch_registers): Likewise.
6995 (mips64_linux_store_registers): Likewise.
6996 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
6997 (mipsnbsd_store_inferior_registers): Likewise.
6998 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
6999 (monitor_fetch_registers, monitor_store_registers): Likewise.
7000 * nto-procfs.c (procfs_fetch_registers): Likewise.
7001 (procfs_store_registers): Likewise.
7002 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
7003 fetch_register, supply_vrregset, fetch_altivec_registers,
7004 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
7005 (store_altivec_register, store_spe_register, store_register,
7006 fill_vrregset, store_altivec_registers, store_ppc_registers,
7007 ppc_linux_store_inferior_registers): Likewise.
7008 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
7009 (ppcnbsd_store_inferior_registers): Likewise.
7010 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
7011 (ppcobsd_store_registers): Likewise.
7012 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
7013 * remote.c (fetch_register_using_p, process_g_packet,
7014 fetch_registers_using_g, remote_fetch_registers): Likewise.
7015 (store_register_using_P, store_registers_using_G,
7016 remote_store_registers): Likewise.
7017 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
7018 m32r_store_register, m32r_store_register): Likewise.
7019 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
7020 * remote-sim.c (gdbsim_fetch_register): Likewise.
7021 (gdbsim_store_register): Likewise.
7022 * rs6000-nat.c (fetch_register, store_register): Likewise.
7023 (rs6000_fetch_inferior_registers): Likewise.
7024 (rs6000_store_inferior_registers): Likewise.
7025 * s390-nat.c (fetch_regs, store_regs): Likewise.
7026 (fetch_fpregs, store_fpregs): Likewise.
7027 (s390_linux_fetch_inferior_registers): Likewise.
7028 (s390_linux_store_inferior_registers): Likewise.
7029 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
7030 (shnbsd_store_inferior_registers): Likewise.
7031 * sol-thread.c (sol_thread_fetch_registers): Likewise.
7032 (sol_thread_store_registers): Likewise.
7033 * sparc-nat.c (fetch_inferior_registers): Likewise.
7034 (store_inferior_registers): Likewise.
7035 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
7036 (spu_store_inferior_registers): Likewise.
7037 * target.c (debug_print_register): Likewise.
7038 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
7039 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
7040 (vaxbsd_store_inferior_registers): Likewise.
7041 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
7042 (win32_fetch_inferior_registers): Likewise.
7043 (win32_store_inferior_registers): Likewise.
7045 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7047 * gdbcore.h (struct regcache): Add forward declaration.
7048 (struct core_fns): Add REGCACHE argument to core_read_registers
7050 * corelow.c (get_core_register_section): Add REGCACHE argument,
7051 use it instead of current_regcache, pass it to core_read_registers
7053 (get_core_registers): Add current_regcache as parameter to
7054 get_core_register_section calls.
7056 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
7057 use it instead of current_regcache.
7058 * armnbsd-nat.c (fetch_core_registers): Likewise.
7059 (fetch_elfcore_registers): Likewise.
7060 * core-regset.c (fetch_core_registers): Likewise.
7061 * cris-tdep.c (fetch_core_registers): Likewise.
7062 * irix5-nat.c (fetch_core_registers): Likewise.
7063 * m68klinux-nat.c (fetch_core_registers): Likewise.
7064 * mips-linux-tdep.c (fetch_core_registers): Likewise.
7065 * win32-nat.c (fetch_elf_core_registers): Likewise.
7067 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7069 * gregset.h (struct regcache): Add forward declaration.
7070 (supply_gregset): Add REGCACHE parameter, make GREGS const.
7071 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
7072 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
7073 (fill_gregset): Add REGCACHE parameter.
7074 (fill_fpregset): Likewise.
7075 (fill_fpxregset): Likewise.
7077 Update all definitions accordingly:
7078 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
7079 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
7080 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
7081 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
7082 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
7083 (supply_gregset): Add REGCACHE parameter, use it instead of
7084 current_regcache. Make GREGSETP parameter const, adapt casts.
7085 (supply_fpregset): Add REGCACHE parameter, use it instead of
7086 current_regcache. Make FPREGSETP parameter const, adapt casts.
7087 (fill_gregset): Add REGCACHE parameter, use it instead of
7089 (fill_fpregset): Likewise.
7091 Update all callers to pass in current_regcache as the new argument:
7092 * core-regset.c: Include "regcache.h".
7093 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
7094 * procfs.c: Include "regcache.h".
7095 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
7096 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
7097 (procfs_do_thread_registers): Likewise.
7098 (procfs_make_note_section): Likewise.
7099 * proc-service.c: Include "regcache.h".
7100 (ps_lgetregs): Update fill_gregset call.
7101 (ps_lsetregs): Update supply_gregset call.
7102 (ps_lgetfpregs): Update fill_fpregset call.
7103 (ps_lsetfpregs): Update supply_fpregset call.
7104 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
7105 supply_fpregset calls.
7106 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
7107 (ps_lgetregs): Update fill_gregset call.
7108 (ps_lsetregs): Update supply_gregset call.
7109 (ps_lgetfpregs): Update fill_fpregset call.
7110 (ps_lsetfpregs): Update supply_fpregset call.
7112 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
7113 fill_fpregset, and fill_fpxregset calls.
7114 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
7115 (store_regs): Update fill_gregset call.
7116 (fetch_fpregs): Update supply_fpregset call.
7117 (store_fpregs): Update fill_fpregset call.
7118 (fetch_fpxregs): Update supply_fpxregset call.
7119 (store_fpxregs): Update fill_fpxregset call.
7120 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
7121 (store_regs): Update fill_gregset call.
7122 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
7123 (store_regs): Update fill_gregset call.
7124 (fetch_fpregs): Update supply_fpregset call.
7125 (store_fpregs): Update fill_fpregset call.
7126 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
7127 * s390-nat.c (fetch_regs): Update supply_gregset call.
7128 (store_regs): Update fill_gregset call.
7129 (fetch_fpregs): Update supply_fpregset call.
7130 (store_fpregs): Update fill_fpregset call.
7132 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
7135 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7137 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
7138 it instead of current_regcache.
7139 (parse_register_dump): Add REGCACHE parameter, pass it to
7140 supply_register callback.
7141 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
7142 parse_register_dump.
7143 (monitor_dump_regs): Add REGCACHE parameter, pass it to
7144 parse_register_dump and dumpregs callback.
7145 (monitor_wait): Pass current_regcache to parse_register_dump and
7147 (monitor_fetch_register): Pass current_regcache to
7148 monitor_supply_register.
7149 (monitor_fetch_registers): Pass current_regcache to
7151 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
7152 supply_register and dumpregs callbacks.
7153 (monitor_supply_register, monitor_dump_reg_block): Update
7155 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
7156 it to monitor_supply_register.
7157 * dink32-rom.c (dink32_supply_register): Likewise.
7158 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
7159 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
7160 instead of current_regcache.
7162 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7164 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
7165 Add REGCACHE parameter. Use it instead of current_regcache.
7166 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
7167 i386nto_supply_gregset and i386nto_supply_fpregset.
7168 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
7169 of current_regcache.
7171 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
7172 nto_supply_ helper functions.
7173 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
7175 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
7177 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
7178 supply_greget, supply_fpregset, supply_altregset, supply_regset,
7179 and regset_fill member function pointers.
7180 (nto_dummy_supply_regset): Adapt prototype.
7182 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7184 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
7185 instead of current_regcache. Make REGS const.
7186 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
7187 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
7189 * shnbsd-nat.c: Include "regcache.h".
7190 (shnbsd_fetch_inferior_registers): Pass current_regcache to
7192 (shnbsd_store_inferior_registers): Pass current_regcache to
7194 * Makefile.in (shbsd-nat.o): Update dependencies.
7196 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7198 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
7199 instead of current_regcache.
7200 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
7201 Make GREGSETP const, remove superfluous casts.
7202 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7203 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
7205 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7206 (supply_64bit_reg): Likewise
7207 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
7208 Make GREGSETP const, adapt casts accordingly.
7209 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7210 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
7212 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7213 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
7215 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
7216 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
7217 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
7219 * mips-linux-nat.c: Include "regcache.h".
7220 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7221 current_regcache to mips{64}_(supply|fill)_ helper routines.
7222 (mips64_linux_regsets_fetch_registers): Likewise.
7223 (mips64_linux_regsets_store_registers): Likewise.
7225 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
7226 REGCACHE argument; replace current_regcache. Make REGS const.
7227 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
7228 replace current_regcache.
7229 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
7230 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
7231 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
7232 mipsnbsd_store_inferior_registers): Pass current_regcache to
7233 mipsnbsd_(supply|fill)_... helper routines.
7235 * Makefile.in (mips-linux-nat.o): Update dependencies.
7237 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7239 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
7240 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
7241 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
7242 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
7243 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
7244 * i386gnu-nat.c (store_fpregs): Likewise.
7245 * i386v4-nat.c (fill_fpregset): Likewise.
7246 * go32-nat.c (store_register, go32_store_registers): Likewise.
7248 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7250 * cris-tdep.c (supply_gregset): Rename to ...
7251 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
7252 instead of current_regcache.
7253 (fetch_core_registers): Update call. Pass current_regcache.
7255 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7257 * arnmnbsd-nat.c (supply_gregset): Rename to ...
7258 (arm_supply_gregset): ... this. Add REGCACHE parameter.
7259 Use it instead of current_regcache.
7260 (supply_fparegset): Rename to ...
7261 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
7262 Use it instead of current_regcache.
7263 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
7264 (fetch_core_registers, fetch_elfcore_registers): Likewise.
7266 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7268 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
7269 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
7270 use it instead of current_regcache.
7271 * alpha-tdep.h (struct regcache): Add forward declaration.
7272 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
7273 alpha_fill_fp_regs): Update prototypes.
7275 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
7276 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
7277 * alpha-linux-nat.c: Include "regcache.h".
7278 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7279 current_regcache to alpha_supply/fill_ routines.
7281 * alphabsd-tdep.c: Include "regcache.h".
7282 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
7283 pass it to alpha_supply_ routines. Make REGS const.
7284 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
7285 pass it to alpha_fill_ routines.
7286 * alphabsd-tdep.h (struct regcache): Add forward declaration.
7287 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
7288 alphabsd_fill_fpreg): Update prototypes.
7290 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7291 fill_fpregset, alphabsd_fetch_inferior_registers,
7292 alphabsd_store_inferior_registers): Pass current_regcache to
7293 alphabsd_supply/fill_ routines.
7295 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
7298 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7300 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
7301 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
7302 instead of current_regcache.
7303 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
7304 REGCACHE parameter, pass it to supply_ routines.
7305 (aix_thread_fetch_registers): Pass current_regcache to
7306 fetch_regs_user_thread and fetch_regs_kernel_thread.
7308 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
7309 Add REGCACHE parameter, use it instead of current_regcache.
7310 Call regcache_valid_p instead of register_cached.
7311 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
7312 Also, pass REGCACHE to fill_ routines.
7313 (aix_thread_store_registers): Pass current_regcache to
7314 store_regs_user_thread and store_regs_kernel_thread.
7316 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7318 * m32r-linux-nat.c (supply_gregset): Do not modify contents
7319 pointed to by GREGSETP.
7321 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7323 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
7324 of regcache_raw_read_signed.
7325 (fill_fpregset): Use regcache_raw_collect instead of
7328 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7330 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
7331 point arguments, test explicitly for use of the EABI32 ABI
7332 instead of inferring this condition from tests on register
7335 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7337 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
7338 prior to allocating its location.
7340 2007-05-02 Maciej W. Rozycki <macro@mips.com>
7342 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
7343 based on mips_abi_regsize() whose result is known in advance.
7344 (mips_o64_push_dummy_call): Likewise.
7346 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
7348 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
7349 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
7351 * mips-linux-nat.c: Include "gregset.h".
7352 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
7353 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
7354 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
7355 fill_fpregset): Move to mips-linux-nat.c.
7357 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
7359 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7361 * regcache.c (deprecated_read_register_gen): Remove, inline ...
7362 (read_register): ... here.
7363 (deprecated_write_register_gen): Remove, inline ...
7364 (write_register): ... here.
7365 * regcache.h (deprecated_read_register_gen): Remove prototype.
7366 (deprecated_write_register_gen): Likewise.
7368 * remote-sim.c (gdbsim_store_register): Replace call to
7369 deprecated_read_register_gen with regcache_cooked_read.
7370 * target.c (debug_print_register): Replace calls to
7371 deprecated_read_register_gen and read_register with
7372 regcache_cooked_read.
7374 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7376 * hpux-thread.c (hpux_thread_store_registers): Use
7377 regcache_raw_collect, not regcache_raw_read.
7378 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
7379 not regcache_raw_write.
7381 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7383 * gdbarch.sh: Remove deprecated_register_byte.
7384 * gdbarch.c, gdbarch.h: Regenerate.
7385 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
7386 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
7388 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
7389 * regcache.c (regcache_valid_p): Allow to query cooked registers in
7390 read-only register caches. Make REGCACHE parameter const.
7391 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
7393 * mi/mi-main.c (old_regs): Remove.
7394 (mi_setup_architecture_data, _initialize_mi_main): Remove.
7395 (register_changed_p): Reimplement to compare two register caches.
7396 (mi_cmd_data_list_changed_registers): Update caller.
7397 * mi/mi-main.h (mi_setup_architecture_data): Remove.
7398 * mi/mi-interp.c (mi_interpreter_init): Do not call
7399 mi_setup_architecture_data.
7401 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7403 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
7404 inline definition at the places the macros are used.
7405 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
7407 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7409 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
7411 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
7412 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
7413 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
7414 (rs6000_aix_regset_from_core_section): New function.
7415 (rs6000_aix_init_osabi): Register it.
7416 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
7417 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
7418 * rs6000-nat.c (CoreRegs): Do not define type.
7419 (fetch_core_registers, rs6000_core_fns): Remove.
7420 (_initialize_core_rs6000): Do not register it. Rename to ...
7421 (_initialize_rs6000_nat): ... this.
7422 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
7424 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7426 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
7427 (dwarf2_read_address): Sign extend return address as required by
7428 target architecture.
7430 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7432 * solib-frv.c (lm_base): Bail out if the main executable has
7435 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7437 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
7438 of FPCR register in fpregset.
7440 2007-04-27 Maciej W. Rozycki <macro@mips.com>
7442 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
7443 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
7445 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7447 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
7448 * rs6000-nat.c (rs6000_wait): New function.
7449 (_initialize_core_rs6000): Install it as to_wait target method.
7450 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
7452 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7454 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
7455 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
7456 * rs6000-nat.c (super_create_inferior): New variable.
7457 (rs6000_create_inferior): Make static. Adapt argument list. Call
7458 original version of create_inferior via super_create_inferior.
7459 (_initialize_core_rs6000): Install to_create_inferior target method.
7461 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7463 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
7464 (aix_thread_xfer_partial): ... this.
7465 (init_aix_thread_ops): Install to_xfer_partial instead
7466 of deprecated_xfer_memory target method.
7468 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
7469 and inftarg.o, add inf-ptrace.o.
7470 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
7471 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
7472 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
7473 (fetch_inferior_registers): Rename to ...
7474 (rs6000_fetch_inferior_registers): ... this. Make static.
7475 (store_inferior_registers): Rename to ...
7476 (rs6000_store_inferior_registers): ... this. Make static.
7477 (read_word, child_xfer_memory): Remove.
7478 (rs6000_xfer_partial): New function.
7479 (kernel_u_size): Remove.
7480 (_initialize_core_rs6000): Add inf_ptrace-based target.
7481 * Makefile.in (rs6000-nat.o): Update dependencies.
7483 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7485 * inf-ptrace.c: Include "gdb_stdint.h".
7486 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
7487 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
7488 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
7489 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
7490 (inf_ptrace_store_register): Likewise.
7491 * Makefile.in (inf-ptrace.o): Update dependencies.
7493 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7495 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
7496 * configure.tgt (rs6000-*-*): Likewise.
7497 * config/rs6000/aix4.mh: Delete file.
7498 * config/rs6000/aix4.mt: Delete file.
7499 * config/rs6000/rs6000.mh: Delete file.
7500 * config/rs6000/rs6000.mt: Delete file.
7502 * config/powerpc/nm-aix.h: Delete file.
7503 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
7505 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7507 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
7508 Remove obsolete part of comment.
7509 (store_regs_user_thread): Use uint32_t temporaries when calling
7511 (store_regs_kernel_thread): Likewise. Add assertion to verify
7512 correct size of struct ptsprs members.
7513 (aix_thread_xfer_memory): Fix type of myaddr.
7514 (aix_thread_extra_thread_info): Fix compiler warning.
7515 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
7516 (fetch_register, store_register): Adapt callers.
7518 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7520 * vec.h (vec_free): Rename to vec_free_. Adapt users.
7522 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7524 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
7526 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
7527 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
7528 (alpha_linux_regset_from_core_section): New function.
7529 (alpha_linux_init_abi): Install it.
7530 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
7531 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
7532 <sys/procfs.h>, and "gregset.h".
7533 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
7534 Move from config/alpha/nm-linux.h.
7535 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
7537 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
7538 * alpha-nat.c: Remove #ifdef __linux__ section.
7539 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
7540 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
7541 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
7542 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
7543 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
7544 (NATDEPFILES): Remove alpha-nat.o.
7545 * config/alpha/nm-linux.h: Delete file.
7546 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
7547 * Makefile.in (alpha-linux-nat.o): Update dependencies.
7548 (alpha-linux-tdep.o): Likewise.
7550 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7552 * mips-linux-nat.c: No longer include "gdbcore.h".
7553 (mips_linux_register_addr): Move from mips-linux-tdep.c.
7554 (mips64_linux_register_addr): Likewise.
7555 (mips_linux_register_u_offset): Call mips_linux_register_addr or
7556 mips64_linux_register_addr instead of register_addr.
7557 * mips-linux-tdep.c (mips_linux_register_addr,
7558 mips64_linux_register_addr): Move to mips-linux-nat.c.
7559 (register_addr): Remove.
7560 (register_addr_data, init_register_addr_data): Remove.
7561 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
7562 (set_mips_linux_register_addr): Remove.
7563 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
7564 * Makefile.in (mips-linux-nat.o): Update dependencies.
7566 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7568 * linux-nat.c (linux_register_u_offset): Remove.
7569 (linux_target_install_ops): New function.
7570 (linux_target): Use it.
7571 (linux_trad_target): New function.
7572 * linux-nat.h (linux_trad_target): Declare.
7574 * alpha-linux-nat.c: Include "gdbcore.h".
7575 (alpha_linux_register_u_offset): New function.
7576 (_initialize_alpha_linux_nat): Use linux_trad_target.
7578 * mips-linux-nat.c: Include "gdbcore.h".
7579 (mips_linux_register_u_offset): New function.
7580 (_initialize_mips_linux_nat): Use linux_trad_target.
7582 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7583 * config/arm/nm-linux.h: Delete file.
7585 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
7586 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
7588 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7589 * config/ia64/nm-linux.h: Delete file.
7591 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7592 * config/m32r/nm-linux.h: Delete file.
7594 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7595 * config/m68k/nm-linux.h: Delete file.
7597 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7598 * config/pa/nm-linux.h: Delete file.
7600 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7601 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
7602 * config/powerpc/nm-linux.h: Delete file.
7604 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
7605 * config/s390/nm-linux.h: Delete file.
7607 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7608 * config/sparc/linux64.mh (NAT_FILE): Likewise.
7609 * config/sparc/nm-linux.h: Delete file.
7611 * Makefile.in (alpha-linux-nat.o): Update dependencies.
7612 (mips-linux-nat.o): Likewise.
7614 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7616 * core-aout.c: Delete file.
7617 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
7618 (core-aout.o): Delete rule.
7619 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
7621 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
7623 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
7624 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
7625 KERNEL_U_ADDR): Remove.
7627 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
7628 (cannot_fetch_register, cannot_store_register): Remove.
7629 (fetch_register): Inline cannot_fetch_register and register_addr.
7630 (store_register): Inline cannot_store_register and register_addr.
7631 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
7632 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
7633 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
7636 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
7637 (fetch_register): Inline register_addr.
7638 (store_register): Inline register_addr.
7639 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
7640 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
7641 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
7643 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
7644 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
7645 REGISTER_U_ADDR): Remove.
7647 * hppa-linux-nat.c (register_addr): Rename to ...
7648 (hppa_linux_register_addr): ... this. Make static.
7649 (fetch_register, store_register): Adapt callers.
7650 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
7652 * ppc-linux-nat.c (kernel_u_size): Remove.
7653 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
7655 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
7656 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
7658 * config/vax/nm-vax.h: Delete file.
7660 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
7662 * MAINTAINERS (Write After Approval): Add myself.
7664 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
7666 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
7667 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
7668 (m68k_linux_sigcontext_reg_offset): Fix typo.
7669 (target_is_uclinux): New.
7670 (m68k_linux_inferior_created): New.
7671 (m68k_linux_get_sigtramp_info): Check for uClinux or
7672 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
7674 (_initialize_m68k_linux_tdep): Register
7675 m68k_linux_inferior_created.
7677 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
7679 * win32-nat.c (win32_detach): Remove delete_command call.
7680 Resume inferior with win32_resume instead of win32_continue.
7682 2007-04-19 Jerome Guitton <guitton@adacore.com>
7684 * ser-mingw.c (fd_is_file): New function.
7685 (file_select_thread): New function.
7686 (ser_console_wait_handle): Add special handling for files.
7688 2007-04-18 Denis Pilat <denis.pilat@st.com>
7690 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
7691 when missing from DW_TAG_subrange_type. Remove the handling of null
7692 return from die_type.
7694 2007-04-18 Maciej W. Rozycki <macro@mips.com>
7696 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
7697 change to rearrange some brackets.
7698 (mips_n32n64_push_dummy_call): Likewise.
7699 (mips_o32_push_dummy_call): Likewise.
7700 (mips_o64_push_dummy_call): Likewise.
7702 2007-04-18 Denis Pilat <denis.pilat@st.com>
7704 * infcmd.c (post_create_inferior): Start with a call to
7705 target_terminal_ours.
7707 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7709 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
7711 (mips_n32n64_push_dummy_call): Likewise. Reformat some
7713 (mips_o32_push_dummy_call): Likewise.
7714 (mips_o64_push_dummy_call): Likewise.
7716 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7718 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
7721 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7723 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
7725 (mips_o32_push_dummy_call): Likewise.
7727 2007-04-17 Andreas Schwab <schwab@suse.de>
7729 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
7730 sal to be bigger than the end of the function.
7732 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7733 Nigel Stephens <nigel@mips.com>
7735 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
7736 argument alignment requirements when calculating stack space
7737 required. When aligning an arg register to eight bytes
7738 boundary, align stack_offset too. Write floating-point
7739 arguments to the appropriate integer register if need go there.
7740 (mips_o64_push_dummy_call): Likewise.
7742 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
7744 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
7745 "sig" arguments, add "regcache" argument.
7746 * gdbarch.c, gdbarch.h: Regenerate.
7748 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
7749 (handle_inferior_event): Call remove_single_step_breakpoints directly
7750 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
7752 * alpha-tdep.c (alpha_software_single_step): Update argument list.
7753 Remove handling of !insert_breakpoints_p case.
7754 * arm-tdep.c (arm_software_single_step): Likewise.
7755 * cris-tdep.c (cris_software_single_step): Likewise.
7756 * mips-tdep.c (mips_software_single_step): Likewise.
7757 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
7758 * sparc-tdep.c (sparc_software_single_step): Likewise.
7759 * spu-tdep.c (spu_software_single_step): Likewise.
7761 * alpha-tdep.h (alpha_software_single_step): Update prototype.
7762 * mips-tdep.h (mips_software_single_step): Likewise.
7763 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
7764 * sparc-tdep.h (sparc_software_single_step): Likewise.
7766 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
7768 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
7769 when removing single-step breakpoints.
7771 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
7773 * varobj.h (varobj_set_frozen): New
7774 (varobj_get_frozen): New.
7775 (varobj_update): New parameter explicit.
7776 * varobj.c (struct varobj): New fields frozen
7778 (varobj_set_frozen, varobj_get_frozen): New.
7779 (install_new_value): Don't fetch values for
7780 frozen variable object, or children thereof. Allow
7781 a frozen variable object to have non-fetched value.
7782 (varobj_update): Allow updating child variables.
7783 Don't traverse frozen children.
7784 (new_variable): Initialize the frozen field.
7785 (c_value_of_variable): Return NULL for frozen
7786 variable without any value yet.
7787 * mi/mi-cmd-var.c (varobj_update_one): New parameter
7789 (mi_cmd_var_create): Output the 'frozen' field,
7790 as soon as testsuite is adjusted to expect that field.
7791 (mi_cmd_var_set_frozen): New.
7792 (mi_cmd_var_update): Pass the 'explicit' parameter to
7794 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
7795 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
7797 2007-04-13 Paul Brook <paul@codesourcery.com>
7799 * target-descriptions.c (tdesc_named_type): Add ieee_single and
7801 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
7803 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7805 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
7806 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
7807 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
7808 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
7809 * Makefile.in: Remove references to deleted files.
7810 * README: Do not mention deleted ROM monitor interfaces.
7811 * defs.h (enum language): Delete language_scm.
7812 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
7813 (dump_subexp_body_standard): Likewise.
7814 * parse.c (operator_length_standard): Likewise.
7815 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
7816 * remote-mips.c: Do not include remote-utils.h.
7817 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
7819 * value.c: Do not include scm-lang.h.
7820 (unpack_long): Delete scm_unpack call.
7821 * config/h8300/h8300.mt, config/mips/embed.mt,
7822 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
7823 config/sh/embed.mt, config/sh/linux.mt: Remove references to
7825 * NEWS: Mention removed files.
7827 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7829 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
7830 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
7832 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7834 * NEWS: Mention removal of HP aCC support.
7836 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7838 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
7839 first entry for static executables.
7840 (breakpoint_addr): Delete unused variable.
7841 (elf_locate_base): Search for _r_debug in static executables.
7842 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
7845 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7847 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
7848 (bpstat_what, print_one_breakpoint, allocate_bp_location)
7849 (mention): Remove bp_through_sigtramp support.
7850 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
7852 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7854 * breakpoint.c (bpstat_what): Give step-resume higher priority than
7857 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7859 * infrun.c: Doc fixes.
7860 (handle_inferior_event): Clarify debug message.
7861 (insert_step_resume_breakpoint_at_sal): Print a debug message.
7863 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
7865 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
7867 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
7869 * config/m68k/tm-monitor.h: Delete file.
7870 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
7871 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
7873 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
7874 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
7876 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
7878 * gdbarch.sh (software_single_step): Change the return type
7879 from void to int and reformatted some comments to <= 80
7881 * gdbarch.c, gdbarch.h: Regenerated.
7882 * alpha-tdep.c (alpha_software_single_step): Likewise.
7883 * alpha-tdep.h (alpha_software_single_step): Likewise.
7884 * arm-tdep.c (arm_software_single_step): Likewise.
7885 * cris-tdep.c (cris_software_single_step): Likewise.
7886 * mips-tdep.c (mips_software_single_step): Likewise.
7887 * mips-tdep.h (mips_software_single_step): Likewise.
7888 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
7889 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
7890 * sparc-tdep.c (sparc_software_single_step): Likewise.
7891 * sparc-tdep.h (sparc_software_single_step): Likewise.
7892 * spu-tdep.c (spu_software_single_step): Likewise.
7893 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
7894 and act accordingly.
7896 2007-04-11 Steve Ellcey <sje@cup.hp.com>
7898 * configure.ac (build_warnings): Add -Wno-char-subscripts.
7899 * configure: Regenerate.
7900 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
7902 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7904 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
7906 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7908 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
7910 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
7911 distinct on the TYPE_STUB_SUPPORTED debug targets.
7912 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
7914 2007-04-11 Joel Brobecker <brobecker@adacore.com>
7916 * sparc-tdep.c (X_RS2): New macro.
7917 (sparc_skip_stack_check): New function.
7918 (sparc_analyze_prologue): Adjust PC past stack probing
7919 sequence if necessary.
7921 2007-04-10 Andreas Schwab <schwab@suse.de>
7923 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
7926 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
7928 * breakpoint.c (gdb_breakpoint_query): Really return an
7930 (gdb_breakpoint): Likewise.
7931 * thread.c (gdb_list_thread_ids): Likewise.
7932 (gdb_thread_select): Likewise.
7933 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
7934 (mi_cmd_thread_list_ids): Remove bogus initialization.
7936 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
7938 * Makefile.in (SFILES): Remove hpacc-abi.c.
7939 (COMMON_OBS): Remove hpacc-abi.o.
7940 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
7941 (hpacc-abi.o, hpread.o): Delete rules.
7942 * somread.c: Delete extern declarations from hpread.c.
7943 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
7944 (som_symfile_finish): Do not call hpread_symfile_finish.
7945 (som_symfile_init): Do not call hpread_symfile_init.
7946 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
7947 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
7948 * hpacc-abi.c, hpread.c: Deleted.
7950 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
7952 * solib-svr4.c (enable_break): Simplify return value.
7953 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
7955 2007-04-10 Andreas Schwab <schwab@suse.de>
7957 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
7958 l_ld_size, l_next_size, l_prev_size, l_name_size.
7960 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
7961 to extract addresses from link map.
7962 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
7963 (LM_NEXT): Likewise.
7964 (LM_NAME): Likewise.
7965 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
7966 (elf_locate_base): Likewise.
7967 (open_symbol_file_object): Likewise.
7968 (svr4_fetch_objfile_link_map): Likewise.
7969 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
7970 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
7972 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
7973 (svr4_lp64_fetch_link_map_offsets): Likewise.
7975 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
7976 removed members. Set l_ld_offset to -1 if not present.
7978 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
7980 Pass stderr of program run with "target remote |"
7982 * serial.c (serial_open): Set error_fd to -1.
7983 * serial.h (struct serial): New field error_fd.
7984 (struct serial_opts): New field avail.
7985 * ser-pipe.c (pipe_open): Create another pair
7986 of sockets. Pass stderr to gdb.
7987 * ser-mingw.c (pipe_windows_open): Pass
7988 PEX_STDERR_TO_PIPE to pex_run. Initialize
7991 (_initialize_ser_windows): Hook pipe_avail.
7992 * ser-base.c (generic_readchar): Check if there's
7993 anything in stderr channel and route that to gdb_stderr.
7995 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
7997 * dbxread.c (read_ofile_symtab): Move current_objfile
7998 clearing to after end_stabs.
8000 2007-04-01 Andreas Schwab <schwab@suse.de>
8002 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
8003 gdbarch instead of current_gdbarch.
8005 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
8007 * varobj.c (varobj_create): Keep varobj value
8008 NULL when evaluating the type.
8010 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
8012 * NEWS: Mention new Windows CE support.
8014 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
8016 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
8017 the obsoletion stanza.
8018 * NEWS: Mention deleted targets.
8020 * config/sh/tm-wince.h: Remove.
8021 * config/sh/wince.mt: Remove.
8022 * config/mips/tm-wince.h: Remove.
8023 * config/mips/wince.mt: Remove.
8026 * wince-stub.c: Remove.
8027 * wince-stub.h: Remove.
8028 * Makefile.in (wince.o): Remove rule.
8029 (wince-stub.o): Likewise.
8031 * mips-tdep.c (mips_next_pc): Make static.
8032 * mips-tdep.h (mips_next_pc): Remove declaration.
8033 * arm-tdep.c (arm_pc_is_thumb): Make static.
8034 (thumb_get_next_pc): Likewise.
8035 (arm_get_next_pc): Likewise.
8036 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
8037 (arm_pc_is_thumb): Likewise.
8038 (thumb_get_next_pc): Likewise.
8039 (arm_get_next_pc): Likewise.
8041 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8043 * MAINTAINERS: Remove d10v entry.
8044 * Makefile.in (SFILES): Remove dwarfread.c.
8045 (COMMON_OBS): Remove dwarfread.o.
8046 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
8047 (remote-est.o, rom68k-rom.o): Delete.
8048 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
8049 target est, target rom68k, and DWARF 1.
8050 * configure.tgt: Mark d10v as removed.
8051 * dwarf2read.c: Doc update.
8052 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
8054 (elf_locate_sections): Do not set them.
8055 (elf_symfile_read): Do not call dwarf_build_psymtabs.
8056 * symfile.h (dwarf_build_psymtabs): Delete prototype.
8057 * config/m68k/monitor.mt (TDEPFILES): Prune.
8058 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
8059 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
8061 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8063 * doublest.c (convert_floatformat_to_doublest): Use
8064 floatformat_classify.
8065 (floatformat_is_nan): Rename to...
8066 (floatformat_classify): ...this. Return more information.
8067 * doublest.h (enum float_kind): New.
8068 (floatformat_is_nan): Replace prototype...
8069 (floatformat_classify): ...with this one.
8070 * valprint.c (print_floating): Use floatformat_classify. Handle
8073 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8075 * README: Mention ISO C library requirement.
8077 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8079 * Makefile.in (SFILES): Remove nlmread.c.
8080 (COMMON_OBS): Remove nlmread.o.
8081 (nlmread.o): Delete rule.
8082 * README: Delete reference to remote-st.c.
8083 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
8084 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
8086 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
8087 (_initialize_i386_tdep): Do not reference them.
8088 * nlmread.c: Delete file.
8089 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
8090 * target.c: Doc update.
8091 * thread.c: Delete commented include.
8092 * config/alpha/tm-alpha.h: Doc update.
8094 2007-03-30 Chris Dearman <chris@mips.com>
8096 * utils.c (string_to_core_addr): Comment typo.
8098 2007-03-30 Chris Dearman <chris@mips.com>
8100 * mips-tdep.c: Comment typo.
8102 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
8104 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
8105 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8106 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8107 * config/powerpc/nm-ppc64-linux.h: Remove file.
8108 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
8109 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
8110 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
8111 * infptrace.c (call_ptrace): Likewise.
8112 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
8113 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
8114 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
8115 (store_register): Likewise.
8117 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8119 * Makefile.in (varobj.o): Add missing dependency.
8121 2007-03-29 Michael Snyder <msnyder@access-company.com>
8123 * MAINTAINERS: Update my email address.
8125 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8127 Add support for exception handling with multiple versions of
8129 * ada-lang.c: Update general comments on how Ada exception catchpoints
8131 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
8132 (__gnat_raise_nodefer_with_msg): Delete.
8133 (ada_unhandled_exception_name_addr_ftype): New type.
8134 (exception_support_info): New type.
8135 (ada_unhandled_exception_name_addr): Add forward declaration.
8136 (ada_unhandled_exception_name_addr_from_raise): Likewise.
8137 (default_exception_support_info): New constant.
8138 (exception_support_info_fallback): Likewise.
8139 (exception_info): New global variable.
8140 (ada_exception_support_info_sniffer): New function.
8141 (ada_executable_changed_observer): Likewise.
8142 (ada_unhandled_exception_name_addr_from_raise): Renamed from
8143 ada_unhandled_exception_name_addr.
8144 (ada_unhandled_exception_name_addr): Reimplement to match the
8145 latest Ada runtime implementation.
8146 (error_breakpoint_runtime_sym_not_found): Delete.
8147 (ada_exception_sym_name): Get the exception sym name from
8148 exception_info rather than hardcoding it.
8149 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
8150 Update error handling.
8151 * Makefile.in (ada-lang.o): Add dependency on observer.h.
8153 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8155 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
8156 (remote-st.o, uw-thread.o): Delete.
8157 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
8158 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8159 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
8160 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
8161 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
8162 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
8163 rs6000-*-lynxos* to an obsoletion stanza.
8164 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8165 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
8166 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
8167 i[34567]86-*-netware*.
8168 * NEWS: Mention deleted targets.
8170 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
8171 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
8172 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
8173 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
8174 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
8175 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
8176 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
8177 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
8178 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
8179 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
8180 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
8181 config/rs6000/tm-rs6000ly.h: Delete files.
8183 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8185 * defs.h (deprecated_registers_changed_hook): Delete declaration.
8186 * interps.c (clear_interpreter_hooks): Do not clear
8187 deprecated_registers_changed_hook.
8188 * regcache.c (registers_changed): Do not call it.
8189 * top.c (deprecated_registers_changed_hook): Do not define it.
8190 * mi/mi-interp.c (mi_command_loop): Do not clear it.
8191 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
8192 (tui_remove_hooks): Do not remove it.
8193 (tui_selected_frame_level_changed_hook): Check for negative level.
8194 Use get_selected_frame.
8195 (tui_registers_changed_hook): Deleted.
8197 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8199 * stabsread.c (add_undefined_type): Add extra parameter.
8200 Now handles nameless types separately.
8201 (struct nat): New type.
8202 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
8203 New static variables.
8204 (read_type): Update calls to add_undefined_type.
8205 (add_undefined_type_noname): New function.
8206 (add_undefined_type_1): Renames from add_undefined_type.
8207 (cleanup_undefined_types_noname): New function.
8208 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
8209 (cleanup_undefined_types): New handles nameless types separately.
8210 (_initialize_stabsread): Initialize our new static constants.
8212 2007-03-29 Denis Pilat <denis.pilat@st.com>
8214 * configure.ac: Test for signal.h.
8215 * configure, config.in: Regenerate.
8217 2007-03-29 Denis Pilat <denis.pilat@st.com>
8219 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
8220 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
8222 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
8224 * arm-wince-tdep.c: New.
8225 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
8226 (MT_CFLAGS): Delete.
8228 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
8229 solib-legacy.o, solib-svr4.o, and remove wince.o.
8230 * configure.tgt (arm*-*-mingw32ce*): Add.
8231 * signals/signals.c [HAVE_SIGNAL_H]: Check.
8232 (do_target_signal_to_host): Silence 'not used' warning.
8233 * config/arm/tm-wince.h: Remove.
8235 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
8237 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
8238 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
8240 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
8241 * config/ia64/tm-linux.h: Remove file.
8242 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
8243 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
8244 legacy_pc_in_sigtramp.
8245 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
8246 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
8247 Remove func_name argument.
8248 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
8250 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
8251 * target.c (update_current_target): Add to_have_steppable_watchpoint.
8252 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
8253 (HAVE_STEPPABLE_WATCHPOINT): Define.
8255 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
8256 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
8257 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
8258 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
8259 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
8260 target_insert_watchpoint, target_remove_watchpoint): Remove.
8261 (FETCH_INFERIOR_REGISTERS): Define.
8262 * ia64-linux-nat.c (ia64_register_addr): Make static.
8263 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
8264 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
8265 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
8266 (ia64_linux_stopped_data_address): Make static. Add target_ops.
8267 (ia64_linux_stopped_by_watchpoint): Make static.
8268 (ia64_linux_can_use_hw_breakpoint): New function.
8269 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
8270 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
8271 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
8273 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
8275 * linespec.c: Include language.h.
8276 (find_methods): Add language parameter. Call
8277 lookup_symbol_in_language. Pass language down.
8278 (add_matching_methods): Likewise. Call
8279 lookup_symbol_in_language.
8280 (add_constructors): Likewise.
8281 (find_method): Pass sym_class to collect_methods.
8282 (collect_methods): Add sym_class parameter. Pass language
8284 * symtab.c (lookup_symbol): Rename to ...
8285 (lookup_symbol_in_language): ... this. Add language
8286 parameter. Use passed language instead of current_language.
8287 (lookup_symbol): New as wrapper around
8288 lookup_symbol_in_language.
8289 (lookup_symbol_aux): Add language parameter. Use passed
8290 language instead of current_language.
8291 (search_symbols): Indent.
8292 * symtab.h (enum language): Forward declare.
8293 (lookup_symbol_in_language): Declare.
8294 (lookup_symbol): Update description.
8295 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
8296 * ada-lang.c (restore_language): Remove.
8297 (lookup_symbol_in_language): Remove.
8299 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
8301 * breakpoint.c (bpstat_num): Add int *num parameter.
8302 * breakpoint.h (bpstat_num): Likewise.
8303 * infcmd.c (continue_command): Adjust to new bpstat_num
8305 (program_info): Likewise.
8307 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8309 * config/sh/tm-sh.h: Remove file.
8310 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
8311 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
8312 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8313 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
8315 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8317 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
8318 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
8319 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
8320 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
8321 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
8322 sequence if target_shortname is "remote".
8324 2007-03-27 Anton Blanchard <anton@samba.org>
8326 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
8327 instead of wordsize when looking for the LR in a stack frame.
8329 2007-03-27 Andreas Schwab <schwab@suse.de>
8330 Daniel Jacobowitz <dan@codesourcery.com>
8332 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
8333 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
8334 argument. Update all callers.
8335 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
8336 (dwarf2_frame_set_eh_frame_regnum): Rename to...
8337 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
8338 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
8339 (dwarf2_frame_set_adjust_regnum): ...this.
8340 (dwarf2_frame_eh_frame_regnum): Delete prototype.
8341 * rs6000-tdep.c: Include "dwarf2-frame.h".
8342 (rs6000_adjust_frame_regnum): Define.
8343 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
8344 Register rs6000_adjust_frame_regnum.
8346 * Makefile.in (rs6000-tdep.o): Update dependencies.
8348 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
8350 * Makefile.in: Add support for a "pdf" target.
8352 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
8354 * amd64-tdep.c (amd64_init_frame_cache): New function.
8355 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
8357 2007-03-26 Nigel Stephens <nigel@mips.com>
8358 Maciej W. Rozycki <macro@mips.com>
8360 * ui-out.c (ui_out_field_core_addr): Truncate address to
8361 TARGET_ADDR_BIT size before printing.
8363 2007-03-22 Nigel Stephens <nigel@mips.com>
8364 Maciej W. Rozycki <macro@mips.com>
8366 * remote-mips.c (mips_xfer_memory): Update prototype.
8368 2007-03-22 Joel Brobecker <brobecker@adacore.com>
8370 * symfile.h: #include "symtab.h"
8372 2007-03-22 Denis Pilat <denis.pilat@st.com>
8374 * utils.c (pagination_on_command, pagination_off_command):
8375 Remove useless prototypes.
8377 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
8380 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
8381 instead of TYPE_NAME for object base class name.
8384 2007-03-19 Kevin Buettner <kevinb@redhat.com>
8386 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
8387 Specify frame type in calls to frame_func_unwind().
8389 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
8391 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
8392 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
8393 (refine_prologue_limit): Delete.
8394 (skip_prologue): Don't call it. Use extract_unsigned_integer.
8395 Assume lim_pc is set. Correct check for incomplete prologues.
8396 Do not skip clobbers of the frame pointer.
8397 * symtab.c (skip_prologue_using_sal): Fail if there is only one
8400 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8402 * frame.c (frame_pop): Check to see whether there's a frame to
8403 which we can pop first.
8405 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8407 * MAINTAINERS (Write After Approval): Add myself.
8409 2007-03-09 Markus Deuling <deuling@de.ibm.com>
8411 * infrun.c (breakpoints_failed): Remove unnecessary variable.
8412 (handle_inferior_event): Remove unnecessary braces.
8413 * breakpoint.c (bpstat_what): Remove wrong comment.
8415 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
8417 * spu-tdep.c (spu_in_function_epilogue_p): New function.
8418 (spu_gdbarch_init): Install it.
8420 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8422 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
8423 object types, not 0.
8425 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8427 * spu-tdep.c (spu_frame_align): New function.
8428 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
8430 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8432 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
8433 (spu_software_single_step): Likewise.
8434 (spu_read_pc, spu_write_pc): New functions.
8435 (spu_gdbarch_init): Install them.
8437 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8439 * cli/cli-dump.c (struct callback_data): load_offset needs to
8440 have signed long type.
8442 2007-03-07 Joel Brobecker <brobecker@adacore.com>
8444 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
8445 Revert the previous change that had some unexpected side-effects
8447 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
8448 function to get the address of the calling instruction.
8450 2007-03-07 Denis Pilat <denis.pilat@st.com>
8452 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
8453 get_selected_frame by deprecated_safe_get_selected_frame.
8455 2007-03-02 Mark Kettenis <kettenis@gnu.org>
8457 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
8458 "gdb_string.h". Don't include "nbsd-tdep.h".
8459 (SIZEOF_STRUCT_REG): Remove.
8460 (SHNBSD_SIZEOF_GREGS): New.
8461 (shnbsd_supply_gregset, shnbsd_collect_gregset)
8462 (shnbsd_regset_from_core_section): New functions.
8463 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
8464 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
8465 shnbsd_supply_gregset, shnbsd_collect_gregset.
8466 (shnbsd_gregset): New variable.
8467 (shnbsd_init_abi): Set regset_from_core_section.
8468 (GDB_OSABI_NETBSD_CORE): New define.
8469 (shnbsd_core_osabi_sniffer): New function.
8470 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
8471 * Makefile.in (shnbsd-tdep.o): Update dependencies.
8472 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
8474 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
8476 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8478 * gdbtypes.c (replace_type): Fix typo that caused us to not update
8479 length of the types referenced by the new type CV ring.
8481 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8483 * frame.c (frame_pop, frame_observer_target_changed): Call
8485 (flush_cached_frames): Rename to reinit_frame_cache and delete
8487 * frame.h (flush_cached_frames): Delete prototype and update comment.
8489 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
8490 reinit_frame_cache instead of flush_cached_frames. Do not call
8491 select_frame after reinit_frame_cache.
8492 * corelow.c (core_open): Likewise.
8493 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
8494 * infrun.c (prepare_to_proceed, context_switch)
8495 (handle_inferior_event): Likewise.
8496 * linux-fork.c (fork_load_infrun_state): Likewise.
8497 * ocd.c (ocd_start_remote): Likewise.
8498 * remote-e7000.c (e7000_start_remote): Likewise.
8499 * remote-mips.c (device): Likewise.
8500 * thread.c (switch_to_thread): Likewise.
8501 * tracepoint.c (finish_tfind_command): Likewise.
8502 * gdbarch.c: Regenerated.
8504 2007-02-28 Jerome Guitton <guitton@adacore.com>
8505 Joel Brobecker <brobecker@adacore.com>
8507 * gdbtypes.c (check_typedef): Do not replace stub type if
8508 the resolved type is not defined in the same objfile.
8510 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8512 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
8514 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8516 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
8517 symbol for Ada units when the symbol is defined using 't' rather
8518 than 'Tt' as symbol descriptor.
8520 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8522 * config/mips/tm-nbsd.h: Delete file.
8523 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8524 * config/sh/tm-nbsd.h: Delete file.
8525 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
8527 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8529 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
8530 unused WRONG_PARAM value since it was recently deleted.
8532 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
8534 * varobj.c (varobj_update): Free temporary vectors.
8536 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8538 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
8539 * config/powerpc/tm-linux.h: Delete file.
8540 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
8541 (PROCESS_LINENUMBER_HOOK): Do not undefine.
8542 (TEXT_SEGMENT_BASE): Do not redefine.
8543 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
8544 from config/rs6000/tm-rs6000.h.
8545 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8546 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
8547 (TEXT_SEGMENT_BASE): Remove.
8548 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
8549 (rs6000_in_solib_return_trampoline): Remove.
8550 (SKIP_TRAMPOLINE_CODE): Remove.
8551 (rs6000_skip_trampoline_code): Remove.
8552 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
8553 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8554 (FP0_REGNUM): Remove.
8555 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
8556 (rs6000_set_host_arch_hook): Remove.
8557 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
8558 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
8559 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
8560 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
8561 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
8562 * rs6000-nat.c: Include "rs6000-tdep.h".
8563 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
8564 (set_host_arch): Rename to ...
8565 (rs6000_create_inferior): ... this. Make public.
8566 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
8567 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
8568 (rs6000_create_inferior): Remove.
8569 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
8570 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
8571 set_gdbarch_in_solib_return_trampoline, and
8572 set_gdbarch_skip_trampoline_code.
8573 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
8574 from config/rs6000/tm-rs6000.h.
8576 2007-02-27 Joel Brobecker <brobecker@adacore.com>
8578 * buildsym.c (record_producer): Do nothing if no producer is provided.
8580 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
8582 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
8583 to check changelist is non-NULL. Call error if the frontend tries
8584 to update a non-root variable.
8586 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
8588 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8590 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
8591 (dwarf2_frame_sniffer): Update.
8592 (dwarf2_signal_frame_this_id): New function.
8593 (dwarf2_signal_frame_unwind): Use it.
8594 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
8595 * frame.c (frame_func_unwind): Add this_type argument.
8596 (get_frame_func): Update.
8597 (frame_unwind_address_in_block): Add this_type argument and check it.
8599 (get_frame_address_in_block): Update.
8600 * frame.h (enum frame_type): Move higher in the file.
8601 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
8604 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
8605 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
8606 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
8607 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
8608 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
8609 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
8610 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
8611 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
8612 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
8613 frame_func_unwind and frame_unwind_address_in_block to specify
8614 the frame type. Use frame_unwind_address_in_block instead of
8615 frame_pc_unwind in sniffers.
8617 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8619 * frame.c (deprecated_selected_frame): Rename to...
8620 (selected_frame): ...this. Make static.
8621 (get_selected_frame, select_frame): Update.
8622 * frame.h (deprected_select_frame): Delete.
8623 (deprecated_safe_get_selected_frame): Update comments.
8625 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
8626 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
8627 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
8628 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
8629 tui/tui.c: Replace references to deprecated_selected_frame.
8631 2007-02-27 Fred Fish <fnf@specifix.com>
8633 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
8634 directly decrement the stack pointer, accumulate their operand into
8635 the stack offset, and mark the function as not being frameless.
8637 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8639 * arch-utils.c (selected_byte_order): New.
8640 * arch-utils.h (selected_byte_order): New prototype.
8641 * remote-sim.c (gdbsim_open): Use selected_byte_order.
8643 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8645 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
8646 (default_symfile_offsets): Check VMA here. Update section VMAs.
8648 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8650 * remote.c (init_remote_state): Add special handling for placeholder
8653 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8655 * Makefile.in (XMLFILES): Include $(TDEP_XML).
8656 (filenames_h): New variable.
8657 (clean): Clean up xml-builtin.c and stamp-xml.
8658 (arm-linux-nat.o): Update.
8659 * config/arm/linux.mh (TDEP_XML): Define.
8660 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
8661 (arm_linux_has_wmmx_registers): New.
8662 (GET_THREAD_ID): Fix typo.
8663 (IWMMXT_REGS_SIZE): Define.
8664 (fetch_wmmx_regs, store_wmmx_regs): New.
8665 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
8666 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
8667 (super_xfer_partial, arm_linux_xfer_partial): New.
8668 (_initialize_arm_linux_nat): Use them.
8669 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
8670 (xml_builtin_xfer_partial): New function.
8671 * xml-support.h (xml_builtin_xfer_partial): New prototype.
8672 * NEWS: Update mention of iWMMXt support.
8674 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8676 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
8677 if there are no FPA registers.
8678 (arm_dwarf_reg_to_regnum): New function.
8679 (arm_register_type, arm_register_name): Return minimal values for
8680 unsupported registers.
8681 (arm_register_sim_regno): Handle iWMMXt registers.
8682 (arm_gdbarch_init): Record missing FPA registers if indicated by
8683 a target description. Recognize iWMMXt registers. Only register
8684 "info float" for FPA. Use ARM_NUM_REGS. Register
8685 arm_dwarf_reg_to_regnum.
8686 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
8688 (struct gdbarch_tdep): Add have_fpa_registers.
8689 * features/xscale-iwmmxt.xml: Update capitalization.
8690 * regformats/arm-with-iwmmxt.dat: Regenerated.
8692 2007-02-24 Kevin Buettner <kevinb@redhat.com>
8694 * NEWS (New targets): Add entry for the Toshiba Media Processor.
8696 2007-02-23 Kevin Buettner <kevinb@redhat.com>
8698 * MAINTAINERS (mep): New target.
8700 2007-02-23 Kevin Buettner <kevinb@redhat.com>
8702 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
8704 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
8705 (mep-tdep.o): New rule.
8706 * configure.tgt (mep-*-*): New target.
8707 * mep-tdep.c: New file.
8708 * config/mep/mep.mt: New file.
8710 2007-02-22 Markus Deuling <deuling@de.ibm.com>
8712 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
8713 BREAKPOINT_HIT and STOP_UNKNOWN.
8715 2007-02-22 Markus Deuling <deuling@de.ibm.com>
8717 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
8719 2007-02-20 Joel Brobecker <brobecker@adacore.com>
8721 * gdb_expat.h (XMLCALL): Define if not already defined.
8723 2007-02-20 Andreas Schwab <schwab@suse.de>
8725 * Makefile.in (symfile.o): Update dependencies.
8727 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
8729 * MAINTAINERS: Disable -Werror for cris simulator. Build
8730 sparc64-solaris2.10 instead of the broken sparc-elf.
8731 * solib-frv.c: Include "solib.h".
8732 * Makefile.in (solib-frv.o): Update.
8733 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
8734 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
8735 (xtensa_frame_this_id, xtensa_frame_prev_register)
8736 (xtensa_push_dummy_call): Use %p.
8738 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8740 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
8741 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
8742 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
8743 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
8744 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
8745 (sparc-linux-tdep.o): Update.
8747 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
8749 * xtensa-tdep.h (xtensa_reg_mask_t): New.
8750 (xtensa_mask_t): Change mask field to be a separate array.
8751 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
8752 (xtensa_pseudo_register_write, xtensa_unwind_pc)
8753 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
8754 (xtensa_breakpoint_from_pc): Remove implicit type casting.
8755 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
8756 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
8757 (mask14, mask15): Rename to
8758 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
8759 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
8760 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
8761 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
8762 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
8763 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
8764 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
8765 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
8766 (xtensa_submask14, xtensa_submask15): New.
8767 (rmap): Follow strict aliasing rules doing static initialization.
8769 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
8771 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
8772 handling from here...
8773 (tdesc_register_type): ...to here.
8774 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
8775 * features/arm-core.xml: Use code_ptr and data_ptr.
8777 2007-02-13 Denis Pilat <denis.pilat@st.com>
8779 * varobj.h (enum varobj_update_error): New enum.
8780 * varobj.c (struct varobj_root): Add is_valid member.
8781 (varobj_get_type): Check for invalid varobj.
8782 (varobj_get_attributes): Likewise.
8783 (variable_editable):Likewise.
8784 (varobj_update): Likewise. Use varobj_update_error.
8785 (new_root_variable): Set root varobj as valid by default.
8786 (varobj_invalidate): New function.
8787 * symfile.c (clear_symtab_users): Use varobj_invalidate.
8788 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
8789 Use varobj_update_error.
8791 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
8794 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
8795 Pascal language marker.
8796 * dwarf2read.c (set_cu_language): Likewise.
8798 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
8800 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
8801 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
8802 instead of target_terminal_init since inferior_ptid isn't set yet.
8804 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
8806 * MAINTAINERS (Write After Approval): Add myself.
8808 2007-02-09 Fred Fish <fnf@specifix.com>
8810 Based on work by Apple Computer, Inc.
8811 * event-top.c (async_request_quit): Call quit() whenever either
8812 quit_flag is set or immediate_quit is set.
8814 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
8816 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
8817 type to a pointer to const struct block.
8818 (ada_lookup_symbol_list): Don't cast away constness when calling
8819 remove_out_of_scope_renamings.
8821 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
8823 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
8824 address of 'filename'; it is always non null.
8826 2007-02-09 Joel Brobecker <brobecker@adacore.com>
8828 * exec.c (add_to_section_table): Do not discard empty sections.
8830 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8832 * features/Makefile, features/arm-with-iwmmxt.xml,
8833 features/gdbserver-regs.xsl, features/number-regs.xsl,
8834 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
8835 * regformats/arm-with-iwmmxt.dat: Generate.
8836 * NEWS: Mention iWMMXt.
8838 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8840 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
8841 (xml-tdesc.o): Update.
8842 * xml-support.c: Add a comment.
8843 (gdb_xml_enums_boolean): New variable.
8844 (gdb_xml_parse_attr_enum): Use strcasecmp.
8845 * xml-support.h (gdb_xml_enums_boolean): Declare.
8846 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
8847 next_regnum, and current_union.
8848 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
8849 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
8850 (field_attributes, union_children, reg_attributes, union_attributes)
8851 (vector_attributes, feature_attributes, feature_children): New.
8852 (target_children): Make static. Add <feature>.
8853 (tdesc_elements): Make static.
8854 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
8855 (struct tdesc_feature, tdesc_feature_p): New types.
8856 (struct target_desc): Add features member.
8857 (struct tdesc_arch_data, tdesc_data): New.
8858 (target_find_description): Clarify error message. Warn about
8859 ignored register descriptions.
8860 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
8861 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
8862 (tdesc_data_cleanup, tdesc_numbered_register)
8863 (tdesc_numbered_register_choices, tdesc_find_register)
8864 (tdesc_register_name, tdesc_register_type)
8865 (tdesc_remote_register_number, tdesc_register_reggroup_p)
8866 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
8867 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
8868 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
8869 (tdesc_create_feature, tdesc_record_type): New.
8870 (free_target_description): Free features.
8871 (_initialize_target_descriptions): Initialize tdesc_data.
8872 * arch-utils.c (default_remote_register_number): New.
8873 * arch-utils.h (default_remote_register_number): New prototype.
8874 * target-descriptions.h (set_tdesc_pseudo_register_name)
8875 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
8876 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
8877 (tdesc_numbered_register, tdesc_numbered_register_choices)
8878 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
8879 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
8880 (tdesc_create_reg): Declare.
8881 * gdbarch.sh (remote_register_number): New entry.
8882 * gdbarch.c, gdbarch.h: Regenerate.
8883 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
8884 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
8886 * arm-tdep.c (arm_register_aliases): New.
8887 (arm_register_name_strings): Rename to...
8888 (arm_register_names): ...this. Make const. Delete the old version.
8889 (current_option, arm_register_byte): Delete.
8890 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
8891 (value_of_arm_user_reg): New.
8892 (arm_gdbarch_init): Verify any described registers. Call
8893 tdesc_use_registers. Don't use arm_register_byte. Create aliases
8894 for standard register names.
8895 (_initialize_arm_tdep): Do not adjust arm_register_names.
8896 * user-regs.c (struct user_reg): Add baton member.
8897 (append_user_reg, user_reg_add_builtin, user_regs_init)
8898 (user_reg_add, value_of_user_reg): Use a baton for user
8900 * std-regs.c: Update.
8901 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
8902 (user_reg_add): Add baton argument.
8903 * NEWS: Mention target description register support.
8904 * features/arm-core.xml, features/arm-fpa.xml: New.
8905 * eval.c (evaluate_subexp_standard): Allow ptype $register
8906 when the program is not running.
8908 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
8910 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
8912 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
8914 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
8915 info->disassembler_options to "any".
8917 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8919 * varobj.c (install_new_value): Only call value_get_print_value
8922 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8924 Reported by timeless@gmail.com:
8925 * gdb/target.c (target_flash_erase): Do not return void value.
8926 (target_flash_done): Likewise.
8927 * gdb/cli/cli-cmds.c (source_command): Likewise.
8929 2007-02-08 Fred Fish <fnf@specifix.com>
8931 Based on work by Apple Computer, Inc.
8932 * event-top.c (handle_sigint): Set quit_flag.
8933 (async_request_quit): Don't set quit_flag. Avoid calling quit()
8934 if quit_flag has already been reset.
8936 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8938 * ser-mingw.c (pipe_windows_close): Move variable initialization back
8941 2007-02-08 Fred Fish <fnf@specifix.com>
8943 * defs.h (request_quit): Remove declaration.
8944 * utils.c (request_quit): Remove definition.
8946 2007-02-08 Joel Brobecker <brobecker@gnat.com>
8947 Jan Kratochvil <jan.kratochvil@redhat.com>
8948 Daniel Jacobowitz <dan@codesourcery.com>
8950 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
8951 (skip_prologue): Allow bl->blrl used by PIC code.
8953 2007-02-08 Mark Kettenis <kettenis@gnu.org>
8954 Daniel Jacobowitz <dan@codesourcery.com>
8956 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
8957 initialize tmp_obstack.
8958 * p-valprint.c (pascal_object_print_value_fields)
8959 (pascal_object_print_value): Likewise.
8961 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8963 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
8965 2007-02-08 Mark Kettenis <kettenis@gnu.org>
8967 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
8968 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
8970 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
8972 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
8974 (tdesc_parse_xml): Cache expanded descriptions.
8976 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
8978 * Makefile.in (XMLFILES): New.
8979 (COMMON_OBS): Add xml-builtin.o.
8980 (xml-builtin.c, stamp-xml): New rules.
8981 (xml-tdesc.o): Update.
8982 * features/feature_to_c.sh: New file.
8983 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
8984 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
8985 (gdb_xml_start_element): Initialize scope after possibly reallocating
8986 scopes. Move cleanup later. Handle the XInclude description
8988 (gdb_xml_end_element): Only parse the body if there is a current element.
8989 Call XML_DefaultCurrent if there is no element.
8990 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
8991 (struct xinclude_parsing_data, xinclude_start_include)
8992 (xinclude_end_include, xml_xinclude_default)
8993 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
8994 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
8995 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
8996 * xml-support.h (xml_fetch_another, xml_process_xincludes)
8997 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
8998 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
8999 XInclude directives. Use the compiled in DTD.
9000 (fetch_xml_from_file): Add baton argument. Treat it as a containing
9001 directory name. Do not warn here.
9002 (file_read_description_xml): Update call. Warn here instead. Pass
9004 (fetch_available_features_from_target): New.
9005 (target_read_description_xml): Use it.
9006 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
9008 * features/xinclude.dtd: New file.
9010 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9012 * linux-thread-db.c (check_for_thread_db): Return early if we have
9013 no libthread_db support.
9015 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9017 * mi/mi-parse.h: Include <sys/time.h>.
9019 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
9021 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
9022 instead of print_variable_value to print values.
9024 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9026 * mi/mi-main.c: Numerous formatting changes.
9027 (mi_cmd_data_write_register_values): Replace clause inadvertantly
9028 removed in my previous change.
9030 2007-02-03 Eli Zaretskii <eliz@gnu.org>
9032 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
9033 Use 1000000L instead of 1000000.
9035 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9037 Based on work by Apple Computer, Inc.
9039 * configure.ac: Test for sys/resource.h and getrusage.
9040 * configure, config.in: Regenerate.
9042 * mi/mi-main.c: Include <sys/resource.h> if present.
9043 (rusage): Declare if HAVE_GETRUSAGE.
9044 (current_command_ts, do_timings): New static variables.
9045 (timestamp, print_diff_now, print_diff, timeval_diff):
9046 New static timing functions.
9047 (mi_cmd_enable_timings): New function for new MI command.
9048 (captured_mi_execute_command, mi_execute_async_cli_command):
9049 Call timing functions.
9051 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
9054 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
9056 * mi/mi-parse.h: (mi_timestamp): New structure.
9057 (mi_parse): Add mi_timestamp* member.
9059 2007-02-02 Denis Pilat <denis.pilat@st.com>
9061 * thread.c (make_cleanup_restore_current_thread): New function.
9062 (info_threads_command): Use of make_cleanup_restore_current_thread
9063 to restore the current thread and the selected frame.
9064 (restore_selected_frame): New function.
9065 (struct current_thread_cleanup): Add frame_id field.
9066 (do_restore_current_thread_cleanup): Add restoring of the selected
9068 (make_cleanup_restore_current_thread): Likewise.
9069 (thread_apply_all_command): backup the selected frame while
9070 entering the function and restore it at exit.
9071 (thread_apply_command): Likewise.
9073 2007-02-02 Denis Pilat <denis.pilat@st.com>
9075 * MAINTAINERS (Write After Approval): Add myself to the list.
9077 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
9079 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
9080 (m32r_store_register): Ditto.
9082 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
9084 * ser-mingw.c (pipe_windows_open)
9085 (pipe_windows_read, pipe_windows_write): Declare
9086 variables at the top of the function.
9088 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9090 * doublest.c (floatformat_from_length): Use the right element from
9091 gdbarch floatformats.
9092 (floatformat_from_type, extract_typed_floating)
9093 (store_typed_floating): Likewise.
9094 * doublest.h: Remove declarations for undefined floatformat arrays.
9095 * gdbarch.sh (float_format, double_format, long_double_format): Change
9097 (pformat): Update for pairs.
9098 * gdbarch.c, gdbarch.h: Regenerated.
9099 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
9100 (floatformats_ieee_double_littlebyte_bigword)
9101 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
9102 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
9103 (floatformats_vax_d): New variables.
9104 (builtin_type_ieee_single, builtin_type_ieee_double)
9105 (builtin_type_arm_ext, builtin_type_ia64_spill)
9106 (builtin_type_ia64_quad): Replace arrays with individual types.
9107 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
9108 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
9109 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
9110 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
9111 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
9112 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
9113 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
9114 unused and endian-specific types.
9115 (recursive_dump_type): Update for floatformat pairs.
9116 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
9117 (build_gdbtypes): Use build_flt.
9118 (_initialize_gdbtypes): Update set of initialized types.
9119 * gdbtypes.h: Update declarations to match gdbtypes.c.
9120 (struct main_type): Store a pointer to two floatformats.
9121 * arch-utils.c (default_float_format, default_double_format): Delete.
9122 * arch-utils.h (default_float_format, default_double_format): Delete.
9124 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9125 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
9126 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
9127 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
9128 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
9130 2007-01-29 Joel Brobecker <brobecker@adacore.com>
9132 * target.c (maintenance_print_target_stack): New function.
9133 (initialize_targets): Add new "maintenance print target-stack"
9136 2007-01-28 Mark Kettenis <kettenis@gnu.org>
9138 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
9140 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
9142 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
9143 (struct dwarf2_loclist_baton): Likewise.
9145 2007-01-27 Eli Zaretskii <eliz@gnu.org>
9147 * cli/cli-script.c: Include breakpoint.h.
9148 (build_command_line): Require arguments only for if and while
9150 (get_command_line, execute_user_command, execute_control_command):
9151 Fix wording of warning messages.
9152 (print_command_lines): Print breakpoint commands.
9153 (execute_control_command): Call commands_from_control_command to
9154 handle the `commands' command inside a body of a flow-control
9156 (read_next_line): Recognize the `commands' command and build a
9157 command line structure for it.
9158 (recurse_read_control_structure, read_command_lines): Handle
9159 `commands' similarly to `if' and `while'.
9161 * breakpoint.c (get_number_trailer): Document the special meaning
9162 of NULL as the first argument PP.
9163 (commands_from_control_command): New function.
9165 * breakpoint.h (commands_from_control_command): Add prototype.
9167 * defs.h (commands_control): New enumerated value for enum
9168 command_control_type.
9170 2007-01-26 Joel Brobecker <brobecker@adacore.com>
9172 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
9173 (ada_exception_sal): Update accordingly.
9175 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9177 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
9178 * NEWS: Describe CHAR array vs. string identifcation rules.
9180 2007-01-25 Paul Brook <paul@codesourcery.com>
9182 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
9184 2007-01-24 Jim Blandy <jimb@codesourcery.com>
9186 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
9187 expression is empty, bother to return the 'optimized out' value we
9188 construct. (Thanks to Carl Burch.)
9190 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9192 * varobj.c (c_value_of_root, c_value_of_child)
9193 (cplus_describe_child): Don't call release_value.
9195 2007-01-24 Thiemo Seufer <ths@mips.com>
9197 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
9200 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9202 Refactor getting children name, value and type access
9204 * varobj.c (get_type_deref): Remove.
9205 (adjust_value_for_child_access): New.
9206 (c_number_of_children): Use the above.
9207 (c_describe_child): Likewise.
9208 (enum accessibility): New.
9209 (match_accessibility): New function.
9210 (cplus_describe_child): New function.
9211 (cplus_name_of_child, cplus_value_of_child)
9212 (cplus_type_of_child): Reimplement in terms
9213 of cplus_describe_child.
9214 (cplus_number_of_children): Use
9215 adjust_value_for_child_access.
9217 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9219 Fix computation of the 'editable' attribute and
9220 value changeability for for references.
9221 * varobj.c (get_value_type): New function.
9222 (c_variable_editable): Use get_value_type.
9223 (varobj_value_is_changeable): Likewise.
9225 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9227 * source.c (find_and_open_source): Try rewriting the source
9228 path inside filename if dirname is NULL.
9230 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9232 * dwarf2read.c (add_partial_symbol): Create an extra partial
9233 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
9234 (new_symbol): Likewise for symbols.
9236 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
9238 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
9240 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
9242 * value.c (value_primitive_field): Copy the full 'location'
9243 contents, instead of assuming that copying ADDRESS will
9244 bring over everything in the union. Remove obsolete comment.
9246 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
9248 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
9249 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
9250 (m32c_m16c_pointer_to_address): Separate code from declarations.
9252 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
9254 * target.c (update_current_target): Correct typo.
9256 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
9258 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
9261 2007-01-11 Andrew Cagney <cagney@redhat.com>
9262 Daniel Jacobowitz <dan@codesourcery.com>
9263 Jan Kratochvil <jan.kratochvil@redhat.com>
9265 * dwarf2-frame.c (execute_cfa_program): New support of
9266 `DW_CFA_GNU_negative_offset_extended'.
9268 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9270 * NEWS: Mention flash support for "load" and new remote packets.
9272 2007-01-21 Markus Deuling <deuling@de.ibm.com>
9274 * breakpoint.c (delete_command): Skip redundant loop iterations.
9276 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9278 * gdbarch.sh (register_type): Update comment.
9279 * gdbarch.h: Regenerated.
9280 * arch-utils.c (generic_register_size): Call register_type.
9281 * ia64-tdep.c (ia64_extract_return_value): Likewise.
9282 * m32c-tdep.c (check_for_saved): Likewise.
9283 * mips-tdep.c (mips_print_register, print_gp_register_row)
9284 (mips_print_registers_info): Likewise.
9285 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
9287 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
9288 (sh64_do_register, sh64_print_register)
9289 (sh64_media_print_registers_info): Likewise.
9290 * tui/tui-regs.c (tui_register_format): Likewise.
9292 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9294 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
9296 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
9297 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
9298 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
9299 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9300 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
9301 (make_symbol_completion_list): Likewise.
9303 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9304 Daniel Jacobowitz <dan@codesourcery.com>
9306 * buildsym.c (end_symtab): Use preallocated symtab if available.
9307 Fill in SYMBOL_SYMTAB.
9308 * buildsym.h (struct subfile): Add symtab member.
9309 * dwarf2read.c (struct dwarf2_cu): Add line_header.
9310 (struct file_entry): Add symtab.
9311 (free_cu_line_header): New function.
9312 (read_file_scope): Use it. Save line_header in the cu. Process
9314 (add_file_name): Initialize new symtab member.
9315 (dwarf_decode_lines): Create symtabs for included files.
9316 (new_symbol): Set SYMBOL_SYMTAB.
9317 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
9318 (search_symbols): Likewise.
9319 * symtab.h (struct symbol): Add symtab member.
9320 (SYMBOL_SYMTAB): Define.
9322 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9324 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
9326 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9328 * arch-utils.c (show_endian): Correct reversed condition.
9330 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9332 * MAINTAINERS (Write After Approval): Add myself.
9334 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
9335 Vladimir Prus <vladimir@codesourcery.com>
9337 Fix 'selected frame' varobjs.
9338 * varobj.c (struct varobj): Remove the error field.
9339 (varobj_set_value): Don't check var->error.
9340 (install_new_value): Don't set var->error.
9341 (varobj_update): Always pass the new value
9342 of the root via install_new_value.
9343 (create_child): Don't set error field.
9344 (new_variable): Likewise.
9345 (c_value_of_root): Always reevaluate the value
9346 of selected frame varobjs in the selected frame.
9347 Don't call reinit_frame_cache.
9349 2007-01-15 Joel Brobecker <brobecker@adacore.com>
9351 * source.c (_initialize_source): Improve the help text of
9352 the substitute-path commands.
9354 2007-01-14 Mark Kettenis <kettenis@gnu.org>
9356 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
9357 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
9358 (frv_skip_prologue): Remove prototypes.
9359 (frv_adjust_breakpoint_address): Renamed from
9360 frv_gdbarch_adjust_breakpoint_address.
9361 (frv_gdbarch_init): Adjust.
9363 2007-01-13 Mark Kettenis <kettenis@gnu.org>
9365 * gdbarch.sh (deprecated_extract_return_value)
9366 (deprecated_store_return_value): Remove.
9367 (extract_return_value, store_return_value): Remove default values.
9368 * gdbarch.c, gdbarch.h: Regenerate.
9369 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
9370 (legacy_store_return_value): Remove.
9371 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
9374 * mi/mi-main.c: Remove obsolete comment.
9376 * regcache.c, regcache.h (deprecated_register_bytes)
9377 (deprecated_read_register_bytes)
9378 (deprecated_write_register_bytes): Remove.
9380 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
9381 Don't forget to move destination pointer.
9383 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9385 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
9387 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
9389 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
9390 past entry function with recent newlib.
9392 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
9394 * gdb.texinfo (GDB/MI Variable Objects): Improve the
9395 introduction. Specify -var-update more exactly.
9397 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
9399 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
9401 2007-01-10 Jim Blandy <jimb@codesourcery.com>
9403 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
9404 the Global Maintainers' invitation to be a global maintainer.
9406 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
9408 * infrun.c (singlestep_pc): New variable.
9409 (resume): Set singlestep_pc.
9410 (context_switch): Add a debugging message. Flush the frame cache.
9411 (handle_inferior_event): Add debugging messages. Handle thread
9412 hops when a software single step has completed. Let context_switch
9413 handle flushing the frame cache.
9415 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9417 * NEWS: Mention target descriptions, "set tdesc filename",
9418 "unset tdesc filename", "show tdesc filename", and
9419 qXfer:features:read.
9420 * arch-utils.c (choose_architecture_for_target): New function.
9421 (gdbarch_info_fill): Call it.
9422 * target-descriptions.c (struct property): Make members non-const.
9423 (struct target_desc): Add arch member.
9424 (target_description_filename): New variable.
9425 (target_find_description): Try via XML first.
9426 (tdesc_architecture): New.
9427 (free_target_description, make_cleanup_free_target_description): New.
9428 (set_tdesc_property): Call xstrdup.
9429 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
9430 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
9431 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
9432 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
9433 * target-descriptions.h (tdesc_architecture)
9434 (make_cleanup_free_target_description, set_tdesc_architecture): New
9436 * Makefile.in (SFILES): Add xml-tdesc.c.
9437 (COMMON_OBS): Add xml-tdesc.o.
9438 (target-descriptions.o): Update.
9439 (xml-tdesc.o): New rule.
9440 * xml-tdesc.c, xml-tdesc.h: New files.
9441 * remote.c (PACKET_qXfer_features): New enum.
9442 (remote_protocol_features): Add qXfer:features:read.
9443 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
9444 (_initialize_remote): Register qXfer:features:read.
9445 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
9446 * features/gdb-target.dtd: New file.
9448 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9450 * copyright.sh: Clarify error.
9452 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9454 * symtab.c (matching_bfd_sections): Fix VMA matching for
9457 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9459 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
9462 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9464 Updated copyright notices for most files.
9466 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9468 * copyright.sh (prunes): Add step-line.inp and step-line.c.
9470 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9472 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
9474 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
9476 * configure, config.in: Regenerate.
9477 * defs.h (debug_file_directory): Declare.
9478 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
9479 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
9480 relocate it if DEBUGDIR_RELOCATABLE.
9481 * symfile.c (debug_file_directory): Make non-static.
9482 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
9483 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
9484 (_initialize_symfile): Don't initialize debug_file_directory here.
9486 2007-01-09 Jim Blandy <jimb@codesourcery.com>
9488 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
9491 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9493 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
9494 frame_unwind_register to recurse.
9495 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
9496 (alpha_heuristic_frame_prev_register): Likewise.
9497 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
9498 * m32c-tdep.c (m32c_prev_register): Likewise.
9499 * frame.c (frame_register_unwind_location): Remove FIXME.
9501 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9502 Eli Zaretskii <eliz@gnu.org>
9504 * copyright.sh: New file.
9506 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9508 * configure.ac: Check for XML_StopParser.
9509 * xml-support.c (gdb_xml_body_text): Check for an error.
9510 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
9511 (gdb_xml_end_element_wrapper): Likewise.
9512 * config.in, configure: Regenerated.
9514 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9516 * varobj.c (install_new_value): Always update print_value.
9517 (value_get_print_value): Immediately return NULL for missing
9520 2007-01-08 Jim Blandy <jimb@codesourcery.com>
9522 * configure.ac: Tighten pattern for extracting value of
9523 DEPRECATED_TM_FILE from the target makefile fragment.
9524 * configure: Regenerated.
9526 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9528 * linux-nat.c (struct simple_pid_list): Add status.
9529 (add_to_pid_list): Record the PID's status.
9530 (linux_record_stopped_pid): Likewise. Make static.
9531 (pull_pid_from_list): Return the saved status.
9532 (linux_nat_handle_extended): Deleted.
9533 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
9534 Make static. Handle non-SIGSTOP for a new thread's first signal.
9535 (flush_callback): Handle unexpected pending signals.
9536 (linux_nat_wait): Update calls to changed functions.
9537 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
9538 Remove prototypes for newly static functions.
9540 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9542 * gdbarch.sh (value_from_register): New gdbarch function.
9543 * gdbarch.c, gdbarch.h: Regenerate.
9544 * findvar.c (default_value_from_register): New function.
9545 (value_from_register): Use gdbarch_value_from_register.
9546 * value.h (default_value_from_register): Declare.
9547 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
9548 spu_value_to_register): Remove.
9549 (spu_value_from_register): New function.
9550 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9551 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9552 Call set_gdbarch_value_from_register.
9553 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
9554 s390_value_to_register): Remove.
9555 (s390_value_from_register): New function.
9556 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9557 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9558 Call set_gdbarch_value_from_register.
9560 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9562 * NEWS: Add "set sysroot" and "show sysroot".
9563 * solib.c (solib_absolute_prefix): Delete. Replace
9564 all uses with gdb_sysroot.
9565 (_initialize_solib): Add "set sysroot" and "show sysroot".
9566 Make "solib-absolute-prefix" an alias to it.
9568 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9570 * frame.c (get_frame_register_bytes): New function.
9571 (put_frame_register_bytes): Likewise.
9572 * frame.h (get_frame_register_bytes): Declare.
9573 (put_frame_register_bytes): Likewise.
9574 * findvar.c (value_from_register): Always construct lval_register
9575 values. Use get_frame_register_bytes.
9576 * valops.c (value_assign): Use get_frame_register_bytes and
9577 put_frame_register_bytes.
9579 2007-01-08 Jim Blandy <jimb@codesourcery.com>
9581 * MAINTAINERS: Update Stan Shebs' email address.
9583 2007-01-07 Joel Brobecker <brobecker@adacore.com>
9585 * ada-lang.c (is_known_support_routine): Improve the implementation.
9587 2007-01-06 Joel Brobecker <brobecker@adacore.com>
9589 * ada-lang.c: Add include of source.h.
9590 (is_known_support_routine): Improve the check verifying that the file
9591 associated to this frame exists.
9592 * Makefile.in (ada-lang.o): Add dependency on source.h.
9594 2007-01-07 Jim Blandy <jimb@codesourcery.com>
9596 * ax-general.c (ax_const_l): Select proper opcode for the given
9599 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
9601 * varobj.c (c_value_of_root): Don't select frame if variable
9602 object is out of scope.
9604 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
9606 * varobj.c (struct varobj): New member print_value.
9607 (install_new_value): Compare last printed value with current one
9608 instead of contents.
9609 (new_variable): Initialize var->print_value to NULL.
9610 (free_variable): Free var->print_value.
9611 (value_get_print_value): New function derived from
9612 c_value_of_variable.
9613 (c_value_of_variable): Use value_get_print_value.
9615 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9617 * i386-tdep.c (i386_analyze_stack_align): Add comment.
9619 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9621 * NEWS: Add entries for new catch commands.
9623 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9625 * dwarf2read.c (partial_die_info): Add field has_byte_size.
9626 (add_partial_symbol): Correct identification of external references.
9627 (process_structure_scope): Likewise.
9628 (read_partial_die): Handle DW_AT_byte_size attribute.
9630 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
9632 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
9634 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
9636 * varobj.c (get_type_deref): Fix variable objects for references to
9639 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9641 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
9644 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9646 * memory-map.c (struct_memory_map_parsing_data): Remove most
9647 members. Make property_name an array.
9648 (free_memory_map_parsing_data, memory_map_start_element)
9649 (memory_map_end_element, memory_map_character_data): Delete.
9650 (memory_map_start_memory, memory_map_end_memory)
9651 (memory_map_start_property, memory_map_end_property): New functions.
9652 (property_attributes, memory_children, memory_type_enum)
9653 (memory_attributes, memory_map_children, memory_map_elements): New.
9654 (parse_memory_map): Rewrite.
9655 * xml-support.c (debug_xml): New.
9656 (xml_get_required_attribute, xml_get_integer_attribute)
9657 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
9659 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
9660 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
9661 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
9662 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
9663 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
9664 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
9665 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
9667 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
9668 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
9669 (enum gdb_xml_element_flag, struct gdb_xml_element)
9670 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
9671 (struct gdb_xml_enum): New.
9672 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
9673 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
9674 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
9675 (xml_get_required_attribute, xml_get_integer_attribute)
9676 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
9677 * Makefile.in (xml_support_h, xml-support.o): Update.
9679 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9681 * Makefile.in (eval.o): Update dependencies.
9682 * eval.c: Include "ui-out.h" and "exceptions.h".
9683 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
9684 Use value_zero if an error occurs when avoiding side effects.
9685 * varobj.c (c_value_of_root): Initialize new_val.
9687 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9689 * varobj.c (varobj_list_children): Stop if the number of children is
9691 (c_number_of_children):
9693 2007-01-04 Mark Kettenis <kettenis@gnu.org>
9695 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
9696 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
9697 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
9698 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
9699 sizeof, instead of hardcoded constants.
9701 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9703 * CONTRIBUTE: Use sourceware.org.
9705 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9707 * buildsym.c (start_subfile): Handle producer.
9708 (record_producer): New function.
9709 * buildsym.h (struct subfile): Include producer.
9710 (record_producer): New prototype.
9711 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
9712 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
9713 armcc_cfa_offsets_reversed.
9714 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
9715 (dwarf2_frame_find_quirks): New function.
9716 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
9717 (decode_frame_entry_1): Record the CIE version. Record the
9718 augmentation. Skip armcc augmentations.
9719 * dwarf2read.c (read_file_scope): Save the producer.
9720 * symtab.h (struct symtab): Rename unused version member to
9723 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9725 * configure.ac (build_warnings): Use -Wall and
9726 -Wdeclaration-after-statement.
9727 * configure: Regenerated.
9729 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
9731 Simplify access to variours properties of child
9732 variable objects in C.
9733 * varobj.c (value_struct_element_index): New function.
9734 (c_describe_child): New function.
9735 (c_name_of_child, c_value_of_child)
9736 (c_type_of_child): Rewrite to use c_describe_child.
9738 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
9741 * varobj.c: Include "vec.h".
9742 (varobj_p): New typedef, declare vector of those.
9743 (struct varobj): Use vector for the 'children' member.
9744 (child_exists): Remove.
9745 (save_child_in_parent): Remove.
9746 (remove_child_from_parent): Remove.
9747 (struct varobj_child): Remove.
9748 (struct vstack): Remove.
9749 (vpush, vpop): Remove.
9750 (varobj_list_children): Adjust to work work vector.
9751 (varobj_update): Likewise. Use vectors for
9752 working stack and result.
9753 (delete_variable_1): Likewise.
9754 * Makefile.in (varobj.o): Update dependencies.
9756 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
9758 Port from Apple's version.
9760 * varobj.c (type_changeable): Rename to...
9761 (varobj_value_is_changeable_p): ...this. Adjust all callers.
9762 (is_root_p): New function. Use it everywhere.
9764 2007-01-04 Jim Blandy <jimb@codesourcery.com>
9766 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
9769 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9771 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
9773 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9775 * hpread.c (hpread_type_lookup): Fix compilation failure.
9777 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
9779 * NEWS: New port to S+core.
9780 * MAINTAINERS (Write After Approval, Responsible Maintainers):
9783 * Makefile.in: Add dependencies for S+core files.
9784 * configure.tgt (score*, score-*-*): Add S+core target.
9785 * config/score/embed.mt: New file.
9786 * score-tdep.c: New file.
9787 * score-tdep.h: New file.
9789 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9791 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
9792 the appropriate type rather than a bogus void type.
9794 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9796 * ada-lang.h (ada_find_printable_frame): Remove.
9797 (ada_exception_catchpoint_p, ada_decode_exception_location)
9798 (ada_decode_assert_location): Add declaration.
9799 * ada-lang.c: Add include of annotate.h and valprint.h.
9800 (exception_catchpoint_kind): New enum.
9801 (function_name_from_pc, is_known_support_routine)
9802 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
9803 (ada_exception_name_addr_1, ada_exception_name_addr)
9804 (print_it_exception, print_one_exception, print_mention_exception)
9805 (print_it_catch_exception, print_one_catch_exception)
9806 (print_mention_catch_exception, catch_exception_breakpoint_ops)
9807 (print_it_catch_exception_unhandled)
9808 (print_one_catch_exception_unhandled)
9809 (print_mention_catch_exception_unhandled, print_it_catch_assert)
9810 (print_one_catch_assert, print_mention_catch_assert)
9811 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
9812 (ada_get_next_arg, catch_ada_exception_command_split)
9813 (ada_exception_sym_name, ada_exception_sym_name)
9814 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
9815 (ada_parse_catchpoint_condition, ada_exception_sal)
9816 (ada_decode_exception_location)
9817 (ada_decode_assert_location): New function.
9818 (catch_exception_unhandled_breakpoint_ops): New global variable.
9819 (catch_assert_breakpoint_ops): New global variable.
9820 * breakpoint.c: Add include of ada-lang.h.
9821 (print_one_breakpoint): Do not print the condition for Ada
9822 exception catchpoints.
9823 (create_ada_exception_breakpoint): New function.
9824 (catch_ada_exception_command, catch_assert_command): New function.
9825 (catch_command_1): Add support for the new "catch exception" and
9826 "catch assert" commands.
9827 (_initialize_breakpoint): Add help description for the new catch
9829 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
9831 (breakpoint.o): Add dependency on ada-lang.h.
9833 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
9835 * coffread.c (cs_to_section): If bfd_section is found, always
9836 return its section index.
9837 (coff_symtab_read): Determine the minimal_symbol_type using the
9840 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9841 Daniel Jacobowitz <dan@codesourcery.com>
9843 * Makefile.in (top.o): Update.
9844 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
9845 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
9846 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
9848 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
9850 2007-01-03 Mark Kettenis <kettenis@gnu.org>
9852 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
9853 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
9855 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
9857 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
9858 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
9859 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
9860 greater than or equal to zero.
9861 * m2-typeprint.c (m2_array): Likewise.
9862 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
9863 * gdbtypes.c (copy_type_recursive): Correct == typo.
9864 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
9865 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
9867 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
9868 (default_macro_scope): Remove unused variable.
9869 * prologue-value.h (pv_area_find_reg): Don't name an argument
9871 * remote-fileio.c (remote_fio_func_map): Add missing braces.
9872 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
9874 (cleanup_sigint_signal_handler): Remove casts.
9875 * valprint.c (val_print): Use a volatile local for the modified
9877 * varobj.c (languages): Remove extra array dimension.
9878 (varobj_create): Correct access to languages array.
9879 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
9881 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
9882 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
9883 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
9884 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
9885 (mi_cmd_data_write_memory): Likewise.
9886 * signals/signals.c (target_signal_to_string): Cast to int before
9888 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
9891 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
9893 * NEWS: Mention pointer to member improvements.
9894 * Makefile.in (gnu-v3-abi.o): Delete special rule.
9895 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
9896 * ada-valprint.c (ada_print_scalar): Update for new type codes.
9897 * c-typeprint.c (c_print_type): Update for new type codes.
9898 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
9899 (c_type_print_base): Likewise.
9900 (c_type_print_args): Rewrite.
9901 * c-valprint.c (c_val_print): Update for new type codes. Remove
9902 support for references to members. Treat methods like functions.
9903 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
9904 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
9905 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
9906 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
9907 (struct cp_abi_ops): Add corresponding members.
9908 * cp-valprint.c (cp_print_class_method): Delete.
9909 (cp_find_class_member): New function.
9910 (cp_print_class_member): Use it. Simplify support for bogus
9912 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
9913 lookup_methodptr_type.
9914 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
9915 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
9916 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
9918 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
9919 references returned by user defined operators.
9920 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
9921 (f_type_print_varspec_suffix): Remove support for member pointers.
9922 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
9924 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
9925 (lookup_methodptr_type): New.
9926 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
9927 (recursive_dump_type): Update for new types.
9928 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
9929 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
9930 (lookup_memberptr_type, lookup_methodptr_type)
9931 (smash_to_memberptr_type): New prototypes.
9932 (smash_to_method_type): Formatting fix.
9933 (lookup_member_type, smash_to_member_type): Delete prototypes.
9934 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
9935 Do not rely on debug information for the vptr or the method's
9936 enclosing type. Handle function descriptors for IA64.
9937 (gnuv3_virtual_fn_field): Rewrite using the new functions.
9938 (gnuv3_find_method_in, gnuv3_print_method_ptr)
9939 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
9940 (gnuv3_method_ptr_to_value): New.
9941 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
9942 * hpread.c (hpread_type_lookup): Update for new types.
9943 * infcall.c (value_arg_coerce): Likewise.
9944 * m2-typeprint.c (m2_print_type): Remove explicit support
9945 for member pointers.
9946 * m2-valprint.c (m2_val_print): Likewise.
9947 * p-typeprint.c (pascal_type_print_varspec_prefix)
9948 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
9949 * p-valprint.c (pascal_val_print): Likewise.
9950 (pascal_object_print_class_method, pascal_object_print_class_member):
9952 * p-lang.h (pascal_object_print_class_method)
9953 (pascal_object_print_class_member): Delete prototypes.
9954 * stabsread.c (read_type): Update for new types.
9955 * typeprint.c (print_type_scalar): Likewise.
9956 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
9957 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
9958 argument. Construct a pointer to member if the address of a
9959 function or data member is requested.
9960 (value_cast_pointers): Don't modify the input value.
9961 (value_cast): Adjust pointer to member handling for new types.
9962 Allow null pointer to member constants. Don't modify the input
9964 (value_ind): Remove pointer to member check. Handle function
9965 descriptors for function pointers.
9966 (value_struct_elt, value_find_oload_method_list, check_field):
9967 Remove pointer to member checks.
9968 * value.c (unpack_long): Allow pointers to data members.
9969 (value_from_longest): Allow member pointers.
9970 * value.h (value_aggregate_elt): Add want_address.
9971 * varobj.c (c_variable_editable): Remove check for members.
9972 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
9973 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
9975 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
9976 * c-lang.h (cp_print_class_method): Delete prototype.
9977 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
9978 * mips-tdep.c (mips_gdbarch_init): Likewise.
9979 * gdbarch.c, gdbarch.h: Regenerated.
9981 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9983 * rs6000-tdep.c (rs6000_use_struct_convention)
9984 (rs6000_extract_return_value, rs6000_store_return_value)
9985 (rs6000_extract_struct_value_address): Remove.
9986 (rs6000_return_value): New function.
9987 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
9988 store_return_value, deprecated_extract_struct_value_address and
9989 deprecated_use_struct_convention. Use rs6000_return_value
9992 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
9994 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
9995 -display-disable, -display-enable, -display-insert and
9998 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10000 * breakpoint.c (remove_breakpoint): Remove dead code.
10002 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
10004 * varobj.c: Include block.h.
10005 (c_value_of_root): Check scope within nested statements.
10007 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10009 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
10010 regcache_cooked_write_signed instead of
10011 deprecated_write_register_bytes.
10013 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10015 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
10017 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10019 Followed the Start of New Year Procedure:
10020 * ChangeLog-2006: New file, containing all the entries for 2006.
10021 * ChangeLog: Removed all 2006 entries, and changed the reference
10022 to the previous ChangeLog to point to ChangeLog 2006.
10023 * top.c (print_gdb_version): Update copyright year.
10025 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10027 * Makefile.in (remote-sds.o): Remove.
10028 * remote-sds.c: Delete.
10030 For older changes see ChangeLog-2006.
10036 version-control: never