]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
* gdb.base/printcmds.exp (test_integer_literals_rejected):
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9ab3e532
JB
12002-05-10 Jim Blandy <jimb@redhat.com>
2
3 Properly track the size of the current objfile's .debug_line section.
4 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5 (DWARF_LINE_SIZE): New macro.
6 (dwarf2_build_psymtabs_hard): Record the line section's size in
7 the partial symbol table.
8 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9 symbol table.
10
126fa72d
PS
112002-05-10 Petr Sorfa <petrs@caldera.com>
12
13 * ia64-tdep.c: Handle breakpoints on L instruction type
14 in MLX instruction bundle by moving the breakpoint to
15 the third slot (X instruction type) as L holds only data.
16
1f077a3e
KB
172002-05-10 Kevin Buettner <kevinb@redhat.com>
18
19 * dbxread.c (discarding_local_symbols_complaint): New complaint.
20 (process_one_symbol): Complain about discarding local symbols
21 due to a misplaced N_LBRAC entry.
22
8120c9d5
EZ
232002-05-09 Elena Zannoni <ezannoni@redhat.com>
24
25 From Daniel Berlin <dan@cgsoftware.com>
26 * linespec.c (find_toplevel_char): '<' and '>' also increase and
27 decrease the depth we are at, in the case of templates.
28
67b2c998
DJ
292002-05-09 Daniel Jacobowitz <drow@mvista.com>
30
31 * mips-tdep.c (mips_float_register_type): New function.
32 (mips_double_register_type): New function.
33 (mips_print_register): Use them.
34 (do_fp_register_row): Likewise.
35
fd326606
DJ
362002-05-09 Daniel Jacobowitz <drow@mvista.com>
37
6609d9af 38 * signals/signals.c (signals): Remove conditional compilation around
fd326606 39 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 40 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 41
bef35864
MS
422002-05-09 Michael Snyder <msnyder@redhat.com>
43
44 * remote-rdp.c (remote_rdp_can_run): Remove.
45
c55a3f73
TT
462002-05-09 Tom Tromey <tromey@redhat.com>
47
48 * jv-valprint.c (java_val_print): Handle `char' as a special case
49 of TYPE_CODE_INT.
50
b8d5e71d
MS
512002-05-09 Michael Snyder <msnyder@redhat.com>
52
53 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
54 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
55 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
56 str r(0123),[sp,#nn].
57 (arm_skip_prologue): Ditto. Also make disassembly
58 order-independent by placing it in a loop.
59
e2cd42dd
MS
602002-05-06 Michael Snyder <msnyder@redhat.com>
61
62 * stabsread.c (read_type): Add recognition for new attribute:
63 "@V;" means that an array type is actually a vector.
64 This is analogous to the vector flag that's been added to dwarf2.
65
3ce1502b
MK
662002-05-09 Mark Kettenis <kettenis@gnu.org>
67
68 * i386-tdep.h (i386_abi): New enum.
69 (struct gdbarch_tdep): Replace os_ident member with abi.
70 (i386_gdbarch_register_os_abi): New prototype.
71 * i386-tdep.c (i386_abi_names): New array.
72 (process_note_abi_tag_sections): Removed.
73 (process_note_sections): New function.
74 (i386_elf_abi_from_note, i386_elf_abi): New functions.
75 (struct i386_abi_handler): New struct.
76 (i386_abi_handler_list): New variable.
77 (i386_gdbarch_register_os_abi): New function.
78 (i386_gdbarch_init): Adapt for the changes given above.
79
084c156a
DJ
802002-05-08 Daniel Jacobowitz <drow@mvista.com>
81
82 * gregset.h: Say "GNU/Linux".
83
6599f021
EZ
842002-05-08 Elena Zannoni <ezannoni@redhat.com>
85
86 * gdbtypes.c : Add new builtin type for 64 bit vectors.
87 (build_gdbtypes): Build builtin_type_v2_float.
88 (_initialize_gdbtypes): Register new builtin type.
89
40af4b0c
AC
902002-05-08 Andrew Cagney <ac131313@redhat.com>
91
92 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
93 (clear_gdbarch_swap): New function.
94 (initialize_non_multiarch): Call.
95 (gdbarch_update_p): Before calling init(), swap out and clear the
96 existing architecture.
97 * gdbarch.c: Regenerate.
98
4fe84f46
JT
992002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
100
101 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
102 alphanbsd-tdep.c.
103
4015edd1
JT
1042002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
105
106 * sh-nbsd-nat.c: Rename to...
107 * shnbsd-nat.c: ...this.
108 * sh-nbsd-tdep.c: Rename to...
109 * shnbsd-tdep.c: ...this.
110 * sh-nbsd-tdep.h: Rename to...
111 * shnbsd-tdep.h: ...this.
112 * config/sh/nbsd.mh: Use shnbsd-nat.o.
113 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
114
0e2bd219
RE
1152002-05-08 Richard Earnshaw <rearnsha@arm.com>
116
117 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
118 concatenation for command help messages.
119
13a38d45
JT
1202002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
121
122 * NEWS: Note new sh*-*-netbsdelf* configuration.
123 * configure.host: Set gdb_host_cpu to sh for all sh*.
124 (sh*-*-netbsdelf*): New host.
125 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
126 (sh*-*-netbsdelf*): New target.
127 * sh-nbsd-nat.c: New file.
128 * sh-nbsd-tdep.c: New file.
129 * sh-nbsd-tdep.h: New file.
130 * config/sh/nbsd.mh: New file.
131 * config/sh/nbsd.mt: New file.
132 * config/sh/nm-nbsd.h: New file.
133 * config/sh/tm-nbsd.h: New file.
134
d658f924
JT
1352002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
136
137 * sh-tdep.c (sh_osabi_names): Declare.
138 (process_note_abi_tag_sections): New function.
139 (get_elfosabi): Ditto.
140 (sh_gdbarch_register_os_abi): Ditto.
141 (sh_dump_tdep): Ditto.
142 _initialize_sh_tdep): Use gdbarch_register to register
143 sh_gdbarch_init and sh_dump_tdep.
144 * config/sh/tm-sh.h (sh_osabi): Declare.
145 (gdbarch_tdep): Add sh_osabi and osabi_name members.
146
848cfffb
AC
1472002-05-07 Andrew Cagney <ac131313@redhat.com>
148
149 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
150 (thumb_scan_prologue): Ditto.
151 (arm_find_callers_reg): Ditto.
152 (arm_frame_chain): Ditto.
153 (arm_init_extra_frame_info): Ditto.
154 (arm_frame_saved_pc): Ditto.
155 (arm_pop_frame): Ditto.
156 (arm_push_return_address): New function.
157 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
158 call_dummy_location, call_dummy_breakpoint_offset_p,
159 call_dummy_breakpoint_offset, call_dummy_p,
160 call_dummy_stack_adjust_p, call_dummy_words,
161 sizeof_call_dummy_words, call_dummy_start_offset,
162 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
163 call_dummy_address, push_return_address and push_dummy_frame for
164 generic dummy frames.
165
e7d717c0
JT
1662002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
167
168 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
169 size computation for alloca.
170 (sh_fp_frame_init_saved_regs): Likewise.
171
7bbcf283
RE
1722002-05-07 Richard Earnshaw <rearnsha@arm.com>
173
174 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
175 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
176 * arm-tdep.c (arm_store_return_value): Use them.
177 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
178 * remote-rdp.c (remote_rdp_fetch_register): Use
179 ARM_MAX_REGISTER_RAW_SIZE.
180 (remote_rdp_store_register): Likewise.
181
4657573b
ML
1822002-05-07 Michal Ludvig <mludvig@suse.cz>
183
184 * dwarf2cfi.c: Code cleanup, removed unused variables,
185 added default labels to switch {} statements.
186 * x86-64-tdep.c: Ditto.
187 * x86-64-linux-nat.c: Ditto.
188
010f3b2f
JT
1892002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
190
191 * solib.h: Protect against multiple inclusion.
192
debd256d
JB
1932002-05-06 Jim Blandy <jimb@redhat.com>
194
9ab3e532
JB
195 Add first preprocessor macro-expansion files.
196 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
197 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
198 (splay_tree_h, macroexp_h, macrotab_h): New variable.
199 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
200 (COMMON_OBS): Add macrotab.o, macroexp.o.
201 (macroexp.o, macrotab.o): New rules.
202
debd256d
JB
203 Separate the job of reading the line number info statement program
204 header (...expialidocious) out into its own function.
205 * dwarf2read.c (struct line_head, struct filenames, struct
206 directories): Replace with...
207 (struct line_header): New structure, containing the full
208 contents of the statement program header, including the
209 include directory and file name tables.
210 (read_file_scope): If we have line number info, instead of just
211 calling dwarf_decode_lines to do all the work, call
212 dwarf_decode_line_header first to get a `struct line_header'
213 containing the data in the statement program header, and then
214 pass that to dwarf_decode_lines, which will pick up where that
215 left off. Be sure to clean up the `struct line_header' object.
216 (dwarf_decode_line_header, free_line_header, add_include_dir,
217 add_file_name): New functions.
218 (dwarf_decode_lines): Move all the code to read the statement
219 program header into dwarf_decode_line_header. Take the line
220 header it built as the first argument, instead of the offset to
221 the compilation unit's line number info. Use the new `struct
222 line_header' type instead of the old structures. No need to do
223 cleanups here now, since we don't allocate anything.
224 (dwarf2_statement_list_fits_in_line_number_section,
225 dwarf2_line_header_too_long): New complaints.
226
ac3aafc7
EZ
2272002-05-06 Elena Zannoni <ezannoni@redhat.com>
228
229 * gdbtypes.c (init_vector_type): New function.
230 (build_builtin_type_vec128): Simplify the representation of SIMD
231 registers.
232 (build_gdbtypes): Initialize new builtin vector types.
233 (_initialize_gdbtypes): Register new vector types with gdbarch.
234 (builtin_type_v4_float, builtin_type_v4_int32,
235 builtin_type_v8_int16, builtin_type_v16_int8,
236 builtin_type_v2_int32, builtin_type_v4_int16,
237 builtin_type_v8_int8): New (renamed) SIMD types.
238
13e49980
MK
2392002-05-06 Mark Kettenis <kettenis@gnu.org>
240
241 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
242 (i387_fill_fxsave): Likewise.
243
997b20b8
AO
2442002-05-05 Alexandre Oliva <aoliva@redhat.com>
245
246 * alpha-tdep.c (alpha_extract_return_value): Don't use
247 non-constant array size in prototype.
248
535c96ce
AC
2492002-05-04 Andrew Cagney <ac131313@redhat.com>
250
251 From Brian Taylor <briant at model dot com>:
252 * ui-out.c (ui_out_field_core_addr): Use the function
253 longest_local_hex_string_custom'to format addresses > 32 bits
254 wide.
255
256 * ui-out.c (ui_out_field_core_addr): Update comment.
257
bedfa57b
AC
2582002-05-04 Andrew Cagney <ac131313@redhat.com>
259
260 * stack.c (select_and_print_frame): Make static. Delete the
261 parameter `level'.
262 (func_command): Update call.
263 (select_frame_command): Delete code computing the frame level.
264 * frame.h (select_and_print_frame): Delete declaration.
265
f621c63e
AC
2662002-05-04 Andrew Cagney <ac131313@redhat.com>
267
268 * sparc-tdep.c (sparc_get_saved_register): Comment why
269 get_prev_frame call is safe.
270
0f7d239c
AC
2712002-05-04 Andrew Cagney <ac131313@redhat.com>
272
273 * frame.h (select_frame): Delete level parameter.
274 * stack.c (select_frame): Update. Use frame_relative_level to
275 obtain the frame's level.
276 (select_and_print_frame): Update call.
277 (select_frame_command): Ditto.
278 (up_silently_base): Ditto.
279 (down_silently_base): Ditto.
280 * ocd.c (ocd_start_remote): Ditto.
281 * remote-rdp.c (remote_rdp_open): Ditto.
282 * remote-mips.c (mips_initialize): Ditto.
283 (common_open): Ditto.
284 * remote-e7000.c (e7000_start_remote): Ditto.
285 * m3-nat.c (select_thread): Ditto.
286 * hppa-tdep.c (child_get_current_exception_event): Ditto.
287 (child_get_current_exception_event): Ditto.
288 * varobj.c (varobj_create): Ditto.
289 (varobj_update): Ditto.
290 (c_value_of_root): Ditto.
291 * tracepoint.c (finish_tfind_command): Ditto.
292 * corelow.c (core_open): Ditto.
293 * arch-utils.c (generic_prepare_to_proceed): Ditto.
294 * thread.c (info_threads_command): Ditto.
295 (switch_to_thread): Ditto.
296 * infrun.c (normal_stop): Ditto.
297 (restore_selected_frame): Ditto.
298 (restore_inferior_status): Ditto.
299 * breakpoint.c (insert_breakpoints): Ditto.
300 (watchpoint_check): Ditto.
301 (bpstat_stop_status): Ditto.
302 (do_enable_breakpoint): Ditto.
303 * blockframe.c (flush_cached_frames): Ditto.
304 (reinit_frame_cache): Ditto.
305
71d6c7b1
AC
3062002-05-04 Andrew Cagney <ac131313@redhat.com>
307
308 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
309 maintainer.
310
cda6c68a
JB
3112002-05-04 Jim Blandy <jimb@redhat.com>
312
313 * gdbtypes.c (replace_type): Doc fix.
314
5c1c87f0
AC
3152002-05-04 Andrew Cagney <ac131313@redhat.com>
316
317 * valprint.c (strcat_longest): Delete commented out function.
318 Update copyright.
319
cd9bfe15
AC
3202002-05-04 Andrew Cagney <ac131313@redhat.com>
321
322 * MAINTAINERS: Mark a29k as deleted.
323 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
324 Move new configurations to the top.
325 * configure.tgt: Remove a29k.
326 * config/a29k/tm-vx29k.h: Delete.
327 * config/a29k/vx29k.mt: Delete.
328 * config/a29k/tm-a29k.h: Delete.
329 * config/a29k/a29k-udi.mt: Delete.
330 * config/a29k/a29k.mt: Delete.
331 * a29k-tdep.c: Delete.
332 * remote-udi.c: Delete.
333 * remote-mm.c: Delete.
334 * remote-eb.c: Delete.
335 * remote-adapt.c: Delete.
336 * Makefile.in: Remove obsolete code.
337 * gdbserver/Makefile.in: Ditto.
338 * config/s390/s390x.mt: Ditto.
339 * config/s390/s390.mt: Ditto.
340 * config/sparc/sparclynx.mh: Ditto.
341 * config/sparc/linux.mh: Ditto.
342 * config/pa/hppaosf.mh: Ditto.
343 * config/pa/hppabsd.mh: Ditto.
344 * config/ns32k/nbsd.mt: Ditto.
345 * config/mips/vr5000.mt: Ditto.
346 * config/m68k/sun3os4.mh: Ditto.
347 * config/m68k/nbsd.mt: Ditto.
348 * config/m68k/m68klynx.mh: Ditto.
349 * config/m32r/m32r.mt: Ditto.
350 * config/i386/x86-64linux.mt: Ditto.
351 * config/i386/nbsdelf.mt: Ditto.
352 * config/i386/nbsd.mt: Ditto.
353 * config/i386/i386lynx.mh: Ditto.
354
bf0c5130
AC
3552002-05-04 Andrew Cagney <ac131313@redhat.com>
356
357 * target.c (debug_print_register): New function. Handle oversize
358 registers.
359 (debug_to_fetch_registers): Call.
360 (debug_to_store_registers): Call.
361
2ae1c2d2
JB
3622002-05-03 Jim Blandy <jimb@redhat.com>
363
13a393b0
JB
364 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
365 (read_type): Doc fix.
366 * gdbtypes.c (replace_type): Doc fix.
367
2ae1c2d2
JB
368 * stabsread.c (multiply_defined_struct): New complaint.
369 (read_struct_type): If the type we were passed isn't empty, or
370 incomplete, don't read the new struct type into it; complain,
371 and return the original type unchanged. Take a new `type_code'
372 argument, which is the type code for the new type.
373 (read_type): Rather than storing the type's type code here, pass
374 it as an argument to read_struct_type, and let that take care of
375 storing it. That way, we don't overwrite the original type code,
376 so read_struct_type can use it to decide whether we're overwriting
377 something we shouldn't.
378 (complain_about_struct_wipeout): New function.
379
8de9bdc4
AC
3802002-05-03 Andrew Cagney <ac131313@redhat.com>
381
382 * gdbarch.sh: Assert that gdbarch is non-NULL.
383 * gdbarch.c: Regenerate.
384
f773fdbb
JM
3852002-05-03 Jason Merrill <jason@redhat.com>
386
387 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
388 and return NULL.
389
0e04a514
ML
3902002-05-03 Michal Ludvig <mludvig@suse.cz>
391
392 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
393 (x86_64_dwarf2gdb_regno_map_length),
394 (x86_64_dwarf2_reg_to_regnum): Added.
395 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
396 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
397 (_initialize_x86_64_tdep): Synced with the change above.
398 (x86_64_skip_prologue): Reformulated message.
399
065432a8
PM
4002002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
401
402 * f-exp.y: Also use new prev_lexptr variable
403 to improve error reporting. Based on Michael Snyder
404 2002-04-24 dated patch to c-exp.y.
405 * jv-exp.y: Likewise.
406 * m2-exp.y: Likewise.
407
a3162708
EZ
4082002-05-02 Elena Zannoni <ezannoni@redhat.com>
409
410 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
411 we are dealing with vectors.
412
03620c38
PM
4132002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
414
415 * config/m68k/tm-nbsd.h: Obvious fix,
416 correct machine name.
417
6604db2e
PM
4182002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
419
420 * p-typeprint.c (pascal_type_print_base): Add support
421 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
422
0906b739
PM
4232002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
424
425 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
426 for fondamental pascal 'char' type.
427
e2625b33
PM
4282002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
429
430 * p-lang.h (is_pascal_string_type): Declaration changed,
431 new sixth argument of type char ** added.
432 * p-lang.c (is_pascal_string_type): Implementation
433 changed. Args length_pos, length_size, string_pos, char_size
434 can now be NULL. New argument arrayname set to the field
435 name of the char array. Return value set to char array
436 field index plus one.
437 * p-valprint.c (pascal_val_print): Adapt to new declaration of
438 is_pascal_string_type function.
439
cf17c188
AC
4402002-05-02 Andrew Cagney <cagney@redhat.com>
441
442 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
443 <cagney@redhat.com> change.
444 * gdbarch.c: Regenerate.
445
52bca491
AC
4462002-05-02 Andrew Cagney <cagney@redhat.com>
447
448 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
449 before probing for a new one. Detect errorenous gdbarch_init
450 functions.
451 * gdbarch.c: Regenerate.
452
d5e72505
AC
4532002-05-01 Andrew Cagney <cagney@redhat.com>
454
455 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
456 * config/mcore/tm-mcore.h: Ditto. Update copyright.
457 * config/v850/tm-v850.h: Ditto. Update copyright.
458
af566d9f
AC
4592002-04-30 Andrew Cagney <ac131313@redhat.com>
460
461 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
462 current_gdbarch.
463
880d85fa
MS
4642002-04-30 Michael Snyder <msnyder@redhat.com>
465
94c30b78
MS
466 * arm-tdep.c: Whitespace clean-ups.
467 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
468 should have been removed as part of 4/24 change.
469
6f5987a6
KB
4702002-04-30 Kevin Buettner <kevinb@redhat.com>
471
472 * rs6000-tdep.c: Added comment describing how fpscr register
473 numbers were chosen.
474
1a113c93
MS
4752002-04-30 Michael Snyder <msnyder@redhat.com>
476
477 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
478
9a6f53fe
EZ
4792002-04-29 Elena Zannoni <ezannoni@redhat.com>
480
481 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
482 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
483 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
484
11ed25ac
KB
4852002-04-29 Kevin Buettner <kevinb@redhat.com>
486
487 From Louis Hamilton <hamilton@redhat.com>:
488 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
489 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
490 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
491 not bfd-private xcoff data, to determine wordsize.
492 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
493
ae232405
AC
4942002-04-29 Andrew Cagney <ac131313@redhat.com>
495
496 GDB 5.2 released from 5.2 branch.
497
91fd20f7
ML
4982002-04-29 Michal Ludvig <mludvig@suse.cz>
499
500 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
501 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
502 (x86_64_register_info_table): Added comments with register numbers.
503
2dc5091b
EZ
5042002-04-29 Elena Zannoni <ezannoni@redhat.com>
505
506 * rs6000-tdep.c (rs6000_extract_return_value,
507 rs6000_store_return_value): Handle returning vectors.
508 (rs6000_gdbarch_init): Use
509 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
510 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
511 New function.
512 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
513 vectors.
514 (ppc_sysv_abi_push_arguments): Handle vector parameters.
515 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
516
2b9848d8
PM
5172002-04-24 Pierre Muller <ics.u-strasbg.fr>
518
519 * hpread.c (hpread_psymtab_to_symtab_1,
520 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
521 with fprintf_unfiltered (gdb_stderr,...).
522
f8d17dc5
PM
5232002-04-24 Pierre Muller <ics.u-strasbg.fr>
524
525 * remote-array.c (printf_monitor, write_monitor,
526 array_insert_breakpoint, array_remove_breakpoint ):
527 Replace fprintf (stderr,...
528 with fprintf_unfiltered (gdb_stderr,....
529 * remote-es.c: Likewise.
530 * remote-os9k.c: Likewise.
531 * remote-st.c: Likewise.
532
2f2f1ad1
AS
5332002-04-28 Andreas Schwab <schwab@suse.de>
534
535 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
536 linux-proc.o and gcore.o.
537
b6779aa2
AC
5382002-04-26 Michal Ludvig <mludvig@suse.cz>
539
540 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
541 code without frame pointers.
542
7e57f5f4
AC
5432002-04-26 Andrew Cagney <ac131313@redhat.com>
544
545 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
546 ON_STACK is needed.
547
2ceb85d0
BE
5482002-04-26 Ben Elliston <bje@redhat.com>
549
550 * target.c (do_xfer_memory): Correct reference to the new option
551 "trust-readonly-sections".
552
f5f8a009
EZ
5532002-04-26 Elena Zannoni <ezannoni@redhat.com>
554
555 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
556 * gdbtypes.c (recursive_dump_type): Output the vector flag.
557 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
558 vectors.
559 (read_array_type): Record the fact that this array type is really a
560 vector (i.e. are passed in by value).
561
5868c862
JT
5622002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
563
564 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
565 * alpha-tdep.c (alpha_sigcontext_addr): New function.
566 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
567 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
568 * alpha-linux-tdep.c: Include frame.h.
569 (alpha_linux_sigcontext_addr): New function.
570 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
571 alpha_linux_sigcontext_addr.
572 * alpha-osf1-tdep.c: Include gdbcore.h.
573 (alpha_osf1_sigcontext_addr): New function.
574 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
575 alpha_osf1_sigcontext_addr.
576 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
577 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
578
bfb01f37
AC
5792002-04-26 Andrew Cagney <ac131313@redhat.com>
580
581 * stack.c (selected_frame_level):
582 (select_frame): Do not set selected_frame_level.
583 * frame.h (selected_frame_level): Delete declaration.
584
15813d3f
AC
5852002-04-26 Andrew Cagney <ac131313@redhat.com>
586
587 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
588 convert_from_func_ptr-addr when AIX / PowerOpen.
589
6096c27a
AC
5902002-04-25 Andrew Cagney <ac131313@redhat.com>
591
592 * valops.c (hand_function_call): Call
593 generic_save_call_dummy_addr.
594 * frame.h (generic_save_call_dummy_addr): Declare.
595 * blockframe.c (struct dummy_frame): Add fields call_lo and
596 call_hi.
597 (generic_find_dummy_frame): Check for PC in range call_lo to
598 call_hi instead of entry_point_address.
599 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
600 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
601 (generic_save_call_dummy_addr): New function.
602
f510d44e
DM
6032002-04-24 David S. Miller <davem@redhat.com>
604
605 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
606 sparc_skip_prologue.
607 (sparc_skip_prologue): Kill frameless_p arg, and use line number
608 information to find prologue when possible.
609 (sparc_prologue_frameless_p): Call examine_prologue directly.
610 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
611 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
612 second argument.
613 (SKIP_PROLOGUE): Likewise.
614
15d72a92
JT
6152002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
616
617 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
618 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
619 indicate that the condition it was testing is always true.
620 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
621 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
622 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
623
accc6d1f
JT
6242002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
625
626 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
627 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
628 tdep->jb_pc and tdep->jb_elt_size.
629 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
630 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
631 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
632 * alpha-nat.c (get_longjmp_target): Remove.
633 (JB_ELEMENT_SIZE): Ditto.
634 (JB_PC): Ditto.
635 * alpha-tdep.c (alpha_get_longjmp_target): New function.
636 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
637 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
638 to alpha_get_longjmp_target.
639 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
640 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
641 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
642
1bfdc549
AC
6432002-04-25 Andrew Cagney <ac131313@redhat.com>
644
645 * README: Update to GDB 5.2.
646
1bd316f0
AC
6472002-04-25 Andrew Cagney <ac131313@redhat.com>
648
649 * gdbarch.sh (LC_ALL): Set to `c'.
650
2e5ff58c
TR
6512002-04-25 Theodore A. Roth <troth@verinet.com>
652
653 * avr-tdep.c: Ran through gdb_indent.sh.
654
e33ce519
TR
6552002-04-25 Theodore A. Roth <troth@verinet.com>
656
657 * MAINTAINERS: Add myself as AVR maintainer.
658 * NEWS: Note new target avr.
659
8818c391
TR
6602002-04-25 Theodore A. Roth <troth@verinet.com>
661
662 * Makefile.in: Add support for AVR target.
663 * configure.tgt: Add support for AVR target.
664 * avr-tdep.c: New file
665 * config/avr/avr.mt: New file.
666
79509c2d
TR
6672002-04-25 Theodore A. Roth <troth@verinet.com>
668
669 * MAINTAINERS: Add myself to write-after-approval.
670
dac8068e
PM
6712002-04-24 Pierre Muller <ics.u-strasbg.fr>
672
673 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
674 with fprintf_unfiltered (gdb_stderr,....
675
25bf3106
PM
6762002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
677
678 Fix PR gdb/508.
679 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
680
24467a86
PM
6812002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
682
683 * p-exp.y: Also use new prev_lexptr variable
684 to improve error reporting. Based on Michael Snyder
685 2002-04-24 dated patch to c-exp.y.
686
95b80706
JT
6872002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
688
689 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
690 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
691 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
692 to 0.
693 * config/alpha/tm-alpha.h: Remove forward decls of struct type
694 and struct value.
695 (FUNCTION_START_OFFSET): Remove.
696 (BREAKPOINT): Ditto.
697
e90cc612
JT
6982002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
699
700 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
701 * NEWS: Ditto.
702
6c72f9f9
JT
7032002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
704
705 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
706 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
707 alpha_linux_pc_in_sigtramp.
708 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
709 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
710 alpha_osf1_pc_in_sigtramp.
711 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
712 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
713 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
714 alphafbsd_pc_in_sigtramp.
715 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
716 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
717 alphanbsd_pc_in_sigtramp.
718 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
719 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
720
5e4f3379
JT
7212002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
722
723 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
724
da8ca43d
JT
7252002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
726
727 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
728 alphanbsd-tdep.c.
729 (alphanbsd-nat.o): New dependency list.
730 (alphanbsd-tdep.o): Ditto.
731 * NEWS: Note new native NetBSD/alpha configuration.
732 * alphanbsd-nat.c: New file.
733 * alphanbsd-tdep.c: Ditto.
734 * configure.host (alpha*-*-netbsd*): New host.
735 * configure.tgt (alpha*-*-netbsd*): New target.
736 * config/alpha/nbsd.mh: New file.
737 * config/alpha/nbsd.mt: Ditto.
738 * config/alpha/nm-nbsd.h: Ditto.
739 * config/alpha/tm-nbsd.h: Ditto.
740
36a6271d
JT
7412002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
742
743 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
744 (alpha-osf1-tdep.o): New dependency list.
745 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
746 and skip_sigtramp_frame members.
747 * alpha-linux-tdep.c: Include gdbcore.h.
748 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
749 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
750 * alpha-osf1-tdep.c: New file.
751 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
752 alpha-osf1-dep.c.
753 (alpha_frame_past_sigtramp_frame): New function.
754 (alpha_dynamic_sigtramp_offset): Ditto.
755 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
756 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
757 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
758 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
759 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
760 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
761 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
762 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
763 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
764 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
765 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
766 to find_solib_trampoline_target.
767 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
768 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
769 (SKIP_TRAMPOLINE_CODE): Remove.
770 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
771 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
772 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
773 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
774 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
775 (PROC_SIGTRAMP_MAGIC): Ditto.
776 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
777 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
778 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
779 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
780 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
781
2f4bc57b
JT
7822002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
783
784 * NEWS: Note that Alpha targets are now multi-arch.
785
665132f9
MS
7862002-04-24 Michael Snyder <msnyder@redhat.com>
787
788 * parser-defs.h (prev_lexptr): New external variable.
789 * parse.c (parse_exp_1): Set prev_lexptr to null before
790 calling the language-specific parser.
791 * c-exp.y (yylex): Set prev_lexptr to start of current token.
792 (yyerror): Use prev_lexptr in error reporting.
793
32872fa7
DJ
7942002-04-24 Daniel Jacobowitz <drow@mvista.com>
795
796 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
797 * gregset.h: If FILL_FPXREGSET is defined, provide
798 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
799 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
800 is defined, call fill_fpxregset.
801
57e76fac
MS
8022002-04-24 Roland McGrath <roland@frob.com>
803
804 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
805 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
806 (supply_gregset, supply_fpregset): New functions.
807
808 * gnu-nat.c (gnu_find_memory_regions): New function.
809 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
810 (gnu_xfer_memory): Add a cast.
811
f43845b3
MS
8122002-04-24 Michael Snyder <msnyder@redhat.com>
813
814 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
815 loop. Add handling for "str lr, [sp, #-4]!" and for saves
816 of argument regs ("str r(0123), [r11, #-nn"]).
817 (arm_skip_prologue): Better handling for frameless functions.
818 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
819 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
820
a0abec03
AC
821Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
822
823 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
824 NUM_PSEUDO_REGS can be used.
825
d7bd68ca
AC
8262002-04-24 Andrew Cagney <ac131313@redhat.com>
827
828 * arch-utils.h: Update copyright.
829
830 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
831 * gdbarch.h, gdbarch.c: Re-generate.
832
833 * inferior.h (IN_SIGTRAMP): Delete definition.
834 * arch-utils.c (legacy_pc_in_sigtramp): New function.
835 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
836
837 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
838 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
839 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
840 (find_proc_framesize): Ditto.
841 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
842 (alpha_init_extra_frame_info): Ditto.
843 * infrun.c (handle_inferior_event): Ditto.
844 (handle_inferior_event): Ditto.
845 (check_sigtramp2): Ditto.
846 * blockframe.c (create_new_frame): Ditto.
847 (get_prev_frame): Ditto.
848 * ppc-linux-tdep.c: Update comments.
849 * i386-linux-tdep.c: Update comments.
850 * breakpoint.c (bpstat_what): Update comment.
851
d06f167a
ML
8522002-04-24 Michal Ludvig <mludvig@suse.cz>
853
854 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
855 (regsets_store_inferior_registers): Removed cast to int from
856 ptrace() calls.
857 * gdbserver/regcache.h: Added declaration of struct inferior_info.
858
4867e41e
DM
8592002-04-24 David S. Miller <davem@redhat.com>
860
21d83aa5
DM
861 * i960-tdep.c (register_in_window_p): New function.
862 (i960_find_saved_register): Use it instead of
863 REGISTER_IN_WINDOW_P.
864 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
865
4867e41e
DM
866 * symtab.h (find_stab_function_addr): Kill extern.
867 * minsyms.c (find_stab_function_addr): Remove from here...
868 * dbxread.c: ... to here, and mark it static.
869
69cdf6a2
DM
8702002-04-20 David S. Miller <davem@redhat.com>
871
872 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
873 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
874
5a595886
DM
8752002-04-21 David S. Miller <davem@redhat.com>
876
877 * remote-vxsparc.c (vx_read_register): Fix typo, we want
878 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
879 (vx_write_register): Likewise.
880
1da1a192
JB
8812002-04-23 J. Brobecker <brobecker@gnat.com>
882
883 * source.c (is_regular_file): New function.
884 (openp): Check wether file to open is a regular file
885 to avoid opening directories.
886
baa6f10b
JT
8872002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
888
889 * findvar.c (extract_signed_integer): Cast printf argument
890 to suppress format warning.
891 (extract_unsigned_integer): Likewise.
892 * infcmd.c (registers_info): Likewise.
893 * top.c (get_prompt_1): Likewise.
894 * valops.c (value_assign): Likewise.
895 * valprint.c (print_decimal): Likewise.
896
b2c4da81
L
8972002-04-22 H.J. Lu (hjl@gnu.org)
898
899 * c-exp.y (typebase): Support
900
901 [long|long long|short] [signed|unsigned] [int|]
902
903 and
904
905 signed [long|long long|short] int
906
f267bd6a
JT
9072002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
908
909 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
910 and vax-tdep.h.
911 * vax-tdep.h: New file.
912 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
913 Make several routines static.
914 (vax_get_saved_register): New function.
915 (vax_gdbarch_init): New function.
916 (_initialize_vax_tdep): Register vax_gdbarch_init.
917 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
918 Remove macros now under the control of gdbarch.
919
da3c6d4a
MS
9202002-04-22 Michael Snyder <msnyder@redhat.com>
921
11d3b27d
MS
922 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
923 Some whitespace and coding standards tweaks.
da3c6d4a 924
a33f7558
JT
9252002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
926
927 * vax-tdep.c: Include regcache.h.
928 (vax_call_dummy_words): New.
929 (sizeof_vax_call_dummy_words): New.
930 (vax_fix_call_dummy): New function.
931 (vax_saved_pc_after_call): Ditto.
932 * config/vax/tm-vax.h: Don't include regcache.h.
933 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
934 (CALL_DUMMY): Remove.
935 (CALL_DUMMY_WORDS): Define.
936 (SIZEOF_CALL_DUMMY_WORDS): Define.
937 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
938
47a73475
MS
9392002-04-18 Michael Snyder <msnyder@redhat.com>
940
941 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
942
52efde73
JT
9432002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
944
945 * vax-tdep.c (vax_frame_chain): New function.
946 (vax_push_dummy_frame): Ditto.
947 (vax_pop_frame): Ditto.
948 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
949 (FRAMELESS_FUNCTION_INVOCATION): Use
950 generic_frameless_function_invocation_not.
951 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
952 (POP_FRAME): Use vax_pop_frame.
953
ea74468c
JT
9542002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
955
956 * vax-tdep.c (vax_store_struct_return): New function.
957 (vax_extract_return_value): Ditto.
958 (vax_store_return_value): Ditto.
959 (vax_extract_struct_value_address): Ditto.
960 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
961 vax_store_struct_return.
962 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
963 (STORE_RETURN_VALUE): Use vax_store_return_value.
964 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
965
5516aa92
JT
9662002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
967
968 * vax-tdep.c (vax_frame_saved_pc): New function.
969 (vax_frame_args_address_correct): Ditto.
970 (vax_frame_args_address): Ditto.
971 (vax_frame_locals_address): Ditto.
972 (vax_frame_num_args): Move code to be in proximity to
973 other frame-related functions.
974 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
975 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
976 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
977 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
978 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
979
36af0b35
L
9802002-04-22 H.J. Lu (hjl@gnu.org)
981
982 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
983 includedir.
984
ab62c900
JT
9852002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
986
987 * vax-tdep.c (vax_frame_init_saved_regs): New function.
988 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
989 (FRAME_INIT_SAVED_REGS): New macro.
990
7232b100
JT
9912002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
992
993 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
994
b70d2aee
JT
9952002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
996
997 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
998 where needed.
999 (fetch_osf_core_registers): Likewise.
1000 (supply_gregset): Likewise.
1001
a0e8a2d1
JB
10022002-04-22 J. Brobecker <brobecker@gnat.com>
1003
1004 * symfile.h (get_section_index): Define.
1005 * symfile.c (get_section_index): New function.
1006 * mdebugread.c (SC_IS_SBSS): New macro.
1007 (SC_IS_BSS): Return true for the scBss storage class only, as
1008 the scSBss storage class refers to the .sbss section.
1009 (parse_partial_symbols): Discard the symbols which associated
1010 section does not exist.
1011 Make sure to use the .sbss section index for symbols which
1012 storage class is scBss, rather than using the .bss section index.
1013
51eb8b08
JT
10142002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1015
1016 * vax-tdep.c: Update copyright years.
1017 (vax_register_name): New function.
1018 (vax_register_byte): Ditto.
1019 (vax_register_raw_size): Ditto.
1020 (vax_register_virtual_size): Ditto.
1021 (vax_register_virtual_type): Ditto.
1022 * config/vax/tm-vax.h: Update copyright years.
1023 (REGISTER_NAMES): Remove.
1024 (REGISTER_NAME): Define.
1025 (REGISTER_BYTE): Use vax_register_byte.
1026 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
1027 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
1028 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
1029
6cc1c0a8
AC
10302002-04-21 Andrew Cagney <ac131313@redhat.com>
1031
1032 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
1033 declaration
1034 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
1035
9319a2fe
DM
10362002-04-21 David S. Miller <davem@redhat.com>
1037
1038 * arch-utils.c (generic_prologue_frameless_p): Kill
1039 SKIP_PROLOGUE_FRAMELESS_P code.
1040 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
1041 references.
1042 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
1043 * arc-tdep.c (arc_prologue_frameless_p): Implement.
1044 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
1045 references.
1046 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
1047 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
1048 (sparc_gdbarch_init): Pass it to
1049 set_gdbarch_prologue_frameless_p.
a0e8a2d1 1050
e9ed6d01
JT
10512002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1052
1053 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
1054 (alphabsd-nat.o): New dependency list.
1055
36012033
JT
10562002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1057
1058 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
1059 alphafbsd-tdep.c.
1060 (alpha-linux-tdep.o): New dependency list.
1061 (alphafbsd-tdep.o): Likewise.
1062
3379287a
JT
10632002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1064
1065 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
1066 to here...
1067 * alpha-tdep.c: ...from here.
1068 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
1069
4bcbd6cb
JT
10702002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1071
1072 * config/alpha/tm-alpha.h: Move alpha_software_single_step
1073 prototype from here...
1074 * alpha-tdep.h: ...to here.
1075
b31da25e
AC
10762002-04-21 Andrew Cagney <ac131313@redhat.com>
1077
1078 * frame.h (selected_frame_level): Document as deprecated.
1079 (frame_relative_level): Declare.
1080 * stack.c (frame_relative_level): New function.
1081 (selected_frame_level): Document as deprecated.
1082 (select_frame): Do not set the selected_frame_level.
1083
1084 * stack.c (frame_info, record_selected_frame): Update.
1085 (frame_command, current_frame_command): Update.
1086 (up_silently_base, up_command, down_silently_base): Update.
1087 (down_command): Update.
1088 * inflow.c (kill_command): Update.
1089 * tracepoint.c (finish_tfind_command): Update.
1090 * corelow.c (core_open): Update.
1091 * thread.c (info_threads_command): Update.
1092 (do_captured_thread_select): Update.
1093 * infcmd.c (finish_command): Update.
1094 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
1095
9c1d6fe5
JT
10962002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1097
1098 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
1099
ab89facf
AC
11002002-04-21 Andrew Cagney <ac131313@redhat.com>
1101
1102 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
1103 type const.
1104
82a4efa1
JT
11052002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1106
1107 * alphafbsd-tdep.c: Update copyright years. Include
1108 alpha-tdep.h.
1109 (alphafbsd_use_struct_convention): Make static.
1110 (alphafbsd_init_abi): New function.
1111 (_initialize_alphafbsd_tdep): New function.
1112 * config/alpha/tm-fbsd.h: Update copyright years.
1113 (USE_STRUCT_CONVENTION): Remove.
1114
44dffaac
JT
11152002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1116
1117 * alpha-tdep.c (alpha_abi_handler): New structure to describe
1118 an Alpha ABI variant.
1119 (alpha_abi_handler_list): Declare.
1120 (alpha_gdbarch_register_os_abi): New function.
1121 (alpha_gdbarch_init): Give registered ABI variant handlers a
1122 chance to tweak the gdbarch once we have set up defaults.
1123 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
1124
65585be4
JT
11252002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1126
1127 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
1128 to standard_coerce_float_to_double.
1129 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
1130
d9b023cc
JT
11312002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1132
1133 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
1134 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
1135 from gdbarch_tdep rather than a constant.
1136 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
1137 the default text address for all Alpha Unix ABIs.
1138 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
1139 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
1140
dc129d82
JT
11412002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1142
1143 * alpha-tdep.h: New file. Includes several Alpha target constants
1144 taken from...
1145 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
1146 let gdbarch deal with.
1147 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
1148 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
1149 to dependency list.
1150 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
1151 Alpha target register names.
1152 * alphabsd-nat.c: Likewise.
1153 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
1154 Alpha target register names. Make serveral routines static.
1155 (alpha_get_saved_register): New function.
1156 (alpha_abi_names): New.
1157 (process_note_abi_tag_sections): New function.
1158 (get_elfosabi): New function.
1159 (alpha_gdbarch_init): New function.
1160 (alpha_dump_tdep): New function.
1161 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
1162
d49d1e0a
AC
11632002-04-21 Andrew Cagney <ac131313@redhat.com>
1164
1165 * frame.c (find_saved_register): Delete #ifdef
1166 HAVE_REGISTER_WINDOWS code.
1167 * config/sparc/tm-sparc.h: Update comments.
1168 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
1169
92e8c9ed
AC
11702002-04-21 Andrew Cagney <ac131313@redhat.com>
1171
1172 * i960-tdep.c (i960_find_saved_register): New function.
1173 (i960_get_saved_register): New function.
1174 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
1175 (i960_get_saved_register): Declare.
1176 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
1177
e1925118
DM
11782002-04-20 David S. Miller <davem@redhat.com>
1179
1180 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
1181
29673b29
AC
11822002-04-20 Andrew Cagney <ac131313@redhat.com>
1183
1184 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
1185 instead of NUM_PSEUDO_REGS.
1186
6c86dcd5
DM
11872002-04-20 David S. Miller <davem@redhat.com>
1188
1189 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
1190 GDB_MULTI_ARCH_PARTIAL
1191 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
1192 define, let tm-sp64.h do it.
1193
aa40ec90
JT
11942002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
1195
1196 * frame.c (find_saved_register): Avoid a NULL pointer
1197 dereference and actually walk the frame list.
1198
0f79675b
AC
11992002-04-20 Andrew Cagney <ac131313@redhat.com>
1200
1201 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
1202 sorted in most most-recent-used order. Document.
1203 * gdbarch.h, gdbarch.c: Regenerate.
1204
c04a1aa8
DJ
12052002-04-20 Daniel Jacobowitz <drow@mvista.com>
1206
1207 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
1208 (add_inferior): Call create_register_cache.
1209 (clear_inferiors): Call free_register_cache.
1210 (inferior_regcache_data, set_inferior_regcache_data): New functions.
1211 * gdbserver/regcache.c (struct inferior_regcache_data): New.
1212 (registers): Remove.
1213 (get_regcache): New function.
1214 (create_register_cache, free_register_cache): New functions.
1215 (set_register_cache): Don't initialize the register cache here.
1216 (registers_to_string, registers_from_string, register_data): Call
1217 get_regcache.
1218 * gdbserver/regcache.h: Add prototypes.
1219 * gdbserver/server.h: Likewise.
1220
611cb4a5
DJ
12212002-04-20 Daniel Jacobowitz <drow@mvista.com>
1222
1223 * gdbserver/mem-break.c: New file.
1224 * gdbserver/mem-break.h: New file.
1225 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
1226 dependencies.
1227 * gdbserver/inferiors.c (struct inferior_info): Add target_data
1228 member.
1229 (clear_inferiors): Free target_data member if set.
1230 (inferior_target_data, set_inferior_target_data): New functions.
1231 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
1232 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
1233 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
1234 (struct inferior_linux_data): New.
1235 (linux_create_inferior): Use set_inferior_target_data.
1236 (linux_attach): Likewise. Call add_inferior.
1237 (linux_wait_for_one_inferior): New function.
1238 (linux_wait): Call it.
1239 (linux_write_memory): Add const.
1240 (initialize_low): Call set_breakpoint_data.
1241 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
1242 handling members.
1243 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
1244 call.
1245 * gdbserver/server.h: Include mem-break.h. Update inferior.c
1246 prototypes.
1247 * gdbserver/target.c (read_inferior_memory)
1248 (write_inferior_memory): New functions.
1249 * gdbserver/target.h (read_inferior_memory)
1250 (write_inferior_memory): Change macros to prototypes.
1251 (struct target_ops): Update comments. Add const to write_memory
1252 definition.
1253
f91305dd 12542002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
1255
1256 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
1257 instead of ->prev.
1258 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
1259 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
1260 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
1261 instead of ->prev.
1262
73d322b1
EZ
12632002-04-19 Elena Zannoni <ezannoni@redhat.com>
1264
1265 Fix PR gdb/471.
1266 * gdbtypes.c (init_simd_type): Rewrite using new functions.
1267 (build_builtin_type_vec128): Ditto.
1268 (append_composite_type_field): Fix calculation of type length in
1269 union case.
1270
ccd9a834
EZ
12712002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
1272
1273 * config/djgpp/README: Update.
1274
1275 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
1276 compiler warnings.
1277
a57f9e49
JT
12782002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
1279
1280 * alpha-tdep.c (setup_arbitrary_frame): Rename...
1281 (alpha_setup_arbitrary_frame): ...to this.
1282 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
1283 for alpha_setup_arbitrary_frame.
1284
f4f9705a
AC
12852002-04-18 Andrew Cagney <cagney@redhat.com>
1286
1287 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
1288 * gdbarch.h, gdbarch.c: Regenerate.
1289
1290 * defs.h (breakpoint_from_pc_fn): Delete type definition.
1291 * target.h (memory_breakpoint_from_pc): Update declaration.
1292 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
1293
1294 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
1295 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
1296 * mem-break.c (memory_breakpoint_from_pc): Ditto.
1297 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
1298 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
1299 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
1300 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
1301 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
1302 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
1303 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
1304 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
1305 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
1306
1307 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
1308 const pointer.
1309 * monitor.c (monitor_insert_breakpoint): Ditto.
1310 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
1311
1312 * config/mcore/tm-mcore.h: Update copyright.
1313 * mem-break.c: Ditto.
1314 * xstormy16-tdep.c: Ditto.
1315
29f319b8
PM
13162002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
1317
1318 * p-exp.y: Add precedence rule for '^' token.
1319 This removes the shift/reduce conflicts.
1320 Remove the comment concerning these shift/reduce conflicts.
1321
ebeac11a
EZ
13222002-04-18 Elena Zannoni <ezannoni@redhat.com>
1323
1324 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
1325 (registers_powerpc_nofp): New register set for processors
1326 without floating point unit.
1327
27c31547
DM
13282002-04-18 David S. Miller <davem@redhat.com>
1329
1330 * MAINTAINERS: Add myself to write-after-approval.
1331
47a73475
MS
13322002-04-17 Michael Snyder <msnyder@redhat.com>
1333
1334 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
1335
953836b2
AC
13362002-04-17 Andrew Cagney <ac131313@redhat.com>
1337
1338 * rs6000-tdep.c (frame_initial_stack_address): Use
1339 frame_register_read to read the alloca_reg.
1340
8b0d4340
AC
13412002-04-17 Andrew Cagney <ac131313@redhat.com>
1342
1343 * frame.c (find_saved_register): Find saved registers in the next
1344 not prev frame.
1345 Fix PR gdb/365.
1346
d8864532
AC
13472002-04-17 Andrew Cagney <ac131313@redhat.com>
1348
1349 * gdbarch.sh (LANG): Set to ``c''.
1350
36cc83a3
AC
13512002-04-15 Andrew Cagney <ac131313@redhat.com>
1352
1353 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
1354
2f4150cc 13552002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
1356
1357 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
1358 Update copyright.
1359
628703c6 1360 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc
AC
1361 Also fix PR gdb/391.
1362
56157b4a
AC
13632002-04-14 Andrew Cagney <ac131313@redhat.com>
1364
1365 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
1366 * aclocal.m4, configure: Re-generate.
1367 Fix PR gdb/391.
1368
6d1e3329
EZ
13692002-04-14 Elena Zannoni <ezannoni@redhat.com>
1370
1371 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
1372 instead of tm_print_insn.
1373
cb06fa07
EZ
13742002-04-14 Elena Zannoni <ezannoni@redhat.com>
1375
1376 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
1377
f208ba17
AC
13782002-04-14 Andrew Cagney <ac131313@redhat.com>
1379
1380 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
1381 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
1382 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
1383
20f01a46
DH
13842002-04-12 Don Howard <dhoward@redhat.com>
1385
1386 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
1387 max_user_call_depth.
1388 (init_cmd_lists): Initialize the new value;
1389 * cli/cli-script.c (execute_user_command): Limit the call depth of
1390 user defined commands. This avoids a core-dump when user commands
1391 are infinitly recursive.
1392
a88376a3
KB
13932002-04-12 Kevin Buettner <kevinb@redhat.com>
1394
1395 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
1396 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
1397 from tdep struct instead of DEFAULT_LR_SAVE.
1398 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
1399 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
1400 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
1401
f2172603
MS
14022002-04-12 Michael Snyder <msnyder@redhat.com>
1403
694f61fb 1404 * Remote.c: Spelling fix.
20fe79c8
MS
1405 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
1406 If no symbol found for "sbrk", try "_sbrk".
1407 (make_output_phdrs): Use bfd_section_name.
1408 (gcore_copy_callback): Use bfd_section_name.
62995fc4 1409 * eval.c: Indentation fix-ups.
169a7369
MS
1410 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
1411 in case it gets applied to an address that is already
1412 in the instruction space.
de74f71f
MS
1413 * cli/cli-decode.c (help_list): Allow long lines to wrap.
1414 * symfile.c: Fix indentation, long lines.
f2172603
MS
1415 * source.c: White space fix-up.
1416
cda5a58a
AC
14172002-04-12 Andrew Cagney <cagney@redhat.com>
1418
1419 * defs.h (read_relative_register_raw_bytes): Delete declaration.
1420 * frame.c (frame_register_read): New function. Return non-zero on
1421 success.
1422 (read_relative_register_raw_bytes_for_frame): Delete.
1423 (read_relative_register_raw_bytes): Delete.
1424 * frame.h (frame_register_read): Declare.
1425 * d30v-tdep.c: Update Copyright. Use frame_register_read.
1426 * sh-tdep.c: Ditto.
1427 * infcmd.c (do_registers_info): Ditto.
1428 * hppa-tdep.c: Ditto.
1429 * rs6000-tdep.c: Ditto.
1430 * h8500-tdep.c: Ditto.
1431 * mips-tdep.c: Ditto.
1432 * h8300-tdep.c: Ditto.
1433 * z8k-tdep.c: Ditto.
1434
2ea5f656
KB
14352002-04-12 Kevin Buettner <kevinb@redhat.com>
1436
1437 From Jimi X <jimix@watson.ibm.com>:
1438 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
1439 64-bit SysV ABI.
1440
27b15785
KB
14412002-04-12 Kevin Buettner <kevinb@redhat.com>
1442
1443 From Jimi X <jimix@watson.ibm.com>:
1444 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
1445 bfd info.
1446
5d57ee30
KB
14472002-04-12 Kevin Buettner <kevinb@redhat.com>
1448
1449 From Jimi X <jimix@watson.ibm.com>:
1450 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
1451 register sets for these processor variants.
1452
bc1e36ca
DJ
14532002-04-11 Daniel Jacobowitz <drow@mvista.com>
1454
1455 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
1456 registers which are allowed to fail to store.
1457 * gdbserver/linux-low.h (linux_target_ops): Likewise.
1458 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
1459 (ppc_cannot_store_register): FPSCR may not be storable.
1460 * regformats/reg-ppc.dat: Support FPSCR.
1461
e3f36dbd
KB
14622002-04-11 Kevin Buettner <kevinb@redhat.com>
1463
1464 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
1465 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
1466 Add fpscr as an invalid/unfetchable register.
1467 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
1468 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
1469 (fill_fpregset): Add support for register fpscr.
1470 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
1471 (fill_gregset): Account for the fact that register ``mq'' might
1472 not exist.
1473 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
1474 (registers_power): Add fpscr to register set at slot 71.
1475 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
1476 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
1477
943c9c25
MS
14782002-04-11 Michael Snyder <msnyder@redhat.com>
1479
1480 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
1481 * configure: Regenerate.
1482 * config.in: Regenerate.
1483 * acconfig.h: Add define for _SYSCALL32.
1484 * core-sol2.c: Remove #define _SYSCALL32.
1485 * solib-legacy.c: Remove #define _SYSCALL32.
1486
d8c0a2e7
AC
14872002-04-10 Andrew Cagney <ac131313@redhat.com>
1488
1489 * stack.c (select_frame): Cleanup internal error message, do not
1490 use %p.
1491
7cc19214
AC
14922002-04-10 Andrew Cagney <ac131313@redhat.com>
1493
1494 * stack.c (select_frame): Check that selected_frame and the
1495 specified level are as expected.
1496 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
1497 Update copyright.
1498 * frame.h (struct frame_info): Add field `level'. Update
1499 copyright.
1500 Work-in-progress PR gdb/464.
1501
67a2b77e
AC
15022002-04-10 Andrew Cagney <ac131313@redhat.com>
1503
1504 * maint.c (maint_print_section_info): Rename print_section_info.
1505 (print_bfd_section_info, print_objfile_section_info): Update.
1506 * inferior.h (struct gdbarch): Add opaque declaration.
1507 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
1508 * gdbarch.h: Regenerate.
1509
8cfda98c
ML
15102002-04-10 Michal Ludvig <mludvig@suse.cz>
1511
1512 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
1513 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
1514 (kernel_u_size): Added.
1515 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
1516 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
1517
ca439ad2
JI
15182002-04-04 Jim Ingham <jingham@apple.com>
1519
1520 * valarith.c (find_size_for_pointer_math): New function, either returns
1521 the size for a pointer's target, returns 1 for void *, or errors for
1522 incomplete types.
1523 (value_add, value_sub): use find_size_for_pointer_math.
1524
2f2893d9
DJ
15252002-04-09 Daniel Jacobowitz <drow@mvista.com>
1526
1527 * linux-low.c (linux_look_up_symbols): New hook.
1528 (linux_target_ops): Add linux_look_up_symbols.
1529 * remote-utils.c (decode_address): New function.
1530 (look_up_one_symbol): New function.
1531 * server.c (handle_query): Call target look_up_symbols hook.
1532 * server.h (look_up_one_symbol): Add prototype.
1533 * target.h (struct target_ops): Add look_up_symbols hook.
1534
2ec06d2e
DJ
15352002-04-09 Daniel Jacobowitz <drow@mvista.com>
1536
d64b8841
DJ
1537 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
1538 * ChangeLog: Correct paths in last ChangeLog entry.
1539
15402002-04-09 Daniel Jacobowitz <drow@mvista.com>
1541
1542 * gdbserver/linux-low.h: Remove obsolete prototypes.
2ec06d2e
DJ
1543 (struct linux_target_ops): New.
1544 (extern the_low_target): New.
d64b8841 1545 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
2ec06d2e
DJ
1546 (register_addr): Use the_low_target explicitly.
1547 (fetch_register): Likewise.
1548 (usr_fetch_inferior_registers): Likewise.
1549 (usr_store_inferior_registers): Likewise.
d64b8841 1550 * gdbserver/linux-arm-low.c (num_regs): Remove.
2ec06d2e
DJ
1551 (arm_num_regs): Define.
1552 (arm_regmap): Renamed from regmap, made static.
1553 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
1554 made static.
1555 (arm_cannot_store_register): Renamed from cannot_store_register,
1556 made static.
1557 (the_low_target): New.
d64b8841 1558 * gdbserver/linux-i386-low.c (num_regs): Remove.
2ec06d2e
DJ
1559 (i386_num_regs): Define.
1560 (i386_regmap): Renamed from regmap, made static.
1561 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
1562 made static.
1563 (i386_cannot_store_register): Renamed from cannot_store_register,
1564 made static.
1565 (the_low_target): New.
d64b8841 1566 * gdbserver/linux-ia64-low.c (num_regs): Remove.
2ec06d2e
DJ
1567 (ia64_num_regs): Define.
1568 (ia64_regmap): Renamed from regmap, made static.
1569 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
1570 made static.
1571 (ia64_cannot_store_register): Renamed from cannot_store_register,
1572 made static.
1573 (the_low_target): New.
d64b8841 1574 * gdbserver/linux-m68k-low.c (num_regs): Remove.
2ec06d2e
DJ
1575 (m68k_num_regs): Define.
1576 (m68k_regmap): Renamed from regmap, made static.
1577 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
1578 made static.
1579 (m68k_cannot_store_register): Renamed from cannot_store_register,
1580 made static.
1581 (the_low_target): New.
d64b8841 1582 * gdbserver/linux-mips-low.c (num_regs): Remove.
2ec06d2e
DJ
1583 (mips_num_regs): Define.
1584 (mips_regmap): Renamed from regmap, made static.
1585 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
1586 made static.
1587 (mips_cannot_store_register): Renamed from cannot_store_register,
1588 made static.
1589 (the_low_target): New.
d64b8841 1590 * gdbserver/linux-ppc-low.c (num_regs): Remove.
2ec06d2e
DJ
1591 (ppc_num_regs): Define.
1592 (ppc_regmap): Renamed from regmap, made static.
1593 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
1594 made static.
1595 (ppc_cannot_store_register): Renamed from cannot_store_register,
1596 made static.
1597 (the_low_target): New.
d64b8841 1598 * gdbserver/linux-s390-low.c (num_regs): Remove.
2ec06d2e
DJ
1599 (s390_num_regs): Define.
1600 (s390_regmap): Renamed from regmap, made static.
1601 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
1602 made static.
1603 (s390_cannot_store_register): Renamed from cannot_store_register,
1604 made static.
1605 (the_low_target): New.
d64b8841 1606 * gdbserver/linux-sh-low.c (num_regs): Remove.
2ec06d2e
DJ
1607 (sh_num_regs): Define.
1608 (sh_regmap): Renamed from regmap, made static.
1609 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
1610 made static.
1611 (sh_cannot_store_register): Renamed from cannot_store_register,
1612 made static.
1613 (the_low_target): New.
d64b8841 1614 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2ec06d2e
DJ
1615 (the_low_target): New.
1616
96cb11df
AC
16172002-04-09 Andrew Cagney <ac131313@redhat.com>
1618
1619 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
1620 override FP_REGNUM with frame->fp. Update copyright.
1621 * parse.c (num_std_regs, std_regs): Delete.
1622 (target_map_name_to_register): Do not search std_regs. Update
1623 function description.
1624 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
1625 declarations. Update copyright.
1626 Fix PR gdb/251.
1627
c3a3ccc7
DJ
16282002-04-09 Daniel Jacobowitz <drow@mvista.com>
1629
1630 * gdbserver/Makefile.in: Add stamp-h target.
1631 * gdbserver/configure.in: Create stamp-h.
1632 * gdbserver/configure: Regenerated.
1633
ce3a066d
DJ
16342002-04-09 Daniel Jacobowitz <drow@mvista.com>
1635
1636 * gdbserver/inferiors.c: New file.
1637 * gdbserver/target.c: New file.
1638 * gdbserver/target.h: New file.
1639 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
1640 dependencies.
1641 * gdbserver/linux-low.c (inferior_pid): New static variable,
1642 moved from server.c.
1643 (linux_create_inferior): Renamed from create_inferior.
1644 Call add_inferior. Return 0 on success instead of a PID.
1645 (linux_attach): Renamed from myattach.
1646 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
1647 (linux_thread_alive): Renamed from mythread_alive.
1648 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1649 child dies.
1650 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1651 (regsets_store_inferior_registers): Correct error message.
1652 Add missing ``return 0''.
1653 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1654 (linux_store_registers): Renamed from store_inferior_registers.
1655 (linux_read_memory): Renamed from read_inferior_memory.
1656 (linux_write_memory): Renamed from write_inferior_memory.
1657 (linux_target_ops): New structure.
1658 (initialize_low): Call set_target_ops ().
1659 * gdbserver/remote-utils.c (unhexify): New function.
1660 (hexify): New function.
1661 (input_interrupt): Send signals to ``signal_pid''.
1662 * gdbserver/server.c (inferior_pid): Remove.
1663 (start_inferior): Update create_inferior call.
1664 (attach_inferior): Call add_inferior.
1665 (handle_query): New function.
1666 (main): Call handle_query for `q' packets.
1667 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
1668 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1669
0729219d
DJ
16702002-04-09 Daniel Jacobowitz <drow@mvista.com>
1671
1672 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
1673 dependencies.
1674 * gdbserver/configure.in: Check for <string.h>
1675 * gdbserver/configure: Regenerate.
1676 * gdbserver/config.in: Regenerate.
1677 * gdbserver/gdbreplay.c: Include needed system headers.
1678 (remote_open): Remove strchr prototype.
1679 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1680 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
1681 (supply_register_by_name): Likewise.
1682 (collect_register): Change buf argument to void *.
1683 (collect_register_by_name): Likewise.
1684 * gdbserver/regcache.h: Add missing prototypes.
1685 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1686 * gdbserver/server.c (handle_query): New function.
1687 (attached): New static variable, moved out of main.
1688 (main): Quiet longjmp clobber warnings.
1689 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1690 * gdbserver/utils.c (error): Remove NORETURN.
1691 (fatal): Likewise.
1692
97658e92
DJ
16932002-04-09 Daniel Jacobowitz <drow@mvista.com>
1694
1695 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
1696 after the last symbol in a block.
1697
6044e3eb
PM
16982002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
1699
1700 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
1701 is non zero as a found symbol.
1702
0406ec40
AC
17032002-04-08 Andrew Cagney <ac131313@redhat.com>
1704
1705 * findvar.c: Include "builtin-regs.h".
1706 (value_of_register): Call value_of_builtin_reg when applicable.
1707 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
1708 (target_map_name_to_register): Call
1709 builtin_reg_map_name_to_regnum.
1710 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
1711 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
1712 (builtin_regs_h): Define.
1713 (builtin-regs.o): New target.
1714 (findvar.o): Add $(builtin_regs_h).
1715 * builtin-regs.c, builtin-regs.h: New files.
1716 * std-regs.c: New file.
1717 Partial fix for PR gdb/251.
1718
56a6dfb9
KB
17192002-04-08 Kevin Buettner <kevinb@redhat.com>
1720
1721 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
1722 it's no longer required.
1723
3a808432
AC
17242002-04-08 Andrew Cagney <ac131313@redhat.com>
1725
1726 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
1727
7c40d541
KB
17282002-04-08 Kevin Buettner <kevinb@redhat.com>
1729
1730 From Jimi X <jimix@watson.ibm.com>:
1731 * rs6000-tdep.c (rs6000_software_single_step): Use
1732 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
1733 and size. Use target_insert_breakpoint() and
1734 target_remove_breakpoint() to insert and remove breakpoints
1735 instead of explicit memory reads and writes.
1736
cc9836a8
KB
17372002-04-08 Kevin Buettner <kevinb@redhat.com>
1738
1739 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
1740 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
1741 ELF_OBJECT_FORMAT ifdef.
1742
7495d1dc
KB
17432002-04-08 Kevin Buettner <kevinb@redhat.com>
1744
1745 From Jimi X <jimix@watson.ibm.com>:
1746 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
1747
4288e836
KB
17482002-04-08 Kevin Buettner <kevinb@redhat.com>
1749
1750 From Jimi X <jimix@watson.ibm.com>:
1751 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
1752 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
1753
a4e4e501
MK
17542002-04-07 Mark Kettenis <kettenis@gnu.org>
1755
1756 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
1757 s/asprintf/xasprintf/.
1758 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
1759
006defba
AC
17602002-04-07 Andrew Cagney <ac131313@redhat.com>
1761
1762 I believe Jeff Law denies responsability for this one:
1763 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
1764 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
1765 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
1766 Work-around for PR gdb/366.
1767
7aa83cac
EZ
17682002-04-07 Elena Zannoni <ezannoni@redhat.com>
1769
1770 * remote-e7000.c (write_small, e7000_read_inferior_memory,
1771 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
1772 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
1773
cf1fcca1
EZ
17742002-04-07 Elena Zannoni <ezannoni@redhat.com>
1775
1776 * sh-tdep.c (sh_fp_frame_init_saved_regs,
1777 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
1778 information.
1779
3f289e6f
AC
17802002-04-07 Andrew Cagney <ac131313@redhat.com>
1781
1782 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
1783 maintainer.
1784
129188f6
AC
17852002-04-07 Andrew Cagney <ac131313@redhat.com>
1786
1787 * README (Reporting Bugs in GDB): Document the bug web page as the
1788 prefered way of submitting bugs.
1789 Fix PR gdb/402.
1790
1200cd6e
AC
17912002-04-06 Andrew Cagney <ac131313@redhat.com>
1792
1793 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
1794 -1. Update comment.
1795 * gdbarch.h, gdbarch.c: Re-generate.
1796
2853c33c
AS
17972002-04-07 Andreas Schwab <schwab@suse.de>
1798
1799 * m68klinux-nat.c (fill_fpregset): Properly pass address of
1800 buffer to regcache_collect.
1801
c2169756
AC
18022002-04-06 Andrew Cagney <ac131313@redhat.com>
1803
1804 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
1805 * gdbarch.c, gdbarch.h: Re-generate.
1806
25f1b008
AC
18072002-04-06 Andrew Cagney <ac131313@redhat.com>
1808
1809 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
1810 declaration. Fix -Werror.
1811
59263426
DJ
18122002-04-05 Daniel Jacobowitz <drow@mvista.com>
1813
1814 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
1815 * gdbarch.c: Regenerate.
1816
f5db4da3
MS
18172002-04-05 Michael Snyder <msnyder@redhat.com>
1818
80f8a6eb
MS
1819 * breakpoint.c (clear_command): Rewrite middle section to
1820 combine two loops with identical control conditions.
1821 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
1822 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
1823
ad3dcc5c
L
18242002-04-05 H.J. Lu (hjl@gnu.org)
1825
1826 * solib-svr4.c (bkpt_names): Add "__start".
1827
f32e7a74
AC
18282002-04-04 Andrew Cagney <ac131313@redhat.com>
1829
1830 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
1831 as test for 64 bit target.
1832
8227c0ff
AC
18332002-04-05 Andrew Cagney <ac131313@redhat.com>
1834
1835 * h8500-tdep.c (h8500_write_fp): Delete function.
1836 * dwarf2cfi.c (cfi_write_fp): Document as not used.
1837 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
1838 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
1839 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
1840 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
1841 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
1842 (s390_write_fp):
1843 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
1844 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
1845 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
1846 (d10v_write_fp): Delete function.
1847 * inferior.h (write_fp, generic_target_write_fp): Delete
1848 declarations.
1849 * regcache.c (generic_target_write_fp): Delete function.
1850 (write_fp): Delete function.
1851 * gdbarch.sh (TARGET_WRITE_FP): Delete.
1852 * gdbarch.h, gdbarch.c: Regenerate.
1853 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
1854 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
1855 (sparc64_write_fp): Delete declaration.
1856 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
1857 (h8500_write_fp): Delete declaration.
1858
2757dd86
AC
18592002-04-04 Andrew Cagney <ac131313@redhat.com>
1860
1861 * sparc-tdep.c (sparc64_write_fp): Delete.
1862 (sparc_push_dummy_frame): Replace write_fp call with code to store
1863 the FP directly.
1864 (sparc_gdbarch_init): Do not initialize write_fp.
1865
c69255e1
KB
18662002-04-05 Kevin Buettner <kevinb@redhat.com>
1867
1868 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
1869 clause.
1870
ae767bfb
JB
18712002-03-29 Jim Blandy <jimb@redhat.com>
1872
1873 * stack.c (get_selected_block): Add new argument `addr_in_block',
1874 used to return the exact code address we used to select the block,
1875 not just the block.
1876 * blockframe.c (get_frame_block, get_current_block): Same.
1877 * frame.h (get_frame_block, get_current_block,
1878 get_selected_block): Update declarations.
1879 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
1880 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
1881
84d2ac95
MS
18822002-04-05 Michael Snyder <msnyder@redhat.com>
1883
1884 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
1885 warning message.
1886
596aa3bf
JB
18872002-04-05 J. Brobecker <brobecker@gnat.com>
1888
1889 * utils.c (xfullpath): New function.
1890 * defs.h (xfullpath): Add declaration.
1891 * source.c (openp): Use xfullpath in place of gdb_realpath to
1892 avoid resolving the basename part of filenames when the
1893 associated file is a symbolic link. This fixes a potential
1894 inconsistency between the filenames known to GDB and the
1895 filenames it prints in the annotations.
1896 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
1897 to be able to match a filename with either the real filename, or
1898 the name of any symbolic link to this file.
1899 (lookup_partial_symtab): Ditto.
1900
c02f5703
MS
19012002-04-04 Michael Snyder <msnyder@redhat.com>
1902
1903 * breakpoint.c: Add support for hardware breakpoints in overlays.
1904 (overlay_events_enabled): New state variable.
1905 (insert_breakpoints): Use overlay_events_enabled to decide
1906 whether to attempt to set a breakpoint at the overlay load addr.
1907 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1908 (remove_breakpoint): Use overlay_events_enabled to decide
1909 whether breakpoints need to be removed from overlay load addr.
1910 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1911 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
1912 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
1913 disable_overlay_breakpoints): Update overlay_events_enabled.
1914
5fb290d7
DJ
19152002-04-04 Daniel Jacobowitz <drow@mvista.com>
1916
1917 * dwarf2read.c (struct function_range): New.
1918 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
1919 (check_cu_functions): New.
1920 (read_file_scope): Initialize global function lists.
1921 Call dwarf_decode_line after processing children.
1922 (read_func_scope): Add to global function list.
1923 (dwarf_decode_lines): Call check_cu_functions everywhere
1924 record_line is called. Call record_line with a linenumber
1925 of 0 to mark sequence ends.
1926
7b3fabf0
ML
19272002-04-04 Michal Ludvig <mludvig@suse.cz>
1928
1929 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
1930 change sync with glibc.
1931
bce58c09
JB
19322002-04-03 Jim Blandy <jimb@redhat.com>
1933
1934 * configure.in: Call AC_C_INLINE.
1935 * configure: Regenerated.
1936
2fccf04a
DJ
19372002-04-01 Daniel Jacobowitz <drow@mvista.com>
1938
1939 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
1940 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
1941
2d1bfe2e
MK
19422002-03-31 Mark Kettenis <kettenis@gnu.org>
1943
a5941fbf
MK
1944 * NEWS: Mention gcore support on FreeBSD/i386.
1945
a90cd31d
MK
1946 * fbsd-proc.c: New file.
1947 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
1948 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
1949
2d1bfe2e
MK
1950 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
1951 while statement.
1952
9eb6e5a1
JB
19532002-03-29 Jim Blandy <jimb@redhat.com>
1954
1955 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
1956 unescaped newlines in string literals, but newer ones don't. So
1957 escape them.
1958
f02df580
MS
19592002-03-26 Michael Snyder <msnyder@redhat.com>
1960 Andrew Cagney <cagney@redhat.com>
1961
1962 * cli/cli-dump.c: New file. Dump memory to file,
1963 restore file to memory.
1964 * cli/cli-dump.h: New file.
1965 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 1966 * NEWS: Mention new commands.
f02df580 1967
109f874e
MS
19682002-03-28 Michael Snyder <msnyder@redhat.com>
1969
1970 * symfile.c (symbol_file_add): Move test for null symbols to later.
1971
520f6ade
AC
19722002-03-27 Andrew Cagney <ac131313@redhat.com>
1973
1974 From veksler at il.ibm.com:
1975 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
1976 the xstrduped original path.
1977 Fix PR gdb/417.
1978
d4654627
MS
19792002-03-27 Michael Snyder <msnyder@redhat.com>
1980
1981 * breakpoint.c (_initialize_breakpoint): Clean up help string.
1982 * infcmd.c (_initialize_infcmd): Ditto.
1983 * language.c (_initialize_language): Ditto.
1984 * symfile.c (_initialize_symfile): Ditto.
1985 * top.c (_init_main): Ditto.
1986 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1987
6be8bc0c
EZ
19882002-03-27 Elena Zannoni <ezannoni@redhat.com>
1989
1990 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
1991 vector registers handling.
1992 (skip_prologue): Handle new AltiVec instructions. Fill in new
1993 fields of frame data.
1994 (frame_get_saved_regs): Fill in information for AltiVec registers.
1995
12af6855
JB
19962002-03-27 Jim Blandy <jimb@redhat.com>
1997
1998 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
1999 a function; leave this macro here to invoke that function.
2000 (symbol_init_mangled_name): Declaration for that function.
2001 * symtab.c (symbol_init_mangled_name): New function.
2002
dc672865
AC
20032002-03-27 Andrew Cagney <ac131313@redhat.com>
2004
2005 * valarith.c: Replace strerror with safe_strerror.
2006 * tracepoint.c: Ditto.
2007 * lin-lwp.c: Ditto.
2008 * go32-nat.c: Ditto.
2009 * inflow.c: Ditto.
2010 * gnu-nat.c: Ditto.
2011
d96429cd
AS
20122002-03-27 Andreas Schwab <schwab@suse.de>
2013
2014 * event-top.c (command_line_handler): Remove useless if.
2015
7e336ba1
AJ
20162002-03-27 Andreas Jaeger <aj@suse.de>
2017
2018 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
2019 comment.
2020
de220d0f
ML
20212002-03-27 Michal Ludvig <mludvig@suse.cz>
2022
2023 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
2024 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
2025 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
2026 (x86_64_linux_dr_get_status, supply_gregset),
2027 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
2028 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
2029 (x86_64_register_info_table): Add.
2030 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
2031 (x86_64_register_raw_size, x86_64_register_virtual_type),
2032 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
2033 general x86_64_register_info_table.
2034 (i386_gdbarch_init): gdbarch_register_bytes is now set
2035 dynamicaly during initialization.
2036 * regformats/reg-x86-64.dat: Synced with changes to registers above.
2037 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 2038
0e98d0a7
DJ
20392002-03-27 Daniel Jacobowitz <drow@mvista.com>
2040
2041 * gdbserver/server.c (main): Call target_signal_to_host_p
2042 and target_signal_to_host on signals received from the remote.
2043 * gdbserver/remote-utils.c (prepare_resume_reply): Call
2044 target_signal_from_host on signals sent to the remote.
2045 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
2046 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
2047
3130066b
DJ
20482002-03-27 Daniel Jacobowitz <drow@mvista.com>
2049
2050 * signals/signals.c: Include "server.h" in gdbserver build.
2051 (target_signal_from_name): Don't use STREQ.
2052 (_initialize_signals): Likewise. Don't include function in
2053 gdbserver build.
2054
9aedf4f4
DJ
20552002-03-27 Daniel Jacobowitz <drow@mvista.com>
2056
2057 * signals.c: Moved to...
2058 * signals/signals.c: Here.
7e336ba1 2059 * Makefile (signals.o): Update.
9aedf4f4 2060
3fa41cdb
JL
20612002-03-26 Jeff Law (law@redhat.com)
2062
2063 * somread.c (som_symtab_read): Remove some commented out code and
2064 updated related comments. Do not set the minimal symbol table to
2065 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
2066 in a dynamic executable.
2067 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
2068 where we are unable to find the minimal symbol for the given
2069 PC value.
2070
ee677e8d
MS
20712002-03-25 Jeff Law (law@redhat.com)
2072
2073 * linux-proc.c (read_mapping): Scan up to end of line for filename.
2074
e76e1718
ML
20752002-03-25 Michal Ludvig <mludvig@suse.cz>
2076
2077 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
2078
18a642a1
AC
20792002-03-23 Andrew Cagney <ac131313@redhat.com>
2080
2081 * command.h: Update copyright.
2082 (struct cmd_list_element): Replace definition with opaque
2083 declaration.
2084 (enum cmd_types): Document that it will eventually be moved to
2085 cli/cli-decode.h
2086 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
2087 (MALLOCED_REPLACEMENT): Delete macro.
2088 * Makefile.in (cli_decode_h): Add $(command_h).
2089 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 2090 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
2091 * completer.c: Include "cli/cli-decode.h".
2092 * maint.c: Include "cli/cli-decode.h".
2093 * cli/cli-decode.h: Include "command.h".
2094 (enum command_class): Delete.
2095 (enum cmd_types): Comment out.
2096 (enum cmd_auto_boolean): Delete.
2097 (enum var_types): Delete.
2098
b2875cc0
AC
20992002-03-23 Andrew Cagney <ac131313@redhat.com>
2100
2101 * cli/cli-decode.c: Include "gdb_assert.h".
2102 (add_set_or_show_cmd): New static function.
2103 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
2104 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
2105 all fields, such as func, from the set command.
2106
3b45974e
AC
21072002-03-23 Andrew Cagney <ac131313@redhat.com>
2108
2109 * MAINTAINERS (sh-elf): Change warning flag to -w.
2110
823ca731
AC
21112002-03-23 Andrew Cagney <cagney@redhat.com>
2112
2113 * defs.h (error): Add printf format attribute.
2114 * thread-db.c (thread_from_lwp): Fix error format string.
2115 * stack.c (parse_frame_specification): Ditto.
2116 * cli/cli-decode.c (undef_cmd_error): Ditto.
2117 * scm-lang.c (scm_lookup_name): Ditto.
2118 * tracepoint.c (trace_error): Ditto.
2119 * remote-utils.c (usage): Ditto.
2120 * remote.c (compare_sections_command): Ditto.
2121 Fix PR gdb/328.
2122
0e101458
AC
21232002-03-22 Andrew Cagney <ac131313@redhat.com>
2124
2125 * gdbtypes.c (append_composite_type_field): New function.
2126 (init_composite_type): New function.
2127 * gdbtypes.h (append_composite_type_field): Declare.
2128 (init_composite_type): Ditto.
2129
8e0662df
EZ
21302002-03-22 Elena Zannoni <ezannoni@redhat.com>
2131
2132 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 2133 function.
8e0662df
EZ
2134 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
2135 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
2136 structure returning convention for SYSV ABI case, but not
2137 for GNU/Linux, FreeBSD, or NetBSD.
2138
3121eff0
DJ
21392002-03-22 Daniel Jacobowitz <drow@mvista.com>
2140
2141 * symtab.h (lookup_block_symbol): Add mangled_name argument
2142 to prototype.
2143
2144 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
2145 with new mangled_name argument.
2146 * linespec.c (decode_line_1): Likewise.
2147 * valops (value_of_this): Likewise.
2148 * symtab.c (lookup_transparent_type): Likewise.
2149 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
2150 (lookup_symbol): If we are given a mangled name, pass it down
2151 to lookup_symbol_aux.
2152 (lookup_block_symbol): If we are given a mangled name to check
2153 against, only return symbols which match it.
2154
349b409f
CF
21552002-03-22 Christopher Faylor <cgf@redhat.com>
2156
2157 * win32-nat.c (child_create_inferior): Check for proper shell to use
2158 here, in case the user changes it on the fly.
2159 (_initialize_inftarg): Remove shell path considerations.
2160
2a873819
EZ
21612002-03-21 Elena Zannoni <ezannoni@redhat.com>
2162
2163 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
2164 for gdbarch_max_register_raw_size and max_register_virtual_size.
2165 Adjust copyright year.
2166
a1b9830c
DJ
21672002-03-21 Daniel Jacobowitz <drow@mvista.com>
2168
2169 * dbxread.c (process_one_symbol): Extend the first N_SLINE
2170 in a function to cover the entire beginning of the function
2171 as well if it does not already.
2172
8b5790f2
TR
21732002-03-21 Tom Rix <trix@redhat.com>
2174
2175 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
2176 (rs6000_ptrace64): Renamed from ptrace64.
2177
bdbe5747
MH
21782002-03-20 Martin M. Hunt <hunt@redhat.com>
2179
2180 * gdbserver/remote-utils.c (remote_open): Don't call
2181 getprotobyname, we're all using TCP here so just use
2182 IPPROTO_TCP.
7e336ba1 2183 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
2184
21852002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 2186
bdbe5747
MH
2187 * regcache.c (_initialize_regcache): No need to call
2188 build_regcache() at this time; it gets called whenever
2189 the gdbarch changes.
2190
7781cd62
DB
21912002-03-20 David O'Brien <obrien@FreeBSD.org>
2192
2193 * sparc-nat.c: Include sys/param.h where possible.
2194
f65ca430
DJ
21952002-03-20 Daniel Jacobowitz <drow@mvista.com>
2196
2197 Fix PR gdb/422.
2198 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
2199 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
2200 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
2201 complex types.
2202 * stabsread.c (rs6000_builtin_type): Likewise.
2203 (read_sun_floating_type): Likewise.
2204
0c867556
PS
22052002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2206
2207 * stabsread.c (read_member_functions): Remove skip code for duplicate
2208 constructor/destructor methods. Use standard parsing for these
2209 methods and just do not chain them to the list of methods after
2210 parsing.
2211
12b9c64f
AO
22122002-03-19 Alexandre Oliva <aoliva@redhat.com>
2213
2214 * coffread.c: Remove redundant static declarations. Replace
2215 occurrences of `PTR' with `void *'.
2216 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
2217 * top.h (quit_cover): Likewise.
2218 * defs.h (catch_errors): Likewise.
2219
349c5d5f
AC
22202002-03-18 Andrew Cagney <ac131313@redhat.com>
2221
2222 * defs.h (XMALLOC): Define.
2223 * gdb-events.sh (XMALLOC): Delete macro.
2224 * gdb-events.c, gdb-events.h: Regenerate.
2225 * gdbarch.sh (XMALLOC): Delete macro.
2226 * gdbarch.c: Regenerate.
2227 * serial.c (XMALLOC): Delete macro.
2228 * ui-file.c (XMALLOC): Ditto.
2229 * ser-unix.h (XMALLOC): Ditto.
2230 * sh-tdep.c (XMALLOC): Ditto.
2231 * ui-out.c (XMALLOC): Ditto.
2232 * utils.c (XMALLOC): Ditto.
2233 * i386-tdep.c (XMALLOC): Ditto.
2234 * gdb-events.c (XMALLOC): Ditto.
2235 * d10v-tdep.c (XMALLOC): Ditto.
2236 * cli-out.c (XMALLOC): Ditto.
2237
2238 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
2239 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
2240 * ui-file.c, ui-out.c: Ditto.
2241
7d0766f3
AC
22422002-03-18 Andrew Cagney <ac131313@redhat.com>
2243
2244 * command.h (struct cmd_list_element): Add field context.
2245 (set_cmd_context, get_cmd_context): Declare.
2246 * cli/cli-decode.h: Ditto.
2247 * cli/cli-decode.c (get_cmd_context): New function.
2248 (set_cmd_context): New function.
2249 (add_cmd): Initialize context.
2250 Part of fixing PR gdb/145 and PR gdb/146.
2251
5913bcb0
AC
22522002-03-17 Andrew Cagney <ac131313@redhat.com>
2253
1868c04e
AC
2254 * cli/cli-decode.c (cmd_type): New function.
2255 * command.h (cmd_type): Declare.
2256 * infrun.c (set_schedlock_func): Call function cmd_type.
2257 * kod.c (kod_set_os): Call cmd_type.
2258 * cris-tdep.c (cris_version_update): Use function cmd_type.
2259 (cris_mode_update, cris_abi_update): Ditto.
2260
5913bcb0
AC
2261 * command.h: (execute_cmd_post_hook): Declare.
2262 (execute_cmd_pre_hook): Declare.
2263 * cli/cli-script.c (clear_hook_in_cleanup): New function.
2264 (execute_cmd_post_hook, execute_cmd_pre_hook): New
2265 functions. Execute pre/post hook while ensuring that afterwords
2266 hook_in is cleared.
2267 * top.c (execute_command): Use execute_cmd_post_hook, and
2268 execute_cmd_pre_hook to execute pre/post commands.
2269 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
2270 hook_stop_stub.
2271 (hook_stop_stub): Call execute_cmd_pre_hook.
2272
b51450c9
AC
22732002-03-17 Andrew Cagney <ac131313@redhat.com>
2274
2275 * kod.c (kod_set_os): Revert previous change. Is called by ``info
2276 set'' and this leads to a core dump. Move xstrdup of
2277 operating_system to after check that it is not NULL.
2278
f66c9f11
AC
22792002-03-17 Andrew Cagney <ac131313@redhat.com>
2280
8e694ecf
AC
2281 * kod.c (kod_set_os): Remove unnecessary check that
2282 ``command->type'' is set_cmd.
2283
f66c9f11
AC
2284 * valprint.c (set_input_radix): Use input_radix.
2285 (set_output_radix): Use output_radix.
2286 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
2287 isn't reverted.
2288
9d01611c
AC
22892002-03-16 Andrew Cagney <ac131313@redhat.com>
2290
2291 * value.h (struct value): Delete field ``substring_addr''. Change
2292 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
2293 force_core_addr_align and force_pointer_aligh.
2294
2295 * value.h (struct value): Fix typo in above change.
9d01611c 2296
4156bb53
PS
22972002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2298
2299 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
2300 to fix internal_error from ``maintenance print architecture''.
2301
0e5e3ea6
PS
23022002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2303
2304 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
2305 for gcc versions after gcc-2.8.1.
2306
9b013045
PS
23072002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2308
2309 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
2310 for method resolution. Restore adjustment of ``this'' pointer after
2311 calling value_struct_elt, which was accidentally removed during the
2312 HP merge.
2313
376c9600
AC
23142002-03-15 Andrew Cagney <ac131313@redhat.com>
2315
2316 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
2317 value_of_register.
2318 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
2319 get_saved_register.
2320 * value.h (value_of_register): Update.
2321
a4db0f07
RH
23222002-03-14 Richard Henderson <rth@redhat.com>
2323
2324 * configure.in: Detect declaration for canonicalize_file_name.
2325 * utils.c (canonicalize_file_name): Declare, if needed.
2326 (gdb_realpath): Prefer realpath if available and usable.
2327 * config.in, configure: Rebuild.
2328
96383835
RH
23292002-03-14 Richard Henderson <rth@redhat.com>
2330
2331 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
2332 a constant array bound.
2333
2334 * MAINTAINERS: Add myself to write-after-approval.
2335
75245b24
MS
23362002-03-14 Michael Snyder <msnyder@redhat.com>
2337
2338 * symfile.c (syms_from_objfile): Return immediately if no syms.
2339 (symbol_file_add): Return immediately if no syms.
2340 (find_sym_fns): Return immediately if no syms.
2341
e641a1ca
ML
23422002-03-13 Michal Ludvig <mludvig@suse.cz>
2343
2344 * gdbserver/remote-util.c (remote_open): Print remote-side's
2345 IP address when remote debugging over the network.
7e336ba1 2346
df08bfec
DB
23472002-03-12 David O'Brien <obrien@FreeBSD.org>
2348
2349 * config/sparc/fbsd.mh: Fix copyright.
2350 * config/sparc/fbsd.mt: Likewise.
2351
9a57864f
RE
23522002-03-11 Richard Earnshaw <rearnsha@arm.com>
2353
2354 * MAINTAINERS: Fix typo in name of gdb warnings option.
2355 (x86-64): Fix formating so that this can be parsed by awk.
2356
dd7bf85e
DJ
23572002-03-10 Daniel Jacobowitz <drow@mvista.com>
2358
2359 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
2360 * defs.h: Include "gdb/signals.h".
2361 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
2362
33a0a2ac
ML
23632002-03-10 Michal Ludvig <mludvig@suse.cz>
2364
2365 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 2366 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
2367 from x86-64-tdep.h
2368
dd824b04
DJ
23692002-03-10 Daniel Jacobowitz <drow@mvista.com>
2370 Don Howard <dhoward@redhat.com>
2371
2372 * mips-tdep.c (ST0_FR): Define.
2373 (mips2_fp_compat): New function, temporarily disabled.
2374 (mips_read_fp_register_single): New function.
2375 (mips_read_fp_register_double): New function.
2376 (mips_print_register): Use them.
2377 (do_fp_register_row): Likewise.
2378
6a41ff59
AC
23792002-03-09 Andrew Cagney <ac131313@redhat.com>
2380
2381 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
2382 approval''.
2383
4ea09c10
PS
23842002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2385
2386 * stabsread.c (read_member_functions): Fix is_stub test for
2387 static member functions, improve comment.
2388
6ccc741d
RE
23892002-03-07 Richard Earnshaw <rearnsha@arm.com>
2390
2391 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
2392 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
2393 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
2394 commands that set boolean values.
2395 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
2396 (arm_rdi_resume): Always initialize PC.
2397 (arm_rdi_open): Don't use rslt as a boolean.
2398 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
2399 (arm_rdi_fetch_registers, arm_rdi_store_registers)
2400 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
2401 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
2402
438013df
AO
24032002-03-06 Alexandre Oliva <aoliva@redhat.com>
2404
2405 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
2406 * configure: Rebuilt.
2407
70ed8774
SC
24082002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2409
2410 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
2411 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
2412
5ba2abeb
AC
24132002-03-06 Andrew Cagney <ac131313@redhat.com>
2414
2415 * cli/cli-decode.c (set_cmd_completer): New function.
2416 * command.h (set_cmd_completer): Declare.
2417 * cli/cli-decode.h (set_cmd_completer): Ditto.
2418
2419 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
2420 * cli/cli-cmds.c (init_cli_cmds): Ditto.
2421 * win32-nat.c (_initialize_inftarg): Ditto.
2422 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2423 * proc-api.c (_initialize_proc_api): Ditto.
2424 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
2425 * source.c (_initialize_source): Ditto.
2426 * exec.c (_initialize_exec): Ditto.
2427 * solib.c (_initialize_solib): Ditto.
2428 * top.c (init_main): Ditto.
2429 * tracepoint.c (_initialize_tracepoint): Ditto.
2430 * symfile.c (_initialize_symfile): Ditto.
2431 * printcmd.c (_initialize_printcmd): Ditto.
2432 * infcmd.c (_initialize_infcmd): Ditto.
2433 * corefile.c (_initialize_core): Ditto.
2434
f779ca99
AC
24352002-03-05 Andrew Cagney <ac131313@redhat.com>
2436
2437 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
2438
01a3934b
AC
24392002-03-05 Andrew Cagney <ac131313@redhat.com>
2440
2441 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
2442
37057839
AC
24432002-03-05 Andrew Cagney <ac131313@redhat.com>
2444
2445 * NEWS: Update headings, 5.2 has branched.
2446
c6ecbae5
DJ
24472002-03-04 Daniel Jacobowitz <drow@mvista.com>
2448
2449 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
2450 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
2451 (register_addr, REGISTER_RAW_SIZE): Likewise.
2452 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
2453 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
2454
e9f30c21
ML
24552002-03-03 Michal Ludvig <mludvig@suse.cz>
2456
2457 * MAINTAINERS (x86-64): Add myself.
2458 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
2459 changed value_ptr -> struct value *
2460
54394ac3
DB
24612002-03-01 David O'Brien <obrien@FreeBSD.org>
2462
2463 * configure.host (sparc64-*-freebsd): Add.
2464 * configure.tgt: Likewise.
2465 * config/sparc/fbsd.mh: New file.
2466 * config/sparc/fbsd.mt: Likewise.
2467 * config/sparc/nm-fbsd.h: Likewise.
2468 * config/sparc/tm-fbsd.h: Likewise.
2469
bfe95955
DJ
24702002-03-01 Daniel Jacobowitz <drow@mvista.com>
2471
2472 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
2473 regformats/reg-s390x.dat.
2474
f33c6cbf
AC
24752002-03-01 Andrew Cagney <ac131313@redhat.com>
2476
2477 * utils.c: Add FIXME explaining true/false problem.
2478
5ecaa7dd
AC
24792002-02-28 Andrew Cagney <ac131313@redhat.com>
2480
2481 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
2482
2a251cc2
MC
24832002-02-28 Michael Chastain <mec@shout.net>
2484
2485 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
2486
6a8031a3 24872002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
2488
2489 * gdbserver/linux-s390-low.c: New file.
2490 * regformats/reg-s390.dat: New file.
2491 * regformats/reg-s390x.dat: New file.
2492 * gdbserver/configure.srv: Add S/390.
2493 * gdbserver/Makefile.in: Add S/390.
2494 * configure.tgt: Enable gdbserver for S/390.
2495
ac469903
EZ
24962002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
2497
2498 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
2499 first line of the doc string for "info dos", except at the end of
2500 the sentence, since the short help stops at the first period.
2501
985cb1a3
JM
25022002-02-28 Jason Merrill <jason@redhat.com>
2503
2504 * dwarf2read.c (dwarf_cfi_name): Add new codes.
2505
c570663e
FF
25062002-02-27 Fred Fish <fnf@redhat.com>
2507
2508 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
2509 comment (dumy -> dummy).
2510
43630227
PS
25112002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2512
2513 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
2514
b84911e8
RB
25152002-02-27 Rodney Brown <rbrown64@csc.com.au>
2516
2517 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
2518
58caa3dc
DJ
25192002-02-27 Daniel Jacobowitz <drow@mvista.com>
2520
2521 * gdbserver/acconfig.h: New file.
2522 * gdbserver/i387-fp.c: New file.
2523 * gdbserver/i387-fp.h: New file.
2524 * gdbserver/linux-x86-64.c: New file.
2525 * regformats/reg-x86-64.dat: New file.
2526 * configure.tgt: Add x86_64-*-linux* gdbserver support.
2527 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
2528 * gdbserver/configure.in: Add support for regsets.
2529 * gdbserver/config.in: Regenerate.
2530 * gdbserver/configure: Regenerate.
2531 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
2532 * gdbserver/linux-low.h: New file.
2533 * gdbserver/linux-low.c: Include "linux-low.h". Add support
2534 for regsets.
2535 * gdbserver/linux-arm-low.c: Include "linux-low.h".
2536 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
2537 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
2538 * gdbserver/linux-mips-low.c: Include "linux-low.h".
2539 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
2540 * gdbserver/linux-sh-low.c: Include "linux-low.h".
2541 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
2542 "i387-fp.h". Add PTRACE_GETREGS and friends.
2543 * gdbserver/regcache.c (supply_register): New function.
2544 (supply_register_by_name): New function.
2545 (collect_register): New function.
2546 (collect_register_by_name): New function.
2547
93652174
DJ
25482002-02-27 Daniel Jacobowitz <drow@mvista.com>
2549
2550 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
2551 (config.status): Add configure.srv dependency.
2552 (server_h): Add config.h dependency.
2553
a02e4a61
DJ
25542002-02-27 Daniel Jacobowitz <drow@mvista.com>
2555
2556 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
2557 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
2558 * gdbserver/configure.srv: Change i386-*-linux* to use
2559 reg-i386-linux.o.
2560
ce0eebec
AC
25612002-02-26 Andrew Cagney <ac131313@redhat.com>
2562
2563 * x86-64-tdep.c: Re-indent. Update copyright date.
2564
82dbc5f7
AC
25652002-02-26 Andrew Cagney <ac131313@redhat.com>
2566
2567 From Michal Ludvig <mludvig@suse.cz>:
2568 * x86-64-tdep.c (value.h): Delete.
2569 (gdb_assert.h): Include.
2570 (x86_64_register_convert_to_virtual,
2571 x86_64_register_convert_to_raw ): Add check which lets only
2572 floating-point values to be converted.
2573 (value_push): Delete.
2574 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
2575 (i386_gdbarch_init): Number of register_bytes fixed.
2576
e4621584
AC
25772002-02-26 Andrew Cagney <ac131313@redhat.com>
2578
2579 * MAINTAINERS: Add x86-64 target.
2580
81a9a963
AC
25812002-02-26 Andrew Cagney <ac131313@redhat.com>
2582
2583 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
2584 * osfsolib.c (solib_map_sections): Ditto.
2585 * irix5-nat.c (solib_map_sections): Ditto.
2586 * corelow.c (gdb_check_format): Ditto.
2587 * symfile.c (symfile_bfd_open): Ditto.
2588 * solib.c (solib_map_sections): Ditto.
2589 Fix PR gdb/354.
7e336ba1 2590
0f017ab9
AC
25912002-02-26 Andrew Cagney <ac131313@redhat.com>
2592
2593 * remote.c (_initialize_remote): By default, disable ``e'' and
2594 ``E'' step out-of-range packets.
2595
75738c29
AS
25962002-02-26 Andreas Schwab <schwab@suse.de>
2597
2598 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
2599 m68k_linux_frame_saved_pc.
2600 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
2601 in_sigtramp.
2602 (SIGCONTEXT_PC_OFFSET): Remove.
2603 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
2604 m68k_linux_sigtramp_saved_pc): New functions.
2605 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
2606 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
2607 (UCONTEXT_PC_OFFSET): Define.
2608 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
2609 non-RT and RT signal trampolines.
2610
7e8ed687
RE
26112002-02-26 Richard Earnshaw <rearnsha@arm.com>
2612
2613 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
2614 (TARGET_NBPG, STACK_END_ADDR): Delete
2615 (VARIABLES_INSIDE_BLOCK): Delete.
2616
6972bc8b
AC
26172002-02-25 Andrew Cagney <ac131313@redhat.com>
2618
2619 * utils.c (perror_with_name): Make string parameter constant.
2620 (print_sys_errmsg): Ditto.
2621 (query): Ditto.
2622 * defs.h (perror_with_name): Update.
2623 (print_sys_errmsg): Update.
2624 (query): Update.
2625
aa32f823
DJ
26262002-02-25 Daniel Jacobowitz <drow@mvista.com>
2627
2628 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
2629 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
2630
19caaa45
PS
26312002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2632
2633 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
2634 if it already matches the current architecture from the exec file.
2635 Include arch-utils.h for gdbarch_info_init prototype.
2636 * Makefile.in (rs6000-nat.o): Update dependencies.
2637
d951901f
EZ
26382002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
2639
2640 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
2641 list of exported variables.
2642
7ea81414
DJ
26432002-02-24 Daniel Jacobowitz <drow@mvista.com>
2644
2645 * gdbserver/configure.srv: New file.
2646 * gdbserver/configure.in: Use configure.srv instead
2647 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
2648 from it.
2649 * gdbserver/configure: Regenerated.
2650 * gdbserver/terminal.h: New file.
2651 * gdbserver/Makefile.in: Update for configure changes. Remove
2652 more unneeded include paths.
2653
080fe24b
AC
26542002-02-24 Andrew Cagney <ac131313@redhat.com>
2655
2656 From wiz at danbala:
2657 * config/sparc/tm-sp64.h: Fix grammar and typos.
2658 Fix PR gdb/287.
2659
8605d56e
AC
26602002-02-24 Andrew Cagney <ac131313@redhat.com>
2661
2662 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
2663 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
2664 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
2665 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
2666 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
2667 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
2668 * s390-tdep.c: Ditto.
92362027
AC
2669 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
2670 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
2671 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
2672 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
2673 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
2674 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
2675 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
2676 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
2677 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
2678 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 2679 Fix PR gdb/378.
7e336ba1 2680
8ed32cc0
AC
26812002-02-23 Andrew Cagney <ac131313@redhat.com>
2682
a3007b6f
AC
2683 * lin-thread.c: Delete file.
2684 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
2685 to gdb_proc_service.h.
2686 * configure: Re-generate.
2687
50a9e2f1
AC
2688 * ocd.c (ocd_open): Do not try to open the "ocd" device.
2689 * serial.c (serial_open): Delete check for "ocd".
2690 Fix PR gdb/349.
2691
8b6e7932
AC
2692 * Makefile.in (linux-thread.o): Delete target.
2693 * linux-thread.c: Delete file.
2694
d155c46b
AC
2695 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
2696 renamed SH files to be consistent.
2697
8ed32cc0
AC
2698 * symtab.c (sort_search_symbols): Use xfree.
2699
0e18d038
RE
27002002-02-23 Richard Earnshaw <rearnsha@arm.com>
2701
2702 * arm-linux-tdep.c (arm_linux_init_abi): Register
2703 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
2704 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
2705 definition with undef, since we don't want the sysvr4 definition.
2706 (SKIP_TRAMPOLINE_CODE): Likewise.
2707
27aac7ff
AC
27082002-02-23 Andrew Cagney <ac131313@redhat.com>
2709
2710 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
2711
2712 * configure.in: (AC_CHECK_FUNCS) Added test for
2713 canonicalize_file_name Regenerated.
2714 * config.in, configure: Regenerated.
2715 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
2716 defined use canonicalize_file_name.
7e336ba1 2717
65a6e0ee
MC
27182002-02-23 Michael Chastain <mec@shout.net>
2719
2720 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
2721
47b95330
AC
27222002-02-23 Andrew Cagney <ac131313@redhat.com>
2723
2724 * README: Remove references to cygnus.com.
2725 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
2726 dot com'' form. Remove references to cygnus.com and sourceware.
2727
696f451b
AC
27282002-02-23 Andrew Cagney <ac131313@redhat.com>
2729
2730 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
2731 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
2732 1003.1-2001 no longer allows "head -1".
2733 * gdb/Makefile.in (version.c): Likewise.
2734 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
2735 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
2736 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
2737
bbaca940
AC
27382002-02-23 Andrew Cagney <ac131313@redhat.com>
2739
2740 * cli/cli-decode.c (cmd_cfunc_eq): New function.
2741 * command.h (cmd_cfunc_eq): Declare.
2742 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
2743
2744 * cli/cli-cmds.h (is_complete_command): Change parameter to a
2745 ``struct cmd_list_element *''.
2746 * cli/cli-cmds.c (is_complete_command): Update. Use
2747 cmd_cfunc_eq.
2748 * top.c (execute_command): Pass the command to
2749 is_complete_command.
2750 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
2751
b8b8b047
AC
27522002-02-23 Andrew Cagney <ac131313@redhat.com>
2753
2754 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
2755 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
2756 architecture defines.
2757 * s390-tdep.c (s390_gdbarch_init): Likewise.
2758
19d3fc80
RE
27592002-02-23 Richard Earnshaw <rearnsha@arm.com>
2760
2761 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
2762 (arm_linux_push_arguments): Likewise.
2763 (arm_linux_init_abi): Register them. Also register linux-specific
2764 call_dummy_words.
2765 (find_minsym_and_objfile): Use strcmp, not STREQ.
2766 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
2767 (arm_linux_call_dummy_words): Delete declaration.
2768 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
2769 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
2770 declarations.
2771 (LOWEST_PC): Delete.
2772
3ab13650
PS
27732002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2774
2775 * maint.c (print_section_info): Do not prepend `0x' to filepos
2776 output, it will be handled by local_hex_string_custom.
2777
19d3fc80 27782002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
2779
2780 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
2781 (store_newfpe_double, store_newfpe_extended, store_fpregister)
2782 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
2783
d85a5daf
JB
27842002-02-22 Jim Blandy <jimb@redhat.com>
2785
2786 Indicate that the bcache functions don't change the strings
2787 they're passed.
2788 * bcache.h (bcache, hash): Add `const' keywords to declarations.
2789 * bcache.c (bcache, hash): Add `const' keywords to definitions.
2790
eeb25b8a
PM
27912002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
2792
2793 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
2794
6badb179
CF
27952002-02-21 Christopher Faylor <cgf@redhat.com>
2796
2797 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
2798 find the complete path to a loaded DLL.
2799
e8717518
FF
28002002-02-21 Fred Fish <fnf@redhat.com>
2801
2802 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
2803 that marks the end of the range of a function, enter a line number
2804 entry that has a line number of zero and a PC offset that matches
2805 the end of the function. This starts a range of PC's for which no
2806 line number information is known.
2807 * symtab.c (find_pc_sect_line): If our best fit is in a range of
2808 PC's for which no line number info is found (line number is zero)
2809 then we didn't find any valid line information.
2810 * symtab.h: Document use of zero line number entry.
2811
9abe5450
EZ
28122002-02-21 Elena Zannoni <ezannoni@redhat.com>
2813
2814 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
2815 (have_ptrace_getvrregs): Define for run time checks.
2816 (gdb_vrregset_t): New type for Altivec register handling.
2817 (fetch_register, store_register): Fetch/store altivec register
2818 when needed.
2819 (fetch_altivec_register, store_altivec_register): New functions.
2820 (supply_vrregset, fill_vrregset): New functions.
2821 (fetch_altivec_registers, store_altivec_registers): New functions.
2822 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
2823 registers as well.
2824
aaa38bb5
AJ
28252002-02-21 Jiri Smid <smid@suse.cz>
2826
2827 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
2828
b34db576
RE
28292002-02-21 Richard Earnshaw <rearnsha@arm.com>
2830
2831 * Makefile.in (armnbsd-nat.o): Update dependencies.
2832 * armnbsd-nat.c (supply_gregset): New function. Common code to
2833 supply the integer register set.
2834 (supply_fparegset): New function. Similar for FPA registers.
2835 (fetch_regs, fetch_fp_regs): Use them.
2836 (fetch_core_registers): Likewise.
2837 (fetch_elfcore_registers): New function.
2838 (arm_netbsd_elfcore_fns): New core-file type specification.
2839 (_initialize_arm_netbsd_nat): Register it.
2840
3e56fc4b
RE
28412002-02-21 Richard Earnshaw <rearnsha@arm.com>
2842
2843 * armnbsd-nat.c: Include gdbcore.h.
2844 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
2845 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
2846 'void' to declaration, to shut up ARI.
2847 (fetch_core_registers): Make static. Rewrite using supply_register.
2848 (arm_netbsd_core_fns): New core-file type specification.
2849 (_initialize_arm_netbsd_nat): New function.
2850
097f6b0b
CF
28512002-02-21 Christopher Faylor <cgf@redhat.com>
2852
2853 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
2854 value.
2855
c914e0cc
CF
28562002-02-20 Christopher Faylor <cgf@redhat.com>
2857
2858 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
2859 fails.
2860
385fa495
DJ
28612002-02-20 Daniel Jacobowitz <drow@mvista.com>
2862
2863 * jv-exp.y (parse_number): Change type of implicit longs
2864 to builtin_type_uint64.
2865
e5f1222d
DJ
28662002-02-20 Daniel Jacobowitz <drow@mvista.com>
2867
2868 * gdbserver/linux-low.c (mywait): Change argument to waitpid
2869 to be an integer instead of a `union wait'.
2870
75c9abc6
DJ
28712002-02-20 Daniel Jacobowitz <drow@mvista.com>
2872
2873 * mips-linux-nat.c: Call the operating system GNU/Linux.
2874 * mips-linux-tdep.c: Likewise.
2875 * mips-tdep.c: Likewise.
2876
551792a5
DJ
28772002-02-20 Daniel Jacobowitz <drow@mvista.com>
2878
2879 Fix PR gdb/265.
2880 * jv-exp.y (parse_number): Handle 64-bit integers.
2881
ee6e2b82
DJ
28822002-02-20 Daniel Jacobowitz <drow@mvista.com>
2883
2884 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
2885 AC_STDC_HEADERS to AC_HEADER_STDC.
2886 * gdbserver/configure: Regenerated.
2887
a48442a0
RE
28882002-02-20 Richard Earnshaw <rearnsha@arm.com>
2889
2890 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
2891 is defined.
2892 * sparc-tdep.c (get_longjmp_target): Likewise.
2893
fe419ffc
RE
28942002-02-20 Richard Earnshaw <rearnsha@arm.com>
2895
2896 * News: Add news about ARM and Multi-arch. Mention the new target
2897 arm*-*-netbsd*.
2898
5832ed7e
JB
28992002-02-19 Jim Blandy <jimb@redhat.com>
2900
2901 * stabsread.c (error_type_complaint): Improve error message.
2902
84563040
DJ
29032002-02-19 Daniel Jacobowitz <drow@mvista.com>
2904
2905 * gdbserver/README: Update documentation.
2906 * gdbserver/configure.in: Update configury to match documentation.
2907 * gdbserver/Makefile.in: Likewise.
2908 * gdbserver/configure: Regenerated.
2909 * gdbserver/aclocal.m4: New file, generated by aclocal.
2910 * gdbserver/config.in: New file, generated by autoheader.
2911
375fd65b
RE
29122002-02-19 Richard Earnshaw <rearnsha@arm.com>
2913
2914 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
2915 armnbsd-nat.c.
2916
08216dd7
RE
29172002-02-19 Richard Earnshaw <rearnsha@arm.com>
2918
2919 * arm-tdep.h (enum arm_float_model): New enum.
2920 (struct gdbarch_tdep): Add fp_model.
2921 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
2922 up floating-point conversions until we know the floating-point model
2923 in use by the inferior. Don't complain about being unable to
2924 determine the ABI of the inferior when we don't have one.
2925 (arm_extract_return_value): Support different floating-point models.
2926 (arm_store_return_value): Likewise.
aaa38bb5 2927 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
2928 ARM_FLOAT_SOFT.
2929 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
2930
65d6d66a
PS
29312002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2932
2933 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
2934 of ``current_gdbarch''.
2935
47221191
RE
29362002-02-19 Richard Earnshaw <rearnsha@arm.com>
2937
2938 * armnbsd-nat.c : ANSIfy all function declarations.
2939 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
2940 (fetch_inferior_registers): Re-implement in terms of above.
2941 (store_register, store_regs, store_fp_register, store_fp_regs): New.
2942 (store_inferior_registers): Re-implement in terms of above.
2943
fdf39c9a
RE
29442002-02-19 Richard Earnshaw <rearnsha@arm.com>
2945
aaa38bb5 2946 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
2947 kernel.
2948 * arm-linux-tdep.c: Likewise.
2949 * config/arm/tm-linux.h: Likewise.
2950
93247f88
RE
29512002-02-19 Richard Earnshaw <rearnsha@arm.com>
2952
2953 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
2954 * config/arm/nbsd.mt (TM_FILE): Delete.
2955 * config/arm/tm-nbsd.h: Delete.
2956
d7b486e7
RE
29572002-02-19 Richard Earnshaw <rearnsha@arm.com>
2958
2959 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
2960 Initialize CALL_DUMMY_LENGTH.
2961
41d39a95
RE
29622002-02-19 Richard Earnshaw <rearnsha@arm.com>
2963
2964 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
2965 function.
2966 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 2967 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
2968 defines one thing and that is incorrect for this port.
2969 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
2970
e1195560
PM
29712002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2972
2973 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
2974
c1748f97
PM
29752002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2976
2977 * win32-nat.c (display_selector): New function. Displays information
2978 about the information returned by GetThreadSelectorEntry API function.
2979 (display_selectors): New function. Displays the infomation of
2980 the selector given as argument, or of CS, DS ans FS selectors
2981 if no argument is given.
2982 ( _initialize_inftarg): Add "w32" as info prefix command.
2983 Add "info w32 selector" as command calling display_selectors.
2984
e41e6bbf
PM
29852002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
2986
2987 * i386-tdep.c (get_longjmp_target): Fix compilation failure
2988 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
2989 if not defined.
2990
0d3a9f48
RE
29912002-02-18 Richard Earnshaw <rearnsha@arm.com>
2992
2993 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
2994
3fb4b924
RE
29952002-02-18 Richard Earnshaw <rearnsha@arm.com>
2996
2997 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
2998 (arm_fix_call_dummy): Call it.
2999 (arm_call_dummy_breakpoint_offset): Delete.
3000 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
3001 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
3002
7f55af32
AC
30032002-02-18 Andrew Cagney <ac131313@redhat.com>
3004
3005 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
3006 Default to func_frame_chain_valid.
3007 * gdbarch.h, gdbarch.c: Re-generate.
3008 * frame.h (FRAME_CHAIN_VALID): Delete definition.
3009
05f13b9c
EZ
30102002-02-18 Elena Zannoni <ezannoni@redhat.com>
3011
3012 * ppc-linux-nat.c: Update copyright.
3013 (fetch_register, store_register): Add tid parameter, don't compute
3014 tid here.
3015 (fetch_ppc_registers, store_ppc_registers): Add tid
3016 parameter. Pass it along to callees.
3017 (fetch_inferior_registers, store_inferior_registers): Compute tid
3018 here, and pass it to calleed functions.
3019 (fill_gregset, supply_fpregset): Clean up formatting.
3020
d7afb4c9
RE
30212002-02-18 Richard Earnshaw <rearnsha@arm.com>
3022
3023 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
3024 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
3025
9df628e0
RE
30262002-02-18 Richard Earnshaw <rearnsha@arm.com>
3027
3028 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
3029 * gdbarch.c gdbarch.h: Regenerate.
3030 * breakpoint.c (create_longjmp_breakpoint): Always compile this
3031 function.
3032 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
3033 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
3034 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
3035
3036 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
3037 * arm-tdep.c (arm_get_longjmp_target): New function.
3038 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
3039 this to a positive value register arm_get_longjmp_target as the
3040 longjmp handler.
3041 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
3042 (arm_linux_init_abi): Set up longjmp description in tdep.
3043 * armnbsd-nat.c (get_longjmp_target): Delete.
3044 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
3045 description in tdep.
3046 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
3047 (get_longjmp_target): Delete declaration.
3048 (GET_LONGJMP_TARGET): Delete.
3049 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
3050 (GET_LONGJMP_TARGET): Delete.
3051
57bc8964
KB
30522002-02-17 Kevin Buettner <kevinb@redhat.com>
3053
3054 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
3055 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
3056 of ``current_gdbarch''.
3057
83d31a92
TT
30582002-02-17 Tom Tromey <tromey@redhat.com>
3059
3060 * cli/cli-cmds.c (compare_strings): New function.
3061 (complete_command): Only print each unique item once.
3062 * completer.h (complete_line): Declare.
3063 * completer.c (complete_line): New function.
3064 (line_completion_function): Use it.
3065
17ef5d92
AC
30662002-02-16 Andrew Cagney <ac131313@redhat.com>
3067
3068 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
3069 * gdbarch.h, gdbarch.c: Re-generate.
3070
491b8946
DJ
30712002-02-16 Daniel Jacobowitz <drow@mvista.com>
3072
3073 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
3074
30752002-02-16 Daniel Jacobowitz <drow@mvista.com>
3076
3077 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
3078 * valops.c (value_arg_coerce): Don't take the address of a reference
3079 to convert an argument to a reference.
3080
dfe7f3ac
CF
30812002-02-15 Christopher Faylor <cgf@redhat.com>
3082
3083 * win32-nat.c (get_image_name): New function.
3084 (handle_load_dll): Use get_image_name function.
3085 (get_child_debug_event): Avoid registering debug events until possibly
3086 execed process is started.
3087 (child_create_inferior): Allow invocation via shell so that command
3088 line redirection, etc. works ok.
3089 (_initialize_inftarg): Add new command: "set shell" to control whether
3090 a shell is used to start a process.
3091
1d33e73a
DJ
30922002-02-15 Daniel Jacobowitz <drow@mvista.com>
3093
3094 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
3095 instead of find_register_by_number.
3096 (cannot_store_register): Likewise.
3097
48cd0caa
PM
30982002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
3099
aaa38bb5 3100 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
3101 fprintf_unfiltered (gdb_stderr, ...).
3102
8656e7d8
DJ
31032002-02-15 Daniel Jacobowitz <drow@mvista.com>
3104
3105 * gdbserver/gdbserver.1: Document --attach.
3106
66e810cd
RE
31072002-02-15 Richard Earnshaw <rearnsha@arm.com>
3108
3109 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
3110 descriptions.
3111 * arm-tdep.c (arm_default_arm_le_breakpoint)
3112 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
3113 (arm_default_thumb_be_breakpoint): New. Initialize them from
3114 traditional breakpoint defines.
3115 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
3116 (arm_gdbarch_init): Initialize new breakpoint variables.
3117 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
3118 (arm_linux_init_abi): Initialize linux-specific breakpoint.
3119 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
3120 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
3121 code out to ...
3122 (arm_netbsd_init_abi_common): ... here; new function.
3123 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
3124 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
3125 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
3126 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
3127
97e03143
RE
31282002-02-15 Richard Earnshaw <rearnsha@arm.com>
3129
3130 * arm-tdep.h (enum arm_abi): New enum.
3131 (struct gdbarch_tdep): New structure.
3132 (LOWEST_PC): Provide a default.
3133 (arm_gdbarch_register_os_abi): Declare new function.
3134 * arm-tdep.c (arm_abi_names): New array.
3135 (process_note_abi_tag_sections): New function.
3136 (get_elfosabi): New function.
3137 (arm_gdbarch_register_os_abi): New function.
3138 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
3139 support for that ABI has been built in, then call the appropriate
3140 configuration routine. Use gdbarch_num_regs() to get the number
3141 of registers.
3142 (arm_dump_tdep): New function.
3143 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
3144 place-holder functions.
3145 (_initialize_arm_tdep): Register them.
3146 * config/arm/tm-arm.h (LOWEST_PC): Delete.
3147
3148 * armnbsd-tdep.c: New file.
3149 * Makefile.in (armnbsd-tdep.o): Add dependencies.
3150 * config/arm/nbsd.mt (TDEPFILES): Add it.
3151 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
3152
3153 * armnbsd-nat.c: Include regcache.h.
3154 * Makefile.in (armnbsd-nat.o): Update dependency list.
3155
3156 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
3157
ad68be46
DJ
31582002-02-14 Daniel Jacobowitz <drow@mvista.com>
3159
3160 * gdbserver/Makefile.in: Fix typos in target rules.
3161
003d6d1d
DJ
31622002-02-14 Daniel Jacobowitz <drow@mvista.com>
3163
aaa38bb5 3164 Fix part of PR gdb/267.
003d6d1d
DJ
3165 * linespec.c (find_methods): Handle constructors specially for now.
3166
6b230f1b
CV
31672002-02-14 Corinna Vinschen <vinschen@redhat.com>
3168
3169 * arm-tdep.c (arm_push_arguments): Eliminate special float type
3170 handling.
3171 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
3172 standard_coerce_float_to_double().
3173
1ea98d12
CF
31742002-02-14 Christopher Faylor <cgf@redhat.com>
3175
3176 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
3177 GDBINIT_FILENAME.
3178
dd47e6fd
EZ
31792002-02-14 Elena Zannoni <ezannoni@redhat.com>
3180
3181 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
3182 find_variant_by_name, because it confuses the multiarch
3183 framework. Return NULL if there isn't an architecture with the
3184 user supplied name, instead of forcing a different one without
3185 recording the change with the multiarch machinery.
3186 (find_variant_by_name): Delete.
3187
d7e39b9e
PS
31882002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3189
3190 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
3191 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
3192
76e42a4f
MH
31932002-02-13 Martin M. Hunt <hunt@redhat.com>
3194
aaa38bb5 3195 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
3196 print_frame_info_listing_hook, set current_source_symtab.
3197
0a30fbc4
DJ
31982002-02-14 Daniel Jacobowitz <drow@mvista.com>
3199
3200 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
3201 and remove unused $(INCLUDE_DIR).
3202 Add regcache.c to OBS.
3203 Add generated register protocol files to clean target.
3204 Update dependencies for new objects, obsolete old target code.
3205
3206 * gdbserver/linux-low.c: Remove all platform-specific code to
3207 new files. Remove various dead code. Update to use regcache
3208 functionality.
3209 * gdbserver/remote-utils.c (fromhex): Add return statement
3210 to quiet warning.
3211 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
3212 constant.
3213 (input_interrupt): Add integer parameter to match prototype
3214 of a signal handler.
3215 (outreg): Use register_data ().
3216 (prepare_resume_reply): Use gdbserver_expedite_regs.
3217 * gdbserver/server.c (main): Dynamically allocate own_buf because
3218 PBUFSIZ is no longer constant. Use registers_to_string () and
3219 registers_from_string ().
3220 * gdbserver/server.h: No longer include "defs.h". Add prototypes
3221 for error (), fatal (), and warning (). Update definition of
3222 PBUFSIZ to use regcache functionality. Add include guard.
3223 * gdbserver/utils.c (fatal): Add missing ``const''.
3224 (warning): New function.
3225
3226 * regformats/regdat.sh: Include "regcache.h" in generated files.
3227 Provide init_registers () function.
3228 * regformats/regdef.h: Add prototype for set_register_cache ().
3229 Add include guard.
3230
3231 * gdbserver/linux-arm-low.c: New file.
3232 * gdbserver/linux-i386-low.c: New file.
3233 * gdbserver/linux-ia64-low.c: New file.
3234 * gdbserver/linux-m68k-low.c: New file.
3235 * gdbserver/linux-mips-low.c: New file.
3236 * gdbserver/linux-ppc-low.c: New file.
3237 * gdbserver/linux-sh-low.c: New file.
3238
3239 * gdbserver/regcache.c: New file.
3240 * gdbserver/regcache.h: New file.
3241
3242 * gdbserver/low-linux.c: Removed obsolete file.
3243
4cc841d0
DJ
32442002-02-14 Daniel Jacobowitz <drow@mvista.com>
3245
3246 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
3247 * config/i386/linux.mt: Likewise.
3248 * config/ia64/linux.mt: Likewise.
3249 * config/m68k/linux.mh: Likewise.
3250 * config/powerpc/linux.mh: Likewise.
3251 * config/mips/linux.mt: Likewise.
3252
3253 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
3254
3255 * config/i386/i386lynx.mh: Mark gdbserver variables
3256 as (currently) obsolete for this target.
3257 * config/i386/nbsd.mt: Likewise.
3258 * config/i386/nbsdelf.mt: Likewise.
3259 * config/m32r/m32r.mt: Likewise.
3260 * config/m68k/m68klynx.mh: Likewise.
3261 * config/m68k/nbsd.mt: Likewise.
3262 * config/m68k/sun3os4.mh: Likewise.
3263 * config/mips/vr5000.mt: Likewise.
3264 * config/ns32k/nbsd.mt: Likewise.
3265 * config/pa/hppabsd.mh: Likewise.
3266 * config/pa/hppaosf.mh: Likewise.
3267 * config/powerpc/nbsd.mt: Likewise.
3268 * config/rs6000/rs6000lynx.mh: Likewise.
3269 * config/s390/s390.mt: Likewise.
3270 * config/s390/s390x.mt: Likewise.
3271 * config/sparc/sparclynx.mh: Likewise.
3272 * config/sparc/sun4os4.mh: Likewise.
3273 * config/i386/x86-64linux.mt: Likewise.
3274 * config/sparc/linux.mh: Likewise.
3275
a85f51e7
DJ
32762002-02-14 Daniel Jacobowitz <drow@mvista.com>
3277
3278 * configure.tgt: Configure gdbserver only for known working
3279 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
3280 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
3281 SUBDIRS if it is configured. Update comment for ${nativefile}.
3282 * configure: Regenerated.
3283
65554fef
MS
32842002-02-13 Michael Snyder <msnyder@redhat.com>
3285
670a52db
MS
3286 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
3287
6dbdc4a3
MS
3288 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
3289 (default_gcore_mach): Just return 0, work around a problem in bfd.
3290 (default_gcore_target): OK to return NULL if exec_bfd is null.
3291 (make_mem_sec): Use a cast, avoid a warning.
3292
3293 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 3294 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
3295 sizeof (host pointer) != sizeof (target pointer)).
3296 (procfs_make_note_section): Avoid overflow in psargs string.
3297
aaa38bb5 3298 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
3299 implementation return an error.
3300
33012002-02-13 Rodney Brown <rbrown64@csc.com.au>
3302
3303 * procfs.c (procfs_make_note_section): Provide a default definition
3304 (for alpha-dec-osf4.0f). Fix typos.
3305
1e4d76e7
EZ
33062002-02-13 Elena Zannoni <ezannoni@redhat.com>
3307
3308 * linux-proc.c: Add include of regcache.h.
3309 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
3310
b6d1a1d5
AC
33112002-02-13 Andrew Cagney <ac131313@redhat.com>
3312
3313 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
3314 * memattr.c (create_mem_region): Disallow useless empty region.
3315 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 3316 non-overlapping.
b6d1a1d5 3317
6c6ea35e
MC
33182002-02-13 Michael Chastain <mec@shout.net>
3319
3320 * defs.h: Kill CONST_PTR.
3321 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
3322 * c-lang.c (c_builtin_types): Likewise.
3323 * ch-lang.c (ch_builtin_types): Likewise.
3324 * f-lang.c (f_builtin_types): Likewise.
3325 * language.c (unknown_builtin_types): Likewise.
3326 * m2-lang.c (m2_builtin_types): Likewise.
3327 * p-lang.c (pascal_builtin_types): Likewise.
3328 * scm-lang.c (c_builtin_types): Likewise.
3329
3e0b0f48
KS
33302002-02-13 Keith Seitz <keiths@redhat.com>
3331
3332 * arm-tdep.h (arm_get_next_pc): Add declaration.
3333
67255d04
RE
33342002-02-13 Richard Earnshaw <rearnsha@arm.com>
3335
3336 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
3337 with other related struct-returning functions.
3338 (arm_extract_struct_value_address): New function.
3339 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
3340 initialize float_format, double_format and long_double_format as
3341 appropriate to the endianness of the target.
3342 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
3343 (arm_use_struct_convention): Delete declaration.
3344 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3345
079777f6
KS
33462002-02-13 Keith Seitz <keiths@redhat.com>
3347
3348 * defs.h (core_addr_to_string_nz): New function.
3349
34588f23
MK
33502002-02-13 Mark Kettenis <kettenis@gnu.org>
3351
3352 Apply missing bits of 2002-01-15 patch.
3353 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
3354 (fill_fpregset): Use i387_fill_fsave.
3355
49b563f9
KS
33562002-02-12 Keith Seitz <keiths@redhat.com>
3357
49b563f9
KS
3358 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
3359 (core_addr_to_string_nz): New function.
3360
aeb98c60
RE
33612002-02-11 Richard Earnshaw <rearnsha@arm.com>
3362
3363 * arm-linux-nat.c: Really include arm-tdep.h.
3364 * config/arm/tm-linux.h (struct type, struct value): Declare.
3365
65554fef
MS
33662002-02-11 Michael Snyder <msnyder@redhat.com>
3367
3368 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
3369 (gcore section): Ifdef for Solaris and Unixware only.
3370 (procfs_do_thread_registers): Unixware needs one lwpstatus
3371 per thread (not one prstatus or pstatus).
3372 (procfs_make_note_section): Iterate only over kernel threads (lwps),
3373 not over all gdb threads. For unixware, call elfcore_write_pstatus
3374 once before iterating over threads.
3375
34e8f22d
RE
33762002-02-11 Richard Earnshaw <rearnsha@arm.com>
3377
3378 * arm-tdep.h: New file.
3379 * arm-tdep.c: Include arm-tdep.h.
3380 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
3381 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
3382 (arm_print_float_info, arm_register_type, convert_to_extended)
3383 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
3384 (arm_extract_return_value, arm_register_name): Make static.
3385 (arm_software_single_step): Similarly. Fix types in declaration.
3386 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
3387 (arm_store_return_value, arm_store_struct_return): New functions.
3388 (arm_gdbarch_init): Register the above functions. Also register
3389 call_dummy_start_offset, sizeof_call_dummy_words,
3390 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
3391 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 3392 max_register_virtual_size, register_size. Set up
34e8f22d
RE
3393 prologue_cache.saved_regs here, rather than ...
3394 (_initialize_arm_tdep): ... here.
3395 * config/arm/tm-arm.h (struct type, struct value): Delete forward
3396 declarations.
3397 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
3398 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
3399 (arm_print_float_info, arm_register_type, convert_to_extended)
3400 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
3401 (arm_extract_return_value, arm_register_name): Delete declarations.
3402 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
3403 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
3404 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
3405 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
3406 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3407 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
3408 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
3409 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
3410 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
3411 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
3412 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
3413 (arm_get_next_pc): No-longer static -- these are needed by the RDI
3414 interface.
3415 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
3416 * remote-rdi.c remote-rdp.c: Likewise.
3417 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
3418 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
3419 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
3420 definition.
3421
3422 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
3423 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
3424 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
3425 from non-ARM_ prefixed definitions.
3426 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
3427 all uses of above.
3428 * remote-rdi.c remote-rdp.c: Likewise.
3429 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
3430
148754e5
RE
34312002-02-11 Richard Earnshaw <rearnsha@arm.com>
3432
3433 * arm-tdep.c (arm_frameless_function_invocation)
3434 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
3435 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
3436 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
3437 (arm_pop_frame, arm_get_next_pc): Make static.
3438 (arm_gdbarch_init): Register above in gdbarch structure.
3439 (arm_read_fp): Renamed from arm_target_read_fp.
3440 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
3441 * config/arm/tm-arm.h (arm_frameless_function_invocation)
3442 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
3443 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
3444 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
3445 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
3446 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
3447 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
3448 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
3449 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
3450 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 3451
434d2d4f
DJ
34522002-02-10 Daniel Jacobowitz <drow@mvista.com>
3453
3454 * symtab.c (compare_search_syms): New function.
3455 (sort_search_symbols): New function.
3456 (search_symbols): Sort symbols after searching rather than
3457 before.
3458
55241689
AC
34592002-02-10 Andrew Cagney <ac131313@redhat.com>
3460
3461 * NEWS: Linux -> GNU/Linux.
3462
028c194b
AC
34632002-02-10 Andrew Cagney <ac131313@redhat.com>
3464
3465 * gdbarch.sh: For for level one methods, disallow a definition
3466 when partially multi-arched. Add comments explaining rationale.
3467 * gdbarch.h: Re-generate.
3468
6acf50cd
AC
34692002-02-10 Andrew Cagney <ac131313@redhat.com>
3470
3471 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
3472 multi-arch partial.
aaa38bb5 3473
50248794
AC
34742002-02-10 Andrew Cagney <ac131313@redhat.com>
3475
3476 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
3477 field. Use diff -u.
3478 * gdbarch.c: Re-generate.
3479
c30e0066
AC
34802002-02-10 Andrew Cagney <ac131313@redhat.com>
3481
9b56c5f3 3482 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
3483 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
3484 partial.
3485
6e6d6484
AC
34862002-02-10 Andrew Cagney <ac131313@redhat.com>
3487
3488 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
3489 multi-arch partial.
3490 (PUSH_ARGUMENTS): Switch to using predefault.
3491 * gdbarch.c: Regenerate.
3492
c203844d
AC
34932002-02-10 Andrew Cagney <ac131313@redhat.com>
3494
3495 * valops.c (PUSH_ARGUMENTS): Delete definition.
3496 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
3497 partial. Default to default_push_arguments.
3498 * gdbarch.h, gdbarch.c: Regenerate.
3499
b5a2688f
AC
35002002-02-09 Andrew Cagney <ac131313@redhat.com>
3501
3502 * defs.h (throw_exception): Rename return_to_top_level. Update
3503 comments.
3504 * utils.c (error_stream, internal_verror, quit): Ditto.
3505 * top.c (throw_exception, catcher): Ditto.
3506 * sparclet-rom.c (sparclet_load): Ditto.
3507 * remote.c (interrupt_query, minitelnet): Ditto.
3508 * remote-sds.c (interrupt_query): Ditto.
3509 * remote-mips.c (mips_error, mips_kill): Ditto.
3510 * ocd.c (interrupt_query): Ditto.
3511 * monitor.c (monitor_interrupt_query): Ditto.
3512 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
3513 * target.h: Update comment.
aaa38bb5 3514
b5a2688f 3515 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 3516
2fa5c1e0
AC
35172002-02-09 Andrew Cagney <ac131313@redhat.com>
3518
3519 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
3520 default_double_format.
3521 * gdbarch.h, gdbarch.c: Re-generate.
3522 * findvar.c (floatformat_unknown): Delete variable definition.
3523 * doublest.h (floatformat_unknown): Delete variable declaration.
3524
da966255
JB
35252002-02-09 Jim Blandy <jimb@redhat.com>
3526
3527 * stabsread.c (read_type): Add code to parse Sun's syntax for
3528 prototyped function types.
3529
123a4891
AC
35302002-02-09 Andrew Cagney <ac131313@redhat.com>
3531
3532 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
3533 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
3534
fb39c8f3
PS
35352002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3536
3537 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
3538 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
3539 now _initialize_xcoffsolib gets called again and overrides the
3540 commands from solib.c in a native configuration.
3541
0b87a11d
MK
35422002-02-09 Mark Kettenis <kettenis@gnu.org>
3543
3544 * doublest.c (store_typed_floating): Don't try to return a value.
3545 Fixes PR gdb/290.
3546
bdc2fc72
JB
35472002-02-08 Jim Blandy <jimb@redhat.com>
3548
3549 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
3550 is prototyped and has no arguments, print its argument list as
3551 `(void)'.
3552
da69bbcf
CD
35532002-02-08 Chris Demetriou <cgd@broadcom.com>
3554
3555 * MAINTAINERS (write-after-approval): Add myself.
3556 (paper-trail): I've escaped!
aaa38bb5 3557
b69571f5
CF
35582002-02-08 Christopher Faylor <cgf@redhat.com>
3559
3560 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
3561 changes.
3562 (_initialize_check_for_gdb_ini): Ditto.
3563
f6871398
MH
35642002-02-08 Martin M. Hunt <hunt@redhat.com>
3565
3566 * win32-nat.c (cygwin_pid_to_str): Fix typo.
3567 xaprintf -> xasprintf.
3568
4e52d31c
PM
35692002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
3570
3571 * win32-nat.c: Remove use of printf and sprintf functions.
3572
39bbf761
RE
35732002-02-08 Richard Earnshaw <rearnsha@arm.com>
3574
3575 * arm-tdep.c (arm_frame_chain_valid): Make static.
3576 (arm_push_arguments): Likewise.
3577 (arm_gdbarch_init): New function.
3578 (_initialize_arm_tdep): Call it.
3579 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
3580 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
3581 (FRAME_CHAIN_VALID): Delete.
3582 (arm_frame_chain_valid): Delete declaration.
3583 (PUSH_ARGUMENTS): Delete.
3584 (arm_push_arguments): Delete declaration.
3585 (CALL_DUMMY_P): Delete.
3586
9c9532c9
CV
35872002-02-08 Andrew Cagney <ac131313@redhat.com>
3588 Corinna Vinschen <vinschen@redhat.com>
3589
3590 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
3591 on builtin float types.
3592
4e8f7a8b
DJ
35932002-02-08 Daniel Jacobowitz <drow@mvista.com>
3594
3595 * utils.c: Include <curses.h> before "bfd.h".
3596 * tui/tui-hooks.c: Likewise.
3597 * tui/tui.c: Likewise.
3598 * tui/tuiCommand.c: Likewise.
3599 * tui/tuiData.c: Likewise.
3600 * tui/tuiDataWin.c: Likewise.
3601 * tui/tuiDisassem.c: Likewise.
3602 * tui/tuiGeneralWin.c: Likewise.
3603 * tui/tuiIO.c: Likewise.
3604 * tui/tuiLayout.c: Likewise.
3605 * tui/tuiRegs.c: Likewise.
3606 * tui/tuiSource.c: Likewise.
3607 * tui/tuiSourceWin.c: Likewise.
3608 * tui/tuiStack.c: Likewise.
3609 * tui/tuiWin.c: Likewise.
3610
cd4bffcf
EZ
36112002-02-07 Elena Zannoni <ezannoni@redhat.com>
3612
3613 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
3614 to include space for pseudoregs as well. Update loops accordingly.
3615 (sh_fp_frame_init_saved_regs): Ditto.
3616 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
3617
26806ce2
AC
36182002-02-07 Andrew Cagney <ac131313@redhat.com>
3619
3620 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
3621 Add Richard Earnshaw to Arm maintainers.
3622
97fdab62
AC
36232002-02-07 Andrew Cagney <ac131313@redhat.com>
3624
a6b98203
AC
3625 * defs.h (warning_begin): Delete declaration.
3626
97fdab62
AC
3627 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
3628 Delete macro.
3629
78b29b40
MS
36302002-02-07 Michael Snyder <msnyder@redhat.com>
3631
aaa38bb5 3632 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
3633 Logic bug, remove misplaced else.
3634
d8849953
KD
36352002-02-07 Klee Dienes <klee@apple.com>
3636
3637 * fork-inferior.c (fork_inferior): Add '!' to the list of
3638 characters that need to be quoted when building a string for the
3639 shell. Quote '!' specifically with a backslash, since CSH chokes
3640 when trying to evaluate "str!str".
aaa38bb5 3641
095778a0
NC
36422002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
3643
3644 * rdi-share/host.h: Only provide a typedef for bool if it is not
3645 defined.
3646
1900040c
MS
36472002-02-04 Michael Snyder <msnyder@redhat.com>
3648
3649 * breakpoint.h (enum bptype): Add new overlay event bp type.
3650 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 3651
1900040c
MS
3652 * breakpoint.c (create_internal_breakpoint): New function.
3653 (internal_breakpoint_number): Moved into create_internal_breakpoint.
3654 (create_longjmp_breakpoint): Use create_internal_breakpoint.
3655 (create_thread_event_breakpoint): Ditto.
3656 (create_solib_event_breakpoint): Ditto.
3657 (create_overlay_event_breakpoint): New function.
3658 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
3659 (update_breakpoints_after_exec): Delete and re-initialize
3660 overlay event breakpoints after an exec. Add FIXME comment
3661 about longjmp breakpoint.
3662 (print_it_typical): Ignore overlay event breakpoints.
3663 (print_one_breakpoint): Ditto.
3664 (mention): Ditto.
3665 (bpstat_what): Do not stop for overlay event breakpoints.
3666 (delete_breakpoint): Don't delete overlay event breakpoints.
3667 (breakpoint_re_set_one): Delete the overlay event breakpoint.
3668 (breakpoint_re_set): Re-create overlay event breakpoint.
3669
3670 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
3671 (overlay_manual_command): Disable overlay breakpoints.
3672 (overlay_off_command): Disable overlay breakpoints.
3673
082fc60d
RE
36742002-02-06 Richard Earnshaw <rearnsha@arm.com>
3675
3676 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
3677 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
3678 to here from config/tm-arm.h.
3679 (coff_sym_is_thumb): Make static.
3680 (arm_elf_make_msymbol_special): New function.
3681 (arm_coff_make_msymbol_special): New function.
3682 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
3683 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
3684 (coff_sym_is_thumb): Delete declaration.
3685 (arm_elf_make_msymbol_special): Declare.
3686 (arm_coff_make_msymbol_special): Declare.
3687 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
3688 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
3689
039c5766
RE
36902002-02-06 Richard Earnshaw <rearnsha@arm.com>
3691
3692 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
3693
36942002-02-06 Richard Earnshaw <rearnsha@arm.com>
3695
3696 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
3697 * gdbarch.c gdbarch.h: Regenerate.
3698 * arch-utils.c (default_print_float_info): New function.
3699 * arch-utils.h (default_print_float_info): Prototype it.
3700 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
3701 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
3702 (PRINT_FLOAT_INFO): Document it.
3703
3704 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
3705 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
3706 (PRINT_FLOAT_INFO): Define.
3707
58fa08f0
PM
37082002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
3709
aaa38bb5 3710 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
3711 Add typecast to sprintf argument to suppress a warning.
3712
7393af7c
PM
37132002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
3714
58fa08f0 3715 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
3716 to allow easier handling of pass state.
3717 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
3718 that gives exception name and address.
3719 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 3720 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 3721 exceptions added.
aaa38bb5
AJ
3722 (child_continue): Correctly report continue_status.
3723 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 3724 TARGET_SIGNAL_0 (new default value).
aaa38bb5 3725 (child_resume): consider sig argument passed to decide if
7393af7c
PM
3726 the exception should be passed to debuggee or not.
3727
6af4589c
MS
37282002-02-05 Michael Snyder <msnyder@redhat.com>
3729
3730 * regcache.c (fetch_register): Call target_fetch_register
3731 only if we don't call FETCH_PSEUDO_REGISTER.
3732 (store_register): Call target_store_register only if we
3733 don't call STORE_PSEUDO_REGISTER.
3734
a2cf933a
EZ
37352002-02-05 Elena Zannoni <ezannoni@redhat.com>
3736
3737 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
3738 ELF_MAKE_MSYMBOL_SPECIAL.
3739 * gdbarch.c, gdbarch.h: Regenerate.
3740 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 3741 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
3742 * elfread.c (elf_symtab_read): Compile use of
3743 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
3744 multiarched.
3745 * coffread.c (coff_symtab_read): Ditto, for
3746 COFF_MAKE_MSYMBOL_SPECIAL.
3747
6bb7be43
JB
37482002-02-05 Jim Blandy <jimb@redhat.com>
3749
3750 * solib-svr4.c (svr4_truncate_ptr): New function.
3751 (svr4_relocate_section_addresses): Do the address arithmetic with
3752 the appropriate truncation for target addresses, even when
3753 CORE_ADDR is larger than a target address.
3754
e18651ec
DJ
37552002-02-05 Daniel Jacobowitz <drow@mvista.com>
3756
3757 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
3758 to (int *).
3759
6b2725be
DJ
37602002-02-05 Daniel Jacobowitz <drow@mvista.com>
3761
3762 * gdbserver/linux-low.c (kill_inferior): Remove commented out
3763 code.
3764
fca9e603
DJ
37652002-02-05 Daniel Jacobowitz <drow@mvista.com>
3766
3767 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
3768
6c537a52
DJ
37692002-02-05 Daniel Jacobowitz <drow@mvista.com>
3770
3771 * gdbserver/linux-low.c: Remove unused include files.
3772
d844cde6
DJ
37732002-02-05 Daniel Jacobowitz <drow@mvista.com>
3774
3775 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
3776 (read_inferior_memory): Use it.
3777 (write_inferior_memory): Likewise.
3778
d07c63e7
DJ
37792002-02-05 Daniel Jacobowitz <drow@mvista.com>
3780
3781 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
3782 grubbing through sys_errlist.
3783
da6d8c04
DJ
37842002-02-05 Daniel Jacobowitz <drow@mvista.com>
3785
3786 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
3787
5b421780
PM
37882002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3789 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
3790
9f60d481
AC
37912002-02-04 Andrew Cagney <ac131313@redhat.com>
3792
3793 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
3794 (do_sfunc, set_cmd_sfunc): New functions.
3795
3796 * command.h (struct cmd_list_element): Add field func.
3797 * cli/cli-decode.h (struct cmd_list_element): Ditto.
3798 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
3799 * cli/cli-decode.h: Ditto.
3800
3801 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
3802 (help_all, help_cmd_list): Ditto.
3803 (find_cmd, complete_on_cmdlist): Ditto.
3804 * top.c (execute_command): Ditto.
3805
3806 * cli/cli-setshow.c (do_setshow_command): Call func instead of
3807 function.sfunc.
3808
3809 * infcmd.c (notice_args_read): Fix function signature.
3810
3811 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
3812 * cli/cli-decode.c (add_set_cmd): Ditto.
3813 * utils.c (initialize_utils): Ditto.
3814 * maint.c (_initialize_maint_cmds): Ditto.
3815 * infrun.c (_initialize_infrun): Ditto.
3816 * demangle.c (_initialize_demangler): Ditto.
3817 * remote.c (add_packet_config_cmd): Ditto.
3818 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3819 * cris-tdep.c (_initialize_cris_tdep): Ditto.
3820 * proc-api.c (_initialize_proc_api): Ditto.
3821 * kod.c (_initialize_kod): Ditto.
3822 * valprint.c (_initialize_valprint): Ditto.
3823 * top.c (init_main): Ditto.
3824 * infcmd.c (_initialize_infcmd): Ditto.
3825 * corefile.c (_initialize_core): Ditto.
3826 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3827 * arch-utils.c (initialize_current_architecture): Ditto.
3828 (_initialize_gdbarch_utils): Ditto.
3829 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
3830
3831 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
3832 * wince.c (_initialize_inftarg): Ditto.
3833 * symfile.c (_initialize_symfile): Ditto.
3834 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3835 * language.c (_initialize_language): Ditto.
3836 * arc-tdep.c (_initialize_arc_tdep): Ditto.
3837
f9ba0717
MS
38382002-02-04 Michael Snyder <msnyder@redhat.com>
3839
3840 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
3841
0c74b2a7
DJ
38422002-02-04 Daniel Jacobowitz <drow@mvista.com>
3843
3844 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
3845 Add rules for building the register data files.
3846
c638789f
DJ
38472002-02-04 Daniel Jacobowitz <drow@mvista.com>
3848
3849 * regformats/regdat.sh: Add braces to the definition of
3850 expedite_regs_${arch}.
3851
db253027
DJ
38522002-02-04 Daniel Jacobowitz <drow@mvista.com>
3853
3854 * regformats/regdef.h (struct reg): Add comment describing the
3855 requirements for offset and size fields.
3856
206be19c
AS
38572002-02-04 Andreas Schwab <schwab@suse.de>
3858
3859 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
3860 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
3861
181c1381
RE
38622002-02-04 Richard Earnshaw <rearnsha@arm.com>
3863
3864 * gdbarch.sh (copyright): Update years in generated header.
3865 (SMASH_TEXT_ADDRESS): Add rule.
db253027 3866 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
3867 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
3868 * dbxread.c: Likewise.
3869 * dwarfread.c: Likewise.
3870 * elfread.c: Likewise.
3871 * somread.c: Likewise.
3872
3873 * arm-tdep.c (arm_smash_text_address): New function.
3874 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
3875
fa4ba8da
PM
38762002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3877
3878 Add support for hardware watchpoints on win32 native.
aaa38bb5 3879 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 3880 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 3881 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
3882 of debug registers.
3883 (debug_registers_changed): New variable. Reflects when debug registers
3884 are changed and need to be written to inferior.
aaa38bb5 3885 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
3886 was set, used when new threads are created.
3887 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
3888 i386-nat code.
3889 (thread_rec): Set dr array if id is the thread of current_event .
3890 (child_continue, child_resume): Change the debug registers for all
3891 threads if debug_registers_changed.
3892 (child_add_thread): Change the debug registers if debug_registers_used.
3893 * config/i386/cygwin.mh: Add use of i386-nat.o file.
3894 Link nm.h to new nm-cygwin.h file.
3895 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
3896 of hardware registers.
3897
a73c86fb
AC
38982002-02-03 Andrew Cagney <ac131313@redhat.com>
3899
3900 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
3901 Restore behavour broken by 2002-01-20 Andrew Cagney
3902 <ac131313@redhat.com> IEEE_FLOAT removal.
3903
acf5ed49
DJ
39042002-02-03 Daniel Jacobowitz <drow@mvista.com>
3905
3906 * c-valprint.c (c_val_print): Pass a proper valaddr to
3907 cp_print_class_method.
3908 * valops.c (search_struct_method): If there is only one method
3909 and args is NULL, return that method.
3910
493d28d5
DJ
39112002-02-03 Daniel Jacobowitz <drow@mvista.com>
3912
3913 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
3914 accessing tag_name directly.
3915
7495dfdb
DJ
39162002-02-03 Daniel Jacobowitz <drow@mvista.com>
3917
3918 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
3919 of accessing tag_name directly.
3920
dd6bda65
DJ
39212002-02-03 Daniel Jacobowitz <drow@mvista.com>
3922
3923 PR gdb/280
3924 * gdbtypes.c (replace_type): New function.
3925 * gdbtypes.h (replace_type): Add prototype.
3926 * stabsread.c (read_type): Use replace_type.
3927
88fe217c
RE
39282002-02-03 Richard Earnshaw <rearnsha@arm.com>
3929
3930 * Makefile.in (memattr.o): Add missing dependencies rule.
3931
e5d66720
PS
39322002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3933
3934 * breakpoint.c (break_at_finish_command): Really export.
3935 (break_at_finish_at_depth_command): Ditto.
3936 (tbreak_at_finish_command): Ditto.
3937 * hppa-tdep.c: Include completer.h.
3938 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
3939 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
3940
fffee0be
AC
39412002-02-01 Andrew Cagney <ac131313@redhat.com>
3942
3943 * utils.c (do_write): New function.
3944 (error_stream): Rewrite combining the code from error_begin and
3945 verror.
3946 (verror): Rewrite using error_stream.
3947 (error_begin): Delete function.
3948
255e7dbf
AC
39492002-02-01 Andrew Cagney <ac131313@redhat.com>
3950
3951 * utils.c (error_begin): Make static.
3952 * defs.h (error_begin): Delete declaration.
3953
3954 * linespec.c (cplusplus_error): Replace cplusplus_hint.
3955 (decode_line_1): Use cplusplus_error instead of error_begin,
3956 cplusplus_hint and return_to_top_level.
3957 * coffread.c (coff_symfile_read): Use error instead of error_begin
3958 and return_to_top_level.
3959 * infrun.c (default_skip_permanent_breakpoint): Ditto.
3960
ddfe3c15
AC
39612002-02-01 Andrew Cagney <ac131313@redhat.com>
3962
3963 * language.h (type_error, range_error): Make string parameter
3964 constant.
3965 * language.c (warning_pre_print): Delete extern declaration.
3966 * dwarfread.c (warning_pre_print): Ditto.
3967 * language.c (type_error, range_error): Rewrite to use verror and
3968 vwarning instead of warning_begin.
3969
03ac34d5
MS
39702002-02-01 Michael Snyder <msnyder@redhat.com>
3971
261c4ca2
MS
3972 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
3973 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 3974
e00d1dc8
AC
39752002-02-01 Andrew Cagney <ac131313@redhat.com>
3976
3977 * command.h (NO_FUNCTION): Delete macro.
3978 * cli/cli-decode.h (NO_FUNCTION): Ditto.
3979 * top.c (execute_command): Replace NO_FUNCTION with NULL.
3980 * tracepoint.c (_initialize_tracepoint): Ditto.
3981 * cli/cli-decode.c (add_set_cmd): Ditto.
3982 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 3983
76b79d6e
DJ
39842002-02-01 Daniel Jacobowitz <drow@mvista.com>
3985
3986 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
3987 Update ``this'' pointer when calling virtual functions.
3988
799f9e91
MS
39892002-02-01 Michael Snyder <msnyder@redhat.com>
3990
c7bd442c 3991 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
3992 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
3993
3cf384d4
DJ
39942002-02-01 Daniel Jacobowitz <drow@mvista.com>
3995
3996 * regformats/reg-arm.dat: New file.
3997 * regformats/reg-i386.dat: New file.
3998 * regformats/reg-ia64.dat: New file.
3999 * regformats/reg-m68k.dat: New file.
4000 * regformats/reg-mips.dat: New file.
4001 * regformats/reg-ppc.dat: New file.
4002 * regformats/reg-sh.dat: New file.
4003 * regformats/regdef.h: New file.
4004 * regformats/regdat.sh: New file.
4005
0defa245
RE
40062002-02-01 Richard Earnshaw <reanrsha@arm.com>
4007
4008 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
4009 (arm_frame_args_address, arm_frame_locals_address): New functions.
4010 (arm_frame_num_args): New function.
4011 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
4012 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
4013 (FRMA_NUM_ARGS): Call arm_frame_num_args.
4014
405f26e6
MS
40152002-01-31 Michael Snyder <msnyder@redhat.com>
4016
502fd408
MS
4017 * breakpoint.c (break_at_finish_command): Export.
4018 (break_at_finish_at_depth_command): Export.
4019 (tbreak_at_finish_command): Export.
4020 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
4021 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
4022 "tbreak" commands, which are HPPA specific.
4023
7d35e135
MS
4024 * printcmd.c (disassemble_command): Remove an ancient
4025 artifact of an old merge.
4026
aaa38bb5 4027 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
4028 Define enum constant values for overlay mode.
4029 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
4030 (overlay_is_mapped, overlay_auto_command,
4031 overlay_manual_command): Ditto.
d874f1e2 4032
aaa38bb5
AJ
4033 * breakpoint.c (insert_breakpoints, remove_breakpoint,
4034 breakpoint_here_p, breakpoint_inserted_here_p,
4035 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
4036 describe_other_breakpoints, check_duplicates, clear_command):
4037 Coding standard fixes.
4038
8add0441 4039 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 4040 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
4041 code: check bfd SEC_READONLY flag for section.
4042
e351066e
AC
40432002-01-31 Andrew Cagney <ac131313@redhat.com>
4044
7d35e135 4045 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 4046
8a48e967
DJ
40472002-01-30 Daniel Jacobowitz <drow@mvista.com>
4048
4049 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
4050 data symbols, since we search based on textlow and texthigh.
4051 (find_pc_sect_symtab): Likewise.
4052
f5a96129
AC
40532002-01-30 Andrew Cagney <ac131313@redhat.com>
4054
4055 * defs.h (vwarning): Declare.
f5a96129
AC
4056 * utils.c (vwarning): New function.
4057 (warning): Call vwarning.
4058 (warning_begin): Delete function.
4059
4060 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
4061 the warning message.
4062 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
4063 warning_begin.
4064
cefd4ef5
MS
40652002-01-30 Michael Snyder <msnyder@redhat.com>
4066
1a703748
MS
4067 * NEWS: Mention "set trust-readonly-sections" command.
4068 Mention generate-core-file command.
cefd4ef5 4069
3a11626d
MS
40702002-01-15 Michael Snyder <msnyder@redhat.com>
4071
4072 * target.c: New command, "set trust-readonly-sections on".
4073 (do_xfer_memory): Honor the suggestion to trust readonly sections
4074 by reading them from the object file instead of from the target.
4075 (initialize_targets): Register command "set trust-readonly-sections".
4076
d1c7e53b
AC
40772002-01-29 Andrew Cagney <ac131313@redhat.com>
4078
4079 * parse.c (target_map_name_to_register): Simplify, search regs and
4080 pseudo-regs using a single loop.
4081
e2c9a72c
AC
40822002-01-30 Andrew Cagney <ac131313@redhat.com>
4083
4084 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
4085
69824b4e
MK
40862002-01-15 Rodney Brown <rbrown64@csc.com.au>
4087
4088 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
4089 * config/i386/i386v42mp.mh: Add i387-nat.o .
4090 * i386v4-nat.c: Include i387-nat.h.
4091 (supply_fpregset): Use i387_supply_fsave.
4092 (fill_fpregset): Use i387_fill_fsave.
4093
6eb69eab
RE
40942002-01-30 Richard Earnshaw <rearnsha@arm.com>
4095
4096 * arm-tdep.c (arm_call_dummy_words): Define.
4097 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
4098 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
4099 (CALL_DUMMY_WORDS): Define.
4100 (arm_call_dummy_words): Declare.
4101 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
4102 (arm_linux_call_dummy_words): Declare.
4103
9852326a
AS
41042002-01-30 Andreas Schwab <schwab@suse.de>
4105
4106 * m68klinux-nat.c: Fix last change to use regcache_collect
4107 instead of referencing registers[] directly.
4108
977a3030
AC
41092002-01-29 Andrew Cagney <ac131313@redhat.com>
4110
4111 * parse.c (target_map_name_to_register): Delete code wrapped in
4112 #ifdef REGISTER_NAME_ALIAS_HOOK.
4113
2076c72b
MS
41142002-01-28 Michael Snyder <msnyder@redhat.com>
4115
4116 * regcache.c (legacy_read_register_gen): Need to be able to
4117 read pseudo-register as well as real register.
4118 (legacy_write_register_gen): Ditto.
4119
8fcc723b
AC
41202002-01-28 Andrew Cagney <ac131313@redhat.com>
4121
4122 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
4123 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
4124 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
4125 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
4126 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
4127 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
4128 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
4129 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
4130 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
4131 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
4132 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
4133 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
4134 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
4135 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
4136 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
4137 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
4138 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
4139 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
4140 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
4141 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
4142
afe64c1a
AC
41432002-01-28 Andrew Cagney <ac131313@redhat.com>
4144
4145 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
4146 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
4147 (initialize_current_architecture): Update target_byte_order using
4148 information from BFD.
aaa38bb5 4149 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
4150 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
4151
75bc7ddf
AC
41522002-01-28 Andrew Cagney <ac131313@redhat.com>
4153
4154 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
4155 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
4156
4157 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
4158 #ifdef INVALID_FLOAT.
4159 * infcmd.c (do_registers_info): Ditto.
4160 * values.c (unpack_double): Ditto. Add comment.
4161
4162 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
4163 already commented out.
4164
0280a90a
AS
41652002-01-26 Andreas Schwab <schwab@suse.de>
4166
4167 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4168 * m68klinux-nat.c: Update ptrace interface for fetching/storing
4169 registers and add support for PTRACE_GETREGS.
4170
7072a954
AC
41712002-01-24 Andrew Cagney <ac131313@redhat.com>
4172
4173 GDB 5.1.1 released from 5.1 branch.
4174 * NEWS: Add 5.1.1 news.
4175 * README: Sync with 5.1 branch.
4176
86f902e0
FF
41772002-01-23 Fred Fish <fnf@redhat.com>
4178
4179 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
4180 stabstring on initial malloc. Reallocing will copy it for us,
4181 if necessary.
4182
8af51c36
EZ
41832002-01-23 Elena Zannoni <ezannoni@redhat.com>
4184
aaa38bb5 4185 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
4186 (HFILES_NO_SRCDIR): Remove hpread.h.
4187 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
4188 (hpread.o): Update dependencies.
4189 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
4190
4191 * hp-psymtab-read.c: Remove file.
4192 * hp-symtab-read.c: Remove file.
4193 * hpread.h: Remove file.
4194
4195 * hpread.c: Merge all contents of hp-psymtab-read.c,
4196 hp-symtab-read.c and hpread.h into this file, as it was prior to
4197 January 1999.
4198
4199 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 4200 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
4201 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
4202 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
4203
dc5cfeb6
EZ
42042002-01-23 Elena Zannoni <ezannoni@redhat.com>
4205
4206 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
4207 fill_gregset): Call gdbarch_tdep() just once, assign result to
4208 variable and use that, instead of calling the function several
4209 times.
4210
ea87b71b
AO
42112002-01-24 Alexandre Oliva <aoliva@redhat.com>
4212
4213 * configure.host: Accept sparcv9 as alias for sparc64.
4214 * configure.tgt: Likewise.
4215
13fc0c2f
KB
42162002-01-22 Kevin Buettner <kevinb@redhat.com>
4217
4218 * solib-aix5.c (build_so_list_from_mapfile)
4219 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
4220 arguments is not reversed.
4221 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
4222 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 4223
7bd872fe
EZ
42242002-01-22 Elena Zannoni <ezannoni@redhat.com>
4225
4226 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
4227 modified version of obsolete sh_fetch_pseudo_register.
4228 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
4229 (sh4_register_read): New function.
4230 (sh_pseudo_register_write): New function. Renamed and modified
4231 version of obsolete sh_store_pseudo_register.
4232 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
4233 (sh4_register_write): New function.
4234 (sh_gdbarch_init): Remove setting of gdbarch function
4235 fetch_pseudo_register and store_pseudo_register. Remove setting of
4236 register_convert_to_raw, register_convert_to_virtual,
4237 register_convertible.
4238 (sh_sh4_register_convertible): Delete. No longer needed. All is
4239 taken care by architecture specific functions
4240 register_read/register_write.
4241 (sh_sh4_register_convert_to_virtual): Make static.
4242 (sh_sh4_register_convert_to_raw): Ditto.
4243
069e84fd
AC
42442002-01-22 Andrew Cagney <ac131313@redhat.com>
4245
4246 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
4247 (floatformat_is_nan, floatformat_mantissa): Ditto.
4248
4249 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
4250 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
4251 builtin_type_ieee_double_little,
4252 builtin_type_ieee_double_littlebyte_bigword,
4253 builtin_type_m68881_ext, builtin_type_i960_ext,
4254 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
4255 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
4256 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
4257 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
4258
211a4f69
CV
42592002-01-22 Corinna Vinschen <vinschen@redhat.com>
4260
4261 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
4262 parameter. Set frameless flag if it exists and depended of
4263 whether the scanned function is frameless or not.
4264 (xstormy16_skip_prologue): If function is frameless, return
4265 result of xstormy16_scan_prologue().
4266 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
4267 call.
4268
f81353e4
EZ
42692002-01-21 Elena Zannoni <ezannoni@redhat.com>
4270
4271 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
4272 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
4273 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
4274 sh_sh4_register_byte, sh_sh4_register_raw_size,
4275 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
4276 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
4277 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
4278 sh_store_pseudo_register, sh_do_pseudo_register): Call
4279 gdbarch_tdep() just once, assign result to variable and use that,
4280 instead of calling the function several times.
4281
63c73a17
MK
42822002-01-20 Mark Kettenis <kettenis@gnu.org>
4283
4284 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
4285 macros instead of LAST_FPU_CTRL_REGNUM.
4286 (store_register): Likewise.
4287
39ad761d
JB
42882002-01-21 Jim Blandy <jimb@redhat.com>
4289
4290 * infcmd.c (run_command): Check that the `exec' target layer's BFD
4291 is up-to-date before running the program, not just when a program
4292 exits.
4293
3d74b771
FF
42942002-01-21 Fred Fish <fnf@redhat.com>
4295
4296 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
4297 when we have found all instructions we are looking for.
4298
966fbf70
RE
42992002-01-21 Richard Earnshaw <rearnsha@arm.com>
4300
4301 * arm-tdep.c (arm_register_name): New function.
4302 (arm_registers_names): Make static.
4303 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
4304 (arm_register_name): Declare.
4305 (REGISTER_NAME): Use it.
4306
c3b4394c
RE
43072002-01-21 Richard Earnshaw <rearnsha@arm.com>
4308 Kevin Buettner <kevinb@redhat.com>
4309
4310 Convert arm targets to new FRAME interface.
4311 * arm-tdep.c (struct frame_extra_info): Remove fsr.
4312 (arm_frame_find_save_regs): Delete.
4313 (arm_frame_init_saved_regs): New.
4314 (arm_init_extra_frame_info): Alloacte saved_regs as required.
4315 Allocate extra_info as required. Convert all uses of fsr.regs
4316 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
4317 to use extra_info.
4318 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
4319 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
4320 (check_prologue_cache, save_prologue_cache): Likewise.
4321 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
4322 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
4323 (FRAME_FIND_SAVED_REGS): Delete.
4324 (arm_frame_find_saved_regs): Delete prototype.
4325 (arm_frame_init_saved_regs): New prototype.
4326 (FRAME_INIT_SAVED_REGS): Define.
4327
61d99182
AC
43282002-01-20 Andrew Cagney <ac131313@redhat.com>
4329
4330 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
4331
6aaea291
AC
43322002-01-20 Andrew Cagney <ac131313@redhat.com>
4333
4334 From Jeff Law <law@redhat.com>:
4335 * infttrace.c: Include <sys/pstat.h>.
4336 (child_pid_to_exec_file): Revamp. Use pstat call to get the
4337 exec file if the ttrace equivalent fails.
4338
15f698d2
AC
43392002-01-20 Andrew Cagney <ac131313@redhat.com>
4340
4341 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
4342 (closeLogFile): Ditto.
4343
f86ddd7c
MC
43442002-01-20 Michael Chastain <mec@shout.net>
4345
4346 * top.c (print_gdb_version): Bump copyright year to 2002.
4347
904507ce
AC
43482002-01-20 Andrew Cagney <ac131313@redhat.com>
4349
4350 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
4351 Zannoni and Eli Zaretskii.
4352
d7f0b9ce
DJ
43532002-01-20 Daniel Jacobowitz <drow@mvista.com>
4354
4355 * buildsym.c: Update copyright years.
4356 * c-typeprint.c: Likewise.
4357 * dwarf2read.c: Likewise.
4358 * f-typeprint.c: Likewise.
4359 * gdbtypes.c: Likewise.
4360 * gdbtypes.h: Likewise.
4361 * hp-symtab-read.c: Likewise.
4362 * hpread.c: Likewise.
4363 * mdebugread.c: Likewise.
4364 * p-typeprint.c: Likewise.
4365
3fd3d7d2
AC
43662002-01-20 Andrew Cagney <ac131313@redhat.com>
4367
4368 * remote-sim.c (gdbsim_open): Simplify code testing the macro
4369 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
4370 byte-order selectable.
4371 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
4372 * arch-utils.c: Ditto.
4373 (set_endian): Ditto.
4374 (set_endian_from_file): Ditto.
4375 * gdbserver/low-sim.c (create_inferior): Ditto.
4376 * gdbarch.sh: Ditto.
4377 * gdbarch.h: Re-generate.
aaa38bb5
AJ
4378 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4379 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
4380 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
4381 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4382 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4383 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4384 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
4385 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
4386 macro definition.
4387 * config/mips/tm-wince.h: Remove #undef of macro
4388 TARGET_BYTE_ORDER_SELECTABLE.
4389 * config/sh/tm-wince.h: Ditto.
4390
b02dede2
DJ
43912002-01-20 Daniel Jacobowitz <drow@mvista.com>
4392
4393 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
4394 member function fields. Add accessor macro
4395 TYPE_FN_FIELD_ARTIFICIAL.
4396 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
4397 * c-typeprint.c (c_type_print_base): Skip artificial member
4398 functions.
4399
c3643761
DJ
44002002-01-20 Daniel Jacobowitz <drow@mvista.com>
4401
4402 * f-typeprint.c: Delete unused function f_type_print_args.
4403 * p-typeprint.c: Delete unused function pascal_type_print_args.
4404
8176bb6d
DJ
44052002-01-20 Daniel Jacobowitz <drow@mvista.com>
4406
4407 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
4408 comment. Add ``artificial'' to ``union field_location''.
4409
4410 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
4411
4412 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
4413 * mdebugread.c (parse_symbol): Likewise.
4414 * stabsread.c (define_symbol): Likewise.
4415 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
4416 initializing TYPE_FIELD_BITPOS to n (obsolete).
4417 (hpread_doc_function_type): Likewise.
4418 * hpread.c (hpread_function_type): Likewise.
4419
7fd60527
AC
44202002-01-20 Andrew Cagney <ac131313@redhat.com>
4421
4422 * configure.in (host_makefile_frag): Only require a host makefile
4423 fragment when a native build.
4424 * configure: Re-generate.
4425
c2f05ac9
AC
44262002-01-20 Andrew Cagney <ac131313@redhat.com>
4427
4428 * doublest.h (floatformat_from_type): Declare.
4429 * doublest.c (floatformat_from_type): New function.
4430 (convert_typed_floating): Use.
4431
4432 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
4433 call to function floatformat_from_type.
4434
4435 * gdbarch.sh (IEEE_FLOAT): Delete.
4436 * gdbarch.h, gdbarch.c: Re-generate.
4437 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
4438 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
4439 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
4440 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
4441 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
4442 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
4443 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
4444 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
4445 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
4446 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
4447 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
4448 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
4449
4450 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
4451 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
4452 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4453 * sh-tdep.c (sh_gdbarch_init): Ditto.
4454 * mips-tdep.c (mips_gdbarch_init): Ditto.
4455 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4456 * cris-tdep.c (cris_gdbarch_init): Ditto.
4457
abf22e64
AJ
44582002-01-20 Jiri Smid <smid@suse.cz>
4459
4460 * configure.host, configure.tgt: Support x86-64.
4461 * NEWS: Note new target x86-64.
4462
b7c4cbf8
AJ
4463 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
4464 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
4465 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
4466 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
4467 x86-64-linux-nat.o): Fix dependencies.
4468
82600034
AC
44692002-01-19 Andrew Cagney <ac131313@redhat.com>
4470
4471 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
4472 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
4473 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
4474 * config/sparc/xm-sun4os4.h: Delete file.
4475 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 4476
bbe5c628
AC
44772002-01-19 Andrew Cagney <ac131313@redhat.com>
4478
4479 * config/sparc/sparclynx.mh (XM_FILE): Delete.
4480 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
4481 * config/m68k/m68klynx.mh (XM_FILE): Delete.
4482 * config/i386/i386lynx.mh (XM_FILE): Delete.
4483 * config/rs6000/xm-rs6000ly.h: Delete file.
4484 * config/sparc/xm-sparclynx.h: Delete file.
4485 * config/m68k/xm-m68klynx.h: Delete file.
4486 * config/i386/xm-i386lynx.h: Delete file.
4487 * config/xm-lynx.h: Delete file.
4488 * config/djgpp/fnchange.lst: Update.
4489
f8453e34
JT
44902002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4491
4492 * alpha-tdep.c (alpha_register_byte): New function.
4493 (alpha_register_raw_size): Ditto.
4494 (alpha_register_virtual_size): Ditto.
4495 (alpha_skip_prologue_internal): Renamed from
4496 alpha_skip_prologue.
4497 (alpha_skip_prologue): New version that calls
4498 alpha_skip_prologue_internal.
4499 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
4500 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
4501 second argument from alpha_skip_prologue.
4502 (REGISTER_BYTE): Use alpha_register_byte.
4503 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
4504 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
4505 (FRAMELESS_FUNCTION_INVOCATION): Use
4506 generic_frameless_function_invocation_not.
4507 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
4508 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
4509
52d9e613
AC
45102002-01-19 Andrew Cagney <ac131313@redhat.com>
4511
4512 * config/mips/xm-news-mips.h: Delete file.
4513 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
4514
4515 * config/m88k/xm-m88k.h: Delete file.
4516 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
4517 * config/m88k/xm-delta88v4.h: Ditto.
4518 * config/m88k/xm-delta88.h: Ditto.
4519
4520 * config/alpha/xm-fbsd.h: Delete file.
4521 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
4522
4523 * config/sparc/xm-sparc.h: Delete file.
4524 * Makefile.in (xm-sun4os4.h): Delete dependency.
4525 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
4526 * config/sparc/xm-sun4os4.h: Ditto.
4527 * config/sparc/xm-linux.h: Ditto.
4528
4529 * config/i386/xm-windows.h: Delete file.
4530
2d1b2124
AC
45312002-01-19 Andrew Cagney <ac131313@redhat.com>
4532
4533 * utils.c: Include <sys/param.h> for MAXPATHLEN.
4534 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
4535
ee1f65f0
JT
45362002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4537
4538 * alpha-tdep.c (alpha_call_dummy_words): New.
4539 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
4540 (CALL_DUMMY_P): Define.
4541 (CALL_DUMMY_WORDS): Define.
4542 (SIZEOF_CALL_DUMMY_WORDS): Define.
4543
98081e55
PB
45442002-01-19 Per Bothner <per@bothner.com>
4545
4546 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
4547 isn't NULL, which can happen with some gcj-3.x-produced code.
4548
0d056799
JT
45492002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4550
4551 * alpha-tdep.c (alpha_register_virtual_type): New function.
4552 (alpha_init_frame_pc_first): Ditto.
4553 (alpha_fix_call_dummy): Ditto.
4554 (alpha_store_struct_return): Ditto.
4555 (alpha_extract_struct_value_address): Ditto.
4556 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
4557 alpha_register_virtual_type.
4558 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
4559 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
4560 alpha_extract_struct_value_address.
4561 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
4562 (INIT_FRAME_PC): Use init_frame_pc_noop.
4563 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
4564
4604bcad
MK
45652002-01-19 Mark Kettenis <kettenis@gnu.org>
4566
4567 * i386gnu-nat.c: Include "i386-tdep.h".
4568 (fetch_fpregs): Simplify code dealing with uninitialized floating
4569 point states such that it doesn't require FP7_REGNUM.
4570
140f9984
JT
45712002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4572
abf22e64
AJ
4573 * alpha-tdep.c (frame_extra_info): New.
4574 (alpha_find_saved_regs): Make static. Use
140f9984
JT
4575 frame->extra_info.
4576 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
4577 (alpha_frame_saved_pc): Use frame->extra_info.
4578 (temp_saved_regs): Don't declare as struct frame_saved_regs.
4579 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
4580 (init_extra_frame_info): Rename to...
4581 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 4582 (alpha_print_extra_frame_info): New function.
140f9984
JT
4583 (alpha_frame_locals_address): Ditto.
4584 (alpha_frame_args_address): Ditto.
abf22e64 4585 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
4586 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
4587 alpha_frame_args_address.
abf22e64 4588 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 4589 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
4590 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
4591 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
4592 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
4593 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
4594
d734c450
JT
45952002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4596
4597 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
4598 (alpha_cannot_fetch_register): Ditto.
4599 (alpha_cannot_store_register): Ditto.
4600 (alpha_register_convertible): Ditto.
4601 (alpha_use_struct_convention): Ditto.
4602 * config/alpha/tm-alpha.h: Update copyright years.
4603 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
4604 (INNER_THAN): Use core_addr_lessthan.
4605 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
4606 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
4607 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
4608 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
4609 (FRAME_CHAIN): Remove unnecessary cast.
4610
b4ceaee6
AC
46112002-01-18 Andrew Cagney <ac131313@redhat.com>
4612
4613 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
4614 obsolete.
4615
0a65a603
AC
46162002-01-18 Andrew Cagney <ac131313@redhat.com>
4617
4618 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
4619 * monitor.c, remote-array.c, remote-bug.c: Ditto.
4620 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
4621 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
4622 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
4623 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
4624 * x86-64-linux-nat.c: Ditto.
4625
636a6dfc
JT
46262002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4627
abf22e64 4628 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
4629 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
4630 (REGISTER_NAME): Define.
4631
acceddb6
JT
46322002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4633
4634 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
4635
ec32e4be
JT
46362002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4637
4638 * alpha-tdep.c: Update copyright years.
4639 (alpha_next_pc): New function.
4640 (alpha_software_single_step): Ditto.
4641 * config/alpha/tm-alpha.h: Add prototype for
4642 alpha_software_single_step.
4643
e771a871
JT
46442002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4645
4646 * alphabsd-nat.c: Update copyright years.
4647 (fill_gregset): Use regcache_collect.
4648 (fill_fpregset): Likewise.
4649 (fetch_inferior_registers): Only fetch integer registers
4650 if requested to do so.
4651 (store_inferior_registers): Only store integer registers
4652 if requested to do so.
4653
7708fa01
AC
46542002-01-17 Andrew Cagney <ac131313@redhat.com>
4655
4656 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
4657 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
4658 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
4659 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
4660 * config/alpha/fbsd.mh (XDEPFILES): Delete.
4661 * config/arm/linux.mh (XDEPFILES): Delete.
4662 * config/arm/nbsd.mh (XDEPFILES): Delete.
4663 * config/i386/i386dgux.mh (XDEPFILES): Delete.
4664 * config/i386/i386sol2.mh (XDEPFILES): Delete.
4665 * config/i386/i386m3.mh (XDEPFILES): Delete.
4666 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
4667 * config/i386/i386gnu.mh (XDEPFILES): Delete.
4668 * config/i386/fbsd.mh (XDEPFILES): Delete.
4669 * config/i386/i386bsd.mh (XDEPFILES): Delete.
4670 * config/i386/i386sco5.mh (XDEPFILES): Delete.
4671 * config/i386/i386v4.mh (XDEPFILES): Delete.
4672 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
4673 * config/i386/i386sco4.mh (XDEPFILES): Delete.
4674 * config/i386/i386aix.mh (XDEPFILES): Delete.
4675 * config/i386/go32.mh (XDEPFILES): Delete.
4676 * config/i386/cygwin.mh (XDEPFILES): Delete.
4677 * config/i386/i386lynx.mh (XDEPFILES): Delete.
4678 * config/i386/i386mach.mh (XDEPFILES): Delete.
4679 * config/i386/i386v32.mh (XDEPFILES): Delete.
4680 * config/i386/linux.mh (XDEPFILES): Delete.
4681 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
4682 * config/i386/ncr3000.mh (XDEPFILES): Delete.
4683 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
4684 * config/i386/i386sco.mh (XDEPFILES): Delete.
4685 * config/i386/i386v.mh (XDEPFILES): Delete.
4686 * config/i386/nbsd.mh (XDEPFILES): Delete.
4687 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
4688 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
4689 * config/i386/symmetry.mh (XDEPFILES): Delete.
4690 * config/i386/obsd.mh (XDEPFILES): Delete.
4691 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
4692 * config/ia64/linux.mh (XDEPFILES): Delete.
4693 * config/ia64/aix.mh (XDEPFILES): Delete.
4694 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
4695 * config/m68k/dpx2.mh (XDEPFILES): Delete.
4696 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
4697 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
4698 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
4699 * config/m68k/linux.mh (XDEPFILES): Delete.
4700 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
4701 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
4702 * config/m68k/nbsd.mh (XDEPFILES): Delete.
4703 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
4704 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
4705 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
4706 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
4707 * config/m88k/delta88.mh (XDEPFILES): Delete.
4708 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
4709 * config/m88k/m88k.mh (XDEPFILES): Delete.
4710 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
4711 * config/mips/linux.mh (XDEPFILES): Delete.
4712 * config/mips/irix6.mh (XDEPFILES): Delete.
4713 * config/mips/irix5.mh (XDEPFILES): Delete.
4714 * config/mips/irix4.mh (XDEPFILES): Delete.
4715 * config/mips/irix3.mh (XDEPFILES): Delete.
4716 * config/mips/decstation.mh (XDEPFILES): Delete.
4717 * config/mips/mipsm3.mh (XDEPFILES): Delete.
4718 (NATDEPFILES): Move core-aout.o to here.
4719 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
4720 * config/pa/hpux1020.mh (XDEPFILES): Delete.
4721 * config/pa/hppabsd.mh (XDEPFILES): Delete.
4722 * config/pa/hppahpux.mh (XDEPFILES): Delete.
4723 * config/pa/hpux11w.mh (XDEPFILES): Delete.
4724 * config/pa/hppaosf.mh (XDEPFILES): Delete.
4725 * config/pa/hpux11.mh (XDEPFILES): Delete.
4726 * config/powerpc/aix.mh (XDEPFILES): Delete.
4727 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
4728 * config/powerpc/linux.mh (XDEPFILES): Delete.
4729 * config/romp/rtbsd.mh: Rename XDEPFILES.
4730 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
4731 * config/rs6000/aix4.mh (XDEPFILES): Delete.
4732 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
4733 * config/s390/s390.mh (XDEPFILES): Delete.
4734 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
4735 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
4736 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
4737 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
4738 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
4739 * config/sparc/nbsd.mh (XDEPFILES): Delete.
4740 * config/sparc/linux.mh (XDEPFILES): Delete.
4741 * config/vax/vaxult.mh (XDEPFILES): Delete.
4742 * config/vax/vaxult2.mh (XDEPFILES): Delete.
4743 * Makefile.in (DEPFILES): Remove XDEPFILES.
4744
375fc983
AC
47452002-01-17 Andrew Cagney <ac131313@redhat.com>
4746
4747 * utils.c (internal_verror): Fix comments, default is yes not no.
4748 Update queries to match. Default to quit and dump core.
4749
8926118c
AC
47502002-01-17 Andrew Cagney <ac131313@redhat.com>
4751
4752 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
4753 copyright.
4754 * defs.h, event-top.c, gdbcmd.h: Ditto.
4755 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
4756 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
4757 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
4758 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
4759 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
4760 * mi/mi-main.c:Ditto.
4761
4762 * stack.c, symfile.c: Update copyright.
4763
45b7b345
DJ
47642002-01-17 Daniel Jacobowitz <drow@mvista.com>
4765
db728ff7
DJ
4766 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
4767 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
4768 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
4769 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 4770
db728ff7
DJ
47712002-01-17 Daniel Jacobowitz <drow@mvista.com>
4772
4773 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
4774 * gdbserver/low-lynx.c (myattach): Likewise.
4775 * gdbserver/low-nbsd.c (myattach): Likewise.
4776 * gdbserver/low-sim.c (myattach): Likewise.
4777 * gdbserver/low-sparc.c (myattach): Likewise.
4778 * gdbserver/low-sun3.c (myattach): Likewise.
4779
4780 * gdbserver/low-linux.c (myattach): New function.
45b7b345 4781
db728ff7 4782 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
4783 (main): Handle "--attach".
4784
8de3c354
AC
47852002-01-16 Andrew Cagney <ac131313@redhat.com>
4786
4787 * MAINTAINERS (language support): Daniel Jacobwitz is C++
4788 maintainer.
4789
b0129042
DJ
47902002-01-15 Daniel Jacobowitz <drow@mvista.com>
4791
4792 * c-typeprint.c (is_type_conversion_operator): Add additional
4793 check for non-conversion operators.
4794
ba8679fb 47952002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
4796
4797 * linux-proc.c: Add "info proc" command, a la procfs.c.
4798 (read_mapping): New function, abstract and re-use code.
4799 (linux_find_memory_regions): Use new func read_mapping.
4800 (linux_info_proc_cmd): New function, implement "info proc".
4801 (_initialize_linux_proc): Add new command "info proc".
4802
e4f9b4d5
MS
48032002-01-15 Michael Snyder <msnyder@redhat.com>
4804
4805 * symfile.c (generic_load): Use bfd_map_over_sections method
4806 instead of manipulating bfd structure members directly.
4807 (add_section_size_callback): New function, bfd sections callback
4808 used by generic_load.
4809 (load_sections_callback): New function, bfd sections callback
4810 used by generic_load.
4811
08cf96df
EZ
48122002-01-15 Elena Zannoni <ezannoni@redhat.com>
4813
abf22e64 4814 [Based on work by Jim Blandy]
08cf96df
EZ
4815 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
4816 (builtin_type_vec128): Export.
4817 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
4818 types.
4819 (builtin_type_vec128): New builtin type for 128 bit vector
4820 registers.
4821 (build_gdbtypes): Initialize builtin_type_v16qi and
4822 builtin_type_v8hi. Create the vec128 register builtin type
4823 structure.
4824 (build_builtin_type_vec128): New function.
abf22e64 4825 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
4826 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
4827 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
4828 AltiVec register to new builtin type.
4829
d7242108
DJ
48302001-01-15 Daniel Jacobowitz <drow@mvista.com>
4831
4832 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
4833 to make_cv_type.
4834
4ee3352d
AC
48352002-01-14 Andrew Cagney <ac131313@redhat.com>
4836
4837 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
4838 CLEAN_UP_REGISTER_VALUE.
4839 * regcache.c (supply_register): Update only call.
4840
f015b2e7
AC
48412002-01-14 Andrew Cagney <ac131313@redhat.com>
4842
4843 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4844 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4845 a29k-*-vxworks* targets as obsolete.
4846
356ae49d
MS
48472002-01-14 Michael Snyder <msnyder@redhat.com>
4848
4849 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
4850 until we can resolve portability issues.
4851 * gregset.h: Remove references to fpxregs.
4852 * gcore.c (gcore_command): Initialize note_sec to NULL.
4853
ade8f45e
AC
48542002-01-13 Andrew Cagney <ac131313@redhat.com>
4855
4856 * signals.c (target_signal_to_name): Rewrite. Only use
4857 signals[].name when in bounds and non-NULL.
abf22e64 4858
89c49e7a
AC
48592002-01-13 Andrew Cagney <ac131313@redhat.com>
4860
4861 From Petr Ledvina <ledvinap@kae.zcu.cz>:
4862 * signals.c (target_signal_to_name): Verify that SIG is within the
4863 bounds of the signals array.
4864
4daa9f9f
AC
48652002-01-13 Andrew Cagney <ac131313@redhat.com>
4866
4867 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
4868
ba4bbdcb
KS
48692002-01-13 Keith Seitz <keiths@redhat.com>
4870
4871 * stack.c (print_frame_info_base): Print the frame's pc
4872 only if when print_frame_info_listing_hook is not defined.
4873
575bbeb6
KS
48742002-01-13 Keith Seitz <keiths@redhat.com>
4875
4876 * varobj.c (varobj_set_value): Make sure that there were no
4877 errors evaluating the object before attempting to set its
4878 value.
4879 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
4880 so this offset adjustment is no longer necessary.
4881 (create_child): Don't set the error flag if the child is
4882 a CPLUS_FAKE_CHILD.
4883 (value_of_child): If value_fetch_lazy fails, return NULL
4884 so that callers will be notified that an error occurred.
4885 (c_value_of_variable): Delay check of variable's validity
4886 until later. We actually want all structs and unions to have
4887 the value "{...}".
4888 Do not return "???" for variables which could not be evaluated.
4889 This error condition must be returned to the caller so that it
4890 can get the error condition from gdb.
4891 (cplus_name_of_child): Adjust index for vptr before figuring
4892 out the name of the child.
4893 (cplus_value_of_child): If a child's (real) parent is not valid,
4894 don't even bother trying to give a value for it. Just return
4895 an error. Change all instances in this function.
4896 (cplus_type_of_child): If our parent is one of the "fake"
4897 parents, we need to get at the type of the real parent, and
4898 derive the child's true type using this information.
4899
b76898ab
AC
49002002-01-13 Andrew Cagney <ac131313@redhat.com>
4901
4902 From 2002-01-09 John Marshall <johnm@falch.net>:
4903 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
4904 sources.redhat.com, and tweak some related URLs which had
4905 suffered from linkrot.
4906
b6649e88
AC
49072002-01-13 Andrew Cagney <ac131313@redhat.com>
4908
4909 From Jeff law:
4910 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
4911 structures passed in registers.
4912
82cc5033
EZ
49132002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
4914
4915 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
4916 white space which prevented compilation. Reported by DSK
4917 <dsk@student.unsw.edu.au>.
4918
ba5f2f8a
MS
49192002-01-11 Michael Snyder <msnyder@redhat.com>
4920
fbd35540
MS
4921 * symfile.c (build_section_addr_info_from_section_tab):
4922 Use bfd access method instead of manipulating bfd directly.
4923 (syms_from_objfile): Ditto.
4924 (simple_overlay_update_1): Ditto.
4925 (simple_overlay_update): Ditto.
4926 (generic_load): Ditto.
4927 (overlay_unmapped_address): FIXME comment, bfd access methods.
4928 (sections_overlap): FIXME comment, bfd access methods.
4929 (pc_in_mapped_range): FIXME comment, bfd access methods.
4930 (pc_in_unmapped_range): FIXME comment, bfd access methods.
4931 (section_is_mapped): FIXME comment, bfd access methods.
4932 (section_is_overlay): FIXME comment, bfd access methods.
4933
ba5f2f8a
MS
4934 * symfile.c (generic_load): Whitespace and long line cleanups.
4935 Remove duplicate variable, change several local variables to
4936 more appropriate data types.
4937 (print_transfer_performance): Use %lu instead of %ld for ulongs.
4938
17df2af6
AC
49392002-01-12 Andrew Cagney <ac131313@redhat.com>
4940
4941 From Peter Schauer:
4942 * language.c (longest_local_hex_string_custom): Use phex_nz to
4943 convert NUM to a hex string.
4944
ec920329
EZ
49452002-01-12 Elena Zannoni <ezannoni@redhat.com>
4946
4947 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
4948 the function.
538a76d6 4949 Update Copyright year.
ec920329 4950
3abd2e01
AC
49512002-01-12 Andrew Cagney <ac131313@redhat.com>
4952
4953 * language.c (longest_raw_hex_string): Delete unused function.
4954
b21b22e0
PS
49552002-01-11 Petr Sorfa <petrs@caldera.com>
4956
4957 * MAINTAINERS (write-after-approval): Add myself.
4958 * dwarf2read.c (read_tag_string_type): Handling of
4959 DW_AT_byte_size.
4960 (read_tag_string_type): FORTRAN fix to prevent propagation of
4961 first string size.
4962 (set_cu_language): Handling of DW_LANG_Fortran95
4963
747fe712
RE
49642002-01-11 Richard Earnshaw <rearnsha@arm.com>
4965
4966 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
4967 GETPID(inferior_ptid).
4968 (store_inferior_registers): Likewise.
4969
f1bea926
JM
49702002-01-10 Jason Merrill <jason@redhat.com>
4971
4972 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
4973 Fix DW_OP_minus.
4974
ae940673
AC
49752002-01-10 Andrew Cagney <ac131313@redhat.com>
4976
4977 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
4978 and bfd/elf32-sh-nbsd.c.
4979
00546b04
MS
49802002-01-10 Michael Snyder <msnyder@redhat.com>
4981
352ed7b4
MS
4982 * NEWS: Mention --pid and corefile/proc-id behavior change.
4983
c18be923
MS
4984 * Makefile.in: Add rules for gcore.o and linux-proc.o.
4985 * gcore.c: Include cli/cli-decode.h instead of command.h.
4986
00546b04
MS
4987 * main.c (captured_main): Add new command line option "--pid".
4988 If the second command line argument (following the symbol-file)
4989 begins with a digit, try to attach to it before trying to open
4990 it as a corefile.
4991 (print_gdb_help): Document the "--pid" argument.
4992
db60ec62
EZ
49932002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
4994
4995 * completer.c (command_completer): New function.
4996
4997 * completer.h <command_completer>: Add prototype.
4998
4999 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
5000 completer for the "help" command.
5001
39c22d1a
JM
50022002-01-09 Jason Merrill <jason@redhat.com>
5003
5004 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
5005
c564377f
MS
50062002-01-09 Michael Snyder <msnyder@redhat.com>
5007
975aec09
MS
5008 * i386-linux-nat.c (fill_fpxregset): Make global.
5009 (store_fpxregset): Ditto.
5010
db4a10fa
MS
5011 * gregset.h (gdb_fpxregset_t): Define.
5012 (supply_fpxregset): Prototype.
5013 (fill_fpxregset): Prototype.
5014
c564377f
MS
5015 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
5016
c3d45d70
RE
50172002-01-09 Richard Earnshaw <rearnsha@arm.com>
5018
5019 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
5020 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
5021 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
5022
fcc87af1
AC
50232002-01-09 Andrew Cagney <ac131313@redhat.com>
5024
5025 * MAINTAINERS: Update target maintainer rules so that any
5026 Maintainer can approve a tested patch for a maintenance-only
5027 target.
5028
dd96c05b
RE
50292002-01-09 Richard Earnshaw <rearnsha@arm.com>
5030
d4297db9 5031 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 5032
d4297db9 5033 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
5034 IN_SIGTRAMP.
5035
145fdc6e
MS
50362002-01-08 Michael Snyder <msnyder@redhat.com>
5037
5038 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
5039 real name of the executable, rather than the /proc name.
5040
be4d1333
MS
50412002-01-03 Michael Snyder <msnyder@redhat.com>
5042
5043 Implement a "generate-core-file" command in gdb, save target state.
5044 * gcore.c: New file. Implement new command 'generate-core-file'.
5045 Save a corefile image of the current state of the inferior.
5046 * linux-proc.c: Add linux-specific code for saving corefiles.
5047 * target.h (struct target_ops): Add new target vectors for saving
5048 corefiles; to_find_memory_regions and to_make_corefile_notes.
5049 (target_find_memory_regions): New macro.
5050 (target_make_corefile_notes): New macro.
5051 * target.c (update_current_target): Inherit new target methods.
5052 (dummy_find_memory_regions): New place-holder method.
5053 (dummy_make_corefile_notes): New place-holder method.
5054 (init_dummy_target): Initialize new dummy target vectors.
5055 * exec.c (exec_set_find_memory_regions): New function.
5056 Allow the exec_ops vector for memory regions to be taken over.
5057 (exec_make_note_section): New function, target vector method.
5058 * defs.h (exec_set_find_memory_regions): Export prototype.
5059 * procfs.c (proc_find_memory_regions): New function, corefile method.
5060 (procfs_make_note_section): New function, corefile method.
5061 (init_procfs_ops): Set new target vector pointers.
5062 (find_memory_regions_callback): New function.
5063 (procfs_do_thread_registers): New function.
5064 (procfs_corefile_thread_callback): New function.
5065 * sol-thread.c (sol_find_memory_regions): New function.
5066 (sol_make_note_section): New function.
5067 (init_sol_thread_ops): Initialize new target vectors.
5068 * inftarg.c (inftarg_set_find_memory_regions): New function.
5069 Allow to_find_memory_regions vector to be taken over.
5070 (inftarg_set_make_corefile_notes): New function.
5071 Allow to_make_corefile_notes vector to be taken over.
5072 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
5073 interface layer if not target_has_execution (may be a corefile).
5074 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
5075 * config/sparc/sun4sol2.mh: Ditto.
5076 * config/alpha/alpha-linux.mh: Ditto.
5077 * config/arm/linux.mh: Ditto.
5078 * config/i386/x86-64linux.mh: Ditto.
5079 * config/ia64/linux.mh: Ditto.
5080 * config/m68k/linux.mh: Ditto.
5081 * config/mips/linux.mh: Ditto.
5082 * config/powerpc/linux.mh: Ditto.
5083 * config/sparc/linux.mh: Ditto.
5084
c6b92abd
MS
50852002-01-07 Michael Snyder <msnyder@redhat.com>
5086
5087 * arm-linux-nat.c: Remove references to regcache.c internal data
5088 (registers[] and register_valid[]).
5089
4b09dc8c
MS
50902002-01-07 Michael Snyder <msnyder@redhat.com>
5091
abf22e64
AJ
5092 * linux-proc.c: New file. Implement child_pid_to_exec_file,
5093 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
5094 symbol file and shlibs.
5095 * Makefile.in: Add rule for linux-proc.o.
5096 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
5097 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
5098 * config/arm/linux.mh: Ditto.
5099 * config/i386/linux.mh: Ditto.
5100 * config/i386/x86-64linux.mh: Ditto.
5101 * config/ia64/linux.mh: Ditto.
5102 * config/m68k/linux.mh: Ditto.
5103 * config/mips/linux.mh: Ditto.
5104 * config/powerpc/linux.mh: Ditto.
5105 * config/sparc/linux.mh: Ditto.
5106
c25b74ac
PM
51072002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
5108
5109 * win32-nat.c: Add i386-tdep.h dependency.
5110
94cd915f
MS
51112002-01-07 Michael Snyder <msnyder@redhat.com>
5112
c7cccb76
MS
5113 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
5114 instead of bfd_get_arch_size. Don't bail out just because
5115 there's no exec_bfd.
abf22e64 5116
34c0bd93
MS
5117 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
5118 * p-valprint.c (pascal_object_print_value): Ditto.
5119 * somread.c (som_symtab_read): Ditto.
5120 * symfile.c (simple_free_overlay_region_table): Ditto.
5121 * valops.c (value_assign): Ditto.
5122
21c1c920
MS
5123 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
5124 use tilde_expand and strerror for opening save-tracepoints file.
5125
5bbd998e
MS
5126 * thread-db.c (thread_db_new_objfile): Indendation fix.
5127
94cd915f
MS
5128 * infptrace.c (GDB_MAX_ALLOCA): New define.
5129 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 5130 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
5131 can be overridden with whatever value is appropriate to the host).
5132 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
5133 alloca to allocate potentially large buffer.
5134 * rs6000-nat.c (child_xfer_memory): Ditto.
5135 * symm-nat.c (child_xfer_memory): Ditto.
5136 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
5137
494e8a93
JSC
51382002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
5139
5140 From Nick Clifton <nickc@redhat.com>
5141 * d10v-tdep.c: Set STACK_START to 0x200bffe.
5142
d0e1d48e
MS
51432002-01-07 Michael Snyder <msnyder@redhat.com>
5144
abf22e64 5145 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
5146 Don't use exec_bfd if it's NULL.
5147
290b2c7a
MK
51482002-01-06 Mark Kettenis <kettenis@gnu.org>
5149
abf22e64 5150 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 5151
aef21287
AC
51522002-01-06 Andrew Cagney <ac131313@redhat.com>
5153
5154 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
5155 * gnu-nat.c: Ditto.
5156
30efa627
AC
51572002-01-06 Andrew Cagney <ac131313@redhat.com>
5158
5159 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
5160 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
5161 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
5162 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
5163 z8k-coff have not been multi-arched. Update z8k-coff build
5164 status.
5165
9b4ff276
AC
51662002-01-06 Andrew Cagney <ac131313@redhat.com>
5167
5168 * MAINTAINERS: Mark a29k target as obsolete.
5169 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
5170 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
5171 comments.
5172 * NEWS: Note that a29k targets are obsolete.
5173 * a29k-tdep.c: Mark as obsolete.
5174 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
5175 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
5176 a29k-*-vxworks* targets as obsolete.
5177 * remote-adapt.c: Obsolete.
5178 * remote-eb.c: Obsolete.
5179 * remote-mm.c: Obsolete.
5180 * remote-udi.c: Obsolete.
5181 * config/a29k/a29k-udi.mt: Obsolete.
5182 * config/a29k/a29k.mt: Obsolete.
5183 * config/a29k/tm-a29k.h: Obsolete.
5184 * config/a29k/tm-vx29k.h: Obsolete.
5185 * config/a29k/vx29k.mt: Obsolete.
5186
a9011d31
AC
51872002-01-05 Andrew Cagney <ac131313@redhat.com>
5188
5189 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
5190 with BFD_ENDIAN_BIG.
5191
9299404e
AC
51922002-01-05 Andrew Cagney <ac131313@redhat.com>
5193
5194 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
5195 * configure, config.in: Re-generate.
5196 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
5197 * defs.h: Do not include <endian.h>.
5198
7e89e357
JT
51992002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
5200
5201 * acconfig.h (HAVE_PT_GETXMMREGS): New.
5202 * config.in: Regenerate.
5203 * configure.in: Update copyright years.
5204 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
5205 * configure: Regenerate.
5206 * i386bsd-nat.c: Update copyright years.
5207 (fill_gregset): Use regcache_collect.
5208 (fetch_inferior_registers): Only fetch integer registers
5209 if requested to do so. Add support for XMM registers
5210 using PT_GETXMMREGS.
5211 (store_inferior_registers): Only store integer registers
5212 if requested to do so. Add support for XMM registers
5213 using PT_SETXMMREGS.
5214 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
5215 (store_inferior_registers): Remove.
5216 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
5217 (fetch_elfcore_registers): New function.
5218 (i386nbsd_elfcore_fns): New.
5219 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
5220 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
5221 i386bsd-nat.o.
5222 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5223 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
5224 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
5225 * config/i386/tm-nbsd.h: Update copyright years.
5226 (HAVE_SSE_REGS): Define.
5227 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
5228 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
5229 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
5230 (SIGCONTEXT_PC_OFFSET): Remove.
5231 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
5232
a752853e
AC
52332002-01-05 Andrew Cagney <ac131313@redhat.com>
5234
5235 * configure.tgt: Remove powerpc-*-macos* target.
5236 * config/m68k/xm-mpw.h: Delete file.
5237 * config/xm-mpw.h: Delete file.
5238 * ser-mac.c: Delete file.
5239 * mpw-make.sed: Delete file.
5240 * mpw-config.in: Delete file.
5241 * mac-xdep.c: Delete file.
5242 * mac-gdb.r: Delete file.
5243 * mac-defs.h: Delete file.
5244 * mac-nat.c: Delete file.
5245 * config/powerpc/macos.mh: Delete file.
5246 * config/powerpc/macos.mt: Delete file.
5247 * config/powerpc/nm-macos.h: Delete file.
5248 * config/powerpc/tm-macos.h: Delete file.
5249 * source.c (openp, open_source_file): Remove obsolete code.
5250 * top.c (gdb_readline): Ditto.
5251 * utils.c (query): Ditto.
5252 * event-top.c (display_gdb_prompt): Ditto.
5253 * Makefile.in (ser-mac.o): Delete obsolete target.
5254 * NEWS: Update.
5255
d7449b42
AC
52562002-01-04 Andrew Cagney <ac131313@redhat.com>
5257
5258 * defs.h (BIG_ENDIAN): Delete macro definition.
5259 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
5260 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
5261 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
5262 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
5263 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
5264 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
5265 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
5266 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
5267 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
5268 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
5269 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
5270 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
5271 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
5272 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
5273 * gdbarch.c: Re-generate.
5274
356374e8
DJ
52752002-01-04 Daniel Jacobowitz <drow@mvista.com>
5276
5277 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
5278 for core files.
5279
a2b8f8f8
JT
52802002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5281
5282 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
5283
12466af9
AC
52842002-01-04 Andrew Cagney <ac131313@redhat.com>
5285
5286 * value.h (value_ptr): Delete typedef.
5287
3549ab40
JT
52882002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5289
5290 * i386nbsd-nat.c: Update copyright years.
5291 Include i386-tdep.h.
5292
fedbd091
EZ
52932002-01-04 Elena Zannoni <ezannoni@redhat.com>
5294
5295 * stabsread.c: Update copyright years.
5296
5297 From Debashis Mahata <debashis.mahata@wipro.com>:
5298 (read_struct_fields): Deal with Sun C compiler erroneous stab
5299 output for structs and unions.
fec8b34f 5300 Fix PR gdb/269.
fedbd091 5301
eb43544b
DJ
53022002-01-04 Daniel Jacobowitz <drow@mvista.com>
5303
5304 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
5305 prototype.
5306
1514d34e
DJ
53072002-01-04 Daniel Jacobowitz <drow@mvista.com>
5308
5309 * cp-abi.c: Fix whitespace.
5310 (baseclass_offset): New wrapper function.
5311 * cp-abi.h (baseclass_offset): Add prototype.
5312 (struct cp_abi_ops): Add baseclass_offset pointer.
5313
5314 * valops.c (vb_match): Move to...
5315 * gnu-v2-abi.c (vb_match): here.
5316 * valops.c (baseclass_offset): Move to...
5317 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
5318
5319 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
5320
5321 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
5322 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
5323 * hpacc-abi.c (init_hpacc_ops): Likewise.
5324
7f8c9282
DJ
53252002-01-04 Daniel Jacobowitz <drow@mvista.com>
5326
5327 * valops.c (find_overload_match): Accept obj as a
5328 reference parameter. Update it before returning.
5329 * value.h (find_overload_match): Update prototype.
5330 * eval.c (evaluate_subexp_standard): Pass object to
5331 find_overload_match by reference.
5332
f23631e4
AC
53332002-01-03 Andrew Cagney <ac131313@redhat.com>
5334
5335 * valarith.c: Replace value_ptr with struct value pointer. Remove
5336 register attribute from value declarations.
5337 * valops.c: Ditto.
5338 * value.h: Ditto.
5339 * scm-lang.c (scm_lookup_name): Ditto.
5340
79e10fab 53412002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 5342
79e10fab
AC
5343 Abstract the functionality of iterating over mapped memory
5344 regions into a general purpose iterator function.
abf22e64 5345 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
5346 iterator for memory sections.
5347 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
5348 (solib_mappings_callback): New function, callback for above.
5349 (info_proc_mappings): Reimpliment using iterate_over_mappings.
5350 (info_mappings_callback): New function, callback for above.
5351
5352 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
5353
c5ad026a
MK
53542002-01-01 Mark Kettenis <kettenis@gnu.org>
5355
d2a7c97a
MK
5356 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
5357 * i386-tdep.c: Include "elf-bfd.h".
5358 (process_note_abi_tag_sections): New function.
5359 (i386_gdbarch_init): Add code to recognize various OS/ABI
5360 combinations.
5361
c5ad026a
MK
5362 * maint.c (_initialize_maint_cmds): Add missing \ in
5363 string-literal.
5364
a1a5b71e 5365For older changes see ChangeLog-2001
c906108c
SS
5366\f
5367Local Variables:
5368mode: change-log
5369left-margin: 8
5370fill-column: 74
5371version-control: never
5372End: