1 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3 * nbsd-tdep.c: Fix comment.
5 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9 (nbsd-tdep.o): New dependency list.
10 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
12 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
13 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
14 * nbsd-tdep.c: New file.
15 * nbsd-tdep.h: New file.
16 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
18 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
19 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
20 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
21 * config/sh/nbsd.mt (TDEPFILES): Ditto.
23 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
25 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
26 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
27 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
28 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
29 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
30 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
32 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
34 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
35 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
36 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
37 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
38 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
39 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
40 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
42 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
44 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
45 fetch_elfcore_registers to...
46 * i386nbsd-tdep.c: ...here.
47 (i386nbsd_use_struct_convention): Rename to...
48 (i386nbsd_aout_use_struct_convention): ...this.
49 (i386nbsd_supply_reg): New function.
50 (i386nbsd_fill_reg): New function.
51 (fetch_core_registers): Use i386nbsd_supply_reg.
52 (fetch_elfcore_registers): Likewise.
53 (_initialize_i386nbsd_tdep): New function.
54 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
55 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
56 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
57 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
58 (i386nbsd_aout_use_struct_convention): ...this.
60 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
62 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
63 (store_inferior_registers): Use shnbsd_fill_reg.
64 * shnbsd-tdep.c (sh_nbsd_supply_registers,
65 sh_nbsd_supply_register): Collapse into...
66 (shnbsd_supply_reg): ...this.
67 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
68 (shnbsd_fill_reg): ...this.
69 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
70 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
71 (fetch_core_registers): Use shnbsd_supply_reg.
72 (fetch_elfcore_registers): Use shnbsd_supply_reg.
73 (sh_nbsd_core_fns): Rename to...
74 (shnbsd_core_fns): ...this.
75 (sh_nbsd_elfcore_fns): Rename to...
76 (shnbsd_elfcore_fns): ...this.
77 (sh_nbsd_init_abi): Rename to...
78 (shnbsd_init_abi): ...this.
79 (_initialize_sh_nbsd_tdep): Rename to...
80 (_initialize_shnbsd_tdep): ...this.
81 * shnbsd-tdep.h (sh_nbsd_supply_registers,
82 sh_nbsd_supply_register, sh_nbsd_fill_registers,
83 sh_nbsd_fill_register): Remove prototypes.
84 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
86 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
88 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
89 (i387-nat.o): Delete dependency list.
90 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
91 (x86-64-linux-nat.o): Likewise.
92 * i387-nat.c: Delete file, moving contents to...
93 * i387-tdep.c: ...here.
94 * i387-nat.h: Rename...
95 * i387-tdep.h: ...to this.
96 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
97 * i386-linux-nat.c: Likewise.
98 * i386bsd-nat.c: Likewise.
99 * i386gnu-nat.c: Likewise.
100 * i386nbsd-nat.c: Likewise.
101 * i386v4-nat.c: Likewise.
102 * x86-64-linux-nat.c: Likewise.
103 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
104 * config/i386/go32.mh (NATDEPFILES): Likewise.
105 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
106 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
107 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
108 * config/i386/linux.mh (NATDEPFILES): Likewise.
109 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
110 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
111 * config/i386/obsd.mh (NATDEPFILES): Likewise.
112 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
114 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
116 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
117 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
118 (alphanbsd-nat.o): Likewise.
119 (alphabsd-tdep.o): New dependency list.
120 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
121 (fill_gregset): Use alphabsd_fill_reg.
122 (supply_fpregset): Use alphabsd_supply_fpreg.
123 (fill_fpregset): Use alphabsd_fill_fpreg.
124 (fetch_inferior_registers): Use struct reg and struct fpreg
125 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
126 and alphabsd_supply_fpreg.
127 (store_inferior_registers): Use struct reg and struct fpreg
128 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
129 and alphabsd_fill_fpreg.
130 * alphabsd-tdep.c: New file.
131 * alphabsd-tdep.h: New file.
132 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
133 (fetch_elfcore_registers): Use alphabsd_supply_reg and
134 alphabsd_supply_fpreg.
135 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
136 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
138 2002-05-11 Eric Christopher <echristo@redhat.com>
140 * mips-tdep.c (mips_double_register_type): Fix thinko.
141 (mips_single_register_type): Ditto.
142 * MAINTAINERS: Add self.
144 2002-05-11 Mark Kettenis <kettenis@gnu.org>
146 * i387-nat.c (i387_supply_register, i387_fill_fsave,
147 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
148 right thing on architectures with different endianness and/or
151 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
153 From Christian Limpach <chris@Pin.LU>
154 * configure.in: Change sed expression which comments out
155 NATDEPFILES to also comment out continuation lines.
156 * configure: Regenerate.
158 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
160 * sh-tdep.c: Clean up code erroneously reintroduced by previous
163 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
165 * sh-tdep.c: Include correct file.
167 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
169 New support for sh64-elf (sh5) target.
171 * configure.tgt: For sh64-elf target, default to sh-elf.
173 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
174 (struct gdbarch_tdep): Add new fields for new registers and ABI
177 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
178 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
179 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
180 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
181 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
182 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
183 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
184 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
185 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
186 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
187 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
188 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
189 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
190 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
191 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
192 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
193 sh64_get_gdb_regnum, sh64_media_reg_base_num,
194 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
195 sign_extend, sh64_nofp_frame_init_saved_regs,
196 sh64_init_extra_frame_info, sh64_get_saved_register,
197 sh64_extract_struct_value_address, sh64_pop_frame,
198 sh64_push_arguments, sh64_extract_return_value,
199 sh64_store_return_value, sh64_show_media_regs,
200 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
201 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
202 sh_sh64_register_virtual_type,
203 sh_sh64_register_convert_to_virtual,
204 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
205 sh64_register_read, sh64_pseudo_register_write,
206 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
207 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
208 sh64_do_pseudo_register, sh_compact_do_registers_info,
209 sh64_do_registers_info, sh_gdbarch_init): New functions.
211 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
213 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
215 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
217 * linespec.c (decode_line_1): Check for a double quote after
218 a filename correctly.
220 2002-05-10 Jim Blandy <jimb@redhat.com>
222 Properly track the size of the current objfile's .debug_line section.
223 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
224 (DWARF_LINE_SIZE): New macro.
225 (dwarf2_build_psymtabs_hard): Record the line section's size in
226 the partial symbol table.
227 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
230 2002-05-10 Petr Sorfa <petrs@caldera.com>
232 * ia64-tdep.c: Handle breakpoints on L instruction type
233 in MLX instruction bundle by moving the breakpoint to
234 the third slot (X instruction type) as L holds only data.
236 2002-05-10 Kevin Buettner <kevinb@redhat.com>
238 * dbxread.c (discarding_local_symbols_complaint): New complaint.
239 (process_one_symbol): Complain about discarding local symbols
240 due to a misplaced N_LBRAC entry.
242 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
244 From Daniel Berlin <dan@cgsoftware.com>
245 * linespec.c (find_toplevel_char): '<' and '>' also increase and
246 decrease the depth we are at, in the case of templates.
248 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
250 * mips-tdep.c (mips_float_register_type): New function.
251 (mips_double_register_type): New function.
252 (mips_print_register): Use them.
253 (do_fp_register_row): Likewise.
255 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
257 * signals/signals.c (signals): Remove conditional compilation around
258 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
259 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
261 2002-05-09 Michael Snyder <msnyder@redhat.com>
263 * remote-rdp.c (remote_rdp_can_run): Remove.
265 2002-05-09 Tom Tromey <tromey@redhat.com>
267 * jv-valprint.c (java_val_print): Handle `char' as a special case
270 2002-05-09 Michael Snyder <msnyder@redhat.com>
272 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
273 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
274 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
275 str r(0123),[sp,#nn].
276 (arm_skip_prologue): Ditto. Also make disassembly
277 order-independent by placing it in a loop.
279 2002-05-06 Michael Snyder <msnyder@redhat.com>
281 * stabsread.c (read_type): Add recognition for new attribute:
282 "@V;" means that an array type is actually a vector.
283 This is analogous to the vector flag that's been added to dwarf2.
285 2002-05-09 Mark Kettenis <kettenis@gnu.org>
287 * i386-tdep.h (i386_abi): New enum.
288 (struct gdbarch_tdep): Replace os_ident member with abi.
289 (i386_gdbarch_register_os_abi): New prototype.
290 * i386-tdep.c (i386_abi_names): New array.
291 (process_note_abi_tag_sections): Removed.
292 (process_note_sections): New function.
293 (i386_elf_abi_from_note, i386_elf_abi): New functions.
294 (struct i386_abi_handler): New struct.
295 (i386_abi_handler_list): New variable.
296 (i386_gdbarch_register_os_abi): New function.
297 (i386_gdbarch_init): Adapt for the changes given above.
299 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
301 * gregset.h: Say "GNU/Linux".
303 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
305 * gdbtypes.c : Add new builtin type for 64 bit vectors.
306 (build_gdbtypes): Build builtin_type_v2_float.
307 (_initialize_gdbtypes): Register new builtin type.
309 2002-05-08 Andrew Cagney <ac131313@redhat.com>
311 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
312 (clear_gdbarch_swap): New function.
313 (initialize_non_multiarch): Call.
314 (gdbarch_update_p): Before calling init(), swap out and clear the
315 existing architecture.
316 * gdbarch.c: Regenerate.
318 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
320 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
323 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
325 * sh-nbsd-nat.c: Rename to...
326 * shnbsd-nat.c: ...this.
327 * sh-nbsd-tdep.c: Rename to...
328 * shnbsd-tdep.c: ...this.
329 * sh-nbsd-tdep.h: Rename to...
330 * shnbsd-tdep.h: ...this.
331 * config/sh/nbsd.mh: Use shnbsd-nat.o.
332 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
334 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
336 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
337 concatenation for command help messages.
339 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
341 * NEWS: Note new sh*-*-netbsdelf* configuration.
342 * configure.host: Set gdb_host_cpu to sh for all sh*.
343 (sh*-*-netbsdelf*): New host.
344 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
345 (sh*-*-netbsdelf*): New target.
346 * sh-nbsd-nat.c: New file.
347 * sh-nbsd-tdep.c: New file.
348 * sh-nbsd-tdep.h: New file.
349 * config/sh/nbsd.mh: New file.
350 * config/sh/nbsd.mt: New file.
351 * config/sh/nm-nbsd.h: New file.
352 * config/sh/tm-nbsd.h: New file.
354 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
356 * sh-tdep.c (sh_osabi_names): Declare.
357 (process_note_abi_tag_sections): New function.
358 (get_elfosabi): Ditto.
359 (sh_gdbarch_register_os_abi): Ditto.
360 (sh_dump_tdep): Ditto.
361 _initialize_sh_tdep): Use gdbarch_register to register
362 sh_gdbarch_init and sh_dump_tdep.
363 * config/sh/tm-sh.h (sh_osabi): Declare.
364 (gdbarch_tdep): Add sh_osabi and osabi_name members.
366 2002-05-07 Andrew Cagney <ac131313@redhat.com>
368 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
369 (thumb_scan_prologue): Ditto.
370 (arm_find_callers_reg): Ditto.
371 (arm_frame_chain): Ditto.
372 (arm_init_extra_frame_info): Ditto.
373 (arm_frame_saved_pc): Ditto.
374 (arm_pop_frame): Ditto.
375 (arm_push_return_address): New function.
376 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
377 call_dummy_location, call_dummy_breakpoint_offset_p,
378 call_dummy_breakpoint_offset, call_dummy_p,
379 call_dummy_stack_adjust_p, call_dummy_words,
380 sizeof_call_dummy_words, call_dummy_start_offset,
381 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
382 call_dummy_address, push_return_address and push_dummy_frame for
383 generic dummy frames.
385 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
387 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
388 size computation for alloca.
389 (sh_fp_frame_init_saved_regs): Likewise.
391 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
393 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
394 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
395 * arm-tdep.c (arm_store_return_value): Use them.
396 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
397 * remote-rdp.c (remote_rdp_fetch_register): Use
398 ARM_MAX_REGISTER_RAW_SIZE.
399 (remote_rdp_store_register): Likewise.
401 2002-05-07 Michal Ludvig <mludvig@suse.cz>
403 * dwarf2cfi.c: Code cleanup, removed unused variables,
404 added default labels to switch {} statements.
405 * x86-64-tdep.c: Ditto.
406 * x86-64-linux-nat.c: Ditto.
408 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
410 * solib.h: Protect against multiple inclusion.
412 2002-05-06 Jim Blandy <jimb@redhat.com>
414 Add first preprocessor macro-expansion files.
415 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
416 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
417 (splay_tree_h, macroexp_h, macrotab_h): New variable.
418 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
419 (COMMON_OBS): Add macrotab.o, macroexp.o.
420 (macroexp.o, macrotab.o): New rules.
422 Separate the job of reading the line number info statement program
423 header (...expialidocious) out into its own function.
424 * dwarf2read.c (struct line_head, struct filenames, struct
425 directories): Replace with...
426 (struct line_header): New structure, containing the full
427 contents of the statement program header, including the
428 include directory and file name tables.
429 (read_file_scope): If we have line number info, instead of just
430 calling dwarf_decode_lines to do all the work, call
431 dwarf_decode_line_header first to get a `struct line_header'
432 containing the data in the statement program header, and then
433 pass that to dwarf_decode_lines, which will pick up where that
434 left off. Be sure to clean up the `struct line_header' object.
435 (dwarf_decode_line_header, free_line_header, add_include_dir,
436 add_file_name): New functions.
437 (dwarf_decode_lines): Move all the code to read the statement
438 program header into dwarf_decode_line_header. Take the line
439 header it built as the first argument, instead of the offset to
440 the compilation unit's line number info. Use the new `struct
441 line_header' type instead of the old structures. No need to do
442 cleanups here now, since we don't allocate anything.
443 (dwarf2_statement_list_fits_in_line_number_section,
444 dwarf2_line_header_too_long): New complaints.
446 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
448 * gdbtypes.c (init_vector_type): New function.
449 (build_builtin_type_vec128): Simplify the representation of SIMD
451 (build_gdbtypes): Initialize new builtin vector types.
452 (_initialize_gdbtypes): Register new vector types with gdbarch.
453 (builtin_type_v4_float, builtin_type_v4_int32,
454 builtin_type_v8_int16, builtin_type_v16_int8,
455 builtin_type_v2_int32, builtin_type_v4_int16,
456 builtin_type_v8_int8): New (renamed) SIMD types.
458 2002-05-06 Mark Kettenis <kettenis@gnu.org>
460 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
461 (i387_fill_fxsave): Likewise.
463 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
465 * alpha-tdep.c (alpha_extract_return_value): Don't use
466 non-constant array size in prototype.
468 2002-05-04 Andrew Cagney <ac131313@redhat.com>
470 From Brian Taylor <briant at model dot com>:
471 * ui-out.c (ui_out_field_core_addr): Use the function
472 longest_local_hex_string_custom'to format addresses > 32 bits
475 * ui-out.c (ui_out_field_core_addr): Update comment.
477 2002-05-04 Andrew Cagney <ac131313@redhat.com>
479 * stack.c (select_and_print_frame): Make static. Delete the
481 (func_command): Update call.
482 (select_frame_command): Delete code computing the frame level.
483 * frame.h (select_and_print_frame): Delete declaration.
485 2002-05-04 Andrew Cagney <ac131313@redhat.com>
487 * sparc-tdep.c (sparc_get_saved_register): Comment why
488 get_prev_frame call is safe.
490 2002-05-04 Andrew Cagney <ac131313@redhat.com>
492 * frame.h (select_frame): Delete level parameter.
493 * stack.c (select_frame): Update. Use frame_relative_level to
494 obtain the frame's level.
495 (select_and_print_frame): Update call.
496 (select_frame_command): Ditto.
497 (up_silently_base): Ditto.
498 (down_silently_base): Ditto.
499 * ocd.c (ocd_start_remote): Ditto.
500 * remote-rdp.c (remote_rdp_open): Ditto.
501 * remote-mips.c (mips_initialize): Ditto.
502 (common_open): Ditto.
503 * remote-e7000.c (e7000_start_remote): Ditto.
504 * m3-nat.c (select_thread): Ditto.
505 * hppa-tdep.c (child_get_current_exception_event): Ditto.
506 (child_get_current_exception_event): Ditto.
507 * varobj.c (varobj_create): Ditto.
508 (varobj_update): Ditto.
509 (c_value_of_root): Ditto.
510 * tracepoint.c (finish_tfind_command): Ditto.
511 * corelow.c (core_open): Ditto.
512 * arch-utils.c (generic_prepare_to_proceed): Ditto.
513 * thread.c (info_threads_command): Ditto.
514 (switch_to_thread): Ditto.
515 * infrun.c (normal_stop): Ditto.
516 (restore_selected_frame): Ditto.
517 (restore_inferior_status): Ditto.
518 * breakpoint.c (insert_breakpoints): Ditto.
519 (watchpoint_check): Ditto.
520 (bpstat_stop_status): Ditto.
521 (do_enable_breakpoint): Ditto.
522 * blockframe.c (flush_cached_frames): Ditto.
523 (reinit_frame_cache): Ditto.
525 2002-05-04 Andrew Cagney <ac131313@redhat.com>
527 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
530 2002-05-04 Jim Blandy <jimb@redhat.com>
532 * gdbtypes.c (replace_type): Doc fix.
534 2002-05-04 Andrew Cagney <ac131313@redhat.com>
536 * valprint.c (strcat_longest): Delete commented out function.
539 2002-05-04 Andrew Cagney <ac131313@redhat.com>
541 * MAINTAINERS: Mark a29k as deleted.
542 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
543 Move new configurations to the top.
544 * configure.tgt: Remove a29k.
545 * config/a29k/tm-vx29k.h: Delete.
546 * config/a29k/vx29k.mt: Delete.
547 * config/a29k/tm-a29k.h: Delete.
548 * config/a29k/a29k-udi.mt: Delete.
549 * config/a29k/a29k.mt: Delete.
550 * a29k-tdep.c: Delete.
551 * remote-udi.c: Delete.
552 * remote-mm.c: Delete.
553 * remote-eb.c: Delete.
554 * remote-adapt.c: Delete.
555 * Makefile.in: Remove obsolete code.
556 * gdbserver/Makefile.in: Ditto.
557 * config/s390/s390x.mt: Ditto.
558 * config/s390/s390.mt: Ditto.
559 * config/sparc/sparclynx.mh: Ditto.
560 * config/sparc/linux.mh: Ditto.
561 * config/pa/hppaosf.mh: Ditto.
562 * config/pa/hppabsd.mh: Ditto.
563 * config/ns32k/nbsd.mt: Ditto.
564 * config/mips/vr5000.mt: Ditto.
565 * config/m68k/sun3os4.mh: Ditto.
566 * config/m68k/nbsd.mt: Ditto.
567 * config/m68k/m68klynx.mh: Ditto.
568 * config/m32r/m32r.mt: Ditto.
569 * config/i386/x86-64linux.mt: Ditto.
570 * config/i386/nbsdelf.mt: Ditto.
571 * config/i386/nbsd.mt: Ditto.
572 * config/i386/i386lynx.mh: Ditto.
574 2002-05-04 Andrew Cagney <ac131313@redhat.com>
576 * target.c (debug_print_register): New function. Handle oversize
578 (debug_to_fetch_registers): Call.
579 (debug_to_store_registers): Call.
581 2002-05-03 Jim Blandy <jimb@redhat.com>
583 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
584 (read_type): Doc fix.
585 * gdbtypes.c (replace_type): Doc fix.
587 * stabsread.c (multiply_defined_struct): New complaint.
588 (read_struct_type): If the type we were passed isn't empty, or
589 incomplete, don't read the new struct type into it; complain,
590 and return the original type unchanged. Take a new `type_code'
591 argument, which is the type code for the new type.
592 (read_type): Rather than storing the type's type code here, pass
593 it as an argument to read_struct_type, and let that take care of
594 storing it. That way, we don't overwrite the original type code,
595 so read_struct_type can use it to decide whether we're overwriting
596 something we shouldn't.
597 (complain_about_struct_wipeout): New function.
599 2002-05-03 Andrew Cagney <ac131313@redhat.com>
601 * gdbarch.sh: Assert that gdbarch is non-NULL.
602 * gdbarch.c: Regenerate.
604 2002-05-03 Jason Merrill <jason@redhat.com>
606 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
609 2002-05-03 Michal Ludvig <mludvig@suse.cz>
611 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
612 (x86_64_dwarf2gdb_regno_map_length),
613 (x86_64_dwarf2_reg_to_regnum): Added.
614 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
615 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
616 (_initialize_x86_64_tdep): Synced with the change above.
617 (x86_64_skip_prologue): Reformulated message.
619 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
621 * f-exp.y: Also use new prev_lexptr variable
622 to improve error reporting. Based on Michael Snyder
623 2002-04-24 dated patch to c-exp.y.
624 * jv-exp.y: Likewise.
625 * m2-exp.y: Likewise.
627 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
629 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
630 we are dealing with vectors.
632 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
634 * config/m68k/tm-nbsd.h: Obvious fix,
635 correct machine name.
637 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
639 * p-typeprint.c (pascal_type_print_base): Add support
640 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
642 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
644 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
645 for fondamental pascal 'char' type.
647 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
649 * p-lang.h (is_pascal_string_type): Declaration changed,
650 new sixth argument of type char ** added.
651 * p-lang.c (is_pascal_string_type): Implementation
652 changed. Args length_pos, length_size, string_pos, char_size
653 can now be NULL. New argument arrayname set to the field
654 name of the char array. Return value set to char array
655 field index plus one.
656 * p-valprint.c (pascal_val_print): Adapt to new declaration of
657 is_pascal_string_type function.
659 2002-05-02 Andrew Cagney <cagney@redhat.com>
661 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
662 <cagney@redhat.com> change.
663 * gdbarch.c: Regenerate.
665 2002-05-02 Andrew Cagney <cagney@redhat.com>
667 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
668 before probing for a new one. Detect errorenous gdbarch_init
670 * gdbarch.c: Regenerate.
672 2002-05-01 Andrew Cagney <cagney@redhat.com>
674 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
675 * config/mcore/tm-mcore.h: Ditto. Update copyright.
676 * config/v850/tm-v850.h: Ditto. Update copyright.
678 2002-04-30 Andrew Cagney <ac131313@redhat.com>
680 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
683 2002-04-30 Michael Snyder <msnyder@redhat.com>
685 * arm-tdep.c: Whitespace clean-ups.
686 (arm_skip_prologue): Fix thinko; two lines
687 should have been removed as part of 4/24 change.
689 2002-04-30 Kevin Buettner <kevinb@redhat.com>
691 * rs6000-tdep.c: Added comment describing how fpscr register
694 2002-04-30 Michael Snyder <msnyder@redhat.com>
696 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
698 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
700 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
701 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
702 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
704 2002-04-29 Kevin Buettner <kevinb@redhat.com>
706 From Louis Hamilton <hamilton@redhat.com>:
707 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
708 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
709 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
710 not bfd-private xcoff data, to determine wordsize.
711 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
713 2002-04-29 Andrew Cagney <ac131313@redhat.com>
715 GDB 5.2 released from 5.2 branch.
717 2002-04-29 Michal Ludvig <mludvig@suse.cz>
719 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
720 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
721 (x86_64_register_info_table): Added comments with register numbers.
723 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
725 * rs6000-tdep.c (rs6000_extract_return_value,
726 rs6000_store_return_value): Handle returning vectors.
727 (rs6000_gdbarch_init): Use
728 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
729 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
731 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
733 (ppc_sysv_abi_push_arguments): Handle vector parameters.
734 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
736 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
738 * hpread.c (hpread_psymtab_to_symtab_1,
739 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
740 with fprintf_unfiltered (gdb_stderr,...).
742 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
744 * remote-array.c (printf_monitor, write_monitor,
745 array_insert_breakpoint, array_remove_breakpoint ):
746 Replace fprintf (stderr,...
747 with fprintf_unfiltered (gdb_stderr,....
748 * remote-es.c: Likewise.
749 * remote-os9k.c: Likewise.
750 * remote-st.c: Likewise.
752 2002-04-28 Andreas Schwab <schwab@suse.de>
754 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
755 linux-proc.o and gcore.o.
757 2002-04-26 Michal Ludvig <mludvig@suse.cz>
759 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
760 code without frame pointers.
762 2002-04-26 Andrew Cagney <ac131313@redhat.com>
764 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
767 2002-04-26 Ben Elliston <bje@redhat.com>
769 * target.c (do_xfer_memory): Correct reference to the new option
770 "trust-readonly-sections".
772 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
774 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
775 * gdbtypes.c (recursive_dump_type): Output the vector flag.
776 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
778 (read_array_type): Record the fact that this array type is really a
779 vector (i.e. are passed in by value).
781 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
783 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
784 * alpha-tdep.c (alpha_sigcontext_addr): New function.
785 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
786 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
787 * alpha-linux-tdep.c: Include frame.h.
788 (alpha_linux_sigcontext_addr): New function.
789 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
790 alpha_linux_sigcontext_addr.
791 * alpha-osf1-tdep.c: Include gdbcore.h.
792 (alpha_osf1_sigcontext_addr): New function.
793 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
794 alpha_osf1_sigcontext_addr.
795 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
796 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
798 2002-04-26 Andrew Cagney <ac131313@redhat.com>
800 * stack.c (selected_frame_level):
801 (select_frame): Do not set selected_frame_level.
802 * frame.h (selected_frame_level): Delete declaration.
804 2002-04-26 Andrew Cagney <ac131313@redhat.com>
806 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
807 convert_from_func_ptr-addr when AIX / PowerOpen.
809 2002-04-25 Andrew Cagney <ac131313@redhat.com>
811 * valops.c (hand_function_call): Call
812 generic_save_call_dummy_addr.
813 * frame.h (generic_save_call_dummy_addr): Declare.
814 * blockframe.c (struct dummy_frame): Add fields call_lo and
816 (generic_find_dummy_frame): Check for PC in range call_lo to
817 call_hi instead of entry_point_address.
818 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
819 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
820 (generic_save_call_dummy_addr): New function.
822 2002-04-24 David S. Miller <davem@redhat.com>
824 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
826 (sparc_skip_prologue): Kill frameless_p arg, and use line number
827 information to find prologue when possible.
828 (sparc_prologue_frameless_p): Call examine_prologue directly.
829 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
830 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
832 (SKIP_PROLOGUE): Likewise.
834 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
836 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
837 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
838 indicate that the condition it was testing is always true.
839 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
840 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
841 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
843 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
845 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
846 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
847 tdep->jb_pc and tdep->jb_elt_size.
848 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
849 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
850 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
851 * alpha-nat.c (get_longjmp_target): Remove.
852 (JB_ELEMENT_SIZE): Ditto.
854 * alpha-tdep.c (alpha_get_longjmp_target): New function.
855 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
856 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
857 to alpha_get_longjmp_target.
858 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
859 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
860 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
862 2002-04-25 Andrew Cagney <ac131313@redhat.com>
864 * README: Update to GDB 5.2.
866 2002-04-25 Andrew Cagney <ac131313@redhat.com>
868 * gdbarch.sh (LC_ALL): Set to `c'.
870 2002-04-25 Theodore A. Roth <troth@verinet.com>
872 * avr-tdep.c: Ran through gdb_indent.sh.
874 2002-04-25 Theodore A. Roth <troth@verinet.com>
876 * MAINTAINERS: Add myself as AVR maintainer.
877 * NEWS: Note new target avr.
879 2002-04-25 Theodore A. Roth <troth@verinet.com>
881 * Makefile.in: Add support for AVR target.
882 * configure.tgt: Add support for AVR target.
883 * avr-tdep.c: New file
884 * config/avr/avr.mt: New file.
886 2002-04-25 Theodore A. Roth <troth@verinet.com>
888 * MAINTAINERS: Add myself to write-after-approval.
890 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
892 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
893 with fprintf_unfiltered (gdb_stderr,....
895 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
898 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
900 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
902 * p-exp.y: Also use new prev_lexptr variable
903 to improve error reporting. Based on Michael Snyder
904 2002-04-24 dated patch to c-exp.y.
906 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
908 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
909 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
910 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
912 * config/alpha/tm-alpha.h: Remove forward decls of struct type
914 (FUNCTION_START_OFFSET): Remove.
917 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
919 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
922 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
924 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
925 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
926 alpha_linux_pc_in_sigtramp.
927 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
928 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
929 alpha_osf1_pc_in_sigtramp.
930 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
931 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
932 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
933 alphafbsd_pc_in_sigtramp.
934 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
935 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
936 alphanbsd_pc_in_sigtramp.
937 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
938 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
940 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
942 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
944 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
946 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
948 (alphanbsd-nat.o): New dependency list.
949 (alphanbsd-tdep.o): Ditto.
950 * NEWS: Note new native NetBSD/alpha configuration.
951 * alphanbsd-nat.c: New file.
952 * alphanbsd-tdep.c: Ditto.
953 * configure.host (alpha*-*-netbsd*): New host.
954 * configure.tgt (alpha*-*-netbsd*): New target.
955 * config/alpha/nbsd.mh: New file.
956 * config/alpha/nbsd.mt: Ditto.
957 * config/alpha/nm-nbsd.h: Ditto.
958 * config/alpha/tm-nbsd.h: Ditto.
960 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
962 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
963 (alpha-osf1-tdep.o): New dependency list.
964 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
965 and skip_sigtramp_frame members.
966 * alpha-linux-tdep.c: Include gdbcore.h.
967 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
968 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
969 * alpha-osf1-tdep.c: New file.
970 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
972 (alpha_frame_past_sigtramp_frame): New function.
973 (alpha_dynamic_sigtramp_offset): Ditto.
974 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
975 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
976 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
977 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
978 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
979 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
980 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
981 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
982 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
983 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
984 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
985 to find_solib_trampoline_target.
986 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
987 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
988 (SKIP_TRAMPOLINE_CODE): Remove.
989 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
990 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
991 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
992 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
993 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
994 (PROC_SIGTRAMP_MAGIC): Ditto.
995 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
996 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
997 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
998 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
999 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
1001 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1003 * NEWS: Note that Alpha targets are now multi-arch.
1005 2002-04-24 Michael Snyder <msnyder@redhat.com>
1007 * parser-defs.h (prev_lexptr): New external variable.
1008 * parse.c (parse_exp_1): Set prev_lexptr to null before
1009 calling the language-specific parser.
1010 * c-exp.y (yylex): Set prev_lexptr to start of current token.
1011 (yyerror): Use prev_lexptr in error reporting.
1013 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
1015 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
1016 * gregset.h: If FILL_FPXREGSET is defined, provide
1017 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
1018 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
1019 is defined, call fill_fpxregset.
1021 2002-04-24 Roland McGrath <roland@frob.com>
1023 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
1024 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
1025 (supply_gregset, supply_fpregset): New functions.
1027 * gnu-nat.c (gnu_find_memory_regions): New function.
1028 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
1029 (gnu_xfer_memory): Add a cast.
1031 2002-04-24 Michael Snyder <msnyder@redhat.com>
1033 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
1034 loop. Add handling for "str lr, [sp, #-4]!" and for saves
1035 of argument regs ("str r(0123), [r11, #-nn"]).
1036 (arm_skip_prologue): Better handling for frameless functions.
1037 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
1038 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
1040 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
1042 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
1043 NUM_PSEUDO_REGS can be used.
1045 2002-04-24 Andrew Cagney <ac131313@redhat.com>
1047 * arch-utils.h: Update copyright.
1049 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
1050 * gdbarch.h, gdbarch.c: Re-generate.
1052 * inferior.h (IN_SIGTRAMP): Delete definition.
1053 * arch-utils.c (legacy_pc_in_sigtramp): New function.
1054 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
1056 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
1057 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
1058 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
1059 (find_proc_framesize): Ditto.
1060 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
1061 (alpha_init_extra_frame_info): Ditto.
1062 * infrun.c (handle_inferior_event): Ditto.
1063 (handle_inferior_event): Ditto.
1064 (check_sigtramp2): Ditto.
1065 * blockframe.c (create_new_frame): Ditto.
1066 (get_prev_frame): Ditto.
1067 * ppc-linux-tdep.c: Update comments.
1068 * i386-linux-tdep.c: Update comments.
1069 * breakpoint.c (bpstat_what): Update comment.
1071 2002-04-24 Michal Ludvig <mludvig@suse.cz>
1073 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
1074 (regsets_store_inferior_registers): Removed cast to int from
1076 * gdbserver/regcache.h: Added declaration of struct inferior_info.
1078 2002-04-24 David S. Miller <davem@redhat.com>
1080 * i960-tdep.c (register_in_window_p): New function.
1081 (i960_find_saved_register): Use it instead of
1082 REGISTER_IN_WINDOW_P.
1083 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
1085 * symtab.h (find_stab_function_addr): Kill extern.
1086 * minsyms.c (find_stab_function_addr): Remove from here...
1087 * dbxread.c: ... to here, and mark it static.
1089 2002-04-20 David S. Miller <davem@redhat.com>
1091 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
1092 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
1094 2002-04-21 David S. Miller <davem@redhat.com>
1096 * remote-vxsparc.c (vx_read_register): Fix typo, we want
1097 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
1098 (vx_write_register): Likewise.
1100 2002-04-23 J. Brobecker <brobecker@gnat.com>
1102 * source.c (is_regular_file): New function.
1103 (openp): Check wether file to open is a regular file
1104 to avoid opening directories.
1106 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1108 * findvar.c (extract_signed_integer): Cast printf argument
1109 to suppress format warning.
1110 (extract_unsigned_integer): Likewise.
1111 * infcmd.c (registers_info): Likewise.
1112 * top.c (get_prompt_1): Likewise.
1113 * valops.c (value_assign): Likewise.
1114 * valprint.c (print_decimal): Likewise.
1116 2002-04-22 H.J. Lu (hjl@gnu.org)
1118 * c-exp.y (typebase): Support
1120 [long|long long|short] [signed|unsigned] [int|]
1124 signed [long|long long|short] int
1126 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1128 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
1130 * vax-tdep.h: New file.
1131 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
1132 Make several routines static.
1133 (vax_get_saved_register): New function.
1134 (vax_gdbarch_init): New function.
1135 (_initialize_vax_tdep): Register vax_gdbarch_init.
1136 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
1137 Remove macros now under the control of gdbarch.
1139 2002-04-22 Michael Snyder <msnyder@redhat.com>
1141 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
1142 Some whitespace and coding standards tweaks.
1144 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1146 * vax-tdep.c: Include regcache.h.
1147 (vax_call_dummy_words): New.
1148 (sizeof_vax_call_dummy_words): New.
1149 (vax_fix_call_dummy): New function.
1150 (vax_saved_pc_after_call): Ditto.
1151 * config/vax/tm-vax.h: Don't include regcache.h.
1152 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
1153 (CALL_DUMMY): Remove.
1154 (CALL_DUMMY_WORDS): Define.
1155 (SIZEOF_CALL_DUMMY_WORDS): Define.
1156 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
1158 2002-04-18 Michael Snyder <msnyder@redhat.com>
1160 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
1162 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1164 * vax-tdep.c (vax_frame_chain): New function.
1165 (vax_push_dummy_frame): Ditto.
1166 (vax_pop_frame): Ditto.
1167 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
1168 (FRAMELESS_FUNCTION_INVOCATION): Use
1169 generic_frameless_function_invocation_not.
1170 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
1171 (POP_FRAME): Use vax_pop_frame.
1173 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1175 * vax-tdep.c (vax_store_struct_return): New function.
1176 (vax_extract_return_value): Ditto.
1177 (vax_store_return_value): Ditto.
1178 (vax_extract_struct_value_address): Ditto.
1179 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
1180 vax_store_struct_return.
1181 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
1182 (STORE_RETURN_VALUE): Use vax_store_return_value.
1183 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
1185 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1187 * vax-tdep.c (vax_frame_saved_pc): New function.
1188 (vax_frame_args_address_correct): Ditto.
1189 (vax_frame_args_address): Ditto.
1190 (vax_frame_locals_address): Ditto.
1191 (vax_frame_num_args): Move code to be in proximity to
1192 other frame-related functions.
1193 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
1194 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
1195 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
1196 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
1197 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
1199 2002-04-22 H.J. Lu (hjl@gnu.org)
1201 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
1204 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1206 * vax-tdep.c (vax_frame_init_saved_regs): New function.
1207 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
1208 (FRAME_INIT_SAVED_REGS): New macro.
1210 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1212 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
1214 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1216 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
1218 (fetch_osf_core_registers): Likewise.
1219 (supply_gregset): Likewise.
1221 2002-04-22 J. Brobecker <brobecker@gnat.com>
1223 * symfile.h (get_section_index): Define.
1224 * symfile.c (get_section_index): New function.
1225 * mdebugread.c (SC_IS_SBSS): New macro.
1226 (SC_IS_BSS): Return true for the scBss storage class only, as
1227 the scSBss storage class refers to the .sbss section.
1228 (parse_partial_symbols): Discard the symbols which associated
1229 section does not exist.
1230 Make sure to use the .sbss section index for symbols which
1231 storage class is scBss, rather than using the .bss section index.
1233 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1235 * vax-tdep.c: Update copyright years.
1236 (vax_register_name): New function.
1237 (vax_register_byte): Ditto.
1238 (vax_register_raw_size): Ditto.
1239 (vax_register_virtual_size): Ditto.
1240 (vax_register_virtual_type): Ditto.
1241 * config/vax/tm-vax.h: Update copyright years.
1242 (REGISTER_NAMES): Remove.
1243 (REGISTER_NAME): Define.
1244 (REGISTER_BYTE): Use vax_register_byte.
1245 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
1246 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
1247 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
1249 2002-04-21 Andrew Cagney <ac131313@redhat.com>
1251 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
1253 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
1255 2002-04-21 David S. Miller <davem@redhat.com>
1257 * arch-utils.c (generic_prologue_frameless_p): Kill
1258 SKIP_PROLOGUE_FRAMELESS_P code.
1259 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
1261 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
1262 * arc-tdep.c (arc_prologue_frameless_p): Implement.
1263 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
1265 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
1266 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
1267 (sparc_gdbarch_init): Pass it to
1268 set_gdbarch_prologue_frameless_p.
1270 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1272 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
1273 (alphabsd-nat.o): New dependency list.
1275 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1277 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
1279 (alpha-linux-tdep.o): New dependency list.
1280 (alphafbsd-tdep.o): Likewise.
1282 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1284 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
1286 * alpha-tdep.c: ...from here.
1287 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
1289 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1291 * config/alpha/tm-alpha.h: Move alpha_software_single_step
1292 prototype from here...
1293 * alpha-tdep.h: ...to here.
1295 2002-04-21 Andrew Cagney <ac131313@redhat.com>
1297 * frame.h (selected_frame_level): Document as deprecated.
1298 (frame_relative_level): Declare.
1299 * stack.c (frame_relative_level): New function.
1300 (selected_frame_level): Document as deprecated.
1301 (select_frame): Do not set the selected_frame_level.
1303 * stack.c (frame_info, record_selected_frame): Update.
1304 (frame_command, current_frame_command): Update.
1305 (up_silently_base, up_command, down_silently_base): Update.
1306 (down_command): Update.
1307 * inflow.c (kill_command): Update.
1308 * tracepoint.c (finish_tfind_command): Update.
1309 * corelow.c (core_open): Update.
1310 * thread.c (info_threads_command): Update.
1311 (do_captured_thread_select): Update.
1312 * infcmd.c (finish_command): Update.
1313 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
1315 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1317 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
1319 2002-04-21 Andrew Cagney <ac131313@redhat.com>
1321 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
1324 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1326 * alphafbsd-tdep.c: Update copyright years. Include
1328 (alphafbsd_use_struct_convention): Make static.
1329 (alphafbsd_init_abi): New function.
1330 (_initialize_alphafbsd_tdep): New function.
1331 * config/alpha/tm-fbsd.h: Update copyright years.
1332 (USE_STRUCT_CONVENTION): Remove.
1334 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1336 * alpha-tdep.c (alpha_abi_handler): New structure to describe
1337 an Alpha ABI variant.
1338 (alpha_abi_handler_list): Declare.
1339 (alpha_gdbarch_register_os_abi): New function.
1340 (alpha_gdbarch_init): Give registered ABI variant handlers a
1341 chance to tweak the gdbarch once we have set up defaults.
1342 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
1344 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1346 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
1347 to standard_coerce_float_to_double.
1348 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
1350 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1352 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
1353 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
1354 from gdbarch_tdep rather than a constant.
1355 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
1356 the default text address for all Alpha Unix ABIs.
1357 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
1358 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
1360 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1362 * alpha-tdep.h: New file. Includes several Alpha target constants
1364 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
1365 let gdbarch deal with.
1366 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
1367 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
1369 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
1370 Alpha target register names.
1371 * alphabsd-nat.c: Likewise.
1372 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
1373 Alpha target register names. Make serveral routines static.
1374 (alpha_get_saved_register): New function.
1375 (alpha_abi_names): New.
1376 (process_note_abi_tag_sections): New function.
1377 (get_elfosabi): New function.
1378 (alpha_gdbarch_init): New function.
1379 (alpha_dump_tdep): New function.
1380 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
1382 2002-04-21 Andrew Cagney <ac131313@redhat.com>
1384 * frame.c (find_saved_register): Delete #ifdef
1385 HAVE_REGISTER_WINDOWS code.
1386 * config/sparc/tm-sparc.h: Update comments.
1387 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
1389 2002-04-21 Andrew Cagney <ac131313@redhat.com>
1391 * i960-tdep.c (i960_find_saved_register): New function.
1392 (i960_get_saved_register): New function.
1393 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
1394 (i960_get_saved_register): Declare.
1395 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
1397 2002-04-20 David S. Miller <davem@redhat.com>
1399 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
1401 2002-04-20 Andrew Cagney <ac131313@redhat.com>
1403 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
1404 instead of NUM_PSEUDO_REGS.
1406 2002-04-20 David S. Miller <davem@redhat.com>
1408 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
1409 GDB_MULTI_ARCH_PARTIAL
1410 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
1411 define, let tm-sp64.h do it.
1413 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
1415 * frame.c (find_saved_register): Avoid a NULL pointer
1416 dereference and actually walk the frame list.
1418 2002-04-20 Andrew Cagney <ac131313@redhat.com>
1420 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
1421 sorted in most most-recent-used order. Document.
1422 * gdbarch.h, gdbarch.c: Regenerate.
1424 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
1426 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
1427 (add_inferior): Call create_register_cache.
1428 (clear_inferiors): Call free_register_cache.
1429 (inferior_regcache_data, set_inferior_regcache_data): New functions.
1430 * gdbserver/regcache.c (struct inferior_regcache_data): New.
1431 (registers): Remove.
1432 (get_regcache): New function.
1433 (create_register_cache, free_register_cache): New functions.
1434 (set_register_cache): Don't initialize the register cache here.
1435 (registers_to_string, registers_from_string, register_data): Call
1437 * gdbserver/regcache.h: Add prototypes.
1438 * gdbserver/server.h: Likewise.
1440 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
1442 * gdbserver/mem-break.c: New file.
1443 * gdbserver/mem-break.h: New file.
1444 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
1446 * gdbserver/inferiors.c (struct inferior_info): Add target_data
1448 (clear_inferiors): Free target_data member if set.
1449 (inferior_target_data, set_inferior_target_data): New functions.
1450 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
1451 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
1452 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
1453 (struct inferior_linux_data): New.
1454 (linux_create_inferior): Use set_inferior_target_data.
1455 (linux_attach): Likewise. Call add_inferior.
1456 (linux_wait_for_one_inferior): New function.
1457 (linux_wait): Call it.
1458 (linux_write_memory): Add const.
1459 (initialize_low): Call set_breakpoint_data.
1460 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
1462 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
1464 * gdbserver/server.h: Include mem-break.h. Update inferior.c
1466 * gdbserver/target.c (read_inferior_memory)
1467 (write_inferior_memory): New functions.
1468 * gdbserver/target.h (read_inferior_memory)
1469 (write_inferior_memory): Change macros to prototypes.
1470 (struct target_ops): Update comments. Add const to write_memory
1473 2002-04-19 Andrew Cagney <ac131313@redhat.com>
1475 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
1477 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
1478 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
1479 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
1482 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
1485 * gdbtypes.c (init_simd_type): Rewrite using new functions.
1486 (build_builtin_type_vec128): Ditto.
1487 (append_composite_type_field): Fix calculation of type length in
1490 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
1492 * config/djgpp/README: Update.
1494 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
1497 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
1499 * alpha-tdep.c (setup_arbitrary_frame): Rename...
1500 (alpha_setup_arbitrary_frame): ...to this.
1501 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
1502 for alpha_setup_arbitrary_frame.
1504 2002-04-18 Andrew Cagney <cagney@redhat.com>
1506 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
1507 * gdbarch.h, gdbarch.c: Regenerate.
1509 * defs.h (breakpoint_from_pc_fn): Delete type definition.
1510 * target.h (memory_breakpoint_from_pc): Update declaration.
1511 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
1513 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
1514 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
1515 * mem-break.c (memory_breakpoint_from_pc): Ditto.
1516 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
1517 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
1518 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
1519 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
1520 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
1521 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
1522 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
1523 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
1524 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
1526 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
1528 * monitor.c (monitor_insert_breakpoint): Ditto.
1529 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
1531 * config/mcore/tm-mcore.h: Update copyright.
1532 * mem-break.c: Ditto.
1533 * xstormy16-tdep.c: Ditto.
1535 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
1537 * p-exp.y: Add precedence rule for '^' token.
1538 This removes the shift/reduce conflicts.
1539 Remove the comment concerning these shift/reduce conflicts.
1541 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
1543 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
1544 (registers_powerpc_nofp): New register set for processors
1545 without floating point unit.
1547 2002-04-18 David S. Miller <davem@redhat.com>
1549 * MAINTAINERS: Add myself to write-after-approval.
1551 2002-04-17 Michael Snyder <msnyder@redhat.com>
1553 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
1555 2002-04-17 Andrew Cagney <ac131313@redhat.com>
1557 * rs6000-tdep.c (frame_initial_stack_address): Use
1558 frame_register_read to read the alloca_reg.
1560 2002-04-17 Andrew Cagney <ac131313@redhat.com>
1562 * frame.c (find_saved_register): Find saved registers in the next
1566 2002-04-17 Andrew Cagney <ac131313@redhat.com>
1568 * gdbarch.sh (LANG): Set to ``c''.
1570 2002-04-15 Andrew Cagney <ac131313@redhat.com>
1572 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
1574 2002-04-15 Andrew Cagney <ac131313@redhat.com>
1576 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
1579 * hpread.c (hpread_get_lntt): Add declaration.
1580 Also fix PR gdb/391.
1582 2002-04-14 Andrew Cagney <ac131313@redhat.com>
1584 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
1585 * aclocal.m4, configure: Re-generate.
1588 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
1590 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
1591 instead of tm_print_insn.
1593 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
1595 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
1597 2002-04-14 Andrew Cagney <ac131313@redhat.com>
1599 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
1600 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
1601 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
1603 2002-04-12 Don Howard <dhoward@redhat.com>
1605 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
1606 max_user_call_depth.
1607 (init_cmd_lists): Initialize the new value;
1608 * cli/cli-script.c (execute_user_command): Limit the call depth of
1609 user defined commands. This avoids a core-dump when user commands
1610 are infinitly recursive.
1612 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1614 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
1615 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
1616 from tdep struct instead of DEFAULT_LR_SAVE.
1617 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
1618 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
1619 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
1621 2002-04-12 Michael Snyder <msnyder@redhat.com>
1623 * Remote.c: Spelling fix.
1624 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
1625 If no symbol found for "sbrk", try "_sbrk".
1626 (make_output_phdrs): Use bfd_section_name.
1627 (gcore_copy_callback): Use bfd_section_name.
1628 * eval.c: Indentation fix-ups.
1629 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
1630 in case it gets applied to an address that is already
1631 in the instruction space.
1632 * cli/cli-decode.c (help_list): Allow long lines to wrap.
1633 * symfile.c: Fix indentation, long lines.
1634 * source.c: White space fix-up.
1636 2002-04-12 Andrew Cagney <cagney@redhat.com>
1638 * defs.h (read_relative_register_raw_bytes): Delete declaration.
1639 * frame.c (frame_register_read): New function. Return non-zero on
1641 (read_relative_register_raw_bytes_for_frame): Delete.
1642 (read_relative_register_raw_bytes): Delete.
1643 * frame.h (frame_register_read): Declare.
1644 * d30v-tdep.c: Update Copyright. Use frame_register_read.
1646 * infcmd.c (do_registers_info): Ditto.
1647 * hppa-tdep.c: Ditto.
1648 * rs6000-tdep.c: Ditto.
1649 * h8500-tdep.c: Ditto.
1650 * mips-tdep.c: Ditto.
1651 * h8300-tdep.c: Ditto.
1652 * z8k-tdep.c: Ditto.
1654 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1656 From Jimi X <jimix@watson.ibm.com>:
1657 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
1660 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1662 From Jimi X <jimix@watson.ibm.com>:
1663 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
1666 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1668 From Jimi X <jimix@watson.ibm.com>:
1669 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
1670 register sets for these processor variants.
1672 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
1674 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
1675 registers which are allowed to fail to store.
1676 * gdbserver/linux-low.h (linux_target_ops): Likewise.
1677 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
1678 (ppc_cannot_store_register): FPSCR may not be storable.
1679 * regformats/reg-ppc.dat: Support FPSCR.
1681 2002-04-11 Kevin Buettner <kevinb@redhat.com>
1683 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
1684 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
1685 Add fpscr as an invalid/unfetchable register.
1686 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
1687 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
1688 (fill_fpregset): Add support for register fpscr.
1689 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
1690 (fill_gregset): Account for the fact that register ``mq'' might
1692 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
1693 (registers_power): Add fpscr to register set at slot 71.
1694 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
1695 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
1697 2002-04-11 Michael Snyder <msnyder@redhat.com>
1699 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
1700 * configure: Regenerate.
1701 * config.in: Regenerate.
1702 * acconfig.h: Add define for _SYSCALL32.
1703 * core-sol2.c: Remove #define _SYSCALL32.
1704 * solib-legacy.c: Remove #define _SYSCALL32.
1706 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1708 * stack.c (select_frame): Cleanup internal error message, do not
1711 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1713 * stack.c (select_frame): Check that selected_frame and the
1714 specified level are as expected.
1715 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
1717 * frame.h (struct frame_info): Add field `level'. Update
1719 Work-in-progress PR gdb/464.
1721 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1723 * maint.c (maint_print_section_info): Rename print_section_info.
1724 (print_bfd_section_info, print_objfile_section_info): Update.
1725 * inferior.h (struct gdbarch): Add opaque declaration.
1726 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
1727 * gdbarch.h: Regenerate.
1729 2002-04-10 Michal Ludvig <mludvig@suse.cz>
1731 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
1732 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
1733 (kernel_u_size): Added.
1734 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
1735 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
1737 2002-04-04 Jim Ingham <jingham@apple.com>
1739 * valarith.c (find_size_for_pointer_math): New function, either returns
1740 the size for a pointer's target, returns 1 for void *, or errors for
1742 (value_add, value_sub): use find_size_for_pointer_math.
1744 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1746 * linux-low.c (linux_look_up_symbols): New hook.
1747 (linux_target_ops): Add linux_look_up_symbols.
1748 * remote-utils.c (decode_address): New function.
1749 (look_up_one_symbol): New function.
1750 * server.c (handle_query): Call target look_up_symbols hook.
1751 * server.h (look_up_one_symbol): Add prototype.
1752 * target.h (struct target_ops): Add look_up_symbols hook.
1754 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1756 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
1757 * ChangeLog: Correct paths in last ChangeLog entry.
1759 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1761 * gdbserver/linux-low.h: Remove obsolete prototypes.
1762 (struct linux_target_ops): New.
1763 (extern the_low_target): New.
1764 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
1765 (register_addr): Use the_low_target explicitly.
1766 (fetch_register): Likewise.
1767 (usr_fetch_inferior_registers): Likewise.
1768 (usr_store_inferior_registers): Likewise.
1769 * gdbserver/linux-arm-low.c (num_regs): Remove.
1770 (arm_num_regs): Define.
1771 (arm_regmap): Renamed from regmap, made static.
1772 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
1774 (arm_cannot_store_register): Renamed from cannot_store_register,
1776 (the_low_target): New.
1777 * gdbserver/linux-i386-low.c (num_regs): Remove.
1778 (i386_num_regs): Define.
1779 (i386_regmap): Renamed from regmap, made static.
1780 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
1782 (i386_cannot_store_register): Renamed from cannot_store_register,
1784 (the_low_target): New.
1785 * gdbserver/linux-ia64-low.c (num_regs): Remove.
1786 (ia64_num_regs): Define.
1787 (ia64_regmap): Renamed from regmap, made static.
1788 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
1790 (ia64_cannot_store_register): Renamed from cannot_store_register,
1792 (the_low_target): New.
1793 * gdbserver/linux-m68k-low.c (num_regs): Remove.
1794 (m68k_num_regs): Define.
1795 (m68k_regmap): Renamed from regmap, made static.
1796 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
1798 (m68k_cannot_store_register): Renamed from cannot_store_register,
1800 (the_low_target): New.
1801 * gdbserver/linux-mips-low.c (num_regs): Remove.
1802 (mips_num_regs): Define.
1803 (mips_regmap): Renamed from regmap, made static.
1804 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
1806 (mips_cannot_store_register): Renamed from cannot_store_register,
1808 (the_low_target): New.
1809 * gdbserver/linux-ppc-low.c (num_regs): Remove.
1810 (ppc_num_regs): Define.
1811 (ppc_regmap): Renamed from regmap, made static.
1812 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
1814 (ppc_cannot_store_register): Renamed from cannot_store_register,
1816 (the_low_target): New.
1817 * gdbserver/linux-s390-low.c (num_regs): Remove.
1818 (s390_num_regs): Define.
1819 (s390_regmap): Renamed from regmap, made static.
1820 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
1822 (s390_cannot_store_register): Renamed from cannot_store_register,
1824 (the_low_target): New.
1825 * gdbserver/linux-sh-low.c (num_regs): Remove.
1826 (sh_num_regs): Define.
1827 (sh_regmap): Renamed from regmap, made static.
1828 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
1830 (sh_cannot_store_register): Renamed from cannot_store_register,
1832 (the_low_target): New.
1833 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
1834 (the_low_target): New.
1836 2002-04-09 Andrew Cagney <ac131313@redhat.com>
1838 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
1839 override FP_REGNUM with frame->fp. Update copyright.
1840 * parse.c (num_std_regs, std_regs): Delete.
1841 (target_map_name_to_register): Do not search std_regs. Update
1842 function description.
1843 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
1844 declarations. Update copyright.
1847 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1849 * gdbserver/Makefile.in: Add stamp-h target.
1850 * gdbserver/configure.in: Create stamp-h.
1851 * gdbserver/configure: Regenerated.
1853 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1855 * gdbserver/inferiors.c: New file.
1856 * gdbserver/target.c: New file.
1857 * gdbserver/target.h: New file.
1858 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
1860 * gdbserver/linux-low.c (inferior_pid): New static variable,
1861 moved from server.c.
1862 (linux_create_inferior): Renamed from create_inferior.
1863 Call add_inferior. Return 0 on success instead of a PID.
1864 (linux_attach): Renamed from myattach.
1865 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
1866 (linux_thread_alive): Renamed from mythread_alive.
1867 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1869 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1870 (regsets_store_inferior_registers): Correct error message.
1871 Add missing ``return 0''.
1872 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1873 (linux_store_registers): Renamed from store_inferior_registers.
1874 (linux_read_memory): Renamed from read_inferior_memory.
1875 (linux_write_memory): Renamed from write_inferior_memory.
1876 (linux_target_ops): New structure.
1877 (initialize_low): Call set_target_ops ().
1878 * gdbserver/remote-utils.c (unhexify): New function.
1879 (hexify): New function.
1880 (input_interrupt): Send signals to ``signal_pid''.
1881 * gdbserver/server.c (inferior_pid): Remove.
1882 (start_inferior): Update create_inferior call.
1883 (attach_inferior): Call add_inferior.
1884 (handle_query): New function.
1885 (main): Call handle_query for `q' packets.
1886 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
1887 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1889 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1891 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
1893 * gdbserver/configure.in: Check for <string.h>
1894 * gdbserver/configure: Regenerate.
1895 * gdbserver/config.in: Regenerate.
1896 * gdbserver/gdbreplay.c: Include needed system headers.
1897 (remote_open): Remove strchr prototype.
1898 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1899 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
1900 (supply_register_by_name): Likewise.
1901 (collect_register): Change buf argument to void *.
1902 (collect_register_by_name): Likewise.
1903 * gdbserver/regcache.h: Add missing prototypes.
1904 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1905 * gdbserver/server.c (handle_query): New function.
1906 (attached): New static variable, moved out of main.
1907 (main): Quiet longjmp clobber warnings.
1908 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1909 * gdbserver/utils.c (error): Remove NORETURN.
1912 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1914 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
1915 after the last symbol in a block.
1917 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
1919 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
1920 is non zero as a found symbol.
1922 2002-04-08 Andrew Cagney <ac131313@redhat.com>
1924 * findvar.c: Include "builtin-regs.h".
1925 (value_of_register): Call value_of_builtin_reg when applicable.
1926 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
1927 (target_map_name_to_register): Call
1928 builtin_reg_map_name_to_regnum.
1929 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
1930 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
1931 (builtin_regs_h): Define.
1932 (builtin-regs.o): New target.
1933 (findvar.o): Add $(builtin_regs_h).
1934 * builtin-regs.c, builtin-regs.h: New files.
1935 * std-regs.c: New file.
1936 Partial fix for PR gdb/251.
1938 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1940 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
1941 it's no longer required.
1943 2002-04-08 Andrew Cagney <ac131313@redhat.com>
1945 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
1947 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1949 From Jimi X <jimix@watson.ibm.com>:
1950 * rs6000-tdep.c (rs6000_software_single_step): Use
1951 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
1952 and size. Use target_insert_breakpoint() and
1953 target_remove_breakpoint() to insert and remove breakpoints
1954 instead of explicit memory reads and writes.
1956 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1958 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
1959 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
1960 ELF_OBJECT_FORMAT ifdef.
1962 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1964 From Jimi X <jimix@watson.ibm.com>:
1965 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
1967 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1969 From Jimi X <jimix@watson.ibm.com>:
1970 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
1971 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
1973 2002-04-07 Mark Kettenis <kettenis@gnu.org>
1975 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
1976 s/asprintf/xasprintf/.
1977 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
1979 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1981 I believe Jeff Law denies responsability for this one:
1982 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
1983 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
1984 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
1985 Work-around for PR gdb/366.
1987 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
1989 * remote-e7000.c (write_small, e7000_read_inferior_memory,
1990 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
1991 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
1993 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
1995 * sh-tdep.c (sh_fp_frame_init_saved_regs,
1996 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
1999 2002-04-07 Andrew Cagney <ac131313@redhat.com>
2001 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
2004 2002-04-07 Andrew Cagney <ac131313@redhat.com>
2006 * README (Reporting Bugs in GDB): Document the bug web page as the
2007 prefered way of submitting bugs.
2010 2002-04-06 Andrew Cagney <ac131313@redhat.com>
2012 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
2014 * gdbarch.h, gdbarch.c: Re-generate.
2016 2002-04-07 Andreas Schwab <schwab@suse.de>
2018 * m68klinux-nat.c (fill_fpregset): Properly pass address of
2019 buffer to regcache_collect.
2021 2002-04-06 Andrew Cagney <ac131313@redhat.com>
2023 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
2024 * gdbarch.c, gdbarch.h: Re-generate.
2026 2002-04-06 Andrew Cagney <ac131313@redhat.com>
2028 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
2029 declaration. Fix -Werror.
2031 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
2033 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
2034 * gdbarch.c: Regenerate.
2036 2002-04-05 Michael Snyder <msnyder@redhat.com>
2038 * breakpoint.c (clear_command): Rewrite middle section to
2039 combine two loops with identical control conditions.
2040 Add a cleanup to eliminate a memory leak.
2041 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
2043 2002-04-05 H.J. Lu (hjl@gnu.org)
2045 * solib-svr4.c (bkpt_names): Add "__start".
2047 2002-04-04 Andrew Cagney <ac131313@redhat.com>
2049 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
2050 as test for 64 bit target.
2052 2002-04-05 Andrew Cagney <ac131313@redhat.com>
2054 * h8500-tdep.c (h8500_write_fp): Delete function.
2055 * dwarf2cfi.c (cfi_write_fp): Document as not used.
2056 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
2057 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
2058 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
2059 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
2060 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
2062 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
2063 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
2064 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
2065 (d10v_write_fp): Delete function.
2066 * inferior.h (write_fp, generic_target_write_fp): Delete
2068 * regcache.c (generic_target_write_fp): Delete function.
2069 (write_fp): Delete function.
2070 * gdbarch.sh (TARGET_WRITE_FP): Delete.
2071 * gdbarch.h, gdbarch.c: Regenerate.
2072 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
2073 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
2074 (sparc64_write_fp): Delete declaration.
2075 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
2076 (h8500_write_fp): Delete declaration.
2078 2002-04-04 Andrew Cagney <ac131313@redhat.com>
2080 * sparc-tdep.c (sparc64_write_fp): Delete.
2081 (sparc_push_dummy_frame): Replace write_fp call with code to store
2083 (sparc_gdbarch_init): Do not initialize write_fp.
2085 2002-04-05 Kevin Buettner <kevinb@redhat.com>
2087 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
2090 2002-03-29 Jim Blandy <jimb@redhat.com>
2092 * stack.c (get_selected_block): Add new argument `addr_in_block',
2093 used to return the exact code address we used to select the block,
2095 * blockframe.c (get_frame_block, get_current_block): Same.
2096 * frame.h (get_frame_block, get_current_block,
2097 get_selected_block): Update declarations.
2098 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
2099 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
2101 2002-04-05 Michael Snyder <msnyder@redhat.com>
2103 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
2106 2002-04-05 J. Brobecker <brobecker@gnat.com>
2108 * utils.c (xfullpath): New function.
2109 * defs.h (xfullpath): Add declaration.
2110 * source.c (openp): Use xfullpath in place of gdb_realpath to
2111 avoid resolving the basename part of filenames when the
2112 associated file is a symbolic link. This fixes a potential
2113 inconsistency between the filenames known to GDB and the
2114 filenames it prints in the annotations.
2115 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
2116 to be able to match a filename with either the real filename, or
2117 the name of any symbolic link to this file.
2118 (lookup_partial_symtab): Ditto.
2120 2002-04-04 Michael Snyder <msnyder@redhat.com>
2122 * breakpoint.c: Add support for hardware breakpoints in overlays.
2123 (overlay_events_enabled): New state variable.
2124 (insert_breakpoints): Use overlay_events_enabled to decide
2125 whether to attempt to set a breakpoint at the overlay load addr.
2126 Handle bp_hardware_breakpoint as well as bp_breakpoint.
2127 (remove_breakpoint): Use overlay_events_enabled to decide
2128 whether breakpoints need to be removed from overlay load addr.
2129 Handle bp_hardware_breakpoint as well as bp_breakpoint.
2130 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
2131 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
2132 disable_overlay_breakpoints): Update overlay_events_enabled.
2134 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
2136 * dwarf2read.c (struct function_range): New.
2137 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
2138 (check_cu_functions): New.
2139 (read_file_scope): Initialize global function lists.
2140 Call dwarf_decode_line after processing children.
2141 (read_func_scope): Add to global function list.
2142 (dwarf_decode_lines): Call check_cu_functions everywhere
2143 record_line is called. Call record_line with a linenumber
2144 of 0 to mark sequence ends.
2146 2002-04-04 Michal Ludvig <mludvig@suse.cz>
2148 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
2149 change sync with glibc.
2151 2002-04-03 Jim Blandy <jimb@redhat.com>
2153 * configure.in: Call AC_C_INLINE.
2154 * configure: Regenerated.
2156 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
2158 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
2159 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
2161 2002-03-31 Mark Kettenis <kettenis@gnu.org>
2163 * NEWS: Mention gcore support on FreeBSD/i386.
2165 * fbsd-proc.c: New file.
2166 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
2167 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
2169 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
2172 2002-03-29 Jim Blandy <jimb@redhat.com>
2174 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
2175 unescaped newlines in string literals, but newer ones don't. So
2178 2002-03-26 Michael Snyder <msnyder@redhat.com>
2179 Andrew Cagney <cagney@redhat.com>
2181 * cli/cli-dump.c: New file. Dump memory to file,
2182 restore file to memory.
2183 * cli/cli-dump.h: New file.
2184 * Makefile.in: Add rules, dependencies for cli-dump.o.
2185 * NEWS: Mention new commands.
2187 2002-03-28 Michael Snyder <msnyder@redhat.com>
2189 * symfile.c (symbol_file_add): Move test for null symbols to later.
2191 2002-03-27 Andrew Cagney <ac131313@redhat.com>
2193 From veksler at il.ibm.com:
2194 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
2195 the xstrduped original path.
2198 2002-03-27 Michael Snyder <msnyder@redhat.com>
2200 * breakpoint.c (_initialize_breakpoint): Clean up help string.
2201 * infcmd.c (_initialize_infcmd): Ditto.
2202 * language.c (_initialize_language): Ditto.
2203 * symfile.c (_initialize_symfile): Ditto.
2204 * top.c (_init_main): Ditto.
2205 * cli/cli-cmds.c (init_cli_cmds): Ditto.
2207 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
2209 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
2210 vector registers handling.
2211 (skip_prologue): Handle new AltiVec instructions. Fill in new
2212 fields of frame data.
2213 (frame_get_saved_regs): Fill in information for AltiVec registers.
2215 2002-03-27 Jim Blandy <jimb@redhat.com>
2217 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
2218 a function; leave this macro here to invoke that function.
2219 (symbol_init_mangled_name): Declaration for that function.
2220 * symtab.c (symbol_init_mangled_name): New function.
2222 2002-03-27 Andrew Cagney <ac131313@redhat.com>
2224 * valarith.c: Replace strerror with safe_strerror.
2225 * tracepoint.c: Ditto.
2227 * go32-nat.c: Ditto.
2231 2002-03-27 Andreas Schwab <schwab@suse.de>
2233 * event-top.c (command_line_handler): Remove useless if.
2235 2002-03-27 Andreas Jaeger <aj@suse.de>
2237 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
2240 2002-03-27 Michal Ludvig <mludvig@suse.cz>
2242 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
2243 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
2244 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
2245 (x86_64_linux_dr_get_status, supply_gregset),
2246 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
2247 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
2248 (x86_64_register_info_table): Add.
2249 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
2250 (x86_64_register_raw_size, x86_64_register_virtual_type),
2251 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
2252 general x86_64_register_info_table.
2253 (i386_gdbarch_init): gdbarch_register_bytes is now set
2254 dynamicaly during initialization.
2255 * regformats/reg-x86-64.dat: Synced with changes to registers above.
2256 * gdbserver/linux-x86-64-low.c: Ditto.
2258 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
2260 * gdbserver/server.c (main): Call target_signal_to_host_p
2261 and target_signal_to_host on signals received from the remote.
2262 * gdbserver/remote-utils.c (prepare_resume_reply): Call
2263 target_signal_from_host on signals sent to the remote.
2264 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
2265 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
2267 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
2269 * signals/signals.c: Include "server.h" in gdbserver build.
2270 (target_signal_from_name): Don't use STREQ.
2271 (_initialize_signals): Likewise. Don't include function in
2274 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
2276 * signals.c: Moved to...
2277 * signals/signals.c: Here.
2278 * Makefile (signals.o): Update.
2280 2002-03-26 Jeff Law (law@redhat.com)
2282 * somread.c (som_symtab_read): Remove some commented out code and
2283 updated related comments. Do not set the minimal symbol table to
2284 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
2285 in a dynamic executable.
2286 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
2287 where we are unable to find the minimal symbol for the given
2290 2002-03-25 Jeff Law (law@redhat.com)
2292 * linux-proc.c (read_mapping): Scan up to end of line for filename.
2294 2002-03-25 Michal Ludvig <mludvig@suse.cz>
2296 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
2298 2002-03-23 Andrew Cagney <ac131313@redhat.com>
2300 * command.h: Update copyright.
2301 (struct cmd_list_element): Replace definition with opaque
2303 (enum cmd_types): Document that it will eventually be moved to
2305 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
2306 (MALLOCED_REPLACEMENT): Delete macro.
2307 * Makefile.in (cli_decode_h): Add $(command_h).
2308 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
2309 * top.c: Include "cli/cli-decode.h".
2310 * completer.c: Include "cli/cli-decode.h".
2311 * maint.c: Include "cli/cli-decode.h".
2312 * cli/cli-decode.h: Include "command.h".
2313 (enum command_class): Delete.
2314 (enum cmd_types): Comment out.
2315 (enum cmd_auto_boolean): Delete.
2316 (enum var_types): Delete.
2318 2002-03-23 Andrew Cagney <ac131313@redhat.com>
2320 * cli/cli-decode.c: Include "gdb_assert.h".
2321 (add_set_or_show_cmd): New static function.
2322 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
2323 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
2324 all fields, such as func, from the set command.
2326 2002-03-23 Andrew Cagney <ac131313@redhat.com>
2328 * MAINTAINERS (sh-elf): Change warning flag to -w.
2330 2002-03-23 Andrew Cagney <cagney@redhat.com>
2332 * defs.h (error): Add printf format attribute.
2333 * thread-db.c (thread_from_lwp): Fix error format string.
2334 * stack.c (parse_frame_specification): Ditto.
2335 * cli/cli-decode.c (undef_cmd_error): Ditto.
2336 * scm-lang.c (scm_lookup_name): Ditto.
2337 * tracepoint.c (trace_error): Ditto.
2338 * remote-utils.c (usage): Ditto.
2339 * remote.c (compare_sections_command): Ditto.
2342 2002-03-22 Andrew Cagney <ac131313@redhat.com>
2344 * gdbtypes.c (append_composite_type_field): New function.
2345 (init_composite_type): New function.
2346 * gdbtypes.h (append_composite_type_field): Declare.
2347 (init_composite_type): Ditto.
2349 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
2351 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
2353 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
2354 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
2355 structure returning convention for SYSV ABI case, but not
2356 for GNU/Linux, FreeBSD, or NetBSD.
2358 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
2360 * symtab.h (lookup_block_symbol): Add mangled_name argument
2363 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
2364 with new mangled_name argument.
2365 * linespec.c (decode_line_1): Likewise.
2366 * valops (value_of_this): Likewise.
2367 * symtab.c (lookup_transparent_type): Likewise.
2368 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
2369 (lookup_symbol): If we are given a mangled name, pass it down
2370 to lookup_symbol_aux.
2371 (lookup_block_symbol): If we are given a mangled name to check
2372 against, only return symbols which match it.
2374 2002-03-22 Christopher Faylor <cgf@redhat.com>
2376 * win32-nat.c (child_create_inferior): Check for proper shell to use
2377 here, in case the user changes it on the fly.
2378 (_initialize_inftarg): Remove shell path considerations.
2380 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
2382 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
2383 for gdbarch_max_register_raw_size and max_register_virtual_size.
2384 Adjust copyright year.
2386 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
2388 * dbxread.c (process_one_symbol): Extend the first N_SLINE
2389 in a function to cover the entire beginning of the function
2390 as well if it does not already.
2392 2002-03-21 Tom Rix <trix@redhat.com>
2394 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
2395 (rs6000_ptrace64): Renamed from ptrace64.
2397 2002-03-20 Martin M. Hunt <hunt@redhat.com>
2399 * gdbserver/remote-utils.c (remote_open): Don't call
2400 getprotobyname, we're all using TCP here so just use
2402 * gdbserver/gdbreplay.c (remote_open): Ditto.
2404 2002-03-20 Martin M. Hunt <hunt@redhat.com>
2406 * regcache.c (_initialize_regcache): No need to call
2407 build_regcache() at this time; it gets called whenever
2408 the gdbarch changes.
2410 2002-03-20 David O'Brien <obrien@FreeBSD.org>
2412 * sparc-nat.c: Include sys/param.h where possible.
2414 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
2417 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
2418 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
2419 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
2421 * stabsread.c (rs6000_builtin_type): Likewise.
2422 (read_sun_floating_type): Likewise.
2424 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2426 * stabsread.c (read_member_functions): Remove skip code for duplicate
2427 constructor/destructor methods. Use standard parsing for these
2428 methods and just do not chain them to the list of methods after
2431 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
2433 * coffread.c: Remove redundant static declarations. Replace
2434 occurrences of `PTR' with `void *'.
2435 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
2436 * top.h (quit_cover): Likewise.
2437 * defs.h (catch_errors): Likewise.
2439 2002-03-18 Andrew Cagney <ac131313@redhat.com>
2441 * defs.h (XMALLOC): Define.
2442 * gdb-events.sh (XMALLOC): Delete macro.
2443 * gdb-events.c, gdb-events.h: Regenerate.
2444 * gdbarch.sh (XMALLOC): Delete macro.
2445 * gdbarch.c: Regenerate.
2446 * serial.c (XMALLOC): Delete macro.
2447 * ui-file.c (XMALLOC): Ditto.
2448 * ser-unix.h (XMALLOC): Ditto.
2449 * sh-tdep.c (XMALLOC): Ditto.
2450 * ui-out.c (XMALLOC): Ditto.
2451 * utils.c (XMALLOC): Ditto.
2452 * i386-tdep.c (XMALLOC): Ditto.
2453 * gdb-events.c (XMALLOC): Ditto.
2454 * d10v-tdep.c (XMALLOC): Ditto.
2455 * cli-out.c (XMALLOC): Ditto.
2457 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
2458 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
2459 * ui-file.c, ui-out.c: Ditto.
2461 2002-03-18 Andrew Cagney <ac131313@redhat.com>
2463 * command.h (struct cmd_list_element): Add field context.
2464 (set_cmd_context, get_cmd_context): Declare.
2465 * cli/cli-decode.h: Ditto.
2466 * cli/cli-decode.c (get_cmd_context): New function.
2467 (set_cmd_context): New function.
2468 (add_cmd): Initialize context.
2469 Part of fixing PR gdb/145 and PR gdb/146.
2471 2002-03-17 Andrew Cagney <ac131313@redhat.com>
2473 * cli/cli-decode.c (cmd_type): New function.
2474 * command.h (cmd_type): Declare.
2475 * infrun.c (set_schedlock_func): Call function cmd_type.
2476 * kod.c (kod_set_os): Call cmd_type.
2477 * cris-tdep.c (cris_version_update): Use function cmd_type.
2478 (cris_mode_update, cris_abi_update): Ditto.
2480 * command.h: (execute_cmd_post_hook): Declare.
2481 (execute_cmd_pre_hook): Declare.
2482 * cli/cli-script.c (clear_hook_in_cleanup): New function.
2483 (execute_cmd_post_hook, execute_cmd_pre_hook): New
2484 functions. Execute pre/post hook while ensuring that afterwords
2486 * top.c (execute_command): Use execute_cmd_post_hook, and
2487 execute_cmd_pre_hook to execute pre/post commands.
2488 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
2490 (hook_stop_stub): Call execute_cmd_pre_hook.
2492 2002-03-17 Andrew Cagney <ac131313@redhat.com>
2494 * kod.c (kod_set_os): Revert previous change. Is called by ``info
2495 set'' and this leads to a core dump. Move xstrdup of
2496 operating_system to after check that it is not NULL.
2498 2002-03-17 Andrew Cagney <ac131313@redhat.com>
2500 * kod.c (kod_set_os): Remove unnecessary check that
2501 ``command->type'' is set_cmd.
2503 * valprint.c (set_input_radix): Use input_radix.
2504 (set_output_radix): Use output_radix.
2505 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
2508 2002-03-16 Andrew Cagney <ac131313@redhat.com>
2510 * value.h (struct value): Delete field ``substring_addr''. Change
2511 aligner fields to force_doublest_align, force_longest_align,
2512 force_core_addr_align and force_pointer_aligh.
2514 * value.h (struct value): Fix typo in above change.
2516 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2518 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
2519 to fix internal_error from ``maintenance print architecture''.
2521 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2523 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
2524 for gcc versions after gcc-2.8.1.
2526 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2528 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
2529 for method resolution. Restore adjustment of ``this'' pointer after
2530 calling value_struct_elt, which was accidentally removed during the
2533 2002-03-15 Andrew Cagney <ac131313@redhat.com>
2535 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
2537 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
2539 * value.h (value_of_register): Update.
2541 2002-03-14 Richard Henderson <rth@redhat.com>
2543 * configure.in: Detect declaration for canonicalize_file_name.
2544 * utils.c (canonicalize_file_name): Declare, if needed.
2545 (gdb_realpath): Prefer realpath if available and usable.
2546 * config.in, configure: Rebuild.
2548 2002-03-14 Richard Henderson <rth@redhat.com>
2550 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
2551 a constant array bound.
2553 * MAINTAINERS: Add myself to write-after-approval.
2555 2002-03-14 Michael Snyder <msnyder@redhat.com>
2557 * symfile.c (syms_from_objfile): Return immediately if no syms.
2558 (symbol_file_add): Return immediately if no syms.
2559 (find_sym_fns): Return immediately if no syms.
2561 2002-03-13 Michal Ludvig <mludvig@suse.cz>
2563 * gdbserver/remote-util.c (remote_open): Print remote-side's
2564 IP address when remote debugging over the network.
2566 2002-03-12 David O'Brien <obrien@FreeBSD.org>
2568 * config/sparc/fbsd.mh: Fix copyright.
2569 * config/sparc/fbsd.mt: Likewise.
2571 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
2573 * MAINTAINERS: Fix typo in name of gdb warnings option.
2574 (x86-64): Fix formating so that this can be parsed by awk.
2576 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
2578 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
2579 * defs.h: Include "gdb/signals.h".
2580 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
2582 2002-03-10 Michal Ludvig <mludvig@suse.cz>
2584 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
2585 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
2588 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
2589 Don Howard <dhoward@redhat.com>
2591 * mips-tdep.c (ST0_FR): Define.
2592 (mips2_fp_compat): New function, temporarily disabled.
2593 (mips_read_fp_register_single): New function.
2594 (mips_read_fp_register_double): New function.
2595 (mips_print_register): Use them.
2596 (do_fp_register_row): Likewise.
2598 2002-03-09 Andrew Cagney <ac131313@redhat.com>
2600 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
2603 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2605 * stabsread.c (read_member_functions): Fix is_stub test for
2606 static member functions, improve comment.
2608 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
2610 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
2611 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
2612 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
2613 commands that set boolean values.
2614 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
2615 (arm_rdi_resume): Always initialize PC.
2616 (arm_rdi_open): Don't use rslt as a boolean.
2617 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
2618 (arm_rdi_fetch_registers, arm_rdi_store_registers)
2619 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
2620 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
2622 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
2624 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
2625 * configure: Rebuilt.
2627 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2629 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
2630 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
2632 2002-03-06 Andrew Cagney <ac131313@redhat.com>
2634 * cli/cli-decode.c (set_cmd_completer): New function.
2635 * command.h (set_cmd_completer): Declare.
2636 * cli/cli-decode.h (set_cmd_completer): Ditto.
2638 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
2639 * cli/cli-cmds.c (init_cli_cmds): Ditto.
2640 * win32-nat.c (_initialize_inftarg): Ditto.
2641 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2642 * proc-api.c (_initialize_proc_api): Ditto.
2643 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
2644 * source.c (_initialize_source): Ditto.
2645 * exec.c (_initialize_exec): Ditto.
2646 * solib.c (_initialize_solib): Ditto.
2647 * top.c (init_main): Ditto.
2648 * tracepoint.c (_initialize_tracepoint): Ditto.
2649 * symfile.c (_initialize_symfile): Ditto.
2650 * printcmd.c (_initialize_printcmd): Ditto.
2651 * infcmd.c (_initialize_infcmd): Ditto.
2652 * corefile.c (_initialize_core): Ditto.
2654 2002-03-05 Andrew Cagney <ac131313@redhat.com>
2656 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
2658 2002-03-05 Andrew Cagney <ac131313@redhat.com>
2660 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
2662 2002-03-05 Andrew Cagney <ac131313@redhat.com>
2664 * NEWS: Update headings, 5.2 has branched.
2666 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
2668 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
2669 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
2670 (register_addr, REGISTER_RAW_SIZE): Likewise.
2671 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
2672 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
2674 2002-03-03 Michal Ludvig <mludvig@suse.cz>
2676 * MAINTAINERS (x86-64): Add myself.
2677 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
2678 changed value_ptr -> struct value *
2680 2002-03-01 David O'Brien <obrien@FreeBSD.org>
2682 * configure.host (sparc64-*-freebsd): Add.
2683 * configure.tgt: Likewise.
2684 * config/sparc/fbsd.mh: New file.
2685 * config/sparc/fbsd.mt: Likewise.
2686 * config/sparc/nm-fbsd.h: Likewise.
2687 * config/sparc/tm-fbsd.h: Likewise.
2689 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
2691 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
2692 regformats/reg-s390x.dat.
2694 2002-03-01 Andrew Cagney <ac131313@redhat.com>
2696 * utils.c: Add FIXME explaining true/false problem.
2698 2002-02-28 Andrew Cagney <ac131313@redhat.com>
2700 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
2702 2002-02-28 Michael Chastain <mec@shout.net>
2704 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
2706 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
2708 * gdbserver/linux-s390-low.c: New file.
2709 * regformats/reg-s390.dat: New file.
2710 * regformats/reg-s390x.dat: New file.
2711 * gdbserver/configure.srv: Add S/390.
2712 * gdbserver/Makefile.in: Add S/390.
2713 * configure.tgt: Enable gdbserver for S/390.
2715 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
2717 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
2718 first line of the doc string for "info dos", except at the end of
2719 the sentence, since the short help stops at the first period.
2721 2002-02-28 Jason Merrill <jason@redhat.com>
2723 * dwarf2read.c (dwarf_cfi_name): Add new codes.
2725 2002-02-27 Fred Fish <fnf@redhat.com>
2727 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
2728 comment (dumy -> dummy).
2730 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2732 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
2734 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
2736 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
2738 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2740 * gdbserver/acconfig.h: New file.
2741 * gdbserver/i387-fp.c: New file.
2742 * gdbserver/i387-fp.h: New file.
2743 * gdbserver/linux-x86-64.c: New file.
2744 * regformats/reg-x86-64.dat: New file.
2745 * configure.tgt: Add x86_64-*-linux* gdbserver support.
2746 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
2747 * gdbserver/configure.in: Add support for regsets.
2748 * gdbserver/config.in: Regenerate.
2749 * gdbserver/configure: Regenerate.
2750 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
2751 * gdbserver/linux-low.h: New file.
2752 * gdbserver/linux-low.c: Include "linux-low.h". Add support
2754 * gdbserver/linux-arm-low.c: Include "linux-low.h".
2755 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
2756 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
2757 * gdbserver/linux-mips-low.c: Include "linux-low.h".
2758 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
2759 * gdbserver/linux-sh-low.c: Include "linux-low.h".
2760 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
2761 "i387-fp.h". Add PTRACE_GETREGS and friends.
2762 * gdbserver/regcache.c (supply_register): New function.
2763 (supply_register_by_name): New function.
2764 (collect_register): New function.
2765 (collect_register_by_name): New function.
2767 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2769 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
2770 (config.status): Add configure.srv dependency.
2771 (server_h): Add config.h dependency.
2773 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2775 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
2776 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
2777 * gdbserver/configure.srv: Change i386-*-linux* to use
2780 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2782 * x86-64-tdep.c: Re-indent. Update copyright date.
2784 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2786 From Michal Ludvig <mludvig@suse.cz>:
2787 * x86-64-tdep.c (value.h): Delete.
2788 (gdb_assert.h): Include.
2789 (x86_64_register_convert_to_virtual,
2790 x86_64_register_convert_to_raw ): Add check which lets only
2791 floating-point values to be converted.
2792 (value_push): Delete.
2793 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
2794 (i386_gdbarch_init): Number of register_bytes fixed.
2796 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2798 * MAINTAINERS: Add x86-64 target.
2800 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2802 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
2803 * osfsolib.c (solib_map_sections): Ditto.
2804 * irix5-nat.c (solib_map_sections): Ditto.
2805 * corelow.c (gdb_check_format): Ditto.
2806 * symfile.c (symfile_bfd_open): Ditto.
2807 * solib.c (solib_map_sections): Ditto.
2810 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2812 * remote.c (_initialize_remote): By default, disable ``e'' and
2813 ``E'' step out-of-range packets.
2815 2002-02-26 Andreas Schwab <schwab@suse.de>
2817 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
2818 m68k_linux_frame_saved_pc.
2819 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
2821 (SIGCONTEXT_PC_OFFSET): Remove.
2822 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
2823 m68k_linux_sigtramp_saved_pc): New functions.
2824 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
2825 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
2826 (UCONTEXT_PC_OFFSET): Define.
2827 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
2828 non-RT and RT signal trampolines.
2830 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
2832 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
2833 (TARGET_NBPG, STACK_END_ADDR): Delete
2834 (VARIABLES_INSIDE_BLOCK): Delete.
2836 2002-02-25 Andrew Cagney <ac131313@redhat.com>
2838 * utils.c (perror_with_name): Make string parameter constant.
2839 (print_sys_errmsg): Ditto.
2841 * defs.h (perror_with_name): Update.
2842 (print_sys_errmsg): Update.
2845 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
2847 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
2848 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
2850 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2852 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
2853 if it already matches the current architecture from the exec file.
2854 Include arch-utils.h for gdbarch_info_init prototype.
2855 * Makefile.in (rs6000-nat.o): Update dependencies.
2857 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
2859 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
2860 list of exported variables.
2862 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
2864 * gdbserver/configure.srv: New file.
2865 * gdbserver/configure.in: Use configure.srv instead
2866 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
2868 * gdbserver/configure: Regenerated.
2869 * gdbserver/terminal.h: New file.
2870 * gdbserver/Makefile.in: Update for configure changes. Remove
2871 more unneeded include paths.
2873 2002-02-24 Andrew Cagney <ac131313@redhat.com>
2875 From wiz at danbala:
2876 * config/sparc/tm-sp64.h: Fix grammar and typos.
2879 2002-02-24 Andrew Cagney <ac131313@redhat.com>
2881 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
2882 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
2883 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
2884 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
2885 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
2886 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
2887 * s390-tdep.c: Ditto.
2888 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
2889 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
2890 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
2891 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
2892 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
2893 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
2894 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
2895 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
2896 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
2897 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
2900 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2902 * lin-thread.c: Delete file.
2903 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
2904 to gdb_proc_service.h.
2905 * configure: Re-generate.
2907 * ocd.c (ocd_open): Do not try to open the "ocd" device.
2908 * serial.c (serial_open): Delete check for "ocd".
2911 * Makefile.in (linux-thread.o): Delete target.
2912 * linux-thread.c: Delete file.
2914 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
2915 renamed SH files to be consistent.
2917 * symtab.c (sort_search_symbols): Use xfree.
2919 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2921 * arm-linux-tdep.c (arm_linux_init_abi): Register
2922 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
2923 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
2924 definition with undef, since we don't want the sysvr4 definition.
2925 (SKIP_TRAMPOLINE_CODE): Likewise.
2927 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2929 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
2931 * configure.in: (AC_CHECK_FUNCS) Added test for
2932 canonicalize_file_name Regenerated.
2933 * config.in, configure: Regenerated.
2934 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
2935 defined use canonicalize_file_name.
2937 2002-02-23 Michael Chastain <mec@shout.net>
2939 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
2941 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2943 * README: Remove references to cygnus.com.
2944 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
2945 dot com'' form. Remove references to cygnus.com and sourceware.
2947 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2949 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
2950 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
2951 1003.1-2001 no longer allows "head -1".
2952 * gdb/Makefile.in (version.c): Likewise.
2953 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
2954 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
2955 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
2957 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2959 * cli/cli-decode.c (cmd_cfunc_eq): New function.
2960 * command.h (cmd_cfunc_eq): Declare.
2961 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
2963 * cli/cli-cmds.h (is_complete_command): Change parameter to a
2964 ``struct cmd_list_element *''.
2965 * cli/cli-cmds.c (is_complete_command): Update. Use
2967 * top.c (execute_command): Pass the command to
2968 is_complete_command.
2969 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
2971 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2973 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
2974 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
2975 architecture defines.
2976 * s390-tdep.c (s390_gdbarch_init): Likewise.
2978 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2980 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
2981 (arm_linux_push_arguments): Likewise.
2982 (arm_linux_init_abi): Register them. Also register linux-specific
2984 (find_minsym_and_objfile): Use strcmp, not STREQ.
2985 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
2986 (arm_linux_call_dummy_words): Delete declaration.
2987 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
2988 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
2990 (LOWEST_PC): Delete.
2992 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2994 * maint.c (print_section_info): Do not prepend `0x' to filepos
2995 output, it will be handled by local_hex_string_custom.
2997 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2999 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
3000 (store_newfpe_double, store_newfpe_extended, store_fpregister)
3001 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
3003 2002-02-22 Jim Blandy <jimb@redhat.com>
3005 Indicate that the bcache functions don't change the strings
3007 * bcache.h (bcache, hash): Add `const' keywords to declarations.
3008 * bcache.c (bcache, hash): Add `const' keywords to definitions.
3010 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
3012 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
3014 2002-02-21 Christopher Faylor <cgf@redhat.com>
3016 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
3017 find the complete path to a loaded DLL.
3019 2002-02-21 Fred Fish <fnf@redhat.com>
3021 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
3022 that marks the end of the range of a function, enter a line number
3023 entry that has a line number of zero and a PC offset that matches
3024 the end of the function. This starts a range of PC's for which no
3025 line number information is known.
3026 * symtab.c (find_pc_sect_line): If our best fit is in a range of
3027 PC's for which no line number info is found (line number is zero)
3028 then we didn't find any valid line information.
3029 * symtab.h: Document use of zero line number entry.
3031 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
3033 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
3034 (have_ptrace_getvrregs): Define for run time checks.
3035 (gdb_vrregset_t): New type for Altivec register handling.
3036 (fetch_register, store_register): Fetch/store altivec register
3038 (fetch_altivec_register, store_altivec_register): New functions.
3039 (supply_vrregset, fill_vrregset): New functions.
3040 (fetch_altivec_registers, store_altivec_registers): New functions.
3041 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
3044 2002-02-21 Jiri Smid <smid@suse.cz>
3046 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
3048 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
3050 * Makefile.in (armnbsd-nat.o): Update dependencies.
3051 * armnbsd-nat.c (supply_gregset): New function. Common code to
3052 supply the integer register set.
3053 (supply_fparegset): New function. Similar for FPA registers.
3054 (fetch_regs, fetch_fp_regs): Use them.
3055 (fetch_core_registers): Likewise.
3056 (fetch_elfcore_registers): New function.
3057 (arm_netbsd_elfcore_fns): New core-file type specification.
3058 (_initialize_arm_netbsd_nat): Register it.
3060 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
3062 * armnbsd-nat.c: Include gdbcore.h.
3063 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
3064 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
3065 'void' to declaration, to shut up ARI.
3066 (fetch_core_registers): Make static. Rewrite using supply_register.
3067 (arm_netbsd_core_fns): New core-file type specification.
3068 (_initialize_arm_netbsd_nat): New function.
3070 2002-02-21 Christopher Faylor <cgf@redhat.com>
3072 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
3075 2002-02-20 Christopher Faylor <cgf@redhat.com>
3077 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
3080 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
3082 * jv-exp.y (parse_number): Change type of implicit longs
3083 to builtin_type_uint64.
3085 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
3087 * gdbserver/linux-low.c (mywait): Change argument to waitpid
3088 to be an integer instead of a `union wait'.
3090 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
3092 * mips-linux-nat.c: Call the operating system GNU/Linux.
3093 * mips-linux-tdep.c: Likewise.
3094 * mips-tdep.c: Likewise.
3096 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
3099 * jv-exp.y (parse_number): Handle 64-bit integers.
3101 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
3103 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
3104 AC_STDC_HEADERS to AC_HEADER_STDC.
3105 * gdbserver/configure: Regenerated.
3107 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
3109 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
3111 * sparc-tdep.c (get_longjmp_target): Likewise.
3113 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
3115 * News: Add news about ARM and Multi-arch. Mention the new target
3118 2002-02-19 Jim Blandy <jimb@redhat.com>
3120 * stabsread.c (error_type_complaint): Improve error message.
3122 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
3124 * gdbserver/README: Update documentation.
3125 * gdbserver/configure.in: Update configury to match documentation.
3126 * gdbserver/Makefile.in: Likewise.
3127 * gdbserver/configure: Regenerated.
3128 * gdbserver/aclocal.m4: New file, generated by aclocal.
3129 * gdbserver/config.in: New file, generated by autoheader.
3131 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
3133 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
3136 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
3138 * arm-tdep.h (enum arm_float_model): New enum.
3139 (struct gdbarch_tdep): Add fp_model.
3140 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
3141 up floating-point conversions until we know the floating-point model
3142 in use by the inferior. Don't complain about being unable to
3143 determine the ABI of the inferior when we don't have one.
3144 (arm_extract_return_value): Support different floating-point models.
3145 (arm_store_return_value): Likewise.
3146 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
3148 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
3150 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3152 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
3153 of ``current_gdbarch''.
3155 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
3157 * armnbsd-nat.c : ANSIfy all function declarations.
3158 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
3159 (fetch_inferior_registers): Re-implement in terms of above.
3160 (store_register, store_regs, store_fp_register, store_fp_regs): New.
3161 (store_inferior_registers): Re-implement in terms of above.
3163 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
3165 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
3167 * arm-linux-tdep.c: Likewise.
3168 * config/arm/tm-linux.h: Likewise.
3170 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
3172 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
3173 * config/arm/nbsd.mt (TM_FILE): Delete.
3174 * config/arm/tm-nbsd.h: Delete.
3176 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
3178 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
3179 Initialize CALL_DUMMY_LENGTH.
3181 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
3183 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
3185 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
3186 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
3187 defines one thing and that is incorrect for this port.
3188 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
3190 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3192 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
3194 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3196 * win32-nat.c (display_selector): New function. Displays information
3197 about the information returned by GetThreadSelectorEntry API function.
3198 (display_selectors): New function. Displays the infomation of
3199 the selector given as argument, or of CS, DS ans FS selectors
3200 if no argument is given.
3201 ( _initialize_inftarg): Add "w32" as info prefix command.
3202 Add "info w32 selector" as command calling display_selectors.
3204 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
3206 * i386-tdep.c (get_longjmp_target): Fix compilation failure
3207 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
3210 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
3212 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
3214 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
3216 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
3217 (arm_fix_call_dummy): Call it.
3218 (arm_call_dummy_breakpoint_offset): Delete.
3219 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
3220 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
3222 2002-02-18 Andrew Cagney <ac131313@redhat.com>
3224 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
3225 Default to func_frame_chain_valid.
3226 * gdbarch.h, gdbarch.c: Re-generate.
3227 * frame.h (FRAME_CHAIN_VALID): Delete definition.
3229 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
3231 * ppc-linux-nat.c: Update copyright.
3232 (fetch_register, store_register): Add tid parameter, don't compute
3234 (fetch_ppc_registers, store_ppc_registers): Add tid
3235 parameter. Pass it along to callees.
3236 (fetch_inferior_registers, store_inferior_registers): Compute tid
3237 here, and pass it to calleed functions.
3238 (fill_gregset, supply_fpregset): Clean up formatting.
3240 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
3242 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
3243 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
3245 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
3247 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
3248 * gdbarch.c gdbarch.h: Regenerate.
3249 * breakpoint.c (create_longjmp_breakpoint): Always compile this
3251 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
3252 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
3253 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
3255 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
3256 * arm-tdep.c (arm_get_longjmp_target): New function.
3257 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
3258 this to a positive value register arm_get_longjmp_target as the
3260 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
3261 (arm_linux_init_abi): Set up longjmp description in tdep.
3262 * armnbsd-nat.c (get_longjmp_target): Delete.
3263 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
3264 description in tdep.
3265 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
3266 (get_longjmp_target): Delete declaration.
3267 (GET_LONGJMP_TARGET): Delete.
3268 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
3269 (GET_LONGJMP_TARGET): Delete.
3271 2002-02-17 Kevin Buettner <kevinb@redhat.com>
3273 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
3274 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
3275 of ``current_gdbarch''.
3277 2002-02-17 Tom Tromey <tromey@redhat.com>
3279 * cli/cli-cmds.c (compare_strings): New function.
3280 (complete_command): Only print each unique item once.
3281 * completer.h (complete_line): Declare.
3282 * completer.c (complete_line): New function.
3283 (line_completion_function): Use it.
3285 2002-02-16 Andrew Cagney <ac131313@redhat.com>
3287 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
3288 * gdbarch.h, gdbarch.c: Re-generate.
3290 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
3292 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
3294 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
3296 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
3297 * valops.c (value_arg_coerce): Don't take the address of a reference
3298 to convert an argument to a reference.
3300 2002-02-15 Christopher Faylor <cgf@redhat.com>
3302 * win32-nat.c (get_image_name): New function.
3303 (handle_load_dll): Use get_image_name function.
3304 (get_child_debug_event): Avoid registering debug events until possibly
3305 execed process is started.
3306 (child_create_inferior): Allow invocation via shell so that command
3307 line redirection, etc. works ok.
3308 (_initialize_inftarg): Add new command: "set shell" to control whether
3309 a shell is used to start a process.
3311 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
3313 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
3314 instead of find_register_by_number.
3315 (cannot_store_register): Likewise.
3317 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
3319 * dwarf2read.c: Replace fprintf (stderr, ...) by
3320 fprintf_unfiltered (gdb_stderr, ...).
3322 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
3324 * gdbserver/gdbserver.1: Document --attach.
3326 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
3328 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
3330 * arm-tdep.c (arm_default_arm_le_breakpoint)
3331 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
3332 (arm_default_thumb_be_breakpoint): New. Initialize them from
3333 traditional breakpoint defines.
3334 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
3335 (arm_gdbarch_init): Initialize new breakpoint variables.
3336 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
3337 (arm_linux_init_abi): Initialize linux-specific breakpoint.
3338 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
3339 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
3341 (arm_netbsd_init_abi_common): ... here; new function.
3342 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
3343 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
3344 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
3345 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
3347 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
3349 * arm-tdep.h (enum arm_abi): New enum.
3350 (struct gdbarch_tdep): New structure.
3351 (LOWEST_PC): Provide a default.
3352 (arm_gdbarch_register_os_abi): Declare new function.
3353 * arm-tdep.c (arm_abi_names): New array.
3354 (process_note_abi_tag_sections): New function.
3355 (get_elfosabi): New function.
3356 (arm_gdbarch_register_os_abi): New function.
3357 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
3358 support for that ABI has been built in, then call the appropriate
3359 configuration routine. Use gdbarch_num_regs() to get the number
3361 (arm_dump_tdep): New function.
3362 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
3363 place-holder functions.
3364 (_initialize_arm_tdep): Register them.
3365 * config/arm/tm-arm.h (LOWEST_PC): Delete.
3367 * armnbsd-tdep.c: New file.
3368 * Makefile.in (armnbsd-tdep.o): Add dependencies.
3369 * config/arm/nbsd.mt (TDEPFILES): Add it.
3370 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
3372 * armnbsd-nat.c: Include regcache.h.
3373 * Makefile.in (armnbsd-nat.o): Update dependency list.
3375 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
3377 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3379 * gdbserver/Makefile.in: Fix typos in target rules.
3381 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3383 Fix part of PR gdb/267.
3384 * linespec.c (find_methods): Handle constructors specially for now.
3386 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
3388 * arm-tdep.c (arm_push_arguments): Eliminate special float type
3390 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
3391 standard_coerce_float_to_double().
3393 2002-02-14 Christopher Faylor <cgf@redhat.com>
3395 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
3398 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
3400 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
3401 find_variant_by_name, because it confuses the multiarch
3402 framework. Return NULL if there isn't an architecture with the
3403 user supplied name, instead of forcing a different one without
3404 recording the change with the multiarch machinery.
3405 (find_variant_by_name): Delete.
3407 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3409 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
3410 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
3412 2002-02-13 Martin M. Hunt <hunt@redhat.com>
3414 * stack.c (print_frame_info_base): When calling
3415 print_frame_info_listing_hook, set current_source_symtab.
3417 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3419 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
3420 and remove unused $(INCLUDE_DIR).
3421 Add regcache.c to OBS.
3422 Add generated register protocol files to clean target.
3423 Update dependencies for new objects, obsolete old target code.
3425 * gdbserver/linux-low.c: Remove all platform-specific code to
3426 new files. Remove various dead code. Update to use regcache
3428 * gdbserver/remote-utils.c (fromhex): Add return statement
3430 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
3432 (input_interrupt): Add integer parameter to match prototype
3433 of a signal handler.
3434 (outreg): Use register_data ().
3435 (prepare_resume_reply): Use gdbserver_expedite_regs.
3436 * gdbserver/server.c (main): Dynamically allocate own_buf because
3437 PBUFSIZ is no longer constant. Use registers_to_string () and
3438 registers_from_string ().
3439 * gdbserver/server.h: No longer include "defs.h". Add prototypes
3440 for error (), fatal (), and warning (). Update definition of
3441 PBUFSIZ to use regcache functionality. Add include guard.
3442 * gdbserver/utils.c (fatal): Add missing ``const''.
3443 (warning): New function.
3445 * regformats/regdat.sh: Include "regcache.h" in generated files.
3446 Provide init_registers () function.
3447 * regformats/regdef.h: Add prototype for set_register_cache ().
3450 * gdbserver/linux-arm-low.c: New file.
3451 * gdbserver/linux-i386-low.c: New file.
3452 * gdbserver/linux-ia64-low.c: New file.
3453 * gdbserver/linux-m68k-low.c: New file.
3454 * gdbserver/linux-mips-low.c: New file.
3455 * gdbserver/linux-ppc-low.c: New file.
3456 * gdbserver/linux-sh-low.c: New file.
3458 * gdbserver/regcache.c: New file.
3459 * gdbserver/regcache.h: New file.
3461 * gdbserver/low-linux.c: Removed obsolete file.
3463 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3465 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
3466 * config/i386/linux.mt: Likewise.
3467 * config/ia64/linux.mt: Likewise.
3468 * config/m68k/linux.mh: Likewise.
3469 * config/powerpc/linux.mh: Likewise.
3470 * config/mips/linux.mt: Likewise.
3472 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
3474 * config/i386/i386lynx.mh: Mark gdbserver variables
3475 as (currently) obsolete for this target.
3476 * config/i386/nbsd.mt: Likewise.
3477 * config/i386/nbsdelf.mt: Likewise.
3478 * config/m32r/m32r.mt: Likewise.
3479 * config/m68k/m68klynx.mh: Likewise.
3480 * config/m68k/nbsd.mt: Likewise.
3481 * config/m68k/sun3os4.mh: Likewise.
3482 * config/mips/vr5000.mt: Likewise.
3483 * config/ns32k/nbsd.mt: Likewise.
3484 * config/pa/hppabsd.mh: Likewise.
3485 * config/pa/hppaosf.mh: Likewise.
3486 * config/powerpc/nbsd.mt: Likewise.
3487 * config/rs6000/rs6000lynx.mh: Likewise.
3488 * config/s390/s390.mt: Likewise.
3489 * config/s390/s390x.mt: Likewise.
3490 * config/sparc/sparclynx.mh: Likewise.
3491 * config/sparc/sun4os4.mh: Likewise.
3492 * config/i386/x86-64linux.mt: Likewise.
3493 * config/sparc/linux.mh: Likewise.
3495 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3497 * configure.tgt: Configure gdbserver only for known working
3498 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
3499 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
3500 SUBDIRS if it is configured. Update comment for ${nativefile}.
3501 * configure: Regenerated.
3503 2002-02-13 Michael Snyder <msnyder@redhat.com>
3505 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
3507 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
3508 (default_gcore_mach): Just return 0, work around a problem in bfd.
3509 (default_gcore_target): OK to return NULL if exec_bfd is null.
3510 (make_mem_sec): Use a cast, avoid a warning.
3512 * procfs.c (find_memory_regions_callback): Use a cast instead of
3513 calling host_pointer_to_address (which complains if
3514 sizeof (host pointer) != sizeof (target pointer)).
3515 (procfs_make_note_section): Avoid overflow in psargs string.
3517 * procfs.c (procfs_make_note_section): Make the default
3518 implementation return an error.
3520 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
3522 * procfs.c (procfs_make_note_section): Provide a default definition
3523 (for alpha-dec-osf4.0f). Fix typos.
3525 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
3527 * linux-proc.c: Add include of regcache.h.
3528 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
3530 2002-02-13 Andrew Cagney <ac131313@redhat.com>
3532 From 2002-01-18 Greg McGary <greg@mcgary.org>:
3533 * memattr.c (create_mem_region): Disallow useless empty region.
3534 Regions are half-open intervals, so allow [A..B) [B..C) as
3537 2002-02-13 Michael Chastain <mec@shout.net>
3539 * defs.h: Kill CONST_PTR.
3540 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
3541 * c-lang.c (c_builtin_types): Likewise.
3542 * ch-lang.c (ch_builtin_types): Likewise.
3543 * f-lang.c (f_builtin_types): Likewise.
3544 * language.c (unknown_builtin_types): Likewise.
3545 * m2-lang.c (m2_builtin_types): Likewise.
3546 * p-lang.c (pascal_builtin_types): Likewise.
3547 * scm-lang.c (c_builtin_types): Likewise.
3549 2002-02-13 Keith Seitz <keiths@redhat.com>
3551 * arm-tdep.h (arm_get_next_pc): Add declaration.
3553 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
3555 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
3556 with other related struct-returning functions.
3557 (arm_extract_struct_value_address): New function.
3558 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
3559 initialize float_format, double_format and long_double_format as
3560 appropriate to the endianness of the target.
3561 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
3562 (arm_use_struct_convention): Delete declaration.
3563 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3565 2002-02-13 Keith Seitz <keiths@redhat.com>
3567 * defs.h (core_addr_to_string_nz): New function.
3569 2002-02-13 Mark Kettenis <kettenis@gnu.org>
3571 Apply missing bits of 2002-01-15 patch.
3572 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
3573 (fill_fpregset): Use i387_fill_fsave.
3575 2002-02-12 Keith Seitz <keiths@redhat.com>
3577 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
3578 (core_addr_to_string_nz): New function.
3580 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
3582 * arm-linux-nat.c: Really include arm-tdep.h.
3583 * config/arm/tm-linux.h (struct type, struct value): Declare.
3585 2002-02-11 Michael Snyder <msnyder@redhat.com>
3587 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
3588 (gcore section): Ifdef for Solaris and Unixware only.
3589 (procfs_do_thread_registers): Unixware needs one lwpstatus
3590 per thread (not one prstatus or pstatus).
3591 (procfs_make_note_section): Iterate only over kernel threads (lwps),
3592 not over all gdb threads. For unixware, call elfcore_write_pstatus
3593 once before iterating over threads.
3595 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
3597 * arm-tdep.h: New file.
3598 * arm-tdep.c: Include arm-tdep.h.
3599 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
3600 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
3601 (arm_print_float_info, arm_register_type, convert_to_extended)
3602 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
3603 (arm_extract_return_value, arm_register_name): Make static.
3604 (arm_software_single_step): Similarly. Fix types in declaration.
3605 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
3606 (arm_store_return_value, arm_store_struct_return): New functions.
3607 (arm_gdbarch_init): Register the above functions. Also register
3608 call_dummy_start_offset, sizeof_call_dummy_words,
3609 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
3610 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
3611 max_register_virtual_size, register_size. Set up
3612 prologue_cache.saved_regs here, rather than ...
3613 (_initialize_arm_tdep): ... here.
3614 * config/arm/tm-arm.h (struct type, struct value): Delete forward
3616 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
3617 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
3618 (arm_print_float_info, arm_register_type, convert_to_extended)
3619 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
3620 (arm_extract_return_value, arm_register_name): Delete declarations.
3621 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
3622 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
3623 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
3624 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
3625 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3626 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
3627 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
3628 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
3629 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
3630 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
3631 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
3632 (arm_get_next_pc): No-longer static -- these are needed by the RDI
3634 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
3635 * remote-rdi.c remote-rdp.c: Likewise.
3636 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
3637 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
3638 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
3641 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
3642 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
3643 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
3644 from non-ARM_ prefixed definitions.
3645 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
3647 * remote-rdi.c remote-rdp.c: Likewise.
3648 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
3650 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
3652 * arm-tdep.c (arm_frameless_function_invocation)
3653 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
3654 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
3655 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
3656 (arm_pop_frame, arm_get_next_pc): Make static.
3657 (arm_gdbarch_init): Register above in gdbarch structure.
3658 (arm_read_fp): Renamed from arm_target_read_fp.
3659 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
3660 * config/arm/tm-arm.h (arm_frameless_function_invocation)
3661 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
3662 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
3663 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
3664 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
3665 (arm_pc_is_thumb_dummy): Delete declarations.
3666 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
3667 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
3668 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
3669 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
3671 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
3673 * symtab.c (compare_search_syms): New function.
3674 (sort_search_symbols): New function.
3675 (search_symbols): Sort symbols after searching rather than
3678 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3680 * NEWS: Linux -> GNU/Linux.
3682 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3684 * gdbarch.sh: For for level one methods, disallow a definition
3685 when partially multi-arched. Add comments explaining rationale.
3686 * gdbarch.h: Re-generate.
3688 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3690 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
3693 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3695 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
3697 * gdbarch.c: Re-generate.
3699 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3701 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
3702 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
3705 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3707 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
3709 (PUSH_ARGUMENTS): Switch to using predefault.
3710 * gdbarch.c: Regenerate.
3712 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3714 * valops.c (PUSH_ARGUMENTS): Delete definition.
3715 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
3716 partial. Default to default_push_arguments.
3717 * gdbarch.h, gdbarch.c: Regenerate.
3719 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3721 * defs.h (throw_exception): Rename return_to_top_level. Update
3723 * utils.c (error_stream, internal_verror, quit): Ditto.
3724 * top.c (throw_exception, catcher): Ditto.
3725 * sparclet-rom.c (sparclet_load): Ditto.
3726 * remote.c (interrupt_query, minitelnet): Ditto.
3727 * remote-sds.c (interrupt_query): Ditto.
3728 * remote-mips.c (mips_error, mips_kill): Ditto.
3729 * ocd.c (interrupt_query): Ditto.
3730 * monitor.c (monitor_interrupt_query): Ditto.
3731 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
3732 * target.h: Update comment.
3734 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
3736 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3738 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
3739 default_double_format.
3740 * gdbarch.h, gdbarch.c: Re-generate.
3741 * findvar.c (floatformat_unknown): Delete variable definition.
3742 * doublest.h (floatformat_unknown): Delete variable declaration.
3744 2002-02-09 Jim Blandy <jimb@redhat.com>
3746 * stabsread.c (read_type): Add code to parse Sun's syntax for
3747 prototyped function types.
3749 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3751 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
3752 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
3754 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3756 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
3757 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
3758 now _initialize_xcoffsolib gets called again and overrides the
3759 commands from solib.c in a native configuration.
3761 2002-02-09 Mark Kettenis <kettenis@gnu.org>
3763 * doublest.c (store_typed_floating): Don't try to return a value.
3766 2002-02-08 Jim Blandy <jimb@redhat.com>
3768 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
3769 is prototyped and has no arguments, print its argument list as
3772 2002-02-08 Chris Demetriou <cgd@broadcom.com>
3774 * MAINTAINERS (write-after-approval): Add myself.
3775 (paper-trail): I've escaped!
3777 2002-02-08 Christopher Faylor <cgf@redhat.com>
3779 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
3781 (_initialize_check_for_gdb_ini): Ditto.
3783 2002-02-08 Martin M. Hunt <hunt@redhat.com>
3785 * win32-nat.c (cygwin_pid_to_str): Fix typo.
3786 xaprintf -> xasprintf.
3788 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
3790 * win32-nat.c: Remove use of printf and sprintf functions.
3792 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
3794 * arm-tdep.c (arm_frame_chain_valid): Make static.
3795 (arm_push_arguments): Likewise.
3796 (arm_gdbarch_init): New function.
3797 (_initialize_arm_tdep): Call it.
3798 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
3799 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
3800 (FRAME_CHAIN_VALID): Delete.
3801 (arm_frame_chain_valid): Delete declaration.
3802 (PUSH_ARGUMENTS): Delete.
3803 (arm_push_arguments): Delete declaration.
3804 (CALL_DUMMY_P): Delete.
3806 2002-02-08 Andrew Cagney <ac131313@redhat.com>
3807 Corinna Vinschen <vinschen@redhat.com>
3809 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
3810 on builtin float types.
3812 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
3814 * utils.c: Include <curses.h> before "bfd.h".
3815 * tui/tui-hooks.c: Likewise.
3816 * tui/tui.c: Likewise.
3817 * tui/tuiCommand.c: Likewise.
3818 * tui/tuiData.c: Likewise.
3819 * tui/tuiDataWin.c: Likewise.
3820 * tui/tuiDisassem.c: Likewise.
3821 * tui/tuiGeneralWin.c: Likewise.
3822 * tui/tuiIO.c: Likewise.
3823 * tui/tuiLayout.c: Likewise.
3824 * tui/tuiRegs.c: Likewise.
3825 * tui/tuiSource.c: Likewise.
3826 * tui/tuiSourceWin.c: Likewise.
3827 * tui/tuiStack.c: Likewise.
3828 * tui/tuiWin.c: Likewise.
3830 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
3832 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
3833 to include space for pseudoregs as well. Update loops accordingly.
3834 (sh_fp_frame_init_saved_regs): Ditto.
3835 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
3837 2002-02-07 Andrew Cagney <ac131313@redhat.com>
3839 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
3840 Add Richard Earnshaw to Arm maintainers.
3842 2002-02-07 Andrew Cagney <ac131313@redhat.com>
3844 * defs.h (warning_begin): Delete declaration.
3846 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
3849 2002-02-07 Michael Snyder <msnyder@redhat.com>
3851 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
3852 Logic bug, remove misplaced else.
3854 2002-02-07 Klee Dienes <klee@apple.com>
3856 * fork-inferior.c (fork_inferior): Add '!' to the list of
3857 characters that need to be quoted when building a string for the
3858 shell. Quote '!' specifically with a backslash, since CSH chokes
3859 when trying to evaluate "str!str".
3861 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
3863 * rdi-share/host.h: Only provide a typedef for bool if it is not
3866 2002-02-04 Michael Snyder <msnyder@redhat.com>
3868 * breakpoint.h (enum bptype): Add new overlay event bp type.
3869 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
3871 * breakpoint.c (create_internal_breakpoint): New function.
3872 (internal_breakpoint_number): Moved into create_internal_breakpoint.
3873 (create_longjmp_breakpoint): Use create_internal_breakpoint.
3874 (create_thread_event_breakpoint): Ditto.
3875 (create_solib_event_breakpoint): Ditto.
3876 (create_overlay_event_breakpoint): New function.
3877 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
3878 (update_breakpoints_after_exec): Delete and re-initialize
3879 overlay event breakpoints after an exec. Add FIXME comment
3880 about longjmp breakpoint.
3881 (print_it_typical): Ignore overlay event breakpoints.
3882 (print_one_breakpoint): Ditto.
3884 (bpstat_what): Do not stop for overlay event breakpoints.
3885 (delete_breakpoint): Don't delete overlay event breakpoints.
3886 (breakpoint_re_set_one): Delete the overlay event breakpoint.
3887 (breakpoint_re_set): Re-create overlay event breakpoint.
3889 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
3890 (overlay_manual_command): Disable overlay breakpoints.
3891 (overlay_off_command): Disable overlay breakpoints.
3893 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3895 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
3896 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
3897 to here from config/tm-arm.h.
3898 (coff_sym_is_thumb): Make static.
3899 (arm_elf_make_msymbol_special): New function.
3900 (arm_coff_make_msymbol_special): New function.
3901 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
3902 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
3903 (coff_sym_is_thumb): Delete declaration.
3904 (arm_elf_make_msymbol_special): Declare.
3905 (arm_coff_make_msymbol_special): Declare.
3906 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
3907 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
3909 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3911 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
3913 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3915 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
3916 * gdbarch.c gdbarch.h: Regenerate.
3917 * arch-utils.c (default_print_float_info): New function.
3918 * arch-utils.h (default_print_float_info): Prototype it.
3919 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
3920 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
3921 (PRINT_FLOAT_INFO): Document it.
3923 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
3924 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
3925 (PRINT_FLOAT_INFO): Define.
3927 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
3929 * win32-nat.c (_initialize_check_for_gdb_ini):
3930 Add typecast to sprintf argument to suppress a warning.
3932 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
3934 * win32-nat.c (last_sig): Changed type of variable to target_signal,
3935 to allow easier handling of pass state.
3936 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
3937 that gives exception name and address.
3938 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
3939 and set last_sig value to ourstatus->value.sig. Some missing
3941 (child_continue): Correctly report continue_status.
3942 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
3943 TARGET_SIGNAL_0 (new default value).
3944 (child_resume): consider sig argument passed to decide if
3945 the exception should be passed to debuggee or not.
3947 2002-02-05 Michael Snyder <msnyder@redhat.com>
3949 * regcache.c (fetch_register): Call target_fetch_register
3950 only if we don't call FETCH_PSEUDO_REGISTER.
3951 (store_register): Call target_store_register only if we
3952 don't call STORE_PSEUDO_REGISTER.
3954 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
3956 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
3957 ELF_MAKE_MSYMBOL_SPECIAL.
3958 * gdbarch.c, gdbarch.h: Regenerate.
3959 * arch-utils.c (default_make_msymbol_special): New function.
3960 * arch-utils.h (default_make_msymbol_special): Export.
3961 * elfread.c (elf_symtab_read): Compile use of
3962 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
3964 * coffread.c (coff_symtab_read): Ditto, for
3965 COFF_MAKE_MSYMBOL_SPECIAL.
3967 2002-02-05 Jim Blandy <jimb@redhat.com>
3969 * solib-svr4.c (svr4_truncate_ptr): New function.
3970 (svr4_relocate_section_addresses): Do the address arithmetic with
3971 the appropriate truncation for target addresses, even when
3972 CORE_ADDR is larger than a target address.
3974 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3976 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
3979 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3981 * gdbserver/linux-low.c (kill_inferior): Remove commented out
3984 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3986 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
3988 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3990 * gdbserver/linux-low.c: Remove unused include files.
3992 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3994 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
3995 (read_inferior_memory): Use it.
3996 (write_inferior_memory): Likewise.
3998 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
4000 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
4001 grubbing through sys_errlist.
4003 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
4005 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
4007 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
4008 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
4010 2002-02-04 Andrew Cagney <ac131313@redhat.com>
4012 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
4013 (do_sfunc, set_cmd_sfunc): New functions.
4015 * command.h (struct cmd_list_element): Add field func.
4016 * cli/cli-decode.h (struct cmd_list_element): Ditto.
4017 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
4018 * cli/cli-decode.h: Ditto.
4020 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
4021 (help_all, help_cmd_list): Ditto.
4022 (find_cmd, complete_on_cmdlist): Ditto.
4023 * top.c (execute_command): Ditto.
4025 * cli/cli-setshow.c (do_setshow_command): Call func instead of
4028 * infcmd.c (notice_args_read): Fix function signature.
4030 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
4031 * cli/cli-decode.c (add_set_cmd): Ditto.
4032 * utils.c (initialize_utils): Ditto.
4033 * maint.c (_initialize_maint_cmds): Ditto.
4034 * infrun.c (_initialize_infrun): Ditto.
4035 * demangle.c (_initialize_demangler): Ditto.
4036 * remote.c (add_packet_config_cmd): Ditto.
4037 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4038 * cris-tdep.c (_initialize_cris_tdep): Ditto.
4039 * proc-api.c (_initialize_proc_api): Ditto.
4040 * kod.c (_initialize_kod): Ditto.
4041 * valprint.c (_initialize_valprint): Ditto.
4042 * top.c (init_main): Ditto.
4043 * infcmd.c (_initialize_infcmd): Ditto.
4044 * corefile.c (_initialize_core): Ditto.
4045 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4046 * arch-utils.c (initialize_current_architecture): Ditto.
4047 (_initialize_gdbarch_utils): Ditto.
4048 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
4050 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
4051 * wince.c (_initialize_inftarg): Ditto.
4052 * symfile.c (_initialize_symfile): Ditto.
4053 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4054 * language.c (_initialize_language): Ditto.
4055 * arc-tdep.c (_initialize_arc_tdep): Ditto.
4057 2002-02-04 Michael Snyder <msnyder@redhat.com>
4059 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
4061 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
4063 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
4064 Add rules for building the register data files.
4066 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
4068 * regformats/regdat.sh: Add braces to the definition of
4069 expedite_regs_${arch}.
4071 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
4073 * regformats/regdef.h (struct reg): Add comment describing the
4074 requirements for offset and size fields.
4076 2002-02-04 Andreas Schwab <schwab@suse.de>
4078 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
4079 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
4081 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
4083 * gdbarch.sh (copyright): Update years in generated header.
4084 (SMASH_TEXT_ADDRESS): Add rule.
4085 * gdbarch.h, gdbarch.c: Re-generate.
4086 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
4087 * dbxread.c: Likewise.
4088 * dwarfread.c: Likewise.
4089 * elfread.c: Likewise.
4090 * somread.c: Likewise.
4092 * arm-tdep.c (arm_smash_text_address): New function.
4093 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
4095 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
4097 Add support for hardware watchpoints on win32 native.
4098 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
4099 CONTEXT_DEBUG_REGISTERS.
4100 (dr variable): New variable. Static array containing a local copy
4102 (debug_registers_changed): New variable. Reflects when debug registers
4103 are changed and need to be written to inferior.
4104 (debug_registers_used): New variable. Reflects when any debug register
4105 was set, used when new threads are created.
4106 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
4108 (thread_rec): Set dr array if id is the thread of current_event .
4109 (child_continue, child_resume): Change the debug registers for all
4110 threads if debug_registers_changed.
4111 (child_add_thread): Change the debug registers if debug_registers_used.
4112 * config/i386/cygwin.mh: Add use of i386-nat.o file.
4113 Link nm.h to new nm-cygwin.h file.
4114 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
4115 of hardware registers.
4117 2002-02-03 Andrew Cagney <ac131313@redhat.com>
4119 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
4120 Restore behavour broken by 2002-01-20 Andrew Cagney
4121 <ac131313@redhat.com> IEEE_FLOAT removal.
4123 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
4125 * c-valprint.c (c_val_print): Pass a proper valaddr to
4126 cp_print_class_method.
4127 * valops.c (search_struct_method): If there is only one method
4128 and args is NULL, return that method.
4130 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
4132 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
4133 accessing tag_name directly.
4135 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
4137 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
4138 of accessing tag_name directly.
4140 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
4143 * gdbtypes.c (replace_type): New function.
4144 * gdbtypes.h (replace_type): Add prototype.
4145 * stabsread.c (read_type): Use replace_type.
4147 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
4149 * Makefile.in (memattr.o): Add missing dependencies rule.
4151 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4153 * breakpoint.c (break_at_finish_command): Really export.
4154 (break_at_finish_at_depth_command): Ditto.
4155 (tbreak_at_finish_command): Ditto.
4156 * hppa-tdep.c: Include completer.h.
4157 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
4158 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
4160 2002-02-01 Andrew Cagney <ac131313@redhat.com>
4162 * utils.c (do_write): New function.
4163 (error_stream): Rewrite combining the code from error_begin and
4165 (verror): Rewrite using error_stream.
4166 (error_begin): Delete function.
4168 2002-02-01 Andrew Cagney <ac131313@redhat.com>
4170 * utils.c (error_begin): Make static.
4171 * defs.h (error_begin): Delete declaration.
4173 * linespec.c (cplusplus_error): Replace cplusplus_hint.
4174 (decode_line_1): Use cplusplus_error instead of error_begin,
4175 cplusplus_hint and return_to_top_level.
4176 * coffread.c (coff_symfile_read): Use error instead of error_begin
4177 and return_to_top_level.
4178 * infrun.c (default_skip_permanent_breakpoint): Ditto.
4180 2002-02-01 Andrew Cagney <ac131313@redhat.com>
4182 * language.h (type_error, range_error): Make string parameter
4184 * language.c (warning_pre_print): Delete extern declaration.
4185 * dwarfread.c (warning_pre_print): Ditto.
4186 * language.c (type_error, range_error): Rewrite to use verror and
4187 vwarning instead of warning_begin.
4189 2002-02-01 Michael Snyder <msnyder@redhat.com>
4191 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
4192 (set_ignore_count): Move misplaced comment back where it belongs.
4194 2002-02-01 Andrew Cagney <ac131313@redhat.com>
4196 * command.h (NO_FUNCTION): Delete macro.
4197 * cli/cli-decode.h (NO_FUNCTION): Ditto.
4198 * top.c (execute_command): Replace NO_FUNCTION with NULL.
4199 * tracepoint.c (_initialize_tracepoint): Ditto.
4200 * cli/cli-decode.c (add_set_cmd): Ditto.
4201 * cli/cli-cmds.c (init_cli_cmds): Ditto.
4203 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
4205 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
4206 Update ``this'' pointer when calling virtual functions.
4208 2002-02-01 Michael Snyder <msnyder@redhat.com>
4210 * breakpoint.c (create_temp_exception_breakpoint): Delete.
4211 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
4213 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
4215 * regformats/reg-arm.dat: New file.
4216 * regformats/reg-i386.dat: New file.
4217 * regformats/reg-ia64.dat: New file.
4218 * regformats/reg-m68k.dat: New file.
4219 * regformats/reg-mips.dat: New file.
4220 * regformats/reg-ppc.dat: New file.
4221 * regformats/reg-sh.dat: New file.
4222 * regformats/regdef.h: New file.
4223 * regformats/regdat.sh: New file.
4225 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
4227 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
4228 (arm_frame_args_address, arm_frame_locals_address): New functions.
4229 (arm_frame_num_args): New function.
4230 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
4231 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
4232 (FRMA_NUM_ARGS): Call arm_frame_num_args.
4234 2002-01-31 Michael Snyder <msnyder@redhat.com>
4236 * breakpoint.c (break_at_finish_command): Export.
4237 (break_at_finish_at_depth_command): Export.
4238 (tbreak_at_finish_command): Export.
4239 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
4240 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
4241 "tbreak" commands, which are HPPA specific.
4243 * printcmd.c (disassemble_command): Remove an ancient
4244 artifact of an old merge.
4246 * symfile.h (enum overlay_debugging_state):
4247 Define enum constant values for overlay mode.
4248 * symfile.c (overlay_debugging): Use enums instead of literals.
4249 (overlay_is_mapped, overlay_auto_command,
4250 overlay_manual_command): Ditto.
4252 * breakpoint.c (insert_breakpoints, remove_breakpoint,
4253 breakpoint_here_p, breakpoint_inserted_here_p,
4254 breakpoint_thread_match, bpstat_stop_status,
4255 describe_other_breakpoints, check_duplicates, clear_command):
4256 Coding standard fixes.
4258 * target.c (target_xfer_memory): Add spaces, coding standard.
4259 (do_xfer_memory): Add missing line to trust-readonly
4260 code: check bfd SEC_READONLY flag for section.
4262 2002-01-31 Andrew Cagney <ac131313@redhat.com>
4264 * PROBLEMS: Fix typo, 5.1->5.1.1.
4266 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
4268 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
4269 data symbols, since we search based on textlow and texthigh.
4270 (find_pc_sect_symtab): Likewise.
4272 2002-01-30 Andrew Cagney <ac131313@redhat.com>
4274 * defs.h (vwarning): Declare.
4275 * utils.c (vwarning): New function.
4276 (warning): Call vwarning.
4277 (warning_begin): Delete function.
4279 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
4280 the warning message.
4281 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
4284 2002-01-30 Michael Snyder <msnyder@redhat.com>
4286 * NEWS: Mention "set trust-readonly-sections" command.
4287 Mention generate-core-file command.
4289 2002-01-15 Michael Snyder <msnyder@redhat.com>
4291 * target.c: New command, "set trust-readonly-sections on".
4292 (do_xfer_memory): Honor the suggestion to trust readonly sections
4293 by reading them from the object file instead of from the target.
4294 (initialize_targets): Register command "set trust-readonly-sections".
4296 2002-01-29 Andrew Cagney <ac131313@redhat.com>
4298 * parse.c (target_map_name_to_register): Simplify, search regs and
4299 pseudo-regs using a single loop.
4301 2002-01-30 Andrew Cagney <ac131313@redhat.com>
4303 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
4305 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
4307 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
4308 * config/i386/i386v42mp.mh: Add i387-nat.o .
4309 * i386v4-nat.c: Include i387-nat.h.
4310 (supply_fpregset): Use i387_supply_fsave.
4311 (fill_fpregset): Use i387_fill_fsave.
4313 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
4315 * arm-tdep.c (arm_call_dummy_words): Define.
4316 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
4317 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
4318 (CALL_DUMMY_WORDS): Define.
4319 (arm_call_dummy_words): Declare.
4320 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
4321 (arm_linux_call_dummy_words): Declare.
4323 2002-01-30 Andreas Schwab <schwab@suse.de>
4325 * m68klinux-nat.c: Fix last change to use regcache_collect
4326 instead of referencing registers[] directly.
4328 2002-01-29 Andrew Cagney <ac131313@redhat.com>
4330 * parse.c (target_map_name_to_register): Delete code wrapped in
4331 #ifdef REGISTER_NAME_ALIAS_HOOK.
4333 2002-01-28 Michael Snyder <msnyder@redhat.com>
4335 * regcache.c (legacy_read_register_gen): Need to be able to
4336 read pseudo-register as well as real register.
4337 (legacy_write_register_gen): Ditto.
4339 2002-01-28 Andrew Cagney <ac131313@redhat.com>
4341 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
4342 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
4343 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
4344 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
4345 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
4346 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
4347 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
4348 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
4349 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
4350 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
4351 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
4352 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
4353 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
4354 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
4355 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
4356 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
4357 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
4358 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
4359 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
4360 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
4362 2002-01-28 Andrew Cagney <ac131313@redhat.com>
4364 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
4365 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
4366 (initialize_current_architecture): Update target_byte_order using
4367 information from BFD.
4368 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
4369 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
4371 2002-01-28 Andrew Cagney <ac131313@redhat.com>
4373 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
4374 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
4376 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
4377 #ifdef INVALID_FLOAT.
4378 * infcmd.c (do_registers_info): Ditto.
4379 * values.c (unpack_double): Ditto. Add comment.
4381 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
4382 already commented out.
4384 2002-01-26 Andreas Schwab <schwab@suse.de>
4386 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4387 * m68klinux-nat.c: Update ptrace interface for fetching/storing
4388 registers and add support for PTRACE_GETREGS.
4390 2002-01-24 Andrew Cagney <ac131313@redhat.com>
4392 GDB 5.1.1 released from 5.1 branch.
4393 * NEWS: Add 5.1.1 news.
4394 * README: Sync with 5.1 branch.
4396 2002-01-23 Fred Fish <fnf@redhat.com>
4398 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
4399 stabstring on initial malloc. Reallocing will copy it for us,
4402 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
4404 * Makefile.in (hpread_h): Delete.
4405 (HFILES_NO_SRCDIR): Remove hpread.h.
4406 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
4407 (hpread.o): Update dependencies.
4408 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
4410 * hp-psymtab-read.c: Remove file.
4411 * hp-symtab-read.c: Remove file.
4412 * hpread.h: Remove file.
4414 * hpread.c: Merge all contents of hp-psymtab-read.c,
4415 hp-symtab-read.c and hpread.h into this file, as it was prior to
4418 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
4419 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
4420 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
4421 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
4423 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
4425 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
4426 fill_gregset): Call gdbarch_tdep() just once, assign result to
4427 variable and use that, instead of calling the function several
4430 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4432 * configure.host: Accept sparcv9 as alias for sparc64.
4433 * configure.tgt: Likewise.
4435 2002-01-22 Kevin Buettner <kevinb@redhat.com>
4437 * solib-aix5.c (build_so_list_from_mapfile)
4438 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
4439 arguments is not reversed.
4440 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
4441 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
4443 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
4445 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
4446 modified version of obsolete sh_fetch_pseudo_register.
4447 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
4448 (sh4_register_read): New function.
4449 (sh_pseudo_register_write): New function. Renamed and modified
4450 version of obsolete sh_store_pseudo_register.
4451 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
4452 (sh4_register_write): New function.
4453 (sh_gdbarch_init): Remove setting of gdbarch function
4454 fetch_pseudo_register and store_pseudo_register. Remove setting of
4455 register_convert_to_raw, register_convert_to_virtual,
4456 register_convertible.
4457 (sh_sh4_register_convertible): Delete. No longer needed. All is
4458 taken care by architecture specific functions
4459 register_read/register_write.
4460 (sh_sh4_register_convert_to_virtual): Make static.
4461 (sh_sh4_register_convert_to_raw): Ditto.
4463 2002-01-22 Andrew Cagney <ac131313@redhat.com>
4465 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
4466 (floatformat_is_nan, floatformat_mantissa): Ditto.
4468 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
4469 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
4470 builtin_type_ieee_double_little,
4471 builtin_type_ieee_double_littlebyte_bigword,
4472 builtin_type_m68881_ext, builtin_type_i960_ext,
4473 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
4474 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
4475 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
4476 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
4478 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
4480 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
4481 parameter. Set frameless flag if it exists and depended of
4482 whether the scanned function is frameless or not.
4483 (xstormy16_skip_prologue): If function is frameless, return
4484 result of xstormy16_scan_prologue().
4485 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
4488 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
4490 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
4491 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
4492 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
4493 sh_sh4_register_byte, sh_sh4_register_raw_size,
4494 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
4495 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
4496 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
4497 sh_store_pseudo_register, sh_do_pseudo_register): Call
4498 gdbarch_tdep() just once, assign result to variable and use that,
4499 instead of calling the function several times.
4501 2002-01-20 Mark Kettenis <kettenis@gnu.org>
4503 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
4504 macros instead of LAST_FPU_CTRL_REGNUM.
4505 (store_register): Likewise.
4507 2002-01-21 Jim Blandy <jimb@redhat.com>
4509 * infcmd.c (run_command): Check that the `exec' target layer's BFD
4510 is up-to-date before running the program, not just when a program
4513 2002-01-21 Fred Fish <fnf@redhat.com>
4515 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
4516 when we have found all instructions we are looking for.
4518 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
4520 * arm-tdep.c (arm_register_name): New function.
4521 (arm_registers_names): Make static.
4522 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
4523 (arm_register_name): Declare.
4524 (REGISTER_NAME): Use it.
4526 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
4527 Kevin Buettner <kevinb@redhat.com>
4529 Convert arm targets to new FRAME interface.
4530 * arm-tdep.c (struct frame_extra_info): Remove fsr.
4531 (arm_frame_find_save_regs): Delete.
4532 (arm_frame_init_saved_regs): New.
4533 (arm_init_extra_frame_info): Alloacte saved_regs as required.
4534 Allocate extra_info as required. Convert all uses of fsr.regs
4535 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
4537 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
4538 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
4539 (check_prologue_cache, save_prologue_cache): Likewise.
4540 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
4541 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
4542 (FRAME_FIND_SAVED_REGS): Delete.
4543 (arm_frame_find_saved_regs): Delete prototype.
4544 (arm_frame_init_saved_regs): New prototype.
4545 (FRAME_INIT_SAVED_REGS): Define.
4547 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4549 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
4551 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4553 From Jeff Law <law@redhat.com>:
4554 * infttrace.c: Include <sys/pstat.h>.
4555 (child_pid_to_exec_file): Revamp. Use pstat call to get the
4556 exec file if the ttrace equivalent fails.
4558 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4560 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
4561 (closeLogFile): Ditto.
4563 2002-01-20 Michael Chastain <mec@shout.net>
4565 * top.c (print_gdb_version): Bump copyright year to 2002.
4567 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4569 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
4570 Zannoni and Eli Zaretskii.
4572 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4574 * buildsym.c: Update copyright years.
4575 * c-typeprint.c: Likewise.
4576 * dwarf2read.c: Likewise.
4577 * f-typeprint.c: Likewise.
4578 * gdbtypes.c: Likewise.
4579 * gdbtypes.h: Likewise.
4580 * hp-symtab-read.c: Likewise.
4581 * hpread.c: Likewise.
4582 * mdebugread.c: Likewise.
4583 * p-typeprint.c: Likewise.
4585 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4587 * remote-sim.c (gdbsim_open): Simplify code testing the macro
4588 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
4589 byte-order selectable.
4590 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
4591 * arch-utils.c: Ditto.
4592 (set_endian): Ditto.
4593 (set_endian_from_file): Ditto.
4594 * gdbserver/low-sim.c (create_inferior): Ditto.
4595 * gdbarch.sh: Ditto.
4596 * gdbarch.h: Re-generate.
4597 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4598 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
4599 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
4600 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4601 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4602 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4603 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
4604 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
4606 * config/mips/tm-wince.h: Remove #undef of macro
4607 TARGET_BYTE_ORDER_SELECTABLE.
4608 * config/sh/tm-wince.h: Ditto.
4610 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4612 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
4613 member function fields. Add accessor macro
4614 TYPE_FN_FIELD_ARTIFICIAL.
4615 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
4616 * c-typeprint.c (c_type_print_base): Skip artificial member
4619 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4621 * f-typeprint.c: Delete unused function f_type_print_args.
4622 * p-typeprint.c: Delete unused function pascal_type_print_args.
4624 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4626 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
4627 comment. Add ``artificial'' to ``union field_location''.
4629 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
4631 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
4632 * mdebugread.c (parse_symbol): Likewise.
4633 * stabsread.c (define_symbol): Likewise.
4634 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
4635 initializing TYPE_FIELD_BITPOS to n (obsolete).
4636 (hpread_doc_function_type): Likewise.
4637 * hpread.c (hpread_function_type): Likewise.
4639 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4641 * configure.in (host_makefile_frag): Only require a host makefile
4642 fragment when a native build.
4643 * configure: Re-generate.
4645 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4647 * doublest.h (floatformat_from_type): Declare.
4648 * doublest.c (floatformat_from_type): New function.
4649 (convert_typed_floating): Use.
4651 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
4652 call to function floatformat_from_type.
4654 * gdbarch.sh (IEEE_FLOAT): Delete.
4655 * gdbarch.h, gdbarch.c: Re-generate.
4656 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
4657 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
4658 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
4659 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
4660 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
4661 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
4662 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
4663 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
4664 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
4665 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
4666 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
4667 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
4669 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
4670 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
4671 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4672 * sh-tdep.c (sh_gdbarch_init): Ditto.
4673 * mips-tdep.c (mips_gdbarch_init): Ditto.
4674 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4675 * cris-tdep.c (cris_gdbarch_init): Ditto.
4677 2002-01-20 Jiri Smid <smid@suse.cz>
4679 * configure.host, configure.tgt: Support x86-64.
4680 * NEWS: Note new target x86-64.
4682 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
4683 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
4684 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
4685 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
4686 x86-64-linux-nat.o): Fix dependencies.
4688 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4690 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
4691 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
4692 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
4693 * config/sparc/xm-sun4os4.h: Delete file.
4694 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
4696 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4698 * config/sparc/sparclynx.mh (XM_FILE): Delete.
4699 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
4700 * config/m68k/m68klynx.mh (XM_FILE): Delete.
4701 * config/i386/i386lynx.mh (XM_FILE): Delete.
4702 * config/rs6000/xm-rs6000ly.h: Delete file.
4703 * config/sparc/xm-sparclynx.h: Delete file.
4704 * config/m68k/xm-m68klynx.h: Delete file.
4705 * config/i386/xm-i386lynx.h: Delete file.
4706 * config/xm-lynx.h: Delete file.
4707 * config/djgpp/fnchange.lst: Update.
4709 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4711 * alpha-tdep.c (alpha_register_byte): New function.
4712 (alpha_register_raw_size): Ditto.
4713 (alpha_register_virtual_size): Ditto.
4714 (alpha_skip_prologue_internal): Renamed from
4715 alpha_skip_prologue.
4716 (alpha_skip_prologue): New version that calls
4717 alpha_skip_prologue_internal.
4718 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
4719 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
4720 second argument from alpha_skip_prologue.
4721 (REGISTER_BYTE): Use alpha_register_byte.
4722 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
4723 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
4724 (FRAMELESS_FUNCTION_INVOCATION): Use
4725 generic_frameless_function_invocation_not.
4726 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
4727 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
4729 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4731 * config/mips/xm-news-mips.h: Delete file.
4732 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
4734 * config/m88k/xm-m88k.h: Delete file.
4735 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
4736 * config/m88k/xm-delta88v4.h: Ditto.
4737 * config/m88k/xm-delta88.h: Ditto.
4739 * config/alpha/xm-fbsd.h: Delete file.
4740 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
4742 * config/sparc/xm-sparc.h: Delete file.
4743 * Makefile.in (xm-sun4os4.h): Delete dependency.
4744 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
4745 * config/sparc/xm-sun4os4.h: Ditto.
4746 * config/sparc/xm-linux.h: Ditto.
4748 * config/i386/xm-windows.h: Delete file.
4750 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4752 * utils.c: Include <sys/param.h> for MAXPATHLEN.
4753 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
4755 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4757 * alpha-tdep.c (alpha_call_dummy_words): New.
4758 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
4759 (CALL_DUMMY_P): Define.
4760 (CALL_DUMMY_WORDS): Define.
4761 (SIZEOF_CALL_DUMMY_WORDS): Define.
4763 2002-01-19 Per Bothner <per@bothner.com>
4765 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
4766 isn't NULL, which can happen with some gcj-3.x-produced code.
4768 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4770 * alpha-tdep.c (alpha_register_virtual_type): New function.
4771 (alpha_init_frame_pc_first): Ditto.
4772 (alpha_fix_call_dummy): Ditto.
4773 (alpha_store_struct_return): Ditto.
4774 (alpha_extract_struct_value_address): Ditto.
4775 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
4776 alpha_register_virtual_type.
4777 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
4778 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
4779 alpha_extract_struct_value_address.
4780 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
4781 (INIT_FRAME_PC): Use init_frame_pc_noop.
4782 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
4784 2002-01-19 Mark Kettenis <kettenis@gnu.org>
4786 * i386gnu-nat.c: Include "i386-tdep.h".
4787 (fetch_fpregs): Simplify code dealing with uninitialized floating
4788 point states such that it doesn't require FP7_REGNUM.
4790 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4792 * alpha-tdep.c (frame_extra_info): New.
4793 (alpha_find_saved_regs): Make static. Use
4795 (alpha_frame_init_saved_regs): New function.
4796 (alpha_frame_saved_pc): Use frame->extra_info.
4797 (temp_saved_regs): Don't declare as struct frame_saved_regs.
4798 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
4799 (init_extra_frame_info): Rename to...
4800 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
4801 (alpha_print_extra_frame_info): New function.
4802 (alpha_frame_locals_address): Ditto.
4803 (alpha_frame_args_address): Ditto.
4804 (alpha_pop_frame): Use frame->extra_info.
4805 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
4806 alpha_frame_args_address.
4807 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
4808 (alpha_find_saved_regs): Remove prototype.
4809 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
4810 (EXTRA_FRAME_INFO): Remove.
4811 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
4812 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
4814 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4816 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
4817 (alpha_cannot_fetch_register): Ditto.
4818 (alpha_cannot_store_register): Ditto.
4819 (alpha_register_convertible): Ditto.
4820 (alpha_use_struct_convention): Ditto.
4821 * config/alpha/tm-alpha.h: Update copyright years.
4822 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
4823 (INNER_THAN): Use core_addr_lessthan.
4824 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
4825 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
4826 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
4827 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
4828 (FRAME_CHAIN): Remove unnecessary cast.
4830 2002-01-18 Andrew Cagney <ac131313@redhat.com>
4832 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
4835 2002-01-18 Andrew Cagney <ac131313@redhat.com>
4837 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
4838 * monitor.c, remote-array.c, remote-bug.c: Ditto.
4839 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
4840 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
4841 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
4842 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
4843 * x86-64-linux-nat.c: Ditto.
4845 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4847 * alpha-tdep.c (alpha_register_name): New function.
4848 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
4849 (REGISTER_NAME): Define.
4851 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4853 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
4855 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4857 * alpha-tdep.c: Update copyright years.
4858 (alpha_next_pc): New function.
4859 (alpha_software_single_step): Ditto.
4860 * config/alpha/tm-alpha.h: Add prototype for
4861 alpha_software_single_step.
4863 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4865 * alphabsd-nat.c: Update copyright years.
4866 (fill_gregset): Use regcache_collect.
4867 (fill_fpregset): Likewise.
4868 (fetch_inferior_registers): Only fetch integer registers
4869 if requested to do so.
4870 (store_inferior_registers): Only store integer registers
4871 if requested to do so.
4873 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4875 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
4876 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
4877 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
4878 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
4879 * config/alpha/fbsd.mh (XDEPFILES): Delete.
4880 * config/arm/linux.mh (XDEPFILES): Delete.
4881 * config/arm/nbsd.mh (XDEPFILES): Delete.
4882 * config/i386/i386dgux.mh (XDEPFILES): Delete.
4883 * config/i386/i386sol2.mh (XDEPFILES): Delete.
4884 * config/i386/i386m3.mh (XDEPFILES): Delete.
4885 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
4886 * config/i386/i386gnu.mh (XDEPFILES): Delete.
4887 * config/i386/fbsd.mh (XDEPFILES): Delete.
4888 * config/i386/i386bsd.mh (XDEPFILES): Delete.
4889 * config/i386/i386sco5.mh (XDEPFILES): Delete.
4890 * config/i386/i386v4.mh (XDEPFILES): Delete.
4891 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
4892 * config/i386/i386sco4.mh (XDEPFILES): Delete.
4893 * config/i386/i386aix.mh (XDEPFILES): Delete.
4894 * config/i386/go32.mh (XDEPFILES): Delete.
4895 * config/i386/cygwin.mh (XDEPFILES): Delete.
4896 * config/i386/i386lynx.mh (XDEPFILES): Delete.
4897 * config/i386/i386mach.mh (XDEPFILES): Delete.
4898 * config/i386/i386v32.mh (XDEPFILES): Delete.
4899 * config/i386/linux.mh (XDEPFILES): Delete.
4900 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
4901 * config/i386/ncr3000.mh (XDEPFILES): Delete.
4902 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
4903 * config/i386/i386sco.mh (XDEPFILES): Delete.
4904 * config/i386/i386v.mh (XDEPFILES): Delete.
4905 * config/i386/nbsd.mh (XDEPFILES): Delete.
4906 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
4907 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
4908 * config/i386/symmetry.mh (XDEPFILES): Delete.
4909 * config/i386/obsd.mh (XDEPFILES): Delete.
4910 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
4911 * config/ia64/linux.mh (XDEPFILES): Delete.
4912 * config/ia64/aix.mh (XDEPFILES): Delete.
4913 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
4914 * config/m68k/dpx2.mh (XDEPFILES): Delete.
4915 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
4916 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
4917 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
4918 * config/m68k/linux.mh (XDEPFILES): Delete.
4919 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
4920 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
4921 * config/m68k/nbsd.mh (XDEPFILES): Delete.
4922 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
4923 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
4924 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
4925 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
4926 * config/m88k/delta88.mh (XDEPFILES): Delete.
4927 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
4928 * config/m88k/m88k.mh (XDEPFILES): Delete.
4929 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
4930 * config/mips/linux.mh (XDEPFILES): Delete.
4931 * config/mips/irix6.mh (XDEPFILES): Delete.
4932 * config/mips/irix5.mh (XDEPFILES): Delete.
4933 * config/mips/irix4.mh (XDEPFILES): Delete.
4934 * config/mips/irix3.mh (XDEPFILES): Delete.
4935 * config/mips/decstation.mh (XDEPFILES): Delete.
4936 * config/mips/mipsm3.mh (XDEPFILES): Delete.
4937 (NATDEPFILES): Move core-aout.o to here.
4938 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
4939 * config/pa/hpux1020.mh (XDEPFILES): Delete.
4940 * config/pa/hppabsd.mh (XDEPFILES): Delete.
4941 * config/pa/hppahpux.mh (XDEPFILES): Delete.
4942 * config/pa/hpux11w.mh (XDEPFILES): Delete.
4943 * config/pa/hppaosf.mh (XDEPFILES): Delete.
4944 * config/pa/hpux11.mh (XDEPFILES): Delete.
4945 * config/powerpc/aix.mh (XDEPFILES): Delete.
4946 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
4947 * config/powerpc/linux.mh (XDEPFILES): Delete.
4948 * config/romp/rtbsd.mh: Rename XDEPFILES.
4949 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
4950 * config/rs6000/aix4.mh (XDEPFILES): Delete.
4951 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
4952 * config/s390/s390.mh (XDEPFILES): Delete.
4953 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
4954 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
4955 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
4956 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
4957 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
4958 * config/sparc/nbsd.mh (XDEPFILES): Delete.
4959 * config/sparc/linux.mh (XDEPFILES): Delete.
4960 * config/vax/vaxult.mh (XDEPFILES): Delete.
4961 * config/vax/vaxult2.mh (XDEPFILES): Delete.
4962 * Makefile.in (DEPFILES): Remove XDEPFILES.
4964 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4966 * utils.c (internal_verror): Fix comments, default is yes not no.
4967 Update queries to match. Default to quit and dump core.
4969 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4971 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
4973 * defs.h, event-top.c, gdbcmd.h: Ditto.
4974 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
4975 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
4976 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
4977 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
4978 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
4979 * mi/mi-main.c:Ditto.
4981 * stack.c, symfile.c: Update copyright.
4983 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
4985 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
4986 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
4987 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
4988 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
4990 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
4992 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
4993 * gdbserver/low-lynx.c (myattach): Likewise.
4994 * gdbserver/low-nbsd.c (myattach): Likewise.
4995 * gdbserver/low-sim.c (myattach): Likewise.
4996 * gdbserver/low-sparc.c (myattach): Likewise.
4997 * gdbserver/low-sun3.c (myattach): Likewise.
4999 * gdbserver/low-linux.c (myattach): New function.
5001 * gdbserver/server.c (attach_inferior): New function.
5002 (main): Handle "--attach".
5004 2002-01-16 Andrew Cagney <ac131313@redhat.com>
5006 * MAINTAINERS (language support): Daniel Jacobwitz is C++
5009 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
5011 * c-typeprint.c (is_type_conversion_operator): Add additional
5012 check for non-conversion operators.
5014 2002-01-15 Michael Snyder <msnyder@redhat.com>
5016 * linux-proc.c: Add "info proc" command, a la procfs.c.
5017 (read_mapping): New function, abstract and re-use code.
5018 (linux_find_memory_regions): Use new func read_mapping.
5019 (linux_info_proc_cmd): New function, implement "info proc".
5020 (_initialize_linux_proc): Add new command "info proc".
5022 2002-01-15 Michael Snyder <msnyder@redhat.com>
5024 * symfile.c (generic_load): Use bfd_map_over_sections method
5025 instead of manipulating bfd structure members directly.
5026 (add_section_size_callback): New function, bfd sections callback
5027 used by generic_load.
5028 (load_sections_callback): New function, bfd sections callback
5029 used by generic_load.
5031 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
5033 [Based on work by Jim Blandy]
5034 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
5035 (builtin_type_vec128): Export.
5036 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
5038 (builtin_type_vec128): New builtin type for 128 bit vector
5040 (build_gdbtypes): Initialize builtin_type_v16qi and
5041 builtin_type_v8hi. Create the vec128 register builtin type
5043 (build_builtin_type_vec128): New function.
5044 (_initialize_gdbtypes): Register builtin_type_v16qi and
5045 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
5046 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
5047 AltiVec register to new builtin type.
5049 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
5051 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
5054 2002-01-14 Andrew Cagney <ac131313@redhat.com>
5056 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
5057 CLEAN_UP_REGISTER_VALUE.
5058 * regcache.c (supply_register): Update only call.
5060 2002-01-14 Andrew Cagney <ac131313@redhat.com>
5062 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
5063 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
5064 a29k-*-vxworks* targets as obsolete.
5066 2002-01-14 Michael Snyder <msnyder@redhat.com>
5068 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
5069 until we can resolve portability issues.
5070 * gregset.h: Remove references to fpxregs.
5071 * gcore.c (gcore_command): Initialize note_sec to NULL.
5073 2002-01-13 Andrew Cagney <ac131313@redhat.com>
5075 * signals.c (target_signal_to_name): Rewrite. Only use
5076 signals[].name when in bounds and non-NULL.
5078 2002-01-13 Andrew Cagney <ac131313@redhat.com>
5080 From Petr Ledvina <ledvinap@kae.zcu.cz>:
5081 * signals.c (target_signal_to_name): Verify that SIG is within the
5082 bounds of the signals array.
5084 2002-01-13 Andrew Cagney <ac131313@redhat.com>
5086 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
5088 2002-01-13 Keith Seitz <keiths@redhat.com>
5090 * stack.c (print_frame_info_base): Print the frame's pc
5091 only if when print_frame_info_listing_hook is not defined.
5093 2002-01-13 Keith Seitz <keiths@redhat.com>
5095 * varobj.c (varobj_set_value): Make sure that there were no
5096 errors evaluating the object before attempting to set its
5098 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
5099 so this offset adjustment is no longer necessary.
5100 (create_child): Don't set the error flag if the child is
5102 (value_of_child): If value_fetch_lazy fails, return NULL
5103 so that callers will be notified that an error occurred.
5104 (c_value_of_variable): Delay check of variable's validity
5105 until later. We actually want all structs and unions to have
5107 Do not return "???" for variables which could not be evaluated.
5108 This error condition must be returned to the caller so that it
5109 can get the error condition from gdb.
5110 (cplus_name_of_child): Adjust index for vptr before figuring
5111 out the name of the child.
5112 (cplus_value_of_child): If a child's (real) parent is not valid,
5113 don't even bother trying to give a value for it. Just return
5114 an error. Change all instances in this function.
5115 (cplus_type_of_child): If our parent is one of the "fake"
5116 parents, we need to get at the type of the real parent, and
5117 derive the child's true type using this information.
5119 2002-01-13 Andrew Cagney <ac131313@redhat.com>
5121 From 2002-01-09 John Marshall <johnm@falch.net>:
5122 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
5123 sources.redhat.com, and tweak some related URLs which had
5124 suffered from linkrot.
5126 2002-01-13 Andrew Cagney <ac131313@redhat.com>
5129 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
5130 structures passed in registers.
5132 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
5134 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
5135 white space which prevented compilation. Reported by DSK
5136 <dsk@student.unsw.edu.au>.
5138 2002-01-11 Michael Snyder <msnyder@redhat.com>
5140 * symfile.c (build_section_addr_info_from_section_tab):
5141 Use bfd access method instead of manipulating bfd directly.
5142 (syms_from_objfile): Ditto.
5143 (simple_overlay_update_1): Ditto.
5144 (simple_overlay_update): Ditto.
5145 (generic_load): Ditto.
5146 (overlay_unmapped_address): FIXME comment, bfd access methods.
5147 (sections_overlap): FIXME comment, bfd access methods.
5148 (pc_in_mapped_range): FIXME comment, bfd access methods.
5149 (pc_in_unmapped_range): FIXME comment, bfd access methods.
5150 (section_is_mapped): FIXME comment, bfd access methods.
5151 (section_is_overlay): FIXME comment, bfd access methods.
5153 * symfile.c (generic_load): Whitespace and long line cleanups.
5154 Remove duplicate variable, change several local variables to
5155 more appropriate data types.
5156 (print_transfer_performance): Use %lu instead of %ld for ulongs.
5158 2002-01-12 Andrew Cagney <ac131313@redhat.com>
5161 * language.c (longest_local_hex_string_custom): Use phex_nz to
5162 convert NUM to a hex string.
5164 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
5166 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
5168 Update Copyright year.
5170 2002-01-12 Andrew Cagney <ac131313@redhat.com>
5172 * language.c (longest_raw_hex_string): Delete unused function.
5174 2002-01-11 Petr Sorfa <petrs@caldera.com>
5176 * MAINTAINERS (write-after-approval): Add myself.
5177 * dwarf2read.c (read_tag_string_type): Handling of
5179 (read_tag_string_type): FORTRAN fix to prevent propagation of
5181 (set_cu_language): Handling of DW_LANG_Fortran95
5183 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
5185 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
5186 GETPID(inferior_ptid).
5187 (store_inferior_registers): Likewise.
5189 2002-01-10 Jason Merrill <jason@redhat.com>
5191 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
5194 2002-01-10 Andrew Cagney <ac131313@redhat.com>
5196 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
5197 and bfd/elf32-sh-nbsd.c.
5199 2002-01-10 Michael Snyder <msnyder@redhat.com>
5201 * NEWS: Mention --pid and corefile/proc-id behavior change.
5203 * Makefile.in: Add rules for gcore.o and linux-proc.o.
5204 * gcore.c: Include cli/cli-decode.h instead of command.h.
5206 * main.c (captured_main): Add new command line option "--pid".
5207 If the second command line argument (following the symbol-file)
5208 begins with a digit, try to attach to it before trying to open
5210 (print_gdb_help): Document the "--pid" argument.
5212 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
5214 * completer.c (command_completer): New function.
5216 * completer.h <command_completer>: Add prototype.
5218 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
5219 completer for the "help" command.
5221 2002-01-09 Jason Merrill <jason@redhat.com>
5223 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
5225 2002-01-09 Michael Snyder <msnyder@redhat.com>
5227 * i386-linux-nat.c (fill_fpxregset): Make global.
5228 (store_fpxregset): Ditto.
5230 * gregset.h (gdb_fpxregset_t): Define.
5231 (supply_fpxregset): Prototype.
5232 (fill_fpxregset): Prototype.
5234 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
5236 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
5238 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
5239 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
5240 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
5242 2002-01-09 Andrew Cagney <ac131313@redhat.com>
5244 * MAINTAINERS: Update target maintainer rules so that any
5245 Maintainer can approve a tested patch for a maintenance-only
5248 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
5250 * MAINTAINERS (write-after-approval): Add myself.
5252 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
5255 2002-01-08 Michael Snyder <msnyder@redhat.com>
5257 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
5258 real name of the executable, rather than the /proc name.
5260 2002-01-03 Michael Snyder <msnyder@redhat.com>
5262 Implement a "generate-core-file" command in gdb, save target state.
5263 * gcore.c: New file. Implement new command 'generate-core-file'.
5264 Save a corefile image of the current state of the inferior.
5265 * linux-proc.c: Add linux-specific code for saving corefiles.
5266 * target.h (struct target_ops): Add new target vectors for saving
5267 corefiles; to_find_memory_regions and to_make_corefile_notes.
5268 (target_find_memory_regions): New macro.
5269 (target_make_corefile_notes): New macro.
5270 * target.c (update_current_target): Inherit new target methods.
5271 (dummy_find_memory_regions): New place-holder method.
5272 (dummy_make_corefile_notes): New place-holder method.
5273 (init_dummy_target): Initialize new dummy target vectors.
5274 * exec.c (exec_set_find_memory_regions): New function.
5275 Allow the exec_ops vector for memory regions to be taken over.
5276 (exec_make_note_section): New function, target vector method.
5277 * defs.h (exec_set_find_memory_regions): Export prototype.
5278 * procfs.c (proc_find_memory_regions): New function, corefile method.
5279 (procfs_make_note_section): New function, corefile method.
5280 (init_procfs_ops): Set new target vector pointers.
5281 (find_memory_regions_callback): New function.
5282 (procfs_do_thread_registers): New function.
5283 (procfs_corefile_thread_callback): New function.
5284 * sol-thread.c (sol_find_memory_regions): New function.
5285 (sol_make_note_section): New function.
5286 (init_sol_thread_ops): Initialize new target vectors.
5287 * inftarg.c (inftarg_set_find_memory_regions): New function.
5288 Allow to_find_memory_regions vector to be taken over.
5289 (inftarg_set_make_corefile_notes): New function.
5290 Allow to_make_corefile_notes vector to be taken over.
5291 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
5292 interface layer if not target_has_execution (may be a corefile).
5293 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
5294 * config/sparc/sun4sol2.mh: Ditto.
5295 * config/alpha/alpha-linux.mh: Ditto.
5296 * config/arm/linux.mh: Ditto.
5297 * config/i386/x86-64linux.mh: Ditto.
5298 * config/ia64/linux.mh: Ditto.
5299 * config/m68k/linux.mh: Ditto.
5300 * config/mips/linux.mh: Ditto.
5301 * config/powerpc/linux.mh: Ditto.
5302 * config/sparc/linux.mh: Ditto.
5304 2002-01-07 Michael Snyder <msnyder@redhat.com>
5306 * arm-linux-nat.c: Remove references to regcache.c internal data
5307 (registers[] and register_valid[]).
5309 2002-01-07 Michael Snyder <msnyder@redhat.com>
5311 * linux-proc.c: New file. Implement child_pid_to_exec_file,
5312 so that attaching to a pid will automatically read the process's
5313 symbol file and shlibs.
5314 * Makefile.in: Add rule for linux-proc.o.
5315 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
5316 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
5317 * config/arm/linux.mh: Ditto.
5318 * config/i386/linux.mh: Ditto.
5319 * config/i386/x86-64linux.mh: Ditto.
5320 * config/ia64/linux.mh: Ditto.
5321 * config/m68k/linux.mh: Ditto.
5322 * config/mips/linux.mh: Ditto.
5323 * config/powerpc/linux.mh: Ditto.
5324 * config/sparc/linux.mh: Ditto.
5326 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
5328 * win32-nat.c: Add i386-tdep.h dependency.
5330 2002-01-07 Michael Snyder <msnyder@redhat.com>
5332 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
5333 instead of bfd_get_arch_size. Don't bail out just because
5334 there's no exec_bfd.
5336 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
5337 * p-valprint.c (pascal_object_print_value): Ditto.
5338 * somread.c (som_symtab_read): Ditto.
5339 * symfile.c (simple_free_overlay_region_table): Ditto.
5340 * valops.c (value_assign): Ditto.
5342 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
5343 use tilde_expand and strerror for opening save-tracepoints file.
5345 * thread-db.c (thread_db_new_objfile): Indendation fix.
5347 * infptrace.c (GDB_MAX_ALLOCA): New define.
5348 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
5349 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
5350 can be overridden with whatever value is appropriate to the host).
5351 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
5352 alloca to allocate potentially large buffer.
5353 * rs6000-nat.c (child_xfer_memory): Ditto.
5354 * symm-nat.c (child_xfer_memory): Ditto.
5355 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
5357 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
5359 From Nick Clifton <nickc@redhat.com>
5360 * d10v-tdep.c: Set STACK_START to 0x200bffe.
5362 2002-01-07 Michael Snyder <msnyder@redhat.com>
5364 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
5365 Don't use exec_bfd if it's NULL.
5367 2002-01-06 Mark Kettenis <kettenis@gnu.org>
5369 * valops.c (value_arg_coerce): Fix formatting.
5371 2002-01-06 Andrew Cagney <ac131313@redhat.com>
5373 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
5376 2002-01-06 Andrew Cagney <ac131313@redhat.com>
5378 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
5379 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
5380 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
5381 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
5382 z8k-coff have not been multi-arched. Update z8k-coff build
5385 2002-01-06 Andrew Cagney <ac131313@redhat.com>
5387 * MAINTAINERS: Mark a29k target as obsolete.
5388 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
5389 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
5391 * NEWS: Note that a29k targets are obsolete.
5392 * a29k-tdep.c: Mark as obsolete.
5393 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
5394 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
5395 a29k-*-vxworks* targets as obsolete.
5396 * remote-adapt.c: Obsolete.
5397 * remote-eb.c: Obsolete.
5398 * remote-mm.c: Obsolete.
5399 * remote-udi.c: Obsolete.
5400 * config/a29k/a29k-udi.mt: Obsolete.
5401 * config/a29k/a29k.mt: Obsolete.
5402 * config/a29k/tm-a29k.h: Obsolete.
5403 * config/a29k/tm-vx29k.h: Obsolete.
5404 * config/a29k/vx29k.mt: Obsolete.
5406 2002-01-05 Andrew Cagney <ac131313@redhat.com>
5408 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
5409 with BFD_ENDIAN_BIG.
5411 2002-01-05 Andrew Cagney <ac131313@redhat.com>
5413 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
5414 * configure, config.in: Re-generate.
5415 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
5416 * defs.h: Do not include <endian.h>.
5418 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
5420 * acconfig.h (HAVE_PT_GETXMMREGS): New.
5421 * config.in: Regenerate.
5422 * configure.in: Update copyright years.
5423 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
5424 * configure: Regenerate.
5425 * i386bsd-nat.c: Update copyright years.
5426 (fill_gregset): Use regcache_collect.
5427 (fetch_inferior_registers): Only fetch integer registers
5428 if requested to do so. Add support for XMM registers
5429 using PT_GETXMMREGS.
5430 (store_inferior_registers): Only store integer registers
5431 if requested to do so. Add support for XMM registers
5432 using PT_SETXMMREGS.
5433 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
5434 (store_inferior_registers): Remove.
5435 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
5436 (fetch_elfcore_registers): New function.
5437 (i386nbsd_elfcore_fns): New.
5438 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
5439 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
5441 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5442 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
5443 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
5444 * config/i386/tm-nbsd.h: Update copyright years.
5445 (HAVE_SSE_REGS): Define.
5446 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
5447 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
5448 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
5449 (SIGCONTEXT_PC_OFFSET): Remove.
5450 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
5452 2002-01-05 Andrew Cagney <ac131313@redhat.com>
5454 * configure.tgt: Remove powerpc-*-macos* target.
5455 * config/m68k/xm-mpw.h: Delete file.
5456 * config/xm-mpw.h: Delete file.
5457 * ser-mac.c: Delete file.
5458 * mpw-make.sed: Delete file.
5459 * mpw-config.in: Delete file.
5460 * mac-xdep.c: Delete file.
5461 * mac-gdb.r: Delete file.
5462 * mac-defs.h: Delete file.
5463 * mac-nat.c: Delete file.
5464 * config/powerpc/macos.mh: Delete file.
5465 * config/powerpc/macos.mt: Delete file.
5466 * config/powerpc/nm-macos.h: Delete file.
5467 * config/powerpc/tm-macos.h: Delete file.
5468 * source.c (openp, open_source_file): Remove obsolete code.
5469 * top.c (gdb_readline): Ditto.
5470 * utils.c (query): Ditto.
5471 * event-top.c (display_gdb_prompt): Ditto.
5472 * Makefile.in (ser-mac.o): Delete obsolete target.
5475 2002-01-04 Andrew Cagney <ac131313@redhat.com>
5477 * defs.h (BIG_ENDIAN): Delete macro definition.
5478 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
5479 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
5480 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
5481 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
5482 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
5483 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
5484 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
5485 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
5486 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
5487 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
5488 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
5489 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
5490 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
5491 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
5492 * gdbarch.c: Re-generate.
5494 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5496 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
5499 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5501 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
5503 2002-01-04 Andrew Cagney <ac131313@redhat.com>
5505 * value.h (value_ptr): Delete typedef.
5507 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5509 * i386nbsd-nat.c: Update copyright years.
5510 Include i386-tdep.h.
5512 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
5514 * stabsread.c: Update copyright years.
5516 From Debashis Mahata <debashis.mahata@wipro.com>:
5517 (read_struct_fields): Deal with Sun C compiler erroneous stab
5518 output for structs and unions.
5521 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5523 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
5526 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5528 * cp-abi.c: Fix whitespace.
5529 (baseclass_offset): New wrapper function.
5530 * cp-abi.h (baseclass_offset): Add prototype.
5531 (struct cp_abi_ops): Add baseclass_offset pointer.
5533 * valops.c (vb_match): Move to...
5534 * gnu-v2-abi.c (vb_match): here.
5535 * valops.c (baseclass_offset): Move to...
5536 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
5538 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
5540 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
5541 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
5542 * hpacc-abi.c (init_hpacc_ops): Likewise.
5544 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5546 * valops.c (find_overload_match): Accept obj as a
5547 reference parameter. Update it before returning.
5548 * value.h (find_overload_match): Update prototype.
5549 * eval.c (evaluate_subexp_standard): Pass object to
5550 find_overload_match by reference.
5552 2002-01-03 Andrew Cagney <ac131313@redhat.com>
5554 * valarith.c: Replace value_ptr with struct value pointer. Remove
5555 register attribute from value declarations.
5558 * scm-lang.c (scm_lookup_name): Ditto.
5560 2002-01-03 Michael Snyder <msnyder@redhat.com>
5562 Abstract the functionality of iterating over mapped memory
5563 regions into a general purpose iterator function.
5564 * procfs.c (iterate_over_mappings): New function, general purpose
5565 iterator for memory sections.
5566 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
5567 (solib_mappings_callback): New function, callback for above.
5568 (info_proc_mappings): Reimpliment using iterate_over_mappings.
5569 (info_mappings_callback): New function, callback for above.
5571 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
5573 2002-01-01 Mark Kettenis <kettenis@gnu.org>
5575 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
5576 * i386-tdep.c: Include "elf-bfd.h".
5577 (process_note_abi_tag_sections): New function.
5578 (i386_gdbarch_init): Add code to recognize various OS/ABI
5581 * maint.c (_initialize_maint_cmds): Add missing \ in
5584 For older changes see ChangeLog-2001
5590 version-control: never