]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Fix check for overflow of relocation for the Thumb BL instruction.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
13e49980
MK
12002-05-06 Mark Kettenis <kettenis@gnu.org>
2
3 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
4 (i387_fill_fxsave): Likewise.
5
997b20b8
AO
62002-05-05 Alexandre Oliva <aoliva@redhat.com>
7
8 * alpha-tdep.c (alpha_extract_return_value): Don't use
9 non-constant array size in prototype.
10
535c96ce
AC
112002-05-04 Andrew Cagney <ac131313@redhat.com>
12
13 From Brian Taylor <briant at model dot com>:
14 * ui-out.c (ui_out_field_core_addr): Use the function
15 longest_local_hex_string_custom'to format addresses > 32 bits
16 wide.
17
18 * ui-out.c (ui_out_field_core_addr): Update comment.
19
bedfa57b
AC
202002-05-04 Andrew Cagney <ac131313@redhat.com>
21
22 * stack.c (select_and_print_frame): Make static. Delete the
23 parameter `level'.
24 (func_command): Update call.
25 (select_frame_command): Delete code computing the frame level.
26 * frame.h (select_and_print_frame): Delete declaration.
27
f621c63e
AC
282002-05-04 Andrew Cagney <ac131313@redhat.com>
29
30 * sparc-tdep.c (sparc_get_saved_register): Comment why
31 get_prev_frame call is safe.
32
0f7d239c
AC
332002-05-04 Andrew Cagney <ac131313@redhat.com>
34
35 * frame.h (select_frame): Delete level parameter.
36 * stack.c (select_frame): Update. Use frame_relative_level to
37 obtain the frame's level.
38 (select_and_print_frame): Update call.
39 (select_frame_command): Ditto.
40 (up_silently_base): Ditto.
41 (down_silently_base): Ditto.
42 * ocd.c (ocd_start_remote): Ditto.
43 * remote-rdp.c (remote_rdp_open): Ditto.
44 * remote-mips.c (mips_initialize): Ditto.
45 (common_open): Ditto.
46 * remote-e7000.c (e7000_start_remote): Ditto.
47 * m3-nat.c (select_thread): Ditto.
48 * hppa-tdep.c (child_get_current_exception_event): Ditto.
49 (child_get_current_exception_event): Ditto.
50 * varobj.c (varobj_create): Ditto.
51 (varobj_update): Ditto.
52 (c_value_of_root): Ditto.
53 * tracepoint.c (finish_tfind_command): Ditto.
54 * corelow.c (core_open): Ditto.
55 * arch-utils.c (generic_prepare_to_proceed): Ditto.
56 * thread.c (info_threads_command): Ditto.
57 (switch_to_thread): Ditto.
58 * infrun.c (normal_stop): Ditto.
59 (restore_selected_frame): Ditto.
60 (restore_inferior_status): Ditto.
61 * breakpoint.c (insert_breakpoints): Ditto.
62 (watchpoint_check): Ditto.
63 (bpstat_stop_status): Ditto.
64 (do_enable_breakpoint): Ditto.
65 * blockframe.c (flush_cached_frames): Ditto.
66 (reinit_frame_cache): Ditto.
67
71d6c7b1
AC
682002-05-04 Andrew Cagney <ac131313@redhat.com>
69
70 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
71 maintainer.
72
cda6c68a
JB
732002-05-04 Jim Blandy <jimb@redhat.com>
74
75 * gdbtypes.c (replace_type): Doc fix.
76
5c1c87f0
AC
772002-05-04 Andrew Cagney <ac131313@redhat.com>
78
79 * valprint.c (strcat_longest): Delete commented out function.
80 Update copyright.
81
cd9bfe15
AC
822002-05-04 Andrew Cagney <ac131313@redhat.com>
83
84 * MAINTAINERS: Mark a29k as deleted.
85 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
86 Move new configurations to the top.
87 * configure.tgt: Remove a29k.
88 * config/a29k/tm-vx29k.h: Delete.
89 * config/a29k/vx29k.mt: Delete.
90 * config/a29k/tm-a29k.h: Delete.
91 * config/a29k/a29k-udi.mt: Delete.
92 * config/a29k/a29k.mt: Delete.
93 * a29k-tdep.c: Delete.
94 * remote-udi.c: Delete.
95 * remote-mm.c: Delete.
96 * remote-eb.c: Delete.
97 * remote-adapt.c: Delete.
98 * Makefile.in: Remove obsolete code.
99 * gdbserver/Makefile.in: Ditto.
100 * config/s390/s390x.mt: Ditto.
101 * config/s390/s390.mt: Ditto.
102 * config/sparc/sparclynx.mh: Ditto.
103 * config/sparc/linux.mh: Ditto.
104 * config/pa/hppaosf.mh: Ditto.
105 * config/pa/hppabsd.mh: Ditto.
106 * config/ns32k/nbsd.mt: Ditto.
107 * config/mips/vr5000.mt: Ditto.
108 * config/m68k/sun3os4.mh: Ditto.
109 * config/m68k/nbsd.mt: Ditto.
110 * config/m68k/m68klynx.mh: Ditto.
111 * config/m32r/m32r.mt: Ditto.
112 * config/i386/x86-64linux.mt: Ditto.
113 * config/i386/nbsdelf.mt: Ditto.
114 * config/i386/nbsd.mt: Ditto.
115 * config/i386/i386lynx.mh: Ditto.
116
bf0c5130
AC
1172002-05-04 Andrew Cagney <ac131313@redhat.com>
118
119 * target.c (debug_print_register): New function. Handle oversize
120 registers.
121 (debug_to_fetch_registers): Call.
122 (debug_to_store_registers): Call.
123
2ae1c2d2
JB
1242002-05-03 Jim Blandy <jimb@redhat.com>
125
13a393b0
JB
126 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
127 (read_type): Doc fix.
128 * gdbtypes.c (replace_type): Doc fix.
129
2ae1c2d2
JB
130 * stabsread.c (multiply_defined_struct): New complaint.
131 (read_struct_type): If the type we were passed isn't empty, or
132 incomplete, don't read the new struct type into it; complain,
133 and return the original type unchanged. Take a new `type_code'
134 argument, which is the type code for the new type.
135 (read_type): Rather than storing the type's type code here, pass
136 it as an argument to read_struct_type, and let that take care of
137 storing it. That way, we don't overwrite the original type code,
138 so read_struct_type can use it to decide whether we're overwriting
139 something we shouldn't.
140 (complain_about_struct_wipeout): New function.
141
8de9bdc4
AC
1422002-05-03 Andrew Cagney <ac131313@redhat.com>
143
144 * gdbarch.sh: Assert that gdbarch is non-NULL.
145 * gdbarch.c: Regenerate.
146
f773fdbb
JM
1472002-05-03 Jason Merrill <jason@redhat.com>
148
149 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
150 and return NULL.
151
0e04a514
ML
1522002-05-03 Michal Ludvig <mludvig@suse.cz>
153
154 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
155 (x86_64_dwarf2gdb_regno_map_length),
156 (x86_64_dwarf2_reg_to_regnum): Added.
157 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
158 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
159 (_initialize_x86_64_tdep): Synced with the change above.
160 (x86_64_skip_prologue): Reformulated message.
161
065432a8
PM
1622002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
163
164 * f-exp.y: Also use new prev_lexptr variable
165 to improve error reporting. Based on Michael Snyder
166 2002-04-24 dated patch to c-exp.y.
167 * jv-exp.y: Likewise.
168 * m2-exp.y: Likewise.
169
a3162708
EZ
1702002-05-02 Elena Zannoni <ezannoni@redhat.com>
171
172 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
173 we are dealing with vectors.
174
03620c38
PM
1752002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
176
177 * config/m68k/tm-nbsd.h: Obvious fix,
178 correct machine name.
179
6604db2e
PM
1802002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
181
182 * p-typeprint.c (pascal_type_print_base): Add support
183 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
184
0906b739
PM
1852002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
186
187 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
188 for fondamental pascal 'char' type.
189
e2625b33
PM
1902002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
191
192 * p-lang.h (is_pascal_string_type): Declaration changed,
193 new sixth argument of type char ** added.
194 * p-lang.c (is_pascal_string_type): Implementation
195 changed. Args length_pos, length_size, string_pos, char_size
196 can now be NULL. New argument arrayname set to the field
197 name of the char array. Return value set to char array
198 field index plus one.
199 * p-valprint.c (pascal_val_print): Adapt to new declaration of
200 is_pascal_string_type function.
201
cf17c188
AC
2022002-05-02 Andrew Cagney <cagney@redhat.com>
203
204 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
205 <cagney@redhat.com> change.
206 * gdbarch.c: Regenerate.
207
52bca491
AC
2082002-05-02 Andrew Cagney <cagney@redhat.com>
209
210 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
211 before probing for a new one. Detect errorenous gdbarch_init
212 functions.
213 * gdbarch.c: Regenerate.
214
d5e72505
AC
2152002-05-01 Andrew Cagney <cagney@redhat.com>
216
217 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
218 * config/mcore/tm-mcore.h: Ditto. Update copyright.
219 * config/v850/tm-v850.h: Ditto. Update copyright.
220
af566d9f
AC
2212002-04-30 Andrew Cagney <ac131313@redhat.com>
222
223 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
224 current_gdbarch.
225
880d85fa
MS
2262002-04-30 Michael Snyder <msnyder@redhat.com>
227
94c30b78
MS
228 * arm-tdep.c: Whitespace clean-ups.
229 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
230 should have been removed as part of 4/24 change.
231
6f5987a6
KB
2322002-04-30 Kevin Buettner <kevinb@redhat.com>
233
234 * rs6000-tdep.c: Added comment describing how fpscr register
235 numbers were chosen.
236
1a113c93
MS
2372002-04-30 Michael Snyder <msnyder@redhat.com>
238
239 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
240
9a6f53fe
EZ
2412002-04-29 Elena Zannoni <ezannoni@redhat.com>
242
243 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
244 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
245 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
246
11ed25ac
KB
2472002-04-29 Kevin Buettner <kevinb@redhat.com>
248
249 From Louis Hamilton <hamilton@redhat.com>:
250 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
251 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
252 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
253 not bfd-private xcoff data, to determine wordsize.
254 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
255
ae232405
AC
2562002-04-29 Andrew Cagney <ac131313@redhat.com>
257
258 GDB 5.2 released from 5.2 branch.
259
91fd20f7
ML
2602002-04-29 Michal Ludvig <mludvig@suse.cz>
261
262 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
263 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
264 (x86_64_register_info_table): Added comments with register numbers.
265
2dc5091b
EZ
2662002-04-29 Elena Zannoni <ezannoni@redhat.com>
267
268 * rs6000-tdep.c (rs6000_extract_return_value,
269 rs6000_store_return_value): Handle returning vectors.
270 (rs6000_gdbarch_init): Use
271 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
272 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
273 New function.
274 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
275 vectors.
276 (ppc_sysv_abi_push_arguments): Handle vector parameters.
277 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
278
2b9848d8
PM
2792002-04-24 Pierre Muller <ics.u-strasbg.fr>
280
281 * hpread.c (hpread_psymtab_to_symtab_1,
282 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
283 with fprintf_unfiltered (gdb_stderr,...).
284
f8d17dc5
PM
2852002-04-24 Pierre Muller <ics.u-strasbg.fr>
286
287 * remote-array.c (printf_monitor, write_monitor,
288 array_insert_breakpoint, array_remove_breakpoint ):
289 Replace fprintf (stderr,...
290 with fprintf_unfiltered (gdb_stderr,....
291 * remote-es.c: Likewise.
292 * remote-os9k.c: Likewise.
293 * remote-st.c: Likewise.
294
2f2f1ad1
AS
2952002-04-28 Andreas Schwab <schwab@suse.de>
296
297 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
298 linux-proc.o and gcore.o.
299
b6779aa2
AC
3002002-04-26 Michal Ludvig <mludvig@suse.cz>
301
302 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
303 code without frame pointers.
304
7e57f5f4
AC
3052002-04-26 Andrew Cagney <ac131313@redhat.com>
306
307 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
308 ON_STACK is needed.
309
2ceb85d0
BE
3102002-04-26 Ben Elliston <bje@redhat.com>
311
312 * target.c (do_xfer_memory): Correct reference to the new option
313 "trust-readonly-sections".
314
f5f8a009
EZ
3152002-04-26 Elena Zannoni <ezannoni@redhat.com>
316
317 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
318 * gdbtypes.c (recursive_dump_type): Output the vector flag.
319 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
320 vectors.
321 (read_array_type): Record the fact that this array type is really a
322 vector (i.e. are passed in by value).
323
5868c862
JT
3242002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
325
326 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
327 * alpha-tdep.c (alpha_sigcontext_addr): New function.
328 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
329 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
330 * alpha-linux-tdep.c: Include frame.h.
331 (alpha_linux_sigcontext_addr): New function.
332 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
333 alpha_linux_sigcontext_addr.
334 * alpha-osf1-tdep.c: Include gdbcore.h.
335 (alpha_osf1_sigcontext_addr): New function.
336 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
337 alpha_osf1_sigcontext_addr.
338 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
339 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
340
bfb01f37
AC
3412002-04-26 Andrew Cagney <ac131313@redhat.com>
342
343 * stack.c (selected_frame_level):
344 (select_frame): Do not set selected_frame_level.
345 * frame.h (selected_frame_level): Delete declaration.
346
15813d3f
AC
3472002-04-26 Andrew Cagney <ac131313@redhat.com>
348
349 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
350 convert_from_func_ptr-addr when AIX / PowerOpen.
351
6096c27a
AC
3522002-04-25 Andrew Cagney <ac131313@redhat.com>
353
354 * valops.c (hand_function_call): Call
355 generic_save_call_dummy_addr.
356 * frame.h (generic_save_call_dummy_addr): Declare.
357 * blockframe.c (struct dummy_frame): Add fields call_lo and
358 call_hi.
359 (generic_find_dummy_frame): Check for PC in range call_lo to
360 call_hi instead of entry_point_address.
361 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
362 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
363 (generic_save_call_dummy_addr): New function.
364
f510d44e
DM
3652002-04-24 David S. Miller <davem@redhat.com>
366
367 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
368 sparc_skip_prologue.
369 (sparc_skip_prologue): Kill frameless_p arg, and use line number
370 information to find prologue when possible.
371 (sparc_prologue_frameless_p): Call examine_prologue directly.
372 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
373 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
374 second argument.
375 (SKIP_PROLOGUE): Likewise.
376
15d72a92
JT
3772002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
378
379 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
380 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
381 indicate that the condition it was testing is always true.
382 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
383 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
384 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
385
accc6d1f
JT
3862002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
387
388 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
389 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
390 tdep->jb_pc and tdep->jb_elt_size.
391 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
392 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
393 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
394 * alpha-nat.c (get_longjmp_target): Remove.
395 (JB_ELEMENT_SIZE): Ditto.
396 (JB_PC): Ditto.
397 * alpha-tdep.c (alpha_get_longjmp_target): New function.
398 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
399 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
400 to alpha_get_longjmp_target.
401 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
402 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
403 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
404
1bfdc549
AC
4052002-04-25 Andrew Cagney <ac131313@redhat.com>
406
407 * README: Update to GDB 5.2.
408
1bd316f0
AC
4092002-04-25 Andrew Cagney <ac131313@redhat.com>
410
411 * gdbarch.sh (LC_ALL): Set to `c'.
412
2e5ff58c
TR
4132002-04-25 Theodore A. Roth <troth@verinet.com>
414
415 * avr-tdep.c: Ran through gdb_indent.sh.
416
e33ce519
TR
4172002-04-25 Theodore A. Roth <troth@verinet.com>
418
419 * MAINTAINERS: Add myself as AVR maintainer.
420 * NEWS: Note new target avr.
421
8818c391
TR
4222002-04-25 Theodore A. Roth <troth@verinet.com>
423
424 * Makefile.in: Add support for AVR target.
425 * configure.tgt: Add support for AVR target.
426 * avr-tdep.c: New file
427 * config/avr/avr.mt: New file.
428
79509c2d
TR
4292002-04-25 Theodore A. Roth <troth@verinet.com>
430
431 * MAINTAINERS: Add myself to write-after-approval.
432
dac8068e
PM
4332002-04-24 Pierre Muller <ics.u-strasbg.fr>
434
435 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
436 with fprintf_unfiltered (gdb_stderr,....
437
25bf3106
PM
4382002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
439
440 Fix PR gdb/508.
441 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
442
24467a86
PM
4432002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
444
445 * p-exp.y: Also use new prev_lexptr variable
446 to improve error reporting. Based on Michael Snyder
447 2002-04-24 dated patch to c-exp.y.
448
95b80706
JT
4492002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
450
451 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
452 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
453 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
454 to 0.
455 * config/alpha/tm-alpha.h: Remove forward decls of struct type
456 and struct value.
457 (FUNCTION_START_OFFSET): Remove.
458 (BREAKPOINT): Ditto.
459
e90cc612
JT
4602002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
461
462 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
463 * NEWS: Ditto.
464
6c72f9f9
JT
4652002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
466
467 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
468 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
469 alpha_linux_pc_in_sigtramp.
470 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
471 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
472 alpha_osf1_pc_in_sigtramp.
473 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
474 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
475 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
476 alphafbsd_pc_in_sigtramp.
477 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
478 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
479 alphanbsd_pc_in_sigtramp.
480 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
481 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
482
5e4f3379
JT
4832002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
484
485 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
486
da8ca43d
JT
4872002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
488
489 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
490 alphanbsd-tdep.c.
491 (alphanbsd-nat.o): New dependency list.
492 (alphanbsd-tdep.o): Ditto.
493 * NEWS: Note new native NetBSD/alpha configuration.
494 * alphanbsd-nat.c: New file.
495 * alphanbsd-tdep.c: Ditto.
496 * configure.host (alpha*-*-netbsd*): New host.
497 * configure.tgt (alpha*-*-netbsd*): New target.
498 * config/alpha/nbsd.mh: New file.
499 * config/alpha/nbsd.mt: Ditto.
500 * config/alpha/nm-nbsd.h: Ditto.
501 * config/alpha/tm-nbsd.h: Ditto.
502
36a6271d
JT
5032002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
504
505 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
506 (alpha-osf1-tdep.o): New dependency list.
507 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
508 and skip_sigtramp_frame members.
509 * alpha-linux-tdep.c: Include gdbcore.h.
510 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
511 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
512 * alpha-osf1-tdep.c: New file.
513 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
514 alpha-osf1-dep.c.
515 (alpha_frame_past_sigtramp_frame): New function.
516 (alpha_dynamic_sigtramp_offset): Ditto.
517 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
518 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
519 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
520 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
521 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
522 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
523 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
524 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
525 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
526 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
527 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
528 to find_solib_trampoline_target.
529 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
530 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
531 (SKIP_TRAMPOLINE_CODE): Remove.
532 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
533 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
534 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
535 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
536 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
537 (PROC_SIGTRAMP_MAGIC): Ditto.
538 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
539 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
540 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
541 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
542 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
543
2f4bc57b
JT
5442002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
545
546 * NEWS: Note that Alpha targets are now multi-arch.
547
665132f9
MS
5482002-04-24 Michael Snyder <msnyder@redhat.com>
549
550 * parser-defs.h (prev_lexptr): New external variable.
551 * parse.c (parse_exp_1): Set prev_lexptr to null before
552 calling the language-specific parser.
553 * c-exp.y (yylex): Set prev_lexptr to start of current token.
554 (yyerror): Use prev_lexptr in error reporting.
555
32872fa7
DJ
5562002-04-24 Daniel Jacobowitz <drow@mvista.com>
557
558 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
559 * gregset.h: If FILL_FPXREGSET is defined, provide
560 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
561 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
562 is defined, call fill_fpxregset.
563
57e76fac
MS
5642002-04-24 Roland McGrath <roland@frob.com>
565
566 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
567 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
568 (supply_gregset, supply_fpregset): New functions.
569
570 * gnu-nat.c (gnu_find_memory_regions): New function.
571 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
572 (gnu_xfer_memory): Add a cast.
573
f43845b3
MS
5742002-04-24 Michael Snyder <msnyder@redhat.com>
575
576 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
577 loop. Add handling for "str lr, [sp, #-4]!" and for saves
578 of argument regs ("str r(0123), [r11, #-nn"]).
579 (arm_skip_prologue): Better handling for frameless functions.
580 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
581 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
582
a0abec03
AC
583Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
584
585 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
586 NUM_PSEUDO_REGS can be used.
587
d7bd68ca
AC
5882002-04-24 Andrew Cagney <ac131313@redhat.com>
589
590 * arch-utils.h: Update copyright.
591
592 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
593 * gdbarch.h, gdbarch.c: Re-generate.
594
595 * inferior.h (IN_SIGTRAMP): Delete definition.
596 * arch-utils.c (legacy_pc_in_sigtramp): New function.
597 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
598
599 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
600 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
601 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
602 (find_proc_framesize): Ditto.
603 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
604 (alpha_init_extra_frame_info): Ditto.
605 * infrun.c (handle_inferior_event): Ditto.
606 (handle_inferior_event): Ditto.
607 (check_sigtramp2): Ditto.
608 * blockframe.c (create_new_frame): Ditto.
609 (get_prev_frame): Ditto.
610 * ppc-linux-tdep.c: Update comments.
611 * i386-linux-tdep.c: Update comments.
612 * breakpoint.c (bpstat_what): Update comment.
613
d06f167a
ML
6142002-04-24 Michal Ludvig <mludvig@suse.cz>
615
616 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
617 (regsets_store_inferior_registers): Removed cast to int from
618 ptrace() calls.
619 * gdbserver/regcache.h: Added declaration of struct inferior_info.
620
4867e41e
DM
6212002-04-24 David S. Miller <davem@redhat.com>
622
21d83aa5
DM
623 * i960-tdep.c (register_in_window_p): New function.
624 (i960_find_saved_register): Use it instead of
625 REGISTER_IN_WINDOW_P.
626 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
627
4867e41e
DM
628 * symtab.h (find_stab_function_addr): Kill extern.
629 * minsyms.c (find_stab_function_addr): Remove from here...
630 * dbxread.c: ... to here, and mark it static.
631
69cdf6a2
DM
6322002-04-20 David S. Miller <davem@redhat.com>
633
634 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
635 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
636
5a595886
DM
6372002-04-21 David S. Miller <davem@redhat.com>
638
639 * remote-vxsparc.c (vx_read_register): Fix typo, we want
640 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
641 (vx_write_register): Likewise.
642
1da1a192
JB
6432002-04-23 J. Brobecker <brobecker@gnat.com>
644
645 * source.c (is_regular_file): New function.
646 (openp): Check wether file to open is a regular file
647 to avoid opening directories.
648
baa6f10b
JT
6492002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
650
651 * findvar.c (extract_signed_integer): Cast printf argument
652 to suppress format warning.
653 (extract_unsigned_integer): Likewise.
654 * infcmd.c (registers_info): Likewise.
655 * top.c (get_prompt_1): Likewise.
656 * valops.c (value_assign): Likewise.
657 * valprint.c (print_decimal): Likewise.
658
b2c4da81
L
6592002-04-22 H.J. Lu (hjl@gnu.org)
660
661 * c-exp.y (typebase): Support
662
663 [long|long long|short] [signed|unsigned] [int|]
664
665 and
666
667 signed [long|long long|short] int
668
f267bd6a
JT
6692002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
670
671 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
672 and vax-tdep.h.
673 * vax-tdep.h: New file.
674 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
675 Make several routines static.
676 (vax_get_saved_register): New function.
677 (vax_gdbarch_init): New function.
678 (_initialize_vax_tdep): Register vax_gdbarch_init.
679 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
680 Remove macros now under the control of gdbarch.
681
da3c6d4a
MS
6822002-04-22 Michael Snyder <msnyder@redhat.com>
683
11d3b27d
MS
684 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
685 Some whitespace and coding standards tweaks.
da3c6d4a 686
a33f7558
JT
6872002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
688
689 * vax-tdep.c: Include regcache.h.
690 (vax_call_dummy_words): New.
691 (sizeof_vax_call_dummy_words): New.
692 (vax_fix_call_dummy): New function.
693 (vax_saved_pc_after_call): Ditto.
694 * config/vax/tm-vax.h: Don't include regcache.h.
695 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
696 (CALL_DUMMY): Remove.
697 (CALL_DUMMY_WORDS): Define.
698 (SIZEOF_CALL_DUMMY_WORDS): Define.
699 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
700
47a73475
MS
7012002-04-18 Michael Snyder <msnyder@redhat.com>
702
703 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
704
52efde73
JT
7052002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
706
707 * vax-tdep.c (vax_frame_chain): New function.
708 (vax_push_dummy_frame): Ditto.
709 (vax_pop_frame): Ditto.
710 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
711 (FRAMELESS_FUNCTION_INVOCATION): Use
712 generic_frameless_function_invocation_not.
713 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
714 (POP_FRAME): Use vax_pop_frame.
715
ea74468c
JT
7162002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
717
718 * vax-tdep.c (vax_store_struct_return): New function.
719 (vax_extract_return_value): Ditto.
720 (vax_store_return_value): Ditto.
721 (vax_extract_struct_value_address): Ditto.
722 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
723 vax_store_struct_return.
724 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
725 (STORE_RETURN_VALUE): Use vax_store_return_value.
726 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
727
5516aa92
JT
7282002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
729
730 * vax-tdep.c (vax_frame_saved_pc): New function.
731 (vax_frame_args_address_correct): Ditto.
732 (vax_frame_args_address): Ditto.
733 (vax_frame_locals_address): Ditto.
734 (vax_frame_num_args): Move code to be in proximity to
735 other frame-related functions.
736 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
737 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
738 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
739 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
740 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
741
36af0b35
L
7422002-04-22 H.J. Lu (hjl@gnu.org)
743
744 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
745 includedir.
746
ab62c900
JT
7472002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
748
749 * vax-tdep.c (vax_frame_init_saved_regs): New function.
750 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
751 (FRAME_INIT_SAVED_REGS): New macro.
752
7232b100
JT
7532002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
754
755 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
756
b70d2aee
JT
7572002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
758
759 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
760 where needed.
761 (fetch_osf_core_registers): Likewise.
762 (supply_gregset): Likewise.
763
a0e8a2d1
JB
7642002-04-22 J. Brobecker <brobecker@gnat.com>
765
766 * symfile.h (get_section_index): Define.
767 * symfile.c (get_section_index): New function.
768 * mdebugread.c (SC_IS_SBSS): New macro.
769 (SC_IS_BSS): Return true for the scBss storage class only, as
770 the scSBss storage class refers to the .sbss section.
771 (parse_partial_symbols): Discard the symbols which associated
772 section does not exist.
773 Make sure to use the .sbss section index for symbols which
774 storage class is scBss, rather than using the .bss section index.
775
51eb8b08
JT
7762002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
777
778 * vax-tdep.c: Update copyright years.
779 (vax_register_name): New function.
780 (vax_register_byte): Ditto.
781 (vax_register_raw_size): Ditto.
782 (vax_register_virtual_size): Ditto.
783 (vax_register_virtual_type): Ditto.
784 * config/vax/tm-vax.h: Update copyright years.
785 (REGISTER_NAMES): Remove.
786 (REGISTER_NAME): Define.
787 (REGISTER_BYTE): Use vax_register_byte.
788 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
789 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
790 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
791
6cc1c0a8
AC
7922002-04-21 Andrew Cagney <ac131313@redhat.com>
793
794 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
795 declaration
796 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
797
9319a2fe
DM
7982002-04-21 David S. Miller <davem@redhat.com>
799
800 * arch-utils.c (generic_prologue_frameless_p): Kill
801 SKIP_PROLOGUE_FRAMELESS_P code.
802 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
803 references.
804 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
805 * arc-tdep.c (arc_prologue_frameless_p): Implement.
806 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
807 references.
808 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
809 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
810 (sparc_gdbarch_init): Pass it to
811 set_gdbarch_prologue_frameless_p.
a0e8a2d1 812
e9ed6d01
JT
8132002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
814
815 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
816 (alphabsd-nat.o): New dependency list.
817
36012033
JT
8182002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
819
820 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
821 alphafbsd-tdep.c.
822 (alpha-linux-tdep.o): New dependency list.
823 (alphafbsd-tdep.o): Likewise.
824
3379287a
JT
8252002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
826
827 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
828 to here...
829 * alpha-tdep.c: ...from here.
830 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
831
4bcbd6cb
JT
8322002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
833
834 * config/alpha/tm-alpha.h: Move alpha_software_single_step
835 prototype from here...
836 * alpha-tdep.h: ...to here.
837
b31da25e
AC
8382002-04-21 Andrew Cagney <ac131313@redhat.com>
839
840 * frame.h (selected_frame_level): Document as deprecated.
841 (frame_relative_level): Declare.
842 * stack.c (frame_relative_level): New function.
843 (selected_frame_level): Document as deprecated.
844 (select_frame): Do not set the selected_frame_level.
845
846 * stack.c (frame_info, record_selected_frame): Update.
847 (frame_command, current_frame_command): Update.
848 (up_silently_base, up_command, down_silently_base): Update.
849 (down_command): Update.
850 * inflow.c (kill_command): Update.
851 * tracepoint.c (finish_tfind_command): Update.
852 * corelow.c (core_open): Update.
853 * thread.c (info_threads_command): Update.
854 (do_captured_thread_select): Update.
855 * infcmd.c (finish_command): Update.
856 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
857
9c1d6fe5
JT
8582002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
859
860 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
861
ab89facf
AC
8622002-04-21 Andrew Cagney <ac131313@redhat.com>
863
864 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
865 type const.
866
82a4efa1
JT
8672002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
868
869 * alphafbsd-tdep.c: Update copyright years. Include
870 alpha-tdep.h.
871 (alphafbsd_use_struct_convention): Make static.
872 (alphafbsd_init_abi): New function.
873 (_initialize_alphafbsd_tdep): New function.
874 * config/alpha/tm-fbsd.h: Update copyright years.
875 (USE_STRUCT_CONVENTION): Remove.
876
44dffaac
JT
8772002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
878
879 * alpha-tdep.c (alpha_abi_handler): New structure to describe
880 an Alpha ABI variant.
881 (alpha_abi_handler_list): Declare.
882 (alpha_gdbarch_register_os_abi): New function.
883 (alpha_gdbarch_init): Give registered ABI variant handlers a
884 chance to tweak the gdbarch once we have set up defaults.
885 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
886
65585be4
JT
8872002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
888
889 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
890 to standard_coerce_float_to_double.
891 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
892
d9b023cc
JT
8932002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
894
895 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
896 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
897 from gdbarch_tdep rather than a constant.
898 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
899 the default text address for all Alpha Unix ABIs.
900 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
901 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
902
dc129d82
JT
9032002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
904
905 * alpha-tdep.h: New file. Includes several Alpha target constants
906 taken from...
907 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
908 let gdbarch deal with.
909 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
910 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
911 to dependency list.
912 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
913 Alpha target register names.
914 * alphabsd-nat.c: Likewise.
915 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
916 Alpha target register names. Make serveral routines static.
917 (alpha_get_saved_register): New function.
918 (alpha_abi_names): New.
919 (process_note_abi_tag_sections): New function.
920 (get_elfosabi): New function.
921 (alpha_gdbarch_init): New function.
922 (alpha_dump_tdep): New function.
923 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
924
d49d1e0a
AC
9252002-04-21 Andrew Cagney <ac131313@redhat.com>
926
927 * frame.c (find_saved_register): Delete #ifdef
928 HAVE_REGISTER_WINDOWS code.
929 * config/sparc/tm-sparc.h: Update comments.
930 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
931
92e8c9ed
AC
9322002-04-21 Andrew Cagney <ac131313@redhat.com>
933
934 * i960-tdep.c (i960_find_saved_register): New function.
935 (i960_get_saved_register): New function.
936 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
937 (i960_get_saved_register): Declare.
938 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
939
e1925118
DM
9402002-04-20 David S. Miller <davem@redhat.com>
941
942 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
943
29673b29
AC
9442002-04-20 Andrew Cagney <ac131313@redhat.com>
945
946 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
947 instead of NUM_PSEUDO_REGS.
948
6c86dcd5
DM
9492002-04-20 David S. Miller <davem@redhat.com>
950
951 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
952 GDB_MULTI_ARCH_PARTIAL
953 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
954 define, let tm-sp64.h do it.
955
aa40ec90
JT
9562002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
957
958 * frame.c (find_saved_register): Avoid a NULL pointer
959 dereference and actually walk the frame list.
960
0f79675b
AC
9612002-04-20 Andrew Cagney <ac131313@redhat.com>
962
963 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
964 sorted in most most-recent-used order. Document.
965 * gdbarch.h, gdbarch.c: Regenerate.
966
c04a1aa8
DJ
9672002-04-20 Daniel Jacobowitz <drow@mvista.com>
968
969 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
970 (add_inferior): Call create_register_cache.
971 (clear_inferiors): Call free_register_cache.
972 (inferior_regcache_data, set_inferior_regcache_data): New functions.
973 * gdbserver/regcache.c (struct inferior_regcache_data): New.
974 (registers): Remove.
975 (get_regcache): New function.
976 (create_register_cache, free_register_cache): New functions.
977 (set_register_cache): Don't initialize the register cache here.
978 (registers_to_string, registers_from_string, register_data): Call
979 get_regcache.
980 * gdbserver/regcache.h: Add prototypes.
981 * gdbserver/server.h: Likewise.
982
611cb4a5
DJ
9832002-04-20 Daniel Jacobowitz <drow@mvista.com>
984
985 * gdbserver/mem-break.c: New file.
986 * gdbserver/mem-break.h: New file.
987 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
988 dependencies.
989 * gdbserver/inferiors.c (struct inferior_info): Add target_data
990 member.
991 (clear_inferiors): Free target_data member if set.
992 (inferior_target_data, set_inferior_target_data): New functions.
993 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
994 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
995 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
996 (struct inferior_linux_data): New.
997 (linux_create_inferior): Use set_inferior_target_data.
998 (linux_attach): Likewise. Call add_inferior.
999 (linux_wait_for_one_inferior): New function.
1000 (linux_wait): Call it.
1001 (linux_write_memory): Add const.
1002 (initialize_low): Call set_breakpoint_data.
1003 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
1004 handling members.
1005 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
1006 call.
1007 * gdbserver/server.h: Include mem-break.h. Update inferior.c
1008 prototypes.
1009 * gdbserver/target.c (read_inferior_memory)
1010 (write_inferior_memory): New functions.
1011 * gdbserver/target.h (read_inferior_memory)
1012 (write_inferior_memory): Change macros to prototypes.
1013 (struct target_ops): Update comments. Add const to write_memory
1014 definition.
1015
f91305dd 10162002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
1017
1018 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
1019 instead of ->prev.
1020 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
1021 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
1022 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
1023 instead of ->prev.
1024
73d322b1
EZ
10252002-04-19 Elena Zannoni <ezannoni@redhat.com>
1026
1027 Fix PR gdb/471.
1028 * gdbtypes.c (init_simd_type): Rewrite using new functions.
1029 (build_builtin_type_vec128): Ditto.
1030 (append_composite_type_field): Fix calculation of type length in
1031 union case.
1032
ccd9a834
EZ
10332002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
1034
1035 * config/djgpp/README: Update.
1036
1037 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
1038 compiler warnings.
1039
a57f9e49
JT
10402002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
1041
1042 * alpha-tdep.c (setup_arbitrary_frame): Rename...
1043 (alpha_setup_arbitrary_frame): ...to this.
1044 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
1045 for alpha_setup_arbitrary_frame.
1046
f4f9705a
AC
10472002-04-18 Andrew Cagney <cagney@redhat.com>
1048
1049 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
1050 * gdbarch.h, gdbarch.c: Regenerate.
1051
1052 * defs.h (breakpoint_from_pc_fn): Delete type definition.
1053 * target.h (memory_breakpoint_from_pc): Update declaration.
1054 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
1055
1056 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
1057 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
1058 * mem-break.c (memory_breakpoint_from_pc): Ditto.
1059 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
1060 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
1061 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
1062 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
1063 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
1064 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
1065 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
1066 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
1067 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
1068
1069 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
1070 const pointer.
1071 * monitor.c (monitor_insert_breakpoint): Ditto.
1072 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
1073
1074 * config/mcore/tm-mcore.h: Update copyright.
1075 * mem-break.c: Ditto.
1076 * xstormy16-tdep.c: Ditto.
1077
29f319b8
PM
10782002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
1079
1080 * p-exp.y: Add precedence rule for '^' token.
1081 This removes the shift/reduce conflicts.
1082 Remove the comment concerning these shift/reduce conflicts.
1083
ebeac11a
EZ
10842002-04-18 Elena Zannoni <ezannoni@redhat.com>
1085
1086 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
1087 (registers_powerpc_nofp): New register set for processors
1088 without floating point unit.
1089
27c31547
DM
10902002-04-18 David S. Miller <davem@redhat.com>
1091
1092 * MAINTAINERS: Add myself to write-after-approval.
1093
47a73475
MS
10942002-04-17 Michael Snyder <msnyder@redhat.com>
1095
1096 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
1097
953836b2
AC
10982002-04-17 Andrew Cagney <ac131313@redhat.com>
1099
1100 * rs6000-tdep.c (frame_initial_stack_address): Use
1101 frame_register_read to read the alloca_reg.
1102
8b0d4340
AC
11032002-04-17 Andrew Cagney <ac131313@redhat.com>
1104
1105 * frame.c (find_saved_register): Find saved registers in the next
1106 not prev frame.
1107 Fix PR gdb/365.
1108
d8864532
AC
11092002-04-17 Andrew Cagney <ac131313@redhat.com>
1110
1111 * gdbarch.sh (LANG): Set to ``c''.
1112
36cc83a3
AC
11132002-04-15 Andrew Cagney <ac131313@redhat.com>
1114
1115 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
1116
2f4150cc 11172002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
1118
1119 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
1120 Update copyright.
1121
628703c6 1122 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc
AC
1123 Also fix PR gdb/391.
1124
56157b4a
AC
11252002-04-14 Andrew Cagney <ac131313@redhat.com>
1126
1127 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
1128 * aclocal.m4, configure: Re-generate.
1129 Fix PR gdb/391.
1130
6d1e3329
EZ
11312002-04-14 Elena Zannoni <ezannoni@redhat.com>
1132
1133 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
1134 instead of tm_print_insn.
1135
cb06fa07
EZ
11362002-04-14 Elena Zannoni <ezannoni@redhat.com>
1137
1138 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
1139
f208ba17
AC
11402002-04-14 Andrew Cagney <ac131313@redhat.com>
1141
1142 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
1143 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
1144 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
1145
20f01a46
DH
11462002-04-12 Don Howard <dhoward@redhat.com>
1147
1148 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
1149 max_user_call_depth.
1150 (init_cmd_lists): Initialize the new value;
1151 * cli/cli-script.c (execute_user_command): Limit the call depth of
1152 user defined commands. This avoids a core-dump when user commands
1153 are infinitly recursive.
1154
a88376a3
KB
11552002-04-12 Kevin Buettner <kevinb@redhat.com>
1156
1157 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
1158 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
1159 from tdep struct instead of DEFAULT_LR_SAVE.
1160 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
1161 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
1162 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
1163
f2172603
MS
11642002-04-12 Michael Snyder <msnyder@redhat.com>
1165
694f61fb 1166 * Remote.c: Spelling fix.
20fe79c8
MS
1167 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
1168 If no symbol found for "sbrk", try "_sbrk".
1169 (make_output_phdrs): Use bfd_section_name.
1170 (gcore_copy_callback): Use bfd_section_name.
62995fc4 1171 * eval.c: Indentation fix-ups.
169a7369
MS
1172 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
1173 in case it gets applied to an address that is already
1174 in the instruction space.
de74f71f
MS
1175 * cli/cli-decode.c (help_list): Allow long lines to wrap.
1176 * symfile.c: Fix indentation, long lines.
f2172603
MS
1177 * source.c: White space fix-up.
1178
cda5a58a
AC
11792002-04-12 Andrew Cagney <cagney@redhat.com>
1180
1181 * defs.h (read_relative_register_raw_bytes): Delete declaration.
1182 * frame.c (frame_register_read): New function. Return non-zero on
1183 success.
1184 (read_relative_register_raw_bytes_for_frame): Delete.
1185 (read_relative_register_raw_bytes): Delete.
1186 * frame.h (frame_register_read): Declare.
1187 * d30v-tdep.c: Update Copyright. Use frame_register_read.
1188 * sh-tdep.c: Ditto.
1189 * infcmd.c (do_registers_info): Ditto.
1190 * hppa-tdep.c: Ditto.
1191 * rs6000-tdep.c: Ditto.
1192 * h8500-tdep.c: Ditto.
1193 * mips-tdep.c: Ditto.
1194 * h8300-tdep.c: Ditto.
1195 * z8k-tdep.c: Ditto.
1196
2ea5f656
KB
11972002-04-12 Kevin Buettner <kevinb@redhat.com>
1198
1199 From Jimi X <jimix@watson.ibm.com>:
1200 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
1201 64-bit SysV ABI.
1202
27b15785
KB
12032002-04-12 Kevin Buettner <kevinb@redhat.com>
1204
1205 From Jimi X <jimix@watson.ibm.com>:
1206 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
1207 bfd info.
1208
5d57ee30
KB
12092002-04-12 Kevin Buettner <kevinb@redhat.com>
1210
1211 From Jimi X <jimix@watson.ibm.com>:
1212 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
1213 register sets for these processor variants.
1214
bc1e36ca
DJ
12152002-04-11 Daniel Jacobowitz <drow@mvista.com>
1216
1217 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
1218 registers which are allowed to fail to store.
1219 * gdbserver/linux-low.h (linux_target_ops): Likewise.
1220 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
1221 (ppc_cannot_store_register): FPSCR may not be storable.
1222 * regformats/reg-ppc.dat: Support FPSCR.
1223
e3f36dbd
KB
12242002-04-11 Kevin Buettner <kevinb@redhat.com>
1225
1226 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
1227 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
1228 Add fpscr as an invalid/unfetchable register.
1229 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
1230 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
1231 (fill_fpregset): Add support for register fpscr.
1232 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
1233 (fill_gregset): Account for the fact that register ``mq'' might
1234 not exist.
1235 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
1236 (registers_power): Add fpscr to register set at slot 71.
1237 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
1238 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
1239
943c9c25
MS
12402002-04-11 Michael Snyder <msnyder@redhat.com>
1241
1242 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
1243 * configure: Regenerate.
1244 * config.in: Regenerate.
1245 * acconfig.h: Add define for _SYSCALL32.
1246 * core-sol2.c: Remove #define _SYSCALL32.
1247 * solib-legacy.c: Remove #define _SYSCALL32.
1248
d8c0a2e7
AC
12492002-04-10 Andrew Cagney <ac131313@redhat.com>
1250
1251 * stack.c (select_frame): Cleanup internal error message, do not
1252 use %p.
1253
7cc19214
AC
12542002-04-10 Andrew Cagney <ac131313@redhat.com>
1255
1256 * stack.c (select_frame): Check that selected_frame and the
1257 specified level are as expected.
1258 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
1259 Update copyright.
1260 * frame.h (struct frame_info): Add field `level'. Update
1261 copyright.
1262 Work-in-progress PR gdb/464.
1263
67a2b77e
AC
12642002-04-10 Andrew Cagney <ac131313@redhat.com>
1265
1266 * maint.c (maint_print_section_info): Rename print_section_info.
1267 (print_bfd_section_info, print_objfile_section_info): Update.
1268 * inferior.h (struct gdbarch): Add opaque declaration.
1269 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
1270 * gdbarch.h: Regenerate.
1271
8cfda98c
ML
12722002-04-10 Michal Ludvig <mludvig@suse.cz>
1273
1274 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
1275 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
1276 (kernel_u_size): Added.
1277 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
1278 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
1279
ca439ad2
JI
12802002-04-04 Jim Ingham <jingham@apple.com>
1281
1282 * valarith.c (find_size_for_pointer_math): New function, either returns
1283 the size for a pointer's target, returns 1 for void *, or errors for
1284 incomplete types.
1285 (value_add, value_sub): use find_size_for_pointer_math.
1286
2f2893d9
DJ
12872002-04-09 Daniel Jacobowitz <drow@mvista.com>
1288
1289 * linux-low.c (linux_look_up_symbols): New hook.
1290 (linux_target_ops): Add linux_look_up_symbols.
1291 * remote-utils.c (decode_address): New function.
1292 (look_up_one_symbol): New function.
1293 * server.c (handle_query): Call target look_up_symbols hook.
1294 * server.h (look_up_one_symbol): Add prototype.
1295 * target.h (struct target_ops): Add look_up_symbols hook.
1296
2ec06d2e
DJ
12972002-04-09 Daniel Jacobowitz <drow@mvista.com>
1298
d64b8841
DJ
1299 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
1300 * ChangeLog: Correct paths in last ChangeLog entry.
1301
13022002-04-09 Daniel Jacobowitz <drow@mvista.com>
1303
1304 * gdbserver/linux-low.h: Remove obsolete prototypes.
2ec06d2e
DJ
1305 (struct linux_target_ops): New.
1306 (extern the_low_target): New.
d64b8841 1307 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
2ec06d2e
DJ
1308 (register_addr): Use the_low_target explicitly.
1309 (fetch_register): Likewise.
1310 (usr_fetch_inferior_registers): Likewise.
1311 (usr_store_inferior_registers): Likewise.
d64b8841 1312 * gdbserver/linux-arm-low.c (num_regs): Remove.
2ec06d2e
DJ
1313 (arm_num_regs): Define.
1314 (arm_regmap): Renamed from regmap, made static.
1315 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
1316 made static.
1317 (arm_cannot_store_register): Renamed from cannot_store_register,
1318 made static.
1319 (the_low_target): New.
d64b8841 1320 * gdbserver/linux-i386-low.c (num_regs): Remove.
2ec06d2e
DJ
1321 (i386_num_regs): Define.
1322 (i386_regmap): Renamed from regmap, made static.
1323 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
1324 made static.
1325 (i386_cannot_store_register): Renamed from cannot_store_register,
1326 made static.
1327 (the_low_target): New.
d64b8841 1328 * gdbserver/linux-ia64-low.c (num_regs): Remove.
2ec06d2e
DJ
1329 (ia64_num_regs): Define.
1330 (ia64_regmap): Renamed from regmap, made static.
1331 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
1332 made static.
1333 (ia64_cannot_store_register): Renamed from cannot_store_register,
1334 made static.
1335 (the_low_target): New.
d64b8841 1336 * gdbserver/linux-m68k-low.c (num_regs): Remove.
2ec06d2e
DJ
1337 (m68k_num_regs): Define.
1338 (m68k_regmap): Renamed from regmap, made static.
1339 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
1340 made static.
1341 (m68k_cannot_store_register): Renamed from cannot_store_register,
1342 made static.
1343 (the_low_target): New.
d64b8841 1344 * gdbserver/linux-mips-low.c (num_regs): Remove.
2ec06d2e
DJ
1345 (mips_num_regs): Define.
1346 (mips_regmap): Renamed from regmap, made static.
1347 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
1348 made static.
1349 (mips_cannot_store_register): Renamed from cannot_store_register,
1350 made static.
1351 (the_low_target): New.
d64b8841 1352 * gdbserver/linux-ppc-low.c (num_regs): Remove.
2ec06d2e
DJ
1353 (ppc_num_regs): Define.
1354 (ppc_regmap): Renamed from regmap, made static.
1355 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
1356 made static.
1357 (ppc_cannot_store_register): Renamed from cannot_store_register,
1358 made static.
1359 (the_low_target): New.
d64b8841 1360 * gdbserver/linux-s390-low.c (num_regs): Remove.
2ec06d2e
DJ
1361 (s390_num_regs): Define.
1362 (s390_regmap): Renamed from regmap, made static.
1363 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
1364 made static.
1365 (s390_cannot_store_register): Renamed from cannot_store_register,
1366 made static.
1367 (the_low_target): New.
d64b8841 1368 * gdbserver/linux-sh-low.c (num_regs): Remove.
2ec06d2e
DJ
1369 (sh_num_regs): Define.
1370 (sh_regmap): Renamed from regmap, made static.
1371 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
1372 made static.
1373 (sh_cannot_store_register): Renamed from cannot_store_register,
1374 made static.
1375 (the_low_target): New.
d64b8841 1376 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2ec06d2e
DJ
1377 (the_low_target): New.
1378
96cb11df
AC
13792002-04-09 Andrew Cagney <ac131313@redhat.com>
1380
1381 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
1382 override FP_REGNUM with frame->fp. Update copyright.
1383 * parse.c (num_std_regs, std_regs): Delete.
1384 (target_map_name_to_register): Do not search std_regs. Update
1385 function description.
1386 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
1387 declarations. Update copyright.
1388 Fix PR gdb/251.
1389
c3a3ccc7
DJ
13902002-04-09 Daniel Jacobowitz <drow@mvista.com>
1391
1392 * gdbserver/Makefile.in: Add stamp-h target.
1393 * gdbserver/configure.in: Create stamp-h.
1394 * gdbserver/configure: Regenerated.
1395
ce3a066d
DJ
13962002-04-09 Daniel Jacobowitz <drow@mvista.com>
1397
1398 * gdbserver/inferiors.c: New file.
1399 * gdbserver/target.c: New file.
1400 * gdbserver/target.h: New file.
1401 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
1402 dependencies.
1403 * gdbserver/linux-low.c (inferior_pid): New static variable,
1404 moved from server.c.
1405 (linux_create_inferior): Renamed from create_inferior.
1406 Call add_inferior. Return 0 on success instead of a PID.
1407 (linux_attach): Renamed from myattach.
1408 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
1409 (linux_thread_alive): Renamed from mythread_alive.
1410 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1411 child dies.
1412 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1413 (regsets_store_inferior_registers): Correct error message.
1414 Add missing ``return 0''.
1415 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1416 (linux_store_registers): Renamed from store_inferior_registers.
1417 (linux_read_memory): Renamed from read_inferior_memory.
1418 (linux_write_memory): Renamed from write_inferior_memory.
1419 (linux_target_ops): New structure.
1420 (initialize_low): Call set_target_ops ().
1421 * gdbserver/remote-utils.c (unhexify): New function.
1422 (hexify): New function.
1423 (input_interrupt): Send signals to ``signal_pid''.
1424 * gdbserver/server.c (inferior_pid): Remove.
1425 (start_inferior): Update create_inferior call.
1426 (attach_inferior): Call add_inferior.
1427 (handle_query): New function.
1428 (main): Call handle_query for `q' packets.
1429 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
1430 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1431
0729219d
DJ
14322002-04-09 Daniel Jacobowitz <drow@mvista.com>
1433
1434 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
1435 dependencies.
1436 * gdbserver/configure.in: Check for <string.h>
1437 * gdbserver/configure: Regenerate.
1438 * gdbserver/config.in: Regenerate.
1439 * gdbserver/gdbreplay.c: Include needed system headers.
1440 (remote_open): Remove strchr prototype.
1441 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1442 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
1443 (supply_register_by_name): Likewise.
1444 (collect_register): Change buf argument to void *.
1445 (collect_register_by_name): Likewise.
1446 * gdbserver/regcache.h: Add missing prototypes.
1447 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1448 * gdbserver/server.c (handle_query): New function.
1449 (attached): New static variable, moved out of main.
1450 (main): Quiet longjmp clobber warnings.
1451 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1452 * gdbserver/utils.c (error): Remove NORETURN.
1453 (fatal): Likewise.
1454
97658e92
DJ
14552002-04-09 Daniel Jacobowitz <drow@mvista.com>
1456
1457 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
1458 after the last symbol in a block.
1459
6044e3eb
PM
14602002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
1461
1462 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
1463 is non zero as a found symbol.
1464
0406ec40
AC
14652002-04-08 Andrew Cagney <ac131313@redhat.com>
1466
1467 * findvar.c: Include "builtin-regs.h".
1468 (value_of_register): Call value_of_builtin_reg when applicable.
1469 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
1470 (target_map_name_to_register): Call
1471 builtin_reg_map_name_to_regnum.
1472 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
1473 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
1474 (builtin_regs_h): Define.
1475 (builtin-regs.o): New target.
1476 (findvar.o): Add $(builtin_regs_h).
1477 * builtin-regs.c, builtin-regs.h: New files.
1478 * std-regs.c: New file.
1479 Partial fix for PR gdb/251.
1480
56a6dfb9
KB
14812002-04-08 Kevin Buettner <kevinb@redhat.com>
1482
1483 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
1484 it's no longer required.
1485
3a808432
AC
14862002-04-08 Andrew Cagney <ac131313@redhat.com>
1487
1488 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
1489
7c40d541
KB
14902002-04-08 Kevin Buettner <kevinb@redhat.com>
1491
1492 From Jimi X <jimix@watson.ibm.com>:
1493 * rs6000-tdep.c (rs6000_software_single_step): Use
1494 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
1495 and size. Use target_insert_breakpoint() and
1496 target_remove_breakpoint() to insert and remove breakpoints
1497 instead of explicit memory reads and writes.
1498
cc9836a8
KB
14992002-04-08 Kevin Buettner <kevinb@redhat.com>
1500
1501 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
1502 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
1503 ELF_OBJECT_FORMAT ifdef.
1504
7495d1dc
KB
15052002-04-08 Kevin Buettner <kevinb@redhat.com>
1506
1507 From Jimi X <jimix@watson.ibm.com>:
1508 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
1509
4288e836
KB
15102002-04-08 Kevin Buettner <kevinb@redhat.com>
1511
1512 From Jimi X <jimix@watson.ibm.com>:
1513 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
1514 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
1515
a4e4e501
MK
15162002-04-07 Mark Kettenis <kettenis@gnu.org>
1517
1518 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
1519 s/asprintf/xasprintf/.
1520 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
1521
006defba
AC
15222002-04-07 Andrew Cagney <ac131313@redhat.com>
1523
1524 I believe Jeff Law denies responsability for this one:
1525 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
1526 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
1527 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
1528 Work-around for PR gdb/366.
1529
7aa83cac
EZ
15302002-04-07 Elena Zannoni <ezannoni@redhat.com>
1531
1532 * remote-e7000.c (write_small, e7000_read_inferior_memory,
1533 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
1534 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
1535
cf1fcca1
EZ
15362002-04-07 Elena Zannoni <ezannoni@redhat.com>
1537
1538 * sh-tdep.c (sh_fp_frame_init_saved_regs,
1539 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
1540 information.
1541
3f289e6f
AC
15422002-04-07 Andrew Cagney <ac131313@redhat.com>
1543
1544 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
1545 maintainer.
1546
129188f6
AC
15472002-04-07 Andrew Cagney <ac131313@redhat.com>
1548
1549 * README (Reporting Bugs in GDB): Document the bug web page as the
1550 prefered way of submitting bugs.
1551 Fix PR gdb/402.
1552
1200cd6e
AC
15532002-04-06 Andrew Cagney <ac131313@redhat.com>
1554
1555 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
1556 -1. Update comment.
1557 * gdbarch.h, gdbarch.c: Re-generate.
1558
2853c33c
AS
15592002-04-07 Andreas Schwab <schwab@suse.de>
1560
1561 * m68klinux-nat.c (fill_fpregset): Properly pass address of
1562 buffer to regcache_collect.
1563
c2169756
AC
15642002-04-06 Andrew Cagney <ac131313@redhat.com>
1565
1566 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
1567 * gdbarch.c, gdbarch.h: Re-generate.
1568
25f1b008
AC
15692002-04-06 Andrew Cagney <ac131313@redhat.com>
1570
1571 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
1572 declaration. Fix -Werror.
1573
59263426
DJ
15742002-04-05 Daniel Jacobowitz <drow@mvista.com>
1575
1576 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
1577 * gdbarch.c: Regenerate.
1578
f5db4da3
MS
15792002-04-05 Michael Snyder <msnyder@redhat.com>
1580
80f8a6eb
MS
1581 * breakpoint.c (clear_command): Rewrite middle section to
1582 combine two loops with identical control conditions.
1583 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
1584 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
1585
ad3dcc5c
L
15862002-04-05 H.J. Lu (hjl@gnu.org)
1587
1588 * solib-svr4.c (bkpt_names): Add "__start".
1589
f32e7a74
AC
15902002-04-04 Andrew Cagney <ac131313@redhat.com>
1591
1592 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
1593 as test for 64 bit target.
1594
8227c0ff
AC
15952002-04-05 Andrew Cagney <ac131313@redhat.com>
1596
1597 * h8500-tdep.c (h8500_write_fp): Delete function.
1598 * dwarf2cfi.c (cfi_write_fp): Document as not used.
1599 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
1600 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
1601 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
1602 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
1603 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
1604 (s390_write_fp):
1605 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
1606 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
1607 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
1608 (d10v_write_fp): Delete function.
1609 * inferior.h (write_fp, generic_target_write_fp): Delete
1610 declarations.
1611 * regcache.c (generic_target_write_fp): Delete function.
1612 (write_fp): Delete function.
1613 * gdbarch.sh (TARGET_WRITE_FP): Delete.
1614 * gdbarch.h, gdbarch.c: Regenerate.
1615 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
1616 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
1617 (sparc64_write_fp): Delete declaration.
1618 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
1619 (h8500_write_fp): Delete declaration.
1620
2757dd86
AC
16212002-04-04 Andrew Cagney <ac131313@redhat.com>
1622
1623 * sparc-tdep.c (sparc64_write_fp): Delete.
1624 (sparc_push_dummy_frame): Replace write_fp call with code to store
1625 the FP directly.
1626 (sparc_gdbarch_init): Do not initialize write_fp.
1627
c69255e1
KB
16282002-04-05 Kevin Buettner <kevinb@redhat.com>
1629
1630 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
1631 clause.
1632
ae767bfb
JB
16332002-03-29 Jim Blandy <jimb@redhat.com>
1634
1635 * stack.c (get_selected_block): Add new argument `addr_in_block',
1636 used to return the exact code address we used to select the block,
1637 not just the block.
1638 * blockframe.c (get_frame_block, get_current_block): Same.
1639 * frame.h (get_frame_block, get_current_block,
1640 get_selected_block): Update declarations.
1641 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
1642 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
1643
84d2ac95
MS
16442002-04-05 Michael Snyder <msnyder@redhat.com>
1645
1646 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
1647 warning message.
1648
596aa3bf
JB
16492002-04-05 J. Brobecker <brobecker@gnat.com>
1650
1651 * utils.c (xfullpath): New function.
1652 * defs.h (xfullpath): Add declaration.
1653 * source.c (openp): Use xfullpath in place of gdb_realpath to
1654 avoid resolving the basename part of filenames when the
1655 associated file is a symbolic link. This fixes a potential
1656 inconsistency between the filenames known to GDB and the
1657 filenames it prints in the annotations.
1658 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
1659 to be able to match a filename with either the real filename, or
1660 the name of any symbolic link to this file.
1661 (lookup_partial_symtab): Ditto.
1662
c02f5703
MS
16632002-04-04 Michael Snyder <msnyder@redhat.com>
1664
1665 * breakpoint.c: Add support for hardware breakpoints in overlays.
1666 (overlay_events_enabled): New state variable.
1667 (insert_breakpoints): Use overlay_events_enabled to decide
1668 whether to attempt to set a breakpoint at the overlay load addr.
1669 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1670 (remove_breakpoint): Use overlay_events_enabled to decide
1671 whether breakpoints need to be removed from overlay load addr.
1672 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1673 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
1674 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
1675 disable_overlay_breakpoints): Update overlay_events_enabled.
1676
5fb290d7
DJ
16772002-04-04 Daniel Jacobowitz <drow@mvista.com>
1678
1679 * dwarf2read.c (struct function_range): New.
1680 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
1681 (check_cu_functions): New.
1682 (read_file_scope): Initialize global function lists.
1683 Call dwarf_decode_line after processing children.
1684 (read_func_scope): Add to global function list.
1685 (dwarf_decode_lines): Call check_cu_functions everywhere
1686 record_line is called. Call record_line with a linenumber
1687 of 0 to mark sequence ends.
1688
7b3fabf0
ML
16892002-04-04 Michal Ludvig <mludvig@suse.cz>
1690
1691 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
1692 change sync with glibc.
1693
bce58c09
JB
16942002-04-03 Jim Blandy <jimb@redhat.com>
1695
1696 * configure.in: Call AC_C_INLINE.
1697 * configure: Regenerated.
1698
2fccf04a
DJ
16992002-04-01 Daniel Jacobowitz <drow@mvista.com>
1700
1701 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
1702 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
1703
2d1bfe2e
MK
17042002-03-31 Mark Kettenis <kettenis@gnu.org>
1705
a5941fbf
MK
1706 * NEWS: Mention gcore support on FreeBSD/i386.
1707
a90cd31d
MK
1708 * fbsd-proc.c: New file.
1709 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
1710 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
1711
2d1bfe2e
MK
1712 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
1713 while statement.
1714
9eb6e5a1
JB
17152002-03-29 Jim Blandy <jimb@redhat.com>
1716
1717 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
1718 unescaped newlines in string literals, but newer ones don't. So
1719 escape them.
1720
f02df580
MS
17212002-03-26 Michael Snyder <msnyder@redhat.com>
1722 Andrew Cagney <cagney@redhat.com>
1723
1724 * cli/cli-dump.c: New file. Dump memory to file,
1725 restore file to memory.
1726 * cli/cli-dump.h: New file.
1727 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 1728 * NEWS: Mention new commands.
f02df580 1729
109f874e
MS
17302002-03-28 Michael Snyder <msnyder@redhat.com>
1731
1732 * symfile.c (symbol_file_add): Move test for null symbols to later.
1733
520f6ade
AC
17342002-03-27 Andrew Cagney <ac131313@redhat.com>
1735
1736 From veksler at il.ibm.com:
1737 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
1738 the xstrduped original path.
1739 Fix PR gdb/417.
1740
d4654627
MS
17412002-03-27 Michael Snyder <msnyder@redhat.com>
1742
1743 * breakpoint.c (_initialize_breakpoint): Clean up help string.
1744 * infcmd.c (_initialize_infcmd): Ditto.
1745 * language.c (_initialize_language): Ditto.
1746 * symfile.c (_initialize_symfile): Ditto.
1747 * top.c (_init_main): Ditto.
1748 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1749
6be8bc0c
EZ
17502002-03-27 Elena Zannoni <ezannoni@redhat.com>
1751
1752 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
1753 vector registers handling.
1754 (skip_prologue): Handle new AltiVec instructions. Fill in new
1755 fields of frame data.
1756 (frame_get_saved_regs): Fill in information for AltiVec registers.
1757
12af6855
JB
17582002-03-27 Jim Blandy <jimb@redhat.com>
1759
1760 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
1761 a function; leave this macro here to invoke that function.
1762 (symbol_init_mangled_name): Declaration for that function.
1763 * symtab.c (symbol_init_mangled_name): New function.
1764
dc672865
AC
17652002-03-27 Andrew Cagney <ac131313@redhat.com>
1766
1767 * valarith.c: Replace strerror with safe_strerror.
1768 * tracepoint.c: Ditto.
1769 * lin-lwp.c: Ditto.
1770 * go32-nat.c: Ditto.
1771 * inflow.c: Ditto.
1772 * gnu-nat.c: Ditto.
1773
d96429cd
AS
17742002-03-27 Andreas Schwab <schwab@suse.de>
1775
1776 * event-top.c (command_line_handler): Remove useless if.
1777
7e336ba1
AJ
17782002-03-27 Andreas Jaeger <aj@suse.de>
1779
1780 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
1781 comment.
1782
de220d0f
ML
17832002-03-27 Michal Ludvig <mludvig@suse.cz>
1784
1785 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
1786 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
1787 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
1788 (x86_64_linux_dr_get_status, supply_gregset),
1789 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
1790 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
1791 (x86_64_register_info_table): Add.
1792 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
1793 (x86_64_register_raw_size, x86_64_register_virtual_type),
1794 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
1795 general x86_64_register_info_table.
1796 (i386_gdbarch_init): gdbarch_register_bytes is now set
1797 dynamicaly during initialization.
1798 * regformats/reg-x86-64.dat: Synced with changes to registers above.
1799 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 1800
0e98d0a7
DJ
18012002-03-27 Daniel Jacobowitz <drow@mvista.com>
1802
1803 * gdbserver/server.c (main): Call target_signal_to_host_p
1804 and target_signal_to_host on signals received from the remote.
1805 * gdbserver/remote-utils.c (prepare_resume_reply): Call
1806 target_signal_from_host on signals sent to the remote.
1807 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
1808 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
1809
3130066b
DJ
18102002-03-27 Daniel Jacobowitz <drow@mvista.com>
1811
1812 * signals/signals.c: Include "server.h" in gdbserver build.
1813 (target_signal_from_name): Don't use STREQ.
1814 (_initialize_signals): Likewise. Don't include function in
1815 gdbserver build.
1816
9aedf4f4
DJ
18172002-03-27 Daniel Jacobowitz <drow@mvista.com>
1818
1819 * signals.c: Moved to...
1820 * signals/signals.c: Here.
7e336ba1 1821 * Makefile (signals.o): Update.
9aedf4f4 1822
3fa41cdb
JL
18232002-03-26 Jeff Law (law@redhat.com)
1824
1825 * somread.c (som_symtab_read): Remove some commented out code and
1826 updated related comments. Do not set the minimal symbol table to
1827 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
1828 in a dynamic executable.
1829 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
1830 where we are unable to find the minimal symbol for the given
1831 PC value.
1832
ee677e8d
MS
18332002-03-25 Jeff Law (law@redhat.com)
1834
1835 * linux-proc.c (read_mapping): Scan up to end of line for filename.
1836
e76e1718
ML
18372002-03-25 Michal Ludvig <mludvig@suse.cz>
1838
1839 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
1840
18a642a1
AC
18412002-03-23 Andrew Cagney <ac131313@redhat.com>
1842
1843 * command.h: Update copyright.
1844 (struct cmd_list_element): Replace definition with opaque
1845 declaration.
1846 (enum cmd_types): Document that it will eventually be moved to
1847 cli/cli-decode.h
1848 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
1849 (MALLOCED_REPLACEMENT): Delete macro.
1850 * Makefile.in (cli_decode_h): Add $(command_h).
1851 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 1852 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
1853 * completer.c: Include "cli/cli-decode.h".
1854 * maint.c: Include "cli/cli-decode.h".
1855 * cli/cli-decode.h: Include "command.h".
1856 (enum command_class): Delete.
1857 (enum cmd_types): Comment out.
1858 (enum cmd_auto_boolean): Delete.
1859 (enum var_types): Delete.
1860
b2875cc0
AC
18612002-03-23 Andrew Cagney <ac131313@redhat.com>
1862
1863 * cli/cli-decode.c: Include "gdb_assert.h".
1864 (add_set_or_show_cmd): New static function.
1865 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
1866 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
1867 all fields, such as func, from the set command.
1868
3b45974e
AC
18692002-03-23 Andrew Cagney <ac131313@redhat.com>
1870
1871 * MAINTAINERS (sh-elf): Change warning flag to -w.
1872
823ca731
AC
18732002-03-23 Andrew Cagney <cagney@redhat.com>
1874
1875 * defs.h (error): Add printf format attribute.
1876 * thread-db.c (thread_from_lwp): Fix error format string.
1877 * stack.c (parse_frame_specification): Ditto.
1878 * cli/cli-decode.c (undef_cmd_error): Ditto.
1879 * scm-lang.c (scm_lookup_name): Ditto.
1880 * tracepoint.c (trace_error): Ditto.
1881 * remote-utils.c (usage): Ditto.
1882 * remote.c (compare_sections_command): Ditto.
1883 Fix PR gdb/328.
1884
0e101458
AC
18852002-03-22 Andrew Cagney <ac131313@redhat.com>
1886
1887 * gdbtypes.c (append_composite_type_field): New function.
1888 (init_composite_type): New function.
1889 * gdbtypes.h (append_composite_type_field): Declare.
1890 (init_composite_type): Ditto.
1891
8e0662df
EZ
18922002-03-22 Elena Zannoni <ezannoni@redhat.com>
1893
1894 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 1895 function.
8e0662df
EZ
1896 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
1897 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
1898 structure returning convention for SYSV ABI case, but not
1899 for GNU/Linux, FreeBSD, or NetBSD.
1900
3121eff0
DJ
19012002-03-22 Daniel Jacobowitz <drow@mvista.com>
1902
1903 * symtab.h (lookup_block_symbol): Add mangled_name argument
1904 to prototype.
1905
1906 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
1907 with new mangled_name argument.
1908 * linespec.c (decode_line_1): Likewise.
1909 * valops (value_of_this): Likewise.
1910 * symtab.c (lookup_transparent_type): Likewise.
1911 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
1912 (lookup_symbol): If we are given a mangled name, pass it down
1913 to lookup_symbol_aux.
1914 (lookup_block_symbol): If we are given a mangled name to check
1915 against, only return symbols which match it.
1916
349b409f
CF
19172002-03-22 Christopher Faylor <cgf@redhat.com>
1918
1919 * win32-nat.c (child_create_inferior): Check for proper shell to use
1920 here, in case the user changes it on the fly.
1921 (_initialize_inftarg): Remove shell path considerations.
1922
2a873819
EZ
19232002-03-21 Elena Zannoni <ezannoni@redhat.com>
1924
1925 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
1926 for gdbarch_max_register_raw_size and max_register_virtual_size.
1927 Adjust copyright year.
1928
a1b9830c
DJ
19292002-03-21 Daniel Jacobowitz <drow@mvista.com>
1930
1931 * dbxread.c (process_one_symbol): Extend the first N_SLINE
1932 in a function to cover the entire beginning of the function
1933 as well if it does not already.
1934
8b5790f2
TR
19352002-03-21 Tom Rix <trix@redhat.com>
1936
1937 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
1938 (rs6000_ptrace64): Renamed from ptrace64.
1939
bdbe5747
MH
19402002-03-20 Martin M. Hunt <hunt@redhat.com>
1941
1942 * gdbserver/remote-utils.c (remote_open): Don't call
1943 getprotobyname, we're all using TCP here so just use
1944 IPPROTO_TCP.
7e336ba1 1945 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
1946
19472002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 1948
bdbe5747
MH
1949 * regcache.c (_initialize_regcache): No need to call
1950 build_regcache() at this time; it gets called whenever
1951 the gdbarch changes.
1952
7781cd62
DB
19532002-03-20 David O'Brien <obrien@FreeBSD.org>
1954
1955 * sparc-nat.c: Include sys/param.h where possible.
1956
f65ca430
DJ
19572002-03-20 Daniel Jacobowitz <drow@mvista.com>
1958
1959 Fix PR gdb/422.
1960 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
1961 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
1962 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
1963 complex types.
1964 * stabsread.c (rs6000_builtin_type): Likewise.
1965 (read_sun_floating_type): Likewise.
1966
0c867556
PS
19672002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1968
1969 * stabsread.c (read_member_functions): Remove skip code for duplicate
1970 constructor/destructor methods. Use standard parsing for these
1971 methods and just do not chain them to the list of methods after
1972 parsing.
1973
12b9c64f
AO
19742002-03-19 Alexandre Oliva <aoliva@redhat.com>
1975
1976 * coffread.c: Remove redundant static declarations. Replace
1977 occurrences of `PTR' with `void *'.
1978 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
1979 * top.h (quit_cover): Likewise.
1980 * defs.h (catch_errors): Likewise.
1981
349c5d5f
AC
19822002-03-18 Andrew Cagney <ac131313@redhat.com>
1983
1984 * defs.h (XMALLOC): Define.
1985 * gdb-events.sh (XMALLOC): Delete macro.
1986 * gdb-events.c, gdb-events.h: Regenerate.
1987 * gdbarch.sh (XMALLOC): Delete macro.
1988 * gdbarch.c: Regenerate.
1989 * serial.c (XMALLOC): Delete macro.
1990 * ui-file.c (XMALLOC): Ditto.
1991 * ser-unix.h (XMALLOC): Ditto.
1992 * sh-tdep.c (XMALLOC): Ditto.
1993 * ui-out.c (XMALLOC): Ditto.
1994 * utils.c (XMALLOC): Ditto.
1995 * i386-tdep.c (XMALLOC): Ditto.
1996 * gdb-events.c (XMALLOC): Ditto.
1997 * d10v-tdep.c (XMALLOC): Ditto.
1998 * cli-out.c (XMALLOC): Ditto.
1999
2000 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
2001 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
2002 * ui-file.c, ui-out.c: Ditto.
2003
7d0766f3
AC
20042002-03-18 Andrew Cagney <ac131313@redhat.com>
2005
2006 * command.h (struct cmd_list_element): Add field context.
2007 (set_cmd_context, get_cmd_context): Declare.
2008 * cli/cli-decode.h: Ditto.
2009 * cli/cli-decode.c (get_cmd_context): New function.
2010 (set_cmd_context): New function.
2011 (add_cmd): Initialize context.
2012 Part of fixing PR gdb/145 and PR gdb/146.
2013
5913bcb0
AC
20142002-03-17 Andrew Cagney <ac131313@redhat.com>
2015
1868c04e
AC
2016 * cli/cli-decode.c (cmd_type): New function.
2017 * command.h (cmd_type): Declare.
2018 * infrun.c (set_schedlock_func): Call function cmd_type.
2019 * kod.c (kod_set_os): Call cmd_type.
2020 * cris-tdep.c (cris_version_update): Use function cmd_type.
2021 (cris_mode_update, cris_abi_update): Ditto.
2022
5913bcb0
AC
2023 * command.h: (execute_cmd_post_hook): Declare.
2024 (execute_cmd_pre_hook): Declare.
2025 * cli/cli-script.c (clear_hook_in_cleanup): New function.
2026 (execute_cmd_post_hook, execute_cmd_pre_hook): New
2027 functions. Execute pre/post hook while ensuring that afterwords
2028 hook_in is cleared.
2029 * top.c (execute_command): Use execute_cmd_post_hook, and
2030 execute_cmd_pre_hook to execute pre/post commands.
2031 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
2032 hook_stop_stub.
2033 (hook_stop_stub): Call execute_cmd_pre_hook.
2034
b51450c9
AC
20352002-03-17 Andrew Cagney <ac131313@redhat.com>
2036
2037 * kod.c (kod_set_os): Revert previous change. Is called by ``info
2038 set'' and this leads to a core dump. Move xstrdup of
2039 operating_system to after check that it is not NULL.
2040
f66c9f11
AC
20412002-03-17 Andrew Cagney <ac131313@redhat.com>
2042
8e694ecf
AC
2043 * kod.c (kod_set_os): Remove unnecessary check that
2044 ``command->type'' is set_cmd.
2045
f66c9f11
AC
2046 * valprint.c (set_input_radix): Use input_radix.
2047 (set_output_radix): Use output_radix.
2048 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
2049 isn't reverted.
2050
9d01611c
AC
20512002-03-16 Andrew Cagney <ac131313@redhat.com>
2052
2053 * value.h (struct value): Delete field ``substring_addr''. Change
2054 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
2055 force_core_addr_align and force_pointer_aligh.
2056
2057 * value.h (struct value): Fix typo in above change.
9d01611c 2058
4156bb53
PS
20592002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2060
2061 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
2062 to fix internal_error from ``maintenance print architecture''.
2063
0e5e3ea6
PS
20642002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2065
2066 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
2067 for gcc versions after gcc-2.8.1.
2068
9b013045
PS
20692002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2070
2071 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
2072 for method resolution. Restore adjustment of ``this'' pointer after
2073 calling value_struct_elt, which was accidentally removed during the
2074 HP merge.
2075
376c9600
AC
20762002-03-15 Andrew Cagney <ac131313@redhat.com>
2077
2078 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
2079 value_of_register.
2080 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
2081 get_saved_register.
2082 * value.h (value_of_register): Update.
2083
a4db0f07
RH
20842002-03-14 Richard Henderson <rth@redhat.com>
2085
2086 * configure.in: Detect declaration for canonicalize_file_name.
2087 * utils.c (canonicalize_file_name): Declare, if needed.
2088 (gdb_realpath): Prefer realpath if available and usable.
2089 * config.in, configure: Rebuild.
2090
96383835
RH
20912002-03-14 Richard Henderson <rth@redhat.com>
2092
2093 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
2094 a constant array bound.
2095
2096 * MAINTAINERS: Add myself to write-after-approval.
2097
75245b24
MS
20982002-03-14 Michael Snyder <msnyder@redhat.com>
2099
2100 * symfile.c (syms_from_objfile): Return immediately if no syms.
2101 (symbol_file_add): Return immediately if no syms.
2102 (find_sym_fns): Return immediately if no syms.
2103
e641a1ca
ML
21042002-03-13 Michal Ludvig <mludvig@suse.cz>
2105
2106 * gdbserver/remote-util.c (remote_open): Print remote-side's
2107 IP address when remote debugging over the network.
7e336ba1 2108
df08bfec
DB
21092002-03-12 David O'Brien <obrien@FreeBSD.org>
2110
2111 * config/sparc/fbsd.mh: Fix copyright.
2112 * config/sparc/fbsd.mt: Likewise.
2113
9a57864f
RE
21142002-03-11 Richard Earnshaw <rearnsha@arm.com>
2115
2116 * MAINTAINERS: Fix typo in name of gdb warnings option.
2117 (x86-64): Fix formating so that this can be parsed by awk.
2118
dd7bf85e
DJ
21192002-03-10 Daniel Jacobowitz <drow@mvista.com>
2120
2121 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
2122 * defs.h: Include "gdb/signals.h".
2123 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
2124
33a0a2ac
ML
21252002-03-10 Michal Ludvig <mludvig@suse.cz>
2126
2127 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 2128 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
2129 from x86-64-tdep.h
2130
dd824b04
DJ
21312002-03-10 Daniel Jacobowitz <drow@mvista.com>
2132 Don Howard <dhoward@redhat.com>
2133
2134 * mips-tdep.c (ST0_FR): Define.
2135 (mips2_fp_compat): New function, temporarily disabled.
2136 (mips_read_fp_register_single): New function.
2137 (mips_read_fp_register_double): New function.
2138 (mips_print_register): Use them.
2139 (do_fp_register_row): Likewise.
2140
6a41ff59
AC
21412002-03-09 Andrew Cagney <ac131313@redhat.com>
2142
2143 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
2144 approval''.
2145
4ea09c10
PS
21462002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2147
2148 * stabsread.c (read_member_functions): Fix is_stub test for
2149 static member functions, improve comment.
2150
6ccc741d
RE
21512002-03-07 Richard Earnshaw <rearnsha@arm.com>
2152
2153 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
2154 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
2155 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
2156 commands that set boolean values.
2157 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
2158 (arm_rdi_resume): Always initialize PC.
2159 (arm_rdi_open): Don't use rslt as a boolean.
2160 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
2161 (arm_rdi_fetch_registers, arm_rdi_store_registers)
2162 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
2163 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
2164
438013df
AO
21652002-03-06 Alexandre Oliva <aoliva@redhat.com>
2166
2167 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
2168 * configure: Rebuilt.
2169
70ed8774
SC
21702002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2171
2172 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
2173 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
2174
5ba2abeb
AC
21752002-03-06 Andrew Cagney <ac131313@redhat.com>
2176
2177 * cli/cli-decode.c (set_cmd_completer): New function.
2178 * command.h (set_cmd_completer): Declare.
2179 * cli/cli-decode.h (set_cmd_completer): Ditto.
2180
2181 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
2182 * cli/cli-cmds.c (init_cli_cmds): Ditto.
2183 * win32-nat.c (_initialize_inftarg): Ditto.
2184 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2185 * proc-api.c (_initialize_proc_api): Ditto.
2186 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
2187 * source.c (_initialize_source): Ditto.
2188 * exec.c (_initialize_exec): Ditto.
2189 * solib.c (_initialize_solib): Ditto.
2190 * top.c (init_main): Ditto.
2191 * tracepoint.c (_initialize_tracepoint): Ditto.
2192 * symfile.c (_initialize_symfile): Ditto.
2193 * printcmd.c (_initialize_printcmd): Ditto.
2194 * infcmd.c (_initialize_infcmd): Ditto.
2195 * corefile.c (_initialize_core): Ditto.
2196
f779ca99
AC
21972002-03-05 Andrew Cagney <ac131313@redhat.com>
2198
2199 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
2200
01a3934b
AC
22012002-03-05 Andrew Cagney <ac131313@redhat.com>
2202
2203 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
2204
37057839
AC
22052002-03-05 Andrew Cagney <ac131313@redhat.com>
2206
2207 * NEWS: Update headings, 5.2 has branched.
2208
c6ecbae5
DJ
22092002-03-04 Daniel Jacobowitz <drow@mvista.com>
2210
2211 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
2212 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
2213 (register_addr, REGISTER_RAW_SIZE): Likewise.
2214 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
2215 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
2216
e9f30c21
ML
22172002-03-03 Michal Ludvig <mludvig@suse.cz>
2218
2219 * MAINTAINERS (x86-64): Add myself.
2220 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
2221 changed value_ptr -> struct value *
2222
54394ac3
DB
22232002-03-01 David O'Brien <obrien@FreeBSD.org>
2224
2225 * configure.host (sparc64-*-freebsd): Add.
2226 * configure.tgt: Likewise.
2227 * config/sparc/fbsd.mh: New file.
2228 * config/sparc/fbsd.mt: Likewise.
2229 * config/sparc/nm-fbsd.h: Likewise.
2230 * config/sparc/tm-fbsd.h: Likewise.
2231
bfe95955
DJ
22322002-03-01 Daniel Jacobowitz <drow@mvista.com>
2233
2234 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
2235 regformats/reg-s390x.dat.
2236
f33c6cbf
AC
22372002-03-01 Andrew Cagney <ac131313@redhat.com>
2238
2239 * utils.c: Add FIXME explaining true/false problem.
2240
5ecaa7dd
AC
22412002-02-28 Andrew Cagney <ac131313@redhat.com>
2242
2243 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
2244
2a251cc2
MC
22452002-02-28 Michael Chastain <mec@shout.net>
2246
2247 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
2248
6a8031a3 22492002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
2250
2251 * gdbserver/linux-s390-low.c: New file.
2252 * regformats/reg-s390.dat: New file.
2253 * regformats/reg-s390x.dat: New file.
2254 * gdbserver/configure.srv: Add S/390.
2255 * gdbserver/Makefile.in: Add S/390.
2256 * configure.tgt: Enable gdbserver for S/390.
2257
ac469903
EZ
22582002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
2259
2260 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
2261 first line of the doc string for "info dos", except at the end of
2262 the sentence, since the short help stops at the first period.
2263
985cb1a3
JM
22642002-02-28 Jason Merrill <jason@redhat.com>
2265
2266 * dwarf2read.c (dwarf_cfi_name): Add new codes.
2267
c570663e
FF
22682002-02-27 Fred Fish <fnf@redhat.com>
2269
2270 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
2271 comment (dumy -> dummy).
2272
43630227
PS
22732002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2274
2275 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
2276
b84911e8
RB
22772002-02-27 Rodney Brown <rbrown64@csc.com.au>
2278
2279 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
2280
58caa3dc
DJ
22812002-02-27 Daniel Jacobowitz <drow@mvista.com>
2282
2283 * gdbserver/acconfig.h: New file.
2284 * gdbserver/i387-fp.c: New file.
2285 * gdbserver/i387-fp.h: New file.
2286 * gdbserver/linux-x86-64.c: New file.
2287 * regformats/reg-x86-64.dat: New file.
2288 * configure.tgt: Add x86_64-*-linux* gdbserver support.
2289 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
2290 * gdbserver/configure.in: Add support for regsets.
2291 * gdbserver/config.in: Regenerate.
2292 * gdbserver/configure: Regenerate.
2293 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
2294 * gdbserver/linux-low.h: New file.
2295 * gdbserver/linux-low.c: Include "linux-low.h". Add support
2296 for regsets.
2297 * gdbserver/linux-arm-low.c: Include "linux-low.h".
2298 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
2299 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
2300 * gdbserver/linux-mips-low.c: Include "linux-low.h".
2301 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
2302 * gdbserver/linux-sh-low.c: Include "linux-low.h".
2303 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
2304 "i387-fp.h". Add PTRACE_GETREGS and friends.
2305 * gdbserver/regcache.c (supply_register): New function.
2306 (supply_register_by_name): New function.
2307 (collect_register): New function.
2308 (collect_register_by_name): New function.
2309
93652174
DJ
23102002-02-27 Daniel Jacobowitz <drow@mvista.com>
2311
2312 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
2313 (config.status): Add configure.srv dependency.
2314 (server_h): Add config.h dependency.
2315
a02e4a61
DJ
23162002-02-27 Daniel Jacobowitz <drow@mvista.com>
2317
2318 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
2319 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
2320 * gdbserver/configure.srv: Change i386-*-linux* to use
2321 reg-i386-linux.o.
2322
ce0eebec
AC
23232002-02-26 Andrew Cagney <ac131313@redhat.com>
2324
2325 * x86-64-tdep.c: Re-indent. Update copyright date.
2326
82dbc5f7
AC
23272002-02-26 Andrew Cagney <ac131313@redhat.com>
2328
2329 From Michal Ludvig <mludvig@suse.cz>:
2330 * x86-64-tdep.c (value.h): Delete.
2331 (gdb_assert.h): Include.
2332 (x86_64_register_convert_to_virtual,
2333 x86_64_register_convert_to_raw ): Add check which lets only
2334 floating-point values to be converted.
2335 (value_push): Delete.
2336 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
2337 (i386_gdbarch_init): Number of register_bytes fixed.
2338
e4621584
AC
23392002-02-26 Andrew Cagney <ac131313@redhat.com>
2340
2341 * MAINTAINERS: Add x86-64 target.
2342
81a9a963
AC
23432002-02-26 Andrew Cagney <ac131313@redhat.com>
2344
2345 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
2346 * osfsolib.c (solib_map_sections): Ditto.
2347 * irix5-nat.c (solib_map_sections): Ditto.
2348 * corelow.c (gdb_check_format): Ditto.
2349 * symfile.c (symfile_bfd_open): Ditto.
2350 * solib.c (solib_map_sections): Ditto.
2351 Fix PR gdb/354.
7e336ba1 2352
0f017ab9
AC
23532002-02-26 Andrew Cagney <ac131313@redhat.com>
2354
2355 * remote.c (_initialize_remote): By default, disable ``e'' and
2356 ``E'' step out-of-range packets.
2357
75738c29
AS
23582002-02-26 Andreas Schwab <schwab@suse.de>
2359
2360 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
2361 m68k_linux_frame_saved_pc.
2362 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
2363 in_sigtramp.
2364 (SIGCONTEXT_PC_OFFSET): Remove.
2365 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
2366 m68k_linux_sigtramp_saved_pc): New functions.
2367 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
2368 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
2369 (UCONTEXT_PC_OFFSET): Define.
2370 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
2371 non-RT and RT signal trampolines.
2372
7e8ed687
RE
23732002-02-26 Richard Earnshaw <rearnsha@arm.com>
2374
2375 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
2376 (TARGET_NBPG, STACK_END_ADDR): Delete
2377 (VARIABLES_INSIDE_BLOCK): Delete.
2378
6972bc8b
AC
23792002-02-25 Andrew Cagney <ac131313@redhat.com>
2380
2381 * utils.c (perror_with_name): Make string parameter constant.
2382 (print_sys_errmsg): Ditto.
2383 (query): Ditto.
2384 * defs.h (perror_with_name): Update.
2385 (print_sys_errmsg): Update.
2386 (query): Update.
2387
aa32f823
DJ
23882002-02-25 Daniel Jacobowitz <drow@mvista.com>
2389
2390 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
2391 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
2392
19caaa45
PS
23932002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2394
2395 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
2396 if it already matches the current architecture from the exec file.
2397 Include arch-utils.h for gdbarch_info_init prototype.
2398 * Makefile.in (rs6000-nat.o): Update dependencies.
2399
d951901f
EZ
24002002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
2401
2402 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
2403 list of exported variables.
2404
7ea81414
DJ
24052002-02-24 Daniel Jacobowitz <drow@mvista.com>
2406
2407 * gdbserver/configure.srv: New file.
2408 * gdbserver/configure.in: Use configure.srv instead
2409 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
2410 from it.
2411 * gdbserver/configure: Regenerated.
2412 * gdbserver/terminal.h: New file.
2413 * gdbserver/Makefile.in: Update for configure changes. Remove
2414 more unneeded include paths.
2415
080fe24b
AC
24162002-02-24 Andrew Cagney <ac131313@redhat.com>
2417
2418 From wiz at danbala:
2419 * config/sparc/tm-sp64.h: Fix grammar and typos.
2420 Fix PR gdb/287.
2421
8605d56e
AC
24222002-02-24 Andrew Cagney <ac131313@redhat.com>
2423
2424 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
2425 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
2426 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
2427 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
2428 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
2429 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
2430 * s390-tdep.c: Ditto.
92362027
AC
2431 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
2432 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
2433 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
2434 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
2435 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
2436 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
2437 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
2438 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
2439 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
2440 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 2441 Fix PR gdb/378.
7e336ba1 2442
8ed32cc0
AC
24432002-02-23 Andrew Cagney <ac131313@redhat.com>
2444
a3007b6f
AC
2445 * lin-thread.c: Delete file.
2446 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
2447 to gdb_proc_service.h.
2448 * configure: Re-generate.
2449
50a9e2f1
AC
2450 * ocd.c (ocd_open): Do not try to open the "ocd" device.
2451 * serial.c (serial_open): Delete check for "ocd".
2452 Fix PR gdb/349.
2453
8b6e7932
AC
2454 * Makefile.in (linux-thread.o): Delete target.
2455 * linux-thread.c: Delete file.
2456
d155c46b
AC
2457 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
2458 renamed SH files to be consistent.
2459
8ed32cc0
AC
2460 * symtab.c (sort_search_symbols): Use xfree.
2461
0e18d038
RE
24622002-02-23 Richard Earnshaw <rearnsha@arm.com>
2463
2464 * arm-linux-tdep.c (arm_linux_init_abi): Register
2465 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
2466 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
2467 definition with undef, since we don't want the sysvr4 definition.
2468 (SKIP_TRAMPOLINE_CODE): Likewise.
2469
27aac7ff
AC
24702002-02-23 Andrew Cagney <ac131313@redhat.com>
2471
2472 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
2473
2474 * configure.in: (AC_CHECK_FUNCS) Added test for
2475 canonicalize_file_name Regenerated.
2476 * config.in, configure: Regenerated.
2477 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
2478 defined use canonicalize_file_name.
7e336ba1 2479
65a6e0ee
MC
24802002-02-23 Michael Chastain <mec@shout.net>
2481
2482 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
2483
47b95330
AC
24842002-02-23 Andrew Cagney <ac131313@redhat.com>
2485
2486 * README: Remove references to cygnus.com.
2487 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
2488 dot com'' form. Remove references to cygnus.com and sourceware.
2489
696f451b
AC
24902002-02-23 Andrew Cagney <ac131313@redhat.com>
2491
2492 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
2493 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
2494 1003.1-2001 no longer allows "head -1".
2495 * gdb/Makefile.in (version.c): Likewise.
2496 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
2497 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
2498 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
2499
bbaca940
AC
25002002-02-23 Andrew Cagney <ac131313@redhat.com>
2501
2502 * cli/cli-decode.c (cmd_cfunc_eq): New function.
2503 * command.h (cmd_cfunc_eq): Declare.
2504 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
2505
2506 * cli/cli-cmds.h (is_complete_command): Change parameter to a
2507 ``struct cmd_list_element *''.
2508 * cli/cli-cmds.c (is_complete_command): Update. Use
2509 cmd_cfunc_eq.
2510 * top.c (execute_command): Pass the command to
2511 is_complete_command.
2512 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
2513
b8b8b047
AC
25142002-02-23 Andrew Cagney <ac131313@redhat.com>
2515
2516 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
2517 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
2518 architecture defines.
2519 * s390-tdep.c (s390_gdbarch_init): Likewise.
2520
19d3fc80
RE
25212002-02-23 Richard Earnshaw <rearnsha@arm.com>
2522
2523 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
2524 (arm_linux_push_arguments): Likewise.
2525 (arm_linux_init_abi): Register them. Also register linux-specific
2526 call_dummy_words.
2527 (find_minsym_and_objfile): Use strcmp, not STREQ.
2528 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
2529 (arm_linux_call_dummy_words): Delete declaration.
2530 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
2531 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
2532 declarations.
2533 (LOWEST_PC): Delete.
2534
3ab13650
PS
25352002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2536
2537 * maint.c (print_section_info): Do not prepend `0x' to filepos
2538 output, it will be handled by local_hex_string_custom.
2539
19d3fc80 25402002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
2541
2542 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
2543 (store_newfpe_double, store_newfpe_extended, store_fpregister)
2544 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
2545
d85a5daf
JB
25462002-02-22 Jim Blandy <jimb@redhat.com>
2547
2548 Indicate that the bcache functions don't change the strings
2549 they're passed.
2550 * bcache.h (bcache, hash): Add `const' keywords to declarations.
2551 * bcache.c (bcache, hash): Add `const' keywords to definitions.
2552
eeb25b8a
PM
25532002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
2554
2555 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
2556
6badb179
CF
25572002-02-21 Christopher Faylor <cgf@redhat.com>
2558
2559 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
2560 find the complete path to a loaded DLL.
2561
e8717518
FF
25622002-02-21 Fred Fish <fnf@redhat.com>
2563
2564 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
2565 that marks the end of the range of a function, enter a line number
2566 entry that has a line number of zero and a PC offset that matches
2567 the end of the function. This starts a range of PC's for which no
2568 line number information is known.
2569 * symtab.c (find_pc_sect_line): If our best fit is in a range of
2570 PC's for which no line number info is found (line number is zero)
2571 then we didn't find any valid line information.
2572 * symtab.h: Document use of zero line number entry.
2573
9abe5450
EZ
25742002-02-21 Elena Zannoni <ezannoni@redhat.com>
2575
2576 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
2577 (have_ptrace_getvrregs): Define for run time checks.
2578 (gdb_vrregset_t): New type for Altivec register handling.
2579 (fetch_register, store_register): Fetch/store altivec register
2580 when needed.
2581 (fetch_altivec_register, store_altivec_register): New functions.
2582 (supply_vrregset, fill_vrregset): New functions.
2583 (fetch_altivec_registers, store_altivec_registers): New functions.
2584 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
2585 registers as well.
2586
aaa38bb5
AJ
25872002-02-21 Jiri Smid <smid@suse.cz>
2588
2589 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
2590
b34db576
RE
25912002-02-21 Richard Earnshaw <rearnsha@arm.com>
2592
2593 * Makefile.in (armnbsd-nat.o): Update dependencies.
2594 * armnbsd-nat.c (supply_gregset): New function. Common code to
2595 supply the integer register set.
2596 (supply_fparegset): New function. Similar for FPA registers.
2597 (fetch_regs, fetch_fp_regs): Use them.
2598 (fetch_core_registers): Likewise.
2599 (fetch_elfcore_registers): New function.
2600 (arm_netbsd_elfcore_fns): New core-file type specification.
2601 (_initialize_arm_netbsd_nat): Register it.
2602
3e56fc4b
RE
26032002-02-21 Richard Earnshaw <rearnsha@arm.com>
2604
2605 * armnbsd-nat.c: Include gdbcore.h.
2606 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
2607 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
2608 'void' to declaration, to shut up ARI.
2609 (fetch_core_registers): Make static. Rewrite using supply_register.
2610 (arm_netbsd_core_fns): New core-file type specification.
2611 (_initialize_arm_netbsd_nat): New function.
2612
097f6b0b
CF
26132002-02-21 Christopher Faylor <cgf@redhat.com>
2614
2615 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
2616 value.
2617
c914e0cc
CF
26182002-02-20 Christopher Faylor <cgf@redhat.com>
2619
2620 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
2621 fails.
2622
385fa495
DJ
26232002-02-20 Daniel Jacobowitz <drow@mvista.com>
2624
2625 * jv-exp.y (parse_number): Change type of implicit longs
2626 to builtin_type_uint64.
2627
e5f1222d
DJ
26282002-02-20 Daniel Jacobowitz <drow@mvista.com>
2629
2630 * gdbserver/linux-low.c (mywait): Change argument to waitpid
2631 to be an integer instead of a `union wait'.
2632
75c9abc6
DJ
26332002-02-20 Daniel Jacobowitz <drow@mvista.com>
2634
2635 * mips-linux-nat.c: Call the operating system GNU/Linux.
2636 * mips-linux-tdep.c: Likewise.
2637 * mips-tdep.c: Likewise.
2638
551792a5
DJ
26392002-02-20 Daniel Jacobowitz <drow@mvista.com>
2640
2641 Fix PR gdb/265.
2642 * jv-exp.y (parse_number): Handle 64-bit integers.
2643
ee6e2b82
DJ
26442002-02-20 Daniel Jacobowitz <drow@mvista.com>
2645
2646 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
2647 AC_STDC_HEADERS to AC_HEADER_STDC.
2648 * gdbserver/configure: Regenerated.
2649
a48442a0
RE
26502002-02-20 Richard Earnshaw <rearnsha@arm.com>
2651
2652 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
2653 is defined.
2654 * sparc-tdep.c (get_longjmp_target): Likewise.
2655
fe419ffc
RE
26562002-02-20 Richard Earnshaw <rearnsha@arm.com>
2657
2658 * News: Add news about ARM and Multi-arch. Mention the new target
2659 arm*-*-netbsd*.
2660
5832ed7e
JB
26612002-02-19 Jim Blandy <jimb@redhat.com>
2662
2663 * stabsread.c (error_type_complaint): Improve error message.
2664
84563040
DJ
26652002-02-19 Daniel Jacobowitz <drow@mvista.com>
2666
2667 * gdbserver/README: Update documentation.
2668 * gdbserver/configure.in: Update configury to match documentation.
2669 * gdbserver/Makefile.in: Likewise.
2670 * gdbserver/configure: Regenerated.
2671 * gdbserver/aclocal.m4: New file, generated by aclocal.
2672 * gdbserver/config.in: New file, generated by autoheader.
2673
375fd65b
RE
26742002-02-19 Richard Earnshaw <rearnsha@arm.com>
2675
2676 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
2677 armnbsd-nat.c.
2678
08216dd7
RE
26792002-02-19 Richard Earnshaw <rearnsha@arm.com>
2680
2681 * arm-tdep.h (enum arm_float_model): New enum.
2682 (struct gdbarch_tdep): Add fp_model.
2683 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
2684 up floating-point conversions until we know the floating-point model
2685 in use by the inferior. Don't complain about being unable to
2686 determine the ABI of the inferior when we don't have one.
2687 (arm_extract_return_value): Support different floating-point models.
2688 (arm_store_return_value): Likewise.
aaa38bb5 2689 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
2690 ARM_FLOAT_SOFT.
2691 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
2692
65d6d66a
PS
26932002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2694
2695 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
2696 of ``current_gdbarch''.
2697
47221191
RE
26982002-02-19 Richard Earnshaw <rearnsha@arm.com>
2699
2700 * armnbsd-nat.c : ANSIfy all function declarations.
2701 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
2702 (fetch_inferior_registers): Re-implement in terms of above.
2703 (store_register, store_regs, store_fp_register, store_fp_regs): New.
2704 (store_inferior_registers): Re-implement in terms of above.
2705
fdf39c9a
RE
27062002-02-19 Richard Earnshaw <rearnsha@arm.com>
2707
aaa38bb5 2708 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
2709 kernel.
2710 * arm-linux-tdep.c: Likewise.
2711 * config/arm/tm-linux.h: Likewise.
2712
93247f88
RE
27132002-02-19 Richard Earnshaw <rearnsha@arm.com>
2714
2715 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
2716 * config/arm/nbsd.mt (TM_FILE): Delete.
2717 * config/arm/tm-nbsd.h: Delete.
2718
d7b486e7
RE
27192002-02-19 Richard Earnshaw <rearnsha@arm.com>
2720
2721 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
2722 Initialize CALL_DUMMY_LENGTH.
2723
41d39a95
RE
27242002-02-19 Richard Earnshaw <rearnsha@arm.com>
2725
2726 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
2727 function.
2728 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 2729 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
2730 defines one thing and that is incorrect for this port.
2731 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
2732
e1195560
PM
27332002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2734
2735 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
2736
c1748f97
PM
27372002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2738
2739 * win32-nat.c (display_selector): New function. Displays information
2740 about the information returned by GetThreadSelectorEntry API function.
2741 (display_selectors): New function. Displays the infomation of
2742 the selector given as argument, or of CS, DS ans FS selectors
2743 if no argument is given.
2744 ( _initialize_inftarg): Add "w32" as info prefix command.
2745 Add "info w32 selector" as command calling display_selectors.
2746
e41e6bbf
PM
27472002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
2748
2749 * i386-tdep.c (get_longjmp_target): Fix compilation failure
2750 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
2751 if not defined.
2752
0d3a9f48
RE
27532002-02-18 Richard Earnshaw <rearnsha@arm.com>
2754
2755 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
2756
3fb4b924
RE
27572002-02-18 Richard Earnshaw <rearnsha@arm.com>
2758
2759 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
2760 (arm_fix_call_dummy): Call it.
2761 (arm_call_dummy_breakpoint_offset): Delete.
2762 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
2763 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
2764
7f55af32
AC
27652002-02-18 Andrew Cagney <ac131313@redhat.com>
2766
2767 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
2768 Default to func_frame_chain_valid.
2769 * gdbarch.h, gdbarch.c: Re-generate.
2770 * frame.h (FRAME_CHAIN_VALID): Delete definition.
2771
05f13b9c
EZ
27722002-02-18 Elena Zannoni <ezannoni@redhat.com>
2773
2774 * ppc-linux-nat.c: Update copyright.
2775 (fetch_register, store_register): Add tid parameter, don't compute
2776 tid here.
2777 (fetch_ppc_registers, store_ppc_registers): Add tid
2778 parameter. Pass it along to callees.
2779 (fetch_inferior_registers, store_inferior_registers): Compute tid
2780 here, and pass it to calleed functions.
2781 (fill_gregset, supply_fpregset): Clean up formatting.
2782
d7afb4c9
RE
27832002-02-18 Richard Earnshaw <rearnsha@arm.com>
2784
2785 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
2786 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
2787
9df628e0
RE
27882002-02-18 Richard Earnshaw <rearnsha@arm.com>
2789
2790 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
2791 * gdbarch.c gdbarch.h: Regenerate.
2792 * breakpoint.c (create_longjmp_breakpoint): Always compile this
2793 function.
2794 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
2795 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
2796 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
2797
2798 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
2799 * arm-tdep.c (arm_get_longjmp_target): New function.
2800 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
2801 this to a positive value register arm_get_longjmp_target as the
2802 longjmp handler.
2803 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
2804 (arm_linux_init_abi): Set up longjmp description in tdep.
2805 * armnbsd-nat.c (get_longjmp_target): Delete.
2806 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
2807 description in tdep.
2808 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
2809 (get_longjmp_target): Delete declaration.
2810 (GET_LONGJMP_TARGET): Delete.
2811 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
2812 (GET_LONGJMP_TARGET): Delete.
2813
57bc8964
KB
28142002-02-17 Kevin Buettner <kevinb@redhat.com>
2815
2816 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
2817 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
2818 of ``current_gdbarch''.
2819
83d31a92
TT
28202002-02-17 Tom Tromey <tromey@redhat.com>
2821
2822 * cli/cli-cmds.c (compare_strings): New function.
2823 (complete_command): Only print each unique item once.
2824 * completer.h (complete_line): Declare.
2825 * completer.c (complete_line): New function.
2826 (line_completion_function): Use it.
2827
17ef5d92
AC
28282002-02-16 Andrew Cagney <ac131313@redhat.com>
2829
2830 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
2831 * gdbarch.h, gdbarch.c: Re-generate.
2832
491b8946
DJ
28332002-02-16 Daniel Jacobowitz <drow@mvista.com>
2834
2835 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
2836
28372002-02-16 Daniel Jacobowitz <drow@mvista.com>
2838
2839 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
2840 * valops.c (value_arg_coerce): Don't take the address of a reference
2841 to convert an argument to a reference.
2842
dfe7f3ac
CF
28432002-02-15 Christopher Faylor <cgf@redhat.com>
2844
2845 * win32-nat.c (get_image_name): New function.
2846 (handle_load_dll): Use get_image_name function.
2847 (get_child_debug_event): Avoid registering debug events until possibly
2848 execed process is started.
2849 (child_create_inferior): Allow invocation via shell so that command
2850 line redirection, etc. works ok.
2851 (_initialize_inftarg): Add new command: "set shell" to control whether
2852 a shell is used to start a process.
2853
1d33e73a
DJ
28542002-02-15 Daniel Jacobowitz <drow@mvista.com>
2855
2856 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
2857 instead of find_register_by_number.
2858 (cannot_store_register): Likewise.
2859
48cd0caa
PM
28602002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
2861
aaa38bb5 2862 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
2863 fprintf_unfiltered (gdb_stderr, ...).
2864
8656e7d8
DJ
28652002-02-15 Daniel Jacobowitz <drow@mvista.com>
2866
2867 * gdbserver/gdbserver.1: Document --attach.
2868
66e810cd
RE
28692002-02-15 Richard Earnshaw <rearnsha@arm.com>
2870
2871 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
2872 descriptions.
2873 * arm-tdep.c (arm_default_arm_le_breakpoint)
2874 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
2875 (arm_default_thumb_be_breakpoint): New. Initialize them from
2876 traditional breakpoint defines.
2877 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
2878 (arm_gdbarch_init): Initialize new breakpoint variables.
2879 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
2880 (arm_linux_init_abi): Initialize linux-specific breakpoint.
2881 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
2882 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
2883 code out to ...
2884 (arm_netbsd_init_abi_common): ... here; new function.
2885 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
2886 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
2887 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
2888 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
2889
97e03143
RE
28902002-02-15 Richard Earnshaw <rearnsha@arm.com>
2891
2892 * arm-tdep.h (enum arm_abi): New enum.
2893 (struct gdbarch_tdep): New structure.
2894 (LOWEST_PC): Provide a default.
2895 (arm_gdbarch_register_os_abi): Declare new function.
2896 * arm-tdep.c (arm_abi_names): New array.
2897 (process_note_abi_tag_sections): New function.
2898 (get_elfosabi): New function.
2899 (arm_gdbarch_register_os_abi): New function.
2900 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
2901 support for that ABI has been built in, then call the appropriate
2902 configuration routine. Use gdbarch_num_regs() to get the number
2903 of registers.
2904 (arm_dump_tdep): New function.
2905 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
2906 place-holder functions.
2907 (_initialize_arm_tdep): Register them.
2908 * config/arm/tm-arm.h (LOWEST_PC): Delete.
2909
2910 * armnbsd-tdep.c: New file.
2911 * Makefile.in (armnbsd-tdep.o): Add dependencies.
2912 * config/arm/nbsd.mt (TDEPFILES): Add it.
2913 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
2914
2915 * armnbsd-nat.c: Include regcache.h.
2916 * Makefile.in (armnbsd-nat.o): Update dependency list.
2917
2918 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
2919
ad68be46
DJ
29202002-02-14 Daniel Jacobowitz <drow@mvista.com>
2921
2922 * gdbserver/Makefile.in: Fix typos in target rules.
2923
003d6d1d
DJ
29242002-02-14 Daniel Jacobowitz <drow@mvista.com>
2925
aaa38bb5 2926 Fix part of PR gdb/267.
003d6d1d
DJ
2927 * linespec.c (find_methods): Handle constructors specially for now.
2928
6b230f1b
CV
29292002-02-14 Corinna Vinschen <vinschen@redhat.com>
2930
2931 * arm-tdep.c (arm_push_arguments): Eliminate special float type
2932 handling.
2933 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
2934 standard_coerce_float_to_double().
2935
1ea98d12
CF
29362002-02-14 Christopher Faylor <cgf@redhat.com>
2937
2938 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
2939 GDBINIT_FILENAME.
2940
dd47e6fd
EZ
29412002-02-14 Elena Zannoni <ezannoni@redhat.com>
2942
2943 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
2944 find_variant_by_name, because it confuses the multiarch
2945 framework. Return NULL if there isn't an architecture with the
2946 user supplied name, instead of forcing a different one without
2947 recording the change with the multiarch machinery.
2948 (find_variant_by_name): Delete.
2949
d7e39b9e
PS
29502002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2951
2952 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
2953 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
2954
76e42a4f
MH
29552002-02-13 Martin M. Hunt <hunt@redhat.com>
2956
aaa38bb5 2957 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
2958 print_frame_info_listing_hook, set current_source_symtab.
2959
0a30fbc4
DJ
29602002-02-14 Daniel Jacobowitz <drow@mvista.com>
2961
2962 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
2963 and remove unused $(INCLUDE_DIR).
2964 Add regcache.c to OBS.
2965 Add generated register protocol files to clean target.
2966 Update dependencies for new objects, obsolete old target code.
2967
2968 * gdbserver/linux-low.c: Remove all platform-specific code to
2969 new files. Remove various dead code. Update to use regcache
2970 functionality.
2971 * gdbserver/remote-utils.c (fromhex): Add return statement
2972 to quiet warning.
2973 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
2974 constant.
2975 (input_interrupt): Add integer parameter to match prototype
2976 of a signal handler.
2977 (outreg): Use register_data ().
2978 (prepare_resume_reply): Use gdbserver_expedite_regs.
2979 * gdbserver/server.c (main): Dynamically allocate own_buf because
2980 PBUFSIZ is no longer constant. Use registers_to_string () and
2981 registers_from_string ().
2982 * gdbserver/server.h: No longer include "defs.h". Add prototypes
2983 for error (), fatal (), and warning (). Update definition of
2984 PBUFSIZ to use regcache functionality. Add include guard.
2985 * gdbserver/utils.c (fatal): Add missing ``const''.
2986 (warning): New function.
2987
2988 * regformats/regdat.sh: Include "regcache.h" in generated files.
2989 Provide init_registers () function.
2990 * regformats/regdef.h: Add prototype for set_register_cache ().
2991 Add include guard.
2992
2993 * gdbserver/linux-arm-low.c: New file.
2994 * gdbserver/linux-i386-low.c: New file.
2995 * gdbserver/linux-ia64-low.c: New file.
2996 * gdbserver/linux-m68k-low.c: New file.
2997 * gdbserver/linux-mips-low.c: New file.
2998 * gdbserver/linux-ppc-low.c: New file.
2999 * gdbserver/linux-sh-low.c: New file.
3000
3001 * gdbserver/regcache.c: New file.
3002 * gdbserver/regcache.h: New file.
3003
3004 * gdbserver/low-linux.c: Removed obsolete file.
3005
4cc841d0
DJ
30062002-02-14 Daniel Jacobowitz <drow@mvista.com>
3007
3008 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
3009 * config/i386/linux.mt: Likewise.
3010 * config/ia64/linux.mt: Likewise.
3011 * config/m68k/linux.mh: Likewise.
3012 * config/powerpc/linux.mh: Likewise.
3013 * config/mips/linux.mt: Likewise.
3014
3015 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
3016
3017 * config/i386/i386lynx.mh: Mark gdbserver variables
3018 as (currently) obsolete for this target.
3019 * config/i386/nbsd.mt: Likewise.
3020 * config/i386/nbsdelf.mt: Likewise.
3021 * config/m32r/m32r.mt: Likewise.
3022 * config/m68k/m68klynx.mh: Likewise.
3023 * config/m68k/nbsd.mt: Likewise.
3024 * config/m68k/sun3os4.mh: Likewise.
3025 * config/mips/vr5000.mt: Likewise.
3026 * config/ns32k/nbsd.mt: Likewise.
3027 * config/pa/hppabsd.mh: Likewise.
3028 * config/pa/hppaosf.mh: Likewise.
3029 * config/powerpc/nbsd.mt: Likewise.
3030 * config/rs6000/rs6000lynx.mh: Likewise.
3031 * config/s390/s390.mt: Likewise.
3032 * config/s390/s390x.mt: Likewise.
3033 * config/sparc/sparclynx.mh: Likewise.
3034 * config/sparc/sun4os4.mh: Likewise.
3035 * config/i386/x86-64linux.mt: Likewise.
3036 * config/sparc/linux.mh: Likewise.
3037
a85f51e7
DJ
30382002-02-14 Daniel Jacobowitz <drow@mvista.com>
3039
3040 * configure.tgt: Configure gdbserver only for known working
3041 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
3042 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
3043 SUBDIRS if it is configured. Update comment for ${nativefile}.
3044 * configure: Regenerated.
3045
65554fef
MS
30462002-02-13 Michael Snyder <msnyder@redhat.com>
3047
670a52db
MS
3048 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
3049
6dbdc4a3
MS
3050 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
3051 (default_gcore_mach): Just return 0, work around a problem in bfd.
3052 (default_gcore_target): OK to return NULL if exec_bfd is null.
3053 (make_mem_sec): Use a cast, avoid a warning.
3054
3055 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 3056 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
3057 sizeof (host pointer) != sizeof (target pointer)).
3058 (procfs_make_note_section): Avoid overflow in psargs string.
3059
aaa38bb5 3060 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
3061 implementation return an error.
3062
30632002-02-13 Rodney Brown <rbrown64@csc.com.au>
3064
3065 * procfs.c (procfs_make_note_section): Provide a default definition
3066 (for alpha-dec-osf4.0f). Fix typos.
3067
1e4d76e7
EZ
30682002-02-13 Elena Zannoni <ezannoni@redhat.com>
3069
3070 * linux-proc.c: Add include of regcache.h.
3071 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
3072
b6d1a1d5
AC
30732002-02-13 Andrew Cagney <ac131313@redhat.com>
3074
3075 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
3076 * memattr.c (create_mem_region): Disallow useless empty region.
3077 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 3078 non-overlapping.
b6d1a1d5 3079
6c6ea35e
MC
30802002-02-13 Michael Chastain <mec@shout.net>
3081
3082 * defs.h: Kill CONST_PTR.
3083 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
3084 * c-lang.c (c_builtin_types): Likewise.
3085 * ch-lang.c (ch_builtin_types): Likewise.
3086 * f-lang.c (f_builtin_types): Likewise.
3087 * language.c (unknown_builtin_types): Likewise.
3088 * m2-lang.c (m2_builtin_types): Likewise.
3089 * p-lang.c (pascal_builtin_types): Likewise.
3090 * scm-lang.c (c_builtin_types): Likewise.
3091
3e0b0f48
KS
30922002-02-13 Keith Seitz <keiths@redhat.com>
3093
3094 * arm-tdep.h (arm_get_next_pc): Add declaration.
3095
67255d04
RE
30962002-02-13 Richard Earnshaw <rearnsha@arm.com>
3097
3098 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
3099 with other related struct-returning functions.
3100 (arm_extract_struct_value_address): New function.
3101 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
3102 initialize float_format, double_format and long_double_format as
3103 appropriate to the endianness of the target.
3104 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
3105 (arm_use_struct_convention): Delete declaration.
3106 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3107
079777f6
KS
31082002-02-13 Keith Seitz <keiths@redhat.com>
3109
3110 * defs.h (core_addr_to_string_nz): New function.
3111
34588f23
MK
31122002-02-13 Mark Kettenis <kettenis@gnu.org>
3113
3114 Apply missing bits of 2002-01-15 patch.
3115 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
3116 (fill_fpregset): Use i387_fill_fsave.
3117
49b563f9
KS
31182002-02-12 Keith Seitz <keiths@redhat.com>
3119
49b563f9
KS
3120 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
3121 (core_addr_to_string_nz): New function.
3122
aeb98c60
RE
31232002-02-11 Richard Earnshaw <rearnsha@arm.com>
3124
3125 * arm-linux-nat.c: Really include arm-tdep.h.
3126 * config/arm/tm-linux.h (struct type, struct value): Declare.
3127
65554fef
MS
31282002-02-11 Michael Snyder <msnyder@redhat.com>
3129
3130 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
3131 (gcore section): Ifdef for Solaris and Unixware only.
3132 (procfs_do_thread_registers): Unixware needs one lwpstatus
3133 per thread (not one prstatus or pstatus).
3134 (procfs_make_note_section): Iterate only over kernel threads (lwps),
3135 not over all gdb threads. For unixware, call elfcore_write_pstatus
3136 once before iterating over threads.
3137
34e8f22d
RE
31382002-02-11 Richard Earnshaw <rearnsha@arm.com>
3139
3140 * arm-tdep.h: New file.
3141 * arm-tdep.c: Include arm-tdep.h.
3142 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
3143 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
3144 (arm_print_float_info, arm_register_type, convert_to_extended)
3145 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
3146 (arm_extract_return_value, arm_register_name): Make static.
3147 (arm_software_single_step): Similarly. Fix types in declaration.
3148 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
3149 (arm_store_return_value, arm_store_struct_return): New functions.
3150 (arm_gdbarch_init): Register the above functions. Also register
3151 call_dummy_start_offset, sizeof_call_dummy_words,
3152 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
3153 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 3154 max_register_virtual_size, register_size. Set up
34e8f22d
RE
3155 prologue_cache.saved_regs here, rather than ...
3156 (_initialize_arm_tdep): ... here.
3157 * config/arm/tm-arm.h (struct type, struct value): Delete forward
3158 declarations.
3159 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
3160 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
3161 (arm_print_float_info, arm_register_type, convert_to_extended)
3162 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
3163 (arm_extract_return_value, arm_register_name): Delete declarations.
3164 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
3165 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
3166 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
3167 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
3168 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3169 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
3170 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
3171 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
3172 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
3173 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
3174 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
3175 (arm_get_next_pc): No-longer static -- these are needed by the RDI
3176 interface.
3177 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
3178 * remote-rdi.c remote-rdp.c: Likewise.
3179 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
3180 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
3181 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
3182 definition.
3183
3184 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
3185 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
3186 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
3187 from non-ARM_ prefixed definitions.
3188 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
3189 all uses of above.
3190 * remote-rdi.c remote-rdp.c: Likewise.
3191 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
3192
148754e5
RE
31932002-02-11 Richard Earnshaw <rearnsha@arm.com>
3194
3195 * arm-tdep.c (arm_frameless_function_invocation)
3196 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
3197 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
3198 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
3199 (arm_pop_frame, arm_get_next_pc): Make static.
3200 (arm_gdbarch_init): Register above in gdbarch structure.
3201 (arm_read_fp): Renamed from arm_target_read_fp.
3202 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
3203 * config/arm/tm-arm.h (arm_frameless_function_invocation)
3204 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
3205 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
3206 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
3207 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
3208 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
3209 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
3210 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
3211 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
3212 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 3213
434d2d4f
DJ
32142002-02-10 Daniel Jacobowitz <drow@mvista.com>
3215
3216 * symtab.c (compare_search_syms): New function.
3217 (sort_search_symbols): New function.
3218 (search_symbols): Sort symbols after searching rather than
3219 before.
3220
55241689
AC
32212002-02-10 Andrew Cagney <ac131313@redhat.com>
3222
3223 * NEWS: Linux -> GNU/Linux.
3224
028c194b
AC
32252002-02-10 Andrew Cagney <ac131313@redhat.com>
3226
3227 * gdbarch.sh: For for level one methods, disallow a definition
3228 when partially multi-arched. Add comments explaining rationale.
3229 * gdbarch.h: Re-generate.
3230
6acf50cd
AC
32312002-02-10 Andrew Cagney <ac131313@redhat.com>
3232
3233 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
3234 multi-arch partial.
aaa38bb5 3235
50248794
AC
32362002-02-10 Andrew Cagney <ac131313@redhat.com>
3237
3238 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
3239 field. Use diff -u.
3240 * gdbarch.c: Re-generate.
3241
c30e0066
AC
32422002-02-10 Andrew Cagney <ac131313@redhat.com>
3243
9b56c5f3 3244 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
3245 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
3246 partial.
3247
6e6d6484
AC
32482002-02-10 Andrew Cagney <ac131313@redhat.com>
3249
3250 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
3251 multi-arch partial.
3252 (PUSH_ARGUMENTS): Switch to using predefault.
3253 * gdbarch.c: Regenerate.
3254
c203844d
AC
32552002-02-10 Andrew Cagney <ac131313@redhat.com>
3256
3257 * valops.c (PUSH_ARGUMENTS): Delete definition.
3258 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
3259 partial. Default to default_push_arguments.
3260 * gdbarch.h, gdbarch.c: Regenerate.
3261
b5a2688f
AC
32622002-02-09 Andrew Cagney <ac131313@redhat.com>
3263
3264 * defs.h (throw_exception): Rename return_to_top_level. Update
3265 comments.
3266 * utils.c (error_stream, internal_verror, quit): Ditto.
3267 * top.c (throw_exception, catcher): Ditto.
3268 * sparclet-rom.c (sparclet_load): Ditto.
3269 * remote.c (interrupt_query, minitelnet): Ditto.
3270 * remote-sds.c (interrupt_query): Ditto.
3271 * remote-mips.c (mips_error, mips_kill): Ditto.
3272 * ocd.c (interrupt_query): Ditto.
3273 * monitor.c (monitor_interrupt_query): Ditto.
3274 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
3275 * target.h: Update comment.
aaa38bb5 3276
b5a2688f 3277 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 3278
2fa5c1e0
AC
32792002-02-09 Andrew Cagney <ac131313@redhat.com>
3280
3281 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
3282 default_double_format.
3283 * gdbarch.h, gdbarch.c: Re-generate.
3284 * findvar.c (floatformat_unknown): Delete variable definition.
3285 * doublest.h (floatformat_unknown): Delete variable declaration.
3286
da966255
JB
32872002-02-09 Jim Blandy <jimb@redhat.com>
3288
3289 * stabsread.c (read_type): Add code to parse Sun's syntax for
3290 prototyped function types.
3291
123a4891
AC
32922002-02-09 Andrew Cagney <ac131313@redhat.com>
3293
3294 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
3295 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
3296
fb39c8f3
PS
32972002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3298
3299 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
3300 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
3301 now _initialize_xcoffsolib gets called again and overrides the
3302 commands from solib.c in a native configuration.
3303
0b87a11d
MK
33042002-02-09 Mark Kettenis <kettenis@gnu.org>
3305
3306 * doublest.c (store_typed_floating): Don't try to return a value.
3307 Fixes PR gdb/290.
3308
bdc2fc72
JB
33092002-02-08 Jim Blandy <jimb@redhat.com>
3310
3311 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
3312 is prototyped and has no arguments, print its argument list as
3313 `(void)'.
3314
da69bbcf
CD
33152002-02-08 Chris Demetriou <cgd@broadcom.com>
3316
3317 * MAINTAINERS (write-after-approval): Add myself.
3318 (paper-trail): I've escaped!
aaa38bb5 3319
b69571f5
CF
33202002-02-08 Christopher Faylor <cgf@redhat.com>
3321
3322 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
3323 changes.
3324 (_initialize_check_for_gdb_ini): Ditto.
3325
f6871398
MH
33262002-02-08 Martin M. Hunt <hunt@redhat.com>
3327
3328 * win32-nat.c (cygwin_pid_to_str): Fix typo.
3329 xaprintf -> xasprintf.
3330
4e52d31c
PM
33312002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
3332
3333 * win32-nat.c: Remove use of printf and sprintf functions.
3334
39bbf761
RE
33352002-02-08 Richard Earnshaw <rearnsha@arm.com>
3336
3337 * arm-tdep.c (arm_frame_chain_valid): Make static.
3338 (arm_push_arguments): Likewise.
3339 (arm_gdbarch_init): New function.
3340 (_initialize_arm_tdep): Call it.
3341 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
3342 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
3343 (FRAME_CHAIN_VALID): Delete.
3344 (arm_frame_chain_valid): Delete declaration.
3345 (PUSH_ARGUMENTS): Delete.
3346 (arm_push_arguments): Delete declaration.
3347 (CALL_DUMMY_P): Delete.
3348
9c9532c9
CV
33492002-02-08 Andrew Cagney <ac131313@redhat.com>
3350 Corinna Vinschen <vinschen@redhat.com>
3351
3352 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
3353 on builtin float types.
3354
4e8f7a8b
DJ
33552002-02-08 Daniel Jacobowitz <drow@mvista.com>
3356
3357 * utils.c: Include <curses.h> before "bfd.h".
3358 * tui/tui-hooks.c: Likewise.
3359 * tui/tui.c: Likewise.
3360 * tui/tuiCommand.c: Likewise.
3361 * tui/tuiData.c: Likewise.
3362 * tui/tuiDataWin.c: Likewise.
3363 * tui/tuiDisassem.c: Likewise.
3364 * tui/tuiGeneralWin.c: Likewise.
3365 * tui/tuiIO.c: Likewise.
3366 * tui/tuiLayout.c: Likewise.
3367 * tui/tuiRegs.c: Likewise.
3368 * tui/tuiSource.c: Likewise.
3369 * tui/tuiSourceWin.c: Likewise.
3370 * tui/tuiStack.c: Likewise.
3371 * tui/tuiWin.c: Likewise.
3372
cd4bffcf
EZ
33732002-02-07 Elena Zannoni <ezannoni@redhat.com>
3374
3375 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
3376 to include space for pseudoregs as well. Update loops accordingly.
3377 (sh_fp_frame_init_saved_regs): Ditto.
3378 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
3379
26806ce2
AC
33802002-02-07 Andrew Cagney <ac131313@redhat.com>
3381
3382 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
3383 Add Richard Earnshaw to Arm maintainers.
3384
97fdab62
AC
33852002-02-07 Andrew Cagney <ac131313@redhat.com>
3386
a6b98203
AC
3387 * defs.h (warning_begin): Delete declaration.
3388
97fdab62
AC
3389 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
3390 Delete macro.
3391
78b29b40
MS
33922002-02-07 Michael Snyder <msnyder@redhat.com>
3393
aaa38bb5 3394 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
3395 Logic bug, remove misplaced else.
3396
d8849953
KD
33972002-02-07 Klee Dienes <klee@apple.com>
3398
3399 * fork-inferior.c (fork_inferior): Add '!' to the list of
3400 characters that need to be quoted when building a string for the
3401 shell. Quote '!' specifically with a backslash, since CSH chokes
3402 when trying to evaluate "str!str".
aaa38bb5 3403
095778a0
NC
34042002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
3405
3406 * rdi-share/host.h: Only provide a typedef for bool if it is not
3407 defined.
3408
1900040c
MS
34092002-02-04 Michael Snyder <msnyder@redhat.com>
3410
3411 * breakpoint.h (enum bptype): Add new overlay event bp type.
3412 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 3413
1900040c
MS
3414 * breakpoint.c (create_internal_breakpoint): New function.
3415 (internal_breakpoint_number): Moved into create_internal_breakpoint.
3416 (create_longjmp_breakpoint): Use create_internal_breakpoint.
3417 (create_thread_event_breakpoint): Ditto.
3418 (create_solib_event_breakpoint): Ditto.
3419 (create_overlay_event_breakpoint): New function.
3420 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
3421 (update_breakpoints_after_exec): Delete and re-initialize
3422 overlay event breakpoints after an exec. Add FIXME comment
3423 about longjmp breakpoint.
3424 (print_it_typical): Ignore overlay event breakpoints.
3425 (print_one_breakpoint): Ditto.
3426 (mention): Ditto.
3427 (bpstat_what): Do not stop for overlay event breakpoints.
3428 (delete_breakpoint): Don't delete overlay event breakpoints.
3429 (breakpoint_re_set_one): Delete the overlay event breakpoint.
3430 (breakpoint_re_set): Re-create overlay event breakpoint.
3431
3432 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
3433 (overlay_manual_command): Disable overlay breakpoints.
3434 (overlay_off_command): Disable overlay breakpoints.
3435
082fc60d
RE
34362002-02-06 Richard Earnshaw <rearnsha@arm.com>
3437
3438 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
3439 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
3440 to here from config/tm-arm.h.
3441 (coff_sym_is_thumb): Make static.
3442 (arm_elf_make_msymbol_special): New function.
3443 (arm_coff_make_msymbol_special): New function.
3444 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
3445 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
3446 (coff_sym_is_thumb): Delete declaration.
3447 (arm_elf_make_msymbol_special): Declare.
3448 (arm_coff_make_msymbol_special): Declare.
3449 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
3450 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
3451
039c5766
RE
34522002-02-06 Richard Earnshaw <rearnsha@arm.com>
3453
3454 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
3455
34562002-02-06 Richard Earnshaw <rearnsha@arm.com>
3457
3458 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
3459 * gdbarch.c gdbarch.h: Regenerate.
3460 * arch-utils.c (default_print_float_info): New function.
3461 * arch-utils.h (default_print_float_info): Prototype it.
3462 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
3463 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
3464 (PRINT_FLOAT_INFO): Document it.
3465
3466 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
3467 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
3468 (PRINT_FLOAT_INFO): Define.
3469
58fa08f0
PM
34702002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
3471
aaa38bb5 3472 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
3473 Add typecast to sprintf argument to suppress a warning.
3474
7393af7c
PM
34752002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
3476
58fa08f0 3477 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
3478 to allow easier handling of pass state.
3479 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
3480 that gives exception name and address.
3481 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 3482 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 3483 exceptions added.
aaa38bb5
AJ
3484 (child_continue): Correctly report continue_status.
3485 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 3486 TARGET_SIGNAL_0 (new default value).
aaa38bb5 3487 (child_resume): consider sig argument passed to decide if
7393af7c
PM
3488 the exception should be passed to debuggee or not.
3489
6af4589c
MS
34902002-02-05 Michael Snyder <msnyder@redhat.com>
3491
3492 * regcache.c (fetch_register): Call target_fetch_register
3493 only if we don't call FETCH_PSEUDO_REGISTER.
3494 (store_register): Call target_store_register only if we
3495 don't call STORE_PSEUDO_REGISTER.
3496
a2cf933a
EZ
34972002-02-05 Elena Zannoni <ezannoni@redhat.com>
3498
3499 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
3500 ELF_MAKE_MSYMBOL_SPECIAL.
3501 * gdbarch.c, gdbarch.h: Regenerate.
3502 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 3503 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
3504 * elfread.c (elf_symtab_read): Compile use of
3505 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
3506 multiarched.
3507 * coffread.c (coff_symtab_read): Ditto, for
3508 COFF_MAKE_MSYMBOL_SPECIAL.
3509
6bb7be43
JB
35102002-02-05 Jim Blandy <jimb@redhat.com>
3511
3512 * solib-svr4.c (svr4_truncate_ptr): New function.
3513 (svr4_relocate_section_addresses): Do the address arithmetic with
3514 the appropriate truncation for target addresses, even when
3515 CORE_ADDR is larger than a target address.
3516
e18651ec
DJ
35172002-02-05 Daniel Jacobowitz <drow@mvista.com>
3518
3519 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
3520 to (int *).
3521
6b2725be
DJ
35222002-02-05 Daniel Jacobowitz <drow@mvista.com>
3523
3524 * gdbserver/linux-low.c (kill_inferior): Remove commented out
3525 code.
3526
fca9e603
DJ
35272002-02-05 Daniel Jacobowitz <drow@mvista.com>
3528
3529 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
3530
6c537a52
DJ
35312002-02-05 Daniel Jacobowitz <drow@mvista.com>
3532
3533 * gdbserver/linux-low.c: Remove unused include files.
3534
d844cde6
DJ
35352002-02-05 Daniel Jacobowitz <drow@mvista.com>
3536
3537 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
3538 (read_inferior_memory): Use it.
3539 (write_inferior_memory): Likewise.
3540
d07c63e7
DJ
35412002-02-05 Daniel Jacobowitz <drow@mvista.com>
3542
3543 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
3544 grubbing through sys_errlist.
3545
da6d8c04
DJ
35462002-02-05 Daniel Jacobowitz <drow@mvista.com>
3547
3548 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
3549
5b421780
PM
35502002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3551 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
3552
9f60d481
AC
35532002-02-04 Andrew Cagney <ac131313@redhat.com>
3554
3555 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
3556 (do_sfunc, set_cmd_sfunc): New functions.
3557
3558 * command.h (struct cmd_list_element): Add field func.
3559 * cli/cli-decode.h (struct cmd_list_element): Ditto.
3560 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
3561 * cli/cli-decode.h: Ditto.
3562
3563 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
3564 (help_all, help_cmd_list): Ditto.
3565 (find_cmd, complete_on_cmdlist): Ditto.
3566 * top.c (execute_command): Ditto.
3567
3568 * cli/cli-setshow.c (do_setshow_command): Call func instead of
3569 function.sfunc.
3570
3571 * infcmd.c (notice_args_read): Fix function signature.
3572
3573 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
3574 * cli/cli-decode.c (add_set_cmd): Ditto.
3575 * utils.c (initialize_utils): Ditto.
3576 * maint.c (_initialize_maint_cmds): Ditto.
3577 * infrun.c (_initialize_infrun): Ditto.
3578 * demangle.c (_initialize_demangler): Ditto.
3579 * remote.c (add_packet_config_cmd): Ditto.
3580 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3581 * cris-tdep.c (_initialize_cris_tdep): Ditto.
3582 * proc-api.c (_initialize_proc_api): Ditto.
3583 * kod.c (_initialize_kod): Ditto.
3584 * valprint.c (_initialize_valprint): Ditto.
3585 * top.c (init_main): Ditto.
3586 * infcmd.c (_initialize_infcmd): Ditto.
3587 * corefile.c (_initialize_core): Ditto.
3588 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3589 * arch-utils.c (initialize_current_architecture): Ditto.
3590 (_initialize_gdbarch_utils): Ditto.
3591 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
3592
3593 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
3594 * wince.c (_initialize_inftarg): Ditto.
3595 * symfile.c (_initialize_symfile): Ditto.
3596 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3597 * language.c (_initialize_language): Ditto.
3598 * arc-tdep.c (_initialize_arc_tdep): Ditto.
3599
f9ba0717
MS
36002002-02-04 Michael Snyder <msnyder@redhat.com>
3601
3602 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
3603
0c74b2a7
DJ
36042002-02-04 Daniel Jacobowitz <drow@mvista.com>
3605
3606 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
3607 Add rules for building the register data files.
3608
c638789f
DJ
36092002-02-04 Daniel Jacobowitz <drow@mvista.com>
3610
3611 * regformats/regdat.sh: Add braces to the definition of
3612 expedite_regs_${arch}.
3613
db253027
DJ
36142002-02-04 Daniel Jacobowitz <drow@mvista.com>
3615
3616 * regformats/regdef.h (struct reg): Add comment describing the
3617 requirements for offset and size fields.
3618
206be19c
AS
36192002-02-04 Andreas Schwab <schwab@suse.de>
3620
3621 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
3622 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
3623
181c1381
RE
36242002-02-04 Richard Earnshaw <rearnsha@arm.com>
3625
3626 * gdbarch.sh (copyright): Update years in generated header.
3627 (SMASH_TEXT_ADDRESS): Add rule.
db253027 3628 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
3629 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
3630 * dbxread.c: Likewise.
3631 * dwarfread.c: Likewise.
3632 * elfread.c: Likewise.
3633 * somread.c: Likewise.
3634
3635 * arm-tdep.c (arm_smash_text_address): New function.
3636 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
3637
fa4ba8da
PM
36382002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3639
3640 Add support for hardware watchpoints on win32 native.
aaa38bb5 3641 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 3642 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 3643 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
3644 of debug registers.
3645 (debug_registers_changed): New variable. Reflects when debug registers
3646 are changed and need to be written to inferior.
aaa38bb5 3647 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
3648 was set, used when new threads are created.
3649 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
3650 i386-nat code.
3651 (thread_rec): Set dr array if id is the thread of current_event .
3652 (child_continue, child_resume): Change the debug registers for all
3653 threads if debug_registers_changed.
3654 (child_add_thread): Change the debug registers if debug_registers_used.
3655 * config/i386/cygwin.mh: Add use of i386-nat.o file.
3656 Link nm.h to new nm-cygwin.h file.
3657 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
3658 of hardware registers.
3659
a73c86fb
AC
36602002-02-03 Andrew Cagney <ac131313@redhat.com>
3661
3662 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
3663 Restore behavour broken by 2002-01-20 Andrew Cagney
3664 <ac131313@redhat.com> IEEE_FLOAT removal.
3665
acf5ed49
DJ
36662002-02-03 Daniel Jacobowitz <drow@mvista.com>
3667
3668 * c-valprint.c (c_val_print): Pass a proper valaddr to
3669 cp_print_class_method.
3670 * valops.c (search_struct_method): If there is only one method
3671 and args is NULL, return that method.
3672
493d28d5
DJ
36732002-02-03 Daniel Jacobowitz <drow@mvista.com>
3674
3675 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
3676 accessing tag_name directly.
3677
7495dfdb
DJ
36782002-02-03 Daniel Jacobowitz <drow@mvista.com>
3679
3680 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
3681 of accessing tag_name directly.
3682
dd6bda65
DJ
36832002-02-03 Daniel Jacobowitz <drow@mvista.com>
3684
3685 PR gdb/280
3686 * gdbtypes.c (replace_type): New function.
3687 * gdbtypes.h (replace_type): Add prototype.
3688 * stabsread.c (read_type): Use replace_type.
3689
88fe217c
RE
36902002-02-03 Richard Earnshaw <rearnsha@arm.com>
3691
3692 * Makefile.in (memattr.o): Add missing dependencies rule.
3693
e5d66720
PS
36942002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3695
3696 * breakpoint.c (break_at_finish_command): Really export.
3697 (break_at_finish_at_depth_command): Ditto.
3698 (tbreak_at_finish_command): Ditto.
3699 * hppa-tdep.c: Include completer.h.
3700 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
3701 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
3702
fffee0be
AC
37032002-02-01 Andrew Cagney <ac131313@redhat.com>
3704
3705 * utils.c (do_write): New function.
3706 (error_stream): Rewrite combining the code from error_begin and
3707 verror.
3708 (verror): Rewrite using error_stream.
3709 (error_begin): Delete function.
3710
255e7dbf
AC
37112002-02-01 Andrew Cagney <ac131313@redhat.com>
3712
3713 * utils.c (error_begin): Make static.
3714 * defs.h (error_begin): Delete declaration.
3715
3716 * linespec.c (cplusplus_error): Replace cplusplus_hint.
3717 (decode_line_1): Use cplusplus_error instead of error_begin,
3718 cplusplus_hint and return_to_top_level.
3719 * coffread.c (coff_symfile_read): Use error instead of error_begin
3720 and return_to_top_level.
3721 * infrun.c (default_skip_permanent_breakpoint): Ditto.
3722
ddfe3c15
AC
37232002-02-01 Andrew Cagney <ac131313@redhat.com>
3724
3725 * language.h (type_error, range_error): Make string parameter
3726 constant.
3727 * language.c (warning_pre_print): Delete extern declaration.
3728 * dwarfread.c (warning_pre_print): Ditto.
3729 * language.c (type_error, range_error): Rewrite to use verror and
3730 vwarning instead of warning_begin.
3731
03ac34d5
MS
37322002-02-01 Michael Snyder <msnyder@redhat.com>
3733
261c4ca2
MS
3734 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
3735 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 3736
e00d1dc8
AC
37372002-02-01 Andrew Cagney <ac131313@redhat.com>
3738
3739 * command.h (NO_FUNCTION): Delete macro.
3740 * cli/cli-decode.h (NO_FUNCTION): Ditto.
3741 * top.c (execute_command): Replace NO_FUNCTION with NULL.
3742 * tracepoint.c (_initialize_tracepoint): Ditto.
3743 * cli/cli-decode.c (add_set_cmd): Ditto.
3744 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 3745
76b79d6e
DJ
37462002-02-01 Daniel Jacobowitz <drow@mvista.com>
3747
3748 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
3749 Update ``this'' pointer when calling virtual functions.
3750
799f9e91
MS
37512002-02-01 Michael Snyder <msnyder@redhat.com>
3752
c7bd442c 3753 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
3754 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
3755
3cf384d4
DJ
37562002-02-01 Daniel Jacobowitz <drow@mvista.com>
3757
3758 * regformats/reg-arm.dat: New file.
3759 * regformats/reg-i386.dat: New file.
3760 * regformats/reg-ia64.dat: New file.
3761 * regformats/reg-m68k.dat: New file.
3762 * regformats/reg-mips.dat: New file.
3763 * regformats/reg-ppc.dat: New file.
3764 * regformats/reg-sh.dat: New file.
3765 * regformats/regdef.h: New file.
3766 * regformats/regdat.sh: New file.
3767
0defa245
RE
37682002-02-01 Richard Earnshaw <reanrsha@arm.com>
3769
3770 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
3771 (arm_frame_args_address, arm_frame_locals_address): New functions.
3772 (arm_frame_num_args): New function.
3773 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
3774 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
3775 (FRMA_NUM_ARGS): Call arm_frame_num_args.
3776
405f26e6
MS
37772002-01-31 Michael Snyder <msnyder@redhat.com>
3778
502fd408
MS
3779 * breakpoint.c (break_at_finish_command): Export.
3780 (break_at_finish_at_depth_command): Export.
3781 (tbreak_at_finish_command): Export.
3782 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
3783 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
3784 "tbreak" commands, which are HPPA specific.
3785
7d35e135
MS
3786 * printcmd.c (disassemble_command): Remove an ancient
3787 artifact of an old merge.
3788
aaa38bb5 3789 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
3790 Define enum constant values for overlay mode.
3791 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
3792 (overlay_is_mapped, overlay_auto_command,
3793 overlay_manual_command): Ditto.
d874f1e2 3794
aaa38bb5
AJ
3795 * breakpoint.c (insert_breakpoints, remove_breakpoint,
3796 breakpoint_here_p, breakpoint_inserted_here_p,
3797 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
3798 describe_other_breakpoints, check_duplicates, clear_command):
3799 Coding standard fixes.
3800
8add0441 3801 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 3802 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
3803 code: check bfd SEC_READONLY flag for section.
3804
e351066e
AC
38052002-01-31 Andrew Cagney <ac131313@redhat.com>
3806
7d35e135 3807 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 3808
8a48e967
DJ
38092002-01-30 Daniel Jacobowitz <drow@mvista.com>
3810
3811 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
3812 data symbols, since we search based on textlow and texthigh.
3813 (find_pc_sect_symtab): Likewise.
3814
f5a96129
AC
38152002-01-30 Andrew Cagney <ac131313@redhat.com>
3816
3817 * defs.h (vwarning): Declare.
f5a96129
AC
3818 * utils.c (vwarning): New function.
3819 (warning): Call vwarning.
3820 (warning_begin): Delete function.
3821
3822 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
3823 the warning message.
3824 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
3825 warning_begin.
3826
cefd4ef5
MS
38272002-01-30 Michael Snyder <msnyder@redhat.com>
3828
1a703748
MS
3829 * NEWS: Mention "set trust-readonly-sections" command.
3830 Mention generate-core-file command.
cefd4ef5 3831
3a11626d
MS
38322002-01-15 Michael Snyder <msnyder@redhat.com>
3833
3834 * target.c: New command, "set trust-readonly-sections on".
3835 (do_xfer_memory): Honor the suggestion to trust readonly sections
3836 by reading them from the object file instead of from the target.
3837 (initialize_targets): Register command "set trust-readonly-sections".
3838
d1c7e53b
AC
38392002-01-29 Andrew Cagney <ac131313@redhat.com>
3840
3841 * parse.c (target_map_name_to_register): Simplify, search regs and
3842 pseudo-regs using a single loop.
3843
e2c9a72c
AC
38442002-01-30 Andrew Cagney <ac131313@redhat.com>
3845
3846 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
3847
69824b4e
MK
38482002-01-15 Rodney Brown <rbrown64@csc.com.au>
3849
3850 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
3851 * config/i386/i386v42mp.mh: Add i387-nat.o .
3852 * i386v4-nat.c: Include i387-nat.h.
3853 (supply_fpregset): Use i387_supply_fsave.
3854 (fill_fpregset): Use i387_fill_fsave.
3855
6eb69eab
RE
38562002-01-30 Richard Earnshaw <rearnsha@arm.com>
3857
3858 * arm-tdep.c (arm_call_dummy_words): Define.
3859 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
3860 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
3861 (CALL_DUMMY_WORDS): Define.
3862 (arm_call_dummy_words): Declare.
3863 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
3864 (arm_linux_call_dummy_words): Declare.
3865
9852326a
AS
38662002-01-30 Andreas Schwab <schwab@suse.de>
3867
3868 * m68klinux-nat.c: Fix last change to use regcache_collect
3869 instead of referencing registers[] directly.
3870
977a3030
AC
38712002-01-29 Andrew Cagney <ac131313@redhat.com>
3872
3873 * parse.c (target_map_name_to_register): Delete code wrapped in
3874 #ifdef REGISTER_NAME_ALIAS_HOOK.
3875
2076c72b
MS
38762002-01-28 Michael Snyder <msnyder@redhat.com>
3877
3878 * regcache.c (legacy_read_register_gen): Need to be able to
3879 read pseudo-register as well as real register.
3880 (legacy_write_register_gen): Ditto.
3881
8fcc723b
AC
38822002-01-28 Andrew Cagney <ac131313@redhat.com>
3883
3884 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3885 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
3886 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
3887 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
3888 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
3889 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
3890 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
3891 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
3892 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
3893 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3894 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
3895 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
3896 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
3897 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
3898 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
3899 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
3900 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
3901 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
3902 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
3903 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
3904
afe64c1a
AC
39052002-01-28 Andrew Cagney <ac131313@redhat.com>
3906
3907 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
3908 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
3909 (initialize_current_architecture): Update target_byte_order using
3910 information from BFD.
aaa38bb5 3911 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
3912 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
3913
75bc7ddf
AC
39142002-01-28 Andrew Cagney <ac131313@redhat.com>
3915
3916 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
3917 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
3918
3919 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
3920 #ifdef INVALID_FLOAT.
3921 * infcmd.c (do_registers_info): Ditto.
3922 * values.c (unpack_double): Ditto. Add comment.
3923
3924 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
3925 already commented out.
3926
0280a90a
AS
39272002-01-26 Andreas Schwab <schwab@suse.de>
3928
3929 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
3930 * m68klinux-nat.c: Update ptrace interface for fetching/storing
3931 registers and add support for PTRACE_GETREGS.
3932
7072a954
AC
39332002-01-24 Andrew Cagney <ac131313@redhat.com>
3934
3935 GDB 5.1.1 released from 5.1 branch.
3936 * NEWS: Add 5.1.1 news.
3937 * README: Sync with 5.1 branch.
3938
86f902e0
FF
39392002-01-23 Fred Fish <fnf@redhat.com>
3940
3941 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
3942 stabstring on initial malloc. Reallocing will copy it for us,
3943 if necessary.
3944
8af51c36
EZ
39452002-01-23 Elena Zannoni <ezannoni@redhat.com>
3946
aaa38bb5 3947 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
3948 (HFILES_NO_SRCDIR): Remove hpread.h.
3949 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
3950 (hpread.o): Update dependencies.
3951 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
3952
3953 * hp-psymtab-read.c: Remove file.
3954 * hp-symtab-read.c: Remove file.
3955 * hpread.h: Remove file.
3956
3957 * hpread.c: Merge all contents of hp-psymtab-read.c,
3958 hp-symtab-read.c and hpread.h into this file, as it was prior to
3959 January 1999.
3960
3961 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 3962 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
3963 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
3964 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
3965
dc5cfeb6
EZ
39662002-01-23 Elena Zannoni <ezannoni@redhat.com>
3967
3968 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
3969 fill_gregset): Call gdbarch_tdep() just once, assign result to
3970 variable and use that, instead of calling the function several
3971 times.
3972
ea87b71b
AO
39732002-01-24 Alexandre Oliva <aoliva@redhat.com>
3974
3975 * configure.host: Accept sparcv9 as alias for sparc64.
3976 * configure.tgt: Likewise.
3977
13fc0c2f
KB
39782002-01-22 Kevin Buettner <kevinb@redhat.com>
3979
3980 * solib-aix5.c (build_so_list_from_mapfile)
3981 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
3982 arguments is not reversed.
3983 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
3984 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 3985
7bd872fe
EZ
39862002-01-22 Elena Zannoni <ezannoni@redhat.com>
3987
3988 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
3989 modified version of obsolete sh_fetch_pseudo_register.
3990 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
3991 (sh4_register_read): New function.
3992 (sh_pseudo_register_write): New function. Renamed and modified
3993 version of obsolete sh_store_pseudo_register.
3994 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
3995 (sh4_register_write): New function.
3996 (sh_gdbarch_init): Remove setting of gdbarch function
3997 fetch_pseudo_register and store_pseudo_register. Remove setting of
3998 register_convert_to_raw, register_convert_to_virtual,
3999 register_convertible.
4000 (sh_sh4_register_convertible): Delete. No longer needed. All is
4001 taken care by architecture specific functions
4002 register_read/register_write.
4003 (sh_sh4_register_convert_to_virtual): Make static.
4004 (sh_sh4_register_convert_to_raw): Ditto.
4005
069e84fd
AC
40062002-01-22 Andrew Cagney <ac131313@redhat.com>
4007
4008 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
4009 (floatformat_is_nan, floatformat_mantissa): Ditto.
4010
4011 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
4012 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
4013 builtin_type_ieee_double_little,
4014 builtin_type_ieee_double_littlebyte_bigword,
4015 builtin_type_m68881_ext, builtin_type_i960_ext,
4016 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
4017 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
4018 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
4019 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
4020
211a4f69
CV
40212002-01-22 Corinna Vinschen <vinschen@redhat.com>
4022
4023 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
4024 parameter. Set frameless flag if it exists and depended of
4025 whether the scanned function is frameless or not.
4026 (xstormy16_skip_prologue): If function is frameless, return
4027 result of xstormy16_scan_prologue().
4028 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
4029 call.
4030
f81353e4
EZ
40312002-01-21 Elena Zannoni <ezannoni@redhat.com>
4032
4033 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
4034 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
4035 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
4036 sh_sh4_register_byte, sh_sh4_register_raw_size,
4037 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
4038 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
4039 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
4040 sh_store_pseudo_register, sh_do_pseudo_register): Call
4041 gdbarch_tdep() just once, assign result to variable and use that,
4042 instead of calling the function several times.
4043
63c73a17
MK
40442002-01-20 Mark Kettenis <kettenis@gnu.org>
4045
4046 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
4047 macros instead of LAST_FPU_CTRL_REGNUM.
4048 (store_register): Likewise.
4049
39ad761d
JB
40502002-01-21 Jim Blandy <jimb@redhat.com>
4051
4052 * infcmd.c (run_command): Check that the `exec' target layer's BFD
4053 is up-to-date before running the program, not just when a program
4054 exits.
4055
3d74b771
FF
40562002-01-21 Fred Fish <fnf@redhat.com>
4057
4058 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
4059 when we have found all instructions we are looking for.
4060
966fbf70
RE
40612002-01-21 Richard Earnshaw <rearnsha@arm.com>
4062
4063 * arm-tdep.c (arm_register_name): New function.
4064 (arm_registers_names): Make static.
4065 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
4066 (arm_register_name): Declare.
4067 (REGISTER_NAME): Use it.
4068
c3b4394c
RE
40692002-01-21 Richard Earnshaw <rearnsha@arm.com>
4070 Kevin Buettner <kevinb@redhat.com>
4071
4072 Convert arm targets to new FRAME interface.
4073 * arm-tdep.c (struct frame_extra_info): Remove fsr.
4074 (arm_frame_find_save_regs): Delete.
4075 (arm_frame_init_saved_regs): New.
4076 (arm_init_extra_frame_info): Alloacte saved_regs as required.
4077 Allocate extra_info as required. Convert all uses of fsr.regs
4078 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
4079 to use extra_info.
4080 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
4081 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
4082 (check_prologue_cache, save_prologue_cache): Likewise.
4083 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
4084 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
4085 (FRAME_FIND_SAVED_REGS): Delete.
4086 (arm_frame_find_saved_regs): Delete prototype.
4087 (arm_frame_init_saved_regs): New prototype.
4088 (FRAME_INIT_SAVED_REGS): Define.
4089
61d99182
AC
40902002-01-20 Andrew Cagney <ac131313@redhat.com>
4091
4092 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
4093
6aaea291
AC
40942002-01-20 Andrew Cagney <ac131313@redhat.com>
4095
4096 From Jeff Law <law@redhat.com>:
4097 * infttrace.c: Include <sys/pstat.h>.
4098 (child_pid_to_exec_file): Revamp. Use pstat call to get the
4099 exec file if the ttrace equivalent fails.
4100
15f698d2
AC
41012002-01-20 Andrew Cagney <ac131313@redhat.com>
4102
4103 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
4104 (closeLogFile): Ditto.
4105
f86ddd7c
MC
41062002-01-20 Michael Chastain <mec@shout.net>
4107
4108 * top.c (print_gdb_version): Bump copyright year to 2002.
4109
904507ce
AC
41102002-01-20 Andrew Cagney <ac131313@redhat.com>
4111
4112 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
4113 Zannoni and Eli Zaretskii.
4114
d7f0b9ce
DJ
41152002-01-20 Daniel Jacobowitz <drow@mvista.com>
4116
4117 * buildsym.c: Update copyright years.
4118 * c-typeprint.c: Likewise.
4119 * dwarf2read.c: Likewise.
4120 * f-typeprint.c: Likewise.
4121 * gdbtypes.c: Likewise.
4122 * gdbtypes.h: Likewise.
4123 * hp-symtab-read.c: Likewise.
4124 * hpread.c: Likewise.
4125 * mdebugread.c: Likewise.
4126 * p-typeprint.c: Likewise.
4127
3fd3d7d2
AC
41282002-01-20 Andrew Cagney <ac131313@redhat.com>
4129
4130 * remote-sim.c (gdbsim_open): Simplify code testing the macro
4131 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
4132 byte-order selectable.
4133 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
4134 * arch-utils.c: Ditto.
4135 (set_endian): Ditto.
4136 (set_endian_from_file): Ditto.
4137 * gdbserver/low-sim.c (create_inferior): Ditto.
4138 * gdbarch.sh: Ditto.
4139 * gdbarch.h: Re-generate.
aaa38bb5
AJ
4140 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4141 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
4142 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
4143 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4144 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4145 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4146 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
4147 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
4148 macro definition.
4149 * config/mips/tm-wince.h: Remove #undef of macro
4150 TARGET_BYTE_ORDER_SELECTABLE.
4151 * config/sh/tm-wince.h: Ditto.
4152
b02dede2
DJ
41532002-01-20 Daniel Jacobowitz <drow@mvista.com>
4154
4155 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
4156 member function fields. Add accessor macro
4157 TYPE_FN_FIELD_ARTIFICIAL.
4158 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
4159 * c-typeprint.c (c_type_print_base): Skip artificial member
4160 functions.
4161
c3643761
DJ
41622002-01-20 Daniel Jacobowitz <drow@mvista.com>
4163
4164 * f-typeprint.c: Delete unused function f_type_print_args.
4165 * p-typeprint.c: Delete unused function pascal_type_print_args.
4166
8176bb6d
DJ
41672002-01-20 Daniel Jacobowitz <drow@mvista.com>
4168
4169 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
4170 comment. Add ``artificial'' to ``union field_location''.
4171
4172 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
4173
4174 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
4175 * mdebugread.c (parse_symbol): Likewise.
4176 * stabsread.c (define_symbol): Likewise.
4177 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
4178 initializing TYPE_FIELD_BITPOS to n (obsolete).
4179 (hpread_doc_function_type): Likewise.
4180 * hpread.c (hpread_function_type): Likewise.
4181
7fd60527
AC
41822002-01-20 Andrew Cagney <ac131313@redhat.com>
4183
4184 * configure.in (host_makefile_frag): Only require a host makefile
4185 fragment when a native build.
4186 * configure: Re-generate.
4187
c2f05ac9
AC
41882002-01-20 Andrew Cagney <ac131313@redhat.com>
4189
4190 * doublest.h (floatformat_from_type): Declare.
4191 * doublest.c (floatformat_from_type): New function.
4192 (convert_typed_floating): Use.
4193
4194 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
4195 call to function floatformat_from_type.
4196
4197 * gdbarch.sh (IEEE_FLOAT): Delete.
4198 * gdbarch.h, gdbarch.c: Re-generate.
4199 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
4200 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
4201 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
4202 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
4203 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
4204 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
4205 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
4206 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
4207 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
4208 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
4209 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
4210 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
4211
4212 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
4213 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
4214 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4215 * sh-tdep.c (sh_gdbarch_init): Ditto.
4216 * mips-tdep.c (mips_gdbarch_init): Ditto.
4217 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4218 * cris-tdep.c (cris_gdbarch_init): Ditto.
4219
abf22e64
AJ
42202002-01-20 Jiri Smid <smid@suse.cz>
4221
4222 * configure.host, configure.tgt: Support x86-64.
4223 * NEWS: Note new target x86-64.
4224
b7c4cbf8
AJ
4225 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
4226 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
4227 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
4228 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
4229 x86-64-linux-nat.o): Fix dependencies.
4230
82600034
AC
42312002-01-19 Andrew Cagney <ac131313@redhat.com>
4232
4233 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
4234 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
4235 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
4236 * config/sparc/xm-sun4os4.h: Delete file.
4237 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 4238
bbe5c628
AC
42392002-01-19 Andrew Cagney <ac131313@redhat.com>
4240
4241 * config/sparc/sparclynx.mh (XM_FILE): Delete.
4242 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
4243 * config/m68k/m68klynx.mh (XM_FILE): Delete.
4244 * config/i386/i386lynx.mh (XM_FILE): Delete.
4245 * config/rs6000/xm-rs6000ly.h: Delete file.
4246 * config/sparc/xm-sparclynx.h: Delete file.
4247 * config/m68k/xm-m68klynx.h: Delete file.
4248 * config/i386/xm-i386lynx.h: Delete file.
4249 * config/xm-lynx.h: Delete file.
4250 * config/djgpp/fnchange.lst: Update.
4251
f8453e34
JT
42522002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4253
4254 * alpha-tdep.c (alpha_register_byte): New function.
4255 (alpha_register_raw_size): Ditto.
4256 (alpha_register_virtual_size): Ditto.
4257 (alpha_skip_prologue_internal): Renamed from
4258 alpha_skip_prologue.
4259 (alpha_skip_prologue): New version that calls
4260 alpha_skip_prologue_internal.
4261 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
4262 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
4263 second argument from alpha_skip_prologue.
4264 (REGISTER_BYTE): Use alpha_register_byte.
4265 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
4266 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
4267 (FRAMELESS_FUNCTION_INVOCATION): Use
4268 generic_frameless_function_invocation_not.
4269 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
4270 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
4271
52d9e613
AC
42722002-01-19 Andrew Cagney <ac131313@redhat.com>
4273
4274 * config/mips/xm-news-mips.h: Delete file.
4275 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
4276
4277 * config/m88k/xm-m88k.h: Delete file.
4278 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
4279 * config/m88k/xm-delta88v4.h: Ditto.
4280 * config/m88k/xm-delta88.h: Ditto.
4281
4282 * config/alpha/xm-fbsd.h: Delete file.
4283 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
4284
4285 * config/sparc/xm-sparc.h: Delete file.
4286 * Makefile.in (xm-sun4os4.h): Delete dependency.
4287 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
4288 * config/sparc/xm-sun4os4.h: Ditto.
4289 * config/sparc/xm-linux.h: Ditto.
4290
4291 * config/i386/xm-windows.h: Delete file.
4292
2d1b2124
AC
42932002-01-19 Andrew Cagney <ac131313@redhat.com>
4294
4295 * utils.c: Include <sys/param.h> for MAXPATHLEN.
4296 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
4297
ee1f65f0
JT
42982002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4299
4300 * alpha-tdep.c (alpha_call_dummy_words): New.
4301 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
4302 (CALL_DUMMY_P): Define.
4303 (CALL_DUMMY_WORDS): Define.
4304 (SIZEOF_CALL_DUMMY_WORDS): Define.
4305
98081e55
PB
43062002-01-19 Per Bothner <per@bothner.com>
4307
4308 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
4309 isn't NULL, which can happen with some gcj-3.x-produced code.
4310
0d056799
JT
43112002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4312
4313 * alpha-tdep.c (alpha_register_virtual_type): New function.
4314 (alpha_init_frame_pc_first): Ditto.
4315 (alpha_fix_call_dummy): Ditto.
4316 (alpha_store_struct_return): Ditto.
4317 (alpha_extract_struct_value_address): Ditto.
4318 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
4319 alpha_register_virtual_type.
4320 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
4321 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
4322 alpha_extract_struct_value_address.
4323 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
4324 (INIT_FRAME_PC): Use init_frame_pc_noop.
4325 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
4326
4604bcad
MK
43272002-01-19 Mark Kettenis <kettenis@gnu.org>
4328
4329 * i386gnu-nat.c: Include "i386-tdep.h".
4330 (fetch_fpregs): Simplify code dealing with uninitialized floating
4331 point states such that it doesn't require FP7_REGNUM.
4332
140f9984
JT
43332002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4334
abf22e64
AJ
4335 * alpha-tdep.c (frame_extra_info): New.
4336 (alpha_find_saved_regs): Make static. Use
140f9984
JT
4337 frame->extra_info.
4338 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
4339 (alpha_frame_saved_pc): Use frame->extra_info.
4340 (temp_saved_regs): Don't declare as struct frame_saved_regs.
4341 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
4342 (init_extra_frame_info): Rename to...
4343 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 4344 (alpha_print_extra_frame_info): New function.
140f9984
JT
4345 (alpha_frame_locals_address): Ditto.
4346 (alpha_frame_args_address): Ditto.
abf22e64 4347 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
4348 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
4349 alpha_frame_args_address.
abf22e64 4350 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 4351 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
4352 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
4353 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
4354 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
4355 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
4356
d734c450
JT
43572002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4358
4359 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
4360 (alpha_cannot_fetch_register): Ditto.
4361 (alpha_cannot_store_register): Ditto.
4362 (alpha_register_convertible): Ditto.
4363 (alpha_use_struct_convention): Ditto.
4364 * config/alpha/tm-alpha.h: Update copyright years.
4365 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
4366 (INNER_THAN): Use core_addr_lessthan.
4367 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
4368 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
4369 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
4370 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
4371 (FRAME_CHAIN): Remove unnecessary cast.
4372
b4ceaee6
AC
43732002-01-18 Andrew Cagney <ac131313@redhat.com>
4374
4375 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
4376 obsolete.
4377
0a65a603
AC
43782002-01-18 Andrew Cagney <ac131313@redhat.com>
4379
4380 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
4381 * monitor.c, remote-array.c, remote-bug.c: Ditto.
4382 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
4383 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
4384 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
4385 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
4386 * x86-64-linux-nat.c: Ditto.
4387
636a6dfc
JT
43882002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4389
abf22e64 4390 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
4391 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
4392 (REGISTER_NAME): Define.
4393
acceddb6
JT
43942002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4395
4396 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
4397
ec32e4be
JT
43982002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4399
4400 * alpha-tdep.c: Update copyright years.
4401 (alpha_next_pc): New function.
4402 (alpha_software_single_step): Ditto.
4403 * config/alpha/tm-alpha.h: Add prototype for
4404 alpha_software_single_step.
4405
e771a871
JT
44062002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4407
4408 * alphabsd-nat.c: Update copyright years.
4409 (fill_gregset): Use regcache_collect.
4410 (fill_fpregset): Likewise.
4411 (fetch_inferior_registers): Only fetch integer registers
4412 if requested to do so.
4413 (store_inferior_registers): Only store integer registers
4414 if requested to do so.
4415
7708fa01
AC
44162002-01-17 Andrew Cagney <ac131313@redhat.com>
4417
4418 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
4419 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
4420 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
4421 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
4422 * config/alpha/fbsd.mh (XDEPFILES): Delete.
4423 * config/arm/linux.mh (XDEPFILES): Delete.
4424 * config/arm/nbsd.mh (XDEPFILES): Delete.
4425 * config/i386/i386dgux.mh (XDEPFILES): Delete.
4426 * config/i386/i386sol2.mh (XDEPFILES): Delete.
4427 * config/i386/i386m3.mh (XDEPFILES): Delete.
4428 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
4429 * config/i386/i386gnu.mh (XDEPFILES): Delete.
4430 * config/i386/fbsd.mh (XDEPFILES): Delete.
4431 * config/i386/i386bsd.mh (XDEPFILES): Delete.
4432 * config/i386/i386sco5.mh (XDEPFILES): Delete.
4433 * config/i386/i386v4.mh (XDEPFILES): Delete.
4434 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
4435 * config/i386/i386sco4.mh (XDEPFILES): Delete.
4436 * config/i386/i386aix.mh (XDEPFILES): Delete.
4437 * config/i386/go32.mh (XDEPFILES): Delete.
4438 * config/i386/cygwin.mh (XDEPFILES): Delete.
4439 * config/i386/i386lynx.mh (XDEPFILES): Delete.
4440 * config/i386/i386mach.mh (XDEPFILES): Delete.
4441 * config/i386/i386v32.mh (XDEPFILES): Delete.
4442 * config/i386/linux.mh (XDEPFILES): Delete.
4443 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
4444 * config/i386/ncr3000.mh (XDEPFILES): Delete.
4445 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
4446 * config/i386/i386sco.mh (XDEPFILES): Delete.
4447 * config/i386/i386v.mh (XDEPFILES): Delete.
4448 * config/i386/nbsd.mh (XDEPFILES): Delete.
4449 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
4450 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
4451 * config/i386/symmetry.mh (XDEPFILES): Delete.
4452 * config/i386/obsd.mh (XDEPFILES): Delete.
4453 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
4454 * config/ia64/linux.mh (XDEPFILES): Delete.
4455 * config/ia64/aix.mh (XDEPFILES): Delete.
4456 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
4457 * config/m68k/dpx2.mh (XDEPFILES): Delete.
4458 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
4459 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
4460 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
4461 * config/m68k/linux.mh (XDEPFILES): Delete.
4462 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
4463 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
4464 * config/m68k/nbsd.mh (XDEPFILES): Delete.
4465 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
4466 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
4467 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
4468 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
4469 * config/m88k/delta88.mh (XDEPFILES): Delete.
4470 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
4471 * config/m88k/m88k.mh (XDEPFILES): Delete.
4472 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
4473 * config/mips/linux.mh (XDEPFILES): Delete.
4474 * config/mips/irix6.mh (XDEPFILES): Delete.
4475 * config/mips/irix5.mh (XDEPFILES): Delete.
4476 * config/mips/irix4.mh (XDEPFILES): Delete.
4477 * config/mips/irix3.mh (XDEPFILES): Delete.
4478 * config/mips/decstation.mh (XDEPFILES): Delete.
4479 * config/mips/mipsm3.mh (XDEPFILES): Delete.
4480 (NATDEPFILES): Move core-aout.o to here.
4481 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
4482 * config/pa/hpux1020.mh (XDEPFILES): Delete.
4483 * config/pa/hppabsd.mh (XDEPFILES): Delete.
4484 * config/pa/hppahpux.mh (XDEPFILES): Delete.
4485 * config/pa/hpux11w.mh (XDEPFILES): Delete.
4486 * config/pa/hppaosf.mh (XDEPFILES): Delete.
4487 * config/pa/hpux11.mh (XDEPFILES): Delete.
4488 * config/powerpc/aix.mh (XDEPFILES): Delete.
4489 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
4490 * config/powerpc/linux.mh (XDEPFILES): Delete.
4491 * config/romp/rtbsd.mh: Rename XDEPFILES.
4492 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
4493 * config/rs6000/aix4.mh (XDEPFILES): Delete.
4494 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
4495 * config/s390/s390.mh (XDEPFILES): Delete.
4496 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
4497 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
4498 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
4499 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
4500 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
4501 * config/sparc/nbsd.mh (XDEPFILES): Delete.
4502 * config/sparc/linux.mh (XDEPFILES): Delete.
4503 * config/vax/vaxult.mh (XDEPFILES): Delete.
4504 * config/vax/vaxult2.mh (XDEPFILES): Delete.
4505 * Makefile.in (DEPFILES): Remove XDEPFILES.
4506
375fc983
AC
45072002-01-17 Andrew Cagney <ac131313@redhat.com>
4508
4509 * utils.c (internal_verror): Fix comments, default is yes not no.
4510 Update queries to match. Default to quit and dump core.
4511
8926118c
AC
45122002-01-17 Andrew Cagney <ac131313@redhat.com>
4513
4514 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
4515 copyright.
4516 * defs.h, event-top.c, gdbcmd.h: Ditto.
4517 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
4518 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
4519 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
4520 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
4521 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
4522 * mi/mi-main.c:Ditto.
4523
4524 * stack.c, symfile.c: Update copyright.
4525
45b7b345
DJ
45262002-01-17 Daniel Jacobowitz <drow@mvista.com>
4527
db728ff7
DJ
4528 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
4529 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
4530 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
4531 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 4532
db728ff7
DJ
45332002-01-17 Daniel Jacobowitz <drow@mvista.com>
4534
4535 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
4536 * gdbserver/low-lynx.c (myattach): Likewise.
4537 * gdbserver/low-nbsd.c (myattach): Likewise.
4538 * gdbserver/low-sim.c (myattach): Likewise.
4539 * gdbserver/low-sparc.c (myattach): Likewise.
4540 * gdbserver/low-sun3.c (myattach): Likewise.
4541
4542 * gdbserver/low-linux.c (myattach): New function.
45b7b345 4543
db728ff7 4544 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
4545 (main): Handle "--attach".
4546
8de3c354
AC
45472002-01-16 Andrew Cagney <ac131313@redhat.com>
4548
4549 * MAINTAINERS (language support): Daniel Jacobwitz is C++
4550 maintainer.
4551
b0129042
DJ
45522002-01-15 Daniel Jacobowitz <drow@mvista.com>
4553
4554 * c-typeprint.c (is_type_conversion_operator): Add additional
4555 check for non-conversion operators.
4556
ba8679fb 45572002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
4558
4559 * linux-proc.c: Add "info proc" command, a la procfs.c.
4560 (read_mapping): New function, abstract and re-use code.
4561 (linux_find_memory_regions): Use new func read_mapping.
4562 (linux_info_proc_cmd): New function, implement "info proc".
4563 (_initialize_linux_proc): Add new command "info proc".
4564
e4f9b4d5
MS
45652002-01-15 Michael Snyder <msnyder@redhat.com>
4566
4567 * symfile.c (generic_load): Use bfd_map_over_sections method
4568 instead of manipulating bfd structure members directly.
4569 (add_section_size_callback): New function, bfd sections callback
4570 used by generic_load.
4571 (load_sections_callback): New function, bfd sections callback
4572 used by generic_load.
4573
08cf96df
EZ
45742002-01-15 Elena Zannoni <ezannoni@redhat.com>
4575
abf22e64 4576 [Based on work by Jim Blandy]
08cf96df
EZ
4577 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
4578 (builtin_type_vec128): Export.
4579 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
4580 types.
4581 (builtin_type_vec128): New builtin type for 128 bit vector
4582 registers.
4583 (build_gdbtypes): Initialize builtin_type_v16qi and
4584 builtin_type_v8hi. Create the vec128 register builtin type
4585 structure.
4586 (build_builtin_type_vec128): New function.
abf22e64 4587 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
4588 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
4589 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
4590 AltiVec register to new builtin type.
4591
d7242108
DJ
45922001-01-15 Daniel Jacobowitz <drow@mvista.com>
4593
4594 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
4595 to make_cv_type.
4596
4ee3352d
AC
45972002-01-14 Andrew Cagney <ac131313@redhat.com>
4598
4599 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
4600 CLEAN_UP_REGISTER_VALUE.
4601 * regcache.c (supply_register): Update only call.
4602
f015b2e7
AC
46032002-01-14 Andrew Cagney <ac131313@redhat.com>
4604
4605 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4606 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4607 a29k-*-vxworks* targets as obsolete.
4608
356ae49d
MS
46092002-01-14 Michael Snyder <msnyder@redhat.com>
4610
4611 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
4612 until we can resolve portability issues.
4613 * gregset.h: Remove references to fpxregs.
4614 * gcore.c (gcore_command): Initialize note_sec to NULL.
4615
ade8f45e
AC
46162002-01-13 Andrew Cagney <ac131313@redhat.com>
4617
4618 * signals.c (target_signal_to_name): Rewrite. Only use
4619 signals[].name when in bounds and non-NULL.
abf22e64 4620
89c49e7a
AC
46212002-01-13 Andrew Cagney <ac131313@redhat.com>
4622
4623 From Petr Ledvina <ledvinap@kae.zcu.cz>:
4624 * signals.c (target_signal_to_name): Verify that SIG is within the
4625 bounds of the signals array.
4626
4daa9f9f
AC
46272002-01-13 Andrew Cagney <ac131313@redhat.com>
4628
4629 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
4630
ba4bbdcb
KS
46312002-01-13 Keith Seitz <keiths@redhat.com>
4632
4633 * stack.c (print_frame_info_base): Print the frame's pc
4634 only if when print_frame_info_listing_hook is not defined.
4635
575bbeb6
KS
46362002-01-13 Keith Seitz <keiths@redhat.com>
4637
4638 * varobj.c (varobj_set_value): Make sure that there were no
4639 errors evaluating the object before attempting to set its
4640 value.
4641 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
4642 so this offset adjustment is no longer necessary.
4643 (create_child): Don't set the error flag if the child is
4644 a CPLUS_FAKE_CHILD.
4645 (value_of_child): If value_fetch_lazy fails, return NULL
4646 so that callers will be notified that an error occurred.
4647 (c_value_of_variable): Delay check of variable's validity
4648 until later. We actually want all structs and unions to have
4649 the value "{...}".
4650 Do not return "???" for variables which could not be evaluated.
4651 This error condition must be returned to the caller so that it
4652 can get the error condition from gdb.
4653 (cplus_name_of_child): Adjust index for vptr before figuring
4654 out the name of the child.
4655 (cplus_value_of_child): If a child's (real) parent is not valid,
4656 don't even bother trying to give a value for it. Just return
4657 an error. Change all instances in this function.
4658 (cplus_type_of_child): If our parent is one of the "fake"
4659 parents, we need to get at the type of the real parent, and
4660 derive the child's true type using this information.
4661
b76898ab
AC
46622002-01-13 Andrew Cagney <ac131313@redhat.com>
4663
4664 From 2002-01-09 John Marshall <johnm@falch.net>:
4665 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
4666 sources.redhat.com, and tweak some related URLs which had
4667 suffered from linkrot.
4668
b6649e88
AC
46692002-01-13 Andrew Cagney <ac131313@redhat.com>
4670
4671 From Jeff law:
4672 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
4673 structures passed in registers.
4674
82cc5033
EZ
46752002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
4676
4677 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
4678 white space which prevented compilation. Reported by DSK
4679 <dsk@student.unsw.edu.au>.
4680
ba5f2f8a
MS
46812002-01-11 Michael Snyder <msnyder@redhat.com>
4682
fbd35540
MS
4683 * symfile.c (build_section_addr_info_from_section_tab):
4684 Use bfd access method instead of manipulating bfd directly.
4685 (syms_from_objfile): Ditto.
4686 (simple_overlay_update_1): Ditto.
4687 (simple_overlay_update): Ditto.
4688 (generic_load): Ditto.
4689 (overlay_unmapped_address): FIXME comment, bfd access methods.
4690 (sections_overlap): FIXME comment, bfd access methods.
4691 (pc_in_mapped_range): FIXME comment, bfd access methods.
4692 (pc_in_unmapped_range): FIXME comment, bfd access methods.
4693 (section_is_mapped): FIXME comment, bfd access methods.
4694 (section_is_overlay): FIXME comment, bfd access methods.
4695
ba5f2f8a
MS
4696 * symfile.c (generic_load): Whitespace and long line cleanups.
4697 Remove duplicate variable, change several local variables to
4698 more appropriate data types.
4699 (print_transfer_performance): Use %lu instead of %ld for ulongs.
4700
17df2af6
AC
47012002-01-12 Andrew Cagney <ac131313@redhat.com>
4702
4703 From Peter Schauer:
4704 * language.c (longest_local_hex_string_custom): Use phex_nz to
4705 convert NUM to a hex string.
4706
ec920329
EZ
47072002-01-12 Elena Zannoni <ezannoni@redhat.com>
4708
4709 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
4710 the function.
538a76d6 4711 Update Copyright year.
ec920329 4712
3abd2e01
AC
47132002-01-12 Andrew Cagney <ac131313@redhat.com>
4714
4715 * language.c (longest_raw_hex_string): Delete unused function.
4716
b21b22e0
PS
47172002-01-11 Petr Sorfa <petrs@caldera.com>
4718
4719 * MAINTAINERS (write-after-approval): Add myself.
4720 * dwarf2read.c (read_tag_string_type): Handling of
4721 DW_AT_byte_size.
4722 (read_tag_string_type): FORTRAN fix to prevent propagation of
4723 first string size.
4724 (set_cu_language): Handling of DW_LANG_Fortran95
4725
747fe712
RE
47262002-01-11 Richard Earnshaw <rearnsha@arm.com>
4727
4728 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
4729 GETPID(inferior_ptid).
4730 (store_inferior_registers): Likewise.
4731
f1bea926
JM
47322002-01-10 Jason Merrill <jason@redhat.com>
4733
4734 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
4735 Fix DW_OP_minus.
4736
ae940673
AC
47372002-01-10 Andrew Cagney <ac131313@redhat.com>
4738
4739 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
4740 and bfd/elf32-sh-nbsd.c.
4741
00546b04
MS
47422002-01-10 Michael Snyder <msnyder@redhat.com>
4743
352ed7b4
MS
4744 * NEWS: Mention --pid and corefile/proc-id behavior change.
4745
c18be923
MS
4746 * Makefile.in: Add rules for gcore.o and linux-proc.o.
4747 * gcore.c: Include cli/cli-decode.h instead of command.h.
4748
00546b04
MS
4749 * main.c (captured_main): Add new command line option "--pid".
4750 If the second command line argument (following the symbol-file)
4751 begins with a digit, try to attach to it before trying to open
4752 it as a corefile.
4753 (print_gdb_help): Document the "--pid" argument.
4754
db60ec62
EZ
47552002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
4756
4757 * completer.c (command_completer): New function.
4758
4759 * completer.h <command_completer>: Add prototype.
4760
4761 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
4762 completer for the "help" command.
4763
39c22d1a
JM
47642002-01-09 Jason Merrill <jason@redhat.com>
4765
4766 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
4767
c564377f
MS
47682002-01-09 Michael Snyder <msnyder@redhat.com>
4769
975aec09
MS
4770 * i386-linux-nat.c (fill_fpxregset): Make global.
4771 (store_fpxregset): Ditto.
4772
db4a10fa
MS
4773 * gregset.h (gdb_fpxregset_t): Define.
4774 (supply_fpxregset): Prototype.
4775 (fill_fpxregset): Prototype.
4776
c564377f
MS
4777 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
4778
c3d45d70
RE
47792002-01-09 Richard Earnshaw <rearnsha@arm.com>
4780
4781 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
4782 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
4783 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
4784
fcc87af1
AC
47852002-01-09 Andrew Cagney <ac131313@redhat.com>
4786
4787 * MAINTAINERS: Update target maintainer rules so that any
4788 Maintainer can approve a tested patch for a maintenance-only
4789 target.
4790
dd96c05b
RE
47912002-01-09 Richard Earnshaw <rearnsha@arm.com>
4792
d4297db9 4793 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 4794
d4297db9 4795 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
4796 IN_SIGTRAMP.
4797
145fdc6e
MS
47982002-01-08 Michael Snyder <msnyder@redhat.com>
4799
4800 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
4801 real name of the executable, rather than the /proc name.
4802
be4d1333
MS
48032002-01-03 Michael Snyder <msnyder@redhat.com>
4804
4805 Implement a "generate-core-file" command in gdb, save target state.
4806 * gcore.c: New file. Implement new command 'generate-core-file'.
4807 Save a corefile image of the current state of the inferior.
4808 * linux-proc.c: Add linux-specific code for saving corefiles.
4809 * target.h (struct target_ops): Add new target vectors for saving
4810 corefiles; to_find_memory_regions and to_make_corefile_notes.
4811 (target_find_memory_regions): New macro.
4812 (target_make_corefile_notes): New macro.
4813 * target.c (update_current_target): Inherit new target methods.
4814 (dummy_find_memory_regions): New place-holder method.
4815 (dummy_make_corefile_notes): New place-holder method.
4816 (init_dummy_target): Initialize new dummy target vectors.
4817 * exec.c (exec_set_find_memory_regions): New function.
4818 Allow the exec_ops vector for memory regions to be taken over.
4819 (exec_make_note_section): New function, target vector method.
4820 * defs.h (exec_set_find_memory_regions): Export prototype.
4821 * procfs.c (proc_find_memory_regions): New function, corefile method.
4822 (procfs_make_note_section): New function, corefile method.
4823 (init_procfs_ops): Set new target vector pointers.
4824 (find_memory_regions_callback): New function.
4825 (procfs_do_thread_registers): New function.
4826 (procfs_corefile_thread_callback): New function.
4827 * sol-thread.c (sol_find_memory_regions): New function.
4828 (sol_make_note_section): New function.
4829 (init_sol_thread_ops): Initialize new target vectors.
4830 * inftarg.c (inftarg_set_find_memory_regions): New function.
4831 Allow to_find_memory_regions vector to be taken over.
4832 (inftarg_set_make_corefile_notes): New function.
4833 Allow to_make_corefile_notes vector to be taken over.
4834 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
4835 interface layer if not target_has_execution (may be a corefile).
4836 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
4837 * config/sparc/sun4sol2.mh: Ditto.
4838 * config/alpha/alpha-linux.mh: Ditto.
4839 * config/arm/linux.mh: Ditto.
4840 * config/i386/x86-64linux.mh: Ditto.
4841 * config/ia64/linux.mh: Ditto.
4842 * config/m68k/linux.mh: Ditto.
4843 * config/mips/linux.mh: Ditto.
4844 * config/powerpc/linux.mh: Ditto.
4845 * config/sparc/linux.mh: Ditto.
4846
c6b92abd
MS
48472002-01-07 Michael Snyder <msnyder@redhat.com>
4848
4849 * arm-linux-nat.c: Remove references to regcache.c internal data
4850 (registers[] and register_valid[]).
4851
4b09dc8c
MS
48522002-01-07 Michael Snyder <msnyder@redhat.com>
4853
abf22e64
AJ
4854 * linux-proc.c: New file. Implement child_pid_to_exec_file,
4855 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
4856 symbol file and shlibs.
4857 * Makefile.in: Add rule for linux-proc.o.
4858 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
4859 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
4860 * config/arm/linux.mh: Ditto.
4861 * config/i386/linux.mh: Ditto.
4862 * config/i386/x86-64linux.mh: Ditto.
4863 * config/ia64/linux.mh: Ditto.
4864 * config/m68k/linux.mh: Ditto.
4865 * config/mips/linux.mh: Ditto.
4866 * config/powerpc/linux.mh: Ditto.
4867 * config/sparc/linux.mh: Ditto.
4868
c25b74ac
PM
48692002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
4870
4871 * win32-nat.c: Add i386-tdep.h dependency.
4872
94cd915f
MS
48732002-01-07 Michael Snyder <msnyder@redhat.com>
4874
c7cccb76
MS
4875 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
4876 instead of bfd_get_arch_size. Don't bail out just because
4877 there's no exec_bfd.
abf22e64 4878
34c0bd93
MS
4879 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
4880 * p-valprint.c (pascal_object_print_value): Ditto.
4881 * somread.c (som_symtab_read): Ditto.
4882 * symfile.c (simple_free_overlay_region_table): Ditto.
4883 * valops.c (value_assign): Ditto.
4884
21c1c920
MS
4885 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
4886 use tilde_expand and strerror for opening save-tracepoints file.
4887
5bbd998e
MS
4888 * thread-db.c (thread_db_new_objfile): Indendation fix.
4889
94cd915f
MS
4890 * infptrace.c (GDB_MAX_ALLOCA): New define.
4891 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 4892 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
4893 can be overridden with whatever value is appropriate to the host).
4894 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
4895 alloca to allocate potentially large buffer.
4896 * rs6000-nat.c (child_xfer_memory): Ditto.
4897 * symm-nat.c (child_xfer_memory): Ditto.
4898 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
4899
494e8a93
JSC
49002002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
4901
4902 From Nick Clifton <nickc@redhat.com>
4903 * d10v-tdep.c: Set STACK_START to 0x200bffe.
4904
d0e1d48e
MS
49052002-01-07 Michael Snyder <msnyder@redhat.com>
4906
abf22e64 4907 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
4908 Don't use exec_bfd if it's NULL.
4909
290b2c7a
MK
49102002-01-06 Mark Kettenis <kettenis@gnu.org>
4911
abf22e64 4912 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 4913
aef21287
AC
49142002-01-06 Andrew Cagney <ac131313@redhat.com>
4915
4916 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
4917 * gnu-nat.c: Ditto.
4918
30efa627
AC
49192002-01-06 Andrew Cagney <ac131313@redhat.com>
4920
4921 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
4922 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
4923 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
4924 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
4925 z8k-coff have not been multi-arched. Update z8k-coff build
4926 status.
4927
9b4ff276
AC
49282002-01-06 Andrew Cagney <ac131313@redhat.com>
4929
4930 * MAINTAINERS: Mark a29k target as obsolete.
4931 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
4932 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
4933 comments.
4934 * NEWS: Note that a29k targets are obsolete.
4935 * a29k-tdep.c: Mark as obsolete.
4936 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4937 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4938 a29k-*-vxworks* targets as obsolete.
4939 * remote-adapt.c: Obsolete.
4940 * remote-eb.c: Obsolete.
4941 * remote-mm.c: Obsolete.
4942 * remote-udi.c: Obsolete.
4943 * config/a29k/a29k-udi.mt: Obsolete.
4944 * config/a29k/a29k.mt: Obsolete.
4945 * config/a29k/tm-a29k.h: Obsolete.
4946 * config/a29k/tm-vx29k.h: Obsolete.
4947 * config/a29k/vx29k.mt: Obsolete.
4948
a9011d31
AC
49492002-01-05 Andrew Cagney <ac131313@redhat.com>
4950
4951 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
4952 with BFD_ENDIAN_BIG.
4953
9299404e
AC
49542002-01-05 Andrew Cagney <ac131313@redhat.com>
4955
4956 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
4957 * configure, config.in: Re-generate.
4958 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
4959 * defs.h: Do not include <endian.h>.
4960
7e89e357
JT
49612002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
4962
4963 * acconfig.h (HAVE_PT_GETXMMREGS): New.
4964 * config.in: Regenerate.
4965 * configure.in: Update copyright years.
4966 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
4967 * configure: Regenerate.
4968 * i386bsd-nat.c: Update copyright years.
4969 (fill_gregset): Use regcache_collect.
4970 (fetch_inferior_registers): Only fetch integer registers
4971 if requested to do so. Add support for XMM registers
4972 using PT_GETXMMREGS.
4973 (store_inferior_registers): Only store integer registers
4974 if requested to do so. Add support for XMM registers
4975 using PT_SETXMMREGS.
4976 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
4977 (store_inferior_registers): Remove.
4978 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
4979 (fetch_elfcore_registers): New function.
4980 (i386nbsd_elfcore_fns): New.
4981 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
4982 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
4983 i386bsd-nat.o.
4984 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4985 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
4986 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4987 * config/i386/tm-nbsd.h: Update copyright years.
4988 (HAVE_SSE_REGS): Define.
4989 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
4990 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
4991 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
4992 (SIGCONTEXT_PC_OFFSET): Remove.
4993 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
4994
a752853e
AC
49952002-01-05 Andrew Cagney <ac131313@redhat.com>
4996
4997 * configure.tgt: Remove powerpc-*-macos* target.
4998 * config/m68k/xm-mpw.h: Delete file.
4999 * config/xm-mpw.h: Delete file.
5000 * ser-mac.c: Delete file.
5001 * mpw-make.sed: Delete file.
5002 * mpw-config.in: Delete file.
5003 * mac-xdep.c: Delete file.
5004 * mac-gdb.r: Delete file.
5005 * mac-defs.h: Delete file.
5006 * mac-nat.c: Delete file.
5007 * config/powerpc/macos.mh: Delete file.
5008 * config/powerpc/macos.mt: Delete file.
5009 * config/powerpc/nm-macos.h: Delete file.
5010 * config/powerpc/tm-macos.h: Delete file.
5011 * source.c (openp, open_source_file): Remove obsolete code.
5012 * top.c (gdb_readline): Ditto.
5013 * utils.c (query): Ditto.
5014 * event-top.c (display_gdb_prompt): Ditto.
5015 * Makefile.in (ser-mac.o): Delete obsolete target.
5016 * NEWS: Update.
5017
d7449b42
AC
50182002-01-04 Andrew Cagney <ac131313@redhat.com>
5019
5020 * defs.h (BIG_ENDIAN): Delete macro definition.
5021 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
5022 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
5023 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
5024 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
5025 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
5026 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
5027 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
5028 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
5029 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
5030 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
5031 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
5032 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
5033 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
5034 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
5035 * gdbarch.c: Re-generate.
5036
356374e8
DJ
50372002-01-04 Daniel Jacobowitz <drow@mvista.com>
5038
5039 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
5040 for core files.
5041
a2b8f8f8
JT
50422002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5043
5044 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
5045
12466af9
AC
50462002-01-04 Andrew Cagney <ac131313@redhat.com>
5047
5048 * value.h (value_ptr): Delete typedef.
5049
3549ab40
JT
50502002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5051
5052 * i386nbsd-nat.c: Update copyright years.
5053 Include i386-tdep.h.
5054
fedbd091
EZ
50552002-01-04 Elena Zannoni <ezannoni@redhat.com>
5056
5057 * stabsread.c: Update copyright years.
5058
5059 From Debashis Mahata <debashis.mahata@wipro.com>:
5060 (read_struct_fields): Deal with Sun C compiler erroneous stab
5061 output for structs and unions.
fec8b34f 5062 Fix PR gdb/269.
fedbd091 5063
eb43544b
DJ
50642002-01-04 Daniel Jacobowitz <drow@mvista.com>
5065
5066 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
5067 prototype.
5068
1514d34e
DJ
50692002-01-04 Daniel Jacobowitz <drow@mvista.com>
5070
5071 * cp-abi.c: Fix whitespace.
5072 (baseclass_offset): New wrapper function.
5073 * cp-abi.h (baseclass_offset): Add prototype.
5074 (struct cp_abi_ops): Add baseclass_offset pointer.
5075
5076 * valops.c (vb_match): Move to...
5077 * gnu-v2-abi.c (vb_match): here.
5078 * valops.c (baseclass_offset): Move to...
5079 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
5080
5081 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
5082
5083 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
5084 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
5085 * hpacc-abi.c (init_hpacc_ops): Likewise.
5086
7f8c9282
DJ
50872002-01-04 Daniel Jacobowitz <drow@mvista.com>
5088
5089 * valops.c (find_overload_match): Accept obj as a
5090 reference parameter. Update it before returning.
5091 * value.h (find_overload_match): Update prototype.
5092 * eval.c (evaluate_subexp_standard): Pass object to
5093 find_overload_match by reference.
5094
f23631e4
AC
50952002-01-03 Andrew Cagney <ac131313@redhat.com>
5096
5097 * valarith.c: Replace value_ptr with struct value pointer. Remove
5098 register attribute from value declarations.
5099 * valops.c: Ditto.
5100 * value.h: Ditto.
5101 * scm-lang.c (scm_lookup_name): Ditto.
5102
79e10fab 51032002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 5104
79e10fab
AC
5105 Abstract the functionality of iterating over mapped memory
5106 regions into a general purpose iterator function.
abf22e64 5107 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
5108 iterator for memory sections.
5109 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
5110 (solib_mappings_callback): New function, callback for above.
5111 (info_proc_mappings): Reimpliment using iterate_over_mappings.
5112 (info_mappings_callback): New function, callback for above.
5113
5114 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
5115
c5ad026a
MK
51162002-01-01 Mark Kettenis <kettenis@gnu.org>
5117
d2a7c97a
MK
5118 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
5119 * i386-tdep.c: Include "elf-bfd.h".
5120 (process_note_abi_tag_sections): New function.
5121 (i386_gdbarch_init): Add code to recognize various OS/ABI
5122 combinations.
5123
c5ad026a
MK
5124 * maint.c (_initialize_maint_cmds): Add missing \ in
5125 string-literal.
5126
a1a5b71e 5127For older changes see ChangeLog-2001
c906108c
SS
5128\f
5129Local Variables:
5130mode: change-log
5131left-margin: 8
5132fill-column: 74
5133version-control: never
5134End: