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