1 2007-12-04 Jim Blandy <jimb@codesourcery.com>
3 Support lexical blocks and function bodies that occupy
4 non-contiguous address ranges.
5 * addrmap.c, addrmap.h: New files.
6 * block.h (struct addrmap): New forward declaration.
7 (struct blockvector): New member, 'map'.
8 (BLOCKVECTOR_MAP): New accessor macro.
9 * block.c: #include "addrmap.h"
10 (blockvector_for_pc_sect): If the blockvector we've found has
11 an address map, use it instead of searching the blocks.
12 * buildsym.c: #include "addrmap.h"
13 (pending_addrmap_obstack, pending_addrmap_interesting): New static
15 (really_free_pendings): If we have a pending addrmap, free it too.
16 (record_block_range): New function.
17 (make_blockvector): If we have an interesting pending addrmap,
18 record it in the new blockvector.
19 (start_symtab, buildsym_init): Assert that there is no pending
20 addrmap now; we should have cleaned up any addrmaps we'd built
22 (end_symtab): If there is a pending addrmap left over that didn't
23 get included in the blockvector, free it.
24 * buildsym.h (struct addrmap): New forward declaration.
25 (record_block_range): New prototype.
26 * objfiles.c: #include "addrmap.h".
27 (objfile_relocate): Relocate the blockvector's address map, if
29 * dwarf2read.c (dwarf2_record_block_ranges): New function.
30 (read_func_scope, read_lexical_block_scope): Call it.
31 * Makefile.in (SFILES): Add addrmap.c.
32 (addrmap_h): New header dependency variable.
33 (COMMON_OBS): Add addrmap.o.
34 (addrmap.o): New rule.l
35 (block.o, objfiles.o, buildsym.o): Depend on $(addrmap_h).
37 * block.c (blockvector_for_pc, blockvector_for_pc_sect): Return a
38 pointer to the block, not its index in the blockvector.
39 (block_for_pc_sect): Use the returned block, instead of looking it
41 * block.h (blockvector_for_pc, blockvector_for_pc_sect): Update
43 * breakpoint.c (resolve_sal_pc): Use returned block, instead of
44 looking it up ourselves.
45 * stack.c (print_frame_label_vars): Disable function, which
46 depends on the block's index.
48 * buildsym.c (finish_block): Return the block we've built.
49 * buildsym.h (finish_block): Update prototype.
51 * defs.h (CORE_ADDR_MAX): New constant.
53 2007-12-04 Ulrich Weigand <uweigand@de.ibm.com>
55 * coffread.c (decode_type): Use builtin_type_int32 instead
56 of FT_INTEGER fundamental type for array range index type.
57 (decode_base_type): Use builtin types of current_gdbarch
58 instead of fundamental types.
60 * dwarf2read.c (struct dwarf2_cu): Remove ftypes member.
61 (read_file_scope): Do not initialize ftypes member.
62 (dwarf_base_type, dwarf2_fundamental_types): Remove functions.
63 (read_array_type): Use builtin_type_int32 instead of FT_INTEGER
64 fundamental type for array range index type.
65 (read_tag_string_type): Likewise for string range index type.
66 Also, do not overwrite FT_CHAR type with new string type.
67 (read_base_type): If DW_AT_name is missing, create unnamed type
68 with given properties instead of looking for a fundamental type.
69 Create new types as TYPE_TARGET_TYPE for DW_ATE_address and
70 DW_ATE_complex_float types.
71 (read_subrange_type): Create new type to represent missing
72 DW_AT_type instead of looking for a fundamental type.
73 (die_type): Use builtin type to represent "void" instead of
74 looking for a fundamental type.
76 * stabsread.c (define_symbol): Use builtin types to represent
77 'r' and 'i' floating-point and integer constants.
79 * gdbtypes.c (lookup_fundamental_type): Remove.
80 * gdbtypes.h (lookup_fundamental_type): Remove prototype.
81 (FT_VOID, FT_BOOLEAN, FT_CHAR, FT_SIGNED_CHAR, FT_UNSIGNED_CHAR,
82 FT_SHORT, FT_SIGNED_SHORT, FT_UNSIGNED_SHORT, FT_INTEGER,
83 FT_SIGNED_INTEGER, FT_UNSIGNED_INTEGER, FT_LONG, FT_SIGNED_LONG,
84 FT_UNSIGNED_LONG, FT_LONG_LONG, FT_SIGNED_LONG_LONG,
85 FT_UNSIGNED_LONG_LONG, FT_FLOAT, FT_DBL_PREC_FLOAT, FT_EXT_PREC_FLOAT,
86 FT_COMPLEX, FT_DBL_PREC_COMPLEX, FT_EXT_PREC_COMPLEX, FT_STRING,
87 FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL, FT_BYTE, FT_UNSIGNED_BYTE,
88 FT_TEMPLATE_ARG, FT_DECFLOAT, FT_DBL_PREC_DECFLOAT,
89 FT_EXT_PREC_DECFLOAT, FT_NUM_MEMBERS): Remove macros.
90 * objfiles.c (struct objfile): Remove fundamental_types member.
91 * symfile.c (reread_symbols): Do not clear fundamental_types.
93 * language.h (struct language_defn): Remove la_fund_type member.
94 (create_fundamental_type): Remove.
95 * language.c (unk_lang_create_fundamental_type): Remove.
96 (unknown_language_defn, auto_language_defn,
97 local_language_defn): Adapt initializer.
98 * ada-lang.c (ada_create_fundamental_type): Remove.
99 (ada_language_defn): Adapt initializer.
100 * c-lang.h (c_create_fundamental_type): Remove prototype.
101 * c-lang.c (c_create_fundamental_type): Remove.
102 (c_language_defn, cplus_language_defn, asm_language_defn,
103 minimal_language_defn): Adapt initializer.
104 * f-lang.c (f_create_fundamental_type): Remove.
105 (f_language_defn): Adapt initializer.
106 * jv-lang.c (java_create_fundamental_type): Remove.
107 (java_language_defn): Adapt initializer.
108 * m2-lang.c (m2_create_fundamental_type): Remove.
109 (m2_language_defn): Adapt initializer.
110 * objc-lang.c (objc_create_fundamental_type): Remove.
111 (objc_language_defn): Adapt initializer.
112 * p-lang.h (pascal_create_fundamental_type): Remove prototype.
113 * p-lang.c (pascal_create_fundamental_type): Remove.
114 (pascal_language_defn): Adapt initializer.
115 * scm-lang.c (scm_language_defn): Adapt initializer.
117 2007-12-04 Maciej W. Rozycki <macro@mips.com>
119 * features/mips-cpu.xml: Specify "regnum" for "r0" explicitly.
120 * features/mips64-cpu.xml: Likewise.
121 * features/mips-fpu.xml: Specify "regnum" for "f0" explicitly.
122 * features/mips64-fpu.xml: Likewise.
123 * features/mips-linux.c: Regenerate.
124 * features/mips64-linux.c: Regenerate.
126 2007-12-04 Maciej W. Rozycki <macro@mips.com>
128 * target.h (target_find_new_threads): Fix definition.
130 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
132 * win32-nat.c (win32_resume): Set the trace bit
133 in the thread identified by inferior_ptid.
136 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
138 * win32-nat.c (open_process_used): New static variable.
139 (win32_init_thread_list): Remove call to CloseHandle for thread.
140 (win32_delete_thread): Ditto.
141 (fake_create_process): Set open_process_used if OpenProcess call is
143 (get_win32_debug_event): Do not close process handle.
144 (do_initial_win32_stuff): Set open_process_used to zero.
145 (win32_mourn_inferior): Call CloseHandle for current_process_handle if
146 open_process_used is set.
147 (win32_kill_inferior): Do not close process and main_thread handles.
149 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
151 * remote.c (remote_cmdlist): New variable.
152 (PACKET_vFile_open, PACKET_vFile_pread, PACKET_vFile_pwrite)
153 (PACKET_vFile_close, PACKET_vFile_unlink): New constants.
154 (remote_buffer_add_string, remote_buffer_add_bytes)
155 (remote_buffer_add_int, remote_hostio_parse_result)
156 (remote_hostio_send_command, remote_hostio_open, remote_hostio_pwrite)
157 (remote_hostio_pread, remote_hostio_close, remote_hostio_unlink)
158 (remote_fileio_errno_to_host, remote_hostio_error, fclose_cleanup)
159 (remote_hostio_close_cleanup, remote_file_put, remote_file_get)
160 (remote_file_delete, remote_put_command, remote_get_command)
161 (remote_delete_command, remote_command): New functions.
162 (_initialize_remote): Register new packets and commands.
163 * Makefile.in (gdb_fileio_h): New variable.
165 (SUBDIR_MI_OBS): Add mi-cmd-target.o.
166 (SUBDIR_MI_SRCS): Add mi/mi-cmd-target.c.
167 (mi-cmd-target.o): New rule.
168 * mi/mi-cmd-target.c: New file.
169 * mi/mi-cmds.c (mi_cmds): Add target-file-delete, target-file-get,
171 * mi/mi-cmds.h (mi_cmd_target_file_get, mi_cmd_target_file_put)
172 (mi_cmd_target_file_delete): Declare.
173 * remote.h (remote_file_put, remote_file_get, remote_file_delete):
175 * NEWS: Describe new file transfer support.
177 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
179 * infrun.c (handle_inferior_event): Don't
180 ignore beakpoints if trap_expected is set.
182 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
184 Make insert_breakpoints return void.
185 * breakpoint.h (insert_breakpoints): Change
187 * breakpoint.c (insert_breakpoints): Change
188 return type to void. Rename local return_val
190 * infrun.c (keep_going): Instead of checking
191 return value from insert_breakpoints, catch exception.
193 2007-11-29 Vladimir Prus <vladimir@codesourcery.com>
195 Stop infrun from tracking breakpoint insertion status.
197 The checks of breakpoints_inserted before calling
198 remove_breakpoints are removed, as remove_breakpoint
199 won't touch uninserted breakpoints. In a number of places,
200 we're interested if a breakpoint is inserted at particular
201 PC, and we now use breakpoint_inserted_here_p. In a few
202 places, insert_breakpoints can be called unconditionally,
203 since it won't try to insert already inserted breakpoint.
205 * breakpoint.h (regular_breakpoint_inserted_here_p): New
207 * breakpoint.c (regular_breakpoint_inserted_here_p): New.
208 (breakpoint_inserted_here_p): Use
209 regular_breakpoint_inserted_here_p.
210 * infrun.c (breakpoints_inserted): Remove.
211 (resume): Don't check for breakpoints_inserted before
212 remove_hw_watchpoints. Use breakpoint_inserted_here_p.
213 (proceed, init_wait_for_inferior): Don't set breakpoints_inserted.
214 (handle_inferior_event): Don't use breakpoints_inserted.
215 Use breakpoints_meant_to_be_inserted and
216 breakpoints_inserted_here_p.
217 (insert_step_resume_breakpoint_at_sal, keep_going): Use
218 breakpoints_meant_to_be_inserted. Don't set breakpoints_inserted.
219 (normal_stop): Don't check for breakpoints_inserted. Don't
220 set breakpoints_inserted.
221 (keep_going): Don't check for breakpoints_inserted.
222 (insert_step_resume_breakpoint_at_sal): Don't insert
225 2007-11-28 Jim Blandy <jimb@codesourcery.com>
227 * breakpoint.c (watch_command_1): When the watchpoint isn't local
228 to any frame, initialize watchpoint_frame using null_frame_id, not
231 2007-11-28 Vladimir Prus <vladimir@codesourcery.com>
233 * infrun.c (resume): Set right thread even if
234 stepping over breakpoint using software single step.
236 2007-11-28 Nick Roberts <nickrob@snap.net.nz>
238 * mi/mi-cmd-var.c (print_varobj): Revert change from 2007-08-31.
239 (mi_print_value_p): Guard against type = NULL.
241 2007-11-27 Thiago Jung Bauermann <bauerman@br.ibm.com>
243 * dfp.c (decimal_from_string): Remove superfluous newline from
245 (decimal_to_string): Likewise.
246 * printcmd.c (printf_command): Change string buffer to use
247 MAX_DECIMAL_STRING constant.
248 * value.c (value_from_decfloat): Likewise.
250 2007-11-27 Ulrich Weigand <uweigand@de.ibm.com>
252 * Makefile.in (ALL_TARGET_OBS): Remove object files that require
253 64-bit CORE_ADDR and BFD support, move them to ...
254 (ALL_64_TARGET_OBS): ... this new variable.
255 * configure.ac: Check for --enable-64-bit-bfd option. Only add
256 64-bit targets with --enable-targets=all if BFD supports 64-bit.
257 * configure: Regenerate.
259 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Do not claim
260 all elf32-i386 executables, only cygwin core files.
262 2007-11-25 Jan Kratochvil <jan.kratochvil@redhat.com>
264 * dwarf2read.c (dwarf2_get_pc_bounds): Moved the `DW_AT_ranges' parsing
265 code with its variables OBJFILE, CU_HEADER and OBFD into ...
266 (dwarf2_ranges_read): ... a new function.
267 (read_partial_die): Implemented the parsing of `DW_AT_ranges'.
269 2007-11-24 Pedro Alves <pedro_alves@portugalmail.pt>
271 * win32-nat.c (DR6_CLEAR_VALUE): New define.
272 (thread_info_struct): Rename suspend_count to suspended, to be
274 (thread_rec): Only suspend the thread if it wasn't suspended by
275 gdb before. Warn if suspending failed.
276 (win32_add_thread): Set Dr6 to DR6_CLEAR_VALUE.
277 (win32_continue): Set Dr6 to DR6_CLEAR_VALUE. Update usage of the
278 `suspended' flag. Do ContinueDebugEvent after resuming the
279 suspended threads, not before. Set threads' contexts before
280 resuming them, not after.
281 (win32_resume): Set Dr6 to DR6_CLEAR_VALUE.
283 2007-11-23 Vladimir Prus <vladimir@codesourcery.com>
285 * breakpoint.c (insert_breakpoints)
286 (insert_bp_location): Remove stale comments.
288 2007-11-23 Maciej W. Rozycki <macro@mips.com>
290 * mips-linux-tdep.h: Fix some formatting.
292 2007-11-21 Markus Deuling <deuling@de.ibm.com>
294 * stack.c (print_args_stub): Use get_frame_arch to get at the current
295 architecture and replace current_gdbarch.
296 (frame_info): Likewise.
298 2007-11-21 Nick Roberts <nickrob@snap.net.nz>
300 * varobj.c (c_variable_editable, cplus_variable_editable)
301 (java_variable_editable, variable_editable): Delete.
302 (varobj_editable_p): Replace above functions with one language
303 independent function. Check for an lvalue.
304 (varobj_get_attributes, varobj_set_value): Use varobj_editable_p.
305 (struct language_specific): Delete variable_editable field.
307 * mi-cmd-var.c (mi_cmd_var_assign): Simplify.
309 * varobj.h: Add extern for varobj_editable_p.
311 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
313 Remove unused breakpoint fields.
314 * breakpoint.h (struct breakpoint): Remove
315 from_tty and flag fields.
316 * breakpoint.c (break_command_1): Don't set
317 from_tty and flag field set of breakpoint.
318 (create_ada_exception_breakpoint): Don't set
321 2007-11-20 David Ung <davidu@mips.com>
322 Maciej W. Rozycki <macro@mips.com>
324 * mips-tdep.c (mips16_scan_prologue): Handle the MIPS16e SAVE
327 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
329 * infrun.c (resume): Clarify logic that
330 decides if a single thread must be resumed. Add
333 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
335 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
338 2007-11-19 Markus Deuling <deuling@de.ibm.com>
340 * gdbarch.sh (register_sim_regno): Add gdbarch as parameter.
341 * gdbarch.{c,h}: Regenerate.
343 * arch-utils.h (legacy_register_sim_regno): Add gdbarch as parameter.
344 * score-tdep.c (score_register_sim_regno): Likewise.
345 * sim-regno.h (one2one_register_sim_regno): Likewise.
347 * arch-utils.c (legacy_register_sim_regno): Add gdbarch as parameter.
348 Replace current_gdbarch by gdbarch.
349 * sh-tdep.c (sh_sh2a_register_sim_regno)
350 (sh_dsp_register_sim_regno): Likewise.
351 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
352 * mips-tdep.c (mips_register_sim_regno): Likewise.
353 * m32c-tdep.c (m32c_register_sim_regno): Likewise.
354 * frv-tdep.c (frv_register_sim_regno): Likewise.
355 * arm-tdep.c (arm_register_sim_regno): Likewise.
356 * remote-sim.c (one2one_register_sim_regno): Likewise.
358 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
360 * configure.ac (--enable-targets): New configure option.
361 Collect gdb_target_obs of multiple targets into TARGET_OBS.
362 Call configure.tgt multiple times, using $targ as operand.
363 * configure.tgt: Operate on $targ instead of $target.
364 * configure: Regenerate.
365 * Makefile.in (ALL_TARGET_OBS): Define.
367 * NEWS: Mention --enable-targets option.
369 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
371 * mips-tdep.c (show_mipsfpu_command): Do not crash if called when
372 current architecture is not MIPS.
374 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
376 * cli/cli-setshow.c (do_setshow_command): Use dynamically sized buffer
377 to construct error message if no argument was supplied.
379 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
381 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Remove.
382 (i386nbsd_aout_regset_from_core_section): Likewise.
383 (i386nbsd_aout_init_abi): Likewise.
384 (_initialize_i386nbsd_tdep): Do not register i386nbsd_aout_init_abi.
386 * vaxnbsd-tdep.c (vaxnbsd_aout_init_abi): Remove.
387 (_initialize_vaxnbsd_tdep): Do not register vaxnbsd_aout_init_abi.
389 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
391 * amd64fsdb-tdep.c (amd64fbsd_sigtramp_start_addr): Use ULL suffix.
392 (amd64fbsd_sigtramp_end_addr): Likewise.
394 * iq2000-tdep.c (iq2000_pointer_to_address): Fix argument type.
395 (iq2000_address_to_pointer): Likewise.
396 (iq2000_frame_prev_register): Likewise.
397 (iq2000_extract_return_value): Use regcache_cooked_read_unsigned
398 instead of regcache_cooked_read into CORE_ADDR variable.
399 (iq2000_return_value): Fix argument types.
401 * m32r-rom.c (m32r_load_section): Fix printf argument type.
402 (m32r_load): Likewise.
404 * m68kbsd-tdep.c: Include "gdbtypes.h".
405 * Makefile.in: Update dependencies.
407 * mn10300-tdep.c (mn10300_frame_unwind_cache): Fix aliasing violation.
409 * nto-tdep.c (LM_ADDR): Do not refer to no-longer-existing
410 lmo->l_addr_size element.
412 * remote-m32r-sdi.c (m32r_xfer_memory): Use paddr to print address.
413 (m32r_insert_breakpoint): Likewise.
414 (m32r_remove_breakpoint): Likewise.
415 (m32r_insert_watchpoint): Likewise.
416 (m32r_remove_watchpoint): Likewise.
417 (m32r_load): Fix printf argument type.
419 * xtensa-tdep.c (xtensa_regset_from_core_section): Fix printf
421 (xtensa_frame_this_id): Do not cast pointers to "int" for output.
422 (xtensa_frame_prev_register): Likewise.
423 (xtensa_push_dummy_call): Likewise.
425 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
427 * config/alpha/alpha-linux.mt: Remove file.
428 * config/alpha/alpha.mt: Remove file.
429 * config/alpha/alpha-osf1.mt: Remove file.
430 * config/alpha/fbsd.mt: Remove file.
431 * config/alpha/nbsd.mt: Remove file.
432 * config/alpha/obsd.mt: Remove file.
433 * config/arm/embed.mt: Remove file.
434 * config/arm/linux.mt: Remove file.
435 * config/arm/nbsd.mt: Remove file.
436 * config/arm/obsd.mt: Remove file.
437 * config/arm/wince.mt: Remove file.
438 * config/avr/avr.mt: Remove file.
439 * config/cris/cris.mt: Remove file.
440 * config/frv/frv.mt: Remove file.
441 * config/h8300/h8300.mt: Remove file.
442 * config/i386/cygwin.mt: Remove file.
443 * config/i386/fbsd64.mt: Remove file.
444 * config/i386/fbsd.mt: Remove file.
445 * config/i386/i386gnu.mt: Remove file.
446 * config/i386/i386.mt: Remove file.
447 * config/i386/i386sol2.mt: Remove file.
448 * config/i386/linux64.mt: Remove file.
449 * config/i386/linux.mt: Remove file.
450 * config/i386/mingw.mt: Remove file.
451 * config/i386/nbsd64.mt: Remove file.
452 * config/i386/nbsd.mt: Remove file.
453 * config/i386/nto.mt: Remove file.
454 * config/i386/obsd64.mt: Remove file.
455 * config/i386/obsd.mt: Remove file.
456 * config/i386/sol2-64.mt: Remove file.
457 * config/ia64/ia64.mt: Remove file.
458 * config/ia64/linux.mt: Remove file.
459 * config/iq2000/iq2000.mt: Remove file.
460 * config/m32c/m32c.mt: Remove file.
461 * config/m32r/linux.mt: Remove file.
462 * config/m32r/m32r.mt: Remove file.
463 * config/m68hc11/m68hc11.mt: Remove file.
464 * config/m68k/linux.mt: Remove file.
465 * config/m68k/monitor.mt: Remove file.
466 * config/m68k/nbsd.mt: Remove file.
467 * config/m68k/obsd.mt: Remove file.
468 * config/m88k/obsd.mt: Remove file.
469 * config/mep/mep.mt: Remove file.
470 * config/mips/embed.mt: Remove file.
471 * config/mips/irix5.mt: Remove file.
472 * config/mips/irix6.mt: Remove file.
473 * config/mips/linux.mt: Remove file.
474 * config/mips/nbsd.mt: Remove file.
475 * config/mips/obsd64.mt: Remove file.
476 * config/mn10300/linux.mt: Remove file.
477 * config/mn10300/mn10300.mt: Remove file.
478 * config/mt/mt.mt: Remove file.
479 * config/pa/hppahpux.mt: Remove file.
480 * config/pa/hppa.mt: Remove file.
481 * config/pa/linux.mt: Remove file.
482 * config/pa/obsd.mt: Remove file.
483 * config/powerpc/aix.mt: Remove file.
484 * config/powerpc/linux.mt: Remove file.
485 * config/powerpc/nbsd.mt: Remove file.
486 * config/powerpc/obsd.mt: Remove file.
487 * config/powerpc/ppc-eabi.mt: Remove file.
488 * config/s390/s390.mt: Remove file.
489 * config/score/embed.mt: Remove file.
490 * config/sh/embed.mt: Remove file.
491 * config/sh/linux.mt: Remove file.
492 * config/sh/nbsd.mt: Remove file.
493 * config/sh/obsd.mt: Remove file.
494 * config/sh/sh64.mt: Remove file.
495 * config/sparc/embed.mt: Remove file.
496 * config/sparc/fbsd.mt: Remove file.
497 * config/sparc/linux64.mt: Remove file.
498 * config/sparc/linux.mt: Remove file.
499 * config/sparc/nbsd64.mt: Remove file.
500 * config/sparc/nbsd.mt: Remove file.
501 * config/sparc/obsd64.mt: Remove file.
502 * config/sparc/obsd.mt: Remove file.
503 * config/sparc/sol2-64.mt: Remove file.
504 * config/sparc/sol2.mt: Remove file.
505 * config/sparc/sparc64.mt: Remove file.
506 * config/sparc/sparc.mt: Remove file.
507 * config/spu/spu.mt: Remove file.
508 * config/v850/v850.mt: Remove file.
509 * config/vax/nbsd.mt: Remove file.
510 * config/vax/obsd.mt: Remove file.
511 * config/vax/vax.mt: Remove file.
512 * config/xstormy16/xstormy16.mt: Remove file.
513 * config/xtensa/xtensa.mt: Remove file.
515 * configure.tgt (gdb_target_cpu): Remove. Do not set anywhere.
516 (gdb_target): Likewise.
517 (gdb_target_obs): Document. Set for every target to contents
518 of TDEPFILES in former .mt makefile fragment.
520 * configure.ac (TARGET_OBS): Define.
521 (target_makefile_frag, gdb_target_cpu): Do not define.
522 * configure: Regenerate.
524 * Makefile.in (MT_FLAGS): Remove.
525 (GLOBAL_CFLAGS): Update.
526 (TARGET_OBS): Substitute from configure.
527 (DEPFILES): Remove TDEPFILES, add TARGET_OBS.
528 (@target_makefile_frag@): Remove.
530 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
532 * config/arm/embed.mt (SIM_OBS, SIM): Remove.
533 * config/avr/avr.mt (SIM_OBS, SIM): Remove.
534 * config/frv/frv.mt (SIM_OBS, SIM): Remove.
535 * config/h8300/h8300.mt (SIM_OBS, SIM): Remove.
536 * config/iq2000/iq2000.mt (SIM_OBS, SIM): Remove.
537 * config/m32c/m32c.mt (SIM_OBS, SIM): Remove.
538 * config/m32r/linux.mt (SIM_OBS, SIM): Remove.
539 * config/m32r/m32r.mt (SIM_OBS, SIM): Remove.
540 * config/m68hc11/m68hc11.mt (SIM_OBS, SIM): Remove.
541 * config/mips/embed.mt (SIM_OBS, SIM): Remove.
542 * config/mips/linux.mt (SIM_OBS, SIM): Remove.
543 * config/mips/nbsd.mt (SIM_OBS, SIM): Remove.
544 * config/mn10300/mn10300.mt (SIM_OBS, SIM): Remove.
545 * config/powerpc/linux.mt (SIM_OBS, SIM): Remove.
546 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Remove.
547 * config/powerpc/ppc-sim.mt: Remove file.
548 * config/sh/embed.mt (SIM_OBS, SIM): Remove.
549 * config/sh/linux.mt (SIM_OBS, SIM): Remove.
550 * config/sh/nbsd.mt (SIM_OBS, SIM): Remove.
551 * config/sh/sh64.mt (SIM_OBS, SIM): Remove.
552 * config/sparc/embed.mt (SIM_OBS, SIM): Remove.
553 * config/v850/v850.mt (SIM_OBS, SIM): Remove.
554 * config/xstormy16/xstormy16.mt (SIM_OBS, SIM): Remove.
556 * configure.tgt (gdb_sim): Document variable.
557 (arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*): Set it.
560 (h8300-*-*): Likewise.
561 (iq2000-*-*): Likewise.
562 (m32c-*-*): Likewise.
563 (m32r*-*-linux*): Likewise.
564 (m32r*-*-*): Likewise.
565 (m68hc11*-*-*|m6811*-*-*): Likewise.
566 (mips*-*-*): Likewise.
567 (mips*-*-linux*): Likewise.
568 (mips*-*-netbsd* | mips*-*-knetbsd*-gnu): Likewise.
569 (mn10300-*-*): Likewise.
570 (powerpc-*-linux* | powerpc64-*-linux*): Likewise.
571 (powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu): Likewise.
572 (powerpc*-*-*): Use ppc-eabi target. Conditionally set gdb_sim.
574 (sh-*-linux*): Likewise.
575 (sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu): Likewise.
576 (sh64-*-elf*): Likewise.
577 (sparc-*-rtems*): Likewise.
578 (v850*-*-elf): Likewise.
579 (xstormy16-*-*): Likewise.
581 * configure.ac (IGNORE_SIM, IGNORE_SIM_OBS): Do not set.
582 (SIM, SIM_OBS): Set depending on ${ignore_sim} and ${gdb_sim}.
583 * configure: Regenerate.
584 * Makefile.in (SIM, SIM_OBS): Substitute from configure.
585 (@IGNORE_SIM@, @IGNORE_SIM_OBS@): Remove.
587 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
589 * configure.tgt (gdb_osabi, build_gdbserver): Comment variables.
590 (arm*-*-*): Do not set obsolete build_rdi_share variable.
592 (*-*-freebsd* | *-*-kfreebsd*-gnu): Remove generic case, replace by ...
593 (alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
594 (i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
595 (sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu): ... specific cases.
596 (x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu): Re-sort.
598 (xscale-*-*): Merge into arm*-*-* case.
599 (fido-*-elf*): Merge into m68*-*-elf* case.
600 (m68*-*-aout*, m68*-*-coff*, m68*-*-elf*, m68*-*-rtems*,
601 m68*-*-uclinux*): Merge cases.
602 (powerpc-*-linux*, powerpc64-*-linux*): Merge cases.
603 (sh-*-coff*, sh-*-elf*): Merge into sh* case.
605 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
607 * configure.tgt: Reformat main case statement.
609 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
611 * configure.ac (hostfile, targetfile): Remove.
612 (GDB_XM_FILE, GDB_TM_FILE): Do not define.
613 (xm_h, tm_h): Likewise.
614 (DEPRECATED_TM_FILE, XM_FILE): Do not substitute into Makefile.
615 * configure, config.in: Regenerate.
617 * Makefile.in (xm_h, tm_h): Remove. Update dependencies.
618 (TAGS): Do not consider DEPRECATED_TM_FILE or XM_FILE.
619 (clean, local-maintainer-clean): Do not remove xm.h or tm.h.
620 * defs.h: Do not include "xm.h" or "tm.h".
622 * gdbarch.sh (verify_gdbarch): Do not dump GDB_XM_FILE or GDB_TM_FILE.
623 * gdbarch.c: Regenerate.
625 * config/score/embed.mt: Remove obsolete comment.
627 2007-11-16 Markus Deuling <deuling@de.ibm.com>
629 * gdbarch.sh (cannot_fetch_register, cannot_store_register): Add gdbarch
631 * gdbarch.{c,h}: Regenerate.
633 * alpha-tdep.c (alpha_cannot_fetch_register)
634 (alpha_cannot_store_register): Add gdbarch as parameter. Replace
635 current_gdbarch by gdbarch.
636 * cris-tdep.c (cris_cannot_fetch_register, cris_cannot_store_register)
637 (crisv32_cannot_fetch_register)
638 (crisv32_cannot_store_register): Likewise.
639 * arch-utils.c (cannot_register_not): Likewise.
640 * arch-utils.h (cannot_register_not): Likewise.
641 * hppa-tdep.c (hppa32_cannot_store_register)
642 (hppa32_cannot_store_register, hppa64_cannot_store_register)
643 (hppa64_cannot_fetch_register): Likewise.
644 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
645 (mipsnbsd_cannot_store_register): Likewise.
647 2007-11-16 Markus Deuling <deuling@de.ibm.com>
649 * m32r-rom.c (m32r_supply_register): Use get_regcache_arch to get at
650 the current architecture by regcache.
651 * ppcnbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
652 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
653 (fetch_register, supply_vrregset, fetch_ppc_registers)
654 (store_altivec_register, store_spe_register, store_register)
655 (fill_vrregset, store_ppc_registers): Likewise.
656 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
657 * win32-nat.c (do_win32_fetch_inferior_registers)
658 (do_win32_store_inferior_registers): Likewise.
659 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
660 * remote-m32r-sdi.c (m32r_fetch_registers)
661 (m32r_store_registers): Likewise.
662 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
664 * trad-frame.c (trad_frame_alloc_saved_regs): Replace current_gdbarch by
666 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
667 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
668 (do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call)
669 (ppc64_sysv_abi_return_value): Likewise.
670 * m32c-tdep.c (m32c_register_reggroup_p): Likewise.
671 * m2-lang.c (build_m2_types): Likewise.
672 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache
673 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
674 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
675 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
677 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Use get_frame_arch to
678 get at the current architecture by frame_info.
679 * gcore.c (derive_stack_segment): Likewise.
681 * shnbsd-nat.c (GETREGS_SUPPLIES): Add gdbarch parameter.
682 (shnbsd_fetch_inferior_registers, shnbsd_store_inferior_registers): Add
683 gdbarch to GETREGS_SUPPLIES call.
685 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
687 * elfread.c (ST_REGULAR, ST_DYNAMIC, ST_SYNTHETIC): New defines.
688 (elf_symtab_read): Rename DYNAMIC argument to TYPE. Do not access
689 ELF-private symbol data when processing synthetic symbols. Use
690 udata.p to get at size of ppc64 synthetic 'dot' symbols.
691 (elf_symfile_read): Pass TYPE argument to elf_symtab_read.
693 2007-11-15 Doug Evans <dje@google.com>
695 * buildsym.h (subfiles): Move ...
696 * buildsym.c (subfiles): ... to here and make static.
698 * symmisc.c (maintenance_info_symtabs): Print linetable info.
700 2007-11-15 Markus Deuling <deuling@de.ibm.com>
702 * mipsnbsd-tdep.h (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove
704 2007-11-15 Markus Deuling <deuling@de.ibm.com>
706 * arm-tdep.c (arm_prologue_this_id): Replace LOWEST_PC by its
707 expression and use get_frame_arch to replace current_gdbarch by frame's
709 * arm-tdep.h (LOWEST_PC): Remove
711 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
713 Apply const qualifier to some users of bp_location.
714 * breakpoint.h (struct bpstats): Make
715 the breakpoint_at field point at const bp_location.
716 * breakpoint.c (bpstat_alloc): Accept const
718 (breakpoint_here_p, breakpoint_inserted_here_p)
719 (software_breakpoint_inserted_here_p)
720 (breakpoint_thread_match, bpstat_stop_status)
721 (read_memory_nobpt, bpstat_have_active_hw_watchpoints): Use
722 const bp_location for iteration.
723 (print_it_typical, print_bp_stop_message): Use
724 const bp_location variable.
726 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
728 Make mark_breakpoints_out static.
729 * breakpoint.h (mark_breakpoints_out): Remove
731 * breakpoint.c (mark_breakpoints_out): Make static.
733 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
735 Prevent clear_command from directly modifying breakpoint list.
736 * Makefile.in (breakpoint_h): Update dependency.
737 * breakpoint.c (clear_command): Do not remove
738 breakpoints from breakpoint_chain. Collect breakpoints
739 to delete in a vector.
740 * breakpoint.h (breakpoint_p): New typedef for pointer to
741 breakpoint. Register vector of breakpoint_p.
743 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
745 Remove 'run_cleanup'.
746 * defs.h (do_run_cleanups, make_run_cleanup): Remove
748 * infcmd.c (run_command_1): Call clear_solib instead
750 * jv-lang.c (java_rerun_cleanup): Remove, for lack of
752 * solib.c (solib_cleanup_queued, do_clear_solib): Remove.
753 (update_solib_lib): Don't setup run cleanup.
754 (no_shared_libraries): Call clear_solib, not do_clear_solib.
755 * utils.c (run_cleanup_chain, make_run_cleanup)
756 (do_run_cleanups): Remove.
758 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
760 Remove CLEAR_SOLIB use.
761 * corelow.c (core_close): Don't check for CLEAR_SOLIB.
762 * infcmd.c (attach_command): Likewise.
764 2007-11-14 Doug Evans <dje@google.com>
766 * buildsym.c (start_subfile,start_symtab): Doc fixes.
768 2007-11-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
770 * tui/tui-data.c (tui_prev_win): Guard against NULL.
772 2007-11-12 Markus Deuling <deuling@de.ibm.com>
774 * gdbarch.sh (gdbarch_alloc): Replace current_gdbarch by gdbarch. Remove
776 (verify_gdbarch, gdbarch_dump): Likewise.
777 (do_read): Update comment.
778 (addr_bit, bfd_arch_info, target_desc, long_long_bit, floatformat)
779 (ptr_bit, name_of_malloc): Replace current_gdbarch by gdbarch.
780 * gdbarch.{c,h}: Regenerate.
782 2007-11-12 Markus Deuling <deuling@de.ibm.com>
784 * xtensa-tdep.c (ARG_1ST): Replace ARGS_FIRST_REG by its expression.
785 (ARGS_FIRST_REG): Remove.
786 (areg_numer): New function.
787 (xtensa_pseudo_register_read, xtensa_frame_prev_register)
788 (xtensa_extract_return_value, xtensa_store_return_value)
789 (xtensa_frame_cache): Replace AREG_NUMBER by areg_number.
790 (AREG_NUMBER): Remove.
791 (XTENSA_IS_ENTRY, ARG_NOF, ARG_1ST): Add gdbarch as parameter.
792 (xtensa_frame_cache): Update use of XTENSA_IS_ENTRY.
793 (xtensa_push_dummy_call): Update use of ARG_NOF.
794 (extract_call_winsize): Add gdbarch as parameter. Replace
795 current_gdbarch by gdbarch.
796 (xtensa_extract_return_value, xtensa_store_return_value): Update call
797 of extract_call_winsize.
799 2007-11-10 Joel Brobecker <brobecker@adacore.com>
801 * NEWS: Add entry for new set/show print frame-args command.
803 2007-11-09 Kevin Buettner <kevinb@redhat.com>
805 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add missing
806 register number to map. Adjust warning check and error/warning
807 return value code to match expectations of this function's callers.
809 2007-11-09 Joel Brobecker <brobecker@adacore.com>
811 * stack.c (print_this_frame_argument_p): Handle arguments passed
812 by reference properly.
814 2007-11-09 Joel Brobecker <brobecker@adacore.com>
816 * stack.c (print_frame_arguments_choices): New static global.
817 (print_frame_arguments): Likewise.
818 (print_this_frame_argument_p): New function.
819 (print_frame_args): Print the argument value only when appropriate.
820 (_initialize_task): Add new "set/show print frame-arguments" command.
822 2007-11-09 Luis Machado <luisgpm@br.ibm.com>
824 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move
825 saved_dabr_value assignment to the correct position.
827 2007-11-09 Markus Deuling <deuling@de.ibm.com>
829 * arch-utils.c (generic_convert_register_p): Add gdbarch as parameter.
830 * arch-utils.h (generic_convert_register_p): Likewise.
832 2007-11-09 Markus Deuling <deuling@de.ibm.com>
834 * gdbarch.sh (convert_register_p): Add gdbarch as parameter.
835 * ia64-tdep.c (ia64_convert_register_p): Likewise.
836 * i387-tdep.c (i387_convert_register_p): Likewise.
837 * i387-tdep.h (i387_convert_register_p): Likewise.
838 * alpha-tdep.c (alpha_convert_register_p): Likewise.
839 * gdbarch.{c,h}: Regenerate.
841 * rs6000-tdep.c (rs6000_convert_register_p): Add gdbarch as parameter.
842 Replace current_gdbarch by gdbarch.
843 * mips-tdep.c (mips_convert_register_p): Likewise.
844 * m68k-tdep.c (m68k_convert_register_p): Likewise.
845 * i386-tdep.c (i386_convert_register_p): Likewise.
847 2007-11-08 Aleksandar Ristovski <aristovski@qnx.com>
849 * gdb_string.h: Include <strings.h>.
851 2007-11-08 Vladimir Prus <vladimir@codesourcery.com>
853 * breakpoint.c (break_command_1): Remove
854 pending_bp parameter.
855 (create_breakpoint): Likewise.
856 (create_breakpoints): Likewise. Adjust call to
858 (break_command_1): Likewise. Adjust call to
860 (do_captured_breakpoint): Adjust call to
862 (break_command, tbreak_command, hbreak_command)
863 (stopin_command, stopat_command): Adjust call
866 2007-11-07 Joseph Myers <joseph@codesourcery.com>
867 Daniel Jacobowitz <dan@codesourcery.com>
869 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Right-align
870 struct values smaller than one doubleword; left-align those
871 larger. Pass structs containing a single floating-point value in
874 2007-11-07 Joseph Myers <joseph@codesourcery.com>
875 Daniel Jacobowitz <dan@codesourcery.com>
877 * gdbtypes.c (floatformats_ibm_long_double): New.
878 * gdbtypes.h (floatformats_ibm_long_double): Declare.
879 * ia64-tdep.c (floatformat_ia64_ext): Update for addition of
881 * mips-tdep.c (n32n64_floatformat_always_valid,
882 floatformat_n32n64_long_double_big, floatformats_n32n64_long):
884 (mips_gdbarch_init): Use floatformats_ibm_long_double instead of
885 floatformats_n32n64_long.
886 * ppc-linux-tdep.c (ppc_linux_init_abi): Use 128-bit IBM long
888 * doublest.c (convert_floatformat_to_doublest,
889 convert_doublest_to_floatformat): Handle split floating-point
891 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle IBM long
893 (ppc64_sysv_abi_push_dummy_call): Likewise.
894 (do_ppc_sysv_return_value): Handle IBM long double return.
896 2007-11-07 Vladimir Prus <vladimir@codesourcery.com>
898 Fix crash when a variable object being deleted
899 has any of its children deleted previously.
901 * varobj.c (delete_variable_1): Don't recurse
902 into deleted children.
904 2007-11-07 Markus Deuling <deuling@de.ibm.com>
906 * gdbarch.sh (legacy_virtual_frame_pointer): Add gdbarch parameter.
907 * gdbarch.{c,h}: Regenerate.
908 * arch-utils.c (legacy_virtual_frame_pointer): Add gdbarch parameter.
909 Replace current_gdbarch by gdbarch.
910 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
911 * mips-tdep.c (mips_virtual_frame_pointer): Likewise.
912 * spu-tdep.c (spu_virtual_frame_pointer): Likewise.
914 2007-11-07 Markus Deuling <deuling@de.ibm.com>
916 * shnbsd-tdep.c (shnbsd_supply_gregset, shnbsd_collect_gregset): Use
917 get_regcache_arch to get at the current architecture by regcache.
918 * xstormy16-tdep.c (xstormy16_frame_prev_register): Use get_frame_arch
919 to get at the current architecture by frame_info.
920 * fbsd-nat.c (fbsd_make_corefile_notes): Use get_regcache_arch to get
921 at the current architecture by regcache.
922 * gnu-v3-abi.c (gnuv3_skip_trampoline): Use get_frame_arch to get at
923 the current architecture by frame_info.
924 (build_gdb_vtable_type): Replace current_gdbarch by gdbarch.
925 * aix-thread.c (special_register_p): Add gdbarch as parameter.
926 (fetch_regs_kernel_thread, store_regs_kernel_thread): Add gdbarch to
927 caller of special_register_p.
929 2007-11-07 Markus Deuling <deuling@de.ibm.com>
931 * infcall.c (call_function_by_hand): Use get_frame_arch to get at the
932 current architecture by frame_info.
934 2007-11-07 Markus Deuling <deuling@de.ibm.com>
936 * xtensa-tdep.h (SIZEOF_GREGSET, XTENSA_ELF_NGREG) Remove.
938 2007-11-07 Markus Deuling <deuling@de.ibm.com>
940 * s390-nat.c (supply_gregset, fill_gregset): Use get_regcache_arch to
941 get at the current architecture by regcache.
942 (SUBOFF): Add gdbarch to macro definition.
944 2007-11-07 Markus Deuling <deuling@de.ibm.com>
946 * gdbarch.sh (breakpoint_from_pc): Add gdbarch parameter.
947 * gdbarch.{c,h}: Regenerate.
949 * xtensa-tdep.c (xtensa_breakpoint_from_pc): Add gdbarch parameter.
950 Replace current_gdbarch by gdbarch.
951 * sh-tdep.c (sh_breakpoint_from_pc): Likewise.
952 * sh64-tdep.c (sh64_breakpoint_from_pc): Likewise.
953 * score-tdep.c (score_breakpoint_from_pc): Likewise.
954 * mips-tdep.c (mips_breakpoint_from_pc): Likewise.
955 * m32r-tdep.c (m32r_breakpoint_from_pc): Likewise.
956 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
957 * arm-tdep.c (arm_breakpoint_from_pc): Likewise.
959 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Add gdbarch
961 * vax-tdep.c (vax_breakpoint_from_pc): Likewise.
962 * v850-tdep.c (v850_breakpoint_from_pc): Likewise.
963 * spu-tdep.c (spu_breakpoint_from_pc): Likewise.
964 * sparc-tdep.c (sparc_breakpoint_from_pc): Likewise.
965 * s390-tdep.c (s390_breakpoint_from_pc): Likewise.
966 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Likewise.
967 * mt-tdep.c (mt_breakpoint_from_pc): Likewise.
968 * mep-tdep.c (mep_breakpoint_from_pc): Likewise.
969 * m88k-tdep.c (m88k_breakpoint_from_pc): Likewise.
970 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Likewise.
971 * m32c-tdep.c (m32c_breakpoint_from_pc): Likewise.
972 * ia64-tdep.c (ia64_breakpoint_from_pc): Likewise.
973 * i386-tdep.c (i386_breakpoint_from_pc): Likewise.
974 * hppa-tdep.c (hppa_breakpoint_from_pc): Likewise.
975 * h8300-tdep.c (h8300_breakpoint_from_pc): Likewise.
976 * frv-tdep.c (frv_breakpoint_from_pc): Likewise.
977 * cris-tdep.c (cris_breakpoint_from_pc): Likewise.
978 * avr-tdep.c (avr_breakpoint_from_pc): Likewise.
979 * alpha-tdep.c (alpha_breakpoint_from_pc): Likewise.
980 * m68k-tdep.c (m68k_local_breakpoint_from_pc): Likewise.
982 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Add gdbarch parameter.
983 Replace current_gdbarch by gdbarch.
984 (rs6000_software_single_step): Use get_frame_arch to get at the
985 current architecture by frame_info. Add gdbarch to
986 rs6000_breakpoint_from_pc call.
988 2007-11-07 Markus Deuling <deuling@de.ibm.com>
990 * frv-tdep.c (frv_register_name, frv_check_watch_resources): Replace
991 macro CURRENT_VARIANT by its expression.
992 (CURRENT_VARIANT): Remove.
993 (frv_check_watch_resources): Add gdbarch parameter.
995 2007-11-07 Markus Deuling <deuling@de.ibm.com>
997 * MAINTAINERS (Write After Approval): Add self.
999 2007-11-05 Ulrich Weigand <uweigand@de.ibm.com>
1001 * features/rs6000/power-core.xml: Use uint32 as register type.
1002 * features/rs6000/power64-core.xml: Use uint64/uint32 as register type.
1003 * features/rs6000/powerpc-32.c: Regenerate.
1004 * features/rs6000/powerpc-403.c: Regenerate.
1005 * features/rs6000/powerpc-403gc.c: Regenerate.
1006 * features/rs6000/powerpc-505.c: Regenerate.
1007 * features/rs6000/powerpc-602.c: Regenerate.
1008 * features/rs6000/powerpc-603.c: Regenerate.
1009 * features/rs6000/powerpc-604.c: Regenerate.
1010 * features/rs6000/powerpc-64.c: Regenerate.
1011 * features/rs6000/powerpc-7400.c: Regenerate.
1012 * features/rs6000/powerpc-750.c: Regenerate.
1013 * features/rs6000/powerpc-860.c: Regenerate.
1014 * features/rs6000/powerpc-e500.c: Regenerate.
1016 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1018 * breakpoint.c (set_raw_breakpoint_without_location): Make static.
1020 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1022 * breakpoint.h (create_solib_load_event_breakpoint)
1023 (create_solib_unload_event_breakpoint)
1024 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1025 (create_exec_event_catchpoint): Delete declaration.
1026 * breakpoint.c (create_solib_load_event_breakpoint)
1027 (solib_load_unload_1, create_solib_unload_event_breakpoint): Delete.
1028 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1029 (create_exec_event_catchpoint): Make static.
1031 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1033 * breakpoint.h (set_breakpoint_sal): Remove declaration.
1034 * breakpoint.c (set_breakpoint_sal): Delete.
1036 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1038 * buildsym.c (finish_block): Remove "#if 1"/"#endif" brackets.
1039 (make_blockvector): Likewise. Remove FIXME comment.
1041 2007-11-05 Luis Machado <luisgpm@br.ibm.com>
1043 * printcmd.c: (printf_command): Add support for new DFP
1044 modifiers %H, %D and %DD.
1045 * configure.ac: Add check for DECFLOAT printf support.
1046 * configure: Regenerated.
1048 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1050 * gdbtypes.h (struct cplus_struct_type): Remove runtime_ptr member.
1051 (TYPE_RUNTIME_PTR, TYPE_VTABLE, TYPE_HAS_VTABLE,
1052 TYPE_PRIMARY_BASE, TYPE_VIRTUAL_BASE_LIST): Remove macros.
1053 (HP_ACC_VFUNC_START, HP_ACC_VBASE_START, HP_ACC_TYPEINFO_OFFSET,
1054 HP_ACC_TOP_OFFSET_OFFSET): Likewise.
1055 (has_vtable, primary_base_class, virtual_base_list_length,
1056 virtual_base_list_length_skip_primaries, virtual_base_index,
1057 virtual_base_index_skip_primaries, class_index_in_primary_list,
1058 count_virtual_fns): Remove prototypes.
1059 * gdbtypes.c (has_vtable, primary_base_class, current_vbase_list,
1060 virtual_base_list_aux, virtual_base_list, virtual_base_list_length,
1061 virtual_base_list_length_skip_primaries, virtual_base_index,
1062 virtual_base_index_skip_primaries, class_index_in_primary_list,
1063 count_virtual_fns): Remove.
1065 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Remove.
1066 (hpacc_vtbl_ptr_name, hpacc_vtbl_ptr_type_name): Remove.
1067 (cp_print_value_fields): Remove support for HP aCC vtables.
1068 (cp_print_value): Likewise.
1069 * c-typeprint.c (c_type_print_base): Likewise.
1071 * value.h (find_rt_vbase_offset): Remove prototype.
1072 * valops.c (find_rt_vbase_offset): Remove.
1073 (search_struct_method): Remove support for HP aCC vtables.
1074 (find_method_list): Likewise.
1076 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1078 * language.h (struct language_defn): Remove la_builtin_type_vector
1079 and string_char_type members.
1080 * language.c (language_string_char_type): No longer consult
1081 la->string_char_type.
1082 (language_lookup_primitive_type_by_name): No longer consult
1083 current_language->la_builtin_type_vector.
1085 * language.c (unknown_language_defn, auto_language_defn,
1086 local_language_defn): Adapt initializer.
1087 * ada-lang.c (ada_language_defn): Likewise.
1088 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn,
1089 minimal_language_defn): Likewise.
1090 * f-lang.c (f_language_defn): Likewise.
1091 * jv-lang.c (java_language_defn): Likewise.
1092 * m2-lang.c (m2_language_defn): Likewise.
1093 * objc-lang.c (objc_language_defn): Likewise.
1094 * p-lang.c (pascal_language_defn): Likewise.
1095 * scm-lang.c (scm_language_defn): Likewise.
1097 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1099 * frame.c (frame_id_inner): Add gdbarch parameter. Replace
1100 current_gdbarch by gdbarch.
1101 (frame_find_by_id, get_prev_frame_1): Use get_frame_arch to get at the
1102 current architecture by frame_info.
1103 * frame.h (frame_id_inner): Add gdbarch parameter.
1104 * stack.c (return_command): Use get_frame_arch to get at the current
1105 architecture by frame_info. Update call of frame_id_inner.
1106 * infrun.c (handle_inferior_event): Likewise.
1107 * dummy-frame.c (dummy_frame_push): Use get_regcache_arch to get at the
1108 current architecture by regcache. Update call of frame_id_inner.
1110 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1112 * gdbarch.sh (register_name): Add gdbarch parameter.
1113 * gdbarch.{c,h}: Regenerate.
1115 * target-descriptions.c (tdesc_register_name): Add gdbarch parameter.
1116 (tdesc_register_name): Replace current_gdbarch by gdbarch.
1117 * target-descriptions.h (tdesc_register_name): Add gdbarch parameter.
1119 * xstormy16-tdep.c (xstormy16_register_name): Add gdbarch parameter.
1120 * vax-tdep.c (vax_register_name): Add gdbarch parameter.
1121 * spu-tdep.c (spu_register_name): Add gdbarch parameter.
1122 * s390-tdep.c (s390_register_name): Add gdbarch parameter.
1123 * mt-tdep.c (mt_register_name): Add gdbarch parameter.
1124 (mt_registers_info): Replace current_gdbarch by gdbarch.
1125 (mt_register_reggroup_p): Add gdbarch to mt_register_name call.
1126 * mips-tdep.c (mips_register_name): Add gdbarch parameter. Replace
1127 current_gdbarch by gdbarch.
1128 (mips_register_name): Add gdbarch to tdesc_register_name call.
1129 * mep-tdep.c (mep_register_name): Add gdbarch parameter. Replace
1130 current_gdbarch by gdbarch.
1131 (mep_register_reggroup_p): Add gdbarch to mep_register_name call.
1132 * m32c-tdep.c (m32c_register_name): Add gdbarch parameter. Replace
1133 current_gdbarch by gdbarch.
1134 * m88k-tdep.c (m88k_register_name): Add gdbarch parameter.
1135 * m68k-tdep.c (m68k_register_name): Add gdbarch parameter.
1136 * m32r-tdep.c (m32r_register_name): Add gdbarch parameter.
1137 (m32r_frame_unwind_cache): Use get_frame_arch to get at the current
1138 architecture by frame_info.
1139 * iq2000-tdep.c (iq2000_register_name): Add gdbarch parameter.
1140 * ia64-tdep.c (ia64_register_name): Add gdbarch parameter.
1141 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Add gdbarch
1143 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
1144 (h8300sx_register_name): Add gdbarch parameter.
1145 * cris-tdep.c (cris_register_name, crisv32_register_name): Add
1146 gdbarch parameter. Replace current_gdbarch by gdbarch.
1147 (cris_gdbarch_init): Replace current_gdbarch by gdbarch (comment).
1148 * avr-tdep.c (avr_register_name): Add gdbarch parameter.
1149 * arm-tdep.c (arm_register_name): Add gdbarch paramete
1150 * amd64-tdep.c (amd64_register_name): Add gdbarch parameter. Update
1152 * amd64-tdep.h (amd64_register_name): Add gdbarch parameter.
1153 * amd64-linux-tdep.c (amd64_linux_register_name): Add gdbarch parameter.
1154 * alpha-tdep.c (alpha_register_name): Add gdbarch parameter.
1155 (alpha_cannot_fetch_register, alpha_cannot_store_register): Update call
1156 of alpha_register_name.
1157 * frv-tdep.c (frv_register_name): Add gdbarch parameter.
1158 * i386-tdep.c (i386_register_name): Add gdbarch parameter. Replace
1159 current_gdbarch by gdbarch.
1160 (i386_register_type): Replace ?current_gdbarch by gdbarch.
1161 * i386-tdep.h (i386_register_name): Add gdbarch parameter.
1162 * i386-linux-tdep.c (i386_linux_register_name): Add gdbarch parameter.
1164 * m68hc11-tdep.c (m68hc11_register_name): Add gdbarch parameter.
1165 (m68hc11_register_reggroup_p): Add gdbarch to call of
1166 m68hc11_register_name.
1167 * mn10300-tdep.c (mn10300_generic_register_name, am33_register_name)
1168 (am33_2_register_name): Add gdbarch parameter.
1169 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1170 architecture by frame_info.
1171 (mn10300_dump_tdep): Replace current_gdbarch by gdbarch.
1172 * rs6000-tdep.c (rs6000_register_name): Add gdbarch parameter. Replace
1173 current_gdbarch by gdbarch.
1174 * score-tdep.c (score_register_name): Add gdbarch parameter.
1175 (score_return_value, score_push_dummy_call): Replace current_gdbarch
1177 * sh64-tdep.c (sh64_register_name): Add gdbarch parameter.
1178 (sh64_compact_reg_base_num, sh64_register_convert_to_virtual)
1179 (sh64_register_convert_to_raw, sh64_fv_reg_base_num)
1180 (sh64_dr_reg_base_num, sh64_fpp_reg_base_num): Add gdbarch parameter
1181 and update caller. Replace current_gdbarch by gdbarch.
1182 (sh64_extract_return_value, sh64_store_return_value): Use
1183 get_regcache_arch to get at the current architecture by regcache.
1184 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
1185 (sh_sh3e_register_name, sh_sh2e_register_name, sh_sh2a_register_name)
1186 (sh_sh2a_nofpu_register_name, sh_sh_dsp_register_name)
1187 (sh_sh3_dsp_register_name, sh_sh4_register_name)
1188 (sh_sh4_nofpu_register_name, sh_sh4al_dsp_register_name): Add gdbarch
1190 (fv_reg_base_num, dr_reg_base_num, sh_justify_value_in_reg)
1191 (sh_next_flt_argreg): Add gdbarch parameter and update caller. Replace
1192 current_gdbarch by gdbarch.
1193 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Use
1194 get_regcache_arch to get at the current architecture by regcache.
1195 * sparc-tdep.c (sparc32_register_name): Add gdbarch parameter.
1196 * sparc64-tdep.c (sparc64_register_name): Add gdbarch parameter.
1197 * v850-tdep.c (v850_register_name, v850e_register_name): Add gdbarch
1199 (v850_unwind_sp, v850_unwind_pc): Replace current_gdbarch by gdbarch.
1200 * xtensa-tdep.c (xtensa_register_name): Add gdbarch parameter. Replace
1201 current_gdbarch by gdbarch.
1202 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1203 (xtensa_frame_prev_register): Add gdbarch parameter to
1204 xtensa_register_name call.
1206 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1208 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
1209 find_solib_trampoline_target if PC is not in .plt section.
1211 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1213 * elfread.c (elf_symtab_read): When constructing a solib trampoline
1214 minimal symbol from an undefined dynamic symbol, use proper section.
1216 2007-10-31 Markus Deuling <deuling@de.ibm.com>
1218 * arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
1219 to get at the current architecture by regcache.
1221 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1223 * libunwind-frame.c (libunwind_frame_sniffer)
1224 libunwind_frame_prev_register, libunwind_sigtramp_frame_sniffer)
1225 (libunwind_frame_cache): Use get_frame_arch to get at the current
1226 architecture by frame_info.
1227 (libunwind_get_reg_special): Replace current_gdbarch by gdbarch.
1229 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1231 * iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get
1232 at the current architecture by frame_info.
1234 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1236 * inf-child.c (inf_child_fetch_inferior_registers): Use
1237 get_regcache_arch to get at the current architecture by regcache.
1239 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1241 * inf-ptrace.c (inf_ptrace_fetch_registers)
1242 (inf_ptrace_fetch_register, inf_ptrace_store_register)
1243 (inf_ptrace_store_registers): Use get_regcache_arch to get at the
1244 current architecture by regcache.
1246 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1248 * hpux-thread.c (hpux_thread_fetch_registers)
1249 (hpux_thread_store_registers): Use get_regcache_arch to get at the
1250 current architecture by regcache.
1252 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1254 * hppa-tdep.c (hppa_frame_cache): Use get_frame_arch to get at the
1255 current architecture by frame_info.
1257 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1259 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
1260 (go32_store_registers): Use get_regcache_arch to get at the current
1261 architecture by regcache.
1263 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1265 * gdbtypes.c (gdbtypes_post_init): Replace current_gdbarch by gdbarch.
1267 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1269 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Use get_frame_arch
1270 to get at the current architecture by frame_info.
1272 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1274 * f-lang.c (build_fortran_types): Replace current_gdbarch by gdbarch.
1276 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1278 * core-regset.c (fetch_core_registers): Use get_regcache_arch to get at
1279 the current architecture by regcache.
1281 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1283 * corelow.c (get_core_registers): Use get_regcache_arch to get at the
1284 current architecture by regcache.
1286 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1288 * bsd-uthread.c (bsd_uthread_fetch_registers)
1289 (bsd_uthread_store_registers): Use get_regcache_arch to get at the
1290 current architecture by regcache.
1292 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1294 * avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
1295 get_frame_arch to get at the current architecture by frame_info.
1297 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1299 * arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
1301 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1303 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
1304 (store_regs): Use get_regcache_arch to get at the current architecture
1307 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1309 * arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
1310 to get at the current architecture by regcache.
1312 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1314 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
1315 (alphabsd_store_inferior_registers): Use get_regcache_arch to get at
1316 the current architecture by regcache.
1318 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1320 * ada-lang.c (ada_language_arch_info): Replace current_gdbarch by
1323 2007-10-30 Daniel Jacobowitz <dan@codesourcery.com>
1325 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Check the selected
1326 soft float and vector ABIs. Support the generic vector ABI for
1328 (do_ppc_sysv_return_value): Likewise. Correct argument types and
1330 (ppc64_sysv_abi_push_dummy_call): Assert that floating point is
1332 * ppc-tdep.h (enum powerpc_vector_abi): New.
1333 (struct gdbarch_tdep): Add soft_float and vector_abi.
1334 * rs6000-tdep.c (setpowerpccmdlist, showpowerpccmdlist)
1335 (powerpc_soft_float_global, powerpc_vector_strings)
1336 (powerpc_vector_abi_global, powerpc_vector_abi_string): New.
1337 (rs6000_gdbarch_init): Check for soft-float and vector ABI markings.
1338 (set_powerpc_command, show_powerpc_command, powerpc_set_soft_float)
1339 (powerpc_set_vector_abi): New.
1340 (_initialize_rs6000_tdep): Register "set powerpc" and "show powerpc"
1342 * Makefile.in (elf_ppc_h): New.
1343 (rs6000-tdep.o): Update.
1345 2007-10-29 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1347 * ppc-linux-tdep.c (ppc32_linux_reg_offsets): Corrected
1348 swapped offsets and VRSAVE offset.
1349 (ppc64_linux_reg_offsets): Corrected swapped offsets.
1350 (ppc32_linux_vrregset): Added.
1351 (ppc_linux_regset_from_core_section): Added support for
1352 .reg-ppc-vmx section.
1353 * ppc-tdep.h (ppc_altivec_support_p): Declare.
1354 (ppc_supply_vrregset): Declare.
1355 (ppc_collect_vrregset): Declare.
1356 * rs6000-tdep.c (ppc_altivec_support_p): Added.
1357 (ppc_supply_vrregset): Added.
1358 (ppc_collect_vrregset): Added.
1359 * corelow.c (get_core_registers): Added support for
1360 .reg-ppc-vmx section.
1362 2007-10-29 Joel Brobecker <brobecker@adacore.com>
1366 2007-10-26 Jim Blandy <jimb@codesourcery.com>
1368 * ax-gdb.h (expr_to_address_and_size): Delete declaration for
1371 * tracepoint.c (tracepoint_operation): Report the deletion event
1372 after we have unlinked the tracepoint from the list, and use the
1373 proper tracepoint number.
1375 * ax-gdb.c (expr_to_agent): Delete unused function.
1376 (expr_to_address_and_size): Delete #if 0'd function.
1377 * ax-gdb.h (expr_to_agent): Delete declaration.
1379 * ax-gdb.c (gen_cast): Remove redundant assignment to
1380 value->type. Doc fix.
1382 * ax-general.c (gen_traced_pop, gen_int_literal)
1383 (gen_usual_arithmetic): Check for typedefs.
1385 2007-10-26 Joel Brobecker <brobecker@adacore.com>
1387 * parse.c (prefixify_expression): Minor reformatting.
1389 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1391 * version.in: Use dot instead of dash.
1393 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1395 * linux-thread-db.c (check_for_thread_db): Only print if info_verbose.
1397 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1399 * memory-map.c (parse_memory_map): Don't use an empty struct
1402 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1404 * signals/signals.c (signals): Update pointer to enum
1405 target_signal declaration.
1407 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1408 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1409 Jim Blandy <jimb@codesourcery.com>
1411 * dwarf2read.c (read_partial_die): check the value
1412 of DW_AT_calling_convention in Fortran programs.
1414 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1415 Thiago Jung Bauermann <bauerman@br.ibm.com>
1417 * c-exp.y (YYSTYPE): Add typed_val_decfloat for decimal
1418 floating point in YYSTYPE union.
1419 (DECFLOAT) Add token and expression element handling code.
1420 (parse_number): Parse DFP constants, which end with suffix 'df',
1421 'dd' or 'dl'. Return DECFLOAT.
1422 * eval.c (evaluate_subexp_standard): Call value_from_decfloat to
1424 * expression.h (enum exp_opcode): Add an opcode (OP_DECFLOAT)
1426 (union exp_element): Add decfloatconst to represent DFP
1427 elements, which is 16 bytes by default.
1428 * parse.c (write_exp_elt_decfloatcst): New function to write a
1429 decimal float const into the expression.
1430 (operator_length_standard): Set operator length for OP_DECFLOAT
1432 * parser-defs.h (write_exp_elt_decfloatcst): Prototype.
1433 * valarith.c (value_neg): Add code to handle the negation
1434 operation of DFP values.
1435 * value.c (value_from_decfloat): New function to get the value
1436 from a decimal floating point.
1437 * value.h (value_from_decfloat): Prototype.
1439 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1440 Thiago Jung Bauermann <bauerman@br.ibm.com>
1442 * c-lang.c (c_create_fundamental_type): Create fundamental
1444 * c-typeprint.c (c_type_print_varspec_prefix): Add
1445 TYPE_CODE_DECFLOAT to no prefix needed case.
1446 (c_type_print_varspec_suffix): Add TYPE_CODE_DECFLOAT to no
1448 * c-valprint.c (c_val_print): Call print_decimal_floating to
1450 * dwarf2read.c (read_base_type): Read DW_ATE_decimal_float
1451 attribute code and return TYPE_CODE_DECFLOAT.
1452 (dwarf_base_type): Set dwarf2_fundamental_type for DFP values.
1453 * gdbtypes.c (gdbtypes_post_init): Initialize builtin_decfloat,
1454 builtin_decdouble and builtin_declong.
1455 * gdbtypes.h (enum type_code): Add TYPE_CODE_DECFLOAT as a
1457 (FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT): New
1458 types, for decimal floating point.
1459 (FT_NUM_MEMBERS): Increment, new types added.
1460 (struct builtin_type): Add builtin_decfloat, builtin_decdouble
1461 and builtin_declong.
1462 * valprint.c (print_decimal_floating): New function to print DFP
1464 * value.h (print_decimal_floating): Prototype.
1466 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1467 Thiago Jung Bauermann <bauerman@br.ibm.com>
1469 * Makefile.in (LIBDECNUMBER_DIR, LIBDECNUMBER, LIBDECNUMBER_SRC
1470 LIBDECNUMBER_CFLAGS): New macros for libdecnumber.
1471 (INTERNAL_CFLAGS_BASE): Add LIBDECNUMBER_CFLAGS in.
1472 (INSTALLED_LIBS): Add -ldecnumber in.
1473 (CLIBS): Add LIBDECNUMBER in.
1474 (decimal128_h, decimal64_h, decimal32_h): New macros for decimal
1476 (dfp_h): New macros for decimal floating point.
1477 (dfp.o): New target.
1478 (COMMON_OBS): Add dfp.o in.
1479 (c-exp.o): Add dfp_h as dependency.
1480 (valprint.o): Add dfp_h as dependency.
1481 (value.o): Add dfp_h as dependency.
1482 * dfp.h: New header file for decimal floating point support in
1484 * dfp.c: New source file for decimal floating point support in
1485 GDB. Implement decimal_from_string and decimal_to_string based
1486 on libdecnumber API.
1487 * configure.ac: Add AC_C_BIGENDIAN test.
1488 * config.in, configure: Regenerate.
1490 2007-10-25 David Ung <davidu@mips.com>
1491 Maciej W. Rozycki <macro@mips.com>
1494 * infcmd.c (registers_info): Check for a user register before
1495 calling target's gdbarch_print_registers_info(). If found to be
1496 so, extract the implicit value of user register and call
1497 print_scalar_formatted().
1498 * Makefile.in: (infcmd.o): Add $(user_regs_h).
1500 2007-10-25 Joel Brobecker <brobecker@adacore.com>
1502 * NEWS: Document status of hppa64-hpux support.
1504 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1506 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1507 set_solib_ops to install SVR4 operations.
1508 (_initialize_svr4_solib): Do not set current_target_so_ops.
1510 * config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
1511 * config/i386/i386gnu.mt (TDEPFILES): ... to here.
1513 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1515 * solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1516 (solib_svr4_init): Initialize fetch_link_map_offsets to NULL.
1517 * solib-svr4.h (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1518 * solib-legacy.c: Remove file.
1520 * config/alpha/alpha-linux.mt (TDEPFILES): Remove solib-legacy.o.
1521 * config/arm/linux.mt (TDEPFILES): Likewise.
1522 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1523 * config/ia64/linux.mt (TDEPFILES): Likewise.
1524 * config/m32r/linux.mt (TDEPFILES): Likewise.
1525 * config/powerpc/linux.mt (TDEPFILES): Likewise.
1526 * config/s390/s390.mt (TDEPFILES): Likewise.
1528 * alpha-linux-tdep.c (alpha_linux_init_abi): Call
1529 set_solib_svr4_fetch_link_map_offsets.
1530 * i386gnu-tdep.c (i386gnu_init_abi): Likewise.
1531 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
1533 * i386gnu-tdep.c: Include "solib-svr4.h".
1534 * Makefile.in: Update dependencies.
1536 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1538 * i386-nto-tdep.c: Include "solib.h".
1539 (i386nto_init_abi): Use set_solib_ops instead of overwriting
1540 current_target_so_ops members.
1541 * solist.h (TARGET_SO_RELOCATE_SECTION_ADDRESSES): Remove.
1542 (TARGET_SO_FIND_AND_OPEN_SOLIB): Remove.
1543 (TARGET_SO_IN_DYNSYM_RESOLVE_CODE): Remove.
1544 * Makefile.in: Update dependencies.
1546 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1548 * arm-wince-tdep.c: Include "solib.h" and "solib-target.h".
1549 (arm_wince_init_abi): Call set_solib_ops.
1550 * i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
1551 (i386_cygwin_init_abi): Call set_solib_ops.
1552 * solib-target.c: Include "solib-target.h".
1553 (solib_target_so_ops): Make global.
1554 (_initialize_solib_target): Do not set current_target_so_ops.
1555 * solib-target.h: New file.
1556 * Makefile.in: Update dependencies.
1558 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1560 * mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
1561 (mips_irix_init_abi): Call set_solib_ops.
1562 * solib-irix.c: Include "solib.h" and "solib-irix.h".
1563 (irix_so_ops): Make global.
1564 (_initialize_irix_solib): Do not set current_target_so_ops.
1565 * solib-irix.h: New file.
1566 * Makefile.in: Update dependencies.
1568 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1570 * configure.tgt: Remove hppa*64*-*-hpux11* special case.
1571 * config/pa/hppa64.mt: Delete file.
1572 * config/pa/hppahpux.mt (MT_CFLAGS): Remove.
1573 (TDEPFILES): Move somread.o to ...
1574 * config/pa/hpux.mh (NATDEPFILES): ... here.
1576 * configure.ac: Add check for elf_hp.h header.
1577 Search libdl and libxpdl for dlgetmodinfo.
1578 * config.in, configure: Regenerate.
1579 * solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
1580 instead of #ifndef PA_SOM_ONLY. Include "solib.h".
1581 (pa64_solib_select): Take gdbarch instead of tdep argument. Call
1582 set_solib_ops instead of modifying current_target_so_ops.
1583 * solib-pa64.h (pa64_solib_select): Update prototype.
1584 * solib-som.c: Remove include of "som.h". Include "solib.h".
1585 (som_solib_select): Take gdbarch instead of tdep argument. Call
1586 set_solib_ops instead of modifying current_target_so_ops.
1587 * solib-som.h (som_solib_select): Update prototype.
1588 * hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
1589 of tdep to som_solib_select call.
1590 (hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
1591 pa64_solib_select call.
1592 * Makefile.in: Update dependencies.
1594 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1596 * frv-tdep.c: Include "solib.h".
1597 (frv_gdbarch_init): Call set_solib_ops.
1598 * frv-tdep.h (struct target_so_ops): Add forward reference.
1599 (frv_so_ops): Add extern declaration.
1600 * solib-frv.c (frv_so_ops): Make global.
1601 (_initialize_frv_solib): Do not set current_target_so_ops.
1602 * Makefile.in: Update dependencies.
1604 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1606 * solib.c (solib_global_lookup): Use solib_ops instead of global
1607 current_target_so_ops.
1609 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1611 * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
1612 * config/frv-tm-frv.h: Delete file.
1614 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
1616 * NEWS: Mention gdbserver support for non-libthread_db operation.
1618 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
1620 * amd64-tdep.c (amd64_convert_register_p): Delete.
1621 (amd64_init_abi): Use i387_convert_register_p.
1622 * alpha-tdep.c (alpha_convert_register_p): Return zero for
1624 (alpha_register_to_value, alpha_value_to_register): Do not handle
1626 * i386-tdep.c (i386_convert_register_p): Use i387_convert_register_p.
1627 * i387-tdep.c (i387_convert_register_p): New.
1628 (i387_register_to_value, i387_value_to_register): Update comments.
1629 * i387-tdep.h (i387_convert_register_p): Declare.
1630 * ia64-tdep.c (ia64_convert_register_p): Return zero for
1631 builtin_type_ia64_ext.
1632 (ia64_gdbarch_init): Do not initialize builtin_type_ia64_ext here.
1633 (_initialize_ia64_tdep): Initialize builtin_type_ia64_ext here.
1634 * m68k-tdep.c (m68k_convert_register_p): Return zero for
1635 builtin_type_m68881_ext.
1636 (m68k_register_to_value, m68k_value_to_register): Update comments.
1638 2007-10-24 Nathan Sidwell <nathan@codesourcery.com>
1640 * target-memory.c (claim_memory): Propagate baton for split memory
1643 2007-10-24 Pedro Alves <pedro_alves@portugalmail.pt>
1646 * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
1649 2007-10-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1651 * symtab.c (find_line_symtab): scan through psymtabs
1652 when exact_match is zero.
1654 2007-10-23 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
1656 * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
1657 (deal_with_atomic_sequence): New.
1658 (mips_software_single_step): Use it.
1660 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
1663 * configure.ac: Modify $LIBINTL before the BFD check.
1664 * configure: Regenerated.
1666 2007-10-23 Joel Brobecker <brobecker@adacore.com>
1668 * buildsym.c (free_pending_blocks): Remove commented-out code.
1669 (make_blockvector): Likewise. Re-use free_pending_blocks.
1670 (end_symtab): Remove commented-out code.
1672 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1674 * top.c (command_loop): Fix output for shrinkage.
1676 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1678 * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
1679 (exp): Remove and document function-like casts.
1681 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1683 * cp-support.c: Include "safe-ctype.h".
1684 (cp_already_canonical): New function.
1685 (cp_canonicalize_string): Use it. Return NULL for already canonical
1687 (mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
1688 (cp_func_name, remove_params): Likewise.
1689 (cp_find_first_component_aux): Use ISSPACE.
1690 * cp-support.h (cp_demangled_name_to_comp): Correct comment. Remove
1692 * cp-name-parser.y (ALLOC_CHUNK): Define.
1693 (struct demangle_info): Add PREV and NEXT. Increase the size of
1695 (d_grab): Convert to a function.
1696 (allocate_info): Rewrite.
1697 (cp_demangled_name_to_comp): Remove MEMORY argument. Do not use
1698 strlen. Update call to allocate_info. Do not free it on failure.
1699 (main): Update calls to cp_demangled_name_to_comp.
1700 * Makefile.in (cp-support.o): Update.
1702 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1704 * std-regs.c (value_of_builtin_frame_fp_reg)
1705 value_of_builtin_frame_pc_reg, value_of_builtin_frame_sp_reg)
1706 value_of_builtin_frame_ps_reg): Use get_frame_arch to get at the
1707 current architecture by frame_info.
1709 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1711 * reggroups.c (default_register_reggroup_p): Replace current_gdbarch
1714 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1716 * infcmd.c (default_print_registers_info, print_return_value)
1717 (print_vector_info, print_float_info): Replace current_gdbarch by
1719 (registers_info): Use get_frame_arch to get at the current
1720 architecture by frame_info.
1722 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1724 * i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
1725 get_regcache_arch to get at the current architecture by regcache.
1727 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1729 * target.c (debug_print_register): Use get_regcache_arch to get at the
1730 current architecture by regcache.
1732 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
1734 * dwarf2read.c (read_file_scope): Add a comment.
1735 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_type)
1736 (read_enumeration_type, process_enumeration_scope, read_array_type)
1737 (read_typedef, read_base_type, read_subrange_type)
1738 (read_unspecified_type): Use dwarf2_name.
1740 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
1742 * coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
1743 * dwarf2read.c (dwarf2_free_objfile): New.
1744 * elfread.c (elf_symfile_finish): Call dwarf2_free_objfile.
1745 * symfile.h (dwarf2_free_objfile): Declare.
1747 2007-10-21 Joel Brobecker <brobecker@adacore.com>
1749 * hppa-hpux-nat.c (hppa_hpux_store_register): Add missing semi-colon.
1751 2007-10-21 Luis Machado <luisgpm@br.ibm.com>
1753 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
1754 * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
1755 default dwarf2_frame_set_init_reg function.
1757 2007-10-21 Pedro Alves <pedro_alves@portugalmail.pt>
1759 * NEWS: Mention native MinGW configuration.
1761 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1763 * gdbarch.sh: Remove "macro" column of input table. Remove handling
1764 of "macro" column throughout the file. Remove (empty) "macro" entry
1765 of all gdbarch functions.
1767 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1769 * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
1770 * gdbarch.c, gdbarch.h: Regenerate.
1771 * dbxread.c (find_stab_function_addr): Define unconditionally.
1772 (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
1773 instead of SOFUN_ADDRESS_MAYBE_MISSING.
1774 (end_psymtab): Likewise.
1775 (process_one_symbol): Likewise.
1776 * mdebugread.c (parse_partial_symbols): Likewise.
1778 * symtab.h (struct minimal_symbol): Always define "filename" member.
1779 * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
1780 * minsyms.c (lookup_minimal_symbol): Likewise.
1781 * symmisc.c (dump_msymbols): Likewise.
1783 * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
1784 * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
1785 * config/i386/tm-i386sol2.h: Remove file.
1786 * config/i386/tm-linux.h: Remove file.
1787 * i386-linux-tdep.c (i386_linux_init_abi): Add call to
1788 set_gdbarch_sofun_address_maybe_missing.
1789 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
1791 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
1792 * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
1793 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
1794 * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
1795 * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
1796 * config/powerpc/tm-ppc-eabi.h: Remove file.
1797 * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
1798 set_gdbarch_sofun_address_maybe_missing.
1800 * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
1801 * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
1802 * config/sparc/tm-sol2.h: Remove file.
1803 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
1804 set_gdbarch_sofun_address_maybe_missing.
1805 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
1807 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1809 * gdbarch.sh (static_transform_name): New gdbarch callback.
1810 * gdbarch.c, gdbarch.h: Regenerate.
1811 * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
1812 instead of STATIC_TRANSFORM_NAME.
1813 * mdebugread.c (parse_partial_symbols): Likewise.
1814 * stabsread.c (define_symbol): Likewise.
1815 * xcoffread.c (scan_xcoff_symtab): Likewise.
1817 * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
1818 (IS_STATIC_TRANSFORM_NAME): Remove.
1819 * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
1820 * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
1821 (i386_sol2_init_abi): Install it.
1823 * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
1824 (IS_STATIC_TRANSFORM_NAME): Remove.
1825 * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
1826 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
1827 (sparc32_sol2_init_abi): Install it.
1828 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
1829 * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
1831 2007-10-18 Daniel Jacobowitz <dan@codesourcery.com>
1833 * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
1834 (mips_n32n64_return_value, mips_o32_return_value)
1835 (mips_o64_return_value): Update calls to mips_xfer_register.
1837 2007-10-17 Daniel Jacobowitz <dan@codesourcery.com>
1839 * frame.c (frame_unwind_unsigned_register): Delete.
1840 (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
1841 * frame.h (frame_unwind_unsigned_register): Delete prototype.
1843 * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
1844 avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
1845 mt-tdep.c: Replace frame_unwind_unsigned_register with
1846 frame_unwind_register_unsigned.
1848 2007-10-16 Pedro Alves <pedro_alves@portugalmail.pt>
1850 * config/i386/mingw.mh, config/i386/mingw.mt: New files.
1851 * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
1852 * win32-nat.c: Only include cygwin.h on Cygwin host. Don't
1854 (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
1855 if not building on Cygwin.
1856 (win32_make_so, handle_output_debug_string, handle_exception)
1857 (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
1858 (win32_attach): Only fallback to Cygwin pids if building on
1860 (win32_pid_to_exec_file): Disable Cygwin specific code, if not
1862 (win32_create_inferior): Disable starting the inferior through a
1863 shell, environment var processing and tty handling if not building
1865 (cygwin_pid_to_str): Rename to ...
1866 (win32_pid_to_str): ... this.
1867 (init_win32_ops): Update use of win32_pid_to_str. Disable "shell"
1868 and "cygwin-exceptions" commands if not building on Cygwin.
1870 2007-10-16 Gaius Mulley <gaius@glam.ac.uk>
1872 * doc/gdb.texinfo: Add TSIZE definition, removed
1873 statement about unbounded arrays being unimplemented.
1874 * m2-valprint.c (m2_print_array_contents): New function.
1875 (m2_print_unbounded_array): New function.
1876 (m2_print_array_contents): New function.
1877 * m2-typeprint.c (m2_unbounded_array): New function.
1878 (m2_is_unbounded_array): New function.
1879 (m2_print_type): Test for unbounded array when walking
1881 * m2-lang.h: Added extern m2_is_unbounded_array.
1882 * m2-lang.c (evaluate_subexp_modula2): New function.
1883 (exp_descriptor_modula2): New structure.
1884 (m2_language_defn): Use exp_descriptor_modula2.
1885 * m2-exp.y: Added TSIZE and binary subscript.
1887 2007-10-16 Daniel Jacobowitz <dan@codesourcery.com>
1889 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
1892 2007-10-16 Kevin Buettner <kevinb@redhat.com>
1894 * m32r-tdep.c (decode_prologue): Sign extend offset for
1896 (m32r_frame_unwind_cache): Likewise.
1898 2007-10-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
1900 * rs6000-tdep.c (skip_prologue): Restore comment with
1901 function description to its proper place.
1903 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1905 * NEWS: Mention gdbserver PowerPC improvements.
1907 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1909 * features/Makefile (WHICH): Add PowerPC register definitions.
1910 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
1911 (rs6000/powerpc-64-expedite): New macros.
1912 ($(outdir)/%.dat): Handle subdirectories.
1913 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
1914 regformats/rs6000/powerpc-e500.dat: New generated files.
1916 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1918 * ppc-linux-nat.c (ppc_linux_read_description): New.
1919 (_initialize_ppc_linux_nat): Set to_read_description.
1920 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
1922 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1924 * NEWS: Document target described register support for PowerPC.
1925 * ppc-tdep.h: Remove ppc_spr constants.
1926 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
1927 ppc_builtin_type_vec128 members.
1928 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
1929 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
1930 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
1931 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
1932 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
1933 * rs6000-tdep.c: Include preparsed descriptions.
1934 (init_sim_regno_table): Do not iterate over pseudo registers.
1935 Look up segment registers by name. Use sim_spr_register_name
1937 (rs6000_register_sim_regno): Call init_sim_regno_table here.
1938 (rs6000_builtin_type_vec128): Delete.
1939 (rs6000_register_name): Only handle SPE pseudo registers and upper
1940 halves. Call tdesc_register_name for everything else.
1941 (rs6000_register_type): Delete. Replace with...
1942 (rs6000_pseudo_register_type): ...this new function. Only handle
1943 SPE pseudo registers.
1944 (rs6000_register_reggroup_p): Delete. Replace with...
1945 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
1946 handle SPE pseudo registers.
1947 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
1949 (rs6000_register_to_value, rs6000_value_to_register): Remove check
1951 (e500_register_reggroup_p): Delete.
1952 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
1953 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
1954 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
1955 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
1956 (registers_powerpc, registers_403, registers_403GC, registers_505)
1957 (registers_860, registers_601, registers_602, registers_603)
1958 (registers_604, registers_750, registers_7400, registers_e500): Delete
1960 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
1962 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
1963 (variants): Delete outdated comment. Use standard target descriptions
1964 instead of "struct reg" arrays.
1965 (init_variants): Delete.
1966 (rs6000_gdbarch_init): Do not guess word size from the BFD
1967 architecture if we have a target description. Select a variant
1968 before creating a new architecture. Use the variant's target
1969 description if the target did not define a register layout.
1970 Validate target-supplied registers. Reject mismatches. Use
1971 fixed register numbers and new constants instead of magic
1972 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
1973 (_initialize_rs6000_tdep): Initialize the preparsed target
1975 * target-descriptions.c (tdesc_predefined_types): Add int128 and
1977 (tdesc_find_register_early): New function.
1978 (tdesc_numbered_register): Use it.
1979 (tdesc_register_size): New function.
1980 (tdesc_use_registers): Take a target_desc argument. Do not use
1981 gdbarch_target_desc.
1982 * target-descriptions.h (tdesc_use_registers): Update prototype
1984 (tdesc_register_size): New prototype.
1985 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
1986 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
1987 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
1988 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
1989 (rs6000-tdep.o): Update.
1990 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
1991 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
1992 * mips-tdep.c (mips_gdbarch_init): Likewise.
1994 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1996 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
1997 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
1998 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
1999 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2000 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2001 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2002 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
2005 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2007 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
2008 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
2009 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
2010 feature descriptions for standard PowerPC register sets.
2012 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
2013 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
2014 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
2015 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
2016 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
2017 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
2018 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
2019 target descriptions for PowerPC processors.
2021 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2023 * target-descriptions.c (tdesc_predefined_types): New.
2024 (tdesc_named_type): Use it.
2025 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
2026 (_intialize_target_descriptions): Register "maint print c-tdesc".
2027 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
2028 (cfiles, %.c): New rules.
2029 * features/arm-with-iwmmxt.c, features/mips-linux.c,
2030 features/mips64-linux.c: New generated files.
2032 * arm-linux-nat.c: Include preparsed description instead of
2034 (super_xfer_partial, arm_linux_xfer_partial): Remove.
2035 (arm_linux_read_description): New function.
2036 (_initialize_arm_linux_nat): Set to_read_description instead of
2037 to_xfer_partial. Initialize preparsed description.
2038 * config/arm/linux.mh (TDEP_XML): Delete.
2039 * mips-linux-nat.c: Include preparsed descriptions instead of
2041 (super_xfer_partial, mips_linux_xfer_partial): Remove.
2042 (mips_linux_read_description): New function.
2043 (_initialize_mips_linux_nat): Set to_read_description instead of
2044 to_xfer_partial. Initialize preparsed description.
2045 * config/mips/linux.mh (TDEP_XML): Delete.
2046 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
2047 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
2048 (mips64_linux_c): New macros.
2049 (arm-linux-nat.o, mips-linux-nat.o): Update.
2051 2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
2053 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
2054 Replace xasprintf by xstrprintf.
2055 symfile-mem.c (add_vsyscall_page): Ditto.
2057 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2059 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
2060 replacing use of global current_gdbarch.
2061 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
2062 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
2064 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
2065 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
2066 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
2067 (ia64_sigtramp_frame_cache): Update caller.
2069 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2071 * gdbarch.sh (deprecated_use_struct_convention): Remove.
2072 (extract_return_value, store_return_value): Remove.
2073 (return_value): Remove default implementation.
2074 * gdbarch.c, gdbarch.h: Regenerate.
2076 * stack.c (return_command): Remove compatibility hack.
2077 * arch-utils.c (legacy_return_value): Remove.
2078 * arch-utils.h (legacy_return_value): Likewise.
2080 * arch-utils.c (always_use_struct_convention): Remove.
2081 * arch-utils.h (always_use_struct_convention): Likewise.
2082 * value.c (generic_use_struct_convention): Remove.
2083 * defs.h (generic_use_struct_convention): Likewise.
2085 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2087 * avr-tdep.c (avr_return_value): New function.
2088 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
2089 set_gdbarch_extract_return_value.
2091 * fvr-tdep.c (frv_return_value): New function.
2092 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
2093 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2094 and set_gdbarch_deprecated_use_struct_convention.
2096 * ia64-tdep.c (ia64_use_struct_convention): Make static.
2097 Add check for structure, union, or array types.
2098 (ia64_extract_return_value): Make static.
2099 (ia64_store_return_value): Make static. Support multi-word values.
2100 (ia64_return_value): New function.
2101 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
2102 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2103 and set_gdbarch_deprecated_use_struct_convention.
2105 2007-10-12 Joel Brobecker <brobecker@adacore.com>
2107 * solib-target.c (solib_target_parse_libraries)
2108 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
2110 2007-10-12 Jim Blandy <jimb@codesourcery.com>
2112 * serial.h (struct serial_ops): Document read_prim to return zero
2114 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
2115 read_prim returns zero, not SERIAL_TIMEOUT.
2117 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2119 * alpha-mdebug-tdep.c: Include "gdb_string.h".
2120 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
2121 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
2122 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
2124 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
2125 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
2126 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
2127 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
2128 * config/alpha/tm-alpha.h: Remove file.
2130 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2132 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
2133 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
2135 * config/pa/tm-hppa.h: Delete file.
2136 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
2137 * config/pa/hppahpux.mt: Likewise.
2138 * config/pa/hppa.mt: Likewise.
2139 * config/pa/linux.mt: Likewise.
2140 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
2142 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2144 * config/arm/nm-nbsdaout.h: Remove file.
2145 * config/nm-nbsdaout.h: Likewise.
2146 * config/nm-nbsd.h: Likewise.
2148 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2150 * block.h (struct block): Remove "gcc_compile_flag" member.
2151 (BLOCK_GCC_COMPILED): Remove.
2152 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
2153 * buildsym.c (finish_block): Do not set it.
2154 * symmisc.c (dump_symtab_1): Do not dump it.
2156 * value.h (using_struct_return): Remove "gcc_p" argument.
2157 * value.c (using_struct_return): Likewise.
2158 * eval.c (evaluate_subexp_standard): Adapt callers.
2159 * infcall.c (call_function_by_hand): Likewise.
2160 * stack.c (return_command): Likewise.
2161 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2163 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
2164 * gdbarch.c, gdbarch.h: Regenerate.
2165 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
2166 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
2167 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2168 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
2169 (push_dummy_code, call_function_by_hand): Adapt callers.
2171 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2173 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
2174 (finish_command_continuation, finish_command): Adapt callers.
2176 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2178 * infcall.c (call_function_by_hand): Remove special handling
2179 for HP aCC compiled code.
2181 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2183 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
2184 reference. Fix endianness bugs.
2185 (cris_reg_struct_has_address): Remove.
2186 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
2187 and set_gdbarch_deprecated_use_struct_convention calls.
2189 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
2190 * gdbarch.c, gdbarch.h: Regenerate.
2191 * infcall.c (call_function_by_hand): Remove handling of
2192 deprecated_reg_struct_has_addr.
2194 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2195 Kazu Hirata <kazu@codesourcery.com>
2197 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
2198 checking watchpoint resources.
2200 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2202 * memattr.c (inaccessible_by_default): Change the initial
2205 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2208 * coffread.c (read_one_sym): Check for read errors.
2210 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
2212 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
2213 instead of "Linux 2.6.19" in comment.
2214 (linux_xfer_partial): Use "GNU/Linux target" instead of
2215 "Linux target" in comment.
2216 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
2217 (m68k_linux_get_sigtramp_info): Likewise.
2219 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2221 * MAINTAINERS (language support): List Joel and Paul as
2224 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2226 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
2228 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
2229 not set DEPRECATED_TM_FILE.
2230 * config/arm/tm-arm.h: Delete file.
2232 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
2234 * MAINTAINERS (Write After Approval): Add self.
2236 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2238 * buildsym.c (record_line): Remove empty lines followed by
2239 end-of-sequence markers.
2241 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2243 * configure.tgt: Recognize fido-*-elf.
2245 2007-10-10 Joel Brobecker <brobecker@adacore.com>
2249 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2251 * stack.c (print_frame_args, frame_info, return_command): Use
2252 get_regcache_arch or get_frame_arch to get at the current architecture
2253 by regcache or by frame, respectively.
2255 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2257 * rs6000-nat.c (fetch_register, store_register)
2258 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
2259 get_regcache_arch to get at the current architecture by regcache.
2261 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
2262 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
2263 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
2264 current_gdbarch by gdbarch.
2265 (rs6000_skip_trampoline_code, rs6000_register_to_value)
2266 (rs6000_value_to_register): Use get_frame_arch to get at the current
2267 architecture by frame_info.
2269 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2271 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
2272 get_regcache_arch to get at the current architecture by regcache.
2274 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2275 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
2276 get_regcache_arch to get at the current architecture by regcache.
2278 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
2279 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2280 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
2281 current architecture by regcache.
2283 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2285 * remote-mips.c (mips_wait, mips_fetch_registers)
2286 (mips_store_registers): Use get_regcache_arch to get at the
2287 current architecture by regcache.
2289 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
2290 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
2291 get at the current architecture by regcache.
2292 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
2293 architecture by frame_info.
2295 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2296 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
2297 the current architecture by regcache.
2299 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2300 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
2301 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
2302 current architecture by frame_info.
2303 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
2304 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
2305 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
2306 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
2307 get at the current architecture by regcache.
2309 * mips-linux-nat.c (mips_linux_register_addr)
2310 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
2311 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
2312 (mips64_linux_regsets_fetch_registers)
2313 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
2314 the current architecture by regcache.
2316 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
2317 get at the current architecture by frame_info.
2319 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2321 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
2322 current architecture by regcache.
2323 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
2324 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
2325 (mips_stub_frame_cache, mips_read_fp_register_single)
2326 (mips_read_fp_register_double, mips_print_fp_register)
2327 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
2328 at the current architecture by frame_info.
2329 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
2330 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
2331 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
2332 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
2333 (mips_o32_push_dummy_call, mips_o32_return_value)
2334 (mips_o64_push_dummy_call, mips_o64_return_value)
2335 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
2338 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2340 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
2341 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
2342 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
2343 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
2344 (xtensa_register_write_masked, xtensa_register_read_masked)
2345 (xtensa_supply_gregset, xtensa_store_return_value)
2346 (xtensa_extract_return_value): Use get_regcache_arch to get at the
2347 current architecture by regcache.
2348 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
2349 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
2350 architecture by frame_info.
2352 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2354 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
2355 (thumb_analyze_prologue): Move pv_area_store_would_trash call
2356 out of loop. Do not set cache->frameoffset.
2357 (arm_scan_prologue): Use prologue-value mechanism. Do not set
2358 frameoffset. Simplify framesize.
2359 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
2361 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
2363 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2365 * target.c (update_current_target): Call setup_target_debug.
2366 (push_target): Do not call it here.
2368 2007-10-09 Michael Snyder <msnyder@specifix.com>
2370 * MAINTAINERS: Update my email address.
2372 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2374 * xtensa-tdep.c: Replace following current-gdbarch based macros by
2376 (xtensa_pseudo_register_read)
2377 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
2378 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
2379 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
2380 (xtensa_pseudo_register_read)
2381 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
2382 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
2383 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
2384 (xtensa_frame_prev_register): NUM_AREGS.
2385 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
2386 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
2387 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
2388 (xtensa_supply_gregset, xtensa_frame_cache)
2389 (xtensa_frame_prev_register): WS_REGNUM.
2390 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
2391 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
2392 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
2393 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2394 (xtensa_register_reggroup_p): REGMAP.
2395 (call0_track_op): LITBASE_REGNUM.
2396 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
2397 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
2398 (xtensa_frame_prev_register, AREG_NUMBER)
2399 (xtensa_register_type): AR_BASE.
2400 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
2401 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
2402 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2403 (xtensa_frame_cache, xtensa_frame_prev_register)
2404 (xtensa_extract_return_value, xtensa_store_return_value)
2405 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
2406 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
2407 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
2408 (xtensa_frame_prev_register, xtensa_push_dummy_call)
2409 (call0_frame_cache): A1_REGNUM.
2410 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
2411 (xtensa_push_dummy_call): A4_REGNUM.
2412 (ARGS_FIRST_REG): A6_REGNUM.
2413 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2414 (xtensa_frame_prev_register): A15_REGNUM.
2415 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
2416 them in the appropriate source file:
2417 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
2418 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
2419 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
2420 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
2421 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
2422 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
2423 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
2424 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
2425 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
2426 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
2427 A13_REGNUM, A14_REGNUM, A15_REGNUM.
2429 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2431 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
2432 the current architecture by frame_info.
2433 (h8300_frame_prev_register
2434 (h8300_print_register): Replace current_gdbarch by gdbarch.
2435 (h8300_print_registers_info, h8300_register_type)
2436 (h8300_register_type): Likewise.
2438 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2440 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
2441 the current architecture by regcache.
2442 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
2443 (i386_linux_fetch_inferior_registers)
2444 (i386_linux_store_inferior_registers): Likewise.
2445 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
2446 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
2447 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2448 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
2449 (i386_extract_return_value, i386_store_return_value): Likewise.
2450 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
2451 the current architecture by frame_info.
2452 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
2453 (i386_register_to_value, i386_value_to_register): Likewise.
2455 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2457 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
2458 the current architecture by regcache.
2459 (monitor_store_register, monitor_store_registers): Likewise.
2461 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2463 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
2464 the current architecture by regcache.
2466 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2468 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
2471 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2473 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
2474 architecture by frame.
2475 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
2476 (inside_main_func, frame_sp_unwind): Likewise.
2478 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
2480 * solib-svr4.c (enable_break): Add the dynamic linker also if
2483 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2485 * MAINTAINERS (Write After Approval): Add self.
2487 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2489 * stabsread.c (read_huge_number): Initialize local variable to 0.
2491 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
2493 * p-lang.h (pascal_main_name): Add declaration.
2494 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
2495 (GPC_MAIN_PROGRAM_NAME_2): New constants.
2496 (pascal_main_name): New function.
2497 * symtab.c: Include p-lang.h.
2498 (find_main_name): Add call to pascal_main_name.
2499 * Makefile.in (symtab.o): Add dependency on p-lang.h.
2501 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2503 * stabsread.c (read_huge_number): Fix handling of octal
2504 representation when the bit width is known.
2505 (read_range_type): Record unsigned integral types with their size,
2506 when the type size is known.
2508 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
2510 * MAINTAINERS (Write After Approval): Add self.
2512 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2514 * breakpoint.c (print_one_breakpoint_location): ARI fix:
2515 Replace asprintf by xstrprintf.
2517 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2519 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
2520 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
2522 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2524 * linux-fork.c: Move "gdb_wait.h" include back to the position of
2525 <sys/wait.h> include before last commit.
2527 2007-10-08 Maciej W. Rozycki <macro@mips.com>
2529 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
2531 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2533 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
2534 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
2535 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
2536 (store_regs_user_thread, store_regs_kernel_thread): Use
2537 get_regcache_arch or get_frame_arch to get at the current architecture
2538 by regcache or by frame, respectively.
2540 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2542 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
2543 (sh64_pseudo_register_read, sh64_pseudo_register_write)
2544 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
2545 (sh64_print_register, sh64_media_print_registers_info)
2546 (sh64_compact_print_registers_info, sh64_unwind_sp)
2547 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
2548 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
2549 (sh64_frame_prev_register): Use FRAME to recognize current
2552 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2554 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2555 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2556 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
2557 current_gdbarch by gdbarch.
2558 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
2559 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2560 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
2561 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
2562 recognize current architecture.
2564 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2566 * remote.c (init_remote_state, fetch_register_using_p)
2567 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
2568 (store_register_using_P, store_registers_using_G)
2569 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
2570 get at the current architecture by regcache or by frame, respectively.
2572 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2574 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
2575 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
2576 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
2577 get_regcache_arch or get_frame_arch to get at the current architecture
2578 by regcache or by frame, respectively.
2579 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2580 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
2581 (store_register, old_store_inferior_registers, supply_gregset)
2582 (supply_fpregset, fill_fpregset): Likewise.
2583 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
2584 Replace current_gdbarch by gdbarch.
2586 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2588 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
2589 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
2590 get_frame_arch to get at the current architecture by regcache or by
2591 frame, respectively.
2593 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2595 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
2596 Replace current_gdbarch by gdbarch.
2597 * ia64-tdep.c (ia64_frame_prev_register
2598 (ia64_sigtramp_frame_prev_register)
2599 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
2600 get_frame_arch to get at the current architecture by regcache or by
2601 frame, respectively.
2602 * ia64-linux-nat.c (ia64_linux_fetch_register)
2603 (ia64_linux_fetch_registers, ia64_linux_store_register)
2604 (ia64_linux_store_registers): Likewise.
2606 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2608 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
2609 current_gdbarch by gdbarch.
2610 * hppa-linux-nat.c (fetch_register, store_register)
2611 (hppa_linux_fetch_inferior_registers)
2612 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
2613 get_frame_arch to get at the current architecture by regcache or by
2614 frame, respectively.
2615 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
2616 (hppa_hpux_unwind_adjust_stub): Likewise.
2617 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
2618 (hppa_hpux_fetch_inferior_registers)
2619 (hppa_hpux_store_inferior_registers): Likewise.
2621 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2623 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
2624 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
2625 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
2626 or get_frame_arch to get at the current architecture by regcache or by
2627 frame, respectively.
2628 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
2629 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
2630 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
2631 current_gdbarch by gdbarch.
2633 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2635 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
2636 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
2637 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
2638 get at the current architecture by regcache or by·frame, respectively.
2639 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
2642 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2644 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
2645 Use get_regcache_arch or get_frame_arch to get at the current
2646 architecture by regcache or by frame, respectively.
2647 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2648 * amd64-nat.c (amd64_supply_native_gregset)
2649 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
2651 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2653 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
2655 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2656 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
2657 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
2658 get_frame_arch to get at the current architecture by regcache or by
2659 frame, respectively.
2660 * alpha-nat.c (fetch_osf_core_registers): Likewise.
2662 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2664 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
2665 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
2666 current_gdbarch by gdbarch.
2667 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
2669 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2671 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
2672 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
2673 * regcache.c (regcache_raw_write): Use get_regcache_arch or
2674 get_frame_arch to get at the current architecture by regcache or by
2675 frame, respectively.
2677 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2679 * findvar.c (value_of_register, locate_var_value): Use
2680 get_regcache_arch or get_frame_arch to get at the current architecture
2681 by regcache or by frame, respectively.
2682 * findvar.c (default_value_from_register, value_from_register): Replace
2683 current_gdbarch by gdbarch.
2685 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2687 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
2689 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2691 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
2692 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
2694 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
2696 * remote.c (get_offsets): Only call free_symfile_segment_data if
2699 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
2701 * objc-exp.y: ARI fix: remove 4 PARAMS.
2703 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
2705 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
2706 news. Mention XML support for M68K in GDB 6.7.
2708 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
2710 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
2712 (init_vector_type): Use builtin_type_int32.
2714 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
2716 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
2717 size to enable bi-arch generate-core-file support.
2719 2007-10-02 Markus Deuling <deuling@de.ibm.com>
2721 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
2723 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2725 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
2727 * tui/tui-win.c (tui_initialize_win): New function for
2728 initializing tui's SIGWINCH signal handler.
2729 * tui/tui-win.h (tui_initialize_win): Declare.
2731 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
2733 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
2734 pointer to uintptr_t before casting to CORE_ADDR.
2736 2007-10-02 Markus Deuling <deuling@de.ibm.com>
2738 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
2740 2007-10-02 Mark Mitchell <mark@codesourcery.com>
2742 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
2743 * ser-mingw.c (enum select_thread_state): New type.
2744 (struct ser_console_state): Add have_started and thread_state.
2745 (select_thread_wait): New function.
2746 (thread_fn_type): New type.
2747 (create_select_thread): New function.
2748 (destroy_select_thread): Likewise.
2749 (start_select_thread): Likewise.
2750 (stop_select_thread): Likewise.
2751 (console_select_thread): Use new functions.
2752 (pipe_select_thread): Likewise.
2753 (file_select_thread): Likewise.
2754 (ser_console_wait_handle): Likewise.
2755 (ser_console_done_wait_handle): Likewise.
2756 (ser_console_close): Likewise.
2757 (free_pipe_state): Likewise.
2758 (pipe_wait_handle): Likewise.
2759 (pipe_done_wait_handle): Likewise.
2760 (struct net_windows_state): Derive from ser_console_state.
2761 (net_windows_select_thread): Use new functions.
2762 (net_windows_wait_handle): Likewise.
2763 (net_windows_done_wait_handle): Likewise.
2764 (net_windows_close): Likewise.
2766 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
2768 * inflow.c (terminal_ours_1): Remove useless line.
2770 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
2772 * mips-tdep.c (mips_read_fp_register_double): Correct check for
2774 (mips_print_fp_register): Correct check for even FP registers.
2775 (mips_virtual_frame_pointer): New function.
2776 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
2778 2007-09-30 Mike Frysinger <vapier@gentoo.org>
2780 * value.h (lookup_only_internalvar): New prototype.
2781 (create_internalvar): Likewise.
2782 * value.c (lookup_only_internalvar): New function.
2783 (create_internalvar): Likewise.
2784 (lookup_internalvar): Use new lookup_only_internalvar and
2785 create_internalvar functions.
2786 * parse.c (write_dollar_variable): Look up $ symbols in internal
2787 table first rather than last.
2789 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
2791 * linux-nat.c (linux_nat_new_thread): New variable.
2792 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
2793 linux_nat_switch_fork.
2794 (lwp_list): Make public.
2795 (add_lwp): Call linux_nat_new_thread.
2796 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
2798 (resume_callback): Clear lp->siginfo. Remove unused variable.
2799 (linux_nat_resume): Assert that the LWP list is already initialized.
2801 (save_siginfo): New.
2802 (stop_wait_callback, linux_nat_wait): Call it.
2803 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
2804 * linux-nat.h (struct lwp_info): Add siginfo.
2805 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
2808 * amd64-linux-nat.c (amd64_linux_dr): New.
2809 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
2810 (amd64_linux_dr_set): Take a PTID argument.
2811 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
2812 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
2813 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
2814 (amd64_linux_new_thread): New.
2815 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
2816 * i386-linux-nat.c (i386_linux_dr): New.
2817 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
2818 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
2819 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
2820 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
2821 (i386_linux_new_thread): New.
2822 (i386_linux_resume): Remove unnecessary PID check.
2823 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
2824 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
2825 (fetch_debug_register, fetch_debug_register_pair): Delete.
2826 (debug_registers): New.
2827 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
2828 ALL_LWPS and debug_registers.
2829 (ia64_linux_new_thread): New.
2830 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
2831 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
2832 * ppc-linux-nat.c (last_stopped_data_address): Delete.
2833 (saved_dabr_value): New.
2834 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
2836 (ppc_linux_new_thread): New.
2837 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
2838 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
2839 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
2840 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
2842 (s390_fix_watch_points): Take a PTID argument.
2843 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
2844 (_initialize_s390_nat): Call linux_nat_set_new_thread.
2846 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
2847 Jeff Johnston <jjohnstn@redhat.com>
2849 * breakpoint.c (watchpoints_triggered): New.
2850 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
2851 Check watchpoint_triggered instead. Combine handling for software
2852 and hardware watchpoints. Do not use target_stopped_data_address
2853 here. Always check a watchpoint if its scope breakpoint triggers.
2854 Do not stop for thread or overlay events. Improve check for
2855 triggered watchpoints without a value change.
2856 (watch_command_1): Insert the scope breakpoint first. Link the
2857 scope breakpoint to the watchpoint.
2858 * breakpoint.h (enum watchpoint_triggered): New.
2859 (struct breakpoint): Add watchpoint_triggered.
2860 (bpstat_stop_status): Update prototype.
2861 (watchpoints_triggered): Declare.
2862 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
2863 (stepped_after_stopped_by_watchpoint): Delete.
2864 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
2865 local. Handle infwait_step_watch_state. Update calls to
2866 bpstat_stop_status. Use watchpoints_triggered to check
2868 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
2869 (remote_stopped_data_address): Do not check it.
2871 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
2873 * configure.ac: Add $LIBINTL when testing libbfd.
2874 * configure: Regenerated.
2876 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
2878 * NEW: Mention pending breakpoint changes and
2879 support for breakpoints at multiple locations.
2881 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
2883 * arm-linux-tdep.c (arm_linux_software_single_step): New.
2884 (arm_linux_init_abi): Use it.
2885 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
2886 condition correctly.
2887 * arm-tdep.h (arm_get_next_pc): Declare.
2888 * Makefile.in (arm-linux-tdep.o): Update.
2890 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
2892 * varobj.c (install_new_value): Don't
2893 call value_get_print_value when a value is
2894 lazy. Update the print_value member in a
2897 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
2899 * breakpoint.c (create_breakpoint): Set
2900 condition on each location, not on the first
2901 location of breakpoint.
2903 2007-09-26 Jim Blandy <jimb@codesourcery.com>
2905 * remote.c (getpkt_sane): Fix error message. No animals were
2906 harmed in the making of this debugger.
2908 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2910 * p-typeprint.c: Fix 11 ARI reported problems.
2911 (pascal_print_type): Fix 4 operator at end of line.
2912 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
2913 using strncmp function.
2914 (pascal_type_print_base): Fix 2 operator at end of line.
2915 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
2916 using strncmp function.
2919 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2921 * Fix PR pascal/2231
2922 dwarf2read.c (read_subroutine_type):
2923 All pascal functions are prototyped.
2925 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2927 * Fix PR pascal/2283
2928 p-valprint.c (pascal_val_print): correct current language check.
2929 Also print array of char as strings.
2932 2007-09-26 David Ung <davidu@mips.com>
2933 Maciej W. Rozycki <macro@mips.com>
2935 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
2937 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
2939 * p-exp.y: Fix 12 ARI reported problems.
2940 (name_not_typename): Fix 2 operator at end of line issues.
2941 (yylex): Fix 3 operator at end of line issues.
2942 Replace 7 DEPRECATED_STREQ macros using strcmp function.
2944 2007-09-25 David Ung <davidu@mips.com>
2945 Maciej W. Rozycki <macro@mips.com>
2947 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
2948 rules return composite types in registers as appropriate.
2950 2007-09-24 Jim Blandy <jimb@codesourcery.com>
2952 * symfile.h (struct symfile_segment_data): Doc fixes.
2953 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
2954 Assert that we were passed some loaded segment addresses,
2955 and that sections' segment numbers are valid.
2956 Simplify offset calculation.
2957 * remote.c (get_offsets): Clarify selection of relocate-by-segment
2958 strategy, and set num_segments correctly. Delete redundant
2959 assignments to do_sections.
2961 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
2963 * frame.c (get_prev_frame_1): Also check for PC in the same register.
2965 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
2967 * breakpoint.c (remove_sal): New.
2968 (expand_line_sal_maybe): New.
2969 (create_breakpoints): Call expand_line_sal_maybe.
2970 (clear_command): Add comment.
2971 (breakpoint_re_set_one): Call expand_line_sal_maybe.
2972 * linespec.c (decode_indirect): Set explicit_pc to 1.
2973 (decode_all_digits): Set explicit_line to 1.
2974 (append_expanded_sal): New.
2975 (expand_line_sal): New.
2976 * linespec.h (expand_line_sal): Declare.
2977 * symtab.c (init_sal): Initialize explicit_pc
2979 * symtab.h (struct symtab_and_line): New fields
2980 explicit_pc and explicit_line.
2982 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
2984 * infcall.c (call_function_by_hand): Handle language-specific
2985 pass and return by reference.
2987 * cp-abi.c (cp_pass_by_reference): New.
2988 * cp-abi.h (cp_pass_by_reference): Declare.
2989 (struct cp_abi_ops): Add pass_by_reference.
2990 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
2991 (init_gnuv3_ops): Set pass_by_reference.
2993 * language.c (language_pass_by_reference): New.
2994 (default_pass_by_reference): New.
2995 (unknown_language_defn, auto_language_defn, local_language_defn): Add
2996 default_pass_by_reference.
2997 * langauge.h (struct language_defn): Add la_pass_by_reference.
2998 (language_pass_by_reference, default_pass_by_reference): Declare.
2999 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
3000 * c-lang.c (c_language_defn, asm_language_defn)
3001 (minimal_language_defn): Likewise.
3002 (cplus_language_defn): Add cp_pass_by_reference.
3003 * f-lang.c (f_language_defn): Add default_pass_by_reference.
3004 * jv-lang.c (java_language_defn): Likewise.
3005 * m2-lang.c (m2_language_defn): Likewise.
3006 * objc-lang.c (objc_language_defn): Likewise.
3007 * p-lang.c (pascal_language_defn): Likewise.
3008 * scm-lang.c (scm_language_defn): Likewise
3010 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
3012 Allow a code breakpoint to have several locations
3014 * breakpoint.h (enum enable_state): Remove the
3015 bp_shlib_disabled enumerator.
3016 (struct bp_location): New members shlib_disabled,
3017 global_next, enabled and function_name.
3018 Rename pending to condition_not_parsed.
3020 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
3021 (ALL_BP_LOCATIONS_SAFE): Likewise.
3022 (breakpoint_enabled): Don't check for pending.
3023 (condition_command): Free and update all locations of
3025 (insert_bp_location): Adjust.
3026 (software_breakpoint_inserted_here_p): Don't care
3027 if breakpoint is enabled, as soon as it's inserted.
3028 (print_it_typical): Print bpstat's location, not
3029 bpstat's breakpoint's location.
3030 (bpstat_stop_status): Iterate over all locations, not
3032 (print_breakpoint_location): New.
3033 (print_one_breakpoint): Renamed to
3034 (print_one_breakpoint_location): ...this. Take
3035 parameters to describe which location is being
3036 printed. Modify code to properly print header
3037 for several locations and individual locations.
3038 (print_one_breakpoint): Print all locations.
3039 (breakpoint_has_pc): New.
3040 (describe_other_breakpoints): Use the above.
3041 (check_duplicates): Renamed to...
3042 (check_duplicates_for): .. this.
3043 (check_duplicates): Use check_duplicates_for.
3044 (allocate_bp_location): Adjust.
3045 (set_raw_breakpoint_without_location): New,
3046 extracted from set_raw_breakpoint.
3047 (set_breakpoint_location_function): New.
3048 (set_raw_breakpoint): Use
3049 set_raw_breakpoint_without_location.
3050 (make_breakpoint_permanent): Mark all locations
3052 (disable_breakpoints_in_shlibs): Iterate over
3054 (disable_breakpoints_in_unloaded_shlib): Likewise.
3055 (re_enable_breakpoints_in_shlibs): Likewise.
3056 (mention): Say "pending" when breakpoint has
3057 zero locations. If breakpoint has more than one
3059 (add_location_to_breakpoint): New.
3060 (create_breakpoint): Accept symtabs_and_lines, not
3061 symtab_and_line. Pass extra sals to
3062 add_location_to_breakpoint.
3063 (create_breakpoints): Pass symtabs_and_lines to
3065 (break_command_1): Make pending breakpoints
3066 have zero locations.
3067 (do_captured_breakpoint): Remove wrong allocation.
3068 (clear_command): Iterate over all locations.
3069 (unlink_locations_from_global_list): Renamed
3070 from unlink_location_from_global_list. Remove
3072 (delete_breakpoint): Remove all locations.
3073 Iterate over all locations when deciding which
3074 other location to re-enable.
3075 (all_locations_are_pending): New.
3076 (update_breakpoint_locations): Renamed from
3077 update_breakpoint_location. Try to match old
3078 and new locations using names of containing
3080 (breakpoint_re_set_one): Adjust.
3081 (find_location_by_number): New.
3082 (disable_command): Allow disabling individual location.
3083 (enable_command): Allow enabling individual location.
3084 * breakpoint.c: Adjust all uses of breakpoint's
3085 enable state to for bp_shlib_disabled change.
3087 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3089 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
3090 (resolve_pending_breakpoint): Remove.
3091 (re_enable_breakpoints_in_shlibs): Remove.
3092 (unlink_locations_from_global_list): New.
3093 (update_breakpoint_locations): New.
3094 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
3095 Use parse_condition and update_breakpoint_location to
3096 reset breakpoint. Ignore 'symbol not found' error from
3098 (breakpoint_re_set): Don't emit newline before the
3099 reason why breakpoint is not reset.
3100 (do_enable_breakpoint): Don't specially process pending
3102 (free_bp_location): New.
3103 (break_command_1): For pending breakpoints, initialize
3104 all fields of a sal with zeroes.
3105 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
3106 * infcmd.c (post_create_inferior): Don't call
3107 re_enable_breakpoints_in_shlibs.
3108 * infrun.c (handle_inferior_event): Likewise.
3109 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3110 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3111 * win32-nat.c (get_win32_debug_event): Likewise.
3113 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3115 * breakpoint.c (create_breakpoint): Split from
3116 create_breakpoints, implementing most of its logic.
3117 Take just a single sal, single address string and
3118 single condition. Do not take parsed condition at
3120 (create_breakpoints): Just call create_breakpoint
3122 (find_condition_and_thread): New.
3123 (break_command_1): Use find_condition_and_thread.
3124 Do not keep parsed conditions.
3125 (do_captured_breakpoint): Don't convert
3126 condition string to struct expression.
3128 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3130 * breakpoint.h (struct breakpoint): Move the cond
3132 (struct bp_location): Here.
3133 * breakpoint.c (condition_command, bpstat_stop_status)
3134 (print_one_breakpoint, allocate_bp_location)
3135 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
3136 (create_exec_event_catchpoint, create_breakpoints)
3137 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
3138 (create_ada_exception_breakpoint, set_breakpoint_sal)
3139 (delete_breakpoint, breakpoint_re_set_one): Adjust.
3140 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
3142 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3144 Associate bp_stat with bp_location, not breakpoint.
3145 * breakpoint.h (breakpoint_at): Change type
3147 * breakpoint.c (bpstat_alloc): Take bp_location,
3149 (bpstat_find_breakpoint): Look at bpstat's location's
3150 owner, not at bpstat->breakpoint_at.
3151 (bpstat_find_step_resume_breakpoint): Likewise.
3152 (bpstat_num): Likewise.
3153 (print_it_typical): Likewise.
3154 (print_bp_stop_message): Likewise.
3155 (watchpoint_check): Likewise.
3156 (bpstat_what): Likewise.
3157 (bpstat_get_triggered_catchpoints): Likewise.
3158 (breakpoint_auto_delete): Likewise.
3159 (delete_breakpoint): Likewise.
3160 (bpstat_stop_status): Pass location, not breakpoint,
3161 to bpstat_alloc. Look at bpstat's location's
3162 owner, not at bpstat->breakpoint_at.
3164 2007-09-21 Jim Blandy <jimb@codesourcery.com>
3166 * macrotab.h (new_macro_table): Document that removing information
3167 from an obstack/bcache-managed macro table leaks memory.
3168 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
3169 that data is never freed in obstack/bcache-managed macro tables,
3170 just leak the storage.
3171 (macro_undef): If we're undefining a macro at exactly the same
3172 source location that we defined it, simply remove the definition
3175 2007-09-21 Joel Brobecker <brobecker@adacore.com>
3177 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
3178 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
3179 Adjust the struct sym_fns object accordingly by setting
3180 the new field to NULL.
3181 * xcoffread.c (aix_process_linenos): Make static.
3182 (xcoff_sym_fns): Set new field to aix_process_linenos.
3183 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
3184 by call to new the new sym_fns sym_read_linetable function.
3185 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
3186 * config/rs6000/tm-rs6000.h: Delete.
3188 2007-09-21 David Ung <davidu@mips.com>
3189 Maciej W. Rozycki <macro@mips.com>
3191 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
3192 rules do not treat composite types specially.
3194 2007-09-20 Maciej W. Rozycki <macro@mips.com>
3196 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
3197 (mips16_in_function_epilogue_p): Likewise.
3198 (mips_in_function_epilogue_p): Likewise.
3199 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
3201 2007-09-19 Joel Brobecker <brobecker@adacore.com>
3203 * configure.ac: Add check for "etext".
3204 * configure, config.in: Regenerate.
3205 * maint.c (TEXTEND): Only define if either _etext or etext
3207 Disable the profiling functionality if TEXTEND is not defined.
3209 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
3211 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
3212 address register. Correct the call to frame_id_build.
3213 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
3216 2007-09-18 Joel Brobecker <brobecker@adacore.com>
3218 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
3219 the linetable past the function end.
3221 2007-09-18 James E. Wilson <wilson@specifix.com>
3223 * MAINTAINERS: Update my email address.
3225 2007-09-18 Jerome Guitton <guitton@adacore.com>
3227 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
3228 (inf_ttrace_delete_dying_threads_callback): New function.
3229 (inf_ttrace_resume): After resuming the execution, iterate over
3230 the dying threads to delete them for the thread list.
3231 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
3232 mark the corresponding thread as dying instead of removing it
3233 from the thread list.
3234 (inf_ttrace_thread_alive): return 0 for dying threads.
3236 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3238 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
3239 that return_frame is not null.
3241 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3243 * solib-svr4.c: Add include of "auxv.h".
3244 (enable_break): Use the AT_BASE auxiliary entry if available.
3245 * Makefile.in (solib-svr4.o): Update dependencies.
3247 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3249 * NEWS: Create a new section for the next release branch.
3250 Rename the section of the current branch, now that it has
3253 2007-09-17 Jerome Guitton <guitton@adacore.com>
3255 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
3256 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
3258 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
3260 * mi/mi-cmds.c (mi_cmds): Register -list-features.
3261 * mi/mi-cmds.h (mi_cmd_list_features): New.
3262 * mi/mi-main.c (mi_cmd_list_features): New.
3264 2007-09-11 Joel Brobecker <brobecker@adacore.com>
3266 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
3267 * version.in: Bump version to 6.7.50-20070911-cvs.
3269 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3271 * thread.c (free_thread): Do not delete the step resume breakpoint
3274 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3276 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
3277 * corelow.c (core_read_description): New.
3278 (init_core_ops): Set to_read_description.
3279 * gdbarch.sh: Add gdbarch_core_read_description.
3280 * mips-linux-tdep.c (mips_linux_core_read_description): New.
3281 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
3282 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
3283 (mips_register_g_packet_guesses): Use them.
3284 (_initialize_mips_tdep): Initialize them.
3285 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
3286 * gdbarch.h, gdbarch.c: Regenerated.
3288 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3290 * infrun.c (stepping_past_breakpoint): New global variable.
3291 (stepping_past_breakpoint_ptid): Likewise.
3292 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
3293 Only switch threads if we need to single-step over a breakpoint hit
3294 in the previously selected thread. If stepping, remember previous
3295 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
3296 switch_to_thread instead of copying its contents.
3297 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
3298 prepare_to_proceed returns true.
3299 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
3300 (context_switch): Call switch_to_thread.
3301 (handle_inferior_event): Switch back to previous thread if requested
3302 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
3303 * gdbthread.h (switch_to_thread): Add prototype.
3304 * thread.c (switch_to_thread): Make global.
3306 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
3308 * p-valprint.c: Fix 7 ARI reported problems.
3309 (pascal_val_print): Fix one operator at end of line issue.
3310 Use paddress function to remove use of
3311 deprecated_print_address_numeric function (2 times).
3312 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
3313 (pascal_value_print): Fix 3 operator at end of line issues.
3315 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
3318 * arm-tdep.c (arm_in_call_stub): Delete.
3319 (arm_skip_stub): Handle from_arm and from_thumb stubs.
3321 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
3323 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
3326 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3327 Jim Blandy <jimb@codesourcery.com>
3329 * NEWS: Update description of string changes. Mention print/s.
3330 * c-valprint.c (textual_element_type): New.
3331 (c_val_print): Use it. Do not skip address printing for pointers
3332 with a string format.
3333 (c_value_print): Doc update.
3334 * dwarf2read.c (read_array_type): Use make_vector_type.
3335 * gdbtypes.c (make_vector_type): New.
3336 (init_vector_type): Use it.
3337 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
3338 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
3339 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
3340 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
3341 (make_vector_type): New.
3342 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
3343 Call the language print routine for string format.
3344 (print_scalar_formatted): Call val_print for string format. Handle
3345 unsigned original types for char format.
3346 (validate_format): Do not reject string format.
3347 * stabsread.c (read_type): Use make_vector_type.
3348 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
3350 2007-09-04 Michael Snyder <msnyder@access-company.com>
3352 * expprint.c (print_subexp_standard): Check strchr for null.
3353 * Makefile.in (expprint.o): Depend on gdb_assert.h.
3355 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
3357 * stabsread.c (patch_block_status): Guard against null.
3358 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
3360 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3362 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
3363 in internal error message.
3365 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3366 Daniel Jacobowitz <dan@codesourcery.com>
3368 * infcmd.c (post_create_inferior): Update comment.
3369 (run_command_1): Always call post_create_inferior with 0 as
3372 * i386-cygwin-tdep.h: New.
3373 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
3374 (win32_xfer_shared_library): Make it extern.
3376 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
3378 (win32_so_ops): Delete.
3379 (get_relocated_section_addrs): Delete.
3380 (solib_symbols_add): Delete.
3381 (register_loaded_dll): Delete.
3382 (win32_make_so): New.
3383 (handle_load_dll): Use win32_make_so.
3384 (win32_free_so): Free the passed in so.
3385 (win32_relocate_section_addresses): Delete.
3386 (win32_solib_create_inferior_hook): Delete.
3387 (handle_unload_dll): Don't add PE offset here. Free so with
3388 win32_free_so instead of free_so.
3389 (win32_special_symbol_handling): Delete.
3390 (get_win32_debug_event): Remove unneeded calls. Set state to
3391 TARGET_WAITKIND_LOADED on a dll unload.
3392 (do_initial_win32_stuff): Clear cygwin_load_start and
3394 (map_code_section_args): Delete.
3395 (dll_code_sections_add): Delete.
3396 (core_section_load_dll_symbols): Delete.
3397 (win32_xfer_shared_libraries): New.
3398 (win32_current_sos): Delete.
3399 (win32_xfer_partial): New.
3400 (open_symbol_file_object): Delete.
3401 (in_dynsym_resolve_code): Delete.
3402 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
3403 of win32_ops. Remove win32_so_ops settings. Don't set
3404 current_target_so_ops here.
3406 * Makefile.in (i386_cygwin_tdep_h): New variable.
3407 (i386-cygwin-tdep.o): Update dependencies.
3408 (win32-nat.o): Update dependencies.
3410 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3411 Daniel Jacobowitz <dan@codesourcery.com>
3413 * gdbarch.sh (core_xfer_shared_libraries): New.
3415 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3417 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
3419 * xml-support.c (gdb_xml_parse): Debug output tweaks.
3420 (xml_escape_text): New.
3421 * xml-support.h (xml_escape_text): Declare.
3423 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
3424 * config/i386/cygwin.mt (TDEPFILES): ... here.
3426 * win32-nat.c: (fetch_elf_core_registers): Delete.
3427 (win32_elf_core_fn): Delete.
3428 (_initialize_core_win32): Delete.
3430 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
3431 "xml-support.h" and "gdbcore.h".
3432 (i386_win32_gregset_reg_offset): New.
3433 (I386_WIN32_SIZEOF_GREGSET): New.
3434 (i386_win32_regset_from_core_section): New.
3435 (win32_xfer_shared_library): New.
3436 (struct cpms_data): New.
3437 (core_process_module_section): New.
3438 (win32_core_xfer_shared_libraries): New.
3439 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
3440 gregset_num_regs, sizeof_gregset members of tdep. Register
3441 regset_from_core_section and core_xfer_shared_libraries callbacks.
3443 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
3444 * gdbarch.h, gdbarch.c: Regenerate.
3446 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3448 * corelow.c (core_xfer_partial): Pass writebuf to
3449 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
3451 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
3453 * arm-tdep.h (arm_skip_stub): Declare.
3454 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
3456 (arm_pe_skip_trampoline_code): New function.
3457 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
3458 gdbarch_skip_trampoline_code callback.
3459 * Makefile.in (arm-wince-tdep.o): Update dependencies.
3461 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3463 * MAINTAINERS: Move Fred Fish to Past Maintainers.
3465 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3467 * configure.ac: Add --with-expat.
3468 * configure: Regenerated.
3470 2007-09-03 Andreas Schwab <schwab@suse.de>
3472 * configure.ac: Accept --with-system-readline.
3473 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
3474 * configure: Regenerate.
3475 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
3477 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
3479 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
3480 Daniel Jacobowitz <dan@codesourcery.com>
3482 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
3484 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3486 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
3488 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
3490 * top.c (print_gdb_version): Update for GPL version 3.
3492 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3494 * NEWS: Mention the build-id .debug files verification.
3496 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3498 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
3500 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3502 * Makefile.in (symfile.o): Update dependencies.
3503 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
3504 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
3505 (struct build_id): New structure.
3506 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
3507 (find_separate_debug_file): New variable BUILD_ID.
3508 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
3510 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3512 * varobj.c (struct varobj): Fix comment
3513 for the type member not to lie when it can be
3516 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3518 Implement -var-info-path-expression.
3520 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
3522 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
3523 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
3524 * varobj.c (struct varobj): New field 'path_expr'.
3525 (c_path_expr_of_child, cplus_path_expr_of_child)
3526 (java_path_expr_of_child): New.
3527 (struct language_specific): New field path_expr_of_child.
3528 (varobj_create): Initialize the path_expr field.
3529 (varobj_get_path_expr): New.
3530 (new_variable): Initialize the path_expr field.
3531 (free_variable): Free the path_expr field.
3532 (adjust_value_for_children_access): New parameter
3534 (c_number_of_children): Adjust.
3535 (c_describe_child): New parameter CFULL_EXPRESSION.
3536 Compute full expression.
3537 (c_value_of_child, c_type_of_child): Adjust.
3538 (cplus_number_of_children): Adjust.
3539 (cplus_describe_child): New parameter CFULL_EXPRESSION.
3540 Compute full expression.
3541 (cplus_name_of_child, cplus_value_of_child)
3542 (cplus_type_of_child): Adjust.
3543 * varobj.h (varobj_get_path_expr): Declare.
3545 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3547 * mi/mi-cmd-var.c (print_varobj): If a varobj
3548 type is NULL, don't try to print it.
3550 2007-08-30 Alan Modra <amodra@bigpond.net.au>
3552 * ppc-linux-nat.c (right_fill_reg): Delete.
3553 (supply_gregset): Use ppc_supply_gregset.
3554 (supply_fpregset): Use ppc_supply_fpregset.
3555 (fill_gregset): Use ppc_collect_gregset.
3556 (fill_fpregset): Use ppc_collect_fpregset.
3557 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
3558 (right_supply_register, ppc_linux_supply_gregset): Delete.
3559 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
3560 (ppc_linux_supply_fpregset): Delete.
3561 (ppc_linux_collect_gregset): New function.
3562 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
3563 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
3564 ppc_linux_supply_gregset, and ppc_collect_gregset.
3565 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
3566 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
3567 (ppc_linux_regset_from_core_section): Update.
3568 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
3569 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
3570 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
3571 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
3572 (ppcobsd_collect_gregset): Likewise.
3573 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
3574 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
3575 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
3576 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
3577 (rs6000_aix64_reg_offsets): Likewise.
3578 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
3579 ppc_floating_point_unit_p.
3580 (rs6000_aix_collect_regset): Similarly.
3581 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
3582 when regsize is larger than regcache register size.
3583 (ppc_collect_reg): Similarly zero pad when regsize is larger than
3584 regcache register size.
3585 (ppc_greg_offset): New function, split out from..
3586 (ppc_supply_gregset): ..here. Separate code handling all regs from
3587 single reg case. Correct xer offset.
3588 (ppc_fpreg_offset): New function, split out from..
3589 (ppc_supply_fpregset): ..here. Separate code handling all regs from
3591 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
3592 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
3593 a fp unit, instead return if no fp.
3595 2007-08-29 Jim Blandy <jimb@codesourcery.com>
3597 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
3598 this code has not been compiled for two years.
3600 2007-08-29 Michael Snyder <msnyder@access-company.com>
3602 * event-top.c (gdb_readline2): Return after EOF.
3604 2007-08-29 Joel Brobecker <brobecker@adacore.com>
3606 * symtab.c: Remove a function that has been commented out 3 years ago.
3608 2007-08-29 Randolph Chung <tausq@debian.org>
3610 * hppa-tdep.c (hppa32_cannot_fetch_register)
3611 (hppa64_cannot_fetch_register): New functions.
3612 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
3613 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
3615 2007-08-28 Michael Snyder <msnyder@access-company.com>
3617 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
3618 check for null before calling check_typedef.
3620 * NEWS: Mention Coverity bug fixes.
3622 2007-08-27 Markus Deuling <deuling@de.ibm.com>
3624 * spu-tdep.c (spu_pointer_to_address): New function.
3625 (spu_integer_to_address): Likewise.
3626 (spu_gdbarch_init): Add spu_pointer_to_address and
3627 spu_integer_to_address to gdbarch.
3629 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
3631 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
3633 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3635 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
3636 that contains the GDB license.
3637 * copying.awk: Adjust to the GPLv3 wording.
3638 * copying.c: Regenerate.
3640 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3642 * copying.awk: Protoization, and i18n markup.
3644 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3646 * config/djgpp/djconfig.sh: Switch license to GPLv3.
3647 * copyright.sh: Likewise.
3648 * gdb-events.sh: Likewise.
3649 * gdb_gcore.sh: Likewise.
3650 * gdb_mbuild.sh: Likewise.
3651 * gdbarch.sh: Likewise.
3652 * observer.sh: Likewise.
3653 * features/feature_to_c.sh: Likewise.
3654 * regformats/regdat.sh: Likewise.
3656 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3658 Switch the license of all .c files to GPLv3.
3659 Switch the license of all .h files to GPLv3.
3660 Switch the license of all .cc files to GPLv3.
3662 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3664 * configure.ac: Switch license to GPLv3.
3666 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3668 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
3669 determine the file's FPU type.
3671 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3673 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
3674 (mips_n32n64_push_dummy_call): Always increment float_argreg along
3675 with argreg. Use mips_n32n64_fp_arg_chunk_p.
3677 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3679 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
3681 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
3682 (elf_lookup_lib_symbol): Fix formatting.
3684 2007-08-21 Michael Snyder <msnyder@access-company.com>
3686 * dbxread.c (read_dbx_symtab): Guard null deref.
3689 * valops.c (find_overload_match): Guard against NULL.
3691 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3693 * MAINTAINERS (Patch Champions): Remove self.
3695 2007-08-21 Chris Smith <chris.smith@st.com>
3697 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
3700 2007-08-18 Michael Snyder <msnyder@access-company.com>
3702 * stabsread.c (dbx_lookup_type): Memory leak.
3704 * event-loop.c (delete_async_signal_handler): Move pointer null
3705 test to before pointer dereference.
3707 * ui-out.c (append_header_to_list): Possible cut and paste error.
3709 * MAINTAINERS: white space tweak.
3711 2007-08-17 Michael Snyder <msnyder@access-company.com>
3713 * stack.c (print_frame): Memory leak.
3715 * completer.c (filename_completer): Avoid memory leak.
3716 Remove unnecessary nested block.
3718 * c-exp.y (parse_number): Memory leak.
3720 * completer.c (location_completer): Must free 'fn_list', except
3721 in the one case where it is returned (as 'list').
3723 * varobj.c (value_of_root): Memory leak.
3725 * gdbtypes.h (virtual_base_list): Remove export decl.
3726 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
3727 (virtual_base_index): Memory leak.
3728 (virtual_base_index_skip_primaries): Ditto.
3730 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
3732 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
3733 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
3734 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
3735 (xtensa_read_register): New function.
3736 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
3737 (xtensa_insn_kind): New types.
3738 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
3739 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
3740 (xtensa_verify_config, xtensa_pseudo_register_read)
3741 (xtensa_pseudo_register_write, xtensa_extract_return_value)
3742 (xtensa_store_return_value)
3743 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
3744 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
3745 (xtensa_frame_this_id, xtensa_frame_prev_register)
3746 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
3747 (call0_frame_cache, call0_frame_get_reg_at_entry)
3748 (call0_classify_opcode, call0_track_op)
3749 (call0_analyze_prologue, call0_frame_cache): New functions.
3751 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
3753 * breakpoint.c (bpstat_free): New.
3754 (bpstat_clear): Use bpstat_free.
3755 (delete_breakpoint): Document why we cannot
3756 remove bpstats from stop_bpstat.
3757 * breakpoint.h (bpstat_free): Declare.
3759 2007-08-16 Michael Snyder <msnyder@access-company.com>
3761 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
3763 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
3764 Joel Brobecker <brobecker@adacore.com>
3766 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
3768 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
3769 Joel Brobecker <brobecker@adacore.com>
3771 * ada-lang.c (possible_user_operator_p): Alternative fix to last
3772 checkin guarding against NULL.
3774 2007-08-14 Michael Snyder <msnyder@access-company.com>
3776 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
3777 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
3778 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
3779 go at beginning of new line.
3781 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
3782 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
3783 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
3784 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
3785 tui-winsource.h, tui.c, tui.h: Function declarations and
3786 definitions, wrap long lines.
3788 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
3789 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
3790 Reformat block comments to GNU standard.
3792 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
3793 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
3794 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
3795 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
3796 tui.c, tui.h: Comment reformatting to coding standard (capitals,
3797 spaces after periods, etc).
3799 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
3800 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
3801 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
3802 tui-winsource.h: Whitespace changes, fix pointer declarations
3805 2007-08-14 Joel Brobecker <brobecker@adacore.com>
3806 Michael Snyder <msnyder@access-company.com>
3808 * ada-lang.c (field_alignment): Guard against NULL.
3810 2007-08-14 Joel Brobecker <brobecker@adacore.com>
3812 * MAINTAINERS (Global Maintainers): Add self.
3814 2007-08-14 Michael Snyder <msnyder@access-company.com>
3816 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
3818 * ada-lang.c (possible_user_operator_p): Guard against NULL.
3820 * varobj.c (cplus_describe_child): Guard against null.
3821 Use "NULL" instead of "0" to initialize pointers.
3823 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
3825 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
3826 to match any gdbarch with matching OSABI. Set default ABI and FPU
3827 after running the OSABI handler.
3829 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
3831 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
3832 * config/i386/linux.mt (TDEPFILES): ...to here.
3834 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
3836 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
3837 the 'silent' parameter and code to implement that.
3838 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
3840 * win32-nat.c: Adjust.
3843 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
3845 * breakpoint.c (update_breakpoints_after_exec): Don't
3846 set address to zero.
3848 2007-08-13 Michael Snyder <msnyder@access-company.com>
3850 * valops.c: Whitespace clean-up.
3852 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
3854 * event-top.c (command_line_handler): Memory leak.
3856 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
3857 No need to make copy.
3859 * source.c (find_source_lines): Require symtab 's'.
3861 2007-08-11 Michael Snyder <msnyder@access-company.com>
3863 * completer.c: Spelling fix in comments.
3865 2007-08-10 Michael Snyder <msnyder@access-company.com>
3867 * gdbtypes.c: Coding standard cleanup.
3868 * gdbtypes.c: Comment/whitespace cleanup.
3870 * stabsread.c (read_huge_number): Attempt to compute value before
3871 values that it depends on.
3873 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
3874 (decode_objc): Use "NULL" instead of 0.
3875 (find_method): Ditto.
3876 (decode_all_digits): Ditto.
3877 (decode_dollar): Ditto.
3879 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
3881 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
3883 * solib-svr4.c (enable_break): Don't free tmp_pathname until
3886 * completer.c: Comment/whitespace cleanup.
3888 2007-08-10 Joel Brobecker <brobecker@adacore.com>
3890 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
3892 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
3894 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
3895 allocated file descriptors.
3897 2007-08-10 Joel Brobecker <brobecker@adacore.com>
3899 * Makefile.in: Minor cleanup throughout; add some missing variables,
3900 add some missing rules, remove some rules that are no longer needed,
3901 and fix the dependencies in several rules.
3903 2007-08-10 Ludovic Courtès <ludo@gnu.org>
3905 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
3906 (scm_lang_h, scm_tags_h): New.
3907 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
3908 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
3909 * defs.h (enum language): Add `language_scm'.
3911 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
3914 2007-08-09 Ludovic Courtès <ludo@gnu.org>
3916 * MAINTAINERS (Write After Approval): Add myself.
3918 2007-08-09 Michael Snyder <msnyder@access-company.com>
3920 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
3922 2007-08-09 Joel Brobecker <brobecker@adacore.com>
3924 * solib-som.c (som_relocate_section_addresses): Stop saving
3925 the $CODE$ section in the so_list structure.
3927 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
3929 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
3930 (xtensa_register_group_t): Add entries for coprocessors.
3931 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
3932 (xtensa_add_reggroups): Likewise.
3933 (xtensa_register_reggroup_p): Likewise.
3934 (xtensa_coprocessor_register_group): New function.
3937 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3939 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
3941 2007-08-08 Michael Snyder <msnyder@access-company.com>
3943 * target.c (target_read_string): Guard against null.
3945 * varobj.c (value_of_root): Move alloc after return to avoid leak.
3947 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
3948 (tui_set_layout_for_display_command): Mem leak.
3950 * top.c (command_line_input): Memory leak.
3952 * solib-svr4.c (open_symbol_file_object): Memory leak.
3953 (svr4_current_sos): Ditto.
3954 (enable_break): Ditto.
3956 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
3958 * dwarf2read.c (add_partial_symbol): Memory leak.
3960 2007-08-06 Michael Snyder <msnyder@access-company.com>
3962 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
3964 2007-08-05 Jim Blandy <jimb@codesourcery.com>
3966 * macroexp.c (init_buffer): Remove testing code that overrides the
3967 caller's length guess.
3968 (gather_arguments): Use a larger initial size, now that the vector
3969 growth code has been exercised.
3971 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
3973 * solib-target.c (solib_target_relocate_section_addresses): Add
3974 orig_delta to addr_high.
3976 2007-08-04 Michael Snyder <msnyder@access-company.com>
3978 * remote-fileio.c (remote_fileio_func_write): Memory leak.
3980 * breakpoint.c (print_one_breakpoint): Off by one error.
3982 * tracepoint.c (add_register): Off by one error.
3983 (stringify_collection_list): Free malloc buffer.
3985 2007-08-03 Michael Snyder <msnyder@access-company.com>
3987 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
3988 stop memory leak, straighten out cleanups.
3990 * jv-lang.c (java_link_class_type): Guard against NULL.
3992 2007-08-02 Michael Snyder <msnyder@access-company.com>
3994 * gdbtypes.c (create_set_type): Test should only be done within
3995 the preceeding if block. Otherwise, variable is uninitialized.
3997 * gdbtypes.c (check_typedef): Guard NULL.
3999 2007-08-01 Michael Snyder <msnyder@access-company.com>
4001 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
4002 avoid dereference in lookup_cmd_1.
4004 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
4005 clean up long lines.
4006 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
4007 (tui_alloc_win_info): Ditto.
4008 (tui_add_content_elements): Ditto.
4009 * tui/tui-file.c (tui_file_magic): Ditto.
4011 2007-07-31 Michael Snyder <msnyder@access-company.com>
4013 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
4014 True and false paths are mutually exclusive.
4016 * event-top.c (command_line_handler): Add pedantic return.
4018 * f-valprint.c (info_common_command): Bail out to prevent null
4019 pointer deref. Break up a long line.
4021 * exec.c (xfer_memory): Remove redundant condition from 'if'.
4023 * symfile.c (reread_separate_symbols): Free xmalloced memory.
4025 * printcmd.c (build_address_symbolic): Remove dead code and dead
4028 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
4030 * linespec.c (minsym_found): Advance to the next line if possible.
4032 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
4034 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
4035 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
4036 solib-svr4.o, and add solib-target.o
4038 2007-07-27 Michael Snyder <msnyder@access-company.com>
4040 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
4042 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
4044 * MAINTAINERS (Write After Approval): Add myself.
4046 2007-07-26 Maciej W. Rozycki <macro@mips.com>
4048 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
4051 2007-07-25 Maciej W. Rozycki <macro@mips.com>
4053 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
4055 2007-07-24 Michael Snyder <msnyder@access-company.com>
4057 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
4058 'buffer' must cover both branches that call strcmp (Coverity).
4060 * stack.c (print_frame_args): Check return value of lookup_symbol.
4062 * ax-gdb.c (find_field): Guard against null ptr.
4064 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4066 * regformats/reg-spu.dat: Fix order of npc, id registers.
4068 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4070 * target.c (memory_xfer_partial): Accesses to unmapped overlay
4071 sections should always go to the executable file.
4073 2004-07-20 Chris Dearman <chris@mips.com>
4075 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
4076 prologue instructions.
4078 2007-07-20 Maciej W. Rozycki <macro@mips.com>
4080 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
4083 2007-07-20 Chris Dearman <chris@mips.com>
4084 Maciej W. Rozycki <macro@mips.com>
4086 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
4089 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
4090 Daniel Jacobowitz <dan@codesourcery.com>
4092 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
4093 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
4095 * NEWS: Mention gdbserver DLL support.
4097 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
4099 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
4101 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
4103 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
4106 2007-07-13 Kevin Buettner <kevinb@redhat.com>
4108 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
4111 2007-07-12 Kevin Buettner <kevinb@redhat.com>
4113 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
4114 (mep_analyze_prologue): Add case for BRA instruction.
4116 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
4118 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
4120 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
4122 * breakpoint.c: Include "top.h".
4123 (breakpoint_1): Don't set convenience variable $_ if server prefix
4125 (_initialize_breakpoint): Describe this behaviour in command help.
4127 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
4129 * solib-target.c (library_list_start_segment): Cast address to
4132 2007-07-06 Mark Kettenis <kettenis@gnu.org>
4134 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
4135 for terminated processes.
4137 2007-07-05 Michael Snyder <msnyder@access-company.com>
4139 * event-top.c (cli_command_loop): Prompt string can (and should)
4140 be freed after call to readline (Coverity). Also move local var
4141 declarations into block where they are used.
4143 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
4144 should) be freed after call to readline (Coverity). Also move
4145 local var declarations into block where they are used.
4147 2007-07-03 Andreas Schwab <schwab@suse.de>
4149 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
4152 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
4153 Thiago Bauermann <bauerman@br.ibm.com>
4154 Joseph S. Myers <joseph@codesourcery.com>
4155 Daniel Jacobowitz <dan@codesourcery.com>
4157 * remote.c (remote_check_symbols): Use
4158 gdbarch_convert_from_func_ptr_addr.
4159 * infcall.c (find_function_addr): Handle function descriptors
4160 without debugging information.
4161 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
4162 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
4163 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
4164 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
4165 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
4166 allow SEC_CODE and SEC_DATA.
4167 (enable_break): Update calls. Pass current_target to solib_add.
4168 Use gdbarch_convert_from_func_ptr_addr.
4170 2007-07-03 Ilko Iliev <iliev@ronetix.at>
4171 Daniel Jacobowitz <dan@codesourcery.com>
4173 * symfile.c (print_transfer_performance): Avoid integer overflow.
4176 2007-07-03 Markus Deuling <deuling@de.ibm.com>
4178 * cp-namespace.c (lookup_symbol_file): Add block to
4179 lookup_symbol_global call.
4180 * Makefile.in (solist_h): Add dependency on symtab header.
4181 (symtab.o): Add dependency on solist header.
4182 * solib.c (solib_global_lookup): New function.
4183 * solib-svr4.c (scan_dyntag): Likewise.
4184 (elf_locate_base): Call helper routine scan_dyntag.
4185 (elf_lookup_lib_symbol): New function.
4186 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
4187 * solist.h (symtab.h): New include.
4188 (struct target_so_ops): New member lookup_lib_global_symbol.
4189 (solib_global_lookup): New prototype.
4190 * symtab.c: New include solist.h.
4191 (lookup_objfile_from_block): New function.
4192 (lookup_global_symbol_from_objfile): New function.
4193 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
4194 (lookup_symbol_global): Call library-specific lookup procedure.
4195 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
4197 * NEWS: Document framework.
4199 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4201 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
4204 * cli/cli-script.c (build_command_line): Update NULL check.
4206 2007-07-02 Michael Snyder <msnyder@access-company.com>
4208 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
4210 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4212 * Makefile.in (XMLFILES): Add library-list.dtd.
4213 (ALLDEPFILES): Add solib-target.o.
4214 (solib-target.o): New rule.
4215 * remote.c (PACKET_qXfer_libraries): New constant.
4216 (remote_protocol_features): Add qXfer:libraries:read.
4217 (remote_wait): Recognize library stop replies.
4218 (remote_async_wait): Likewise. Fix typo.
4219 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
4220 (init_remote_async_ops): Fix typo.
4221 (_initialize_remote): Register "set remote library-info-packet".
4222 * solib-som.c (som_current_sos): Set addr_low and addr_high.
4223 * solib-target.c: New file.
4224 * solib.c (solib_map_sections): Use addr_low and addr_high instead
4226 (info_sharedlibrary_command): Likewise.
4227 (solib_add_library, solib_remove_library): New.
4228 * solist.h (struct so_list): Replace textsection with addr_low and
4230 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
4231 * NEWS: Describe new qXfer:libraries:read and shared library
4233 * features/library-list.dtd: New.
4235 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4237 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
4238 (start_remote): Use STOP_QUIETLY_REMOTE.
4239 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
4240 support on a SOLIB_ADD definition. Update breakpoints_inserted.
4241 Update to match shared library event breakpoint support. Only
4242 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
4243 (normal_stop): Handle TARGET_WAITKIND_LOADED.
4244 * fork-child.c (startup_inferior): Do not set
4245 inferior_ignoring_startup_exec_events
4246 * inferior.h (inferior_ignoring_startup_exec_events): Delete
4248 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
4250 2007-07-02 Markus Deuling <deuling@de.ibm.com>
4252 * breakpoint.c (insert_bp_location): Remove dead code
4253 (DISABLE_UNSETTABLE_BREAK).
4254 (disable_breakpoints_in_shlibs)
4255 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
4257 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4259 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
4260 Call insert_bp_location.
4262 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
4264 * core-regset.c (fetch_core_registers): Work around gcc 3.4
4267 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4269 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
4272 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4274 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
4275 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
4276 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
4277 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
4278 to display_gdb_prompt.
4280 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4283 * target.c (memory_xfer_partial): Do not continue past targets with
4286 2007-06-30 Andreas Schwab <schwab@suse.de>
4288 * m68k-tdep.c (m68k_ps_type): New.
4289 (m68k_init_types): New.
4290 (m68k_register_type): Use m68k_ps_type for PS register.
4291 (_initialize_m68k_tdep): Call m68k_init_types.
4293 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
4294 from the generic m68k arch.
4296 2007-06-28 Michael Snyder <msnyder@access-company.com>
4298 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
4301 * linux-thread-db.c (thread_db_get_thread_local_address): Add
4302 gdb_assert before using return value of find_thread_pid (Coverity).
4304 * source.c (unset_substitute_path_command): Plug leak (Coverity).
4306 * cli/cli-script.c (build_command_line): Add null pointer guard
4309 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
4311 * linux-thread-db.c (thread_db_attach): Delete.
4312 (thread_db_detach): Typo fix. Call target_mourn_inferior
4313 instead of fixing up proc_handle.
4314 (have_threads_callback, have_threads): New functions.
4315 (thread_db_wait): Remove dead proc_handle.pid check. Only
4316 translate PTIDs if we have registered threads. Check for new
4317 threads if we have none.
4318 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
4319 (find_new_threads_callback): Only enable event reporting if TID == 0.
4320 (same_ptid_callback): New.
4321 (thread_db_get_thread_local_address): Check for new threads.
4322 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
4323 or to_post_startup_inferior.
4325 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4327 * infrun.c (adjust_pc_after_break): Do not assume software single-step
4328 is always active if SOFTWARE_SINGLE_STEP_P is true.
4329 (resume): Use gdbarch_software_single_step[_p] instead of
4330 SOFTWARE_SINGLE_STEP[_P].
4331 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
4333 * gdbarch.sh (software_single_step): Remove target macro.
4334 * gdbarch.h, gdbarch.c: Regenerate.
4336 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4338 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
4339 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
4340 (struct gdbarch_swap, struct gdbarch_swap_registration,
4341 struct gdbarch_swap_registry, gdbarch_swap_registry,
4342 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
4343 current_gdbarch_swap_in_hack): Remove.
4344 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
4345 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
4346 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
4347 (deprecated_current_gdbarch_select_hack): Likewise.
4348 * gdbarch.h, gdbarch.c: Regenerate.
4350 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4352 * infrun.c (clear_proceed_status): Clean up stop_registers.
4353 (normal_stop): Allocate regcache for stop_registers.
4354 (struct inferior_status): Remove stop_registers member.
4355 (save_inferior_status): Do not save stop_registers.
4356 (restore_inferior_status): Do not restore stop_registers.
4357 (discard_inferior_status): Do not discard stop_registers.
4358 (build_infrun): Remove.
4359 (_initialize_infrun): Do not swap stop_registers.
4361 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4363 * remote.c (remote_address_masked): If remote_address_size is zero,
4364 default to target address size.
4365 (build_remote_gdbarch_data): Remove.
4366 (_initialize_remote): Do not swap remote_address_size.
4368 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4370 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
4371 builtin_type_char, builtin_type_short, builtin_type_int,
4372 builtin_type_long, builtin_type_signed_char,
4373 builtin_type_unsigned_char, builtin_type_unsigned_short,
4374 builtin_type_unsigned_int, builtin_type_unsigned_long,
4375 builtin_type_float, builtin_type_double, builtin_type_long_double,
4376 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4377 builtin_type_bool, builtin_type_long_long,
4378 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4379 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
4380 variable declaration with compatibility macro.
4381 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
4382 builtin_type_char, builtin_type_short, builtin_type_int,
4383 builtin_type_long, builtin_type_signed_char,
4384 builtin_type_unsigned_char, builtin_type_unsigned_short,
4385 builtin_type_unsigned_int, builtin_type_unsigned_long,
4386 builtin_type_float, builtin_type_double, builtin_type_long_double,
4387 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4388 builtin_type_bool, builtin_type_long_long,
4389 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4390 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
4391 (build_gdbtypes): Remove.
4392 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
4393 opaque-type-resolution command here. Do not call
4394 deprecated_register_gdbarch_swap.
4396 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4398 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
4399 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
4400 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
4402 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
4403 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
4404 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
4405 (build_parse): Remove.
4406 (_initialize_parse): Do not call build_parse. Do not register
4407 msym_ types for gdbarch-swapping.
4409 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
4410 instead of creating private type.
4412 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
4413 (_initialize_xcoffread): Do not initialized them.
4414 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
4416 * mdebugread.c (nodebug_func_symbol_type): Remove.
4417 (nodebug_var_symbol_type): Remove.
4418 (_initialize_mdebugread): Do not initialize them.
4419 (parse_symbol): Use builtin nodebug_ type instead of them.
4420 (parse_procedure): Likewise.
4422 2007-06-21 Chris Dearman <chris@mips.com>
4424 * printcmd.c (do_one_display): If display/i, start with an initial
4425 line feed to avoid bad layout if there is a branch delay slot.
4427 2007-06-21 Nigel Stephens <nigel@mips.com>
4428 Maciej W. Rozycki <macro@mips.com>
4430 * disasm.c (gdb_print_insn): Return the number of branch delay
4431 slot instructions too.
4432 * disasm.h (gdb_print_insn): Update prototype.
4433 * printcmd.c (branch_delay_insns): New variable to record the
4434 number of delay slot instructions after disassembling a branch.
4435 (print_formatted): Record the number of branch delay slot
4437 (do_examine): When disassembling, if the last instruction
4438 disassembled has any branch delay slots, then bump the count so
4439 that they get disassembled too.
4440 * tui/tui-disasm.c (tui_disassemble): Update the call to
4442 * NEWS: Document the new behaviour.
4444 2007-06-21 Andreas Schwab <schwab@suse.de>
4446 * regcache.c (write_pc_pid): Restore missing else.
4448 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
4450 * regcache.c (regcache_print): Use get_current_regcache ()
4451 instead of current_regcache.
4453 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
4456 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
4457 instead of bfd_make_section_anyway.
4458 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
4459 when clearing SEC_LOAD.
4461 2007-06-19 Joseph Myers <joseph@codesourcery.com>
4463 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
4464 registers for big-endian.
4466 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4468 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
4469 * disasm.c (dump_insns, gdb_print_insn): Likewise.
4470 * gdbarch.c, gdbarch.h: Regenerate.
4472 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4474 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
4475 gdbarch_believe_pcc_promotion.
4476 * stabsread.c (define_symbol): Likewise.
4477 Remove unnecessary definition.
4478 * coffread.c (process_coff_symbol): Remove unnecessary code.
4479 * gdbarch.c, gdbarch.h: Regenerate.
4481 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
4483 * configure.ac: Do not use ${objdir}.
4484 * configure: Regenerated.
4486 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
4488 * gdbarch.sh (deprecated_register_size): Remove.
4489 * gdbarch.h, gdbarch.c: Regenerate.
4491 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
4492 by INT_REGISTER_SIZE.
4493 (thumb_get_next_pc, arm_return_in_memory): Likewise.
4494 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
4495 * ia64-tdep.c (ia64_gdbarch_init): Do not call
4496 set_gdbarch_deprecated_register_size.
4498 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4500 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
4501 gdbarch_deprecated_fp_regnum.
4502 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
4503 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
4504 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4505 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
4507 * gdbarch.c, gdbarch.h: Regenerate.
4509 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4511 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
4512 gdbarch_extract_return_value.
4513 * value.c (generic_use_struct_convention): Likewise (comment).
4514 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
4515 * arch-utils.c (legacy_return_value): Likewise.
4516 * arch-utils.h (legacy_return_value): Likewise (comment).
4517 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
4518 gdbarch_store_return_value.
4519 * stack.c (return_command): Likewise (comment).
4520 * arch-utils.h (legacy_return_value): Likewise (comment).
4521 * arch-utils.c (legacy_return_value): Likewise.
4522 * gdbarch.c, gdbarch.h: Regenerate.
4524 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4526 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
4527 gdbarch_deprecated_use_struct_convention.
4528 * arch-utils.c (legacy_return_value): Likewise.
4529 * gdbarch.c, gdbarch.h: Regenerate.
4531 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4533 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
4534 gdbarch_deprecated_function_start_offset.
4535 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
4536 * linespec.c (minsym_found): Likewise.
4537 * infrun.c (handle_inferior_event): Likewise.
4538 * infcall.c (find_function_addr): Likewise.
4539 * cli/cli-cmds.c (disassemble_command): Likewise.
4540 * gdbarch.c, gdbarch.h: Regenerate.
4542 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4544 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
4545 gdbarch_deprecated_reg_struct_has_addr.
4546 * infcall.c (call_function_by_hand): Likewise.
4547 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
4548 * gdbarch_deprecated_reg_struct_has_addr_p.
4549 * infcall.c (call_function_by_hand): Likewise.
4550 * gdbarch.c, gdbarch.h: Regenerate.
4552 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4554 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4555 * sh-tdep.c (sh_extract_struct_value_address): Remove.
4556 (sh_gdbarch_init): Remove
4557 set_gdbarch_deprecated_extract_struct_value_address.
4558 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
4559 (sh64_gdbarch_init): Remove
4560 set_gdbarch_deprecated_extract_struct_value_address.
4561 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
4562 (ia64_gdbarch_init): Remove
4563 set_gdbarch_deprecated_extract_struct_value_address.
4564 * frv-tdep.c (frv_extract_struct_value_address): Remove.
4565 (frv_gdbarch_init): Remove
4566 set_gdbarch_deprecated_extract_struct_value_address.
4567 * gdbarch.c, gdbarch.h: Regenerate.
4569 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4571 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
4572 * v850-tdep.c (v850_unwind_sp): Likewise.
4573 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
4574 * stack.c (frame_info): Likewise.
4575 * stabsread.c (define_symbol): Likewise.
4576 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
4577 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
4578 (sh_unwind_sp): Likewise.
4579 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
4580 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
4581 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
4582 (rs6000_frame_cache): Likewise.
4583 * rs6000-nat.c (store_register): Likewise.
4584 * remote-mips.c (mips_wait): Likewise.
4585 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4586 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4587 (ppc64_sysv_abi_push_dummy_call): Likewise.
4588 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4589 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4590 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4591 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4592 * m32r-rom.c (m32r_supply_register): Likewise.
4593 * frame.c (frame_sp_unwind): Likewise.
4594 * mips-tdep.c (mips_insn16_frame_cache)
4595 (mips_insn32_frame_cache): Likewise (comment).
4596 * m68klinux-nat.c (supply_gregset): Likewise.
4597 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
4598 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
4599 * i386-tdep.c (i386_get_longjmp_target): Likewise.
4600 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4601 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
4602 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
4603 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
4604 (cris_register_type, crisv32_register_type)
4605 (cris_dwarf2_frame_init_reg): Likewise.
4606 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4607 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
4608 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
4609 * libunwind-frame.c (libunwind_frame_cache): Likewise.
4611 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
4612 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
4613 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
4614 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
4615 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
4616 * v850-tdep.c (v850_unwind_pc): Likewise.
4617 * stack.c (frame_info): Likewise.
4618 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
4619 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
4620 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
4621 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
4622 (sh_dsp_show_regs): Likewise.
4623 * shnbsd-tdep.c (shnbsd_supply_gregset)
4624 (shnbsd_collect_gregset): Likewise.
4625 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
4626 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
4627 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
4628 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4629 (6000_register_reggroup_p, rs6000_unwind_pc)
4630 (rs6000_frame_cache): Likewise.
4631 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
4632 (rs6000_store_inferior_registers): Likewise.
4633 * remote-mips.c (mips_wait, mips_load): Likewise.
4634 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4635 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4636 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4637 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4638 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
4639 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4640 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
4641 (store_ppc_registers, fill_gregset): Likewise.
4642 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
4643 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
4644 * mipsnbsd-nat.c (getregs_supplies): Likewise.
4645 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
4646 * m68klinux-nat.c (supply_gregset): Likewise.
4647 * irix5-nat.c (fill_gregset): Likewise.
4648 * i386-tdep.c (i386_unwind_pc): Likewise.
4649 * i386-linux-nat.c (i386_linux_resume): Likewise.
4650 * frame.c (get_prev_frame_1): Likewise.
4651 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4652 * dbug-rom.c (dbug_supply_register): Likewise.
4653 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
4654 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
4655 (cris_register_type, crisv32_register_type, crisv32_register_name)
4656 (cris_dwarf2_frame_init_reg, find_step_target)
4657 (cris_software_single_step, cris_supply_gregset)
4658 (cris_regnums): Likewise.
4659 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4660 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4661 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
4662 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
4663 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
4665 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
4666 * dbug-rom.c (dbug_supply_register): Likewise.
4667 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
4668 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
4669 * win32-nat.c (win32_resume): Likewise.
4670 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
4671 * m68k-tdep.c (m68k_register_type): Likewise.
4672 * m68klinux-nat.c (supply_gregset): Likewise.
4674 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
4675 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
4676 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
4677 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
4678 (fv_reg_base_num, dr_reg_base_num): Likewise.
4679 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
4680 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
4681 (sh64_extract_return_value, sh64_store_return_value)
4682 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
4683 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
4684 * procfs.c (procfs_fetch_registers, procfs_store_registers)
4685 (invalidate_cache): Likewise.
4686 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4687 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
4688 (mipsnbsd_fill_fpreg): Likewise.
4689 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
4690 (mipsnbsd_store_inferior_registers): Likewise.
4691 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
4692 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
4693 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
4694 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
4695 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
4696 (fill_fpregset): Likewise.
4697 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
4698 * i386-tdep.h (struct_return): Likewise (comment).
4699 * i386-nto-tdep.c (i386nto_register_area): Likewise.
4700 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
4701 (go32_store_registers): Likewise.
4702 * alpha-tdep.c (alpha_next_pc): Likewise.
4703 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4704 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
4705 (alphabsd_store_inferior_registers): Likewise.
4706 * core-regset.c (fetch_core_registers): Likewise.
4707 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
4709 * gdbarch.c, gdbarch.h: Regenerate.
4711 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
4713 * coffread.c (coff_sym_fns): Add default_symfile_segments.
4714 * dbxread.c (start_psymtab): Check HAVE_ELF.
4715 (aout_sym_fns): Likewise.
4716 * elfread.c (elf_symfile_segments): New.
4717 (elf_sym_fns): Add elf_symfile_segments.
4718 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
4719 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
4720 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
4721 * somread.c (som_sym_fns): Use default_symfile_segments.
4722 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
4723 (init_objfile_sect_indices): Call symfile_find_segment_sections.
4724 (default_symfile_segments): New function.
4725 (syms_from_objfile): Update call to find_sym_fns.
4726 (symfile_get_segment_data, free_symfile_segment_data): New.
4727 (symfile_map_offsets_to_segments): New.
4728 (symfile_find_segment_sections): New.
4729 * symfile.h (struct symfile_segment_data): New.
4730 (struct sym_fns): Add sym_segments.
4731 (default_symfile_segments, symfile_get_segment_data)
4732 (free_symfile_segment_data): New prototypes.
4733 (symfile_map_offsets_to_segments): Likewise.
4734 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
4735 * Makefile.in (COMMON_OBS): Remove elfread.o.
4736 (elf_internal_h): New.
4737 (elfread.o): Update.
4738 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
4740 * config.in, configure: Regenerated.
4741 * NEWS: Mention qOffsets changes.
4743 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4745 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
4746 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
4747 Replace global variable declaration with compatibility macro.
4748 (struct builtin_m2_type): New data type.
4749 (builtin_m2_type): Add prototype.
4750 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
4751 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
4752 Remove global variables.
4753 (m2_language_arch_info): Use builtin_m2_type instead of variables.
4754 (build_m2_types): New function.
4755 (m2_type_data): New variable.
4756 (builtin_m2_type): New function.
4757 (_initialize_m2_language): Do not build data types. Register
4758 m2_type_data per-gdbarch data.
4760 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4762 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
4763 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
4764 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
4765 builtin_type_f_real_s8, builtin_type_f_real_s16,
4766 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
4767 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
4768 variable declaration with compatibility macro.
4769 (struct builtin_f_type): New data type.
4770 (builtin_f_type): Add prototype.
4771 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
4772 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
4773 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
4774 builtin_type_f_real_s8, builtin_type_f_real_s16,
4775 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
4776 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
4777 (f_language_arch_info): Use builtin_f_type instead of variables.
4778 (build_fortran_types): Build builtin_f_type structure instead of
4779 setting global type variables.
4780 (f_type_data): New variable.
4781 (builtin_f_type): New function.
4782 (_initialize_f_language): Do not call build_fortran_types. Do not
4783 swap global type variables. Register f_type_data per-gdbarch data.
4785 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4787 * f-lang.c (_initialize_f_language): Do not initialize or
4788 swap builtin_type_string.
4790 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4792 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
4793 value_of_builtin_frame_reg): Remove.
4794 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
4795 inactive call to value_of_builtin_frame_reg.
4797 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4799 * gdbarch.sh (bfd_vma_bit): Remove.
4800 * gdbarch.c, gdbarch.h: Regenerate.
4802 * gdbtypes.h (builtin_bfd_vma_type): Remove.
4803 * gdbtypes.h (builtin_bfd_vma_type): Remove.
4804 (build_gdbtypes): Do not initialize it.
4805 (_initialize_gdbtypes): Do not swap it.
4807 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4809 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
4810 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
4811 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
4812 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
4813 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
4814 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
4815 builtin_type_vec64, builtin_type_vec128): Remove.
4816 (init_simd_type): Remove.
4817 (init_vector_type): Make global.
4818 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
4819 (build_gdbtypes): Do not build vector types.
4820 (_initialize_gdbtypes): Do not swap vector types.
4821 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
4822 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
4823 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
4824 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
4825 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
4826 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
4827 builtin_type_vec64, builtin_type_vec128): Remove declarations.
4828 (init_vector_type): Add prototype.
4830 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
4831 i386_sse_type members.
4832 (i386_mmx_type, i386_sse_type): Change from variables to functions.
4833 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
4834 (i386_init_types): Do not build vector types.
4835 (i386_mmx_type, i386_sse_type): New functions.
4836 (i386_register_type): Call them instead of using global variables.
4837 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
4838 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
4839 of using global variable.
4841 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
4842 and ppc_builtin_type_vec128 members.
4843 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
4844 (rs6000_builtin_type_vec128): Likewise.
4845 (rs6000_register_type): Call them instead of using builtin_type_vec64
4846 and builtin_type_vec128.
4847 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
4849 * spu-tdep.c (struct gdbarch_tdep): New data type.
4850 (spu_builtin_type_vec128): Remove variable.
4851 (spu_builtin_type_vec128): New function.
4852 (spu_register_type): Call it instead of using global variable.
4853 (spu_gdbarch_init): Allocate tdep structure.
4854 (spu_init_vector_type): Remove function.
4855 (_initialize_spu_tdep): Do not call it.
4857 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4859 * amd64-tdep.c (struct amd64_register_info): Remove.
4860 (amd64_register_info): Remove.
4861 (amd64_register_names): New static variable.
4862 (AMD64_NUM_REGS): Use amd64_register_names instead of
4863 amd64_register_info.
4864 (amd64_register_name): Likewise.
4865 (amd64_register_type): Do not refer to amd64_register_info.
4867 * s390-tdep.c (struct s390_register_info): Remove.
4868 (s390_register_info): Remove.
4869 (s390_register_name): Do not refer to s390_register_info.
4870 (s390_register_type): Likewise.
4872 * sparc64-tdep.c (struct sparc64_register_info): Remove.
4873 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
4874 (sparc64_register_names, sparc64_pseudo_register_names): New.
4875 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
4876 sparc64_register_names and sparc64_pseudo_register_names instead of
4877 sparc64_register_info and sparc64_pseudo_register_info.
4878 (sparc64_register_name): Likewise.
4879 (sparc64_register_type): Do not refer to sparc64_register_info
4880 and sparc64_pseudo_register_info.
4882 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4884 * c-lang.c (cplus_builtin_types): Remove.
4885 (enum cplus_primitive_types): New data type.
4886 (cplus_language_arch_info): New function.
4887 (cplus_language_defn): Set la_language_arch_info member. Do not set
4888 la_builtin_type_vector and string_char_type members.
4890 * f-lang.c (f_builtin_types): Remove.
4891 (enum f_primitive_types): New data type.
4892 (f_language_arch_info): New function.
4893 (f_language_de): Set la_language_arch_info member. Do not set
4894 la_builtin_type_vector and string_char_type members.
4896 * m2-lang.c (m2_builtin_types): Remove.
4897 (enum m2_primitive_types): New data type.
4898 (m2_language_arch_info): New function.
4899 (m2_language_defn): Set la_language_arch_info member. Do not set
4900 la_builtin_type_vector and string_char_type members.
4902 * objc-lang.c (objc_builtin_types): Remove.
4903 (objc_language): Set la_language_arch_info member. Do not set
4904 la_builtin_type_vector and string_char_type members.
4906 * p-lang.c (pascal_builtin_types): Remove.
4907 (enum pascal_primitive_types): New data type.
4908 (pascal_language_arch_info): New function.
4909 (pascal_language_defn): Set la_language_arch_info member. Do not set
4910 la_builtin_type_vector and string_char_type members.
4912 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4914 * regcache.c (struct regcache): Add ptid_t member.
4915 (regcache_xmalloc): Initialize it.
4916 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
4917 (regcache_dup): Likewise.
4918 (regcache_dup_no_passthrough): Likewise.
4919 (current_regcache): Make static.
4920 (registers_ptid): Remove variable.
4921 (get_thread_regcache): New function.
4922 (get_current_regcache): New function.
4923 (registers_changed): Implement by freeing current regcache.
4924 (regcache_raw_read): Do not refer to current_regcache. Set
4925 inferior_ptid to regcache->ptid while calling target routines.
4926 (regcache_raw_write): Likewise.
4927 (regcache_raw_supply): Do not refer to current_regcache.
4928 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
4929 (write_pc_pid): Likewise.
4930 (build_regcache): Remove.
4931 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
4932 or deprecated_register_gdbarch_swap. Do not initialize
4934 * regcache.h (get_current_regcache): Add prototype.
4935 (get_thread_regcache): Likewise.
4936 (current_regcache): Remove declaration.
4938 * corelow.c (core_open): Replace current_regcache by
4939 get_current_regcache ().
4940 * frame.c (frame_pop): Likewise.
4941 (put_frame_register): Likewise.
4942 (get_current_frame, create_new_frame): Likewise.
4943 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
4944 * stack.c (return_command): Likewise.
4945 * infcall.c (call_function_by_hand): Likewise.
4946 * infrun.c (resume): Likewise.
4947 (save_inferior_status, restore_inferior_status): Likewise.
4948 * linux-fork.c (fork_load_infrun_state): Likewise.
4949 (fork_save_infrun_state): Likewise.
4950 * win32-nat.c (win32_resume): Likewise.
4951 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
4952 * monitor.c (monitor_wait): Likewise.
4953 * remote.c (remote_wait): Likewise.
4954 * remote-mips.c (mips_wait): Likewise.
4956 * bsd-kvm.c (bsd_kvm_open): Likewise
4957 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
4958 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
4959 * i386-linux-nat.c (i386_linux_resume): Likewise.
4960 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
4961 (ia64_linux_stopped_data_address): Likewise.
4963 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
4964 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
4965 * mep-tdep.c (current_me_module, current_options): Likewise.
4966 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
4968 * linux-nat.c (linux_nat_do_thread_registers): Use thread
4969 regcache instead of current_regcache. Call target_fetch_registers.
4970 (linux_nat_corefile_thread_callback): Update call site.
4971 (linux_nat_do_registers): Likewise.
4972 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
4973 of current_regcache.
4974 (procfs_make_note_section): Likewise.
4975 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
4976 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
4977 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
4978 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
4980 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4982 * regcache.c (read_register, read_register_pid): Remove.
4983 (write_register, write_register_pid): Likewise.
4984 * regcache.h (read_register, read_register_pid): Remove prototype.
4985 (write_register, write_register_pid): Likewise.
4987 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
4989 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
4990 (write_pc): Likewise. Remove default implementation, add predicate.
4991 * gdbarch.c, gdbarch.h: Regenerate.
4992 * regcache.c (read_pc_pid): Use current regcache instead of calling
4994 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
4996 (generic_target_write_pc): Remove.
4997 * inferior.h (generic_target_write_pc): Remove.
4998 * frv-tdep.c (frv_gdbarch_init): Do not install it.
4999 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5000 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5001 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5002 * sh-tdep.c (sh_gdbarch_init): Likewise.
5003 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
5005 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
5006 argument. Use REGCACHE instead of calling read_register_pid.
5007 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
5008 * hppa-tdep.c (hppa_read_pc): Likewise.
5009 * hppa-tdep.h (hppa_read_pc): Likewise.
5010 * ia64-tdep.c (ia64_read_pc): Likewise.
5011 * m32r-tdep.c (m32r_read_pc): Likewise.
5012 * mep-tdep.c (mep_read_pc): Likewise.
5013 * mn10300-tdep.c (mn10300_read_pc): Likewise.
5014 * spu-tdep.c (spu_read_pc): Likewise.
5016 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
5017 argument. Use REGCACHE instead of calling write_register_pid.
5018 * avr-tdep.c (avr_write_pc): Likewise.
5019 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
5020 * hppa-tdep.c (hppa_write_pc): Likewise.
5021 * hppa-tdep.h (hppa_write_pc): Likewise.
5022 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
5023 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
5024 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
5025 * ia64-tdep.c (ia64_write_pc): Likewise.
5026 * ia64-tdep.h (ia64_write_pc): Likewise.
5027 * m32r-tdep.c (m32r_write_pc): Likewise.
5028 * m88k-tdep.c (m88k_write_pc): Likewise.
5029 * mep-tdep.c (mep_write_pc): Likewise.
5030 * mips-tdep.c (mips_write_pc): Likewise.
5031 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
5032 * mn10300-tdep.c (mn10300_write_pc): Likewise.
5033 * sparc-tdep.c (sparc_write_pc): Likewise.
5034 * spu-tdep.c (spu_write_pc): Likewise.
5036 * mips-tdep.c (read_signed_register): Remove.
5037 (read_signed_register_pid): Likewise.
5038 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
5039 Use REGCACHE instead of calling read_signed_register_pid.
5041 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5043 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
5044 * gdbarch.c, gdbarch.h: Regenerate.
5045 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
5046 (push_dummy_code): Likewise. Pass it to callee.
5047 (call_function_by_hand): Pass current regcache to push_dummy_code.
5049 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
5050 argument. Use it instead of current_regcache.
5052 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
5053 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
5055 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5057 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
5058 * gdbarch.c, gdbarch.h: Regenerate.
5059 * infrun.c (handle_inferior_event): Pass current frame to
5060 gdbarch_get_longjmp_target.
5062 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
5063 Read registers from FRAME instead of using read_register.
5064 Use get_frame_arch instead of current_gdbarch.
5065 * arm-tdep.c (arm_get_longjmp_target): Likewise.
5066 * i386-tdep.c (i386_get_longjmp_target): Likewise.
5067 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5068 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
5069 (mips64_linux_get_longjmp_target): Likewise.
5070 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
5072 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5074 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
5075 * gdbarch.c, gdbarch.h: Regenerate.
5076 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
5077 * arch-utils.h (generic_skip_trampoline_code): Likewise.
5078 * infrun.c (handle_inferior_event): Pass current frame to
5079 gdbarch_skip_trampoline_code and skip_language_trampoline.
5081 * language.c (unk_lang_trampoline): Add FRAME argument.
5082 (skip_language_trampoline): Add FRAME argument. Pass it to
5083 skip_trampoline callback.
5084 * language.h: Add forward declaration of struct frame_info.
5085 (struct language_defn): Add FRAME argument to skip_trampoline.
5086 (skip_language_trampoline): Add FRAME argument.
5087 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
5088 to skip_trampoline callback.
5089 * cp-abi.h: Add forward declaration of struct frame_info.
5090 (cplus_skip_trampoline): Add FRAME argument.
5091 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
5092 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
5093 to gdbarch_skip_trampoline_code.
5094 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
5095 to gdbarch_skip_trampoline_code.
5097 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
5098 * symtab.h (find_solib_trampoline_target): Likewise.
5099 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
5100 find_solib_trampoline_target.
5102 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
5103 from FRAME instead of calling read_register.
5105 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
5106 argument. Read registers from FRAME instead of using read_register.
5107 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
5108 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
5110 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
5113 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
5115 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
5116 registers from FRAME instead of using read_signed_register.
5118 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
5120 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
5121 instead of using read_register.
5122 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
5123 ppc64_standard_linkage_target.
5124 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
5125 Pass it to find_solib_trampoline_target. Read registers from FRAME
5126 instead of using read_register.
5128 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
5131 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5133 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
5135 * gdbarch.c, gdbarch.h: Regenerate.
5136 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
5138 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
5139 registers from FRAME instead of using read_register.
5140 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5141 to alpha_next_pc. Use get_frame_pc instead of read_pc.
5142 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
5145 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
5146 from FRAME instead of using read_register.
5147 (thumb_get_next_pc): Likewise.
5148 (arm_get_next_pc): Likewise.
5149 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5150 to arm_get_next_pc. Use get_frame_pc instead of read_register.
5151 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
5154 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
5155 from FRAME instead of using read_register.
5156 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5157 to find_step_target.
5159 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
5160 from FRAME instead of using read_register / read_signed_register.
5161 (extended_mips16_next_pc): Likewise.
5162 (mips16_next_pc): Likewise.
5163 (mips_next_pc): Likewise.
5164 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5165 to mips_next_pc. Use get_frame_pc instead of read_pc.
5166 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
5169 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
5170 of current frame. Read registers from FRAME.
5171 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
5172 branch_dest. Use get_frame_pc instead of read_pc.
5173 (rs6000_software_single_step): Likewise.
5174 (bl_to_blrl_insn_p): Do not call branch_dest.
5175 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
5178 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
5179 Read registers from FRAME instead of current regcache.
5180 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
5181 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
5182 * sparc-tdep.c (sparc_address_from_register): Remove.
5183 (sparc_analyze_control_transfer): Pass FRAME argument instead of
5184 GDBARCH. Pass FRAME to step_trap callback.
5185 (sparc_step_trap): Add FRAME argument.
5186 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5187 to sparc_analyze_control_transfer. Read registers from FRAME instead
5188 of calling sparc_address_from_register.
5189 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
5191 (sparc_address_from_register): Remove prototype.
5192 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
5193 (sparcnbsd_step_trap): Add FRAME argument.
5195 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
5196 by FRAME. Read registers from FRAME instead of REGCACHE.
5198 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5200 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
5201 instead of calling read_register.
5203 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
5204 calling write_register.
5206 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
5207 calling write_register.
5209 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
5210 instead of calling read_register.
5211 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
5212 instead of calling read_register and write_register.
5214 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
5215 instead of current_regcache.
5217 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
5218 of calling write_register.
5219 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
5220 parameter instead of current_regcache.
5222 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
5223 instead of calling read_register.
5224 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
5225 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
5226 (mips_n32n64_push_dummy_call): Likewise.
5227 (mips_o32_push_dummy_call): Likewise.
5228 (mips_o64_push_dummy_call): Likewise.
5230 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
5231 parameter instead of current_regcache.
5233 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
5234 Use it instead of read_register and write_register.
5235 (xtensa_register_read_masked): Likewise.
5236 (xtensa_pseudo_register_read): Update call.
5237 (xtensa_pseudo_register_write): Likewise.
5238 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
5239 instead of calling read_register.
5240 (xtensa_push_dummy_call): Update comment.
5242 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5244 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
5245 by frame_unwind_register_signed calls.
5246 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
5247 frame allocations when called with NULL NEXT_FRAME parameter.
5248 (read_next_frame_reg): Remove.
5250 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
5251 instead of reading the FPSCR register.
5252 (sh_frame_cache): Pass unwound FPSCR register value to
5253 sh_analyze_prologue.
5254 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
5256 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
5257 instead of reading the CTBP register.
5258 (v850_frame_cache): Pass unwound CTBP register value to
5259 v850_analyze_prologue.
5261 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5263 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
5264 * sh-tdep.c (sh_show_regs): Likewise.
5265 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
5266 (sh_generic_show_regs): Add FRAME parameter. Use register
5267 values from that frame instead of calling read_register.
5268 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
5269 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
5270 sh_dsp_show_regs): Likewise.
5271 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
5272 sh64_show_regs): Likewise.
5274 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5276 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
5277 current regcache instead of calling read_register.
5279 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5281 * mep-tdep.c (current_me_module): Read from current regcache
5282 instead of calling read_register.
5283 (current_options): Likewise.
5285 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5287 * cris-tdep.c (cris_stopped_data_address): Read register values
5288 from current frame instead of calling read_register.
5289 * frv-tdep.c (frv_stopped_data_address): Likewise.
5291 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5293 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
5294 instead of write_register (PC_REGNUM, ...).
5296 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5298 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
5299 explaining why the PC adjustment code is necessary.
5301 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
5303 * m68k-tdep.h (enum m68k_flavour): New.
5304 (struct gdbarch_tdep): New fields
5305 float_return, flavour and fpregs_present.
5306 * m68k-tdep.c (m68k_register_type): Use
5307 fpregs_present and conditionalize floating
5308 registers type on flavour.
5309 (m68k_register_names): New.
5310 (m68k_register_name): Use the above.
5311 (m68k_convert_register_p): Consult fpregs_present.
5312 (m68k_register_to_value, m68k_value_to_register):
5313 Use register_type to obtain the type of floating
5315 (m68k_svr4_extract_return_value): Check tdep->float_return.
5316 Use register_type to get the type of floating
5318 (m68k_svr4_store_return_value): Likewise.
5319 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
5320 (m68k_analyze_register_saves): Likewise.
5321 (m68k_gdbarch_init): Extract infromation
5322 from XML description, if present. Guess coldfire by
5323 looking at the file, if present. Conditionalize
5324 setting of long double format. Set decr_pc_after_break
5325 to 2 on coldfire and fido. Enable XML-driven
5326 register description.
5327 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
5328 size of tdep->fpreg_type, as opposed to hardcoded value.
5329 * Makefile.in (m68k-tdep.o): Update dependencies.
5331 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5333 * NEWS: Mention "info spu" commands and qXfer:spu:read and
5334 qXfer:spu:write remote packet types.
5336 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5338 * xml-tdesc.c (tdesc_start_target): New.
5339 (target_attributes): New.
5340 (tdesc_elements): Use it.
5341 * features/gdb-target.dtd: Add #FIXED version attribute for
5344 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
5346 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
5348 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
5350 * fork-child.c (fork_inferior): Update comment.
5352 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5354 * features/Makefile: Generate regformats for mips-linux and
5356 * features/sort-regs.xsl: Correct typo.
5357 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
5358 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
5361 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5363 * config/mips/linux.mh (TDEP_XML): New.
5364 * features/mips-linux.xml, features/mips64-linux.xml: New files.
5365 * mips-linux-nat.c (mips_linux_register_addr): Handle
5366 MIPS_RESTART_REGNUM.
5367 (mips64_linux_register_addr): Likewise.
5368 (super_xfer_partial, mips_linux_xfer_partial): New.
5369 (_initialize_mips_linux_nat): Add them to the target_ops.
5370 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
5371 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
5372 (mips_linux_o32_sigframe_init)
5373 (mips_linux_n32n64_sigframe_init): Likewise.
5374 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
5375 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
5376 "org.gnu.gdb.mips.linux" feature.
5377 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
5378 (mips_linux_restart_reg_p): New prototype.
5379 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
5380 initialization routine.
5381 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
5383 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5385 * Makefile.in (mips-tdep.o): Update.
5386 * mips-tdep.c (struct register_alias, mips_o32_aliases)
5387 (mips_n32_n64_aliases, mips_register_aliases): New.
5388 (mips_register_name): Call tdesc_register_name.
5389 (mips_tdesc_register_reggroup_p): New.
5390 (mips_pseudo_register_type, value_of_mips_user_reg): New.
5391 (mips_gdbarch_init): Add target-described register support.
5392 Register aliases for register names.
5393 * target-descriptions.c (tdesc_register_name): Make global.
5394 (tdesc_register_in_reggroup_p): New function, broken out from
5395 tdesc_register_reggroup_p.
5396 (tdesc_register_reggroup_p): Use it.
5397 * target-descriptions.h (tdesc_register_name)
5398 (tdesc_register_in_reggroup_p): New prototypes.
5399 * NEWS: Correct formatting. Mention MIPS register support.
5400 * features/mips-cp0.xml, features/mips-fpu.xml,
5401 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
5402 features/mips64-cpu.xml: New files.
5404 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5406 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
5407 * valops.c (value_cast): Likewise.
5408 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
5409 * ui-out.c (ui_out_field_core_addr): Likewise.
5410 * tracepoint.c (tracepoints_info): Likewise.
5411 * symtab.c (print_msymbol_info): Likewise.
5412 * solib-irix.c (irix_current_sos)
5413 (irix_open_symbol_file_object): Likewise.
5414 * remote.c (build_remote_gdbarch_data): Likewise.
5415 * prologue-value.c (make_pv_area): Likewise.
5416 * procfs.c (info_mappings_callback): Likewise.
5417 * printcmd.c (print_scalar_formatted)
5418 (deprecated_print_address_numeric): Likewise.
5419 * memattr.c (mem_info_command): Likewise.
5420 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
5421 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
5422 * exec.c (print_section_info): Likewise.
5423 * dwarf2read.c (read_subrange_type): Likewise.
5424 * dwarf2loc.c (find_location_expression): Likewise.
5425 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
5426 (signed_address_type, execute_stack_op): Likewise.
5427 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
5428 * gdbarch.c, gdbarch.h: Regenerate.
5430 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5432 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
5433 * arch-utils.c (show_architecture): Likewise.
5434 * remote-mips.c (mips_open): Likewise
5435 * nto-tdep.c (nto_find_and_open_solib)
5436 (nto_init_solib_absolute_prefix): Likewise.
5437 * nto-procfs (procfs_open): Likewise.
5438 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
5439 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
5440 * gdbarch.c, gdbarch.h: Regenerate.
5442 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5444 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
5445 * gdbtypes.c (build_flt): Likewise.
5446 * gdbarch.c, gdbarch.h: Regenerate.
5448 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5450 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
5451 gdbarch_breakpoint_from_pc.
5452 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
5453 * remote.c (remote_insert_breakpoint)
5454 (remote_insert_hw_breakpoint): Likewise.
5455 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
5456 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
5457 * breakpoint.h (bp_target_info): Likewise (comment).
5458 * breakpoint.c (read_memory_nobpt): Likewise.
5459 * mem-break.c (default_memory_insert_breakpoint): Likewise.
5460 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
5461 * gdbarch.c, gdbarch.h: Regenerate.
5463 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5465 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
5466 * solib-svr4.c (svr4_truncate_ptr): Likewise.
5467 * solib-pa64.c (read_dynamic_info): Likewise.
5468 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
5469 * solib.c (info_sharedlibrary_command): Likewise.
5470 * s390-nat.c (SUBOFF): Likewise.
5471 * p-valprint.c (pascal_val_print): Likewise.
5472 * procfs.c (info_proc_mappings): Likewise.
5473 * printcmd.c (decode_format): Likewise.
5474 * nto-tdep.c (nto_truncate_ptr): Likewise.
5475 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5476 (mips64_linux_get_longjmp_target): Likewise.
5477 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5478 * jv-valprint.c (java_value_print): Likewise.
5479 * jv-lang.c (get_java_object_header_size): Likewise.
5480 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5481 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5482 (hppa_hpux_unwind_adjust_stub): Likewise.
5483 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5484 * gdbtypes.c (make_pointer_type, make_reference_type)
5485 (smash_to_memberptr_type): Likewise.
5486 * gdbarch.c, gdbarch.h: Regenerate.
5488 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5490 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
5491 (print_gp_register_row): Stop before printing a register bigger
5492 than the ABI register size.
5493 (mips_print_registers_info): Update call to mips_print_register.
5495 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5497 * expression.h (enum exp_opcode): Document a register name for
5499 * parse.c (write_dollar_variable): Write the register name for
5501 (operator_length_standard): Expect the register name following
5503 * ada-lang.c (resolve_subexp): Likewise.
5504 * ax-gdb.c (gen_expr): Likewise.
5505 * eval.c (evaluate_subexp_standard): Likewise.
5506 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5508 * tracepoint.c (encode_actions): Likewise.
5510 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5512 * utils.c (set_screen_size): Use INT_MAX for default columns.
5514 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
5516 * remote.c (remote_protocol_features): Add qXfer:spu:read and
5517 qXfer:spu:write packet types.
5519 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5521 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
5522 * gdbarch.c, gdbarch.h: Regenerate.
5524 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5526 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
5527 gdbarch_stab_reg_to_regnum.
5528 * stabsread.c (define_symbol): Likewise.
5529 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
5530 gdbarch_ecoff_reg_to_regnum.
5531 * mdebugread.c (parse_symbol): Likewise.
5532 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
5533 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
5534 gdbarch_dwarf_reg_to_regnum.
5535 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
5536 * coffread.c (process_coff_symbol): Likewise.
5537 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
5538 gdbarch_dwarf2_reg_to_regnum.
5539 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
5540 (locexpr_describe_location): Likewise.
5541 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
5542 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
5543 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
5544 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
5545 * gdbarch.c, gdbarch.h: Regenerate.
5547 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5549 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
5550 gdbarch_smash_text_address.
5551 * somread.c (som_symtab_read): Likewise.
5552 * elfread.c (record_minimal_symbol): Likewise.
5553 * dbxread.c (process_one_symbol): Likewise.
5554 * coffread.c (coff_symtab_read): Likewise.
5555 * gdbarch.c, gdbarch.h: Regenerate.
5557 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5559 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
5560 * findvar.c (value_from_register): Likewise.
5561 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
5562 * valops.c (value_assign): Likewise.
5563 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
5564 gdbarch_convert_register_p.
5565 * findvar.c (value_from_register): Likewise.
5566 * valops.c (value_assign): Likewise.
5567 * gdbarch.c, gdbarch.h: Regenerate.
5569 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5571 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
5572 gdbarch_register_sim_regno.
5573 * sim-regno.h (sim_regno): Likewise (comment).
5574 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
5575 * gdbarch.c, gdbarch.h: Regenerate.
5577 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5579 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
5580 gdbarch_virtual_frame_pointer.
5581 * tracepoint.c (encode_actions): Likewise.
5582 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
5583 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
5584 * gdbarch.c, gdbarch.h: Regenerate.
5586 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5588 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
5589 * p-lang.c (pascal_create_fundamental_type): Likewise.
5590 * objc-lang.c (objc_create_fundamental_type): Likewise.
5591 * mdebugread.c (_initialize_mdebugread): Likewise.
5592 * m2-lang.c (m2_create_fundamental_type)
5593 (_initialize_m2_language): Likewise.
5594 * gdbtypes.c (build_gdbtypes): Likewise.
5595 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5596 * doublest.c (floatformat_from_length): Likewise.
5597 * c-lang.c (c_create_fundamental_type): Likewise.
5598 * ada-lang.c (ada_create_fundamental_type)
5599 (ada_language_arch_info): Likewise.
5600 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
5601 * value.c (unpack_double): Likewise (comment).
5602 * gdbtypes.c (build_gdbtypes): Likewise.
5603 * doublest.c (floatformat_from_length): Likewise.
5604 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
5605 * valarith.c (value_binop): Likewise.
5606 * p-lang.c (pascal_create_fundamental_type): Likewise.
5607 * objc-lang.c (objc_create_fundamental_type): Likewise.
5608 * mdebugread.c (_initialize_mdebugread): Likewise.
5609 * m2-lang.c (m2_create_fundamental_type): Likewise.
5610 * gdbtypes.c (build_gdbtypes): Likewise.
5611 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5612 * doublest.c (floatformat_from_length): Likewise.
5613 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
5614 * c-lang.c (c_create_fundamental_type): Likewise.
5615 * ada-lex.l (processReal): Likewise.
5616 * ada-lang.c (ada_create_fundamental_type)
5617 (ada_language_arch_info): Likewise.
5618 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
5619 * value.c (unpack_double): Likewise (comment).
5620 * gdbtypes.c (build_gdbtypes): Likewise.
5621 * doublest.c (floatformat_from_length): Likewise.
5622 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
5623 gdbarch_long_double_bit.
5624 * p-lang.c (pascal_create_fundamental_type): Likewise.
5625 * objc-lang.c (objc_create_fundamental_type): Likewise.
5626 * m2-lang.c (m2_create_fundamental_type): Likewise.
5627 * gdbtypes.c (build_gdbtypes): Likewise.
5628 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5629 * doublest.c (floatformat_from_length): Likewise.
5630 * c-lang.c (c_create_fundamental_type): Likewise.
5631 * ada-lex.l (processReal): Likewise.
5632 * ada-lang.c (ada_create_fundamental_type)
5633 (ada_language_arch_info): Likewise.
5634 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
5635 gdbarch_long_double_format.
5636 * gdbtypes.c (build_gdbtypes): Likewise.
5637 * doublest.c (floatformat_from_length): Likewise.
5638 * gdbarch.c, gdbarch.h: Regenerate.
5640 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5642 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
5643 * ada-lang.c (ada_create_fundamental_type)
5644 (ada_language_arch_info): Likewise.
5645 * c-lang.c (c_create_fundamental_type): Likewise.
5646 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5647 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5648 * m2-lang.c (m2_create_fundamental_type): Likewise.
5649 * objc-lang.c (objc_create_fundamental_type): Likewise.
5650 * p-lang.c (pascal_create_fundamental_type): Likewise.
5651 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
5652 * c-exp.y (parse_number): Likewise.
5653 * objc-exp.y (parse_number): Likewise.
5654 * ada-lex.l (processInt): Likewise.
5655 * f-exp.y (parse_number): Likewise.
5656 * p-exp.y (parse_number): Likewise.
5657 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
5658 (gdbtypes_post_init, build_gdbtypes): Likewise.
5659 * p-lang.c (pascal_create_fundamental_type): Likewise.
5660 * parse.c (build_parse): Likewise.
5661 * xcoffread.c (_initialize_xcoffread): Likewise.
5662 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
5663 (read_range_type): Likewise.
5664 * objc-lang.c (objc_create_fundamental_type): Likewise.
5665 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
5666 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
5667 (m2_create_fundamental_type): Likewise.
5668 * c-lang.c (c_create_fundamental_type): Likewise.
5669 * coffread.c (coff_read_enum_type): Likewise.
5670 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
5671 * dwarf2read.c (new_symbol): Likewise.
5672 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
5673 * c-exp.y (parse_number): Likewise.
5674 * objc-exp.y (parse_number): Likewise.
5675 * ada-lex.l (processInt): Likewise.
5676 * f-exp.y (parse_number): Likewise.
5677 * p-exp.y (parse_number): Likewise.
5678 * valarith.c (value_binop): Likewise.
5679 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
5680 * ada-lang.c (ada_create_fundamental_type)
5681 (ada_language_arch_info): Likewise.
5682 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5683 * symfile.c (TARGET_LONG_BYTES): Likewise.
5684 * p-lang.c (pascal_create_fundamental_type): Likewise.
5685 * objc-lang.c (objc_create_fundamental_type): Likewise.
5686 * m2-lang.c (m2_create_fundamental_type): Likewise.
5687 * f-lang.c (f_create_fundamental_type): Likewise.
5688 * c-lang.c (c_create_fundamental_type): Likewise.
5689 * coffread.c (decode_base_type): Likewise.
5690 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
5691 * c-exp.y (parse_number): Likewise.
5692 * objc-exp.y (parse_number): Likewise.
5693 * p-exp.y (parse_number): Likewise.
5694 * ada-lang.c (ada_create_fundamental_type)
5695 (ada_language_arch_info): Likewise.
5696 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
5697 * stabsread.c (read_range_type): Likewise.
5698 * p-lang.c (pascal_create_fundamental_type): Likewise.
5699 * objc-lang.c (objc_create_fundamental_type): Likewise.
5700 * m2-lang.c (m2_create_fundamental_type): Likewise.
5701 * f-lang.c (f_create_fundamental_type): Likewise.
5702 * c-lang.c (c_create_fundamental_type): Likewise.
5703 * gdbarch.c, gdbarch.h: Regenerate.
5705 2007-06-12 Andreas Schwab <schwab@suse.de>
5707 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
5708 (struct frame_unwind): Add dealloc_cache.
5709 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
5711 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
5712 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
5713 (libunwind_frame_unwind): Set dealloc_cache.
5714 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
5716 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5717 Markus Deuling <deuling@de.ibm.com>
5719 * remote.c (remote_write_qxfer): New function.
5720 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
5721 (remote_read_qxfer): Do not cache empty objects.
5722 (_initialize_remote): Add PACKET_qXfer_spu_read and
5723 PACKET_qXfer_spu_write.
5725 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5727 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
5728 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
5730 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
5731 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
5732 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
5733 * spu-tdep.c (infospucmdlist): New variable.
5734 (spu_register_name): Handle additional pseudo registers.
5735 (spu_register_type): Likewise.
5736 (spu_pseudo_register_read): Likewise.
5737 (spu_pseudo_register_write): Likewise.
5738 (spu_pseudo_register_read_spu): New function.
5739 (spu_pseudo_register_write_spu): Likewise.
5740 (info_spu_event_command): New function.
5741 (info_spu_signal_command): Likewise.
5742 (info_spu_mailbox_list): Likewise.
5743 (info_spu_mailbox_command): Likewise.
5744 (spu_mfc_get_bitfield): Likewise.
5745 (info_spu_dma_cmdlist): Likewise.
5746 (info_spu_dma_command): Likewise.
5747 (info_spu_proxydma_command): Likewise.
5748 (info_spu_command): Likewise.
5749 (_initialize_spu_tdep): Install "info spu" commands.
5751 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5753 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
5754 accessing non-seekable spufs files.
5756 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5758 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
5759 gdbarch_skip_trampoline_code.
5760 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
5761 * objc-lang.c (objc_skip_trampoline)
5762 (objc_submethod_helper_data): Likewise.
5763 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
5764 * infrun.c (handle_inferior_event): Likewise.
5765 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
5766 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
5767 gdbarch_in_solib_return_trampoline.
5768 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
5769 * infrun.c (handle_inferior_event): Likewise.
5770 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
5771 * gdbarch.c, gdbarch.h: Regenerate.
5773 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5775 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
5776 * symtab.c (find_function_start_sal, in_prologue): Likewise.
5777 * linespec.c (minsym_found): Likewise.
5778 * infrun.c (step_into_function): Likewise.
5779 * gdbarch.c, gdbarch.h: Regenerate.
5781 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5783 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
5784 * valops.c (value_allocate_space_in_inferior): Likewise.
5785 * gdbarch.c, gdbarch.h: Regenerate.
5787 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5789 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
5790 gdbarch_memory_insert_breakpoint.
5791 * mem-break.c (memory_insert_breakpoint): Likewise.
5792 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
5793 gdbarch_memory_remove_breakpoint.
5794 * mem-break.c (memory_remove_breakpoint): Likewise.
5795 * gdbarch.c, gdbarch.h: Regenerate.
5797 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5799 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
5800 gdbarch_fetch_tls_load_module_address.
5801 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
5802 gdbarch_fetch_tls_load_module_address_p.
5803 * gdbarch.c, gdbarch.h: Regenerate.
5805 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5807 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
5808 gdbarch_decr_pc_after_break.
5809 * tracepoint.c (trace_dump_command): Likewise.
5810 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
5811 * linux-thread-db.c (check_event): Likewise.
5812 * linux-nat.c (cancel_breakpoints_callback): Likewise.
5813 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
5814 * frame.h: Likewise (comment).
5815 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
5816 * aix-thread.c (aix_thread_wait): Likewise.
5817 * gdbarch.c, gdbarch.h: Regenerate.
5819 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5821 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
5822 gdbarch_address_class_type_flags.
5823 * dwarf2read.c (read_tag_pointer_type): Likewise.
5824 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
5825 gdbarch_address_class_type_flags_p.
5826 * dwarf2read.c (read_tag_pointer_type): Likewise.
5827 * gdbarch.c, gdbarch.h: Regenerate.
5829 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5831 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
5832 * value.c (value_as_address): Likewise (comment).
5833 * remote-mips.c (common_breakpoint): Likewise.
5834 * regcache.c (read_pc_pid): Likewise.
5835 * printcmd.c (do_one_display): Likewise.
5836 * monitor.c (monitor_write_memory, monitor_read_memory)
5837 (monitor_insert_breakpoint): Likewise.
5838 * mips-tdep.c (heuristic_proc_start): Likewise.
5839 * infrun.c (insert_step_resume_breakpoint_at_frame)
5840 (insert_step_resume_breakpoint_at_caller): Likewise.
5841 * buildsym.c (record_line): Likewise.
5842 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
5843 (arm_get_next_pc): Likewise.
5844 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
5845 (store_regs): Likewise.
5846 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
5847 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
5848 * gdbarch.c, gdbarch.h: Regenerate.
5850 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5852 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
5853 * tracepoint.c (scope_info): Likewise.
5854 * target.c (debug_print_register): Likewise.
5855 * stack.c (frame_info): Likewise.
5856 * sh-tdep.c (sh_register_reggroup_p): Likewise.
5857 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
5858 (sh64_media_print_registers_info)
5859 (sh64_compact_print_registers_info): Likewise.
5860 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
5861 * remote-sim.c (gdbsim_fetch_register): Likewise.
5862 * remote.c (packet_reg): Likewise (comment).
5863 * reggroups.c (default_register_reggroup_p): Likewise.
5864 * regcache.c (regcache_dump): Likewise.
5865 * printcmd.c (address_info): Likewise.
5866 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
5867 * mt-dep.c (mt_registers_info): Likewise.
5868 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
5869 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
5870 (mips_read_fp_register_double, mips_print_fp_register)
5871 (mips_print_register, print_gp_register_row, mips_print_registers_info)
5872 (mips_register_sim_regno): Likewise.
5873 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
5874 * inf-ptrace.c (inf_ptrace_fetch_register)
5875 (inf_ptrace_store_register): Likewise.
5876 * infcmd.c (default_print_registers_info): Likewise.
5877 * ia64-linux-nat.c (ia64_linux_fetch_register)
5878 (ia64_linux_store_register): Likewise.
5879 * i386-linux-nat.c (fetch_register, store_register): Likewise.
5880 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
5881 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
5882 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
5883 (hppa_hpux_store_register): Likewise.
5884 * findvar.c (locate_var_value): Likewise.
5885 * dwarf2loc.c (locexpr_describe_location): Likewise.
5886 * dwarf2-frame.c (execute_cfa_program): Likewise.
5887 * arm-tdep.c (arm_push_dummy_call): Likewise.
5888 * arch-utils.c (legacy_register_sim_regno): Likewise.
5889 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
5890 * alpha-nat.c (fetch_osf_core_registers): Likewise.
5891 * mi/mi-main.c (mi_cmd_data_list_register_names)
5892 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
5893 (mi_cmd_data_write_register_values): Likewise.
5894 * gdbarch.c, gdbarch.h: Regenerate.
5896 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
5898 * target-memory.c (blocks_to_erase): Correct off-by-one error.
5900 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
5902 * remote.c (process_g_packet): Don't check size.
5903 * gdbarch.sh: Remove register_bytes_ok.
5904 * gdbarch.c: Regenerated.
5905 * gdbarch.h: Regenerated.
5906 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
5907 (m68k_register_bytes_ok): Remove.
5908 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
5910 2007-06-06 Andreas Schwab <schwab@suse.de>
5912 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
5913 (destroy_addr_space_name): Define.
5914 (libunwind_load): Get address of destroy_addr_space function.
5915 (libunwind_frame_cache): Destroy unw_addr_space_t object before
5916 returning unsuccessfully.
5917 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
5919 (libunwind_sigtramp_frame_sniffer): Likewise.
5920 (libunwind_get_reg_special): Likewise.
5922 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5924 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
5925 gdbarch_fetch_pointer_argument.
5926 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
5927 * gdbarch.c, gdbarch.h: Regenerate.
5929 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5931 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
5932 gdbarch_have_nonsteppable_watchpoint.
5933 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
5934 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
5935 gdbarch_cannot_step_breakpoint.
5936 * infrun.c (resume): Likewise.
5937 * gdbarch.c, gdbarch.h: Regenerate.
5939 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5941 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
5942 * stack.c (print_frame_args): Likewise.
5943 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
5944 * stack.c (print_args_stub, frame_info): Likewise.
5945 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
5946 * stack.c (print_args_stub, frame_info): Likewise.
5947 * gdbarch.c, gdbarch.h: Regenerate.
5949 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5951 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
5952 gdbarch_coff_make_msymbol_special.
5953 * coffread.c (coff_symtab_read): Likewise.
5954 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
5955 gdbarch_elf_make_msymbol_special.
5956 * elfread.c (elf_symtab_read): Likewise.
5957 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
5958 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
5959 * gdbarch.c, gdbarch.h: Regenerate.
5961 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5963 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
5964 gdbarch_frame_red_zone_size.
5965 * gdbarch.c, gdbarch.h: Regenerate.
5967 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5969 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
5970 * infcall.c (call_function_by_hand): Likewise.
5971 * gcore.c (derive_stack_segment): Likewise.
5972 * frame.c (frame_id_inner): Likewise.
5973 * arch-utils.c (core_addr_lessthan): Likewise (comment).
5974 * ada-lang.c (ensure_lval): Likewise.
5975 * gdbarch.c, gdbarch.h: Regenerate.
5977 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5979 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
5980 gdbarch_address_to_pointer.
5981 * findvar.c (store_typed_address): Likewise.
5982 * gdbtypes.c (make_pointer_type): Likewise (comment).
5983 * procfs.c (procfs_address_to_host_pointer): Likewise.
5984 * std-regs.c (value_of_builtin_frame_reg): Likewise.
5985 (value_of_builtin_frame_fp_reg): Likewise.
5986 (value_of_builtin_frame_pc_reg): Likewise.
5987 * utils.c (paddress): Likewise (comment).
5988 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
5989 gdbarch_pointer_to_address.
5990 * findvar.c (extract_typed_address): Likewise.
5991 * gdbtypes.c (make_pointer_type): Likewise (comment).
5992 * valops.c (value_cast): Likewise (comment).
5993 * gdbarch.c, gdbarch.h: Regenerate.
5995 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5997 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
5998 * infrun.c (handle_inferior_event): Likewise.
5999 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
6000 gdbarch_get_longjmp_target_p.
6001 * breakpoint.c (breakpoint_re_set): Likewise.
6002 * infrun.c (handle_inferior_event): Likewise.
6003 * gdbarch.c, gdbarch.h: Regenerate.
6005 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6007 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
6008 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
6009 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
6010 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
6011 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
6012 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
6013 find_stub_with_shl_get, cover_find_stub_with_shl_get,
6014 initialize_hp_cxx_exception_support, child_enable_exception_callback,
6015 current_ex_event, child_get_current_exception_event): Remove.
6016 (hppa_hpux_inferior_created): Remove.
6017 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
6019 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
6020 (deprecated_exception_support_initialized): Remove.
6021 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
6022 (deprecated_exception_support_initialized): Remove.
6023 (breakpoint_init_inferior): Remove handling of non-zero
6024 deprecated_exception_catchpoints_are_fragile.
6026 * symtab.h (deprecated_hp_som_som_object_present): Remove.
6027 * symtab.c (deprecated_hp_som_som_object_present): Remove.
6028 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
6029 deprecated_hp_som_som_object_present.
6030 * eval.c (evaluate_subexp_standard): Likewise.
6031 * valops.c (value_cast): Likewise.
6033 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
6034 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
6035 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
6037 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6039 * objfiles.h (ImportEntry, ExportEntry): Remove types.
6040 (struct objfile): Remove import_list, import_list_size,
6041 export_list, export_list_size members.
6042 (is_in_import_list): Remove prototype.
6043 * objfiles.c (is_in_import_list): Remove.
6044 * somread.c (init_import_symbols, init_export_symbols): Remove.
6045 (som_symfile_read): Do not call init_import_symbols. Do not
6046 set objfile->export_list and objfile->export_list_size.
6048 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
6050 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
6051 Use the original objfile if necessary.
6053 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
6055 * defs.h (ldirname): New prototype.
6056 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
6058 * utils.c (ldirname): New function.
6059 * xml-tdesc.c (file_read_description_xml): Use ldirname.
6061 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6063 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
6065 2007-06-01 Joel Brobecker <brobecker@adacore.com>
6067 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
6069 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6071 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
6073 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6075 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
6076 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
6077 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
6078 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
6079 (ppc_linux_in_sigtramp, insn_is_sigreturn,
6080 ppc_linux_at_sigtramp_return_path): Remove.
6082 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6084 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
6085 (xtensa_register_write_masked, xtensa_register_read_masked)
6086 (xtensa_extract_return_value, xtensa_store_return_value
6087 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
6088 TARGET_BYTE_ORDER by gdbarch_byte_order.
6089 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
6090 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
6091 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
6092 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
6093 (sh64_push_dummy_call, sh64_extract_return_value)
6094 (sh64_store_return_value, sh64_register_convert_to_virtual)
6095 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
6096 (sh64_pseudo_register_write, sh64_do_fp_register)
6097 (sh64_frame_prev_register): Likewise.
6098 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
6099 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
6100 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
6101 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
6102 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
6103 * ppc-linux-nat.c (store_register): Likewise.
6104 * nto-tdep.c (nto_find_and_open_solib)
6105 (nto_init_solib_absolute_prefix): Likewise.
6106 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
6107 (mips_convert_register_p, mips_eabi_push_dummy_call)
6108 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
6109 (mips_o32_push_dummy_call, mips_o32_return_value)
6110 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
6111 (mips_read_fp_register_single, mips_read_fp_register_double)
6112 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
6113 (mips_breakpoint_from_pc): Likewise.
6114 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
6115 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
6116 (mips_linux_o32_sigframe_init): Likewise.
6117 * m32r-tdep.c (m32r_memory_insert_breakpoint)
6118 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
6119 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
6120 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
6121 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
6122 * coffread.c (process_coff_symbol): Likewise.
6123 * arm-tdep.c (convert_from_extended, convert_to_extended)
6124 (gdb_print_insn_arm): Likewise.
6126 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6128 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
6129 * i386-tdep.c (i386_dbx_reg_to_regnum)
6130 (i386_svr4_reg_to_regnum): Likewise.
6131 * inf-ptrace.c (inf_ptrace_fetch_registers)
6132 (inf_ptrace_store_registers): Likewise.
6133 * corelow.c (get_core_registers): Likewise.
6134 * i386-linux-nat.c (supply_gregset, fill_gregset)
6135 (i386_linux_fetch_inferior_registers)
6136 (i386_linux_store_inferior_registers): Likewise.
6137 * remote.c (init_remote_state,packet_reg_from_regnum)
6138 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
6139 (remote_prepare_to_store,store_registers_using_G)
6140 (remote_store_registers,remote_arch_state): Likewise.
6141 * tracepoint.c (encode_actions): Likewise.
6142 * mi/mi-main.c (mi_cmd_data_list_register_names)
6143 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6144 (mi_cmd_data_write_register_values): Likewise.
6145 * tui/tui-regs.c (tui_show_register_group)
6146 (tui_show_register_group): Likewise.
6147 * xtensa-tdep.h (FP_ALIAS): Likewise.
6148 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
6149 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
6150 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
6151 * win32-nat.c (do_win32_fetch_inferior_registers)
6152 (do_win32_store_inferior_registers,fetch_elf_core_registers
6153 * user-regs.h: Likewise (comment).
6154 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6155 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6156 * target-descriptions.h: Likewise (comment).
6157 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
6158 * target.c (debug_print_register): Likewise.
6159 * stack.c (frame_info): Likewise.
6160 * stabsread.c (define_symbol): Likewise.
6161 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
6162 (sh64_media_print_registers_info)
6163 (sh64_compact_print_registers_info): Likewise.
6164 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6165 * rs6000-nat.c (fetch_register,store_register): Likewise.
6166 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
6167 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
6168 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
6169 * remote-m32r-sdi.c (m32r_fetch_registers)
6170 (m32r_store_registers): Likewise.
6171 * reggroups.c (default_register_reggroup_p): Likewise.
6172 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
6173 (regcache_restore,regcache_dump): Likewise.
6174 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
6175 * mips-tdep.c (mips_xfer_register,mips_register_name)
6176 (mips_register_reggroup_p,mips_pseudo_register_read)
6177 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
6178 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
6179 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
6180 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
6181 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
6182 (print_gp_register_row,mips_print_registers_info)
6183 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6184 (mips_register_sim_regno): Likewise.
6185 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
6186 (mips_linux_n32n64_sigframe_init): Likewise.
6187 * mips-linux-nat.c (mips_linux_register_addr)
6188 (mips64_linux_register_addr): Likewise.
6189 * findvar.c (value_of_register): Likewise.
6190 * infcmd.c (default_print_registers_info,registers_info)
6191 (print_vector_info,print_float_info): Likewise.
6192 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
6193 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
6194 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6195 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
6196 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6197 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
6198 (ia64_cannot_store_register,ia64_linux_fetch_registers)
6199 (ia64_linux_store_registers): Likewise.
6200 * hpux-thread.c (hpux_thread_fetch_registers)
6201 (hpux_thread_store_registers): Likewise.
6202 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
6203 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
6204 (h8300_register_type): Likewise.
6205 * dwarf2-frame.c (dwarf2_frame_cache)
6206 (dwarf2_frame_state_alloc_regs): Likewise.
6207 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
6208 (cris_cannot_store_register,crisv32_cannot_fetch_register)
6209 (crisv32_cannot_store_register,cris_register_name): Likewise.
6210 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
6211 * arch-utils.c (legacy_register_sim_regno)
6212 (legacy_virtual_frame_pointer): Likewise.
6213 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
6214 * arm-tdep.h: Likewise (comment).
6215 * frv-tdep.c (frv_register_sim_regno): Likewise.
6216 * m68klinux-nat.c (old_fetch_inferior_registers)
6217 (old_store_inferior_registers): Likewise.
6218 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
6219 * irix5-nat.c (fetch_core_registers): Likewise.
6220 * hppa-tdep.c (hppa_frame_cache): Likewise.
6221 * hppa-linux-nat.c (hppa_linux_register_addr)
6222 (hppa_linux_fetch_inferior_registers)
6223 (hppa_linux_store_inferior_registers): Likewise.
6224 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
6225 (hppa_hpux_store_inferior_registers): Likewise.
6226 * amd64-nat.c (amd64_native_gregset_reg_offset)
6227 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
6228 * dbug-rom.c (dbug_regname): Likewise.
6229 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
6230 (HARD_PAGE_REGNUM (comment)): Likewise.
6231 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
6232 * i386-tdep.c (i386_dbx_reg_to_regnum)
6233 (i386_svr4_reg_to_regnum): Likewise.
6234 * mi/mi-main.c (mi_cmd_data_list_register_names)
6235 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6236 (mi_cmd_data_write_register_values): Likewise.
6237 * gdbarch.c, gdbarch.h: Regenerate.
6238 * tui/tui-regs.c (tui_show_register_group): Likewise.
6239 * xtensa-tdep.h (FP_ALIAS): Likewise.
6240 * user-regs.h: Likewise (comment).
6241 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6242 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6243 * target-descriptions.h: Likewise (comment).
6244 * target.c (debug_print_register): Likewise.
6245 * stack.c (frame_info): Likewise.
6246 * stabsread.c (define_symbol): Likewise.
6247 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
6248 (sh64_compact_print_registers_info): Likewise.
6249 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6250 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
6251 (regcache_restore,regcache_dump): Likewise.
6252 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
6253 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6254 (mips_stab_reg_to_regnum): Likewise.
6255 * findvar.c (value_of_register): Likewise.
6256 * infcmd.c (default_print_registers_info,registers_info)
6257 (print_vector_info,print_float_info): Likewise.
6258 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6259 * h8300-tdep.c (h8300_register_type): Likewise.
6260 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6261 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
6262 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
6263 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
6264 * parse.c: Remove comment.
6265 * gdbarch.c, gdbarch.h: Regenerate
6267 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6269 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
6270 gdbarch_cannot_fetch_register.
6271 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6272 * hppa-linux-nat.c (fetch_register): Likewise.
6273 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
6274 * m68klinux-nat.c (fetch_register): Likewise.
6275 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
6277 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
6278 gdbarch_cannot_store_register.
6279 * hppa-linux-nat.c (store_register): Likewise.
6280 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
6281 * regcache.c (regcache_raw_write): Likewise.
6282 * m68klinux-nat.c (store_register): Likewise.
6283 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
6284 * gdbarch.c, gdbarch.h: Regenerate.
6286 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6288 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
6289 * gdbarch.c, gdbarch.h: Regenerate.
6291 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6293 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
6294 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6295 * gdbarch.c, gdbarch.h: Regenerate.
6297 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6299 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
6300 * ax-gdb.c (gen_bitfield_ref): Likewise.
6301 * mi/mi-main.c (get_register): Likewise.
6302 * findvar.c (default_value_from_register, extract_signed_integer)
6303 (extract_unsigned_integer, extract_long_unsigned_integer)
6304 (store_signed_integer, store_unsigned_integer): Likewise.
6305 * regcache.c (regcache_dump): Likewise.
6306 * value.c (lookup_internalvar, value_of_internalvar)
6307 (set_internalvar): Likewise.
6309 * valprint.c (print_binary_chars, print_octal_chars)
6310 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
6311 * infcmd.c (default_print_registers_info): Likewise.
6312 * arch-utils.c (selected_byte_order, show_endian): Likewise.
6313 * stabsread.c (define_symbol): Likewise.
6314 * doublest.c (floatformat_from_length, floatformat_from_type)
6315 (extract_typed_floating, store_typed_floating): Likewise.
6316 * gdbarch.c, gdbarch.h: Regenerate.
6318 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6320 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
6321 gdbarch_call_dummy_location.
6322 * infcall.c (call_function_by_hand): Likewise.
6323 * inferior.h: Change comment.
6324 * arch-utils.c: Change comment.
6325 * gdbarch.c, gdbarch.h: Regenerate.
6327 2007-05-28 Joel Brobecker <brobecker@adacore.com>
6329 * solib-aix5.c: Delete.
6330 * Makefile.in (solib-aix5.o): Delete rule.
6332 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
6334 * breakpoint.h (enum bpstat_what_main_action): Remove
6335 BPSTAT_WHAT_THROUGH_SIGTRAMP.
6336 * infrun.c (process_event_stop_test): Do not check for it.
6338 2007-05-22 Chris Dearman <chris@mips.com>
6339 Maciej W. Rozycki <macro@mips.com>
6341 * ser-unix.c (show_serial_hwflow): New function.
6342 (hardwire_raw): Add hardware flow control support.
6343 (_initialize_ser_hardwire): Add "set/show remoteflow".
6344 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
6345 * NEWS: Document the new command.
6347 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6349 * config/i386/tm-linux.h (sys_quotactl): Do not define.
6350 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
6351 define for i[[3456]]86-*-linux* native configurations.
6352 * config.in, configure: Regenerate.
6354 2007-05-19 Joel Brobecker <brobecker@adacore.com>
6356 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
6357 a core file. Add comment in the function description.
6359 2007-05-18 Caroline Tice <ctice@apple.com>
6361 * c-valprint.c (c_value_print): If the initialized field of the
6362 value struct is 0, print out "[uninitialized]" before the value.
6363 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
6364 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
6365 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
6366 ctx->initialized appropriately. Verify no location op follows
6368 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
6369 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
6370 set_value_initialized.
6371 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
6372 (decode_locdesc): Add case for DW_OP_GNU_uninit.
6373 * value.c (struct value): New field, initialized.
6374 (allocate_value): Initialize new field.
6375 (set_value_initialized): New function.
6376 (value_initialized): New function.
6377 * value.h (value_initialized): New extern declaration.
6378 (set_value_initialized): Likewise.
6380 2007-05-18 Caroline Tice <ctice@apple.com>
6382 * MAINTAINERS (Write After Approval): Add self.
6384 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6386 * gdbtypes.c (make_reference_type): Preserve the type chain
6387 and set the length of all the variants of the pointer type.
6389 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6391 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
6392 and set the length of all the variants of the pointer type.
6394 2007-05-17 Maciej W. Rozycki <macro@mips.com>
6396 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
6398 (mips_o64_push_dummy_call): Reformat a comment.
6400 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
6402 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
6403 (score_prologue_frame_base_address): Return fp to keep gdb print
6404 local variables correctly when debugging information is stabs.
6406 (score_analyze_prologue): For software watchpoint, fetch all the
6407 instructions from range [startaddr, pc] once and identify them locally
6408 to reduce memory access.
6409 (score_malloc_and_get_memblock, score_free_memblock)
6410 (score_adjust_memblock_ptr): New functions.
6411 (score_fetch_inst): Fetch single instruction or mutiple instructions.
6413 (score_target_can_use_watch, score_stopped_by_watch)
6414 (score_target_insert_watchpoint, score_target_remove_watchpoint)
6415 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
6416 New functions for remote & local hw-watchpoint and hw-breakpoint.
6418 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
6420 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
6421 declarations as well.
6423 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6425 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
6426 * config/arm/tm-embed.h: Delete file.
6428 * arm-tdep.h (arm_software_single_step): Declare.
6429 * arm-tdep.c (arm_software_single_step): Make global.
6430 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
6432 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
6433 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
6434 * armobsd-tdep.c (armobsd_init_abi): ... here ...
6435 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
6437 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
6438 allow defines to be overriden by TM file.
6439 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
6440 change default to {0xbe,0xbe}.
6441 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
6442 arm_obsd_thumb_be_breakpoint): New global variables.
6443 (armobsd_init_abi): Override tdep->thumb_breakpoint and
6444 tdep->thumb_breakpoint_size.
6445 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
6446 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
6447 tdep->thumb_breakpoint_size.
6449 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
6451 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6453 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
6456 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
6457 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
6458 (mips_stack_argsize_string, mips_stack_argsize): Delete.
6459 (mips_abi_regsize): Simplify.
6460 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6461 (mips_n32n64_return_value, mips_o32_push_dummy_call)
6462 (mips_o32_return_value, mips_o64_push_dummy_call)
6463 (mips_o64_return_value): Propogate constant register sizes. Use the
6464 ABI register size instead of mips_stack_argsize.
6465 (mips_dump_tdep): Don't print mips_stack_argsize.
6466 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
6469 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6471 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
6472 * config/mips/tm-linux.h: Delete.
6473 * mips-linux-tdep.c (mips_svr4_so_ops): New.
6474 (mips_linux_in_dynsym_resolve_code): Make static. Use
6475 svr4_in_dynsym_resolve_code.
6476 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
6478 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
6480 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
6481 * Makefile.in (mips-linux-tdep.o): Update.
6482 * solib.c (set_solib_ops): New.
6483 (current_target_so_ops): Update comment.
6484 * solib.h (set_solib_ops): New prototype.
6486 2007-05-16 Chris Dearman <chris@mips.com>
6488 * printcmd.c (do_examine): Fix typos in a comment.
6490 2007-05-16 Richard Sandiford <richard@codesourcery.com>
6492 * configure.ac: Allow sysroots to be relocated under $prefix as
6493 well as $exec_prefix.
6494 * configure: Regenerate.
6496 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6498 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
6499 (offsetof): Do not define.
6500 (find_stub_with_shl_get): Use numerical value 3 instead of
6501 symbolic value TYPE_PROCEDURE.
6503 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6505 * gdb_proc_service.h (paddr_t): Delete typedef.
6506 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
6507 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
6508 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
6509 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
6510 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
6511 * Makefile.in (proc-service.o): Update.
6513 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6515 * Makefile.in (mips-tdep.o): Update.
6516 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
6519 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6521 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
6522 instead of store_typed_address.
6523 * value.c (pack_long): New.
6524 (value_from_longest): Use it.
6525 * value.h (pack_long): New prototype.
6527 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6529 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
6530 DW_EH_PE_signed if appropriate.
6532 2007-05-14 Paul Brook <paul@codesourcery.com>
6533 Daniel Jacobowitz <dan@codesourcery.com>
6535 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
6537 (dwarf_decode_lines): Check for line info without a file.
6539 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6541 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
6544 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6546 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
6548 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
6550 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
6552 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6554 * gdbarch.sh (read_sp): Remove.
6555 * gdbarch.c, gdbarch.h: Regenerate.
6556 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
6558 * avr-tdep.c (avr_read_sp): Remove.
6559 (avr_unwind_sp): New function.
6560 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
6561 * mips-tdep.c (mips_read_sp): Remove.
6562 (mips_unwind_sp): New function.
6563 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
6564 * score-tdep.c (score_read_unsigned_register): Remove.
6565 (score_read_sp): Remove.
6566 (score_unwind_sp): New function.
6567 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
6569 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
6571 * buildsym.c (start_subfile): Handle absolute pathnames
6572 while comparing subfile names.
6574 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6576 * hppa-hpux-tdep.c: Include "regcache.h".
6577 * hppa-linux-tdep.c: Likewise.
6578 * hppa-tdep.c: Include "gdb_stdint.h".
6579 (find_unwind_entry): Cast host pointer to uintptr_t before passing
6581 * Makefile.in: Update dependencies.
6583 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6585 * blockframe.c: Remove obsolete comments.
6586 * alpha-nat.c (fetch_osf_core_registers): Update comment.
6587 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
6588 * hppa-tdep.h (enum hppa_regnum): Likewise.
6589 * mips-tdep.h: Likewise.
6590 * m68hc11-tdep.c: Likewise.
6592 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6594 * inferior.h (read_sp): Remove prototype.
6595 * regcache.c (read_sp): Remove.
6596 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
6597 * infcall.c (call_function_by_hand): Likewise.
6598 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
6600 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6602 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6604 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
6605 instead of read_register and read_register_pid.
6607 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
6608 argument instead of PTID. Use regcache functions instead of
6610 (ia64_linux_insert_watchpoint): Update call.
6611 (ia64_linux_stopped_data_address): Use regcache functions
6612 instead of read_register_pid and write_register_pid.
6614 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6616 * libunwind-frame.h (struct regcache): Add forward declaration.
6617 (libunwind_get_reg_special): Add REGCACHE argument.
6618 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
6619 argument. Pass it to unw_init_remote_p.
6621 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
6622 libunwind_get_reg_special.
6623 (ia64_access_reg): Remove "write" case.
6624 (ia64_access_fpreg): Likewise. Read from next_frame passed
6625 as callback argument instead of from current_regcache.
6626 (ia64_access_rse_reg): Remove "write" case. Read from regcache
6627 passed as callback argument instead of from current_regcache.
6628 (ia64_access_rse_fpreg): New function.
6629 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
6631 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6633 * NEWS: Mention SPU overlay support.
6635 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6637 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
6639 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6641 * breakpoint.c (remove_breakpoint): Do not remove software
6642 breakpoints in unmapped overlay sections.
6644 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6646 * spu-tdep.c: Include "observer.h".
6647 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
6648 (spu_overlay_data): New variable.
6649 (struct spu_overlay_table): New type.
6650 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
6651 spu_overlay_new_objfile): New functions.
6652 (spu_gdbarch_init): Install spu_overlay_update.
6653 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
6654 allocate spu_overlay_data objfile data.
6656 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6658 * gdbarch.sh (overlay_update): New gdbarch function.
6659 (struct obj_section): Add forward declaration.
6660 * gdbarch.c, gdbarch.h: Regenerate.
6662 * symfile.c (simple_overlay_update): Make global.
6663 (target_overlay_update): Remove variable.
6664 (overlay_is_mapped): Call gdbarch_overlay_update instead of
6665 target_overlay_update.
6666 (overlay_load_command): Likewise.
6667 * symfile.h (struct obj_section): Add forward declaration.
6668 (simple_overlay_update): Add prototype.
6670 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
6672 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6674 * observer.sh: Add "struct objfile" forward declaration.
6675 * target.h (deprecated_target_new_objfile_hook): Remove.
6676 * symfile.c (deprecated_target_new_objfile_hook): Remove.
6677 (clear_symtab_users): Call observer_notify_new_objfile.
6678 (symbol_file_add_with_addrs_or_offsets): Likewise.
6679 * rs6000-nat.c: Include "observer.h".
6680 (vmap_ldinfo): Call observer_notify_new_objfile.
6681 (xcoff_relocate_core): Likewise.
6682 * remote.c (remote_new_objfile_chain): Remove.
6683 (remote_new_objfile): Do not call remote_new_objfile_chain.
6684 (_initialize_remote): Use observer_attach_new_objfile.
6685 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
6686 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
6687 (_initialize_tui_hooks): Use observer_attach_new_objfile.
6688 * aix-thread.c: Include "observer.h".
6689 (target_new_objfile_chain): Remove.
6690 (new_objfile): Do not call target_new_objfile_chain.
6691 (_initialize_aix_thread): Use observer_attach_new_objfile.
6692 * hpux-thread.c: Include "observer.h"
6693 (target_new_objfile_chain): Remove.
6694 (hpux_thread_new_objfile): Make static. Do not call
6695 target_new_objfile_chain.
6696 (_initialize_hpux_thread): Use observer_attach_new_objfile.
6697 * linux-thread-db.c: Include "observer.h".
6698 (target_new_objfile_chain): Remove.
6699 (thread_db_new_objfile): Do not call target_new_objfile_chain.
6700 (_initialize_thread_db): Use observer_attach_new_objfile.
6701 * sol-thread.c: Include "observer.h".
6702 (target_new_objfile_chain): Remove.
6703 (sol_thread_new_objfile): Make static. Do not call
6704 target_new_objfile_chain.
6705 (_initialize_sol_thread): Use observer_attach_new_objfile.
6706 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
6707 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
6710 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6712 * gdbarch.sh (remote_translate_xfer_address): Remove.
6713 * gdbarch.h, gdbarch.c: Regenerate.
6714 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
6715 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
6716 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
6717 call gdbarch_remote_translate_xfer_address.
6718 * frv-tdep.c (frv_gdbarch_init): Do not call
6719 set_gdbarch_remote_translate_xfer_address.
6720 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
6721 (ia64_gdbarch_init): Do not install it.
6723 2007-05-11 Bob Wilson <bob.wilson@acm.org>
6725 * NEWS: Mention change in handling the -tui option.
6727 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
6729 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
6732 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6734 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
6735 (breakpoint_inserted_here_p): Call it.
6736 (software_breakpoint_inserted_here_p): Likewise.
6738 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
6740 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
6741 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
6742 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
6743 (inf_ptrace_store_register): Likewise.
6744 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
6745 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
6747 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
6749 * linux-nat.c (linux_trad_target): Adapt parameter list.
6750 * linux-nat.h (linux_trad_target): Likewise.
6752 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
6754 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
6755 (mips_linux_cannot_store_register): Likewise.
6756 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
6757 Return (CORE_ADDR) -1 for registers that cannot be fetched or
6758 stored via ptrace. Use GDBARCH instead of current_gdbarch.
6759 (mips64_linux_register_addr): Likewise.
6760 (mips_linux_register_u_offset): Adapt parameter list. Pass
6761 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
6763 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6764 * config/mips/nm-linux.h: Delete file.
6766 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
6768 * remote.c (remote_detach): Error out if remote can't detach.
6770 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
6772 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
6773 instruction's opcode in the "opcode" variable and declares new
6774 variable "closing_insn".
6776 2007-05-10 Chris Dearman <chris@mips.com>
6777 Maciej W. Rozycki <macro@mips.com>
6779 * cli/cli-setshow.c (do_setshow_command): Remove trailing
6780 whitespace when setting a var_filename.
6782 2007-05-09 Bob Wilson <bob.wilson@acm.org>
6784 * main.c (captured_main): Recognize -tui option and print an error
6785 message when the TUI is not configured.
6787 2007-05-09 Andreas Schwab <schwab@suse.de>
6789 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
6790 set removed members.
6791 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
6793 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6795 * gdbarch.sh (deprecated_store_struct_return): Remove.
6796 * gdbarch.c, gdbarch.h: Regenerate.
6797 * frv-tdep.c (frv_store_struct_return): Remove.
6798 (frv_gdbarch_init): Do not install it.
6800 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6802 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
6803 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
6804 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
6806 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6808 * spu-linux-nat.c: Include "gdb_stdint.h".
6809 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
6810 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
6811 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
6812 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
6813 (spu_child_wait): Mark up string for translation.
6815 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
6816 Luis Machado <luisgpm@br.ibm.com>
6818 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
6819 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
6820 BC_INSTRUCTION): Define.
6821 (deal_with_atomic_sequence): New function.
6822 (rs6000_software_single_step): Call deal_with_atomic_sequence.
6823 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
6824 gdbarch_software_single_step routine.
6826 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
6828 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
6829 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
6830 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
6831 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
6832 spu_child_post_attach, spu_fetch_inferior_registers,
6833 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
6834 memory addresses as ULONGEST, not CORE_ADDR.
6836 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
6838 * gdbarch.sh: Add skip_permanent_breakpoint callback.
6839 * gdbarch.h, gdbarch.c: Regenerate.
6841 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
6842 (resume): Call gdbarch_skip_permanent_breakpoint instead of
6843 SKIP_PERMANENT_BREAKPOINT. Inline default case.
6845 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
6846 Add REGCACHE argument. Use it instead of read/write_register.
6847 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
6849 * config/pa/tm-hppah.h: Delete file.
6850 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
6851 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
6853 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
6855 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
6856 * NEWS: Mention improved C++ thunk support.
6857 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
6858 * cp-abi.c (cplus_skip_trampoline): New.
6859 * cp-abi.h (cplus_skip_trampoline): New prototype.
6860 (struct cp_abi_ops): Add skip_trampoline member.
6861 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
6862 (init_gnuv3_ops): Set skip_trampoline.
6864 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
6866 * rs6000-tdep.c (struct frame_extra_info): Delete.
6868 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
6870 * linux-thread-db.c: Update some FIXME comments.
6871 (thread_db_xfer_partial): Delete.
6872 (init_thread_db_ops): Do not set to_xfer_partial.
6874 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6876 * inftarg.c, infptrace.c: Remove files.
6877 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
6878 (inftarg.o, infptrace.o): Remove rules.
6879 * gdbcore.h (register_addr): Remove prototype.
6880 * inferior.h (kill_inferior, store_inferior_registers,
6881 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
6882 call_ptrace, pre_fork_inferior): Remove prototypes.
6883 * target.h (child_xfer_memory, child_pid_to_exec_file,
6884 child_core_file_to_sym_file, child_post_attach,
6885 child_post_startup_inferior, child_acknowledge_created_inferior,
6886 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
6887 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
6888 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
6889 child_follow_fork, child_reported_exec_events_per_exec_call,
6890 child_has_exited, child_thread_alive): Remove prototypes.
6892 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6894 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
6895 (sparc_store_inferior_registers): Likewise.
6896 * sparc-nat.c (fetch_inferior_registers): Rename to ...
6897 (sparc_fetch_inferior_registers): ... this.
6898 (store_inferior_registers): Rename to ...
6899 (sparc_store_inferior_registers): ... this.
6900 (sparc_target): Update callback names.
6901 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
6902 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
6904 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6906 * linux-nat.c (child_post_attach): Rename to ...
6907 (linux_child_post_attach): ... this. Make static.
6908 (child_follow_fork): Rename to ...
6909 (linux_child_follow_fork): ... this. Make static.
6910 (child_insert_fork_catchpoint): Rename to ...
6911 (linux_child_insert_fork_catchpoint): ... this. Make static.
6912 (child_insert_vfork_catchpoint): Rename to ...
6913 (linux_child_insert_vfork_catchpoint): ... this. Make static.
6914 (child_insert_exec_catchpoint): Rename to ...
6915 (linux_child_insert_exec_catchpoint): ... this. Make static.
6916 (child_pid_to_exec_file): Rename to ...
6917 (linux_child_pid_to_exec_file): ... this. Make static.
6919 (linux_handle_extended_wait): Update call.
6920 (linux_xfer_partial): Update callback routine names.
6922 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6924 * configure.host (alpha*-*-osf[12]*): Remove support.
6925 * NEWS: Mention removed configurations.
6927 * config/alpha/alpha-osf1.mh: Delete file.
6928 * config/alpha/alpha-osf2.mh: Delete file.
6929 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
6931 * config/alpha/nm-osf.h: Delete file.
6932 * config/alpha/nm-osf2.h: Delete file.
6933 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
6934 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
6935 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
6937 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
6938 (register_addr, kernel_u_size): Remove.
6939 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
6941 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6943 * regcache.c (regcache_invalidate): New function.
6944 (register_cached): Remove.
6945 (set_register_cached): Remove.
6946 (deprecated_registers_fetched): Remove.
6947 (registers_changed): Use regcache_invalidate instead
6948 of set_register_cached.
6949 (regcache_raw_read): Update comment.
6951 * regcache.h (regcache_invalidate): Add prototype.
6952 (register_cached): Remove.
6953 (set_register_cached): Remove.
6954 (deprecated_registers_fetched): Remove.
6956 * findvar.c (value_of_register): Do not call register_cached.
6957 * frame.c (frame_register): Likewise.
6958 * tui/tui-regs.c (tui_get_register): Likewise.
6960 * remote.c (fetch_register_using_p): Do not call set_register_cached.
6961 (process_g_packet): Likewise.
6962 (remote_fetch_registers): Likewise.
6963 * remote-sim.c (gdbsim_fetch_register): Likewise.
6964 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
6965 by regcache_invalidate.
6966 (mt_pseudo_register_write): Likewise.
6967 * sh-tdep.c (sh_pseudo_register_write): Likewise.
6969 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
6970 call by loop over regcache_raw_supply (..., NULL).
6972 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6974 * target.h (struct target_ops): Add REGCACHE parameter to
6975 to_prepare_to_store.
6976 (target_prepare_to_store): Likewise.
6977 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
6978 (update_current_target): Adapt prepare_to_store de_fault rule.
6980 * regcache.c (regcache_raw_write): Pass regcache to
6981 target_prepare_to_store.
6983 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
6984 Do not call CHILD_PREPARE_TO_STORE.
6985 * gnu-nat.c (gnu_prepare_to_store): Likewise.
6986 * procfs.c (procfs_prepare_to_store): Likewise.
6988 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
6989 * go32-nat.c (go32_prepare_to_store): Likewise.
6990 * monitor.c (monitor_prepare_to_store): Likewise.
6991 * nto-procfs.c (procfs_prepare_to_store): Likewise.
6992 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
6993 * remote-mips.c (mips_prepare_to_store): Likewise.
6994 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
6995 * win32-nat.c (win32_prepare_to_store): Likewise.
6997 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
6998 Use it instead of current_regcache.
7000 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
7001 parameter. Pass it on to next target.
7002 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
7004 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7006 * target.h (struct regcache): Add forward declaration.
7007 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
7008 and to_store_registers target operations.
7009 (target_fetch_registers, target_store_registers): Update.
7011 * regcache.c (regcache_raw_read): Replace register_cached by
7012 regcache_valid_p. Pass regcache to target_fetch_registers.
7013 (regcache_raw_write): Pass regcache to target_store_registers.
7015 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
7016 store_regs, store_wmmx_regs): Replace register_cached by
7019 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
7020 to target_fetch_registers calls.
7021 * corelow.c (core_open): Likewise.
7022 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
7023 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7024 ps_lsetfpregs): Likewise.
7025 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7026 ps_lsetfpregs): Likewise.
7027 * win32-nat.c (win32_resume): Likewise.
7028 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
7029 to target_store_registers call.
7030 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
7032 * inferior.h (store_inferior_registers): Update prototype.
7033 (fetch_inferior_registers): Likewise.
7034 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
7035 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
7036 Update function pointer signatures.
7038 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
7039 use it instead of current_regcache, update calls.
7040 (aix_thread_store_registers): Likewise.
7041 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
7042 (alphabsd_store_inferior_registers): Likewise.
7043 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
7044 (amd64bsd_store_inferior_registers): Likewise.
7045 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
7046 (amd64_linux_store_inferior_registers): Likewise.
7047 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
7048 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
7049 fetch_wmmx_regs, store_wmmx_regs): Likewise.
7050 (arm_linux_fetch_inferior_registers): Likewise.
7051 (arm_linux_store_inferior_registers): Likewise.
7052 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
7053 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
7054 (store_register, store_regs, store_fp_register, store_fp_regs,
7055 armnbsd_store_registers): Likewise.
7056 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
7057 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
7058 (bsd_uthread_store_registers): Likewise.
7059 * corelow.c (get_core_registers): Likewise.
7060 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
7061 go32_store_registers): Likewise.
7062 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
7063 (hppabsd_store_registers): Likewise.
7064 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
7065 (hppa_hpux_fetch_inferior_registers): Likewise.
7066 (hppa_hpux_store_register): Likewise.
7067 (hppa_hpux_store_inferior_registers): Likewise.
7068 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
7069 (hppa_linux_fetch_inferior_registers): Likewise.
7070 (hppa_linux_store_inferior_registers): Likewise.
7071 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
7072 (hpux_thread_store_registers): Likewise.
7073 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
7074 (i386bsd_store_inferior_registers): Likewise.
7075 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
7076 gnu_store_registers): Likewise.
7077 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
7078 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
7080 (i386_linux_fetch_inferior_registers): Likewise.
7081 (i386_linux_store_inferior_registers): Likewise.
7082 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
7083 (ia64_linux_fetch_registers): Likewise.
7084 (ia64_linux_store_register): Likewise.
7085 (ia64_linux_store_registers): Likewise.
7086 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
7087 (inf_child_store_inferior_registers): Likewise.
7088 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
7089 (inf_ptrace_fetch_registers): Likewise.
7090 (inf_ptrace_store_register): Likewise.
7091 (inf_ptrace_store_registers): Likewise.
7092 * infptrace.c (fetch_register, store_register): Likewise.
7093 (fetch_inferior_registers, store_inferior_registers): Likewise.
7094 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
7095 (m32r_linux_fetch_inferior_registers): Likewise.
7096 (m32r_linux_store_inferior_registers): Likewise.
7097 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
7098 (m68kbsd_store_inferior_registers): Likewise.
7099 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
7100 store_register, old_store_inferior_registers, fetch_regs, store_regs,
7101 fetch_fpregs, store_fpregs): Likewise.
7102 (m68k_linux_fetch_inferior_registers): Likewise.
7103 (m68k_linux_store_inferior_registers): Likewise.
7104 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
7105 (m88kbsd_store_inferior_registers): Likewise.
7106 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
7107 (mips64obsd_store_inferior_registers): Likewise.
7108 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
7109 (mips64_linux_regsets_store_registers): Likewise.
7110 (mips64_linux_fetch_registers): Likewise.
7111 (mips64_linux_store_registers): Likewise.
7112 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
7113 (mipsnbsd_store_inferior_registers): Likewise.
7114 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
7115 (monitor_fetch_registers, monitor_store_registers): Likewise.
7116 * nto-procfs.c (procfs_fetch_registers): Likewise.
7117 (procfs_store_registers): Likewise.
7118 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
7119 fetch_register, supply_vrregset, fetch_altivec_registers,
7120 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
7121 (store_altivec_register, store_spe_register, store_register,
7122 fill_vrregset, store_altivec_registers, store_ppc_registers,
7123 ppc_linux_store_inferior_registers): Likewise.
7124 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
7125 (ppcnbsd_store_inferior_registers): Likewise.
7126 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
7127 (ppcobsd_store_registers): Likewise.
7128 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
7129 * remote.c (fetch_register_using_p, process_g_packet,
7130 fetch_registers_using_g, remote_fetch_registers): Likewise.
7131 (store_register_using_P, store_registers_using_G,
7132 remote_store_registers): Likewise.
7133 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
7134 m32r_store_register, m32r_store_register): Likewise.
7135 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
7136 * remote-sim.c (gdbsim_fetch_register): Likewise.
7137 (gdbsim_store_register): Likewise.
7138 * rs6000-nat.c (fetch_register, store_register): Likewise.
7139 (rs6000_fetch_inferior_registers): Likewise.
7140 (rs6000_store_inferior_registers): Likewise.
7141 * s390-nat.c (fetch_regs, store_regs): Likewise.
7142 (fetch_fpregs, store_fpregs): Likewise.
7143 (s390_linux_fetch_inferior_registers): Likewise.
7144 (s390_linux_store_inferior_registers): Likewise.
7145 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
7146 (shnbsd_store_inferior_registers): Likewise.
7147 * sol-thread.c (sol_thread_fetch_registers): Likewise.
7148 (sol_thread_store_registers): Likewise.
7149 * sparc-nat.c (fetch_inferior_registers): Likewise.
7150 (store_inferior_registers): Likewise.
7151 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
7152 (spu_store_inferior_registers): Likewise.
7153 * target.c (debug_print_register): Likewise.
7154 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
7155 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
7156 (vaxbsd_store_inferior_registers): Likewise.
7157 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
7158 (win32_fetch_inferior_registers): Likewise.
7159 (win32_store_inferior_registers): Likewise.
7161 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7163 * gdbcore.h (struct regcache): Add forward declaration.
7164 (struct core_fns): Add REGCACHE argument to core_read_registers
7166 * corelow.c (get_core_register_section): Add REGCACHE argument,
7167 use it instead of current_regcache, pass it to core_read_registers
7169 (get_core_registers): Add current_regcache as parameter to
7170 get_core_register_section calls.
7172 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
7173 use it instead of current_regcache.
7174 * armnbsd-nat.c (fetch_core_registers): Likewise.
7175 (fetch_elfcore_registers): Likewise.
7176 * core-regset.c (fetch_core_registers): Likewise.
7177 * cris-tdep.c (fetch_core_registers): Likewise.
7178 * irix5-nat.c (fetch_core_registers): Likewise.
7179 * m68klinux-nat.c (fetch_core_registers): Likewise.
7180 * mips-linux-tdep.c (fetch_core_registers): Likewise.
7181 * win32-nat.c (fetch_elf_core_registers): Likewise.
7183 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7185 * gregset.h (struct regcache): Add forward declaration.
7186 (supply_gregset): Add REGCACHE parameter, make GREGS const.
7187 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
7188 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
7189 (fill_gregset): Add REGCACHE parameter.
7190 (fill_fpregset): Likewise.
7191 (fill_fpxregset): Likewise.
7193 Update all definitions accordingly:
7194 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
7195 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
7196 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
7197 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
7198 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
7199 (supply_gregset): Add REGCACHE parameter, use it instead of
7200 current_regcache. Make GREGSETP parameter const, adapt casts.
7201 (supply_fpregset): Add REGCACHE parameter, use it instead of
7202 current_regcache. Make FPREGSETP parameter const, adapt casts.
7203 (fill_gregset): Add REGCACHE parameter, use it instead of
7205 (fill_fpregset): Likewise.
7207 Update all callers to pass in current_regcache as the new argument:
7208 * core-regset.c: Include "regcache.h".
7209 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
7210 * procfs.c: Include "regcache.h".
7211 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
7212 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
7213 (procfs_do_thread_registers): Likewise.
7214 (procfs_make_note_section): Likewise.
7215 * proc-service.c: Include "regcache.h".
7216 (ps_lgetregs): Update fill_gregset call.
7217 (ps_lsetregs): Update supply_gregset call.
7218 (ps_lgetfpregs): Update fill_fpregset call.
7219 (ps_lsetfpregs): Update supply_fpregset call.
7220 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
7221 supply_fpregset calls.
7222 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
7223 (ps_lgetregs): Update fill_gregset call.
7224 (ps_lsetregs): Update supply_gregset call.
7225 (ps_lgetfpregs): Update fill_fpregset call.
7226 (ps_lsetfpregs): Update supply_fpregset call.
7228 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
7229 fill_fpregset, and fill_fpxregset calls.
7230 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
7231 (store_regs): Update fill_gregset call.
7232 (fetch_fpregs): Update supply_fpregset call.
7233 (store_fpregs): Update fill_fpregset call.
7234 (fetch_fpxregs): Update supply_fpxregset call.
7235 (store_fpxregs): Update fill_fpxregset call.
7236 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
7237 (store_regs): Update fill_gregset call.
7238 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
7239 (store_regs): Update fill_gregset call.
7240 (fetch_fpregs): Update supply_fpregset call.
7241 (store_fpregs): Update fill_fpregset call.
7242 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
7243 * s390-nat.c (fetch_regs): Update supply_gregset call.
7244 (store_regs): Update fill_gregset call.
7245 (fetch_fpregs): Update supply_fpregset call.
7246 (store_fpregs): Update fill_fpregset call.
7248 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
7251 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7253 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
7254 it instead of current_regcache.
7255 (parse_register_dump): Add REGCACHE parameter, pass it to
7256 supply_register callback.
7257 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
7258 parse_register_dump.
7259 (monitor_dump_regs): Add REGCACHE parameter, pass it to
7260 parse_register_dump and dumpregs callback.
7261 (monitor_wait): Pass current_regcache to parse_register_dump and
7263 (monitor_fetch_register): Pass current_regcache to
7264 monitor_supply_register.
7265 (monitor_fetch_registers): Pass current_regcache to
7267 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
7268 supply_register and dumpregs callbacks.
7269 (monitor_supply_register, monitor_dump_reg_block): Update
7271 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
7272 it to monitor_supply_register.
7273 * dink32-rom.c (dink32_supply_register): Likewise.
7274 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
7275 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
7276 instead of current_regcache.
7278 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7280 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
7281 Add REGCACHE parameter. Use it instead of current_regcache.
7282 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
7283 i386nto_supply_gregset and i386nto_supply_fpregset.
7284 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
7285 of current_regcache.
7287 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
7288 nto_supply_ helper functions.
7289 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
7291 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
7293 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
7294 supply_greget, supply_fpregset, supply_altregset, supply_regset,
7295 and regset_fill member function pointers.
7296 (nto_dummy_supply_regset): Adapt prototype.
7298 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7300 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
7301 instead of current_regcache. Make REGS const.
7302 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
7303 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
7305 * shnbsd-nat.c: Include "regcache.h".
7306 (shnbsd_fetch_inferior_registers): Pass current_regcache to
7308 (shnbsd_store_inferior_registers): Pass current_regcache to
7310 * Makefile.in (shbsd-nat.o): Update dependencies.
7312 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7314 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
7315 instead of current_regcache.
7316 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
7317 Make GREGSETP const, remove superfluous casts.
7318 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7319 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
7321 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7322 (supply_64bit_reg): Likewise
7323 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
7324 Make GREGSETP const, adapt casts accordingly.
7325 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7326 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
7328 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7329 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
7331 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
7332 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
7333 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
7335 * mips-linux-nat.c: Include "regcache.h".
7336 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7337 current_regcache to mips{64}_(supply|fill)_ helper routines.
7338 (mips64_linux_regsets_fetch_registers): Likewise.
7339 (mips64_linux_regsets_store_registers): Likewise.
7341 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
7342 REGCACHE argument; replace current_regcache. Make REGS const.
7343 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
7344 replace current_regcache.
7345 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
7346 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
7347 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
7348 mipsnbsd_store_inferior_registers): Pass current_regcache to
7349 mipsnbsd_(supply|fill)_... helper routines.
7351 * Makefile.in (mips-linux-nat.o): Update dependencies.
7353 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7355 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
7356 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
7357 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
7358 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
7359 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
7360 * i386gnu-nat.c (store_fpregs): Likewise.
7361 * i386v4-nat.c (fill_fpregset): Likewise.
7362 * go32-nat.c (store_register, go32_store_registers): Likewise.
7364 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7366 * cris-tdep.c (supply_gregset): Rename to ...
7367 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
7368 instead of current_regcache.
7369 (fetch_core_registers): Update call. Pass current_regcache.
7371 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7373 * arnmnbsd-nat.c (supply_gregset): Rename to ...
7374 (arm_supply_gregset): ... this. Add REGCACHE parameter.
7375 Use it instead of current_regcache.
7376 (supply_fparegset): Rename to ...
7377 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
7378 Use it instead of current_regcache.
7379 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
7380 (fetch_core_registers, fetch_elfcore_registers): Likewise.
7382 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7384 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
7385 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
7386 use it instead of current_regcache.
7387 * alpha-tdep.h (struct regcache): Add forward declaration.
7388 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
7389 alpha_fill_fp_regs): Update prototypes.
7391 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
7392 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
7393 * alpha-linux-nat.c: Include "regcache.h".
7394 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7395 current_regcache to alpha_supply/fill_ routines.
7397 * alphabsd-tdep.c: Include "regcache.h".
7398 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
7399 pass it to alpha_supply_ routines. Make REGS const.
7400 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
7401 pass it to alpha_fill_ routines.
7402 * alphabsd-tdep.h (struct regcache): Add forward declaration.
7403 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
7404 alphabsd_fill_fpreg): Update prototypes.
7406 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7407 fill_fpregset, alphabsd_fetch_inferior_registers,
7408 alphabsd_store_inferior_registers): Pass current_regcache to
7409 alphabsd_supply/fill_ routines.
7411 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
7414 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7416 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
7417 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
7418 instead of current_regcache.
7419 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
7420 REGCACHE parameter, pass it to supply_ routines.
7421 (aix_thread_fetch_registers): Pass current_regcache to
7422 fetch_regs_user_thread and fetch_regs_kernel_thread.
7424 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
7425 Add REGCACHE parameter, use it instead of current_regcache.
7426 Call regcache_valid_p instead of register_cached.
7427 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
7428 Also, pass REGCACHE to fill_ routines.
7429 (aix_thread_store_registers): Pass current_regcache to
7430 store_regs_user_thread and store_regs_kernel_thread.
7432 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7434 * m32r-linux-nat.c (supply_gregset): Do not modify contents
7435 pointed to by GREGSETP.
7437 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7439 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
7440 of regcache_raw_read_signed.
7441 (fill_fpregset): Use regcache_raw_collect instead of
7444 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7446 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
7447 point arguments, test explicitly for use of the EABI32 ABI
7448 instead of inferring this condition from tests on register
7451 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7453 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
7454 prior to allocating its location.
7456 2007-05-02 Maciej W. Rozycki <macro@mips.com>
7458 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
7459 based on mips_abi_regsize() whose result is known in advance.
7460 (mips_o64_push_dummy_call): Likewise.
7462 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
7464 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
7465 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
7467 * mips-linux-nat.c: Include "gregset.h".
7468 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
7469 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
7470 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
7471 fill_fpregset): Move to mips-linux-nat.c.
7473 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
7475 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7477 * regcache.c (deprecated_read_register_gen): Remove, inline ...
7478 (read_register): ... here.
7479 (deprecated_write_register_gen): Remove, inline ...
7480 (write_register): ... here.
7481 * regcache.h (deprecated_read_register_gen): Remove prototype.
7482 (deprecated_write_register_gen): Likewise.
7484 * remote-sim.c (gdbsim_store_register): Replace call to
7485 deprecated_read_register_gen with regcache_cooked_read.
7486 * target.c (debug_print_register): Replace calls to
7487 deprecated_read_register_gen and read_register with
7488 regcache_cooked_read.
7490 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7492 * hpux-thread.c (hpux_thread_store_registers): Use
7493 regcache_raw_collect, not regcache_raw_read.
7494 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
7495 not regcache_raw_write.
7497 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7499 * gdbarch.sh: Remove deprecated_register_byte.
7500 * gdbarch.c, gdbarch.h: Regenerate.
7501 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
7502 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
7504 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
7505 * regcache.c (regcache_valid_p): Allow to query cooked registers in
7506 read-only register caches. Make REGCACHE parameter const.
7507 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
7509 * mi/mi-main.c (old_regs): Remove.
7510 (mi_setup_architecture_data, _initialize_mi_main): Remove.
7511 (register_changed_p): Reimplement to compare two register caches.
7512 (mi_cmd_data_list_changed_registers): Update caller.
7513 * mi/mi-main.h (mi_setup_architecture_data): Remove.
7514 * mi/mi-interp.c (mi_interpreter_init): Do not call
7515 mi_setup_architecture_data.
7517 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7519 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
7520 inline definition at the places the macros are used.
7521 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
7523 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7525 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
7527 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
7528 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
7529 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
7530 (rs6000_aix_regset_from_core_section): New function.
7531 (rs6000_aix_init_osabi): Register it.
7532 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
7533 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
7534 * rs6000-nat.c (CoreRegs): Do not define type.
7535 (fetch_core_registers, rs6000_core_fns): Remove.
7536 (_initialize_core_rs6000): Do not register it. Rename to ...
7537 (_initialize_rs6000_nat): ... this.
7538 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
7540 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7542 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
7543 (dwarf2_read_address): Sign extend return address as required by
7544 target architecture.
7546 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7548 * solib-frv.c (lm_base): Bail out if the main executable has
7551 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7553 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
7554 of FPCR register in fpregset.
7556 2007-04-27 Maciej W. Rozycki <macro@mips.com>
7558 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
7559 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
7561 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7563 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
7564 * rs6000-nat.c (rs6000_wait): New function.
7565 (_initialize_core_rs6000): Install it as to_wait target method.
7566 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
7568 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7570 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
7571 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
7572 * rs6000-nat.c (super_create_inferior): New variable.
7573 (rs6000_create_inferior): Make static. Adapt argument list. Call
7574 original version of create_inferior via super_create_inferior.
7575 (_initialize_core_rs6000): Install to_create_inferior target method.
7577 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7579 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
7580 (aix_thread_xfer_partial): ... this.
7581 (init_aix_thread_ops): Install to_xfer_partial instead
7582 of deprecated_xfer_memory target method.
7584 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
7585 and inftarg.o, add inf-ptrace.o.
7586 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
7587 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
7588 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
7589 (fetch_inferior_registers): Rename to ...
7590 (rs6000_fetch_inferior_registers): ... this. Make static.
7591 (store_inferior_registers): Rename to ...
7592 (rs6000_store_inferior_registers): ... this. Make static.
7593 (read_word, child_xfer_memory): Remove.
7594 (rs6000_xfer_partial): New function.
7595 (kernel_u_size): Remove.
7596 (_initialize_core_rs6000): Add inf_ptrace-based target.
7597 * Makefile.in (rs6000-nat.o): Update dependencies.
7599 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7601 * inf-ptrace.c: Include "gdb_stdint.h".
7602 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
7603 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
7604 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
7605 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
7606 (inf_ptrace_store_register): Likewise.
7607 * Makefile.in (inf-ptrace.o): Update dependencies.
7609 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7611 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
7612 * configure.tgt (rs6000-*-*): Likewise.
7613 * config/rs6000/aix4.mh: Delete file.
7614 * config/rs6000/aix4.mt: Delete file.
7615 * config/rs6000/rs6000.mh: Delete file.
7616 * config/rs6000/rs6000.mt: Delete file.
7618 * config/powerpc/nm-aix.h: Delete file.
7619 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
7621 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7623 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
7624 Remove obsolete part of comment.
7625 (store_regs_user_thread): Use uint32_t temporaries when calling
7627 (store_regs_kernel_thread): Likewise. Add assertion to verify
7628 correct size of struct ptsprs members.
7629 (aix_thread_xfer_memory): Fix type of myaddr.
7630 (aix_thread_extra_thread_info): Fix compiler warning.
7631 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
7632 (fetch_register, store_register): Adapt callers.
7634 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7636 * vec.h (vec_free): Rename to vec_free_. Adapt users.
7638 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7640 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
7642 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
7643 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
7644 (alpha_linux_regset_from_core_section): New function.
7645 (alpha_linux_init_abi): Install it.
7646 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
7647 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
7648 <sys/procfs.h>, and "gregset.h".
7649 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
7650 Move from config/alpha/nm-linux.h.
7651 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
7653 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
7654 * alpha-nat.c: Remove #ifdef __linux__ section.
7655 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
7656 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
7657 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
7658 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
7659 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
7660 (NATDEPFILES): Remove alpha-nat.o.
7661 * config/alpha/nm-linux.h: Delete file.
7662 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
7663 * Makefile.in (alpha-linux-nat.o): Update dependencies.
7664 (alpha-linux-tdep.o): Likewise.
7666 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7668 * mips-linux-nat.c: No longer include "gdbcore.h".
7669 (mips_linux_register_addr): Move from mips-linux-tdep.c.
7670 (mips64_linux_register_addr): Likewise.
7671 (mips_linux_register_u_offset): Call mips_linux_register_addr or
7672 mips64_linux_register_addr instead of register_addr.
7673 * mips-linux-tdep.c (mips_linux_register_addr,
7674 mips64_linux_register_addr): Move to mips-linux-nat.c.
7675 (register_addr): Remove.
7676 (register_addr_data, init_register_addr_data): Remove.
7677 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
7678 (set_mips_linux_register_addr): Remove.
7679 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
7680 * Makefile.in (mips-linux-nat.o): Update dependencies.
7682 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7684 * linux-nat.c (linux_register_u_offset): Remove.
7685 (linux_target_install_ops): New function.
7686 (linux_target): Use it.
7687 (linux_trad_target): New function.
7688 * linux-nat.h (linux_trad_target): Declare.
7690 * alpha-linux-nat.c: Include "gdbcore.h".
7691 (alpha_linux_register_u_offset): New function.
7692 (_initialize_alpha_linux_nat): Use linux_trad_target.
7694 * mips-linux-nat.c: Include "gdbcore.h".
7695 (mips_linux_register_u_offset): New function.
7696 (_initialize_mips_linux_nat): Use linux_trad_target.
7698 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7699 * config/arm/nm-linux.h: Delete file.
7701 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
7702 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
7704 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7705 * config/ia64/nm-linux.h: Delete file.
7707 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7708 * config/m32r/nm-linux.h: Delete file.
7710 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7711 * config/m68k/nm-linux.h: Delete file.
7713 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7714 * config/pa/nm-linux.h: Delete file.
7716 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7717 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
7718 * config/powerpc/nm-linux.h: Delete file.
7720 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
7721 * config/s390/nm-linux.h: Delete file.
7723 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7724 * config/sparc/linux64.mh (NAT_FILE): Likewise.
7725 * config/sparc/nm-linux.h: Delete file.
7727 * Makefile.in (alpha-linux-nat.o): Update dependencies.
7728 (mips-linux-nat.o): Likewise.
7730 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7732 * core-aout.c: Delete file.
7733 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
7734 (core-aout.o): Delete rule.
7735 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
7737 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
7739 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
7740 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
7741 KERNEL_U_ADDR): Remove.
7743 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
7744 (cannot_fetch_register, cannot_store_register): Remove.
7745 (fetch_register): Inline cannot_fetch_register and register_addr.
7746 (store_register): Inline cannot_store_register and register_addr.
7747 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
7748 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
7749 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
7752 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
7753 (fetch_register): Inline register_addr.
7754 (store_register): Inline register_addr.
7755 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
7756 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
7757 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
7759 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
7760 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
7761 REGISTER_U_ADDR): Remove.
7763 * hppa-linux-nat.c (register_addr): Rename to ...
7764 (hppa_linux_register_addr): ... this. Make static.
7765 (fetch_register, store_register): Adapt callers.
7766 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
7768 * ppc-linux-nat.c (kernel_u_size): Remove.
7769 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
7771 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
7772 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
7774 * config/vax/nm-vax.h: Delete file.
7776 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
7778 * MAINTAINERS (Write After Approval): Add myself.
7780 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
7782 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
7783 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
7784 (m68k_linux_sigcontext_reg_offset): Fix typo.
7785 (target_is_uclinux): New.
7786 (m68k_linux_inferior_created): New.
7787 (m68k_linux_get_sigtramp_info): Check for uClinux or
7788 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
7790 (_initialize_m68k_linux_tdep): Register
7791 m68k_linux_inferior_created.
7793 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
7795 * win32-nat.c (win32_detach): Remove delete_command call.
7796 Resume inferior with win32_resume instead of win32_continue.
7798 2007-04-19 Jerome Guitton <guitton@adacore.com>
7800 * ser-mingw.c (fd_is_file): New function.
7801 (file_select_thread): New function.
7802 (ser_console_wait_handle): Add special handling for files.
7804 2007-04-18 Denis Pilat <denis.pilat@st.com>
7806 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
7807 when missing from DW_TAG_subrange_type. Remove the handling of null
7808 return from die_type.
7810 2007-04-18 Maciej W. Rozycki <macro@mips.com>
7812 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
7813 change to rearrange some brackets.
7814 (mips_n32n64_push_dummy_call): Likewise.
7815 (mips_o32_push_dummy_call): Likewise.
7816 (mips_o64_push_dummy_call): Likewise.
7818 2007-04-18 Denis Pilat <denis.pilat@st.com>
7820 * infcmd.c (post_create_inferior): Start with a call to
7821 target_terminal_ours.
7823 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7825 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
7827 (mips_n32n64_push_dummy_call): Likewise. Reformat some
7829 (mips_o32_push_dummy_call): Likewise.
7830 (mips_o64_push_dummy_call): Likewise.
7832 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7834 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
7837 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7839 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
7841 (mips_o32_push_dummy_call): Likewise.
7843 2007-04-17 Andreas Schwab <schwab@suse.de>
7845 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
7846 sal to be bigger than the end of the function.
7848 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7849 Nigel Stephens <nigel@mips.com>
7851 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
7852 argument alignment requirements when calculating stack space
7853 required. When aligning an arg register to eight bytes
7854 boundary, align stack_offset too. Write floating-point
7855 arguments to the appropriate integer register if need go there.
7856 (mips_o64_push_dummy_call): Likewise.
7858 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
7860 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
7861 "sig" arguments, add "regcache" argument.
7862 * gdbarch.c, gdbarch.h: Regenerate.
7864 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
7865 (handle_inferior_event): Call remove_single_step_breakpoints directly
7866 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
7868 * alpha-tdep.c (alpha_software_single_step): Update argument list.
7869 Remove handling of !insert_breakpoints_p case.
7870 * arm-tdep.c (arm_software_single_step): Likewise.
7871 * cris-tdep.c (cris_software_single_step): Likewise.
7872 * mips-tdep.c (mips_software_single_step): Likewise.
7873 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
7874 * sparc-tdep.c (sparc_software_single_step): Likewise.
7875 * spu-tdep.c (spu_software_single_step): Likewise.
7877 * alpha-tdep.h (alpha_software_single_step): Update prototype.
7878 * mips-tdep.h (mips_software_single_step): Likewise.
7879 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
7880 * sparc-tdep.h (sparc_software_single_step): Likewise.
7882 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
7884 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
7885 when removing single-step breakpoints.
7887 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
7889 * varobj.h (varobj_set_frozen): New
7890 (varobj_get_frozen): New.
7891 (varobj_update): New parameter explicit.
7892 * varobj.c (struct varobj): New fields frozen
7894 (varobj_set_frozen, varobj_get_frozen): New.
7895 (install_new_value): Don't fetch values for
7896 frozen variable object, or children thereof. Allow
7897 a frozen variable object to have non-fetched value.
7898 (varobj_update): Allow updating child variables.
7899 Don't traverse frozen children.
7900 (new_variable): Initialize the frozen field.
7901 (c_value_of_variable): Return NULL for frozen
7902 variable without any value yet.
7903 * mi/mi-cmd-var.c (varobj_update_one): New parameter
7905 (mi_cmd_var_create): Output the 'frozen' field,
7906 as soon as testsuite is adjusted to expect that field.
7907 (mi_cmd_var_set_frozen): New.
7908 (mi_cmd_var_update): Pass the 'explicit' parameter to
7910 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
7911 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
7913 2007-04-13 Paul Brook <paul@codesourcery.com>
7915 * target-descriptions.c (tdesc_named_type): Add ieee_single and
7917 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
7919 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7921 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
7922 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
7923 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
7924 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
7925 * Makefile.in: Remove references to deleted files.
7926 * README: Do not mention deleted ROM monitor interfaces.
7927 * defs.h (enum language): Delete language_scm.
7928 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
7929 (dump_subexp_body_standard): Likewise.
7930 * parse.c (operator_length_standard): Likewise.
7931 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
7932 * remote-mips.c: Do not include remote-utils.h.
7933 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
7935 * value.c: Do not include scm-lang.h.
7936 (unpack_long): Delete scm_unpack call.
7937 * config/h8300/h8300.mt, config/mips/embed.mt,
7938 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
7939 config/sh/embed.mt, config/sh/linux.mt: Remove references to
7941 * NEWS: Mention removed files.
7943 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7945 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
7946 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
7948 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7950 * NEWS: Mention removal of HP aCC support.
7952 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7954 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
7955 first entry for static executables.
7956 (breakpoint_addr): Delete unused variable.
7957 (elf_locate_base): Search for _r_debug in static executables.
7958 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
7961 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7963 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
7964 (bpstat_what, print_one_breakpoint, allocate_bp_location)
7965 (mention): Remove bp_through_sigtramp support.
7966 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
7968 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7970 * breakpoint.c (bpstat_what): Give step-resume higher priority than
7973 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7975 * infrun.c: Doc fixes.
7976 (handle_inferior_event): Clarify debug message.
7977 (insert_step_resume_breakpoint_at_sal): Print a debug message.
7979 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
7981 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
7983 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
7985 * config/m68k/tm-monitor.h: Delete file.
7986 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
7987 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
7989 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
7990 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
7992 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
7994 * gdbarch.sh (software_single_step): Change the return type
7995 from void to int and reformatted some comments to <= 80
7997 * gdbarch.c, gdbarch.h: Regenerated.
7998 * alpha-tdep.c (alpha_software_single_step): Likewise.
7999 * alpha-tdep.h (alpha_software_single_step): Likewise.
8000 * arm-tdep.c (arm_software_single_step): Likewise.
8001 * cris-tdep.c (cris_software_single_step): Likewise.
8002 * mips-tdep.c (mips_software_single_step): Likewise.
8003 * mips-tdep.h (mips_software_single_step): Likewise.
8004 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8005 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8006 * sparc-tdep.c (sparc_software_single_step): Likewise.
8007 * sparc-tdep.h (sparc_software_single_step): Likewise.
8008 * spu-tdep.c (spu_software_single_step): Likewise.
8009 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
8010 and act accordingly.
8012 2007-04-11 Steve Ellcey <sje@cup.hp.com>
8014 * configure.ac (build_warnings): Add -Wno-char-subscripts.
8015 * configure: Regenerate.
8016 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
8018 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8020 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
8022 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8024 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
8026 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
8027 distinct on the TYPE_STUB_SUPPORTED debug targets.
8028 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
8030 2007-04-11 Joel Brobecker <brobecker@adacore.com>
8032 * sparc-tdep.c (X_RS2): New macro.
8033 (sparc_skip_stack_check): New function.
8034 (sparc_analyze_prologue): Adjust PC past stack probing
8035 sequence if necessary.
8037 2007-04-10 Andreas Schwab <schwab@suse.de>
8039 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
8042 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8044 * breakpoint.c (gdb_breakpoint_query): Really return an
8046 (gdb_breakpoint): Likewise.
8047 * thread.c (gdb_list_thread_ids): Likewise.
8048 (gdb_thread_select): Likewise.
8049 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
8050 (mi_cmd_thread_list_ids): Remove bogus initialization.
8052 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8054 * Makefile.in (SFILES): Remove hpacc-abi.c.
8055 (COMMON_OBS): Remove hpacc-abi.o.
8056 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
8057 (hpacc-abi.o, hpread.o): Delete rules.
8058 * somread.c: Delete extern declarations from hpread.c.
8059 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
8060 (som_symfile_finish): Do not call hpread_symfile_finish.
8061 (som_symfile_init): Do not call hpread_symfile_init.
8062 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
8063 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
8064 * hpacc-abi.c, hpread.c: Deleted.
8066 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8068 * solib-svr4.c (enable_break): Simplify return value.
8069 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
8071 2007-04-10 Andreas Schwab <schwab@suse.de>
8073 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
8074 l_ld_size, l_next_size, l_prev_size, l_name_size.
8076 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
8077 to extract addresses from link map.
8078 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
8079 (LM_NEXT): Likewise.
8080 (LM_NAME): Likewise.
8081 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
8082 (elf_locate_base): Likewise.
8083 (open_symbol_file_object): Likewise.
8084 (svr4_fetch_objfile_link_map): Likewise.
8085 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
8086 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
8088 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
8089 (svr4_lp64_fetch_link_map_offsets): Likewise.
8091 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
8092 removed members. Set l_ld_offset to -1 if not present.
8094 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
8096 Pass stderr of program run with "target remote |"
8098 * serial.c (serial_open): Set error_fd to -1.
8099 * serial.h (struct serial): New field error_fd.
8100 (struct serial_opts): New field avail.
8101 * ser-pipe.c (pipe_open): Create another pair
8102 of sockets. Pass stderr to gdb.
8103 * ser-mingw.c (pipe_windows_open): Pass
8104 PEX_STDERR_TO_PIPE to pex_run. Initialize
8107 (_initialize_ser_windows): Hook pipe_avail.
8108 * ser-base.c (generic_readchar): Check if there's
8109 anything in stderr channel and route that to gdb_stderr.
8111 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
8113 * dbxread.c (read_ofile_symtab): Move current_objfile
8114 clearing to after end_stabs.
8116 2007-04-01 Andreas Schwab <schwab@suse.de>
8118 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
8119 gdbarch instead of current_gdbarch.
8121 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
8123 * varobj.c (varobj_create): Keep varobj value
8124 NULL when evaluating the type.
8126 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
8128 * NEWS: Mention new Windows CE support.
8130 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
8132 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
8133 the obsoletion stanza.
8134 * NEWS: Mention deleted targets.
8136 * config/sh/tm-wince.h: Remove.
8137 * config/sh/wince.mt: Remove.
8138 * config/mips/tm-wince.h: Remove.
8139 * config/mips/wince.mt: Remove.
8142 * wince-stub.c: Remove.
8143 * wince-stub.h: Remove.
8144 * Makefile.in (wince.o): Remove rule.
8145 (wince-stub.o): Likewise.
8147 * mips-tdep.c (mips_next_pc): Make static.
8148 * mips-tdep.h (mips_next_pc): Remove declaration.
8149 * arm-tdep.c (arm_pc_is_thumb): Make static.
8150 (thumb_get_next_pc): Likewise.
8151 (arm_get_next_pc): Likewise.
8152 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
8153 (arm_pc_is_thumb): Likewise.
8154 (thumb_get_next_pc): Likewise.
8155 (arm_get_next_pc): Likewise.
8157 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8159 * MAINTAINERS: Remove d10v entry.
8160 * Makefile.in (SFILES): Remove dwarfread.c.
8161 (COMMON_OBS): Remove dwarfread.o.
8162 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
8163 (remote-est.o, rom68k-rom.o): Delete.
8164 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
8165 target est, target rom68k, and DWARF 1.
8166 * configure.tgt: Mark d10v as removed.
8167 * dwarf2read.c: Doc update.
8168 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
8170 (elf_locate_sections): Do not set them.
8171 (elf_symfile_read): Do not call dwarf_build_psymtabs.
8172 * symfile.h (dwarf_build_psymtabs): Delete prototype.
8173 * config/m68k/monitor.mt (TDEPFILES): Prune.
8174 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
8175 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
8177 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8179 * doublest.c (convert_floatformat_to_doublest): Use
8180 floatformat_classify.
8181 (floatformat_is_nan): Rename to...
8182 (floatformat_classify): ...this. Return more information.
8183 * doublest.h (enum float_kind): New.
8184 (floatformat_is_nan): Replace prototype...
8185 (floatformat_classify): ...with this one.
8186 * valprint.c (print_floating): Use floatformat_classify. Handle
8189 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8191 * README: Mention ISO C library requirement.
8193 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8195 * Makefile.in (SFILES): Remove nlmread.c.
8196 (COMMON_OBS): Remove nlmread.o.
8197 (nlmread.o): Delete rule.
8198 * README: Delete reference to remote-st.c.
8199 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
8200 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
8202 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
8203 (_initialize_i386_tdep): Do not reference them.
8204 * nlmread.c: Delete file.
8205 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
8206 * target.c: Doc update.
8207 * thread.c: Delete commented include.
8208 * config/alpha/tm-alpha.h: Doc update.
8210 2007-03-30 Chris Dearman <chris@mips.com>
8212 * utils.c (string_to_core_addr): Comment typo.
8214 2007-03-30 Chris Dearman <chris@mips.com>
8216 * mips-tdep.c: Comment typo.
8218 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
8220 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
8221 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8222 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8223 * config/powerpc/nm-ppc64-linux.h: Remove file.
8224 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
8225 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
8226 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
8227 * infptrace.c (call_ptrace): Likewise.
8228 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
8229 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
8230 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
8231 (store_register): Likewise.
8233 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8235 * Makefile.in (varobj.o): Add missing dependency.
8237 2007-03-29 Michael Snyder <msnyder@access-company.com>
8239 * MAINTAINERS: Update my email address.
8241 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8243 Add support for exception handling with multiple versions of
8245 * ada-lang.c: Update general comments on how Ada exception catchpoints
8247 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
8248 (__gnat_raise_nodefer_with_msg): Delete.
8249 (ada_unhandled_exception_name_addr_ftype): New type.
8250 (exception_support_info): New type.
8251 (ada_unhandled_exception_name_addr): Add forward declaration.
8252 (ada_unhandled_exception_name_addr_from_raise): Likewise.
8253 (default_exception_support_info): New constant.
8254 (exception_support_info_fallback): Likewise.
8255 (exception_info): New global variable.
8256 (ada_exception_support_info_sniffer): New function.
8257 (ada_executable_changed_observer): Likewise.
8258 (ada_unhandled_exception_name_addr_from_raise): Renamed from
8259 ada_unhandled_exception_name_addr.
8260 (ada_unhandled_exception_name_addr): Reimplement to match the
8261 latest Ada runtime implementation.
8262 (error_breakpoint_runtime_sym_not_found): Delete.
8263 (ada_exception_sym_name): Get the exception sym name from
8264 exception_info rather than hardcoding it.
8265 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
8266 Update error handling.
8267 * Makefile.in (ada-lang.o): Add dependency on observer.h.
8269 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8271 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
8272 (remote-st.o, uw-thread.o): Delete.
8273 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
8274 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8275 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
8276 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
8277 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
8278 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
8279 rs6000-*-lynxos* to an obsoletion stanza.
8280 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8281 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
8282 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
8283 i[34567]86-*-netware*.
8284 * NEWS: Mention deleted targets.
8286 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
8287 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
8288 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
8289 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
8290 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
8291 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
8292 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
8293 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
8294 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
8295 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
8296 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
8297 config/rs6000/tm-rs6000ly.h: Delete files.
8299 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8301 * defs.h (deprecated_registers_changed_hook): Delete declaration.
8302 * interps.c (clear_interpreter_hooks): Do not clear
8303 deprecated_registers_changed_hook.
8304 * regcache.c (registers_changed): Do not call it.
8305 * top.c (deprecated_registers_changed_hook): Do not define it.
8306 * mi/mi-interp.c (mi_command_loop): Do not clear it.
8307 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
8308 (tui_remove_hooks): Do not remove it.
8309 (tui_selected_frame_level_changed_hook): Check for negative level.
8310 Use get_selected_frame.
8311 (tui_registers_changed_hook): Deleted.
8313 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8315 * stabsread.c (add_undefined_type): Add extra parameter.
8316 Now handles nameless types separately.
8317 (struct nat): New type.
8318 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
8319 New static variables.
8320 (read_type): Update calls to add_undefined_type.
8321 (add_undefined_type_noname): New function.
8322 (add_undefined_type_1): Renames from add_undefined_type.
8323 (cleanup_undefined_types_noname): New function.
8324 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
8325 (cleanup_undefined_types): New handles nameless types separately.
8326 (_initialize_stabsread): Initialize our new static constants.
8328 2007-03-29 Denis Pilat <denis.pilat@st.com>
8330 * configure.ac: Test for signal.h.
8331 * configure, config.in: Regenerate.
8333 2007-03-29 Denis Pilat <denis.pilat@st.com>
8335 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
8336 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
8338 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
8340 * arm-wince-tdep.c: New.
8341 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
8342 (MT_CFLAGS): Delete.
8344 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
8345 solib-legacy.o, solib-svr4.o, and remove wince.o.
8346 * configure.tgt (arm*-*-mingw32ce*): Add.
8347 * signals/signals.c [HAVE_SIGNAL_H]: Check.
8348 (do_target_signal_to_host): Silence 'not used' warning.
8349 * config/arm/tm-wince.h: Remove.
8351 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
8353 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
8354 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
8356 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
8357 * config/ia64/tm-linux.h: Remove file.
8358 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
8359 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
8360 legacy_pc_in_sigtramp.
8361 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
8362 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
8363 Remove func_name argument.
8364 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
8366 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
8367 * target.c (update_current_target): Add to_have_steppable_watchpoint.
8368 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
8369 (HAVE_STEPPABLE_WATCHPOINT): Define.
8371 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
8372 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
8373 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
8374 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
8375 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
8376 target_insert_watchpoint, target_remove_watchpoint): Remove.
8377 (FETCH_INFERIOR_REGISTERS): Define.
8378 * ia64-linux-nat.c (ia64_register_addr): Make static.
8379 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
8380 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
8381 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
8382 (ia64_linux_stopped_data_address): Make static. Add target_ops.
8383 (ia64_linux_stopped_by_watchpoint): Make static.
8384 (ia64_linux_can_use_hw_breakpoint): New function.
8385 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
8386 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
8387 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
8389 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
8391 * linespec.c: Include language.h.
8392 (find_methods): Add language parameter. Call
8393 lookup_symbol_in_language. Pass language down.
8394 (add_matching_methods): Likewise. Call
8395 lookup_symbol_in_language.
8396 (add_constructors): Likewise.
8397 (find_method): Pass sym_class to collect_methods.
8398 (collect_methods): Add sym_class parameter. Pass language
8400 * symtab.c (lookup_symbol): Rename to ...
8401 (lookup_symbol_in_language): ... this. Add language
8402 parameter. Use passed language instead of current_language.
8403 (lookup_symbol): New as wrapper around
8404 lookup_symbol_in_language.
8405 (lookup_symbol_aux): Add language parameter. Use passed
8406 language instead of current_language.
8407 (search_symbols): Indent.
8408 * symtab.h (enum language): Forward declare.
8409 (lookup_symbol_in_language): Declare.
8410 (lookup_symbol): Update description.
8411 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
8412 * ada-lang.c (restore_language): Remove.
8413 (lookup_symbol_in_language): Remove.
8415 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
8417 * breakpoint.c (bpstat_num): Add int *num parameter.
8418 * breakpoint.h (bpstat_num): Likewise.
8419 * infcmd.c (continue_command): Adjust to new bpstat_num
8421 (program_info): Likewise.
8423 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8425 * config/sh/tm-sh.h: Remove file.
8426 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
8427 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
8428 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8429 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
8431 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8433 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
8434 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
8435 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
8436 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
8437 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
8438 sequence if target_shortname is "remote".
8440 2007-03-27 Anton Blanchard <anton@samba.org>
8442 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
8443 instead of wordsize when looking for the LR in a stack frame.
8445 2007-03-27 Andreas Schwab <schwab@suse.de>
8446 Daniel Jacobowitz <dan@codesourcery.com>
8448 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
8449 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
8450 argument. Update all callers.
8451 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
8452 (dwarf2_frame_set_eh_frame_regnum): Rename to...
8453 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
8454 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
8455 (dwarf2_frame_set_adjust_regnum): ...this.
8456 (dwarf2_frame_eh_frame_regnum): Delete prototype.
8457 * rs6000-tdep.c: Include "dwarf2-frame.h".
8458 (rs6000_adjust_frame_regnum): Define.
8459 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
8460 Register rs6000_adjust_frame_regnum.
8462 * Makefile.in (rs6000-tdep.o): Update dependencies.
8464 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
8466 * Makefile.in: Add support for a "pdf" target.
8468 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
8470 * amd64-tdep.c (amd64_init_frame_cache): New function.
8471 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
8473 2007-03-26 Nigel Stephens <nigel@mips.com>
8474 Maciej W. Rozycki <macro@mips.com>
8476 * ui-out.c (ui_out_field_core_addr): Truncate address to
8477 TARGET_ADDR_BIT size before printing.
8479 2007-03-22 Nigel Stephens <nigel@mips.com>
8480 Maciej W. Rozycki <macro@mips.com>
8482 * remote-mips.c (mips_xfer_memory): Update prototype.
8484 2007-03-22 Joel Brobecker <brobecker@adacore.com>
8486 * symfile.h: #include "symtab.h"
8488 2007-03-22 Denis Pilat <denis.pilat@st.com>
8490 * utils.c (pagination_on_command, pagination_off_command):
8491 Remove useless prototypes.
8493 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
8496 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
8497 instead of TYPE_NAME for object base class name.
8500 2007-03-19 Kevin Buettner <kevinb@redhat.com>
8502 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
8503 Specify frame type in calls to frame_func_unwind().
8505 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
8507 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
8508 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
8509 (refine_prologue_limit): Delete.
8510 (skip_prologue): Don't call it. Use extract_unsigned_integer.
8511 Assume lim_pc is set. Correct check for incomplete prologues.
8512 Do not skip clobbers of the frame pointer.
8513 * symtab.c (skip_prologue_using_sal): Fail if there is only one
8516 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8518 * frame.c (frame_pop): Check to see whether there's a frame to
8519 which we can pop first.
8521 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8523 * MAINTAINERS (Write After Approval): Add myself.
8525 2007-03-09 Markus Deuling <deuling@de.ibm.com>
8527 * infrun.c (breakpoints_failed): Remove unnecessary variable.
8528 (handle_inferior_event): Remove unnecessary braces.
8529 * breakpoint.c (bpstat_what): Remove wrong comment.
8531 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
8533 * spu-tdep.c (spu_in_function_epilogue_p): New function.
8534 (spu_gdbarch_init): Install it.
8536 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8538 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
8539 object types, not 0.
8541 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8543 * spu-tdep.c (spu_frame_align): New function.
8544 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
8546 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8548 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
8549 (spu_software_single_step): Likewise.
8550 (spu_read_pc, spu_write_pc): New functions.
8551 (spu_gdbarch_init): Install them.
8553 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8555 * cli/cli-dump.c (struct callback_data): load_offset needs to
8556 have signed long type.
8558 2007-03-07 Joel Brobecker <brobecker@adacore.com>
8560 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
8561 Revert the previous change that had some unexpected side-effects
8563 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
8564 function to get the address of the calling instruction.
8566 2007-03-07 Denis Pilat <denis.pilat@st.com>
8568 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
8569 get_selected_frame by deprecated_safe_get_selected_frame.
8571 2007-03-02 Mark Kettenis <kettenis@gnu.org>
8573 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
8574 "gdb_string.h". Don't include "nbsd-tdep.h".
8575 (SIZEOF_STRUCT_REG): Remove.
8576 (SHNBSD_SIZEOF_GREGS): New.
8577 (shnbsd_supply_gregset, shnbsd_collect_gregset)
8578 (shnbsd_regset_from_core_section): New functions.
8579 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
8580 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
8581 shnbsd_supply_gregset, shnbsd_collect_gregset.
8582 (shnbsd_gregset): New variable.
8583 (shnbsd_init_abi): Set regset_from_core_section.
8584 (GDB_OSABI_NETBSD_CORE): New define.
8585 (shnbsd_core_osabi_sniffer): New function.
8586 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
8587 * Makefile.in (shnbsd-tdep.o): Update dependencies.
8588 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
8590 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
8592 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8594 * gdbtypes.c (replace_type): Fix typo that caused us to not update
8595 length of the types referenced by the new type CV ring.
8597 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8599 * frame.c (frame_pop, frame_observer_target_changed): Call
8601 (flush_cached_frames): Rename to reinit_frame_cache and delete
8603 * frame.h (flush_cached_frames): Delete prototype and update comment.
8605 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
8606 reinit_frame_cache instead of flush_cached_frames. Do not call
8607 select_frame after reinit_frame_cache.
8608 * corelow.c (core_open): Likewise.
8609 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
8610 * infrun.c (prepare_to_proceed, context_switch)
8611 (handle_inferior_event): Likewise.
8612 * linux-fork.c (fork_load_infrun_state): Likewise.
8613 * ocd.c (ocd_start_remote): Likewise.
8614 * remote-e7000.c (e7000_start_remote): Likewise.
8615 * remote-mips.c (device): Likewise.
8616 * thread.c (switch_to_thread): Likewise.
8617 * tracepoint.c (finish_tfind_command): Likewise.
8618 * gdbarch.c: Regenerated.
8620 2007-02-28 Jerome Guitton <guitton@adacore.com>
8621 Joel Brobecker <brobecker@adacore.com>
8623 * gdbtypes.c (check_typedef): Do not replace stub type if
8624 the resolved type is not defined in the same objfile.
8626 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8628 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
8630 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8632 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
8633 symbol for Ada units when the symbol is defined using 't' rather
8634 than 'Tt' as symbol descriptor.
8636 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8638 * config/mips/tm-nbsd.h: Delete file.
8639 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8640 * config/sh/tm-nbsd.h: Delete file.
8641 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
8643 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8645 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
8646 unused WRONG_PARAM value since it was recently deleted.
8648 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
8650 * varobj.c (varobj_update): Free temporary vectors.
8652 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8654 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
8655 * config/powerpc/tm-linux.h: Delete file.
8656 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
8657 (PROCESS_LINENUMBER_HOOK): Do not undefine.
8658 (TEXT_SEGMENT_BASE): Do not redefine.
8659 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
8660 from config/rs6000/tm-rs6000.h.
8661 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8662 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
8663 (TEXT_SEGMENT_BASE): Remove.
8664 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
8665 (rs6000_in_solib_return_trampoline): Remove.
8666 (SKIP_TRAMPOLINE_CODE): Remove.
8667 (rs6000_skip_trampoline_code): Remove.
8668 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
8669 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8670 (FP0_REGNUM): Remove.
8671 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
8672 (rs6000_set_host_arch_hook): Remove.
8673 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
8674 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
8675 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
8676 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
8677 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
8678 * rs6000-nat.c: Include "rs6000-tdep.h".
8679 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
8680 (set_host_arch): Rename to ...
8681 (rs6000_create_inferior): ... this. Make public.
8682 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
8683 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
8684 (rs6000_create_inferior): Remove.
8685 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
8686 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
8687 set_gdbarch_in_solib_return_trampoline, and
8688 set_gdbarch_skip_trampoline_code.
8689 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
8690 from config/rs6000/tm-rs6000.h.
8692 2007-02-27 Joel Brobecker <brobecker@adacore.com>
8694 * buildsym.c (record_producer): Do nothing if no producer is provided.
8696 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
8698 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
8699 to check changelist is non-NULL. Call error if the frontend tries
8700 to update a non-root variable.
8702 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
8704 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8706 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
8707 (dwarf2_frame_sniffer): Update.
8708 (dwarf2_signal_frame_this_id): New function.
8709 (dwarf2_signal_frame_unwind): Use it.
8710 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
8711 * frame.c (frame_func_unwind): Add this_type argument.
8712 (get_frame_func): Update.
8713 (frame_unwind_address_in_block): Add this_type argument and check it.
8715 (get_frame_address_in_block): Update.
8716 * frame.h (enum frame_type): Move higher in the file.
8717 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
8720 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
8721 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
8722 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
8723 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
8724 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
8725 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
8726 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
8727 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
8728 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
8729 frame_func_unwind and frame_unwind_address_in_block to specify
8730 the frame type. Use frame_unwind_address_in_block instead of
8731 frame_pc_unwind in sniffers.
8733 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8735 * frame.c (deprecated_selected_frame): Rename to...
8736 (selected_frame): ...this. Make static.
8737 (get_selected_frame, select_frame): Update.
8738 * frame.h (deprected_select_frame): Delete.
8739 (deprecated_safe_get_selected_frame): Update comments.
8741 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
8742 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
8743 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
8744 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
8745 tui/tui.c: Replace references to deprecated_selected_frame.
8747 2007-02-27 Fred Fish <fnf@specifix.com>
8749 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
8750 directly decrement the stack pointer, accumulate their operand into
8751 the stack offset, and mark the function as not being frameless.
8753 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8755 * arch-utils.c (selected_byte_order): New.
8756 * arch-utils.h (selected_byte_order): New prototype.
8757 * remote-sim.c (gdbsim_open): Use selected_byte_order.
8759 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8761 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
8762 (default_symfile_offsets): Check VMA here. Update section VMAs.
8764 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8766 * remote.c (init_remote_state): Add special handling for placeholder
8769 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8771 * Makefile.in (XMLFILES): Include $(TDEP_XML).
8772 (filenames_h): New variable.
8773 (clean): Clean up xml-builtin.c and stamp-xml.
8774 (arm-linux-nat.o): Update.
8775 * config/arm/linux.mh (TDEP_XML): Define.
8776 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
8777 (arm_linux_has_wmmx_registers): New.
8778 (GET_THREAD_ID): Fix typo.
8779 (IWMMXT_REGS_SIZE): Define.
8780 (fetch_wmmx_regs, store_wmmx_regs): New.
8781 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
8782 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
8783 (super_xfer_partial, arm_linux_xfer_partial): New.
8784 (_initialize_arm_linux_nat): Use them.
8785 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
8786 (xml_builtin_xfer_partial): New function.
8787 * xml-support.h (xml_builtin_xfer_partial): New prototype.
8788 * NEWS: Update mention of iWMMXt support.
8790 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8792 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
8793 if there are no FPA registers.
8794 (arm_dwarf_reg_to_regnum): New function.
8795 (arm_register_type, arm_register_name): Return minimal values for
8796 unsupported registers.
8797 (arm_register_sim_regno): Handle iWMMXt registers.
8798 (arm_gdbarch_init): Record missing FPA registers if indicated by
8799 a target description. Recognize iWMMXt registers. Only register
8800 "info float" for FPA. Use ARM_NUM_REGS. Register
8801 arm_dwarf_reg_to_regnum.
8802 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
8804 (struct gdbarch_tdep): Add have_fpa_registers.
8805 * features/xscale-iwmmxt.xml: Update capitalization.
8806 * regformats/arm-with-iwmmxt.dat: Regenerated.
8808 2007-02-24 Kevin Buettner <kevinb@redhat.com>
8810 * NEWS (New targets): Add entry for the Toshiba Media Processor.
8812 2007-02-23 Kevin Buettner <kevinb@redhat.com>
8814 * MAINTAINERS (mep): New target.
8816 2007-02-23 Kevin Buettner <kevinb@redhat.com>
8818 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
8820 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
8821 (mep-tdep.o): New rule.
8822 * configure.tgt (mep-*-*): New target.
8823 * mep-tdep.c: New file.
8824 * config/mep/mep.mt: New file.
8826 2007-02-22 Markus Deuling <deuling@de.ibm.com>
8828 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
8829 BREAKPOINT_HIT and STOP_UNKNOWN.
8831 2007-02-22 Markus Deuling <deuling@de.ibm.com>
8833 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
8835 2007-02-20 Joel Brobecker <brobecker@adacore.com>
8837 * gdb_expat.h (XMLCALL): Define if not already defined.
8839 2007-02-20 Andreas Schwab <schwab@suse.de>
8841 * Makefile.in (symfile.o): Update dependencies.
8843 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
8845 * MAINTAINERS: Disable -Werror for cris simulator. Build
8846 sparc64-solaris2.10 instead of the broken sparc-elf.
8847 * solib-frv.c: Include "solib.h".
8848 * Makefile.in (solib-frv.o): Update.
8849 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
8850 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
8851 (xtensa_frame_this_id, xtensa_frame_prev_register)
8852 (xtensa_push_dummy_call): Use %p.
8854 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8856 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
8857 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
8858 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
8859 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
8860 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
8861 (sparc-linux-tdep.o): Update.
8863 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
8865 * xtensa-tdep.h (xtensa_reg_mask_t): New.
8866 (xtensa_mask_t): Change mask field to be a separate array.
8867 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
8868 (xtensa_pseudo_register_write, xtensa_unwind_pc)
8869 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
8870 (xtensa_breakpoint_from_pc): Remove implicit type casting.
8871 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
8872 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
8873 (mask14, mask15): Rename to
8874 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
8875 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
8876 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
8877 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
8878 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
8879 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
8880 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
8881 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
8882 (xtensa_submask14, xtensa_submask15): New.
8883 (rmap): Follow strict aliasing rules doing static initialization.
8885 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
8887 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
8888 handling from here...
8889 (tdesc_register_type): ...to here.
8890 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
8891 * features/arm-core.xml: Use code_ptr and data_ptr.
8893 2007-02-13 Denis Pilat <denis.pilat@st.com>
8895 * varobj.h (enum varobj_update_error): New enum.
8896 * varobj.c (struct varobj_root): Add is_valid member.
8897 (varobj_get_type): Check for invalid varobj.
8898 (varobj_get_attributes): Likewise.
8899 (variable_editable):Likewise.
8900 (varobj_update): Likewise. Use varobj_update_error.
8901 (new_root_variable): Set root varobj as valid by default.
8902 (varobj_invalidate): New function.
8903 * symfile.c (clear_symtab_users): Use varobj_invalidate.
8904 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
8905 Use varobj_update_error.
8907 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
8910 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
8911 Pascal language marker.
8912 * dwarf2read.c (set_cu_language): Likewise.
8914 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
8916 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
8917 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
8918 instead of target_terminal_init since inferior_ptid isn't set yet.
8920 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
8922 * MAINTAINERS (Write After Approval): Add myself.
8924 2007-02-09 Fred Fish <fnf@specifix.com>
8926 Based on work by Apple Computer, Inc.
8927 * event-top.c (async_request_quit): Call quit() whenever either
8928 quit_flag is set or immediate_quit is set.
8930 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
8932 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
8933 type to a pointer to const struct block.
8934 (ada_lookup_symbol_list): Don't cast away constness when calling
8935 remove_out_of_scope_renamings.
8937 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
8939 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
8940 address of 'filename'; it is always non null.
8942 2007-02-09 Joel Brobecker <brobecker@adacore.com>
8944 * exec.c (add_to_section_table): Do not discard empty sections.
8946 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8948 * features/Makefile, features/arm-with-iwmmxt.xml,
8949 features/gdbserver-regs.xsl, features/number-regs.xsl,
8950 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
8951 * regformats/arm-with-iwmmxt.dat: Generate.
8952 * NEWS: Mention iWMMXt.
8954 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
8956 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
8957 (xml-tdesc.o): Update.
8958 * xml-support.c: Add a comment.
8959 (gdb_xml_enums_boolean): New variable.
8960 (gdb_xml_parse_attr_enum): Use strcasecmp.
8961 * xml-support.h (gdb_xml_enums_boolean): Declare.
8962 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
8963 next_regnum, and current_union.
8964 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
8965 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
8966 (field_attributes, union_children, reg_attributes, union_attributes)
8967 (vector_attributes, feature_attributes, feature_children): New.
8968 (target_children): Make static. Add <feature>.
8969 (tdesc_elements): Make static.
8970 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
8971 (struct tdesc_feature, tdesc_feature_p): New types.
8972 (struct target_desc): Add features member.
8973 (struct tdesc_arch_data, tdesc_data): New.
8974 (target_find_description): Clarify error message. Warn about
8975 ignored register descriptions.
8976 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
8977 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
8978 (tdesc_data_cleanup, tdesc_numbered_register)
8979 (tdesc_numbered_register_choices, tdesc_find_register)
8980 (tdesc_register_name, tdesc_register_type)
8981 (tdesc_remote_register_number, tdesc_register_reggroup_p)
8982 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
8983 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
8984 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
8985 (tdesc_create_feature, tdesc_record_type): New.
8986 (free_target_description): Free features.
8987 (_initialize_target_descriptions): Initialize tdesc_data.
8988 * arch-utils.c (default_remote_register_number): New.
8989 * arch-utils.h (default_remote_register_number): New prototype.
8990 * target-descriptions.h (set_tdesc_pseudo_register_name)
8991 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
8992 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
8993 (tdesc_numbered_register, tdesc_numbered_register_choices)
8994 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
8995 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
8996 (tdesc_create_reg): Declare.
8997 * gdbarch.sh (remote_register_number): New entry.
8998 * gdbarch.c, gdbarch.h: Regenerate.
8999 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
9000 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
9002 * arm-tdep.c (arm_register_aliases): New.
9003 (arm_register_name_strings): Rename to...
9004 (arm_register_names): ...this. Make const. Delete the old version.
9005 (current_option, arm_register_byte): Delete.
9006 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
9007 (value_of_arm_user_reg): New.
9008 (arm_gdbarch_init): Verify any described registers. Call
9009 tdesc_use_registers. Don't use arm_register_byte. Create aliases
9010 for standard register names.
9011 (_initialize_arm_tdep): Do not adjust arm_register_names.
9012 * user-regs.c (struct user_reg): Add baton member.
9013 (append_user_reg, user_reg_add_builtin, user_regs_init)
9014 (user_reg_add, value_of_user_reg): Use a baton for user
9016 * std-regs.c: Update.
9017 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
9018 (user_reg_add): Add baton argument.
9019 * NEWS: Mention target description register support.
9020 * features/arm-core.xml, features/arm-fpa.xml: New.
9021 * eval.c (evaluate_subexp_standard): Allow ptype $register
9022 when the program is not running.
9024 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
9026 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
9028 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
9030 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
9031 info->disassembler_options to "any".
9033 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9035 * varobj.c (install_new_value): Only call value_get_print_value
9038 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9040 Reported by timeless@gmail.com:
9041 * gdb/target.c (target_flash_erase): Do not return void value.
9042 (target_flash_done): Likewise.
9043 * gdb/cli/cli-cmds.c (source_command): Likewise.
9045 2007-02-08 Fred Fish <fnf@specifix.com>
9047 Based on work by Apple Computer, Inc.
9048 * event-top.c (handle_sigint): Set quit_flag.
9049 (async_request_quit): Don't set quit_flag. Avoid calling quit()
9050 if quit_flag has already been reset.
9052 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9054 * ser-mingw.c (pipe_windows_close): Move variable initialization back
9057 2007-02-08 Fred Fish <fnf@specifix.com>
9059 * defs.h (request_quit): Remove declaration.
9060 * utils.c (request_quit): Remove definition.
9062 2007-02-08 Joel Brobecker <brobecker@gnat.com>
9063 Jan Kratochvil <jan.kratochvil@redhat.com>
9064 Daniel Jacobowitz <dan@codesourcery.com>
9066 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
9067 (skip_prologue): Allow bl->blrl used by PIC code.
9069 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9070 Daniel Jacobowitz <dan@codesourcery.com>
9072 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
9073 initialize tmp_obstack.
9074 * p-valprint.c (pascal_object_print_value_fields)
9075 (pascal_object_print_value): Likewise.
9077 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9079 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
9081 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9083 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9084 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
9086 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9088 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
9090 (tdesc_parse_xml): Cache expanded descriptions.
9092 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9094 * Makefile.in (XMLFILES): New.
9095 (COMMON_OBS): Add xml-builtin.o.
9096 (xml-builtin.c, stamp-xml): New rules.
9097 (xml-tdesc.o): Update.
9098 * features/feature_to_c.sh: New file.
9099 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
9100 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
9101 (gdb_xml_start_element): Initialize scope after possibly reallocating
9102 scopes. Move cleanup later. Handle the XInclude description
9104 (gdb_xml_end_element): Only parse the body if there is a current element.
9105 Call XML_DefaultCurrent if there is no element.
9106 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
9107 (struct xinclude_parsing_data, xinclude_start_include)
9108 (xinclude_end_include, xml_xinclude_default)
9109 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
9110 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
9111 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
9112 * xml-support.h (xml_fetch_another, xml_process_xincludes)
9113 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
9114 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
9115 XInclude directives. Use the compiled in DTD.
9116 (fetch_xml_from_file): Add baton argument. Treat it as a containing
9117 directory name. Do not warn here.
9118 (file_read_description_xml): Update call. Warn here instead. Pass
9120 (fetch_available_features_from_target): New.
9121 (target_read_description_xml): Use it.
9122 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
9124 * features/xinclude.dtd: New file.
9126 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9128 * linux-thread-db.c (check_for_thread_db): Return early if we have
9129 no libthread_db support.
9131 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9133 * mi/mi-parse.h: Include <sys/time.h>.
9135 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
9137 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
9138 instead of print_variable_value to print values.
9140 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9142 * mi/mi-main.c: Numerous formatting changes.
9143 (mi_cmd_data_write_register_values): Replace clause inadvertantly
9144 removed in my previous change.
9146 2007-02-03 Eli Zaretskii <eliz@gnu.org>
9148 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
9149 Use 1000000L instead of 1000000.
9151 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9153 Based on work by Apple Computer, Inc.
9155 * configure.ac: Test for sys/resource.h and getrusage.
9156 * configure, config.in: Regenerate.
9158 * mi/mi-main.c: Include <sys/resource.h> if present.
9159 (rusage): Declare if HAVE_GETRUSAGE.
9160 (current_command_ts, do_timings): New static variables.
9161 (timestamp, print_diff_now, print_diff, timeval_diff):
9162 New static timing functions.
9163 (mi_cmd_enable_timings): New function for new MI command.
9164 (captured_mi_execute_command, mi_execute_async_cli_command):
9165 Call timing functions.
9167 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
9170 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
9172 * mi/mi-parse.h: (mi_timestamp): New structure.
9173 (mi_parse): Add mi_timestamp* member.
9175 2007-02-02 Denis Pilat <denis.pilat@st.com>
9177 * thread.c (make_cleanup_restore_current_thread): New function.
9178 (info_threads_command): Use of make_cleanup_restore_current_thread
9179 to restore the current thread and the selected frame.
9180 (restore_selected_frame): New function.
9181 (struct current_thread_cleanup): Add frame_id field.
9182 (do_restore_current_thread_cleanup): Add restoring of the selected
9184 (make_cleanup_restore_current_thread): Likewise.
9185 (thread_apply_all_command): backup the selected frame while
9186 entering the function and restore it at exit.
9187 (thread_apply_command): Likewise.
9189 2007-02-02 Denis Pilat <denis.pilat@st.com>
9191 * MAINTAINERS (Write After Approval): Add myself to the list.
9193 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
9195 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
9196 (m32r_store_register): Ditto.
9198 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
9200 * ser-mingw.c (pipe_windows_open)
9201 (pipe_windows_read, pipe_windows_write): Declare
9202 variables at the top of the function.
9204 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9206 * doublest.c (floatformat_from_length): Use the right element from
9207 gdbarch floatformats.
9208 (floatformat_from_type, extract_typed_floating)
9209 (store_typed_floating): Likewise.
9210 * doublest.h: Remove declarations for undefined floatformat arrays.
9211 * gdbarch.sh (float_format, double_format, long_double_format): Change
9213 (pformat): Update for pairs.
9214 * gdbarch.c, gdbarch.h: Regenerated.
9215 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
9216 (floatformats_ieee_double_littlebyte_bigword)
9217 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
9218 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
9219 (floatformats_vax_d): New variables.
9220 (builtin_type_ieee_single, builtin_type_ieee_double)
9221 (builtin_type_arm_ext, builtin_type_ia64_spill)
9222 (builtin_type_ia64_quad): Replace arrays with individual types.
9223 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
9224 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
9225 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
9226 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
9227 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
9228 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
9229 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
9230 unused and endian-specific types.
9231 (recursive_dump_type): Update for floatformat pairs.
9232 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
9233 (build_gdbtypes): Use build_flt.
9234 (_initialize_gdbtypes): Update set of initialized types.
9235 * gdbtypes.h: Update declarations to match gdbtypes.c.
9236 (struct main_type): Store a pointer to two floatformats.
9237 * arch-utils.c (default_float_format, default_double_format): Delete.
9238 * arch-utils.h (default_float_format, default_double_format): Delete.
9240 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9241 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
9242 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
9243 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
9244 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
9246 2007-01-29 Joel Brobecker <brobecker@adacore.com>
9248 * target.c (maintenance_print_target_stack): New function.
9249 (initialize_targets): Add new "maintenance print target-stack"
9252 2007-01-28 Mark Kettenis <kettenis@gnu.org>
9254 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
9256 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
9258 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
9259 (struct dwarf2_loclist_baton): Likewise.
9261 2007-01-27 Eli Zaretskii <eliz@gnu.org>
9263 * cli/cli-script.c: Include breakpoint.h.
9264 (build_command_line): Require arguments only for if and while
9266 (get_command_line, execute_user_command, execute_control_command):
9267 Fix wording of warning messages.
9268 (print_command_lines): Print breakpoint commands.
9269 (execute_control_command): Call commands_from_control_command to
9270 handle the `commands' command inside a body of a flow-control
9272 (read_next_line): Recognize the `commands' command and build a
9273 command line structure for it.
9274 (recurse_read_control_structure, read_command_lines): Handle
9275 `commands' similarly to `if' and `while'.
9277 * breakpoint.c (get_number_trailer): Document the special meaning
9278 of NULL as the first argument PP.
9279 (commands_from_control_command): New function.
9281 * breakpoint.h (commands_from_control_command): Add prototype.
9283 * defs.h (commands_control): New enumerated value for enum
9284 command_control_type.
9286 2007-01-26 Joel Brobecker <brobecker@adacore.com>
9288 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
9289 (ada_exception_sal): Update accordingly.
9291 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9293 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
9294 * NEWS: Describe CHAR array vs. string identifcation rules.
9296 2007-01-25 Paul Brook <paul@codesourcery.com>
9298 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
9300 2007-01-24 Jim Blandy <jimb@codesourcery.com>
9302 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
9303 expression is empty, bother to return the 'optimized out' value we
9304 construct. (Thanks to Carl Burch.)
9306 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9308 * varobj.c (c_value_of_root, c_value_of_child)
9309 (cplus_describe_child): Don't call release_value.
9311 2007-01-24 Thiemo Seufer <ths@mips.com>
9313 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
9316 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9318 Refactor getting children name, value and type access
9320 * varobj.c (get_type_deref): Remove.
9321 (adjust_value_for_child_access): New.
9322 (c_number_of_children): Use the above.
9323 (c_describe_child): Likewise.
9324 (enum accessibility): New.
9325 (match_accessibility): New function.
9326 (cplus_describe_child): New function.
9327 (cplus_name_of_child, cplus_value_of_child)
9328 (cplus_type_of_child): Reimplement in terms
9329 of cplus_describe_child.
9330 (cplus_number_of_children): Use
9331 adjust_value_for_child_access.
9333 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9335 Fix computation of the 'editable' attribute and
9336 value changeability for for references.
9337 * varobj.c (get_value_type): New function.
9338 (c_variable_editable): Use get_value_type.
9339 (varobj_value_is_changeable): Likewise.
9341 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9343 * source.c (find_and_open_source): Try rewriting the source
9344 path inside filename if dirname is NULL.
9346 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9348 * dwarf2read.c (add_partial_symbol): Create an extra partial
9349 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
9350 (new_symbol): Likewise for symbols.
9352 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
9354 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
9356 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
9358 * value.c (value_primitive_field): Copy the full 'location'
9359 contents, instead of assuming that copying ADDRESS will
9360 bring over everything in the union. Remove obsolete comment.
9362 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
9364 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
9365 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
9366 (m32c_m16c_pointer_to_address): Separate code from declarations.
9368 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
9370 * target.c (update_current_target): Correct typo.
9372 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
9374 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
9377 2007-01-11 Andrew Cagney <cagney@redhat.com>
9378 Daniel Jacobowitz <dan@codesourcery.com>
9379 Jan Kratochvil <jan.kratochvil@redhat.com>
9381 * dwarf2-frame.c (execute_cfa_program): New support of
9382 `DW_CFA_GNU_negative_offset_extended'.
9384 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9386 * NEWS: Mention flash support for "load" and new remote packets.
9388 2007-01-21 Markus Deuling <deuling@de.ibm.com>
9390 * breakpoint.c (delete_command): Skip redundant loop iterations.
9392 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9394 * gdbarch.sh (register_type): Update comment.
9395 * gdbarch.h: Regenerated.
9396 * arch-utils.c (generic_register_size): Call register_type.
9397 * ia64-tdep.c (ia64_extract_return_value): Likewise.
9398 * m32c-tdep.c (check_for_saved): Likewise.
9399 * mips-tdep.c (mips_print_register, print_gp_register_row)
9400 (mips_print_registers_info): Likewise.
9401 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
9403 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
9404 (sh64_do_register, sh64_print_register)
9405 (sh64_media_print_registers_info): Likewise.
9406 * tui/tui-regs.c (tui_register_format): Likewise.
9408 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9410 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
9412 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
9413 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
9414 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
9415 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9416 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
9417 (make_symbol_completion_list): Likewise.
9419 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9420 Daniel Jacobowitz <dan@codesourcery.com>
9422 * buildsym.c (end_symtab): Use preallocated symtab if available.
9423 Fill in SYMBOL_SYMTAB.
9424 * buildsym.h (struct subfile): Add symtab member.
9425 * dwarf2read.c (struct dwarf2_cu): Add line_header.
9426 (struct file_entry): Add symtab.
9427 (free_cu_line_header): New function.
9428 (read_file_scope): Use it. Save line_header in the cu. Process
9430 (add_file_name): Initialize new symtab member.
9431 (dwarf_decode_lines): Create symtabs for included files.
9432 (new_symbol): Set SYMBOL_SYMTAB.
9433 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
9434 (search_symbols): Likewise.
9435 * symtab.h (struct symbol): Add symtab member.
9436 (SYMBOL_SYMTAB): Define.
9438 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9440 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
9442 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9444 * arch-utils.c (show_endian): Correct reversed condition.
9446 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9448 * MAINTAINERS (Write After Approval): Add myself.
9450 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
9451 Vladimir Prus <vladimir@codesourcery.com>
9453 Fix 'selected frame' varobjs.
9454 * varobj.c (struct varobj): Remove the error field.
9455 (varobj_set_value): Don't check var->error.
9456 (install_new_value): Don't set var->error.
9457 (varobj_update): Always pass the new value
9458 of the root via install_new_value.
9459 (create_child): Don't set error field.
9460 (new_variable): Likewise.
9461 (c_value_of_root): Always reevaluate the value
9462 of selected frame varobjs in the selected frame.
9463 Don't call reinit_frame_cache.
9465 2007-01-15 Joel Brobecker <brobecker@adacore.com>
9467 * source.c (_initialize_source): Improve the help text of
9468 the substitute-path commands.
9470 2007-01-14 Mark Kettenis <kettenis@gnu.org>
9472 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
9473 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
9474 (frv_skip_prologue): Remove prototypes.
9475 (frv_adjust_breakpoint_address): Renamed from
9476 frv_gdbarch_adjust_breakpoint_address.
9477 (frv_gdbarch_init): Adjust.
9479 2007-01-13 Mark Kettenis <kettenis@gnu.org>
9481 * gdbarch.sh (deprecated_extract_return_value)
9482 (deprecated_store_return_value): Remove.
9483 (extract_return_value, store_return_value): Remove default values.
9484 * gdbarch.c, gdbarch.h: Regenerate.
9485 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
9486 (legacy_store_return_value): Remove.
9487 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
9490 * mi/mi-main.c: Remove obsolete comment.
9492 * regcache.c, regcache.h (deprecated_register_bytes)
9493 (deprecated_read_register_bytes)
9494 (deprecated_write_register_bytes): Remove.
9496 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
9497 Don't forget to move destination pointer.
9499 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9501 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
9503 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
9505 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
9506 past entry function with recent newlib.
9508 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
9510 * gdb.texinfo (GDB/MI Variable Objects): Improve the
9511 introduction. Specify -var-update more exactly.
9513 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
9515 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
9517 2007-01-10 Jim Blandy <jimb@codesourcery.com>
9519 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
9520 the Global Maintainers' invitation to be a global maintainer.
9522 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
9524 * infrun.c (singlestep_pc): New variable.
9525 (resume): Set singlestep_pc.
9526 (context_switch): Add a debugging message. Flush the frame cache.
9527 (handle_inferior_event): Add debugging messages. Handle thread
9528 hops when a software single step has completed. Let context_switch
9529 handle flushing the frame cache.
9531 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9533 * NEWS: Mention target descriptions, "set tdesc filename",
9534 "unset tdesc filename", "show tdesc filename", and
9535 qXfer:features:read.
9536 * arch-utils.c (choose_architecture_for_target): New function.
9537 (gdbarch_info_fill): Call it.
9538 * target-descriptions.c (struct property): Make members non-const.
9539 (struct target_desc): Add arch member.
9540 (target_description_filename): New variable.
9541 (target_find_description): Try via XML first.
9542 (tdesc_architecture): New.
9543 (free_target_description, make_cleanup_free_target_description): New.
9544 (set_tdesc_property): Call xstrdup.
9545 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
9546 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
9547 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
9548 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
9549 * target-descriptions.h (tdesc_architecture)
9550 (make_cleanup_free_target_description, set_tdesc_architecture): New
9552 * Makefile.in (SFILES): Add xml-tdesc.c.
9553 (COMMON_OBS): Add xml-tdesc.o.
9554 (target-descriptions.o): Update.
9555 (xml-tdesc.o): New rule.
9556 * xml-tdesc.c, xml-tdesc.h: New files.
9557 * remote.c (PACKET_qXfer_features): New enum.
9558 (remote_protocol_features): Add qXfer:features:read.
9559 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
9560 (_initialize_remote): Register qXfer:features:read.
9561 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
9562 * features/gdb-target.dtd: New file.
9564 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9566 * copyright.sh: Clarify error.
9568 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9570 * symtab.c (matching_bfd_sections): Fix VMA matching for
9573 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9575 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
9578 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9580 Updated copyright notices for most files.
9582 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9584 * copyright.sh (prunes): Add step-line.inp and step-line.c.
9586 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9588 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
9590 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
9592 * configure, config.in: Regenerate.
9593 * defs.h (debug_file_directory): Declare.
9594 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
9595 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
9596 relocate it if DEBUGDIR_RELOCATABLE.
9597 * symfile.c (debug_file_directory): Make non-static.
9598 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
9599 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
9600 (_initialize_symfile): Don't initialize debug_file_directory here.
9602 2007-01-09 Jim Blandy <jimb@codesourcery.com>
9604 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
9607 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9609 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
9610 frame_unwind_register to recurse.
9611 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
9612 (alpha_heuristic_frame_prev_register): Likewise.
9613 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
9614 * m32c-tdep.c (m32c_prev_register): Likewise.
9615 * frame.c (frame_register_unwind_location): Remove FIXME.
9617 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9618 Eli Zaretskii <eliz@gnu.org>
9620 * copyright.sh: New file.
9622 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9624 * configure.ac: Check for XML_StopParser.
9625 * xml-support.c (gdb_xml_body_text): Check for an error.
9626 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
9627 (gdb_xml_end_element_wrapper): Likewise.
9628 * config.in, configure: Regenerated.
9630 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9632 * varobj.c (install_new_value): Always update print_value.
9633 (value_get_print_value): Immediately return NULL for missing
9636 2007-01-08 Jim Blandy <jimb@codesourcery.com>
9638 * configure.ac: Tighten pattern for extracting value of
9639 DEPRECATED_TM_FILE from the target makefile fragment.
9640 * configure: Regenerated.
9642 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9644 * linux-nat.c (struct simple_pid_list): Add status.
9645 (add_to_pid_list): Record the PID's status.
9646 (linux_record_stopped_pid): Likewise. Make static.
9647 (pull_pid_from_list): Return the saved status.
9648 (linux_nat_handle_extended): Deleted.
9649 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
9650 Make static. Handle non-SIGSTOP for a new thread's first signal.
9651 (flush_callback): Handle unexpected pending signals.
9652 (linux_nat_wait): Update calls to changed functions.
9653 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
9654 Remove prototypes for newly static functions.
9656 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9658 * gdbarch.sh (value_from_register): New gdbarch function.
9659 * gdbarch.c, gdbarch.h: Regenerate.
9660 * findvar.c (default_value_from_register): New function.
9661 (value_from_register): Use gdbarch_value_from_register.
9662 * value.h (default_value_from_register): Declare.
9663 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
9664 spu_value_to_register): Remove.
9665 (spu_value_from_register): New function.
9666 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9667 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9668 Call set_gdbarch_value_from_register.
9669 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
9670 s390_value_to_register): Remove.
9671 (s390_value_from_register): New function.
9672 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9673 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9674 Call set_gdbarch_value_from_register.
9676 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9678 * NEWS: Add "set sysroot" and "show sysroot".
9679 * solib.c (solib_absolute_prefix): Delete. Replace
9680 all uses with gdb_sysroot.
9681 (_initialize_solib): Add "set sysroot" and "show sysroot".
9682 Make "solib-absolute-prefix" an alias to it.
9684 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9686 * frame.c (get_frame_register_bytes): New function.
9687 (put_frame_register_bytes): Likewise.
9688 * frame.h (get_frame_register_bytes): Declare.
9689 (put_frame_register_bytes): Likewise.
9690 * findvar.c (value_from_register): Always construct lval_register
9691 values. Use get_frame_register_bytes.
9692 * valops.c (value_assign): Use get_frame_register_bytes and
9693 put_frame_register_bytes.
9695 2007-01-08 Jim Blandy <jimb@codesourcery.com>
9697 * MAINTAINERS: Update Stan Shebs' email address.
9699 2007-01-07 Joel Brobecker <brobecker@adacore.com>
9701 * ada-lang.c (is_known_support_routine): Improve the implementation.
9703 2007-01-06 Joel Brobecker <brobecker@adacore.com>
9705 * ada-lang.c: Add include of source.h.
9706 (is_known_support_routine): Improve the check verifying that the file
9707 associated to this frame exists.
9708 * Makefile.in (ada-lang.o): Add dependency on source.h.
9710 2007-01-07 Jim Blandy <jimb@codesourcery.com>
9712 * ax-general.c (ax_const_l): Select proper opcode for the given
9715 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
9717 * varobj.c (c_value_of_root): Don't select frame if variable
9718 object is out of scope.
9720 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
9722 * varobj.c (struct varobj): New member print_value.
9723 (install_new_value): Compare last printed value with current one
9724 instead of contents.
9725 (new_variable): Initialize var->print_value to NULL.
9726 (free_variable): Free var->print_value.
9727 (value_get_print_value): New function derived from
9728 c_value_of_variable.
9729 (c_value_of_variable): Use value_get_print_value.
9731 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9733 * i386-tdep.c (i386_analyze_stack_align): Add comment.
9735 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9737 * NEWS: Add entries for new catch commands.
9739 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9741 * dwarf2read.c (partial_die_info): Add field has_byte_size.
9742 (add_partial_symbol): Correct identification of external references.
9743 (process_structure_scope): Likewise.
9744 (read_partial_die): Handle DW_AT_byte_size attribute.
9746 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
9748 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
9750 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
9752 * varobj.c (get_type_deref): Fix variable objects for references to
9755 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9757 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
9760 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9762 * memory-map.c (struct_memory_map_parsing_data): Remove most
9763 members. Make property_name an array.
9764 (free_memory_map_parsing_data, memory_map_start_element)
9765 (memory_map_end_element, memory_map_character_data): Delete.
9766 (memory_map_start_memory, memory_map_end_memory)
9767 (memory_map_start_property, memory_map_end_property): New functions.
9768 (property_attributes, memory_children, memory_type_enum)
9769 (memory_attributes, memory_map_children, memory_map_elements): New.
9770 (parse_memory_map): Rewrite.
9771 * xml-support.c (debug_xml): New.
9772 (xml_get_required_attribute, xml_get_integer_attribute)
9773 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
9775 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
9776 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
9777 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
9778 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
9779 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
9780 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
9781 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
9783 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
9784 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
9785 (enum gdb_xml_element_flag, struct gdb_xml_element)
9786 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
9787 (struct gdb_xml_enum): New.
9788 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
9789 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
9790 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
9791 (xml_get_required_attribute, xml_get_integer_attribute)
9792 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
9793 * Makefile.in (xml_support_h, xml-support.o): Update.
9795 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9797 * Makefile.in (eval.o): Update dependencies.
9798 * eval.c: Include "ui-out.h" and "exceptions.h".
9799 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
9800 Use value_zero if an error occurs when avoiding side effects.
9801 * varobj.c (c_value_of_root): Initialize new_val.
9803 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9805 * varobj.c (varobj_list_children): Stop if the number of children is
9807 (c_number_of_children):
9809 2007-01-04 Mark Kettenis <kettenis@gnu.org>
9811 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
9812 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
9813 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
9814 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
9815 sizeof, instead of hardcoded constants.
9817 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9819 * CONTRIBUTE: Use sourceware.org.
9821 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9823 * buildsym.c (start_subfile): Handle producer.
9824 (record_producer): New function.
9825 * buildsym.h (struct subfile): Include producer.
9826 (record_producer): New prototype.
9827 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
9828 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
9829 armcc_cfa_offsets_reversed.
9830 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
9831 (dwarf2_frame_find_quirks): New function.
9832 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
9833 (decode_frame_entry_1): Record the CIE version. Record the
9834 augmentation. Skip armcc augmentations.
9835 * dwarf2read.c (read_file_scope): Save the producer.
9836 * symtab.h (struct symtab): Rename unused version member to
9839 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9841 * configure.ac (build_warnings): Use -Wall and
9842 -Wdeclaration-after-statement.
9843 * configure: Regenerated.
9845 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
9847 Simplify access to variours properties of child
9848 variable objects in C.
9849 * varobj.c (value_struct_element_index): New function.
9850 (c_describe_child): New function.
9851 (c_name_of_child, c_value_of_child)
9852 (c_type_of_child): Rewrite to use c_describe_child.
9854 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
9857 * varobj.c: Include "vec.h".
9858 (varobj_p): New typedef, declare vector of those.
9859 (struct varobj): Use vector for the 'children' member.
9860 (child_exists): Remove.
9861 (save_child_in_parent): Remove.
9862 (remove_child_from_parent): Remove.
9863 (struct varobj_child): Remove.
9864 (struct vstack): Remove.
9865 (vpush, vpop): Remove.
9866 (varobj_list_children): Adjust to work work vector.
9867 (varobj_update): Likewise. Use vectors for
9868 working stack and result.
9869 (delete_variable_1): Likewise.
9870 * Makefile.in (varobj.o): Update dependencies.
9872 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
9874 Port from Apple's version.
9876 * varobj.c (type_changeable): Rename to...
9877 (varobj_value_is_changeable_p): ...this. Adjust all callers.
9878 (is_root_p): New function. Use it everywhere.
9880 2007-01-04 Jim Blandy <jimb@codesourcery.com>
9882 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
9885 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9887 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
9889 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9891 * hpread.c (hpread_type_lookup): Fix compilation failure.
9893 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
9895 * NEWS: New port to S+core.
9896 * MAINTAINERS (Write After Approval, Responsible Maintainers):
9899 * Makefile.in: Add dependencies for S+core files.
9900 * configure.tgt (score*, score-*-*): Add S+core target.
9901 * config/score/embed.mt: New file.
9902 * score-tdep.c: New file.
9903 * score-tdep.h: New file.
9905 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9907 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
9908 the appropriate type rather than a bogus void type.
9910 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9912 * ada-lang.h (ada_find_printable_frame): Remove.
9913 (ada_exception_catchpoint_p, ada_decode_exception_location)
9914 (ada_decode_assert_location): Add declaration.
9915 * ada-lang.c: Add include of annotate.h and valprint.h.
9916 (exception_catchpoint_kind): New enum.
9917 (function_name_from_pc, is_known_support_routine)
9918 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
9919 (ada_exception_name_addr_1, ada_exception_name_addr)
9920 (print_it_exception, print_one_exception, print_mention_exception)
9921 (print_it_catch_exception, print_one_catch_exception)
9922 (print_mention_catch_exception, catch_exception_breakpoint_ops)
9923 (print_it_catch_exception_unhandled)
9924 (print_one_catch_exception_unhandled)
9925 (print_mention_catch_exception_unhandled, print_it_catch_assert)
9926 (print_one_catch_assert, print_mention_catch_assert)
9927 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
9928 (ada_get_next_arg, catch_ada_exception_command_split)
9929 (ada_exception_sym_name, ada_exception_sym_name)
9930 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
9931 (ada_parse_catchpoint_condition, ada_exception_sal)
9932 (ada_decode_exception_location)
9933 (ada_decode_assert_location): New function.
9934 (catch_exception_unhandled_breakpoint_ops): New global variable.
9935 (catch_assert_breakpoint_ops): New global variable.
9936 * breakpoint.c: Add include of ada-lang.h.
9937 (print_one_breakpoint): Do not print the condition for Ada
9938 exception catchpoints.
9939 (create_ada_exception_breakpoint): New function.
9940 (catch_ada_exception_command, catch_assert_command): New function.
9941 (catch_command_1): Add support for the new "catch exception" and
9942 "catch assert" commands.
9943 (_initialize_breakpoint): Add help description for the new catch
9945 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
9947 (breakpoint.o): Add dependency on ada-lang.h.
9949 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
9951 * coffread.c (cs_to_section): If bfd_section is found, always
9952 return its section index.
9953 (coff_symtab_read): Determine the minimal_symbol_type using the
9956 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9957 Daniel Jacobowitz <dan@codesourcery.com>
9959 * Makefile.in (top.o): Update.
9960 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
9961 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
9962 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
9964 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
9966 2007-01-03 Mark Kettenis <kettenis@gnu.org>
9968 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
9969 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
9971 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
9973 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
9974 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
9975 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
9976 greater than or equal to zero.
9977 * m2-typeprint.c (m2_array): Likewise.
9978 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
9979 * gdbtypes.c (copy_type_recursive): Correct == typo.
9980 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
9981 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
9983 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
9984 (default_macro_scope): Remove unused variable.
9985 * prologue-value.h (pv_area_find_reg): Don't name an argument
9987 * remote-fileio.c (remote_fio_func_map): Add missing braces.
9988 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
9990 (cleanup_sigint_signal_handler): Remove casts.
9991 * valprint.c (val_print): Use a volatile local for the modified
9993 * varobj.c (languages): Remove extra array dimension.
9994 (varobj_create): Correct access to languages array.
9995 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
9997 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
9998 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
9999 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
10000 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
10001 (mi_cmd_data_write_memory): Likewise.
10002 * signals/signals.c (target_signal_to_string): Cast to int before
10004 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
10005 Update all callers.
10007 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
10009 * NEWS: Mention pointer to member improvements.
10010 * Makefile.in (gnu-v3-abi.o): Delete special rule.
10011 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
10012 * ada-valprint.c (ada_print_scalar): Update for new type codes.
10013 * c-typeprint.c (c_print_type): Update for new type codes.
10014 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
10015 (c_type_print_base): Likewise.
10016 (c_type_print_args): Rewrite.
10017 * c-valprint.c (c_val_print): Update for new type codes. Remove
10018 support for references to members. Treat methods like functions.
10019 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
10020 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
10021 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
10022 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
10023 (struct cp_abi_ops): Add corresponding members.
10024 * cp-valprint.c (cp_print_class_method): Delete.
10025 (cp_find_class_member): New function.
10026 (cp_print_class_member): Use it. Simplify support for bogus
10028 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
10029 lookup_methodptr_type.
10030 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
10031 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
10032 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
10034 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
10035 references returned by user defined operators.
10036 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
10037 (f_type_print_varspec_suffix): Remove support for member pointers.
10038 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
10040 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
10041 (lookup_methodptr_type): New.
10042 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
10043 (recursive_dump_type): Update for new types.
10044 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
10045 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
10046 (lookup_memberptr_type, lookup_methodptr_type)
10047 (smash_to_memberptr_type): New prototypes.
10048 (smash_to_method_type): Formatting fix.
10049 (lookup_member_type, smash_to_member_type): Delete prototypes.
10050 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
10051 Do not rely on debug information for the vptr or the method's
10052 enclosing type. Handle function descriptors for IA64.
10053 (gnuv3_virtual_fn_field): Rewrite using the new functions.
10054 (gnuv3_find_method_in, gnuv3_print_method_ptr)
10055 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
10056 (gnuv3_method_ptr_to_value): New.
10057 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
10058 * hpread.c (hpread_type_lookup): Update for new types.
10059 * infcall.c (value_arg_coerce): Likewise.
10060 * m2-typeprint.c (m2_print_type): Remove explicit support
10061 for member pointers.
10062 * m2-valprint.c (m2_val_print): Likewise.
10063 * p-typeprint.c (pascal_type_print_varspec_prefix)
10064 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
10065 * p-valprint.c (pascal_val_print): Likewise.
10066 (pascal_object_print_class_method, pascal_object_print_class_member):
10068 * p-lang.h (pascal_object_print_class_method)
10069 (pascal_object_print_class_member): Delete prototypes.
10070 * stabsread.c (read_type): Update for new types.
10071 * typeprint.c (print_type_scalar): Likewise.
10072 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
10073 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
10074 argument. Construct a pointer to member if the address of a
10075 function or data member is requested.
10076 (value_cast_pointers): Don't modify the input value.
10077 (value_cast): Adjust pointer to member handling for new types.
10078 Allow null pointer to member constants. Don't modify the input
10080 (value_ind): Remove pointer to member check. Handle function
10081 descriptors for function pointers.
10082 (value_struct_elt, value_find_oload_method_list, check_field):
10083 Remove pointer to member checks.
10084 * value.c (unpack_long): Allow pointers to data members.
10085 (value_from_longest): Allow member pointers.
10086 * value.h (value_aggregate_elt): Add want_address.
10087 * varobj.c (c_variable_editable): Remove check for members.
10088 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
10089 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
10091 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
10092 * c-lang.h (cp_print_class_method): Delete prototype.
10093 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
10094 * mips-tdep.c (mips_gdbarch_init): Likewise.
10095 * gdbarch.c, gdbarch.h: Regenerated.
10097 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10099 * rs6000-tdep.c (rs6000_use_struct_convention)
10100 (rs6000_extract_return_value, rs6000_store_return_value)
10101 (rs6000_extract_struct_value_address): Remove.
10102 (rs6000_return_value): New function.
10103 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
10104 store_return_value, deprecated_extract_struct_value_address and
10105 deprecated_use_struct_convention. Use rs6000_return_value
10108 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
10110 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
10111 -display-disable, -display-enable, -display-insert and
10114 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10116 * breakpoint.c (remove_breakpoint): Remove dead code.
10118 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
10120 * varobj.c: Include block.h.
10121 (c_value_of_root): Check scope within nested statements.
10123 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10125 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
10126 regcache_cooked_write_signed instead of
10127 deprecated_write_register_bytes.
10129 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10131 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
10133 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10135 Followed the Start of New Year Procedure:
10136 * ChangeLog-2006: New file, containing all the entries for 2006.
10137 * ChangeLog: Removed all 2006 entries, and changed the reference
10138 to the previous ChangeLog to point to ChangeLog 2006.
10139 * top.c (print_gdb_version): Update copyright year.
10141 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10143 * Makefile.in (remote-sds.o): Remove.
10144 * remote-sds.c: Delete.
10146 For older changes see ChangeLog-2006.
10152 version-control: never