1 2007-12-04 Maciej W. Rozycki <macro@mips.com>
3 * target.h (target_find_new_threads): Fix definition.
5 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
7 * win32-nat.c (win32_resume): Set the trace bit
8 in the thread identified by inferior_ptid.
11 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
13 * win32-nat.c (open_process_used): New static variable.
14 (win32_init_thread_list): Remove call to CloseHandle for thread.
15 (win32_delete_thread): Ditto.
16 (fake_create_process): Set open_process_used if OpenProcess call is
18 (get_win32_debug_event): Do not close process handle.
19 (do_initial_win32_stuff): Set open_process_used to zero.
20 (win32_mourn_inferior): Call CloseHandle for current_process_handle if
21 open_process_used is set.
22 (win32_kill_inferior): Do not close process and main_thread handles.
24 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
26 * remote.c (remote_cmdlist): New variable.
27 (PACKET_vFile_open, PACKET_vFile_pread, PACKET_vFile_pwrite)
28 (PACKET_vFile_close, PACKET_vFile_unlink): New constants.
29 (remote_buffer_add_string, remote_buffer_add_bytes)
30 (remote_buffer_add_int, remote_hostio_parse_result)
31 (remote_hostio_send_command, remote_hostio_open, remote_hostio_pwrite)
32 (remote_hostio_pread, remote_hostio_close, remote_hostio_unlink)
33 (remote_fileio_errno_to_host, remote_hostio_error, fclose_cleanup)
34 (remote_hostio_close_cleanup, remote_file_put, remote_file_get)
35 (remote_file_delete, remote_put_command, remote_get_command)
36 (remote_delete_command, remote_command): New functions.
37 (_initialize_remote): Register new packets and commands.
38 * Makefile.in (gdb_fileio_h): New variable.
40 (SUBDIR_MI_OBS): Add mi-cmd-target.o.
41 (SUBDIR_MI_SRCS): Add mi/mi-cmd-target.c.
42 (mi-cmd-target.o): New rule.
43 * mi/mi-cmd-target.c: New file.
44 * mi/mi-cmds.c (mi_cmds): Add target-file-delete, target-file-get,
46 * mi/mi-cmds.h (mi_cmd_target_file_get, mi_cmd_target_file_put)
47 (mi_cmd_target_file_delete): Declare.
48 * remote.h (remote_file_put, remote_file_get, remote_file_delete):
50 * NEWS: Describe new file transfer support.
52 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
54 * infrun.c (handle_inferior_event): Don't
55 ignore beakpoints if trap_expected is set.
57 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
59 Make insert_breakpoints return void.
60 * breakpoint.h (insert_breakpoints): Change
62 * breakpoint.c (insert_breakpoints): Change
63 return type to void. Rename local return_val
65 * infrun.c (keep_going): Instead of checking
66 return value from insert_breakpoints, catch exception.
68 2007-11-29 Vladimir Prus <vladimir@codesourcery.com>
70 Stop infrun from tracking breakpoint insertion status.
72 The checks of breakpoints_inserted before calling
73 remove_breakpoints are removed, as remove_breakpoint
74 won't touch uninserted breakpoints. In a number of places,
75 we're interested if a breakpoint is inserted at particular
76 PC, and we now use breakpoint_inserted_here_p. In a few
77 places, insert_breakpoints can be called unconditionally,
78 since it won't try to insert already inserted breakpoint.
80 * breakpoint.h (regular_breakpoint_inserted_here_p): New
82 * breakpoint.c (regular_breakpoint_inserted_here_p): New.
83 (breakpoint_inserted_here_p): Use
84 regular_breakpoint_inserted_here_p.
85 * infrun.c (breakpoints_inserted): Remove.
86 (resume): Don't check for breakpoints_inserted before
87 remove_hw_watchpoints. Use breakpoint_inserted_here_p.
88 (proceed, init_wait_for_inferior): Don't set breakpoints_inserted.
89 (handle_inferior_event): Don't use breakpoints_inserted.
90 Use breakpoints_meant_to_be_inserted and
91 breakpoints_inserted_here_p.
92 (insert_step_resume_breakpoint_at_sal, keep_going): Use
93 breakpoints_meant_to_be_inserted. Don't set breakpoints_inserted.
94 (normal_stop): Don't check for breakpoints_inserted. Don't
95 set breakpoints_inserted.
96 (keep_going): Don't check for breakpoints_inserted.
97 (insert_step_resume_breakpoint_at_sal): Don't insert
100 2007-11-28 Jim Blandy <jimb@codesourcery.com>
102 * breakpoint.c (watch_command_1): When the watchpoint isn't local
103 to any frame, initialize watchpoint_frame using null_frame_id, not
106 2007-11-28 Vladimir Prus <vladimir@codesourcery.com>
108 * infrun.c (resume): Set right thread even if
109 stepping over breakpoint using software single step.
111 2007-11-28 Nick Roberts <nickrob@snap.net.nz>
113 * mi/mi-cmd-var.c (print_varobj): Revert change from 2007-08-31.
114 (mi_print_value_p): Guard against type = NULL.
116 2007-11-27 Thiago Jung Bauermann <bauerman@br.ibm.com>
118 * dfp.c (decimal_from_string): Remove superfluous newline from
120 (decimal_to_string): Likewise.
121 * printcmd.c (printf_command): Change string buffer to use
122 MAX_DECIMAL_STRING constant.
123 * value.c (value_from_decfloat): Likewise.
125 2007-11-27 Ulrich Weigand <uweigand@de.ibm.com>
127 * Makefile.in (ALL_TARGET_OBS): Remove object files that require
128 64-bit CORE_ADDR and BFD support, move them to ...
129 (ALL_64_TARGET_OBS): ... this new variable.
130 * configure.ac: Check for --enable-64-bit-bfd option. Only add
131 64-bit targets with --enable-targets=all if BFD supports 64-bit.
132 * configure: Regenerate.
134 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Do not claim
135 all elf32-i386 executables, only cygwin core files.
137 2007-11-25 Jan Kratochvil <jan.kratochvil@redhat.com>
139 * dwarf2read.c (dwarf2_get_pc_bounds): Moved the `DW_AT_ranges' parsing
140 code with its variables OBJFILE, CU_HEADER and OBFD into ...
141 (dwarf2_ranges_read): ... a new function.
142 (read_partial_die): Implemented the parsing of `DW_AT_ranges'.
144 2007-11-24 Pedro Alves <pedro_alves@portugalmail.pt>
146 * win32-nat.c (DR6_CLEAR_VALUE): New define.
147 (thread_info_struct): Rename suspend_count to suspended, to be
149 (thread_rec): Only suspend the thread if it wasn't suspended by
150 gdb before. Warn if suspending failed.
151 (win32_add_thread): Set Dr6 to DR6_CLEAR_VALUE.
152 (win32_continue): Set Dr6 to DR6_CLEAR_VALUE. Update usage of the
153 `suspended' flag. Do ContinueDebugEvent after resuming the
154 suspended threads, not before. Set threads' contexts before
155 resuming them, not after.
156 (win32_resume): Set Dr6 to DR6_CLEAR_VALUE.
158 2007-11-23 Vladimir Prus <vladimir@codesourcery.com>
160 * breakpoint.c (insert_breakpoints)
161 (insert_bp_location): Remove stale comments.
163 2007-11-23 Maciej W. Rozycki <macro@mips.com>
165 * mips-linux-tdep.h: Fix some formatting.
167 2007-11-21 Markus Deuling <deuling@de.ibm.com>
169 * stack.c (print_args_stub): Use get_frame_arch to get at the current
170 architecture and replace current_gdbarch.
171 (frame_info): Likewise.
173 2007-11-21 Nick Roberts <nickrob@snap.net.nz>
175 * varobj.c (c_variable_editable, cplus_variable_editable)
176 (java_variable_editable, variable_editable): Delete.
177 (varobj_editable_p): Replace above functions with one language
178 independent function. Check for an lvalue.
179 (varobj_get_attributes, varobj_set_value): Use varobj_editable_p.
180 (struct language_specific): Delete variable_editable field.
182 * mi-cmd-var.c (mi_cmd_var_assign): Simplify.
184 * varobj.h: Add extern for varobj_editable_p.
186 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
188 Remove unused breakpoint fields.
189 * breakpoint.h (struct breakpoint): Remove
190 from_tty and flag fields.
191 * breakpoint.c (break_command_1): Don't set
192 from_tty and flag field set of breakpoint.
193 (create_ada_exception_breakpoint): Don't set
196 2007-11-20 David Ung <davidu@mips.com>
197 Maciej W. Rozycki <macro@mips.com>
199 * mips-tdep.c (mips16_scan_prologue): Handle the MIPS16e SAVE
202 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
204 * infrun.c (resume): Clarify logic that
205 decides if a single thread must be resumed. Add
208 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
210 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
213 2007-11-19 Markus Deuling <deuling@de.ibm.com>
215 * gdbarch.sh (register_sim_regno): Add gdbarch as parameter.
216 * gdbarch.{c,h}: Regenerate.
218 * arch-utils.h (legacy_register_sim_regno): Add gdbarch as parameter.
219 * score-tdep.c (score_register_sim_regno): Likewise.
220 * sim-regno.h (one2one_register_sim_regno): Likewise.
222 * arch-utils.c (legacy_register_sim_regno): Add gdbarch as parameter.
223 Replace current_gdbarch by gdbarch.
224 * sh-tdep.c (sh_sh2a_register_sim_regno)
225 (sh_dsp_register_sim_regno): Likewise.
226 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
227 * mips-tdep.c (mips_register_sim_regno): Likewise.
228 * m32c-tdep.c (m32c_register_sim_regno): Likewise.
229 * frv-tdep.c (frv_register_sim_regno): Likewise.
230 * arm-tdep.c (arm_register_sim_regno): Likewise.
231 * remote-sim.c (one2one_register_sim_regno): Likewise.
233 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
235 * configure.ac (--enable-targets): New configure option.
236 Collect gdb_target_obs of multiple targets into TARGET_OBS.
237 Call configure.tgt multiple times, using $targ as operand.
238 * configure.tgt: Operate on $targ instead of $target.
239 * configure: Regenerate.
240 * Makefile.in (ALL_TARGET_OBS): Define.
242 * NEWS: Mention --enable-targets option.
244 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
246 * mips-tdep.c (show_mipsfpu_command): Do not crash if called when
247 current architecture is not MIPS.
249 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
251 * cli/cli-setshow.c (do_setshow_command): Use dynamically sized buffer
252 to construct error message if no argument was supplied.
254 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
256 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Remove.
257 (i386nbsd_aout_regset_from_core_section): Likewise.
258 (i386nbsd_aout_init_abi): Likewise.
259 (_initialize_i386nbsd_tdep): Do not register i386nbsd_aout_init_abi.
261 * vaxnbsd-tdep.c (vaxnbsd_aout_init_abi): Remove.
262 (_initialize_vaxnbsd_tdep): Do not register vaxnbsd_aout_init_abi.
264 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
266 * amd64fsdb-tdep.c (amd64fbsd_sigtramp_start_addr): Use ULL suffix.
267 (amd64fbsd_sigtramp_end_addr): Likewise.
269 * iq2000-tdep.c (iq2000_pointer_to_address): Fix argument type.
270 (iq2000_address_to_pointer): Likewise.
271 (iq2000_frame_prev_register): Likewise.
272 (iq2000_extract_return_value): Use regcache_cooked_read_unsigned
273 instead of regcache_cooked_read into CORE_ADDR variable.
274 (iq2000_return_value): Fix argument types.
276 * m32r-rom.c (m32r_load_section): Fix printf argument type.
277 (m32r_load): Likewise.
279 * m68kbsd-tdep.c: Include "gdbtypes.h".
280 * Makefile.in: Update dependencies.
282 * mn10300-tdep.c (mn10300_frame_unwind_cache): Fix aliasing violation.
284 * nto-tdep.c (LM_ADDR): Do not refer to no-longer-existing
285 lmo->l_addr_size element.
287 * remote-m32r-sdi.c (m32r_xfer_memory): Use paddr to print address.
288 (m32r_insert_breakpoint): Likewise.
289 (m32r_remove_breakpoint): Likewise.
290 (m32r_insert_watchpoint): Likewise.
291 (m32r_remove_watchpoint): Likewise.
292 (m32r_load): Fix printf argument type.
294 * xtensa-tdep.c (xtensa_regset_from_core_section): Fix printf
296 (xtensa_frame_this_id): Do not cast pointers to "int" for output.
297 (xtensa_frame_prev_register): Likewise.
298 (xtensa_push_dummy_call): Likewise.
300 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
302 * config/alpha/alpha-linux.mt: Remove file.
303 * config/alpha/alpha.mt: Remove file.
304 * config/alpha/alpha-osf1.mt: Remove file.
305 * config/alpha/fbsd.mt: Remove file.
306 * config/alpha/nbsd.mt: Remove file.
307 * config/alpha/obsd.mt: Remove file.
308 * config/arm/embed.mt: Remove file.
309 * config/arm/linux.mt: Remove file.
310 * config/arm/nbsd.mt: Remove file.
311 * config/arm/obsd.mt: Remove file.
312 * config/arm/wince.mt: Remove file.
313 * config/avr/avr.mt: Remove file.
314 * config/cris/cris.mt: Remove file.
315 * config/frv/frv.mt: Remove file.
316 * config/h8300/h8300.mt: Remove file.
317 * config/i386/cygwin.mt: Remove file.
318 * config/i386/fbsd64.mt: Remove file.
319 * config/i386/fbsd.mt: Remove file.
320 * config/i386/i386gnu.mt: Remove file.
321 * config/i386/i386.mt: Remove file.
322 * config/i386/i386sol2.mt: Remove file.
323 * config/i386/linux64.mt: Remove file.
324 * config/i386/linux.mt: Remove file.
325 * config/i386/mingw.mt: Remove file.
326 * config/i386/nbsd64.mt: Remove file.
327 * config/i386/nbsd.mt: Remove file.
328 * config/i386/nto.mt: Remove file.
329 * config/i386/obsd64.mt: Remove file.
330 * config/i386/obsd.mt: Remove file.
331 * config/i386/sol2-64.mt: Remove file.
332 * config/ia64/ia64.mt: Remove file.
333 * config/ia64/linux.mt: Remove file.
334 * config/iq2000/iq2000.mt: Remove file.
335 * config/m32c/m32c.mt: Remove file.
336 * config/m32r/linux.mt: Remove file.
337 * config/m32r/m32r.mt: Remove file.
338 * config/m68hc11/m68hc11.mt: Remove file.
339 * config/m68k/linux.mt: Remove file.
340 * config/m68k/monitor.mt: Remove file.
341 * config/m68k/nbsd.mt: Remove file.
342 * config/m68k/obsd.mt: Remove file.
343 * config/m88k/obsd.mt: Remove file.
344 * config/mep/mep.mt: Remove file.
345 * config/mips/embed.mt: Remove file.
346 * config/mips/irix5.mt: Remove file.
347 * config/mips/irix6.mt: Remove file.
348 * config/mips/linux.mt: Remove file.
349 * config/mips/nbsd.mt: Remove file.
350 * config/mips/obsd64.mt: Remove file.
351 * config/mn10300/linux.mt: Remove file.
352 * config/mn10300/mn10300.mt: Remove file.
353 * config/mt/mt.mt: Remove file.
354 * config/pa/hppahpux.mt: Remove file.
355 * config/pa/hppa.mt: Remove file.
356 * config/pa/linux.mt: Remove file.
357 * config/pa/obsd.mt: Remove file.
358 * config/powerpc/aix.mt: Remove file.
359 * config/powerpc/linux.mt: Remove file.
360 * config/powerpc/nbsd.mt: Remove file.
361 * config/powerpc/obsd.mt: Remove file.
362 * config/powerpc/ppc-eabi.mt: Remove file.
363 * config/s390/s390.mt: Remove file.
364 * config/score/embed.mt: Remove file.
365 * config/sh/embed.mt: Remove file.
366 * config/sh/linux.mt: Remove file.
367 * config/sh/nbsd.mt: Remove file.
368 * config/sh/obsd.mt: Remove file.
369 * config/sh/sh64.mt: Remove file.
370 * config/sparc/embed.mt: Remove file.
371 * config/sparc/fbsd.mt: Remove file.
372 * config/sparc/linux64.mt: Remove file.
373 * config/sparc/linux.mt: Remove file.
374 * config/sparc/nbsd64.mt: Remove file.
375 * config/sparc/nbsd.mt: Remove file.
376 * config/sparc/obsd64.mt: Remove file.
377 * config/sparc/obsd.mt: Remove file.
378 * config/sparc/sol2-64.mt: Remove file.
379 * config/sparc/sol2.mt: Remove file.
380 * config/sparc/sparc64.mt: Remove file.
381 * config/sparc/sparc.mt: Remove file.
382 * config/spu/spu.mt: Remove file.
383 * config/v850/v850.mt: Remove file.
384 * config/vax/nbsd.mt: Remove file.
385 * config/vax/obsd.mt: Remove file.
386 * config/vax/vax.mt: Remove file.
387 * config/xstormy16/xstormy16.mt: Remove file.
388 * config/xtensa/xtensa.mt: Remove file.
390 * configure.tgt (gdb_target_cpu): Remove. Do not set anywhere.
391 (gdb_target): Likewise.
392 (gdb_target_obs): Document. Set for every target to contents
393 of TDEPFILES in former .mt makefile fragment.
395 * configure.ac (TARGET_OBS): Define.
396 (target_makefile_frag, gdb_target_cpu): Do not define.
397 * configure: Regenerate.
399 * Makefile.in (MT_FLAGS): Remove.
400 (GLOBAL_CFLAGS): Update.
401 (TARGET_OBS): Substitute from configure.
402 (DEPFILES): Remove TDEPFILES, add TARGET_OBS.
403 (@target_makefile_frag@): Remove.
405 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
407 * config/arm/embed.mt (SIM_OBS, SIM): Remove.
408 * config/avr/avr.mt (SIM_OBS, SIM): Remove.
409 * config/frv/frv.mt (SIM_OBS, SIM): Remove.
410 * config/h8300/h8300.mt (SIM_OBS, SIM): Remove.
411 * config/iq2000/iq2000.mt (SIM_OBS, SIM): Remove.
412 * config/m32c/m32c.mt (SIM_OBS, SIM): Remove.
413 * config/m32r/linux.mt (SIM_OBS, SIM): Remove.
414 * config/m32r/m32r.mt (SIM_OBS, SIM): Remove.
415 * config/m68hc11/m68hc11.mt (SIM_OBS, SIM): Remove.
416 * config/mips/embed.mt (SIM_OBS, SIM): Remove.
417 * config/mips/linux.mt (SIM_OBS, SIM): Remove.
418 * config/mips/nbsd.mt (SIM_OBS, SIM): Remove.
419 * config/mn10300/mn10300.mt (SIM_OBS, SIM): Remove.
420 * config/powerpc/linux.mt (SIM_OBS, SIM): Remove.
421 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Remove.
422 * config/powerpc/ppc-sim.mt: Remove file.
423 * config/sh/embed.mt (SIM_OBS, SIM): Remove.
424 * config/sh/linux.mt (SIM_OBS, SIM): Remove.
425 * config/sh/nbsd.mt (SIM_OBS, SIM): Remove.
426 * config/sh/sh64.mt (SIM_OBS, SIM): Remove.
427 * config/sparc/embed.mt (SIM_OBS, SIM): Remove.
428 * config/v850/v850.mt (SIM_OBS, SIM): Remove.
429 * config/xstormy16/xstormy16.mt (SIM_OBS, SIM): Remove.
431 * configure.tgt (gdb_sim): Document variable.
432 (arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*): Set it.
435 (h8300-*-*): Likewise.
436 (iq2000-*-*): Likewise.
437 (m32c-*-*): Likewise.
438 (m32r*-*-linux*): Likewise.
439 (m32r*-*-*): Likewise.
440 (m68hc11*-*-*|m6811*-*-*): Likewise.
441 (mips*-*-*): Likewise.
442 (mips*-*-linux*): Likewise.
443 (mips*-*-netbsd* | mips*-*-knetbsd*-gnu): Likewise.
444 (mn10300-*-*): Likewise.
445 (powerpc-*-linux* | powerpc64-*-linux*): Likewise.
446 (powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu): Likewise.
447 (powerpc*-*-*): Use ppc-eabi target. Conditionally set gdb_sim.
449 (sh-*-linux*): Likewise.
450 (sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu): Likewise.
451 (sh64-*-elf*): Likewise.
452 (sparc-*-rtems*): Likewise.
453 (v850*-*-elf): Likewise.
454 (xstormy16-*-*): Likewise.
456 * configure.ac (IGNORE_SIM, IGNORE_SIM_OBS): Do not set.
457 (SIM, SIM_OBS): Set depending on ${ignore_sim} and ${gdb_sim}.
458 * configure: Regenerate.
459 * Makefile.in (SIM, SIM_OBS): Substitute from configure.
460 (@IGNORE_SIM@, @IGNORE_SIM_OBS@): Remove.
462 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
464 * configure.tgt (gdb_osabi, build_gdbserver): Comment variables.
465 (arm*-*-*): Do not set obsolete build_rdi_share variable.
467 (*-*-freebsd* | *-*-kfreebsd*-gnu): Remove generic case, replace by ...
468 (alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
469 (i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
470 (sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu): ... specific cases.
471 (x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu): Re-sort.
473 (xscale-*-*): Merge into arm*-*-* case.
474 (fido-*-elf*): Merge into m68*-*-elf* case.
475 (m68*-*-aout*, m68*-*-coff*, m68*-*-elf*, m68*-*-rtems*,
476 m68*-*-uclinux*): Merge cases.
477 (powerpc-*-linux*, powerpc64-*-linux*): Merge cases.
478 (sh-*-coff*, sh-*-elf*): Merge into sh* case.
480 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
482 * configure.tgt: Reformat main case statement.
484 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
486 * configure.ac (hostfile, targetfile): Remove.
487 (GDB_XM_FILE, GDB_TM_FILE): Do not define.
488 (xm_h, tm_h): Likewise.
489 (DEPRECATED_TM_FILE, XM_FILE): Do not substitute into Makefile.
490 * configure, config.in: Regenerate.
492 * Makefile.in (xm_h, tm_h): Remove. Update dependencies.
493 (TAGS): Do not consider DEPRECATED_TM_FILE or XM_FILE.
494 (clean, local-maintainer-clean): Do not remove xm.h or tm.h.
495 * defs.h: Do not include "xm.h" or "tm.h".
497 * gdbarch.sh (verify_gdbarch): Do not dump GDB_XM_FILE or GDB_TM_FILE.
498 * gdbarch.c: Regenerate.
500 * config/score/embed.mt: Remove obsolete comment.
502 2007-11-16 Markus Deuling <deuling@de.ibm.com>
504 * gdbarch.sh (cannot_fetch_register, cannot_store_register): Add gdbarch
506 * gdbarch.{c,h}: Regenerate.
508 * alpha-tdep.c (alpha_cannot_fetch_register)
509 (alpha_cannot_store_register): Add gdbarch as parameter. Replace
510 current_gdbarch by gdbarch.
511 * cris-tdep.c (cris_cannot_fetch_register, cris_cannot_store_register)
512 (crisv32_cannot_fetch_register)
513 (crisv32_cannot_store_register): Likewise.
514 * arch-utils.c (cannot_register_not): Likewise.
515 * arch-utils.h (cannot_register_not): Likewise.
516 * hppa-tdep.c (hppa32_cannot_store_register)
517 (hppa32_cannot_store_register, hppa64_cannot_store_register)
518 (hppa64_cannot_fetch_register): Likewise.
519 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
520 (mipsnbsd_cannot_store_register): Likewise.
522 2007-11-16 Markus Deuling <deuling@de.ibm.com>
524 * m32r-rom.c (m32r_supply_register): Use get_regcache_arch to get at
525 the current architecture by regcache.
526 * ppcnbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
527 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
528 (fetch_register, supply_vrregset, fetch_ppc_registers)
529 (store_altivec_register, store_spe_register, store_register)
530 (fill_vrregset, store_ppc_registers): Likewise.
531 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
532 * win32-nat.c (do_win32_fetch_inferior_registers)
533 (do_win32_store_inferior_registers): Likewise.
534 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
535 * remote-m32r-sdi.c (m32r_fetch_registers)
536 (m32r_store_registers): Likewise.
537 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
539 * trad-frame.c (trad_frame_alloc_saved_regs): Replace current_gdbarch by
541 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
542 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
543 (do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call)
544 (ppc64_sysv_abi_return_value): Likewise.
545 * m32c-tdep.c (m32c_register_reggroup_p): Likewise.
546 * m2-lang.c (build_m2_types): Likewise.
547 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache
548 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
549 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
550 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
552 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Use get_frame_arch to
553 get at the current architecture by frame_info.
554 * gcore.c (derive_stack_segment): Likewise.
556 * shnbsd-nat.c (GETREGS_SUPPLIES): Add gdbarch parameter.
557 (shnbsd_fetch_inferior_registers, shnbsd_store_inferior_registers): Add
558 gdbarch to GETREGS_SUPPLIES call.
560 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
562 * elfread.c (ST_REGULAR, ST_DYNAMIC, ST_SYNTHETIC): New defines.
563 (elf_symtab_read): Rename DYNAMIC argument to TYPE. Do not access
564 ELF-private symbol data when processing synthetic symbols. Use
565 udata.p to get at size of ppc64 synthetic 'dot' symbols.
566 (elf_symfile_read): Pass TYPE argument to elf_symtab_read.
568 2007-11-15 Doug Evans <dje@google.com>
570 * buildsym.h (subfiles): Move ...
571 * buildsym.c (subfiles): ... to here and make static.
573 * symmisc.c (maintenance_info_symtabs): Print linetable info.
575 2007-11-15 Markus Deuling <deuling@de.ibm.com>
577 * mipsnbsd-tdep.h (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove
579 2007-11-15 Markus Deuling <deuling@de.ibm.com>
581 * arm-tdep.c (arm_prologue_this_id): Replace LOWEST_PC by its
582 expression and use get_frame_arch to replace current_gdbarch by frame's
584 * arm-tdep.h (LOWEST_PC): Remove
586 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
588 Apply const qualifier to some users of bp_location.
589 * breakpoint.h (struct bpstats): Make
590 the breakpoint_at field point at const bp_location.
591 * breakpoint.c (bpstat_alloc): Accept const
593 (breakpoint_here_p, breakpoint_inserted_here_p)
594 (software_breakpoint_inserted_here_p)
595 (breakpoint_thread_match, bpstat_stop_status)
596 (read_memory_nobpt, bpstat_have_active_hw_watchpoints): Use
597 const bp_location for iteration.
598 (print_it_typical, print_bp_stop_message): Use
599 const bp_location variable.
601 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
603 Make mark_breakpoints_out static.
604 * breakpoint.h (mark_breakpoints_out): Remove
606 * breakpoint.c (mark_breakpoints_out): Make static.
608 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
610 Prevent clear_command from directly modifying breakpoint list.
611 * Makefile.in (breakpoint_h): Update dependency.
612 * breakpoint.c (clear_command): Do not remove
613 breakpoints from breakpoint_chain. Collect breakpoints
614 to delete in a vector.
615 * breakpoint.h (breakpoint_p): New typedef for pointer to
616 breakpoint. Register vector of breakpoint_p.
618 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
620 Remove 'run_cleanup'.
621 * defs.h (do_run_cleanups, make_run_cleanup): Remove
623 * infcmd.c (run_command_1): Call clear_solib instead
625 * jv-lang.c (java_rerun_cleanup): Remove, for lack of
627 * solib.c (solib_cleanup_queued, do_clear_solib): Remove.
628 (update_solib_lib): Don't setup run cleanup.
629 (no_shared_libraries): Call clear_solib, not do_clear_solib.
630 * utils.c (run_cleanup_chain, make_run_cleanup)
631 (do_run_cleanups): Remove.
633 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
635 Remove CLEAR_SOLIB use.
636 * corelow.c (core_close): Don't check for CLEAR_SOLIB.
637 * infcmd.c (attach_command): Likewise.
639 2007-11-14 Doug Evans <dje@google.com>
641 * buildsym.c (start_subfile,start_symtab): Doc fixes.
643 2007-11-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
645 * tui/tui-data.c (tui_prev_win): Guard against NULL.
647 2007-11-12 Markus Deuling <deuling@de.ibm.com>
649 * gdbarch.sh (gdbarch_alloc): Replace current_gdbarch by gdbarch. Remove
651 (verify_gdbarch, gdbarch_dump): Likewise.
652 (do_read): Update comment.
653 (addr_bit, bfd_arch_info, target_desc, long_long_bit, floatformat)
654 (ptr_bit, name_of_malloc): Replace current_gdbarch by gdbarch.
655 * gdbarch.{c,h}: Regenerate.
657 2007-11-12 Markus Deuling <deuling@de.ibm.com>
659 * xtensa-tdep.c (ARG_1ST): Replace ARGS_FIRST_REG by its expression.
660 (ARGS_FIRST_REG): Remove.
661 (areg_numer): New function.
662 (xtensa_pseudo_register_read, xtensa_frame_prev_register)
663 (xtensa_extract_return_value, xtensa_store_return_value)
664 (xtensa_frame_cache): Replace AREG_NUMBER by areg_number.
665 (AREG_NUMBER): Remove.
666 (XTENSA_IS_ENTRY, ARG_NOF, ARG_1ST): Add gdbarch as parameter.
667 (xtensa_frame_cache): Update use of XTENSA_IS_ENTRY.
668 (xtensa_push_dummy_call): Update use of ARG_NOF.
669 (extract_call_winsize): Add gdbarch as parameter. Replace
670 current_gdbarch by gdbarch.
671 (xtensa_extract_return_value, xtensa_store_return_value): Update call
672 of extract_call_winsize.
674 2007-11-10 Joel Brobecker <brobecker@adacore.com>
676 * NEWS: Add entry for new set/show print frame-args command.
678 2007-11-09 Kevin Buettner <kevinb@redhat.com>
680 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add missing
681 register number to map. Adjust warning check and error/warning
682 return value code to match expectations of this function's callers.
684 2007-11-09 Joel Brobecker <brobecker@adacore.com>
686 * stack.c (print_this_frame_argument_p): Handle arguments passed
687 by reference properly.
689 2007-11-09 Joel Brobecker <brobecker@adacore.com>
691 * stack.c (print_frame_arguments_choices): New static global.
692 (print_frame_arguments): Likewise.
693 (print_this_frame_argument_p): New function.
694 (print_frame_args): Print the argument value only when appropriate.
695 (_initialize_task): Add new "set/show print frame-arguments" command.
697 2007-11-09 Luis Machado <luisgpm@br.ibm.com>
699 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move
700 saved_dabr_value assignment to the correct position.
702 2007-11-09 Markus Deuling <deuling@de.ibm.com>
704 * arch-utils.c (generic_convert_register_p): Add gdbarch as parameter.
705 * arch-utils.h (generic_convert_register_p): Likewise.
707 2007-11-09 Markus Deuling <deuling@de.ibm.com>
709 * gdbarch.sh (convert_register_p): Add gdbarch as parameter.
710 * ia64-tdep.c (ia64_convert_register_p): Likewise.
711 * i387-tdep.c (i387_convert_register_p): Likewise.
712 * i387-tdep.h (i387_convert_register_p): Likewise.
713 * alpha-tdep.c (alpha_convert_register_p): Likewise.
714 * gdbarch.{c,h}: Regenerate.
716 * rs6000-tdep.c (rs6000_convert_register_p): Add gdbarch as parameter.
717 Replace current_gdbarch by gdbarch.
718 * mips-tdep.c (mips_convert_register_p): Likewise.
719 * m68k-tdep.c (m68k_convert_register_p): Likewise.
720 * i386-tdep.c (i386_convert_register_p): Likewise.
722 2007-11-08 Aleksandar Ristovski <aristovski@qnx.com>
724 * gdb_string.h: Include <strings.h>.
726 2007-11-08 Vladimir Prus <vladimir@codesourcery.com>
728 * breakpoint.c (break_command_1): Remove
729 pending_bp parameter.
730 (create_breakpoint): Likewise.
731 (create_breakpoints): Likewise. Adjust call to
733 (break_command_1): Likewise. Adjust call to
735 (do_captured_breakpoint): Adjust call to
737 (break_command, tbreak_command, hbreak_command)
738 (stopin_command, stopat_command): Adjust call
741 2007-11-07 Joseph Myers <joseph@codesourcery.com>
742 Daniel Jacobowitz <dan@codesourcery.com>
744 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Right-align
745 struct values smaller than one doubleword; left-align those
746 larger. Pass structs containing a single floating-point value in
749 2007-11-07 Joseph Myers <joseph@codesourcery.com>
750 Daniel Jacobowitz <dan@codesourcery.com>
752 * gdbtypes.c (floatformats_ibm_long_double): New.
753 * gdbtypes.h (floatformats_ibm_long_double): Declare.
754 * ia64-tdep.c (floatformat_ia64_ext): Update for addition of
756 * mips-tdep.c (n32n64_floatformat_always_valid,
757 floatformat_n32n64_long_double_big, floatformats_n32n64_long):
759 (mips_gdbarch_init): Use floatformats_ibm_long_double instead of
760 floatformats_n32n64_long.
761 * ppc-linux-tdep.c (ppc_linux_init_abi): Use 128-bit IBM long
763 * doublest.c (convert_floatformat_to_doublest,
764 convert_doublest_to_floatformat): Handle split floating-point
766 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle IBM long
768 (ppc64_sysv_abi_push_dummy_call): Likewise.
769 (do_ppc_sysv_return_value): Handle IBM long double return.
771 2007-11-07 Vladimir Prus <vladimir@codesourcery.com>
773 Fix crash when a variable object being deleted
774 has any of its children deleted previously.
776 * varobj.c (delete_variable_1): Don't recurse
777 into deleted children.
779 2007-11-07 Markus Deuling <deuling@de.ibm.com>
781 * gdbarch.sh (legacy_virtual_frame_pointer): Add gdbarch parameter.
782 * gdbarch.{c,h}: Regenerate.
783 * arch-utils.c (legacy_virtual_frame_pointer): Add gdbarch parameter.
784 Replace current_gdbarch by gdbarch.
785 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
786 * mips-tdep.c (mips_virtual_frame_pointer): Likewise.
787 * spu-tdep.c (spu_virtual_frame_pointer): Likewise.
789 2007-11-07 Markus Deuling <deuling@de.ibm.com>
791 * shnbsd-tdep.c (shnbsd_supply_gregset, shnbsd_collect_gregset): Use
792 get_regcache_arch to get at the current architecture by regcache.
793 * xstormy16-tdep.c (xstormy16_frame_prev_register): Use get_frame_arch
794 to get at the current architecture by frame_info.
795 * fbsd-nat.c (fbsd_make_corefile_notes): Use get_regcache_arch to get
796 at the current architecture by regcache.
797 * gnu-v3-abi.c (gnuv3_skip_trampoline): Use get_frame_arch to get at
798 the current architecture by frame_info.
799 (build_gdb_vtable_type): Replace current_gdbarch by gdbarch.
800 * aix-thread.c (special_register_p): Add gdbarch as parameter.
801 (fetch_regs_kernel_thread, store_regs_kernel_thread): Add gdbarch to
802 caller of special_register_p.
804 2007-11-07 Markus Deuling <deuling@de.ibm.com>
806 * infcall.c (call_function_by_hand): Use get_frame_arch to get at the
807 current architecture by frame_info.
809 2007-11-07 Markus Deuling <deuling@de.ibm.com>
811 * xtensa-tdep.h (SIZEOF_GREGSET, XTENSA_ELF_NGREG) Remove.
813 2007-11-07 Markus Deuling <deuling@de.ibm.com>
815 * s390-nat.c (supply_gregset, fill_gregset): Use get_regcache_arch to
816 get at the current architecture by regcache.
817 (SUBOFF): Add gdbarch to macro definition.
819 2007-11-07 Markus Deuling <deuling@de.ibm.com>
821 * gdbarch.sh (breakpoint_from_pc): Add gdbarch parameter.
822 * gdbarch.{c,h}: Regenerate.
824 * xtensa-tdep.c (xtensa_breakpoint_from_pc): Add gdbarch parameter.
825 Replace current_gdbarch by gdbarch.
826 * sh-tdep.c (sh_breakpoint_from_pc): Likewise.
827 * sh64-tdep.c (sh64_breakpoint_from_pc): Likewise.
828 * score-tdep.c (score_breakpoint_from_pc): Likewise.
829 * mips-tdep.c (mips_breakpoint_from_pc): Likewise.
830 * m32r-tdep.c (m32r_breakpoint_from_pc): Likewise.
831 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
832 * arm-tdep.c (arm_breakpoint_from_pc): Likewise.
834 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Add gdbarch
836 * vax-tdep.c (vax_breakpoint_from_pc): Likewise.
837 * v850-tdep.c (v850_breakpoint_from_pc): Likewise.
838 * spu-tdep.c (spu_breakpoint_from_pc): Likewise.
839 * sparc-tdep.c (sparc_breakpoint_from_pc): Likewise.
840 * s390-tdep.c (s390_breakpoint_from_pc): Likewise.
841 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Likewise.
842 * mt-tdep.c (mt_breakpoint_from_pc): Likewise.
843 * mep-tdep.c (mep_breakpoint_from_pc): Likewise.
844 * m88k-tdep.c (m88k_breakpoint_from_pc): Likewise.
845 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Likewise.
846 * m32c-tdep.c (m32c_breakpoint_from_pc): Likewise.
847 * ia64-tdep.c (ia64_breakpoint_from_pc): Likewise.
848 * i386-tdep.c (i386_breakpoint_from_pc): Likewise.
849 * hppa-tdep.c (hppa_breakpoint_from_pc): Likewise.
850 * h8300-tdep.c (h8300_breakpoint_from_pc): Likewise.
851 * frv-tdep.c (frv_breakpoint_from_pc): Likewise.
852 * cris-tdep.c (cris_breakpoint_from_pc): Likewise.
853 * avr-tdep.c (avr_breakpoint_from_pc): Likewise.
854 * alpha-tdep.c (alpha_breakpoint_from_pc): Likewise.
855 * m68k-tdep.c (m68k_local_breakpoint_from_pc): Likewise.
857 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Add gdbarch parameter.
858 Replace current_gdbarch by gdbarch.
859 (rs6000_software_single_step): Use get_frame_arch to get at the
860 current architecture by frame_info. Add gdbarch to
861 rs6000_breakpoint_from_pc call.
863 2007-11-07 Markus Deuling <deuling@de.ibm.com>
865 * frv-tdep.c (frv_register_name, frv_check_watch_resources): Replace
866 macro CURRENT_VARIANT by its expression.
867 (CURRENT_VARIANT): Remove.
868 (frv_check_watch_resources): Add gdbarch parameter.
870 2007-11-07 Markus Deuling <deuling@de.ibm.com>
872 * MAINTAINERS (Write After Approval): Add self.
874 2007-11-05 Ulrich Weigand <uweigand@de.ibm.com>
876 * features/rs6000/power-core.xml: Use uint32 as register type.
877 * features/rs6000/power64-core.xml: Use uint64/uint32 as register type.
878 * features/rs6000/powerpc-32.c: Regenerate.
879 * features/rs6000/powerpc-403.c: Regenerate.
880 * features/rs6000/powerpc-403gc.c: Regenerate.
881 * features/rs6000/powerpc-505.c: Regenerate.
882 * features/rs6000/powerpc-602.c: Regenerate.
883 * features/rs6000/powerpc-603.c: Regenerate.
884 * features/rs6000/powerpc-604.c: Regenerate.
885 * features/rs6000/powerpc-64.c: Regenerate.
886 * features/rs6000/powerpc-7400.c: Regenerate.
887 * features/rs6000/powerpc-750.c: Regenerate.
888 * features/rs6000/powerpc-860.c: Regenerate.
889 * features/rs6000/powerpc-e500.c: Regenerate.
891 2007-11-05 Joel Brobecker <brobecker@adacore.com>
893 * breakpoint.c (set_raw_breakpoint_without_location): Make static.
895 2007-11-05 Joel Brobecker <brobecker@adacore.com>
897 * breakpoint.h (create_solib_load_event_breakpoint)
898 (create_solib_unload_event_breakpoint)
899 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
900 (create_exec_event_catchpoint): Delete declaration.
901 * breakpoint.c (create_solib_load_event_breakpoint)
902 (solib_load_unload_1, create_solib_unload_event_breakpoint): Delete.
903 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
904 (create_exec_event_catchpoint): Make static.
906 2007-11-05 Joel Brobecker <brobecker@adacore.com>
908 * breakpoint.h (set_breakpoint_sal): Remove declaration.
909 * breakpoint.c (set_breakpoint_sal): Delete.
911 2007-11-05 Joel Brobecker <brobecker@adacore.com>
913 * buildsym.c (finish_block): Remove "#if 1"/"#endif" brackets.
914 (make_blockvector): Likewise. Remove FIXME comment.
916 2007-11-05 Luis Machado <luisgpm@br.ibm.com>
918 * printcmd.c: (printf_command): Add support for new DFP
919 modifiers %H, %D and %DD.
920 * configure.ac: Add check for DECFLOAT printf support.
921 * configure: Regenerated.
923 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
925 * gdbtypes.h (struct cplus_struct_type): Remove runtime_ptr member.
926 (TYPE_RUNTIME_PTR, TYPE_VTABLE, TYPE_HAS_VTABLE,
927 TYPE_PRIMARY_BASE, TYPE_VIRTUAL_BASE_LIST): Remove macros.
928 (HP_ACC_VFUNC_START, HP_ACC_VBASE_START, HP_ACC_TYPEINFO_OFFSET,
929 HP_ACC_TOP_OFFSET_OFFSET): Likewise.
930 (has_vtable, primary_base_class, virtual_base_list_length,
931 virtual_base_list_length_skip_primaries, virtual_base_index,
932 virtual_base_index_skip_primaries, class_index_in_primary_list,
933 count_virtual_fns): Remove prototypes.
934 * gdbtypes.c (has_vtable, primary_base_class, current_vbase_list,
935 virtual_base_list_aux, virtual_base_list, virtual_base_list_length,
936 virtual_base_list_length_skip_primaries, virtual_base_index,
937 virtual_base_index_skip_primaries, class_index_in_primary_list,
938 count_virtual_fns): Remove.
940 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Remove.
941 (hpacc_vtbl_ptr_name, hpacc_vtbl_ptr_type_name): Remove.
942 (cp_print_value_fields): Remove support for HP aCC vtables.
943 (cp_print_value): Likewise.
944 * c-typeprint.c (c_type_print_base): Likewise.
946 * value.h (find_rt_vbase_offset): Remove prototype.
947 * valops.c (find_rt_vbase_offset): Remove.
948 (search_struct_method): Remove support for HP aCC vtables.
949 (find_method_list): Likewise.
951 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
953 * language.h (struct language_defn): Remove la_builtin_type_vector
954 and string_char_type members.
955 * language.c (language_string_char_type): No longer consult
956 la->string_char_type.
957 (language_lookup_primitive_type_by_name): No longer consult
958 current_language->la_builtin_type_vector.
960 * language.c (unknown_language_defn, auto_language_defn,
961 local_language_defn): Adapt initializer.
962 * ada-lang.c (ada_language_defn): Likewise.
963 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn,
964 minimal_language_defn): Likewise.
965 * f-lang.c (f_language_defn): Likewise.
966 * jv-lang.c (java_language_defn): Likewise.
967 * m2-lang.c (m2_language_defn): Likewise.
968 * objc-lang.c (objc_language_defn): Likewise.
969 * p-lang.c (pascal_language_defn): Likewise.
970 * scm-lang.c (scm_language_defn): Likewise.
972 2007-11-02 Markus Deuling <deuling@de.ibm.com>
974 * frame.c (frame_id_inner): Add gdbarch parameter. Replace
975 current_gdbarch by gdbarch.
976 (frame_find_by_id, get_prev_frame_1): Use get_frame_arch to get at the
977 current architecture by frame_info.
978 * frame.h (frame_id_inner): Add gdbarch parameter.
979 * stack.c (return_command): Use get_frame_arch to get at the current
980 architecture by frame_info. Update call of frame_id_inner.
981 * infrun.c (handle_inferior_event): Likewise.
982 * dummy-frame.c (dummy_frame_push): Use get_regcache_arch to get at the
983 current architecture by regcache. Update call of frame_id_inner.
985 2007-11-02 Markus Deuling <deuling@de.ibm.com>
987 * gdbarch.sh (register_name): Add gdbarch parameter.
988 * gdbarch.{c,h}: Regenerate.
990 * target-descriptions.c (tdesc_register_name): Add gdbarch parameter.
991 (tdesc_register_name): Replace current_gdbarch by gdbarch.
992 * target-descriptions.h (tdesc_register_name): Add gdbarch parameter.
994 * xstormy16-tdep.c (xstormy16_register_name): Add gdbarch parameter.
995 * vax-tdep.c (vax_register_name): Add gdbarch parameter.
996 * spu-tdep.c (spu_register_name): Add gdbarch parameter.
997 * s390-tdep.c (s390_register_name): Add gdbarch parameter.
998 * mt-tdep.c (mt_register_name): Add gdbarch parameter.
999 (mt_registers_info): Replace current_gdbarch by gdbarch.
1000 (mt_register_reggroup_p): Add gdbarch to mt_register_name call.
1001 * mips-tdep.c (mips_register_name): Add gdbarch parameter. Replace
1002 current_gdbarch by gdbarch.
1003 (mips_register_name): Add gdbarch to tdesc_register_name call.
1004 * mep-tdep.c (mep_register_name): Add gdbarch parameter. Replace
1005 current_gdbarch by gdbarch.
1006 (mep_register_reggroup_p): Add gdbarch to mep_register_name call.
1007 * m32c-tdep.c (m32c_register_name): Add gdbarch parameter. Replace
1008 current_gdbarch by gdbarch.
1009 * m88k-tdep.c (m88k_register_name): Add gdbarch parameter.
1010 * m68k-tdep.c (m68k_register_name): Add gdbarch parameter.
1011 * m32r-tdep.c (m32r_register_name): Add gdbarch parameter.
1012 (m32r_frame_unwind_cache): Use get_frame_arch to get at the current
1013 architecture by frame_info.
1014 * iq2000-tdep.c (iq2000_register_name): Add gdbarch parameter.
1015 * ia64-tdep.c (ia64_register_name): Add gdbarch parameter.
1016 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Add gdbarch
1018 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
1019 (h8300sx_register_name): Add gdbarch parameter.
1020 * cris-tdep.c (cris_register_name, crisv32_register_name): Add
1021 gdbarch parameter. Replace current_gdbarch by gdbarch.
1022 (cris_gdbarch_init): Replace current_gdbarch by gdbarch (comment).
1023 * avr-tdep.c (avr_register_name): Add gdbarch parameter.
1024 * arm-tdep.c (arm_register_name): Add gdbarch paramete
1025 * amd64-tdep.c (amd64_register_name): Add gdbarch parameter. Update
1027 * amd64-tdep.h (amd64_register_name): Add gdbarch parameter.
1028 * amd64-linux-tdep.c (amd64_linux_register_name): Add gdbarch parameter.
1029 * alpha-tdep.c (alpha_register_name): Add gdbarch parameter.
1030 (alpha_cannot_fetch_register, alpha_cannot_store_register): Update call
1031 of alpha_register_name.
1032 * frv-tdep.c (frv_register_name): Add gdbarch parameter.
1033 * i386-tdep.c (i386_register_name): Add gdbarch parameter. Replace
1034 current_gdbarch by gdbarch.
1035 (i386_register_type): Replace ?current_gdbarch by gdbarch.
1036 * i386-tdep.h (i386_register_name): Add gdbarch parameter.
1037 * i386-linux-tdep.c (i386_linux_register_name): Add gdbarch parameter.
1039 * m68hc11-tdep.c (m68hc11_register_name): Add gdbarch parameter.
1040 (m68hc11_register_reggroup_p): Add gdbarch to call of
1041 m68hc11_register_name.
1042 * mn10300-tdep.c (mn10300_generic_register_name, am33_register_name)
1043 (am33_2_register_name): Add gdbarch parameter.
1044 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1045 architecture by frame_info.
1046 (mn10300_dump_tdep): Replace current_gdbarch by gdbarch.
1047 * rs6000-tdep.c (rs6000_register_name): Add gdbarch parameter. Replace
1048 current_gdbarch by gdbarch.
1049 * score-tdep.c (score_register_name): Add gdbarch parameter.
1050 (score_return_value, score_push_dummy_call): Replace current_gdbarch
1052 * sh64-tdep.c (sh64_register_name): Add gdbarch parameter.
1053 (sh64_compact_reg_base_num, sh64_register_convert_to_virtual)
1054 (sh64_register_convert_to_raw, sh64_fv_reg_base_num)
1055 (sh64_dr_reg_base_num, sh64_fpp_reg_base_num): Add gdbarch parameter
1056 and update caller. Replace current_gdbarch by gdbarch.
1057 (sh64_extract_return_value, sh64_store_return_value): Use
1058 get_regcache_arch to get at the current architecture by regcache.
1059 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
1060 (sh_sh3e_register_name, sh_sh2e_register_name, sh_sh2a_register_name)
1061 (sh_sh2a_nofpu_register_name, sh_sh_dsp_register_name)
1062 (sh_sh3_dsp_register_name, sh_sh4_register_name)
1063 (sh_sh4_nofpu_register_name, sh_sh4al_dsp_register_name): Add gdbarch
1065 (fv_reg_base_num, dr_reg_base_num, sh_justify_value_in_reg)
1066 (sh_next_flt_argreg): Add gdbarch parameter and update caller. Replace
1067 current_gdbarch by gdbarch.
1068 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Use
1069 get_regcache_arch to get at the current architecture by regcache.
1070 * sparc-tdep.c (sparc32_register_name): Add gdbarch parameter.
1071 * sparc64-tdep.c (sparc64_register_name): Add gdbarch parameter.
1072 * v850-tdep.c (v850_register_name, v850e_register_name): Add gdbarch
1074 (v850_unwind_sp, v850_unwind_pc): Replace current_gdbarch by gdbarch.
1075 * xtensa-tdep.c (xtensa_register_name): Add gdbarch parameter. Replace
1076 current_gdbarch by gdbarch.
1077 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1078 (xtensa_frame_prev_register): Add gdbarch parameter to
1079 xtensa_register_name call.
1081 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1083 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
1084 find_solib_trampoline_target if PC is not in .plt section.
1086 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1088 * elfread.c (elf_symtab_read): When constructing a solib trampoline
1089 minimal symbol from an undefined dynamic symbol, use proper section.
1091 2007-10-31 Markus Deuling <deuling@de.ibm.com>
1093 * arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
1094 to get at the current architecture by regcache.
1096 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1098 * libunwind-frame.c (libunwind_frame_sniffer)
1099 libunwind_frame_prev_register, libunwind_sigtramp_frame_sniffer)
1100 (libunwind_frame_cache): Use get_frame_arch to get at the current
1101 architecture by frame_info.
1102 (libunwind_get_reg_special): Replace current_gdbarch by gdbarch.
1104 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1106 * iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get
1107 at the current architecture by frame_info.
1109 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1111 * inf-child.c (inf_child_fetch_inferior_registers): Use
1112 get_regcache_arch to get at the current architecture by regcache.
1114 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1116 * inf-ptrace.c (inf_ptrace_fetch_registers)
1117 (inf_ptrace_fetch_register, inf_ptrace_store_register)
1118 (inf_ptrace_store_registers): Use get_regcache_arch to get at the
1119 current architecture by regcache.
1121 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1123 * hpux-thread.c (hpux_thread_fetch_registers)
1124 (hpux_thread_store_registers): Use get_regcache_arch to get at the
1125 current architecture by regcache.
1127 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1129 * hppa-tdep.c (hppa_frame_cache): Use get_frame_arch to get at the
1130 current architecture by frame_info.
1132 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1134 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
1135 (go32_store_registers): Use get_regcache_arch to get at the current
1136 architecture by regcache.
1138 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1140 * gdbtypes.c (gdbtypes_post_init): Replace current_gdbarch by gdbarch.
1142 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1144 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Use get_frame_arch
1145 to get at the current architecture by frame_info.
1147 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1149 * f-lang.c (build_fortran_types): Replace current_gdbarch by gdbarch.
1151 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1153 * core-regset.c (fetch_core_registers): Use get_regcache_arch to get at
1154 the current architecture by regcache.
1156 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1158 * corelow.c (get_core_registers): Use get_regcache_arch to get at the
1159 current architecture by regcache.
1161 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1163 * bsd-uthread.c (bsd_uthread_fetch_registers)
1164 (bsd_uthread_store_registers): Use get_regcache_arch to get at the
1165 current architecture by regcache.
1167 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1169 * avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
1170 get_frame_arch to get at the current architecture by frame_info.
1172 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1174 * arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
1176 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1178 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
1179 (store_regs): Use get_regcache_arch to get at the current architecture
1182 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1184 * arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
1185 to get at the current architecture by regcache.
1187 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1189 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
1190 (alphabsd_store_inferior_registers): Use get_regcache_arch to get at
1191 the current architecture by regcache.
1193 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1195 * ada-lang.c (ada_language_arch_info): Replace current_gdbarch by
1198 2007-10-30 Daniel Jacobowitz <dan@codesourcery.com>
1200 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Check the selected
1201 soft float and vector ABIs. Support the generic vector ABI for
1203 (do_ppc_sysv_return_value): Likewise. Correct argument types and
1205 (ppc64_sysv_abi_push_dummy_call): Assert that floating point is
1207 * ppc-tdep.h (enum powerpc_vector_abi): New.
1208 (struct gdbarch_tdep): Add soft_float and vector_abi.
1209 * rs6000-tdep.c (setpowerpccmdlist, showpowerpccmdlist)
1210 (powerpc_soft_float_global, powerpc_vector_strings)
1211 (powerpc_vector_abi_global, powerpc_vector_abi_string): New.
1212 (rs6000_gdbarch_init): Check for soft-float and vector ABI markings.
1213 (set_powerpc_command, show_powerpc_command, powerpc_set_soft_float)
1214 (powerpc_set_vector_abi): New.
1215 (_initialize_rs6000_tdep): Register "set powerpc" and "show powerpc"
1217 * Makefile.in (elf_ppc_h): New.
1218 (rs6000-tdep.o): Update.
1220 2007-10-29 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1222 * ppc-linux-tdep.c (ppc32_linux_reg_offsets): Corrected
1223 swapped offsets and VRSAVE offset.
1224 (ppc64_linux_reg_offsets): Corrected swapped offsets.
1225 (ppc32_linux_vrregset): Added.
1226 (ppc_linux_regset_from_core_section): Added support for
1227 .reg-ppc-vmx section.
1228 * ppc-tdep.h (ppc_altivec_support_p): Declare.
1229 (ppc_supply_vrregset): Declare.
1230 (ppc_collect_vrregset): Declare.
1231 * rs6000-tdep.c (ppc_altivec_support_p): Added.
1232 (ppc_supply_vrregset): Added.
1233 (ppc_collect_vrregset): Added.
1234 * corelow.c (get_core_registers): Added support for
1235 .reg-ppc-vmx section.
1237 2007-10-29 Joel Brobecker <brobecker@adacore.com>
1241 2007-10-26 Jim Blandy <jimb@codesourcery.com>
1243 * ax-gdb.h (expr_to_address_and_size): Delete declaration for
1246 * tracepoint.c (tracepoint_operation): Report the deletion event
1247 after we have unlinked the tracepoint from the list, and use the
1248 proper tracepoint number.
1250 * ax-gdb.c (expr_to_agent): Delete unused function.
1251 (expr_to_address_and_size): Delete #if 0'd function.
1252 * ax-gdb.h (expr_to_agent): Delete declaration.
1254 * ax-gdb.c (gen_cast): Remove redundant assignment to
1255 value->type. Doc fix.
1257 * ax-general.c (gen_traced_pop, gen_int_literal)
1258 (gen_usual_arithmetic): Check for typedefs.
1260 2007-10-26 Joel Brobecker <brobecker@adacore.com>
1262 * parse.c (prefixify_expression): Minor reformatting.
1264 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1266 * version.in: Use dot instead of dash.
1268 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1270 * linux-thread-db.c (check_for_thread_db): Only print if info_verbose.
1272 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1274 * memory-map.c (parse_memory_map): Don't use an empty struct
1277 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1279 * signals/signals.c (signals): Update pointer to enum
1280 target_signal declaration.
1282 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1283 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1284 Jim Blandy <jimb@codesourcery.com>
1286 * dwarf2read.c (read_partial_die): check the value
1287 of DW_AT_calling_convention in Fortran programs.
1289 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1290 Thiago Jung Bauermann <bauerman@br.ibm.com>
1292 * c-exp.y (YYSTYPE): Add typed_val_decfloat for decimal
1293 floating point in YYSTYPE union.
1294 (DECFLOAT) Add token and expression element handling code.
1295 (parse_number): Parse DFP constants, which end with suffix 'df',
1296 'dd' or 'dl'. Return DECFLOAT.
1297 * eval.c (evaluate_subexp_standard): Call value_from_decfloat to
1299 * expression.h (enum exp_opcode): Add an opcode (OP_DECFLOAT)
1301 (union exp_element): Add decfloatconst to represent DFP
1302 elements, which is 16 bytes by default.
1303 * parse.c (write_exp_elt_decfloatcst): New function to write a
1304 decimal float const into the expression.
1305 (operator_length_standard): Set operator length for OP_DECFLOAT
1307 * parser-defs.h (write_exp_elt_decfloatcst): Prototype.
1308 * valarith.c (value_neg): Add code to handle the negation
1309 operation of DFP values.
1310 * value.c (value_from_decfloat): New function to get the value
1311 from a decimal floating point.
1312 * value.h (value_from_decfloat): Prototype.
1314 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1315 Thiago Jung Bauermann <bauerman@br.ibm.com>
1317 * c-lang.c (c_create_fundamental_type): Create fundamental
1319 * c-typeprint.c (c_type_print_varspec_prefix): Add
1320 TYPE_CODE_DECFLOAT to no prefix needed case.
1321 (c_type_print_varspec_suffix): Add TYPE_CODE_DECFLOAT to no
1323 * c-valprint.c (c_val_print): Call print_decimal_floating to
1325 * dwarf2read.c (read_base_type): Read DW_ATE_decimal_float
1326 attribute code and return TYPE_CODE_DECFLOAT.
1327 (dwarf_base_type): Set dwarf2_fundamental_type for DFP values.
1328 * gdbtypes.c (gdbtypes_post_init): Initialize builtin_decfloat,
1329 builtin_decdouble and builtin_declong.
1330 * gdbtypes.h (enum type_code): Add TYPE_CODE_DECFLOAT as a
1332 (FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT): New
1333 types, for decimal floating point.
1334 (FT_NUM_MEMBERS): Increment, new types added.
1335 (struct builtin_type): Add builtin_decfloat, builtin_decdouble
1336 and builtin_declong.
1337 * valprint.c (print_decimal_floating): New function to print DFP
1339 * value.h (print_decimal_floating): Prototype.
1341 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1342 Thiago Jung Bauermann <bauerman@br.ibm.com>
1344 * Makefile.in (LIBDECNUMBER_DIR, LIBDECNUMBER, LIBDECNUMBER_SRC
1345 LIBDECNUMBER_CFLAGS): New macros for libdecnumber.
1346 (INTERNAL_CFLAGS_BASE): Add LIBDECNUMBER_CFLAGS in.
1347 (INSTALLED_LIBS): Add -ldecnumber in.
1348 (CLIBS): Add LIBDECNUMBER in.
1349 (decimal128_h, decimal64_h, decimal32_h): New macros for decimal
1351 (dfp_h): New macros for decimal floating point.
1352 (dfp.o): New target.
1353 (COMMON_OBS): Add dfp.o in.
1354 (c-exp.o): Add dfp_h as dependency.
1355 (valprint.o): Add dfp_h as dependency.
1356 (value.o): Add dfp_h as dependency.
1357 * dfp.h: New header file for decimal floating point support in
1359 * dfp.c: New source file for decimal floating point support in
1360 GDB. Implement decimal_from_string and decimal_to_string based
1361 on libdecnumber API.
1362 * configure.ac: Add AC_C_BIGENDIAN test.
1363 * config.in, configure: Regenerate.
1365 2007-10-25 David Ung <davidu@mips.com>
1366 Maciej W. Rozycki <macro@mips.com>
1369 * infcmd.c (registers_info): Check for a user register before
1370 calling target's gdbarch_print_registers_info(). If found to be
1371 so, extract the implicit value of user register and call
1372 print_scalar_formatted().
1373 * Makefile.in: (infcmd.o): Add $(user_regs_h).
1375 2007-10-25 Joel Brobecker <brobecker@adacore.com>
1377 * NEWS: Document status of hppa64-hpux support.
1379 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1381 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1382 set_solib_ops to install SVR4 operations.
1383 (_initialize_svr4_solib): Do not set current_target_so_ops.
1385 * config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
1386 * config/i386/i386gnu.mt (TDEPFILES): ... to here.
1388 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1390 * solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1391 (solib_svr4_init): Initialize fetch_link_map_offsets to NULL.
1392 * solib-svr4.h (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1393 * solib-legacy.c: Remove file.
1395 * config/alpha/alpha-linux.mt (TDEPFILES): Remove solib-legacy.o.
1396 * config/arm/linux.mt (TDEPFILES): Likewise.
1397 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1398 * config/ia64/linux.mt (TDEPFILES): Likewise.
1399 * config/m32r/linux.mt (TDEPFILES): Likewise.
1400 * config/powerpc/linux.mt (TDEPFILES): Likewise.
1401 * config/s390/s390.mt (TDEPFILES): Likewise.
1403 * alpha-linux-tdep.c (alpha_linux_init_abi): Call
1404 set_solib_svr4_fetch_link_map_offsets.
1405 * i386gnu-tdep.c (i386gnu_init_abi): Likewise.
1406 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
1408 * i386gnu-tdep.c: Include "solib-svr4.h".
1409 * Makefile.in: Update dependencies.
1411 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1413 * i386-nto-tdep.c: Include "solib.h".
1414 (i386nto_init_abi): Use set_solib_ops instead of overwriting
1415 current_target_so_ops members.
1416 * solist.h (TARGET_SO_RELOCATE_SECTION_ADDRESSES): Remove.
1417 (TARGET_SO_FIND_AND_OPEN_SOLIB): Remove.
1418 (TARGET_SO_IN_DYNSYM_RESOLVE_CODE): Remove.
1419 * Makefile.in: Update dependencies.
1421 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1423 * arm-wince-tdep.c: Include "solib.h" and "solib-target.h".
1424 (arm_wince_init_abi): Call set_solib_ops.
1425 * i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
1426 (i386_cygwin_init_abi): Call set_solib_ops.
1427 * solib-target.c: Include "solib-target.h".
1428 (solib_target_so_ops): Make global.
1429 (_initialize_solib_target): Do not set current_target_so_ops.
1430 * solib-target.h: New file.
1431 * Makefile.in: Update dependencies.
1433 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1435 * mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
1436 (mips_irix_init_abi): Call set_solib_ops.
1437 * solib-irix.c: Include "solib.h" and "solib-irix.h".
1438 (irix_so_ops): Make global.
1439 (_initialize_irix_solib): Do not set current_target_so_ops.
1440 * solib-irix.h: New file.
1441 * Makefile.in: Update dependencies.
1443 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1445 * configure.tgt: Remove hppa*64*-*-hpux11* special case.
1446 * config/pa/hppa64.mt: Delete file.
1447 * config/pa/hppahpux.mt (MT_CFLAGS): Remove.
1448 (TDEPFILES): Move somread.o to ...
1449 * config/pa/hpux.mh (NATDEPFILES): ... here.
1451 * configure.ac: Add check for elf_hp.h header.
1452 Search libdl and libxpdl for dlgetmodinfo.
1453 * config.in, configure: Regenerate.
1454 * solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
1455 instead of #ifndef PA_SOM_ONLY. Include "solib.h".
1456 (pa64_solib_select): Take gdbarch instead of tdep argument. Call
1457 set_solib_ops instead of modifying current_target_so_ops.
1458 * solib-pa64.h (pa64_solib_select): Update prototype.
1459 * solib-som.c: Remove include of "som.h". Include "solib.h".
1460 (som_solib_select): Take gdbarch instead of tdep argument. Call
1461 set_solib_ops instead of modifying current_target_so_ops.
1462 * solib-som.h (som_solib_select): Update prototype.
1463 * hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
1464 of tdep to som_solib_select call.
1465 (hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
1466 pa64_solib_select call.
1467 * Makefile.in: Update dependencies.
1469 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1471 * frv-tdep.c: Include "solib.h".
1472 (frv_gdbarch_init): Call set_solib_ops.
1473 * frv-tdep.h (struct target_so_ops): Add forward reference.
1474 (frv_so_ops): Add extern declaration.
1475 * solib-frv.c (frv_so_ops): Make global.
1476 (_initialize_frv_solib): Do not set current_target_so_ops.
1477 * Makefile.in: Update dependencies.
1479 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1481 * solib.c (solib_global_lookup): Use solib_ops instead of global
1482 current_target_so_ops.
1484 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1486 * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
1487 * config/frv-tm-frv.h: Delete file.
1489 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
1491 * NEWS: Mention gdbserver support for non-libthread_db operation.
1493 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
1495 * amd64-tdep.c (amd64_convert_register_p): Delete.
1496 (amd64_init_abi): Use i387_convert_register_p.
1497 * alpha-tdep.c (alpha_convert_register_p): Return zero for
1499 (alpha_register_to_value, alpha_value_to_register): Do not handle
1501 * i386-tdep.c (i386_convert_register_p): Use i387_convert_register_p.
1502 * i387-tdep.c (i387_convert_register_p): New.
1503 (i387_register_to_value, i387_value_to_register): Update comments.
1504 * i387-tdep.h (i387_convert_register_p): Declare.
1505 * ia64-tdep.c (ia64_convert_register_p): Return zero for
1506 builtin_type_ia64_ext.
1507 (ia64_gdbarch_init): Do not initialize builtin_type_ia64_ext here.
1508 (_initialize_ia64_tdep): Initialize builtin_type_ia64_ext here.
1509 * m68k-tdep.c (m68k_convert_register_p): Return zero for
1510 builtin_type_m68881_ext.
1511 (m68k_register_to_value, m68k_value_to_register): Update comments.
1513 2007-10-24 Nathan Sidwell <nathan@codesourcery.com>
1515 * target-memory.c (claim_memory): Propagate baton for split memory
1518 2007-10-24 Pedro Alves <pedro_alves@portugalmail.pt>
1521 * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
1524 2007-10-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1526 * symtab.c (find_line_symtab): scan through psymtabs
1527 when exact_match is zero.
1529 2007-10-23 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
1531 * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
1532 (deal_with_atomic_sequence): New.
1533 (mips_software_single_step): Use it.
1535 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
1538 * configure.ac: Modify $LIBINTL before the BFD check.
1539 * configure: Regenerated.
1541 2007-10-23 Joel Brobecker <brobecker@adacore.com>
1543 * buildsym.c (free_pending_blocks): Remove commented-out code.
1544 (make_blockvector): Likewise. Re-use free_pending_blocks.
1545 (end_symtab): Remove commented-out code.
1547 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1549 * top.c (command_loop): Fix output for shrinkage.
1551 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1553 * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
1554 (exp): Remove and document function-like casts.
1556 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1558 * cp-support.c: Include "safe-ctype.h".
1559 (cp_already_canonical): New function.
1560 (cp_canonicalize_string): Use it. Return NULL for already canonical
1562 (mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
1563 (cp_func_name, remove_params): Likewise.
1564 (cp_find_first_component_aux): Use ISSPACE.
1565 * cp-support.h (cp_demangled_name_to_comp): Correct comment. Remove
1567 * cp-name-parser.y (ALLOC_CHUNK): Define.
1568 (struct demangle_info): Add PREV and NEXT. Increase the size of
1570 (d_grab): Convert to a function.
1571 (allocate_info): Rewrite.
1572 (cp_demangled_name_to_comp): Remove MEMORY argument. Do not use
1573 strlen. Update call to allocate_info. Do not free it on failure.
1574 (main): Update calls to cp_demangled_name_to_comp.
1575 * Makefile.in (cp-support.o): Update.
1577 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1579 * std-regs.c (value_of_builtin_frame_fp_reg)
1580 value_of_builtin_frame_pc_reg, value_of_builtin_frame_sp_reg)
1581 value_of_builtin_frame_ps_reg): Use get_frame_arch to get at the
1582 current architecture by frame_info.
1584 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1586 * reggroups.c (default_register_reggroup_p): Replace current_gdbarch
1589 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1591 * infcmd.c (default_print_registers_info, print_return_value)
1592 (print_vector_info, print_float_info): Replace current_gdbarch by
1594 (registers_info): Use get_frame_arch to get at the current
1595 architecture by frame_info.
1597 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1599 * i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
1600 get_regcache_arch to get at the current architecture by regcache.
1602 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1604 * target.c (debug_print_register): Use get_regcache_arch to get at the
1605 current architecture by regcache.
1607 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
1609 * dwarf2read.c (read_file_scope): Add a comment.
1610 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_type)
1611 (read_enumeration_type, process_enumeration_scope, read_array_type)
1612 (read_typedef, read_base_type, read_subrange_type)
1613 (read_unspecified_type): Use dwarf2_name.
1615 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
1617 * coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
1618 * dwarf2read.c (dwarf2_free_objfile): New.
1619 * elfread.c (elf_symfile_finish): Call dwarf2_free_objfile.
1620 * symfile.h (dwarf2_free_objfile): Declare.
1622 2007-10-21 Joel Brobecker <brobecker@adacore.com>
1624 * hppa-hpux-nat.c (hppa_hpux_store_register): Add missing semi-colon.
1626 2007-10-21 Luis Machado <luisgpm@br.ibm.com>
1628 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
1629 * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
1630 default dwarf2_frame_set_init_reg function.
1632 2007-10-21 Pedro Alves <pedro_alves@portugalmail.pt>
1634 * NEWS: Mention native MinGW configuration.
1636 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1638 * gdbarch.sh: Remove "macro" column of input table. Remove handling
1639 of "macro" column throughout the file. Remove (empty) "macro" entry
1640 of all gdbarch functions.
1642 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1644 * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
1645 * gdbarch.c, gdbarch.h: Regenerate.
1646 * dbxread.c (find_stab_function_addr): Define unconditionally.
1647 (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
1648 instead of SOFUN_ADDRESS_MAYBE_MISSING.
1649 (end_psymtab): Likewise.
1650 (process_one_symbol): Likewise.
1651 * mdebugread.c (parse_partial_symbols): Likewise.
1653 * symtab.h (struct minimal_symbol): Always define "filename" member.
1654 * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
1655 * minsyms.c (lookup_minimal_symbol): Likewise.
1656 * symmisc.c (dump_msymbols): Likewise.
1658 * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
1659 * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
1660 * config/i386/tm-i386sol2.h: Remove file.
1661 * config/i386/tm-linux.h: Remove file.
1662 * i386-linux-tdep.c (i386_linux_init_abi): Add call to
1663 set_gdbarch_sofun_address_maybe_missing.
1664 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
1666 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
1667 * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
1668 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
1669 * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
1670 * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
1671 * config/powerpc/tm-ppc-eabi.h: Remove file.
1672 * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
1673 set_gdbarch_sofun_address_maybe_missing.
1675 * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
1676 * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
1677 * config/sparc/tm-sol2.h: Remove file.
1678 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
1679 set_gdbarch_sofun_address_maybe_missing.
1680 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
1682 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1684 * gdbarch.sh (static_transform_name): New gdbarch callback.
1685 * gdbarch.c, gdbarch.h: Regenerate.
1686 * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
1687 instead of STATIC_TRANSFORM_NAME.
1688 * mdebugread.c (parse_partial_symbols): Likewise.
1689 * stabsread.c (define_symbol): Likewise.
1690 * xcoffread.c (scan_xcoff_symtab): Likewise.
1692 * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
1693 (IS_STATIC_TRANSFORM_NAME): Remove.
1694 * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
1695 * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
1696 (i386_sol2_init_abi): Install it.
1698 * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
1699 (IS_STATIC_TRANSFORM_NAME): Remove.
1700 * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
1701 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
1702 (sparc32_sol2_init_abi): Install it.
1703 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
1704 * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
1706 2007-10-18 Daniel Jacobowitz <dan@codesourcery.com>
1708 * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
1709 (mips_n32n64_return_value, mips_o32_return_value)
1710 (mips_o64_return_value): Update calls to mips_xfer_register.
1712 2007-10-17 Daniel Jacobowitz <dan@codesourcery.com>
1714 * frame.c (frame_unwind_unsigned_register): Delete.
1715 (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
1716 * frame.h (frame_unwind_unsigned_register): Delete prototype.
1718 * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
1719 avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
1720 mt-tdep.c: Replace frame_unwind_unsigned_register with
1721 frame_unwind_register_unsigned.
1723 2007-10-16 Pedro Alves <pedro_alves@portugalmail.pt>
1725 * config/i386/mingw.mh, config/i386/mingw.mt: New files.
1726 * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
1727 * win32-nat.c: Only include cygwin.h on Cygwin host. Don't
1729 (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
1730 if not building on Cygwin.
1731 (win32_make_so, handle_output_debug_string, handle_exception)
1732 (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
1733 (win32_attach): Only fallback to Cygwin pids if building on
1735 (win32_pid_to_exec_file): Disable Cygwin specific code, if not
1737 (win32_create_inferior): Disable starting the inferior through a
1738 shell, environment var processing and tty handling if not building
1740 (cygwin_pid_to_str): Rename to ...
1741 (win32_pid_to_str): ... this.
1742 (init_win32_ops): Update use of win32_pid_to_str. Disable "shell"
1743 and "cygwin-exceptions" commands if not building on Cygwin.
1745 2007-10-16 Gaius Mulley <gaius@glam.ac.uk>
1747 * doc/gdb.texinfo: Add TSIZE definition, removed
1748 statement about unbounded arrays being unimplemented.
1749 * m2-valprint.c (m2_print_array_contents): New function.
1750 (m2_print_unbounded_array): New function.
1751 (m2_print_array_contents): New function.
1752 * m2-typeprint.c (m2_unbounded_array): New function.
1753 (m2_is_unbounded_array): New function.
1754 (m2_print_type): Test for unbounded array when walking
1756 * m2-lang.h: Added extern m2_is_unbounded_array.
1757 * m2-lang.c (evaluate_subexp_modula2): New function.
1758 (exp_descriptor_modula2): New structure.
1759 (m2_language_defn): Use exp_descriptor_modula2.
1760 * m2-exp.y: Added TSIZE and binary subscript.
1762 2007-10-16 Daniel Jacobowitz <dan@codesourcery.com>
1764 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
1767 2007-10-16 Kevin Buettner <kevinb@redhat.com>
1769 * m32r-tdep.c (decode_prologue): Sign extend offset for
1771 (m32r_frame_unwind_cache): Likewise.
1773 2007-10-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
1775 * rs6000-tdep.c (skip_prologue): Restore comment with
1776 function description to its proper place.
1778 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1780 * NEWS: Mention gdbserver PowerPC improvements.
1782 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1784 * features/Makefile (WHICH): Add PowerPC register definitions.
1785 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
1786 (rs6000/powerpc-64-expedite): New macros.
1787 ($(outdir)/%.dat): Handle subdirectories.
1788 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
1789 regformats/rs6000/powerpc-e500.dat: New generated files.
1791 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1793 * ppc-linux-nat.c (ppc_linux_read_description): New.
1794 (_initialize_ppc_linux_nat): Set to_read_description.
1795 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
1797 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1799 * NEWS: Document target described register support for PowerPC.
1800 * ppc-tdep.h: Remove ppc_spr constants.
1801 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
1802 ppc_builtin_type_vec128 members.
1803 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
1804 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
1805 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
1806 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
1807 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
1808 * rs6000-tdep.c: Include preparsed descriptions.
1809 (init_sim_regno_table): Do not iterate over pseudo registers.
1810 Look up segment registers by name. Use sim_spr_register_name
1812 (rs6000_register_sim_regno): Call init_sim_regno_table here.
1813 (rs6000_builtin_type_vec128): Delete.
1814 (rs6000_register_name): Only handle SPE pseudo registers and upper
1815 halves. Call tdesc_register_name for everything else.
1816 (rs6000_register_type): Delete. Replace with...
1817 (rs6000_pseudo_register_type): ...this new function. Only handle
1818 SPE pseudo registers.
1819 (rs6000_register_reggroup_p): Delete. Replace with...
1820 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
1821 handle SPE pseudo registers.
1822 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
1824 (rs6000_register_to_value, rs6000_value_to_register): Remove check
1826 (e500_register_reggroup_p): Delete.
1827 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
1828 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
1829 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
1830 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
1831 (registers_powerpc, registers_403, registers_403GC, registers_505)
1832 (registers_860, registers_601, registers_602, registers_603)
1833 (registers_604, registers_750, registers_7400, registers_e500): Delete
1835 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
1837 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
1838 (variants): Delete outdated comment. Use standard target descriptions
1839 instead of "struct reg" arrays.
1840 (init_variants): Delete.
1841 (rs6000_gdbarch_init): Do not guess word size from the BFD
1842 architecture if we have a target description. Select a variant
1843 before creating a new architecture. Use the variant's target
1844 description if the target did not define a register layout.
1845 Validate target-supplied registers. Reject mismatches. Use
1846 fixed register numbers and new constants instead of magic
1847 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
1848 (_initialize_rs6000_tdep): Initialize the preparsed target
1850 * target-descriptions.c (tdesc_predefined_types): Add int128 and
1852 (tdesc_find_register_early): New function.
1853 (tdesc_numbered_register): Use it.
1854 (tdesc_register_size): New function.
1855 (tdesc_use_registers): Take a target_desc argument. Do not use
1856 gdbarch_target_desc.
1857 * target-descriptions.h (tdesc_use_registers): Update prototype
1859 (tdesc_register_size): New prototype.
1860 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
1861 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
1862 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
1863 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
1864 (rs6000-tdep.o): Update.
1865 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
1866 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
1867 * mips-tdep.c (mips_gdbarch_init): Likewise.
1869 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1871 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
1872 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
1873 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
1874 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
1875 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
1876 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
1877 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
1880 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1882 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
1883 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
1884 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
1885 feature descriptions for standard PowerPC register sets.
1887 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
1888 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
1889 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
1890 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
1891 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
1892 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
1893 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
1894 target descriptions for PowerPC processors.
1896 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1898 * target-descriptions.c (tdesc_predefined_types): New.
1899 (tdesc_named_type): Use it.
1900 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
1901 (_intialize_target_descriptions): Register "maint print c-tdesc".
1902 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
1903 (cfiles, %.c): New rules.
1904 * features/arm-with-iwmmxt.c, features/mips-linux.c,
1905 features/mips64-linux.c: New generated files.
1907 * arm-linux-nat.c: Include preparsed description instead of
1909 (super_xfer_partial, arm_linux_xfer_partial): Remove.
1910 (arm_linux_read_description): New function.
1911 (_initialize_arm_linux_nat): Set to_read_description instead of
1912 to_xfer_partial. Initialize preparsed description.
1913 * config/arm/linux.mh (TDEP_XML): Delete.
1914 * mips-linux-nat.c: Include preparsed descriptions instead of
1916 (super_xfer_partial, mips_linux_xfer_partial): Remove.
1917 (mips_linux_read_description): New function.
1918 (_initialize_mips_linux_nat): Set to_read_description instead of
1919 to_xfer_partial. Initialize preparsed description.
1920 * config/mips/linux.mh (TDEP_XML): Delete.
1921 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
1922 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
1923 (mips64_linux_c): New macros.
1924 (arm-linux-nat.o, mips-linux-nat.o): Update.
1926 2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
1928 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
1929 Replace xasprintf by xstrprintf.
1930 symfile-mem.c (add_vsyscall_page): Ditto.
1932 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1934 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
1935 replacing use of global current_gdbarch.
1936 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
1937 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
1939 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
1940 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
1941 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
1942 (ia64_sigtramp_frame_cache): Update caller.
1944 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1946 * gdbarch.sh (deprecated_use_struct_convention): Remove.
1947 (extract_return_value, store_return_value): Remove.
1948 (return_value): Remove default implementation.
1949 * gdbarch.c, gdbarch.h: Regenerate.
1951 * stack.c (return_command): Remove compatibility hack.
1952 * arch-utils.c (legacy_return_value): Remove.
1953 * arch-utils.h (legacy_return_value): Likewise.
1955 * arch-utils.c (always_use_struct_convention): Remove.
1956 * arch-utils.h (always_use_struct_convention): Likewise.
1957 * value.c (generic_use_struct_convention): Remove.
1958 * defs.h (generic_use_struct_convention): Likewise.
1960 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1962 * avr-tdep.c (avr_return_value): New function.
1963 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
1964 set_gdbarch_extract_return_value.
1966 * fvr-tdep.c (frv_return_value): New function.
1967 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
1968 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
1969 and set_gdbarch_deprecated_use_struct_convention.
1971 * ia64-tdep.c (ia64_use_struct_convention): Make static.
1972 Add check for structure, union, or array types.
1973 (ia64_extract_return_value): Make static.
1974 (ia64_store_return_value): Make static. Support multi-word values.
1975 (ia64_return_value): New function.
1976 (ia64_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 2007-10-12 Joel Brobecker <brobecker@adacore.com>
1982 * solib-target.c (solib_target_parse_libraries)
1983 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
1985 2007-10-12 Jim Blandy <jimb@codesourcery.com>
1987 * serial.h (struct serial_ops): Document read_prim to return zero
1989 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
1990 read_prim returns zero, not SERIAL_TIMEOUT.
1992 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
1994 * alpha-mdebug-tdep.c: Include "gdb_string.h".
1995 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
1996 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
1997 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
1999 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
2000 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
2001 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
2002 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
2003 * config/alpha/tm-alpha.h: Remove file.
2005 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2007 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
2008 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
2010 * config/pa/tm-hppa.h: Delete file.
2011 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
2012 * config/pa/hppahpux.mt: Likewise.
2013 * config/pa/hppa.mt: Likewise.
2014 * config/pa/linux.mt: Likewise.
2015 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
2017 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2019 * config/arm/nm-nbsdaout.h: Remove file.
2020 * config/nm-nbsdaout.h: Likewise.
2021 * config/nm-nbsd.h: Likewise.
2023 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2025 * block.h (struct block): Remove "gcc_compile_flag" member.
2026 (BLOCK_GCC_COMPILED): Remove.
2027 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
2028 * buildsym.c (finish_block): Do not set it.
2029 * symmisc.c (dump_symtab_1): Do not dump it.
2031 * value.h (using_struct_return): Remove "gcc_p" argument.
2032 * value.c (using_struct_return): Likewise.
2033 * eval.c (evaluate_subexp_standard): Adapt callers.
2034 * infcall.c (call_function_by_hand): Likewise.
2035 * stack.c (return_command): Likewise.
2036 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2038 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
2039 * gdbarch.c, gdbarch.h: Regenerate.
2040 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
2041 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
2042 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2043 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
2044 (push_dummy_code, call_function_by_hand): Adapt callers.
2046 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2048 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
2049 (finish_command_continuation, finish_command): Adapt callers.
2051 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2053 * infcall.c (call_function_by_hand): Remove special handling
2054 for HP aCC compiled code.
2056 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2058 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
2059 reference. Fix endianness bugs.
2060 (cris_reg_struct_has_address): Remove.
2061 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
2062 and set_gdbarch_deprecated_use_struct_convention calls.
2064 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
2065 * gdbarch.c, gdbarch.h: Regenerate.
2066 * infcall.c (call_function_by_hand): Remove handling of
2067 deprecated_reg_struct_has_addr.
2069 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2070 Kazu Hirata <kazu@codesourcery.com>
2072 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
2073 checking watchpoint resources.
2075 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2077 * memattr.c (inaccessible_by_default): Change the initial
2080 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2083 * coffread.c (read_one_sym): Check for read errors.
2085 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
2087 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
2088 instead of "Linux 2.6.19" in comment.
2089 (linux_xfer_partial): Use "GNU/Linux target" instead of
2090 "Linux target" in comment.
2091 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
2092 (m68k_linux_get_sigtramp_info): Likewise.
2094 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2096 * MAINTAINERS (language support): List Joel and Paul as
2099 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2101 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
2103 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
2104 not set DEPRECATED_TM_FILE.
2105 * config/arm/tm-arm.h: Delete file.
2107 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
2109 * MAINTAINERS (Write After Approval): Add self.
2111 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2113 * buildsym.c (record_line): Remove empty lines followed by
2114 end-of-sequence markers.
2116 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2118 * configure.tgt: Recognize fido-*-elf.
2120 2007-10-10 Joel Brobecker <brobecker@adacore.com>
2124 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2126 * stack.c (print_frame_args, frame_info, return_command): Use
2127 get_regcache_arch or get_frame_arch to get at the current architecture
2128 by regcache or by frame, respectively.
2130 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2132 * rs6000-nat.c (fetch_register, store_register)
2133 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
2134 get_regcache_arch to get at the current architecture by regcache.
2136 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
2137 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
2138 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
2139 current_gdbarch by gdbarch.
2140 (rs6000_skip_trampoline_code, rs6000_register_to_value)
2141 (rs6000_value_to_register): Use get_frame_arch to get at the current
2142 architecture by frame_info.
2144 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2146 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
2147 get_regcache_arch to get at the current architecture by regcache.
2149 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2150 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
2151 get_regcache_arch to get at the current architecture by regcache.
2153 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
2154 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2155 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
2156 current architecture by regcache.
2158 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2160 * remote-mips.c (mips_wait, mips_fetch_registers)
2161 (mips_store_registers): Use get_regcache_arch to get at the
2162 current architecture by regcache.
2164 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
2165 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
2166 get at the current architecture by regcache.
2167 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
2168 architecture by frame_info.
2170 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2171 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
2172 the current architecture by regcache.
2174 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2175 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
2176 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
2177 current architecture by frame_info.
2178 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
2179 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
2180 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
2181 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
2182 get at the current architecture by regcache.
2184 * mips-linux-nat.c (mips_linux_register_addr)
2185 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
2186 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
2187 (mips64_linux_regsets_fetch_registers)
2188 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
2189 the current architecture by regcache.
2191 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
2192 get at the current architecture by frame_info.
2194 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2196 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
2197 current architecture by regcache.
2198 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
2199 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
2200 (mips_stub_frame_cache, mips_read_fp_register_single)
2201 (mips_read_fp_register_double, mips_print_fp_register)
2202 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
2203 at the current architecture by frame_info.
2204 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
2205 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
2206 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
2207 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
2208 (mips_o32_push_dummy_call, mips_o32_return_value)
2209 (mips_o64_push_dummy_call, mips_o64_return_value)
2210 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
2213 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2215 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
2216 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
2217 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
2218 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
2219 (xtensa_register_write_masked, xtensa_register_read_masked)
2220 (xtensa_supply_gregset, xtensa_store_return_value)
2221 (xtensa_extract_return_value): Use get_regcache_arch to get at the
2222 current architecture by regcache.
2223 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
2224 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
2225 architecture by frame_info.
2227 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2229 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
2230 (thumb_analyze_prologue): Move pv_area_store_would_trash call
2231 out of loop. Do not set cache->frameoffset.
2232 (arm_scan_prologue): Use prologue-value mechanism. Do not set
2233 frameoffset. Simplify framesize.
2234 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
2236 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
2238 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2240 * target.c (update_current_target): Call setup_target_debug.
2241 (push_target): Do not call it here.
2243 2007-10-09 Michael Snyder <msnyder@specifix.com>
2245 * MAINTAINERS: Update my email address.
2247 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2249 * xtensa-tdep.c: Replace following current-gdbarch based macros by
2251 (xtensa_pseudo_register_read)
2252 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
2253 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
2254 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
2255 (xtensa_pseudo_register_read)
2256 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
2257 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
2258 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
2259 (xtensa_frame_prev_register): NUM_AREGS.
2260 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
2261 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
2262 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
2263 (xtensa_supply_gregset, xtensa_frame_cache)
2264 (xtensa_frame_prev_register): WS_REGNUM.
2265 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
2266 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
2267 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
2268 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2269 (xtensa_register_reggroup_p): REGMAP.
2270 (call0_track_op): LITBASE_REGNUM.
2271 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
2272 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
2273 (xtensa_frame_prev_register, AREG_NUMBER)
2274 (xtensa_register_type): AR_BASE.
2275 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
2276 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
2277 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2278 (xtensa_frame_cache, xtensa_frame_prev_register)
2279 (xtensa_extract_return_value, xtensa_store_return_value)
2280 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
2281 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
2282 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
2283 (xtensa_frame_prev_register, xtensa_push_dummy_call)
2284 (call0_frame_cache): A1_REGNUM.
2285 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
2286 (xtensa_push_dummy_call): A4_REGNUM.
2287 (ARGS_FIRST_REG): A6_REGNUM.
2288 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2289 (xtensa_frame_prev_register): A15_REGNUM.
2290 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
2291 them in the appropriate source file:
2292 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
2293 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
2294 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
2295 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
2296 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
2297 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
2298 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
2299 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
2300 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
2301 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
2302 A13_REGNUM, A14_REGNUM, A15_REGNUM.
2304 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2306 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
2307 the current architecture by frame_info.
2308 (h8300_frame_prev_register
2309 (h8300_print_register): Replace current_gdbarch by gdbarch.
2310 (h8300_print_registers_info, h8300_register_type)
2311 (h8300_register_type): Likewise.
2313 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2315 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
2316 the current architecture by regcache.
2317 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
2318 (i386_linux_fetch_inferior_registers)
2319 (i386_linux_store_inferior_registers): Likewise.
2320 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
2321 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
2322 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2323 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
2324 (i386_extract_return_value, i386_store_return_value): Likewise.
2325 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
2326 the current architecture by frame_info.
2327 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
2328 (i386_register_to_value, i386_value_to_register): Likewise.
2330 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2332 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
2333 the current architecture by regcache.
2334 (monitor_store_register, monitor_store_registers): Likewise.
2336 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2338 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
2339 the current architecture by regcache.
2341 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2343 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
2346 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2348 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
2349 architecture by frame.
2350 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
2351 (inside_main_func, frame_sp_unwind): Likewise.
2353 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
2355 * solib-svr4.c (enable_break): Add the dynamic linker also if
2358 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2360 * MAINTAINERS (Write After Approval): Add self.
2362 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2364 * stabsread.c (read_huge_number): Initialize local variable to 0.
2366 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
2368 * p-lang.h (pascal_main_name): Add declaration.
2369 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
2370 (GPC_MAIN_PROGRAM_NAME_2): New constants.
2371 (pascal_main_name): New function.
2372 * symtab.c: Include p-lang.h.
2373 (find_main_name): Add call to pascal_main_name.
2374 * Makefile.in (symtab.o): Add dependency on p-lang.h.
2376 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2378 * stabsread.c (read_huge_number): Fix handling of octal
2379 representation when the bit width is known.
2380 (read_range_type): Record unsigned integral types with their size,
2381 when the type size is known.
2383 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
2385 * MAINTAINERS (Write After Approval): Add self.
2387 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2389 * breakpoint.c (print_one_breakpoint_location): ARI fix:
2390 Replace asprintf by xstrprintf.
2392 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2394 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
2395 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
2397 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2399 * linux-fork.c: Move "gdb_wait.h" include back to the position of
2400 <sys/wait.h> include before last commit.
2402 2007-10-08 Maciej W. Rozycki <macro@mips.com>
2404 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
2406 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2408 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
2409 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
2410 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
2411 (store_regs_user_thread, store_regs_kernel_thread): Use
2412 get_regcache_arch or get_frame_arch to get at the current architecture
2413 by regcache or by frame, respectively.
2415 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2417 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
2418 (sh64_pseudo_register_read, sh64_pseudo_register_write)
2419 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
2420 (sh64_print_register, sh64_media_print_registers_info)
2421 (sh64_compact_print_registers_info, sh64_unwind_sp)
2422 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
2423 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
2424 (sh64_frame_prev_register): Use FRAME to recognize current
2427 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2429 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2430 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2431 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
2432 current_gdbarch by gdbarch.
2433 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
2434 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2435 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
2436 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
2437 recognize current architecture.
2439 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2441 * remote.c (init_remote_state, fetch_register_using_p)
2442 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
2443 (store_register_using_P, store_registers_using_G)
2444 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
2445 get at the current architecture by regcache or by frame, respectively.
2447 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2449 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
2450 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
2451 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
2452 get_regcache_arch or get_frame_arch to get at the current architecture
2453 by regcache or by frame, respectively.
2454 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2455 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
2456 (store_register, old_store_inferior_registers, supply_gregset)
2457 (supply_fpregset, fill_fpregset): Likewise.
2458 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
2459 Replace current_gdbarch by gdbarch.
2461 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2463 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
2464 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
2465 get_frame_arch to get at the current architecture by regcache or by
2466 frame, respectively.
2468 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2470 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
2471 Replace current_gdbarch by gdbarch.
2472 * ia64-tdep.c (ia64_frame_prev_register
2473 (ia64_sigtramp_frame_prev_register)
2474 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
2475 get_frame_arch to get at the current architecture by regcache or by
2476 frame, respectively.
2477 * ia64-linux-nat.c (ia64_linux_fetch_register)
2478 (ia64_linux_fetch_registers, ia64_linux_store_register)
2479 (ia64_linux_store_registers): Likewise.
2481 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2483 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
2484 current_gdbarch by gdbarch.
2485 * hppa-linux-nat.c (fetch_register, store_register)
2486 (hppa_linux_fetch_inferior_registers)
2487 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
2488 get_frame_arch to get at the current architecture by regcache or by
2489 frame, respectively.
2490 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
2491 (hppa_hpux_unwind_adjust_stub): Likewise.
2492 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
2493 (hppa_hpux_fetch_inferior_registers)
2494 (hppa_hpux_store_inferior_registers): Likewise.
2496 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2498 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
2499 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
2500 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
2501 or get_frame_arch to get at the current architecture by regcache or by
2502 frame, respectively.
2503 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
2504 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
2505 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
2506 current_gdbarch by gdbarch.
2508 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2510 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
2511 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
2512 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
2513 get at the current architecture by regcache or by·frame, respectively.
2514 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
2517 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2519 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
2520 Use get_regcache_arch or get_frame_arch to get at the current
2521 architecture by regcache or by frame, respectively.
2522 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2523 * amd64-nat.c (amd64_supply_native_gregset)
2524 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
2526 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2528 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
2530 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2531 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
2532 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
2533 get_frame_arch to get at the current architecture by regcache or by
2534 frame, respectively.
2535 * alpha-nat.c (fetch_osf_core_registers): Likewise.
2537 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2539 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
2540 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
2541 current_gdbarch by gdbarch.
2542 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
2544 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2546 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
2547 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
2548 * regcache.c (regcache_raw_write): Use get_regcache_arch or
2549 get_frame_arch to get at the current architecture by regcache or by
2550 frame, respectively.
2552 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2554 * findvar.c (value_of_register, locate_var_value): Use
2555 get_regcache_arch or get_frame_arch to get at the current architecture
2556 by regcache or by frame, respectively.
2557 * findvar.c (default_value_from_register, value_from_register): Replace
2558 current_gdbarch by gdbarch.
2560 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2562 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
2564 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2566 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
2567 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
2569 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
2571 * remote.c (get_offsets): Only call free_symfile_segment_data if
2574 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
2576 * objc-exp.y: ARI fix: remove 4 PARAMS.
2578 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
2580 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
2581 news. Mention XML support for M68K in GDB 6.7.
2583 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
2585 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
2587 (init_vector_type): Use builtin_type_int32.
2589 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
2591 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
2592 size to enable bi-arch generate-core-file support.
2594 2007-10-02 Markus Deuling <deuling@de.ibm.com>
2596 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
2598 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2600 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
2602 * tui/tui-win.c (tui_initialize_win): New function for
2603 initializing tui's SIGWINCH signal handler.
2604 * tui/tui-win.h (tui_initialize_win): Declare.
2606 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
2608 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
2609 pointer to uintptr_t before casting to CORE_ADDR.
2611 2007-10-02 Markus Deuling <deuling@de.ibm.com>
2613 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
2615 2007-10-02 Mark Mitchell <mark@codesourcery.com>
2617 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
2618 * ser-mingw.c (enum select_thread_state): New type.
2619 (struct ser_console_state): Add have_started and thread_state.
2620 (select_thread_wait): New function.
2621 (thread_fn_type): New type.
2622 (create_select_thread): New function.
2623 (destroy_select_thread): Likewise.
2624 (start_select_thread): Likewise.
2625 (stop_select_thread): Likewise.
2626 (console_select_thread): Use new functions.
2627 (pipe_select_thread): Likewise.
2628 (file_select_thread): Likewise.
2629 (ser_console_wait_handle): Likewise.
2630 (ser_console_done_wait_handle): Likewise.
2631 (ser_console_close): Likewise.
2632 (free_pipe_state): Likewise.
2633 (pipe_wait_handle): Likewise.
2634 (pipe_done_wait_handle): Likewise.
2635 (struct net_windows_state): Derive from ser_console_state.
2636 (net_windows_select_thread): Use new functions.
2637 (net_windows_wait_handle): Likewise.
2638 (net_windows_done_wait_handle): Likewise.
2639 (net_windows_close): Likewise.
2641 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
2643 * inflow.c (terminal_ours_1): Remove useless line.
2645 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
2647 * mips-tdep.c (mips_read_fp_register_double): Correct check for
2649 (mips_print_fp_register): Correct check for even FP registers.
2650 (mips_virtual_frame_pointer): New function.
2651 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
2653 2007-09-30 Mike Frysinger <vapier@gentoo.org>
2655 * value.h (lookup_only_internalvar): New prototype.
2656 (create_internalvar): Likewise.
2657 * value.c (lookup_only_internalvar): New function.
2658 (create_internalvar): Likewise.
2659 (lookup_internalvar): Use new lookup_only_internalvar and
2660 create_internalvar functions.
2661 * parse.c (write_dollar_variable): Look up $ symbols in internal
2662 table first rather than last.
2664 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
2666 * linux-nat.c (linux_nat_new_thread): New variable.
2667 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
2668 linux_nat_switch_fork.
2669 (lwp_list): Make public.
2670 (add_lwp): Call linux_nat_new_thread.
2671 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
2673 (resume_callback): Clear lp->siginfo. Remove unused variable.
2674 (linux_nat_resume): Assert that the LWP list is already initialized.
2676 (save_siginfo): New.
2677 (stop_wait_callback, linux_nat_wait): Call it.
2678 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
2679 * linux-nat.h (struct lwp_info): Add siginfo.
2680 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
2683 * amd64-linux-nat.c (amd64_linux_dr): New.
2684 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
2685 (amd64_linux_dr_set): Take a PTID argument.
2686 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
2687 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
2688 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
2689 (amd64_linux_new_thread): New.
2690 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
2691 * i386-linux-nat.c (i386_linux_dr): New.
2692 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
2693 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
2694 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
2695 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
2696 (i386_linux_new_thread): New.
2697 (i386_linux_resume): Remove unnecessary PID check.
2698 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
2699 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
2700 (fetch_debug_register, fetch_debug_register_pair): Delete.
2701 (debug_registers): New.
2702 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
2703 ALL_LWPS and debug_registers.
2704 (ia64_linux_new_thread): New.
2705 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
2706 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
2707 * ppc-linux-nat.c (last_stopped_data_address): Delete.
2708 (saved_dabr_value): New.
2709 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
2711 (ppc_linux_new_thread): New.
2712 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
2713 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
2714 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
2715 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
2717 (s390_fix_watch_points): Take a PTID argument.
2718 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
2719 (_initialize_s390_nat): Call linux_nat_set_new_thread.
2721 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
2722 Jeff Johnston <jjohnstn@redhat.com>
2724 * breakpoint.c (watchpoints_triggered): New.
2725 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
2726 Check watchpoint_triggered instead. Combine handling for software
2727 and hardware watchpoints. Do not use target_stopped_data_address
2728 here. Always check a watchpoint if its scope breakpoint triggers.
2729 Do not stop for thread or overlay events. Improve check for
2730 triggered watchpoints without a value change.
2731 (watch_command_1): Insert the scope breakpoint first. Link the
2732 scope breakpoint to the watchpoint.
2733 * breakpoint.h (enum watchpoint_triggered): New.
2734 (struct breakpoint): Add watchpoint_triggered.
2735 (bpstat_stop_status): Update prototype.
2736 (watchpoints_triggered): Declare.
2737 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
2738 (stepped_after_stopped_by_watchpoint): Delete.
2739 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
2740 local. Handle infwait_step_watch_state. Update calls to
2741 bpstat_stop_status. Use watchpoints_triggered to check
2743 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
2744 (remote_stopped_data_address): Do not check it.
2746 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
2748 * configure.ac: Add $LIBINTL when testing libbfd.
2749 * configure: Regenerated.
2751 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
2753 * NEW: Mention pending breakpoint changes and
2754 support for breakpoints at multiple locations.
2756 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
2758 * arm-linux-tdep.c (arm_linux_software_single_step): New.
2759 (arm_linux_init_abi): Use it.
2760 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
2761 condition correctly.
2762 * arm-tdep.h (arm_get_next_pc): Declare.
2763 * Makefile.in (arm-linux-tdep.o): Update.
2765 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
2767 * varobj.c (install_new_value): Don't
2768 call value_get_print_value when a value is
2769 lazy. Update the print_value member in a
2772 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
2774 * breakpoint.c (create_breakpoint): Set
2775 condition on each location, not on the first
2776 location of breakpoint.
2778 2007-09-26 Jim Blandy <jimb@codesourcery.com>
2780 * remote.c (getpkt_sane): Fix error message. No animals were
2781 harmed in the making of this debugger.
2783 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2785 * p-typeprint.c: Fix 11 ARI reported problems.
2786 (pascal_print_type): Fix 4 operator at end of line.
2787 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
2788 using strncmp function.
2789 (pascal_type_print_base): Fix 2 operator at end of line.
2790 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
2791 using strncmp function.
2794 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2796 * Fix PR pascal/2231
2797 dwarf2read.c (read_subroutine_type):
2798 All pascal functions are prototyped.
2800 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2802 * Fix PR pascal/2283
2803 p-valprint.c (pascal_val_print): correct current language check.
2804 Also print array of char as strings.
2807 2007-09-26 David Ung <davidu@mips.com>
2808 Maciej W. Rozycki <macro@mips.com>
2810 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
2812 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
2814 * p-exp.y: Fix 12 ARI reported problems.
2815 (name_not_typename): Fix 2 operator at end of line issues.
2816 (yylex): Fix 3 operator at end of line issues.
2817 Replace 7 DEPRECATED_STREQ macros using strcmp function.
2819 2007-09-25 David Ung <davidu@mips.com>
2820 Maciej W. Rozycki <macro@mips.com>
2822 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
2823 rules return composite types in registers as appropriate.
2825 2007-09-24 Jim Blandy <jimb@codesourcery.com>
2827 * symfile.h (struct symfile_segment_data): Doc fixes.
2828 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
2829 Assert that we were passed some loaded segment addresses,
2830 and that sections' segment numbers are valid.
2831 Simplify offset calculation.
2832 * remote.c (get_offsets): Clarify selection of relocate-by-segment
2833 strategy, and set num_segments correctly. Delete redundant
2834 assignments to do_sections.
2836 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
2838 * frame.c (get_prev_frame_1): Also check for PC in the same register.
2840 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
2842 * breakpoint.c (remove_sal): New.
2843 (expand_line_sal_maybe): New.
2844 (create_breakpoints): Call expand_line_sal_maybe.
2845 (clear_command): Add comment.
2846 (breakpoint_re_set_one): Call expand_line_sal_maybe.
2847 * linespec.c (decode_indirect): Set explicit_pc to 1.
2848 (decode_all_digits): Set explicit_line to 1.
2849 (append_expanded_sal): New.
2850 (expand_line_sal): New.
2851 * linespec.h (expand_line_sal): Declare.
2852 * symtab.c (init_sal): Initialize explicit_pc
2854 * symtab.h (struct symtab_and_line): New fields
2855 explicit_pc and explicit_line.
2857 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
2859 * infcall.c (call_function_by_hand): Handle language-specific
2860 pass and return by reference.
2862 * cp-abi.c (cp_pass_by_reference): New.
2863 * cp-abi.h (cp_pass_by_reference): Declare.
2864 (struct cp_abi_ops): Add pass_by_reference.
2865 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
2866 (init_gnuv3_ops): Set pass_by_reference.
2868 * language.c (language_pass_by_reference): New.
2869 (default_pass_by_reference): New.
2870 (unknown_language_defn, auto_language_defn, local_language_defn): Add
2871 default_pass_by_reference.
2872 * langauge.h (struct language_defn): Add la_pass_by_reference.
2873 (language_pass_by_reference, default_pass_by_reference): Declare.
2874 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
2875 * c-lang.c (c_language_defn, asm_language_defn)
2876 (minimal_language_defn): Likewise.
2877 (cplus_language_defn): Add cp_pass_by_reference.
2878 * f-lang.c (f_language_defn): Add default_pass_by_reference.
2879 * jv-lang.c (java_language_defn): Likewise.
2880 * m2-lang.c (m2_language_defn): Likewise.
2881 * objc-lang.c (objc_language_defn): Likewise.
2882 * p-lang.c (pascal_language_defn): Likewise.
2883 * scm-lang.c (scm_language_defn): Likewise
2885 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
2887 Allow a code breakpoint to have several locations
2889 * breakpoint.h (enum enable_state): Remove the
2890 bp_shlib_disabled enumerator.
2891 (struct bp_location): New members shlib_disabled,
2892 global_next, enabled and function_name.
2893 Rename pending to condition_not_parsed.
2895 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
2896 (ALL_BP_LOCATIONS_SAFE): Likewise.
2897 (breakpoint_enabled): Don't check for pending.
2898 (condition_command): Free and update all locations of
2900 (insert_bp_location): Adjust.
2901 (software_breakpoint_inserted_here_p): Don't care
2902 if breakpoint is enabled, as soon as it's inserted.
2903 (print_it_typical): Print bpstat's location, not
2904 bpstat's breakpoint's location.
2905 (bpstat_stop_status): Iterate over all locations, not
2907 (print_breakpoint_location): New.
2908 (print_one_breakpoint): Renamed to
2909 (print_one_breakpoint_location): ...this. Take
2910 parameters to describe which location is being
2911 printed. Modify code to properly print header
2912 for several locations and individual locations.
2913 (print_one_breakpoint): Print all locations.
2914 (breakpoint_has_pc): New.
2915 (describe_other_breakpoints): Use the above.
2916 (check_duplicates): Renamed to...
2917 (check_duplicates_for): .. this.
2918 (check_duplicates): Use check_duplicates_for.
2919 (allocate_bp_location): Adjust.
2920 (set_raw_breakpoint_without_location): New,
2921 extracted from set_raw_breakpoint.
2922 (set_breakpoint_location_function): New.
2923 (set_raw_breakpoint): Use
2924 set_raw_breakpoint_without_location.
2925 (make_breakpoint_permanent): Mark all locations
2927 (disable_breakpoints_in_shlibs): Iterate over
2929 (disable_breakpoints_in_unloaded_shlib): Likewise.
2930 (re_enable_breakpoints_in_shlibs): Likewise.
2931 (mention): Say "pending" when breakpoint has
2932 zero locations. If breakpoint has more than one
2934 (add_location_to_breakpoint): New.
2935 (create_breakpoint): Accept symtabs_and_lines, not
2936 symtab_and_line. Pass extra sals to
2937 add_location_to_breakpoint.
2938 (create_breakpoints): Pass symtabs_and_lines to
2940 (break_command_1): Make pending breakpoints
2941 have zero locations.
2942 (do_captured_breakpoint): Remove wrong allocation.
2943 (clear_command): Iterate over all locations.
2944 (unlink_locations_from_global_list): Renamed
2945 from unlink_location_from_global_list. Remove
2947 (delete_breakpoint): Remove all locations.
2948 Iterate over all locations when deciding which
2949 other location to re-enable.
2950 (all_locations_are_pending): New.
2951 (update_breakpoint_locations): Renamed from
2952 update_breakpoint_location. Try to match old
2953 and new locations using names of containing
2955 (breakpoint_re_set_one): Adjust.
2956 (find_location_by_number): New.
2957 (disable_command): Allow disabling individual location.
2958 (enable_command): Allow enabling individual location.
2959 * breakpoint.c: Adjust all uses of breakpoint's
2960 enable state to for bp_shlib_disabled change.
2962 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
2964 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
2965 (resolve_pending_breakpoint): Remove.
2966 (re_enable_breakpoints_in_shlibs): Remove.
2967 (unlink_locations_from_global_list): New.
2968 (update_breakpoint_locations): New.
2969 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
2970 Use parse_condition and update_breakpoint_location to
2971 reset breakpoint. Ignore 'symbol not found' error from
2973 (breakpoint_re_set): Don't emit newline before the
2974 reason why breakpoint is not reset.
2975 (do_enable_breakpoint): Don't specially process pending
2977 (free_bp_location): New.
2978 (break_command_1): For pending breakpoints, initialize
2979 all fields of a sal with zeroes.
2980 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
2981 * infcmd.c (post_create_inferior): Don't call
2982 re_enable_breakpoints_in_shlibs.
2983 * infrun.c (handle_inferior_event): Likewise.
2984 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2985 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2986 * win32-nat.c (get_win32_debug_event): Likewise.
2988 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
2990 * breakpoint.c (create_breakpoint): Split from
2991 create_breakpoints, implementing most of its logic.
2992 Take just a single sal, single address string and
2993 single condition. Do not take parsed condition at
2995 (create_breakpoints): Just call create_breakpoint
2997 (find_condition_and_thread): New.
2998 (break_command_1): Use find_condition_and_thread.
2999 Do not keep parsed conditions.
3000 (do_captured_breakpoint): Don't convert
3001 condition string to struct expression.
3003 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3005 * breakpoint.h (struct breakpoint): Move the cond
3007 (struct bp_location): Here.
3008 * breakpoint.c (condition_command, bpstat_stop_status)
3009 (print_one_breakpoint, allocate_bp_location)
3010 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
3011 (create_exec_event_catchpoint, create_breakpoints)
3012 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
3013 (create_ada_exception_breakpoint, set_breakpoint_sal)
3014 (delete_breakpoint, breakpoint_re_set_one): Adjust.
3015 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
3017 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3019 Associate bp_stat with bp_location, not breakpoint.
3020 * breakpoint.h (breakpoint_at): Change type
3022 * breakpoint.c (bpstat_alloc): Take bp_location,
3024 (bpstat_find_breakpoint): Look at bpstat's location's
3025 owner, not at bpstat->breakpoint_at.
3026 (bpstat_find_step_resume_breakpoint): Likewise.
3027 (bpstat_num): Likewise.
3028 (print_it_typical): Likewise.
3029 (print_bp_stop_message): Likewise.
3030 (watchpoint_check): Likewise.
3031 (bpstat_what): Likewise.
3032 (bpstat_get_triggered_catchpoints): Likewise.
3033 (breakpoint_auto_delete): Likewise.
3034 (delete_breakpoint): Likewise.
3035 (bpstat_stop_status): Pass location, not breakpoint,
3036 to bpstat_alloc. Look at bpstat's location's
3037 owner, not at bpstat->breakpoint_at.
3039 2007-09-21 Jim Blandy <jimb@codesourcery.com>
3041 * macrotab.h (new_macro_table): Document that removing information
3042 from an obstack/bcache-managed macro table leaks memory.
3043 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
3044 that data is never freed in obstack/bcache-managed macro tables,
3045 just leak the storage.
3046 (macro_undef): If we're undefining a macro at exactly the same
3047 source location that we defined it, simply remove the definition
3050 2007-09-21 Joel Brobecker <brobecker@adacore.com>
3052 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
3053 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
3054 Adjust the struct sym_fns object accordingly by setting
3055 the new field to NULL.
3056 * xcoffread.c (aix_process_linenos): Make static.
3057 (xcoff_sym_fns): Set new field to aix_process_linenos.
3058 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
3059 by call to new the new sym_fns sym_read_linetable function.
3060 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
3061 * config/rs6000/tm-rs6000.h: Delete.
3063 2007-09-21 David Ung <davidu@mips.com>
3064 Maciej W. Rozycki <macro@mips.com>
3066 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
3067 rules do not treat composite types specially.
3069 2007-09-20 Maciej W. Rozycki <macro@mips.com>
3071 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
3072 (mips16_in_function_epilogue_p): Likewise.
3073 (mips_in_function_epilogue_p): Likewise.
3074 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
3076 2007-09-19 Joel Brobecker <brobecker@adacore.com>
3078 * configure.ac: Add check for "etext".
3079 * configure, config.in: Regenerate.
3080 * maint.c (TEXTEND): Only define if either _etext or etext
3082 Disable the profiling functionality if TEXTEND is not defined.
3084 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
3086 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
3087 address register. Correct the call to frame_id_build.
3088 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
3091 2007-09-18 Joel Brobecker <brobecker@adacore.com>
3093 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
3094 the linetable past the function end.
3096 2007-09-18 James E. Wilson <wilson@specifix.com>
3098 * MAINTAINERS: Update my email address.
3100 2007-09-18 Jerome Guitton <guitton@adacore.com>
3102 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
3103 (inf_ttrace_delete_dying_threads_callback): New function.
3104 (inf_ttrace_resume): After resuming the execution, iterate over
3105 the dying threads to delete them for the thread list.
3106 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
3107 mark the corresponding thread as dying instead of removing it
3108 from the thread list.
3109 (inf_ttrace_thread_alive): return 0 for dying threads.
3111 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3113 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
3114 that return_frame is not null.
3116 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3118 * solib-svr4.c: Add include of "auxv.h".
3119 (enable_break): Use the AT_BASE auxiliary entry if available.
3120 * Makefile.in (solib-svr4.o): Update dependencies.
3122 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3124 * NEWS: Create a new section for the next release branch.
3125 Rename the section of the current branch, now that it has
3128 2007-09-17 Jerome Guitton <guitton@adacore.com>
3130 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
3131 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
3133 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
3135 * mi/mi-cmds.c (mi_cmds): Register -list-features.
3136 * mi/mi-cmds.h (mi_cmd_list_features): New.
3137 * mi/mi-main.c (mi_cmd_list_features): New.
3139 2007-09-11 Joel Brobecker <brobecker@adacore.com>
3141 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
3142 * version.in: Bump version to 6.7.50-20070911-cvs.
3144 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3146 * thread.c (free_thread): Do not delete the step resume breakpoint
3149 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3151 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
3152 * corelow.c (core_read_description): New.
3153 (init_core_ops): Set to_read_description.
3154 * gdbarch.sh: Add gdbarch_core_read_description.
3155 * mips-linux-tdep.c (mips_linux_core_read_description): New.
3156 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
3157 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
3158 (mips_register_g_packet_guesses): Use them.
3159 (_initialize_mips_tdep): Initialize them.
3160 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
3161 * gdbarch.h, gdbarch.c: Regenerated.
3163 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3165 * infrun.c (stepping_past_breakpoint): New global variable.
3166 (stepping_past_breakpoint_ptid): Likewise.
3167 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
3168 Only switch threads if we need to single-step over a breakpoint hit
3169 in the previously selected thread. If stepping, remember previous
3170 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
3171 switch_to_thread instead of copying its contents.
3172 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
3173 prepare_to_proceed returns true.
3174 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
3175 (context_switch): Call switch_to_thread.
3176 (handle_inferior_event): Switch back to previous thread if requested
3177 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
3178 * gdbthread.h (switch_to_thread): Add prototype.
3179 * thread.c (switch_to_thread): Make global.
3181 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
3183 * p-valprint.c: Fix 7 ARI reported problems.
3184 (pascal_val_print): Fix one operator at end of line issue.
3185 Use paddress function to remove use of
3186 deprecated_print_address_numeric function (2 times).
3187 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
3188 (pascal_value_print): Fix 3 operator at end of line issues.
3190 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
3193 * arm-tdep.c (arm_in_call_stub): Delete.
3194 (arm_skip_stub): Handle from_arm and from_thumb stubs.
3196 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
3198 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
3201 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3202 Jim Blandy <jimb@codesourcery.com>
3204 * NEWS: Update description of string changes. Mention print/s.
3205 * c-valprint.c (textual_element_type): New.
3206 (c_val_print): Use it. Do not skip address printing for pointers
3207 with a string format.
3208 (c_value_print): Doc update.
3209 * dwarf2read.c (read_array_type): Use make_vector_type.
3210 * gdbtypes.c (make_vector_type): New.
3211 (init_vector_type): Use it.
3212 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
3213 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
3214 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
3215 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
3216 (make_vector_type): New.
3217 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
3218 Call the language print routine for string format.
3219 (print_scalar_formatted): Call val_print for string format. Handle
3220 unsigned original types for char format.
3221 (validate_format): Do not reject string format.
3222 * stabsread.c (read_type): Use make_vector_type.
3223 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
3225 2007-09-04 Michael Snyder <msnyder@access-company.com>
3227 * expprint.c (print_subexp_standard): Check strchr for null.
3228 * Makefile.in (expprint.o): Depend on gdb_assert.h.
3230 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
3232 * stabsread.c (patch_block_status): Guard against null.
3233 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
3235 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3237 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
3238 in internal error message.
3240 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3241 Daniel Jacobowitz <dan@codesourcery.com>
3243 * infcmd.c (post_create_inferior): Update comment.
3244 (run_command_1): Always call post_create_inferior with 0 as
3247 * i386-cygwin-tdep.h: New.
3248 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
3249 (win32_xfer_shared_library): Make it extern.
3251 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
3253 (win32_so_ops): Delete.
3254 (get_relocated_section_addrs): Delete.
3255 (solib_symbols_add): Delete.
3256 (register_loaded_dll): Delete.
3257 (win32_make_so): New.
3258 (handle_load_dll): Use win32_make_so.
3259 (win32_free_so): Free the passed in so.
3260 (win32_relocate_section_addresses): Delete.
3261 (win32_solib_create_inferior_hook): Delete.
3262 (handle_unload_dll): Don't add PE offset here. Free so with
3263 win32_free_so instead of free_so.
3264 (win32_special_symbol_handling): Delete.
3265 (get_win32_debug_event): Remove unneeded calls. Set state to
3266 TARGET_WAITKIND_LOADED on a dll unload.
3267 (do_initial_win32_stuff): Clear cygwin_load_start and
3269 (map_code_section_args): Delete.
3270 (dll_code_sections_add): Delete.
3271 (core_section_load_dll_symbols): Delete.
3272 (win32_xfer_shared_libraries): New.
3273 (win32_current_sos): Delete.
3274 (win32_xfer_partial): New.
3275 (open_symbol_file_object): Delete.
3276 (in_dynsym_resolve_code): Delete.
3277 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
3278 of win32_ops. Remove win32_so_ops settings. Don't set
3279 current_target_so_ops here.
3281 * Makefile.in (i386_cygwin_tdep_h): New variable.
3282 (i386-cygwin-tdep.o): Update dependencies.
3283 (win32-nat.o): Update dependencies.
3285 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3286 Daniel Jacobowitz <dan@codesourcery.com>
3288 * gdbarch.sh (core_xfer_shared_libraries): New.
3290 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3292 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
3294 * xml-support.c (gdb_xml_parse): Debug output tweaks.
3295 (xml_escape_text): New.
3296 * xml-support.h (xml_escape_text): Declare.
3298 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
3299 * config/i386/cygwin.mt (TDEPFILES): ... here.
3301 * win32-nat.c: (fetch_elf_core_registers): Delete.
3302 (win32_elf_core_fn): Delete.
3303 (_initialize_core_win32): Delete.
3305 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
3306 "xml-support.h" and "gdbcore.h".
3307 (i386_win32_gregset_reg_offset): New.
3308 (I386_WIN32_SIZEOF_GREGSET): New.
3309 (i386_win32_regset_from_core_section): New.
3310 (win32_xfer_shared_library): New.
3311 (struct cpms_data): New.
3312 (core_process_module_section): New.
3313 (win32_core_xfer_shared_libraries): New.
3314 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
3315 gregset_num_regs, sizeof_gregset members of tdep. Register
3316 regset_from_core_section and core_xfer_shared_libraries callbacks.
3318 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
3319 * gdbarch.h, gdbarch.c: Regenerate.
3321 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3323 * corelow.c (core_xfer_partial): Pass writebuf to
3324 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
3326 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
3328 * arm-tdep.h (arm_skip_stub): Declare.
3329 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
3331 (arm_pe_skip_trampoline_code): New function.
3332 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
3333 gdbarch_skip_trampoline_code callback.
3334 * Makefile.in (arm-wince-tdep.o): Update dependencies.
3336 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3338 * MAINTAINERS: Move Fred Fish to Past Maintainers.
3340 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3342 * configure.ac: Add --with-expat.
3343 * configure: Regenerated.
3345 2007-09-03 Andreas Schwab <schwab@suse.de>
3347 * configure.ac: Accept --with-system-readline.
3348 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
3349 * configure: Regenerate.
3350 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
3352 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
3354 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
3355 Daniel Jacobowitz <dan@codesourcery.com>
3357 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
3359 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3361 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
3363 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
3365 * top.c (print_gdb_version): Update for GPL version 3.
3367 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3369 * NEWS: Mention the build-id .debug files verification.
3371 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3373 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
3375 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3377 * Makefile.in (symfile.o): Update dependencies.
3378 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
3379 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
3380 (struct build_id): New structure.
3381 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
3382 (find_separate_debug_file): New variable BUILD_ID.
3383 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
3385 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3387 * varobj.c (struct varobj): Fix comment
3388 for the type member not to lie when it can be
3391 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3393 Implement -var-info-path-expression.
3395 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
3397 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
3398 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
3399 * varobj.c (struct varobj): New field 'path_expr'.
3400 (c_path_expr_of_child, cplus_path_expr_of_child)
3401 (java_path_expr_of_child): New.
3402 (struct language_specific): New field path_expr_of_child.
3403 (varobj_create): Initialize the path_expr field.
3404 (varobj_get_path_expr): New.
3405 (new_variable): Initialize the path_expr field.
3406 (free_variable): Free the path_expr field.
3407 (adjust_value_for_children_access): New parameter
3409 (c_number_of_children): Adjust.
3410 (c_describe_child): New parameter CFULL_EXPRESSION.
3411 Compute full expression.
3412 (c_value_of_child, c_type_of_child): Adjust.
3413 (cplus_number_of_children): Adjust.
3414 (cplus_describe_child): New parameter CFULL_EXPRESSION.
3415 Compute full expression.
3416 (cplus_name_of_child, cplus_value_of_child)
3417 (cplus_type_of_child): Adjust.
3418 * varobj.h (varobj_get_path_expr): Declare.
3420 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3422 * mi/mi-cmd-var.c (print_varobj): If a varobj
3423 type is NULL, don't try to print it.
3425 2007-08-30 Alan Modra <amodra@bigpond.net.au>
3427 * ppc-linux-nat.c (right_fill_reg): Delete.
3428 (supply_gregset): Use ppc_supply_gregset.
3429 (supply_fpregset): Use ppc_supply_fpregset.
3430 (fill_gregset): Use ppc_collect_gregset.
3431 (fill_fpregset): Use ppc_collect_fpregset.
3432 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
3433 (right_supply_register, ppc_linux_supply_gregset): Delete.
3434 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
3435 (ppc_linux_supply_fpregset): Delete.
3436 (ppc_linux_collect_gregset): New function.
3437 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
3438 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
3439 ppc_linux_supply_gregset, and ppc_collect_gregset.
3440 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
3441 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
3442 (ppc_linux_regset_from_core_section): Update.
3443 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
3444 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
3445 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
3446 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
3447 (ppcobsd_collect_gregset): Likewise.
3448 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
3449 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
3450 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
3451 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
3452 (rs6000_aix64_reg_offsets): Likewise.
3453 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
3454 ppc_floating_point_unit_p.
3455 (rs6000_aix_collect_regset): Similarly.
3456 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
3457 when regsize is larger than regcache register size.
3458 (ppc_collect_reg): Similarly zero pad when regsize is larger than
3459 regcache register size.
3460 (ppc_greg_offset): New function, split out from..
3461 (ppc_supply_gregset): ..here. Separate code handling all regs from
3462 single reg case. Correct xer offset.
3463 (ppc_fpreg_offset): New function, split out from..
3464 (ppc_supply_fpregset): ..here. Separate code handling all regs from
3466 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
3467 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
3468 a fp unit, instead return if no fp.
3470 2007-08-29 Jim Blandy <jimb@codesourcery.com>
3472 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
3473 this code has not been compiled for two years.
3475 2007-08-29 Michael Snyder <msnyder@access-company.com>
3477 * event-top.c (gdb_readline2): Return after EOF.
3479 2007-08-29 Joel Brobecker <brobecker@adacore.com>
3481 * symtab.c: Remove a function that has been commented out 3 years ago.
3483 2007-08-29 Randolph Chung <tausq@debian.org>
3485 * hppa-tdep.c (hppa32_cannot_fetch_register)
3486 (hppa64_cannot_fetch_register): New functions.
3487 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
3488 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
3490 2007-08-28 Michael Snyder <msnyder@access-company.com>
3492 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
3493 check for null before calling check_typedef.
3495 * NEWS: Mention Coverity bug fixes.
3497 2007-08-27 Markus Deuling <deuling@de.ibm.com>
3499 * spu-tdep.c (spu_pointer_to_address): New function.
3500 (spu_integer_to_address): Likewise.
3501 (spu_gdbarch_init): Add spu_pointer_to_address and
3502 spu_integer_to_address to gdbarch.
3504 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
3506 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
3508 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3510 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
3511 that contains the GDB license.
3512 * copying.awk: Adjust to the GPLv3 wording.
3513 * copying.c: Regenerate.
3515 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3517 * copying.awk: Protoization, and i18n markup.
3519 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3521 * config/djgpp/djconfig.sh: Switch license to GPLv3.
3522 * copyright.sh: Likewise.
3523 * gdb-events.sh: Likewise.
3524 * gdb_gcore.sh: Likewise.
3525 * gdb_mbuild.sh: Likewise.
3526 * gdbarch.sh: Likewise.
3527 * observer.sh: Likewise.
3528 * features/feature_to_c.sh: Likewise.
3529 * regformats/regdat.sh: Likewise.
3531 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3533 Switch the license of all .c files to GPLv3.
3534 Switch the license of all .h files to GPLv3.
3535 Switch the license of all .cc files to GPLv3.
3537 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3539 * configure.ac: Switch license to GPLv3.
3541 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3543 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
3544 determine the file's FPU type.
3546 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3548 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
3549 (mips_n32n64_push_dummy_call): Always increment float_argreg along
3550 with argreg. Use mips_n32n64_fp_arg_chunk_p.
3552 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3554 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
3556 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
3557 (elf_lookup_lib_symbol): Fix formatting.
3559 2007-08-21 Michael Snyder <msnyder@access-company.com>
3561 * dbxread.c (read_dbx_symtab): Guard null deref.
3564 * valops.c (find_overload_match): Guard against NULL.
3566 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3568 * MAINTAINERS (Patch Champions): Remove self.
3570 2007-08-21 Chris Smith <chris.smith@st.com>
3572 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
3575 2007-08-18 Michael Snyder <msnyder@access-company.com>
3577 * stabsread.c (dbx_lookup_type): Memory leak.
3579 * event-loop.c (delete_async_signal_handler): Move pointer null
3580 test to before pointer dereference.
3582 * ui-out.c (append_header_to_list): Possible cut and paste error.
3584 * MAINTAINERS: white space tweak.
3586 2007-08-17 Michael Snyder <msnyder@access-company.com>
3588 * stack.c (print_frame): Memory leak.
3590 * completer.c (filename_completer): Avoid memory leak.
3591 Remove unnecessary nested block.
3593 * c-exp.y (parse_number): Memory leak.
3595 * completer.c (location_completer): Must free 'fn_list', except
3596 in the one case where it is returned (as 'list').
3598 * varobj.c (value_of_root): Memory leak.
3600 * gdbtypes.h (virtual_base_list): Remove export decl.
3601 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
3602 (virtual_base_index): Memory leak.
3603 (virtual_base_index_skip_primaries): Ditto.
3605 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
3607 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
3608 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
3609 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
3610 (xtensa_read_register): New function.
3611 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
3612 (xtensa_insn_kind): New types.
3613 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
3614 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
3615 (xtensa_verify_config, xtensa_pseudo_register_read)
3616 (xtensa_pseudo_register_write, xtensa_extract_return_value)
3617 (xtensa_store_return_value)
3618 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
3619 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
3620 (xtensa_frame_this_id, xtensa_frame_prev_register)
3621 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
3622 (call0_frame_cache, call0_frame_get_reg_at_entry)
3623 (call0_classify_opcode, call0_track_op)
3624 (call0_analyze_prologue, call0_frame_cache): New functions.
3626 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
3628 * breakpoint.c (bpstat_free): New.
3629 (bpstat_clear): Use bpstat_free.
3630 (delete_breakpoint): Document why we cannot
3631 remove bpstats from stop_bpstat.
3632 * breakpoint.h (bpstat_free): Declare.
3634 2007-08-16 Michael Snyder <msnyder@access-company.com>
3636 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
3638 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
3639 Joel Brobecker <brobecker@adacore.com>
3641 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
3643 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
3644 Joel Brobecker <brobecker@adacore.com>
3646 * ada-lang.c (possible_user_operator_p): Alternative fix to last
3647 checkin guarding against NULL.
3649 2007-08-14 Michael Snyder <msnyder@access-company.com>
3651 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
3652 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
3653 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
3654 go at beginning of new line.
3656 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
3657 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
3658 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
3659 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
3660 tui-winsource.h, tui.c, tui.h: Function declarations and
3661 definitions, wrap long lines.
3663 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
3664 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
3665 Reformat block comments to GNU standard.
3667 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
3668 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
3669 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
3670 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
3671 tui.c, tui.h: Comment reformatting to coding standard (capitals,
3672 spaces after periods, etc).
3674 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
3675 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
3676 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
3677 tui-winsource.h: Whitespace changes, fix pointer declarations
3680 2007-08-14 Joel Brobecker <brobecker@adacore.com>
3681 Michael Snyder <msnyder@access-company.com>
3683 * ada-lang.c (field_alignment): Guard against NULL.
3685 2007-08-14 Joel Brobecker <brobecker@adacore.com>
3687 * MAINTAINERS (Global Maintainers): Add self.
3689 2007-08-14 Michael Snyder <msnyder@access-company.com>
3691 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
3693 * ada-lang.c (possible_user_operator_p): Guard against NULL.
3695 * varobj.c (cplus_describe_child): Guard against null.
3696 Use "NULL" instead of "0" to initialize pointers.
3698 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
3700 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
3701 to match any gdbarch with matching OSABI. Set default ABI and FPU
3702 after running the OSABI handler.
3704 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
3706 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
3707 * config/i386/linux.mt (TDEPFILES): ...to here.
3709 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
3711 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
3712 the 'silent' parameter and code to implement that.
3713 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
3715 * win32-nat.c: Adjust.
3718 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
3720 * breakpoint.c (update_breakpoints_after_exec): Don't
3721 set address to zero.
3723 2007-08-13 Michael Snyder <msnyder@access-company.com>
3725 * valops.c: Whitespace clean-up.
3727 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
3729 * event-top.c (command_line_handler): Memory leak.
3731 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
3732 No need to make copy.
3734 * source.c (find_source_lines): Require symtab 's'.
3736 2007-08-11 Michael Snyder <msnyder@access-company.com>
3738 * completer.c: Spelling fix in comments.
3740 2007-08-10 Michael Snyder <msnyder@access-company.com>
3742 * gdbtypes.c: Coding standard cleanup.
3743 * gdbtypes.c: Comment/whitespace cleanup.
3745 * stabsread.c (read_huge_number): Attempt to compute value before
3746 values that it depends on.
3748 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
3749 (decode_objc): Use "NULL" instead of 0.
3750 (find_method): Ditto.
3751 (decode_all_digits): Ditto.
3752 (decode_dollar): Ditto.
3754 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
3756 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
3758 * solib-svr4.c (enable_break): Don't free tmp_pathname until
3761 * completer.c: Comment/whitespace cleanup.
3763 2007-08-10 Joel Brobecker <brobecker@adacore.com>
3765 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
3767 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
3769 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
3770 allocated file descriptors.
3772 2007-08-10 Joel Brobecker <brobecker@adacore.com>
3774 * Makefile.in: Minor cleanup throughout; add some missing variables,
3775 add some missing rules, remove some rules that are no longer needed,
3776 and fix the dependencies in several rules.
3778 2007-08-10 Ludovic Courtès <ludo@gnu.org>
3780 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
3781 (scm_lang_h, scm_tags_h): New.
3782 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
3783 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
3784 * defs.h (enum language): Add `language_scm'.
3786 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
3789 2007-08-09 Ludovic Courtès <ludo@gnu.org>
3791 * MAINTAINERS (Write After Approval): Add myself.
3793 2007-08-09 Michael Snyder <msnyder@access-company.com>
3795 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
3797 2007-08-09 Joel Brobecker <brobecker@adacore.com>
3799 * solib-som.c (som_relocate_section_addresses): Stop saving
3800 the $CODE$ section in the so_list structure.
3802 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
3804 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
3805 (xtensa_register_group_t): Add entries for coprocessors.
3806 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
3807 (xtensa_add_reggroups): Likewise.
3808 (xtensa_register_reggroup_p): Likewise.
3809 (xtensa_coprocessor_register_group): New function.
3812 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3814 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
3816 2007-08-08 Michael Snyder <msnyder@access-company.com>
3818 * target.c (target_read_string): Guard against null.
3820 * varobj.c (value_of_root): Move alloc after return to avoid leak.
3822 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
3823 (tui_set_layout_for_display_command): Mem leak.
3825 * top.c (command_line_input): Memory leak.
3827 * solib-svr4.c (open_symbol_file_object): Memory leak.
3828 (svr4_current_sos): Ditto.
3829 (enable_break): Ditto.
3831 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
3833 * dwarf2read.c (add_partial_symbol): Memory leak.
3835 2007-08-06 Michael Snyder <msnyder@access-company.com>
3837 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
3839 2007-08-05 Jim Blandy <jimb@codesourcery.com>
3841 * macroexp.c (init_buffer): Remove testing code that overrides the
3842 caller's length guess.
3843 (gather_arguments): Use a larger initial size, now that the vector
3844 growth code has been exercised.
3846 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
3848 * solib-target.c (solib_target_relocate_section_addresses): Add
3849 orig_delta to addr_high.
3851 2007-08-04 Michael Snyder <msnyder@access-company.com>
3853 * remote-fileio.c (remote_fileio_func_write): Memory leak.
3855 * breakpoint.c (print_one_breakpoint): Off by one error.
3857 * tracepoint.c (add_register): Off by one error.
3858 (stringify_collection_list): Free malloc buffer.
3860 2007-08-03 Michael Snyder <msnyder@access-company.com>
3862 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
3863 stop memory leak, straighten out cleanups.
3865 * jv-lang.c (java_link_class_type): Guard against NULL.
3867 2007-08-02 Michael Snyder <msnyder@access-company.com>
3869 * gdbtypes.c (create_set_type): Test should only be done within
3870 the preceeding if block. Otherwise, variable is uninitialized.
3872 * gdbtypes.c (check_typedef): Guard NULL.
3874 2007-08-01 Michael Snyder <msnyder@access-company.com>
3876 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
3877 avoid dereference in lookup_cmd_1.
3879 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
3880 clean up long lines.
3881 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
3882 (tui_alloc_win_info): Ditto.
3883 (tui_add_content_elements): Ditto.
3884 * tui/tui-file.c (tui_file_magic): Ditto.
3886 2007-07-31 Michael Snyder <msnyder@access-company.com>
3888 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
3889 True and false paths are mutually exclusive.
3891 * event-top.c (command_line_handler): Add pedantic return.
3893 * f-valprint.c (info_common_command): Bail out to prevent null
3894 pointer deref. Break up a long line.
3896 * exec.c (xfer_memory): Remove redundant condition from 'if'.
3898 * symfile.c (reread_separate_symbols): Free xmalloced memory.
3900 * printcmd.c (build_address_symbolic): Remove dead code and dead
3903 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
3905 * linespec.c (minsym_found): Advance to the next line if possible.
3907 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
3909 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
3910 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
3911 solib-svr4.o, and add solib-target.o
3913 2007-07-27 Michael Snyder <msnyder@access-company.com>
3915 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
3917 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
3919 * MAINTAINERS (Write After Approval): Add myself.
3921 2007-07-26 Maciej W. Rozycki <macro@mips.com>
3923 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
3926 2007-07-25 Maciej W. Rozycki <macro@mips.com>
3928 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
3930 2007-07-24 Michael Snyder <msnyder@access-company.com>
3932 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
3933 'buffer' must cover both branches that call strcmp (Coverity).
3935 * stack.c (print_frame_args): Check return value of lookup_symbol.
3937 * ax-gdb.c (find_field): Guard against null ptr.
3939 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
3941 * regformats/reg-spu.dat: Fix order of npc, id registers.
3943 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
3945 * target.c (memory_xfer_partial): Accesses to unmapped overlay
3946 sections should always go to the executable file.
3948 2004-07-20 Chris Dearman <chris@mips.com>
3950 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
3951 prologue instructions.
3953 2007-07-20 Maciej W. Rozycki <macro@mips.com>
3955 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
3958 2007-07-20 Chris Dearman <chris@mips.com>
3959 Maciej W. Rozycki <macro@mips.com>
3961 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
3964 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
3965 Daniel Jacobowitz <dan@codesourcery.com>
3967 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
3968 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
3970 * NEWS: Mention gdbserver DLL support.
3972 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
3974 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
3976 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
3978 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
3981 2007-07-13 Kevin Buettner <kevinb@redhat.com>
3983 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
3986 2007-07-12 Kevin Buettner <kevinb@redhat.com>
3988 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
3989 (mep_analyze_prologue): Add case for BRA instruction.
3991 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
3993 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
3995 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
3997 * breakpoint.c: Include "top.h".
3998 (breakpoint_1): Don't set convenience variable $_ if server prefix
4000 (_initialize_breakpoint): Describe this behaviour in command help.
4002 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
4004 * solib-target.c (library_list_start_segment): Cast address to
4007 2007-07-06 Mark Kettenis <kettenis@gnu.org>
4009 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
4010 for terminated processes.
4012 2007-07-05 Michael Snyder <msnyder@access-company.com>
4014 * event-top.c (cli_command_loop): Prompt string can (and should)
4015 be freed after call to readline (Coverity). Also move local var
4016 declarations into block where they are used.
4018 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
4019 should) be freed after call to readline (Coverity). Also move
4020 local var declarations into block where they are used.
4022 2007-07-03 Andreas Schwab <schwab@suse.de>
4024 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
4027 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
4028 Thiago Bauermann <bauerman@br.ibm.com>
4029 Joseph S. Myers <joseph@codesourcery.com>
4030 Daniel Jacobowitz <dan@codesourcery.com>
4032 * remote.c (remote_check_symbols): Use
4033 gdbarch_convert_from_func_ptr_addr.
4034 * infcall.c (find_function_addr): Handle function descriptors
4035 without debugging information.
4036 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
4037 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
4038 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
4039 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
4040 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
4041 allow SEC_CODE and SEC_DATA.
4042 (enable_break): Update calls. Pass current_target to solib_add.
4043 Use gdbarch_convert_from_func_ptr_addr.
4045 2007-07-03 Ilko Iliev <iliev@ronetix.at>
4046 Daniel Jacobowitz <dan@codesourcery.com>
4048 * symfile.c (print_transfer_performance): Avoid integer overflow.
4051 2007-07-03 Markus Deuling <deuling@de.ibm.com>
4053 * cp-namespace.c (lookup_symbol_file): Add block to
4054 lookup_symbol_global call.
4055 * Makefile.in (solist_h): Add dependency on symtab header.
4056 (symtab.o): Add dependency on solist header.
4057 * solib.c (solib_global_lookup): New function.
4058 * solib-svr4.c (scan_dyntag): Likewise.
4059 (elf_locate_base): Call helper routine scan_dyntag.
4060 (elf_lookup_lib_symbol): New function.
4061 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
4062 * solist.h (symtab.h): New include.
4063 (struct target_so_ops): New member lookup_lib_global_symbol.
4064 (solib_global_lookup): New prototype.
4065 * symtab.c: New include solist.h.
4066 (lookup_objfile_from_block): New function.
4067 (lookup_global_symbol_from_objfile): New function.
4068 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
4069 (lookup_symbol_global): Call library-specific lookup procedure.
4070 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
4072 * NEWS: Document framework.
4074 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4076 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
4079 * cli/cli-script.c (build_command_line): Update NULL check.
4081 2007-07-02 Michael Snyder <msnyder@access-company.com>
4083 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
4085 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4087 * Makefile.in (XMLFILES): Add library-list.dtd.
4088 (ALLDEPFILES): Add solib-target.o.
4089 (solib-target.o): New rule.
4090 * remote.c (PACKET_qXfer_libraries): New constant.
4091 (remote_protocol_features): Add qXfer:libraries:read.
4092 (remote_wait): Recognize library stop replies.
4093 (remote_async_wait): Likewise. Fix typo.
4094 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
4095 (init_remote_async_ops): Fix typo.
4096 (_initialize_remote): Register "set remote library-info-packet".
4097 * solib-som.c (som_current_sos): Set addr_low and addr_high.
4098 * solib-target.c: New file.
4099 * solib.c (solib_map_sections): Use addr_low and addr_high instead
4101 (info_sharedlibrary_command): Likewise.
4102 (solib_add_library, solib_remove_library): New.
4103 * solist.h (struct so_list): Replace textsection with addr_low and
4105 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
4106 * NEWS: Describe new qXfer:libraries:read and shared library
4108 * features/library-list.dtd: New.
4110 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4112 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
4113 (start_remote): Use STOP_QUIETLY_REMOTE.
4114 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
4115 support on a SOLIB_ADD definition. Update breakpoints_inserted.
4116 Update to match shared library event breakpoint support. Only
4117 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
4118 (normal_stop): Handle TARGET_WAITKIND_LOADED.
4119 * fork-child.c (startup_inferior): Do not set
4120 inferior_ignoring_startup_exec_events
4121 * inferior.h (inferior_ignoring_startup_exec_events): Delete
4123 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
4125 2007-07-02 Markus Deuling <deuling@de.ibm.com>
4127 * breakpoint.c (insert_bp_location): Remove dead code
4128 (DISABLE_UNSETTABLE_BREAK).
4129 (disable_breakpoints_in_shlibs)
4130 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
4132 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4134 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
4135 Call insert_bp_location.
4137 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
4139 * core-regset.c (fetch_core_registers): Work around gcc 3.4
4142 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4144 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
4147 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4149 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
4150 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
4151 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
4152 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
4153 to display_gdb_prompt.
4155 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4158 * target.c (memory_xfer_partial): Do not continue past targets with
4161 2007-06-30 Andreas Schwab <schwab@suse.de>
4163 * m68k-tdep.c (m68k_ps_type): New.
4164 (m68k_init_types): New.
4165 (m68k_register_type): Use m68k_ps_type for PS register.
4166 (_initialize_m68k_tdep): Call m68k_init_types.
4168 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
4169 from the generic m68k arch.
4171 2007-06-28 Michael Snyder <msnyder@access-company.com>
4173 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
4176 * linux-thread-db.c (thread_db_get_thread_local_address): Add
4177 gdb_assert before using return value of find_thread_pid (Coverity).
4179 * source.c (unset_substitute_path_command): Plug leak (Coverity).
4181 * cli/cli-script.c (build_command_line): Add null pointer guard
4184 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
4186 * linux-thread-db.c (thread_db_attach): Delete.
4187 (thread_db_detach): Typo fix. Call target_mourn_inferior
4188 instead of fixing up proc_handle.
4189 (have_threads_callback, have_threads): New functions.
4190 (thread_db_wait): Remove dead proc_handle.pid check. Only
4191 translate PTIDs if we have registered threads. Check for new
4192 threads if we have none.
4193 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
4194 (find_new_threads_callback): Only enable event reporting if TID == 0.
4195 (same_ptid_callback): New.
4196 (thread_db_get_thread_local_address): Check for new threads.
4197 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
4198 or to_post_startup_inferior.
4200 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4202 * infrun.c (adjust_pc_after_break): Do not assume software single-step
4203 is always active if SOFTWARE_SINGLE_STEP_P is true.
4204 (resume): Use gdbarch_software_single_step[_p] instead of
4205 SOFTWARE_SINGLE_STEP[_P].
4206 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
4208 * gdbarch.sh (software_single_step): Remove target macro.
4209 * gdbarch.h, gdbarch.c: Regenerate.
4211 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4213 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
4214 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
4215 (struct gdbarch_swap, struct gdbarch_swap_registration,
4216 struct gdbarch_swap_registry, gdbarch_swap_registry,
4217 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
4218 current_gdbarch_swap_in_hack): Remove.
4219 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
4220 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
4221 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
4222 (deprecated_current_gdbarch_select_hack): Likewise.
4223 * gdbarch.h, gdbarch.c: Regenerate.
4225 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4227 * infrun.c (clear_proceed_status): Clean up stop_registers.
4228 (normal_stop): Allocate regcache for stop_registers.
4229 (struct inferior_status): Remove stop_registers member.
4230 (save_inferior_status): Do not save stop_registers.
4231 (restore_inferior_status): Do not restore stop_registers.
4232 (discard_inferior_status): Do not discard stop_registers.
4233 (build_infrun): Remove.
4234 (_initialize_infrun): Do not swap stop_registers.
4236 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4238 * remote.c (remote_address_masked): If remote_address_size is zero,
4239 default to target address size.
4240 (build_remote_gdbarch_data): Remove.
4241 (_initialize_remote): Do not swap remote_address_size.
4243 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4245 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
4246 builtin_type_char, builtin_type_short, builtin_type_int,
4247 builtin_type_long, builtin_type_signed_char,
4248 builtin_type_unsigned_char, builtin_type_unsigned_short,
4249 builtin_type_unsigned_int, builtin_type_unsigned_long,
4250 builtin_type_float, builtin_type_double, builtin_type_long_double,
4251 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4252 builtin_type_bool, builtin_type_long_long,
4253 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4254 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
4255 variable declaration with compatibility macro.
4256 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
4257 builtin_type_char, builtin_type_short, builtin_type_int,
4258 builtin_type_long, builtin_type_signed_char,
4259 builtin_type_unsigned_char, builtin_type_unsigned_short,
4260 builtin_type_unsigned_int, builtin_type_unsigned_long,
4261 builtin_type_float, builtin_type_double, builtin_type_long_double,
4262 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4263 builtin_type_bool, builtin_type_long_long,
4264 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4265 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
4266 (build_gdbtypes): Remove.
4267 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
4268 opaque-type-resolution command here. Do not call
4269 deprecated_register_gdbarch_swap.
4271 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4273 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
4274 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
4275 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
4277 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
4278 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
4279 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
4280 (build_parse): Remove.
4281 (_initialize_parse): Do not call build_parse. Do not register
4282 msym_ types for gdbarch-swapping.
4284 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
4285 instead of creating private type.
4287 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
4288 (_initialize_xcoffread): Do not initialized them.
4289 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
4291 * mdebugread.c (nodebug_func_symbol_type): Remove.
4292 (nodebug_var_symbol_type): Remove.
4293 (_initialize_mdebugread): Do not initialize them.
4294 (parse_symbol): Use builtin nodebug_ type instead of them.
4295 (parse_procedure): Likewise.
4297 2007-06-21 Chris Dearman <chris@mips.com>
4299 * printcmd.c (do_one_display): If display/i, start with an initial
4300 line feed to avoid bad layout if there is a branch delay slot.
4302 2007-06-21 Nigel Stephens <nigel@mips.com>
4303 Maciej W. Rozycki <macro@mips.com>
4305 * disasm.c (gdb_print_insn): Return the number of branch delay
4306 slot instructions too.
4307 * disasm.h (gdb_print_insn): Update prototype.
4308 * printcmd.c (branch_delay_insns): New variable to record the
4309 number of delay slot instructions after disassembling a branch.
4310 (print_formatted): Record the number of branch delay slot
4312 (do_examine): When disassembling, if the last instruction
4313 disassembled has any branch delay slots, then bump the count so
4314 that they get disassembled too.
4315 * tui/tui-disasm.c (tui_disassemble): Update the call to
4317 * NEWS: Document the new behaviour.
4319 2007-06-21 Andreas Schwab <schwab@suse.de>
4321 * regcache.c (write_pc_pid): Restore missing else.
4323 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
4325 * regcache.c (regcache_print): Use get_current_regcache ()
4326 instead of current_regcache.
4328 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
4331 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
4332 instead of bfd_make_section_anyway.
4333 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
4334 when clearing SEC_LOAD.
4336 2007-06-19 Joseph Myers <joseph@codesourcery.com>
4338 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
4339 registers for big-endian.
4341 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4343 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
4344 * disasm.c (dump_insns, gdb_print_insn): Likewise.
4345 * gdbarch.c, gdbarch.h: Regenerate.
4347 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4349 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
4350 gdbarch_believe_pcc_promotion.
4351 * stabsread.c (define_symbol): Likewise.
4352 Remove unnecessary definition.
4353 * coffread.c (process_coff_symbol): Remove unnecessary code.
4354 * gdbarch.c, gdbarch.h: Regenerate.
4356 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
4358 * configure.ac: Do not use ${objdir}.
4359 * configure: Regenerated.
4361 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
4363 * gdbarch.sh (deprecated_register_size): Remove.
4364 * gdbarch.h, gdbarch.c: Regenerate.
4366 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
4367 by INT_REGISTER_SIZE.
4368 (thumb_get_next_pc, arm_return_in_memory): Likewise.
4369 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
4370 * ia64-tdep.c (ia64_gdbarch_init): Do not call
4371 set_gdbarch_deprecated_register_size.
4373 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4375 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
4376 gdbarch_deprecated_fp_regnum.
4377 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
4378 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
4379 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4380 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
4382 * gdbarch.c, gdbarch.h: Regenerate.
4384 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4386 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
4387 gdbarch_extract_return_value.
4388 * value.c (generic_use_struct_convention): Likewise (comment).
4389 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
4390 * arch-utils.c (legacy_return_value): Likewise.
4391 * arch-utils.h (legacy_return_value): Likewise (comment).
4392 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
4393 gdbarch_store_return_value.
4394 * stack.c (return_command): Likewise (comment).
4395 * arch-utils.h (legacy_return_value): Likewise (comment).
4396 * arch-utils.c (legacy_return_value): Likewise.
4397 * gdbarch.c, gdbarch.h: Regenerate.
4399 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4401 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
4402 gdbarch_deprecated_use_struct_convention.
4403 * arch-utils.c (legacy_return_value): Likewise.
4404 * gdbarch.c, gdbarch.h: Regenerate.
4406 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4408 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
4409 gdbarch_deprecated_function_start_offset.
4410 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
4411 * linespec.c (minsym_found): Likewise.
4412 * infrun.c (handle_inferior_event): Likewise.
4413 * infcall.c (find_function_addr): Likewise.
4414 * cli/cli-cmds.c (disassemble_command): Likewise.
4415 * gdbarch.c, gdbarch.h: Regenerate.
4417 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4419 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
4420 gdbarch_deprecated_reg_struct_has_addr.
4421 * infcall.c (call_function_by_hand): Likewise.
4422 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
4423 * gdbarch_deprecated_reg_struct_has_addr_p.
4424 * infcall.c (call_function_by_hand): Likewise.
4425 * gdbarch.c, gdbarch.h: Regenerate.
4427 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4429 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4430 * sh-tdep.c (sh_extract_struct_value_address): Remove.
4431 (sh_gdbarch_init): Remove
4432 set_gdbarch_deprecated_extract_struct_value_address.
4433 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
4434 (sh64_gdbarch_init): Remove
4435 set_gdbarch_deprecated_extract_struct_value_address.
4436 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
4437 (ia64_gdbarch_init): Remove
4438 set_gdbarch_deprecated_extract_struct_value_address.
4439 * frv-tdep.c (frv_extract_struct_value_address): Remove.
4440 (frv_gdbarch_init): Remove
4441 set_gdbarch_deprecated_extract_struct_value_address.
4442 * gdbarch.c, gdbarch.h: Regenerate.
4444 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4446 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
4447 * v850-tdep.c (v850_unwind_sp): Likewise.
4448 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
4449 * stack.c (frame_info): Likewise.
4450 * stabsread.c (define_symbol): Likewise.
4451 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
4452 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
4453 (sh_unwind_sp): Likewise.
4454 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
4455 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
4456 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
4457 (rs6000_frame_cache): Likewise.
4458 * rs6000-nat.c (store_register): Likewise.
4459 * remote-mips.c (mips_wait): Likewise.
4460 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4461 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4462 (ppc64_sysv_abi_push_dummy_call): Likewise.
4463 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4464 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4465 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4466 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4467 * m32r-rom.c (m32r_supply_register): Likewise.
4468 * frame.c (frame_sp_unwind): Likewise.
4469 * mips-tdep.c (mips_insn16_frame_cache)
4470 (mips_insn32_frame_cache): Likewise (comment).
4471 * m68klinux-nat.c (supply_gregset): Likewise.
4472 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
4473 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
4474 * i386-tdep.c (i386_get_longjmp_target): Likewise.
4475 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4476 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
4477 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
4478 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
4479 (cris_register_type, crisv32_register_type)
4480 (cris_dwarf2_frame_init_reg): Likewise.
4481 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4482 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
4483 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
4484 * libunwind-frame.c (libunwind_frame_cache): Likewise.
4486 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
4487 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
4488 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
4489 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
4490 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
4491 * v850-tdep.c (v850_unwind_pc): Likewise.
4492 * stack.c (frame_info): Likewise.
4493 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
4494 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
4495 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
4496 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
4497 (sh_dsp_show_regs): Likewise.
4498 * shnbsd-tdep.c (shnbsd_supply_gregset)
4499 (shnbsd_collect_gregset): Likewise.
4500 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
4501 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
4502 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
4503 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4504 (6000_register_reggroup_p, rs6000_unwind_pc)
4505 (rs6000_frame_cache): Likewise.
4506 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
4507 (rs6000_store_inferior_registers): Likewise.
4508 * remote-mips.c (mips_wait, mips_load): Likewise.
4509 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4510 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4511 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4512 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4513 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
4514 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4515 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
4516 (store_ppc_registers, fill_gregset): Likewise.
4517 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
4518 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
4519 * mipsnbsd-nat.c (getregs_supplies): Likewise.
4520 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
4521 * m68klinux-nat.c (supply_gregset): Likewise.
4522 * irix5-nat.c (fill_gregset): Likewise.
4523 * i386-tdep.c (i386_unwind_pc): Likewise.
4524 * i386-linux-nat.c (i386_linux_resume): Likewise.
4525 * frame.c (get_prev_frame_1): Likewise.
4526 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4527 * dbug-rom.c (dbug_supply_register): Likewise.
4528 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
4529 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
4530 (cris_register_type, crisv32_register_type, crisv32_register_name)
4531 (cris_dwarf2_frame_init_reg, find_step_target)
4532 (cris_software_single_step, cris_supply_gregset)
4533 (cris_regnums): Likewise.
4534 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4535 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4536 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
4537 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
4538 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
4540 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
4541 * dbug-rom.c (dbug_supply_register): Likewise.
4542 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
4543 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
4544 * win32-nat.c (win32_resume): Likewise.
4545 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
4546 * m68k-tdep.c (m68k_register_type): Likewise.
4547 * m68klinux-nat.c (supply_gregset): Likewise.
4549 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
4550 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
4551 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
4552 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
4553 (fv_reg_base_num, dr_reg_base_num): Likewise.
4554 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
4555 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
4556 (sh64_extract_return_value, sh64_store_return_value)
4557 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
4558 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
4559 * procfs.c (procfs_fetch_registers, procfs_store_registers)
4560 (invalidate_cache): Likewise.
4561 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4562 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
4563 (mipsnbsd_fill_fpreg): Likewise.
4564 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
4565 (mipsnbsd_store_inferior_registers): Likewise.
4566 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
4567 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
4568 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
4569 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
4570 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
4571 (fill_fpregset): Likewise.
4572 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
4573 * i386-tdep.h (struct_return): Likewise (comment).
4574 * i386-nto-tdep.c (i386nto_register_area): Likewise.
4575 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
4576 (go32_store_registers): Likewise.
4577 * alpha-tdep.c (alpha_next_pc): Likewise.
4578 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4579 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
4580 (alphabsd_store_inferior_registers): Likewise.
4581 * core-regset.c (fetch_core_registers): Likewise.
4582 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
4584 * gdbarch.c, gdbarch.h: Regenerate.
4586 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
4588 * coffread.c (coff_sym_fns): Add default_symfile_segments.
4589 * dbxread.c (start_psymtab): Check HAVE_ELF.
4590 (aout_sym_fns): Likewise.
4591 * elfread.c (elf_symfile_segments): New.
4592 (elf_sym_fns): Add elf_symfile_segments.
4593 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
4594 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
4595 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
4596 * somread.c (som_sym_fns): Use default_symfile_segments.
4597 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
4598 (init_objfile_sect_indices): Call symfile_find_segment_sections.
4599 (default_symfile_segments): New function.
4600 (syms_from_objfile): Update call to find_sym_fns.
4601 (symfile_get_segment_data, free_symfile_segment_data): New.
4602 (symfile_map_offsets_to_segments): New.
4603 (symfile_find_segment_sections): New.
4604 * symfile.h (struct symfile_segment_data): New.
4605 (struct sym_fns): Add sym_segments.
4606 (default_symfile_segments, symfile_get_segment_data)
4607 (free_symfile_segment_data): New prototypes.
4608 (symfile_map_offsets_to_segments): Likewise.
4609 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
4610 * Makefile.in (COMMON_OBS): Remove elfread.o.
4611 (elf_internal_h): New.
4612 (elfread.o): Update.
4613 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
4615 * config.in, configure: Regenerated.
4616 * NEWS: Mention qOffsets changes.
4618 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4620 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
4621 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
4622 Replace global variable declaration with compatibility macro.
4623 (struct builtin_m2_type): New data type.
4624 (builtin_m2_type): Add prototype.
4625 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
4626 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
4627 Remove global variables.
4628 (m2_language_arch_info): Use builtin_m2_type instead of variables.
4629 (build_m2_types): New function.
4630 (m2_type_data): New variable.
4631 (builtin_m2_type): New function.
4632 (_initialize_m2_language): Do not build data types. Register
4633 m2_type_data per-gdbarch data.
4635 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4637 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
4638 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
4639 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
4640 builtin_type_f_real_s8, builtin_type_f_real_s16,
4641 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
4642 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
4643 variable declaration with compatibility macro.
4644 (struct builtin_f_type): New data type.
4645 (builtin_f_type): Add prototype.
4646 * f-lang.c (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): Remove variables.
4652 (f_language_arch_info): Use builtin_f_type instead of variables.
4653 (build_fortran_types): Build builtin_f_type structure instead of
4654 setting global type variables.
4655 (f_type_data): New variable.
4656 (builtin_f_type): New function.
4657 (_initialize_f_language): Do not call build_fortran_types. Do not
4658 swap global type variables. Register f_type_data per-gdbarch data.
4660 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4662 * f-lang.c (_initialize_f_language): Do not initialize or
4663 swap builtin_type_string.
4665 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4667 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
4668 value_of_builtin_frame_reg): Remove.
4669 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
4670 inactive call to value_of_builtin_frame_reg.
4672 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4674 * gdbarch.sh (bfd_vma_bit): Remove.
4675 * gdbarch.c, gdbarch.h: Regenerate.
4677 * gdbtypes.h (builtin_bfd_vma_type): Remove.
4678 * gdbtypes.h (builtin_bfd_vma_type): Remove.
4679 (build_gdbtypes): Do not initialize it.
4680 (_initialize_gdbtypes): Do not swap it.
4682 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4684 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
4685 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
4686 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
4687 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
4688 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
4689 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
4690 builtin_type_vec64, builtin_type_vec128): Remove.
4691 (init_simd_type): Remove.
4692 (init_vector_type): Make global.
4693 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
4694 (build_gdbtypes): Do not build vector types.
4695 (_initialize_gdbtypes): Do not swap vector types.
4696 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
4697 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
4698 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
4699 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
4700 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
4701 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
4702 builtin_type_vec64, builtin_type_vec128): Remove declarations.
4703 (init_vector_type): Add prototype.
4705 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
4706 i386_sse_type members.
4707 (i386_mmx_type, i386_sse_type): Change from variables to functions.
4708 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
4709 (i386_init_types): Do not build vector types.
4710 (i386_mmx_type, i386_sse_type): New functions.
4711 (i386_register_type): Call them instead of using global variables.
4712 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
4713 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
4714 of using global variable.
4716 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
4717 and ppc_builtin_type_vec128 members.
4718 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
4719 (rs6000_builtin_type_vec128): Likewise.
4720 (rs6000_register_type): Call them instead of using builtin_type_vec64
4721 and builtin_type_vec128.
4722 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
4724 * spu-tdep.c (struct gdbarch_tdep): New data type.
4725 (spu_builtin_type_vec128): Remove variable.
4726 (spu_builtin_type_vec128): New function.
4727 (spu_register_type): Call it instead of using global variable.
4728 (spu_gdbarch_init): Allocate tdep structure.
4729 (spu_init_vector_type): Remove function.
4730 (_initialize_spu_tdep): Do not call it.
4732 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4734 * amd64-tdep.c (struct amd64_register_info): Remove.
4735 (amd64_register_info): Remove.
4736 (amd64_register_names): New static variable.
4737 (AMD64_NUM_REGS): Use amd64_register_names instead of
4738 amd64_register_info.
4739 (amd64_register_name): Likewise.
4740 (amd64_register_type): Do not refer to amd64_register_info.
4742 * s390-tdep.c (struct s390_register_info): Remove.
4743 (s390_register_info): Remove.
4744 (s390_register_name): Do not refer to s390_register_info.
4745 (s390_register_type): Likewise.
4747 * sparc64-tdep.c (struct sparc64_register_info): Remove.
4748 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
4749 (sparc64_register_names, sparc64_pseudo_register_names): New.
4750 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
4751 sparc64_register_names and sparc64_pseudo_register_names instead of
4752 sparc64_register_info and sparc64_pseudo_register_info.
4753 (sparc64_register_name): Likewise.
4754 (sparc64_register_type): Do not refer to sparc64_register_info
4755 and sparc64_pseudo_register_info.
4757 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4759 * c-lang.c (cplus_builtin_types): Remove.
4760 (enum cplus_primitive_types): New data type.
4761 (cplus_language_arch_info): New function.
4762 (cplus_language_defn): Set la_language_arch_info member. Do not set
4763 la_builtin_type_vector and string_char_type members.
4765 * f-lang.c (f_builtin_types): Remove.
4766 (enum f_primitive_types): New data type.
4767 (f_language_arch_info): New function.
4768 (f_language_de): Set la_language_arch_info member. Do not set
4769 la_builtin_type_vector and string_char_type members.
4771 * m2-lang.c (m2_builtin_types): Remove.
4772 (enum m2_primitive_types): New data type.
4773 (m2_language_arch_info): New function.
4774 (m2_language_defn): Set la_language_arch_info member. Do not set
4775 la_builtin_type_vector and string_char_type members.
4777 * objc-lang.c (objc_builtin_types): Remove.
4778 (objc_language): Set la_language_arch_info member. Do not set
4779 la_builtin_type_vector and string_char_type members.
4781 * p-lang.c (pascal_builtin_types): Remove.
4782 (enum pascal_primitive_types): New data type.
4783 (pascal_language_arch_info): New function.
4784 (pascal_language_defn): Set la_language_arch_info member. Do not set
4785 la_builtin_type_vector and string_char_type members.
4787 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4789 * regcache.c (struct regcache): Add ptid_t member.
4790 (regcache_xmalloc): Initialize it.
4791 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
4792 (regcache_dup): Likewise.
4793 (regcache_dup_no_passthrough): Likewise.
4794 (current_regcache): Make static.
4795 (registers_ptid): Remove variable.
4796 (get_thread_regcache): New function.
4797 (get_current_regcache): New function.
4798 (registers_changed): Implement by freeing current regcache.
4799 (regcache_raw_read): Do not refer to current_regcache. Set
4800 inferior_ptid to regcache->ptid while calling target routines.
4801 (regcache_raw_write): Likewise.
4802 (regcache_raw_supply): Do not refer to current_regcache.
4803 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
4804 (write_pc_pid): Likewise.
4805 (build_regcache): Remove.
4806 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
4807 or deprecated_register_gdbarch_swap. Do not initialize
4809 * regcache.h (get_current_regcache): Add prototype.
4810 (get_thread_regcache): Likewise.
4811 (current_regcache): Remove declaration.
4813 * corelow.c (core_open): Replace current_regcache by
4814 get_current_regcache ().
4815 * frame.c (frame_pop): Likewise.
4816 (put_frame_register): Likewise.
4817 (get_current_frame, create_new_frame): Likewise.
4818 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
4819 * stack.c (return_command): Likewise.
4820 * infcall.c (call_function_by_hand): Likewise.
4821 * infrun.c (resume): Likewise.
4822 (save_inferior_status, restore_inferior_status): Likewise.
4823 * linux-fork.c (fork_load_infrun_state): Likewise.
4824 (fork_save_infrun_state): Likewise.
4825 * win32-nat.c (win32_resume): Likewise.
4826 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
4827 * monitor.c (monitor_wait): Likewise.
4828 * remote.c (remote_wait): Likewise.
4829 * remote-mips.c (mips_wait): Likewise.
4831 * bsd-kvm.c (bsd_kvm_open): Likewise
4832 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
4833 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
4834 * i386-linux-nat.c (i386_linux_resume): Likewise.
4835 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
4836 (ia64_linux_stopped_data_address): Likewise.
4838 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
4839 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
4840 * mep-tdep.c (current_me_module, current_options): Likewise.
4841 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
4843 * linux-nat.c (linux_nat_do_thread_registers): Use thread
4844 regcache instead of current_regcache. Call target_fetch_registers.
4845 (linux_nat_corefile_thread_callback): Update call site.
4846 (linux_nat_do_registers): Likewise.
4847 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
4848 of current_regcache.
4849 (procfs_make_note_section): Likewise.
4850 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
4851 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
4852 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
4853 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
4855 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4857 * regcache.c (read_register, read_register_pid): Remove.
4858 (write_register, write_register_pid): Likewise.
4859 * regcache.h (read_register, read_register_pid): Remove prototype.
4860 (write_register, write_register_pid): Likewise.
4862 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4864 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
4865 (write_pc): Likewise. Remove default implementation, add predicate.
4866 * gdbarch.c, gdbarch.h: Regenerate.
4867 * regcache.c (read_pc_pid): Use current regcache instead of calling
4869 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
4871 (generic_target_write_pc): Remove.
4872 * inferior.h (generic_target_write_pc): Remove.
4873 * frv-tdep.c (frv_gdbarch_init): Do not install it.
4874 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
4875 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4876 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
4877 * sh-tdep.c (sh_gdbarch_init): Likewise.
4878 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
4880 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
4881 argument. Use REGCACHE instead of calling read_register_pid.
4882 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
4883 * hppa-tdep.c (hppa_read_pc): Likewise.
4884 * hppa-tdep.h (hppa_read_pc): Likewise.
4885 * ia64-tdep.c (ia64_read_pc): Likewise.
4886 * m32r-tdep.c (m32r_read_pc): Likewise.
4887 * mep-tdep.c (mep_read_pc): Likewise.
4888 * mn10300-tdep.c (mn10300_read_pc): Likewise.
4889 * spu-tdep.c (spu_read_pc): Likewise.
4891 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
4892 argument. Use REGCACHE instead of calling write_register_pid.
4893 * avr-tdep.c (avr_write_pc): Likewise.
4894 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
4895 * hppa-tdep.c (hppa_write_pc): Likewise.
4896 * hppa-tdep.h (hppa_write_pc): Likewise.
4897 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
4898 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
4899 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
4900 * ia64-tdep.c (ia64_write_pc): Likewise.
4901 * ia64-tdep.h (ia64_write_pc): Likewise.
4902 * m32r-tdep.c (m32r_write_pc): Likewise.
4903 * m88k-tdep.c (m88k_write_pc): Likewise.
4904 * mep-tdep.c (mep_write_pc): Likewise.
4905 * mips-tdep.c (mips_write_pc): Likewise.
4906 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
4907 * mn10300-tdep.c (mn10300_write_pc): Likewise.
4908 * sparc-tdep.c (sparc_write_pc): Likewise.
4909 * spu-tdep.c (spu_write_pc): Likewise.
4911 * mips-tdep.c (read_signed_register): Remove.
4912 (read_signed_register_pid): Likewise.
4913 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
4914 Use REGCACHE instead of calling read_signed_register_pid.
4916 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4918 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
4919 * gdbarch.c, gdbarch.h: Regenerate.
4920 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
4921 (push_dummy_code): Likewise. Pass it to callee.
4922 (call_function_by_hand): Pass current regcache to push_dummy_code.
4924 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
4925 argument. Use it instead of current_regcache.
4927 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
4928 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
4930 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4932 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
4933 * gdbarch.c, gdbarch.h: Regenerate.
4934 * infrun.c (handle_inferior_event): Pass current frame to
4935 gdbarch_get_longjmp_target.
4937 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
4938 Read registers from FRAME instead of using read_register.
4939 Use get_frame_arch instead of current_gdbarch.
4940 * arm-tdep.c (arm_get_longjmp_target): Likewise.
4941 * i386-tdep.c (i386_get_longjmp_target): Likewise.
4942 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
4943 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
4944 (mips64_linux_get_longjmp_target): Likewise.
4945 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
4947 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4949 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
4950 * gdbarch.c, gdbarch.h: Regenerate.
4951 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
4952 * arch-utils.h (generic_skip_trampoline_code): Likewise.
4953 * infrun.c (handle_inferior_event): Pass current frame to
4954 gdbarch_skip_trampoline_code and skip_language_trampoline.
4956 * language.c (unk_lang_trampoline): Add FRAME argument.
4957 (skip_language_trampoline): Add FRAME argument. Pass it to
4958 skip_trampoline callback.
4959 * language.h: Add forward declaration of struct frame_info.
4960 (struct language_defn): Add FRAME argument to skip_trampoline.
4961 (skip_language_trampoline): Add FRAME argument.
4962 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
4963 to skip_trampoline callback.
4964 * cp-abi.h: Add forward declaration of struct frame_info.
4965 (cplus_skip_trampoline): Add FRAME argument.
4966 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
4967 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
4968 to gdbarch_skip_trampoline_code.
4969 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
4970 to gdbarch_skip_trampoline_code.
4972 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
4973 * symtab.h (find_solib_trampoline_target): Likewise.
4974 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
4975 find_solib_trampoline_target.
4977 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
4978 from FRAME instead of calling read_register.
4980 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
4981 argument. Read registers from FRAME instead of using read_register.
4982 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
4983 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
4985 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
4988 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
4990 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
4991 registers from FRAME instead of using read_signed_register.
4993 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
4995 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
4996 instead of using read_register.
4997 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
4998 ppc64_standard_linkage_target.
4999 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
5000 Pass it to find_solib_trampoline_target. Read registers from FRAME
5001 instead of using read_register.
5003 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
5006 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5008 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
5010 * gdbarch.c, gdbarch.h: Regenerate.
5011 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
5013 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
5014 registers from FRAME instead of using read_register.
5015 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5016 to alpha_next_pc. Use get_frame_pc instead of read_pc.
5017 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
5020 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
5021 from FRAME instead of using read_register.
5022 (thumb_get_next_pc): Likewise.
5023 (arm_get_next_pc): Likewise.
5024 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5025 to arm_get_next_pc. Use get_frame_pc instead of read_register.
5026 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
5029 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
5030 from FRAME instead of using read_register.
5031 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5032 to find_step_target.
5034 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
5035 from FRAME instead of using read_register / read_signed_register.
5036 (extended_mips16_next_pc): Likewise.
5037 (mips16_next_pc): Likewise.
5038 (mips_next_pc): Likewise.
5039 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5040 to mips_next_pc. Use get_frame_pc instead of read_pc.
5041 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
5044 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
5045 of current frame. Read registers from FRAME.
5046 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
5047 branch_dest. Use get_frame_pc instead of read_pc.
5048 (rs6000_software_single_step): Likewise.
5049 (bl_to_blrl_insn_p): Do not call branch_dest.
5050 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
5053 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
5054 Read registers from FRAME instead of current regcache.
5055 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
5056 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
5057 * sparc-tdep.c (sparc_address_from_register): Remove.
5058 (sparc_analyze_control_transfer): Pass FRAME argument instead of
5059 GDBARCH. Pass FRAME to step_trap callback.
5060 (sparc_step_trap): Add FRAME argument.
5061 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5062 to sparc_analyze_control_transfer. Read registers from FRAME instead
5063 of calling sparc_address_from_register.
5064 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
5066 (sparc_address_from_register): Remove prototype.
5067 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
5068 (sparcnbsd_step_trap): Add FRAME argument.
5070 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
5071 by FRAME. Read registers from FRAME instead of REGCACHE.
5073 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5075 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
5076 instead of calling read_register.
5078 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
5079 calling write_register.
5081 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
5082 calling write_register.
5084 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
5085 instead of calling read_register.
5086 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
5087 instead of calling read_register and write_register.
5089 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
5090 instead of current_regcache.
5092 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
5093 of calling write_register.
5094 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
5095 parameter instead of current_regcache.
5097 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
5098 instead of calling read_register.
5099 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
5100 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
5101 (mips_n32n64_push_dummy_call): Likewise.
5102 (mips_o32_push_dummy_call): Likewise.
5103 (mips_o64_push_dummy_call): Likewise.
5105 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
5106 parameter instead of current_regcache.
5108 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
5109 Use it instead of read_register and write_register.
5110 (xtensa_register_read_masked): Likewise.
5111 (xtensa_pseudo_register_read): Update call.
5112 (xtensa_pseudo_register_write): Likewise.
5113 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
5114 instead of calling read_register.
5115 (xtensa_push_dummy_call): Update comment.
5117 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5119 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
5120 by frame_unwind_register_signed calls.
5121 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
5122 frame allocations when called with NULL NEXT_FRAME parameter.
5123 (read_next_frame_reg): Remove.
5125 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
5126 instead of reading the FPSCR register.
5127 (sh_frame_cache): Pass unwound FPSCR register value to
5128 sh_analyze_prologue.
5129 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
5131 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
5132 instead of reading the CTBP register.
5133 (v850_frame_cache): Pass unwound CTBP register value to
5134 v850_analyze_prologue.
5136 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5138 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
5139 * sh-tdep.c (sh_show_regs): Likewise.
5140 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
5141 (sh_generic_show_regs): Add FRAME parameter. Use register
5142 values from that frame instead of calling read_register.
5143 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
5144 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
5145 sh_dsp_show_regs): Likewise.
5146 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
5147 sh64_show_regs): Likewise.
5149 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5151 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
5152 current regcache instead of calling read_register.
5154 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5156 * mep-tdep.c (current_me_module): Read from current regcache
5157 instead of calling read_register.
5158 (current_options): Likewise.
5160 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5162 * cris-tdep.c (cris_stopped_data_address): Read register values
5163 from current frame instead of calling read_register.
5164 * frv-tdep.c (frv_stopped_data_address): Likewise.
5166 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5168 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
5169 instead of write_register (PC_REGNUM, ...).
5171 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5173 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
5174 explaining why the PC adjustment code is necessary.
5176 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
5178 * m68k-tdep.h (enum m68k_flavour): New.
5179 (struct gdbarch_tdep): New fields
5180 float_return, flavour and fpregs_present.
5181 * m68k-tdep.c (m68k_register_type): Use
5182 fpregs_present and conditionalize floating
5183 registers type on flavour.
5184 (m68k_register_names): New.
5185 (m68k_register_name): Use the above.
5186 (m68k_convert_register_p): Consult fpregs_present.
5187 (m68k_register_to_value, m68k_value_to_register):
5188 Use register_type to obtain the type of floating
5190 (m68k_svr4_extract_return_value): Check tdep->float_return.
5191 Use register_type to get the type of floating
5193 (m68k_svr4_store_return_value): Likewise.
5194 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
5195 (m68k_analyze_register_saves): Likewise.
5196 (m68k_gdbarch_init): Extract infromation
5197 from XML description, if present. Guess coldfire by
5198 looking at the file, if present. Conditionalize
5199 setting of long double format. Set decr_pc_after_break
5200 to 2 on coldfire and fido. Enable XML-driven
5201 register description.
5202 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
5203 size of tdep->fpreg_type, as opposed to hardcoded value.
5204 * Makefile.in (m68k-tdep.o): Update dependencies.
5206 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5208 * NEWS: Mention "info spu" commands and qXfer:spu:read and
5209 qXfer:spu:write remote packet types.
5211 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5213 * xml-tdesc.c (tdesc_start_target): New.
5214 (target_attributes): New.
5215 (tdesc_elements): Use it.
5216 * features/gdb-target.dtd: Add #FIXED version attribute for
5219 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
5221 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
5223 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
5225 * fork-child.c (fork_inferior): Update comment.
5227 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5229 * features/Makefile: Generate regformats for mips-linux and
5231 * features/sort-regs.xsl: Correct typo.
5232 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
5233 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
5236 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5238 * config/mips/linux.mh (TDEP_XML): New.
5239 * features/mips-linux.xml, features/mips64-linux.xml: New files.
5240 * mips-linux-nat.c (mips_linux_register_addr): Handle
5241 MIPS_RESTART_REGNUM.
5242 (mips64_linux_register_addr): Likewise.
5243 (super_xfer_partial, mips_linux_xfer_partial): New.
5244 (_initialize_mips_linux_nat): Add them to the target_ops.
5245 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
5246 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
5247 (mips_linux_o32_sigframe_init)
5248 (mips_linux_n32n64_sigframe_init): Likewise.
5249 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
5250 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
5251 "org.gnu.gdb.mips.linux" feature.
5252 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
5253 (mips_linux_restart_reg_p): New prototype.
5254 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
5255 initialization routine.
5256 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
5258 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5260 * Makefile.in (mips-tdep.o): Update.
5261 * mips-tdep.c (struct register_alias, mips_o32_aliases)
5262 (mips_n32_n64_aliases, mips_register_aliases): New.
5263 (mips_register_name): Call tdesc_register_name.
5264 (mips_tdesc_register_reggroup_p): New.
5265 (mips_pseudo_register_type, value_of_mips_user_reg): New.
5266 (mips_gdbarch_init): Add target-described register support.
5267 Register aliases for register names.
5268 * target-descriptions.c (tdesc_register_name): Make global.
5269 (tdesc_register_in_reggroup_p): New function, broken out from
5270 tdesc_register_reggroup_p.
5271 (tdesc_register_reggroup_p): Use it.
5272 * target-descriptions.h (tdesc_register_name)
5273 (tdesc_register_in_reggroup_p): New prototypes.
5274 * NEWS: Correct formatting. Mention MIPS register support.
5275 * features/mips-cp0.xml, features/mips-fpu.xml,
5276 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
5277 features/mips64-cpu.xml: New files.
5279 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5281 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
5282 * valops.c (value_cast): Likewise.
5283 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
5284 * ui-out.c (ui_out_field_core_addr): Likewise.
5285 * tracepoint.c (tracepoints_info): Likewise.
5286 * symtab.c (print_msymbol_info): Likewise.
5287 * solib-irix.c (irix_current_sos)
5288 (irix_open_symbol_file_object): Likewise.
5289 * remote.c (build_remote_gdbarch_data): Likewise.
5290 * prologue-value.c (make_pv_area): Likewise.
5291 * procfs.c (info_mappings_callback): Likewise.
5292 * printcmd.c (print_scalar_formatted)
5293 (deprecated_print_address_numeric): Likewise.
5294 * memattr.c (mem_info_command): Likewise.
5295 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
5296 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
5297 * exec.c (print_section_info): Likewise.
5298 * dwarf2read.c (read_subrange_type): Likewise.
5299 * dwarf2loc.c (find_location_expression): Likewise.
5300 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
5301 (signed_address_type, execute_stack_op): Likewise.
5302 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
5303 * gdbarch.c, gdbarch.h: Regenerate.
5305 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5307 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
5308 * arch-utils.c (show_architecture): Likewise.
5309 * remote-mips.c (mips_open): Likewise
5310 * nto-tdep.c (nto_find_and_open_solib)
5311 (nto_init_solib_absolute_prefix): Likewise.
5312 * nto-procfs (procfs_open): Likewise.
5313 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
5314 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
5315 * gdbarch.c, gdbarch.h: Regenerate.
5317 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5319 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
5320 * gdbtypes.c (build_flt): Likewise.
5321 * gdbarch.c, gdbarch.h: Regenerate.
5323 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5325 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
5326 gdbarch_breakpoint_from_pc.
5327 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
5328 * remote.c (remote_insert_breakpoint)
5329 (remote_insert_hw_breakpoint): Likewise.
5330 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
5331 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
5332 * breakpoint.h (bp_target_info): Likewise (comment).
5333 * breakpoint.c (read_memory_nobpt): Likewise.
5334 * mem-break.c (default_memory_insert_breakpoint): Likewise.
5335 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
5336 * gdbarch.c, gdbarch.h: Regenerate.
5338 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5340 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
5341 * solib-svr4.c (svr4_truncate_ptr): Likewise.
5342 * solib-pa64.c (read_dynamic_info): Likewise.
5343 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
5344 * solib.c (info_sharedlibrary_command): Likewise.
5345 * s390-nat.c (SUBOFF): Likewise.
5346 * p-valprint.c (pascal_val_print): Likewise.
5347 * procfs.c (info_proc_mappings): Likewise.
5348 * printcmd.c (decode_format): Likewise.
5349 * nto-tdep.c (nto_truncate_ptr): Likewise.
5350 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5351 (mips64_linux_get_longjmp_target): Likewise.
5352 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5353 * jv-valprint.c (java_value_print): Likewise.
5354 * jv-lang.c (get_java_object_header_size): Likewise.
5355 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5356 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5357 (hppa_hpux_unwind_adjust_stub): Likewise.
5358 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5359 * gdbtypes.c (make_pointer_type, make_reference_type)
5360 (smash_to_memberptr_type): Likewise.
5361 * gdbarch.c, gdbarch.h: Regenerate.
5363 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5365 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
5366 (print_gp_register_row): Stop before printing a register bigger
5367 than the ABI register size.
5368 (mips_print_registers_info): Update call to mips_print_register.
5370 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5372 * expression.h (enum exp_opcode): Document a register name for
5374 * parse.c (write_dollar_variable): Write the register name for
5376 (operator_length_standard): Expect the register name following
5378 * ada-lang.c (resolve_subexp): Likewise.
5379 * ax-gdb.c (gen_expr): Likewise.
5380 * eval.c (evaluate_subexp_standard): Likewise.
5381 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5383 * tracepoint.c (encode_actions): Likewise.
5385 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5387 * utils.c (set_screen_size): Use INT_MAX for default columns.
5389 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
5391 * remote.c (remote_protocol_features): Add qXfer:spu:read and
5392 qXfer:spu:write packet types.
5394 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5396 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
5397 * gdbarch.c, gdbarch.h: Regenerate.
5399 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5401 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
5402 gdbarch_stab_reg_to_regnum.
5403 * stabsread.c (define_symbol): Likewise.
5404 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
5405 gdbarch_ecoff_reg_to_regnum.
5406 * mdebugread.c (parse_symbol): Likewise.
5407 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
5408 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
5409 gdbarch_dwarf_reg_to_regnum.
5410 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
5411 * coffread.c (process_coff_symbol): Likewise.
5412 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
5413 gdbarch_dwarf2_reg_to_regnum.
5414 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
5415 (locexpr_describe_location): Likewise.
5416 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
5417 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
5418 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
5419 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
5420 * gdbarch.c, gdbarch.h: Regenerate.
5422 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5424 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
5425 gdbarch_smash_text_address.
5426 * somread.c (som_symtab_read): Likewise.
5427 * elfread.c (record_minimal_symbol): Likewise.
5428 * dbxread.c (process_one_symbol): Likewise.
5429 * coffread.c (coff_symtab_read): Likewise.
5430 * gdbarch.c, gdbarch.h: Regenerate.
5432 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5434 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
5435 * findvar.c (value_from_register): Likewise.
5436 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
5437 * valops.c (value_assign): Likewise.
5438 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
5439 gdbarch_convert_register_p.
5440 * findvar.c (value_from_register): Likewise.
5441 * valops.c (value_assign): Likewise.
5442 * gdbarch.c, gdbarch.h: Regenerate.
5444 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5446 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
5447 gdbarch_register_sim_regno.
5448 * sim-regno.h (sim_regno): Likewise (comment).
5449 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
5450 * gdbarch.c, gdbarch.h: Regenerate.
5452 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5454 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
5455 gdbarch_virtual_frame_pointer.
5456 * tracepoint.c (encode_actions): Likewise.
5457 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
5458 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
5459 * gdbarch.c, gdbarch.h: Regenerate.
5461 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5463 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
5464 * p-lang.c (pascal_create_fundamental_type): Likewise.
5465 * objc-lang.c (objc_create_fundamental_type): Likewise.
5466 * mdebugread.c (_initialize_mdebugread): Likewise.
5467 * m2-lang.c (m2_create_fundamental_type)
5468 (_initialize_m2_language): Likewise.
5469 * gdbtypes.c (build_gdbtypes): Likewise.
5470 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5471 * doublest.c (floatformat_from_length): Likewise.
5472 * c-lang.c (c_create_fundamental_type): Likewise.
5473 * ada-lang.c (ada_create_fundamental_type)
5474 (ada_language_arch_info): Likewise.
5475 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
5476 * value.c (unpack_double): Likewise (comment).
5477 * gdbtypes.c (build_gdbtypes): Likewise.
5478 * doublest.c (floatformat_from_length): Likewise.
5479 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
5480 * valarith.c (value_binop): Likewise.
5481 * p-lang.c (pascal_create_fundamental_type): Likewise.
5482 * objc-lang.c (objc_create_fundamental_type): Likewise.
5483 * mdebugread.c (_initialize_mdebugread): Likewise.
5484 * m2-lang.c (m2_create_fundamental_type): Likewise.
5485 * gdbtypes.c (build_gdbtypes): Likewise.
5486 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5487 * doublest.c (floatformat_from_length): Likewise.
5488 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
5489 * c-lang.c (c_create_fundamental_type): Likewise.
5490 * ada-lex.l (processReal): Likewise.
5491 * ada-lang.c (ada_create_fundamental_type)
5492 (ada_language_arch_info): Likewise.
5493 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
5494 * value.c (unpack_double): Likewise (comment).
5495 * gdbtypes.c (build_gdbtypes): Likewise.
5496 * doublest.c (floatformat_from_length): Likewise.
5497 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
5498 gdbarch_long_double_bit.
5499 * p-lang.c (pascal_create_fundamental_type): Likewise.
5500 * objc-lang.c (objc_create_fundamental_type): Likewise.
5501 * m2-lang.c (m2_create_fundamental_type): Likewise.
5502 * gdbtypes.c (build_gdbtypes): Likewise.
5503 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5504 * doublest.c (floatformat_from_length): Likewise.
5505 * c-lang.c (c_create_fundamental_type): Likewise.
5506 * ada-lex.l (processReal): Likewise.
5507 * ada-lang.c (ada_create_fundamental_type)
5508 (ada_language_arch_info): Likewise.
5509 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
5510 gdbarch_long_double_format.
5511 * gdbtypes.c (build_gdbtypes): Likewise.
5512 * doublest.c (floatformat_from_length): Likewise.
5513 * gdbarch.c, gdbarch.h: Regenerate.
5515 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5517 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
5518 * ada-lang.c (ada_create_fundamental_type)
5519 (ada_language_arch_info): Likewise.
5520 * c-lang.c (c_create_fundamental_type): Likewise.
5521 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5522 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5523 * m2-lang.c (m2_create_fundamental_type): Likewise.
5524 * objc-lang.c (objc_create_fundamental_type): Likewise.
5525 * p-lang.c (pascal_create_fundamental_type): Likewise.
5526 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
5527 * c-exp.y (parse_number): Likewise.
5528 * objc-exp.y (parse_number): Likewise.
5529 * ada-lex.l (processInt): Likewise.
5530 * f-exp.y (parse_number): Likewise.
5531 * p-exp.y (parse_number): Likewise.
5532 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
5533 (gdbtypes_post_init, build_gdbtypes): Likewise.
5534 * p-lang.c (pascal_create_fundamental_type): Likewise.
5535 * parse.c (build_parse): Likewise.
5536 * xcoffread.c (_initialize_xcoffread): Likewise.
5537 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
5538 (read_range_type): Likewise.
5539 * objc-lang.c (objc_create_fundamental_type): Likewise.
5540 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
5541 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
5542 (m2_create_fundamental_type): Likewise.
5543 * c-lang.c (c_create_fundamental_type): Likewise.
5544 * coffread.c (coff_read_enum_type): Likewise.
5545 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
5546 * dwarf2read.c (new_symbol): Likewise.
5547 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
5548 * c-exp.y (parse_number): Likewise.
5549 * objc-exp.y (parse_number): Likewise.
5550 * ada-lex.l (processInt): Likewise.
5551 * f-exp.y (parse_number): Likewise.
5552 * p-exp.y (parse_number): Likewise.
5553 * valarith.c (value_binop): Likewise.
5554 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
5555 * ada-lang.c (ada_create_fundamental_type)
5556 (ada_language_arch_info): Likewise.
5557 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5558 * symfile.c (TARGET_LONG_BYTES): Likewise.
5559 * p-lang.c (pascal_create_fundamental_type): Likewise.
5560 * objc-lang.c (objc_create_fundamental_type): Likewise.
5561 * m2-lang.c (m2_create_fundamental_type): Likewise.
5562 * f-lang.c (f_create_fundamental_type): Likewise.
5563 * c-lang.c (c_create_fundamental_type): Likewise.
5564 * coffread.c (decode_base_type): Likewise.
5565 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
5566 * c-exp.y (parse_number): Likewise.
5567 * objc-exp.y (parse_number): Likewise.
5568 * p-exp.y (parse_number): Likewise.
5569 * ada-lang.c (ada_create_fundamental_type)
5570 (ada_language_arch_info): Likewise.
5571 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
5572 * stabsread.c (read_range_type): Likewise.
5573 * p-lang.c (pascal_create_fundamental_type): Likewise.
5574 * objc-lang.c (objc_create_fundamental_type): Likewise.
5575 * m2-lang.c (m2_create_fundamental_type): Likewise.
5576 * f-lang.c (f_create_fundamental_type): Likewise.
5577 * c-lang.c (c_create_fundamental_type): Likewise.
5578 * gdbarch.c, gdbarch.h: Regenerate.
5580 2007-06-12 Andreas Schwab <schwab@suse.de>
5582 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
5583 (struct frame_unwind): Add dealloc_cache.
5584 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
5586 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
5587 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
5588 (libunwind_frame_unwind): Set dealloc_cache.
5589 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
5591 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5592 Markus Deuling <deuling@de.ibm.com>
5594 * remote.c (remote_write_qxfer): New function.
5595 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
5596 (remote_read_qxfer): Do not cache empty objects.
5597 (_initialize_remote): Add PACKET_qXfer_spu_read and
5598 PACKET_qXfer_spu_write.
5600 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5602 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
5603 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
5605 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
5606 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
5607 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
5608 * spu-tdep.c (infospucmdlist): New variable.
5609 (spu_register_name): Handle additional pseudo registers.
5610 (spu_register_type): Likewise.
5611 (spu_pseudo_register_read): Likewise.
5612 (spu_pseudo_register_write): Likewise.
5613 (spu_pseudo_register_read_spu): New function.
5614 (spu_pseudo_register_write_spu): Likewise.
5615 (info_spu_event_command): New function.
5616 (info_spu_signal_command): Likewise.
5617 (info_spu_mailbox_list): Likewise.
5618 (info_spu_mailbox_command): Likewise.
5619 (spu_mfc_get_bitfield): Likewise.
5620 (info_spu_dma_cmdlist): Likewise.
5621 (info_spu_dma_command): Likewise.
5622 (info_spu_proxydma_command): Likewise.
5623 (info_spu_command): Likewise.
5624 (_initialize_spu_tdep): Install "info spu" commands.
5626 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5628 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
5629 accessing non-seekable spufs files.
5631 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5633 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
5634 gdbarch_skip_trampoline_code.
5635 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
5636 * objc-lang.c (objc_skip_trampoline)
5637 (objc_submethod_helper_data): Likewise.
5638 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
5639 * infrun.c (handle_inferior_event): Likewise.
5640 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
5641 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
5642 gdbarch_in_solib_return_trampoline.
5643 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
5644 * infrun.c (handle_inferior_event): Likewise.
5645 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
5646 * gdbarch.c, gdbarch.h: Regenerate.
5648 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5650 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
5651 * symtab.c (find_function_start_sal, in_prologue): Likewise.
5652 * linespec.c (minsym_found): Likewise.
5653 * infrun.c (step_into_function): Likewise.
5654 * gdbarch.c, gdbarch.h: Regenerate.
5656 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5658 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
5659 * valops.c (value_allocate_space_in_inferior): Likewise.
5660 * gdbarch.c, gdbarch.h: Regenerate.
5662 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5664 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
5665 gdbarch_memory_insert_breakpoint.
5666 * mem-break.c (memory_insert_breakpoint): Likewise.
5667 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
5668 gdbarch_memory_remove_breakpoint.
5669 * mem-break.c (memory_remove_breakpoint): Likewise.
5670 * gdbarch.c, gdbarch.h: Regenerate.
5672 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5674 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
5675 gdbarch_fetch_tls_load_module_address.
5676 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
5677 gdbarch_fetch_tls_load_module_address_p.
5678 * gdbarch.c, gdbarch.h: Regenerate.
5680 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5682 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
5683 gdbarch_decr_pc_after_break.
5684 * tracepoint.c (trace_dump_command): Likewise.
5685 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
5686 * linux-thread-db.c (check_event): Likewise.
5687 * linux-nat.c (cancel_breakpoints_callback): Likewise.
5688 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
5689 * frame.h: Likewise (comment).
5690 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
5691 * aix-thread.c (aix_thread_wait): Likewise.
5692 * gdbarch.c, gdbarch.h: Regenerate.
5694 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5696 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
5697 gdbarch_address_class_type_flags.
5698 * dwarf2read.c (read_tag_pointer_type): Likewise.
5699 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
5700 gdbarch_address_class_type_flags_p.
5701 * dwarf2read.c (read_tag_pointer_type): Likewise.
5702 * gdbarch.c, gdbarch.h: Regenerate.
5704 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5706 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
5707 * value.c (value_as_address): Likewise (comment).
5708 * remote-mips.c (common_breakpoint): Likewise.
5709 * regcache.c (read_pc_pid): Likewise.
5710 * printcmd.c (do_one_display): Likewise.
5711 * monitor.c (monitor_write_memory, monitor_read_memory)
5712 (monitor_insert_breakpoint): Likewise.
5713 * mips-tdep.c (heuristic_proc_start): Likewise.
5714 * infrun.c (insert_step_resume_breakpoint_at_frame)
5715 (insert_step_resume_breakpoint_at_caller): Likewise.
5716 * buildsym.c (record_line): Likewise.
5717 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
5718 (arm_get_next_pc): Likewise.
5719 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
5720 (store_regs): Likewise.
5721 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
5722 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
5723 * gdbarch.c, gdbarch.h: Regenerate.
5725 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5727 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
5728 * tracepoint.c (scope_info): Likewise.
5729 * target.c (debug_print_register): Likewise.
5730 * stack.c (frame_info): Likewise.
5731 * sh-tdep.c (sh_register_reggroup_p): Likewise.
5732 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
5733 (sh64_media_print_registers_info)
5734 (sh64_compact_print_registers_info): Likewise.
5735 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
5736 * remote-sim.c (gdbsim_fetch_register): Likewise.
5737 * remote.c (packet_reg): Likewise (comment).
5738 * reggroups.c (default_register_reggroup_p): Likewise.
5739 * regcache.c (regcache_dump): Likewise.
5740 * printcmd.c (address_info): Likewise.
5741 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
5742 * mt-dep.c (mt_registers_info): Likewise.
5743 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
5744 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
5745 (mips_read_fp_register_double, mips_print_fp_register)
5746 (mips_print_register, print_gp_register_row, mips_print_registers_info)
5747 (mips_register_sim_regno): Likewise.
5748 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
5749 * inf-ptrace.c (inf_ptrace_fetch_register)
5750 (inf_ptrace_store_register): Likewise.
5751 * infcmd.c (default_print_registers_info): Likewise.
5752 * ia64-linux-nat.c (ia64_linux_fetch_register)
5753 (ia64_linux_store_register): Likewise.
5754 * i386-linux-nat.c (fetch_register, store_register): Likewise.
5755 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
5756 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
5757 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
5758 (hppa_hpux_store_register): Likewise.
5759 * findvar.c (locate_var_value): Likewise.
5760 * dwarf2loc.c (locexpr_describe_location): Likewise.
5761 * dwarf2-frame.c (execute_cfa_program): Likewise.
5762 * arm-tdep.c (arm_push_dummy_call): Likewise.
5763 * arch-utils.c (legacy_register_sim_regno): Likewise.
5764 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
5765 * alpha-nat.c (fetch_osf_core_registers): Likewise.
5766 * mi/mi-main.c (mi_cmd_data_list_register_names)
5767 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
5768 (mi_cmd_data_write_register_values): Likewise.
5769 * gdbarch.c, gdbarch.h: Regenerate.
5771 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
5773 * target-memory.c (blocks_to_erase): Correct off-by-one error.
5775 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
5777 * remote.c (process_g_packet): Don't check size.
5778 * gdbarch.sh: Remove register_bytes_ok.
5779 * gdbarch.c: Regenerated.
5780 * gdbarch.h: Regenerated.
5781 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
5782 (m68k_register_bytes_ok): Remove.
5783 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
5785 2007-06-06 Andreas Schwab <schwab@suse.de>
5787 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
5788 (destroy_addr_space_name): Define.
5789 (libunwind_load): Get address of destroy_addr_space function.
5790 (libunwind_frame_cache): Destroy unw_addr_space_t object before
5791 returning unsuccessfully.
5792 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
5794 (libunwind_sigtramp_frame_sniffer): Likewise.
5795 (libunwind_get_reg_special): Likewise.
5797 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5799 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
5800 gdbarch_fetch_pointer_argument.
5801 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
5802 * gdbarch.c, gdbarch.h: Regenerate.
5804 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5806 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
5807 gdbarch_have_nonsteppable_watchpoint.
5808 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
5809 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
5810 gdbarch_cannot_step_breakpoint.
5811 * infrun.c (resume): Likewise.
5812 * gdbarch.c, gdbarch.h: Regenerate.
5814 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5816 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
5817 * stack.c (print_frame_args): Likewise.
5818 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
5819 * stack.c (print_args_stub, frame_info): Likewise.
5820 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
5821 * stack.c (print_args_stub, frame_info): Likewise.
5822 * gdbarch.c, gdbarch.h: Regenerate.
5824 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5826 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
5827 gdbarch_coff_make_msymbol_special.
5828 * coffread.c (coff_symtab_read): Likewise.
5829 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
5830 gdbarch_elf_make_msymbol_special.
5831 * elfread.c (elf_symtab_read): Likewise.
5832 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
5833 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
5834 * gdbarch.c, gdbarch.h: Regenerate.
5836 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5838 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
5839 gdbarch_frame_red_zone_size.
5840 * gdbarch.c, gdbarch.h: Regenerate.
5842 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5844 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
5845 * infcall.c (call_function_by_hand): Likewise.
5846 * gcore.c (derive_stack_segment): Likewise.
5847 * frame.c (frame_id_inner): Likewise.
5848 * arch-utils.c (core_addr_lessthan): Likewise (comment).
5849 * ada-lang.c (ensure_lval): Likewise.
5850 * gdbarch.c, gdbarch.h: Regenerate.
5852 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5854 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
5855 gdbarch_address_to_pointer.
5856 * findvar.c (store_typed_address): Likewise.
5857 * gdbtypes.c (make_pointer_type): Likewise (comment).
5858 * procfs.c (procfs_address_to_host_pointer): Likewise.
5859 * std-regs.c (value_of_builtin_frame_reg): Likewise.
5860 (value_of_builtin_frame_fp_reg): Likewise.
5861 (value_of_builtin_frame_pc_reg): Likewise.
5862 * utils.c (paddress): Likewise (comment).
5863 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
5864 gdbarch_pointer_to_address.
5865 * findvar.c (extract_typed_address): Likewise.
5866 * gdbtypes.c (make_pointer_type): Likewise (comment).
5867 * valops.c (value_cast): Likewise (comment).
5868 * gdbarch.c, gdbarch.h: Regenerate.
5870 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5872 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
5873 * infrun.c (handle_inferior_event): Likewise.
5874 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
5875 gdbarch_get_longjmp_target_p.
5876 * breakpoint.c (breakpoint_re_set): Likewise.
5877 * infrun.c (handle_inferior_event): Likewise.
5878 * gdbarch.c, gdbarch.h: Regenerate.
5880 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
5882 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
5883 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
5884 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
5885 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
5886 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
5887 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
5888 find_stub_with_shl_get, cover_find_stub_with_shl_get,
5889 initialize_hp_cxx_exception_support, child_enable_exception_callback,
5890 current_ex_event, child_get_current_exception_event): Remove.
5891 (hppa_hpux_inferior_created): Remove.
5892 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
5894 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
5895 (deprecated_exception_support_initialized): Remove.
5896 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
5897 (deprecated_exception_support_initialized): Remove.
5898 (breakpoint_init_inferior): Remove handling of non-zero
5899 deprecated_exception_catchpoints_are_fragile.
5901 * symtab.h (deprecated_hp_som_som_object_present): Remove.
5902 * symtab.c (deprecated_hp_som_som_object_present): Remove.
5903 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
5904 deprecated_hp_som_som_object_present.
5905 * eval.c (evaluate_subexp_standard): Likewise.
5906 * valops.c (value_cast): Likewise.
5908 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
5909 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
5910 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
5912 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
5914 * objfiles.h (ImportEntry, ExportEntry): Remove types.
5915 (struct objfile): Remove import_list, import_list_size,
5916 export_list, export_list_size members.
5917 (is_in_import_list): Remove prototype.
5918 * objfiles.c (is_in_import_list): Remove.
5919 * somread.c (init_import_symbols, init_export_symbols): Remove.
5920 (som_symfile_read): Do not call init_import_symbols. Do not
5921 set objfile->export_list and objfile->export_list_size.
5923 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
5925 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
5926 Use the original objfile if necessary.
5928 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
5930 * defs.h (ldirname): New prototype.
5931 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
5933 * utils.c (ldirname): New function.
5934 * xml-tdesc.c (file_read_description_xml): Use ldirname.
5936 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
5938 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
5940 2007-06-01 Joel Brobecker <brobecker@adacore.com>
5942 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
5944 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
5946 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
5948 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
5950 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
5951 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
5952 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
5953 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
5954 (ppc_linux_in_sigtramp, insn_is_sigreturn,
5955 ppc_linux_at_sigtramp_return_path): Remove.
5957 2007-05-31 Markus Deuling <deuling@de.ibm.com>
5959 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
5960 (xtensa_register_write_masked, xtensa_register_read_masked)
5961 (xtensa_extract_return_value, xtensa_store_return_value
5962 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
5963 TARGET_BYTE_ORDER by gdbarch_byte_order.
5964 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
5965 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
5966 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
5967 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
5968 (sh64_push_dummy_call, sh64_extract_return_value)
5969 (sh64_store_return_value, sh64_register_convert_to_virtual)
5970 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
5971 (sh64_pseudo_register_write, sh64_do_fp_register)
5972 (sh64_frame_prev_register): Likewise.
5973 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
5974 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
5975 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
5976 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
5977 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
5978 * ppc-linux-nat.c (store_register): Likewise.
5979 * nto-tdep.c (nto_find_and_open_solib)
5980 (nto_init_solib_absolute_prefix): Likewise.
5981 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
5982 (mips_convert_register_p, mips_eabi_push_dummy_call)
5983 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
5984 (mips_o32_push_dummy_call, mips_o32_return_value)
5985 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
5986 (mips_read_fp_register_single, mips_read_fp_register_double)
5987 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
5988 (mips_breakpoint_from_pc): Likewise.
5989 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
5990 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
5991 (mips_linux_o32_sigframe_init): Likewise.
5992 * m32r-tdep.c (m32r_memory_insert_breakpoint)
5993 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
5994 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
5995 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
5996 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
5997 * coffread.c (process_coff_symbol): Likewise.
5998 * arm-tdep.c (convert_from_extended, convert_to_extended)
5999 (gdb_print_insn_arm): Likewise.
6001 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6003 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
6004 * i386-tdep.c (i386_dbx_reg_to_regnum)
6005 (i386_svr4_reg_to_regnum): Likewise.
6006 * inf-ptrace.c (inf_ptrace_fetch_registers)
6007 (inf_ptrace_store_registers): Likewise.
6008 * corelow.c (get_core_registers): Likewise.
6009 * i386-linux-nat.c (supply_gregset, fill_gregset)
6010 (i386_linux_fetch_inferior_registers)
6011 (i386_linux_store_inferior_registers): Likewise.
6012 * remote.c (init_remote_state,packet_reg_from_regnum)
6013 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
6014 (remote_prepare_to_store,store_registers_using_G)
6015 (remote_store_registers,remote_arch_state): Likewise.
6016 * tracepoint.c (encode_actions): Likewise.
6017 * mi/mi-main.c (mi_cmd_data_list_register_names)
6018 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6019 (mi_cmd_data_write_register_values): Likewise.
6020 * tui/tui-regs.c (tui_show_register_group)
6021 (tui_show_register_group): Likewise.
6022 * xtensa-tdep.h (FP_ALIAS): Likewise.
6023 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
6024 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
6025 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
6026 * win32-nat.c (do_win32_fetch_inferior_registers)
6027 (do_win32_store_inferior_registers,fetch_elf_core_registers
6028 * user-regs.h: Likewise (comment).
6029 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6030 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6031 * target-descriptions.h: Likewise (comment).
6032 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
6033 * target.c (debug_print_register): Likewise.
6034 * stack.c (frame_info): Likewise.
6035 * stabsread.c (define_symbol): Likewise.
6036 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
6037 (sh64_media_print_registers_info)
6038 (sh64_compact_print_registers_info): Likewise.
6039 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6040 * rs6000-nat.c (fetch_register,store_register): Likewise.
6041 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
6042 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
6043 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
6044 * remote-m32r-sdi.c (m32r_fetch_registers)
6045 (m32r_store_registers): Likewise.
6046 * reggroups.c (default_register_reggroup_p): Likewise.
6047 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
6048 (regcache_restore,regcache_dump): Likewise.
6049 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
6050 * mips-tdep.c (mips_xfer_register,mips_register_name)
6051 (mips_register_reggroup_p,mips_pseudo_register_read)
6052 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
6053 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
6054 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
6055 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
6056 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
6057 (print_gp_register_row,mips_print_registers_info)
6058 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6059 (mips_register_sim_regno): Likewise.
6060 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
6061 (mips_linux_n32n64_sigframe_init): Likewise.
6062 * mips-linux-nat.c (mips_linux_register_addr)
6063 (mips64_linux_register_addr): Likewise.
6064 * findvar.c (value_of_register): Likewise.
6065 * infcmd.c (default_print_registers_info,registers_info)
6066 (print_vector_info,print_float_info): Likewise.
6067 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
6068 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
6069 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6070 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
6071 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6072 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
6073 (ia64_cannot_store_register,ia64_linux_fetch_registers)
6074 (ia64_linux_store_registers): Likewise.
6075 * hpux-thread.c (hpux_thread_fetch_registers)
6076 (hpux_thread_store_registers): Likewise.
6077 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
6078 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
6079 (h8300_register_type): Likewise.
6080 * dwarf2-frame.c (dwarf2_frame_cache)
6081 (dwarf2_frame_state_alloc_regs): Likewise.
6082 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
6083 (cris_cannot_store_register,crisv32_cannot_fetch_register)
6084 (crisv32_cannot_store_register,cris_register_name): Likewise.
6085 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
6086 * arch-utils.c (legacy_register_sim_regno)
6087 (legacy_virtual_frame_pointer): Likewise.
6088 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
6089 * arm-tdep.h: Likewise (comment).
6090 * frv-tdep.c (frv_register_sim_regno): Likewise.
6091 * m68klinux-nat.c (old_fetch_inferior_registers)
6092 (old_store_inferior_registers): Likewise.
6093 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
6094 * irix5-nat.c (fetch_core_registers): Likewise.
6095 * hppa-tdep.c (hppa_frame_cache): Likewise.
6096 * hppa-linux-nat.c (hppa_linux_register_addr)
6097 (hppa_linux_fetch_inferior_registers)
6098 (hppa_linux_store_inferior_registers): Likewise.
6099 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
6100 (hppa_hpux_store_inferior_registers): Likewise.
6101 * amd64-nat.c (amd64_native_gregset_reg_offset)
6102 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
6103 * dbug-rom.c (dbug_regname): Likewise.
6104 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
6105 (HARD_PAGE_REGNUM (comment)): Likewise.
6106 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
6107 * i386-tdep.c (i386_dbx_reg_to_regnum)
6108 (i386_svr4_reg_to_regnum): Likewise.
6109 * mi/mi-main.c (mi_cmd_data_list_register_names)
6110 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6111 (mi_cmd_data_write_register_values): Likewise.
6112 * gdbarch.c, gdbarch.h: Regenerate.
6113 * tui/tui-regs.c (tui_show_register_group): Likewise.
6114 * xtensa-tdep.h (FP_ALIAS): Likewise.
6115 * user-regs.h: Likewise (comment).
6116 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6117 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6118 * target-descriptions.h: Likewise (comment).
6119 * target.c (debug_print_register): Likewise.
6120 * stack.c (frame_info): Likewise.
6121 * stabsread.c (define_symbol): Likewise.
6122 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
6123 (sh64_compact_print_registers_info): Likewise.
6124 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6125 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
6126 (regcache_restore,regcache_dump): Likewise.
6127 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
6128 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6129 (mips_stab_reg_to_regnum): Likewise.
6130 * findvar.c (value_of_register): Likewise.
6131 * infcmd.c (default_print_registers_info,registers_info)
6132 (print_vector_info,print_float_info): Likewise.
6133 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6134 * h8300-tdep.c (h8300_register_type): Likewise.
6135 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6136 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
6137 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
6138 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
6139 * parse.c: Remove comment.
6140 * gdbarch.c, gdbarch.h: Regenerate
6142 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6144 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
6145 gdbarch_cannot_fetch_register.
6146 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6147 * hppa-linux-nat.c (fetch_register): Likewise.
6148 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
6149 * m68klinux-nat.c (fetch_register): Likewise.
6150 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
6152 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
6153 gdbarch_cannot_store_register.
6154 * hppa-linux-nat.c (store_register): Likewise.
6155 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
6156 * regcache.c (regcache_raw_write): Likewise.
6157 * m68klinux-nat.c (store_register): Likewise.
6158 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
6159 * gdbarch.c, gdbarch.h: Regenerate.
6161 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6163 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
6164 * gdbarch.c, gdbarch.h: Regenerate.
6166 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6168 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
6169 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6170 * gdbarch.c, gdbarch.h: Regenerate.
6172 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6174 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
6175 * ax-gdb.c (gen_bitfield_ref): Likewise.
6176 * mi/mi-main.c (get_register): Likewise.
6177 * findvar.c (default_value_from_register, extract_signed_integer)
6178 (extract_unsigned_integer, extract_long_unsigned_integer)
6179 (store_signed_integer, store_unsigned_integer): Likewise.
6180 * regcache.c (regcache_dump): Likewise.
6181 * value.c (lookup_internalvar, value_of_internalvar)
6182 (set_internalvar): Likewise.
6184 * valprint.c (print_binary_chars, print_octal_chars)
6185 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
6186 * infcmd.c (default_print_registers_info): Likewise.
6187 * arch-utils.c (selected_byte_order, show_endian): Likewise.
6188 * stabsread.c (define_symbol): Likewise.
6189 * doublest.c (floatformat_from_length, floatformat_from_type)
6190 (extract_typed_floating, store_typed_floating): Likewise.
6191 * gdbarch.c, gdbarch.h: Regenerate.
6193 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6195 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
6196 gdbarch_call_dummy_location.
6197 * infcall.c (call_function_by_hand): Likewise.
6198 * inferior.h: Change comment.
6199 * arch-utils.c: Change comment.
6200 * gdbarch.c, gdbarch.h: Regenerate.
6202 2007-05-28 Joel Brobecker <brobecker@adacore.com>
6204 * solib-aix5.c: Delete.
6205 * Makefile.in (solib-aix5.o): Delete rule.
6207 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
6209 * breakpoint.h (enum bpstat_what_main_action): Remove
6210 BPSTAT_WHAT_THROUGH_SIGTRAMP.
6211 * infrun.c (process_event_stop_test): Do not check for it.
6213 2007-05-22 Chris Dearman <chris@mips.com>
6214 Maciej W. Rozycki <macro@mips.com>
6216 * ser-unix.c (show_serial_hwflow): New function.
6217 (hardwire_raw): Add hardware flow control support.
6218 (_initialize_ser_hardwire): Add "set/show remoteflow".
6219 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
6220 * NEWS: Document the new command.
6222 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6224 * config/i386/tm-linux.h (sys_quotactl): Do not define.
6225 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
6226 define for i[[3456]]86-*-linux* native configurations.
6227 * config.in, configure: Regenerate.
6229 2007-05-19 Joel Brobecker <brobecker@adacore.com>
6231 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
6232 a core file. Add comment in the function description.
6234 2007-05-18 Caroline Tice <ctice@apple.com>
6236 * c-valprint.c (c_value_print): If the initialized field of the
6237 value struct is 0, print out "[uninitialized]" before the value.
6238 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
6239 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
6240 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
6241 ctx->initialized appropriately. Verify no location op follows
6243 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
6244 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
6245 set_value_initialized.
6246 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
6247 (decode_locdesc): Add case for DW_OP_GNU_uninit.
6248 * value.c (struct value): New field, initialized.
6249 (allocate_value): Initialize new field.
6250 (set_value_initialized): New function.
6251 (value_initialized): New function.
6252 * value.h (value_initialized): New extern declaration.
6253 (set_value_initialized): Likewise.
6255 2007-05-18 Caroline Tice <ctice@apple.com>
6257 * MAINTAINERS (Write After Approval): Add self.
6259 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6261 * gdbtypes.c (make_reference_type): Preserve the type chain
6262 and set the length of all the variants of the pointer type.
6264 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6266 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
6267 and set the length of all the variants of the pointer type.
6269 2007-05-17 Maciej W. Rozycki <macro@mips.com>
6271 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
6273 (mips_o64_push_dummy_call): Reformat a comment.
6275 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
6277 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
6278 (score_prologue_frame_base_address): Return fp to keep gdb print
6279 local variables correctly when debugging information is stabs.
6281 (score_analyze_prologue): For software watchpoint, fetch all the
6282 instructions from range [startaddr, pc] once and identify them locally
6283 to reduce memory access.
6284 (score_malloc_and_get_memblock, score_free_memblock)
6285 (score_adjust_memblock_ptr): New functions.
6286 (score_fetch_inst): Fetch single instruction or mutiple instructions.
6288 (score_target_can_use_watch, score_stopped_by_watch)
6289 (score_target_insert_watchpoint, score_target_remove_watchpoint)
6290 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
6291 New functions for remote & local hw-watchpoint and hw-breakpoint.
6293 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
6295 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
6296 declarations as well.
6298 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6300 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
6301 * config/arm/tm-embed.h: Delete file.
6303 * arm-tdep.h (arm_software_single_step): Declare.
6304 * arm-tdep.c (arm_software_single_step): Make global.
6305 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
6307 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
6308 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
6309 * armobsd-tdep.c (armobsd_init_abi): ... here ...
6310 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
6312 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
6313 allow defines to be overriden by TM file.
6314 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
6315 change default to {0xbe,0xbe}.
6316 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
6317 arm_obsd_thumb_be_breakpoint): New global variables.
6318 (armobsd_init_abi): Override tdep->thumb_breakpoint and
6319 tdep->thumb_breakpoint_size.
6320 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
6321 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
6322 tdep->thumb_breakpoint_size.
6324 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
6326 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6328 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
6331 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
6332 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
6333 (mips_stack_argsize_string, mips_stack_argsize): Delete.
6334 (mips_abi_regsize): Simplify.
6335 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6336 (mips_n32n64_return_value, mips_o32_push_dummy_call)
6337 (mips_o32_return_value, mips_o64_push_dummy_call)
6338 (mips_o64_return_value): Propogate constant register sizes. Use the
6339 ABI register size instead of mips_stack_argsize.
6340 (mips_dump_tdep): Don't print mips_stack_argsize.
6341 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
6344 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6346 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
6347 * config/mips/tm-linux.h: Delete.
6348 * mips-linux-tdep.c (mips_svr4_so_ops): New.
6349 (mips_linux_in_dynsym_resolve_code): Make static. Use
6350 svr4_in_dynsym_resolve_code.
6351 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
6353 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
6355 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
6356 * Makefile.in (mips-linux-tdep.o): Update.
6357 * solib.c (set_solib_ops): New.
6358 (current_target_so_ops): Update comment.
6359 * solib.h (set_solib_ops): New prototype.
6361 2007-05-16 Chris Dearman <chris@mips.com>
6363 * printcmd.c (do_examine): Fix typos in a comment.
6365 2007-05-16 Richard Sandiford <richard@codesourcery.com>
6367 * configure.ac: Allow sysroots to be relocated under $prefix as
6368 well as $exec_prefix.
6369 * configure: Regenerate.
6371 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6373 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
6374 (offsetof): Do not define.
6375 (find_stub_with_shl_get): Use numerical value 3 instead of
6376 symbolic value TYPE_PROCEDURE.
6378 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6380 * gdb_proc_service.h (paddr_t): Delete typedef.
6381 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
6382 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
6383 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
6384 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
6385 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
6386 * Makefile.in (proc-service.o): Update.
6388 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6390 * Makefile.in (mips-tdep.o): Update.
6391 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
6394 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6396 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
6397 instead of store_typed_address.
6398 * value.c (pack_long): New.
6399 (value_from_longest): Use it.
6400 * value.h (pack_long): New prototype.
6402 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6404 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
6405 DW_EH_PE_signed if appropriate.
6407 2007-05-14 Paul Brook <paul@codesourcery.com>
6408 Daniel Jacobowitz <dan@codesourcery.com>
6410 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
6412 (dwarf_decode_lines): Check for line info without a file.
6414 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6416 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
6419 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6421 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
6423 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
6425 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
6427 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6429 * gdbarch.sh (read_sp): Remove.
6430 * gdbarch.c, gdbarch.h: Regenerate.
6431 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
6433 * avr-tdep.c (avr_read_sp): Remove.
6434 (avr_unwind_sp): New function.
6435 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
6436 * mips-tdep.c (mips_read_sp): Remove.
6437 (mips_unwind_sp): New function.
6438 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
6439 * score-tdep.c (score_read_unsigned_register): Remove.
6440 (score_read_sp): Remove.
6441 (score_unwind_sp): New function.
6442 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
6444 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
6446 * buildsym.c (start_subfile): Handle absolute pathnames
6447 while comparing subfile names.
6449 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6451 * hppa-hpux-tdep.c: Include "regcache.h".
6452 * hppa-linux-tdep.c: Likewise.
6453 * hppa-tdep.c: Include "gdb_stdint.h".
6454 (find_unwind_entry): Cast host pointer to uintptr_t before passing
6456 * Makefile.in: Update dependencies.
6458 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6460 * blockframe.c: Remove obsolete comments.
6461 * alpha-nat.c (fetch_osf_core_registers): Update comment.
6462 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
6463 * hppa-tdep.h (enum hppa_regnum): Likewise.
6464 * mips-tdep.h: Likewise.
6465 * m68hc11-tdep.c: Likewise.
6467 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6469 * inferior.h (read_sp): Remove prototype.
6470 * regcache.c (read_sp): Remove.
6471 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
6472 * infcall.c (call_function_by_hand): Likewise.
6473 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
6475 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6477 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6479 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
6480 instead of read_register and read_register_pid.
6482 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
6483 argument instead of PTID. Use regcache functions instead of
6485 (ia64_linux_insert_watchpoint): Update call.
6486 (ia64_linux_stopped_data_address): Use regcache functions
6487 instead of read_register_pid and write_register_pid.
6489 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6491 * libunwind-frame.h (struct regcache): Add forward declaration.
6492 (libunwind_get_reg_special): Add REGCACHE argument.
6493 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
6494 argument. Pass it to unw_init_remote_p.
6496 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
6497 libunwind_get_reg_special.
6498 (ia64_access_reg): Remove "write" case.
6499 (ia64_access_fpreg): Likewise. Read from next_frame passed
6500 as callback argument instead of from current_regcache.
6501 (ia64_access_rse_reg): Remove "write" case. Read from regcache
6502 passed as callback argument instead of from current_regcache.
6503 (ia64_access_rse_fpreg): New function.
6504 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
6506 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6508 * NEWS: Mention SPU overlay support.
6510 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6512 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
6514 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6516 * breakpoint.c (remove_breakpoint): Do not remove software
6517 breakpoints in unmapped overlay sections.
6519 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6521 * spu-tdep.c: Include "observer.h".
6522 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
6523 (spu_overlay_data): New variable.
6524 (struct spu_overlay_table): New type.
6525 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
6526 spu_overlay_new_objfile): New functions.
6527 (spu_gdbarch_init): Install spu_overlay_update.
6528 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
6529 allocate spu_overlay_data objfile data.
6531 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6533 * gdbarch.sh (overlay_update): New gdbarch function.
6534 (struct obj_section): Add forward declaration.
6535 * gdbarch.c, gdbarch.h: Regenerate.
6537 * symfile.c (simple_overlay_update): Make global.
6538 (target_overlay_update): Remove variable.
6539 (overlay_is_mapped): Call gdbarch_overlay_update instead of
6540 target_overlay_update.
6541 (overlay_load_command): Likewise.
6542 * symfile.h (struct obj_section): Add forward declaration.
6543 (simple_overlay_update): Add prototype.
6545 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
6547 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6549 * observer.sh: Add "struct objfile" forward declaration.
6550 * target.h (deprecated_target_new_objfile_hook): Remove.
6551 * symfile.c (deprecated_target_new_objfile_hook): Remove.
6552 (clear_symtab_users): Call observer_notify_new_objfile.
6553 (symbol_file_add_with_addrs_or_offsets): Likewise.
6554 * rs6000-nat.c: Include "observer.h".
6555 (vmap_ldinfo): Call observer_notify_new_objfile.
6556 (xcoff_relocate_core): Likewise.
6557 * remote.c (remote_new_objfile_chain): Remove.
6558 (remote_new_objfile): Do not call remote_new_objfile_chain.
6559 (_initialize_remote): Use observer_attach_new_objfile.
6560 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
6561 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
6562 (_initialize_tui_hooks): Use observer_attach_new_objfile.
6563 * aix-thread.c: Include "observer.h".
6564 (target_new_objfile_chain): Remove.
6565 (new_objfile): Do not call target_new_objfile_chain.
6566 (_initialize_aix_thread): Use observer_attach_new_objfile.
6567 * hpux-thread.c: Include "observer.h"
6568 (target_new_objfile_chain): Remove.
6569 (hpux_thread_new_objfile): Make static. Do not call
6570 target_new_objfile_chain.
6571 (_initialize_hpux_thread): Use observer_attach_new_objfile.
6572 * linux-thread-db.c: Include "observer.h".
6573 (target_new_objfile_chain): Remove.
6574 (thread_db_new_objfile): Do not call target_new_objfile_chain.
6575 (_initialize_thread_db): Use observer_attach_new_objfile.
6576 * sol-thread.c: Include "observer.h".
6577 (target_new_objfile_chain): Remove.
6578 (sol_thread_new_objfile): Make static. Do not call
6579 target_new_objfile_chain.
6580 (_initialize_sol_thread): Use observer_attach_new_objfile.
6581 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
6582 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
6585 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6587 * gdbarch.sh (remote_translate_xfer_address): Remove.
6588 * gdbarch.h, gdbarch.c: Regenerate.
6589 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
6590 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
6591 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
6592 call gdbarch_remote_translate_xfer_address.
6593 * frv-tdep.c (frv_gdbarch_init): Do not call
6594 set_gdbarch_remote_translate_xfer_address.
6595 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
6596 (ia64_gdbarch_init): Do not install it.
6598 2007-05-11 Bob Wilson <bob.wilson@acm.org>
6600 * NEWS: Mention change in handling the -tui option.
6602 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
6604 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
6607 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6609 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
6610 (breakpoint_inserted_here_p): Call it.
6611 (software_breakpoint_inserted_here_p): Likewise.
6613 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
6615 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
6616 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
6617 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
6618 (inf_ptrace_store_register): Likewise.
6619 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
6620 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
6622 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
6624 * linux-nat.c (linux_trad_target): Adapt parameter list.
6625 * linux-nat.h (linux_trad_target): Likewise.
6627 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
6629 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
6630 (mips_linux_cannot_store_register): Likewise.
6631 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
6632 Return (CORE_ADDR) -1 for registers that cannot be fetched or
6633 stored via ptrace. Use GDBARCH instead of current_gdbarch.
6634 (mips64_linux_register_addr): Likewise.
6635 (mips_linux_register_u_offset): Adapt parameter list. Pass
6636 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
6638 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6639 * config/mips/nm-linux.h: Delete file.
6641 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
6643 * remote.c (remote_detach): Error out if remote can't detach.
6645 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
6647 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
6648 instruction's opcode in the "opcode" variable and declares new
6649 variable "closing_insn".
6651 2007-05-10 Chris Dearman <chris@mips.com>
6652 Maciej W. Rozycki <macro@mips.com>
6654 * cli/cli-setshow.c (do_setshow_command): Remove trailing
6655 whitespace when setting a var_filename.
6657 2007-05-09 Bob Wilson <bob.wilson@acm.org>
6659 * main.c (captured_main): Recognize -tui option and print an error
6660 message when the TUI is not configured.
6662 2007-05-09 Andreas Schwab <schwab@suse.de>
6664 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
6665 set removed members.
6666 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
6668 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6670 * gdbarch.sh (deprecated_store_struct_return): Remove.
6671 * gdbarch.c, gdbarch.h: Regenerate.
6672 * frv-tdep.c (frv_store_struct_return): Remove.
6673 (frv_gdbarch_init): Do not install it.
6675 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6677 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
6678 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
6679 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
6681 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6683 * spu-linux-nat.c: Include "gdb_stdint.h".
6684 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
6685 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
6686 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
6687 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
6688 (spu_child_wait): Mark up string for translation.
6690 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
6691 Luis Machado <luisgpm@br.ibm.com>
6693 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
6694 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
6695 BC_INSTRUCTION): Define.
6696 (deal_with_atomic_sequence): New function.
6697 (rs6000_software_single_step): Call deal_with_atomic_sequence.
6698 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
6699 gdbarch_software_single_step routine.
6701 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
6703 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
6704 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
6705 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
6706 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
6707 spu_child_post_attach, spu_fetch_inferior_registers,
6708 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
6709 memory addresses as ULONGEST, not CORE_ADDR.
6711 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
6713 * gdbarch.sh: Add skip_permanent_breakpoint callback.
6714 * gdbarch.h, gdbarch.c: Regenerate.
6716 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
6717 (resume): Call gdbarch_skip_permanent_breakpoint instead of
6718 SKIP_PERMANENT_BREAKPOINT. Inline default case.
6720 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
6721 Add REGCACHE argument. Use it instead of read/write_register.
6722 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
6724 * config/pa/tm-hppah.h: Delete file.
6725 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
6726 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
6728 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
6730 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
6731 * NEWS: Mention improved C++ thunk support.
6732 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
6733 * cp-abi.c (cplus_skip_trampoline): New.
6734 * cp-abi.h (cplus_skip_trampoline): New prototype.
6735 (struct cp_abi_ops): Add skip_trampoline member.
6736 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
6737 (init_gnuv3_ops): Set skip_trampoline.
6739 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
6741 * rs6000-tdep.c (struct frame_extra_info): Delete.
6743 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
6745 * linux-thread-db.c: Update some FIXME comments.
6746 (thread_db_xfer_partial): Delete.
6747 (init_thread_db_ops): Do not set to_xfer_partial.
6749 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6751 * inftarg.c, infptrace.c: Remove files.
6752 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
6753 (inftarg.o, infptrace.o): Remove rules.
6754 * gdbcore.h (register_addr): Remove prototype.
6755 * inferior.h (kill_inferior, store_inferior_registers,
6756 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
6757 call_ptrace, pre_fork_inferior): Remove prototypes.
6758 * target.h (child_xfer_memory, child_pid_to_exec_file,
6759 child_core_file_to_sym_file, child_post_attach,
6760 child_post_startup_inferior, child_acknowledge_created_inferior,
6761 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
6762 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
6763 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
6764 child_follow_fork, child_reported_exec_events_per_exec_call,
6765 child_has_exited, child_thread_alive): Remove prototypes.
6767 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6769 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
6770 (sparc_store_inferior_registers): Likewise.
6771 * sparc-nat.c (fetch_inferior_registers): Rename to ...
6772 (sparc_fetch_inferior_registers): ... this.
6773 (store_inferior_registers): Rename to ...
6774 (sparc_store_inferior_registers): ... this.
6775 (sparc_target): Update callback names.
6776 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
6777 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
6779 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6781 * linux-nat.c (child_post_attach): Rename to ...
6782 (linux_child_post_attach): ... this. Make static.
6783 (child_follow_fork): Rename to ...
6784 (linux_child_follow_fork): ... this. Make static.
6785 (child_insert_fork_catchpoint): Rename to ...
6786 (linux_child_insert_fork_catchpoint): ... this. Make static.
6787 (child_insert_vfork_catchpoint): Rename to ...
6788 (linux_child_insert_vfork_catchpoint): ... this. Make static.
6789 (child_insert_exec_catchpoint): Rename to ...
6790 (linux_child_insert_exec_catchpoint): ... this. Make static.
6791 (child_pid_to_exec_file): Rename to ...
6792 (linux_child_pid_to_exec_file): ... this. Make static.
6794 (linux_handle_extended_wait): Update call.
6795 (linux_xfer_partial): Update callback routine names.
6797 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6799 * configure.host (alpha*-*-osf[12]*): Remove support.
6800 * NEWS: Mention removed configurations.
6802 * config/alpha/alpha-osf1.mh: Delete file.
6803 * config/alpha/alpha-osf2.mh: Delete file.
6804 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
6806 * config/alpha/nm-osf.h: Delete file.
6807 * config/alpha/nm-osf2.h: Delete file.
6808 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
6809 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
6810 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
6812 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
6813 (register_addr, kernel_u_size): Remove.
6814 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
6816 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6818 * regcache.c (regcache_invalidate): New function.
6819 (register_cached): Remove.
6820 (set_register_cached): Remove.
6821 (deprecated_registers_fetched): Remove.
6822 (registers_changed): Use regcache_invalidate instead
6823 of set_register_cached.
6824 (regcache_raw_read): Update comment.
6826 * regcache.h (regcache_invalidate): Add prototype.
6827 (register_cached): Remove.
6828 (set_register_cached): Remove.
6829 (deprecated_registers_fetched): Remove.
6831 * findvar.c (value_of_register): Do not call register_cached.
6832 * frame.c (frame_register): Likewise.
6833 * tui/tui-regs.c (tui_get_register): Likewise.
6835 * remote.c (fetch_register_using_p): Do not call set_register_cached.
6836 (process_g_packet): Likewise.
6837 (remote_fetch_registers): Likewise.
6838 * remote-sim.c (gdbsim_fetch_register): Likewise.
6839 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
6840 by regcache_invalidate.
6841 (mt_pseudo_register_write): Likewise.
6842 * sh-tdep.c (sh_pseudo_register_write): Likewise.
6844 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
6845 call by loop over regcache_raw_supply (..., NULL).
6847 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6849 * target.h (struct target_ops): Add REGCACHE parameter to
6850 to_prepare_to_store.
6851 (target_prepare_to_store): Likewise.
6852 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
6853 (update_current_target): Adapt prepare_to_store de_fault rule.
6855 * regcache.c (regcache_raw_write): Pass regcache to
6856 target_prepare_to_store.
6858 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
6859 Do not call CHILD_PREPARE_TO_STORE.
6860 * gnu-nat.c (gnu_prepare_to_store): Likewise.
6861 * procfs.c (procfs_prepare_to_store): Likewise.
6863 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
6864 * go32-nat.c (go32_prepare_to_store): Likewise.
6865 * monitor.c (monitor_prepare_to_store): Likewise.
6866 * nto-procfs.c (procfs_prepare_to_store): Likewise.
6867 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
6868 * remote-mips.c (mips_prepare_to_store): Likewise.
6869 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
6870 * win32-nat.c (win32_prepare_to_store): Likewise.
6872 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
6873 Use it instead of current_regcache.
6875 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
6876 parameter. Pass it on to next target.
6877 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
6879 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6881 * target.h (struct regcache): Add forward declaration.
6882 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
6883 and to_store_registers target operations.
6884 (target_fetch_registers, target_store_registers): Update.
6886 * regcache.c (regcache_raw_read): Replace register_cached by
6887 regcache_valid_p. Pass regcache to target_fetch_registers.
6888 (regcache_raw_write): Pass regcache to target_store_registers.
6890 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
6891 store_regs, store_wmmx_regs): Replace register_cached by
6894 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
6895 to target_fetch_registers calls.
6896 * corelow.c (core_open): Likewise.
6897 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
6898 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
6899 ps_lsetfpregs): Likewise.
6900 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
6901 ps_lsetfpregs): Likewise.
6902 * win32-nat.c (win32_resume): Likewise.
6903 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
6904 to target_store_registers call.
6905 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6907 * inferior.h (store_inferior_registers): Update prototype.
6908 (fetch_inferior_registers): Likewise.
6909 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
6910 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
6911 Update function pointer signatures.
6913 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
6914 use it instead of current_regcache, update calls.
6915 (aix_thread_store_registers): Likewise.
6916 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
6917 (alphabsd_store_inferior_registers): Likewise.
6918 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
6919 (amd64bsd_store_inferior_registers): Likewise.
6920 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
6921 (amd64_linux_store_inferior_registers): Likewise.
6922 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
6923 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
6924 fetch_wmmx_regs, store_wmmx_regs): Likewise.
6925 (arm_linux_fetch_inferior_registers): Likewise.
6926 (arm_linux_store_inferior_registers): Likewise.
6927 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
6928 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
6929 (store_register, store_regs, store_fp_register, store_fp_regs,
6930 armnbsd_store_registers): Likewise.
6931 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
6932 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
6933 (bsd_uthread_store_registers): Likewise.
6934 * corelow.c (get_core_registers): Likewise.
6935 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
6936 go32_store_registers): Likewise.
6937 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
6938 (hppabsd_store_registers): Likewise.
6939 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
6940 (hppa_hpux_fetch_inferior_registers): Likewise.
6941 (hppa_hpux_store_register): Likewise.
6942 (hppa_hpux_store_inferior_registers): Likewise.
6943 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
6944 (hppa_linux_fetch_inferior_registers): Likewise.
6945 (hppa_linux_store_inferior_registers): Likewise.
6946 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
6947 (hpux_thread_store_registers): Likewise.
6948 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
6949 (i386bsd_store_inferior_registers): Likewise.
6950 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
6951 gnu_store_registers): Likewise.
6952 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
6953 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
6955 (i386_linux_fetch_inferior_registers): Likewise.
6956 (i386_linux_store_inferior_registers): Likewise.
6957 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
6958 (ia64_linux_fetch_registers): Likewise.
6959 (ia64_linux_store_register): Likewise.
6960 (ia64_linux_store_registers): Likewise.
6961 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
6962 (inf_child_store_inferior_registers): Likewise.
6963 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
6964 (inf_ptrace_fetch_registers): Likewise.
6965 (inf_ptrace_store_register): Likewise.
6966 (inf_ptrace_store_registers): Likewise.
6967 * infptrace.c (fetch_register, store_register): Likewise.
6968 (fetch_inferior_registers, store_inferior_registers): Likewise.
6969 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
6970 (m32r_linux_fetch_inferior_registers): Likewise.
6971 (m32r_linux_store_inferior_registers): Likewise.
6972 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
6973 (m68kbsd_store_inferior_registers): Likewise.
6974 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
6975 store_register, old_store_inferior_registers, fetch_regs, store_regs,
6976 fetch_fpregs, store_fpregs): Likewise.
6977 (m68k_linux_fetch_inferior_registers): Likewise.
6978 (m68k_linux_store_inferior_registers): Likewise.
6979 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
6980 (m88kbsd_store_inferior_registers): Likewise.
6981 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
6982 (mips64obsd_store_inferior_registers): Likewise.
6983 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
6984 (mips64_linux_regsets_store_registers): Likewise.
6985 (mips64_linux_fetch_registers): Likewise.
6986 (mips64_linux_store_registers): Likewise.
6987 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
6988 (mipsnbsd_store_inferior_registers): Likewise.
6989 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
6990 (monitor_fetch_registers, monitor_store_registers): Likewise.
6991 * nto-procfs.c (procfs_fetch_registers): Likewise.
6992 (procfs_store_registers): Likewise.
6993 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
6994 fetch_register, supply_vrregset, fetch_altivec_registers,
6995 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
6996 (store_altivec_register, store_spe_register, store_register,
6997 fill_vrregset, store_altivec_registers, store_ppc_registers,
6998 ppc_linux_store_inferior_registers): Likewise.
6999 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
7000 (ppcnbsd_store_inferior_registers): Likewise.
7001 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
7002 (ppcobsd_store_registers): Likewise.
7003 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
7004 * remote.c (fetch_register_using_p, process_g_packet,
7005 fetch_registers_using_g, remote_fetch_registers): Likewise.
7006 (store_register_using_P, store_registers_using_G,
7007 remote_store_registers): Likewise.
7008 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
7009 m32r_store_register, m32r_store_register): Likewise.
7010 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
7011 * remote-sim.c (gdbsim_fetch_register): Likewise.
7012 (gdbsim_store_register): Likewise.
7013 * rs6000-nat.c (fetch_register, store_register): Likewise.
7014 (rs6000_fetch_inferior_registers): Likewise.
7015 (rs6000_store_inferior_registers): Likewise.
7016 * s390-nat.c (fetch_regs, store_regs): Likewise.
7017 (fetch_fpregs, store_fpregs): Likewise.
7018 (s390_linux_fetch_inferior_registers): Likewise.
7019 (s390_linux_store_inferior_registers): Likewise.
7020 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
7021 (shnbsd_store_inferior_registers): Likewise.
7022 * sol-thread.c (sol_thread_fetch_registers): Likewise.
7023 (sol_thread_store_registers): Likewise.
7024 * sparc-nat.c (fetch_inferior_registers): Likewise.
7025 (store_inferior_registers): Likewise.
7026 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
7027 (spu_store_inferior_registers): Likewise.
7028 * target.c (debug_print_register): Likewise.
7029 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
7030 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
7031 (vaxbsd_store_inferior_registers): Likewise.
7032 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
7033 (win32_fetch_inferior_registers): Likewise.
7034 (win32_store_inferior_registers): Likewise.
7036 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7038 * gdbcore.h (struct regcache): Add forward declaration.
7039 (struct core_fns): Add REGCACHE argument to core_read_registers
7041 * corelow.c (get_core_register_section): Add REGCACHE argument,
7042 use it instead of current_regcache, pass it to core_read_registers
7044 (get_core_registers): Add current_regcache as parameter to
7045 get_core_register_section calls.
7047 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
7048 use it instead of current_regcache.
7049 * armnbsd-nat.c (fetch_core_registers): Likewise.
7050 (fetch_elfcore_registers): Likewise.
7051 * core-regset.c (fetch_core_registers): Likewise.
7052 * cris-tdep.c (fetch_core_registers): Likewise.
7053 * irix5-nat.c (fetch_core_registers): Likewise.
7054 * m68klinux-nat.c (fetch_core_registers): Likewise.
7055 * mips-linux-tdep.c (fetch_core_registers): Likewise.
7056 * win32-nat.c (fetch_elf_core_registers): Likewise.
7058 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7060 * gregset.h (struct regcache): Add forward declaration.
7061 (supply_gregset): Add REGCACHE parameter, make GREGS const.
7062 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
7063 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
7064 (fill_gregset): Add REGCACHE parameter.
7065 (fill_fpregset): Likewise.
7066 (fill_fpxregset): Likewise.
7068 Update all definitions accordingly:
7069 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
7070 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
7071 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
7072 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
7073 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
7074 (supply_gregset): Add REGCACHE parameter, use it instead of
7075 current_regcache. Make GREGSETP parameter const, adapt casts.
7076 (supply_fpregset): Add REGCACHE parameter, use it instead of
7077 current_regcache. Make FPREGSETP parameter const, adapt casts.
7078 (fill_gregset): Add REGCACHE parameter, use it instead of
7080 (fill_fpregset): Likewise.
7082 Update all callers to pass in current_regcache as the new argument:
7083 * core-regset.c: Include "regcache.h".
7084 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
7085 * procfs.c: Include "regcache.h".
7086 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
7087 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
7088 (procfs_do_thread_registers): Likewise.
7089 (procfs_make_note_section): Likewise.
7090 * proc-service.c: Include "regcache.h".
7091 (ps_lgetregs): Update fill_gregset call.
7092 (ps_lsetregs): Update supply_gregset call.
7093 (ps_lgetfpregs): Update fill_fpregset call.
7094 (ps_lsetfpregs): Update supply_fpregset call.
7095 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
7096 supply_fpregset calls.
7097 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
7098 (ps_lgetregs): Update fill_gregset call.
7099 (ps_lsetregs): Update supply_gregset call.
7100 (ps_lgetfpregs): Update fill_fpregset call.
7101 (ps_lsetfpregs): Update supply_fpregset call.
7103 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
7104 fill_fpregset, and fill_fpxregset calls.
7105 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
7106 (store_regs): Update fill_gregset call.
7107 (fetch_fpregs): Update supply_fpregset call.
7108 (store_fpregs): Update fill_fpregset call.
7109 (fetch_fpxregs): Update supply_fpxregset call.
7110 (store_fpxregs): Update fill_fpxregset call.
7111 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
7112 (store_regs): Update fill_gregset call.
7113 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
7114 (store_regs): Update fill_gregset call.
7115 (fetch_fpregs): Update supply_fpregset call.
7116 (store_fpregs): Update fill_fpregset call.
7117 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
7118 * s390-nat.c (fetch_regs): Update supply_gregset call.
7119 (store_regs): Update fill_gregset call.
7120 (fetch_fpregs): Update supply_fpregset call.
7121 (store_fpregs): Update fill_fpregset call.
7123 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
7126 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7128 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
7129 it instead of current_regcache.
7130 (parse_register_dump): Add REGCACHE parameter, pass it to
7131 supply_register callback.
7132 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
7133 parse_register_dump.
7134 (monitor_dump_regs): Add REGCACHE parameter, pass it to
7135 parse_register_dump and dumpregs callback.
7136 (monitor_wait): Pass current_regcache to parse_register_dump and
7138 (monitor_fetch_register): Pass current_regcache to
7139 monitor_supply_register.
7140 (monitor_fetch_registers): Pass current_regcache to
7142 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
7143 supply_register and dumpregs callbacks.
7144 (monitor_supply_register, monitor_dump_reg_block): Update
7146 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
7147 it to monitor_supply_register.
7148 * dink32-rom.c (dink32_supply_register): Likewise.
7149 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
7150 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
7151 instead of current_regcache.
7153 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7155 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
7156 Add REGCACHE parameter. Use it instead of current_regcache.
7157 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
7158 i386nto_supply_gregset and i386nto_supply_fpregset.
7159 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
7160 of current_regcache.
7162 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
7163 nto_supply_ helper functions.
7164 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
7166 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
7168 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
7169 supply_greget, supply_fpregset, supply_altregset, supply_regset,
7170 and regset_fill member function pointers.
7171 (nto_dummy_supply_regset): Adapt prototype.
7173 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7175 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
7176 instead of current_regcache. Make REGS const.
7177 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
7178 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
7180 * shnbsd-nat.c: Include "regcache.h".
7181 (shnbsd_fetch_inferior_registers): Pass current_regcache to
7183 (shnbsd_store_inferior_registers): Pass current_regcache to
7185 * Makefile.in (shbsd-nat.o): Update dependencies.
7187 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7189 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
7190 instead of current_regcache.
7191 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
7192 Make GREGSETP const, remove superfluous casts.
7193 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7194 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
7196 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7197 (supply_64bit_reg): Likewise
7198 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
7199 Make GREGSETP const, adapt casts accordingly.
7200 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7201 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
7203 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7204 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
7206 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
7207 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
7208 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
7210 * mips-linux-nat.c: Include "regcache.h".
7211 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7212 current_regcache to mips{64}_(supply|fill)_ helper routines.
7213 (mips64_linux_regsets_fetch_registers): Likewise.
7214 (mips64_linux_regsets_store_registers): Likewise.
7216 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
7217 REGCACHE argument; replace current_regcache. Make REGS const.
7218 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
7219 replace current_regcache.
7220 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
7221 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
7222 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
7223 mipsnbsd_store_inferior_registers): Pass current_regcache to
7224 mipsnbsd_(supply|fill)_... helper routines.
7226 * Makefile.in (mips-linux-nat.o): Update dependencies.
7228 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7230 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
7231 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
7232 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
7233 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
7234 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
7235 * i386gnu-nat.c (store_fpregs): Likewise.
7236 * i386v4-nat.c (fill_fpregset): Likewise.
7237 * go32-nat.c (store_register, go32_store_registers): Likewise.
7239 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7241 * cris-tdep.c (supply_gregset): Rename to ...
7242 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
7243 instead of current_regcache.
7244 (fetch_core_registers): Update call. Pass current_regcache.
7246 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7248 * arnmnbsd-nat.c (supply_gregset): Rename to ...
7249 (arm_supply_gregset): ... this. Add REGCACHE parameter.
7250 Use it instead of current_regcache.
7251 (supply_fparegset): Rename to ...
7252 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
7253 Use it instead of current_regcache.
7254 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
7255 (fetch_core_registers, fetch_elfcore_registers): Likewise.
7257 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7259 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
7260 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
7261 use it instead of current_regcache.
7262 * alpha-tdep.h (struct regcache): Add forward declaration.
7263 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
7264 alpha_fill_fp_regs): Update prototypes.
7266 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
7267 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
7268 * alpha-linux-nat.c: Include "regcache.h".
7269 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7270 current_regcache to alpha_supply/fill_ routines.
7272 * alphabsd-tdep.c: Include "regcache.h".
7273 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
7274 pass it to alpha_supply_ routines. Make REGS const.
7275 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
7276 pass it to alpha_fill_ routines.
7277 * alphabsd-tdep.h (struct regcache): Add forward declaration.
7278 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
7279 alphabsd_fill_fpreg): Update prototypes.
7281 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7282 fill_fpregset, alphabsd_fetch_inferior_registers,
7283 alphabsd_store_inferior_registers): Pass current_regcache to
7284 alphabsd_supply/fill_ routines.
7286 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
7289 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7291 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
7292 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
7293 instead of current_regcache.
7294 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
7295 REGCACHE parameter, pass it to supply_ routines.
7296 (aix_thread_fetch_registers): Pass current_regcache to
7297 fetch_regs_user_thread and fetch_regs_kernel_thread.
7299 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
7300 Add REGCACHE parameter, use it instead of current_regcache.
7301 Call regcache_valid_p instead of register_cached.
7302 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
7303 Also, pass REGCACHE to fill_ routines.
7304 (aix_thread_store_registers): Pass current_regcache to
7305 store_regs_user_thread and store_regs_kernel_thread.
7307 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7309 * m32r-linux-nat.c (supply_gregset): Do not modify contents
7310 pointed to by GREGSETP.
7312 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7314 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
7315 of regcache_raw_read_signed.
7316 (fill_fpregset): Use regcache_raw_collect instead of
7319 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7321 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
7322 point arguments, test explicitly for use of the EABI32 ABI
7323 instead of inferring this condition from tests on register
7326 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7328 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
7329 prior to allocating its location.
7331 2007-05-02 Maciej W. Rozycki <macro@mips.com>
7333 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
7334 based on mips_abi_regsize() whose result is known in advance.
7335 (mips_o64_push_dummy_call): Likewise.
7337 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
7339 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
7340 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
7342 * mips-linux-nat.c: Include "gregset.h".
7343 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
7344 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
7345 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
7346 fill_fpregset): Move to mips-linux-nat.c.
7348 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
7350 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7352 * regcache.c (deprecated_read_register_gen): Remove, inline ...
7353 (read_register): ... here.
7354 (deprecated_write_register_gen): Remove, inline ...
7355 (write_register): ... here.
7356 * regcache.h (deprecated_read_register_gen): Remove prototype.
7357 (deprecated_write_register_gen): Likewise.
7359 * remote-sim.c (gdbsim_store_register): Replace call to
7360 deprecated_read_register_gen with regcache_cooked_read.
7361 * target.c (debug_print_register): Replace calls to
7362 deprecated_read_register_gen and read_register with
7363 regcache_cooked_read.
7365 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7367 * hpux-thread.c (hpux_thread_store_registers): Use
7368 regcache_raw_collect, not regcache_raw_read.
7369 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
7370 not regcache_raw_write.
7372 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7374 * gdbarch.sh: Remove deprecated_register_byte.
7375 * gdbarch.c, gdbarch.h: Regenerate.
7376 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
7377 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
7379 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
7380 * regcache.c (regcache_valid_p): Allow to query cooked registers in
7381 read-only register caches. Make REGCACHE parameter const.
7382 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
7384 * mi/mi-main.c (old_regs): Remove.
7385 (mi_setup_architecture_data, _initialize_mi_main): Remove.
7386 (register_changed_p): Reimplement to compare two register caches.
7387 (mi_cmd_data_list_changed_registers): Update caller.
7388 * mi/mi-main.h (mi_setup_architecture_data): Remove.
7389 * mi/mi-interp.c (mi_interpreter_init): Do not call
7390 mi_setup_architecture_data.
7392 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7394 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
7395 inline definition at the places the macros are used.
7396 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
7398 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7400 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
7402 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
7403 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
7404 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
7405 (rs6000_aix_regset_from_core_section): New function.
7406 (rs6000_aix_init_osabi): Register it.
7407 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
7408 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
7409 * rs6000-nat.c (CoreRegs): Do not define type.
7410 (fetch_core_registers, rs6000_core_fns): Remove.
7411 (_initialize_core_rs6000): Do not register it. Rename to ...
7412 (_initialize_rs6000_nat): ... this.
7413 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
7415 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7417 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
7418 (dwarf2_read_address): Sign extend return address as required by
7419 target architecture.
7421 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7423 * solib-frv.c (lm_base): Bail out if the main executable has
7426 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7428 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
7429 of FPCR register in fpregset.
7431 2007-04-27 Maciej W. Rozycki <macro@mips.com>
7433 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
7434 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
7436 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7438 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
7439 * rs6000-nat.c (rs6000_wait): New function.
7440 (_initialize_core_rs6000): Install it as to_wait target method.
7441 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
7443 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7445 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
7446 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
7447 * rs6000-nat.c (super_create_inferior): New variable.
7448 (rs6000_create_inferior): Make static. Adapt argument list. Call
7449 original version of create_inferior via super_create_inferior.
7450 (_initialize_core_rs6000): Install to_create_inferior target method.
7452 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7454 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
7455 (aix_thread_xfer_partial): ... this.
7456 (init_aix_thread_ops): Install to_xfer_partial instead
7457 of deprecated_xfer_memory target method.
7459 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
7460 and inftarg.o, add inf-ptrace.o.
7461 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
7462 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
7463 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
7464 (fetch_inferior_registers): Rename to ...
7465 (rs6000_fetch_inferior_registers): ... this. Make static.
7466 (store_inferior_registers): Rename to ...
7467 (rs6000_store_inferior_registers): ... this. Make static.
7468 (read_word, child_xfer_memory): Remove.
7469 (rs6000_xfer_partial): New function.
7470 (kernel_u_size): Remove.
7471 (_initialize_core_rs6000): Add inf_ptrace-based target.
7472 * Makefile.in (rs6000-nat.o): Update dependencies.
7474 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7476 * inf-ptrace.c: Include "gdb_stdint.h".
7477 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
7478 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
7479 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
7480 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
7481 (inf_ptrace_store_register): Likewise.
7482 * Makefile.in (inf-ptrace.o): Update dependencies.
7484 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7486 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
7487 * configure.tgt (rs6000-*-*): Likewise.
7488 * config/rs6000/aix4.mh: Delete file.
7489 * config/rs6000/aix4.mt: Delete file.
7490 * config/rs6000/rs6000.mh: Delete file.
7491 * config/rs6000/rs6000.mt: Delete file.
7493 * config/powerpc/nm-aix.h: Delete file.
7494 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
7496 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7498 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
7499 Remove obsolete part of comment.
7500 (store_regs_user_thread): Use uint32_t temporaries when calling
7502 (store_regs_kernel_thread): Likewise. Add assertion to verify
7503 correct size of struct ptsprs members.
7504 (aix_thread_xfer_memory): Fix type of myaddr.
7505 (aix_thread_extra_thread_info): Fix compiler warning.
7506 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
7507 (fetch_register, store_register): Adapt callers.
7509 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7511 * vec.h (vec_free): Rename to vec_free_. Adapt users.
7513 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7515 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
7517 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
7518 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
7519 (alpha_linux_regset_from_core_section): New function.
7520 (alpha_linux_init_abi): Install it.
7521 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
7522 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
7523 <sys/procfs.h>, and "gregset.h".
7524 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
7525 Move from config/alpha/nm-linux.h.
7526 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
7528 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
7529 * alpha-nat.c: Remove #ifdef __linux__ section.
7530 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
7531 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
7532 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
7533 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
7534 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
7535 (NATDEPFILES): Remove alpha-nat.o.
7536 * config/alpha/nm-linux.h: Delete file.
7537 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
7538 * Makefile.in (alpha-linux-nat.o): Update dependencies.
7539 (alpha-linux-tdep.o): Likewise.
7541 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7543 * mips-linux-nat.c: No longer include "gdbcore.h".
7544 (mips_linux_register_addr): Move from mips-linux-tdep.c.
7545 (mips64_linux_register_addr): Likewise.
7546 (mips_linux_register_u_offset): Call mips_linux_register_addr or
7547 mips64_linux_register_addr instead of register_addr.
7548 * mips-linux-tdep.c (mips_linux_register_addr,
7549 mips64_linux_register_addr): Move to mips-linux-nat.c.
7550 (register_addr): Remove.
7551 (register_addr_data, init_register_addr_data): Remove.
7552 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
7553 (set_mips_linux_register_addr): Remove.
7554 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
7555 * Makefile.in (mips-linux-nat.o): Update dependencies.
7557 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7559 * linux-nat.c (linux_register_u_offset): Remove.
7560 (linux_target_install_ops): New function.
7561 (linux_target): Use it.
7562 (linux_trad_target): New function.
7563 * linux-nat.h (linux_trad_target): Declare.
7565 * alpha-linux-nat.c: Include "gdbcore.h".
7566 (alpha_linux_register_u_offset): New function.
7567 (_initialize_alpha_linux_nat): Use linux_trad_target.
7569 * mips-linux-nat.c: Include "gdbcore.h".
7570 (mips_linux_register_u_offset): New function.
7571 (_initialize_mips_linux_nat): Use linux_trad_target.
7573 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7574 * config/arm/nm-linux.h: Delete file.
7576 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
7577 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
7579 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7580 * config/ia64/nm-linux.h: Delete file.
7582 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7583 * config/m32r/nm-linux.h: Delete file.
7585 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7586 * config/m68k/nm-linux.h: Delete file.
7588 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7589 * config/pa/nm-linux.h: Delete file.
7591 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7592 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
7593 * config/powerpc/nm-linux.h: Delete file.
7595 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
7596 * config/s390/nm-linux.h: Delete file.
7598 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7599 * config/sparc/linux64.mh (NAT_FILE): Likewise.
7600 * config/sparc/nm-linux.h: Delete file.
7602 * Makefile.in (alpha-linux-nat.o): Update dependencies.
7603 (mips-linux-nat.o): Likewise.
7605 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7607 * core-aout.c: Delete file.
7608 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
7609 (core-aout.o): Delete rule.
7610 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
7612 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
7614 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
7615 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
7616 KERNEL_U_ADDR): Remove.
7618 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
7619 (cannot_fetch_register, cannot_store_register): Remove.
7620 (fetch_register): Inline cannot_fetch_register and register_addr.
7621 (store_register): Inline cannot_store_register and register_addr.
7622 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
7623 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
7624 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
7627 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
7628 (fetch_register): Inline register_addr.
7629 (store_register): Inline register_addr.
7630 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
7631 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
7632 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
7634 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
7635 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
7636 REGISTER_U_ADDR): Remove.
7638 * hppa-linux-nat.c (register_addr): Rename to ...
7639 (hppa_linux_register_addr): ... this. Make static.
7640 (fetch_register, store_register): Adapt callers.
7641 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
7643 * ppc-linux-nat.c (kernel_u_size): Remove.
7644 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
7646 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
7647 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
7649 * config/vax/nm-vax.h: Delete file.
7651 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
7653 * MAINTAINERS (Write After Approval): Add myself.
7655 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
7657 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
7658 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
7659 (m68k_linux_sigcontext_reg_offset): Fix typo.
7660 (target_is_uclinux): New.
7661 (m68k_linux_inferior_created): New.
7662 (m68k_linux_get_sigtramp_info): Check for uClinux or
7663 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
7665 (_initialize_m68k_linux_tdep): Register
7666 m68k_linux_inferior_created.
7668 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
7670 * win32-nat.c (win32_detach): Remove delete_command call.
7671 Resume inferior with win32_resume instead of win32_continue.
7673 2007-04-19 Jerome Guitton <guitton@adacore.com>
7675 * ser-mingw.c (fd_is_file): New function.
7676 (file_select_thread): New function.
7677 (ser_console_wait_handle): Add special handling for files.
7679 2007-04-18 Denis Pilat <denis.pilat@st.com>
7681 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
7682 when missing from DW_TAG_subrange_type. Remove the handling of null
7683 return from die_type.
7685 2007-04-18 Maciej W. Rozycki <macro@mips.com>
7687 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
7688 change to rearrange some brackets.
7689 (mips_n32n64_push_dummy_call): Likewise.
7690 (mips_o32_push_dummy_call): Likewise.
7691 (mips_o64_push_dummy_call): Likewise.
7693 2007-04-18 Denis Pilat <denis.pilat@st.com>
7695 * infcmd.c (post_create_inferior): Start with a call to
7696 target_terminal_ours.
7698 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7700 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
7702 (mips_n32n64_push_dummy_call): Likewise. Reformat some
7704 (mips_o32_push_dummy_call): Likewise.
7705 (mips_o64_push_dummy_call): Likewise.
7707 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7709 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
7712 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7714 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
7716 (mips_o32_push_dummy_call): Likewise.
7718 2007-04-17 Andreas Schwab <schwab@suse.de>
7720 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
7721 sal to be bigger than the end of the function.
7723 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7724 Nigel Stephens <nigel@mips.com>
7726 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
7727 argument alignment requirements when calculating stack space
7728 required. When aligning an arg register to eight bytes
7729 boundary, align stack_offset too. Write floating-point
7730 arguments to the appropriate integer register if need go there.
7731 (mips_o64_push_dummy_call): Likewise.
7733 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
7735 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
7736 "sig" arguments, add "regcache" argument.
7737 * gdbarch.c, gdbarch.h: Regenerate.
7739 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
7740 (handle_inferior_event): Call remove_single_step_breakpoints directly
7741 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
7743 * alpha-tdep.c (alpha_software_single_step): Update argument list.
7744 Remove handling of !insert_breakpoints_p case.
7745 * arm-tdep.c (arm_software_single_step): Likewise.
7746 * cris-tdep.c (cris_software_single_step): Likewise.
7747 * mips-tdep.c (mips_software_single_step): Likewise.
7748 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
7749 * sparc-tdep.c (sparc_software_single_step): Likewise.
7750 * spu-tdep.c (spu_software_single_step): Likewise.
7752 * alpha-tdep.h (alpha_software_single_step): Update prototype.
7753 * mips-tdep.h (mips_software_single_step): Likewise.
7754 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
7755 * sparc-tdep.h (sparc_software_single_step): Likewise.
7757 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
7759 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
7760 when removing single-step breakpoints.
7762 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
7764 * varobj.h (varobj_set_frozen): New
7765 (varobj_get_frozen): New.
7766 (varobj_update): New parameter explicit.
7767 * varobj.c (struct varobj): New fields frozen
7769 (varobj_set_frozen, varobj_get_frozen): New.
7770 (install_new_value): Don't fetch values for
7771 frozen variable object, or children thereof. Allow
7772 a frozen variable object to have non-fetched value.
7773 (varobj_update): Allow updating child variables.
7774 Don't traverse frozen children.
7775 (new_variable): Initialize the frozen field.
7776 (c_value_of_variable): Return NULL for frozen
7777 variable without any value yet.
7778 * mi/mi-cmd-var.c (varobj_update_one): New parameter
7780 (mi_cmd_var_create): Output the 'frozen' field,
7781 as soon as testsuite is adjusted to expect that field.
7782 (mi_cmd_var_set_frozen): New.
7783 (mi_cmd_var_update): Pass the 'explicit' parameter to
7785 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
7786 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
7788 2007-04-13 Paul Brook <paul@codesourcery.com>
7790 * target-descriptions.c (tdesc_named_type): Add ieee_single and
7792 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
7794 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7796 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
7797 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
7798 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
7799 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
7800 * Makefile.in: Remove references to deleted files.
7801 * README: Do not mention deleted ROM monitor interfaces.
7802 * defs.h (enum language): Delete language_scm.
7803 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
7804 (dump_subexp_body_standard): Likewise.
7805 * parse.c (operator_length_standard): Likewise.
7806 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
7807 * remote-mips.c: Do not include remote-utils.h.
7808 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
7810 * value.c: Do not include scm-lang.h.
7811 (unpack_long): Delete scm_unpack call.
7812 * config/h8300/h8300.mt, config/mips/embed.mt,
7813 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
7814 config/sh/embed.mt, config/sh/linux.mt: Remove references to
7816 * NEWS: Mention removed files.
7818 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7820 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
7821 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
7823 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7825 * NEWS: Mention removal of HP aCC support.
7827 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7829 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
7830 first entry for static executables.
7831 (breakpoint_addr): Delete unused variable.
7832 (elf_locate_base): Search for _r_debug in static executables.
7833 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
7836 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7838 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
7839 (bpstat_what, print_one_breakpoint, allocate_bp_location)
7840 (mention): Remove bp_through_sigtramp support.
7841 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
7843 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7845 * breakpoint.c (bpstat_what): Give step-resume higher priority than
7848 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7850 * infrun.c: Doc fixes.
7851 (handle_inferior_event): Clarify debug message.
7852 (insert_step_resume_breakpoint_at_sal): Print a debug message.
7854 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
7856 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
7858 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
7860 * config/m68k/tm-monitor.h: Delete file.
7861 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
7862 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
7864 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
7865 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
7867 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
7869 * gdbarch.sh (software_single_step): Change the return type
7870 from void to int and reformatted some comments to <= 80
7872 * gdbarch.c, gdbarch.h: Regenerated.
7873 * alpha-tdep.c (alpha_software_single_step): Likewise.
7874 * alpha-tdep.h (alpha_software_single_step): Likewise.
7875 * arm-tdep.c (arm_software_single_step): Likewise.
7876 * cris-tdep.c (cris_software_single_step): Likewise.
7877 * mips-tdep.c (mips_software_single_step): Likewise.
7878 * mips-tdep.h (mips_software_single_step): Likewise.
7879 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
7880 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
7881 * sparc-tdep.c (sparc_software_single_step): Likewise.
7882 * sparc-tdep.h (sparc_software_single_step): Likewise.
7883 * spu-tdep.c (spu_software_single_step): Likewise.
7884 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
7885 and act accordingly.
7887 2007-04-11 Steve Ellcey <sje@cup.hp.com>
7889 * configure.ac (build_warnings): Add -Wno-char-subscripts.
7890 * configure: Regenerate.
7891 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
7893 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7895 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
7897 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7899 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
7901 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
7902 distinct on the TYPE_STUB_SUPPORTED debug targets.
7903 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
7905 2007-04-11 Joel Brobecker <brobecker@adacore.com>
7907 * sparc-tdep.c (X_RS2): New macro.
7908 (sparc_skip_stack_check): New function.
7909 (sparc_analyze_prologue): Adjust PC past stack probing
7910 sequence if necessary.
7912 2007-04-10 Andreas Schwab <schwab@suse.de>
7914 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
7917 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
7919 * breakpoint.c (gdb_breakpoint_query): Really return an
7921 (gdb_breakpoint): Likewise.
7922 * thread.c (gdb_list_thread_ids): Likewise.
7923 (gdb_thread_select): Likewise.
7924 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
7925 (mi_cmd_thread_list_ids): Remove bogus initialization.
7927 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
7929 * Makefile.in (SFILES): Remove hpacc-abi.c.
7930 (COMMON_OBS): Remove hpacc-abi.o.
7931 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
7932 (hpacc-abi.o, hpread.o): Delete rules.
7933 * somread.c: Delete extern declarations from hpread.c.
7934 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
7935 (som_symfile_finish): Do not call hpread_symfile_finish.
7936 (som_symfile_init): Do not call hpread_symfile_init.
7937 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
7938 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
7939 * hpacc-abi.c, hpread.c: Deleted.
7941 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
7943 * solib-svr4.c (enable_break): Simplify return value.
7944 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
7946 2007-04-10 Andreas Schwab <schwab@suse.de>
7948 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
7949 l_ld_size, l_next_size, l_prev_size, l_name_size.
7951 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
7952 to extract addresses from link map.
7953 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
7954 (LM_NEXT): Likewise.
7955 (LM_NAME): Likewise.
7956 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
7957 (elf_locate_base): Likewise.
7958 (open_symbol_file_object): Likewise.
7959 (svr4_fetch_objfile_link_map): Likewise.
7960 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
7961 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
7963 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
7964 (svr4_lp64_fetch_link_map_offsets): Likewise.
7966 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
7967 removed members. Set l_ld_offset to -1 if not present.
7969 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
7971 Pass stderr of program run with "target remote |"
7973 * serial.c (serial_open): Set error_fd to -1.
7974 * serial.h (struct serial): New field error_fd.
7975 (struct serial_opts): New field avail.
7976 * ser-pipe.c (pipe_open): Create another pair
7977 of sockets. Pass stderr to gdb.
7978 * ser-mingw.c (pipe_windows_open): Pass
7979 PEX_STDERR_TO_PIPE to pex_run. Initialize
7982 (_initialize_ser_windows): Hook pipe_avail.
7983 * ser-base.c (generic_readchar): Check if there's
7984 anything in stderr channel and route that to gdb_stderr.
7986 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
7988 * dbxread.c (read_ofile_symtab): Move current_objfile
7989 clearing to after end_stabs.
7991 2007-04-01 Andreas Schwab <schwab@suse.de>
7993 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
7994 gdbarch instead of current_gdbarch.
7996 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
7998 * varobj.c (varobj_create): Keep varobj value
7999 NULL when evaluating the type.
8001 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
8003 * NEWS: Mention new Windows CE support.
8005 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
8007 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
8008 the obsoletion stanza.
8009 * NEWS: Mention deleted targets.
8011 * config/sh/tm-wince.h: Remove.
8012 * config/sh/wince.mt: Remove.
8013 * config/mips/tm-wince.h: Remove.
8014 * config/mips/wince.mt: Remove.
8017 * wince-stub.c: Remove.
8018 * wince-stub.h: Remove.
8019 * Makefile.in (wince.o): Remove rule.
8020 (wince-stub.o): Likewise.
8022 * mips-tdep.c (mips_next_pc): Make static.
8023 * mips-tdep.h (mips_next_pc): Remove declaration.
8024 * arm-tdep.c (arm_pc_is_thumb): Make static.
8025 (thumb_get_next_pc): Likewise.
8026 (arm_get_next_pc): Likewise.
8027 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
8028 (arm_pc_is_thumb): Likewise.
8029 (thumb_get_next_pc): Likewise.
8030 (arm_get_next_pc): Likewise.
8032 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8034 * MAINTAINERS: Remove d10v entry.
8035 * Makefile.in (SFILES): Remove dwarfread.c.
8036 (COMMON_OBS): Remove dwarfread.o.
8037 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
8038 (remote-est.o, rom68k-rom.o): Delete.
8039 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
8040 target est, target rom68k, and DWARF 1.
8041 * configure.tgt: Mark d10v as removed.
8042 * dwarf2read.c: Doc update.
8043 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
8045 (elf_locate_sections): Do not set them.
8046 (elf_symfile_read): Do not call dwarf_build_psymtabs.
8047 * symfile.h (dwarf_build_psymtabs): Delete prototype.
8048 * config/m68k/monitor.mt (TDEPFILES): Prune.
8049 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
8050 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
8052 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8054 * doublest.c (convert_floatformat_to_doublest): Use
8055 floatformat_classify.
8056 (floatformat_is_nan): Rename to...
8057 (floatformat_classify): ...this. Return more information.
8058 * doublest.h (enum float_kind): New.
8059 (floatformat_is_nan): Replace prototype...
8060 (floatformat_classify): ...with this one.
8061 * valprint.c (print_floating): Use floatformat_classify. Handle
8064 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8066 * README: Mention ISO C library requirement.
8068 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8070 * Makefile.in (SFILES): Remove nlmread.c.
8071 (COMMON_OBS): Remove nlmread.o.
8072 (nlmread.o): Delete rule.
8073 * README: Delete reference to remote-st.c.
8074 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
8075 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
8077 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
8078 (_initialize_i386_tdep): Do not reference them.
8079 * nlmread.c: Delete file.
8080 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
8081 * target.c: Doc update.
8082 * thread.c: Delete commented include.
8083 * config/alpha/tm-alpha.h: Doc update.
8085 2007-03-30 Chris Dearman <chris@mips.com>
8087 * utils.c (string_to_core_addr): Comment typo.
8089 2007-03-30 Chris Dearman <chris@mips.com>
8091 * mips-tdep.c: Comment typo.
8093 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
8095 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
8096 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8097 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8098 * config/powerpc/nm-ppc64-linux.h: Remove file.
8099 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
8100 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
8101 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
8102 * infptrace.c (call_ptrace): Likewise.
8103 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
8104 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
8105 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
8106 (store_register): Likewise.
8108 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8110 * Makefile.in (varobj.o): Add missing dependency.
8112 2007-03-29 Michael Snyder <msnyder@access-company.com>
8114 * MAINTAINERS: Update my email address.
8116 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8118 Add support for exception handling with multiple versions of
8120 * ada-lang.c: Update general comments on how Ada exception catchpoints
8122 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
8123 (__gnat_raise_nodefer_with_msg): Delete.
8124 (ada_unhandled_exception_name_addr_ftype): New type.
8125 (exception_support_info): New type.
8126 (ada_unhandled_exception_name_addr): Add forward declaration.
8127 (ada_unhandled_exception_name_addr_from_raise): Likewise.
8128 (default_exception_support_info): New constant.
8129 (exception_support_info_fallback): Likewise.
8130 (exception_info): New global variable.
8131 (ada_exception_support_info_sniffer): New function.
8132 (ada_executable_changed_observer): Likewise.
8133 (ada_unhandled_exception_name_addr_from_raise): Renamed from
8134 ada_unhandled_exception_name_addr.
8135 (ada_unhandled_exception_name_addr): Reimplement to match the
8136 latest Ada runtime implementation.
8137 (error_breakpoint_runtime_sym_not_found): Delete.
8138 (ada_exception_sym_name): Get the exception sym name from
8139 exception_info rather than hardcoding it.
8140 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
8141 Update error handling.
8142 * Makefile.in (ada-lang.o): Add dependency on observer.h.
8144 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8146 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
8147 (remote-st.o, uw-thread.o): Delete.
8148 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
8149 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8150 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
8151 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
8152 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
8153 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
8154 rs6000-*-lynxos* to an obsoletion stanza.
8155 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8156 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
8157 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
8158 i[34567]86-*-netware*.
8159 * NEWS: Mention deleted targets.
8161 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
8162 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
8163 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
8164 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
8165 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
8166 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
8167 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
8168 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
8169 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
8170 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
8171 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
8172 config/rs6000/tm-rs6000ly.h: Delete files.
8174 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8176 * defs.h (deprecated_registers_changed_hook): Delete declaration.
8177 * interps.c (clear_interpreter_hooks): Do not clear
8178 deprecated_registers_changed_hook.
8179 * regcache.c (registers_changed): Do not call it.
8180 * top.c (deprecated_registers_changed_hook): Do not define it.
8181 * mi/mi-interp.c (mi_command_loop): Do not clear it.
8182 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
8183 (tui_remove_hooks): Do not remove it.
8184 (tui_selected_frame_level_changed_hook): Check for negative level.
8185 Use get_selected_frame.
8186 (tui_registers_changed_hook): Deleted.
8188 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8190 * stabsread.c (add_undefined_type): Add extra parameter.
8191 Now handles nameless types separately.
8192 (struct nat): New type.
8193 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
8194 New static variables.
8195 (read_type): Update calls to add_undefined_type.
8196 (add_undefined_type_noname): New function.
8197 (add_undefined_type_1): Renames from add_undefined_type.
8198 (cleanup_undefined_types_noname): New function.
8199 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
8200 (cleanup_undefined_types): New handles nameless types separately.
8201 (_initialize_stabsread): Initialize our new static constants.
8203 2007-03-29 Denis Pilat <denis.pilat@st.com>
8205 * configure.ac: Test for signal.h.
8206 * configure, config.in: Regenerate.
8208 2007-03-29 Denis Pilat <denis.pilat@st.com>
8210 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
8211 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
8213 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
8215 * arm-wince-tdep.c: New.
8216 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
8217 (MT_CFLAGS): Delete.
8219 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
8220 solib-legacy.o, solib-svr4.o, and remove wince.o.
8221 * configure.tgt (arm*-*-mingw32ce*): Add.
8222 * signals/signals.c [HAVE_SIGNAL_H]: Check.
8223 (do_target_signal_to_host): Silence 'not used' warning.
8224 * config/arm/tm-wince.h: Remove.
8226 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
8228 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
8229 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
8231 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
8232 * config/ia64/tm-linux.h: Remove file.
8233 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
8234 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
8235 legacy_pc_in_sigtramp.
8236 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
8237 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
8238 Remove func_name argument.
8239 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
8241 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
8242 * target.c (update_current_target): Add to_have_steppable_watchpoint.
8243 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
8244 (HAVE_STEPPABLE_WATCHPOINT): Define.
8246 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
8247 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
8248 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
8249 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
8250 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
8251 target_insert_watchpoint, target_remove_watchpoint): Remove.
8252 (FETCH_INFERIOR_REGISTERS): Define.
8253 * ia64-linux-nat.c (ia64_register_addr): Make static.
8254 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
8255 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
8256 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
8257 (ia64_linux_stopped_data_address): Make static. Add target_ops.
8258 (ia64_linux_stopped_by_watchpoint): Make static.
8259 (ia64_linux_can_use_hw_breakpoint): New function.
8260 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
8261 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
8262 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
8264 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
8266 * linespec.c: Include language.h.
8267 (find_methods): Add language parameter. Call
8268 lookup_symbol_in_language. Pass language down.
8269 (add_matching_methods): Likewise. Call
8270 lookup_symbol_in_language.
8271 (add_constructors): Likewise.
8272 (find_method): Pass sym_class to collect_methods.
8273 (collect_methods): Add sym_class parameter. Pass language
8275 * symtab.c (lookup_symbol): Rename to ...
8276 (lookup_symbol_in_language): ... this. Add language
8277 parameter. Use passed language instead of current_language.
8278 (lookup_symbol): New as wrapper around
8279 lookup_symbol_in_language.
8280 (lookup_symbol_aux): Add language parameter. Use passed
8281 language instead of current_language.
8282 (search_symbols): Indent.
8283 * symtab.h (enum language): Forward declare.
8284 (lookup_symbol_in_language): Declare.
8285 (lookup_symbol): Update description.
8286 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
8287 * ada-lang.c (restore_language): Remove.
8288 (lookup_symbol_in_language): Remove.
8290 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
8292 * breakpoint.c (bpstat_num): Add int *num parameter.
8293 * breakpoint.h (bpstat_num): Likewise.
8294 * infcmd.c (continue_command): Adjust to new bpstat_num
8296 (program_info): Likewise.
8298 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8300 * config/sh/tm-sh.h: Remove file.
8301 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
8302 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
8303 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8304 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
8306 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8308 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
8309 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
8310 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
8311 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
8312 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
8313 sequence if target_shortname is "remote".
8315 2007-03-27 Anton Blanchard <anton@samba.org>
8317 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
8318 instead of wordsize when looking for the LR in a stack frame.
8320 2007-03-27 Andreas Schwab <schwab@suse.de>
8321 Daniel Jacobowitz <dan@codesourcery.com>
8323 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
8324 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
8325 argument. Update all callers.
8326 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
8327 (dwarf2_frame_set_eh_frame_regnum): Rename to...
8328 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
8329 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
8330 (dwarf2_frame_set_adjust_regnum): ...this.
8331 (dwarf2_frame_eh_frame_regnum): Delete prototype.
8332 * rs6000-tdep.c: Include "dwarf2-frame.h".
8333 (rs6000_adjust_frame_regnum): Define.
8334 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
8335 Register rs6000_adjust_frame_regnum.
8337 * Makefile.in (rs6000-tdep.o): Update dependencies.
8339 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
8341 * Makefile.in: Add support for a "pdf" target.
8343 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
8345 * amd64-tdep.c (amd64_init_frame_cache): New function.
8346 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
8348 2007-03-26 Nigel Stephens <nigel@mips.com>
8349 Maciej W. Rozycki <macro@mips.com>
8351 * ui-out.c (ui_out_field_core_addr): Truncate address to
8352 TARGET_ADDR_BIT size before printing.
8354 2007-03-22 Nigel Stephens <nigel@mips.com>
8355 Maciej W. Rozycki <macro@mips.com>
8357 * remote-mips.c (mips_xfer_memory): Update prototype.
8359 2007-03-22 Joel Brobecker <brobecker@adacore.com>
8361 * symfile.h: #include "symtab.h"
8363 2007-03-22 Denis Pilat <denis.pilat@st.com>
8365 * utils.c (pagination_on_command, pagination_off_command):
8366 Remove useless prototypes.
8368 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
8371 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
8372 instead of TYPE_NAME for object base class name.
8375 2007-03-19 Kevin Buettner <kevinb@redhat.com>
8377 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
8378 Specify frame type in calls to frame_func_unwind().
8380 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
8382 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
8383 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
8384 (refine_prologue_limit): Delete.
8385 (skip_prologue): Don't call it. Use extract_unsigned_integer.
8386 Assume lim_pc is set. Correct check for incomplete prologues.
8387 Do not skip clobbers of the frame pointer.
8388 * symtab.c (skip_prologue_using_sal): Fail if there is only one
8391 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8393 * frame.c (frame_pop): Check to see whether there's a frame to
8394 which we can pop first.
8396 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8398 * MAINTAINERS (Write After Approval): Add myself.
8400 2007-03-09 Markus Deuling <deuling@de.ibm.com>
8402 * infrun.c (breakpoints_failed): Remove unnecessary variable.
8403 (handle_inferior_event): Remove unnecessary braces.
8404 * breakpoint.c (bpstat_what): Remove wrong comment.
8406 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
8408 * spu-tdep.c (spu_in_function_epilogue_p): New function.
8409 (spu_gdbarch_init): Install it.
8411 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8413 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
8414 object types, not 0.
8416 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8418 * spu-tdep.c (spu_frame_align): New function.
8419 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
8421 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8423 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
8424 (spu_software_single_step): Likewise.
8425 (spu_read_pc, spu_write_pc): New functions.
8426 (spu_gdbarch_init): Install them.
8428 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8430 * cli/cli-dump.c (struct callback_data): load_offset needs to
8431 have signed long type.
8433 2007-03-07 Joel Brobecker <brobecker@adacore.com>
8435 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
8436 Revert the previous change that had some unexpected side-effects
8438 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
8439 function to get the address of the calling instruction.
8441 2007-03-07 Denis Pilat <denis.pilat@st.com>
8443 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
8444 get_selected_frame by deprecated_safe_get_selected_frame.
8446 2007-03-02 Mark Kettenis <kettenis@gnu.org>
8448 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
8449 "gdb_string.h". Don't include "nbsd-tdep.h".
8450 (SIZEOF_STRUCT_REG): Remove.
8451 (SHNBSD_SIZEOF_GREGS): New.
8452 (shnbsd_supply_gregset, shnbsd_collect_gregset)
8453 (shnbsd_regset_from_core_section): New functions.
8454 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
8455 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
8456 shnbsd_supply_gregset, shnbsd_collect_gregset.
8457 (shnbsd_gregset): New variable.
8458 (shnbsd_init_abi): Set regset_from_core_section.
8459 (GDB_OSABI_NETBSD_CORE): New define.
8460 (shnbsd_core_osabi_sniffer): New function.
8461 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
8462 * Makefile.in (shnbsd-tdep.o): Update dependencies.
8463 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
8465 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
8467 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8469 * gdbtypes.c (replace_type): Fix typo that caused us to not update
8470 length of the types referenced by the new type CV ring.
8472 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8474 * frame.c (frame_pop, frame_observer_target_changed): Call
8476 (flush_cached_frames): Rename to reinit_frame_cache and delete
8478 * frame.h (flush_cached_frames): Delete prototype and update comment.
8480 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
8481 reinit_frame_cache instead of flush_cached_frames. Do not call
8482 select_frame after reinit_frame_cache.
8483 * corelow.c (core_open): Likewise.
8484 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
8485 * infrun.c (prepare_to_proceed, context_switch)
8486 (handle_inferior_event): Likewise.
8487 * linux-fork.c (fork_load_infrun_state): Likewise.
8488 * ocd.c (ocd_start_remote): Likewise.
8489 * remote-e7000.c (e7000_start_remote): Likewise.
8490 * remote-mips.c (device): Likewise.
8491 * thread.c (switch_to_thread): Likewise.
8492 * tracepoint.c (finish_tfind_command): Likewise.
8493 * gdbarch.c: Regenerated.
8495 2007-02-28 Jerome Guitton <guitton@adacore.com>
8496 Joel Brobecker <brobecker@adacore.com>
8498 * gdbtypes.c (check_typedef): Do not replace stub type if
8499 the resolved type is not defined in the same objfile.
8501 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8503 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
8505 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8507 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
8508 symbol for Ada units when the symbol is defined using 't' rather
8509 than 'Tt' as symbol descriptor.
8511 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8513 * config/mips/tm-nbsd.h: Delete file.
8514 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8515 * config/sh/tm-nbsd.h: Delete file.
8516 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
8518 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8520 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
8521 unused WRONG_PARAM value since it was recently deleted.
8523 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
8525 * varobj.c (varobj_update): Free temporary vectors.
8527 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8529 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
8530 * config/powerpc/tm-linux.h: Delete file.
8531 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
8532 (PROCESS_LINENUMBER_HOOK): Do not undefine.
8533 (TEXT_SEGMENT_BASE): Do not redefine.
8534 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
8535 from config/rs6000/tm-rs6000.h.
8536 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8537 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
8538 (TEXT_SEGMENT_BASE): Remove.
8539 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
8540 (rs6000_in_solib_return_trampoline): Remove.
8541 (SKIP_TRAMPOLINE_CODE): Remove.
8542 (rs6000_skip_trampoline_code): Remove.
8543 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
8544 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8545 (FP0_REGNUM): Remove.
8546 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
8547 (rs6000_set_host_arch_hook): Remove.
8548 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
8549 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
8550 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
8551 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
8552 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
8553 * rs6000-nat.c: Include "rs6000-tdep.h".
8554 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
8555 (set_host_arch): Rename to ...
8556 (rs6000_create_inferior): ... this. Make public.
8557 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
8558 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
8559 (rs6000_create_inferior): Remove.
8560 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
8561 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
8562 set_gdbarch_in_solib_return_trampoline, and
8563 set_gdbarch_skip_trampoline_code.
8564 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
8565 from config/rs6000/tm-rs6000.h.
8567 2007-02-27 Joel Brobecker <brobecker@adacore.com>
8569 * buildsym.c (record_producer): Do nothing if no producer is provided.
8571 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
8573 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
8574 to check changelist is non-NULL. Call error if the frontend tries
8575 to update a non-root variable.
8577 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
8579 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8581 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
8582 (dwarf2_frame_sniffer): Update.
8583 (dwarf2_signal_frame_this_id): New function.
8584 (dwarf2_signal_frame_unwind): Use it.
8585 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
8586 * frame.c (frame_func_unwind): Add this_type argument.
8587 (get_frame_func): Update.
8588 (frame_unwind_address_in_block): Add this_type argument and check it.
8590 (get_frame_address_in_block): Update.
8591 * frame.h (enum frame_type): Move higher in the file.
8592 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
8595 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
8596 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
8597 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
8598 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
8599 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
8600 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
8601 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
8602 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
8603 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
8604 frame_func_unwind and frame_unwind_address_in_block to specify
8605 the frame type. Use frame_unwind_address_in_block instead of
8606 frame_pc_unwind in sniffers.
8608 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8610 * frame.c (deprecated_selected_frame): Rename to...
8611 (selected_frame): ...this. Make static.
8612 (get_selected_frame, select_frame): Update.
8613 * frame.h (deprected_select_frame): Delete.
8614 (deprecated_safe_get_selected_frame): Update comments.
8616 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
8617 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
8618 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
8619 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
8620 tui/tui.c: Replace references to deprecated_selected_frame.
8622 2007-02-27 Fred Fish <fnf@specifix.com>
8624 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
8625 directly decrement the stack pointer, accumulate their operand into
8626 the stack offset, and mark the function as not being frameless.
8628 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8630 * arch-utils.c (selected_byte_order): New.
8631 * arch-utils.h (selected_byte_order): New prototype.
8632 * remote-sim.c (gdbsim_open): Use selected_byte_order.
8634 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8636 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
8637 (default_symfile_offsets): Check VMA here. Update section VMAs.
8639 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8641 * remote.c (init_remote_state): Add special handling for placeholder
8644 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8646 * Makefile.in (XMLFILES): Include $(TDEP_XML).
8647 (filenames_h): New variable.
8648 (clean): Clean up xml-builtin.c and stamp-xml.
8649 (arm-linux-nat.o): Update.
8650 * config/arm/linux.mh (TDEP_XML): Define.
8651 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
8652 (arm_linux_has_wmmx_registers): New.
8653 (GET_THREAD_ID): Fix typo.
8654 (IWMMXT_REGS_SIZE): Define.
8655 (fetch_wmmx_regs, store_wmmx_regs): New.
8656 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
8657 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
8658 (super_xfer_partial, arm_linux_xfer_partial): New.
8659 (_initialize_arm_linux_nat): Use them.
8660 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
8661 (xml_builtin_xfer_partial): New function.
8662 * xml-support.h (xml_builtin_xfer_partial): New prototype.
8663 * NEWS: Update mention of iWMMXt support.
8665 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8667 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
8668 if there are no FPA registers.
8669 (arm_dwarf_reg_to_regnum): New function.
8670 (arm_register_type, arm_register_name): Return minimal values for
8671 unsupported registers.
8672 (arm_register_sim_regno): Handle iWMMXt registers.
8673 (arm_gdbarch_init): Record missing FPA registers if indicated by
8674 a target description. Recognize iWMMXt registers. Only register
8675 "info float" for FPA. Use ARM_NUM_REGS. Register
8676 arm_dwarf_reg_to_regnum.
8677 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
8679 (struct gdbarch_tdep): Add have_fpa_registers.
8680 * features/xscale-iwmmxt.xml: Update capitalization.
8681 * regformats/arm-with-iwmmxt.dat: Regenerated.
8683 2007-02-24 Kevin Buettner <kevinb@redhat.com>
8685 * NEWS (New targets): Add entry for the Toshiba Media Processor.
8687 2007-02-23 Kevin Buettner <kevinb@redhat.com>
8689 * MAINTAINERS (mep): New target.
8691 2007-02-23 Kevin Buettner <kevinb@redhat.com>
8693 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
8695 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
8696 (mep-tdep.o): New rule.
8697 * configure.tgt (mep-*-*): New target.
8698 * mep-tdep.c: New file.
8699 * config/mep/mep.mt: New file.
8701 2007-02-22 Markus Deuling <deuling@de.ibm.com>
8703 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
8704 BREAKPOINT_HIT and STOP_UNKNOWN.
8706 2007-02-22 Markus Deuling <deuling@de.ibm.com>
8708 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
8710 2007-02-20 Joel Brobecker <brobecker@adacore.com>
8712 * gdb_expat.h (XMLCALL): Define if not already defined.
8714 2007-02-20 Andreas Schwab <schwab@suse.de>
8716 * Makefile.in (symfile.o): Update dependencies.
8718 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
8720 * MAINTAINERS: Disable -Werror for cris simulator. Build
8721 sparc64-solaris2.10 instead of the broken sparc-elf.
8722 * solib-frv.c: Include "solib.h".
8723 * Makefile.in (solib-frv.o): Update.
8724 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
8725 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
8726 (xtensa_frame_this_id, xtensa_frame_prev_register)
8727 (xtensa_push_dummy_call): Use %p.
8729 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8731 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
8732 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
8733 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
8734 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
8735 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
8736 (sparc-linux-tdep.o): Update.
8738 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
8740 * xtensa-tdep.h (xtensa_reg_mask_t): New.
8741 (xtensa_mask_t): Change mask field to be a separate array.
8742 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
8743 (xtensa_pseudo_register_write, xtensa_unwind_pc)
8744 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
8745 (xtensa_breakpoint_from_pc): Remove implicit type casting.
8746 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
8747 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
8748 (mask14, mask15): Rename to
8749 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
8750 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
8751 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
8752 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
8753 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
8754 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
8755 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
8756 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
8757 (xtensa_submask14, xtensa_submask15): New.
8758 (rmap): Follow strict aliasing rules doing static initialization.
8760 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
8762 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
8763 handling from here...
8764 (tdesc_register_type): ...to here.
8765 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
8766 * features/arm-core.xml: Use code_ptr and data_ptr.
8768 2007-02-13 Denis Pilat <denis.pilat@st.com>
8770 * varobj.h (enum varobj_update_error): New enum.
8771 * varobj.c (struct varobj_root): Add is_valid member.
8772 (varobj_get_type): Check for invalid varobj.
8773 (varobj_get_attributes): Likewise.
8774 (variable_editable):Likewise.
8775 (varobj_update): Likewise. Use varobj_update_error.
8776 (new_root_variable): Set root varobj as valid by default.
8777 (varobj_invalidate): New function.
8778 * symfile.c (clear_symtab_users): Use varobj_invalidate.
8779 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
8780 Use varobj_update_error.
8782 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
8785 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
8786 Pascal language marker.
8787 * dwarf2read.c (set_cu_language): Likewise.
8789 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
8791 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
8792 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
8793 instead of target_terminal_init since inferior_ptid isn't set yet.
8795 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
8797 * MAINTAINERS (Write After Approval): Add myself.
8799 2007-02-09 Fred Fish <fnf@specifix.com>
8801 Based on work by Apple Computer, Inc.
8802 * event-top.c (async_request_quit): Call quit() whenever either
8803 quit_flag is set or immediate_quit is set.
8805 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
8807 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
8808 type to a pointer to const struct block.
8809 (ada_lookup_symbol_list): Don't cast away constness when calling
8810 remove_out_of_scope_renamings.
8812 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
8814 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
8815 address of 'filename'; it is always non null.
8817 2007-02-09 Joel Brobecker <brobecker@adacore.com>
8819 * exec.c (add_to_section_table): Do not discard empty sections.
8821 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8823 * features/Makefile, features/arm-with-iwmmxt.xml,
8824 features/gdbserver-regs.xsl, features/number-regs.xsl,
8825 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
8826 * regformats/arm-with-iwmmxt.dat: Generate.
8827 * NEWS: Mention iWMMXt.
8829 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8831 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
8832 (xml-tdesc.o): Update.
8833 * xml-support.c: Add a comment.
8834 (gdb_xml_enums_boolean): New variable.
8835 (gdb_xml_parse_attr_enum): Use strcasecmp.
8836 * xml-support.h (gdb_xml_enums_boolean): Declare.
8837 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
8838 next_regnum, and current_union.
8839 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
8840 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
8841 (field_attributes, union_children, reg_attributes, union_attributes)
8842 (vector_attributes, feature_attributes, feature_children): New.
8843 (target_children): Make static. Add <feature>.
8844 (tdesc_elements): Make static.
8845 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
8846 (struct tdesc_feature, tdesc_feature_p): New types.
8847 (struct target_desc): Add features member.
8848 (struct tdesc_arch_data, tdesc_data): New.
8849 (target_find_description): Clarify error message. Warn about
8850 ignored register descriptions.
8851 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
8852 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
8853 (tdesc_data_cleanup, tdesc_numbered_register)
8854 (tdesc_numbered_register_choices, tdesc_find_register)
8855 (tdesc_register_name, tdesc_register_type)
8856 (tdesc_remote_register_number, tdesc_register_reggroup_p)
8857 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
8858 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
8859 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
8860 (tdesc_create_feature, tdesc_record_type): New.
8861 (free_target_description): Free features.
8862 (_initialize_target_descriptions): Initialize tdesc_data.
8863 * arch-utils.c (default_remote_register_number): New.
8864 * arch-utils.h (default_remote_register_number): New prototype.
8865 * target-descriptions.h (set_tdesc_pseudo_register_name)
8866 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
8867 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
8868 (tdesc_numbered_register, tdesc_numbered_register_choices)
8869 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
8870 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
8871 (tdesc_create_reg): Declare.
8872 * gdbarch.sh (remote_register_number): New entry.
8873 * gdbarch.c, gdbarch.h: Regenerate.
8874 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
8875 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
8877 * arm-tdep.c (arm_register_aliases): New.
8878 (arm_register_name_strings): Rename to...
8879 (arm_register_names): ...this. Make const. Delete the old version.
8880 (current_option, arm_register_byte): Delete.
8881 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
8882 (value_of_arm_user_reg): New.
8883 (arm_gdbarch_init): Verify any described registers. Call
8884 tdesc_use_registers. Don't use arm_register_byte. Create aliases
8885 for standard register names.
8886 (_initialize_arm_tdep): Do not adjust arm_register_names.
8887 * user-regs.c (struct user_reg): Add baton member.
8888 (append_user_reg, user_reg_add_builtin, user_regs_init)
8889 (user_reg_add, value_of_user_reg): Use a baton for user
8891 * std-regs.c: Update.
8892 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
8893 (user_reg_add): Add baton argument.
8894 * NEWS: Mention target description register support.
8895 * features/arm-core.xml, features/arm-fpa.xml: New.
8896 * eval.c (evaluate_subexp_standard): Allow ptype $register
8897 when the program is not running.
8899 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
8901 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
8903 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
8905 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
8906 info->disassembler_options to "any".
8908 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8910 * varobj.c (install_new_value): Only call value_get_print_value
8913 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8915 Reported by timeless@gmail.com:
8916 * gdb/target.c (target_flash_erase): Do not return void value.
8917 (target_flash_done): Likewise.
8918 * gdb/cli/cli-cmds.c (source_command): Likewise.
8920 2007-02-08 Fred Fish <fnf@specifix.com>
8922 Based on work by Apple Computer, Inc.
8923 * event-top.c (handle_sigint): Set quit_flag.
8924 (async_request_quit): Don't set quit_flag. Avoid calling quit()
8925 if quit_flag has already been reset.
8927 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8929 * ser-mingw.c (pipe_windows_close): Move variable initialization back
8932 2007-02-08 Fred Fish <fnf@specifix.com>
8934 * defs.h (request_quit): Remove declaration.
8935 * utils.c (request_quit): Remove definition.
8937 2007-02-08 Joel Brobecker <brobecker@gnat.com>
8938 Jan Kratochvil <jan.kratochvil@redhat.com>
8939 Daniel Jacobowitz <dan@codesourcery.com>
8941 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
8942 (skip_prologue): Allow bl->blrl used by PIC code.
8944 2007-02-08 Mark Kettenis <kettenis@gnu.org>
8945 Daniel Jacobowitz <dan@codesourcery.com>
8947 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
8948 initialize tmp_obstack.
8949 * p-valprint.c (pascal_object_print_value_fields)
8950 (pascal_object_print_value): Likewise.
8952 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8954 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
8956 2007-02-08 Mark Kettenis <kettenis@gnu.org>
8958 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
8959 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
8961 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
8963 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
8965 (tdesc_parse_xml): Cache expanded descriptions.
8967 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
8969 * Makefile.in (XMLFILES): New.
8970 (COMMON_OBS): Add xml-builtin.o.
8971 (xml-builtin.c, stamp-xml): New rules.
8972 (xml-tdesc.o): Update.
8973 * features/feature_to_c.sh: New file.
8974 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
8975 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
8976 (gdb_xml_start_element): Initialize scope after possibly reallocating
8977 scopes. Move cleanup later. Handle the XInclude description
8979 (gdb_xml_end_element): Only parse the body if there is a current element.
8980 Call XML_DefaultCurrent if there is no element.
8981 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
8982 (struct xinclude_parsing_data, xinclude_start_include)
8983 (xinclude_end_include, xml_xinclude_default)
8984 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
8985 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
8986 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
8987 * xml-support.h (xml_fetch_another, xml_process_xincludes)
8988 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
8989 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
8990 XInclude directives. Use the compiled in DTD.
8991 (fetch_xml_from_file): Add baton argument. Treat it as a containing
8992 directory name. Do not warn here.
8993 (file_read_description_xml): Update call. Warn here instead. Pass
8995 (fetch_available_features_from_target): New.
8996 (target_read_description_xml): Use it.
8997 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
8999 * features/xinclude.dtd: New file.
9001 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9003 * linux-thread-db.c (check_for_thread_db): Return early if we have
9004 no libthread_db support.
9006 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9008 * mi/mi-parse.h: Include <sys/time.h>.
9010 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
9012 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
9013 instead of print_variable_value to print values.
9015 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9017 * mi/mi-main.c: Numerous formatting changes.
9018 (mi_cmd_data_write_register_values): Replace clause inadvertantly
9019 removed in my previous change.
9021 2007-02-03 Eli Zaretskii <eliz@gnu.org>
9023 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
9024 Use 1000000L instead of 1000000.
9026 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9028 Based on work by Apple Computer, Inc.
9030 * configure.ac: Test for sys/resource.h and getrusage.
9031 * configure, config.in: Regenerate.
9033 * mi/mi-main.c: Include <sys/resource.h> if present.
9034 (rusage): Declare if HAVE_GETRUSAGE.
9035 (current_command_ts, do_timings): New static variables.
9036 (timestamp, print_diff_now, print_diff, timeval_diff):
9037 New static timing functions.
9038 (mi_cmd_enable_timings): New function for new MI command.
9039 (captured_mi_execute_command, mi_execute_async_cli_command):
9040 Call timing functions.
9042 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
9045 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
9047 * mi/mi-parse.h: (mi_timestamp): New structure.
9048 (mi_parse): Add mi_timestamp* member.
9050 2007-02-02 Denis Pilat <denis.pilat@st.com>
9052 * thread.c (make_cleanup_restore_current_thread): New function.
9053 (info_threads_command): Use of make_cleanup_restore_current_thread
9054 to restore the current thread and the selected frame.
9055 (restore_selected_frame): New function.
9056 (struct current_thread_cleanup): Add frame_id field.
9057 (do_restore_current_thread_cleanup): Add restoring of the selected
9059 (make_cleanup_restore_current_thread): Likewise.
9060 (thread_apply_all_command): backup the selected frame while
9061 entering the function and restore it at exit.
9062 (thread_apply_command): Likewise.
9064 2007-02-02 Denis Pilat <denis.pilat@st.com>
9066 * MAINTAINERS (Write After Approval): Add myself to the list.
9068 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
9070 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
9071 (m32r_store_register): Ditto.
9073 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
9075 * ser-mingw.c (pipe_windows_open)
9076 (pipe_windows_read, pipe_windows_write): Declare
9077 variables at the top of the function.
9079 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9081 * doublest.c (floatformat_from_length): Use the right element from
9082 gdbarch floatformats.
9083 (floatformat_from_type, extract_typed_floating)
9084 (store_typed_floating): Likewise.
9085 * doublest.h: Remove declarations for undefined floatformat arrays.
9086 * gdbarch.sh (float_format, double_format, long_double_format): Change
9088 (pformat): Update for pairs.
9089 * gdbarch.c, gdbarch.h: Regenerated.
9090 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
9091 (floatformats_ieee_double_littlebyte_bigword)
9092 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
9093 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
9094 (floatformats_vax_d): New variables.
9095 (builtin_type_ieee_single, builtin_type_ieee_double)
9096 (builtin_type_arm_ext, builtin_type_ia64_spill)
9097 (builtin_type_ia64_quad): Replace arrays with individual types.
9098 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
9099 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
9100 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
9101 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
9102 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
9103 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
9104 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
9105 unused and endian-specific types.
9106 (recursive_dump_type): Update for floatformat pairs.
9107 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
9108 (build_gdbtypes): Use build_flt.
9109 (_initialize_gdbtypes): Update set of initialized types.
9110 * gdbtypes.h: Update declarations to match gdbtypes.c.
9111 (struct main_type): Store a pointer to two floatformats.
9112 * arch-utils.c (default_float_format, default_double_format): Delete.
9113 * arch-utils.h (default_float_format, default_double_format): Delete.
9115 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9116 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
9117 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
9118 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
9119 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
9121 2007-01-29 Joel Brobecker <brobecker@adacore.com>
9123 * target.c (maintenance_print_target_stack): New function.
9124 (initialize_targets): Add new "maintenance print target-stack"
9127 2007-01-28 Mark Kettenis <kettenis@gnu.org>
9129 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
9131 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
9133 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
9134 (struct dwarf2_loclist_baton): Likewise.
9136 2007-01-27 Eli Zaretskii <eliz@gnu.org>
9138 * cli/cli-script.c: Include breakpoint.h.
9139 (build_command_line): Require arguments only for if and while
9141 (get_command_line, execute_user_command, execute_control_command):
9142 Fix wording of warning messages.
9143 (print_command_lines): Print breakpoint commands.
9144 (execute_control_command): Call commands_from_control_command to
9145 handle the `commands' command inside a body of a flow-control
9147 (read_next_line): Recognize the `commands' command and build a
9148 command line structure for it.
9149 (recurse_read_control_structure, read_command_lines): Handle
9150 `commands' similarly to `if' and `while'.
9152 * breakpoint.c (get_number_trailer): Document the special meaning
9153 of NULL as the first argument PP.
9154 (commands_from_control_command): New function.
9156 * breakpoint.h (commands_from_control_command): Add prototype.
9158 * defs.h (commands_control): New enumerated value for enum
9159 command_control_type.
9161 2007-01-26 Joel Brobecker <brobecker@adacore.com>
9163 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
9164 (ada_exception_sal): Update accordingly.
9166 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9168 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
9169 * NEWS: Describe CHAR array vs. string identifcation rules.
9171 2007-01-25 Paul Brook <paul@codesourcery.com>
9173 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
9175 2007-01-24 Jim Blandy <jimb@codesourcery.com>
9177 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
9178 expression is empty, bother to return the 'optimized out' value we
9179 construct. (Thanks to Carl Burch.)
9181 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9183 * varobj.c (c_value_of_root, c_value_of_child)
9184 (cplus_describe_child): Don't call release_value.
9186 2007-01-24 Thiemo Seufer <ths@mips.com>
9188 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
9191 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9193 Refactor getting children name, value and type access
9195 * varobj.c (get_type_deref): Remove.
9196 (adjust_value_for_child_access): New.
9197 (c_number_of_children): Use the above.
9198 (c_describe_child): Likewise.
9199 (enum accessibility): New.
9200 (match_accessibility): New function.
9201 (cplus_describe_child): New function.
9202 (cplus_name_of_child, cplus_value_of_child)
9203 (cplus_type_of_child): Reimplement in terms
9204 of cplus_describe_child.
9205 (cplus_number_of_children): Use
9206 adjust_value_for_child_access.
9208 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9210 Fix computation of the 'editable' attribute and
9211 value changeability for for references.
9212 * varobj.c (get_value_type): New function.
9213 (c_variable_editable): Use get_value_type.
9214 (varobj_value_is_changeable): Likewise.
9216 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9218 * source.c (find_and_open_source): Try rewriting the source
9219 path inside filename if dirname is NULL.
9221 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9223 * dwarf2read.c (add_partial_symbol): Create an extra partial
9224 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
9225 (new_symbol): Likewise for symbols.
9227 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
9229 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
9231 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
9233 * value.c (value_primitive_field): Copy the full 'location'
9234 contents, instead of assuming that copying ADDRESS will
9235 bring over everything in the union. Remove obsolete comment.
9237 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
9239 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
9240 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
9241 (m32c_m16c_pointer_to_address): Separate code from declarations.
9243 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
9245 * target.c (update_current_target): Correct typo.
9247 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
9249 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
9252 2007-01-11 Andrew Cagney <cagney@redhat.com>
9253 Daniel Jacobowitz <dan@codesourcery.com>
9254 Jan Kratochvil <jan.kratochvil@redhat.com>
9256 * dwarf2-frame.c (execute_cfa_program): New support of
9257 `DW_CFA_GNU_negative_offset_extended'.
9259 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9261 * NEWS: Mention flash support for "load" and new remote packets.
9263 2007-01-21 Markus Deuling <deuling@de.ibm.com>
9265 * breakpoint.c (delete_command): Skip redundant loop iterations.
9267 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9269 * gdbarch.sh (register_type): Update comment.
9270 * gdbarch.h: Regenerated.
9271 * arch-utils.c (generic_register_size): Call register_type.
9272 * ia64-tdep.c (ia64_extract_return_value): Likewise.
9273 * m32c-tdep.c (check_for_saved): Likewise.
9274 * mips-tdep.c (mips_print_register, print_gp_register_row)
9275 (mips_print_registers_info): Likewise.
9276 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
9278 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
9279 (sh64_do_register, sh64_print_register)
9280 (sh64_media_print_registers_info): Likewise.
9281 * tui/tui-regs.c (tui_register_format): Likewise.
9283 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9285 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
9287 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
9288 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
9289 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
9290 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9291 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
9292 (make_symbol_completion_list): Likewise.
9294 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9295 Daniel Jacobowitz <dan@codesourcery.com>
9297 * buildsym.c (end_symtab): Use preallocated symtab if available.
9298 Fill in SYMBOL_SYMTAB.
9299 * buildsym.h (struct subfile): Add symtab member.
9300 * dwarf2read.c (struct dwarf2_cu): Add line_header.
9301 (struct file_entry): Add symtab.
9302 (free_cu_line_header): New function.
9303 (read_file_scope): Use it. Save line_header in the cu. Process
9305 (add_file_name): Initialize new symtab member.
9306 (dwarf_decode_lines): Create symtabs for included files.
9307 (new_symbol): Set SYMBOL_SYMTAB.
9308 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
9309 (search_symbols): Likewise.
9310 * symtab.h (struct symbol): Add symtab member.
9311 (SYMBOL_SYMTAB): Define.
9313 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9315 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
9317 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9319 * arch-utils.c (show_endian): Correct reversed condition.
9321 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9323 * MAINTAINERS (Write After Approval): Add myself.
9325 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
9326 Vladimir Prus <vladimir@codesourcery.com>
9328 Fix 'selected frame' varobjs.
9329 * varobj.c (struct varobj): Remove the error field.
9330 (varobj_set_value): Don't check var->error.
9331 (install_new_value): Don't set var->error.
9332 (varobj_update): Always pass the new value
9333 of the root via install_new_value.
9334 (create_child): Don't set error field.
9335 (new_variable): Likewise.
9336 (c_value_of_root): Always reevaluate the value
9337 of selected frame varobjs in the selected frame.
9338 Don't call reinit_frame_cache.
9340 2007-01-15 Joel Brobecker <brobecker@adacore.com>
9342 * source.c (_initialize_source): Improve the help text of
9343 the substitute-path commands.
9345 2007-01-14 Mark Kettenis <kettenis@gnu.org>
9347 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
9348 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
9349 (frv_skip_prologue): Remove prototypes.
9350 (frv_adjust_breakpoint_address): Renamed from
9351 frv_gdbarch_adjust_breakpoint_address.
9352 (frv_gdbarch_init): Adjust.
9354 2007-01-13 Mark Kettenis <kettenis@gnu.org>
9356 * gdbarch.sh (deprecated_extract_return_value)
9357 (deprecated_store_return_value): Remove.
9358 (extract_return_value, store_return_value): Remove default values.
9359 * gdbarch.c, gdbarch.h: Regenerate.
9360 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
9361 (legacy_store_return_value): Remove.
9362 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
9365 * mi/mi-main.c: Remove obsolete comment.
9367 * regcache.c, regcache.h (deprecated_register_bytes)
9368 (deprecated_read_register_bytes)
9369 (deprecated_write_register_bytes): Remove.
9371 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
9372 Don't forget to move destination pointer.
9374 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9376 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
9378 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
9380 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
9381 past entry function with recent newlib.
9383 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
9385 * gdb.texinfo (GDB/MI Variable Objects): Improve the
9386 introduction. Specify -var-update more exactly.
9388 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
9390 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
9392 2007-01-10 Jim Blandy <jimb@codesourcery.com>
9394 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
9395 the Global Maintainers' invitation to be a global maintainer.
9397 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
9399 * infrun.c (singlestep_pc): New variable.
9400 (resume): Set singlestep_pc.
9401 (context_switch): Add a debugging message. Flush the frame cache.
9402 (handle_inferior_event): Add debugging messages. Handle thread
9403 hops when a software single step has completed. Let context_switch
9404 handle flushing the frame cache.
9406 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9408 * NEWS: Mention target descriptions, "set tdesc filename",
9409 "unset tdesc filename", "show tdesc filename", and
9410 qXfer:features:read.
9411 * arch-utils.c (choose_architecture_for_target): New function.
9412 (gdbarch_info_fill): Call it.
9413 * target-descriptions.c (struct property): Make members non-const.
9414 (struct target_desc): Add arch member.
9415 (target_description_filename): New variable.
9416 (target_find_description): Try via XML first.
9417 (tdesc_architecture): New.
9418 (free_target_description, make_cleanup_free_target_description): New.
9419 (set_tdesc_property): Call xstrdup.
9420 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
9421 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
9422 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
9423 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
9424 * target-descriptions.h (tdesc_architecture)
9425 (make_cleanup_free_target_description, set_tdesc_architecture): New
9427 * Makefile.in (SFILES): Add xml-tdesc.c.
9428 (COMMON_OBS): Add xml-tdesc.o.
9429 (target-descriptions.o): Update.
9430 (xml-tdesc.o): New rule.
9431 * xml-tdesc.c, xml-tdesc.h: New files.
9432 * remote.c (PACKET_qXfer_features): New enum.
9433 (remote_protocol_features): Add qXfer:features:read.
9434 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
9435 (_initialize_remote): Register qXfer:features:read.
9436 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
9437 * features/gdb-target.dtd: New file.
9439 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9441 * copyright.sh: Clarify error.
9443 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9445 * symtab.c (matching_bfd_sections): Fix VMA matching for
9448 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9450 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
9453 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9455 Updated copyright notices for most files.
9457 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9459 * copyright.sh (prunes): Add step-line.inp and step-line.c.
9461 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9463 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
9465 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
9467 * configure, config.in: Regenerate.
9468 * defs.h (debug_file_directory): Declare.
9469 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
9470 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
9471 relocate it if DEBUGDIR_RELOCATABLE.
9472 * symfile.c (debug_file_directory): Make non-static.
9473 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
9474 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
9475 (_initialize_symfile): Don't initialize debug_file_directory here.
9477 2007-01-09 Jim Blandy <jimb@codesourcery.com>
9479 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
9482 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9484 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
9485 frame_unwind_register to recurse.
9486 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
9487 (alpha_heuristic_frame_prev_register): Likewise.
9488 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
9489 * m32c-tdep.c (m32c_prev_register): Likewise.
9490 * frame.c (frame_register_unwind_location): Remove FIXME.
9492 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9493 Eli Zaretskii <eliz@gnu.org>
9495 * copyright.sh: New file.
9497 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9499 * configure.ac: Check for XML_StopParser.
9500 * xml-support.c (gdb_xml_body_text): Check for an error.
9501 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
9502 (gdb_xml_end_element_wrapper): Likewise.
9503 * config.in, configure: Regenerated.
9505 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9507 * varobj.c (install_new_value): Always update print_value.
9508 (value_get_print_value): Immediately return NULL for missing
9511 2007-01-08 Jim Blandy <jimb@codesourcery.com>
9513 * configure.ac: Tighten pattern for extracting value of
9514 DEPRECATED_TM_FILE from the target makefile fragment.
9515 * configure: Regenerated.
9517 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9519 * linux-nat.c (struct simple_pid_list): Add status.
9520 (add_to_pid_list): Record the PID's status.
9521 (linux_record_stopped_pid): Likewise. Make static.
9522 (pull_pid_from_list): Return the saved status.
9523 (linux_nat_handle_extended): Deleted.
9524 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
9525 Make static. Handle non-SIGSTOP for a new thread's first signal.
9526 (flush_callback): Handle unexpected pending signals.
9527 (linux_nat_wait): Update calls to changed functions.
9528 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
9529 Remove prototypes for newly static functions.
9531 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9533 * gdbarch.sh (value_from_register): New gdbarch function.
9534 * gdbarch.c, gdbarch.h: Regenerate.
9535 * findvar.c (default_value_from_register): New function.
9536 (value_from_register): Use gdbarch_value_from_register.
9537 * value.h (default_value_from_register): Declare.
9538 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
9539 spu_value_to_register): Remove.
9540 (spu_value_from_register): New function.
9541 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9542 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9543 Call set_gdbarch_value_from_register.
9544 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
9545 s390_value_to_register): Remove.
9546 (s390_value_from_register): New function.
9547 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9548 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9549 Call set_gdbarch_value_from_register.
9551 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9553 * NEWS: Add "set sysroot" and "show sysroot".
9554 * solib.c (solib_absolute_prefix): Delete. Replace
9555 all uses with gdb_sysroot.
9556 (_initialize_solib): Add "set sysroot" and "show sysroot".
9557 Make "solib-absolute-prefix" an alias to it.
9559 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9561 * frame.c (get_frame_register_bytes): New function.
9562 (put_frame_register_bytes): Likewise.
9563 * frame.h (get_frame_register_bytes): Declare.
9564 (put_frame_register_bytes): Likewise.
9565 * findvar.c (value_from_register): Always construct lval_register
9566 values. Use get_frame_register_bytes.
9567 * valops.c (value_assign): Use get_frame_register_bytes and
9568 put_frame_register_bytes.
9570 2007-01-08 Jim Blandy <jimb@codesourcery.com>
9572 * MAINTAINERS: Update Stan Shebs' email address.
9574 2007-01-07 Joel Brobecker <brobecker@adacore.com>
9576 * ada-lang.c (is_known_support_routine): Improve the implementation.
9578 2007-01-06 Joel Brobecker <brobecker@adacore.com>
9580 * ada-lang.c: Add include of source.h.
9581 (is_known_support_routine): Improve the check verifying that the file
9582 associated to this frame exists.
9583 * Makefile.in (ada-lang.o): Add dependency on source.h.
9585 2007-01-07 Jim Blandy <jimb@codesourcery.com>
9587 * ax-general.c (ax_const_l): Select proper opcode for the given
9590 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
9592 * varobj.c (c_value_of_root): Don't select frame if variable
9593 object is out of scope.
9595 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
9597 * varobj.c (struct varobj): New member print_value.
9598 (install_new_value): Compare last printed value with current one
9599 instead of contents.
9600 (new_variable): Initialize var->print_value to NULL.
9601 (free_variable): Free var->print_value.
9602 (value_get_print_value): New function derived from
9603 c_value_of_variable.
9604 (c_value_of_variable): Use value_get_print_value.
9606 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9608 * i386-tdep.c (i386_analyze_stack_align): Add comment.
9610 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9612 * NEWS: Add entries for new catch commands.
9614 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9616 * dwarf2read.c (partial_die_info): Add field has_byte_size.
9617 (add_partial_symbol): Correct identification of external references.
9618 (process_structure_scope): Likewise.
9619 (read_partial_die): Handle DW_AT_byte_size attribute.
9621 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
9623 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
9625 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
9627 * varobj.c (get_type_deref): Fix variable objects for references to
9630 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9632 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
9635 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9637 * memory-map.c (struct_memory_map_parsing_data): Remove most
9638 members. Make property_name an array.
9639 (free_memory_map_parsing_data, memory_map_start_element)
9640 (memory_map_end_element, memory_map_character_data): Delete.
9641 (memory_map_start_memory, memory_map_end_memory)
9642 (memory_map_start_property, memory_map_end_property): New functions.
9643 (property_attributes, memory_children, memory_type_enum)
9644 (memory_attributes, memory_map_children, memory_map_elements): New.
9645 (parse_memory_map): Rewrite.
9646 * xml-support.c (debug_xml): New.
9647 (xml_get_required_attribute, xml_get_integer_attribute)
9648 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
9650 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
9651 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
9652 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
9653 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
9654 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
9655 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
9656 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
9658 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
9659 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
9660 (enum gdb_xml_element_flag, struct gdb_xml_element)
9661 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
9662 (struct gdb_xml_enum): New.
9663 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
9664 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
9665 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
9666 (xml_get_required_attribute, xml_get_integer_attribute)
9667 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
9668 * Makefile.in (xml_support_h, xml-support.o): Update.
9670 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9672 * Makefile.in (eval.o): Update dependencies.
9673 * eval.c: Include "ui-out.h" and "exceptions.h".
9674 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
9675 Use value_zero if an error occurs when avoiding side effects.
9676 * varobj.c (c_value_of_root): Initialize new_val.
9678 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9680 * varobj.c (varobj_list_children): Stop if the number of children is
9682 (c_number_of_children):
9684 2007-01-04 Mark Kettenis <kettenis@gnu.org>
9686 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
9687 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
9688 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
9689 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
9690 sizeof, instead of hardcoded constants.
9692 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9694 * CONTRIBUTE: Use sourceware.org.
9696 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9698 * buildsym.c (start_subfile): Handle producer.
9699 (record_producer): New function.
9700 * buildsym.h (struct subfile): Include producer.
9701 (record_producer): New prototype.
9702 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
9703 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
9704 armcc_cfa_offsets_reversed.
9705 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
9706 (dwarf2_frame_find_quirks): New function.
9707 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
9708 (decode_frame_entry_1): Record the CIE version. Record the
9709 augmentation. Skip armcc augmentations.
9710 * dwarf2read.c (read_file_scope): Save the producer.
9711 * symtab.h (struct symtab): Rename unused version member to
9714 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9716 * configure.ac (build_warnings): Use -Wall and
9717 -Wdeclaration-after-statement.
9718 * configure: Regenerated.
9720 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
9722 Simplify access to variours properties of child
9723 variable objects in C.
9724 * varobj.c (value_struct_element_index): New function.
9725 (c_describe_child): New function.
9726 (c_name_of_child, c_value_of_child)
9727 (c_type_of_child): Rewrite to use c_describe_child.
9729 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
9732 * varobj.c: Include "vec.h".
9733 (varobj_p): New typedef, declare vector of those.
9734 (struct varobj): Use vector for the 'children' member.
9735 (child_exists): Remove.
9736 (save_child_in_parent): Remove.
9737 (remove_child_from_parent): Remove.
9738 (struct varobj_child): Remove.
9739 (struct vstack): Remove.
9740 (vpush, vpop): Remove.
9741 (varobj_list_children): Adjust to work work vector.
9742 (varobj_update): Likewise. Use vectors for
9743 working stack and result.
9744 (delete_variable_1): Likewise.
9745 * Makefile.in (varobj.o): Update dependencies.
9747 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
9749 Port from Apple's version.
9751 * varobj.c (type_changeable): Rename to...
9752 (varobj_value_is_changeable_p): ...this. Adjust all callers.
9753 (is_root_p): New function. Use it everywhere.
9755 2007-01-04 Jim Blandy <jimb@codesourcery.com>
9757 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
9760 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9762 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
9764 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9766 * hpread.c (hpread_type_lookup): Fix compilation failure.
9768 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
9770 * NEWS: New port to S+core.
9771 * MAINTAINERS (Write After Approval, Responsible Maintainers):
9774 * Makefile.in: Add dependencies for S+core files.
9775 * configure.tgt (score*, score-*-*): Add S+core target.
9776 * config/score/embed.mt: New file.
9777 * score-tdep.c: New file.
9778 * score-tdep.h: New file.
9780 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9782 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
9783 the appropriate type rather than a bogus void type.
9785 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9787 * ada-lang.h (ada_find_printable_frame): Remove.
9788 (ada_exception_catchpoint_p, ada_decode_exception_location)
9789 (ada_decode_assert_location): Add declaration.
9790 * ada-lang.c: Add include of annotate.h and valprint.h.
9791 (exception_catchpoint_kind): New enum.
9792 (function_name_from_pc, is_known_support_routine)
9793 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
9794 (ada_exception_name_addr_1, ada_exception_name_addr)
9795 (print_it_exception, print_one_exception, print_mention_exception)
9796 (print_it_catch_exception, print_one_catch_exception)
9797 (print_mention_catch_exception, catch_exception_breakpoint_ops)
9798 (print_it_catch_exception_unhandled)
9799 (print_one_catch_exception_unhandled)
9800 (print_mention_catch_exception_unhandled, print_it_catch_assert)
9801 (print_one_catch_assert, print_mention_catch_assert)
9802 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
9803 (ada_get_next_arg, catch_ada_exception_command_split)
9804 (ada_exception_sym_name, ada_exception_sym_name)
9805 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
9806 (ada_parse_catchpoint_condition, ada_exception_sal)
9807 (ada_decode_exception_location)
9808 (ada_decode_assert_location): New function.
9809 (catch_exception_unhandled_breakpoint_ops): New global variable.
9810 (catch_assert_breakpoint_ops): New global variable.
9811 * breakpoint.c: Add include of ada-lang.h.
9812 (print_one_breakpoint): Do not print the condition for Ada
9813 exception catchpoints.
9814 (create_ada_exception_breakpoint): New function.
9815 (catch_ada_exception_command, catch_assert_command): New function.
9816 (catch_command_1): Add support for the new "catch exception" and
9817 "catch assert" commands.
9818 (_initialize_breakpoint): Add help description for the new catch
9820 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
9822 (breakpoint.o): Add dependency on ada-lang.h.
9824 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
9826 * coffread.c (cs_to_section): If bfd_section is found, always
9827 return its section index.
9828 (coff_symtab_read): Determine the minimal_symbol_type using the
9831 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9832 Daniel Jacobowitz <dan@codesourcery.com>
9834 * Makefile.in (top.o): Update.
9835 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
9836 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
9837 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
9839 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
9841 2007-01-03 Mark Kettenis <kettenis@gnu.org>
9843 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
9844 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
9846 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
9848 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
9849 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
9850 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
9851 greater than or equal to zero.
9852 * m2-typeprint.c (m2_array): Likewise.
9853 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
9854 * gdbtypes.c (copy_type_recursive): Correct == typo.
9855 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
9856 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
9858 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
9859 (default_macro_scope): Remove unused variable.
9860 * prologue-value.h (pv_area_find_reg): Don't name an argument
9862 * remote-fileio.c (remote_fio_func_map): Add missing braces.
9863 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
9865 (cleanup_sigint_signal_handler): Remove casts.
9866 * valprint.c (val_print): Use a volatile local for the modified
9868 * varobj.c (languages): Remove extra array dimension.
9869 (varobj_create): Correct access to languages array.
9870 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
9872 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
9873 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
9874 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
9875 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
9876 (mi_cmd_data_write_memory): Likewise.
9877 * signals/signals.c (target_signal_to_string): Cast to int before
9879 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
9882 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
9884 * NEWS: Mention pointer to member improvements.
9885 * Makefile.in (gnu-v3-abi.o): Delete special rule.
9886 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
9887 * ada-valprint.c (ada_print_scalar): Update for new type codes.
9888 * c-typeprint.c (c_print_type): Update for new type codes.
9889 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
9890 (c_type_print_base): Likewise.
9891 (c_type_print_args): Rewrite.
9892 * c-valprint.c (c_val_print): Update for new type codes. Remove
9893 support for references to members. Treat methods like functions.
9894 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
9895 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
9896 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
9897 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
9898 (struct cp_abi_ops): Add corresponding members.
9899 * cp-valprint.c (cp_print_class_method): Delete.
9900 (cp_find_class_member): New function.
9901 (cp_print_class_member): Use it. Simplify support for bogus
9903 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
9904 lookup_methodptr_type.
9905 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
9906 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
9907 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
9909 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
9910 references returned by user defined operators.
9911 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
9912 (f_type_print_varspec_suffix): Remove support for member pointers.
9913 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
9915 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
9916 (lookup_methodptr_type): New.
9917 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
9918 (recursive_dump_type): Update for new types.
9919 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
9920 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
9921 (lookup_memberptr_type, lookup_methodptr_type)
9922 (smash_to_memberptr_type): New prototypes.
9923 (smash_to_method_type): Formatting fix.
9924 (lookup_member_type, smash_to_member_type): Delete prototypes.
9925 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
9926 Do not rely on debug information for the vptr or the method's
9927 enclosing type. Handle function descriptors for IA64.
9928 (gnuv3_virtual_fn_field): Rewrite using the new functions.
9929 (gnuv3_find_method_in, gnuv3_print_method_ptr)
9930 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
9931 (gnuv3_method_ptr_to_value): New.
9932 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
9933 * hpread.c (hpread_type_lookup): Update for new types.
9934 * infcall.c (value_arg_coerce): Likewise.
9935 * m2-typeprint.c (m2_print_type): Remove explicit support
9936 for member pointers.
9937 * m2-valprint.c (m2_val_print): Likewise.
9938 * p-typeprint.c (pascal_type_print_varspec_prefix)
9939 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
9940 * p-valprint.c (pascal_val_print): Likewise.
9941 (pascal_object_print_class_method, pascal_object_print_class_member):
9943 * p-lang.h (pascal_object_print_class_method)
9944 (pascal_object_print_class_member): Delete prototypes.
9945 * stabsread.c (read_type): Update for new types.
9946 * typeprint.c (print_type_scalar): Likewise.
9947 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
9948 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
9949 argument. Construct a pointer to member if the address of a
9950 function or data member is requested.
9951 (value_cast_pointers): Don't modify the input value.
9952 (value_cast): Adjust pointer to member handling for new types.
9953 Allow null pointer to member constants. Don't modify the input
9955 (value_ind): Remove pointer to member check. Handle function
9956 descriptors for function pointers.
9957 (value_struct_elt, value_find_oload_method_list, check_field):
9958 Remove pointer to member checks.
9959 * value.c (unpack_long): Allow pointers to data members.
9960 (value_from_longest): Allow member pointers.
9961 * value.h (value_aggregate_elt): Add want_address.
9962 * varobj.c (c_variable_editable): Remove check for members.
9963 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
9964 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
9966 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
9967 * c-lang.h (cp_print_class_method): Delete prototype.
9968 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
9969 * mips-tdep.c (mips_gdbarch_init): Likewise.
9970 * gdbarch.c, gdbarch.h: Regenerated.
9972 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9974 * rs6000-tdep.c (rs6000_use_struct_convention)
9975 (rs6000_extract_return_value, rs6000_store_return_value)
9976 (rs6000_extract_struct_value_address): Remove.
9977 (rs6000_return_value): New function.
9978 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
9979 store_return_value, deprecated_extract_struct_value_address and
9980 deprecated_use_struct_convention. Use rs6000_return_value
9983 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
9985 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
9986 -display-disable, -display-enable, -display-insert and
9989 2007-01-01 Joel Brobecker <brobecker@adacore.com>
9991 * breakpoint.c (remove_breakpoint): Remove dead code.
9993 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
9995 * varobj.c: Include block.h.
9996 (c_value_of_root): Check scope within nested statements.
9998 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10000 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
10001 regcache_cooked_write_signed instead of
10002 deprecated_write_register_bytes.
10004 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10006 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
10008 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10010 Followed the Start of New Year Procedure:
10011 * ChangeLog-2006: New file, containing all the entries for 2006.
10012 * ChangeLog: Removed all 2006 entries, and changed the reference
10013 to the previous ChangeLog to point to ChangeLog 2006.
10014 * top.c (print_gdb_version): Update copyright year.
10016 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10018 * Makefile.in (remote-sds.o): Remove.
10019 * remote-sds.c: Delete.
10021 For older changes see ChangeLog-2006.
10027 version-control: never