1 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
3 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
4 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5 (alphanbsd-nat.o): Likewise.
6 (alphabsd-tdep.o): New dependency list.
7 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8 (fill_gregset): Use alphabsd_fill_reg.
9 (supply_fpregset): Use alphabsd_supply_fpreg.
10 (fill_fpregset): Use alphabsd_fill_fpreg.
11 (fetch_inferior_registers): Use struct reg and struct fpreg
12 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
13 and alphabsd_supply_fpreg.
14 (store_inferior_registers): Use struct reg and struct fpreg
15 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
16 and alphabsd_fill_fpreg.
17 * alphabsd-tdep.c: New file.
18 * alphabsd-tdep.h: New file.
19 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
20 (fetch_elfcore_registers): Use alphabsd_supply_reg and
21 alphabsd_supply_fpreg.
22 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
23 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
25 2002-05-11 Eric Christopher <echristo@redhat.com>
27 * mips-tdep.c (mips_double_register_type): Fix thinko.
28 (mips_single_register_type): Ditto.
29 * MAINTAINERS: Add self.
31 2002-05-11 Mark Kettenis <kettenis@gnu.org>
33 * i387-nat.c (i387_supply_register, i387_fill_fsave,
34 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
35 right thing on architectures with different endianness and/or
38 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
40 From Christian Limpach <chris@Pin.LU>
41 * configure.in: Change sed expression which comments out
42 NATDEPFILES to also comment out continuation lines.
43 * configure: Regenerate.
45 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
47 * sh-tdep.c: Clean up code erroneously reintroduced by previous
50 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
52 * sh-tdep.c: Include correct file.
54 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
56 New support for sh64-elf (sh5) target.
58 * configure.tgt: For sh64-elf target, default to sh-elf.
60 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
61 (struct gdbarch_tdep): Add new fields for new registers and ABI
64 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
65 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
66 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
67 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
68 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
69 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
70 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
71 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
72 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
73 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
74 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
75 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
76 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
77 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
78 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
79 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
80 sh64_get_gdb_regnum, sh64_media_reg_base_num,
81 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
82 sign_extend, sh64_nofp_frame_init_saved_regs,
83 sh64_init_extra_frame_info, sh64_get_saved_register,
84 sh64_extract_struct_value_address, sh64_pop_frame,
85 sh64_push_arguments, sh64_extract_return_value,
86 sh64_store_return_value, sh64_show_media_regs,
87 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
88 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
89 sh_sh64_register_virtual_type,
90 sh_sh64_register_convert_to_virtual,
91 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
92 sh64_register_read, sh64_pseudo_register_write,
93 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
94 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
95 sh64_do_pseudo_register, sh_compact_do_registers_info,
96 sh64_do_registers_info, sh_gdbarch_init): New functions.
98 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
100 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
102 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
104 * linespec.c (decode_line_1): Check for a double quote after
105 a filename correctly.
107 2002-05-10 Jim Blandy <jimb@redhat.com>
109 Properly track the size of the current objfile's .debug_line section.
110 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
111 (DWARF_LINE_SIZE): New macro.
112 (dwarf2_build_psymtabs_hard): Record the line section's size in
113 the partial symbol table.
114 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
117 2002-05-10 Petr Sorfa <petrs@caldera.com>
119 * ia64-tdep.c: Handle breakpoints on L instruction type
120 in MLX instruction bundle by moving the breakpoint to
121 the third slot (X instruction type) as L holds only data.
123 2002-05-10 Kevin Buettner <kevinb@redhat.com>
125 * dbxread.c (discarding_local_symbols_complaint): New complaint.
126 (process_one_symbol): Complain about discarding local symbols
127 due to a misplaced N_LBRAC entry.
129 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
131 From Daniel Berlin <dan@cgsoftware.com>
132 * linespec.c (find_toplevel_char): '<' and '>' also increase and
133 decrease the depth we are at, in the case of templates.
135 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
137 * mips-tdep.c (mips_float_register_type): New function.
138 (mips_double_register_type): New function.
139 (mips_print_register): Use them.
140 (do_fp_register_row): Likewise.
142 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
144 * signals/signals.c (signals): Remove conditional compilation around
145 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
146 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
148 2002-05-09 Michael Snyder <msnyder@redhat.com>
150 * remote-rdp.c (remote_rdp_can_run): Remove.
152 2002-05-09 Tom Tromey <tromey@redhat.com>
154 * jv-valprint.c (java_val_print): Handle `char' as a special case
157 2002-05-09 Michael Snyder <msnyder@redhat.com>
159 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
160 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
161 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
162 str r(0123),[sp,#nn].
163 (arm_skip_prologue): Ditto. Also make disassembly
164 order-independent by placing it in a loop.
166 2002-05-06 Michael Snyder <msnyder@redhat.com>
168 * stabsread.c (read_type): Add recognition for new attribute:
169 "@V;" means that an array type is actually a vector.
170 This is analogous to the vector flag that's been added to dwarf2.
172 2002-05-09 Mark Kettenis <kettenis@gnu.org>
174 * i386-tdep.h (i386_abi): New enum.
175 (struct gdbarch_tdep): Replace os_ident member with abi.
176 (i386_gdbarch_register_os_abi): New prototype.
177 * i386-tdep.c (i386_abi_names): New array.
178 (process_note_abi_tag_sections): Removed.
179 (process_note_sections): New function.
180 (i386_elf_abi_from_note, i386_elf_abi): New functions.
181 (struct i386_abi_handler): New struct.
182 (i386_abi_handler_list): New variable.
183 (i386_gdbarch_register_os_abi): New function.
184 (i386_gdbarch_init): Adapt for the changes given above.
186 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
188 * gregset.h: Say "GNU/Linux".
190 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
192 * gdbtypes.c : Add new builtin type for 64 bit vectors.
193 (build_gdbtypes): Build builtin_type_v2_float.
194 (_initialize_gdbtypes): Register new builtin type.
196 2002-05-08 Andrew Cagney <ac131313@redhat.com>
198 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
199 (clear_gdbarch_swap): New function.
200 (initialize_non_multiarch): Call.
201 (gdbarch_update_p): Before calling init(), swap out and clear the
202 existing architecture.
203 * gdbarch.c: Regenerate.
205 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
207 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
210 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
212 * sh-nbsd-nat.c: Rename to...
213 * shnbsd-nat.c: ...this.
214 * sh-nbsd-tdep.c: Rename to...
215 * shnbsd-tdep.c: ...this.
216 * sh-nbsd-tdep.h: Rename to...
217 * shnbsd-tdep.h: ...this.
218 * config/sh/nbsd.mh: Use shnbsd-nat.o.
219 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
221 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
223 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
224 concatenation for command help messages.
226 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
228 * NEWS: Note new sh*-*-netbsdelf* configuration.
229 * configure.host: Set gdb_host_cpu to sh for all sh*.
230 (sh*-*-netbsdelf*): New host.
231 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
232 (sh*-*-netbsdelf*): New target.
233 * sh-nbsd-nat.c: New file.
234 * sh-nbsd-tdep.c: New file.
235 * sh-nbsd-tdep.h: New file.
236 * config/sh/nbsd.mh: New file.
237 * config/sh/nbsd.mt: New file.
238 * config/sh/nm-nbsd.h: New file.
239 * config/sh/tm-nbsd.h: New file.
241 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
243 * sh-tdep.c (sh_osabi_names): Declare.
244 (process_note_abi_tag_sections): New function.
245 (get_elfosabi): Ditto.
246 (sh_gdbarch_register_os_abi): Ditto.
247 (sh_dump_tdep): Ditto.
248 _initialize_sh_tdep): Use gdbarch_register to register
249 sh_gdbarch_init and sh_dump_tdep.
250 * config/sh/tm-sh.h (sh_osabi): Declare.
251 (gdbarch_tdep): Add sh_osabi and osabi_name members.
253 2002-05-07 Andrew Cagney <ac131313@redhat.com>
255 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
256 (thumb_scan_prologue): Ditto.
257 (arm_find_callers_reg): Ditto.
258 (arm_frame_chain): Ditto.
259 (arm_init_extra_frame_info): Ditto.
260 (arm_frame_saved_pc): Ditto.
261 (arm_pop_frame): Ditto.
262 (arm_push_return_address): New function.
263 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
264 call_dummy_location, call_dummy_breakpoint_offset_p,
265 call_dummy_breakpoint_offset, call_dummy_p,
266 call_dummy_stack_adjust_p, call_dummy_words,
267 sizeof_call_dummy_words, call_dummy_start_offset,
268 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
269 call_dummy_address, push_return_address and push_dummy_frame for
270 generic dummy frames.
272 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
274 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
275 size computation for alloca.
276 (sh_fp_frame_init_saved_regs): Likewise.
278 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
280 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
281 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
282 * arm-tdep.c (arm_store_return_value): Use them.
283 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
284 * remote-rdp.c (remote_rdp_fetch_register): Use
285 ARM_MAX_REGISTER_RAW_SIZE.
286 (remote_rdp_store_register): Likewise.
288 2002-05-07 Michal Ludvig <mludvig@suse.cz>
290 * dwarf2cfi.c: Code cleanup, removed unused variables,
291 added default labels to switch {} statements.
292 * x86-64-tdep.c: Ditto.
293 * x86-64-linux-nat.c: Ditto.
295 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
297 * solib.h: Protect against multiple inclusion.
299 2002-05-06 Jim Blandy <jimb@redhat.com>
301 Add first preprocessor macro-expansion files.
302 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
303 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
304 (splay_tree_h, macroexp_h, macrotab_h): New variable.
305 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
306 (COMMON_OBS): Add macrotab.o, macroexp.o.
307 (macroexp.o, macrotab.o): New rules.
309 Separate the job of reading the line number info statement program
310 header (...expialidocious) out into its own function.
311 * dwarf2read.c (struct line_head, struct filenames, struct
312 directories): Replace with...
313 (struct line_header): New structure, containing the full
314 contents of the statement program header, including the
315 include directory and file name tables.
316 (read_file_scope): If we have line number info, instead of just
317 calling dwarf_decode_lines to do all the work, call
318 dwarf_decode_line_header first to get a `struct line_header'
319 containing the data in the statement program header, and then
320 pass that to dwarf_decode_lines, which will pick up where that
321 left off. Be sure to clean up the `struct line_header' object.
322 (dwarf_decode_line_header, free_line_header, add_include_dir,
323 add_file_name): New functions.
324 (dwarf_decode_lines): Move all the code to read the statement
325 program header into dwarf_decode_line_header. Take the line
326 header it built as the first argument, instead of the offset to
327 the compilation unit's line number info. Use the new `struct
328 line_header' type instead of the old structures. No need to do
329 cleanups here now, since we don't allocate anything.
330 (dwarf2_statement_list_fits_in_line_number_section,
331 dwarf2_line_header_too_long): New complaints.
333 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
335 * gdbtypes.c (init_vector_type): New function.
336 (build_builtin_type_vec128): Simplify the representation of SIMD
338 (build_gdbtypes): Initialize new builtin vector types.
339 (_initialize_gdbtypes): Register new vector types with gdbarch.
340 (builtin_type_v4_float, builtin_type_v4_int32,
341 builtin_type_v8_int16, builtin_type_v16_int8,
342 builtin_type_v2_int32, builtin_type_v4_int16,
343 builtin_type_v8_int8): New (renamed) SIMD types.
345 2002-05-06 Mark Kettenis <kettenis@gnu.org>
347 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
348 (i387_fill_fxsave): Likewise.
350 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
352 * alpha-tdep.c (alpha_extract_return_value): Don't use
353 non-constant array size in prototype.
355 2002-05-04 Andrew Cagney <ac131313@redhat.com>
357 From Brian Taylor <briant at model dot com>:
358 * ui-out.c (ui_out_field_core_addr): Use the function
359 longest_local_hex_string_custom'to format addresses > 32 bits
362 * ui-out.c (ui_out_field_core_addr): Update comment.
364 2002-05-04 Andrew Cagney <ac131313@redhat.com>
366 * stack.c (select_and_print_frame): Make static. Delete the
368 (func_command): Update call.
369 (select_frame_command): Delete code computing the frame level.
370 * frame.h (select_and_print_frame): Delete declaration.
372 2002-05-04 Andrew Cagney <ac131313@redhat.com>
374 * sparc-tdep.c (sparc_get_saved_register): Comment why
375 get_prev_frame call is safe.
377 2002-05-04 Andrew Cagney <ac131313@redhat.com>
379 * frame.h (select_frame): Delete level parameter.
380 * stack.c (select_frame): Update. Use frame_relative_level to
381 obtain the frame's level.
382 (select_and_print_frame): Update call.
383 (select_frame_command): Ditto.
384 (up_silently_base): Ditto.
385 (down_silently_base): Ditto.
386 * ocd.c (ocd_start_remote): Ditto.
387 * remote-rdp.c (remote_rdp_open): Ditto.
388 * remote-mips.c (mips_initialize): Ditto.
389 (common_open): Ditto.
390 * remote-e7000.c (e7000_start_remote): Ditto.
391 * m3-nat.c (select_thread): Ditto.
392 * hppa-tdep.c (child_get_current_exception_event): Ditto.
393 (child_get_current_exception_event): Ditto.
394 * varobj.c (varobj_create): Ditto.
395 (varobj_update): Ditto.
396 (c_value_of_root): Ditto.
397 * tracepoint.c (finish_tfind_command): Ditto.
398 * corelow.c (core_open): Ditto.
399 * arch-utils.c (generic_prepare_to_proceed): Ditto.
400 * thread.c (info_threads_command): Ditto.
401 (switch_to_thread): Ditto.
402 * infrun.c (normal_stop): Ditto.
403 (restore_selected_frame): Ditto.
404 (restore_inferior_status): Ditto.
405 * breakpoint.c (insert_breakpoints): Ditto.
406 (watchpoint_check): Ditto.
407 (bpstat_stop_status): Ditto.
408 (do_enable_breakpoint): Ditto.
409 * blockframe.c (flush_cached_frames): Ditto.
410 (reinit_frame_cache): Ditto.
412 2002-05-04 Andrew Cagney <ac131313@redhat.com>
414 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
417 2002-05-04 Jim Blandy <jimb@redhat.com>
419 * gdbtypes.c (replace_type): Doc fix.
421 2002-05-04 Andrew Cagney <ac131313@redhat.com>
423 * valprint.c (strcat_longest): Delete commented out function.
426 2002-05-04 Andrew Cagney <ac131313@redhat.com>
428 * MAINTAINERS: Mark a29k as deleted.
429 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
430 Move new configurations to the top.
431 * configure.tgt: Remove a29k.
432 * config/a29k/tm-vx29k.h: Delete.
433 * config/a29k/vx29k.mt: Delete.
434 * config/a29k/tm-a29k.h: Delete.
435 * config/a29k/a29k-udi.mt: Delete.
436 * config/a29k/a29k.mt: Delete.
437 * a29k-tdep.c: Delete.
438 * remote-udi.c: Delete.
439 * remote-mm.c: Delete.
440 * remote-eb.c: Delete.
441 * remote-adapt.c: Delete.
442 * Makefile.in: Remove obsolete code.
443 * gdbserver/Makefile.in: Ditto.
444 * config/s390/s390x.mt: Ditto.
445 * config/s390/s390.mt: Ditto.
446 * config/sparc/sparclynx.mh: Ditto.
447 * config/sparc/linux.mh: Ditto.
448 * config/pa/hppaosf.mh: Ditto.
449 * config/pa/hppabsd.mh: Ditto.
450 * config/ns32k/nbsd.mt: Ditto.
451 * config/mips/vr5000.mt: Ditto.
452 * config/m68k/sun3os4.mh: Ditto.
453 * config/m68k/nbsd.mt: Ditto.
454 * config/m68k/m68klynx.mh: Ditto.
455 * config/m32r/m32r.mt: Ditto.
456 * config/i386/x86-64linux.mt: Ditto.
457 * config/i386/nbsdelf.mt: Ditto.
458 * config/i386/nbsd.mt: Ditto.
459 * config/i386/i386lynx.mh: Ditto.
461 2002-05-04 Andrew Cagney <ac131313@redhat.com>
463 * target.c (debug_print_register): New function. Handle oversize
465 (debug_to_fetch_registers): Call.
466 (debug_to_store_registers): Call.
468 2002-05-03 Jim Blandy <jimb@redhat.com>
470 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
471 (read_type): Doc fix.
472 * gdbtypes.c (replace_type): Doc fix.
474 * stabsread.c (multiply_defined_struct): New complaint.
475 (read_struct_type): If the type we were passed isn't empty, or
476 incomplete, don't read the new struct type into it; complain,
477 and return the original type unchanged. Take a new `type_code'
478 argument, which is the type code for the new type.
479 (read_type): Rather than storing the type's type code here, pass
480 it as an argument to read_struct_type, and let that take care of
481 storing it. That way, we don't overwrite the original type code,
482 so read_struct_type can use it to decide whether we're overwriting
483 something we shouldn't.
484 (complain_about_struct_wipeout): New function.
486 2002-05-03 Andrew Cagney <ac131313@redhat.com>
488 * gdbarch.sh: Assert that gdbarch is non-NULL.
489 * gdbarch.c: Regenerate.
491 2002-05-03 Jason Merrill <jason@redhat.com>
493 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
496 2002-05-03 Michal Ludvig <mludvig@suse.cz>
498 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
499 (x86_64_dwarf2gdb_regno_map_length),
500 (x86_64_dwarf2_reg_to_regnum): Added.
501 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
502 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
503 (_initialize_x86_64_tdep): Synced with the change above.
504 (x86_64_skip_prologue): Reformulated message.
506 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
508 * f-exp.y: Also use new prev_lexptr variable
509 to improve error reporting. Based on Michael Snyder
510 2002-04-24 dated patch to c-exp.y.
511 * jv-exp.y: Likewise.
512 * m2-exp.y: Likewise.
514 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
516 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
517 we are dealing with vectors.
519 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
521 * config/m68k/tm-nbsd.h: Obvious fix,
522 correct machine name.
524 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
526 * p-typeprint.c (pascal_type_print_base): Add support
527 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
529 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
531 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
532 for fondamental pascal 'char' type.
534 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
536 * p-lang.h (is_pascal_string_type): Declaration changed,
537 new sixth argument of type char ** added.
538 * p-lang.c (is_pascal_string_type): Implementation
539 changed. Args length_pos, length_size, string_pos, char_size
540 can now be NULL. New argument arrayname set to the field
541 name of the char array. Return value set to char array
542 field index plus one.
543 * p-valprint.c (pascal_val_print): Adapt to new declaration of
544 is_pascal_string_type function.
546 2002-05-02 Andrew Cagney <cagney@redhat.com>
548 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
549 <cagney@redhat.com> change.
550 * gdbarch.c: Regenerate.
552 2002-05-02 Andrew Cagney <cagney@redhat.com>
554 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
555 before probing for a new one. Detect errorenous gdbarch_init
557 * gdbarch.c: Regenerate.
559 2002-05-01 Andrew Cagney <cagney@redhat.com>
561 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
562 * config/mcore/tm-mcore.h: Ditto. Update copyright.
563 * config/v850/tm-v850.h: Ditto. Update copyright.
565 2002-04-30 Andrew Cagney <ac131313@redhat.com>
567 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
570 2002-04-30 Michael Snyder <msnyder@redhat.com>
572 * arm-tdep.c: Whitespace clean-ups.
573 (arm_skip_prologue): Fix thinko; two lines
574 should have been removed as part of 4/24 change.
576 2002-04-30 Kevin Buettner <kevinb@redhat.com>
578 * rs6000-tdep.c: Added comment describing how fpscr register
581 2002-04-30 Michael Snyder <msnyder@redhat.com>
583 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
585 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
587 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
588 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
589 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
591 2002-04-29 Kevin Buettner <kevinb@redhat.com>
593 From Louis Hamilton <hamilton@redhat.com>:
594 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
595 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
596 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
597 not bfd-private xcoff data, to determine wordsize.
598 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
600 2002-04-29 Andrew Cagney <ac131313@redhat.com>
602 GDB 5.2 released from 5.2 branch.
604 2002-04-29 Michal Ludvig <mludvig@suse.cz>
606 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
607 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
608 (x86_64_register_info_table): Added comments with register numbers.
610 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
612 * rs6000-tdep.c (rs6000_extract_return_value,
613 rs6000_store_return_value): Handle returning vectors.
614 (rs6000_gdbarch_init): Use
615 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
616 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
618 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
620 (ppc_sysv_abi_push_arguments): Handle vector parameters.
621 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
623 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
625 * hpread.c (hpread_psymtab_to_symtab_1,
626 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
627 with fprintf_unfiltered (gdb_stderr,...).
629 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
631 * remote-array.c (printf_monitor, write_monitor,
632 array_insert_breakpoint, array_remove_breakpoint ):
633 Replace fprintf (stderr,...
634 with fprintf_unfiltered (gdb_stderr,....
635 * remote-es.c: Likewise.
636 * remote-os9k.c: Likewise.
637 * remote-st.c: Likewise.
639 2002-04-28 Andreas Schwab <schwab@suse.de>
641 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
642 linux-proc.o and gcore.o.
644 2002-04-26 Michal Ludvig <mludvig@suse.cz>
646 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
647 code without frame pointers.
649 2002-04-26 Andrew Cagney <ac131313@redhat.com>
651 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
654 2002-04-26 Ben Elliston <bje@redhat.com>
656 * target.c (do_xfer_memory): Correct reference to the new option
657 "trust-readonly-sections".
659 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
661 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
662 * gdbtypes.c (recursive_dump_type): Output the vector flag.
663 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
665 (read_array_type): Record the fact that this array type is really a
666 vector (i.e. are passed in by value).
668 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
670 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
671 * alpha-tdep.c (alpha_sigcontext_addr): New function.
672 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
673 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
674 * alpha-linux-tdep.c: Include frame.h.
675 (alpha_linux_sigcontext_addr): New function.
676 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
677 alpha_linux_sigcontext_addr.
678 * alpha-osf1-tdep.c: Include gdbcore.h.
679 (alpha_osf1_sigcontext_addr): New function.
680 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
681 alpha_osf1_sigcontext_addr.
682 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
683 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
685 2002-04-26 Andrew Cagney <ac131313@redhat.com>
687 * stack.c (selected_frame_level):
688 (select_frame): Do not set selected_frame_level.
689 * frame.h (selected_frame_level): Delete declaration.
691 2002-04-26 Andrew Cagney <ac131313@redhat.com>
693 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
694 convert_from_func_ptr-addr when AIX / PowerOpen.
696 2002-04-25 Andrew Cagney <ac131313@redhat.com>
698 * valops.c (hand_function_call): Call
699 generic_save_call_dummy_addr.
700 * frame.h (generic_save_call_dummy_addr): Declare.
701 * blockframe.c (struct dummy_frame): Add fields call_lo and
703 (generic_find_dummy_frame): Check for PC in range call_lo to
704 call_hi instead of entry_point_address.
705 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
706 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
707 (generic_save_call_dummy_addr): New function.
709 2002-04-24 David S. Miller <davem@redhat.com>
711 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
713 (sparc_skip_prologue): Kill frameless_p arg, and use line number
714 information to find prologue when possible.
715 (sparc_prologue_frameless_p): Call examine_prologue directly.
716 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
717 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
719 (SKIP_PROLOGUE): Likewise.
721 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
723 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
724 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
725 indicate that the condition it was testing is always true.
726 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
727 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
728 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
730 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
732 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
733 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
734 tdep->jb_pc and tdep->jb_elt_size.
735 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
736 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
737 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
738 * alpha-nat.c (get_longjmp_target): Remove.
739 (JB_ELEMENT_SIZE): Ditto.
741 * alpha-tdep.c (alpha_get_longjmp_target): New function.
742 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
743 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
744 to alpha_get_longjmp_target.
745 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
746 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
747 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
749 2002-04-25 Andrew Cagney <ac131313@redhat.com>
751 * README: Update to GDB 5.2.
753 2002-04-25 Andrew Cagney <ac131313@redhat.com>
755 * gdbarch.sh (LC_ALL): Set to `c'.
757 2002-04-25 Theodore A. Roth <troth@verinet.com>
759 * avr-tdep.c: Ran through gdb_indent.sh.
761 2002-04-25 Theodore A. Roth <troth@verinet.com>
763 * MAINTAINERS: Add myself as AVR maintainer.
764 * NEWS: Note new target avr.
766 2002-04-25 Theodore A. Roth <troth@verinet.com>
768 * Makefile.in: Add support for AVR target.
769 * configure.tgt: Add support for AVR target.
770 * avr-tdep.c: New file
771 * config/avr/avr.mt: New file.
773 2002-04-25 Theodore A. Roth <troth@verinet.com>
775 * MAINTAINERS: Add myself to write-after-approval.
777 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
779 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
780 with fprintf_unfiltered (gdb_stderr,....
782 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
785 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
787 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
789 * p-exp.y: Also use new prev_lexptr variable
790 to improve error reporting. Based on Michael Snyder
791 2002-04-24 dated patch to c-exp.y.
793 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
795 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
796 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
797 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
799 * config/alpha/tm-alpha.h: Remove forward decls of struct type
801 (FUNCTION_START_OFFSET): Remove.
804 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
806 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
809 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
811 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
812 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
813 alpha_linux_pc_in_sigtramp.
814 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
815 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
816 alpha_osf1_pc_in_sigtramp.
817 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
818 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
819 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
820 alphafbsd_pc_in_sigtramp.
821 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
822 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
823 alphanbsd_pc_in_sigtramp.
824 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
825 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
827 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
829 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
831 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
833 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
835 (alphanbsd-nat.o): New dependency list.
836 (alphanbsd-tdep.o): Ditto.
837 * NEWS: Note new native NetBSD/alpha configuration.
838 * alphanbsd-nat.c: New file.
839 * alphanbsd-tdep.c: Ditto.
840 * configure.host (alpha*-*-netbsd*): New host.
841 * configure.tgt (alpha*-*-netbsd*): New target.
842 * config/alpha/nbsd.mh: New file.
843 * config/alpha/nbsd.mt: Ditto.
844 * config/alpha/nm-nbsd.h: Ditto.
845 * config/alpha/tm-nbsd.h: Ditto.
847 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
849 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
850 (alpha-osf1-tdep.o): New dependency list.
851 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
852 and skip_sigtramp_frame members.
853 * alpha-linux-tdep.c: Include gdbcore.h.
854 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
855 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
856 * alpha-osf1-tdep.c: New file.
857 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
859 (alpha_frame_past_sigtramp_frame): New function.
860 (alpha_dynamic_sigtramp_offset): Ditto.
861 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
862 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
863 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
864 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
865 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
866 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
867 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
868 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
869 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
870 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
871 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
872 to find_solib_trampoline_target.
873 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
874 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
875 (SKIP_TRAMPOLINE_CODE): Remove.
876 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
877 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
878 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
879 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
880 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
881 (PROC_SIGTRAMP_MAGIC): Ditto.
882 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
883 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
884 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
885 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
886 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
888 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
890 * NEWS: Note that Alpha targets are now multi-arch.
892 2002-04-24 Michael Snyder <msnyder@redhat.com>
894 * parser-defs.h (prev_lexptr): New external variable.
895 * parse.c (parse_exp_1): Set prev_lexptr to null before
896 calling the language-specific parser.
897 * c-exp.y (yylex): Set prev_lexptr to start of current token.
898 (yyerror): Use prev_lexptr in error reporting.
900 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
902 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
903 * gregset.h: If FILL_FPXREGSET is defined, provide
904 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
905 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
906 is defined, call fill_fpxregset.
908 2002-04-24 Roland McGrath <roland@frob.com>
910 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
911 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
912 (supply_gregset, supply_fpregset): New functions.
914 * gnu-nat.c (gnu_find_memory_regions): New function.
915 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
916 (gnu_xfer_memory): Add a cast.
918 2002-04-24 Michael Snyder <msnyder@redhat.com>
920 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
921 loop. Add handling for "str lr, [sp, #-4]!" and for saves
922 of argument regs ("str r(0123), [r11, #-nn"]).
923 (arm_skip_prologue): Better handling for frameless functions.
924 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
925 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
927 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
929 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
930 NUM_PSEUDO_REGS can be used.
932 2002-04-24 Andrew Cagney <ac131313@redhat.com>
934 * arch-utils.h: Update copyright.
936 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
937 * gdbarch.h, gdbarch.c: Re-generate.
939 * inferior.h (IN_SIGTRAMP): Delete definition.
940 * arch-utils.c (legacy_pc_in_sigtramp): New function.
941 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
943 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
944 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
945 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
946 (find_proc_framesize): Ditto.
947 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
948 (alpha_init_extra_frame_info): Ditto.
949 * infrun.c (handle_inferior_event): Ditto.
950 (handle_inferior_event): Ditto.
951 (check_sigtramp2): Ditto.
952 * blockframe.c (create_new_frame): Ditto.
953 (get_prev_frame): Ditto.
954 * ppc-linux-tdep.c: Update comments.
955 * i386-linux-tdep.c: Update comments.
956 * breakpoint.c (bpstat_what): Update comment.
958 2002-04-24 Michal Ludvig <mludvig@suse.cz>
960 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
961 (regsets_store_inferior_registers): Removed cast to int from
963 * gdbserver/regcache.h: Added declaration of struct inferior_info.
965 2002-04-24 David S. Miller <davem@redhat.com>
967 * i960-tdep.c (register_in_window_p): New function.
968 (i960_find_saved_register): Use it instead of
969 REGISTER_IN_WINDOW_P.
970 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
972 * symtab.h (find_stab_function_addr): Kill extern.
973 * minsyms.c (find_stab_function_addr): Remove from here...
974 * dbxread.c: ... to here, and mark it static.
976 2002-04-20 David S. Miller <davem@redhat.com>
978 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
979 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
981 2002-04-21 David S. Miller <davem@redhat.com>
983 * remote-vxsparc.c (vx_read_register): Fix typo, we want
984 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
985 (vx_write_register): Likewise.
987 2002-04-23 J. Brobecker <brobecker@gnat.com>
989 * source.c (is_regular_file): New function.
990 (openp): Check wether file to open is a regular file
991 to avoid opening directories.
993 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
995 * findvar.c (extract_signed_integer): Cast printf argument
996 to suppress format warning.
997 (extract_unsigned_integer): Likewise.
998 * infcmd.c (registers_info): Likewise.
999 * top.c (get_prompt_1): Likewise.
1000 * valops.c (value_assign): Likewise.
1001 * valprint.c (print_decimal): Likewise.
1003 2002-04-22 H.J. Lu (hjl@gnu.org)
1005 * c-exp.y (typebase): Support
1007 [long|long long|short] [signed|unsigned] [int|]
1011 signed [long|long long|short] int
1013 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1015 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
1017 * vax-tdep.h: New file.
1018 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
1019 Make several routines static.
1020 (vax_get_saved_register): New function.
1021 (vax_gdbarch_init): New function.
1022 (_initialize_vax_tdep): Register vax_gdbarch_init.
1023 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
1024 Remove macros now under the control of gdbarch.
1026 2002-04-22 Michael Snyder <msnyder@redhat.com>
1028 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
1029 Some whitespace and coding standards tweaks.
1031 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1033 * vax-tdep.c: Include regcache.h.
1034 (vax_call_dummy_words): New.
1035 (sizeof_vax_call_dummy_words): New.
1036 (vax_fix_call_dummy): New function.
1037 (vax_saved_pc_after_call): Ditto.
1038 * config/vax/tm-vax.h: Don't include regcache.h.
1039 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
1040 (CALL_DUMMY): Remove.
1041 (CALL_DUMMY_WORDS): Define.
1042 (SIZEOF_CALL_DUMMY_WORDS): Define.
1043 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
1045 2002-04-18 Michael Snyder <msnyder@redhat.com>
1047 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
1049 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1051 * vax-tdep.c (vax_frame_chain): New function.
1052 (vax_push_dummy_frame): Ditto.
1053 (vax_pop_frame): Ditto.
1054 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
1055 (FRAMELESS_FUNCTION_INVOCATION): Use
1056 generic_frameless_function_invocation_not.
1057 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
1058 (POP_FRAME): Use vax_pop_frame.
1060 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1062 * vax-tdep.c (vax_store_struct_return): New function.
1063 (vax_extract_return_value): Ditto.
1064 (vax_store_return_value): Ditto.
1065 (vax_extract_struct_value_address): Ditto.
1066 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
1067 vax_store_struct_return.
1068 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
1069 (STORE_RETURN_VALUE): Use vax_store_return_value.
1070 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
1072 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1074 * vax-tdep.c (vax_frame_saved_pc): New function.
1075 (vax_frame_args_address_correct): Ditto.
1076 (vax_frame_args_address): Ditto.
1077 (vax_frame_locals_address): Ditto.
1078 (vax_frame_num_args): Move code to be in proximity to
1079 other frame-related functions.
1080 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
1081 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
1082 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
1083 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
1084 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
1086 2002-04-22 H.J. Lu (hjl@gnu.org)
1088 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
1091 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1093 * vax-tdep.c (vax_frame_init_saved_regs): New function.
1094 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
1095 (FRAME_INIT_SAVED_REGS): New macro.
1097 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1099 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
1101 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1103 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
1105 (fetch_osf_core_registers): Likewise.
1106 (supply_gregset): Likewise.
1108 2002-04-22 J. Brobecker <brobecker@gnat.com>
1110 * symfile.h (get_section_index): Define.
1111 * symfile.c (get_section_index): New function.
1112 * mdebugread.c (SC_IS_SBSS): New macro.
1113 (SC_IS_BSS): Return true for the scBss storage class only, as
1114 the scSBss storage class refers to the .sbss section.
1115 (parse_partial_symbols): Discard the symbols which associated
1116 section does not exist.
1117 Make sure to use the .sbss section index for symbols which
1118 storage class is scBss, rather than using the .bss section index.
1120 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1122 * vax-tdep.c: Update copyright years.
1123 (vax_register_name): New function.
1124 (vax_register_byte): Ditto.
1125 (vax_register_raw_size): Ditto.
1126 (vax_register_virtual_size): Ditto.
1127 (vax_register_virtual_type): Ditto.
1128 * config/vax/tm-vax.h: Update copyright years.
1129 (REGISTER_NAMES): Remove.
1130 (REGISTER_NAME): Define.
1131 (REGISTER_BYTE): Use vax_register_byte.
1132 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
1133 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
1134 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
1136 2002-04-21 Andrew Cagney <ac131313@redhat.com>
1138 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
1140 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
1142 2002-04-21 David S. Miller <davem@redhat.com>
1144 * arch-utils.c (generic_prologue_frameless_p): Kill
1145 SKIP_PROLOGUE_FRAMELESS_P code.
1146 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
1148 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
1149 * arc-tdep.c (arc_prologue_frameless_p): Implement.
1150 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
1152 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
1153 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
1154 (sparc_gdbarch_init): Pass it to
1155 set_gdbarch_prologue_frameless_p.
1157 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1159 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
1160 (alphabsd-nat.o): New dependency list.
1162 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1164 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
1166 (alpha-linux-tdep.o): New dependency list.
1167 (alphafbsd-tdep.o): Likewise.
1169 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1171 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
1173 * alpha-tdep.c: ...from here.
1174 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
1176 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1178 * config/alpha/tm-alpha.h: Move alpha_software_single_step
1179 prototype from here...
1180 * alpha-tdep.h: ...to here.
1182 2002-04-21 Andrew Cagney <ac131313@redhat.com>
1184 * frame.h (selected_frame_level): Document as deprecated.
1185 (frame_relative_level): Declare.
1186 * stack.c (frame_relative_level): New function.
1187 (selected_frame_level): Document as deprecated.
1188 (select_frame): Do not set the selected_frame_level.
1190 * stack.c (frame_info, record_selected_frame): Update.
1191 (frame_command, current_frame_command): Update.
1192 (up_silently_base, up_command, down_silently_base): Update.
1193 (down_command): Update.
1194 * inflow.c (kill_command): Update.
1195 * tracepoint.c (finish_tfind_command): Update.
1196 * corelow.c (core_open): Update.
1197 * thread.c (info_threads_command): Update.
1198 (do_captured_thread_select): Update.
1199 * infcmd.c (finish_command): Update.
1200 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
1202 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1204 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
1206 2002-04-21 Andrew Cagney <ac131313@redhat.com>
1208 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
1211 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1213 * alphafbsd-tdep.c: Update copyright years. Include
1215 (alphafbsd_use_struct_convention): Make static.
1216 (alphafbsd_init_abi): New function.
1217 (_initialize_alphafbsd_tdep): New function.
1218 * config/alpha/tm-fbsd.h: Update copyright years.
1219 (USE_STRUCT_CONVENTION): Remove.
1221 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1223 * alpha-tdep.c (alpha_abi_handler): New structure to describe
1224 an Alpha ABI variant.
1225 (alpha_abi_handler_list): Declare.
1226 (alpha_gdbarch_register_os_abi): New function.
1227 (alpha_gdbarch_init): Give registered ABI variant handlers a
1228 chance to tweak the gdbarch once we have set up defaults.
1229 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
1231 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1233 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
1234 to standard_coerce_float_to_double.
1235 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
1237 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1239 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
1240 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
1241 from gdbarch_tdep rather than a constant.
1242 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
1243 the default text address for all Alpha Unix ABIs.
1244 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
1245 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
1247 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1249 * alpha-tdep.h: New file. Includes several Alpha target constants
1251 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
1252 let gdbarch deal with.
1253 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
1254 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
1256 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
1257 Alpha target register names.
1258 * alphabsd-nat.c: Likewise.
1259 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
1260 Alpha target register names. Make serveral routines static.
1261 (alpha_get_saved_register): New function.
1262 (alpha_abi_names): New.
1263 (process_note_abi_tag_sections): New function.
1264 (get_elfosabi): New function.
1265 (alpha_gdbarch_init): New function.
1266 (alpha_dump_tdep): New function.
1267 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
1269 2002-04-21 Andrew Cagney <ac131313@redhat.com>
1271 * frame.c (find_saved_register): Delete #ifdef
1272 HAVE_REGISTER_WINDOWS code.
1273 * config/sparc/tm-sparc.h: Update comments.
1274 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
1276 2002-04-21 Andrew Cagney <ac131313@redhat.com>
1278 * i960-tdep.c (i960_find_saved_register): New function.
1279 (i960_get_saved_register): New function.
1280 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
1281 (i960_get_saved_register): Declare.
1282 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
1284 2002-04-20 David S. Miller <davem@redhat.com>
1286 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
1288 2002-04-20 Andrew Cagney <ac131313@redhat.com>
1290 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
1291 instead of NUM_PSEUDO_REGS.
1293 2002-04-20 David S. Miller <davem@redhat.com>
1295 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
1296 GDB_MULTI_ARCH_PARTIAL
1297 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
1298 define, let tm-sp64.h do it.
1300 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
1302 * frame.c (find_saved_register): Avoid a NULL pointer
1303 dereference and actually walk the frame list.
1305 2002-04-20 Andrew Cagney <ac131313@redhat.com>
1307 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
1308 sorted in most most-recent-used order. Document.
1309 * gdbarch.h, gdbarch.c: Regenerate.
1311 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
1313 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
1314 (add_inferior): Call create_register_cache.
1315 (clear_inferiors): Call free_register_cache.
1316 (inferior_regcache_data, set_inferior_regcache_data): New functions.
1317 * gdbserver/regcache.c (struct inferior_regcache_data): New.
1318 (registers): Remove.
1319 (get_regcache): New function.
1320 (create_register_cache, free_register_cache): New functions.
1321 (set_register_cache): Don't initialize the register cache here.
1322 (registers_to_string, registers_from_string, register_data): Call
1324 * gdbserver/regcache.h: Add prototypes.
1325 * gdbserver/server.h: Likewise.
1327 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
1329 * gdbserver/mem-break.c: New file.
1330 * gdbserver/mem-break.h: New file.
1331 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
1333 * gdbserver/inferiors.c (struct inferior_info): Add target_data
1335 (clear_inferiors): Free target_data member if set.
1336 (inferior_target_data, set_inferior_target_data): New functions.
1337 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
1338 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
1339 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
1340 (struct inferior_linux_data): New.
1341 (linux_create_inferior): Use set_inferior_target_data.
1342 (linux_attach): Likewise. Call add_inferior.
1343 (linux_wait_for_one_inferior): New function.
1344 (linux_wait): Call it.
1345 (linux_write_memory): Add const.
1346 (initialize_low): Call set_breakpoint_data.
1347 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
1349 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
1351 * gdbserver/server.h: Include mem-break.h. Update inferior.c
1353 * gdbserver/target.c (read_inferior_memory)
1354 (write_inferior_memory): New functions.
1355 * gdbserver/target.h (read_inferior_memory)
1356 (write_inferior_memory): Change macros to prototypes.
1357 (struct target_ops): Update comments. Add const to write_memory
1360 2002-04-19 Andrew Cagney <ac131313@redhat.com>
1362 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
1364 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
1365 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
1366 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
1369 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
1372 * gdbtypes.c (init_simd_type): Rewrite using new functions.
1373 (build_builtin_type_vec128): Ditto.
1374 (append_composite_type_field): Fix calculation of type length in
1377 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
1379 * config/djgpp/README: Update.
1381 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
1384 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
1386 * alpha-tdep.c (setup_arbitrary_frame): Rename...
1387 (alpha_setup_arbitrary_frame): ...to this.
1388 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
1389 for alpha_setup_arbitrary_frame.
1391 2002-04-18 Andrew Cagney <cagney@redhat.com>
1393 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
1394 * gdbarch.h, gdbarch.c: Regenerate.
1396 * defs.h (breakpoint_from_pc_fn): Delete type definition.
1397 * target.h (memory_breakpoint_from_pc): Update declaration.
1398 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
1400 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
1401 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
1402 * mem-break.c (memory_breakpoint_from_pc): Ditto.
1403 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
1404 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
1405 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
1406 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
1407 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
1408 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
1409 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
1410 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
1411 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
1413 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
1415 * monitor.c (monitor_insert_breakpoint): Ditto.
1416 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
1418 * config/mcore/tm-mcore.h: Update copyright.
1419 * mem-break.c: Ditto.
1420 * xstormy16-tdep.c: Ditto.
1422 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
1424 * p-exp.y: Add precedence rule for '^' token.
1425 This removes the shift/reduce conflicts.
1426 Remove the comment concerning these shift/reduce conflicts.
1428 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
1430 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
1431 (registers_powerpc_nofp): New register set for processors
1432 without floating point unit.
1434 2002-04-18 David S. Miller <davem@redhat.com>
1436 * MAINTAINERS: Add myself to write-after-approval.
1438 2002-04-17 Michael Snyder <msnyder@redhat.com>
1440 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
1442 2002-04-17 Andrew Cagney <ac131313@redhat.com>
1444 * rs6000-tdep.c (frame_initial_stack_address): Use
1445 frame_register_read to read the alloca_reg.
1447 2002-04-17 Andrew Cagney <ac131313@redhat.com>
1449 * frame.c (find_saved_register): Find saved registers in the next
1453 2002-04-17 Andrew Cagney <ac131313@redhat.com>
1455 * gdbarch.sh (LANG): Set to ``c''.
1457 2002-04-15 Andrew Cagney <ac131313@redhat.com>
1459 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
1461 2002-04-15 Andrew Cagney <ac131313@redhat.com>
1463 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
1466 * hpread.c (hpread_get_lntt): Add declaration.
1467 Also fix PR gdb/391.
1469 2002-04-14 Andrew Cagney <ac131313@redhat.com>
1471 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
1472 * aclocal.m4, configure: Re-generate.
1475 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
1477 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
1478 instead of tm_print_insn.
1480 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
1482 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
1484 2002-04-14 Andrew Cagney <ac131313@redhat.com>
1486 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
1487 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
1488 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
1490 2002-04-12 Don Howard <dhoward@redhat.com>
1492 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
1493 max_user_call_depth.
1494 (init_cmd_lists): Initialize the new value;
1495 * cli/cli-script.c (execute_user_command): Limit the call depth of
1496 user defined commands. This avoids a core-dump when user commands
1497 are infinitly recursive.
1499 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1501 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
1502 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
1503 from tdep struct instead of DEFAULT_LR_SAVE.
1504 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
1505 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
1506 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
1508 2002-04-12 Michael Snyder <msnyder@redhat.com>
1510 * Remote.c: Spelling fix.
1511 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
1512 If no symbol found for "sbrk", try "_sbrk".
1513 (make_output_phdrs): Use bfd_section_name.
1514 (gcore_copy_callback): Use bfd_section_name.
1515 * eval.c: Indentation fix-ups.
1516 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
1517 in case it gets applied to an address that is already
1518 in the instruction space.
1519 * cli/cli-decode.c (help_list): Allow long lines to wrap.
1520 * symfile.c: Fix indentation, long lines.
1521 * source.c: White space fix-up.
1523 2002-04-12 Andrew Cagney <cagney@redhat.com>
1525 * defs.h (read_relative_register_raw_bytes): Delete declaration.
1526 * frame.c (frame_register_read): New function. Return non-zero on
1528 (read_relative_register_raw_bytes_for_frame): Delete.
1529 (read_relative_register_raw_bytes): Delete.
1530 * frame.h (frame_register_read): Declare.
1531 * d30v-tdep.c: Update Copyright. Use frame_register_read.
1533 * infcmd.c (do_registers_info): Ditto.
1534 * hppa-tdep.c: Ditto.
1535 * rs6000-tdep.c: Ditto.
1536 * h8500-tdep.c: Ditto.
1537 * mips-tdep.c: Ditto.
1538 * h8300-tdep.c: Ditto.
1539 * z8k-tdep.c: Ditto.
1541 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1543 From Jimi X <jimix@watson.ibm.com>:
1544 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
1547 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1549 From Jimi X <jimix@watson.ibm.com>:
1550 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
1553 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1555 From Jimi X <jimix@watson.ibm.com>:
1556 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
1557 register sets for these processor variants.
1559 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
1561 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
1562 registers which are allowed to fail to store.
1563 * gdbserver/linux-low.h (linux_target_ops): Likewise.
1564 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
1565 (ppc_cannot_store_register): FPSCR may not be storable.
1566 * regformats/reg-ppc.dat: Support FPSCR.
1568 2002-04-11 Kevin Buettner <kevinb@redhat.com>
1570 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
1571 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
1572 Add fpscr as an invalid/unfetchable register.
1573 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
1574 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
1575 (fill_fpregset): Add support for register fpscr.
1576 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
1577 (fill_gregset): Account for the fact that register ``mq'' might
1579 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
1580 (registers_power): Add fpscr to register set at slot 71.
1581 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
1582 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
1584 2002-04-11 Michael Snyder <msnyder@redhat.com>
1586 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
1587 * configure: Regenerate.
1588 * config.in: Regenerate.
1589 * acconfig.h: Add define for _SYSCALL32.
1590 * core-sol2.c: Remove #define _SYSCALL32.
1591 * solib-legacy.c: Remove #define _SYSCALL32.
1593 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1595 * stack.c (select_frame): Cleanup internal error message, do not
1598 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1600 * stack.c (select_frame): Check that selected_frame and the
1601 specified level are as expected.
1602 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
1604 * frame.h (struct frame_info): Add field `level'. Update
1606 Work-in-progress PR gdb/464.
1608 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1610 * maint.c (maint_print_section_info): Rename print_section_info.
1611 (print_bfd_section_info, print_objfile_section_info): Update.
1612 * inferior.h (struct gdbarch): Add opaque declaration.
1613 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
1614 * gdbarch.h: Regenerate.
1616 2002-04-10 Michal Ludvig <mludvig@suse.cz>
1618 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
1619 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
1620 (kernel_u_size): Added.
1621 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
1622 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
1624 2002-04-04 Jim Ingham <jingham@apple.com>
1626 * valarith.c (find_size_for_pointer_math): New function, either returns
1627 the size for a pointer's target, returns 1 for void *, or errors for
1629 (value_add, value_sub): use find_size_for_pointer_math.
1631 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1633 * linux-low.c (linux_look_up_symbols): New hook.
1634 (linux_target_ops): Add linux_look_up_symbols.
1635 * remote-utils.c (decode_address): New function.
1636 (look_up_one_symbol): New function.
1637 * server.c (handle_query): Call target look_up_symbols hook.
1638 * server.h (look_up_one_symbol): Add prototype.
1639 * target.h (struct target_ops): Add look_up_symbols hook.
1641 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1643 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
1644 * ChangeLog: Correct paths in last ChangeLog entry.
1646 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1648 * gdbserver/linux-low.h: Remove obsolete prototypes.
1649 (struct linux_target_ops): New.
1650 (extern the_low_target): New.
1651 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
1652 (register_addr): Use the_low_target explicitly.
1653 (fetch_register): Likewise.
1654 (usr_fetch_inferior_registers): Likewise.
1655 (usr_store_inferior_registers): Likewise.
1656 * gdbserver/linux-arm-low.c (num_regs): Remove.
1657 (arm_num_regs): Define.
1658 (arm_regmap): Renamed from regmap, made static.
1659 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
1661 (arm_cannot_store_register): Renamed from cannot_store_register,
1663 (the_low_target): New.
1664 * gdbserver/linux-i386-low.c (num_regs): Remove.
1665 (i386_num_regs): Define.
1666 (i386_regmap): Renamed from regmap, made static.
1667 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
1669 (i386_cannot_store_register): Renamed from cannot_store_register,
1671 (the_low_target): New.
1672 * gdbserver/linux-ia64-low.c (num_regs): Remove.
1673 (ia64_num_regs): Define.
1674 (ia64_regmap): Renamed from regmap, made static.
1675 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
1677 (ia64_cannot_store_register): Renamed from cannot_store_register,
1679 (the_low_target): New.
1680 * gdbserver/linux-m68k-low.c (num_regs): Remove.
1681 (m68k_num_regs): Define.
1682 (m68k_regmap): Renamed from regmap, made static.
1683 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
1685 (m68k_cannot_store_register): Renamed from cannot_store_register,
1687 (the_low_target): New.
1688 * gdbserver/linux-mips-low.c (num_regs): Remove.
1689 (mips_num_regs): Define.
1690 (mips_regmap): Renamed from regmap, made static.
1691 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
1693 (mips_cannot_store_register): Renamed from cannot_store_register,
1695 (the_low_target): New.
1696 * gdbserver/linux-ppc-low.c (num_regs): Remove.
1697 (ppc_num_regs): Define.
1698 (ppc_regmap): Renamed from regmap, made static.
1699 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
1701 (ppc_cannot_store_register): Renamed from cannot_store_register,
1703 (the_low_target): New.
1704 * gdbserver/linux-s390-low.c (num_regs): Remove.
1705 (s390_num_regs): Define.
1706 (s390_regmap): Renamed from regmap, made static.
1707 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
1709 (s390_cannot_store_register): Renamed from cannot_store_register,
1711 (the_low_target): New.
1712 * gdbserver/linux-sh-low.c (num_regs): Remove.
1713 (sh_num_regs): Define.
1714 (sh_regmap): Renamed from regmap, made static.
1715 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
1717 (sh_cannot_store_register): Renamed from cannot_store_register,
1719 (the_low_target): New.
1720 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
1721 (the_low_target): New.
1723 2002-04-09 Andrew Cagney <ac131313@redhat.com>
1725 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
1726 override FP_REGNUM with frame->fp. Update copyright.
1727 * parse.c (num_std_regs, std_regs): Delete.
1728 (target_map_name_to_register): Do not search std_regs. Update
1729 function description.
1730 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
1731 declarations. Update copyright.
1734 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1736 * gdbserver/Makefile.in: Add stamp-h target.
1737 * gdbserver/configure.in: Create stamp-h.
1738 * gdbserver/configure: Regenerated.
1740 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1742 * gdbserver/inferiors.c: New file.
1743 * gdbserver/target.c: New file.
1744 * gdbserver/target.h: New file.
1745 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
1747 * gdbserver/linux-low.c (inferior_pid): New static variable,
1748 moved from server.c.
1749 (linux_create_inferior): Renamed from create_inferior.
1750 Call add_inferior. Return 0 on success instead of a PID.
1751 (linux_attach): Renamed from myattach.
1752 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
1753 (linux_thread_alive): Renamed from mythread_alive.
1754 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1756 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1757 (regsets_store_inferior_registers): Correct error message.
1758 Add missing ``return 0''.
1759 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1760 (linux_store_registers): Renamed from store_inferior_registers.
1761 (linux_read_memory): Renamed from read_inferior_memory.
1762 (linux_write_memory): Renamed from write_inferior_memory.
1763 (linux_target_ops): New structure.
1764 (initialize_low): Call set_target_ops ().
1765 * gdbserver/remote-utils.c (unhexify): New function.
1766 (hexify): New function.
1767 (input_interrupt): Send signals to ``signal_pid''.
1768 * gdbserver/server.c (inferior_pid): Remove.
1769 (start_inferior): Update create_inferior call.
1770 (attach_inferior): Call add_inferior.
1771 (handle_query): New function.
1772 (main): Call handle_query for `q' packets.
1773 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
1774 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1776 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1778 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
1780 * gdbserver/configure.in: Check for <string.h>
1781 * gdbserver/configure: Regenerate.
1782 * gdbserver/config.in: Regenerate.
1783 * gdbserver/gdbreplay.c: Include needed system headers.
1784 (remote_open): Remove strchr prototype.
1785 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1786 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
1787 (supply_register_by_name): Likewise.
1788 (collect_register): Change buf argument to void *.
1789 (collect_register_by_name): Likewise.
1790 * gdbserver/regcache.h: Add missing prototypes.
1791 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1792 * gdbserver/server.c (handle_query): New function.
1793 (attached): New static variable, moved out of main.
1794 (main): Quiet longjmp clobber warnings.
1795 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1796 * gdbserver/utils.c (error): Remove NORETURN.
1799 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1801 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
1802 after the last symbol in a block.
1804 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
1806 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
1807 is non zero as a found symbol.
1809 2002-04-08 Andrew Cagney <ac131313@redhat.com>
1811 * findvar.c: Include "builtin-regs.h".
1812 (value_of_register): Call value_of_builtin_reg when applicable.
1813 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
1814 (target_map_name_to_register): Call
1815 builtin_reg_map_name_to_regnum.
1816 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
1817 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
1818 (builtin_regs_h): Define.
1819 (builtin-regs.o): New target.
1820 (findvar.o): Add $(builtin_regs_h).
1821 * builtin-regs.c, builtin-regs.h: New files.
1822 * std-regs.c: New file.
1823 Partial fix for PR gdb/251.
1825 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1827 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
1828 it's no longer required.
1830 2002-04-08 Andrew Cagney <ac131313@redhat.com>
1832 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
1834 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1836 From Jimi X <jimix@watson.ibm.com>:
1837 * rs6000-tdep.c (rs6000_software_single_step): Use
1838 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
1839 and size. Use target_insert_breakpoint() and
1840 target_remove_breakpoint() to insert and remove breakpoints
1841 instead of explicit memory reads and writes.
1843 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1845 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
1846 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
1847 ELF_OBJECT_FORMAT ifdef.
1849 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1851 From Jimi X <jimix@watson.ibm.com>:
1852 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
1854 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1856 From Jimi X <jimix@watson.ibm.com>:
1857 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
1858 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
1860 2002-04-07 Mark Kettenis <kettenis@gnu.org>
1862 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
1863 s/asprintf/xasprintf/.
1864 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
1866 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1868 I believe Jeff Law denies responsability for this one:
1869 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
1870 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
1871 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
1872 Work-around for PR gdb/366.
1874 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
1876 * remote-e7000.c (write_small, e7000_read_inferior_memory,
1877 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
1878 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
1880 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
1882 * sh-tdep.c (sh_fp_frame_init_saved_regs,
1883 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
1886 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1888 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
1891 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1893 * README (Reporting Bugs in GDB): Document the bug web page as the
1894 prefered way of submitting bugs.
1897 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1899 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
1901 * gdbarch.h, gdbarch.c: Re-generate.
1903 2002-04-07 Andreas Schwab <schwab@suse.de>
1905 * m68klinux-nat.c (fill_fpregset): Properly pass address of
1906 buffer to regcache_collect.
1908 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1910 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
1911 * gdbarch.c, gdbarch.h: Re-generate.
1913 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1915 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
1916 declaration. Fix -Werror.
1918 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
1920 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
1921 * gdbarch.c: Regenerate.
1923 2002-04-05 Michael Snyder <msnyder@redhat.com>
1925 * breakpoint.c (clear_command): Rewrite middle section to
1926 combine two loops with identical control conditions.
1927 Add a cleanup to eliminate a memory leak.
1928 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
1930 2002-04-05 H.J. Lu (hjl@gnu.org)
1932 * solib-svr4.c (bkpt_names): Add "__start".
1934 2002-04-04 Andrew Cagney <ac131313@redhat.com>
1936 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
1937 as test for 64 bit target.
1939 2002-04-05 Andrew Cagney <ac131313@redhat.com>
1941 * h8500-tdep.c (h8500_write_fp): Delete function.
1942 * dwarf2cfi.c (cfi_write_fp): Document as not used.
1943 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
1944 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
1945 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
1946 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
1947 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
1949 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
1950 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
1951 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
1952 (d10v_write_fp): Delete function.
1953 * inferior.h (write_fp, generic_target_write_fp): Delete
1955 * regcache.c (generic_target_write_fp): Delete function.
1956 (write_fp): Delete function.
1957 * gdbarch.sh (TARGET_WRITE_FP): Delete.
1958 * gdbarch.h, gdbarch.c: Regenerate.
1959 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
1960 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
1961 (sparc64_write_fp): Delete declaration.
1962 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
1963 (h8500_write_fp): Delete declaration.
1965 2002-04-04 Andrew Cagney <ac131313@redhat.com>
1967 * sparc-tdep.c (sparc64_write_fp): Delete.
1968 (sparc_push_dummy_frame): Replace write_fp call with code to store
1970 (sparc_gdbarch_init): Do not initialize write_fp.
1972 2002-04-05 Kevin Buettner <kevinb@redhat.com>
1974 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
1977 2002-03-29 Jim Blandy <jimb@redhat.com>
1979 * stack.c (get_selected_block): Add new argument `addr_in_block',
1980 used to return the exact code address we used to select the block,
1982 * blockframe.c (get_frame_block, get_current_block): Same.
1983 * frame.h (get_frame_block, get_current_block,
1984 get_selected_block): Update declarations.
1985 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
1986 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
1988 2002-04-05 Michael Snyder <msnyder@redhat.com>
1990 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
1993 2002-04-05 J. Brobecker <brobecker@gnat.com>
1995 * utils.c (xfullpath): New function.
1996 * defs.h (xfullpath): Add declaration.
1997 * source.c (openp): Use xfullpath in place of gdb_realpath to
1998 avoid resolving the basename part of filenames when the
1999 associated file is a symbolic link. This fixes a potential
2000 inconsistency between the filenames known to GDB and the
2001 filenames it prints in the annotations.
2002 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
2003 to be able to match a filename with either the real filename, or
2004 the name of any symbolic link to this file.
2005 (lookup_partial_symtab): Ditto.
2007 2002-04-04 Michael Snyder <msnyder@redhat.com>
2009 * breakpoint.c: Add support for hardware breakpoints in overlays.
2010 (overlay_events_enabled): New state variable.
2011 (insert_breakpoints): Use overlay_events_enabled to decide
2012 whether to attempt to set a breakpoint at the overlay load addr.
2013 Handle bp_hardware_breakpoint as well as bp_breakpoint.
2014 (remove_breakpoint): Use overlay_events_enabled to decide
2015 whether breakpoints need to be removed from overlay load addr.
2016 Handle bp_hardware_breakpoint as well as bp_breakpoint.
2017 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
2018 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
2019 disable_overlay_breakpoints): Update overlay_events_enabled.
2021 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
2023 * dwarf2read.c (struct function_range): New.
2024 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
2025 (check_cu_functions): New.
2026 (read_file_scope): Initialize global function lists.
2027 Call dwarf_decode_line after processing children.
2028 (read_func_scope): Add to global function list.
2029 (dwarf_decode_lines): Call check_cu_functions everywhere
2030 record_line is called. Call record_line with a linenumber
2031 of 0 to mark sequence ends.
2033 2002-04-04 Michal Ludvig <mludvig@suse.cz>
2035 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
2036 change sync with glibc.
2038 2002-04-03 Jim Blandy <jimb@redhat.com>
2040 * configure.in: Call AC_C_INLINE.
2041 * configure: Regenerated.
2043 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
2045 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
2046 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
2048 2002-03-31 Mark Kettenis <kettenis@gnu.org>
2050 * NEWS: Mention gcore support on FreeBSD/i386.
2052 * fbsd-proc.c: New file.
2053 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
2054 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
2056 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
2059 2002-03-29 Jim Blandy <jimb@redhat.com>
2061 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
2062 unescaped newlines in string literals, but newer ones don't. So
2065 2002-03-26 Michael Snyder <msnyder@redhat.com>
2066 Andrew Cagney <cagney@redhat.com>
2068 * cli/cli-dump.c: New file. Dump memory to file,
2069 restore file to memory.
2070 * cli/cli-dump.h: New file.
2071 * Makefile.in: Add rules, dependencies for cli-dump.o.
2072 * NEWS: Mention new commands.
2074 2002-03-28 Michael Snyder <msnyder@redhat.com>
2076 * symfile.c (symbol_file_add): Move test for null symbols to later.
2078 2002-03-27 Andrew Cagney <ac131313@redhat.com>
2080 From veksler at il.ibm.com:
2081 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
2082 the xstrduped original path.
2085 2002-03-27 Michael Snyder <msnyder@redhat.com>
2087 * breakpoint.c (_initialize_breakpoint): Clean up help string.
2088 * infcmd.c (_initialize_infcmd): Ditto.
2089 * language.c (_initialize_language): Ditto.
2090 * symfile.c (_initialize_symfile): Ditto.
2091 * top.c (_init_main): Ditto.
2092 * cli/cli-cmds.c (init_cli_cmds): Ditto.
2094 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
2096 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
2097 vector registers handling.
2098 (skip_prologue): Handle new AltiVec instructions. Fill in new
2099 fields of frame data.
2100 (frame_get_saved_regs): Fill in information for AltiVec registers.
2102 2002-03-27 Jim Blandy <jimb@redhat.com>
2104 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
2105 a function; leave this macro here to invoke that function.
2106 (symbol_init_mangled_name): Declaration for that function.
2107 * symtab.c (symbol_init_mangled_name): New function.
2109 2002-03-27 Andrew Cagney <ac131313@redhat.com>
2111 * valarith.c: Replace strerror with safe_strerror.
2112 * tracepoint.c: Ditto.
2114 * go32-nat.c: Ditto.
2118 2002-03-27 Andreas Schwab <schwab@suse.de>
2120 * event-top.c (command_line_handler): Remove useless if.
2122 2002-03-27 Andreas Jaeger <aj@suse.de>
2124 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
2127 2002-03-27 Michal Ludvig <mludvig@suse.cz>
2129 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
2130 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
2131 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
2132 (x86_64_linux_dr_get_status, supply_gregset),
2133 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
2134 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
2135 (x86_64_register_info_table): Add.
2136 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
2137 (x86_64_register_raw_size, x86_64_register_virtual_type),
2138 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
2139 general x86_64_register_info_table.
2140 (i386_gdbarch_init): gdbarch_register_bytes is now set
2141 dynamicaly during initialization.
2142 * regformats/reg-x86-64.dat: Synced with changes to registers above.
2143 * gdbserver/linux-x86-64-low.c: Ditto.
2145 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
2147 * gdbserver/server.c (main): Call target_signal_to_host_p
2148 and target_signal_to_host on signals received from the remote.
2149 * gdbserver/remote-utils.c (prepare_resume_reply): Call
2150 target_signal_from_host on signals sent to the remote.
2151 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
2152 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
2154 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
2156 * signals/signals.c: Include "server.h" in gdbserver build.
2157 (target_signal_from_name): Don't use STREQ.
2158 (_initialize_signals): Likewise. Don't include function in
2161 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
2163 * signals.c: Moved to...
2164 * signals/signals.c: Here.
2165 * Makefile (signals.o): Update.
2167 2002-03-26 Jeff Law (law@redhat.com)
2169 * somread.c (som_symtab_read): Remove some commented out code and
2170 updated related comments. Do not set the minimal symbol table to
2171 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
2172 in a dynamic executable.
2173 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
2174 where we are unable to find the minimal symbol for the given
2177 2002-03-25 Jeff Law (law@redhat.com)
2179 * linux-proc.c (read_mapping): Scan up to end of line for filename.
2181 2002-03-25 Michal Ludvig <mludvig@suse.cz>
2183 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
2185 2002-03-23 Andrew Cagney <ac131313@redhat.com>
2187 * command.h: Update copyright.
2188 (struct cmd_list_element): Replace definition with opaque
2190 (enum cmd_types): Document that it will eventually be moved to
2192 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
2193 (MALLOCED_REPLACEMENT): Delete macro.
2194 * Makefile.in (cli_decode_h): Add $(command_h).
2195 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
2196 * top.c: Include "cli/cli-decode.h".
2197 * completer.c: Include "cli/cli-decode.h".
2198 * maint.c: Include "cli/cli-decode.h".
2199 * cli/cli-decode.h: Include "command.h".
2200 (enum command_class): Delete.
2201 (enum cmd_types): Comment out.
2202 (enum cmd_auto_boolean): Delete.
2203 (enum var_types): Delete.
2205 2002-03-23 Andrew Cagney <ac131313@redhat.com>
2207 * cli/cli-decode.c: Include "gdb_assert.h".
2208 (add_set_or_show_cmd): New static function.
2209 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
2210 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
2211 all fields, such as func, from the set command.
2213 2002-03-23 Andrew Cagney <ac131313@redhat.com>
2215 * MAINTAINERS (sh-elf): Change warning flag to -w.
2217 2002-03-23 Andrew Cagney <cagney@redhat.com>
2219 * defs.h (error): Add printf format attribute.
2220 * thread-db.c (thread_from_lwp): Fix error format string.
2221 * stack.c (parse_frame_specification): Ditto.
2222 * cli/cli-decode.c (undef_cmd_error): Ditto.
2223 * scm-lang.c (scm_lookup_name): Ditto.
2224 * tracepoint.c (trace_error): Ditto.
2225 * remote-utils.c (usage): Ditto.
2226 * remote.c (compare_sections_command): Ditto.
2229 2002-03-22 Andrew Cagney <ac131313@redhat.com>
2231 * gdbtypes.c (append_composite_type_field): New function.
2232 (init_composite_type): New function.
2233 * gdbtypes.h (append_composite_type_field): Declare.
2234 (init_composite_type): Ditto.
2236 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
2238 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
2240 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
2241 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
2242 structure returning convention for SYSV ABI case, but not
2243 for GNU/Linux, FreeBSD, or NetBSD.
2245 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
2247 * symtab.h (lookup_block_symbol): Add mangled_name argument
2250 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
2251 with new mangled_name argument.
2252 * linespec.c (decode_line_1): Likewise.
2253 * valops (value_of_this): Likewise.
2254 * symtab.c (lookup_transparent_type): Likewise.
2255 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
2256 (lookup_symbol): If we are given a mangled name, pass it down
2257 to lookup_symbol_aux.
2258 (lookup_block_symbol): If we are given a mangled name to check
2259 against, only return symbols which match it.
2261 2002-03-22 Christopher Faylor <cgf@redhat.com>
2263 * win32-nat.c (child_create_inferior): Check for proper shell to use
2264 here, in case the user changes it on the fly.
2265 (_initialize_inftarg): Remove shell path considerations.
2267 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
2269 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
2270 for gdbarch_max_register_raw_size and max_register_virtual_size.
2271 Adjust copyright year.
2273 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
2275 * dbxread.c (process_one_symbol): Extend the first N_SLINE
2276 in a function to cover the entire beginning of the function
2277 as well if it does not already.
2279 2002-03-21 Tom Rix <trix@redhat.com>
2281 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
2282 (rs6000_ptrace64): Renamed from ptrace64.
2284 2002-03-20 Martin M. Hunt <hunt@redhat.com>
2286 * gdbserver/remote-utils.c (remote_open): Don't call
2287 getprotobyname, we're all using TCP here so just use
2289 * gdbserver/gdbreplay.c (remote_open): Ditto.
2291 2002-03-20 Martin M. Hunt <hunt@redhat.com>
2293 * regcache.c (_initialize_regcache): No need to call
2294 build_regcache() at this time; it gets called whenever
2295 the gdbarch changes.
2297 2002-03-20 David O'Brien <obrien@FreeBSD.org>
2299 * sparc-nat.c: Include sys/param.h where possible.
2301 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
2304 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
2305 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
2306 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
2308 * stabsread.c (rs6000_builtin_type): Likewise.
2309 (read_sun_floating_type): Likewise.
2311 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2313 * stabsread.c (read_member_functions): Remove skip code for duplicate
2314 constructor/destructor methods. Use standard parsing for these
2315 methods and just do not chain them to the list of methods after
2318 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
2320 * coffread.c: Remove redundant static declarations. Replace
2321 occurrences of `PTR' with `void *'.
2322 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
2323 * top.h (quit_cover): Likewise.
2324 * defs.h (catch_errors): Likewise.
2326 2002-03-18 Andrew Cagney <ac131313@redhat.com>
2328 * defs.h (XMALLOC): Define.
2329 * gdb-events.sh (XMALLOC): Delete macro.
2330 * gdb-events.c, gdb-events.h: Regenerate.
2331 * gdbarch.sh (XMALLOC): Delete macro.
2332 * gdbarch.c: Regenerate.
2333 * serial.c (XMALLOC): Delete macro.
2334 * ui-file.c (XMALLOC): Ditto.
2335 * ser-unix.h (XMALLOC): Ditto.
2336 * sh-tdep.c (XMALLOC): Ditto.
2337 * ui-out.c (XMALLOC): Ditto.
2338 * utils.c (XMALLOC): Ditto.
2339 * i386-tdep.c (XMALLOC): Ditto.
2340 * gdb-events.c (XMALLOC): Ditto.
2341 * d10v-tdep.c (XMALLOC): Ditto.
2342 * cli-out.c (XMALLOC): Ditto.
2344 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
2345 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
2346 * ui-file.c, ui-out.c: Ditto.
2348 2002-03-18 Andrew Cagney <ac131313@redhat.com>
2350 * command.h (struct cmd_list_element): Add field context.
2351 (set_cmd_context, get_cmd_context): Declare.
2352 * cli/cli-decode.h: Ditto.
2353 * cli/cli-decode.c (get_cmd_context): New function.
2354 (set_cmd_context): New function.
2355 (add_cmd): Initialize context.
2356 Part of fixing PR gdb/145 and PR gdb/146.
2358 2002-03-17 Andrew Cagney <ac131313@redhat.com>
2360 * cli/cli-decode.c (cmd_type): New function.
2361 * command.h (cmd_type): Declare.
2362 * infrun.c (set_schedlock_func): Call function cmd_type.
2363 * kod.c (kod_set_os): Call cmd_type.
2364 * cris-tdep.c (cris_version_update): Use function cmd_type.
2365 (cris_mode_update, cris_abi_update): Ditto.
2367 * command.h: (execute_cmd_post_hook): Declare.
2368 (execute_cmd_pre_hook): Declare.
2369 * cli/cli-script.c (clear_hook_in_cleanup): New function.
2370 (execute_cmd_post_hook, execute_cmd_pre_hook): New
2371 functions. Execute pre/post hook while ensuring that afterwords
2373 * top.c (execute_command): Use execute_cmd_post_hook, and
2374 execute_cmd_pre_hook to execute pre/post commands.
2375 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
2377 (hook_stop_stub): Call execute_cmd_pre_hook.
2379 2002-03-17 Andrew Cagney <ac131313@redhat.com>
2381 * kod.c (kod_set_os): Revert previous change. Is called by ``info
2382 set'' and this leads to a core dump. Move xstrdup of
2383 operating_system to after check that it is not NULL.
2385 2002-03-17 Andrew Cagney <ac131313@redhat.com>
2387 * kod.c (kod_set_os): Remove unnecessary check that
2388 ``command->type'' is set_cmd.
2390 * valprint.c (set_input_radix): Use input_radix.
2391 (set_output_radix): Use output_radix.
2392 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
2395 2002-03-16 Andrew Cagney <ac131313@redhat.com>
2397 * value.h (struct value): Delete field ``substring_addr''. Change
2398 aligner fields to force_doublest_align, force_longest_align,
2399 force_core_addr_align and force_pointer_aligh.
2401 * value.h (struct value): Fix typo in above change.
2403 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2405 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
2406 to fix internal_error from ``maintenance print architecture''.
2408 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2410 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
2411 for gcc versions after gcc-2.8.1.
2413 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2415 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
2416 for method resolution. Restore adjustment of ``this'' pointer after
2417 calling value_struct_elt, which was accidentally removed during the
2420 2002-03-15 Andrew Cagney <ac131313@redhat.com>
2422 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
2424 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
2426 * value.h (value_of_register): Update.
2428 2002-03-14 Richard Henderson <rth@redhat.com>
2430 * configure.in: Detect declaration for canonicalize_file_name.
2431 * utils.c (canonicalize_file_name): Declare, if needed.
2432 (gdb_realpath): Prefer realpath if available and usable.
2433 * config.in, configure: Rebuild.
2435 2002-03-14 Richard Henderson <rth@redhat.com>
2437 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
2438 a constant array bound.
2440 * MAINTAINERS: Add myself to write-after-approval.
2442 2002-03-14 Michael Snyder <msnyder@redhat.com>
2444 * symfile.c (syms_from_objfile): Return immediately if no syms.
2445 (symbol_file_add): Return immediately if no syms.
2446 (find_sym_fns): Return immediately if no syms.
2448 2002-03-13 Michal Ludvig <mludvig@suse.cz>
2450 * gdbserver/remote-util.c (remote_open): Print remote-side's
2451 IP address when remote debugging over the network.
2453 2002-03-12 David O'Brien <obrien@FreeBSD.org>
2455 * config/sparc/fbsd.mh: Fix copyright.
2456 * config/sparc/fbsd.mt: Likewise.
2458 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
2460 * MAINTAINERS: Fix typo in name of gdb warnings option.
2461 (x86-64): Fix formating so that this can be parsed by awk.
2463 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
2465 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
2466 * defs.h: Include "gdb/signals.h".
2467 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
2469 2002-03-10 Michal Ludvig <mludvig@suse.cz>
2471 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
2472 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
2475 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
2476 Don Howard <dhoward@redhat.com>
2478 * mips-tdep.c (ST0_FR): Define.
2479 (mips2_fp_compat): New function, temporarily disabled.
2480 (mips_read_fp_register_single): New function.
2481 (mips_read_fp_register_double): New function.
2482 (mips_print_register): Use them.
2483 (do_fp_register_row): Likewise.
2485 2002-03-09 Andrew Cagney <ac131313@redhat.com>
2487 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
2490 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2492 * stabsread.c (read_member_functions): Fix is_stub test for
2493 static member functions, improve comment.
2495 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
2497 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
2498 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
2499 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
2500 commands that set boolean values.
2501 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
2502 (arm_rdi_resume): Always initialize PC.
2503 (arm_rdi_open): Don't use rslt as a boolean.
2504 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
2505 (arm_rdi_fetch_registers, arm_rdi_store_registers)
2506 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
2507 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
2509 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
2511 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
2512 * configure: Rebuilt.
2514 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2516 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
2517 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
2519 2002-03-06 Andrew Cagney <ac131313@redhat.com>
2521 * cli/cli-decode.c (set_cmd_completer): New function.
2522 * command.h (set_cmd_completer): Declare.
2523 * cli/cli-decode.h (set_cmd_completer): Ditto.
2525 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
2526 * cli/cli-cmds.c (init_cli_cmds): Ditto.
2527 * win32-nat.c (_initialize_inftarg): Ditto.
2528 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2529 * proc-api.c (_initialize_proc_api): Ditto.
2530 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
2531 * source.c (_initialize_source): Ditto.
2532 * exec.c (_initialize_exec): Ditto.
2533 * solib.c (_initialize_solib): Ditto.
2534 * top.c (init_main): Ditto.
2535 * tracepoint.c (_initialize_tracepoint): Ditto.
2536 * symfile.c (_initialize_symfile): Ditto.
2537 * printcmd.c (_initialize_printcmd): Ditto.
2538 * infcmd.c (_initialize_infcmd): Ditto.
2539 * corefile.c (_initialize_core): Ditto.
2541 2002-03-05 Andrew Cagney <ac131313@redhat.com>
2543 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
2545 2002-03-05 Andrew Cagney <ac131313@redhat.com>
2547 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
2549 2002-03-05 Andrew Cagney <ac131313@redhat.com>
2551 * NEWS: Update headings, 5.2 has branched.
2553 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
2555 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
2556 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
2557 (register_addr, REGISTER_RAW_SIZE): Likewise.
2558 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
2559 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
2561 2002-03-03 Michal Ludvig <mludvig@suse.cz>
2563 * MAINTAINERS (x86-64): Add myself.
2564 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
2565 changed value_ptr -> struct value *
2567 2002-03-01 David O'Brien <obrien@FreeBSD.org>
2569 * configure.host (sparc64-*-freebsd): Add.
2570 * configure.tgt: Likewise.
2571 * config/sparc/fbsd.mh: New file.
2572 * config/sparc/fbsd.mt: Likewise.
2573 * config/sparc/nm-fbsd.h: Likewise.
2574 * config/sparc/tm-fbsd.h: Likewise.
2576 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
2578 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
2579 regformats/reg-s390x.dat.
2581 2002-03-01 Andrew Cagney <ac131313@redhat.com>
2583 * utils.c: Add FIXME explaining true/false problem.
2585 2002-02-28 Andrew Cagney <ac131313@redhat.com>
2587 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
2589 2002-02-28 Michael Chastain <mec@shout.net>
2591 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
2593 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
2595 * gdbserver/linux-s390-low.c: New file.
2596 * regformats/reg-s390.dat: New file.
2597 * regformats/reg-s390x.dat: New file.
2598 * gdbserver/configure.srv: Add S/390.
2599 * gdbserver/Makefile.in: Add S/390.
2600 * configure.tgt: Enable gdbserver for S/390.
2602 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
2604 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
2605 first line of the doc string for "info dos", except at the end of
2606 the sentence, since the short help stops at the first period.
2608 2002-02-28 Jason Merrill <jason@redhat.com>
2610 * dwarf2read.c (dwarf_cfi_name): Add new codes.
2612 2002-02-27 Fred Fish <fnf@redhat.com>
2614 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
2615 comment (dumy -> dummy).
2617 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2619 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
2621 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
2623 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
2625 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2627 * gdbserver/acconfig.h: New file.
2628 * gdbserver/i387-fp.c: New file.
2629 * gdbserver/i387-fp.h: New file.
2630 * gdbserver/linux-x86-64.c: New file.
2631 * regformats/reg-x86-64.dat: New file.
2632 * configure.tgt: Add x86_64-*-linux* gdbserver support.
2633 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
2634 * gdbserver/configure.in: Add support for regsets.
2635 * gdbserver/config.in: Regenerate.
2636 * gdbserver/configure: Regenerate.
2637 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
2638 * gdbserver/linux-low.h: New file.
2639 * gdbserver/linux-low.c: Include "linux-low.h". Add support
2641 * gdbserver/linux-arm-low.c: Include "linux-low.h".
2642 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
2643 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
2644 * gdbserver/linux-mips-low.c: Include "linux-low.h".
2645 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
2646 * gdbserver/linux-sh-low.c: Include "linux-low.h".
2647 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
2648 "i387-fp.h". Add PTRACE_GETREGS and friends.
2649 * gdbserver/regcache.c (supply_register): New function.
2650 (supply_register_by_name): New function.
2651 (collect_register): New function.
2652 (collect_register_by_name): New function.
2654 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2656 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
2657 (config.status): Add configure.srv dependency.
2658 (server_h): Add config.h dependency.
2660 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2662 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
2663 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
2664 * gdbserver/configure.srv: Change i386-*-linux* to use
2667 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2669 * x86-64-tdep.c: Re-indent. Update copyright date.
2671 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2673 From Michal Ludvig <mludvig@suse.cz>:
2674 * x86-64-tdep.c (value.h): Delete.
2675 (gdb_assert.h): Include.
2676 (x86_64_register_convert_to_virtual,
2677 x86_64_register_convert_to_raw ): Add check which lets only
2678 floating-point values to be converted.
2679 (value_push): Delete.
2680 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
2681 (i386_gdbarch_init): Number of register_bytes fixed.
2683 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2685 * MAINTAINERS: Add x86-64 target.
2687 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2689 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
2690 * osfsolib.c (solib_map_sections): Ditto.
2691 * irix5-nat.c (solib_map_sections): Ditto.
2692 * corelow.c (gdb_check_format): Ditto.
2693 * symfile.c (symfile_bfd_open): Ditto.
2694 * solib.c (solib_map_sections): Ditto.
2697 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2699 * remote.c (_initialize_remote): By default, disable ``e'' and
2700 ``E'' step out-of-range packets.
2702 2002-02-26 Andreas Schwab <schwab@suse.de>
2704 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
2705 m68k_linux_frame_saved_pc.
2706 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
2708 (SIGCONTEXT_PC_OFFSET): Remove.
2709 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
2710 m68k_linux_sigtramp_saved_pc): New functions.
2711 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
2712 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
2713 (UCONTEXT_PC_OFFSET): Define.
2714 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
2715 non-RT and RT signal trampolines.
2717 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
2719 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
2720 (TARGET_NBPG, STACK_END_ADDR): Delete
2721 (VARIABLES_INSIDE_BLOCK): Delete.
2723 2002-02-25 Andrew Cagney <ac131313@redhat.com>
2725 * utils.c (perror_with_name): Make string parameter constant.
2726 (print_sys_errmsg): Ditto.
2728 * defs.h (perror_with_name): Update.
2729 (print_sys_errmsg): Update.
2732 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
2734 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
2735 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
2737 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2739 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
2740 if it already matches the current architecture from the exec file.
2741 Include arch-utils.h for gdbarch_info_init prototype.
2742 * Makefile.in (rs6000-nat.o): Update dependencies.
2744 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
2746 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
2747 list of exported variables.
2749 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
2751 * gdbserver/configure.srv: New file.
2752 * gdbserver/configure.in: Use configure.srv instead
2753 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
2755 * gdbserver/configure: Regenerated.
2756 * gdbserver/terminal.h: New file.
2757 * gdbserver/Makefile.in: Update for configure changes. Remove
2758 more unneeded include paths.
2760 2002-02-24 Andrew Cagney <ac131313@redhat.com>
2762 From wiz at danbala:
2763 * config/sparc/tm-sp64.h: Fix grammar and typos.
2766 2002-02-24 Andrew Cagney <ac131313@redhat.com>
2768 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
2769 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
2770 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
2771 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
2772 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
2773 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
2774 * s390-tdep.c: Ditto.
2775 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
2776 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
2777 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
2778 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
2779 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
2780 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
2781 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
2782 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
2783 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
2784 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
2787 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2789 * lin-thread.c: Delete file.
2790 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
2791 to gdb_proc_service.h.
2792 * configure: Re-generate.
2794 * ocd.c (ocd_open): Do not try to open the "ocd" device.
2795 * serial.c (serial_open): Delete check for "ocd".
2798 * Makefile.in (linux-thread.o): Delete target.
2799 * linux-thread.c: Delete file.
2801 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
2802 renamed SH files to be consistent.
2804 * symtab.c (sort_search_symbols): Use xfree.
2806 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2808 * arm-linux-tdep.c (arm_linux_init_abi): Register
2809 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
2810 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
2811 definition with undef, since we don't want the sysvr4 definition.
2812 (SKIP_TRAMPOLINE_CODE): Likewise.
2814 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2816 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
2818 * configure.in: (AC_CHECK_FUNCS) Added test for
2819 canonicalize_file_name Regenerated.
2820 * config.in, configure: Regenerated.
2821 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
2822 defined use canonicalize_file_name.
2824 2002-02-23 Michael Chastain <mec@shout.net>
2826 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
2828 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2830 * README: Remove references to cygnus.com.
2831 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
2832 dot com'' form. Remove references to cygnus.com and sourceware.
2834 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2836 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
2837 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
2838 1003.1-2001 no longer allows "head -1".
2839 * gdb/Makefile.in (version.c): Likewise.
2840 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
2841 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
2842 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
2844 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2846 * cli/cli-decode.c (cmd_cfunc_eq): New function.
2847 * command.h (cmd_cfunc_eq): Declare.
2848 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
2850 * cli/cli-cmds.h (is_complete_command): Change parameter to a
2851 ``struct cmd_list_element *''.
2852 * cli/cli-cmds.c (is_complete_command): Update. Use
2854 * top.c (execute_command): Pass the command to
2855 is_complete_command.
2856 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
2858 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2860 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
2861 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
2862 architecture defines.
2863 * s390-tdep.c (s390_gdbarch_init): Likewise.
2865 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2867 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
2868 (arm_linux_push_arguments): Likewise.
2869 (arm_linux_init_abi): Register them. Also register linux-specific
2871 (find_minsym_and_objfile): Use strcmp, not STREQ.
2872 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
2873 (arm_linux_call_dummy_words): Delete declaration.
2874 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
2875 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
2877 (LOWEST_PC): Delete.
2879 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2881 * maint.c (print_section_info): Do not prepend `0x' to filepos
2882 output, it will be handled by local_hex_string_custom.
2884 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2886 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
2887 (store_newfpe_double, store_newfpe_extended, store_fpregister)
2888 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
2890 2002-02-22 Jim Blandy <jimb@redhat.com>
2892 Indicate that the bcache functions don't change the strings
2894 * bcache.h (bcache, hash): Add `const' keywords to declarations.
2895 * bcache.c (bcache, hash): Add `const' keywords to definitions.
2897 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
2899 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
2901 2002-02-21 Christopher Faylor <cgf@redhat.com>
2903 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
2904 find the complete path to a loaded DLL.
2906 2002-02-21 Fred Fish <fnf@redhat.com>
2908 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
2909 that marks the end of the range of a function, enter a line number
2910 entry that has a line number of zero and a PC offset that matches
2911 the end of the function. This starts a range of PC's for which no
2912 line number information is known.
2913 * symtab.c (find_pc_sect_line): If our best fit is in a range of
2914 PC's for which no line number info is found (line number is zero)
2915 then we didn't find any valid line information.
2916 * symtab.h: Document use of zero line number entry.
2918 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
2920 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
2921 (have_ptrace_getvrregs): Define for run time checks.
2922 (gdb_vrregset_t): New type for Altivec register handling.
2923 (fetch_register, store_register): Fetch/store altivec register
2925 (fetch_altivec_register, store_altivec_register): New functions.
2926 (supply_vrregset, fill_vrregset): New functions.
2927 (fetch_altivec_registers, store_altivec_registers): New functions.
2928 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
2931 2002-02-21 Jiri Smid <smid@suse.cz>
2933 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
2935 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
2937 * Makefile.in (armnbsd-nat.o): Update dependencies.
2938 * armnbsd-nat.c (supply_gregset): New function. Common code to
2939 supply the integer register set.
2940 (supply_fparegset): New function. Similar for FPA registers.
2941 (fetch_regs, fetch_fp_regs): Use them.
2942 (fetch_core_registers): Likewise.
2943 (fetch_elfcore_registers): New function.
2944 (arm_netbsd_elfcore_fns): New core-file type specification.
2945 (_initialize_arm_netbsd_nat): Register it.
2947 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
2949 * armnbsd-nat.c: Include gdbcore.h.
2950 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
2951 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
2952 'void' to declaration, to shut up ARI.
2953 (fetch_core_registers): Make static. Rewrite using supply_register.
2954 (arm_netbsd_core_fns): New core-file type specification.
2955 (_initialize_arm_netbsd_nat): New function.
2957 2002-02-21 Christopher Faylor <cgf@redhat.com>
2959 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
2962 2002-02-20 Christopher Faylor <cgf@redhat.com>
2964 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
2967 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2969 * jv-exp.y (parse_number): Change type of implicit longs
2970 to builtin_type_uint64.
2972 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2974 * gdbserver/linux-low.c (mywait): Change argument to waitpid
2975 to be an integer instead of a `union wait'.
2977 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2979 * mips-linux-nat.c: Call the operating system GNU/Linux.
2980 * mips-linux-tdep.c: Likewise.
2981 * mips-tdep.c: Likewise.
2983 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2986 * jv-exp.y (parse_number): Handle 64-bit integers.
2988 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2990 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
2991 AC_STDC_HEADERS to AC_HEADER_STDC.
2992 * gdbserver/configure: Regenerated.
2994 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
2996 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
2998 * sparc-tdep.c (get_longjmp_target): Likewise.
3000 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
3002 * News: Add news about ARM and Multi-arch. Mention the new target
3005 2002-02-19 Jim Blandy <jimb@redhat.com>
3007 * stabsread.c (error_type_complaint): Improve error message.
3009 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
3011 * gdbserver/README: Update documentation.
3012 * gdbserver/configure.in: Update configury to match documentation.
3013 * gdbserver/Makefile.in: Likewise.
3014 * gdbserver/configure: Regenerated.
3015 * gdbserver/aclocal.m4: New file, generated by aclocal.
3016 * gdbserver/config.in: New file, generated by autoheader.
3018 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
3020 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
3023 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
3025 * arm-tdep.h (enum arm_float_model): New enum.
3026 (struct gdbarch_tdep): Add fp_model.
3027 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
3028 up floating-point conversions until we know the floating-point model
3029 in use by the inferior. Don't complain about being unable to
3030 determine the ABI of the inferior when we don't have one.
3031 (arm_extract_return_value): Support different floating-point models.
3032 (arm_store_return_value): Likewise.
3033 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
3035 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
3037 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3039 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
3040 of ``current_gdbarch''.
3042 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
3044 * armnbsd-nat.c : ANSIfy all function declarations.
3045 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
3046 (fetch_inferior_registers): Re-implement in terms of above.
3047 (store_register, store_regs, store_fp_register, store_fp_regs): New.
3048 (store_inferior_registers): Re-implement in terms of above.
3050 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
3052 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
3054 * arm-linux-tdep.c: Likewise.
3055 * config/arm/tm-linux.h: Likewise.
3057 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
3059 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
3060 * config/arm/nbsd.mt (TM_FILE): Delete.
3061 * config/arm/tm-nbsd.h: Delete.
3063 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
3065 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
3066 Initialize CALL_DUMMY_LENGTH.
3068 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
3070 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
3072 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
3073 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
3074 defines one thing and that is incorrect for this port.
3075 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
3077 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3079 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
3081 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3083 * win32-nat.c (display_selector): New function. Displays information
3084 about the information returned by GetThreadSelectorEntry API function.
3085 (display_selectors): New function. Displays the infomation of
3086 the selector given as argument, or of CS, DS ans FS selectors
3087 if no argument is given.
3088 ( _initialize_inftarg): Add "w32" as info prefix command.
3089 Add "info w32 selector" as command calling display_selectors.
3091 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
3093 * i386-tdep.c (get_longjmp_target): Fix compilation failure
3094 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
3097 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
3099 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
3101 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
3103 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
3104 (arm_fix_call_dummy): Call it.
3105 (arm_call_dummy_breakpoint_offset): Delete.
3106 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
3107 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
3109 2002-02-18 Andrew Cagney <ac131313@redhat.com>
3111 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
3112 Default to func_frame_chain_valid.
3113 * gdbarch.h, gdbarch.c: Re-generate.
3114 * frame.h (FRAME_CHAIN_VALID): Delete definition.
3116 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
3118 * ppc-linux-nat.c: Update copyright.
3119 (fetch_register, store_register): Add tid parameter, don't compute
3121 (fetch_ppc_registers, store_ppc_registers): Add tid
3122 parameter. Pass it along to callees.
3123 (fetch_inferior_registers, store_inferior_registers): Compute tid
3124 here, and pass it to calleed functions.
3125 (fill_gregset, supply_fpregset): Clean up formatting.
3127 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
3129 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
3130 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
3132 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
3134 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
3135 * gdbarch.c gdbarch.h: Regenerate.
3136 * breakpoint.c (create_longjmp_breakpoint): Always compile this
3138 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
3139 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
3140 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
3142 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
3143 * arm-tdep.c (arm_get_longjmp_target): New function.
3144 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
3145 this to a positive value register arm_get_longjmp_target as the
3147 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
3148 (arm_linux_init_abi): Set up longjmp description in tdep.
3149 * armnbsd-nat.c (get_longjmp_target): Delete.
3150 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
3151 description in tdep.
3152 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
3153 (get_longjmp_target): Delete declaration.
3154 (GET_LONGJMP_TARGET): Delete.
3155 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
3156 (GET_LONGJMP_TARGET): Delete.
3158 2002-02-17 Kevin Buettner <kevinb@redhat.com>
3160 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
3161 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
3162 of ``current_gdbarch''.
3164 2002-02-17 Tom Tromey <tromey@redhat.com>
3166 * cli/cli-cmds.c (compare_strings): New function.
3167 (complete_command): Only print each unique item once.
3168 * completer.h (complete_line): Declare.
3169 * completer.c (complete_line): New function.
3170 (line_completion_function): Use it.
3172 2002-02-16 Andrew Cagney <ac131313@redhat.com>
3174 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
3175 * gdbarch.h, gdbarch.c: Re-generate.
3177 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
3179 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
3181 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
3183 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
3184 * valops.c (value_arg_coerce): Don't take the address of a reference
3185 to convert an argument to a reference.
3187 2002-02-15 Christopher Faylor <cgf@redhat.com>
3189 * win32-nat.c (get_image_name): New function.
3190 (handle_load_dll): Use get_image_name function.
3191 (get_child_debug_event): Avoid registering debug events until possibly
3192 execed process is started.
3193 (child_create_inferior): Allow invocation via shell so that command
3194 line redirection, etc. works ok.
3195 (_initialize_inftarg): Add new command: "set shell" to control whether
3196 a shell is used to start a process.
3198 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
3200 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
3201 instead of find_register_by_number.
3202 (cannot_store_register): Likewise.
3204 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
3206 * dwarf2read.c: Replace fprintf (stderr, ...) by
3207 fprintf_unfiltered (gdb_stderr, ...).
3209 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
3211 * gdbserver/gdbserver.1: Document --attach.
3213 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
3215 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
3217 * arm-tdep.c (arm_default_arm_le_breakpoint)
3218 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
3219 (arm_default_thumb_be_breakpoint): New. Initialize them from
3220 traditional breakpoint defines.
3221 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
3222 (arm_gdbarch_init): Initialize new breakpoint variables.
3223 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
3224 (arm_linux_init_abi): Initialize linux-specific breakpoint.
3225 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
3226 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
3228 (arm_netbsd_init_abi_common): ... here; new function.
3229 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
3230 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
3231 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
3232 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
3234 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
3236 * arm-tdep.h (enum arm_abi): New enum.
3237 (struct gdbarch_tdep): New structure.
3238 (LOWEST_PC): Provide a default.
3239 (arm_gdbarch_register_os_abi): Declare new function.
3240 * arm-tdep.c (arm_abi_names): New array.
3241 (process_note_abi_tag_sections): New function.
3242 (get_elfosabi): New function.
3243 (arm_gdbarch_register_os_abi): New function.
3244 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
3245 support for that ABI has been built in, then call the appropriate
3246 configuration routine. Use gdbarch_num_regs() to get the number
3248 (arm_dump_tdep): New function.
3249 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
3250 place-holder functions.
3251 (_initialize_arm_tdep): Register them.
3252 * config/arm/tm-arm.h (LOWEST_PC): Delete.
3254 * armnbsd-tdep.c: New file.
3255 * Makefile.in (armnbsd-tdep.o): Add dependencies.
3256 * config/arm/nbsd.mt (TDEPFILES): Add it.
3257 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
3259 * armnbsd-nat.c: Include regcache.h.
3260 * Makefile.in (armnbsd-nat.o): Update dependency list.
3262 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
3264 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3266 * gdbserver/Makefile.in: Fix typos in target rules.
3268 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3270 Fix part of PR gdb/267.
3271 * linespec.c (find_methods): Handle constructors specially for now.
3273 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
3275 * arm-tdep.c (arm_push_arguments): Eliminate special float type
3277 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
3278 standard_coerce_float_to_double().
3280 2002-02-14 Christopher Faylor <cgf@redhat.com>
3282 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
3285 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
3287 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
3288 find_variant_by_name, because it confuses the multiarch
3289 framework. Return NULL if there isn't an architecture with the
3290 user supplied name, instead of forcing a different one without
3291 recording the change with the multiarch machinery.
3292 (find_variant_by_name): Delete.
3294 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3296 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
3297 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
3299 2002-02-13 Martin M. Hunt <hunt@redhat.com>
3301 * stack.c (print_frame_info_base): When calling
3302 print_frame_info_listing_hook, set current_source_symtab.
3304 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3306 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
3307 and remove unused $(INCLUDE_DIR).
3308 Add regcache.c to OBS.
3309 Add generated register protocol files to clean target.
3310 Update dependencies for new objects, obsolete old target code.
3312 * gdbserver/linux-low.c: Remove all platform-specific code to
3313 new files. Remove various dead code. Update to use regcache
3315 * gdbserver/remote-utils.c (fromhex): Add return statement
3317 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
3319 (input_interrupt): Add integer parameter to match prototype
3320 of a signal handler.
3321 (outreg): Use register_data ().
3322 (prepare_resume_reply): Use gdbserver_expedite_regs.
3323 * gdbserver/server.c (main): Dynamically allocate own_buf because
3324 PBUFSIZ is no longer constant. Use registers_to_string () and
3325 registers_from_string ().
3326 * gdbserver/server.h: No longer include "defs.h". Add prototypes
3327 for error (), fatal (), and warning (). Update definition of
3328 PBUFSIZ to use regcache functionality. Add include guard.
3329 * gdbserver/utils.c (fatal): Add missing ``const''.
3330 (warning): New function.
3332 * regformats/regdat.sh: Include "regcache.h" in generated files.
3333 Provide init_registers () function.
3334 * regformats/regdef.h: Add prototype for set_register_cache ().
3337 * gdbserver/linux-arm-low.c: New file.
3338 * gdbserver/linux-i386-low.c: New file.
3339 * gdbserver/linux-ia64-low.c: New file.
3340 * gdbserver/linux-m68k-low.c: New file.
3341 * gdbserver/linux-mips-low.c: New file.
3342 * gdbserver/linux-ppc-low.c: New file.
3343 * gdbserver/linux-sh-low.c: New file.
3345 * gdbserver/regcache.c: New file.
3346 * gdbserver/regcache.h: New file.
3348 * gdbserver/low-linux.c: Removed obsolete file.
3350 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3352 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
3353 * config/i386/linux.mt: Likewise.
3354 * config/ia64/linux.mt: Likewise.
3355 * config/m68k/linux.mh: Likewise.
3356 * config/powerpc/linux.mh: Likewise.
3357 * config/mips/linux.mt: Likewise.
3359 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
3361 * config/i386/i386lynx.mh: Mark gdbserver variables
3362 as (currently) obsolete for this target.
3363 * config/i386/nbsd.mt: Likewise.
3364 * config/i386/nbsdelf.mt: Likewise.
3365 * config/m32r/m32r.mt: Likewise.
3366 * config/m68k/m68klynx.mh: Likewise.
3367 * config/m68k/nbsd.mt: Likewise.
3368 * config/m68k/sun3os4.mh: Likewise.
3369 * config/mips/vr5000.mt: Likewise.
3370 * config/ns32k/nbsd.mt: Likewise.
3371 * config/pa/hppabsd.mh: Likewise.
3372 * config/pa/hppaosf.mh: Likewise.
3373 * config/powerpc/nbsd.mt: Likewise.
3374 * config/rs6000/rs6000lynx.mh: Likewise.
3375 * config/s390/s390.mt: Likewise.
3376 * config/s390/s390x.mt: Likewise.
3377 * config/sparc/sparclynx.mh: Likewise.
3378 * config/sparc/sun4os4.mh: Likewise.
3379 * config/i386/x86-64linux.mt: Likewise.
3380 * config/sparc/linux.mh: Likewise.
3382 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3384 * configure.tgt: Configure gdbserver only for known working
3385 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
3386 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
3387 SUBDIRS if it is configured. Update comment for ${nativefile}.
3388 * configure: Regenerated.
3390 2002-02-13 Michael Snyder <msnyder@redhat.com>
3392 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
3394 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
3395 (default_gcore_mach): Just return 0, work around a problem in bfd.
3396 (default_gcore_target): OK to return NULL if exec_bfd is null.
3397 (make_mem_sec): Use a cast, avoid a warning.
3399 * procfs.c (find_memory_regions_callback): Use a cast instead of
3400 calling host_pointer_to_address (which complains if
3401 sizeof (host pointer) != sizeof (target pointer)).
3402 (procfs_make_note_section): Avoid overflow in psargs string.
3404 * procfs.c (procfs_make_note_section): Make the default
3405 implementation return an error.
3407 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
3409 * procfs.c (procfs_make_note_section): Provide a default definition
3410 (for alpha-dec-osf4.0f). Fix typos.
3412 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
3414 * linux-proc.c: Add include of regcache.h.
3415 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
3417 2002-02-13 Andrew Cagney <ac131313@redhat.com>
3419 From 2002-01-18 Greg McGary <greg@mcgary.org>:
3420 * memattr.c (create_mem_region): Disallow useless empty region.
3421 Regions are half-open intervals, so allow [A..B) [B..C) as
3424 2002-02-13 Michael Chastain <mec@shout.net>
3426 * defs.h: Kill CONST_PTR.
3427 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
3428 * c-lang.c (c_builtin_types): Likewise.
3429 * ch-lang.c (ch_builtin_types): Likewise.
3430 * f-lang.c (f_builtin_types): Likewise.
3431 * language.c (unknown_builtin_types): Likewise.
3432 * m2-lang.c (m2_builtin_types): Likewise.
3433 * p-lang.c (pascal_builtin_types): Likewise.
3434 * scm-lang.c (c_builtin_types): Likewise.
3436 2002-02-13 Keith Seitz <keiths@redhat.com>
3438 * arm-tdep.h (arm_get_next_pc): Add declaration.
3440 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
3442 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
3443 with other related struct-returning functions.
3444 (arm_extract_struct_value_address): New function.
3445 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
3446 initialize float_format, double_format and long_double_format as
3447 appropriate to the endianness of the target.
3448 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
3449 (arm_use_struct_convention): Delete declaration.
3450 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3452 2002-02-13 Keith Seitz <keiths@redhat.com>
3454 * defs.h (core_addr_to_string_nz): New function.
3456 2002-02-13 Mark Kettenis <kettenis@gnu.org>
3458 Apply missing bits of 2002-01-15 patch.
3459 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
3460 (fill_fpregset): Use i387_fill_fsave.
3462 2002-02-12 Keith Seitz <keiths@redhat.com>
3464 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
3465 (core_addr_to_string_nz): New function.
3467 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
3469 * arm-linux-nat.c: Really include arm-tdep.h.
3470 * config/arm/tm-linux.h (struct type, struct value): Declare.
3472 2002-02-11 Michael Snyder <msnyder@redhat.com>
3474 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
3475 (gcore section): Ifdef for Solaris and Unixware only.
3476 (procfs_do_thread_registers): Unixware needs one lwpstatus
3477 per thread (not one prstatus or pstatus).
3478 (procfs_make_note_section): Iterate only over kernel threads (lwps),
3479 not over all gdb threads. For unixware, call elfcore_write_pstatus
3480 once before iterating over threads.
3482 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
3484 * arm-tdep.h: New file.
3485 * arm-tdep.c: Include arm-tdep.h.
3486 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
3487 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
3488 (arm_print_float_info, arm_register_type, convert_to_extended)
3489 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
3490 (arm_extract_return_value, arm_register_name): Make static.
3491 (arm_software_single_step): Similarly. Fix types in declaration.
3492 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
3493 (arm_store_return_value, arm_store_struct_return): New functions.
3494 (arm_gdbarch_init): Register the above functions. Also register
3495 call_dummy_start_offset, sizeof_call_dummy_words,
3496 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
3497 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
3498 max_register_virtual_size, register_size. Set up
3499 prologue_cache.saved_regs here, rather than ...
3500 (_initialize_arm_tdep): ... here.
3501 * config/arm/tm-arm.h (struct type, struct value): Delete forward
3503 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
3504 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
3505 (arm_print_float_info, arm_register_type, convert_to_extended)
3506 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
3507 (arm_extract_return_value, arm_register_name): Delete declarations.
3508 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
3509 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
3510 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
3511 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
3512 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3513 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
3514 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
3515 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
3516 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
3517 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
3518 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
3519 (arm_get_next_pc): No-longer static -- these are needed by the RDI
3521 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
3522 * remote-rdi.c remote-rdp.c: Likewise.
3523 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
3524 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
3525 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
3528 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
3529 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
3530 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
3531 from non-ARM_ prefixed definitions.
3532 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
3534 * remote-rdi.c remote-rdp.c: Likewise.
3535 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
3537 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
3539 * arm-tdep.c (arm_frameless_function_invocation)
3540 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
3541 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
3542 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
3543 (arm_pop_frame, arm_get_next_pc): Make static.
3544 (arm_gdbarch_init): Register above in gdbarch structure.
3545 (arm_read_fp): Renamed from arm_target_read_fp.
3546 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
3547 * config/arm/tm-arm.h (arm_frameless_function_invocation)
3548 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
3549 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
3550 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
3551 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
3552 (arm_pc_is_thumb_dummy): Delete declarations.
3553 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
3554 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
3555 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
3556 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
3558 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
3560 * symtab.c (compare_search_syms): New function.
3561 (sort_search_symbols): New function.
3562 (search_symbols): Sort symbols after searching rather than
3565 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3567 * NEWS: Linux -> GNU/Linux.
3569 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3571 * gdbarch.sh: For for level one methods, disallow a definition
3572 when partially multi-arched. Add comments explaining rationale.
3573 * gdbarch.h: Re-generate.
3575 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3577 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
3580 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3582 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
3584 * gdbarch.c: Re-generate.
3586 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3588 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
3589 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
3592 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3594 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
3596 (PUSH_ARGUMENTS): Switch to using predefault.
3597 * gdbarch.c: Regenerate.
3599 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3601 * valops.c (PUSH_ARGUMENTS): Delete definition.
3602 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
3603 partial. Default to default_push_arguments.
3604 * gdbarch.h, gdbarch.c: Regenerate.
3606 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3608 * defs.h (throw_exception): Rename return_to_top_level. Update
3610 * utils.c (error_stream, internal_verror, quit): Ditto.
3611 * top.c (throw_exception, catcher): Ditto.
3612 * sparclet-rom.c (sparclet_load): Ditto.
3613 * remote.c (interrupt_query, minitelnet): Ditto.
3614 * remote-sds.c (interrupt_query): Ditto.
3615 * remote-mips.c (mips_error, mips_kill): Ditto.
3616 * ocd.c (interrupt_query): Ditto.
3617 * monitor.c (monitor_interrupt_query): Ditto.
3618 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
3619 * target.h: Update comment.
3621 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
3623 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3625 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
3626 default_double_format.
3627 * gdbarch.h, gdbarch.c: Re-generate.
3628 * findvar.c (floatformat_unknown): Delete variable definition.
3629 * doublest.h (floatformat_unknown): Delete variable declaration.
3631 2002-02-09 Jim Blandy <jimb@redhat.com>
3633 * stabsread.c (read_type): Add code to parse Sun's syntax for
3634 prototyped function types.
3636 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3638 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
3639 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
3641 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3643 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
3644 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
3645 now _initialize_xcoffsolib gets called again and overrides the
3646 commands from solib.c in a native configuration.
3648 2002-02-09 Mark Kettenis <kettenis@gnu.org>
3650 * doublest.c (store_typed_floating): Don't try to return a value.
3653 2002-02-08 Jim Blandy <jimb@redhat.com>
3655 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
3656 is prototyped and has no arguments, print its argument list as
3659 2002-02-08 Chris Demetriou <cgd@broadcom.com>
3661 * MAINTAINERS (write-after-approval): Add myself.
3662 (paper-trail): I've escaped!
3664 2002-02-08 Christopher Faylor <cgf@redhat.com>
3666 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
3668 (_initialize_check_for_gdb_ini): Ditto.
3670 2002-02-08 Martin M. Hunt <hunt@redhat.com>
3672 * win32-nat.c (cygwin_pid_to_str): Fix typo.
3673 xaprintf -> xasprintf.
3675 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
3677 * win32-nat.c: Remove use of printf and sprintf functions.
3679 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
3681 * arm-tdep.c (arm_frame_chain_valid): Make static.
3682 (arm_push_arguments): Likewise.
3683 (arm_gdbarch_init): New function.
3684 (_initialize_arm_tdep): Call it.
3685 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
3686 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
3687 (FRAME_CHAIN_VALID): Delete.
3688 (arm_frame_chain_valid): Delete declaration.
3689 (PUSH_ARGUMENTS): Delete.
3690 (arm_push_arguments): Delete declaration.
3691 (CALL_DUMMY_P): Delete.
3693 2002-02-08 Andrew Cagney <ac131313@redhat.com>
3694 Corinna Vinschen <vinschen@redhat.com>
3696 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
3697 on builtin float types.
3699 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
3701 * utils.c: Include <curses.h> before "bfd.h".
3702 * tui/tui-hooks.c: Likewise.
3703 * tui/tui.c: Likewise.
3704 * tui/tuiCommand.c: Likewise.
3705 * tui/tuiData.c: Likewise.
3706 * tui/tuiDataWin.c: Likewise.
3707 * tui/tuiDisassem.c: Likewise.
3708 * tui/tuiGeneralWin.c: Likewise.
3709 * tui/tuiIO.c: Likewise.
3710 * tui/tuiLayout.c: Likewise.
3711 * tui/tuiRegs.c: Likewise.
3712 * tui/tuiSource.c: Likewise.
3713 * tui/tuiSourceWin.c: Likewise.
3714 * tui/tuiStack.c: Likewise.
3715 * tui/tuiWin.c: Likewise.
3717 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
3719 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
3720 to include space for pseudoregs as well. Update loops accordingly.
3721 (sh_fp_frame_init_saved_regs): Ditto.
3722 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
3724 2002-02-07 Andrew Cagney <ac131313@redhat.com>
3726 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
3727 Add Richard Earnshaw to Arm maintainers.
3729 2002-02-07 Andrew Cagney <ac131313@redhat.com>
3731 * defs.h (warning_begin): Delete declaration.
3733 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
3736 2002-02-07 Michael Snyder <msnyder@redhat.com>
3738 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
3739 Logic bug, remove misplaced else.
3741 2002-02-07 Klee Dienes <klee@apple.com>
3743 * fork-inferior.c (fork_inferior): Add '!' to the list of
3744 characters that need to be quoted when building a string for the
3745 shell. Quote '!' specifically with a backslash, since CSH chokes
3746 when trying to evaluate "str!str".
3748 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
3750 * rdi-share/host.h: Only provide a typedef for bool if it is not
3753 2002-02-04 Michael Snyder <msnyder@redhat.com>
3755 * breakpoint.h (enum bptype): Add new overlay event bp type.
3756 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
3758 * breakpoint.c (create_internal_breakpoint): New function.
3759 (internal_breakpoint_number): Moved into create_internal_breakpoint.
3760 (create_longjmp_breakpoint): Use create_internal_breakpoint.
3761 (create_thread_event_breakpoint): Ditto.
3762 (create_solib_event_breakpoint): Ditto.
3763 (create_overlay_event_breakpoint): New function.
3764 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
3765 (update_breakpoints_after_exec): Delete and re-initialize
3766 overlay event breakpoints after an exec. Add FIXME comment
3767 about longjmp breakpoint.
3768 (print_it_typical): Ignore overlay event breakpoints.
3769 (print_one_breakpoint): Ditto.
3771 (bpstat_what): Do not stop for overlay event breakpoints.
3772 (delete_breakpoint): Don't delete overlay event breakpoints.
3773 (breakpoint_re_set_one): Delete the overlay event breakpoint.
3774 (breakpoint_re_set): Re-create overlay event breakpoint.
3776 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
3777 (overlay_manual_command): Disable overlay breakpoints.
3778 (overlay_off_command): Disable overlay breakpoints.
3780 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3782 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
3783 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
3784 to here from config/tm-arm.h.
3785 (coff_sym_is_thumb): Make static.
3786 (arm_elf_make_msymbol_special): New function.
3787 (arm_coff_make_msymbol_special): New function.
3788 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
3789 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
3790 (coff_sym_is_thumb): Delete declaration.
3791 (arm_elf_make_msymbol_special): Declare.
3792 (arm_coff_make_msymbol_special): Declare.
3793 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
3794 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
3796 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3798 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
3800 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3802 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
3803 * gdbarch.c gdbarch.h: Regenerate.
3804 * arch-utils.c (default_print_float_info): New function.
3805 * arch-utils.h (default_print_float_info): Prototype it.
3806 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
3807 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
3808 (PRINT_FLOAT_INFO): Document it.
3810 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
3811 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
3812 (PRINT_FLOAT_INFO): Define.
3814 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
3816 * win32-nat.c (_initialize_check_for_gdb_ini):
3817 Add typecast to sprintf argument to suppress a warning.
3819 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
3821 * win32-nat.c (last_sig): Changed type of variable to target_signal,
3822 to allow easier handling of pass state.
3823 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
3824 that gives exception name and address.
3825 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
3826 and set last_sig value to ourstatus->value.sig. Some missing
3828 (child_continue): Correctly report continue_status.
3829 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
3830 TARGET_SIGNAL_0 (new default value).
3831 (child_resume): consider sig argument passed to decide if
3832 the exception should be passed to debuggee or not.
3834 2002-02-05 Michael Snyder <msnyder@redhat.com>
3836 * regcache.c (fetch_register): Call target_fetch_register
3837 only if we don't call FETCH_PSEUDO_REGISTER.
3838 (store_register): Call target_store_register only if we
3839 don't call STORE_PSEUDO_REGISTER.
3841 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
3843 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
3844 ELF_MAKE_MSYMBOL_SPECIAL.
3845 * gdbarch.c, gdbarch.h: Regenerate.
3846 * arch-utils.c (default_make_msymbol_special): New function.
3847 * arch-utils.h (default_make_msymbol_special): Export.
3848 * elfread.c (elf_symtab_read): Compile use of
3849 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
3851 * coffread.c (coff_symtab_read): Ditto, for
3852 COFF_MAKE_MSYMBOL_SPECIAL.
3854 2002-02-05 Jim Blandy <jimb@redhat.com>
3856 * solib-svr4.c (svr4_truncate_ptr): New function.
3857 (svr4_relocate_section_addresses): Do the address arithmetic with
3858 the appropriate truncation for target addresses, even when
3859 CORE_ADDR is larger than a target address.
3861 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3863 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
3866 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3868 * gdbserver/linux-low.c (kill_inferior): Remove commented out
3871 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3873 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
3875 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3877 * gdbserver/linux-low.c: Remove unused include files.
3879 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3881 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
3882 (read_inferior_memory): Use it.
3883 (write_inferior_memory): Likewise.
3885 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3887 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
3888 grubbing through sys_errlist.
3890 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3892 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
3894 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3895 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
3897 2002-02-04 Andrew Cagney <ac131313@redhat.com>
3899 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
3900 (do_sfunc, set_cmd_sfunc): New functions.
3902 * command.h (struct cmd_list_element): Add field func.
3903 * cli/cli-decode.h (struct cmd_list_element): Ditto.
3904 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
3905 * cli/cli-decode.h: Ditto.
3907 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
3908 (help_all, help_cmd_list): Ditto.
3909 (find_cmd, complete_on_cmdlist): Ditto.
3910 * top.c (execute_command): Ditto.
3912 * cli/cli-setshow.c (do_setshow_command): Call func instead of
3915 * infcmd.c (notice_args_read): Fix function signature.
3917 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
3918 * cli/cli-decode.c (add_set_cmd): Ditto.
3919 * utils.c (initialize_utils): Ditto.
3920 * maint.c (_initialize_maint_cmds): Ditto.
3921 * infrun.c (_initialize_infrun): Ditto.
3922 * demangle.c (_initialize_demangler): Ditto.
3923 * remote.c (add_packet_config_cmd): Ditto.
3924 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3925 * cris-tdep.c (_initialize_cris_tdep): Ditto.
3926 * proc-api.c (_initialize_proc_api): Ditto.
3927 * kod.c (_initialize_kod): Ditto.
3928 * valprint.c (_initialize_valprint): Ditto.
3929 * top.c (init_main): Ditto.
3930 * infcmd.c (_initialize_infcmd): Ditto.
3931 * corefile.c (_initialize_core): Ditto.
3932 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3933 * arch-utils.c (initialize_current_architecture): Ditto.
3934 (_initialize_gdbarch_utils): Ditto.
3935 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
3937 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
3938 * wince.c (_initialize_inftarg): Ditto.
3939 * symfile.c (_initialize_symfile): Ditto.
3940 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3941 * language.c (_initialize_language): Ditto.
3942 * arc-tdep.c (_initialize_arc_tdep): Ditto.
3944 2002-02-04 Michael Snyder <msnyder@redhat.com>
3946 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
3948 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3950 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
3951 Add rules for building the register data files.
3953 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3955 * regformats/regdat.sh: Add braces to the definition of
3956 expedite_regs_${arch}.
3958 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3960 * regformats/regdef.h (struct reg): Add comment describing the
3961 requirements for offset and size fields.
3963 2002-02-04 Andreas Schwab <schwab@suse.de>
3965 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
3966 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
3968 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
3970 * gdbarch.sh (copyright): Update years in generated header.
3971 (SMASH_TEXT_ADDRESS): Add rule.
3972 * gdbarch.h, gdbarch.c: Re-generate.
3973 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
3974 * dbxread.c: Likewise.
3975 * dwarfread.c: Likewise.
3976 * elfread.c: Likewise.
3977 * somread.c: Likewise.
3979 * arm-tdep.c (arm_smash_text_address): New function.
3980 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
3982 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3984 Add support for hardware watchpoints on win32 native.
3985 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
3986 CONTEXT_DEBUG_REGISTERS.
3987 (dr variable): New variable. Static array containing a local copy
3989 (debug_registers_changed): New variable. Reflects when debug registers
3990 are changed and need to be written to inferior.
3991 (debug_registers_used): New variable. Reflects when any debug register
3992 was set, used when new threads are created.
3993 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
3995 (thread_rec): Set dr array if id is the thread of current_event .
3996 (child_continue, child_resume): Change the debug registers for all
3997 threads if debug_registers_changed.
3998 (child_add_thread): Change the debug registers if debug_registers_used.
3999 * config/i386/cygwin.mh: Add use of i386-nat.o file.
4000 Link nm.h to new nm-cygwin.h file.
4001 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
4002 of hardware registers.
4004 2002-02-03 Andrew Cagney <ac131313@redhat.com>
4006 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
4007 Restore behavour broken by 2002-01-20 Andrew Cagney
4008 <ac131313@redhat.com> IEEE_FLOAT removal.
4010 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
4012 * c-valprint.c (c_val_print): Pass a proper valaddr to
4013 cp_print_class_method.
4014 * valops.c (search_struct_method): If there is only one method
4015 and args is NULL, return that method.
4017 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
4019 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
4020 accessing tag_name directly.
4022 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
4024 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
4025 of accessing tag_name directly.
4027 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
4030 * gdbtypes.c (replace_type): New function.
4031 * gdbtypes.h (replace_type): Add prototype.
4032 * stabsread.c (read_type): Use replace_type.
4034 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
4036 * Makefile.in (memattr.o): Add missing dependencies rule.
4038 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4040 * breakpoint.c (break_at_finish_command): Really export.
4041 (break_at_finish_at_depth_command): Ditto.
4042 (tbreak_at_finish_command): Ditto.
4043 * hppa-tdep.c: Include completer.h.
4044 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
4045 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
4047 2002-02-01 Andrew Cagney <ac131313@redhat.com>
4049 * utils.c (do_write): New function.
4050 (error_stream): Rewrite combining the code from error_begin and
4052 (verror): Rewrite using error_stream.
4053 (error_begin): Delete function.
4055 2002-02-01 Andrew Cagney <ac131313@redhat.com>
4057 * utils.c (error_begin): Make static.
4058 * defs.h (error_begin): Delete declaration.
4060 * linespec.c (cplusplus_error): Replace cplusplus_hint.
4061 (decode_line_1): Use cplusplus_error instead of error_begin,
4062 cplusplus_hint and return_to_top_level.
4063 * coffread.c (coff_symfile_read): Use error instead of error_begin
4064 and return_to_top_level.
4065 * infrun.c (default_skip_permanent_breakpoint): Ditto.
4067 2002-02-01 Andrew Cagney <ac131313@redhat.com>
4069 * language.h (type_error, range_error): Make string parameter
4071 * language.c (warning_pre_print): Delete extern declaration.
4072 * dwarfread.c (warning_pre_print): Ditto.
4073 * language.c (type_error, range_error): Rewrite to use verror and
4074 vwarning instead of warning_begin.
4076 2002-02-01 Michael Snyder <msnyder@redhat.com>
4078 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
4079 (set_ignore_count): Move misplaced comment back where it belongs.
4081 2002-02-01 Andrew Cagney <ac131313@redhat.com>
4083 * command.h (NO_FUNCTION): Delete macro.
4084 * cli/cli-decode.h (NO_FUNCTION): Ditto.
4085 * top.c (execute_command): Replace NO_FUNCTION with NULL.
4086 * tracepoint.c (_initialize_tracepoint): Ditto.
4087 * cli/cli-decode.c (add_set_cmd): Ditto.
4088 * cli/cli-cmds.c (init_cli_cmds): Ditto.
4090 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
4092 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
4093 Update ``this'' pointer when calling virtual functions.
4095 2002-02-01 Michael Snyder <msnyder@redhat.com>
4097 * breakpoint.c (create_temp_exception_breakpoint): Delete.
4098 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
4100 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
4102 * regformats/reg-arm.dat: New file.
4103 * regformats/reg-i386.dat: New file.
4104 * regformats/reg-ia64.dat: New file.
4105 * regformats/reg-m68k.dat: New file.
4106 * regformats/reg-mips.dat: New file.
4107 * regformats/reg-ppc.dat: New file.
4108 * regformats/reg-sh.dat: New file.
4109 * regformats/regdef.h: New file.
4110 * regformats/regdat.sh: New file.
4112 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
4114 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
4115 (arm_frame_args_address, arm_frame_locals_address): New functions.
4116 (arm_frame_num_args): New function.
4117 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
4118 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
4119 (FRMA_NUM_ARGS): Call arm_frame_num_args.
4121 2002-01-31 Michael Snyder <msnyder@redhat.com>
4123 * breakpoint.c (break_at_finish_command): Export.
4124 (break_at_finish_at_depth_command): Export.
4125 (tbreak_at_finish_command): Export.
4126 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
4127 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
4128 "tbreak" commands, which are HPPA specific.
4130 * printcmd.c (disassemble_command): Remove an ancient
4131 artifact of an old merge.
4133 * symfile.h (enum overlay_debugging_state):
4134 Define enum constant values for overlay mode.
4135 * symfile.c (overlay_debugging): Use enums instead of literals.
4136 (overlay_is_mapped, overlay_auto_command,
4137 overlay_manual_command): Ditto.
4139 * breakpoint.c (insert_breakpoints, remove_breakpoint,
4140 breakpoint_here_p, breakpoint_inserted_here_p,
4141 breakpoint_thread_match, bpstat_stop_status,
4142 describe_other_breakpoints, check_duplicates, clear_command):
4143 Coding standard fixes.
4145 * target.c (target_xfer_memory): Add spaces, coding standard.
4146 (do_xfer_memory): Add missing line to trust-readonly
4147 code: check bfd SEC_READONLY flag for section.
4149 2002-01-31 Andrew Cagney <ac131313@redhat.com>
4151 * PROBLEMS: Fix typo, 5.1->5.1.1.
4153 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
4155 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
4156 data symbols, since we search based on textlow and texthigh.
4157 (find_pc_sect_symtab): Likewise.
4159 2002-01-30 Andrew Cagney <ac131313@redhat.com>
4161 * defs.h (vwarning): Declare.
4162 * utils.c (vwarning): New function.
4163 (warning): Call vwarning.
4164 (warning_begin): Delete function.
4166 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
4167 the warning message.
4168 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
4171 2002-01-30 Michael Snyder <msnyder@redhat.com>
4173 * NEWS: Mention "set trust-readonly-sections" command.
4174 Mention generate-core-file command.
4176 2002-01-15 Michael Snyder <msnyder@redhat.com>
4178 * target.c: New command, "set trust-readonly-sections on".
4179 (do_xfer_memory): Honor the suggestion to trust readonly sections
4180 by reading them from the object file instead of from the target.
4181 (initialize_targets): Register command "set trust-readonly-sections".
4183 2002-01-29 Andrew Cagney <ac131313@redhat.com>
4185 * parse.c (target_map_name_to_register): Simplify, search regs and
4186 pseudo-regs using a single loop.
4188 2002-01-30 Andrew Cagney <ac131313@redhat.com>
4190 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
4192 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
4194 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
4195 * config/i386/i386v42mp.mh: Add i387-nat.o .
4196 * i386v4-nat.c: Include i387-nat.h.
4197 (supply_fpregset): Use i387_supply_fsave.
4198 (fill_fpregset): Use i387_fill_fsave.
4200 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
4202 * arm-tdep.c (arm_call_dummy_words): Define.
4203 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
4204 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
4205 (CALL_DUMMY_WORDS): Define.
4206 (arm_call_dummy_words): Declare.
4207 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
4208 (arm_linux_call_dummy_words): Declare.
4210 2002-01-30 Andreas Schwab <schwab@suse.de>
4212 * m68klinux-nat.c: Fix last change to use regcache_collect
4213 instead of referencing registers[] directly.
4215 2002-01-29 Andrew Cagney <ac131313@redhat.com>
4217 * parse.c (target_map_name_to_register): Delete code wrapped in
4218 #ifdef REGISTER_NAME_ALIAS_HOOK.
4220 2002-01-28 Michael Snyder <msnyder@redhat.com>
4222 * regcache.c (legacy_read_register_gen): Need to be able to
4223 read pseudo-register as well as real register.
4224 (legacy_write_register_gen): Ditto.
4226 2002-01-28 Andrew Cagney <ac131313@redhat.com>
4228 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
4229 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
4230 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
4231 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
4232 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
4233 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
4234 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
4235 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
4236 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
4237 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
4238 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
4239 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
4240 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
4241 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
4242 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
4243 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
4244 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
4245 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
4246 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
4247 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
4249 2002-01-28 Andrew Cagney <ac131313@redhat.com>
4251 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
4252 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
4253 (initialize_current_architecture): Update target_byte_order using
4254 information from BFD.
4255 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
4256 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
4258 2002-01-28 Andrew Cagney <ac131313@redhat.com>
4260 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
4261 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
4263 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
4264 #ifdef INVALID_FLOAT.
4265 * infcmd.c (do_registers_info): Ditto.
4266 * values.c (unpack_double): Ditto. Add comment.
4268 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
4269 already commented out.
4271 2002-01-26 Andreas Schwab <schwab@suse.de>
4273 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4274 * m68klinux-nat.c: Update ptrace interface for fetching/storing
4275 registers and add support for PTRACE_GETREGS.
4277 2002-01-24 Andrew Cagney <ac131313@redhat.com>
4279 GDB 5.1.1 released from 5.1 branch.
4280 * NEWS: Add 5.1.1 news.
4281 * README: Sync with 5.1 branch.
4283 2002-01-23 Fred Fish <fnf@redhat.com>
4285 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
4286 stabstring on initial malloc. Reallocing will copy it for us,
4289 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
4291 * Makefile.in (hpread_h): Delete.
4292 (HFILES_NO_SRCDIR): Remove hpread.h.
4293 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
4294 (hpread.o): Update dependencies.
4295 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
4297 * hp-psymtab-read.c: Remove file.
4298 * hp-symtab-read.c: Remove file.
4299 * hpread.h: Remove file.
4301 * hpread.c: Merge all contents of hp-psymtab-read.c,
4302 hp-symtab-read.c and hpread.h into this file, as it was prior to
4305 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
4306 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
4307 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
4308 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
4310 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
4312 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
4313 fill_gregset): Call gdbarch_tdep() just once, assign result to
4314 variable and use that, instead of calling the function several
4317 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4319 * configure.host: Accept sparcv9 as alias for sparc64.
4320 * configure.tgt: Likewise.
4322 2002-01-22 Kevin Buettner <kevinb@redhat.com>
4324 * solib-aix5.c (build_so_list_from_mapfile)
4325 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
4326 arguments is not reversed.
4327 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
4328 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
4330 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
4332 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
4333 modified version of obsolete sh_fetch_pseudo_register.
4334 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
4335 (sh4_register_read): New function.
4336 (sh_pseudo_register_write): New function. Renamed and modified
4337 version of obsolete sh_store_pseudo_register.
4338 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
4339 (sh4_register_write): New function.
4340 (sh_gdbarch_init): Remove setting of gdbarch function
4341 fetch_pseudo_register and store_pseudo_register. Remove setting of
4342 register_convert_to_raw, register_convert_to_virtual,
4343 register_convertible.
4344 (sh_sh4_register_convertible): Delete. No longer needed. All is
4345 taken care by architecture specific functions
4346 register_read/register_write.
4347 (sh_sh4_register_convert_to_virtual): Make static.
4348 (sh_sh4_register_convert_to_raw): Ditto.
4350 2002-01-22 Andrew Cagney <ac131313@redhat.com>
4352 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
4353 (floatformat_is_nan, floatformat_mantissa): Ditto.
4355 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
4356 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
4357 builtin_type_ieee_double_little,
4358 builtin_type_ieee_double_littlebyte_bigword,
4359 builtin_type_m68881_ext, builtin_type_i960_ext,
4360 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
4361 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
4362 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
4363 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
4365 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
4367 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
4368 parameter. Set frameless flag if it exists and depended of
4369 whether the scanned function is frameless or not.
4370 (xstormy16_skip_prologue): If function is frameless, return
4371 result of xstormy16_scan_prologue().
4372 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
4375 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
4377 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
4378 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
4379 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
4380 sh_sh4_register_byte, sh_sh4_register_raw_size,
4381 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
4382 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
4383 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
4384 sh_store_pseudo_register, sh_do_pseudo_register): Call
4385 gdbarch_tdep() just once, assign result to variable and use that,
4386 instead of calling the function several times.
4388 2002-01-20 Mark Kettenis <kettenis@gnu.org>
4390 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
4391 macros instead of LAST_FPU_CTRL_REGNUM.
4392 (store_register): Likewise.
4394 2002-01-21 Jim Blandy <jimb@redhat.com>
4396 * infcmd.c (run_command): Check that the `exec' target layer's BFD
4397 is up-to-date before running the program, not just when a program
4400 2002-01-21 Fred Fish <fnf@redhat.com>
4402 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
4403 when we have found all instructions we are looking for.
4405 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
4407 * arm-tdep.c (arm_register_name): New function.
4408 (arm_registers_names): Make static.
4409 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
4410 (arm_register_name): Declare.
4411 (REGISTER_NAME): Use it.
4413 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
4414 Kevin Buettner <kevinb@redhat.com>
4416 Convert arm targets to new FRAME interface.
4417 * arm-tdep.c (struct frame_extra_info): Remove fsr.
4418 (arm_frame_find_save_regs): Delete.
4419 (arm_frame_init_saved_regs): New.
4420 (arm_init_extra_frame_info): Alloacte saved_regs as required.
4421 Allocate extra_info as required. Convert all uses of fsr.regs
4422 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
4424 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
4425 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
4426 (check_prologue_cache, save_prologue_cache): Likewise.
4427 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
4428 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
4429 (FRAME_FIND_SAVED_REGS): Delete.
4430 (arm_frame_find_saved_regs): Delete prototype.
4431 (arm_frame_init_saved_regs): New prototype.
4432 (FRAME_INIT_SAVED_REGS): Define.
4434 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4436 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
4438 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4440 From Jeff Law <law@redhat.com>:
4441 * infttrace.c: Include <sys/pstat.h>.
4442 (child_pid_to_exec_file): Revamp. Use pstat call to get the
4443 exec file if the ttrace equivalent fails.
4445 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4447 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
4448 (closeLogFile): Ditto.
4450 2002-01-20 Michael Chastain <mec@shout.net>
4452 * top.c (print_gdb_version): Bump copyright year to 2002.
4454 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4456 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
4457 Zannoni and Eli Zaretskii.
4459 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4461 * buildsym.c: Update copyright years.
4462 * c-typeprint.c: Likewise.
4463 * dwarf2read.c: Likewise.
4464 * f-typeprint.c: Likewise.
4465 * gdbtypes.c: Likewise.
4466 * gdbtypes.h: Likewise.
4467 * hp-symtab-read.c: Likewise.
4468 * hpread.c: Likewise.
4469 * mdebugread.c: Likewise.
4470 * p-typeprint.c: Likewise.
4472 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4474 * remote-sim.c (gdbsim_open): Simplify code testing the macro
4475 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
4476 byte-order selectable.
4477 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
4478 * arch-utils.c: Ditto.
4479 (set_endian): Ditto.
4480 (set_endian_from_file): Ditto.
4481 * gdbserver/low-sim.c (create_inferior): Ditto.
4482 * gdbarch.sh: Ditto.
4483 * gdbarch.h: Re-generate.
4484 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4485 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
4486 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
4487 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4488 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4489 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4490 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
4491 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
4493 * config/mips/tm-wince.h: Remove #undef of macro
4494 TARGET_BYTE_ORDER_SELECTABLE.
4495 * config/sh/tm-wince.h: Ditto.
4497 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4499 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
4500 member function fields. Add accessor macro
4501 TYPE_FN_FIELD_ARTIFICIAL.
4502 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
4503 * c-typeprint.c (c_type_print_base): Skip artificial member
4506 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4508 * f-typeprint.c: Delete unused function f_type_print_args.
4509 * p-typeprint.c: Delete unused function pascal_type_print_args.
4511 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4513 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
4514 comment. Add ``artificial'' to ``union field_location''.
4516 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
4518 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
4519 * mdebugread.c (parse_symbol): Likewise.
4520 * stabsread.c (define_symbol): Likewise.
4521 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
4522 initializing TYPE_FIELD_BITPOS to n (obsolete).
4523 (hpread_doc_function_type): Likewise.
4524 * hpread.c (hpread_function_type): Likewise.
4526 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4528 * configure.in (host_makefile_frag): Only require a host makefile
4529 fragment when a native build.
4530 * configure: Re-generate.
4532 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4534 * doublest.h (floatformat_from_type): Declare.
4535 * doublest.c (floatformat_from_type): New function.
4536 (convert_typed_floating): Use.
4538 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
4539 call to function floatformat_from_type.
4541 * gdbarch.sh (IEEE_FLOAT): Delete.
4542 * gdbarch.h, gdbarch.c: Re-generate.
4543 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
4544 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
4545 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
4546 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
4547 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
4548 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
4549 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
4550 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
4551 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
4552 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
4553 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
4554 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
4556 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
4557 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
4558 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4559 * sh-tdep.c (sh_gdbarch_init): Ditto.
4560 * mips-tdep.c (mips_gdbarch_init): Ditto.
4561 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4562 * cris-tdep.c (cris_gdbarch_init): Ditto.
4564 2002-01-20 Jiri Smid <smid@suse.cz>
4566 * configure.host, configure.tgt: Support x86-64.
4567 * NEWS: Note new target x86-64.
4569 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
4570 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
4571 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
4572 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
4573 x86-64-linux-nat.o): Fix dependencies.
4575 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4577 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
4578 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
4579 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
4580 * config/sparc/xm-sun4os4.h: Delete file.
4581 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
4583 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4585 * config/sparc/sparclynx.mh (XM_FILE): Delete.
4586 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
4587 * config/m68k/m68klynx.mh (XM_FILE): Delete.
4588 * config/i386/i386lynx.mh (XM_FILE): Delete.
4589 * config/rs6000/xm-rs6000ly.h: Delete file.
4590 * config/sparc/xm-sparclynx.h: Delete file.
4591 * config/m68k/xm-m68klynx.h: Delete file.
4592 * config/i386/xm-i386lynx.h: Delete file.
4593 * config/xm-lynx.h: Delete file.
4594 * config/djgpp/fnchange.lst: Update.
4596 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4598 * alpha-tdep.c (alpha_register_byte): New function.
4599 (alpha_register_raw_size): Ditto.
4600 (alpha_register_virtual_size): Ditto.
4601 (alpha_skip_prologue_internal): Renamed from
4602 alpha_skip_prologue.
4603 (alpha_skip_prologue): New version that calls
4604 alpha_skip_prologue_internal.
4605 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
4606 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
4607 second argument from alpha_skip_prologue.
4608 (REGISTER_BYTE): Use alpha_register_byte.
4609 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
4610 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
4611 (FRAMELESS_FUNCTION_INVOCATION): Use
4612 generic_frameless_function_invocation_not.
4613 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
4614 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
4616 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4618 * config/mips/xm-news-mips.h: Delete file.
4619 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
4621 * config/m88k/xm-m88k.h: Delete file.
4622 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
4623 * config/m88k/xm-delta88v4.h: Ditto.
4624 * config/m88k/xm-delta88.h: Ditto.
4626 * config/alpha/xm-fbsd.h: Delete file.
4627 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
4629 * config/sparc/xm-sparc.h: Delete file.
4630 * Makefile.in (xm-sun4os4.h): Delete dependency.
4631 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
4632 * config/sparc/xm-sun4os4.h: Ditto.
4633 * config/sparc/xm-linux.h: Ditto.
4635 * config/i386/xm-windows.h: Delete file.
4637 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4639 * utils.c: Include <sys/param.h> for MAXPATHLEN.
4640 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
4642 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4644 * alpha-tdep.c (alpha_call_dummy_words): New.
4645 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
4646 (CALL_DUMMY_P): Define.
4647 (CALL_DUMMY_WORDS): Define.
4648 (SIZEOF_CALL_DUMMY_WORDS): Define.
4650 2002-01-19 Per Bothner <per@bothner.com>
4652 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
4653 isn't NULL, which can happen with some gcj-3.x-produced code.
4655 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4657 * alpha-tdep.c (alpha_register_virtual_type): New function.
4658 (alpha_init_frame_pc_first): Ditto.
4659 (alpha_fix_call_dummy): Ditto.
4660 (alpha_store_struct_return): Ditto.
4661 (alpha_extract_struct_value_address): Ditto.
4662 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
4663 alpha_register_virtual_type.
4664 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
4665 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
4666 alpha_extract_struct_value_address.
4667 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
4668 (INIT_FRAME_PC): Use init_frame_pc_noop.
4669 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
4671 2002-01-19 Mark Kettenis <kettenis@gnu.org>
4673 * i386gnu-nat.c: Include "i386-tdep.h".
4674 (fetch_fpregs): Simplify code dealing with uninitialized floating
4675 point states such that it doesn't require FP7_REGNUM.
4677 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4679 * alpha-tdep.c (frame_extra_info): New.
4680 (alpha_find_saved_regs): Make static. Use
4682 (alpha_frame_init_saved_regs): New function.
4683 (alpha_frame_saved_pc): Use frame->extra_info.
4684 (temp_saved_regs): Don't declare as struct frame_saved_regs.
4685 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
4686 (init_extra_frame_info): Rename to...
4687 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
4688 (alpha_print_extra_frame_info): New function.
4689 (alpha_frame_locals_address): Ditto.
4690 (alpha_frame_args_address): Ditto.
4691 (alpha_pop_frame): Use frame->extra_info.
4692 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
4693 alpha_frame_args_address.
4694 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
4695 (alpha_find_saved_regs): Remove prototype.
4696 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
4697 (EXTRA_FRAME_INFO): Remove.
4698 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
4699 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
4701 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4703 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
4704 (alpha_cannot_fetch_register): Ditto.
4705 (alpha_cannot_store_register): Ditto.
4706 (alpha_register_convertible): Ditto.
4707 (alpha_use_struct_convention): Ditto.
4708 * config/alpha/tm-alpha.h: Update copyright years.
4709 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
4710 (INNER_THAN): Use core_addr_lessthan.
4711 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
4712 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
4713 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
4714 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
4715 (FRAME_CHAIN): Remove unnecessary cast.
4717 2002-01-18 Andrew Cagney <ac131313@redhat.com>
4719 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
4722 2002-01-18 Andrew Cagney <ac131313@redhat.com>
4724 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
4725 * monitor.c, remote-array.c, remote-bug.c: Ditto.
4726 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
4727 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
4728 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
4729 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
4730 * x86-64-linux-nat.c: Ditto.
4732 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4734 * alpha-tdep.c (alpha_register_name): New function.
4735 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
4736 (REGISTER_NAME): Define.
4738 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4740 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
4742 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4744 * alpha-tdep.c: Update copyright years.
4745 (alpha_next_pc): New function.
4746 (alpha_software_single_step): Ditto.
4747 * config/alpha/tm-alpha.h: Add prototype for
4748 alpha_software_single_step.
4750 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4752 * alphabsd-nat.c: Update copyright years.
4753 (fill_gregset): Use regcache_collect.
4754 (fill_fpregset): Likewise.
4755 (fetch_inferior_registers): Only fetch integer registers
4756 if requested to do so.
4757 (store_inferior_registers): Only store integer registers
4758 if requested to do so.
4760 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4762 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
4763 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
4764 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
4765 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
4766 * config/alpha/fbsd.mh (XDEPFILES): Delete.
4767 * config/arm/linux.mh (XDEPFILES): Delete.
4768 * config/arm/nbsd.mh (XDEPFILES): Delete.
4769 * config/i386/i386dgux.mh (XDEPFILES): Delete.
4770 * config/i386/i386sol2.mh (XDEPFILES): Delete.
4771 * config/i386/i386m3.mh (XDEPFILES): Delete.
4772 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
4773 * config/i386/i386gnu.mh (XDEPFILES): Delete.
4774 * config/i386/fbsd.mh (XDEPFILES): Delete.
4775 * config/i386/i386bsd.mh (XDEPFILES): Delete.
4776 * config/i386/i386sco5.mh (XDEPFILES): Delete.
4777 * config/i386/i386v4.mh (XDEPFILES): Delete.
4778 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
4779 * config/i386/i386sco4.mh (XDEPFILES): Delete.
4780 * config/i386/i386aix.mh (XDEPFILES): Delete.
4781 * config/i386/go32.mh (XDEPFILES): Delete.
4782 * config/i386/cygwin.mh (XDEPFILES): Delete.
4783 * config/i386/i386lynx.mh (XDEPFILES): Delete.
4784 * config/i386/i386mach.mh (XDEPFILES): Delete.
4785 * config/i386/i386v32.mh (XDEPFILES): Delete.
4786 * config/i386/linux.mh (XDEPFILES): Delete.
4787 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
4788 * config/i386/ncr3000.mh (XDEPFILES): Delete.
4789 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
4790 * config/i386/i386sco.mh (XDEPFILES): Delete.
4791 * config/i386/i386v.mh (XDEPFILES): Delete.
4792 * config/i386/nbsd.mh (XDEPFILES): Delete.
4793 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
4794 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
4795 * config/i386/symmetry.mh (XDEPFILES): Delete.
4796 * config/i386/obsd.mh (XDEPFILES): Delete.
4797 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
4798 * config/ia64/linux.mh (XDEPFILES): Delete.
4799 * config/ia64/aix.mh (XDEPFILES): Delete.
4800 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
4801 * config/m68k/dpx2.mh (XDEPFILES): Delete.
4802 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
4803 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
4804 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
4805 * config/m68k/linux.mh (XDEPFILES): Delete.
4806 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
4807 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
4808 * config/m68k/nbsd.mh (XDEPFILES): Delete.
4809 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
4810 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
4811 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
4812 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
4813 * config/m88k/delta88.mh (XDEPFILES): Delete.
4814 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
4815 * config/m88k/m88k.mh (XDEPFILES): Delete.
4816 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
4817 * config/mips/linux.mh (XDEPFILES): Delete.
4818 * config/mips/irix6.mh (XDEPFILES): Delete.
4819 * config/mips/irix5.mh (XDEPFILES): Delete.
4820 * config/mips/irix4.mh (XDEPFILES): Delete.
4821 * config/mips/irix3.mh (XDEPFILES): Delete.
4822 * config/mips/decstation.mh (XDEPFILES): Delete.
4823 * config/mips/mipsm3.mh (XDEPFILES): Delete.
4824 (NATDEPFILES): Move core-aout.o to here.
4825 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
4826 * config/pa/hpux1020.mh (XDEPFILES): Delete.
4827 * config/pa/hppabsd.mh (XDEPFILES): Delete.
4828 * config/pa/hppahpux.mh (XDEPFILES): Delete.
4829 * config/pa/hpux11w.mh (XDEPFILES): Delete.
4830 * config/pa/hppaosf.mh (XDEPFILES): Delete.
4831 * config/pa/hpux11.mh (XDEPFILES): Delete.
4832 * config/powerpc/aix.mh (XDEPFILES): Delete.
4833 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
4834 * config/powerpc/linux.mh (XDEPFILES): Delete.
4835 * config/romp/rtbsd.mh: Rename XDEPFILES.
4836 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
4837 * config/rs6000/aix4.mh (XDEPFILES): Delete.
4838 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
4839 * config/s390/s390.mh (XDEPFILES): Delete.
4840 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
4841 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
4842 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
4843 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
4844 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
4845 * config/sparc/nbsd.mh (XDEPFILES): Delete.
4846 * config/sparc/linux.mh (XDEPFILES): Delete.
4847 * config/vax/vaxult.mh (XDEPFILES): Delete.
4848 * config/vax/vaxult2.mh (XDEPFILES): Delete.
4849 * Makefile.in (DEPFILES): Remove XDEPFILES.
4851 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4853 * utils.c (internal_verror): Fix comments, default is yes not no.
4854 Update queries to match. Default to quit and dump core.
4856 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4858 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
4860 * defs.h, event-top.c, gdbcmd.h: Ditto.
4861 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
4862 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
4863 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
4864 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
4865 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
4866 * mi/mi-main.c:Ditto.
4868 * stack.c, symfile.c: Update copyright.
4870 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
4872 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
4873 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
4874 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
4875 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
4877 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
4879 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
4880 * gdbserver/low-lynx.c (myattach): Likewise.
4881 * gdbserver/low-nbsd.c (myattach): Likewise.
4882 * gdbserver/low-sim.c (myattach): Likewise.
4883 * gdbserver/low-sparc.c (myattach): Likewise.
4884 * gdbserver/low-sun3.c (myattach): Likewise.
4886 * gdbserver/low-linux.c (myattach): New function.
4888 * gdbserver/server.c (attach_inferior): New function.
4889 (main): Handle "--attach".
4891 2002-01-16 Andrew Cagney <ac131313@redhat.com>
4893 * MAINTAINERS (language support): Daniel Jacobwitz is C++
4896 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
4898 * c-typeprint.c (is_type_conversion_operator): Add additional
4899 check for non-conversion operators.
4901 2002-01-15 Michael Snyder <msnyder@redhat.com>
4903 * linux-proc.c: Add "info proc" command, a la procfs.c.
4904 (read_mapping): New function, abstract and re-use code.
4905 (linux_find_memory_regions): Use new func read_mapping.
4906 (linux_info_proc_cmd): New function, implement "info proc".
4907 (_initialize_linux_proc): Add new command "info proc".
4909 2002-01-15 Michael Snyder <msnyder@redhat.com>
4911 * symfile.c (generic_load): Use bfd_map_over_sections method
4912 instead of manipulating bfd structure members directly.
4913 (add_section_size_callback): New function, bfd sections callback
4914 used by generic_load.
4915 (load_sections_callback): New function, bfd sections callback
4916 used by generic_load.
4918 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
4920 [Based on work by Jim Blandy]
4921 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
4922 (builtin_type_vec128): Export.
4923 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
4925 (builtin_type_vec128): New builtin type for 128 bit vector
4927 (build_gdbtypes): Initialize builtin_type_v16qi and
4928 builtin_type_v8hi. Create the vec128 register builtin type
4930 (build_builtin_type_vec128): New function.
4931 (_initialize_gdbtypes): Register builtin_type_v16qi and
4932 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
4933 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
4934 AltiVec register to new builtin type.
4936 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
4938 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
4941 2002-01-14 Andrew Cagney <ac131313@redhat.com>
4943 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
4944 CLEAN_UP_REGISTER_VALUE.
4945 * regcache.c (supply_register): Update only call.
4947 2002-01-14 Andrew Cagney <ac131313@redhat.com>
4949 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4950 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4951 a29k-*-vxworks* targets as obsolete.
4953 2002-01-14 Michael Snyder <msnyder@redhat.com>
4955 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
4956 until we can resolve portability issues.
4957 * gregset.h: Remove references to fpxregs.
4958 * gcore.c (gcore_command): Initialize note_sec to NULL.
4960 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4962 * signals.c (target_signal_to_name): Rewrite. Only use
4963 signals[].name when in bounds and non-NULL.
4965 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4967 From Petr Ledvina <ledvinap@kae.zcu.cz>:
4968 * signals.c (target_signal_to_name): Verify that SIG is within the
4969 bounds of the signals array.
4971 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4973 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
4975 2002-01-13 Keith Seitz <keiths@redhat.com>
4977 * stack.c (print_frame_info_base): Print the frame's pc
4978 only if when print_frame_info_listing_hook is not defined.
4980 2002-01-13 Keith Seitz <keiths@redhat.com>
4982 * varobj.c (varobj_set_value): Make sure that there were no
4983 errors evaluating the object before attempting to set its
4985 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
4986 so this offset adjustment is no longer necessary.
4987 (create_child): Don't set the error flag if the child is
4989 (value_of_child): If value_fetch_lazy fails, return NULL
4990 so that callers will be notified that an error occurred.
4991 (c_value_of_variable): Delay check of variable's validity
4992 until later. We actually want all structs and unions to have
4994 Do not return "???" for variables which could not be evaluated.
4995 This error condition must be returned to the caller so that it
4996 can get the error condition from gdb.
4997 (cplus_name_of_child): Adjust index for vptr before figuring
4998 out the name of the child.
4999 (cplus_value_of_child): If a child's (real) parent is not valid,
5000 don't even bother trying to give a value for it. Just return
5001 an error. Change all instances in this function.
5002 (cplus_type_of_child): If our parent is one of the "fake"
5003 parents, we need to get at the type of the real parent, and
5004 derive the child's true type using this information.
5006 2002-01-13 Andrew Cagney <ac131313@redhat.com>
5008 From 2002-01-09 John Marshall <johnm@falch.net>:
5009 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
5010 sources.redhat.com, and tweak some related URLs which had
5011 suffered from linkrot.
5013 2002-01-13 Andrew Cagney <ac131313@redhat.com>
5016 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
5017 structures passed in registers.
5019 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
5021 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
5022 white space which prevented compilation. Reported by DSK
5023 <dsk@student.unsw.edu.au>.
5025 2002-01-11 Michael Snyder <msnyder@redhat.com>
5027 * symfile.c (build_section_addr_info_from_section_tab):
5028 Use bfd access method instead of manipulating bfd directly.
5029 (syms_from_objfile): Ditto.
5030 (simple_overlay_update_1): Ditto.
5031 (simple_overlay_update): Ditto.
5032 (generic_load): Ditto.
5033 (overlay_unmapped_address): FIXME comment, bfd access methods.
5034 (sections_overlap): FIXME comment, bfd access methods.
5035 (pc_in_mapped_range): FIXME comment, bfd access methods.
5036 (pc_in_unmapped_range): FIXME comment, bfd access methods.
5037 (section_is_mapped): FIXME comment, bfd access methods.
5038 (section_is_overlay): FIXME comment, bfd access methods.
5040 * symfile.c (generic_load): Whitespace and long line cleanups.
5041 Remove duplicate variable, change several local variables to
5042 more appropriate data types.
5043 (print_transfer_performance): Use %lu instead of %ld for ulongs.
5045 2002-01-12 Andrew Cagney <ac131313@redhat.com>
5048 * language.c (longest_local_hex_string_custom): Use phex_nz to
5049 convert NUM to a hex string.
5051 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
5053 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
5055 Update Copyright year.
5057 2002-01-12 Andrew Cagney <ac131313@redhat.com>
5059 * language.c (longest_raw_hex_string): Delete unused function.
5061 2002-01-11 Petr Sorfa <petrs@caldera.com>
5063 * MAINTAINERS (write-after-approval): Add myself.
5064 * dwarf2read.c (read_tag_string_type): Handling of
5066 (read_tag_string_type): FORTRAN fix to prevent propagation of
5068 (set_cu_language): Handling of DW_LANG_Fortran95
5070 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
5072 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
5073 GETPID(inferior_ptid).
5074 (store_inferior_registers): Likewise.
5076 2002-01-10 Jason Merrill <jason@redhat.com>
5078 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
5081 2002-01-10 Andrew Cagney <ac131313@redhat.com>
5083 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
5084 and bfd/elf32-sh-nbsd.c.
5086 2002-01-10 Michael Snyder <msnyder@redhat.com>
5088 * NEWS: Mention --pid and corefile/proc-id behavior change.
5090 * Makefile.in: Add rules for gcore.o and linux-proc.o.
5091 * gcore.c: Include cli/cli-decode.h instead of command.h.
5093 * main.c (captured_main): Add new command line option "--pid".
5094 If the second command line argument (following the symbol-file)
5095 begins with a digit, try to attach to it before trying to open
5097 (print_gdb_help): Document the "--pid" argument.
5099 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
5101 * completer.c (command_completer): New function.
5103 * completer.h <command_completer>: Add prototype.
5105 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
5106 completer for the "help" command.
5108 2002-01-09 Jason Merrill <jason@redhat.com>
5110 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
5112 2002-01-09 Michael Snyder <msnyder@redhat.com>
5114 * i386-linux-nat.c (fill_fpxregset): Make global.
5115 (store_fpxregset): Ditto.
5117 * gregset.h (gdb_fpxregset_t): Define.
5118 (supply_fpxregset): Prototype.
5119 (fill_fpxregset): Prototype.
5121 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
5123 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
5125 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
5126 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
5127 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
5129 2002-01-09 Andrew Cagney <ac131313@redhat.com>
5131 * MAINTAINERS: Update target maintainer rules so that any
5132 Maintainer can approve a tested patch for a maintenance-only
5135 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
5137 * MAINTAINERS (write-after-approval): Add myself.
5139 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
5142 2002-01-08 Michael Snyder <msnyder@redhat.com>
5144 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
5145 real name of the executable, rather than the /proc name.
5147 2002-01-03 Michael Snyder <msnyder@redhat.com>
5149 Implement a "generate-core-file" command in gdb, save target state.
5150 * gcore.c: New file. Implement new command 'generate-core-file'.
5151 Save a corefile image of the current state of the inferior.
5152 * linux-proc.c: Add linux-specific code for saving corefiles.
5153 * target.h (struct target_ops): Add new target vectors for saving
5154 corefiles; to_find_memory_regions and to_make_corefile_notes.
5155 (target_find_memory_regions): New macro.
5156 (target_make_corefile_notes): New macro.
5157 * target.c (update_current_target): Inherit new target methods.
5158 (dummy_find_memory_regions): New place-holder method.
5159 (dummy_make_corefile_notes): New place-holder method.
5160 (init_dummy_target): Initialize new dummy target vectors.
5161 * exec.c (exec_set_find_memory_regions): New function.
5162 Allow the exec_ops vector for memory regions to be taken over.
5163 (exec_make_note_section): New function, target vector method.
5164 * defs.h (exec_set_find_memory_regions): Export prototype.
5165 * procfs.c (proc_find_memory_regions): New function, corefile method.
5166 (procfs_make_note_section): New function, corefile method.
5167 (init_procfs_ops): Set new target vector pointers.
5168 (find_memory_regions_callback): New function.
5169 (procfs_do_thread_registers): New function.
5170 (procfs_corefile_thread_callback): New function.
5171 * sol-thread.c (sol_find_memory_regions): New function.
5172 (sol_make_note_section): New function.
5173 (init_sol_thread_ops): Initialize new target vectors.
5174 * inftarg.c (inftarg_set_find_memory_regions): New function.
5175 Allow to_find_memory_regions vector to be taken over.
5176 (inftarg_set_make_corefile_notes): New function.
5177 Allow to_make_corefile_notes vector to be taken over.
5178 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
5179 interface layer if not target_has_execution (may be a corefile).
5180 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
5181 * config/sparc/sun4sol2.mh: Ditto.
5182 * config/alpha/alpha-linux.mh: Ditto.
5183 * config/arm/linux.mh: Ditto.
5184 * config/i386/x86-64linux.mh: Ditto.
5185 * config/ia64/linux.mh: Ditto.
5186 * config/m68k/linux.mh: Ditto.
5187 * config/mips/linux.mh: Ditto.
5188 * config/powerpc/linux.mh: Ditto.
5189 * config/sparc/linux.mh: Ditto.
5191 2002-01-07 Michael Snyder <msnyder@redhat.com>
5193 * arm-linux-nat.c: Remove references to regcache.c internal data
5194 (registers[] and register_valid[]).
5196 2002-01-07 Michael Snyder <msnyder@redhat.com>
5198 * linux-proc.c: New file. Implement child_pid_to_exec_file,
5199 so that attaching to a pid will automatically read the process's
5200 symbol file and shlibs.
5201 * Makefile.in: Add rule for linux-proc.o.
5202 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
5203 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
5204 * config/arm/linux.mh: Ditto.
5205 * config/i386/linux.mh: Ditto.
5206 * config/i386/x86-64linux.mh: Ditto.
5207 * config/ia64/linux.mh: Ditto.
5208 * config/m68k/linux.mh: Ditto.
5209 * config/mips/linux.mh: Ditto.
5210 * config/powerpc/linux.mh: Ditto.
5211 * config/sparc/linux.mh: Ditto.
5213 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
5215 * win32-nat.c: Add i386-tdep.h dependency.
5217 2002-01-07 Michael Snyder <msnyder@redhat.com>
5219 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
5220 instead of bfd_get_arch_size. Don't bail out just because
5221 there's no exec_bfd.
5223 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
5224 * p-valprint.c (pascal_object_print_value): Ditto.
5225 * somread.c (som_symtab_read): Ditto.
5226 * symfile.c (simple_free_overlay_region_table): Ditto.
5227 * valops.c (value_assign): Ditto.
5229 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
5230 use tilde_expand and strerror for opening save-tracepoints file.
5232 * thread-db.c (thread_db_new_objfile): Indendation fix.
5234 * infptrace.c (GDB_MAX_ALLOCA): New define.
5235 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
5236 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
5237 can be overridden with whatever value is appropriate to the host).
5238 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
5239 alloca to allocate potentially large buffer.
5240 * rs6000-nat.c (child_xfer_memory): Ditto.
5241 * symm-nat.c (child_xfer_memory): Ditto.
5242 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
5244 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
5246 From Nick Clifton <nickc@redhat.com>
5247 * d10v-tdep.c: Set STACK_START to 0x200bffe.
5249 2002-01-07 Michael Snyder <msnyder@redhat.com>
5251 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
5252 Don't use exec_bfd if it's NULL.
5254 2002-01-06 Mark Kettenis <kettenis@gnu.org>
5256 * valops.c (value_arg_coerce): Fix formatting.
5258 2002-01-06 Andrew Cagney <ac131313@redhat.com>
5260 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
5263 2002-01-06 Andrew Cagney <ac131313@redhat.com>
5265 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
5266 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
5267 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
5268 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
5269 z8k-coff have not been multi-arched. Update z8k-coff build
5272 2002-01-06 Andrew Cagney <ac131313@redhat.com>
5274 * MAINTAINERS: Mark a29k target as obsolete.
5275 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
5276 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
5278 * NEWS: Note that a29k targets are obsolete.
5279 * a29k-tdep.c: Mark as obsolete.
5280 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
5281 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
5282 a29k-*-vxworks* targets as obsolete.
5283 * remote-adapt.c: Obsolete.
5284 * remote-eb.c: Obsolete.
5285 * remote-mm.c: Obsolete.
5286 * remote-udi.c: Obsolete.
5287 * config/a29k/a29k-udi.mt: Obsolete.
5288 * config/a29k/a29k.mt: Obsolete.
5289 * config/a29k/tm-a29k.h: Obsolete.
5290 * config/a29k/tm-vx29k.h: Obsolete.
5291 * config/a29k/vx29k.mt: Obsolete.
5293 2002-01-05 Andrew Cagney <ac131313@redhat.com>
5295 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
5296 with BFD_ENDIAN_BIG.
5298 2002-01-05 Andrew Cagney <ac131313@redhat.com>
5300 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
5301 * configure, config.in: Re-generate.
5302 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
5303 * defs.h: Do not include <endian.h>.
5305 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
5307 * acconfig.h (HAVE_PT_GETXMMREGS): New.
5308 * config.in: Regenerate.
5309 * configure.in: Update copyright years.
5310 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
5311 * configure: Regenerate.
5312 * i386bsd-nat.c: Update copyright years.
5313 (fill_gregset): Use regcache_collect.
5314 (fetch_inferior_registers): Only fetch integer registers
5315 if requested to do so. Add support for XMM registers
5316 using PT_GETXMMREGS.
5317 (store_inferior_registers): Only store integer registers
5318 if requested to do so. Add support for XMM registers
5319 using PT_SETXMMREGS.
5320 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
5321 (store_inferior_registers): Remove.
5322 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
5323 (fetch_elfcore_registers): New function.
5324 (i386nbsd_elfcore_fns): New.
5325 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
5326 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
5328 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5329 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
5330 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
5331 * config/i386/tm-nbsd.h: Update copyright years.
5332 (HAVE_SSE_REGS): Define.
5333 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
5334 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
5335 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
5336 (SIGCONTEXT_PC_OFFSET): Remove.
5337 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
5339 2002-01-05 Andrew Cagney <ac131313@redhat.com>
5341 * configure.tgt: Remove powerpc-*-macos* target.
5342 * config/m68k/xm-mpw.h: Delete file.
5343 * config/xm-mpw.h: Delete file.
5344 * ser-mac.c: Delete file.
5345 * mpw-make.sed: Delete file.
5346 * mpw-config.in: Delete file.
5347 * mac-xdep.c: Delete file.
5348 * mac-gdb.r: Delete file.
5349 * mac-defs.h: Delete file.
5350 * mac-nat.c: Delete file.
5351 * config/powerpc/macos.mh: Delete file.
5352 * config/powerpc/macos.mt: Delete file.
5353 * config/powerpc/nm-macos.h: Delete file.
5354 * config/powerpc/tm-macos.h: Delete file.
5355 * source.c (openp, open_source_file): Remove obsolete code.
5356 * top.c (gdb_readline): Ditto.
5357 * utils.c (query): Ditto.
5358 * event-top.c (display_gdb_prompt): Ditto.
5359 * Makefile.in (ser-mac.o): Delete obsolete target.
5362 2002-01-04 Andrew Cagney <ac131313@redhat.com>
5364 * defs.h (BIG_ENDIAN): Delete macro definition.
5365 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
5366 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
5367 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
5368 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
5369 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
5370 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
5371 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
5372 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
5373 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
5374 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
5375 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
5376 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
5377 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
5378 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
5379 * gdbarch.c: Re-generate.
5381 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5383 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
5386 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5388 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
5390 2002-01-04 Andrew Cagney <ac131313@redhat.com>
5392 * value.h (value_ptr): Delete typedef.
5394 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5396 * i386nbsd-nat.c: Update copyright years.
5397 Include i386-tdep.h.
5399 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
5401 * stabsread.c: Update copyright years.
5403 From Debashis Mahata <debashis.mahata@wipro.com>:
5404 (read_struct_fields): Deal with Sun C compiler erroneous stab
5405 output for structs and unions.
5408 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5410 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
5413 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5415 * cp-abi.c: Fix whitespace.
5416 (baseclass_offset): New wrapper function.
5417 * cp-abi.h (baseclass_offset): Add prototype.
5418 (struct cp_abi_ops): Add baseclass_offset pointer.
5420 * valops.c (vb_match): Move to...
5421 * gnu-v2-abi.c (vb_match): here.
5422 * valops.c (baseclass_offset): Move to...
5423 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
5425 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
5427 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
5428 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
5429 * hpacc-abi.c (init_hpacc_ops): Likewise.
5431 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5433 * valops.c (find_overload_match): Accept obj as a
5434 reference parameter. Update it before returning.
5435 * value.h (find_overload_match): Update prototype.
5436 * eval.c (evaluate_subexp_standard): Pass object to
5437 find_overload_match by reference.
5439 2002-01-03 Andrew Cagney <ac131313@redhat.com>
5441 * valarith.c: Replace value_ptr with struct value pointer. Remove
5442 register attribute from value declarations.
5445 * scm-lang.c (scm_lookup_name): Ditto.
5447 2002-01-03 Michael Snyder <msnyder@redhat.com>
5449 Abstract the functionality of iterating over mapped memory
5450 regions into a general purpose iterator function.
5451 * procfs.c (iterate_over_mappings): New function, general purpose
5452 iterator for memory sections.
5453 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
5454 (solib_mappings_callback): New function, callback for above.
5455 (info_proc_mappings): Reimpliment using iterate_over_mappings.
5456 (info_mappings_callback): New function, callback for above.
5458 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
5460 2002-01-01 Mark Kettenis <kettenis@gnu.org>
5462 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
5463 * i386-tdep.c: Include "elf-bfd.h".
5464 (process_note_abi_tag_sections): New function.
5465 (i386_gdbarch_init): Add code to recognize various OS/ABI
5468 * maint.c (_initialize_maint_cmds): Add missing \ in
5471 For older changes see ChangeLog-2001
5477 version-control: never