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