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